Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: blocks.js
this["wp"] = this["wp"] || {}; this["wp"]["blocks"] =
[0] Fix | Delete
/******/ (function(modules) { // webpackBootstrap
[1] Fix | Delete
/******/ // The module cache
[2] Fix | Delete
/******/ var installedModules = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/******/ // The require function
[5] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[6] Fix | Delete
/******/
[7] Fix | Delete
/******/ // Check if module is in cache
[8] Fix | Delete
/******/ if(installedModules[moduleId]) {
[9] Fix | Delete
/******/ return installedModules[moduleId].exports;
[10] Fix | Delete
/******/ }
[11] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[12] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[13] Fix | Delete
/******/ i: moduleId,
[14] Fix | Delete
/******/ l: false,
[15] Fix | Delete
/******/ exports: {}
[16] Fix | Delete
/******/ };
[17] Fix | Delete
/******/
[18] Fix | Delete
/******/ // Execute the module function
[19] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[20] Fix | Delete
/******/
[21] Fix | Delete
/******/ // Flag the module as loaded
[22] Fix | Delete
/******/ module.l = true;
[23] Fix | Delete
/******/
[24] Fix | Delete
/******/ // Return the exports of the module
[25] Fix | Delete
/******/ return module.exports;
[26] Fix | Delete
/******/ }
[27] Fix | Delete
/******/
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[30] Fix | Delete
/******/ __webpack_require__.m = modules;
[31] Fix | Delete
/******/
[32] Fix | Delete
/******/ // expose the module cache
[33] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[34] Fix | Delete
/******/
[35] Fix | Delete
/******/ // define getter function for harmony exports
[36] Fix | Delete
/******/ __webpack_require__.d = function(exports, name, getter) {
[37] Fix | Delete
/******/ if(!__webpack_require__.o(exports, name)) {
[38] Fix | Delete
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
[39] Fix | Delete
/******/ }
[40] Fix | Delete
/******/ };
[41] Fix | Delete
/******/
[42] Fix | Delete
/******/ // define __esModule on exports
[43] Fix | Delete
/******/ __webpack_require__.r = function(exports) {
[44] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[45] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[46] Fix | Delete
/******/ }
[47] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[48] Fix | Delete
/******/ };
[49] Fix | Delete
/******/
[50] Fix | Delete
/******/ // create a fake namespace object
[51] Fix | Delete
/******/ // mode & 1: value is a module id, require it
[52] Fix | Delete
/******/ // mode & 2: merge all properties of value into the ns
[53] Fix | Delete
/******/ // mode & 4: return value when already ns object
[54] Fix | Delete
/******/ // mode & 8|1: behave like require
[55] Fix | Delete
/******/ __webpack_require__.t = function(value, mode) {
[56] Fix | Delete
/******/ if(mode & 1) value = __webpack_require__(value);
[57] Fix | Delete
/******/ if(mode & 8) return value;
[58] Fix | Delete
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
[59] Fix | Delete
/******/ var ns = Object.create(null);
[60] Fix | Delete
/******/ __webpack_require__.r(ns);
[61] Fix | Delete
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
[62] Fix | Delete
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
[63] Fix | Delete
/******/ return ns;
[64] Fix | Delete
/******/ };
[65] Fix | Delete
/******/
[66] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[67] Fix | Delete
/******/ __webpack_require__.n = function(module) {
[68] Fix | Delete
/******/ var getter = module && module.__esModule ?
[69] Fix | Delete
/******/ function getDefault() { return module['default']; } :
[70] Fix | Delete
/******/ function getModuleExports() { return module; };
[71] Fix | Delete
/******/ __webpack_require__.d(getter, 'a', getter);
[72] Fix | Delete
/******/ return getter;
[73] Fix | Delete
/******/ };
[74] Fix | Delete
/******/
[75] Fix | Delete
/******/ // Object.prototype.hasOwnProperty.call
[76] Fix | Delete
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
[77] Fix | Delete
/******/
[78] Fix | Delete
/******/ // __webpack_public_path__
[79] Fix | Delete
/******/ __webpack_require__.p = "";
[80] Fix | Delete
/******/
[81] Fix | Delete
/******/
[82] Fix | Delete
/******/ // Load entry module and return exports
[83] Fix | Delete
/******/ return __webpack_require__(__webpack_require__.s = "0ATp");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "//Lo":
[89] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[90] Fix | Delete
[91] Fix | Delete
"use strict";
[92] Fix | Delete
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
[93] Fix | Delete
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
[94] Fix | Delete
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
[95] Fix | Delete
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
[96] Fix | Delete
[97] Fix | Delete
[98] Fix | Delete
/**
[99] Fix | Delete
* WordPress dependencies
[100] Fix | Delete
*/
[101] Fix | Delete
[102] Fix | Delete
var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
[103] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[104] Fix | Delete
viewBox: "0 0 24 24"
[105] Fix | Delete
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
[106] Fix | Delete
d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"
[107] Fix | Delete
}));
[108] Fix | Delete
/* harmony default export */ __webpack_exports__["a"] = (blockDefault);
[109] Fix | Delete
[110] Fix | Delete
[111] Fix | Delete
/***/ }),
[112] Fix | Delete
[113] Fix | Delete
/***/ "0ATp":
[114] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[115] Fix | Delete
[116] Fix | Delete
"use strict";
[117] Fix | Delete
// ESM COMPAT FLAG
[118] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[119] Fix | Delete
[120] Fix | Delete
// EXPORTS
[121] Fix | Delete
__webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; });
[122] Fix | Delete
__webpack_require__.d(__webpack_exports__, "createBlock", function() { return /* reexport */ createBlock; });
[123] Fix | Delete
__webpack_require__.d(__webpack_exports__, "createBlocksFromInnerBlocksTemplate", function() { return /* reexport */ createBlocksFromInnerBlocksTemplate; });
[124] Fix | Delete
__webpack_require__.d(__webpack_exports__, "cloneBlock", function() { return /* reexport */ cloneBlock; });
[125] Fix | Delete
__webpack_require__.d(__webpack_exports__, "__experimentalCloneSanitizedBlock", function() { return /* reexport */ __experimentalCloneSanitizedBlock; });
[126] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getPossibleBlockTransformations", function() { return /* reexport */ getPossibleBlockTransformations; });
[127] Fix | Delete
__webpack_require__.d(__webpack_exports__, "switchToBlockType", function() { return /* reexport */ switchToBlockType; });
[128] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockTransforms", function() { return /* reexport */ getBlockTransforms; });
[129] Fix | Delete
__webpack_require__.d(__webpack_exports__, "findTransform", function() { return /* reexport */ findTransform; });
[130] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockFromExample", function() { return /* reexport */ factory_getBlockFromExample; });
[131] Fix | Delete
__webpack_require__.d(__webpack_exports__, "parse", function() { return /* reexport */ parser; });
[132] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockAttributes", function() { return /* reexport */ getBlockAttributes; });
[133] Fix | Delete
__webpack_require__.d(__webpack_exports__, "parseWithAttributeSchema", function() { return /* reexport */ parseWithAttributeSchema; });
[134] Fix | Delete
__webpack_require__.d(__webpack_exports__, "pasteHandler", function() { return /* reexport */ pasteHandler; });
[135] Fix | Delete
__webpack_require__.d(__webpack_exports__, "rawHandler", function() { return /* reexport */ rawHandler; });
[136] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getPhrasingContentSchema", function() { return /* reexport */ deprecatedGetPhrasingContentSchema; });
[137] Fix | Delete
__webpack_require__.d(__webpack_exports__, "serialize", function() { return /* reexport */ serialize; });
[138] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockContent", function() { return /* reexport */ getBlockContent; });
[139] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockDefaultClassName", function() { return /* reexport */ getBlockDefaultClassName; });
[140] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockMenuDefaultClassName", function() { return /* reexport */ getBlockMenuDefaultClassName; });
[141] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getSaveElement", function() { return /* reexport */ getSaveElement; });
[142] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getSaveContent", function() { return /* reexport */ getSaveContent; });
[143] Fix | Delete
__webpack_require__.d(__webpack_exports__, "__unstableGetBlockProps", function() { return /* reexport */ getBlockProps; });
[144] Fix | Delete
__webpack_require__.d(__webpack_exports__, "__unstableSerializeAndClean", function() { return /* reexport */ __unstableSerializeAndClean; });
[145] Fix | Delete
__webpack_require__.d(__webpack_exports__, "isValidBlockContent", function() { return /* reexport */ isValidBlockContent; });
[146] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getCategories", function() { return /* reexport */ categories_getCategories; });
[147] Fix | Delete
__webpack_require__.d(__webpack_exports__, "setCategories", function() { return /* reexport */ categories_setCategories; });
[148] Fix | Delete
__webpack_require__.d(__webpack_exports__, "updateCategory", function() { return /* reexport */ categories_updateCategory; });
[149] Fix | Delete
__webpack_require__.d(__webpack_exports__, "registerBlockType", function() { return /* reexport */ registerBlockType; });
[150] Fix | Delete
__webpack_require__.d(__webpack_exports__, "registerBlockCollection", function() { return /* reexport */ registerBlockCollection; });
[151] Fix | Delete
__webpack_require__.d(__webpack_exports__, "unregisterBlockType", function() { return /* reexport */ unregisterBlockType; });
[152] Fix | Delete
__webpack_require__.d(__webpack_exports__, "setFreeformContentHandlerName", function() { return /* reexport */ setFreeformContentHandlerName; });
[153] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getFreeformContentHandlerName", function() { return /* reexport */ getFreeformContentHandlerName; });
[154] Fix | Delete
__webpack_require__.d(__webpack_exports__, "setUnregisteredTypeHandlerName", function() { return /* reexport */ setUnregisteredTypeHandlerName; });
[155] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getUnregisteredTypeHandlerName", function() { return /* reexport */ getUnregisteredTypeHandlerName; });
[156] Fix | Delete
__webpack_require__.d(__webpack_exports__, "setDefaultBlockName", function() { return /* reexport */ registration_setDefaultBlockName; });
[157] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getDefaultBlockName", function() { return /* reexport */ registration_getDefaultBlockName; });
[158] Fix | Delete
__webpack_require__.d(__webpack_exports__, "setGroupingBlockName", function() { return /* reexport */ registration_setGroupingBlockName; });
[159] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getGroupingBlockName", function() { return /* reexport */ registration_getGroupingBlockName; });
[160] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockType", function() { return /* reexport */ registration_getBlockType; });
[161] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockTypes", function() { return /* reexport */ registration_getBlockTypes; });
[162] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockSupport", function() { return /* reexport */ registration_getBlockSupport; });
[163] Fix | Delete
__webpack_require__.d(__webpack_exports__, "hasBlockSupport", function() { return /* reexport */ registration_hasBlockSupport; });
[164] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getBlockVariations", function() { return /* reexport */ registration_getBlockVariations; });
[165] Fix | Delete
__webpack_require__.d(__webpack_exports__, "isReusableBlock", function() { return /* reexport */ isReusableBlock; });
[166] Fix | Delete
__webpack_require__.d(__webpack_exports__, "getChildBlockNames", function() { return /* reexport */ registration_getChildBlockNames; });
[167] Fix | Delete
__webpack_require__.d(__webpack_exports__, "hasChildBlocks", function() { return /* reexport */ registration_hasChildBlocks; });
[168] Fix | Delete
__webpack_require__.d(__webpack_exports__, "hasChildBlocksWithInserterSupport", function() { return /* reexport */ registration_hasChildBlocksWithInserterSupport; });
[169] Fix | Delete
__webpack_require__.d(__webpack_exports__, "unstable__bootstrapServerSideBlockDefinitions", function() { return /* reexport */ unstable__bootstrapServerSideBlockDefinitions; });
[170] Fix | Delete
__webpack_require__.d(__webpack_exports__, "registerBlockStyle", function() { return /* reexport */ registration_registerBlockStyle; });
[171] Fix | Delete
__webpack_require__.d(__webpack_exports__, "unregisterBlockStyle", function() { return /* reexport */ registration_unregisterBlockStyle; });
[172] Fix | Delete
__webpack_require__.d(__webpack_exports__, "registerBlockVariation", function() { return /* reexport */ registration_registerBlockVariation; });
[173] Fix | Delete
__webpack_require__.d(__webpack_exports__, "unregisterBlockVariation", function() { return /* reexport */ registration_unregisterBlockVariation; });
[174] Fix | Delete
__webpack_require__.d(__webpack_exports__, "isUnmodifiedDefaultBlock", function() { return /* reexport */ isUnmodifiedDefaultBlock; });
[175] Fix | Delete
__webpack_require__.d(__webpack_exports__, "normalizeIconObject", function() { return /* reexport */ normalizeIconObject; });
[176] Fix | Delete
__webpack_require__.d(__webpack_exports__, "isValidIcon", function() { return /* reexport */ isValidIcon; });
[177] Fix | Delete
__webpack_require__.d(__webpack_exports__, "__experimentalGetBlockLabel", function() { return /* reexport */ getBlockLabel; });
[178] Fix | Delete
__webpack_require__.d(__webpack_exports__, "__experimentalGetAccessibleBlockLabel", function() { return /* reexport */ getAccessibleBlockLabel; });
[179] Fix | Delete
__webpack_require__.d(__webpack_exports__, "doBlocksMatchTemplate", function() { return /* reexport */ doBlocksMatchTemplate; });
[180] Fix | Delete
__webpack_require__.d(__webpack_exports__, "synchronizeBlocksWithTemplate", function() { return /* reexport */ synchronizeBlocksWithTemplate; });
[181] Fix | Delete
__webpack_require__.d(__webpack_exports__, "children", function() { return /* reexport */ api_children; });
[182] Fix | Delete
__webpack_require__.d(__webpack_exports__, "node", function() { return /* reexport */ api_node; });
[183] Fix | Delete
__webpack_require__.d(__webpack_exports__, "__EXPERIMENTAL_STYLE_PROPERTY", function() { return /* reexport */ __EXPERIMENTAL_STYLE_PROPERTY; });
[184] Fix | Delete
__webpack_require__.d(__webpack_exports__, "withBlockContentContext", function() { return /* reexport */ withBlockContentContext; });
[185] Fix | Delete
[186] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/selectors.js
[187] Fix | Delete
var selectors_namespaceObject = {};
[188] Fix | Delete
__webpack_require__.r(selectors_namespaceObject);
[189] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getBlockTypes", function() { return getBlockTypes; });
[190] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getBlockType", function() { return getBlockType; });
[191] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getBlockStyles", function() { return getBlockStyles; });
[192] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getBlockVariations", function() { return selectors_getBlockVariations; });
[193] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getDefaultBlockVariation", function() { return getDefaultBlockVariation; });
[194] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getCategories", function() { return getCategories; });
[195] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getCollections", function() { return getCollections; });
[196] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getDefaultBlockName", function() { return getDefaultBlockName; });
[197] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getFreeformFallbackBlockName", function() { return getFreeformFallbackBlockName; });
[198] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getUnregisteredFallbackBlockName", function() { return getUnregisteredFallbackBlockName; });
[199] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getGroupingBlockName", function() { return getGroupingBlockName; });
[200] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getChildBlockNames", function() { return selectors_getChildBlockNames; });
[201] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getBlockSupport", function() { return selectors_getBlockSupport; });
[202] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "hasBlockSupport", function() { return hasBlockSupport; });
[203] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "isMatchingSearchTerm", function() { return isMatchingSearchTerm; });
[204] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "hasChildBlocks", function() { return selectors_hasChildBlocks; });
[205] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "hasChildBlocksWithInserterSupport", function() { return selectors_hasChildBlocksWithInserterSupport; });
[206] Fix | Delete
[207] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/actions.js
[208] Fix | Delete
var actions_namespaceObject = {};
[209] Fix | Delete
__webpack_require__.r(actions_namespaceObject);
[210] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "addBlockTypes", function() { return addBlockTypes; });
[211] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "removeBlockTypes", function() { return removeBlockTypes; });
[212] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "addBlockStyles", function() { return addBlockStyles; });
[213] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "removeBlockStyles", function() { return removeBlockStyles; });
[214] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "addBlockVariations", function() { return addBlockVariations; });
[215] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "removeBlockVariations", function() { return removeBlockVariations; });
[216] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "setDefaultBlockName", function() { return setDefaultBlockName; });
[217] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "setFreeformFallbackBlockName", function() { return setFreeformFallbackBlockName; });
[218] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "setUnregisteredFallbackBlockName", function() { return setUnregisteredFallbackBlockName; });
[219] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "setGroupingBlockName", function() { return setGroupingBlockName; });
[220] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "setCategories", function() { return setCategories; });
[221] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "updateCategory", function() { return updateCategory; });
[222] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "addBlockCollection", function() { return addBlockCollection; });
[223] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "removeBlockCollection", function() { return removeBlockCollection; });
[224] Fix | Delete
[225] Fix | Delete
// EXTERNAL MODULE: external ["wp","data"]
[226] Fix | Delete
var external_wp_data_ = __webpack_require__("1ZqX");
[227] Fix | Delete
[228] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
[229] Fix | Delete
var toConsumableArray = __webpack_require__("KQm4");
[230] Fix | Delete
[231] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
[232] Fix | Delete
var defineProperty = __webpack_require__("rePB");
[233] Fix | Delete
[234] Fix | Delete
// EXTERNAL MODULE: external "lodash"
[235] Fix | Delete
var external_lodash_ = __webpack_require__("YLtl");
[236] Fix | Delete
[237] Fix | Delete
// EXTERNAL MODULE: external ["wp","i18n"]
[238] Fix | Delete
var external_wp_i18n_ = __webpack_require__("l3Sj");
[239] Fix | Delete
[240] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/reducer.js
[241] Fix | Delete
[242] Fix | Delete
[243] Fix | Delete
[244] Fix | Delete
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[245] Fix | Delete
[246] Fix | Delete
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[247] Fix | Delete
[248] Fix | Delete
/**
[249] Fix | Delete
* External dependencies
[250] Fix | Delete
*/
[251] Fix | Delete
[252] Fix | Delete
/**
[253] Fix | Delete
* WordPress dependencies
[254] Fix | Delete
*/
[255] Fix | Delete
[256] Fix | Delete
[257] Fix | Delete
[258] Fix | Delete
/**
[259] Fix | Delete
* @typedef {Object} WPBlockCategory
[260] Fix | Delete
*
[261] Fix | Delete
* @property {string} slug Unique category slug.
[262] Fix | Delete
* @property {string} title Category label, for display in user interface.
[263] Fix | Delete
*/
[264] Fix | Delete
[265] Fix | Delete
/**
[266] Fix | Delete
* Default set of categories.
[267] Fix | Delete
*
[268] Fix | Delete
* @type {WPBlockCategory[]}
[269] Fix | Delete
*/
[270] Fix | Delete
[271] Fix | Delete
var DEFAULT_CATEGORIES = [{
[272] Fix | Delete
slug: 'text',
[273] Fix | Delete
title: Object(external_wp_i18n_["__"])('Text')
[274] Fix | Delete
}, {
[275] Fix | Delete
slug: 'media',
[276] Fix | Delete
title: Object(external_wp_i18n_["__"])('Media')
[277] Fix | Delete
}, {
[278] Fix | Delete
slug: 'design',
[279] Fix | Delete
title: Object(external_wp_i18n_["__"])('Design')
[280] Fix | Delete
}, {
[281] Fix | Delete
slug: 'widgets',
[282] Fix | Delete
title: Object(external_wp_i18n_["__"])('Widgets')
[283] Fix | Delete
}, {
[284] Fix | Delete
slug: 'embed',
[285] Fix | Delete
title: Object(external_wp_i18n_["__"])('Embeds')
[286] Fix | Delete
}, {
[287] Fix | Delete
slug: 'reusable',
[288] Fix | Delete
title: Object(external_wp_i18n_["__"])('Reusable blocks')
[289] Fix | Delete
}];
[290] Fix | Delete
/**
[291] Fix | Delete
* Reducer managing the block types
[292] Fix | Delete
*
[293] Fix | Delete
* @param {Object} state Current state.
[294] Fix | Delete
* @param {Object} action Dispatched action.
[295] Fix | Delete
*
[296] Fix | Delete
* @return {Object} Updated state.
[297] Fix | Delete
*/
[298] Fix | Delete
[299] Fix | Delete
function reducer_blockTypes() {
[300] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[301] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[302] Fix | Delete
[303] Fix | Delete
switch (action.type) {
[304] Fix | Delete
case 'ADD_BLOCK_TYPES':
[305] Fix | Delete
return _objectSpread(_objectSpread({}, state), Object(external_lodash_["keyBy"])(Object(external_lodash_["map"])(action.blockTypes, function (blockType) {
[306] Fix | Delete
return Object(external_lodash_["omit"])(blockType, 'styles ');
[307] Fix | Delete
}), 'name'));
[308] Fix | Delete
[309] Fix | Delete
case 'REMOVE_BLOCK_TYPES':
[310] Fix | Delete
return Object(external_lodash_["omit"])(state, action.names);
[311] Fix | Delete
}
[312] Fix | Delete
[313] Fix | Delete
return state;
[314] Fix | Delete
}
[315] Fix | Delete
/**
[316] Fix | Delete
* Reducer managing the block style variations.
[317] Fix | Delete
*
[318] Fix | Delete
* @param {Object} state Current state.
[319] Fix | Delete
* @param {Object} action Dispatched action.
[320] Fix | Delete
*
[321] Fix | Delete
* @return {Object} Updated state.
[322] Fix | Delete
*/
[323] Fix | Delete
[324] Fix | Delete
function blockStyles() {
[325] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[326] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[327] Fix | Delete
[328] Fix | Delete
switch (action.type) {
[329] Fix | Delete
case 'ADD_BLOCK_TYPES':
[330] Fix | Delete
return _objectSpread(_objectSpread({}, state), Object(external_lodash_["mapValues"])(Object(external_lodash_["keyBy"])(action.blockTypes, 'name'), function (blockType) {
[331] Fix | Delete
return Object(external_lodash_["uniqBy"])([].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["get"])(blockType, ['styles'], [])), Object(toConsumableArray["a" /* default */])(Object(external_lodash_["get"])(state, [blockType.name], []))), function (style) {
[332] Fix | Delete
return style.name;
[333] Fix | Delete
});
[334] Fix | Delete
}));
[335] Fix | Delete
[336] Fix | Delete
case 'ADD_BLOCK_STYLES':
[337] Fix | Delete
return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.blockName, Object(external_lodash_["uniqBy"])([].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["get"])(state, [action.blockName], [])), Object(toConsumableArray["a" /* default */])(action.styles)), function (style) {
[338] Fix | Delete
return style.name;
[339] Fix | Delete
})));
[340] Fix | Delete
[341] Fix | Delete
case 'REMOVE_BLOCK_STYLES':
[342] Fix | Delete
return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.blockName, Object(external_lodash_["filter"])(Object(external_lodash_["get"])(state, [action.blockName], []), function (style) {
[343] Fix | Delete
return action.styleNames.indexOf(style.name) === -1;
[344] Fix | Delete
})));
[345] Fix | Delete
}
[346] Fix | Delete
[347] Fix | Delete
return state;
[348] Fix | Delete
}
[349] Fix | Delete
/**
[350] Fix | Delete
* Reducer managing the block variations.
[351] Fix | Delete
*
[352] Fix | Delete
* @param {Object} state Current state.
[353] Fix | Delete
* @param {Object} action Dispatched action.
[354] Fix | Delete
*
[355] Fix | Delete
* @return {Object} Updated state.
[356] Fix | Delete
*/
[357] Fix | Delete
[358] Fix | Delete
function blockVariations() {
[359] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[360] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[361] Fix | Delete
[362] Fix | Delete
switch (action.type) {
[363] Fix | Delete
case 'ADD_BLOCK_TYPES':
[364] Fix | Delete
return _objectSpread(_objectSpread({}, state), Object(external_lodash_["mapValues"])(Object(external_lodash_["keyBy"])(action.blockTypes, 'name'), function (blockType) {
[365] Fix | Delete
return Object(external_lodash_["uniqBy"])([].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["get"])(blockType, ['variations'], [])), Object(toConsumableArray["a" /* default */])(Object(external_lodash_["get"])(state, [blockType.name], []))), function (variation) {
[366] Fix | Delete
return variation.name;
[367] Fix | Delete
});
[368] Fix | Delete
}));
[369] Fix | Delete
[370] Fix | Delete
case 'ADD_BLOCK_VARIATIONS':
[371] Fix | Delete
return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.blockName, Object(external_lodash_["uniqBy"])([].concat(Object(toConsumableArray["a" /* default */])(Object(external_lodash_["get"])(state, [action.blockName], [])), Object(toConsumableArray["a" /* default */])(action.variations)), function (variation) {
[372] Fix | Delete
return variation.name;
[373] Fix | Delete
})));
[374] Fix | Delete
[375] Fix | Delete
case 'REMOVE_BLOCK_VARIATIONS':
[376] Fix | Delete
return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.blockName, Object(external_lodash_["filter"])(Object(external_lodash_["get"])(state, [action.blockName], []), function (variation) {
[377] Fix | Delete
return action.variationNames.indexOf(variation.name) === -1;
[378] Fix | Delete
})));
[379] Fix | Delete
}
[380] Fix | Delete
[381] Fix | Delete
return state;
[382] Fix | Delete
}
[383] Fix | Delete
/**
[384] Fix | Delete
* Higher-order Reducer creating a reducer keeping track of given block name.
[385] Fix | Delete
*
[386] Fix | Delete
* @param {string} setActionType Action type.
[387] Fix | Delete
*
[388] Fix | Delete
* @return {Function} Reducer.
[389] Fix | Delete
*/
[390] Fix | Delete
[391] Fix | Delete
function createBlockNameSetterReducer(setActionType) {
[392] Fix | Delete
return function () {
[393] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
[394] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[395] Fix | Delete
[396] Fix | Delete
switch (action.type) {
[397] Fix | Delete
case 'REMOVE_BLOCK_TYPES':
[398] Fix | Delete
if (action.names.indexOf(state) !== -1) {
[399] Fix | Delete
return null;
[400] Fix | Delete
}
[401] Fix | Delete
[402] Fix | Delete
return state;
[403] Fix | Delete
[404] Fix | Delete
case setActionType:
[405] Fix | Delete
return action.name || null;
[406] Fix | Delete
}
[407] Fix | Delete
[408] Fix | Delete
return state;
[409] Fix | Delete
};
[410] Fix | Delete
}
[411] Fix | Delete
var reducer_defaultBlockName = createBlockNameSetterReducer('SET_DEFAULT_BLOCK_NAME');
[412] Fix | Delete
var freeformFallbackBlockName = createBlockNameSetterReducer('SET_FREEFORM_FALLBACK_BLOCK_NAME');
[413] Fix | Delete
var unregisteredFallbackBlockName = createBlockNameSetterReducer('SET_UNREGISTERED_FALLBACK_BLOCK_NAME');
[414] Fix | Delete
var groupingBlockName = createBlockNameSetterReducer('SET_GROUPING_BLOCK_NAME');
[415] Fix | Delete
/**
[416] Fix | Delete
* Reducer managing the categories
[417] Fix | Delete
*
[418] Fix | Delete
* @param {WPBlockCategory[]} state Current state.
[419] Fix | Delete
* @param {Object} action Dispatched action.
[420] Fix | Delete
*
[421] Fix | Delete
* @return {WPBlockCategory[]} Updated state.
[422] Fix | Delete
*/
[423] Fix | Delete
[424] Fix | Delete
function reducer_categories() {
[425] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_CATEGORIES;
[426] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[427] Fix | Delete
[428] Fix | Delete
switch (action.type) {
[429] Fix | Delete
case 'SET_CATEGORIES':
[430] Fix | Delete
return action.categories || [];
[431] Fix | Delete
[432] Fix | Delete
case 'UPDATE_CATEGORY':
[433] Fix | Delete
{
[434] Fix | Delete
if (!action.category || Object(external_lodash_["isEmpty"])(action.category)) {
[435] Fix | Delete
return state;
[436] Fix | Delete
}
[437] Fix | Delete
[438] Fix | Delete
var categoryToChange = Object(external_lodash_["find"])(state, ['slug', action.slug]);
[439] Fix | Delete
[440] Fix | Delete
if (categoryToChange) {
[441] Fix | Delete
return Object(external_lodash_["map"])(state, function (category) {
[442] Fix | Delete
if (category.slug === action.slug) {
[443] Fix | Delete
return _objectSpread(_objectSpread({}, category), action.category);
[444] Fix | Delete
}
[445] Fix | Delete
[446] Fix | Delete
return category;
[447] Fix | Delete
});
[448] Fix | Delete
}
[449] Fix | Delete
}
[450] Fix | Delete
}
[451] Fix | Delete
[452] Fix | Delete
return state;
[453] Fix | Delete
}
[454] Fix | Delete
function collections() {
[455] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[456] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[457] Fix | Delete
[458] Fix | Delete
switch (action.type) {
[459] Fix | Delete
case 'ADD_BLOCK_COLLECTION':
[460] Fix | Delete
return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.namespace, {
[461] Fix | Delete
title: action.title,
[462] Fix | Delete
icon: action.icon
[463] Fix | Delete
}));
[464] Fix | Delete
[465] Fix | Delete
case 'REMOVE_BLOCK_COLLECTION':
[466] Fix | Delete
return Object(external_lodash_["omit"])(state, action.namespace);
[467] Fix | Delete
}
[468] Fix | Delete
[469] Fix | Delete
return state;
[470] Fix | Delete
}
[471] Fix | Delete
/* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
[472] Fix | Delete
blockTypes: reducer_blockTypes,
[473] Fix | Delete
blockStyles: blockStyles,
[474] Fix | Delete
blockVariations: blockVariations,
[475] Fix | Delete
defaultBlockName: reducer_defaultBlockName,
[476] Fix | Delete
freeformFallbackBlockName: freeformFallbackBlockName,
[477] Fix | Delete
unregisteredFallbackBlockName: unregisteredFallbackBlockName,
[478] Fix | Delete
groupingBlockName: groupingBlockName,
[479] Fix | Delete
categories: reducer_categories,
[480] Fix | Delete
collections: collections
[481] Fix | Delete
}));
[482] Fix | Delete
[483] Fix | Delete
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
[484] Fix | Delete
var rememo = __webpack_require__("pPDe");
[485] Fix | Delete
[486] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/store/selectors.js
[487] Fix | Delete
[488] Fix | Delete
[489] Fix | Delete
[490] Fix | Delete
function selectors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[491] Fix | Delete
[492] Fix | Delete
function selectors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { selectors_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { selectors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[493] Fix | Delete
[494] Fix | Delete
/**
[495] Fix | Delete
* External dependencies
[496] Fix | Delete
*/
[497] Fix | Delete
[498] Fix | Delete
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function