| @@ -1,2687 +1,156 @@ | ||
| 1 | -/******/ (() => { // webpackBootstrap | |
| 2 | -/******/ var __webpack_modules__ = ({ | |
| 1 | +(function(react, _wordpress_i18n, _wordpress_data, _wordpress_core_data, _wordpress_components, _wordpress_plugins, _woocommerce_admin_layout) { | |
| 3 | 2 | |
| 4 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 5 | -/*!******************************************************************!*\ | |
| 6 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 7 | - \******************************************************************/ | |
| 8 | -/***/ ((module) => { | |
| 3 | +//#region \0rolldown/runtime.js | |
| 4 | + var __create = Object.create; | |
| 5 | + var __defProp = Object.defineProperty; | |
| 6 | + var __name = (target, value) => __defProp(target, "name", { | |
| 7 | + value, | |
| 8 | + configurable: true | |
| 9 | + }); | |
| 10 | + var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| 11 | + var __getOwnPropNames = Object.getOwnPropertyNames; | |
| 12 | + var __getProtoOf = Object.getPrototypeOf; | |
| 13 | + var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 14 | + var __copyProps = (to, from, except, desc) => { | |
| 15 | + if (from && typeof from === "object" || typeof from === "function") { | |
| 16 | + for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | |
| 17 | + key = keys[i]; | |
| 18 | + if (!__hasOwnProp.call(to, key) && key !== except) { | |
| 19 | + __defProp(to, key, { | |
| 20 | + get: ((k) => from[k]).bind(null, key), | |
| 21 | + enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | |
| 22 | + }); | |
| 23 | + } | |
| 24 | + } | |
| 25 | + } | |
| 26 | + return to; | |
| 27 | + }; | |
| 28 | + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { | |
| 29 | + value: mod, | |
| 30 | + enumerable: true | |
| 31 | + }) : target, mod)); | |
| 9 | 32 | |
| 10 | -function _arrayLikeToArray(r, a) { | |
| 11 | - (null == a || a > r.length) && (a = r.length); | |
| 12 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 13 | - return n; | |
| 14 | -} | |
| 15 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 33 | +//#endregion | |
| 34 | +react = __toESM(react); | |
| 16 | 35 | |
| 17 | -/***/ }), | |
| 36 | +//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js | |
| 37 | + function _arrayWithHoles(r) { | |
| 38 | + if (Array.isArray(r)) return r; | |
| 39 | + } | |
| 18 | 40 | |
| 19 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 20 | -/*!****************************************************************!*\ | |
| 21 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 22 | - \****************************************************************/ | |
| 23 | -/***/ ((module) => { | |
| 41 | +//#endregion | |
| 42 | +//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js | |
| 43 | + function _iterableToArrayLimit(r, l) { | |
| 44 | + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 45 | + if (null != t) { | |
| 46 | + var e; | |
| 47 | + var n; | |
| 48 | + var i; | |
| 49 | + var u; | |
| 50 | + var a = []; | |
| 51 | + var f = !0; | |
| 52 | + var o = !1; | |
| 53 | + try { | |
| 54 | + if (i = (t = t.call(r)).next, 0 === l) { | |
| 55 | + if (Object(t) !== t) return; | |
| 56 | + f = !1; | |
| 57 | + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 58 | + } catch (r) { | |
| 59 | + o = !0, n = r; | |
| 60 | + } finally { | |
| 61 | + try { | |
| 62 | + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 63 | + } finally { | |
| 64 | + if (o) throw n; | |
| 65 | + } | |
| 66 | + } | |
| 67 | + return a; | |
| 68 | + } | |
| 69 | + } | |
| 24 | 70 | |
| 25 | -function _arrayWithHoles(r) { | |
| 26 | - if (Array.isArray(r)) return r; | |
| 27 | -} | |
| 28 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 71 | +//#endregion | |
| 72 | +//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js | |
| 73 | + function _arrayLikeToArray(r, a) { | |
| 74 | + (null == a || a > r.length) && (a = r.length); | |
| 75 | + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 76 | + return n; | |
| 77 | + } | |
| 29 | 78 | |
| 30 | -/***/ }), | |
| 79 | +//#endregion | |
| 80 | +//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js | |
| 81 | + function _unsupportedIterableToArray(r, a) { | |
| 82 | + if (r) { | |
| 83 | + if ("string" == typeof r) return _arrayLikeToArray(r, a); | |
| 84 | + var t = {}.toString.call(r).slice(8, -1); | |
| 85 | + return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; | |
| 86 | + } | |
| 87 | + } | |
| 31 | 88 | |
| 32 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 33 | -/*!***********************************************************************!*\ | |
| 34 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 35 | - \***********************************************************************/ | |
| 36 | -/***/ ((module) => { | |
| 89 | +//#endregion | |
| 90 | +//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js | |
| 91 | + function _nonIterableRest() { | |
| 92 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 93 | + } | |
| 37 | 94 | |
| 38 | -function _interopRequireDefault(e) { | |
| 39 | - return e && e.__esModule ? e : { | |
| 40 | - "default": e | |
| 41 | - }; | |
| 42 | -} | |
| 43 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 95 | +//#endregion | |
| 96 | +//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js | |
| 97 | + function _slicedToArray(r, e) { | |
| 98 | + return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); | |
| 99 | + } | |
| 44 | 100 | |
| 45 | -/***/ }), | |
| 101 | +//#endregion | |
| 102 | +//#region modules/wc-product-editor/assets/js/e-wc-product-editor.js | |
| 103 | + function EditWithElementorButton() { | |
| 104 | + var _useState2 = _slicedToArray((0, react.useState)(false), 2); | |
| 105 | + var isRedirecting = _useState2[0]; | |
| 106 | + var setIsRedirecting = _useState2[1]; | |
| 107 | + var productId = (0, _wordpress_core_data.useEntityId)("postType", "product"); | |
| 108 | + var saveEntityRecord = (0, _wordpress_data.useDispatch)("core").saveEntityRecord; | |
| 109 | + var postStatus = (0, _wordpress_data.useSelect)(function(select) { | |
| 110 | + var _select$getEditedEnti; | |
| 111 | + return (_select$getEditedEnti = select("core").getEditedEntityRecord("postType", "product", productId)) === null || _select$getEditedEnti === void 0 ? void 0 : _select$getEditedEnti.status; | |
| 112 | + }, [productId]); | |
| 113 | + var isSaving = wp.data.select("core/editor").isSavingPost(); | |
| 114 | + (0, react.useEffect)(function() { | |
| 115 | + if (isRedirecting && !isSaving) redirectToElementor(); | |
| 116 | + }, [isRedirecting, isSaving]); | |
| 117 | + var handleClick = function handleClick() { | |
| 118 | + if ("auto-draft" === postStatus) saveEntityRecord("postType", "product", { | |
| 119 | + id: productId, | |
| 120 | + name: "Elementor #".concat(productId), | |
| 121 | + status: "draft" | |
| 122 | + }).then(function() { | |
| 123 | + setIsRedirecting(true); | |
| 124 | + }).catch(function() {}); | |
| 125 | + else setIsRedirecting(true); | |
| 126 | + }; | |
| 127 | + var redirectToElementor = function redirectToElementor() { | |
| 128 | + window.location.href = getEditUrl(); | |
| 129 | + }; | |
| 130 | + var getEditUrl = function getEditUrl() { | |
| 131 | + var url = new URL(ElementorWCProductEditorSettings.editLink); | |
| 132 | + url.searchParams.set("post", productId); | |
| 133 | + url.searchParams.set("action", "elementor"); | |
| 134 | + return url.toString(); | |
| 135 | + }; | |
| 136 | + return /*#__PURE__*/ react.default.createElement(_woocommerce_admin_layout.WooHeaderItem, { name: "product" }, /*#__PURE__*/ react.default.createElement(_wordpress_components.Button, { | |
| 137 | + variant: "primary", | |
| 138 | + onClick: handleClick, | |
| 139 | + style: { | |
| 140 | + display: "flex", | |
| 141 | + alignItems: "center" | |
| 142 | + } | |
| 143 | + }, /*#__PURE__*/ react.default.createElement("i", { | |
| 144 | + className: "eicon-elementor-square", | |
| 145 | + "aria-hidden": "true", | |
| 146 | + style: { paddingInlineEnd: "8px" } | |
| 147 | + }), (0, _wordpress_i18n.__)("Edit with Elementor", "elementor"))); | |
| 148 | + } | |
| 149 | + (0, _wordpress_plugins.registerPlugin)("elementor-header-item", { | |
| 150 | + render: EditWithElementorButton, | |
| 151 | + scope: "woocommerce-product-block-editor" | |
| 152 | + }); | |
| 46 | 153 | |
| 47 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 48 | -/*!**********************************************************************!*\ | |
| 49 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 50 | - \**********************************************************************/ | |
| 51 | -/***/ ((module) => { | |
| 52 | - | |
| 53 | -function _iterableToArrayLimit(r, l) { | |
| 54 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 55 | - if (null != t) { | |
| 56 | - var e, | |
| 57 | - n, | |
| 58 | - i, | |
| 59 | - u, | |
| 60 | - a = [], | |
| 61 | - f = !0, | |
| 62 | - o = !1; | |
| 63 | - try { | |
| 64 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 65 | - if (Object(t) !== t) return; | |
| 66 | - f = !1; | |
| 67 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 68 | - } catch (r) { | |
| 69 | - o = !0, n = r; | |
| 70 | - } finally { | |
| 71 | - try { | |
| 72 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 73 | - } finally { | |
| 74 | - if (o) throw n; | |
| 75 | - } | |
| 76 | - } | |
| 77 | - return a; | |
| 78 | - } | |
| 79 | -} | |
| 80 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 81 | - | |
| 82 | -/***/ }), | |
| 83 | - | |
| 84 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 85 | -/*!*****************************************************************!*\ | |
| 86 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 87 | - \*****************************************************************/ | |
| 88 | -/***/ ((module) => { | |
| 89 | - | |
| 90 | -function _nonIterableRest() { | |
| 91 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 92 | -} | |
| 93 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 94 | - | |
| 95 | -/***/ }), | |
| 96 | - | |
| 97 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 98 | -/*!***************************************************************!*\ | |
| 99 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 100 | - \***************************************************************/ | |
| 101 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 102 | - | |
| 103 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 104 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 105 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 106 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 107 | -function _slicedToArray(r, e) { | |
| 108 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 109 | -} | |
| 110 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 111 | - | |
| 112 | -/***/ }), | |
| 113 | - | |
| 114 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 115 | -/*!****************************************************************************!*\ | |
| 116 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 117 | - \****************************************************************************/ | |
| 118 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 119 | - | |
| 120 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 121 | -function _unsupportedIterableToArray(r, a) { | |
| 122 | - if (r) { | |
| 123 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 124 | - var t = {}.toString.call(r).slice(8, -1); | |
| 125 | - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | |
| 126 | - } | |
| 127 | -} | |
| 128 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 129 | - | |
| 130 | -/***/ }), | |
| 131 | - | |
| 132 | -/***/ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js": | |
| 133 | -/*!*************************************************************************************!*\ | |
| 134 | - !*** ../node_modules/@wordpress/element/build-module/create-interpolate-element.js ***! | |
| 135 | - \*************************************************************************************/ | |
| 136 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 137 | - | |
| 138 | -"use strict"; | |
| 139 | -__webpack_require__.r(__webpack_exports__); | |
| 140 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 141 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | |
| 142 | -/* harmony export */ }); | |
| 143 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react"); | |
| 144 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__); | |
| 145 | -/** | |
| 146 | - * Internal dependencies | |
| 147 | - */ | |
| 148 | - | |
| 149 | - | |
| 150 | -/** | |
| 151 | - * Object containing a React element. | |
| 152 | - * | |
| 153 | - * @typedef {import('react').ReactElement} Element | |
| 154 | - */ | |
| 155 | - | |
| 156 | -let indoc, offset, output, stack; | |
| 157 | - | |
| 158 | -/** | |
| 159 | - * Matches tags in the localized string | |
| 160 | - * | |
| 161 | - * This is used for extracting the tag pattern groups for parsing the localized | |
| 162 | - * string and along with the map converting it to a react element. | |
| 163 | - * | |
| 164 | - * There are four references extracted using this tokenizer: | |
| 165 | - * | |
| 166 | - * match: Full match of the tag (i.e. <strong>, </strong>, <br/>) | |
| 167 | - * isClosing: The closing slash, if it exists. | |
| 168 | - * name: The name portion of the tag (strong, br) (if ) | |
| 169 | - * isSelfClosed: The slash on a self closing tag, if it exists. | |
| 170 | - * | |
| 171 | - * @type {RegExp} | |
| 172 | - */ | |
| 173 | -const tokenizer = /<(\/)?(\w+)\s*(\/)?>/g; | |
| 174 | - | |
| 175 | -/** | |
| 176 | - * The stack frame tracking parse progress. | |
| 177 | - * | |
| 178 | - * @typedef Frame | |
| 179 | - * | |
| 180 | - * @property {Element} element A parent element which may still have | |
| 181 | - * @property {number} tokenStart Offset at which parent element first | |
| 182 | - * appears. | |
| 183 | - * @property {number} tokenLength Length of string marking start of parent | |
| 184 | - * element. | |
| 185 | - * @property {number} [prevOffset] Running offset at which parsing should | |
| 186 | - * continue. | |
| 187 | - * @property {number} [leadingTextStart] Offset at which last closing element | |
| 188 | - * finished, used for finding text between | |
| 189 | - * elements. | |
| 190 | - * @property {Element[]} children Children. | |
| 191 | - */ | |
| 192 | - | |
| 193 | -/** | |
| 194 | - * Tracks recursive-descent parse state. | |
| 195 | - * | |
| 196 | - * This is a Stack frame holding parent elements until all children have been | |
| 197 | - * parsed. | |
| 198 | - * | |
| 199 | - * @private | |
| 200 | - * @param {Element} element A parent element which may still have | |
| 201 | - * nested children not yet parsed. | |
| 202 | - * @param {number} tokenStart Offset at which parent element first | |
| 203 | - * appears. | |
| 204 | - * @param {number} tokenLength Length of string marking start of parent | |
| 205 | - * element. | |
| 206 | - * @param {number} [prevOffset] Running offset at which parsing should | |
| 207 | - * continue. | |
| 208 | - * @param {number} [leadingTextStart] Offset at which last closing element | |
| 209 | - * finished, used for finding text between | |
| 210 | - * elements. | |
| 211 | - * | |
| 212 | - * @return {Frame} The stack frame tracking parse progress. | |
| 213 | - */ | |
| 214 | -function createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart) { | |
| 215 | - return { | |
| 216 | - element, | |
| 217 | - tokenStart, | |
| 218 | - tokenLength, | |
| 219 | - prevOffset, | |
| 220 | - leadingTextStart, | |
| 221 | - children: [] | |
| 222 | - }; | |
| 223 | -} | |
| 224 | - | |
| 225 | -/** | |
| 226 | - * This function creates an interpolated element from a passed in string with | |
| 227 | - * specific tags matching how the string should be converted to an element via | |
| 228 | - * the conversion map value. | |
| 229 | - * | |
| 230 | - * @example | |
| 231 | - * For example, for the given string: | |
| 232 | - * | |
| 233 | - * "This is a <span>string</span> with <a>a link</a> and a self-closing | |
| 234 | - * <CustomComponentB/> tag" | |
| 235 | - * | |
| 236 | - * You would have something like this as the conversionMap value: | |
| 237 | - * | |
| 238 | - * ```js | |
| 239 | - * { | |
| 240 | - * span: <span />, | |
| 241 | - * a: <a href={ 'https://github.com' } />, | |
| 242 | - * CustomComponentB: <CustomComponent />, | |
| 243 | - * } | |
| 244 | - * ``` | |
| 245 | - * | |
| 246 | - * @param {string} interpolatedString The interpolation string to be parsed. | |
| 247 | - * @param {Record<string, Element>} conversionMap The map used to convert the string to | |
| 248 | - * a react element. | |
| 249 | - * @throws {TypeError} | |
| 250 | - * @return {Element} A wp element. | |
| 251 | - */ | |
| 252 | -const createInterpolateElement = (interpolatedString, conversionMap) => { | |
| 253 | - indoc = interpolatedString; | |
| 254 | - offset = 0; | |
| 255 | - output = []; | |
| 256 | - stack = []; | |
| 257 | - tokenizer.lastIndex = 0; | |
| 258 | - if (!isValidConversionMap(conversionMap)) { | |
| 259 | - throw new TypeError('The conversionMap provided is not valid. It must be an object with values that are React Elements'); | |
| 260 | - } | |
| 261 | - do { | |
| 262 | - // twiddle our thumbs | |
| 263 | - } while (proceed(conversionMap)); | |
| 264 | - return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, ...output); | |
| 265 | -}; | |
| 266 | - | |
| 267 | -/** | |
| 268 | - * Validate conversion map. | |
| 269 | - * | |
| 270 | - * A map is considered valid if it's an object and every value in the object | |
| 271 | - * is a React Element | |
| 272 | - * | |
| 273 | - * @private | |
| 274 | - * | |
| 275 | - * @param {Object} conversionMap The map being validated. | |
| 276 | - * | |
| 277 | - * @return {boolean} True means the map is valid. | |
| 278 | - */ | |
| 279 | -const isValidConversionMap = conversionMap => { | |
| 280 | - const isObject = typeof conversionMap === 'object'; | |
| 281 | - const values = isObject && Object.values(conversionMap); | |
| 282 | - return isObject && values.length && values.every(element => (0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element)); | |
| 283 | -}; | |
| 284 | - | |
| 285 | -/** | |
| 286 | - * This is the iterator over the matches in the string. | |
| 287 | - * | |
| 288 | - * @private | |
| 289 | - * | |
| 290 | - * @param {Object} conversionMap The conversion map for the string. | |
| 291 | - * | |
| 292 | - * @return {boolean} true for continuing to iterate, false for finished. | |
| 293 | - */ | |
| 294 | -function proceed(conversionMap) { | |
| 295 | - const next = nextToken(); | |
| 296 | - const [tokenType, name, startOffset, tokenLength] = next; | |
| 297 | - const stackDepth = stack.length; | |
| 298 | - const leadingTextStart = startOffset > offset ? offset : null; | |
| 299 | - if (!conversionMap[name]) { | |
| 300 | - addText(); | |
| 301 | - return false; | |
| 302 | - } | |
| 303 | - switch (tokenType) { | |
| 304 | - case 'no-more-tokens': | |
| 305 | - if (stackDepth !== 0) { | |
| 306 | - const { | |
| 307 | - leadingTextStart: stackLeadingText, | |
| 308 | - tokenStart | |
| 309 | - } = stack.pop(); | |
| 310 | - output.push(indoc.substr(stackLeadingText, tokenStart)); | |
| 311 | - } | |
| 312 | - addText(); | |
| 313 | - return false; | |
| 314 | - case 'self-closed': | |
| 315 | - if (0 === stackDepth) { | |
| 316 | - if (null !== leadingTextStart) { | |
| 317 | - output.push(indoc.substr(leadingTextStart, startOffset - leadingTextStart)); | |
| 318 | - } | |
| 319 | - output.push(conversionMap[name]); | |
| 320 | - offset = startOffset + tokenLength; | |
| 321 | - return true; | |
| 322 | - } | |
| 323 | - | |
| 324 | - // Otherwise we found an inner element. | |
| 325 | - addChild(createFrame(conversionMap[name], startOffset, tokenLength)); | |
| 326 | - offset = startOffset + tokenLength; | |
| 327 | - return true; | |
| 328 | - case 'opener': | |
| 329 | - stack.push(createFrame(conversionMap[name], startOffset, tokenLength, startOffset + tokenLength, leadingTextStart)); | |
| 330 | - offset = startOffset + tokenLength; | |
| 331 | - return true; | |
| 332 | - case 'closer': | |
| 333 | - // If we're not nesting then this is easy - close the block. | |
| 334 | - if (1 === stackDepth) { | |
| 335 | - closeOuterElement(startOffset); | |
| 336 | - offset = startOffset + tokenLength; | |
| 337 | - return true; | |
| 338 | - } | |
| 339 | - | |
| 340 | - // Otherwise we're nested and we have to close out the current | |
| 341 | - // block and add it as a innerBlock to the parent. | |
| 342 | - const stackTop = stack.pop(); | |
| 343 | - const text = indoc.substr(stackTop.prevOffset, startOffset - stackTop.prevOffset); | |
| 344 | - stackTop.children.push(text); | |
| 345 | - stackTop.prevOffset = startOffset + tokenLength; | |
| 346 | - const frame = createFrame(stackTop.element, stackTop.tokenStart, stackTop.tokenLength, startOffset + tokenLength); | |
| 347 | - frame.children = stackTop.children; | |
| 348 | - addChild(frame); | |
| 349 | - offset = startOffset + tokenLength; | |
| 350 | - return true; | |
| 351 | - default: | |
| 352 | - addText(); | |
| 353 | - return false; | |
| 354 | - } | |
| 355 | -} | |
| 356 | - | |
| 357 | -/** | |
| 358 | - * Grabs the next token match in the string and returns it's details. | |
| 359 | - * | |
| 360 | - * @private | |
| 361 | - * | |
| 362 | - * @return {Array} An array of details for the token matched. | |
| 363 | - */ | |
| 364 | -function nextToken() { | |
| 365 | - const matches = tokenizer.exec(indoc); | |
| 366 | - // We have no more tokens. | |
| 367 | - if (null === matches) { | |
| 368 | - return ['no-more-tokens']; | |
| 369 | - } | |
| 370 | - const startedAt = matches.index; | |
| 371 | - const [match, isClosing, name, isSelfClosed] = matches; | |
| 372 | - const length = match.length; | |
| 373 | - if (isSelfClosed) { | |
| 374 | - return ['self-closed', name, startedAt, length]; | |
| 375 | - } | |
| 376 | - if (isClosing) { | |
| 377 | - return ['closer', name, startedAt, length]; | |
| 378 | - } | |
| 379 | - return ['opener', name, startedAt, length]; | |
| 380 | -} | |
| 381 | - | |
| 382 | -/** | |
| 383 | - * Pushes text extracted from the indoc string to the output stack given the | |
| 384 | - * current rawLength value and offset (if rawLength is provided ) or the | |
| 385 | - * indoc.length and offset. | |
| 386 | - * | |
| 387 | - * @private | |
| 388 | - */ | |
| 389 | -function addText() { | |
| 390 | - const length = indoc.length - offset; | |
| 391 | - if (0 === length) { | |
| 392 | - return; | |
| 393 | - } | |
| 394 | - output.push(indoc.substr(offset, length)); | |
| 395 | -} | |
| 396 | - | |
| 397 | -/** | |
| 398 | - * Pushes a child element to the associated parent element's children for the | |
| 399 | - * parent currently active in the stack. | |
| 400 | - * | |
| 401 | - * @private | |
| 402 | - * | |
| 403 | - * @param {Frame} frame The Frame containing the child element and it's | |
| 404 | - * token information. | |
| 405 | - */ | |
| 406 | -function addChild(frame) { | |
| 407 | - const { | |
| 408 | - element, | |
| 409 | - tokenStart, | |
| 410 | - tokenLength, | |
| 411 | - prevOffset, | |
| 412 | - children | |
| 413 | - } = frame; | |
| 414 | - const parent = stack[stack.length - 1]; | |
| 415 | - const text = indoc.substr(parent.prevOffset, tokenStart - parent.prevOffset); | |
| 416 | - if (text) { | |
| 417 | - parent.children.push(text); | |
| 418 | - } | |
| 419 | - parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children)); | |
| 420 | - parent.prevOffset = prevOffset ? prevOffset : tokenStart + tokenLength; | |
| 421 | -} | |
| 422 | - | |
| 423 | -/** | |
| 424 | - * This is called for closing tags. It creates the element currently active in | |
| 425 | - * the stack. | |
| 426 | - * | |
| 427 | - * @private | |
| 428 | - * | |
| 429 | - * @param {number} endOffset Offset at which the closing tag for the element | |
| 430 | - * begins in the string. If this is greater than the | |
| 431 | - * prevOffset attached to the element, then this | |
| 432 | - * helps capture any remaining nested text nodes in | |
| 433 | - * the element. | |
| 434 | - */ | |
| 435 | -function closeOuterElement(endOffset) { | |
| 436 | - const { | |
| 437 | - element, | |
| 438 | - leadingTextStart, | |
| 439 | - prevOffset, | |
| 440 | - tokenStart, | |
| 441 | - children | |
| 442 | - } = stack.pop(); | |
| 443 | - const text = endOffset ? indoc.substr(prevOffset, endOffset - prevOffset) : indoc.substr(prevOffset); | |
| 444 | - if (text) { | |
| 445 | - children.push(text); | |
| 446 | - } | |
| 447 | - if (null !== leadingTextStart) { | |
| 448 | - output.push(indoc.substr(leadingTextStart, tokenStart - leadingTextStart)); | |
| 449 | - } | |
| 450 | - output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children)); | |
| 451 | -} | |
| 452 | -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createInterpolateElement); | |
| 453 | -//# sourceMappingURL=create-interpolate-element.js.map | |
| 454 | - | |
| 455 | -/***/ }), | |
| 456 | - | |
| 457 | -/***/ "../node_modules/@wordpress/element/build-module/index.js": | |
| 458 | -/*!****************************************************************!*\ | |
| 459 | - !*** ../node_modules/@wordpress/element/build-module/index.js ***! | |
| 460 | - \****************************************************************/ | |
| 461 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 462 | - | |
| 463 | -"use strict"; | |
| 464 | -__webpack_require__.r(__webpack_exports__); | |
| 465 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 466 | -/* harmony export */ Children: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Children), | |
| 467 | -/* harmony export */ Component: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Component), | |
| 468 | -/* harmony export */ Fragment: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Fragment), | |
| 469 | -/* harmony export */ Platform: () => (/* reexport safe */ _platform__WEBPACK_IMPORTED_MODULE_4__["default"]), | |
| 470 | -/* harmony export */ PureComponent: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.PureComponent), | |
| 471 | -/* harmony export */ RawHTML: () => (/* reexport safe */ _raw_html__WEBPACK_IMPORTED_MODULE_6__["default"]), | |
| 472 | -/* harmony export */ StrictMode: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode), | |
| 473 | -/* harmony export */ Suspense: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Suspense), | |
| 474 | -/* harmony export */ cloneElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.cloneElement), | |
| 475 | -/* harmony export */ concatChildren: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.concatChildren), | |
| 476 | -/* harmony export */ createContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createContext), | |
| 477 | -/* harmony export */ createElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createElement), | |
| 478 | -/* harmony export */ createInterpolateElement: () => (/* reexport safe */ _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__["default"]), | |
| 479 | -/* harmony export */ createPortal: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createPortal), | |
| 480 | -/* harmony export */ createRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createRef), | |
| 481 | -/* harmony export */ createRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createRoot), | |
| 482 | -/* harmony export */ findDOMNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.findDOMNode), | |
| 483 | -/* harmony export */ flushSync: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.flushSync), | |
| 484 | -/* harmony export */ forwardRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.forwardRef), | |
| 485 | -/* harmony export */ hydrate: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrate), | |
| 486 | -/* harmony export */ hydrateRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot), | |
| 487 | -/* harmony export */ isEmptyElement: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.isEmptyElement), | |
| 488 | -/* harmony export */ isValidElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.isValidElement), | |
| 489 | -/* harmony export */ lazy: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.lazy), | |
| 490 | -/* harmony export */ memo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.memo), | |
| 491 | -/* harmony export */ render: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.render), | |
| 492 | -/* harmony export */ renderToString: () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_5__["default"]), | |
| 493 | -/* harmony export */ startTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.startTransition), | |
| 494 | -/* harmony export */ switchChildrenNodeName: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.switchChildrenNodeName), | |
| 495 | -/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.unmountComponentAtNode), | |
| 496 | -/* harmony export */ useCallback: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useCallback), | |
| 497 | -/* harmony export */ useContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useContext), | |
| 498 | -/* harmony export */ useDebugValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue), | |
| 499 | -/* harmony export */ useDeferredValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDeferredValue), | |
| 500 | -/* harmony export */ useEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useEffect), | |
| 501 | -/* harmony export */ useId: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useId), | |
| 502 | -/* harmony export */ useImperativeHandle: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle), | |
| 503 | -/* harmony export */ useInsertionEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect), | |
| 504 | -/* harmony export */ useLayoutEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect), | |
| 505 | -/* harmony export */ useMemo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useMemo), | |
| 506 | -/* harmony export */ useReducer: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useReducer), | |
| 507 | -/* harmony export */ useRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useRef), | |
| 508 | -/* harmony export */ useState: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useState), | |
| 509 | -/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore), | |
| 510 | -/* harmony export */ useTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useTransition) | |
| 511 | -/* harmony export */ }); | |
| 512 | -/* harmony import */ var _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-interpolate-element */ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js"); | |
| 513 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "../node_modules/@wordpress/element/build-module/react.js"); | |
| 514 | -/* harmony import */ var _react_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-platform */ "../node_modules/@wordpress/element/build-module/react-platform.js"); | |
| 515 | -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "../node_modules/@wordpress/element/build-module/utils.js"); | |
| 516 | -/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "../node_modules/@wordpress/element/build-module/platform.js"); | |
| 517 | -/* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serialize */ "../node_modules/@wordpress/element/build-module/serialize.js"); | |
| 518 | -/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js"); | |
| 519 | - | |
| 520 | - | |
| 521 | - | |
| 522 | - | |
| 523 | - | |
| 524 | - | |
| 525 | - | |
| 526 | -//# sourceMappingURL=index.js.map | |
| 527 | - | |
| 528 | -/***/ }), | |
| 529 | - | |
| 530 | -/***/ "../node_modules/@wordpress/element/build-module/platform.js": | |
| 531 | -/*!*******************************************************************!*\ | |
| 532 | - !*** ../node_modules/@wordpress/element/build-module/platform.js ***! | |
| 533 | - \*******************************************************************/ | |
| 534 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 535 | - | |
| 536 | -"use strict"; | |
| 537 | -__webpack_require__.r(__webpack_exports__); | |
| 538 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 539 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | |
| 540 | -/* harmony export */ }); | |
| 541 | -/** | |
| 542 | - * Parts of this source were derived and modified from react-native-web, | |
| 543 | - * released under the MIT license. | |
| 544 | - * | |
| 545 | - * Copyright (c) 2016-present, Nicolas Gallagher. | |
| 546 | - * Copyright (c) 2015-present, Facebook, Inc. | |
| 547 | - * | |
| 548 | - */ | |
| 549 | -const Platform = { | |
| 550 | - OS: 'web', | |
| 551 | - select: spec => 'web' in spec ? spec.web : spec.default, | |
| 552 | - isWeb: true | |
| 553 | -}; | |
| 554 | -/** | |
| 555 | - * Component used to detect the current Platform being used. | |
| 556 | - * Use Platform.OS === 'web' to detect if running on web enviroment. | |
| 557 | - * | |
| 558 | - * This is the same concept as the React Native implementation. | |
| 559 | - * | |
| 560 | - * @see https://reactnative.dev/docs/platform-specific-code#platform-module | |
| 561 | - * | |
| 562 | - * Here is an example of how to use the select method: | |
| 563 | - * @example | |
| 564 | - * ```js | |
| 565 | - * import { Platform } from '@wordpress/element'; | |
| 566 | - * | |
| 567 | - * const placeholderLabel = Platform.select( { | |
| 568 | - * native: __( 'Add media' ), | |
| 569 | - * web: __( 'Drag images, upload new ones or select files from your library.' ), | |
| 570 | - * } ); | |
| 571 | - * ``` | |
| 572 | - */ | |
| 573 | -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Platform); | |
| 574 | -//# sourceMappingURL=platform.js.map | |
| 575 | - | |
| 576 | -/***/ }), | |
| 577 | - | |
| 578 | -/***/ "../node_modules/@wordpress/element/build-module/raw-html.js": | |
| 579 | -/*!*******************************************************************!*\ | |
| 580 | - !*** ../node_modules/@wordpress/element/build-module/raw-html.js ***! | |
| 581 | - \*******************************************************************/ | |
| 582 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 583 | - | |
| 584 | -"use strict"; | |
| 585 | -__webpack_require__.r(__webpack_exports__); | |
| 586 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 587 | -/* harmony export */ "default": () => (/* binding */ RawHTML) | |
| 588 | -/* harmony export */ }); | |
| 589 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react"); | |
| 590 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__); | |
| 591 | -/** | |
| 592 | - * Internal dependencies | |
| 593 | - */ | |
| 594 | - | |
| 595 | - | |
| 596 | -/** @typedef {{children: string} & import('react').ComponentPropsWithoutRef<'div'>} RawHTMLProps */ | |
| 597 | - | |
| 598 | -/** | |
| 599 | - * Component used as equivalent of Fragment with unescaped HTML, in cases where | |
| 600 | - * it is desirable to render dangerous HTML without needing a wrapper element. | |
| 601 | - * To preserve additional props, a `div` wrapper _will_ be created if any props | |
| 602 | - * aside from `children` are passed. | |
| 603 | - * | |
| 604 | - * @param {RawHTMLProps} props Children should be a string of HTML or an array | |
| 605 | - * of strings. Other props will be passed through | |
| 606 | - * to the div wrapper. | |
| 607 | - * | |
| 608 | - * @return {JSX.Element} Dangerously-rendering component. | |
| 609 | - */ | |
| 610 | -function RawHTML({ | |
| 611 | - children, | |
| 612 | - ...props | |
| 613 | -}) { | |
| 614 | - let rawHtml = ''; | |
| 615 | - | |
| 616 | - // Cast children as an array, and concatenate each element if it is a string. | |
| 617 | - _react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).forEach(child => { | |
| 618 | - if (typeof child === 'string' && child.trim() !== '') { | |
| 619 | - rawHtml += child; | |
| 620 | - } | |
| 621 | - }); | |
| 622 | - | |
| 623 | - // The `div` wrapper will be stripped by the `renderElement` serializer in | |
| 624 | - // `./serialize.js` unless there are non-children props present. | |
| 625 | - return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)('div', { | |
| 626 | - dangerouslySetInnerHTML: { | |
| 627 | - __html: rawHtml | |
| 628 | - }, | |
| 629 | - ...props | |
| 630 | - }); | |
| 631 | -} | |
| 632 | -//# sourceMappingURL=raw-html.js.map | |
| 633 | - | |
| 634 | -/***/ }), | |
| 635 | - | |
| 636 | -/***/ "../node_modules/@wordpress/element/build-module/react-platform.js": | |
| 637 | -/*!*************************************************************************!*\ | |
| 638 | - !*** ../node_modules/@wordpress/element/build-module/react-platform.js ***! | |
| 639 | - \*************************************************************************/ | |
| 640 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 641 | - | |
| 642 | -"use strict"; | |
| 643 | -__webpack_require__.r(__webpack_exports__); | |
| 644 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 645 | -/* harmony export */ createPortal: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.createPortal), | |
| 646 | -/* harmony export */ createRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot), | |
| 647 | -/* harmony export */ findDOMNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode), | |
| 648 | -/* harmony export */ flushSync: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.flushSync), | |
| 649 | -/* harmony export */ hydrate: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate), | |
| 650 | -/* harmony export */ hydrateRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.hydrateRoot), | |
| 651 | -/* harmony export */ render: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.render), | |
| 652 | -/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode) | |
| 653 | -/* harmony export */ }); | |
| 654 | -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom"); | |
| 655 | -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__); | |
| 656 | -/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js"); | |
| 657 | -/** | |
| 658 | - * External dependencies | |
| 659 | - */ | |
| 660 | - | |
| 661 | - | |
| 662 | - | |
| 663 | -/** | |
| 664 | - * Creates a portal into which a component can be rendered. | |
| 665 | - * | |
| 666 | - * @see https://github.com/facebook/react/issues/10309#issuecomment-318433235 | |
| 667 | - * | |
| 668 | - * @param {import('react').ReactElement} child Any renderable child, such as an element, | |
| 669 | - * string, or fragment. | |
| 670 | - * @param {HTMLElement} container DOM node into which element should be rendered. | |
| 671 | - */ | |
| 672 | - | |
| 673 | - | |
| 674 | -/** | |
| 675 | - * Finds the dom node of a React component. | |
| 676 | - * | |
| 677 | - * @param {import('react').ComponentType} component Component's instance. | |
| 678 | - */ | |
| 679 | - | |
| 680 | - | |
| 681 | -/** | |
| 682 | - * Forces React to flush any updates inside the provided callback synchronously. | |
| 683 | - * | |
| 684 | - * @param {Function} callback Callback to run synchronously. | |
| 685 | - */ | |
| 686 | - | |
| 687 | - | |
| 688 | -/** | |
| 689 | - * Renders a given element into the target DOM node. | |
| 690 | - * | |
| 691 | - * @deprecated since WordPress 6.2.0. Use `createRoot` instead. | |
| 692 | - * @see https://react.dev/reference/react-dom/render | |
| 693 | - */ | |
| 694 | - | |
| 695 | - | |
| 696 | -/** | |
| 697 | - * Hydrates a given element into the target DOM node. | |
| 698 | - * | |
| 699 | - * @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead. | |
| 700 | - * @see https://react.dev/reference/react-dom/hydrate | |
| 701 | - */ | |
| 702 | - | |
| 703 | - | |
| 704 | -/** | |
| 705 | - * Creates a new React root for the target DOM node. | |
| 706 | - * | |
| 707 | - * @since 6.2.0 Introduced in WordPress core. | |
| 708 | - * @see https://react.dev/reference/react-dom/client/createRoot | |
| 709 | - */ | |
| 710 | - | |
| 711 | - | |
| 712 | -/** | |
| 713 | - * Creates a new React root for the target DOM node and hydrates it with a pre-generated markup. | |
| 714 | - * | |
| 715 | - * @since 6.2.0 Introduced in WordPress core. | |
| 716 | - * @see https://react.dev/reference/react-dom/client/hydrateRoot | |
| 717 | - */ | |
| 718 | - | |
| 719 | - | |
| 720 | -/** | |
| 721 | - * Removes any mounted element from the target DOM node. | |
| 722 | - * | |
| 723 | - * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead. | |
| 724 | - * @see https://react.dev/reference/react-dom/unmountComponentAtNode | |
| 725 | - */ | |
| 726 | - | |
| 727 | -//# sourceMappingURL=react-platform.js.map | |
| 728 | - | |
| 729 | -/***/ }), | |
| 730 | - | |
| 731 | -/***/ "../node_modules/@wordpress/element/build-module/react.js": | |
| 732 | -/*!****************************************************************!*\ | |
| 733 | - !*** ../node_modules/@wordpress/element/build-module/react.js ***! | |
| 734 | - \****************************************************************/ | |
| 735 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 736 | - | |
| 737 | -"use strict"; | |
| 738 | -__webpack_require__.r(__webpack_exports__); | |
| 739 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 740 | -/* harmony export */ Children: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Children), | |
| 741 | -/* harmony export */ Component: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Component), | |
| 742 | -/* harmony export */ Fragment: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Fragment), | |
| 743 | -/* harmony export */ PureComponent: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.PureComponent), | |
| 744 | -/* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode), | |
| 745 | -/* harmony export */ Suspense: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Suspense), | |
| 746 | -/* harmony export */ cloneElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.cloneElement), | |
| 747 | -/* harmony export */ concatChildren: () => (/* binding */ concatChildren), | |
| 748 | -/* harmony export */ createContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createContext), | |
| 749 | -/* harmony export */ createElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createElement), | |
| 750 | -/* harmony export */ createRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createRef), | |
| 751 | -/* harmony export */ forwardRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef), | |
| 752 | -/* harmony export */ isValidElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement), | |
| 753 | -/* harmony export */ lazy: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.lazy), | |
| 754 | -/* harmony export */ memo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.memo), | |
| 755 | -/* harmony export */ startTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.startTransition), | |
| 756 | -/* harmony export */ switchChildrenNodeName: () => (/* binding */ switchChildrenNodeName), | |
| 757 | -/* harmony export */ useCallback: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useCallback), | |
| 758 | -/* harmony export */ useContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useContext), | |
| 759 | -/* harmony export */ useDebugValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue), | |
| 760 | -/* harmony export */ useDeferredValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDeferredValue), | |
| 761 | -/* harmony export */ useEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useEffect), | |
| 762 | -/* harmony export */ useId: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useId), | |
| 763 | -/* harmony export */ useImperativeHandle: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle), | |
| 764 | -/* harmony export */ useInsertionEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect), | |
| 765 | -/* harmony export */ useLayoutEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect), | |
| 766 | -/* harmony export */ useMemo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useMemo), | |
| 767 | -/* harmony export */ useReducer: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useReducer), | |
| 768 | -/* harmony export */ useRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useRef), | |
| 769 | -/* harmony export */ useState: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useState), | |
| 770 | -/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore), | |
| 771 | -/* harmony export */ useTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useTransition) | |
| 772 | -/* harmony export */ }); | |
| 773 | -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); | |
| 774 | -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); | |
| 775 | -/** | |
| 776 | - * External dependencies | |
| 777 | - */ | |
| 778 | -// eslint-disable-next-line @typescript-eslint/no-restricted-imports | |
| 779 | - | |
| 780 | - | |
| 781 | -/** | |
| 782 | - * Object containing a React element. | |
| 783 | - * | |
| 784 | - * @typedef {import('react').ReactElement} Element | |
| 785 | - */ | |
| 786 | - | |
| 787 | -/** | |
| 788 | - * Object containing a React component. | |
| 789 | - * | |
| 790 | - * @typedef {import('react').ComponentType} ComponentType | |
| 791 | - */ | |
| 792 | - | |
| 793 | -/** | |
| 794 | - * Object containing a React synthetic event. | |
| 795 | - * | |
| 796 | - * @typedef {import('react').SyntheticEvent} SyntheticEvent | |
| 797 | - */ | |
| 798 | - | |
| 799 | -/** | |
| 800 | - * Object containing a React synthetic event. | |
| 801 | - * | |
| 802 | - * @template T | |
| 803 | - * @typedef {import('react').RefObject<T>} RefObject<T> | |
| 804 | - */ | |
| 805 | - | |
| 806 | -/** | |
| 807 | - * Object that provides utilities for dealing with React children. | |
| 808 | - */ | |
| 809 | - | |
| 810 | - | |
| 811 | -/** | |
| 812 | - * Creates a copy of an element with extended props. | |
| 813 | - * | |
| 814 | - * @param {Element} element Element | |
| 815 | - * @param {?Object} props Props to apply to cloned element | |
| 816 | - * | |
| 817 | - * @return {Element} Cloned element. | |
| 818 | - */ | |
| 819 | - | |
| 820 | - | |
| 821 | -/** | |
| 822 | - * A base class to create WordPress Components (Refs, state and lifecycle hooks) | |
| 823 | - */ | |
| 824 | - | |
| 825 | - | |
| 826 | -/** | |
| 827 | - * Creates a context object containing two components: a provider and consumer. | |
| 828 | - * | |
| 829 | - * @param {Object} defaultValue A default data stored in the context. | |
| 830 | - * | |
| 831 | - * @return {Object} Context object. | |
| 832 | - */ | |
| 833 | - | |
| 834 | - | |
| 835 | -/** | |
| 836 | - * Returns a new element of given type. Type can be either a string tag name or | |
| 837 | - * another function which itself returns an element. | |
| 838 | - * | |
| 839 | - * @param {?(string|Function)} type Tag name or element creator | |
| 840 | - * @param {Object} props Element properties, either attribute | |
| 841 | - * set to apply to DOM node or values to | |
| 842 | - * pass through to element creator | |
| 843 | - * @param {...Element} children Descendant elements | |
| 844 | - * | |
| 845 | - * @return {Element} Element. | |
| 846 | - */ | |
| 847 | - | |
| 848 | - | |
| 849 | -/** | |
| 850 | - * Returns an object tracking a reference to a rendered element via its | |
| 851 | - * `current` property as either a DOMElement or Element, dependent upon the | |
| 852 | - * type of element rendered with the ref attribute. | |
| 853 | - * | |
| 854 | - * @return {Object} Ref object. | |
| 855 | - */ | |
| 856 | - | |
| 857 | - | |
| 858 | -/** | |
| 859 | - * Component enhancer used to enable passing a ref to its wrapped component. | |
| 860 | - * Pass a function argument which receives `props` and `ref` as its arguments, | |
| 861 | - * returning an element using the forwarded ref. The return value is a new | |
| 862 | - * component which forwards its ref. | |
| 863 | - * | |
| 864 | - * @param {Function} forwarder Function passed `props` and `ref`, expected to | |
| 865 | - * return an element. | |
| 866 | - * | |
| 867 | - * @return {Component} Enhanced component. | |
| 868 | - */ | |
| 869 | - | |
| 870 | - | |
| 871 | -/** | |
| 872 | - * A component which renders its children without any wrapping element. | |
| 873 | - */ | |
| 874 | - | |
| 875 | - | |
| 876 | -/** | |
| 877 | - * Checks if an object is a valid React Element. | |
| 878 | - * | |
| 879 | - * @param {Object} objectToCheck The object to be checked. | |
| 880 | - * | |
| 881 | - * @return {boolean} true if objectToTest is a valid React Element and false otherwise. | |
| 882 | - */ | |
| 883 | - | |
| 884 | - | |
| 885 | -/** | |
| 886 | - * @see https://reactjs.org/docs/react-api.html#reactmemo | |
| 887 | - */ | |
| 888 | - | |
| 889 | - | |
| 890 | -/** | |
| 891 | - * Component that activates additional checks and warnings for its descendants. | |
| 892 | - */ | |
| 893 | - | |
| 894 | - | |
| 895 | -/** | |
| 896 | - * @see https://reactjs.org/docs/hooks-reference.html#usecallback | |
| 897 | - */ | |
| 898 | - | |
| 899 | - | |
| 900 | -/** | |
| 901 | - * @see https://reactjs.org/docs/hooks-reference.html#usecontext | |
| 902 | - */ | |
| 903 | - | |
| 904 | - | |
| 905 | -/** | |
| 906 | - * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue | |
| 907 | - */ | |
| 908 | - | |
| 909 | - | |
| 910 | -/** | |
| 911 | - * @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue | |
| 912 | - */ | |
| 913 | - | |
| 914 | - | |
| 915 | -/** | |
| 916 | - * @see https://reactjs.org/docs/hooks-reference.html#useeffect | |
| 917 | - */ | |
| 918 | - | |
| 919 | - | |
| 920 | -/** | |
| 921 | - * @see https://reactjs.org/docs/hooks-reference.html#useid | |
| 922 | - */ | |
| 923 | - | |
| 924 | - | |
| 925 | -/** | |
| 926 | - * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle | |
| 927 | - */ | |
| 928 | - | |
| 929 | - | |
| 930 | -/** | |
| 931 | - * @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect | |
| 932 | - */ | |
| 933 | - | |
| 934 | - | |
| 935 | -/** | |
| 936 | - * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect | |
| 937 | - */ | |
| 938 | - | |
| 939 | - | |
| 940 | -/** | |
| 941 | - * @see https://reactjs.org/docs/hooks-reference.html#usememo | |
| 942 | - */ | |
| 943 | - | |
| 944 | - | |
| 945 | -/** | |
| 946 | - * @see https://reactjs.org/docs/hooks-reference.html#usereducer | |
| 947 | - */ | |
| 948 | - | |
| 949 | - | |
| 950 | -/** | |
| 951 | - * @see https://reactjs.org/docs/hooks-reference.html#useref | |
| 952 | - */ | |
| 953 | - | |
| 954 | - | |
| 955 | -/** | |
| 956 | - * @see https://reactjs.org/docs/hooks-reference.html#usestate | |
| 957 | - */ | |
| 958 | - | |
| 959 | - | |
| 960 | -/** | |
| 961 | - * @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore | |
| 962 | - */ | |
| 963 | - | |
| 964 | - | |
| 965 | -/** | |
| 966 | - * @see https://reactjs.org/docs/hooks-reference.html#usetransition | |
| 967 | - */ | |
| 968 | - | |
| 969 | - | |
| 970 | -/** | |
| 971 | - * @see https://reactjs.org/docs/react-api.html#starttransition | |
| 972 | - */ | |
| 973 | - | |
| 974 | - | |
| 975 | -/** | |
| 976 | - * @see https://reactjs.org/docs/react-api.html#reactlazy | |
| 977 | - */ | |
| 978 | - | |
| 979 | - | |
| 980 | -/** | |
| 981 | - * @see https://reactjs.org/docs/react-api.html#reactsuspense | |
| 982 | - */ | |
| 983 | - | |
| 984 | - | |
| 985 | -/** | |
| 986 | - * @see https://reactjs.org/docs/react-api.html#reactpurecomponent | |
| 987 | - */ | |
| 988 | - | |
| 989 | - | |
| 990 | -/** | |
| 991 | - * Concatenate two or more React children objects. | |
| 992 | - * | |
| 993 | - * @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate. | |
| 994 | - * | |
| 995 | - * @return {Array} The concatenated value. | |
| 996 | - */ | |
| 997 | -function concatChildren(...childrenArguments) { | |
| 998 | - return childrenArguments.reduce((accumulator, children, i) => { | |
| 999 | - react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (child, j) => { | |
| 1000 | - if (child && 'string' !== typeof child) { | |
| 1001 | - child = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { | |
| 1002 | - key: [i, j].join() | |
| 1003 | - }); | |
| 1004 | - } | |
| 1005 | - accumulator.push(child); | |
| 1006 | - }); | |
| 1007 | - return accumulator; | |
| 1008 | - }, []); | |
| 1009 | -} | |
| 1010 | - | |
| 1011 | -/** | |
| 1012 | - * Switches the nodeName of all the elements in the children object. | |
| 1013 | - * | |
| 1014 | - * @param {?Object} children Children object. | |
| 1015 | - * @param {string} nodeName Node name. | |
| 1016 | - * | |
| 1017 | - * @return {?Object} The updated children object. | |
| 1018 | - */ | |
| 1019 | -function switchChildrenNodeName(children, nodeName) { | |
| 1020 | - return children && react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (elt, index) => { | |
| 1021 | - if (typeof elt?.valueOf() === 'string') { | |
| 1022 | - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, { | |
| 1023 | - key: index | |
| 1024 | - }, elt); | |
| 1025 | - } | |
| 1026 | - const { | |
| 1027 | - children: childrenProp, | |
| 1028 | - ...props | |
| 1029 | - } = elt.props; | |
| 1030 | - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, { | |
| 1031 | - key: index, | |
| 1032 | - ...props | |
| 1033 | - }, childrenProp); | |
| 1034 | - }); | |
| 1035 | -} | |
| 1036 | -//# sourceMappingURL=react.js.map | |
| 1037 | - | |
| 1038 | -/***/ }), | |
| 1039 | - | |
| 1040 | -/***/ "../node_modules/@wordpress/element/build-module/serialize.js": | |
| 1041 | -/*!********************************************************************!*\ | |
| 1042 | - !*** ../node_modules/@wordpress/element/build-module/serialize.js ***! | |
| 1043 | - \********************************************************************/ | |
| 1044 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1045 | - | |
| 1046 | -"use strict"; | |
| 1047 | -__webpack_require__.r(__webpack_exports__); | |
| 1048 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1049 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), | |
| 1050 | -/* harmony export */ hasPrefix: () => (/* binding */ hasPrefix), | |
| 1051 | -/* harmony export */ renderAttributes: () => (/* binding */ renderAttributes), | |
| 1052 | -/* harmony export */ renderComponent: () => (/* binding */ renderComponent), | |
| 1053 | -/* harmony export */ renderElement: () => (/* binding */ renderElement), | |
| 1054 | -/* harmony export */ renderNativeComponent: () => (/* binding */ renderNativeComponent), | |
| 1055 | -/* harmony export */ renderStyle: () => (/* binding */ renderStyle) | |
| 1056 | -/* harmony export */ }); | |
| 1057 | -/* harmony import */ var is_plain_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-plain-object */ "../node_modules/is-plain-object/dist/is-plain-object.mjs"); | |
| 1058 | -/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! change-case */ "../node_modules/param-case/dist.es2015/index.js"); | |
| 1059 | -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/escape-html */ "../node_modules/@wordpress/escape-html/build-module/index.js"); | |
| 1060 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./react */ "react"); | |
| 1061 | -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_3__); | |
| 1062 | -/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js"); | |
| 1063 | -/** | |
| 1064 | - * Parts of this source were derived and modified from fast-react-render, | |
| 1065 | - * released under the MIT license. | |
| 1066 | - * | |
| 1067 | - * https://github.com/alt-j/fast-react-render | |
| 1068 | - * | |
| 1069 | - * Copyright (c) 2016 Andrey Morozov | |
| 1070 | - * | |
| 1071 | - * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 1072 | - * of this software and associated documentation files (the "Software"), to deal | |
| 1073 | - * in the Software without restriction, including without limitation the rights | |
| 1074 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 1075 | - * copies of the Software, and to permit persons to whom the Software is | |
| 1076 | - * furnished to do so, subject to the following conditions: | |
| 1077 | - * | |
| 1078 | - * The above copyright notice and this permission notice shall be included in | |
| 1079 | - * all copies or substantial portions of the Software. | |
| 1080 | - * | |
| 1081 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 1082 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 1083 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 1084 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 1085 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 1086 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 1087 | - * THE SOFTWARE. | |
| 1088 | - */ | |
| 1089 | - | |
| 1090 | -/** | |
| 1091 | - * External dependencies | |
| 1092 | - */ | |
| 1093 | - | |
| 1094 | - | |
| 1095 | - | |
| 1096 | -/** | |
| 1097 | - * WordPress dependencies | |
| 1098 | - */ | |
| 1099 | - | |
| 1100 | - | |
| 1101 | -/** | |
| 1102 | - * Internal dependencies | |
| 1103 | - */ | |
| 1104 | - | |
| 1105 | - | |
| 1106 | - | |
| 1107 | -/** @typedef {import('react').ReactElement} ReactElement */ | |
| 1108 | - | |
| 1109 | -const { | |
| 1110 | - Provider, | |
| 1111 | - Consumer | |
| 1112 | -} = (0,_react__WEBPACK_IMPORTED_MODULE_3__.createContext)(undefined); | |
| 1113 | -const ForwardRef = (0,_react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)(() => { | |
| 1114 | - return null; | |
| 1115 | -}); | |
| 1116 | - | |
| 1117 | -/** | |
| 1118 | - * Valid attribute types. | |
| 1119 | - * | |
| 1120 | - * @type {Set<string>} | |
| 1121 | - */ | |
| 1122 | -const ATTRIBUTES_TYPES = new Set(['string', 'boolean', 'number']); | |
| 1123 | - | |
| 1124 | -/** | |
| 1125 | - * Element tags which can be self-closing. | |
| 1126 | - * | |
| 1127 | - * @type {Set<string>} | |
| 1128 | - */ | |
| 1129 | -const SELF_CLOSING_TAGS = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']); | |
| 1130 | - | |
| 1131 | -/** | |
| 1132 | - * Boolean attributes are attributes whose presence as being assigned is | |
| 1133 | - * meaningful, even if only empty. | |
| 1134 | - * | |
| 1135 | - * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes | |
| 1136 | - * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3 | |
| 1137 | - * | |
| 1138 | - * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ] | |
| 1139 | - * .filter( ( tr ) => tr.lastChild.textContent.indexOf( 'Boolean attribute' ) !== -1 ) | |
| 1140 | - * .reduce( ( result, tr ) => Object.assign( result, { | |
| 1141 | - * [ tr.firstChild.textContent.trim() ]: true | |
| 1142 | - * } ), {} ) ).sort(); | |
| 1143 | - * | |
| 1144 | - * @type {Set<string>} | |
| 1145 | - */ | |
| 1146 | -const BOOLEAN_ATTRIBUTES = new Set(['allowfullscreen', 'allowpaymentrequest', 'allowusermedia', 'async', 'autofocus', 'autoplay', 'checked', 'controls', 'default', 'defer', 'disabled', 'download', 'formnovalidate', 'hidden', 'ismap', 'itemscope', 'loop', 'multiple', 'muted', 'nomodule', 'novalidate', 'open', 'playsinline', 'readonly', 'required', 'reversed', 'selected', 'typemustmatch']); | |
| 1147 | - | |
| 1148 | -/** | |
| 1149 | - * Enumerated attributes are attributes which must be of a specific value form. | |
| 1150 | - * Like boolean attributes, these are meaningful if specified, even if not of a | |
| 1151 | - * valid enumerated value. | |
| 1152 | - * | |
| 1153 | - * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute | |
| 1154 | - * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3 | |
| 1155 | - * | |
| 1156 | - * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ] | |
| 1157 | - * .filter( ( tr ) => /^("(.+?)";?\s*)+/.test( tr.lastChild.textContent.trim() ) ) | |
| 1158 | - * .reduce( ( result, tr ) => Object.assign( result, { | |
| 1159 | - * [ tr.firstChild.textContent.trim() ]: true | |
| 1160 | - * } ), {} ) ).sort(); | |
| 1161 | - * | |
| 1162 | - * Some notable omissions: | |
| 1163 | - * | |
| 1164 | - * - `alt`: https://blog.whatwg.org/omit-alt | |
| 1165 | - * | |
| 1166 | - * @type {Set<string>} | |
| 1167 | - */ | |
| 1168 | -const ENUMERATED_ATTRIBUTES = new Set(['autocapitalize', 'autocomplete', 'charset', 'contenteditable', 'crossorigin', 'decoding', 'dir', 'draggable', 'enctype', 'formenctype', 'formmethod', 'http-equiv', 'inputmode', 'kind', 'method', 'preload', 'scope', 'shape', 'spellcheck', 'translate', 'type', 'wrap']); | |
| 1169 | - | |
| 1170 | -/** | |
| 1171 | - * Set of CSS style properties which support assignment of unitless numbers. | |
| 1172 | - * Used in rendering of style properties, where `px` unit is assumed unless | |
| 1173 | - * property is included in this set or value is zero. | |
| 1174 | - * | |
| 1175 | - * Generated via: | |
| 1176 | - * | |
| 1177 | - * Object.entries( document.createElement( 'div' ).style ) | |
| 1178 | - * .filter( ( [ key ] ) => ( | |
| 1179 | - * ! /^(webkit|ms|moz)/.test( key ) && | |
| 1180 | - * ( e.style[ key ] = 10 ) && | |
| 1181 | - * e.style[ key ] === '10' | |
| 1182 | - * ) ) | |
| 1183 | - * .map( ( [ key ] ) => key ) | |
| 1184 | - * .sort(); | |
| 1185 | - * | |
| 1186 | - * @type {Set<string>} | |
| 1187 | - */ | |
| 1188 | -const CSS_PROPERTIES_SUPPORTS_UNITLESS = new Set(['animation', 'animationIterationCount', 'baselineShift', 'borderImageOutset', 'borderImageSlice', 'borderImageWidth', 'columnCount', 'cx', 'cy', 'fillOpacity', 'flexGrow', 'flexShrink', 'floodOpacity', 'fontWeight', 'gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart', 'lineHeight', 'opacity', 'order', 'orphans', 'r', 'rx', 'ry', 'shapeImageThreshold', 'stopOpacity', 'strokeDasharray', 'strokeDashoffset', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'tabSize', 'widows', 'x', 'y', 'zIndex', 'zoom']); | |
| 1189 | - | |
| 1190 | -/** | |
| 1191 | - * Returns true if the specified string is prefixed by one of an array of | |
| 1192 | - * possible prefixes. | |
| 1193 | - * | |
| 1194 | - * @param {string} string String to check. | |
| 1195 | - * @param {string[]} prefixes Possible prefixes. | |
| 1196 | - * | |
| 1197 | - * @return {boolean} Whether string has prefix. | |
| 1198 | - */ | |
| 1199 | -function hasPrefix(string, prefixes) { | |
| 1200 | - return prefixes.some(prefix => string.indexOf(prefix) === 0); | |
| 1201 | -} | |
| 1202 | - | |
| 1203 | -/** | |
| 1204 | - * Returns true if the given prop name should be ignored in attributes | |
| 1205 | - * serialization, or false otherwise. | |
| 1206 | - * | |
| 1207 | - * @param {string} attribute Attribute to check. | |
| 1208 | - * | |
| 1209 | - * @return {boolean} Whether attribute should be ignored. | |
| 1210 | - */ | |
| 1211 | -function isInternalAttribute(attribute) { | |
| 1212 | - return 'key' === attribute || 'children' === attribute; | |
| 1213 | -} | |
| 1214 | - | |
| 1215 | -/** | |
| 1216 | - * Returns the normal form of the element's attribute value for HTML. | |
| 1217 | - * | |
| 1218 | - * @param {string} attribute Attribute name. | |
| 1219 | - * @param {*} value Non-normalized attribute value. | |
| 1220 | - * | |
| 1221 | - * @return {*} Normalized attribute value. | |
| 1222 | - */ | |
| 1223 | -function getNormalAttributeValue(attribute, value) { | |
| 1224 | - switch (attribute) { | |
| 1225 | - case 'style': | |
| 1226 | - return renderStyle(value); | |
| 1227 | - } | |
| 1228 | - return value; | |
| 1229 | -} | |
| 1230 | -/** | |
| 1231 | - * This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute). | |
| 1232 | - * We need this to render e.g strokeWidth as stroke-width. | |
| 1233 | - * | |
| 1234 | - * List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute. | |
| 1235 | - */ | |
| 1236 | -const SVG_ATTRIBUTE_WITH_DASHES_LIST = ['accentHeight', 'alignmentBaseline', 'arabicForm', 'baselineShift', 'capHeight', 'clipPath', 'clipRule', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'dominantBaseline', 'enableBackground', 'fillOpacity', 'fillRule', 'floodColor', 'floodOpacity', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'horizAdvX', 'horizOriginX', 'imageRendering', 'letterSpacing', 'lightingColor', 'markerEnd', 'markerMid', 'markerStart', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pointerEvents', 'renderingIntent', 'shapeRendering', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'textAnchor', 'textDecoration', 'textRendering', 'underlinePosition', 'underlineThickness', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'vHanging', 'vIdeographic', 'vMathematical', 'vectorEffect', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'wordSpacing', 'writingMode', 'xmlnsXlink', 'xHeight'].reduce((map, attribute) => { | |
| 1237 | - // The keys are lower-cased for more robust lookup. | |
| 1238 | - map[attribute.toLowerCase()] = attribute; | |
| 1239 | - return map; | |
| 1240 | -}, {}); | |
| 1241 | - | |
| 1242 | -/** | |
| 1243 | - * This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute). | |
| 1244 | - * The keys are lower-cased for more robust lookup. | |
| 1245 | - * Note that this list only contains attributes that contain at least one capital letter. | |
| 1246 | - * Lowercase attributes don't need mapping, since we lowercase all attributes by default. | |
| 1247 | - */ | |
| 1248 | -const CASE_SENSITIVE_SVG_ATTRIBUTES = ['allowReorder', 'attributeName', 'attributeType', 'autoReverse', 'baseFrequency', 'baseProfile', 'calcMode', 'clipPathUnits', 'contentScriptType', 'contentStyleType', 'diffuseConstant', 'edgeMode', 'externalResourcesRequired', 'filterRes', 'filterUnits', 'glyphRef', 'gradientTransform', 'gradientUnits', 'kernelMatrix', 'kernelUnitLength', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'limitingConeAngle', 'markerHeight', 'markerUnits', 'markerWidth', 'maskContentUnits', 'maskUnits', 'numOctaves', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'refX', 'refY', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'specularConstant', 'specularExponent', 'spreadMethod', 'startOffset', 'stdDeviation', 'stitchTiles', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textLength', 'viewBox', 'viewTarget', 'xChannelSelector', 'yChannelSelector'].reduce((map, attribute) => { | |
| 1249 | - // The keys are lower-cased for more robust lookup. | |
| 1250 | - map[attribute.toLowerCase()] = attribute; | |
| 1251 | - return map; | |
| 1252 | -}, {}); | |
| 1253 | - | |
| 1254 | -/** | |
| 1255 | - * This is a map of all SVG attributes that have colons. | |
| 1256 | - * Keys are lower-cased and stripped of their colons for more robust lookup. | |
| 1257 | - */ | |
| 1258 | -const SVG_ATTRIBUTES_WITH_COLONS = ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xml:lang', 'xml:space', 'xmlns:xlink'].reduce((map, attribute) => { | |
| 1259 | - map[attribute.replace(':', '').toLowerCase()] = attribute; | |
| 1260 | - return map; | |
| 1261 | -}, {}); | |
| 1262 | - | |
| 1263 | -/** | |
| 1264 | - * Returns the normal form of the element's attribute name for HTML. | |
| 1265 | - * | |
| 1266 | - * @param {string} attribute Non-normalized attribute name. | |
| 1267 | - * | |
| 1268 | - * @return {string} Normalized attribute name. | |
| 1269 | - */ | |
| 1270 | -function getNormalAttributeName(attribute) { | |
| 1271 | - switch (attribute) { | |
| 1272 | - case 'htmlFor': | |
| 1273 | - return 'for'; | |
| 1274 | - case 'className': | |
| 1275 | - return 'class'; | |
| 1276 | - } | |
| 1277 | - const attributeLowerCase = attribute.toLowerCase(); | |
| 1278 | - if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) { | |
| 1279 | - return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]; | |
| 1280 | - } else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) { | |
| 1281 | - return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]); | |
| 1282 | - } else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) { | |
| 1283 | - return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]; | |
| 1284 | - } | |
| 1285 | - return attributeLowerCase; | |
| 1286 | -} | |
| 1287 | - | |
| 1288 | -/** | |
| 1289 | - * Returns the normal form of the style property name for HTML. | |
| 1290 | - * | |
| 1291 | - * - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color' | |
| 1292 | - * - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor' | |
| 1293 | - * - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform' | |
| 1294 | - * | |
| 1295 | - * @param {string} property Property name. | |
| 1296 | - * | |
| 1297 | - * @return {string} Normalized property name. | |
| 1298 | - */ | |
| 1299 | -function getNormalStylePropertyName(property) { | |
| 1300 | - if (property.startsWith('--')) { | |
| 1301 | - return property; | |
| 1302 | - } | |
| 1303 | - if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) { | |
| 1304 | - return '-' + (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property); | |
| 1305 | - } | |
| 1306 | - return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property); | |
| 1307 | -} | |
| 1308 | - | |
| 1309 | -/** | |
| 1310 | - * Returns the normal form of the style property value for HTML. Appends a | |
| 1311 | - * default pixel unit if numeric, not a unitless property, and not zero. | |
| 1312 | - * | |
| 1313 | - * @param {string} property Property name. | |
| 1314 | - * @param {*} value Non-normalized property value. | |
| 1315 | - * | |
| 1316 | - * @return {*} Normalized property value. | |
| 1317 | - */ | |
| 1318 | -function getNormalStylePropertyValue(property, value) { | |
| 1319 | - if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) { | |
| 1320 | - return value + 'px'; | |
| 1321 | - } | |
| 1322 | - return value; | |
| 1323 | -} | |
| 1324 | - | |
| 1325 | -/** | |
| 1326 | - * Serializes a React element to string. | |
| 1327 | - * | |
| 1328 | - * @param {import('react').ReactNode} element Element to serialize. | |
| 1329 | - * @param {Object} [context] Context object. | |
| 1330 | - * @param {Object} [legacyContext] Legacy context object. | |
| 1331 | - * | |
| 1332 | - * @return {string} Serialized element. | |
| 1333 | - */ | |
| 1334 | -function renderElement(element, context, legacyContext = {}) { | |
| 1335 | - if (null === element || undefined === element || false === element) { | |
| 1336 | - return ''; | |
| 1337 | - } | |
| 1338 | - if (Array.isArray(element)) { | |
| 1339 | - return renderChildren(element, context, legacyContext); | |
| 1340 | - } | |
| 1341 | - switch (typeof element) { | |
| 1342 | - case 'string': | |
| 1343 | - return (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)(element); | |
| 1344 | - case 'number': | |
| 1345 | - return element.toString(); | |
| 1346 | - } | |
| 1347 | - const { | |
| 1348 | - type, | |
| 1349 | - props | |
| 1350 | - } = /** @type {{type?: any, props?: any}} */ | |
| 1351 | - element; | |
| 1352 | - switch (type) { | |
| 1353 | - case _react__WEBPACK_IMPORTED_MODULE_3__.StrictMode: | |
| 1354 | - case _react__WEBPACK_IMPORTED_MODULE_3__.Fragment: | |
| 1355 | - return renderChildren(props.children, context, legacyContext); | |
| 1356 | - case _raw_html__WEBPACK_IMPORTED_MODULE_4__["default"]: | |
| 1357 | - const { | |
| 1358 | - children, | |
| 1359 | - ...wrapperProps | |
| 1360 | - } = props; | |
| 1361 | - return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', { | |
| 1362 | - ...wrapperProps, | |
| 1363 | - dangerouslySetInnerHTML: { | |
| 1364 | - __html: children | |
| 1365 | - } | |
| 1366 | - }, context, legacyContext); | |
| 1367 | - } | |
| 1368 | - switch (typeof type) { | |
| 1369 | - case 'string': | |
| 1370 | - return renderNativeComponent(type, props, context, legacyContext); | |
| 1371 | - case 'function': | |
| 1372 | - if (type.prototype && typeof type.prototype.render === 'function') { | |
| 1373 | - return renderComponent(type, props, context, legacyContext); | |
| 1374 | - } | |
| 1375 | - return renderElement(type(props, legacyContext), context, legacyContext); | |
| 1376 | - } | |
| 1377 | - switch (type && type.$$typeof) { | |
| 1378 | - case Provider.$$typeof: | |
| 1379 | - return renderChildren(props.children, props.value, legacyContext); | |
| 1380 | - case Consumer.$$typeof: | |
| 1381 | - return renderElement(props.children(context || type._currentValue), context, legacyContext); | |
| 1382 | - case ForwardRef.$$typeof: | |
| 1383 | - return renderElement(type.render(props), context, legacyContext); | |
| 1384 | - } | |
| 1385 | - return ''; | |
| 1386 | -} | |
| 1387 | - | |
| 1388 | -/** | |
| 1389 | - * Serializes a native component type to string. | |
| 1390 | - * | |
| 1391 | - * @param {?string} type Native component type to serialize, or null if | |
| 1392 | - * rendering as fragment of children content. | |
| 1393 | - * @param {Object} props Props object. | |
| 1394 | - * @param {Object} [context] Context object. | |
| 1395 | - * @param {Object} [legacyContext] Legacy context object. | |
| 1396 | - * | |
| 1397 | - * @return {string} Serialized element. | |
| 1398 | - */ | |
| 1399 | -function renderNativeComponent(type, props, context, legacyContext = {}) { | |
| 1400 | - let content = ''; | |
| 1401 | - if (type === 'textarea' && props.hasOwnProperty('value')) { | |
| 1402 | - // Textarea children can be assigned as value prop. If it is, render in | |
| 1403 | - // place of children. Ensure to omit so it is not assigned as attribute | |
| 1404 | - // as well. | |
| 1405 | - content = renderChildren(props.value, context, legacyContext); | |
| 1406 | - const { | |
| 1407 | - value, | |
| 1408 | - ...restProps | |
| 1409 | - } = props; | |
| 1410 | - props = restProps; | |
| 1411 | - } else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') { | |
| 1412 | - // Dangerous content is left unescaped. | |
| 1413 | - content = props.dangerouslySetInnerHTML.__html; | |
| 1414 | - } else if (typeof props.children !== 'undefined') { | |
| 1415 | - content = renderChildren(props.children, context, legacyContext); | |
| 1416 | - } | |
| 1417 | - if (!type) { | |
| 1418 | - return content; | |
| 1419 | - } | |
| 1420 | - const attributes = renderAttributes(props); | |
| 1421 | - if (SELF_CLOSING_TAGS.has(type)) { | |
| 1422 | - return '<' + type + attributes + '/>'; | |
| 1423 | - } | |
| 1424 | - return '<' + type + attributes + '>' + content + '</' + type + '>'; | |
| 1425 | -} | |
| 1426 | - | |
| 1427 | -/** @typedef {import('react').ComponentType} ComponentType */ | |
| 1428 | - | |
| 1429 | -/** | |
| 1430 | - * Serializes a non-native component type to string. | |
| 1431 | - * | |
| 1432 | - * @param {ComponentType} Component Component type to serialize. | |
| 1433 | - * @param {Object} props Props object. | |
| 1434 | - * @param {Object} [context] Context object. | |
| 1435 | - * @param {Object} [legacyContext] Legacy context object. | |
| 1436 | - * | |
| 1437 | - * @return {string} Serialized element | |
| 1438 | - */ | |
| 1439 | -function renderComponent(Component, props, context, legacyContext = {}) { | |
| 1440 | - const instance = new ( /** @type {import('react').ComponentClass} */ | |
| 1441 | - Component)(props, legacyContext); | |
| 1442 | - if (typeof | |
| 1443 | - // Ignore reason: Current prettier reformats parens and mangles type assertion | |
| 1444 | - // prettier-ignore | |
| 1445 | - /** @type {{getChildContext?: () => unknown}} */ | |
| 1446 | - instance.getChildContext === 'function') { | |
| 1447 | - Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext()); | |
| 1448 | - } | |
| 1449 | - const html = renderElement(instance.render(), context, legacyContext); | |
| 1450 | - return html; | |
| 1451 | -} | |
| 1452 | - | |
| 1453 | -/** | |
| 1454 | - * Serializes an array of children to string. | |
| 1455 | - * | |
| 1456 | - * @param {import('react').ReactNodeArray} children Children to serialize. | |
| 1457 | - * @param {Object} [context] Context object. | |
| 1458 | - * @param {Object} [legacyContext] Legacy context object. | |
| 1459 | - * | |
| 1460 | - * @return {string} Serialized children. | |
| 1461 | - */ | |
| 1462 | -function renderChildren(children, context, legacyContext = {}) { | |
| 1463 | - let result = ''; | |
| 1464 | - children = Array.isArray(children) ? children : [children]; | |
| 1465 | - for (let i = 0; i < children.length; i++) { | |
| 1466 | - const child = children[i]; | |
| 1467 | - result += renderElement(child, context, legacyContext); | |
| 1468 | - } | |
| 1469 | - return result; | |
| 1470 | -} | |
| 1471 | - | |
| 1472 | -/** | |
| 1473 | - * Renders a props object as a string of HTML attributes. | |
| 1474 | - * | |
| 1475 | - * @param {Object} props Props object. | |
| 1476 | - * | |
| 1477 | - * @return {string} Attributes string. | |
| 1478 | - */ | |
| 1479 | -function renderAttributes(props) { | |
| 1480 | - let result = ''; | |
| 1481 | - for (const key in props) { | |
| 1482 | - const attribute = getNormalAttributeName(key); | |
| 1483 | - if (!(0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.isValidAttributeName)(attribute)) { | |
| 1484 | - continue; | |
| 1485 | - } | |
| 1486 | - let value = getNormalAttributeValue(key, props[key]); | |
| 1487 | - | |
| 1488 | - // If value is not of serializable type, skip. | |
| 1489 | - if (!ATTRIBUTES_TYPES.has(typeof value)) { | |
| 1490 | - continue; | |
| 1491 | - } | |
| 1492 | - | |
| 1493 | - // Don't render internal attribute names. | |
| 1494 | - if (isInternalAttribute(key)) { | |
| 1495 | - continue; | |
| 1496 | - } | |
| 1497 | - const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute); | |
| 1498 | - | |
| 1499 | - // Boolean attribute should be omitted outright if its value is false. | |
| 1500 | - if (isBooleanAttribute && value === false) { | |
| 1501 | - continue; | |
| 1502 | - } | |
| 1503 | - const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute); | |
| 1504 | - | |
| 1505 | - // Only write boolean value as attribute if meaningful. | |
| 1506 | - if (typeof value === 'boolean' && !isMeaningfulAttribute) { | |
| 1507 | - continue; | |
| 1508 | - } | |
| 1509 | - result += ' ' + attribute; | |
| 1510 | - | |
| 1511 | - // Boolean attributes should write attribute name, but without value. | |
| 1512 | - // Mere presence of attribute name is effective truthiness. | |
| 1513 | - if (isBooleanAttribute) { | |
| 1514 | - continue; | |
| 1515 | - } | |
| 1516 | - if (typeof value === 'string') { | |
| 1517 | - value = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(value); | |
| 1518 | - } | |
| 1519 | - result += '="' + value + '"'; | |
| 1520 | - } | |
| 1521 | - return result; | |
| 1522 | -} | |
| 1523 | - | |
| 1524 | -/** | |
| 1525 | - * Renders a style object as a string attribute value. | |
| 1526 | - * | |
| 1527 | - * @param {Object} style Style object. | |
| 1528 | - * | |
| 1529 | - * @return {string} Style attribute value. | |
| 1530 | - */ | |
| 1531 | -function renderStyle(style) { | |
| 1532 | - // Only generate from object, e.g. tolerate string value. | |
| 1533 | - if (!(0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(style)) { | |
| 1534 | - return style; | |
| 1535 | - } | |
| 1536 | - let result; | |
| 1537 | - for (const property in style) { | |
| 1538 | - const value = style[property]; | |
| 1539 | - if (null === value || undefined === value) { | |
| 1540 | - continue; | |
| 1541 | - } | |
| 1542 | - if (result) { | |
| 1543 | - result += ';'; | |
| 1544 | - } else { | |
| 1545 | - result = ''; | |
| 1546 | - } | |
| 1547 | - const normalName = getNormalStylePropertyName(property); | |
| 1548 | - const normalValue = getNormalStylePropertyValue(property, value); | |
| 1549 | - result += normalName + ':' + normalValue; | |
| 1550 | - } | |
| 1551 | - return result; | |
| 1552 | -} | |
| 1553 | -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderElement); | |
| 1554 | -//# sourceMappingURL=serialize.js.map | |
| 1555 | - | |
| 1556 | -/***/ }), | |
| 1557 | - | |
| 1558 | -/***/ "../node_modules/@wordpress/element/build-module/utils.js": | |
| 1559 | -/*!****************************************************************!*\ | |
| 1560 | - !*** ../node_modules/@wordpress/element/build-module/utils.js ***! | |
| 1561 | - \****************************************************************/ | |
| 1562 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1563 | - | |
| 1564 | -"use strict"; | |
| 1565 | -__webpack_require__.r(__webpack_exports__); | |
| 1566 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1567 | -/* harmony export */ isEmptyElement: () => (/* binding */ isEmptyElement) | |
| 1568 | -/* harmony export */ }); | |
| 1569 | -/** | |
| 1570 | - * Checks if the provided WP element is empty. | |
| 1571 | - * | |
| 1572 | - * @param {*} element WP element to check. | |
| 1573 | - * @return {boolean} True when an element is considered empty. | |
| 1574 | - */ | |
| 1575 | -const isEmptyElement = element => { | |
| 1576 | - if (typeof element === 'number') { | |
| 1577 | - return false; | |
| 1578 | - } | |
| 1579 | - if (typeof element?.valueOf() === 'string' || Array.isArray(element)) { | |
| 1580 | - return !element.length; | |
| 1581 | - } | |
| 1582 | - return !element; | |
| 1583 | -}; | |
| 1584 | -//# sourceMappingURL=utils.js.map | |
| 1585 | - | |
| 1586 | -/***/ }), | |
| 1587 | - | |
| 1588 | -/***/ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js": | |
| 1589 | -/*!*****************************************************************************!*\ | |
| 1590 | - !*** ../node_modules/@wordpress/escape-html/build-module/escape-greater.js ***! | |
| 1591 | - \*****************************************************************************/ | |
| 1592 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1593 | - | |
| 1594 | -"use strict"; | |
| 1595 | -__webpack_require__.r(__webpack_exports__); | |
| 1596 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1597 | -/* harmony export */ "default": () => (/* binding */ __unstableEscapeGreaterThan) | |
| 1598 | -/* harmony export */ }); | |
| 1599 | -/** | |
| 1600 | - * Returns a string with greater-than sign replaced. | |
| 1601 | - * | |
| 1602 | - * Note that if a resolution for Trac#45387 comes to fruition, it is no longer | |
| 1603 | - * necessary for `__unstableEscapeGreaterThan` to exist. | |
| 1604 | - * | |
| 1605 | - * See: https://core.trac.wordpress.org/ticket/45387 | |
| 1606 | - * | |
| 1607 | - * @param {string} value Original string. | |
| 1608 | - * | |
| 1609 | - * @return {string} Escaped string. | |
| 1610 | - */ | |
| 1611 | -function __unstableEscapeGreaterThan(value) { | |
| 1612 | - return value.replace(/>/g, '>'); | |
| 1613 | -} | |
| 1614 | -//# sourceMappingURL=escape-greater.js.map | |
| 1615 | - | |
| 1616 | -/***/ }), | |
| 1617 | - | |
| 1618 | -/***/ "../node_modules/@wordpress/escape-html/build-module/index.js": | |
| 1619 | -/*!********************************************************************!*\ | |
| 1620 | - !*** ../node_modules/@wordpress/escape-html/build-module/index.js ***! | |
| 1621 | - \********************************************************************/ | |
| 1622 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1623 | - | |
| 1624 | -"use strict"; | |
| 1625 | -__webpack_require__.r(__webpack_exports__); | |
| 1626 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1627 | -/* harmony export */ escapeAmpersand: () => (/* binding */ escapeAmpersand), | |
| 1628 | -/* harmony export */ escapeAttribute: () => (/* binding */ escapeAttribute), | |
| 1629 | -/* harmony export */ escapeEditableHTML: () => (/* binding */ escapeEditableHTML), | |
| 1630 | -/* harmony export */ escapeHTML: () => (/* binding */ escapeHTML), | |
| 1631 | -/* harmony export */ escapeLessThan: () => (/* binding */ escapeLessThan), | |
| 1632 | -/* harmony export */ escapeQuotationMark: () => (/* binding */ escapeQuotationMark), | |
| 1633 | -/* harmony export */ isValidAttributeName: () => (/* binding */ isValidAttributeName) | |
| 1634 | -/* harmony export */ }); | |
| 1635 | -/* harmony import */ var _escape_greater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-greater */ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js"); | |
| 1636 | -/** | |
| 1637 | - * Internal dependencies | |
| 1638 | - */ | |
| 1639 | - | |
| 1640 | - | |
| 1641 | -/** | |
| 1642 | - * Regular expression matching invalid attribute names. | |
| 1643 | - * | |
| 1644 | - * "Attribute names must consist of one or more characters other than controls, | |
| 1645 | - * U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=), | |
| 1646 | - * and noncharacters." | |
| 1647 | - * | |
| 1648 | - * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 | |
| 1649 | - * | |
| 1650 | - * @type {RegExp} | |
| 1651 | - */ | |
| 1652 | -const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/; | |
| 1653 | - | |
| 1654 | -/** | |
| 1655 | - * Returns a string with ampersands escaped. Note that this is an imperfect | |
| 1656 | - * implementation, where only ampersands which do not appear as a pattern of | |
| 1657 | - * named, decimal, or hexadecimal character references are escaped. Invalid | |
| 1658 | - * named references (i.e. ambiguous ampersand) are still permitted. | |
| 1659 | - * | |
| 1660 | - * @see https://w3c.github.io/html/syntax.html#character-references | |
| 1661 | - * @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand | |
| 1662 | - * @see https://w3c.github.io/html/syntax.html#named-character-references | |
| 1663 | - * | |
| 1664 | - * @param {string} value Original string. | |
| 1665 | - * | |
| 1666 | - * @return {string} Escaped string. | |
| 1667 | - */ | |
| 1668 | -function escapeAmpersand(value) { | |
| 1669 | - return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&'); | |
| 1670 | -} | |
| 1671 | - | |
| 1672 | -/** | |
| 1673 | - * Returns a string with quotation marks replaced. | |
| 1674 | - * | |
| 1675 | - * @param {string} value Original string. | |
| 1676 | - * | |
| 1677 | - * @return {string} Escaped string. | |
| 1678 | - */ | |
| 1679 | -function escapeQuotationMark(value) { | |
| 1680 | - return value.replace(/"/g, '"'); | |
| 1681 | -} | |
| 1682 | - | |
| 1683 | -/** | |
| 1684 | - * Returns a string with less-than sign replaced. | |
| 1685 | - * | |
| 1686 | - * @param {string} value Original string. | |
| 1687 | - * | |
| 1688 | - * @return {string} Escaped string. | |
| 1689 | - */ | |
| 1690 | -function escapeLessThan(value) { | |
| 1691 | - return value.replace(/</g, '<'); | |
| 1692 | -} | |
| 1693 | - | |
| 1694 | -/** | |
| 1695 | - * Returns an escaped attribute value. | |
| 1696 | - * | |
| 1697 | - * @see https://w3c.github.io/html/syntax.html#elements-attributes | |
| 1698 | - * | |
| 1699 | - * "[...] the text cannot contain an ambiguous ampersand [...] must not contain | |
| 1700 | - * any literal U+0022 QUOTATION MARK characters (")" | |
| 1701 | - * | |
| 1702 | - * Note we also escape the greater than symbol, as this is used by wptexturize to | |
| 1703 | - * split HTML strings. This is a WordPress specific fix | |
| 1704 | - * | |
| 1705 | - * Note that if a resolution for Trac#45387 comes to fruition, it is no longer | |
| 1706 | - * necessary for `__unstableEscapeGreaterThan` to be used. | |
| 1707 | - * | |
| 1708 | - * See: https://core.trac.wordpress.org/ticket/45387 | |
| 1709 | - * | |
| 1710 | - * @param {string} value Attribute value. | |
| 1711 | - * | |
| 1712 | - * @return {string} Escaped attribute value. | |
| 1713 | - */ | |
| 1714 | -function escapeAttribute(value) { | |
| 1715 | - return (0,_escape_greater__WEBPACK_IMPORTED_MODULE_0__["default"])(escapeQuotationMark(escapeAmpersand(value))); | |
| 1716 | -} | |
| 1717 | - | |
| 1718 | -/** | |
| 1719 | - * Returns an escaped HTML element value. | |
| 1720 | - * | |
| 1721 | - * @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements | |
| 1722 | - * | |
| 1723 | - * "the text must not contain the character U+003C LESS-THAN SIGN (<) or an | |
| 1724 | - * ambiguous ampersand." | |
| 1725 | - * | |
| 1726 | - * @param {string} value Element value. | |
| 1727 | - * | |
| 1728 | - * @return {string} Escaped HTML element value. | |
| 1729 | - */ | |
| 1730 | -function escapeHTML(value) { | |
| 1731 | - return escapeLessThan(escapeAmpersand(value)); | |
| 1732 | -} | |
| 1733 | - | |
| 1734 | -/** | |
| 1735 | - * Returns an escaped Editable HTML element value. This is different from | |
| 1736 | - * `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in | |
| 1737 | - * order to render the content correctly on the page. | |
| 1738 | - * | |
| 1739 | - * @param {string} value Element value. | |
| 1740 | - * | |
| 1741 | - * @return {string} Escaped HTML element value. | |
| 1742 | - */ | |
| 1743 | -function escapeEditableHTML(value) { | |
| 1744 | - return escapeLessThan(value.replace(/&/g, '&')); | |
| 1745 | -} | |
| 1746 | - | |
| 1747 | -/** | |
| 1748 | - * Returns true if the given attribute name is valid, or false otherwise. | |
| 1749 | - * | |
| 1750 | - * @param {string} name Attribute name to test. | |
| 1751 | - * | |
| 1752 | - * @return {boolean} Whether attribute is valid. | |
| 1753 | - */ | |
| 1754 | -function isValidAttributeName(name) { | |
| 1755 | - return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name); | |
| 1756 | -} | |
| 1757 | -//# sourceMappingURL=index.js.map | |
| 1758 | - | |
| 1759 | -/***/ }), | |
| 1760 | - | |
| 1761 | -/***/ "../node_modules/dot-case/dist.es2015/index.js": | |
| 1762 | -/*!*****************************************************!*\ | |
| 1763 | - !*** ../node_modules/dot-case/dist.es2015/index.js ***! | |
| 1764 | - \*****************************************************/ | |
| 1765 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1766 | - | |
| 1767 | -"use strict"; | |
| 1768 | -__webpack_require__.r(__webpack_exports__); | |
| 1769 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1770 | -/* harmony export */ dotCase: () => (/* binding */ dotCase) | |
| 1771 | -/* harmony export */ }); | |
| 1772 | -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs"); | |
| 1773 | -/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! no-case */ "../node_modules/no-case/dist.es2015/index.js"); | |
| 1774 | - | |
| 1775 | - | |
| 1776 | -function dotCase(input, options) { | |
| 1777 | - if (options === void 0) { options = {}; } | |
| 1778 | - return (0,no_case__WEBPACK_IMPORTED_MODULE_1__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "." }, options)); | |
| 1779 | -} | |
| 1780 | -//# sourceMappingURL=index.js.map | |
| 1781 | - | |
| 1782 | -/***/ }), | |
| 1783 | - | |
| 1784 | -/***/ "../node_modules/is-plain-object/dist/is-plain-object.mjs": | |
| 1785 | -/*!****************************************************************!*\ | |
| 1786 | - !*** ../node_modules/is-plain-object/dist/is-plain-object.mjs ***! | |
| 1787 | - \****************************************************************/ | |
| 1788 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 1789 | - | |
| 1790 | -"use strict"; | |
| 1791 | -__webpack_require__.r(__webpack_exports__); | |
| 1792 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1793 | -/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject) | |
| 1794 | -/* harmony export */ }); | |
| 1795 | -/*! | |
| 1796 | - * is-plain-object <https://github.com/jonschlinkert/is-plain-object> | |
| 1797 | - * | |
| 1798 | - * Copyright (c) 2014-2017, Jon Schlinkert. | |
| 1799 | - * Released under the MIT License. | |
| 1800 | - */ | |
| 1801 | - | |
| 1802 | -function isObject(o) { | |
| 1803 | - return Object.prototype.toString.call(o) === '[object Object]'; | |
| 1804 | -} | |
| 1805 | - | |
| 1806 | -function isPlainObject(o) { | |
| 1807 | - var ctor,prot; | |
| 1808 | - | |
| 1809 | - if (isObject(o) === false) return false; | |
| 1810 | - | |
| 1811 | - // If has modified constructor | |
| 1812 | - ctor = o.constructor; | |
| 1813 | - if (ctor === undefined) return true; | |
| 1814 | - | |
| 1815 | - // If has modified prototype | |
| 1816 | - prot = ctor.prototype; | |
| 1817 | - if (isObject(prot) === false) return false; | |
| 1818 | - | |
| 1819 | - // If constructor does not have an Object-specific method | |
| 1820 | - if (prot.hasOwnProperty('isPrototypeOf') === false) { | |
| 1821 | - return false; | |
| 1822 | - } | |
| 1823 | - | |
| 1824 | - // Most likely a plain Object | |
| 1825 | - return true; | |
| 1826 | -} | |
| 1827 | - | |
| 1828 | - | |
| 1829 | - | |
| 1830 | - | |
| 1831 | -/***/ }), | |
| 1832 | - | |
| 1833 | -/***/ "../node_modules/lower-case/dist.es2015/index.js": | |
| 1834 | -/*!*******************************************************!*\ | |
| 1835 | - !*** ../node_modules/lower-case/dist.es2015/index.js ***! | |
| 1836 | - \*******************************************************/ | |
| 1837 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1838 | - | |
| 1839 | -"use strict"; | |
| 1840 | -__webpack_require__.r(__webpack_exports__); | |
| 1841 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1842 | -/* harmony export */ localeLowerCase: () => (/* binding */ localeLowerCase), | |
| 1843 | -/* harmony export */ lowerCase: () => (/* binding */ lowerCase) | |
| 1844 | -/* harmony export */ }); | |
| 1845 | -/** | |
| 1846 | - * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt | |
| 1847 | - */ | |
| 1848 | -var SUPPORTED_LOCALE = { | |
| 1849 | - tr: { | |
| 1850 | - regexp: /\u0130|\u0049|\u0049\u0307/g, | |
| 1851 | - map: { | |
| 1852 | - İ: "\u0069", | |
| 1853 | - I: "\u0131", | |
| 1854 | - İ: "\u0069", | |
| 1855 | - }, | |
| 1856 | - }, | |
| 1857 | - az: { | |
| 1858 | - regexp: /\u0130/g, | |
| 1859 | - map: { | |
| 1860 | - İ: "\u0069", | |
| 1861 | - I: "\u0131", | |
| 1862 | - İ: "\u0069", | |
| 1863 | - }, | |
| 1864 | - }, | |
| 1865 | - lt: { | |
| 1866 | - regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g, | |
| 1867 | - map: { | |
| 1868 | - I: "\u0069\u0307", | |
| 1869 | - J: "\u006A\u0307", | |
| 1870 | - Į: "\u012F\u0307", | |
| 1871 | - Ì: "\u0069\u0307\u0300", | |
| 1872 | - Í: "\u0069\u0307\u0301", | |
| 1873 | - Ĩ: "\u0069\u0307\u0303", | |
| 1874 | - }, | |
| 1875 | - }, | |
| 1876 | -}; | |
| 1877 | -/** | |
| 1878 | - * Localized lower case. | |
| 1879 | - */ | |
| 1880 | -function localeLowerCase(str, locale) { | |
| 1881 | - var lang = SUPPORTED_LOCALE[locale.toLowerCase()]; | |
| 1882 | - if (lang) | |
| 1883 | - return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; })); | |
| 1884 | - return lowerCase(str); | |
| 1885 | -} | |
| 1886 | -/** | |
| 1887 | - * Lower case as a function. | |
| 1888 | - */ | |
| 1889 | -function lowerCase(str) { | |
| 1890 | - return str.toLowerCase(); | |
| 1891 | -} | |
| 1892 | -//# sourceMappingURL=index.js.map | |
| 1893 | - | |
| 1894 | -/***/ }), | |
| 1895 | - | |
| 1896 | -/***/ "../node_modules/no-case/dist.es2015/index.js": | |
| 1897 | -/*!****************************************************!*\ | |
| 1898 | - !*** ../node_modules/no-case/dist.es2015/index.js ***! | |
| 1899 | - \****************************************************/ | |
| 1900 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1901 | - | |
| 1902 | -"use strict"; | |
| 1903 | -__webpack_require__.r(__webpack_exports__); | |
| 1904 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1905 | -/* harmony export */ noCase: () => (/* binding */ noCase) | |
| 1906 | -/* harmony export */ }); | |
| 1907 | -/* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "../node_modules/lower-case/dist.es2015/index.js"); | |
| 1908 | - | |
| 1909 | -// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). | |
| 1910 | -var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; | |
| 1911 | -// Remove all non-word characters. | |
| 1912 | -var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; | |
| 1913 | -/** | |
| 1914 | - * Normalize the string into something other libraries can manipulate easier. | |
| 1915 | - */ | |
| 1916 | -function noCase(input, options) { | |
| 1917 | - if (options === void 0) { options = {}; } | |
| 1918 | - var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case__WEBPACK_IMPORTED_MODULE_0__.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d; | |
| 1919 | - var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"); | |
| 1920 | - var start = 0; | |
| 1921 | - var end = result.length; | |
| 1922 | - // Trim the delimiter from around the output string. | |
| 1923 | - while (result.charAt(start) === "\0") | |
| 1924 | - start++; | |
| 1925 | - while (result.charAt(end - 1) === "\0") | |
| 1926 | - end--; | |
| 1927 | - // Transform each token independently. | |
| 1928 | - return result.slice(start, end).split("\0").map(transform).join(delimiter); | |
| 1929 | -} | |
| 1930 | -/** | |
| 1931 | - * Replace `re` in the input string with the replacement value. | |
| 1932 | - */ | |
| 1933 | -function replace(input, re, value) { | |
| 1934 | - if (re instanceof RegExp) | |
| 1935 | - return input.replace(re, value); | |
| 1936 | - return re.reduce(function (input, re) { return input.replace(re, value); }, input); | |
| 1937 | -} | |
| 1938 | -//# sourceMappingURL=index.js.map | |
| 1939 | - | |
| 1940 | -/***/ }), | |
| 1941 | - | |
| 1942 | -/***/ "../node_modules/param-case/dist.es2015/index.js": | |
| 1943 | -/*!*******************************************************!*\ | |
| 1944 | - !*** ../node_modules/param-case/dist.es2015/index.js ***! | |
| 1945 | - \*******************************************************/ | |
| 1946 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1947 | - | |
| 1948 | -"use strict"; | |
| 1949 | -__webpack_require__.r(__webpack_exports__); | |
| 1950 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1951 | -/* harmony export */ paramCase: () => (/* binding */ paramCase) | |
| 1952 | -/* harmony export */ }); | |
| 1953 | -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs"); | |
| 1954 | -/* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dot-case */ "../node_modules/dot-case/dist.es2015/index.js"); | |
| 1955 | - | |
| 1956 | - | |
| 1957 | -function paramCase(input, options) { | |
| 1958 | - if (options === void 0) { options = {}; } | |
| 1959 | - return (0,dot_case__WEBPACK_IMPORTED_MODULE_1__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "-" }, options)); | |
| 1960 | -} | |
| 1961 | -//# sourceMappingURL=index.js.map | |
| 1962 | - | |
| 1963 | -/***/ }), | |
| 1964 | - | |
| 1965 | -/***/ "../node_modules/react-dom/client.js": | |
| 1966 | -/*!*******************************************!*\ | |
| 1967 | - !*** ../node_modules/react-dom/client.js ***! | |
| 1968 | - \*******************************************/ | |
| 1969 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1970 | - | |
| 1971 | -"use strict"; | |
| 1972 | - | |
| 1973 | - | |
| 1974 | -var m = __webpack_require__(/*! react-dom */ "react-dom"); | |
| 1975 | -if (false) // removed by dead control flow | |
| 1976 | -{} else { | |
| 1977 | - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | |
| 1978 | - exports.createRoot = function(c, o) { | |
| 1979 | - i.usingClientEntryPoint = true; | |
| 1980 | - try { | |
| 1981 | - return m.createRoot(c, o); | |
| 1982 | - } finally { | |
| 1983 | - i.usingClientEntryPoint = false; | |
| 1984 | - } | |
| 1985 | - }; | |
| 1986 | - exports.hydrateRoot = function(c, h, o) { | |
| 1987 | - i.usingClientEntryPoint = true; | |
| 1988 | - try { | |
| 1989 | - return m.hydrateRoot(c, h, o); | |
| 1990 | - } finally { | |
| 1991 | - i.usingClientEntryPoint = false; | |
| 1992 | - } | |
| 1993 | - }; | |
| 1994 | -} | |
| 1995 | - | |
| 1996 | - | |
| 1997 | -/***/ }), | |
| 1998 | - | |
| 1999 | -/***/ "../node_modules/tslib/tslib.es6.mjs": | |
| 2000 | -/*!*******************************************!*\ | |
| 2001 | - !*** ../node_modules/tslib/tslib.es6.mjs ***! | |
| 2002 | - \*******************************************/ | |
| 2003 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 2004 | - | |
| 2005 | -"use strict"; | |
| 2006 | -__webpack_require__.r(__webpack_exports__); | |
| 2007 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 2008 | -/* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource), | |
| 2009 | -/* harmony export */ __assign: () => (/* binding */ __assign), | |
| 2010 | -/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator), | |
| 2011 | -/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator), | |
| 2012 | -/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues), | |
| 2013 | -/* harmony export */ __await: () => (/* binding */ __await), | |
| 2014 | -/* harmony export */ __awaiter: () => (/* binding */ __awaiter), | |
| 2015 | -/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet), | |
| 2016 | -/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn), | |
| 2017 | -/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet), | |
| 2018 | -/* harmony export */ __createBinding: () => (/* binding */ __createBinding), | |
| 2019 | -/* harmony export */ __decorate: () => (/* binding */ __decorate), | |
| 2020 | -/* harmony export */ __disposeResources: () => (/* binding */ __disposeResources), | |
| 2021 | -/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate), | |
| 2022 | -/* harmony export */ __exportStar: () => (/* binding */ __exportStar), | |
| 2023 | -/* harmony export */ __extends: () => (/* binding */ __extends), | |
| 2024 | -/* harmony export */ __generator: () => (/* binding */ __generator), | |
| 2025 | -/* harmony export */ __importDefault: () => (/* binding */ __importDefault), | |
| 2026 | -/* harmony export */ __importStar: () => (/* binding */ __importStar), | |
| 2027 | -/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject), | |
| 2028 | -/* harmony export */ __metadata: () => (/* binding */ __metadata), | |
| 2029 | -/* harmony export */ __param: () => (/* binding */ __param), | |
| 2030 | -/* harmony export */ __propKey: () => (/* binding */ __propKey), | |
| 2031 | -/* harmony export */ __read: () => (/* binding */ __read), | |
| 2032 | -/* harmony export */ __rest: () => (/* binding */ __rest), | |
| 2033 | -/* harmony export */ __rewriteRelativeImportExtension: () => (/* binding */ __rewriteRelativeImportExtension), | |
| 2034 | -/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers), | |
| 2035 | -/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName), | |
| 2036 | -/* harmony export */ __spread: () => (/* binding */ __spread), | |
| 2037 | -/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray), | |
| 2038 | -/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays), | |
| 2039 | -/* harmony export */ __values: () => (/* binding */ __values), | |
| 2040 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | |
| 2041 | -/* harmony export */ }); | |
| 2042 | -/****************************************************************************** | |
| 2043 | -Copyright (c) Microsoft Corporation. | |
| 2044 | - | |
| 2045 | -Permission to use, copy, modify, and/or distribute this software for any | |
| 2046 | -purpose with or without fee is hereby granted. | |
| 2047 | - | |
| 2048 | -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
| 2049 | -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
| 2050 | -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| 2051 | -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
| 2052 | -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | |
| 2053 | -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | |
| 2054 | -PERFORMANCE OF THIS SOFTWARE. | |
| 2055 | -***************************************************************************** */ | |
| 2056 | -/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ | |
| 2057 | - | |
| 2058 | -var extendStatics = function(d, b) { | |
| 2059 | - extendStatics = Object.setPrototypeOf || | |
| 2060 | - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
| 2061 | - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | |
| 2062 | - return extendStatics(d, b); | |
| 2063 | -}; | |
| 2064 | - | |
| 2065 | -function __extends(d, b) { | |
| 2066 | - if (typeof b !== "function" && b !== null) | |
| 2067 | - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | |
| 2068 | - extendStatics(d, b); | |
| 2069 | - function __() { this.constructor = d; } | |
| 2070 | - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
| 2071 | -} | |
| 2072 | - | |
| 2073 | -var __assign = function() { | |
| 2074 | - __assign = Object.assign || function __assign(t) { | |
| 2075 | - for (var s, i = 1, n = arguments.length; i < n; i++) { | |
| 2076 | - s = arguments[i]; | |
| 2077 | - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | |
| 2078 | - } | |
| 2079 | - return t; | |
| 2080 | - } | |
| 2081 | - return __assign.apply(this, arguments); | |
| 2082 | -} | |
| 2083 | - | |
| 2084 | -function __rest(s, e) { | |
| 2085 | - var t = {}; | |
| 2086 | - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | |
| 2087 | - t[p] = s[p]; | |
| 2088 | - if (s != null && typeof Object.getOwnPropertySymbols === "function") | |
| 2089 | - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | |
| 2090 | - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | |
| 2091 | - t[p[i]] = s[p[i]]; | |
| 2092 | - } | |
| 2093 | - return t; | |
| 2094 | -} | |
| 2095 | - | |
| 2096 | -function __decorate(decorators, target, key, desc) { | |
| 2097 | - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | |
| 2098 | - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | |
| 2099 | - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | |
| 2100 | - return c > 3 && r && Object.defineProperty(target, key, r), r; | |
| 2101 | -} | |
| 2102 | - | |
| 2103 | -function __param(paramIndex, decorator) { | |
| 2104 | - return function (target, key) { decorator(target, key, paramIndex); } | |
| 2105 | -} | |
| 2106 | - | |
| 2107 | -function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { | |
| 2108 | - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } | |
| 2109 | - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; | |
| 2110 | - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; | |
| 2111 | - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); | |
| 2112 | - var _, done = false; | |
| 2113 | - for (var i = decorators.length - 1; i >= 0; i--) { | |
| 2114 | - var context = {}; | |
| 2115 | - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; | |
| 2116 | - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; | |
| 2117 | - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; | |
| 2118 | - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); | |
| 2119 | - if (kind === "accessor") { | |
| 2120 | - if (result === void 0) continue; | |
| 2121 | - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); | |
| 2122 | - if (_ = accept(result.get)) descriptor.get = _; | |
| 2123 | - if (_ = accept(result.set)) descriptor.set = _; | |
| 2124 | - if (_ = accept(result.init)) initializers.unshift(_); | |
| 2125 | - } | |
| 2126 | - else if (_ = accept(result)) { | |
| 2127 | - if (kind === "field") initializers.unshift(_); | |
| 2128 | - else descriptor[key] = _; | |
| 2129 | - } | |
| 2130 | - } | |
| 2131 | - if (target) Object.defineProperty(target, contextIn.name, descriptor); | |
| 2132 | - done = true; | |
| 2133 | -}; | |
| 2134 | - | |
| 2135 | -function __runInitializers(thisArg, initializers, value) { | |
| 2136 | - var useValue = arguments.length > 2; | |
| 2137 | - for (var i = 0; i < initializers.length; i++) { | |
| 2138 | - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); | |
| 2139 | - } | |
| 2140 | - return useValue ? value : void 0; | |
| 2141 | -}; | |
| 2142 | - | |
| 2143 | -function __propKey(x) { | |
| 2144 | - return typeof x === "symbol" ? x : "".concat(x); | |
| 2145 | -}; | |
| 2146 | - | |
| 2147 | -function __setFunctionName(f, name, prefix) { | |
| 2148 | - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; | |
| 2149 | - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); | |
| 2150 | -}; | |
| 2151 | - | |
| 2152 | -function __metadata(metadataKey, metadataValue) { | |
| 2153 | - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | |
| 2154 | -} | |
| 2155 | - | |
| 2156 | -function __awaiter(thisArg, _arguments, P, generator) { | |
| 2157 | - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | |
| 2158 | - return new (P || (P = Promise))(function (resolve, reject) { | |
| 2159 | - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | |
| 2160 | - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | |
| 2161 | - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | |
| 2162 | - step((generator = generator.apply(thisArg, _arguments || [])).next()); | |
| 2163 | - }); | |
| 2164 | -} | |
| 2165 | - | |
| 2166 | -function __generator(thisArg, body) { | |
| 2167 | - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); | |
| 2168 | - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
| 2169 | - function verb(n) { return function (v) { return step([n, v]); }; } | |
| 2170 | - function step(op) { | |
| 2171 | - if (f) throw new TypeError("Generator is already executing."); | |
| 2172 | - while (g && (g = 0, op[0] && (_ = 0)), _) try { | |
| 2173 | - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | |
| 2174 | - if (y = 0, t) op = [op[0] & 2, t.value]; | |
| 2175 | - switch (op[0]) { | |
| 2176 | - case 0: case 1: t = op; break; | |
| 2177 | - case 4: _.label++; return { value: op[1], done: false }; | |
| 2178 | - case 5: _.label++; y = op[1]; op = [0]; continue; | |
| 2179 | - case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
| 2180 | - default: | |
| 2181 | - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
| 2182 | - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
| 2183 | - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
| 2184 | - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
| 2185 | - if (t[2]) _.ops.pop(); | |
| 2186 | - _.trys.pop(); continue; | |
| 2187 | - } | |
| 2188 | - op = body.call(thisArg, _); | |
| 2189 | - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
| 2190 | - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
| 2191 | - } | |
| 2192 | -} | |
| 2193 | - | |
| 2194 | -var __createBinding = Object.create ? (function(o, m, k, k2) { | |
| 2195 | - if (k2 === undefined) k2 = k; | |
| 2196 | - var desc = Object.getOwnPropertyDescriptor(m, k); | |
| 2197 | - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | |
| 2198 | - desc = { enumerable: true, get: function() { return m[k]; } }; | |
| 2199 | - } | |
| 2200 | - Object.defineProperty(o, k2, desc); | |
| 2201 | -}) : (function(o, m, k, k2) { | |
| 2202 | - if (k2 === undefined) k2 = k; | |
| 2203 | - o[k2] = m[k]; | |
| 2204 | -}); | |
| 2205 | - | |
| 2206 | -function __exportStar(m, o) { | |
| 2207 | - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); | |
| 2208 | -} | |
| 2209 | - | |
| 2210 | -function __values(o) { | |
| 2211 | - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | |
| 2212 | - if (m) return m.call(o); | |
| 2213 | - if (o && typeof o.length === "number") return { | |
| 2214 | - next: function () { | |
| 2215 | - if (o && i >= o.length) o = void 0; | |
| 2216 | - return { value: o && o[i++], done: !o }; | |
| 2217 | - } | |
| 2218 | - }; | |
| 2219 | - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); | |
| 2220 | -} | |
| 2221 | - | |
| 2222 | -function __read(o, n) { | |
| 2223 | - var m = typeof Symbol === "function" && o[Symbol.iterator]; | |
| 2224 | - if (!m) return o; | |
| 2225 | - var i = m.call(o), r, ar = [], e; | |
| 2226 | - try { | |
| 2227 | - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | |
| 2228 | - } | |
| 2229 | - catch (error) { e = { error: error }; } | |
| 2230 | - finally { | |
| 2231 | - try { | |
| 2232 | - if (r && !r.done && (m = i["return"])) m.call(i); | |
| 2233 | - } | |
| 2234 | - finally { if (e) throw e.error; } | |
| 2235 | - } | |
| 2236 | - return ar; | |
| 2237 | -} | |
| 2238 | - | |
| 2239 | -/** @deprecated */ | |
| 2240 | -function __spread() { | |
| 2241 | - for (var ar = [], i = 0; i < arguments.length; i++) | |
| 2242 | - ar = ar.concat(__read(arguments[i])); | |
| 2243 | - return ar; | |
| 2244 | -} | |
| 2245 | - | |
| 2246 | -/** @deprecated */ | |
| 2247 | -function __spreadArrays() { | |
| 2248 | - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | |
| 2249 | - for (var r = Array(s), k = 0, i = 0; i < il; i++) | |
| 2250 | - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | |
| 2251 | - r[k] = a[j]; | |
| 2252 | - return r; | |
| 2253 | -} | |
| 2254 | - | |
| 2255 | -function __spreadArray(to, from, pack) { | |
| 2256 | - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | |
| 2257 | - if (ar || !(i in from)) { | |
| 2258 | - if (!ar) ar = Array.prototype.slice.call(from, 0, i); | |
| 2259 | - ar[i] = from[i]; | |
| 2260 | - } | |
| 2261 | - } | |
| 2262 | - return to.concat(ar || Array.prototype.slice.call(from)); | |
| 2263 | -} | |
| 2264 | - | |
| 2265 | -function __await(v) { | |
| 2266 | - return this instanceof __await ? (this.v = v, this) : new __await(v); | |
| 2267 | -} | |
| 2268 | - | |
| 2269 | -function __asyncGenerator(thisArg, _arguments, generator) { | |
| 2270 | - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | |
| 2271 | - var g = generator.apply(thisArg, _arguments || []), i, q = []; | |
| 2272 | - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; | |
| 2273 | - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } | |
| 2274 | - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } | |
| 2275 | - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | |
| 2276 | - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | |
| 2277 | - function fulfill(value) { resume("next", value); } | |
| 2278 | - function reject(value) { resume("throw", value); } | |
| 2279 | - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | |
| 2280 | -} | |
| 2281 | - | |
| 2282 | -function __asyncDelegator(o) { | |
| 2283 | - var i, p; | |
| 2284 | - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | |
| 2285 | - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } | |
| 2286 | -} | |
| 2287 | - | |
| 2288 | -function __asyncValues(o) { | |
| 2289 | - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | |
| 2290 | - var m = o[Symbol.asyncIterator], i; | |
| 2291 | - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); | |
| 2292 | - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } | |
| 2293 | - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } | |
| 2294 | -} | |
| 2295 | - | |
| 2296 | -function __makeTemplateObject(cooked, raw) { | |
| 2297 | - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | |
| 2298 | - return cooked; | |
| 2299 | -}; | |
| 2300 | - | |
| 2301 | -var __setModuleDefault = Object.create ? (function(o, v) { | |
| 2302 | - Object.defineProperty(o, "default", { enumerable: true, value: v }); | |
| 2303 | -}) : function(o, v) { | |
| 2304 | - o["default"] = v; | |
| 2305 | -}; | |
| 2306 | - | |
| 2307 | -var ownKeys = function(o) { | |
| 2308 | - ownKeys = Object.getOwnPropertyNames || function (o) { | |
| 2309 | - var ar = []; | |
| 2310 | - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | |
| 2311 | - return ar; | |
| 2312 | - }; | |
| 2313 | - return ownKeys(o); | |
| 2314 | -}; | |
| 2315 | - | |
| 2316 | -function __importStar(mod) { | |
| 2317 | - if (mod && mod.__esModule) return mod; | |
| 2318 | - var result = {}; | |
| 2319 | - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | |
| 2320 | - __setModuleDefault(result, mod); | |
| 2321 | - return result; | |
| 2322 | -} | |
| 2323 | - | |
| 2324 | -function __importDefault(mod) { | |
| 2325 | - return (mod && mod.__esModule) ? mod : { default: mod }; | |
| 2326 | -} | |
| 2327 | - | |
| 2328 | -function __classPrivateFieldGet(receiver, state, kind, f) { | |
| 2329 | - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | |
| 2330 | - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | |
| 2331 | - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | |
| 2332 | -} | |
| 2333 | - | |
| 2334 | -function __classPrivateFieldSet(receiver, state, value, kind, f) { | |
| 2335 | - if (kind === "m") throw new TypeError("Private method is not writable"); | |
| 2336 | - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); | |
| 2337 | - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); | |
| 2338 | - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; | |
| 2339 | -} | |
| 2340 | - | |
| 2341 | -function __classPrivateFieldIn(state, receiver) { | |
| 2342 | - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); | |
| 2343 | - return typeof state === "function" ? receiver === state : state.has(receiver); | |
| 2344 | -} | |
| 2345 | - | |
| 2346 | -function __addDisposableResource(env, value, async) { | |
| 2347 | - if (value !== null && value !== void 0) { | |
| 2348 | - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); | |
| 2349 | - var dispose, inner; | |
| 2350 | - if (async) { | |
| 2351 | - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); | |
| 2352 | - dispose = value[Symbol.asyncDispose]; | |
| 2353 | - } | |
| 2354 | - if (dispose === void 0) { | |
| 2355 | - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); | |
| 2356 | - dispose = value[Symbol.dispose]; | |
| 2357 | - if (async) inner = dispose; | |
| 2358 | - } | |
| 2359 | - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); | |
| 2360 | - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; | |
| 2361 | - env.stack.push({ value: value, dispose: dispose, async: async }); | |
| 2362 | - } | |
| 2363 | - else if (async) { | |
| 2364 | - env.stack.push({ async: true }); | |
| 2365 | - } | |
| 2366 | - return value; | |
| 2367 | -} | |
| 2368 | - | |
| 2369 | -var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { | |
| 2370 | - var e = new Error(message); | |
| 2371 | - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; | |
| 2372 | -}; | |
| 2373 | - | |
| 2374 | -function __disposeResources(env) { | |
| 2375 | - function fail(e) { | |
| 2376 | - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; | |
| 2377 | - env.hasError = true; | |
| 2378 | - } | |
| 2379 | - var r, s = 0; | |
| 2380 | - function next() { | |
| 2381 | - while (r = env.stack.pop()) { | |
| 2382 | - try { | |
| 2383 | - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); | |
| 2384 | - if (r.dispose) { | |
| 2385 | - var result = r.dispose.call(r.value); | |
| 2386 | - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); | |
| 2387 | - } | |
| 2388 | - else s |= 1; | |
| 2389 | - } | |
| 2390 | - catch (e) { | |
| 2391 | - fail(e); | |
| 2392 | - } | |
| 2393 | - } | |
| 2394 | - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); | |
| 2395 | - if (env.hasError) throw env.error; | |
| 2396 | - } | |
| 2397 | - return next(); | |
| 2398 | -} | |
| 2399 | - | |
| 2400 | -function __rewriteRelativeImportExtension(path, preserveJsx) { | |
| 2401 | - if (typeof path === "string" && /^\.\.?\//.test(path)) { | |
| 2402 | - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { | |
| 2403 | - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); | |
| 2404 | - }); | |
| 2405 | - } | |
| 2406 | - return path; | |
| 2407 | -} | |
| 2408 | - | |
| 2409 | -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ | |
| 2410 | - __extends, | |
| 2411 | - __assign, | |
| 2412 | - __rest, | |
| 2413 | - __decorate, | |
| 2414 | - __param, | |
| 2415 | - __esDecorate, | |
| 2416 | - __runInitializers, | |
| 2417 | - __propKey, | |
| 2418 | - __setFunctionName, | |
| 2419 | - __metadata, | |
| 2420 | - __awaiter, | |
| 2421 | - __generator, | |
| 2422 | - __createBinding, | |
| 2423 | - __exportStar, | |
| 2424 | - __values, | |
| 2425 | - __read, | |
| 2426 | - __spread, | |
| 2427 | - __spreadArrays, | |
| 2428 | - __spreadArray, | |
| 2429 | - __await, | |
| 2430 | - __asyncGenerator, | |
| 2431 | - __asyncDelegator, | |
| 2432 | - __asyncValues, | |
| 2433 | - __makeTemplateObject, | |
| 2434 | - __importStar, | |
| 2435 | - __importDefault, | |
| 2436 | - __classPrivateFieldGet, | |
| 2437 | - __classPrivateFieldSet, | |
| 2438 | - __classPrivateFieldIn, | |
| 2439 | - __addDisposableResource, | |
| 2440 | - __disposeResources, | |
| 2441 | - __rewriteRelativeImportExtension, | |
| 2442 | -}); | |
| 2443 | - | |
| 2444 | - | |
| 2445 | -/***/ }), | |
| 2446 | - | |
| 2447 | -/***/ "@woocommerce/admin-layout": | |
| 2448 | -/*!*********************************!*\ | |
| 2449 | - !*** external "wc.adminLayout" ***! | |
| 2450 | - \*********************************/ | |
| 2451 | -/***/ ((module) => { | |
| 2452 | - | |
| 2453 | -"use strict"; | |
| 2454 | -module.exports = wc.adminLayout; | |
| 2455 | - | |
| 2456 | -/***/ }), | |
| 2457 | - | |
| 2458 | -/***/ "@wordpress/components": | |
| 2459 | -/*!********************************!*\ | |
| 2460 | - !*** external "wp.components" ***! | |
| 2461 | - \********************************/ | |
| 2462 | -/***/ ((module) => { | |
| 2463 | - | |
| 2464 | -"use strict"; | |
| 2465 | -module.exports = wp.components; | |
| 2466 | - | |
| 2467 | -/***/ }), | |
| 2468 | - | |
| 2469 | -/***/ "@wordpress/core-data": | |
| 2470 | -/*!******************************!*\ | |
| 2471 | - !*** external "wp.coreData" ***! | |
| 2472 | - \******************************/ | |
| 2473 | -/***/ ((module) => { | |
| 2474 | - | |
| 2475 | -"use strict"; | |
| 2476 | -module.exports = wp.coreData; | |
| 2477 | - | |
| 2478 | -/***/ }), | |
| 2479 | - | |
| 2480 | -/***/ "@wordpress/data": | |
| 2481 | -/*!**************************!*\ | |
| 2482 | - !*** external "wp.data" ***! | |
| 2483 | - \**************************/ | |
| 2484 | -/***/ ((module) => { | |
| 2485 | - | |
| 2486 | -"use strict"; | |
| 2487 | -module.exports = wp.data; | |
| 2488 | - | |
| 2489 | -/***/ }), | |
| 2490 | - | |
| 2491 | -/***/ "@wordpress/i18n": | |
| 2492 | -/*!**************************!*\ | |
| 2493 | - !*** external "wp.i18n" ***! | |
| 2494 | - \**************************/ | |
| 2495 | -/***/ ((module) => { | |
| 2496 | - | |
| 2497 | -"use strict"; | |
| 2498 | -module.exports = wp.i18n; | |
| 2499 | - | |
| 2500 | -/***/ }), | |
| 2501 | - | |
| 2502 | -/***/ "@wordpress/plugins": | |
| 2503 | -/*!*****************************!*\ | |
| 2504 | - !*** external "wp.plugins" ***! | |
| 2505 | - \*****************************/ | |
| 2506 | -/***/ ((module) => { | |
| 2507 | - | |
| 2508 | -"use strict"; | |
| 2509 | -module.exports = wp.plugins; | |
| 2510 | - | |
| 2511 | -/***/ }), | |
| 2512 | - | |
| 2513 | -/***/ "react": | |
| 2514 | -/*!************************!*\ | |
| 2515 | - !*** external "React" ***! | |
| 2516 | - \************************/ | |
| 2517 | -/***/ ((module) => { | |
| 2518 | - | |
| 2519 | -"use strict"; | |
| 2520 | -module.exports = React; | |
| 2521 | - | |
| 2522 | -/***/ }), | |
| 2523 | - | |
| 2524 | -/***/ "react-dom": | |
| 2525 | -/*!***************************!*\ | |
| 2526 | - !*** external "ReactDOM" ***! | |
| 2527 | - \***************************/ | |
| 2528 | -/***/ ((module) => { | |
| 2529 | - | |
| 2530 | -"use strict"; | |
| 2531 | -module.exports = ReactDOM; | |
| 2532 | - | |
| 2533 | -/***/ }) | |
| 2534 | - | |
| 2535 | -/******/ }); | |
| 2536 | -/************************************************************************/ | |
| 2537 | -/******/ // The module cache | |
| 2538 | -/******/ var __webpack_module_cache__ = {}; | |
| 2539 | -/******/ | |
| 2540 | -/******/ // The require function | |
| 2541 | -/******/ function __webpack_require__(moduleId) { | |
| 2542 | -/******/ // Check if module is in cache | |
| 2543 | -/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 2544 | -/******/ if (cachedModule !== undefined) { | |
| 2545 | -/******/ return cachedModule.exports; | |
| 2546 | -/******/ } | |
| 2547 | -/******/ // Create a new module (and put it into the cache) | |
| 2548 | -/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 2549 | -/******/ // no module.id needed | |
| 2550 | -/******/ // no module.loaded needed | |
| 2551 | -/******/ exports: {} | |
| 2552 | -/******/ }; | |
| 2553 | -/******/ | |
| 2554 | -/******/ // Execute the module function | |
| 2555 | -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 2556 | -/******/ | |
| 2557 | -/******/ // Return the exports of the module | |
| 2558 | -/******/ return module.exports; | |
| 2559 | -/******/ } | |
| 2560 | -/******/ | |
| 2561 | -/************************************************************************/ | |
| 2562 | -/******/ /* webpack/runtime/compat get default export */ | |
| 2563 | -/******/ (() => { | |
| 2564 | -/******/ // getDefaultExport function for compatibility with non-harmony modules | |
| 2565 | -/******/ __webpack_require__.n = (module) => { | |
| 2566 | -/******/ var getter = module && module.__esModule ? | |
| 2567 | -/******/ () => (module['default']) : | |
| 2568 | -/******/ () => (module); | |
| 2569 | -/******/ __webpack_require__.d(getter, { a: getter }); | |
| 2570 | -/******/ return getter; | |
| 2571 | -/******/ }; | |
| 2572 | -/******/ })(); | |
| 2573 | -/******/ | |
| 2574 | -/******/ /* webpack/runtime/define property getters */ | |
| 2575 | -/******/ (() => { | |
| 2576 | -/******/ // define getter functions for harmony exports | |
| 2577 | -/******/ __webpack_require__.d = (exports, definition) => { | |
| 2578 | -/******/ for(var key in definition) { | |
| 2579 | -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 2580 | -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 2581 | -/******/ } | |
| 2582 | -/******/ } | |
| 2583 | -/******/ }; | |
| 2584 | -/******/ })(); | |
| 2585 | -/******/ | |
| 2586 | -/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
| 2587 | -/******/ (() => { | |
| 2588 | -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
| 2589 | -/******/ })(); | |
| 2590 | -/******/ | |
| 2591 | -/******/ /* webpack/runtime/make namespace object */ | |
| 2592 | -/******/ (() => { | |
| 2593 | -/******/ // define __esModule on exports | |
| 2594 | -/******/ __webpack_require__.r = (exports) => { | |
| 2595 | -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 2596 | -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 2597 | -/******/ } | |
| 2598 | -/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 2599 | -/******/ }; | |
| 2600 | -/******/ })(); | |
| 2601 | -/******/ | |
| 2602 | -/************************************************************************/ | |
| 2603 | -var __webpack_exports__ = {}; | |
| 2604 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 2605 | -(() => { | |
| 2606 | -"use strict"; | |
| 2607 | -/*!*********************************************************************!*\ | |
| 2608 | - !*** ../modules/wc-product-editor/assets/js/e-wc-product-editor.js ***! | |
| 2609 | - \*********************************************************************/ | |
| 2610 | - | |
| 2611 | - | |
| 2612 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2613 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2614 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 2615 | -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js"); | |
| 2616 | -var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 2617 | -var _data = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); | |
| 2618 | -var _coreData = __webpack_require__(/*! @wordpress/core-data */ "@wordpress/core-data"); | |
| 2619 | -var _components = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); | |
| 2620 | -var _plugins = __webpack_require__(/*! @wordpress/plugins */ "@wordpress/plugins"); | |
| 2621 | -var _adminLayout = __webpack_require__(/*! @woocommerce/admin-layout */ "@woocommerce/admin-layout"); | |
| 2622 | -function EditWithElementorButton() { | |
| 2623 | - var _useState = (0, _element.useState)(false), | |
| 2624 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 2625 | - isRedirecting = _useState2[0], | |
| 2626 | - setIsRedirecting = _useState2[1]; | |
| 2627 | - var productId = (0, _coreData.useEntityId)('postType', 'product'); | |
| 2628 | - var _useDispatch = (0, _data.useDispatch)('core'), | |
| 2629 | - saveEntityRecord = _useDispatch.saveEntityRecord; | |
| 2630 | - var postStatus = (0, _data.useSelect)(function (select) { | |
| 2631 | - var _select$getEditedEnti; | |
| 2632 | - return (_select$getEditedEnti = select('core').getEditedEntityRecord('postType', 'product', productId)) === null || _select$getEditedEnti === void 0 ? void 0 : _select$getEditedEnti.status; | |
| 2633 | - }, [productId]); | |
| 2634 | - var isSaving = wp.data.select('core/editor').isSavingPost(); | |
| 2635 | - (0, _element.useEffect)(function () { | |
| 2636 | - if (isRedirecting && !isSaving) { | |
| 2637 | - redirectToElementor(); | |
| 2638 | - } | |
| 2639 | - }, [isRedirecting, isSaving]); | |
| 2640 | - var handleClick = function handleClick() { | |
| 2641 | - if ('auto-draft' === postStatus) { | |
| 2642 | - saveEntityRecord('postType', 'product', { | |
| 2643 | - id: productId, | |
| 2644 | - name: "Elementor #".concat(productId), | |
| 2645 | - status: 'draft' | |
| 2646 | - }).then(function () { | |
| 2647 | - setIsRedirecting(true); | |
| 2648 | - }).catch(function () {}); | |
| 2649 | - } else { | |
| 2650 | - setIsRedirecting(true); | |
| 2651 | - } | |
| 2652 | - }; | |
| 2653 | - var redirectToElementor = function redirectToElementor() { | |
| 2654 | - window.location.href = getEditUrl(); | |
| 2655 | - }; | |
| 2656 | - var getEditUrl = function getEditUrl() { | |
| 2657 | - var url = new URL(ElementorWCProductEditorSettings.editLink); | |
| 2658 | - url.searchParams.set('post', productId); | |
| 2659 | - url.searchParams.set('action', 'elementor'); | |
| 2660 | - return url.toString(); | |
| 2661 | - }; | |
| 2662 | - return /*#__PURE__*/_react.default.createElement(_adminLayout.WooHeaderItem, { | |
| 2663 | - name: "product" | |
| 2664 | - }, /*#__PURE__*/_react.default.createElement(_components.Button, { | |
| 2665 | - variant: "primary", | |
| 2666 | - onClick: handleClick, | |
| 2667 | - style: { | |
| 2668 | - display: 'flex', | |
| 2669 | - alignItems: 'center' | |
| 2670 | - } | |
| 2671 | - }, /*#__PURE__*/_react.default.createElement("i", { | |
| 2672 | - className: "eicon-elementor-square", | |
| 2673 | - "aria-hidden": "true", | |
| 2674 | - style: { | |
| 2675 | - paddingInlineEnd: '8px' | |
| 2676 | - } | |
| 2677 | - }), (0, _i18n.__)('Edit with Elementor', 'elementor'))); | |
| 2678 | -} | |
| 2679 | -(0, _plugins.registerPlugin)('elementor-header-item', { | |
| 2680 | - render: EditWithElementorButton, | |
| 2681 | - scope: 'woocommerce-product-block-editor' | |
| 2682 | -}); | |
| 2683 | -})(); | |
| 2684 | - | |
| 2685 | -/******/ })() | |
| 2686 | -; | |
| 154 | +//#endregion | |
| 155 | +})(React, wp.i18n, wp.data, wp.coreData, wp.components, wp.plugins, wc.adminLayout); | |
| 2687 | 156 | //# sourceMappingURL=e-wc-product-editor.js.map |