PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev2
Elementor Website Builder – more than just a page builder v3.35.0-dev2
4.3.2 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 All 455 releases
← All changes | assets/js/editor-one-sidebar-navigation.js +5465 -2303 4.3.0 → 3.35.0-dev2 View file →
@@ -1,2362 +1,5524 @@
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) {
1 +/******/ (() => { // webpackBootstrap
2 +/******/ var __webpack_modules__ = ({
2 3
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));
4 +/***/ "../assets/dev/js/utils/react.js":
5 +/*!***************************************!*\
6 + !*** ../assets/dev/js/utils/react.js ***!
7 + \***************************************/
8 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
33 9
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);
10 +"use strict";
49 11
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 - }));
63 12
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 };
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 +};
93 54
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 - }
55 +/***/ }),
105 56
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 - };
57 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js":
58 +/*!************************************************************************************************!*\
59 + !*** ../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js ***!
60 + \************************************************************************************************/
61 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
124 62
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 - }));
63 +"use strict";
275 64
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 - }));
281 65
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 - }));
66 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
67 +Object.defineProperty(exports, "__esModule", ({
68 + value: true
69 +}));
70 +exports["default"] = void 0;
71 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
72 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
73 +var MenuActiveStateResolver = /*#__PURE__*/function () {
74 + function MenuActiveStateResolver(activeMenuSlug, activeChildSlug) {
75 + (0, _classCallCheck2.default)(this, MenuActiveStateResolver);
76 + this.activeMenuSlug = activeMenuSlug;
77 + this.activeChildSlug = activeChildSlug;
78 + }
79 + return (0, _createClass2.default)(MenuActiveStateResolver, [{
80 + key: "isMenuActive",
81 + value: function isMenuActive(item) {
82 + return item.slug === this.activeMenuSlug;
83 + }
84 + }, {
85 + key: "isChildActive",
86 + value: function isChildActive(childItem) {
87 + return childItem.slug === this.activeChildSlug;
88 + }
89 + }]);
90 +}();
91 +var _default = exports["default"] = MenuActiveStateResolver;
333 92
334 -//#endregion
335 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
93 +/***/ }),
94 +
95 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js":
96 +/*!*******************************************************************************************************************!*\
97 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js ***!
98 + \*******************************************************************************************************************/
99 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
100 +
101 +"use strict";
102 +
103 +
104 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
105 +Object.defineProperty(exports, "__esModule", ({
106 + value: true
107 +}));
108 +exports["default"] = void 0;
109 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
110 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
111 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
112 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
113 +var CollapsedMenuItemPopover = function CollapsedMenuItemPopover(_ref) {
114 + var item = _ref.item,
115 + children = _ref.children,
116 + activeChildSlug = _ref.activeChildSlug,
117 + isPopoverOpen = _ref.isPopoverOpen,
118 + anchorEl = _ref.anchorEl,
119 + onClose = _ref.onClose,
120 + IconComponent = _ref.IconComponent,
121 + isActive = _ref.isActive,
122 + onMouseEnter = _ref.onMouseEnter,
123 + anchorRef = _ref.anchorRef;
124 + return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
125 + disablePadding: true,
126 + dense: true,
127 + disableGutters: true,
128 + onMouseEnter: onMouseEnter,
129 + ref: anchorRef
130 + }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
131 + selected: isActive || isPopoverOpen,
132 + sx: {
133 + height: 36
134 + }
135 + }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null))), /*#__PURE__*/_react.default.createElement(_shared.StyledPopover, {
136 + open: isPopoverOpen,
137 + anchorEl: anchorEl,
138 + onClose: onClose,
139 + anchorOrigin: {
140 + vertical: 'top',
141 + horizontal: 'right'
142 + },
143 + transformOrigin: {
144 + vertical: 'top',
145 + horizontal: 'left'
146 + },
147 + slotProps: {
148 + paper: {
149 + onMouseLeave: onClose
150 + }
151 + },
152 + disableRestoreFocus: true,
153 + hideBackdrop: true
154 + }, /*#__PURE__*/_react.default.createElement(_shared.PopoverContent, null, /*#__PURE__*/_react.default.createElement(_ui.List, {
155 + disablePadding: true,
156 + dense: true
157 + }, /*#__PURE__*/_react.default.createElement(_shared.PopoverTitle, null, item.label), children.map(function (childItem) {
158 + return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
159 + key: childItem.slug,
160 + disablePadding: true,
161 + disableGutters: true,
162 + dense: true,
163 + sx: {
164 + height: 28
165 + }
166 + }, /*#__PURE__*/_react.default.createElement(_shared.PopoverListItemButton, {
167 + component: "a",
168 + href: childItem.url,
169 + selected: childItem.slug === activeChildSlug
170 + }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
171 + primary: childItem.label,
172 + primaryTypographyProps: {
173 + variant: 'body2'
174 + }
175 + })));
176 + })))));
177 +};
178 +CollapsedMenuItemPopover.propTypes = {
179 + item: _propTypes.default.object.isRequired,
180 + children: _propTypes.default.array.isRequired,
181 + activeChildSlug: _propTypes.default.string.isRequired,
182 + isPopoverOpen: _propTypes.default.bool.isRequired,
183 + anchorEl: _propTypes.default.object,
184 + onClose: _propTypes.default.func.isRequired,
185 + IconComponent: _propTypes.default.elementType.isRequired,
186 + isActive: _propTypes.default.bool.isRequired,
187 + onMouseEnter: _propTypes.default.func.isRequired,
188 + anchorRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]).isRequired
189 +};
190 +var _default = exports["default"] = CollapsedMenuItemPopover;
191 +
192 +/***/ }),
193 +
194 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js":
195 +/*!*******************************************************************************************************************!*\
196 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js ***!
197 + \*******************************************************************************************************************/
198 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
199 +
200 +"use strict";
201 +
202 +
203 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
204 +Object.defineProperty(exports, "__esModule", ({
205 + value: true
206 +}));
207 +exports["default"] = void 0;
208 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
209 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
210 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
211 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
212 +var CollapsedMenuItemTooltip = function CollapsedMenuItemTooltip(_ref) {
213 + var item = _ref.item,
214 + isActive = _ref.isActive,
215 + onClick = _ref.onClick,
216 + IconComponent = _ref.IconComponent,
217 + onMouseEnter = _ref.onMouseEnter;
218 + return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
219 + disablePadding: true,
220 + dense: true,
221 + disableGutters: true,
222 + onMouseEnter: onMouseEnter
223 + }, /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
224 + title: item.label,
225 + placement: "right"
226 + }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
227 + onClick: onClick,
228 + selected: isActive,
229 + sx: {
230 + height: 36
231 + }
232 + }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null)))));
233 +};
234 +CollapsedMenuItemTooltip.propTypes = {
235 + item: _propTypes.default.object.isRequired,
236 + isActive: _propTypes.default.bool.isRequired,
237 + onClick: _propTypes.default.func.isRequired,
238 + IconComponent: _propTypes.default.elementType.isRequired,
239 + onMouseEnter: _propTypes.default.func.isRequired
240 +};
241 +var _default = exports["default"] = CollapsedMenuItemTooltip;
242 +
243 +/***/ }),
244 +
245 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js":
246 +/*!*********************************************************************************************!*\
247 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js ***!
248 + \*********************************************************************************************/
249 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
250 +
251 +"use strict";
252 +
253 +
254 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
255 +Object.defineProperty(exports, "__esModule", ({
256 + value: true
257 +}));
258 +Object.defineProperty(exports, "SidebarCollapsedMenu", ({
259 + enumerable: true,
260 + get: function get() {
261 + return _sidebarCollapsedMenu.default;
262 + }
263 +}));
264 +Object.defineProperty(exports, "SidebarCollapsedMenuItem", ({
265 + enumerable: true,
266 + get: function get() {
267 + return _sidebarCollapsedMenuItem.default;
268 + }
269 +}));
270 +var _sidebarCollapsedMenu = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js"));
271 +var _sidebarCollapsedMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js"));
272 +
273 +/***/ }),
274 +
275 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js":
276 +/*!*******************************************************************************************************************!*\
277 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js ***!
278 + \*******************************************************************************************************************/
279 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
280 +
281 +"use strict";
282 +
283 +
284 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
285 +Object.defineProperty(exports, "__esModule", ({
286 + value: true
287 +}));
288 +exports["default"] = void 0;
289 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
290 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
291 +var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
292 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
293 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
294 +var _collapsedMenuItemPopover = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-popover */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js"));
295 +var _collapsedMenuItemTooltip = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-tooltip */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js"));
296 +var SidebarCollapsedMenuItem = function SidebarCollapsedMenuItem(_ref) {
297 + var item = _ref.item,
298 + isActive = _ref.isActive,
299 + _ref$children = _ref.children,
300 + children = _ref$children === void 0 ? null : _ref$children,
301 + activeChildSlug = _ref.activeChildSlug,
302 + isPopoverOpen = _ref.isPopoverOpen,
303 + onOpenPopover = _ref.onOpenPopover,
304 + onClosePopover = _ref.onClosePopover;
305 + var _useState = (0, _element.useState)(null),
306 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
307 + anchorEl = _useState2[0],
308 + setAnchorEl = _useState2[1];
309 + var hasChildren = !!(children !== null && children !== void 0 && children.length);
310 + var IconComponent = _shared.ICON_MAP[item.icon] || _shared.DEFAULT_ICON;
311 + var handleMouseEnter = function handleMouseEnter() {
312 + if (hasChildren) {
313 + onOpenPopover(item.slug);
314 + } else {
315 + onClosePopover();
316 + }
317 + };
318 + var handleClick = function handleClick() {
319 + if (!hasChildren) {
320 + window.location.href = item.url;
321 + }
322 + };
323 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, hasChildren ? /*#__PURE__*/_react.default.createElement(_collapsedMenuItemPopover.default, {
324 + item: item,
325 + children: children,
326 + activeChildSlug: activeChildSlug,
327 + isPopoverOpen: isPopoverOpen,
328 + anchorEl: anchorEl,
329 + onClose: onClosePopover,
330 + IconComponent: IconComponent,
331 + isActive: isActive,
332 + onMouseEnter: handleMouseEnter,
333 + anchorRef: setAnchorEl
334 + }) : /*#__PURE__*/_react.default.createElement(_collapsedMenuItemTooltip.default, {
335 + item: item,
336 + isActive: isActive,
337 + onClick: handleClick,
338 + IconComponent: IconComponent,
339 + onMouseEnter: handleMouseEnter
340 + }));
341 +};
342 +SidebarCollapsedMenuItem.propTypes = {
343 + item: _propTypes.default.object.isRequired,
344 + isActive: _propTypes.default.bool.isRequired,
345 + children: _propTypes.default.array,
346 + activeChildSlug: _propTypes.default.string.isRequired,
347 + isPopoverOpen: _propTypes.default.bool.isRequired,
348 + onOpenPopover: _propTypes.default.func.isRequired,
349 + onClosePopover: _propTypes.default.func.isRequired
350 +};
351 +var _default = exports["default"] = SidebarCollapsedMenuItem;
352 +
353 +/***/ }),
354 +
355 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js":
356 +/*!**************************************************************************************************************!*\
357 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js ***!
358 + \**************************************************************************************************************/
359 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
360 +
361 +"use strict";
362 +
363 +
364 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
365 +Object.defineProperty(exports, "__esModule", ({
366 + value: true
367 +}));
368 +exports["default"] = void 0;
369 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
370 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
371 +var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
372 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
373 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
374 +var _menuActiveStateResolver = _interopRequireDefault(__webpack_require__(/*! ../../classes/menu-active-state-resolver */ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js"));
375 +var _sidebarCollapsedMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js"));
376 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
377 +var SidebarCollapsedMenu = function SidebarCollapsedMenu(_ref) {
378 + var menuItems = _ref.menuItems,
379 + level4Groups = _ref.level4Groups,
380 + activeMenuSlug = _ref.activeMenuSlug,
381 + activeChildSlug = _ref.activeChildSlug;
382 + var _useState = (0, _element.useState)(null),
383 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
384 + openPopoverSlug = _useState2[0],
385 + setOpenPopoverSlug = _useState2[1];
386 + var activeStateResolver = (0, _element.useMemo)(function () {
387 + return new _menuActiveStateResolver.default(activeMenuSlug, activeChildSlug);
388 + }, [activeMenuSlug, activeChildSlug]);
389 + var getChildren = function getChildren(item) {
390 + if (!item.group_id) {
391 + return null;
392 + }
393 + var group = level4Groups[item.group_id];
394 + if (!group || !group.items || !group.items.length) {
395 + return null;
396 + }
397 + return group.items;
398 + };
399 + var handleOpenPopover = (0, _element.useCallback)(function (slug) {
400 + setOpenPopoverSlug(slug);
401 + }, []);
402 + var handleClosePopover = (0, _element.useCallback)(function () {
403 + setOpenPopoverSlug(null);
404 + }, []);
405 + return /*#__PURE__*/_react.default.createElement(_shared.MenuList, {
406 + isCollapsed: true,
407 + onMouseLeave: handleClosePopover
408 + }, menuItems.map(function (item) {
409 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.has_divider_before && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
410 + key: "divider-".concat(item.slug),
411 + sx: {
412 + my: 1
413 + }
414 + }), /*#__PURE__*/_react.default.createElement(_sidebarCollapsedMenuItem.default, {
415 + key: item.slug,
416 + item: item,
417 + isActive: activeStateResolver.isMenuActive(item),
418 + children: getChildren(item),
419 + activeChildSlug: activeChildSlug,
420 + isPopoverOpen: openPopoverSlug === item.slug,
421 + onOpenPopover: handleOpenPopover,
422 + onClosePopover: handleClosePopover
423 + }));
424 + }));
425 +};
426 +SidebarCollapsedMenu.propTypes = {
427 + menuItems: _propTypes.default.array.isRequired,
428 + level4Groups: _propTypes.default.object.isRequired,
429 + activeMenuSlug: _propTypes.default.string.isRequired,
430 + activeChildSlug: _propTypes.default.string.isRequired
431 +};
432 +var _default = exports["default"] = SidebarCollapsedMenu;
433 +
434 +/***/ }),
435 +
436 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js":
437 +/*!**********************************************************************************!*\
438 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js ***!
439 + \**********************************************************************************/
440 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
441 +
442 +"use strict";
443 +
444 +
445 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
446 +Object.defineProperty(exports, "__esModule", ({
447 + value: true
448 +}));
449 +var _exportNames = {
450 + SidebarUpgradeCta: true
451 +};
452 +Object.defineProperty(exports, "SidebarUpgradeCta", ({
453 + enumerable: true,
454 + get: function get() {
455 + return _sidebarUpgradeCta.default;
456 + }
457 +}));
458 +var _sidebarUpgradeCta = _interopRequireDefault(__webpack_require__(/*! ./sidebar-upgrade-cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js"));
459 +var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js");
460 +Object.keys(_styledComponents).forEach(function (key) {
461 + if (key === "default" || key === "__esModule") return;
462 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
463 + if (key in exports && exports[key] === _styledComponents[key]) return;
464 + Object.defineProperty(exports, key, {
465 + enumerable: true,
466 + get: function get() {
467 + return _styledComponents[key];
468 + }
469 + });
470 +});
471 +
472 +/***/ }),
473 +
474 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js":
475 +/*!************************************************************************************************!*\
476 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js ***!
477 + \************************************************************************************************/
478 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
479 +
480 +"use strict";
481 +
482 +
483 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
484 +Object.defineProperty(exports, "__esModule", ({
485 + value: true
486 +}));
487 +exports["default"] = void 0;
488 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
489 +var _icons = __webpack_require__(/*! @elementor/icons */ "@elementor/icons");
490 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
491 +var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js");
492 +var SidebarUpgradeCta = function SidebarUpgradeCta(_ref) {
493 + var upgradeUrl = _ref.upgradeUrl,
494 + upgradeText = _ref.upgradeText,
495 + hasPro = _ref.hasPro,
496 + collapsed = _ref.collapsed;
497 + var isPro = true === hasPro || '1' === hasPro || 'true' === hasPro;
498 + if (isPro) {
499 + return null;
500 + }
501 + var handleUpgradeClick = function handleUpgradeClick() {
502 + window.open(upgradeUrl, '_blank');
503 + };
504 + if (collapsed) {
505 + return /*#__PURE__*/_react.default.createElement(_styledComponents.CollapsedCtaContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.CollapsedCtaButton, {
506 + onClick: handleUpgradeClick
507 + }, /*#__PURE__*/_react.default.createElement(_icons.CrownFilledIcon, null)));
508 + }
509 + return /*#__PURE__*/_react.default.createElement(_styledComponents.CtaContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.CtaButton, {
510 + startIcon: /*#__PURE__*/_react.default.createElement(_icons.CrownFilledIcon, null),
511 + onClick: handleUpgradeClick,
512 + variant: "outlined",
513 + color: "promotion",
514 + fullWidth: true
515 + }, upgradeText));
516 +};
517 +SidebarUpgradeCta.propTypes = {
518 + upgradeUrl: _propTypes.default.string.isRequired,
519 + upgradeText: _propTypes.default.string.isRequired,
520 + hasPro: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]).isRequired,
521 + collapsed: _propTypes.default.bool
522 +};
523 +var _default = exports["default"] = SidebarUpgradeCta;
524 +
525 +/***/ }),
526 +
527 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js":
528 +/*!**********************************************************************************************!*\
529 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js ***!
530 + \**********************************************************************************************/
531 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
532 +
533 +"use strict";
534 +
535 +
536 +Object.defineProperty(exports, "__esModule", ({
537 + value: true
538 +}));
539 +exports.CtaContainer = exports.CtaButton = exports.CollapsedCtaContainer = exports.CollapsedCtaButton = void 0;
540 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
541 +var CtaContainer = exports.CtaContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
542 + var theme = _ref.theme;
543 + return {
544 + padding: theme.spacing(2)
545 + };
546 +});
547 +var CtaButton = exports.CtaButton = (0, _ui.styled)(_ui.Button)({
548 + justifyContent: 'center',
549 + whiteSpace: 'nowrap'
550 +});
551 +var CollapsedCtaContainer = exports.CollapsedCtaContainer = (0, _ui.styled)(_ui.Box)(function (_ref2) {
552 + var theme = _ref2.theme;
553 + return {
554 + padding: theme.spacing(2),
555 + display: 'flex',
556 + justifyContent: 'center',
557 + alignItems: 'center'
558 + };
559 +});
560 +var CollapsedCtaButton = exports.CollapsedCtaButton = (0, _ui.styled)('button')(function (_ref3) {
561 + var theme = _ref3.theme;
562 + return {
563 + border: "1px solid ".concat(theme.palette.promotion.main),
564 + borderRadius: 999,
565 + width: 24,
566 + height: 24,
567 + padding: 0,
568 + display: 'flex',
569 + alignItems: 'center',
570 + justifyContent: 'center',
571 + background: 'transparent',
572 + cursor: 'pointer',
573 + color: theme.palette.promotion.main,
574 + transition: 'all 0.2s ease-in-out',
575 + whiteSpace: 'nowrap',
576 + '&:hover': {
577 + background: theme.palette.promotion.hover
578 + },
579 + '& svg': {
580 + width: 18,
581 + height: 18,
582 + fill: theme.palette.promotion.main
583 + }
584 + };
585 +});
586 +
587 +/***/ }),
588 +
589 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js":
590 +/*!*************************************************************************************!*\
591 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js ***!
592 + \*************************************************************************************/
593 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
594 +
595 +"use strict";
596 +
597 +
598 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
599 +Object.defineProperty(exports, "__esModule", ({
600 + value: true
601 +}));
602 +var _exportNames = {
603 + SidebarHeader: true
604 +};
605 +Object.defineProperty(exports, "SidebarHeader", ({
606 + enumerable: true,
607 + get: function get() {
608 + return _sidebarHeader.default;
609 + }
610 +}));
611 +var _sidebarHeader = _interopRequireDefault(__webpack_require__(/*! ./sidebar-header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js"));
612 +var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js");
613 +Object.keys(_styledComponents).forEach(function (key) {
614 + if (key === "default" || key === "__esModule") return;
615 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
616 + if (key in exports && exports[key] === _styledComponents[key]) return;
617 + Object.defineProperty(exports, key, {
618 + enumerable: true,
619 + get: function get() {
620 + return _styledComponents[key];
621 + }
622 + });
623 +});
624 +
625 +/***/ }),
626 +
627 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js":
628 +/*!**********************************************************************************************!*\
629 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js ***!
630 + \**********************************************************************************************/
631 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
632 +
633 +"use strict";
634 +
635 +
636 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
637 +Object.defineProperty(exports, "__esModule", ({
638 + value: true
639 +}));
640 +exports["default"] = void 0;
641 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
642 +var _ChevronRightIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronRightIcon */ "@elementor/icons/ChevronRightIcon"));
643 +var _SearchIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SearchIcon */ "@elementor/icons/SearchIcon"));
644 +var _editor = _interopRequireDefault(__webpack_require__(/*! ../icons/editor */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js"));
645 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
646 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
647 +var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js");
648 +var SidebarHeader = function SidebarHeader(_ref) {
649 + var siteTitle = _ref.siteTitle,
650 + onCollapse = _ref.onCollapse;
651 + var finderAction = function finderAction() {
652 + $e.route('finder');
653 + };
654 + 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, {
655 + variant: "subtitle1"
656 + }, siteTitle), /*#__PURE__*/_react.default.createElement(_styledComponents.SearchButton, {
657 + onClick: finderAction
658 + }, /*#__PURE__*/_react.default.createElement(_SearchIcon.default, null))), /*#__PURE__*/_react.default.createElement(_shared.CollapseButton, {
659 + onClick: onCollapse,
660 + size: "small",
661 + expanded: true
662 + }, /*#__PURE__*/_react.default.createElement(_ChevronRightIcon.default, null)));
663 +};
664 +SidebarHeader.propTypes = {
665 + siteTitle: _propTypes.default.string.isRequired,
666 + onCollapse: _propTypes.default.func.isRequired
667 +};
668 +var _default = exports["default"] = SidebarHeader;
669 +
670 +/***/ }),
671 +
672 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js":
673 +/*!*************************************************************************************************!*\
674 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js ***!
675 + \*************************************************************************************************/
676 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
677 +
678 +"use strict";
679 +
680 +
681 +Object.defineProperty(exports, "__esModule", ({
682 + value: true
683 +}));
684 +exports.SiteTitle = exports.SearchButton = exports.HeaderContent = exports.HeaderContainer = void 0;
685 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
686 +var HeaderContainer = exports.HeaderContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
687 + var theme = _ref.theme;
688 + return {
689 + position: 'relative',
690 + marginLeft: theme.spacing(2),
691 + marginRight: theme.spacing(2),
692 + height: 80,
693 + borderBottom: "1px solid ".concat(theme.palette.divider),
694 + display: 'flex',
695 + alignItems: 'center'
696 + };
697 +});
698 +var HeaderContent = exports.HeaderContent = (0, _ui.styled)(_ui.Box)(function (_ref2) {
699 + var theme = _ref2.theme;
700 + return {
701 + display: 'flex',
702 + alignItems: 'center',
703 + gap: theme.spacing(1.5),
704 + flex: 1
705 + };
706 +});
707 +var SiteTitle = exports.SiteTitle = (0, _ui.styled)(_ui.Typography)({
708 + fontWeight: 500,
709 + flex: 1
710 +});
711 +var SearchButton = exports.SearchButton = (0, _ui.styled)(_ui.IconButton)(function (_ref3) {
712 + var theme = _ref3.theme;
713 + return {
714 + fontSize: 20,
715 + color: theme.palette.action.active
716 + };
717 +});
718 +
719 +/***/ }),
720 +
721 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js":
722 +/*!****************************************************************************************************!*\
723 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js ***!
724 + \****************************************************************************************************/
725 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
726 +
727 +"use strict";
728 +
729 +
730 +Object.defineProperty(exports, "__esModule", ({
731 + value: true
732 +}));
733 +exports.useAdminMenuOffset = void 0;
734 +var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
735 +var ADMIN_MENU_WRAP_ID = 'adminmenuwrap';
736 +var WPCONTENT_ID = 'wpcontent';
737 +var INITIALIZED_DATA_ATTR = 'data-editor-one-offset-initialized';
738 +var getIsRTL = function getIsRTL() {
739 + return 'rtl' === document.dir || document.body.classList.contains('rtl');
740 +};
741 +var useAdminMenuOffset = exports.useAdminMenuOffset = function useAdminMenuOffset() {
742 + var cleanupRef = (0, _element.useRef)(null);
743 + (0, _element.useEffect)(function () {
744 + var adminMenuWrap = document.getElementById(ADMIN_MENU_WRAP_ID);
745 + var wpcontent = document.getElementById(WPCONTENT_ID);
746 + if (!adminMenuWrap || !wpcontent || wpcontent.hasAttribute(INITIALIZED_DATA_ATTR)) {
747 + return;
748 + }
749 + var updateOffset = function updateOffset() {
750 + var isRTL = getIsRTL();
751 + var rect = adminMenuWrap.getBoundingClientRect();
752 + var offset = isRTL ? window.innerWidth - rect.left : rect.right;
753 + wpcontent.style.setProperty('--editor-one-sidebar-left-offset', "".concat(offset, "px"));
754 + };
755 + updateOffset();
756 + var resizeObserver = new ResizeObserver(updateOffset);
757 + resizeObserver.observe(wpcontent);
758 + window.addEventListener('resize', updateOffset);
759 + wpcontent.setAttribute(INITIALIZED_DATA_ATTR, 'true');
760 + cleanupRef.current = function () {
761 + resizeObserver.disconnect();
762 + window.removeEventListener('resize', updateOffset);
763 + wpcontent.removeAttribute(INITIALIZED_DATA_ATTR);
764 + };
765 + return function () {
766 + if (cleanupRef.current) {
767 + cleanupRef.current();
768 + cleanupRef.current = null;
769 + }
770 + };
771 + }, []);
772 +};
773 +
774 +/***/ }),
775 +
776 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js":
777 +/*!***************************************************************************************************!*\
778 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js ***!
779 + \***************************************************************************************************/
780 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
781 +
782 +"use strict";
783 +
784 +
785 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
786 +Object.defineProperty(exports, "__esModule", ({
787 + value: true
788 +}));
789 +exports.useSidebarCollapse = void 0;
790 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
791 +var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
792 +var STORAGE_KEY = 'elementor_sidebar_collapsed';
793 +var AUTO_COLLAPSE_BREAKPOINT = 960;
794 +var TRANSITION_DURATION = 300;
795 +var useSidebarCollapse = exports.useSidebarCollapse = function useSidebarCollapse() {
796 + var _useState = (0, _element.useState)(function () {
797 + var stored = localStorage.getItem(STORAGE_KEY);
798 + if (null !== stored) {
799 + return 'true' === stored;
800 + }
801 + return window.innerWidth <= AUTO_COLLAPSE_BREAKPOINT;
802 + }),
803 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
804 + isCollapsed = _useState2[0],
805 + setIsCollapsed = _useState2[1];
806 + (0, _element.useEffect)(function () {
807 + var mediaQuery = window.matchMedia("(max-width: ".concat(AUTO_COLLAPSE_BREAKPOINT, "px)"));
808 + var handleResize = function handleResize(e) {
809 + if (e.matches) {
810 + setIsCollapsed(true);
811 + } else {
812 + var stored = localStorage.getItem(STORAGE_KEY);
813 + setIsCollapsed('true' === stored);
814 + }
815 + };
816 + mediaQuery.addEventListener('change', handleResize);
817 + return function () {
818 + return mediaQuery.removeEventListener('change', handleResize);
819 + };
820 + }, []);
821 + var toggleCollapse = (0, _element.useCallback)(function () {
822 + var newState = !isCollapsed;
823 + var body = document.body;
824 + body.classList.add('e-sidebar-transitioning');
825 + setIsCollapsed(newState);
826 + localStorage.setItem(STORAGE_KEY, String(newState));
827 + setTimeout(function () {
828 + body.classList.remove('e-sidebar-transitioning');
829 + }, TRANSITION_DURATION);
830 + }, [isCollapsed]);
831 + (0, _element.useEffect)(function () {
832 + var container = document.getElementById('editor-one-sidebar-navigation');
833 + var body = document.body;
834 + if (isCollapsed) {
835 + container === null || container === void 0 || container.classList.add('e-sidebar-collapsed');
836 + body.classList.add('e-sidebar-is-collapsed');
837 + } else {
838 + container === null || container === void 0 || container.classList.remove('e-sidebar-collapsed');
839 + body.classList.remove('e-sidebar-is-collapsed');
840 + }
841 + }, [isCollapsed]);
842 + return {
843 + isCollapsed: isCollapsed,
844 + toggleCollapse: toggleCollapse
845 + };
846 +};
847 +
848 +/***/ }),
849 +
850 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js":
851 +/*!*************************************************************************************!*\
852 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js ***!
853 + \*************************************************************************************/
854 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
855 +
856 +"use strict";
857 +
858 +
859 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
860 +Object.defineProperty(exports, "__esModule", ({
861 + value: true
862 +}));
863 +exports["default"] = void 0;
864 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
865 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
866 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
867 +var EditorIcon = function EditorIcon(props) {
868 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
869 + width: "22",
870 + height: "22",
871 + viewBox: "0 0 22 22",
872 + fill: "none"
873 + }, props), /*#__PURE__*/_react.default.createElement("svg", {
874 + xmlns: "http://www.w3.org/2000/svg"
875 + }, /*#__PURE__*/_react.default.createElement("path", {
876 + 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",
877 + fill: "black",
878 + fillOpacity: "0.56"
879 + }), /*#__PURE__*/_react.default.createElement("path", {
880 + 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",
881 + fill: "black",
882 + fillOpacity: "0.56"
883 + })));
884 +};
885 +var _default = exports["default"] = EditorIcon;
886 +
887 +/***/ }),
888 +
889 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js":
890 +/*!***********************************************************************************!*\
891 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.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 ToolIcon = function ToolIcon(props) {
907 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
908 + width: "20",
909 + height: "20",
910 + viewBox: "0 0 20 20",
911 + fill: "none"
912 + }, props), /*#__PURE__*/_react.default.createElement("path", {
913 + 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",
914 + fill: "none",
915 + stroke: "currentColor",
916 + strokeWidth: "1.2",
917 + strokeLinecap: "round",
918 + strokeLinejoin: "round"
919 + }));
920 +};
921 +var _default = exports["default"] = ToolIcon;
922 +
923 +/***/ }),
924 +
925 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/index.js":
926 +/*!******************************************************************************!*\
927 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/index.js ***!
928 + \******************************************************************************/
929 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
930 +
931 +"use strict";
932 +
933 +
934 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
935 +Object.defineProperty(exports, "__esModule", ({
936 + value: true
937 +}));
938 +var _exportNames = {};
939 +Object.defineProperty(exports, "default", ({
940 + enumerable: true,
941 + get: function get() {
942 + return _sidebarNavigation.default;
943 + }
944 +}));
945 +var _sidebarNavigation = _interopRequireDefault(__webpack_require__(/*! ./sidebar-navigation */ "../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js"));
946 +var _shared = __webpack_require__(/*! ./shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
947 +Object.keys(_shared).forEach(function (key) {
948 + if (key === "default" || key === "__esModule") return;
949 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
950 + if (key in exports && exports[key] === _shared[key]) return;
951 + Object.defineProperty(exports, key, {
952 + enumerable: true,
953 + get: function get() {
954 + return _shared[key];
955 + }
956 + });
957 +});
958 +var _header = __webpack_require__(/*! ./header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js");
959 +Object.keys(_header).forEach(function (key) {
960 + if (key === "default" || key === "__esModule") return;
961 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
962 + if (key in exports && exports[key] === _header[key]) return;
963 + Object.defineProperty(exports, key, {
964 + enumerable: true,
965 + get: function get() {
966 + return _header[key];
967 + }
968 + });
969 +});
970 +var _menu = __webpack_require__(/*! ./menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js");
971 +Object.keys(_menu).forEach(function (key) {
972 + if (key === "default" || key === "__esModule") return;
973 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
974 + if (key in exports && exports[key] === _menu[key]) return;
975 + Object.defineProperty(exports, key, {
976 + enumerable: true,
977 + get: function get() {
978 + return _menu[key];
979 + }
980 + });
981 +});
982 +var _collapsedMenu = __webpack_require__(/*! ./collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js");
983 +Object.keys(_collapsedMenu).forEach(function (key) {
984 + if (key === "default" || key === "__esModule") return;
985 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
986 + if (key in exports && exports[key] === _collapsedMenu[key]) return;
987 + Object.defineProperty(exports, key, {
988 + enumerable: true,
989 + get: function get() {
990 + return _collapsedMenu[key];
991 + }
992 + });
993 +});
994 +var _cta = __webpack_require__(/*! ./cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js");
995 +Object.keys(_cta).forEach(function (key) {
996 + if (key === "default" || key === "__esModule") return;
997 + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
998 + if (key in exports && exports[key] === _cta[key]) return;
999 + Object.defineProperty(exports, key, {
1000 + enumerable: true,
1001 + get: function get() {
1002 + return _cta[key];
1003 + }
1004 + });
1005 +});
1006 +
1007 +/***/ }),
1008 +
1009 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js":
1010 +/*!***********************************************************************************!*\
1011 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js ***!
1012 + \***********************************************************************************/
1013 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1014 +
1015 +"use strict";
1016 +
1017 +
1018 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1019 +Object.defineProperty(exports, "__esModule", ({
1020 + value: true
1021 +}));
1022 +Object.defineProperty(exports, "SidebarMenu", ({
1023 + enumerable: true,
1024 + get: function get() {
1025 + return _sidebarMenu.default;
1026 + }
1027 +}));
1028 +Object.defineProperty(exports, "SidebarMenuItem", ({
1029 + enumerable: true,
1030 + get: function get() {
1031 + return _sidebarMenuItem.default;
1032 + }
1033 +}));
1034 +var _sidebarMenu = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js"));
1035 +var _sidebarMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js"));
1036 +
1037 +/***/ }),
1038 +
1039 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js":
1040 +/*!***********************************************************************************************!*\
1041 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js ***!
1042 + \***********************************************************************************************/
1043 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1044 +
1045 +"use strict";
1046 +
1047 +
1048 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1049 +Object.defineProperty(exports, "__esModule", ({
1050 + value: true
1051 +}));
1052 +exports["default"] = void 0;
1053 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1054 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1055 +var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1056 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1057 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1058 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1059 +var STORAGE_KEY_PREFIX = 'elementor_sidebar_menu_expanded_v2_';
1060 +var SidebarMenuItem = function SidebarMenuItem(_ref) {
1061 + var item = _ref.item,
1062 + isActive = _ref.isActive,
1063 + children = _ref.children,
1064 + activeChildSlug = _ref.activeChildSlug;
1065 + var hasChildren = !!(children !== null && children !== void 0 && children.length);
1066 + var IconComponent = _shared.ICON_MAP[item.icon] || _shared.DEFAULT_ICON;
1067 + var _useState = (0, _element.useState)(function () {
1068 + if (!hasChildren) {
1069 + return false;
1070 + }
1071 + var storageKey = "".concat(STORAGE_KEY_PREFIX).concat(item.slug);
1072 + var shouldExpand = children.some(function (child) {
1073 + return child.slug === activeChildSlug;
1074 + });
1075 + if (shouldExpand) {
1076 + localStorage.setItem(storageKey, 'true');
1077 + return true;
1078 + }
1079 + var stored = localStorage.getItem(storageKey);
1080 + if (null === stored) {
1081 + return true;
1082 + }
1083 + return 'true' === stored;
1084 + }),
1085 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1086 + isExpanded = _useState2[0],
1087 + setIsExpanded = _useState2[1];
1088 + var handleClick = (0, _element.useCallback)(function () {
1089 + if (hasChildren) {
1090 + setIsExpanded(function (prev) {
1091 + var newState = !prev;
1092 + localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
1093 + return newState;
1094 + });
1095 + } else {
1096 + window.location.href = item.url;
1097 + }
1098 + }, [hasChildren, item.slug, item.url]);
1099 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
1100 + disablePadding: true,
1101 + dense: true,
1102 + disableGutters: true
1103 + }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
1104 + onClick: handleClick,
1105 + selected: isActive && !hasChildren
1106 + }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null)), /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1107 + primary: item.label,
1108 + primaryTypographyProps: {
1109 + variant: 'body2'
1110 + }
1111 + }), hasChildren && /*#__PURE__*/_react.default.createElement(_shared.ExpandIcon, {
1112 + expanded: isExpanded
1113 + }))), hasChildren && /*#__PURE__*/_react.default.createElement(_ui.Collapse, {
1114 + in: isExpanded,
1115 + timeout: "auto",
1116 + unmountOnExit: true
1117 + }, /*#__PURE__*/_react.default.createElement(_ui.List, {
1118 + disablePadding: true
1119 + }, children.map(function (childItem) {
1120 + return /*#__PURE__*/_react.default.createElement(_shared.ChildListItem, {
1121 + key: childItem.slug,
1122 + disablePadding: true,
1123 + dense: true,
1124 + disableGutters: true
1125 + }, /*#__PURE__*/_react.default.createElement(_shared.ChildMenuItemButton, {
1126 + component: "a",
1127 + href: childItem.url,
1128 + selected: childItem.slug === activeChildSlug
1129 + }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1130 + primary: childItem.label,
1131 + primaryTypographyProps: {
1132 + variant: 'body2',
1133 + color: 'text.secondary'
1134 + }
1135 + })));
1136 + }))));
1137 +};
1138 +SidebarMenuItem.propTypes = {
1139 + item: _propTypes.default.object.isRequired,
1140 + isActive: _propTypes.default.bool.isRequired,
1141 + children: _propTypes.default.array,
1142 + activeChildSlug: _propTypes.default.string.isRequired
1143 +};
1144 +var _default = exports["default"] = SidebarMenuItem;
1145 +
1146 +/***/ }),
1147 +
1148 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js":
1149 +/*!******************************************************************************************!*\
1150 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js ***!
1151 + \******************************************************************************************/
1152 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1153 +
1154 +"use strict";
1155 +
1156 +
1157 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1158 +Object.defineProperty(exports, "__esModule", ({
1159 + value: true
1160 +}));
1161 +exports["default"] = void 0;
1162 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1163 +var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1164 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1165 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1166 +var _menuActiveStateResolver = _interopRequireDefault(__webpack_require__(/*! ../../classes/menu-active-state-resolver */ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js"));
1167 +var _sidebarMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js"));
1168 +var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1169 +var SidebarMenu = function SidebarMenu(_ref) {
1170 + var menuItems = _ref.menuItems,
1171 + level4Groups = _ref.level4Groups,
1172 + activeMenuSlug = _ref.activeMenuSlug,
1173 + activeChildSlug = _ref.activeChildSlug;
1174 + var activeStateResolver = (0, _element.useMemo)(function () {
1175 + return new _menuActiveStateResolver.default(activeMenuSlug, activeChildSlug);
1176 + }, [activeMenuSlug, activeChildSlug]);
1177 + var getChildren = function getChildren(item) {
1178 + if (!item.group_id) {
1179 + return null;
1180 + }
1181 + var group = level4Groups[item.group_id];
1182 + if (!group || !group.items || !group.items.length) {
1183 + return null;
1184 + }
1185 + return group.items;
1186 + };
1187 + return /*#__PURE__*/_react.default.createElement(_shared.MenuList, null, menuItems.map(function (item) {
1188 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.has_divider_before && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
1189 + key: "divider-".concat(item.slug),
1190 + sx: {
1191 + my: 1
1192 + }
1193 + }), /*#__PURE__*/_react.default.createElement(_sidebarMenuItem.default, {
1194 + key: item.slug,
1195 + item: item,
1196 + isActive: activeStateResolver.isMenuActive(item),
1197 + children: getChildren(item),
1198 + activeChildSlug: activeChildSlug
1199 + }));
1200 + }));
1201 +};
1202 +SidebarMenu.propTypes = {
1203 + menuItems: _propTypes.default.array.isRequired,
1204 + level4Groups: _propTypes.default.object.isRequired,
1205 + activeMenuSlug: _propTypes.default.string.isRequired,
1206 + activeChildSlug: _propTypes.default.string.isRequired
1207 +};
1208 +var _default = exports["default"] = SidebarMenu;
1209 +
1210 +/***/ }),
1211 +
1212 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js":
1213 +/*!****************************************************************************************!*\
1214 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js ***!
1215 + \****************************************************************************************/
1216 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1217 +
1218 +"use strict";
1219 +
1220 +
1221 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1222 +Object.defineProperty(exports, "__esModule", ({
1223 + value: true
1224 +}));
1225 +exports.ICON_MAP = exports.DEFAULT_ICON = void 0;
1226 +var _AdjustmentsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/AdjustmentsIcon */ "@elementor/icons/AdjustmentsIcon"));
1227 +var _FolderIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/FolderIcon */ "@elementor/icons/FolderIcon"));
1228 +var _RocketIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/RocketIcon */ "@elementor/icons/RocketIcon"));
1229 +var _HomeIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/HomeIcon */ "@elementor/icons/HomeIcon"));
1230 +var _SendIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SendIcon */ "@elementor/icons/SendIcon"));
1231 +var _SettingsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SettingsIcon */ "@elementor/icons/SettingsIcon"));
1232 +var _UsersIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/UsersIcon */ "@elementor/icons/UsersIcon"));
1233 +var _PlugIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/PlugIcon */ "@elementor/icons/PlugIcon"));
1234 +var _tool = _interopRequireDefault(__webpack_require__(/*! ../icons/tool */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js"));
1235 +var _FileSettingsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/FileSettingsIcon */ "@elementor/icons/FileSettingsIcon"));
1236 +var ICON_MAP = exports.ICON_MAP = {
1237 + adjustments: _AdjustmentsIcon.default,
1238 + folder: _FolderIcon.default,
1239 + home: _RocketIcon.default,
1240 + send: _SendIcon.default,
1241 + settings: _SettingsIcon.default,
1242 + tool: _tool.default,
1243 + users: _UsersIcon.default,
1244 + extension: _PlugIcon.default,
1245 + 'file-settings': _FileSettingsIcon.default
1246 +};
1247 +var DEFAULT_ICON = exports.DEFAULT_ICON = _HomeIcon.default;
1248 +
1249 +/***/ }),
1250 +
1251 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js":
1252 +/*!*************************************************************************************!*\
1253 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js ***!
1254 + \*************************************************************************************/
1255 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1256 +
1257 +"use strict";
1258 +
1259 +
1260 +Object.defineProperty(exports, "__esModule", ({
1261 + value: true
1262 +}));
1263 +var _iconMap = __webpack_require__(/*! ./icon-map */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js");
1264 +Object.keys(_iconMap).forEach(function (key) {
1265 + if (key === "default" || key === "__esModule") return;
1266 + if (key in exports && exports[key] === _iconMap[key]) return;
1267 + Object.defineProperty(exports, key, {
1268 + enumerable: true,
1269 + get: function get() {
1270 + return _iconMap[key];
1271 + }
1272 + });
1273 +});
1274 +var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js");
1275 +Object.keys(_styledComponents).forEach(function (key) {
1276 + if (key === "default" || key === "__esModule") return;
1277 + if (key in exports && exports[key] === _styledComponents[key]) return;
1278 + Object.defineProperty(exports, key, {
1279 + enumerable: true,
1280 + get: function get() {
1281 + return _styledComponents[key];
1282 + }
1283 + });
1284 +});
1285 +
1286 +/***/ }),
1287 +
1288 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js":
1289 +/*!*************************************************************************************************!*\
1290 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js ***!
1291 + \*************************************************************************************************/
1292 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1293 +
1294 +"use strict";
1295 +
1296 +
1297 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1298 +Object.defineProperty(exports, "__esModule", ({
1299 + value: true
1300 +}));
1301 +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;
1302 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1303 +var _ChevronDownSmallIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronDownSmallIcon */ "@elementor/icons/ChevronDownSmallIcon"));
1304 +var NavContainer = exports.NavContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
1305 + var theme = _ref.theme;
1306 + return {
1307 + display: 'flex',
1308 + flexDirection: 'column',
1309 + height: '100%',
1310 + backgroundColor: theme.palette.background.paper,
1311 + borderInlineEnd: "1px solid ".concat(theme.palette.divider)
1312 + };
1313 +});
1314 +var SiteIconBox = exports.SiteIconBox = (0, _ui.styled)(_ui.Box)(function (_ref2) {
1315 + var theme = _ref2.theme;
1316 + return {
1317 + width: 40,
1318 + height: 40,
1319 + borderRadius: theme.shape.borderRadius * 2,
1320 + border: "1px solid ".concat(theme.palette.divider),
1321 + display: 'flex',
1322 + alignItems: 'center',
1323 + justifyContent: 'center',
1324 + backgroundColor: theme.palette.background.paper,
1325 + color: theme.palette.action.active,
1326 + '& svg': {
1327 + fontSize: 24
1328 + }
1329 + };
1330 +});
1331 +var CollapseButton = exports.CollapseButton = (0, _ui.styled)(_ui.IconButton, {
1332 + shouldForwardProp: function shouldForwardProp(prop) {
1333 + return prop !== 'expanded';
1334 + }
1335 +})(function (_ref3) {
1336 + var theme = _ref3.theme,
1337 + expanded = _ref3.expanded;
1338 + var isRtl = 'rtl' === theme.direction;
1339 + var transform = 'none';
1340 + if (expanded && isRtl) {
1341 + transform = 'rotate(180deg) scaleX(-1)';
1342 + } else if (expanded) {
1343 + transform = 'rotate(180deg)';
1344 + } else if (isRtl) {
1345 + transform = 'scaleX(-1)';
1346 + }
1347 + return {
1348 + position: 'absolute',
1349 + insetInlineEnd: -28,
1350 + bottom: -12,
1351 + width: 24,
1352 + height: 24,
1353 + backgroundColor: theme.palette.background.paper,
1354 + border: "1px solid ".concat(theme.palette.divider),
1355 + color: theme.palette.action.active,
1356 + zIndex: 1,
1357 + '&:hover': {
1358 + backgroundColor: theme.palette.background.paper
1359 + },
1360 + '& svg': {
1361 + fontSize: 16,
1362 + transform: transform
1363 + }
1364 + };
1365 +});
1366 +var ScrollableContent = exports.ScrollableContent = (0, _ui.styled)(_ui.Box)({
1367 + flex: 1,
1368 + overflowY: 'auto',
1369 + overflowX: 'hidden'
1370 +});
1371 +var MenuList = exports.MenuList = (0, _ui.styled)(_ui.List)(function (_ref4) {
1372 + var theme = _ref4.theme;
1373 + return {
1374 + padding: theme.spacing(2)
1375 + };
1376 +});
1377 +var MenuItemButton = exports.MenuItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref5) {
1378 + var theme = _ref5.theme;
1379 + return {
1380 + paddingLeft: theme.spacing(1),
1381 + paddingRight: theme.spacing(1),
1382 + marginBottom: 0,
1383 + paddingBottom: theme.spacing(0.5),
1384 + whiteSpace: 'nowrap',
1385 + justifyContent: 'center',
1386 + borderRadius: 4
1387 + };
1388 +});
1389 +var MenuIcon = exports.MenuIcon = (0, _ui.styled)(_ui.ListItemIcon)(function (_ref6) {
1390 + var theme = _ref6.theme;
1391 + return {
1392 + minWidth: 'auto',
1393 + color: theme.palette.text.primary,
1394 + margin: 0,
1395 + display: 'flex',
1396 + justifyContent: 'center',
1397 + '& svg': {
1398 + fontSize: 20
1399 + }
1400 + };
1401 +});
1402 +var ChildMenuItemButton = exports.ChildMenuItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref7) {
1403 + var theme = _ref7.theme;
1404 + return {
1405 + paddingLeft: theme.spacing(6),
1406 + paddingRight: theme.spacing(2),
1407 + minHeight: 32,
1408 + whiteSpace: 'nowrap',
1409 + borderRadius: 4
1410 + };
1411 +});
1412 +var ChildListItem = exports.ChildListItem = (0, _ui.styled)(_ui.ListItem)({
1413 + maxHeight: 32
1414 +});
1415 +var ExpandIcon = exports.ExpandIcon = (0, _ui.styled)(_ChevronDownSmallIcon.default, {
1416 + shouldForwardProp: function shouldForwardProp(prop) {
1417 + return prop !== 'expanded';
1418 + }
1419 +})(function (_ref8) {
1420 + var expanded = _ref8.expanded;
1421 + return {
1422 + fontSize: 20,
1423 + transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)',
1424 + transition: 'transform 0.2s'
1425 + };
1426 +});
1427 +var CollapsedMenuItemContainer = exports.CollapsedMenuItemContainer = (0, _ui.styled)(_ui.Box)(function (_ref9) {
1428 + var theme = _ref9.theme;
1429 + return {
1430 + display: 'flex',
1431 + justifyContent: 'center',
1432 + marginBottom: theme.spacing(0.5)
1433 + };
1434 +});
1435 +var CollapsedIconButton = exports.CollapsedIconButton = (0, _ui.styled)(_ui.IconButton, {
1436 + shouldForwardProp: function shouldForwardProp(prop) {
1437 + return prop !== 'isHighlighted';
1438 + }
1439 +})(function (_ref0) {
1440 + var theme = _ref0.theme,
1441 + isHighlighted = _ref0.isHighlighted;
1442 + return {
1443 + width: 36,
1444 + height: 36,
1445 + borderRadius: theme.shape.borderRadius,
1446 + backgroundColor: isHighlighted ? theme.palette.action.selected : 'transparent',
1447 + color: theme.palette.text.primary,
1448 + '&:hover': {
1449 + backgroundColor: theme.palette.action.hover
1450 + },
1451 + '& svg': {
1452 + fontSize: 20
1453 + }
1454 + };
1455 +});
1456 +var PopoverTitle = exports.PopoverTitle = (0, _ui.styled)(_ui.ListSubheader)(function (_ref1) {
1457 + var theme = _ref1.theme;
1458 + return {
1459 + color: theme.palette.text.tertiary,
1460 + fontSize: 12,
1461 + fontWeight: 400,
1462 + height: 28
1463 + };
1464 +});
1465 +var PopoverContent = exports.PopoverContent = (0, _ui.styled)(_ui.Box)(function (_ref10) {
1466 + var theme = _ref10.theme;
1467 + return {
1468 + paddingTop: theme.spacing(1),
1469 + paddingBottom: theme.spacing(1)
1470 + };
1471 +});
1472 +var CollapsedHeaderContainer = exports.CollapsedHeaderContainer = (0, _ui.styled)(_ui.Box)(function (_ref11) {
1473 + var theme = _ref11.theme;
1474 + return {
1475 + position: 'relative',
1476 + display: 'flex',
1477 + justifyContent: 'center',
1478 + alignItems: 'center',
1479 + height: 80,
1480 + marginLeft: theme.spacing(2),
1481 + marginRight: theme.spacing(2),
1482 + borderBottom: "1px solid ".concat(theme.palette.divider)
1483 + };
1484 +});
1485 +var PopoverListItemButton = exports.PopoverListItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref12) {
1486 + var theme = _ref12.theme;
1487 + return {
1488 + paddingLeft: theme.spacing(2),
1489 + paddingRight: theme.spacing(2),
1490 + paddingTop: theme.spacing(0.5),
1491 + paddingBottom: theme.spacing(0.5),
1492 + borderRadius: 4
1493 + };
1494 +});
1495 +var StyledPopover = exports.StyledPopover = (0, _ui.styled)(_ui.Popover)(function (_ref13) {
1496 + var theme = _ref13.theme;
1497 + return {
1498 + pointerEvents: 'none',
1499 + '& .MuiPaper-root': {
1500 + marginLeft: theme.spacing(1),
1501 + minWidth: 180,
1502 + borderRadius: theme.shape.borderRadius,
1503 + pointerEvents: 'auto'
1504 + }
1505 + };
1506 +});
1507 +
1508 +/***/ }),
1509 +
1510 +/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js":
1511 +/*!*******************************************************************************************!*\
1512 + !*** ../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js ***!
1513 + \*******************************************************************************************/
1514 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1515 +
1516 +"use strict";
1517 +
1518 +
1519 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1520 +Object.defineProperty(exports, "__esModule", ({
1521 + value: true
1522 +}));
1523 +exports["default"] = void 0;
1524 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1525 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1526 +var _ChevronRightIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronRightIcon */ "@elementor/icons/ChevronRightIcon"));
1527 +var _editor = _interopRequireDefault(__webpack_require__(/*! ./icons/editor */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js"));
1528 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1529 +var _collapsedMenu = __webpack_require__(/*! ./collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js");
1530 +var _cta = __webpack_require__(/*! ./cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js");
1531 +var _header = __webpack_require__(/*! ./header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js");
1532 +var _menu = __webpack_require__(/*! ./menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js");
1533 +var _shared = __webpack_require__(/*! ./shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1534 +var _useSidebarCollapse2 = __webpack_require__(/*! ./hooks/use-sidebar-collapse */ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js");
1535 +var _useAdminMenuOffset = __webpack_require__(/*! ./hooks/use-admin-menu-offset */ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js");
1536 +var SidebarNavigation = function SidebarNavigation(_ref) {
1537 + var config = _ref.config;
1538 + var _useSidebarCollapse = (0, _useSidebarCollapse2.useSidebarCollapse)(),
1539 + isCollapsed = _useSidebarCollapse.isCollapsed,
1540 + toggleCollapse = _useSidebarCollapse.toggleCollapse;
1541 + (0, _useAdminMenuOffset.useAdminMenuOffset)();
1542 + if (isCollapsed) {
1543 + return /*#__PURE__*/_react.default.createElement(_shared.NavContainer, {
1544 + component: "nav",
1545 + collapsed: true
1546 + }, /*#__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, {
1547 + onClick: toggleCollapse,
1548 + size: "small"
1549 + }, /*#__PURE__*/_react.default.createElement(_ChevronRightIcon.default, null))), /*#__PURE__*/_react.default.createElement(_shared.ScrollableContent, null, /*#__PURE__*/_react.default.createElement(_collapsedMenu.SidebarCollapsedMenu, {
1550 + menuItems: config.menuItems,
1551 + level4Groups: config.level4Groups,
1552 + activeMenuSlug: config.activeMenuSlug,
1553 + activeChildSlug: config.activeChildSlug
1554 + })), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_cta.SidebarUpgradeCta, {
1555 + upgradeUrl: config.upgradeUrl,
1556 + upgradeText: config.upgradeText,
1557 + hasPro: config.hasPro,
1558 + collapsed: true
1559 + }));
1560 + }
1561 + return /*#__PURE__*/_react.default.createElement(_shared.NavContainer, {
1562 + component: "nav"
1563 + }, /*#__PURE__*/_react.default.createElement(_header.SidebarHeader, {
1564 + siteTitle: config.siteTitle,
1565 + onCollapse: toggleCollapse
1566 + }), /*#__PURE__*/_react.default.createElement(_shared.ScrollableContent, null, /*#__PURE__*/_react.default.createElement(_menu.SidebarMenu, {
1567 + menuItems: config.menuItems,
1568 + level4Groups: config.level4Groups,
1569 + activeMenuSlug: config.activeMenuSlug,
1570 + activeChildSlug: config.activeChildSlug
1571 + })), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_cta.SidebarUpgradeCta, {
1572 + upgradeUrl: config.upgradeUrl,
1573 + upgradeText: config.upgradeText,
1574 + hasPro: config.hasPro
1575 + }));
1576 +};
1577 +SidebarNavigation.propTypes = {
1578 + config: _propTypes.default.object.isRequired
1579 +};
1580 +var _default = exports["default"] = SidebarNavigation;
1581 +
1582 +/***/ }),
1583 +
1584 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1585 +/*!******************************************************************!*\
1586 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1587 + \******************************************************************/
1588 +/***/ ((module) => {
1589 +
1590 +function _arrayLikeToArray(r, a) {
1591 + (null == a || a > r.length) && (a = r.length);
1592 + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1593 + return n;
1594 +}
1595 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1596 +
1597 +/***/ }),
1598 +
1599 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1600 +/*!****************************************************************!*\
1601 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1602 + \****************************************************************/
1603 +/***/ ((module) => {
1604 +
1605 +function _arrayWithHoles(r) {
1606 + if (Array.isArray(r)) return r;
1607 +}
1608 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1609 +
1610 +/***/ }),
1611 +
1612 +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
1613 +/*!****************************************************************!*\
1614 + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1615 + \****************************************************************/
1616 +/***/ ((module) => {
1617 +
1618 +function _classCallCheck(a, n) {
1619 + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1620 +}
1621 +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1622 +
1623 +/***/ }),
1624 +
1625 +/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
1626 +/*!*************************************************************!*\
1627 + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
1628 + \*************************************************************/
1629 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1630 +
1631 +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1632 +function _defineProperties(e, r) {
1633 + for (var t = 0; t < r.length; t++) {
1634 + var o = r[t];
1635 + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
1636 + }
1637 +}
1638 +function _createClass(e, r, t) {
1639 + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
1640 + writable: !1
1641 + }), e;
1642 +}
1643 +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1644 +
1645 +/***/ }),
1646 +
1647 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
1648 +/*!*********************************************************!*\
1649 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
1650 + \*********************************************************/
1651 +/***/ ((module) => {
1652 +
1653 +function _extends() {
1654 + return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
1655 + for (var e = 1; e < arguments.length; e++) {
1656 + var t = arguments[e];
1657 + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1658 + }
1659 + return n;
1660 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
1661 +}
1662 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
1663 +
1664 +/***/ }),
1665 +
1666 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1667 +/*!***********************************************************************!*\
1668 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1669 + \***********************************************************************/
1670 +/***/ ((module) => {
1671 +
1672 +function _interopRequireDefault(e) {
1673 + return e && e.__esModule ? e : {
1674 + "default": e
1675 + };
1676 +}
1677 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1678 +
1679 +/***/ }),
1680 +
1681 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1682 +/*!**********************************************************************!*\
1683 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1684 + \**********************************************************************/
1685 +/***/ ((module) => {
1686 +
1687 +function _iterableToArrayLimit(r, l) {
1688 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1689 + if (null != t) {
1690 + var e,
1691 + n,
1692 + i,
1693 + u,
1694 + a = [],
1695 + f = !0,
1696 + o = !1;
1697 + try {
1698 + if (i = (t = t.call(r)).next, 0 === l) {
1699 + if (Object(t) !== t) return;
1700 + f = !1;
1701 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1702 + } catch (r) {
1703 + o = !0, n = r;
1704 + } finally {
1705 + try {
1706 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1707 + } finally {
1708 + if (o) throw n;
1709 + }
1710 + }
1711 + return a;
1712 + }
1713 +}
1714 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1715 +
1716 +/***/ }),
1717 +
1718 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
1719 +/*!*****************************************************************!*\
1720 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1721 + \*****************************************************************/
1722 +/***/ ((module) => {
1723 +
1724 +function _nonIterableRest() {
1725 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1726 +}
1727 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1728 +
1729 +/***/ }),
1730 +
1731 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
1732 +/*!***************************************************************!*\
1733 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
1734 + \***************************************************************/
1735 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1736 +
1737 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
1738 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
1739 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
1740 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
1741 +function _slicedToArray(r, e) {
1742 + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
1743 +}
1744 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1745 +
1746 +/***/ }),
1747 +
1748 +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
1749 +/*!*************************************************************!*\
1750 + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
1751 + \*************************************************************/
1752 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1753 +
1754 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1755 +function toPrimitive(t, r) {
1756 + if ("object" != _typeof(t) || !t) return t;
1757 + var e = t[Symbol.toPrimitive];
1758 + if (void 0 !== e) {
1759 + var i = e.call(t, r || "default");
1760 + if ("object" != _typeof(i)) return i;
1761 + throw new TypeError("@@toPrimitive must return a primitive value.");
1762 + }
1763 + return ("string" === r ? String : Number)(t);
1764 +}
1765 +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
1766 +
1767 +/***/ }),
1768 +
1769 +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
1770 +/*!***************************************************************!*\
1771 + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
1772 + \***************************************************************/
1773 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1774 +
1775 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1776 +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
1777 +function toPropertyKey(t) {
1778 + var i = toPrimitive(t, "string");
1779 + return "symbol" == _typeof(i) ? i : i + "";
1780 +}
1781 +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
1782 +
1783 +/***/ }),
1784 +
1785 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
1786 +/*!********************************************************!*\
1787 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
1788 + \********************************************************/
1789 +/***/ ((module) => {
1790 +
1791 +function _typeof(o) {
1792 + "@babel/helpers - typeof";
1793 +
1794 + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1795 + return typeof o;
1796 + } : function (o) {
1797 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1798 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
1799 +}
1800 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1801 +
1802 +/***/ }),
1803 +
1804 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
1805 +/*!****************************************************************************!*\
1806 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
1807 + \****************************************************************************/
1808 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1809 +
1810 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
1811 +function _unsupportedIterableToArray(r, a) {
1812 + if (r) {
1813 + if ("string" == typeof r) return arrayLikeToArray(r, a);
1814 + var t = {}.toString.call(r).slice(8, -1);
1815 + 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;
1816 + }
1817 +}
1818 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1819 +
1820 +/***/ }),
1821 +
1822 +/***/ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js":
1823 +/*!*************************************************************************************!*\
1824 + !*** ../node_modules/@wordpress/element/build-module/create-interpolate-element.js ***!
1825 + \*************************************************************************************/
1826 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1827 +
1828 +"use strict";
1829 +__webpack_require__.r(__webpack_exports__);
1830 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1831 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1832 +/* harmony export */ });
1833 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
1834 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
336 1835 /**
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 - }));
1836 + * Internal dependencies
1837 + */
346 1838
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 - }));
352 1839
353 -//#endregion
354 -//#region node_modules/prop-types/checkPropTypes.js
355 1840 /**
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 - }));
1841 + * Object containing a React element.
1842 + *
1843 + * @typedef {import('react').ReactElement} Element
1844 + */
415 1845
416 -//#endregion
417 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
1846 +let indoc, offset, output, stack;
1847 +
418 1848 /**
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 - }));
1849 + * Matches tags in the localized string
1850 + *
1851 + * This is used for extracting the tag pattern groups for parsing the localized
1852 + * string and along with the map converting it to a react element.
1853 + *
1854 + * There are four references extracted using this tokenizer:
1855 + *
1856 + * match: Full match of the tag (i.e. <strong>, </strong>, <br/>)
1857 + * isClosing: The closing slash, if it exists.
1858 + * name: The name portion of the tag (strong, br) (if )
1859 + * isSelfClosed: The slash on a self closing tag, if it exists.
1860 + *
1861 + * @type {RegExp}
1862 + */
1863 +const tokenizer = /<(\/)?(\w+)\s*(\/)?>/g;
813 1864
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 - }));
1865 +/**
1866 + * The stack frame tracking parse progress.
1867 + *
1868 + * @typedef Frame
1869 + *
1870 + * @property {Element} element A parent element which may still have
1871 + * @property {number} tokenStart Offset at which parent element first
1872 + * appears.
1873 + * @property {number} tokenLength Length of string marking start of parent
1874 + * element.
1875 + * @property {number} [prevOffset] Running offset at which parsing should
1876 + * continue.
1877 + * @property {number} [leadingTextStart] Offset at which last closing element
1878 + * finished, used for finding text between
1879 + * elements.
1880 + * @property {Element[]} children Children.
1881 + */
821 1882
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 - }
1883 +/**
1884 + * Tracks recursive-descent parse state.
1885 + *
1886 + * This is a Stack frame holding parent elements until all children have been
1887 + * parsed.
1888 + *
1889 + * @private
1890 + * @param {Element} element A parent element which may still have
1891 + * nested children not yet parsed.
1892 + * @param {number} tokenStart Offset at which parent element first
1893 + * appears.
1894 + * @param {number} tokenLength Length of string marking start of parent
1895 + * element.
1896 + * @param {number} [prevOffset] Running offset at which parsing should
1897 + * continue.
1898 + * @param {number} [leadingTextStart] Offset at which last closing element
1899 + * finished, used for finding text between
1900 + * elements.
1901 + *
1902 + * @return {Frame} The stack frame tracking parse progress.
1903 + */
1904 +function createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart) {
1905 + return {
1906 + element,
1907 + tokenStart,
1908 + tokenLength,
1909 + prevOffset,
1910 + leadingTextStart,
1911 + children: []
1912 + };
1913 +}
828 1914
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 - }
1915 +/**
1916 + * This function creates an interpolated element from a passed in string with
1917 + * specific tags matching how the string should be converted to an element via
1918 + * the conversion map value.
1919 + *
1920 + * @example
1921 + * For example, for the given string:
1922 + *
1923 + * "This is a <span>string</span> with <a>a link</a> and a self-closing
1924 + * <CustomComponentB/> tag"
1925 + *
1926 + * You would have something like this as the conversionMap value:
1927 + *
1928 + * ```js
1929 + * {
1930 + * span: <span />,
1931 + * a: <a href={ 'https://github.com' } />,
1932 + * CustomComponentB: <CustomComponent />,
1933 + * }
1934 + * ```
1935 + *
1936 + * @param {string} interpolatedString The interpolation string to be parsed.
1937 + * @param {Record<string, Element>} conversionMap The map used to convert the string to
1938 + * a react element.
1939 + * @throws {TypeError}
1940 + * @return {Element} A wp element.
1941 + */
1942 +const createInterpolateElement = (interpolatedString, conversionMap) => {
1943 + indoc = interpolatedString;
1944 + offset = 0;
1945 + output = [];
1946 + stack = [];
1947 + tokenizer.lastIndex = 0;
1948 + if (!isValidConversionMap(conversionMap)) {
1949 + throw new TypeError('The conversionMap provided is not valid. It must be an object with values that are React Elements');
1950 + }
1951 + do {
1952 + // twiddle our thumbs
1953 + } while (proceed(conversionMap));
1954 + return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, ...output);
1955 +};
858 1956
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 - }
1957 +/**
1958 + * Validate conversion map.
1959 + *
1960 + * A map is considered valid if it's an object and every value in the object
1961 + * is a React Element
1962 + *
1963 + * @private
1964 + *
1965 + * @param {Object} conversionMap The map being validated.
1966 + *
1967 + * @return {boolean} True means the map is valid.
1968 + */
1969 +const isValidConversionMap = conversionMap => {
1970 + const isObject = typeof conversionMap === 'object';
1971 + const values = isObject && Object.values(conversionMap);
1972 + return isObject && values.length && values.every(element => (0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element));
1973 +};
866 1974
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 - }
1975 +/**
1976 + * This is the iterator over the matches in the string.
1977 + *
1978 + * @private
1979 + *
1980 + * @param {Object} conversionMap The conversion map for the string.
1981 + *
1982 + * @return {boolean} true for continuing to iterate, false for finished.
1983 + */
1984 +function proceed(conversionMap) {
1985 + const next = nextToken();
1986 + const [tokenType, name, startOffset, tokenLength] = next;
1987 + const stackDepth = stack.length;
1988 + const leadingTextStart = startOffset > offset ? offset : null;
1989 + if (!conversionMap[name]) {
1990 + addText();
1991 + return false;
1992 + }
1993 + switch (tokenType) {
1994 + case 'no-more-tokens':
1995 + if (stackDepth !== 0) {
1996 + const {
1997 + leadingTextStart: stackLeadingText,
1998 + tokenStart
1999 + } = stack.pop();
2000 + output.push(indoc.substr(stackLeadingText, tokenStart));
2001 + }
2002 + addText();
2003 + return false;
2004 + case 'self-closed':
2005 + if (0 === stackDepth) {
2006 + if (null !== leadingTextStart) {
2007 + output.push(indoc.substr(leadingTextStart, startOffset - leadingTextStart));
2008 + }
2009 + output.push(conversionMap[name]);
2010 + offset = startOffset + tokenLength;
2011 + return true;
2012 + }
876 2013
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 - }
2014 + // Otherwise we found an inner element.
2015 + addChild(createFrame(conversionMap[name], startOffset, tokenLength));
2016 + offset = startOffset + tokenLength;
2017 + return true;
2018 + case 'opener':
2019 + stack.push(createFrame(conversionMap[name], startOffset, tokenLength, startOffset + tokenLength, leadingTextStart));
2020 + offset = startOffset + tokenLength;
2021 + return true;
2022 + case 'closer':
2023 + // If we're not nesting then this is easy - close the block.
2024 + if (1 === stackDepth) {
2025 + closeOuterElement(startOffset);
2026 + offset = startOffset + tokenLength;
2027 + return true;
2028 + }
882 2029
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 - }
2030 + // Otherwise we're nested and we have to close out the current
2031 + // block and add it as a innerBlock to the parent.
2032 + const stackTop = stack.pop();
2033 + const text = indoc.substr(stackTop.prevOffset, startOffset - stackTop.prevOffset);
2034 + stackTop.children.push(text);
2035 + stackTop.prevOffset = startOffset + tokenLength;
2036 + const frame = createFrame(stackTop.element, stackTop.tokenStart, stackTop.tokenLength, startOffset + tokenLength);
2037 + frame.children = stackTop.children;
2038 + addChild(frame);
2039 + offset = startOffset + tokenLength;
2040 + return true;
2041 + default:
2042 + addText();
2043 + return false;
2044 + }
2045 +}
888 2046
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");
2047 +/**
2048 + * Grabs the next token match in the string and returns it's details.
2049 + *
2050 + * @private
2051 + *
2052 + * @return {Array} An array of details for the token matched.
2053 + */
2054 +function nextToken() {
2055 + const matches = tokenizer.exec(indoc);
2056 + // We have no more tokens.
2057 + if (null === matches) {
2058 + return ['no-more-tokens'];
2059 + }
2060 + const startedAt = matches.index;
2061 + const [match, isClosing, name, isSelfClosed] = matches;
2062 + const length = match.length;
2063 + if (isSelfClosed) {
2064 + return ['self-closed', name, startedAt, length];
2065 + }
2066 + if (isClosing) {
2067 + return ['closer', name, startedAt, length];
2068 + }
2069 + return ['opener', name, startedAt, length];
2070 +}
2071 +
2072 +/**
2073 + * Pushes text extracted from the indoc string to the output stack given the
2074 + * current rawLength value and offset (if rawLength is provided ) or the
2075 + * indoc.length and offset.
2076 + *
2077 + * @private
2078 + */
2079 +function addText() {
2080 + const length = indoc.length - offset;
2081 + if (0 === length) {
2082 + return;
2083 + }
2084 + output.push(indoc.substr(offset, length));
2085 +}
2086 +
2087 +/**
2088 + * Pushes a child element to the associated parent element's children for the
2089 + * parent currently active in the stack.
2090 + *
2091 + * @private
2092 + *
2093 + * @param {Frame} frame The Frame containing the child element and it's
2094 + * token information.
2095 + */
2096 +function addChild(frame) {
2097 + const {
2098 + element,
2099 + tokenStart,
2100 + tokenLength,
2101 + prevOffset,
2102 + children
2103 + } = frame;
2104 + const parent = stack[stack.length - 1];
2105 + const text = indoc.substr(parent.prevOffset, tokenStart - parent.prevOffset);
2106 + if (text) {
2107 + parent.children.push(text);
2108 + }
2109 + parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
2110 + parent.prevOffset = prevOffset ? prevOffset : tokenStart + tokenLength;
2111 +}
2112 +
2113 +/**
2114 + * This is called for closing tags. It creates the element currently active in
2115 + * the stack.
2116 + *
2117 + * @private
2118 + *
2119 + * @param {number} endOffset Offset at which the closing tag for the element
2120 + * begins in the string. If this is greater than the
2121 + * prevOffset attached to the element, then this
2122 + * helps capture any remaining nested text nodes in
2123 + * the element.
2124 + */
2125 +function closeOuterElement(endOffset) {
2126 + const {
2127 + element,
2128 + leadingTextStart,
2129 + prevOffset,
2130 + tokenStart,
2131 + children
2132 + } = stack.pop();
2133 + const text = endOffset ? indoc.substr(prevOffset, endOffset - prevOffset) : indoc.substr(prevOffset);
2134 + if (text) {
2135 + children.push(text);
2136 + }
2137 + if (null !== leadingTextStart) {
2138 + output.push(indoc.substr(leadingTextStart, tokenStart - leadingTextStart));
2139 + }
2140 + output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
2141 +}
2142 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createInterpolateElement);
2143 +//# sourceMappingURL=create-interpolate-element.js.map
2144 +
2145 +/***/ }),
2146 +
2147 +/***/ "../node_modules/@wordpress/element/build-module/index.js":
2148 +/*!****************************************************************!*\
2149 + !*** ../node_modules/@wordpress/element/build-module/index.js ***!
2150 + \****************************************************************/
2151 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2152 +
2153 +"use strict";
2154 +__webpack_require__.r(__webpack_exports__);
2155 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2156 +/* harmony export */ Children: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Children),
2157 +/* harmony export */ Component: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Component),
2158 +/* harmony export */ Fragment: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Fragment),
2159 +/* harmony export */ Platform: () => (/* reexport safe */ _platform__WEBPACK_IMPORTED_MODULE_4__["default"]),
2160 +/* harmony export */ PureComponent: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.PureComponent),
2161 +/* harmony export */ RawHTML: () => (/* reexport safe */ _raw_html__WEBPACK_IMPORTED_MODULE_6__["default"]),
2162 +/* harmony export */ StrictMode: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode),
2163 +/* harmony export */ Suspense: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Suspense),
2164 +/* harmony export */ cloneElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.cloneElement),
2165 +/* harmony export */ concatChildren: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.concatChildren),
2166 +/* harmony export */ createContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createContext),
2167 +/* harmony export */ createElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createElement),
2168 +/* harmony export */ createInterpolateElement: () => (/* reexport safe */ _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__["default"]),
2169 +/* harmony export */ createPortal: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createPortal),
2170 +/* harmony export */ createRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createRef),
2171 +/* harmony export */ createRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createRoot),
2172 +/* harmony export */ findDOMNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.findDOMNode),
2173 +/* harmony export */ flushSync: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.flushSync),
2174 +/* harmony export */ forwardRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.forwardRef),
2175 +/* harmony export */ hydrate: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrate),
2176 +/* harmony export */ hydrateRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot),
2177 +/* harmony export */ isEmptyElement: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.isEmptyElement),
2178 +/* harmony export */ isValidElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.isValidElement),
2179 +/* harmony export */ lazy: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.lazy),
2180 +/* harmony export */ memo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.memo),
2181 +/* harmony export */ render: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.render),
2182 +/* harmony export */ renderToString: () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_5__["default"]),
2183 +/* harmony export */ startTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.startTransition),
2184 +/* harmony export */ switchChildrenNodeName: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.switchChildrenNodeName),
2185 +/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.unmountComponentAtNode),
2186 +/* harmony export */ useCallback: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useCallback),
2187 +/* harmony export */ useContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useContext),
2188 +/* harmony export */ useDebugValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue),
2189 +/* harmony export */ useDeferredValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDeferredValue),
2190 +/* harmony export */ useEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useEffect),
2191 +/* harmony export */ useId: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useId),
2192 +/* harmony export */ useImperativeHandle: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle),
2193 +/* harmony export */ useInsertionEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect),
2194 +/* harmony export */ useLayoutEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect),
2195 +/* harmony export */ useMemo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useMemo),
2196 +/* harmony export */ useReducer: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useReducer),
2197 +/* harmony export */ useRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useRef),
2198 +/* harmony export */ useState: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useState),
2199 +/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore),
2200 +/* harmony export */ useTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useTransition)
2201 +/* harmony export */ });
2202 +/* 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");
2203 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "../node_modules/@wordpress/element/build-module/react.js");
2204 +/* harmony import */ var _react_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-platform */ "../node_modules/@wordpress/element/build-module/react-platform.js");
2205 +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "../node_modules/@wordpress/element/build-module/utils.js");
2206 +/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "../node_modules/@wordpress/element/build-module/platform.js");
2207 +/* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serialize */ "../node_modules/@wordpress/element/build-module/serialize.js");
2208 +/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
2209 +
2210 +
2211 +
2212 +
2213 +
2214 +
2215 +
2216 +//# sourceMappingURL=index.js.map
2217 +
2218 +/***/ }),
2219 +
2220 +/***/ "../node_modules/@wordpress/element/build-module/platform.js":
2221 +/*!*******************************************************************!*\
2222 + !*** ../node_modules/@wordpress/element/build-module/platform.js ***!
2223 + \*******************************************************************/
2224 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2225 +
2226 +"use strict";
2227 +__webpack_require__.r(__webpack_exports__);
2228 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2229 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2230 +/* harmony export */ });
2231 +/**
2232 + * Parts of this source were derived and modified from react-native-web,
2233 + * released under the MIT license.
2234 + *
2235 + * Copyright (c) 2016-present, Nicolas Gallagher.
2236 + * Copyright (c) 2015-present, Facebook, Inc.
2237 + *
2238 + */
2239 +const Platform = {
2240 + OS: 'web',
2241 + select: spec => 'web' in spec ? spec.web : spec.default,
2242 + isWeb: true
2243 +};
2244 +/**
2245 + * Component used to detect the current Platform being used.
2246 + * Use Platform.OS === 'web' to detect if running on web enviroment.
2247 + *
2248 + * This is the same concept as the React Native implementation.
2249 + *
2250 + * @see https://reactnative.dev/docs/platform-specific-code#platform-module
2251 + *
2252 + * Here is an example of how to use the select method:
2253 + * @example
2254 + * ```js
2255 + * import { Platform } from '@wordpress/element';
2256 + *
2257 + * const placeholderLabel = Platform.select( {
2258 + * native: __( 'Add media' ),
2259 + * web: __( 'Drag images, upload new ones or select files from your library.' ),
2260 + * } );
2261 + * ```
2262 + */
2263 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Platform);
2264 +//# sourceMappingURL=platform.js.map
2265 +
2266 +/***/ }),
2267 +
2268 +/***/ "../node_modules/@wordpress/element/build-module/raw-html.js":
2269 +/*!*******************************************************************!*\
2270 + !*** ../node_modules/@wordpress/element/build-module/raw-html.js ***!
2271 + \*******************************************************************/
2272 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2273 +
2274 +"use strict";
2275 +__webpack_require__.r(__webpack_exports__);
2276 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2277 +/* harmony export */ "default": () => (/* binding */ RawHTML)
2278 +/* harmony export */ });
2279 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
2280 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
2281 +/**
2282 + * Internal dependencies
2283 + */
2284 +
2285 +
2286 +/** @typedef {{children: string} & import('react').ComponentPropsWithoutRef<'div'>} RawHTMLProps */
2287 +
2288 +/**
2289 + * Component used as equivalent of Fragment with unescaped HTML, in cases where
2290 + * it is desirable to render dangerous HTML without needing a wrapper element.
2291 + * To preserve additional props, a `div` wrapper _will_ be created if any props
2292 + * aside from `children` are passed.
2293 + *
2294 + * @param {RawHTMLProps} props Children should be a string of HTML or an array
2295 + * of strings. Other props will be passed through
2296 + * to the div wrapper.
2297 + *
2298 + * @return {JSX.Element} Dangerously-rendering component.
2299 + */
2300 +function RawHTML({
2301 + children,
2302 + ...props
2303 +}) {
2304 + let rawHtml = '';
2305 +
2306 + // Cast children as an array, and concatenate each element if it is a string.
2307 + _react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).forEach(child => {
2308 + if (typeof child === 'string' && child.trim() !== '') {
2309 + rawHtml += child;
2310 + }
2311 + });
2312 +
2313 + // The `div` wrapper will be stripped by the `renderElement` serializer in
2314 + // `./serialize.js` unless there are non-children props present.
2315 + return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)('div', {
2316 + dangerouslySetInnerHTML: {
2317 + __html: rawHtml
2318 + },
2319 + ...props
2320 + });
2321 +}
2322 +//# sourceMappingURL=raw-html.js.map
2323 +
2324 +/***/ }),
2325 +
2326 +/***/ "../node_modules/@wordpress/element/build-module/react-platform.js":
2327 +/*!*************************************************************************!*\
2328 + !*** ../node_modules/@wordpress/element/build-module/react-platform.js ***!
2329 + \*************************************************************************/
2330 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2331 +
2332 +"use strict";
2333 +__webpack_require__.r(__webpack_exports__);
2334 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2335 +/* harmony export */ createPortal: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.createPortal),
2336 +/* harmony export */ createRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot),
2337 +/* harmony export */ findDOMNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode),
2338 +/* harmony export */ flushSync: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.flushSync),
2339 +/* harmony export */ hydrate: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
2340 +/* harmony export */ hydrateRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.hydrateRoot),
2341 +/* harmony export */ render: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.render),
2342 +/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode)
2343 +/* harmony export */ });
2344 +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
2345 +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
2346 +/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
2347 +/**
2348 + * External dependencies
2349 + */
2350 +
2351 +
2352 +
2353 +/**
2354 + * Creates a portal into which a component can be rendered.
2355 + *
2356 + * @see https://github.com/facebook/react/issues/10309#issuecomment-318433235
2357 + *
2358 + * @param {import('react').ReactElement} child Any renderable child, such as an element,
2359 + * string, or fragment.
2360 + * @param {HTMLElement} container DOM node into which element should be rendered.
2361 + */
2362 +
2363 +
2364 +/**
2365 + * Finds the dom node of a React component.
2366 + *
2367 + * @param {import('react').ComponentType} component Component's instance.
2368 + */
2369 +
2370 +
2371 +/**
2372 + * Forces React to flush any updates inside the provided callback synchronously.
2373 + *
2374 + * @param {Function} callback Callback to run synchronously.
2375 + */
2376 +
2377 +
2378 +/**
2379 + * Renders a given element into the target DOM node.
2380 + *
2381 + * @deprecated since WordPress 6.2.0. Use `createRoot` instead.
2382 + * @see https://react.dev/reference/react-dom/render
2383 + */
2384 +
2385 +
2386 +/**
2387 + * Hydrates a given element into the target DOM node.
2388 + *
2389 + * @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead.
2390 + * @see https://react.dev/reference/react-dom/hydrate
2391 + */
2392 +
2393 +
2394 +/**
2395 + * Creates a new React root for the target DOM node.
2396 + *
2397 + * @since 6.2.0 Introduced in WordPress core.
2398 + * @see https://react.dev/reference/react-dom/client/createRoot
2399 + */
2400 +
2401 +
2402 +/**
2403 + * Creates a new React root for the target DOM node and hydrates it with a pre-generated markup.
2404 + *
2405 + * @since 6.2.0 Introduced in WordPress core.
2406 + * @see https://react.dev/reference/react-dom/client/hydrateRoot
2407 + */
2408 +
2409 +
2410 +/**
2411 + * Removes any mounted element from the target DOM node.
2412 + *
2413 + * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead.
2414 + * @see https://react.dev/reference/react-dom/unmountComponentAtNode
2415 + */
2416 +
2417 +//# sourceMappingURL=react-platform.js.map
2418 +
2419 +/***/ }),
2420 +
2421 +/***/ "../node_modules/@wordpress/element/build-module/react.js":
2422 +/*!****************************************************************!*\
2423 + !*** ../node_modules/@wordpress/element/build-module/react.js ***!
2424 + \****************************************************************/
2425 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2426 +
2427 +"use strict";
2428 +__webpack_require__.r(__webpack_exports__);
2429 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2430 +/* harmony export */ Children: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Children),
2431 +/* harmony export */ Component: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Component),
2432 +/* harmony export */ Fragment: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Fragment),
2433 +/* harmony export */ PureComponent: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.PureComponent),
2434 +/* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode),
2435 +/* harmony export */ Suspense: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Suspense),
2436 +/* harmony export */ cloneElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.cloneElement),
2437 +/* harmony export */ concatChildren: () => (/* binding */ concatChildren),
2438 +/* harmony export */ createContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createContext),
2439 +/* harmony export */ createElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createElement),
2440 +/* harmony export */ createRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createRef),
2441 +/* harmony export */ forwardRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef),
2442 +/* harmony export */ isValidElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement),
2443 +/* harmony export */ lazy: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.lazy),
2444 +/* harmony export */ memo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.memo),
2445 +/* harmony export */ startTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.startTransition),
2446 +/* harmony export */ switchChildrenNodeName: () => (/* binding */ switchChildrenNodeName),
2447 +/* harmony export */ useCallback: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useCallback),
2448 +/* harmony export */ useContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useContext),
2449 +/* harmony export */ useDebugValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue),
2450 +/* harmony export */ useDeferredValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDeferredValue),
2451 +/* harmony export */ useEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useEffect),
2452 +/* harmony export */ useId: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useId),
2453 +/* harmony export */ useImperativeHandle: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle),
2454 +/* harmony export */ useInsertionEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect),
2455 +/* harmony export */ useLayoutEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect),
2456 +/* harmony export */ useMemo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useMemo),
2457 +/* harmony export */ useReducer: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useReducer),
2458 +/* harmony export */ useRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useRef),
2459 +/* harmony export */ useState: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useState),
2460 +/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore),
2461 +/* harmony export */ useTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useTransition)
2462 +/* harmony export */ });
2463 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
2464 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2465 +/**
2466 + * External dependencies
2467 + */
2468 +// eslint-disable-next-line @typescript-eslint/no-restricted-imports
2469 +
2470 +
2471 +/**
2472 + * Object containing a React element.
2473 + *
2474 + * @typedef {import('react').ReactElement} Element
2475 + */
2476 +
2477 +/**
2478 + * Object containing a React component.
2479 + *
2480 + * @typedef {import('react').ComponentType} ComponentType
2481 + */
2482 +
2483 +/**
2484 + * Object containing a React synthetic event.
2485 + *
2486 + * @typedef {import('react').SyntheticEvent} SyntheticEvent
2487 + */
2488 +
2489 +/**
2490 + * Object containing a React synthetic event.
2491 + *
2492 + * @template T
2493 + * @typedef {import('react').RefObject<T>} RefObject<T>
2494 + */
2495 +
2496 +/**
2497 + * Object that provides utilities for dealing with React children.
2498 + */
2499 +
2500 +
2501 +/**
2502 + * Creates a copy of an element with extended props.
2503 + *
2504 + * @param {Element} element Element
2505 + * @param {?Object} props Props to apply to cloned element
2506 + *
2507 + * @return {Element} Cloned element.
2508 + */
2509 +
2510 +
2511 +/**
2512 + * A base class to create WordPress Components (Refs, state and lifecycle hooks)
2513 + */
2514 +
2515 +
2516 +/**
2517 + * Creates a context object containing two components: a provider and consumer.
2518 + *
2519 + * @param {Object} defaultValue A default data stored in the context.
2520 + *
2521 + * @return {Object} Context object.
2522 + */
2523 +
2524 +
2525 +/**
2526 + * Returns a new element of given type. Type can be either a string tag name or
2527 + * another function which itself returns an element.
2528 + *
2529 + * @param {?(string|Function)} type Tag name or element creator
2530 + * @param {Object} props Element properties, either attribute
2531 + * set to apply to DOM node or values to
2532 + * pass through to element creator
2533 + * @param {...Element} children Descendant elements
2534 + *
2535 + * @return {Element} Element.
2536 + */
2537 +
2538 +
2539 +/**
2540 + * Returns an object tracking a reference to a rendered element via its
2541 + * `current` property as either a DOMElement or Element, dependent upon the
2542 + * type of element rendered with the ref attribute.
2543 + *
2544 + * @return {Object} Ref object.
2545 + */
2546 +
2547 +
2548 +/**
2549 + * Component enhancer used to enable passing a ref to its wrapped component.
2550 + * Pass a function argument which receives `props` and `ref` as its arguments,
2551 + * returning an element using the forwarded ref. The return value is a new
2552 + * component which forwards its ref.
2553 + *
2554 + * @param {Function} forwarder Function passed `props` and `ref`, expected to
2555 + * return an element.
2556 + *
2557 + * @return {Component} Enhanced component.
2558 + */
2559 +
2560 +
2561 +/**
2562 + * A component which renders its children without any wrapping element.
2563 + */
2564 +
2565 +
2566 +/**
2567 + * Checks if an object is a valid React Element.
2568 + *
2569 + * @param {Object} objectToCheck The object to be checked.
2570 + *
2571 + * @return {boolean} true if objectToTest is a valid React Element and false otherwise.
2572 + */
2573 +
2574 +
2575 +/**
2576 + * @see https://reactjs.org/docs/react-api.html#reactmemo
2577 + */
2578 +
2579 +
2580 +/**
2581 + * Component that activates additional checks and warnings for its descendants.
2582 + */
2583 +
2584 +
2585 +/**
2586 + * @see https://reactjs.org/docs/hooks-reference.html#usecallback
2587 + */
2588 +
2589 +
2590 +/**
2591 + * @see https://reactjs.org/docs/hooks-reference.html#usecontext
2592 + */
2593 +
2594 +
2595 +/**
2596 + * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
2597 + */
2598 +
2599 +
2600 +/**
2601 + * @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
2602 + */
2603 +
2604 +
2605 +/**
2606 + * @see https://reactjs.org/docs/hooks-reference.html#useeffect
2607 + */
2608 +
2609 +
2610 +/**
2611 + * @see https://reactjs.org/docs/hooks-reference.html#useid
2612 + */
2613 +
2614 +
2615 +/**
2616 + * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
2617 + */
2618 +
2619 +
2620 +/**
2621 + * @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect
2622 + */
2623 +
2624 +
2625 +/**
2626 + * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
2627 + */
2628 +
2629 +
2630 +/**
2631 + * @see https://reactjs.org/docs/hooks-reference.html#usememo
2632 + */
2633 +
2634 +
2635 +/**
2636 + * @see https://reactjs.org/docs/hooks-reference.html#usereducer
2637 + */
2638 +
2639 +
2640 +/**
2641 + * @see https://reactjs.org/docs/hooks-reference.html#useref
2642 + */
2643 +
2644 +
2645 +/**
2646 + * @see https://reactjs.org/docs/hooks-reference.html#usestate
2647 + */
2648 +
2649 +
2650 +/**
2651 + * @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore
2652 + */
2653 +
2654 +
2655 +/**
2656 + * @see https://reactjs.org/docs/hooks-reference.html#usetransition
2657 + */
2658 +
2659 +
2660 +/**
2661 + * @see https://reactjs.org/docs/react-api.html#starttransition
2662 + */
2663 +
2664 +
2665 +/**
2666 + * @see https://reactjs.org/docs/react-api.html#reactlazy
2667 + */
2668 +
2669 +
2670 +/**
2671 + * @see https://reactjs.org/docs/react-api.html#reactsuspense
2672 + */
2673 +
2674 +
2675 +/**
2676 + * @see https://reactjs.org/docs/react-api.html#reactpurecomponent
2677 + */
2678 +
2679 +
2680 +/**
2681 + * Concatenate two or more React children objects.
2682 + *
2683 + * @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.
2684 + *
2685 + * @return {Array} The concatenated value.
2686 + */
2687 +function concatChildren(...childrenArguments) {
2688 + return childrenArguments.reduce((accumulator, children, i) => {
2689 + react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (child, j) => {
2690 + if (child && 'string' !== typeof child) {
2691 + child = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, {
2692 + key: [i, j].join()
2693 + });
2694 + }
2695 + accumulator.push(child);
2696 + });
2697 + return accumulator;
2698 + }, []);
2699 +}
2700 +
2701 +/**
2702 + * Switches the nodeName of all the elements in the children object.
2703 + *
2704 + * @param {?Object} children Children object.
2705 + * @param {string} nodeName Node name.
2706 + *
2707 + * @return {?Object} The updated children object.
2708 + */
2709 +function switchChildrenNodeName(children, nodeName) {
2710 + return children && react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (elt, index) => {
2711 + if (typeof elt?.valueOf() === 'string') {
2712 + return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
2713 + key: index
2714 + }, elt);
2715 + }
2716 + const {
2717 + children: childrenProp,
2718 + ...props
2719 + } = elt.props;
2720 + return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
2721 + key: index,
2722 + ...props
2723 + }, childrenProp);
2724 + });
2725 +}
2726 +//# sourceMappingURL=react.js.map
2727 +
2728 +/***/ }),
2729 +
2730 +/***/ "../node_modules/@wordpress/element/build-module/serialize.js":
2731 +/*!********************************************************************!*\
2732 + !*** ../node_modules/@wordpress/element/build-module/serialize.js ***!
2733 + \********************************************************************/
2734 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2735 +
2736 +"use strict";
2737 +__webpack_require__.r(__webpack_exports__);
2738 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2739 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
2740 +/* harmony export */ hasPrefix: () => (/* binding */ hasPrefix),
2741 +/* harmony export */ renderAttributes: () => (/* binding */ renderAttributes),
2742 +/* harmony export */ renderComponent: () => (/* binding */ renderComponent),
2743 +/* harmony export */ renderElement: () => (/* binding */ renderElement),
2744 +/* harmony export */ renderNativeComponent: () => (/* binding */ renderNativeComponent),
2745 +/* harmony export */ renderStyle: () => (/* binding */ renderStyle)
2746 +/* harmony export */ });
2747 +/* 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");
2748 +/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! change-case */ "../node_modules/param-case/dist.es2015/index.js");
2749 +/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/escape-html */ "../node_modules/@wordpress/escape-html/build-module/index.js");
2750 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./react */ "react");
2751 +/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_3__);
2752 +/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
2753 +/**
2754 + * Parts of this source were derived and modified from fast-react-render,
2755 + * released under the MIT license.
2756 + *
2757 + * https://github.com/alt-j/fast-react-render
2758 + *
2759 + * Copyright (c) 2016 Andrey Morozov
2760 + *
2761 + * Permission is hereby granted, free of charge, to any person obtaining a copy
2762 + * of this software and associated documentation files (the "Software"), to deal
2763 + * in the Software without restriction, including without limitation the rights
2764 + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2765 + * copies of the Software, and to permit persons to whom the Software is
2766 + * furnished to do so, subject to the following conditions:
2767 + *
2768 + * The above copyright notice and this permission notice shall be included in
2769 + * all copies or substantial portions of the Software.
2770 + *
2771 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2772 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2773 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2774 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2775 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2776 + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2777 + * THE SOFTWARE.
2778 + */
2779 +
2780 +/**
2781 + * External dependencies
2782 + */
2783 +
2784 +
2785 +
2786 +/**
2787 + * WordPress dependencies
2788 + */
2789 +
2790 +
2791 +/**
2792 + * Internal dependencies
2793 + */
2794 +
2795 +
2796 +
2797 +/** @typedef {import('react').ReactElement} ReactElement */
2798 +
2799 +const {
2800 + Provider,
2801 + Consumer
2802 +} = (0,_react__WEBPACK_IMPORTED_MODULE_3__.createContext)(undefined);
2803 +const ForwardRef = (0,_react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)(() => {
2804 + return null;
2805 +});
2806 +
2807 +/**
2808 + * Valid attribute types.
2809 + *
2810 + * @type {Set<string>}
2811 + */
2812 +const ATTRIBUTES_TYPES = new Set(['string', 'boolean', 'number']);
2813 +
2814 +/**
2815 + * Element tags which can be self-closing.
2816 + *
2817 + * @type {Set<string>}
2818 + */
2819 +const SELF_CLOSING_TAGS = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']);
2820 +
2821 +/**
2822 + * Boolean attributes are attributes whose presence as being assigned is
2823 + * meaningful, even if only empty.
2824 + *
2825 + * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
2826 + * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
2827 + *
2828 + * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
2829 + * .filter( ( tr ) => tr.lastChild.textContent.indexOf( 'Boolean attribute' ) !== -1 )
2830 + * .reduce( ( result, tr ) => Object.assign( result, {
2831 + * [ tr.firstChild.textContent.trim() ]: true
2832 + * } ), {} ) ).sort();
2833 + *
2834 + * @type {Set<string>}
2835 + */
2836 +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']);
2837 +
2838 +/**
2839 + * Enumerated attributes are attributes which must be of a specific value form.
2840 + * Like boolean attributes, these are meaningful if specified, even if not of a
2841 + * valid enumerated value.
2842 + *
2843 + * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute
2844 + * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
2845 + *
2846 + * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
2847 + * .filter( ( tr ) => /^("(.+?)";?\s*)+/.test( tr.lastChild.textContent.trim() ) )
2848 + * .reduce( ( result, tr ) => Object.assign( result, {
2849 + * [ tr.firstChild.textContent.trim() ]: true
2850 + * } ), {} ) ).sort();
2851 + *
2852 + * Some notable omissions:
2853 + *
2854 + * - `alt`: https://blog.whatwg.org/omit-alt
2855 + *
2856 + * @type {Set<string>}
2857 + */
2858 +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']);
2859 +
2860 +/**
2861 + * Set of CSS style properties which support assignment of unitless numbers.
2862 + * Used in rendering of style properties, where `px` unit is assumed unless
2863 + * property is included in this set or value is zero.
2864 + *
2865 + * Generated via:
2866 + *
2867 + * Object.entries( document.createElement( 'div' ).style )
2868 + * .filter( ( [ key ] ) => (
2869 + * ! /^(webkit|ms|moz)/.test( key ) &&
2870 + * ( e.style[ key ] = 10 ) &&
2871 + * e.style[ key ] === '10'
2872 + * ) )
2873 + * .map( ( [ key ] ) => key )
2874 + * .sort();
2875 + *
2876 + * @type {Set<string>}
2877 + */
2878 +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']);
2879 +
2880 +/**
2881 + * Returns true if the specified string is prefixed by one of an array of
2882 + * possible prefixes.
2883 + *
2884 + * @param {string} string String to check.
2885 + * @param {string[]} prefixes Possible prefixes.
2886 + *
2887 + * @return {boolean} Whether string has prefix.
2888 + */
2889 +function hasPrefix(string, prefixes) {
2890 + return prefixes.some(prefix => string.indexOf(prefix) === 0);
2891 +}
2892 +
2893 +/**
2894 + * Returns true if the given prop name should be ignored in attributes
2895 + * serialization, or false otherwise.
2896 + *
2897 + * @param {string} attribute Attribute to check.
2898 + *
2899 + * @return {boolean} Whether attribute should be ignored.
2900 + */
2901 +function isInternalAttribute(attribute) {
2902 + return 'key' === attribute || 'children' === attribute;
2903 +}
2904 +
2905 +/**
2906 + * Returns the normal form of the element's attribute value for HTML.
2907 + *
2908 + * @param {string} attribute Attribute name.
2909 + * @param {*} value Non-normalized attribute value.
2910 + *
2911 + * @return {*} Normalized attribute value.
2912 + */
2913 +function getNormalAttributeValue(attribute, value) {
2914 + switch (attribute) {
2915 + case 'style':
2916 + return renderStyle(value);
2917 + }
2918 + return value;
2919 +}
2920 +/**
2921 + * This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute).
2922 + * We need this to render e.g strokeWidth as stroke-width.
2923 + *
2924 + * List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute.
2925 + */
2926 +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) => {
2927 + // The keys are lower-cased for more robust lookup.
2928 + map[attribute.toLowerCase()] = attribute;
2929 + return map;
2930 +}, {});
2931 +
2932 +/**
2933 + * This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute).
2934 + * The keys are lower-cased for more robust lookup.
2935 + * Note that this list only contains attributes that contain at least one capital letter.
2936 + * Lowercase attributes don't need mapping, since we lowercase all attributes by default.
2937 + */
2938 +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) => {
2939 + // The keys are lower-cased for more robust lookup.
2940 + map[attribute.toLowerCase()] = attribute;
2941 + return map;
2942 +}, {});
2943 +
2944 +/**
2945 + * This is a map of all SVG attributes that have colons.
2946 + * Keys are lower-cased and stripped of their colons for more robust lookup.
2947 + */
2948 +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) => {
2949 + map[attribute.replace(':', '').toLowerCase()] = attribute;
2950 + return map;
2951 +}, {});
2952 +
2953 +/**
2954 + * Returns the normal form of the element's attribute name for HTML.
2955 + *
2956 + * @param {string} attribute Non-normalized attribute name.
2957 + *
2958 + * @return {string} Normalized attribute name.
2959 + */
2960 +function getNormalAttributeName(attribute) {
2961 + switch (attribute) {
2962 + case 'htmlFor':
2963 + return 'for';
2964 + case 'className':
2965 + return 'class';
2966 + }
2967 + const attributeLowerCase = attribute.toLowerCase();
2968 + if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) {
2969 + return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase];
2970 + } else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) {
2971 + return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
2972 + } else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) {
2973 + return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase];
2974 + }
2975 + return attributeLowerCase;
2976 +}
2977 +
2978 +/**
2979 + * Returns the normal form of the style property name for HTML.
2980 + *
2981 + * - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color'
2982 + * - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor'
2983 + * - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform'
2984 + *
2985 + * @param {string} property Property name.
2986 + *
2987 + * @return {string} Normalized property name.
2988 + */
2989 +function getNormalStylePropertyName(property) {
2990 + if (property.startsWith('--')) {
2991 + return property;
2992 + }
2993 + if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) {
2994 + return '-' + (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property);
2995 + }
2996 + return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property);
2997 +}
2998 +
2999 +/**
3000 + * Returns the normal form of the style property value for HTML. Appends a
3001 + * default pixel unit if numeric, not a unitless property, and not zero.
3002 + *
3003 + * @param {string} property Property name.
3004 + * @param {*} value Non-normalized property value.
3005 + *
3006 + * @return {*} Normalized property value.
3007 + */
3008 +function getNormalStylePropertyValue(property, value) {
3009 + if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) {
3010 + return value + 'px';
3011 + }
3012 + return value;
3013 +}
3014 +
3015 +/**
3016 + * Serializes a React element to string.
3017 + *
3018 + * @param {import('react').ReactNode} element Element to serialize.
3019 + * @param {Object} [context] Context object.
3020 + * @param {Object} [legacyContext] Legacy context object.
3021 + *
3022 + * @return {string} Serialized element.
3023 + */
3024 +function renderElement(element, context, legacyContext = {}) {
3025 + if (null === element || undefined === element || false === element) {
3026 + return '';
3027 + }
3028 + if (Array.isArray(element)) {
3029 + return renderChildren(element, context, legacyContext);
3030 + }
3031 + switch (typeof element) {
3032 + case 'string':
3033 + return (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)(element);
3034 + case 'number':
3035 + return element.toString();
3036 + }
3037 + const {
3038 + type,
3039 + props
3040 + } = /** @type {{type?: any, props?: any}} */
3041 + element;
3042 + switch (type) {
3043 + case _react__WEBPACK_IMPORTED_MODULE_3__.StrictMode:
3044 + case _react__WEBPACK_IMPORTED_MODULE_3__.Fragment:
3045 + return renderChildren(props.children, context, legacyContext);
3046 + case _raw_html__WEBPACK_IMPORTED_MODULE_4__["default"]:
3047 + const {
3048 + children,
3049 + ...wrapperProps
3050 + } = props;
3051 + return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', {
3052 + ...wrapperProps,
3053 + dangerouslySetInnerHTML: {
3054 + __html: children
3055 + }
3056 + }, context, legacyContext);
3057 + }
3058 + switch (typeof type) {
3059 + case 'string':
3060 + return renderNativeComponent(type, props, context, legacyContext);
3061 + case 'function':
3062 + if (type.prototype && typeof type.prototype.render === 'function') {
3063 + return renderComponent(type, props, context, legacyContext);
3064 + }
3065 + return renderElement(type(props, legacyContext), context, legacyContext);
3066 + }
3067 + switch (type && type.$$typeof) {
3068 + case Provider.$$typeof:
3069 + return renderChildren(props.children, props.value, legacyContext);
3070 + case Consumer.$$typeof:
3071 + return renderElement(props.children(context || type._currentValue), context, legacyContext);
3072 + case ForwardRef.$$typeof:
3073 + return renderElement(type.render(props), context, legacyContext);
3074 + }
3075 + return '';
3076 +}
3077 +
3078 +/**
3079 + * Serializes a native component type to string.
3080 + *
3081 + * @param {?string} type Native component type to serialize, or null if
3082 + * rendering as fragment of children content.
3083 + * @param {Object} props Props object.
3084 + * @param {Object} [context] Context object.
3085 + * @param {Object} [legacyContext] Legacy context object.
3086 + *
3087 + * @return {string} Serialized element.
3088 + */
3089 +function renderNativeComponent(type, props, context, legacyContext = {}) {
3090 + let content = '';
3091 + if (type === 'textarea' && props.hasOwnProperty('value')) {
3092 + // Textarea children can be assigned as value prop. If it is, render in
3093 + // place of children. Ensure to omit so it is not assigned as attribute
3094 + // as well.
3095 + content = renderChildren(props.value, context, legacyContext);
3096 + const {
3097 + value,
3098 + ...restProps
3099 + } = props;
3100 + props = restProps;
3101 + } else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') {
3102 + // Dangerous content is left unescaped.
3103 + content = props.dangerouslySetInnerHTML.__html;
3104 + } else if (typeof props.children !== 'undefined') {
3105 + content = renderChildren(props.children, context, legacyContext);
3106 + }
3107 + if (!type) {
3108 + return content;
3109 + }
3110 + const attributes = renderAttributes(props);
3111 + if (SELF_CLOSING_TAGS.has(type)) {
3112 + return '<' + type + attributes + '/>';
3113 + }
3114 + return '<' + type + attributes + '>' + content + '</' + type + '>';
3115 +}
3116 +
3117 +/** @typedef {import('react').ComponentType} ComponentType */
3118 +
3119 +/**
3120 + * Serializes a non-native component type to string.
3121 + *
3122 + * @param {ComponentType} Component Component type to serialize.
3123 + * @param {Object} props Props object.
3124 + * @param {Object} [context] Context object.
3125 + * @param {Object} [legacyContext] Legacy context object.
3126 + *
3127 + * @return {string} Serialized element
3128 + */
3129 +function renderComponent(Component, props, context, legacyContext = {}) {
3130 + const instance = new ( /** @type {import('react').ComponentClass} */
3131 + Component)(props, legacyContext);
3132 + if (typeof
3133 + // Ignore reason: Current prettier reformats parens and mangles type assertion
3134 + // prettier-ignore
3135 + /** @type {{getChildContext?: () => unknown}} */
3136 + instance.getChildContext === 'function') {
3137 + Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext());
3138 + }
3139 + const html = renderElement(instance.render(), context, legacyContext);
3140 + return html;
3141 +}
3142 +
3143 +/**
3144 + * Serializes an array of children to string.
3145 + *
3146 + * @param {import('react').ReactNodeArray} children Children to serialize.
3147 + * @param {Object} [context] Context object.
3148 + * @param {Object} [legacyContext] Legacy context object.
3149 + *
3150 + * @return {string} Serialized children.
3151 + */
3152 +function renderChildren(children, context, legacyContext = {}) {
3153 + let result = '';
3154 + children = Array.isArray(children) ? children : [children];
3155 + for (let i = 0; i < children.length; i++) {
3156 + const child = children[i];
3157 + result += renderElement(child, context, legacyContext);
3158 + }
3159 + return result;
3160 +}
3161 +
3162 +/**
3163 + * Renders a props object as a string of HTML attributes.
3164 + *
3165 + * @param {Object} props Props object.
3166 + *
3167 + * @return {string} Attributes string.
3168 + */
3169 +function renderAttributes(props) {
3170 + let result = '';
3171 + for (const key in props) {
3172 + const attribute = getNormalAttributeName(key);
3173 + if (!(0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.isValidAttributeName)(attribute)) {
3174 + continue;
3175 + }
3176 + let value = getNormalAttributeValue(key, props[key]);
3177 +
3178 + // If value is not of serializable type, skip.
3179 + if (!ATTRIBUTES_TYPES.has(typeof value)) {
3180 + continue;
3181 + }
3182 +
3183 + // Don't render internal attribute names.
3184 + if (isInternalAttribute(key)) {
3185 + continue;
3186 + }
3187 + const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute);
3188 +
3189 + // Boolean attribute should be omitted outright if its value is false.
3190 + if (isBooleanAttribute && value === false) {
3191 + continue;
3192 + }
3193 + const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute);
3194 +
3195 + // Only write boolean value as attribute if meaningful.
3196 + if (typeof value === 'boolean' && !isMeaningfulAttribute) {
3197 + continue;
3198 + }
3199 + result += ' ' + attribute;
3200 +
3201 + // Boolean attributes should write attribute name, but without value.
3202 + // Mere presence of attribute name is effective truthiness.
3203 + if (isBooleanAttribute) {
3204 + continue;
3205 + }
3206 + if (typeof value === 'string') {
3207 + value = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(value);
3208 + }
3209 + result += '="' + value + '"';
3210 + }
3211 + return result;
3212 +}
3213 +
3214 +/**
3215 + * Renders a style object as a string attribute value.
3216 + *
3217 + * @param {Object} style Style object.
3218 + *
3219 + * @return {string} Style attribute value.
3220 + */
3221 +function renderStyle(style) {
3222 + // Only generate from object, e.g. tolerate string value.
3223 + if (!(0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(style)) {
3224 + return style;
3225 + }
3226 + let result;
3227 + for (const property in style) {
3228 + const value = style[property];
3229 + if (null === value || undefined === value) {
3230 + continue;
3231 + }
3232 + if (result) {
3233 + result += ';';
3234 + } else {
3235 + result = '';
3236 + }
3237 + const normalName = getNormalStylePropertyName(property);
3238 + const normalValue = getNormalStylePropertyValue(property, value);
3239 + result += normalName + ':' + normalValue;
3240 + }
3241 + return result;
3242 +}
3243 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderElement);
3244 +//# sourceMappingURL=serialize.js.map
3245 +
3246 +/***/ }),
3247 +
3248 +/***/ "../node_modules/@wordpress/element/build-module/utils.js":
3249 +/*!****************************************************************!*\
3250 + !*** ../node_modules/@wordpress/element/build-module/utils.js ***!
3251 + \****************************************************************/
3252 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3253 +
3254 +"use strict";
3255 +__webpack_require__.r(__webpack_exports__);
3256 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3257 +/* harmony export */ isEmptyElement: () => (/* binding */ isEmptyElement)
3258 +/* harmony export */ });
3259 +/**
3260 + * Checks if the provided WP element is empty.
3261 + *
3262 + * @param {*} element WP element to check.
3263 + * @return {boolean} True when an element is considered empty.
3264 + */
3265 +const isEmptyElement = element => {
3266 + if (typeof element === 'number') {
3267 + return false;
3268 + }
3269 + if (typeof element?.valueOf() === 'string' || Array.isArray(element)) {
3270 + return !element.length;
3271 + }
3272 + return !element;
3273 +};
3274 +//# sourceMappingURL=utils.js.map
3275 +
3276 +/***/ }),
3277 +
3278 +/***/ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js":
3279 +/*!*****************************************************************************!*\
3280 + !*** ../node_modules/@wordpress/escape-html/build-module/escape-greater.js ***!
3281 + \*****************************************************************************/
3282 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3283 +
3284 +"use strict";
3285 +__webpack_require__.r(__webpack_exports__);
3286 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3287 +/* harmony export */ "default": () => (/* binding */ __unstableEscapeGreaterThan)
3288 +/* harmony export */ });
3289 +/**
3290 + * Returns a string with greater-than sign replaced.
3291 + *
3292 + * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
3293 + * necessary for `__unstableEscapeGreaterThan` to exist.
3294 + *
3295 + * See: https://core.trac.wordpress.org/ticket/45387
3296 + *
3297 + * @param {string} value Original string.
3298 + *
3299 + * @return {string} Escaped string.
3300 + */
3301 +function __unstableEscapeGreaterThan(value) {
3302 + return value.replace(/>/g, '&gt;');
3303 +}
3304 +//# sourceMappingURL=escape-greater.js.map
3305 +
3306 +/***/ }),
3307 +
3308 +/***/ "../node_modules/@wordpress/escape-html/build-module/index.js":
3309 +/*!********************************************************************!*\
3310 + !*** ../node_modules/@wordpress/escape-html/build-module/index.js ***!
3311 + \********************************************************************/
3312 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3313 +
3314 +"use strict";
3315 +__webpack_require__.r(__webpack_exports__);
3316 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3317 +/* harmony export */ escapeAmpersand: () => (/* binding */ escapeAmpersand),
3318 +/* harmony export */ escapeAttribute: () => (/* binding */ escapeAttribute),
3319 +/* harmony export */ escapeEditableHTML: () => (/* binding */ escapeEditableHTML),
3320 +/* harmony export */ escapeHTML: () => (/* binding */ escapeHTML),
3321 +/* harmony export */ escapeLessThan: () => (/* binding */ escapeLessThan),
3322 +/* harmony export */ escapeQuotationMark: () => (/* binding */ escapeQuotationMark),
3323 +/* harmony export */ isValidAttributeName: () => (/* binding */ isValidAttributeName)
3324 +/* harmony export */ });
3325 +/* harmony import */ var _escape_greater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-greater */ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js");
3326 +/**
3327 + * Internal dependencies
3328 + */
3329 +
3330 +
3331 +/**
3332 + * Regular expression matching invalid attribute names.
3333 + *
3334 + * "Attribute names must consist of one or more characters other than controls,
3335 + * U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=),
3336 + * and noncharacters."
3337 + *
3338 + * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
3339 + *
3340 + * @type {RegExp}
3341 + */
3342 +const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
3343 +
3344 +/**
3345 + * Returns a string with ampersands escaped. Note that this is an imperfect
3346 + * implementation, where only ampersands which do not appear as a pattern of
3347 + * named, decimal, or hexadecimal character references are escaped. Invalid
3348 + * named references (i.e. ambiguous ampersand) are still permitted.
3349 + *
3350 + * @see https://w3c.github.io/html/syntax.html#character-references
3351 + * @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand
3352 + * @see https://w3c.github.io/html/syntax.html#named-character-references
3353 + *
3354 + * @param {string} value Original string.
3355 + *
3356 + * @return {string} Escaped string.
3357 + */
3358 +function escapeAmpersand(value) {
3359 + return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&amp;');
3360 +}
3361 +
3362 +/**
3363 + * Returns a string with quotation marks replaced.
3364 + *
3365 + * @param {string} value Original string.
3366 + *
3367 + * @return {string} Escaped string.
3368 + */
3369 +function escapeQuotationMark(value) {
3370 + return value.replace(/"/g, '&quot;');
3371 +}
3372 +
3373 +/**
3374 + * Returns a string with less-than sign replaced.
3375 + *
3376 + * @param {string} value Original string.
3377 + *
3378 + * @return {string} Escaped string.
3379 + */
3380 +function escapeLessThan(value) {
3381 + return value.replace(/</g, '&lt;');
3382 +}
3383 +
3384 +/**
3385 + * Returns an escaped attribute value.
3386 + *
3387 + * @see https://w3c.github.io/html/syntax.html#elements-attributes
3388 + *
3389 + * "[...] the text cannot contain an ambiguous ampersand [...] must not contain
3390 + * any literal U+0022 QUOTATION MARK characters (")"
3391 + *
3392 + * Note we also escape the greater than symbol, as this is used by wptexturize to
3393 + * split HTML strings. This is a WordPress specific fix
3394 + *
3395 + * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
3396 + * necessary for `__unstableEscapeGreaterThan` to be used.
3397 + *
3398 + * See: https://core.trac.wordpress.org/ticket/45387
3399 + *
3400 + * @param {string} value Attribute value.
3401 + *
3402 + * @return {string} Escaped attribute value.
3403 + */
3404 +function escapeAttribute(value) {
3405 + return (0,_escape_greater__WEBPACK_IMPORTED_MODULE_0__["default"])(escapeQuotationMark(escapeAmpersand(value)));
3406 +}
3407 +
3408 +/**
3409 + * Returns an escaped HTML element value.
3410 + *
3411 + * @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements
3412 + *
3413 + * "the text must not contain the character U+003C LESS-THAN SIGN (<) or an
3414 + * ambiguous ampersand."
3415 + *
3416 + * @param {string} value Element value.
3417 + *
3418 + * @return {string} Escaped HTML element value.
3419 + */
3420 +function escapeHTML(value) {
3421 + return escapeLessThan(escapeAmpersand(value));
3422 +}
3423 +
3424 +/**
3425 + * Returns an escaped Editable HTML element value. This is different from
3426 + * `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in
3427 + * order to render the content correctly on the page.
3428 + *
3429 + * @param {string} value Element value.
3430 + *
3431 + * @return {string} Escaped HTML element value.
3432 + */
3433 +function escapeEditableHTML(value) {
3434 + return escapeLessThan(value.replace(/&/g, '&amp;'));
3435 +}
3436 +
3437 +/**
3438 + * Returns true if the given attribute name is valid, or false otherwise.
3439 + *
3440 + * @param {string} name Attribute name to test.
3441 + *
3442 + * @return {boolean} Whether attribute is valid.
3443 + */
3444 +function isValidAttributeName(name) {
3445 + return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name);
3446 +}
3447 +//# sourceMappingURL=index.js.map
3448 +
3449 +/***/ }),
3450 +
3451 +/***/ "../node_modules/dot-case/dist.es2015/index.js":
3452 +/*!*****************************************************!*\
3453 + !*** ../node_modules/dot-case/dist.es2015/index.js ***!
3454 + \*****************************************************/
3455 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3456 +
3457 +"use strict";
3458 +__webpack_require__.r(__webpack_exports__);
3459 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3460 +/* harmony export */ dotCase: () => (/* binding */ dotCase)
3461 +/* harmony export */ });
3462 +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs");
3463 +/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! no-case */ "../node_modules/no-case/dist.es2015/index.js");
3464 +
3465 +
3466 +function dotCase(input, options) {
3467 + if (options === void 0) { options = {}; }
3468 + return (0,no_case__WEBPACK_IMPORTED_MODULE_1__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "." }, options));
3469 +}
3470 +//# sourceMappingURL=index.js.map
3471 +
3472 +/***/ }),
3473 +
3474 +/***/ "../node_modules/is-plain-object/dist/is-plain-object.mjs":
3475 +/*!****************************************************************!*\
3476 + !*** ../node_modules/is-plain-object/dist/is-plain-object.mjs ***!
3477 + \****************************************************************/
3478 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3479 +
3480 +"use strict";
3481 +__webpack_require__.r(__webpack_exports__);
3482 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3483 +/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject)
3484 +/* harmony export */ });
3485 +/*!
3486 + * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
3487 + *
3488 + * Copyright (c) 2014-2017, Jon Schlinkert.
3489 + * Released under the MIT License.
3490 + */
3491 +
3492 +function isObject(o) {
3493 + return Object.prototype.toString.call(o) === '[object Object]';
3494 +}
3495 +
3496 +function isPlainObject(o) {
3497 + var ctor,prot;
3498 +
3499 + if (isObject(o) === false) return false;
3500 +
3501 + // If has modified constructor
3502 + ctor = o.constructor;
3503 + if (ctor === undefined) return true;
3504 +
3505 + // If has modified prototype
3506 + prot = ctor.prototype;
3507 + if (isObject(prot) === false) return false;
3508 +
3509 + // If constructor does not have an Object-specific method
3510 + if (prot.hasOwnProperty('isPrototypeOf') === false) {
3511 + return false;
3512 + }
3513 +
3514 + // Most likely a plain Object
3515 + return true;
3516 +}
3517 +
3518 +
3519 +
3520 +
3521 +/***/ }),
3522 +
3523 +/***/ "../node_modules/lower-case/dist.es2015/index.js":
3524 +/*!*******************************************************!*\
3525 + !*** ../node_modules/lower-case/dist.es2015/index.js ***!
3526 + \*******************************************************/
3527 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3528 +
3529 +"use strict";
3530 +__webpack_require__.r(__webpack_exports__);
3531 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3532 +/* harmony export */ localeLowerCase: () => (/* binding */ localeLowerCase),
3533 +/* harmony export */ lowerCase: () => (/* binding */ lowerCase)
3534 +/* harmony export */ });
3535 +/**
3536 + * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
3537 + */
3538 +var SUPPORTED_LOCALE = {
3539 + tr: {
3540 + regexp: /\u0130|\u0049|\u0049\u0307/g,
3541 + map: {
3542 + İ: "\u0069",
3543 + I: "\u0131",
3544 + İ: "\u0069",
3545 + },
3546 + },
3547 + az: {
3548 + regexp: /\u0130/g,
3549 + map: {
3550 + İ: "\u0069",
3551 + I: "\u0131",
3552 + İ: "\u0069",
3553 + },
3554 + },
3555 + lt: {
3556 + regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
3557 + map: {
3558 + I: "\u0069\u0307",
3559 + J: "\u006A\u0307",
3560 + Į: "\u012F\u0307",
3561 + Ì: "\u0069\u0307\u0300",
3562 + Í: "\u0069\u0307\u0301",
3563 + Ĩ: "\u0069\u0307\u0303",
3564 + },
3565 + },
3566 +};
3567 +/**
3568 + * Localized lower case.
3569 + */
3570 +function localeLowerCase(str, locale) {
3571 + var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
3572 + if (lang)
3573 + return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
3574 + return lowerCase(str);
3575 +}
3576 +/**
3577 + * Lower case as a function.
3578 + */
3579 +function lowerCase(str) {
3580 + return str.toLowerCase();
3581 +}
3582 +//# sourceMappingURL=index.js.map
3583 +
3584 +/***/ }),
3585 +
3586 +/***/ "../node_modules/no-case/dist.es2015/index.js":
3587 +/*!****************************************************!*\
3588 + !*** ../node_modules/no-case/dist.es2015/index.js ***!
3589 + \****************************************************/
3590 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3591 +
3592 +"use strict";
3593 +__webpack_require__.r(__webpack_exports__);
3594 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3595 +/* harmony export */ noCase: () => (/* binding */ noCase)
3596 +/* harmony export */ });
3597 +/* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "../node_modules/lower-case/dist.es2015/index.js");
3598 +
3599 +// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
3600 +var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
3601 +// Remove all non-word characters.
3602 +var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
3603 +/**
3604 + * Normalize the string into something other libraries can manipulate easier.
3605 + */
3606 +function noCase(input, options) {
3607 + if (options === void 0) { options = {}; }
3608 + 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;
3609 + var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
3610 + var start = 0;
3611 + var end = result.length;
3612 + // Trim the delimiter from around the output string.
3613 + while (result.charAt(start) === "\0")
3614 + start++;
3615 + while (result.charAt(end - 1) === "\0")
3616 + end--;
3617 + // Transform each token independently.
3618 + return result.slice(start, end).split("\0").map(transform).join(delimiter);
3619 +}
3620 +/**
3621 + * Replace `re` in the input string with the replacement value.
3622 + */
3623 +function replace(input, re, value) {
3624 + if (re instanceof RegExp)
3625 + return input.replace(re, value);
3626 + return re.reduce(function (input, re) { return input.replace(re, value); }, input);
3627 +}
3628 +//# sourceMappingURL=index.js.map
3629 +
3630 +/***/ }),
3631 +
3632 +/***/ "../node_modules/object-assign/index.js":
3633 +/*!**********************************************!*\
3634 + !*** ../node_modules/object-assign/index.js ***!
3635 + \**********************************************/
3636 +/***/ ((module) => {
3637 +
3638 +"use strict";
3639 +/*
3640 +object-assign
3641 +(c) Sindre Sorhus
3642 +@license MIT
3643 +*/
3644 +
3645 +
3646 +/* eslint-disable no-unused-vars */
3647 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
3648 +var hasOwnProperty = Object.prototype.hasOwnProperty;
3649 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
3650 +
3651 +function toObject(val) {
3652 + if (val === null || val === undefined) {
3653 + throw new TypeError('Object.assign cannot be called with null or undefined');
893 3654 }
894 3655
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 - }
3656 + return Object(val);
3657 +}
905 3658
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.");
3659 +function shouldUseNative() {
3660 + try {
3661 + if (!Object.assign) {
3662 + return false;
915 3663 }
916 - return ("string" === r ? String : Number)(t);
917 - }
918 3664
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 - }
3665 + // Detect buggy property enumeration order in older V8 versions.
925 3666
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);
3667 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
3668 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
3669 + test1[5] = 'de';
3670 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
3671 + return false;
932 3672 }
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 - }
937 3673
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;
3674 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
3675 + var test2 = {};
3676 + for (var i = 0; i < 10; i++) {
3677 + test2['_' + String.fromCharCode(i)] = i;
945 3678 }
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 - }();
3679 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
3680 + return test2[n];
3681 + });
3682 + if (order2.join('') !== '0123456789') {
3683 + return false;
3684 + }
958 3685
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;
3686 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
3687 + var test3 = {};
3688 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
3689 + test3[letter] = letter;
3690 + });
3691 + if (Object.keys(Object.assign({}, test3)).join('') !==
3692 + 'abcdefghijklmnopqrst') {
3693 + return false;
3694 + }
3695 +
3696 + return true;
3697 + } catch (err) {
3698 + // We don't expect any of the above to throw, but better to be safe.
3699 + return false;
968 3700 }
3701 +}
969 3702
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);
3703 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
3704 + var from;
3705 + var to = toObject(target);
3706 + var symbols;
3707 +
3708 + for (var s = 1; s < arguments.length; s++) {
3709 + from = Object(arguments[s]);
3710 +
3711 + for (var key in from) {
3712 + if (hasOwnProperty.call(from, key)) {
3713 + to[key] = from[key];
3714 + }
979 3715 }
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 - });
3716 +
3717 + if (getOwnPropertySymbols) {
3718 + symbols = getOwnPropertySymbols(from);
3719 + for (var i = 0; i < symbols.length; i++) {
3720 + if (propIsEnumerable.call(from, symbols[i])) {
3721 + to[symbols[i]] = from[symbols[i]];
3722 + }
3723 + }
990 3724 }
991 - return e;
992 3725 }
993 - var EditorOneEventManager = /*#__PURE__*/ function() {
994 - function EditorOneEventManager() {
995 - _classCallCheck(this, EditorOneEventManager);
996 - }
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;
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 - }
1521 - }
1522 - ]);
1523 - }();
1524 3726
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 - };
3727 + return to;
3728 +};
1542 3729
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;
1557 3730
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 - }
3731 +/***/ }),
1565 3732
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 - });
3733 +/***/ "../node_modules/param-case/dist.es2015/index.js":
3734 +/*!*******************************************************!*\
3735 + !*** ../node_modules/param-case/dist.es2015/index.js ***!
3736 + \*******************************************************/
3737 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1742 3738
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 - };
3739 +"use strict";
3740 +__webpack_require__.r(__webpack_exports__);
3741 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3742 +/* harmony export */ paramCase: () => (/* binding */ paramCase)
3743 +/* harmony export */ });
3744 +/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs");
3745 +/* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dot-case */ "../node_modules/dot-case/dist.es2015/index.js");
1821 3746
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 - };
1852 3747
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 - };
3748 +function paramCase(input, options) {
3749 + if (options === void 0) { options = {}; }
3750 + return (0,dot_case__WEBPACK_IMPORTED_MODULE_1__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "-" }, options));
3751 +}
3752 +//# sourceMappingURL=index.js.map
1906 3753
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 - };
3754 +/***/ }),
1957 3755
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 - });
3756 +/***/ "../node_modules/prop-types/checkPropTypes.js":
3757 +/*!****************************************************!*\
3758 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
3759 + \****************************************************/
3760 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1999 3761
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 - };
3762 +"use strict";
3763 +/**
3764 + * Copyright (c) 2013-present, Facebook, Inc.
3765 + *
3766 + * This source code is licensed under the MIT license found in the
3767 + * LICENSE file in the root directory of this source tree.
3768 + */
2026 3769
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 - });
2059 3770
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 - };
2077 3771
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 - };
3772 +var printWarning = function() {};
2171 3773
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 - };
3774 +if (true) {
3775 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
3776 + var loggedTypeFailures = {};
3777 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
2202 3778
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 - };
3779 + printWarning = function(text) {
3780 + var message = 'Warning: ' + text;
3781 + if (typeof console !== 'undefined') {
3782 + console.error(message);
3783 + }
3784 + try {
3785 + // --- Welcome to debugging React ---
3786 + // This error was thrown as a convenience so that you can use this stack
3787 + // to find the callsite that caused this warning to fire.
3788 + throw new Error(message);
3789 + } catch (x) { /**/ }
3790 + };
3791 +}
2253 3792
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 - };
3793 +/**
3794 + * Assert that the values match with the type specs.
3795 + * Error messages are memorized and will only be shown once.
3796 + *
3797 + * @param {object} typeSpecs Map of name to a ReactPropType
3798 + * @param {object} values Runtime values that need to be type-checked
3799 + * @param {string} location e.g. "prop", "context", "child context"
3800 + * @param {string} componentName Name of the component for error messages.
3801 + * @param {?Function} getStack Returns the component stack.
3802 + * @private
3803 + */
3804 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
3805 + if (true) {
3806 + for (var typeSpecName in typeSpecs) {
3807 + if (has(typeSpecs, typeSpecName)) {
3808 + var error;
3809 + // Prop type validation may throw. In case they do, we don't want to
3810 + // fail the render phase where it didn't fail before. So we log it.
3811 + // After these have been cleaned up, we'll let them throw.
3812 + try {
3813 + // This is intentionally an invariant that gets caught. It's the same
3814 + // behavior as without this statement except with a better message.
3815 + if (typeof typeSpecs[typeSpecName] !== 'function') {
3816 + var err = Error(
3817 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
3818 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
3819 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
3820 + );
3821 + err.name = 'Invariant Violation';
3822 + throw err;
3823 + }
3824 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
3825 + } catch (ex) {
3826 + error = ex;
3827 + }
3828 + if (error && !(error instanceof Error)) {
3829 + printWarning(
3830 + (componentName || 'React class') + ': type specification of ' +
3831 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
3832 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
3833 + 'You may have forgotten to pass an argument to the type checker ' +
3834 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
3835 + 'shape all require an argument).'
3836 + );
3837 + }
3838 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
3839 + // Only monitor this failure once because there tends to be a lot of the
3840 + // same error.
3841 + loggedTypeFailures[error.message] = true;
2307 3842
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 };
3843 + var stack = getStack ? getStack() : '';
2348 3844
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);
3845 + printWarning(
3846 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
3847 + );
3848 + }
3849 + }
3850 + }
3851 + }
3852 +}
2359 3853
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']);
3854 +/**
3855 + * Resets warning cache when testing.
3856 + *
3857 + * @private
3858 + */
3859 +checkPropTypes.resetWarningCache = function() {
3860 + if (true) {
3861 + loggedTypeFailures = {};
3862 + }
3863 +}
3864 +
3865 +module.exports = checkPropTypes;
3866 +
3867 +
3868 +/***/ }),
3869 +
3870 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
3871 +/*!*************************************************************!*\
3872 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
3873 + \*************************************************************/
3874 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3875 +
3876 +"use strict";
3877 +/**
3878 + * Copyright (c) 2013-present, Facebook, Inc.
3879 + *
3880 + * This source code is licensed under the MIT license found in the
3881 + * LICENSE file in the root directory of this source tree.
3882 + */
3883 +
3884 +
3885 +
3886 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
3887 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
3888 +
3889 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
3890 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
3891 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
3892 +
3893 +var printWarning = function() {};
3894 +
3895 +if (true) {
3896 + printWarning = function(text) {
3897 + var message = 'Warning: ' + text;
3898 + if (typeof console !== 'undefined') {
3899 + console.error(message);
3900 + }
3901 + try {
3902 + // --- Welcome to debugging React ---
3903 + // This error was thrown as a convenience so that you can use this stack
3904 + // to find the callsite that caused this warning to fire.
3905 + throw new Error(message);
3906 + } catch (x) {}
3907 + };
3908 +}
3909 +
3910 +function emptyFunctionThatReturnsNull() {
3911 + return null;
3912 +}
3913 +
3914 +module.exports = function(isValidElement, throwOnDirectAccess) {
3915 + /* global Symbol */
3916 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
3917 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
3918 +
3919 + /**
3920 + * Returns the iterator method function contained on the iterable object.
3921 + *
3922 + * Be sure to invoke the function with the iterable as context:
3923 + *
3924 + * var iteratorFn = getIteratorFn(myIterable);
3925 + * if (iteratorFn) {
3926 + * var iterator = iteratorFn.call(myIterable);
3927 + * ...
3928 + * }
3929 + *
3930 + * @param {?object} maybeIterable
3931 + * @return {?function}
3932 + */
3933 + function getIteratorFn(maybeIterable) {
3934 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
3935 + if (typeof iteratorFn === 'function') {
3936 + return iteratorFn;
3937 + }
3938 + }
3939 +
3940 + /**
3941 + * Collection of methods that allow declaration and validation of props that are
3942 + * supplied to React components. Example usage:
3943 + *
3944 + * var Props = require('ReactPropTypes');
3945 + * var MyArticle = React.createClass({
3946 + * propTypes: {
3947 + * // An optional string prop named "description".
3948 + * description: Props.string,
3949 + *
3950 + * // A required enum prop named "category".
3951 + * category: Props.oneOf(['News','Photos']).isRequired,
3952 + *
3953 + * // A prop named "dialog" that requires an instance of Dialog.
3954 + * dialog: Props.instanceOf(Dialog).isRequired
3955 + * },
3956 + * render: function() { ... }
3957 + * });
3958 + *
3959 + * A more formal specification of how these methods are used:
3960 + *
3961 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
3962 + * decl := ReactPropTypes.{type}(.isRequired)?
3963 + *
3964 + * Each and every declaration produces a function with the same signature. This
3965 + * allows the creation of custom validation functions. For example:
3966 + *
3967 + * var MyLink = React.createClass({
3968 + * propTypes: {
3969 + * // An optional string or URI prop named "href".
3970 + * href: function(props, propName, componentName) {
3971 + * var propValue = props[propName];
3972 + * if (propValue != null && typeof propValue !== 'string' &&
3973 + * !(propValue instanceof URI)) {
3974 + * return new Error(
3975 + * 'Expected a string or an URI for ' + propName + ' in ' +
3976 + * componentName
3977 + * );
3978 + * }
3979 + * }
3980 + * },
3981 + * render: function() {...}
3982 + * });
3983 + *
3984 + * @internal
3985 + */
3986 +
3987 + var ANONYMOUS = '<<anonymous>>';
3988 +
3989 + // Important!
3990 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
3991 + var ReactPropTypes = {
3992 + array: createPrimitiveTypeChecker('array'),
3993 + bigint: createPrimitiveTypeChecker('bigint'),
3994 + bool: createPrimitiveTypeChecker('boolean'),
3995 + func: createPrimitiveTypeChecker('function'),
3996 + number: createPrimitiveTypeChecker('number'),
3997 + object: createPrimitiveTypeChecker('object'),
3998 + string: createPrimitiveTypeChecker('string'),
3999 + symbol: createPrimitiveTypeChecker('symbol'),
4000 +
4001 + any: createAnyTypeChecker(),
4002 + arrayOf: createArrayOfTypeChecker,
4003 + element: createElementTypeChecker(),
4004 + elementType: createElementTypeTypeChecker(),
4005 + instanceOf: createInstanceTypeChecker,
4006 + node: createNodeChecker(),
4007 + objectOf: createObjectOfTypeChecker,
4008 + oneOf: createEnumTypeChecker,
4009 + oneOfType: createUnionTypeChecker,
4010 + shape: createShapeTypeChecker,
4011 + exact: createStrictShapeTypeChecker,
4012 + };
4013 +
4014 + /**
4015 + * inlined Object.is polyfill to avoid requiring consumers ship their own
4016 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
4017 + */
4018 + /*eslint-disable no-self-compare*/
4019 + function is(x, y) {
4020 + // SameValue algorithm
4021 + if (x === y) {
4022 + // Steps 1-5, 7-10
4023 + // Steps 6.b-6.e: +0 != -0
4024 + return x !== 0 || 1 / x === 1 / y;
4025 + } else {
4026 + // Step 6.a: NaN == NaN
4027 + return x !== x && y !== y;
4028 + }
4029 + }
4030 + /*eslint-enable no-self-compare*/
4031 +
4032 + /**
4033 + * We use an Error-like object for backward compatibility as people may call
4034 + * PropTypes directly and inspect their output. However, we don't use real
4035 + * Errors anymore. We don't inspect their stack anyway, and creating them
4036 + * is prohibitively expensive if they are created too often, such as what
4037 + * happens in oneOfType() for any type before the one that matched.
4038 + */
4039 + function PropTypeError(message, data) {
4040 + this.message = message;
4041 + this.data = data && typeof data === 'object' ? data: {};
4042 + this.stack = '';
4043 + }
4044 + // Make `instanceof Error` still work for returned errors.
4045 + PropTypeError.prototype = Error.prototype;
4046 +
4047 + function createChainableTypeChecker(validate) {
4048 + if (true) {
4049 + var manualPropTypeCallCache = {};
4050 + var manualPropTypeWarningCount = 0;
4051 + }
4052 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
4053 + componentName = componentName || ANONYMOUS;
4054 + propFullName = propFullName || propName;
4055 +
4056 + if (secret !== ReactPropTypesSecret) {
4057 + if (throwOnDirectAccess) {
4058 + // New behavior only for users of `prop-types` package
4059 + var err = new Error(
4060 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4061 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
4062 + 'Read more at http://fb.me/use-check-prop-types'
4063 + );
4064 + err.name = 'Invariant Violation';
4065 + throw err;
4066 + } else if ( true && typeof console !== 'undefined') {
4067 + // Old behavior for people using React.PropTypes
4068 + var cacheKey = componentName + ':' + propName;
4069 + if (
4070 + !manualPropTypeCallCache[cacheKey] &&
4071 + // Avoid spamming the console because they are often not actionable except for lib authors
4072 + manualPropTypeWarningCount < 3
4073 + ) {
4074 + printWarning(
4075 + 'You are manually calling a React.PropTypes validation ' +
4076 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
4077 + 'and will throw in the standalone `prop-types` package. ' +
4078 + 'You may be seeing this warning due to a third-party PropTypes ' +
4079 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
4080 + );
4081 + manualPropTypeCallCache[cacheKey] = true;
4082 + manualPropTypeWarningCount++;
4083 + }
4084 + }
4085 + }
4086 + if (props[propName] == null) {
4087 + if (isRequired) {
4088 + if (props[propName] === null) {
4089 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
4090 + }
4091 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
4092 + }
4093 + return null;
4094 + } else {
4095 + return validate(props, propName, componentName, location, propFullName);
4096 + }
4097 + }
4098 +
4099 + var chainedCheckType = checkType.bind(null, false);
4100 + chainedCheckType.isRequired = checkType.bind(null, true);
4101 +
4102 + return chainedCheckType;
4103 + }
4104 +
4105 + function createPrimitiveTypeChecker(expectedType) {
4106 + function validate(props, propName, componentName, location, propFullName, secret) {
4107 + var propValue = props[propName];
4108 + var propType = getPropType(propValue);
4109 + if (propType !== expectedType) {
4110 + // `propValue` being instance of, say, date/regexp, pass the 'object'
4111 + // check, but we can offer a more precise error message here rather than
4112 + // 'of type `object`'.
4113 + var preciseType = getPreciseType(propValue);
4114 +
4115 + return new PropTypeError(
4116 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
4117 + {expectedType: expectedType}
4118 + );
4119 + }
4120 + return null;
4121 + }
4122 + return createChainableTypeChecker(validate);
4123 + }
4124 +
4125 + function createAnyTypeChecker() {
4126 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
4127 + }
4128 +
4129 + function createArrayOfTypeChecker(typeChecker) {
4130 + function validate(props, propName, componentName, location, propFullName) {
4131 + if (typeof typeChecker !== 'function') {
4132 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
4133 + }
4134 + var propValue = props[propName];
4135 + if (!Array.isArray(propValue)) {
4136 + var propType = getPropType(propValue);
4137 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
4138 + }
4139 + for (var i = 0; i < propValue.length; i++) {
4140 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
4141 + if (error instanceof Error) {
4142 + return error;
4143 + }
4144 + }
4145 + return null;
4146 + }
4147 + return createChainableTypeChecker(validate);
4148 + }
4149 +
4150 + function createElementTypeChecker() {
4151 + function validate(props, propName, componentName, location, propFullName) {
4152 + var propValue = props[propName];
4153 + if (!isValidElement(propValue)) {
4154 + var propType = getPropType(propValue);
4155 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
4156 + }
4157 + return null;
4158 + }
4159 + return createChainableTypeChecker(validate);
4160 + }
4161 +
4162 + function createElementTypeTypeChecker() {
4163 + function validate(props, propName, componentName, location, propFullName) {
4164 + var propValue = props[propName];
4165 + if (!ReactIs.isValidElementType(propValue)) {
4166 + var propType = getPropType(propValue);
4167 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
4168 + }
4169 + return null;
4170 + }
4171 + return createChainableTypeChecker(validate);
4172 + }
4173 +
4174 + function createInstanceTypeChecker(expectedClass) {
4175 + function validate(props, propName, componentName, location, propFullName) {
4176 + if (!(props[propName] instanceof expectedClass)) {
4177 + var expectedClassName = expectedClass.name || ANONYMOUS;
4178 + var actualClassName = getClassName(props[propName]);
4179 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
4180 + }
4181 + return null;
4182 + }
4183 + return createChainableTypeChecker(validate);
4184 + }
4185 +
4186 + function createEnumTypeChecker(expectedValues) {
4187 + if (!Array.isArray(expectedValues)) {
4188 + if (true) {
4189 + if (arguments.length > 1) {
4190 + printWarning(
4191 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
4192 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
4193 + );
4194 + } else {
4195 + printWarning('Invalid argument supplied to oneOf, expected an array.');
4196 + }
4197 + }
4198 + return emptyFunctionThatReturnsNull;
4199 + }
4200 +
4201 + function validate(props, propName, componentName, location, propFullName) {
4202 + var propValue = props[propName];
4203 + for (var i = 0; i < expectedValues.length; i++) {
4204 + if (is(propValue, expectedValues[i])) {
4205 + return null;
4206 + }
4207 + }
4208 +
4209 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
4210 + var type = getPreciseType(value);
4211 + if (type === 'symbol') {
4212 + return String(value);
4213 + }
4214 + return value;
4215 + });
4216 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
4217 + }
4218 + return createChainableTypeChecker(validate);
4219 + }
4220 +
4221 + function createObjectOfTypeChecker(typeChecker) {
4222 + function validate(props, propName, componentName, location, propFullName) {
4223 + if (typeof typeChecker !== 'function') {
4224 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
4225 + }
4226 + var propValue = props[propName];
4227 + var propType = getPropType(propValue);
4228 + if (propType !== 'object') {
4229 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
4230 + }
4231 + for (var key in propValue) {
4232 + if (has(propValue, key)) {
4233 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4234 + if (error instanceof Error) {
4235 + return error;
4236 + }
4237 + }
4238 + }
4239 + return null;
4240 + }
4241 + return createChainableTypeChecker(validate);
4242 + }
4243 +
4244 + function createUnionTypeChecker(arrayOfTypeCheckers) {
4245 + if (!Array.isArray(arrayOfTypeCheckers)) {
4246 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
4247 + return emptyFunctionThatReturnsNull;
4248 + }
4249 +
4250 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4251 + var checker = arrayOfTypeCheckers[i];
4252 + if (typeof checker !== 'function') {
4253 + printWarning(
4254 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
4255 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
4256 + );
4257 + return emptyFunctionThatReturnsNull;
4258 + }
4259 + }
4260 +
4261 + function validate(props, propName, componentName, location, propFullName) {
4262 + var expectedTypes = [];
4263 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4264 + var checker = arrayOfTypeCheckers[i];
4265 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
4266 + if (checkerResult == null) {
4267 + return null;
4268 + }
4269 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
4270 + expectedTypes.push(checkerResult.data.expectedType);
4271 + }
4272 + }
4273 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
4274 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
4275 + }
4276 + return createChainableTypeChecker(validate);
4277 + }
4278 +
4279 + function createNodeChecker() {
4280 + function validate(props, propName, componentName, location, propFullName) {
4281 + if (!isNode(props[propName])) {
4282 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
4283 + }
4284 + return null;
4285 + }
4286 + return createChainableTypeChecker(validate);
4287 + }
4288 +
4289 + function invalidValidatorError(componentName, location, propFullName, key, type) {
4290 + return new PropTypeError(
4291 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
4292 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
4293 + );
4294 + }
4295 +
4296 + function createShapeTypeChecker(shapeTypes) {
4297 + function validate(props, propName, componentName, location, propFullName) {
4298 + var propValue = props[propName];
4299 + var propType = getPropType(propValue);
4300 + if (propType !== 'object') {
4301 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4302 + }
4303 + for (var key in shapeTypes) {
4304 + var checker = shapeTypes[key];
4305 + if (typeof checker !== 'function') {
4306 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4307 + }
4308 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4309 + if (error) {
4310 + return error;
4311 + }
4312 + }
4313 + return null;
4314 + }
4315 + return createChainableTypeChecker(validate);
4316 + }
4317 +
4318 + function createStrictShapeTypeChecker(shapeTypes) {
4319 + function validate(props, propName, componentName, location, propFullName) {
4320 + var propValue = props[propName];
4321 + var propType = getPropType(propValue);
4322 + if (propType !== 'object') {
4323 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4324 + }
4325 + // We need to check all keys in case some are required but missing from props.
4326 + var allKeys = assign({}, props[propName], shapeTypes);
4327 + for (var key in allKeys) {
4328 + var checker = shapeTypes[key];
4329 + if (has(shapeTypes, key) && typeof checker !== 'function') {
4330 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4331 + }
4332 + if (!checker) {
4333 + return new PropTypeError(
4334 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
4335 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
4336 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
4337 + );
4338 + }
4339 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4340 + if (error) {
4341 + return error;
4342 + }
4343 + }
4344 + return null;
4345 + }
4346 +
4347 + return createChainableTypeChecker(validate);
4348 + }
4349 +
4350 + function isNode(propValue) {
4351 + switch (typeof propValue) {
4352 + case 'number':
4353 + case 'string':
4354 + case 'undefined':
4355 + return true;
4356 + case 'boolean':
4357 + return !propValue;
4358 + case 'object':
4359 + if (Array.isArray(propValue)) {
4360 + return propValue.every(isNode);
4361 + }
4362 + if (propValue === null || isValidElement(propValue)) {
4363 + return true;
4364 + }
4365 +
4366 + var iteratorFn = getIteratorFn(propValue);
4367 + if (iteratorFn) {
4368 + var iterator = iteratorFn.call(propValue);
4369 + var step;
4370 + if (iteratorFn !== propValue.entries) {
4371 + while (!(step = iterator.next()).done) {
4372 + if (!isNode(step.value)) {
4373 + return false;
4374 + }
4375 + }
4376 + } else {
4377 + // Iterator will provide entry [k,v] tuples rather than values.
4378 + while (!(step = iterator.next()).done) {
4379 + var entry = step.value;
4380 + if (entry) {
4381 + if (!isNode(entry[1])) {
4382 + return false;
4383 + }
4384 + }
4385 + }
4386 + }
4387 + } else {
4388 + return false;
4389 + }
4390 +
4391 + return true;
4392 + default:
4393 + return false;
4394 + }
4395 + }
4396 +
4397 + function isSymbol(propType, propValue) {
4398 + // Native Symbol.
4399 + if (propType === 'symbol') {
4400 + return true;
4401 + }
4402 +
4403 + // falsy value can't be a Symbol
4404 + if (!propValue) {
4405 + return false;
4406 + }
4407 +
4408 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
4409 + if (propValue['@@toStringTag'] === 'Symbol') {
4410 + return true;
4411 + }
4412 +
4413 + // Fallback for non-spec compliant Symbols which are polyfilled.
4414 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
4415 + return true;
4416 + }
4417 +
4418 + return false;
4419 + }
4420 +
4421 + // Equivalent of `typeof` but with special handling for array and regexp.
4422 + function getPropType(propValue) {
4423 + var propType = typeof propValue;
4424 + if (Array.isArray(propValue)) {
4425 + return 'array';
4426 + }
4427 + if (propValue instanceof RegExp) {
4428 + // Old webkits (at least until Android 4.0) return 'function' rather than
4429 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
4430 + // passes PropTypes.object.
4431 + return 'object';
4432 + }
4433 + if (isSymbol(propType, propValue)) {
4434 + return 'symbol';
4435 + }
4436 + return propType;
4437 + }
4438 +
4439 + // This handles more types than `getPropType`. Only used for error messages.
4440 + // See `createPrimitiveTypeChecker`.
4441 + function getPreciseType(propValue) {
4442 + if (typeof propValue === 'undefined' || propValue === null) {
4443 + return '' + propValue;
4444 + }
4445 + var propType = getPropType(propValue);
4446 + if (propType === 'object') {
4447 + if (propValue instanceof Date) {
4448 + return 'date';
4449 + } else if (propValue instanceof RegExp) {
4450 + return 'regexp';
4451 + }
4452 + }
4453 + return propType;
4454 + }
4455 +
4456 + // Returns a string that is postfixed to a warning about an invalid type.
4457 + // For example, "undefined" or "of type array"
4458 + function getPostfixForTypeWarning(value) {
4459 + var type = getPreciseType(value);
4460 + switch (type) {
4461 + case 'array':
4462 + case 'object':
4463 + return 'an ' + type;
4464 + case 'boolean':
4465 + case 'date':
4466 + case 'regexp':
4467 + return 'a ' + type;
4468 + default:
4469 + return type;
4470 + }
4471 + }
4472 +
4473 + // Returns class name of the object, if any.
4474 + function getClassName(propValue) {
4475 + if (!propValue.constructor || !propValue.constructor.name) {
4476 + return ANONYMOUS;
4477 + }
4478 + return propValue.constructor.name;
4479 + }
4480 +
4481 + ReactPropTypes.checkPropTypes = checkPropTypes;
4482 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
4483 + ReactPropTypes.PropTypes = ReactPropTypes;
4484 +
4485 + return ReactPropTypes;
4486 +};
4487 +
4488 +
4489 +/***/ }),
4490 +
4491 +/***/ "../node_modules/prop-types/index.js":
4492 +/*!*******************************************!*\
4493 + !*** ../node_modules/prop-types/index.js ***!
4494 + \*******************************************/
4495 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4496 +
4497 +/**
4498 + * Copyright (c) 2013-present, Facebook, Inc.
4499 + *
4500 + * This source code is licensed under the MIT license found in the
4501 + * LICENSE file in the root directory of this source tree.
4502 + */
4503 +
4504 +if (true) {
4505 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
4506 +
4507 + // By explicitly using `prop-types` you are opting into new development behavior.
4508 + // http://fb.me/prop-types-in-prod
4509 + var throwOnDirectAccess = true;
4510 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
4511 +} else // removed by dead control flow
4512 +{}
4513 +
4514 +
4515 +/***/ }),
4516 +
4517 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
4518 +/*!**************************************************************!*\
4519 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
4520 + \**************************************************************/
4521 +/***/ ((module) => {
4522 +
4523 +"use strict";
4524 +/**
4525 + * Copyright (c) 2013-present, Facebook, Inc.
4526 + *
4527 + * This source code is licensed under the MIT license found in the
4528 + * LICENSE file in the root directory of this source tree.
4529 + */
4530 +
4531 +
4532 +
4533 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4534 +
4535 +module.exports = ReactPropTypesSecret;
4536 +
4537 +
4538 +/***/ }),
4539 +
4540 +/***/ "../node_modules/prop-types/lib/has.js":
4541 +/*!*********************************************!*\
4542 + !*** ../node_modules/prop-types/lib/has.js ***!
4543 + \*********************************************/
4544 +/***/ ((module) => {
4545 +
4546 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
4547 +
4548 +
4549 +/***/ }),
4550 +
4551 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
4552 +/*!************************************************************************************!*\
4553 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
4554 + \************************************************************************************/
4555 +/***/ ((__unused_webpack_module, exports) => {
4556 +
4557 +"use strict";
4558 +/** @license React v16.13.1
4559 + * react-is.development.js
4560 + *
4561 + * Copyright (c) Facebook, Inc. and its affiliates.
4562 + *
4563 + * This source code is licensed under the MIT license found in the
4564 + * LICENSE file in the root directory of this source tree.
4565 + */
4566 +
4567 +
4568 +
4569 +
4570 +
4571 +if (true) {
4572 + (function() {
4573 +'use strict';
4574 +
4575 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
4576 +// nor polyfill, then a plain number is used for performance.
4577 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
4578 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
4579 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
4580 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
4581 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
4582 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
4583 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
4584 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
4585 +// (unstable) APIs that have been removed. Can we remove the symbols?
4586 +
4587 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
4588 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
4589 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
4590 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
4591 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
4592 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
4593 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
4594 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
4595 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
4596 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
4597 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
4598 +
4599 +function isValidElementType(type) {
4600 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4601 + 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);
4602 +}
4603 +
4604 +function typeOf(object) {
4605 + if (typeof object === 'object' && object !== null) {
4606 + var $$typeof = object.$$typeof;
4607 +
4608 + switch ($$typeof) {
4609 + case REACT_ELEMENT_TYPE:
4610 + var type = object.type;
4611 +
4612 + switch (type) {
4613 + case REACT_ASYNC_MODE_TYPE:
4614 + case REACT_CONCURRENT_MODE_TYPE:
4615 + case REACT_FRAGMENT_TYPE:
4616 + case REACT_PROFILER_TYPE:
4617 + case REACT_STRICT_MODE_TYPE:
4618 + case REACT_SUSPENSE_TYPE:
4619 + return type;
4620 +
4621 + default:
4622 + var $$typeofType = type && type.$$typeof;
4623 +
4624 + switch ($$typeofType) {
4625 + case REACT_CONTEXT_TYPE:
4626 + case REACT_FORWARD_REF_TYPE:
4627 + case REACT_LAZY_TYPE:
4628 + case REACT_MEMO_TYPE:
4629 + case REACT_PROVIDER_TYPE:
4630 + return $$typeofType;
4631 +
4632 + default:
4633 + return $$typeof;
4634 + }
4635 +
4636 + }
4637 +
4638 + case REACT_PORTAL_TYPE:
4639 + return $$typeof;
4640 + }
4641 + }
4642 +
4643 + return undefined;
4644 +} // AsyncMode is deprecated along with isAsyncMode
4645 +
4646 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
4647 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
4648 +var ContextConsumer = REACT_CONTEXT_TYPE;
4649 +var ContextProvider = REACT_PROVIDER_TYPE;
4650 +var Element = REACT_ELEMENT_TYPE;
4651 +var ForwardRef = REACT_FORWARD_REF_TYPE;
4652 +var Fragment = REACT_FRAGMENT_TYPE;
4653 +var Lazy = REACT_LAZY_TYPE;
4654 +var Memo = REACT_MEMO_TYPE;
4655 +var Portal = REACT_PORTAL_TYPE;
4656 +var Profiler = REACT_PROFILER_TYPE;
4657 +var StrictMode = REACT_STRICT_MODE_TYPE;
4658 +var Suspense = REACT_SUSPENSE_TYPE;
4659 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
4660 +
4661 +function isAsyncMode(object) {
4662 + {
4663 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
4664 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
4665 +
4666 + 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.');
4667 + }
4668 + }
4669 +
4670 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
4671 +}
4672 +function isConcurrentMode(object) {
4673 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
4674 +}
4675 +function isContextConsumer(object) {
4676 + return typeOf(object) === REACT_CONTEXT_TYPE;
4677 +}
4678 +function isContextProvider(object) {
4679 + return typeOf(object) === REACT_PROVIDER_TYPE;
4680 +}
4681 +function isElement(object) {
4682 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4683 +}
4684 +function isForwardRef(object) {
4685 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
4686 +}
4687 +function isFragment(object) {
4688 + return typeOf(object) === REACT_FRAGMENT_TYPE;
4689 +}
4690 +function isLazy(object) {
4691 + return typeOf(object) === REACT_LAZY_TYPE;
4692 +}
4693 +function isMemo(object) {
4694 + return typeOf(object) === REACT_MEMO_TYPE;
4695 +}
4696 +function isPortal(object) {
4697 + return typeOf(object) === REACT_PORTAL_TYPE;
4698 +}
4699 +function isProfiler(object) {
4700 + return typeOf(object) === REACT_PROFILER_TYPE;
4701 +}
4702 +function isStrictMode(object) {
4703 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
4704 +}
4705 +function isSuspense(object) {
4706 + return typeOf(object) === REACT_SUSPENSE_TYPE;
4707 +}
4708 +
4709 +exports.AsyncMode = AsyncMode;
4710 +exports.ConcurrentMode = ConcurrentMode;
4711 +exports.ContextConsumer = ContextConsumer;
4712 +exports.ContextProvider = ContextProvider;
4713 +exports.Element = Element;
4714 +exports.ForwardRef = ForwardRef;
4715 +exports.Fragment = Fragment;
4716 +exports.Lazy = Lazy;
4717 +exports.Memo = Memo;
4718 +exports.Portal = Portal;
4719 +exports.Profiler = Profiler;
4720 +exports.StrictMode = StrictMode;
4721 +exports.Suspense = Suspense;
4722 +exports.isAsyncMode = isAsyncMode;
4723 +exports.isConcurrentMode = isConcurrentMode;
4724 +exports.isContextConsumer = isContextConsumer;
4725 +exports.isContextProvider = isContextProvider;
4726 +exports.isElement = isElement;
4727 +exports.isForwardRef = isForwardRef;
4728 +exports.isFragment = isFragment;
4729 +exports.isLazy = isLazy;
4730 +exports.isMemo = isMemo;
4731 +exports.isPortal = isPortal;
4732 +exports.isProfiler = isProfiler;
4733 +exports.isStrictMode = isStrictMode;
4734 +exports.isSuspense = isSuspense;
4735 +exports.isValidElementType = isValidElementType;
4736 +exports.typeOf = typeOf;
4737 + })();
4738 +}
4739 +
4740 +
4741 +/***/ }),
4742 +
4743 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
4744 +/*!*****************************************************************!*\
4745 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
4746 + \*****************************************************************/
4747 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4748 +
4749 +"use strict";
4750 +
4751 +
4752 +if (false) // removed by dead control flow
4753 +{} else {
4754 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
4755 +}
4756 +
4757 +
4758 +/***/ }),
4759 +
4760 +/***/ "../node_modules/react-dom/client.js":
4761 +/*!*******************************************!*\
4762 + !*** ../node_modules/react-dom/client.js ***!
4763 + \*******************************************/
4764 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4765 +
4766 +"use strict";
4767 +
4768 +
4769 +var m = __webpack_require__(/*! react-dom */ "react-dom");
4770 +if (false) // removed by dead control flow
4771 +{} else {
4772 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4773 + exports.createRoot = function(c, o) {
4774 + i.usingClientEntryPoint = true;
4775 + try {
4776 + return m.createRoot(c, o);
4777 + } finally {
4778 + i.usingClientEntryPoint = false;
4779 + }
4780 + };
4781 + exports.hydrateRoot = function(c, h, o) {
4782 + i.usingClientEntryPoint = true;
4783 + try {
4784 + return m.hydrateRoot(c, h, o);
4785 + } finally {
4786 + i.usingClientEntryPoint = false;
4787 + }
4788 + };
4789 +}
4790 +
4791 +
4792 +/***/ }),
4793 +
4794 +/***/ "../node_modules/tslib/tslib.es6.mjs":
4795 +/*!*******************************************!*\
4796 + !*** ../node_modules/tslib/tslib.es6.mjs ***!
4797 + \*******************************************/
4798 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4799 +
4800 +"use strict";
4801 +__webpack_require__.r(__webpack_exports__);
4802 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4803 +/* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource),
4804 +/* harmony export */ __assign: () => (/* binding */ __assign),
4805 +/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
4806 +/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
4807 +/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
4808 +/* harmony export */ __await: () => (/* binding */ __await),
4809 +/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
4810 +/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
4811 +/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
4812 +/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
4813 +/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
4814 +/* harmony export */ __decorate: () => (/* binding */ __decorate),
4815 +/* harmony export */ __disposeResources: () => (/* binding */ __disposeResources),
4816 +/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
4817 +/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
4818 +/* harmony export */ __extends: () => (/* binding */ __extends),
4819 +/* harmony export */ __generator: () => (/* binding */ __generator),
4820 +/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
4821 +/* harmony export */ __importStar: () => (/* binding */ __importStar),
4822 +/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
4823 +/* harmony export */ __metadata: () => (/* binding */ __metadata),
4824 +/* harmony export */ __param: () => (/* binding */ __param),
4825 +/* harmony export */ __propKey: () => (/* binding */ __propKey),
4826 +/* harmony export */ __read: () => (/* binding */ __read),
4827 +/* harmony export */ __rest: () => (/* binding */ __rest),
4828 +/* harmony export */ __rewriteRelativeImportExtension: () => (/* binding */ __rewriteRelativeImportExtension),
4829 +/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
4830 +/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
4831 +/* harmony export */ __spread: () => (/* binding */ __spread),
4832 +/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
4833 +/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
4834 +/* harmony export */ __values: () => (/* binding */ __values),
4835 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4836 +/* harmony export */ });
4837 +/******************************************************************************
4838 +Copyright (c) Microsoft Corporation.
4839 +
4840 +Permission to use, copy, modify, and/or distribute this software for any
4841 +purpose with or without fee is hereby granted.
4842 +
4843 +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4844 +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4845 +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4846 +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4847 +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4848 +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4849 +PERFORMANCE OF THIS SOFTWARE.
4850 +***************************************************************************** */
4851 +/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
4852 +
4853 +var extendStatics = function(d, b) {
4854 + extendStatics = Object.setPrototypeOf ||
4855 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4856 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4857 + return extendStatics(d, b);
4858 +};
4859 +
4860 +function __extends(d, b) {
4861 + if (typeof b !== "function" && b !== null)
4862 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4863 + extendStatics(d, b);
4864 + function __() { this.constructor = d; }
4865 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4866 +}
4867 +
4868 +var __assign = function() {
4869 + __assign = Object.assign || function __assign(t) {
4870 + for (var s, i = 1, n = arguments.length; i < n; i++) {
4871 + s = arguments[i];
4872 + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4873 + }
4874 + return t;
4875 + }
4876 + return __assign.apply(this, arguments);
4877 +}
4878 +
4879 +function __rest(s, e) {
4880 + var t = {};
4881 + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4882 + t[p] = s[p];
4883 + if (s != null && typeof Object.getOwnPropertySymbols === "function")
4884 + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4885 + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4886 + t[p[i]] = s[p[i]];
4887 + }
4888 + return t;
4889 +}
4890 +
4891 +function __decorate(decorators, target, key, desc) {
4892 + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4893 + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4894 + 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;
4895 + return c > 3 && r && Object.defineProperty(target, key, r), r;
4896 +}
4897 +
4898 +function __param(paramIndex, decorator) {
4899 + return function (target, key) { decorator(target, key, paramIndex); }
4900 +}
4901 +
4902 +function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
4903 + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4904 + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4905 + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
4906 + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
4907 + var _, done = false;
4908 + for (var i = decorators.length - 1; i >= 0; i--) {
4909 + var context = {};
4910 + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
4911 + for (var p in contextIn.access) context.access[p] = contextIn.access[p];
4912 + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
4913 + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
4914 + if (kind === "accessor") {
4915 + if (result === void 0) continue;
4916 + if (result === null || typeof result !== "object") throw new TypeError("Object expected");
4917 + if (_ = accept(result.get)) descriptor.get = _;
4918 + if (_ = accept(result.set)) descriptor.set = _;
4919 + if (_ = accept(result.init)) initializers.unshift(_);
4920 + }
4921 + else if (_ = accept(result)) {
4922 + if (kind === "field") initializers.unshift(_);
4923 + else descriptor[key] = _;
4924 + }
4925 + }
4926 + if (target) Object.defineProperty(target, contextIn.name, descriptor);
4927 + done = true;
4928 +};
4929 +
4930 +function __runInitializers(thisArg, initializers, value) {
4931 + var useValue = arguments.length > 2;
4932 + for (var i = 0; i < initializers.length; i++) {
4933 + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
4934 + }
4935 + return useValue ? value : void 0;
4936 +};
4937 +
4938 +function __propKey(x) {
4939 + return typeof x === "symbol" ? x : "".concat(x);
4940 +};
4941 +
4942 +function __setFunctionName(f, name, prefix) {
4943 + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
4944 + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
4945 +};
4946 +
4947 +function __metadata(metadataKey, metadataValue) {
4948 + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
4949 +}
4950 +
4951 +function __awaiter(thisArg, _arguments, P, generator) {
4952 + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4953 + return new (P || (P = Promise))(function (resolve, reject) {
4954 + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
4955 + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
4956 + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
4957 + step((generator = generator.apply(thisArg, _arguments || [])).next());
4958 + });
4959 +}
4960 +
4961 +function __generator(thisArg, body) {
4962 + 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);
4963 + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
4964 + function verb(n) { return function (v) { return step([n, v]); }; }
4965 + function step(op) {
4966 + if (f) throw new TypeError("Generator is already executing.");
4967 + while (g && (g = 0, op[0] && (_ = 0)), _) try {
4968 + 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;
4969 + if (y = 0, t) op = [op[0] & 2, t.value];
4970 + switch (op[0]) {
4971 + case 0: case 1: t = op; break;
4972 + case 4: _.label++; return { value: op[1], done: false };
4973 + case 5: _.label++; y = op[1]; op = [0]; continue;
4974 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
4975 + default:
4976 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
4977 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
4978 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
4979 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
4980 + if (t[2]) _.ops.pop();
4981 + _.trys.pop(); continue;
4982 + }
4983 + op = body.call(thisArg, _);
4984 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
4985 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
4986 + }
4987 +}
4988 +
4989 +var __createBinding = Object.create ? (function(o, m, k, k2) {
4990 + if (k2 === undefined) k2 = k;
4991 + var desc = Object.getOwnPropertyDescriptor(m, k);
4992 + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
4993 + desc = { enumerable: true, get: function() { return m[k]; } };
4994 + }
4995 + Object.defineProperty(o, k2, desc);
4996 +}) : (function(o, m, k, k2) {
4997 + if (k2 === undefined) k2 = k;
4998 + o[k2] = m[k];
4999 +});
5000 +
5001 +function __exportStar(m, o) {
5002 + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
5003 +}
5004 +
5005 +function __values(o) {
5006 + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5007 + if (m) return m.call(o);
5008 + if (o && typeof o.length === "number") return {
5009 + next: function () {
5010 + if (o && i >= o.length) o = void 0;
5011 + return { value: o && o[i++], done: !o };
5012 + }
5013 + };
5014 + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5015 +}
5016 +
5017 +function __read(o, n) {
5018 + var m = typeof Symbol === "function" && o[Symbol.iterator];
5019 + if (!m) return o;
5020 + var i = m.call(o), r, ar = [], e;
5021 + try {
5022 + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5023 + }
5024 + catch (error) { e = { error: error }; }
5025 + finally {
5026 + try {
5027 + if (r && !r.done && (m = i["return"])) m.call(i);
5028 + }
5029 + finally { if (e) throw e.error; }
5030 + }
5031 + return ar;
5032 +}
5033 +
5034 +/** @deprecated */
5035 +function __spread() {
5036 + for (var ar = [], i = 0; i < arguments.length; i++)
5037 + ar = ar.concat(__read(arguments[i]));
5038 + return ar;
5039 +}
5040 +
5041 +/** @deprecated */
5042 +function __spreadArrays() {
5043 + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5044 + for (var r = Array(s), k = 0, i = 0; i < il; i++)
5045 + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
5046 + r[k] = a[j];
5047 + return r;
5048 +}
5049 +
5050 +function __spreadArray(to, from, pack) {
5051 + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5052 + if (ar || !(i in from)) {
5053 + if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5054 + ar[i] = from[i];
5055 + }
5056 + }
5057 + return to.concat(ar || Array.prototype.slice.call(from));
5058 +}
5059 +
5060 +function __await(v) {
5061 + return this instanceof __await ? (this.v = v, this) : new __await(v);
5062 +}
5063 +
5064 +function __asyncGenerator(thisArg, _arguments, generator) {
5065 + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5066 + var g = generator.apply(thisArg, _arguments || []), i, q = [];
5067 + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
5068 + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
5069 + 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]); } }
5070 + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
5071 + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
5072 + function fulfill(value) { resume("next", value); }
5073 + function reject(value) { resume("throw", value); }
5074 + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
5075 +}
5076 +
5077 +function __asyncDelegator(o) {
5078 + var i, p;
5079 + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
5080 + 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; }
5081 +}
5082 +
5083 +function __asyncValues(o) {
5084 + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5085 + var m = o[Symbol.asyncIterator], i;
5086 + 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);
5087 + 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); }); }; }
5088 + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
5089 +}
5090 +
5091 +function __makeTemplateObject(cooked, raw) {
5092 + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5093 + return cooked;
5094 +};
5095 +
5096 +var __setModuleDefault = Object.create ? (function(o, v) {
5097 + Object.defineProperty(o, "default", { enumerable: true, value: v });
5098 +}) : function(o, v) {
5099 + o["default"] = v;
5100 +};
5101 +
5102 +var ownKeys = function(o) {
5103 + ownKeys = Object.getOwnPropertyNames || function (o) {
5104 + var ar = [];
5105 + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
5106 + return ar;
5107 + };
5108 + return ownKeys(o);
5109 +};
5110 +
5111 +function __importStar(mod) {
5112 + if (mod && mod.__esModule) return mod;
5113 + var result = {};
5114 + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
5115 + __setModuleDefault(result, mod);
5116 + return result;
5117 +}
5118 +
5119 +function __importDefault(mod) {
5120 + return (mod && mod.__esModule) ? mod : { default: mod };
5121 +}
5122 +
5123 +function __classPrivateFieldGet(receiver, state, kind, f) {
5124 + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5125 + 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");
5126 + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5127 +}
5128 +
5129 +function __classPrivateFieldSet(receiver, state, value, kind, f) {
5130 + if (kind === "m") throw new TypeError("Private method is not writable");
5131 + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5132 + 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");
5133 + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5134 +}
5135 +
5136 +function __classPrivateFieldIn(state, receiver) {
5137 + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
5138 + return typeof state === "function" ? receiver === state : state.has(receiver);
5139 +}
5140 +
5141 +function __addDisposableResource(env, value, async) {
5142 + if (value !== null && value !== void 0) {
5143 + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
5144 + var dispose, inner;
5145 + if (async) {
5146 + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
5147 + dispose = value[Symbol.asyncDispose];
5148 + }
5149 + if (dispose === void 0) {
5150 + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
5151 + dispose = value[Symbol.dispose];
5152 + if (async) inner = dispose;
5153 + }
5154 + if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
5155 + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
5156 + env.stack.push({ value: value, dispose: dispose, async: async });
5157 + }
5158 + else if (async) {
5159 + env.stack.push({ async: true });
5160 + }
5161 + return value;
5162 +}
5163 +
5164 +var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5165 + var e = new Error(message);
5166 + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5167 +};
5168 +
5169 +function __disposeResources(env) {
5170 + function fail(e) {
5171 + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
5172 + env.hasError = true;
5173 + }
5174 + var r, s = 0;
5175 + function next() {
5176 + while (r = env.stack.pop()) {
5177 + try {
5178 + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
5179 + if (r.dispose) {
5180 + var result = r.dispose.call(r.value);
5181 + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
5182 + }
5183 + else s |= 1;
5184 + }
5185 + catch (e) {
5186 + fail(e);
5187 + }
5188 + }
5189 + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
5190 + if (env.hasError) throw env.error;
5191 + }
5192 + return next();
5193 +}
5194 +
5195 +function __rewriteRelativeImportExtension(path, preserveJsx) {
5196 + if (typeof path === "string" && /^\.\.?\//.test(path)) {
5197 + return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
5198 + return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
5199 + });
5200 + }
5201 + return path;
5202 +}
5203 +
5204 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
5205 + __extends,
5206 + __assign,
5207 + __rest,
5208 + __decorate,
5209 + __param,
5210 + __esDecorate,
5211 + __runInitializers,
5212 + __propKey,
5213 + __setFunctionName,
5214 + __metadata,
5215 + __awaiter,
5216 + __generator,
5217 + __createBinding,
5218 + __exportStar,
5219 + __values,
5220 + __read,
5221 + __spread,
5222 + __spreadArrays,
5223 + __spreadArray,
5224 + __await,
5225 + __asyncGenerator,
5226 + __asyncDelegator,
5227 + __asyncValues,
5228 + __makeTemplateObject,
5229 + __importStar,
5230 + __importDefault,
5231 + __classPrivateFieldGet,
5232 + __classPrivateFieldSet,
5233 + __classPrivateFieldIn,
5234 + __addDisposableResource,
5235 + __disposeResources,
5236 + __rewriteRelativeImportExtension,
5237 +});
5238 +
5239 +
5240 +/***/ }),
5241 +
5242 +/***/ "@elementor/icons":
5243 +/*!************************************!*\
5244 + !*** external "elementorV2.icons" ***!
5245 + \************************************/
5246 +/***/ ((module) => {
5247 +
5248 +"use strict";
5249 +module.exports = elementorV2.icons;
5250 +
5251 +/***/ }),
5252 +
5253 +/***/ "@elementor/icons/AdjustmentsIcon":
5254 +/*!*******************************************************!*\
5255 + !*** external "elementorV2.icons['AdjustmentsIcon']" ***!
5256 + \*******************************************************/
5257 +/***/ ((module) => {
5258 +
5259 +"use strict";
5260 +module.exports = elementorV2.icons['AdjustmentsIcon'];
5261 +
5262 +/***/ }),
5263 +
5264 +/***/ "@elementor/icons/ChevronDownSmallIcon":
5265 +/*!************************************************************!*\
5266 + !*** external "elementorV2.icons['ChevronDownSmallIcon']" ***!
5267 + \************************************************************/
5268 +/***/ ((module) => {
5269 +
5270 +"use strict";
5271 +module.exports = elementorV2.icons['ChevronDownSmallIcon'];
5272 +
5273 +/***/ }),
5274 +
5275 +/***/ "@elementor/icons/ChevronRightIcon":
5276 +/*!********************************************************!*\
5277 + !*** external "elementorV2.icons['ChevronRightIcon']" ***!
5278 + \********************************************************/
5279 +/***/ ((module) => {
5280 +
5281 +"use strict";
5282 +module.exports = elementorV2.icons['ChevronRightIcon'];
5283 +
5284 +/***/ }),
5285 +
5286 +/***/ "@elementor/icons/FileSettingsIcon":
5287 +/*!********************************************************!*\
5288 + !*** external "elementorV2.icons['FileSettingsIcon']" ***!
5289 + \********************************************************/
5290 +/***/ ((module) => {
5291 +
5292 +"use strict";
5293 +module.exports = elementorV2.icons['FileSettingsIcon'];
5294 +
5295 +/***/ }),
5296 +
5297 +/***/ "@elementor/icons/FolderIcon":
5298 +/*!**************************************************!*\
5299 + !*** external "elementorV2.icons['FolderIcon']" ***!
5300 + \**************************************************/
5301 +/***/ ((module) => {
5302 +
5303 +"use strict";
5304 +module.exports = elementorV2.icons['FolderIcon'];
5305 +
5306 +/***/ }),
5307 +
5308 +/***/ "@elementor/icons/HomeIcon":
5309 +/*!************************************************!*\
5310 + !*** external "elementorV2.icons['HomeIcon']" ***!
5311 + \************************************************/
5312 +/***/ ((module) => {
5313 +
5314 +"use strict";
5315 +module.exports = elementorV2.icons['HomeIcon'];
5316 +
5317 +/***/ }),
5318 +
5319 +/***/ "@elementor/icons/PlugIcon":
5320 +/*!************************************************!*\
5321 + !*** external "elementorV2.icons['PlugIcon']" ***!
5322 + \************************************************/
5323 +/***/ ((module) => {
5324 +
5325 +"use strict";
5326 +module.exports = elementorV2.icons['PlugIcon'];
5327 +
5328 +/***/ }),
5329 +
5330 +/***/ "@elementor/icons/RocketIcon":
5331 +/*!**************************************************!*\
5332 + !*** external "elementorV2.icons['RocketIcon']" ***!
5333 + \**************************************************/
5334 +/***/ ((module) => {
5335 +
5336 +"use strict";
5337 +module.exports = elementorV2.icons['RocketIcon'];
5338 +
5339 +/***/ }),
5340 +
5341 +/***/ "@elementor/icons/SearchIcon":
5342 +/*!**************************************************!*\
5343 + !*** external "elementorV2.icons['SearchIcon']" ***!
5344 + \**************************************************/
5345 +/***/ ((module) => {
5346 +
5347 +"use strict";
5348 +module.exports = elementorV2.icons['SearchIcon'];
5349 +
5350 +/***/ }),
5351 +
5352 +/***/ "@elementor/icons/SendIcon":
5353 +/*!************************************************!*\
5354 + !*** external "elementorV2.icons['SendIcon']" ***!
5355 + \************************************************/
5356 +/***/ ((module) => {
5357 +
5358 +"use strict";
5359 +module.exports = elementorV2.icons['SendIcon'];
5360 +
5361 +/***/ }),
5362 +
5363 +/***/ "@elementor/icons/SettingsIcon":
5364 +/*!****************************************************!*\
5365 + !*** external "elementorV2.icons['SettingsIcon']" ***!
5366 + \****************************************************/
5367 +/***/ ((module) => {
5368 +
5369 +"use strict";
5370 +module.exports = elementorV2.icons['SettingsIcon'];
5371 +
5372 +/***/ }),
5373 +
5374 +/***/ "@elementor/icons/UsersIcon":
5375 +/*!*************************************************!*\
5376 + !*** external "elementorV2.icons['UsersIcon']" ***!
5377 + \*************************************************/
5378 +/***/ ((module) => {
5379 +
5380 +"use strict";
5381 +module.exports = elementorV2.icons['UsersIcon'];
5382 +
5383 +/***/ }),
5384 +
5385 +/***/ "@elementor/ui":
5386 +/*!*********************************!*\
5387 + !*** external "elementorV2.ui" ***!
5388 + \*********************************/
5389 +/***/ ((module) => {
5390 +
5391 +"use strict";
5392 +module.exports = elementorV2.ui;
5393 +
5394 +/***/ }),
5395 +
5396 +/***/ "react":
5397 +/*!************************!*\
5398 + !*** external "React" ***!
5399 + \************************/
5400 +/***/ ((module) => {
5401 +
5402 +"use strict";
5403 +module.exports = React;
5404 +
5405 +/***/ }),
5406 +
5407 +/***/ "react-dom":
5408 +/*!***************************!*\
5409 + !*** external "ReactDOM" ***!
5410 + \***************************/
5411 +/***/ ((module) => {
5412 +
5413 +"use strict";
5414 +module.exports = ReactDOM;
5415 +
5416 +/***/ })
5417 +
5418 +/******/ });
5419 +/************************************************************************/
5420 +/******/ // The module cache
5421 +/******/ var __webpack_module_cache__ = {};
5422 +/******/
5423 +/******/ // The require function
5424 +/******/ function __webpack_require__(moduleId) {
5425 +/******/ // Check if module is in cache
5426 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
5427 +/******/ if (cachedModule !== undefined) {
5428 +/******/ return cachedModule.exports;
5429 +/******/ }
5430 +/******/ // Create a new module (and put it into the cache)
5431 +/******/ var module = __webpack_module_cache__[moduleId] = {
5432 +/******/ // no module.id needed
5433 +/******/ // no module.loaded needed
5434 +/******/ exports: {}
5435 +/******/ };
5436 +/******/
5437 +/******/ // Execute the module function
5438 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
5439 +/******/
5440 +/******/ // Return the exports of the module
5441 +/******/ return module.exports;
5442 +/******/ }
5443 +/******/
5444 +/************************************************************************/
5445 +/******/ /* webpack/runtime/compat get default export */
5446 +/******/ (() => {
5447 +/******/ // getDefaultExport function for compatibility with non-harmony modules
5448 +/******/ __webpack_require__.n = (module) => {
5449 +/******/ var getter = module && module.__esModule ?
5450 +/******/ () => (module['default']) :
5451 +/******/ () => (module);
5452 +/******/ __webpack_require__.d(getter, { a: getter });
5453 +/******/ return getter;
5454 +/******/ };
5455 +/******/ })();
5456 +/******/
5457 +/******/ /* webpack/runtime/define property getters */
5458 +/******/ (() => {
5459 +/******/ // define getter functions for harmony exports
5460 +/******/ __webpack_require__.d = (exports, definition) => {
5461 +/******/ for(var key in definition) {
5462 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5463 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5464 +/******/ }
5465 +/******/ }
5466 +/******/ };
5467 +/******/ })();
5468 +/******/
5469 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
5470 +/******/ (() => {
5471 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5472 +/******/ })();
5473 +/******/
5474 +/******/ /* webpack/runtime/make namespace object */
5475 +/******/ (() => {
5476 +/******/ // define __esModule on exports
5477 +/******/ __webpack_require__.r = (exports) => {
5478 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5479 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5480 +/******/ }
5481 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
5482 +/******/ };
5483 +/******/ })();
5484 +/******/
5485 +/************************************************************************/
5486 +var __webpack_exports__ = {};
5487 +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
5488 +(() => {
5489 +"use strict";
5490 +/*!*****************************************************************!*\
5491 + !*** ../modules/editor-one/assets/js/sidebar-navigation/app.js ***!
5492 + \*****************************************************************/
5493 +
5494 +
5495 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
5496 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
5497 +var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
5498 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
5499 +var _index = _interopRequireDefault(__webpack_require__(/*! ./components/index */ "../modules/editor-one/assets/js/sidebar-navigation/components/index.js"));
5500 +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
5501 +var App = function App(_ref) {
5502 + var config = _ref.config;
5503 + return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
5504 + rtl: config.isRTL
5505 + }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
5506 + colorScheme: "light"
5507 + }, /*#__PURE__*/_react.default.createElement(_index.default, {
5508 + config: config
5509 + }))));
5510 +};
5511 +App.propTypes = {
5512 + config: _propTypes.default.object.isRequired
5513 +};
5514 +var rootElement = document.getElementById('editor-one-sidebar-navigation');
5515 +if (rootElement && window.editorOneSidebarConfig) {
5516 + _react2.default.render(/*#__PURE__*/_react.default.createElement(App, {
5517 + config: window.editorOneSidebarConfig
5518 + }), rootElement);
5519 +}
5520 +})();
5521 +
5522 +/******/ })()
5523 +;
2362 5524 //# sourceMappingURL=editor-one-sidebar-navigation.js.map