{"version":3,"sources":["webpack:/webpack/bootstrap 1da46546ad8f66b4c2a3","webpack:/external \"window.jQuery\"","webpack:///src/scripts/modules/xicons.js","webpack:///src/scripts/xicons.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","window","jQuery","xicons","this","$","length","xiconsList","_toConsumableArray","Set","map","index","icon","attr","ajaxurl","x5script","nonce","security","getSvgIcons","content","find","each","el","prepend","post","action","icons","response","svg","type","iconElements","concat","iconElement","fill","hasAttribute","getAttribute","inlineSize","size","viewbox","split","html","css","width","height","fail","xhr","status","error","console","log","XIcons","contentListIcons","loadIcons"],"mappings":"aACA,IAAAA,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,GAAA,EACAH,QAAA,IAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,EAAAA,EAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,EAAA,CACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAhB,GACA,IAAAS,EAAAT,GAAAA,EAAAiB,WACA,WAA2B,OAAAjB,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAH,EAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,OAAAR,OAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,GAGAzB,EAAAA,EAAA0B,EAAA,0DC7DAvB,EAAAD,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D,EAAOE","file":"xicons.bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"multi \\\\src\\\\scripts\\\\xicons.js\");\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1da46546ad8f66b4c2a3","module.exports = window.jQuery;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"window.jQuery\"\n// module id = 0iPh\n// module chunks = xicons gutenberg customizer customizer-fonts blog app","import $ from 'jquery';\n\n/* global x5script */\n\nclass XIcons {\n loadIcons() {\n this.xicons = $('.c-xicon');\n\n if (!this.xicons.length) {\n return;\n }\n\n this.xiconsList = [\n ...new Set(\n this.xicons.map((index, icon) => $(icon).attr('data-xicon')).get(),\n ),\n ];\n\n this.ajaxurl = x5script.ajaxurl;\n this.nonce = x5script.security;\n\n this.getSvgIcons();\n }\n\n contentListIcons() {\n this.content = $('.js-post-content');\n\n this.content.find('ul.has-theme-bullet').each((i, el) => {\n const ul = $(el);\n\n ul.find('li').prepend('');\n });\n }\n\n getSvgIcons() {\n if (!this.xiconsList.length) {\n return;\n }\n\n $.post(\n this.ajaxurl,\n {\n action: 'x5_get_svg_icons',\n security: this.nonce,\n icons: this.xiconsList,\n },\n response => {\n if (response.svg) {\n $.each(response.svg, (type, svg) => {\n const iconElements = $(`.c-xicon[data-xicon=\"${type}\"]`);\n\n if (iconElements.length) {\n $.each(iconElements, (i, iconElement) => {\n const fill = iconElement.hasAttribute('data-fill')\n ? `fill=\"${iconElement.getAttribute('data-fill')}\"`\n : '';\n const inlineSize = iconElement.getAttribute('data-inline-size');\n const size = svg.viewbox.split(' ');\n\n $(iconElement).html(\n ``,\n );\n\n if (inlineSize === '1') {\n $(iconElement).css({\n width: size[2],\n height: size[3],\n });\n }\n });\n }\n });\n }\n },\n ).fail((xhr, status, error) => {\n // eslint-disable-next-line no-console\n console.log(error);\n });\n }\n}\n\nexport default new XIcons();\n\n\n\n// WEBPACK FOOTER //\n// ./src/scripts/modules/xicons.js","/*\n Project: Ucb Black Studies\n Author: xfive\n */\n\nimport XIcons from './modules/xicons';\n\nXIcons.contentListIcons();\nXIcons.loadIcons();\n\n\n\n// WEBPACK FOOTER //\n// ./src/scripts/xicons.js"]}