PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.3
Elementor Website Builder – more than just a page builder v3.28.3
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / assets / js / announcements-app.js

announcements-app.js in Elementor Website Builder – more than just a page builder 3.28.3, at assets/js/announcements-app.js

2,513 lines 98.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.28.0 - 01-04-2025 */
2 /******/ (() => { // webpackBootstrap
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "../app/assets/js/event-track/apps-event-tracking.js":
6 /*!***********************************************************!*\
7 !*** ../app/assets/js/event-track/apps-event-tracking.js ***!
8 \***********************************************************/
9 /***/ ((__unused_webpack_module, exports) => {
10
11 "use strict";
12
13
14 Object.defineProperty(exports, "__esModule", ({
15 value: true
16 }));
17 exports.appsEventTrackingDispatch = void 0;
18 function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
19 function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
20 function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21 var appsEventTrackingDispatch = exports.appsEventTrackingDispatch = function appsEventTrackingDispatch(command, eventParams) {
22 // Add existing eventParams key value pair to the data/details object.
23 var objectCreator = function objectCreator(array, obj) {
24 var _iterator = _createForOfIteratorHelper(array),
25 _step;
26 try {
27 for (_iterator.s(); !(_step = _iterator.n()).done;) {
28 var key = _step.value;
29 if (eventParams.hasOwnProperty(key) && eventParams[key] !== null) {
30 obj[key] = eventParams[key];
31 }
32 }
33 } catch (err) {
34 _iterator.e(err);
35 } finally {
36 _iterator.f();
37 }
38 return obj;
39 };
40 var dataKeys = [];
41 var detailsKeys = ['layout', 'site_part', 'error', 'document_name', 'document_type', 'view_type_clicked', 'tag', 'sort_direction', 'sort_type', 'action', 'grid_location', 'kit_name', 'page_source', 'element_position', 'element', 'event_type', 'modal_type', 'method', 'status', 'step', 'item', 'category', 'element_location', 'search_term', 'section', 'site_area'];
42 var data = {};
43 var details = {};
44 var init = function init() {
45 objectCreator(detailsKeys, details);
46 objectCreator(dataKeys, data);
47 var commandSplit = command.split('/');
48 data.placement = commandSplit[0];
49 data.event = commandSplit[1];
50
51 // If 'details' is not empty, add the details object to the data object.
52 if (Object.keys(details).length) {
53 data.details = details;
54 }
55 };
56 init();
57 $e.run(command, data);
58 };
59
60 /***/ }),
61
62 /***/ "../assets/dev/js/utils/react.js":
63 /*!***************************************!*\
64 !*** ../assets/dev/js/utils/react.js ***!
65 \***************************************/
66 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
67
68 "use strict";
69
70
71 var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
72 Object.defineProperty(exports, "__esModule", ({
73 value: true
74 }));
75 exports["default"] = void 0;
76 var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
77 var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
78 var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
79 function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
80 function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
81 /**
82 * Support conditional rendering of a React App to the DOM, based on the React version.
83 * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
84 *
85 * @param { React.ReactElement } app The app to render.
86 * @param { HTMLElement } domElement The DOM element to render the app into.
87 *
88 * @return {{ unmount: () => void }} The unmount function.
89 */
90 function render(app, domElement) {
91 var unmountFunction;
92 try {
93 var root = (0, _client.createRoot)(domElement);
94 root.render(app);
95 unmountFunction = function unmountFunction() {
96 root.unmount();
97 };
98 } catch (e) {
99 // eslint-disable-next-line react/no-deprecated
100 ReactDOM.render(app, domElement);
101 unmountFunction = function unmountFunction() {
102 // eslint-disable-next-line react/no-deprecated
103 ReactDOM.unmountComponentAtNode(domElement);
104 };
105 }
106 return {
107 unmount: unmountFunction
108 };
109 }
110 var _default = exports["default"] = {
111 render: render
112 };
113
114 /***/ }),
115
116 /***/ "../modules/announcements/assets/js/components/Announcement.js":
117 /*!*********************************************************************!*\
118 !*** ../modules/announcements/assets/js/components/Announcement.js ***!
119 \*********************************************************************/
120 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
121
122 "use strict";
123
124
125 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
126 Object.defineProperty(exports, "__esModule", ({
127 value: true
128 }));
129 exports["default"] = Announcement;
130 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
131 var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
132 var _ = __webpack_require__(/*! ./ */ "../modules/announcements/assets/js/components/index.js");
133 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
134 var _excluded = ["cta"];
135 function Announcement(props) {
136 var announcement = props.announcement,
137 onClose = props.onClose;
138 var cta = announcement.cta,
139 announcementContent = (0, _objectWithoutProperties2.default)(announcement, _excluded);
140 return /*#__PURE__*/_react.default.createElement("div", {
141 className: "announcement-item"
142 }, /*#__PURE__*/_react.default.createElement(_.AnnouncementBody, {
143 announcement: announcementContent
144 }), /*#__PURE__*/_react.default.createElement(_.AnnouncementFooter, {
145 buttons: cta,
146 onClose: onClose
147 }));
148 }
149 Announcement.propTypes = {
150 announcement: _propTypes.default.object.isRequired,
151 onClose: _propTypes.default.func.isRequired
152 };
153
154 /***/ }),
155
156 /***/ "../modules/announcements/assets/js/components/AnnouncementBody.js":
157 /*!*************************************************************************!*\
158 !*** ../modules/announcements/assets/js/components/AnnouncementBody.js ***!
159 \*************************************************************************/
160 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
161
162 "use strict";
163
164
165 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
166 Object.defineProperty(exports, "__esModule", ({
167 value: true
168 }));
169 exports["default"] = AnnouncementBody;
170 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
171 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
172 function AnnouncementBody(props) {
173 var _props$announcement = props.announcement,
174 title = _props$announcement.title,
175 description = _props$announcement.description,
176 media = _props$announcement.media;
177 return /*#__PURE__*/_react.default.createElement("div", {
178 className: "announcement-body-container"
179 }, 'image' === media.type && /*#__PURE__*/_react.default.createElement("div", {
180 className: "announcement-body-media announcement-body-".concat(media.type)
181 }, /*#__PURE__*/_react.default.createElement("img", {
182 src: media.src,
183 alt: "Announcement"
184 })), /*#__PURE__*/_react.default.createElement("div", {
185 className: "announcement-body-content"
186 }, /*#__PURE__*/_react.default.createElement("div", {
187 className: "announcement-body-title"
188 }, title), /*#__PURE__*/_react.default.createElement("div", {
189 className: "announcement-body-description",
190 dangerouslySetInnerHTML: {
191 __html: description
192 }
193 })));
194 }
195 AnnouncementBody.propTypes = {
196 announcement: _propTypes.default.object.isRequired
197 };
198
199 /***/ }),
200
201 /***/ "../modules/announcements/assets/js/components/AnnouncementFooter.js":
202 /*!***************************************************************************!*\
203 !*** ../modules/announcements/assets/js/components/AnnouncementFooter.js ***!
204 \***************************************************************************/
205 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
206
207 "use strict";
208
209
210 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
211 Object.defineProperty(exports, "__esModule", ({
212 value: true
213 }));
214 exports["default"] = AnnouncementFooter;
215 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
216 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
217 function AnnouncementFooter(props) {
218 var buttons = props.buttons,
219 onClose = props.onClose;
220 return /*#__PURE__*/_react.default.createElement("div", {
221 className: "announcement-footer-container"
222 }, Object.values(buttons).map(function (button, index) {
223 return /*#__PURE__*/_react.default.createElement("a", {
224 key: "button".concat(index),
225 className: "button-item ".concat(button.variant),
226 href: button.url,
227 target: button.target,
228 onClick: function onClick() {
229 return onClose('cta');
230 }
231 }, button.label);
232 }));
233 }
234 AnnouncementFooter.propTypes = {
235 buttons: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
236 onClose: _propTypes.default.func.isRequired
237 };
238
239 /***/ }),
240
241 /***/ "../modules/announcements/assets/js/components/Announcements.js":
242 /*!**********************************************************************!*\
243 !*** ../modules/announcements/assets/js/components/Announcements.js ***!
244 \**********************************************************************/
245 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
246
247 "use strict";
248
249
250 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
251 var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
252 Object.defineProperty(exports, "__esModule", ({
253 value: true
254 }));
255 exports["default"] = Announcements;
256 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
257 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
258 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
259 var _ = __webpack_require__(/*! ./ */ "../modules/announcements/assets/js/components/index.js");
260 var _appsEventTracking = __webpack_require__(/*! elementor-app/event-track/apps-event-tracking */ "../app/assets/js/event-track/apps-event-tracking.js");
261 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
262 function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
263 function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
264 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
265 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
266 function Announcements(props) {
267 var announcements = props.announcements,
268 unMount = props.unMount;
269 var _useState = (0, _react.useState)(0),
270 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
271 currentAnnouncement = _useState2[0],
272 setCurrentAnnouncement = _useState2[1];
273 var announcementTitle = Object.values(announcements)[0].title || '';
274
275 // Send event when the popup is presented
276 (0, _react.useEffect)(function () {
277 var timer = setTimeout(function () {
278 var eventArgs = {
279 event_name: 'element_impression',
280 element_type: 'popup',
281 eventNonInteraction: 1
282 };
283 eventTrackingHandle('impression', eventArgs);
284 }, 200);
285 return function () {
286 return clearTimeout(timer);
287 };
288 }, [announcements]);
289 var onCloseHandle = function onCloseHandle(eventName) {
290 var eventArgs = {
291 event_name: 'element_click',
292 element_type: 'button'
293 };
294 eventTrackingHandle(eventName, eventArgs);
295 announcements.shift();
296 if (0 === announcements.length) {
297 return unMount();
298 }
299 setCurrentAnnouncement(currentAnnouncement + 1);
300 };
301 var eventTrackingHandle = function eventTrackingHandle(eventName, additionalArgs) {
302 var eventBaseArgs = {
303 event: 'fireEvent',
304 eventCategory: 'editor',
305 eventAction: 'whats new popup',
306 eventLabel: eventName,
307 eventLabel2: announcementTitle,
308 event_action: eventName,
309 event_location: 'popup',
310 event_context: 'whats new',
311 event_subcontext: announcementTitle,
312 element_id: 'e-announcements-root'
313 };
314 var eventArgs = _objectSpread(_objectSpread({}, eventBaseArgs), additionalArgs);
315 (0, _appsEventTracking.appsEventTrackingDispatch)("announcement/".concat(eventName), eventArgs);
316 };
317 return /*#__PURE__*/_react.default.createElement("div", {
318 className: "announcements-container"
319 }, /*#__PURE__*/_react.default.createElement(_.AnnouncementsHeader, {
320 onClose: onCloseHandle
321 }), /*#__PURE__*/_react.default.createElement(_.Announcement, {
322 key: "announcement-".concat(currentAnnouncement),
323 announcement: announcements[0],
324 onClose: onCloseHandle
325 }));
326 }
327 Announcements.propTypes = {
328 announcements: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]).isRequired,
329 unMount: _propTypes.default.func.isRequired
330 };
331
332 /***/ }),
333
334 /***/ "../modules/announcements/assets/js/components/AnnouncementsHeader.js":
335 /*!****************************************************************************!*\
336 !*** ../modules/announcements/assets/js/components/AnnouncementsHeader.js ***!
337 \****************************************************************************/
338 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
339
340 "use strict";
341 /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
342
343
344 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
345 Object.defineProperty(exports, "__esModule", ({
346 value: true
347 }));
348 exports["default"] = AnnouncementsHeader;
349 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
350 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
351 function AnnouncementsHeader(props) {
352 var onClose = props.onClose;
353 return /*#__PURE__*/_react.default.createElement("div", {
354 className: "announcements-heading-container"
355 }, /*#__PURE__*/_react.default.createElement("i", {
356 className: "eicon-elementor",
357 "aria-hidden": "true"
358 }), /*#__PURE__*/_react.default.createElement("span", {
359 className: "heading-title"
360 }, __('Notifications', 'elementor')), /*#__PURE__*/_react.default.createElement("button", {
361 className: "close-button",
362 onClick: function onClick() {
363 return onClose('close');
364 }
365 }, /*#__PURE__*/_react.default.createElement("i", {
366 className: "eicon-close",
367 "aria-hidden": "true"
368 })));
369 }
370 AnnouncementsHeader.propTypes = {
371 onClose: _propTypes.default.func.isRequired
372 };
373
374 /***/ }),
375
376 /***/ "../modules/announcements/assets/js/components/Overlay.js":
377 /*!****************************************************************!*\
378 !*** ../modules/announcements/assets/js/components/Overlay.js ***!
379 \****************************************************************/
380 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
381
382 "use strict";
383
384
385 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
386 Object.defineProperty(exports, "__esModule", ({
387 value: true
388 }));
389 exports["default"] = Overlay;
390 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
391 function Overlay() {
392 return /*#__PURE__*/_react.default.createElement("div", {
393 className: "announcements-screen-overlay"
394 });
395 }
396
397 /***/ }),
398
399 /***/ "../modules/announcements/assets/js/components/index.js":
400 /*!**************************************************************!*\
401 !*** ../modules/announcements/assets/js/components/index.js ***!
402 \**************************************************************/
403 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
404
405 "use strict";
406
407
408 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
409 Object.defineProperty(exports, "__esModule", ({
410 value: true
411 }));
412 Object.defineProperty(exports, "Announcement", ({
413 enumerable: true,
414 get: function get() {
415 return _Announcement.default;
416 }
417 }));
418 Object.defineProperty(exports, "AnnouncementBody", ({
419 enumerable: true,
420 get: function get() {
421 return _AnnouncementBody.default;
422 }
423 }));
424 Object.defineProperty(exports, "AnnouncementFooter", ({
425 enumerable: true,
426 get: function get() {
427 return _AnnouncementFooter.default;
428 }
429 }));
430 Object.defineProperty(exports, "Announcements", ({
431 enumerable: true,
432 get: function get() {
433 return _Announcements.default;
434 }
435 }));
436 Object.defineProperty(exports, "AnnouncementsHeader", ({
437 enumerable: true,
438 get: function get() {
439 return _AnnouncementsHeader.default;
440 }
441 }));
442 Object.defineProperty(exports, "Overlay", ({
443 enumerable: true,
444 get: function get() {
445 return _Overlay.default;
446 }
447 }));
448 var _Announcements = _interopRequireDefault(__webpack_require__(/*! ./Announcements */ "../modules/announcements/assets/js/components/Announcements.js"));
449 var _Announcement = _interopRequireDefault(__webpack_require__(/*! ./Announcement */ "../modules/announcements/assets/js/components/Announcement.js"));
450 var _AnnouncementsHeader = _interopRequireDefault(__webpack_require__(/*! ./AnnouncementsHeader */ "../modules/announcements/assets/js/components/AnnouncementsHeader.js"));
451 var _AnnouncementBody = _interopRequireDefault(__webpack_require__(/*! ./AnnouncementBody */ "../modules/announcements/assets/js/components/AnnouncementBody.js"));
452 var _AnnouncementFooter = _interopRequireDefault(__webpack_require__(/*! ./AnnouncementFooter */ "../modules/announcements/assets/js/components/AnnouncementFooter.js"));
453 var _Overlay = _interopRequireDefault(__webpack_require__(/*! ./Overlay */ "../modules/announcements/assets/js/components/Overlay.js"));
454
455 /***/ }),
456
457 /***/ "../modules/announcements/assets/js/e-component.js":
458 /*!*********************************************************!*\
459 !*** ../modules/announcements/assets/js/e-component.js ***!
460 \*********************************************************/
461 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
462
463 "use strict";
464
465
466 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
467 Object.defineProperty(exports, "__esModule", ({
468 value: true
469 }));
470 exports["default"] = void 0;
471 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
472 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
473 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
474 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
475 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
476 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
477 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
478 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
479 function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
480 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
481 var EComponent = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) {
482 function EComponent() {
483 (0, _classCallCheck2.default)(this, EComponent);
484 return _callSuper(this, EComponent, arguments);
485 }
486 (0, _inherits2.default)(EComponent, _$e$modules$Component);
487 return (0, _createClass2.default)(EComponent, [{
488 key: "getNamespace",
489 value:
490 /**
491 * @return {string} The namespace of the component
492 */
493 function getNamespace() {
494 return 'announcement';
495 }
496 }, {
497 key: "defaultCommands",
498 value: function defaultCommands() {
499 return ['close', 'cta', 'impression'].reduce(function (allCommands, command) {
500 return _objectSpread(_objectSpread({}, allCommands), {}, (0, _defineProperty2.default)({}, command, function () {}));
501 }, {});
502 }
503 }]);
504 }($e.modules.ComponentBase);
505
506 /***/ }),
507
508 /***/ "../node_modules/object-assign/index.js":
509 /*!**********************************************!*\
510 !*** ../node_modules/object-assign/index.js ***!
511 \**********************************************/
512 /***/ ((module) => {
513
514 "use strict";
515 /*
516 object-assign
517 (c) Sindre Sorhus
518 @license MIT
519 */
520
521
522 /* eslint-disable no-unused-vars */
523 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
524 var hasOwnProperty = Object.prototype.hasOwnProperty;
525 var propIsEnumerable = Object.prototype.propertyIsEnumerable;
526
527 function toObject(val) {
528 if (val === null || val === undefined) {
529 throw new TypeError('Object.assign cannot be called with null or undefined');
530 }
531
532 return Object(val);
533 }
534
535 function shouldUseNative() {
536 try {
537 if (!Object.assign) {
538 return false;
539 }
540
541 // Detect buggy property enumeration order in older V8 versions.
542
543 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
544 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
545 test1[5] = 'de';
546 if (Object.getOwnPropertyNames(test1)[0] === '5') {
547 return false;
548 }
549
550 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
551 var test2 = {};
552 for (var i = 0; i < 10; i++) {
553 test2['_' + String.fromCharCode(i)] = i;
554 }
555 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
556 return test2[n];
557 });
558 if (order2.join('') !== '0123456789') {
559 return false;
560 }
561
562 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
563 var test3 = {};
564 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
565 test3[letter] = letter;
566 });
567 if (Object.keys(Object.assign({}, test3)).join('') !==
568 'abcdefghijklmnopqrst') {
569 return false;
570 }
571
572 return true;
573 } catch (err) {
574 // We don't expect any of the above to throw, but better to be safe.
575 return false;
576 }
577 }
578
579 module.exports = shouldUseNative() ? Object.assign : function (target, source) {
580 var from;
581 var to = toObject(target);
582 var symbols;
583
584 for (var s = 1; s < arguments.length; s++) {
585 from = Object(arguments[s]);
586
587 for (var key in from) {
588 if (hasOwnProperty.call(from, key)) {
589 to[key] = from[key];
590 }
591 }
592
593 if (getOwnPropertySymbols) {
594 symbols = getOwnPropertySymbols(from);
595 for (var i = 0; i < symbols.length; i++) {
596 if (propIsEnumerable.call(from, symbols[i])) {
597 to[symbols[i]] = from[symbols[i]];
598 }
599 }
600 }
601 }
602
603 return to;
604 };
605
606
607 /***/ }),
608
609 /***/ "../node_modules/prop-types/checkPropTypes.js":
610 /*!****************************************************!*\
611 !*** ../node_modules/prop-types/checkPropTypes.js ***!
612 \****************************************************/
613 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
614
615 "use strict";
616 /**
617 * Copyright (c) 2013-present, Facebook, Inc.
618 *
619 * This source code is licensed under the MIT license found in the
620 * LICENSE file in the root directory of this source tree.
621 */
622
623
624
625 var printWarning = function() {};
626
627 if (true) {
628 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
629 var loggedTypeFailures = {};
630 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
631
632 printWarning = function(text) {
633 var message = 'Warning: ' + text;
634 if (typeof console !== 'undefined') {
635 console.error(message);
636 }
637 try {
638 // --- Welcome to debugging React ---
639 // This error was thrown as a convenience so that you can use this stack
640 // to find the callsite that caused this warning to fire.
641 throw new Error(message);
642 } catch (x) { /**/ }
643 };
644 }
645
646 /**
647 * Assert that the values match with the type specs.
648 * Error messages are memorized and will only be shown once.
649 *
650 * @param {object} typeSpecs Map of name to a ReactPropType
651 * @param {object} values Runtime values that need to be type-checked
652 * @param {string} location e.g. "prop", "context", "child context"
653 * @param {string} componentName Name of the component for error messages.
654 * @param {?Function} getStack Returns the component stack.
655 * @private
656 */
657 function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
658 if (true) {
659 for (var typeSpecName in typeSpecs) {
660 if (has(typeSpecs, typeSpecName)) {
661 var error;
662 // Prop type validation may throw. In case they do, we don't want to
663 // fail the render phase where it didn't fail before. So we log it.
664 // After these have been cleaned up, we'll let them throw.
665 try {
666 // This is intentionally an invariant that gets caught. It's the same
667 // behavior as without this statement except with a better message.
668 if (typeof typeSpecs[typeSpecName] !== 'function') {
669 var err = Error(
670 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
671 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
672 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
673 );
674 err.name = 'Invariant Violation';
675 throw err;
676 }
677 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
678 } catch (ex) {
679 error = ex;
680 }
681 if (error && !(error instanceof Error)) {
682 printWarning(
683 (componentName || 'React class') + ': type specification of ' +
684 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
685 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
686 'You may have forgotten to pass an argument to the type checker ' +
687 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
688 'shape all require an argument).'
689 );
690 }
691 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
692 // Only monitor this failure once because there tends to be a lot of the
693 // same error.
694 loggedTypeFailures[error.message] = true;
695
696 var stack = getStack ? getStack() : '';
697
698 printWarning(
699 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
700 );
701 }
702 }
703 }
704 }
705 }
706
707 /**
708 * Resets warning cache when testing.
709 *
710 * @private
711 */
712 checkPropTypes.resetWarningCache = function() {
713 if (true) {
714 loggedTypeFailures = {};
715 }
716 }
717
718 module.exports = checkPropTypes;
719
720
721 /***/ }),
722
723 /***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
724 /*!*************************************************************!*\
725 !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
726 \*************************************************************/
727 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
728
729 "use strict";
730 /**
731 * Copyright (c) 2013-present, Facebook, Inc.
732 *
733 * This source code is licensed under the MIT license found in the
734 * LICENSE file in the root directory of this source tree.
735 */
736
737
738
739 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
740 var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
741
742 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
743 var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
744 var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
745
746 var printWarning = function() {};
747
748 if (true) {
749 printWarning = function(text) {
750 var message = 'Warning: ' + text;
751 if (typeof console !== 'undefined') {
752 console.error(message);
753 }
754 try {
755 // --- Welcome to debugging React ---
756 // This error was thrown as a convenience so that you can use this stack
757 // to find the callsite that caused this warning to fire.
758 throw new Error(message);
759 } catch (x) {}
760 };
761 }
762
763 function emptyFunctionThatReturnsNull() {
764 return null;
765 }
766
767 module.exports = function(isValidElement, throwOnDirectAccess) {
768 /* global Symbol */
769 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
770 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
771
772 /**
773 * Returns the iterator method function contained on the iterable object.
774 *
775 * Be sure to invoke the function with the iterable as context:
776 *
777 * var iteratorFn = getIteratorFn(myIterable);
778 * if (iteratorFn) {
779 * var iterator = iteratorFn.call(myIterable);
780 * ...
781 * }
782 *
783 * @param {?object} maybeIterable
784 * @return {?function}
785 */
786 function getIteratorFn(maybeIterable) {
787 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
788 if (typeof iteratorFn === 'function') {
789 return iteratorFn;
790 }
791 }
792
793 /**
794 * Collection of methods that allow declaration and validation of props that are
795 * supplied to React components. Example usage:
796 *
797 * var Props = require('ReactPropTypes');
798 * var MyArticle = React.createClass({
799 * propTypes: {
800 * // An optional string prop named "description".
801 * description: Props.string,
802 *
803 * // A required enum prop named "category".
804 * category: Props.oneOf(['News','Photos']).isRequired,
805 *
806 * // A prop named "dialog" that requires an instance of Dialog.
807 * dialog: Props.instanceOf(Dialog).isRequired
808 * },
809 * render: function() { ... }
810 * });
811 *
812 * A more formal specification of how these methods are used:
813 *
814 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
815 * decl := ReactPropTypes.{type}(.isRequired)?
816 *
817 * Each and every declaration produces a function with the same signature. This
818 * allows the creation of custom validation functions. For example:
819 *
820 * var MyLink = React.createClass({
821 * propTypes: {
822 * // An optional string or URI prop named "href".
823 * href: function(props, propName, componentName) {
824 * var propValue = props[propName];
825 * if (propValue != null && typeof propValue !== 'string' &&
826 * !(propValue instanceof URI)) {
827 * return new Error(
828 * 'Expected a string or an URI for ' + propName + ' in ' +
829 * componentName
830 * );
831 * }
832 * }
833 * },
834 * render: function() {...}
835 * });
836 *
837 * @internal
838 */
839
840 var ANONYMOUS = '<<anonymous>>';
841
842 // Important!
843 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
844 var ReactPropTypes = {
845 array: createPrimitiveTypeChecker('array'),
846 bigint: createPrimitiveTypeChecker('bigint'),
847 bool: createPrimitiveTypeChecker('boolean'),
848 func: createPrimitiveTypeChecker('function'),
849 number: createPrimitiveTypeChecker('number'),
850 object: createPrimitiveTypeChecker('object'),
851 string: createPrimitiveTypeChecker('string'),
852 symbol: createPrimitiveTypeChecker('symbol'),
853
854 any: createAnyTypeChecker(),
855 arrayOf: createArrayOfTypeChecker,
856 element: createElementTypeChecker(),
857 elementType: createElementTypeTypeChecker(),
858 instanceOf: createInstanceTypeChecker,
859 node: createNodeChecker(),
860 objectOf: createObjectOfTypeChecker,
861 oneOf: createEnumTypeChecker,
862 oneOfType: createUnionTypeChecker,
863 shape: createShapeTypeChecker,
864 exact: createStrictShapeTypeChecker,
865 };
866
867 /**
868 * inlined Object.is polyfill to avoid requiring consumers ship their own
869 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
870 */
871 /*eslint-disable no-self-compare*/
872 function is(x, y) {
873 // SameValue algorithm
874 if (x === y) {
875 // Steps 1-5, 7-10
876 // Steps 6.b-6.e: +0 != -0
877 return x !== 0 || 1 / x === 1 / y;
878 } else {
879 // Step 6.a: NaN == NaN
880 return x !== x && y !== y;
881 }
882 }
883 /*eslint-enable no-self-compare*/
884
885 /**
886 * We use an Error-like object for backward compatibility as people may call
887 * PropTypes directly and inspect their output. However, we don't use real
888 * Errors anymore. We don't inspect their stack anyway, and creating them
889 * is prohibitively expensive if they are created too often, such as what
890 * happens in oneOfType() for any type before the one that matched.
891 */
892 function PropTypeError(message, data) {
893 this.message = message;
894 this.data = data && typeof data === 'object' ? data: {};
895 this.stack = '';
896 }
897 // Make `instanceof Error` still work for returned errors.
898 PropTypeError.prototype = Error.prototype;
899
900 function createChainableTypeChecker(validate) {
901 if (true) {
902 var manualPropTypeCallCache = {};
903 var manualPropTypeWarningCount = 0;
904 }
905 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
906 componentName = componentName || ANONYMOUS;
907 propFullName = propFullName || propName;
908
909 if (secret !== ReactPropTypesSecret) {
910 if (throwOnDirectAccess) {
911 // New behavior only for users of `prop-types` package
912 var err = new Error(
913 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
914 'Use `PropTypes.checkPropTypes()` to call them. ' +
915 'Read more at http://fb.me/use-check-prop-types'
916 );
917 err.name = 'Invariant Violation';
918 throw err;
919 } else if ( true && typeof console !== 'undefined') {
920 // Old behavior for people using React.PropTypes
921 var cacheKey = componentName + ':' + propName;
922 if (
923 !manualPropTypeCallCache[cacheKey] &&
924 // Avoid spamming the console because they are often not actionable except for lib authors
925 manualPropTypeWarningCount < 3
926 ) {
927 printWarning(
928 'You are manually calling a React.PropTypes validation ' +
929 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
930 'and will throw in the standalone `prop-types` package. ' +
931 'You may be seeing this warning due to a third-party PropTypes ' +
932 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
933 );
934 manualPropTypeCallCache[cacheKey] = true;
935 manualPropTypeWarningCount++;
936 }
937 }
938 }
939 if (props[propName] == null) {
940 if (isRequired) {
941 if (props[propName] === null) {
942 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
943 }
944 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
945 }
946 return null;
947 } else {
948 return validate(props, propName, componentName, location, propFullName);
949 }
950 }
951
952 var chainedCheckType = checkType.bind(null, false);
953 chainedCheckType.isRequired = checkType.bind(null, true);
954
955 return chainedCheckType;
956 }
957
958 function createPrimitiveTypeChecker(expectedType) {
959 function validate(props, propName, componentName, location, propFullName, secret) {
960 var propValue = props[propName];
961 var propType = getPropType(propValue);
962 if (propType !== expectedType) {
963 // `propValue` being instance of, say, date/regexp, pass the 'object'
964 // check, but we can offer a more precise error message here rather than
965 // 'of type `object`'.
966 var preciseType = getPreciseType(propValue);
967
968 return new PropTypeError(
969 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
970 {expectedType: expectedType}
971 );
972 }
973 return null;
974 }
975 return createChainableTypeChecker(validate);
976 }
977
978 function createAnyTypeChecker() {
979 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
980 }
981
982 function createArrayOfTypeChecker(typeChecker) {
983 function validate(props, propName, componentName, location, propFullName) {
984 if (typeof typeChecker !== 'function') {
985 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
986 }
987 var propValue = props[propName];
988 if (!Array.isArray(propValue)) {
989 var propType = getPropType(propValue);
990 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
991 }
992 for (var i = 0; i < propValue.length; i++) {
993 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
994 if (error instanceof Error) {
995 return error;
996 }
997 }
998 return null;
999 }
1000 return createChainableTypeChecker(validate);
1001 }
1002
1003 function createElementTypeChecker() {
1004 function validate(props, propName, componentName, location, propFullName) {
1005 var propValue = props[propName];
1006 if (!isValidElement(propValue)) {
1007 var propType = getPropType(propValue);
1008 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1009 }
1010 return null;
1011 }
1012 return createChainableTypeChecker(validate);
1013 }
1014
1015 function createElementTypeTypeChecker() {
1016 function validate(props, propName, componentName, location, propFullName) {
1017 var propValue = props[propName];
1018 if (!ReactIs.isValidElementType(propValue)) {
1019 var propType = getPropType(propValue);
1020 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1021 }
1022 return null;
1023 }
1024 return createChainableTypeChecker(validate);
1025 }
1026
1027 function createInstanceTypeChecker(expectedClass) {
1028 function validate(props, propName, componentName, location, propFullName) {
1029 if (!(props[propName] instanceof expectedClass)) {
1030 var expectedClassName = expectedClass.name || ANONYMOUS;
1031 var actualClassName = getClassName(props[propName]);
1032 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1033 }
1034 return null;
1035 }
1036 return createChainableTypeChecker(validate);
1037 }
1038
1039 function createEnumTypeChecker(expectedValues) {
1040 if (!Array.isArray(expectedValues)) {
1041 if (true) {
1042 if (arguments.length > 1) {
1043 printWarning(
1044 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1045 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1046 );
1047 } else {
1048 printWarning('Invalid argument supplied to oneOf, expected an array.');
1049 }
1050 }
1051 return emptyFunctionThatReturnsNull;
1052 }
1053
1054 function validate(props, propName, componentName, location, propFullName) {
1055 var propValue = props[propName];
1056 for (var i = 0; i < expectedValues.length; i++) {
1057 if (is(propValue, expectedValues[i])) {
1058 return null;
1059 }
1060 }
1061
1062 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1063 var type = getPreciseType(value);
1064 if (type === 'symbol') {
1065 return String(value);
1066 }
1067 return value;
1068 });
1069 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1070 }
1071 return createChainableTypeChecker(validate);
1072 }
1073
1074 function createObjectOfTypeChecker(typeChecker) {
1075 function validate(props, propName, componentName, location, propFullName) {
1076 if (typeof typeChecker !== 'function') {
1077 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1078 }
1079 var propValue = props[propName];
1080 var propType = getPropType(propValue);
1081 if (propType !== 'object') {
1082 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1083 }
1084 for (var key in propValue) {
1085 if (has(propValue, key)) {
1086 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1087 if (error instanceof Error) {
1088 return error;
1089 }
1090 }
1091 }
1092 return null;
1093 }
1094 return createChainableTypeChecker(validate);
1095 }
1096
1097 function createUnionTypeChecker(arrayOfTypeCheckers) {
1098 if (!Array.isArray(arrayOfTypeCheckers)) {
1099 true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1100 return emptyFunctionThatReturnsNull;
1101 }
1102
1103 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1104 var checker = arrayOfTypeCheckers[i];
1105 if (typeof checker !== 'function') {
1106 printWarning(
1107 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1108 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1109 );
1110 return emptyFunctionThatReturnsNull;
1111 }
1112 }
1113
1114 function validate(props, propName, componentName, location, propFullName) {
1115 var expectedTypes = [];
1116 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1117 var checker = arrayOfTypeCheckers[i];
1118 var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1119 if (checkerResult == null) {
1120 return null;
1121 }
1122 if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1123 expectedTypes.push(checkerResult.data.expectedType);
1124 }
1125 }
1126 var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1127 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1128 }
1129 return createChainableTypeChecker(validate);
1130 }
1131
1132 function createNodeChecker() {
1133 function validate(props, propName, componentName, location, propFullName) {
1134 if (!isNode(props[propName])) {
1135 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1136 }
1137 return null;
1138 }
1139 return createChainableTypeChecker(validate);
1140 }
1141
1142 function invalidValidatorError(componentName, location, propFullName, key, type) {
1143 return new PropTypeError(
1144 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1145 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1146 );
1147 }
1148
1149 function createShapeTypeChecker(shapeTypes) {
1150 function validate(props, propName, componentName, location, propFullName) {
1151 var propValue = props[propName];
1152 var propType = getPropType(propValue);
1153 if (propType !== 'object') {
1154 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1155 }
1156 for (var key in shapeTypes) {
1157 var checker = shapeTypes[key];
1158 if (typeof checker !== 'function') {
1159 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1160 }
1161 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1162 if (error) {
1163 return error;
1164 }
1165 }
1166 return null;
1167 }
1168 return createChainableTypeChecker(validate);
1169 }
1170
1171 function createStrictShapeTypeChecker(shapeTypes) {
1172 function validate(props, propName, componentName, location, propFullName) {
1173 var propValue = props[propName];
1174 var propType = getPropType(propValue);
1175 if (propType !== 'object') {
1176 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1177 }
1178 // We need to check all keys in case some are required but missing from props.
1179 var allKeys = assign({}, props[propName], shapeTypes);
1180 for (var key in allKeys) {
1181 var checker = shapeTypes[key];
1182 if (has(shapeTypes, key) && typeof checker !== 'function') {
1183 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1184 }
1185 if (!checker) {
1186 return new PropTypeError(
1187 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1188 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1189 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1190 );
1191 }
1192 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1193 if (error) {
1194 return error;
1195 }
1196 }
1197 return null;
1198 }
1199
1200 return createChainableTypeChecker(validate);
1201 }
1202
1203 function isNode(propValue) {
1204 switch (typeof propValue) {
1205 case 'number':
1206 case 'string':
1207 case 'undefined':
1208 return true;
1209 case 'boolean':
1210 return !propValue;
1211 case 'object':
1212 if (Array.isArray(propValue)) {
1213 return propValue.every(isNode);
1214 }
1215 if (propValue === null || isValidElement(propValue)) {
1216 return true;
1217 }
1218
1219 var iteratorFn = getIteratorFn(propValue);
1220 if (iteratorFn) {
1221 var iterator = iteratorFn.call(propValue);
1222 var step;
1223 if (iteratorFn !== propValue.entries) {
1224 while (!(step = iterator.next()).done) {
1225 if (!isNode(step.value)) {
1226 return false;
1227 }
1228 }
1229 } else {
1230 // Iterator will provide entry [k,v] tuples rather than values.
1231 while (!(step = iterator.next()).done) {
1232 var entry = step.value;
1233 if (entry) {
1234 if (!isNode(entry[1])) {
1235 return false;
1236 }
1237 }
1238 }
1239 }
1240 } else {
1241 return false;
1242 }
1243
1244 return true;
1245 default:
1246 return false;
1247 }
1248 }
1249
1250 function isSymbol(propType, propValue) {
1251 // Native Symbol.
1252 if (propType === 'symbol') {
1253 return true;
1254 }
1255
1256 // falsy value can't be a Symbol
1257 if (!propValue) {
1258 return false;
1259 }
1260
1261 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1262 if (propValue['@@toStringTag'] === 'Symbol') {
1263 return true;
1264 }
1265
1266 // Fallback for non-spec compliant Symbols which are polyfilled.
1267 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1268 return true;
1269 }
1270
1271 return false;
1272 }
1273
1274 // Equivalent of `typeof` but with special handling for array and regexp.
1275 function getPropType(propValue) {
1276 var propType = typeof propValue;
1277 if (Array.isArray(propValue)) {
1278 return 'array';
1279 }
1280 if (propValue instanceof RegExp) {
1281 // Old webkits (at least until Android 4.0) return 'function' rather than
1282 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1283 // passes PropTypes.object.
1284 return 'object';
1285 }
1286 if (isSymbol(propType, propValue)) {
1287 return 'symbol';
1288 }
1289 return propType;
1290 }
1291
1292 // This handles more types than `getPropType`. Only used for error messages.
1293 // See `createPrimitiveTypeChecker`.
1294 function getPreciseType(propValue) {
1295 if (typeof propValue === 'undefined' || propValue === null) {
1296 return '' + propValue;
1297 }
1298 var propType = getPropType(propValue);
1299 if (propType === 'object') {
1300 if (propValue instanceof Date) {
1301 return 'date';
1302 } else if (propValue instanceof RegExp) {
1303 return 'regexp';
1304 }
1305 }
1306 return propType;
1307 }
1308
1309 // Returns a string that is postfixed to a warning about an invalid type.
1310 // For example, "undefined" or "of type array"
1311 function getPostfixForTypeWarning(value) {
1312 var type = getPreciseType(value);
1313 switch (type) {
1314 case 'array':
1315 case 'object':
1316 return 'an ' + type;
1317 case 'boolean':
1318 case 'date':
1319 case 'regexp':
1320 return 'a ' + type;
1321 default:
1322 return type;
1323 }
1324 }
1325
1326 // Returns class name of the object, if any.
1327 function getClassName(propValue) {
1328 if (!propValue.constructor || !propValue.constructor.name) {
1329 return ANONYMOUS;
1330 }
1331 return propValue.constructor.name;
1332 }
1333
1334 ReactPropTypes.checkPropTypes = checkPropTypes;
1335 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1336 ReactPropTypes.PropTypes = ReactPropTypes;
1337
1338 return ReactPropTypes;
1339 };
1340
1341
1342 /***/ }),
1343
1344 /***/ "../node_modules/prop-types/index.js":
1345 /*!*******************************************!*\
1346 !*** ../node_modules/prop-types/index.js ***!
1347 \*******************************************/
1348 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1349
1350 /**
1351 * Copyright (c) 2013-present, Facebook, Inc.
1352 *
1353 * This source code is licensed under the MIT license found in the
1354 * LICENSE file in the root directory of this source tree.
1355 */
1356
1357 if (true) {
1358 var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1359
1360 // By explicitly using `prop-types` you are opting into new development behavior.
1361 // http://fb.me/prop-types-in-prod
1362 var throwOnDirectAccess = true;
1363 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1364 } else {}
1365
1366
1367 /***/ }),
1368
1369 /***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1370 /*!**************************************************************!*\
1371 !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1372 \**************************************************************/
1373 /***/ ((module) => {
1374
1375 "use strict";
1376 /**
1377 * Copyright (c) 2013-present, Facebook, Inc.
1378 *
1379 * This source code is licensed under the MIT license found in the
1380 * LICENSE file in the root directory of this source tree.
1381 */
1382
1383
1384
1385 var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1386
1387 module.exports = ReactPropTypesSecret;
1388
1389
1390 /***/ }),
1391
1392 /***/ "../node_modules/prop-types/lib/has.js":
1393 /*!*********************************************!*\
1394 !*** ../node_modules/prop-types/lib/has.js ***!
1395 \*********************************************/
1396 /***/ ((module) => {
1397
1398 module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1399
1400
1401 /***/ }),
1402
1403 /***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1404 /*!************************************************************************************!*\
1405 !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1406 \************************************************************************************/
1407 /***/ ((__unused_webpack_module, exports) => {
1408
1409 "use strict";
1410 /** @license React v16.13.1
1411 * react-is.development.js
1412 *
1413 * Copyright (c) Facebook, Inc. and its affiliates.
1414 *
1415 * This source code is licensed under the MIT license found in the
1416 * LICENSE file in the root directory of this source tree.
1417 */
1418
1419
1420
1421
1422
1423 if (true) {
1424 (function() {
1425 'use strict';
1426
1427 // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1428 // nor polyfill, then a plain number is used for performance.
1429 var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1430 var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1431 var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1432 var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1433 var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1434 var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1435 var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1436 var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1437 // (unstable) APIs that have been removed. Can we remove the symbols?
1438
1439 var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1440 var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1441 var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1442 var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1443 var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1444 var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1445 var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1446 var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1447 var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1448 var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1449 var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1450
1451 function isValidElementType(type) {
1452 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1453 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);
1454 }
1455
1456 function typeOf(object) {
1457 if (typeof object === 'object' && object !== null) {
1458 var $$typeof = object.$$typeof;
1459
1460 switch ($$typeof) {
1461 case REACT_ELEMENT_TYPE:
1462 var type = object.type;
1463
1464 switch (type) {
1465 case REACT_ASYNC_MODE_TYPE:
1466 case REACT_CONCURRENT_MODE_TYPE:
1467 case REACT_FRAGMENT_TYPE:
1468 case REACT_PROFILER_TYPE:
1469 case REACT_STRICT_MODE_TYPE:
1470 case REACT_SUSPENSE_TYPE:
1471 return type;
1472
1473 default:
1474 var $$typeofType = type && type.$$typeof;
1475
1476 switch ($$typeofType) {
1477 case REACT_CONTEXT_TYPE:
1478 case REACT_FORWARD_REF_TYPE:
1479 case REACT_LAZY_TYPE:
1480 case REACT_MEMO_TYPE:
1481 case REACT_PROVIDER_TYPE:
1482 return $$typeofType;
1483
1484 default:
1485 return $$typeof;
1486 }
1487
1488 }
1489
1490 case REACT_PORTAL_TYPE:
1491 return $$typeof;
1492 }
1493 }
1494
1495 return undefined;
1496 } // AsyncMode is deprecated along with isAsyncMode
1497
1498 var AsyncMode = REACT_ASYNC_MODE_TYPE;
1499 var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1500 var ContextConsumer = REACT_CONTEXT_TYPE;
1501 var ContextProvider = REACT_PROVIDER_TYPE;
1502 var Element = REACT_ELEMENT_TYPE;
1503 var ForwardRef = REACT_FORWARD_REF_TYPE;
1504 var Fragment = REACT_FRAGMENT_TYPE;
1505 var Lazy = REACT_LAZY_TYPE;
1506 var Memo = REACT_MEMO_TYPE;
1507 var Portal = REACT_PORTAL_TYPE;
1508 var Profiler = REACT_PROFILER_TYPE;
1509 var StrictMode = REACT_STRICT_MODE_TYPE;
1510 var Suspense = REACT_SUSPENSE_TYPE;
1511 var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1512
1513 function isAsyncMode(object) {
1514 {
1515 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1516 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1517
1518 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.');
1519 }
1520 }
1521
1522 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1523 }
1524 function isConcurrentMode(object) {
1525 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1526 }
1527 function isContextConsumer(object) {
1528 return typeOf(object) === REACT_CONTEXT_TYPE;
1529 }
1530 function isContextProvider(object) {
1531 return typeOf(object) === REACT_PROVIDER_TYPE;
1532 }
1533 function isElement(object) {
1534 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1535 }
1536 function isForwardRef(object) {
1537 return typeOf(object) === REACT_FORWARD_REF_TYPE;
1538 }
1539 function isFragment(object) {
1540 return typeOf(object) === REACT_FRAGMENT_TYPE;
1541 }
1542 function isLazy(object) {
1543 return typeOf(object) === REACT_LAZY_TYPE;
1544 }
1545 function isMemo(object) {
1546 return typeOf(object) === REACT_MEMO_TYPE;
1547 }
1548 function isPortal(object) {
1549 return typeOf(object) === REACT_PORTAL_TYPE;
1550 }
1551 function isProfiler(object) {
1552 return typeOf(object) === REACT_PROFILER_TYPE;
1553 }
1554 function isStrictMode(object) {
1555 return typeOf(object) === REACT_STRICT_MODE_TYPE;
1556 }
1557 function isSuspense(object) {
1558 return typeOf(object) === REACT_SUSPENSE_TYPE;
1559 }
1560
1561 exports.AsyncMode = AsyncMode;
1562 exports.ConcurrentMode = ConcurrentMode;
1563 exports.ContextConsumer = ContextConsumer;
1564 exports.ContextProvider = ContextProvider;
1565 exports.Element = Element;
1566 exports.ForwardRef = ForwardRef;
1567 exports.Fragment = Fragment;
1568 exports.Lazy = Lazy;
1569 exports.Memo = Memo;
1570 exports.Portal = Portal;
1571 exports.Profiler = Profiler;
1572 exports.StrictMode = StrictMode;
1573 exports.Suspense = Suspense;
1574 exports.isAsyncMode = isAsyncMode;
1575 exports.isConcurrentMode = isConcurrentMode;
1576 exports.isContextConsumer = isContextConsumer;
1577 exports.isContextProvider = isContextProvider;
1578 exports.isElement = isElement;
1579 exports.isForwardRef = isForwardRef;
1580 exports.isFragment = isFragment;
1581 exports.isLazy = isLazy;
1582 exports.isMemo = isMemo;
1583 exports.isPortal = isPortal;
1584 exports.isProfiler = isProfiler;
1585 exports.isStrictMode = isStrictMode;
1586 exports.isSuspense = isSuspense;
1587 exports.isValidElementType = isValidElementType;
1588 exports.typeOf = typeOf;
1589 })();
1590 }
1591
1592
1593 /***/ }),
1594
1595 /***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1596 /*!*****************************************************************!*\
1597 !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1598 \*****************************************************************/
1599 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1600
1601 "use strict";
1602
1603
1604 if (false) {} else {
1605 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1606 }
1607
1608
1609 /***/ }),
1610
1611 /***/ "../node_modules/react-dom/client.js":
1612 /*!*******************************************!*\
1613 !*** ../node_modules/react-dom/client.js ***!
1614 \*******************************************/
1615 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1616
1617 "use strict";
1618
1619
1620 var m = __webpack_require__(/*! react-dom */ "react-dom");
1621 if (false) {} else {
1622 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1623 exports.createRoot = function(c, o) {
1624 i.usingClientEntryPoint = true;
1625 try {
1626 return m.createRoot(c, o);
1627 } finally {
1628 i.usingClientEntryPoint = false;
1629 }
1630 };
1631 exports.hydrateRoot = function(c, h, o) {
1632 i.usingClientEntryPoint = true;
1633 try {
1634 return m.hydrateRoot(c, h, o);
1635 } finally {
1636 i.usingClientEntryPoint = false;
1637 }
1638 };
1639 }
1640
1641
1642 /***/ }),
1643
1644 /***/ "react":
1645 /*!************************!*\
1646 !*** external "React" ***!
1647 \************************/
1648 /***/ ((module) => {
1649
1650 "use strict";
1651 module.exports = React;
1652
1653 /***/ }),
1654
1655 /***/ "react-dom":
1656 /*!***************************!*\
1657 !*** external "ReactDOM" ***!
1658 \***************************/
1659 /***/ ((module) => {
1660
1661 "use strict";
1662 module.exports = ReactDOM;
1663
1664 /***/ }),
1665
1666 /***/ "@wordpress/i18n":
1667 /*!**************************!*\
1668 !*** external "wp.i18n" ***!
1669 \**************************/
1670 /***/ ((module) => {
1671
1672 "use strict";
1673 module.exports = wp.i18n;
1674
1675 /***/ }),
1676
1677 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1678 /*!******************************************************************!*\
1679 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1680 \******************************************************************/
1681 /***/ ((module) => {
1682
1683 function _arrayLikeToArray(r, a) {
1684 (null == a || a > r.length) && (a = r.length);
1685 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1686 return n;
1687 }
1688 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1689
1690 /***/ }),
1691
1692 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1693 /*!****************************************************************!*\
1694 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1695 \****************************************************************/
1696 /***/ ((module) => {
1697
1698 function _arrayWithHoles(r) {
1699 if (Array.isArray(r)) return r;
1700 }
1701 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1702
1703 /***/ }),
1704
1705 /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
1706 /*!***********************************************************************!*\
1707 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
1708 \***********************************************************************/
1709 /***/ ((module) => {
1710
1711 function _assertThisInitialized(e) {
1712 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1713 return e;
1714 }
1715 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
1716
1717 /***/ }),
1718
1719 /***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
1720 /*!******************************************************************!*\
1721 !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
1722 \******************************************************************/
1723 /***/ ((module) => {
1724
1725 function asyncGeneratorStep(n, t, e, r, o, a, c) {
1726 try {
1727 var i = n[a](c),
1728 u = i.value;
1729 } catch (n) {
1730 return void e(n);
1731 }
1732 i.done ? t(u) : Promise.resolve(u).then(r, o);
1733 }
1734 function _asyncToGenerator(n) {
1735 return function () {
1736 var t = this,
1737 e = arguments;
1738 return new Promise(function (r, o) {
1739 var a = n.apply(t, e);
1740 function _next(n) {
1741 asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
1742 }
1743 function _throw(n) {
1744 asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
1745 }
1746 _next(void 0);
1747 });
1748 };
1749 }
1750 module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
1751
1752 /***/ }),
1753
1754 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
1755 /*!****************************************************************!*\
1756 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1757 \****************************************************************/
1758 /***/ ((module) => {
1759
1760 function _classCallCheck(a, n) {
1761 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1762 }
1763 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1764
1765 /***/ }),
1766
1767 /***/ "../node_modules/@babel/runtime/helpers/createClass.js":
1768 /*!*************************************************************!*\
1769 !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
1770 \*************************************************************/
1771 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1772
1773 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1774 function _defineProperties(e, r) {
1775 for (var t = 0; t < r.length; t++) {
1776 var o = r[t];
1777 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
1778 }
1779 }
1780 function _createClass(e, r, t) {
1781 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
1782 writable: !1
1783 }), e;
1784 }
1785 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1786
1787 /***/ }),
1788
1789 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
1790 /*!****************************************************************!*\
1791 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
1792 \****************************************************************/
1793 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1794
1795 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1796 function _defineProperty(e, r, t) {
1797 return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1798 value: t,
1799 enumerable: !0,
1800 configurable: !0,
1801 writable: !0
1802 }) : e[r] = t, e;
1803 }
1804 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
1805
1806 /***/ }),
1807
1808 /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
1809 /*!****************************************************************!*\
1810 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
1811 \****************************************************************/
1812 /***/ ((module) => {
1813
1814 function _getPrototypeOf(t) {
1815 return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
1816 return t.__proto__ || Object.getPrototypeOf(t);
1817 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
1818 }
1819 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
1820
1821 /***/ }),
1822
1823 /***/ "../node_modules/@babel/runtime/helpers/inherits.js":
1824 /*!**********************************************************!*\
1825 !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
1826 \**********************************************************/
1827 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1828
1829 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
1830 function _inherits(t, e) {
1831 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
1832 t.prototype = Object.create(e && e.prototype, {
1833 constructor: {
1834 value: t,
1835 writable: !0,
1836 configurable: !0
1837 }
1838 }), Object.defineProperty(t, "prototype", {
1839 writable: !1
1840 }), e && setPrototypeOf(t, e);
1841 }
1842 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
1843
1844 /***/ }),
1845
1846 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1847 /*!***********************************************************************!*\
1848 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1849 \***********************************************************************/
1850 /***/ ((module) => {
1851
1852 function _interopRequireDefault(e) {
1853 return e && e.__esModule ? e : {
1854 "default": e
1855 };
1856 }
1857 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
1858
1859 /***/ }),
1860
1861 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
1862 /*!**********************************************************************!*\
1863 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
1864 \**********************************************************************/
1865 /***/ ((module) => {
1866
1867 function _iterableToArrayLimit(r, l) {
1868 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1869 if (null != t) {
1870 var e,
1871 n,
1872 i,
1873 u,
1874 a = [],
1875 f = !0,
1876 o = !1;
1877 try {
1878 if (i = (t = t.call(r)).next, 0 === l) {
1879 if (Object(t) !== t) return;
1880 f = !1;
1881 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1882 } catch (r) {
1883 o = !0, n = r;
1884 } finally {
1885 try {
1886 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1887 } finally {
1888 if (o) throw n;
1889 }
1890 }
1891 return a;
1892 }
1893 }
1894 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
1895
1896 /***/ }),
1897
1898 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
1899 /*!*****************************************************************!*\
1900 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
1901 \*****************************************************************/
1902 /***/ ((module) => {
1903
1904 function _nonIterableRest() {
1905 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1906 }
1907 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
1908
1909 /***/ }),
1910
1911 /***/ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js":
1912 /*!*************************************************************************!*\
1913 !*** ../node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
1914 \*************************************************************************/
1915 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1916
1917 var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");
1918 function _objectWithoutProperties(e, t) {
1919 if (null == e) return {};
1920 var o,
1921 r,
1922 i = objectWithoutPropertiesLoose(e, t);
1923 if (Object.getOwnPropertySymbols) {
1924 var s = Object.getOwnPropertySymbols(e);
1925 for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1926 }
1927 return i;
1928 }
1929 module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
1930
1931 /***/ }),
1932
1933 /***/ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
1934 /*!******************************************************************************!*\
1935 !*** ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
1936 \******************************************************************************/
1937 /***/ ((module) => {
1938
1939 function _objectWithoutPropertiesLoose(r, e) {
1940 if (null == r) return {};
1941 var t = {};
1942 for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1943 if (e.includes(n)) continue;
1944 t[n] = r[n];
1945 }
1946 return t;
1947 }
1948 module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
1949
1950 /***/ }),
1951
1952 /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
1953 /*!***************************************************************************!*\
1954 !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
1955 \***************************************************************************/
1956 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1957
1958 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1959 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
1960 function _possibleConstructorReturn(t, e) {
1961 if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
1962 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
1963 return assertThisInitialized(t);
1964 }
1965 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
1966
1967 /***/ }),
1968
1969 /***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
1970 /*!********************************************************************!*\
1971 !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
1972 \********************************************************************/
1973 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1974
1975 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
1976 function _regeneratorRuntime() {
1977 "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1978 module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
1979 return e;
1980 }, module.exports.__esModule = true, module.exports["default"] = module.exports;
1981 var t,
1982 e = {},
1983 r = Object.prototype,
1984 n = r.hasOwnProperty,
1985 o = Object.defineProperty || function (t, e, r) {
1986 t[e] = r.value;
1987 },
1988 i = "function" == typeof Symbol ? Symbol : {},
1989 a = i.iterator || "@@iterator",
1990 c = i.asyncIterator || "@@asyncIterator",
1991 u = i.toStringTag || "@@toStringTag";
1992 function define(t, e, r) {
1993 return Object.defineProperty(t, e, {
1994 value: r,
1995 enumerable: !0,
1996 configurable: !0,
1997 writable: !0
1998 }), t[e];
1999 }
2000 try {
2001 define({}, "");
2002 } catch (t) {
2003 define = function define(t, e, r) {
2004 return t[e] = r;
2005 };
2006 }
2007 function wrap(t, e, r, n) {
2008 var i = e && e.prototype instanceof Generator ? e : Generator,
2009 a = Object.create(i.prototype),
2010 c = new Context(n || []);
2011 return o(a, "_invoke", {
2012 value: makeInvokeMethod(t, r, c)
2013 }), a;
2014 }
2015 function tryCatch(t, e, r) {
2016 try {
2017 return {
2018 type: "normal",
2019 arg: t.call(e, r)
2020 };
2021 } catch (t) {
2022 return {
2023 type: "throw",
2024 arg: t
2025 };
2026 }
2027 }
2028 e.wrap = wrap;
2029 var h = "suspendedStart",
2030 l = "suspendedYield",
2031 f = "executing",
2032 s = "completed",
2033 y = {};
2034 function Generator() {}
2035 function GeneratorFunction() {}
2036 function GeneratorFunctionPrototype() {}
2037 var p = {};
2038 define(p, a, function () {
2039 return this;
2040 });
2041 var d = Object.getPrototypeOf,
2042 v = d && d(d(values([])));
2043 v && v !== r && n.call(v, a) && (p = v);
2044 var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
2045 function defineIteratorMethods(t) {
2046 ["next", "throw", "return"].forEach(function (e) {
2047 define(t, e, function (t) {
2048 return this._invoke(e, t);
2049 });
2050 });
2051 }
2052 function AsyncIterator(t, e) {
2053 function invoke(r, o, i, a) {
2054 var c = tryCatch(t[r], t, o);
2055 if ("throw" !== c.type) {
2056 var u = c.arg,
2057 h = u.value;
2058 return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
2059 invoke("next", t, i, a);
2060 }, function (t) {
2061 invoke("throw", t, i, a);
2062 }) : e.resolve(h).then(function (t) {
2063 u.value = t, i(u);
2064 }, function (t) {
2065 return invoke("throw", t, i, a);
2066 });
2067 }
2068 a(c.arg);
2069 }
2070 var r;
2071 o(this, "_invoke", {
2072 value: function value(t, n) {
2073 function callInvokeWithMethodAndArg() {
2074 return new e(function (e, r) {
2075 invoke(t, n, e, r);
2076 });
2077 }
2078 return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
2079 }
2080 });
2081 }
2082 function makeInvokeMethod(e, r, n) {
2083 var o = h;
2084 return function (i, a) {
2085 if (o === f) throw Error("Generator is already running");
2086 if (o === s) {
2087 if ("throw" === i) throw a;
2088 return {
2089 value: t,
2090 done: !0
2091 };
2092 }
2093 for (n.method = i, n.arg = a;;) {
2094 var c = n.delegate;
2095 if (c) {
2096 var u = maybeInvokeDelegate(c, n);
2097 if (u) {
2098 if (u === y) continue;
2099 return u;
2100 }
2101 }
2102 if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
2103 if (o === h) throw o = s, n.arg;
2104 n.dispatchException(n.arg);
2105 } else "return" === n.method && n.abrupt("return", n.arg);
2106 o = f;
2107 var p = tryCatch(e, r, n);
2108 if ("normal" === p.type) {
2109 if (o = n.done ? s : l, p.arg === y) continue;
2110 return {
2111 value: p.arg,
2112 done: n.done
2113 };
2114 }
2115 "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
2116 }
2117 };
2118 }
2119 function maybeInvokeDelegate(e, r) {
2120 var n = r.method,
2121 o = e.iterator[n];
2122 if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
2123 var i = tryCatch(o, e.iterator, r.arg);
2124 if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
2125 var a = i.arg;
2126 return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
2127 }
2128 function pushTryEntry(t) {
2129 var e = {
2130 tryLoc: t[0]
2131 };
2132 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
2133 }
2134 function resetTryEntry(t) {
2135 var e = t.completion || {};
2136 e.type = "normal", delete e.arg, t.completion = e;
2137 }
2138 function Context(t) {
2139 this.tryEntries = [{
2140 tryLoc: "root"
2141 }], t.forEach(pushTryEntry, this), this.reset(!0);
2142 }
2143 function values(e) {
2144 if (e || "" === e) {
2145 var r = e[a];
2146 if (r) return r.call(e);
2147 if ("function" == typeof e.next) return e;
2148 if (!isNaN(e.length)) {
2149 var o = -1,
2150 i = function next() {
2151 for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
2152 return next.value = t, next.done = !0, next;
2153 };
2154 return i.next = i;
2155 }
2156 }
2157 throw new TypeError(_typeof(e) + " is not iterable");
2158 }
2159 return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
2160 value: GeneratorFunctionPrototype,
2161 configurable: !0
2162 }), o(GeneratorFunctionPrototype, "constructor", {
2163 value: GeneratorFunction,
2164 configurable: !0
2165 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
2166 var e = "function" == typeof t && t.constructor;
2167 return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
2168 }, e.mark = function (t) {
2169 return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
2170 }, e.awrap = function (t) {
2171 return {
2172 __await: t
2173 };
2174 }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
2175 return this;
2176 }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
2177 void 0 === i && (i = Promise);
2178 var a = new AsyncIterator(wrap(t, r, n, o), i);
2179 return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
2180 return t.done ? t.value : a.next();
2181 });
2182 }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
2183 return this;
2184 }), define(g, "toString", function () {
2185 return "[object Generator]";
2186 }), e.keys = function (t) {
2187 var e = Object(t),
2188 r = [];
2189 for (var n in e) r.push(n);
2190 return r.reverse(), function next() {
2191 for (; r.length;) {
2192 var t = r.pop();
2193 if (t in e) return next.value = t, next.done = !1, next;
2194 }
2195 return next.done = !0, next;
2196 };
2197 }, e.values = values, Context.prototype = {
2198 constructor: Context,
2199 reset: function reset(e) {
2200 if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
2201 },
2202 stop: function stop() {
2203 this.done = !0;
2204 var t = this.tryEntries[0].completion;
2205 if ("throw" === t.type) throw t.arg;
2206 return this.rval;
2207 },
2208 dispatchException: function dispatchException(e) {
2209 if (this.done) throw e;
2210 var r = this;
2211 function handle(n, o) {
2212 return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
2213 }
2214 for (var o = this.tryEntries.length - 1; o >= 0; --o) {
2215 var i = this.tryEntries[o],
2216 a = i.completion;
2217 if ("root" === i.tryLoc) return handle("end");
2218 if (i.tryLoc <= this.prev) {
2219 var c = n.call(i, "catchLoc"),
2220 u = n.call(i, "finallyLoc");
2221 if (c && u) {
2222 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
2223 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
2224 } else if (c) {
2225 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
2226 } else {
2227 if (!u) throw Error("try statement without catch or finally");
2228 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
2229 }
2230 }
2231 }
2232 },
2233 abrupt: function abrupt(t, e) {
2234 for (var r = this.tryEntries.length - 1; r >= 0; --r) {
2235 var o = this.tryEntries[r];
2236 if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
2237 var i = o;
2238 break;
2239 }
2240 }
2241 i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
2242 var a = i ? i.completion : {};
2243 return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
2244 },
2245 complete: function complete(t, e) {
2246 if ("throw" === t.type) throw t.arg;
2247 return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
2248 },
2249 finish: function finish(t) {
2250 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
2251 var r = this.tryEntries[e];
2252 if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
2253 }
2254 },
2255 "catch": function _catch(t) {
2256 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
2257 var r = this.tryEntries[e];
2258 if (r.tryLoc === t) {
2259 var n = r.completion;
2260 if ("throw" === n.type) {
2261 var o = n.arg;
2262 resetTryEntry(r);
2263 }
2264 return o;
2265 }
2266 }
2267 throw Error("illegal catch attempt");
2268 },
2269 delegateYield: function delegateYield(e, r, n) {
2270 return this.delegate = {
2271 iterator: values(e),
2272 resultName: r,
2273 nextLoc: n
2274 }, "next" === this.method && (this.arg = t), y;
2275 }
2276 }, e;
2277 }
2278 module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
2279
2280 /***/ }),
2281
2282 /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2283 /*!****************************************************************!*\
2284 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2285 \****************************************************************/
2286 /***/ ((module) => {
2287
2288 function _setPrototypeOf(t, e) {
2289 return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2290 return t.__proto__ = e, t;
2291 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2292 }
2293 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2294
2295 /***/ }),
2296
2297 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2298 /*!***************************************************************!*\
2299 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2300 \***************************************************************/
2301 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2302
2303 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2304 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2305 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2306 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2307 function _slicedToArray(r, e) {
2308 return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2309 }
2310 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2311
2312 /***/ }),
2313
2314 /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2315 /*!*************************************************************!*\
2316 !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2317 \*************************************************************/
2318 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2319
2320 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2321 function toPrimitive(t, r) {
2322 if ("object" != _typeof(t) || !t) return t;
2323 var e = t[Symbol.toPrimitive];
2324 if (void 0 !== e) {
2325 var i = e.call(t, r || "default");
2326 if ("object" != _typeof(i)) return i;
2327 throw new TypeError("@@toPrimitive must return a primitive value.");
2328 }
2329 return ("string" === r ? String : Number)(t);
2330 }
2331 module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2332
2333 /***/ }),
2334
2335 /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2336 /*!***************************************************************!*\
2337 !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2338 \***************************************************************/
2339 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2340
2341 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2342 var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2343 function toPropertyKey(t) {
2344 var i = toPrimitive(t, "string");
2345 return "symbol" == _typeof(i) ? i : i + "";
2346 }
2347 module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2348
2349 /***/ }),
2350
2351 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2352 /*!********************************************************!*\
2353 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2354 \********************************************************/
2355 /***/ ((module) => {
2356
2357 function _typeof(o) {
2358 "@babel/helpers - typeof";
2359
2360 return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2361 return typeof o;
2362 } : function (o) {
2363 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2364 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
2365 }
2366 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2367
2368 /***/ }),
2369
2370 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2371 /*!****************************************************************************!*\
2372 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2373 \****************************************************************************/
2374 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2375
2376 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2377 function _unsupportedIterableToArray(r, a) {
2378 if (r) {
2379 if ("string" == typeof r) return arrayLikeToArray(r, a);
2380 var t = {}.toString.call(r).slice(8, -1);
2381 return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
2382 }
2383 }
2384 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2385
2386 /***/ }),
2387
2388 /***/ "../node_modules/@babel/runtime/regenerator/index.js":
2389 /*!***********************************************************!*\
2390 !*** ../node_modules/@babel/runtime/regenerator/index.js ***!
2391 \***********************************************************/
2392 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2393
2394 // TODO(Babel 8): Remove this file.
2395
2396 var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
2397 module.exports = runtime;
2398
2399 // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
2400 try {
2401 regeneratorRuntime = runtime;
2402 } catch (accidentalStrictMode) {
2403 if (typeof globalThis === "object") {
2404 globalThis.regeneratorRuntime = runtime;
2405 } else {
2406 Function("r", "regeneratorRuntime = r")(runtime);
2407 }
2408 }
2409
2410
2411 /***/ })
2412
2413 /******/ });
2414 /************************************************************************/
2415 /******/ // The module cache
2416 /******/ var __webpack_module_cache__ = {};
2417 /******/
2418 /******/ // The require function
2419 /******/ function __webpack_require__(moduleId) {
2420 /******/ // Check if module is in cache
2421 /******/ var cachedModule = __webpack_module_cache__[moduleId];
2422 /******/ if (cachedModule !== undefined) {
2423 /******/ return cachedModule.exports;
2424 /******/ }
2425 /******/ // Create a new module (and put it into the cache)
2426 /******/ var module = __webpack_module_cache__[moduleId] = {
2427 /******/ // no module.id needed
2428 /******/ // no module.loaded needed
2429 /******/ exports: {}
2430 /******/ };
2431 /******/
2432 /******/ // Execute the module function
2433 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2434 /******/
2435 /******/ // Return the exports of the module
2436 /******/ return module.exports;
2437 /******/ }
2438 /******/
2439 /************************************************************************/
2440 var __webpack_exports__ = {};
2441 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
2442 (() => {
2443 "use strict";
2444 var exports = __webpack_exports__;
2445 /*!***************************************************!*\
2446 !*** ../modules/announcements/assets/js/index.js ***!
2447 \***************************************************/
2448
2449
2450 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2451 Object.defineProperty(exports, "__esModule", ({
2452 value: true
2453 }));
2454 exports["default"] = void 0;
2455 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
2456 var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
2457 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
2458 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2459 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2460 var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
2461 var _components = __webpack_require__(/*! ./components */ "../modules/announcements/assets/js/components/index.js");
2462 var _eComponent = _interopRequireDefault(__webpack_require__(/*! ./e-component */ "../modules/announcements/assets/js/e-component.js"));
2463 var AnnouncementIndex = exports["default"] = /*#__PURE__*/function () {
2464 function AnnouncementIndex() {
2465 (0, _classCallCheck2.default)(this, AnnouncementIndex);
2466 this.initAnnouncement();
2467 }
2468 return (0, _createClass2.default)(AnnouncementIndex, [{
2469 key: "initAnnouncement",
2470 value: function () {
2471 var _initAnnouncement = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
2472 var _window$elementorAnno;
2473 var container, announcements, _ReactUtils$render, unmount;
2474 return _regenerator.default.wrap(function _callee$(_context) {
2475 while (1) switch (_context.prev = _context.next) {
2476 case 0:
2477 container = document.getElementById('e-announcements-root');
2478 announcements = (_window$elementorAnno = window.elementorAnnouncementsConfig) === null || _window$elementorAnno === void 0 ? void 0 : _window$elementorAnno.announcements;
2479 if (!(!announcements || !container)) {
2480 _context.next = 4;
2481 break;
2482 }
2483 return _context.abrupt("return");
2484 case 4:
2485 _context.next = 6;
2486 return $e.components.register(new _eComponent.default());
2487 case 6:
2488 _ReactUtils$render = _react2.default.render(/*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.Overlay, null), /*#__PURE__*/_react.default.createElement(_components.Announcements, {
2489 announcements: announcements,
2490 unMount: function unMount() {
2491 unmount();
2492 container.remove();
2493 }
2494 })), container), unmount = _ReactUtils$render.unmount;
2495 case 7:
2496 case "end":
2497 return _context.stop();
2498 }
2499 }, _callee);
2500 }));
2501 function initAnnouncement() {
2502 return _initAnnouncement.apply(this, arguments);
2503 }
2504 return initAnnouncement;
2505 }()
2506 }]);
2507 }();
2508 new AnnouncementIndex();
2509 })();
2510
2511 /******/ })()
2512 ;
2513 //# sourceMappingURL=announcements-app.js.map