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