File: /home/pclast/public_html/wp-content/themes/irankala/blocks/build/faq.js.map
{"version":3,"file":"faq.js","mappings":"yDAAO,IAAIA,EAAS,CAChB,CAACC,KAAM,QAASC,MAAO,WACvB,CAACD,KAAM,mBAAoBC,MAAO,WAClC,CAACD,KAAM,QAASC,MAAO,WACvB,CAACD,KAAM,YAAaC,MAAO,WAC3B,CAACD,KAAM,YAAaC,MAAO,WAC3B,CAACD,KAAM,wBAAyBC,MAAO,WACvC,CAACD,KAAM,uBAAwBC,MAAO,WACtC,CAACD,KAAM,mBAAoBC,MAAO,WAClC,CAACD,KAAM,mBAAoBC,MAAO,WAClC,CAACD,KAAM,iBAAkBC,MAAO,WAChC,CAACD,KAAM,kBAAmBC,MAAO,WACjC,CAACD,KAAM,eAAgBC,MAAO,W,iCCZ3B,IAAIC,EAAY,CACnB,CACIF,KAAMG,UAAUC,YAChBC,KAAM,UACNC,KAAM,IAEV,CACIN,KAAMG,UAAUI,MAChBF,KAAM,QACNC,KAAM,IAEV,CACIN,KAAMG,UAAUK,OAChBH,KAAM,SACNC,KAAM,IAEV,CACIN,KAAMG,UAAUM,MAChBJ,KAAM,QACNC,KAAM,IAEV,CACIN,KAAMG,UAAUO,YAChBL,KAAM,UACNC,KAAM,I,iCCxBd,MACA,GACEK,WAFmC,oBAAXC,QAA0BA,OAAOD,YAAcC,OAAOD,WAAWE,KAAKD,Q,gBCGhG,IAAIE,E,iBACJ,MAAMC,EAAQ,IAAIC,WAAW,IACd,SAASC,IAEtB,IAAKH,IAEHA,EAAoC,oBAAXF,QAA0BA,OAAOE,iBAAmBF,OAAOE,gBAAgBD,KAAKD,SAEpGE,GACH,MAAM,IAAII,MAAM,4GAIpB,OAAOJ,EAAgBC,EACzB,C,iCCXA,MAAMI,EAAY,GAElB,IAAK,IAAIC,EAAI,EAAGA,EAAI,MAAOA,EACzBD,EAAUE,MAAMD,EAAI,KAAOE,SAAS,IAAIC,MAAM,IAGzC,SAASC,EAAgBC,EAAKC,EAAS,GAG5C,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AAM,OACPiB,EAAAA,EAAAA,eAAChB,EAAc,CACXxE,UAAWA,EAAAA,EACX6H,MAAO7B,EAAWS,iBAClBqB,SAAWD,GAAUhB,EAAc,CAACJ,iBAAkBoB,IACtDM,yBAAuB,OAInC3C,EAAAA,EAAAA,eAAA,OAAK5C,IAAI,IAAImD,UAAWa,EAAMb,WAAY9F,UAAUmF,KACvD,EAEL0D,KAAIA,KAEItD,EAAAA,EAAAA,eAAC3B,EAAYkF,QAAO,O","sources":["webpack://irankala/./blocks/src/colors.js","webpack://irankala/./blocks/src/font-sizes.js","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/faq.js"],"sourcesContent":["export let colors = [\r\n {name: 'Black', color: '#000000'},\r\n {name: 'Cyan bluish gray', color: '#abb8c3'},\r\n {name: 'White', color: '#ffffff'},\r\n {name: 'Pale pink', color: '#f78da7'},\r\n {name: 'Vivid red', color: '#cf2e2e'},\r\n {name: 'Luminous vivid orange', color: '#ff6900'},\r\n {name: 'Luminous vivid amber', color: '#fcb900'},\r\n {name: 'Light green cyan', color: '#7bdcb5'},\r\n {name: 'Vivid green cyan', color: '#00d084'},\r\n {name: 'Pale cyan blue', color: '#8ed1fc'},\r\n {name: 'Vivid cyan blue', color: '#0693e3'},\r\n {name: 'Vivid purple', color: '#9b51e0'},\r\n];","export let fontSizes = [\r\n {\r\n name: IRK_BLOCK.extra_small,\r\n slug: 'x-small',\r\n size: 10,\r\n },\r\n {\r\n name: IRK_BLOCK.small,\r\n slug: 'small',\r\n size: 12,\r\n },\r\n {\r\n name: IRK_BLOCK.medium,\r\n slug: 'medium',\r\n size: 14,\r\n },\r\n {\r\n name: IRK_BLOCK.large,\r\n slug: 'large',\r\n size: 18,\r\n },\r\n {\r\n name: IRK_BLOCK.extra_large,\r\n slug: 'x-large',\r\n size: 24,\r\n },\r\n];","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\nimport {colors} from './colors';\r\nimport {fontSizes} from \"./font-sizes\";\r\n\r\nconst {registerBlockType} = wp.blocks;\r\nconst {Fragment} = wp.element;\r\nconst {\r\n InspectorControls,\r\n InnerBlocks,\r\n} = wp.blockEditor;\r\nconst {\r\n TextControl,\r\n TextareaControl,\r\n PanelBody,\r\n Button,\r\n Card,\r\n CardHeader,\r\n CardBody,\r\n __experimentalSpacer: Spacer,\r\n FontSizePicker,\r\n ColorPalette,\r\n __experimentalItemGroup: ItemGroup,\r\n __experimentalItem: Item,\r\n ColorIndicator,\r\n Dropdown,\r\n Flex,\r\n FlexItem\r\n} = wp.components;\r\n\r\nregisterBlockType(\r\n 'irankala/faq',\r\n {\r\n title: IRK_BLOCK.faq,\r\n description: IRK_BLOCK.faq_desc,\r\n icon:\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"irk-block-icon\" width=\"24\" height=\"24\" viewBox=\"0 96 960 960\">\r\n <path d=\"M474.97 810q17.465 0 30.16-12.724 12.696-12.724 12.696-30.188 0-17.465-12.678-29.798-12.679-12.334-30.517-12.334-17.182 0-29.515 12.317-12.334 12.316-12.334 30.154 0 17.182 12.362 29.877Q457.506 810 474.97 810Zm-37.188-148h65.479q0-28.174 9.435-48.927 9.434-20.753 35.852-45.794 28.756-29.322 42.039-54.979 13.283-25.656 13.283-55.961 0-55.469-35.131-86.469-35.13-31-90.958-31-54.221 0-91.327 27.608-37.106 27.609-54.672 71.174l62.044 25.392q14-25.739 33.883-41.37 19.882-15.63 49.03-15.63 28.609 0 44.565 14.773 15.956 14.772 15.956 39.123 0 18.756-11 36.125-11 17.37-31.347 37.283-38.696 37.261-47.913 61.695-9.218 24.435-9.218 66.957ZM185.087 950.131q-32.507 0-55.862-23.356-23.356-23.355-23.356-55.862V281.087q0-32.74 23.356-56.262 23.355-23.521 55.862-23.521h589.826q32.74 0 56.262 23.521 23.521 23.522 23.521 56.262v589.826q0 32.507-23.521 55.862-23.522 23.356-56.262 23.356H185.087Zm0-79.218h589.826V281.087H185.087v589.826Zm0-589.826v589.826-589.826Z\"/>\r\n </svg>,\r\n category: 'irankala',\r\n className: 'irk-block irk-block-faq',\r\n attributes: {\r\n irkUUID: {\r\n type: 'string',\r\n },\r\n title: {\r\n type: 'string',\r\n },\r\n faqList: {\r\n type: 'array',\r\n default: [],\r\n },\r\n titleFontSize: {\r\n type: 'number',\r\n },\r\n titleColor: {\r\n type: 'string',\r\n },\r\n itemTitleFontSize: {\r\n type: 'number',\r\n },\r\n itemTitleColor: {\r\n type: 'string',\r\n },\r\n itemTextFontSize: {\r\n type: 'number',\r\n },\r\n itemTextColor: {\r\n type: 'string',\r\n },\r\n },\r\n edit: (props) => {\r\n const {attributes, setAttributes} = props;\r\n let faqFields;\r\n let faqList = props.attributes.faqList;\r\n if (!props.attributes.hasOwnProperty('irkUUID')) {\r\n setAttributes({irkUUID: uuidv4()});\r\n }\r\n\r\n const addFaq = () => {\r\n const faqList = [...props.attributes.faqList];\r\n faqList.push({\r\n title: '',\r\n text: '',\r\n });\r\n props.setAttributes({faqList});\r\n }\r\n const removeFaq = (index) => {\r\n const faqList = [...props.attributes.faqList];\r\n faqList.splice(index, 1);\r\n props.setAttributes({faqList});\r\n }\r\n const faqChange = (index, faq, newFaq) => {\r\n const faqList = [...props.attributes.faqList];\r\n faqList[index][faq] = newFaq;\r\n props.setAttributes({faqList});\r\n }\r\n\r\n if (faqList.length) {\r\n faqFields = faqList.map((faq, index) => {\r\n const title = faq.title;\r\n const text = faq.text;\r\n\r\n return <Fragment key={index}>\r\n <Card size=\"xSmall\" className=\"components-base-control\">\r\n <CardHeader>\r\n <Button onClick={() => removeFaq(index)} isSmall icon=\"no-alt\" label={IRK_BLOCK.remove_item}/>\r\n </CardHeader>\r\n <CardBody>\r\n <TextControl\r\n placeholder={IRK_BLOCK.title}\r\n value={title}\r\n onChange={(newFaq) => faqChange(index, 'title', newFaq)}\r\n />\r\n <TextareaControl\r\n placeholder={IRK_BLOCK.text}\r\n value={text}\r\n onChange={(newFaq) => faqChange(index, 'text', newFaq)}\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 initialOpen={true}>\r\n <TextControl\r\n label={IRK_BLOCK.title}\r\n value={attributes.title}\r\n onChange={(value) => setAttributes({title: value})}\r\n />\r\n {faqFields}\r\n <Button variant=\"secondary\" onClick={addFaq.bind(this)}>{IRK_BLOCK.add_new}</Button>\r\n </PanelBody>\r\n <PanelBody title={IRK_BLOCK.title} initialOpen={false}>\r\n <FontSizePicker\r\n fontSizes={fontSizes}\r\n value={attributes.titleFontSize}\r\n onChange={(value) => setAttributes({titleFontSize: value})}\r\n __nextHasNoMarginBottom\r\n />\r\n <ItemGroup isBordered={true} isSeparated={true}>\r\n <Item>\r\n <Dropdown\r\n position=\"top left\"\r\n renderToggle={({isOpen, onToggle}) => (\r\n <Flex onClick={onToggle} aria-expanded={isOpen}>\r\n <FlexItem>\r\n <ColorIndicator colorValue={attributes.titleColor}/>\r\n </FlexItem>\r\n <FlexItem>{IRK_BLOCK.text}</FlexItem>\r\n </Flex>\r\n )}\r\n renderContent={() =>\r\n <ColorPalette\r\n colors={colors}\r\n value={attributes.titleColor}\r\n onChange={(value) => setAttributes({titleColor: value})}\r\n />}\r\n />\r\n </Item>\r\n </ItemGroup>\r\n </PanelBody>\r\n <PanelBody title={IRK_BLOCK.faq_title} initialOpen={false}>\r\n <ItemGroup isBordered={true} isSeparated={true}>\r\n <Item>\r\n <Dropdown\r\n position=\"top left\"\r\n renderToggle={({isOpen, onToggle}) => (\r\n <Flex onClick={onToggle} aria-expanded={isOpen}>\r\n <FlexItem>\r\n <ColorIndicator colorValue={attributes.itemTitleColor}/>\r\n </FlexItem>\r\n <FlexItem>{IRK_BLOCK.text}</FlexItem>\r\n </Flex>\r\n )}\r\n renderContent={() =>\r\n <ColorPalette\r\n colors={colors}\r\n value={attributes.itemTitleColor}\r\n onChange={(value) => setAttributes({itemTitleColor: value})}\r\n />}\r\n />\r\n </Item>\r\n </ItemGroup>\r\n <Spacer/>\r\n <FontSizePicker\r\n fontSizes={fontSizes}\r\n value={attributes.itemTitleFontSize}\r\n onChange={(value) => setAttributes({itemTitleFontSize: value})}\r\n __nextHasNoMarginBottom\r\n />\r\n </PanelBody>\r\n <PanelBody title={IRK_BLOCK.faq_text} initialOpen={false}>\r\n <ItemGroup isBordered={true} isSeparated={true}>\r\n <Item>\r\n <Dropdown\r\n position=\"top left\"\r\n renderToggle={({isOpen, onToggle}) => (\r\n <Flex onClick={onToggle} aria-expanded={isOpen}>\r\n <FlexItem>\r\n <ColorIndicator colorValue={attributes.itemTextColor}/>\r\n </FlexItem>\r\n <FlexItem>{IRK_BLOCK.text}</FlexItem>\r\n </Flex>\r\n )}\r\n renderContent={() =>\r\n <ColorPalette\r\n colors={colors}\r\n value={attributes.itemTextColor}\r\n onChange={(value) => setAttributes({itemTextColor: value})}\r\n />}\r\n />\r\n </Item>\r\n </ItemGroup>\r\n <Spacer/>\r\n <FontSizePicker\r\n fontSizes={fontSizes}\r\n value={attributes.itemTextFontSize}\r\n onChange={(value) => setAttributes({itemTextFontSize: value})}\r\n __nextHasNoMarginBottom\r\n />\r\n </PanelBody>\r\n </InspectorControls>,\r\n <div key=\"2\" className={props.className}>{IRK_BLOCK.faq}</div>\r\n ];\r\n },\r\n save() {\r\n return (\r\n <InnerBlocks.Content/>\r\n );\r\n },\r\n }\r\n);"],"names":["colors","name","color","fontSizes","IRK_BLOCK","extra_small","slug","size","small","medium","large","extra_large","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","blockEditor","TextControl","TextareaControl","PanelBody","Button","Card","CardHeader","CardBody","__experimentalSpacer","Spacer","FontSizePicker","ColorPalette","__experimentalItemGroup","ItemGroup","__experimentalItem","Item","ColorIndicator","Dropdown","Flex","FlexItem","components","title","faq","description","faq_desc","icon","createElement","xmlns","class","width","height","viewBox","category","className","attributes","irkUUID","type","faqList","default","titleFontSize","titleColor","itemTitleFontSize","itemTitleColor","itemTextFontSize","itemTextColor","edit","props","setAttributes","faqFields","uuidv4","faqChange","index","newFaq","length","map","text","onClick","splice","removeFaq","isSmall","label","remove_item","placeholder","value","onChange","initialOpen","variant","addFaq","add_new","__nextHasNoMarginBottom","isBordered","isSeparated","position","renderToggle","isOpen","onToggle","colorValue","renderContent","faq_title","faq_text","save","Content"],"sourceRoot":""}