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,UAAUwE,MAAOL,aAAa,IAC5C9D,EAAAA,EAAAA,eAACV,EAAY,CACTgD,MAAO3C,UAAUiB,OACjB6B,MAAOlC,EAAWK,OAClB8B,SAAWD,GAAUzB,EAAc,CAACJ,OAAQ6B,IAC5C2B,IAAK,EACLC,IAAK,GACLC,WAAW,YAIvBtE,EAAAA,EAAAA,eAAA,OAAKxC,IAAI,IAAI8C,UAAWS,EAAMT,WAAYX,UAAUC,YACvD,EAEL2E,KAAIA,KAEIvE,EAAAA,EAAAA,eAACvB,EAAY+F,QAAO,O","sources":["webpack://irankala/./node_modules/uuid/dist/esm-browser/native.js","webpack://irankala/./node_modules/uuid/dist/esm-browser/rng.js","webpack://irankala/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://irankala/./node_modules/uuid/dist/esm-browser/v4.js","webpack://irankala/external window [\"wp\",\"element\"]","webpack://irankala/webpack/bootstrap","webpack://irankala/webpack/runtime/compat get default export","webpack://irankala/webpack/runtime/define property getters","webpack://irankala/webpack/runtime/hasOwnProperty shorthand","webpack://irankala/./blocks/src/banner-ads.js"],"sourcesContent":["const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","module.exports = window[\"wp\"][\"element\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import {v4 as uuidv4} from 'uuid';\r\n\r\nconst {registerBlockType} = wp.blocks;\r\nconst {Fragment} = wp.element;\r\nconst {\r\n InspectorControls,\r\n InnerBlocks,\r\n MediaUpload,\r\n MediaUploadCheck\r\n} = wp.blockEditor;\r\nconst {\r\n TextControl,\r\n PanelBody,\r\n Button,\r\n ResponsiveWrapper,\r\n Spinner,\r\n ToggleControl,\r\n Card,\r\n CardHeader,\r\n CardBody,\r\n RangeControl,\r\n SelectControl\r\n} = wp.components;\r\nconst ALLOWED_MEDIA_TYPES = ['image'];\r\n\r\nregisterBlockType(\r\n 'irankala/banner-ads',\r\n {\r\n title: IRK_BLOCK.banner_ads,\r\n description: IRK_BLOCK.banner_ads_desc,\r\n icon:\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"irk-block-icon\" height=\"24\" width=\"24\">\r\n <path d=\"M11.7 18q-2.4-.125-4.05-1.85T6 12q0-2.5 1.75-4.25T12 6q2.425 0 4.15 1.65Q17.875 9.3 18 11.7l-2.1-.625q-.325-1.35-1.4-2.212Q13.425 8 12 8q-1.65 0-2.825 1.175Q8 10.35 8 12q0 1.425.863 2.5.862 1.075 2.212 1.4Zm1.2 3.95q-.225.05-.45.05H12q-2.075 0-3.9-.788-1.825-.787-3.175-2.137-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175 1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138 1.35 1.35 2.137 3.175Q22 9.925 22 12v.45q0 .225-.05.45L20 12.3V12q0-3.35-2.325-5.675Q15.35 4 12 4 8.65 4 6.325 6.325 4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20h.3Zm7.625.55-4.275-4.275L15 22l-3-10 10 3-3.775 1.25 4.275 4.275Z\"/>\r\n </svg>,\r\n category: 'irankala',\r\n className: 'irk-block irk-block-banner-ads',\r\n attributes: {\r\n irkUUID: {\r\n type: 'string',\r\n },\r\n ads: {\r\n type: 'array',\r\n default: [],\r\n },\r\n radius: {\r\n type: 'number',\r\n },\r\n columns: {\r\n type: 'string',\r\n },\r\n },\r\n edit: (props) => {\r\n const {attributes, setAttributes} = props;\r\n let adsFields;\r\n let ads = props.attributes.ads;\r\n const instructions = <p>{IRK_BLOCK.upload_permission}</p>;\r\n if (!props.attributes.hasOwnProperty('irkUUID')) {\r\n setAttributes({irkUUID: uuidv4()});\r\n }\r\n\r\n const addAds = () => {\r\n const ads = [...props.attributes.ads];\r\n ads.push({\r\n link: '',\r\n target: '',\r\n image: '',\r\n });\r\n props.setAttributes({ads});\r\n }\r\n const removeAds = (index) => {\r\n const ads = [...props.attributes.ads];\r\n ads.splice(index, 1);\r\n props.setAttributes({ads});\r\n }\r\n const adsChange = (index, link, newAds) => {\r\n const ads = [...props.attributes.ads];\r\n ads[index][link] = newAds;\r\n props.setAttributes({ads});\r\n }\r\n const onUpdateImage = (index, image) => {\r\n const ads = [...props.attributes.ads];\r\n ads[index].image = image;\r\n props.setAttributes({ads});\r\n }\r\n const onRemoveImage = (index) => {\r\n const ads = [...props.attributes.ads];\r\n ads[index].image = '';\r\n props.setAttributes({ads});\r\n }\r\n\r\n if (ads.length) {\r\n adsFields = ads.map((ad, index) => {\r\n const link = ad.link;\r\n const target = ad.target;\r\n const image = ad.image ? ad.image : null;\r\n const imageID = image ? image.id : '';\r\n\r\n return <Fragment key={index}>\r\n <Card size=\"xSmall\" className=\"components-base-control\">\r\n <CardHeader>\r\n <Button onClick={() => removeAds(index)} isSmall icon=\"no-alt\" label={IRK_BLOCK.remove_item}/>\r\n </CardHeader>\r\n <CardBody>\r\n <TextControl\r\n placeholder={IRK_BLOCK.link}\r\n value={link}\r\n onChange={(newAds) => adsChange(index, 'link', newAds)}\r\n />\r\n <ToggleControl\r\n label={IRK_BLOCK.open_new_tab}\r\n checked={target}\r\n onChange={(newAds) => adsChange(index, 'target', newAds)}\r\n />\r\n <MediaUploadCheck fallback={instructions}>\r\n <MediaUpload\r\n title={IRK_BLOCK.image}\r\n onSelect={(image) => onUpdateImage(index, image)}\r\n allowedTypes={ALLOWED_MEDIA_TYPES}\r\n value={imageID}\r\n render={({open}) => (\r\n <Button\r\n className={!imageID ? 'editor-post-featured-image__toggle' : 'irk-block-featured-image-preview editor-post-featured-image__preview components-base-control'}\r\n onClick={open}>\r\n {!imageID && IRK_BLOCK.set_image}\r\n {!!imageID && !image && <Spinner/>}\r\n {\r\n !!imageID && image &&\r\n <ResponsiveWrapper naturalWidth={image.width} naturalHeight={image.height}>\r\n <img src={image.url} alt={IRK_BLOCK.image}/>\r\n </ResponsiveWrapper>\r\n }\r\n </Button>\r\n )}\r\n />\r\n </MediaUploadCheck>\r\n {\r\n !!imageID && image &&\r\n <MediaUploadCheck>\r\n <MediaUpload\r\n title={IRK_BLOCK.image}\r\n onSelect={(image) => onUpdateImage(index, image)}\r\n allowedTypes={ALLOWED_MEDIA_TYPES}\r\n value={imageID}\r\n render={({open}) => (\r\n <Button onClick={open} isLink>{IRK_BLOCK.replace_image}</Button>)}\r\n />\r\n </MediaUploadCheck>\r\n }\r\n {!!imageID && image && <span className=\"irk-separator\">|</span>}\r\n {\r\n !!imageID &&\r\n <MediaUploadCheck>\r\n <Button onClick={() => onRemoveImage(index)} isLink isDestructive>{IRK_BLOCK.remove_image}</Button>\r\n </MediaUploadCheck>\r\n }\r\n </CardBody>\r\n </Card>\r\n </Fragment>;\r\n });\r\n }\r\n\r\n return [\r\n <InspectorControls key=\"1\">\r\n <PanelBody title={IRK_BLOCK.links} initialOpen={true}>\r\n {adsFields}\r\n {\r\n props.attributes.ads.length < 4 &&\r\n <Button variant=\"secondary\" onClick={addAds.bind(this)}>{IRK_BLOCK.add_new}</Button>\r\n }\r\n </PanelBody>\r\n <PanelBody title={IRK_BLOCK.options} initialOpen={false}>\r\n <SelectControl\r\n label={IRK_BLOCK.columns}\r\n value={attributes.columns}\r\n options={[\r\n {label: '1', value: 1},\r\n {label: '1+3', value: 13},\r\n {label: '3+1', value: 31},\r\n {label: '2+2', value: 22},\r\n {label: '1+1+1+1', value: 1111},\r\n ]}\r\n onChange={(value) => setAttributes({columns: value})}\r\n __nextHasNoMarginBottom\r\n />\r\n </PanelBody>\r\n <PanelBody title={IRK_BLOCK.style} initialOpen={false}>\r\n <RangeControl\r\n label={IRK_BLOCK.radius}\r\n value={attributes.radius}\r\n onChange={(value) => setAttributes({radius: value})}\r\n min={1}\r\n max={50}\r\n allowReset=\"true\"\r\n />\r\n </PanelBody>\r\n </InspectorControls>,\r\n <div key=\"2\" className={props.className}>{IRK_BLOCK.banner_ads}</div>\r\n ];\r\n },\r\n save() {\r\n return (\r\n <InnerBlocks.Content/>\r\n );\r\n },\r\n }\r\n);"],"names":["randomUUID","crypto","bind","getRandomValues","rnds8","Uint8Array","rng","Error","byteToHex","i","push","toString","slice","unsafeStringify","arr","offset","options","buf","rnds","random","module","exports","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","registerBlockType","wp","blocks","Fragment","element","InspectorControls","InnerBlocks","MediaUpload","MediaUploadCheck","blockEditor","TextControl","PanelBody","Button","ResponsiveWrapper","Spinner","ToggleControl","Card","CardHeader","CardBody","RangeControl","SelectControl","components","ALLOWED_MEDIA_TYPES","title","IRK_BLOCK","banner_ads","description","banner_ads_desc","icon","createElement","xmlns","class","height","width","category","className","attributes","irkUUID","type","ads","default","radius","columns","edit","props","setAttributes","adsFields","instructions","upload_permission","uuidv4","adsChange","index","link","newAds","onUpdateImage","image","length","map","ad","target","imageID","id","size","onClick","splice","removeAds","isSmall","label","remove_item","placeholder","value","onChange","open_new_tab","checked","fallback","onSelect","allowedTypes","render","open","set_image","naturalWidth","naturalHeight","src","url","alt","isLink","replace_image","onRemoveImage","isDestructive","remove_image","links","initialOpen","variant","addAds","add_new","__nextHasNoMarginBottom","style","min","max","allowReset","save","Content"],"sourceRoot":""}