PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/editor-one-sidebar-navigation.js +2303 -5508 4.2.0-dev2 → 4.3.1 View file →
@@ -1,5567 +1,2362 @@
1 -/******/ (() => { // webpackBootstrap
2 -/******/ var __webpack_modules__ = ({
1 +(function(react, react_dom, _elementor_ui, _elementor_icons_ChevronRightIcon, _elementor_icons_AdjustmentsIcon, _elementor_icons_FolderIcon, _elementor_icons_RocketIcon, _elementor_icons_HomeIcon, _elementor_icons_SendIcon, _elementor_icons_SettingsIcon, _elementor_icons_UsersIcon, _elementor_icons_PlugIcon, _elementor_icons_FileSettingsIcon, _elementor_icons_ChevronDownSmallIcon, _elementor_icons, _elementor_icons_SearchIcon) {
3 2
4 -/***/ "../assets/dev/js/utils/react.js":
5 -/*!***************************************!*\
6 - !*** ../assets/dev/js/utils/react.js ***!
7 - \***************************************/
8 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
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 __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 + var __copyProps = (to, from, except, desc) => {
16 + if (from && typeof from === "object" || typeof from === "function") {
17 + for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18 + key = keys[i];
19 + if (!__hasOwnProp.call(to, key) && key !== except) {
20 + __defProp(to, key, {
21 + get: ((k) => from[k]).bind(null, key),
22 + enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23 + });
24 + }
25 + }
26 + }
27 + return to;
28 + };
29 + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30 + value: mod,
31 + enumerable: true
32 + }) : target, mod));
9 33
10 -"use strict";
34 +//#endregion
35 +react = __toESM(react);
36 +react_dom = __toESM(react_dom);
37 +_elementor_icons_ChevronRightIcon = __toESM(_elementor_icons_ChevronRightIcon);
38 +_elementor_icons_AdjustmentsIcon = __toESM(_elementor_icons_AdjustmentsIcon);
39 +_elementor_icons_FolderIcon = __toESM(_elementor_icons_FolderIcon);
40 +_elementor_icons_RocketIcon = __toESM(_elementor_icons_RocketIcon);
41 +_elementor_icons_HomeIcon = __toESM(_elementor_icons_HomeIcon);
42 +_elementor_icons_SendIcon = __toESM(_elementor_icons_SendIcon);
43 +_elementor_icons_SettingsIcon = __toESM(_elementor_icons_SettingsIcon);
44 +_elementor_icons_UsersIcon = __toESM(_elementor_icons_UsersIcon);
45 +_elementor_icons_PlugIcon = __toESM(_elementor_icons_PlugIcon);
46 +_elementor_icons_FileSettingsIcon = __toESM(_elementor_icons_FileSettingsIcon);
47 +_elementor_icons_ChevronDownSmallIcon = __toESM(_elementor_icons_ChevronDownSmallIcon);
48 +_elementor_icons_SearchIcon = __toESM(_elementor_icons_SearchIcon);
11 49
50 +//#region node_modules/react-dom/client.js
51 + var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
52 + var m = (globalThis.ReactDOM);
53 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54 + exports.createRoot = function(c, o) {
55 + i.usingClientEntryPoint = true;
56 + try {
57 + return m.createRoot(c, o);
58 + } finally {
59 + i.usingClientEntryPoint = false;
60 + }
61 + };
62 + }));
12 63
13 -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
14 -Object.defineProperty(exports, "__esModule", ({
15 - value: true
16 -}));
17 -exports["default"] = void 0;
18 -var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
19 -var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
20 -var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
21 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22 -/**
23 - * Support conditional rendering of a React App to the DOM, based on the React version.
24 - * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
25 - *
26 - * @param { React.ReactElement } app The app to render.
27 - * @param { HTMLElement } domElement The DOM element to render the app into.
28 - *
29 - * @return {{ unmount: () => void }} The unmount function.
30 - */
31 -function render(app, domElement) {
32 - var unmountFunction;
33 - try {
34 - var root = (0, _client.createRoot)(domElement);
35 - root.render(app);
36 - unmountFunction = function unmountFunction() {
37 - root.unmount();
38 - };
39 - } catch (e) {
40 - // eslint-disable-next-line react/no-deprecated
41 - ReactDOM.render(app, domElement);
42 - unmountFunction = function unmountFunction() {
43 - // eslint-disable-next-line react/no-deprecated
44 - ReactDOM.unmountComponentAtNode(domElement);
45 - };
46 - }
47 - return {
48 - unmount: unmountFunction
49 - };
50 -}
51 -var _default = exports["default"] = {
52 - render: render
53 -};
64 +//#endregion
65 +//#region assets/dev/js/utils/react.js
66 + var import_client = require_client();
67 + /**
68 + * Support conditional rendering of a React App to the DOM, based on the React version.
69 + * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
70 + *
71 + * @param {Promise.resolve(React).ReactElement} app The app to render.
72 + * @param {HTMLElement} domElement The DOM element to render the app into.
73 + *
74 + * @return {{ unmount: () => void }} The unmount function.
75 + */
76 + function render(app, domElement) {
77 + var unmountFunction;
78 + try {
79 + var root = (0, import_client.createRoot)(domElement);
80 + root.render(app);
81 + unmountFunction = function unmountFunction() {
82 + root.unmount();
83 + };
84 + } catch (e) {
85 + react_dom.render(app, domElement);
86 + unmountFunction = function unmountFunction() {
87 + react_dom.unmountComponentAtNode(domElement);
88 + };
89 + }
90 + return { unmount: unmountFunction };
91 + }
92 + var react_default = { render };
54 93
55 -/***/ }),
94 +//#endregion
95 +//#region node_modules/@babel/runtime/helpers/esm/extends.js
96 + function _extends() {
97 + return _extends = Object.assign ? Object.assign.bind() : function(n) {
98 + for (var e = 1; e < arguments.length; e++) {
99 + var t = arguments[e];
100 + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
101 + }
102 + return n;
103 + }, _extends.apply(null, arguments);
104 + }
56 105
57 -/***/ "../modules/editor-one/assets/js/shared/is-rtl.js":
58 -/*!********************************************************!*\
59 - !*** ../modules/editor-one/assets/js/shared/is-rtl.js ***!
60 - \********************************************************/
61 -/***/ ((__unused_webpack_module, exports) => {
106 +//#endregion
107 +//#region modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js
108 + var EditorIcon = function EditorIcon(props) {
109 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, _extends({
110 + width: "22",
111 + height: "22",
112 + viewBox: "0 0 22 22",
113 + fill: "none"
114 + }, props), /*#__PURE__*/ react.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg" }, /*#__PURE__*/ react.default.createElement("path", {
115 + d: "M16.8622 12.1197V4.74246C16.8621 2.70533 15.2107 1.05396 13.1735 1.05396H4.74246C2.70535 1.05398 1.05398 2.70535 1.05396 4.74246V14.2274C1.05396 16.2645 2.70533 17.916 4.74246 17.916H12.1197C12.4107 17.916 12.6466 18.152 12.6466 18.443C12.6465 18.734 12.4107 18.9698 12.1197 18.9698H4.74246C2.12329 18.9698 0 16.8465 0 14.2274V4.74246C2.28646e-05 2.1233 2.1233 2.21612e-05 4.74246 0H13.1735C15.7927 2.60738e-07 17.916 2.12329 17.916 4.74246V12.1197C17.916 12.4107 17.68 12.6466 17.389 12.6466C17.098 12.6465 16.8622 12.4107 16.8622 12.1197Z",
116 + fill: "black",
117 + fillOpacity: "0.56"
118 + }), /*#__PURE__*/ react.default.createElement("path", {
119 + d: "M9.29598 11.3878C8.81835 10.0982 10.1012 8.85589 11.3748 9.3747L21.0159 13.3025C22.3228 13.835 22.3301 15.6829 21.0275 16.2257L17.4478 17.7172C17.3249 17.7684 17.2259 17.8644 17.1708 17.9856L15.7665 21.0751C15.1824 22.36 13.3351 22.2935 12.8449 20.9699L9.29598 11.3878ZM10.9772 10.3507C10.5527 10.1778 10.125 10.5919 10.2842 11.0217L13.8332 20.604C13.9966 21.0451 14.6124 21.0672 14.8071 20.6389L16.2113 17.5495C16.3767 17.1858 16.6737 16.8981 17.0425 16.7444L20.6222 15.2529C21.0563 15.0719 21.0538 14.456 20.6182 14.2786L10.9772 10.3507Z",
120 + fill: "black",
121 + fillOpacity: "0.56"
122 + })));
123 + };
62 124
63 -"use strict";
125 +//#endregion
126 +//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
127 +/** @license React v16.13.1
128 + * react-is.development.js
129 + *
130 + * Copyright (c) Facebook, Inc. and its affiliates.
131 + *
132 + * This source code is licensed under the MIT license found in the
133 + * LICENSE file in the root directory of this source tree.
134 + */
135 + var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
136 + (function() {
137 + "use strict";
138 + var hasSymbol = typeof Symbol === "function" && Symbol.for;
139 + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
140 + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
141 + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
142 + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
143 + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
144 + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
145 + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
146 + var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
147 + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
148 + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
149 + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
150 + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
151 + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
152 + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
153 + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
154 + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
155 + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
156 + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
157 + function isValidElementType(type) {
158 + return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
159 + }
160 + function typeOf(object) {
161 + if (typeof object === "object" && object !== null) {
162 + var $$typeof = object.$$typeof;
163 + switch ($$typeof) {
164 + case REACT_ELEMENT_TYPE:
165 + var type = object.type;
166 + switch (type) {
167 + case REACT_ASYNC_MODE_TYPE:
168 + case REACT_CONCURRENT_MODE_TYPE:
169 + case REACT_FRAGMENT_TYPE:
170 + case REACT_PROFILER_TYPE:
171 + case REACT_STRICT_MODE_TYPE:
172 + case REACT_SUSPENSE_TYPE: return type;
173 + default:
174 + var $$typeofType = type && type.$$typeof;
175 + switch ($$typeofType) {
176 + case REACT_CONTEXT_TYPE:
177 + case REACT_FORWARD_REF_TYPE:
178 + case REACT_LAZY_TYPE:
179 + case REACT_MEMO_TYPE:
180 + case REACT_PROVIDER_TYPE: return $$typeofType;
181 + default: return $$typeof;
182 + }
183 + }
184 + case REACT_PORTAL_TYPE: return $$typeof;
185 + }
186 + }
187 + }
188 + var AsyncMode = REACT_ASYNC_MODE_TYPE;
189 + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
190 + var ContextConsumer = REACT_CONTEXT_TYPE;
191 + var ContextProvider = REACT_PROVIDER_TYPE;
192 + var Element = REACT_ELEMENT_TYPE;
193 + var ForwardRef = REACT_FORWARD_REF_TYPE;
194 + var Fragment = REACT_FRAGMENT_TYPE;
195 + var Lazy = REACT_LAZY_TYPE;
196 + var Memo = REACT_MEMO_TYPE;
197 + var Portal = REACT_PORTAL_TYPE;
198 + var Profiler = REACT_PROFILER_TYPE;
199 + var StrictMode = REACT_STRICT_MODE_TYPE;
200 + var Suspense = REACT_SUSPENSE_TYPE;
201 + var hasWarnedAboutDeprecatedIsAsyncMode = false;
202 + function isAsyncMode(object) {
203 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
204 + hasWarnedAboutDeprecatedIsAsyncMode = true;
205 + console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
206 + }
207 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
208 + }
209 + function isConcurrentMode(object) {
210 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
211 + }
212 + function isContextConsumer(object) {
213 + return typeOf(object) === REACT_CONTEXT_TYPE;
214 + }
215 + function isContextProvider(object) {
216 + return typeOf(object) === REACT_PROVIDER_TYPE;
217 + }
218 + function isElement(object) {
219 + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
220 + }
221 + function isForwardRef(object) {
222 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
223 + }
224 + function isFragment(object) {
225 + return typeOf(object) === REACT_FRAGMENT_TYPE;
226 + }
227 + function isLazy(object) {
228 + return typeOf(object) === REACT_LAZY_TYPE;
229 + }
230 + function isMemo(object) {
231 + return typeOf(object) === REACT_MEMO_TYPE;
232 + }
233 + function isPortal(object) {
234 + return typeOf(object) === REACT_PORTAL_TYPE;
235 + }
236 + function isProfiler(object) {
237 + return typeOf(object) === REACT_PROFILER_TYPE;
238 + }
239 + function isStrictMode(object) {
240 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
241 + }
242 + function isSuspense(object) {
243 + return typeOf(object) === REACT_SUSPENSE_TYPE;
244 + }
245 + exports.AsyncMode = AsyncMode;
246 + exports.ConcurrentMode = ConcurrentMode;
247 + exports.ContextConsumer = ContextConsumer;
248 + exports.ContextProvider = ContextProvider;
249 + exports.Element = Element;
250 + exports.ForwardRef = ForwardRef;
251 + exports.Fragment = Fragment;
252 + exports.Lazy = Lazy;
253 + exports.Memo = Memo;
254 + exports.Portal = Portal;
255 + exports.Profiler = Profiler;
256 + exports.StrictMode = StrictMode;
257 + exports.Suspense = Suspense;
258 + exports.isAsyncMode = isAsyncMode;
259 + exports.isConcurrentMode = isConcurrentMode;
260 + exports.isContextConsumer = isContextConsumer;
261 + exports.isContextProvider = isContextProvider;
262 + exports.isElement = isElement;
263 + exports.isForwardRef = isForwardRef;
264 + exports.isFragment = isFragment;
265 + exports.isLazy = isLazy;
266 + exports.isMemo = isMemo;
267 + exports.isPortal = isPortal;
268 + exports.isProfiler = isProfiler;
269 + exports.isStrictMode = isStrictMode;
270 + exports.isSuspense = isSuspense;
271 + exports.isValidElementType = isValidElementType;
272 + exports.typeOf = typeOf;
273 + })();
274 + }));
64 275
276 +//#endregion
277 +//#region node_modules/prop-types/node_modules/react-is/index.js
278 + var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
279 + module.exports = require_react_is_development();
280 + }));
65 281
66 -Object.defineProperty(exports, "__esModule", ({
67 - value: true
68 -}));
69 -exports["default"] = isRTL;
70 -function isRTL() {
71 - var _elementorCommon$conf, _elementorCommon;
72 - return (_elementorCommon$conf = (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 || (_elementorCommon = _elementorCommon.config) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.isRTL) !== null && _elementorCommon$conf !== void 0 ? _elementorCommon$conf : false;
73 -}
282 +//#endregion
283 +//#region node_modules/object-assign/index.js
284 +/*
285 + object-assign
286 + (c) Sindre Sorhus
287 + @license MIT
288 + */
289 + var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
290 + var getOwnPropertySymbols = Object.getOwnPropertySymbols;
291 + var hasOwnProperty = Object.prototype.hasOwnProperty;
292 + var propIsEnumerable = Object.prototype.propertyIsEnumerable;
293 + function toObject(val) {
294 + if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
295 + return Object(val);
296 + }
297 + function shouldUseNative() {
298 + try {
299 + if (!Object.assign) return false;
300 + var test1 = /* @__PURE__ */ new String("abc");
301 + test1[5] = "de";
302 + if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
303 + var test2 = {};
304 + for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
305 + if (Object.getOwnPropertyNames(test2).map(function(n) {
306 + return test2[n];
307 + }).join("") !== "0123456789") return false;
308 + var test3 = {};
309 + "abcdefghijklmnopqrst".split("").forEach(function(letter) {
310 + test3[letter] = letter;
311 + });
312 + if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
313 + return true;
314 + } catch (err) {
315 + return false;
316 + }
317 + }
318 + module.exports = shouldUseNative() ? Object.assign : function(target, source) {
319 + var from;
320 + var to = toObject(target);
321 + var symbols;
322 + for (var s = 1; s < arguments.length; s++) {
323 + from = Object(arguments[s]);
324 + for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
325 + if (getOwnPropertySymbols) {
326 + symbols = getOwnPropertySymbols(from);
327 + for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
328 + }
329 + }
330 + return to;
331 + };
332 + }));
74 333
75 -/***/ }),
76 -
77 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js":
78 -/*!************************************************************************************************!*\
79 - !*** ../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js ***!
80 - \************************************************************************************************/
81 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
82 -
83 -"use strict";
84 -
85 -
86 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
87 -Object.defineProperty(exports, "__esModule", ({
88 - value: true
89 -}));
90 -exports["default"] = void 0;
91 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
92 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
93 -var MenuActiveStateResolver = /*#__PURE__*/function () {
94 - function MenuActiveStateResolver(activeMenuSlug, activeChildSlug) {
95 - (0, _classCallCheck2.default)(this, MenuActiveStateResolver);
96 - this.activeMenuSlug = activeMenuSlug;
97 - this.activeChildSlug = activeChildSlug;
98 - }
99 - return (0, _createClass2.default)(MenuActiveStateResolver, [{
100 - key: "isMenuActive",
101 - value: function isMenuActive(item) {
102 - return item.slug === this.activeMenuSlug;
103 - }
104 - }, {
105 - key: "isChildActive",
106 - value: function isChildActive(childItem) {
107 - return childItem.slug === this.activeChildSlug;
108 - }
109 - }]);
110 -}();
111 -var _default = exports["default"] = MenuActiveStateResolver;
112 -
113 -/***/ }),
114 -
115 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js":
116 -/*!*******************************************************************************************************************!*\
117 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js ***!
118 - \*******************************************************************************************************************/
119 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
120 -
121 -"use strict";
122 -
123 -
124 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
125 -Object.defineProperty(exports, "__esModule", ({
126 - value: true
127 -}));
128 -exports["default"] = void 0;
129 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
130 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
131 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
132 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
133 -var CollapsedMenuItemPopover = function CollapsedMenuItemPopover(_ref) {
134 - var item = _ref.item,
135 - children = _ref.children,
136 - activeChildSlug = _ref.activeChildSlug,
137 - isPopoverOpen = _ref.isPopoverOpen,
138 - anchorEl = _ref.anchorEl,
139 - onClose = _ref.onClose,
140 - IconComponent = _ref.IconComponent,
141 - isActive = _ref.isActive,
142 - onMouseEnter = _ref.onMouseEnter,
143 - anchorRef = _ref.anchorRef;
144 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
145 - disablePadding: true,
146 - dense: true,
147 - disableGutters: true,
148 - onMouseEnter: onMouseEnter,
149 - ref: anchorRef
150 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
151 - selected: isActive || isPopoverOpen,
152 - sx: {
153 - height: 36
154 - }
155 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null))), /*#__PURE__*/_react.default.createElement(_shared.StyledPopover, {
156 - open: isPopoverOpen,
157 - anchorEl: anchorEl,
158 - onClose: onClose,
159 - anchorOrigin: {
160 - vertical: 'top',
161 - horizontal: 'right'
162 - },
163 - transformOrigin: {
164 - vertical: 'top',
165 - horizontal: 'left'
166 - },
167 - slotProps: {
168 - paper: {
169 - onMouseLeave: onClose
170 - }
171 - },
172 - disableRestoreFocus: true,
173 - hideBackdrop: true
174 - }, /*#__PURE__*/_react.default.createElement(_shared.PopoverContent, null, /*#__PURE__*/_react.default.createElement(_ui.List, {
175 - disablePadding: true,
176 - dense: true
177 - }, /*#__PURE__*/_react.default.createElement(_shared.PopoverTitle, null, item.label), children.map(function (childItem) {
178 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
179 - key: childItem.slug,
180 - disablePadding: true,
181 - disableGutters: true,
182 - dense: true,
183 - sx: {
184 - height: 28
185 - }
186 - }, /*#__PURE__*/_react.default.createElement(_shared.PopoverListItemButton, {
187 - component: "a",
188 - href: childItem.url,
189 - selected: childItem.slug === activeChildSlug
190 - }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
191 - primary: childItem.label,
192 - primaryTypographyProps: {
193 - variant: 'body2'
194 - }
195 - })));
196 - })))));
197 -};
198 -CollapsedMenuItemPopover.propTypes = {
199 - item: _propTypes.default.object.isRequired,
200 - children: _propTypes.default.array.isRequired,
201 - activeChildSlug: _propTypes.default.string.isRequired,
202 - isPopoverOpen: _propTypes.default.bool.isRequired,
203 - anchorEl: _propTypes.default.object,
204 - onClose: _propTypes.default.func.isRequired,
205 - IconComponent: _propTypes.default.elementType.isRequired,
206 - isActive: _propTypes.default.bool.isRequired,
207 - onMouseEnter: _propTypes.default.func.isRequired,
208 - anchorRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]).isRequired
209 -};
210 -var _default = exports["default"] = CollapsedMenuItemPopover;
211 -
212 -/***/ }),
213 -
214 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js":
215 -/*!*******************************************************************************************************************!*\
216 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js ***!
217 - \*******************************************************************************************************************/
218 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
219 -
220 -"use strict";
221 -
222 -
223 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
224 -Object.defineProperty(exports, "__esModule", ({
225 - value: true
226 -}));
227 -exports["default"] = void 0;
228 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
229 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
230 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
231 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
232 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../../../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
233 -var CollapsedMenuItemTooltip = function CollapsedMenuItemTooltip(_ref) {
234 - var item = _ref.item,
235 - isActive = _ref.isActive,
236 - onClick = _ref.onClick,
237 - IconComponent = _ref.IconComponent,
238 - onMouseEnter = _ref.onMouseEnter;
239 - var isRtlLanguage = (0, _isRtl.default)();
240 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
241 - disablePadding: true,
242 - dense: true,
243 - disableGutters: true,
244 - onMouseEnter: onMouseEnter
245 - }, /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
246 - title: item.label,
247 - placement: isRtlLanguage ? 'left' : 'right'
248 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
249 - onClick: onClick,
250 - selected: isActive,
251 - sx: {
252 - height: 36
253 - }
254 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null)))));
255 -};
256 -CollapsedMenuItemTooltip.propTypes = {
257 - item: _propTypes.default.object.isRequired,
258 - isActive: _propTypes.default.bool.isRequired,
259 - onClick: _propTypes.default.func.isRequired,
260 - IconComponent: _propTypes.default.elementType.isRequired,
261 - onMouseEnter: _propTypes.default.func.isRequired
262 -};
263 -var _default = exports["default"] = CollapsedMenuItemTooltip;
264 -
265 -/***/ }),
266 -
267 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js":
268 -/*!*********************************************************************************************!*\
269 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js ***!
270 - \*********************************************************************************************/
271 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
272 -
273 -"use strict";
274 -
275 -
276 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
277 -Object.defineProperty(exports, "__esModule", ({
278 - value: true
279 -}));
280 -Object.defineProperty(exports, "SidebarCollapsedMenu", ({
281 - enumerable: true,
282 - get: function get() {
283 - return _sidebarCollapsedMenu.default;
284 - }
285 -}));
286 -Object.defineProperty(exports, "SidebarCollapsedMenuItem", ({
287 - enumerable: true,
288 - get: function get() {
289 - return _sidebarCollapsedMenuItem.default;
290 - }
291 -}));
292 -var _sidebarCollapsedMenu = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js"));
293 -var _sidebarCollapsedMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js"));
294 -
295 -/***/ }),
296 -
297 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js":
298 -/*!*******************************************************************************************************************!*\
299 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js ***!
300 - \*******************************************************************************************************************/
301 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
302 -
303 -"use strict";
304 -
305 -
306 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
307 -Object.defineProperty(exports, "__esModule", ({
308 - value: true
309 -}));
310 -exports["default"] = void 0;
311 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
312 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
313 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
314 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
315 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
316 -var _collapsedMenuItemPopover = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-popover */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js"));
317 -var _collapsedMenuItemTooltip = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-tooltip */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js"));
318 -var SidebarCollapsedMenuItem = function SidebarCollapsedMenuItem(_ref) {
319 - var item = _ref.item,
320 - isActive = _ref.isActive,
321 - _ref$children = _ref.children,
322 - children = _ref$children === void 0 ? null : _ref$children,
323 - activeChildSlug = _ref.activeChildSlug,
324 - isPopoverOpen = _ref.isPopoverOpen,
325 - onOpenPopover = _ref.onOpenPopover,
326 - onClosePopover = _ref.onClosePopover;
327 - var _useState = (0, _element.useState)(null),
328 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
329 - anchorEl = _useState2[0],
330 - setAnchorEl = _useState2[1];
331 - var hasChildren = !!(children !== null && children !== void 0 && children.length);
332 - var IconComponent = _shared.ICON_MAP[item.icon] || _shared.DEFAULT_ICON;
333 - var handleMouseEnter = function handleMouseEnter() {
334 - if (hasChildren) {
335 - onOpenPopover(item.slug);
336 - } else {
337 - onClosePopover();
338 - }
339 - };
340 - var handleClick = function handleClick() {
341 - if (!hasChildren) {
342 - window.location.href = item.url;
343 - }
344 - };
345 - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, hasChildren ? /*#__PURE__*/_react.default.createElement(_collapsedMenuItemPopover.default, {
346 - item: item,
347 - children: children,
348 - activeChildSlug: activeChildSlug,
349 - isPopoverOpen: isPopoverOpen,
350 - anchorEl: anchorEl,
351 - onClose: onClosePopover,
352 - IconComponent: IconComponent,
353 - isActive: isActive,
354 - onMouseEnter: handleMouseEnter,
355 - anchorRef: setAnchorEl
356 - }) : /*#__PURE__*/_react.default.createElement(_collapsedMenuItemTooltip.default, {
357 - item: item,
358 - isActive: isActive,
359 - onClick: handleClick,
360 - IconComponent: IconComponent,
361 - onMouseEnter: handleMouseEnter
362 - }));
363 -};
364 -SidebarCollapsedMenuItem.propTypes = {
365 - item: _propTypes.default.object.isRequired,
366 - isActive: _propTypes.default.bool.isRequired,
367 - children: _propTypes.default.array,
368 - activeChildSlug: _propTypes.default.string.isRequired,
369 - isPopoverOpen: _propTypes.default.bool.isRequired,
370 - onOpenPopover: _propTypes.default.func.isRequired,
371 - onClosePopover: _propTypes.default.func.isRequired
372 -};
373 -var _default = exports["default"] = SidebarCollapsedMenuItem;
374 -
375 -/***/ }),
376 -
377 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js":
378 -/*!**************************************************************************************************************!*\
379 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js ***!
380 - \**************************************************************************************************************/
381 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
382 -
383 -"use strict";
384 -
385 -
386 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
387 -Object.defineProperty(exports, "__esModule", ({
388 - value: true
389 -}));
390 -exports["default"] = void 0;
391 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
392 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
393 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
394 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
395 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
396 -var _menuActiveStateResolver = _interopRequireDefault(__webpack_require__(/*! ../../classes/menu-active-state-resolver */ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js"));
397 -var _sidebarCollapsedMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js"));
398 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
399 -var SidebarCollapsedMenu = function SidebarCollapsedMenu(_ref) {
400 - var menuItems = _ref.menuItems,
401 - level4Groups = _ref.level4Groups,
402 - activeMenuSlug = _ref.activeMenuSlug,
403 - activeChildSlug = _ref.activeChildSlug;
404 - var _useState = (0, _element.useState)(null),
405 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
406 - openPopoverSlug = _useState2[0],
407 - setOpenPopoverSlug = _useState2[1];
408 - var activeStateResolver = (0, _element.useMemo)(function () {
409 - return new _menuActiveStateResolver.default(activeMenuSlug, activeChildSlug);
410 - }, [activeMenuSlug, activeChildSlug]);
411 - var getChildren = function getChildren(item) {
412 - if (!item.group_id) {
413 - return null;
414 - }
415 - var group = level4Groups[item.group_id];
416 - if (!group || !group.items || !group.items.length) {
417 - return null;
418 - }
419 - return group.items;
420 - };
421 - var handleOpenPopover = (0, _element.useCallback)(function (slug) {
422 - setOpenPopoverSlug(slug);
423 - }, []);
424 - var handleClosePopover = (0, _element.useCallback)(function () {
425 - setOpenPopoverSlug(null);
426 - }, []);
427 - return /*#__PURE__*/_react.default.createElement(_shared.MenuList, {
428 - isCollapsed: true,
429 - onMouseLeave: handleClosePopover
430 - }, menuItems.map(function (item) {
431 - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.has_divider_before && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
432 - key: "divider-".concat(item.slug),
433 - sx: {
434 - my: 1
435 - }
436 - }), /*#__PURE__*/_react.default.createElement(_sidebarCollapsedMenuItem.default, {
437 - key: item.slug,
438 - item: item,
439 - isActive: activeStateResolver.isMenuActive(item),
440 - children: getChildren(item),
441 - activeChildSlug: activeChildSlug,
442 - isPopoverOpen: openPopoverSlug === item.slug,
443 - onOpenPopover: handleOpenPopover,
444 - onClosePopover: handleClosePopover
445 - }));
446 - }));
447 -};
448 -SidebarCollapsedMenu.propTypes = {
449 - menuItems: _propTypes.default.array.isRequired,
450 - level4Groups: _propTypes.default.object.isRequired,
451 - activeMenuSlug: _propTypes.default.string.isRequired,
452 - activeChildSlug: _propTypes.default.string.isRequired
453 -};
454 -var _default = exports["default"] = SidebarCollapsedMenu;
455 -
456 -/***/ }),
457 -
458 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js":
459 -/*!**********************************************************************************!*\
460 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js ***!
461 - \**********************************************************************************/
462 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
463 -
464 -"use strict";
465 -
466 -
467 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
468 -Object.defineProperty(exports, "__esModule", ({
469 - value: true
470 -}));
471 -var _exportNames = {
472 - SidebarUpgradeCta: true
473 -};
474 -Object.defineProperty(exports, "SidebarUpgradeCta", ({
475 - enumerable: true,
476 - get: function get() {
477 - return _sidebarUpgradeCta.default;
478 - }
479 -}));
480 -var _sidebarUpgradeCta = _interopRequireDefault(__webpack_require__(/*! ./sidebar-upgrade-cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js"));
481 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js");
482 -Object.keys(_styledComponents).forEach(function (key) {
483 - if (key === "default" || key === "__esModule") return;
484 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
485 - if (key in exports && exports[key] === _styledComponents[key]) return;
486 - Object.defineProperty(exports, key, {
487 - enumerable: true,
488 - get: function get() {
489 - return _styledComponents[key];
490 - }
491 - });
492 -});
493 -
494 -/***/ }),
495 -
496 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js":
497 -/*!************************************************************************************************!*\
498 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js ***!
499 - \************************************************************************************************/
500 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
501 -
502 -"use strict";
503 -
504 -
505 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
506 -Object.defineProperty(exports, "__esModule", ({
507 - value: true
508 -}));
509 -exports["default"] = void 0;
510 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
511 -var _icons = __webpack_require__(/*! @elementor/icons */ "@elementor/icons");
512 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
513 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js");
514 -var SidebarUpgradeCta = function SidebarUpgradeCta(_ref) {
515 - var upgradeUrl = _ref.upgradeUrl,
516 - upgradeText = _ref.upgradeText,
517 - hasPro = _ref.hasPro,
518 - collapsed = _ref.collapsed;
519 - var isPro = true === hasPro || '1' === hasPro || 'true' === hasPro;
520 - if (isPro) {
521 - return null;
522 - }
523 - var handleUpgradeClick = function handleUpgradeClick() {
524 - window.open(upgradeUrl, '_blank');
525 - };
526 - if (collapsed) {
527 - return /*#__PURE__*/_react.default.createElement(_styledComponents.CollapsedCtaContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.CollapsedCtaButton, {
528 - onClick: handleUpgradeClick
529 - }, /*#__PURE__*/_react.default.createElement(_icons.CrownFilledIcon, null)));
530 - }
531 - return /*#__PURE__*/_react.default.createElement(_styledComponents.CtaContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.CtaButton, {
532 - startIcon: /*#__PURE__*/_react.default.createElement(_icons.CrownFilledIcon, null),
533 - onClick: handleUpgradeClick,
534 - variant: "outlined",
535 - color: "promotion",
536 - fullWidth: true
537 - }, upgradeText));
538 -};
539 -SidebarUpgradeCta.propTypes = {
540 - upgradeUrl: _propTypes.default.string.isRequired,
541 - upgradeText: _propTypes.default.string.isRequired,
542 - hasPro: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]).isRequired,
543 - collapsed: _propTypes.default.bool
544 -};
545 -var _default = exports["default"] = SidebarUpgradeCta;
546 -
547 -/***/ }),
548 -
549 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js":
550 -/*!**********************************************************************************************!*\
551 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js ***!
552 - \**********************************************************************************************/
553 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
554 -
555 -"use strict";
556 -
557 -
558 -Object.defineProperty(exports, "__esModule", ({
559 - value: true
560 -}));
561 -exports.CtaContainer = exports.CtaButton = exports.CollapsedCtaContainer = exports.CollapsedCtaButton = void 0;
562 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
563 -var CtaContainer = exports.CtaContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
564 - var theme = _ref.theme;
565 - return {
566 - padding: theme.spacing(2)
567 - };
568 -});
569 -var CtaButton = exports.CtaButton = (0, _ui.styled)(_ui.Button)({
570 - justifyContent: 'center',
571 - whiteSpace: 'nowrap'
572 -});
573 -var CollapsedCtaContainer = exports.CollapsedCtaContainer = (0, _ui.styled)(_ui.Box)(function (_ref2) {
574 - var theme = _ref2.theme;
575 - return {
576 - padding: theme.spacing(2),
577 - display: 'flex',
578 - justifyContent: 'center',
579 - alignItems: 'center'
580 - };
581 -});
582 -var CollapsedCtaButton = exports.CollapsedCtaButton = (0, _ui.styled)('button')(function (_ref3) {
583 - var theme = _ref3.theme;
584 - return {
585 - border: "1px solid ".concat(theme.palette.promotion.main),
586 - borderRadius: 999,
587 - width: 24,
588 - height: 24,
589 - padding: 0,
590 - display: 'flex',
591 - alignItems: 'center',
592 - justifyContent: 'center',
593 - background: 'transparent',
594 - cursor: 'pointer',
595 - color: theme.palette.promotion.main,
596 - transition: 'all 0.2s ease-in-out',
597 - whiteSpace: 'nowrap',
598 - '&:hover': {
599 - background: theme.palette.promotion.hover
600 - },
601 - '& svg': {
602 - width: 18,
603 - height: 18,
604 - fill: theme.palette.promotion.main
605 - }
606 - };
607 -});
608 -
609 -/***/ }),
610 -
611 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js":
612 -/*!*************************************************************************************!*\
613 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js ***!
614 - \*************************************************************************************/
615 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
616 -
617 -"use strict";
618 -
619 -
620 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
621 -Object.defineProperty(exports, "__esModule", ({
622 - value: true
623 -}));
624 -var _exportNames = {
625 - SidebarHeader: true
626 -};
627 -Object.defineProperty(exports, "SidebarHeader", ({
628 - enumerable: true,
629 - get: function get() {
630 - return _sidebarHeader.default;
631 - }
632 -}));
633 -var _sidebarHeader = _interopRequireDefault(__webpack_require__(/*! ./sidebar-header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js"));
634 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js");
635 -Object.keys(_styledComponents).forEach(function (key) {
636 - if (key === "default" || key === "__esModule") return;
637 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
638 - if (key in exports && exports[key] === _styledComponents[key]) return;
639 - Object.defineProperty(exports, key, {
640 - enumerable: true,
641 - get: function get() {
642 - return _styledComponents[key];
643 - }
644 - });
645 -});
646 -
647 -/***/ }),
648 -
649 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js":
650 -/*!**********************************************************************************************!*\
651 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js ***!
652 - \**********************************************************************************************/
653 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
654 -
655 -"use strict";
656 -
657 -
658 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
659 -Object.defineProperty(exports, "__esModule", ({
660 - value: true
661 -}));
662 -exports["default"] = void 0;
663 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
664 -var _ChevronRightIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronRightIcon */ "@elementor/icons/ChevronRightIcon"));
665 -var _SearchIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SearchIcon */ "@elementor/icons/SearchIcon"));
666 -var _editor = _interopRequireDefault(__webpack_require__(/*! ../icons/editor */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js"));
667 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
668 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
669 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js");
670 -var SidebarHeader = function SidebarHeader(_ref) {
671 - var siteTitle = _ref.siteTitle,
672 - onCollapse = _ref.onCollapse;
673 - var finderAction = function finderAction() {
674 - $e.route('finder');
675 - };
676 - return /*#__PURE__*/_react.default.createElement(_styledComponents.HeaderContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.HeaderContent, null, /*#__PURE__*/_react.default.createElement(_shared.SiteIconBox, null, /*#__PURE__*/_react.default.createElement(_editor.default, null)), /*#__PURE__*/_react.default.createElement(_styledComponents.SiteTitle, {
677 - variant: "subtitle1"
678 - }, siteTitle), /*#__PURE__*/_react.default.createElement(_styledComponents.SearchButton, {
679 - onClick: finderAction
680 - }, /*#__PURE__*/_react.default.createElement(_SearchIcon.default, null))), /*#__PURE__*/_react.default.createElement(_shared.CollapseButton, {
681 - onClick: onCollapse,
682 - size: "small",
683 - expanded: true
684 - }, /*#__PURE__*/_react.default.createElement(_ChevronRightIcon.default, null)));
685 -};
686 -SidebarHeader.propTypes = {
687 - siteTitle: _propTypes.default.string.isRequired,
688 - onCollapse: _propTypes.default.func.isRequired
689 -};
690 -var _default = exports["default"] = SidebarHeader;
691 -
692 -/***/ }),
693 -
694 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js":
695 -/*!*************************************************************************************************!*\
696 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js ***!
697 - \*************************************************************************************************/
698 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
699 -
700 -"use strict";
701 -
702 -
703 -Object.defineProperty(exports, "__esModule", ({
704 - value: true
705 -}));
706 -exports.SiteTitle = exports.SearchButton = exports.HeaderContent = exports.HeaderContainer = void 0;
707 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
708 -var HeaderContainer = exports.HeaderContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
709 - var theme = _ref.theme;
710 - return {
711 - position: 'relative',
712 - marginLeft: theme.spacing(2),
713 - marginRight: theme.spacing(2),
714 - height: 80,
715 - borderBottom: "1px solid ".concat(theme.palette.divider),
716 - display: 'flex',
717 - alignItems: 'center'
718 - };
719 -});
720 -var HeaderContent = exports.HeaderContent = (0, _ui.styled)(_ui.Box)(function (_ref2) {
721 - var theme = _ref2.theme;
722 - return {
723 - display: 'flex',
724 - alignItems: 'center',
725 - gap: theme.spacing(1.5),
726 - flex: 1
727 - };
728 -});
729 -var SiteTitle = exports.SiteTitle = (0, _ui.styled)(_ui.Typography)({
730 - fontWeight: 500,
731 - flex: 1
732 -});
733 -var SearchButton = exports.SearchButton = (0, _ui.styled)(_ui.IconButton)(function (_ref3) {
734 - var theme = _ref3.theme;
735 - return {
736 - fontSize: 20,
737 - color: theme.palette.action.active
738 - };
739 -});
740 -
741 -/***/ }),
742 -
743 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js":
744 -/*!****************************************************************************************************!*\
745 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js ***!
746 - \****************************************************************************************************/
747 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
748 -
749 -"use strict";
750 -
751 -
752 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
753 -Object.defineProperty(exports, "__esModule", ({
754 - value: true
755 -}));
756 -exports.useAdminMenuOffset = void 0;
757 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
758 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../../../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
759 -var ADMIN_MENU_WRAP_ID = 'adminmenuwrap';
760 -var WPCONTENT_ID = 'wpcontent';
761 -var EDITOR_ONE_TOP_BAR_ID = 'editor-one-top-bar';
762 -var WPADMINBAR_ID = 'wpadminbar';
763 -var INITIALIZED_DATA_ATTR = 'data-editor-one-offset-initialized';
764 -var WPFOOTER_ID = 'wpfooter';
765 -var WPBODY_CONTENT_ID = 'wpbody-content';
766 -var useAdminMenuOffset = exports.useAdminMenuOffset = function useAdminMenuOffset() {
767 - var cleanupRef = (0, _element.useRef)(null);
768 - (0, _element.useEffect)(function () {
769 - var adminMenuWrap = document.getElementById(ADMIN_MENU_WRAP_ID);
770 - var wpcontent = document.getElementById(WPCONTENT_ID);
771 - if (!adminMenuWrap || !wpcontent || wpcontent.hasAttribute(INITIALIZED_DATA_ATTR)) {
772 - return;
773 - }
774 - var wpfooter = document.getElementById(WPFOOTER_ID);
775 - var wpbodyContent = document.getElementById(WPBODY_CONTENT_ID);
776 - wpbodyContent === null || wpbodyContent === void 0 || wpbodyContent.insertBefore(wpfooter, wpbodyContent.querySelector(':scope > .clear'));
777 - var wpAdminBar = document.getElementById(WPADMINBAR_ID);
778 - var updateOffset = function updateOffset() {
779 - var _document$getElementB, _wpAdminBar$clientHei, _topBarHeader$clientH;
780 - var topBarHeader = (_document$getElementB = document.getElementById(EDITOR_ONE_TOP_BAR_ID)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.querySelector(':scope > header');
781 - var isRtlLanguage = (0, _isRtl.default)();
782 - var rect = adminMenuWrap.getBoundingClientRect();
783 - var offset = isRtlLanguage ? document.documentElement.clientWidth - rect.left : rect.right;
784 - var adminBarHeightPx = "".concat((_wpAdminBar$clientHei = wpAdminBar === null || wpAdminBar === void 0 ? void 0 : wpAdminBar.clientHeight) !== null && _wpAdminBar$clientHei !== void 0 ? _wpAdminBar$clientHei : 0, "px");
785 - var topBarHeaderHeightPx = "".concat((_topBarHeader$clientH = topBarHeader === null || topBarHeader === void 0 ? void 0 : topBarHeader.clientHeight) !== null && _topBarHeader$clientH !== void 0 ? _topBarHeader$clientH : 0, "px");
786 - wpcontent.style.setProperty('--editor-one-sidebar-left-offset', "".concat(offset, "px"));
787 - wpcontent.style.setProperty('--e-admin-bar-height', adminBarHeightPx);
788 - wpcontent.style.setProperty('--e-top-bar-header-height', topBarHeaderHeightPx);
789 - };
790 - updateOffset();
791 - var resizeObserver = new ResizeObserver(updateOffset);
792 - resizeObserver.observe(wpcontent);
793 - var topBar = document.getElementById(EDITOR_ONE_TOP_BAR_ID);
794 - if (topBar) {
795 - resizeObserver.observe(topBar);
796 - }
797 - window.addEventListener('resize', updateOffset);
798 - wpcontent.setAttribute(INITIALIZED_DATA_ATTR, 'true');
799 - cleanupRef.current = function () {
800 - resizeObserver.disconnect();
801 - window.removeEventListener('resize', updateOffset);
802 - wpcontent.removeAttribute(INITIALIZED_DATA_ATTR);
803 - };
804 - return function () {
805 - if (cleanupRef.current) {
806 - cleanupRef.current();
807 - cleanupRef.current = null;
808 - }
809 - };
810 - }, []);
811 -};
812 -
813 -/***/ }),
814 -
815 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js":
816 -/*!***************************************************************************************************!*\
817 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js ***!
818 - \***************************************************************************************************/
819 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
820 -
821 -"use strict";
822 -
823 -
824 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
825 -Object.defineProperty(exports, "__esModule", ({
826 - value: true
827 -}));
828 -exports.useSidebarCollapse = void 0;
829 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
830 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
831 -var STORAGE_KEY = 'elementor_sidebar_collapsed';
832 -var AUTO_COLLAPSE_BREAKPOINT = 960;
833 -var TRANSITION_DURATION = 300;
834 -var useSidebarCollapse = exports.useSidebarCollapse = function useSidebarCollapse() {
835 - var _useState = (0, _element.useState)(function () {
836 - var stored = localStorage.getItem(STORAGE_KEY);
837 - if (null !== stored) {
838 - return 'true' === stored;
839 - }
840 - return window.innerWidth <= AUTO_COLLAPSE_BREAKPOINT;
841 - }),
842 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
843 - isCollapsed = _useState2[0],
844 - setIsCollapsed = _useState2[1];
845 - (0, _element.useEffect)(function () {
846 - var mediaQuery = window.matchMedia("(max-width: ".concat(AUTO_COLLAPSE_BREAKPOINT, "px)"));
847 - var handleResize = function handleResize(e) {
848 - if (e.matches) {
849 - setIsCollapsed(true);
850 - } else {
851 - var stored = localStorage.getItem(STORAGE_KEY);
852 - setIsCollapsed('true' === stored);
853 - }
854 - };
855 - mediaQuery.addEventListener('change', handleResize);
856 - return function () {
857 - return mediaQuery.removeEventListener('change', handleResize);
858 - };
859 - }, []);
860 - var toggleCollapse = (0, _element.useCallback)(function () {
861 - var newState = !isCollapsed;
862 - var body = document.body;
863 - body.classList.add('e-sidebar-transitioning');
864 - setIsCollapsed(newState);
865 - localStorage.setItem(STORAGE_KEY, String(newState));
866 - setTimeout(function () {
867 - body.classList.remove('e-sidebar-transitioning');
868 - }, TRANSITION_DURATION);
869 - }, [isCollapsed]);
870 - (0, _element.useEffect)(function () {
871 - var container = document.getElementById('editor-one-sidebar-navigation');
872 - var body = document.body;
873 - if (isCollapsed) {
874 - container === null || container === void 0 || container.classList.add('e-sidebar-collapsed');
875 - body.classList.add('e-sidebar-is-collapsed');
876 - } else {
877 - container === null || container === void 0 || container.classList.remove('e-sidebar-collapsed');
878 - body.classList.remove('e-sidebar-is-collapsed');
879 - }
880 - }, [isCollapsed]);
881 - return {
882 - isCollapsed: isCollapsed,
883 - toggleCollapse: toggleCollapse
884 - };
885 -};
886 -
887 -/***/ }),
888 -
889 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js":
890 -/*!*************************************************************************************!*\
891 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js ***!
892 - \*************************************************************************************/
893 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
894 -
895 -"use strict";
896 -
897 -
898 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
899 -Object.defineProperty(exports, "__esModule", ({
900 - value: true
901 -}));
902 -exports["default"] = void 0;
903 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
904 -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
905 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
906 -var EditorIcon = function EditorIcon(props) {
907 - return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
908 - width: "22",
909 - height: "22",
910 - viewBox: "0 0 22 22",
911 - fill: "none"
912 - }, props), /*#__PURE__*/_react.default.createElement("svg", {
913 - xmlns: "http://www.w3.org/2000/svg"
914 - }, /*#__PURE__*/_react.default.createElement("path", {
915 - d: "M16.8622 12.1197V4.74246C16.8621 2.70533 15.2107 1.05396 13.1735 1.05396H4.74246C2.70535 1.05398 1.05398 2.70535 1.05396 4.74246V14.2274C1.05396 16.2645 2.70533 17.916 4.74246 17.916H12.1197C12.4107 17.916 12.6466 18.152 12.6466 18.443C12.6465 18.734 12.4107 18.9698 12.1197 18.9698H4.74246C2.12329 18.9698 0 16.8465 0 14.2274V4.74246C2.28646e-05 2.1233 2.1233 2.21612e-05 4.74246 0H13.1735C15.7927 2.60738e-07 17.916 2.12329 17.916 4.74246V12.1197C17.916 12.4107 17.68 12.6466 17.389 12.6466C17.098 12.6465 16.8622 12.4107 16.8622 12.1197Z",
916 - fill: "black",
917 - fillOpacity: "0.56"
918 - }), /*#__PURE__*/_react.default.createElement("path", {
919 - d: "M9.29598 11.3878C8.81835 10.0982 10.1012 8.85589 11.3748 9.3747L21.0159 13.3025C22.3228 13.835 22.3301 15.6829 21.0275 16.2257L17.4478 17.7172C17.3249 17.7684 17.2259 17.8644 17.1708 17.9856L15.7665 21.0751C15.1824 22.36 13.3351 22.2935 12.8449 20.9699L9.29598 11.3878ZM10.9772 10.3507C10.5527 10.1778 10.125 10.5919 10.2842 11.0217L13.8332 20.604C13.9966 21.0451 14.6124 21.0672 14.8071 20.6389L16.2113 17.5495C16.3767 17.1858 16.6737 16.8981 17.0425 16.7444L20.6222 15.2529C21.0563 15.0719 21.0538 14.456 20.6182 14.2786L10.9772 10.3507Z",
920 - fill: "black",
921 - fillOpacity: "0.56"
922 - })));
923 -};
924 -var _default = exports["default"] = EditorIcon;
925 -
926 -/***/ }),
927 -
928 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js":
929 -/*!***********************************************************************************!*\
930 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js ***!
931 - \***********************************************************************************/
932 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
933 -
934 -"use strict";
935 -
936 -
937 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
938 -Object.defineProperty(exports, "__esModule", ({
939 - value: true
940 -}));
941 -exports["default"] = void 0;
942 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
943 -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
944 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
945 -var ToolIcon = function ToolIcon(props) {
946 - return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
947 - width: "20",
948 - height: "20",
949 - viewBox: "0 0 20 20",
950 - fill: "none"
951 - }, props), /*#__PURE__*/_react.default.createElement("path", {
952 - d: "M5.83329 8.33354H8.33329V5.83354L5.41663 2.91687C6.34965 2.47127 7.39788 2.32588 8.41696 2.50072C9.43604 2.67557 10.3759 3.16205 11.107 3.89318C11.8381 4.62431 12.3246 5.56412 12.4994 6.58321C12.6743 7.60229 12.5289 8.65051 12.0833 9.58354L17.0833 14.5835C17.4148 14.9151 17.6011 15.3647 17.6011 15.8335C17.6011 16.3024 17.4148 16.752 17.0833 17.0835C16.7518 17.4151 16.3021 17.6013 15.8333 17.6013C15.3645 17.6013 14.9148 17.4151 14.5833 17.0835L9.58329 12.0835C8.65027 12.5291 7.60204 12.6745 6.58296 12.4997C5.56388 12.3248 4.62407 11.8384 3.89294 11.1072C3.16181 10.3761 2.67533 9.43628 2.50048 8.4172C2.32563 7.39812 2.47102 6.3499 2.91663 5.41687L5.83329 8.33354Z",
953 - fill: "none",
954 - stroke: "currentColor",
955 - strokeWidth: "1.2",
956 - strokeLinecap: "round",
957 - strokeLinejoin: "round"
958 - }));
959 -};
960 -var _default = exports["default"] = ToolIcon;
961 -
962 -/***/ }),
963 -
964 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/index.js":
965 -/*!******************************************************************************!*\
966 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/index.js ***!
967 - \******************************************************************************/
968 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
969 -
970 -"use strict";
971 -
972 -
973 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
974 -Object.defineProperty(exports, "__esModule", ({
975 - value: true
976 -}));
977 -var _exportNames = {};
978 -Object.defineProperty(exports, "default", ({
979 - enumerable: true,
980 - get: function get() {
981 - return _sidebarNavigation.default;
982 - }
983 -}));
984 -var _sidebarNavigation = _interopRequireDefault(__webpack_require__(/*! ./sidebar-navigation */ "../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js"));
985 -var _shared = __webpack_require__(/*! ./shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
986 -Object.keys(_shared).forEach(function (key) {
987 - if (key === "default" || key === "__esModule") return;
988 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
989 - if (key in exports && exports[key] === _shared[key]) return;
990 - Object.defineProperty(exports, key, {
991 - enumerable: true,
992 - get: function get() {
993 - return _shared[key];
994 - }
995 - });
996 -});
997 -var _header = __webpack_require__(/*! ./header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js");
998 -Object.keys(_header).forEach(function (key) {
999 - if (key === "default" || key === "__esModule") return;
1000 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1001 - if (key in exports && exports[key] === _header[key]) return;
1002 - Object.defineProperty(exports, key, {
1003 - enumerable: true,
1004 - get: function get() {
1005 - return _header[key];
1006 - }
1007 - });
1008 -});
1009 -var _menu = __webpack_require__(/*! ./menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js");
1010 -Object.keys(_menu).forEach(function (key) {
1011 - if (key === "default" || key === "__esModule") return;
1012 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1013 - if (key in exports && exports[key] === _menu[key]) return;
1014 - Object.defineProperty(exports, key, {
1015 - enumerable: true,
1016 - get: function get() {
1017 - return _menu[key];
1018 - }
1019 - });
1020 -});
1021 -var _collapsedMenu = __webpack_require__(/*! ./collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js");
1022 -Object.keys(_collapsedMenu).forEach(function (key) {
1023 - if (key === "default" || key === "__esModule") return;
1024 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1025 - if (key in exports && exports[key] === _collapsedMenu[key]) return;
1026 - Object.defineProperty(exports, key, {
1027 - enumerable: true,
1028 - get: function get() {
1029 - return _collapsedMenu[key];
1030 - }
1031 - });
1032 -});
1033 -var _cta = __webpack_require__(/*! ./cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js");
1034 -Object.keys(_cta).forEach(function (key) {
1035 - if (key === "default" || key === "__esModule") return;
1036 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1037 - if (key in exports && exports[key] === _cta[key]) return;
1038 - Object.defineProperty(exports, key, {
1039 - enumerable: true,
1040 - get: function get() {
1041 - return _cta[key];
1042 - }
1043 - });
1044 -});
1045 -
1046 -/***/ }),
1047 -
1048 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js":
1049 -/*!***********************************************************************************!*\
1050 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js ***!
1051 - \***********************************************************************************/
1052 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1053 -
1054 -"use strict";
1055 -
1056 -
1057 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1058 -Object.defineProperty(exports, "__esModule", ({
1059 - value: true
1060 -}));
1061 -Object.defineProperty(exports, "SidebarMenu", ({
1062 - enumerable: true,
1063 - get: function get() {
1064 - return _sidebarMenu.default;
1065 - }
1066 -}));
1067 -Object.defineProperty(exports, "SidebarMenuItem", ({
1068 - enumerable: true,
1069 - get: function get() {
1070 - return _sidebarMenuItem.default;
1071 - }
1072 -}));
1073 -var _sidebarMenu = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js"));
1074 -var _sidebarMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js"));
1075 -
1076 -/***/ }),
1077 -
1078 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js":
1079 -/*!***********************************************************************************************!*\
1080 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js ***!
1081 - \***********************************************************************************************/
1082 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1083 -
1084 -"use strict";
1085 -
1086 -
1087 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1088 -Object.defineProperty(exports, "__esModule", ({
1089 - value: true
1090 -}));
1091 -exports["default"] = void 0;
1092 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1093 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1094 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1095 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1096 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1097 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1098 -var STORAGE_KEY_PREFIX = 'elementor_sidebar_menu_expanded_v2_';
1099 -var SidebarMenuItem = function SidebarMenuItem(_ref) {
1100 - var item = _ref.item,
1101 - isActive = _ref.isActive,
1102 - children = _ref.children,
1103 - activeChildSlug = _ref.activeChildSlug;
1104 - var hasChildren = !!(children !== null && children !== void 0 && children.length);
1105 - var IconComponent = _shared.ICON_MAP[item.icon] || _shared.DEFAULT_ICON;
1106 - var _useState = (0, _element.useState)(function () {
1107 - if (!hasChildren) {
1108 - return false;
1109 - }
1110 - var storageKey = "".concat(STORAGE_KEY_PREFIX).concat(item.slug);
1111 - var shouldExpand = children.some(function (child) {
1112 - return child.slug === activeChildSlug;
1113 - });
1114 - if (shouldExpand) {
1115 - localStorage.setItem(storageKey, 'true');
1116 - return true;
1117 - }
1118 - var stored = localStorage.getItem(storageKey);
1119 - if (null === stored) {
1120 - return true;
1121 - }
1122 - return 'true' === stored;
1123 - }),
1124 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1125 - isExpanded = _useState2[0],
1126 - setIsExpanded = _useState2[1];
1127 - var handleClick = (0, _element.useCallback)(function () {
1128 - if (hasChildren) {
1129 - setIsExpanded(function (prev) {
1130 - var newState = !prev;
1131 - localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
1132 - return newState;
1133 - });
1134 - } else {
1135 - window.location.href = item.url;
1136 - }
1137 - }, [hasChildren, item.slug, item.url]);
1138 - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
1139 - disablePadding: true,
1140 - dense: true,
1141 - disableGutters: true
1142 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
1143 - onClick: handleClick,
1144 - selected: isActive && !hasChildren
1145 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null)), /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1146 - primary: item.label,
1147 - primaryTypographyProps: {
1148 - variant: 'body2'
1149 - }
1150 - }), hasChildren && /*#__PURE__*/_react.default.createElement(_shared.ExpandIcon, {
1151 - expanded: isExpanded
1152 - }))), hasChildren && /*#__PURE__*/_react.default.createElement(_ui.Collapse, {
1153 - in: isExpanded,
1154 - timeout: "auto",
1155 - unmountOnExit: true
1156 - }, /*#__PURE__*/_react.default.createElement(_ui.List, {
1157 - disablePadding: true
1158 - }, children.map(function (childItem) {
1159 - return /*#__PURE__*/_react.default.createElement(_shared.ChildListItem, {
1160 - key: childItem.slug,
1161 - disablePadding: true,
1162 - dense: true,
1163 - disableGutters: true
1164 - }, /*#__PURE__*/_react.default.createElement(_shared.ChildMenuItemButton, {
1165 - component: "a",
1166 - href: childItem.url,
1167 - selected: childItem.slug === activeChildSlug
1168 - }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1169 - primary: childItem.label,
1170 - primaryTypographyProps: {
1171 - variant: 'body2',
1172 - color: 'text.secondary'
1173 - }
1174 - })));
1175 - }))));
1176 -};
1177 -SidebarMenuItem.propTypes = {
1178 - item: _propTypes.default.object.isRequired,
1179 - isActive: _propTypes.default.bool.isRequired,
1180 - children: _propTypes.default.array,
1181 - activeChildSlug: _propTypes.default.string.isRequired
1182 -};
1183 -var _default = exports["default"] = SidebarMenuItem;
1184 -
1185 -/***/ }),
1186 -
1187 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js":
1188 -/*!******************************************************************************************!*\
1189 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js ***!
1190 - \******************************************************************************************/
1191 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1192 -
1193 -"use strict";
1194 -
1195 -
1196 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1197 -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
1198 -Object.defineProperty(exports, "__esModule", ({
1199 - value: true
1200 -}));
1201 -exports["default"] = void 0;
1202 -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
1203 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1204 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1205 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1206 -var _menuActiveStateResolver = _interopRequireDefault(__webpack_require__(/*! ../../classes/menu-active-state-resolver */ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js"));
1207 -var _sidebarMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js"));
1208 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1209 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
1210 -var SidebarMenu = function SidebarMenu(_ref) {
1211 - var menuItems = _ref.menuItems,
1212 - level4Groups = _ref.level4Groups,
1213 - activeMenuSlug = _ref.activeMenuSlug,
1214 - activeChildSlug = _ref.activeChildSlug;
1215 - var activeStateResolver = (0, _element.useMemo)(function () {
1216 - return new _menuActiveStateResolver.default(activeMenuSlug, activeChildSlug);
1217 - }, [activeMenuSlug, activeChildSlug]);
1218 - var getChildren = function getChildren(item) {
1219 - if (!item.group_id) {
1220 - return null;
1221 - }
1222 - var group = level4Groups[item.group_id];
1223 - if (!group || !group.items || !group.items.length) {
1224 - return null;
1225 - }
1226 - return group.items;
1227 - };
1228 - return /*#__PURE__*/_react.default.createElement(_shared.MenuList, null, menuItems.map(function (item) {
1229 - return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
1230 - key: item.slug
1231 - }, item.has_divider_before && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
1232 - sx: {
1233 - my: 1
1234 - }
1235 - }), /*#__PURE__*/_react.default.createElement(_sidebarMenuItem.default, {
1236 - item: item,
1237 - isActive: activeStateResolver.isMenuActive(item),
1238 - activeChildSlug: activeChildSlug
1239 - }, getChildren(item)));
1240 - }));
1241 -};
1242 -SidebarMenu.propTypes = {
1243 - menuItems: _propTypes.default.array.isRequired,
1244 - level4Groups: _propTypes.default.object.isRequired,
1245 - activeMenuSlug: _propTypes.default.string.isRequired,
1246 - activeChildSlug: _propTypes.default.string.isRequired
1247 -};
1248 -var _default = exports["default"] = SidebarMenu;
1249 -
1250 -/***/ }),
1251 -
1252 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js":
1253 -/*!****************************************************************************************!*\
1254 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js ***!
1255 - \****************************************************************************************/
1256 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1257 -
1258 -"use strict";
1259 -
1260 -
1261 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1262 -Object.defineProperty(exports, "__esModule", ({
1263 - value: true
1264 -}));
1265 -exports.ICON_MAP = exports.DEFAULT_ICON = void 0;
1266 -var _AdjustmentsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/AdjustmentsIcon */ "@elementor/icons/AdjustmentsIcon"));
1267 -var _FolderIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/FolderIcon */ "@elementor/icons/FolderIcon"));
1268 -var _RocketIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/RocketIcon */ "@elementor/icons/RocketIcon"));
1269 -var _HomeIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/HomeIcon */ "@elementor/icons/HomeIcon"));
1270 -var _SendIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SendIcon */ "@elementor/icons/SendIcon"));
1271 -var _SettingsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SettingsIcon */ "@elementor/icons/SettingsIcon"));
1272 -var _UsersIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/UsersIcon */ "@elementor/icons/UsersIcon"));
1273 -var _PlugIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/PlugIcon */ "@elementor/icons/PlugIcon"));
1274 -var _tool = _interopRequireDefault(__webpack_require__(/*! ../icons/tool */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js"));
1275 -var _FileSettingsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/FileSettingsIcon */ "@elementor/icons/FileSettingsIcon"));
1276 -var ICON_MAP = exports.ICON_MAP = {
1277 - adjustments: _AdjustmentsIcon.default,
1278 - folder: _FolderIcon.default,
1279 - home: _RocketIcon.default,
1280 - send: _SendIcon.default,
1281 - settings: _SettingsIcon.default,
1282 - tool: _tool.default,
1283 - users: _UsersIcon.default,
1284 - extension: _PlugIcon.default,
1285 - 'file-settings': _FileSettingsIcon.default
1286 -};
1287 -var DEFAULT_ICON = exports.DEFAULT_ICON = _HomeIcon.default;
1288 -
1289 -/***/ }),
1290 -
1291 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js":
1292 -/*!*************************************************************************************!*\
1293 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js ***!
1294 - \*************************************************************************************/
1295 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1296 -
1297 -"use strict";
1298 -
1299 -
1300 -Object.defineProperty(exports, "__esModule", ({
1301 - value: true
1302 -}));
1303 -var _iconMap = __webpack_require__(/*! ./icon-map */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js");
1304 -Object.keys(_iconMap).forEach(function (key) {
1305 - if (key === "default" || key === "__esModule") return;
1306 - if (key in exports && exports[key] === _iconMap[key]) return;
1307 - Object.defineProperty(exports, key, {
1308 - enumerable: true,
1309 - get: function get() {
1310 - return _iconMap[key];
1311 - }
1312 - });
1313 -});
1314 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js");
1315 -Object.keys(_styledComponents).forEach(function (key) {
1316 - if (key === "default" || key === "__esModule") return;
1317 - if (key in exports && exports[key] === _styledComponents[key]) return;
1318 - Object.defineProperty(exports, key, {
1319 - enumerable: true,
1320 - get: function get() {
1321 - return _styledComponents[key];
1322 - }
1323 - });
1324 -});
1325 -
1326 -/***/ }),
1327 -
1328 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js":
1329 -/*!*************************************************************************************************!*\
1330 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js ***!
1331 - \*************************************************************************************************/
1332 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1333 -
1334 -"use strict";
1335 -
1336 -
1337 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1338 -Object.defineProperty(exports, "__esModule", ({
1339 - value: true
1340 -}));
1341 -exports.StyledPopover = exports.SiteIconBox = exports.ScrollableContent = exports.PopoverTitle = exports.PopoverListItemButton = exports.PopoverContent = exports.NavContainer = exports.MenuList = exports.MenuItemButton = exports.MenuIcon = exports.ExpandIcon = exports.CollapsedMenuItemContainer = exports.CollapsedIconButton = exports.CollapsedHeaderContainer = exports.CollapseButton = exports.ChildMenuItemButton = exports.ChildListItem = void 0;
1342 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1343 -var _ChevronDownSmallIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronDownSmallIcon */ "@elementor/icons/ChevronDownSmallIcon"));
1344 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../../../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
1345 -var NavContainer = exports.NavContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
1346 - var theme = _ref.theme;
1347 - return {
1348 - display: 'flex',
1349 - flexDirection: 'column',
1350 - height: '100%',
1351 - backgroundColor: theme.palette.background.paper,
1352 - borderInlineEnd: "1px solid ".concat(theme.palette.divider)
1353 - };
1354 -});
1355 -var SiteIconBox = exports.SiteIconBox = (0, _ui.styled)(_ui.Box)(function (_ref2) {
1356 - var theme = _ref2.theme;
1357 - return {
1358 - width: 40,
1359 - height: 40,
1360 - borderRadius: theme.shape.borderRadius * 2,
1361 - border: "1px solid ".concat(theme.palette.divider),
1362 - display: 'flex',
1363 - alignItems: 'center',
1364 - justifyContent: 'center',
1365 - backgroundColor: theme.palette.background.paper,
1366 - color: theme.palette.action.active,
1367 - '& svg': {
1368 - fontSize: 24
1369 - }
1370 - };
1371 -});
1372 -var CollapseButton = exports.CollapseButton = (0, _ui.styled)(_ui.IconButton, {
1373 - shouldForwardProp: function shouldForwardProp(prop) {
1374 - return prop !== 'expanded';
1375 - }
1376 -})(function (_ref3) {
1377 - var theme = _ref3.theme,
1378 - expanded = _ref3.expanded;
1379 - var isRtlLanguage = (0, _isRtl.default)();
1380 - var transform = 'none';
1381 - if (expanded && isRtlLanguage) {
1382 - transform = 'rotate(180deg) scaleX(-1)';
1383 - } else if (expanded) {
1384 - transform = 'rotate(180deg)';
1385 - } else if (isRtlLanguage) {
1386 - transform = 'scaleX(-1)';
1387 - }
1388 - return {
1389 - position: 'absolute',
1390 - insetInlineEnd: -28,
1391 - bottom: -12,
1392 - width: 24,
1393 - height: 24,
1394 - backgroundColor: theme.palette.background.paper,
1395 - border: "1px solid ".concat(theme.palette.divider),
1396 - color: theme.palette.action.active,
1397 - zIndex: 1,
1398 - '&:hover': {
1399 - backgroundColor: theme.palette.background.paper
1400 - },
1401 - '& svg': {
1402 - fontSize: 16,
1403 - transform: transform
1404 - }
1405 - };
1406 -});
1407 -var ScrollableContent = exports.ScrollableContent = (0, _ui.styled)(_ui.Box)({
1408 - flex: 1,
1409 - overflowY: 'auto',
1410 - overflowX: 'hidden'
1411 -});
1412 -var MenuList = exports.MenuList = (0, _ui.styled)(_ui.List)(function (_ref4) {
1413 - var theme = _ref4.theme;
1414 - return {
1415 - padding: theme.spacing(2)
1416 - };
1417 -});
1418 -var MenuItemButton = exports.MenuItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref5) {
1419 - var theme = _ref5.theme;
1420 - return {
1421 - paddingLeft: theme.spacing(1),
1422 - paddingRight: theme.spacing(1),
1423 - marginBottom: 0,
1424 - paddingBottom: theme.spacing(0.5),
1425 - whiteSpace: 'nowrap',
1426 - justifyContent: 'center',
1427 - borderRadius: 4
1428 - };
1429 -});
1430 -var MenuIcon = exports.MenuIcon = (0, _ui.styled)(_ui.ListItemIcon)(function (_ref6) {
1431 - var theme = _ref6.theme;
1432 - return {
1433 - minWidth: 'auto',
1434 - color: theme.palette.text.primary,
1435 - margin: 0,
1436 - display: 'flex',
1437 - justifyContent: 'center',
1438 - '& svg': {
1439 - fontSize: 20
1440 - }
1441 - };
1442 -});
1443 -var ChildMenuItemButton = exports.ChildMenuItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref7) {
1444 - var theme = _ref7.theme;
1445 - return {
1446 - paddingLeft: theme.spacing(6),
1447 - paddingRight: theme.spacing(2),
1448 - minHeight: 32,
1449 - whiteSpace: 'nowrap',
1450 - borderRadius: 4
1451 - };
1452 -});
1453 -var ChildListItem = exports.ChildListItem = (0, _ui.styled)(_ui.ListItem)({
1454 - maxHeight: 32
1455 -});
1456 -var ExpandIcon = exports.ExpandIcon = (0, _ui.styled)(_ChevronDownSmallIcon.default, {
1457 - shouldForwardProp: function shouldForwardProp(prop) {
1458 - return prop !== 'expanded';
1459 - }
1460 -})(function (_ref8) {
1461 - var expanded = _ref8.expanded;
1462 - return {
1463 - fontSize: 20,
1464 - transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)',
1465 - transition: 'transform 0.2s'
1466 - };
1467 -});
1468 -var CollapsedMenuItemContainer = exports.CollapsedMenuItemContainer = (0, _ui.styled)(_ui.Box)(function (_ref9) {
1469 - var theme = _ref9.theme;
1470 - return {
1471 - display: 'flex',
1472 - justifyContent: 'center',
1473 - marginBottom: theme.spacing(0.5)
1474 - };
1475 -});
1476 -var CollapsedIconButton = exports.CollapsedIconButton = (0, _ui.styled)(_ui.IconButton, {
1477 - shouldForwardProp: function shouldForwardProp(prop) {
1478 - return prop !== 'isHighlighted';
1479 - }
1480 -})(function (_ref0) {
1481 - var theme = _ref0.theme,
1482 - isHighlighted = _ref0.isHighlighted;
1483 - return {
1484 - width: 36,
1485 - height: 36,
1486 - borderRadius: theme.shape.borderRadius,
1487 - backgroundColor: isHighlighted ? theme.palette.action.selected : 'transparent',
1488 - color: theme.palette.text.primary,
1489 - '&:hover': {
1490 - backgroundColor: theme.palette.action.hover
1491 - },
1492 - '& svg': {
1493 - fontSize: 20
1494 - }
1495 - };
1496 -});
1497 -var PopoverTitle = exports.PopoverTitle = (0, _ui.styled)(_ui.ListSubheader)(function (_ref1) {
1498 - var theme = _ref1.theme;
1499 - return {
1500 - color: theme.palette.text.tertiary,
1501 - fontSize: 12,
1502 - fontWeight: 400,
1503 - height: 28
1504 - };
1505 -});
1506 -var PopoverContent = exports.PopoverContent = (0, _ui.styled)(_ui.Box)(function (_ref10) {
1507 - var theme = _ref10.theme;
1508 - return {
1509 - paddingTop: theme.spacing(1),
1510 - paddingBottom: theme.spacing(1)
1511 - };
1512 -});
1513 -var CollapsedHeaderContainer = exports.CollapsedHeaderContainer = (0, _ui.styled)(_ui.Box)(function (_ref11) {
1514 - var theme = _ref11.theme;
1515 - return {
1516 - position: 'relative',
1517 - display: 'flex',
1518 - justifyContent: 'center',
1519 - alignItems: 'center',
1520 - height: 80,
1521 - marginLeft: theme.spacing(2),
1522 - marginRight: theme.spacing(2),
1523 - borderBottom: "1px solid ".concat(theme.palette.divider)
1524 - };
1525 -});
1526 -var PopoverListItemButton = exports.PopoverListItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref12) {
1527 - var theme = _ref12.theme;
1528 - return {
1529 - paddingLeft: theme.spacing(2),
1530 - paddingRight: theme.spacing(2),
1531 - paddingTop: theme.spacing(0.5),
1532 - paddingBottom: theme.spacing(0.5),
1533 - borderRadius: 4
1534 - };
1535 -});
1536 -var StyledPopover = exports.StyledPopover = (0, _ui.styled)(_ui.Popover)(function (_ref13) {
1537 - var theme = _ref13.theme;
1538 - return {
1539 - pointerEvents: 'none',
1540 - '& .MuiPaper-root': {
1541 - marginLeft: theme.spacing(1),
1542 - minWidth: 180,
1543 - borderRadius: theme.shape.borderRadius,
1544 - pointerEvents: 'auto'
1545 - }
1546 - };
1547 -});
1548 -
1549 -/***/ }),
1550 -
1551 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js":
1552 -/*!*******************************************************************************************!*\
1553 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js ***!
1554 - \*******************************************************************************************/
1555 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1556 -
1557 -"use strict";
1558 -
1559 -
1560 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1561 -Object.defineProperty(exports, "__esModule", ({
1562 - value: true
1563 -}));
1564 -exports["default"] = void 0;
1565 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1566 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1567 -var _ChevronRightIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronRightIcon */ "@elementor/icons/ChevronRightIcon"));
1568 -var _editor = _interopRequireDefault(__webpack_require__(/*! ./icons/editor */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js"));
1569 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1570 -var _collapsedMenu = __webpack_require__(/*! ./collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js");
1571 -var _cta = __webpack_require__(/*! ./cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js");
1572 -var _header = __webpack_require__(/*! ./header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js");
1573 -var _menu = __webpack_require__(/*! ./menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js");
1574 -var _shared = __webpack_require__(/*! ./shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1575 -var _useSidebarCollapse2 = __webpack_require__(/*! ./hooks/use-sidebar-collapse */ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js");
1576 -var _useAdminMenuOffset = __webpack_require__(/*! ./hooks/use-admin-menu-offset */ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js");
1577 -var SidebarNavigation = function SidebarNavigation(_ref) {
1578 - var config = _ref.config;
1579 - var _useSidebarCollapse = (0, _useSidebarCollapse2.useSidebarCollapse)(),
1580 - isCollapsed = _useSidebarCollapse.isCollapsed,
1581 - toggleCollapse = _useSidebarCollapse.toggleCollapse;
1582 - (0, _useAdminMenuOffset.useAdminMenuOffset)();
1583 - if (isCollapsed) {
1584 - return /*#__PURE__*/_react.default.createElement(_shared.NavContainer, {
1585 - component: "nav",
1586 - collapsed: true
1587 - }, /*#__PURE__*/_react.default.createElement(_shared.CollapsedHeaderContainer, null, /*#__PURE__*/_react.default.createElement(_shared.SiteIconBox, null, /*#__PURE__*/_react.default.createElement(_editor.default, null)), /*#__PURE__*/_react.default.createElement(_shared.CollapseButton, {
1588 - onClick: toggleCollapse,
1589 - size: "small"
1590 - }, /*#__PURE__*/_react.default.createElement(_ChevronRightIcon.default, null))), /*#__PURE__*/_react.default.createElement(_shared.ScrollableContent, null, /*#__PURE__*/_react.default.createElement(_collapsedMenu.SidebarCollapsedMenu, {
1591 - menuItems: config.menuItems,
1592 - level4Groups: config.level4Groups,
1593 - activeMenuSlug: config.activeMenuSlug,
1594 - activeChildSlug: config.activeChildSlug
1595 - })), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_cta.SidebarUpgradeCta, {
1596 - upgradeUrl: config.upgradeUrl,
1597 - upgradeText: config.upgradeText,
1598 - hasPro: config.hasPro,
1599 - collapsed: true
1600 - }));
1601 - }
1602 - return /*#__PURE__*/_react.default.createElement(_shared.NavContainer, {
1603 - component: "nav"
1604 - }, /*#__PURE__*/_react.default.createElement(_header.SidebarHeader, {
1605 - siteTitle: config.siteTitle,
1606 - onCollapse: toggleCollapse
1607 - }), /*#__PURE__*/_react.default.createElement(_shared.ScrollableContent, null, /*#__PURE__*/_react.default.createElement(_menu.SidebarMenu, {
1608 - menuItems: config.menuItems,
1609 - level4Groups: config.level4Groups,
1610 - activeMenuSlug: config.activeMenuSlug,
1611 - activeChildSlug: config.activeChildSlug
1612 - })), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_cta.SidebarUpgradeCta, {
1613 - upgradeUrl: config.upgradeUrl,
1614 - upgradeText: config.upgradeText,
1615 - hasPro: config.hasPro
1616 - }));
1617 -};
1618 -SidebarNavigation.propTypes = {
1619 - config: _propTypes.default.object.isRequired
1620 -};
1621 -var _default = exports["default"] = SidebarNavigation;
1622 -
1623 -/***/ }),
1624 -
1625 -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1626 -/*!******************************************************************!*\
1627 - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1628 - \******************************************************************/
1629 -/***/ ((module) => {
1630 -
1631 -function _arrayLikeToArray(r, a) {
1632 - (null == a || a > r.length) && (a = r.length);
1633 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1634 - return n;
1635 -}
1636 -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1637 -
1638 -/***/ }),
1639 -
1640 -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1641 -/*!****************************************************************!*\
1642 - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1643 - \****************************************************************/
1644 -/***/ ((module) => {
1645 -
1646 -function _arrayWithHoles(r) {
1647 - if (Array.isArray(r)) return r;
1648 -}
1649 -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1650 -
1651 -/***/ }),
1652 -
1653 -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
1654 -/*!****************************************************************!*\
1655 - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1656 - \****************************************************************/
1657 -/***/ ((module) => {
1658 -
1659 -function _classCallCheck(a, n) {
1660 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1661 -}
1662 -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1663 -
1664 -/***/ }),
1665 -
1666 -/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
1667 -/*!*************************************************************!*\
1668 - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
1669 - \*************************************************************/
1670 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1671 -
1672 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1673 -function _defineProperties(e, r) {
1674 - for (var t = 0; t < r.length; t++) {
1675 - var o = r[t];
1676 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
1677 - }
1678 -}
1679 -function _createClass(e, r, t) {
1680 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
1681 - writable: !1
1682 - }), e;
1683 -}
1684 -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1685 -
1686 -/***/ }),
1687 -
1688 -/***/ "../node_modules/@babel/runtime/helpers/extends.js":
1689 -/*!*********************************************************!*\
1690 - !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
1691 - \*********************************************************/
1692 -/***/ ((module) => {
1693 -
1694 -function _extends() {
1695 - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
1696 - for (var e = 1; e < arguments.length; e++) {
1697 - var t = arguments[e];
1698 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1699 - }
1700 - return n;
1701 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
1702 -}
1703 -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
1704 -
1705 -/***/ }),
1706 -
1707 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1708 -/*!***********************************************************************!*\
1709 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1710 - \***********************************************************************/
1711 -/***/ ((module) => {
1712 -
1713 -function _interopRequireDefault(e) {
1714 - return e && e.__esModule ? e : {
1715 - "default": e
1716 - };
1717 -}
1718 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1719 -
1720 -/***/ }),
1721 -
1722 -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1723 -/*!**********************************************************************!*\
1724 - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1725 - \**********************************************************************/
1726 -/***/ ((module) => {
1727 -
1728 -function _iterableToArrayLimit(r, l) {
1729 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1730 - if (null != t) {
1731 - var e,
1732 - n,
1733 - i,
1734 - u,
1735 - a = [],
1736 - f = !0,
1737 - o = !1;
1738 - try {
1739 - if (i = (t = t.call(r)).next, 0 === l) {
1740 - if (Object(t) !== t) return;
1741 - f = !1;
1742 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1743 - } catch (r) {
1744 - o = !0, n = r;
1745 - } finally {
1746 - try {
1747 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1748 - } finally {
1749 - if (o) throw n;
1750 - }
1751 - }
1752 - return a;
1753 - }
1754 -}
1755 -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1756 -
1757 -/***/ }),
1758 -
1759 -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
1760 -/*!*****************************************************************!*\
1761 - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1762 - \*****************************************************************/
1763 -/***/ ((module) => {
1764 -
1765 -function _nonIterableRest() {
1766 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1767 -}
1768 -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1769 -
1770 -/***/ }),
1771 -
1772 -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
1773 -/*!***************************************************************!*\
1774 - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
1775 - \***************************************************************/
1776 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1777 -
1778 -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
1779 -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
1780 -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
1781 -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
1782 -function _slicedToArray(r, e) {
1783 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
1784 -}
1785 -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1786 -
1787 -/***/ }),
1788 -
1789 -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
1790 -/*!*************************************************************!*\
1791 - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
1792 - \*************************************************************/
1793 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1794 -
1795 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1796 -function toPrimitive(t, r) {
1797 - if ("object" != _typeof(t) || !t) return t;
1798 - var e = t[Symbol.toPrimitive];
1799 - if (void 0 !== e) {
1800 - var i = e.call(t, r || "default");
1801 - if ("object" != _typeof(i)) return i;
1802 - throw new TypeError("@@toPrimitive must return a primitive value.");
1803 - }
1804 - return ("string" === r ? String : Number)(t);
1805 -}
1806 -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
1807 -
1808 -/***/ }),
1809 -
1810 -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
1811 -/*!***************************************************************!*\
1812 - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
1813 - \***************************************************************/
1814 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1815 -
1816 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1817 -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
1818 -function toPropertyKey(t) {
1819 - var i = toPrimitive(t, "string");
1820 - return "symbol" == _typeof(i) ? i : i + "";
1821 -}
1822 -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
1823 -
1824 -/***/ }),
1825 -
1826 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
1827 -/*!********************************************************!*\
1828 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
1829 - \********************************************************/
1830 -/***/ ((module) => {
1831 -
1832 -function _typeof(o) {
1833 - "@babel/helpers - typeof";
1834 -
1835 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1836 - return typeof o;
1837 - } : function (o) {
1838 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1839 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
1840 -}
1841 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1842 -
1843 -/***/ }),
1844 -
1845 -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
1846 -/*!****************************************************************************!*\
1847 - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
1848 - \****************************************************************************/
1849 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1850 -
1851 -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
1852 -function _unsupportedIterableToArray(r, a) {
1853 - if (r) {
1854 - if ("string" == typeof r) return arrayLikeToArray(r, a);
1855 - var t = {}.toString.call(r).slice(8, -1);
1856 - 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;
1857 - }
1858 -}
1859 -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1860 -
1861 -/***/ }),
1862 -
1863 -/***/ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js":
1864 -/*!*************************************************************************************!*\
1865 - !*** ../node_modules/@wordpress/element/build-module/create-interpolate-element.js ***!
1866 - \*************************************************************************************/
1867 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1868 -
1869 -"use strict";
1870 -__webpack_require__.r(__webpack_exports__);
1871 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1872 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1873 -/* harmony export */ });
1874 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
1875 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
334 +//#endregion
335 +//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
1876 336 /**
1877 - * Internal dependencies
1878 - */
337 + * Copyright (c) 2013-present, Facebook, Inc.
338 + *
339 + * This source code is licensed under the MIT license found in the
340 + * LICENSE file in the root directory of this source tree.
341 + */
342 + var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
343 + var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
344 + module.exports = ReactPropTypesSecret;
345 + }));
1879 346
347 +//#endregion
348 +//#region node_modules/prop-types/lib/has.js
349 + var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
350 + module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
351 + }));
1880 352
353 +//#endregion
354 +//#region node_modules/prop-types/checkPropTypes.js
1881 355 /**
1882 - * Object containing a React element.
1883 - *
1884 - * @typedef {import('react').ReactElement} Element
1885 - */
356 + * Copyright (c) 2013-present, Facebook, Inc.
357 + *
358 + * This source code is licensed under the MIT license found in the
359 + * LICENSE file in the root directory of this source tree.
360 + */
361 + var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
362 + var printWarning = function() {};
363 + var ReactPropTypesSecret = require_ReactPropTypesSecret();
364 + var loggedTypeFailures = {};
365 + var has = require_has();
366 + printWarning = function(text) {
367 + var message = "Warning: " + text;
368 + if (typeof console !== "undefined") console.error(message);
369 + try {
370 + throw new Error(message);
371 + } catch (x) {}
372 + };
373 + /**
374 + * Assert that the values match with the type specs.
375 + * Error messages are memorized and will only be shown once.
376 + *
377 + * @param {object} typeSpecs Map of name to a ReactPropType
378 + * @param {object} values Runtime values that need to be type-checked
379 + * @param {string} location e.g. "prop", "context", "child context"
380 + * @param {string} componentName Name of the component for error messages.
381 + * @param {?Function} getStack Returns the component stack.
382 + * @private
383 + */
384 + function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
385 + for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
386 + var error;
387 + try {
388 + if (typeof typeSpecs[typeSpecName] !== "function") {
389 + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
390 + err.name = "Invariant Violation";
391 + throw err;
392 + }
393 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
394 + } catch (ex) {
395 + error = ex;
396 + }
397 + if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
398 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
399 + loggedTypeFailures[error.message] = true;
400 + var stack = getStack ? getStack() : "";
401 + printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
402 + }
403 + }
404 + }
405 + /**
406 + * Resets warning cache when testing.
407 + *
408 + * @private
409 + */
410 + checkPropTypes.resetWarningCache = function() {
411 + loggedTypeFailures = {};
412 + };
413 + module.exports = checkPropTypes;
414 + }));
1886 415
1887 -let indoc, offset, output, stack;
1888 -
416 +//#endregion
417 +//#region node_modules/prop-types/factoryWithTypeCheckers.js
1889 418 /**
1890 - * Matches tags in the localized string
1891 - *
1892 - * This is used for extracting the tag pattern groups for parsing the localized
1893 - * string and along with the map converting it to a react element.
1894 - *
1895 - * There are four references extracted using this tokenizer:
1896 - *
1897 - * match: Full match of the tag (i.e. <strong>, </strong>, <br/>)
1898 - * isClosing: The closing slash, if it exists.
1899 - * name: The name portion of the tag (strong, br) (if )
1900 - * isSelfClosed: The slash on a self closing tag, if it exists.
1901 - *
1902 - * @type {RegExp}
1903 - */
1904 -const tokenizer = /<(\/)?(\w+)\s*(\/)?>/g;
419 + * Copyright (c) 2013-present, Facebook, Inc.
420 + *
421 + * This source code is licensed under the MIT license found in the
422 + * LICENSE file in the root directory of this source tree.
423 + */
424 + var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
425 + var ReactIs = require_react_is();
426 + var assign = require_object_assign();
427 + var ReactPropTypesSecret = require_ReactPropTypesSecret();
428 + var has = require_has();
429 + var checkPropTypes = require_checkPropTypes();
430 + var printWarning = function() {};
431 + printWarning = function(text) {
432 + var message = "Warning: " + text;
433 + if (typeof console !== "undefined") console.error(message);
434 + try {
435 + throw new Error(message);
436 + } catch (x) {}
437 + };
438 + function emptyFunctionThatReturnsNull() {
439 + return null;
440 + }
441 + module.exports = function(isValidElement, throwOnDirectAccess) {
442 + var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
443 + var FAUX_ITERATOR_SYMBOL = "@@iterator";
444 + /**
445 + * Returns the iterator method function contained on the iterable object.
446 + *
447 + * Be sure to invoke the function with the iterable as context:
448 + *
449 + * var iteratorFn = getIteratorFn(myIterable);
450 + * if (iteratorFn) {
451 + * var iterator = iteratorFn.call(myIterable);
452 + * ...
453 + * }
454 + *
455 + * @param {?object} maybeIterable
456 + * @return {?function}
457 + */
458 + function getIteratorFn(maybeIterable) {
459 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
460 + if (typeof iteratorFn === "function") return iteratorFn;
461 + }
462 + /**
463 + * Collection of methods that allow declaration and validation of props that are
464 + * supplied to React components. Example usage:
465 + *
466 + * var Props = require('ReactPropTypes');
467 + * var MyArticle = React.createClass({
468 + * propTypes: {
469 + * // An optional string prop named "description".
470 + * description: Props.string,
471 + *
472 + * // A required enum prop named "category".
473 + * category: Props.oneOf(['News','Photos']).isRequired,
474 + *
475 + * // A prop named "dialog" that requires an instance of Dialog.
476 + * dialog: Props.instanceOf(Dialog).isRequired
477 + * },
478 + * render: function() { ... }
479 + * });
480 + *
481 + * A more formal specification of how these methods are used:
482 + *
483 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
484 + * decl := ReactPropTypes.{type}(.isRequired)?
485 + *
486 + * Each and every declaration produces a function with the same signature. This
487 + * allows the creation of custom validation functions. For example:
488 + *
489 + * var MyLink = React.createClass({
490 + * propTypes: {
491 + * // An optional string or URI prop named "href".
492 + * href: function(props, propName, componentName) {
493 + * var propValue = props[propName];
494 + * if (propValue != null && typeof propValue !== 'string' &&
495 + * !(propValue instanceof URI)) {
496 + * return new Error(
497 + * 'Expected a string or an URI for ' + propName + ' in ' +
498 + * componentName
499 + * );
500 + * }
501 + * }
502 + * },
503 + * render: function() {...}
504 + * });
505 + *
506 + * @internal
507 + */
508 + var ANONYMOUS = "<<anonymous>>";
509 + var ReactPropTypes = {
510 + array: createPrimitiveTypeChecker("array"),
511 + bigint: createPrimitiveTypeChecker("bigint"),
512 + bool: createPrimitiveTypeChecker("boolean"),
513 + func: createPrimitiveTypeChecker("function"),
514 + number: createPrimitiveTypeChecker("number"),
515 + object: createPrimitiveTypeChecker("object"),
516 + string: createPrimitiveTypeChecker("string"),
517 + symbol: createPrimitiveTypeChecker("symbol"),
518 + any: createAnyTypeChecker(),
519 + arrayOf: createArrayOfTypeChecker,
520 + element: createElementTypeChecker(),
521 + elementType: createElementTypeTypeChecker(),
522 + instanceOf: createInstanceTypeChecker,
523 + node: createNodeChecker(),
524 + objectOf: createObjectOfTypeChecker,
525 + oneOf: createEnumTypeChecker,
526 + oneOfType: createUnionTypeChecker,
527 + shape: createShapeTypeChecker,
528 + exact: createStrictShapeTypeChecker
529 + };
530 + /**
531 + * inlined Object.is polyfill to avoid requiring consumers ship their own
532 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
533 + */
534 + function is(x, y) {
535 + if (x === y) return x !== 0 || 1 / x === 1 / y;
536 + else return x !== x && y !== y;
537 + }
538 + /**
539 + * We use an Error-like object for backward compatibility as people may call
540 + * PropTypes directly and inspect their output. However, we don't use real
541 + * Errors anymore. We don't inspect their stack anyway, and creating them
542 + * is prohibitively expensive if they are created too often, such as what
543 + * happens in oneOfType() for any type before the one that matched.
544 + */
545 + function PropTypeError(message, data) {
546 + this.message = message;
547 + this.data = data && typeof data === "object" ? data : {};
548 + this.stack = "";
549 + }
550 + PropTypeError.prototype = Error.prototype;
551 + function createChainableTypeChecker(validate) {
552 + var manualPropTypeCallCache = {};
553 + var manualPropTypeWarningCount = 0;
554 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
555 + componentName = componentName || ANONYMOUS;
556 + propFullName = propFullName || propName;
557 + if (secret !== ReactPropTypesSecret) {
558 + if (throwOnDirectAccess) {
559 + var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
560 + err.name = "Invariant Violation";
561 + throw err;
562 + } else if (typeof console !== "undefined") {
563 + var cacheKey = componentName + ":" + propName;
564 + if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
565 + printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
566 + manualPropTypeCallCache[cacheKey] = true;
567 + manualPropTypeWarningCount++;
568 + }
569 + }
570 + }
571 + if (props[propName] == null) {
572 + if (isRequired) {
573 + if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
574 + return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
575 + }
576 + return null;
577 + } else return validate(props, propName, componentName, location, propFullName);
578 + }
579 + var chainedCheckType = checkType.bind(null, false);
580 + chainedCheckType.isRequired = checkType.bind(null, true);
581 + return chainedCheckType;
582 + }
583 + function createPrimitiveTypeChecker(expectedType) {
584 + function validate(props, propName, componentName, location, propFullName, secret) {
585 + var propValue = props[propName];
586 + if (getPropType(propValue) !== expectedType) {
587 + var preciseType = getPreciseType(propValue);
588 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
589 + }
590 + return null;
591 + }
592 + return createChainableTypeChecker(validate);
593 + }
594 + function createAnyTypeChecker() {
595 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
596 + }
597 + function createArrayOfTypeChecker(typeChecker) {
598 + function validate(props, propName, componentName, location, propFullName) {
599 + if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
600 + var propValue = props[propName];
601 + if (!Array.isArray(propValue)) {
602 + var propType = getPropType(propValue);
603 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
604 + }
605 + for (var i = 0; i < propValue.length; i++) {
606 + var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
607 + if (error instanceof Error) return error;
608 + }
609 + return null;
610 + }
611 + return createChainableTypeChecker(validate);
612 + }
613 + function createElementTypeChecker() {
614 + function validate(props, propName, componentName, location, propFullName) {
615 + var propValue = props[propName];
616 + if (!isValidElement(propValue)) {
617 + var propType = getPropType(propValue);
618 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
619 + }
620 + return null;
621 + }
622 + return createChainableTypeChecker(validate);
623 + }
624 + function createElementTypeTypeChecker() {
625 + function validate(props, propName, componentName, location, propFullName) {
626 + var propValue = props[propName];
627 + if (!ReactIs.isValidElementType(propValue)) {
628 + var propType = getPropType(propValue);
629 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
630 + }
631 + return null;
632 + }
633 + return createChainableTypeChecker(validate);
634 + }
635 + function createInstanceTypeChecker(expectedClass) {
636 + function validate(props, propName, componentName, location, propFullName) {
637 + if (!(props[propName] instanceof expectedClass)) {
638 + var expectedClassName = expectedClass.name || ANONYMOUS;
639 + var actualClassName = getClassName(props[propName]);
640 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
641 + }
642 + return null;
643 + }
644 + return createChainableTypeChecker(validate);
645 + }
646 + function createEnumTypeChecker(expectedValues) {
647 + if (!Array.isArray(expectedValues)) {
648 + if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
649 + else printWarning("Invalid argument supplied to oneOf, expected an array.");
650 + return emptyFunctionThatReturnsNull;
651 + }
652 + function validate(props, propName, componentName, location, propFullName) {
653 + var propValue = props[propName];
654 + for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
655 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
656 + if (getPreciseType(value) === "symbol") return String(value);
657 + return value;
658 + });
659 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
660 + }
661 + return createChainableTypeChecker(validate);
662 + }
663 + function createObjectOfTypeChecker(typeChecker) {
664 + function validate(props, propName, componentName, location, propFullName) {
665 + if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
666 + var propValue = props[propName];
667 + var propType = getPropType(propValue);
668 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
669 + for (var key in propValue) if (has(propValue, key)) {
670 + var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
671 + if (error instanceof Error) return error;
672 + }
673 + return null;
674 + }
675 + return createChainableTypeChecker(validate);
676 + }
677 + function createUnionTypeChecker(arrayOfTypeCheckers) {
678 + if (!Array.isArray(arrayOfTypeCheckers)) {
679 + printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
680 + return emptyFunctionThatReturnsNull;
681 + }
682 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
683 + var checker = arrayOfTypeCheckers[i];
684 + if (typeof checker !== "function") {
685 + printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
686 + return emptyFunctionThatReturnsNull;
687 + }
688 + }
689 + function validate(props, propName, componentName, location, propFullName) {
690 + var expectedTypes = [];
691 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
692 + var checker = arrayOfTypeCheckers[i];
693 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
694 + if (checkerResult == null) return null;
695 + if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
696 + }
697 + var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
698 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
699 + }
700 + return createChainableTypeChecker(validate);
701 + }
702 + function createNodeChecker() {
703 + function validate(props, propName, componentName, location, propFullName) {
704 + if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
705 + return null;
706 + }
707 + return createChainableTypeChecker(validate);
708 + }
709 + function invalidValidatorError(componentName, location, propFullName, key, type) {
710 + return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
711 + }
712 + function createShapeTypeChecker(shapeTypes) {
713 + function validate(props, propName, componentName, location, propFullName) {
714 + var propValue = props[propName];
715 + var propType = getPropType(propValue);
716 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
717 + for (var key in shapeTypes) {
718 + var checker = shapeTypes[key];
719 + if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
720 + var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
721 + if (error) return error;
722 + }
723 + return null;
724 + }
725 + return createChainableTypeChecker(validate);
726 + }
727 + function createStrictShapeTypeChecker(shapeTypes) {
728 + function validate(props, propName, componentName, location, propFullName) {
729 + var propValue = props[propName];
730 + var propType = getPropType(propValue);
731 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
732 + for (var key in assign({}, props[propName], shapeTypes)) {
733 + var checker = shapeTypes[key];
734 + if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
735 + if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
736 + var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
737 + if (error) return error;
738 + }
739 + return null;
740 + }
741 + return createChainableTypeChecker(validate);
742 + }
743 + function isNode(propValue) {
744 + switch (typeof propValue) {
745 + case "number":
746 + case "string":
747 + case "undefined": return true;
748 + case "boolean": return !propValue;
749 + case "object":
750 + if (Array.isArray(propValue)) return propValue.every(isNode);
751 + if (propValue === null || isValidElement(propValue)) return true;
752 + var iteratorFn = getIteratorFn(propValue);
753 + if (iteratorFn) {
754 + var iterator = iteratorFn.call(propValue);
755 + var step;
756 + if (iteratorFn !== propValue.entries) {
757 + while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
758 + } else while (!(step = iterator.next()).done) {
759 + var entry = step.value;
760 + if (entry) {
761 + if (!isNode(entry[1])) return false;
762 + }
763 + }
764 + } else return false;
765 + return true;
766 + default: return false;
767 + }
768 + }
769 + function isSymbol(propType, propValue) {
770 + if (propType === "symbol") return true;
771 + if (!propValue) return false;
772 + if (propValue["@@toStringTag"] === "Symbol") return true;
773 + if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
774 + return false;
775 + }
776 + function getPropType(propValue) {
777 + var propType = typeof propValue;
778 + if (Array.isArray(propValue)) return "array";
779 + if (propValue instanceof RegExp) return "object";
780 + if (isSymbol(propType, propValue)) return "symbol";
781 + return propType;
782 + }
783 + function getPreciseType(propValue) {
784 + if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
785 + var propType = getPropType(propValue);
786 + if (propType === "object") {
787 + if (propValue instanceof Date) return "date";
788 + else if (propValue instanceof RegExp) return "regexp";
789 + }
790 + return propType;
791 + }
792 + function getPostfixForTypeWarning(value) {
793 + var type = getPreciseType(value);
794 + switch (type) {
795 + case "array":
796 + case "object": return "an " + type;
797 + case "boolean":
798 + case "date":
799 + case "regexp": return "a " + type;
800 + default: return type;
801 + }
802 + }
803 + function getClassName(propValue) {
804 + if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
805 + return propValue.constructor.name;
806 + }
807 + ReactPropTypes.checkPropTypes = checkPropTypes;
808 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
809 + ReactPropTypes.PropTypes = ReactPropTypes;
810 + return ReactPropTypes;
811 + };
812 + }));
1905 813
1906 -/**
1907 - * The stack frame tracking parse progress.
1908 - *
1909 - * @typedef Frame
1910 - *
1911 - * @property {Element} element A parent element which may still have
1912 - * @property {number} tokenStart Offset at which parent element first
1913 - * appears.
1914 - * @property {number} tokenLength Length of string marking start of parent
1915 - * element.
1916 - * @property {number} [prevOffset] Running offset at which parsing should
1917 - * continue.
1918 - * @property {number} [leadingTextStart] Offset at which last closing element
1919 - * finished, used for finding text between
1920 - * elements.
1921 - * @property {Element[]} children Children.
1922 - */
814 +//#endregion
815 +//#region node_modules/prop-types/index.js
816 + var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
817 + var ReactIs = require_react_is();
818 + var throwOnDirectAccess = true;
819 + module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
820 + }));
1923 821
1924 -/**
1925 - * Tracks recursive-descent parse state.
1926 - *
1927 - * This is a Stack frame holding parent elements until all children have been
1928 - * parsed.
1929 - *
1930 - * @private
1931 - * @param {Element} element A parent element which may still have
1932 - * nested children not yet parsed.
1933 - * @param {number} tokenStart Offset at which parent element first
1934 - * appears.
1935 - * @param {number} tokenLength Length of string marking start of parent
1936 - * element.
1937 - * @param {number} [prevOffset] Running offset at which parsing should
1938 - * continue.
1939 - * @param {number} [leadingTextStart] Offset at which last closing element
1940 - * finished, used for finding text between
1941 - * elements.
1942 - *
1943 - * @return {Frame} The stack frame tracking parse progress.
1944 - */
1945 -function createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart) {
1946 - return {
1947 - element,
1948 - tokenStart,
1949 - tokenLength,
1950 - prevOffset,
1951 - leadingTextStart,
1952 - children: []
1953 - };
1954 -}
822 +//#endregion
823 +//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
824 +var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
825 + function _arrayWithHoles(r) {
826 + if (Array.isArray(r)) return r;
827 + }
1955 828
1956 -/**
1957 - * This function creates an interpolated element from a passed in string with
1958 - * specific tags matching how the string should be converted to an element via
1959 - * the conversion map value.
1960 - *
1961 - * @example
1962 - * For example, for the given string:
1963 - *
1964 - * "This is a <span>string</span> with <a>a link</a> and a self-closing
1965 - * <CustomComponentB/> tag"
1966 - *
1967 - * You would have something like this as the conversionMap value:
1968 - *
1969 - * ```js
1970 - * {
1971 - * span: <span />,
1972 - * a: <a href={ 'https://github.com' } />,
1973 - * CustomComponentB: <CustomComponent />,
1974 - * }
1975 - * ```
1976 - *
1977 - * @param {string} interpolatedString The interpolation string to be parsed.
1978 - * @param {Record<string, Element>} conversionMap The map used to convert the string to
1979 - * a react element.
1980 - * @throws {TypeError}
1981 - * @return {Element} A wp element.
1982 - */
1983 -const createInterpolateElement = (interpolatedString, conversionMap) => {
1984 - indoc = interpolatedString;
1985 - offset = 0;
1986 - output = [];
1987 - stack = [];
1988 - tokenizer.lastIndex = 0;
1989 - if (!isValidConversionMap(conversionMap)) {
1990 - throw new TypeError('The conversionMap provided is not valid. It must be an object with values that are React Elements');
1991 - }
1992 - do {
1993 - // twiddle our thumbs
1994 - } while (proceed(conversionMap));
1995 - return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, ...output);
1996 -};
829 +//#endregion
830 +//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
831 + function _iterableToArrayLimit(r, l) {
832 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
833 + if (null != t) {
834 + var e;
835 + var n;
836 + var i;
837 + var u;
838 + var a = [];
839 + var f = !0;
840 + var o = !1;
841 + try {
842 + if (i = (t = t.call(r)).next, 0 === l) {
843 + if (Object(t) !== t) return;
844 + f = !1;
845 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
846 + } catch (r) {
847 + o = !0, n = r;
848 + } finally {
849 + try {
850 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
851 + } finally {
852 + if (o) throw n;
853 + }
854 + }
855 + return a;
856 + }
857 + }
1997 858
1998 -/**
1999 - * Validate conversion map.
2000 - *
2001 - * A map is considered valid if it's an object and every value in the object
2002 - * is a React Element
2003 - *
2004 - * @private
2005 - *
2006 - * @param {Object} conversionMap The map being validated.
2007 - *
2008 - * @return {boolean} True means the map is valid.
2009 - */
2010 -const isValidConversionMap = conversionMap => {
2011 - const isObject = typeof conversionMap === 'object';
2012 - const values = isObject && Object.values(conversionMap);
2013 - return isObject && values.length && values.every(element => (0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element));
2014 -};
859 +//#endregion
860 +//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
861 + function _arrayLikeToArray(r, a) {
862 + (null == a || a > r.length) && (a = r.length);
863 + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
864 + return n;
865 + }
2015 866
2016 -/**
2017 - * This is the iterator over the matches in the string.
2018 - *
2019 - * @private
2020 - *
2021 - * @param {Object} conversionMap The conversion map for the string.
2022 - *
2023 - * @return {boolean} true for continuing to iterate, false for finished.
2024 - */
2025 -function proceed(conversionMap) {
2026 - const next = nextToken();
2027 - const [tokenType, name, startOffset, tokenLength] = next;
2028 - const stackDepth = stack.length;
2029 - const leadingTextStart = startOffset > offset ? offset : null;
2030 - if (!conversionMap[name]) {
2031 - addText();
2032 - return false;
2033 - }
2034 - switch (tokenType) {
2035 - case 'no-more-tokens':
2036 - if (stackDepth !== 0) {
2037 - const {
2038 - leadingTextStart: stackLeadingText,
2039 - tokenStart
2040 - } = stack.pop();
2041 - output.push(indoc.substr(stackLeadingText, tokenStart));
2042 - }
2043 - addText();
2044 - return false;
2045 - case 'self-closed':
2046 - if (0 === stackDepth) {
2047 - if (null !== leadingTextStart) {
2048 - output.push(indoc.substr(leadingTextStart, startOffset - leadingTextStart));
2049 - }
2050 - output.push(conversionMap[name]);
2051 - offset = startOffset + tokenLength;
2052 - return true;
2053 - }
867 +//#endregion
868 +//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
869 + function _unsupportedIterableToArray(r, a) {
870 + if (r) {
871 + if ("string" == typeof r) return _arrayLikeToArray(r, a);
872 + var t = {}.toString.call(r).slice(8, -1);
873 + 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;
874 + }
875 + }
2054 876
2055 - // Otherwise we found an inner element.
2056 - addChild(createFrame(conversionMap[name], startOffset, tokenLength));
2057 - offset = startOffset + tokenLength;
2058 - return true;
2059 - case 'opener':
2060 - stack.push(createFrame(conversionMap[name], startOffset, tokenLength, startOffset + tokenLength, leadingTextStart));
2061 - offset = startOffset + tokenLength;
2062 - return true;
2063 - case 'closer':
2064 - // If we're not nesting then this is easy - close the block.
2065 - if (1 === stackDepth) {
2066 - closeOuterElement(startOffset);
2067 - offset = startOffset + tokenLength;
2068 - return true;
2069 - }
877 +//#endregion
878 +//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
879 + function _nonIterableRest() {
880 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
881 + }
2070 882
2071 - // Otherwise we're nested and we have to close out the current
2072 - // block and add it as a innerBlock to the parent.
2073 - const stackTop = stack.pop();
2074 - const text = indoc.substr(stackTop.prevOffset, startOffset - stackTop.prevOffset);
2075 - stackTop.children.push(text);
2076 - stackTop.prevOffset = startOffset + tokenLength;
2077 - const frame = createFrame(stackTop.element, stackTop.tokenStart, stackTop.tokenLength, startOffset + tokenLength);
2078 - frame.children = stackTop.children;
2079 - addChild(frame);
2080 - offset = startOffset + tokenLength;
2081 - return true;
2082 - default:
2083 - addText();
2084 - return false;
2085 - }
2086 -}
883 +//#endregion
884 +//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
885 + function _slicedToArray(r, e) {
886 + return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
887 + }
2087 888
2088 -/**
2089 - * Grabs the next token match in the string and returns it's details.
2090 - *
2091 - * @private
2092 - *
2093 - * @return {Array} An array of details for the token matched.
2094 - */
2095 -function nextToken() {
2096 - const matches = tokenizer.exec(indoc);
2097 - // We have no more tokens.
2098 - if (null === matches) {
2099 - return ['no-more-tokens'];
2100 - }
2101 - const startedAt = matches.index;
2102 - const [match, isClosing, name, isSelfClosed] = matches;
2103 - const length = match.length;
2104 - if (isSelfClosed) {
2105 - return ['self-closed', name, startedAt, length];
2106 - }
2107 - if (isClosing) {
2108 - return ['closer', name, startedAt, length];
2109 - }
2110 - return ['opener', name, startedAt, length];
2111 -}
889 +//#endregion
890 +//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
891 + function _classCallCheck(a, n) {
892 + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
893 + }
2112 894
2113 -/**
2114 - * Pushes text extracted from the indoc string to the output stack given the
2115 - * current rawLength value and offset (if rawLength is provided ) or the
2116 - * indoc.length and offset.
2117 - *
2118 - * @private
2119 - */
2120 -function addText() {
2121 - const length = indoc.length - offset;
2122 - if (0 === length) {
2123 - return;
2124 - }
2125 - output.push(indoc.substr(offset, length));
2126 -}
895 +//#endregion
896 +//#region node_modules/@babel/runtime/helpers/esm/typeof.js
897 + function _typeof(o) {
898 + "@babel/helpers - typeof";
899 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
900 + return typeof o;
901 + } : function(o) {
902 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
903 + }, _typeof(o);
904 + }
2127 905
2128 -/**
2129 - * Pushes a child element to the associated parent element's children for the
2130 - * parent currently active in the stack.
2131 - *
2132 - * @private
2133 - *
2134 - * @param {Frame} frame The Frame containing the child element and it's
2135 - * token information.
2136 - */
2137 -function addChild(frame) {
2138 - const {
2139 - element,
2140 - tokenStart,
2141 - tokenLength,
2142 - prevOffset,
2143 - children
2144 - } = frame;
2145 - const parent = stack[stack.length - 1];
2146 - const text = indoc.substr(parent.prevOffset, tokenStart - parent.prevOffset);
2147 - if (text) {
2148 - parent.children.push(text);
2149 - }
2150 - parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
2151 - parent.prevOffset = prevOffset ? prevOffset : tokenStart + tokenLength;
2152 -}
906 +//#endregion
907 +//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
908 + function toPrimitive(t, r) {
909 + if ("object" != _typeof(t) || !t) return t;
910 + var e = t[Symbol.toPrimitive];
911 + if (void 0 !== e) {
912 + var i = e.call(t, r || "default");
913 + if ("object" != _typeof(i)) return i;
914 + throw new TypeError("@@toPrimitive must return a primitive value.");
915 + }
916 + return ("string" === r ? String : Number)(t);
917 + }
2153 918
2154 -/**
2155 - * This is called for closing tags. It creates the element currently active in
2156 - * the stack.
2157 - *
2158 - * @private
2159 - *
2160 - * @param {number} endOffset Offset at which the closing tag for the element
2161 - * begins in the string. If this is greater than the
2162 - * prevOffset attached to the element, then this
2163 - * helps capture any remaining nested text nodes in
2164 - * the element.
2165 - */
2166 -function closeOuterElement(endOffset) {
2167 - const {
2168 - element,
2169 - leadingTextStart,
2170 - prevOffset,
2171 - tokenStart,
2172 - children
2173 - } = stack.pop();
2174 - const text = endOffset ? indoc.substr(prevOffset, endOffset - prevOffset) : indoc.substr(prevOffset);
2175 - if (text) {
2176 - children.push(text);
2177 - }
2178 - if (null !== leadingTextStart) {
2179 - output.push(indoc.substr(leadingTextStart, tokenStart - leadingTextStart));
2180 - }
2181 - output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
2182 -}
2183 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createInterpolateElement);
2184 -//# sourceMappingURL=create-interpolate-element.js.map
919 +//#endregion
920 +//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
921 + function toPropertyKey(t) {
922 + var i = toPrimitive(t, "string");
923 + return "symbol" == _typeof(i) ? i : i + "";
924 + }
2185 925
2186 -/***/ }),
2187 -
2188 -/***/ "../node_modules/@wordpress/element/build-module/index.js":
2189 -/*!****************************************************************!*\
2190 - !*** ../node_modules/@wordpress/element/build-module/index.js ***!
2191 - \****************************************************************/
2192 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2193 -
2194 -"use strict";
2195 -__webpack_require__.r(__webpack_exports__);
2196 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2197 -/* harmony export */ Children: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Children),
2198 -/* harmony export */ Component: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Component),
2199 -/* harmony export */ Fragment: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Fragment),
2200 -/* harmony export */ Platform: () => (/* reexport safe */ _platform__WEBPACK_IMPORTED_MODULE_4__["default"]),
2201 -/* harmony export */ PureComponent: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.PureComponent),
2202 -/* harmony export */ RawHTML: () => (/* reexport safe */ _raw_html__WEBPACK_IMPORTED_MODULE_6__["default"]),
2203 -/* harmony export */ StrictMode: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode),
2204 -/* harmony export */ Suspense: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Suspense),
2205 -/* harmony export */ cloneElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.cloneElement),
2206 -/* harmony export */ concatChildren: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.concatChildren),
2207 -/* harmony export */ createContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createContext),
2208 -/* harmony export */ createElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createElement),
2209 -/* harmony export */ createInterpolateElement: () => (/* reexport safe */ _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__["default"]),
2210 -/* harmony export */ createPortal: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createPortal),
2211 -/* harmony export */ createRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createRef),
2212 -/* harmony export */ createRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createRoot),
2213 -/* harmony export */ findDOMNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.findDOMNode),
2214 -/* harmony export */ flushSync: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.flushSync),
2215 -/* harmony export */ forwardRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.forwardRef),
2216 -/* harmony export */ hydrate: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrate),
2217 -/* harmony export */ hydrateRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot),
2218 -/* harmony export */ isEmptyElement: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.isEmptyElement),
2219 -/* harmony export */ isValidElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.isValidElement),
2220 -/* harmony export */ lazy: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.lazy),
2221 -/* harmony export */ memo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.memo),
2222 -/* harmony export */ render: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.render),
2223 -/* harmony export */ renderToString: () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_5__["default"]),
2224 -/* harmony export */ startTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.startTransition),
2225 -/* harmony export */ switchChildrenNodeName: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.switchChildrenNodeName),
2226 -/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.unmountComponentAtNode),
2227 -/* harmony export */ useCallback: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useCallback),
2228 -/* harmony export */ useContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useContext),
2229 -/* harmony export */ useDebugValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue),
2230 -/* harmony export */ useDeferredValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDeferredValue),
2231 -/* harmony export */ useEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useEffect),
2232 -/* harmony export */ useId: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useId),
2233 -/* harmony export */ useImperativeHandle: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle),
2234 -/* harmony export */ useInsertionEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect),
2235 -/* harmony export */ useLayoutEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect),
2236 -/* harmony export */ useMemo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useMemo),
2237 -/* harmony export */ useReducer: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useReducer),
2238 -/* harmony export */ useRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useRef),
2239 -/* harmony export */ useState: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useState),
2240 -/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore),
2241 -/* harmony export */ useTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useTransition)
2242 -/* harmony export */ });
2243 -/* 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");
2244 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "../node_modules/@wordpress/element/build-module/react.js");
2245 -/* harmony import */ var _react_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-platform */ "../node_modules/@wordpress/element/build-module/react-platform.js");
2246 -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "../node_modules/@wordpress/element/build-module/utils.js");
2247 -/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "../node_modules/@wordpress/element/build-module/platform.js");
2248 -/* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serialize */ "../node_modules/@wordpress/element/build-module/serialize.js");
2249 -/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
2250 -
2251 -
2252 -
2253 -
2254 -
2255 -
2256 -
2257 -//# sourceMappingURL=index.js.map
2258 -
2259 -/***/ }),
2260 -
2261 -/***/ "../node_modules/@wordpress/element/build-module/platform.js":
2262 -/*!*******************************************************************!*\
2263 - !*** ../node_modules/@wordpress/element/build-module/platform.js ***!
2264 - \*******************************************************************/
2265 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2266 -
2267 -"use strict";
2268 -__webpack_require__.r(__webpack_exports__);
2269 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2270 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2271 -/* harmony export */ });
2272 -/**
2273 - * Parts of this source were derived and modified from react-native-web,
2274 - * released under the MIT license.
2275 - *
2276 - * Copyright (c) 2016-present, Nicolas Gallagher.
2277 - * Copyright (c) 2015-present, Facebook, Inc.
2278 - *
2279 - */
2280 -const Platform = {
2281 - OS: 'web',
2282 - select: spec => 'web' in spec ? spec.web : spec.default,
2283 - isWeb: true
2284 -};
2285 -/**
2286 - * Component used to detect the current Platform being used.
2287 - * Use Platform.OS === 'web' to detect if running on web enviroment.
2288 - *
2289 - * This is the same concept as the React Native implementation.
2290 - *
2291 - * @see https://reactnative.dev/docs/platform-specific-code#platform-module
2292 - *
2293 - * Here is an example of how to use the select method:
2294 - * @example
2295 - * ```js
2296 - * import { Platform } from '@wordpress/element';
2297 - *
2298 - * const placeholderLabel = Platform.select( {
2299 - * native: __( 'Add media' ),
2300 - * web: __( 'Drag images, upload new ones or select files from your library.' ),
2301 - * } );
2302 - * ```
2303 - */
2304 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Platform);
2305 -//# sourceMappingURL=platform.js.map
2306 -
2307 -/***/ }),
2308 -
2309 -/***/ "../node_modules/@wordpress/element/build-module/raw-html.js":
2310 -/*!*******************************************************************!*\
2311 - !*** ../node_modules/@wordpress/element/build-module/raw-html.js ***!
2312 - \*******************************************************************/
2313 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2314 -
2315 -"use strict";
2316 -__webpack_require__.r(__webpack_exports__);
2317 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2318 -/* harmony export */ "default": () => (/* binding */ RawHTML)
2319 -/* harmony export */ });
2320 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
2321 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
2322 -/**
2323 - * Internal dependencies
2324 - */
2325 -
2326 -
2327 -/** @typedef {{children: string} & import('react').ComponentPropsWithoutRef<'div'>} RawHTMLProps */
2328 -
2329 -/**
2330 - * Component used as equivalent of Fragment with unescaped HTML, in cases where
2331 - * it is desirable to render dangerous HTML without needing a wrapper element.
2332 - * To preserve additional props, a `div` wrapper _will_ be created if any props
2333 - * aside from `children` are passed.
2334 - *
2335 - * @param {RawHTMLProps} props Children should be a string of HTML or an array
2336 - * of strings. Other props will be passed through
2337 - * to the div wrapper.
2338 - *
2339 - * @return {JSX.Element} Dangerously-rendering component.
2340 - */
2341 -function RawHTML({
2342 - children,
2343 - ...props
2344 -}) {
2345 - let rawHtml = '';
2346 -
2347 - // Cast children as an array, and concatenate each element if it is a string.
2348 - _react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).forEach(child => {
2349 - if (typeof child === 'string' && child.trim() !== '') {
2350 - rawHtml += child;
2351 - }
2352 - });
2353 -
2354 - // The `div` wrapper will be stripped by the `renderElement` serializer in
2355 - // `./serialize.js` unless there are non-children props present.
2356 - return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)('div', {
2357 - dangerouslySetInnerHTML: {
2358 - __html: rawHtml
2359 - },
2360 - ...props
2361 - });
2362 -}
2363 -//# sourceMappingURL=raw-html.js.map
2364 -
2365 -/***/ }),
2366 -
2367 -/***/ "../node_modules/@wordpress/element/build-module/react-platform.js":
2368 -/*!*************************************************************************!*\
2369 - !*** ../node_modules/@wordpress/element/build-module/react-platform.js ***!
2370 - \*************************************************************************/
2371 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2372 -
2373 -"use strict";
2374 -__webpack_require__.r(__webpack_exports__);
2375 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2376 -/* harmony export */ createPortal: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.createPortal),
2377 -/* harmony export */ createRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot),
2378 -/* harmony export */ findDOMNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode),
2379 -/* harmony export */ flushSync: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.flushSync),
2380 -/* harmony export */ hydrate: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
2381 -/* harmony export */ hydrateRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.hydrateRoot),
2382 -/* harmony export */ render: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.render),
2383 -/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode)
2384 -/* harmony export */ });
2385 -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
2386 -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
2387 -/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
2388 -/**
2389 - * External dependencies
2390 - */
2391 -
2392 -
2393 -
2394 -/**
2395 - * Creates a portal into which a component can be rendered.
2396 - *
2397 - * @see https://github.com/facebook/react/issues/10309#issuecomment-318433235
2398 - *
2399 - * @param {import('react').ReactElement} child Any renderable child, such as an element,
2400 - * string, or fragment.
2401 - * @param {HTMLElement} container DOM node into which element should be rendered.
2402 - */
2403 -
2404 -
2405 -/**
2406 - * Finds the dom node of a React component.
2407 - *
2408 - * @param {import('react').ComponentType} component Component's instance.
2409 - */
2410 -
2411 -
2412 -/**
2413 - * Forces React to flush any updates inside the provided callback synchronously.
2414 - *
2415 - * @param {Function} callback Callback to run synchronously.
2416 - */
2417 -
2418 -
2419 -/**
2420 - * Renders a given element into the target DOM node.
2421 - *
2422 - * @deprecated since WordPress 6.2.0. Use `createRoot` instead.
2423 - * @see https://react.dev/reference/react-dom/render
2424 - */
2425 -
2426 -
2427 -/**
2428 - * Hydrates a given element into the target DOM node.
2429 - *
2430 - * @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead.
2431 - * @see https://react.dev/reference/react-dom/hydrate
2432 - */
2433 -
2434 -
2435 -/**
2436 - * Creates a new React root for the target DOM node.
2437 - *
2438 - * @since 6.2.0 Introduced in WordPress core.
2439 - * @see https://react.dev/reference/react-dom/client/createRoot
2440 - */
2441 -
2442 -
2443 -/**
2444 - * Creates a new React root for the target DOM node and hydrates it with a pre-generated markup.
2445 - *
2446 - * @since 6.2.0 Introduced in WordPress core.
2447 - * @see https://react.dev/reference/react-dom/client/hydrateRoot
2448 - */
2449 -
2450 -
2451 -/**
2452 - * Removes any mounted element from the target DOM node.
2453 - *
2454 - * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead.
2455 - * @see https://react.dev/reference/react-dom/unmountComponentAtNode
2456 - */
2457 -
2458 -//# sourceMappingURL=react-platform.js.map
2459 -
2460 -/***/ }),
2461 -
2462 -/***/ "../node_modules/@wordpress/element/build-module/react.js":
2463 -/*!****************************************************************!*\
2464 - !*** ../node_modules/@wordpress/element/build-module/react.js ***!
2465 - \****************************************************************/
2466 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2467 -
2468 -"use strict";
2469 -__webpack_require__.r(__webpack_exports__);
2470 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2471 -/* harmony export */ Children: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Children),
2472 -/* harmony export */ Component: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Component),
2473 -/* harmony export */ Fragment: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Fragment),
2474 -/* harmony export */ PureComponent: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.PureComponent),
2475 -/* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode),
2476 -/* harmony export */ Suspense: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Suspense),
2477 -/* harmony export */ cloneElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.cloneElement),
2478 -/* harmony export */ concatChildren: () => (/* binding */ concatChildren),
2479 -/* harmony export */ createContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createContext),
2480 -/* harmony export */ createElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createElement),
2481 -/* harmony export */ createRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createRef),
2482 -/* harmony export */ forwardRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef),
2483 -/* harmony export */ isValidElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement),
2484 -/* harmony export */ lazy: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.lazy),
2485 -/* harmony export */ memo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.memo),
2486 -/* harmony export */ startTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.startTransition),
2487 -/* harmony export */ switchChildrenNodeName: () => (/* binding */ switchChildrenNodeName),
2488 -/* harmony export */ useCallback: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useCallback),
2489 -/* harmony export */ useContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useContext),
2490 -/* harmony export */ useDebugValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue),
2491 -/* harmony export */ useDeferredValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDeferredValue),
2492 -/* harmony export */ useEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useEffect),
2493 -/* harmony export */ useId: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useId),
2494 -/* harmony export */ useImperativeHandle: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle),
2495 -/* harmony export */ useInsertionEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect),
2496 -/* harmony export */ useLayoutEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect),
2497 -/* harmony export */ useMemo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useMemo),
2498 -/* harmony export */ useReducer: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useReducer),
2499 -/* harmony export */ useRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useRef),
2500 -/* harmony export */ useState: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useState),
2501 -/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore),
2502 -/* harmony export */ useTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useTransition)
2503 -/* harmony export */ });
2504 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
2505 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2506 -/**
2507 - * External dependencies
2508 - */
2509 -// eslint-disable-next-line @typescript-eslint/no-restricted-imports
2510 -
2511 -
2512 -/**
2513 - * Object containing a React element.
2514 - *
2515 - * @typedef {import('react').ReactElement} Element
2516 - */
2517 -
2518 -/**
2519 - * Object containing a React component.
2520 - *
2521 - * @typedef {import('react').ComponentType} ComponentType
2522 - */
2523 -
2524 -/**
2525 - * Object containing a React synthetic event.
2526 - *
2527 - * @typedef {import('react').SyntheticEvent} SyntheticEvent
2528 - */
2529 -
2530 -/**
2531 - * Object containing a React synthetic event.
2532 - *
2533 - * @template T
2534 - * @typedef {import('react').RefObject<T>} RefObject<T>
2535 - */
2536 -
2537 -/**
2538 - * Object that provides utilities for dealing with React children.
2539 - */
2540 -
2541 -
2542 -/**
2543 - * Creates a copy of an element with extended props.
2544 - *
2545 - * @param {Element} element Element
2546 - * @param {?Object} props Props to apply to cloned element
2547 - *
2548 - * @return {Element} Cloned element.
2549 - */
2550 -
2551 -
2552 -/**
2553 - * A base class to create WordPress Components (Refs, state and lifecycle hooks)
2554 - */
2555 -
2556 -
2557 -/**
2558 - * Creates a context object containing two components: a provider and consumer.
2559 - *
2560 - * @param {Object} defaultValue A default data stored in the context.
2561 - *
2562 - * @return {Object} Context object.
2563 - */
2564 -
2565 -
2566 -/**
2567 - * Returns a new element of given type. Type can be either a string tag name or
2568 - * another function which itself returns an element.
2569 - *
2570 - * @param {?(string|Function)} type Tag name or element creator
2571 - * @param {Object} props Element properties, either attribute
2572 - * set to apply to DOM node or values to
2573 - * pass through to element creator
2574 - * @param {...Element} children Descendant elements
2575 - *
2576 - * @return {Element} Element.
2577 - */
2578 -
2579 -
2580 -/**
2581 - * Returns an object tracking a reference to a rendered element via its
2582 - * `current` property as either a DOMElement or Element, dependent upon the
2583 - * type of element rendered with the ref attribute.
2584 - *
2585 - * @return {Object} Ref object.
2586 - */
2587 -
2588 -
2589 -/**
2590 - * Component enhancer used to enable passing a ref to its wrapped component.
2591 - * Pass a function argument which receives `props` and `ref` as its arguments,
2592 - * returning an element using the forwarded ref. The return value is a new
2593 - * component which forwards its ref.
2594 - *
2595 - * @param {Function} forwarder Function passed `props` and `ref`, expected to
2596 - * return an element.
2597 - *
2598 - * @return {Component} Enhanced component.
2599 - */
2600 -
2601 -
2602 -/**
2603 - * A component which renders its children without any wrapping element.
2604 - */
2605 -
2606 -
2607 -/**
2608 - * Checks if an object is a valid React Element.
2609 - *
2610 - * @param {Object} objectToCheck The object to be checked.
2611 - *
2612 - * @return {boolean} true if objectToTest is a valid React Element and false otherwise.
2613 - */
2614 -
2615 -
2616 -/**
2617 - * @see https://reactjs.org/docs/react-api.html#reactmemo
2618 - */
2619 -
2620 -
2621 -/**
2622 - * Component that activates additional checks and warnings for its descendants.
2623 - */
2624 -
2625 -
2626 -/**
2627 - * @see https://reactjs.org/docs/hooks-reference.html#usecallback
2628 - */
2629 -
2630 -
2631 -/**
2632 - * @see https://reactjs.org/docs/hooks-reference.html#usecontext
2633 - */
2634 -
2635 -
2636 -/**
2637 - * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
2638 - */
2639 -
2640 -
2641 -/**
2642 - * @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
2643 - */
2644 -
2645 -
2646 -/**
2647 - * @see https://reactjs.org/docs/hooks-reference.html#useeffect
2648 - */
2649 -
2650 -
2651 -/**
2652 - * @see https://reactjs.org/docs/hooks-reference.html#useid
2653 - */
2654 -
2655 -
2656 -/**
2657 - * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
2658 - */
2659 -
2660 -
2661 -/**
2662 - * @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect
2663 - */
2664 -
2665 -
2666 -/**
2667 - * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
2668 - */
2669 -
2670 -
2671 -/**
2672 - * @see https://reactjs.org/docs/hooks-reference.html#usememo
2673 - */
2674 -
2675 -
2676 -/**
2677 - * @see https://reactjs.org/docs/hooks-reference.html#usereducer
2678 - */
2679 -
2680 -
2681 -/**
2682 - * @see https://reactjs.org/docs/hooks-reference.html#useref
2683 - */
2684 -
2685 -
2686 -/**
2687 - * @see https://reactjs.org/docs/hooks-reference.html#usestate
2688 - */
2689 -
2690 -
2691 -/**
2692 - * @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore
2693 - */
2694 -
2695 -
2696 -/**
2697 - * @see https://reactjs.org/docs/hooks-reference.html#usetransition
2698 - */
2699 -
2700 -
2701 -/**
2702 - * @see https://reactjs.org/docs/react-api.html#starttransition
2703 - */
2704 -
2705 -
2706 -/**
2707 - * @see https://reactjs.org/docs/react-api.html#reactlazy
2708 - */
2709 -
2710 -
2711 -/**
2712 - * @see https://reactjs.org/docs/react-api.html#reactsuspense
2713 - */
2714 -
2715 -
2716 -/**
2717 - * @see https://reactjs.org/docs/react-api.html#reactpurecomponent
2718 - */
2719 -
2720 -
2721 -/**
2722 - * Concatenate two or more React children objects.
2723 - *
2724 - * @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.
2725 - *
2726 - * @return {Array} The concatenated value.
2727 - */
2728 -function concatChildren(...childrenArguments) {
2729 - return childrenArguments.reduce((accumulator, children, i) => {
2730 - react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (child, j) => {
2731 - if (child && 'string' !== typeof child) {
2732 - child = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, {
2733 - key: [i, j].join()
2734 - });
2735 - }
2736 - accumulator.push(child);
2737 - });
2738 - return accumulator;
2739 - }, []);
2740 -}
2741 -
2742 -/**
2743 - * Switches the nodeName of all the elements in the children object.
2744 - *
2745 - * @param {?Object} children Children object.
2746 - * @param {string} nodeName Node name.
2747 - *
2748 - * @return {?Object} The updated children object.
2749 - */
2750 -function switchChildrenNodeName(children, nodeName) {
2751 - return children && react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (elt, index) => {
2752 - if (typeof elt?.valueOf() === 'string') {
2753 - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
2754 - key: index
2755 - }, elt);
2756 - }
2757 - const {
2758 - children: childrenProp,
2759 - ...props
2760 - } = elt.props;
2761 - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
2762 - key: index,
2763 - ...props
2764 - }, childrenProp);
2765 - });
2766 -}
2767 -//# sourceMappingURL=react.js.map
2768 -
2769 -/***/ }),
2770 -
2771 -/***/ "../node_modules/@wordpress/element/build-module/serialize.js":
2772 -/*!********************************************************************!*\
2773 - !*** ../node_modules/@wordpress/element/build-module/serialize.js ***!
2774 - \********************************************************************/
2775 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2776 -
2777 -"use strict";
2778 -__webpack_require__.r(__webpack_exports__);
2779 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2780 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
2781 -/* harmony export */ hasPrefix: () => (/* binding */ hasPrefix),
2782 -/* harmony export */ renderAttributes: () => (/* binding */ renderAttributes),
2783 -/* harmony export */ renderComponent: () => (/* binding */ renderComponent),
2784 -/* harmony export */ renderElement: () => (/* binding */ renderElement),
2785 -/* harmony export */ renderNativeComponent: () => (/* binding */ renderNativeComponent),
2786 -/* harmony export */ renderStyle: () => (/* binding */ renderStyle)
2787 -/* harmony export */ });
2788 -/* 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");
2789 -/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! change-case */ "../node_modules/param-case/dist.es2015/index.js");
2790 -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/escape-html */ "../node_modules/@wordpress/escape-html/build-module/index.js");
2791 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./react */ "react");
2792 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_3__);
2793 -/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
2794 -/**
2795 - * Parts of this source were derived and modified from fast-react-render,
2796 - * released under the MIT license.
2797 - *
2798 - * https://github.com/alt-j/fast-react-render
2799 - *
2800 - * Copyright (c) 2016 Andrey Morozov
2801 - *
2802 - * Permission is hereby granted, free of charge, to any person obtaining a copy
2803 - * of this software and associated documentation files (the "Software"), to deal
2804 - * in the Software without restriction, including without limitation the rights
2805 - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2806 - * copies of the Software, and to permit persons to whom the Software is
2807 - * furnished to do so, subject to the following conditions:
2808 - *
2809 - * The above copyright notice and this permission notice shall be included in
2810 - * all copies or substantial portions of the Software.
2811 - *
2812 - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2813 - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2814 - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2815 - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2816 - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2817 - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2818 - * THE SOFTWARE.
2819 - */
2820 -
2821 -/**
2822 - * External dependencies
2823 - */
2824 -
2825 -
2826 -
2827 -/**
2828 - * WordPress dependencies
2829 - */
2830 -
2831 -
2832 -/**
2833 - * Internal dependencies
2834 - */
2835 -
2836 -
2837 -
2838 -/** @typedef {import('react').ReactElement} ReactElement */
2839 -
2840 -const {
2841 - Provider,
2842 - Consumer
2843 -} = (0,_react__WEBPACK_IMPORTED_MODULE_3__.createContext)(undefined);
2844 -const ForwardRef = (0,_react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)(() => {
2845 - return null;
2846 -});
2847 -
2848 -/**
2849 - * Valid attribute types.
2850 - *
2851 - * @type {Set<string>}
2852 - */
2853 -const ATTRIBUTES_TYPES = new Set(['string', 'boolean', 'number']);
2854 -
2855 -/**
2856 - * Element tags which can be self-closing.
2857 - *
2858 - * @type {Set<string>}
2859 - */
2860 -const SELF_CLOSING_TAGS = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']);
2861 -
2862 -/**
2863 - * Boolean attributes are attributes whose presence as being assigned is
2864 - * meaningful, even if only empty.
2865 - *
2866 - * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
2867 - * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
2868 - *
2869 - * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
2870 - * .filter( ( tr ) => tr.lastChild.textContent.indexOf( 'Boolean attribute' ) !== -1 )
2871 - * .reduce( ( result, tr ) => Object.assign( result, {
2872 - * [ tr.firstChild.textContent.trim() ]: true
2873 - * } ), {} ) ).sort();
2874 - *
2875 - * @type {Set<string>}
2876 - */
2877 -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']);
2878 -
2879 -/**
2880 - * Enumerated attributes are attributes which must be of a specific value form.
2881 - * Like boolean attributes, these are meaningful if specified, even if not of a
2882 - * valid enumerated value.
2883 - *
2884 - * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute
2885 - * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
2886 - *
2887 - * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
2888 - * .filter( ( tr ) => /^("(.+?)";?\s*)+/.test( tr.lastChild.textContent.trim() ) )
2889 - * .reduce( ( result, tr ) => Object.assign( result, {
2890 - * [ tr.firstChild.textContent.trim() ]: true
2891 - * } ), {} ) ).sort();
2892 - *
2893 - * Some notable omissions:
2894 - *
2895 - * - `alt`: https://blog.whatwg.org/omit-alt
2896 - *
2897 - * @type {Set<string>}
2898 - */
2899 -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']);
2900 -
2901 -/**
2902 - * Set of CSS style properties which support assignment of unitless numbers.
2903 - * Used in rendering of style properties, where `px` unit is assumed unless
2904 - * property is included in this set or value is zero.
2905 - *
2906 - * Generated via:
2907 - *
2908 - * Object.entries( document.createElement( 'div' ).style )
2909 - * .filter( ( [ key ] ) => (
2910 - * ! /^(webkit|ms|moz)/.test( key ) &&
2911 - * ( e.style[ key ] = 10 ) &&
2912 - * e.style[ key ] === '10'
2913 - * ) )
2914 - * .map( ( [ key ] ) => key )
2915 - * .sort();
2916 - *
2917 - * @type {Set<string>}
2918 - */
2919 -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']);
2920 -
2921 -/**
2922 - * Returns true if the specified string is prefixed by one of an array of
2923 - * possible prefixes.
2924 - *
2925 - * @param {string} string String to check.
2926 - * @param {string[]} prefixes Possible prefixes.
2927 - *
2928 - * @return {boolean} Whether string has prefix.
2929 - */
2930 -function hasPrefix(string, prefixes) {
2931 - return prefixes.some(prefix => string.indexOf(prefix) === 0);
2932 -}
2933 -
2934 -/**
2935 - * Returns true if the given prop name should be ignored in attributes
2936 - * serialization, or false otherwise.
2937 - *
2938 - * @param {string} attribute Attribute to check.
2939 - *
2940 - * @return {boolean} Whether attribute should be ignored.
2941 - */
2942 -function isInternalAttribute(attribute) {
2943 - return 'key' === attribute || 'children' === attribute;
2944 -}
2945 -
2946 -/**
2947 - * Returns the normal form of the element's attribute value for HTML.
2948 - *
2949 - * @param {string} attribute Attribute name.
2950 - * @param {*} value Non-normalized attribute value.
2951 - *
2952 - * @return {*} Normalized attribute value.
2953 - */
2954 -function getNormalAttributeValue(attribute, value) {
2955 - switch (attribute) {
2956 - case 'style':
2957 - return renderStyle(value);
2958 - }
2959 - return value;
2960 -}
2961 -/**
2962 - * This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute).
2963 - * We need this to render e.g strokeWidth as stroke-width.
2964 - *
2965 - * List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute.
2966 - */
2967 -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) => {
2968 - // The keys are lower-cased for more robust lookup.
2969 - map[attribute.toLowerCase()] = attribute;
2970 - return map;
2971 -}, {});
2972 -
2973 -/**
2974 - * This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute).
2975 - * The keys are lower-cased for more robust lookup.
2976 - * Note that this list only contains attributes that contain at least one capital letter.
2977 - * Lowercase attributes don't need mapping, since we lowercase all attributes by default.
2978 - */
2979 -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) => {
2980 - // The keys are lower-cased for more robust lookup.
2981 - map[attribute.toLowerCase()] = attribute;
2982 - return map;
2983 -}, {});
2984 -
2985 -/**
2986 - * This is a map of all SVG attributes that have colons.
2987 - * Keys are lower-cased and stripped of their colons for more robust lookup.
2988 - */
2989 -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) => {
2990 - map[attribute.replace(':', '').toLowerCase()] = attribute;
2991 - return map;
2992 -}, {});
2993 -
2994 -/**
2995 - * Returns the normal form of the element's attribute name for HTML.
2996 - *
2997 - * @param {string} attribute Non-normalized attribute name.
2998 - *
2999 - * @return {string} Normalized attribute name.
3000 - */
3001 -function getNormalAttributeName(attribute) {
3002 - switch (attribute) {
3003 - case 'htmlFor':
3004 - return 'for';
3005 - case 'className':
3006 - return 'class';
3007 - }
3008 - const attributeLowerCase = attribute.toLowerCase();
3009 - if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) {
3010 - return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase];
3011 - } else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) {
3012 - return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
3013 - } else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) {
3014 - return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase];
3015 - }
3016 - return attributeLowerCase;
3017 -}
3018 -
3019 -/**
3020 - * Returns the normal form of the style property name for HTML.
3021 - *
3022 - * - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color'
3023 - * - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor'
3024 - * - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform'
3025 - *
3026 - * @param {string} property Property name.
3027 - *
3028 - * @return {string} Normalized property name.
3029 - */
3030 -function getNormalStylePropertyName(property) {
3031 - if (property.startsWith('--')) {
3032 - return property;
3033 - }
3034 - if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) {
3035 - return '-' + (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property);
3036 - }
3037 - return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property);
3038 -}
3039 -
3040 -/**
3041 - * Returns the normal form of the style property value for HTML. Appends a
3042 - * default pixel unit if numeric, not a unitless property, and not zero.
3043 - *
3044 - * @param {string} property Property name.
3045 - * @param {*} value Non-normalized property value.
3046 - *
3047 - * @return {*} Normalized property value.
3048 - */
3049 -function getNormalStylePropertyValue(property, value) {
3050 - if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) {
3051 - return value + 'px';
3052 - }
3053 - return value;
3054 -}
3055 -
3056 -/**
3057 - * Serializes a React element to string.
3058 - *
3059 - * @param {import('react').ReactNode} element Element to serialize.
3060 - * @param {Object} [context] Context object.
3061 - * @param {Object} [legacyContext] Legacy context object.
3062 - *
3063 - * @return {string} Serialized element.
3064 - */
3065 -function renderElement(element, context, legacyContext = {}) {
3066 - if (null === element || undefined === element || false === element) {
3067 - return '';
3068 - }
3069 - if (Array.isArray(element)) {
3070 - return renderChildren(element, context, legacyContext);
3071 - }
3072 - switch (typeof element) {
3073 - case 'string':
3074 - return (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)(element);
3075 - case 'number':
3076 - return element.toString();
3077 - }
3078 - const {
3079 - type,
3080 - props
3081 - } = /** @type {{type?: any, props?: any}} */
3082 - element;
3083 - switch (type) {
3084 - case _react__WEBPACK_IMPORTED_MODULE_3__.StrictMode:
3085 - case _react__WEBPACK_IMPORTED_MODULE_3__.Fragment:
3086 - return renderChildren(props.children, context, legacyContext);
3087 - case _raw_html__WEBPACK_IMPORTED_MODULE_4__["default"]:
3088 - const {
3089 - children,
3090 - ...wrapperProps
3091 - } = props;
3092 - return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', {
3093 - ...wrapperProps,
3094 - dangerouslySetInnerHTML: {
3095 - __html: children
3096 - }
3097 - }, context, legacyContext);
3098 - }
3099 - switch (typeof type) {
3100 - case 'string':
3101 - return renderNativeComponent(type, props, context, legacyContext);
3102 - case 'function':
3103 - if (type.prototype && typeof type.prototype.render === 'function') {
3104 - return renderComponent(type, props, context, legacyContext);
3105 - }
3106 - return renderElement(type(props, legacyContext), context, legacyContext);
3107 - }
3108 - switch (type && type.$$typeof) {
3109 - case Provider.$$typeof:
3110 - return renderChildren(props.children, props.value, legacyContext);
3111 - case Consumer.$$typeof:
3112 - return renderElement(props.children(context || type._currentValue), context, legacyContext);
3113 - case ForwardRef.$$typeof:
3114 - return renderElement(type.render(props), context, legacyContext);
3115 - }
3116 - return '';
3117 -}
3118 -
3119 -/**
3120 - * Serializes a native component type to string.
3121 - *
3122 - * @param {?string} type Native component type to serialize, or null if
3123 - * rendering as fragment of children content.
3124 - * @param {Object} props Props object.
3125 - * @param {Object} [context] Context object.
3126 - * @param {Object} [legacyContext] Legacy context object.
3127 - *
3128 - * @return {string} Serialized element.
3129 - */
3130 -function renderNativeComponent(type, props, context, legacyContext = {}) {
3131 - let content = '';
3132 - if (type === 'textarea' && props.hasOwnProperty('value')) {
3133 - // Textarea children can be assigned as value prop. If it is, render in
3134 - // place of children. Ensure to omit so it is not assigned as attribute
3135 - // as well.
3136 - content = renderChildren(props.value, context, legacyContext);
3137 - const {
3138 - value,
3139 - ...restProps
3140 - } = props;
3141 - props = restProps;
3142 - } else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') {
3143 - // Dangerous content is left unescaped.
3144 - content = props.dangerouslySetInnerHTML.__html;
3145 - } else if (typeof props.children !== 'undefined') {
3146 - content = renderChildren(props.children, context, legacyContext);
3147 - }
3148 - if (!type) {
3149 - return content;
3150 - }
3151 - const attributes = renderAttributes(props);
3152 - if (SELF_CLOSING_TAGS.has(type)) {
3153 - return '<' + type + attributes + '/>';
3154 - }
3155 - return '<' + type + attributes + '>' + content + '</' + type + '>';
3156 -}
3157 -
3158 -/** @typedef {import('react').ComponentType} ComponentType */
3159 -
3160 -/**
3161 - * Serializes a non-native component type to string.
3162 - *
3163 - * @param {ComponentType} Component Component type to serialize.
3164 - * @param {Object} props Props object.
3165 - * @param {Object} [context] Context object.
3166 - * @param {Object} [legacyContext] Legacy context object.
3167 - *
3168 - * @return {string} Serialized element
3169 - */
3170 -function renderComponent(Component, props, context, legacyContext = {}) {
3171 - const instance = new ( /** @type {import('react').ComponentClass} */
3172 - Component)(props, legacyContext);
3173 - if (typeof
3174 - // Ignore reason: Current prettier reformats parens and mangles type assertion
3175 - // prettier-ignore
3176 - /** @type {{getChildContext?: () => unknown}} */
3177 - instance.getChildContext === 'function') {
3178 - Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext());
3179 - }
3180 - const html = renderElement(instance.render(), context, legacyContext);
3181 - return html;
3182 -}
3183 -
3184 -/**
3185 - * Serializes an array of children to string.
3186 - *
3187 - * @param {import('react').ReactNodeArray} children Children to serialize.
3188 - * @param {Object} [context] Context object.
3189 - * @param {Object} [legacyContext] Legacy context object.
3190 - *
3191 - * @return {string} Serialized children.
3192 - */
3193 -function renderChildren(children, context, legacyContext = {}) {
3194 - let result = '';
3195 - children = Array.isArray(children) ? children : [children];
3196 - for (let i = 0; i < children.length; i++) {
3197 - const child = children[i];
3198 - result += renderElement(child, context, legacyContext);
3199 - }
3200 - return result;
3201 -}
3202 -
3203 -/**
3204 - * Renders a props object as a string of HTML attributes.
3205 - *
3206 - * @param {Object} props Props object.
3207 - *
3208 - * @return {string} Attributes string.
3209 - */
3210 -function renderAttributes(props) {
3211 - let result = '';
3212 - for (const key in props) {
3213 - const attribute = getNormalAttributeName(key);
3214 - if (!(0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.isValidAttributeName)(attribute)) {
3215 - continue;
3216 - }
3217 - let value = getNormalAttributeValue(key, props[key]);
3218 -
3219 - // If value is not of serializable type, skip.
3220 - if (!ATTRIBUTES_TYPES.has(typeof value)) {
3221 - continue;
3222 - }
3223 -
3224 - // Don't render internal attribute names.
3225 - if (isInternalAttribute(key)) {
3226 - continue;
3227 - }
3228 - const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute);
3229 -
3230 - // Boolean attribute should be omitted outright if its value is false.
3231 - if (isBooleanAttribute && value === false) {
3232 - continue;
3233 - }
3234 - const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute);
3235 -
3236 - // Only write boolean value as attribute if meaningful.
3237 - if (typeof value === 'boolean' && !isMeaningfulAttribute) {
3238 - continue;
3239 - }
3240 - result += ' ' + attribute;
3241 -
3242 - // Boolean attributes should write attribute name, but without value.
3243 - // Mere presence of attribute name is effective truthiness.
3244 - if (isBooleanAttribute) {
3245 - continue;
3246 - }
3247 - if (typeof value === 'string') {
3248 - value = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(value);
3249 - }
3250 - result += '="' + value + '"';
3251 - }
3252 - return result;
3253 -}
3254 -
3255 -/**
3256 - * Renders a style object as a string attribute value.
3257 - *
3258 - * @param {Object} style Style object.
3259 - *
3260 - * @return {string} Style attribute value.
3261 - */
3262 -function renderStyle(style) {
3263 - // Only generate from object, e.g. tolerate string value.
3264 - if (!(0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(style)) {
3265 - return style;
3266 - }
3267 - let result;
3268 - for (const property in style) {
3269 - const value = style[property];
3270 - if (null === value || undefined === value) {
3271 - continue;
3272 - }
3273 - if (result) {
3274 - result += ';';
3275 - } else {
3276 - result = '';
3277 - }
3278 - const normalName = getNormalStylePropertyName(property);
3279 - const normalValue = getNormalStylePropertyValue(property, value);
3280 - result += normalName + ':' + normalValue;
3281 - }
3282 - return result;
3283 -}
3284 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderElement);
3285 -//# sourceMappingURL=serialize.js.map
3286 -
3287 -/***/ }),
3288 -
3289 -/***/ "../node_modules/@wordpress/element/build-module/utils.js":
3290 -/*!****************************************************************!*\
3291 - !*** ../node_modules/@wordpress/element/build-module/utils.js ***!
3292 - \****************************************************************/
3293 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3294 -
3295 -"use strict";
3296 -__webpack_require__.r(__webpack_exports__);
3297 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3298 -/* harmony export */ isEmptyElement: () => (/* binding */ isEmptyElement)
3299 -/* harmony export */ });
3300 -/**
3301 - * Checks if the provided WP element is empty.
3302 - *
3303 - * @param {*} element WP element to check.
3304 - * @return {boolean} True when an element is considered empty.
3305 - */
3306 -const isEmptyElement = element => {
3307 - if (typeof element === 'number') {
3308 - return false;
3309 - }
3310 - if (typeof element?.valueOf() === 'string' || Array.isArray(element)) {
3311 - return !element.length;
3312 - }
3313 - return !element;
3314 -};
3315 -//# sourceMappingURL=utils.js.map
3316 -
3317 -/***/ }),
3318 -
3319 -/***/ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js":
3320 -/*!*****************************************************************************!*\
3321 - !*** ../node_modules/@wordpress/escape-html/build-module/escape-greater.js ***!
3322 - \*****************************************************************************/
3323 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3324 -
3325 -"use strict";
3326 -__webpack_require__.r(__webpack_exports__);
3327 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3328 -/* harmony export */ "default": () => (/* binding */ __unstableEscapeGreaterThan)
3329 -/* harmony export */ });
3330 -/**
3331 - * Returns a string with greater-than sign replaced.
3332 - *
3333 - * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
3334 - * necessary for `__unstableEscapeGreaterThan` to exist.
3335 - *
3336 - * See: https://core.trac.wordpress.org/ticket/45387
3337 - *
3338 - * @param {string} value Original string.
3339 - *
3340 - * @return {string} Escaped string.
3341 - */
3342 -function __unstableEscapeGreaterThan(value) {
3343 - return value.replace(/>/g, '&gt;');
3344 -}
3345 -//# sourceMappingURL=escape-greater.js.map
3346 -
3347 -/***/ }),
3348 -
3349 -/***/ "../node_modules/@wordpress/escape-html/build-module/index.js":
3350 -/*!********************************************************************!*\
3351 - !*** ../node_modules/@wordpress/escape-html/build-module/index.js ***!
3352 - \********************************************************************/
3353 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3354 -
3355 -"use strict";
3356 -__webpack_require__.r(__webpack_exports__);
3357 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3358 -/* harmony export */ escapeAmpersand: () => (/* binding */ escapeAmpersand),
3359 -/* harmony export */ escapeAttribute: () => (/* binding */ escapeAttribute),
3360 -/* harmony export */ escapeEditableHTML: () => (/* binding */ escapeEditableHTML),
3361 -/* harmony export */ escapeHTML: () => (/* binding */ escapeHTML),
3362 -/* harmony export */ escapeLessThan: () => (/* binding */ escapeLessThan),
3363 -/* harmony export */ escapeQuotationMark: () => (/* binding */ escapeQuotationMark),
3364 -/* harmony export */ isValidAttributeName: () => (/* binding */ isValidAttributeName)
3365 -/* harmony export */ });
3366 -/* harmony import */ var _escape_greater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-greater */ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js");
3367 -/**
3368 - * Internal dependencies
3369 - */
3370 -
3371 -
3372 -/**
3373 - * Regular expression matching invalid attribute names.
3374 - *
3375 - * "Attribute names must consist of one or more characters other than controls,
3376 - * U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=),
3377 - * and noncharacters."
3378 - *
3379 - * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
3380 - *
3381 - * @type {RegExp}
3382 - */
3383 -const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
3384 -
3385 -/**
3386 - * Returns a string with ampersands escaped. Note that this is an imperfect
3387 - * implementation, where only ampersands which do not appear as a pattern of
3388 - * named, decimal, or hexadecimal character references are escaped. Invalid
3389 - * named references (i.e. ambiguous ampersand) are still permitted.
3390 - *
3391 - * @see https://w3c.github.io/html/syntax.html#character-references
3392 - * @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand
3393 - * @see https://w3c.github.io/html/syntax.html#named-character-references
3394 - *
3395 - * @param {string} value Original string.
3396 - *
3397 - * @return {string} Escaped string.
3398 - */
3399 -function escapeAmpersand(value) {
3400 - return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&amp;');
3401 -}
3402 -
3403 -/**
3404 - * Returns a string with quotation marks replaced.
3405 - *
3406 - * @param {string} value Original string.
3407 - *
3408 - * @return {string} Escaped string.
3409 - */
3410 -function escapeQuotationMark(value) {
3411 - return value.replace(/"/g, '&quot;');
3412 -}
3413 -
3414 -/**
3415 - * Returns a string with less-than sign replaced.
3416 - *
3417 - * @param {string} value Original string.
3418 - *
3419 - * @return {string} Escaped string.
3420 - */
3421 -function escapeLessThan(value) {
3422 - return value.replace(/</g, '&lt;');
3423 -}
3424 -
3425 -/**
3426 - * Returns an escaped attribute value.
3427 - *
3428 - * @see https://w3c.github.io/html/syntax.html#elements-attributes
3429 - *
3430 - * "[...] the text cannot contain an ambiguous ampersand [...] must not contain
3431 - * any literal U+0022 QUOTATION MARK characters (")"
3432 - *
3433 - * Note we also escape the greater than symbol, as this is used by wptexturize to
3434 - * split HTML strings. This is a WordPress specific fix
3435 - *
3436 - * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
3437 - * necessary for `__unstableEscapeGreaterThan` to be used.
3438 - *
3439 - * See: https://core.trac.wordpress.org/ticket/45387
3440 - *
3441 - * @param {string} value Attribute value.
3442 - *
3443 - * @return {string} Escaped attribute value.
3444 - */
3445 -function escapeAttribute(value) {
3446 - return (0,_escape_greater__WEBPACK_IMPORTED_MODULE_0__["default"])(escapeQuotationMark(escapeAmpersand(value)));
3447 -}
3448 -
3449 -/**
3450 - * Returns an escaped HTML element value.
3451 - *
3452 - * @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements
3453 - *
3454 - * "the text must not contain the character U+003C LESS-THAN SIGN (<) or an
3455 - * ambiguous ampersand."
3456 - *
3457 - * @param {string} value Element value.
3458 - *
3459 - * @return {string} Escaped HTML element value.
3460 - */
3461 -function escapeHTML(value) {
3462 - return escapeLessThan(escapeAmpersand(value));
3463 -}
3464 -
3465 -/**
3466 - * Returns an escaped Editable HTML element value. This is different from
3467 - * `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in
3468 - * order to render the content correctly on the page.
3469 - *
3470 - * @param {string} value Element value.
3471 - *
3472 - * @return {string} Escaped HTML element value.
3473 - */
3474 -function escapeEditableHTML(value) {
3475 - return escapeLessThan(value.replace(/&/g, '&amp;'));
3476 -}
3477 -
3478 -/**
3479 - * Returns true if the given attribute name is valid, or false otherwise.
3480 - *
3481 - * @param {string} name Attribute name to test.
3482 - *
3483 - * @return {boolean} Whether attribute is valid.
3484 - */
3485 -function isValidAttributeName(name) {
3486 - return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name);
3487 -}
3488 -//# sourceMappingURL=index.js.map
3489 -
3490 -/***/ }),
3491 -
3492 -/***/ "../node_modules/dot-case/dist.es2015/index.js":
3493 -/*!*****************************************************!*\
3494 - !*** ../node_modules/dot-case/dist.es2015/index.js ***!
3495 - \*****************************************************/
3496 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3497 -
3498 -"use strict";
3499 -__webpack_require__.r(__webpack_exports__);
3500 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3501 -/* harmony export */ dotCase: () => (/* binding */ dotCase)
3502 -/* harmony export */ });
3503 -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs");
3504 -/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! no-case */ "../node_modules/no-case/dist.es2015/index.js");
3505 -
3506 -
3507 -function dotCase(input, options) {
3508 - if (options === void 0) { options = {}; }
3509 - return (0,no_case__WEBPACK_IMPORTED_MODULE_1__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "." }, options));
3510 -}
3511 -//# sourceMappingURL=index.js.map
3512 -
3513 -/***/ }),
3514 -
3515 -/***/ "../node_modules/is-plain-object/dist/is-plain-object.mjs":
3516 -/*!****************************************************************!*\
3517 - !*** ../node_modules/is-plain-object/dist/is-plain-object.mjs ***!
3518 - \****************************************************************/
3519 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3520 -
3521 -"use strict";
3522 -__webpack_require__.r(__webpack_exports__);
3523 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3524 -/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject)
3525 -/* harmony export */ });
3526 -/*!
3527 - * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
3528 - *
3529 - * Copyright (c) 2014-2017, Jon Schlinkert.
3530 - * Released under the MIT License.
3531 - */
3532 -
3533 -function isObject(o) {
3534 - return Object.prototype.toString.call(o) === '[object Object]';
3535 -}
3536 -
3537 -function isPlainObject(o) {
3538 - var ctor,prot;
3539 -
3540 - if (isObject(o) === false) return false;
3541 -
3542 - // If has modified constructor
3543 - ctor = o.constructor;
3544 - if (ctor === undefined) return true;
3545 -
3546 - // If has modified prototype
3547 - prot = ctor.prototype;
3548 - if (isObject(prot) === false) return false;
3549 -
3550 - // If constructor does not have an Object-specific method
3551 - if (prot.hasOwnProperty('isPrototypeOf') === false) {
3552 - return false;
3553 - }
3554 -
3555 - // Most likely a plain Object
3556 - return true;
3557 -}
3558 -
3559 -
3560 -
3561 -
3562 -/***/ }),
3563 -
3564 -/***/ "../node_modules/lower-case/dist.es2015/index.js":
3565 -/*!*******************************************************!*\
3566 - !*** ../node_modules/lower-case/dist.es2015/index.js ***!
3567 - \*******************************************************/
3568 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3569 -
3570 -"use strict";
3571 -__webpack_require__.r(__webpack_exports__);
3572 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3573 -/* harmony export */ localeLowerCase: () => (/* binding */ localeLowerCase),
3574 -/* harmony export */ lowerCase: () => (/* binding */ lowerCase)
3575 -/* harmony export */ });
3576 -/**
3577 - * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
3578 - */
3579 -var SUPPORTED_LOCALE = {
3580 - tr: {
3581 - regexp: /\u0130|\u0049|\u0049\u0307/g,
3582 - map: {
3583 - İ: "\u0069",
3584 - I: "\u0131",
3585 - İ: "\u0069",
3586 - },
3587 - },
3588 - az: {
3589 - regexp: /\u0130/g,
3590 - map: {
3591 - İ: "\u0069",
3592 - I: "\u0131",
3593 - İ: "\u0069",
3594 - },
3595 - },
3596 - lt: {
3597 - regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
3598 - map: {
3599 - I: "\u0069\u0307",
3600 - J: "\u006A\u0307",
3601 - Į: "\u012F\u0307",
3602 - Ì: "\u0069\u0307\u0300",
3603 - Í: "\u0069\u0307\u0301",
3604 - Ĩ: "\u0069\u0307\u0303",
3605 - },
3606 - },
3607 -};
3608 -/**
3609 - * Localized lower case.
3610 - */
3611 -function localeLowerCase(str, locale) {
3612 - var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
3613 - if (lang)
3614 - return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
3615 - return lowerCase(str);
3616 -}
3617 -/**
3618 - * Lower case as a function.
3619 - */
3620 -function lowerCase(str) {
3621 - return str.toLowerCase();
3622 -}
3623 -//# sourceMappingURL=index.js.map
3624 -
3625 -/***/ }),
3626 -
3627 -/***/ "../node_modules/no-case/dist.es2015/index.js":
3628 -/*!****************************************************!*\
3629 - !*** ../node_modules/no-case/dist.es2015/index.js ***!
3630 - \****************************************************/
3631 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3632 -
3633 -"use strict";
3634 -__webpack_require__.r(__webpack_exports__);
3635 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3636 -/* harmony export */ noCase: () => (/* binding */ noCase)
3637 -/* harmony export */ });
3638 -/* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "../node_modules/lower-case/dist.es2015/index.js");
3639 -
3640 -// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
3641 -var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
3642 -// Remove all non-word characters.
3643 -var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
3644 -/**
3645 - * Normalize the string into something other libraries can manipulate easier.
3646 - */
3647 -function noCase(input, options) {
3648 - if (options === void 0) { options = {}; }
3649 - 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;
3650 - var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
3651 - var start = 0;
3652 - var end = result.length;
3653 - // Trim the delimiter from around the output string.
3654 - while (result.charAt(start) === "\0")
3655 - start++;
3656 - while (result.charAt(end - 1) === "\0")
3657 - end--;
3658 - // Transform each token independently.
3659 - return result.slice(start, end).split("\0").map(transform).join(delimiter);
3660 -}
3661 -/**
3662 - * Replace `re` in the input string with the replacement value.
3663 - */
3664 -function replace(input, re, value) {
3665 - if (re instanceof RegExp)
3666 - return input.replace(re, value);
3667 - return re.reduce(function (input, re) { return input.replace(re, value); }, input);
3668 -}
3669 -//# sourceMappingURL=index.js.map
3670 -
3671 -/***/ }),
3672 -
3673 -/***/ "../node_modules/object-assign/index.js":
3674 -/*!**********************************************!*\
3675 - !*** ../node_modules/object-assign/index.js ***!
3676 - \**********************************************/
3677 -/***/ ((module) => {
3678 -
3679 -"use strict";
3680 -/*
3681 -object-assign
3682 -(c) Sindre Sorhus
3683 -@license MIT
3684 -*/
3685 -
3686 -
3687 -/* eslint-disable no-unused-vars */
3688 -var getOwnPropertySymbols = Object.getOwnPropertySymbols;
3689 -var hasOwnProperty = Object.prototype.hasOwnProperty;
3690 -var propIsEnumerable = Object.prototype.propertyIsEnumerable;
3691 -
3692 -function toObject(val) {
3693 - if (val === null || val === undefined) {
3694 - throw new TypeError('Object.assign cannot be called with null or undefined');
926 +//#endregion
927 +//#region node_modules/@babel/runtime/helpers/esm/createClass.js
928 + function _defineProperties(e, r) {
929 + for (var t = 0; t < r.length; t++) {
930 + var o = r[t];
931 + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
932 + }
3695 933 }
934 + function _createClass(e, r, t) {
935 + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
936 + }
3696 937
3697 - return Object(val);
3698 -}
3699 -
3700 -function shouldUseNative() {
3701 - try {
3702 - if (!Object.assign) {
3703 - return false;
938 +//#endregion
939 +//#region modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js
940 + var MenuActiveStateResolver = /*#__PURE__*/ function() {
941 + function MenuActiveStateResolver(activeMenuSlug, activeChildSlug) {
942 + _classCallCheck(this, MenuActiveStateResolver);
943 + this.activeMenuSlug = activeMenuSlug;
944 + this.activeChildSlug = activeChildSlug;
3704 945 }
946 + return _createClass(MenuActiveStateResolver, [{
947 + key: "isMenuActive",
948 + value: function isMenuActive(item) {
949 + return item.slug === this.activeMenuSlug;
950 + }
951 + }, {
952 + key: "isChildActive",
953 + value: function isChildActive(childItem) {
954 + return childItem.slug === this.activeChildSlug;
955 + }
956 + }]);
957 + }();
3705 958
3706 - // Detect buggy property enumeration order in older V8 versions.
959 +//#endregion
960 +//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
961 + function _defineProperty(e, r, t) {
962 + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
963 + value: t,
964 + enumerable: !0,
965 + configurable: !0,
966 + writable: !0
967 + }) : e[r] = t, e;
968 + }
3707 969
3708 - // https://bugs.chromium.org/p/v8/issues/detail?id=4118
3709 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
3710 - test1[5] = 'de';
3711 - if (Object.getOwnPropertyNames(test1)[0] === '5') {
3712 - return false;
970 +//#endregion
971 +//#region assets/dev/js/editor/utils/editor-one-events.js
972 + function ownKeys(e, r) {
973 + var t = Object.keys(e);
974 + if (Object.getOwnPropertySymbols) {
975 + var o = Object.getOwnPropertySymbols(e);
976 + r && (o = o.filter(function(r) {
977 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
978 + })), t.push.apply(t, o);
3713 979 }
3714 -
3715 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
3716 - var test2 = {};
3717 - for (var i = 0; i < 10; i++) {
3718 - test2['_' + String.fromCharCode(i)] = i;
980 + return t;
981 + }
982 + function _objectSpread(e) {
983 + for (var r = 1; r < arguments.length; r++) {
984 + var t = null != arguments[r] ? arguments[r] : {};
985 + r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
986 + _defineProperty(e, r, t[r]);
987 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
988 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
989 + });
3719 990 }
3720 - var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
3721 - return test2[n];
3722 - });
3723 - if (order2.join('') !== '0123456789') {
3724 - return false;
3725 - }
3726 -
3727 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
3728 - var test3 = {};
3729 - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
3730 - test3[letter] = letter;
3731 - });
3732 - if (Object.keys(Object.assign({}, test3)).join('') !==
3733 - 'abcdefghijklmnopqrst') {
3734 - return false;
3735 - }
3736 -
3737 - return true;
3738 - } catch (err) {
3739 - // We don't expect any of the above to throw, but better to be safe.
3740 - return false;
991 + return e;
3741 992 }
3742 -}
3743 -
3744 -module.exports = shouldUseNative() ? Object.assign : function (target, source) {
3745 - var from;
3746 - var to = toObject(target);
3747 - var symbols;
3748 -
3749 - for (var s = 1; s < arguments.length; s++) {
3750 - from = Object(arguments[s]);
3751 -
3752 - for (var key in from) {
3753 - if (hasOwnProperty.call(from, key)) {
3754 - to[key] = from[key];
3755 - }
993 + var EditorOneEventManager = /*#__PURE__*/ function() {
994 + function EditorOneEventManager() {
995 + _classCallCheck(this, EditorOneEventManager);
3756 996 }
3757 -
3758 - if (getOwnPropertySymbols) {
3759 - symbols = getOwnPropertySymbols(from);
3760 - for (var i = 0; i < symbols.length; i++) {
3761 - if (propIsEnumerable.call(from, symbols[i])) {
3762 - to[symbols[i]] = from[symbols[i]];
997 + return _createClass(EditorOneEventManager, null, [
998 + {
999 + key: "getEventsManager",
1000 + value: function getEventsManager() {
1001 + var _elementorCommon;
1002 + return (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.eventsManager;
3763 1003 }
1004 + },
1005 + {
1006 + key: "getConfig",
1007 + value: function getConfig() {
1008 + var _this$getEventsManage;
1009 + return (_this$getEventsManage = this.getEventsManager()) === null || _this$getEventsManage === void 0 ? void 0 : _this$getEventsManage.config;
1010 + }
1011 + },
1012 + {
1013 + key: "canSendEvents",
1014 + value: function canSendEvents() {
1015 + var _elementorCommon2;
1016 + return ((_elementorCommon2 = elementorCommon) === null || _elementorCommon2 === void 0 || (_elementorCommon2 = _elementorCommon2.config) === null || _elementorCommon2 === void 0 || (_elementorCommon2 = _elementorCommon2.editor_events) === null || _elementorCommon2 === void 0 ? void 0 : _elementorCommon2.can_send_events) || false;
1017 + }
1018 + },
1019 + {
1020 + key: "isEventsManagerAvailable",
1021 + value: function isEventsManagerAvailable() {
1022 + var eventsManager = this.getEventsManager();
1023 + return eventsManager && "function" === typeof eventsManager.dispatchEvent;
1024 + }
1025 + },
1026 + {
1027 + key: "dispatchEvent",
1028 + value: function dispatchEvent(eventName, payload) {
1029 + try {
1030 + if (!this.isEventsManagerAvailable() || !this.canSendEvents()) return false;
1031 + this.getEventsManager().dispatchEvent(eventName, payload);
1032 + return true;
1033 + } catch (error) {
1034 + return false;
1035 + }
1036 + }
1037 + },
1038 + {
1039 + key: "toLowerSnake",
1040 + value: function toLowerSnake(value) {
1041 + if (!value || "string" !== typeof value) return value;
1042 + return value.replace(/\s+/g, "_").toLowerCase();
1043 + }
1044 + },
1045 + {
1046 + key: "decodeHtmlEntities",
1047 + value: function decodeHtmlEntities(text) {
1048 + if (!text || "string" !== typeof text) return text;
1049 + return new DOMParser().parseFromString(text, "text/html").body.textContent || text;
1050 + }
1051 + },
1052 + {
1053 + key: "isInEditorContext",
1054 + value: function isInEditorContext() {
1055 + var _window$elementor;
1056 + return "undefined" !== typeof window.elementor && !!((_window$elementor = window.elementor) !== null && _window$elementor !== void 0 && _window$elementor.documents);
1057 + }
1058 + },
1059 + {
1060 + key: "getFinderContext",
1061 + value: function getFinderContext() {
1062 + var _config$appTypes;
1063 + var _config$appTypes2;
1064 + var _config$locations;
1065 + var _config$locations2;
1066 + var config = this.getConfig();
1067 + var isEditor = this.isInEditorContext();
1068 + return {
1069 + windowName: isEditor ? config === null || config === void 0 || (_config$appTypes = config.appTypes) === null || _config$appTypes === void 0 ? void 0 : _config$appTypes.editor : config === null || config === void 0 || (_config$appTypes2 = config.appTypes) === null || _config$appTypes2 === void 0 ? void 0 : _config$appTypes2.wpAdmin,
1070 + targetLocation: this.toLowerSnake(isEditor ? config === null || config === void 0 || (_config$locations = config.locations) === null || _config$locations === void 0 ? void 0 : _config$locations.topBar : config === null || config === void 0 || (_config$locations2 = config.locations) === null || _config$locations2 === void 0 ? void 0 : _config$locations2.sidebar)
1071 + };
1072 + }
1073 + },
1074 + {
1075 + key: "createBasePayload",
1076 + value: function createBasePayload() {
1077 + var _config$appTypes$edit;
1078 + var _config$appTypes3;
1079 + var overrides = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1080 + var config = this.getConfig();
1081 + return _objectSpread({ window_name: (_config$appTypes$edit = config === null || config === void 0 || (_config$appTypes3 = config.appTypes) === null || _config$appTypes3 === void 0 ? void 0 : _config$appTypes3.editor) !== null && _config$appTypes$edit !== void 0 ? _config$appTypes$edit : "editor" }, overrides);
1082 + }
1083 + },
1084 + {
1085 + key: "sendTopBarPublishDropdown",
1086 + value: function sendTopBarPublishDropdown(targetName) {
1087 + var _config$names;
1088 + var _config$triggers;
1089 + var _config$targetTypes;
1090 + var _config$interactionRe;
1091 + var _config$locations3;
1092 + var _config$secondaryLoca;
1093 + var _config$targetTypes2;
1094 + var config = this.getConfig();
1095 + return this.dispatchEvent(config === null || config === void 0 || (_config$names = config.names) === null || _config$names === void 0 || (_config$names = _config$names.editorOne) === null || _config$names === void 0 ? void 0 : _config$names.topBarPublishDropdown, this.createBasePayload({
1096 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers = config.triggers) === null || _config$triggers === void 0 ? void 0 : _config$triggers.click),
1097 + target_type: config === null || config === void 0 || (_config$targetTypes = config.targetTypes) === null || _config$targetTypes === void 0 ? void 0 : _config$targetTypes.dropdownItem,
1098 + target_name: targetName,
1099 + interaction_result: config === null || config === void 0 || (_config$interactionRe = config.interactionResults) === null || _config$interactionRe === void 0 ? void 0 : _config$interactionRe.actionSelected,
1100 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations3 = config.locations) === null || _config$locations3 === void 0 ? void 0 : _config$locations3.topBar),
1101 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca = config.secondaryLocations) === null || _config$secondaryLoca === void 0 ? void 0 : _config$secondaryLoca.publishDropdown),
1102 + location_l2: config === null || config === void 0 || (_config$targetTypes2 = config.targetTypes) === null || _config$targetTypes2 === void 0 ? void 0 : _config$targetTypes2.dropdownItem,
1103 + interaction_description: "User selected an action from the publish dropdown"
1104 + }));
1105 + }
1106 + },
1107 + {
1108 + key: "sendTopBarPageList",
1109 + value: function sendTopBarPageList(targetName) {
1110 + var _config$names2;
1111 + var _config$triggers2;
1112 + var _config$targetTypes3;
1113 + var _config$interactionRe2;
1114 + var _config$interactionRe3;
1115 + var _config$locations4;
1116 + var _config$secondaryLoca2;
1117 + var _config$targetTypes4;
1118 + var isCreate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
1119 + var config = this.getConfig();
1120 + return this.dispatchEvent(config === null || config === void 0 || (_config$names2 = config.names) === null || _config$names2 === void 0 || (_config$names2 = _config$names2.editorOne) === null || _config$names2 === void 0 ? void 0 : _config$names2.topBarPageList, this.createBasePayload({
1121 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers2 = config.triggers) === null || _config$triggers2 === void 0 ? void 0 : _config$triggers2.click),
1122 + target_type: config === null || config === void 0 || (_config$targetTypes3 = config.targetTypes) === null || _config$targetTypes3 === void 0 ? void 0 : _config$targetTypes3.dropdownItem,
1123 + target_name: targetName,
1124 + interaction_result: isCreate ? config === null || config === void 0 || (_config$interactionRe2 = config.interactionResults) === null || _config$interactionRe2 === void 0 ? void 0 : _config$interactionRe2.create : config === null || config === void 0 || (_config$interactionRe3 = config.interactionResults) === null || _config$interactionRe3 === void 0 ? void 0 : _config$interactionRe3.navigate,
1125 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations4 = config.locations) === null || _config$locations4 === void 0 ? void 0 : _config$locations4.topBar),
1126 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca2 = config.secondaryLocations) === null || _config$secondaryLoca2 === void 0 ? void 0 : _config$secondaryLoca2.pageListDropdown),
1127 + location_l2: config === null || config === void 0 || (_config$targetTypes4 = config.targetTypes) === null || _config$targetTypes4 === void 0 ? void 0 : _config$targetTypes4.dropdownItem,
1128 + interaction_description: "User selected an action from the page list dropdown"
1129 + }));
1130 + }
1131 + },
1132 + {
1133 + key: "sendSiteSettingsSession",
1134 + value: function sendSiteSettingsSession(_ref) {
1135 + var _config$names3;
1136 + var _config$triggers3;
1137 + var _config$interactionRe4;
1138 + var _config$locations5;
1139 + var _config$secondaryLoca3;
1140 + var targetType = _ref.targetType;
1141 + var _ref$visitedItems = _ref.visitedItems;
1142 + var visitedItems = _ref$visitedItems === void 0 ? [] : _ref$visitedItems;
1143 + var _ref$savedItems = _ref.savedItems;
1144 + var savedItems = _ref$savedItems === void 0 ? [] : _ref$savedItems;
1145 + var state = _ref.state;
1146 + var config = this.getConfig();
1147 + return this.dispatchEvent(config === null || config === void 0 || (_config$names3 = config.names) === null || _config$names3 === void 0 || (_config$names3 = _config$names3.editorOne) === null || _config$names3 === void 0 ? void 0 : _config$names3.siteSettingsSession, this.createBasePayload({
1148 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers3 = config.triggers) === null || _config$triggers3 === void 0 ? void 0 : _config$triggers3.click),
1149 + target_type: targetType,
1150 + target_name: "site_settings",
1151 + interaction_result: config === null || config === void 0 || (_config$interactionRe4 = config.interactionResults) === null || _config$interactionRe4 === void 0 ? void 0 : _config$interactionRe4.sessionEnd,
1152 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations5 = config.locations) === null || _config$locations5 === void 0 ? void 0 : _config$locations5.leftPanel),
1153 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca3 = config.secondaryLocations) === null || _config$secondaryLoca3 === void 0 ? void 0 : _config$secondaryLoca3.siteSettings),
1154 + interaction_description: "Records areas visited as part of the site setting session",
1155 + metadata: {
1156 + visited_items: visitedItems,
1157 + saved_items: savedItems
1158 + },
1159 + state
1160 + }));
1161 + }
1162 + },
1163 + {
1164 + key: "sendELibraryNav",
1165 + value: function sendELibraryNav(tabName) {
1166 + var _config$names4;
1167 + var _config$triggers4;
1168 + var _config$targetTypes5;
1169 + var _config$interactionRe5;
1170 + var _config$locations6;
1171 + var _config$secondaryLoca4;
1172 + var config = this.getConfig();
1173 + return this.dispatchEvent(config === null || config === void 0 || (_config$names4 = config.names) === null || _config$names4 === void 0 || (_config$names4 = _config$names4.editorOne) === null || _config$names4 === void 0 ? void 0 : _config$names4.eLibraryNav, this.createBasePayload({
1174 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers4 = config.triggers) === null || _config$triggers4 === void 0 ? void 0 : _config$triggers4.tabSelect),
1175 + target_type: config === null || config === void 0 || (_config$targetTypes5 = config.targetTypes) === null || _config$targetTypes5 === void 0 ? void 0 : _config$targetTypes5.tab,
1176 + target_name: this.toLowerSnake(tabName),
1177 + interaction_result: config === null || config === void 0 || (_config$interactionRe5 = config.interactionResults) === null || _config$interactionRe5 === void 0 ? void 0 : _config$interactionRe5.tabChanged,
1178 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations6 = config.locations) === null || _config$locations6 === void 0 ? void 0 : _config$locations6.elementorLibrary),
1179 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca4 = config.secondaryLocations) === null || _config$secondaryLoca4 === void 0 ? void 0 : _config$secondaryLoca4.libraryTabs),
1180 + interaction_description: "User navigates within elementor library"
1181 + }));
1182 + }
1183 + },
1184 + {
1185 + key: "sendELibraryInsert",
1186 + value: function sendELibraryInsert(_ref2) {
1187 + var _config$triggers5;
1188 + var _config$targetTypes6;
1189 + var _config$interactionRe6;
1190 + var _config$locations7;
1191 + var _config$secondaryLoca5;
1192 + var _config$names5;
1193 + var assetId = _ref2.assetId;
1194 + var assetName = _ref2.assetName;
1195 + var libraryType = _ref2.libraryType;
1196 + var _ref2$proRequired = _ref2.proRequired;
1197 + var proRequired = _ref2$proRequired === void 0 ? false : _ref2$proRequired;
1198 + var config = this.getConfig();
1199 + var payload = this.createBasePayload({
1200 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers5 = config.triggers) === null || _config$triggers5 === void 0 ? void 0 : _config$triggers5.insert),
1201 + target_type: config === null || config === void 0 || (_config$targetTypes6 = config.targetTypes) === null || _config$targetTypes6 === void 0 ? void 0 : _config$targetTypes6.button,
1202 + target_name: String(assetId),
1203 + interaction_result: config === null || config === void 0 || (_config$interactionRe6 = config.interactionResults) === null || _config$interactionRe6 === void 0 ? void 0 : _config$interactionRe6.assetInserted,
1204 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations7 = config.locations) === null || _config$locations7 === void 0 ? void 0 : _config$locations7.elementorLibrary),
1205 + location_l1: this.toLowerSnake(libraryType),
1206 + location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca5 = config.secondaryLocations) === null || _config$secondaryLoca5 === void 0 ? void 0 : _config$secondaryLoca5.assetCard),
1207 + interaction_description: "User inserts block/pages from elementor library",
1208 + metadata: {
1209 + template_id: String(assetId),
1210 + template_name: this.decodeHtmlEntities(assetName) || ""
1211 + }
1212 + });
1213 + if (proRequired) payload.state = "pro_plan_required";
1214 + return this.dispatchEvent(config === null || config === void 0 || (_config$names5 = config.names) === null || _config$names5 === void 0 || (_config$names5 = _config$names5.editorOne) === null || _config$names5 === void 0 ? void 0 : _config$names5.eLibraryInsert, payload);
1215 + }
1216 + },
1217 + {
1218 + key: "sendELibraryFavorite",
1219 + value: function sendELibraryFavorite(_ref3) {
1220 + var _config$triggers6;
1221 + var _config$targetTypes7;
1222 + var _config$interactionRe7;
1223 + var _config$locations8;
1224 + var _config$secondaryLoca6;
1225 + var _config$names6;
1226 + var assetId = _ref3.assetId;
1227 + var assetName = _ref3.assetName;
1228 + var libraryType = _ref3.libraryType;
1229 + var isFavorite = _ref3.isFavorite;
1230 + var _ref3$proRequired = _ref3.proRequired;
1231 + var proRequired = _ref3$proRequired === void 0 ? false : _ref3$proRequired;
1232 + var config = this.getConfig();
1233 + var payload = this.createBasePayload({
1234 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers6 = config.triggers) === null || _config$triggers6 === void 0 ? void 0 : _config$triggers6.click),
1235 + target_type: config === null || config === void 0 || (_config$targetTypes7 = config.targetTypes) === null || _config$targetTypes7 === void 0 ? void 0 : _config$targetTypes7.toggle,
1236 + target_name: String(assetId),
1237 + interaction_result: config === null || config === void 0 || (_config$interactionRe7 = config.interactionResults) === null || _config$interactionRe7 === void 0 ? void 0 : _config$interactionRe7.assetFavorite,
1238 + target_value: Boolean(isFavorite),
1239 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations8 = config.locations) === null || _config$locations8 === void 0 ? void 0 : _config$locations8.elementorLibrary),
1240 + location_l1: this.toLowerSnake(libraryType),
1241 + location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca6 = config.secondaryLocations) === null || _config$secondaryLoca6 === void 0 ? void 0 : _config$secondaryLoca6.assetCard),
1242 + interaction_description: "User favorite block/pages from elementor library",
1243 + metadata: {
1244 + template_id: String(assetId),
1245 + template_name: this.decodeHtmlEntities(assetName) || ""
1246 + }
1247 + });
1248 + if (proRequired) payload.state = "pro_plan_required";
1249 + return this.dispatchEvent(config === null || config === void 0 || (_config$names6 = config.names) === null || _config$names6 === void 0 || (_config$names6 = _config$names6.editorOne) === null || _config$names6 === void 0 ? void 0 : _config$names6.eLibraryFavorite, payload);
1250 + }
1251 + },
1252 + {
1253 + key: "sendELibraryGenerateAi",
1254 + value: function sendELibraryGenerateAi(_ref4) {
1255 + var _config$names7;
1256 + var _config$triggers7;
1257 + var _config$targetTypes8;
1258 + var _config$interactionRe8;
1259 + var _config$locations9;
1260 + var _config$secondaryLoca7;
1261 + var assetId = _ref4.assetId;
1262 + var assetName = _ref4.assetName;
1263 + var libraryType = _ref4.libraryType;
1264 + var config = this.getConfig();
1265 + return this.dispatchEvent(config === null || config === void 0 || (_config$names7 = config.names) === null || _config$names7 === void 0 || (_config$names7 = _config$names7.editorOne) === null || _config$names7 === void 0 ? void 0 : _config$names7.eLibraryGenerateAi, this.createBasePayload({
1266 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers7 = config.triggers) === null || _config$triggers7 === void 0 ? void 0 : _config$triggers7.click),
1267 + target_type: config === null || config === void 0 || (_config$targetTypes8 = config.targetTypes) === null || _config$targetTypes8 === void 0 ? void 0 : _config$targetTypes8.button,
1268 + target_name: String(assetId),
1269 + interaction_result: config === null || config === void 0 || (_config$interactionRe8 = config.interactionResults) === null || _config$interactionRe8 === void 0 ? void 0 : _config$interactionRe8.aiGenerate,
1270 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations9 = config.locations) === null || _config$locations9 === void 0 ? void 0 : _config$locations9.elementorLibrary),
1271 + location_l1: this.toLowerSnake(libraryType),
1272 + location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca7 = config.secondaryLocations) === null || _config$secondaryLoca7 === void 0 ? void 0 : _config$secondaryLoca7.assetCard),
1273 + interaction_description: "User generated block/page based on a library asset",
1274 + metadata: {
1275 + template_id: String(assetId),
1276 + template_name: this.decodeHtmlEntities(assetName) || ""
1277 + }
1278 + }));
1279 + }
1280 + },
1281 + {
1282 + key: "sendFinderSearchInput",
1283 + value: function sendFinderSearchInput(_ref5) {
1284 + var _config$triggers8;
1285 + var _config$targetTypes9;
1286 + var _config$interactionRe9;
1287 + var _config$interactionRe0;
1288 + var _config$secondaryLoca8;
1289 + var _config$names8;
1290 + var resultsCount = _ref5.resultsCount;
1291 + var _ref5$searchTerm = _ref5.searchTerm;
1292 + var searchTerm = _ref5$searchTerm === void 0 ? null : _ref5$searchTerm;
1293 + var config = this.getConfig();
1294 + var hasResults = resultsCount > 0;
1295 + var finderContext = this.getFinderContext();
1296 + var payload = this.createBasePayload({
1297 + window_name: finderContext.windowName,
1298 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers8 = config.triggers) === null || _config$triggers8 === void 0 ? void 0 : _config$triggers8.typing),
1299 + target_type: config === null || config === void 0 || (_config$targetTypes9 = config.targetTypes) === null || _config$targetTypes9 === void 0 ? void 0 : _config$targetTypes9.searchInput,
1300 + target_name: "finder",
1301 + interaction_result: hasResults ? config === null || config === void 0 || (_config$interactionRe9 = config.interactionResults) === null || _config$interactionRe9 === void 0 ? void 0 : _config$interactionRe9.resultsUpdated : config === null || config === void 0 || (_config$interactionRe0 = config.interactionResults) === null || _config$interactionRe0 === void 0 ? void 0 : _config$interactionRe0.noResults,
1302 + target_location: finderContext.targetLocation,
1303 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca8 = config.secondaryLocations) === null || _config$secondaryLoca8 === void 0 ? void 0 : _config$secondaryLoca8.finder),
1304 + interaction_description: "Finder search input, follows debounce behavior",
1305 + metadata: { results_count: resultsCount }
1306 + });
1307 + if (!hasResults && searchTerm) payload.metadata.search_term = searchTerm;
1308 + return this.dispatchEvent(config === null || config === void 0 || (_config$names8 = config.names) === null || _config$names8 === void 0 || (_config$names8 = _config$names8.editorOne) === null || _config$names8 === void 0 ? void 0 : _config$names8.finderSearchInput, payload);
1309 + }
1310 + },
1311 + {
1312 + key: "sendFinderResultSelect",
1313 + value: function sendFinderResultSelect(choice) {
1314 + var _config$names9;
1315 + var _config$triggers9;
1316 + var _config$targetTypes0;
1317 + var _config$interactionRe1;
1318 + var _config$secondaryLoca9;
1319 + var _config$secondaryLoca0;
1320 + var config = this.getConfig();
1321 + var finderContext = this.getFinderContext();
1322 + return this.dispatchEvent(config === null || config === void 0 || (_config$names9 = config.names) === null || _config$names9 === void 0 || (_config$names9 = _config$names9.editorOne) === null || _config$names9 === void 0 ? void 0 : _config$names9.finderResultSelect, this.createBasePayload({
1323 + window_name: finderContext.windowName,
1324 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers9 = config.triggers) === null || _config$triggers9 === void 0 ? void 0 : _config$triggers9.click),
1325 + target_type: config === null || config === void 0 || (_config$targetTypes0 = config.targetTypes) === null || _config$targetTypes0 === void 0 ? void 0 : _config$targetTypes0.searchResult,
1326 + target_name: choice,
1327 + interaction_result: config === null || config === void 0 || (_config$interactionRe1 = config.interactionResults) === null || _config$interactionRe1 === void 0 ? void 0 : _config$interactionRe1.selected,
1328 + target_location: finderContext.targetLocation,
1329 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca9 = config.secondaryLocations) === null || _config$secondaryLoca9 === void 0 ? void 0 : _config$secondaryLoca9.finder),
1330 + location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca0 = config.secondaryLocations) === null || _config$secondaryLoca0 === void 0 ? void 0 : _config$secondaryLoca0.finderResults),
1331 + interaction_description: "Finder search results was selected"
1332 + }));
1333 + }
1334 + },
1335 + {
1336 + key: "sendCanvasEmptyBoxAction",
1337 + value: function sendCanvasEmptyBoxAction(_ref6) {
1338 + var _config$triggers0;
1339 + var _config$targetTypes1;
1340 + var _config$interactionRe10;
1341 + var _config$locations0;
1342 + var _config$secondaryLoca1;
1343 + var _config$names0;
1344 + var targetName = _ref6.targetName;
1345 + var _ref6$metadata = _ref6.metadata;
1346 + var metadata = _ref6$metadata === void 0 ? {} : _ref6$metadata;
1347 + var _ref6$containerCreate = _ref6.containerCreated;
1348 + var containerCreated = _ref6$containerCreate === void 0 ? null : _ref6$containerCreate;
1349 + var config = this.getConfig();
1350 + var payload = this.createBasePayload({
1351 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers0 = config.triggers) === null || _config$triggers0 === void 0 ? void 0 : _config$triggers0.click),
1352 + target_type: config === null || config === void 0 || (_config$targetTypes1 = config.targetTypes) === null || _config$targetTypes1 === void 0 ? void 0 : _config$targetTypes1.buttons,
1353 + target_name: targetName,
1354 + interaction_result: config === null || config === void 0 || (_config$interactionRe10 = config.interactionResults) === null || _config$interactionRe10 === void 0 ? void 0 : _config$interactionRe10.selected,
1355 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations0 = config.locations) === null || _config$locations0 === void 0 ? void 0 : _config$locations0.canvas),
1356 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca1 = config.secondaryLocations) === null || _config$secondaryLoca1 === void 0 ? void 0 : _config$secondaryLoca1.emptyBox),
1357 + interaction_description: "Empty box on canvas actions"
1358 + });
1359 + if (Object.keys(metadata).length > 0) payload.metadata = metadata;
1360 + if (containerCreated !== null) payload.state = containerCreated;
1361 + return this.dispatchEvent(config === null || config === void 0 || (_config$names0 = config.names) === null || _config$names0 === void 0 || (_config$names0 = _config$names0.editorOne) === null || _config$names0 === void 0 ? void 0 : _config$names0.canvasEmptyBoxAction, payload);
1362 + }
1363 + },
1364 + {
1365 + key: "sendWidgetPanelSearch",
1366 + value: function sendWidgetPanelSearch(_ref7) {
1367 + var _config$triggers1;
1368 + var _config$targetTypes10;
1369 + var _config$interactionRe11;
1370 + var _config$interactionRe12;
1371 + var _config$locations1;
1372 + var _config$locations10;
1373 + var _config$secondaryLoca10;
1374 + var _config$names1;
1375 + var resultsCount = _ref7.resultsCount;
1376 + var _ref7$userInput = _ref7.userInput;
1377 + var userInput = _ref7$userInput === void 0 ? null : _ref7$userInput;
1378 + var config = this.getConfig();
1379 + var hasResults = resultsCount > 0;
1380 + var payload = this.createBasePayload({
1381 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers1 = config.triggers) === null || _config$triggers1 === void 0 ? void 0 : _config$triggers1.typing),
1382 + target_type: config === null || config === void 0 || (_config$targetTypes10 = config.targetTypes) === null || _config$targetTypes10 === void 0 ? void 0 : _config$targetTypes10.searchWidget,
1383 + target_name: "search_widget",
1384 + interaction_result: hasResults ? config === null || config === void 0 || (_config$interactionRe11 = config.interactionResults) === null || _config$interactionRe11 === void 0 ? void 0 : _config$interactionRe11.resultsUpdated : config === null || config === void 0 || (_config$interactionRe12 = config.interactionResults) === null || _config$interactionRe12 === void 0 ? void 0 : _config$interactionRe12.noResults,
1385 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations1 = config.locations) === null || _config$locations1 === void 0 ? void 0 : _config$locations1.leftPanel),
1386 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$locations10 = config.locations) === null || _config$locations10 === void 0 ? void 0 : _config$locations10.widgetPanel),
1387 + location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca10 = config.secondaryLocations) === null || _config$secondaryLoca10 === void 0 ? void 0 : _config$secondaryLoca10.searchBar),
1388 + interaction_description: "Widget search input, follows debounce behavior"
1389 + });
1390 + if (!hasResults && userInput) payload.metadata = { user_input: userInput };
1391 + return this.dispatchEvent(config === null || config === void 0 || (_config$names1 = config.names) === null || _config$names1 === void 0 || (_config$names1 = _config$names1.editorOne) === null || _config$names1 === void 0 ? void 0 : _config$names1.widgetPanelSearch, payload);
1392 + }
1393 + },
1394 + {
1395 + key: "createWpDashPayload",
1396 + value: function createWpDashPayload() {
1397 + var _config$appTypes$wpDa;
1398 + var _config$appTypes4;
1399 + var _config$locations11;
1400 + var overrides = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1401 + var config = this.getConfig();
1402 + return this.createBasePayload(_objectSpread({
1403 + window_name: (_config$appTypes$wpDa = config === null || config === void 0 || (_config$appTypes4 = config.appTypes) === null || _config$appTypes4 === void 0 ? void 0 : _config$appTypes4.wpDash) !== null && _config$appTypes$wpDa !== void 0 ? _config$appTypes$wpDa : "wpdash",
1404 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin),
1405 + location_l2: ""
1406 + }, overrides));
1407 + }
1408 + },
1409 + {
1410 + key: "sendWpDashElementorMenuClick",
1411 + value: function sendWpDashElementorMenuClick() {
1412 + var _config$names10;
1413 + var _config$triggers10;
1414 + var _config$targetTypes11;
1415 + var _config$interactionRe13;
1416 + var _config$secondaryLoca11;
1417 + var config = this.getConfig();
1418 + return this.dispatchEvent(config === null || config === void 0 || (_config$names10 = config.names) === null || _config$names10 === void 0 || (_config$names10 = _config$names10.editorOne) === null || _config$names10 === void 0 ? void 0 : _config$names10.wpDashElementorMenuClick, this.createWpDashPayload({
1419 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click),
1420 + target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem,
1421 + target_name: "elementor_menu_item",
1422 + interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened,
1423 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu),
1424 + interaction_description: "core_user_clicked_elementor_menu_item"
1425 + }));
1426 + }
1427 + },
1428 + {
1429 + key: "sendWpDashEditorSubMenuHover",
1430 + value: function sendWpDashEditorSubMenuHover() {
1431 + var _config$names11;
1432 + var _config$triggers11;
1433 + var _config$targetTypes12;
1434 + var _config$interactionRe14;
1435 + var _config$secondaryLoca12;
1436 + var config = this.getConfig();
1437 + return this.dispatchEvent(config === null || config === void 0 || (_config$names11 = config.names) === null || _config$names11 === void 0 || (_config$names11 = _config$names11.editorOne) === null || _config$names11 === void 0 ? void 0 : _config$names11.wpDashEditorSubMenuHover, this.createWpDashPayload({
1438 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover),
1439 + target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu,
1440 + target_name: "wpdash_editor_sub_menu",
1441 + interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened,
1442 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu),
1443 + interaction_description: "core_user_hovered_sub_menu"
1444 + }));
1445 + }
1446 + },
1447 + {
1448 + key: "sendWpDashThemeBuilderClick",
1449 + value: function sendWpDashThemeBuilderClick() {
1450 + var _config$names12;
1451 + var _config$triggers12;
1452 + var _config$targetTypes13;
1453 + var _config$interactionRe15;
1454 + var _config$secondaryLoca13;
1455 + var config = this.getConfig();
1456 + return this.dispatchEvent(config === null || config === void 0 || (_config$names12 = config.names) === null || _config$names12 === void 0 || (_config$names12 = _config$names12.editorOne) === null || _config$names12 === void 0 ? void 0 : _config$names12.wpDashThemeBuilderClick, this.createWpDashPayload({
1457 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click),
1458 + target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem,
1459 + target_name: "theme_builder_menu_item",
1460 + interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow,
1461 + location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder),
1462 + interaction_description: "core_user_clicked_theme_builder_menu_item"
1463 + }));
1464 + }
1465 + },
1466 + {
1467 + key: "sendSidebarMenuItemClicked",
1468 + value: function sendSidebarMenuItemClicked(_ref8) {
1469 + var eventId = _ref8.eventId;
1470 + var groupEventId = _ref8.groupEventId;
1471 + try {
1472 + var _config$windowNames;
1473 + var _config$triggers13;
1474 + var _config$targetTypes14;
1475 + var _config$interactionRe16;
1476 + var _config$locations12;
1477 + var _config$names13;
1478 + var config = this.getConfig();
1479 + var payload = this.createBasePayload({
1480 + window_name: config === null || config === void 0 || (_config$windowNames = config.windowNames) === null || _config$windowNames === void 0 ? void 0 : _config$windowNames.sidebarMenu,
1481 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers13 = config.triggers) === null || _config$triggers13 === void 0 ? void 0 : _config$triggers13.click),
1482 + target_type: config === null || config === void 0 || (_config$targetTypes14 = config.targetTypes) === null || _config$targetTypes14 === void 0 ? void 0 : _config$targetTypes14.link,
1483 + target_name: eventId,
1484 + interaction_result: config === null || config === void 0 || (_config$interactionRe16 = config.interactionResults) === null || _config$interactionRe16 === void 0 ? void 0 : _config$interactionRe16.pageOpened,
1485 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations12 = config.locations) === null || _config$locations12 === void 0 ? void 0 : _config$locations12.sidebar)
1486 + });
1487 + if (groupEventId) payload.location_l1 = groupEventId;
1488 + return this.dispatchEvent(config === null || config === void 0 || (_config$names13 = config.names) === null || _config$names13 === void 0 || (_config$names13 = _config$names13.editorOne) === null || _config$names13 === void 0 ? void 0 : _config$names13.sidebarMenuItemClicked, payload);
1489 + } catch (error) {
1490 + return false;
1491 + }
1492 + }
1493 + },
1494 + {
1495 + key: "sendSidebarMenuGroupToggled",
1496 + value: function sendSidebarMenuGroupToggled(_ref9) {
1497 + var eventId = _ref9.eventId;
1498 + var isExpanded = _ref9.isExpanded;
1499 + try {
1500 + var _config$interactionRe17;
1501 + var _config$interactionRe18;
1502 + var _config$names14;
1503 + var _config$windowNames2;
1504 + var _config$triggers14;
1505 + var _config$targetTypes15;
1506 + var _config$locations13;
1507 + var config = this.getConfig();
1508 + var interactionResult = isExpanded ? config === null || config === void 0 || (_config$interactionRe17 = config.interactionResults) === null || _config$interactionRe17 === void 0 ? void 0 : _config$interactionRe17.expanded : config === null || config === void 0 || (_config$interactionRe18 = config.interactionResults) === null || _config$interactionRe18 === void 0 ? void 0 : _config$interactionRe18.collapsed;
1509 + return this.dispatchEvent(config === null || config === void 0 || (_config$names14 = config.names) === null || _config$names14 === void 0 || (_config$names14 = _config$names14.editorOne) === null || _config$names14 === void 0 ? void 0 : _config$names14.sidebarMenuGroupToggled, this.createBasePayload({
1510 + window_name: config === null || config === void 0 || (_config$windowNames2 = config.windowNames) === null || _config$windowNames2 === void 0 ? void 0 : _config$windowNames2.sidebarMenu,
1511 + interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers14 = config.triggers) === null || _config$triggers14 === void 0 ? void 0 : _config$triggers14.click),
1512 + target_type: config === null || config === void 0 || (_config$targetTypes15 = config.targetTypes) === null || _config$targetTypes15 === void 0 ? void 0 : _config$targetTypes15.toggle,
1513 + target_name: eventId,
1514 + interaction_result: interactionResult,
1515 + target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations13 = config.locations) === null || _config$locations13 === void 0 ? void 0 : _config$locations13.sidebar)
1516 + }));
1517 + } catch (error) {
1518 + return false;
1519 + }
1520 + }
3764 1521 }
3765 - }
3766 - }
1522 + ]);
1523 + }();
3767 1524
3768 - return to;
3769 -};
1525 +//#endregion
1526 +//#region modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js
1527 + var ToolIcon = function ToolIcon(props) {
1528 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, _extends({
1529 + width: "20",
1530 + height: "20",
1531 + viewBox: "0 0 20 20",
1532 + fill: "none"
1533 + }, props), /*#__PURE__*/ react.default.createElement("path", {
1534 + d: "M5.83329 8.33354H8.33329V5.83354L5.41663 2.91687C6.34965 2.47127 7.39788 2.32588 8.41696 2.50072C9.43604 2.67557 10.3759 3.16205 11.107 3.89318C11.8381 4.62431 12.3246 5.56412 12.4994 6.58321C12.6743 7.60229 12.5289 8.65051 12.0833 9.58354L17.0833 14.5835C17.4148 14.9151 17.6011 15.3647 17.6011 15.8335C17.6011 16.3024 17.4148 16.752 17.0833 17.0835C16.7518 17.4151 16.3021 17.6013 15.8333 17.6013C15.3645 17.6013 14.9148 17.4151 14.5833 17.0835L9.58329 12.0835C8.65027 12.5291 7.60204 12.6745 6.58296 12.4997C5.56388 12.3248 4.62407 11.8384 3.89294 11.1072C3.16181 10.3761 2.67533 9.43628 2.50048 8.4172C2.32563 7.39812 2.47102 6.3499 2.91663 5.41687L5.83329 8.33354Z",
1535 + fill: "none",
1536 + stroke: "currentColor",
1537 + strokeWidth: "1.2",
1538 + strokeLinecap: "round",
1539 + strokeLinejoin: "round"
1540 + }));
1541 + };
3770 1542
1543 +//#endregion
1544 +//#region modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js
1545 + var ICON_MAP = {
1546 + adjustments: _elementor_icons_AdjustmentsIcon.default,
1547 + folder: _elementor_icons_FolderIcon.default,
1548 + home: _elementor_icons_RocketIcon.default,
1549 + send: _elementor_icons_SendIcon.default,
1550 + settings: _elementor_icons_SettingsIcon.default,
1551 + tool: ToolIcon,
1552 + users: _elementor_icons_UsersIcon.default,
1553 + extension: _elementor_icons_PlugIcon.default,
1554 + "file-settings": _elementor_icons_FileSettingsIcon.default
1555 + };
1556 + var DEFAULT_ICON = _elementor_icons_HomeIcon.default;
3771 1557
3772 -/***/ }),
1558 +//#endregion
1559 +//#region modules/editor-one/assets/js/shared/is-rtl.js
1560 + function isRTL() {
1561 + var _elementorCommon$conf;
1562 + var _elementorCommon;
1563 + return (_elementorCommon$conf = (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 || (_elementorCommon = _elementorCommon.config) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.isRTL) !== null && _elementorCommon$conf !== void 0 ? _elementorCommon$conf : false;
1564 + }
3773 1565
3774 -/***/ "../node_modules/param-case/dist.es2015/index.js":
3775 -/*!*******************************************************!*\
3776 - !*** ../node_modules/param-case/dist.es2015/index.js ***!
3777 - \*******************************************************/
3778 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1566 +//#endregion
1567 +//#region modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js
1568 + var NavContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref) {
1569 + var theme = _ref.theme;
1570 + return {
1571 + display: "flex",
1572 + flexDirection: "column",
1573 + height: "100%",
1574 + backgroundColor: theme.palette.background.paper,
1575 + borderInlineEnd: "1px solid ".concat(theme.palette.divider)
1576 + };
1577 + });
1578 + var SiteIconBox = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref2) {
1579 + var theme = _ref2.theme;
1580 + return {
1581 + width: 40,
1582 + height: 40,
1583 + borderRadius: theme.shape.borderRadius * 2,
1584 + border: "1px solid ".concat(theme.palette.divider),
1585 + display: "flex",
1586 + alignItems: "center",
1587 + justifyContent: "center",
1588 + backgroundColor: theme.palette.background.paper,
1589 + color: theme.palette.action.active,
1590 + "& svg": { fontSize: 24 }
1591 + };
1592 + });
1593 + var CollapseButton = (0, _elementor_ui.styled)(_elementor_ui.IconButton, { shouldForwardProp: function shouldForwardProp(prop) {
1594 + return prop !== "expanded";
1595 + } })(function(_ref3) {
1596 + var theme = _ref3.theme;
1597 + var expanded = _ref3.expanded;
1598 + var isRtlLanguage = isRTL();
1599 + var transform = "none";
1600 + if (expanded && isRtlLanguage) transform = "rotate(180deg) scaleX(-1)";
1601 + else if (expanded) transform = "rotate(180deg)";
1602 + else if (isRtlLanguage) transform = "scaleX(-1)";
1603 + return {
1604 + position: "absolute",
1605 + insetInlineEnd: -28,
1606 + bottom: -12,
1607 + width: 24,
1608 + height: 24,
1609 + backgroundColor: theme.palette.background.paper,
1610 + border: "1px solid ".concat(theme.palette.divider),
1611 + color: theme.palette.action.active,
1612 + zIndex: 1,
1613 + "&:hover": { backgroundColor: theme.palette.background.paper },
1614 + "& svg": {
1615 + fontSize: 16,
1616 + transform
1617 + }
1618 + };
1619 + });
1620 + var ScrollableContent = (0, _elementor_ui.styled)(_elementor_ui.Box)({
1621 + flex: 1,
1622 + overflowY: "auto",
1623 + overflowX: "hidden"
1624 + });
1625 + var MenuList = (0, _elementor_ui.styled)(_elementor_ui.List)(function(_ref4) {
1626 + return { padding: _ref4.theme.spacing(2) };
1627 + });
1628 + var MenuItemButton = (0, _elementor_ui.styled)(_elementor_ui.ListItemButton)(function(_ref5) {
1629 + var theme = _ref5.theme;
1630 + return {
1631 + paddingLeft: theme.spacing(1),
1632 + paddingRight: theme.spacing(1),
1633 + marginBottom: 0,
1634 + paddingBottom: theme.spacing(.5),
1635 + whiteSpace: "nowrap",
1636 + justifyContent: "center",
1637 + borderRadius: 4
1638 + };
1639 + });
1640 + var MenuIcon = (0, _elementor_ui.styled)(_elementor_ui.ListItemIcon)(function(_ref6) {
1641 + return {
1642 + minWidth: "auto",
1643 + color: _ref6.theme.palette.text.primary,
1644 + margin: 0,
1645 + display: "flex",
1646 + justifyContent: "center",
1647 + "& svg": { fontSize: 20 }
1648 + };
1649 + });
1650 + var ChildMenuItemButton = (0, _elementor_ui.styled)(_elementor_ui.ListItemButton)(function(_ref7) {
1651 + var theme = _ref7.theme;
1652 + return {
1653 + paddingLeft: theme.spacing(6),
1654 + paddingRight: theme.spacing(2),
1655 + minHeight: 32,
1656 + whiteSpace: "nowrap",
1657 + borderRadius: 4
1658 + };
1659 + });
1660 + var ChildListItem = (0, _elementor_ui.styled)(_elementor_ui.ListItem)({ maxHeight: 32 });
1661 + var ExpandIcon = (0, _elementor_ui.styled)(_elementor_icons_ChevronDownSmallIcon.default, { shouldForwardProp: function shouldForwardProp(prop) {
1662 + return prop !== "expanded";
1663 + } })(function(_ref8) {
1664 + return {
1665 + fontSize: 20,
1666 + transform: _ref8.expanded ? "rotate(180deg)" : "rotate(0deg)",
1667 + transition: "transform 0.2s"
1668 + };
1669 + });
1670 + var CollapsedMenuItemContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref9) {
1671 + return {
1672 + display: "flex",
1673 + justifyContent: "center",
1674 + marginBottom: _ref9.theme.spacing(.5)
1675 + };
1676 + });
1677 + var CollapsedIconButton = (0, _elementor_ui.styled)(_elementor_ui.IconButton, { shouldForwardProp: function shouldForwardProp(prop) {
1678 + return prop !== "isHighlighted";
1679 + } })(function(_ref0) {
1680 + var theme = _ref0.theme;
1681 + var isHighlighted = _ref0.isHighlighted;
1682 + return {
1683 + width: 36,
1684 + height: 36,
1685 + borderRadius: theme.shape.borderRadius,
1686 + backgroundColor: isHighlighted ? theme.palette.action.selected : "transparent",
1687 + color: theme.palette.text.primary,
1688 + "&:hover": { backgroundColor: theme.palette.action.hover },
1689 + "& svg": { fontSize: 20 }
1690 + };
1691 + });
1692 + var PopoverTitle = (0, _elementor_ui.styled)(_elementor_ui.ListSubheader)(function(_ref1) {
1693 + return {
1694 + color: _ref1.theme.palette.text.tertiary,
1695 + fontSize: 12,
1696 + fontWeight: 400,
1697 + height: 28
1698 + };
1699 + });
1700 + var PopoverContent = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref10) {
1701 + var theme = _ref10.theme;
1702 + return {
1703 + paddingTop: theme.spacing(1),
1704 + paddingBottom: theme.spacing(1)
1705 + };
1706 + });
1707 + var CollapsedHeaderContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref11) {
1708 + var theme = _ref11.theme;
1709 + return {
1710 + position: "relative",
1711 + display: "flex",
1712 + justifyContent: "center",
1713 + alignItems: "center",
1714 + height: 80,
1715 + marginLeft: theme.spacing(2),
1716 + marginRight: theme.spacing(2),
1717 + borderBottom: "1px solid ".concat(theme.palette.divider)
1718 + };
1719 + });
1720 + var PopoverListItemButton = (0, _elementor_ui.styled)(_elementor_ui.ListItemButton)(function(_ref12) {
1721 + var theme = _ref12.theme;
1722 + return {
1723 + paddingLeft: theme.spacing(2),
1724 + paddingRight: theme.spacing(2),
1725 + paddingTop: theme.spacing(.5),
1726 + paddingBottom: theme.spacing(.5),
1727 + borderRadius: 4
1728 + };
1729 + });
1730 + var StyledPopover = (0, _elementor_ui.styled)(_elementor_ui.Popover)(function(_ref13) {
1731 + var theme = _ref13.theme;
1732 + return {
1733 + pointerEvents: "none",
1734 + "& .MuiPaper-root": {
1735 + marginLeft: theme.spacing(1),
1736 + minWidth: 180,
1737 + borderRadius: theme.shape.borderRadius,
1738 + pointerEvents: "auto"
1739 + }
1740 + };
1741 + });
3779 1742
3780 -"use strict";
3781 -__webpack_require__.r(__webpack_exports__);
3782 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3783 -/* harmony export */ paramCase: () => (/* binding */ paramCase)
3784 -/* harmony export */ });
3785 -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs");
3786 -/* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dot-case */ "../node_modules/dot-case/dist.es2015/index.js");
1743 +//#endregion
1744 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js
1745 + var CollapsedMenuItemPopover = function CollapsedMenuItemPopover(_ref) {
1746 + var item = _ref.item;
1747 + var children = _ref.children;
1748 + var activeChildSlug = _ref.activeChildSlug;
1749 + var isPopoverOpen = _ref.isPopoverOpen;
1750 + var anchorEl = _ref.anchorEl;
1751 + var onClose = _ref.onClose;
1752 + var IconComponent = _ref.IconComponent;
1753 + var isActive = _ref.isActive;
1754 + var onMouseEnter = _ref.onMouseEnter;
1755 + var anchorRef = _ref.anchorRef;
1756 + var handleChildClick = function handleChildClick(childItem) {
1757 + EditorOneEventManager.sendSidebarMenuItemClicked({
1758 + eventId: childItem.event_id,
1759 + groupEventId: item.event_id
1760 + });
1761 + };
1762 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
1763 + disablePadding: true,
1764 + dense: true,
1765 + disableGutters: true,
1766 + onMouseEnter,
1767 + ref: anchorRef
1768 + }, /*#__PURE__*/ react.default.createElement(MenuItemButton, {
1769 + selected: isActive || isPopoverOpen,
1770 + sx: { height: 36 }
1771 + }, /*#__PURE__*/ react.default.createElement(MenuIcon, null, /*#__PURE__*/ react.default.createElement(IconComponent, null))), /*#__PURE__*/ react.default.createElement(StyledPopover, {
1772 + open: isPopoverOpen,
1773 + anchorEl,
1774 + onClose,
1775 + anchorOrigin: {
1776 + vertical: "top",
1777 + horizontal: "right"
1778 + },
1779 + transformOrigin: {
1780 + vertical: "top",
1781 + horizontal: "left"
1782 + },
1783 + slotProps: { paper: { onMouseLeave: onClose } },
1784 + disableRestoreFocus: true,
1785 + hideBackdrop: true
1786 + }, /*#__PURE__*/ react.default.createElement(PopoverContent, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.List, {
1787 + disablePadding: true,
1788 + dense: true
1789 + }, /*#__PURE__*/ react.default.createElement(PopoverTitle, null, item.label), children.map(function(childItem) {
1790 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
1791 + key: childItem.slug,
1792 + disablePadding: true,
1793 + disableGutters: true,
1794 + dense: true,
1795 + sx: { height: 28 }
1796 + }, /*#__PURE__*/ react.default.createElement(PopoverListItemButton, {
1797 + component: "a",
1798 + href: childItem.url,
1799 + onClick: function onClick() {
1800 + return handleChildClick(childItem);
1801 + },
1802 + selected: childItem.slug === activeChildSlug
1803 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, {
1804 + primary: childItem.label,
1805 + primaryTypographyProps: { variant: "body2" }
1806 + })));
1807 + })))));
1808 + };
1809 + CollapsedMenuItemPopover.propTypes = {
1810 + item: import_prop_types.default.object.isRequired,
1811 + children: import_prop_types.default.array.isRequired,
1812 + activeChildSlug: import_prop_types.default.string.isRequired,
1813 + isPopoverOpen: import_prop_types.default.bool.isRequired,
1814 + anchorEl: import_prop_types.default.object,
1815 + onClose: import_prop_types.default.func.isRequired,
1816 + IconComponent: import_prop_types.default.elementType.isRequired,
1817 + isActive: import_prop_types.default.bool.isRequired,
1818 + onMouseEnter: import_prop_types.default.func.isRequired,
1819 + anchorRef: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]).isRequired
1820 + };
3787 1821
1822 +//#endregion
1823 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js
1824 + var CollapsedMenuItemTooltip = function CollapsedMenuItemTooltip(_ref) {
1825 + var item = _ref.item;
1826 + var isActive = _ref.isActive;
1827 + var onClick = _ref.onClick;
1828 + var IconComponent = _ref.IconComponent;
1829 + var onMouseEnter = _ref.onMouseEnter;
1830 + var isRtlLanguage = isRTL();
1831 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
1832 + disablePadding: true,
1833 + dense: true,
1834 + disableGutters: true,
1835 + onMouseEnter
1836 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Tooltip, {
1837 + title: item.label,
1838 + placement: isRtlLanguage ? "left" : "right"
1839 + }, /*#__PURE__*/ react.default.createElement(MenuItemButton, {
1840 + onClick,
1841 + selected: isActive,
1842 + sx: { height: 36 }
1843 + }, /*#__PURE__*/ react.default.createElement(MenuIcon, null, /*#__PURE__*/ react.default.createElement(IconComponent, null)))));
1844 + };
1845 + CollapsedMenuItemTooltip.propTypes = {
1846 + item: import_prop_types.default.object.isRequired,
1847 + isActive: import_prop_types.default.bool.isRequired,
1848 + onClick: import_prop_types.default.func.isRequired,
1849 + IconComponent: import_prop_types.default.elementType.isRequired,
1850 + onMouseEnter: import_prop_types.default.func.isRequired
1851 + };
3788 1852
3789 -function paramCase(input, options) {
3790 - if (options === void 0) { options = {}; }
3791 - return (0,dot_case__WEBPACK_IMPORTED_MODULE_1__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "-" }, options));
3792 -}
3793 -//# sourceMappingURL=index.js.map
1853 +//#endregion
1854 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js
1855 + var SidebarCollapsedMenuItem = function SidebarCollapsedMenuItem(_ref) {
1856 + var item = _ref.item;
1857 + var isActive = _ref.isActive;
1858 + var _ref$children = _ref.children;
1859 + var children = _ref$children === void 0 ? null : _ref$children;
1860 + var activeChildSlug = _ref.activeChildSlug;
1861 + var isPopoverOpen = _ref.isPopoverOpen;
1862 + var onOpenPopover = _ref.onOpenPopover;
1863 + var onClosePopover = _ref.onClosePopover;
1864 + var _useState2 = _slicedToArray((0, react.useState)(null), 2);
1865 + var anchorEl = _useState2[0];
1866 + var setAnchorEl = _useState2[1];
1867 + var hasChildren = !!(children !== null && children !== void 0 && children.length);
1868 + var IconComponent = ICON_MAP[item.icon] || DEFAULT_ICON;
1869 + var handleMouseEnter = function handleMouseEnter() {
1870 + if (hasChildren) onOpenPopover(item.slug);
1871 + else onClosePopover();
1872 + };
1873 + return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, hasChildren ? /*#__PURE__*/ react.default.createElement(CollapsedMenuItemPopover, {
1874 + item,
1875 + children,
1876 + activeChildSlug,
1877 + isPopoverOpen,
1878 + anchorEl,
1879 + onClose: onClosePopover,
1880 + IconComponent,
1881 + isActive,
1882 + onMouseEnter: handleMouseEnter,
1883 + anchorRef: setAnchorEl
1884 + }) : /*#__PURE__*/ react.default.createElement(CollapsedMenuItemTooltip, {
1885 + item,
1886 + isActive,
1887 + onClick: function handleClick() {
1888 + if (!hasChildren) {
1889 + EditorOneEventManager.sendSidebarMenuItemClicked({ eventId: item.event_id });
1890 + window.location.href = item.url;
1891 + }
1892 + },
1893 + IconComponent,
1894 + onMouseEnter: handleMouseEnter
1895 + }));
1896 + };
1897 + SidebarCollapsedMenuItem.propTypes = {
1898 + item: import_prop_types.default.object.isRequired,
1899 + isActive: import_prop_types.default.bool.isRequired,
1900 + children: import_prop_types.default.array,
1901 + activeChildSlug: import_prop_types.default.string.isRequired,
1902 + isPopoverOpen: import_prop_types.default.bool.isRequired,
1903 + onOpenPopover: import_prop_types.default.func.isRequired,
1904 + onClosePopover: import_prop_types.default.func.isRequired
1905 + };
3794 1906
3795 -/***/ }),
1907 +//#endregion
1908 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js
1909 + var SidebarCollapsedMenu = function SidebarCollapsedMenu(_ref) {
1910 + var menuItems = _ref.menuItems;
1911 + var level4Groups = _ref.level4Groups;
1912 + var activeMenuSlug = _ref.activeMenuSlug;
1913 + var activeChildSlug = _ref.activeChildSlug;
1914 + var _useState2 = _slicedToArray((0, react.useState)(null), 2);
1915 + var openPopoverSlug = _useState2[0];
1916 + var setOpenPopoverSlug = _useState2[1];
1917 + var activeStateResolver = (0, react.useMemo)(function() {
1918 + return new MenuActiveStateResolver(activeMenuSlug, activeChildSlug);
1919 + }, [activeMenuSlug, activeChildSlug]);
1920 + var getChildren = function getChildren(item) {
1921 + if (!item.group_id) return null;
1922 + var group = level4Groups[item.group_id];
1923 + if (!group || !group.items || !group.items.length) return null;
1924 + return group.items;
1925 + };
1926 + var handleOpenPopover = (0, react.useCallback)(function(slug) {
1927 + setOpenPopoverSlug(slug);
1928 + }, []);
1929 + var handleClosePopover = (0, react.useCallback)(function() {
1930 + setOpenPopoverSlug(null);
1931 + }, []);
1932 + return /*#__PURE__*/ react.default.createElement(MenuList, {
1933 + isCollapsed: true,
1934 + onMouseLeave: handleClosePopover
1935 + }, menuItems.map(function(item) {
1936 + return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, item.has_divider_before && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, {
1937 + key: "divider-".concat(item.slug),
1938 + sx: { my: 1 }
1939 + }), /*#__PURE__*/ react.default.createElement(SidebarCollapsedMenuItem, {
1940 + key: item.slug,
1941 + item,
1942 + isActive: activeStateResolver.isMenuActive(item),
1943 + children: getChildren(item),
1944 + activeChildSlug,
1945 + isPopoverOpen: openPopoverSlug === item.slug,
1946 + onOpenPopover: handleOpenPopover,
1947 + onClosePopover: handleClosePopover
1948 + }));
1949 + }));
1950 + };
1951 + SidebarCollapsedMenu.propTypes = {
1952 + menuItems: import_prop_types.default.array.isRequired,
1953 + level4Groups: import_prop_types.default.object.isRequired,
1954 + activeMenuSlug: import_prop_types.default.string.isRequired,
1955 + activeChildSlug: import_prop_types.default.string.isRequired
1956 + };
3796 1957
3797 -/***/ "../node_modules/prop-types/checkPropTypes.js":
3798 -/*!****************************************************!*\
3799 - !*** ../node_modules/prop-types/checkPropTypes.js ***!
3800 - \****************************************************/
3801 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1958 +//#endregion
1959 +//#region modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js
1960 + var CtaContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref) {
1961 + return { padding: _ref.theme.spacing(2) };
1962 + });
1963 + var CtaButton = (0, _elementor_ui.styled)(_elementor_ui.Button)({
1964 + justifyContent: "center",
1965 + whiteSpace: "nowrap"
1966 + });
1967 + var CollapsedCtaContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref2) {
1968 + return {
1969 + padding: _ref2.theme.spacing(2),
1970 + display: "flex",
1971 + justifyContent: "center",
1972 + alignItems: "center"
1973 + };
1974 + });
1975 + var CollapsedCtaButton = (0, _elementor_ui.styled)("button")(function(_ref3) {
1976 + var theme = _ref3.theme;
1977 + return {
1978 + border: "1px solid ".concat(theme.palette.promotion.main),
1979 + borderRadius: 999,
1980 + width: 24,
1981 + height: 24,
1982 + padding: 0,
1983 + display: "flex",
1984 + alignItems: "center",
1985 + justifyContent: "center",
1986 + background: "transparent",
1987 + cursor: "pointer",
1988 + color: theme.palette.promotion.main,
1989 + transition: "all 0.2s ease-in-out",
1990 + whiteSpace: "nowrap",
1991 + "&:hover": { background: theme.palette.promotion.hover },
1992 + "& svg": {
1993 + width: 18,
1994 + height: 18,
1995 + fill: theme.palette.promotion.main
1996 + }
1997 + };
1998 + });
3802 1999
3803 -"use strict";
3804 -/**
3805 - * Copyright (c) 2013-present, Facebook, Inc.
3806 - *
3807 - * This source code is licensed under the MIT license found in the
3808 - * LICENSE file in the root directory of this source tree.
3809 - */
2000 +//#endregion
2001 +//#region modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js
2002 + var SidebarUpgradeCta = function SidebarUpgradeCta(_ref) {
2003 + var upgradeUrl = _ref.upgradeUrl;
2004 + var upgradeText = _ref.upgradeText;
2005 + var hasPro = _ref.hasPro;
2006 + var collapsed = _ref.collapsed;
2007 + if (true === hasPro || "1" === hasPro || "true" === hasPro) return null;
2008 + var handleUpgradeClick = function handleUpgradeClick() {
2009 + window.open(upgradeUrl, "_blank");
2010 + };
2011 + if (collapsed) return /*#__PURE__*/ react.default.createElement(CollapsedCtaContainer, null, /*#__PURE__*/ react.default.createElement(CollapsedCtaButton, { onClick: handleUpgradeClick }, /*#__PURE__*/ react.default.createElement(_elementor_icons.CrownFilledIcon, null)));
2012 + return /*#__PURE__*/ react.default.createElement(CtaContainer, null, /*#__PURE__*/ react.default.createElement(CtaButton, {
2013 + startIcon: /*#__PURE__*/ react.default.createElement(_elementor_icons.CrownFilledIcon, null),
2014 + onClick: handleUpgradeClick,
2015 + variant: "outlined",
2016 + color: "promotion",
2017 + fullWidth: true
2018 + }, upgradeText));
2019 + };
2020 + SidebarUpgradeCta.propTypes = {
2021 + upgradeUrl: import_prop_types.default.string.isRequired,
2022 + upgradeText: import_prop_types.default.string.isRequired,
2023 + hasPro: import_prop_types.default.oneOfType([import_prop_types.default.bool, import_prop_types.default.string]).isRequired,
2024 + collapsed: import_prop_types.default.bool
2025 + };
3810 2026
2027 +//#endregion
2028 +//#region modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js
2029 + var HeaderContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref) {
2030 + var theme = _ref.theme;
2031 + return {
2032 + position: "relative",
2033 + marginLeft: theme.spacing(2),
2034 + marginRight: theme.spacing(2),
2035 + height: 80,
2036 + borderBottom: "1px solid ".concat(theme.palette.divider),
2037 + display: "flex",
2038 + alignItems: "center"
2039 + };
2040 + });
2041 + var HeaderContent = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref2) {
2042 + return {
2043 + display: "flex",
2044 + alignItems: "center",
2045 + gap: _ref2.theme.spacing(1.5),
2046 + flex: 1
2047 + };
2048 + });
2049 + var SiteTitle = (0, _elementor_ui.styled)(_elementor_ui.Typography)({
2050 + fontWeight: 500,
2051 + flex: 1
2052 + });
2053 + var SearchButton = (0, _elementor_ui.styled)(_elementor_ui.IconButton)(function(_ref3) {
2054 + return {
2055 + fontSize: 20,
2056 + color: _ref3.theme.palette.action.active
2057 + };
2058 + });
3811 2059
2060 +//#endregion
2061 +//#region modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js
2062 + var SidebarHeader = function SidebarHeader(_ref) {
2063 + var siteTitle = _ref.siteTitle;
2064 + var onCollapse = _ref.onCollapse;
2065 + return /*#__PURE__*/ react.default.createElement(HeaderContainer, null, /*#__PURE__*/ react.default.createElement(HeaderContent, null, /*#__PURE__*/ react.default.createElement(SiteIconBox, null, /*#__PURE__*/ react.default.createElement(EditorIcon, null)), /*#__PURE__*/ react.default.createElement(SiteTitle, { variant: "subtitle1" }, siteTitle), /*#__PURE__*/ react.default.createElement(SearchButton, { onClick: function finderAction() {
2066 + $e.route("finder");
2067 + } }, /*#__PURE__*/ react.default.createElement(_elementor_icons_SearchIcon.default, null))), /*#__PURE__*/ react.default.createElement(CollapseButton, {
2068 + onClick: onCollapse,
2069 + size: "small",
2070 + expanded: true
2071 + }, /*#__PURE__*/ react.default.createElement(_elementor_icons_ChevronRightIcon.default, null)));
2072 + };
2073 + SidebarHeader.propTypes = {
2074 + siteTitle: import_prop_types.default.string.isRequired,
2075 + onCollapse: import_prop_types.default.func.isRequired
2076 + };
3812 2077
3813 -var printWarning = function() {};
2078 +//#endregion
2079 +//#region modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js
2080 + var STORAGE_KEY_PREFIX = "elementor_sidebar_menu_expanded_v2_";
2081 + var SidebarMenuItem = function SidebarMenuItem(_ref) {
2082 + var item = _ref.item;
2083 + var isActive = _ref.isActive;
2084 + var children = _ref.children;
2085 + var activeChildSlug = _ref.activeChildSlug;
2086 + var hasChildren = !!(children !== null && children !== void 0 && children.length);
2087 + var IconComponent = ICON_MAP[item.icon] || DEFAULT_ICON;
2088 + var _useState2 = _slicedToArray((0, react.useState)(function() {
2089 + if (!hasChildren) return false;
2090 + var storageKey = "".concat(STORAGE_KEY_PREFIX).concat(item.slug);
2091 + if (children.some(function(child) {
2092 + return child.slug === activeChildSlug;
2093 + })) {
2094 + localStorage.setItem(storageKey, "true");
2095 + return true;
2096 + }
2097 + var stored = localStorage.getItem(storageKey);
2098 + if (null === stored) return true;
2099 + return "true" === stored;
2100 + }), 2);
2101 + var isExpanded = _useState2[0];
2102 + var setIsExpanded = _useState2[1];
2103 + var handleClick = (0, react.useCallback)(function() {
2104 + if (hasChildren) {
2105 + var newState = !isExpanded;
2106 + setIsExpanded(newState);
2107 + localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
2108 + EditorOneEventManager.sendSidebarMenuGroupToggled({
2109 + eventId: item.event_id,
2110 + isExpanded: newState
2111 + });
2112 + return;
2113 + }
2114 + EditorOneEventManager.sendSidebarMenuItemClicked({ eventId: item.event_id });
2115 + window.location.href = item.url;
2116 + }, [
2117 + hasChildren,
2118 + isExpanded,
2119 + item.event_id,
2120 + item.slug,
2121 + item.url
2122 + ]);
2123 + var handleChildClick = (0, react.useCallback)(function(childItem) {
2124 + EditorOneEventManager.sendSidebarMenuItemClicked({
2125 + eventId: childItem.event_id,
2126 + groupEventId: item.event_id
2127 + });
2128 + }, [item.event_id]);
2129 + return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
2130 + disablePadding: true,
2131 + dense: true,
2132 + disableGutters: true
2133 + }, /*#__PURE__*/ react.default.createElement(MenuItemButton, {
2134 + onClick: handleClick,
2135 + selected: isActive && !hasChildren
2136 + }, /*#__PURE__*/ react.default.createElement(MenuIcon, null, /*#__PURE__*/ react.default.createElement(IconComponent, null)), /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, {
2137 + primary: item.label,
2138 + primaryTypographyProps: { variant: "body2" }
2139 + }), hasChildren && /*#__PURE__*/ react.default.createElement(ExpandIcon, { expanded: isExpanded }))), hasChildren && /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, {
2140 + in: isExpanded,
2141 + timeout: "auto",
2142 + unmountOnExit: true
2143 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.List, { disablePadding: true }, children.map(function(childItem) {
2144 + return /*#__PURE__*/ react.default.createElement(ChildListItem, {
2145 + key: childItem.slug,
2146 + disablePadding: true,
2147 + dense: true,
2148 + disableGutters: true
2149 + }, /*#__PURE__*/ react.default.createElement(ChildMenuItemButton, {
2150 + component: "a",
2151 + href: childItem.url,
2152 + onClick: function onClick() {
2153 + return handleChildClick(childItem);
2154 + },
2155 + selected: childItem.slug === activeChildSlug
2156 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, {
2157 + primary: childItem.label,
2158 + primaryTypographyProps: {
2159 + variant: "body2",
2160 + color: "text.secondary"
2161 + }
2162 + })));
2163 + }))));
2164 + };
2165 + SidebarMenuItem.propTypes = {
2166 + item: import_prop_types.default.object.isRequired,
2167 + isActive: import_prop_types.default.bool.isRequired,
2168 + children: import_prop_types.default.array,
2169 + activeChildSlug: import_prop_types.default.string.isRequired
2170 + };
3814 2171
3815 -if (true) {
3816 - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
3817 - var loggedTypeFailures = {};
3818 - var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
2172 +//#endregion
2173 +//#region modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js
2174 + var SidebarMenu = function SidebarMenu(_ref) {
2175 + var menuItems = _ref.menuItems;
2176 + var level4Groups = _ref.level4Groups;
2177 + var activeMenuSlug = _ref.activeMenuSlug;
2178 + var activeChildSlug = _ref.activeChildSlug;
2179 + var activeStateResolver = (0, react.useMemo)(function() {
2180 + return new MenuActiveStateResolver(activeMenuSlug, activeChildSlug);
2181 + }, [activeMenuSlug, activeChildSlug]);
2182 + var getChildren = function getChildren(item) {
2183 + if (!item.group_id) return null;
2184 + var group = level4Groups[item.group_id];
2185 + if (!group || !group.items || !group.items.length) return null;
2186 + return group.items;
2187 + };
2188 + return /*#__PURE__*/ react.default.createElement(MenuList, null, menuItems.map(function(item) {
2189 + return /*#__PURE__*/ react.default.createElement(react.Fragment, { key: item.slug }, item.has_divider_before && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }), /*#__PURE__*/ react.default.createElement(SidebarMenuItem, {
2190 + item,
2191 + isActive: activeStateResolver.isMenuActive(item),
2192 + activeChildSlug
2193 + }, getChildren(item)));
2194 + }));
2195 + };
2196 + SidebarMenu.propTypes = {
2197 + menuItems: import_prop_types.default.array.isRequired,
2198 + level4Groups: import_prop_types.default.object.isRequired,
2199 + activeMenuSlug: import_prop_types.default.string.isRequired,
2200 + activeChildSlug: import_prop_types.default.string.isRequired
2201 + };
3819 2202
3820 - printWarning = function(text) {
3821 - var message = 'Warning: ' + text;
3822 - if (typeof console !== 'undefined') {
3823 - console.error(message);
3824 - }
3825 - try {
3826 - // --- Welcome to debugging React ---
3827 - // This error was thrown as a convenience so that you can use this stack
3828 - // to find the callsite that caused this warning to fire.
3829 - throw new Error(message);
3830 - } catch (x) { /**/ }
3831 - };
3832 -}
2203 +//#endregion
2204 +//#region modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js
2205 + var STORAGE_KEY = "elementor_sidebar_collapsed";
2206 + var AUTO_COLLAPSE_BREAKPOINT = 960;
2207 + var TRANSITION_DURATION = 300;
2208 + var useSidebarCollapse = function useSidebarCollapse() {
2209 + var _useState2 = _slicedToArray((0, react.useState)(function() {
2210 + var stored = localStorage.getItem(STORAGE_KEY);
2211 + if (null !== stored) return "true" === stored;
2212 + return window.innerWidth <= AUTO_COLLAPSE_BREAKPOINT;
2213 + }), 2);
2214 + var isCollapsed = _useState2[0];
2215 + var setIsCollapsed = _useState2[1];
2216 + (0, react.useEffect)(function() {
2217 + var mediaQuery = window.matchMedia("(max-width: ".concat(AUTO_COLLAPSE_BREAKPOINT, "px)"));
2218 + var handleResize = function handleResize(e) {
2219 + if (e.matches) setIsCollapsed(true);
2220 + else setIsCollapsed("true" === localStorage.getItem(STORAGE_KEY));
2221 + };
2222 + mediaQuery.addEventListener("change", handleResize);
2223 + return function() {
2224 + return mediaQuery.removeEventListener("change", handleResize);
2225 + };
2226 + }, []);
2227 + var toggleCollapse = (0, react.useCallback)(function() {
2228 + var newState = !isCollapsed;
2229 + var body = document.body;
2230 + body.classList.add("e-sidebar-transitioning");
2231 + setIsCollapsed(newState);
2232 + localStorage.setItem(STORAGE_KEY, String(newState));
2233 + setTimeout(function() {
2234 + body.classList.remove("e-sidebar-transitioning");
2235 + }, TRANSITION_DURATION);
2236 + }, [isCollapsed]);
2237 + (0, react.useEffect)(function() {
2238 + var container = document.getElementById("editor-one-sidebar-navigation");
2239 + var body = document.body;
2240 + if (isCollapsed) {
2241 + container === null || container === void 0 || container.classList.add("e-sidebar-collapsed");
2242 + body.classList.add("e-sidebar-is-collapsed");
2243 + } else {
2244 + container === null || container === void 0 || container.classList.remove("e-sidebar-collapsed");
2245 + body.classList.remove("e-sidebar-is-collapsed");
2246 + }
2247 + }, [isCollapsed]);
2248 + return {
2249 + isCollapsed,
2250 + toggleCollapse
2251 + };
2252 + };
3833 2253
3834 -/**
3835 - * Assert that the values match with the type specs.
3836 - * Error messages are memorized and will only be shown once.
3837 - *
3838 - * @param {object} typeSpecs Map of name to a ReactPropType
3839 - * @param {object} values Runtime values that need to be type-checked
3840 - * @param {string} location e.g. "prop", "context", "child context"
3841 - * @param {string} componentName Name of the component for error messages.
3842 - * @param {?Function} getStack Returns the component stack.
3843 - * @private
3844 - */
3845 -function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
3846 - if (true) {
3847 - for (var typeSpecName in typeSpecs) {
3848 - if (has(typeSpecs, typeSpecName)) {
3849 - var error;
3850 - // Prop type validation may throw. In case they do, we don't want to
3851 - // fail the render phase where it didn't fail before. So we log it.
3852 - // After these have been cleaned up, we'll let them throw.
3853 - try {
3854 - // This is intentionally an invariant that gets caught. It's the same
3855 - // behavior as without this statement except with a better message.
3856 - if (typeof typeSpecs[typeSpecName] !== 'function') {
3857 - var err = Error(
3858 - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
3859 - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
3860 - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
3861 - );
3862 - err.name = 'Invariant Violation';
3863 - throw err;
3864 - }
3865 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
3866 - } catch (ex) {
3867 - error = ex;
3868 - }
3869 - if (error && !(error instanceof Error)) {
3870 - printWarning(
3871 - (componentName || 'React class') + ': type specification of ' +
3872 - location + ' `' + typeSpecName + '` is invalid; the type checker ' +
3873 - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
3874 - 'You may have forgotten to pass an argument to the type checker ' +
3875 - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
3876 - 'shape all require an argument).'
3877 - );
3878 - }
3879 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
3880 - // Only monitor this failure once because there tends to be a lot of the
3881 - // same error.
3882 - loggedTypeFailures[error.message] = true;
2254 +//#endregion
2255 +//#region modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js
2256 + var ADMIN_MENU_WRAP_ID = "adminmenuwrap";
2257 + var WPCONTENT_ID = "wpcontent";
2258 + var EDITOR_ONE_TOP_BAR_ID = "editor-one-top-bar";
2259 + var WPADMINBAR_ID = "wpadminbar";
2260 + var INITIALIZED_DATA_ATTR = "data-editor-one-offset-initialized";
2261 + var WPFOOTER_ID = "wpfooter";
2262 + var WPBODY_CONTENT_ID = "wpbody-content";
2263 + var useAdminMenuOffset = function useAdminMenuOffset() {
2264 + var cleanupRef = (0, react.useRef)(null);
2265 + (0, react.useEffect)(function() {
2266 + var adminMenuWrap = document.getElementById(ADMIN_MENU_WRAP_ID);
2267 + var wpcontent = document.getElementById(WPCONTENT_ID);
2268 + if (!adminMenuWrap || !wpcontent || wpcontent.hasAttribute(INITIALIZED_DATA_ATTR)) return;
2269 + var wpfooter = document.getElementById(WPFOOTER_ID);
2270 + var wpbodyContent = document.getElementById(WPBODY_CONTENT_ID);
2271 + wpbodyContent === null || wpbodyContent === void 0 || wpbodyContent.insertBefore(wpfooter, wpbodyContent.querySelector(":scope > .clear"));
2272 + var wpAdminBar = document.getElementById(WPADMINBAR_ID);
2273 + var updateOffset = function updateOffset() {
2274 + var _document$getElementB;
2275 + var _wpAdminBar$clientHei;
2276 + var _topBarHeader$clientH;
2277 + var topBarHeader = (_document$getElementB = document.getElementById(EDITOR_ONE_TOP_BAR_ID)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.querySelector(":scope > header");
2278 + var isRtlLanguage = isRTL();
2279 + var rect = adminMenuWrap.getBoundingClientRect();
2280 + var offset = isRtlLanguage ? document.documentElement.clientWidth - rect.left : rect.right;
2281 + var adminBarHeightPx = "".concat((_wpAdminBar$clientHei = wpAdminBar === null || wpAdminBar === void 0 ? void 0 : wpAdminBar.clientHeight) !== null && _wpAdminBar$clientHei !== void 0 ? _wpAdminBar$clientHei : 0, "px");
2282 + var topBarHeaderHeightPx = "".concat((_topBarHeader$clientH = topBarHeader === null || topBarHeader === void 0 ? void 0 : topBarHeader.clientHeight) !== null && _topBarHeader$clientH !== void 0 ? _topBarHeader$clientH : 0, "px");
2283 + wpcontent.style.setProperty("--editor-one-sidebar-left-offset", "".concat(offset, "px"));
2284 + wpcontent.style.setProperty("--e-admin-bar-height", adminBarHeightPx);
2285 + wpcontent.style.setProperty("--e-top-bar-header-height", topBarHeaderHeightPx);
2286 + };
2287 + updateOffset();
2288 + var resizeObserver = new ResizeObserver(updateOffset);
2289 + resizeObserver.observe(wpcontent);
2290 + var topBar = document.getElementById(EDITOR_ONE_TOP_BAR_ID);
2291 + if (topBar) resizeObserver.observe(topBar);
2292 + window.addEventListener("resize", updateOffset);
2293 + wpcontent.setAttribute(INITIALIZED_DATA_ATTR, "true");
2294 + cleanupRef.current = function() {
2295 + resizeObserver.disconnect();
2296 + window.removeEventListener("resize", updateOffset);
2297 + wpcontent.removeAttribute(INITIALIZED_DATA_ATTR);
2298 + };
2299 + return function() {
2300 + if (cleanupRef.current) {
2301 + cleanupRef.current();
2302 + cleanupRef.current = null;
2303 + }
2304 + };
2305 + }, []);
2306 + };
3883 2307
3884 - var stack = getStack ? getStack() : '';
2308 +//#endregion
2309 +//#region modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js
2310 + var SidebarNavigation = function SidebarNavigation(_ref) {
2311 + var config = _ref.config;
2312 + var _useSidebarCollapse = useSidebarCollapse();
2313 + var isCollapsed = _useSidebarCollapse.isCollapsed;
2314 + var toggleCollapse = _useSidebarCollapse.toggleCollapse;
2315 + useAdminMenuOffset();
2316 + if (isCollapsed) return /*#__PURE__*/ react.default.createElement(NavContainer, {
2317 + component: "nav",
2318 + collapsed: true
2319 + }, /*#__PURE__*/ react.default.createElement(CollapsedHeaderContainer, null, /*#__PURE__*/ react.default.createElement(SiteIconBox, null, /*#__PURE__*/ react.default.createElement(EditorIcon, null)), /*#__PURE__*/ react.default.createElement(CollapseButton, {
2320 + onClick: toggleCollapse,
2321 + size: "small"
2322 + }, /*#__PURE__*/ react.default.createElement(_elementor_icons_ChevronRightIcon.default, null))), /*#__PURE__*/ react.default.createElement(ScrollableContent, null, /*#__PURE__*/ react.default.createElement(SidebarCollapsedMenu, {
2323 + menuItems: config.menuItems,
2324 + level4Groups: config.level4Groups,
2325 + activeMenuSlug: config.activeMenuSlug,
2326 + activeChildSlug: config.activeChildSlug
2327 + })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null), /*#__PURE__*/ react.default.createElement(SidebarUpgradeCta, {
2328 + upgradeUrl: config.upgradeUrl,
2329 + upgradeText: config.upgradeText,
2330 + hasPro: config.hasPro,
2331 + collapsed: true
2332 + }));
2333 + return /*#__PURE__*/ react.default.createElement(NavContainer, { component: "nav" }, /*#__PURE__*/ react.default.createElement(SidebarHeader, {
2334 + siteTitle: config.siteTitle,
2335 + onCollapse: toggleCollapse
2336 + }), /*#__PURE__*/ react.default.createElement(ScrollableContent, null, /*#__PURE__*/ react.default.createElement(SidebarMenu, {
2337 + menuItems: config.menuItems,
2338 + level4Groups: config.level4Groups,
2339 + activeMenuSlug: config.activeMenuSlug,
2340 + activeChildSlug: config.activeChildSlug
2341 + })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null), /*#__PURE__*/ react.default.createElement(SidebarUpgradeCta, {
2342 + upgradeUrl: config.upgradeUrl,
2343 + upgradeText: config.upgradeText,
2344 + hasPro: config.hasPro
2345 + }));
2346 + };
2347 + SidebarNavigation.propTypes = { config: import_prop_types.default.object.isRequired };
3885 2348
3886 - printWarning(
3887 - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
3888 - );
3889 - }
3890 - }
3891 - }
3892 - }
3893 -}
2349 +//#endregion
2350 +//#region modules/editor-one/assets/js/sidebar-navigation/app.js
2351 + var App = function App(_ref) {
2352 + var config = _ref.config;
2353 + var isRtlLanguage = isRTL();
2354 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: isRtlLanguage }, /*#__PURE__*/ react.default.createElement(_elementor_ui.LocalizationProvider, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { colorScheme: "light" }, /*#__PURE__*/ react.default.createElement(SidebarNavigation, { config }))));
2355 + };
2356 + App.propTypes = { config: import_prop_types.default.object.isRequired };
2357 + var rootElement = document.getElementById("editor-one-sidebar-navigation");
2358 + if (rootElement && window.editorOneSidebarConfig) react_default.render(/*#__PURE__*/ react.default.createElement(App, { config: window.editorOneSidebarConfig }), rootElement);
3894 2359
3895 -/**
3896 - * Resets warning cache when testing.
3897 - *
3898 - * @private
3899 - */
3900 -checkPropTypes.resetWarningCache = function() {
3901 - if (true) {
3902 - loggedTypeFailures = {};
3903 - }
3904 -}
3905 -
3906 -module.exports = checkPropTypes;
3907 -
3908 -
3909 -/***/ }),
3910 -
3911 -/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
3912 -/*!*************************************************************!*\
3913 - !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
3914 - \*************************************************************/
3915 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3916 -
3917 -"use strict";
3918 -/**
3919 - * Copyright (c) 2013-present, Facebook, Inc.
3920 - *
3921 - * This source code is licensed under the MIT license found in the
3922 - * LICENSE file in the root directory of this source tree.
3923 - */
3924 -
3925 -
3926 -
3927 -var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
3928 -var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
3929 -
3930 -var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
3931 -var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
3932 -var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
3933 -
3934 -var printWarning = function() {};
3935 -
3936 -if (true) {
3937 - printWarning = function(text) {
3938 - var message = 'Warning: ' + text;
3939 - if (typeof console !== 'undefined') {
3940 - console.error(message);
3941 - }
3942 - try {
3943 - // --- Welcome to debugging React ---
3944 - // This error was thrown as a convenience so that you can use this stack
3945 - // to find the callsite that caused this warning to fire.
3946 - throw new Error(message);
3947 - } catch (x) {}
3948 - };
3949 -}
3950 -
3951 -function emptyFunctionThatReturnsNull() {
3952 - return null;
3953 -}
3954 -
3955 -module.exports = function(isValidElement, throwOnDirectAccess) {
3956 - /* global Symbol */
3957 - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
3958 - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
3959 -
3960 - /**
3961 - * Returns the iterator method function contained on the iterable object.
3962 - *
3963 - * Be sure to invoke the function with the iterable as context:
3964 - *
3965 - * var iteratorFn = getIteratorFn(myIterable);
3966 - * if (iteratorFn) {
3967 - * var iterator = iteratorFn.call(myIterable);
3968 - * ...
3969 - * }
3970 - *
3971 - * @param {?object} maybeIterable
3972 - * @return {?function}
3973 - */
3974 - function getIteratorFn(maybeIterable) {
3975 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
3976 - if (typeof iteratorFn === 'function') {
3977 - return iteratorFn;
3978 - }
3979 - }
3980 -
3981 - /**
3982 - * Collection of methods that allow declaration and validation of props that are
3983 - * supplied to React components. Example usage:
3984 - *
3985 - * var Props = require('ReactPropTypes');
3986 - * var MyArticle = React.createClass({
3987 - * propTypes: {
3988 - * // An optional string prop named "description".
3989 - * description: Props.string,
3990 - *
3991 - * // A required enum prop named "category".
3992 - * category: Props.oneOf(['News','Photos']).isRequired,
3993 - *
3994 - * // A prop named "dialog" that requires an instance of Dialog.
3995 - * dialog: Props.instanceOf(Dialog).isRequired
3996 - * },
3997 - * render: function() { ... }
3998 - * });
3999 - *
4000 - * A more formal specification of how these methods are used:
4001 - *
4002 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
4003 - * decl := ReactPropTypes.{type}(.isRequired)?
4004 - *
4005 - * Each and every declaration produces a function with the same signature. This
4006 - * allows the creation of custom validation functions. For example:
4007 - *
4008 - * var MyLink = React.createClass({
4009 - * propTypes: {
4010 - * // An optional string or URI prop named "href".
4011 - * href: function(props, propName, componentName) {
4012 - * var propValue = props[propName];
4013 - * if (propValue != null && typeof propValue !== 'string' &&
4014 - * !(propValue instanceof URI)) {
4015 - * return new Error(
4016 - * 'Expected a string or an URI for ' + propName + ' in ' +
4017 - * componentName
4018 - * );
4019 - * }
4020 - * }
4021 - * },
4022 - * render: function() {...}
4023 - * });
4024 - *
4025 - * @internal
4026 - */
4027 -
4028 - var ANONYMOUS = '<<anonymous>>';
4029 -
4030 - // Important!
4031 - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
4032 - var ReactPropTypes = {
4033 - array: createPrimitiveTypeChecker('array'),
4034 - bigint: createPrimitiveTypeChecker('bigint'),
4035 - bool: createPrimitiveTypeChecker('boolean'),
4036 - func: createPrimitiveTypeChecker('function'),
4037 - number: createPrimitiveTypeChecker('number'),
4038 - object: createPrimitiveTypeChecker('object'),
4039 - string: createPrimitiveTypeChecker('string'),
4040 - symbol: createPrimitiveTypeChecker('symbol'),
4041 -
4042 - any: createAnyTypeChecker(),
4043 - arrayOf: createArrayOfTypeChecker,
4044 - element: createElementTypeChecker(),
4045 - elementType: createElementTypeTypeChecker(),
4046 - instanceOf: createInstanceTypeChecker,
4047 - node: createNodeChecker(),
4048 - objectOf: createObjectOfTypeChecker,
4049 - oneOf: createEnumTypeChecker,
4050 - oneOfType: createUnionTypeChecker,
4051 - shape: createShapeTypeChecker,
4052 - exact: createStrictShapeTypeChecker,
4053 - };
4054 -
4055 - /**
4056 - * inlined Object.is polyfill to avoid requiring consumers ship their own
4057 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
4058 - */
4059 - /*eslint-disable no-self-compare*/
4060 - function is(x, y) {
4061 - // SameValue algorithm
4062 - if (x === y) {
4063 - // Steps 1-5, 7-10
4064 - // Steps 6.b-6.e: +0 != -0
4065 - return x !== 0 || 1 / x === 1 / y;
4066 - } else {
4067 - // Step 6.a: NaN == NaN
4068 - return x !== x && y !== y;
4069 - }
4070 - }
4071 - /*eslint-enable no-self-compare*/
4072 -
4073 - /**
4074 - * We use an Error-like object for backward compatibility as people may call
4075 - * PropTypes directly and inspect their output. However, we don't use real
4076 - * Errors anymore. We don't inspect their stack anyway, and creating them
4077 - * is prohibitively expensive if they are created too often, such as what
4078 - * happens in oneOfType() for any type before the one that matched.
4079 - */
4080 - function PropTypeError(message, data) {
4081 - this.message = message;
4082 - this.data = data && typeof data === 'object' ? data: {};
4083 - this.stack = '';
4084 - }
4085 - // Make `instanceof Error` still work for returned errors.
4086 - PropTypeError.prototype = Error.prototype;
4087 -
4088 - function createChainableTypeChecker(validate) {
4089 - if (true) {
4090 - var manualPropTypeCallCache = {};
4091 - var manualPropTypeWarningCount = 0;
4092 - }
4093 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
4094 - componentName = componentName || ANONYMOUS;
4095 - propFullName = propFullName || propName;
4096 -
4097 - if (secret !== ReactPropTypesSecret) {
4098 - if (throwOnDirectAccess) {
4099 - // New behavior only for users of `prop-types` package
4100 - var err = new Error(
4101 - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4102 - 'Use `PropTypes.checkPropTypes()` to call them. ' +
4103 - 'Read more at http://fb.me/use-check-prop-types'
4104 - );
4105 - err.name = 'Invariant Violation';
4106 - throw err;
4107 - } else if ( true && typeof console !== 'undefined') {
4108 - // Old behavior for people using React.PropTypes
4109 - var cacheKey = componentName + ':' + propName;
4110 - if (
4111 - !manualPropTypeCallCache[cacheKey] &&
4112 - // Avoid spamming the console because they are often not actionable except for lib authors
4113 - manualPropTypeWarningCount < 3
4114 - ) {
4115 - printWarning(
4116 - 'You are manually calling a React.PropTypes validation ' +
4117 - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
4118 - 'and will throw in the standalone `prop-types` package. ' +
4119 - 'You may be seeing this warning due to a third-party PropTypes ' +
4120 - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
4121 - );
4122 - manualPropTypeCallCache[cacheKey] = true;
4123 - manualPropTypeWarningCount++;
4124 - }
4125 - }
4126 - }
4127 - if (props[propName] == null) {
4128 - if (isRequired) {
4129 - if (props[propName] === null) {
4130 - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
4131 - }
4132 - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
4133 - }
4134 - return null;
4135 - } else {
4136 - return validate(props, propName, componentName, location, propFullName);
4137 - }
4138 - }
4139 -
4140 - var chainedCheckType = checkType.bind(null, false);
4141 - chainedCheckType.isRequired = checkType.bind(null, true);
4142 -
4143 - return chainedCheckType;
4144 - }
4145 -
4146 - function createPrimitiveTypeChecker(expectedType) {
4147 - function validate(props, propName, componentName, location, propFullName, secret) {
4148 - var propValue = props[propName];
4149 - var propType = getPropType(propValue);
4150 - if (propType !== expectedType) {
4151 - // `propValue` being instance of, say, date/regexp, pass the 'object'
4152 - // check, but we can offer a more precise error message here rather than
4153 - // 'of type `object`'.
4154 - var preciseType = getPreciseType(propValue);
4155 -
4156 - return new PropTypeError(
4157 - 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
4158 - {expectedType: expectedType}
4159 - );
4160 - }
4161 - return null;
4162 - }
4163 - return createChainableTypeChecker(validate);
4164 - }
4165 -
4166 - function createAnyTypeChecker() {
4167 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
4168 - }
4169 -
4170 - function createArrayOfTypeChecker(typeChecker) {
4171 - function validate(props, propName, componentName, location, propFullName) {
4172 - if (typeof typeChecker !== 'function') {
4173 - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
4174 - }
4175 - var propValue = props[propName];
4176 - if (!Array.isArray(propValue)) {
4177 - var propType = getPropType(propValue);
4178 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
4179 - }
4180 - for (var i = 0; i < propValue.length; i++) {
4181 - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
4182 - if (error instanceof Error) {
4183 - return error;
4184 - }
4185 - }
4186 - return null;
4187 - }
4188 - return createChainableTypeChecker(validate);
4189 - }
4190 -
4191 - function createElementTypeChecker() {
4192 - function validate(props, propName, componentName, location, propFullName) {
4193 - var propValue = props[propName];
4194 - if (!isValidElement(propValue)) {
4195 - var propType = getPropType(propValue);
4196 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
4197 - }
4198 - return null;
4199 - }
4200 - return createChainableTypeChecker(validate);
4201 - }
4202 -
4203 - function createElementTypeTypeChecker() {
4204 - function validate(props, propName, componentName, location, propFullName) {
4205 - var propValue = props[propName];
4206 - if (!ReactIs.isValidElementType(propValue)) {
4207 - var propType = getPropType(propValue);
4208 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
4209 - }
4210 - return null;
4211 - }
4212 - return createChainableTypeChecker(validate);
4213 - }
4214 -
4215 - function createInstanceTypeChecker(expectedClass) {
4216 - function validate(props, propName, componentName, location, propFullName) {
4217 - if (!(props[propName] instanceof expectedClass)) {
4218 - var expectedClassName = expectedClass.name || ANONYMOUS;
4219 - var actualClassName = getClassName(props[propName]);
4220 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
4221 - }
4222 - return null;
4223 - }
4224 - return createChainableTypeChecker(validate);
4225 - }
4226 -
4227 - function createEnumTypeChecker(expectedValues) {
4228 - if (!Array.isArray(expectedValues)) {
4229 - if (true) {
4230 - if (arguments.length > 1) {
4231 - printWarning(
4232 - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
4233 - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
4234 - );
4235 - } else {
4236 - printWarning('Invalid argument supplied to oneOf, expected an array.');
4237 - }
4238 - }
4239 - return emptyFunctionThatReturnsNull;
4240 - }
4241 -
4242 - function validate(props, propName, componentName, location, propFullName) {
4243 - var propValue = props[propName];
4244 - for (var i = 0; i < expectedValues.length; i++) {
4245 - if (is(propValue, expectedValues[i])) {
4246 - return null;
4247 - }
4248 - }
4249 -
4250 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
4251 - var type = getPreciseType(value);
4252 - if (type === 'symbol') {
4253 - return String(value);
4254 - }
4255 - return value;
4256 - });
4257 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
4258 - }
4259 - return createChainableTypeChecker(validate);
4260 - }
4261 -
4262 - function createObjectOfTypeChecker(typeChecker) {
4263 - function validate(props, propName, componentName, location, propFullName) {
4264 - if (typeof typeChecker !== 'function') {
4265 - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
4266 - }
4267 - var propValue = props[propName];
4268 - var propType = getPropType(propValue);
4269 - if (propType !== 'object') {
4270 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
4271 - }
4272 - for (var key in propValue) {
4273 - if (has(propValue, key)) {
4274 - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4275 - if (error instanceof Error) {
4276 - return error;
4277 - }
4278 - }
4279 - }
4280 - return null;
4281 - }
4282 - return createChainableTypeChecker(validate);
4283 - }
4284 -
4285 - function createUnionTypeChecker(arrayOfTypeCheckers) {
4286 - if (!Array.isArray(arrayOfTypeCheckers)) {
4287 - true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
4288 - return emptyFunctionThatReturnsNull;
4289 - }
4290 -
4291 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4292 - var checker = arrayOfTypeCheckers[i];
4293 - if (typeof checker !== 'function') {
4294 - printWarning(
4295 - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
4296 - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
4297 - );
4298 - return emptyFunctionThatReturnsNull;
4299 - }
4300 - }
4301 -
4302 - function validate(props, propName, componentName, location, propFullName) {
4303 - var expectedTypes = [];
4304 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4305 - var checker = arrayOfTypeCheckers[i];
4306 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
4307 - if (checkerResult == null) {
4308 - return null;
4309 - }
4310 - if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
4311 - expectedTypes.push(checkerResult.data.expectedType);
4312 - }
4313 - }
4314 - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
4315 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
4316 - }
4317 - return createChainableTypeChecker(validate);
4318 - }
4319 -
4320 - function createNodeChecker() {
4321 - function validate(props, propName, componentName, location, propFullName) {
4322 - if (!isNode(props[propName])) {
4323 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
4324 - }
4325 - return null;
4326 - }
4327 - return createChainableTypeChecker(validate);
4328 - }
4329 -
4330 - function invalidValidatorError(componentName, location, propFullName, key, type) {
4331 - return new PropTypeError(
4332 - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
4333 - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
4334 - );
4335 - }
4336 -
4337 - function createShapeTypeChecker(shapeTypes) {
4338 - function validate(props, propName, componentName, location, propFullName) {
4339 - var propValue = props[propName];
4340 - var propType = getPropType(propValue);
4341 - if (propType !== 'object') {
4342 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4343 - }
4344 - for (var key in shapeTypes) {
4345 - var checker = shapeTypes[key];
4346 - if (typeof checker !== 'function') {
4347 - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4348 - }
4349 - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4350 - if (error) {
4351 - return error;
4352 - }
4353 - }
4354 - return null;
4355 - }
4356 - return createChainableTypeChecker(validate);
4357 - }
4358 -
4359 - function createStrictShapeTypeChecker(shapeTypes) {
4360 - function validate(props, propName, componentName, location, propFullName) {
4361 - var propValue = props[propName];
4362 - var propType = getPropType(propValue);
4363 - if (propType !== 'object') {
4364 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4365 - }
4366 - // We need to check all keys in case some are required but missing from props.
4367 - var allKeys = assign({}, props[propName], shapeTypes);
4368 - for (var key in allKeys) {
4369 - var checker = shapeTypes[key];
4370 - if (has(shapeTypes, key) && typeof checker !== 'function') {
4371 - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4372 - }
4373 - if (!checker) {
4374 - return new PropTypeError(
4375 - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
4376 - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
4377 - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
4378 - );
4379 - }
4380 - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4381 - if (error) {
4382 - return error;
4383 - }
4384 - }
4385 - return null;
4386 - }
4387 -
4388 - return createChainableTypeChecker(validate);
4389 - }
4390 -
4391 - function isNode(propValue) {
4392 - switch (typeof propValue) {
4393 - case 'number':
4394 - case 'string':
4395 - case 'undefined':
4396 - return true;
4397 - case 'boolean':
4398 - return !propValue;
4399 - case 'object':
4400 - if (Array.isArray(propValue)) {
4401 - return propValue.every(isNode);
4402 - }
4403 - if (propValue === null || isValidElement(propValue)) {
4404 - return true;
4405 - }
4406 -
4407 - var iteratorFn = getIteratorFn(propValue);
4408 - if (iteratorFn) {
4409 - var iterator = iteratorFn.call(propValue);
4410 - var step;
4411 - if (iteratorFn !== propValue.entries) {
4412 - while (!(step = iterator.next()).done) {
4413 - if (!isNode(step.value)) {
4414 - return false;
4415 - }
4416 - }
4417 - } else {
4418 - // Iterator will provide entry [k,v] tuples rather than values.
4419 - while (!(step = iterator.next()).done) {
4420 - var entry = step.value;
4421 - if (entry) {
4422 - if (!isNode(entry[1])) {
4423 - return false;
4424 - }
4425 - }
4426 - }
4427 - }
4428 - } else {
4429 - return false;
4430 - }
4431 -
4432 - return true;
4433 - default:
4434 - return false;
4435 - }
4436 - }
4437 -
4438 - function isSymbol(propType, propValue) {
4439 - // Native Symbol.
4440 - if (propType === 'symbol') {
4441 - return true;
4442 - }
4443 -
4444 - // falsy value can't be a Symbol
4445 - if (!propValue) {
4446 - return false;
4447 - }
4448 -
4449 - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
4450 - if (propValue['@@toStringTag'] === 'Symbol') {
4451 - return true;
4452 - }
4453 -
4454 - // Fallback for non-spec compliant Symbols which are polyfilled.
4455 - if (typeof Symbol === 'function' && propValue instanceof Symbol) {
4456 - return true;
4457 - }
4458 -
4459 - return false;
4460 - }
4461 -
4462 - // Equivalent of `typeof` but with special handling for array and regexp.
4463 - function getPropType(propValue) {
4464 - var propType = typeof propValue;
4465 - if (Array.isArray(propValue)) {
4466 - return 'array';
4467 - }
4468 - if (propValue instanceof RegExp) {
4469 - // Old webkits (at least until Android 4.0) return 'function' rather than
4470 - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
4471 - // passes PropTypes.object.
4472 - return 'object';
4473 - }
4474 - if (isSymbol(propType, propValue)) {
4475 - return 'symbol';
4476 - }
4477 - return propType;
4478 - }
4479 -
4480 - // This handles more types than `getPropType`. Only used for error messages.
4481 - // See `createPrimitiveTypeChecker`.
4482 - function getPreciseType(propValue) {
4483 - if (typeof propValue === 'undefined' || propValue === null) {
4484 - return '' + propValue;
4485 - }
4486 - var propType = getPropType(propValue);
4487 - if (propType === 'object') {
4488 - if (propValue instanceof Date) {
4489 - return 'date';
4490 - } else if (propValue instanceof RegExp) {
4491 - return 'regexp';
4492 - }
4493 - }
4494 - return propType;
4495 - }
4496 -
4497 - // Returns a string that is postfixed to a warning about an invalid type.
4498 - // For example, "undefined" or "of type array"
4499 - function getPostfixForTypeWarning(value) {
4500 - var type = getPreciseType(value);
4501 - switch (type) {
4502 - case 'array':
4503 - case 'object':
4504 - return 'an ' + type;
4505 - case 'boolean':
4506 - case 'date':
4507 - case 'regexp':
4508 - return 'a ' + type;
4509 - default:
4510 - return type;
4511 - }
4512 - }
4513 -
4514 - // Returns class name of the object, if any.
4515 - function getClassName(propValue) {
4516 - if (!propValue.constructor || !propValue.constructor.name) {
4517 - return ANONYMOUS;
4518 - }
4519 - return propValue.constructor.name;
4520 - }
4521 -
4522 - ReactPropTypes.checkPropTypes = checkPropTypes;
4523 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
4524 - ReactPropTypes.PropTypes = ReactPropTypes;
4525 -
4526 - return ReactPropTypes;
4527 -};
4528 -
4529 -
4530 -/***/ }),
4531 -
4532 -/***/ "../node_modules/prop-types/index.js":
4533 -/*!*******************************************!*\
4534 - !*** ../node_modules/prop-types/index.js ***!
4535 - \*******************************************/
4536 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4537 -
4538 -/**
4539 - * Copyright (c) 2013-present, Facebook, Inc.
4540 - *
4541 - * This source code is licensed under the MIT license found in the
4542 - * LICENSE file in the root directory of this source tree.
4543 - */
4544 -
4545 -if (true) {
4546 - var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
4547 -
4548 - // By explicitly using `prop-types` you are opting into new development behavior.
4549 - // http://fb.me/prop-types-in-prod
4550 - var throwOnDirectAccess = true;
4551 - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
4552 -} else // removed by dead control flow
4553 -{}
4554 -
4555 -
4556 -/***/ }),
4557 -
4558 -/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
4559 -/*!**************************************************************!*\
4560 - !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
4561 - \**************************************************************/
4562 -/***/ ((module) => {
4563 -
4564 -"use strict";
4565 -/**
4566 - * Copyright (c) 2013-present, Facebook, Inc.
4567 - *
4568 - * This source code is licensed under the MIT license found in the
4569 - * LICENSE file in the root directory of this source tree.
4570 - */
4571 -
4572 -
4573 -
4574 -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4575 -
4576 -module.exports = ReactPropTypesSecret;
4577 -
4578 -
4579 -/***/ }),
4580 -
4581 -/***/ "../node_modules/prop-types/lib/has.js":
4582 -/*!*********************************************!*\
4583 - !*** ../node_modules/prop-types/lib/has.js ***!
4584 - \*********************************************/
4585 -/***/ ((module) => {
4586 -
4587 -module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
4588 -
4589 -
4590 -/***/ }),
4591 -
4592 -/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
4593 -/*!************************************************************************************!*\
4594 - !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
4595 - \************************************************************************************/
4596 -/***/ ((__unused_webpack_module, exports) => {
4597 -
4598 -"use strict";
4599 -/** @license React v16.13.1
4600 - * react-is.development.js
4601 - *
4602 - * Copyright (c) Facebook, Inc. and its affiliates.
4603 - *
4604 - * This source code is licensed under the MIT license found in the
4605 - * LICENSE file in the root directory of this source tree.
4606 - */
4607 -
4608 -
4609 -
4610 -
4611 -
4612 -if (true) {
4613 - (function() {
4614 -'use strict';
4615 -
4616 -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
4617 -// nor polyfill, then a plain number is used for performance.
4618 -var hasSymbol = typeof Symbol === 'function' && Symbol.for;
4619 -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
4620 -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
4621 -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
4622 -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
4623 -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
4624 -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
4625 -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
4626 -// (unstable) APIs that have been removed. Can we remove the symbols?
4627 -
4628 -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
4629 -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
4630 -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
4631 -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
4632 -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
4633 -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
4634 -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
4635 -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
4636 -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
4637 -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
4638 -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
4639 -
4640 -function isValidElementType(type) {
4641 - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4642 - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
4643 -}
4644 -
4645 -function typeOf(object) {
4646 - if (typeof object === 'object' && object !== null) {
4647 - var $$typeof = object.$$typeof;
4648 -
4649 - switch ($$typeof) {
4650 - case REACT_ELEMENT_TYPE:
4651 - var type = object.type;
4652 -
4653 - switch (type) {
4654 - case REACT_ASYNC_MODE_TYPE:
4655 - case REACT_CONCURRENT_MODE_TYPE:
4656 - case REACT_FRAGMENT_TYPE:
4657 - case REACT_PROFILER_TYPE:
4658 - case REACT_STRICT_MODE_TYPE:
4659 - case REACT_SUSPENSE_TYPE:
4660 - return type;
4661 -
4662 - default:
4663 - var $$typeofType = type && type.$$typeof;
4664 -
4665 - switch ($$typeofType) {
4666 - case REACT_CONTEXT_TYPE:
4667 - case REACT_FORWARD_REF_TYPE:
4668 - case REACT_LAZY_TYPE:
4669 - case REACT_MEMO_TYPE:
4670 - case REACT_PROVIDER_TYPE:
4671 - return $$typeofType;
4672 -
4673 - default:
4674 - return $$typeof;
4675 - }
4676 -
4677 - }
4678 -
4679 - case REACT_PORTAL_TYPE:
4680 - return $$typeof;
4681 - }
4682 - }
4683 -
4684 - return undefined;
4685 -} // AsyncMode is deprecated along with isAsyncMode
4686 -
4687 -var AsyncMode = REACT_ASYNC_MODE_TYPE;
4688 -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
4689 -var ContextConsumer = REACT_CONTEXT_TYPE;
4690 -var ContextProvider = REACT_PROVIDER_TYPE;
4691 -var Element = REACT_ELEMENT_TYPE;
4692 -var ForwardRef = REACT_FORWARD_REF_TYPE;
4693 -var Fragment = REACT_FRAGMENT_TYPE;
4694 -var Lazy = REACT_LAZY_TYPE;
4695 -var Memo = REACT_MEMO_TYPE;
4696 -var Portal = REACT_PORTAL_TYPE;
4697 -var Profiler = REACT_PROFILER_TYPE;
4698 -var StrictMode = REACT_STRICT_MODE_TYPE;
4699 -var Suspense = REACT_SUSPENSE_TYPE;
4700 -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
4701 -
4702 -function isAsyncMode(object) {
4703 - {
4704 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
4705 - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
4706 -
4707 - console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
4708 - }
4709 - }
4710 -
4711 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
4712 -}
4713 -function isConcurrentMode(object) {
4714 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
4715 -}
4716 -function isContextConsumer(object) {
4717 - return typeOf(object) === REACT_CONTEXT_TYPE;
4718 -}
4719 -function isContextProvider(object) {
4720 - return typeOf(object) === REACT_PROVIDER_TYPE;
4721 -}
4722 -function isElement(object) {
4723 - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4724 -}
4725 -function isForwardRef(object) {
4726 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
4727 -}
4728 -function isFragment(object) {
4729 - return typeOf(object) === REACT_FRAGMENT_TYPE;
4730 -}
4731 -function isLazy(object) {
4732 - return typeOf(object) === REACT_LAZY_TYPE;
4733 -}
4734 -function isMemo(object) {
4735 - return typeOf(object) === REACT_MEMO_TYPE;
4736 -}
4737 -function isPortal(object) {
4738 - return typeOf(object) === REACT_PORTAL_TYPE;
4739 -}
4740 -function isProfiler(object) {
4741 - return typeOf(object) === REACT_PROFILER_TYPE;
4742 -}
4743 -function isStrictMode(object) {
4744 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
4745 -}
4746 -function isSuspense(object) {
4747 - return typeOf(object) === REACT_SUSPENSE_TYPE;
4748 -}
4749 -
4750 -exports.AsyncMode = AsyncMode;
4751 -exports.ConcurrentMode = ConcurrentMode;
4752 -exports.ContextConsumer = ContextConsumer;
4753 -exports.ContextProvider = ContextProvider;
4754 -exports.Element = Element;
4755 -exports.ForwardRef = ForwardRef;
4756 -exports.Fragment = Fragment;
4757 -exports.Lazy = Lazy;
4758 -exports.Memo = Memo;
4759 -exports.Portal = Portal;
4760 -exports.Profiler = Profiler;
4761 -exports.StrictMode = StrictMode;
4762 -exports.Suspense = Suspense;
4763 -exports.isAsyncMode = isAsyncMode;
4764 -exports.isConcurrentMode = isConcurrentMode;
4765 -exports.isContextConsumer = isContextConsumer;
4766 -exports.isContextProvider = isContextProvider;
4767 -exports.isElement = isElement;
4768 -exports.isForwardRef = isForwardRef;
4769 -exports.isFragment = isFragment;
4770 -exports.isLazy = isLazy;
4771 -exports.isMemo = isMemo;
4772 -exports.isPortal = isPortal;
4773 -exports.isProfiler = isProfiler;
4774 -exports.isStrictMode = isStrictMode;
4775 -exports.isSuspense = isSuspense;
4776 -exports.isValidElementType = isValidElementType;
4777 -exports.typeOf = typeOf;
4778 - })();
4779 -}
4780 -
4781 -
4782 -/***/ }),
4783 -
4784 -/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
4785 -/*!*****************************************************************!*\
4786 - !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
4787 - \*****************************************************************/
4788 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4789 -
4790 -"use strict";
4791 -
4792 -
4793 -if (false) // removed by dead control flow
4794 -{} else {
4795 - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
4796 -}
4797 -
4798 -
4799 -/***/ }),
4800 -
4801 -/***/ "../node_modules/react-dom/client.js":
4802 -/*!*******************************************!*\
4803 - !*** ../node_modules/react-dom/client.js ***!
4804 - \*******************************************/
4805 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4806 -
4807 -"use strict";
4808 -
4809 -
4810 -var m = __webpack_require__(/*! react-dom */ "react-dom");
4811 -if (false) // removed by dead control flow
4812 -{} else {
4813 - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4814 - exports.createRoot = function(c, o) {
4815 - i.usingClientEntryPoint = true;
4816 - try {
4817 - return m.createRoot(c, o);
4818 - } finally {
4819 - i.usingClientEntryPoint = false;
4820 - }
4821 - };
4822 - exports.hydrateRoot = function(c, h, o) {
4823 - i.usingClientEntryPoint = true;
4824 - try {
4825 - return m.hydrateRoot(c, h, o);
4826 - } finally {
4827 - i.usingClientEntryPoint = false;
4828 - }
4829 - };
4830 -}
4831 -
4832 -
4833 -/***/ }),
4834 -
4835 -/***/ "../node_modules/tslib/tslib.es6.mjs":
4836 -/*!*******************************************!*\
4837 - !*** ../node_modules/tslib/tslib.es6.mjs ***!
4838 - \*******************************************/
4839 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4840 -
4841 -"use strict";
4842 -__webpack_require__.r(__webpack_exports__);
4843 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4844 -/* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource),
4845 -/* harmony export */ __assign: () => (/* binding */ __assign),
4846 -/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
4847 -/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
4848 -/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
4849 -/* harmony export */ __await: () => (/* binding */ __await),
4850 -/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
4851 -/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
4852 -/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
4853 -/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
4854 -/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
4855 -/* harmony export */ __decorate: () => (/* binding */ __decorate),
4856 -/* harmony export */ __disposeResources: () => (/* binding */ __disposeResources),
4857 -/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
4858 -/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
4859 -/* harmony export */ __extends: () => (/* binding */ __extends),
4860 -/* harmony export */ __generator: () => (/* binding */ __generator),
4861 -/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
4862 -/* harmony export */ __importStar: () => (/* binding */ __importStar),
4863 -/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
4864 -/* harmony export */ __metadata: () => (/* binding */ __metadata),
4865 -/* harmony export */ __param: () => (/* binding */ __param),
4866 -/* harmony export */ __propKey: () => (/* binding */ __propKey),
4867 -/* harmony export */ __read: () => (/* binding */ __read),
4868 -/* harmony export */ __rest: () => (/* binding */ __rest),
4869 -/* harmony export */ __rewriteRelativeImportExtension: () => (/* binding */ __rewriteRelativeImportExtension),
4870 -/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
4871 -/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
4872 -/* harmony export */ __spread: () => (/* binding */ __spread),
4873 -/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
4874 -/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
4875 -/* harmony export */ __values: () => (/* binding */ __values),
4876 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4877 -/* harmony export */ });
4878 -/******************************************************************************
4879 -Copyright (c) Microsoft Corporation.
4880 -
4881 -Permission to use, copy, modify, and/or distribute this software for any
4882 -purpose with or without fee is hereby granted.
4883 -
4884 -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4885 -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4886 -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4887 -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4888 -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4889 -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4890 -PERFORMANCE OF THIS SOFTWARE.
4891 -***************************************************************************** */
4892 -/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
4893 -
4894 -var extendStatics = function(d, b) {
4895 - extendStatics = Object.setPrototypeOf ||
4896 - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4897 - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4898 - return extendStatics(d, b);
4899 -};
4900 -
4901 -function __extends(d, b) {
4902 - if (typeof b !== "function" && b !== null)
4903 - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4904 - extendStatics(d, b);
4905 - function __() { this.constructor = d; }
4906 - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4907 -}
4908 -
4909 -var __assign = function() {
4910 - __assign = Object.assign || function __assign(t) {
4911 - for (var s, i = 1, n = arguments.length; i < n; i++) {
4912 - s = arguments[i];
4913 - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4914 - }
4915 - return t;
4916 - }
4917 - return __assign.apply(this, arguments);
4918 -}
4919 -
4920 -function __rest(s, e) {
4921 - var t = {};
4922 - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4923 - t[p] = s[p];
4924 - if (s != null && typeof Object.getOwnPropertySymbols === "function")
4925 - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4926 - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4927 - t[p[i]] = s[p[i]];
4928 - }
4929 - return t;
4930 -}
4931 -
4932 -function __decorate(decorators, target, key, desc) {
4933 - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4934 - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4935 - 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;
4936 - return c > 3 && r && Object.defineProperty(target, key, r), r;
4937 -}
4938 -
4939 -function __param(paramIndex, decorator) {
4940 - return function (target, key) { decorator(target, key, paramIndex); }
4941 -}
4942 -
4943 -function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
4944 - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4945 - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4946 - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
4947 - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
4948 - var _, done = false;
4949 - for (var i = decorators.length - 1; i >= 0; i--) {
4950 - var context = {};
4951 - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
4952 - for (var p in contextIn.access) context.access[p] = contextIn.access[p];
4953 - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
4954 - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
4955 - if (kind === "accessor") {
4956 - if (result === void 0) continue;
4957 - if (result === null || typeof result !== "object") throw new TypeError("Object expected");
4958 - if (_ = accept(result.get)) descriptor.get = _;
4959 - if (_ = accept(result.set)) descriptor.set = _;
4960 - if (_ = accept(result.init)) initializers.unshift(_);
4961 - }
4962 - else if (_ = accept(result)) {
4963 - if (kind === "field") initializers.unshift(_);
4964 - else descriptor[key] = _;
4965 - }
4966 - }
4967 - if (target) Object.defineProperty(target, contextIn.name, descriptor);
4968 - done = true;
4969 -};
4970 -
4971 -function __runInitializers(thisArg, initializers, value) {
4972 - var useValue = arguments.length > 2;
4973 - for (var i = 0; i < initializers.length; i++) {
4974 - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
4975 - }
4976 - return useValue ? value : void 0;
4977 -};
4978 -
4979 -function __propKey(x) {
4980 - return typeof x === "symbol" ? x : "".concat(x);
4981 -};
4982 -
4983 -function __setFunctionName(f, name, prefix) {
4984 - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
4985 - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
4986 -};
4987 -
4988 -function __metadata(metadataKey, metadataValue) {
4989 - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
4990 -}
4991 -
4992 -function __awaiter(thisArg, _arguments, P, generator) {
4993 - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4994 - return new (P || (P = Promise))(function (resolve, reject) {
4995 - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
4996 - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
4997 - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
4998 - step((generator = generator.apply(thisArg, _arguments || [])).next());
4999 - });
5000 -}
5001 -
5002 -function __generator(thisArg, body) {
5003 - 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);
5004 - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5005 - function verb(n) { return function (v) { return step([n, v]); }; }
5006 - function step(op) {
5007 - if (f) throw new TypeError("Generator is already executing.");
5008 - while (g && (g = 0, op[0] && (_ = 0)), _) try {
5009 - 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;
5010 - if (y = 0, t) op = [op[0] & 2, t.value];
5011 - switch (op[0]) {
5012 - case 0: case 1: t = op; break;
5013 - case 4: _.label++; return { value: op[1], done: false };
5014 - case 5: _.label++; y = op[1]; op = [0]; continue;
5015 - case 7: op = _.ops.pop(); _.trys.pop(); continue;
5016 - default:
5017 - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5018 - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5019 - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5020 - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5021 - if (t[2]) _.ops.pop();
5022 - _.trys.pop(); continue;
5023 - }
5024 - op = body.call(thisArg, _);
5025 - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5026 - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5027 - }
5028 -}
5029 -
5030 -var __createBinding = Object.create ? (function(o, m, k, k2) {
5031 - if (k2 === undefined) k2 = k;
5032 - var desc = Object.getOwnPropertyDescriptor(m, k);
5033 - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5034 - desc = { enumerable: true, get: function() { return m[k]; } };
5035 - }
5036 - Object.defineProperty(o, k2, desc);
5037 -}) : (function(o, m, k, k2) {
5038 - if (k2 === undefined) k2 = k;
5039 - o[k2] = m[k];
5040 -});
5041 -
5042 -function __exportStar(m, o) {
5043 - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
5044 -}
5045 -
5046 -function __values(o) {
5047 - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5048 - if (m) return m.call(o);
5049 - if (o && typeof o.length === "number") return {
5050 - next: function () {
5051 - if (o && i >= o.length) o = void 0;
5052 - return { value: o && o[i++], done: !o };
5053 - }
5054 - };
5055 - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5056 -}
5057 -
5058 -function __read(o, n) {
5059 - var m = typeof Symbol === "function" && o[Symbol.iterator];
5060 - if (!m) return o;
5061 - var i = m.call(o), r, ar = [], e;
5062 - try {
5063 - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5064 - }
5065 - catch (error) { e = { error: error }; }
5066 - finally {
5067 - try {
5068 - if (r && !r.done && (m = i["return"])) m.call(i);
5069 - }
5070 - finally { if (e) throw e.error; }
5071 - }
5072 - return ar;
5073 -}
5074 -
5075 -/** @deprecated */
5076 -function __spread() {
5077 - for (var ar = [], i = 0; i < arguments.length; i++)
5078 - ar = ar.concat(__read(arguments[i]));
5079 - return ar;
5080 -}
5081 -
5082 -/** @deprecated */
5083 -function __spreadArrays() {
5084 - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5085 - for (var r = Array(s), k = 0, i = 0; i < il; i++)
5086 - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
5087 - r[k] = a[j];
5088 - return r;
5089 -}
5090 -
5091 -function __spreadArray(to, from, pack) {
5092 - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5093 - if (ar || !(i in from)) {
5094 - if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5095 - ar[i] = from[i];
5096 - }
5097 - }
5098 - return to.concat(ar || Array.prototype.slice.call(from));
5099 -}
5100 -
5101 -function __await(v) {
5102 - return this instanceof __await ? (this.v = v, this) : new __await(v);
5103 -}
5104 -
5105 -function __asyncGenerator(thisArg, _arguments, generator) {
5106 - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5107 - var g = generator.apply(thisArg, _arguments || []), i, q = [];
5108 - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
5109 - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
5110 - 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]); } }
5111 - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
5112 - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
5113 - function fulfill(value) { resume("next", value); }
5114 - function reject(value) { resume("throw", value); }
5115 - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
5116 -}
5117 -
5118 -function __asyncDelegator(o) {
5119 - var i, p;
5120 - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
5121 - 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; }
5122 -}
5123 -
5124 -function __asyncValues(o) {
5125 - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5126 - var m = o[Symbol.asyncIterator], i;
5127 - 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);
5128 - 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); }); }; }
5129 - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
5130 -}
5131 -
5132 -function __makeTemplateObject(cooked, raw) {
5133 - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5134 - return cooked;
5135 -};
5136 -
5137 -var __setModuleDefault = Object.create ? (function(o, v) {
5138 - Object.defineProperty(o, "default", { enumerable: true, value: v });
5139 -}) : function(o, v) {
5140 - o["default"] = v;
5141 -};
5142 -
5143 -var ownKeys = function(o) {
5144 - ownKeys = Object.getOwnPropertyNames || function (o) {
5145 - var ar = [];
5146 - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
5147 - return ar;
5148 - };
5149 - return ownKeys(o);
5150 -};
5151 -
5152 -function __importStar(mod) {
5153 - if (mod && mod.__esModule) return mod;
5154 - var result = {};
5155 - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
5156 - __setModuleDefault(result, mod);
5157 - return result;
5158 -}
5159 -
5160 -function __importDefault(mod) {
5161 - return (mod && mod.__esModule) ? mod : { default: mod };
5162 -}
5163 -
5164 -function __classPrivateFieldGet(receiver, state, kind, f) {
5165 - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5166 - 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");
5167 - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5168 -}
5169 -
5170 -function __classPrivateFieldSet(receiver, state, value, kind, f) {
5171 - if (kind === "m") throw new TypeError("Private method is not writable");
5172 - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5173 - 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");
5174 - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5175 -}
5176 -
5177 -function __classPrivateFieldIn(state, receiver) {
5178 - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
5179 - return typeof state === "function" ? receiver === state : state.has(receiver);
5180 -}
5181 -
5182 -function __addDisposableResource(env, value, async) {
5183 - if (value !== null && value !== void 0) {
5184 - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
5185 - var dispose, inner;
5186 - if (async) {
5187 - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
5188 - dispose = value[Symbol.asyncDispose];
5189 - }
5190 - if (dispose === void 0) {
5191 - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
5192 - dispose = value[Symbol.dispose];
5193 - if (async) inner = dispose;
5194 - }
5195 - if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
5196 - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
5197 - env.stack.push({ value: value, dispose: dispose, async: async });
5198 - }
5199 - else if (async) {
5200 - env.stack.push({ async: true });
5201 - }
5202 - return value;
5203 -}
5204 -
5205 -var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5206 - var e = new Error(message);
5207 - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5208 -};
5209 -
5210 -function __disposeResources(env) {
5211 - function fail(e) {
5212 - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
5213 - env.hasError = true;
5214 - }
5215 - var r, s = 0;
5216 - function next() {
5217 - while (r = env.stack.pop()) {
5218 - try {
5219 - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
5220 - if (r.dispose) {
5221 - var result = r.dispose.call(r.value);
5222 - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
5223 - }
5224 - else s |= 1;
5225 - }
5226 - catch (e) {
5227 - fail(e);
5228 - }
5229 - }
5230 - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
5231 - if (env.hasError) throw env.error;
5232 - }
5233 - return next();
5234 -}
5235 -
5236 -function __rewriteRelativeImportExtension(path, preserveJsx) {
5237 - if (typeof path === "string" && /^\.\.?\//.test(path)) {
5238 - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
5239 - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
5240 - });
5241 - }
5242 - return path;
5243 -}
5244 -
5245 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
5246 - __extends,
5247 - __assign,
5248 - __rest,
5249 - __decorate,
5250 - __param,
5251 - __esDecorate,
5252 - __runInitializers,
5253 - __propKey,
5254 - __setFunctionName,
5255 - __metadata,
5256 - __awaiter,
5257 - __generator,
5258 - __createBinding,
5259 - __exportStar,
5260 - __values,
5261 - __read,
5262 - __spread,
5263 - __spreadArrays,
5264 - __spreadArray,
5265 - __await,
5266 - __asyncGenerator,
5267 - __asyncDelegator,
5268 - __asyncValues,
5269 - __makeTemplateObject,
5270 - __importStar,
5271 - __importDefault,
5272 - __classPrivateFieldGet,
5273 - __classPrivateFieldSet,
5274 - __classPrivateFieldIn,
5275 - __addDisposableResource,
5276 - __disposeResources,
5277 - __rewriteRelativeImportExtension,
5278 -});
5279 -
5280 -
5281 -/***/ }),
5282 -
5283 -/***/ "@elementor/icons":
5284 -/*!************************************!*\
5285 - !*** external "elementorV2.icons" ***!
5286 - \************************************/
5287 -/***/ ((module) => {
5288 -
5289 -"use strict";
5290 -module.exports = elementorV2.icons;
5291 -
5292 -/***/ }),
5293 -
5294 -/***/ "@elementor/icons/AdjustmentsIcon":
5295 -/*!*******************************************************!*\
5296 - !*** external "elementorV2.icons['AdjustmentsIcon']" ***!
5297 - \*******************************************************/
5298 -/***/ ((module) => {
5299 -
5300 -"use strict";
5301 -module.exports = elementorV2.icons['AdjustmentsIcon'];
5302 -
5303 -/***/ }),
5304 -
5305 -/***/ "@elementor/icons/ChevronDownSmallIcon":
5306 -/*!************************************************************!*\
5307 - !*** external "elementorV2.icons['ChevronDownSmallIcon']" ***!
5308 - \************************************************************/
5309 -/***/ ((module) => {
5310 -
5311 -"use strict";
5312 -module.exports = elementorV2.icons['ChevronDownSmallIcon'];
5313 -
5314 -/***/ }),
5315 -
5316 -/***/ "@elementor/icons/ChevronRightIcon":
5317 -/*!********************************************************!*\
5318 - !*** external "elementorV2.icons['ChevronRightIcon']" ***!
5319 - \********************************************************/
5320 -/***/ ((module) => {
5321 -
5322 -"use strict";
5323 -module.exports = elementorV2.icons['ChevronRightIcon'];
5324 -
5325 -/***/ }),
5326 -
5327 -/***/ "@elementor/icons/FileSettingsIcon":
5328 -/*!********************************************************!*\
5329 - !*** external "elementorV2.icons['FileSettingsIcon']" ***!
5330 - \********************************************************/
5331 -/***/ ((module) => {
5332 -
5333 -"use strict";
5334 -module.exports = elementorV2.icons['FileSettingsIcon'];
5335 -
5336 -/***/ }),
5337 -
5338 -/***/ "@elementor/icons/FolderIcon":
5339 -/*!**************************************************!*\
5340 - !*** external "elementorV2.icons['FolderIcon']" ***!
5341 - \**************************************************/
5342 -/***/ ((module) => {
5343 -
5344 -"use strict";
5345 -module.exports = elementorV2.icons['FolderIcon'];
5346 -
5347 -/***/ }),
5348 -
5349 -/***/ "@elementor/icons/HomeIcon":
5350 -/*!************************************************!*\
5351 - !*** external "elementorV2.icons['HomeIcon']" ***!
5352 - \************************************************/
5353 -/***/ ((module) => {
5354 -
5355 -"use strict";
5356 -module.exports = elementorV2.icons['HomeIcon'];
5357 -
5358 -/***/ }),
5359 -
5360 -/***/ "@elementor/icons/PlugIcon":
5361 -/*!************************************************!*\
5362 - !*** external "elementorV2.icons['PlugIcon']" ***!
5363 - \************************************************/
5364 -/***/ ((module) => {
5365 -
5366 -"use strict";
5367 -module.exports = elementorV2.icons['PlugIcon'];
5368 -
5369 -/***/ }),
5370 -
5371 -/***/ "@elementor/icons/RocketIcon":
5372 -/*!**************************************************!*\
5373 - !*** external "elementorV2.icons['RocketIcon']" ***!
5374 - \**************************************************/
5375 -/***/ ((module) => {
5376 -
5377 -"use strict";
5378 -module.exports = elementorV2.icons['RocketIcon'];
5379 -
5380 -/***/ }),
5381 -
5382 -/***/ "@elementor/icons/SearchIcon":
5383 -/*!**************************************************!*\
5384 - !*** external "elementorV2.icons['SearchIcon']" ***!
5385 - \**************************************************/
5386 -/***/ ((module) => {
5387 -
5388 -"use strict";
5389 -module.exports = elementorV2.icons['SearchIcon'];
5390 -
5391 -/***/ }),
5392 -
5393 -/***/ "@elementor/icons/SendIcon":
5394 -/*!************************************************!*\
5395 - !*** external "elementorV2.icons['SendIcon']" ***!
5396 - \************************************************/
5397 -/***/ ((module) => {
5398 -
5399 -"use strict";
5400 -module.exports = elementorV2.icons['SendIcon'];
5401 -
5402 -/***/ }),
5403 -
5404 -/***/ "@elementor/icons/SettingsIcon":
5405 -/*!****************************************************!*\
5406 - !*** external "elementorV2.icons['SettingsIcon']" ***!
5407 - \****************************************************/
5408 -/***/ ((module) => {
5409 -
5410 -"use strict";
5411 -module.exports = elementorV2.icons['SettingsIcon'];
5412 -
5413 -/***/ }),
5414 -
5415 -/***/ "@elementor/icons/UsersIcon":
5416 -/*!*************************************************!*\
5417 - !*** external "elementorV2.icons['UsersIcon']" ***!
5418 - \*************************************************/
5419 -/***/ ((module) => {
5420 -
5421 -"use strict";
5422 -module.exports = elementorV2.icons['UsersIcon'];
5423 -
5424 -/***/ }),
5425 -
5426 -/***/ "@elementor/ui":
5427 -/*!*********************************!*\
5428 - !*** external "elementorV2.ui" ***!
5429 - \*********************************/
5430 -/***/ ((module) => {
5431 -
5432 -"use strict";
5433 -module.exports = elementorV2.ui;
5434 -
5435 -/***/ }),
5436 -
5437 -/***/ "react":
5438 -/*!************************!*\
5439 - !*** external "React" ***!
5440 - \************************/
5441 -/***/ ((module) => {
5442 -
5443 -"use strict";
5444 -module.exports = React;
5445 -
5446 -/***/ }),
5447 -
5448 -/***/ "react-dom":
5449 -/*!***************************!*\
5450 - !*** external "ReactDOM" ***!
5451 - \***************************/
5452 -/***/ ((module) => {
5453 -
5454 -"use strict";
5455 -module.exports = ReactDOM;
5456 -
5457 -/***/ })
5458 -
5459 -/******/ });
5460 -/************************************************************************/
5461 -/******/ // The module cache
5462 -/******/ var __webpack_module_cache__ = {};
5463 -/******/
5464 -/******/ // The require function
5465 -/******/ function __webpack_require__(moduleId) {
5466 -/******/ // Check if module is in cache
5467 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
5468 -/******/ if (cachedModule !== undefined) {
5469 -/******/ return cachedModule.exports;
5470 -/******/ }
5471 -/******/ // Create a new module (and put it into the cache)
5472 -/******/ var module = __webpack_module_cache__[moduleId] = {
5473 -/******/ // no module.id needed
5474 -/******/ // no module.loaded needed
5475 -/******/ exports: {}
5476 -/******/ };
5477 -/******/
5478 -/******/ // Execute the module function
5479 -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
5480 -/******/
5481 -/******/ // Return the exports of the module
5482 -/******/ return module.exports;
5483 -/******/ }
5484 -/******/
5485 -/************************************************************************/
5486 -/******/ /* webpack/runtime/compat get default export */
5487 -/******/ (() => {
5488 -/******/ // getDefaultExport function for compatibility with non-harmony modules
5489 -/******/ __webpack_require__.n = (module) => {
5490 -/******/ var getter = module && module.__esModule ?
5491 -/******/ () => (module['default']) :
5492 -/******/ () => (module);
5493 -/******/ __webpack_require__.d(getter, { a: getter });
5494 -/******/ return getter;
5495 -/******/ };
5496 -/******/ })();
5497 -/******/
5498 -/******/ /* webpack/runtime/define property getters */
5499 -/******/ (() => {
5500 -/******/ // define getter functions for harmony exports
5501 -/******/ __webpack_require__.d = (exports, definition) => {
5502 -/******/ for(var key in definition) {
5503 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5504 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5505 -/******/ }
5506 -/******/ }
5507 -/******/ };
5508 -/******/ })();
5509 -/******/
5510 -/******/ /* webpack/runtime/hasOwnProperty shorthand */
5511 -/******/ (() => {
5512 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5513 -/******/ })();
5514 -/******/
5515 -/******/ /* webpack/runtime/make namespace object */
5516 -/******/ (() => {
5517 -/******/ // define __esModule on exports
5518 -/******/ __webpack_require__.r = (exports) => {
5519 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5520 -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5521 -/******/ }
5522 -/******/ Object.defineProperty(exports, '__esModule', { value: true });
5523 -/******/ };
5524 -/******/ })();
5525 -/******/
5526 -/************************************************************************/
5527 -var __webpack_exports__ = {};
5528 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
5529 -(() => {
5530 -"use strict";
5531 -/*!*****************************************************************!*\
5532 - !*** ../modules/editor-one/assets/js/sidebar-navigation/app.js ***!
5533 - \*****************************************************************/
5534 -
5535 -
5536 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
5537 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
5538 -var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
5539 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
5540 -var _index = _interopRequireDefault(__webpack_require__(/*! ./components/index */ "../modules/editor-one/assets/js/sidebar-navigation/components/index.js"));
5541 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
5542 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
5543 -var App = function App(_ref) {
5544 - var config = _ref.config;
5545 - var isRtlLanguage = (0, _isRtl.default)();
5546 - return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
5547 - rtl: isRtlLanguage
5548 - }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
5549 - colorScheme: "light"
5550 - }, /*#__PURE__*/_react.default.createElement(_index.default, {
5551 - config: config
5552 - }))));
5553 -};
5554 -App.propTypes = {
5555 - config: _propTypes.default.object.isRequired
5556 -};
5557 -var rootElement = document.getElementById('editor-one-sidebar-navigation');
5558 -if (rootElement && window.editorOneSidebarConfig) {
5559 - _react2.default.render(/*#__PURE__*/_react.default.createElement(App, {
5560 - config: window.editorOneSidebarConfig
5561 - }), rootElement);
5562 -}
5563 -})();
5564 -
5565 -/******/ })()
5566 -;
2360 +//#endregion
2361 +})(React, ReactDOM, elementorV2.ui, elementorV2.icons['ChevronRightIcon'], elementorV2.icons['AdjustmentsIcon'], elementorV2.icons['FolderIcon'], elementorV2.icons['RocketIcon'], elementorV2.icons['HomeIcon'], elementorV2.icons['SendIcon'], elementorV2.icons['SettingsIcon'], elementorV2.icons['UsersIcon'], elementorV2.icons['PlugIcon'], elementorV2.icons['FileSettingsIcon'], elementorV2.icons['ChevronDownSmallIcon'], elementorV2.icons, elementorV2.icons['SearchIcon']);
5567 2362 //# sourceMappingURL=editor-one-sidebar-navigation.js.map