Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: blocks.js
* WordPress dependencies
[7000] Fix | Delete
*/
[7001] Fix | Delete
[7002] Fix | Delete
/**
[7003] Fix | Delete
* Internal dependencies
[7004] Fix | Delete
*/
[7005] Fix | Delete
[7006] Fix | Delete
[7007] Fix | Delete
/** @typedef {import('../store/reducer').WPBlockCategory} WPBlockCategory */
[7008] Fix | Delete
[7009] Fix | Delete
/**
[7010] Fix | Delete
* Returns all the block categories.
[7011] Fix | Delete
*
[7012] Fix | Delete
* @return {WPBlockCategory[]} Block categories.
[7013] Fix | Delete
*/
[7014] Fix | Delete
[7015] Fix | Delete
function categories_getCategories() {
[7016] Fix | Delete
return Object(external_wp_data_["select"])(store).getCategories();
[7017] Fix | Delete
}
[7018] Fix | Delete
/**
[7019] Fix | Delete
* Sets the block categories.
[7020] Fix | Delete
*
[7021] Fix | Delete
* @param {WPBlockCategory[]} categories Block categories.
[7022] Fix | Delete
*/
[7023] Fix | Delete
[7024] Fix | Delete
function categories_setCategories(categories) {
[7025] Fix | Delete
Object(external_wp_data_["dispatch"])(store).setCategories(categories);
[7026] Fix | Delete
}
[7027] Fix | Delete
/**
[7028] Fix | Delete
* Updates a category.
[7029] Fix | Delete
*
[7030] Fix | Delete
* @param {string} slug Block category slug.
[7031] Fix | Delete
* @param {WPBlockCategory} category Object containing the category properties
[7032] Fix | Delete
* that should be updated.
[7033] Fix | Delete
*/
[7034] Fix | Delete
[7035] Fix | Delete
function categories_updateCategory(slug, category) {
[7036] Fix | Delete
Object(external_wp_data_["dispatch"])(store).updateCategory(slug, category);
[7037] Fix | Delete
}
[7038] Fix | Delete
[7039] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/templates.js
[7040] Fix | Delete
[7041] Fix | Delete
[7042] Fix | Delete
[7043] Fix | Delete
function templates_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; }
[7044] Fix | Delete
[7045] Fix | Delete
function templates_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { templates_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 { templates_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[7046] Fix | Delete
[7047] Fix | Delete
/**
[7048] Fix | Delete
* External dependencies
[7049] Fix | Delete
*/
[7050] Fix | Delete
[7051] Fix | Delete
/**
[7052] Fix | Delete
* WordPress dependencies
[7053] Fix | Delete
*/
[7054] Fix | Delete
[7055] Fix | Delete
[7056] Fix | Delete
/**
[7057] Fix | Delete
* Internal dependencies
[7058] Fix | Delete
*/
[7059] Fix | Delete
[7060] Fix | Delete
[7061] Fix | Delete
[7062] Fix | Delete
[7063] Fix | Delete
/**
[7064] Fix | Delete
* Checks whether a list of blocks matches a template by comparing the block names.
[7065] Fix | Delete
*
[7066] Fix | Delete
* @param {Array} blocks Block list.
[7067] Fix | Delete
* @param {Array} template Block template.
[7068] Fix | Delete
*
[7069] Fix | Delete
* @return {boolean} Whether the list of blocks matches a templates
[7070] Fix | Delete
*/
[7071] Fix | Delete
[7072] Fix | Delete
function doBlocksMatchTemplate() {
[7073] Fix | Delete
var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
[7074] Fix | Delete
var template = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
[7075] Fix | Delete
return blocks.length === template.length && Object(external_lodash_["every"])(template, function (_ref, index) {
[7076] Fix | Delete
var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 3),
[7077] Fix | Delete
name = _ref2[0],
[7078] Fix | Delete
innerBlocksTemplate = _ref2[2];
[7079] Fix | Delete
[7080] Fix | Delete
var block = blocks[index];
[7081] Fix | Delete
return name === block.name && doBlocksMatchTemplate(block.innerBlocks, innerBlocksTemplate);
[7082] Fix | Delete
});
[7083] Fix | Delete
}
[7084] Fix | Delete
/**
[7085] Fix | Delete
* Synchronize a block list with a block template.
[7086] Fix | Delete
*
[7087] Fix | Delete
* Synchronizing a block list with a block template means that we loop over the blocks
[7088] Fix | Delete
* keep the block as is if it matches the block at the same position in the template
[7089] Fix | Delete
* (If it has the same name) and if doesn't match, we create a new block based on the template.
[7090] Fix | Delete
* Extra blocks not present in the template are removed.
[7091] Fix | Delete
*
[7092] Fix | Delete
* @param {Array} blocks Block list.
[7093] Fix | Delete
* @param {Array} template Block template.
[7094] Fix | Delete
*
[7095] Fix | Delete
* @return {Array} Updated Block list.
[7096] Fix | Delete
*/
[7097] Fix | Delete
[7098] Fix | Delete
function synchronizeBlocksWithTemplate() {
[7099] Fix | Delete
var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
[7100] Fix | Delete
var template = arguments.length > 1 ? arguments[1] : undefined;
[7101] Fix | Delete
[7102] Fix | Delete
// If no template is provided, return blocks unmodified.
[7103] Fix | Delete
if (!template) {
[7104] Fix | Delete
return blocks;
[7105] Fix | Delete
}
[7106] Fix | Delete
[7107] Fix | Delete
return Object(external_lodash_["map"])(template, function (_ref3, index) {
[7108] Fix | Delete
var _ref4 = Object(slicedToArray["a" /* default */])(_ref3, 3),
[7109] Fix | Delete
name = _ref4[0],
[7110] Fix | Delete
attributes = _ref4[1],
[7111] Fix | Delete
innerBlocksTemplate = _ref4[2];
[7112] Fix | Delete
[7113] Fix | Delete
var block = blocks[index];
[7114] Fix | Delete
[7115] Fix | Delete
if (block && block.name === name) {
[7116] Fix | Delete
var innerBlocks = synchronizeBlocksWithTemplate(block.innerBlocks, innerBlocksTemplate);
[7117] Fix | Delete
return templates_objectSpread(templates_objectSpread({}, block), {}, {
[7118] Fix | Delete
innerBlocks: innerBlocks
[7119] Fix | Delete
});
[7120] Fix | Delete
} // To support old templates that were using the "children" format
[7121] Fix | Delete
// for the attributes using "html" strings now, we normalize the template attributes
[7122] Fix | Delete
// before creating the blocks.
[7123] Fix | Delete
[7124] Fix | Delete
[7125] Fix | Delete
var blockType = registration_getBlockType(name);
[7126] Fix | Delete
[7127] Fix | Delete
var isHTMLAttribute = function isHTMLAttribute(attributeDefinition) {
[7128] Fix | Delete
return Object(external_lodash_["get"])(attributeDefinition, ['source']) === 'html';
[7129] Fix | Delete
};
[7130] Fix | Delete
[7131] Fix | Delete
var isQueryAttribute = function isQueryAttribute(attributeDefinition) {
[7132] Fix | Delete
return Object(external_lodash_["get"])(attributeDefinition, ['source']) === 'query';
[7133] Fix | Delete
};
[7134] Fix | Delete
[7135] Fix | Delete
var normalizeAttributes = function normalizeAttributes(schema, values) {
[7136] Fix | Delete
return Object(external_lodash_["mapValues"])(values, function (value, key) {
[7137] Fix | Delete
return normalizeAttribute(schema[key], value);
[7138] Fix | Delete
});
[7139] Fix | Delete
};
[7140] Fix | Delete
[7141] Fix | Delete
var normalizeAttribute = function normalizeAttribute(definition, value) {
[7142] Fix | Delete
if (isHTMLAttribute(definition) && Object(external_lodash_["isArray"])(value)) {
[7143] Fix | Delete
// Introduce a deprecated call at this point
[7144] Fix | Delete
// When we're confident that "children" format should be removed from the templates.
[7145] Fix | Delete
return Object(external_wp_element_["renderToString"])(value);
[7146] Fix | Delete
}
[7147] Fix | Delete
[7148] Fix | Delete
if (isQueryAttribute(definition) && value) {
[7149] Fix | Delete
return value.map(function (subValues) {
[7150] Fix | Delete
return normalizeAttributes(definition.query, subValues);
[7151] Fix | Delete
});
[7152] Fix | Delete
}
[7153] Fix | Delete
[7154] Fix | Delete
return value;
[7155] Fix | Delete
};
[7156] Fix | Delete
[7157] Fix | Delete
var normalizedAttributes = normalizeAttributes(Object(external_lodash_["get"])(blockType, ['attributes'], {}), attributes);
[7158] Fix | Delete
[7159] Fix | Delete
var _convertLegacyBlocks = convertLegacyBlocks(name, normalizedAttributes),
[7160] Fix | Delete
blockName = _convertLegacyBlocks.name,
[7161] Fix | Delete
blockAttributes = _convertLegacyBlocks.attributes;
[7162] Fix | Delete
[7163] Fix | Delete
return createBlock(blockName, blockAttributes, synchronizeBlocksWithTemplate([], innerBlocksTemplate));
[7164] Fix | Delete
});
[7165] Fix | Delete
}
[7166] Fix | Delete
[7167] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/index.js
[7168] Fix | Delete
// The blocktype is the most important concept within the block API. It defines
[7169] Fix | Delete
// all aspects of the block configuration and its interfaces, including `edit`
[7170] Fix | Delete
// and `save`. The transforms specification allows converting one blocktype to
[7171] Fix | Delete
// another through formulas defined by either the source or the destination.
[7172] Fix | Delete
// Switching a blocktype is to be considered a one-way operation implying a
[7173] Fix | Delete
// transformation in the opposite way has to be handled explicitly.
[7174] Fix | Delete
// The block tree is composed of a collection of block nodes. Blocks contained
[7175] Fix | Delete
// within other blocks are called inner blocks. An important design
[7176] Fix | Delete
// consideration is that inner blocks are -- conceptually -- not part of the
[7177] Fix | Delete
// territory established by the parent block that contains them.
[7178] Fix | Delete
//
[7179] Fix | Delete
// This has multiple practical implications: when parsing, we can safely dispose
[7180] Fix | Delete
// of any block boundary found within a block from the innerHTML property when
[7181] Fix | Delete
// transfering to state. Not doing so would have a compounding effect on memory
[7182] Fix | Delete
// and uncertainty over the source of truth. This can be illustrated in how,
[7183] Fix | Delete
// given a tree of `n` nested blocks, the entry node would have to contain the
[7184] Fix | Delete
// actual content of each block while each subsequent block node in the state
[7185] Fix | Delete
// tree would replicate the entire chain `n-1`, meaning the extreme end node
[7186] Fix | Delete
// would have been replicated `n` times as the tree is traversed and would
[7187] Fix | Delete
// generate uncertainty as to which one is to hold the current value of the
[7188] Fix | Delete
// block. For composition, it also means inner blocks can effectively be child
[7189] Fix | Delete
// components whose mechanisms can be shielded from the `edit` implementation
[7190] Fix | Delete
// and just passed along.
[7191] Fix | Delete
[7192] Fix | Delete
// While block transformations account for a specific surface of the API, there
[7193] Fix | Delete
// are also raw transformations which handle arbitrary sources not made out of
[7194] Fix | Delete
// blocks but producing block basaed on various heursitics. This includes
[7195] Fix | Delete
// pasting rich text or HTML data.
[7196] Fix | Delete
[7197] Fix | Delete
// The process of serialization aims to deflate the internal memory of the block
[7198] Fix | Delete
// editor and its state representation back into an HTML valid string. This
[7199] Fix | Delete
// process restores the document integrity and inserts invisible delimiters
[7200] Fix | Delete
// around each block with HTML comment boundaries which can contain any extra
[7201] Fix | Delete
// attributes needed to operate with the block later on.
[7202] Fix | Delete
[7203] Fix | Delete
// Validation is the process of comparing a block source with its output before
[7204] Fix | Delete
// there is any user input or interaction with a block. When this operation
[7205] Fix | Delete
// fails -- for whatever reason -- the block is to be considered invalid. As
[7206] Fix | Delete
// part of validating a block the system will attempt to run the source against
[7207] Fix | Delete
// any provided deprecation definitions.
[7208] Fix | Delete
//
[7209] Fix | Delete
// Worth emphasizing that validation is not a case of whether the markup is
[7210] Fix | Delete
// merely HTML spec-compliant but about how the editor knows to create such
[7211] Fix | Delete
// markup and that its inability to create an identical result can be a strong
[7212] Fix | Delete
// indicator of potential data loss (the invalidation is then a protective
[7213] Fix | Delete
// measure).
[7214] Fix | Delete
//
[7215] Fix | Delete
// The invalidation process can also be deconstructed in phases: 1) validate the
[7216] Fix | Delete
// block exists; 2) validate the source matches the output; 3) validate the
[7217] Fix | Delete
// source matches deprecated outputs; 4) work through the significance of
[7218] Fix | Delete
// differences. These are stacked in a way that favors performance and optimizes
[7219] Fix | Delete
// for the majority of cases. That is to say, the evaluation logic can become
[7220] Fix | Delete
// more sophisticated the further down it goes in the process as the cost is
[7221] Fix | Delete
// accounted for. The first logic checks have to be extremely efficient since
[7222] Fix | Delete
// they will be run for all valid and invalid blocks alike. However, once a
[7223] Fix | Delete
// block is detected as invalid -- failing the three first steps -- it is
[7224] Fix | Delete
// adequate to spend more time determining validity before throwing a conflict.
[7225] Fix | Delete
[7226] Fix | Delete
[7227] Fix | Delete
// Blocks are inherently indifferent about where the data they operate with ends
[7228] Fix | Delete
// up being saved. For example, all blocks can have a static and dynamic aspect
[7229] Fix | Delete
// to them depending on the needs. The static nature of a block is the `save()`
[7230] Fix | Delete
// definition that is meant to be serialized into HTML and which can be left
[7231] Fix | Delete
// void. Any block can also register a `render_callback` on the server, which
[7232] Fix | Delete
// makes its output dynamic either in part or in its totality.
[7233] Fix | Delete
//
[7234] Fix | Delete
// Child blocks are defined as a relationship that builds on top of the inner
[7235] Fix | Delete
// blocks mechanism. A child block is a block node of a particular type that can
[7236] Fix | Delete
// only exist within the inner block boundaries of a specific parent type. This
[7237] Fix | Delete
// allows block authors to compose specific blocks that are not meant to be used
[7238] Fix | Delete
// outside of a specified parent block context. Thus, child blocks extend the
[7239] Fix | Delete
// concept of inner blocks to support a more direct relationship between sets of
[7240] Fix | Delete
// blocks. The addition of parent–child would be a subset of the inner block
[7241] Fix | Delete
// functionality under the premise that certain blocks only make sense as
[7242] Fix | Delete
// children of another block.
[7243] Fix | Delete
[7244] Fix | Delete
[7245] Fix | Delete
// Templates are, in a general sense, a basic collection of block nodes with any
[7246] Fix | Delete
// given set of predefined attributes that are supplied as the initial state of
[7247] Fix | Delete
// an inner blocks group. These nodes can, in turn, contain any number of nested
[7248] Fix | Delete
// blocks within their definition. Templates allow both to specify a default
[7249] Fix | Delete
// state for an editor session or a default set of blocks for any inner block
[7250] Fix | Delete
// implementation within a specific block.
[7251] Fix | Delete
[7252] Fix | Delete
[7253] Fix | Delete
[7254] Fix | Delete
[7255] Fix | Delete
[7256] Fix | Delete
[7257] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/index.js
[7258] Fix | Delete
// A "block" is the abstract term used to describe units of markup that,
[7259] Fix | Delete
// when composed together, form the content or layout of a page.
[7260] Fix | Delete
// The API for blocks is exposed via `wp.blocks`.
[7261] Fix | Delete
//
[7262] Fix | Delete
// Supported blocks are registered by calling `registerBlockType`. Once registered,
[7263] Fix | Delete
// the block is made available as an option to the editor interface.
[7264] Fix | Delete
//
[7265] Fix | Delete
// Blocks are inferred from the HTML source of a post through a parsing mechanism
[7266] Fix | Delete
// and then stored as objects in state, from which it is then rendered for editing.
[7267] Fix | Delete
[7268] Fix | Delete
[7269] Fix | Delete
[7270] Fix | Delete
[7271] Fix | Delete
[7272] Fix | Delete
/***/ }),
[7273] Fix | Delete
[7274] Fix | Delete
/***/ "1CF3":
[7275] Fix | Delete
/***/ (function(module, exports) {
[7276] Fix | Delete
[7277] Fix | Delete
(function() { module.exports = window["wp"]["dom"]; }());
[7278] Fix | Delete
[7279] Fix | Delete
/***/ }),
[7280] Fix | Delete
[7281] Fix | Delete
/***/ "1OyB":
[7282] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7283] Fix | Delete
[7284] Fix | Delete
"use strict";
[7285] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
[7286] Fix | Delete
function _classCallCheck(instance, Constructor) {
[7287] Fix | Delete
if (!(instance instanceof Constructor)) {
[7288] Fix | Delete
throw new TypeError("Cannot call a class as a function");
[7289] Fix | Delete
}
[7290] Fix | Delete
}
[7291] Fix | Delete
[7292] Fix | Delete
/***/ }),
[7293] Fix | Delete
[7294] Fix | Delete
/***/ "1ZqX":
[7295] Fix | Delete
/***/ (function(module, exports) {
[7296] Fix | Delete
[7297] Fix | Delete
(function() { module.exports = window["wp"]["data"]; }());
[7298] Fix | Delete
[7299] Fix | Delete
/***/ }),
[7300] Fix | Delete
[7301] Fix | Delete
/***/ "25BE":
[7302] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7303] Fix | Delete
[7304] Fix | Delete
"use strict";
[7305] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
[7306] Fix | Delete
function _iterableToArray(iter) {
[7307] Fix | Delete
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
[7308] Fix | Delete
}
[7309] Fix | Delete
[7310] Fix | Delete
/***/ }),
[7311] Fix | Delete
[7312] Fix | Delete
/***/ "7Cbv":
[7313] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7314] Fix | Delete
[7315] Fix | Delete
"use strict";
[7316] Fix | Delete
[7317] Fix | Delete
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
[7318] Fix | Delete
// Unique ID creation requires a high quality random # generator. In the browser we therefore
[7319] Fix | Delete
// require the crypto API and do not support built-in fallback to lower quality random number
[7320] Fix | Delete
// generators (like Math.random()).
[7321] Fix | Delete
var getRandomValues;
[7322] Fix | Delete
var rnds8 = new Uint8Array(16);
[7323] Fix | Delete
function rng() {
[7324] Fix | Delete
// lazy load so that environments that need to polyfill have a chance to do so
[7325] Fix | Delete
if (!getRandomValues) {
[7326] Fix | Delete
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
[7327] Fix | Delete
// find the complete implementation of crypto (msCrypto) on IE11.
[7328] Fix | Delete
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
[7329] Fix | Delete
[7330] Fix | Delete
if (!getRandomValues) {
[7331] Fix | Delete
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
[7332] Fix | Delete
}
[7333] Fix | Delete
}
[7334] Fix | Delete
[7335] Fix | Delete
return getRandomValues(rnds8);
[7336] Fix | Delete
}
[7337] Fix | Delete
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
[7338] Fix | Delete
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
[7339] Fix | Delete
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
[7340] Fix | Delete
[7341] Fix | Delete
[7342] Fix | Delete
function validate(uuid) {
[7343] Fix | Delete
return typeof uuid === 'string' && regex.test(uuid);
[7344] Fix | Delete
}
[7345] Fix | Delete
[7346] Fix | Delete
/* harmony default export */ var esm_browser_validate = (validate);
[7347] Fix | Delete
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
[7348] Fix | Delete
[7349] Fix | Delete
/**
[7350] Fix | Delete
* Convert array of 16 byte values to UUID string format of the form:
[7351] Fix | Delete
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[7352] Fix | Delete
*/
[7353] Fix | Delete
[7354] Fix | Delete
var byteToHex = [];
[7355] Fix | Delete
[7356] Fix | Delete
for (var stringify_i = 0; stringify_i < 256; ++stringify_i) {
[7357] Fix | Delete
byteToHex.push((stringify_i + 0x100).toString(16).substr(1));
[7358] Fix | Delete
}
[7359] Fix | Delete
[7360] Fix | Delete
function stringify(arr) {
[7361] Fix | Delete
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
[7362] Fix | Delete
// Note: Be careful editing this code! It's been tuned for performance
[7363] Fix | Delete
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
[7364] Fix | Delete
var uuid = (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]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
[7365] Fix | Delete
// of the following:
[7366] Fix | Delete
// - One or more input array values don't map to a hex octet (leading to
[7367] Fix | Delete
// "undefined" in the uuid)
[7368] Fix | Delete
// - Invalid input values for the RFC `version` or `variant` fields
[7369] Fix | Delete
[7370] Fix | Delete
if (!esm_browser_validate(uuid)) {
[7371] Fix | Delete
throw TypeError('Stringified UUID is invalid');
[7372] Fix | Delete
}
[7373] Fix | Delete
[7374] Fix | Delete
return uuid;
[7375] Fix | Delete
}
[7376] Fix | Delete
[7377] Fix | Delete
/* harmony default export */ var esm_browser_stringify = (stringify);
[7378] Fix | Delete
// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
[7379] Fix | Delete
[7380] Fix | Delete
[7381] Fix | Delete
[7382] Fix | Delete
function v4(options, buf, offset) {
[7383] Fix | Delete
options = options || {};
[7384] Fix | Delete
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
[7385] Fix | Delete
[7386] Fix | Delete
rnds[6] = rnds[6] & 0x0f | 0x40;
[7387] Fix | Delete
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
[7388] Fix | Delete
[7389] Fix | Delete
if (buf) {
[7390] Fix | Delete
offset = offset || 0;
[7391] Fix | Delete
[7392] Fix | Delete
for (var i = 0; i < 16; ++i) {
[7393] Fix | Delete
buf[offset + i] = rnds[i];
[7394] Fix | Delete
}
[7395] Fix | Delete
[7396] Fix | Delete
return buf;
[7397] Fix | Delete
}
[7398] Fix | Delete
[7399] Fix | Delete
return esm_browser_stringify(rnds);
[7400] Fix | Delete
}
[7401] Fix | Delete
[7402] Fix | Delete
/* harmony default export */ var esm_browser_v4 = __webpack_exports__["a"] = (v4);
[7403] Fix | Delete
[7404] Fix | Delete
/***/ }),
[7405] Fix | Delete
[7406] Fix | Delete
/***/ "BsWD":
[7407] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7408] Fix | Delete
[7409] Fix | Delete
"use strict";
[7410] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
[7411] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a3WO");
[7412] Fix | Delete
[7413] Fix | Delete
function _unsupportedIterableToArray(o, minLen) {
[7414] Fix | Delete
if (!o) return;
[7415] Fix | Delete
if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
[7416] Fix | Delete
var n = Object.prototype.toString.call(o).slice(8, -1);
[7417] Fix | Delete
if (n === "Object" && o.constructor) n = o.constructor.name;
[7418] Fix | Delete
if (n === "Map" || n === "Set") return Array.from(o);
[7419] Fix | Delete
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
[7420] Fix | Delete
}
[7421] Fix | Delete
[7422] Fix | Delete
/***/ }),
[7423] Fix | Delete
[7424] Fix | Delete
/***/ "DSFK":
[7425] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7426] Fix | Delete
[7427] Fix | Delete
"use strict";
[7428] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
[7429] Fix | Delete
function _arrayWithHoles(arr) {
[7430] Fix | Delete
if (Array.isArray(arr)) return arr;
[7431] Fix | Delete
}
[7432] Fix | Delete
[7433] Fix | Delete
/***/ }),
[7434] Fix | Delete
[7435] Fix | Delete
/***/ "GRId":
[7436] Fix | Delete
/***/ (function(module, exports) {
[7437] Fix | Delete
[7438] Fix | Delete
(function() { module.exports = window["wp"]["element"]; }());
[7439] Fix | Delete
[7440] Fix | Delete
/***/ }),
[7441] Fix | Delete
[7442] Fix | Delete
/***/ "K9lf":
[7443] Fix | Delete
/***/ (function(module, exports) {
[7444] Fix | Delete
[7445] Fix | Delete
(function() { module.exports = window["wp"]["compose"]; }());
[7446] Fix | Delete
[7447] Fix | Delete
/***/ }),
[7448] Fix | Delete
[7449] Fix | Delete
/***/ "KQm4":
[7450] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7451] Fix | Delete
[7452] Fix | Delete
"use strict";
[7453] Fix | Delete
[7454] Fix | Delete
// EXPORTS
[7455] Fix | Delete
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
[7456] Fix | Delete
[7457] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
[7458] Fix | Delete
var arrayLikeToArray = __webpack_require__("a3WO");
[7459] Fix | Delete
[7460] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
[7461] Fix | Delete
[7462] Fix | Delete
function _arrayWithoutHoles(arr) {
[7463] Fix | Delete
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
[7464] Fix | Delete
}
[7465] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
[7466] Fix | Delete
var iterableToArray = __webpack_require__("25BE");
[7467] Fix | Delete
[7468] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
[7469] Fix | Delete
var unsupportedIterableToArray = __webpack_require__("BsWD");
[7470] Fix | Delete
[7471] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
[7472] Fix | Delete
function _nonIterableSpread() {
[7473] Fix | Delete
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
[7474] Fix | Delete
}
[7475] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
[7476] Fix | Delete
[7477] Fix | Delete
[7478] Fix | Delete
[7479] Fix | Delete
[7480] Fix | Delete
function _toConsumableArray(arr) {
[7481] Fix | Delete
return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
[7482] Fix | Delete
}
[7483] Fix | Delete
[7484] Fix | Delete
/***/ }),
[7485] Fix | Delete
[7486] Fix | Delete
/***/ "M55E":
[7487] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[7488] Fix | Delete
[7489] Fix | Delete
var __WEBPACK_AMD_DEFINE_RESULT__;;/*! showdown v 1.9.1 - 02-11-2019 */
[7490] Fix | Delete
(function(){
[7491] Fix | Delete
/**
[7492] Fix | Delete
* Created by Tivie on 13-07-2015.
[7493] Fix | Delete
*/
[7494] Fix | Delete
[7495] Fix | Delete
function getDefaultOpts (simple) {
[7496] Fix | Delete
'use strict';
[7497] Fix | Delete
[7498] Fix | Delete
var defaultOptions = {
[7499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function