PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.2
Elementor Website Builder – more than just a page builder v4.3.2
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 +2303 -6040 4.2.4 → 4.3.2 View file →
@@ -1,6099 +1,2362 @@
1 -/******/ (() => { // webpackBootstrap
2 -/******/ var __webpack_modules__ = ({
1 +(function(react, react_dom, _elementor_ui, _elementor_icons_ChevronRightIcon, _elementor_icons_AdjustmentsIcon, _elementor_icons_FolderIcon, _elementor_icons_RocketIcon, _elementor_icons_HomeIcon, _elementor_icons_SendIcon, _elementor_icons_SettingsIcon, _elementor_icons_UsersIcon, _elementor_icons_PlugIcon, _elementor_icons_FileSettingsIcon, _elementor_icons_ChevronDownSmallIcon, _elementor_icons, _elementor_icons_SearchIcon) {
3 2
4 -/***/ "../assets/dev/js/editor/utils/editor-one-events.js":
5 -/*!**********************************************************!*\
6 - !*** ../assets/dev/js/editor/utils/editor-one-events.js ***!
7 - \**********************************************************/
8 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3 +//#region \0rolldown/runtime.js
4 + var __create = Object.create;
5 + var __defProp = Object.defineProperty;
6 + var __name = (target, value) => __defProp(target, "name", {
7 + value,
8 + configurable: true
9 + });
10 + var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 + var __getOwnPropNames = Object.getOwnPropertyNames;
12 + var __getProtoOf = Object.getPrototypeOf;
13 + var __hasOwnProp = Object.prototype.hasOwnProperty;
14 + var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 + var __copyProps = (to, from, except, desc) => {
16 + if (from && typeof from === "object" || typeof from === "function") {
17 + for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18 + key = keys[i];
19 + if (!__hasOwnProp.call(to, key) && key !== except) {
20 + __defProp(to, key, {
21 + get: ((k) => from[k]).bind(null, key),
22 + enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23 + });
24 + }
25 + }
26 + }
27 + return to;
28 + };
29 + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30 + value: mod,
31 + enumerable: true
32 + }) : target, mod));
9 33
10 -"use strict";
34 +//#endregion
35 +react = __toESM(react);
36 +react_dom = __toESM(react_dom);
37 +_elementor_icons_ChevronRightIcon = __toESM(_elementor_icons_ChevronRightIcon);
38 +_elementor_icons_AdjustmentsIcon = __toESM(_elementor_icons_AdjustmentsIcon);
39 +_elementor_icons_FolderIcon = __toESM(_elementor_icons_FolderIcon);
40 +_elementor_icons_RocketIcon = __toESM(_elementor_icons_RocketIcon);
41 +_elementor_icons_HomeIcon = __toESM(_elementor_icons_HomeIcon);
42 +_elementor_icons_SendIcon = __toESM(_elementor_icons_SendIcon);
43 +_elementor_icons_SettingsIcon = __toESM(_elementor_icons_SettingsIcon);
44 +_elementor_icons_UsersIcon = __toESM(_elementor_icons_UsersIcon);
45 +_elementor_icons_PlugIcon = __toESM(_elementor_icons_PlugIcon);
46 +_elementor_icons_FileSettingsIcon = __toESM(_elementor_icons_FileSettingsIcon);
47 +_elementor_icons_ChevronDownSmallIcon = __toESM(_elementor_icons_ChevronDownSmallIcon);
48 +_elementor_icons_SearchIcon = __toESM(_elementor_icons_SearchIcon);
11 49
50 +//#region node_modules/react-dom/client.js
51 + var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
52 + var m = (globalThis.ReactDOM);
53 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54 + exports.createRoot = function(c, o) {
55 + i.usingClientEntryPoint = true;
56 + try {
57 + return m.createRoot(c, o);
58 + } finally {
59 + i.usingClientEntryPoint = false;
60 + }
61 + };
62 + }));
12 63
13 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
14 -Object.defineProperty(exports, "__esModule", ({
15 - value: true
16 -}));
17 -exports["default"] = exports.createDebouncedWidgetPanelSearch = exports.createDebouncedFinderSearch = exports.EditorOneEventManager = void 0;
18 -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
19 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
20 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
21 -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22 -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23 -var EditorOneEventManager = exports.EditorOneEventManager = /*#__PURE__*/function () {
24 - function EditorOneEventManager() {
25 - (0, _classCallCheck2.default)(this, EditorOneEventManager);
26 - }
27 - return (0, _createClass2.default)(EditorOneEventManager, null, [{
28 - key: "getEventsManager",
29 - value: function getEventsManager() {
30 - var _elementorCommon;
31 - return (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.eventsManager;
32 - }
33 - }, {
34 - key: "getConfig",
35 - value: function getConfig() {
36 - var _this$getEventsManage;
37 - return (_this$getEventsManage = this.getEventsManager()) === null || _this$getEventsManage === void 0 ? void 0 : _this$getEventsManage.config;
38 - }
39 - }, {
40 - key: "canSendEvents",
41 - value: function canSendEvents() {
42 - var _elementorCommon2;
43 - 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;
44 - }
45 - }, {
46 - key: "isEventsManagerAvailable",
47 - value: function isEventsManagerAvailable() {
48 - var eventsManager = this.getEventsManager();
49 - return eventsManager && 'function' === typeof eventsManager.dispatchEvent;
50 - }
51 - }, {
52 - key: "dispatchEvent",
53 - value: function dispatchEvent(eventName, payload) {
54 - try {
55 - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) {
56 - return false;
57 - }
58 - this.getEventsManager().dispatchEvent(eventName, payload);
59 - return true;
60 - } catch (error) {
61 - return false;
62 - }
63 - }
64 - }, {
65 - key: "toLowerSnake",
66 - value: function toLowerSnake(value) {
67 - if (!value || 'string' !== typeof value) {
68 - return value;
69 - }
70 - return value.replace(/\s+/g, '_').toLowerCase();
71 - }
72 - }, {
73 - key: "decodeHtmlEntities",
74 - value: function decodeHtmlEntities(text) {
75 - if (!text || 'string' !== typeof text) {
76 - return text;
77 - }
78 - var doc = new DOMParser().parseFromString(text, 'text/html');
79 - return doc.body.textContent || text;
80 - }
81 - }, {
82 - key: "isInEditorContext",
83 - value: function isInEditorContext() {
84 - var _window$elementor;
85 - return 'undefined' !== typeof window.elementor && !!((_window$elementor = window.elementor) !== null && _window$elementor !== void 0 && _window$elementor.documents);
86 - }
87 - }, {
88 - key: "getFinderContext",
89 - value: function getFinderContext() {
90 - var _config$appTypes, _config$appTypes2, _config$locations, _config$locations2;
91 - var config = this.getConfig();
92 - var isEditor = this.isInEditorContext();
93 - return {
94 - 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,
95 - 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)
96 - };
97 - }
98 - }, {
99 - key: "createBasePayload",
100 - value: function createBasePayload() {
101 - var _config$appTypes$edit, _config$appTypes3, _config$appTypes$edit2, _config$appTypes4;
102 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
103 - var config = this.getConfig();
104 - return _objectSpread({
105 - app_type: (_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',
106 - window_name: (_config$appTypes$edit2 = config === null || config === void 0 || (_config$appTypes4 = config.appTypes) === null || _config$appTypes4 === void 0 ? void 0 : _config$appTypes4.editor) !== null && _config$appTypes$edit2 !== void 0 ? _config$appTypes$edit2 : 'editor'
107 - }, overrides);
108 - }
109 - }, {
110 - key: "sendTopBarPublishDropdown",
111 - value: function sendTopBarPublishDropdown(targetName) {
112 - var _config$names, _config$triggers, _config$targetTypes, _config$interactionRe, _config$locations3, _config$secondaryLoca, _config$targetTypes2;
113 - var config = this.getConfig();
114 - 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({
115 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers = config.triggers) === null || _config$triggers === void 0 ? void 0 : _config$triggers.click),
116 - target_type: config === null || config === void 0 || (_config$targetTypes = config.targetTypes) === null || _config$targetTypes === void 0 ? void 0 : _config$targetTypes.dropdownItem,
117 - target_name: targetName,
118 - interaction_result: config === null || config === void 0 || (_config$interactionRe = config.interactionResults) === null || _config$interactionRe === void 0 ? void 0 : _config$interactionRe.actionSelected,
119 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations3 = config.locations) === null || _config$locations3 === void 0 ? void 0 : _config$locations3.topBar),
120 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca = config.secondaryLocations) === null || _config$secondaryLoca === void 0 ? void 0 : _config$secondaryLoca.publishDropdown),
121 - location_l2: config === null || config === void 0 || (_config$targetTypes2 = config.targetTypes) === null || _config$targetTypes2 === void 0 ? void 0 : _config$targetTypes2.dropdownItem,
122 - interaction_description: 'User selected an action from the publish dropdown'
123 - }));
124 - }
125 - }, {
126 - key: "sendTopBarPageList",
127 - value: function sendTopBarPageList(targetName) {
128 - var _config$names2, _config$triggers2, _config$targetTypes3, _config$interactionRe2, _config$interactionRe3, _config$locations4, _config$secondaryLoca2, _config$targetTypes4;
129 - var isCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
130 - var config = this.getConfig();
131 - 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({
132 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers2 = config.triggers) === null || _config$triggers2 === void 0 ? void 0 : _config$triggers2.click),
133 - target_type: config === null || config === void 0 || (_config$targetTypes3 = config.targetTypes) === null || _config$targetTypes3 === void 0 ? void 0 : _config$targetTypes3.dropdownItem,
134 - target_name: targetName,
135 - 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,
136 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations4 = config.locations) === null || _config$locations4 === void 0 ? void 0 : _config$locations4.topBar),
137 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca2 = config.secondaryLocations) === null || _config$secondaryLoca2 === void 0 ? void 0 : _config$secondaryLoca2.pageListDropdown),
138 - location_l2: config === null || config === void 0 || (_config$targetTypes4 = config.targetTypes) === null || _config$targetTypes4 === void 0 ? void 0 : _config$targetTypes4.dropdownItem,
139 - interaction_description: 'User selected an action from the page list dropdown'
140 - }));
141 - }
142 - }, {
143 - key: "sendSiteSettingsSession",
144 - value: function sendSiteSettingsSession(_ref) {
145 - var _config$names3, _config$triggers3, _config$interactionRe4, _config$locations5, _config$secondaryLoca3;
146 - var targetType = _ref.targetType,
147 - _ref$visitedItems = _ref.visitedItems,
148 - visitedItems = _ref$visitedItems === void 0 ? [] : _ref$visitedItems,
149 - _ref$savedItems = _ref.savedItems,
150 - savedItems = _ref$savedItems === void 0 ? [] : _ref$savedItems,
151 - state = _ref.state;
152 - var config = this.getConfig();
153 - 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({
154 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers3 = config.triggers) === null || _config$triggers3 === void 0 ? void 0 : _config$triggers3.click),
155 - target_type: targetType,
156 - target_name: 'site_settings',
157 - interaction_result: config === null || config === void 0 || (_config$interactionRe4 = config.interactionResults) === null || _config$interactionRe4 === void 0 ? void 0 : _config$interactionRe4.sessionEnd,
158 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations5 = config.locations) === null || _config$locations5 === void 0 ? void 0 : _config$locations5.leftPanel),
159 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca3 = config.secondaryLocations) === null || _config$secondaryLoca3 === void 0 ? void 0 : _config$secondaryLoca3.siteSettings),
160 - interaction_description: 'Records areas visited as part of the site setting session',
161 - metadata: {
162 - visited_items: visitedItems,
163 - saved_items: savedItems
164 - },
165 - state: state
166 - }));
167 - }
168 - }, {
169 - key: "sendELibraryNav",
170 - value: function sendELibraryNav(tabName) {
171 - var _config$names4, _config$triggers4, _config$targetTypes5, _config$interactionRe5, _config$locations6, _config$secondaryLoca4;
172 - var config = this.getConfig();
173 - 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({
174 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers4 = config.triggers) === null || _config$triggers4 === void 0 ? void 0 : _config$triggers4.tabSelect),
175 - target_type: config === null || config === void 0 || (_config$targetTypes5 = config.targetTypes) === null || _config$targetTypes5 === void 0 ? void 0 : _config$targetTypes5.tab,
176 - target_name: this.toLowerSnake(tabName),
177 - interaction_result: config === null || config === void 0 || (_config$interactionRe5 = config.interactionResults) === null || _config$interactionRe5 === void 0 ? void 0 : _config$interactionRe5.tabChanged,
178 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations6 = config.locations) === null || _config$locations6 === void 0 ? void 0 : _config$locations6.elementorLibrary),
179 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca4 = config.secondaryLocations) === null || _config$secondaryLoca4 === void 0 ? void 0 : _config$secondaryLoca4.libraryTabs),
180 - interaction_description: 'User navigates within elementor library'
181 - }));
182 - }
183 - }, {
184 - key: "sendELibraryInsert",
185 - value: function sendELibraryInsert(_ref2) {
186 - var _config$triggers5, _config$targetTypes6, _config$interactionRe6, _config$locations7, _config$secondaryLoca5, _config$names5;
187 - var assetId = _ref2.assetId,
188 - assetName = _ref2.assetName,
189 - libraryType = _ref2.libraryType,
190 - _ref2$proRequired = _ref2.proRequired,
191 - proRequired = _ref2$proRequired === void 0 ? false : _ref2$proRequired;
192 - var config = this.getConfig();
193 - var payload = this.createBasePayload({
194 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers5 = config.triggers) === null || _config$triggers5 === void 0 ? void 0 : _config$triggers5.insert),
195 - target_type: config === null || config === void 0 || (_config$targetTypes6 = config.targetTypes) === null || _config$targetTypes6 === void 0 ? void 0 : _config$targetTypes6.button,
196 - target_name: String(assetId),
197 - interaction_result: config === null || config === void 0 || (_config$interactionRe6 = config.interactionResults) === null || _config$interactionRe6 === void 0 ? void 0 : _config$interactionRe6.assetInserted,
198 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations7 = config.locations) === null || _config$locations7 === void 0 ? void 0 : _config$locations7.elementorLibrary),
199 - location_l1: this.toLowerSnake(libraryType),
200 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca5 = config.secondaryLocations) === null || _config$secondaryLoca5 === void 0 ? void 0 : _config$secondaryLoca5.assetCard),
201 - interaction_description: 'User inserts block/pages from elementor library',
202 - metadata: {
203 - template_id: String(assetId),
204 - template_name: this.decodeHtmlEntities(assetName) || ''
205 - }
206 - });
207 - if (proRequired) {
208 - payload.state = 'pro_plan_required';
209 - }
210 - 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);
211 - }
212 - }, {
213 - key: "sendELibraryFavorite",
214 - value: function sendELibraryFavorite(_ref3) {
215 - var _config$triggers6, _config$targetTypes7, _config$interactionRe7, _config$locations8, _config$secondaryLoca6, _config$names6;
216 - var assetId = _ref3.assetId,
217 - assetName = _ref3.assetName,
218 - libraryType = _ref3.libraryType,
219 - isFavorite = _ref3.isFavorite,
220 - _ref3$proRequired = _ref3.proRequired,
221 - proRequired = _ref3$proRequired === void 0 ? false : _ref3$proRequired;
222 - var config = this.getConfig();
223 - var payload = this.createBasePayload({
224 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers6 = config.triggers) === null || _config$triggers6 === void 0 ? void 0 : _config$triggers6.click),
225 - target_type: config === null || config === void 0 || (_config$targetTypes7 = config.targetTypes) === null || _config$targetTypes7 === void 0 ? void 0 : _config$targetTypes7.toggle,
226 - target_name: String(assetId),
227 - interaction_result: config === null || config === void 0 || (_config$interactionRe7 = config.interactionResults) === null || _config$interactionRe7 === void 0 ? void 0 : _config$interactionRe7.assetFavorite,
228 - target_value: Boolean(isFavorite),
229 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations8 = config.locations) === null || _config$locations8 === void 0 ? void 0 : _config$locations8.elementorLibrary),
230 - location_l1: this.toLowerSnake(libraryType),
231 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca6 = config.secondaryLocations) === null || _config$secondaryLoca6 === void 0 ? void 0 : _config$secondaryLoca6.assetCard),
232 - interaction_description: 'User favorite block/pages from elementor library',
233 - metadata: {
234 - template_id: String(assetId),
235 - template_name: this.decodeHtmlEntities(assetName) || ''
236 - }
237 - });
238 - if (proRequired) {
239 - payload.state = 'pro_plan_required';
240 - }
241 - 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);
242 - }
243 - }, {
244 - key: "sendELibraryGenerateAi",
245 - value: function sendELibraryGenerateAi(_ref4) {
246 - var _config$names7, _config$triggers7, _config$targetTypes8, _config$interactionRe8, _config$locations9, _config$secondaryLoca7;
247 - var assetId = _ref4.assetId,
248 - assetName = _ref4.assetName,
249 - libraryType = _ref4.libraryType;
250 - var config = this.getConfig();
251 - 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({
252 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers7 = config.triggers) === null || _config$triggers7 === void 0 ? void 0 : _config$triggers7.click),
253 - target_type: config === null || config === void 0 || (_config$targetTypes8 = config.targetTypes) === null || _config$targetTypes8 === void 0 ? void 0 : _config$targetTypes8.button,
254 - target_name: String(assetId),
255 - interaction_result: config === null || config === void 0 || (_config$interactionRe8 = config.interactionResults) === null || _config$interactionRe8 === void 0 ? void 0 : _config$interactionRe8.aiGenerate,
256 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations9 = config.locations) === null || _config$locations9 === void 0 ? void 0 : _config$locations9.elementorLibrary),
257 - location_l1: this.toLowerSnake(libraryType),
258 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca7 = config.secondaryLocations) === null || _config$secondaryLoca7 === void 0 ? void 0 : _config$secondaryLoca7.assetCard),
259 - interaction_description: 'User generated block/page based on a library asset',
260 - metadata: {
261 - template_id: String(assetId),
262 - template_name: this.decodeHtmlEntities(assetName) || ''
263 - }
264 - }));
265 - }
266 - }, {
267 - key: "sendFinderSearchInput",
268 - value: function sendFinderSearchInput(_ref5) {
269 - var _config$triggers8, _config$targetTypes9, _config$interactionRe9, _config$interactionRe0, _config$secondaryLoca8, _config$names8;
270 - var resultsCount = _ref5.resultsCount,
271 - _ref5$searchTerm = _ref5.searchTerm,
272 - searchTerm = _ref5$searchTerm === void 0 ? null : _ref5$searchTerm;
273 - var config = this.getConfig();
274 - var hasResults = resultsCount > 0;
275 - var finderContext = this.getFinderContext();
276 - var payload = this.createBasePayload({
277 - window_name: finderContext.windowName,
278 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers8 = config.triggers) === null || _config$triggers8 === void 0 ? void 0 : _config$triggers8.typing),
279 - target_type: config === null || config === void 0 || (_config$targetTypes9 = config.targetTypes) === null || _config$targetTypes9 === void 0 ? void 0 : _config$targetTypes9.searchInput,
280 - target_name: 'finder',
281 - 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,
282 - target_location: finderContext.targetLocation,
283 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca8 = config.secondaryLocations) === null || _config$secondaryLoca8 === void 0 ? void 0 : _config$secondaryLoca8.finder),
284 - interaction_description: 'Finder search input, follows debounce behavior',
285 - metadata: {
286 - results_count: resultsCount
287 - }
288 - });
289 - if (!hasResults && searchTerm) {
290 - payload.metadata.search_term = searchTerm;
291 - }
292 - 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);
293 - }
294 - }, {
295 - key: "sendFinderResultSelect",
296 - value: function sendFinderResultSelect(choice) {
297 - var _config$names9, _config$triggers9, _config$targetTypes0, _config$interactionRe1, _config$secondaryLoca9, _config$secondaryLoca0;
298 - var config = this.getConfig();
299 - var finderContext = this.getFinderContext();
300 - 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({
301 - window_name: finderContext.windowName,
302 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers9 = config.triggers) === null || _config$triggers9 === void 0 ? void 0 : _config$triggers9.click),
303 - target_type: config === null || config === void 0 || (_config$targetTypes0 = config.targetTypes) === null || _config$targetTypes0 === void 0 ? void 0 : _config$targetTypes0.searchResult,
304 - target_name: choice,
305 - interaction_result: config === null || config === void 0 || (_config$interactionRe1 = config.interactionResults) === null || _config$interactionRe1 === void 0 ? void 0 : _config$interactionRe1.selected,
306 - target_location: finderContext.targetLocation,
307 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca9 = config.secondaryLocations) === null || _config$secondaryLoca9 === void 0 ? void 0 : _config$secondaryLoca9.finder),
308 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca0 = config.secondaryLocations) === null || _config$secondaryLoca0 === void 0 ? void 0 : _config$secondaryLoca0.finderResults),
309 - interaction_description: 'Finder search results was selected'
310 - }));
311 - }
312 - }, {
313 - key: "sendCanvasEmptyBoxAction",
314 - value: function sendCanvasEmptyBoxAction(_ref6) {
315 - var _config$triggers0, _config$targetTypes1, _config$interactionRe10, _config$locations0, _config$secondaryLoca1, _config$names0;
316 - var targetName = _ref6.targetName,
317 - _ref6$metadata = _ref6.metadata,
318 - metadata = _ref6$metadata === void 0 ? {} : _ref6$metadata,
319 - _ref6$containerCreate = _ref6.containerCreated,
320 - containerCreated = _ref6$containerCreate === void 0 ? null : _ref6$containerCreate;
321 - var config = this.getConfig();
322 - var payload = this.createBasePayload({
323 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers0 = config.triggers) === null || _config$triggers0 === void 0 ? void 0 : _config$triggers0.click),
324 - target_type: config === null || config === void 0 || (_config$targetTypes1 = config.targetTypes) === null || _config$targetTypes1 === void 0 ? void 0 : _config$targetTypes1.buttons,
325 - target_name: targetName,
326 - interaction_result: config === null || config === void 0 || (_config$interactionRe10 = config.interactionResults) === null || _config$interactionRe10 === void 0 ? void 0 : _config$interactionRe10.selected,
327 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations0 = config.locations) === null || _config$locations0 === void 0 ? void 0 : _config$locations0.canvas),
328 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca1 = config.secondaryLocations) === null || _config$secondaryLoca1 === void 0 ? void 0 : _config$secondaryLoca1.emptyBox),
329 - interaction_description: 'Empty box on canvas actions'
330 - });
331 - if (Object.keys(metadata).length > 0) {
332 - payload.metadata = metadata;
333 - }
334 - if (containerCreated !== null) {
335 - payload.state = containerCreated;
336 - }
337 - 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);
338 - }
339 - }, {
340 - key: "sendWidgetPanelSearch",
341 - value: function sendWidgetPanelSearch(_ref7) {
342 - var _config$triggers1, _config$targetTypes10, _config$interactionRe11, _config$interactionRe12, _config$locations1, _config$locations10, _config$secondaryLoca10, _config$names1;
343 - var resultsCount = _ref7.resultsCount,
344 - _ref7$userInput = _ref7.userInput,
345 - userInput = _ref7$userInput === void 0 ? null : _ref7$userInput;
346 - var config = this.getConfig();
347 - var hasResults = resultsCount > 0;
348 - var payload = this.createBasePayload({
349 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers1 = config.triggers) === null || _config$triggers1 === void 0 ? void 0 : _config$triggers1.typing),
350 - target_type: config === null || config === void 0 || (_config$targetTypes10 = config.targetTypes) === null || _config$targetTypes10 === void 0 ? void 0 : _config$targetTypes10.searchWidget,
351 - target_name: 'search_widget',
352 - 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,
353 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations1 = config.locations) === null || _config$locations1 === void 0 ? void 0 : _config$locations1.leftPanel),
354 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$locations10 = config.locations) === null || _config$locations10 === void 0 ? void 0 : _config$locations10.widgetPanel),
355 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca10 = config.secondaryLocations) === null || _config$secondaryLoca10 === void 0 ? void 0 : _config$secondaryLoca10.searchBar),
356 - interaction_description: 'Widget search input, follows debounce behavior'
357 - });
358 - if (!hasResults && userInput) {
359 - payload.metadata = {
360 - user_input: userInput
361 - };
362 - }
363 - 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);
364 - }
365 - }, {
366 - key: "createWpDashPayload",
367 - value: function createWpDashPayload() {
368 - var _config$appTypes$wpDa, _config$appTypes5, _config$locations11;
369 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
370 - var config = this.getConfig();
371 - return this.createBasePayload(_objectSpread({
372 - window_name: (_config$appTypes$wpDa = config === null || config === void 0 || (_config$appTypes5 = config.appTypes) === null || _config$appTypes5 === void 0 ? void 0 : _config$appTypes5.wpDash) !== null && _config$appTypes$wpDa !== void 0 ? _config$appTypes$wpDa : 'wpdash',
373 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin),
374 - location_l2: ''
375 - }, overrides));
376 - }
377 - }, {
378 - key: "sendWpDashElementorMenuClick",
379 - value: function sendWpDashElementorMenuClick() {
380 - var _config$names10, _config$triggers10, _config$targetTypes11, _config$interactionRe13, _config$secondaryLoca11;
381 - var config = this.getConfig();
382 - 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({
383 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click),
384 - target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem,
385 - target_name: 'elementor_menu_item',
386 - interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened,
387 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu),
388 - interaction_description: 'core_user_clicked_elementor_menu_item'
389 - }));
390 - }
391 - }, {
392 - key: "sendWpDashEditorSubMenuHover",
393 - value: function sendWpDashEditorSubMenuHover() {
394 - var _config$names11, _config$triggers11, _config$targetTypes12, _config$interactionRe14, _config$secondaryLoca12;
395 - var config = this.getConfig();
396 - 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({
397 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover),
398 - target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu,
399 - target_name: 'wpdash_editor_sub_menu',
400 - interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened,
401 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu),
402 - interaction_description: 'core_user_hovered_sub_menu'
403 - }));
404 - }
405 - }, {
406 - key: "sendWpDashThemeBuilderClick",
407 - value: function sendWpDashThemeBuilderClick() {
408 - var _config$names12, _config$triggers12, _config$targetTypes13, _config$interactionRe15, _config$secondaryLoca13;
409 - var config = this.getConfig();
410 - 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({
411 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click),
412 - target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem,
413 - target_name: 'theme_builder_menu_item',
414 - interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow,
415 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder),
416 - interaction_description: 'core_user_clicked_theme_builder_menu_item'
417 - }));
418 - }
419 - }, {
420 - key: "sendSidebarMenuItemClicked",
421 - value: function sendSidebarMenuItemClicked(_ref8) {
422 - var eventId = _ref8.eventId,
423 - groupEventId = _ref8.groupEventId;
424 - try {
425 - var _config$windowNames, _config$triggers13, _config$targetTypes14, _config$interactionRe16, _config$locations12, _config$names13;
426 - var config = this.getConfig();
427 - var payload = this.createBasePayload({
428 - window_name: config === null || config === void 0 || (_config$windowNames = config.windowNames) === null || _config$windowNames === void 0 ? void 0 : _config$windowNames.sidebarMenu,
429 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers13 = config.triggers) === null || _config$triggers13 === void 0 ? void 0 : _config$triggers13.click),
430 - target_type: config === null || config === void 0 || (_config$targetTypes14 = config.targetTypes) === null || _config$targetTypes14 === void 0 ? void 0 : _config$targetTypes14.link,
431 - target_name: eventId,
432 - interaction_result: config === null || config === void 0 || (_config$interactionRe16 = config.interactionResults) === null || _config$interactionRe16 === void 0 ? void 0 : _config$interactionRe16.pageOpened,
433 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations12 = config.locations) === null || _config$locations12 === void 0 ? void 0 : _config$locations12.sidebar)
434 - });
435 - if (groupEventId) {
436 - payload.location_l1 = groupEventId;
437 - }
438 - 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);
439 - } catch (error) {
440 - return false;
441 - }
442 - }
443 - }, {
444 - key: "sendSidebarMenuGroupToggled",
445 - value: function sendSidebarMenuGroupToggled(_ref9) {
446 - var eventId = _ref9.eventId,
447 - isExpanded = _ref9.isExpanded;
448 - try {
449 - var _config$interactionRe17, _config$interactionRe18, _config$names14, _config$windowNames2, _config$triggers14, _config$targetTypes15, _config$locations13;
450 - var config = this.getConfig();
451 - 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;
452 - 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({
453 - window_name: config === null || config === void 0 || (_config$windowNames2 = config.windowNames) === null || _config$windowNames2 === void 0 ? void 0 : _config$windowNames2.sidebarMenu,
454 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers14 = config.triggers) === null || _config$triggers14 === void 0 ? void 0 : _config$triggers14.click),
455 - target_type: config === null || config === void 0 || (_config$targetTypes15 = config.targetTypes) === null || _config$targetTypes15 === void 0 ? void 0 : _config$targetTypes15.toggle,
456 - target_name: eventId,
457 - interaction_result: interactionResult,
458 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations13 = config.locations) === null || _config$locations13 === void 0 ? void 0 : _config$locations13.sidebar)
459 - }));
460 - } catch (error) {
461 - return false;
462 - }
463 - }
464 - }]);
465 -}();
466 -var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() {
467 - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300;
468 - return _.debounce(function (resultsCount, searchTerm) {
469 - EditorOneEventManager.sendFinderSearchInput({
470 - resultsCount: resultsCount,
471 - searchTerm: searchTerm
472 - });
473 - }, delay);
474 -};
475 -var createDebouncedWidgetPanelSearch = exports.createDebouncedWidgetPanelSearch = function createDebouncedWidgetPanelSearch() {
476 - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2000;
477 - return _.debounce(function (resultsCount, userInput) {
478 - EditorOneEventManager.sendWidgetPanelSearch({
479 - resultsCount: resultsCount,
480 - userInput: userInput
481 - });
482 - }, delay);
483 -};
484 -var _default = exports["default"] = EditorOneEventManager;
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 };
485 93
486 -/***/ }),
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 + }
487 105
488 -/***/ "../assets/dev/js/utils/react.js":
489 -/*!***************************************!*\
490 - !*** ../assets/dev/js/utils/react.js ***!
491 - \***************************************/
492 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
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 + };
493 124
494 -"use strict";
125 +//#endregion
126 +//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
127 +/** @license React v16.13.1
128 + * react-is.development.js
129 + *
130 + * Copyright (c) Facebook, Inc. and its affiliates.
131 + *
132 + * This source code is licensed under the MIT license found in the
133 + * LICENSE file in the root directory of this source tree.
134 + */
135 + var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
136 + (function() {
137 + "use strict";
138 + var hasSymbol = typeof Symbol === "function" && Symbol.for;
139 + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
140 + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
141 + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
142 + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
143 + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
144 + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
145 + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
146 + var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
147 + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
148 + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
149 + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
150 + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
151 + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
152 + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
153 + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
154 + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
155 + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
156 + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
157 + function isValidElementType(type) {
158 + return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
159 + }
160 + function typeOf(object) {
161 + if (typeof object === "object" && object !== null) {
162 + var $$typeof = object.$$typeof;
163 + switch ($$typeof) {
164 + case REACT_ELEMENT_TYPE:
165 + var type = object.type;
166 + switch (type) {
167 + case REACT_ASYNC_MODE_TYPE:
168 + case REACT_CONCURRENT_MODE_TYPE:
169 + case REACT_FRAGMENT_TYPE:
170 + case REACT_PROFILER_TYPE:
171 + case REACT_STRICT_MODE_TYPE:
172 + case REACT_SUSPENSE_TYPE: return type;
173 + default:
174 + var $$typeofType = type && type.$$typeof;
175 + switch ($$typeofType) {
176 + case REACT_CONTEXT_TYPE:
177 + case REACT_FORWARD_REF_TYPE:
178 + case REACT_LAZY_TYPE:
179 + case REACT_MEMO_TYPE:
180 + case REACT_PROVIDER_TYPE: return $$typeofType;
181 + default: return $$typeof;
182 + }
183 + }
184 + case REACT_PORTAL_TYPE: return $$typeof;
185 + }
186 + }
187 + }
188 + var AsyncMode = REACT_ASYNC_MODE_TYPE;
189 + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
190 + var ContextConsumer = REACT_CONTEXT_TYPE;
191 + var ContextProvider = REACT_PROVIDER_TYPE;
192 + var Element = REACT_ELEMENT_TYPE;
193 + var ForwardRef = REACT_FORWARD_REF_TYPE;
194 + var Fragment = REACT_FRAGMENT_TYPE;
195 + var Lazy = REACT_LAZY_TYPE;
196 + var Memo = REACT_MEMO_TYPE;
197 + var Portal = REACT_PORTAL_TYPE;
198 + var Profiler = REACT_PROFILER_TYPE;
199 + var StrictMode = REACT_STRICT_MODE_TYPE;
200 + var Suspense = REACT_SUSPENSE_TYPE;
201 + var hasWarnedAboutDeprecatedIsAsyncMode = false;
202 + function isAsyncMode(object) {
203 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
204 + hasWarnedAboutDeprecatedIsAsyncMode = true;
205 + console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
206 + }
207 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
208 + }
209 + function isConcurrentMode(object) {
210 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
211 + }
212 + function isContextConsumer(object) {
213 + return typeOf(object) === REACT_CONTEXT_TYPE;
214 + }
215 + function isContextProvider(object) {
216 + return typeOf(object) === REACT_PROVIDER_TYPE;
217 + }
218 + function isElement(object) {
219 + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
220 + }
221 + function isForwardRef(object) {
222 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
223 + }
224 + function isFragment(object) {
225 + return typeOf(object) === REACT_FRAGMENT_TYPE;
226 + }
227 + function isLazy(object) {
228 + return typeOf(object) === REACT_LAZY_TYPE;
229 + }
230 + function isMemo(object) {
231 + return typeOf(object) === REACT_MEMO_TYPE;
232 + }
233 + function isPortal(object) {
234 + return typeOf(object) === REACT_PORTAL_TYPE;
235 + }
236 + function isProfiler(object) {
237 + return typeOf(object) === REACT_PROFILER_TYPE;
238 + }
239 + function isStrictMode(object) {
240 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
241 + }
242 + function isSuspense(object) {
243 + return typeOf(object) === REACT_SUSPENSE_TYPE;
244 + }
245 + exports.AsyncMode = AsyncMode;
246 + exports.ConcurrentMode = ConcurrentMode;
247 + exports.ContextConsumer = ContextConsumer;
248 + exports.ContextProvider = ContextProvider;
249 + exports.Element = Element;
250 + exports.ForwardRef = ForwardRef;
251 + exports.Fragment = Fragment;
252 + exports.Lazy = Lazy;
253 + exports.Memo = Memo;
254 + exports.Portal = Portal;
255 + exports.Profiler = Profiler;
256 + exports.StrictMode = StrictMode;
257 + exports.Suspense = Suspense;
258 + exports.isAsyncMode = isAsyncMode;
259 + exports.isConcurrentMode = isConcurrentMode;
260 + exports.isContextConsumer = isContextConsumer;
261 + exports.isContextProvider = isContextProvider;
262 + exports.isElement = isElement;
263 + exports.isForwardRef = isForwardRef;
264 + exports.isFragment = isFragment;
265 + exports.isLazy = isLazy;
266 + exports.isMemo = isMemo;
267 + exports.isPortal = isPortal;
268 + exports.isProfiler = isProfiler;
269 + exports.isStrictMode = isStrictMode;
270 + exports.isSuspense = isSuspense;
271 + exports.isValidElementType = isValidElementType;
272 + exports.typeOf = typeOf;
273 + })();
274 + }));
495 275
276 +//#endregion
277 +//#region node_modules/prop-types/node_modules/react-is/index.js
278 + var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
279 + module.exports = require_react_is_development();
280 + }));
496 281
497 -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
498 -Object.defineProperty(exports, "__esModule", ({
499 - value: true
500 -}));
501 -exports["default"] = void 0;
502 -var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
503 -var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
504 -var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
505 -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); }
506 -/**
507 - * Support conditional rendering of a React App to the DOM, based on the React version.
508 - * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
509 - *
510 - * @param { React.ReactElement } app The app to render.
511 - * @param { HTMLElement } domElement The DOM element to render the app into.
512 - *
513 - * @return {{ unmount: () => void }} The unmount function.
514 - */
515 -function render(app, domElement) {
516 - var unmountFunction;
517 - try {
518 - var root = (0, _client.createRoot)(domElement);
519 - root.render(app);
520 - unmountFunction = function unmountFunction() {
521 - root.unmount();
522 - };
523 - } catch (e) {
524 - // eslint-disable-next-line react/no-deprecated
525 - ReactDOM.render(app, domElement);
526 - unmountFunction = function unmountFunction() {
527 - // eslint-disable-next-line react/no-deprecated
528 - ReactDOM.unmountComponentAtNode(domElement);
529 - };
530 - }
531 - return {
532 - unmount: unmountFunction
533 - };
534 -}
535 -var _default = exports["default"] = {
536 - render: render
537 -};
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 + }));
538 333
539 -/***/ }),
540 -
541 -/***/ "../modules/editor-one/assets/js/shared/is-rtl.js":
542 -/*!********************************************************!*\
543 - !*** ../modules/editor-one/assets/js/shared/is-rtl.js ***!
544 - \********************************************************/
545 -/***/ ((__unused_webpack_module, exports) => {
546 -
547 -"use strict";
548 -
549 -
550 -Object.defineProperty(exports, "__esModule", ({
551 - value: true
552 -}));
553 -exports["default"] = isRTL;
554 -function isRTL() {
555 - var _elementorCommon$conf, _elementorCommon;
556 - 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;
557 -}
558 -
559 -/***/ }),
560 -
561 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js":
562 -/*!************************************************************************************************!*\
563 - !*** ../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js ***!
564 - \************************************************************************************************/
565 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
566 -
567 -"use strict";
568 -
569 -
570 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
571 -Object.defineProperty(exports, "__esModule", ({
572 - value: true
573 -}));
574 -exports["default"] = void 0;
575 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
576 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
577 -var MenuActiveStateResolver = /*#__PURE__*/function () {
578 - function MenuActiveStateResolver(activeMenuSlug, activeChildSlug) {
579 - (0, _classCallCheck2.default)(this, MenuActiveStateResolver);
580 - this.activeMenuSlug = activeMenuSlug;
581 - this.activeChildSlug = activeChildSlug;
582 - }
583 - return (0, _createClass2.default)(MenuActiveStateResolver, [{
584 - key: "isMenuActive",
585 - value: function isMenuActive(item) {
586 - return item.slug === this.activeMenuSlug;
587 - }
588 - }, {
589 - key: "isChildActive",
590 - value: function isChildActive(childItem) {
591 - return childItem.slug === this.activeChildSlug;
592 - }
593 - }]);
594 -}();
595 -var _default = exports["default"] = MenuActiveStateResolver;
596 -
597 -/***/ }),
598 -
599 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js":
600 -/*!*******************************************************************************************************************!*\
601 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js ***!
602 - \*******************************************************************************************************************/
603 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
604 -
605 -"use strict";
606 -
607 -
608 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
609 -Object.defineProperty(exports, "__esModule", ({
610 - value: true
611 -}));
612 -exports["default"] = void 0;
613 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
614 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
615 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
616 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
617 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
618 -var CollapsedMenuItemPopover = function CollapsedMenuItemPopover(_ref) {
619 - var item = _ref.item,
620 - children = _ref.children,
621 - activeChildSlug = _ref.activeChildSlug,
622 - isPopoverOpen = _ref.isPopoverOpen,
623 - anchorEl = _ref.anchorEl,
624 - onClose = _ref.onClose,
625 - IconComponent = _ref.IconComponent,
626 - isActive = _ref.isActive,
627 - onMouseEnter = _ref.onMouseEnter,
628 - anchorRef = _ref.anchorRef;
629 - var handleChildClick = function handleChildClick(childItem) {
630 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
631 - eventId: childItem.event_id,
632 - groupEventId: item.event_id
633 - });
634 - };
635 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
636 - disablePadding: true,
637 - dense: true,
638 - disableGutters: true,
639 - onMouseEnter: onMouseEnter,
640 - ref: anchorRef
641 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
642 - selected: isActive || isPopoverOpen,
643 - sx: {
644 - height: 36
645 - }
646 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null))), /*#__PURE__*/_react.default.createElement(_shared.StyledPopover, {
647 - open: isPopoverOpen,
648 - anchorEl: anchorEl,
649 - onClose: onClose,
650 - anchorOrigin: {
651 - vertical: 'top',
652 - horizontal: 'right'
653 - },
654 - transformOrigin: {
655 - vertical: 'top',
656 - horizontal: 'left'
657 - },
658 - slotProps: {
659 - paper: {
660 - onMouseLeave: onClose
661 - }
662 - },
663 - disableRestoreFocus: true,
664 - hideBackdrop: true
665 - }, /*#__PURE__*/_react.default.createElement(_shared.PopoverContent, null, /*#__PURE__*/_react.default.createElement(_ui.List, {
666 - disablePadding: true,
667 - dense: true
668 - }, /*#__PURE__*/_react.default.createElement(_shared.PopoverTitle, null, item.label), children.map(function (childItem) {
669 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
670 - key: childItem.slug,
671 - disablePadding: true,
672 - disableGutters: true,
673 - dense: true,
674 - sx: {
675 - height: 28
676 - }
677 - }, /*#__PURE__*/_react.default.createElement(_shared.PopoverListItemButton, {
678 - component: "a",
679 - href: childItem.url,
680 - onClick: function onClick() {
681 - return handleChildClick(childItem);
682 - },
683 - selected: childItem.slug === activeChildSlug
684 - }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
685 - primary: childItem.label,
686 - primaryTypographyProps: {
687 - variant: 'body2'
688 - }
689 - })));
690 - })))));
691 -};
692 -CollapsedMenuItemPopover.propTypes = {
693 - item: _propTypes.default.object.isRequired,
694 - children: _propTypes.default.array.isRequired,
695 - activeChildSlug: _propTypes.default.string.isRequired,
696 - isPopoverOpen: _propTypes.default.bool.isRequired,
697 - anchorEl: _propTypes.default.object,
698 - onClose: _propTypes.default.func.isRequired,
699 - IconComponent: _propTypes.default.elementType.isRequired,
700 - isActive: _propTypes.default.bool.isRequired,
701 - onMouseEnter: _propTypes.default.func.isRequired,
702 - anchorRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]).isRequired
703 -};
704 -var _default = exports["default"] = CollapsedMenuItemPopover;
705 -
706 -/***/ }),
707 -
708 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js":
709 -/*!*******************************************************************************************************************!*\
710 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js ***!
711 - \*******************************************************************************************************************/
712 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
713 -
714 -"use strict";
715 -
716 -
717 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
718 -Object.defineProperty(exports, "__esModule", ({
719 - value: true
720 -}));
721 -exports["default"] = void 0;
722 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
723 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
724 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
725 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
726 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../../../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
727 -var CollapsedMenuItemTooltip = function CollapsedMenuItemTooltip(_ref) {
728 - var item = _ref.item,
729 - isActive = _ref.isActive,
730 - onClick = _ref.onClick,
731 - IconComponent = _ref.IconComponent,
732 - onMouseEnter = _ref.onMouseEnter;
733 - var isRtlLanguage = (0, _isRtl.default)();
734 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
735 - disablePadding: true,
736 - dense: true,
737 - disableGutters: true,
738 - onMouseEnter: onMouseEnter
739 - }, /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
740 - title: item.label,
741 - placement: isRtlLanguage ? 'left' : 'right'
742 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
743 - onClick: onClick,
744 - selected: isActive,
745 - sx: {
746 - height: 36
747 - }
748 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null)))));
749 -};
750 -CollapsedMenuItemTooltip.propTypes = {
751 - item: _propTypes.default.object.isRequired,
752 - isActive: _propTypes.default.bool.isRequired,
753 - onClick: _propTypes.default.func.isRequired,
754 - IconComponent: _propTypes.default.elementType.isRequired,
755 - onMouseEnter: _propTypes.default.func.isRequired
756 -};
757 -var _default = exports["default"] = CollapsedMenuItemTooltip;
758 -
759 -/***/ }),
760 -
761 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js":
762 -/*!*********************************************************************************************!*\
763 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js ***!
764 - \*********************************************************************************************/
765 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
766 -
767 -"use strict";
768 -
769 -
770 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
771 -Object.defineProperty(exports, "__esModule", ({
772 - value: true
773 -}));
774 -Object.defineProperty(exports, "SidebarCollapsedMenu", ({
775 - enumerable: true,
776 - get: function get() {
777 - return _sidebarCollapsedMenu.default;
778 - }
779 -}));
780 -Object.defineProperty(exports, "SidebarCollapsedMenuItem", ({
781 - enumerable: true,
782 - get: function get() {
783 - return _sidebarCollapsedMenuItem.default;
784 - }
785 -}));
786 -var _sidebarCollapsedMenu = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js"));
787 -var _sidebarCollapsedMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js"));
788 -
789 -/***/ }),
790 -
791 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js":
792 -/*!*******************************************************************************************************************!*\
793 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js ***!
794 - \*******************************************************************************************************************/
795 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
796 -
797 -"use strict";
798 -
799 -
800 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
801 -Object.defineProperty(exports, "__esModule", ({
802 - value: true
803 -}));
804 -exports["default"] = void 0;
805 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
806 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
807 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
808 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
809 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
810 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
811 -var _collapsedMenuItemPopover = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-popover */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js"));
812 -var _collapsedMenuItemTooltip = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-tooltip */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js"));
813 -var SidebarCollapsedMenuItem = function SidebarCollapsedMenuItem(_ref) {
814 - var item = _ref.item,
815 - isActive = _ref.isActive,
816 - _ref$children = _ref.children,
817 - children = _ref$children === void 0 ? null : _ref$children,
818 - activeChildSlug = _ref.activeChildSlug,
819 - isPopoverOpen = _ref.isPopoverOpen,
820 - onOpenPopover = _ref.onOpenPopover,
821 - onClosePopover = _ref.onClosePopover;
822 - var _useState = (0, _element.useState)(null),
823 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
824 - anchorEl = _useState2[0],
825 - setAnchorEl = _useState2[1];
826 - var hasChildren = !!(children !== null && children !== void 0 && children.length);
827 - var IconComponent = _shared.ICON_MAP[item.icon] || _shared.DEFAULT_ICON;
828 - var handleMouseEnter = function handleMouseEnter() {
829 - if (hasChildren) {
830 - onOpenPopover(item.slug);
831 - } else {
832 - onClosePopover();
833 - }
834 - };
835 - var handleClick = function handleClick() {
836 - if (!hasChildren) {
837 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
838 - eventId: item.event_id
839 - });
840 - window.location.href = item.url;
841 - }
842 - };
843 - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, hasChildren ? /*#__PURE__*/_react.default.createElement(_collapsedMenuItemPopover.default, {
844 - item: item,
845 - children: children,
846 - activeChildSlug: activeChildSlug,
847 - isPopoverOpen: isPopoverOpen,
848 - anchorEl: anchorEl,
849 - onClose: onClosePopover,
850 - IconComponent: IconComponent,
851 - isActive: isActive,
852 - onMouseEnter: handleMouseEnter,
853 - anchorRef: setAnchorEl
854 - }) : /*#__PURE__*/_react.default.createElement(_collapsedMenuItemTooltip.default, {
855 - item: item,
856 - isActive: isActive,
857 - onClick: handleClick,
858 - IconComponent: IconComponent,
859 - onMouseEnter: handleMouseEnter
860 - }));
861 -};
862 -SidebarCollapsedMenuItem.propTypes = {
863 - item: _propTypes.default.object.isRequired,
864 - isActive: _propTypes.default.bool.isRequired,
865 - children: _propTypes.default.array,
866 - activeChildSlug: _propTypes.default.string.isRequired,
867 - isPopoverOpen: _propTypes.default.bool.isRequired,
868 - onOpenPopover: _propTypes.default.func.isRequired,
869 - onClosePopover: _propTypes.default.func.isRequired
870 -};
871 -var _default = exports["default"] = SidebarCollapsedMenuItem;
872 -
873 -/***/ }),
874 -
875 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js":
876 -/*!**************************************************************************************************************!*\
877 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu.js ***!
878 - \**************************************************************************************************************/
879 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
880 -
881 -"use strict";
882 -
883 -
884 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
885 -Object.defineProperty(exports, "__esModule", ({
886 - value: true
887 -}));
888 -exports["default"] = void 0;
889 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
890 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
891 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
892 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
893 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
894 -var _menuActiveStateResolver = _interopRequireDefault(__webpack_require__(/*! ../../classes/menu-active-state-resolver */ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js"));
895 -var _sidebarCollapsedMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-collapsed-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js"));
896 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
897 -var SidebarCollapsedMenu = function SidebarCollapsedMenu(_ref) {
898 - var menuItems = _ref.menuItems,
899 - level4Groups = _ref.level4Groups,
900 - activeMenuSlug = _ref.activeMenuSlug,
901 - activeChildSlug = _ref.activeChildSlug;
902 - var _useState = (0, _element.useState)(null),
903 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
904 - openPopoverSlug = _useState2[0],
905 - setOpenPopoverSlug = _useState2[1];
906 - var activeStateResolver = (0, _element.useMemo)(function () {
907 - return new _menuActiveStateResolver.default(activeMenuSlug, activeChildSlug);
908 - }, [activeMenuSlug, activeChildSlug]);
909 - var getChildren = function getChildren(item) {
910 - if (!item.group_id) {
911 - return null;
912 - }
913 - var group = level4Groups[item.group_id];
914 - if (!group || !group.items || !group.items.length) {
915 - return null;
916 - }
917 - return group.items;
918 - };
919 - var handleOpenPopover = (0, _element.useCallback)(function (slug) {
920 - setOpenPopoverSlug(slug);
921 - }, []);
922 - var handleClosePopover = (0, _element.useCallback)(function () {
923 - setOpenPopoverSlug(null);
924 - }, []);
925 - return /*#__PURE__*/_react.default.createElement(_shared.MenuList, {
926 - isCollapsed: true,
927 - onMouseLeave: handleClosePopover
928 - }, menuItems.map(function (item) {
929 - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.has_divider_before && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
930 - key: "divider-".concat(item.slug),
931 - sx: {
932 - my: 1
933 - }
934 - }), /*#__PURE__*/_react.default.createElement(_sidebarCollapsedMenuItem.default, {
935 - key: item.slug,
936 - item: item,
937 - isActive: activeStateResolver.isMenuActive(item),
938 - children: getChildren(item),
939 - activeChildSlug: activeChildSlug,
940 - isPopoverOpen: openPopoverSlug === item.slug,
941 - onOpenPopover: handleOpenPopover,
942 - onClosePopover: handleClosePopover
943 - }));
944 - }));
945 -};
946 -SidebarCollapsedMenu.propTypes = {
947 - menuItems: _propTypes.default.array.isRequired,
948 - level4Groups: _propTypes.default.object.isRequired,
949 - activeMenuSlug: _propTypes.default.string.isRequired,
950 - activeChildSlug: _propTypes.default.string.isRequired
951 -};
952 -var _default = exports["default"] = SidebarCollapsedMenu;
953 -
954 -/***/ }),
955 -
956 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js":
957 -/*!**********************************************************************************!*\
958 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js ***!
959 - \**********************************************************************************/
960 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
961 -
962 -"use strict";
963 -
964 -
965 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
966 -Object.defineProperty(exports, "__esModule", ({
967 - value: true
968 -}));
969 -var _exportNames = {
970 - SidebarUpgradeCta: true
971 -};
972 -Object.defineProperty(exports, "SidebarUpgradeCta", ({
973 - enumerable: true,
974 - get: function get() {
975 - return _sidebarUpgradeCta.default;
976 - }
977 -}));
978 -var _sidebarUpgradeCta = _interopRequireDefault(__webpack_require__(/*! ./sidebar-upgrade-cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js"));
979 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js");
980 -Object.keys(_styledComponents).forEach(function (key) {
981 - if (key === "default" || key === "__esModule") return;
982 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
983 - if (key in exports && exports[key] === _styledComponents[key]) return;
984 - Object.defineProperty(exports, key, {
985 - enumerable: true,
986 - get: function get() {
987 - return _styledComponents[key];
988 - }
989 - });
990 -});
991 -
992 -/***/ }),
993 -
994 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js":
995 -/*!************************************************************************************************!*\
996 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/sidebar-upgrade-cta.js ***!
997 - \************************************************************************************************/
998 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
999 -
1000 -"use strict";
1001 -
1002 -
1003 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1004 -Object.defineProperty(exports, "__esModule", ({
1005 - value: true
1006 -}));
1007 -exports["default"] = void 0;
1008 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1009 -var _icons = __webpack_require__(/*! @elementor/icons */ "@elementor/icons");
1010 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1011 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js");
1012 -var SidebarUpgradeCta = function SidebarUpgradeCta(_ref) {
1013 - var upgradeUrl = _ref.upgradeUrl,
1014 - upgradeText = _ref.upgradeText,
1015 - hasPro = _ref.hasPro,
1016 - collapsed = _ref.collapsed;
1017 - var isPro = true === hasPro || '1' === hasPro || 'true' === hasPro;
1018 - if (isPro) {
1019 - return null;
1020 - }
1021 - var handleUpgradeClick = function handleUpgradeClick() {
1022 - window.open(upgradeUrl, '_blank');
1023 - };
1024 - if (collapsed) {
1025 - return /*#__PURE__*/_react.default.createElement(_styledComponents.CollapsedCtaContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.CollapsedCtaButton, {
1026 - onClick: handleUpgradeClick
1027 - }, /*#__PURE__*/_react.default.createElement(_icons.CrownFilledIcon, null)));
1028 - }
1029 - return /*#__PURE__*/_react.default.createElement(_styledComponents.CtaContainer, null, /*#__PURE__*/_react.default.createElement(_styledComponents.CtaButton, {
1030 - startIcon: /*#__PURE__*/_react.default.createElement(_icons.CrownFilledIcon, null),
1031 - onClick: handleUpgradeClick,
1032 - variant: "outlined",
1033 - color: "promotion",
1034 - fullWidth: true
1035 - }, upgradeText));
1036 -};
1037 -SidebarUpgradeCta.propTypes = {
1038 - upgradeUrl: _propTypes.default.string.isRequired,
1039 - upgradeText: _propTypes.default.string.isRequired,
1040 - hasPro: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]).isRequired,
1041 - collapsed: _propTypes.default.bool
1042 -};
1043 -var _default = exports["default"] = SidebarUpgradeCta;
1044 -
1045 -/***/ }),
1046 -
1047 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js":
1048 -/*!**********************************************************************************************!*\
1049 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js ***!
1050 - \**********************************************************************************************/
1051 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1052 -
1053 -"use strict";
1054 -
1055 -
1056 -Object.defineProperty(exports, "__esModule", ({
1057 - value: true
1058 -}));
1059 -exports.CtaContainer = exports.CtaButton = exports.CollapsedCtaContainer = exports.CollapsedCtaButton = void 0;
1060 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1061 -var CtaContainer = exports.CtaContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
1062 - var theme = _ref.theme;
1063 - return {
1064 - padding: theme.spacing(2)
1065 - };
1066 -});
1067 -var CtaButton = exports.CtaButton = (0, _ui.styled)(_ui.Button)({
1068 - justifyContent: 'center',
1069 - whiteSpace: 'nowrap'
1070 -});
1071 -var CollapsedCtaContainer = exports.CollapsedCtaContainer = (0, _ui.styled)(_ui.Box)(function (_ref2) {
1072 - var theme = _ref2.theme;
1073 - return {
1074 - padding: theme.spacing(2),
1075 - display: 'flex',
1076 - justifyContent: 'center',
1077 - alignItems: 'center'
1078 - };
1079 -});
1080 -var CollapsedCtaButton = exports.CollapsedCtaButton = (0, _ui.styled)('button')(function (_ref3) {
1081 - var theme = _ref3.theme;
1082 - return {
1083 - border: "1px solid ".concat(theme.palette.promotion.main),
1084 - borderRadius: 999,
1085 - width: 24,
1086 - height: 24,
1087 - padding: 0,
1088 - display: 'flex',
1089 - alignItems: 'center',
1090 - justifyContent: 'center',
1091 - background: 'transparent',
1092 - cursor: 'pointer',
1093 - color: theme.palette.promotion.main,
1094 - transition: 'all 0.2s ease-in-out',
1095 - whiteSpace: 'nowrap',
1096 - '&:hover': {
1097 - background: theme.palette.promotion.hover
1098 - },
1099 - '& svg': {
1100 - width: 18,
1101 - height: 18,
1102 - fill: theme.palette.promotion.main
1103 - }
1104 - };
1105 -});
1106 -
1107 -/***/ }),
1108 -
1109 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js":
1110 -/*!*************************************************************************************!*\
1111 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js ***!
1112 - \*************************************************************************************/
1113 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1114 -
1115 -"use strict";
1116 -
1117 -
1118 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1119 -Object.defineProperty(exports, "__esModule", ({
1120 - value: true
1121 -}));
1122 -var _exportNames = {
1123 - SidebarHeader: true
1124 -};
1125 -Object.defineProperty(exports, "SidebarHeader", ({
1126 - enumerable: true,
1127 - get: function get() {
1128 - return _sidebarHeader.default;
1129 - }
1130 -}));
1131 -var _sidebarHeader = _interopRequireDefault(__webpack_require__(/*! ./sidebar-header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js"));
1132 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js");
1133 -Object.keys(_styledComponents).forEach(function (key) {
1134 - if (key === "default" || key === "__esModule") return;
1135 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1136 - if (key in exports && exports[key] === _styledComponents[key]) return;
1137 - Object.defineProperty(exports, key, {
1138 - enumerable: true,
1139 - get: function get() {
1140 - return _styledComponents[key];
1141 - }
1142 - });
1143 -});
1144 -
1145 -/***/ }),
1146 -
1147 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js":
1148 -/*!**********************************************************************************************!*\
1149 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js ***!
1150 - \**********************************************************************************************/
1151 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1152 -
1153 -"use strict";
1154 -
1155 -
1156 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1157 -Object.defineProperty(exports, "__esModule", ({
1158 - value: true
1159 -}));
1160 -exports["default"] = void 0;
1161 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1162 -var _ChevronRightIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronRightIcon */ "@elementor/icons/ChevronRightIcon"));
1163 -var _SearchIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SearchIcon */ "@elementor/icons/SearchIcon"));
1164 -var _editor = _interopRequireDefault(__webpack_require__(/*! ../icons/editor */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js"));
1165 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1166 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1167 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js");
1168 -var SidebarHeader = function SidebarHeader(_ref) {
1169 - var siteTitle = _ref.siteTitle,
1170 - onCollapse = _ref.onCollapse;
1171 - var finderAction = function finderAction() {
1172 - $e.route('finder');
1173 - };
1174 - 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, {
1175 - variant: "subtitle1"
1176 - }, siteTitle), /*#__PURE__*/_react.default.createElement(_styledComponents.SearchButton, {
1177 - onClick: finderAction
1178 - }, /*#__PURE__*/_react.default.createElement(_SearchIcon.default, null))), /*#__PURE__*/_react.default.createElement(_shared.CollapseButton, {
1179 - onClick: onCollapse,
1180 - size: "small",
1181 - expanded: true
1182 - }, /*#__PURE__*/_react.default.createElement(_ChevronRightIcon.default, null)));
1183 -};
1184 -SidebarHeader.propTypes = {
1185 - siteTitle: _propTypes.default.string.isRequired,
1186 - onCollapse: _propTypes.default.func.isRequired
1187 -};
1188 -var _default = exports["default"] = SidebarHeader;
1189 -
1190 -/***/ }),
1191 -
1192 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js":
1193 -/*!*************************************************************************************************!*\
1194 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js ***!
1195 - \*************************************************************************************************/
1196 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1197 -
1198 -"use strict";
1199 -
1200 -
1201 -Object.defineProperty(exports, "__esModule", ({
1202 - value: true
1203 -}));
1204 -exports.SiteTitle = exports.SearchButton = exports.HeaderContent = exports.HeaderContainer = void 0;
1205 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1206 -var HeaderContainer = exports.HeaderContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
1207 - var theme = _ref.theme;
1208 - return {
1209 - position: 'relative',
1210 - marginLeft: theme.spacing(2),
1211 - marginRight: theme.spacing(2),
1212 - height: 80,
1213 - borderBottom: "1px solid ".concat(theme.palette.divider),
1214 - display: 'flex',
1215 - alignItems: 'center'
1216 - };
1217 -});
1218 -var HeaderContent = exports.HeaderContent = (0, _ui.styled)(_ui.Box)(function (_ref2) {
1219 - var theme = _ref2.theme;
1220 - return {
1221 - display: 'flex',
1222 - alignItems: 'center',
1223 - gap: theme.spacing(1.5),
1224 - flex: 1
1225 - };
1226 -});
1227 -var SiteTitle = exports.SiteTitle = (0, _ui.styled)(_ui.Typography)({
1228 - fontWeight: 500,
1229 - flex: 1
1230 -});
1231 -var SearchButton = exports.SearchButton = (0, _ui.styled)(_ui.IconButton)(function (_ref3) {
1232 - var theme = _ref3.theme;
1233 - return {
1234 - fontSize: 20,
1235 - color: theme.palette.action.active
1236 - };
1237 -});
1238 -
1239 -/***/ }),
1240 -
1241 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js":
1242 -/*!****************************************************************************************************!*\
1243 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js ***!
1244 - \****************************************************************************************************/
1245 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1246 -
1247 -"use strict";
1248 -
1249 -
1250 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1251 -Object.defineProperty(exports, "__esModule", ({
1252 - value: true
1253 -}));
1254 -exports.useAdminMenuOffset = void 0;
1255 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1256 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../../../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
1257 -var ADMIN_MENU_WRAP_ID = 'adminmenuwrap';
1258 -var WPCONTENT_ID = 'wpcontent';
1259 -var EDITOR_ONE_TOP_BAR_ID = 'editor-one-top-bar';
1260 -var WPADMINBAR_ID = 'wpadminbar';
1261 -var INITIALIZED_DATA_ATTR = 'data-editor-one-offset-initialized';
1262 -var WPFOOTER_ID = 'wpfooter';
1263 -var WPBODY_CONTENT_ID = 'wpbody-content';
1264 -var useAdminMenuOffset = exports.useAdminMenuOffset = function useAdminMenuOffset() {
1265 - var cleanupRef = (0, _element.useRef)(null);
1266 - (0, _element.useEffect)(function () {
1267 - var adminMenuWrap = document.getElementById(ADMIN_MENU_WRAP_ID);
1268 - var wpcontent = document.getElementById(WPCONTENT_ID);
1269 - if (!adminMenuWrap || !wpcontent || wpcontent.hasAttribute(INITIALIZED_DATA_ATTR)) {
1270 - return;
1271 - }
1272 - var wpfooter = document.getElementById(WPFOOTER_ID);
1273 - var wpbodyContent = document.getElementById(WPBODY_CONTENT_ID);
1274 - wpbodyContent === null || wpbodyContent === void 0 || wpbodyContent.insertBefore(wpfooter, wpbodyContent.querySelector(':scope > .clear'));
1275 - var wpAdminBar = document.getElementById(WPADMINBAR_ID);
1276 - var updateOffset = function updateOffset() {
1277 - var _document$getElementB, _wpAdminBar$clientHei, _topBarHeader$clientH;
1278 - var topBarHeader = (_document$getElementB = document.getElementById(EDITOR_ONE_TOP_BAR_ID)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.querySelector(':scope > header');
1279 - var isRtlLanguage = (0, _isRtl.default)();
1280 - var rect = adminMenuWrap.getBoundingClientRect();
1281 - var offset = isRtlLanguage ? document.documentElement.clientWidth - rect.left : rect.right;
1282 - var adminBarHeightPx = "".concat((_wpAdminBar$clientHei = wpAdminBar === null || wpAdminBar === void 0 ? void 0 : wpAdminBar.clientHeight) !== null && _wpAdminBar$clientHei !== void 0 ? _wpAdminBar$clientHei : 0, "px");
1283 - var topBarHeaderHeightPx = "".concat((_topBarHeader$clientH = topBarHeader === null || topBarHeader === void 0 ? void 0 : topBarHeader.clientHeight) !== null && _topBarHeader$clientH !== void 0 ? _topBarHeader$clientH : 0, "px");
1284 - wpcontent.style.setProperty('--editor-one-sidebar-left-offset', "".concat(offset, "px"));
1285 - wpcontent.style.setProperty('--e-admin-bar-height', adminBarHeightPx);
1286 - wpcontent.style.setProperty('--e-top-bar-header-height', topBarHeaderHeightPx);
1287 - };
1288 - updateOffset();
1289 - var resizeObserver = new ResizeObserver(updateOffset);
1290 - resizeObserver.observe(wpcontent);
1291 - var topBar = document.getElementById(EDITOR_ONE_TOP_BAR_ID);
1292 - if (topBar) {
1293 - resizeObserver.observe(topBar);
1294 - }
1295 - window.addEventListener('resize', updateOffset);
1296 - wpcontent.setAttribute(INITIALIZED_DATA_ATTR, 'true');
1297 - cleanupRef.current = function () {
1298 - resizeObserver.disconnect();
1299 - window.removeEventListener('resize', updateOffset);
1300 - wpcontent.removeAttribute(INITIALIZED_DATA_ATTR);
1301 - };
1302 - return function () {
1303 - if (cleanupRef.current) {
1304 - cleanupRef.current();
1305 - cleanupRef.current = null;
1306 - }
1307 - };
1308 - }, []);
1309 -};
1310 -
1311 -/***/ }),
1312 -
1313 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js":
1314 -/*!***************************************************************************************************!*\
1315 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js ***!
1316 - \***************************************************************************************************/
1317 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1318 -
1319 -"use strict";
1320 -
1321 -
1322 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1323 -Object.defineProperty(exports, "__esModule", ({
1324 - value: true
1325 -}));
1326 -exports.useSidebarCollapse = void 0;
1327 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1328 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1329 -var STORAGE_KEY = 'elementor_sidebar_collapsed';
1330 -var AUTO_COLLAPSE_BREAKPOINT = 960;
1331 -var TRANSITION_DURATION = 300;
1332 -var useSidebarCollapse = exports.useSidebarCollapse = function useSidebarCollapse() {
1333 - var _useState = (0, _element.useState)(function () {
1334 - var stored = localStorage.getItem(STORAGE_KEY);
1335 - if (null !== stored) {
1336 - return 'true' === stored;
1337 - }
1338 - return window.innerWidth <= AUTO_COLLAPSE_BREAKPOINT;
1339 - }),
1340 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1341 - isCollapsed = _useState2[0],
1342 - setIsCollapsed = _useState2[1];
1343 - (0, _element.useEffect)(function () {
1344 - var mediaQuery = window.matchMedia("(max-width: ".concat(AUTO_COLLAPSE_BREAKPOINT, "px)"));
1345 - var handleResize = function handleResize(e) {
1346 - if (e.matches) {
1347 - setIsCollapsed(true);
1348 - } else {
1349 - var stored = localStorage.getItem(STORAGE_KEY);
1350 - setIsCollapsed('true' === stored);
1351 - }
1352 - };
1353 - mediaQuery.addEventListener('change', handleResize);
1354 - return function () {
1355 - return mediaQuery.removeEventListener('change', handleResize);
1356 - };
1357 - }, []);
1358 - var toggleCollapse = (0, _element.useCallback)(function () {
1359 - var newState = !isCollapsed;
1360 - var body = document.body;
1361 - body.classList.add('e-sidebar-transitioning');
1362 - setIsCollapsed(newState);
1363 - localStorage.setItem(STORAGE_KEY, String(newState));
1364 - setTimeout(function () {
1365 - body.classList.remove('e-sidebar-transitioning');
1366 - }, TRANSITION_DURATION);
1367 - }, [isCollapsed]);
1368 - (0, _element.useEffect)(function () {
1369 - var container = document.getElementById('editor-one-sidebar-navigation');
1370 - var body = document.body;
1371 - if (isCollapsed) {
1372 - container === null || container === void 0 || container.classList.add('e-sidebar-collapsed');
1373 - body.classList.add('e-sidebar-is-collapsed');
1374 - } else {
1375 - container === null || container === void 0 || container.classList.remove('e-sidebar-collapsed');
1376 - body.classList.remove('e-sidebar-is-collapsed');
1377 - }
1378 - }, [isCollapsed]);
1379 - return {
1380 - isCollapsed: isCollapsed,
1381 - toggleCollapse: toggleCollapse
1382 - };
1383 -};
1384 -
1385 -/***/ }),
1386 -
1387 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js":
1388 -/*!*************************************************************************************!*\
1389 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js ***!
1390 - \*************************************************************************************/
1391 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1392 -
1393 -"use strict";
1394 -
1395 -
1396 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1397 -Object.defineProperty(exports, "__esModule", ({
1398 - value: true
1399 -}));
1400 -exports["default"] = void 0;
1401 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1402 -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
1403 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1404 -var EditorIcon = function EditorIcon(props) {
1405 - return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
1406 - width: "22",
1407 - height: "22",
1408 - viewBox: "0 0 22 22",
1409 - fill: "none"
1410 - }, props), /*#__PURE__*/_react.default.createElement("svg", {
1411 - xmlns: "http://www.w3.org/2000/svg"
1412 - }, /*#__PURE__*/_react.default.createElement("path", {
1413 - 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",
1414 - fill: "black",
1415 - fillOpacity: "0.56"
1416 - }), /*#__PURE__*/_react.default.createElement("path", {
1417 - 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",
1418 - fill: "black",
1419 - fillOpacity: "0.56"
1420 - })));
1421 -};
1422 -var _default = exports["default"] = EditorIcon;
1423 -
1424 -/***/ }),
1425 -
1426 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js":
1427 -/*!***********************************************************************************!*\
1428 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js ***!
1429 - \***********************************************************************************/
1430 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1431 -
1432 -"use strict";
1433 -
1434 -
1435 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1436 -Object.defineProperty(exports, "__esModule", ({
1437 - value: true
1438 -}));
1439 -exports["default"] = void 0;
1440 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1441 -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
1442 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1443 -var ToolIcon = function ToolIcon(props) {
1444 - return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
1445 - width: "20",
1446 - height: "20",
1447 - viewBox: "0 0 20 20",
1448 - fill: "none"
1449 - }, props), /*#__PURE__*/_react.default.createElement("path", {
1450 - 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",
1451 - fill: "none",
1452 - stroke: "currentColor",
1453 - strokeWidth: "1.2",
1454 - strokeLinecap: "round",
1455 - strokeLinejoin: "round"
1456 - }));
1457 -};
1458 -var _default = exports["default"] = ToolIcon;
1459 -
1460 -/***/ }),
1461 -
1462 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/index.js":
1463 -/*!******************************************************************************!*\
1464 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/index.js ***!
1465 - \******************************************************************************/
1466 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1467 -
1468 -"use strict";
1469 -
1470 -
1471 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1472 -Object.defineProperty(exports, "__esModule", ({
1473 - value: true
1474 -}));
1475 -var _exportNames = {};
1476 -Object.defineProperty(exports, "default", ({
1477 - enumerable: true,
1478 - get: function get() {
1479 - return _sidebarNavigation.default;
1480 - }
1481 -}));
1482 -var _sidebarNavigation = _interopRequireDefault(__webpack_require__(/*! ./sidebar-navigation */ "../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js"));
1483 -var _shared = __webpack_require__(/*! ./shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1484 -Object.keys(_shared).forEach(function (key) {
1485 - if (key === "default" || key === "__esModule") return;
1486 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1487 - if (key in exports && exports[key] === _shared[key]) return;
1488 - Object.defineProperty(exports, key, {
1489 - enumerable: true,
1490 - get: function get() {
1491 - return _shared[key];
1492 - }
1493 - });
1494 -});
1495 -var _header = __webpack_require__(/*! ./header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js");
1496 -Object.keys(_header).forEach(function (key) {
1497 - if (key === "default" || key === "__esModule") return;
1498 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1499 - if (key in exports && exports[key] === _header[key]) return;
1500 - Object.defineProperty(exports, key, {
1501 - enumerable: true,
1502 - get: function get() {
1503 - return _header[key];
1504 - }
1505 - });
1506 -});
1507 -var _menu = __webpack_require__(/*! ./menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js");
1508 -Object.keys(_menu).forEach(function (key) {
1509 - if (key === "default" || key === "__esModule") return;
1510 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1511 - if (key in exports && exports[key] === _menu[key]) return;
1512 - Object.defineProperty(exports, key, {
1513 - enumerable: true,
1514 - get: function get() {
1515 - return _menu[key];
1516 - }
1517 - });
1518 -});
1519 -var _collapsedMenu = __webpack_require__(/*! ./collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js");
1520 -Object.keys(_collapsedMenu).forEach(function (key) {
1521 - if (key === "default" || key === "__esModule") return;
1522 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1523 - if (key in exports && exports[key] === _collapsedMenu[key]) return;
1524 - Object.defineProperty(exports, key, {
1525 - enumerable: true,
1526 - get: function get() {
1527 - return _collapsedMenu[key];
1528 - }
1529 - });
1530 -});
1531 -var _cta = __webpack_require__(/*! ./cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js");
1532 -Object.keys(_cta).forEach(function (key) {
1533 - if (key === "default" || key === "__esModule") return;
1534 - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1535 - if (key in exports && exports[key] === _cta[key]) return;
1536 - Object.defineProperty(exports, key, {
1537 - enumerable: true,
1538 - get: function get() {
1539 - return _cta[key];
1540 - }
1541 - });
1542 -});
1543 -
1544 -/***/ }),
1545 -
1546 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js":
1547 -/*!***********************************************************************************!*\
1548 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js ***!
1549 - \***********************************************************************************/
1550 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1551 -
1552 -"use strict";
1553 -
1554 -
1555 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1556 -Object.defineProperty(exports, "__esModule", ({
1557 - value: true
1558 -}));
1559 -Object.defineProperty(exports, "SidebarMenu", ({
1560 - enumerable: true,
1561 - get: function get() {
1562 - return _sidebarMenu.default;
1563 - }
1564 -}));
1565 -Object.defineProperty(exports, "SidebarMenuItem", ({
1566 - enumerable: true,
1567 - get: function get() {
1568 - return _sidebarMenuItem.default;
1569 - }
1570 -}));
1571 -var _sidebarMenu = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js"));
1572 -var _sidebarMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js"));
1573 -
1574 -/***/ }),
1575 -
1576 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js":
1577 -/*!***********************************************************************************************!*\
1578 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js ***!
1579 - \***********************************************************************************************/
1580 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1581 -
1582 -"use strict";
1583 -
1584 -
1585 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1586 -Object.defineProperty(exports, "__esModule", ({
1587 - value: true
1588 -}));
1589 -exports["default"] = void 0;
1590 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1591 -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1592 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1593 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1594 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
1595 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1596 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1597 -var STORAGE_KEY_PREFIX = 'elementor_sidebar_menu_expanded_v2_';
1598 -var SidebarMenuItem = function SidebarMenuItem(_ref) {
1599 - var item = _ref.item,
1600 - isActive = _ref.isActive,
1601 - children = _ref.children,
1602 - activeChildSlug = _ref.activeChildSlug;
1603 - var hasChildren = !!(children !== null && children !== void 0 && children.length);
1604 - var IconComponent = _shared.ICON_MAP[item.icon] || _shared.DEFAULT_ICON;
1605 - var _useState = (0, _element.useState)(function () {
1606 - if (!hasChildren) {
1607 - return false;
1608 - }
1609 - var storageKey = "".concat(STORAGE_KEY_PREFIX).concat(item.slug);
1610 - var shouldExpand = children.some(function (child) {
1611 - return child.slug === activeChildSlug;
1612 - });
1613 - if (shouldExpand) {
1614 - localStorage.setItem(storageKey, 'true');
1615 - return true;
1616 - }
1617 - var stored = localStorage.getItem(storageKey);
1618 - if (null === stored) {
1619 - return true;
1620 - }
1621 - return 'true' === stored;
1622 - }),
1623 - _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1624 - isExpanded = _useState2[0],
1625 - setIsExpanded = _useState2[1];
1626 - var handleClick = (0, _element.useCallback)(function () {
1627 - if (hasChildren) {
1628 - var newState = !isExpanded;
1629 - setIsExpanded(newState);
1630 - localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
1631 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuGroupToggled({
1632 - eventId: item.event_id,
1633 - isExpanded: newState
1634 - });
1635 - return;
1636 - }
1637 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
1638 - eventId: item.event_id
1639 - });
1640 - window.location.href = item.url;
1641 - }, [hasChildren, isExpanded, item.event_id, item.slug, item.url]);
1642 - var handleChildClick = (0, _element.useCallback)(function (childItem) {
1643 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
1644 - eventId: childItem.event_id,
1645 - groupEventId: item.event_id
1646 - });
1647 - }, [item.event_id]);
1648 - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
1649 - disablePadding: true,
1650 - dense: true,
1651 - disableGutters: true
1652 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuItemButton, {
1653 - onClick: handleClick,
1654 - selected: isActive && !hasChildren
1655 - }, /*#__PURE__*/_react.default.createElement(_shared.MenuIcon, null, /*#__PURE__*/_react.default.createElement(IconComponent, null)), /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1656 - primary: item.label,
1657 - primaryTypographyProps: {
1658 - variant: 'body2'
1659 - }
1660 - }), hasChildren && /*#__PURE__*/_react.default.createElement(_shared.ExpandIcon, {
1661 - expanded: isExpanded
1662 - }))), hasChildren && /*#__PURE__*/_react.default.createElement(_ui.Collapse, {
1663 - in: isExpanded,
1664 - timeout: "auto",
1665 - unmountOnExit: true
1666 - }, /*#__PURE__*/_react.default.createElement(_ui.List, {
1667 - disablePadding: true
1668 - }, children.map(function (childItem) {
1669 - return /*#__PURE__*/_react.default.createElement(_shared.ChildListItem, {
1670 - key: childItem.slug,
1671 - disablePadding: true,
1672 - dense: true,
1673 - disableGutters: true
1674 - }, /*#__PURE__*/_react.default.createElement(_shared.ChildMenuItemButton, {
1675 - component: "a",
1676 - href: childItem.url,
1677 - onClick: function onClick() {
1678 - return handleChildClick(childItem);
1679 - },
1680 - selected: childItem.slug === activeChildSlug
1681 - }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1682 - primary: childItem.label,
1683 - primaryTypographyProps: {
1684 - variant: 'body2',
1685 - color: 'text.secondary'
1686 - }
1687 - })));
1688 - }))));
1689 -};
1690 -SidebarMenuItem.propTypes = {
1691 - item: _propTypes.default.object.isRequired,
1692 - isActive: _propTypes.default.bool.isRequired,
1693 - children: _propTypes.default.array,
1694 - activeChildSlug: _propTypes.default.string.isRequired
1695 -};
1696 -var _default = exports["default"] = SidebarMenuItem;
1697 -
1698 -/***/ }),
1699 -
1700 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js":
1701 -/*!******************************************************************************************!*\
1702 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js ***!
1703 - \******************************************************************************************/
1704 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1705 -
1706 -"use strict";
1707 -
1708 -
1709 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1710 -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
1711 -Object.defineProperty(exports, "__esModule", ({
1712 - value: true
1713 -}));
1714 -exports["default"] = void 0;
1715 -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
1716 -var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1717 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1718 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1719 -var _menuActiveStateResolver = _interopRequireDefault(__webpack_require__(/*! ../../classes/menu-active-state-resolver */ "../modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js"));
1720 -var _sidebarMenuItem = _interopRequireDefault(__webpack_require__(/*! ./sidebar-menu-item */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js"));
1721 -var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1722 -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); }
1723 -var SidebarMenu = function SidebarMenu(_ref) {
1724 - var menuItems = _ref.menuItems,
1725 - level4Groups = _ref.level4Groups,
1726 - activeMenuSlug = _ref.activeMenuSlug,
1727 - activeChildSlug = _ref.activeChildSlug;
1728 - var activeStateResolver = (0, _element.useMemo)(function () {
1729 - return new _menuActiveStateResolver.default(activeMenuSlug, activeChildSlug);
1730 - }, [activeMenuSlug, activeChildSlug]);
1731 - var getChildren = function getChildren(item) {
1732 - if (!item.group_id) {
1733 - return null;
1734 - }
1735 - var group = level4Groups[item.group_id];
1736 - if (!group || !group.items || !group.items.length) {
1737 - return null;
1738 - }
1739 - return group.items;
1740 - };
1741 - return /*#__PURE__*/_react.default.createElement(_shared.MenuList, null, menuItems.map(function (item) {
1742 - return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
1743 - key: item.slug
1744 - }, item.has_divider_before && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
1745 - sx: {
1746 - my: 1
1747 - }
1748 - }), /*#__PURE__*/_react.default.createElement(_sidebarMenuItem.default, {
1749 - item: item,
1750 - isActive: activeStateResolver.isMenuActive(item),
1751 - activeChildSlug: activeChildSlug
1752 - }, getChildren(item)));
1753 - }));
1754 -};
1755 -SidebarMenu.propTypes = {
1756 - menuItems: _propTypes.default.array.isRequired,
1757 - level4Groups: _propTypes.default.object.isRequired,
1758 - activeMenuSlug: _propTypes.default.string.isRequired,
1759 - activeChildSlug: _propTypes.default.string.isRequired
1760 -};
1761 -var _default = exports["default"] = SidebarMenu;
1762 -
1763 -/***/ }),
1764 -
1765 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js":
1766 -/*!****************************************************************************************!*\
1767 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js ***!
1768 - \****************************************************************************************/
1769 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1770 -
1771 -"use strict";
1772 -
1773 -
1774 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1775 -Object.defineProperty(exports, "__esModule", ({
1776 - value: true
1777 -}));
1778 -exports.ICON_MAP = exports.DEFAULT_ICON = void 0;
1779 -var _AdjustmentsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/AdjustmentsIcon */ "@elementor/icons/AdjustmentsIcon"));
1780 -var _FolderIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/FolderIcon */ "@elementor/icons/FolderIcon"));
1781 -var _RocketIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/RocketIcon */ "@elementor/icons/RocketIcon"));
1782 -var _HomeIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/HomeIcon */ "@elementor/icons/HomeIcon"));
1783 -var _SendIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SendIcon */ "@elementor/icons/SendIcon"));
1784 -var _SettingsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SettingsIcon */ "@elementor/icons/SettingsIcon"));
1785 -var _UsersIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/UsersIcon */ "@elementor/icons/UsersIcon"));
1786 -var _PlugIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/PlugIcon */ "@elementor/icons/PlugIcon"));
1787 -var _tool = _interopRequireDefault(__webpack_require__(/*! ../icons/tool */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/tool.js"));
1788 -var _FileSettingsIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/FileSettingsIcon */ "@elementor/icons/FileSettingsIcon"));
1789 -var ICON_MAP = exports.ICON_MAP = {
1790 - adjustments: _AdjustmentsIcon.default,
1791 - folder: _FolderIcon.default,
1792 - home: _RocketIcon.default,
1793 - send: _SendIcon.default,
1794 - settings: _SettingsIcon.default,
1795 - tool: _tool.default,
1796 - users: _UsersIcon.default,
1797 - extension: _PlugIcon.default,
1798 - 'file-settings': _FileSettingsIcon.default
1799 -};
1800 -var DEFAULT_ICON = exports.DEFAULT_ICON = _HomeIcon.default;
1801 -
1802 -/***/ }),
1803 -
1804 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js":
1805 -/*!*************************************************************************************!*\
1806 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js ***!
1807 - \*************************************************************************************/
1808 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1809 -
1810 -"use strict";
1811 -
1812 -
1813 -Object.defineProperty(exports, "__esModule", ({
1814 - value: true
1815 -}));
1816 -var _iconMap = __webpack_require__(/*! ./icon-map */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js");
1817 -Object.keys(_iconMap).forEach(function (key) {
1818 - if (key === "default" || key === "__esModule") return;
1819 - if (key in exports && exports[key] === _iconMap[key]) return;
1820 - Object.defineProperty(exports, key, {
1821 - enumerable: true,
1822 - get: function get() {
1823 - return _iconMap[key];
1824 - }
1825 - });
1826 -});
1827 -var _styledComponents = __webpack_require__(/*! ./styled-components */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js");
1828 -Object.keys(_styledComponents).forEach(function (key) {
1829 - if (key === "default" || key === "__esModule") return;
1830 - if (key in exports && exports[key] === _styledComponents[key]) return;
1831 - Object.defineProperty(exports, key, {
1832 - enumerable: true,
1833 - get: function get() {
1834 - return _styledComponents[key];
1835 - }
1836 - });
1837 -});
1838 -
1839 -/***/ }),
1840 -
1841 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js":
1842 -/*!*************************************************************************************************!*\
1843 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js ***!
1844 - \*************************************************************************************************/
1845 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1846 -
1847 -"use strict";
1848 -
1849 -
1850 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1851 -Object.defineProperty(exports, "__esModule", ({
1852 - value: true
1853 -}));
1854 -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;
1855 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1856 -var _ChevronDownSmallIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronDownSmallIcon */ "@elementor/icons/ChevronDownSmallIcon"));
1857 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../../../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
1858 -var NavContainer = exports.NavContainer = (0, _ui.styled)(_ui.Box)(function (_ref) {
1859 - var theme = _ref.theme;
1860 - return {
1861 - display: 'flex',
1862 - flexDirection: 'column',
1863 - height: '100%',
1864 - backgroundColor: theme.palette.background.paper,
1865 - borderInlineEnd: "1px solid ".concat(theme.palette.divider)
1866 - };
1867 -});
1868 -var SiteIconBox = exports.SiteIconBox = (0, _ui.styled)(_ui.Box)(function (_ref2) {
1869 - var theme = _ref2.theme;
1870 - return {
1871 - width: 40,
1872 - height: 40,
1873 - borderRadius: theme.shape.borderRadius * 2,
1874 - border: "1px solid ".concat(theme.palette.divider),
1875 - display: 'flex',
1876 - alignItems: 'center',
1877 - justifyContent: 'center',
1878 - backgroundColor: theme.palette.background.paper,
1879 - color: theme.palette.action.active,
1880 - '& svg': {
1881 - fontSize: 24
1882 - }
1883 - };
1884 -});
1885 -var CollapseButton = exports.CollapseButton = (0, _ui.styled)(_ui.IconButton, {
1886 - shouldForwardProp: function shouldForwardProp(prop) {
1887 - return prop !== 'expanded';
1888 - }
1889 -})(function (_ref3) {
1890 - var theme = _ref3.theme,
1891 - expanded = _ref3.expanded;
1892 - var isRtlLanguage = (0, _isRtl.default)();
1893 - var transform = 'none';
1894 - if (expanded && isRtlLanguage) {
1895 - transform = 'rotate(180deg) scaleX(-1)';
1896 - } else if (expanded) {
1897 - transform = 'rotate(180deg)';
1898 - } else if (isRtlLanguage) {
1899 - transform = 'scaleX(-1)';
1900 - }
1901 - return {
1902 - position: 'absolute',
1903 - insetInlineEnd: -28,
1904 - bottom: -12,
1905 - width: 24,
1906 - height: 24,
1907 - backgroundColor: theme.palette.background.paper,
1908 - border: "1px solid ".concat(theme.palette.divider),
1909 - color: theme.palette.action.active,
1910 - zIndex: 1,
1911 - '&:hover': {
1912 - backgroundColor: theme.palette.background.paper
1913 - },
1914 - '& svg': {
1915 - fontSize: 16,
1916 - transform: transform
1917 - }
1918 - };
1919 -});
1920 -var ScrollableContent = exports.ScrollableContent = (0, _ui.styled)(_ui.Box)({
1921 - flex: 1,
1922 - overflowY: 'auto',
1923 - overflowX: 'hidden'
1924 -});
1925 -var MenuList = exports.MenuList = (0, _ui.styled)(_ui.List)(function (_ref4) {
1926 - var theme = _ref4.theme;
1927 - return {
1928 - padding: theme.spacing(2)
1929 - };
1930 -});
1931 -var MenuItemButton = exports.MenuItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref5) {
1932 - var theme = _ref5.theme;
1933 - return {
1934 - paddingLeft: theme.spacing(1),
1935 - paddingRight: theme.spacing(1),
1936 - marginBottom: 0,
1937 - paddingBottom: theme.spacing(0.5),
1938 - whiteSpace: 'nowrap',
1939 - justifyContent: 'center',
1940 - borderRadius: 4
1941 - };
1942 -});
1943 -var MenuIcon = exports.MenuIcon = (0, _ui.styled)(_ui.ListItemIcon)(function (_ref6) {
1944 - var theme = _ref6.theme;
1945 - return {
1946 - minWidth: 'auto',
1947 - color: theme.palette.text.primary,
1948 - margin: 0,
1949 - display: 'flex',
1950 - justifyContent: 'center',
1951 - '& svg': {
1952 - fontSize: 20
1953 - }
1954 - };
1955 -});
1956 -var ChildMenuItemButton = exports.ChildMenuItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref7) {
1957 - var theme = _ref7.theme;
1958 - return {
1959 - paddingLeft: theme.spacing(6),
1960 - paddingRight: theme.spacing(2),
1961 - minHeight: 32,
1962 - whiteSpace: 'nowrap',
1963 - borderRadius: 4
1964 - };
1965 -});
1966 -var ChildListItem = exports.ChildListItem = (0, _ui.styled)(_ui.ListItem)({
1967 - maxHeight: 32
1968 -});
1969 -var ExpandIcon = exports.ExpandIcon = (0, _ui.styled)(_ChevronDownSmallIcon.default, {
1970 - shouldForwardProp: function shouldForwardProp(prop) {
1971 - return prop !== 'expanded';
1972 - }
1973 -})(function (_ref8) {
1974 - var expanded = _ref8.expanded;
1975 - return {
1976 - fontSize: 20,
1977 - transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)',
1978 - transition: 'transform 0.2s'
1979 - };
1980 -});
1981 -var CollapsedMenuItemContainer = exports.CollapsedMenuItemContainer = (0, _ui.styled)(_ui.Box)(function (_ref9) {
1982 - var theme = _ref9.theme;
1983 - return {
1984 - display: 'flex',
1985 - justifyContent: 'center',
1986 - marginBottom: theme.spacing(0.5)
1987 - };
1988 -});
1989 -var CollapsedIconButton = exports.CollapsedIconButton = (0, _ui.styled)(_ui.IconButton, {
1990 - shouldForwardProp: function shouldForwardProp(prop) {
1991 - return prop !== 'isHighlighted';
1992 - }
1993 -})(function (_ref0) {
1994 - var theme = _ref0.theme,
1995 - isHighlighted = _ref0.isHighlighted;
1996 - return {
1997 - width: 36,
1998 - height: 36,
1999 - borderRadius: theme.shape.borderRadius,
2000 - backgroundColor: isHighlighted ? theme.palette.action.selected : 'transparent',
2001 - color: theme.palette.text.primary,
2002 - '&:hover': {
2003 - backgroundColor: theme.palette.action.hover
2004 - },
2005 - '& svg': {
2006 - fontSize: 20
2007 - }
2008 - };
2009 -});
2010 -var PopoverTitle = exports.PopoverTitle = (0, _ui.styled)(_ui.ListSubheader)(function (_ref1) {
2011 - var theme = _ref1.theme;
2012 - return {
2013 - color: theme.palette.text.tertiary,
2014 - fontSize: 12,
2015 - fontWeight: 400,
2016 - height: 28
2017 - };
2018 -});
2019 -var PopoverContent = exports.PopoverContent = (0, _ui.styled)(_ui.Box)(function (_ref10) {
2020 - var theme = _ref10.theme;
2021 - return {
2022 - paddingTop: theme.spacing(1),
2023 - paddingBottom: theme.spacing(1)
2024 - };
2025 -});
2026 -var CollapsedHeaderContainer = exports.CollapsedHeaderContainer = (0, _ui.styled)(_ui.Box)(function (_ref11) {
2027 - var theme = _ref11.theme;
2028 - return {
2029 - position: 'relative',
2030 - display: 'flex',
2031 - justifyContent: 'center',
2032 - alignItems: 'center',
2033 - height: 80,
2034 - marginLeft: theme.spacing(2),
2035 - marginRight: theme.spacing(2),
2036 - borderBottom: "1px solid ".concat(theme.palette.divider)
2037 - };
2038 -});
2039 -var PopoverListItemButton = exports.PopoverListItemButton = (0, _ui.styled)(_ui.ListItemButton)(function (_ref12) {
2040 - var theme = _ref12.theme;
2041 - return {
2042 - paddingLeft: theme.spacing(2),
2043 - paddingRight: theme.spacing(2),
2044 - paddingTop: theme.spacing(0.5),
2045 - paddingBottom: theme.spacing(0.5),
2046 - borderRadius: 4
2047 - };
2048 -});
2049 -var StyledPopover = exports.StyledPopover = (0, _ui.styled)(_ui.Popover)(function (_ref13) {
2050 - var theme = _ref13.theme;
2051 - return {
2052 - pointerEvents: 'none',
2053 - '& .MuiPaper-root': {
2054 - marginLeft: theme.spacing(1),
2055 - minWidth: 180,
2056 - borderRadius: theme.shape.borderRadius,
2057 - pointerEvents: 'auto'
2058 - }
2059 - };
2060 -});
2061 -
2062 -/***/ }),
2063 -
2064 -/***/ "../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js":
2065 -/*!*******************************************************************************************!*\
2066 - !*** ../modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js ***!
2067 - \*******************************************************************************************/
2068 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2069 -
2070 -"use strict";
2071 -
2072 -
2073 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2074 -Object.defineProperty(exports, "__esModule", ({
2075 - value: true
2076 -}));
2077 -exports["default"] = void 0;
2078 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
2079 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
2080 -var _ChevronRightIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/ChevronRightIcon */ "@elementor/icons/ChevronRightIcon"));
2081 -var _editor = _interopRequireDefault(__webpack_require__(/*! ./icons/editor */ "../modules/editor-one/assets/js/sidebar-navigation/components/icons/editor.js"));
2082 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
2083 -var _collapsedMenu = __webpack_require__(/*! ./collapsed-menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/index.js");
2084 -var _cta = __webpack_require__(/*! ./cta */ "../modules/editor-one/assets/js/sidebar-navigation/components/cta/index.js");
2085 -var _header = __webpack_require__(/*! ./header */ "../modules/editor-one/assets/js/sidebar-navigation/components/header/index.js");
2086 -var _menu = __webpack_require__(/*! ./menu */ "../modules/editor-one/assets/js/sidebar-navigation/components/menu/index.js");
2087 -var _shared = __webpack_require__(/*! ./shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
2088 -var _useSidebarCollapse2 = __webpack_require__(/*! ./hooks/use-sidebar-collapse */ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-sidebar-collapse.js");
2089 -var _useAdminMenuOffset = __webpack_require__(/*! ./hooks/use-admin-menu-offset */ "../modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js");
2090 -var SidebarNavigation = function SidebarNavigation(_ref) {
2091 - var config = _ref.config;
2092 - var _useSidebarCollapse = (0, _useSidebarCollapse2.useSidebarCollapse)(),
2093 - isCollapsed = _useSidebarCollapse.isCollapsed,
2094 - toggleCollapse = _useSidebarCollapse.toggleCollapse;
2095 - (0, _useAdminMenuOffset.useAdminMenuOffset)();
2096 - if (isCollapsed) {
2097 - return /*#__PURE__*/_react.default.createElement(_shared.NavContainer, {
2098 - component: "nav",
2099 - collapsed: true
2100 - }, /*#__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, {
2101 - onClick: toggleCollapse,
2102 - size: "small"
2103 - }, /*#__PURE__*/_react.default.createElement(_ChevronRightIcon.default, null))), /*#__PURE__*/_react.default.createElement(_shared.ScrollableContent, null, /*#__PURE__*/_react.default.createElement(_collapsedMenu.SidebarCollapsedMenu, {
2104 - menuItems: config.menuItems,
2105 - level4Groups: config.level4Groups,
2106 - activeMenuSlug: config.activeMenuSlug,
2107 - activeChildSlug: config.activeChildSlug
2108 - })), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_cta.SidebarUpgradeCta, {
2109 - upgradeUrl: config.upgradeUrl,
2110 - upgradeText: config.upgradeText,
2111 - hasPro: config.hasPro,
2112 - collapsed: true
2113 - }));
2114 - }
2115 - return /*#__PURE__*/_react.default.createElement(_shared.NavContainer, {
2116 - component: "nav"
2117 - }, /*#__PURE__*/_react.default.createElement(_header.SidebarHeader, {
2118 - siteTitle: config.siteTitle,
2119 - onCollapse: toggleCollapse
2120 - }), /*#__PURE__*/_react.default.createElement(_shared.ScrollableContent, null, /*#__PURE__*/_react.default.createElement(_menu.SidebarMenu, {
2121 - menuItems: config.menuItems,
2122 - level4Groups: config.level4Groups,
2123 - activeMenuSlug: config.activeMenuSlug,
2124 - activeChildSlug: config.activeChildSlug
2125 - })), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), /*#__PURE__*/_react.default.createElement(_cta.SidebarUpgradeCta, {
2126 - upgradeUrl: config.upgradeUrl,
2127 - upgradeText: config.upgradeText,
2128 - hasPro: config.hasPro
2129 - }));
2130 -};
2131 -SidebarNavigation.propTypes = {
2132 - config: _propTypes.default.object.isRequired
2133 -};
2134 -var _default = exports["default"] = SidebarNavigation;
2135 -
2136 -/***/ }),
2137 -
2138 -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2139 -/*!******************************************************************!*\
2140 - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2141 - \******************************************************************/
2142 -/***/ ((module) => {
2143 -
2144 -function _arrayLikeToArray(r, a) {
2145 - (null == a || a > r.length) && (a = r.length);
2146 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2147 - return n;
2148 -}
2149 -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2150 -
2151 -/***/ }),
2152 -
2153 -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2154 -/*!****************************************************************!*\
2155 - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2156 - \****************************************************************/
2157 -/***/ ((module) => {
2158 -
2159 -function _arrayWithHoles(r) {
2160 - if (Array.isArray(r)) return r;
2161 -}
2162 -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2163 -
2164 -/***/ }),
2165 -
2166 -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2167 -/*!****************************************************************!*\
2168 - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2169 - \****************************************************************/
2170 -/***/ ((module) => {
2171 -
2172 -function _classCallCheck(a, n) {
2173 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2174 -}
2175 -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2176 -
2177 -/***/ }),
2178 -
2179 -/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2180 -/*!*************************************************************!*\
2181 - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2182 - \*************************************************************/
2183 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2184 -
2185 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2186 -function _defineProperties(e, r) {
2187 - for (var t = 0; t < r.length; t++) {
2188 - var o = r[t];
2189 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2190 - }
2191 -}
2192 -function _createClass(e, r, t) {
2193 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2194 - writable: !1
2195 - }), e;
2196 -}
2197 -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2198 -
2199 -/***/ }),
2200 -
2201 -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2202 -/*!****************************************************************!*\
2203 - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2204 - \****************************************************************/
2205 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2206 -
2207 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2208 -function _defineProperty(e, r, t) {
2209 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2210 - value: t,
2211 - enumerable: !0,
2212 - configurable: !0,
2213 - writable: !0
2214 - }) : e[r] = t, e;
2215 -}
2216 -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2217 -
2218 -/***/ }),
2219 -
2220 -/***/ "../node_modules/@babel/runtime/helpers/extends.js":
2221 -/*!*********************************************************!*\
2222 - !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
2223 - \*********************************************************/
2224 -/***/ ((module) => {
2225 -
2226 -function _extends() {
2227 - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
2228 - for (var e = 1; e < arguments.length; e++) {
2229 - var t = arguments[e];
2230 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2231 - }
2232 - return n;
2233 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
2234 -}
2235 -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
2236 -
2237 -/***/ }),
2238 -
2239 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2240 -/*!***********************************************************************!*\
2241 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2242 - \***********************************************************************/
2243 -/***/ ((module) => {
2244 -
2245 -function _interopRequireDefault(e) {
2246 - return e && e.__esModule ? e : {
2247 - "default": e
2248 - };
2249 -}
2250 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2251 -
2252 -/***/ }),
2253 -
2254 -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2255 -/*!**********************************************************************!*\
2256 - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2257 - \**********************************************************************/
2258 -/***/ ((module) => {
2259 -
2260 -function _iterableToArrayLimit(r, l) {
2261 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2262 - if (null != t) {
2263 - var e,
2264 - n,
2265 - i,
2266 - u,
2267 - a = [],
2268 - f = !0,
2269 - o = !1;
2270 - try {
2271 - if (i = (t = t.call(r)).next, 0 === l) {
2272 - if (Object(t) !== t) return;
2273 - f = !1;
2274 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2275 - } catch (r) {
2276 - o = !0, n = r;
2277 - } finally {
2278 - try {
2279 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2280 - } finally {
2281 - if (o) throw n;
2282 - }
2283 - }
2284 - return a;
2285 - }
2286 -}
2287 -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2288 -
2289 -/***/ }),
2290 -
2291 -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2292 -/*!*****************************************************************!*\
2293 - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2294 - \*****************************************************************/
2295 -/***/ ((module) => {
2296 -
2297 -function _nonIterableRest() {
2298 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2299 -}
2300 -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2301 -
2302 -/***/ }),
2303 -
2304 -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2305 -/*!***************************************************************!*\
2306 - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2307 - \***************************************************************/
2308 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2309 -
2310 -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2311 -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2312 -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2313 -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2314 -function _slicedToArray(r, e) {
2315 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2316 -}
2317 -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2318 -
2319 -/***/ }),
2320 -
2321 -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2322 -/*!*************************************************************!*\
2323 - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2324 - \*************************************************************/
2325 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2326 -
2327 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2328 -function toPrimitive(t, r) {
2329 - if ("object" != _typeof(t) || !t) return t;
2330 - var e = t[Symbol.toPrimitive];
2331 - if (void 0 !== e) {
2332 - var i = e.call(t, r || "default");
2333 - if ("object" != _typeof(i)) return i;
2334 - throw new TypeError("@@toPrimitive must return a primitive value.");
2335 - }
2336 - return ("string" === r ? String : Number)(t);
2337 -}
2338 -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2339 -
2340 -/***/ }),
2341 -
2342 -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2343 -/*!***************************************************************!*\
2344 - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2345 - \***************************************************************/
2346 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2347 -
2348 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2349 -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2350 -function toPropertyKey(t) {
2351 - var i = toPrimitive(t, "string");
2352 - return "symbol" == _typeof(i) ? i : i + "";
2353 -}
2354 -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2355 -
2356 -/***/ }),
2357 -
2358 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2359 -/*!********************************************************!*\
2360 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2361 - \********************************************************/
2362 -/***/ ((module) => {
2363 -
2364 -function _typeof(o) {
2365 - "@babel/helpers - typeof";
2366 -
2367 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2368 - return typeof o;
2369 - } : function (o) {
2370 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2371 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
2372 -}
2373 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2374 -
2375 -/***/ }),
2376 -
2377 -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2378 -/*!****************************************************************************!*\
2379 - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2380 - \****************************************************************************/
2381 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2382 -
2383 -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2384 -function _unsupportedIterableToArray(r, a) {
2385 - if (r) {
2386 - if ("string" == typeof r) return arrayLikeToArray(r, a);
2387 - var t = {}.toString.call(r).slice(8, -1);
2388 - 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;
2389 - }
2390 -}
2391 -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2392 -
2393 -/***/ }),
2394 -
2395 -/***/ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js":
2396 -/*!*************************************************************************************!*\
2397 - !*** ../node_modules/@wordpress/element/build-module/create-interpolate-element.js ***!
2398 - \*************************************************************************************/
2399 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2400 -
2401 -"use strict";
2402 -__webpack_require__.r(__webpack_exports__);
2403 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2404 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2405 -/* harmony export */ });
2406 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
2407 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
334 +//#endregion
335 +//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
2408 336 /**
2409 - * Internal dependencies
2410 - */
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 + }));
2411 346
347 +//#endregion
348 +//#region node_modules/prop-types/lib/has.js
349 + var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
350 + module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
351 + }));
2412 352
353 +//#endregion
354 +//#region node_modules/prop-types/checkPropTypes.js
2413 355 /**
2414 - * Object containing a React element.
2415 - *
2416 - * @typedef {import('react').ReactElement} Element
2417 - */
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 + }));
2418 415
2419 -let indoc, offset, output, stack;
2420 -
416 +//#endregion
417 +//#region node_modules/prop-types/factoryWithTypeCheckers.js
2421 418 /**
2422 - * Matches tags in the localized string
2423 - *
2424 - * This is used for extracting the tag pattern groups for parsing the localized
2425 - * string and along with the map converting it to a react element.
2426 - *
2427 - * There are four references extracted using this tokenizer:
2428 - *
2429 - * match: Full match of the tag (i.e. <strong>, </strong>, <br/>)
2430 - * isClosing: The closing slash, if it exists.
2431 - * name: The name portion of the tag (strong, br) (if )
2432 - * isSelfClosed: The slash on a self closing tag, if it exists.
2433 - *
2434 - * @type {RegExp}
2435 - */
2436 -const tokenizer = /<(\/)?(\w+)\s*(\/)?>/g;
419 + * Copyright (c) 2013-present, Facebook, Inc.
420 + *
421 + * This source code is licensed under the MIT license found in the
422 + * LICENSE file in the root directory of this source tree.
423 + */
424 + var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
425 + var ReactIs = require_react_is();
426 + var assign = require_object_assign();
427 + var ReactPropTypesSecret = require_ReactPropTypesSecret();
428 + var has = require_has();
429 + var checkPropTypes = require_checkPropTypes();
430 + var printWarning = function() {};
431 + printWarning = function(text) {
432 + var message = "Warning: " + text;
433 + if (typeof console !== "undefined") console.error(message);
434 + try {
435 + throw new Error(message);
436 + } catch (x) {}
437 + };
438 + function emptyFunctionThatReturnsNull() {
439 + return null;
440 + }
441 + module.exports = function(isValidElement, throwOnDirectAccess) {
442 + var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
443 + var FAUX_ITERATOR_SYMBOL = "@@iterator";
444 + /**
445 + * Returns the iterator method function contained on the iterable object.
446 + *
447 + * Be sure to invoke the function with the iterable as context:
448 + *
449 + * var iteratorFn = getIteratorFn(myIterable);
450 + * if (iteratorFn) {
451 + * var iterator = iteratorFn.call(myIterable);
452 + * ...
453 + * }
454 + *
455 + * @param {?object} maybeIterable
456 + * @return {?function}
457 + */
458 + function getIteratorFn(maybeIterable) {
459 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
460 + if (typeof iteratorFn === "function") return iteratorFn;
461 + }
462 + /**
463 + * Collection of methods that allow declaration and validation of props that are
464 + * supplied to React components. Example usage:
465 + *
466 + * var Props = require('ReactPropTypes');
467 + * var MyArticle = React.createClass({
468 + * propTypes: {
469 + * // An optional string prop named "description".
470 + * description: Props.string,
471 + *
472 + * // A required enum prop named "category".
473 + * category: Props.oneOf(['News','Photos']).isRequired,
474 + *
475 + * // A prop named "dialog" that requires an instance of Dialog.
476 + * dialog: Props.instanceOf(Dialog).isRequired
477 + * },
478 + * render: function() { ... }
479 + * });
480 + *
481 + * A more formal specification of how these methods are used:
482 + *
483 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
484 + * decl := ReactPropTypes.{type}(.isRequired)?
485 + *
486 + * Each and every declaration produces a function with the same signature. This
487 + * allows the creation of custom validation functions. For example:
488 + *
489 + * var MyLink = React.createClass({
490 + * propTypes: {
491 + * // An optional string or URI prop named "href".
492 + * href: function(props, propName, componentName) {
493 + * var propValue = props[propName];
494 + * if (propValue != null && typeof propValue !== 'string' &&
495 + * !(propValue instanceof URI)) {
496 + * return new Error(
497 + * 'Expected a string or an URI for ' + propName + ' in ' +
498 + * componentName
499 + * );
500 + * }
501 + * }
502 + * },
503 + * render: function() {...}
504 + * });
505 + *
506 + * @internal
507 + */
508 + var ANONYMOUS = "<<anonymous>>";
509 + var ReactPropTypes = {
510 + array: createPrimitiveTypeChecker("array"),
511 + bigint: createPrimitiveTypeChecker("bigint"),
512 + bool: createPrimitiveTypeChecker("boolean"),
513 + func: createPrimitiveTypeChecker("function"),
514 + number: createPrimitiveTypeChecker("number"),
515 + object: createPrimitiveTypeChecker("object"),
516 + string: createPrimitiveTypeChecker("string"),
517 + symbol: createPrimitiveTypeChecker("symbol"),
518 + any: createAnyTypeChecker(),
519 + arrayOf: createArrayOfTypeChecker,
520 + element: createElementTypeChecker(),
521 + elementType: createElementTypeTypeChecker(),
522 + instanceOf: createInstanceTypeChecker,
523 + node: createNodeChecker(),
524 + objectOf: createObjectOfTypeChecker,
525 + oneOf: createEnumTypeChecker,
526 + oneOfType: createUnionTypeChecker,
527 + shape: createShapeTypeChecker,
528 + exact: createStrictShapeTypeChecker
529 + };
530 + /**
531 + * inlined Object.is polyfill to avoid requiring consumers ship their own
532 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
533 + */
534 + function is(x, y) {
535 + if (x === y) return x !== 0 || 1 / x === 1 / y;
536 + else return x !== x && y !== y;
537 + }
538 + /**
539 + * We use an Error-like object for backward compatibility as people may call
540 + * PropTypes directly and inspect their output. However, we don't use real
541 + * Errors anymore. We don't inspect their stack anyway, and creating them
542 + * is prohibitively expensive if they are created too often, such as what
543 + * happens in oneOfType() for any type before the one that matched.
544 + */
545 + function PropTypeError(message, data) {
546 + this.message = message;
547 + this.data = data && typeof data === "object" ? data : {};
548 + this.stack = "";
549 + }
550 + PropTypeError.prototype = Error.prototype;
551 + function createChainableTypeChecker(validate) {
552 + var manualPropTypeCallCache = {};
553 + var manualPropTypeWarningCount = 0;
554 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
555 + componentName = componentName || ANONYMOUS;
556 + propFullName = propFullName || propName;
557 + if (secret !== ReactPropTypesSecret) {
558 + if (throwOnDirectAccess) {
559 + var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
560 + err.name = "Invariant Violation";
561 + throw err;
562 + } else if (typeof console !== "undefined") {
563 + var cacheKey = componentName + ":" + propName;
564 + if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
565 + printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
566 + manualPropTypeCallCache[cacheKey] = true;
567 + manualPropTypeWarningCount++;
568 + }
569 + }
570 + }
571 + if (props[propName] == null) {
572 + if (isRequired) {
573 + if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
574 + return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
575 + }
576 + return null;
577 + } else return validate(props, propName, componentName, location, propFullName);
578 + }
579 + var chainedCheckType = checkType.bind(null, false);
580 + chainedCheckType.isRequired = checkType.bind(null, true);
581 + return chainedCheckType;
582 + }
583 + function createPrimitiveTypeChecker(expectedType) {
584 + function validate(props, propName, componentName, location, propFullName, secret) {
585 + var propValue = props[propName];
586 + if (getPropType(propValue) !== expectedType) {
587 + var preciseType = getPreciseType(propValue);
588 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
589 + }
590 + return null;
591 + }
592 + return createChainableTypeChecker(validate);
593 + }
594 + function createAnyTypeChecker() {
595 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
596 + }
597 + function createArrayOfTypeChecker(typeChecker) {
598 + function validate(props, propName, componentName, location, propFullName) {
599 + if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
600 + var propValue = props[propName];
601 + if (!Array.isArray(propValue)) {
602 + var propType = getPropType(propValue);
603 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
604 + }
605 + for (var i = 0; i < propValue.length; i++) {
606 + var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
607 + if (error instanceof Error) return error;
608 + }
609 + return null;
610 + }
611 + return createChainableTypeChecker(validate);
612 + }
613 + function createElementTypeChecker() {
614 + function validate(props, propName, componentName, location, propFullName) {
615 + var propValue = props[propName];
616 + if (!isValidElement(propValue)) {
617 + var propType = getPropType(propValue);
618 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
619 + }
620 + return null;
621 + }
622 + return createChainableTypeChecker(validate);
623 + }
624 + function createElementTypeTypeChecker() {
625 + function validate(props, propName, componentName, location, propFullName) {
626 + var propValue = props[propName];
627 + if (!ReactIs.isValidElementType(propValue)) {
628 + var propType = getPropType(propValue);
629 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
630 + }
631 + return null;
632 + }
633 + return createChainableTypeChecker(validate);
634 + }
635 + function createInstanceTypeChecker(expectedClass) {
636 + function validate(props, propName, componentName, location, propFullName) {
637 + if (!(props[propName] instanceof expectedClass)) {
638 + var expectedClassName = expectedClass.name || ANONYMOUS;
639 + var actualClassName = getClassName(props[propName]);
640 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
641 + }
642 + return null;
643 + }
644 + return createChainableTypeChecker(validate);
645 + }
646 + function createEnumTypeChecker(expectedValues) {
647 + if (!Array.isArray(expectedValues)) {
648 + if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
649 + else printWarning("Invalid argument supplied to oneOf, expected an array.");
650 + return emptyFunctionThatReturnsNull;
651 + }
652 + function validate(props, propName, componentName, location, propFullName) {
653 + var propValue = props[propName];
654 + for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
655 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
656 + if (getPreciseType(value) === "symbol") return String(value);
657 + return value;
658 + });
659 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
660 + }
661 + return createChainableTypeChecker(validate);
662 + }
663 + function createObjectOfTypeChecker(typeChecker) {
664 + function validate(props, propName, componentName, location, propFullName) {
665 + if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
666 + var propValue = props[propName];
667 + var propType = getPropType(propValue);
668 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
669 + for (var key in propValue) if (has(propValue, key)) {
670 + var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
671 + if (error instanceof Error) return error;
672 + }
673 + return null;
674 + }
675 + return createChainableTypeChecker(validate);
676 + }
677 + function createUnionTypeChecker(arrayOfTypeCheckers) {
678 + if (!Array.isArray(arrayOfTypeCheckers)) {
679 + printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
680 + return emptyFunctionThatReturnsNull;
681 + }
682 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
683 + var checker = arrayOfTypeCheckers[i];
684 + if (typeof checker !== "function") {
685 + printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
686 + return emptyFunctionThatReturnsNull;
687 + }
688 + }
689 + function validate(props, propName, componentName, location, propFullName) {
690 + var expectedTypes = [];
691 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
692 + var checker = arrayOfTypeCheckers[i];
693 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
694 + if (checkerResult == null) return null;
695 + if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
696 + }
697 + var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
698 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
699 + }
700 + return createChainableTypeChecker(validate);
701 + }
702 + function createNodeChecker() {
703 + function validate(props, propName, componentName, location, propFullName) {
704 + if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
705 + return null;
706 + }
707 + return createChainableTypeChecker(validate);
708 + }
709 + function invalidValidatorError(componentName, location, propFullName, key, type) {
710 + return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
711 + }
712 + function createShapeTypeChecker(shapeTypes) {
713 + function validate(props, propName, componentName, location, propFullName) {
714 + var propValue = props[propName];
715 + var propType = getPropType(propValue);
716 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
717 + for (var key in shapeTypes) {
718 + var checker = shapeTypes[key];
719 + if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
720 + var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
721 + if (error) return error;
722 + }
723 + return null;
724 + }
725 + return createChainableTypeChecker(validate);
726 + }
727 + function createStrictShapeTypeChecker(shapeTypes) {
728 + function validate(props, propName, componentName, location, propFullName) {
729 + var propValue = props[propName];
730 + var propType = getPropType(propValue);
731 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
732 + for (var key in assign({}, props[propName], shapeTypes)) {
733 + var checker = shapeTypes[key];
734 + if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
735 + if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
736 + var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
737 + if (error) return error;
738 + }
739 + return null;
740 + }
741 + return createChainableTypeChecker(validate);
742 + }
743 + function isNode(propValue) {
744 + switch (typeof propValue) {
745 + case "number":
746 + case "string":
747 + case "undefined": return true;
748 + case "boolean": return !propValue;
749 + case "object":
750 + if (Array.isArray(propValue)) return propValue.every(isNode);
751 + if (propValue === null || isValidElement(propValue)) return true;
752 + var iteratorFn = getIteratorFn(propValue);
753 + if (iteratorFn) {
754 + var iterator = iteratorFn.call(propValue);
755 + var step;
756 + if (iteratorFn !== propValue.entries) {
757 + while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
758 + } else while (!(step = iterator.next()).done) {
759 + var entry = step.value;
760 + if (entry) {
761 + if (!isNode(entry[1])) return false;
762 + }
763 + }
764 + } else return false;
765 + return true;
766 + default: return false;
767 + }
768 + }
769 + function isSymbol(propType, propValue) {
770 + if (propType === "symbol") return true;
771 + if (!propValue) return false;
772 + if (propValue["@@toStringTag"] === "Symbol") return true;
773 + if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
774 + return false;
775 + }
776 + function getPropType(propValue) {
777 + var propType = typeof propValue;
778 + if (Array.isArray(propValue)) return "array";
779 + if (propValue instanceof RegExp) return "object";
780 + if (isSymbol(propType, propValue)) return "symbol";
781 + return propType;
782 + }
783 + function getPreciseType(propValue) {
784 + if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
785 + var propType = getPropType(propValue);
786 + if (propType === "object") {
787 + if (propValue instanceof Date) return "date";
788 + else if (propValue instanceof RegExp) return "regexp";
789 + }
790 + return propType;
791 + }
792 + function getPostfixForTypeWarning(value) {
793 + var type = getPreciseType(value);
794 + switch (type) {
795 + case "array":
796 + case "object": return "an " + type;
797 + case "boolean":
798 + case "date":
799 + case "regexp": return "a " + type;
800 + default: return type;
801 + }
802 + }
803 + function getClassName(propValue) {
804 + if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
805 + return propValue.constructor.name;
806 + }
807 + ReactPropTypes.checkPropTypes = checkPropTypes;
808 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
809 + ReactPropTypes.PropTypes = ReactPropTypes;
810 + return ReactPropTypes;
811 + };
812 + }));
2437 813
2438 -/**
2439 - * The stack frame tracking parse progress.
2440 - *
2441 - * @typedef Frame
2442 - *
2443 - * @property {Element} element A parent element which may still have
2444 - * @property {number} tokenStart Offset at which parent element first
2445 - * appears.
2446 - * @property {number} tokenLength Length of string marking start of parent
2447 - * element.
2448 - * @property {number} [prevOffset] Running offset at which parsing should
2449 - * continue.
2450 - * @property {number} [leadingTextStart] Offset at which last closing element
2451 - * finished, used for finding text between
2452 - * elements.
2453 - * @property {Element[]} children Children.
2454 - */
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 + }));
2455 821
2456 -/**
2457 - * Tracks recursive-descent parse state.
2458 - *
2459 - * This is a Stack frame holding parent elements until all children have been
2460 - * parsed.
2461 - *
2462 - * @private
2463 - * @param {Element} element A parent element which may still have
2464 - * nested children not yet parsed.
2465 - * @param {number} tokenStart Offset at which parent element first
2466 - * appears.
2467 - * @param {number} tokenLength Length of string marking start of parent
2468 - * element.
2469 - * @param {number} [prevOffset] Running offset at which parsing should
2470 - * continue.
2471 - * @param {number} [leadingTextStart] Offset at which last closing element
2472 - * finished, used for finding text between
2473 - * elements.
2474 - *
2475 - * @return {Frame} The stack frame tracking parse progress.
2476 - */
2477 -function createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart) {
2478 - return {
2479 - element,
2480 - tokenStart,
2481 - tokenLength,
2482 - prevOffset,
2483 - leadingTextStart,
2484 - children: []
2485 - };
2486 -}
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 + }
2487 828
2488 -/**
2489 - * This function creates an interpolated element from a passed in string with
2490 - * specific tags matching how the string should be converted to an element via
2491 - * the conversion map value.
2492 - *
2493 - * @example
2494 - * For example, for the given string:
2495 - *
2496 - * "This is a <span>string</span> with <a>a link</a> and a self-closing
2497 - * <CustomComponentB/> tag"
2498 - *
2499 - * You would have something like this as the conversionMap value:
2500 - *
2501 - * ```js
2502 - * {
2503 - * span: <span />,
2504 - * a: <a href={ 'https://github.com' } />,
2505 - * CustomComponentB: <CustomComponent />,
2506 - * }
2507 - * ```
2508 - *
2509 - * @param {string} interpolatedString The interpolation string to be parsed.
2510 - * @param {Record<string, Element>} conversionMap The map used to convert the string to
2511 - * a react element.
2512 - * @throws {TypeError}
2513 - * @return {Element} A wp element.
2514 - */
2515 -const createInterpolateElement = (interpolatedString, conversionMap) => {
2516 - indoc = interpolatedString;
2517 - offset = 0;
2518 - output = [];
2519 - stack = [];
2520 - tokenizer.lastIndex = 0;
2521 - if (!isValidConversionMap(conversionMap)) {
2522 - throw new TypeError('The conversionMap provided is not valid. It must be an object with values that are React Elements');
2523 - }
2524 - do {
2525 - // twiddle our thumbs
2526 - } while (proceed(conversionMap));
2527 - return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, ...output);
2528 -};
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 + }
2529 858
2530 -/**
2531 - * Validate conversion map.
2532 - *
2533 - * A map is considered valid if it's an object and every value in the object
2534 - * is a React Element
2535 - *
2536 - * @private
2537 - *
2538 - * @param {Object} conversionMap The map being validated.
2539 - *
2540 - * @return {boolean} True means the map is valid.
2541 - */
2542 -const isValidConversionMap = conversionMap => {
2543 - const isObject = typeof conversionMap === 'object';
2544 - const values = isObject && Object.values(conversionMap);
2545 - return isObject && values.length && values.every(element => (0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element));
2546 -};
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 + }
2547 866
2548 -/**
2549 - * This is the iterator over the matches in the string.
2550 - *
2551 - * @private
2552 - *
2553 - * @param {Object} conversionMap The conversion map for the string.
2554 - *
2555 - * @return {boolean} true for continuing to iterate, false for finished.
2556 - */
2557 -function proceed(conversionMap) {
2558 - const next = nextToken();
2559 - const [tokenType, name, startOffset, tokenLength] = next;
2560 - const stackDepth = stack.length;
2561 - const leadingTextStart = startOffset > offset ? offset : null;
2562 - if (!conversionMap[name]) {
2563 - addText();
2564 - return false;
2565 - }
2566 - switch (tokenType) {
2567 - case 'no-more-tokens':
2568 - if (stackDepth !== 0) {
2569 - const {
2570 - leadingTextStart: stackLeadingText,
2571 - tokenStart
2572 - } = stack.pop();
2573 - output.push(indoc.substr(stackLeadingText, tokenStart));
2574 - }
2575 - addText();
2576 - return false;
2577 - case 'self-closed':
2578 - if (0 === stackDepth) {
2579 - if (null !== leadingTextStart) {
2580 - output.push(indoc.substr(leadingTextStart, startOffset - leadingTextStart));
2581 - }
2582 - output.push(conversionMap[name]);
2583 - offset = startOffset + tokenLength;
2584 - return true;
2585 - }
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 + }
2586 876
2587 - // Otherwise we found an inner element.
2588 - addChild(createFrame(conversionMap[name], startOffset, tokenLength));
2589 - offset = startOffset + tokenLength;
2590 - return true;
2591 - case 'opener':
2592 - stack.push(createFrame(conversionMap[name], startOffset, tokenLength, startOffset + tokenLength, leadingTextStart));
2593 - offset = startOffset + tokenLength;
2594 - return true;
2595 - case 'closer':
2596 - // If we're not nesting then this is easy - close the block.
2597 - if (1 === stackDepth) {
2598 - closeOuterElement(startOffset);
2599 - offset = startOffset + tokenLength;
2600 - return true;
2601 - }
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 + }
2602 882
2603 - // Otherwise we're nested and we have to close out the current
2604 - // block and add it as a innerBlock to the parent.
2605 - const stackTop = stack.pop();
2606 - const text = indoc.substr(stackTop.prevOffset, startOffset - stackTop.prevOffset);
2607 - stackTop.children.push(text);
2608 - stackTop.prevOffset = startOffset + tokenLength;
2609 - const frame = createFrame(stackTop.element, stackTop.tokenStart, stackTop.tokenLength, startOffset + tokenLength);
2610 - frame.children = stackTop.children;
2611 - addChild(frame);
2612 - offset = startOffset + tokenLength;
2613 - return true;
2614 - default:
2615 - addText();
2616 - return false;
2617 - }
2618 -}
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 + }
2619 888
2620 -/**
2621 - * Grabs the next token match in the string and returns it's details.
2622 - *
2623 - * @private
2624 - *
2625 - * @return {Array} An array of details for the token matched.
2626 - */
2627 -function nextToken() {
2628 - const matches = tokenizer.exec(indoc);
2629 - // We have no more tokens.
2630 - if (null === matches) {
2631 - return ['no-more-tokens'];
2632 - }
2633 - const startedAt = matches.index;
2634 - const [match, isClosing, name, isSelfClosed] = matches;
2635 - const length = match.length;
2636 - if (isSelfClosed) {
2637 - return ['self-closed', name, startedAt, length];
2638 - }
2639 - if (isClosing) {
2640 - return ['closer', name, startedAt, length];
2641 - }
2642 - return ['opener', name, startedAt, length];
2643 -}
889 +//#endregion
890 +//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
891 + function _classCallCheck(a, n) {
892 + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
893 + }
2644 894
2645 -/**
2646 - * Pushes text extracted from the indoc string to the output stack given the
2647 - * current rawLength value and offset (if rawLength is provided ) or the
2648 - * indoc.length and offset.
2649 - *
2650 - * @private
2651 - */
2652 -function addText() {
2653 - const length = indoc.length - offset;
2654 - if (0 === length) {
2655 - return;
2656 - }
2657 - output.push(indoc.substr(offset, length));
2658 -}
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 + }
2659 905
2660 -/**
2661 - * Pushes a child element to the associated parent element's children for the
2662 - * parent currently active in the stack.
2663 - *
2664 - * @private
2665 - *
2666 - * @param {Frame} frame The Frame containing the child element and it's
2667 - * token information.
2668 - */
2669 -function addChild(frame) {
2670 - const {
2671 - element,
2672 - tokenStart,
2673 - tokenLength,
2674 - prevOffset,
2675 - children
2676 - } = frame;
2677 - const parent = stack[stack.length - 1];
2678 - const text = indoc.substr(parent.prevOffset, tokenStart - parent.prevOffset);
2679 - if (text) {
2680 - parent.children.push(text);
2681 - }
2682 - parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
2683 - parent.prevOffset = prevOffset ? prevOffset : tokenStart + tokenLength;
2684 -}
906 +//#endregion
907 +//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
908 + function toPrimitive(t, r) {
909 + if ("object" != _typeof(t) || !t) return t;
910 + var e = t[Symbol.toPrimitive];
911 + if (void 0 !== e) {
912 + var i = e.call(t, r || "default");
913 + if ("object" != _typeof(i)) return i;
914 + throw new TypeError("@@toPrimitive must return a primitive value.");
915 + }
916 + return ("string" === r ? String : Number)(t);
917 + }
2685 918
2686 -/**
2687 - * This is called for closing tags. It creates the element currently active in
2688 - * the stack.
2689 - *
2690 - * @private
2691 - *
2692 - * @param {number} endOffset Offset at which the closing tag for the element
2693 - * begins in the string. If this is greater than the
2694 - * prevOffset attached to the element, then this
2695 - * helps capture any remaining nested text nodes in
2696 - * the element.
2697 - */
2698 -function closeOuterElement(endOffset) {
2699 - const {
2700 - element,
2701 - leadingTextStart,
2702 - prevOffset,
2703 - tokenStart,
2704 - children
2705 - } = stack.pop();
2706 - const text = endOffset ? indoc.substr(prevOffset, endOffset - prevOffset) : indoc.substr(prevOffset);
2707 - if (text) {
2708 - children.push(text);
2709 - }
2710 - if (null !== leadingTextStart) {
2711 - output.push(indoc.substr(leadingTextStart, tokenStart - leadingTextStart));
2712 - }
2713 - output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
2714 -}
2715 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createInterpolateElement);
2716 -//# sourceMappingURL=create-interpolate-element.js.map
919 +//#endregion
920 +//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
921 + function toPropertyKey(t) {
922 + var i = toPrimitive(t, "string");
923 + return "symbol" == _typeof(i) ? i : i + "";
924 + }
2717 925
2718 -/***/ }),
2719 -
2720 -/***/ "../node_modules/@wordpress/element/build-module/index.js":
2721 -/*!****************************************************************!*\
2722 - !*** ../node_modules/@wordpress/element/build-module/index.js ***!
2723 - \****************************************************************/
2724 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2725 -
2726 -"use strict";
2727 -__webpack_require__.r(__webpack_exports__);
2728 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2729 -/* harmony export */ Children: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Children),
2730 -/* harmony export */ Component: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Component),
2731 -/* harmony export */ Fragment: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Fragment),
2732 -/* harmony export */ Platform: () => (/* reexport safe */ _platform__WEBPACK_IMPORTED_MODULE_4__["default"]),
2733 -/* harmony export */ PureComponent: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.PureComponent),
2734 -/* harmony export */ RawHTML: () => (/* reexport safe */ _raw_html__WEBPACK_IMPORTED_MODULE_6__["default"]),
2735 -/* harmony export */ StrictMode: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode),
2736 -/* harmony export */ Suspense: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Suspense),
2737 -/* harmony export */ cloneElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.cloneElement),
2738 -/* harmony export */ concatChildren: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.concatChildren),
2739 -/* harmony export */ createContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createContext),
2740 -/* harmony export */ createElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createElement),
2741 -/* harmony export */ createInterpolateElement: () => (/* reexport safe */ _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__["default"]),
2742 -/* harmony export */ createPortal: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createPortal),
2743 -/* harmony export */ createRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createRef),
2744 -/* harmony export */ createRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createRoot),
2745 -/* harmony export */ findDOMNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.findDOMNode),
2746 -/* harmony export */ flushSync: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.flushSync),
2747 -/* harmony export */ forwardRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.forwardRef),
2748 -/* harmony export */ hydrate: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrate),
2749 -/* harmony export */ hydrateRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot),
2750 -/* harmony export */ isEmptyElement: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.isEmptyElement),
2751 -/* harmony export */ isValidElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.isValidElement),
2752 -/* harmony export */ lazy: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.lazy),
2753 -/* harmony export */ memo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.memo),
2754 -/* harmony export */ render: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.render),
2755 -/* harmony export */ renderToString: () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_5__["default"]),
2756 -/* harmony export */ startTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.startTransition),
2757 -/* harmony export */ switchChildrenNodeName: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.switchChildrenNodeName),
2758 -/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.unmountComponentAtNode),
2759 -/* harmony export */ useCallback: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useCallback),
2760 -/* harmony export */ useContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useContext),
2761 -/* harmony export */ useDebugValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue),
2762 -/* harmony export */ useDeferredValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDeferredValue),
2763 -/* harmony export */ useEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useEffect),
2764 -/* harmony export */ useId: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useId),
2765 -/* harmony export */ useImperativeHandle: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle),
2766 -/* harmony export */ useInsertionEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect),
2767 -/* harmony export */ useLayoutEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect),
2768 -/* harmony export */ useMemo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useMemo),
2769 -/* harmony export */ useReducer: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useReducer),
2770 -/* harmony export */ useRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useRef),
2771 -/* harmony export */ useState: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useState),
2772 -/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore),
2773 -/* harmony export */ useTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useTransition)
2774 -/* harmony export */ });
2775 -/* 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");
2776 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "../node_modules/@wordpress/element/build-module/react.js");
2777 -/* harmony import */ var _react_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-platform */ "../node_modules/@wordpress/element/build-module/react-platform.js");
2778 -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "../node_modules/@wordpress/element/build-module/utils.js");
2779 -/* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "../node_modules/@wordpress/element/build-module/platform.js");
2780 -/* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serialize */ "../node_modules/@wordpress/element/build-module/serialize.js");
2781 -/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
2782 -
2783 -
2784 -
2785 -
2786 -
2787 -
2788 -
2789 -//# sourceMappingURL=index.js.map
2790 -
2791 -/***/ }),
2792 -
2793 -/***/ "../node_modules/@wordpress/element/build-module/platform.js":
2794 -/*!*******************************************************************!*\
2795 - !*** ../node_modules/@wordpress/element/build-module/platform.js ***!
2796 - \*******************************************************************/
2797 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2798 -
2799 -"use strict";
2800 -__webpack_require__.r(__webpack_exports__);
2801 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2802 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2803 -/* harmony export */ });
2804 -/**
2805 - * Parts of this source were derived and modified from react-native-web,
2806 - * released under the MIT license.
2807 - *
2808 - * Copyright (c) 2016-present, Nicolas Gallagher.
2809 - * Copyright (c) 2015-present, Facebook, Inc.
2810 - *
2811 - */
2812 -const Platform = {
2813 - OS: 'web',
2814 - select: spec => 'web' in spec ? spec.web : spec.default,
2815 - isWeb: true
2816 -};
2817 -/**
2818 - * Component used to detect the current Platform being used.
2819 - * Use Platform.OS === 'web' to detect if running on web enviroment.
2820 - *
2821 - * This is the same concept as the React Native implementation.
2822 - *
2823 - * @see https://reactnative.dev/docs/platform-specific-code#platform-module
2824 - *
2825 - * Here is an example of how to use the select method:
2826 - * @example
2827 - * ```js
2828 - * import { Platform } from '@wordpress/element';
2829 - *
2830 - * const placeholderLabel = Platform.select( {
2831 - * native: __( 'Add media' ),
2832 - * web: __( 'Drag images, upload new ones or select files from your library.' ),
2833 - * } );
2834 - * ```
2835 - */
2836 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Platform);
2837 -//# sourceMappingURL=platform.js.map
2838 -
2839 -/***/ }),
2840 -
2841 -/***/ "../node_modules/@wordpress/element/build-module/raw-html.js":
2842 -/*!*******************************************************************!*\
2843 - !*** ../node_modules/@wordpress/element/build-module/raw-html.js ***!
2844 - \*******************************************************************/
2845 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2846 -
2847 -"use strict";
2848 -__webpack_require__.r(__webpack_exports__);
2849 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2850 -/* harmony export */ "default": () => (/* binding */ RawHTML)
2851 -/* harmony export */ });
2852 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
2853 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
2854 -/**
2855 - * Internal dependencies
2856 - */
2857 -
2858 -
2859 -/** @typedef {{children: string} & import('react').ComponentPropsWithoutRef<'div'>} RawHTMLProps */
2860 -
2861 -/**
2862 - * Component used as equivalent of Fragment with unescaped HTML, in cases where
2863 - * it is desirable to render dangerous HTML without needing a wrapper element.
2864 - * To preserve additional props, a `div` wrapper _will_ be created if any props
2865 - * aside from `children` are passed.
2866 - *
2867 - * @param {RawHTMLProps} props Children should be a string of HTML or an array
2868 - * of strings. Other props will be passed through
2869 - * to the div wrapper.
2870 - *
2871 - * @return {JSX.Element} Dangerously-rendering component.
2872 - */
2873 -function RawHTML({
2874 - children,
2875 - ...props
2876 -}) {
2877 - let rawHtml = '';
2878 -
2879 - // Cast children as an array, and concatenate each element if it is a string.
2880 - _react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).forEach(child => {
2881 - if (typeof child === 'string' && child.trim() !== '') {
2882 - rawHtml += child;
2883 - }
2884 - });
2885 -
2886 - // The `div` wrapper will be stripped by the `renderElement` serializer in
2887 - // `./serialize.js` unless there are non-children props present.
2888 - return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)('div', {
2889 - dangerouslySetInnerHTML: {
2890 - __html: rawHtml
2891 - },
2892 - ...props
2893 - });
2894 -}
2895 -//# sourceMappingURL=raw-html.js.map
2896 -
2897 -/***/ }),
2898 -
2899 -/***/ "../node_modules/@wordpress/element/build-module/react-platform.js":
2900 -/*!*************************************************************************!*\
2901 - !*** ../node_modules/@wordpress/element/build-module/react-platform.js ***!
2902 - \*************************************************************************/
2903 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2904 -
2905 -"use strict";
2906 -__webpack_require__.r(__webpack_exports__);
2907 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2908 -/* harmony export */ createPortal: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.createPortal),
2909 -/* harmony export */ createRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot),
2910 -/* harmony export */ findDOMNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode),
2911 -/* harmony export */ flushSync: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.flushSync),
2912 -/* harmony export */ hydrate: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
2913 -/* harmony export */ hydrateRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.hydrateRoot),
2914 -/* harmony export */ render: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.render),
2915 -/* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode)
2916 -/* harmony export */ });
2917 -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
2918 -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
2919 -/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
2920 -/**
2921 - * External dependencies
2922 - */
2923 -
2924 -
2925 -
2926 -/**
2927 - * Creates a portal into which a component can be rendered.
2928 - *
2929 - * @see https://github.com/facebook/react/issues/10309#issuecomment-318433235
2930 - *
2931 - * @param {import('react').ReactElement} child Any renderable child, such as an element,
2932 - * string, or fragment.
2933 - * @param {HTMLElement} container DOM node into which element should be rendered.
2934 - */
2935 -
2936 -
2937 -/**
2938 - * Finds the dom node of a React component.
2939 - *
2940 - * @param {import('react').ComponentType} component Component's instance.
2941 - */
2942 -
2943 -
2944 -/**
2945 - * Forces React to flush any updates inside the provided callback synchronously.
2946 - *
2947 - * @param {Function} callback Callback to run synchronously.
2948 - */
2949 -
2950 -
2951 -/**
2952 - * Renders a given element into the target DOM node.
2953 - *
2954 - * @deprecated since WordPress 6.2.0. Use `createRoot` instead.
2955 - * @see https://react.dev/reference/react-dom/render
2956 - */
2957 -
2958 -
2959 -/**
2960 - * Hydrates a given element into the target DOM node.
2961 - *
2962 - * @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead.
2963 - * @see https://react.dev/reference/react-dom/hydrate
2964 - */
2965 -
2966 -
2967 -/**
2968 - * Creates a new React root for the target DOM node.
2969 - *
2970 - * @since 6.2.0 Introduced in WordPress core.
2971 - * @see https://react.dev/reference/react-dom/client/createRoot
2972 - */
2973 -
2974 -
2975 -/**
2976 - * Creates a new React root for the target DOM node and hydrates it with a pre-generated markup.
2977 - *
2978 - * @since 6.2.0 Introduced in WordPress core.
2979 - * @see https://react.dev/reference/react-dom/client/hydrateRoot
2980 - */
2981 -
2982 -
2983 -/**
2984 - * Removes any mounted element from the target DOM node.
2985 - *
2986 - * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead.
2987 - * @see https://react.dev/reference/react-dom/unmountComponentAtNode
2988 - */
2989 -
2990 -//# sourceMappingURL=react-platform.js.map
2991 -
2992 -/***/ }),
2993 -
2994 -/***/ "../node_modules/@wordpress/element/build-module/react.js":
2995 -/*!****************************************************************!*\
2996 - !*** ../node_modules/@wordpress/element/build-module/react.js ***!
2997 - \****************************************************************/
2998 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2999 -
3000 -"use strict";
3001 -__webpack_require__.r(__webpack_exports__);
3002 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3003 -/* harmony export */ Children: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Children),
3004 -/* harmony export */ Component: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Component),
3005 -/* harmony export */ Fragment: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Fragment),
3006 -/* harmony export */ PureComponent: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.PureComponent),
3007 -/* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode),
3008 -/* harmony export */ Suspense: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Suspense),
3009 -/* harmony export */ cloneElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.cloneElement),
3010 -/* harmony export */ concatChildren: () => (/* binding */ concatChildren),
3011 -/* harmony export */ createContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createContext),
3012 -/* harmony export */ createElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createElement),
3013 -/* harmony export */ createRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createRef),
3014 -/* harmony export */ forwardRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef),
3015 -/* harmony export */ isValidElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement),
3016 -/* harmony export */ lazy: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.lazy),
3017 -/* harmony export */ memo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.memo),
3018 -/* harmony export */ startTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.startTransition),
3019 -/* harmony export */ switchChildrenNodeName: () => (/* binding */ switchChildrenNodeName),
3020 -/* harmony export */ useCallback: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useCallback),
3021 -/* harmony export */ useContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useContext),
3022 -/* harmony export */ useDebugValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue),
3023 -/* harmony export */ useDeferredValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDeferredValue),
3024 -/* harmony export */ useEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useEffect),
3025 -/* harmony export */ useId: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useId),
3026 -/* harmony export */ useImperativeHandle: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle),
3027 -/* harmony export */ useInsertionEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect),
3028 -/* harmony export */ useLayoutEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect),
3029 -/* harmony export */ useMemo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useMemo),
3030 -/* harmony export */ useReducer: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useReducer),
3031 -/* harmony export */ useRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useRef),
3032 -/* harmony export */ useState: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useState),
3033 -/* harmony export */ useSyncExternalStore: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore),
3034 -/* harmony export */ useTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useTransition)
3035 -/* harmony export */ });
3036 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3037 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3038 -/**
3039 - * External dependencies
3040 - */
3041 -// eslint-disable-next-line @typescript-eslint/no-restricted-imports
3042 -
3043 -
3044 -/**
3045 - * Object containing a React element.
3046 - *
3047 - * @typedef {import('react').ReactElement} Element
3048 - */
3049 -
3050 -/**
3051 - * Object containing a React component.
3052 - *
3053 - * @typedef {import('react').ComponentType} ComponentType
3054 - */
3055 -
3056 -/**
3057 - * Object containing a React synthetic event.
3058 - *
3059 - * @typedef {import('react').SyntheticEvent} SyntheticEvent
3060 - */
3061 -
3062 -/**
3063 - * Object containing a React synthetic event.
3064 - *
3065 - * @template T
3066 - * @typedef {import('react').RefObject<T>} RefObject<T>
3067 - */
3068 -
3069 -/**
3070 - * Object that provides utilities for dealing with React children.
3071 - */
3072 -
3073 -
3074 -/**
3075 - * Creates a copy of an element with extended props.
3076 - *
3077 - * @param {Element} element Element
3078 - * @param {?Object} props Props to apply to cloned element
3079 - *
3080 - * @return {Element} Cloned element.
3081 - */
3082 -
3083 -
3084 -/**
3085 - * A base class to create WordPress Components (Refs, state and lifecycle hooks)
3086 - */
3087 -
3088 -
3089 -/**
3090 - * Creates a context object containing two components: a provider and consumer.
3091 - *
3092 - * @param {Object} defaultValue A default data stored in the context.
3093 - *
3094 - * @return {Object} Context object.
3095 - */
3096 -
3097 -
3098 -/**
3099 - * Returns a new element of given type. Type can be either a string tag name or
3100 - * another function which itself returns an element.
3101 - *
3102 - * @param {?(string|Function)} type Tag name or element creator
3103 - * @param {Object} props Element properties, either attribute
3104 - * set to apply to DOM node or values to
3105 - * pass through to element creator
3106 - * @param {...Element} children Descendant elements
3107 - *
3108 - * @return {Element} Element.
3109 - */
3110 -
3111 -
3112 -/**
3113 - * Returns an object tracking a reference to a rendered element via its
3114 - * `current` property as either a DOMElement or Element, dependent upon the
3115 - * type of element rendered with the ref attribute.
3116 - *
3117 - * @return {Object} Ref object.
3118 - */
3119 -
3120 -
3121 -/**
3122 - * Component enhancer used to enable passing a ref to its wrapped component.
3123 - * Pass a function argument which receives `props` and `ref` as its arguments,
3124 - * returning an element using the forwarded ref. The return value is a new
3125 - * component which forwards its ref.
3126 - *
3127 - * @param {Function} forwarder Function passed `props` and `ref`, expected to
3128 - * return an element.
3129 - *
3130 - * @return {Component} Enhanced component.
3131 - */
3132 -
3133 -
3134 -/**
3135 - * A component which renders its children without any wrapping element.
3136 - */
3137 -
3138 -
3139 -/**
3140 - * Checks if an object is a valid React Element.
3141 - *
3142 - * @param {Object} objectToCheck The object to be checked.
3143 - *
3144 - * @return {boolean} true if objectToTest is a valid React Element and false otherwise.
3145 - */
3146 -
3147 -
3148 -/**
3149 - * @see https://reactjs.org/docs/react-api.html#reactmemo
3150 - */
3151 -
3152 -
3153 -/**
3154 - * Component that activates additional checks and warnings for its descendants.
3155 - */
3156 -
3157 -
3158 -/**
3159 - * @see https://reactjs.org/docs/hooks-reference.html#usecallback
3160 - */
3161 -
3162 -
3163 -/**
3164 - * @see https://reactjs.org/docs/hooks-reference.html#usecontext
3165 - */
3166 -
3167 -
3168 -/**
3169 - * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
3170 - */
3171 -
3172 -
3173 -/**
3174 - * @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
3175 - */
3176 -
3177 -
3178 -/**
3179 - * @see https://reactjs.org/docs/hooks-reference.html#useeffect
3180 - */
3181 -
3182 -
3183 -/**
3184 - * @see https://reactjs.org/docs/hooks-reference.html#useid
3185 - */
3186 -
3187 -
3188 -/**
3189 - * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
3190 - */
3191 -
3192 -
3193 -/**
3194 - * @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect
3195 - */
3196 -
3197 -
3198 -/**
3199 - * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
3200 - */
3201 -
3202 -
3203 -/**
3204 - * @see https://reactjs.org/docs/hooks-reference.html#usememo
3205 - */
3206 -
3207 -
3208 -/**
3209 - * @see https://reactjs.org/docs/hooks-reference.html#usereducer
3210 - */
3211 -
3212 -
3213 -/**
3214 - * @see https://reactjs.org/docs/hooks-reference.html#useref
3215 - */
3216 -
3217 -
3218 -/**
3219 - * @see https://reactjs.org/docs/hooks-reference.html#usestate
3220 - */
3221 -
3222 -
3223 -/**
3224 - * @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore
3225 - */
3226 -
3227 -
3228 -/**
3229 - * @see https://reactjs.org/docs/hooks-reference.html#usetransition
3230 - */
3231 -
3232 -
3233 -/**
3234 - * @see https://reactjs.org/docs/react-api.html#starttransition
3235 - */
3236 -
3237 -
3238 -/**
3239 - * @see https://reactjs.org/docs/react-api.html#reactlazy
3240 - */
3241 -
3242 -
3243 -/**
3244 - * @see https://reactjs.org/docs/react-api.html#reactsuspense
3245 - */
3246 -
3247 -
3248 -/**
3249 - * @see https://reactjs.org/docs/react-api.html#reactpurecomponent
3250 - */
3251 -
3252 -
3253 -/**
3254 - * Concatenate two or more React children objects.
3255 - *
3256 - * @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.
3257 - *
3258 - * @return {Array} The concatenated value.
3259 - */
3260 -function concatChildren(...childrenArguments) {
3261 - return childrenArguments.reduce((accumulator, children, i) => {
3262 - react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (child, j) => {
3263 - if (child && 'string' !== typeof child) {
3264 - child = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, {
3265 - key: [i, j].join()
3266 - });
3267 - }
3268 - accumulator.push(child);
3269 - });
3270 - return accumulator;
3271 - }, []);
3272 -}
3273 -
3274 -/**
3275 - * Switches the nodeName of all the elements in the children object.
3276 - *
3277 - * @param {?Object} children Children object.
3278 - * @param {string} nodeName Node name.
3279 - *
3280 - * @return {?Object} The updated children object.
3281 - */
3282 -function switchChildrenNodeName(children, nodeName) {
3283 - return children && react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (elt, index) => {
3284 - if (typeof elt?.valueOf() === 'string') {
3285 - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
3286 - key: index
3287 - }, elt);
3288 - }
3289 - const {
3290 - children: childrenProp,
3291 - ...props
3292 - } = elt.props;
3293 - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
3294 - key: index,
3295 - ...props
3296 - }, childrenProp);
3297 - });
3298 -}
3299 -//# sourceMappingURL=react.js.map
3300 -
3301 -/***/ }),
3302 -
3303 -/***/ "../node_modules/@wordpress/element/build-module/serialize.js":
3304 -/*!********************************************************************!*\
3305 - !*** ../node_modules/@wordpress/element/build-module/serialize.js ***!
3306 - \********************************************************************/
3307 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3308 -
3309 -"use strict";
3310 -__webpack_require__.r(__webpack_exports__);
3311 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3312 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
3313 -/* harmony export */ hasPrefix: () => (/* binding */ hasPrefix),
3314 -/* harmony export */ renderAttributes: () => (/* binding */ renderAttributes),
3315 -/* harmony export */ renderComponent: () => (/* binding */ renderComponent),
3316 -/* harmony export */ renderElement: () => (/* binding */ renderElement),
3317 -/* harmony export */ renderNativeComponent: () => (/* binding */ renderNativeComponent),
3318 -/* harmony export */ renderStyle: () => (/* binding */ renderStyle)
3319 -/* harmony export */ });
3320 -/* 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");
3321 -/* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! change-case */ "../node_modules/param-case/dist.es2015/index.js");
3322 -/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/escape-html */ "../node_modules/@wordpress/escape-html/build-module/index.js");
3323 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./react */ "react");
3324 -/* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_3__);
3325 -/* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
3326 -/**
3327 - * Parts of this source were derived and modified from fast-react-render,
3328 - * released under the MIT license.
3329 - *
3330 - * https://github.com/alt-j/fast-react-render
3331 - *
3332 - * Copyright (c) 2016 Andrey Morozov
3333 - *
3334 - * Permission is hereby granted, free of charge, to any person obtaining a copy
3335 - * of this software and associated documentation files (the "Software"), to deal
3336 - * in the Software without restriction, including without limitation the rights
3337 - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3338 - * copies of the Software, and to permit persons to whom the Software is
3339 - * furnished to do so, subject to the following conditions:
3340 - *
3341 - * The above copyright notice and this permission notice shall be included in
3342 - * all copies or substantial portions of the Software.
3343 - *
3344 - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3345 - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3346 - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3347 - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3348 - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3349 - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3350 - * THE SOFTWARE.
3351 - */
3352 -
3353 -/**
3354 - * External dependencies
3355 - */
3356 -
3357 -
3358 -
3359 -/**
3360 - * WordPress dependencies
3361 - */
3362 -
3363 -
3364 -/**
3365 - * Internal dependencies
3366 - */
3367 -
3368 -
3369 -
3370 -/** @typedef {import('react').ReactElement} ReactElement */
3371 -
3372 -const {
3373 - Provider,
3374 - Consumer
3375 -} = (0,_react__WEBPACK_IMPORTED_MODULE_3__.createContext)(undefined);
3376 -const ForwardRef = (0,_react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)(() => {
3377 - return null;
3378 -});
3379 -
3380 -/**
3381 - * Valid attribute types.
3382 - *
3383 - * @type {Set<string>}
3384 - */
3385 -const ATTRIBUTES_TYPES = new Set(['string', 'boolean', 'number']);
3386 -
3387 -/**
3388 - * Element tags which can be self-closing.
3389 - *
3390 - * @type {Set<string>}
3391 - */
3392 -const SELF_CLOSING_TAGS = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']);
3393 -
3394 -/**
3395 - * Boolean attributes are attributes whose presence as being assigned is
3396 - * meaningful, even if only empty.
3397 - *
3398 - * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
3399 - * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
3400 - *
3401 - * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
3402 - * .filter( ( tr ) => tr.lastChild.textContent.indexOf( 'Boolean attribute' ) !== -1 )
3403 - * .reduce( ( result, tr ) => Object.assign( result, {
3404 - * [ tr.firstChild.textContent.trim() ]: true
3405 - * } ), {} ) ).sort();
3406 - *
3407 - * @type {Set<string>}
3408 - */
3409 -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']);
3410 -
3411 -/**
3412 - * Enumerated attributes are attributes which must be of a specific value form.
3413 - * Like boolean attributes, these are meaningful if specified, even if not of a
3414 - * valid enumerated value.
3415 - *
3416 - * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute
3417 - * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
3418 - *
3419 - * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
3420 - * .filter( ( tr ) => /^("(.+?)";?\s*)+/.test( tr.lastChild.textContent.trim() ) )
3421 - * .reduce( ( result, tr ) => Object.assign( result, {
3422 - * [ tr.firstChild.textContent.trim() ]: true
3423 - * } ), {} ) ).sort();
3424 - *
3425 - * Some notable omissions:
3426 - *
3427 - * - `alt`: https://blog.whatwg.org/omit-alt
3428 - *
3429 - * @type {Set<string>}
3430 - */
3431 -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']);
3432 -
3433 -/**
3434 - * Set of CSS style properties which support assignment of unitless numbers.
3435 - * Used in rendering of style properties, where `px` unit is assumed unless
3436 - * property is included in this set or value is zero.
3437 - *
3438 - * Generated via:
3439 - *
3440 - * Object.entries( document.createElement( 'div' ).style )
3441 - * .filter( ( [ key ] ) => (
3442 - * ! /^(webkit|ms|moz)/.test( key ) &&
3443 - * ( e.style[ key ] = 10 ) &&
3444 - * e.style[ key ] === '10'
3445 - * ) )
3446 - * .map( ( [ key ] ) => key )
3447 - * .sort();
3448 - *
3449 - * @type {Set<string>}
3450 - */
3451 -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']);
3452 -
3453 -/**
3454 - * Returns true if the specified string is prefixed by one of an array of
3455 - * possible prefixes.
3456 - *
3457 - * @param {string} string String to check.
3458 - * @param {string[]} prefixes Possible prefixes.
3459 - *
3460 - * @return {boolean} Whether string has prefix.
3461 - */
3462 -function hasPrefix(string, prefixes) {
3463 - return prefixes.some(prefix => string.indexOf(prefix) === 0);
3464 -}
3465 -
3466 -/**
3467 - * Returns true if the given prop name should be ignored in attributes
3468 - * serialization, or false otherwise.
3469 - *
3470 - * @param {string} attribute Attribute to check.
3471 - *
3472 - * @return {boolean} Whether attribute should be ignored.
3473 - */
3474 -function isInternalAttribute(attribute) {
3475 - return 'key' === attribute || 'children' === attribute;
3476 -}
3477 -
3478 -/**
3479 - * Returns the normal form of the element's attribute value for HTML.
3480 - *
3481 - * @param {string} attribute Attribute name.
3482 - * @param {*} value Non-normalized attribute value.
3483 - *
3484 - * @return {*} Normalized attribute value.
3485 - */
3486 -function getNormalAttributeValue(attribute, value) {
3487 - switch (attribute) {
3488 - case 'style':
3489 - return renderStyle(value);
3490 - }
3491 - return value;
3492 -}
3493 -/**
3494 - * This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute).
3495 - * We need this to render e.g strokeWidth as stroke-width.
3496 - *
3497 - * List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute.
3498 - */
3499 -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) => {
3500 - // The keys are lower-cased for more robust lookup.
3501 - map[attribute.toLowerCase()] = attribute;
3502 - return map;
3503 -}, {});
3504 -
3505 -/**
3506 - * This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute).
3507 - * The keys are lower-cased for more robust lookup.
3508 - * Note that this list only contains attributes that contain at least one capital letter.
3509 - * Lowercase attributes don't need mapping, since we lowercase all attributes by default.
3510 - */
3511 -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) => {
3512 - // The keys are lower-cased for more robust lookup.
3513 - map[attribute.toLowerCase()] = attribute;
3514 - return map;
3515 -}, {});
3516 -
3517 -/**
3518 - * This is a map of all SVG attributes that have colons.
3519 - * Keys are lower-cased and stripped of their colons for more robust lookup.
3520 - */
3521 -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) => {
3522 - map[attribute.replace(':', '').toLowerCase()] = attribute;
3523 - return map;
3524 -}, {});
3525 -
3526 -/**
3527 - * Returns the normal form of the element's attribute name for HTML.
3528 - *
3529 - * @param {string} attribute Non-normalized attribute name.
3530 - *
3531 - * @return {string} Normalized attribute name.
3532 - */
3533 -function getNormalAttributeName(attribute) {
3534 - switch (attribute) {
3535 - case 'htmlFor':
3536 - return 'for';
3537 - case 'className':
3538 - return 'class';
3539 - }
3540 - const attributeLowerCase = attribute.toLowerCase();
3541 - if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) {
3542 - return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase];
3543 - } else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) {
3544 - return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
3545 - } else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) {
3546 - return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase];
3547 - }
3548 - return attributeLowerCase;
3549 -}
3550 -
3551 -/**
3552 - * Returns the normal form of the style property name for HTML.
3553 - *
3554 - * - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color'
3555 - * - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor'
3556 - * - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform'
3557 - *
3558 - * @param {string} property Property name.
3559 - *
3560 - * @return {string} Normalized property name.
3561 - */
3562 -function getNormalStylePropertyName(property) {
3563 - if (property.startsWith('--')) {
3564 - return property;
3565 - }
3566 - if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) {
3567 - return '-' + (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property);
3568 - }
3569 - return (0,change_case__WEBPACK_IMPORTED_MODULE_1__.paramCase)(property);
3570 -}
3571 -
3572 -/**
3573 - * Returns the normal form of the style property value for HTML. Appends a
3574 - * default pixel unit if numeric, not a unitless property, and not zero.
3575 - *
3576 - * @param {string} property Property name.
3577 - * @param {*} value Non-normalized property value.
3578 - *
3579 - * @return {*} Normalized property value.
3580 - */
3581 -function getNormalStylePropertyValue(property, value) {
3582 - if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) {
3583 - return value + 'px';
3584 - }
3585 - return value;
3586 -}
3587 -
3588 -/**
3589 - * Serializes a React element to string.
3590 - *
3591 - * @param {import('react').ReactNode} element Element to serialize.
3592 - * @param {Object} [context] Context object.
3593 - * @param {Object} [legacyContext] Legacy context object.
3594 - *
3595 - * @return {string} Serialized element.
3596 - */
3597 -function renderElement(element, context, legacyContext = {}) {
3598 - if (null === element || undefined === element || false === element) {
3599 - return '';
3600 - }
3601 - if (Array.isArray(element)) {
3602 - return renderChildren(element, context, legacyContext);
3603 - }
3604 - switch (typeof element) {
3605 - case 'string':
3606 - return (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)(element);
3607 - case 'number':
3608 - return element.toString();
3609 - }
3610 - const {
3611 - type,
3612 - props
3613 - } = /** @type {{type?: any, props?: any}} */
3614 - element;
3615 - switch (type) {
3616 - case _react__WEBPACK_IMPORTED_MODULE_3__.StrictMode:
3617 - case _react__WEBPACK_IMPORTED_MODULE_3__.Fragment:
3618 - return renderChildren(props.children, context, legacyContext);
3619 - case _raw_html__WEBPACK_IMPORTED_MODULE_4__["default"]:
3620 - const {
3621 - children,
3622 - ...wrapperProps
3623 - } = props;
3624 - return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', {
3625 - ...wrapperProps,
3626 - dangerouslySetInnerHTML: {
3627 - __html: children
3628 - }
3629 - }, context, legacyContext);
3630 - }
3631 - switch (typeof type) {
3632 - case 'string':
3633 - return renderNativeComponent(type, props, context, legacyContext);
3634 - case 'function':
3635 - if (type.prototype && typeof type.prototype.render === 'function') {
3636 - return renderComponent(type, props, context, legacyContext);
3637 - }
3638 - return renderElement(type(props, legacyContext), context, legacyContext);
3639 - }
3640 - switch (type && type.$$typeof) {
3641 - case Provider.$$typeof:
3642 - return renderChildren(props.children, props.value, legacyContext);
3643 - case Consumer.$$typeof:
3644 - return renderElement(props.children(context || type._currentValue), context, legacyContext);
3645 - case ForwardRef.$$typeof:
3646 - return renderElement(type.render(props), context, legacyContext);
3647 - }
3648 - return '';
3649 -}
3650 -
3651 -/**
3652 - * Serializes a native component type to string.
3653 - *
3654 - * @param {?string} type Native component type to serialize, or null if
3655 - * rendering as fragment of children content.
3656 - * @param {Object} props Props object.
3657 - * @param {Object} [context] Context object.
3658 - * @param {Object} [legacyContext] Legacy context object.
3659 - *
3660 - * @return {string} Serialized element.
3661 - */
3662 -function renderNativeComponent(type, props, context, legacyContext = {}) {
3663 - let content = '';
3664 - if (type === 'textarea' && props.hasOwnProperty('value')) {
3665 - // Textarea children can be assigned as value prop. If it is, render in
3666 - // place of children. Ensure to omit so it is not assigned as attribute
3667 - // as well.
3668 - content = renderChildren(props.value, context, legacyContext);
3669 - const {
3670 - value,
3671 - ...restProps
3672 - } = props;
3673 - props = restProps;
3674 - } else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') {
3675 - // Dangerous content is left unescaped.
3676 - content = props.dangerouslySetInnerHTML.__html;
3677 - } else if (typeof props.children !== 'undefined') {
3678 - content = renderChildren(props.children, context, legacyContext);
3679 - }
3680 - if (!type) {
3681 - return content;
3682 - }
3683 - const attributes = renderAttributes(props);
3684 - if (SELF_CLOSING_TAGS.has(type)) {
3685 - return '<' + type + attributes + '/>';
3686 - }
3687 - return '<' + type + attributes + '>' + content + '</' + type + '>';
3688 -}
3689 -
3690 -/** @typedef {import('react').ComponentType} ComponentType */
3691 -
3692 -/**
3693 - * Serializes a non-native component type to string.
3694 - *
3695 - * @param {ComponentType} Component Component type to serialize.
3696 - * @param {Object} props Props object.
3697 - * @param {Object} [context] Context object.
3698 - * @param {Object} [legacyContext] Legacy context object.
3699 - *
3700 - * @return {string} Serialized element
3701 - */
3702 -function renderComponent(Component, props, context, legacyContext = {}) {
3703 - const instance = new ( /** @type {import('react').ComponentClass} */
3704 - Component)(props, legacyContext);
3705 - if (typeof
3706 - // Ignore reason: Current prettier reformats parens and mangles type assertion
3707 - // prettier-ignore
3708 - /** @type {{getChildContext?: () => unknown}} */
3709 - instance.getChildContext === 'function') {
3710 - Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext());
3711 - }
3712 - const html = renderElement(instance.render(), context, legacyContext);
3713 - return html;
3714 -}
3715 -
3716 -/**
3717 - * Serializes an array of children to string.
3718 - *
3719 - * @param {import('react').ReactNodeArray} children Children to serialize.
3720 - * @param {Object} [context] Context object.
3721 - * @param {Object} [legacyContext] Legacy context object.
3722 - *
3723 - * @return {string} Serialized children.
3724 - */
3725 -function renderChildren(children, context, legacyContext = {}) {
3726 - let result = '';
3727 - children = Array.isArray(children) ? children : [children];
3728 - for (let i = 0; i < children.length; i++) {
3729 - const child = children[i];
3730 - result += renderElement(child, context, legacyContext);
3731 - }
3732 - return result;
3733 -}
3734 -
3735 -/**
3736 - * Renders a props object as a string of HTML attributes.
3737 - *
3738 - * @param {Object} props Props object.
3739 - *
3740 - * @return {string} Attributes string.
3741 - */
3742 -function renderAttributes(props) {
3743 - let result = '';
3744 - for (const key in props) {
3745 - const attribute = getNormalAttributeName(key);
3746 - if (!(0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.isValidAttributeName)(attribute)) {
3747 - continue;
3748 - }
3749 - let value = getNormalAttributeValue(key, props[key]);
3750 -
3751 - // If value is not of serializable type, skip.
3752 - if (!ATTRIBUTES_TYPES.has(typeof value)) {
3753 - continue;
3754 - }
3755 -
3756 - // Don't render internal attribute names.
3757 - if (isInternalAttribute(key)) {
3758 - continue;
3759 - }
3760 - const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute);
3761 -
3762 - // Boolean attribute should be omitted outright if its value is false.
3763 - if (isBooleanAttribute && value === false) {
3764 - continue;
3765 - }
3766 - const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute);
3767 -
3768 - // Only write boolean value as attribute if meaningful.
3769 - if (typeof value === 'boolean' && !isMeaningfulAttribute) {
3770 - continue;
3771 - }
3772 - result += ' ' + attribute;
3773 -
3774 - // Boolean attributes should write attribute name, but without value.
3775 - // Mere presence of attribute name is effective truthiness.
3776 - if (isBooleanAttribute) {
3777 - continue;
3778 - }
3779 - if (typeof value === 'string') {
3780 - value = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(value);
3781 - }
3782 - result += '="' + value + '"';
3783 - }
3784 - return result;
3785 -}
3786 -
3787 -/**
3788 - * Renders a style object as a string attribute value.
3789 - *
3790 - * @param {Object} style Style object.
3791 - *
3792 - * @return {string} Style attribute value.
3793 - */
3794 -function renderStyle(style) {
3795 - // Only generate from object, e.g. tolerate string value.
3796 - if (!(0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(style)) {
3797 - return style;
3798 - }
3799 - let result;
3800 - for (const property in style) {
3801 - const value = style[property];
3802 - if (null === value || undefined === value) {
3803 - continue;
3804 - }
3805 - if (result) {
3806 - result += ';';
3807 - } else {
3808 - result = '';
3809 - }
3810 - const normalName = getNormalStylePropertyName(property);
3811 - const normalValue = getNormalStylePropertyValue(property, value);
3812 - result += normalName + ':' + normalValue;
3813 - }
3814 - return result;
3815 -}
3816 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderElement);
3817 -//# sourceMappingURL=serialize.js.map
3818 -
3819 -/***/ }),
3820 -
3821 -/***/ "../node_modules/@wordpress/element/build-module/utils.js":
3822 -/*!****************************************************************!*\
3823 - !*** ../node_modules/@wordpress/element/build-module/utils.js ***!
3824 - \****************************************************************/
3825 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3826 -
3827 -"use strict";
3828 -__webpack_require__.r(__webpack_exports__);
3829 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3830 -/* harmony export */ isEmptyElement: () => (/* binding */ isEmptyElement)
3831 -/* harmony export */ });
3832 -/**
3833 - * Checks if the provided WP element is empty.
3834 - *
3835 - * @param {*} element WP element to check.
3836 - * @return {boolean} True when an element is considered empty.
3837 - */
3838 -const isEmptyElement = element => {
3839 - if (typeof element === 'number') {
3840 - return false;
3841 - }
3842 - if (typeof element?.valueOf() === 'string' || Array.isArray(element)) {
3843 - return !element.length;
3844 - }
3845 - return !element;
3846 -};
3847 -//# sourceMappingURL=utils.js.map
3848 -
3849 -/***/ }),
3850 -
3851 -/***/ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js":
3852 -/*!*****************************************************************************!*\
3853 - !*** ../node_modules/@wordpress/escape-html/build-module/escape-greater.js ***!
3854 - \*****************************************************************************/
3855 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3856 -
3857 -"use strict";
3858 -__webpack_require__.r(__webpack_exports__);
3859 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3860 -/* harmony export */ "default": () => (/* binding */ __unstableEscapeGreaterThan)
3861 -/* harmony export */ });
3862 -/**
3863 - * Returns a string with greater-than sign replaced.
3864 - *
3865 - * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
3866 - * necessary for `__unstableEscapeGreaterThan` to exist.
3867 - *
3868 - * See: https://core.trac.wordpress.org/ticket/45387
3869 - *
3870 - * @param {string} value Original string.
3871 - *
3872 - * @return {string} Escaped string.
3873 - */
3874 -function __unstableEscapeGreaterThan(value) {
3875 - return value.replace(/>/g, '&gt;');
3876 -}
3877 -//# sourceMappingURL=escape-greater.js.map
3878 -
3879 -/***/ }),
3880 -
3881 -/***/ "../node_modules/@wordpress/escape-html/build-module/index.js":
3882 -/*!********************************************************************!*\
3883 - !*** ../node_modules/@wordpress/escape-html/build-module/index.js ***!
3884 - \********************************************************************/
3885 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3886 -
3887 -"use strict";
3888 -__webpack_require__.r(__webpack_exports__);
3889 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3890 -/* harmony export */ escapeAmpersand: () => (/* binding */ escapeAmpersand),
3891 -/* harmony export */ escapeAttribute: () => (/* binding */ escapeAttribute),
3892 -/* harmony export */ escapeEditableHTML: () => (/* binding */ escapeEditableHTML),
3893 -/* harmony export */ escapeHTML: () => (/* binding */ escapeHTML),
3894 -/* harmony export */ escapeLessThan: () => (/* binding */ escapeLessThan),
3895 -/* harmony export */ escapeQuotationMark: () => (/* binding */ escapeQuotationMark),
3896 -/* harmony export */ isValidAttributeName: () => (/* binding */ isValidAttributeName)
3897 -/* harmony export */ });
3898 -/* harmony import */ var _escape_greater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-greater */ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js");
3899 -/**
3900 - * Internal dependencies
3901 - */
3902 -
3903 -
3904 -/**
3905 - * Regular expression matching invalid attribute names.
3906 - *
3907 - * "Attribute names must consist of one or more characters other than controls,
3908 - * U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=),
3909 - * and noncharacters."
3910 - *
3911 - * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
3912 - *
3913 - * @type {RegExp}
3914 - */
3915 -const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
3916 -
3917 -/**
3918 - * Returns a string with ampersands escaped. Note that this is an imperfect
3919 - * implementation, where only ampersands which do not appear as a pattern of
3920 - * named, decimal, or hexadecimal character references are escaped. Invalid
3921 - * named references (i.e. ambiguous ampersand) are still permitted.
3922 - *
3923 - * @see https://w3c.github.io/html/syntax.html#character-references
3924 - * @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand
3925 - * @see https://w3c.github.io/html/syntax.html#named-character-references
3926 - *
3927 - * @param {string} value Original string.
3928 - *
3929 - * @return {string} Escaped string.
3930 - */
3931 -function escapeAmpersand(value) {
3932 - return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&amp;');
3933 -}
3934 -
3935 -/**
3936 - * Returns a string with quotation marks replaced.
3937 - *
3938 - * @param {string} value Original string.
3939 - *
3940 - * @return {string} Escaped string.
3941 - */
3942 -function escapeQuotationMark(value) {
3943 - return value.replace(/"/g, '&quot;');
3944 -}
3945 -
3946 -/**
3947 - * Returns a string with less-than sign replaced.
3948 - *
3949 - * @param {string} value Original string.
3950 - *
3951 - * @return {string} Escaped string.
3952 - */
3953 -function escapeLessThan(value) {
3954 - return value.replace(/</g, '&lt;');
3955 -}
3956 -
3957 -/**
3958 - * Returns an escaped attribute value.
3959 - *
3960 - * @see https://w3c.github.io/html/syntax.html#elements-attributes
3961 - *
3962 - * "[...] the text cannot contain an ambiguous ampersand [...] must not contain
3963 - * any literal U+0022 QUOTATION MARK characters (")"
3964 - *
3965 - * Note we also escape the greater than symbol, as this is used by wptexturize to
3966 - * split HTML strings. This is a WordPress specific fix
3967 - *
3968 - * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
3969 - * necessary for `__unstableEscapeGreaterThan` to be used.
3970 - *
3971 - * See: https://core.trac.wordpress.org/ticket/45387
3972 - *
3973 - * @param {string} value Attribute value.
3974 - *
3975 - * @return {string} Escaped attribute value.
3976 - */
3977 -function escapeAttribute(value) {
3978 - return (0,_escape_greater__WEBPACK_IMPORTED_MODULE_0__["default"])(escapeQuotationMark(escapeAmpersand(value)));
3979 -}
3980 -
3981 -/**
3982 - * Returns an escaped HTML element value.
3983 - *
3984 - * @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements
3985 - *
3986 - * "the text must not contain the character U+003C LESS-THAN SIGN (<) or an
3987 - * ambiguous ampersand."
3988 - *
3989 - * @param {string} value Element value.
3990 - *
3991 - * @return {string} Escaped HTML element value.
3992 - */
3993 -function escapeHTML(value) {
3994 - return escapeLessThan(escapeAmpersand(value));
3995 -}
3996 -
3997 -/**
3998 - * Returns an escaped Editable HTML element value. This is different from
3999 - * `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in
4000 - * order to render the content correctly on the page.
4001 - *
4002 - * @param {string} value Element value.
4003 - *
4004 - * @return {string} Escaped HTML element value.
4005 - */
4006 -function escapeEditableHTML(value) {
4007 - return escapeLessThan(value.replace(/&/g, '&amp;'));
4008 -}
4009 -
4010 -/**
4011 - * Returns true if the given attribute name is valid, or false otherwise.
4012 - *
4013 - * @param {string} name Attribute name to test.
4014 - *
4015 - * @return {boolean} Whether attribute is valid.
4016 - */
4017 -function isValidAttributeName(name) {
4018 - return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name);
4019 -}
4020 -//# sourceMappingURL=index.js.map
4021 -
4022 -/***/ }),
4023 -
4024 -/***/ "../node_modules/dot-case/dist.es2015/index.js":
4025 -/*!*****************************************************!*\
4026 - !*** ../node_modules/dot-case/dist.es2015/index.js ***!
4027 - \*****************************************************/
4028 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4029 -
4030 -"use strict";
4031 -__webpack_require__.r(__webpack_exports__);
4032 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4033 -/* harmony export */ dotCase: () => (/* binding */ dotCase)
4034 -/* harmony export */ });
4035 -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs");
4036 -/* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! no-case */ "../node_modules/no-case/dist.es2015/index.js");
4037 -
4038 -
4039 -function dotCase(input, options) {
4040 - if (options === void 0) { options = {}; }
4041 - return (0,no_case__WEBPACK_IMPORTED_MODULE_1__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "." }, options));
4042 -}
4043 -//# sourceMappingURL=index.js.map
4044 -
4045 -/***/ }),
4046 -
4047 -/***/ "../node_modules/is-plain-object/dist/is-plain-object.mjs":
4048 -/*!****************************************************************!*\
4049 - !*** ../node_modules/is-plain-object/dist/is-plain-object.mjs ***!
4050 - \****************************************************************/
4051 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4052 -
4053 -"use strict";
4054 -__webpack_require__.r(__webpack_exports__);
4055 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4056 -/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject)
4057 -/* harmony export */ });
4058 -/*!
4059 - * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4060 - *
4061 - * Copyright (c) 2014-2017, Jon Schlinkert.
4062 - * Released under the MIT License.
4063 - */
4064 -
4065 -function isObject(o) {
4066 - return Object.prototype.toString.call(o) === '[object Object]';
4067 -}
4068 -
4069 -function isPlainObject(o) {
4070 - var ctor,prot;
4071 -
4072 - if (isObject(o) === false) return false;
4073 -
4074 - // If has modified constructor
4075 - ctor = o.constructor;
4076 - if (ctor === undefined) return true;
4077 -
4078 - // If has modified prototype
4079 - prot = ctor.prototype;
4080 - if (isObject(prot) === false) return false;
4081 -
4082 - // If constructor does not have an Object-specific method
4083 - if (prot.hasOwnProperty('isPrototypeOf') === false) {
4084 - return false;
4085 - }
4086 -
4087 - // Most likely a plain Object
4088 - return true;
4089 -}
4090 -
4091 -
4092 -
4093 -
4094 -/***/ }),
4095 -
4096 -/***/ "../node_modules/lower-case/dist.es2015/index.js":
4097 -/*!*******************************************************!*\
4098 - !*** ../node_modules/lower-case/dist.es2015/index.js ***!
4099 - \*******************************************************/
4100 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4101 -
4102 -"use strict";
4103 -__webpack_require__.r(__webpack_exports__);
4104 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4105 -/* harmony export */ localeLowerCase: () => (/* binding */ localeLowerCase),
4106 -/* harmony export */ lowerCase: () => (/* binding */ lowerCase)
4107 -/* harmony export */ });
4108 -/**
4109 - * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
4110 - */
4111 -var SUPPORTED_LOCALE = {
4112 - tr: {
4113 - regexp: /\u0130|\u0049|\u0049\u0307/g,
4114 - map: {
4115 - İ: "\u0069",
4116 - I: "\u0131",
4117 - İ: "\u0069",
4118 - },
4119 - },
4120 - az: {
4121 - regexp: /\u0130/g,
4122 - map: {
4123 - İ: "\u0069",
4124 - I: "\u0131",
4125 - İ: "\u0069",
4126 - },
4127 - },
4128 - lt: {
4129 - regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
4130 - map: {
4131 - I: "\u0069\u0307",
4132 - J: "\u006A\u0307",
4133 - Į: "\u012F\u0307",
4134 - Ì: "\u0069\u0307\u0300",
4135 - Í: "\u0069\u0307\u0301",
4136 - Ĩ: "\u0069\u0307\u0303",
4137 - },
4138 - },
4139 -};
4140 -/**
4141 - * Localized lower case.
4142 - */
4143 -function localeLowerCase(str, locale) {
4144 - var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
4145 - if (lang)
4146 - return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
4147 - return lowerCase(str);
4148 -}
4149 -/**
4150 - * Lower case as a function.
4151 - */
4152 -function lowerCase(str) {
4153 - return str.toLowerCase();
4154 -}
4155 -//# sourceMappingURL=index.js.map
4156 -
4157 -/***/ }),
4158 -
4159 -/***/ "../node_modules/no-case/dist.es2015/index.js":
4160 -/*!****************************************************!*\
4161 - !*** ../node_modules/no-case/dist.es2015/index.js ***!
4162 - \****************************************************/
4163 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4164 -
4165 -"use strict";
4166 -__webpack_require__.r(__webpack_exports__);
4167 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4168 -/* harmony export */ noCase: () => (/* binding */ noCase)
4169 -/* harmony export */ });
4170 -/* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "../node_modules/lower-case/dist.es2015/index.js");
4171 -
4172 -// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
4173 -var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
4174 -// Remove all non-word characters.
4175 -var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
4176 -/**
4177 - * Normalize the string into something other libraries can manipulate easier.
4178 - */
4179 -function noCase(input, options) {
4180 - if (options === void 0) { options = {}; }
4181 - 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;
4182 - var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
4183 - var start = 0;
4184 - var end = result.length;
4185 - // Trim the delimiter from around the output string.
4186 - while (result.charAt(start) === "\0")
4187 - start++;
4188 - while (result.charAt(end - 1) === "\0")
4189 - end--;
4190 - // Transform each token independently.
4191 - return result.slice(start, end).split("\0").map(transform).join(delimiter);
4192 -}
4193 -/**
4194 - * Replace `re` in the input string with the replacement value.
4195 - */
4196 -function replace(input, re, value) {
4197 - if (re instanceof RegExp)
4198 - return input.replace(re, value);
4199 - return re.reduce(function (input, re) { return input.replace(re, value); }, input);
4200 -}
4201 -//# sourceMappingURL=index.js.map
4202 -
4203 -/***/ }),
4204 -
4205 -/***/ "../node_modules/object-assign/index.js":
4206 -/*!**********************************************!*\
4207 - !*** ../node_modules/object-assign/index.js ***!
4208 - \**********************************************/
4209 -/***/ ((module) => {
4210 -
4211 -"use strict";
4212 -/*
4213 -object-assign
4214 -(c) Sindre Sorhus
4215 -@license MIT
4216 -*/
4217 -
4218 -
4219 -/* eslint-disable no-unused-vars */
4220 -var getOwnPropertySymbols = Object.getOwnPropertySymbols;
4221 -var hasOwnProperty = Object.prototype.hasOwnProperty;
4222 -var propIsEnumerable = Object.prototype.propertyIsEnumerable;
4223 -
4224 -function toObject(val) {
4225 - if (val === null || val === undefined) {
4226 - throw new TypeError('Object.assign cannot be called with null or undefined');
926 +//#endregion
927 +//#region node_modules/@babel/runtime/helpers/esm/createClass.js
928 + function _defineProperties(e, r) {
929 + for (var t = 0; t < r.length; t++) {
930 + var o = r[t];
931 + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
932 + }
4227 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 + }
4228 937
4229 - return Object(val);
4230 -}
4231 -
4232 -function shouldUseNative() {
4233 - try {
4234 - if (!Object.assign) {
4235 - return false;
938 +//#endregion
939 +//#region modules/editor-one/assets/js/sidebar-navigation/classes/menu-active-state-resolver.js
940 + var MenuActiveStateResolver = /*#__PURE__*/ function() {
941 + function MenuActiveStateResolver(activeMenuSlug, activeChildSlug) {
942 + _classCallCheck(this, MenuActiveStateResolver);
943 + this.activeMenuSlug = activeMenuSlug;
944 + this.activeChildSlug = activeChildSlug;
4236 945 }
946 + return _createClass(MenuActiveStateResolver, [{
947 + key: "isMenuActive",
948 + value: function isMenuActive(item) {
949 + return item.slug === this.activeMenuSlug;
950 + }
951 + }, {
952 + key: "isChildActive",
953 + value: function isChildActive(childItem) {
954 + return childItem.slug === this.activeChildSlug;
955 + }
956 + }]);
957 + }();
4237 958
4238 - // Detect buggy property enumeration order in older V8 versions.
959 +//#endregion
960 +//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
961 + function _defineProperty(e, r, t) {
962 + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
963 + value: t,
964 + enumerable: !0,
965 + configurable: !0,
966 + writable: !0
967 + }) : e[r] = t, e;
968 + }
4239 969
4240 - // https://bugs.chromium.org/p/v8/issues/detail?id=4118
4241 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
4242 - test1[5] = 'de';
4243 - if (Object.getOwnPropertyNames(test1)[0] === '5') {
4244 - return false;
970 +//#endregion
971 +//#region assets/dev/js/editor/utils/editor-one-events.js
972 + function ownKeys(e, r) {
973 + var t = Object.keys(e);
974 + if (Object.getOwnPropertySymbols) {
975 + var o = Object.getOwnPropertySymbols(e);
976 + r && (o = o.filter(function(r) {
977 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
978 + })), t.push.apply(t, o);
4245 979 }
4246 -
4247 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4248 - var test2 = {};
4249 - for (var i = 0; i < 10; i++) {
4250 - test2['_' + String.fromCharCode(i)] = i;
980 + return t;
981 + }
982 + function _objectSpread(e) {
983 + for (var r = 1; r < arguments.length; r++) {
984 + var t = null != arguments[r] ? arguments[r] : {};
985 + r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
986 + _defineProperty(e, r, t[r]);
987 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
988 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
989 + });
4251 990 }
4252 - var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
4253 - return test2[n];
4254 - });
4255 - if (order2.join('') !== '0123456789') {
4256 - return false;
4257 - }
4258 -
4259 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4260 - var test3 = {};
4261 - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
4262 - test3[letter] = letter;
4263 - });
4264 - if (Object.keys(Object.assign({}, test3)).join('') !==
4265 - 'abcdefghijklmnopqrst') {
4266 - return false;
4267 - }
4268 -
4269 - return true;
4270 - } catch (err) {
4271 - // We don't expect any of the above to throw, but better to be safe.
4272 - return false;
991 + return e;
4273 992 }
4274 -}
4275 -
4276 -module.exports = shouldUseNative() ? Object.assign : function (target, source) {
4277 - var from;
4278 - var to = toObject(target);
4279 - var symbols;
4280 -
4281 - for (var s = 1; s < arguments.length; s++) {
4282 - from = Object(arguments[s]);
4283 -
4284 - for (var key in from) {
4285 - if (hasOwnProperty.call(from, key)) {
4286 - to[key] = from[key];
4287 - }
993 + var EditorOneEventManager = /*#__PURE__*/ function() {
994 + function EditorOneEventManager() {
995 + _classCallCheck(this, EditorOneEventManager);
4288 996 }
4289 -
4290 - if (getOwnPropertySymbols) {
4291 - symbols = getOwnPropertySymbols(from);
4292 - for (var i = 0; i < symbols.length; i++) {
4293 - if (propIsEnumerable.call(from, symbols[i])) {
4294 - to[symbols[i]] = from[symbols[i]];
997 + return _createClass(EditorOneEventManager, null, [
998 + {
999 + key: "getEventsManager",
1000 + value: function getEventsManager() {
1001 + var _elementorCommon;
1002 + return (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.eventsManager;
4295 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 + }
4296 1521 }
4297 - }
4298 - }
1522 + ]);
1523 + }();
4299 1524
4300 - return to;
4301 -};
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 + };
4302 1542
1543 +//#endregion
1544 +//#region modules/editor-one/assets/js/sidebar-navigation/components/shared/icon-map.js
1545 + var ICON_MAP = {
1546 + adjustments: _elementor_icons_AdjustmentsIcon.default,
1547 + folder: _elementor_icons_FolderIcon.default,
1548 + home: _elementor_icons_RocketIcon.default,
1549 + send: _elementor_icons_SendIcon.default,
1550 + settings: _elementor_icons_SettingsIcon.default,
1551 + tool: ToolIcon,
1552 + users: _elementor_icons_UsersIcon.default,
1553 + extension: _elementor_icons_PlugIcon.default,
1554 + "file-settings": _elementor_icons_FileSettingsIcon.default
1555 + };
1556 + var DEFAULT_ICON = _elementor_icons_HomeIcon.default;
4303 1557
4304 -/***/ }),
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 + }
4305 1565
4306 -/***/ "../node_modules/param-case/dist.es2015/index.js":
4307 -/*!*******************************************************!*\
4308 - !*** ../node_modules/param-case/dist.es2015/index.js ***!
4309 - \*******************************************************/
4310 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1566 +//#endregion
1567 +//#region modules/editor-one/assets/js/sidebar-navigation/components/shared/styled-components.js
1568 + var NavContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref) {
1569 + var theme = _ref.theme;
1570 + return {
1571 + display: "flex",
1572 + flexDirection: "column",
1573 + height: "100%",
1574 + backgroundColor: theme.palette.background.paper,
1575 + borderInlineEnd: "1px solid ".concat(theme.palette.divider)
1576 + };
1577 + });
1578 + var SiteIconBox = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref2) {
1579 + var theme = _ref2.theme;
1580 + return {
1581 + width: 40,
1582 + height: 40,
1583 + borderRadius: theme.shape.borderRadius * 2,
1584 + border: "1px solid ".concat(theme.palette.divider),
1585 + display: "flex",
1586 + alignItems: "center",
1587 + justifyContent: "center",
1588 + backgroundColor: theme.palette.background.paper,
1589 + color: theme.palette.action.active,
1590 + "& svg": { fontSize: 24 }
1591 + };
1592 + });
1593 + var CollapseButton = (0, _elementor_ui.styled)(_elementor_ui.IconButton, { shouldForwardProp: function shouldForwardProp(prop) {
1594 + return prop !== "expanded";
1595 + } })(function(_ref3) {
1596 + var theme = _ref3.theme;
1597 + var expanded = _ref3.expanded;
1598 + var isRtlLanguage = isRTL();
1599 + var transform = "none";
1600 + if (expanded && isRtlLanguage) transform = "rotate(180deg) scaleX(-1)";
1601 + else if (expanded) transform = "rotate(180deg)";
1602 + else if (isRtlLanguage) transform = "scaleX(-1)";
1603 + return {
1604 + position: "absolute",
1605 + insetInlineEnd: -28,
1606 + bottom: -12,
1607 + width: 24,
1608 + height: 24,
1609 + backgroundColor: theme.palette.background.paper,
1610 + border: "1px solid ".concat(theme.palette.divider),
1611 + color: theme.palette.action.active,
1612 + zIndex: 1,
1613 + "&:hover": { backgroundColor: theme.palette.background.paper },
1614 + "& svg": {
1615 + fontSize: 16,
1616 + transform
1617 + }
1618 + };
1619 + });
1620 + var ScrollableContent = (0, _elementor_ui.styled)(_elementor_ui.Box)({
1621 + flex: 1,
1622 + overflowY: "auto",
1623 + overflowX: "hidden"
1624 + });
1625 + var MenuList = (0, _elementor_ui.styled)(_elementor_ui.List)(function(_ref4) {
1626 + return { padding: _ref4.theme.spacing(2) };
1627 + });
1628 + var MenuItemButton = (0, _elementor_ui.styled)(_elementor_ui.ListItemButton)(function(_ref5) {
1629 + var theme = _ref5.theme;
1630 + return {
1631 + paddingLeft: theme.spacing(1),
1632 + paddingRight: theme.spacing(1),
1633 + marginBottom: 0,
1634 + paddingBottom: theme.spacing(.5),
1635 + whiteSpace: "nowrap",
1636 + justifyContent: "center",
1637 + borderRadius: 4
1638 + };
1639 + });
1640 + var MenuIcon = (0, _elementor_ui.styled)(_elementor_ui.ListItemIcon)(function(_ref6) {
1641 + return {
1642 + minWidth: "auto",
1643 + color: _ref6.theme.palette.text.primary,
1644 + margin: 0,
1645 + display: "flex",
1646 + justifyContent: "center",
1647 + "& svg": { fontSize: 20 }
1648 + };
1649 + });
1650 + var ChildMenuItemButton = (0, _elementor_ui.styled)(_elementor_ui.ListItemButton)(function(_ref7) {
1651 + var theme = _ref7.theme;
1652 + return {
1653 + paddingLeft: theme.spacing(6),
1654 + paddingRight: theme.spacing(2),
1655 + minHeight: 32,
1656 + whiteSpace: "nowrap",
1657 + borderRadius: 4
1658 + };
1659 + });
1660 + var ChildListItem = (0, _elementor_ui.styled)(_elementor_ui.ListItem)({ maxHeight: 32 });
1661 + var ExpandIcon = (0, _elementor_ui.styled)(_elementor_icons_ChevronDownSmallIcon.default, { shouldForwardProp: function shouldForwardProp(prop) {
1662 + return prop !== "expanded";
1663 + } })(function(_ref8) {
1664 + return {
1665 + fontSize: 20,
1666 + transform: _ref8.expanded ? "rotate(180deg)" : "rotate(0deg)",
1667 + transition: "transform 0.2s"
1668 + };
1669 + });
1670 + var CollapsedMenuItemContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref9) {
1671 + return {
1672 + display: "flex",
1673 + justifyContent: "center",
1674 + marginBottom: _ref9.theme.spacing(.5)
1675 + };
1676 + });
1677 + var CollapsedIconButton = (0, _elementor_ui.styled)(_elementor_ui.IconButton, { shouldForwardProp: function shouldForwardProp(prop) {
1678 + return prop !== "isHighlighted";
1679 + } })(function(_ref0) {
1680 + var theme = _ref0.theme;
1681 + var isHighlighted = _ref0.isHighlighted;
1682 + return {
1683 + width: 36,
1684 + height: 36,
1685 + borderRadius: theme.shape.borderRadius,
1686 + backgroundColor: isHighlighted ? theme.palette.action.selected : "transparent",
1687 + color: theme.palette.text.primary,
1688 + "&:hover": { backgroundColor: theme.palette.action.hover },
1689 + "& svg": { fontSize: 20 }
1690 + };
1691 + });
1692 + var PopoverTitle = (0, _elementor_ui.styled)(_elementor_ui.ListSubheader)(function(_ref1) {
1693 + return {
1694 + color: _ref1.theme.palette.text.tertiary,
1695 + fontSize: 12,
1696 + fontWeight: 400,
1697 + height: 28
1698 + };
1699 + });
1700 + var PopoverContent = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref10) {
1701 + var theme = _ref10.theme;
1702 + return {
1703 + paddingTop: theme.spacing(1),
1704 + paddingBottom: theme.spacing(1)
1705 + };
1706 + });
1707 + var CollapsedHeaderContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref11) {
1708 + var theme = _ref11.theme;
1709 + return {
1710 + position: "relative",
1711 + display: "flex",
1712 + justifyContent: "center",
1713 + alignItems: "center",
1714 + height: 80,
1715 + marginLeft: theme.spacing(2),
1716 + marginRight: theme.spacing(2),
1717 + borderBottom: "1px solid ".concat(theme.palette.divider)
1718 + };
1719 + });
1720 + var PopoverListItemButton = (0, _elementor_ui.styled)(_elementor_ui.ListItemButton)(function(_ref12) {
1721 + var theme = _ref12.theme;
1722 + return {
1723 + paddingLeft: theme.spacing(2),
1724 + paddingRight: theme.spacing(2),
1725 + paddingTop: theme.spacing(.5),
1726 + paddingBottom: theme.spacing(.5),
1727 + borderRadius: 4
1728 + };
1729 + });
1730 + var StyledPopover = (0, _elementor_ui.styled)(_elementor_ui.Popover)(function(_ref13) {
1731 + var theme = _ref13.theme;
1732 + return {
1733 + pointerEvents: "none",
1734 + "& .MuiPaper-root": {
1735 + marginLeft: theme.spacing(1),
1736 + minWidth: 180,
1737 + borderRadius: theme.shape.borderRadius,
1738 + pointerEvents: "auto"
1739 + }
1740 + };
1741 + });
4311 1742
4312 -"use strict";
4313 -__webpack_require__.r(__webpack_exports__);
4314 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4315 -/* harmony export */ paramCase: () => (/* binding */ paramCase)
4316 -/* harmony export */ });
4317 -/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../node_modules/tslib/tslib.es6.mjs");
4318 -/* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dot-case */ "../node_modules/dot-case/dist.es2015/index.js");
1743 +//#endregion
1744 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js
1745 + var CollapsedMenuItemPopover = function CollapsedMenuItemPopover(_ref) {
1746 + var item = _ref.item;
1747 + var children = _ref.children;
1748 + var activeChildSlug = _ref.activeChildSlug;
1749 + var isPopoverOpen = _ref.isPopoverOpen;
1750 + var anchorEl = _ref.anchorEl;
1751 + var onClose = _ref.onClose;
1752 + var IconComponent = _ref.IconComponent;
1753 + var isActive = _ref.isActive;
1754 + var onMouseEnter = _ref.onMouseEnter;
1755 + var anchorRef = _ref.anchorRef;
1756 + var handleChildClick = function handleChildClick(childItem) {
1757 + EditorOneEventManager.sendSidebarMenuItemClicked({
1758 + eventId: childItem.event_id,
1759 + groupEventId: item.event_id
1760 + });
1761 + };
1762 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
1763 + disablePadding: true,
1764 + dense: true,
1765 + disableGutters: true,
1766 + onMouseEnter,
1767 + ref: anchorRef
1768 + }, /*#__PURE__*/ react.default.createElement(MenuItemButton, {
1769 + selected: isActive || isPopoverOpen,
1770 + sx: { height: 36 }
1771 + }, /*#__PURE__*/ react.default.createElement(MenuIcon, null, /*#__PURE__*/ react.default.createElement(IconComponent, null))), /*#__PURE__*/ react.default.createElement(StyledPopover, {
1772 + open: isPopoverOpen,
1773 + anchorEl,
1774 + onClose,
1775 + anchorOrigin: {
1776 + vertical: "top",
1777 + horizontal: "right"
1778 + },
1779 + transformOrigin: {
1780 + vertical: "top",
1781 + horizontal: "left"
1782 + },
1783 + slotProps: { paper: { onMouseLeave: onClose } },
1784 + disableRestoreFocus: true,
1785 + hideBackdrop: true
1786 + }, /*#__PURE__*/ react.default.createElement(PopoverContent, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.List, {
1787 + disablePadding: true,
1788 + dense: true
1789 + }, /*#__PURE__*/ react.default.createElement(PopoverTitle, null, item.label), children.map(function(childItem) {
1790 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
1791 + key: childItem.slug,
1792 + disablePadding: true,
1793 + disableGutters: true,
1794 + dense: true,
1795 + sx: { height: 28 }
1796 + }, /*#__PURE__*/ react.default.createElement(PopoverListItemButton, {
1797 + component: "a",
1798 + href: childItem.url,
1799 + onClick: function onClick() {
1800 + return handleChildClick(childItem);
1801 + },
1802 + selected: childItem.slug === activeChildSlug
1803 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, {
1804 + primary: childItem.label,
1805 + primaryTypographyProps: { variant: "body2" }
1806 + })));
1807 + })))));
1808 + };
1809 + CollapsedMenuItemPopover.propTypes = {
1810 + item: import_prop_types.default.object.isRequired,
1811 + children: import_prop_types.default.array.isRequired,
1812 + activeChildSlug: import_prop_types.default.string.isRequired,
1813 + isPopoverOpen: import_prop_types.default.bool.isRequired,
1814 + anchorEl: import_prop_types.default.object,
1815 + onClose: import_prop_types.default.func.isRequired,
1816 + IconComponent: import_prop_types.default.elementType.isRequired,
1817 + isActive: import_prop_types.default.bool.isRequired,
1818 + onMouseEnter: import_prop_types.default.func.isRequired,
1819 + anchorRef: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object]).isRequired
1820 + };
4319 1821
1822 +//#endregion
1823 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js
1824 + var CollapsedMenuItemTooltip = function CollapsedMenuItemTooltip(_ref) {
1825 + var item = _ref.item;
1826 + var isActive = _ref.isActive;
1827 + var onClick = _ref.onClick;
1828 + var IconComponent = _ref.IconComponent;
1829 + var onMouseEnter = _ref.onMouseEnter;
1830 + var isRtlLanguage = isRTL();
1831 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
1832 + disablePadding: true,
1833 + dense: true,
1834 + disableGutters: true,
1835 + onMouseEnter
1836 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Tooltip, {
1837 + title: item.label,
1838 + placement: isRtlLanguage ? "left" : "right"
1839 + }, /*#__PURE__*/ react.default.createElement(MenuItemButton, {
1840 + onClick,
1841 + selected: isActive,
1842 + sx: { height: 36 }
1843 + }, /*#__PURE__*/ react.default.createElement(MenuIcon, null, /*#__PURE__*/ react.default.createElement(IconComponent, null)))));
1844 + };
1845 + CollapsedMenuItemTooltip.propTypes = {
1846 + item: import_prop_types.default.object.isRequired,
1847 + isActive: import_prop_types.default.bool.isRequired,
1848 + onClick: import_prop_types.default.func.isRequired,
1849 + IconComponent: import_prop_types.default.elementType.isRequired,
1850 + onMouseEnter: import_prop_types.default.func.isRequired
1851 + };
4320 1852
4321 -function paramCase(input, options) {
4322 - if (options === void 0) { options = {}; }
4323 - return (0,dot_case__WEBPACK_IMPORTED_MODULE_1__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({ delimiter: "-" }, options));
4324 -}
4325 -//# sourceMappingURL=index.js.map
1853 +//#endregion
1854 +//#region modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/sidebar-collapsed-menu-item.js
1855 + var SidebarCollapsedMenuItem = function SidebarCollapsedMenuItem(_ref) {
1856 + var item = _ref.item;
1857 + var isActive = _ref.isActive;
1858 + var _ref$children = _ref.children;
1859 + var children = _ref$children === void 0 ? null : _ref$children;
1860 + var activeChildSlug = _ref.activeChildSlug;
1861 + var isPopoverOpen = _ref.isPopoverOpen;
1862 + var onOpenPopover = _ref.onOpenPopover;
1863 + var onClosePopover = _ref.onClosePopover;
1864 + var _useState2 = _slicedToArray((0, react.useState)(null), 2);
1865 + var anchorEl = _useState2[0];
1866 + var setAnchorEl = _useState2[1];
1867 + var hasChildren = !!(children !== null && children !== void 0 && children.length);
1868 + var IconComponent = ICON_MAP[item.icon] || DEFAULT_ICON;
1869 + var handleMouseEnter = function handleMouseEnter() {
1870 + if (hasChildren) onOpenPopover(item.slug);
1871 + else onClosePopover();
1872 + };
1873 + return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, hasChildren ? /*#__PURE__*/ react.default.createElement(CollapsedMenuItemPopover, {
1874 + item,
1875 + children,
1876 + activeChildSlug,
1877 + isPopoverOpen,
1878 + anchorEl,
1879 + onClose: onClosePopover,
1880 + IconComponent,
1881 + isActive,
1882 + onMouseEnter: handleMouseEnter,
1883 + anchorRef: setAnchorEl
1884 + }) : /*#__PURE__*/ react.default.createElement(CollapsedMenuItemTooltip, {
1885 + item,
1886 + isActive,
1887 + onClick: function handleClick() {
1888 + if (!hasChildren) {
1889 + EditorOneEventManager.sendSidebarMenuItemClicked({ eventId: item.event_id });
1890 + window.location.href = item.url;
1891 + }
1892 + },
1893 + IconComponent,
1894 + onMouseEnter: handleMouseEnter
1895 + }));
1896 + };
1897 + SidebarCollapsedMenuItem.propTypes = {
1898 + item: import_prop_types.default.object.isRequired,
1899 + isActive: import_prop_types.default.bool.isRequired,
1900 + children: import_prop_types.default.array,
1901 + activeChildSlug: import_prop_types.default.string.isRequired,
1902 + isPopoverOpen: import_prop_types.default.bool.isRequired,
1903 + onOpenPopover: import_prop_types.default.func.isRequired,
1904 + onClosePopover: import_prop_types.default.func.isRequired
1905 + };
4326 1906
4327 -/***/ }),
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 + };
4328 1957
4329 -/***/ "../node_modules/prop-types/checkPropTypes.js":
4330 -/*!****************************************************!*\
4331 - !*** ../node_modules/prop-types/checkPropTypes.js ***!
4332 - \****************************************************/
4333 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1958 +//#endregion
1959 +//#region modules/editor-one/assets/js/sidebar-navigation/components/cta/styled-components.js
1960 + var CtaContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref) {
1961 + return { padding: _ref.theme.spacing(2) };
1962 + });
1963 + var CtaButton = (0, _elementor_ui.styled)(_elementor_ui.Button)({
1964 + justifyContent: "center",
1965 + whiteSpace: "nowrap"
1966 + });
1967 + var CollapsedCtaContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref2) {
1968 + return {
1969 + padding: _ref2.theme.spacing(2),
1970 + display: "flex",
1971 + justifyContent: "center",
1972 + alignItems: "center"
1973 + };
1974 + });
1975 + var CollapsedCtaButton = (0, _elementor_ui.styled)("button")(function(_ref3) {
1976 + var theme = _ref3.theme;
1977 + return {
1978 + border: "1px solid ".concat(theme.palette.promotion.main),
1979 + borderRadius: 999,
1980 + width: 24,
1981 + height: 24,
1982 + padding: 0,
1983 + display: "flex",
1984 + alignItems: "center",
1985 + justifyContent: "center",
1986 + background: "transparent",
1987 + cursor: "pointer",
1988 + color: theme.palette.promotion.main,
1989 + transition: "all 0.2s ease-in-out",
1990 + whiteSpace: "nowrap",
1991 + "&:hover": { background: theme.palette.promotion.hover },
1992 + "& svg": {
1993 + width: 18,
1994 + height: 18,
1995 + fill: theme.palette.promotion.main
1996 + }
1997 + };
1998 + });
4334 1999
4335 -"use strict";
4336 -/**
4337 - * Copyright (c) 2013-present, Facebook, Inc.
4338 - *
4339 - * This source code is licensed under the MIT license found in the
4340 - * LICENSE file in the root directory of this source tree.
4341 - */
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 + };
4342 2026
2027 +//#endregion
2028 +//#region modules/editor-one/assets/js/sidebar-navigation/components/header/styled-components.js
2029 + var HeaderContainer = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref) {
2030 + var theme = _ref.theme;
2031 + return {
2032 + position: "relative",
2033 + marginLeft: theme.spacing(2),
2034 + marginRight: theme.spacing(2),
2035 + height: 80,
2036 + borderBottom: "1px solid ".concat(theme.palette.divider),
2037 + display: "flex",
2038 + alignItems: "center"
2039 + };
2040 + });
2041 + var HeaderContent = (0, _elementor_ui.styled)(_elementor_ui.Box)(function(_ref2) {
2042 + return {
2043 + display: "flex",
2044 + alignItems: "center",
2045 + gap: _ref2.theme.spacing(1.5),
2046 + flex: 1
2047 + };
2048 + });
2049 + var SiteTitle = (0, _elementor_ui.styled)(_elementor_ui.Typography)({
2050 + fontWeight: 500,
2051 + flex: 1
2052 + });
2053 + var SearchButton = (0, _elementor_ui.styled)(_elementor_ui.IconButton)(function(_ref3) {
2054 + return {
2055 + fontSize: 20,
2056 + color: _ref3.theme.palette.action.active
2057 + };
2058 + });
4343 2059
2060 +//#endregion
2061 +//#region modules/editor-one/assets/js/sidebar-navigation/components/header/sidebar-header.js
2062 + var SidebarHeader = function SidebarHeader(_ref) {
2063 + var siteTitle = _ref.siteTitle;
2064 + var onCollapse = _ref.onCollapse;
2065 + return /*#__PURE__*/ react.default.createElement(HeaderContainer, null, /*#__PURE__*/ react.default.createElement(HeaderContent, null, /*#__PURE__*/ react.default.createElement(SiteIconBox, null, /*#__PURE__*/ react.default.createElement(EditorIcon, null)), /*#__PURE__*/ react.default.createElement(SiteTitle, { variant: "subtitle1" }, siteTitle), /*#__PURE__*/ react.default.createElement(SearchButton, { onClick: function finderAction() {
2066 + $e.route("finder");
2067 + } }, /*#__PURE__*/ react.default.createElement(_elementor_icons_SearchIcon.default, null))), /*#__PURE__*/ react.default.createElement(CollapseButton, {
2068 + onClick: onCollapse,
2069 + size: "small",
2070 + expanded: true
2071 + }, /*#__PURE__*/ react.default.createElement(_elementor_icons_ChevronRightIcon.default, null)));
2072 + };
2073 + SidebarHeader.propTypes = {
2074 + siteTitle: import_prop_types.default.string.isRequired,
2075 + onCollapse: import_prop_types.default.func.isRequired
2076 + };
4344 2077
4345 -var printWarning = function() {};
2078 +//#endregion
2079 +//#region modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu-item.js
2080 + var STORAGE_KEY_PREFIX = "elementor_sidebar_menu_expanded_v2_";
2081 + var SidebarMenuItem = function SidebarMenuItem(_ref) {
2082 + var item = _ref.item;
2083 + var isActive = _ref.isActive;
2084 + var children = _ref.children;
2085 + var activeChildSlug = _ref.activeChildSlug;
2086 + var hasChildren = !!(children !== null && children !== void 0 && children.length);
2087 + var IconComponent = ICON_MAP[item.icon] || DEFAULT_ICON;
2088 + var _useState2 = _slicedToArray((0, react.useState)(function() {
2089 + if (!hasChildren) return false;
2090 + var storageKey = "".concat(STORAGE_KEY_PREFIX).concat(item.slug);
2091 + if (children.some(function(child) {
2092 + return child.slug === activeChildSlug;
2093 + })) {
2094 + localStorage.setItem(storageKey, "true");
2095 + return true;
2096 + }
2097 + var stored = localStorage.getItem(storageKey);
2098 + if (null === stored) return true;
2099 + return "true" === stored;
2100 + }), 2);
2101 + var isExpanded = _useState2[0];
2102 + var setIsExpanded = _useState2[1];
2103 + var handleClick = (0, react.useCallback)(function() {
2104 + if (hasChildren) {
2105 + var newState = !isExpanded;
2106 + setIsExpanded(newState);
2107 + localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
2108 + EditorOneEventManager.sendSidebarMenuGroupToggled({
2109 + eventId: item.event_id,
2110 + isExpanded: newState
2111 + });
2112 + return;
2113 + }
2114 + EditorOneEventManager.sendSidebarMenuItemClicked({ eventId: item.event_id });
2115 + window.location.href = item.url;
2116 + }, [
2117 + hasChildren,
2118 + isExpanded,
2119 + item.event_id,
2120 + item.slug,
2121 + item.url
2122 + ]);
2123 + var handleChildClick = (0, react.useCallback)(function(childItem) {
2124 + EditorOneEventManager.sendSidebarMenuItemClicked({
2125 + eventId: childItem.event_id,
2126 + groupEventId: item.event_id
2127 + });
2128 + }, [item.event_id]);
2129 + return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
2130 + disablePadding: true,
2131 + dense: true,
2132 + disableGutters: true
2133 + }, /*#__PURE__*/ react.default.createElement(MenuItemButton, {
2134 + onClick: handleClick,
2135 + selected: isActive && !hasChildren
2136 + }, /*#__PURE__*/ react.default.createElement(MenuIcon, null, /*#__PURE__*/ react.default.createElement(IconComponent, null)), /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, {
2137 + primary: item.label,
2138 + primaryTypographyProps: { variant: "body2" }
2139 + }), hasChildren && /*#__PURE__*/ react.default.createElement(ExpandIcon, { expanded: isExpanded }))), hasChildren && /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, {
2140 + in: isExpanded,
2141 + timeout: "auto",
2142 + unmountOnExit: true
2143 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.List, { disablePadding: true }, children.map(function(childItem) {
2144 + return /*#__PURE__*/ react.default.createElement(ChildListItem, {
2145 + key: childItem.slug,
2146 + disablePadding: true,
2147 + dense: true,
2148 + disableGutters: true
2149 + }, /*#__PURE__*/ react.default.createElement(ChildMenuItemButton, {
2150 + component: "a",
2151 + href: childItem.url,
2152 + onClick: function onClick() {
2153 + return handleChildClick(childItem);
2154 + },
2155 + selected: childItem.slug === activeChildSlug
2156 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, {
2157 + primary: childItem.label,
2158 + primaryTypographyProps: {
2159 + variant: "body2",
2160 + color: "text.secondary"
2161 + }
2162 + })));
2163 + }))));
2164 + };
2165 + SidebarMenuItem.propTypes = {
2166 + item: import_prop_types.default.object.isRequired,
2167 + isActive: import_prop_types.default.bool.isRequired,
2168 + children: import_prop_types.default.array,
2169 + activeChildSlug: import_prop_types.default.string.isRequired
2170 + };
4346 2171
4347 -if (true) {
4348 - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
4349 - var loggedTypeFailures = {};
4350 - var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
2172 +//#endregion
2173 +//#region modules/editor-one/assets/js/sidebar-navigation/components/menu/sidebar-menu.js
2174 + var SidebarMenu = function SidebarMenu(_ref) {
2175 + var menuItems = _ref.menuItems;
2176 + var level4Groups = _ref.level4Groups;
2177 + var activeMenuSlug = _ref.activeMenuSlug;
2178 + var activeChildSlug = _ref.activeChildSlug;
2179 + var activeStateResolver = (0, react.useMemo)(function() {
2180 + return new MenuActiveStateResolver(activeMenuSlug, activeChildSlug);
2181 + }, [activeMenuSlug, activeChildSlug]);
2182 + var getChildren = function getChildren(item) {
2183 + if (!item.group_id) return null;
2184 + var group = level4Groups[item.group_id];
2185 + if (!group || !group.items || !group.items.length) return null;
2186 + return group.items;
2187 + };
2188 + return /*#__PURE__*/ react.default.createElement(MenuList, null, menuItems.map(function(item) {
2189 + return /*#__PURE__*/ react.default.createElement(react.Fragment, { key: item.slug }, item.has_divider_before && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }), /*#__PURE__*/ react.default.createElement(SidebarMenuItem, {
2190 + item,
2191 + isActive: activeStateResolver.isMenuActive(item),
2192 + activeChildSlug
2193 + }, getChildren(item)));
2194 + }));
2195 + };
2196 + SidebarMenu.propTypes = {
2197 + menuItems: import_prop_types.default.array.isRequired,
2198 + level4Groups: import_prop_types.default.object.isRequired,
2199 + activeMenuSlug: import_prop_types.default.string.isRequired,
2200 + activeChildSlug: import_prop_types.default.string.isRequired
2201 + };
4351 2202
4352 - printWarning = function(text) {
4353 - var message = 'Warning: ' + text;
4354 - if (typeof console !== 'undefined') {
4355 - console.error(message);
4356 - }
4357 - try {
4358 - // --- Welcome to debugging React ---
4359 - // This error was thrown as a convenience so that you can use this stack
4360 - // to find the callsite that caused this warning to fire.
4361 - throw new Error(message);
4362 - } catch (x) { /**/ }
4363 - };
4364 -}
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 + };
4365 2253
4366 -/**
4367 - * Assert that the values match with the type specs.
4368 - * Error messages are memorized and will only be shown once.
4369 - *
4370 - * @param {object} typeSpecs Map of name to a ReactPropType
4371 - * @param {object} values Runtime values that need to be type-checked
4372 - * @param {string} location e.g. "prop", "context", "child context"
4373 - * @param {string} componentName Name of the component for error messages.
4374 - * @param {?Function} getStack Returns the component stack.
4375 - * @private
4376 - */
4377 -function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
4378 - if (true) {
4379 - for (var typeSpecName in typeSpecs) {
4380 - if (has(typeSpecs, typeSpecName)) {
4381 - var error;
4382 - // Prop type validation may throw. In case they do, we don't want to
4383 - // fail the render phase where it didn't fail before. So we log it.
4384 - // After these have been cleaned up, we'll let them throw.
4385 - try {
4386 - // This is intentionally an invariant that gets caught. It's the same
4387 - // behavior as without this statement except with a better message.
4388 - if (typeof typeSpecs[typeSpecName] !== 'function') {
4389 - var err = Error(
4390 - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
4391 - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
4392 - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
4393 - );
4394 - err.name = 'Invariant Violation';
4395 - throw err;
4396 - }
4397 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
4398 - } catch (ex) {
4399 - error = ex;
4400 - }
4401 - if (error && !(error instanceof Error)) {
4402 - printWarning(
4403 - (componentName || 'React class') + ': type specification of ' +
4404 - location + ' `' + typeSpecName + '` is invalid; the type checker ' +
4405 - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
4406 - 'You may have forgotten to pass an argument to the type checker ' +
4407 - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
4408 - 'shape all require an argument).'
4409 - );
4410 - }
4411 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
4412 - // Only monitor this failure once because there tends to be a lot of the
4413 - // same error.
4414 - loggedTypeFailures[error.message] = true;
2254 +//#endregion
2255 +//#region modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js
2256 + var ADMIN_MENU_WRAP_ID = "adminmenuwrap";
2257 + var WPCONTENT_ID = "wpcontent";
2258 + var EDITOR_ONE_TOP_BAR_ID = "editor-one-top-bar";
2259 + var WPADMINBAR_ID = "wpadminbar";
2260 + var INITIALIZED_DATA_ATTR = "data-editor-one-offset-initialized";
2261 + var WPFOOTER_ID = "wpfooter";
2262 + var WPBODY_CONTENT_ID = "wpbody-content";
2263 + var useAdminMenuOffset = function useAdminMenuOffset() {
2264 + var cleanupRef = (0, react.useRef)(null);
2265 + (0, react.useEffect)(function() {
2266 + var adminMenuWrap = document.getElementById(ADMIN_MENU_WRAP_ID);
2267 + var wpcontent = document.getElementById(WPCONTENT_ID);
2268 + if (!adminMenuWrap || !wpcontent || wpcontent.hasAttribute(INITIALIZED_DATA_ATTR)) return;
2269 + var wpfooter = document.getElementById(WPFOOTER_ID);
2270 + var wpbodyContent = document.getElementById(WPBODY_CONTENT_ID);
2271 + wpbodyContent === null || wpbodyContent === void 0 || wpbodyContent.insertBefore(wpfooter, wpbodyContent.querySelector(":scope > .clear"));
2272 + var wpAdminBar = document.getElementById(WPADMINBAR_ID);
2273 + var updateOffset = function updateOffset() {
2274 + var _document$getElementB;
2275 + var _wpAdminBar$clientHei;
2276 + var _topBarHeader$clientH;
2277 + var topBarHeader = (_document$getElementB = document.getElementById(EDITOR_ONE_TOP_BAR_ID)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.querySelector(":scope > header");
2278 + var isRtlLanguage = isRTL();
2279 + var rect = adminMenuWrap.getBoundingClientRect();
2280 + var offset = isRtlLanguage ? document.documentElement.clientWidth - rect.left : rect.right;
2281 + var adminBarHeightPx = "".concat((_wpAdminBar$clientHei = wpAdminBar === null || wpAdminBar === void 0 ? void 0 : wpAdminBar.clientHeight) !== null && _wpAdminBar$clientHei !== void 0 ? _wpAdminBar$clientHei : 0, "px");
2282 + var topBarHeaderHeightPx = "".concat((_topBarHeader$clientH = topBarHeader === null || topBarHeader === void 0 ? void 0 : topBarHeader.clientHeight) !== null && _topBarHeader$clientH !== void 0 ? _topBarHeader$clientH : 0, "px");
2283 + wpcontent.style.setProperty("--editor-one-sidebar-left-offset", "".concat(offset, "px"));
2284 + wpcontent.style.setProperty("--e-admin-bar-height", adminBarHeightPx);
2285 + wpcontent.style.setProperty("--e-top-bar-header-height", topBarHeaderHeightPx);
2286 + };
2287 + updateOffset();
2288 + var resizeObserver = new ResizeObserver(updateOffset);
2289 + resizeObserver.observe(wpcontent);
2290 + var topBar = document.getElementById(EDITOR_ONE_TOP_BAR_ID);
2291 + if (topBar) resizeObserver.observe(topBar);
2292 + window.addEventListener("resize", updateOffset);
2293 + wpcontent.setAttribute(INITIALIZED_DATA_ATTR, "true");
2294 + cleanupRef.current = function() {
2295 + resizeObserver.disconnect();
2296 + window.removeEventListener("resize", updateOffset);
2297 + wpcontent.removeAttribute(INITIALIZED_DATA_ATTR);
2298 + };
2299 + return function() {
2300 + if (cleanupRef.current) {
2301 + cleanupRef.current();
2302 + cleanupRef.current = null;
2303 + }
2304 + };
2305 + }, []);
2306 + };
4415 2307
4416 - var stack = getStack ? getStack() : '';
2308 +//#endregion
2309 +//#region modules/editor-one/assets/js/sidebar-navigation/components/sidebar-navigation.js
2310 + var SidebarNavigation = function SidebarNavigation(_ref) {
2311 + var config = _ref.config;
2312 + var _useSidebarCollapse = useSidebarCollapse();
2313 + var isCollapsed = _useSidebarCollapse.isCollapsed;
2314 + var toggleCollapse = _useSidebarCollapse.toggleCollapse;
2315 + useAdminMenuOffset();
2316 + if (isCollapsed) return /*#__PURE__*/ react.default.createElement(NavContainer, {
2317 + component: "nav",
2318 + collapsed: true
2319 + }, /*#__PURE__*/ react.default.createElement(CollapsedHeaderContainer, null, /*#__PURE__*/ react.default.createElement(SiteIconBox, null, /*#__PURE__*/ react.default.createElement(EditorIcon, null)), /*#__PURE__*/ react.default.createElement(CollapseButton, {
2320 + onClick: toggleCollapse,
2321 + size: "small"
2322 + }, /*#__PURE__*/ react.default.createElement(_elementor_icons_ChevronRightIcon.default, null))), /*#__PURE__*/ react.default.createElement(ScrollableContent, null, /*#__PURE__*/ react.default.createElement(SidebarCollapsedMenu, {
2323 + menuItems: config.menuItems,
2324 + level4Groups: config.level4Groups,
2325 + activeMenuSlug: config.activeMenuSlug,
2326 + activeChildSlug: config.activeChildSlug
2327 + })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null), /*#__PURE__*/ react.default.createElement(SidebarUpgradeCta, {
2328 + upgradeUrl: config.upgradeUrl,
2329 + upgradeText: config.upgradeText,
2330 + hasPro: config.hasPro,
2331 + collapsed: true
2332 + }));
2333 + return /*#__PURE__*/ react.default.createElement(NavContainer, { component: "nav" }, /*#__PURE__*/ react.default.createElement(SidebarHeader, {
2334 + siteTitle: config.siteTitle,
2335 + onCollapse: toggleCollapse
2336 + }), /*#__PURE__*/ react.default.createElement(ScrollableContent, null, /*#__PURE__*/ react.default.createElement(SidebarMenu, {
2337 + menuItems: config.menuItems,
2338 + level4Groups: config.level4Groups,
2339 + activeMenuSlug: config.activeMenuSlug,
2340 + activeChildSlug: config.activeChildSlug
2341 + })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null), /*#__PURE__*/ react.default.createElement(SidebarUpgradeCta, {
2342 + upgradeUrl: config.upgradeUrl,
2343 + upgradeText: config.upgradeText,
2344 + hasPro: config.hasPro
2345 + }));
2346 + };
2347 + SidebarNavigation.propTypes = { config: import_prop_types.default.object.isRequired };
4417 2348
4418 - printWarning(
4419 - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
4420 - );
4421 - }
4422 - }
4423 - }
4424 - }
4425 -}
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);
4426 2359
4427 -/**
4428 - * Resets warning cache when testing.
4429 - *
4430 - * @private
4431 - */
4432 -checkPropTypes.resetWarningCache = function() {
4433 - if (true) {
4434 - loggedTypeFailures = {};
4435 - }
4436 -}
4437 -
4438 -module.exports = checkPropTypes;
4439 -
4440 -
4441 -/***/ }),
4442 -
4443 -/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
4444 -/*!*************************************************************!*\
4445 - !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
4446 - \*************************************************************/
4447 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4448 -
4449 -"use strict";
4450 -/**
4451 - * Copyright (c) 2013-present, Facebook, Inc.
4452 - *
4453 - * This source code is licensed under the MIT license found in the
4454 - * LICENSE file in the root directory of this source tree.
4455 - */
4456 -
4457 -
4458 -
4459 -var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
4460 -var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
4461 -
4462 -var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
4463 -var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
4464 -var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
4465 -
4466 -var printWarning = function() {};
4467 -
4468 -if (true) {
4469 - printWarning = function(text) {
4470 - var message = 'Warning: ' + text;
4471 - if (typeof console !== 'undefined') {
4472 - console.error(message);
4473 - }
4474 - try {
4475 - // --- Welcome to debugging React ---
4476 - // This error was thrown as a convenience so that you can use this stack
4477 - // to find the callsite that caused this warning to fire.
4478 - throw new Error(message);
4479 - } catch (x) {}
4480 - };
4481 -}
4482 -
4483 -function emptyFunctionThatReturnsNull() {
4484 - return null;
4485 -}
4486 -
4487 -module.exports = function(isValidElement, throwOnDirectAccess) {
4488 - /* global Symbol */
4489 - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
4490 - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
4491 -
4492 - /**
4493 - * Returns the iterator method function contained on the iterable object.
4494 - *
4495 - * Be sure to invoke the function with the iterable as context:
4496 - *
4497 - * var iteratorFn = getIteratorFn(myIterable);
4498 - * if (iteratorFn) {
4499 - * var iterator = iteratorFn.call(myIterable);
4500 - * ...
4501 - * }
4502 - *
4503 - * @param {?object} maybeIterable
4504 - * @return {?function}
4505 - */
4506 - function getIteratorFn(maybeIterable) {
4507 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
4508 - if (typeof iteratorFn === 'function') {
4509 - return iteratorFn;
4510 - }
4511 - }
4512 -
4513 - /**
4514 - * Collection of methods that allow declaration and validation of props that are
4515 - * supplied to React components. Example usage:
4516 - *
4517 - * var Props = require('ReactPropTypes');
4518 - * var MyArticle = React.createClass({
4519 - * propTypes: {
4520 - * // An optional string prop named "description".
4521 - * description: Props.string,
4522 - *
4523 - * // A required enum prop named "category".
4524 - * category: Props.oneOf(['News','Photos']).isRequired,
4525 - *
4526 - * // A prop named "dialog" that requires an instance of Dialog.
4527 - * dialog: Props.instanceOf(Dialog).isRequired
4528 - * },
4529 - * render: function() { ... }
4530 - * });
4531 - *
4532 - * A more formal specification of how these methods are used:
4533 - *
4534 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
4535 - * decl := ReactPropTypes.{type}(.isRequired)?
4536 - *
4537 - * Each and every declaration produces a function with the same signature. This
4538 - * allows the creation of custom validation functions. For example:
4539 - *
4540 - * var MyLink = React.createClass({
4541 - * propTypes: {
4542 - * // An optional string or URI prop named "href".
4543 - * href: function(props, propName, componentName) {
4544 - * var propValue = props[propName];
4545 - * if (propValue != null && typeof propValue !== 'string' &&
4546 - * !(propValue instanceof URI)) {
4547 - * return new Error(
4548 - * 'Expected a string or an URI for ' + propName + ' in ' +
4549 - * componentName
4550 - * );
4551 - * }
4552 - * }
4553 - * },
4554 - * render: function() {...}
4555 - * });
4556 - *
4557 - * @internal
4558 - */
4559 -
4560 - var ANONYMOUS = '<<anonymous>>';
4561 -
4562 - // Important!
4563 - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
4564 - var ReactPropTypes = {
4565 - array: createPrimitiveTypeChecker('array'),
4566 - bigint: createPrimitiveTypeChecker('bigint'),
4567 - bool: createPrimitiveTypeChecker('boolean'),
4568 - func: createPrimitiveTypeChecker('function'),
4569 - number: createPrimitiveTypeChecker('number'),
4570 - object: createPrimitiveTypeChecker('object'),
4571 - string: createPrimitiveTypeChecker('string'),
4572 - symbol: createPrimitiveTypeChecker('symbol'),
4573 -
4574 - any: createAnyTypeChecker(),
4575 - arrayOf: createArrayOfTypeChecker,
4576 - element: createElementTypeChecker(),
4577 - elementType: createElementTypeTypeChecker(),
4578 - instanceOf: createInstanceTypeChecker,
4579 - node: createNodeChecker(),
4580 - objectOf: createObjectOfTypeChecker,
4581 - oneOf: createEnumTypeChecker,
4582 - oneOfType: createUnionTypeChecker,
4583 - shape: createShapeTypeChecker,
4584 - exact: createStrictShapeTypeChecker,
4585 - };
4586 -
4587 - /**
4588 - * inlined Object.is polyfill to avoid requiring consumers ship their own
4589 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
4590 - */
4591 - /*eslint-disable no-self-compare*/
4592 - function is(x, y) {
4593 - // SameValue algorithm
4594 - if (x === y) {
4595 - // Steps 1-5, 7-10
4596 - // Steps 6.b-6.e: +0 != -0
4597 - return x !== 0 || 1 / x === 1 / y;
4598 - } else {
4599 - // Step 6.a: NaN == NaN
4600 - return x !== x && y !== y;
4601 - }
4602 - }
4603 - /*eslint-enable no-self-compare*/
4604 -
4605 - /**
4606 - * We use an Error-like object for backward compatibility as people may call
4607 - * PropTypes directly and inspect their output. However, we don't use real
4608 - * Errors anymore. We don't inspect their stack anyway, and creating them
4609 - * is prohibitively expensive if they are created too often, such as what
4610 - * happens in oneOfType() for any type before the one that matched.
4611 - */
4612 - function PropTypeError(message, data) {
4613 - this.message = message;
4614 - this.data = data && typeof data === 'object' ? data: {};
4615 - this.stack = '';
4616 - }
4617 - // Make `instanceof Error` still work for returned errors.
4618 - PropTypeError.prototype = Error.prototype;
4619 -
4620 - function createChainableTypeChecker(validate) {
4621 - if (true) {
4622 - var manualPropTypeCallCache = {};
4623 - var manualPropTypeWarningCount = 0;
4624 - }
4625 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
4626 - componentName = componentName || ANONYMOUS;
4627 - propFullName = propFullName || propName;
4628 -
4629 - if (secret !== ReactPropTypesSecret) {
4630 - if (throwOnDirectAccess) {
4631 - // New behavior only for users of `prop-types` package
4632 - var err = new Error(
4633 - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4634 - 'Use `PropTypes.checkPropTypes()` to call them. ' +
4635 - 'Read more at http://fb.me/use-check-prop-types'
4636 - );
4637 - err.name = 'Invariant Violation';
4638 - throw err;
4639 - } else if ( true && typeof console !== 'undefined') {
4640 - // Old behavior for people using React.PropTypes
4641 - var cacheKey = componentName + ':' + propName;
4642 - if (
4643 - !manualPropTypeCallCache[cacheKey] &&
4644 - // Avoid spamming the console because they are often not actionable except for lib authors
4645 - manualPropTypeWarningCount < 3
4646 - ) {
4647 - printWarning(
4648 - 'You are manually calling a React.PropTypes validation ' +
4649 - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
4650 - 'and will throw in the standalone `prop-types` package. ' +
4651 - 'You may be seeing this warning due to a third-party PropTypes ' +
4652 - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
4653 - );
4654 - manualPropTypeCallCache[cacheKey] = true;
4655 - manualPropTypeWarningCount++;
4656 - }
4657 - }
4658 - }
4659 - if (props[propName] == null) {
4660 - if (isRequired) {
4661 - if (props[propName] === null) {
4662 - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
4663 - }
4664 - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
4665 - }
4666 - return null;
4667 - } else {
4668 - return validate(props, propName, componentName, location, propFullName);
4669 - }
4670 - }
4671 -
4672 - var chainedCheckType = checkType.bind(null, false);
4673 - chainedCheckType.isRequired = checkType.bind(null, true);
4674 -
4675 - return chainedCheckType;
4676 - }
4677 -
4678 - function createPrimitiveTypeChecker(expectedType) {
4679 - function validate(props, propName, componentName, location, propFullName, secret) {
4680 - var propValue = props[propName];
4681 - var propType = getPropType(propValue);
4682 - if (propType !== expectedType) {
4683 - // `propValue` being instance of, say, date/regexp, pass the 'object'
4684 - // check, but we can offer a more precise error message here rather than
4685 - // 'of type `object`'.
4686 - var preciseType = getPreciseType(propValue);
4687 -
4688 - return new PropTypeError(
4689 - 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
4690 - {expectedType: expectedType}
4691 - );
4692 - }
4693 - return null;
4694 - }
4695 - return createChainableTypeChecker(validate);
4696 - }
4697 -
4698 - function createAnyTypeChecker() {
4699 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
4700 - }
4701 -
4702 - function createArrayOfTypeChecker(typeChecker) {
4703 - function validate(props, propName, componentName, location, propFullName) {
4704 - if (typeof typeChecker !== 'function') {
4705 - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
4706 - }
4707 - var propValue = props[propName];
4708 - if (!Array.isArray(propValue)) {
4709 - var propType = getPropType(propValue);
4710 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
4711 - }
4712 - for (var i = 0; i < propValue.length; i++) {
4713 - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
4714 - if (error instanceof Error) {
4715 - return error;
4716 - }
4717 - }
4718 - return null;
4719 - }
4720 - return createChainableTypeChecker(validate);
4721 - }
4722 -
4723 - function createElementTypeChecker() {
4724 - function validate(props, propName, componentName, location, propFullName) {
4725 - var propValue = props[propName];
4726 - if (!isValidElement(propValue)) {
4727 - var propType = getPropType(propValue);
4728 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
4729 - }
4730 - return null;
4731 - }
4732 - return createChainableTypeChecker(validate);
4733 - }
4734 -
4735 - function createElementTypeTypeChecker() {
4736 - function validate(props, propName, componentName, location, propFullName) {
4737 - var propValue = props[propName];
4738 - if (!ReactIs.isValidElementType(propValue)) {
4739 - var propType = getPropType(propValue);
4740 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
4741 - }
4742 - return null;
4743 - }
4744 - return createChainableTypeChecker(validate);
4745 - }
4746 -
4747 - function createInstanceTypeChecker(expectedClass) {
4748 - function validate(props, propName, componentName, location, propFullName) {
4749 - if (!(props[propName] instanceof expectedClass)) {
4750 - var expectedClassName = expectedClass.name || ANONYMOUS;
4751 - var actualClassName = getClassName(props[propName]);
4752 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
4753 - }
4754 - return null;
4755 - }
4756 - return createChainableTypeChecker(validate);
4757 - }
4758 -
4759 - function createEnumTypeChecker(expectedValues) {
4760 - if (!Array.isArray(expectedValues)) {
4761 - if (true) {
4762 - if (arguments.length > 1) {
4763 - printWarning(
4764 - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
4765 - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
4766 - );
4767 - } else {
4768 - printWarning('Invalid argument supplied to oneOf, expected an array.');
4769 - }
4770 - }
4771 - return emptyFunctionThatReturnsNull;
4772 - }
4773 -
4774 - function validate(props, propName, componentName, location, propFullName) {
4775 - var propValue = props[propName];
4776 - for (var i = 0; i < expectedValues.length; i++) {
4777 - if (is(propValue, expectedValues[i])) {
4778 - return null;
4779 - }
4780 - }
4781 -
4782 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
4783 - var type = getPreciseType(value);
4784 - if (type === 'symbol') {
4785 - return String(value);
4786 - }
4787 - return value;
4788 - });
4789 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
4790 - }
4791 - return createChainableTypeChecker(validate);
4792 - }
4793 -
4794 - function createObjectOfTypeChecker(typeChecker) {
4795 - function validate(props, propName, componentName, location, propFullName) {
4796 - if (typeof typeChecker !== 'function') {
4797 - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
4798 - }
4799 - var propValue = props[propName];
4800 - var propType = getPropType(propValue);
4801 - if (propType !== 'object') {
4802 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
4803 - }
4804 - for (var key in propValue) {
4805 - if (has(propValue, key)) {
4806 - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4807 - if (error instanceof Error) {
4808 - return error;
4809 - }
4810 - }
4811 - }
4812 - return null;
4813 - }
4814 - return createChainableTypeChecker(validate);
4815 - }
4816 -
4817 - function createUnionTypeChecker(arrayOfTypeCheckers) {
4818 - if (!Array.isArray(arrayOfTypeCheckers)) {
4819 - true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
4820 - return emptyFunctionThatReturnsNull;
4821 - }
4822 -
4823 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4824 - var checker = arrayOfTypeCheckers[i];
4825 - if (typeof checker !== 'function') {
4826 - printWarning(
4827 - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
4828 - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
4829 - );
4830 - return emptyFunctionThatReturnsNull;
4831 - }
4832 - }
4833 -
4834 - function validate(props, propName, componentName, location, propFullName) {
4835 - var expectedTypes = [];
4836 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4837 - var checker = arrayOfTypeCheckers[i];
4838 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
4839 - if (checkerResult == null) {
4840 - return null;
4841 - }
4842 - if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
4843 - expectedTypes.push(checkerResult.data.expectedType);
4844 - }
4845 - }
4846 - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
4847 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
4848 - }
4849 - return createChainableTypeChecker(validate);
4850 - }
4851 -
4852 - function createNodeChecker() {
4853 - function validate(props, propName, componentName, location, propFullName) {
4854 - if (!isNode(props[propName])) {
4855 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
4856 - }
4857 - return null;
4858 - }
4859 - return createChainableTypeChecker(validate);
4860 - }
4861 -
4862 - function invalidValidatorError(componentName, location, propFullName, key, type) {
4863 - return new PropTypeError(
4864 - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
4865 - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
4866 - );
4867 - }
4868 -
4869 - function createShapeTypeChecker(shapeTypes) {
4870 - function validate(props, propName, componentName, location, propFullName) {
4871 - var propValue = props[propName];
4872 - var propType = getPropType(propValue);
4873 - if (propType !== 'object') {
4874 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4875 - }
4876 - for (var key in shapeTypes) {
4877 - var checker = shapeTypes[key];
4878 - if (typeof checker !== 'function') {
4879 - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4880 - }
4881 - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4882 - if (error) {
4883 - return error;
4884 - }
4885 - }
4886 - return null;
4887 - }
4888 - return createChainableTypeChecker(validate);
4889 - }
4890 -
4891 - function createStrictShapeTypeChecker(shapeTypes) {
4892 - function validate(props, propName, componentName, location, propFullName) {
4893 - var propValue = props[propName];
4894 - var propType = getPropType(propValue);
4895 - if (propType !== 'object') {
4896 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4897 - }
4898 - // We need to check all keys in case some are required but missing from props.
4899 - var allKeys = assign({}, props[propName], shapeTypes);
4900 - for (var key in allKeys) {
4901 - var checker = shapeTypes[key];
4902 - if (has(shapeTypes, key) && typeof checker !== 'function') {
4903 - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4904 - }
4905 - if (!checker) {
4906 - return new PropTypeError(
4907 - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
4908 - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
4909 - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
4910 - );
4911 - }
4912 - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4913 - if (error) {
4914 - return error;
4915 - }
4916 - }
4917 - return null;
4918 - }
4919 -
4920 - return createChainableTypeChecker(validate);
4921 - }
4922 -
4923 - function isNode(propValue) {
4924 - switch (typeof propValue) {
4925 - case 'number':
4926 - case 'string':
4927 - case 'undefined':
4928 - return true;
4929 - case 'boolean':
4930 - return !propValue;
4931 - case 'object':
4932 - if (Array.isArray(propValue)) {
4933 - return propValue.every(isNode);
4934 - }
4935 - if (propValue === null || isValidElement(propValue)) {
4936 - return true;
4937 - }
4938 -
4939 - var iteratorFn = getIteratorFn(propValue);
4940 - if (iteratorFn) {
4941 - var iterator = iteratorFn.call(propValue);
4942 - var step;
4943 - if (iteratorFn !== propValue.entries) {
4944 - while (!(step = iterator.next()).done) {
4945 - if (!isNode(step.value)) {
4946 - return false;
4947 - }
4948 - }
4949 - } else {
4950 - // Iterator will provide entry [k,v] tuples rather than values.
4951 - while (!(step = iterator.next()).done) {
4952 - var entry = step.value;
4953 - if (entry) {
4954 - if (!isNode(entry[1])) {
4955 - return false;
4956 - }
4957 - }
4958 - }
4959 - }
4960 - } else {
4961 - return false;
4962 - }
4963 -
4964 - return true;
4965 - default:
4966 - return false;
4967 - }
4968 - }
4969 -
4970 - function isSymbol(propType, propValue) {
4971 - // Native Symbol.
4972 - if (propType === 'symbol') {
4973 - return true;
4974 - }
4975 -
4976 - // falsy value can't be a Symbol
4977 - if (!propValue) {
4978 - return false;
4979 - }
4980 -
4981 - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
4982 - if (propValue['@@toStringTag'] === 'Symbol') {
4983 - return true;
4984 - }
4985 -
4986 - // Fallback for non-spec compliant Symbols which are polyfilled.
4987 - if (typeof Symbol === 'function' && propValue instanceof Symbol) {
4988 - return true;
4989 - }
4990 -
4991 - return false;
4992 - }
4993 -
4994 - // Equivalent of `typeof` but with special handling for array and regexp.
4995 - function getPropType(propValue) {
4996 - var propType = typeof propValue;
4997 - if (Array.isArray(propValue)) {
4998 - return 'array';
4999 - }
5000 - if (propValue instanceof RegExp) {
5001 - // Old webkits (at least until Android 4.0) return 'function' rather than
5002 - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
5003 - // passes PropTypes.object.
5004 - return 'object';
5005 - }
5006 - if (isSymbol(propType, propValue)) {
5007 - return 'symbol';
5008 - }
5009 - return propType;
5010 - }
5011 -
5012 - // This handles more types than `getPropType`. Only used for error messages.
5013 - // See `createPrimitiveTypeChecker`.
5014 - function getPreciseType(propValue) {
5015 - if (typeof propValue === 'undefined' || propValue === null) {
5016 - return '' + propValue;
5017 - }
5018 - var propType = getPropType(propValue);
5019 - if (propType === 'object') {
5020 - if (propValue instanceof Date) {
5021 - return 'date';
5022 - } else if (propValue instanceof RegExp) {
5023 - return 'regexp';
5024 - }
5025 - }
5026 - return propType;
5027 - }
5028 -
5029 - // Returns a string that is postfixed to a warning about an invalid type.
5030 - // For example, "undefined" or "of type array"
5031 - function getPostfixForTypeWarning(value) {
5032 - var type = getPreciseType(value);
5033 - switch (type) {
5034 - case 'array':
5035 - case 'object':
5036 - return 'an ' + type;
5037 - case 'boolean':
5038 - case 'date':
5039 - case 'regexp':
5040 - return 'a ' + type;
5041 - default:
5042 - return type;
5043 - }
5044 - }
5045 -
5046 - // Returns class name of the object, if any.
5047 - function getClassName(propValue) {
5048 - if (!propValue.constructor || !propValue.constructor.name) {
5049 - return ANONYMOUS;
5050 - }
5051 - return propValue.constructor.name;
5052 - }
5053 -
5054 - ReactPropTypes.checkPropTypes = checkPropTypes;
5055 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
5056 - ReactPropTypes.PropTypes = ReactPropTypes;
5057 -
5058 - return ReactPropTypes;
5059 -};
5060 -
5061 -
5062 -/***/ }),
5063 -
5064 -/***/ "../node_modules/prop-types/index.js":
5065 -/*!*******************************************!*\
5066 - !*** ../node_modules/prop-types/index.js ***!
5067 - \*******************************************/
5068 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5069 -
5070 -/**
5071 - * Copyright (c) 2013-present, Facebook, Inc.
5072 - *
5073 - * This source code is licensed under the MIT license found in the
5074 - * LICENSE file in the root directory of this source tree.
5075 - */
5076 -
5077 -if (true) {
5078 - var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
5079 -
5080 - // By explicitly using `prop-types` you are opting into new development behavior.
5081 - // http://fb.me/prop-types-in-prod
5082 - var throwOnDirectAccess = true;
5083 - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
5084 -} else // removed by dead control flow
5085 -{}
5086 -
5087 -
5088 -/***/ }),
5089 -
5090 -/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
5091 -/*!**************************************************************!*\
5092 - !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
5093 - \**************************************************************/
5094 -/***/ ((module) => {
5095 -
5096 -"use strict";
5097 -/**
5098 - * Copyright (c) 2013-present, Facebook, Inc.
5099 - *
5100 - * This source code is licensed under the MIT license found in the
5101 - * LICENSE file in the root directory of this source tree.
5102 - */
5103 -
5104 -
5105 -
5106 -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5107 -
5108 -module.exports = ReactPropTypesSecret;
5109 -
5110 -
5111 -/***/ }),
5112 -
5113 -/***/ "../node_modules/prop-types/lib/has.js":
5114 -/*!*********************************************!*\
5115 - !*** ../node_modules/prop-types/lib/has.js ***!
5116 - \*********************************************/
5117 -/***/ ((module) => {
5118 -
5119 -module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
5120 -
5121 -
5122 -/***/ }),
5123 -
5124 -/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
5125 -/*!************************************************************************************!*\
5126 - !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
5127 - \************************************************************************************/
5128 -/***/ ((__unused_webpack_module, exports) => {
5129 -
5130 -"use strict";
5131 -/** @license React v16.13.1
5132 - * react-is.development.js
5133 - *
5134 - * Copyright (c) Facebook, Inc. and its affiliates.
5135 - *
5136 - * This source code is licensed under the MIT license found in the
5137 - * LICENSE file in the root directory of this source tree.
5138 - */
5139 -
5140 -
5141 -
5142 -
5143 -
5144 -if (true) {
5145 - (function() {
5146 -'use strict';
5147 -
5148 -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
5149 -// nor polyfill, then a plain number is used for performance.
5150 -var hasSymbol = typeof Symbol === 'function' && Symbol.for;
5151 -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
5152 -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
5153 -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
5154 -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
5155 -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
5156 -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
5157 -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
5158 -// (unstable) APIs that have been removed. Can we remove the symbols?
5159 -
5160 -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
5161 -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
5162 -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
5163 -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
5164 -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
5165 -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
5166 -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
5167 -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
5168 -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
5169 -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
5170 -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
5171 -
5172 -function isValidElementType(type) {
5173 - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5174 - 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);
5175 -}
5176 -
5177 -function typeOf(object) {
5178 - if (typeof object === 'object' && object !== null) {
5179 - var $$typeof = object.$$typeof;
5180 -
5181 - switch ($$typeof) {
5182 - case REACT_ELEMENT_TYPE:
5183 - var type = object.type;
5184 -
5185 - switch (type) {
5186 - case REACT_ASYNC_MODE_TYPE:
5187 - case REACT_CONCURRENT_MODE_TYPE:
5188 - case REACT_FRAGMENT_TYPE:
5189 - case REACT_PROFILER_TYPE:
5190 - case REACT_STRICT_MODE_TYPE:
5191 - case REACT_SUSPENSE_TYPE:
5192 - return type;
5193 -
5194 - default:
5195 - var $$typeofType = type && type.$$typeof;
5196 -
5197 - switch ($$typeofType) {
5198 - case REACT_CONTEXT_TYPE:
5199 - case REACT_FORWARD_REF_TYPE:
5200 - case REACT_LAZY_TYPE:
5201 - case REACT_MEMO_TYPE:
5202 - case REACT_PROVIDER_TYPE:
5203 - return $$typeofType;
5204 -
5205 - default:
5206 - return $$typeof;
5207 - }
5208 -
5209 - }
5210 -
5211 - case REACT_PORTAL_TYPE:
5212 - return $$typeof;
5213 - }
5214 - }
5215 -
5216 - return undefined;
5217 -} // AsyncMode is deprecated along with isAsyncMode
5218 -
5219 -var AsyncMode = REACT_ASYNC_MODE_TYPE;
5220 -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
5221 -var ContextConsumer = REACT_CONTEXT_TYPE;
5222 -var ContextProvider = REACT_PROVIDER_TYPE;
5223 -var Element = REACT_ELEMENT_TYPE;
5224 -var ForwardRef = REACT_FORWARD_REF_TYPE;
5225 -var Fragment = REACT_FRAGMENT_TYPE;
5226 -var Lazy = REACT_LAZY_TYPE;
5227 -var Memo = REACT_MEMO_TYPE;
5228 -var Portal = REACT_PORTAL_TYPE;
5229 -var Profiler = REACT_PROFILER_TYPE;
5230 -var StrictMode = REACT_STRICT_MODE_TYPE;
5231 -var Suspense = REACT_SUSPENSE_TYPE;
5232 -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
5233 -
5234 -function isAsyncMode(object) {
5235 - {
5236 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
5237 - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
5238 -
5239 - 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.');
5240 - }
5241 - }
5242 -
5243 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
5244 -}
5245 -function isConcurrentMode(object) {
5246 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
5247 -}
5248 -function isContextConsumer(object) {
5249 - return typeOf(object) === REACT_CONTEXT_TYPE;
5250 -}
5251 -function isContextProvider(object) {
5252 - return typeOf(object) === REACT_PROVIDER_TYPE;
5253 -}
5254 -function isElement(object) {
5255 - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
5256 -}
5257 -function isForwardRef(object) {
5258 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
5259 -}
5260 -function isFragment(object) {
5261 - return typeOf(object) === REACT_FRAGMENT_TYPE;
5262 -}
5263 -function isLazy(object) {
5264 - return typeOf(object) === REACT_LAZY_TYPE;
5265 -}
5266 -function isMemo(object) {
5267 - return typeOf(object) === REACT_MEMO_TYPE;
5268 -}
5269 -function isPortal(object) {
5270 - return typeOf(object) === REACT_PORTAL_TYPE;
5271 -}
5272 -function isProfiler(object) {
5273 - return typeOf(object) === REACT_PROFILER_TYPE;
5274 -}
5275 -function isStrictMode(object) {
5276 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
5277 -}
5278 -function isSuspense(object) {
5279 - return typeOf(object) === REACT_SUSPENSE_TYPE;
5280 -}
5281 -
5282 -exports.AsyncMode = AsyncMode;
5283 -exports.ConcurrentMode = ConcurrentMode;
5284 -exports.ContextConsumer = ContextConsumer;
5285 -exports.ContextProvider = ContextProvider;
5286 -exports.Element = Element;
5287 -exports.ForwardRef = ForwardRef;
5288 -exports.Fragment = Fragment;
5289 -exports.Lazy = Lazy;
5290 -exports.Memo = Memo;
5291 -exports.Portal = Portal;
5292 -exports.Profiler = Profiler;
5293 -exports.StrictMode = StrictMode;
5294 -exports.Suspense = Suspense;
5295 -exports.isAsyncMode = isAsyncMode;
5296 -exports.isConcurrentMode = isConcurrentMode;
5297 -exports.isContextConsumer = isContextConsumer;
5298 -exports.isContextProvider = isContextProvider;
5299 -exports.isElement = isElement;
5300 -exports.isForwardRef = isForwardRef;
5301 -exports.isFragment = isFragment;
5302 -exports.isLazy = isLazy;
5303 -exports.isMemo = isMemo;
5304 -exports.isPortal = isPortal;
5305 -exports.isProfiler = isProfiler;
5306 -exports.isStrictMode = isStrictMode;
5307 -exports.isSuspense = isSuspense;
5308 -exports.isValidElementType = isValidElementType;
5309 -exports.typeOf = typeOf;
5310 - })();
5311 -}
5312 -
5313 -
5314 -/***/ }),
5315 -
5316 -/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
5317 -/*!*****************************************************************!*\
5318 - !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
5319 - \*****************************************************************/
5320 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5321 -
5322 -"use strict";
5323 -
5324 -
5325 -if (false) // removed by dead control flow
5326 -{} else {
5327 - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
5328 -}
5329 -
5330 -
5331 -/***/ }),
5332 -
5333 -/***/ "../node_modules/react-dom/client.js":
5334 -/*!*******************************************!*\
5335 - !*** ../node_modules/react-dom/client.js ***!
5336 - \*******************************************/
5337 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5338 -
5339 -"use strict";
5340 -
5341 -
5342 -var m = __webpack_require__(/*! react-dom */ "react-dom");
5343 -if (false) // removed by dead control flow
5344 -{} else {
5345 - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
5346 - exports.createRoot = function(c, o) {
5347 - i.usingClientEntryPoint = true;
5348 - try {
5349 - return m.createRoot(c, o);
5350 - } finally {
5351 - i.usingClientEntryPoint = false;
5352 - }
5353 - };
5354 - exports.hydrateRoot = function(c, h, o) {
5355 - i.usingClientEntryPoint = true;
5356 - try {
5357 - return m.hydrateRoot(c, h, o);
5358 - } finally {
5359 - i.usingClientEntryPoint = false;
5360 - }
5361 - };
5362 -}
5363 -
5364 -
5365 -/***/ }),
5366 -
5367 -/***/ "../node_modules/tslib/tslib.es6.mjs":
5368 -/*!*******************************************!*\
5369 - !*** ../node_modules/tslib/tslib.es6.mjs ***!
5370 - \*******************************************/
5371 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5372 -
5373 -"use strict";
5374 -__webpack_require__.r(__webpack_exports__);
5375 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5376 -/* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource),
5377 -/* harmony export */ __assign: () => (/* binding */ __assign),
5378 -/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
5379 -/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
5380 -/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
5381 -/* harmony export */ __await: () => (/* binding */ __await),
5382 -/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
5383 -/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
5384 -/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
5385 -/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
5386 -/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
5387 -/* harmony export */ __decorate: () => (/* binding */ __decorate),
5388 -/* harmony export */ __disposeResources: () => (/* binding */ __disposeResources),
5389 -/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
5390 -/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
5391 -/* harmony export */ __extends: () => (/* binding */ __extends),
5392 -/* harmony export */ __generator: () => (/* binding */ __generator),
5393 -/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
5394 -/* harmony export */ __importStar: () => (/* binding */ __importStar),
5395 -/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
5396 -/* harmony export */ __metadata: () => (/* binding */ __metadata),
5397 -/* harmony export */ __param: () => (/* binding */ __param),
5398 -/* harmony export */ __propKey: () => (/* binding */ __propKey),
5399 -/* harmony export */ __read: () => (/* binding */ __read),
5400 -/* harmony export */ __rest: () => (/* binding */ __rest),
5401 -/* harmony export */ __rewriteRelativeImportExtension: () => (/* binding */ __rewriteRelativeImportExtension),
5402 -/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
5403 -/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
5404 -/* harmony export */ __spread: () => (/* binding */ __spread),
5405 -/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
5406 -/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
5407 -/* harmony export */ __values: () => (/* binding */ __values),
5408 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5409 -/* harmony export */ });
5410 -/******************************************************************************
5411 -Copyright (c) Microsoft Corporation.
5412 -
5413 -Permission to use, copy, modify, and/or distribute this software for any
5414 -purpose with or without fee is hereby granted.
5415 -
5416 -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5417 -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5418 -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5419 -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5420 -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5421 -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5422 -PERFORMANCE OF THIS SOFTWARE.
5423 -***************************************************************************** */
5424 -/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
5425 -
5426 -var extendStatics = function(d, b) {
5427 - extendStatics = Object.setPrototypeOf ||
5428 - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5429 - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
5430 - return extendStatics(d, b);
5431 -};
5432 -
5433 -function __extends(d, b) {
5434 - if (typeof b !== "function" && b !== null)
5435 - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
5436 - extendStatics(d, b);
5437 - function __() { this.constructor = d; }
5438 - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5439 -}
5440 -
5441 -var __assign = function() {
5442 - __assign = Object.assign || function __assign(t) {
5443 - for (var s, i = 1, n = arguments.length; i < n; i++) {
5444 - s = arguments[i];
5445 - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
5446 - }
5447 - return t;
5448 - }
5449 - return __assign.apply(this, arguments);
5450 -}
5451 -
5452 -function __rest(s, e) {
5453 - var t = {};
5454 - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5455 - t[p] = s[p];
5456 - if (s != null && typeof Object.getOwnPropertySymbols === "function")
5457 - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5458 - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5459 - t[p[i]] = s[p[i]];
5460 - }
5461 - return t;
5462 -}
5463 -
5464 -function __decorate(decorators, target, key, desc) {
5465 - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5466 - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5467 - 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;
5468 - return c > 3 && r && Object.defineProperty(target, key, r), r;
5469 -}
5470 -
5471 -function __param(paramIndex, decorator) {
5472 - return function (target, key) { decorator(target, key, paramIndex); }
5473 -}
5474 -
5475 -function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
5476 - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
5477 - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
5478 - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
5479 - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
5480 - var _, done = false;
5481 - for (var i = decorators.length - 1; i >= 0; i--) {
5482 - var context = {};
5483 - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
5484 - for (var p in contextIn.access) context.access[p] = contextIn.access[p];
5485 - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
5486 - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
5487 - if (kind === "accessor") {
5488 - if (result === void 0) continue;
5489 - if (result === null || typeof result !== "object") throw new TypeError("Object expected");
5490 - if (_ = accept(result.get)) descriptor.get = _;
5491 - if (_ = accept(result.set)) descriptor.set = _;
5492 - if (_ = accept(result.init)) initializers.unshift(_);
5493 - }
5494 - else if (_ = accept(result)) {
5495 - if (kind === "field") initializers.unshift(_);
5496 - else descriptor[key] = _;
5497 - }
5498 - }
5499 - if (target) Object.defineProperty(target, contextIn.name, descriptor);
5500 - done = true;
5501 -};
5502 -
5503 -function __runInitializers(thisArg, initializers, value) {
5504 - var useValue = arguments.length > 2;
5505 - for (var i = 0; i < initializers.length; i++) {
5506 - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
5507 - }
5508 - return useValue ? value : void 0;
5509 -};
5510 -
5511 -function __propKey(x) {
5512 - return typeof x === "symbol" ? x : "".concat(x);
5513 -};
5514 -
5515 -function __setFunctionName(f, name, prefix) {
5516 - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
5517 - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
5518 -};
5519 -
5520 -function __metadata(metadataKey, metadataValue) {
5521 - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
5522 -}
5523 -
5524 -function __awaiter(thisArg, _arguments, P, generator) {
5525 - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5526 - return new (P || (P = Promise))(function (resolve, reject) {
5527 - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5528 - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5529 - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5530 - step((generator = generator.apply(thisArg, _arguments || [])).next());
5531 - });
5532 -}
5533 -
5534 -function __generator(thisArg, body) {
5535 - 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);
5536 - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5537 - function verb(n) { return function (v) { return step([n, v]); }; }
5538 - function step(op) {
5539 - if (f) throw new TypeError("Generator is already executing.");
5540 - while (g && (g = 0, op[0] && (_ = 0)), _) try {
5541 - 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;
5542 - if (y = 0, t) op = [op[0] & 2, t.value];
5543 - switch (op[0]) {
5544 - case 0: case 1: t = op; break;
5545 - case 4: _.label++; return { value: op[1], done: false };
5546 - case 5: _.label++; y = op[1]; op = [0]; continue;
5547 - case 7: op = _.ops.pop(); _.trys.pop(); continue;
5548 - default:
5549 - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5550 - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5551 - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5552 - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5553 - if (t[2]) _.ops.pop();
5554 - _.trys.pop(); continue;
5555 - }
5556 - op = body.call(thisArg, _);
5557 - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5558 - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5559 - }
5560 -}
5561 -
5562 -var __createBinding = Object.create ? (function(o, m, k, k2) {
5563 - if (k2 === undefined) k2 = k;
5564 - var desc = Object.getOwnPropertyDescriptor(m, k);
5565 - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5566 - desc = { enumerable: true, get: function() { return m[k]; } };
5567 - }
5568 - Object.defineProperty(o, k2, desc);
5569 -}) : (function(o, m, k, k2) {
5570 - if (k2 === undefined) k2 = k;
5571 - o[k2] = m[k];
5572 -});
5573 -
5574 -function __exportStar(m, o) {
5575 - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
5576 -}
5577 -
5578 -function __values(o) {
5579 - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5580 - if (m) return m.call(o);
5581 - if (o && typeof o.length === "number") return {
5582 - next: function () {
5583 - if (o && i >= o.length) o = void 0;
5584 - return { value: o && o[i++], done: !o };
5585 - }
5586 - };
5587 - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5588 -}
5589 -
5590 -function __read(o, n) {
5591 - var m = typeof Symbol === "function" && o[Symbol.iterator];
5592 - if (!m) return o;
5593 - var i = m.call(o), r, ar = [], e;
5594 - try {
5595 - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5596 - }
5597 - catch (error) { e = { error: error }; }
5598 - finally {
5599 - try {
5600 - if (r && !r.done && (m = i["return"])) m.call(i);
5601 - }
5602 - finally { if (e) throw e.error; }
5603 - }
5604 - return ar;
5605 -}
5606 -
5607 -/** @deprecated */
5608 -function __spread() {
5609 - for (var ar = [], i = 0; i < arguments.length; i++)
5610 - ar = ar.concat(__read(arguments[i]));
5611 - return ar;
5612 -}
5613 -
5614 -/** @deprecated */
5615 -function __spreadArrays() {
5616 - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5617 - for (var r = Array(s), k = 0, i = 0; i < il; i++)
5618 - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
5619 - r[k] = a[j];
5620 - return r;
5621 -}
5622 -
5623 -function __spreadArray(to, from, pack) {
5624 - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5625 - if (ar || !(i in from)) {
5626 - if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5627 - ar[i] = from[i];
5628 - }
5629 - }
5630 - return to.concat(ar || Array.prototype.slice.call(from));
5631 -}
5632 -
5633 -function __await(v) {
5634 - return this instanceof __await ? (this.v = v, this) : new __await(v);
5635 -}
5636 -
5637 -function __asyncGenerator(thisArg, _arguments, generator) {
5638 - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5639 - var g = generator.apply(thisArg, _arguments || []), i, q = [];
5640 - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
5641 - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
5642 - 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]); } }
5643 - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
5644 - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
5645 - function fulfill(value) { resume("next", value); }
5646 - function reject(value) { resume("throw", value); }
5647 - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
5648 -}
5649 -
5650 -function __asyncDelegator(o) {
5651 - var i, p;
5652 - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
5653 - 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; }
5654 -}
5655 -
5656 -function __asyncValues(o) {
5657 - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5658 - var m = o[Symbol.asyncIterator], i;
5659 - 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);
5660 - 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); }); }; }
5661 - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
5662 -}
5663 -
5664 -function __makeTemplateObject(cooked, raw) {
5665 - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5666 - return cooked;
5667 -};
5668 -
5669 -var __setModuleDefault = Object.create ? (function(o, v) {
5670 - Object.defineProperty(o, "default", { enumerable: true, value: v });
5671 -}) : function(o, v) {
5672 - o["default"] = v;
5673 -};
5674 -
5675 -var ownKeys = function(o) {
5676 - ownKeys = Object.getOwnPropertyNames || function (o) {
5677 - var ar = [];
5678 - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
5679 - return ar;
5680 - };
5681 - return ownKeys(o);
5682 -};
5683 -
5684 -function __importStar(mod) {
5685 - if (mod && mod.__esModule) return mod;
5686 - var result = {};
5687 - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
5688 - __setModuleDefault(result, mod);
5689 - return result;
5690 -}
5691 -
5692 -function __importDefault(mod) {
5693 - return (mod && mod.__esModule) ? mod : { default: mod };
5694 -}
5695 -
5696 -function __classPrivateFieldGet(receiver, state, kind, f) {
5697 - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5698 - 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");
5699 - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5700 -}
5701 -
5702 -function __classPrivateFieldSet(receiver, state, value, kind, f) {
5703 - if (kind === "m") throw new TypeError("Private method is not writable");
5704 - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5705 - 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");
5706 - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5707 -}
5708 -
5709 -function __classPrivateFieldIn(state, receiver) {
5710 - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
5711 - return typeof state === "function" ? receiver === state : state.has(receiver);
5712 -}
5713 -
5714 -function __addDisposableResource(env, value, async) {
5715 - if (value !== null && value !== void 0) {
5716 - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
5717 - var dispose, inner;
5718 - if (async) {
5719 - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
5720 - dispose = value[Symbol.asyncDispose];
5721 - }
5722 - if (dispose === void 0) {
5723 - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
5724 - dispose = value[Symbol.dispose];
5725 - if (async) inner = dispose;
5726 - }
5727 - if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
5728 - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
5729 - env.stack.push({ value: value, dispose: dispose, async: async });
5730 - }
5731 - else if (async) {
5732 - env.stack.push({ async: true });
5733 - }
5734 - return value;
5735 -}
5736 -
5737 -var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5738 - var e = new Error(message);
5739 - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5740 -};
5741 -
5742 -function __disposeResources(env) {
5743 - function fail(e) {
5744 - env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
5745 - env.hasError = true;
5746 - }
5747 - var r, s = 0;
5748 - function next() {
5749 - while (r = env.stack.pop()) {
5750 - try {
5751 - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
5752 - if (r.dispose) {
5753 - var result = r.dispose.call(r.value);
5754 - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
5755 - }
5756 - else s |= 1;
5757 - }
5758 - catch (e) {
5759 - fail(e);
5760 - }
5761 - }
5762 - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
5763 - if (env.hasError) throw env.error;
5764 - }
5765 - return next();
5766 -}
5767 -
5768 -function __rewriteRelativeImportExtension(path, preserveJsx) {
5769 - if (typeof path === "string" && /^\.\.?\//.test(path)) {
5770 - return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
5771 - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
5772 - });
5773 - }
5774 - return path;
5775 -}
5776 -
5777 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
5778 - __extends,
5779 - __assign,
5780 - __rest,
5781 - __decorate,
5782 - __param,
5783 - __esDecorate,
5784 - __runInitializers,
5785 - __propKey,
5786 - __setFunctionName,
5787 - __metadata,
5788 - __awaiter,
5789 - __generator,
5790 - __createBinding,
5791 - __exportStar,
5792 - __values,
5793 - __read,
5794 - __spread,
5795 - __spreadArrays,
5796 - __spreadArray,
5797 - __await,
5798 - __asyncGenerator,
5799 - __asyncDelegator,
5800 - __asyncValues,
5801 - __makeTemplateObject,
5802 - __importStar,
5803 - __importDefault,
5804 - __classPrivateFieldGet,
5805 - __classPrivateFieldSet,
5806 - __classPrivateFieldIn,
5807 - __addDisposableResource,
5808 - __disposeResources,
5809 - __rewriteRelativeImportExtension,
5810 -});
5811 -
5812 -
5813 -/***/ }),
5814 -
5815 -/***/ "@elementor/icons":
5816 -/*!************************************!*\
5817 - !*** external "elementorV2.icons" ***!
5818 - \************************************/
5819 -/***/ ((module) => {
5820 -
5821 -"use strict";
5822 -module.exports = elementorV2.icons;
5823 -
5824 -/***/ }),
5825 -
5826 -/***/ "@elementor/icons/AdjustmentsIcon":
5827 -/*!*******************************************************!*\
5828 - !*** external "elementorV2.icons['AdjustmentsIcon']" ***!
5829 - \*******************************************************/
5830 -/***/ ((module) => {
5831 -
5832 -"use strict";
5833 -module.exports = elementorV2.icons['AdjustmentsIcon'];
5834 -
5835 -/***/ }),
5836 -
5837 -/***/ "@elementor/icons/ChevronDownSmallIcon":
5838 -/*!************************************************************!*\
5839 - !*** external "elementorV2.icons['ChevronDownSmallIcon']" ***!
5840 - \************************************************************/
5841 -/***/ ((module) => {
5842 -
5843 -"use strict";
5844 -module.exports = elementorV2.icons['ChevronDownSmallIcon'];
5845 -
5846 -/***/ }),
5847 -
5848 -/***/ "@elementor/icons/ChevronRightIcon":
5849 -/*!********************************************************!*\
5850 - !*** external "elementorV2.icons['ChevronRightIcon']" ***!
5851 - \********************************************************/
5852 -/***/ ((module) => {
5853 -
5854 -"use strict";
5855 -module.exports = elementorV2.icons['ChevronRightIcon'];
5856 -
5857 -/***/ }),
5858 -
5859 -/***/ "@elementor/icons/FileSettingsIcon":
5860 -/*!********************************************************!*\
5861 - !*** external "elementorV2.icons['FileSettingsIcon']" ***!
5862 - \********************************************************/
5863 -/***/ ((module) => {
5864 -
5865 -"use strict";
5866 -module.exports = elementorV2.icons['FileSettingsIcon'];
5867 -
5868 -/***/ }),
5869 -
5870 -/***/ "@elementor/icons/FolderIcon":
5871 -/*!**************************************************!*\
5872 - !*** external "elementorV2.icons['FolderIcon']" ***!
5873 - \**************************************************/
5874 -/***/ ((module) => {
5875 -
5876 -"use strict";
5877 -module.exports = elementorV2.icons['FolderIcon'];
5878 -
5879 -/***/ }),
5880 -
5881 -/***/ "@elementor/icons/HomeIcon":
5882 -/*!************************************************!*\
5883 - !*** external "elementorV2.icons['HomeIcon']" ***!
5884 - \************************************************/
5885 -/***/ ((module) => {
5886 -
5887 -"use strict";
5888 -module.exports = elementorV2.icons['HomeIcon'];
5889 -
5890 -/***/ }),
5891 -
5892 -/***/ "@elementor/icons/PlugIcon":
5893 -/*!************************************************!*\
5894 - !*** external "elementorV2.icons['PlugIcon']" ***!
5895 - \************************************************/
5896 -/***/ ((module) => {
5897 -
5898 -"use strict";
5899 -module.exports = elementorV2.icons['PlugIcon'];
5900 -
5901 -/***/ }),
5902 -
5903 -/***/ "@elementor/icons/RocketIcon":
5904 -/*!**************************************************!*\
5905 - !*** external "elementorV2.icons['RocketIcon']" ***!
5906 - \**************************************************/
5907 -/***/ ((module) => {
5908 -
5909 -"use strict";
5910 -module.exports = elementorV2.icons['RocketIcon'];
5911 -
5912 -/***/ }),
5913 -
5914 -/***/ "@elementor/icons/SearchIcon":
5915 -/*!**************************************************!*\
5916 - !*** external "elementorV2.icons['SearchIcon']" ***!
5917 - \**************************************************/
5918 -/***/ ((module) => {
5919 -
5920 -"use strict";
5921 -module.exports = elementorV2.icons['SearchIcon'];
5922 -
5923 -/***/ }),
5924 -
5925 -/***/ "@elementor/icons/SendIcon":
5926 -/*!************************************************!*\
5927 - !*** external "elementorV2.icons['SendIcon']" ***!
5928 - \************************************************/
5929 -/***/ ((module) => {
5930 -
5931 -"use strict";
5932 -module.exports = elementorV2.icons['SendIcon'];
5933 -
5934 -/***/ }),
5935 -
5936 -/***/ "@elementor/icons/SettingsIcon":
5937 -/*!****************************************************!*\
5938 - !*** external "elementorV2.icons['SettingsIcon']" ***!
5939 - \****************************************************/
5940 -/***/ ((module) => {
5941 -
5942 -"use strict";
5943 -module.exports = elementorV2.icons['SettingsIcon'];
5944 -
5945 -/***/ }),
5946 -
5947 -/***/ "@elementor/icons/UsersIcon":
5948 -/*!*************************************************!*\
5949 - !*** external "elementorV2.icons['UsersIcon']" ***!
5950 - \*************************************************/
5951 -/***/ ((module) => {
5952 -
5953 -"use strict";
5954 -module.exports = elementorV2.icons['UsersIcon'];
5955 -
5956 -/***/ }),
5957 -
5958 -/***/ "@elementor/ui":
5959 -/*!*********************************!*\
5960 - !*** external "elementorV2.ui" ***!
5961 - \*********************************/
5962 -/***/ ((module) => {
5963 -
5964 -"use strict";
5965 -module.exports = elementorV2.ui;
5966 -
5967 -/***/ }),
5968 -
5969 -/***/ "react":
5970 -/*!************************!*\
5971 - !*** external "React" ***!
5972 - \************************/
5973 -/***/ ((module) => {
5974 -
5975 -"use strict";
5976 -module.exports = React;
5977 -
5978 -/***/ }),
5979 -
5980 -/***/ "react-dom":
5981 -/*!***************************!*\
5982 - !*** external "ReactDOM" ***!
5983 - \***************************/
5984 -/***/ ((module) => {
5985 -
5986 -"use strict";
5987 -module.exports = ReactDOM;
5988 -
5989 -/***/ })
5990 -
5991 -/******/ });
5992 -/************************************************************************/
5993 -/******/ // The module cache
5994 -/******/ var __webpack_module_cache__ = {};
5995 -/******/
5996 -/******/ // The require function
5997 -/******/ function __webpack_require__(moduleId) {
5998 -/******/ // Check if module is in cache
5999 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
6000 -/******/ if (cachedModule !== undefined) {
6001 -/******/ return cachedModule.exports;
6002 -/******/ }
6003 -/******/ // Create a new module (and put it into the cache)
6004 -/******/ var module = __webpack_module_cache__[moduleId] = {
6005 -/******/ // no module.id needed
6006 -/******/ // no module.loaded needed
6007 -/******/ exports: {}
6008 -/******/ };
6009 -/******/
6010 -/******/ // Execute the module function
6011 -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6012 -/******/
6013 -/******/ // Return the exports of the module
6014 -/******/ return module.exports;
6015 -/******/ }
6016 -/******/
6017 -/************************************************************************/
6018 -/******/ /* webpack/runtime/compat get default export */
6019 -/******/ (() => {
6020 -/******/ // getDefaultExport function for compatibility with non-harmony modules
6021 -/******/ __webpack_require__.n = (module) => {
6022 -/******/ var getter = module && module.__esModule ?
6023 -/******/ () => (module['default']) :
6024 -/******/ () => (module);
6025 -/******/ __webpack_require__.d(getter, { a: getter });
6026 -/******/ return getter;
6027 -/******/ };
6028 -/******/ })();
6029 -/******/
6030 -/******/ /* webpack/runtime/define property getters */
6031 -/******/ (() => {
6032 -/******/ // define getter functions for harmony exports
6033 -/******/ __webpack_require__.d = (exports, definition) => {
6034 -/******/ for(var key in definition) {
6035 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
6036 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
6037 -/******/ }
6038 -/******/ }
6039 -/******/ };
6040 -/******/ })();
6041 -/******/
6042 -/******/ /* webpack/runtime/hasOwnProperty shorthand */
6043 -/******/ (() => {
6044 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
6045 -/******/ })();
6046 -/******/
6047 -/******/ /* webpack/runtime/make namespace object */
6048 -/******/ (() => {
6049 -/******/ // define __esModule on exports
6050 -/******/ __webpack_require__.r = (exports) => {
6051 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6052 -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6053 -/******/ }
6054 -/******/ Object.defineProperty(exports, '__esModule', { value: true });
6055 -/******/ };
6056 -/******/ })();
6057 -/******/
6058 -/************************************************************************/
6059 -var __webpack_exports__ = {};
6060 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
6061 -(() => {
6062 -"use strict";
6063 -/*!*****************************************************************!*\
6064 - !*** ../modules/editor-one/assets/js/sidebar-navigation/app.js ***!
6065 - \*****************************************************************/
6066 -
6067 -
6068 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
6069 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
6070 -var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
6071 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
6072 -var _index = _interopRequireDefault(__webpack_require__(/*! ./components/index */ "../modules/editor-one/assets/js/sidebar-navigation/components/index.js"));
6073 -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
6074 -var _isRtl = _interopRequireDefault(__webpack_require__(/*! ../shared/is-rtl */ "../modules/editor-one/assets/js/shared/is-rtl.js"));
6075 -var App = function App(_ref) {
6076 - var config = _ref.config;
6077 - var isRtlLanguage = (0, _isRtl.default)();
6078 - return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
6079 - rtl: isRtlLanguage
6080 - }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
6081 - colorScheme: "light"
6082 - }, /*#__PURE__*/_react.default.createElement(_index.default, {
6083 - config: config
6084 - }))));
6085 -};
6086 -App.propTypes = {
6087 - config: _propTypes.default.object.isRequired
6088 -};
6089 -var rootElement = document.getElementById('editor-one-sidebar-navigation');
6090 -if (rootElement && window.editorOneSidebarConfig) {
6091 - _react2.default.render(/*#__PURE__*/_react.default.createElement(App, {
6092 - config: window.editorOneSidebarConfig
6093 - }), rootElement);
6094 -}
6095 -})();
6096 -
6097 -/******/ })()
6098 -;
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']);
6099 2362 //# sourceMappingURL=editor-one-sidebar-navigation.js.map