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