PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.4
Elementor Website Builder – more than just a page builder v4.3.4
4.3.4 4.3.3 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 All 457 releases
← All changes | assets/js/editor-v4-opt-in-alphachip.js +999 -1631 4.2.0-dev2 → 4.3.4 View file →
@@ -1,1665 +1,1033 @@
1 -/******/ (() => { // webpackBootstrap
2 -/******/ var __webpack_modules__ = ({
1 +(function(react, _elementor_ui, _wordpress_i18n) {
3 2
4 -/***/ "../assets/dev/js/editor/utils/preview-iframe-listeners.js":
5 -/*!*****************************************************************!*\
6 - !*** ../assets/dev/js/editor/utils/preview-iframe-listeners.js ***!
7 - \*****************************************************************/
8 -/***/ ((__unused_webpack_module, exports) => {
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);
11 36
37 +//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
38 + function _classCallCheck(a, n) {
39 + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
40 + }
12 41
13 -Object.defineProperty(exports, "__esModule", ({
14 - value: true
15 -}));
16 -exports.bindPreviewIframeEvents = bindPreviewIframeEvents;
17 -function bindPreviewIframeEvents(callback) {
18 - var _elementor;
19 - var iframeDocument = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.$preview) === null || _elementor === void 0 || (_elementor = _elementor[0]) === null || _elementor === void 0 ? void 0 : _elementor.contentDocument;
20 - if (!iframeDocument) {
21 - return function () {};
22 - }
23 - var handleEvent = function handleEvent() {
24 - return callback();
25 - };
26 - iframeDocument.addEventListener('click', handleEvent);
27 - iframeDocument.addEventListener('keydown', handleEvent);
28 - return function () {
29 - iframeDocument.removeEventListener('click', handleEvent);
30 - iframeDocument.removeEventListener('keydown', handleEvent);
31 - };
32 -}
33 -
34 -/***/ }),
35 -
36 -/***/ "../modules/atomic-opt-in/assets/js/panel-chip/app-manager.js":
37 -/*!********************************************************************!*\
38 - !*** ../modules/atomic-opt-in/assets/js/panel-chip/app-manager.js ***!
39 - \********************************************************************/
40 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
41 -
42 -"use strict";
43 -
44 -
45 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
46 -Object.defineProperty(exports, "__esModule", ({
47 - value: true
48 -}));
49 -exports.AppManager = void 0;
50 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
51 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
52 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
53 -var _app = _interopRequireDefault(__webpack_require__(/*! ./app */ "../modules/atomic-opt-in/assets/js/panel-chip/app.js"));
54 -var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
55 -var _previewIframeListeners = __webpack_require__(/*! elementor-editor-utils/preview-iframe-listeners */ "../assets/dev/js/editor/utils/preview-iframe-listeners.js");
56 -var AppManager = exports.AppManager = /*#__PURE__*/function () {
57 - function AppManager() {
58 - (0, _classCallCheck2.default)(this, AppManager);
59 - this.popover = null;
60 - this.onRoute = function () {};
61 - this.unbindIframeEvents = function () {};
62 - }
63 - return (0, _createClass2.default)(AppManager, [{
64 - key: "mount",
65 - value: function mount(targetNode, selectors) {
66 - var _elementor,
67 - _elementor$getPrefere,
68 - _this = this;
69 - if (this.popover) {
70 - return;
71 - }
72 - var wrapperElement = targetNode === null || targetNode === void 0 ? void 0 : targetNode.closest(selectors.wrapperElement);
73 - var rootElement = wrapperElement === null || wrapperElement === void 0 ? void 0 : wrapperElement.querySelector(selectors.reactAnchor);
74 - if (!rootElement) {
75 - return;
76 - }
77 - this.attachEditorEventListeners();
78 - this.popover = (0, _client.createRoot)(rootElement);
79 - var colorScheme = ((_elementor = elementor) === null || _elementor === void 0 || (_elementor$getPrefere = _elementor.getPreferences) === null || _elementor$getPrefere === void 0 ? void 0 : _elementor$getPrefere.call(_elementor, 'ui_theme')) || 'auto';
80 - var isRTL = elementorCommon.config.isRTL;
81 - this.popover.render(/*#__PURE__*/_react.default.createElement(_app.default, {
82 - colorScheme: colorScheme,
83 - isRTL: isRTL,
84 - onClose: function onClose() {
85 - return _this.unmount();
86 - }
87 - }));
88 - }
89 - }, {
90 - key: "unmount",
91 - value: function unmount() {
92 - if (this.popover) {
93 - this.detachEditorEventListeners();
94 - this.popover.unmount();
95 - this.unbindIframeEvents();
96 - }
97 - this.popover = null;
98 - }
99 - }, {
100 - key: "setupRouteListener",
101 - value: function setupRouteListener() {
102 - var _this2 = this;
103 - this.onRoute = function (component, route) {
104 - if (route !== 'panel/elements/categories' && route !== 'panel/editor/content') {
105 - return;
106 - }
107 - _this2.unmount();
108 - };
109 - $e.routes.on('run:after', this.onRoute);
110 - }
111 - }, {
112 - key: "attachEditorEventListeners",
113 - value: function attachEditorEventListeners() {
114 - var _this3 = this;
115 - this.unbindIframeEvents = (0, _previewIframeListeners.bindPreviewIframeEvents)(function () {
116 - return _this3.unmount();
117 - });
118 - this.setupRouteListener();
119 - }
120 - }, {
121 - key: "detachEditorEventListeners",
122 - value: function detachEditorEventListeners() {
123 - $e.routes.off('run:after', this.onRoute);
124 - }
125 - }]);
126 -}();
127 -
128 -/***/ }),
129 -
130 -/***/ "../modules/atomic-opt-in/assets/js/panel-chip/app.js":
131 -/*!************************************************************!*\
132 - !*** ../modules/atomic-opt-in/assets/js/panel-chip/app.js ***!
133 - \************************************************************/
134 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
135 -
136 -"use strict";
137 -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
138 -
139 -
140 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
141 -Object.defineProperty(exports, "__esModule", ({
142 - value: true
143 -}));
144 -exports["default"] = void 0;
145 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
146 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
147 -var _popoverCard = _interopRequireDefault(__webpack_require__(/*! ./components/popover-card */ "../modules/atomic-opt-in/assets/js/panel-chip/components/popover-card.js"));
148 -var App = function App(props) {
149 - return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
150 - rtl: props.isRTL
151 - }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
152 - colorScheme: props.colorScheme,
153 - palette: "unstable"
154 - }, /*#__PURE__*/_react.default.createElement(_ui.Infotip, {
155 - content: /*#__PURE__*/_react.default.createElement(_popoverCard.default, {
156 - doClose: props.onClose
157 - }),
158 - placement: "right",
159 - arrow: true,
160 - open: true,
161 - disableHoverListener: true,
162 - PopperProps: {
163 - modifiers: [{
164 - name: 'offset',
165 - options: {
166 - offset: [-24, 8]
167 - }
168 - }]
169 - }
170 - }, /*#__PURE__*/_react.default.createElement("span", null)))));
171 -};
172 -App.propTypes = {
173 - colorScheme: PropTypes.oneOf(['auto', 'light', 'dark']),
174 - isRTL: PropTypes.bool,
175 - onClose: PropTypes.func.isRequired
176 -};
177 -var _default = exports["default"] = App;
178 -
179 -/***/ }),
180 -
181 -/***/ "../modules/atomic-opt-in/assets/js/panel-chip/components/popover-card.js":
182 -/*!********************************************************************************!*\
183 - !*** ../modules/atomic-opt-in/assets/js/panel-chip/components/popover-card.js ***!
184 - \********************************************************************************/
185 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
186 -
187 -"use strict";
188 -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
189 -
190 -
191 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
192 -Object.defineProperty(exports, "__esModule", ({
193 - value: true
194 -}));
195 -exports["default"] = void 0;
196 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
197 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
198 -var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
199 -var popoverData = {
200 - image: 'https://assets.elementor.com/v4-promotion/v1/images/atomic_elements_section_296.png',
201 - image_alt: (0, _i18n.__)('Atomic Elements', 'elementor'),
202 - title: (0, _i18n.__)('Atomic Elements', 'elementor'),
203 - description: [(0, _i18n.__)('Modern, flexible elements designed for reusable styles and cleaner layouts.', 'elementor')],
204 - upgrade_text: (0, _i18n.__)('Learn more', 'elementor'),
205 - upgrade_url: 'https://go.elementor.com/wp-dash-opt-in-v4-help-center/'
206 -};
207 -var PopoverCard = function PopoverCard(_ref) {
208 - var doClose = _ref.doClose;
209 - var title = popoverData === null || popoverData === void 0 ? void 0 : popoverData.title,
210 - description = popoverData === null || popoverData === void 0 ? void 0 : popoverData.description,
211 - imgSrc = popoverData === null || popoverData === void 0 ? void 0 : popoverData.image,
212 - imgAlt = popoverData === null || popoverData === void 0 ? void 0 : popoverData.image_alt,
213 - ctaText = popoverData === null || popoverData === void 0 ? void 0 : popoverData.upgrade_text,
214 - ctaUrl = popoverData === null || popoverData === void 0 ? void 0 : popoverData.upgrade_url;
215 - var redirectHandler = function redirectHandler() {
216 - window.open(ctaUrl, '_blank');
217 - return doClose();
218 - };
219 - return /*#__PURE__*/_react.default.createElement(_ui.ClickAwayListener, {
220 - disableReactTree: true,
221 - mouseEvent: "onMouseDown",
222 - touchEvent: "onTouchStart",
223 - onClickAway: doClose
224 - }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
225 - sx: {
226 - width: 296
227 - },
228 - "data-testid": "e-popover-card"
229 - }, /*#__PURE__*/_react.default.createElement(_ui.Stack, {
230 - direction: "row",
231 - alignItems: "center",
232 - py: 1,
233 - px: 2
234 - }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
235 - variant: "subtitle2"
236 - }, title), /*#__PURE__*/_react.default.createElement(_ui.CloseButton, {
237 - edge: "end",
238 - sx: {
239 - ml: 'auto'
240 - },
241 - slotProps: {
242 - icon: {
243 - fontSize: 'small'
244 - }
245 - },
246 - onClick: doClose
247 - })), /*#__PURE__*/_react.default.createElement(_ui.Image, {
248 - src: imgSrc,
249 - alt: imgAlt,
250 - sx: {
251 - height: 150,
252 - width: '100%'
253 - }
254 - }), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
255 - px: 2
256 - }, 1 === description.length ? /*#__PURE__*/_react.default.createElement(_ui.Typography, {
257 - variant: "body2",
258 - color: "secondary",
259 - sx: {
260 - pt: 1.5,
261 - pb: 1
262 - }
263 - }, description[0]) : /*#__PURE__*/_react.default.createElement(_ui.List, {
264 - sx: {
265 - pl: 2
266 - }
267 - }, description.map(function (text, index) {
268 - return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
269 - key: index,
270 - sx: {
271 - listStyle: 'disc',
272 - display: 'list-item',
273 - color: 'text.secondary',
274 - p: 0
275 - }
276 - }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
277 - variant: "body2",
278 - color: "secondary"
279 - }, text));
280 - }))), /*#__PURE__*/_react.default.createElement(_ui.Stack, {
281 - pt: 1,
282 - pb: 1.5,
283 - px: 2
284 - }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
285 - variant: "contained",
286 - size: "small",
287 - color: "inherit",
288 - onClick: redirectHandler,
289 - sx: {
290 - ml: 'auto',
291 - bgcolor: 'text.primary',
292 - color: 'background.paper',
293 - '&:hover': {
294 - bgcolor: 'text.secondary',
295 - color: 'background.paper'
296 - }
297 - }
298 - }, ctaText))));
299 -};
300 -PopoverCard.propTypes = {
301 - doClose: PropTypes.func
302 -};
303 -var _default = exports["default"] = PopoverCard;
304 -
305 -/***/ }),
306 -
307 -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
308 -/*!****************************************************************!*\
309 - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
310 - \****************************************************************/
311 -/***/ ((module) => {
312 -
313 -function _classCallCheck(a, n) {
314 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
315 -}
316 -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
317 -
318 -/***/ }),
319 -
320 -/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
321 -/*!*************************************************************!*\
322 - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
323 - \*************************************************************/
324 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
325 -
326 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
327 -function _defineProperties(e, r) {
328 - for (var t = 0; t < r.length; t++) {
329 - var o = r[t];
330 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
331 - }
332 -}
333 -function _createClass(e, r, t) {
334 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
335 - writable: !1
336 - }), e;
337 -}
338 -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
339 -
340 -/***/ }),
341 -
342 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
343 -/*!***********************************************************************!*\
344 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
345 - \***********************************************************************/
346 -/***/ ((module) => {
347 -
348 -function _interopRequireDefault(e) {
349 - return e && e.__esModule ? e : {
350 - "default": e
351 - };
352 -}
353 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
354 -
355 -/***/ }),
356 -
357 -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
358 -/*!*************************************************************!*\
359 - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
360 - \*************************************************************/
361 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
362 -
363 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
364 -function toPrimitive(t, r) {
365 - if ("object" != _typeof(t) || !t) return t;
366 - var e = t[Symbol.toPrimitive];
367 - if (void 0 !== e) {
368 - var i = e.call(t, r || "default");
369 - if ("object" != _typeof(i)) return i;
370 - throw new TypeError("@@toPrimitive must return a primitive value.");
371 - }
372 - return ("string" === r ? String : Number)(t);
373 -}
374 -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
375 -
376 -/***/ }),
377 -
378 -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
379 -/*!***************************************************************!*\
380 - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
381 - \***************************************************************/
382 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
383 -
384 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
385 -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
386 -function toPropertyKey(t) {
387 - var i = toPrimitive(t, "string");
388 - return "symbol" == _typeof(i) ? i : i + "";
389 -}
390 -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
391 -
392 -/***/ }),
393 -
394 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
395 -/*!********************************************************!*\
396 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
397 - \********************************************************/
398 -/***/ ((module) => {
399 -
400 -function _typeof(o) {
401 - "@babel/helpers - typeof";
402 -
403 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
404 - return typeof o;
405 - } : function (o) {
406 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
407 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
408 -}
409 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
410 -
411 -/***/ }),
412 -
413 -/***/ "../node_modules/object-assign/index.js":
414 -/*!**********************************************!*\
415 - !*** ../node_modules/object-assign/index.js ***!
416 - \**********************************************/
417 -/***/ ((module) => {
418 -
419 -"use strict";
420 -/*
421 -object-assign
422 -(c) Sindre Sorhus
423 -@license MIT
424 -*/
425 -
426 -
427 -/* eslint-disable no-unused-vars */
428 -var getOwnPropertySymbols = Object.getOwnPropertySymbols;
429 -var hasOwnProperty = Object.prototype.hasOwnProperty;
430 -var propIsEnumerable = Object.prototype.propertyIsEnumerable;
431 -
432 -function toObject(val) {
433 - if (val === null || val === undefined) {
434 - throw new TypeError('Object.assign cannot be called with null or undefined');
42 +//#endregion
43 +//#region node_modules/@babel/runtime/helpers/esm/typeof.js
44 + function _typeof(o) {
45 + "@babel/helpers - typeof";
46 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
47 + return typeof o;
48 + } : function(o) {
49 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
50 + }, _typeof(o);
435 51 }
436 52
437 - return Object(val);
438 -}
439 -
440 -function shouldUseNative() {
441 - try {
442 - if (!Object.assign) {
443 - return false;
53 +//#endregion
54 +//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
55 + function toPrimitive(t, r) {
56 + if ("object" != _typeof(t) || !t) return t;
57 + var e = t[Symbol.toPrimitive];
58 + if (void 0 !== e) {
59 + var i = e.call(t, r || "default");
60 + if ("object" != _typeof(i)) return i;
61 + throw new TypeError("@@toPrimitive must return a primitive value.");
444 62 }
63 + return ("string" === r ? String : Number)(t);
64 + }
445 65
446 - // Detect buggy property enumeration order in older V8 versions.
66 +//#endregion
67 +//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
68 + function toPropertyKey(t) {
69 + var i = toPrimitive(t, "string");
70 + return "symbol" == _typeof(i) ? i : i + "";
71 + }
447 72
448 - // https://bugs.chromium.org/p/v8/issues/detail?id=4118
449 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
450 - test1[5] = 'de';
451 - if (Object.getOwnPropertyNames(test1)[0] === '5') {
452 - return false;
73 +//#endregion
74 +//#region node_modules/@babel/runtime/helpers/esm/createClass.js
75 + function _defineProperties(e, r) {
76 + for (var t = 0; t < r.length; t++) {
77 + var o = r[t];
78 + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
453 79 }
454 -
455 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
456 - var test2 = {};
457 - for (var i = 0; i < 10; i++) {
458 - test2['_' + String.fromCharCode(i)] = i;
459 - }
460 - var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
461 - return test2[n];
462 - });
463 - if (order2.join('') !== '0123456789') {
464 - return false;
465 - }
466 -
467 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
468 - var test3 = {};
469 - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
470 - test3[letter] = letter;
471 - });
472 - if (Object.keys(Object.assign({}, test3)).join('') !==
473 - 'abcdefghijklmnopqrst') {
474 - return false;
475 - }
476 -
477 - return true;
478 - } catch (err) {
479 - // We don't expect any of the above to throw, but better to be safe.
480 - return false;
481 80 }
482 -}
81 + function _createClass(e, r, t) {
82 + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
83 + }
483 84
484 -module.exports = shouldUseNative() ? Object.assign : function (target, source) {
485 - var from;
486 - var to = toObject(target);
487 - var symbols;
85 +//#endregion
86 +//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
87 +/** @license React v16.13.1
88 + * react-is.development.js
89 + *
90 + * Copyright (c) Facebook, Inc. and its affiliates.
91 + *
92 + * This source code is licensed under the MIT license found in the
93 + * LICENSE file in the root directory of this source tree.
94 + */
95 + var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
96 + (function() {
97 + "use strict";
98 + var hasSymbol = typeof Symbol === "function" && Symbol.for;
99 + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
100 + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
101 + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
102 + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
103 + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
104 + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
105 + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
106 + var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
107 + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
108 + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
109 + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
110 + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
111 + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
112 + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
113 + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
114 + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
115 + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
116 + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
117 + function isValidElementType(type) {
118 + 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);
119 + }
120 + function typeOf(object) {
121 + if (typeof object === "object" && object !== null) {
122 + var $$typeof = object.$$typeof;
123 + switch ($$typeof) {
124 + case REACT_ELEMENT_TYPE:
125 + var type = object.type;
126 + switch (type) {
127 + case REACT_ASYNC_MODE_TYPE:
128 + case REACT_CONCURRENT_MODE_TYPE:
129 + case REACT_FRAGMENT_TYPE:
130 + case REACT_PROFILER_TYPE:
131 + case REACT_STRICT_MODE_TYPE:
132 + case REACT_SUSPENSE_TYPE: return type;
133 + default:
134 + var $$typeofType = type && type.$$typeof;
135 + switch ($$typeofType) {
136 + case REACT_CONTEXT_TYPE:
137 + case REACT_FORWARD_REF_TYPE:
138 + case REACT_LAZY_TYPE:
139 + case REACT_MEMO_TYPE:
140 + case REACT_PROVIDER_TYPE: return $$typeofType;
141 + default: return $$typeof;
142 + }
143 + }
144 + case REACT_PORTAL_TYPE: return $$typeof;
145 + }
146 + }
147 + }
148 + var AsyncMode = REACT_ASYNC_MODE_TYPE;
149 + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
150 + var ContextConsumer = REACT_CONTEXT_TYPE;
151 + var ContextProvider = REACT_PROVIDER_TYPE;
152 + var Element = REACT_ELEMENT_TYPE;
153 + var ForwardRef = REACT_FORWARD_REF_TYPE;
154 + var Fragment = REACT_FRAGMENT_TYPE;
155 + var Lazy = REACT_LAZY_TYPE;
156 + var Memo = REACT_MEMO_TYPE;
157 + var Portal = REACT_PORTAL_TYPE;
158 + var Profiler = REACT_PROFILER_TYPE;
159 + var StrictMode = REACT_STRICT_MODE_TYPE;
160 + var Suspense = REACT_SUSPENSE_TYPE;
161 + var hasWarnedAboutDeprecatedIsAsyncMode = false;
162 + function isAsyncMode(object) {
163 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
164 + hasWarnedAboutDeprecatedIsAsyncMode = true;
165 + 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.");
166 + }
167 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
168 + }
169 + function isConcurrentMode(object) {
170 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
171 + }
172 + function isContextConsumer(object) {
173 + return typeOf(object) === REACT_CONTEXT_TYPE;
174 + }
175 + function isContextProvider(object) {
176 + return typeOf(object) === REACT_PROVIDER_TYPE;
177 + }
178 + function isElement(object) {
179 + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
180 + }
181 + function isForwardRef(object) {
182 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
183 + }
184 + function isFragment(object) {
185 + return typeOf(object) === REACT_FRAGMENT_TYPE;
186 + }
187 + function isLazy(object) {
188 + return typeOf(object) === REACT_LAZY_TYPE;
189 + }
190 + function isMemo(object) {
191 + return typeOf(object) === REACT_MEMO_TYPE;
192 + }
193 + function isPortal(object) {
194 + return typeOf(object) === REACT_PORTAL_TYPE;
195 + }
196 + function isProfiler(object) {
197 + return typeOf(object) === REACT_PROFILER_TYPE;
198 + }
199 + function isStrictMode(object) {
200 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
201 + }
202 + function isSuspense(object) {
203 + return typeOf(object) === REACT_SUSPENSE_TYPE;
204 + }
205 + exports.AsyncMode = AsyncMode;
206 + exports.ConcurrentMode = ConcurrentMode;
207 + exports.ContextConsumer = ContextConsumer;
208 + exports.ContextProvider = ContextProvider;
209 + exports.Element = Element;
210 + exports.ForwardRef = ForwardRef;
211 + exports.Fragment = Fragment;
212 + exports.Lazy = Lazy;
213 + exports.Memo = Memo;
214 + exports.Portal = Portal;
215 + exports.Profiler = Profiler;
216 + exports.StrictMode = StrictMode;
217 + exports.Suspense = Suspense;
218 + exports.isAsyncMode = isAsyncMode;
219 + exports.isConcurrentMode = isConcurrentMode;
220 + exports.isContextConsumer = isContextConsumer;
221 + exports.isContextProvider = isContextProvider;
222 + exports.isElement = isElement;
223 + exports.isForwardRef = isForwardRef;
224 + exports.isFragment = isFragment;
225 + exports.isLazy = isLazy;
226 + exports.isMemo = isMemo;
227 + exports.isPortal = isPortal;
228 + exports.isProfiler = isProfiler;
229 + exports.isStrictMode = isStrictMode;
230 + exports.isSuspense = isSuspense;
231 + exports.isValidElementType = isValidElementType;
232 + exports.typeOf = typeOf;
233 + })();
234 + }));
488 235
489 - for (var s = 1; s < arguments.length; s++) {
490 - from = Object(arguments[s]);
236 +//#endregion
237 +//#region node_modules/prop-types/node_modules/react-is/index.js
238 + var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
239 + module.exports = require_react_is_development();
240 + }));
491 241
492 - for (var key in from) {
493 - if (hasOwnProperty.call(from, key)) {
494 - to[key] = from[key];
242 +//#endregion
243 +//#region node_modules/object-assign/index.js
244 +/*
245 + object-assign
246 + (c) Sindre Sorhus
247 + @license MIT
248 + */
249 + var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
250 + var getOwnPropertySymbols = Object.getOwnPropertySymbols;
251 + var hasOwnProperty = Object.prototype.hasOwnProperty;
252 + var propIsEnumerable = Object.prototype.propertyIsEnumerable;
253 + function toObject(val) {
254 + if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
255 + return Object(val);
256 + }
257 + function shouldUseNative() {
258 + try {
259 + if (!Object.assign) return false;
260 + var test1 = /* @__PURE__ */ new String("abc");
261 + test1[5] = "de";
262 + if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
263 + var test2 = {};
264 + for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
265 + if (Object.getOwnPropertyNames(test2).map(function(n) {
266 + return test2[n];
267 + }).join("") !== "0123456789") return false;
268 + var test3 = {};
269 + "abcdefghijklmnopqrst".split("").forEach(function(letter) {
270 + test3[letter] = letter;
271 + });
272 + if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
273 + return true;
274 + } catch (err) {
275 + return false;
495 276 }
496 277 }
497 -
498 - if (getOwnPropertySymbols) {
499 - symbols = getOwnPropertySymbols(from);
500 - for (var i = 0; i < symbols.length; i++) {
501 - if (propIsEnumerable.call(from, symbols[i])) {
502 - to[symbols[i]] = from[symbols[i]];
278 + module.exports = shouldUseNative() ? Object.assign : function(target, source) {
279 + var from;
280 + var to = toObject(target);
281 + var symbols;
282 + for (var s = 1; s < arguments.length; s++) {
283 + from = Object(arguments[s]);
284 + for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
285 + if (getOwnPropertySymbols) {
286 + symbols = getOwnPropertySymbols(from);
287 + for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
503 288 }
504 289 }
505 - }
506 - }
290 + return to;
291 + };
292 + }));
507 293
508 - return to;
509 -};
510 -
511 -
512 -/***/ }),
513 -
514 -/***/ "../node_modules/prop-types/checkPropTypes.js":
515 -/*!****************************************************!*\
516 - !*** ../node_modules/prop-types/checkPropTypes.js ***!
517 - \****************************************************/
518 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
519 -
520 -"use strict";
294 +//#endregion
295 +//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
521 296 /**
522 - * Copyright (c) 2013-present, Facebook, Inc.
523 - *
524 - * This source code is licensed under the MIT license found in the
525 - * LICENSE file in the root directory of this source tree.
526 - */
297 + * Copyright (c) 2013-present, Facebook, Inc.
298 + *
299 + * This source code is licensed under the MIT license found in the
300 + * LICENSE file in the root directory of this source tree.
301 + */
302 + var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
303 + var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
304 + module.exports = ReactPropTypesSecret;
305 + }));
527 306
307 +//#endregion
308 +//#region node_modules/prop-types/lib/has.js
309 + var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
310 + module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
311 + }));
528 312
529 -
530 -var printWarning = function() {};
531 -
532 -if (true) {
533 - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
534 - var loggedTypeFailures = {};
535 - var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
536 -
537 - printWarning = function(text) {
538 - var message = 'Warning: ' + text;
539 - if (typeof console !== 'undefined') {
540 - console.error(message);
541 - }
542 - try {
543 - // --- Welcome to debugging React ---
544 - // This error was thrown as a convenience so that you can use this stack
545 - // to find the callsite that caused this warning to fire.
546 - throw new Error(message);
547 - } catch (x) { /**/ }
548 - };
549 -}
550 -
313 +//#endregion
314 +//#region node_modules/prop-types/checkPropTypes.js
551 315 /**
552 - * Assert that the values match with the type specs.
553 - * Error messages are memorized and will only be shown once.
554 - *
555 - * @param {object} typeSpecs Map of name to a ReactPropType
556 - * @param {object} values Runtime values that need to be type-checked
557 - * @param {string} location e.g. "prop", "context", "child context"
558 - * @param {string} componentName Name of the component for error messages.
559 - * @param {?Function} getStack Returns the component stack.
560 - * @private
561 - */
562 -function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
563 - if (true) {
564 - for (var typeSpecName in typeSpecs) {
565 - if (has(typeSpecs, typeSpecName)) {
566 - var error;
567 - // Prop type validation may throw. In case they do, we don't want to
568 - // fail the render phase where it didn't fail before. So we log it.
569 - // After these have been cleaned up, we'll let them throw.
570 - try {
571 - // This is intentionally an invariant that gets caught. It's the same
572 - // behavior as without this statement except with a better message.
573 - if (typeof typeSpecs[typeSpecName] !== 'function') {
574 - var err = Error(
575 - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
576 - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
577 - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
578 - );
579 - err.name = 'Invariant Violation';
580 - throw err;
581 - }
582 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
583 - } catch (ex) {
584 - error = ex;
585 - }
586 - if (error && !(error instanceof Error)) {
587 - printWarning(
588 - (componentName || 'React class') + ': type specification of ' +
589 - location + ' `' + typeSpecName + '` is invalid; the type checker ' +
590 - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
591 - 'You may have forgotten to pass an argument to the type checker ' +
592 - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
593 - 'shape all require an argument).'
594 - );
595 - }
596 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
597 - // Only monitor this failure once because there tends to be a lot of the
598 - // same error.
599 - loggedTypeFailures[error.message] = true;
316 + * Copyright (c) 2013-present, Facebook, Inc.
317 + *
318 + * This source code is licensed under the MIT license found in the
319 + * LICENSE file in the root directory of this source tree.
320 + */
321 + var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
322 + var printWarning = function() {};
323 + var ReactPropTypesSecret = require_ReactPropTypesSecret();
324 + var loggedTypeFailures = {};
325 + var has = require_has();
326 + printWarning = function(text) {
327 + var message = "Warning: " + text;
328 + if (typeof console !== "undefined") console.error(message);
329 + try {
330 + throw new Error(message);
331 + } catch (x) {}
332 + };
333 + /**
334 + * Assert that the values match with the type specs.
335 + * Error messages are memorized and will only be shown once.
336 + *
337 + * @param {object} typeSpecs Map of name to a ReactPropType
338 + * @param {object} values Runtime values that need to be type-checked
339 + * @param {string} location e.g. "prop", "context", "child context"
340 + * @param {string} componentName Name of the component for error messages.
341 + * @param {?Function} getStack Returns the component stack.
342 + * @private
343 + */
344 + function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
345 + for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
346 + var error;
347 + try {
348 + if (typeof typeSpecs[typeSpecName] !== "function") {
349 + 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`.");
350 + err.name = "Invariant Violation";
351 + throw err;
352 + }
353 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
354 + } catch (ex) {
355 + error = ex;
356 + }
357 + 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).");
358 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
359 + loggedTypeFailures[error.message] = true;
360 + var stack = getStack ? getStack() : "";
361 + printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
362 + }
363 + }
364 + }
365 + /**
366 + * Resets warning cache when testing.
367 + *
368 + * @private
369 + */
370 + checkPropTypes.resetWarningCache = function() {
371 + loggedTypeFailures = {};
372 + };
373 + module.exports = checkPropTypes;
374 + }));
600 375
601 - var stack = getStack ? getStack() : '';
602 -
603 - printWarning(
604 - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
605 - );
606 - }
607 - }
608 - }
609 - }
610 -}
611 -
376 +//#endregion
377 +//#region node_modules/prop-types/factoryWithTypeCheckers.js
612 378 /**
613 - * Resets warning cache when testing.
614 - *
615 - * @private
616 - */
617 -checkPropTypes.resetWarningCache = function() {
618 - if (true) {
619 - loggedTypeFailures = {};
620 - }
621 -}
379 + * Copyright (c) 2013-present, Facebook, Inc.
380 + *
381 + * This source code is licensed under the MIT license found in the
382 + * LICENSE file in the root directory of this source tree.
383 + */
384 + var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
385 + var ReactIs = require_react_is();
386 + var assign = require_object_assign();
387 + var ReactPropTypesSecret = require_ReactPropTypesSecret();
388 + var has = require_has();
389 + var checkPropTypes = require_checkPropTypes();
390 + var printWarning = function() {};
391 + printWarning = function(text) {
392 + var message = "Warning: " + text;
393 + if (typeof console !== "undefined") console.error(message);
394 + try {
395 + throw new Error(message);
396 + } catch (x) {}
397 + };
398 + function emptyFunctionThatReturnsNull() {
399 + return null;
400 + }
401 + module.exports = function(isValidElement, throwOnDirectAccess) {
402 + var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
403 + var FAUX_ITERATOR_SYMBOL = "@@iterator";
404 + /**
405 + * Returns the iterator method function contained on the iterable object.
406 + *
407 + * Be sure to invoke the function with the iterable as context:
408 + *
409 + * var iteratorFn = getIteratorFn(myIterable);
410 + * if (iteratorFn) {
411 + * var iterator = iteratorFn.call(myIterable);
412 + * ...
413 + * }
414 + *
415 + * @param {?object} maybeIterable
416 + * @return {?function}
417 + */
418 + function getIteratorFn(maybeIterable) {
419 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
420 + if (typeof iteratorFn === "function") return iteratorFn;
421 + }
422 + /**
423 + * Collection of methods that allow declaration and validation of props that are
424 + * supplied to React components. Example usage:
425 + *
426 + * var Props = require('ReactPropTypes');
427 + * var MyArticle = React.createClass({
428 + * propTypes: {
429 + * // An optional string prop named "description".
430 + * description: Props.string,
431 + *
432 + * // A required enum prop named "category".
433 + * category: Props.oneOf(['News','Photos']).isRequired,
434 + *
435 + * // A prop named "dialog" that requires an instance of Dialog.
436 + * dialog: Props.instanceOf(Dialog).isRequired
437 + * },
438 + * render: function() { ... }
439 + * });
440 + *
441 + * A more formal specification of how these methods are used:
442 + *
443 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
444 + * decl := ReactPropTypes.{type}(.isRequired)?
445 + *
446 + * Each and every declaration produces a function with the same signature. This
447 + * allows the creation of custom validation functions. For example:
448 + *
449 + * var MyLink = React.createClass({
450 + * propTypes: {
451 + * // An optional string or URI prop named "href".
452 + * href: function(props, propName, componentName) {
453 + * var propValue = props[propName];
454 + * if (propValue != null && typeof propValue !== 'string' &&
455 + * !(propValue instanceof URI)) {
456 + * return new Error(
457 + * 'Expected a string or an URI for ' + propName + ' in ' +
458 + * componentName
459 + * );
460 + * }
461 + * }
462 + * },
463 + * render: function() {...}
464 + * });
465 + *
466 + * @internal
467 + */
468 + var ANONYMOUS = "<<anonymous>>";
469 + var ReactPropTypes = {
470 + array: createPrimitiveTypeChecker("array"),
471 + bigint: createPrimitiveTypeChecker("bigint"),
472 + bool: createPrimitiveTypeChecker("boolean"),
473 + func: createPrimitiveTypeChecker("function"),
474 + number: createPrimitiveTypeChecker("number"),
475 + object: createPrimitiveTypeChecker("object"),
476 + string: createPrimitiveTypeChecker("string"),
477 + symbol: createPrimitiveTypeChecker("symbol"),
478 + any: createAnyTypeChecker(),
479 + arrayOf: createArrayOfTypeChecker,
480 + element: createElementTypeChecker(),
481 + elementType: createElementTypeTypeChecker(),
482 + instanceOf: createInstanceTypeChecker,
483 + node: createNodeChecker(),
484 + objectOf: createObjectOfTypeChecker,
485 + oneOf: createEnumTypeChecker,
486 + oneOfType: createUnionTypeChecker,
487 + shape: createShapeTypeChecker,
488 + exact: createStrictShapeTypeChecker
489 + };
490 + /**
491 + * inlined Object.is polyfill to avoid requiring consumers ship their own
492 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
493 + */
494 + function is(x, y) {
495 + if (x === y) return x !== 0 || 1 / x === 1 / y;
496 + else return x !== x && y !== y;
497 + }
498 + /**
499 + * We use an Error-like object for backward compatibility as people may call
500 + * PropTypes directly and inspect their output. However, we don't use real
501 + * Errors anymore. We don't inspect their stack anyway, and creating them
502 + * is prohibitively expensive if they are created too often, such as what
503 + * happens in oneOfType() for any type before the one that matched.
504 + */
505 + function PropTypeError(message, data) {
506 + this.message = message;
507 + this.data = data && typeof data === "object" ? data : {};
508 + this.stack = "";
509 + }
510 + PropTypeError.prototype = Error.prototype;
511 + function createChainableTypeChecker(validate) {
512 + var manualPropTypeCallCache = {};
513 + var manualPropTypeWarningCount = 0;
514 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
515 + componentName = componentName || ANONYMOUS;
516 + propFullName = propFullName || propName;
517 + if (secret !== ReactPropTypesSecret) {
518 + if (throwOnDirectAccess) {
519 + 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");
520 + err.name = "Invariant Violation";
521 + throw err;
522 + } else if (typeof console !== "undefined") {
523 + var cacheKey = componentName + ":" + propName;
524 + if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
525 + 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.");
526 + manualPropTypeCallCache[cacheKey] = true;
527 + manualPropTypeWarningCount++;
528 + }
529 + }
530 + }
531 + if (props[propName] == null) {
532 + if (isRequired) {
533 + if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
534 + return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
535 + }
536 + return null;
537 + } else return validate(props, propName, componentName, location, propFullName);
538 + }
539 + var chainedCheckType = checkType.bind(null, false);
540 + chainedCheckType.isRequired = checkType.bind(null, true);
541 + return chainedCheckType;
542 + }
543 + function createPrimitiveTypeChecker(expectedType) {
544 + function validate(props, propName, componentName, location, propFullName, secret) {
545 + var propValue = props[propName];
546 + if (getPropType(propValue) !== expectedType) {
547 + var preciseType = getPreciseType(propValue);
548 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
549 + }
550 + return null;
551 + }
552 + return createChainableTypeChecker(validate);
553 + }
554 + function createAnyTypeChecker() {
555 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
556 + }
557 + function createArrayOfTypeChecker(typeChecker) {
558 + function validate(props, propName, componentName, location, propFullName) {
559 + if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
560 + var propValue = props[propName];
561 + if (!Array.isArray(propValue)) {
562 + var propType = getPropType(propValue);
563 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
564 + }
565 + for (var i = 0; i < propValue.length; i++) {
566 + var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
567 + if (error instanceof Error) return error;
568 + }
569 + return null;
570 + }
571 + return createChainableTypeChecker(validate);
572 + }
573 + function createElementTypeChecker() {
574 + function validate(props, propName, componentName, location, propFullName) {
575 + var propValue = props[propName];
576 + if (!isValidElement(propValue)) {
577 + var propType = getPropType(propValue);
578 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
579 + }
580 + return null;
581 + }
582 + return createChainableTypeChecker(validate);
583 + }
584 + function createElementTypeTypeChecker() {
585 + function validate(props, propName, componentName, location, propFullName) {
586 + var propValue = props[propName];
587 + if (!ReactIs.isValidElementType(propValue)) {
588 + var propType = getPropType(propValue);
589 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
590 + }
591 + return null;
592 + }
593 + return createChainableTypeChecker(validate);
594 + }
595 + function createInstanceTypeChecker(expectedClass) {
596 + function validate(props, propName, componentName, location, propFullName) {
597 + if (!(props[propName] instanceof expectedClass)) {
598 + var expectedClassName = expectedClass.name || ANONYMOUS;
599 + var actualClassName = getClassName(props[propName]);
600 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
601 + }
602 + return null;
603 + }
604 + return createChainableTypeChecker(validate);
605 + }
606 + function createEnumTypeChecker(expectedValues) {
607 + if (!Array.isArray(expectedValues)) {
608 + 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]).");
609 + else printWarning("Invalid argument supplied to oneOf, expected an array.");
610 + return emptyFunctionThatReturnsNull;
611 + }
612 + function validate(props, propName, componentName, location, propFullName) {
613 + var propValue = props[propName];
614 + for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
615 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
616 + if (getPreciseType(value) === "symbol") return String(value);
617 + return value;
618 + });
619 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
620 + }
621 + return createChainableTypeChecker(validate);
622 + }
623 + function createObjectOfTypeChecker(typeChecker) {
624 + function validate(props, propName, componentName, location, propFullName) {
625 + if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
626 + var propValue = props[propName];
627 + var propType = getPropType(propValue);
628 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
629 + for (var key in propValue) if (has(propValue, key)) {
630 + var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
631 + if (error instanceof Error) return error;
632 + }
633 + return null;
634 + }
635 + return createChainableTypeChecker(validate);
636 + }
637 + function createUnionTypeChecker(arrayOfTypeCheckers) {
638 + if (!Array.isArray(arrayOfTypeCheckers)) {
639 + printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
640 + return emptyFunctionThatReturnsNull;
641 + }
642 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
643 + var checker = arrayOfTypeCheckers[i];
644 + if (typeof checker !== "function") {
645 + printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
646 + return emptyFunctionThatReturnsNull;
647 + }
648 + }
649 + function validate(props, propName, componentName, location, propFullName) {
650 + var expectedTypes = [];
651 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
652 + var checker = arrayOfTypeCheckers[i];
653 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
654 + if (checkerResult == null) return null;
655 + if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
656 + }
657 + var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
658 + return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
659 + }
660 + return createChainableTypeChecker(validate);
661 + }
662 + function createNodeChecker() {
663 + function validate(props, propName, componentName, location, propFullName) {
664 + if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
665 + return null;
666 + }
667 + return createChainableTypeChecker(validate);
668 + }
669 + function invalidValidatorError(componentName, location, propFullName, key, type) {
670 + 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 + "`.");
671 + }
672 + function createShapeTypeChecker(shapeTypes) {
673 + function validate(props, propName, componentName, location, propFullName) {
674 + var propValue = props[propName];
675 + var propType = getPropType(propValue);
676 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
677 + for (var key in shapeTypes) {
678 + var checker = shapeTypes[key];
679 + if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
680 + var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
681 + if (error) return error;
682 + }
683 + return null;
684 + }
685 + return createChainableTypeChecker(validate);
686 + }
687 + function createStrictShapeTypeChecker(shapeTypes) {
688 + function validate(props, propName, componentName, location, propFullName) {
689 + var propValue = props[propName];
690 + var propType = getPropType(propValue);
691 + if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
692 + for (var key in assign({}, props[propName], shapeTypes)) {
693 + var checker = shapeTypes[key];
694 + if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
695 + 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, " "));
696 + var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
697 + if (error) return error;
698 + }
699 + return null;
700 + }
701 + return createChainableTypeChecker(validate);
702 + }
703 + function isNode(propValue) {
704 + switch (typeof propValue) {
705 + case "number":
706 + case "string":
707 + case "undefined": return true;
708 + case "boolean": return !propValue;
709 + case "object":
710 + if (Array.isArray(propValue)) return propValue.every(isNode);
711 + if (propValue === null || isValidElement(propValue)) return true;
712 + var iteratorFn = getIteratorFn(propValue);
713 + if (iteratorFn) {
714 + var iterator = iteratorFn.call(propValue);
715 + var step;
716 + if (iteratorFn !== propValue.entries) {
717 + while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
718 + } else while (!(step = iterator.next()).done) {
719 + var entry = step.value;
720 + if (entry) {
721 + if (!isNode(entry[1])) return false;
722 + }
723 + }
724 + } else return false;
725 + return true;
726 + default: return false;
727 + }
728 + }
729 + function isSymbol(propType, propValue) {
730 + if (propType === "symbol") return true;
731 + if (!propValue) return false;
732 + if (propValue["@@toStringTag"] === "Symbol") return true;
733 + if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
734 + return false;
735 + }
736 + function getPropType(propValue) {
737 + var propType = typeof propValue;
738 + if (Array.isArray(propValue)) return "array";
739 + if (propValue instanceof RegExp) return "object";
740 + if (isSymbol(propType, propValue)) return "symbol";
741 + return propType;
742 + }
743 + function getPreciseType(propValue) {
744 + if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
745 + var propType = getPropType(propValue);
746 + if (propType === "object") {
747 + if (propValue instanceof Date) return "date";
748 + else if (propValue instanceof RegExp) return "regexp";
749 + }
750 + return propType;
751 + }
752 + function getPostfixForTypeWarning(value) {
753 + var type = getPreciseType(value);
754 + switch (type) {
755 + case "array":
756 + case "object": return "an " + type;
757 + case "boolean":
758 + case "date":
759 + case "regexp": return "a " + type;
760 + default: return type;
761 + }
762 + }
763 + function getClassName(propValue) {
764 + if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
765 + return propValue.constructor.name;
766 + }
767 + ReactPropTypes.checkPropTypes = checkPropTypes;
768 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
769 + ReactPropTypes.PropTypes = ReactPropTypes;
770 + return ReactPropTypes;
771 + };
772 + }));
622 773
623 -module.exports = checkPropTypes;
774 +//#endregion
775 +//#region node_modules/prop-types/index.js
776 + var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
777 + var ReactIs = require_react_is();
778 + var throwOnDirectAccess = true;
779 + module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
780 + }));
624 781
782 +//#endregion
783 +//#region modules/atomic-opt-in/assets/js/panel-chip/components/popover-card.js
784 + var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
785 + var popoverData = {
786 + image: "https://assets.elementor.com/v4-promotion/v1/images/atomic_elements_section_296.png",
787 + image_alt: (0, _wordpress_i18n.__)("Atomic Elements", "elementor"),
788 + title: (0, _wordpress_i18n.__)("Atomic Elements", "elementor"),
789 + description: [(0, _wordpress_i18n.__)("Modern, flexible elements designed for reusable styles and cleaner layouts.", "elementor")],
790 + upgrade_text: (0, _wordpress_i18n.__)("Learn more", "elementor"),
791 + upgrade_url: "https://go.elementor.com/wp-dash-opt-in-v4-help-center/"
792 + };
793 + var PopoverCard = function PopoverCard(_ref) {
794 + var doClose = _ref.doClose;
795 + var title = popoverData === null || popoverData === void 0 ? void 0 : popoverData.title;
796 + var description = popoverData === null || popoverData === void 0 ? void 0 : popoverData.description;
797 + var imgSrc = popoverData === null || popoverData === void 0 ? void 0 : popoverData.image;
798 + var imgAlt = popoverData === null || popoverData === void 0 ? void 0 : popoverData.image_alt;
799 + var ctaText = popoverData === null || popoverData === void 0 ? void 0 : popoverData.upgrade_text;
800 + var ctaUrl = popoverData === null || popoverData === void 0 ? void 0 : popoverData.upgrade_url;
801 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ClickAwayListener, {
802 + disableReactTree: true,
803 + mouseEvent: "onMouseDown",
804 + touchEvent: "onTouchStart",
805 + onClickAway: doClose
806 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
807 + sx: { width: 296 },
808 + "data-testid": "e-popover-card"
809 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
810 + direction: "row",
811 + alignItems: "center",
812 + py: 1,
813 + px: 2
814 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { variant: "subtitle2" }, title), /*#__PURE__*/ react.default.createElement(_elementor_ui.CloseButton, {
815 + edge: "end",
816 + sx: { ml: "auto" },
817 + slotProps: { icon: { fontSize: "small" } },
818 + onClick: doClose
819 + })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Image, {
820 + src: imgSrc,
821 + alt: imgAlt,
822 + sx: {
823 + height: 150,
824 + width: "100%"
825 + }
826 + }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { px: 2 }, 1 === description.length ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
827 + variant: "body2",
828 + color: "secondary",
829 + sx: {
830 + pt: 1.5,
831 + pb: 1
832 + }
833 + }, description[0]) : /*#__PURE__*/ react.default.createElement(_elementor_ui.List, { sx: { pl: 2 } }, description.map(function(text, index) {
834 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItem, {
835 + key: index,
836 + sx: {
837 + listStyle: "disc",
838 + display: "list-item",
839 + color: "text.secondary",
840 + p: 0
841 + }
842 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
843 + variant: "body2",
844 + color: "secondary"
845 + }, text));
846 + }))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
847 + pt: 1,
848 + pb: 1.5,
849 + px: 2
850 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
851 + variant: "contained",
852 + size: "small",
853 + color: "inherit",
854 + onClick: function redirectHandler() {
855 + window.open(ctaUrl, "_blank");
856 + return doClose();
857 + },
858 + sx: {
859 + ml: "auto",
860 + bgcolor: "text.primary",
861 + color: "background.paper",
862 + "&:hover": {
863 + bgcolor: "text.secondary",
864 + color: "background.paper"
865 + }
866 + }
867 + }, ctaText))));
868 + };
869 + PopoverCard.propTypes = { doClose: import_prop_types.default.func };
625 870
626 -/***/ }),
871 +//#endregion
872 +//#region modules/atomic-opt-in/assets/js/panel-chip/app.js
873 + var App = function App(props) {
874 + return /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: props.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.LocalizationProvider, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, {
875 + colorScheme: props.colorScheme,
876 + palette: "unstable"
877 + }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Infotip, {
878 + content: /*#__PURE__*/ react.default.createElement(PopoverCard, { doClose: props.onClose }),
879 + placement: "right",
880 + arrow: true,
881 + open: true,
882 + disableHoverListener: true,
883 + PopperProps: { modifiers: [{
884 + name: "offset",
885 + options: { offset: [-24, 8] }
886 + }] }
887 + }, /*#__PURE__*/ react.default.createElement("span", null)))));
888 + };
889 + App.propTypes = {
890 + colorScheme: import_prop_types.default.oneOf([
891 + "auto",
892 + "light",
893 + "dark"
894 + ]),
895 + isRTL: import_prop_types.default.bool,
896 + onClose: import_prop_types.default.func.isRequired
897 + };
627 898
628 -/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
629 -/*!*************************************************************!*\
630 - !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
631 - \*************************************************************/
632 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
899 +//#endregion
900 +//#region node_modules/react-dom/client.js
901 + var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
902 + var m = (globalThis.ReactDOM);
903 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
904 + exports.createRoot = function(c, o) {
905 + i.usingClientEntryPoint = true;
906 + try {
907 + return m.createRoot(c, o);
908 + } finally {
909 + i.usingClientEntryPoint = false;
910 + }
911 + };
912 + }));
633 913
634 -"use strict";
635 -/**
636 - * Copyright (c) 2013-present, Facebook, Inc.
637 - *
638 - * This source code is licensed under the MIT license found in the
639 - * LICENSE file in the root directory of this source tree.
640 - */
914 +//#endregion
915 +//#region assets/dev/js/editor/utils/preview-iframe-listeners.js
916 +var import_client = require_client();
917 + function bindPreviewIframeEvents(callback) {
918 + var _elementor;
919 + var iframeDocument = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.$preview) === null || _elementor === void 0 || (_elementor = _elementor[0]) === null || _elementor === void 0 ? void 0 : _elementor.contentDocument;
920 + if (!iframeDocument) return function() {};
921 + var handleEvent = function handleEvent() {
922 + return callback();
923 + };
924 + iframeDocument.addEventListener("click", handleEvent);
925 + iframeDocument.addEventListener("keydown", handleEvent);
926 + return function() {
927 + iframeDocument.removeEventListener("click", handleEvent);
928 + iframeDocument.removeEventListener("keydown", handleEvent);
929 + };
930 + }
641 931
932 +//#endregion
933 +//#region modules/atomic-opt-in/assets/js/panel-chip/app-manager.js
934 + var AppManager = /*#__PURE__*/ function() {
935 + function AppManager() {
936 + _classCallCheck(this, AppManager);
937 + this.popover = null;
938 + this.onRoute = function() {};
939 + this.unbindIframeEvents = function() {};
940 + }
941 + return _createClass(AppManager, [
942 + {
943 + key: "mount",
944 + value: function mount(targetNode, selectors) {
945 + var _elementor;
946 + var _elementor$getPrefere;
947 + var _this = this;
948 + if (this.popover) return;
949 + var wrapperElement = targetNode === null || targetNode === void 0 ? void 0 : targetNode.closest(selectors.wrapperElement);
950 + var rootElement = wrapperElement === null || wrapperElement === void 0 ? void 0 : wrapperElement.querySelector(selectors.reactAnchor);
951 + if (!rootElement) return;
952 + this.attachEditorEventListeners();
953 + this.popover = (0, import_client.createRoot)(rootElement);
954 + var colorScheme = ((_elementor = elementor) === null || _elementor === void 0 || (_elementor$getPrefere = _elementor.getPreferences) === null || _elementor$getPrefere === void 0 ? void 0 : _elementor$getPrefere.call(_elementor, "ui_theme")) || "auto";
955 + var isRTL = elementorCommon.config.isRTL;
956 + this.popover.render(/*#__PURE__*/ react.default.createElement(App, {
957 + colorScheme,
958 + isRTL,
959 + onClose: function onClose() {
960 + return _this.unmount();
961 + }
962 + }));
963 + }
964 + },
965 + {
966 + key: "unmount",
967 + value: function unmount() {
968 + if (this.popover) {
969 + this.detachEditorEventListeners();
970 + this.popover.unmount();
971 + this.unbindIframeEvents();
972 + }
973 + this.popover = null;
974 + }
975 + },
976 + {
977 + key: "setupRouteListener",
978 + value: function setupRouteListener() {
979 + var _this2 = this;
980 + this.onRoute = function(component, route) {
981 + if (route !== "panel/elements/categories" && route !== "panel/editor/content") return;
982 + _this2.unmount();
983 + };
984 + $e.routes.on("run:after", this.onRoute);
985 + }
986 + },
987 + {
988 + key: "attachEditorEventListeners",
989 + value: function attachEditorEventListeners() {
990 + var _this3 = this;
991 + this.unbindIframeEvents = bindPreviewIframeEvents(function() {
992 + return _this3.unmount();
993 + });
994 + this.setupRouteListener();
995 + }
996 + },
997 + {
998 + key: "detachEditorEventListeners",
999 + value: function detachEditorEventListeners() {
1000 + $e.routes.off("run:after", this.onRoute);
1001 + }
1002 + }
1003 + ]);
1004 + }();
642 1005
1006 +//#endregion
1007 +//#region modules/atomic-opt-in/assets/js/panel-chip/panel-chip.js
1008 + new (/* @__PURE__ */ function() {
1009 + function AlphaChipApp() {
1010 + _classCallCheck(this, AlphaChipApp);
1011 + this.appManager = new AppManager();
1012 + this.initializeListener();
1013 + }
1014 + return _createClass(AlphaChipApp, [{
1015 + key: "initializeListener",
1016 + value: function initializeListener() {
1017 + var _this = this;
1018 + document.addEventListener("alphachip:open", function(event) {
1019 + var targetElement = event.detail.target;
1020 + var chipElement = targetElement === null || targetElement === void 0 ? void 0 : targetElement.find(".elementor-panel-heading-category-chip")[0];
1021 + if (!chipElement) return;
1022 + _this.appManager.mount(chipElement, {
1023 + wrapperElement: ".elementor-panel-category-title",
1024 + reactAnchor: ".e-promotion-react-wrapper"
1025 + });
1026 + });
1027 + }
1028 + }]);
1029 + }())();
643 1030
644 -var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
645 -var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
646 -
647 -var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
648 -var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
649 -var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
650 -
651 -var printWarning = function() {};
652 -
653 -if (true) {
654 - printWarning = function(text) {
655 - var message = 'Warning: ' + text;
656 - if (typeof console !== 'undefined') {
657 - console.error(message);
658 - }
659 - try {
660 - // --- Welcome to debugging React ---
661 - // This error was thrown as a convenience so that you can use this stack
662 - // to find the callsite that caused this warning to fire.
663 - throw new Error(message);
664 - } catch (x) {}
665 - };
666 -}
667 -
668 -function emptyFunctionThatReturnsNull() {
669 - return null;
670 -}
671 -
672 -module.exports = function(isValidElement, throwOnDirectAccess) {
673 - /* global Symbol */
674 - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
675 - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
676 -
677 - /**
678 - * Returns the iterator method function contained on the iterable object.
679 - *
680 - * Be sure to invoke the function with the iterable as context:
681 - *
682 - * var iteratorFn = getIteratorFn(myIterable);
683 - * if (iteratorFn) {
684 - * var iterator = iteratorFn.call(myIterable);
685 - * ...
686 - * }
687 - *
688 - * @param {?object} maybeIterable
689 - * @return {?function}
690 - */
691 - function getIteratorFn(maybeIterable) {
692 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
693 - if (typeof iteratorFn === 'function') {
694 - return iteratorFn;
695 - }
696 - }
697 -
698 - /**
699 - * Collection of methods that allow declaration and validation of props that are
700 - * supplied to React components. Example usage:
701 - *
702 - * var Props = require('ReactPropTypes');
703 - * var MyArticle = React.createClass({
704 - * propTypes: {
705 - * // An optional string prop named "description".
706 - * description: Props.string,
707 - *
708 - * // A required enum prop named "category".
709 - * category: Props.oneOf(['News','Photos']).isRequired,
710 - *
711 - * // A prop named "dialog" that requires an instance of Dialog.
712 - * dialog: Props.instanceOf(Dialog).isRequired
713 - * },
714 - * render: function() { ... }
715 - * });
716 - *
717 - * A more formal specification of how these methods are used:
718 - *
719 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
720 - * decl := ReactPropTypes.{type}(.isRequired)?
721 - *
722 - * Each and every declaration produces a function with the same signature. This
723 - * allows the creation of custom validation functions. For example:
724 - *
725 - * var MyLink = React.createClass({
726 - * propTypes: {
727 - * // An optional string or URI prop named "href".
728 - * href: function(props, propName, componentName) {
729 - * var propValue = props[propName];
730 - * if (propValue != null && typeof propValue !== 'string' &&
731 - * !(propValue instanceof URI)) {
732 - * return new Error(
733 - * 'Expected a string or an URI for ' + propName + ' in ' +
734 - * componentName
735 - * );
736 - * }
737 - * }
738 - * },
739 - * render: function() {...}
740 - * });
741 - *
742 - * @internal
743 - */
744 -
745 - var ANONYMOUS = '<<anonymous>>';
746 -
747 - // Important!
748 - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
749 - var ReactPropTypes = {
750 - array: createPrimitiveTypeChecker('array'),
751 - bigint: createPrimitiveTypeChecker('bigint'),
752 - bool: createPrimitiveTypeChecker('boolean'),
753 - func: createPrimitiveTypeChecker('function'),
754 - number: createPrimitiveTypeChecker('number'),
755 - object: createPrimitiveTypeChecker('object'),
756 - string: createPrimitiveTypeChecker('string'),
757 - symbol: createPrimitiveTypeChecker('symbol'),
758 -
759 - any: createAnyTypeChecker(),
760 - arrayOf: createArrayOfTypeChecker,
761 - element: createElementTypeChecker(),
762 - elementType: createElementTypeTypeChecker(),
763 - instanceOf: createInstanceTypeChecker,
764 - node: createNodeChecker(),
765 - objectOf: createObjectOfTypeChecker,
766 - oneOf: createEnumTypeChecker,
767 - oneOfType: createUnionTypeChecker,
768 - shape: createShapeTypeChecker,
769 - exact: createStrictShapeTypeChecker,
770 - };
771 -
772 - /**
773 - * inlined Object.is polyfill to avoid requiring consumers ship their own
774 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
775 - */
776 - /*eslint-disable no-self-compare*/
777 - function is(x, y) {
778 - // SameValue algorithm
779 - if (x === y) {
780 - // Steps 1-5, 7-10
781 - // Steps 6.b-6.e: +0 != -0
782 - return x !== 0 || 1 / x === 1 / y;
783 - } else {
784 - // Step 6.a: NaN == NaN
785 - return x !== x && y !== y;
786 - }
787 - }
788 - /*eslint-enable no-self-compare*/
789 -
790 - /**
791 - * We use an Error-like object for backward compatibility as people may call
792 - * PropTypes directly and inspect their output. However, we don't use real
793 - * Errors anymore. We don't inspect their stack anyway, and creating them
794 - * is prohibitively expensive if they are created too often, such as what
795 - * happens in oneOfType() for any type before the one that matched.
796 - */
797 - function PropTypeError(message, data) {
798 - this.message = message;
799 - this.data = data && typeof data === 'object' ? data: {};
800 - this.stack = '';
801 - }
802 - // Make `instanceof Error` still work for returned errors.
803 - PropTypeError.prototype = Error.prototype;
804 -
805 - function createChainableTypeChecker(validate) {
806 - if (true) {
807 - var manualPropTypeCallCache = {};
808 - var manualPropTypeWarningCount = 0;
809 - }
810 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
811 - componentName = componentName || ANONYMOUS;
812 - propFullName = propFullName || propName;
813 -
814 - if (secret !== ReactPropTypesSecret) {
815 - if (throwOnDirectAccess) {
816 - // New behavior only for users of `prop-types` package
817 - var err = new Error(
818 - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
819 - 'Use `PropTypes.checkPropTypes()` to call them. ' +
820 - 'Read more at http://fb.me/use-check-prop-types'
821 - );
822 - err.name = 'Invariant Violation';
823 - throw err;
824 - } else if ( true && typeof console !== 'undefined') {
825 - // Old behavior for people using React.PropTypes
826 - var cacheKey = componentName + ':' + propName;
827 - if (
828 - !manualPropTypeCallCache[cacheKey] &&
829 - // Avoid spamming the console because they are often not actionable except for lib authors
830 - manualPropTypeWarningCount < 3
831 - ) {
832 - printWarning(
833 - 'You are manually calling a React.PropTypes validation ' +
834 - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
835 - 'and will throw in the standalone `prop-types` package. ' +
836 - 'You may be seeing this warning due to a third-party PropTypes ' +
837 - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
838 - );
839 - manualPropTypeCallCache[cacheKey] = true;
840 - manualPropTypeWarningCount++;
841 - }
842 - }
843 - }
844 - if (props[propName] == null) {
845 - if (isRequired) {
846 - if (props[propName] === null) {
847 - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
848 - }
849 - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
850 - }
851 - return null;
852 - } else {
853 - return validate(props, propName, componentName, location, propFullName);
854 - }
855 - }
856 -
857 - var chainedCheckType = checkType.bind(null, false);
858 - chainedCheckType.isRequired = checkType.bind(null, true);
859 -
860 - return chainedCheckType;
861 - }
862 -
863 - function createPrimitiveTypeChecker(expectedType) {
864 - function validate(props, propName, componentName, location, propFullName, secret) {
865 - var propValue = props[propName];
866 - var propType = getPropType(propValue);
867 - if (propType !== expectedType) {
868 - // `propValue` being instance of, say, date/regexp, pass the 'object'
869 - // check, but we can offer a more precise error message here rather than
870 - // 'of type `object`'.
871 - var preciseType = getPreciseType(propValue);
872 -
873 - return new PropTypeError(
874 - 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
875 - {expectedType: expectedType}
876 - );
877 - }
878 - return null;
879 - }
880 - return createChainableTypeChecker(validate);
881 - }
882 -
883 - function createAnyTypeChecker() {
884 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
885 - }
886 -
887 - function createArrayOfTypeChecker(typeChecker) {
888 - function validate(props, propName, componentName, location, propFullName) {
889 - if (typeof typeChecker !== 'function') {
890 - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
891 - }
892 - var propValue = props[propName];
893 - if (!Array.isArray(propValue)) {
894 - var propType = getPropType(propValue);
895 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
896 - }
897 - for (var i = 0; i < propValue.length; i++) {
898 - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
899 - if (error instanceof Error) {
900 - return error;
901 - }
902 - }
903 - return null;
904 - }
905 - return createChainableTypeChecker(validate);
906 - }
907 -
908 - function createElementTypeChecker() {
909 - function validate(props, propName, componentName, location, propFullName) {
910 - var propValue = props[propName];
911 - if (!isValidElement(propValue)) {
912 - var propType = getPropType(propValue);
913 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
914 - }
915 - return null;
916 - }
917 - return createChainableTypeChecker(validate);
918 - }
919 -
920 - function createElementTypeTypeChecker() {
921 - function validate(props, propName, componentName, location, propFullName) {
922 - var propValue = props[propName];
923 - if (!ReactIs.isValidElementType(propValue)) {
924 - var propType = getPropType(propValue);
925 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
926 - }
927 - return null;
928 - }
929 - return createChainableTypeChecker(validate);
930 - }
931 -
932 - function createInstanceTypeChecker(expectedClass) {
933 - function validate(props, propName, componentName, location, propFullName) {
934 - if (!(props[propName] instanceof expectedClass)) {
935 - var expectedClassName = expectedClass.name || ANONYMOUS;
936 - var actualClassName = getClassName(props[propName]);
937 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
938 - }
939 - return null;
940 - }
941 - return createChainableTypeChecker(validate);
942 - }
943 -
944 - function createEnumTypeChecker(expectedValues) {
945 - if (!Array.isArray(expectedValues)) {
946 - if (true) {
947 - if (arguments.length > 1) {
948 - printWarning(
949 - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
950 - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
951 - );
952 - } else {
953 - printWarning('Invalid argument supplied to oneOf, expected an array.');
954 - }
955 - }
956 - return emptyFunctionThatReturnsNull;
957 - }
958 -
959 - function validate(props, propName, componentName, location, propFullName) {
960 - var propValue = props[propName];
961 - for (var i = 0; i < expectedValues.length; i++) {
962 - if (is(propValue, expectedValues[i])) {
963 - return null;
964 - }
965 - }
966 -
967 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
968 - var type = getPreciseType(value);
969 - if (type === 'symbol') {
970 - return String(value);
971 - }
972 - return value;
973 - });
974 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
975 - }
976 - return createChainableTypeChecker(validate);
977 - }
978 -
979 - function createObjectOfTypeChecker(typeChecker) {
980 - function validate(props, propName, componentName, location, propFullName) {
981 - if (typeof typeChecker !== 'function') {
982 - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
983 - }
984 - var propValue = props[propName];
985 - var propType = getPropType(propValue);
986 - if (propType !== 'object') {
987 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
988 - }
989 - for (var key in propValue) {
990 - if (has(propValue, key)) {
991 - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
992 - if (error instanceof Error) {
993 - return error;
994 - }
995 - }
996 - }
997 - return null;
998 - }
999 - return createChainableTypeChecker(validate);
1000 - }
1001 -
1002 - function createUnionTypeChecker(arrayOfTypeCheckers) {
1003 - if (!Array.isArray(arrayOfTypeCheckers)) {
1004 - true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1005 - return emptyFunctionThatReturnsNull;
1006 - }
1007 -
1008 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1009 - var checker = arrayOfTypeCheckers[i];
1010 - if (typeof checker !== 'function') {
1011 - printWarning(
1012 - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1013 - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1014 - );
1015 - return emptyFunctionThatReturnsNull;
1016 - }
1017 - }
1018 -
1019 - function validate(props, propName, componentName, location, propFullName) {
1020 - var expectedTypes = [];
1021 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1022 - var checker = arrayOfTypeCheckers[i];
1023 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1024 - if (checkerResult == null) {
1025 - return null;
1026 - }
1027 - if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1028 - expectedTypes.push(checkerResult.data.expectedType);
1029 - }
1030 - }
1031 - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1032 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1033 - }
1034 - return createChainableTypeChecker(validate);
1035 - }
1036 -
1037 - function createNodeChecker() {
1038 - function validate(props, propName, componentName, location, propFullName) {
1039 - if (!isNode(props[propName])) {
1040 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1041 - }
1042 - return null;
1043 - }
1044 - return createChainableTypeChecker(validate);
1045 - }
1046 -
1047 - function invalidValidatorError(componentName, location, propFullName, key, type) {
1048 - return new PropTypeError(
1049 - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1050 - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1051 - );
1052 - }
1053 -
1054 - function createShapeTypeChecker(shapeTypes) {
1055 - function validate(props, propName, componentName, location, propFullName) {
1056 - var propValue = props[propName];
1057 - var propType = getPropType(propValue);
1058 - if (propType !== 'object') {
1059 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1060 - }
1061 - for (var key in shapeTypes) {
1062 - var checker = shapeTypes[key];
1063 - if (typeof checker !== 'function') {
1064 - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1065 - }
1066 - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1067 - if (error) {
1068 - return error;
1069 - }
1070 - }
1071 - return null;
1072 - }
1073 - return createChainableTypeChecker(validate);
1074 - }
1075 -
1076 - function createStrictShapeTypeChecker(shapeTypes) {
1077 - function validate(props, propName, componentName, location, propFullName) {
1078 - var propValue = props[propName];
1079 - var propType = getPropType(propValue);
1080 - if (propType !== 'object') {
1081 - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1082 - }
1083 - // We need to check all keys in case some are required but missing from props.
1084 - var allKeys = assign({}, props[propName], shapeTypes);
1085 - for (var key in allKeys) {
1086 - var checker = shapeTypes[key];
1087 - if (has(shapeTypes, key) && typeof checker !== 'function') {
1088 - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1089 - }
1090 - if (!checker) {
1091 - return new PropTypeError(
1092 - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1093 - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1094 - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1095 - );
1096 - }
1097 - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1098 - if (error) {
1099 - return error;
1100 - }
1101 - }
1102 - return null;
1103 - }
1104 -
1105 - return createChainableTypeChecker(validate);
1106 - }
1107 -
1108 - function isNode(propValue) {
1109 - switch (typeof propValue) {
1110 - case 'number':
1111 - case 'string':
1112 - case 'undefined':
1113 - return true;
1114 - case 'boolean':
1115 - return !propValue;
1116 - case 'object':
1117 - if (Array.isArray(propValue)) {
1118 - return propValue.every(isNode);
1119 - }
1120 - if (propValue === null || isValidElement(propValue)) {
1121 - return true;
1122 - }
1123 -
1124 - var iteratorFn = getIteratorFn(propValue);
1125 - if (iteratorFn) {
1126 - var iterator = iteratorFn.call(propValue);
1127 - var step;
1128 - if (iteratorFn !== propValue.entries) {
1129 - while (!(step = iterator.next()).done) {
1130 - if (!isNode(step.value)) {
1131 - return false;
1132 - }
1133 - }
1134 - } else {
1135 - // Iterator will provide entry [k,v] tuples rather than values.
1136 - while (!(step = iterator.next()).done) {
1137 - var entry = step.value;
1138 - if (entry) {
1139 - if (!isNode(entry[1])) {
1140 - return false;
1141 - }
1142 - }
1143 - }
1144 - }
1145 - } else {
1146 - return false;
1147 - }
1148 -
1149 - return true;
1150 - default:
1151 - return false;
1152 - }
1153 - }
1154 -
1155 - function isSymbol(propType, propValue) {
1156 - // Native Symbol.
1157 - if (propType === 'symbol') {
1158 - return true;
1159 - }
1160 -
1161 - // falsy value can't be a Symbol
1162 - if (!propValue) {
1163 - return false;
1164 - }
1165 -
1166 - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1167 - if (propValue['@@toStringTag'] === 'Symbol') {
1168 - return true;
1169 - }
1170 -
1171 - // Fallback for non-spec compliant Symbols which are polyfilled.
1172 - if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1173 - return true;
1174 - }
1175 -
1176 - return false;
1177 - }
1178 -
1179 - // Equivalent of `typeof` but with special handling for array and regexp.
1180 - function getPropType(propValue) {
1181 - var propType = typeof propValue;
1182 - if (Array.isArray(propValue)) {
1183 - return 'array';
1184 - }
1185 - if (propValue instanceof RegExp) {
1186 - // Old webkits (at least until Android 4.0) return 'function' rather than
1187 - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1188 - // passes PropTypes.object.
1189 - return 'object';
1190 - }
1191 - if (isSymbol(propType, propValue)) {
1192 - return 'symbol';
1193 - }
1194 - return propType;
1195 - }
1196 -
1197 - // This handles more types than `getPropType`. Only used for error messages.
1198 - // See `createPrimitiveTypeChecker`.
1199 - function getPreciseType(propValue) {
1200 - if (typeof propValue === 'undefined' || propValue === null) {
1201 - return '' + propValue;
1202 - }
1203 - var propType = getPropType(propValue);
1204 - if (propType === 'object') {
1205 - if (propValue instanceof Date) {
1206 - return 'date';
1207 - } else if (propValue instanceof RegExp) {
1208 - return 'regexp';
1209 - }
1210 - }
1211 - return propType;
1212 - }
1213 -
1214 - // Returns a string that is postfixed to a warning about an invalid type.
1215 - // For example, "undefined" or "of type array"
1216 - function getPostfixForTypeWarning(value) {
1217 - var type = getPreciseType(value);
1218 - switch (type) {
1219 - case 'array':
1220 - case 'object':
1221 - return 'an ' + type;
1222 - case 'boolean':
1223 - case 'date':
1224 - case 'regexp':
1225 - return 'a ' + type;
1226 - default:
1227 - return type;
1228 - }
1229 - }
1230 -
1231 - // Returns class name of the object, if any.
1232 - function getClassName(propValue) {
1233 - if (!propValue.constructor || !propValue.constructor.name) {
1234 - return ANONYMOUS;
1235 - }
1236 - return propValue.constructor.name;
1237 - }
1238 -
1239 - ReactPropTypes.checkPropTypes = checkPropTypes;
1240 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1241 - ReactPropTypes.PropTypes = ReactPropTypes;
1242 -
1243 - return ReactPropTypes;
1244 -};
1245 -
1246 -
1247 -/***/ }),
1248 -
1249 -/***/ "../node_modules/prop-types/index.js":
1250 -/*!*******************************************!*\
1251 - !*** ../node_modules/prop-types/index.js ***!
1252 - \*******************************************/
1253 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1254 -
1255 -/**
1256 - * Copyright (c) 2013-present, Facebook, Inc.
1257 - *
1258 - * This source code is licensed under the MIT license found in the
1259 - * LICENSE file in the root directory of this source tree.
1260 - */
1261 -
1262 -if (true) {
1263 - var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1264 -
1265 - // By explicitly using `prop-types` you are opting into new development behavior.
1266 - // http://fb.me/prop-types-in-prod
1267 - var throwOnDirectAccess = true;
1268 - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1269 -} else // removed by dead control flow
1270 -{}
1271 -
1272 -
1273 -/***/ }),
1274 -
1275 -/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1276 -/*!**************************************************************!*\
1277 - !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1278 - \**************************************************************/
1279 -/***/ ((module) => {
1280 -
1281 -"use strict";
1282 -/**
1283 - * Copyright (c) 2013-present, Facebook, Inc.
1284 - *
1285 - * This source code is licensed under the MIT license found in the
1286 - * LICENSE file in the root directory of this source tree.
1287 - */
1288 -
1289 -
1290 -
1291 -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1292 -
1293 -module.exports = ReactPropTypesSecret;
1294 -
1295 -
1296 -/***/ }),
1297 -
1298 -/***/ "../node_modules/prop-types/lib/has.js":
1299 -/*!*********************************************!*\
1300 - !*** ../node_modules/prop-types/lib/has.js ***!
1301 - \*********************************************/
1302 -/***/ ((module) => {
1303 -
1304 -module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1305 -
1306 -
1307 -/***/ }),
1308 -
1309 -/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1310 -/*!************************************************************************************!*\
1311 - !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1312 - \************************************************************************************/
1313 -/***/ ((__unused_webpack_module, exports) => {
1314 -
1315 -"use strict";
1316 -/** @license React v16.13.1
1317 - * react-is.development.js
1318 - *
1319 - * Copyright (c) Facebook, Inc. and its affiliates.
1320 - *
1321 - * This source code is licensed under the MIT license found in the
1322 - * LICENSE file in the root directory of this source tree.
1323 - */
1324 -
1325 -
1326 -
1327 -
1328 -
1329 -if (true) {
1330 - (function() {
1331 -'use strict';
1332 -
1333 -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1334 -// nor polyfill, then a plain number is used for performance.
1335 -var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1336 -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1337 -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1338 -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1339 -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1340 -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1341 -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1342 -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1343 -// (unstable) APIs that have been removed. Can we remove the symbols?
1344 -
1345 -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1346 -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1347 -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1348 -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1349 -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1350 -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1351 -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1352 -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1353 -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1354 -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1355 -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1356 -
1357 -function isValidElementType(type) {
1358 - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1359 - 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);
1360 -}
1361 -
1362 -function typeOf(object) {
1363 - if (typeof object === 'object' && object !== null) {
1364 - var $$typeof = object.$$typeof;
1365 -
1366 - switch ($$typeof) {
1367 - case REACT_ELEMENT_TYPE:
1368 - var type = object.type;
1369 -
1370 - switch (type) {
1371 - case REACT_ASYNC_MODE_TYPE:
1372 - case REACT_CONCURRENT_MODE_TYPE:
1373 - case REACT_FRAGMENT_TYPE:
1374 - case REACT_PROFILER_TYPE:
1375 - case REACT_STRICT_MODE_TYPE:
1376 - case REACT_SUSPENSE_TYPE:
1377 - return type;
1378 -
1379 - default:
1380 - var $$typeofType = type && type.$$typeof;
1381 -
1382 - switch ($$typeofType) {
1383 - case REACT_CONTEXT_TYPE:
1384 - case REACT_FORWARD_REF_TYPE:
1385 - case REACT_LAZY_TYPE:
1386 - case REACT_MEMO_TYPE:
1387 - case REACT_PROVIDER_TYPE:
1388 - return $$typeofType;
1389 -
1390 - default:
1391 - return $$typeof;
1392 - }
1393 -
1394 - }
1395 -
1396 - case REACT_PORTAL_TYPE:
1397 - return $$typeof;
1398 - }
1399 - }
1400 -
1401 - return undefined;
1402 -} // AsyncMode is deprecated along with isAsyncMode
1403 -
1404 -var AsyncMode = REACT_ASYNC_MODE_TYPE;
1405 -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1406 -var ContextConsumer = REACT_CONTEXT_TYPE;
1407 -var ContextProvider = REACT_PROVIDER_TYPE;
1408 -var Element = REACT_ELEMENT_TYPE;
1409 -var ForwardRef = REACT_FORWARD_REF_TYPE;
1410 -var Fragment = REACT_FRAGMENT_TYPE;
1411 -var Lazy = REACT_LAZY_TYPE;
1412 -var Memo = REACT_MEMO_TYPE;
1413 -var Portal = REACT_PORTAL_TYPE;
1414 -var Profiler = REACT_PROFILER_TYPE;
1415 -var StrictMode = REACT_STRICT_MODE_TYPE;
1416 -var Suspense = REACT_SUSPENSE_TYPE;
1417 -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1418 -
1419 -function isAsyncMode(object) {
1420 - {
1421 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1422 - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1423 -
1424 - 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.');
1425 - }
1426 - }
1427 -
1428 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1429 -}
1430 -function isConcurrentMode(object) {
1431 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1432 -}
1433 -function isContextConsumer(object) {
1434 - return typeOf(object) === REACT_CONTEXT_TYPE;
1435 -}
1436 -function isContextProvider(object) {
1437 - return typeOf(object) === REACT_PROVIDER_TYPE;
1438 -}
1439 -function isElement(object) {
1440 - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1441 -}
1442 -function isForwardRef(object) {
1443 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
1444 -}
1445 -function isFragment(object) {
1446 - return typeOf(object) === REACT_FRAGMENT_TYPE;
1447 -}
1448 -function isLazy(object) {
1449 - return typeOf(object) === REACT_LAZY_TYPE;
1450 -}
1451 -function isMemo(object) {
1452 - return typeOf(object) === REACT_MEMO_TYPE;
1453 -}
1454 -function isPortal(object) {
1455 - return typeOf(object) === REACT_PORTAL_TYPE;
1456 -}
1457 -function isProfiler(object) {
1458 - return typeOf(object) === REACT_PROFILER_TYPE;
1459 -}
1460 -function isStrictMode(object) {
1461 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
1462 -}
1463 -function isSuspense(object) {
1464 - return typeOf(object) === REACT_SUSPENSE_TYPE;
1465 -}
1466 -
1467 -exports.AsyncMode = AsyncMode;
1468 -exports.ConcurrentMode = ConcurrentMode;
1469 -exports.ContextConsumer = ContextConsumer;
1470 -exports.ContextProvider = ContextProvider;
1471 -exports.Element = Element;
1472 -exports.ForwardRef = ForwardRef;
1473 -exports.Fragment = Fragment;
1474 -exports.Lazy = Lazy;
1475 -exports.Memo = Memo;
1476 -exports.Portal = Portal;
1477 -exports.Profiler = Profiler;
1478 -exports.StrictMode = StrictMode;
1479 -exports.Suspense = Suspense;
1480 -exports.isAsyncMode = isAsyncMode;
1481 -exports.isConcurrentMode = isConcurrentMode;
1482 -exports.isContextConsumer = isContextConsumer;
1483 -exports.isContextProvider = isContextProvider;
1484 -exports.isElement = isElement;
1485 -exports.isForwardRef = isForwardRef;
1486 -exports.isFragment = isFragment;
1487 -exports.isLazy = isLazy;
1488 -exports.isMemo = isMemo;
1489 -exports.isPortal = isPortal;
1490 -exports.isProfiler = isProfiler;
1491 -exports.isStrictMode = isStrictMode;
1492 -exports.isSuspense = isSuspense;
1493 -exports.isValidElementType = isValidElementType;
1494 -exports.typeOf = typeOf;
1495 - })();
1496 -}
1497 -
1498 -
1499 -/***/ }),
1500 -
1501 -/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1502 -/*!*****************************************************************!*\
1503 - !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1504 - \*****************************************************************/
1505 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1506 -
1507 -"use strict";
1508 -
1509 -
1510 -if (false) // removed by dead control flow
1511 -{} else {
1512 - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1513 -}
1514 -
1515 -
1516 -/***/ }),
1517 -
1518 -/***/ "../node_modules/react-dom/client.js":
1519 -/*!*******************************************!*\
1520 - !*** ../node_modules/react-dom/client.js ***!
1521 - \*******************************************/
1522 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1523 -
1524 -"use strict";
1525 -
1526 -
1527 -var m = __webpack_require__(/*! react-dom */ "react-dom");
1528 -if (false) // removed by dead control flow
1529 -{} else {
1530 - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1531 - exports.createRoot = function(c, o) {
1532 - i.usingClientEntryPoint = true;
1533 - try {
1534 - return m.createRoot(c, o);
1535 - } finally {
1536 - i.usingClientEntryPoint = false;
1537 - }
1538 - };
1539 - exports.hydrateRoot = function(c, h, o) {
1540 - i.usingClientEntryPoint = true;
1541 - try {
1542 - return m.hydrateRoot(c, h, o);
1543 - } finally {
1544 - i.usingClientEntryPoint = false;
1545 - }
1546 - };
1547 -}
1548 -
1549 -
1550 -/***/ }),
1551 -
1552 -/***/ "@elementor/ui":
1553 -/*!*********************************!*\
1554 - !*** external "elementorV2.ui" ***!
1555 - \*********************************/
1556 -/***/ ((module) => {
1557 -
1558 -"use strict";
1559 -module.exports = elementorV2.ui;
1560 -
1561 -/***/ }),
1562 -
1563 -/***/ "@wordpress/i18n":
1564 -/*!**************************!*\
1565 - !*** external "wp.i18n" ***!
1566 - \**************************/
1567 -/***/ ((module) => {
1568 -
1569 -"use strict";
1570 -module.exports = wp.i18n;
1571 -
1572 -/***/ }),
1573 -
1574 -/***/ "react":
1575 -/*!************************!*\
1576 - !*** external "React" ***!
1577 - \************************/
1578 -/***/ ((module) => {
1579 -
1580 -"use strict";
1581 -module.exports = React;
1582 -
1583 -/***/ }),
1584 -
1585 -/***/ "react-dom":
1586 -/*!***************************!*\
1587 - !*** external "ReactDOM" ***!
1588 - \***************************/
1589 -/***/ ((module) => {
1590 -
1591 -"use strict";
1592 -module.exports = ReactDOM;
1593 -
1594 -/***/ })
1595 -
1596 -/******/ });
1597 -/************************************************************************/
1598 -/******/ // The module cache
1599 -/******/ var __webpack_module_cache__ = {};
1600 -/******/
1601 -/******/ // The require function
1602 -/******/ function __webpack_require__(moduleId) {
1603 -/******/ // Check if module is in cache
1604 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
1605 -/******/ if (cachedModule !== undefined) {
1606 -/******/ return cachedModule.exports;
1607 -/******/ }
1608 -/******/ // Create a new module (and put it into the cache)
1609 -/******/ var module = __webpack_module_cache__[moduleId] = {
1610 -/******/ // no module.id needed
1611 -/******/ // no module.loaded needed
1612 -/******/ exports: {}
1613 -/******/ };
1614 -/******/
1615 -/******/ // Execute the module function
1616 -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1617 -/******/
1618 -/******/ // Return the exports of the module
1619 -/******/ return module.exports;
1620 -/******/ }
1621 -/******/
1622 -/************************************************************************/
1623 -var __webpack_exports__ = {};
1624 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
1625 -(() => {
1626 -"use strict";
1627 -/*!*******************************************************************!*\
1628 - !*** ../modules/atomic-opt-in/assets/js/panel-chip/panel-chip.js ***!
1629 - \*******************************************************************/
1630 -
1631 -
1632 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1633 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1634 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1635 -var _appManager = __webpack_require__(/*! ./app-manager */ "../modules/atomic-opt-in/assets/js/panel-chip/app-manager.js");
1636 -var AlphaChipApp = /*#__PURE__*/function () {
1637 - function AlphaChipApp() {
1638 - (0, _classCallCheck2.default)(this, AlphaChipApp);
1639 - this.appManager = new _appManager.AppManager();
1640 - this.initializeListener();
1641 - }
1642 - return (0, _createClass2.default)(AlphaChipApp, [{
1643 - key: "initializeListener",
1644 - value: function initializeListener() {
1645 - var _this = this;
1646 - document.addEventListener('alphachip:open', function (event) {
1647 - var targetElement = event.detail.target;
1648 - var chipElement = targetElement === null || targetElement === void 0 ? void 0 : targetElement.find('.elementor-panel-heading-category-chip')[0];
1649 - if (!chipElement) {
1650 - return;
1651 - }
1652 - _this.appManager.mount(chipElement, {
1653 - wrapperElement: '.elementor-panel-category-title',
1654 - reactAnchor: '.e-promotion-react-wrapper'
1655 - });
1656 - });
1657 - }
1658 - }]);
1659 -}();
1660 -new AlphaChipApp();
1661 -})();
1662 -
1663 -/******/ })()
1664 -;
1031 +//#endregion
1032 +})(React, elementorV2.ui, wp.i18n);
1665 1033 //# sourceMappingURL=editor-v4-opt-in-alphachip.js.map