/home/techb158/dev.aleamaralawal.com/wp-content/plugins/polylang-pro/js/build
Edit: /home/techb158/dev.aleamaralawal.com/wp-content/plugins/polylang-pro/js/build/blocks.js (54766B)
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 991:
/***/ ((module) => {
module.exports = (function() { return this["lodash"]; }());
/***/ }),
/***/ 514:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["apiFetch"]; }());
/***/ }),
/***/ 538:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["blockEditor"]; }());
/***/ }),
/***/ 733:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["blocks"]; }());
/***/ }),
/***/ 893:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["components"]; }());
/***/ }),
/***/ 576:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["compose"]; }());
/***/ }),
/***/ 15:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["data"]; }());
/***/ }),
/***/ 293:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["element"]; }());
/***/ }),
/***/ 761:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["hooks"]; }());
/***/ }),
/***/ 122:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["i18n"]; }());
/***/ }),
/***/ 776:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["primitives"]; }());
/***/ }),
/***/ 169:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["serverSideRender"]; }());
/***/ }),
/***/ 470:
/***/ ((module) => {
module.exports = (function() { return this["wp"]["url"]; }());
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ () => (module);
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
(() => {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: external {"this":["wp","element"]}
var external_this_wp_element_ = __webpack_require__(293);
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
var external_this_wp_i18n_ = __webpack_require__(122);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(991);
// EXTERNAL MODULE: external {"this":["wp","compose"]}
var external_this_wp_compose_ = __webpack_require__(576);
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(761);
// EXTERNAL MODULE: external {"this":["wp","data"]}
var external_this_wp_data_ = __webpack_require__(15);
// EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
var external_this_wp_blockEditor_ = __webpack_require__(538);
// EXTERNAL MODULE: external {"this":["wp","components"]}
var external_this_wp_components_ = __webpack_require__(893);
// EXTERNAL MODULE: external {"this":["wp","primitives"]}
var external_this_wp_primitives_ = __webpack_require__(776);
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/duplication.js
/**
* Duplication icon - admin-page Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const duplication = isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M6 15v-13h10v13h-10zM5 16h8v2h-10v-13h2v11z"
})) : 'admin-page';
/* harmony default export */ const library_duplication = ((/* unused pure expression or super */ null && (duplication)));
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/pencil.js
/**
* Pencil icon - edit Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const pencil_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const pencil = pencil_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M13.89 3.39l2.71 2.72c0.46 0.46 0.42 1.24 0.030 1.64l-8.010 8.020-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.030c0.39-0.39 1.22-0.39 1.68 0.070zM11.16 6.18l-5.59 5.61 1.11 1.11 5.54-5.65zM8.19 14.41l5.58-5.6-1.070-1.080-5.59 5.6z"
})) : 'edit';
/* harmony default export */ const library_pencil = ((/* unused pure expression or super */ null && (pencil)));
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/plus.js
/**
* Plus icon - plus Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const plus_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const plus = plus_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M17 7v3h-5v5h-3v-5h-5v-3h5v-5h3v5h5z"
})) : 'plus';
/* harmony default export */ const library_plus = ((/* unused pure expression or super */ null && (plus)));
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/synchronization.js
/**
* Synchronization icon - controls-repeat Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const synchronization_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const synchronization = synchronization_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M5 7v3l-2 1.5v-6.5h11v-2l4 3.010-4 2.99v-2h-9zM15 13v-3l2-1.5v6.5h-11v2l-4-3.010 4-2.99v2h9z"
})) : 'controls-repeat';
/* harmony default export */ const library_synchronization = ((/* unused pure expression or super */ null && (synchronization)));
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/translation.js
/**
* Translation icon - translation Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const translation_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const translation = translation_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z"
})) : 'translation';
/* harmony default export */ const library_translation = (translation);
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/trash.js
/**
* Trash icon - trash Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const trash_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const trash = trash_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"
})) : 'trash';
/* harmony default export */ const library_trash = ((/* unused pure expression or super */ null && (trash)));
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/star.js
/**
* Star icon - star-filled Dashicon.
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
const star_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const star = star_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
width: "20",
height: "20",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "m10 1 3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z"
})) : 'star-filled';
/* harmony default export */ const library_star = ((/* unused pure expression or super */ null && (star)));
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/library/submenu.js
/**
* Submenu icon
*
* @package Polylang-Pro
*/
/**
* WordPress dependencies
*/
/**
* External dependencies
*/
const submenu_isPrimitivesComponents = !(0,external_lodash_.isUndefined)(wp.primitives);
const SubmenuIcon = () => submenu_isPrimitivesComponents ? (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.SVG, {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
viewBox: "0 0 12 12",
fill: "none"
}, (0,external_this_wp_element_.createElement)(external_this_wp_primitives_.Path, {
d: "M1.50002 4L6.00002 8L10.5 4",
strokeWidth: "1.5"
})) : 'submenu';
/* harmony default export */ const submenu = (SubmenuIcon);
;// CONCATENATED MODULE: ./modules/block-editor/js/icons/index.js
/**
* Icons library
*
* @package Polylang-Pro
*/
;// CONCATENATED MODULE: ./modules/block-editor/js/components/language-flag.js
/**
* @package Polylang-Pro
*/
/**
* External dependencies.
*/
/**
* Internal dependencies.
*/
/**
* Display a flag icon for a given language.
*
* @since 3.1
* @since 3.2 Now its own component.
*
* @param {Object} A language object.
*
* @return {Object}
*/
function LanguageFlag(_ref) {
let {
language
} = _ref;
return !(0,external_lodash_.isNil)(language) ? !(0,external_lodash_.isEmpty)(language.flag_url) ? (0,external_this_wp_element_.createElement)("span", {
className: "pll-select-flag"
}, (0,external_this_wp_element_.createElement)("img", {
src: language.flag_url,
alt: language.name,
title: language.name,
className: "flag"
})) : (0,external_this_wp_element_.createElement)("abbr", null, language.slug, (0,external_this_wp_element_.createElement)("span", {
className: "screen-reader-text"
}, language.name)) : (0,external_this_wp_element_.createElement)("span", {
className: "pll-translation-icon"
}, library_translation);
}
/* harmony default export */ const language_flag = (LanguageFlag);
;// CONCATENATED MODULE: ./modules/block-editor/js/components/language-dropdown.js
/**
* @package Polylang-Pro
*/
// External dependencies
/**
* Displays a dropdown to select a language.
*
* @since 3.1
*
* @param {Function} handleChange Callback to be executed when language changes.
* @param {mixed} children Child components to be used as select options.
* @param {Object} selectedLanguage An object representing a Polylang Language. Default to null.
* @param {string} Default value to be selected if the selected language is not provided. Default to an empty string.
*
* @return {Object} A dropdown selector for languages.
*/
function LanguageDropdown(_ref) {
let {
handleChange,
children,
selectedLanguage = null,
defaultValue = ''
} = _ref;
const selectedLanguageSlug = selectedLanguage !== null && selectedLanguage !== void 0 && selectedLanguage.slug ? selectedLanguage.slug : defaultValue;
return (0,external_this_wp_element_.createElement)("div", {
id: "select-post-language"
}, (0,external_this_wp_element_.createElement)(language_flag, {
language: selectedLanguage
}), children && (0,external_this_wp_element_.createElement)("select", {
value: selectedLanguageSlug,
onChange: event => handleChange(event),
id: "pll_post_lang_choice",
name: "pll_post_lang_choice",
className: "post_lang_choice"
}, children));
}
/**
* Map languages objects as options for a