PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.2
Elementor Website Builder – more than just a page builder v3.0.2
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/app-packages.js +10162 -5289 4.3.1 → 3.0.2 View file →
@@ -1,5432 +1,10305 @@
1 -(function(react, _wordpress_i18n) {var __vite_style__ = document.createElement('style');__vite_style__.textContent = "/*$vite$:1*/";document.head.appendChild(__vite_style__);
1 +/*! elementor - v3.0.2 - 26-08-2020 */
2 +/******/ (function(modules) { // webpackBootstrap
3 +/******/ // The module cache
4 +/******/ var installedModules = {};
5 +/******/
6 +/******/ // The require function
7 +/******/ function __webpack_require__(moduleId) {
8 +/******/
9 +/******/ // Check if module is in cache
10 +/******/ if(installedModules[moduleId]) {
11 +/******/ return installedModules[moduleId].exports;
12 +/******/ }
13 +/******/ // Create a new module (and put it into the cache)
14 +/******/ var module = installedModules[moduleId] = {
15 +/******/ i: moduleId,
16 +/******/ l: false,
17 +/******/ exports: {}
18 +/******/ };
19 +/******/
20 +/******/ // Execute the module function
21 +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22 +/******/
23 +/******/ // Flag the module as loaded
24 +/******/ module.l = true;
25 +/******/
26 +/******/ // Return the exports of the module
27 +/******/ return module.exports;
28 +/******/ }
29 +/******/
30 +/******/
31 +/******/ // expose the modules object (__webpack_modules__)
32 +/******/ __webpack_require__.m = modules;
33 +/******/
34 +/******/ // expose the module cache
35 +/******/ __webpack_require__.c = installedModules;
36 +/******/
37 +/******/ // define getter function for harmony exports
38 +/******/ __webpack_require__.d = function(exports, name, getter) {
39 +/******/ if(!__webpack_require__.o(exports, name)) {
40 +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41 +/******/ }
42 +/******/ };
43 +/******/
44 +/******/ // define __esModule on exports
45 +/******/ __webpack_require__.r = function(exports) {
46 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48 +/******/ }
49 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
50 +/******/ };
51 +/******/
52 +/******/ // create a fake namespace object
53 +/******/ // mode & 1: value is a module id, require it
54 +/******/ // mode & 2: merge all properties of value into the ns
55 +/******/ // mode & 4: return value when already ns object
56 +/******/ // mode & 8|1: behave like require
57 +/******/ __webpack_require__.t = function(value, mode) {
58 +/******/ if(mode & 1) value = __webpack_require__(value);
59 +/******/ if(mode & 8) return value;
60 +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61 +/******/ var ns = Object.create(null);
62 +/******/ __webpack_require__.r(ns);
63 +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64 +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65 +/******/ return ns;
66 +/******/ };
67 +/******/
68 +/******/ // getDefaultExport function for compatibility with non-harmony modules
69 +/******/ __webpack_require__.n = function(module) {
70 +/******/ var getter = module && module.__esModule ?
71 +/******/ function getDefault() { return module['default']; } :
72 +/******/ function getModuleExports() { return module; };
73 +/******/ __webpack_require__.d(getter, 'a', getter);
74 +/******/ return getter;
75 +/******/ };
76 +/******/
77 +/******/ // Object.prototype.hasOwnProperty.call
78 +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79 +/******/
80 +/******/ // __webpack_public_path__
81 +/******/ __webpack_require__.p = "";
82 +/******/
83 +/******/
84 +/******/ // Load entry module and return exports
85 +/******/ return __webpack_require__(__webpack_require__.s = 756);
86 +/******/ })
87 +/************************************************************************/
88 +/******/ ([
89 +/* 0 */
90 +/***/ (function(module, exports) {
2 91
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 - var __copyProps = (to, from, except, desc) => {
16 - if (from && typeof from === "object" || typeof from === "function") {
17 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18 - key = keys[i];
19 - if (!__hasOwnProp.call(to, key) && key !== except) {
20 - __defProp(to, key, {
21 - get: ((k) => from[k]).bind(null, key),
22 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23 - });
24 - }
25 - }
26 - }
27 - return to;
28 - };
29 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30 - value: mod,
31 - enumerable: true
32 - }) : target, mod));
92 +function _interopRequireDefault(obj) {
93 + return obj && obj.__esModule ? obj : {
94 + "default": obj
95 + };
96 +}
33 97
34 -//#endregion
35 -react = __toESM(react);
98 +module.exports = _interopRequireDefault;
36 99
37 -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
38 - function _classCallCheck$1(a, n) {
39 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
40 - }
41 - __name(_classCallCheck$1, "_classCallCheck");
100 +/***/ }),
101 +/* 1 */
102 +/***/ (function(module, exports, __webpack_require__) {
42 103
43 -//#endregion
44 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
45 - function _typeof(o) {
46 - "@babel/helpers - typeof";
47 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
48 - return typeof o;
49 - } : function(o) {
50 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
51 - }, _typeof(o);
52 - }
104 +module.exports = __webpack_require__(155);
53 105
54 -//#endregion
55 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
56 - function toPrimitive(t, r) {
57 - if ("object" != _typeof(t) || !t) return t;
58 - var e = t[Symbol.toPrimitive];
59 - if (void 0 !== e) {
60 - var i = e.call(t, r || "default");
61 - if ("object" != _typeof(i)) return i;
62 - throw new TypeError("@@toPrimitive must return a primitive value.");
63 - }
64 - return ("string" === r ? String : Number)(t);
65 - }
106 +/***/ }),
107 +/* 2 */
108 +/***/ (function(module, exports) {
66 109
67 -//#endregion
68 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
69 - function toPropertyKey(t) {
70 - var i = toPrimitive(t, "string");
71 - return "symbol" == _typeof(i) ? i : i + "";
72 - }
110 +function _classCallCheck(instance, Constructor) {
111 + if (!(instance instanceof Constructor)) {
112 + throw new TypeError("Cannot call a class as a function");
113 + }
114 +}
73 115
74 -//#endregion
75 -//#region node_modules/@babel/runtime/helpers/esm/createClass.js
76 - function _defineProperties(e, r) {
77 - for (var t = 0; t < r.length; t++) {
78 - var o = r[t];
79 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
80 - }
81 - }
82 - function _createClass(e, r, t) {
83 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
84 - }
116 +module.exports = _classCallCheck;
85 117
86 -//#endregion
87 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
88 - function _defineProperty(e, r, t) {
89 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
90 - value: t,
91 - enumerable: !0,
92 - configurable: !0,
93 - writable: !0
94 - }) : e[r] = t, e;
95 - }
118 +/***/ }),
119 +/* 3 */
120 +/***/ (function(module, exports, __webpack_require__) {
96 121
97 -//#endregion
98 -//#region app/assets/js/router.js
99 - var router = new (/* @__PURE__ */ function() {
100 - function Router() {
101 - _classCallCheck$1(this, Router);
102 - /**
103 - * @type {*[]}
104 - */
105 - _defineProperty(this, "routes", []);
106 - _defineProperty(this, "history", null);
107 - }
108 - return _createClass(Router, [{
109 - key: "addRoute",
110 - value: function addRoute(route) {
111 - this.routes.push(route);
112 - }
113 - }, {
114 - key: "getRoutes",
115 - value: function getRoutes() {
116 - return this.routes.map(function(route) {
117 - var props = route.props || {};
118 - props.path = props.key = route.path;
119 - return react.default.createElement(route.component, props);
120 - });
121 - }
122 - }]);
123 - }())();
124 - window.elementorAppPackages = { router };
122 +var _Object$defineProperty = __webpack_require__(1);
125 123
126 -//#endregion
127 -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
128 -/** @license React v16.13.1
129 - * react-is.development.js
130 - *
131 - * Copyright (c) Facebook, Inc. and its affiliates.
132 - *
133 - * This source code is licensed under the MIT license found in the
134 - * LICENSE file in the root directory of this source tree.
135 - */
136 - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
137 - (function() {
138 - "use strict";
139 - var hasSymbol = typeof Symbol === "function" && Symbol.for;
140 - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
141 - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
142 - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
143 - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
144 - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
145 - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
146 - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
147 - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
148 - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
149 - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
150 - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
151 - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
152 - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
153 - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
154 - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
155 - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
156 - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
157 - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
158 - function isValidElementType(type) {
159 - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
160 - }
161 - function typeOf(object) {
162 - if (typeof object === "object" && object !== null) {
163 - var $$typeof = object.$$typeof;
164 - switch ($$typeof) {
165 - case REACT_ELEMENT_TYPE:
166 - var type = object.type;
167 - switch (type) {
168 - case REACT_ASYNC_MODE_TYPE:
169 - case REACT_CONCURRENT_MODE_TYPE:
170 - case REACT_FRAGMENT_TYPE:
171 - case REACT_PROFILER_TYPE:
172 - case REACT_STRICT_MODE_TYPE:
173 - case REACT_SUSPENSE_TYPE: return type;
174 - default:
175 - var $$typeofType = type && type.$$typeof;
176 - switch ($$typeofType) {
177 - case REACT_CONTEXT_TYPE:
178 - case REACT_FORWARD_REF_TYPE:
179 - case REACT_LAZY_TYPE:
180 - case REACT_MEMO_TYPE:
181 - case REACT_PROVIDER_TYPE: return $$typeofType;
182 - default: return $$typeof;
183 - }
184 - }
185 - case REACT_PORTAL_TYPE: return $$typeof;
186 - }
187 - }
188 - }
189 - var AsyncMode = REACT_ASYNC_MODE_TYPE;
190 - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
191 - var ContextConsumer = REACT_CONTEXT_TYPE;
192 - var ContextProvider = REACT_PROVIDER_TYPE;
193 - var Element = REACT_ELEMENT_TYPE;
194 - var ForwardRef = REACT_FORWARD_REF_TYPE;
195 - var Fragment = REACT_FRAGMENT_TYPE;
196 - var Lazy = REACT_LAZY_TYPE;
197 - var Memo = REACT_MEMO_TYPE;
198 - var Portal = REACT_PORTAL_TYPE;
199 - var Profiler = REACT_PROFILER_TYPE;
200 - var StrictMode = REACT_STRICT_MODE_TYPE;
201 - var Suspense = REACT_SUSPENSE_TYPE;
202 - var hasWarnedAboutDeprecatedIsAsyncMode = false;
203 - function isAsyncMode(object) {
204 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
205 - hasWarnedAboutDeprecatedIsAsyncMode = true;
206 - 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.");
207 - }
208 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
209 - }
210 - function isConcurrentMode(object) {
211 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
212 - }
213 - function isContextConsumer(object) {
214 - return typeOf(object) === REACT_CONTEXT_TYPE;
215 - }
216 - function isContextProvider(object) {
217 - return typeOf(object) === REACT_PROVIDER_TYPE;
218 - }
219 - function isElement(object) {
220 - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
221 - }
222 - function isForwardRef(object) {
223 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
224 - }
225 - function isFragment(object) {
226 - return typeOf(object) === REACT_FRAGMENT_TYPE;
227 - }
228 - function isLazy(object) {
229 - return typeOf(object) === REACT_LAZY_TYPE;
230 - }
231 - function isMemo(object) {
232 - return typeOf(object) === REACT_MEMO_TYPE;
233 - }
234 - function isPortal(object) {
235 - return typeOf(object) === REACT_PORTAL_TYPE;
236 - }
237 - function isProfiler(object) {
238 - return typeOf(object) === REACT_PROFILER_TYPE;
239 - }
240 - function isStrictMode(object) {
241 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
242 - }
243 - function isSuspense(object) {
244 - return typeOf(object) === REACT_SUSPENSE_TYPE;
245 - }
246 - exports.AsyncMode = AsyncMode;
247 - exports.ConcurrentMode = ConcurrentMode;
248 - exports.ContextConsumer = ContextConsumer;
249 - exports.ContextProvider = ContextProvider;
250 - exports.Element = Element;
251 - exports.ForwardRef = ForwardRef;
252 - exports.Fragment = Fragment;
253 - exports.Lazy = Lazy;
254 - exports.Memo = Memo;
255 - exports.Portal = Portal;
256 - exports.Profiler = Profiler;
257 - exports.StrictMode = StrictMode;
258 - exports.Suspense = Suspense;
259 - exports.isAsyncMode = isAsyncMode;
260 - exports.isConcurrentMode = isConcurrentMode;
261 - exports.isContextConsumer = isContextConsumer;
262 - exports.isContextProvider = isContextProvider;
263 - exports.isElement = isElement;
264 - exports.isForwardRef = isForwardRef;
265 - exports.isFragment = isFragment;
266 - exports.isLazy = isLazy;
267 - exports.isMemo = isMemo;
268 - exports.isPortal = isPortal;
269 - exports.isProfiler = isProfiler;
270 - exports.isStrictMode = isStrictMode;
271 - exports.isSuspense = isSuspense;
272 - exports.isValidElementType = isValidElementType;
273 - exports.typeOf = typeOf;
274 - })();
275 - }));
124 +function _defineProperties(target, props) {
125 + for (var i = 0; i < props.length; i++) {
126 + var descriptor = props[i];
127 + descriptor.enumerable = descriptor.enumerable || false;
128 + descriptor.configurable = true;
129 + if ("value" in descriptor) descriptor.writable = true;
276 130
277 -//#endregion
278 -//#region node_modules/prop-types/node_modules/react-is/index.js
279 - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
280 - module.exports = require_react_is_development();
281 - }));
131 + _Object$defineProperty(target, descriptor.key, descriptor);
132 + }
133 +}
282 134
283 -//#endregion
284 -//#region node_modules/object-assign/index.js
285 -/*
286 - object-assign
287 - (c) Sindre Sorhus
288 - @license MIT
289 - */
290 - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
291 - var getOwnPropertySymbols = Object.getOwnPropertySymbols;
292 - var hasOwnProperty = Object.prototype.hasOwnProperty;
293 - var propIsEnumerable = Object.prototype.propertyIsEnumerable;
294 - function toObject(val) {
295 - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
296 - return Object(val);
297 - }
298 - function shouldUseNative() {
299 - try {
300 - if (!Object.assign) return false;
301 - var test1 = /* @__PURE__ */ new String("abc");
302 - test1[5] = "de";
303 - if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
304 - var test2 = {};
305 - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
306 - if (Object.getOwnPropertyNames(test2).map(function(n) {
307 - return test2[n];
308 - }).join("") !== "0123456789") return false;
309 - var test3 = {};
310 - "abcdefghijklmnopqrst".split("").forEach(function(letter) {
311 - test3[letter] = letter;
312 - });
313 - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
314 - return true;
315 - } catch (err) {
316 - return false;
317 - }
318 - }
319 - module.exports = shouldUseNative() ? Object.assign : function(target, source) {
320 - var from;
321 - var to = toObject(target);
322 - var symbols;
323 - for (var s = 1; s < arguments.length; s++) {
324 - from = Object(arguments[s]);
325 - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
326 - if (getOwnPropertySymbols) {
327 - symbols = getOwnPropertySymbols(from);
328 - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
329 - }
330 - }
331 - return to;
332 - };
333 - }));
135 +function _createClass(Constructor, protoProps, staticProps) {
136 + if (protoProps) _defineProperties(Constructor.prototype, protoProps);
137 + if (staticProps) _defineProperties(Constructor, staticProps);
138 + return Constructor;
139 +}
334 140
335 -//#endregion
336 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
141 +module.exports = _createClass;
142 +
143 +/***/ }),
144 +/* 4 */
145 +/***/ (function(module, exports, __webpack_require__) {
146 +
147 +var _Object$create = __webpack_require__(137);
148 +
149 +var setPrototypeOf = __webpack_require__(135);
150 +
151 +function _inherits(subClass, superClass) {
152 + if (typeof superClass !== "function" && superClass !== null) {
153 + throw new TypeError("Super expression must either be null or a function");
154 + }
155 +
156 + subClass.prototype = _Object$create(superClass && superClass.prototype, {
157 + constructor: {
158 + value: subClass,
159 + writable: true,
160 + configurable: true
161 + }
162 + });
163 + if (superClass) setPrototypeOf(subClass, superClass);
164 +}
165 +
166 +module.exports = _inherits;
167 +
168 +/***/ }),
169 +/* 5 */
170 +/***/ (function(module, exports, __webpack_require__) {
171 +
172 +var _Reflect$construct = __webpack_require__(107);
173 +
174 +var getPrototypeOf = __webpack_require__(16);
175 +
176 +var isNativeReflectConstruct = __webpack_require__(148);
177 +
178 +var possibleConstructorReturn = __webpack_require__(170);
179 +
180 +function _createSuper(Derived) {
181 + var hasNativeReflectConstruct = isNativeReflectConstruct();
182 + return function _createSuperInternal() {
183 + var Super = getPrototypeOf(Derived),
184 + result;
185 +
186 + if (hasNativeReflectConstruct) {
187 + var NewTarget = getPrototypeOf(this).constructor;
188 + result = _Reflect$construct(Super, arguments, NewTarget);
189 + } else {
190 + result = Super.apply(this, arguments);
191 + }
192 +
193 + return possibleConstructorReturn(this, result);
194 + };
195 +}
196 +
197 +module.exports = _createSuper;
198 +
199 +/***/ }),
200 +/* 6 */
201 +/***/ (function(module, exports) {
202 +
203 +var core = module.exports = { version: '2.6.11' };
204 +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
205 +
206 +
207 +/***/ }),
208 +/* 7 */
209 +/***/ (function(module, exports, __webpack_require__) {
210 +
211 +var global = __webpack_require__(8);
212 +var core = __webpack_require__(6);
213 +var ctx = __webpack_require__(31);
214 +var hide = __webpack_require__(24);
215 +var has = __webpack_require__(19);
216 +var PROTOTYPE = 'prototype';
217 +
218 +var $export = function (type, name, source) {
219 + var IS_FORCED = type & $export.F;
220 + var IS_GLOBAL = type & $export.G;
221 + var IS_STATIC = type & $export.S;
222 + var IS_PROTO = type & $export.P;
223 + var IS_BIND = type & $export.B;
224 + var IS_WRAP = type & $export.W;
225 + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
226 + var expProto = exports[PROTOTYPE];
227 + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
228 + var key, own, out;
229 + if (IS_GLOBAL) source = name;
230 + for (key in source) {
231 + // contains in native
232 + own = !IS_FORCED && target && target[key] !== undefined;
233 + if (own && has(exports, key)) continue;
234 + // export native or passed
235 + out = own ? target[key] : source[key];
236 + // prevent global pollution for namespaces
237 + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
238 + // bind timers to global for call from export context
239 + : IS_BIND && own ? ctx(out, global)
240 + // wrap global constructors for prevent change them in library
241 + : IS_WRAP && target[key] == out ? (function (C) {
242 + var F = function (a, b, c) {
243 + if (this instanceof C) {
244 + switch (arguments.length) {
245 + case 0: return new C();
246 + case 1: return new C(a);
247 + case 2: return new C(a, b);
248 + } return new C(a, b, c);
249 + } return C.apply(this, arguments);
250 + };
251 + F[PROTOTYPE] = C[PROTOTYPE];
252 + return F;
253 + // make static versions for prototype methods
254 + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
255 + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
256 + if (IS_PROTO) {
257 + (exports.virtual || (exports.virtual = {}))[key] = out;
258 + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
259 + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
260 + }
261 + }
262 +};
263 +// type bitmap
264 +$export.F = 1; // forced
265 +$export.G = 2; // global
266 +$export.S = 4; // static
267 +$export.P = 8; // proto
268 +$export.B = 16; // bind
269 +$export.W = 32; // wrap
270 +$export.U = 64; // safe
271 +$export.R = 128; // real proto method for `library`
272 +module.exports = $export;
273 +
274 +
275 +/***/ }),
276 +/* 8 */
277 +/***/ (function(module, exports) {
278 +
279 +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
280 +var global = module.exports = typeof window != 'undefined' && window.Math == Math
281 + ? window : typeof self != 'undefined' && self.Math == Math ? self
282 + // eslint-disable-next-line no-new-func
283 + : Function('return this')();
284 +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
285 +
286 +
287 +/***/ }),
288 +/* 9 */
289 +/***/ (function(module, exports) {
290 +
291 +module.exports = function (it) {
292 + return typeof it === 'object' ? it !== null : typeof it === 'function';
293 +};
294 +
295 +
296 +/***/ }),
297 +/* 10 */
298 +/***/ (function(module, exports, __webpack_require__) {
299 +
300 +var store = __webpack_require__(76)('wks');
301 +var uid = __webpack_require__(59);
302 +var Symbol = __webpack_require__(8).Symbol;
303 +var USE_SYMBOL = typeof Symbol == 'function';
304 +
305 +var $exports = module.exports = function (name) {
306 + return store[name] || (store[name] =
307 + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
308 +};
309 +
310 +$exports.store = store;
311 +
312 +
313 +/***/ }),
314 +/* 11 */
315 +/***/ (function(module, exports) {
316 +
317 +module.exports = React;
318 +
319 +/***/ }),
320 +/* 12 */
321 +/***/ (function(module, exports, __webpack_require__) {
322 +
323 +var store = __webpack_require__(66)('wks');
324 +var uid = __webpack_require__(67);
325 +var Symbol = __webpack_require__(17).Symbol;
326 +var USE_SYMBOL = typeof Symbol == 'function';
327 +
328 +var $exports = module.exports = function (name) {
329 + return store[name] || (store[name] =
330 + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
331 +};
332 +
333 +$exports.store = store;
334 +
335 +
336 +/***/ }),
337 +/* 13 */
338 +/***/ (function(module, exports, __webpack_require__) {
339 +
340 +var isObject = __webpack_require__(9);
341 +module.exports = function (it) {
342 + if (!isObject(it)) throw TypeError(it + ' is not an object!');
343 + return it;
344 +};
345 +
346 +
347 +/***/ }),
348 +/* 14 */
349 +/***/ (function(module, exports, __webpack_require__) {
350 +
351 +// Thank's IE8 for his funny defineProperty
352 +module.exports = !__webpack_require__(22)(function () {
353 + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
354 +});
355 +
356 +
357 +/***/ }),
358 +/* 15 */
359 +/***/ (function(module, exports, __webpack_require__) {
360 +
361 +var anObject = __webpack_require__(13);
362 +var IE8_DOM_DEFINE = __webpack_require__(114);
363 +var toPrimitive = __webpack_require__(74);
364 +var dP = Object.defineProperty;
365 +
366 +exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
367 + anObject(O);
368 + P = toPrimitive(P, true);
369 + anObject(Attributes);
370 + if (IE8_DOM_DEFINE) try {
371 + return dP(O, P, Attributes);
372 + } catch (e) { /* empty */ }
373 + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
374 + if ('value' in Attributes) O[P] = Attributes.value;
375 + return O;
376 +};
377 +
378 +
379 +/***/ }),
380 +/* 16 */
381 +/***/ (function(module, exports, __webpack_require__) {
382 +
383 +var _Object$getPrototypeOf = __webpack_require__(157);
384 +
385 +var _Object$setPrototypeOf = __webpack_require__(115);
386 +
387 +function _getPrototypeOf(o) {
388 + module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {
389 + return o.__proto__ || _Object$getPrototypeOf(o);
390 + };
391 + return _getPrototypeOf(o);
392 +}
393 +
394 +module.exports = _getPrototypeOf;
395 +
396 +/***/ }),
397 +/* 17 */
398 +/***/ (function(module, exports) {
399 +
400 +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
401 +var global = module.exports = typeof window != 'undefined' && window.Math == Math
402 + ? window : typeof self != 'undefined' && self.Math == Math ? self
403 + // eslint-disable-next-line no-new-func
404 + : Function('return this')();
405 +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
406 +
407 +
408 +/***/ }),
409 +/* 18 */
410 +/***/ (function(module, exports, __webpack_require__) {
411 +
412 +var isObject = __webpack_require__(30);
413 +module.exports = function (it) {
414 + if (!isObject(it)) throw TypeError(it + ' is not an object!');
415 + return it;
416 +};
417 +
418 +
419 +/***/ }),
420 +/* 19 */
421 +/***/ (function(module, exports) {
422 +
423 +var hasOwnProperty = {}.hasOwnProperty;
424 +module.exports = function (it, key) {
425 + return hasOwnProperty.call(it, key);
426 +};
427 +
428 +
429 +/***/ }),
430 +/* 20 */
431 +/***/ (function(module, exports, __webpack_require__) {
432 +
433 +// to indexed object, toObject with fallback for non-array-like ES3 strings
434 +var IObject = __webpack_require__(103);
435 +var defined = __webpack_require__(65);
436 +module.exports = function (it) {
437 + return IObject(defined(it));
438 +};
439 +
440 +
441 +/***/ }),
442 +/* 21 */,
443 +/* 22 */
444 +/***/ (function(module, exports) {
445 +
446 +module.exports = function (exec) {
447 + try {
448 + return !!exec();
449 + } catch (e) {
450 + return true;
451 + }
452 +};
453 +
454 +
455 +/***/ }),
456 +/* 23 */
457 +/***/ (function(module, exports, __webpack_require__) {
458 +
459 +module.exports = __webpack_require__(201);
460 +
461 +/***/ }),
462 +/* 24 */
463 +/***/ (function(module, exports, __webpack_require__) {
464 +
465 +var dP = __webpack_require__(15);
466 +var createDesc = __webpack_require__(44);
467 +module.exports = __webpack_require__(14) ? function (object, key, value) {
468 + return dP.f(object, key, createDesc(1, value));
469 +} : function (object, key, value) {
470 + object[key] = value;
471 + return object;
472 +};
473 +
474 +
475 +/***/ }),
476 +/* 25 */
477 +/***/ (function(module, exports, __webpack_require__) {
478 +
479 +var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
480 +
481 +var _Reflect$get = __webpack_require__(193);
482 +
483 +var superPropBase = __webpack_require__(196);
484 +
485 +function _get(target, property, receiver) {
486 + if (typeof Reflect !== "undefined" && _Reflect$get) {
487 + module.exports = _get = _Reflect$get;
488 + } else {
489 + module.exports = _get = function _get(target, property, receiver) {
490 + var base = superPropBase(target, property);
491 + if (!base) return;
492 +
493 + var desc = _Object$getOwnPropertyDescriptor(base, property);
494 +
495 + if (desc.get) {
496 + return desc.get.call(receiver);
497 + }
498 +
499 + return desc.value;
500 + };
501 + }
502 +
503 + return _get(target, property, receiver || target);
504 +}
505 +
506 +module.exports = _get;
507 +
508 +/***/ }),
509 +/* 26 */,
510 +/* 27 */
511 +/***/ (function(module, exports, __webpack_require__) {
512 +
513 +// Thank's IE8 for his funny defineProperty
514 +module.exports = !__webpack_require__(33)(function () {
515 + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
516 +});
517 +
518 +
519 +/***/ }),
520 +/* 28 */
521 +/***/ (function(module, exports, __webpack_require__) {
522 +
523 +var _Object$defineProperty = __webpack_require__(1);
524 +
525 +function _defineProperty(obj, key, value) {
526 + if (key in obj) {
527 + _Object$defineProperty(obj, key, {
528 + value: value,
529 + enumerable: true,
530 + configurable: true,
531 + writable: true
532 + });
533 + } else {
534 + obj[key] = value;
535 + }
536 +
537 + return obj;
538 +}
539 +
540 +module.exports = _defineProperty;
541 +
542 +/***/ }),
543 +/* 29 */
544 +/***/ (function(module, exports, __webpack_require__) {
545 +
546 +var dP = __webpack_require__(45);
547 +var createDesc = __webpack_require__(102);
548 +module.exports = __webpack_require__(27) ? function (object, key, value) {
549 + return dP.f(object, key, createDesc(1, value));
550 +} : function (object, key, value) {
551 + object[key] = value;
552 + return object;
553 +};
554 +
555 +
556 +/***/ }),
557 +/* 30 */
558 +/***/ (function(module, exports) {
559 +
560 +module.exports = function (it) {
561 + return typeof it === 'object' ? it !== null : typeof it === 'function';
562 +};
563 +
564 +
565 +/***/ }),
566 +/* 31 */
567 +/***/ (function(module, exports, __webpack_require__) {
568 +
569 +// optional / simple context binding
570 +var aFunction = __webpack_require__(38);
571 +module.exports = function (fn, that, length) {
572 + aFunction(fn);
573 + if (that === undefined) return fn;
574 + switch (length) {
575 + case 1: return function (a) {
576 + return fn.call(that, a);
577 + };
578 + case 2: return function (a, b) {
579 + return fn.call(that, a, b);
580 + };
581 + case 3: return function (a, b, c) {
582 + return fn.call(that, a, b, c);
583 + };
584 + }
585 + return function (/* ...args */) {
586 + return fn.apply(that, arguments);
587 + };
588 +};
589 +
590 +
591 +/***/ }),
592 +/* 32 */
593 +/***/ (function(module, exports, __webpack_require__) {
594 +
595 +// 7.1.13 ToObject(argument)
596 +var defined = __webpack_require__(65);
597 +module.exports = function (it) {
598 + return Object(defined(it));
599 +};
600 +
601 +
602 +/***/ }),
603 +/* 33 */
604 +/***/ (function(module, exports) {
605 +
606 +module.exports = function (exec) {
607 + try {
608 + return !!exec();
609 + } catch (e) {
610 + return true;
611 + }
612 +};
613 +
614 +
615 +/***/ }),
616 +/* 34 */
617 +/***/ (function(module, exports) {
618 +
619 +module.exports = {};
620 +
621 +
622 +/***/ }),
623 +/* 35 */
624 +/***/ (function(module, exports, __webpack_require__) {
625 +
626 +var global = __webpack_require__(17);
627 +var hide = __webpack_require__(29);
628 +var has = __webpack_require__(61);
629 +var SRC = __webpack_require__(67)('src');
630 +var $toString = __webpack_require__(143);
631 +var TO_STRING = 'toString';
632 +var TPL = ('' + $toString).split(TO_STRING);
633 +
634 +__webpack_require__(55).inspectSource = function (it) {
635 + return $toString.call(it);
636 +};
637 +
638 +(module.exports = function (O, key, val, safe) {
639 + var isFunction = typeof val == 'function';
640 + if (isFunction) has(val, 'name') || hide(val, 'name', key);
641 + if (O[key] === val) return;
642 + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
643 + if (O === global) {
644 + O[key] = val;
645 + } else if (!safe) {
646 + delete O[key];
647 + hide(O, key, val);
648 + } else if (O[key]) {
649 + O[key] = val;
650 + } else {
651 + hide(O, key, val);
652 + }
653 +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
654 +})(Function.prototype, TO_STRING, function toString() {
655 + return typeof this == 'function' && this[SRC] || $toString.call(this);
656 +});
657 +
658 +
659 +/***/ }),
660 +/* 36 */
661 +/***/ (function(module, exports, __webpack_require__) {
662 +
663 +var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
664 +
665 +var _Object$defineProperty = __webpack_require__(1);
666 +
667 +var _typeof = __webpack_require__(48);
668 +
669 +var _WeakMap = __webpack_require__(263);
670 +
671 +function _getRequireWildcardCache() {
672 + if (typeof _WeakMap !== "function") return null;
673 + var cache = new _WeakMap();
674 +
675 + _getRequireWildcardCache = function _getRequireWildcardCache() {
676 + return cache;
677 + };
678 +
679 + return cache;
680 +}
681 +
682 +function _interopRequireWildcard(obj) {
683 + if (obj && obj.__esModule) {
684 + return obj;
685 + }
686 +
687 + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
688 + return {
689 + "default": obj
690 + };
691 + }
692 +
693 + var cache = _getRequireWildcardCache();
694 +
695 + if (cache && cache.has(obj)) {
696 + return cache.get(obj);
697 + }
698 +
699 + var newObj = {};
700 + var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
701 +
702 + for (var key in obj) {
703 + if (Object.prototype.hasOwnProperty.call(obj, key)) {
704 + var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
705 +
706 + if (desc && (desc.get || desc.set)) {
707 + _Object$defineProperty(newObj, key, desc);
708 + } else {
709 + newObj[key] = obj[key];
710 + }
711 + }
712 + }
713 +
714 + newObj["default"] = obj;
715 +
716 + if (cache) {
717 + cache.set(obj, newObj);
718 + }
719 +
720 + return newObj;
721 +}
722 +
723 +module.exports = _interopRequireWildcard;
724 +
725 +/***/ }),
726 +/* 37 */
727 +/***/ (function(module, exports, __webpack_require__) {
728 +
729 +var global = __webpack_require__(17);
730 +var core = __webpack_require__(55);
731 +var hide = __webpack_require__(29);
732 +var redefine = __webpack_require__(35);
733 +var ctx = __webpack_require__(73);
734 +var PROTOTYPE = 'prototype';
735 +
736 +var $export = function (type, name, source) {
737 + var IS_FORCED = type & $export.F;
738 + var IS_GLOBAL = type & $export.G;
739 + var IS_STATIC = type & $export.S;
740 + var IS_PROTO = type & $export.P;
741 + var IS_BIND = type & $export.B;
742 + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
743 + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
744 + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
745 + var key, own, out, exp;
746 + if (IS_GLOBAL) source = name;
747 + for (key in source) {
748 + // contains in native
749 + own = !IS_FORCED && target && target[key] !== undefined;
750 + // export native or passed
751 + out = (own ? target : source)[key];
752 + // bind timers to global for call from export context
753 + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
754 + // extend global
755 + if (target) redefine(target, key, out, type & $export.U);
756 + // export
757 + if (exports[key] != out) hide(exports, key, exp);
758 + if (IS_PROTO && expProto[key] != out) expProto[key] = out;
759 + }
760 +};
761 +global.core = core;
762 +// type bitmap
763 +$export.F = 1; // forced
764 +$export.G = 2; // global
765 +$export.S = 4; // static
766 +$export.P = 8; // proto
767 +$export.B = 16; // bind
768 +$export.W = 32; // wrap
769 +$export.U = 64; // safe
770 +$export.R = 128; // real proto method for `library`
771 +module.exports = $export;
772 +
773 +
774 +/***/ }),
775 +/* 38 */
776 +/***/ (function(module, exports) {
777 +
778 +module.exports = function (it) {
779 + if (typeof it != 'function') throw TypeError(it + ' is not a function!');
780 + return it;
781 +};
782 +
783 +
784 +/***/ }),
785 +/* 39 */,
786 +/* 40 */
787 +/***/ (function(module, exports, __webpack_require__) {
788 +
789 +// 19.1.2.14 / 15.2.3.14 Object.keys(O)
790 +var $keys = __webpack_require__(116);
791 +var enumBugKeys = __webpack_require__(78);
792 +
793 +module.exports = Object.keys || function keys(O) {
794 + return $keys(O, enumBugKeys);
795 +};
796 +
797 +
798 +/***/ }),
799 +/* 41 */
800 +/***/ (function(module, exports, __webpack_require__) {
801 +
337 802 /**
338 - * Copyright (c) 2013-present, Facebook, Inc.
339 - *
340 - * This source code is licensed under the MIT license found in the
341 - * LICENSE file in the root directory of this source tree.
342 - */
343 - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
344 - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
345 - module.exports = ReactPropTypesSecret;
346 - }));
803 + * Copyright (c) 2013-present, Facebook, Inc.
804 + *
805 + * This source code is licensed under the MIT license found in the
806 + * LICENSE file in the root directory of this source tree.
807 + */
347 808
348 -//#endregion
349 -//#region node_modules/prop-types/lib/has.js
350 - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
351 - module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
352 - }));
809 +if (false) { var throwOnDirectAccess, ReactIs; } else {
810 + // By explicitly using `prop-types` you are opting into new production behavior.
811 + // http://fb.me/prop-types-in-prod
812 + module.exports = __webpack_require__(325)();
813 +}
353 814
354 -//#endregion
355 -//#region node_modules/prop-types/checkPropTypes.js
815 +
816 +/***/ }),
817 +/* 42 */
818 +/***/ (function(module, exports) {
819 +
820 +// 7.2.1 RequireObjectCoercible(argument)
821 +module.exports = function (it) {
822 + if (it == undefined) throw TypeError("Can't call method on " + it);
823 + return it;
824 +};
825 +
826 +
827 +/***/ }),
828 +/* 43 */
829 +/***/ (function(module, exports, __webpack_require__) {
830 +
831 +// 7.1.15 ToLength
832 +var toInteger = __webpack_require__(57);
833 +var min = Math.min;
834 +module.exports = function (it) {
835 + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
836 +};
837 +
838 +
839 +/***/ }),
840 +/* 44 */
841 +/***/ (function(module, exports) {
842 +
843 +module.exports = function (bitmap, value) {
844 + return {
845 + enumerable: !(bitmap & 1),
846 + configurable: !(bitmap & 2),
847 + writable: !(bitmap & 4),
848 + value: value
849 + };
850 +};
851 +
852 +
853 +/***/ }),
854 +/* 45 */
855 +/***/ (function(module, exports, __webpack_require__) {
856 +
857 +var anObject = __webpack_require__(18);
858 +var IE8_DOM_DEFINE = __webpack_require__(129);
859 +var toPrimitive = __webpack_require__(123);
860 +var dP = Object.defineProperty;
861 +
862 +exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
863 + anObject(O);
864 + P = toPrimitive(P, true);
865 + anObject(Attributes);
866 + if (IE8_DOM_DEFINE) try {
867 + return dP(O, P, Attributes);
868 + } catch (e) { /* empty */ }
869 + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
870 + if ('value' in Attributes) O[P] = Attributes.value;
871 + return O;
872 +};
873 +
874 +
875 +/***/ }),
876 +/* 46 */
877 +/***/ (function(module, exports) {
878 +
879 +var toString = {}.toString;
880 +
881 +module.exports = function (it) {
882 + return toString.call(it).slice(8, -1);
883 +};
884 +
885 +
886 +/***/ }),
887 +/* 47 */
888 +/***/ (function(module, exports) {
889 +
890 +module.exports = true;
891 +
892 +
893 +/***/ }),
894 +/* 48 */
895 +/***/ (function(module, exports, __webpack_require__) {
896 +
897 +var _Symbol$iterator = __webpack_require__(151);
898 +
899 +var _Symbol = __webpack_require__(111);
900 +
901 +function _typeof(obj) {
902 + "@babel/helpers - typeof";
903 +
904 + if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
905 + module.exports = _typeof = function _typeof(obj) {
906 + return typeof obj;
907 + };
908 + } else {
909 + module.exports = _typeof = function _typeof(obj) {
910 + return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
911 + };
912 + }
913 +
914 + return _typeof(obj);
915 +}
916 +
917 +module.exports = _typeof;
918 +
919 +/***/ }),
920 +/* 49 */
921 +/***/ (function(module, exports) {
922 +
923 +function _assertThisInitialized(self) {
924 + if (self === void 0) {
925 + throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
926 + }
927 +
928 + return self;
929 +}
930 +
931 +module.exports = _assertThisInitialized;
932 +
933 +/***/ }),
934 +/* 50 */
935 +/***/ (function(module, exports) {
936 +
937 +exports.f = {}.propertyIsEnumerable;
938 +
939 +
940 +/***/ }),
941 +/* 51 */
942 +/***/ (function(module, exports, __webpack_require__) {
943 +
944 +var pIE = __webpack_require__(50);
945 +var createDesc = __webpack_require__(44);
946 +var toIObject = __webpack_require__(20);
947 +var toPrimitive = __webpack_require__(74);
948 +var has = __webpack_require__(19);
949 +var IE8_DOM_DEFINE = __webpack_require__(114);
950 +var gOPD = Object.getOwnPropertyDescriptor;
951 +
952 +exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) {
953 + O = toIObject(O);
954 + P = toPrimitive(P, true);
955 + if (IE8_DOM_DEFINE) try {
956 + return gOPD(O, P);
957 + } catch (e) { /* empty */ }
958 + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
959 +};
960 +
961 +
962 +/***/ }),
963 +/* 52 */
964 +/***/ (function(module, exports, __webpack_require__) {
965 +
966 +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
967 +var anObject = __webpack_require__(13);
968 +var dPs = __webpack_require__(134);
969 +var enumBugKeys = __webpack_require__(78);
970 +var IE_PROTO = __webpack_require__(75)('IE_PROTO');
971 +var Empty = function () { /* empty */ };
972 +var PROTOTYPE = 'prototype';
973 +
974 +// Create object with fake `null` prototype: use iframe Object with cleared prototype
975 +var createDict = function () {
976 + // Thrash, waste and sodomy: IE GC bug
977 + var iframe = __webpack_require__(92)('iframe');
978 + var i = enumBugKeys.length;
979 + var lt = '<';
980 + var gt = '>';
981 + var iframeDocument;
982 + iframe.style.display = 'none';
983 + __webpack_require__(131).appendChild(iframe);
984 + iframe.src = 'javascript:'; // eslint-disable-line no-script-url
985 + // createDict = iframe.contentWindow.Object;
986 + // html.removeChild(iframe);
987 + iframeDocument = iframe.contentWindow.document;
988 + iframeDocument.open();
989 + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
990 + iframeDocument.close();
991 + createDict = iframeDocument.F;
992 + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
993 + return createDict();
994 +};
995 +
996 +module.exports = Object.create || function create(O, Properties) {
997 + var result;
998 + if (O !== null) {
999 + Empty[PROTOTYPE] = anObject(O);
1000 + result = new Empty();
1001 + Empty[PROTOTYPE] = null;
1002 + // add "__proto__" for Object.getPrototypeOf polyfill
1003 + result[IE_PROTO] = O;
1004 + } else result = createDict();
1005 + return Properties === undefined ? result : dPs(result, Properties);
1006 +};
1007 +
1008 +
1009 +/***/ }),
1010 +/* 53 */
1011 +/***/ (function(module, exports, __webpack_require__) {
1012 +
1013 +var def = __webpack_require__(15).f;
1014 +var has = __webpack_require__(19);
1015 +var TAG = __webpack_require__(10)('toStringTag');
1016 +
1017 +module.exports = function (it, tag, stat) {
1018 + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1019 +};
1020 +
1021 +
1022 +/***/ }),
1023 +/* 54 */,
1024 +/* 55 */
1025 +/***/ (function(module, exports) {
1026 +
1027 +var core = module.exports = { version: '2.6.11' };
1028 +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1029 +
1030 +
1031 +/***/ }),
1032 +/* 56 */
1033 +/***/ (function(module, exports) {
1034 +
1035 +var toString = {}.toString;
1036 +
1037 +module.exports = function (it) {
1038 + return toString.call(it).slice(8, -1);
1039 +};
1040 +
1041 +
1042 +/***/ }),
1043 +/* 57 */
1044 +/***/ (function(module, exports) {
1045 +
1046 +// 7.1.4 ToInteger
1047 +var ceil = Math.ceil;
1048 +var floor = Math.floor;
1049 +module.exports = function (it) {
1050 + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1051 +};
1052 +
1053 +
1054 +/***/ }),
1055 +/* 58 */
1056 +/***/ (function(module, exports, __webpack_require__) {
1057 +
1058 +"use strict";
1059 +
1060 +
1061 +var anObject = __webpack_require__(18);
1062 +var toObject = __webpack_require__(96);
1063 +var toLength = __webpack_require__(43);
1064 +var toInteger = __webpack_require__(57);
1065 +var advanceStringIndex = __webpack_require__(105);
1066 +var regExpExec = __webpack_require__(94);
1067 +var max = Math.max;
1068 +var min = Math.min;
1069 +var floor = Math.floor;
1070 +var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1071 +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1072 +
1073 +var maybeToString = function (it) {
1074 + return it === undefined ? it : String(it);
1075 +};
1076 +
1077 +// @@replace logic
1078 +__webpack_require__(95)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1079 + return [
1080 + // `String.prototype.replace` method
1081 + // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1082 + function replace(searchValue, replaceValue) {
1083 + var O = defined(this);
1084 + var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1085 + return fn !== undefined
1086 + ? fn.call(searchValue, O, replaceValue)
1087 + : $replace.call(String(O), searchValue, replaceValue);
1088 + },
1089 + // `RegExp.prototype[@@replace]` method
1090 + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1091 + function (regexp, replaceValue) {
1092 + var res = maybeCallNative($replace, regexp, this, replaceValue);
1093 + if (res.done) return res.value;
1094 +
1095 + var rx = anObject(regexp);
1096 + var S = String(this);
1097 + var functionalReplace = typeof replaceValue === 'function';
1098 + if (!functionalReplace) replaceValue = String(replaceValue);
1099 + var global = rx.global;
1100 + if (global) {
1101 + var fullUnicode = rx.unicode;
1102 + rx.lastIndex = 0;
1103 + }
1104 + var results = [];
1105 + while (true) {
1106 + var result = regExpExec(rx, S);
1107 + if (result === null) break;
1108 + results.push(result);
1109 + if (!global) break;
1110 + var matchStr = String(result[0]);
1111 + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1112 + }
1113 + var accumulatedResult = '';
1114 + var nextSourcePosition = 0;
1115 + for (var i = 0; i < results.length; i++) {
1116 + result = results[i];
1117 + var matched = String(result[0]);
1118 + var position = max(min(toInteger(result.index), S.length), 0);
1119 + var captures = [];
1120 + // NOTE: This is equivalent to
1121 + // captures = result.slice(1).map(maybeToString)
1122 + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1123 + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1124 + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1125 + for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1126 + var namedCaptures = result.groups;
1127 + if (functionalReplace) {
1128 + var replacerArgs = [matched].concat(captures, position, S);
1129 + if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1130 + var replacement = String(replaceValue.apply(undefined, replacerArgs));
1131 + } else {
1132 + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1133 + }
1134 + if (position >= nextSourcePosition) {
1135 + accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1136 + nextSourcePosition = position + matched.length;
1137 + }
1138 + }
1139 + return accumulatedResult + S.slice(nextSourcePosition);
1140 + }
1141 + ];
1142 +
1143 + // https://tc39.github.io/ecma262/#sec-getsubstitution
1144 + function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1145 + var tailPos = position + matched.length;
1146 + var m = captures.length;
1147 + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1148 + if (namedCaptures !== undefined) {
1149 + namedCaptures = toObject(namedCaptures);
1150 + symbols = SUBSTITUTION_SYMBOLS;
1151 + }
1152 + return $replace.call(replacement, symbols, function (match, ch) {
1153 + var capture;
1154 + switch (ch.charAt(0)) {
1155 + case '$': return '$';
1156 + case '&': return matched;
1157 + case '`': return str.slice(0, position);
1158 + case "'": return str.slice(tailPos);
1159 + case '<':
1160 + capture = namedCaptures[ch.slice(1, -1)];
1161 + break;
1162 + default: // \d\d?
1163 + var n = +ch;
1164 + if (n === 0) return match;
1165 + if (n > m) {
1166 + var f = floor(n / 10);
1167 + if (f === 0) return match;
1168 + if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1169 + return match;
1170 + }
1171 + capture = captures[n - 1];
1172 + }
1173 + return capture === undefined ? '' : capture;
1174 + });
1175 + }
1176 +});
1177 +
1178 +
1179 +/***/ }),
1180 +/* 59 */
1181 +/***/ (function(module, exports) {
1182 +
1183 +var id = 0;
1184 +var px = Math.random();
1185 +module.exports = function (key) {
1186 + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1187 +};
1188 +
1189 +
1190 +/***/ }),
1191 +/* 60 */
1192 +/***/ (function(module, exports, __webpack_require__) {
1193 +
1194 +"use strict";
1195 +
1196 +var $at = __webpack_require__(172)(true);
1197 +
1198 +// 21.1.3.27 String.prototype[@@iterator]()
1199 +__webpack_require__(108)(String, 'String', function (iterated) {
1200 + this._t = String(iterated); // target
1201 + this._i = 0; // next index
1202 +// 21.1.5.2.1 %StringIteratorPrototype%.next()
1203 +}, function () {
1204 + var O = this._t;
1205 + var index = this._i;
1206 + var point;
1207 + if (index >= O.length) return { value: undefined, done: true };
1208 + point = $at(O, index);
1209 + this._i += point.length;
1210 + return { value: point, done: false };
1211 +});
1212 +
1213 +
1214 +/***/ }),
1215 +/* 61 */
1216 +/***/ (function(module, exports) {
1217 +
1218 +var hasOwnProperty = {}.hasOwnProperty;
1219 +module.exports = function (it, key) {
1220 + return hasOwnProperty.call(it, key);
1221 +};
1222 +
1223 +
1224 +/***/ }),
1225 +/* 62 */
1226 +/***/ (function(module, exports, __webpack_require__) {
1227 +
1228 +__webpack_require__(174);
1229 +var global = __webpack_require__(8);
1230 +var hide = __webpack_require__(24);
1231 +var Iterators = __webpack_require__(34);
1232 +var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
1233 +
1234 +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
1235 + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
1236 + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
1237 + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
1238 + 'TextTrackList,TouchList').split(',');
1239 +
1240 +for (var i = 0; i < DOMIterables.length; i++) {
1241 + var NAME = DOMIterables[i];
1242 + var Collection = global[NAME];
1243 + var proto = Collection && Collection.prototype;
1244 + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1245 + Iterators[NAME] = Iterators.Array;
1246 +}
1247 +
1248 +
1249 +/***/ }),
1250 +/* 63 */
1251 +/***/ (function(module, exports, __webpack_require__) {
1252 +
1253 +exports.f = __webpack_require__(10);
1254 +
1255 +
1256 +/***/ }),
1257 +/* 64 */
1258 +/***/ (function(module, exports, __webpack_require__) {
1259 +
1260 +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1261 +var has = __webpack_require__(19);
1262 +var toObject = __webpack_require__(32);
1263 +var IE_PROTO = __webpack_require__(75)('IE_PROTO');
1264 +var ObjectProto = Object.prototype;
1265 +
1266 +module.exports = Object.getPrototypeOf || function (O) {
1267 + O = toObject(O);
1268 + if (has(O, IE_PROTO)) return O[IE_PROTO];
1269 + if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1270 + return O.constructor.prototype;
1271 + } return O instanceof Object ? ObjectProto : null;
1272 +};
1273 +
1274 +
1275 +/***/ }),
1276 +/* 65 */
1277 +/***/ (function(module, exports) {
1278 +
1279 +// 7.2.1 RequireObjectCoercible(argument)
1280 +module.exports = function (it) {
1281 + if (it == undefined) throw TypeError("Can't call method on " + it);
1282 + return it;
1283 +};
1284 +
1285 +
1286 +/***/ }),
1287 +/* 66 */
1288 +/***/ (function(module, exports, __webpack_require__) {
1289 +
1290 +var core = __webpack_require__(55);
1291 +var global = __webpack_require__(17);
1292 +var SHARED = '__core-js_shared__';
1293 +var store = global[SHARED] || (global[SHARED] = {});
1294 +
1295 +(module.exports = function (key, value) {
1296 + return store[key] || (store[key] = value !== undefined ? value : {});
1297 +})('versions', []).push({
1298 + version: core.version,
1299 + mode: __webpack_require__(110) ? 'pure' : 'global',
1300 + copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1301 +});
1302 +
1303 +
1304 +/***/ }),
1305 +/* 67 */
1306 +/***/ (function(module, exports) {
1307 +
1308 +var id = 0;
1309 +var px = Math.random();
1310 +module.exports = function (key) {
1311 + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1312 +};
1313 +
1314 +
1315 +/***/ }),
1316 +/* 68 */
1317 +/***/ (function(module, exports, __webpack_require__) {
1318 +
1319 +// 7.1.15 ToLength
1320 +var toInteger = __webpack_require__(77);
1321 +var min = Math.min;
1322 +module.exports = function (it) {
1323 + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1324 +};
1325 +
1326 +
1327 +/***/ }),
1328 +/* 69 */,
1329 +/* 70 */
1330 +/***/ (function(module, exports, __webpack_require__) {
1331 +
1332 +var META = __webpack_require__(59)('meta');
1333 +var isObject = __webpack_require__(9);
1334 +var has = __webpack_require__(19);
1335 +var setDesc = __webpack_require__(15).f;
1336 +var id = 0;
1337 +var isExtensible = Object.isExtensible || function () {
1338 + return true;
1339 +};
1340 +var FREEZE = !__webpack_require__(22)(function () {
1341 + return isExtensible(Object.preventExtensions({}));
1342 +});
1343 +var setMeta = function (it) {
1344 + setDesc(it, META, { value: {
1345 + i: 'O' + ++id, // object ID
1346 + w: {} // weak collections IDs
1347 + } });
1348 +};
1349 +var fastKey = function (it, create) {
1350 + // return primitive with prefix
1351 + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1352 + if (!has(it, META)) {
1353 + // can't set metadata to uncaught frozen object
1354 + if (!isExtensible(it)) return 'F';
1355 + // not necessary to add metadata
1356 + if (!create) return 'E';
1357 + // add missing metadata
1358 + setMeta(it);
1359 + // return object ID
1360 + } return it[META].i;
1361 +};
1362 +var getWeak = function (it, create) {
1363 + if (!has(it, META)) {
1364 + // can't set metadata to uncaught frozen object
1365 + if (!isExtensible(it)) return true;
1366 + // not necessary to add metadata
1367 + if (!create) return false;
1368 + // add missing metadata
1369 + setMeta(it);
1370 + // return hash weak collections IDs
1371 + } return it[META].w;
1372 +};
1373 +// add metadata on freeze-family methods calling
1374 +var onFreeze = function (it) {
1375 + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
1376 + return it;
1377 +};
1378 +var meta = module.exports = {
1379 + KEY: META,
1380 + NEED: false,
1381 + fastKey: fastKey,
1382 + getWeak: getWeak,
1383 + onFreeze: onFreeze
1384 +};
1385 +
1386 +
1387 +/***/ }),
1388 +/* 71 */
1389 +/***/ (function(module, exports) {
1390 +
1391 +exports.f = Object.getOwnPropertySymbols;
1392 +
1393 +
1394 +/***/ }),
1395 +/* 72 */,
1396 +/* 73 */
1397 +/***/ (function(module, exports, __webpack_require__) {
1398 +
1399 +// optional / simple context binding
1400 +var aFunction = __webpack_require__(91);
1401 +module.exports = function (fn, that, length) {
1402 + aFunction(fn);
1403 + if (that === undefined) return fn;
1404 + switch (length) {
1405 + case 1: return function (a) {
1406 + return fn.call(that, a);
1407 + };
1408 + case 2: return function (a, b) {
1409 + return fn.call(that, a, b);
1410 + };
1411 + case 3: return function (a, b, c) {
1412 + return fn.call(that, a, b, c);
1413 + };
1414 + }
1415 + return function (/* ...args */) {
1416 + return fn.apply(that, arguments);
1417 + };
1418 +};
1419 +
1420 +
1421 +/***/ }),
1422 +/* 74 */
1423 +/***/ (function(module, exports, __webpack_require__) {
1424 +
1425 +// 7.1.1 ToPrimitive(input [, PreferredType])
1426 +var isObject = __webpack_require__(9);
1427 +// instead of the ES6 spec version, we didn't implement @@toPrimitive case
1428 +// and the second argument - flag - preferred type is a string
1429 +module.exports = function (it, S) {
1430 + if (!isObject(it)) return it;
1431 + var fn, val;
1432 + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
1433 + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
1434 + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
1435 + throw TypeError("Can't convert object to primitive value");
1436 +};
1437 +
1438 +
1439 +/***/ }),
1440 +/* 75 */
1441 +/***/ (function(module, exports, __webpack_require__) {
1442 +
1443 +var shared = __webpack_require__(76)('keys');
1444 +var uid = __webpack_require__(59);
1445 +module.exports = function (key) {
1446 + return shared[key] || (shared[key] = uid(key));
1447 +};
1448 +
1449 +
1450 +/***/ }),
1451 +/* 76 */
1452 +/***/ (function(module, exports, __webpack_require__) {
1453 +
1454 +var core = __webpack_require__(6);
1455 +var global = __webpack_require__(8);
1456 +var SHARED = '__core-js_shared__';
1457 +var store = global[SHARED] || (global[SHARED] = {});
1458 +
1459 +(module.exports = function (key, value) {
1460 + return store[key] || (store[key] = value !== undefined ? value : {});
1461 +})('versions', []).push({
1462 + version: core.version,
1463 + mode: __webpack_require__(47) ? 'pure' : 'global',
1464 + copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1465 +});
1466 +
1467 +
1468 +/***/ }),
1469 +/* 77 */
1470 +/***/ (function(module, exports) {
1471 +
1472 +// 7.1.4 ToInteger
1473 +var ceil = Math.ceil;
1474 +var floor = Math.floor;
1475 +module.exports = function (it) {
1476 + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1477 +};
1478 +
1479 +
1480 +/***/ }),
1481 +/* 78 */
1482 +/***/ (function(module, exports) {
1483 +
1484 +// IE 8- don't enum bug keys
1485 +module.exports = (
1486 + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1487 +).split(',');
1488 +
1489 +
1490 +/***/ }),
1491 +/* 79 */
1492 +/***/ (function(module, exports, __webpack_require__) {
1493 +
1494 +var global = __webpack_require__(8);
1495 +var core = __webpack_require__(6);
1496 +var LIBRARY = __webpack_require__(47);
1497 +var wksExt = __webpack_require__(63);
1498 +var defineProperty = __webpack_require__(15).f;
1499 +module.exports = function (name) {
1500 + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
1501 + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
1502 +};
1503 +
1504 +
1505 +/***/ }),
1506 +/* 80 */
1507 +/***/ (function(module, exports, __webpack_require__) {
1508 +
1509 +"use strict";
1510 +
1511 +
1512 +var isRegExp = __webpack_require__(122);
1513 +var anObject = __webpack_require__(18);
1514 +var speciesConstructor = __webpack_require__(154);
1515 +var advanceStringIndex = __webpack_require__(105);
1516 +var toLength = __webpack_require__(43);
1517 +var callRegExpExec = __webpack_require__(94);
1518 +var regexpExec = __webpack_require__(88);
1519 +var fails = __webpack_require__(33);
1520 +var $min = Math.min;
1521 +var $push = [].push;
1522 +var $SPLIT = 'split';
1523 +var LENGTH = 'length';
1524 +var LAST_INDEX = 'lastIndex';
1525 +var MAX_UINT32 = 0xffffffff;
1526 +
1527 +// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1528 +var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
1529 +
1530 +// @@split logic
1531 +__webpack_require__(95)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
1532 + var internalSplit;
1533 + if (
1534 + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
1535 + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
1536 + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
1537 + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
1538 + '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
1539 + ''[$SPLIT](/.?/)[LENGTH]
1540 + ) {
1541 + // based on es5-shim implementation, need to rework it
1542 + internalSplit = function (separator, limit) {
1543 + var string = String(this);
1544 + if (separator === undefined && limit === 0) return [];
1545 + // If `separator` is not a regex, use native split
1546 + if (!isRegExp(separator)) return $split.call(string, separator, limit);
1547 + var output = [];
1548 + var flags = (separator.ignoreCase ? 'i' : '') +
1549 + (separator.multiline ? 'm' : '') +
1550 + (separator.unicode ? 'u' : '') +
1551 + (separator.sticky ? 'y' : '');
1552 + var lastLastIndex = 0;
1553 + var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
1554 + // Make `global` and avoid `lastIndex` issues by working with a copy
1555 + var separatorCopy = new RegExp(separator.source, flags + 'g');
1556 + var match, lastIndex, lastLength;
1557 + while (match = regexpExec.call(separatorCopy, string)) {
1558 + lastIndex = separatorCopy[LAST_INDEX];
1559 + if (lastIndex > lastLastIndex) {
1560 + output.push(string.slice(lastLastIndex, match.index));
1561 + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
1562 + lastLength = match[0][LENGTH];
1563 + lastLastIndex = lastIndex;
1564 + if (output[LENGTH] >= splitLimit) break;
1565 + }
1566 + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
1567 + }
1568 + if (lastLastIndex === string[LENGTH]) {
1569 + if (lastLength || !separatorCopy.test('')) output.push('');
1570 + } else output.push(string.slice(lastLastIndex));
1571 + return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
1572 + };
1573 + // Chakra, V8
1574 + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
1575 + internalSplit = function (separator, limit) {
1576 + return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
1577 + };
1578 + } else {
1579 + internalSplit = $split;
1580 + }
1581 +
1582 + return [
1583 + // `String.prototype.split` method
1584 + // https://tc39.github.io/ecma262/#sec-string.prototype.split
1585 + function split(separator, limit) {
1586 + var O = defined(this);
1587 + var splitter = separator == undefined ? undefined : separator[SPLIT];
1588 + return splitter !== undefined
1589 + ? splitter.call(separator, O, limit)
1590 + : internalSplit.call(String(O), separator, limit);
1591 + },
1592 + // `RegExp.prototype[@@split]` method
1593 + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
1594 + //
1595 + // NOTE: This cannot be properly polyfilled in engines that don't support
1596 + // the 'y' flag.
1597 + function (regexp, limit) {
1598 + var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
1599 + if (res.done) return res.value;
1600 +
1601 + var rx = anObject(regexp);
1602 + var S = String(this);
1603 + var C = speciesConstructor(rx, RegExp);
1604 +
1605 + var unicodeMatching = rx.unicode;
1606 + var flags = (rx.ignoreCase ? 'i' : '') +
1607 + (rx.multiline ? 'm' : '') +
1608 + (rx.unicode ? 'u' : '') +
1609 + (SUPPORTS_Y ? 'y' : 'g');
1610 +
1611 + // ^(? + rx + ) is needed, in combination with some S slicing, to
1612 + // simulate the 'y' flag.
1613 + var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
1614 + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1615 + if (lim === 0) return [];
1616 + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
1617 + var p = 0;
1618 + var q = 0;
1619 + var A = [];
1620 + while (q < S.length) {
1621 + splitter.lastIndex = SUPPORTS_Y ? q : 0;
1622 + var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
1623 + var e;
1624 + if (
1625 + z === null ||
1626 + (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
1627 + ) {
1628 + q = advanceStringIndex(S, q, unicodeMatching);
1629 + } else {
1630 + A.push(S.slice(p, q));
1631 + if (A.length === lim) return A;
1632 + for (var i = 1; i <= z.length - 1; i++) {
1633 + A.push(z[i]);
1634 + if (A.length === lim) return A;
1635 + }
1636 + q = p = e;
1637 + }
1638 + }
1639 + A.push(S.slice(p));
1640 + return A;
1641 + }
1642 + ];
1643 +});
1644 +
1645 +
1646 +/***/ }),
1647 +/* 81 */
1648 +/***/ (function(module, exports, __webpack_require__) {
1649 +
1650 +module.exports = __webpack_require__(220);
1651 +
1652 +/***/ }),
1653 +/* 82 */,
1654 +/* 83 */
1655 +/***/ (function(module, exports, __webpack_require__) {
1656 +
1657 +// most Object methods by ES6 should accept primitives
1658 +var $export = __webpack_require__(7);
1659 +var core = __webpack_require__(6);
1660 +var fails = __webpack_require__(22);
1661 +module.exports = function (KEY, exec) {
1662 + var fn = (core.Object || {})[KEY] || Object[KEY];
1663 + var exp = {};
1664 + exp[KEY] = exec(fn);
1665 + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
1666 +};
1667 +
1668 +
1669 +/***/ }),
1670 +/* 84 */,
1671 +/* 85 */
1672 +/***/ (function(module, exports, __webpack_require__) {
1673 +
1674 +// 22.1.3.31 Array.prototype[@@unscopables]
1675 +var UNSCOPABLES = __webpack_require__(12)('unscopables');
1676 +var ArrayProto = Array.prototype;
1677 +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {});
1678 +module.exports = function (key) {
1679 + ArrayProto[UNSCOPABLES][key] = true;
1680 +};
1681 +
1682 +
1683 +/***/ }),
1684 +/* 86 */
1685 +/***/ (function(module, exports, __webpack_require__) {
1686 +
1687 +var ctx = __webpack_require__(31);
1688 +var call = __webpack_require__(139);
1689 +var isArrayIter = __webpack_require__(140);
1690 +var anObject = __webpack_require__(13);
1691 +var toLength = __webpack_require__(68);
1692 +var getIterFn = __webpack_require__(112);
1693 +var BREAK = {};
1694 +var RETURN = {};
1695 +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
1696 + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
1697 + var f = ctx(fn, that, entries ? 2 : 1);
1698 + var index = 0;
1699 + var length, step, iterator, result;
1700 + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
1701 + // fast case for arrays with default iterator
1702 + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
1703 + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
1704 + if (result === BREAK || result === RETURN) return result;
1705 + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
1706 + result = call(iterator, f, step.value, entries);
1707 + if (result === BREAK || result === RETURN) return result;
1708 + }
1709 +};
1710 +exports.BREAK = BREAK;
1711 +exports.RETURN = RETURN;
1712 +
1713 +
1714 +/***/ }),
1715 +/* 87 */,
1716 +/* 88 */
1717 +/***/ (function(module, exports, __webpack_require__) {
1718 +
1719 +"use strict";
1720 +
1721 +
1722 +var regexpFlags = __webpack_require__(106);
1723 +
1724 +var nativeExec = RegExp.prototype.exec;
1725 +// This always refers to the native implementation, because the
1726 +// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1727 +// which loads this file before patching the method.
1728 +var nativeReplace = String.prototype.replace;
1729 +
1730 +var patchedExec = nativeExec;
1731 +
1732 +var LAST_INDEX = 'lastIndex';
1733 +
1734 +var UPDATES_LAST_INDEX_WRONG = (function () {
1735 + var re1 = /a/,
1736 + re2 = /b*/g;
1737 + nativeExec.call(re1, 'a');
1738 + nativeExec.call(re2, 'a');
1739 + return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
1740 +})();
1741 +
1742 +// nonparticipating capturing group, copied from es5-shim's String#split patch.
1743 +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1744 +
1745 +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
1746 +
1747 +if (PATCH) {
1748 + patchedExec = function exec(str) {
1749 + var re = this;
1750 + var lastIndex, reCopy, match, i;
1751 +
1752 + if (NPCG_INCLUDED) {
1753 + reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
1754 + }
1755 + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
1756 +
1757 + match = nativeExec.call(re, str);
1758 +
1759 + if (UPDATES_LAST_INDEX_WRONG && match) {
1760 + re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
1761 + }
1762 + if (NPCG_INCLUDED && match && match.length > 1) {
1763 + // Fix browsers whose `exec` methods don't consistently return `undefined`
1764 + // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1765 + // eslint-disable-next-line no-loop-func
1766 + nativeReplace.call(match[0], reCopy, function () {
1767 + for (i = 1; i < arguments.length - 2; i++) {
1768 + if (arguments[i] === undefined) match[i] = undefined;
1769 + }
1770 + });
1771 + }
1772 +
1773 + return match;
1774 + };
1775 +}
1776 +
1777 +module.exports = patchedExec;
1778 +
1779 +
1780 +/***/ }),
1781 +/* 89 */,
1782 +/* 90 */,
1783 +/* 91 */
1784 +/***/ (function(module, exports) {
1785 +
1786 +module.exports = function (it) {
1787 + if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1788 + return it;
1789 +};
1790 +
1791 +
1792 +/***/ }),
1793 +/* 92 */
1794 +/***/ (function(module, exports, __webpack_require__) {
1795 +
1796 +var isObject = __webpack_require__(9);
1797 +var document = __webpack_require__(8).document;
1798 +// typeof document.createElement is 'object' in old IE
1799 +var is = isObject(document) && isObject(document.createElement);
1800 +module.exports = function (it) {
1801 + return is ? document.createElement(it) : {};
1802 +};
1803 +
1804 +
1805 +/***/ }),
1806 +/* 93 */
1807 +/***/ (function(module, exports, __webpack_require__) {
1808 +
1809 +module.exports = __webpack_require__(24);
1810 +
1811 +
1812 +/***/ }),
1813 +/* 94 */
1814 +/***/ (function(module, exports, __webpack_require__) {
1815 +
1816 +"use strict";
1817 +
1818 +
1819 +var classof = __webpack_require__(113);
1820 +var builtinExec = RegExp.prototype.exec;
1821 +
1822 + // `RegExpExec` abstract operation
1823 +// https://tc39.github.io/ecma262/#sec-regexpexec
1824 +module.exports = function (R, S) {
1825 + var exec = R.exec;
1826 + if (typeof exec === 'function') {
1827 + var result = exec.call(R, S);
1828 + if (typeof result !== 'object') {
1829 + throw new TypeError('RegExp exec method returned something other than an Object or null');
1830 + }
1831 + return result;
1832 + }
1833 + if (classof(R) !== 'RegExp') {
1834 + throw new TypeError('RegExp#exec called on incompatible receiver');
1835 + }
1836 + return builtinExec.call(R, S);
1837 +};
1838 +
1839 +
1840 +/***/ }),
1841 +/* 95 */
1842 +/***/ (function(module, exports, __webpack_require__) {
1843 +
1844 +"use strict";
1845 +
1846 +__webpack_require__(190);
1847 +var redefine = __webpack_require__(35);
1848 +var hide = __webpack_require__(29);
1849 +var fails = __webpack_require__(33);
1850 +var defined = __webpack_require__(42);
1851 +var wks = __webpack_require__(12);
1852 +var regexpExec = __webpack_require__(88);
1853 +
1854 +var SPECIES = wks('species');
1855 +
1856 +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1857 + // #replace needs built-in support for named groups.
1858 + // #match works fine because it just return the exec results, even if it has
1859 + // a "grops" property.
1860 + var re = /./;
1861 + re.exec = function () {
1862 + var result = [];
1863 + result.groups = { a: '7' };
1864 + return result;
1865 + };
1866 + return ''.replace(re, '$<a>') !== '7';
1867 +});
1868 +
1869 +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
1870 + // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1871 + var re = /(?:)/;
1872 + var originalExec = re.exec;
1873 + re.exec = function () { return originalExec.apply(this, arguments); };
1874 + var result = 'ab'.split(re);
1875 + return result.length === 2 && result[0] === 'a' && result[1] === 'b';
1876 +})();
1877 +
1878 +module.exports = function (KEY, length, exec) {
1879 + var SYMBOL = wks(KEY);
1880 +
1881 + var DELEGATES_TO_SYMBOL = !fails(function () {
1882 + // String methods call symbol-named RegEp methods
1883 + var O = {};
1884 + O[SYMBOL] = function () { return 7; };
1885 + return ''[KEY](O) != 7;
1886 + });
1887 +
1888 + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
1889 + // Symbol-named RegExp methods call .exec
1890 + var execCalled = false;
1891 + var re = /a/;
1892 + re.exec = function () { execCalled = true; return null; };
1893 + if (KEY === 'split') {
1894 + // RegExp[@@split] doesn't call the regex's exec method, but first creates
1895 + // a new one. We need to return the patched regex when creating the new one.
1896 + re.constructor = {};
1897 + re.constructor[SPECIES] = function () { return re; };
1898 + }
1899 + re[SYMBOL]('');
1900 + return !execCalled;
1901 + }) : undefined;
1902 +
1903 + if (
1904 + !DELEGATES_TO_SYMBOL ||
1905 + !DELEGATES_TO_EXEC ||
1906 + (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
1907 + (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1908 + ) {
1909 + var nativeRegExpMethod = /./[SYMBOL];
1910 + var fns = exec(
1911 + defined,
1912 + SYMBOL,
1913 + ''[KEY],
1914 + function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
1915 + if (regexp.exec === regexpExec) {
1916 + if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1917 + // The native String method already delegates to @@method (this
1918 + // polyfilled function), leasing to infinite recursion.
1919 + // We avoid it by directly calling the native @@method method.
1920 + return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1921 + }
1922 + return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1923 + }
1924 + return { done: false };
1925 + }
1926 + );
1927 + var strfn = fns[0];
1928 + var rxfn = fns[1];
1929 +
1930 + redefine(String.prototype, KEY, strfn);
1931 + hide(RegExp.prototype, SYMBOL, length == 2
1932 + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1933 + // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1934 + ? function (string, arg) { return rxfn.call(string, this, arg); }
1935 + // 21.2.5.6 RegExp.prototype[@@match](string)
1936 + // 21.2.5.9 RegExp.prototype[@@search](string)
1937 + : function (string) { return rxfn.call(string, this); }
1938 + );
1939 + }
1940 +};
1941 +
1942 +
1943 +/***/ }),
1944 +/* 96 */
1945 +/***/ (function(module, exports, __webpack_require__) {
1946 +
1947 +// 7.1.13 ToObject(argument)
1948 +var defined = __webpack_require__(42);
1949 +module.exports = function (it) {
1950 + return Object(defined(it));
1951 +};
1952 +
1953 +
1954 +/***/ }),
1955 +/* 97 */
1956 +/***/ (function(module, exports, __webpack_require__) {
1957 +
1958 +// 7.2.2 IsArray(argument)
1959 +var cof = __webpack_require__(56);
1960 +module.exports = Array.isArray || function isArray(arg) {
1961 + return cof(arg) == 'Array';
1962 +};
1963 +
1964 +
1965 +/***/ }),
1966 +/* 98 */
1967 +/***/ (function(module, exports, __webpack_require__) {
1968 +
1969 +// to indexed object, toObject with fallback for non-array-like ES3 strings
1970 +var IObject = __webpack_require__(120);
1971 +var defined = __webpack_require__(42);
1972 +module.exports = function (it) {
1973 + return IObject(defined(it));
1974 +};
1975 +
1976 +
1977 +/***/ }),
1978 +/* 99 */
1979 +/***/ (function(module, exports, __webpack_require__) {
1980 +
1981 +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
1982 +var $keys = __webpack_require__(116);
1983 +var hiddenKeys = __webpack_require__(78).concat('length', 'prototype');
1984 +
1985 +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1986 + return $keys(O, hiddenKeys);
1987 +};
1988 +
1989 +
1990 +/***/ }),
1991 +/* 100 */
1992 +/***/ (function(module, exports) {
1993 +
1994 +
1995 +
1996 +/***/ }),
1997 +/* 101 */
1998 +/***/ (function(module, exports, __webpack_require__) {
1999 +
2000 +// getting tag from 19.1.3.6 Object.prototype.toString()
2001 +var cof = __webpack_require__(56);
2002 +var TAG = __webpack_require__(10)('toStringTag');
2003 +// ES3 wrong here
2004 +var ARG = cof(function () { return arguments; }()) == 'Arguments';
2005 +
2006 +// fallback for IE11 Script Access Denied error
2007 +var tryGet = function (it, key) {
2008 + try {
2009 + return it[key];
2010 + } catch (e) { /* empty */ }
2011 +};
2012 +
2013 +module.exports = function (it) {
2014 + var O, T, B;
2015 + return it === undefined ? 'Undefined' : it === null ? 'Null'
2016 + // @@toStringTag case
2017 + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
2018 + // builtinTag case
2019 + : ARG ? cof(O)
2020 + // ES3 arguments fallback
2021 + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
2022 +};
2023 +
2024 +
2025 +/***/ }),
2026 +/* 102 */
2027 +/***/ (function(module, exports) {
2028 +
2029 +module.exports = function (bitmap, value) {
2030 + return {
2031 + enumerable: !(bitmap & 1),
2032 + configurable: !(bitmap & 2),
2033 + writable: !(bitmap & 4),
2034 + value: value
2035 + };
2036 +};
2037 +
2038 +
2039 +/***/ }),
2040 +/* 103 */
2041 +/***/ (function(module, exports, __webpack_require__) {
2042 +
2043 +// fallback for non-array-like ES3 and non-enumerable old V8 strings
2044 +var cof = __webpack_require__(56);
2045 +// eslint-disable-next-line no-prototype-builtins
2046 +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2047 + return cof(it) == 'String' ? it.split('') : Object(it);
2048 +};
2049 +
2050 +
2051 +/***/ }),
2052 +/* 104 */
2053 +/***/ (function(module, exports, __webpack_require__) {
2054 +
2055 +var arrayWithHoles = __webpack_require__(247);
2056 +
2057 +var iterableToArrayLimit = __webpack_require__(248);
2058 +
2059 +var unsupportedIterableToArray = __webpack_require__(186);
2060 +
2061 +var nonIterableRest = __webpack_require__(251);
2062 +
2063 +function _slicedToArray(arr, i) {
2064 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
2065 +}
2066 +
2067 +module.exports = _slicedToArray;
2068 +
2069 +/***/ }),
2070 +/* 105 */
2071 +/***/ (function(module, exports, __webpack_require__) {
2072 +
2073 +"use strict";
2074 +
2075 +var at = __webpack_require__(142)(true);
2076 +
2077 + // `AdvanceStringIndex` abstract operation
2078 +// https://tc39.github.io/ecma262/#sec-advancestringindex
2079 +module.exports = function (S, index, unicode) {
2080 + return index + (unicode ? at(S, index).length : 1);
2081 +};
2082 +
2083 +
2084 +/***/ }),
2085 +/* 106 */
2086 +/***/ (function(module, exports, __webpack_require__) {
2087 +
2088 +"use strict";
2089 +
2090 +// 21.2.5.3 get RegExp.prototype.flags
2091 +var anObject = __webpack_require__(18);
2092 +module.exports = function () {
2093 + var that = anObject(this);
2094 + var result = '';
2095 + if (that.global) result += 'g';
2096 + if (that.ignoreCase) result += 'i';
2097 + if (that.multiline) result += 'm';
2098 + if (that.unicode) result += 'u';
2099 + if (that.sticky) result += 'y';
2100 + return result;
2101 +};
2102 +
2103 +
2104 +/***/ }),
2105 +/* 107 */
2106 +/***/ (function(module, exports, __webpack_require__) {
2107 +
2108 +module.exports = __webpack_require__(167);
2109 +
2110 +/***/ }),
2111 +/* 108 */
2112 +/***/ (function(module, exports, __webpack_require__) {
2113 +
2114 +"use strict";
2115 +
2116 +var LIBRARY = __webpack_require__(47);
2117 +var $export = __webpack_require__(7);
2118 +var redefine = __webpack_require__(93);
2119 +var hide = __webpack_require__(24);
2120 +var Iterators = __webpack_require__(34);
2121 +var $iterCreate = __webpack_require__(173);
2122 +var setToStringTag = __webpack_require__(53);
2123 +var getPrototypeOf = __webpack_require__(64);
2124 +var ITERATOR = __webpack_require__(10)('iterator');
2125 +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
2126 +var FF_ITERATOR = '@@iterator';
2127 +var KEYS = 'keys';
2128 +var VALUES = 'values';
2129 +
2130 +var returnThis = function () { return this; };
2131 +
2132 +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
2133 + $iterCreate(Constructor, NAME, next);
2134 + var getMethod = function (kind) {
2135 + if (!BUGGY && kind in proto) return proto[kind];
2136 + switch (kind) {
2137 + case KEYS: return function keys() { return new Constructor(this, kind); };
2138 + case VALUES: return function values() { return new Constructor(this, kind); };
2139 + } return function entries() { return new Constructor(this, kind); };
2140 + };
2141 + var TAG = NAME + ' Iterator';
2142 + var DEF_VALUES = DEFAULT == VALUES;
2143 + var VALUES_BUG = false;
2144 + var proto = Base.prototype;
2145 + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
2146 + var $default = $native || getMethod(DEFAULT);
2147 + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
2148 + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
2149 + var methods, key, IteratorPrototype;
2150 + // Fix native
2151 + if ($anyNative) {
2152 + IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
2153 + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
2154 + // Set @@toStringTag to native iterators
2155 + setToStringTag(IteratorPrototype, TAG, true);
2156 + // fix for some old engines
2157 + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
2158 + }
2159 + }
2160 + // fix Array#{values, @@iterator}.name in V8 / FF
2161 + if (DEF_VALUES && $native && $native.name !== VALUES) {
2162 + VALUES_BUG = true;
2163 + $default = function values() { return $native.call(this); };
2164 + }
2165 + // Define iterator
2166 + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
2167 + hide(proto, ITERATOR, $default);
2168 + }
2169 + // Plug for library
2170 + Iterators[NAME] = $default;
2171 + Iterators[TAG] = returnThis;
2172 + if (DEFAULT) {
2173 + methods = {
2174 + values: DEF_VALUES ? $default : getMethod(VALUES),
2175 + keys: IS_SET ? $default : getMethod(KEYS),
2176 + entries: $entries
2177 + };
2178 + if (FORCED) for (key in methods) {
2179 + if (!(key in proto)) redefine(proto, key, methods[key]);
2180 + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
2181 + }
2182 + return methods;
2183 +};
2184 +
2185 +
2186 +/***/ }),
2187 +/* 109 */
2188 +/***/ (function(module, exports, __webpack_require__) {
2189 +
2190 +var isObject = __webpack_require__(30);
2191 +var document = __webpack_require__(17).document;
2192 +// typeof document.createElement is 'object' in old IE
2193 +var is = isObject(document) && isObject(document.createElement);
2194 +module.exports = function (it) {
2195 + return is ? document.createElement(it) : {};
2196 +};
2197 +
2198 +
2199 +/***/ }),
2200 +/* 110 */
2201 +/***/ (function(module, exports) {
2202 +
2203 +module.exports = false;
2204 +
2205 +
2206 +/***/ }),
2207 +/* 111 */
2208 +/***/ (function(module, exports, __webpack_require__) {
2209 +
2210 +module.exports = __webpack_require__(176);
2211 +
2212 +/***/ }),
2213 +/* 112 */
2214 +/***/ (function(module, exports, __webpack_require__) {
2215 +
2216 +var classof = __webpack_require__(101);
2217 +var ITERATOR = __webpack_require__(10)('iterator');
2218 +var Iterators = __webpack_require__(34);
2219 +module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
2220 + if (it != undefined) return it[ITERATOR]
2221 + || it['@@iterator']
2222 + || Iterators[classof(it)];
2223 +};
2224 +
2225 +
2226 +/***/ }),
2227 +/* 113 */
2228 +/***/ (function(module, exports, __webpack_require__) {
2229 +
2230 +// getting tag from 19.1.3.6 Object.prototype.toString()
2231 +var cof = __webpack_require__(46);
2232 +var TAG = __webpack_require__(12)('toStringTag');
2233 +// ES3 wrong here
2234 +var ARG = cof(function () { return arguments; }()) == 'Arguments';
2235 +
2236 +// fallback for IE11 Script Access Denied error
2237 +var tryGet = function (it, key) {
2238 + try {
2239 + return it[key];
2240 + } catch (e) { /* empty */ }
2241 +};
2242 +
2243 +module.exports = function (it) {
2244 + var O, T, B;
2245 + return it === undefined ? 'Undefined' : it === null ? 'Null'
2246 + // @@toStringTag case
2247 + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
2248 + // builtinTag case
2249 + : ARG ? cof(O)
2250 + // ES3 arguments fallback
2251 + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
2252 +};
2253 +
2254 +
2255 +/***/ }),
2256 +/* 114 */
2257 +/***/ (function(module, exports, __webpack_require__) {
2258 +
2259 +module.exports = !__webpack_require__(14) && !__webpack_require__(22)(function () {
2260 + return Object.defineProperty(__webpack_require__(92)('div'), 'a', { get: function () { return 7; } }).a != 7;
2261 +});
2262 +
2263 +
2264 +/***/ }),
2265 +/* 115 */
2266 +/***/ (function(module, exports, __webpack_require__) {
2267 +
2268 +module.exports = __webpack_require__(160);
2269 +
2270 +/***/ }),
2271 +/* 116 */
2272 +/***/ (function(module, exports, __webpack_require__) {
2273 +
2274 +var has = __webpack_require__(19);
2275 +var toIObject = __webpack_require__(20);
2276 +var arrayIndexOf = __webpack_require__(165)(false);
2277 +var IE_PROTO = __webpack_require__(75)('IE_PROTO');
2278 +
2279 +module.exports = function (object, names) {
2280 + var O = toIObject(object);
2281 + var i = 0;
2282 + var result = [];
2283 + var key;
2284 + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
2285 + // Don't enum bug & hidden keys
2286 + while (names.length > i) if (has(O, key = names[i++])) {
2287 + ~arrayIndexOf(result, key) || result.push(key);
2288 + }
2289 + return result;
2290 +};
2291 +
2292 +
2293 +/***/ }),
2294 +/* 117 */,
2295 +/* 118 */,
2296 +/* 119 */
2297 +/***/ (function(module, exports, __webpack_require__) {
2298 +
2299 +"use strict";
2300 +
2301 +
2302 +var anObject = __webpack_require__(18);
2303 +var toLength = __webpack_require__(43);
2304 +var advanceStringIndex = __webpack_require__(105);
2305 +var regExpExec = __webpack_require__(94);
2306 +
2307 +// @@match logic
2308 +__webpack_require__(95)('match', 1, function (defined, MATCH, $match, maybeCallNative) {
2309 + return [
2310 + // `String.prototype.match` method
2311 + // https://tc39.github.io/ecma262/#sec-string.prototype.match
2312 + function match(regexp) {
2313 + var O = defined(this);
2314 + var fn = regexp == undefined ? undefined : regexp[MATCH];
2315 + return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
2316 + },
2317 + // `RegExp.prototype[@@match]` method
2318 + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
2319 + function (regexp) {
2320 + var res = maybeCallNative($match, regexp, this);
2321 + if (res.done) return res.value;
2322 + var rx = anObject(regexp);
2323 + var S = String(this);
2324 + if (!rx.global) return regExpExec(rx, S);
2325 + var fullUnicode = rx.unicode;
2326 + rx.lastIndex = 0;
2327 + var A = [];
2328 + var n = 0;
2329 + var result;
2330 + while ((result = regExpExec(rx, S)) !== null) {
2331 + var matchStr = String(result[0]);
2332 + A[n] = matchStr;
2333 + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2334 + n++;
2335 + }
2336 + return n === 0 ? null : A;
2337 + }
2338 + ];
2339 +});
2340 +
2341 +
2342 +/***/ }),
2343 +/* 120 */
2344 +/***/ (function(module, exports, __webpack_require__) {
2345 +
2346 +// fallback for non-array-like ES3 and non-enumerable old V8 strings
2347 +var cof = __webpack_require__(46);
2348 +// eslint-disable-next-line no-prototype-builtins
2349 +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2350 + return cof(it) == 'String' ? it.split('') : Object(it);
2351 +};
2352 +
2353 +
2354 +/***/ }),
2355 +/* 121 */
2356 +/***/ (function(module, exports, __webpack_require__) {
2357 +
2358 +var isObject = __webpack_require__(9);
2359 +module.exports = function (it, TYPE) {
2360 + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
2361 + return it;
2362 +};
2363 +
2364 +
2365 +/***/ }),
2366 +/* 122 */
2367 +/***/ (function(module, exports, __webpack_require__) {
2368 +
2369 +// 7.2.8 IsRegExp(argument)
2370 +var isObject = __webpack_require__(30);
2371 +var cof = __webpack_require__(46);
2372 +var MATCH = __webpack_require__(12)('match');
2373 +module.exports = function (it) {
2374 + var isRegExp;
2375 + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
2376 +};
2377 +
2378 +
2379 +/***/ }),
2380 +/* 123 */
2381 +/***/ (function(module, exports, __webpack_require__) {
2382 +
2383 +// 7.1.1 ToPrimitive(input [, PreferredType])
2384 +var isObject = __webpack_require__(30);
2385 +// instead of the ES6 spec version, we didn't implement @@toPrimitive case
2386 +// and the second argument - flag - preferred type is a string
2387 +module.exports = function (it, S) {
2388 + if (!isObject(it)) return it;
2389 + var fn, val;
2390 + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2391 + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2392 + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2393 + throw TypeError("Can't convert object to primitive value");
2394 +};
2395 +
2396 +
2397 +/***/ }),
2398 +/* 124 */
2399 +/***/ (function(module, exports, __webpack_require__) {
2400 +
2401 +module.exports = __webpack_require__(191);
2402 +
2403 +/***/ }),
2404 +/* 125 */
2405 +/***/ (function(module, exports) {
2406 +
2407 +module.exports = function (it, Constructor, name, forbiddenField) {
2408 + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
2409 + throw TypeError(name + ': incorrect invocation!');
2410 + } return it;
2411 +};
2412 +
2413 +
2414 +/***/ }),
2415 +/* 126 */
2416 +/***/ (function(module, exports, __webpack_require__) {
2417 +
2418 +var hide = __webpack_require__(24);
2419 +module.exports = function (target, src, safe) {
2420 + for (var key in src) {
2421 + if (safe && target[key]) target[key] = src[key];
2422 + else hide(target, key, src[key]);
2423 + } return target;
2424 +};
2425 +
2426 +
2427 +/***/ }),
2428 +/* 127 */,
2429 +/* 128 */,
2430 +/* 129 */
2431 +/***/ (function(module, exports, __webpack_require__) {
2432 +
2433 +module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () {
2434 + return Object.defineProperty(__webpack_require__(109)('div'), 'a', { get: function () { return 7; } }).a != 7;
2435 +});
2436 +
2437 +
2438 +/***/ }),
2439 +/* 130 */,
2440 +/* 131 */
2441 +/***/ (function(module, exports, __webpack_require__) {
2442 +
2443 +var document = __webpack_require__(8).document;
2444 +module.exports = document && document.documentElement;
2445 +
2446 +
2447 +/***/ }),
2448 +/* 132 */
2449 +/***/ (function(module, exports) {
2450 +
2451 +// fast apply, http://jsperf.lnkit.com/fast-apply/5
2452 +module.exports = function (fn, args, that) {
2453 + var un = that === undefined;
2454 + switch (args.length) {
2455 + case 0: return un ? fn()
2456 + : fn.call(that);
2457 + case 1: return un ? fn(args[0])
2458 + : fn.call(that, args[0]);
2459 + case 2: return un ? fn(args[0], args[1])
2460 + : fn.call(that, args[0], args[1]);
2461 + case 3: return un ? fn(args[0], args[1], args[2])
2462 + : fn.call(that, args[0], args[1], args[2]);
2463 + case 4: return un ? fn(args[0], args[1], args[2], args[3])
2464 + : fn.call(that, args[0], args[1], args[2], args[3]);
2465 + } return fn.apply(that, args);
2466 +};
2467 +
2468 +
2469 +/***/ }),
2470 +/* 133 */,
2471 +/* 134 */
2472 +/***/ (function(module, exports, __webpack_require__) {
2473 +
2474 +var dP = __webpack_require__(15);
2475 +var anObject = __webpack_require__(13);
2476 +var getKeys = __webpack_require__(40);
2477 +
2478 +module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
2479 + anObject(O);
2480 + var keys = getKeys(Properties);
2481 + var length = keys.length;
2482 + var i = 0;
2483 + var P;
2484 + while (length > i) dP.f(O, P = keys[i++], Properties[P]);
2485 + return O;
2486 +};
2487 +
2488 +
2489 +/***/ }),
2490 +/* 135 */
2491 +/***/ (function(module, exports, __webpack_require__) {
2492 +
2493 +var _Object$setPrototypeOf = __webpack_require__(115);
2494 +
2495 +function _setPrototypeOf(o, p) {
2496 + module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
2497 + o.__proto__ = p;
2498 + return o;
2499 + };
2500 +
2501 + return _setPrototypeOf(o, p);
2502 +}
2503 +
2504 +module.exports = _setPrototypeOf;
2505 +
2506 +/***/ }),
2507 +/* 136 */
2508 +/***/ (function(module, exports, __webpack_require__) {
2509 +
2510 +// 0 -> Array#forEach
2511 +// 1 -> Array#map
2512 +// 2 -> Array#filter
2513 +// 3 -> Array#some
2514 +// 4 -> Array#every
2515 +// 5 -> Array#find
2516 +// 6 -> Array#findIndex
2517 +var ctx = __webpack_require__(31);
2518 +var IObject = __webpack_require__(103);
2519 +var toObject = __webpack_require__(32);
2520 +var toLength = __webpack_require__(68);
2521 +var asc = __webpack_require__(245);
2522 +module.exports = function (TYPE, $create) {
2523 + var IS_MAP = TYPE == 1;
2524 + var IS_FILTER = TYPE == 2;
2525 + var IS_SOME = TYPE == 3;
2526 + var IS_EVERY = TYPE == 4;
2527 + var IS_FIND_INDEX = TYPE == 6;
2528 + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2529 + var create = $create || asc;
2530 + return function ($this, callbackfn, that) {
2531 + var O = toObject($this);
2532 + var self = IObject(O);
2533 + var f = ctx(callbackfn, that, 3);
2534 + var length = toLength(self.length);
2535 + var index = 0;
2536 + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
2537 + var val, res;
2538 + for (;length > index; index++) if (NO_HOLES || index in self) {
2539 + val = self[index];
2540 + res = f(val, index, O);
2541 + if (TYPE) {
2542 + if (IS_MAP) result[index] = res; // map
2543 + else if (res) switch (TYPE) {
2544 + case 3: return true; // some
2545 + case 5: return val; // find
2546 + case 6: return index; // findIndex
2547 + case 2: result.push(val); // filter
2548 + } else if (IS_EVERY) return false; // every
2549 + }
2550 + }
2551 + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
2552 + };
2553 +};
2554 +
2555 +
2556 +/***/ }),
2557 +/* 137 */
2558 +/***/ (function(module, exports, __webpack_require__) {
2559 +
2560 +module.exports = __webpack_require__(163);
2561 +
2562 +/***/ }),
2563 +/* 138 */
2564 +/***/ (function(module, exports, __webpack_require__) {
2565 +
2566 +"use strict";
2567 +
2568 +// ECMAScript 6 symbols shim
2569 +var global = __webpack_require__(8);
2570 +var has = __webpack_require__(19);
2571 +var DESCRIPTORS = __webpack_require__(14);
2572 +var $export = __webpack_require__(7);
2573 +var redefine = __webpack_require__(93);
2574 +var META = __webpack_require__(70).KEY;
2575 +var $fails = __webpack_require__(22);
2576 +var shared = __webpack_require__(76);
2577 +var setToStringTag = __webpack_require__(53);
2578 +var uid = __webpack_require__(59);
2579 +var wks = __webpack_require__(10);
2580 +var wksExt = __webpack_require__(63);
2581 +var wksDefine = __webpack_require__(79);
2582 +var enumKeys = __webpack_require__(177);
2583 +var isArray = __webpack_require__(97);
2584 +var anObject = __webpack_require__(13);
2585 +var isObject = __webpack_require__(9);
2586 +var toObject = __webpack_require__(32);
2587 +var toIObject = __webpack_require__(20);
2588 +var toPrimitive = __webpack_require__(74);
2589 +var createDesc = __webpack_require__(44);
2590 +var _create = __webpack_require__(52);
2591 +var gOPNExt = __webpack_require__(178);
2592 +var $GOPD = __webpack_require__(51);
2593 +var $GOPS = __webpack_require__(71);
2594 +var $DP = __webpack_require__(15);
2595 +var $keys = __webpack_require__(40);
2596 +var gOPD = $GOPD.f;
2597 +var dP = $DP.f;
2598 +var gOPN = gOPNExt.f;
2599 +var $Symbol = global.Symbol;
2600 +var $JSON = global.JSON;
2601 +var _stringify = $JSON && $JSON.stringify;
2602 +var PROTOTYPE = 'prototype';
2603 +var HIDDEN = wks('_hidden');
2604 +var TO_PRIMITIVE = wks('toPrimitive');
2605 +var isEnum = {}.propertyIsEnumerable;
2606 +var SymbolRegistry = shared('symbol-registry');
2607 +var AllSymbols = shared('symbols');
2608 +var OPSymbols = shared('op-symbols');
2609 +var ObjectProto = Object[PROTOTYPE];
2610 +var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
2611 +var QObject = global.QObject;
2612 +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
2613 +var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
2614 +
2615 +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
2616 +var setSymbolDesc = DESCRIPTORS && $fails(function () {
2617 + return _create(dP({}, 'a', {
2618 + get: function () { return dP(this, 'a', { value: 7 }).a; }
2619 + })).a != 7;
2620 +}) ? function (it, key, D) {
2621 + var protoDesc = gOPD(ObjectProto, key);
2622 + if (protoDesc) delete ObjectProto[key];
2623 + dP(it, key, D);
2624 + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
2625 +} : dP;
2626 +
2627 +var wrap = function (tag) {
2628 + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
2629 + sym._k = tag;
2630 + return sym;
2631 +};
2632 +
2633 +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
2634 + return typeof it == 'symbol';
2635 +} : function (it) {
2636 + return it instanceof $Symbol;
2637 +};
2638 +
2639 +var $defineProperty = function defineProperty(it, key, D) {
2640 + if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
2641 + anObject(it);
2642 + key = toPrimitive(key, true);
2643 + anObject(D);
2644 + if (has(AllSymbols, key)) {
2645 + if (!D.enumerable) {
2646 + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
2647 + it[HIDDEN][key] = true;
2648 + } else {
2649 + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
2650 + D = _create(D, { enumerable: createDesc(0, false) });
2651 + } return setSymbolDesc(it, key, D);
2652 + } return dP(it, key, D);
2653 +};
2654 +var $defineProperties = function defineProperties(it, P) {
2655 + anObject(it);
2656 + var keys = enumKeys(P = toIObject(P));
2657 + var i = 0;
2658 + var l = keys.length;
2659 + var key;
2660 + while (l > i) $defineProperty(it, key = keys[i++], P[key]);
2661 + return it;
2662 +};
2663 +var $create = function create(it, P) {
2664 + return P === undefined ? _create(it) : $defineProperties(_create(it), P);
2665 +};
2666 +var $propertyIsEnumerable = function propertyIsEnumerable(key) {
2667 + var E = isEnum.call(this, key = toPrimitive(key, true));
2668 + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
2669 + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
2670 +};
2671 +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
2672 + it = toIObject(it);
2673 + key = toPrimitive(key, true);
2674 + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
2675 + var D = gOPD(it, key);
2676 + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
2677 + return D;
2678 +};
2679 +var $getOwnPropertyNames = function getOwnPropertyNames(it) {
2680 + var names = gOPN(toIObject(it));
2681 + var result = [];
2682 + var i = 0;
2683 + var key;
2684 + while (names.length > i) {
2685 + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
2686 + } return result;
2687 +};
2688 +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
2689 + var IS_OP = it === ObjectProto;
2690 + var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
2691 + var result = [];
2692 + var i = 0;
2693 + var key;
2694 + while (names.length > i) {
2695 + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
2696 + } return result;
2697 +};
2698 +
2699 +// 19.4.1.1 Symbol([description])
2700 +if (!USE_NATIVE) {
2701 + $Symbol = function Symbol() {
2702 + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
2703 + var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
2704 + var $set = function (value) {
2705 + if (this === ObjectProto) $set.call(OPSymbols, value);
2706 + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2707 + setSymbolDesc(this, tag, createDesc(1, value));
2708 + };
2709 + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
2710 + return wrap(tag);
2711 + };
2712 + redefine($Symbol[PROTOTYPE], 'toString', function toString() {
2713 + return this._k;
2714 + });
2715 +
2716 + $GOPD.f = $getOwnPropertyDescriptor;
2717 + $DP.f = $defineProperty;
2718 + __webpack_require__(99).f = gOPNExt.f = $getOwnPropertyNames;
2719 + __webpack_require__(50).f = $propertyIsEnumerable;
2720 + $GOPS.f = $getOwnPropertySymbols;
2721 +
2722 + if (DESCRIPTORS && !__webpack_require__(47)) {
2723 + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
2724 + }
2725 +
2726 + wksExt.f = function (name) {
2727 + return wrap(wks(name));
2728 + };
2729 +}
2730 +
2731 +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
2732 +
2733 +for (var es6Symbols = (
2734 + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
2735 + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
2736 +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
2737 +
2738 +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
2739 +
2740 +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
2741 + // 19.4.2.1 Symbol.for(key)
2742 + 'for': function (key) {
2743 + return has(SymbolRegistry, key += '')
2744 + ? SymbolRegistry[key]
2745 + : SymbolRegistry[key] = $Symbol(key);
2746 + },
2747 + // 19.4.2.5 Symbol.keyFor(sym)
2748 + keyFor: function keyFor(sym) {
2749 + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
2750 + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
2751 + },
2752 + useSetter: function () { setter = true; },
2753 + useSimple: function () { setter = false; }
2754 +});
2755 +
2756 +$export($export.S + $export.F * !USE_NATIVE, 'Object', {
2757 + // 19.1.2.2 Object.create(O [, Properties])
2758 + create: $create,
2759 + // 19.1.2.4 Object.defineProperty(O, P, Attributes)
2760 + defineProperty: $defineProperty,
2761 + // 19.1.2.3 Object.defineProperties(O, Properties)
2762 + defineProperties: $defineProperties,
2763 + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
2764 + getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
2765 + // 19.1.2.7 Object.getOwnPropertyNames(O)
2766 + getOwnPropertyNames: $getOwnPropertyNames,
2767 + // 19.1.2.8 Object.getOwnPropertySymbols(O)
2768 + getOwnPropertySymbols: $getOwnPropertySymbols
2769 +});
2770 +
2771 +// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
2772 +// https://bugs.chromium.org/p/v8/issues/detail?id=3443
2773 +var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
2774 +
2775 +$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
2776 + getOwnPropertySymbols: function getOwnPropertySymbols(it) {
2777 + return $GOPS.f(toObject(it));
2778 + }
2779 +});
2780 +
2781 +// 24.3.2 JSON.stringify(value [, replacer [, space]])
2782 +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
2783 + var S = $Symbol();
2784 + // MS Edge converts symbol values to JSON as {}
2785 + // WebKit converts symbol values to JSON as null
2786 + // V8 throws on boxed symbols
2787 + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
2788 +})), 'JSON', {
2789 + stringify: function stringify(it) {
2790 + var args = [it];
2791 + var i = 1;
2792 + var replacer, $replacer;
2793 + while (arguments.length > i) args.push(arguments[i++]);
2794 + $replacer = replacer = args[1];
2795 + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
2796 + if (!isArray(replacer)) replacer = function (key, value) {
2797 + if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
2798 + if (!isSymbol(value)) return value;
2799 + };
2800 + args[1] = replacer;
2801 + return _stringify.apply($JSON, args);
2802 + }
2803 +});
2804 +
2805 +// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
2806 +$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
2807 +// 19.4.3.5 Symbol.prototype[@@toStringTag]
2808 +setToStringTag($Symbol, 'Symbol');
2809 +// 20.2.1.9 Math[@@toStringTag]
2810 +setToStringTag(Math, 'Math', true);
2811 +// 24.3.3 JSON[@@toStringTag]
2812 +setToStringTag(global.JSON, 'JSON', true);
2813 +
2814 +
2815 +/***/ }),
2816 +/* 139 */
2817 +/***/ (function(module, exports, __webpack_require__) {
2818 +
2819 +// call something on iterator step with safe closing on error
2820 +var anObject = __webpack_require__(13);
2821 +module.exports = function (iterator, fn, value, entries) {
2822 + try {
2823 + return entries ? fn(anObject(value)[0], value[1]) : fn(value);
2824 + // 7.4.6 IteratorClose(iterator, completion)
2825 + } catch (e) {
2826 + var ret = iterator['return'];
2827 + if (ret !== undefined) anObject(ret.call(iterator));
2828 + throw e;
2829 + }
2830 +};
2831 +
2832 +
2833 +/***/ }),
2834 +/* 140 */
2835 +/***/ (function(module, exports, __webpack_require__) {
2836 +
2837 +// check on default Array iterator
2838 +var Iterators = __webpack_require__(34);
2839 +var ITERATOR = __webpack_require__(10)('iterator');
2840 +var ArrayProto = Array.prototype;
2841 +
2842 +module.exports = function (it) {
2843 + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
2844 +};
2845 +
2846 +
2847 +/***/ }),
2848 +/* 141 */
2849 +/***/ (function(module, exports, __webpack_require__) {
2850 +
2851 +"use strict";
2852 +
2853 +// https://github.com/tc39/Array.prototype.includes
2854 +var $export = __webpack_require__(37);
2855 +var $includes = __webpack_require__(146)(true);
2856 +
2857 +$export($export.P, 'Array', {
2858 + includes: function includes(el /* , fromIndex = 0 */) {
2859 + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2860 + }
2861 +});
2862 +
2863 +__webpack_require__(85)('includes');
2864 +
2865 +
2866 +/***/ }),
2867 +/* 142 */
2868 +/***/ (function(module, exports, __webpack_require__) {
2869 +
2870 +var toInteger = __webpack_require__(57);
2871 +var defined = __webpack_require__(42);
2872 +// true -> String#at
2873 +// false -> String#codePointAt
2874 +module.exports = function (TO_STRING) {
2875 + return function (that, pos) {
2876 + var s = String(defined(that));
2877 + var i = toInteger(pos);
2878 + var l = s.length;
2879 + var a, b;
2880 + if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
2881 + a = s.charCodeAt(i);
2882 + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
2883 + ? TO_STRING ? s.charAt(i) : a
2884 + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
2885 + };
2886 +};
2887 +
2888 +
2889 +/***/ }),
2890 +/* 143 */
2891 +/***/ (function(module, exports, __webpack_require__) {
2892 +
2893 +module.exports = __webpack_require__(66)('native-function-to-string', Function.toString);
2894 +
2895 +
2896 +/***/ }),
2897 +/* 144 */,
2898 +/* 145 */,
2899 +/* 146 */
2900 +/***/ (function(module, exports, __webpack_require__) {
2901 +
2902 +// false -> Array#indexOf
2903 +// true -> Array#includes
2904 +var toIObject = __webpack_require__(98);
2905 +var toLength = __webpack_require__(43);
2906 +var toAbsoluteIndex = __webpack_require__(198);
2907 +module.exports = function (IS_INCLUDES) {
2908 + return function ($this, el, fromIndex) {
2909 + var O = toIObject($this);
2910 + var length = toLength(O.length);
2911 + var index = toAbsoluteIndex(fromIndex, length);
2912 + var value;
2913 + // Array#includes uses SameValueZero equality algorithm
2914 + // eslint-disable-next-line no-self-compare
2915 + if (IS_INCLUDES && el != el) while (length > index) {
2916 + value = O[index++];
2917 + // eslint-disable-next-line no-self-compare
2918 + if (value != value) return true;
2919 + // Array#indexOf ignores holes, Array#includes - not
2920 + } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
2921 + if (O[index] === el) return IS_INCLUDES || index || 0;
2922 + } return !IS_INCLUDES && -1;
2923 + };
2924 +};
2925 +
2926 +
2927 +/***/ }),
2928 +/* 147 */,
2929 +/* 148 */
2930 +/***/ (function(module, exports, __webpack_require__) {
2931 +
2932 +var _Reflect$construct = __webpack_require__(107);
2933 +
2934 +function _isNativeReflectConstruct() {
2935 + if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
2936 + if (_Reflect$construct.sham) return false;
2937 + if (typeof Proxy === "function") return true;
2938 +
2939 + try {
2940 + Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
2941 + return true;
2942 + } catch (e) {
2943 + return false;
2944 + }
2945 +}
2946 +
2947 +module.exports = _isNativeReflectConstruct;
2948 +
2949 +/***/ }),
2950 +/* 149 */
2951 +/***/ (function(module, exports) {
2952 +
2953 +module.exports = function (done, value) {
2954 + return { value: value, done: !!done };
2955 +};
2956 +
2957 +
2958 +/***/ }),
2959 +/* 150 */
2960 +/***/ (function(module, exports, __webpack_require__) {
2961 +
2962 +module.exports = __webpack_require__(287);
2963 +
2964 +/***/ }),
2965 +/* 151 */
2966 +/***/ (function(module, exports, __webpack_require__) {
2967 +
2968 +module.exports = __webpack_require__(171);
2969 +
2970 +/***/ }),
2971 +/* 152 */
2972 +/***/ (function(module, exports, __webpack_require__) {
2973 +
2974 +var ITERATOR = __webpack_require__(10)('iterator');
2975 +var SAFE_CLOSING = false;
2976 +
2977 +try {
2978 + var riter = [7][ITERATOR]();
2979 + riter['return'] = function () { SAFE_CLOSING = true; };
2980 + // eslint-disable-next-line no-throw-literal
2981 + Array.from(riter, function () { throw 2; });
2982 +} catch (e) { /* empty */ }
2983 +
2984 +module.exports = function (exec, skipClosing) {
2985 + if (!skipClosing && !SAFE_CLOSING) return false;
2986 + var safe = false;
2987 + try {
2988 + var arr = [7];
2989 + var iter = arr[ITERATOR]();
2990 + iter.next = function () { return { done: safe = true }; };
2991 + arr[ITERATOR] = function () { return iter; };
2992 + exec(arr);
2993 + } catch (e) { /* empty */ }
2994 + return safe;
2995 +};
2996 +
2997 +
2998 +/***/ }),
2999 +/* 153 */,
3000 +/* 154 */
3001 +/***/ (function(module, exports, __webpack_require__) {
3002 +
3003 +// 7.3.20 SpeciesConstructor(O, defaultConstructor)
3004 +var anObject = __webpack_require__(18);
3005 +var aFunction = __webpack_require__(91);
3006 +var SPECIES = __webpack_require__(12)('species');
3007 +module.exports = function (O, D) {
3008 + var C = anObject(O).constructor;
3009 + var S;
3010 + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
3011 +};
3012 +
3013 +
3014 +/***/ }),
3015 +/* 155 */
3016 +/***/ (function(module, exports, __webpack_require__) {
3017 +
3018 +__webpack_require__(156);
3019 +var $Object = __webpack_require__(6).Object;
3020 +module.exports = function defineProperty(it, key, desc) {
3021 + return $Object.defineProperty(it, key, desc);
3022 +};
3023 +
3024 +
3025 +/***/ }),
3026 +/* 156 */
3027 +/***/ (function(module, exports, __webpack_require__) {
3028 +
3029 +var $export = __webpack_require__(7);
3030 +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
3031 +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f });
3032 +
3033 +
3034 +/***/ }),
3035 +/* 157 */
3036 +/***/ (function(module, exports, __webpack_require__) {
3037 +
3038 +module.exports = __webpack_require__(158);
3039 +
3040 +/***/ }),
3041 +/* 158 */
3042 +/***/ (function(module, exports, __webpack_require__) {
3043 +
3044 +__webpack_require__(159);
3045 +module.exports = __webpack_require__(6).Object.getPrototypeOf;
3046 +
3047 +
3048 +/***/ }),
3049 +/* 159 */
3050 +/***/ (function(module, exports, __webpack_require__) {
3051 +
3052 +// 19.1.2.9 Object.getPrototypeOf(O)
3053 +var toObject = __webpack_require__(32);
3054 +var $getPrototypeOf = __webpack_require__(64);
3055 +
3056 +__webpack_require__(83)('getPrototypeOf', function () {
3057 + return function getPrototypeOf(it) {
3058 + return $getPrototypeOf(toObject(it));
3059 + };
3060 +});
3061 +
3062 +
3063 +/***/ }),
3064 +/* 160 */
3065 +/***/ (function(module, exports, __webpack_require__) {
3066 +
3067 +__webpack_require__(161);
3068 +module.exports = __webpack_require__(6).Object.setPrototypeOf;
3069 +
3070 +
3071 +/***/ }),
3072 +/* 161 */
3073 +/***/ (function(module, exports, __webpack_require__) {
3074 +
3075 +// 19.1.3.19 Object.setPrototypeOf(O, proto)
3076 +var $export = __webpack_require__(7);
3077 +$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(162).set });
3078 +
3079 +
3080 +/***/ }),
3081 +/* 162 */
3082 +/***/ (function(module, exports, __webpack_require__) {
3083 +
3084 +// Works with __proto__ only. Old v8 can't work with null proto objects.
3085 +/* eslint-disable no-proto */
3086 +var isObject = __webpack_require__(9);
3087 +var anObject = __webpack_require__(13);
3088 +var check = function (O, proto) {
3089 + anObject(O);
3090 + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
3091 +};
3092 +module.exports = {
3093 + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
3094 + function (test, buggy, set) {
3095 + try {
3096 + set = __webpack_require__(31)(Function.call, __webpack_require__(51).f(Object.prototype, '__proto__').set, 2);
3097 + set(test, []);
3098 + buggy = !(test instanceof Array);
3099 + } catch (e) { buggy = true; }
3100 + return function setPrototypeOf(O, proto) {
3101 + check(O, proto);
3102 + if (buggy) O.__proto__ = proto;
3103 + else set(O, proto);
3104 + return O;
3105 + };
3106 + }({}, false) : undefined),
3107 + check: check
3108 +};
3109 +
3110 +
3111 +/***/ }),
3112 +/* 163 */
3113 +/***/ (function(module, exports, __webpack_require__) {
3114 +
3115 +__webpack_require__(164);
3116 +var $Object = __webpack_require__(6).Object;
3117 +module.exports = function create(P, D) {
3118 + return $Object.create(P, D);
3119 +};
3120 +
3121 +
3122 +/***/ }),
3123 +/* 164 */
3124 +/***/ (function(module, exports, __webpack_require__) {
3125 +
3126 +var $export = __webpack_require__(7);
3127 +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
3128 +$export($export.S, 'Object', { create: __webpack_require__(52) });
3129 +
3130 +
3131 +/***/ }),
3132 +/* 165 */
3133 +/***/ (function(module, exports, __webpack_require__) {
3134 +
3135 +// false -> Array#indexOf
3136 +// true -> Array#includes
3137 +var toIObject = __webpack_require__(20);
3138 +var toLength = __webpack_require__(68);
3139 +var toAbsoluteIndex = __webpack_require__(166);
3140 +module.exports = function (IS_INCLUDES) {
3141 + return function ($this, el, fromIndex) {
3142 + var O = toIObject($this);
3143 + var length = toLength(O.length);
3144 + var index = toAbsoluteIndex(fromIndex, length);
3145 + var value;
3146 + // Array#includes uses SameValueZero equality algorithm
3147 + // eslint-disable-next-line no-self-compare
3148 + if (IS_INCLUDES && el != el) while (length > index) {
3149 + value = O[index++];
3150 + // eslint-disable-next-line no-self-compare
3151 + if (value != value) return true;
3152 + // Array#indexOf ignores holes, Array#includes - not
3153 + } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
3154 + if (O[index] === el) return IS_INCLUDES || index || 0;
3155 + } return !IS_INCLUDES && -1;
3156 + };
3157 +};
3158 +
3159 +
3160 +/***/ }),
3161 +/* 166 */
3162 +/***/ (function(module, exports, __webpack_require__) {
3163 +
3164 +var toInteger = __webpack_require__(77);
3165 +var max = Math.max;
3166 +var min = Math.min;
3167 +module.exports = function (index, length) {
3168 + index = toInteger(index);
3169 + return index < 0 ? max(index + length, 0) : min(index, length);
3170 +};
3171 +
3172 +
3173 +/***/ }),
3174 +/* 167 */
3175 +/***/ (function(module, exports, __webpack_require__) {
3176 +
3177 +__webpack_require__(168);
3178 +module.exports = __webpack_require__(6).Reflect.construct;
3179 +
3180 +
3181 +/***/ }),
3182 +/* 168 */
3183 +/***/ (function(module, exports, __webpack_require__) {
3184 +
3185 +// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
3186 +var $export = __webpack_require__(7);
3187 +var create = __webpack_require__(52);
3188 +var aFunction = __webpack_require__(38);
3189 +var anObject = __webpack_require__(13);
3190 +var isObject = __webpack_require__(9);
3191 +var fails = __webpack_require__(22);
3192 +var bind = __webpack_require__(169);
3193 +var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
3194 +
3195 +// MS Edge supports only 2 arguments and argumentsList argument is optional
3196 +// FF Nightly sets third argument as `new.target`, but does not create `this` from it
3197 +var NEW_TARGET_BUG = fails(function () {
3198 + function F() { /* empty */ }
3199 + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
3200 +});
3201 +var ARGS_BUG = !fails(function () {
3202 + rConstruct(function () { /* empty */ });
3203 +});
3204 +
3205 +$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
3206 + construct: function construct(Target, args /* , newTarget */) {
3207 + aFunction(Target);
3208 + anObject(args);
3209 + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
3210 + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
3211 + if (Target == newTarget) {
3212 + // w/o altered newTarget, optimization for 0-4 arguments
3213 + switch (args.length) {
3214 + case 0: return new Target();
3215 + case 1: return new Target(args[0]);
3216 + case 2: return new Target(args[0], args[1]);
3217 + case 3: return new Target(args[0], args[1], args[2]);
3218 + case 4: return new Target(args[0], args[1], args[2], args[3]);
3219 + }
3220 + // w/o altered newTarget, lot of arguments case
3221 + var $args = [null];
3222 + $args.push.apply($args, args);
3223 + return new (bind.apply(Target, $args))();
3224 + }
3225 + // with altered newTarget, not support built-in constructors
3226 + var proto = newTarget.prototype;
3227 + var instance = create(isObject(proto) ? proto : Object.prototype);
3228 + var result = Function.apply.call(Target, instance, args);
3229 + return isObject(result) ? result : instance;
3230 + }
3231 +});
3232 +
3233 +
3234 +/***/ }),
3235 +/* 169 */
3236 +/***/ (function(module, exports, __webpack_require__) {
3237 +
3238 +"use strict";
3239 +
3240 +var aFunction = __webpack_require__(38);
3241 +var isObject = __webpack_require__(9);
3242 +var invoke = __webpack_require__(132);
3243 +var arraySlice = [].slice;
3244 +var factories = {};
3245 +
3246 +var construct = function (F, len, args) {
3247 + if (!(len in factories)) {
3248 + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
3249 + // eslint-disable-next-line no-new-func
3250 + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
3251 + } return factories[len](F, args);
3252 +};
3253 +
3254 +module.exports = Function.bind || function bind(that /* , ...args */) {
3255 + var fn = aFunction(this);
3256 + var partArgs = arraySlice.call(arguments, 1);
3257 + var bound = function (/* args... */) {
3258 + var args = partArgs.concat(arraySlice.call(arguments));
3259 + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
3260 + };
3261 + if (isObject(fn.prototype)) bound.prototype = fn.prototype;
3262 + return bound;
3263 +};
3264 +
3265 +
3266 +/***/ }),
3267 +/* 170 */
3268 +/***/ (function(module, exports, __webpack_require__) {
3269 +
3270 +var _typeof = __webpack_require__(48);
3271 +
3272 +var assertThisInitialized = __webpack_require__(49);
3273 +
3274 +function _possibleConstructorReturn(self, call) {
3275 + if (call && (_typeof(call) === "object" || typeof call === "function")) {
3276 + return call;
3277 + }
3278 +
3279 + return assertThisInitialized(self);
3280 +}
3281 +
3282 +module.exports = _possibleConstructorReturn;
3283 +
3284 +/***/ }),
3285 +/* 171 */
3286 +/***/ (function(module, exports, __webpack_require__) {
3287 +
3288 +__webpack_require__(60);
3289 +__webpack_require__(62);
3290 +module.exports = __webpack_require__(63).f('iterator');
3291 +
3292 +
3293 +/***/ }),
3294 +/* 172 */
3295 +/***/ (function(module, exports, __webpack_require__) {
3296 +
3297 +var toInteger = __webpack_require__(77);
3298 +var defined = __webpack_require__(65);
3299 +// true -> String#at
3300 +// false -> String#codePointAt
3301 +module.exports = function (TO_STRING) {
3302 + return function (that, pos) {
3303 + var s = String(defined(that));
3304 + var i = toInteger(pos);
3305 + var l = s.length;
3306 + var a, b;
3307 + if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
3308 + a = s.charCodeAt(i);
3309 + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
3310 + ? TO_STRING ? s.charAt(i) : a
3311 + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
3312 + };
3313 +};
3314 +
3315 +
3316 +/***/ }),
3317 +/* 173 */
3318 +/***/ (function(module, exports, __webpack_require__) {
3319 +
3320 +"use strict";
3321 +
3322 +var create = __webpack_require__(52);
3323 +var descriptor = __webpack_require__(44);
3324 +var setToStringTag = __webpack_require__(53);
3325 +var IteratorPrototype = {};
3326 +
3327 +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
3328 +__webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
3329 +
3330 +module.exports = function (Constructor, NAME, next) {
3331 + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
3332 + setToStringTag(Constructor, NAME + ' Iterator');
3333 +};
3334 +
3335 +
3336 +/***/ }),
3337 +/* 174 */
3338 +/***/ (function(module, exports, __webpack_require__) {
3339 +
3340 +"use strict";
3341 +
3342 +var addToUnscopables = __webpack_require__(175);
3343 +var step = __webpack_require__(149);
3344 +var Iterators = __webpack_require__(34);
3345 +var toIObject = __webpack_require__(20);
3346 +
3347 +// 22.1.3.4 Array.prototype.entries()
3348 +// 22.1.3.13 Array.prototype.keys()
3349 +// 22.1.3.29 Array.prototype.values()
3350 +// 22.1.3.30 Array.prototype[@@iterator]()
3351 +module.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) {
3352 + this._t = toIObject(iterated); // target
3353 + this._i = 0; // next index
3354 + this._k = kind; // kind
3355 +// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
3356 +}, function () {
3357 + var O = this._t;
3358 + var kind = this._k;
3359 + var index = this._i++;
3360 + if (!O || index >= O.length) {
3361 + this._t = undefined;
3362 + return step(1);
3363 + }
3364 + if (kind == 'keys') return step(0, index);
3365 + if (kind == 'values') return step(0, O[index]);
3366 + return step(0, [index, O[index]]);
3367 +}, 'values');
3368 +
3369 +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
3370 +Iterators.Arguments = Iterators.Array;
3371 +
3372 +addToUnscopables('keys');
3373 +addToUnscopables('values');
3374 +addToUnscopables('entries');
3375 +
3376 +
3377 +/***/ }),
3378 +/* 175 */
3379 +/***/ (function(module, exports) {
3380 +
3381 +module.exports = function () { /* empty */ };
3382 +
3383 +
3384 +/***/ }),
3385 +/* 176 */
3386 +/***/ (function(module, exports, __webpack_require__) {
3387 +
3388 +__webpack_require__(138);
3389 +__webpack_require__(100);
3390 +__webpack_require__(179);
3391 +__webpack_require__(180);
3392 +module.exports = __webpack_require__(6).Symbol;
3393 +
3394 +
3395 +/***/ }),
3396 +/* 177 */
3397 +/***/ (function(module, exports, __webpack_require__) {
3398 +
3399 +// all enumerable object keys, includes symbols
3400 +var getKeys = __webpack_require__(40);
3401 +var gOPS = __webpack_require__(71);
3402 +var pIE = __webpack_require__(50);
3403 +module.exports = function (it) {
3404 + var result = getKeys(it);
3405 + var getSymbols = gOPS.f;
3406 + if (getSymbols) {
3407 + var symbols = getSymbols(it);
3408 + var isEnum = pIE.f;
3409 + var i = 0;
3410 + var key;
3411 + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
3412 + } return result;
3413 +};
3414 +
3415 +
3416 +/***/ }),
3417 +/* 178 */
3418 +/***/ (function(module, exports, __webpack_require__) {
3419 +
3420 +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
3421 +var toIObject = __webpack_require__(20);
3422 +var gOPN = __webpack_require__(99).f;
3423 +var toString = {}.toString;
3424 +
3425 +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
3426 + ? Object.getOwnPropertyNames(window) : [];
3427 +
3428 +var getWindowNames = function (it) {
3429 + try {
3430 + return gOPN(it);
3431 + } catch (e) {
3432 + return windowNames.slice();
3433 + }
3434 +};
3435 +
3436 +module.exports.f = function getOwnPropertyNames(it) {
3437 + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
3438 +};
3439 +
3440 +
3441 +/***/ }),
3442 +/* 179 */
3443 +/***/ (function(module, exports, __webpack_require__) {
3444 +
3445 +__webpack_require__(79)('asyncIterator');
3446 +
3447 +
3448 +/***/ }),
3449 +/* 180 */
3450 +/***/ (function(module, exports, __webpack_require__) {
3451 +
3452 +__webpack_require__(79)('observable');
3453 +
3454 +
3455 +/***/ }),
3456 +/* 181 */,
3457 +/* 182 */,
3458 +/* 183 */,
3459 +/* 184 */,
3460 +/* 185 */
3461 +/***/ (function(module, exports, __webpack_require__) {
3462 +
3463 +"use strict";
3464 +
3465 +var $defineProperty = __webpack_require__(15);
3466 +var createDesc = __webpack_require__(44);
3467 +
3468 +module.exports = function (object, index, value) {
3469 + if (index in object) $defineProperty.f(object, index, createDesc(0, value));
3470 + else object[index] = value;
3471 +};
3472 +
3473 +
3474 +/***/ }),
3475 +/* 186 */
3476 +/***/ (function(module, exports, __webpack_require__) {
3477 +
3478 +var _Array$from = __webpack_require__(200);
3479 +
3480 +var arrayLikeToArray = __webpack_require__(199);
3481 +
3482 +function _unsupportedIterableToArray(o, minLen) {
3483 + if (!o) return;
3484 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
3485 + var n = Object.prototype.toString.call(o).slice(8, -1);
3486 + if (n === "Object" && o.constructor) n = o.constructor.name;
3487 + if (n === "Map" || n === "Set") return _Array$from(o);
3488 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3489 +}
3490 +
3491 +module.exports = _unsupportedIterableToArray;
3492 +
3493 +/***/ }),
3494 +/* 187 */
3495 +/***/ (function(module, exports, __webpack_require__) {
3496 +
3497 +var _Object$assign = __webpack_require__(150);
3498 +
3499 +function _extends() {
3500 + module.exports = _extends = _Object$assign || function (target) {
3501 + for (var i = 1; i < arguments.length; i++) {
3502 + var source = arguments[i];
3503 +
3504 + for (var key in source) {
3505 + if (Object.prototype.hasOwnProperty.call(source, key)) {
3506 + target[key] = source[key];
3507 + }
3508 + }
3509 + }
3510 +
3511 + return target;
3512 + };
3513 +
3514 + return _extends.apply(this, arguments);
3515 +}
3516 +
3517 +module.exports = _extends;
3518 +
3519 +/***/ }),
3520 +/* 188 */,
3521 +/* 189 */
3522 +/***/ (function(module, exports) {
3523 +
3524 +module.exports = wp.i18n;
3525 +
3526 +/***/ }),
3527 +/* 190 */
3528 +/***/ (function(module, exports, __webpack_require__) {
3529 +
3530 +"use strict";
3531 +
3532 +var regexpExec = __webpack_require__(88);
3533 +__webpack_require__(37)({
3534 + target: 'RegExp',
3535 + proto: true,
3536 + forced: regexpExec !== /./.exec
3537 +}, {
3538 + exec: regexpExec
3539 +});
3540 +
3541 +
3542 +/***/ }),
3543 +/* 191 */
3544 +/***/ (function(module, exports, __webpack_require__) {
3545 +
3546 +__webpack_require__(192);
3547 +var $Object = __webpack_require__(6).Object;
3548 +module.exports = function getOwnPropertyDescriptor(it, key) {
3549 + return $Object.getOwnPropertyDescriptor(it, key);
3550 +};
3551 +
3552 +
3553 +/***/ }),
3554 +/* 192 */
3555 +/***/ (function(module, exports, __webpack_require__) {
3556 +
3557 +// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
3558 +var toIObject = __webpack_require__(20);
3559 +var $getOwnPropertyDescriptor = __webpack_require__(51).f;
3560 +
3561 +__webpack_require__(83)('getOwnPropertyDescriptor', function () {
3562 + return function getOwnPropertyDescriptor(it, key) {
3563 + return $getOwnPropertyDescriptor(toIObject(it), key);
3564 + };
3565 +});
3566 +
3567 +
3568 +/***/ }),
3569 +/* 193 */
3570 +/***/ (function(module, exports, __webpack_require__) {
3571 +
3572 +module.exports = __webpack_require__(194);
3573 +
3574 +/***/ }),
3575 +/* 194 */
3576 +/***/ (function(module, exports, __webpack_require__) {
3577 +
3578 +__webpack_require__(195);
3579 +module.exports = __webpack_require__(6).Reflect.get;
3580 +
3581 +
3582 +/***/ }),
3583 +/* 195 */
3584 +/***/ (function(module, exports, __webpack_require__) {
3585 +
3586 +// 26.1.6 Reflect.get(target, propertyKey [, receiver])
3587 +var gOPD = __webpack_require__(51);
3588 +var getPrototypeOf = __webpack_require__(64);
3589 +var has = __webpack_require__(19);
3590 +var $export = __webpack_require__(7);
3591 +var isObject = __webpack_require__(9);
3592 +var anObject = __webpack_require__(13);
3593 +
3594 +function get(target, propertyKey /* , receiver */) {
3595 + var receiver = arguments.length < 3 ? target : arguments[2];
3596 + var desc, proto;
3597 + if (anObject(target) === receiver) return target[propertyKey];
3598 + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
3599 + ? desc.value
3600 + : desc.get !== undefined
3601 + ? desc.get.call(receiver)
3602 + : undefined;
3603 + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
3604 +}
3605 +
3606 +$export($export.S, 'Reflect', { get: get });
3607 +
3608 +
3609 +/***/ }),
3610 +/* 196 */
3611 +/***/ (function(module, exports, __webpack_require__) {
3612 +
3613 +var getPrototypeOf = __webpack_require__(16);
3614 +
3615 +function _superPropBase(object, property) {
3616 + while (!Object.prototype.hasOwnProperty.call(object, property)) {
3617 + object = getPrototypeOf(object);
3618 + if (object === null) break;
3619 + }
3620 +
3621 + return object;
3622 +}
3623 +
3624 +module.exports = _superPropBase;
3625 +
3626 +/***/ }),
3627 +/* 197 */,
3628 +/* 198 */
3629 +/***/ (function(module, exports, __webpack_require__) {
3630 +
3631 +var toInteger = __webpack_require__(57);
3632 +var max = Math.max;
3633 +var min = Math.min;
3634 +module.exports = function (index, length) {
3635 + index = toInteger(index);
3636 + return index < 0 ? max(index + length, 0) : min(index, length);
3637 +};
3638 +
3639 +
3640 +/***/ }),
3641 +/* 199 */
3642 +/***/ (function(module, exports) {
3643 +
3644 +function _arrayLikeToArray(arr, len) {
3645 + if (len == null || len > arr.length) len = arr.length;
3646 +
3647 + for (var i = 0, arr2 = new Array(len); i < len; i++) {
3648 + arr2[i] = arr[i];
3649 + }
3650 +
3651 + return arr2;
3652 +}
3653 +
3654 +module.exports = _arrayLikeToArray;
3655 +
3656 +/***/ }),
3657 +/* 200 */
3658 +/***/ (function(module, exports, __webpack_require__) {
3659 +
3660 +module.exports = __webpack_require__(228);
3661 +
3662 +/***/ }),
3663 +/* 201 */
3664 +/***/ (function(module, exports, __webpack_require__) {
3665 +
3666 +__webpack_require__(202);
3667 +module.exports = __webpack_require__(6).Object.keys;
3668 +
3669 +
3670 +/***/ }),
3671 +/* 202 */
3672 +/***/ (function(module, exports, __webpack_require__) {
3673 +
3674 +// 19.1.2.14 Object.keys(O)
3675 +var toObject = __webpack_require__(32);
3676 +var $keys = __webpack_require__(40);
3677 +
3678 +__webpack_require__(83)('keys', function () {
3679 + return function keys(it) {
3680 + return $keys(toObject(it));
3681 + };
3682 +});
3683 +
3684 +
3685 +/***/ }),
3686 +/* 203 */,
3687 +/* 204 */,
3688 +/* 205 */,
3689 +/* 206 */,
3690 +/* 207 */,
3691 +/* 208 */,
3692 +/* 209 */
3693 +/***/ (function(module, exports, __webpack_require__) {
3694 +
3695 +module.exports = __webpack_require__(230);
3696 +
3697 +/***/ }),
3698 +/* 210 */
3699 +/***/ (function(module, exports, __webpack_require__) {
3700 +
3701 +"use strict";
3702 +
3703 +// 19.1.2.1 Object.assign(target, source, ...)
3704 +var DESCRIPTORS = __webpack_require__(14);
3705 +var getKeys = __webpack_require__(40);
3706 +var gOPS = __webpack_require__(71);
3707 +var pIE = __webpack_require__(50);
3708 +var toObject = __webpack_require__(32);
3709 +var IObject = __webpack_require__(103);
3710 +var $assign = Object.assign;
3711 +
3712 +// should work with symbols and should have deterministic property order (V8 bug)
3713 +module.exports = !$assign || __webpack_require__(22)(function () {
3714 + var A = {};
3715 + var B = {};
3716 + // eslint-disable-next-line no-undef
3717 + var S = Symbol();
3718 + var K = 'abcdefghijklmnopqrst';
3719 + A[S] = 7;
3720 + K.split('').forEach(function (k) { B[k] = k; });
3721 + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
3722 +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
3723 + var T = toObject(target);
3724 + var aLen = arguments.length;
3725 + var index = 1;
3726 + var getSymbols = gOPS.f;
3727 + var isEnum = pIE.f;
3728 + while (aLen > index) {
3729 + var S = IObject(arguments[index++]);
3730 + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
3731 + var length = keys.length;
3732 + var j = 0;
3733 + var key;
3734 + while (length > j) {
3735 + key = keys[j++];
3736 + if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
3737 + }
3738 + } return T;
3739 +} : $assign;
3740 +
3741 +
3742 +/***/ }),
3743 +/* 211 */,
3744 +/* 212 */
3745 +/***/ (function(module, exports, __webpack_require__) {
3746 +
3747 +var _Object$defineProperty = __webpack_require__(1);
3748 +
3749 +var _Object$defineProperties = __webpack_require__(289);
3750 +
3751 +var _Object$getOwnPropertyDescriptors = __webpack_require__(303);
3752 +
3753 +var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
3754 +
3755 +var _Object$getOwnPropertySymbols = __webpack_require__(307);
3756 +
3757 +var _Object$keys = __webpack_require__(23);
3758 +
3759 +var defineProperty = __webpack_require__(28);
3760 +
3761 +function ownKeys(object, enumerableOnly) {
3762 + var keys = _Object$keys(object);
3763 +
3764 + if (_Object$getOwnPropertySymbols) {
3765 + var symbols = _Object$getOwnPropertySymbols(object);
3766 +
3767 + if (enumerableOnly) symbols = symbols.filter(function (sym) {
3768 + return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
3769 + });
3770 + keys.push.apply(keys, symbols);
3771 + }
3772 +
3773 + return keys;
3774 +}
3775 +
3776 +function _objectSpread2(target) {
3777 + for (var i = 1; i < arguments.length; i++) {
3778 + var source = arguments[i] != null ? arguments[i] : {};
3779 +
3780 + if (i % 2) {
3781 + ownKeys(Object(source), true).forEach(function (key) {
3782 + defineProperty(target, key, source[key]);
3783 + });
3784 + } else if (_Object$getOwnPropertyDescriptors) {
3785 + _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
3786 + } else {
3787 + ownKeys(Object(source)).forEach(function (key) {
3788 + _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
3789 + });
3790 + }
3791 + }
3792 +
3793 + return target;
3794 +}
3795 +
3796 +module.exports = _objectSpread2;
3797 +
3798 +/***/ }),
3799 +/* 213 */,
3800 +/* 214 */,
3801 +/* 215 */,
3802 +/* 216 */,
3803 +/* 217 */,
3804 +/* 218 */,
3805 +/* 219 */,
3806 +/* 220 */
3807 +/***/ (function(module, exports, __webpack_require__) {
3808 +
3809 +__webpack_require__(221);
3810 +module.exports = __webpack_require__(6).Array.isArray;
3811 +
3812 +
3813 +/***/ }),
3814 +/* 221 */
3815 +/***/ (function(module, exports, __webpack_require__) {
3816 +
3817 +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
3818 +var $export = __webpack_require__(7);
3819 +
3820 +$export($export.S, 'Array', { isArray: __webpack_require__(97) });
3821 +
3822 +
3823 +/***/ }),
3824 +/* 222 */,
3825 +/* 223 */,
3826 +/* 224 */,
3827 +/* 225 */,
3828 +/* 226 */,
3829 +/* 227 */,
3830 +/* 228 */
3831 +/***/ (function(module, exports, __webpack_require__) {
3832 +
3833 +__webpack_require__(60);
3834 +__webpack_require__(229);
3835 +module.exports = __webpack_require__(6).Array.from;
3836 +
3837 +
3838 +/***/ }),
3839 +/* 229 */
3840 +/***/ (function(module, exports, __webpack_require__) {
3841 +
3842 +"use strict";
3843 +
3844 +var ctx = __webpack_require__(31);
3845 +var $export = __webpack_require__(7);
3846 +var toObject = __webpack_require__(32);
3847 +var call = __webpack_require__(139);
3848 +var isArrayIter = __webpack_require__(140);
3849 +var toLength = __webpack_require__(68);
3850 +var createProperty = __webpack_require__(185);
3851 +var getIterFn = __webpack_require__(112);
3852 +
3853 +$export($export.S + $export.F * !__webpack_require__(152)(function (iter) { Array.from(iter); }), 'Array', {
3854 + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
3855 + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
3856 + var O = toObject(arrayLike);
3857 + var C = typeof this == 'function' ? this : Array;
3858 + var aLen = arguments.length;
3859 + var mapfn = aLen > 1 ? arguments[1] : undefined;
3860 + var mapping = mapfn !== undefined;
3861 + var index = 0;
3862 + var iterFn = getIterFn(O);
3863 + var length, result, step, iterator;
3864 + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
3865 + // if object isn't iterable or it's array with default iterator - use simple case
3866 + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
3867 + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
3868 + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
3869 + }
3870 + } else {
3871 + length = toLength(O.length);
3872 + for (result = new C(length); length > index; index++) {
3873 + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
3874 + }
3875 + }
3876 + result.length = index;
3877 + return result;
3878 + }
3879 +});
3880 +
3881 +
3882 +/***/ }),
3883 +/* 230 */
3884 +/***/ (function(module, exports, __webpack_require__) {
3885 +
3886 +__webpack_require__(62);
3887 +__webpack_require__(60);
3888 +module.exports = __webpack_require__(231);
3889 +
3890 +
3891 +/***/ }),
3892 +/* 231 */
3893 +/***/ (function(module, exports, __webpack_require__) {
3894 +
3895 +var classof = __webpack_require__(101);
3896 +var ITERATOR = __webpack_require__(10)('iterator');
3897 +var Iterators = __webpack_require__(34);
3898 +module.exports = __webpack_require__(6).isIterable = function (it) {
3899 + var O = Object(it);
3900 + return O[ITERATOR] !== undefined
3901 + || '@@iterator' in O
3902 + // eslint-disable-next-line no-prototype-builtins
3903 + || Iterators.hasOwnProperty(classof(O));
3904 +};
3905 +
3906 +
3907 +/***/ }),
3908 +/* 232 */
3909 +/***/ (function(module, exports, __webpack_require__) {
3910 +
3911 +"use strict";
3912 +
3913 +var global = __webpack_require__(8);
3914 +var $export = __webpack_require__(7);
3915 +var meta = __webpack_require__(70);
3916 +var fails = __webpack_require__(22);
3917 +var hide = __webpack_require__(24);
3918 +var redefineAll = __webpack_require__(126);
3919 +var forOf = __webpack_require__(86);
3920 +var anInstance = __webpack_require__(125);
3921 +var isObject = __webpack_require__(9);
3922 +var setToStringTag = __webpack_require__(53);
3923 +var dP = __webpack_require__(15).f;
3924 +var each = __webpack_require__(136)(0);
3925 +var DESCRIPTORS = __webpack_require__(14);
3926 +
3927 +module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
3928 + var Base = global[NAME];
3929 + var C = Base;
3930 + var ADDER = IS_MAP ? 'set' : 'add';
3931 + var proto = C && C.prototype;
3932 + var O = {};
3933 + if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
3934 + new C().entries().next();
3935 + }))) {
3936 + // create collection constructor
3937 + C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
3938 + redefineAll(C.prototype, methods);
3939 + meta.NEED = true;
3940 + } else {
3941 + C = wrapper(function (target, iterable) {
3942 + anInstance(target, C, NAME, '_c');
3943 + target._c = new Base();
3944 + if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
3945 + });
3946 + each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
3947 + var IS_ADDER = KEY == 'add' || KEY == 'set';
3948 + if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
3949 + anInstance(this, C, KEY);
3950 + if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
3951 + var result = this._c[KEY](a === 0 ? 0 : a, b);
3952 + return IS_ADDER ? this : result;
3953 + });
3954 + });
3955 + IS_WEAK || dP(C.prototype, 'size', {
3956 + get: function () {
3957 + return this._c.size;
3958 + }
3959 + });
3960 + }
3961 +
3962 + setToStringTag(C, NAME);
3963 +
3964 + O[NAME] = C;
3965 + $export($export.G + $export.W + $export.F, O);
3966 +
3967 + if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
3968 +
3969 + return C;
3970 +};
3971 +
3972 +
3973 +/***/ }),
3974 +/* 233 */
3975 +/***/ (function(module, exports, __webpack_require__) {
3976 +
3977 +"use strict";
3978 +
3979 +// https://tc39.github.io/proposal-setmap-offrom/
3980 +var $export = __webpack_require__(7);
3981 +
3982 +module.exports = function (COLLECTION) {
3983 + $export($export.S, COLLECTION, { of: function of() {
3984 + var length = arguments.length;
3985 + var A = new Array(length);
3986 + while (length--) A[length] = arguments[length];
3987 + return new this(A);
3988 + } });
3989 +};
3990 +
3991 +
3992 +/***/ }),
3993 +/* 234 */
3994 +/***/ (function(module, exports, __webpack_require__) {
3995 +
3996 +"use strict";
3997 +
3998 +// https://tc39.github.io/proposal-setmap-offrom/
3999 +var $export = __webpack_require__(7);
4000 +var aFunction = __webpack_require__(38);
4001 +var ctx = __webpack_require__(31);
4002 +var forOf = __webpack_require__(86);
4003 +
4004 +module.exports = function (COLLECTION) {
4005 + $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
4006 + var mapFn = arguments[1];
4007 + var mapping, A, n, cb;
4008 + aFunction(this);
4009 + mapping = mapFn !== undefined;
4010 + if (mapping) aFunction(mapFn);
4011 + if (source == undefined) return new this();
4012 + A = [];
4013 + if (mapping) {
4014 + n = 0;
4015 + cb = ctx(mapFn, arguments[2], 2);
4016 + forOf(source, false, function (nextItem) {
4017 + A.push(cb(nextItem, n++));
4018 + });
4019 + } else {
4020 + forOf(source, false, A.push, A);
4021 + }
4022 + return new this(A);
4023 + } });
4024 +};
4025 +
4026 +
4027 +/***/ }),
4028 +/* 235 */,
4029 +/* 236 */
4030 +/***/ (function(module, exports, __webpack_require__) {
4031 +
4032 +module.exports = __webpack_require__(249);
4033 +
4034 +/***/ }),
4035 +/* 237 */,
4036 +/* 238 */
4037 +/***/ (function(module, exports, __webpack_require__) {
4038 +
4039 +"use strict";
4040 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
4041 +
4042 +var _interopRequireDefault = __webpack_require__(0);
4043 +
4044 +var _Object$defineProperty = __webpack_require__(1);
4045 +
4046 +_Object$defineProperty(exports, "__esModule", {
4047 + value: true
4048 +});
4049 +
4050 +exports.default = void 0;
4051 +
4052 +var _react = _interopRequireDefault(__webpack_require__(11));
4053 +
4054 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
4055 +
4056 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
4057 +
4058 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
4059 +
4060 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
4061 +
4062 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
4063 +
4064 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
4065 +
4066 +var _router = __webpack_require__(340);
4067 +
4068 +var _router2 = _interopRequireDefault(__webpack_require__(344));
4069 +
4070 +var _icon = _interopRequireDefault(__webpack_require__(345));
4071 +
4072 +__webpack_require__(644);
4073 +
4074 +var Button = /*#__PURE__*/function (_React$Component) {
4075 + (0, _inherits2.default)(Button, _React$Component);
4076 +
4077 + var _super = (0, _createSuper2.default)(Button);
4078 +
4079 + function Button() {
4080 + (0, _classCallCheck2.default)(this, Button);
4081 + return _super.apply(this, arguments);
4082 + }
4083 +
4084 + (0, _createClass2.default)(Button, [{
4085 + key: "getCssId",
4086 + value: function getCssId() {
4087 + return this.props.id;
4088 + }
4089 + }, {
4090 + key: "getClassName",
4091 + value: function getClassName() {
4092 + var baseClassName = 'eps-button',
4093 + classes = [baseClassName, this.props.className];
4094 + return classes.concat(this.getStylePropsClasses(baseClassName)).filter(function (classItem) {
4095 + return '' !== classItem;
4096 + }).join(' ');
4097 + }
4098 + }, {
4099 + key: "getStylePropsClasses",
4100 + value: function getStylePropsClasses(baseClassName) {
4101 + var _this = this;
4102 +
4103 + var styleProps = ['color', 'size', 'variant'],
4104 + stylePropClasses = [];
4105 + styleProps.forEach(function (styleProp) {
4106 + var stylePropValue = _this.props[styleProp];
4107 +
4108 + if (stylePropValue) {
4109 + stylePropClasses.push(baseClassName + '--' + stylePropValue);
4110 + }
4111 + });
4112 + return stylePropClasses;
4113 + }
4114 + }, {
4115 + key: "getIcon",
4116 + value: function getIcon() {
4117 + if (this.props.icon) {
4118 + var tooltip = this.props.tooltip || this.props.text;
4119 +
4120 + var icon = /*#__PURE__*/_react.default.createElement(_icon.default, {
4121 + className: this.props.icon,
4122 + "aria-hidden": "true",
4123 + title: tooltip
4124 + });
4125 +
4126 + var screenReaderText = '';
4127 +
4128 + if (this.props.hideText) {
4129 + screenReaderText = /*#__PURE__*/_react.default.createElement("span", {
4130 + className: "sr-only"
4131 + }, tooltip);
4132 + }
4133 +
4134 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon, screenReaderText);
4135 + }
4136 +
4137 + return '';
4138 + }
4139 + }, {
4140 + key: "getText",
4141 + value: function getText() {
4142 + return this.props.hideText ? '' : /*#__PURE__*/_react.default.createElement("span", null, this.props.text);
4143 + }
4144 + }, {
4145 + key: "render",
4146 + value: function render() {
4147 + var attributes = {},
4148 + id = this.getCssId(),
4149 + className = this.getClassName(); // Add attributes only if they are not empty.
4150 +
4151 + if (id) {
4152 + attributes.id = id;
4153 + }
4154 +
4155 + if (className) {
4156 + attributes.className = className;
4157 + }
4158 +
4159 + if (this.props.onClick) {
4160 + attributes.onClick = this.props.onClick;
4161 + }
4162 +
4163 + var buttonContent = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, this.getIcon(), this.getText());
4164 +
4165 + if (this.props.url) {
4166 + if (0 === this.props.url.indexOf('http')) {
4167 + return /*#__PURE__*/_react.default.createElement("a", (0, _extends2.default)({
4168 + href: this.props.url,
4169 + target: this.props.target
4170 + }, attributes), buttonContent);
4171 + } // @see https://reach.tech/router/example/active-links.
4172 +
4173 +
4174 + attributes.getProps = function (props) {
4175 + if (props.isCurrent) {
4176 + attributes.className += ' active';
4177 + }
4178 +
4179 + return {
4180 + className: attributes.className
4181 + };
4182 + };
4183 +
4184 + return /*#__PURE__*/_react.default.createElement(_router.LocationProvider, {
4185 + history: _router2.default.appHistory
4186 + }, /*#__PURE__*/_react.default.createElement(_router.Link, (0, _extends2.default)({
4187 + to: this.props.url
4188 + }, attributes), buttonContent));
4189 + }
4190 +
4191 + return /*#__PURE__*/_react.default.createElement("div", attributes, buttonContent);
4192 + }
4193 + }]);
4194 + return Button;
4195 +}(_react.default.Component);
4196 +
4197 +exports.default = Button;
4198 +(0, _defineProperty2.default)(Button, "propTypes", {
4199 + text: PropTypes.string.isRequired,
4200 + hideText: PropTypes.bool,
4201 + icon: PropTypes.string,
4202 + tooltip: PropTypes.string,
4203 + id: PropTypes.string,
4204 + className: PropTypes.string,
4205 + url: PropTypes.string,
4206 + onClick: PropTypes.func,
4207 + variant: PropTypes.string,
4208 + color: PropTypes.string,
4209 + size: PropTypes.string,
4210 + target: PropTypes.string
4211 +});
4212 +(0, _defineProperty2.default)(Button, "defaultProps", {
4213 + id: '',
4214 + className: '',
4215 + variant: '',
4216 + target: '_parent'
4217 +});
4218 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
4219 +
4220 +/***/ }),
4221 +/* 239 */,
4222 +/* 240 */,
4223 +/* 241 */,
4224 +/* 242 */,
4225 +/* 243 */,
4226 +/* 244 */,
4227 +/* 245 */
4228 +/***/ (function(module, exports, __webpack_require__) {
4229 +
4230 +// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
4231 +var speciesConstructor = __webpack_require__(246);
4232 +
4233 +module.exports = function (original, length) {
4234 + return new (speciesConstructor(original))(length);
4235 +};
4236 +
4237 +
4238 +/***/ }),
4239 +/* 246 */
4240 +/***/ (function(module, exports, __webpack_require__) {
4241 +
4242 +var isObject = __webpack_require__(9);
4243 +var isArray = __webpack_require__(97);
4244 +var SPECIES = __webpack_require__(10)('species');
4245 +
4246 +module.exports = function (original) {
4247 + var C;
4248 + if (isArray(original)) {
4249 + C = original.constructor;
4250 + // cross-realm fallback
4251 + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
4252 + if (isObject(C)) {
4253 + C = C[SPECIES];
4254 + if (C === null) C = undefined;
4255 + }
4256 + } return C === undefined ? Array : C;
4257 +};
4258 +
4259 +
4260 +/***/ }),
4261 +/* 247 */
4262 +/***/ (function(module, exports, __webpack_require__) {
4263 +
4264 +var _Array$isArray = __webpack_require__(81);
4265 +
4266 +function _arrayWithHoles(arr) {
4267 + if (_Array$isArray(arr)) return arr;
4268 +}
4269 +
4270 +module.exports = _arrayWithHoles;
4271 +
4272 +/***/ }),
4273 +/* 248 */
4274 +/***/ (function(module, exports, __webpack_require__) {
4275 +
4276 +var _getIterator = __webpack_require__(236);
4277 +
4278 +var _isIterable = __webpack_require__(209);
4279 +
4280 +var _Symbol = __webpack_require__(111);
4281 +
4282 +function _iterableToArrayLimit(arr, i) {
4283 + if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return;
4284 + var _arr = [];
4285 + var _n = true;
4286 + var _d = false;
4287 + var _e = undefined;
4288 +
4289 + try {
4290 + for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
4291 + _arr.push(_s.value);
4292 +
4293 + if (i && _arr.length === i) break;
4294 + }
4295 + } catch (err) {
4296 + _d = true;
4297 + _e = err;
4298 + } finally {
4299 + try {
4300 + if (!_n && _i["return"] != null) _i["return"]();
4301 + } finally {
4302 + if (_d) throw _e;
4303 + }
4304 + }
4305 +
4306 + return _arr;
4307 +}
4308 +
4309 +module.exports = _iterableToArrayLimit;
4310 +
4311 +/***/ }),
4312 +/* 249 */
4313 +/***/ (function(module, exports, __webpack_require__) {
4314 +
4315 +__webpack_require__(62);
4316 +__webpack_require__(60);
4317 +module.exports = __webpack_require__(250);
4318 +
4319 +
4320 +/***/ }),
4321 +/* 250 */
4322 +/***/ (function(module, exports, __webpack_require__) {
4323 +
4324 +var anObject = __webpack_require__(13);
4325 +var get = __webpack_require__(112);
4326 +module.exports = __webpack_require__(6).getIterator = function (it) {
4327 + var iterFn = get(it);
4328 + if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
4329 + return anObject(iterFn.call(it));
4330 +};
4331 +
4332 +
4333 +/***/ }),
4334 +/* 251 */
4335 +/***/ (function(module, exports) {
4336 +
4337 +function _nonIterableRest() {
4338 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4339 +}
4340 +
4341 +module.exports = _nonIterableRest;
4342 +
4343 +/***/ }),
4344 +/* 252 */,
4345 +/* 253 */,
4346 +/* 254 */,
4347 +/* 255 */,
4348 +/* 256 */,
4349 +/* 257 */,
4350 +/* 258 */,
4351 +/* 259 */,
4352 +/* 260 */,
4353 +/* 261 */,
4354 +/* 262 */,
4355 +/* 263 */
4356 +/***/ (function(module, exports, __webpack_require__) {
4357 +
4358 +module.exports = __webpack_require__(264);
4359 +
4360 +/***/ }),
4361 +/* 264 */
4362 +/***/ (function(module, exports, __webpack_require__) {
4363 +
4364 +__webpack_require__(100);
4365 +__webpack_require__(62);
4366 +__webpack_require__(265);
4367 +__webpack_require__(267);
4368 +__webpack_require__(268);
4369 +module.exports = __webpack_require__(6).WeakMap;
4370 +
4371 +
4372 +/***/ }),
4373 +/* 265 */
4374 +/***/ (function(module, exports, __webpack_require__) {
4375 +
4376 +"use strict";
4377 +
4378 +var global = __webpack_require__(8);
4379 +var each = __webpack_require__(136)(0);
4380 +var redefine = __webpack_require__(93);
4381 +var meta = __webpack_require__(70);
4382 +var assign = __webpack_require__(210);
4383 +var weak = __webpack_require__(266);
4384 +var isObject = __webpack_require__(9);
4385 +var validate = __webpack_require__(121);
4386 +var NATIVE_WEAK_MAP = __webpack_require__(121);
4387 +var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
4388 +var WEAK_MAP = 'WeakMap';
4389 +var getWeak = meta.getWeak;
4390 +var isExtensible = Object.isExtensible;
4391 +var uncaughtFrozenStore = weak.ufstore;
4392 +var InternalMap;
4393 +
4394 +var wrapper = function (get) {
4395 + return function WeakMap() {
4396 + return get(this, arguments.length > 0 ? arguments[0] : undefined);
4397 + };
4398 +};
4399 +
4400 +var methods = {
4401 + // 23.3.3.3 WeakMap.prototype.get(key)
4402 + get: function get(key) {
4403 + if (isObject(key)) {
4404 + var data = getWeak(key);
4405 + if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
4406 + return data ? data[this._i] : undefined;
4407 + }
4408 + },
4409 + // 23.3.3.5 WeakMap.prototype.set(key, value)
4410 + set: function set(key, value) {
4411 + return weak.def(validate(this, WEAK_MAP), key, value);
4412 + }
4413 +};
4414 +
4415 +// 23.3 WeakMap Objects
4416 +var $WeakMap = module.exports = __webpack_require__(232)(WEAK_MAP, wrapper, methods, weak, true, true);
4417 +
4418 +// IE11 WeakMap frozen keys fix
4419 +if (NATIVE_WEAK_MAP && IS_IE11) {
4420 + InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
4421 + assign(InternalMap.prototype, methods);
4422 + meta.NEED = true;
4423 + each(['delete', 'has', 'get', 'set'], function (key) {
4424 + var proto = $WeakMap.prototype;
4425 + var method = proto[key];
4426 + redefine(proto, key, function (a, b) {
4427 + // store frozen objects on internal weakmap shim
4428 + if (isObject(a) && !isExtensible(a)) {
4429 + if (!this._f) this._f = new InternalMap();
4430 + var result = this._f[key](a, b);
4431 + return key == 'set' ? this : result;
4432 + // store all the rest on native weakmap
4433 + } return method.call(this, a, b);
4434 + });
4435 + });
4436 +}
4437 +
4438 +
4439 +/***/ }),
4440 +/* 266 */
4441 +/***/ (function(module, exports, __webpack_require__) {
4442 +
4443 +"use strict";
4444 +
4445 +var redefineAll = __webpack_require__(126);
4446 +var getWeak = __webpack_require__(70).getWeak;
4447 +var anObject = __webpack_require__(13);
4448 +var isObject = __webpack_require__(9);
4449 +var anInstance = __webpack_require__(125);
4450 +var forOf = __webpack_require__(86);
4451 +var createArrayMethod = __webpack_require__(136);
4452 +var $has = __webpack_require__(19);
4453 +var validate = __webpack_require__(121);
4454 +var arrayFind = createArrayMethod(5);
4455 +var arrayFindIndex = createArrayMethod(6);
4456 +var id = 0;
4457 +
4458 +// fallback for uncaught frozen keys
4459 +var uncaughtFrozenStore = function (that) {
4460 + return that._l || (that._l = new UncaughtFrozenStore());
4461 +};
4462 +var UncaughtFrozenStore = function () {
4463 + this.a = [];
4464 +};
4465 +var findUncaughtFrozen = function (store, key) {
4466 + return arrayFind(store.a, function (it) {
4467 + return it[0] === key;
4468 + });
4469 +};
4470 +UncaughtFrozenStore.prototype = {
4471 + get: function (key) {
4472 + var entry = findUncaughtFrozen(this, key);
4473 + if (entry) return entry[1];
4474 + },
4475 + has: function (key) {
4476 + return !!findUncaughtFrozen(this, key);
4477 + },
4478 + set: function (key, value) {
4479 + var entry = findUncaughtFrozen(this, key);
4480 + if (entry) entry[1] = value;
4481 + else this.a.push([key, value]);
4482 + },
4483 + 'delete': function (key) {
4484 + var index = arrayFindIndex(this.a, function (it) {
4485 + return it[0] === key;
4486 + });
4487 + if (~index) this.a.splice(index, 1);
4488 + return !!~index;
4489 + }
4490 +};
4491 +
4492 +module.exports = {
4493 + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
4494 + var C = wrapper(function (that, iterable) {
4495 + anInstance(that, C, NAME, '_i');
4496 + that._t = NAME; // collection type
4497 + that._i = id++; // collection id
4498 + that._l = undefined; // leak store for uncaught frozen objects
4499 + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
4500 + });
4501 + redefineAll(C.prototype, {
4502 + // 23.3.3.2 WeakMap.prototype.delete(key)
4503 + // 23.4.3.3 WeakSet.prototype.delete(value)
4504 + 'delete': function (key) {
4505 + if (!isObject(key)) return false;
4506 + var data = getWeak(key);
4507 + if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
4508 + return data && $has(data, this._i) && delete data[this._i];
4509 + },
4510 + // 23.3.3.4 WeakMap.prototype.has(key)
4511 + // 23.4.3.4 WeakSet.prototype.has(value)
4512 + has: function has(key) {
4513 + if (!isObject(key)) return false;
4514 + var data = getWeak(key);
4515 + if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
4516 + return data && $has(data, this._i);
4517 + }
4518 + });
4519 + return C;
4520 + },
4521 + def: function (that, key, value) {
4522 + var data = getWeak(anObject(key), true);
4523 + if (data === true) uncaughtFrozenStore(that).set(key, value);
4524 + else data[that._i] = value;
4525 + return that;
4526 + },
4527 + ufstore: uncaughtFrozenStore
4528 +};
4529 +
4530 +
4531 +/***/ }),
4532 +/* 267 */
4533 +/***/ (function(module, exports, __webpack_require__) {
4534 +
4535 +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
4536 +__webpack_require__(233)('WeakMap');
4537 +
4538 +
4539 +/***/ }),
4540 +/* 268 */
4541 +/***/ (function(module, exports, __webpack_require__) {
4542 +
4543 +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
4544 +__webpack_require__(234)('WeakMap');
4545 +
4546 +
4547 +/***/ }),
4548 +/* 269 */,
4549 +/* 270 */,
4550 +/* 271 */,
4551 +/* 272 */,
4552 +/* 273 */,
4553 +/* 274 */,
4554 +/* 275 */
4555 +/***/ (function(module, exports, __webpack_require__) {
4556 +
4557 +"use strict";
356 4558 /**
357 - * Copyright (c) 2013-present, Facebook, Inc.
358 - *
359 - * This source code is licensed under the MIT license found in the
360 - * LICENSE file in the root directory of this source tree.
361 - */
362 - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
363 - var printWarning = function() {};
364 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
365 - var loggedTypeFailures = {};
366 - var has = require_has();
367 - printWarning = function(text) {
368 - var message = "Warning: " + text;
369 - if (typeof console !== "undefined") console.error(message);
370 - try {
371 - throw new Error(message);
372 - } catch (x) {}
373 - };
374 - /**
375 - * Assert that the values match with the type specs.
376 - * Error messages are memorized and will only be shown once.
377 - *
378 - * @param {object} typeSpecs Map of name to a ReactPropType
379 - * @param {object} values Runtime values that need to be type-checked
380 - * @param {string} location e.g. "prop", "context", "child context"
381 - * @param {string} componentName Name of the component for error messages.
382 - * @param {?Function} getStack Returns the component stack.
383 - * @private
384 - */
385 - function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
386 - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
387 - var error;
388 - try {
389 - if (typeof typeSpecs[typeSpecName] !== "function") {
390 - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
391 - err.name = "Invariant Violation";
392 - throw err;
393 - }
394 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
395 - } catch (ex) {
396 - error = ex;
397 - }
398 - if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
399 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
400 - loggedTypeFailures[error.message] = true;
401 - var stack = getStack ? getStack() : "";
402 - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
403 - }
404 - }
405 - }
406 - /**
407 - * Resets warning cache when testing.
408 - *
409 - * @private
410 - */
411 - checkPropTypes.resetWarningCache = function() {
412 - loggedTypeFailures = {};
413 - };
414 - module.exports = checkPropTypes;
415 - }));
4559 + * Copyright (c) 2013-present, Facebook, Inc.
4560 + *
4561 + * This source code is licensed under the MIT license found in the
4562 + * LICENSE file in the root directory of this source tree.
4563 + */
416 4564
417 -//#endregion
418 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
4565 +
4566 +
419 4567 /**
420 - * Copyright (c) 2013-present, Facebook, Inc.
421 - *
422 - * This source code is licensed under the MIT license found in the
423 - * LICENSE file in the root directory of this source tree.
424 - */
425 - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
426 - var ReactIs = require_react_is();
427 - var assign = require_object_assign();
428 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
429 - var has = require_has();
430 - var checkPropTypes = require_checkPropTypes();
431 - var printWarning = function() {};
432 - printWarning = function(text) {
433 - var message = "Warning: " + text;
434 - if (typeof console !== "undefined") console.error(message);
435 - try {
436 - throw new Error(message);
437 - } catch (x) {}
438 - };
439 - function emptyFunctionThatReturnsNull() {
440 - return null;
441 - }
442 - module.exports = function(isValidElement, throwOnDirectAccess) {
443 - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
444 - var FAUX_ITERATOR_SYMBOL = "@@iterator";
445 - /**
446 - * Returns the iterator method function contained on the iterable object.
447 - *
448 - * Be sure to invoke the function with the iterable as context:
449 - *
450 - * var iteratorFn = getIteratorFn(myIterable);
451 - * if (iteratorFn) {
452 - * var iterator = iteratorFn.call(myIterable);
453 - * ...
454 - * }
455 - *
456 - * @param {?object} maybeIterable
457 - * @return {?function}
458 - */
459 - function getIteratorFn(maybeIterable) {
460 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
461 - if (typeof iteratorFn === "function") return iteratorFn;
462 - }
463 - /**
464 - * Collection of methods that allow declaration and validation of props that are
465 - * supplied to React components. Example usage:
466 - *
467 - * var Props = require('ReactPropTypes');
468 - * var MyArticle = React.createClass({
469 - * propTypes: {
470 - * // An optional string prop named "description".
471 - * description: Props.string,
472 - *
473 - * // A required enum prop named "category".
474 - * category: Props.oneOf(['News','Photos']).isRequired,
475 - *
476 - * // A prop named "dialog" that requires an instance of Dialog.
477 - * dialog: Props.instanceOf(Dialog).isRequired
478 - * },
479 - * render: function() { ... }
480 - * });
481 - *
482 - * A more formal specification of how these methods are used:
483 - *
484 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
485 - * decl := ReactPropTypes.{type}(.isRequired)?
486 - *
487 - * Each and every declaration produces a function with the same signature. This
488 - * allows the creation of custom validation functions. For example:
489 - *
490 - * var MyLink = React.createClass({
491 - * propTypes: {
492 - * // An optional string or URI prop named "href".
493 - * href: function(props, propName, componentName) {
494 - * var propValue = props[propName];
495 - * if (propValue != null && typeof propValue !== 'string' &&
496 - * !(propValue instanceof URI)) {
497 - * return new Error(
498 - * 'Expected a string or an URI for ' + propName + ' in ' +
499 - * componentName
500 - * );
501 - * }
502 - * }
503 - * },
504 - * render: function() {...}
505 - * });
506 - *
507 - * @internal
508 - */
509 - var ANONYMOUS = "<<anonymous>>";
510 - var ReactPropTypes = {
511 - array: createPrimitiveTypeChecker("array"),
512 - bigint: createPrimitiveTypeChecker("bigint"),
513 - bool: createPrimitiveTypeChecker("boolean"),
514 - func: createPrimitiveTypeChecker("function"),
515 - number: createPrimitiveTypeChecker("number"),
516 - object: createPrimitiveTypeChecker("object"),
517 - string: createPrimitiveTypeChecker("string"),
518 - symbol: createPrimitiveTypeChecker("symbol"),
519 - any: createAnyTypeChecker(),
520 - arrayOf: createArrayOfTypeChecker,
521 - element: createElementTypeChecker(),
522 - elementType: createElementTypeTypeChecker(),
523 - instanceOf: createInstanceTypeChecker,
524 - node: createNodeChecker(),
525 - objectOf: createObjectOfTypeChecker,
526 - oneOf: createEnumTypeChecker,
527 - oneOfType: createUnionTypeChecker,
528 - shape: createShapeTypeChecker,
529 - exact: createStrictShapeTypeChecker
530 - };
531 - /**
532 - * inlined Object.is polyfill to avoid requiring consumers ship their own
533 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
534 - */
535 - function is(x, y) {
536 - if (x === y) return x !== 0 || 1 / x === 1 / y;
537 - else return x !== x && y !== y;
538 - }
539 - /**
540 - * We use an Error-like object for backward compatibility as people may call
541 - * PropTypes directly and inspect their output. However, we don't use real
542 - * Errors anymore. We don't inspect their stack anyway, and creating them
543 - * is prohibitively expensive if they are created too often, such as what
544 - * happens in oneOfType() for any type before the one that matched.
545 - */
546 - function PropTypeError(message, data) {
547 - this.message = message;
548 - this.data = data && typeof data === "object" ? data : {};
549 - this.stack = "";
550 - }
551 - PropTypeError.prototype = Error.prototype;
552 - function createChainableTypeChecker(validate) {
553 - var manualPropTypeCallCache = {};
554 - var manualPropTypeWarningCount = 0;
555 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
556 - componentName = componentName || ANONYMOUS;
557 - propFullName = propFullName || propName;
558 - if (secret !== ReactPropTypesSecret) {
559 - if (throwOnDirectAccess) {
560 - var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
561 - err.name = "Invariant Violation";
562 - throw err;
563 - } else if (typeof console !== "undefined") {
564 - var cacheKey = componentName + ":" + propName;
565 - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
566 - printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
567 - manualPropTypeCallCache[cacheKey] = true;
568 - manualPropTypeWarningCount++;
569 - }
570 - }
571 - }
572 - if (props[propName] == null) {
573 - if (isRequired) {
574 - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
575 - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
576 - }
577 - return null;
578 - } else return validate(props, propName, componentName, location, propFullName);
579 - }
580 - var chainedCheckType = checkType.bind(null, false);
581 - chainedCheckType.isRequired = checkType.bind(null, true);
582 - return chainedCheckType;
583 - }
584 - function createPrimitiveTypeChecker(expectedType) {
585 - function validate(props, propName, componentName, location, propFullName, secret) {
586 - var propValue = props[propName];
587 - if (getPropType(propValue) !== expectedType) {
588 - var preciseType = getPreciseType(propValue);
589 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
590 - }
591 - return null;
592 - }
593 - return createChainableTypeChecker(validate);
594 - }
595 - function createAnyTypeChecker() {
596 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
597 - }
598 - function createArrayOfTypeChecker(typeChecker) {
599 - function validate(props, propName, componentName, location, propFullName) {
600 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
601 - var propValue = props[propName];
602 - if (!Array.isArray(propValue)) {
603 - var propType = getPropType(propValue);
604 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
605 - }
606 - for (var i = 0; i < propValue.length; i++) {
607 - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
608 - if (error instanceof Error) return error;
609 - }
610 - return null;
611 - }
612 - return createChainableTypeChecker(validate);
613 - }
614 - function createElementTypeChecker() {
615 - function validate(props, propName, componentName, location, propFullName) {
616 - var propValue = props[propName];
617 - if (!isValidElement(propValue)) {
618 - var propType = getPropType(propValue);
619 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
620 - }
621 - return null;
622 - }
623 - return createChainableTypeChecker(validate);
624 - }
625 - function createElementTypeTypeChecker() {
626 - function validate(props, propName, componentName, location, propFullName) {
627 - var propValue = props[propName];
628 - if (!ReactIs.isValidElementType(propValue)) {
629 - var propType = getPropType(propValue);
630 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
631 - }
632 - return null;
633 - }
634 - return createChainableTypeChecker(validate);
635 - }
636 - function createInstanceTypeChecker(expectedClass) {
637 - function validate(props, propName, componentName, location, propFullName) {
638 - if (!(props[propName] instanceof expectedClass)) {
639 - var expectedClassName = expectedClass.name || ANONYMOUS;
640 - var actualClassName = getClassName(props[propName]);
641 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
642 - }
643 - return null;
644 - }
645 - return createChainableTypeChecker(validate);
646 - }
647 - function createEnumTypeChecker(expectedValues) {
648 - if (!Array.isArray(expectedValues)) {
649 - if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
650 - else printWarning("Invalid argument supplied to oneOf, expected an array.");
651 - return emptyFunctionThatReturnsNull;
652 - }
653 - function validate(props, propName, componentName, location, propFullName) {
654 - var propValue = props[propName];
655 - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
656 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
657 - if (getPreciseType(value) === "symbol") return String(value);
658 - return value;
659 - });
660 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
661 - }
662 - return createChainableTypeChecker(validate);
663 - }
664 - function createObjectOfTypeChecker(typeChecker) {
665 - function validate(props, propName, componentName, location, propFullName) {
666 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
667 - var propValue = props[propName];
668 - var propType = getPropType(propValue);
669 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
670 - for (var key in propValue) if (has(propValue, key)) {
671 - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
672 - if (error instanceof Error) return error;
673 - }
674 - return null;
675 - }
676 - return createChainableTypeChecker(validate);
677 - }
678 - function createUnionTypeChecker(arrayOfTypeCheckers) {
679 - if (!Array.isArray(arrayOfTypeCheckers)) {
680 - printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
681 - return emptyFunctionThatReturnsNull;
682 - }
683 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
684 - var checker = arrayOfTypeCheckers[i];
685 - if (typeof checker !== "function") {
686 - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
687 - return emptyFunctionThatReturnsNull;
688 - }
689 - }
690 - function validate(props, propName, componentName, location, propFullName) {
691 - var expectedTypes = [];
692 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
693 - var checker = arrayOfTypeCheckers[i];
694 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
695 - if (checkerResult == null) return null;
696 - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
697 - }
698 - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
699 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
700 - }
701 - return createChainableTypeChecker(validate);
702 - }
703 - function createNodeChecker() {
704 - function validate(props, propName, componentName, location, propFullName) {
705 - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
706 - return null;
707 - }
708 - return createChainableTypeChecker(validate);
709 - }
710 - function invalidValidatorError(componentName, location, propFullName, key, type) {
711 - return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
712 - }
713 - function createShapeTypeChecker(shapeTypes) {
714 - function validate(props, propName, componentName, location, propFullName) {
715 - var propValue = props[propName];
716 - var propType = getPropType(propValue);
717 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
718 - for (var key in shapeTypes) {
719 - var checker = shapeTypes[key];
720 - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
721 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
722 - if (error) return error;
723 - }
724 - return null;
725 - }
726 - return createChainableTypeChecker(validate);
727 - }
728 - function createStrictShapeTypeChecker(shapeTypes) {
729 - function validate(props, propName, componentName, location, propFullName) {
730 - var propValue = props[propName];
731 - var propType = getPropType(propValue);
732 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
733 - for (var key in assign({}, props[propName], shapeTypes)) {
734 - var checker = shapeTypes[key];
735 - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
736 - if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
737 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
738 - if (error) return error;
739 - }
740 - return null;
741 - }
742 - return createChainableTypeChecker(validate);
743 - }
744 - function isNode(propValue) {
745 - switch (typeof propValue) {
746 - case "number":
747 - case "string":
748 - case "undefined": return true;
749 - case "boolean": return !propValue;
750 - case "object":
751 - if (Array.isArray(propValue)) return propValue.every(isNode);
752 - if (propValue === null || isValidElement(propValue)) return true;
753 - var iteratorFn = getIteratorFn(propValue);
754 - if (iteratorFn) {
755 - var iterator = iteratorFn.call(propValue);
756 - var step;
757 - if (iteratorFn !== propValue.entries) {
758 - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
759 - } else while (!(step = iterator.next()).done) {
760 - var entry = step.value;
761 - if (entry) {
762 - if (!isNode(entry[1])) return false;
763 - }
764 - }
765 - } else return false;
766 - return true;
767 - default: return false;
768 - }
769 - }
770 - function isSymbol(propType, propValue) {
771 - if (propType === "symbol") return true;
772 - if (!propValue) return false;
773 - if (propValue["@@toStringTag"] === "Symbol") return true;
774 - if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
775 - return false;
776 - }
777 - function getPropType(propValue) {
778 - var propType = typeof propValue;
779 - if (Array.isArray(propValue)) return "array";
780 - if (propValue instanceof RegExp) return "object";
781 - if (isSymbol(propType, propValue)) return "symbol";
782 - return propType;
783 - }
784 - function getPreciseType(propValue) {
785 - if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
786 - var propType = getPropType(propValue);
787 - if (propType === "object") {
788 - if (propValue instanceof Date) return "date";
789 - else if (propValue instanceof RegExp) return "regexp";
790 - }
791 - return propType;
792 - }
793 - function getPostfixForTypeWarning(value) {
794 - var type = getPreciseType(value);
795 - switch (type) {
796 - case "array":
797 - case "object": return "an " + type;
798 - case "boolean":
799 - case "date":
800 - case "regexp": return "a " + type;
801 - default: return type;
802 - }
803 - }
804 - function getClassName(propValue) {
805 - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
806 - return propValue.constructor.name;
807 - }
808 - ReactPropTypes.checkPropTypes = checkPropTypes;
809 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
810 - ReactPropTypes.PropTypes = ReactPropTypes;
811 - return ReactPropTypes;
812 - };
813 - }));
4568 + * Use invariant() to assert state which your program assumes to be true.
4569 + *
4570 + * Provide sprintf-style format (only %s is supported) and arguments
4571 + * to provide information about what broke and what you were
4572 + * expecting.
4573 + *
4574 + * The invariant message will be stripped in production, but the invariant
4575 + * will remain to ensure logic does not differ in production.
4576 + */
814 4577
815 -//#endregion
816 -//#region node_modules/prop-types/index.js
817 - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
818 - var ReactIs = require_react_is();
819 - var throwOnDirectAccess = true;
820 - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
821 - }));
4578 +var invariant = function(condition, format, a, b, c, d, e, f) {
4579 + if (false) {}
822 4580
823 -//#endregion
824 -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
825 -var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
826 - function _assertThisInitialized(e) {
827 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
828 - return e;
829 - }
4581 + if (!condition) {
4582 + var error;
4583 + if (format === undefined) {
4584 + error = new Error(
4585 + 'Minified exception occurred; use the non-minified dev environment ' +
4586 + 'for the full error message and additional helpful warnings.'
4587 + );
4588 + } else {
4589 + var args = [a, b, c, d, e, f];
4590 + var argIndex = 0;
4591 + error = new Error(
4592 + format.replace(/%s/g, function() { return args[argIndex++]; })
4593 + );
4594 + error.name = 'Invariant Violation';
4595 + }
830 4596
831 -//#endregion
832 -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
833 - function _possibleConstructorReturn$1(t, e) {
834 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
835 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
836 - return _assertThisInitialized(t);
837 - }
838 - __name(_possibleConstructorReturn$1, "_possibleConstructorReturn");
4597 + error.framesToPop = 1; // we don't care about invariant's own frame
4598 + throw error;
4599 + }
4600 +};
839 4601
840 -//#endregion
841 -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
842 - function _getPrototypeOf(t) {
843 - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
844 - return t.__proto__ || Object.getPrototypeOf(t);
845 - }, _getPrototypeOf(t);
846 - }
4602 +module.exports = invariant;
847 4603
848 -//#endregion
849 -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
850 - function _setPrototypeOf(t, e) {
851 - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
852 - return t.__proto__ = e, t;
853 - }, _setPrototypeOf(t, e);
854 - }
855 4604
856 -//#endregion
857 -//#region node_modules/@babel/runtime/helpers/esm/inherits.js
858 - function _inherits$1(t, e) {
859 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
860 - t.prototype = Object.create(e && e.prototype, { constructor: {
861 - value: t,
862 - writable: !0,
863 - configurable: !0
864 - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
865 - }
866 - __name(_inherits$1, "_inherits");
4605 +/***/ }),
4606 +/* 276 */,
4607 +/* 277 */,
4608 +/* 278 */,
4609 +/* 279 */,
4610 +/* 280 */,
4611 +/* 281 */,
4612 +/* 282 */,
4613 +/* 283 */,
4614 +/* 284 */,
4615 +/* 285 */,
4616 +/* 286 */,
4617 +/* 287 */
4618 +/***/ (function(module, exports, __webpack_require__) {
867 4619
868 -//#endregion
869 -//#region node_modules/@babel/runtime/helpers/esm/extends.js
870 - function _extends$2() {
871 - return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
872 - for (var e = 1; e < arguments.length; e++) {
873 - var t = arguments[e];
874 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
875 - }
876 - return n;
877 - }, _extends$2.apply(null, arguments);
878 - }
879 - __name(_extends$2, "_extends");
4620 +__webpack_require__(288);
4621 +module.exports = __webpack_require__(6).Object.assign;
880 4622
881 -//#endregion
882 -//#region node_modules/invariant/browser.js
4623 +
4624 +/***/ }),
4625 +/* 288 */
4626 +/***/ (function(module, exports, __webpack_require__) {
4627 +
4628 +// 19.1.3.1 Object.assign(target, source)
4629 +var $export = __webpack_require__(7);
4630 +
4631 +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(210) });
4632 +
4633 +
4634 +/***/ }),
4635 +/* 289 */
4636 +/***/ (function(module, exports, __webpack_require__) {
4637 +
4638 +module.exports = __webpack_require__(290);
4639 +
4640 +/***/ }),
4641 +/* 290 */
4642 +/***/ (function(module, exports, __webpack_require__) {
4643 +
4644 +__webpack_require__(291);
4645 +var $Object = __webpack_require__(6).Object;
4646 +module.exports = function defineProperties(T, D) {
4647 + return $Object.defineProperties(T, D);
4648 +};
4649 +
4650 +
4651 +/***/ }),
4652 +/* 291 */
4653 +/***/ (function(module, exports, __webpack_require__) {
4654 +
4655 +var $export = __webpack_require__(7);
4656 +// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
4657 +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(134) });
4658 +
4659 +
4660 +/***/ }),
4661 +/* 292 */,
4662 +/* 293 */,
4663 +/* 294 */,
4664 +/* 295 */,
4665 +/* 296 */,
4666 +/* 297 */,
4667 +/* 298 */,
4668 +/* 299 */
4669 +/***/ (function(module, exports, __webpack_require__) {
4670 +
4671 +var arrayWithoutHoles = __webpack_require__(317);
4672 +
4673 +var iterableToArray = __webpack_require__(318);
4674 +
4675 +var unsupportedIterableToArray = __webpack_require__(186);
4676 +
4677 +var nonIterableSpread = __webpack_require__(319);
4678 +
4679 +function _toConsumableArray(arr) {
4680 + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
4681 +}
4682 +
4683 +module.exports = _toConsumableArray;
4684 +
4685 +/***/ }),
4686 +/* 300 */,
4687 +/* 301 */,
4688 +/* 302 */,
4689 +/* 303 */
4690 +/***/ (function(module, exports, __webpack_require__) {
4691 +
4692 +module.exports = __webpack_require__(304);
4693 +
4694 +/***/ }),
4695 +/* 304 */
4696 +/***/ (function(module, exports, __webpack_require__) {
4697 +
4698 +__webpack_require__(305);
4699 +module.exports = __webpack_require__(6).Object.getOwnPropertyDescriptors;
4700 +
4701 +
4702 +/***/ }),
4703 +/* 305 */
4704 +/***/ (function(module, exports, __webpack_require__) {
4705 +
4706 +// https://github.com/tc39/proposal-object-getownpropertydescriptors
4707 +var $export = __webpack_require__(7);
4708 +var ownKeys = __webpack_require__(306);
4709 +var toIObject = __webpack_require__(20);
4710 +var gOPD = __webpack_require__(51);
4711 +var createProperty = __webpack_require__(185);
4712 +
4713 +$export($export.S, 'Object', {
4714 + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
4715 + var O = toIObject(object);
4716 + var getDesc = gOPD.f;
4717 + var keys = ownKeys(O);
4718 + var result = {};
4719 + var i = 0;
4720 + var key, desc;
4721 + while (keys.length > i) {
4722 + desc = getDesc(O, key = keys[i++]);
4723 + if (desc !== undefined) createProperty(result, key, desc);
4724 + }
4725 + return result;
4726 + }
4727 +});
4728 +
4729 +
4730 +/***/ }),
4731 +/* 306 */
4732 +/***/ (function(module, exports, __webpack_require__) {
4733 +
4734 +// all object keys, includes non-enumerable and symbols
4735 +var gOPN = __webpack_require__(99);
4736 +var gOPS = __webpack_require__(71);
4737 +var anObject = __webpack_require__(13);
4738 +var Reflect = __webpack_require__(8).Reflect;
4739 +module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
4740 + var keys = gOPN.f(anObject(it));
4741 + var getSymbols = gOPS.f;
4742 + return getSymbols ? keys.concat(getSymbols(it)) : keys;
4743 +};
4744 +
4745 +
4746 +/***/ }),
4747 +/* 307 */
4748 +/***/ (function(module, exports, __webpack_require__) {
4749 +
4750 +module.exports = __webpack_require__(308);
4751 +
4752 +/***/ }),
4753 +/* 308 */
4754 +/***/ (function(module, exports, __webpack_require__) {
4755 +
4756 +__webpack_require__(138);
4757 +module.exports = __webpack_require__(6).Object.getOwnPropertySymbols;
4758 +
4759 +
4760 +/***/ }),
4761 +/* 309 */,
4762 +/* 310 */,
4763 +/* 311 */,
4764 +/* 312 */,
4765 +/* 313 */,
4766 +/* 314 */,
4767 +/* 315 */,
4768 +/* 316 */,
4769 +/* 317 */
4770 +/***/ (function(module, exports, __webpack_require__) {
4771 +
4772 +var _Array$isArray = __webpack_require__(81);
4773 +
4774 +var arrayLikeToArray = __webpack_require__(199);
4775 +
4776 +function _arrayWithoutHoles(arr) {
4777 + if (_Array$isArray(arr)) return arrayLikeToArray(arr);
4778 +}
4779 +
4780 +module.exports = _arrayWithoutHoles;
4781 +
4782 +/***/ }),
4783 +/* 318 */
4784 +/***/ (function(module, exports, __webpack_require__) {
4785 +
4786 +var _Array$from = __webpack_require__(200);
4787 +
4788 +var _isIterable = __webpack_require__(209);
4789 +
4790 +var _Symbol = __webpack_require__(111);
4791 +
4792 +function _iterableToArray(iter) {
4793 + if (typeof _Symbol !== "undefined" && _isIterable(Object(iter))) return _Array$from(iter);
4794 +}
4795 +
4796 +module.exports = _iterableToArray;
4797 +
4798 +/***/ }),
4799 +/* 319 */
4800 +/***/ (function(module, exports) {
4801 +
4802 +function _nonIterableSpread() {
4803 + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4804 +}
4805 +
4806 +module.exports = _nonIterableSpread;
4807 +
4808 +/***/ }),
4809 +/* 320 */,
4810 +/* 321 */,
4811 +/* 322 */,
4812 +/* 323 */,
4813 +/* 324 */,
4814 +/* 325 */
4815 +/***/ (function(module, exports, __webpack_require__) {
4816 +
4817 +"use strict";
883 4818 /**
884 - * Copyright (c) 2013-present, Facebook, Inc.
885 - *
886 - * This source code is licensed under the MIT license found in the
887 - * LICENSE file in the root directory of this source tree.
888 - */
889 - var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
890 - /**
891 - * Use invariant() to assert state which your program assumes to be true.
892 - *
893 - * Provide sprintf-style format (only %s is supported) and arguments
894 - * to provide information about what broke and what you were
895 - * expecting.
896 - *
897 - * The invariant message will be stripped in production, but the invariant
898 - * will remain to ensure logic does not differ in production.
899 - */
900 - var invariant = function(condition, format, a, b, c, d, e, f) {
901 - if (format === void 0) throw new Error("invariant requires an error message argument");
902 - if (!condition) {
903 - var error;
904 - if (format === void 0) error = /* @__PURE__ */ new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
905 - else {
906 - var args = [
907 - a,
908 - b,
909 - c,
910 - d,
911 - e,
912 - f
913 - ];
914 - var argIndex = 0;
915 - error = new Error(format.replace(/%s/g, function() {
916 - return args[argIndex++];
917 - }));
918 - error.name = "Invariant Violation";
919 - }
920 - error.framesToPop = 1;
921 - throw error;
922 - }
923 - };
924 - module.exports = invariant;
925 - }));
4819 + * Copyright (c) 2013-present, Facebook, Inc.
4820 + *
4821 + * This source code is licensed under the MIT license found in the
4822 + * LICENSE file in the root directory of this source tree.
4823 + */
926 4824
927 -//#endregion
928 -//#region node_modules/gud/index.js
929 - var require_gud = /* @__PURE__ */ __commonJSMin(((exports, module) => {
930 - var key = "__global_unique_id__";
931 - module.exports = function() {
932 - return global[key] = (global[key] || 0) + 1;
933 - };
934 - }));
935 4825
936 -//#endregion
937 -//#region node_modules/warning/warning.js
4826 +
4827 +var ReactPropTypesSecret = __webpack_require__(326);
4828 +
4829 +function emptyFunction() {}
4830 +function emptyFunctionWithReset() {}
4831 +emptyFunctionWithReset.resetWarningCache = emptyFunction;
4832 +
4833 +module.exports = function() {
4834 + function shim(props, propName, componentName, location, propFullName, secret) {
4835 + if (secret === ReactPropTypesSecret) {
4836 + // It is still safe when called from React.
4837 + return;
4838 + }
4839 + var err = new Error(
4840 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4841 + 'Use PropTypes.checkPropTypes() to call them. ' +
4842 + 'Read more at http://fb.me/use-check-prop-types'
4843 + );
4844 + err.name = 'Invariant Violation';
4845 + throw err;
4846 + };
4847 + shim.isRequired = shim;
4848 + function getShim() {
4849 + return shim;
4850 + };
4851 + // Important!
4852 + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
4853 + var ReactPropTypes = {
4854 + array: shim,
4855 + bool: shim,
4856 + func: shim,
4857 + number: shim,
4858 + object: shim,
4859 + string: shim,
4860 + symbol: shim,
4861 +
4862 + any: shim,
4863 + arrayOf: getShim,
4864 + element: shim,
4865 + elementType: shim,
4866 + instanceOf: getShim,
4867 + node: shim,
4868 + objectOf: getShim,
4869 + oneOf: getShim,
4870 + oneOfType: getShim,
4871 + shape: getShim,
4872 + exact: getShim,
4873 +
4874 + checkPropTypes: emptyFunctionWithReset,
4875 + resetWarningCache: emptyFunction
4876 + };
4877 +
4878 + ReactPropTypes.PropTypes = ReactPropTypes;
4879 +
4880 + return ReactPropTypes;
4881 +};
4882 +
4883 +
4884 +/***/ }),
4885 +/* 326 */
4886 +/***/ (function(module, exports, __webpack_require__) {
4887 +
4888 +"use strict";
938 4889 /**
939 - * Copyright (c) 2014-present, Facebook, Inc.
940 - *
941 - * This source code is licensed under the MIT license found in the
942 - * LICENSE file in the root directory of this source tree.
943 - */
944 - var require_warning = /* @__PURE__ */ __commonJSMin(((exports, module) => {
945 - /**
946 - * Similar to invariant but only logs a warning if the condition is not met.
947 - * This can be used to log issues in development environments in critical
948 - * paths. Removing the logging code for production environments will keep the
949 - * same logic and follow the same code paths.
950 - */
951 - var __DEV__ = true;
952 - var warning = function() {};
953 - if (__DEV__) {
954 - var printWarning = function printWarning(format, args) {
955 - var len = arguments.length;
956 - args = new Array(len > 1 ? len - 1 : 0);
957 - for (var key = 1; key < len; key++) args[key - 1] = arguments[key];
958 - var argIndex = 0;
959 - var message = "Warning: " + format.replace(/%s/g, function() {
960 - return args[argIndex++];
961 - });
962 - if (typeof console !== "undefined") console.error(message);
963 - try {
964 - throw new Error(message);
965 - } catch (x) {}
966 - };
967 - warning = function(condition, format, args) {
968 - var len = arguments.length;
969 - args = new Array(len > 2 ? len - 2 : 0);
970 - for (var key = 2; key < len; key++) args[key - 2] = arguments[key];
971 - if (format === void 0) throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
972 - if (!condition) printWarning.apply(null, [format].concat(args));
973 - };
974 - }
975 - module.exports = warning;
976 - }));
4890 + * Copyright (c) 2013-present, Facebook, Inc.
4891 + *
4892 + * This source code is licensed under the MIT license found in the
4893 + * LICENSE file in the root directory of this source tree.
4894 + */
977 4895
978 -//#endregion
979 -//#region node_modules/create-react-context/lib/implementation.js
980 - var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
981 - exports.__esModule = true;
982 - var _react = (globalThis.React);
983 - _interopRequireDefault(_react);
984 - var _propTypes2 = _interopRequireDefault(require_prop_types());
985 - var _gud2 = _interopRequireDefault(require_gud());
986 - var _warning2 = _interopRequireDefault(require_warning());
987 - function _interopRequireDefault(obj) {
988 - return obj && obj.__esModule ? obj : { default: obj };
989 - }
990 - function _classCallCheck(instance, Constructor) {
991 - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
992 - }
993 - function _possibleConstructorReturn(self, call) {
994 - if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
995 - return call && (typeof call === "object" || typeof call === "function") ? call : self;
996 - }
997 - function _inherits(subClass, superClass) {
998 - if (typeof superClass !== "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
999 - subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: {
1000 - value: subClass,
1001 - enumerable: false,
1002 - writable: true,
1003 - configurable: true
1004 - } });
1005 - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
1006 - }
1007 - var MAX_SIGNED_31_BIT_INT = 1073741823;
1008 - function objectIs(x, y) {
1009 - if (x === y) return x !== 0 || 1 / x === 1 / y;
1010 - else return x !== x && y !== y;
1011 - }
1012 - function createEventEmitter(value) {
1013 - var handlers = [];
1014 - return {
1015 - on: function on(handler) {
1016 - handlers.push(handler);
1017 - },
1018 - off: function off(handler) {
1019 - handlers = handlers.filter(function(h) {
1020 - return h !== handler;
1021 - });
1022 - },
1023 - get: function get() {
1024 - return value;
1025 - },
1026 - set: function set(newValue, changedBits) {
1027 - value = newValue;
1028 - handlers.forEach(function(handler) {
1029 - return handler(value, changedBits);
1030 - });
1031 - }
1032 - };
1033 - }
1034 - function onlyChild(children) {
1035 - return Array.isArray(children) ? children[0] : children;
1036 - }
1037 - function createReactContext(defaultValue, calculateChangedBits) {
1038 - var _Provider$childContex;
1039 - var _Consumer$contextType;
1040 - var contextProp = "__create-react-context-" + (0, _gud2.default)() + "__";
1041 - var Provider = function(_Component) {
1042 - _inherits(Provider, _Component);
1043 - function Provider() {
1044 - var _temp;
1045 - var _this;
1046 - var _ret;
1047 - _classCallCheck(this, Provider);
1048 - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
1049 - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);
1050 - }
1051 - Provider.prototype.getChildContext = function getChildContext() {
1052 - var _ref;
1053 - return _ref = {}, _ref[contextProp] = this.emitter, _ref;
1054 - };
1055 - Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1056 - if (this.props.value !== nextProps.value) {
1057 - var oldValue = this.props.value;
1058 - var newValue = nextProps.value;
1059 - var changedBits = void 0;
1060 - if (objectIs(oldValue, newValue)) changedBits = 0;
1061 - else {
1062 - changedBits = typeof calculateChangedBits === "function" ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
1063 - (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, "calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s", changedBits);
1064 - changedBits |= 0;
1065 - if (changedBits !== 0) this.emitter.set(nextProps.value, changedBits);
1066 - }
1067 - }
1068 - };
1069 - Provider.prototype.render = function render() {
1070 - return this.props.children;
1071 - };
1072 - return Provider;
1073 - }(_react.Component);
1074 - Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);
1075 - var Consumer = function(_Component2) {
1076 - _inherits(Consumer, _Component2);
1077 - function Consumer() {
1078 - var _temp2;
1079 - var _this2;
1080 - var _ret2;
1081 - _classCallCheck(this, Consumer);
1082 - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2];
1083 - return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = { value: _this2.getValue() }, _this2.onUpdate = function(newValue, changedBits) {
1084 - if (((_this2.observedBits | 0) & changedBits) !== 0) _this2.setState({ value: _this2.getValue() });
1085 - }, _temp2), _possibleConstructorReturn(_this2, _ret2);
1086 - }
1087 - Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1088 - var observedBits = nextProps.observedBits;
1089 - this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1090 - };
1091 - Consumer.prototype.componentDidMount = function componentDidMount() {
1092 - if (this.context[contextProp]) this.context[contextProp].on(this.onUpdate);
1093 - var observedBits = this.props.observedBits;
1094 - this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1095 - };
1096 - Consumer.prototype.componentWillUnmount = function componentWillUnmount() {
1097 - if (this.context[contextProp]) this.context[contextProp].off(this.onUpdate);
1098 - };
1099 - Consumer.prototype.getValue = function getValue() {
1100 - if (this.context[contextProp]) return this.context[contextProp].get();
1101 - else return defaultValue;
1102 - };
1103 - Consumer.prototype.render = function render() {
1104 - return onlyChild(this.props.children)(this.state.value);
1105 - };
1106 - return Consumer;
1107 - }(_react.Component);
1108 - Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);
1109 - return {
1110 - Provider,
1111 - Consumer
1112 - };
1113 - }
1114 - exports.default = createReactContext;
1115 - module.exports = exports["default"];
1116 - }));
1117 4896
1118 -//#endregion
1119 -//#region node_modules/create-react-context/lib/index.js
1120 - var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1121 - exports.__esModule = true;
1122 - var _react2 = _interopRequireDefault((globalThis.React));
1123 - var _implementation2 = _interopRequireDefault(require_implementation());
1124 - function _interopRequireDefault(obj) {
1125 - return obj && obj.__esModule ? obj : { default: obj };
1126 - }
1127 - exports.default = _react2.default.createContext || _implementation2.default;
1128 - module.exports = exports["default"];
1129 - }));
1130 4897
1131 -//#endregion
1132 -//#region node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js
1133 -var import_browser = /* @__PURE__ */ __toESM(require_browser());
1134 -var import_lib = /* @__PURE__ */ __toESM(require_lib());
4898 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4899 +
4900 +module.exports = ReactPropTypesSecret;
4901 +
4902 +
4903 +/***/ }),
4904 +/* 327 */,
4905 +/* 328 */,
4906 +/* 329 */,
4907 +/* 330 */,
4908 +/* 331 */,
4909 +/* 332 */,
4910 +/* 333 */,
4911 +/* 334 */,
4912 +/* 335 */,
4913 +/* 336 */
4914 +/***/ (function(module, exports, __webpack_require__) {
4915 +
4916 +"use strict";
4917 +/* WEBPACK VAR INJECTION */(function(React, PropTypes) {
4918 +
4919 +var _Object$defineProperty = __webpack_require__(1);
4920 +
4921 +_Object$defineProperty(exports, "__esModule", {
4922 + value: true
4923 +});
4924 +
4925 +exports.default = Heading;
4926 +
4927 +__webpack_require__(141);
4928 +
4929 +function Heading(props) {
4930 + var baseClassName = 'eps',
4931 + allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
4932 + classes = [props.className],
4933 + tagName = allowedTags.includes(props.tag) ? props.tag : 'h1';
4934 +
4935 + if (props.variant) {
4936 + classes.push(baseClassName + '-' + props.variant);
4937 + }
4938 +
4939 + return React.createElement(tagName, {
4940 + className: classes.filter(function (classItem) {
4941 + return classItem;
4942 + }).join(' ')
4943 + }, props.children);
4944 +}
4945 +
4946 +Heading.propTypes = {
4947 + className: PropTypes.string,
4948 + children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired,
4949 + tag: PropTypes.string,
4950 + variant: PropTypes.string.isRequired
4951 +};
4952 +Heading.defaultProps = {
4953 + className: ''
4954 +};
4955 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(11), __webpack_require__(41)))
4956 +
4957 +/***/ }),
4958 +/* 337 */,
4959 +/* 338 */,
4960 +/* 339 */,
4961 +/* 340 */
4962 +/***/ (function(module, __webpack_exports__, __webpack_require__) {
4963 +
4964 +"use strict";
4965 +// ESM COMPAT FLAG
4966 +__webpack_require__.r(__webpack_exports__);
4967 +
4968 +// EXPORTS
4969 +__webpack_require__.d(__webpack_exports__, "Link", function() { return /* binding */ Link; });
4970 +__webpack_require__.d(__webpack_exports__, "Location", function() { return /* binding */ es_Location; });
4971 +__webpack_require__.d(__webpack_exports__, "LocationProvider", function() { return /* binding */ es_LocationProvider; });
4972 +__webpack_require__.d(__webpack_exports__, "Match", function() { return /* binding */ es_Match; });
4973 +__webpack_require__.d(__webpack_exports__, "Redirect", function() { return /* binding */ es_Redirect; });
4974 +__webpack_require__.d(__webpack_exports__, "Router", function() { return /* binding */ es_Router; });
4975 +__webpack_require__.d(__webpack_exports__, "ServerLocation", function() { return /* binding */ es_ServerLocation; });
4976 +__webpack_require__.d(__webpack_exports__, "createHistory", function() { return /* reexport */ createHistory; });
4977 +__webpack_require__.d(__webpack_exports__, "createMemorySource", function() { return /* reexport */ createMemorySource; });
4978 +__webpack_require__.d(__webpack_exports__, "isRedirect", function() { return /* binding */ isRedirect; });
4979 +__webpack_require__.d(__webpack_exports__, "navigate", function() { return /* reexport */ history_navigate; });
4980 +__webpack_require__.d(__webpack_exports__, "redirectTo", function() { return /* binding */ redirectTo; });
4981 +__webpack_require__.d(__webpack_exports__, "globalHistory", function() { return /* reexport */ globalHistory; });
4982 +__webpack_require__.d(__webpack_exports__, "matchPath", function() { return /* reexport */ utils_match; });
4983 +__webpack_require__.d(__webpack_exports__, "useLocation", function() { return /* binding */ es_useLocation; });
4984 +__webpack_require__.d(__webpack_exports__, "useNavigate", function() { return /* binding */ es_useNavigate; });
4985 +__webpack_require__.d(__webpack_exports__, "useParams", function() { return /* binding */ es_useParams; });
4986 +__webpack_require__.d(__webpack_exports__, "useMatch", function() { return /* binding */ es_useMatch; });
4987 +
4988 +// EXTERNAL MODULE: external "React"
4989 +var external_React_ = __webpack_require__(11);
4990 +var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
4991 +
4992 +// EXTERNAL MODULE: ../node_modules/prop-types/index.js
4993 +var prop_types = __webpack_require__(41);
4994 +
4995 +// EXTERNAL MODULE: ../node_modules/invariant/browser.js
4996 +var browser = __webpack_require__(275);
4997 +var browser_default = /*#__PURE__*/__webpack_require__.n(browser);
4998 +
4999 +// EXTERNAL MODULE: ../node_modules/create-react-context/lib/index.js
5000 +var lib = __webpack_require__(410);
5001 +var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
5002 +
5003 +// CONCATENATED MODULE: ../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js
1135 5004 /**
1136 - * Copyright (c) 2013-present, Facebook, Inc.
1137 - *
1138 - * This source code is licensed under the MIT license found in the
1139 - * LICENSE file in the root directory of this source tree.
1140 - */
1141 - function componentWillMount() {
1142 - var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
1143 - if (state !== null && state !== void 0) this.setState(state);
1144 - }
1145 - function componentWillReceiveProps(nextProps) {
1146 - function updater(prevState) {
1147 - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
1148 - return state !== null && state !== void 0 ? state : null;
1149 - }
1150 - this.setState(updater.bind(this));
1151 - }
1152 - function componentWillUpdate(nextProps, nextState) {
1153 - try {
1154 - var prevProps = this.props;
1155 - var prevState = this.state;
1156 - this.props = nextProps;
1157 - this.state = nextState;
1158 - this.__reactInternalSnapshotFlag = true;
1159 - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);
1160 - } finally {
1161 - this.props = prevProps;
1162 - this.state = prevState;
1163 - }
1164 - }
1165 - componentWillMount.__suppressDeprecationWarning = true;
1166 - componentWillReceiveProps.__suppressDeprecationWarning = true;
1167 - componentWillUpdate.__suppressDeprecationWarning = true;
1168 - function polyfill(Component) {
1169 - var prototype = Component.prototype;
1170 - if (!prototype || !prototype.isReactComponent) throw new Error("Can only polyfill class components");
1171 - if (typeof Component.getDerivedStateFromProps !== "function" && typeof prototype.getSnapshotBeforeUpdate !== "function") return Component;
1172 - var foundWillMountName = null;
1173 - var foundWillReceivePropsName = null;
1174 - var foundWillUpdateName = null;
1175 - if (typeof prototype.componentWillMount === "function") foundWillMountName = "componentWillMount";
1176 - else if (typeof prototype.UNSAFE_componentWillMount === "function") foundWillMountName = "UNSAFE_componentWillMount";
1177 - if (typeof prototype.componentWillReceiveProps === "function") foundWillReceivePropsName = "componentWillReceiveProps";
1178 - else if (typeof prototype.UNSAFE_componentWillReceiveProps === "function") foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps";
1179 - if (typeof prototype.componentWillUpdate === "function") foundWillUpdateName = "componentWillUpdate";
1180 - else if (typeof prototype.UNSAFE_componentWillUpdate === "function") foundWillUpdateName = "UNSAFE_componentWillUpdate";
1181 - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
1182 - var componentName = Component.displayName || Component.name;
1183 - var newApiName = typeof Component.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
1184 - throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + componentName + " uses " + newApiName + " but also contains the following legacy lifecycles:" + (foundWillMountName !== null ? "\n " + foundWillMountName : "") + (foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "") + (foundWillUpdateName !== null ? "\n " + foundWillUpdateName : "") + "\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");
1185 - }
1186 - if (typeof Component.getDerivedStateFromProps === "function") {
1187 - prototype.componentWillMount = componentWillMount;
1188 - prototype.componentWillReceiveProps = componentWillReceiveProps;
1189 - }
1190 - if (typeof prototype.getSnapshotBeforeUpdate === "function") {
1191 - if (typeof prototype.componentDidUpdate !== "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
1192 - prototype.componentWillUpdate = componentWillUpdate;
1193 - var componentDidUpdate = prototype.componentDidUpdate;
1194 - prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) {
1195 - var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot;
1196 - componentDidUpdate.call(this, prevProps, prevState, snapshot);
1197 - };
1198 - }
1199 - return Component;
1200 - }
5005 + * Copyright (c) 2013-present, Facebook, Inc.
5006 + *
5007 + * This source code is licensed under the MIT license found in the
5008 + * LICENSE file in the root directory of this source tree.
5009 + */
1201 5010
1202 -//#endregion
1203 -//#region node_modules/@reach/router/es/lib/utils.js
1204 - var startsWith = function startsWith(string, search) {
1205 - return string.substr(0, search.length) === search;
1206 - };
1207 - var pick = function pick(routes, uri) {
1208 - var match = void 0;
1209 - var default_ = void 0;
1210 - var uriPathname = uri.split("?")[0];
1211 - var uriSegments = segmentize(uriPathname);
1212 - var isRootUri = uriSegments[0] === "";
1213 - var ranked = rankRoutes(routes);
1214 - for (var i = 0, l = ranked.length; i < l; i++) {
1215 - var missed = false;
1216 - var route = ranked[i].route;
1217 - if (route.default) {
1218 - default_ = {
1219 - route,
1220 - params: {},
1221 - uri
1222 - };
1223 - continue;
1224 - }
1225 - var routeSegments = segmentize(route.path);
1226 - var params = {};
1227 - var max = Math.max(uriSegments.length, routeSegments.length);
1228 - var index = 0;
1229 - for (; index < max; index++) {
1230 - var routeSegment = routeSegments[index];
1231 - var uriSegment = uriSegments[index];
1232 - if (isSplat(routeSegment)) {
1233 - var param = routeSegment.slice(1) || "*";
1234 - params[param] = uriSegments.slice(index).map(decodeURIComponent).join("/");
1235 - break;
1236 - }
1237 - if (uriSegment === void 0) {
1238 - missed = true;
1239 - break;
1240 - }
1241 - var dynamicMatch = paramRe.exec(routeSegment);
1242 - if (dynamicMatch && !isRootUri) {
1243 - !(reservedNames.indexOf(dynamicMatch[1]) === -1) && (0, import_browser.default)(false, "<Router> dynamic segment \"" + dynamicMatch[1] + "\" is a reserved name. Please use a different name in path \"" + route.path + "\".");
1244 - var value = decodeURIComponent(uriSegment);
1245 - params[dynamicMatch[1]] = value;
1246 - } else if (routeSegment !== uriSegment) {
1247 - missed = true;
1248 - break;
1249 - }
1250 - }
1251 - if (!missed) {
1252 - match = {
1253 - route,
1254 - params,
1255 - uri: "/" + uriSegments.slice(0, index).join("/")
1256 - };
1257 - break;
1258 - }
1259 - }
1260 - return match || default_ || null;
1261 - };
1262 - var match = function match(path, uri) {
1263 - return pick([{ path }], uri);
1264 - };
1265 - var resolve = function resolve(to, base) {
1266 - if (startsWith(to, "/")) return to;
1267 - var _to$split = to.split("?");
1268 - var toPathname = _to$split[0];
1269 - var toQuery = _to$split[1];
1270 - var basePathname = base.split("?")[0];
1271 - var toSegments = segmentize(toPathname);
1272 - var baseSegments = segmentize(basePathname);
1273 - if (toSegments[0] === "") return addQuery(basePathname, toQuery);
1274 - if (!startsWith(toSegments[0], ".")) {
1275 - var pathname = baseSegments.concat(toSegments).join("/");
1276 - return addQuery((basePathname === "/" ? "" : "/") + pathname, toQuery);
1277 - }
1278 - var allSegments = baseSegments.concat(toSegments);
1279 - var segments = [];
1280 - for (var i = 0, l = allSegments.length; i < l; i++) {
1281 - var segment = allSegments[i];
1282 - if (segment === "..") segments.pop();
1283 - else if (segment !== ".") segments.push(segment);
1284 - }
1285 - return addQuery("/" + segments.join("/"), toQuery);
1286 - };
1287 - var insertParams = function insertParams(path, params) {
1288 - var _path$split = path.split("?");
1289 - var pathBase = _path$split[0];
1290 - var _path$split$ = _path$split[1];
1291 - var query = _path$split$ === void 0 ? "" : _path$split$;
1292 - var constructedPath = "/" + segmentize(pathBase).map(function(segment) {
1293 - var match = paramRe.exec(segment);
1294 - return match ? params[match[1]] : segment;
1295 - }).join("/");
1296 - var _params$location = params.location;
1297 - _params$location = _params$location === void 0 ? {} : _params$location;
1298 - var _params$location$sear = _params$location.search;
1299 - var searchSplit = (_params$location$sear === void 0 ? "" : _params$location$sear).split("?")[1] || "";
1300 - constructedPath = addQuery(constructedPath, query, searchSplit);
1301 - return constructedPath;
1302 - };
1303 - var validateRedirect = function validateRedirect(from, to) {
1304 - var filter = function filter(segment) {
1305 - return isDynamic(segment);
1306 - };
1307 - return segmentize(from).filter(filter).sort().join("/") === segmentize(to).filter(filter).sort().join("/");
1308 - };
1309 - var paramRe = /^:(.+)/;
1310 - var SEGMENT_POINTS = 4;
1311 - var STATIC_POINTS = 3;
1312 - var DYNAMIC_POINTS = 2;
1313 - var SPLAT_PENALTY = 1;
1314 - var ROOT_POINTS = 1;
1315 - var isRootSegment = function isRootSegment(segment) {
1316 - return segment === "";
1317 - };
1318 - var isDynamic = function isDynamic(segment) {
1319 - return paramRe.test(segment);
1320 - };
1321 - var isSplat = function isSplat(segment) {
1322 - return segment && segment[0] === "*";
1323 - };
1324 - var rankRoute = function rankRoute(route, index) {
1325 - return {
1326 - route,
1327 - score: route.default ? 0 : segmentize(route.path).reduce(function(score, segment) {
1328 - score += SEGMENT_POINTS;
1329 - if (isRootSegment(segment)) score += ROOT_POINTS;
1330 - else if (isDynamic(segment)) score += DYNAMIC_POINTS;
1331 - else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;
1332 - else score += STATIC_POINTS;
1333 - return score;
1334 - }, 0),
1335 - index
1336 - };
1337 - };
1338 - var rankRoutes = function rankRoutes(routes) {
1339 - return routes.map(rankRoute).sort(function(a, b) {
1340 - return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index;
1341 - });
1342 - };
1343 - var segmentize = function segmentize(uri) {
1344 - return uri.replace(/(^\/+|\/+$)/g, "").split("/");
1345 - };
1346 - var addQuery = function addQuery(pathname) {
1347 - for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) query[_key - 1] = arguments[_key];
1348 - query = query.filter(function(q) {
1349 - return q && q.length > 0;
1350 - });
1351 - return pathname + (query && query.length > 0 ? "?" + query.join("&") : "");
1352 - };
1353 - var reservedNames = ["uri", "path"];
1354 - /**
1355 - * Shallow compares two objects.
1356 - * @param {Object} obj1 The first object to compare.
1357 - * @param {Object} obj2 The second object to compare.
1358 - */
1359 - var shallowCompare = function shallowCompare(obj1, obj2) {
1360 - var obj1Keys = Object.keys(obj1);
1361 - return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function(key) {
1362 - return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];
1363 - });
1364 - };
5011 +function componentWillMount() {
5012 + // Call this.constructor.gDSFP to support sub-classes.
5013 + var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
5014 + if (state !== null && state !== undefined) {
5015 + this.setState(state);
5016 + }
5017 +}
1365 5018
1366 -//#endregion
1367 -//#region node_modules/@reach/router/es/lib/history.js
1368 - var _extends$1 = Object.assign || function(target) {
1369 - for (var i = 1; i < arguments.length; i++) {
1370 - var source = arguments[i];
1371 - for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
1372 - }
1373 - return target;
1374 - };
1375 - var getLocation = function getLocation(source) {
1376 - var _source$location = source.location;
1377 - var search = _source$location.search;
1378 - var hash = _source$location.hash;
1379 - var href = _source$location.href;
1380 - var origin = _source$location.origin;
1381 - var protocol = _source$location.protocol;
1382 - var host = _source$location.host;
1383 - var hostname = _source$location.hostname;
1384 - var port = _source$location.port;
1385 - var pathname = source.location.pathname;
1386 - if (!pathname && href && canUseDOM) pathname = new URL(href).pathname;
1387 - return {
1388 - pathname: encodeURI(decodeURI(pathname)),
1389 - search,
1390 - hash,
1391 - href,
1392 - origin,
1393 - protocol,
1394 - host,
1395 - hostname,
1396 - port,
1397 - state: source.history.state,
1398 - key: source.history.state && source.history.state.key || "initial"
1399 - };
1400 - };
1401 - var createHistory = function createHistory(source, options) {
1402 - var listeners = [];
1403 - var location = getLocation(source);
1404 - var transitioning = false;
1405 - var resolveTransition = function resolveTransition() {};
1406 - return {
1407 - get location() {
1408 - return location;
1409 - },
1410 - get transitioning() {
1411 - return transitioning;
1412 - },
1413 - _onTransitionComplete: function _onTransitionComplete() {
1414 - transitioning = false;
1415 - resolveTransition();
1416 - },
1417 - listen: function listen(listener) {
1418 - listeners.push(listener);
1419 - var popstateListener = function popstateListener() {
1420 - location = getLocation(source);
1421 - listener({
1422 - location,
1423 - action: "POP"
1424 - });
1425 - };
1426 - source.addEventListener("popstate", popstateListener);
1427 - return function() {
1428 - source.removeEventListener("popstate", popstateListener);
1429 - listeners = listeners.filter(function(fn) {
1430 - return fn !== listener;
1431 - });
1432 - };
1433 - },
1434 - navigate: function navigate(to) {
1435 - var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1436 - var state = _ref.state;
1437 - var _ref$replace = _ref.replace;
1438 - var replace = _ref$replace === void 0 ? false : _ref$replace;
1439 - if (typeof to === "number") source.history.go(to);
1440 - else {
1441 - state = _extends$1({}, state, { key: Date.now() + "" });
1442 - try {
1443 - if (transitioning || replace) source.history.replaceState(state, null, to);
1444 - else source.history.pushState(state, null, to);
1445 - } catch (e) {
1446 - source.location[replace ? "replace" : "assign"](to);
1447 - }
1448 - }
1449 - location = getLocation(source);
1450 - transitioning = true;
1451 - var transition = new Promise(function(res) {
1452 - return resolveTransition = res;
1453 - });
1454 - listeners.forEach(function(listener) {
1455 - return listener({
1456 - location,
1457 - action: "PUSH"
1458 - });
1459 - });
1460 - return transition;
1461 - }
1462 - };
1463 - };
1464 - var createMemorySource = function createMemorySource() {
1465 - var initialPath = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "/";
1466 - var searchIndex = initialPath.indexOf("?");
1467 - var initialLocation = {
1468 - pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath,
1469 - search: searchIndex > -1 ? initialPath.substr(searchIndex) : ""
1470 - };
1471 - var index = 0;
1472 - var stack = [initialLocation];
1473 - var states = [null];
1474 - return {
1475 - get location() {
1476 - return stack[index];
1477 - },
1478 - addEventListener: function addEventListener(name, fn) {},
1479 - removeEventListener: function removeEventListener(name, fn) {},
1480 - history: {
1481 - get entries() {
1482 - return stack;
1483 - },
1484 - get index() {
1485 - return index;
1486 - },
1487 - get state() {
1488 - return states[index];
1489 - },
1490 - pushState: function pushState(state, _, uri) {
1491 - var _uri$split = uri.split("?");
1492 - var pathname = _uri$split[0];
1493 - var _uri$split$ = _uri$split[1];
1494 - var search = _uri$split$ === void 0 ? "" : _uri$split$;
1495 - index++;
1496 - stack.push({
1497 - pathname,
1498 - search: search.length ? "?" + search : search
1499 - });
1500 - states.push(state);
1501 - },
1502 - replaceState: function replaceState(state, _, uri) {
1503 - var _uri$split2 = uri.split("?");
1504 - var pathname = _uri$split2[0];
1505 - var _uri$split2$ = _uri$split2[1];
1506 - stack[index] = {
1507 - pathname,
1508 - search: _uri$split2$ === void 0 ? "" : _uri$split2$
1509 - };
1510 - states[index] = state;
1511 - },
1512 - go: function go(to) {
1513 - var newIndex = index + to;
1514 - if (newIndex < 0 || newIndex > states.length - 1) return;
1515 - index = newIndex;
1516 - }
1517 - }
1518 - };
1519 - };
1520 - var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
1521 - var globalHistory = createHistory(function getSource() {
1522 - return canUseDOM ? window : createMemorySource();
1523 - }());
1524 - var navigate = globalHistory.navigate;
5019 +function componentWillReceiveProps(nextProps) {
5020 + // Call this.constructor.gDSFP to support sub-classes.
5021 + // Use the setState() updater to ensure state isn't stale in certain edge cases.
5022 + function updater(prevState) {
5023 + var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
5024 + return state !== null && state !== undefined ? state : null;
5025 + }
5026 + // Binding "this" is important for shallow renderer support.
5027 + this.setState(updater.bind(this));
5028 +}
1525 5029
1526 -//#endregion
1527 -//#region node_modules/@reach/router/es/index.js
1528 - var _extends = Object.assign || function(target) {
1529 - for (var i = 1; i < arguments.length; i++) {
1530 - var source = arguments[i];
1531 - for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
1532 - }
1533 - return target;
1534 - };
1535 - function _objectWithoutProperties$1(obj, keys) {
1536 - var target = {};
1537 - for (var i in obj) {
1538 - if (keys.indexOf(i) >= 0) continue;
1539 - if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
1540 - target[i] = obj[i];
1541 - }
1542 - return target;
1543 - }
1544 - __name(_objectWithoutProperties$1, "_objectWithoutProperties");
1545 - function _classCallCheck(instance, Constructor) {
1546 - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
1547 - }
1548 - function _possibleConstructorReturn(self, call) {
1549 - if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1550 - return call && (typeof call === "object" || typeof call === "function") ? call : self;
1551 - }
1552 - function _inherits(subClass, superClass) {
1553 - if (typeof superClass !== "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
1554 - subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: {
1555 - value: subClass,
1556 - enumerable: false,
1557 - writable: true,
1558 - configurable: true
1559 - } });
1560 - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
1561 - }
1562 - var createNamedContext = function createNamedContext(name, defaultValue) {
1563 - var Ctx = (0, import_lib.default)(defaultValue);
1564 - Ctx.displayName = name;
1565 - return Ctx;
1566 - };
1567 - var LocationContext = createNamedContext("Location");
1568 - var Location = function Location(_ref) {
1569 - var children = _ref.children;
1570 - return react.default.createElement(LocationContext.Consumer, null, function(context) {
1571 - return context ? children(context) : react.default.createElement(LocationProvider, null, children);
1572 - });
1573 - };
1574 - var LocationProvider = function(_React$Component) {
1575 - _inherits(LocationProvider, _React$Component);
1576 - function LocationProvider() {
1577 - var _temp;
1578 - var _this;
1579 - var _ret;
1580 - _classCallCheck(this, LocationProvider);
1581 - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
1582 - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
1583 - context: _this.getContext(),
1584 - refs: { unlisten: null }
1585 - }, _temp), _possibleConstructorReturn(_this, _ret);
1586 - }
1587 - LocationProvider.prototype.getContext = function getContext() {
1588 - var _props$history = this.props.history;
1589 - return {
1590 - navigate: _props$history.navigate,
1591 - location: _props$history.location
1592 - };
1593 - };
1594 - LocationProvider.prototype.componentDidCatch = function componentDidCatch(error, info) {
1595 - if (isRedirect(error)) {
1596 - var _navigate = this.props.history.navigate;
1597 - _navigate(error.uri, { replace: true });
1598 - } else throw error;
1599 - };
1600 - LocationProvider.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
1601 - if (prevState.context.location !== this.state.context.location) this.props.history._onTransitionComplete();
1602 - };
1603 - LocationProvider.prototype.componentDidMount = function componentDidMount() {
1604 - var _this2 = this;
1605 - var refs = this.state.refs;
1606 - var history = this.props.history;
1607 - history._onTransitionComplete();
1608 - refs.unlisten = history.listen(function() {
1609 - Promise.resolve().then(function() {
1610 - requestAnimationFrame(function() {
1611 - if (!_this2.unmounted) _this2.setState(function() {
1612 - return { context: _this2.getContext() };
1613 - });
1614 - });
1615 - });
1616 - });
1617 - };
1618 - LocationProvider.prototype.componentWillUnmount = function componentWillUnmount() {
1619 - var refs = this.state.refs;
1620 - this.unmounted = true;
1621 - refs.unlisten();
1622 - };
1623 - LocationProvider.prototype.render = function render() {
1624 - var context = this.state.context;
1625 - var children = this.props.children;
1626 - return react.default.createElement(LocationContext.Provider, { value: context }, typeof children === "function" ? children(context) : children || null);
1627 - };
1628 - return LocationProvider;
1629 - }(react.default.Component);
1630 - LocationProvider.defaultProps = { history: globalHistory };
1631 - LocationProvider.propTypes = { history: import_prop_types.default.object.isRequired };
1632 - var BaseContext = createNamedContext("Base", {
1633 - baseuri: "/",
1634 - basepath: "/"
1635 - });
1636 - var Router = function Router(props) {
1637 - return react.default.createElement(BaseContext.Consumer, null, function(baseContext) {
1638 - return react.default.createElement(Location, null, function(locationContext) {
1639 - return react.default.createElement(RouterImpl, _extends({}, baseContext, locationContext, props));
1640 - });
1641 - });
1642 - };
1643 - var RouterImpl = function(_React$PureComponent) {
1644 - _inherits(RouterImpl, _React$PureComponent);
1645 - function RouterImpl() {
1646 - _classCallCheck(this, RouterImpl);
1647 - return _possibleConstructorReturn(this, _React$PureComponent.apply(this, arguments));
1648 - }
1649 - RouterImpl.prototype.render = function render() {
1650 - var _props = this.props;
1651 - var location = _props.location;
1652 - var _navigate2 = _props.navigate;
1653 - var basepath = _props.basepath;
1654 - var primary = _props.primary;
1655 - var children = _props.children;
1656 - _props.baseuri;
1657 - var _props$component = _props.component;
1658 - var component = _props$component === void 0 ? "div" : _props$component;
1659 - var domProps = _objectWithoutProperties$1(_props, [
1660 - "location",
1661 - "navigate",
1662 - "basepath",
1663 - "primary",
1664 - "children",
1665 - "baseuri",
1666 - "component"
1667 - ]);
1668 - var routes = react.default.Children.toArray(children).reduce(function(array, child) {
1669 - var routes = createRoute(basepath)(child);
1670 - return array.concat(routes);
1671 - }, []);
1672 - var pathname = location.pathname;
1673 - var match = pick(routes, pathname);
1674 - if (match) {
1675 - var params = match.params;
1676 - var uri = match.uri;
1677 - var route = match.route;
1678 - var element = match.route.value;
1679 - basepath = route.default ? basepath : route.path.replace(/\*$/, "");
1680 - var props = _extends({}, params, {
1681 - uri,
1682 - location,
1683 - navigate: function navigate(to, options) {
1684 - return _navigate2(resolve(to, uri), options);
1685 - }
1686 - });
1687 - var clone = react.default.cloneElement(element, props, element.props.children ? react.default.createElement(Router, {
1688 - location,
1689 - primary
1690 - }, element.props.children) : void 0);
1691 - var FocusWrapper = primary ? FocusHandler : component;
1692 - var wrapperProps = primary ? _extends({
1693 - uri,
1694 - location,
1695 - component
1696 - }, domProps) : domProps;
1697 - return react.default.createElement(BaseContext.Provider, { value: {
1698 - baseuri: uri,
1699 - basepath
1700 - } }, react.default.createElement(FocusWrapper, wrapperProps, clone));
1701 - } else return null;
1702 - };
1703 - return RouterImpl;
1704 - }(react.default.PureComponent);
1705 - RouterImpl.defaultProps = { primary: true };
1706 - var FocusContext = createNamedContext("Focus");
1707 - var FocusHandler = function FocusHandler(_ref3) {
1708 - var uri = _ref3.uri;
1709 - var location = _ref3.location;
1710 - var component = _ref3.component;
1711 - var domProps = _objectWithoutProperties$1(_ref3, [
1712 - "uri",
1713 - "location",
1714 - "component"
1715 - ]);
1716 - return react.default.createElement(FocusContext.Consumer, null, function(requestFocus) {
1717 - return react.default.createElement(FocusHandlerImpl, _extends({}, domProps, {
1718 - component,
1719 - requestFocus,
1720 - uri,
1721 - location
1722 - }));
1723 - });
1724 - };
1725 - var initialRender = true;
1726 - var focusHandlerCount = 0;
1727 - var FocusHandlerImpl = function(_React$Component2) {
1728 - _inherits(FocusHandlerImpl, _React$Component2);
1729 - function FocusHandlerImpl() {
1730 - var _temp2;
1731 - var _this4;
1732 - var _ret2;
1733 - _classCallCheck(this, FocusHandlerImpl);
1734 - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2];
1735 - return _ret2 = (_temp2 = (_this4 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this4), _this4.state = {}, _this4.requestFocus = function(node) {
1736 - if (!_this4.state.shouldFocus && node) node.focus();
1737 - }, _temp2), _possibleConstructorReturn(_this4, _ret2);
1738 - }
1739 - FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
1740 - if (prevState.uri == null) return _extends({ shouldFocus: true }, nextProps);
1741 - else {
1742 - var myURIChanged = nextProps.uri !== prevState.uri;
1743 - var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri;
1744 - return _extends({ shouldFocus: myURIChanged || navigatedUpToMe }, nextProps);
1745 - }
1746 - };
1747 - FocusHandlerImpl.prototype.componentDidMount = function componentDidMount() {
1748 - focusHandlerCount++;
1749 - this.focus();
1750 - };
1751 - FocusHandlerImpl.prototype.componentWillUnmount = function componentWillUnmount() {
1752 - focusHandlerCount--;
1753 - if (focusHandlerCount === 0) initialRender = true;
1754 - };
1755 - FocusHandlerImpl.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
1756 - if (prevProps.location !== this.props.location && this.state.shouldFocus) this.focus();
1757 - };
1758 - FocusHandlerImpl.prototype.focus = function focus() {
1759 - var requestFocus = this.props.requestFocus;
1760 - if (requestFocus) requestFocus(this.node);
1761 - else if (initialRender) initialRender = false;
1762 - else if (this.node) {
1763 - if (!this.node.contains(document.activeElement)) this.node.focus();
1764 - }
1765 - };
1766 - FocusHandlerImpl.prototype.render = function render() {
1767 - var _this5 = this;
1768 - var _props2 = this.props;
1769 - _props2.children;
1770 - var style = _props2.style;
1771 - _props2.requestFocus;
1772 - var _props2$component = _props2.component;
1773 - var Comp = _props2$component === void 0 ? "div" : _props2$component;
1774 - _props2.uri;
1775 - _props2.location;
1776 - var domProps = _objectWithoutProperties$1(_props2, [
1777 - "children",
1778 - "style",
1779 - "requestFocus",
1780 - "component",
1781 - "uri",
1782 - "location"
1783 - ]);
1784 - return react.default.createElement(Comp, _extends({
1785 - style: _extends({ outline: "none" }, style),
1786 - tabIndex: "-1",
1787 - ref: function ref(n) {
1788 - return _this5.node = n;
1789 - }
1790 - }, domProps), react.default.createElement(FocusContext.Provider, { value: this.requestFocus }, this.props.children));
1791 - };
1792 - return FocusHandlerImpl;
1793 - }(react.default.Component);
1794 - polyfill(FocusHandlerImpl);
1795 - var k = function k() {};
1796 - var forwardRef$1 = react.default.forwardRef;
1797 - if (typeof forwardRef$1 === "undefined") forwardRef$1 = function forwardRef(C) {
1798 - return C;
1799 - };
1800 - var Link = forwardRef$1(function(_ref4, ref) {
1801 - var innerRef = _ref4.innerRef;
1802 - var props = _objectWithoutProperties$1(_ref4, ["innerRef"]);
1803 - return react.default.createElement(BaseContext.Consumer, null, function(_ref5) {
1804 - _ref5.basepath;
1805 - var baseuri = _ref5.baseuri;
1806 - return react.default.createElement(Location, null, function(_ref6) {
1807 - var location = _ref6.location;
1808 - var navigate = _ref6.navigate;
1809 - var to = props.to;
1810 - var state = props.state;
1811 - var replace = props.replace;
1812 - var _props$getProps = props.getProps;
1813 - var getProps = _props$getProps === void 0 ? k : _props$getProps;
1814 - var anchorProps = _objectWithoutProperties$1(props, [
1815 - "to",
1816 - "state",
1817 - "replace",
1818 - "getProps"
1819 - ]);
1820 - var href = resolve(to, baseuri);
1821 - var encodedHref = encodeURI(href);
1822 - var isCurrent = location.pathname === encodedHref;
1823 - var isPartiallyCurrent = startsWith(location.pathname, encodedHref);
1824 - return react.default.createElement("a", _extends({
1825 - ref: ref || innerRef,
1826 - "aria-current": isCurrent ? "page" : void 0
1827 - }, anchorProps, getProps({
1828 - isCurrent,
1829 - isPartiallyCurrent,
1830 - href,
1831 - location
1832 - }), {
1833 - href,
1834 - onClick: function onClick(event) {
1835 - if (anchorProps.onClick) anchorProps.onClick(event);
1836 - if (shouldNavigate(event)) {
1837 - event.preventDefault();
1838 - var shouldReplace = replace;
1839 - if (typeof replace !== "boolean" && isCurrent) {
1840 - var _location$state = _extends({}, location.state);
1841 - _location$state.key;
1842 - var restState = _objectWithoutProperties$1(_location$state, ["key"]);
1843 - shouldReplace = shallowCompare(_extends({}, state), restState);
1844 - }
1845 - navigate(href, {
1846 - state,
1847 - replace: shouldReplace
1848 - });
1849 - }
1850 - }
1851 - }));
1852 - });
1853 - });
1854 - });
1855 - Link.displayName = "Link";
1856 - Link.propTypes = { to: import_prop_types.default.string.isRequired };
1857 - function RedirectRequest(uri) {
1858 - this.uri = uri;
1859 - }
1860 - var isRedirect = function isRedirect(o) {
1861 - return o instanceof RedirectRequest;
1862 - };
1863 - var redirectTo = function redirectTo(to) {
1864 - throw new RedirectRequest(to);
1865 - };
1866 - var RedirectImpl = function(_React$Component3) {
1867 - _inherits(RedirectImpl, _React$Component3);
1868 - function RedirectImpl() {
1869 - _classCallCheck(this, RedirectImpl);
1870 - return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
1871 - }
1872 - RedirectImpl.prototype.componentDidMount = function componentDidMount() {
1873 - var _props3 = this.props;
1874 - var navigate = _props3.navigate;
1875 - var to = _props3.to;
1876 - _props3.from;
1877 - var _props3$replace = _props3.replace;
1878 - var replace = _props3$replace === void 0 ? true : _props3$replace;
1879 - var state = _props3.state;
1880 - _props3.noThrow;
1881 - var baseuri = _props3.baseuri;
1882 - var props = _objectWithoutProperties$1(_props3, [
1883 - "navigate",
1884 - "to",
1885 - "from",
1886 - "replace",
1887 - "state",
1888 - "noThrow",
1889 - "baseuri"
1890 - ]);
1891 - Promise.resolve().then(function() {
1892 - navigate(insertParams(resolve(to, baseuri), props), {
1893 - replace,
1894 - state
1895 - });
1896 - });
1897 - };
1898 - RedirectImpl.prototype.render = function render() {
1899 - var _props4 = this.props;
1900 - _props4.navigate;
1901 - var to = _props4.to;
1902 - _props4.from;
1903 - _props4.replace;
1904 - _props4.state;
1905 - var noThrow = _props4.noThrow;
1906 - var baseuri = _props4.baseuri;
1907 - var props = _objectWithoutProperties$1(_props4, [
1908 - "navigate",
1909 - "to",
1910 - "from",
1911 - "replace",
1912 - "state",
1913 - "noThrow",
1914 - "baseuri"
1915 - ]);
1916 - var resolvedTo = resolve(to, baseuri);
1917 - if (!noThrow) redirectTo(insertParams(resolvedTo, props));
1918 - return null;
1919 - };
1920 - return RedirectImpl;
1921 - }(react.default.Component);
1922 - var Redirect = function Redirect(props) {
1923 - return react.default.createElement(BaseContext.Consumer, null, function(_ref7) {
1924 - var baseuri = _ref7.baseuri;
1925 - return react.default.createElement(Location, null, function(locationContext) {
1926 - return react.default.createElement(RedirectImpl, _extends({}, locationContext, { baseuri }, props));
1927 - });
1928 - });
1929 - };
1930 - Redirect.propTypes = {
1931 - from: import_prop_types.default.string,
1932 - to: import_prop_types.default.string.isRequired
1933 - };
1934 - var Match = function Match(_ref8) {
1935 - var path = _ref8.path;
1936 - var children = _ref8.children;
1937 - return react.default.createElement(BaseContext.Consumer, null, function(_ref9) {
1938 - var baseuri = _ref9.baseuri;
1939 - return react.default.createElement(Location, null, function(_ref10) {
1940 - var navigate = _ref10.navigate;
1941 - var location = _ref10.location;
1942 - var result = match(resolve(path, baseuri), location.pathname);
1943 - return children({
1944 - navigate,
1945 - location,
1946 - match: result ? _extends({}, result.params, {
1947 - uri: result.uri,
1948 - path
1949 - }) : null
1950 - });
1951 - });
1952 - });
1953 - };
1954 - var stripSlashes = function stripSlashes(str) {
1955 - return str.replace(/(^\/+|\/+$)/g, "");
1956 - };
1957 - var createRoute = function createRoute(basepath) {
1958 - return function(element) {
1959 - if (!element) return null;
1960 - if (element.type === react.default.Fragment && element.props.children) return react.default.Children.map(element.props.children, createRoute(basepath));
1961 - !(element.props.path || element.props.default || element.type === Redirect) && (0, import_browser.default)(false, "<Router>: Children of <Router> must have a `path` or `default` prop, or be a `<Redirect>`. None found on element type `" + element.type + "`");
1962 - element.type === Redirect && (!element.props.from || !element.props.to) && (0, import_browser.default)(false, "<Redirect from=\"" + element.props.from + "\" to=\"" + element.props.to + "\"/> requires both \"from\" and \"to\" props when inside a <Router>.");
1963 - element.type === Redirect && !validateRedirect(element.props.from, element.props.to) && (0, import_browser.default)(false, "<Redirect from=\"" + element.props.from + " to=\"" + element.props.to + "\"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.");
1964 - if (element.props.default) return {
1965 - value: element,
1966 - default: true
1967 - };
1968 - var elementPath = element.type === Redirect ? element.props.from : element.props.path;
1969 - var path = elementPath === "/" ? basepath : stripSlashes(basepath) + "/" + stripSlashes(elementPath);
1970 - return {
1971 - value: element,
1972 - default: element.props.default,
1973 - path: element.props.children ? stripSlashes(path) + "/*" : path
1974 - };
1975 - };
1976 - };
1977 - var shouldNavigate = function shouldNavigate(event) {
1978 - return !event.defaultPrevented && event.button === 0 && !(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
1979 - };
5030 +function componentWillUpdate(nextProps, nextState) {
5031 + try {
5032 + var prevProps = this.props;
5033 + var prevState = this.state;
5034 + this.props = nextProps;
5035 + this.state = nextState;
5036 + this.__reactInternalSnapshotFlag = true;
5037 + this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
5038 + prevProps,
5039 + prevState
5040 + );
5041 + } finally {
5042 + this.props = prevProps;
5043 + this.state = prevState;
5044 + }
5045 +}
1980 5046
1981 -//#endregion
1982 -//#region app/assets/js/ui/popover-dialog/popover-dialog.js
1983 - function PopoverDialog(props) {
1984 - var targetRef = props.targetRef;
1985 - var offsetTop = props.offsetTop;
1986 - var offsetLeft = props.offsetLeft;
1987 - var wrapperClass = props.wrapperClass;
1988 - var trigger = props.trigger;
1989 - var hideAfter = props.hideAfter;
1990 - var popoverRef = (0, react.useCallback)(function(popoverEl) {
1991 - var target = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current;
1992 - if (!target || !popoverEl) return;
1993 - /**
1994 - * Show Popover
1995 - */
1996 - var showPopover = function showPopover() {
1997 - popoverEl.style.display = "block";
1998 - popoverEl.setAttribute("aria-expanded", true);
1999 - var targetRect = target.getBoundingClientRect();
2000 - var popoverRect = popoverEl.getBoundingClientRect();
2001 - var widthDifference = popoverRect.width - targetRect.width;
2002 - popoverEl.style.top = targetRect.bottom + offsetTop + "px";
2003 - popoverEl.style.left = targetRect.left - widthDifference / 2 - offsetLeft + "px";
2004 - popoverEl.style.setProperty("--popover-arrow-offset-end", (popoverRect.width - 16) / 2 + "px");
2005 - };
2006 - /**
2007 - * Hide Popover
2008 - */
2009 - var hidePopover = function hidePopover() {
2010 - popoverEl.style.display = "none";
2011 - popoverEl.setAttribute("aria-expanded", false);
2012 - };
2013 - /**
2014 - * Handle the Popover's hover functionality
2015 - */
2016 - var handlePopoverHover = function handlePopoverHover() {
2017 - var hideOnMouseOut = true;
2018 - var timeOut = null;
2019 - target.addEventListener("mouseover", function() {
2020 - hideOnMouseOut = true;
2021 - showPopover();
2022 - });
2023 - target.addEventListener("mouseleave", function() {
2024 - timeOut = setTimeout(function() {
2025 - if (hideOnMouseOut) {
2026 - if ("block" === popoverEl.style.display) hidePopover();
2027 - }
2028 - }, hideAfter);
2029 - });
2030 - popoverEl.addEventListener("mouseover", function() {
2031 - hideOnMouseOut = false;
2032 - if (timeOut) {
2033 - clearTimeout(timeOut);
2034 - timeOut = null;
2035 - }
2036 - });
2037 - popoverEl.addEventListener("mouseleave", function() {
2038 - timeOut = setTimeout(function() {
2039 - if (hideOnMouseOut) {
2040 - if ("block" === popoverEl.style.display) hidePopover();
2041 - }
2042 - }, hideAfter);
2043 - hideOnMouseOut = true;
2044 - });
2045 - };
2046 - /**
2047 - * Handle the Popover's click functionality
2048 - */
2049 - var handlePopoverClick = function handlePopoverClick() {
2050 - var popoverIsActive = false;
2051 - target.addEventListener("click", function(e) {
2052 - e.preventDefault();
2053 - e.stopPropagation();
2054 - if (popoverIsActive) {
2055 - hidePopover();
2056 - popoverIsActive = false;
2057 - } else {
2058 - showPopover();
2059 - popoverIsActive = true;
2060 - }
2061 - });
2062 - popoverEl.addEventListener("click", function(e) {
2063 - e.stopPropagation();
2064 - });
2065 - document.body.addEventListener("click", function() {
2066 - if (popoverIsActive) {
2067 - hidePopover();
2068 - popoverIsActive = false;
2069 - }
2070 - });
2071 - };
2072 - if ("hover" === trigger) handlePopoverHover();
2073 - else if ("click" === trigger) handlePopoverClick();
2074 - }, [targetRef]);
2075 - var wrapperClasses = "e-app__popover";
2076 - if (wrapperClass) wrapperClasses += " " + wrapperClass;
2077 - return /*#__PURE__*/ react.default.createElement("div", {
2078 - className: wrapperClasses,
2079 - ref: popoverRef
2080 - }, props.children);
2081 - }
2082 - PopoverDialog.propTypes = {
2083 - targetRef: import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.shape({ current: import_prop_types.default.any })]).isRequired,
2084 - trigger: import_prop_types.default.string,
2085 - direction: import_prop_types.default.string,
2086 - offsetTop: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.number]),
2087 - offsetLeft: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.number]),
2088 - wrapperClass: import_prop_types.default.string,
2089 - children: import_prop_types.default.any,
2090 - hideAfter: import_prop_types.default.number
2091 - };
2092 - PopoverDialog.defaultProps = {
2093 - direction: "bottom",
2094 - trigger: "hover",
2095 - offsetTop: 10,
2096 - offsetLeft: 0,
2097 - hideAfter: 300
2098 - };
5047 +// React may warn about cWM/cWRP/cWU methods being deprecated.
5048 +// Add a flag to suppress these warnings for this special case.
5049 +componentWillMount.__suppressDeprecationWarning = true;
5050 +componentWillReceiveProps.__suppressDeprecationWarning = true;
5051 +componentWillUpdate.__suppressDeprecationWarning = true;
2099 5052
2100 -//#endregion
2101 -//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
2102 - function _objectWithoutPropertiesLoose(r, e) {
2103 - if (null == r) return {};
2104 - var t = {};
2105 - for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2106 - if (-1 !== e.indexOf(n)) continue;
2107 - t[n] = r[n];
2108 - }
2109 - return t;
2110 - }
5053 +function polyfill(Component) {
5054 + var prototype = Component.prototype;
2111 5055
2112 -//#endregion
2113 -//#region node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
2114 - function _objectWithoutProperties(e, t) {
2115 - if (null == e) return {};
2116 - var o;
2117 - var r;
2118 - var i = _objectWithoutPropertiesLoose(e, t);
2119 - if (Object.getOwnPropertySymbols) {
2120 - var n = Object.getOwnPropertySymbols(e);
2121 - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2122 - }
2123 - return i;
2124 - }
5056 + if (!prototype || !prototype.isReactComponent) {
5057 + throw new Error('Can only polyfill class components');
5058 + }
2125 5059
2126 -//#endregion
2127 -//#region app/assets/js/ui/atoms/icon.js
2128 - var _excluded = ["className"];
2129 - var Icon = (0, react.forwardRef)(function(props, ref) {
2130 - var className = props.className;
2131 - var rest = _objectWithoutProperties(props, _excluded);
2132 - return /*#__PURE__*/ react.default.createElement("i", _extends$2({
2133 - ref,
2134 - className: "eps-icon ".concat(className)
2135 - }, rest));
2136 - });
2137 - Icon.propTypes = { className: import_prop_types.default.string.isRequired };
2138 - Icon.defaultProps = { className: "" };
5060 + if (
5061 + typeof Component.getDerivedStateFromProps !== 'function' &&
5062 + typeof prototype.getSnapshotBeforeUpdate !== 'function'
5063 + ) {
5064 + return Component;
5065 + }
2139 5066
2140 -//#endregion
2141 -//#region app/assets/js/ui/molecules/button.js
2142 - function _callSuper$5(t, o, e) {
2143 - return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2144 - }
2145 - __name(_callSuper$5, "_callSuper");
2146 - function _isNativeReflectConstruct$5() {
2147 - try {
2148 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2149 - } catch (t) {}
2150 - return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() {
2151 - return !!t;
2152 - })();
2153 - }
2154 - __name(_isNativeReflectConstruct$5, "_isNativeReflectConstruct");
2155 - var Button$1 = /*#__PURE__*/ function(_React$Component) {
2156 - function Button() {
2157 - _classCallCheck$1(this, Button);
2158 - return _callSuper$5(this, Button, arguments);
2159 - }
2160 - _inherits$1(Button, _React$Component);
2161 - return _createClass(Button, [
2162 - {
2163 - key: "getCssId",
2164 - value: function getCssId() {
2165 - return this.props.id;
2166 - }
2167 - },
2168 - {
2169 - key: "getClassName",
2170 - value: function getClassName() {
2171 - var baseClassName = "eps-button";
2172 - return [baseClassName, this.props.className].concat(this.getStylePropsClasses(baseClassName)).filter(function(classItem) {
2173 - return "" !== classItem;
2174 - }).join(" ");
2175 - }
2176 - },
2177 - {
2178 - key: "getStylePropsClasses",
2179 - value: function getStylePropsClasses(baseClassName) {
2180 - var _this = this;
2181 - var styleProps = [
2182 - "color",
2183 - "size",
2184 - "variant"
2185 - ];
2186 - var stylePropClasses = [];
2187 - styleProps.forEach(function(styleProp) {
2188 - var stylePropValue = _this.props[styleProp];
2189 - if (stylePropValue) stylePropClasses.push(baseClassName + "--" + stylePropValue);
2190 - });
2191 - return stylePropClasses;
2192 - }
2193 - },
2194 - {
2195 - key: "getIcon",
2196 - value: function getIcon() {
2197 - if (this.props.icon) {
2198 - var iconRef = react.default.createRef(null);
2199 - var tooltip = this.props.tooltip || this.props.text;
2200 - var icon = /*#__PURE__*/ react.default.createElement(Icon, {
2201 - ref: iconRef,
2202 - className: this.props.icon,
2203 - "aria-hidden": "true"
2204 - });
2205 - var screenReaderText = "";
2206 - if (this.props.hideText) screenReaderText = /*#__PURE__*/ react.default.createElement("span", { className: "sr-only" }, tooltip);
2207 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, icon, screenReaderText, this.props.tooltip && /*#__PURE__*/ react.default.createElement(PopoverDialog, {
2208 - targetRef: iconRef,
2209 - wrapperClass: "e-kit-library__tooltip"
2210 - }, this.props.tooltip));
2211 - }
2212 - return "";
2213 - }
2214 - },
2215 - {
2216 - key: "getText",
2217 - value: function getText() {
2218 - return this.props.hideText ? "" : /*#__PURE__*/ react.default.createElement("span", null, this.props.text);
2219 - }
2220 - },
2221 - {
2222 - key: "render",
2223 - value: function render() {
2224 - var attributes = {};
2225 - var id = this.getCssId();
2226 - var className = this.getClassName();
2227 - if (id) attributes.id = id;
2228 - if (className) attributes.className = className;
2229 - if (this.props.onClick) attributes.onClick = this.props.onClick;
2230 - if (this.props.rel) attributes.rel = this.props.rel;
2231 - if (this.props.elRef) attributes.ref = this.props.elRef;
2232 - var buttonContent = /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, this.getIcon(), this.getText());
2233 - if (this.props.url) {
2234 - if (0 === this.props.url.indexOf("http")) return /*#__PURE__*/ react.default.createElement("a", _extends$2({
2235 - href: this.props.url,
2236 - target: this.props.target
2237 - }, attributes), buttonContent);
2238 - attributes.getProps = function(props) {
2239 - if (props.isCurrent) attributes.className += " active";
2240 - return { className: attributes.className };
2241 - };
2242 - return /*#__PURE__*/ react.default.createElement(LocationProvider, { history: router.appHistory }, /*#__PURE__*/ react.default.createElement(Link, _extends$2({ to: this.props.url }, attributes), buttonContent));
2243 - }
2244 - return /*#__PURE__*/ react.default.createElement("div", attributes, buttonContent);
2245 - }
2246 - }
2247 - ]);
2248 - }(react.default.Component);
2249 - _defineProperty(Button$1, "propTypes", {
2250 - text: import_prop_types.default.string.isRequired,
2251 - hideText: import_prop_types.default.bool,
2252 - icon: import_prop_types.default.string,
2253 - tooltip: import_prop_types.default.string,
2254 - id: import_prop_types.default.string,
2255 - className: import_prop_types.default.string,
2256 - url: import_prop_types.default.string,
2257 - onClick: import_prop_types.default.func,
2258 - variant: import_prop_types.default.oneOf([
2259 - "contained",
2260 - "underlined",
2261 - "outlined",
2262 - ""
2263 - ]),
2264 - color: import_prop_types.default.oneOf([
2265 - "primary",
2266 - "secondary",
2267 - "cta",
2268 - "link",
2269 - "disabled"
2270 - ]),
2271 - size: import_prop_types.default.oneOf([
2272 - "sm",
2273 - "md",
2274 - "lg"
2275 - ]),
2276 - target: import_prop_types.default.string,
2277 - rel: import_prop_types.default.string,
2278 - elRef: import_prop_types.default.object
2279 - });
2280 - _defineProperty(Button$1, "defaultProps", {
2281 - id: "",
2282 - className: "",
2283 - variant: "",
2284 - target: "_parent"
2285 - });
5067 + // If new component APIs are defined, "unsafe" lifecycles won't be called.
5068 + // Error if any of these lifecycles are present,
5069 + // Because they would work differently between older and newer (16.3+) versions of React.
5070 + var foundWillMountName = null;
5071 + var foundWillReceivePropsName = null;
5072 + var foundWillUpdateName = null;
5073 + if (typeof prototype.componentWillMount === 'function') {
5074 + foundWillMountName = 'componentWillMount';
5075 + } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
5076 + foundWillMountName = 'UNSAFE_componentWillMount';
5077 + }
5078 + if (typeof prototype.componentWillReceiveProps === 'function') {
5079 + foundWillReceivePropsName = 'componentWillReceiveProps';
5080 + } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
5081 + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
5082 + }
5083 + if (typeof prototype.componentWillUpdate === 'function') {
5084 + foundWillUpdateName = 'componentWillUpdate';
5085 + } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
5086 + foundWillUpdateName = 'UNSAFE_componentWillUpdate';
5087 + }
5088 + if (
5089 + foundWillMountName !== null ||
5090 + foundWillReceivePropsName !== null ||
5091 + foundWillUpdateName !== null
5092 + ) {
5093 + var componentName = Component.displayName || Component.name;
5094 + var newApiName =
5095 + typeof Component.getDerivedStateFromProps === 'function'
5096 + ? 'getDerivedStateFromProps()'
5097 + : 'getSnapshotBeforeUpdate()';
2286 5098
2287 -//#endregion
2288 -//#region app/assets/js/ui/molecules/add-new-button.js
2289 - function ownKeys$7(e, r) {
2290 - var t = Object.keys(e);
2291 - if (Object.getOwnPropertySymbols) {
2292 - var o = Object.getOwnPropertySymbols(e);
2293 - r && (o = o.filter(function(r) {
2294 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
2295 - })), t.push.apply(t, o);
2296 - }
2297 - return t;
2298 - }
2299 - __name(ownKeys$7, "ownKeys");
2300 - function _objectSpread$7(e) {
2301 - for (var r = 1; r < arguments.length; r++) {
2302 - var t = null != arguments[r] ? arguments[r] : {};
2303 - r % 2 ? ownKeys$7(Object(t), !0).forEach(function(r) {
2304 - _defineProperty(e, r, t[r]);
2305 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function(r) {
2306 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2307 - });
2308 - }
2309 - return e;
2310 - }
2311 - __name(_objectSpread$7, "_objectSpread");
2312 - function _callSuper$4(t, o, e) {
2313 - return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2314 - }
2315 - __name(_callSuper$4, "_callSuper");
2316 - function _isNativeReflectConstruct$4() {
2317 - try {
2318 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2319 - } catch (t) {}
2320 - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() {
2321 - return !!t;
2322 - })();
2323 - }
2324 - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct");
2325 - var AddNewButton = /*#__PURE__*/ function(_Button) {
2326 - function AddNewButton() {
2327 - _classCallCheck$1(this, AddNewButton);
2328 - return _callSuper$4(this, AddNewButton, arguments);
2329 - }
2330 - _inherits$1(AddNewButton, _Button);
2331 - return _createClass(AddNewButton, [{
2332 - key: "getClassName",
2333 - value: function getClassName() {
2334 - var className = this.props.className;
2335 - if (this.props.size) className += " eps-add-new-button--" + this.props.size;
2336 - return className;
2337 - }
2338 - }]);
2339 - }(Button$1);
2340 - _defineProperty(AddNewButton, "propTypes", _objectSpread$7(_objectSpread$7({}, Button$1.propTypes), {}, {
2341 - text: import_prop_types.default.string,
2342 - size: import_prop_types.default.string
2343 - }));
2344 - _defineProperty(AddNewButton, "defaultProps", _objectSpread$7(_objectSpread$7({}, Button$1.defaultProps), {}, {
2345 - className: "eps-add-new-button",
2346 - text: (0, _wordpress_i18n.__)("Add New", "elementor"),
2347 - icon: "eicon-plus"
2348 - }));
5099 + throw Error(
5100 + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
5101 + componentName +
5102 + ' uses ' +
5103 + newApiName +
5104 + ' but also contains the following legacy lifecycles:' +
5105 + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
5106 + (foundWillReceivePropsName !== null
5107 + ? '\n ' + foundWillReceivePropsName
5108 + : '') +
5109 + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
5110 + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
5111 + 'https://fb.me/react-async-component-lifecycle-hooks'
5112 + );
5113 + }
2349 5114
2350 -//#endregion
2351 -//#region app/assets/js/utils/utils.js
2352 - var pxToRem = function pxToRem(pixels) {
2353 - if (!pixels) return;
2354 - else if ("string" !== typeof pixels) pixels = pixels.toString();
2355 - return pixels.split(" ").map(function(value) {
2356 - return "".concat(value * .0625, "rem");
2357 - }).join(" ");
2358 - };
2359 - var arrayToClassName = function arrayToClassName(array, action) {
2360 - return array.filter(function(item) {
2361 - return "object" === _typeof(item) ? Object.entries(item)[0][1] : item;
2362 - }).map(function(item) {
2363 - var value = "object" === _typeof(item) ? Object.entries(item)[0][0] : item;
2364 - return action ? action(value) : value;
2365 - }).join(" ");
2366 - };
2367 - var isOneOf = function isOneOf(filetype, filetypeOptions) {
2368 - return filetypeOptions.some(function(type) {
2369 - return filetype.includes(type);
2370 - });
2371 - };
5115 + // React <= 16.2 does not support static getDerivedStateFromProps.
5116 + // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
5117 + // Newer versions of React will ignore these lifecycles if gDSFP exists.
5118 + if (typeof Component.getDerivedStateFromProps === 'function') {
5119 + prototype.componentWillMount = componentWillMount;
5120 + prototype.componentWillReceiveProps = componentWillReceiveProps;
5121 + }
2372 5122
2373 -//#endregion
2374 -//#region app/assets/js/ui/atoms/box.js
2375 - function Box(props) {
2376 - var baseClassName = "eps-box";
2377 - var classes = [baseClassName, props.className];
2378 - var style = {};
2379 - if (Object.prototype.hasOwnProperty.call(props, "padding")) {
2380 - style["--eps-box-padding"] = pxToRem(props.padding);
2381 - classes.push(baseClassName + "--padding");
2382 - }
2383 - return /*#__PURE__*/ react.default.createElement("div", {
2384 - style,
2385 - className: arrayToClassName(classes)
2386 - }, props.children);
2387 - }
2388 - Box.propTypes = {
2389 - className: import_prop_types.default.string,
2390 - padding: import_prop_types.default.string,
2391 - children: import_prop_types.default.oneOfType([
2392 - import_prop_types.default.string,
2393 - import_prop_types.default.object,
2394 - import_prop_types.default.arrayOf(import_prop_types.default.object)
2395 - ]).isRequired
2396 - };
2397 - Box.defaultProps = { className: "" };
5123 + // React <= 16.2 does not support getSnapshotBeforeUpdate.
5124 + // As a workaround, use cWU to invoke the new lifecycle.
5125 + // Newer versions of React will ignore that lifecycle if gSBU exists.
5126 + if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
5127 + if (typeof prototype.componentDidUpdate !== 'function') {
5128 + throw new Error(
5129 + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
5130 + );
5131 + }
2398 5132
2399 -//#endregion
2400 -//#region app/assets/js/ui/card/card-header.js
2401 - function CardHeader(props) {
2402 - var classNameBase = "eps-card__header";
2403 - var classes = [classNameBase, props.className];
2404 - var style = {};
2405 - if (Object.prototype.hasOwnProperty.call(props, "padding")) {
2406 - style["--eps-card-header-padding"] = pxToRem(props.padding);
2407 - classes.push(classNameBase + "--padding");
2408 - }
2409 - return /*#__PURE__*/ react.default.createElement("header", {
2410 - className: arrayToClassName(classes),
2411 - style
2412 - }, props.children);
2413 - }
2414 - CardHeader.propTypes = {
2415 - className: import_prop_types.default.string,
2416 - padding: import_prop_types.default.string,
2417 - passive: import_prop_types.default.bool,
2418 - active: import_prop_types.default.bool,
2419 - children: import_prop_types.default.any.isRequired
2420 - };
2421 - CardHeader.defaultProps = { className: "" };
5133 + prototype.componentWillUpdate = componentWillUpdate;
2422 5134
2423 -//#endregion
2424 -//#region app/assets/js/ui/card/card-body.js
2425 - function CardBody(props) {
2426 - var classNameBase = "eps-card__body";
2427 - var classes = [classNameBase, props.className];
2428 - var style = {};
2429 - if (Object.prototype.hasOwnProperty.call(props, "padding")) {
2430 - style["--eps-card-body-padding"] = pxToRem(props.padding);
2431 - classes.push(classNameBase + "--padding");
2432 - }
2433 - return /*#__PURE__*/ react.default.createElement("main", {
2434 - className: arrayToClassName(classes),
2435 - style
2436 - }, props.children);
2437 - }
2438 - CardBody.propTypes = {
2439 - className: import_prop_types.default.string,
2440 - padding: import_prop_types.default.string,
2441 - passive: import_prop_types.default.bool,
2442 - active: import_prop_types.default.bool,
2443 - children: import_prop_types.default.any.isRequired
2444 - };
2445 - CardBody.defaultProps = { className: "" };
5135 + var componentDidUpdate = prototype.componentDidUpdate;
2446 5136
2447 -//#endregion
2448 -//#region app/assets/js/ui/card/card-image.js
2449 - function CardImage(props) {
2450 - var image = /*#__PURE__*/ react.default.createElement("img", {
2451 - src: props.src,
2452 - alt: props.alt,
2453 - className: "eps-card__image",
2454 - loading: "lazy",
2455 - onError: props.onError
2456 - });
2457 - return /*#__PURE__*/ react.default.createElement("figure", { className: "eps-card__figure ".concat(props.className) }, image, props.children);
2458 - }
2459 - CardImage.propTypes = {
2460 - className: import_prop_types.default.string,
2461 - src: import_prop_types.default.string.isRequired,
2462 - alt: import_prop_types.default.string.isRequired,
2463 - children: import_prop_types.default.any,
2464 - onError: import_prop_types.default.func
2465 - };
2466 - CardImage.defaultProps = {
2467 - className: "",
2468 - onError: function onError() {}
2469 - };
5137 + prototype.componentDidUpdate = function componentDidUpdatePolyfill(
5138 + prevProps,
5139 + prevState,
5140 + maybeSnapshot
5141 + ) {
5142 + // 16.3+ will not execute our will-update method;
5143 + // It will pass a snapshot value to did-update though.
5144 + // Older versions will require our polyfilled will-update value.
5145 + // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
5146 + // Because for <= 15.x versions this might be a "prevContext" object.
5147 + // We also can't just check "__reactInternalSnapshot",
5148 + // Because get-snapshot might return a falsy value.
5149 + // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
5150 + var snapshot = this.__reactInternalSnapshotFlag
5151 + ? this.__reactInternalSnapshot
5152 + : maybeSnapshot;
2470 5153
2471 -//#endregion
2472 -//#region app/assets/js/ui/card/card-overlay.js
2473 - function CardOverlay(props) {
2474 - return /*#__PURE__*/ react.default.createElement("div", { className: "eps-card__image-overlay ".concat(props.className) }, props.children);
2475 - }
2476 - CardOverlay.propTypes = {
2477 - className: import_prop_types.default.string,
2478 - children: import_prop_types.default.object.isRequired
2479 - };
2480 - CardOverlay.defaultProps = { className: "" };
5154 + componentDidUpdate.call(this, prevProps, prevState, snapshot);
5155 + };
5156 + }
2481 5157
2482 -//#endregion
2483 -//#region app/assets/js/ui/card/card-footer.js
2484 - function CardFooter(props) {
2485 - var classNameBase = "eps-card__footer";
2486 - var classes = [classNameBase, props.className];
2487 - var style = {};
2488 - if (Object.prototype.hasOwnProperty.call(props, "padding")) {
2489 - style["--eps-card-footer-padding"] = pxToRem(props.padding);
2490 - classes.push(classNameBase + "--padding");
2491 - }
2492 - return /*#__PURE__*/ react.default.createElement("footer", {
2493 - className: arrayToClassName(classes),
2494 - style
2495 - }, props.children);
2496 - }
2497 - CardFooter.propTypes = {
2498 - className: import_prop_types.default.string,
2499 - padding: import_prop_types.default.string,
2500 - passive: import_prop_types.default.bool,
2501 - active: import_prop_types.default.bool,
2502 - children: import_prop_types.default.object.isRequired
2503 - };
2504 - CardFooter.defaultProps = { className: "" };
5158 + return Component;
5159 +}
2505 5160
2506 -//#endregion
2507 -//#region app/assets/js/ui/card/card-headline.js
2508 - function CardHeadline(props) {
2509 - var classes = ["eps-card__headline", props.className];
2510 - return /*#__PURE__*/ react.default.createElement("h4", { className: arrayToClassName(classes) }, props.children);
2511 - }
2512 - CardHeadline.propTypes = {
2513 - className: import_prop_types.default.string,
2514 - children: import_prop_types.default.any.isRequired
2515 - };
2516 - CardHeadline.defaultProps = { className: "" };
2517 5161
2518 -//#endregion
2519 -//#region app/assets/js/ui/card/card-divider.js
2520 - function CardDivider(props) {
2521 - var classes = ["eps-card__divider", props.className];
2522 - return /*#__PURE__*/ react.default.createElement("hr", { className: arrayToClassName(classes) });
2523 - }
2524 - CardDivider.propTypes = { className: import_prop_types.default.string };
2525 - CardDivider.defaultProps = { className: "" };
2526 5162
2527 -//#endregion
2528 -//#region app/assets/js/ui/card/card.js
2529 - var Card = react.default.forwardRef(function(props, ref) {
2530 - return /*#__PURE__*/ react.default.createElement("article", {
2531 - className: "eps-card ".concat(props.className),
2532 - ref
2533 - }, props.children);
2534 - });
2535 - Card.propTypes = {
2536 - type: import_prop_types.default.string,
2537 - className: import_prop_types.default.string,
2538 - children: import_prop_types.default.any
2539 - };
2540 - Card.defaultProps = { className: "" };
2541 - Card.displayName = "Card";
2542 - Card.Header = CardHeader;
2543 - Card.Body = CardBody;
2544 - Card.Image = CardImage;
2545 - Card.Overlay = CardOverlay;
2546 - Card.Footer = CardFooter;
2547 - Card.Headline = CardHeadline;
2548 - Card.Divider = CardDivider;
5163 +// CONCATENATED MODULE: ../node_modules/@reach/router/es/lib/utils.js
2549 5164
2550 -//#endregion
2551 -//#region app/assets/js/ui/atoms/checkbox.js
2552 - function Checkbox(_ref) {
2553 - var className = _ref.className;
2554 - var checked = _ref.checked;
2555 - var rounded = _ref.rounded;
2556 - var indeterminate = _ref.indeterminate;
2557 - var error = _ref.error;
2558 - var disabled = _ref.disabled;
2559 - var onChange = _ref.onChange;
2560 - var id = _ref.id;
2561 - var baseClassName = "eps-checkbox";
2562 - var classes = [baseClassName, className];
2563 - if (rounded) classes.push(baseClassName + "--rounded");
2564 - if (indeterminate) classes.push(baseClassName + "--indeterminate");
2565 - if (error) classes.push(baseClassName + "--error");
2566 - return /*#__PURE__*/ react.default.createElement("input", {
2567 - className: arrayToClassName(classes),
2568 - type: "checkbox",
2569 - checked,
2570 - disabled,
2571 - onChange,
2572 - id
2573 - });
2574 - }
2575 - Checkbox.propTypes = {
2576 - className: import_prop_types.default.string,
2577 - checked: import_prop_types.default.bool,
2578 - disabled: import_prop_types.default.bool,
2579 - indeterminate: import_prop_types.default.bool,
2580 - rounded: import_prop_types.default.bool,
2581 - error: import_prop_types.default.bool,
2582 - onChange: import_prop_types.default.func,
2583 - id: import_prop_types.default.string
2584 - };
2585 - Checkbox.defaultProps = {
2586 - className: "",
2587 - checked: null,
2588 - disabled: false,
2589 - indeterminate: false,
2590 - error: false,
2591 - onChange: function onChange() {}
2592 - };
2593 5165
2594 -//#endregion
2595 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
2596 - function _arrayWithHoles(r) {
2597 - if (Array.isArray(r)) return r;
2598 - }
5166 +////////////////////////////////////////////////////////////////////////////////
5167 +// startsWith(string, search) - Check if `string` starts with `search`
5168 +var startsWith = function startsWith(string, search) {
5169 + return string.substr(0, search.length) === search;
5170 +};
2599 5171
2600 -//#endregion
2601 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
2602 - function _iterableToArrayLimit(r, l) {
2603 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2604 - if (null != t) {
2605 - var e;
2606 - var n;
2607 - var i;
2608 - var u;
2609 - var a = [];
2610 - var f = !0;
2611 - var o = !1;
2612 - try {
2613 - if (i = (t = t.call(r)).next, 0 === l) {
2614 - if (Object(t) !== t) return;
2615 - f = !1;
2616 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2617 - } catch (r) {
2618 - o = !0, n = r;
2619 - } finally {
2620 - try {
2621 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2622 - } finally {
2623 - if (o) throw n;
2624 - }
2625 - }
2626 - return a;
2627 - }
2628 - }
5172 +////////////////////////////////////////////////////////////////////////////////
5173 +// pick(routes, uri)
5174 +//
5175 +// Ranks and picks the best route to match. Each segment gets the highest
5176 +// amount of points, then the type of segment gets an additional amount of
5177 +// points where
5178 +//
5179 +// static > dynamic > splat > root
5180 +//
5181 +// This way we don't have to worry about the order of our routes, let the
5182 +// computers do it.
5183 +//
5184 +// A route looks like this
5185 +//
5186 +// { path, default, value }
5187 +//
5188 +// And a returned match looks like:
5189 +//
5190 +// { route, params, uri }
5191 +//
5192 +// I know, I should use TypeScript not comments for these types.
5193 +var utils_pick = function pick(routes, uri) {
5194 + var match = void 0;
5195 + var default_ = void 0;
2629 5196
2630 -//#endregion
2631 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
2632 - function _arrayLikeToArray(r, a) {
2633 - (null == a || a > r.length) && (a = r.length);
2634 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2635 - return n;
2636 - }
5197 + var _uri$split = uri.split("?"),
5198 + uriPathname = _uri$split[0];
2637 5199
2638 -//#endregion
2639 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
2640 - function _unsupportedIterableToArray(r, a) {
2641 - if (r) {
2642 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
2643 - var t = {}.toString.call(r).slice(8, -1);
2644 - 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;
2645 - }
2646 - }
5200 + var uriSegments = segmentize(uriPathname);
5201 + var isRootUri = uriSegments[0] === "";
5202 + var ranked = rankRoutes(routes);
2647 5203
2648 -//#endregion
2649 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
2650 - function _nonIterableRest() {
2651 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2652 - }
5204 + for (var i = 0, l = ranked.length; i < l; i++) {
5205 + var missed = false;
5206 + var route = ranked[i].route;
2653 5207
2654 -//#endregion
2655 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
2656 - function _slicedToArray(r, e) {
2657 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
2658 - }
5208 + if (route.default) {
5209 + default_ = {
5210 + route: route,
5211 + params: {},
5212 + uri: uri
5213 + };
5214 + continue;
5215 + }
2659 5216
2660 -//#endregion
2661 -//#region app/assets/js/molecules/collapse-context.js
2662 - var CollapseContext = react.default.createContext();
5217 + var routeSegments = segmentize(route.path);
5218 + var params = {};
5219 + var max = Math.max(uriSegments.length, routeSegments.length);
5220 + var index = 0;
2663 5221
2664 -//#endregion
2665 -//#region app/assets/js/molecules/collapse-toggle.js
2666 - function CollapseToggle(props) {
2667 - var context = (0, react.useContext)(CollapseContext);
2668 - var style = { "--e-app-collapse-toggle-icon-spacing": pxToRem(props.iconSpacing) };
2669 - var classNameBase = "e-app-collapse-toggle";
2670 - var attrs = {
2671 - style,
2672 - className: arrayToClassName([classNameBase, _defineProperty({}, classNameBase + "--active", props.active)])
2673 - };
2674 - if (props.active) attrs.onClick = function() {
2675 - return context.toggle();
2676 - };
2677 - return /*#__PURE__*/ react.default.createElement("div", attrs, props.children, props.active && props.showIcon && /*#__PURE__*/ react.default.createElement("i", { className: "eicon-caret-down e-app-collapse-toggle__icon" }));
2678 - }
2679 - CollapseToggle.propTypes = {
2680 - className: import_prop_types.default.string,
2681 - iconSpacing: import_prop_types.default.number,
2682 - showIcon: import_prop_types.default.bool,
2683 - active: import_prop_types.default.bool,
2684 - children: import_prop_types.default.any
2685 - };
2686 - CollapseToggle.defaultProps = {
2687 - className: "",
2688 - iconSpacing: 20,
2689 - showIcon: true,
2690 - active: true
2691 - };
5222 + for (; index < max; index++) {
5223 + var routeSegment = routeSegments[index];
5224 + var uriSegment = uriSegments[index];
2692 5225
2693 -//#endregion
2694 -//#region app/assets/js/molecules/collapse-content.js
2695 - function CollapseContent(props) {
2696 - return /*#__PURE__*/ react.default.createElement("div", { className: "e-app-collapse-content" }, props.children);
2697 - }
2698 - CollapseContent.propTypes = {
2699 - className: import_prop_types.default.string,
2700 - children: import_prop_types.default.any
2701 - };
2702 - CollapseContent.defaultProps = { className: "" };
5226 + if (isSplat(routeSegment)) {
5227 + // Hit a splat, just grab the rest, and return a match
5228 + // uri: /files/documents/work
5229 + // route: /files/*
5230 + var param = routeSegment.slice(1) || "*";
5231 + params[param] = uriSegments.slice(index).map(decodeURIComponent).join("/");
5232 + break;
5233 + }
2703 5234
2704 -//#endregion
2705 -//#region app/assets/js/molecules/collapse.js
2706 - function Collapse(props) {
2707 - var _useState2 = _slicedToArray((0, react.useState)(props.isOpened), 2);
2708 - var isOpened = _useState2[0];
2709 - var setIsOpened = _useState2[1];
2710 - var classNameBase = "e-app-collapse";
2711 - var classes = [
2712 - classNameBase,
2713 - props.className,
2714 - _defineProperty({}, classNameBase + "--opened", isOpened)
2715 - ];
2716 - var toggle = function toggle() {
2717 - return setIsOpened(function(prevState) {
2718 - return !prevState;
2719 - });
2720 - };
2721 - (0, react.useEffect)(function() {
2722 - if (props.isOpened !== isOpened) setIsOpened(props.isOpened);
2723 - }, [props.isOpened]);
2724 - (0, react.useEffect)(function() {
2725 - if (props.onChange) props.onChange(isOpened);
2726 - }, [isOpened]);
2727 - return /*#__PURE__*/ react.default.createElement(CollapseContext.Provider, { value: { toggle } }, /*#__PURE__*/ react.default.createElement("div", { className: arrayToClassName(classes) }, props.children));
2728 - }
2729 - Collapse.propTypes = {
2730 - className: import_prop_types.default.string,
2731 - isOpened: import_prop_types.default.bool,
2732 - onChange: import_prop_types.default.func,
2733 - children: import_prop_types.default.oneOfType([import_prop_types.default.node, import_prop_types.default.arrayOf(import_prop_types.default.node)])
2734 - };
2735 - Collapse.defaultProps = {
2736 - className: "",
2737 - isOpened: false
2738 - };
2739 - Collapse.Toggle = CollapseToggle;
2740 - Collapse.Content = CollapseContent;
5235 + if (uriSegment === undefined) {
5236 + // URI is shorter than the route, no match
5237 + // uri: /users
5238 + // route: /users/:userId
5239 + missed = true;
5240 + break;
5241 + }
2741 5242
2742 -//#endregion
2743 -//#region app/assets/js/ui/atoms/css-grid.js
2744 - function CssGrid(props) {
2745 - var gridStyle = {
2746 - "--eps-grid-columns": props.columns,
2747 - "--eps-grid-spacing": pxToRem(props.spacing),
2748 - "--eps-grid-col-min-width": pxToRem(props.colMinWidth),
2749 - "--eps-grid-col-max-width": pxToRem(props.colMaxWidth)
2750 - };
2751 - return /*#__PURE__*/ react.default.createElement("div", {
2752 - style: gridStyle,
2753 - className: "eps-css-grid ".concat(props.className)
2754 - }, props.children);
2755 - }
2756 - CssGrid.propTypes = {
2757 - className: import_prop_types.default.string,
2758 - children: import_prop_types.default.any.isRequired,
2759 - columns: import_prop_types.default.number,
2760 - spacing: import_prop_types.default.number,
2761 - colMinWidth: import_prop_types.default.number,
2762 - colMaxWidth: import_prop_types.default.number
2763 - };
2764 - CssGrid.defaultProps = {
2765 - spacing: 24,
2766 - className: ""
2767 - };
5243 + var dynamicMatch = paramRe.exec(routeSegment);
2768 5244
2769 -//#endregion
2770 -//#region app/assets/js/ui/dialog/dialog-wrapper.js
2771 - function DialogWrapper(props) {
2772 - var WrapperTag = "div";
2773 - if (props.onSubmit) WrapperTag = "form";
2774 - return /*#__PURE__*/ react.default.createElement("section", { className: "eps-modal__overlay" }, /*#__PURE__*/ react.default.createElement(WrapperTag, {
2775 - className: "eps-modal eps-dialog",
2776 - onSubmit: props.onSubmit
2777 - }, props.onClose && /*#__PURE__*/ react.default.createElement(Button$1, {
2778 - onClick: props.onClose,
2779 - text: (0, _wordpress_i18n.__)("Close", "elementor"),
2780 - hideText: true,
2781 - icon: "eicon-close",
2782 - className: "eps-dialog__close-button"
2783 - }), props.children));
2784 - }
2785 - DialogWrapper.propTypes = {
2786 - onClose: import_prop_types.default.func,
2787 - onSubmit: import_prop_types.default.func,
2788 - children: import_prop_types.default.any
2789 - };
5245 + if (dynamicMatch && !isRootUri) {
5246 + var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1;
5247 + !matchIsNotReserved ? false ? undefined : browser_default()(false) : void 0;
5248 + var value = decodeURIComponent(uriSegment);
5249 + params[dynamicMatch[1]] = value;
5250 + } else if (routeSegment !== uriSegment) {
5251 + // Current segments don't match, not dynamic, not splat, so no match
5252 + // uri: /users/123/settings
5253 + // route: /users/:id/profile
5254 + missed = true;
5255 + break;
5256 + }
5257 + }
2790 5258
2791 -//#endregion
2792 -//#region app/assets/js/ui/dialog/dialog-content.js
2793 - function DialogContent(props) {
2794 - return /*#__PURE__*/ react.default.createElement("div", { className: "eps-dialog__content" }, props.children);
2795 - }
2796 - DialogContent.propTypes = { children: import_prop_types.default.any };
5259 + if (!missed) {
5260 + match = {
5261 + route: route,
5262 + params: params,
5263 + uri: "/" + uriSegments.slice(0, index).join("/")
5264 + };
5265 + break;
5266 + }
5267 + }
2797 5268
2798 -//#endregion
2799 -//#region app/assets/js/ui/atoms/heading.js
2800 - function Heading(props) {
2801 - var baseClassName = "eps";
2802 - var classes = [props.className];
2803 - if (props.variant) classes.push(baseClassName + "-" + props.variant);
2804 - return /*#__PURE__*/ react.default.createElement(function Element() {
2805 - return react.default.createElement(props.tag, { className: arrayToClassName(classes) }, props.children);
2806 - }, null);
2807 - }
2808 - Heading.propTypes = {
2809 - className: import_prop_types.default.string,
2810 - children: import_prop_types.default.oneOfType([
2811 - import_prop_types.default.string,
2812 - import_prop_types.default.object,
2813 - import_prop_types.default.arrayOf(import_prop_types.default.object)
2814 - ]).isRequired,
2815 - tag: import_prop_types.default.oneOf([
2816 - "h1",
2817 - "h2",
2818 - "h3",
2819 - "h4",
2820 - "h5",
2821 - "h6"
2822 - ]),
2823 - variant: import_prop_types.default.oneOf([
2824 - "display-1",
2825 - "display-2",
2826 - "display-3",
2827 - "display-4",
2828 - "h1",
2829 - "h2",
2830 - "h3",
2831 - "h4",
2832 - "h5",
2833 - "h6"
2834 - ]).isRequired
2835 - };
2836 - Heading.defaultProps = {
2837 - className: "",
2838 - tag: "h1"
2839 - };
5269 + return match || default_ || null;
5270 +};
2840 5271
2841 -//#endregion
2842 -//#region app/assets/js/ui/dialog/dialog-title.js
2843 - function ownKeys$6(e, r) {
2844 - var t = Object.keys(e);
2845 - if (Object.getOwnPropertySymbols) {
2846 - var o = Object.getOwnPropertySymbols(e);
2847 - r && (o = o.filter(function(r) {
2848 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
2849 - })), t.push.apply(t, o);
2850 - }
2851 - return t;
2852 - }
2853 - __name(ownKeys$6, "ownKeys");
2854 - function _objectSpread$6(e) {
2855 - for (var r = 1; r < arguments.length; r++) {
2856 - var t = null != arguments[r] ? arguments[r] : {};
2857 - r % 2 ? ownKeys$6(Object(t), !0).forEach(function(r) {
2858 - _defineProperty(e, r, t[r]);
2859 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function(r) {
2860 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2861 - });
2862 - }
2863 - return e;
2864 - }
2865 - __name(_objectSpread$6, "_objectSpread");
2866 - function DialogTitle(props) {
2867 - return /*#__PURE__*/ react.default.createElement(Heading, _extends$2({}, props, { className: "eps-dialog__title ".concat(props.className) }));
2868 - }
2869 - DialogTitle.propTypes = _objectSpread$6(_objectSpread$6({}, Heading.propTypes), {}, { className: import_prop_types.default.string });
2870 - DialogTitle.defaultProps = _objectSpread$6(_objectSpread$6({}, Heading.propTypes), {}, {
2871 - variant: "h3",
2872 - tag: "h3",
2873 - className: ""
2874 - });
5272 +////////////////////////////////////////////////////////////////////////////////
5273 +// match(path, uri) - Matches just one path to a uri, also lol
5274 +var utils_match = function match(path, uri) {
5275 + return utils_pick([{ path: path }], uri);
5276 +};
2875 5277
2876 -//#endregion
2877 -//#region app/assets/js/ui/atoms/text.js
2878 - function Text(props) {
2879 - var baseClassName = "eps";
2880 - var classes = [props.className];
2881 - var variant = props.variant && "md" !== props.variant ? "-" + props.variant : "";
2882 - classes.push(baseClassName + "-text" + variant);
2883 - return /*#__PURE__*/ react.default.createElement(function Element() {
2884 - return react.default.createElement(props.tag, { className: arrayToClassName(classes) }, props.children);
2885 - }, null);
2886 - }
2887 - Text.propTypes = {
2888 - className: import_prop_types.default.string,
2889 - variant: import_prop_types.default.oneOf([
2890 - "xl",
2891 - "lg",
2892 - "md",
2893 - "sm",
2894 - "xs",
2895 - "xxs"
2896 - ]),
2897 - tag: import_prop_types.default.string,
2898 - children: import_prop_types.default.any.isRequired
2899 - };
2900 - Text.defaultProps = {
2901 - className: "",
2902 - tag: "p"
2903 - };
5278 +////////////////////////////////////////////////////////////////////////////////
5279 +// resolve(to, basepath)
5280 +//
5281 +// Resolves URIs as though every path is a directory, no files. Relative URIs
5282 +// in the browser can feel awkward because not only can you be "in a directory"
5283 +// you can be "at a file", too. For example
5284 +//
5285 +// browserSpecResolve('foo', '/bar/') => /bar/foo
5286 +// browserSpecResolve('foo', '/bar') => /foo
5287 +//
5288 +// But on the command line of a file system, it's not as complicated, you can't
5289 +// `cd` from a file, only directories. This way, links have to know less about
5290 +// their current path. To go deeper you can do this:
5291 +//
5292 +// <Link to="deeper"/>
5293 +// // instead of
5294 +// <Link to=`{${props.uri}/deeper}`/>
5295 +//
5296 +// Just like `cd`, if you want to go deeper from the command line, you do this:
5297 +//
5298 +// cd deeper
5299 +// # not
5300 +// cd $(pwd)/deeper
5301 +//
5302 +// By treating every path as a directory, linking to relative paths should
5303 +// require less contextual information and (fingers crossed) be more intuitive.
5304 +var resolve = function resolve(to, base) {
5305 + // /foo/bar, /baz/qux => /foo/bar
5306 + if (startsWith(to, "/")) {
5307 + return to;
5308 + }
2904 5309
2905 -//#endregion
2906 -//#region app/assets/js/ui/dialog/dialog-text.js
2907 - function ownKeys$5(e, r) {
2908 - var t = Object.keys(e);
2909 - if (Object.getOwnPropertySymbols) {
2910 - var o = Object.getOwnPropertySymbols(e);
2911 - r && (o = o.filter(function(r) {
2912 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
2913 - })), t.push.apply(t, o);
2914 - }
2915 - return t;
2916 - }
2917 - __name(ownKeys$5, "ownKeys");
2918 - function _objectSpread$5(e) {
2919 - for (var r = 1; r < arguments.length; r++) {
2920 - var t = null != arguments[r] ? arguments[r] : {};
2921 - r % 2 ? ownKeys$5(Object(t), !0).forEach(function(r) {
2922 - _defineProperty(e, r, t[r]);
2923 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function(r) {
2924 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2925 - });
2926 - }
2927 - return e;
2928 - }
2929 - __name(_objectSpread$5, "_objectSpread");
2930 - function DialogText(props) {
2931 - return /*#__PURE__*/ react.default.createElement(Text, _extends$2({ variant: "xs" }, props, { className: "eps-dialog__text ".concat(props.className) }));
2932 - }
2933 - DialogText.propTypes = _objectSpread$5({}, Text.propTypes);
2934 - DialogText.defaultProps = _objectSpread$5(_objectSpread$5({}, Text.defaultProps), {}, {
2935 - tag: "p",
2936 - variant: "sm"
2937 - });
5310 + var _to$split = to.split("?"),
5311 + toPathname = _to$split[0],
5312 + toQuery = _to$split[1];
2938 5313
2939 -//#endregion
2940 -//#region app/assets/js/ui/dialog/dialog-actions.js
2941 - function DialogActions(props) {
2942 - return /*#__PURE__*/ react.default.createElement("div", { className: "eps-dialog__buttons" }, props.children);
2943 - }
2944 - DialogActions.propTypes = { children: import_prop_types.default.any };
5314 + var _base$split = base.split("?"),
5315 + basePathname = _base$split[0];
2945 5316
2946 -//#endregion
2947 -//#region app/assets/js/ui/dialog/dialog-button.js
2948 - function ownKeys$4(e, r) {
2949 - var t = Object.keys(e);
2950 - if (Object.getOwnPropertySymbols) {
2951 - var o = Object.getOwnPropertySymbols(e);
2952 - r && (o = o.filter(function(r) {
2953 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
2954 - })), t.push.apply(t, o);
2955 - }
2956 - return t;
2957 - }
2958 - __name(ownKeys$4, "ownKeys");
2959 - function _objectSpread$4(e) {
2960 - for (var r = 1; r < arguments.length; r++) {
2961 - var t = null != arguments[r] ? arguments[r] : {};
2962 - r % 2 ? ownKeys$4(Object(t), !0).forEach(function(r) {
2963 - _defineProperty(e, r, t[r]);
2964 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function(r) {
2965 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2966 - });
2967 - }
2968 - return e;
2969 - }
2970 - __name(_objectSpread$4, "_objectSpread");
2971 - function DialogButton(props) {
2972 - return /*#__PURE__*/ react.default.createElement(Button$1, _extends$2({}, props, { className: "eps-dialog__button ".concat(props.className) }));
2973 - }
2974 - DialogButton.propTypes = _objectSpread$4(_objectSpread$4({}, Button$1.propTypes), {}, {
2975 - tabIndex: import_prop_types.default.string,
2976 - type: import_prop_types.default.string
2977 - });
2978 - DialogButton.defaultProps = _objectSpread$4(_objectSpread$4({}, Button$1.defaultProps), {}, {
2979 - tabIndex: "0",
2980 - type: "button"
2981 - });
5317 + var toSegments = segmentize(toPathname);
5318 + var baseSegments = segmentize(basePathname);
2982 5319
2983 -//#endregion
2984 -//#region app/assets/js/ui/dialog/dialog.js
2985 - function Dialog(props) {
2986 - return /*#__PURE__*/ react.default.createElement(DialogWrapper, {
2987 - onSubmit: props.onSubmit,
2988 - onClose: props.onClose
2989 - }, /*#__PURE__*/ react.default.createElement(DialogContent, null, props.title && /*#__PURE__*/ react.default.createElement(DialogTitle, null, props.title), props.text && /*#__PURE__*/ react.default.createElement(DialogText, null, props.text), props.children), /*#__PURE__*/ react.default.createElement(DialogActions, null, /*#__PURE__*/ react.default.createElement(DialogButton, {
2990 - key: "dismiss",
2991 - text: props.dismissButtonText,
2992 - onClick: props.dismissButtonOnClick,
2993 - url: props.dismissButtonUrl,
2994 - target: props.dismissButtonTarget,
2995 - tabIndex: "2"
2996 - }), /*#__PURE__*/ react.default.createElement(DialogButton, {
2997 - key: "approve",
2998 - text: props.approveButtonText,
2999 - onClick: props.approveButtonOnClick,
3000 - url: props.approveButtonUrl,
3001 - target: props.approveButtonTarget,
3002 - color: props.approveButtonColor,
3003 - elRef: props.approveButtonRef,
3004 - tabIndex: "1"
3005 - })));
3006 - }
3007 - Dialog.propTypes = {
3008 - title: import_prop_types.default.any,
3009 - text: import_prop_types.default.any,
3010 - children: import_prop_types.default.any,
3011 - onSubmit: import_prop_types.default.func,
3012 - onClose: import_prop_types.default.func,
3013 - dismissButtonText: import_prop_types.default.string.isRequired,
3014 - dismissButtonOnClick: import_prop_types.default.func,
3015 - dismissButtonUrl: import_prop_types.default.string,
3016 - dismissButtonTarget: import_prop_types.default.string,
3017 - approveButtonText: import_prop_types.default.string.isRequired,
3018 - approveButtonOnClick: import_prop_types.default.func,
3019 - approveButtonUrl: import_prop_types.default.string,
3020 - approveButtonColor: import_prop_types.default.string,
3021 - approveButtonTarget: import_prop_types.default.string,
3022 - approveButtonRef: import_prop_types.default.object
3023 - };
3024 - Dialog.defaultProps = {};
3025 - Dialog.Wrapper = DialogWrapper;
3026 - Dialog.Content = DialogContent;
3027 - Dialog.Title = DialogTitle;
3028 - Dialog.Text = DialogText;
3029 - Dialog.Actions = DialogActions;
3030 - Dialog.Button = DialogButton;
5320 + // ?a=b, /users?b=c => /users?a=b
5321 + if (toSegments[0] === "") {
5322 + return addQuery(basePathname, toQuery);
5323 + }
3031 5324
3032 -//#endregion
3033 -//#region app/assets/js/ui/atoms/drag-drop.js
3034 - function DragDrop(props) {
3035 - var _useState2 = _slicedToArray((0, react.useState)(false), 2);
3036 - var isDragOver = _useState2[0];
3037 - var setIsDragOver = _useState2[1];
3038 - var getClassName = function getClassName() {
3039 - var baseClassName = "e-app-drag-drop";
3040 - var classes = [baseClassName, props.className];
3041 - if (isDragOver && !props.isLoading) classes.push(baseClassName + "--drag-over");
3042 - return arrayToClassName(classes);
3043 - };
3044 - var onDragDropActions = function onDragDropActions(event) {
3045 - event.preventDefault();
3046 - event.stopPropagation();
3047 - };
3048 - return /*#__PURE__*/ react.default.createElement("div", _extends$2({}, {
3049 - onDrop: function onDrop(event) {
3050 - onDragDropActions(event);
3051 - setIsDragOver(false);
3052 - if (props.onDrop) props.onDrop(event);
3053 - },
3054 - onDragOver: function onDragOver(event) {
3055 - onDragDropActions(event);
3056 - setIsDragOver(true);
3057 - if (props.onDragOver) props.onDragOver(event);
3058 - },
3059 - onDragLeave: function onDragLeave(event) {
3060 - onDragDropActions(event);
3061 - setIsDragOver(false);
3062 - if (props.onDragLeave) props.onDragLeave(event);
3063 - }
3064 - }, { className: getClassName() }), props.children);
3065 - }
3066 - DragDrop.propTypes = {
3067 - className: import_prop_types.default.string,
3068 - children: import_prop_types.default.any,
3069 - onDrop: import_prop_types.default.func,
3070 - onDragLeave: import_prop_types.default.func,
3071 - onDragOver: import_prop_types.default.func,
3072 - isLoading: import_prop_types.default.bool
3073 - };
3074 - DragDrop.defaultProps = { className: "" };
5325 + // profile, /users/789 => /users/789/profile
5326 + if (!startsWith(toSegments[0], ".")) {
5327 + var pathname = baseSegments.concat(toSegments).join("/");
5328 + return addQuery((basePathname === "/" ? "" : "/") + pathname, toQuery);
5329 + }
3075 5330
3076 -//#endregion
3077 -//#region app/assets/js/molecules/upload-file.js
3078 - function UploadFile(props) {
3079 - var fileInput = (0, react.useRef)(null);
3080 - var classes = ["e-app-upload-file", props.className];
3081 - var frame;
3082 - return /*#__PURE__*/ react.default.createElement("div", { className: arrayToClassName(classes) }, /*#__PURE__*/ react.default.createElement("input", {
3083 - ref: fileInput,
3084 - type: "file",
3085 - accept: props.filetypes.map(function(type) {
3086 - return "." + type;
3087 - }).join(", "),
3088 - className: "e-app-upload-file__input",
3089 - onChange: function onChange(event) {
3090 - var file = event.target.files[0];
3091 - if (file && isOneOf(file.type, props.filetypes)) props.onFileSelect(file, event, "browse");
3092 - else {
3093 - fileInput.current.value = "";
3094 - props.onError({
3095 - id: "file_not_allowed",
3096 - message: (0, _wordpress_i18n.__)("This file type is not allowed", "elementor")
3097 - });
3098 - }
3099 - }
3100 - }), /*#__PURE__*/ react.default.createElement(Button$1, {
3101 - className: "e-app-upload-file__button",
3102 - text: props.text,
3103 - variant: props.variant,
3104 - color: props.color,
3105 - size: "lg",
3106 - hideText: props.isLoading,
3107 - icon: props.isLoading ? "eicon-loading eicon-animation-spin" : "",
3108 - onClick: function onClick() {
3109 - if (props.onFileChoose) props.onFileChoose();
3110 - if (!props.isLoading) {
3111 - if (props.onButtonClick) props.onButtonClick();
3112 - if ("file-explorer" === props.type) fileInput.current.click();
3113 - else if ("wp-media" === props.type) {
3114 - if (frame) {
3115 - frame.open();
3116 - return;
3117 - }
3118 - frame = wp.media({
3119 - multiple: false,
3120 - library: { type: ["image", "image/svg+xml"] }
3121 - });
3122 - frame.on("select", function() {
3123 - if (props.onWpMediaSelect) props.onWpMediaSelect(frame);
3124 - });
3125 - frame.open();
3126 - }
3127 - }
3128 - }
3129 - }));
3130 - }
3131 - UploadFile.propTypes = {
3132 - className: import_prop_types.default.string,
3133 - type: import_prop_types.default.string,
3134 - onWpMediaSelect: import_prop_types.default.func,
3135 - text: import_prop_types.default.string,
3136 - onFileSelect: import_prop_types.default.func,
3137 - isLoading: import_prop_types.default.bool,
3138 - filetypes: import_prop_types.default.array.isRequired,
3139 - onError: import_prop_types.default.func,
3140 - variant: import_prop_types.default.string,
3141 - color: import_prop_types.default.string,
3142 - onButtonClick: import_prop_types.default.func,
3143 - onFileChoose: import_prop_types.default.func
3144 - };
3145 - UploadFile.defaultProps = {
3146 - className: "",
3147 - type: "file-explorer",
3148 - text: (0, _wordpress_i18n.__)("Select File", "elementor"),
3149 - onError: function onError() {},
3150 - variant: "contained",
3151 - color: "primary"
3152 - };
5331 + // ./ /users/123 => /users/123
5332 + // ../ /users/123 => /users
5333 + // ../.. /users/123 => /
5334 + // ../../one /a/b/c/d => /a/b/one
5335 + // .././one /a/b/c/d => /a/b/c/one
5336 + var allSegments = baseSegments.concat(toSegments);
5337 + var segments = [];
5338 + for (var i = 0, l = allSegments.length; i < l; i++) {
5339 + var segment = allSegments[i];
5340 + if (segment === "..") segments.pop();else if (segment !== ".") segments.push(segment);
5341 + }
3153 5342
3154 -//#endregion
3155 -//#region app/assets/js/organisms/drop-zone.js
3156 - function DropZone(props) {
3157 - var classes = ["e-app-drop-zone", props.className];
3158 - return /*#__PURE__*/ react.default.createElement("section", { className: arrayToClassName(classes) }, /*#__PURE__*/ react.default.createElement(DragDrop, _extends$2({}, { onDrop: function onDrop(event) {
3159 - if (!props.isLoading) {
3160 - var file = event.dataTransfer.files[0];
3161 - if (file && isOneOf(file.type, props.filetypes)) props.onFileSelect(file, event, "drop");
3162 - else props.onError({
3163 - id: "file_not_allowed",
3164 - message: (0, _wordpress_i18n.__)("This file type is not allowed", "elementor")
3165 - });
3166 - }
3167 - } }, { isLoading: props.isLoading }), props.icon && /*#__PURE__*/ react.default.createElement(Icon, { className: "e-app-drop-zone__icon ".concat(props.icon) }), props.heading && /*#__PURE__*/ react.default.createElement(Heading, { variant: "display-3" }, props.heading), props.text && /*#__PURE__*/ react.default.createElement(Text, {
3168 - variant: "xl",
3169 - className: "e-app-drop-zone__text"
3170 - }, props.text), props.secondaryText && /*#__PURE__*/ react.default.createElement(Text, {
3171 - variant: "xl",
3172 - className: "e-app-drop-zone__secondary-text"
3173 - }, props.secondaryText), props.showButton && /*#__PURE__*/ react.default.createElement(UploadFile, {
3174 - isLoading: props.isLoading,
3175 - type: props.type,
3176 - onButtonClick: props.onButtonClick,
3177 - onFileSelect: props.onFileSelect,
3178 - onWpMediaSelect: function onWpMediaSelect(frame) {
3179 - return props.onWpMediaSelect(frame);
3180 - },
3181 - onError: function onError(error) {
3182 - return props.onError(error);
3183 - },
3184 - text: props.buttonText,
3185 - filetypes: props.filetypes,
3186 - variant: props.buttonVariant,
3187 - color: props.buttonColor,
3188 - onFileChoose: props.onFileChoose
3189 - }), props.description && /*#__PURE__*/ react.default.createElement(Text, {
3190 - variant: "xl",
3191 - className: "e-app-drop-zone__description"
3192 - }, props.description)));
3193 - }
3194 - DropZone.propTypes = {
3195 - className: import_prop_types.default.string,
3196 - children: import_prop_types.default.any,
3197 - type: import_prop_types.default.string,
3198 - onFileSelect: import_prop_types.default.func.isRequired,
3199 - onWpMediaSelect: import_prop_types.default.func,
3200 - heading: import_prop_types.default.string,
3201 - text: import_prop_types.default.string,
3202 - secondaryText: import_prop_types.default.string,
3203 - buttonText: import_prop_types.default.string,
3204 - buttonVariant: import_prop_types.default.string,
3205 - buttonColor: import_prop_types.default.string,
3206 - icon: import_prop_types.default.string,
3207 - showButton: import_prop_types.default.bool,
3208 - showIcon: import_prop_types.default.bool,
3209 - isLoading: import_prop_types.default.bool,
3210 - filetypes: import_prop_types.default.array.isRequired,
3211 - onError: import_prop_types.default.func,
3212 - description: import_prop_types.default.string,
3213 - onButtonClick: import_prop_types.default.func,
3214 - onFileChoose: import_prop_types.default.func
3215 - };
3216 - DropZone.defaultProps = {
3217 - className: "",
3218 - type: "file-explorer",
3219 - icon: "eicon-library-upload",
3220 - showButton: true,
3221 - showIcon: true,
3222 - onError: function onError() {}
3223 - };
5343 + return addQuery("/" + segments.join("/"), toQuery);
5344 +};
3224 5345
3225 -//#endregion
3226 -//#region app/assets/js/organisms/error-boundary.js
3227 - function _callSuper$3(t, o, e) {
3228 - return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
3229 - }
3230 - __name(_callSuper$3, "_callSuper");
3231 - function _isNativeReflectConstruct$3() {
3232 - try {
3233 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
3234 - } catch (t) {}
3235 - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() {
3236 - return !!t;
3237 - })();
3238 - }
3239 - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct");
3240 - var ErrorBoundary = /*#__PURE__*/ function(_React$Component) {
3241 - function ErrorBoundary(props) {
3242 - var _this;
3243 - _classCallCheck$1(this, ErrorBoundary);
3244 - _this = _callSuper$3(this, ErrorBoundary, [props]);
3245 - _this.state = { hasError: null };
3246 - return _this;
3247 - }
3248 - _inherits$1(ErrorBoundary, _React$Component);
3249 - return _createClass(ErrorBoundary, [{
3250 - key: "goBack",
3251 - value: function goBack() {
3252 - if (window.top !== window.self) window.top.$e.run("app/close");
3253 - window.location = elementorAppConfig.return_url;
3254 - }
3255 - }, {
3256 - key: "render",
3257 - value: function render() {
3258 - if (this.state.hasError) return /*#__PURE__*/ react.default.createElement(Dialog, {
3259 - title: this.props.title,
3260 - text: this.props.text,
3261 - approveButtonUrl: this.props.learnMoreUrl,
3262 - approveButtonColor: "link",
3263 - approveButtonTarget: "_blank",
3264 - approveButtonText: (0, _wordpress_i18n.__)("Learn More", "elementor"),
3265 - dismissButtonText: (0, _wordpress_i18n.__)("Go Back", "elementor"),
3266 - dismissButtonOnClick: this.goBack
3267 - });
3268 - return this.props.children;
3269 - }
3270 - }], [{
3271 - key: "getDerivedStateFromError",
3272 - value: function getDerivedStateFromError() {
3273 - return { hasError: true };
3274 - }
3275 - }]);
3276 - }(react.default.Component);
3277 - _defineProperty(ErrorBoundary, "propTypes", {
3278 - children: import_prop_types.default.any,
3279 - title: import_prop_types.default.string,
3280 - text: import_prop_types.default.string,
3281 - learnMoreUrl: import_prop_types.default.string
3282 - });
3283 - _defineProperty(ErrorBoundary, "defaultProps", {
3284 - title: (0, _wordpress_i18n.__)("App could not be loaded", "elementor"),
3285 - text: (0, _wordpress_i18n.__)("We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.", "elementor"),
3286 - learnMoreUrl: "https://go.elementor.com/app-general-load-issue/"
3287 - });
5346 +////////////////////////////////////////////////////////////////////////////////
5347 +// insertParams(path, params)
3288 5348
3289 -//#endregion
3290 -//#region app/assets/js/molecules/go-pro-button.js
3291 - function GoProButton(props) {
3292 - var classes = ["e-app-go-pro-button", props.className];
3293 - return /*#__PURE__*/ react.default.createElement(Button$1, _extends$2({}, props, {
3294 - className: arrayToClassName(classes),
3295 - text: props.text
3296 - }));
3297 - }
3298 - GoProButton.propTypes = {
3299 - className: import_prop_types.default.string,
3300 - text: import_prop_types.default.string
3301 - };
3302 - GoProButton.defaultProps = {
3303 - className: "",
3304 - variant: "outlined",
3305 - size: "sm",
3306 - color: "cta",
3307 - target: "_blank",
3308 - rel: "noopener noreferrer",
3309 - text: (0, _wordpress_i18n.__)("Upgrade Now", "elementor")
3310 - };
5349 +var insertParams = function insertParams(path, params) {
5350 + var _path$split = path.split("?"),
5351 + pathBase = _path$split[0],
5352 + _path$split$ = _path$split[1],
5353 + query = _path$split$ === undefined ? "" : _path$split$;
3311 5354
3312 -//#endregion
3313 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
3314 - function _arrayWithoutHoles(r) {
3315 - if (Array.isArray(r)) return _arrayLikeToArray(r);
3316 - }
5355 + var segments = segmentize(pathBase);
5356 + var constructedPath = "/" + segments.map(function (segment) {
5357 + var match = paramRe.exec(segment);
5358 + return match ? params[match[1]] : segment;
5359 + }).join("/");
5360 + var _params$location = params.location;
5361 + _params$location = _params$location === undefined ? {} : _params$location;
5362 + var _params$location$sear = _params$location.search,
5363 + search = _params$location$sear === undefined ? "" : _params$location$sear;
3317 5364
3318 -//#endregion
3319 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js
3320 - function _iterableToArray(r) {
3321 - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
3322 - }
5365 + var searchSplit = search.split("?")[1] || "";
5366 + constructedPath = addQuery(constructedPath, query, searchSplit);
5367 + return constructedPath;
5368 +};
3323 5369
3324 -//#endregion
3325 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
3326 - function _nonIterableSpread() {
3327 - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3328 - }
5370 +var validateRedirect = function validateRedirect(from, to) {
5371 + var filter = function filter(segment) {
5372 + return isDynamic(segment);
5373 + };
5374 + var fromString = segmentize(from).filter(filter).sort().join("/");
5375 + var toString = segmentize(to).filter(filter).sort().join("/");
5376 + return fromString === toString;
5377 +};
3329 5378
3330 -//#endregion
3331 -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
3332 - function _toConsumableArray(r) {
3333 - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
3334 - }
5379 +////////////////////////////////////////////////////////////////////////////////
5380 +// Junk
5381 +var paramRe = /^:(.+)/;
3335 5382
3336 -//#endregion
3337 -//#region app/assets/js/ui/grid/grid.js
3338 - function Grid(props) {
3339 - var propsMap = {
3340 - direction: "--direction{{ -VALUE }}",
3341 - justify: "--justify{{ -VALUE }}",
3342 - alignContent: "--align-content{{ -VALUE }}",
3343 - alignItems: "--align-items{{ -VALUE }}",
3344 - container: "-container",
3345 - item: "-item",
3346 - noWrap: "-container--no-wrap",
3347 - wrapReverse: "-container--wrap-reverse",
3348 - zeroMinWidth: "-item--zero-min-width",
3349 - spacing: "-container--spacing",
3350 - xs: "-item-xs{{ -VALUE }}",
3351 - sm: "-item-sm{{ -VALUE }}",
3352 - md: "-item-md{{ -VALUE }}",
3353 - lg: "-item-lg{{ -VALUE }}",
3354 - xl: "-item-xl{{ -VALUE }}",
3355 - xxl: "-item-xxl{{ -VALUE }}"
3356 - };
3357 - var getStyle = function getStyle() {
3358 - return isValidPropValue(props.spacing) ? { "--grid-spacing-gutter": pxToRem(props.spacing) } : {};
3359 - };
3360 - var classes = [getBaseClassName(), props.className].concat(_toConsumableArray(getPropsClasses(propsMap, props)));
3361 - return /*#__PURE__*/ react.default.createElement("div", {
3362 - style: getStyle(),
3363 - className: arrayToClassName(classes)
3364 - }, props.children);
3365 - }
3366 - function getPropsClasses(propsMap, props) {
3367 - var classes = [];
3368 - for (var prop in propsMap) if (props[prop]) {
3369 - var propValue = isValidPropValue(props[prop]) ? props[prop] : "";
3370 - classes.push(getBaseClassName() + renderPropValueBrackets(propsMap[prop], propValue));
3371 - }
3372 - return classes;
3373 - }
3374 - function renderPropValueBrackets(propClass, propValue) {
3375 - var brackets = propClass.match(/{{.*?}}/);
3376 - if (brackets) {
3377 - var bracketsValue = propValue ? brackets[0].replace(/[{ }]/g, "").replace(/value/i, propValue) : "";
3378 - propClass = propClass.replace(brackets[0], bracketsValue);
3379 - }
3380 - return propClass;
3381 - }
3382 - function getBaseClassName() {
3383 - return "eps-grid";
3384 - }
3385 - function isValidPropValue(propValue) {
3386 - return propValue && "boolean" !== typeof propValue;
3387 - }
3388 - Grid.propTypes = {
3389 - className: import_prop_types.default.string,
3390 - direction: import_prop_types.default.oneOf([
3391 - "row",
3392 - "column",
3393 - "row-reverse",
3394 - "column-reverse"
3395 - ]),
3396 - justify: import_prop_types.default.oneOf([
3397 - "start",
3398 - "center",
3399 - "end",
3400 - "space-between",
3401 - "space-evenly",
3402 - "space-around",
3403 - "stretch"
3404 - ]),
3405 - alignContent: import_prop_types.default.oneOf([
3406 - "start",
3407 - "center",
3408 - "end",
3409 - "space-between",
3410 - "stretch"
3411 - ]),
3412 - alignItems: import_prop_types.default.oneOf([
3413 - "start",
3414 - "center",
3415 - "end",
3416 - "baseline",
3417 - "stretch"
3418 - ]),
3419 - container: import_prop_types.default.bool,
3420 - item: import_prop_types.default.bool,
3421 - noWrap: import_prop_types.default.bool,
3422 - wrapReverse: import_prop_types.default.bool,
3423 - zeroMinWidth: import_prop_types.default.bool,
3424 - spacing: import_prop_types.default.number,
3425 - xs: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.bool]),
3426 - sm: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.bool]),
3427 - md: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.bool]),
3428 - lg: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.bool]),
3429 - xl: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.bool]),
3430 - xxl: import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.bool]),
3431 - children: import_prop_types.default.any.isRequired
3432 - };
3433 - Grid.defaultProps = { className: "" };
5383 +var SEGMENT_POINTS = 4;
5384 +var STATIC_POINTS = 3;
5385 +var DYNAMIC_POINTS = 2;
5386 +var SPLAT_PENALTY = 1;
5387 +var ROOT_POINTS = 1;
3434 5388
3435 -//#endregion
3436 -//#region app/assets/js/ui/molecules/list-item.js
3437 - function ListItem(props) {
3438 - var baseClassName = "eps-list__item";
3439 - var classes = [baseClassName, props.className];
3440 - var style;
3441 - if (Object.prototype.hasOwnProperty.call(props, "padding")) {
3442 - style = { "--eps-list-item-padding": pxToRem(props.padding) };
3443 - classes.push(baseClassName + "--padding");
3444 - }
3445 - return /*#__PURE__*/ react.default.createElement("li", {
3446 - style,
3447 - className: arrayToClassName(classes)
3448 - }, props.children);
3449 - }
3450 - ListItem.propTypes = {
3451 - className: import_prop_types.default.string,
3452 - padding: import_prop_types.default.string,
3453 - children: import_prop_types.default.any.isRequired
3454 - };
3455 - ListItem.defaultProps = { className: "" };
5389 +var isRootSegment = function isRootSegment(segment) {
5390 + return segment === "";
5391 +};
5392 +var isDynamic = function isDynamic(segment) {
5393 + return paramRe.test(segment);
5394 +};
5395 +var isSplat = function isSplat(segment) {
5396 + return segment && segment[0] === "*";
5397 +};
3456 5398
3457 -//#endregion
3458 -//#region app/assets/js/ui/molecules/list.js
3459 - function List(props) {
3460 - var baseClassName = "eps-list";
3461 - var classes = [baseClassName, props.className];
3462 - var style;
3463 - if (Object.prototype.hasOwnProperty.call(props, "padding")) {
3464 - style = { "--eps-list-padding": pxToRem(props.padding) };
3465 - classes.push(baseClassName + "--padding");
3466 - }
3467 - if (props.separated) classes.push(baseClassName + "--separated");
3468 - return /*#__PURE__*/ react.default.createElement("ul", {
3469 - style,
3470 - className: arrayToClassName(classes)
3471 - }, props.children);
3472 - }
3473 - List.propTypes = {
3474 - className: import_prop_types.default.string,
3475 - divided: import_prop_types.default.any,
3476 - separated: import_prop_types.default.any,
3477 - padding: import_prop_types.default.string,
3478 - children: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.arrayOf(import_prop_types.default.object)]).isRequired
3479 - };
3480 - List.defaultProps = { className: "" };
3481 - List.Item = ListItem;
5399 +var rankRoute = function rankRoute(route, index) {
5400 + var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) {
5401 + score += SEGMENT_POINTS;
5402 + if (isRootSegment(segment)) score += ROOT_POINTS;else if (isDynamic(segment)) score += DYNAMIC_POINTS;else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;else score += STATIC_POINTS;
5403 + return score;
5404 + }, 0);
5405 + return { route: route, score: score, index: index };
5406 +};
3482 5407
3483 -//#endregion
3484 -//#region app/assets/js/ui/menu/menu.js
3485 - function Menu$1(props) {
3486 - var ActionButton = function ActionButton(itemProps) {
3487 - if (!props.actionButton) return "";
3488 - return props.actionButton(itemProps);
3489 - };
3490 - if (props.promotion) return /*#__PURE__*/ react.default.createElement("nav", { className: "eps-menu" }, props.children, /*#__PURE__*/ react.default.createElement("ul", null, props.menuItems.map(function(item) {
3491 - return /*#__PURE__*/ react.default.createElement("li", {
3492 - key: item.type,
3493 - className: "eps-menu-item"
3494 - }, /*#__PURE__*/ react.default.createElement(Button$1, _extends$2({
3495 - text: item.title,
3496 - className: "eps-menu-item__link"
3497 - }, item)), /*#__PURE__*/ react.default.createElement(ActionButton, item));
3498 - })));
3499 - return /*#__PURE__*/ react.default.createElement(LocationProvider, { history: router.appHistory }, /*#__PURE__*/ react.default.createElement("nav", { className: "eps-menu" }, props.children, /*#__PURE__*/ react.default.createElement("ul", null, props.menuItems.map(function(item) {
3500 - return /*#__PURE__*/ react.default.createElement(Match, {
3501 - key: item.type,
3502 - path: item.url
3503 - }, function(_ref) {
3504 - var match = _ref.match;
3505 - return /*#__PURE__*/ react.default.createElement("li", {
3506 - key: item.type,
3507 - className: "eps-menu-item".concat(match ? " eps-menu-item--active" : "")
3508 - }, /*#__PURE__*/ react.default.createElement(Button$1, _extends$2({
3509 - text: item.title,
3510 - className: "eps-menu-item__link"
3511 - }, item)), /*#__PURE__*/ react.default.createElement(ActionButton, item));
3512 - });
3513 - }))));
3514 - }
3515 - __name(Menu$1, "Menu");
3516 - Menu$1.propTypes = {
3517 - menuItems: import_prop_types.default.arrayOf(import_prop_types.default.object),
3518 - children: import_prop_types.default.any,
3519 - actionButton: import_prop_types.default.func,
3520 - promotion: import_prop_types.default.bool
3521 - };
5408 +var rankRoutes = function rankRoutes(routes) {
5409 + return routes.map(rankRoute).sort(function (a, b) {
5410 + return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index;
5411 + });
5412 +};
3522 5413
3523 -//#endregion
3524 -//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js
3525 - function _superPropBase(t, o) {
3526 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
3527 - return t;
3528 - }
5414 +var segmentize = function segmentize(uri) {
5415 + return uri
5416 + // strip starting/ending slashes
5417 + .replace(/(^\/+|\/+$)/g, "").split("/");
5418 +};
3529 5419
3530 -//#endregion
3531 -//#region node_modules/@babel/runtime/helpers/esm/get.js
3532 - function _get() {
3533 - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
3534 - var p = _superPropBase(e, t);
3535 - if (p) {
3536 - var n = Object.getOwnPropertyDescriptor(p, t);
3537 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
3538 - }
3539 - }, _get.apply(null, arguments);
3540 - }
5420 +var addQuery = function addQuery(pathname) {
5421 + for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5422 + query[_key - 1] = arguments[_key];
5423 + }
3541 5424
3542 -//#endregion
3543 -//#region app/assets/js/ui/menu/menu-item.js
3544 - function _callSuper$2(t, o, e) {
3545 - return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
3546 - }
3547 - __name(_callSuper$2, "_callSuper");
3548 - function _isNativeReflectConstruct$2() {
3549 - try {
3550 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
3551 - } catch (t) {}
3552 - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() {
3553 - return !!t;
3554 - })();
3555 - }
3556 - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct");
3557 - function _superPropGet$1(t, o, e, r) {
3558 - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
3559 - return 2 & r && "function" == typeof p ? function(t) {
3560 - return p.apply(e, t);
3561 - } : p;
3562 - }
3563 - __name(_superPropGet$1, "_superPropGet");
3564 - var SideMenuItem = /*#__PURE__*/ function(_BaseButton) {
3565 - function SideMenuItem() {
3566 - _classCallCheck$1(this, SideMenuItem);
3567 - return _callSuper$2(this, SideMenuItem, arguments);
3568 - }
3569 - _inherits$1(SideMenuItem, _BaseButton);
3570 - return _createClass(SideMenuItem, [{
3571 - key: "getCssId",
3572 - value: function getCssId() {
3573 - return "eps-menu-item-" + _superPropGet$1(SideMenuItem, "getCssId", this, 3)([]);
3574 - }
3575 - }, {
3576 - key: "getClassName",
3577 - value: function getClassName() {
3578 - return "eps-menu-item " + _superPropGet$1(SideMenuItem, "getClassName", this, 3)([]);
3579 - }
3580 - }]);
3581 - }(Button$1);
5425 + query = query.filter(function (q) {
5426 + return q && q.length > 0;
5427 + });
5428 + return pathname + (query && query.length > 0 ? "?" + query.join("&") : "");
5429 +};
3582 5430
3583 -//#endregion
3584 -//#region app/assets/js/ui/modal/modal-section.js
3585 - function ModalSection(props) {
3586 - return /*#__PURE__*/ react.default.createElement("section", { className: arrayToClassName(["eps-modal__section", props.className]) }, props.children);
3587 - }
3588 - ModalSection.propTypes = {
3589 - className: import_prop_types.default.string,
3590 - children: import_prop_types.default.any
3591 - };
3592 - ModalSection.defaultProps = { className: "" };
5431 +var reservedNames = ["uri", "path"];
3593 5432
3594 -//#endregion
3595 -//#region app/assets/js/ui/modal/modal-tip.js
3596 - function ModalTip(props) {
3597 - return /*#__PURE__*/ react.default.createElement("div", { className: arrayToClassName(["eps-modal__tip", props.className]) }, /*#__PURE__*/ react.default.createElement(Heading, {
3598 - variant: "h3",
3599 - tag: "h3"
3600 - }, props.title), props.description && /*#__PURE__*/ react.default.createElement(Text, { variant: "xs" }, props.description));
3601 - }
3602 - ModalTip.propTypes = {
3603 - className: import_prop_types.default.string,
3604 - title: import_prop_types.default.string,
3605 - description: import_prop_types.default.string
3606 - };
3607 - ModalTip.defaultProps = {
3608 - className: "",
3609 - title: (0, _wordpress_i18n.__)("Tip", "elementor")
3610 - };
5433 +/**
5434 + * Shallow compares two objects.
5435 + * @param {Object} obj1 The first object to compare.
5436 + * @param {Object} obj2 The second object to compare.
5437 + */
5438 +var shallowCompare = function shallowCompare(obj1, obj2) {
5439 + var obj1Keys = Object.keys(obj1);
5440 + return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) {
5441 + return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];
5442 + });
5443 +};
3611 5444
3612 -//#endregion
3613 -//#region app/assets/js/ui/modal/modal.js
3614 - function ownKeys$3(e, r) {
3615 - var t = Object.keys(e);
3616 - if (Object.getOwnPropertySymbols) {
3617 - var o = Object.getOwnPropertySymbols(e);
3618 - r && (o = o.filter(function(r) {
3619 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
3620 - })), t.push.apply(t, o);
3621 - }
3622 - return t;
3623 - }
3624 - __name(ownKeys$3, "ownKeys");
3625 - function _objectSpread$3(e) {
3626 - for (var r = 1; r < arguments.length; r++) {
3627 - var t = null != arguments[r] ? arguments[r] : {};
3628 - r % 2 ? ownKeys$3(Object(t), !0).forEach(function(r) {
3629 - _defineProperty(e, r, t[r]);
3630 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function(r) {
3631 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
3632 - });
3633 - }
3634 - return e;
3635 - }
3636 - __name(_objectSpread$3, "_objectSpread");
3637 - function ModalProvider(props) {
3638 - var _useState2 = _slicedToArray((0, react.useState)(props.show), 2);
3639 - var show = _useState2[0];
3640 - var setShow = _useState2[1];
3641 - var hideModal = function hideModal() {
3642 - setShow(false);
3643 - if (props.setShow) props.setShow(false);
3644 - };
3645 - var showModal = function showModal() {
3646 - setShow(true);
3647 - if (props.setShow) props.setShow(true);
3648 - };
3649 - var modalAttrs = _objectSpread$3(_objectSpread$3({}, props), {}, {
3650 - show,
3651 - hideModal,
3652 - showModal
3653 - });
3654 - (0, react.useEffect)(function() {
3655 - setShow(props.show);
3656 - }, [props.show]);
3657 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, props.toggleButtonProps && /*#__PURE__*/ react.default.createElement(Button$1, _extends$2({}, props.toggleButtonProps, { onClick: showModal })), /*#__PURE__*/ react.default.createElement(Modal, modalAttrs, props.children));
3658 - }
3659 - ModalProvider.propTypes = {
3660 - children: import_prop_types.default.node.isRequired,
3661 - toggleButtonProps: import_prop_types.default.object,
3662 - title: import_prop_types.default.string,
3663 - icon: import_prop_types.default.string,
3664 - show: import_prop_types.default.bool,
3665 - setShow: import_prop_types.default.func,
3666 - onOpen: import_prop_types.default.func,
3667 - onClose: import_prop_types.default.func
3668 - };
3669 - ModalProvider.defaultProps = { show: false };
3670 - ModalProvider.Section = ModalSection;
3671 - ModalProvider.Tip = ModalTip;
3672 - var Modal = function Modal(props) {
3673 - var modalRef = (0, react.useRef)(null);
3674 - var closeRef = (0, react.useRef)(null);
3675 - var closeModal = function closeModal(e) {
3676 - var node = modalRef.current;
3677 - var closeNode = closeRef.current;
3678 - var isInCloseNode = closeNode && closeNode.contains(e.target);
3679 - if (node && node.contains(e.target) && !isInCloseNode) return;
3680 - props.hideModal();
3681 - if (props.onClose) props.onClose(e);
3682 - };
3683 - (0, react.useEffect)(function() {
3684 - if (props.show) {
3685 - var _props$onOpen;
3686 - document.addEventListener("mousedown", closeModal, false);
3687 - (_props$onOpen = props.onOpen) === null || _props$onOpen === void 0 || _props$onOpen.call(props);
3688 - }
3689 - return function() {
3690 - return document.removeEventListener("mousedown", closeModal, false);
3691 - };
3692 - }, [props.show]);
3693 - if (!props.show) return null;
3694 - return /*#__PURE__*/ react.default.createElement("div", {
3695 - className: "eps-modal__overlay",
3696 - onClick: closeModal
3697 - }, /*#__PURE__*/ react.default.createElement("div", {
3698 - className: arrayToClassName(["eps-modal", props.className]),
3699 - ref: modalRef
3700 - }, /*#__PURE__*/ react.default.createElement(Grid, {
3701 - container: true,
3702 - className: "eps-modal__header",
3703 - justify: "space-between",
3704 - alignItems: "center"
3705 - }, /*#__PURE__*/ react.default.createElement(Grid, { item: true }, /*#__PURE__*/ react.default.createElement(Icon, { className: "eps-modal__icon ".concat(props.icon) }), /*#__PURE__*/ react.default.createElement(Text, {
3706 - className: "title",
3707 - tag: "span"
3708 - }, props.title)), /*#__PURE__*/ react.default.createElement(Grid, { item: true }, /*#__PURE__*/ react.default.createElement("div", {
3709 - className: "eps-modal__close-wrapper",
3710 - ref: closeRef
3711 - }, /*#__PURE__*/ react.default.createElement(Button$1, {
3712 - text: (0, _wordpress_i18n.__)("Close", "elementor"),
3713 - hideText: true,
3714 - icon: "eicon-close",
3715 - onClick: props.closeModal
3716 - })))), /*#__PURE__*/ react.default.createElement("div", { className: "eps-modal__body" }, props.children)));
3717 - };
3718 - Modal.propTypes = {
3719 - className: import_prop_types.default.string,
3720 - children: import_prop_types.default.any.isRequired,
3721 - title: import_prop_types.default.string.isRequired,
3722 - icon: import_prop_types.default.string,
3723 - show: import_prop_types.default.bool,
3724 - setShow: import_prop_types.default.func,
3725 - hideModal: import_prop_types.default.func,
3726 - showModal: import_prop_types.default.func,
3727 - closeModal: import_prop_types.default.func,
3728 - onOpen: import_prop_types.default.func,
3729 - onClose: import_prop_types.default.func
3730 - };
3731 - Modal.defaultProps = { className: "" };
5445 +////////////////////////////////////////////////////////////////////////////////
3732 5446
3733 -//#endregion
3734 -//#region app/assets/js/hooks/use-action.js
3735 - function useAction() {
3736 - return {
3737 - backToDashboard: function backToDashboard() {
3738 - if (window.top === window) window.top.location = elementorAppConfig.admin_url;
3739 - else window.top.$e.run("app/close");
3740 - },
3741 - backToReferrer: function backToReferrer() {
3742 - if (window.top === window) window.top.location = elementorAppConfig.return_url.includes(elementorAppConfig.login_url) ? elementorAppConfig.admin_url : elementorAppConfig.return_url;
3743 - else window.top.$e.run("app/close");
3744 - }
3745 - };
3746 - }
5447 +// CONCATENATED MODULE: ../node_modules/@reach/router/es/lib/history.js
5448 +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
3747 5449
3748 -//#endregion
3749 -//#region app/assets/js/layout/header-button.js
3750 - function _callSuper$1(t, o, e) {
3751 - return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
3752 - }
3753 - __name(_callSuper$1, "_callSuper");
3754 - function _isNativeReflectConstruct$1() {
3755 - try {
3756 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
3757 - } catch (t) {}
3758 - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() {
3759 - return !!t;
3760 - })();
3761 - }
3762 - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct");
3763 - function _superPropGet(t, o, e, r) {
3764 - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
3765 - return 2 & r && "function" == typeof p ? function(t) {
3766 - return p.apply(e, t);
3767 - } : p;
3768 - }
3769 - var Button = /*#__PURE__*/ function(_BaseButton) {
3770 - function Button() {
3771 - _classCallCheck$1(this, Button);
3772 - return _callSuper$1(this, Button, arguments);
3773 - }
3774 - _inherits$1(Button, _BaseButton);
3775 - return _createClass(Button, [{
3776 - key: "getCssId",
3777 - value: function getCssId() {
3778 - return "eps-app-header-btn-" + _superPropGet(Button, "getCssId", this, 3)([]);
3779 - }
3780 - }, {
3781 - key: "getClassName",
3782 - value: function getClassName() {
3783 - if (!this.props.includeHeaderBtnClass) return _superPropGet(Button, "getClassName", this, 3)([]);
3784 - return "eps-app__header-btn " + _superPropGet(Button, "getClassName", this, 3)([]);
3785 - }
3786 - }]);
3787 - }(Button$1);
3788 - _defineProperty(Button, "defaultProps", Object.assign({}, Button$1.defaultProps, {
3789 - hideText: true,
3790 - includeHeaderBtnClass: true
3791 - }));
5450 +var getLocation = function getLocation(source) {
5451 + var _source$location = source.location,
5452 + search = _source$location.search,
5453 + hash = _source$location.hash,
5454 + href = _source$location.href,
5455 + origin = _source$location.origin,
5456 + protocol = _source$location.protocol,
5457 + host = _source$location.host,
5458 + hostname = _source$location.hostname,
5459 + port = _source$location.port;
5460 + var pathname = source.location.pathname;
3792 5461
3793 -//#endregion
3794 -//#region app/assets/js/layout/header-buttons.js
3795 - function HeaderButtons(props) {
3796 - var action = useAction();
3797 - var actionOnClose = function actionOnClose() {
3798 - if (props.onClose) props.onClose();
3799 - else action.backToDashboard();
3800 - };
3801 - var tools = "";
3802 - if (props.buttons.length) {
3803 - var buttons = props.buttons.map(function(button) {
3804 - return /*#__PURE__*/ react.default.createElement(Button, _extends$2({ key: button.id }, button));
3805 - });
3806 - tools = /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, buttons);
3807 - }
3808 - return /*#__PURE__*/ react.default.createElement("div", { className: "eps-app__header-buttons" }, /*#__PURE__*/ react.default.createElement(Button, {
3809 - text: (0, _wordpress_i18n.__)("Close", "elementor"),
3810 - icon: "eicon-close",
3811 - className: "eps-app__close-button",
3812 - onClick: actionOnClose
3813 - }), tools);
3814 - }
3815 - HeaderButtons.propTypes = {
3816 - buttons: import_prop_types.default.arrayOf(import_prop_types.default.object),
3817 - onClose: import_prop_types.default.func
3818 - };
3819 - HeaderButtons.defaultProps = { buttons: [] };
3820 5462
3821 -//#endregion
3822 -//#region app/assets/js/hooks/use-page-title.js
3823 - function usePageTitle(_ref) {
3824 - var title = _ref.title;
3825 - var prefix = _ref.prefix;
3826 - var prefixRef = (0, react.useRef)(prefix);
3827 - (0, react.useEffect)(function() {
3828 - if (!prefix) prefixRef.current = (0, _wordpress_i18n.__)("Elementor", "elementor");
3829 - document.title = "".concat(prefixRef.current, " | ").concat(title);
3830 - }, [title, prefix]);
3831 - }
5463 + if (!pathname && href && canUseDOM) {
5464 + var url = new URL(href);
5465 + pathname = url.pathname;
5466 + }
3832 5467
3833 -//#endregion
3834 -//#region app/assets/js/layout/header.js
3835 - function Header(props) {
3836 - usePageTitle({ title: props.title });
3837 - var TitleTag = "span";
3838 - var titleAttrs = {};
3839 - if (props.titleRedirectRoute) {
3840 - TitleTag = "a";
3841 - titleAttrs = {
3842 - href: "#".concat(props.titleRedirectRoute),
3843 - target: "_self"
3844 - };
3845 - }
3846 - return /*#__PURE__*/ react.default.createElement(Grid, {
3847 - container: true,
3848 - alignItems: "center",
3849 - justify: "space-between",
3850 - className: "eps-app__header"
3851 - }, /*#__PURE__*/ react.default.createElement(TitleTag, _extends$2({ className: "eps-app__logo-title-wrapper" }, titleAttrs), /*#__PURE__*/ react.default.createElement("i", { className: "eps-app__logo eicon-elementor-circle" }), /*#__PURE__*/ react.default.createElement("h1", { className: "eps-app__title" }, props.title)), /*#__PURE__*/ react.default.createElement(HeaderButtons, {
3852 - buttons: props.buttons,
3853 - onClose: props.onClose
3854 - }));
3855 - }
3856 - Header.propTypes = {
3857 - title: import_prop_types.default.string,
3858 - titleRedirectRoute: import_prop_types.default.string,
3859 - buttons: import_prop_types.default.arrayOf(import_prop_types.default.object),
3860 - onClose: import_prop_types.default.func
3861 - };
3862 - Header.defaultProps = { buttons: [] };
5468 + return {
5469 + pathname: encodeURI(decodeURI(pathname)),
5470 + search: search,
5471 + hash: hash,
5472 + href: href,
5473 + origin: origin,
5474 + protocol: protocol,
5475 + host: host,
5476 + hostname: hostname,
5477 + port: port,
5478 + state: source.history.state,
5479 + key: source.history.state && source.history.state.key || "initial"
5480 + };
5481 +};
3863 5482
3864 -//#endregion
3865 -//#region app/assets/js/layout/sidebar.js
3866 - function Sidebar(props) {
3867 - return /*#__PURE__*/ react.default.createElement("div", { className: "eps-app__sidebar" }, props.children);
3868 - }
3869 - Sidebar.propTypes = { children: import_prop_types.default.object };
5483 +var createHistory = function createHistory(source, options) {
5484 + var listeners = [];
5485 + var location = getLocation(source);
5486 + var transitioning = false;
5487 + var resolveTransition = function resolveTransition() {};
3870 5488
3871 -//#endregion
3872 -//#region app/assets/js/layout/content.js
3873 - function Content(props) {
3874 - return /*#__PURE__*/ react.default.createElement("main", { className: "eps-app__content ".concat(props.className) }, props.children);
3875 - }
3876 - Content.propTypes = {
3877 - children: import_prop_types.default.any,
3878 - className: import_prop_types.default.string
3879 - };
3880 - Content.defaultProps = { className: "" };
5489 + return {
5490 + get location() {
5491 + return location;
5492 + },
3881 5493
3882 -//#endregion
3883 -//#region app/assets/js/layout/footer.js
3884 - function Footer(props) {
3885 - return /*#__PURE__*/ react.default.createElement("footer", { className: "eps-app__footer" }, props.children);
3886 - }
3887 - Footer.propTypes = { children: import_prop_types.default.object };
5494 + get transitioning() {
5495 + return transitioning;
5496 + },
3888 5497
3889 -//#endregion
3890 -//#region app/assets/js/layout/page.js
3891 - function Page(props) {
3892 - return /*#__PURE__*/ react.default.createElement("div", { className: "eps-app__lightbox ".concat(props.className) }, /*#__PURE__*/ react.default.createElement("div", { className: "eps-app" }, /*#__PURE__*/ react.default.createElement(Header, {
3893 - title: props.title,
3894 - buttons: props.headerButtons,
3895 - titleRedirectRoute: props.titleRedirectRoute,
3896 - onClose: props.onClose
3897 - }), /*#__PURE__*/ react.default.createElement("div", { className: "eps-app__main" }, function AppSidebar() {
3898 - if (!props.sidebar) return;
3899 - return /*#__PURE__*/ react.default.createElement(Sidebar, null, props.sidebar);
3900 - }(), /*#__PURE__*/ react.default.createElement(Content, null, props.content)), function AppFooter() {
3901 - if (!props.footer) return;
3902 - return /*#__PURE__*/ react.default.createElement(Footer, null, props.footer);
3903 - }()));
3904 - }
3905 - Page.propTypes = {
3906 - title: import_prop_types.default.string,
3907 - titleRedirectRoute: import_prop_types.default.string,
3908 - className: import_prop_types.default.string,
3909 - headerButtons: import_prop_types.default.arrayOf(import_prop_types.default.object),
3910 - sidebar: import_prop_types.default.object,
3911 - content: import_prop_types.default.object.isRequired,
3912 - footer: import_prop_types.default.object,
3913 - onClose: import_prop_types.default.func
3914 - };
3915 - Page.defaultProps = { className: "" };
5498 + _onTransitionComplete: function _onTransitionComplete() {
5499 + transitioning = false;
5500 + resolveTransition();
5501 + },
5502 + listen: function listen(listener) {
5503 + listeners.push(listener);
3916 5504
3917 -//#endregion
3918 -//#region app/assets/js/pages/not-found.js
3919 - function NotFound$1() {
3920 - var config = {
3921 - title: (0, _wordpress_i18n.__)("Not Found", "elementor"),
3922 - className: "eps-app__not-found",
3923 - content: /*#__PURE__*/ react.default.createElement("h1", null, " ", (0, _wordpress_i18n.__)("Not Found", "elementor"), " "),
3924 - sidebar: /*#__PURE__*/ react.default.createElement(react.default.Fragment, null)
3925 - };
3926 - return /*#__PURE__*/ react.default.createElement(Page, config);
3927 - }
3928 - __name(NotFound$1, "NotFound");
5505 + var popstateListener = function popstateListener() {
5506 + location = getLocation(source);
5507 + listener({ location: location, action: "POP" });
5508 + };
3929 5509
3930 -//#endregion
3931 -//#region app/assets/js/ui/molecules/notice.js
3932 - var iconsClassesMap = {
3933 - danger: "eicon-warning",
3934 - info: "eicon-info-circle-o",
3935 - warning: "eicon-warning"
3936 - };
3937 - function Notice(props) {
3938 - var baseClassName = "eps-notice";
3939 - var classes = [baseClassName, props.className];
3940 - if (props.color) classes.push(baseClassName + "-semantic", baseClassName + "--" + props.color);
3941 - return /*#__PURE__*/ react.default.createElement(Grid, {
3942 - className: arrayToClassName(classes),
3943 - container: true,
3944 - noWrap: true,
3945 - alignItems: "center",
3946 - justify: "space-between"
3947 - }, /*#__PURE__*/ react.default.createElement(Grid, {
3948 - item: true,
3949 - container: true,
3950 - alignItems: "start",
3951 - noWrap: true
3952 - }, props.withIcon && props.color && /*#__PURE__*/ react.default.createElement(Icon, { className: arrayToClassName(["eps-notice__icon", iconsClassesMap[props.color]]) }), /*#__PURE__*/ react.default.createElement(Text, {
3953 - variant: "xs",
3954 - className: "eps-notice__text"
3955 - }, props.label && /*#__PURE__*/ react.default.createElement("strong", null, props.label + " "), props.children)), props.button && /*#__PURE__*/ react.default.createElement(Grid, {
3956 - item: true,
3957 - container: true,
3958 - justify: "end",
3959 - className: baseClassName + "__button-container"
3960 - }, props.button));
3961 - }
3962 - Notice.propTypes = {
3963 - className: import_prop_types.default.string,
3964 - color: import_prop_types.default.string,
3965 - label: import_prop_types.default.string,
3966 - children: import_prop_types.default.any.isRequired,
3967 - icon: import_prop_types.default.string,
3968 - withIcon: import_prop_types.default.bool,
3969 - button: import_prop_types.default.object
3970 - };
3971 - Notice.defaultProps = {
3972 - className: "",
3973 - withIcon: true,
3974 - button: null
3975 - };
5510 + source.addEventListener("popstate", popstateListener);
3976 5511
3977 -//#endregion
3978 -//#region app/assets/js/ui/molecules/popover.js
3979 - function Popover(props) {
3980 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement("div", {
3981 - className: "eps-popover__background",
3982 - onClick: props.closeFunction
3983 - }), /*#__PURE__*/ react.default.createElement("ul", {
3984 - className: "eps-popover ".concat(function getArrowPositionClass() {
3985 - switch (props.arrowPosition) {
3986 - case "start": return "eps-popover--arrow-start";
3987 - case "end": return "eps-popover--arrow-end";
3988 - case "none": return "eps-popover--arrow-none";
3989 - default: return "eps-popover--arrow-center";
3990 - }
3991 - }(), " ").concat(props.className),
3992 - onClick: props.closeFunction
3993 - }, props.children));
3994 - }
3995 - Popover.propTypes = {
3996 - children: import_prop_types.default.any.isRequired,
3997 - className: import_prop_types.default.string,
3998 - closeFunction: import_prop_types.default.func,
3999 - arrowPosition: import_prop_types.default.oneOf([
4000 - "start",
4001 - "center",
4002 - "end",
4003 - "none"
4004 - ])
4005 - };
4006 - Popover.defaultProps = {
4007 - className: "",
4008 - arrowPosition: "center"
4009 - };
5512 + return function () {
5513 + source.removeEventListener("popstate", popstateListener);
5514 + listeners = listeners.filter(function (fn) {
5515 + return fn !== listener;
5516 + });
5517 + };
5518 + },
5519 + navigate: function navigate(to) {
5520 + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
5521 + state = _ref.state,
5522 + _ref$replace = _ref.replace,
5523 + replace = _ref$replace === undefined ? false : _ref$replace;
4010 5524
4011 -//#endregion
4012 -//#region app/assets/js/ui/atoms/select.js
4013 - function Select(props) {
4014 - return /*#__PURE__*/ react.default.createElement("select", {
4015 - multiple: props.multiple,
4016 - className: props.className,
4017 - value: props.value,
4018 - onChange: props.onChange,
4019 - ref: props.elRef,
4020 - onClick: function onClick() {
4021 - var _props$onClick;
4022 - return (_props$onClick = props.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props);
4023 - }
4024 - }, props.options.map(function(option) {
4025 - return option.children ? /*#__PURE__*/ react.default.createElement("optgroup", {
4026 - label: option.label,
4027 - key: option.label
4028 - }, option.children.map(function(childOption) {
4029 - return /*#__PURE__*/ react.default.createElement("option", {
4030 - key: childOption.value,
4031 - value: childOption.value
4032 - }, childOption.label);
4033 - })) : /*#__PURE__*/ react.default.createElement("option", {
4034 - key: option.value,
4035 - value: option.value
4036 - }, option.label);
4037 - }));
4038 - }
4039 - Select.propTypes = {
4040 - className: import_prop_types.default.string,
4041 - onChange: import_prop_types.default.func,
4042 - options: import_prop_types.default.array,
4043 - elRef: import_prop_types.default.object,
4044 - multiple: import_prop_types.default.bool,
4045 - value: import_prop_types.default.oneOfType([import_prop_types.default.array, import_prop_types.default.string]),
4046 - onClick: import_prop_types.default.func
4047 - };
4048 - Select.defaultProps = {
4049 - className: "",
4050 - options: []
4051 - };
5525 + if (typeof to === "number") {
5526 + source.history.go(to);
5527 + } else {
5528 + state = _extends({}, state, { key: Date.now() + "" });
5529 + // try...catch iOS Safari limits to 100 pushState calls
5530 + try {
5531 + if (transitioning || replace) {
5532 + source.history.replaceState(state, null, to);
5533 + } else {
5534 + source.history.pushState(state, null, to);
5535 + }
5536 + } catch (e) {
5537 + source.location[replace ? "replace" : "assign"](to);
5538 + }
5539 + }
4052 5540
4053 -//#endregion
4054 -//#region app/assets/js/ui/molecules/select2.js
4055 - function ownKeys$2(e, r) {
4056 - var t = Object.keys(e);
4057 - if (Object.getOwnPropertySymbols) {
4058 - var o = Object.getOwnPropertySymbols(e);
4059 - r && (o = o.filter(function(r) {
4060 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
4061 - })), t.push.apply(t, o);
4062 - }
4063 - return t;
4064 - }
4065 - __name(ownKeys$2, "ownKeys");
4066 - function _objectSpread$2(e) {
4067 - for (var r = 1; r < arguments.length; r++) {
4068 - var t = null != arguments[r] ? arguments[r] : {};
4069 - r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r) {
4070 - _defineProperty(e, r, t[r]);
4071 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r) {
4072 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
4073 - });
4074 - }
4075 - return e;
4076 - }
4077 - __name(_objectSpread$2, "_objectSpread");
4078 - /**
4079 - * Default settings of the select 2
4080 - *
4081 - * @return {{placeholder: string, allowClear: boolean, dir: string}}
4082 - */
4083 - var getDefaultSettings = function getDefaultSettings() {
4084 - return {
4085 - allowClear: true,
4086 - placeholder: "",
4087 - dir: elementorCommon.config.isRTL ? "rtl" : "ltr"
4088 - };
4089 - };
4090 - /**
4091 - * Main component
4092 - *
4093 - * @param {*} props
4094 - * @return {*} component
4095 - * @function Object() { [native code] }
4096 - */
4097 - function Select2(props) {
4098 - var ref = react.default.useRef(null);
4099 - react.default.useEffect(function() {
4100 - var $select2 = jQuery(ref.current).select2(_objectSpread$2(_objectSpread$2(_objectSpread$2({}, getDefaultSettings()), props.settings), {}, { placeholder: props.placeholder })).on("select2:select select2:unselect", props.onChange);
4101 - if (props.onReady) props.onReady($select2);
4102 - return function() {
4103 - $select2.select2("destroy").off("select2:select select2:unselect");
4104 - };
4105 - }, [props.settings, props.options]);
4106 - react.default.useEffect(function() {
4107 - jQuery(ref.current).val(props.value).trigger("change");
4108 - }, [props.value]);
4109 - return /*#__PURE__*/ react.default.createElement(Select, {
4110 - multiple: props.multiple,
4111 - value: props.value,
4112 - onChange: props.onChange,
4113 - elRef: ref,
4114 - options: props.options,
4115 - placeholder: props.placeholder
4116 - });
4117 - }
4118 - Select2.propTypes = {
4119 - value: import_prop_types.default.oneOfType([import_prop_types.default.array, import_prop_types.default.string]),
4120 - onChange: import_prop_types.default.func,
4121 - onReady: import_prop_types.default.func,
4122 - options: import_prop_types.default.array,
4123 - settings: import_prop_types.default.object,
4124 - multiple: import_prop_types.default.bool,
4125 - placeholder: import_prop_types.default.string
4126 - };
4127 - Select2.defaultProps = {
4128 - settings: {},
4129 - options: [],
4130 - dependencies: [],
4131 - placeholder: ""
4132 - };
5541 + location = getLocation(source);
5542 + transitioning = true;
5543 + var transition = new Promise(function (res) {
5544 + return resolveTransition = res;
5545 + });
5546 + listeners.forEach(function (listener) {
5547 + return listener({ location: location, action: "PUSH" });
5548 + });
5549 + return transition;
5550 + }
5551 + };
5552 +};
4133 5553
4134 -//#endregion
4135 -//#region app/assets/js/ui/molecules/inline-link.js
4136 - function InlineLink(props) {
4137 - var baseClassName = "eps-inline-link";
4138 - var className = arrayToClassName([
4139 - baseClassName,
4140 - "".concat(baseClassName, "--color-").concat(props.color),
4141 - "none" !== props.underline ? "".concat(baseClassName, "--underline-").concat(props.underline) : "",
4142 - props.italic ? "".concat(baseClassName, "--italic") : "",
4143 - props.className
4144 - ]);
4145 - var getRouterLink = function getRouterLink() {
4146 - return /*#__PURE__*/ react.default.createElement(LocationProvider, { history: router.appHistory }, /*#__PURE__*/ react.default.createElement(Link, {
4147 - to: props.url,
4148 - className
4149 - }, props.children));
4150 - };
4151 - var getExternalLink = function getExternalLink() {
4152 - return /*#__PURE__*/ react.default.createElement("a", {
4153 - href: props.url,
4154 - target: props.target,
4155 - rel: props.rel,
4156 - className,
4157 - onClick: props.onClick
4158 - }, props.children);
4159 - };
4160 - var getActionLink = function getActionLink() {
4161 - return /*#__PURE__*/ react.default.createElement("button", {
4162 - className,
4163 - onClick: props.onClick
4164 - }, props.children);
4165 - };
4166 - if (!props.url) return getActionLink();
4167 - return props.url.includes("http") ? getExternalLink() : getRouterLink();
4168 - }
4169 - InlineLink.propTypes = {
4170 - className: import_prop_types.default.string,
4171 - children: import_prop_types.default.any,
4172 - url: import_prop_types.default.string,
4173 - target: import_prop_types.default.string,
4174 - rel: import_prop_types.default.string,
4175 - text: import_prop_types.default.string,
4176 - color: import_prop_types.default.oneOf([
4177 - "primary",
4178 - "secondary",
4179 - "cta",
4180 - "link",
4181 - "disabled"
4182 - ]),
4183 - underline: import_prop_types.default.oneOf([
4184 - "none",
4185 - "hover",
4186 - "always"
4187 - ]),
4188 - italic: import_prop_types.default.bool,
4189 - onClick: import_prop_types.default.func
4190 - };
4191 - InlineLink.defaultProps = {
4192 - className: "",
4193 - color: "link",
4194 - underline: "always",
4195 - target: "_blank",
4196 - rel: "noopener noreferrer"
4197 - };
5554 +////////////////////////////////////////////////////////////////////////////////
5555 +// Stores history entries in memory for testing or other platforms like Native
5556 +var createMemorySource = function createMemorySource() {
5557 + var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/";
4198 5558
4199 -//#endregion
4200 -//#region node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
4201 - function asyncGeneratorStep(n, t, e, r, o, a, c) {
4202 - try {
4203 - var i = n[a](c);
4204 - var u = i.value;
4205 - } catch (n) {
4206 - e(n);
4207 - return;
4208 - }
4209 - i.done ? t(u) : Promise.resolve(u).then(r, o);
4210 - }
4211 - function _asyncToGenerator(n) {
4212 - return function() {
4213 - var t = this;
4214 - var e = arguments;
4215 - return new Promise(function(r, o) {
4216 - var a = n.apply(t, e);
4217 - function _next(n) {
4218 - asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
4219 - }
4220 - function _throw(n) {
4221 - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
4222 - }
4223 - _next(void 0);
4224 - });
4225 - };
4226 - }
5559 + var searchIndex = initialPath.indexOf("?");
5560 + var initialLocation = {
5561 + pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath,
5562 + search: searchIndex > -1 ? initialPath.substr(searchIndex) : ""
5563 + };
5564 + var index = 0;
5565 + var stack = [initialLocation];
5566 + var states = [null];
4227 5567
4228 -//#endregion
4229 -//#region node_modules/@babel/runtime/helpers/OverloadYield.js
4230 - var require_OverloadYield = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4231 - function _OverloadYield(e, d) {
4232 - this.v = e, this.k = d;
4233 - }
4234 - module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
4235 - }));
5568 + return {
5569 + get location() {
5570 + return stack[index];
5571 + },
5572 + addEventListener: function addEventListener(name, fn) {},
5573 + removeEventListener: function removeEventListener(name, fn) {},
4236 5574
4237 -//#endregion
4238 -//#region node_modules/@babel/runtime/helpers/regeneratorDefine.js
4239 - var require_regeneratorDefine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4240 - function _regeneratorDefine(e, r, n, t) {
4241 - var i = Object.defineProperty;
4242 - try {
4243 - i({}, "", {});
4244 - } catch (e) {
4245 - i = 0;
4246 - }
4247 - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
4248 - function o(r, n) {
4249 - _regeneratorDefine(e, r, function(e) {
4250 - return this._invoke(r, n, e);
4251 - });
4252 - }
4253 - r ? i ? i(e, r, {
4254 - value: n,
4255 - enumerable: !t,
4256 - configurable: !t,
4257 - writable: !t
4258 - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
4259 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
4260 - }
4261 - module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
4262 - }));
5575 + history: {
5576 + get entries() {
5577 + return stack;
5578 + },
5579 + get index() {
5580 + return index;
5581 + },
5582 + get state() {
5583 + return states[index];
5584 + },
5585 + pushState: function pushState(state, _, uri) {
5586 + var _uri$split = uri.split("?"),
5587 + pathname = _uri$split[0],
5588 + _uri$split$ = _uri$split[1],
5589 + search = _uri$split$ === undefined ? "" : _uri$split$;
4263 5590
4264 -//#endregion
4265 -//#region node_modules/@babel/runtime/helpers/regenerator.js
4266 - var require_regenerator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4267 - var regeneratorDefine = require_regeneratorDefine();
4268 - function _regenerator() {
4269 - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
4270 - var e;
4271 - var t;
4272 - var r = "function" == typeof Symbol ? Symbol : {};
4273 - var n = r.iterator || "@@iterator";
4274 - var o = r.toStringTag || "@@toStringTag";
4275 - function i(r, n, o, i) {
4276 - var c = n && n.prototype instanceof Generator ? n : Generator;
4277 - var u = Object.create(c.prototype);
4278 - return regeneratorDefine(u, "_invoke", function(r, n, o) {
4279 - var i;
4280 - var c;
4281 - var u;
4282 - var f = 0;
4283 - var p = o || [];
4284 - var y = !1;
4285 - var G = {
4286 - p: 0,
4287 - n: 0,
4288 - v: e,
4289 - a: d,
4290 - f: d.bind(e, 4),
4291 - d: function d(t, r) {
4292 - return i = t, c = 0, u = e, G.n = r, a;
4293 - }
4294 - };
4295 - function d(r, n) {
4296 - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
4297 - var o;
4298 - var i = p[t];
4299 - var d = G.p;
4300 - var l = i[2];
4301 - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
4302 - }
4303 - if (o || r > 1) return a;
4304 - throw y = !0, n;
4305 - }
4306 - return function(o, p, l) {
4307 - if (f > 1) throw TypeError("Generator is already running");
4308 - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
4309 - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
4310 - try {
4311 - if (f = 2, i) {
4312 - if (c || (o = "next"), t = i[o]) {
4313 - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
4314 - if (!t.done) return t;
4315 - u = t.value, c < 2 && (c = 0);
4316 - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
4317 - i = e;
4318 - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
4319 - } catch (t) {
4320 - i = e, c = 1, u = t;
4321 - } finally {
4322 - f = 1;
4323 - }
4324 - }
4325 - return {
4326 - value: t,
4327 - done: y
4328 - };
4329 - };
4330 - }(r, o, i), !0), u;
4331 - }
4332 - var a = {};
4333 - function Generator() {}
4334 - function GeneratorFunction() {}
4335 - function GeneratorFunctionPrototype() {}
4336 - t = Object.getPrototypeOf;
4337 - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function() {
4338 - return this;
4339 - }), t);
4340 - var u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
4341 - function f(e) {
4342 - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
4343 - }
4344 - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function() {
4345 - return this;
4346 - }), regeneratorDefine(u, "toString", function() {
4347 - return "[object Generator]";
4348 - }), (module.exports = _regenerator = function _regenerator() {
4349 - return {
4350 - w: i,
4351 - m: f
4352 - };
4353 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
4354 - }
4355 - module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
4356 - }));
5591 + index++;
5592 + stack.push({ pathname: pathname, search: search.length ? "?" + search : search });
5593 + states.push(state);
5594 + },
5595 + replaceState: function replaceState(state, _, uri) {
5596 + var _uri$split2 = uri.split("?"),
5597 + pathname = _uri$split2[0],
5598 + _uri$split2$ = _uri$split2[1],
5599 + search = _uri$split2$ === undefined ? "" : _uri$split2$;
4357 5600
4358 -//#endregion
4359 -//#region node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js
4360 - var require_regeneratorAsyncIterator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4361 - var OverloadYield = require_OverloadYield();
4362 - var regeneratorDefine = require_regeneratorDefine();
4363 - function AsyncIterator(t, e) {
4364 - function n(r, o, i, f) {
4365 - try {
4366 - var c = t[r](o);
4367 - var u = c.value;
4368 - return u instanceof OverloadYield ? e.resolve(u.v).then(function(t) {
4369 - n("next", t, i, f);
4370 - }, function(t) {
4371 - n("throw", t, i, f);
4372 - }) : e.resolve(u).then(function(t) {
4373 - c.value = t, i(c);
4374 - }, function(t) {
4375 - return n("throw", t, i, f);
4376 - });
4377 - } catch (t) {
4378 - f(t);
4379 - }
4380 - }
4381 - var r;
4382 - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function() {
4383 - return this;
4384 - })), regeneratorDefine(this, "_invoke", function(t, o, i) {
4385 - function f() {
4386 - return new e(function(e, r) {
4387 - n(t, i, e, r);
4388 - });
4389 - }
4390 - return r = r ? r.then(f, f) : f();
4391 - }, !0);
4392 - }
4393 - module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
4394 - }));
5601 + stack[index] = { pathname: pathname, search: search };
5602 + states[index] = state;
5603 + },
5604 + go: function go(to) {
5605 + var newIndex = index + to;
4395 5606
4396 -//#endregion
4397 -//#region node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js
4398 - var require_regeneratorAsyncGen = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4399 - var regenerator = require_regenerator$1();
4400 - var regeneratorAsyncIterator = require_regeneratorAsyncIterator();
4401 - function _regeneratorAsyncGen(r, e, t, o, n) {
4402 - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
4403 - }
4404 - module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
4405 - }));
5607 + if (newIndex < 0 || newIndex > states.length - 1) {
5608 + return;
5609 + }
4406 5610
4407 -//#endregion
4408 -//#region node_modules/@babel/runtime/helpers/regeneratorAsync.js
4409 - var require_regeneratorAsync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4410 - var regeneratorAsyncGen = require_regeneratorAsyncGen();
4411 - function _regeneratorAsync(n, e, r, t, o) {
4412 - var a = regeneratorAsyncGen(n, e, r, t, o);
4413 - return a.next().then(function(n) {
4414 - return n.done ? n.value : a.next();
4415 - });
4416 - }
4417 - module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
4418 - }));
5611 + index = newIndex;
5612 + }
5613 + }
5614 + };
5615 +};
4419 5616
4420 -//#endregion
4421 -//#region node_modules/@babel/runtime/helpers/regeneratorKeys.js
4422 - var require_regeneratorKeys = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4423 - function _regeneratorKeys(e) {
4424 - var n = Object(e);
4425 - var r = [];
4426 - for (var t in n) r.unshift(t);
4427 - return function e() {
4428 - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
4429 - return e.done = !0, e;
4430 - };
4431 - }
4432 - module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
4433 - }));
5617 +////////////////////////////////////////////////////////////////////////////////
5618 +// global history - uses window.history as the source if available, otherwise a
5619 +// memory history
5620 +var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
5621 +var getSource = function getSource() {
5622 + return canUseDOM ? window : createMemorySource();
5623 +};
4434 5624
4435 -//#endregion
4436 -//#region node_modules/@babel/runtime/helpers/typeof.js
4437 - var require_typeof = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4438 - function _typeof(o) {
4439 - "@babel/helpers - typeof";
4440 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
4441 - return typeof o;
4442 - } : function(o) {
4443 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
4444 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
4445 - }
4446 - module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
4447 - }));
5625 +var globalHistory = createHistory(getSource());
5626 +var history_navigate = globalHistory.navigate;
4448 5627
4449 -//#endregion
4450 -//#region node_modules/@babel/runtime/helpers/regeneratorValues.js
4451 - var require_regeneratorValues = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4452 - var _typeof = require_typeof()["default"];
4453 - function _regeneratorValues(e) {
4454 - if (null != e) {
4455 - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"];
4456 - var r = 0;
4457 - if (t) return t.call(e);
4458 - if ("function" == typeof e.next) return e;
4459 - if (!isNaN(e.length)) return { next: function next() {
4460 - return e && r >= e.length && (e = void 0), {
4461 - value: e && e[r++],
4462 - done: !e
4463 - };
4464 - } };
4465 - }
4466 - throw new TypeError(_typeof(e) + " is not iterable");
4467 - }
4468 - module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
4469 - }));
5628 +////////////////////////////////////////////////////////////////////////////////
4470 5629
4471 -//#endregion
4472 -//#region node_modules/@babel/runtime/helpers/regeneratorRuntime.js
4473 - var require_regeneratorRuntime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4474 - var OverloadYield = require_OverloadYield();
4475 - var regenerator = require_regenerator$1();
4476 - var regeneratorAsync = require_regeneratorAsync();
4477 - var regeneratorAsyncGen = require_regeneratorAsyncGen();
4478 - var regeneratorAsyncIterator = require_regeneratorAsyncIterator();
4479 - var regeneratorKeys = require_regeneratorKeys();
4480 - var regeneratorValues = require_regeneratorValues();
4481 - function _regeneratorRuntime() {
4482 - "use strict";
4483 - var r = regenerator();
4484 - var e = r.m(_regeneratorRuntime);
4485 - var t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
4486 - function n(r) {
4487 - var e = "function" == typeof r && r.constructor;
4488 - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
4489 - }
4490 - var o = {
4491 - "throw": 1,
4492 - "return": 2,
4493 - "break": 3,
4494 - "continue": 3
4495 - };
4496 - function a(r) {
4497 - var e;
4498 - var t;
4499 - return function(n) {
4500 - e || (e = {
4501 - stop: function stop() {
4502 - return t(n.a, 2);
4503 - },
4504 - "catch": function _catch() {
4505 - return n.v;
4506 - },
4507 - abrupt: function abrupt(r, e) {
4508 - return t(n.a, o[r], e);
4509 - },
4510 - delegateYield: function delegateYield(r, o, a) {
4511 - return e.resultName = o, t(n.d, regeneratorValues(r), a);
4512 - },
4513 - finish: function finish(r) {
4514 - return t(n.f, r);
4515 - }
4516 - }, t = function t(r, _t, o) {
4517 - n.p = e.prev, n.n = e.next;
4518 - try {
4519 - return r(_t, o);
4520 - } finally {
4521 - e.next = n.n;
4522 - }
4523 - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
4524 - try {
4525 - return r.call(this, e);
4526 - } finally {
4527 - n.p = e.prev, n.n = e.next;
4528 - }
4529 - };
4530 - }
4531 - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
4532 - return {
4533 - wrap: function wrap(e, t, n, o) {
4534 - return r.w(a(e), t, n, o && o.reverse());
4535 - },
4536 - isGeneratorFunction: n,
4537 - mark: r.m,
4538 - awrap: function awrap(r, e) {
4539 - return new OverloadYield(r, e);
4540 - },
4541 - AsyncIterator: regeneratorAsyncIterator,
4542 - async: function async(r, e, t, o, u) {
4543 - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u);
4544 - },
4545 - keys: regeneratorKeys,
4546 - values: regeneratorValues
4547 - };
4548 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
4549 - }
4550 - module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
4551 - }));
4552 5630
4553 -//#endregion
4554 -//#region node_modules/@babel/runtime/regenerator/index.js
4555 - var require_regenerator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4556 - var runtime = require_regeneratorRuntime()();
4557 - module.exports = runtime;
4558 - try {
4559 - regeneratorRuntime = runtime;
4560 - } catch (accidentalStrictMode) {
4561 - if (typeof globalThis === "object") globalThis.regeneratorRuntime = runtime;
4562 - else Function("r", "regeneratorRuntime = r")(runtime);
4563 - }
4564 - }));
5631 +// CONCATENATED MODULE: ../node_modules/@reach/router/es/index.js
5632 +var es_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
4565 5633
4566 -//#endregion
4567 -//#region app/assets/js/hooks/use-ajax.js
4568 - var import_regenerator = /* @__PURE__ */ __toESM(require_regenerator());
4569 - function ownKeys$1(e, r) {
4570 - var t = Object.keys(e);
4571 - if (Object.getOwnPropertySymbols) {
4572 - var o = Object.getOwnPropertySymbols(e);
4573 - r && (o = o.filter(function(r) {
4574 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
4575 - })), t.push.apply(t, o);
4576 - }
4577 - return t;
4578 - }
4579 - __name(ownKeys$1, "ownKeys");
4580 - function _objectSpread$1(e) {
4581 - for (var r = 1; r < arguments.length; r++) {
4582 - var t = null != arguments[r] ? arguments[r] : {};
4583 - r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {
4584 - _defineProperty(e, r, t[r]);
4585 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {
4586 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
4587 - });
4588 - }
4589 - return e;
4590 - }
4591 - __name(_objectSpread$1, "_objectSpread");
4592 - function useAjax() {
4593 - var _useState2 = _slicedToArray((0, react.useState)(null), 2);
4594 - var ajax = _useState2[0];
4595 - var setAjax = _useState2[1];
4596 - var initialStatusKey = "initial";
4597 - var _useState4 = _slicedToArray((0, react.useState)({
4598 - status: initialStatusKey,
4599 - isComplete: false,
4600 - response: null
4601 - }), 2);
4602 - var ajaxState = _useState4[0];
4603 - var setAjaxState = _useState4[1];
4604 - var ajaxActions = { reset: function reset() {
4605 - return setAjaxState(initialStatusKey);
4606 - } };
4607 - var runRequest = /*#__PURE__*/ function() {
4608 - var _ref = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee(config) {
4609 - return import_regenerator.default.wrap(function(_context) {
4610 - while (1) switch (_context.prev = _context.next) {
4611 - case 0: return _context.abrupt("return", new Promise(function(resolve, reject) {
4612 - var formData = new FormData();
4613 - if (config.data) {
4614 - for (var key in config.data) formData.append(key, config.data[key]);
4615 - if (!config.data.nonce) formData.append("_nonce", elementorCommon.config.ajax.nonce);
4616 - }
4617 - var options = _objectSpread$1(_objectSpread$1({
4618 - type: "post",
4619 - url: elementorCommon.config.ajax.url,
4620 - headers: {},
4621 - cache: false,
4622 - contentType: false,
4623 - processData: false
4624 - }, config), {}, {
4625 - data: formData,
4626 - success: function success(response) {
4627 - resolve(response);
4628 - },
4629 - error: function error(_error) {
4630 - reject(_error);
4631 - }
4632 - });
4633 - jQuery.ajax(options);
4634 - }));
4635 - case 1:
4636 - case "end": return _context.stop();
4637 - }
4638 - }, _callee);
4639 - }));
4640 - return function runRequest(_x) {
4641 - return _ref.apply(this, arguments);
4642 - };
4643 - }();
4644 - (0, react.useEffect)(function() {
4645 - if (ajax) runRequest(ajax).then(function(response) {
4646 - var status = response.success ? "success" : "error";
4647 - setAjaxState(function(prevState) {
4648 - return _objectSpread$1(_objectSpread$1({}, prevState), {}, {
4649 - status,
4650 - response: response === null || response === void 0 ? void 0 : response.data
4651 - });
4652 - });
4653 - }).catch(function(error) {
4654 - var _error$responseJSON;
4655 - var response = 408 === error.status ? "timeout" : (_error$responseJSON = error.responseJSON) === null || _error$responseJSON === void 0 ? void 0 : _error$responseJSON.data;
4656 - setAjaxState(function(prevState) {
4657 - return _objectSpread$1(_objectSpread$1({}, prevState), {}, {
4658 - status: "error",
4659 - response
4660 - });
4661 - });
4662 - }).finally(function() {
4663 - setAjaxState(function(prevState) {
4664 - return _objectSpread$1(_objectSpread$1({}, prevState), {}, { isComplete: true });
4665 - });
4666 - });
4667 - }, [ajax]);
4668 - return {
4669 - ajax,
4670 - setAjax,
4671 - ajaxState,
4672 - ajaxActions,
4673 - runRequest
4674 - };
4675 - }
5634 +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
4676 5635
4677 -//#endregion
4678 -//#region app/assets/js/organisms/unfiltered-files-dialog.js
4679 - function UnfilteredFilesDialog(props) {
4680 - var show = props.show;
4681 - var setShow = props.setShow;
4682 - var onReady = props.onReady;
4683 - var onCancel = props.onCancel;
4684 - var onDismiss = props.onDismiss;
4685 - var onLoad = props.onLoad;
4686 - var onEnable = props.onEnable;
4687 - var onClose = props.onClose;
4688 - var _useAjax = useAjax();
4689 - var ajaxState = _useAjax.ajaxState;
4690 - var setAjax = _useAjax.setAjax;
4691 - var _useState2 = _slicedToArray((0, react.useState)(false), 2);
4692 - var enableUnfilteredFiles = _useState2[0];
4693 - var setEnableUnfilteredFiles = _useState2[1];
4694 - var _useState4 = _slicedToArray((0, react.useState)(false), 2);
4695 - var isEnableError = _useState4[0];
4696 - var setIsEnableError = _useState4[1];
4697 - (0, react.useEffect)(function() {
4698 - if (enableUnfilteredFiles) {
4699 - setShow(false);
4700 - setAjax({ data: {
4701 - action: "elementor_ajax",
4702 - actions: JSON.stringify({ enable_unfiltered_files_upload: { action: "enable_unfiltered_files_upload" } })
4703 - } });
4704 - if (onEnable) onEnable();
4705 - }
4706 - }, [enableUnfilteredFiles]);
4707 - (0, react.useEffect)(function() {
4708 - switch (ajaxState.status) {
4709 - case "success":
4710 - onReady();
4711 - break;
4712 - case "error":
4713 - setIsEnableError(true);
4714 - setShow(true);
4715 - break;
4716 - }
4717 - }, [ajaxState]);
4718 - (0, react.useEffect)(function() {
4719 - if (show && onLoad) onLoad();
4720 - }, [show]);
4721 - if (!show) return null;
4722 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, isEnableError ? /*#__PURE__*/ react.default.createElement(Dialog, {
4723 - title: (0, _wordpress_i18n.__)("Something went wrong.", "elementor"),
4724 - text: props.errorModalText,
4725 - approveButtonColor: "link",
4726 - approveButtonText: (0, _wordpress_i18n.__)("Continue", "elementor"),
4727 - approveButtonOnClick: onReady,
4728 - dismissButtonText: (0, _wordpress_i18n.__)("Go Back", "elementor"),
4729 - dismissButtonOnClick: onCancel,
4730 - onClose: onCancel
4731 - }) : /*#__PURE__*/ react.default.createElement(Dialog, {
4732 - title: (0, _wordpress_i18n.__)("First, enable unfiltered file uploads.", "elementor"),
4733 - text: props.confirmModalText,
4734 - approveButtonColor: "link",
4735 - approveButtonText: (0, _wordpress_i18n.__)("Enable", "elementor"),
4736 - approveButtonOnClick: function approveButtonOnClick() {
4737 - return setEnableUnfilteredFiles(true);
4738 - },
4739 - dismissButtonText: (0, _wordpress_i18n.__)("Skip", "elementor"),
4740 - dismissButtonOnClick: onDismiss || onReady,
4741 - onClose: onClose || onDismiss || onReady
4742 - }));
4743 - }
4744 - UnfilteredFilesDialog.propTypes = {
4745 - show: import_prop_types.default.bool,
4746 - setShow: import_prop_types.default.func.isRequired,
4747 - onReady: import_prop_types.default.func.isRequired,
4748 - onCancel: import_prop_types.default.func.isRequired,
4749 - onDismiss: import_prop_types.default.func,
4750 - confirmModalText: import_prop_types.default.string.isRequired,
4751 - errorModalText: import_prop_types.default.string.isRequired,
4752 - onLoad: import_prop_types.default.func,
4753 - onEnable: import_prop_types.default.func,
4754 - onClose: import_prop_types.default.func
4755 - };
4756 - UnfilteredFilesDialog.defaultProps = {
4757 - show: false,
4758 - onReady: function onReady() {},
4759 - onCancel: function onCancel() {}
4760 - };
5636 +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4761 5637
4762 -//#endregion
4763 -//#region app/assets/js/hooks/use-query-params.js
4764 - function ownKeys(e, r) {
4765 - var t = Object.keys(e);
4766 - if (Object.getOwnPropertySymbols) {
4767 - var o = Object.getOwnPropertySymbols(e);
4768 - r && (o = o.filter(function(r) {
4769 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
4770 - })), t.push.apply(t, o);
4771 - }
4772 - return t;
4773 - }
4774 - function _objectSpread(e) {
4775 - for (var r = 1; r < arguments.length; r++) {
4776 - var t = null != arguments[r] ? arguments[r] : {};
4777 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
4778 - _defineProperty(e, r, t[r]);
4779 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
4780 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
4781 - });
4782 - }
4783 - return e;
4784 - }
4785 - function useQueryParams() {
4786 - var _location$hash$match;
4787 - var urlSearchParams = new URLSearchParams(window.location.search);
4788 - var urlParams = Object.fromEntries(urlSearchParams.entries());
4789 - var hashValue = (_location$hash$match = location.hash.match(/\?(.+)/)) === null || _location$hash$match === void 0 ? void 0 : _location$hash$match[1];
4790 - var hashParams = {};
4791 - if (hashValue) hashValue.split("&").forEach(function(pair) {
4792 - var _pair$split2 = _slicedToArray(pair.split("="), 2);
4793 - var key = _pair$split2[0];
4794 - hashParams[key] = _pair$split2[1];
4795 - });
4796 - var queryParams = _objectSpread(_objectSpread({}, urlParams), hashParams);
4797 - return { getAll: function getAll() {
4798 - return queryParams;
4799 - } };
4800 - }
5638 +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4801 5639
4802 -//#endregion
4803 -//#region app/assets/js/hooks/use-introduction.js
4804 - function useIntroduction(key) {
4805 - var _window$elementorAppC;
4806 - var _useState2 = _slicedToArray((0, react.useState)(!!((_window$elementorAppC = window.elementorAppConfig) !== null && _window$elementorAppC !== void 0 && (_window$elementorAppC = _window$elementorAppC.user) !== null && _window$elementorAppC !== void 0 && (_window$elementorAppC = _window$elementorAppC.introduction) !== null && _window$elementorAppC !== void 0 && _window$elementorAppC[key])), 2);
4807 - var isViewed = _useState2[0];
4808 - var setIsViewed = _useState2[1];
4809 - function markAsViewed() {
4810 - if (!key) return Promise.reject();
4811 - return new Promise(function(resolve, reject) {
4812 - if (isViewed) reject();
4813 - elementorCommon.ajax.addRequest("introduction_viewed", {
4814 - data: { introductionKey: key },
4815 - error: function error() {
4816 - return reject();
4817 - },
4818 - success: function success() {
4819 - var _window$elementorAppC2;
4820 - setIsViewed(true);
4821 - if ((_window$elementorAppC2 = window.elementorAppConfig) !== null && _window$elementorAppC2 !== void 0 && (_window$elementorAppC2 = _window$elementorAppC2.user) !== null && _window$elementorAppC2 !== void 0 && _window$elementorAppC2.introduction) window.elementorAppConfig.user.introduction[key] = true;
4822 - resolve();
4823 - }
4824 - });
4825 - });
4826 - }
4827 - return {
4828 - isViewed,
4829 - markAsViewed
4830 - };
4831 - }
5640 +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4832 5641
4833 -//#endregion
4834 -//#region app/assets/js/hooks/use-confirm-action.js
4835 - function useConfirmAction(_ref) {
4836 - var action = _ref.action;
4837 - var _ref$doNotShowAgainKe = _ref.doNotShowAgainKey;
4838 - var doNotShowAgainKey = _ref$doNotShowAgainKe === void 0 ? null : _ref$doNotShowAgainKe;
4839 - var _useIntroduction = useIntroduction(doNotShowAgainKey);
4840 - var shouldNotShowAgain = _useIntroduction.isViewed;
4841 - var markAsShouldNotShowAgain = _useIntroduction.markAsViewed;
4842 - var _useState2 = _slicedToArray((0, react.useState)({
4843 - isOpen: false,
4844 - actionArgs: []
4845 - }), 2);
4846 - var dialogState = _useState2[0];
4847 - var setDialogState = _useState2[1];
4848 - var _useState4 = _slicedToArray((0, react.useState)(false), 2);
4849 - var doNotShowAgainCheckboxState = _useState4[0];
4850 - return {
4851 - checkbox: {
4852 - isChecked: doNotShowAgainCheckboxState,
4853 - setIsChecked: _useState4[1]
4854 - },
4855 - dialog: {
4856 - isOpen: dialogState.isOpen,
4857 - approve: function approve() {
4858 - action.apply(void 0, _toConsumableArray(dialogState.actionArgs));
4859 - if (doNotShowAgainCheckboxState && doNotShowAgainKey) markAsShouldNotShowAgain();
4860 - setDialogState({
4861 - isOpen: false,
4862 - actionArgs: []
4863 - });
4864 - },
4865 - dismiss: function dismiss() {
4866 - setDialogState({
4867 - isOpen: false,
4868 - actionArgs: []
4869 - });
4870 - }
4871 - },
4872 - runAction: function runAction() {
4873 - for (var _len = arguments.length, actionArgs = new Array(_len), _key = 0; _key < _len; _key++) actionArgs[_key] = arguments[_key];
4874 - if (shouldNotShowAgain) {
4875 - action.apply(void 0, actionArgs);
4876 - return;
4877 - }
4878 - setDialogState({
4879 - isOpen: true,
4880 - actionArgs
4881 - });
4882 - }
4883 - };
4884 - }
5642 +/* eslint-disable jsx-a11y/anchor-has-content */
4885 5643
4886 -//#endregion
4887 -//#region app/assets/js/package.js
4888 - var appUi = {
4889 - AddNewButton,
4890 - Box,
4891 - Button: Button$1,
4892 - Card,
4893 - CardBody,
4894 - CardFooter,
4895 - CardHeader,
4896 - CardImage,
4897 - CardOverlay,
4898 - Checkbox,
4899 - Collapse,
4900 - CssGrid,
4901 - Dialog,
4902 - DragDrop,
4903 - DropZone,
4904 - ErrorBoundary,
4905 - Heading,
4906 - GoProButton,
4907 - Grid,
4908 - Icon,
4909 - List,
4910 - Menu: Menu$1,
4911 - MenuItem: SideMenuItem,
4912 - Modal,
4913 - ModalProvider,
4914 - NotFound: NotFound$1,
4915 - Notice,
4916 - Page,
4917 - Popover,
4918 - Select,
4919 - Select2,
4920 - Text,
4921 - UploadFile,
4922 - InlineLink
4923 - };
4924 - var components = { UnfilteredFilesDialog };
4925 - var hooks = {
4926 - useAjax,
4927 - useAction,
4928 - usePageTitle,
4929 - useQueryParams,
4930 - useIntroduction,
4931 - useConfirmAction
4932 - };
4933 5644
4934 -//#endregion
4935 -//#region app/modules/site-editor/assets/js/organisms/all-parts-button.js
4936 - function AllPartsButton(props) {
4937 - return /*#__PURE__*/ react.default.createElement(Match, { path: "/site-editor/templates" }, function(_ref) {
4938 - var match = _ref.match;
4939 - var className = "eps-menu-item__link".concat(match || props.promotion ? " eps-menu-item--active" : "");
4940 - return /*#__PURE__*/ react.default.createElement(SideMenuItem, {
4941 - text: (0, _wordpress_i18n.__)("All Parts", "elementor"),
4942 - className,
4943 - icon: "eicon-filter",
4944 - url: props.url
4945 - });
4946 - });
4947 - }
4948 - AllPartsButton.propTypes = {
4949 - url: import_prop_types.default.string,
4950 - promotion: import_prop_types.default.bool
4951 - };
4952 5645
4953 -//#endregion
4954 -//#region app/modules/site-editor/assets/js/context/template-types.js
4955 - function _callSuper(t, o, e) {
4956 - return o = _getPrototypeOf(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
4957 - }
4958 - function _isNativeReflectConstruct() {
4959 - try {
4960 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
4961 - } catch (t) {}
4962 - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
4963 - return !!t;
4964 - })();
4965 - }
4966 - var Context = react.default.createContext();
4967 - var TemplateTypesContext = /*#__PURE__*/ function(_React$Component) {
4968 - function TemplateTypesContext(props) {
4969 - var _this;
4970 - _classCallCheck$1(this, TemplateTypesContext);
4971 - _this = _callSuper(this, TemplateTypesContext, [props]);
4972 - _this.state = {
4973 - templateTypes: [],
4974 - loading: true,
4975 - error: false
4976 - };
4977 - return _this;
4978 - }
4979 - _inherits$1(TemplateTypesContext, _React$Component);
4980 - return _createClass(TemplateTypesContext, [
4981 - {
4982 - key: "componentDidMount",
4983 - value: function componentDidMount() {
4984 - var _this2 = this;
4985 - this.getTemplateTypes().then(function(response) {
4986 - _this2.setState({
4987 - templateTypes: response,
4988 - loading: false
4989 - });
4990 - }).fail(function(error) {
4991 - _this2.setState({
4992 - error: error.statusText ? error.statusText : error,
4993 - loading: false
4994 - });
4995 - });
4996 - }
4997 - },
4998 - {
4999 - key: "getTemplateTypes",
5000 - value: function getTemplateTypes() {
5001 - return elementorCommon.ajax.load({ action: "app_site_editor_template_types" });
5002 - }
5003 - },
5004 - {
5005 - key: "render",
5006 - value: function render() {
5007 - if (this.state.error) return /*#__PURE__*/ react.default.createElement("div", { className: "e-loading-wrapper" }, /*#__PURE__*/ react.default.createElement("h3", null, (0, _wordpress_i18n.__)("Error:", "elementor"), " ", this.state.error));
5008 - if (this.state.loading) return /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loading" }, /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader-wrapper" }, /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader" }, /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader-boxes" }, /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader-box" }), /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader-box" }), /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader-box" }), /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loader-box" }))), /*#__PURE__*/ react.default.createElement("div", { className: "elementor-loading-title" }, (0, _wordpress_i18n.__)("Loading", "elementor"))));
5009 - return /*#__PURE__*/ react.default.createElement(Context.Provider, { value: this.state }, this.props.children);
5010 - }
5011 - }
5012 - ]);
5013 - }(react.default.Component);
5014 - _defineProperty(TemplateTypesContext, "propTypes", { children: import_prop_types.default.object.isRequired });
5015 - var TemplateTypesConsumer = Context.Consumer;
5016 5646
5017 -//#endregion
5018 -//#region app/modules/site-editor/assets/js/organisms/menu.js
5019 - function Menu(props) {
5020 - var templateTypes = react.default.useContext(Context).templateTypes;
5021 - return /*#__PURE__*/ react.default.createElement(Menu$1, {
5022 - menuItems: templateTypes,
5023 - actionButton: function actionButton(itemProps) {
5024 - var className = "eps-menu-item__action-button";
5025 - if (props.promotion) return /*#__PURE__*/ react.default.createElement(Button$1, {
5026 - text: (0, _wordpress_i18n.__)("Upgrade Now", "elementor"),
5027 - hideText: true,
5028 - icon: "eicon-lock",
5029 - className
5030 - });
5031 - var goToCreate = function goToCreate() {
5032 - location.href = itemProps.urls.create;
5033 - };
5034 - return /*#__PURE__*/ react.default.createElement("span", { className }, /*#__PURE__*/ react.default.createElement(AddNewButton, {
5035 - hideText: true,
5036 - size: "sm",
5037 - onClick: function onClick() {
5038 - return goToCreate();
5039 - }
5040 - }));
5041 - },
5042 - promotion: props.promotion
5043 - }, props.allPartsButton, /*#__PURE__*/ react.default.createElement("div", { className: "eps-menu__title" }, (0, _wordpress_i18n.__)("Site Parts", "elementor")));
5044 - }
5045 - Menu.propTypes = {
5046 - allPartsButton: import_prop_types.default.element.isRequired,
5047 - promotion: import_prop_types.default.bool
5048 - };
5049 5647
5050 -//#endregion
5051 -//#region app/modules/import-export/assets/js/shared/utils/is-valid-redirect-url.js
5052 - function isValidRedirectUrl(url) {
5053 - try {
5054 - var parsedUrl = new URL(url);
5055 - return parsedUrl.hostname === window.location.hostname && ("http:" === parsedUrl.protocol || "https:" === parsedUrl.protocol);
5056 - } catch (e) {
5057 - return false;
5058 - }
5059 - }
5060 5648
5061 -//#endregion
5062 -//#region app/modules/import-export/assets/js/shared/utils/redirect.js
5063 - function safeRedirect(url) {
5064 - try {
5065 - if (url.startsWith("/")) url = window.location.origin + url;
5066 - var decodedUrl = decodeURIComponent(url);
5067 - if (isValidRedirectUrl(decodedUrl)) {
5068 - window.location.href = decodedUrl;
5069 - return true;
5070 - }
5071 - } catch (e) {
5072 - return false;
5073 - }
5074 - }
5075 5649
5076 -//#endregion
5077 -//#region app/modules/site-editor/assets/js/templates/layout.js
5078 - function Layout(props) {
5079 - var returnTo = useQueryParams().getAll().return_to;
5080 - var onClose = (0, react.useCallback)(function() {
5081 - if (window.top !== window) {
5082 - window.top.$e.run("app/close");
5083 - return;
5084 - }
5085 - if (returnTo && safeRedirect(returnTo)) return;
5086 - window.top.location = elementorAppConfig.admin_url;
5087 - }, [returnTo]);
5088 - var config = (0, react.useMemo)(function() {
5089 - var _props$titleRedirectR;
5090 - return {
5091 - title: (0, _wordpress_i18n.__)("Theme Builder", "elementor"),
5092 - titleRedirectRoute: (_props$titleRedirectR = props.titleRedirectRoute) !== null && _props$titleRedirectR !== void 0 ? _props$titleRedirectR : null,
5093 - headerButtons: props.headerButtons,
5094 - sidebar: /*#__PURE__*/ react.default.createElement(Menu, {
5095 - allPartsButton: props.allPartsButton,
5096 - promotion: props.promotion
5097 - }),
5098 - content: props.children,
5099 - onClose
5100 - };
5101 - }, [
5102 - props.titleRedirectRoute,
5103 - props.headerButtons,
5104 - props.allPartsButton,
5105 - props.promotion,
5106 - props.children,
5107 - onClose
5108 - ]);
5109 - return /*#__PURE__*/ react.default.createElement(TemplateTypesContext, null, /*#__PURE__*/ react.default.createElement(Page, config));
5110 - }
5111 - Layout.propTypes = {
5112 - headerButtons: import_prop_types.default.arrayOf(import_prop_types.default.object),
5113 - allPartsButton: import_prop_types.default.element.isRequired,
5114 - children: import_prop_types.default.object.isRequired,
5115 - promotion: import_prop_types.default.bool,
5116 - titleRedirectRoute: import_prop_types.default.string
5117 - };
5118 - Layout.defaultProps = { headerButtons: [] };
5119 5650
5120 -//#endregion
5121 -//#region app/modules/site-editor/assets/js/molecules/site-part.js
5122 - function SitePart(props) {
5123 - return /*#__PURE__*/ react.default.createElement(Card, { className: "e-site-part" }, /*#__PURE__*/ react.default.createElement(CardHeader, null, /*#__PURE__*/ react.default.createElement(Heading, {
5124 - tag: "h1",
5125 - variant: "text-sm",
5126 - className: "eps-card__headline"
5127 - }, props.title), props.actionButton), /*#__PURE__*/ react.default.createElement(CardBody, null, /*#__PURE__*/ react.default.createElement(CardImage, {
5128 - alt: props.title,
5129 - src: props.thumbnail
5130 - }, props.children)));
5131 - }
5132 - SitePart.propTypes = {
5133 - thumbnail: import_prop_types.default.string.isRequired,
5134 - title: import_prop_types.default.string.isRequired,
5135 - children: import_prop_types.default.object,
5136 - showIndicator: import_prop_types.default.bool,
5137 - actionButton: import_prop_types.default.object
5138 - };
5651 +////////////////////////////////////////////////////////////////////////////////
5139 5652
5140 -//#endregion
5141 -//#region app/modules/site-editor/assets/js/organisms/site-parts.js
5142 - var InfoButton = function InfoButton(props) {
5143 - var toggleButtonProps = {
5144 - text: (0, _wordpress_i18n.__)("Info", "elementor"),
5145 - hideText: true,
5146 - icon: "eicon-info-circle e-site-part__info-toggle"
5147 - };
5148 - return /*#__PURE__*/ react.default.createElement(ModalProvider, {
5149 - toggleButtonProps,
5150 - title: props.title
5151 - }, /*#__PURE__*/ react.default.createElement(CssGrid, {
5152 - columns: 2,
5153 - spacing: 60
5154 - }, /*#__PURE__*/ react.default.createElement("section", null, /*#__PURE__*/ react.default.createElement("h3", null, props.type), /*#__PURE__*/ react.default.createElement("p", null, props.content, /*#__PURE__*/ react.default.createElement("br", null), /*#__PURE__*/ react.default.createElement(Button$1, {
5155 - text: (0, _wordpress_i18n.__)("Learn More", "elementor"),
5156 - color: "link",
5157 - target: "_blank",
5158 - url: props.docs
5159 - })), /*#__PURE__*/ react.default.createElement("div", { className: "eps-modal__tip" }, /*#__PURE__*/ react.default.createElement("h3", null, (0, _wordpress_i18n.__)("Tip", "elementor")), /*#__PURE__*/ react.default.createElement("p", null, props.tip))), /*#__PURE__*/ react.default.createElement("section", null, /*#__PURE__*/ react.default.createElement("h3", null, (0, _wordpress_i18n.__)("Watch Video", "elementor")), /*#__PURE__*/ react.default.createElement("div", { className: "video-wrapper" }, /*#__PURE__*/ react.default.createElement("iframe", {
5160 - id: "ytplayer",
5161 - src: props.video_url,
5162 - frameBorder: "0"
5163 - })))));
5164 - };
5165 - InfoButton.propTypes = {
5166 - content: import_prop_types.default.string.isRequired,
5167 - docs: import_prop_types.default.string.isRequired,
5168 - tip: import_prop_types.default.string.isRequired,
5169 - title: import_prop_types.default.string.isRequired,
5170 - type: import_prop_types.default.string.isRequired,
5171 - video_url: import_prop_types.default.string.isRequired
5172 - };
5173 - function SiteParts(props) {
5174 - var templateTypes = react.default.useContext(Context).templateTypes;
5175 - return /*#__PURE__*/ react.default.createElement(CssGrid, {
5176 - className: "e-site-editor__site-parts",
5177 - colMinWidth: 200,
5178 - spacing: 25
5179 - }, templateTypes.map(function(item) {
5180 - return /*#__PURE__*/ react.default.createElement(SitePart, _extends$2({
5181 - className: "e-site-editor__site-part",
5182 - actionButton: /*#__PURE__*/ react.default.createElement(InfoButton, _extends$2({ type: item.title }, item.tooltip_data)),
5183 - thumbnail: item.urls.thumbnail,
5184 - key: item.type
5185 - }, item), react.default.createElement(props.hoverElement, item));
5186 - }));
5187 - }
5188 - SiteParts.propTypes = { hoverElement: import_prop_types.default.func.isRequired };
5653 +var es_createNamedContext = function createNamedContext(name, defaultValue) {
5654 + var Ctx = lib_default()(defaultValue);
5655 + Ctx.displayName = name;
5656 + return Ctx;
5657 +};
5189 5658
5190 -//#endregion
5191 -//#region app/modules/site-editor/assets/js/pages/promotion.js
5192 - function Promotion() {
5193 - var promotionUrl = elementorAppConfig.promotion.upgrade_url || "https://go.elementor.com/go-pro-theme-builder/";
5194 - var PromotionHoverElement = function PromotionHoverElement(props) {
5195 - var promotionUrlWithType = "".concat(promotionUrl, "?type=").concat(props.type);
5196 - return /*#__PURE__*/ react.default.createElement(CardOverlay, { className: "e-site-editor__promotion-overlay" }, /*#__PURE__*/ react.default.createElement("a", {
5197 - className: "e-site-editor__promotion-overlay__link",
5198 - target: "_blank",
5199 - rel: "noopener noreferrer",
5200 - href: promotionUrlWithType
5201 - }, /*#__PURE__*/ react.default.createElement("i", { className: "e-site-editor__promotion-overlay__icon eicon-lock" }), /*#__PURE__*/ react.default.createElement(Button$1, {
5202 - size: "sm",
5203 - color: "brand",
5204 - variant: "contained",
5205 - text: (0, _wordpress_i18n.__)("Upgrade", "elementor")
5206 - })));
5207 - };
5208 - PromotionHoverElement.propTypes = {
5209 - className: import_prop_types.default.string,
5210 - type: import_prop_types.default.string.isRequired
5211 - };
5212 - return /*#__PURE__*/ react.default.createElement(Layout, {
5213 - allPartsButton: /*#__PURE__*/ react.default.createElement(AllPartsButton, { promotion: true }),
5214 - promotion: true
5215 - }, /*#__PURE__*/ react.default.createElement("section", { className: "e-site-editor__promotion" }, /*#__PURE__*/ react.default.createElement(Grid, {
5216 - container: true,
5217 - className: "page-header"
5218 - }, /*#__PURE__*/ react.default.createElement(Grid, {
5219 - item: true,
5220 - sm: 7,
5221 - justify: "end"
5222 - }, /*#__PURE__*/ react.default.createElement(Heading, { variant: "h1" }, (0, _wordpress_i18n.__)("Customize every part of your site", "elementor")), /*#__PURE__*/ react.default.createElement(Text, null, (0, _wordpress_i18n.__)("Get total control, consistency and a faster workflow by designing the recurring parts that make up a complete website like the Header & Footer, Archive, 404, WooCommerce pages and more.", "elementor"))), /*#__PURE__*/ react.default.createElement(Grid, {
5223 - item: true,
5224 - container: true,
5225 - justify: "end",
5226 - alignItems: "start",
5227 - sm: 5
5228 - }, /*#__PURE__*/ react.default.createElement(Button$1, {
5229 - size: "sm",
5230 - color: "cta",
5231 - variant: "contained",
5232 - url: promotionUrl,
5233 - target: "_blank",
5234 - text: (0, _wordpress_i18n.__)("Upgrade Now", "elementor")
5235 - }))), /*#__PURE__*/ react.default.createElement("hr", { className: "eps-separator" }), /*#__PURE__*/ react.default.createElement(SiteParts, { hoverElement: PromotionHoverElement })));
5236 - }
5659 +////////////////////////////////////////////////////////////////////////////////
5660 +// Location Context/Provider
5661 +var LocationContext = es_createNamedContext("Location");
5237 5662
5238 -//#endregion
5239 -//#region app/modules/site-editor/assets/js/pages/not-found.js
5240 - function NotFound() {
5241 - var url = react.default.useMemo(function() {
5242 - var _elementorAppConfig$m;
5243 - return ((_elementorAppConfig$m = elementorAppConfig.menu_url.split("#")) === null || _elementorAppConfig$m === void 0 ? void 0 : _elementorAppConfig$m[1]) || "/site-editor";
5244 - }, []);
5245 - return /*#__PURE__*/ react.default.createElement(Dialog, {
5246 - title: (0, _wordpress_i18n.__)("Theme Builder could not be loaded", "elementor"),
5247 - text: (0, _wordpress_i18n.__)("We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.", "elementor"),
5248 - approveButtonUrl: "https://go.elementor.com/app-theme-builder-load-issue/",
5249 - approveButtonColor: "link",
5250 - approveButtonTarget: "_blank",
5251 - approveButtonText: (0, _wordpress_i18n.__)("Learn More", "elementor"),
5252 - dismissButtonText: (0, _wordpress_i18n.__)("Go Back", "elementor"),
5253 - dismissButtonUrl: url
5254 - });
5255 - }
5663 +// sets up a listener if there isn't one already so apps don't need to be
5664 +// wrapped in some top level provider
5665 +var es_Location = function Location(_ref) {
5666 + var children = _ref.children;
5667 + return external_React_default.a.createElement(
5668 + LocationContext.Consumer,
5669 + null,
5670 + function (context) {
5671 + return context ? children(context) : external_React_default.a.createElement(
5672 + es_LocationProvider,
5673 + null,
5674 + children
5675 + );
5676 + }
5677 + );
5678 +};
5256 5679
5257 -//#endregion
5258 -//#region app/modules/site-editor/assets/js/module.js
5259 - var SiteEditor = /*#__PURE__*/ function() {
5260 - function SiteEditor() {
5261 - _classCallCheck$1(this, SiteEditor);
5262 - this.saveTemplateTypesToCache();
5263 - router.addRoute({
5264 - path: "/site-editor/promotion",
5265 - component: Promotion
5266 - });
5267 - router.addRoute({
5268 - path: "/site-editor/*",
5269 - component: NotFound
5270 - });
5271 - }
5272 - return _createClass(SiteEditor, [{
5273 - key: "saveTemplateTypesToCache",
5274 - value: function saveTemplateTypesToCache() {
5275 - var types = this.getTypes();
5276 - elementorCommon.ajax.addRequestCache({ unique_id: "app_site_editor_template_types" }, types);
5277 - }
5278 - }, {
5279 - key: "getTypes",
5280 - value: function getTypes() {
5281 - return [
5282 - {
5283 - type: "header",
5284 - icon: "eicon-header",
5285 - title: (0, _wordpress_i18n.__)("Header", "elementor"),
5286 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/header.svg" },
5287 - tooltip_data: {
5288 - title: (0, _wordpress_i18n.__)("What is a Header Template?", "elementor"),
5289 - content: (0, _wordpress_i18n.__)("The header template allows you to easily design and edit custom WordPress headers so you are no longer constrained by your theme’s header design limitations.", "elementor"),
5290 - tip: (0, _wordpress_i18n.__)("You can create multiple headers, and assign each to different areas of your site.", "elementor"),
5291 - docs: "https://go.elementor.com/app-theme-builder-header/",
5292 - video_url: "https://www.youtube.com/embed/HHy5RK6W-6I"
5293 - }
5294 - },
5295 - {
5296 - type: "footer",
5297 - icon: "eicon-footer",
5298 - title: (0, _wordpress_i18n.__)("Footer", "elementor"),
5299 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/footer.svg" },
5300 - tooltip_data: {
5301 - title: (0, _wordpress_i18n.__)("What is a Footer Template?", "elementor"),
5302 - content: (0, _wordpress_i18n.__)("The footer template allows you to easily design and edit custom WordPress footers without the limits of your theme’s footer design constraints", "elementor"),
5303 - tip: (0, _wordpress_i18n.__)("You can create multiple footers, and assign each to different areas of your site.", "elementor"),
5304 - docs: "https://go.elementor.com/app-theme-builder-footer/",
5305 - video_url: "https://www.youtube.com/embed/xa8DoR4tQrY"
5306 - }
5307 - },
5308 - {
5309 - type: "single-page",
5310 - icon: "eicon-single-page",
5311 - title: (0, _wordpress_i18n.__)("Single Page", "elementor"),
5312 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/single-page.svg" },
5313 - tooltip_data: {
5314 - title: (0, _wordpress_i18n.__)("What is a Single Page Template?", "elementor"),
5315 - content: (0, _wordpress_i18n.__)("A single page template allows you to easily create the layout and style of pages, ensuring design consistency across all the pages of your site.", "elementor"),
5316 - tip: (0, _wordpress_i18n.__)("You can create multiple single page templates, and assign each to different areas of your site.", "elementor"),
5317 - docs: "https://go.elementor.com/app-theme-builder-page/",
5318 - video_url: "https://www.youtube.com/embed/_y5eZ60lVoY"
5319 - }
5320 - },
5321 - {
5322 - type: "single-post",
5323 - icon: "eicon-single-post",
5324 - title: (0, _wordpress_i18n.__)("Single Post", "elementor"),
5325 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/single-post.svg" },
5326 - tooltip_data: {
5327 - title: (0, _wordpress_i18n.__)("What is a Single Post Template?", "elementor"),
5328 - content: (0, _wordpress_i18n.__)("A single post template allows you to easily design the layout and style of posts, ensuring a design consistency throughout all your blog posts, for example.", "elementor"),
5329 - tip: (0, _wordpress_i18n.__)("You can create multiple single post templates, and assign each to a different category.", "elementor"),
5330 - docs: "https://go.elementor.com/app-theme-builder-post/",
5331 - video_url: "https://www.youtube.com/embed/8Fk-Edu7DL0"
5332 - }
5333 - },
5334 - {
5335 - type: "archive",
5336 - icon: "eicon-archive",
5337 - title: (0, _wordpress_i18n.__)("Archive", "elementor"),
5338 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/archive.svg" },
5339 - tooltip_data: {
5340 - title: (0, _wordpress_i18n.__)("What is an Archive Template?", "elementor"),
5341 - content: (0, _wordpress_i18n.__)("An archive template allows you to easily design the layout and style of archive pages - those pages that show a list of posts (e.g. a blog’s list of recent posts), which may be filtered by terms such as authors, categories, tags, search results, etc.", "elementor"),
5342 - tip: (0, _wordpress_i18n.__)("If you’d like a different style for a specific category, it’s easy to create a separate archive template whose condition is to only display when users are viewing that category’s list of posts.", "elementor"),
5343 - docs: "https://go.elementor.com/app-theme-builder-archive/",
5344 - video_url: "https://www.youtube.com/embed/wxElpEh9bfA"
5345 - }
5346 - },
5347 - {
5348 - type: "search-results",
5349 - icon: "eicon-search-results",
5350 - title: (0, _wordpress_i18n.__)("search results page", "elementor"),
5351 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/search-results.svg" },
5352 - tooltip_data: {
5353 - title: (0, _wordpress_i18n.__)("What is a Search Results Template?", "elementor"),
5354 - content: (0, _wordpress_i18n.__)("You can easily control the layout and design of the Search Results page with the Search Results template, which is simply a special archive template just for displaying search results.", "elementor"),
5355 - tip: (0, _wordpress_i18n.__)("You can customize the message if there are no results for the search term.", "elementor"),
5356 - docs: "https://go.elementor.com/app-theme-builder-search-results/",
5357 - video_url: "https://www.youtube.com/embed/KKkIU_L5sDo"
5358 - }
5359 - },
5360 - {
5361 - type: "product",
5362 - icon: "eicon-single-product",
5363 - title: (0, _wordpress_i18n.__)("Product", "elementor"),
5364 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/product.svg" },
5365 - tooltip_data: {
5366 - title: (0, _wordpress_i18n.__)("What is a Single Product Template?", "elementor"),
5367 - content: (0, _wordpress_i18n.__)("A single product template allows you to easily design the layout and style of WooCommerce single product pages, and apply that template to various conditions that you assign.", "elementor"),
5368 - tip: (0, _wordpress_i18n.__)("You can create multiple single product templates, and assign each to different types of products, enabling a custom design for each group of similar products.", "elementor"),
5369 - docs: "https://go.elementor.com/app-theme-builder-product/",
5370 - video_url: "https://www.youtube.com/embed/PjhoB1RWkBM"
5371 - }
5372 - },
5373 - {
5374 - type: "products",
5375 - icon: "eicon-products",
5376 - title: (0, _wordpress_i18n.__)("Products Archive", "elementor"),
5377 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/products.svg" },
5378 - tooltip_data: {
5379 - title: (0, _wordpress_i18n.__)("What is a Products Archive Template?", "elementor"),
5380 - content: (0, _wordpress_i18n.__)("A products archive template allows you to easily design the layout and style of your WooCommerce shop page or other product archive pages - those pages that show a list of products, which may be filtered by terms such as categories, tags, etc.", "elementor"),
5381 - tip: (0, _wordpress_i18n.__)("You can create multiple archive product templates, and assign each to different categories of products. This gives you the freedom to customize the appearance for each type of product being shown.", "elementor"),
5382 - docs: "https://go.elementor.com/app-theme-builder-products-archive/",
5383 - video_url: "https://www.youtube.com/embed/cQLeirgkguA"
5384 - }
5385 - },
5386 - {
5387 - type: "error-404",
5388 - icon: "eicon-error-404",
5389 - title: (0, _wordpress_i18n.__)("404 page", "elementor"),
5390 - urls: { thumbnail: elementorAppConfig.assets_url + "/images/app/site-editor/error-404.svg" },
5391 - tooltip_data: {
5392 - title: (0, _wordpress_i18n.__)("What is a 404 Page Template?", "elementor"),
5393 - content: (0, _wordpress_i18n.__)("A 404 page template allows you to easily design the layout and style of the page that is displayed when a visitor arrives at a page that does not exist.", "elementor"),
5394 - tip: (0, _wordpress_i18n.__)("Keep your site's visitors happy when they get lost by displaying your recent posts, a search bar, or any information that might help the user find what they were looking for.", "elementor"),
5395 - docs: "https://go.elementor.com/app-theme-builder-404/",
5396 - video_url: "https://www.youtube.com/embed/ACCNp9tBMQg"
5397 - }
5398 - }
5399 - ];
5400 - }
5401 - }]);
5402 - }();
5680 +var es_LocationProvider = function (_React$Component) {
5681 + _inherits(LocationProvider, _React$Component);
5403 5682
5404 -//#endregion
5405 -//#region app/modules/site-editor/assets/js/package.js
5406 - var package_default = {
5407 - AllPartsButton,
5408 - Layout,
5409 - Module: SiteEditor,
5410 - NotFound,
5411 - SitePart,
5412 - SiteParts,
5413 - TemplateTypesContext: Context
5414 - };
5683 + function LocationProvider() {
5684 + var _temp, _this, _ret;
5415 5685
5416 -//#endregion
5417 -//#region app/assets/js/app-packages.js
5686 + _classCallCheck(this, LocationProvider);
5687 +
5688 + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
5689 + args[_key] = arguments[_key];
5690 + }
5691 +
5692 + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
5693 + context: _this.getContext(),
5694 + refs: { unlisten: null }
5695 + }, _temp), _possibleConstructorReturn(_this, _ret);
5696 + }
5697 +
5698 + LocationProvider.prototype.getContext = function getContext() {
5699 + var _props$history = this.props.history,
5700 + navigate = _props$history.navigate,
5701 + location = _props$history.location;
5702 +
5703 + return { navigate: navigate, location: location };
5704 + };
5705 +
5706 + LocationProvider.prototype.componentDidCatch = function componentDidCatch(error, info) {
5707 + if (isRedirect(error)) {
5708 + var _navigate = this.props.history.navigate;
5709 +
5710 + _navigate(error.uri, { replace: true });
5711 + } else {
5712 + throw error;
5713 + }
5714 + };
5715 +
5716 + LocationProvider.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
5717 + if (prevState.context.location !== this.state.context.location) {
5718 + this.props.history._onTransitionComplete();
5719 + }
5720 + };
5721 +
5722 + LocationProvider.prototype.componentDidMount = function componentDidMount() {
5723 + var _this2 = this;
5724 +
5725 + var refs = this.state.refs,
5726 + history = this.props.history;
5727 +
5728 + history._onTransitionComplete();
5729 + refs.unlisten = history.listen(function () {
5730 + Promise.resolve().then(function () {
5731 + // TODO: replace rAF with react deferred update API when it's ready https://github.com/facebook/react/issues/13306
5732 + requestAnimationFrame(function () {
5733 + if (!_this2.unmounted) {
5734 + _this2.setState(function () {
5735 + return { context: _this2.getContext() };
5736 + });
5737 + }
5738 + });
5739 + });
5740 + });
5741 + };
5742 +
5743 + LocationProvider.prototype.componentWillUnmount = function componentWillUnmount() {
5744 + var refs = this.state.refs;
5745 +
5746 + this.unmounted = true;
5747 + refs.unlisten();
5748 + };
5749 +
5750 + LocationProvider.prototype.render = function render() {
5751 + var context = this.state.context,
5752 + children = this.props.children;
5753 +
5754 + return external_React_default.a.createElement(
5755 + LocationContext.Provider,
5756 + { value: context },
5757 + typeof children === "function" ? children(context) : children || null
5758 + );
5759 + };
5760 +
5761 + return LocationProvider;
5762 +}(external_React_default.a.Component);
5763 +
5764 +////////////////////////////////////////////////////////////////////////////////
5765 +
5766 +
5767 +es_LocationProvider.defaultProps = {
5768 + history: globalHistory
5769 +};
5770 + false ? undefined : void 0;
5771 +var es_ServerLocation = function ServerLocation(_ref2) {
5772 + var url = _ref2.url,
5773 + children = _ref2.children;
5774 +
5775 + var searchIndex = url.indexOf("?");
5776 + var searchExists = searchIndex > -1;
5777 + var pathname = void 0;
5778 + var search = "";
5779 + var hash = "";
5780 +
5781 + if (searchExists) {
5782 + pathname = url.substring(0, searchIndex);
5783 + search = url.substring(searchIndex);
5784 + } else {
5785 + pathname = url;
5786 + }
5787 +
5788 + return external_React_default.a.createElement(
5789 + LocationContext.Provider,
5790 + {
5791 + value: {
5792 + location: {
5793 + pathname: pathname,
5794 + search: search,
5795 + hash: hash
5796 + },
5797 + navigate: function navigate() {
5798 + throw new Error("You can't call navigate on the server.");
5799 + }
5800 + }
5801 + },
5802 + children
5803 + );
5804 +};
5805 +////////////////////////////////////////////////////////////////////////////////
5806 +// Sets baseuri and basepath for nested routers and links
5807 +var BaseContext = es_createNamedContext("Base", { baseuri: "/", basepath: "/" });
5808 +
5809 +////////////////////////////////////////////////////////////////////////////////
5810 +// The main event, welcome to the show everybody.
5811 +var es_Router = function Router(props) {
5812 + return external_React_default.a.createElement(
5813 + BaseContext.Consumer,
5814 + null,
5815 + function (baseContext) {
5816 + return external_React_default.a.createElement(
5817 + es_Location,
5818 + null,
5819 + function (locationContext) {
5820 + return external_React_default.a.createElement(es_RouterImpl, es_extends({}, baseContext, locationContext, props));
5821 + }
5822 + );
5823 + }
5824 + );
5825 +};
5826 +
5827 +var es_RouterImpl = function (_React$PureComponent) {
5828 + _inherits(RouterImpl, _React$PureComponent);
5829 +
5830 + function RouterImpl() {
5831 + _classCallCheck(this, RouterImpl);
5832 +
5833 + return _possibleConstructorReturn(this, _React$PureComponent.apply(this, arguments));
5834 + }
5835 +
5836 + RouterImpl.prototype.render = function render() {
5837 + var _props = this.props,
5838 + location = _props.location,
5839 + _navigate2 = _props.navigate,
5840 + basepath = _props.basepath,
5841 + primary = _props.primary,
5842 + children = _props.children,
5843 + baseuri = _props.baseuri,
5844 + _props$component = _props.component,
5845 + component = _props$component === undefined ? "div" : _props$component,
5846 + domProps = _objectWithoutProperties(_props, ["location", "navigate", "basepath", "primary", "children", "baseuri", "component"]);
5847 +
5848 + var routes = external_React_default.a.Children.toArray(children).reduce(function (array, child) {
5849 + var routes = es_createRoute(basepath)(child);
5850 + return array.concat(routes);
5851 + }, []);
5852 + var pathname = location.pathname;
5853 +
5854 +
5855 + var match = utils_pick(routes, pathname);
5856 +
5857 + if (match) {
5858 + var params = match.params,
5859 + uri = match.uri,
5860 + route = match.route,
5861 + element = match.route.value;
5862 +
5863 + // remove the /* from the end for child routes relative paths
5864 +
5865 + basepath = route.default ? basepath : route.path.replace(/\*$/, "");
5866 +
5867 + var props = es_extends({}, params, {
5868 + uri: uri,
5869 + location: location,
5870 + navigate: function navigate(to, options) {
5871 + return _navigate2(resolve(to, uri), options);
5872 + }
5873 + });
5874 +
5875 + var clone = external_React_default.a.cloneElement(element, props, element.props.children ? external_React_default.a.createElement(
5876 + es_Router,
5877 + { location: location, primary: primary },
5878 + element.props.children
5879 + ) : undefined);
5880 +
5881 + // using 'div' for < 16.3 support
5882 + var FocusWrapper = primary ? es_FocusHandler : component;
5883 + // don't pass any props to 'div'
5884 + var wrapperProps = primary ? es_extends({ uri: uri, location: location, component: component }, domProps) : domProps;
5885 +
5886 + return external_React_default.a.createElement(
5887 + BaseContext.Provider,
5888 + { value: { baseuri: uri, basepath: basepath } },
5889 + external_React_default.a.createElement(
5890 + FocusWrapper,
5891 + wrapperProps,
5892 + clone
5893 + )
5894 + );
5895 + } else {
5896 + // Not sure if we want this, would require index routes at every level
5897 + // warning(
5898 + // false,
5899 + // `<Router basepath="${basepath}">\n\nNothing matched:\n\t${
5900 + // location.pathname
5901 + // }\n\nPaths checked: \n\t${routes
5902 + // .map(route => route.path)
5903 + // .join(
5904 + // "\n\t"
5905 + // )}\n\nTo get rid of this warning, add a default NotFound component as child of Router:
5906 + // \n\tlet NotFound = () => <div>Not Found!</div>
5907 + // \n\t<Router>\n\t <NotFound default/>\n\t {/* ... */}\n\t</Router>`
5908 + // );
5909 + return null;
5910 + }
5911 + };
5912 +
5913 + return RouterImpl;
5914 +}(external_React_default.a.PureComponent);
5915 +
5916 +es_RouterImpl.defaultProps = {
5917 + primary: true
5918 +};
5919 +
5920 +
5921 +var FocusContext = es_createNamedContext("Focus");
5922 +
5923 +var es_FocusHandler = function FocusHandler(_ref3) {
5924 + var uri = _ref3.uri,
5925 + location = _ref3.location,
5926 + component = _ref3.component,
5927 + domProps = _objectWithoutProperties(_ref3, ["uri", "location", "component"]);
5928 +
5929 + return external_React_default.a.createElement(
5930 + FocusContext.Consumer,
5931 + null,
5932 + function (requestFocus) {
5933 + return external_React_default.a.createElement(es_FocusHandlerImpl, es_extends({}, domProps, {
5934 + component: component,
5935 + requestFocus: requestFocus,
5936 + uri: uri,
5937 + location: location
5938 + }));
5939 + }
5940 + );
5941 +};
5942 +
5943 +// don't focus on initial render
5944 +var initialRender = true;
5945 +var focusHandlerCount = 0;
5946 +
5947 +var es_FocusHandlerImpl = function (_React$Component2) {
5948 + _inherits(FocusHandlerImpl, _React$Component2);
5949 +
5950 + function FocusHandlerImpl() {
5951 + var _temp2, _this4, _ret2;
5952 +
5953 + _classCallCheck(this, FocusHandlerImpl);
5954 +
5955 + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5956 + args[_key2] = arguments[_key2];
5957 + }
5958 +
5959 + return _ret2 = (_temp2 = (_this4 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this4), _this4.state = {}, _this4.requestFocus = function (node) {
5960 + if (!_this4.state.shouldFocus && node) {
5961 + node.focus();
5962 + }
5963 + }, _temp2), _possibleConstructorReturn(_this4, _ret2);
5964 + }
5965 +
5966 + FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
5967 + var initial = prevState.uri == null;
5968 + if (initial) {
5969 + return es_extends({
5970 + shouldFocus: true
5971 + }, nextProps);
5972 + } else {
5973 + var myURIChanged = nextProps.uri !== prevState.uri;
5974 + var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri;
5975 + return es_extends({
5976 + shouldFocus: myURIChanged || navigatedUpToMe
5977 + }, nextProps);
5978 + }
5979 + };
5980 +
5981 + FocusHandlerImpl.prototype.componentDidMount = function componentDidMount() {
5982 + focusHandlerCount++;
5983 + this.focus();
5984 + };
5985 +
5986 + FocusHandlerImpl.prototype.componentWillUnmount = function componentWillUnmount() {
5987 + focusHandlerCount--;
5988 + if (focusHandlerCount === 0) {
5989 + initialRender = true;
5990 + }
5991 + };
5992 +
5993 + FocusHandlerImpl.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
5994 + if (prevProps.location !== this.props.location && this.state.shouldFocus) {
5995 + this.focus();
5996 + }
5997 + };
5998 +
5999 + FocusHandlerImpl.prototype.focus = function focus() {
6000 + if (false) {}
6001 +
6002 + var requestFocus = this.props.requestFocus;
6003 +
6004 +
6005 + if (requestFocus) {
6006 + requestFocus(this.node);
6007 + } else {
6008 + if (initialRender) {
6009 + initialRender = false;
6010 + } else if (this.node) {
6011 + // React polyfills [autofocus] and it fires earlier than cDM,
6012 + // so we were stealing focus away, this line prevents that.
6013 + if (!this.node.contains(document.activeElement)) {
6014 + this.node.focus();
6015 + }
6016 + }
6017 + }
6018 + };
6019 +
6020 + FocusHandlerImpl.prototype.render = function render() {
6021 + var _this5 = this;
6022 +
6023 + var _props2 = this.props,
6024 + children = _props2.children,
6025 + style = _props2.style,
6026 + requestFocus = _props2.requestFocus,
6027 + _props2$component = _props2.component,
6028 + Comp = _props2$component === undefined ? "div" : _props2$component,
6029 + uri = _props2.uri,
6030 + location = _props2.location,
6031 + domProps = _objectWithoutProperties(_props2, ["children", "style", "requestFocus", "component", "uri", "location"]);
6032 +
6033 + return external_React_default.a.createElement(
6034 + Comp,
6035 + es_extends({
6036 + style: es_extends({ outline: "none" }, style),
6037 + tabIndex: "-1",
6038 + ref: function ref(n) {
6039 + return _this5.node = n;
6040 + }
6041 + }, domProps),
6042 + external_React_default.a.createElement(
6043 + FocusContext.Provider,
6044 + { value: this.requestFocus },
6045 + this.props.children
6046 + )
6047 + );
6048 + };
6049 +
6050 + return FocusHandlerImpl;
6051 +}(external_React_default.a.Component);
6052 +
6053 +polyfill(es_FocusHandlerImpl);
6054 +
6055 +var k = function k() {};
6056 +
6057 +////////////////////////////////////////////////////////////////////////////////
6058 +var forwardRef = external_React_default.a.forwardRef;
6059 +
6060 +if (typeof forwardRef === "undefined") {
6061 + forwardRef = function forwardRef(C) {
6062 + return C;
6063 + };
6064 +}
6065 +
6066 +var Link = forwardRef(function (_ref4, ref) {
6067 + var innerRef = _ref4.innerRef,
6068 + props = _objectWithoutProperties(_ref4, ["innerRef"]);
6069 +
6070 + return external_React_default.a.createElement(
6071 + BaseContext.Consumer,
6072 + null,
6073 + function (_ref5) {
6074 + var basepath = _ref5.basepath,
6075 + baseuri = _ref5.baseuri;
6076 + return external_React_default.a.createElement(
6077 + es_Location,
6078 + null,
6079 + function (_ref6) {
6080 + var location = _ref6.location,
6081 + navigate = _ref6.navigate;
6082 +
6083 + var to = props.to,
6084 + state = props.state,
6085 + replace = props.replace,
6086 + _props$getProps = props.getProps,
6087 + getProps = _props$getProps === undefined ? k : _props$getProps,
6088 + anchorProps = _objectWithoutProperties(props, ["to", "state", "replace", "getProps"]);
6089 +
6090 + var href = resolve(to, baseuri);
6091 + var encodedHref = encodeURI(href);
6092 + var isCurrent = location.pathname === encodedHref;
6093 + var isPartiallyCurrent = startsWith(location.pathname, encodedHref);
6094 +
6095 + return external_React_default.a.createElement("a", es_extends({
6096 + ref: ref || innerRef,
6097 + "aria-current": isCurrent ? "page" : undefined
6098 + }, anchorProps, getProps({ isCurrent: isCurrent, isPartiallyCurrent: isPartiallyCurrent, href: href, location: location }), {
6099 + href: href,
6100 + onClick: function onClick(event) {
6101 + if (anchorProps.onClick) anchorProps.onClick(event);
6102 + if (shouldNavigate(event)) {
6103 + event.preventDefault();
6104 + var shouldReplace = replace;
6105 + if (typeof replace !== "boolean" && isCurrent) {
6106 + var _location$state = es_extends({}, location.state),
6107 + key = _location$state.key,
6108 + restState = _objectWithoutProperties(_location$state, ["key"]);
6109 +
6110 + shouldReplace = shallowCompare(es_extends({}, state), restState);
6111 + }
6112 + navigate(href, {
6113 + state: state,
6114 + replace: shouldReplace
6115 + });
6116 + }
6117 + }
6118 + }));
6119 + }
6120 + );
6121 + }
6122 + );
6123 +});
6124 +
6125 +Link.displayName = "Link";
6126 +
6127 + false ? undefined : void 0;
6128 +
6129 +////////////////////////////////////////////////////////////////////////////////
6130 +function RedirectRequest(uri) {
6131 + this.uri = uri;
6132 +}
6133 +
6134 +var isRedirect = function isRedirect(o) {
6135 + return o instanceof RedirectRequest;
6136 +};
6137 +
6138 +var redirectTo = function redirectTo(to) {
6139 + throw new RedirectRequest(to);
6140 +};
6141 +
6142 +var es_RedirectImpl = function (_React$Component3) {
6143 + _inherits(RedirectImpl, _React$Component3);
6144 +
6145 + function RedirectImpl() {
6146 + _classCallCheck(this, RedirectImpl);
6147 +
6148 + return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
6149 + }
6150 +
6151 + // Support React < 16 with this hook
6152 + RedirectImpl.prototype.componentDidMount = function componentDidMount() {
6153 + var _props3 = this.props,
6154 + navigate = _props3.navigate,
6155 + to = _props3.to,
6156 + from = _props3.from,
6157 + _props3$replace = _props3.replace,
6158 + replace = _props3$replace === undefined ? true : _props3$replace,
6159 + state = _props3.state,
6160 + noThrow = _props3.noThrow,
6161 + baseuri = _props3.baseuri,
6162 + props = _objectWithoutProperties(_props3, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]);
6163 +
6164 + Promise.resolve().then(function () {
6165 + var resolvedTo = resolve(to, baseuri);
6166 + navigate(insertParams(resolvedTo, props), { replace: replace, state: state });
6167 + });
6168 + };
6169 +
6170 + RedirectImpl.prototype.render = function render() {
6171 + var _props4 = this.props,
6172 + navigate = _props4.navigate,
6173 + to = _props4.to,
6174 + from = _props4.from,
6175 + replace = _props4.replace,
6176 + state = _props4.state,
6177 + noThrow = _props4.noThrow,
6178 + baseuri = _props4.baseuri,
6179 + props = _objectWithoutProperties(_props4, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]);
6180 +
6181 + var resolvedTo = resolve(to, baseuri);
6182 + if (!noThrow) redirectTo(insertParams(resolvedTo, props));
6183 + return null;
6184 + };
6185 +
6186 + return RedirectImpl;
6187 +}(external_React_default.a.Component);
6188 +
6189 +var es_Redirect = function Redirect(props) {
6190 + return external_React_default.a.createElement(
6191 + BaseContext.Consumer,
6192 + null,
6193 + function (_ref7) {
6194 + var baseuri = _ref7.baseuri;
6195 + return external_React_default.a.createElement(
6196 + es_Location,
6197 + null,
6198 + function (locationContext) {
6199 + return external_React_default.a.createElement(es_RedirectImpl, es_extends({}, locationContext, { baseuri: baseuri }, props));
6200 + }
6201 + );
6202 + }
6203 + );
6204 +};
6205 +
6206 + false ? undefined : void 0;
6207 +
6208 +////////////////////////////////////////////////////////////////////////////////
6209 +var es_Match = function Match(_ref8) {
6210 + var path = _ref8.path,
6211 + children = _ref8.children;
6212 + return external_React_default.a.createElement(
6213 + BaseContext.Consumer,
6214 + null,
6215 + function (_ref9) {
6216 + var baseuri = _ref9.baseuri;
6217 + return external_React_default.a.createElement(
6218 + es_Location,
6219 + null,
6220 + function (_ref10) {
6221 + var navigate = _ref10.navigate,
6222 + location = _ref10.location;
6223 +
6224 + var resolvedPath = resolve(path, baseuri);
6225 + var result = utils_match(resolvedPath, location.pathname);
6226 + return children({
6227 + navigate: navigate,
6228 + location: location,
6229 + match: result ? es_extends({}, result.params, {
6230 + uri: result.uri,
6231 + path: path
6232 + }) : null
6233 + });
6234 + }
6235 + );
6236 + }
6237 + );
6238 +};
6239 +
6240 +////////////////////////////////////////////////////////////////////////////////
6241 +// Hooks
6242 +
6243 +var es_useLocation = function useLocation() {
6244 + var context = Object(external_React_["useContext"])(LocationContext);
6245 +
6246 + if (!context) {
6247 + throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");
6248 + }
6249 +
6250 + return context.location;
6251 +};
6252 +
6253 +var es_useNavigate = function useNavigate() {
6254 + var context = Object(external_React_["useContext"])(LocationContext);
6255 +
6256 + if (!context) {
6257 + throw new Error("useNavigate hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");
6258 + }
6259 +
6260 + return context.navigate;
6261 +};
6262 +
6263 +var es_useParams = function useParams() {
6264 + var context = Object(external_React_["useContext"])(BaseContext);
6265 +
6266 + if (!context) {
6267 + throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");
6268 + }
6269 +
6270 + var location = es_useLocation();
6271 +
6272 + var results = utils_match(context.basepath, location.pathname);
6273 +
6274 + return results ? results.params : null;
6275 +};
6276 +
6277 +var es_useMatch = function useMatch(path) {
6278 + if (!path) {
6279 + throw new Error("useMatch(path: string) requires an argument of a string to match against");
6280 + }
6281 + var context = Object(external_React_["useContext"])(BaseContext);
6282 +
6283 + if (!context) {
6284 + throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");
6285 + }
6286 +
6287 + var location = es_useLocation();
6288 +
6289 + var resolvedPath = resolve(path, context.baseuri);
6290 + var result = utils_match(resolvedPath, location.pathname);
6291 + return result ? es_extends({}, result.params, {
6292 + uri: result.uri,
6293 + path: path
6294 + }) : null;
6295 +};
6296 +
6297 +////////////////////////////////////////////////////////////////////////////////
6298 +// Junk
6299 +var stripSlashes = function stripSlashes(str) {
6300 + return str.replace(/(^\/+|\/+$)/g, "");
6301 +};
6302 +
6303 +var es_createRoute = function createRoute(basepath) {
6304 + return function (element) {
6305 + if (!element) {
6306 + return null;
6307 + }
6308 +
6309 + if (element.type === external_React_default.a.Fragment && element.props.children) {
6310 + return external_React_default.a.Children.map(element.props.children, createRoute(basepath));
6311 + }
6312 + !(element.props.path || element.props.default || element.type === es_Redirect) ? false ? undefined : browser_default()(false) : void 0;
6313 +
6314 + !!(element.type === es_Redirect && (!element.props.from || !element.props.to)) ? false ? undefined : browser_default()(false) : void 0;
6315 +
6316 + !!(element.type === es_Redirect && !validateRedirect(element.props.from, element.props.to)) ? false ? undefined : browser_default()(false) : void 0;
6317 +
6318 + if (element.props.default) {
6319 + return { value: element, default: true };
6320 + }
6321 +
6322 + var elementPath = element.type === es_Redirect ? element.props.from : element.props.path;
6323 +
6324 + var path = elementPath === "/" ? basepath : stripSlashes(basepath) + "/" + stripSlashes(elementPath);
6325 +
6326 + return {
6327 + value: element,
6328 + default: element.props.default,
6329 + path: element.props.children ? stripSlashes(path) + "/*" : path
6330 + };
6331 + };
6332 +};
6333 +
6334 +var shouldNavigate = function shouldNavigate(event) {
6335 + return !event.defaultPrevented && event.button === 0 && !(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
6336 +};
6337 +
6338 +////////////////////////////////////////////////////////////////////////
6339 +
6340 +
6341 +/***/ }),
6342 +/* 341 */,
6343 +/* 342 */,
6344 +/* 343 */,
6345 +/* 344 */
6346 +/***/ (function(module, exports) {
6347 +
6348 +module.exports = elementorAppPackages.router;
6349 +
6350 +/***/ }),
6351 +/* 345 */
6352 +/***/ (function(module, exports, __webpack_require__) {
6353 +
6354 +"use strict";
6355 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6356 +
6357 +var _interopRequireDefault = __webpack_require__(0);
6358 +
6359 +var _Object$defineProperty = __webpack_require__(1);
6360 +
6361 +_Object$defineProperty(exports, "__esModule", {
6362 + value: true
6363 +});
6364 +
6365 +exports.default = Icon;
6366 +
6367 +var _react = _interopRequireDefault(__webpack_require__(11));
6368 +
6369 +function Icon(props) {
6370 + return /*#__PURE__*/_react.default.createElement("i", {
6371 + className: "eps-icon ".concat(props.className)
6372 + });
6373 +}
6374 +
6375 +Icon.propTypes = {
6376 + className: PropTypes.string.isRequired
6377 +};
6378 +Icon.defaultProps = {
6379 + className: ''
6380 +};
6381 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6382 +
6383 +/***/ }),
6384 +/* 346 */
6385 +/***/ (function(module, exports, __webpack_require__) {
6386 +
6387 +"use strict";
6388 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6389 +
6390 +var _interopRequireDefault = __webpack_require__(0);
6391 +
6392 +var _Object$defineProperty = __webpack_require__(1);
6393 +
6394 +_Object$defineProperty(exports, "__esModule", {
6395 + value: true
6396 +});
6397 +
6398 +exports.default = Grid;
6399 +
6400 +var _react = _interopRequireDefault(__webpack_require__(11));
6401 +
6402 +__webpack_require__(58);
6403 +
6404 +__webpack_require__(119);
6405 +
6406 +var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(299));
6407 +
6408 +__webpack_require__(645);
6409 +
6410 +function Grid(props) {
6411 + var propsMap = {
6412 + direction: '--direction{{ -VALUE }}',
6413 + justify: '--justify{{ -VALUE }}',
6414 + alignContent: '--align-content{{ -VALUE }}',
6415 + alignItems: '--align-items{{ -VALUE }}',
6416 + container: '-container',
6417 + item: '-item',
6418 + noWrap: '-container--no-wrap',
6419 + wrapReverse: '-container--wrap-reverse',
6420 + zeroMinWidth: '-item--zero-min-width',
6421 + spacing: '-container--spacing',
6422 + xs: '-item-xs{{ -VALUE }}',
6423 + sm: '-item-sm{{ -VALUE }}',
6424 + md: '-item-md{{ -VALUE }}',
6425 + lg: '-item-lg{{ -VALUE }}',
6426 + xl: '-item-xl{{ -VALUE }}',
6427 + xxl: '-item-xxl{{ -VALUE }}'
6428 + },
6429 + getStyle = function getStyle() {
6430 + return isValidPropValue(props.spacing) ? {
6431 + '--grid-spacing-gutter': props.spacing
6432 + } : {};
6433 + },
6434 + classes = [getBaseClassName(), props.className].concat((0, _toConsumableArray2.default)(getPropsClasses(propsMap, props)));
6435 +
6436 + return /*#__PURE__*/_react.default.createElement("div", {
6437 + style: getStyle(),
6438 + className: classes.filter(function (classItem) {
6439 + return '' !== classItem;
6440 + }).join(' ')
6441 + }, props.children);
6442 +}
6443 +
6444 +function getPropsClasses(propsMap, props) {
6445 + var classes = [];
6446 +
6447 + for (var prop in propsMap) {
6448 + if (props[prop]) {
6449 + var propValue = isValidPropValue(props[prop]) ? props[prop] : '';
6450 + classes.push(getBaseClassName() + renderPropValueBrackets(propsMap[prop], propValue));
6451 + }
6452 + }
6453 +
6454 + return classes;
6455 +}
6456 +
6457 +function renderPropValueBrackets(propClass, propValue) {
6458 + var brackets = propClass.match(/{{.*?}}/);
6459 +
6460 + if (brackets) {
6461 + var bracketsValue = propValue ? brackets[0].replace(/[{ }]/g, '').replace(/value/i, propValue) : '';
6462 + propClass = propClass.replace(brackets[0], bracketsValue);
6463 + }
6464 +
6465 + return propClass;
6466 +}
6467 +
6468 +function getBaseClassName() {
6469 + return 'eps-grid';
6470 +}
6471 +
6472 +function isValidPropValue(propValue) {
6473 + return propValue && 'boolean' !== typeof propValue;
6474 +}
6475 +
6476 +Grid.propTypes = {
6477 + className: PropTypes.string,
6478 + direction: PropTypes.string,
6479 + justify: PropTypes.string,
6480 + alignContent: PropTypes.string,
6481 + alignItems: PropTypes.string,
6482 + container: PropTypes.bool,
6483 + item: PropTypes.bool,
6484 + noWrap: PropTypes.bool,
6485 + wrapReverse: PropTypes.bool,
6486 + zeroMinWidth: PropTypes.bool,
6487 + spacing: PropTypes.number,
6488 + xs: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6489 + sm: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6490 + md: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6491 + lg: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6492 + xl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6493 + xxl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6494 + children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired
6495 +};
6496 +Grid.defaultProps = {
6497 + className: ''
6498 +};
6499 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6500 +
6501 +/***/ }),
6502 +/* 347 */
6503 +/***/ (function(module, exports, __webpack_require__) {
6504 +
6505 +"use strict";
6506 +/* WEBPACK VAR INJECTION */(function(React, PropTypes) {
6507 +
6508 +var _Object$defineProperty = __webpack_require__(1);
6509 +
6510 +_Object$defineProperty(exports, "__esModule", {
6511 + value: true
6512 +});
6513 +
6514 +exports.default = Text;
6515 +
6516 +function Text(props) {
6517 + var baseClassName = 'eps',
6518 + classes = [props.className],
6519 + tagName = props.tag,
6520 + variant = props.variant && 'md' !== props.variant ? '-' + props.variant : '';
6521 + classes.push(baseClassName + '-text' + variant);
6522 + return React.createElement(tagName, {
6523 + className: classes.filter(function (classItem) {
6524 + return classItem;
6525 + }).join(' ')
6526 + }, props.children);
6527 +}
6528 +
6529 +Text.propTypes = {
6530 + className: PropTypes.string,
6531 + variant: PropTypes.string,
6532 + tag: PropTypes.string,
6533 + children: PropTypes.any.isRequired
6534 +};
6535 +Text.defaultProps = {
6536 + className: '',
6537 + tag: 'p'
6538 +};
6539 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(11), __webpack_require__(41)))
6540 +
6541 +/***/ }),
6542 +/* 348 */
6543 +/***/ (function(module, exports) {
6544 +
6545 +
6546 +
6547 +/***/ }),
6548 +/* 349 */,
6549 +/* 350 */,
6550 +/* 351 */,
6551 +/* 352 */,
6552 +/* 353 */,
6553 +/* 354 */,
6554 +/* 355 */,
6555 +/* 356 */,
6556 +/* 357 */,
6557 +/* 358 */,
6558 +/* 359 */,
6559 +/* 360 */,
6560 +/* 361 */,
6561 +/* 362 */,
6562 +/* 363 */,
6563 +/* 364 */,
6564 +/* 365 */,
6565 +/* 366 */,
6566 +/* 367 */,
6567 +/* 368 */,
6568 +/* 369 */,
6569 +/* 370 */,
6570 +/* 371 */,
6571 +/* 372 */,
6572 +/* 373 */,
6573 +/* 374 */,
6574 +/* 375 */,
6575 +/* 376 */,
6576 +/* 377 */,
6577 +/* 378 */,
6578 +/* 379 */,
6579 +/* 380 */,
6580 +/* 381 */,
6581 +/* 382 */,
6582 +/* 383 */,
6583 +/* 384 */,
6584 +/* 385 */,
6585 +/* 386 */,
6586 +/* 387 */,
6587 +/* 388 */,
6588 +/* 389 */,
6589 +/* 390 */,
6590 +/* 391 */,
6591 +/* 392 */,
6592 +/* 393 */,
6593 +/* 394 */,
6594 +/* 395 */,
6595 +/* 396 */,
6596 +/* 397 */,
6597 +/* 398 */,
6598 +/* 399 */,
6599 +/* 400 */,
6600 +/* 401 */,
6601 +/* 402 */,
6602 +/* 403 */
6603 +/***/ (function(module, exports, __webpack_require__) {
6604 +
6605 +"use strict";
6606 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6607 +
6608 +var _interopRequireDefault = __webpack_require__(0);
6609 +
6610 +var _Object$defineProperty = __webpack_require__(1);
6611 +
6612 +_Object$defineProperty(exports, "__esModule", {
6613 + value: true
6614 +});
6615 +
6616 +exports.default = Page;
6617 +
6618 +var _react = _interopRequireDefault(__webpack_require__(11));
6619 +
6620 +var _header = _interopRequireDefault(__webpack_require__(641));
6621 +
6622 +var _sidebar = _interopRequireDefault(__webpack_require__(646));
6623 +
6624 +var _content = _interopRequireDefault(__webpack_require__(647));
6625 +
6626 +var _footer = _interopRequireDefault(__webpack_require__(648));
6627 +
6628 +function Page(props) {
6629 + var AppSidebar = function AppSidebar() {
6630 + if (!props.sidebar) {
6631 + return;
6632 + }
6633 +
6634 + return /*#__PURE__*/_react.default.createElement(_sidebar.default, null, props.sidebar);
6635 + },
6636 + AppFooter = function AppFooter() {
6637 + if (!props.footer) {
6638 + return;
6639 + }
6640 +
6641 + return /*#__PURE__*/_react.default.createElement(_footer.default, null, props.footer);
6642 + };
6643 +
6644 + return /*#__PURE__*/_react.default.createElement("div", {
6645 + className: "eps-app__lightbox ".concat(props.className)
6646 + }, /*#__PURE__*/_react.default.createElement("div", {
6647 + className: "eps-app"
6648 + }, /*#__PURE__*/_react.default.createElement(_header.default, {
6649 + title: props.title,
6650 + buttons: props.headerButtons,
6651 + titleRedirectRoute: props.titleRedirectRoute
6652 + }), /*#__PURE__*/_react.default.createElement("div", {
6653 + className: "eps-app__main"
6654 + }, AppSidebar(), /*#__PURE__*/_react.default.createElement(_content.default, null, props.content)), AppFooter()));
6655 +}
6656 +
6657 +Page.propTypes = {
6658 + title: PropTypes.string,
6659 + titleRedirectRoute: PropTypes.string,
6660 + className: PropTypes.string,
6661 + headerButtons: PropTypes.arrayOf(PropTypes.object),
6662 + sidebar: PropTypes.object,
6663 + content: PropTypes.object.isRequired,
6664 + footer: PropTypes.object
6665 +};
6666 +Page.defaultProps = {
6667 + className: ''
6668 +};
6669 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6670 +
6671 +/***/ }),
6672 +/* 404 */
6673 +/***/ (function(module, exports, __webpack_require__) {
6674 +
6675 +"use strict";
6676 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6677 +
6678 +var _interopRequireDefault = __webpack_require__(0);
6679 +
6680 +var _Object$defineProperty = __webpack_require__(1);
6681 +
6682 +_Object$defineProperty(exports, "__esModule", {
6683 + value: true
6684 +});
6685 +
6686 +exports.default = Dialog;
6687 +
6688 +var _react = _interopRequireDefault(__webpack_require__(11));
6689 +
6690 +var _dialogWrapper = _interopRequireDefault(__webpack_require__(650));
6691 +
6692 +var _dialogContent = _interopRequireDefault(__webpack_require__(651));
6693 +
6694 +var _dialogTitle = _interopRequireDefault(__webpack_require__(652));
6695 +
6696 +var _dialogText = _interopRequireDefault(__webpack_require__(653));
6697 +
6698 +var _dialogActions = _interopRequireDefault(__webpack_require__(654));
6699 +
6700 +var _dialogButton = _interopRequireDefault(__webpack_require__(655));
6701 +
6702 +__webpack_require__(656);
6703 +
6704 +function Dialog(props) {
6705 + return /*#__PURE__*/_react.default.createElement(_dialogWrapper.default, {
6706 + onSubmit: props.onSubmit,
6707 + onClose: props.onClose
6708 + }, /*#__PURE__*/_react.default.createElement(_dialogContent.default, null, props.title && /*#__PURE__*/_react.default.createElement(_dialogTitle.default, null, props.title), props.text && /*#__PURE__*/_react.default.createElement(_dialogText.default, null, props.text), props.children), /*#__PURE__*/_react.default.createElement(_dialogActions.default, null, /*#__PURE__*/_react.default.createElement(_dialogButton.default, {
6709 + key: "dismiss",
6710 + text: props.dismissButtonText,
6711 + onClick: props.dismissButtonOnClick,
6712 + url: props.dismissButtonUrl,
6713 + target: props.dismissButtonTarget,
6714 + tabIndex: "2"
6715 + }), /*#__PURE__*/_react.default.createElement(_dialogButton.default, {
6716 + key: "approve",
6717 + text: props.approveButtonText,
6718 + onClick: props.approveButtonOnClick,
6719 + url: props.approveButtonUrl,
6720 + target: props.approveButtonTarget,
6721 + color: props.approveButtonColor,
6722 + tabIndex: "1"
6723 + })));
6724 +}
6725 +
6726 +Dialog.propTypes = {
6727 + title: PropTypes.any,
6728 + text: PropTypes.any,
6729 + children: PropTypes.any,
6730 + onSubmit: PropTypes.func,
6731 + onClose: PropTypes.func,
6732 + dismissButtonText: PropTypes.string.isRequired,
6733 + dismissButtonOnClick: PropTypes.func,
6734 + dismissButtonUrl: PropTypes.string,
6735 + dismissButtonTarget: PropTypes.string,
6736 + approveButtonText: PropTypes.string.isRequired,
6737 + approveButtonOnClick: PropTypes.func,
6738 + approveButtonUrl: PropTypes.string,
6739 + approveButtonColor: PropTypes.string,
6740 + approveButtonTarget: PropTypes.string
6741 +};
6742 +Dialog.defaultProps = {};
6743 +Dialog.Wrapper = _dialogWrapper.default;
6744 +Dialog.Content = _dialogContent.default;
6745 +Dialog.Title = _dialogTitle.default;
6746 +Dialog.Text = _dialogText.default;
6747 +Dialog.Actions = _dialogActions.default;
6748 +Dialog.Button = _dialogButton.default;
6749 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6750 +
6751 +/***/ }),
6752 +/* 405 */,
6753 +/* 406 */,
6754 +/* 407 */,
6755 +/* 408 */,
6756 +/* 409 */,
6757 +/* 410 */
6758 +/***/ (function(module, exports, __webpack_require__) {
6759 +
6760 +"use strict";
6761 +
6762 +
6763 +exports.__esModule = true;
6764 +
6765 +var _react = __webpack_require__(11);
6766 +
6767 +var _react2 = _interopRequireDefault(_react);
6768 +
6769 +var _implementation = __webpack_require__(636);
6770 +
6771 +var _implementation2 = _interopRequireDefault(_implementation);
6772 +
6773 +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6774 +
6775 +exports.default = _react2.default.createContext || _implementation2.default;
6776 +module.exports = exports['default'];
6777 +
6778 +/***/ }),
6779 +/* 411 */,
6780 +/* 412 */
6781 +/***/ (function(module, exports, __webpack_require__) {
6782 +
6783 +"use strict";
6784 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
6785 +
6786 +var _interopRequireDefault = __webpack_require__(0);
6787 +
6788 +var _Object$defineProperty = __webpack_require__(1);
6789 +
6790 +_Object$defineProperty(exports, "__esModule", {
6791 + value: true
6792 +});
6793 +
6794 +exports.default = exports.TemplateTypesConsumer = exports.Context = void 0;
6795 +
6796 +var _react = _interopRequireDefault(__webpack_require__(11));
6797 +
6798 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6799 +
6800 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6801 +
6802 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6803 +
6804 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6805 +
6806 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
6807 +
6808 +__webpack_require__(775);
6809 +
6810 +var Context = _react.default.createContext();
6811 +
6812 +exports.Context = Context;
6813 +
6814 +var TemplateTypesContext = /*#__PURE__*/function (_React$Component) {
6815 + (0, _inherits2.default)(TemplateTypesContext, _React$Component);
6816 +
6817 + var _super = (0, _createSuper2.default)(TemplateTypesContext);
6818 +
6819 + function TemplateTypesContext(props) {
6820 + var _this;
6821 +
6822 + (0, _classCallCheck2.default)(this, TemplateTypesContext);
6823 + _this = _super.call(this, props);
6824 + _this.state = {
6825 + templateTypes: [],
6826 + loading: true,
6827 + error: false
6828 + };
6829 + return _this;
6830 + }
6831 +
6832 + (0, _createClass2.default)(TemplateTypesContext, [{
6833 + key: "componentDidMount",
6834 + value: function componentDidMount() {
6835 + var _this2 = this;
6836 +
6837 + this.getTemplateTypes().then(function (response) {
6838 + _this2.setState({
6839 + templateTypes: response,
6840 + loading: false
6841 + });
6842 + }).fail(function (error) {
6843 + _this2.setState({
6844 + error: error.statusText ? error.statusText : error,
6845 + loading: false
6846 + });
6847 + });
6848 + }
6849 + }, {
6850 + key: "getTemplateTypes",
6851 + value: function getTemplateTypes() {
6852 + return elementorCommon.ajax.load({
6853 + action: 'app_site_editor_template_types'
6854 + });
6855 + }
6856 + }, {
6857 + key: "render",
6858 + value: function render() {
6859 + if (this.state.error) {
6860 + return /*#__PURE__*/_react.default.createElement("div", {
6861 + className: "e-loading-wrapper"
6862 + }, /*#__PURE__*/_react.default.createElement("h3", null, __('Error:', 'elementor'), " ", this.state.error));
6863 + }
6864 +
6865 + if (this.state.loading) {
6866 + return /*#__PURE__*/_react.default.createElement("div", {
6867 + className: "elementor-loading"
6868 + }, /*#__PURE__*/_react.default.createElement("div", {
6869 + className: "elementor-loader-wrapper"
6870 + }, /*#__PURE__*/_react.default.createElement("div", {
6871 + className: "elementor-loader"
6872 + }, /*#__PURE__*/_react.default.createElement("div", {
6873 + className: "elementor-loader-boxes"
6874 + }, /*#__PURE__*/_react.default.createElement("div", {
6875 + className: "elementor-loader-box"
6876 + }), /*#__PURE__*/_react.default.createElement("div", {
6877 + className: "elementor-loader-box"
6878 + }), /*#__PURE__*/_react.default.createElement("div", {
6879 + className: "elementor-loader-box"
6880 + }), /*#__PURE__*/_react.default.createElement("div", {
6881 + className: "elementor-loader-box"
6882 + }))), /*#__PURE__*/_react.default.createElement("div", {
6883 + className: "elementor-loading-title"
6884 + }, __('Loading', 'elementor')))); // <div className="e-loading-wrapper"><h3>{ __( 'Loading', 'elementor' ) }...</h3></div>;
6885 + }
6886 +
6887 + return /*#__PURE__*/_react.default.createElement(Context.Provider, {
6888 + value: this.state
6889 + }, this.props.children);
6890 + }
6891 + }]);
6892 + return TemplateTypesContext;
6893 +}(_react.default.Component);
6894 +
6895 +(0, _defineProperty2.default)(TemplateTypesContext, "propTypes", {
6896 + children: PropTypes.object.isRequired
6897 +});
6898 +var TemplateTypesConsumer = Context.Consumer;
6899 +exports.TemplateTypesConsumer = TemplateTypesConsumer;
6900 +var _default = TemplateTypesContext;
6901 +exports.default = _default;
6902 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
6903 +
6904 +/***/ }),
6905 +/* 413 */,
6906 +/* 414 */,
6907 +/* 415 */,
6908 +/* 416 */,
6909 +/* 417 */,
6910 +/* 418 */,
6911 +/* 419 */,
6912 +/* 420 */,
6913 +/* 421 */,
6914 +/* 422 */,
6915 +/* 423 */,
6916 +/* 424 */,
6917 +/* 425 */,
6918 +/* 426 */,
6919 +/* 427 */,
6920 +/* 428 */,
6921 +/* 429 */,
6922 +/* 430 */,
6923 +/* 431 */,
6924 +/* 432 */,
6925 +/* 433 */,
6926 +/* 434 */,
6927 +/* 435 */,
6928 +/* 436 */,
6929 +/* 437 */,
6930 +/* 438 */,
6931 +/* 439 */,
6932 +/* 440 */,
6933 +/* 441 */,
6934 +/* 442 */,
6935 +/* 443 */,
6936 +/* 444 */,
6937 +/* 445 */,
6938 +/* 446 */,
6939 +/* 447 */,
6940 +/* 448 */,
6941 +/* 449 */,
6942 +/* 450 */,
6943 +/* 451 */,
6944 +/* 452 */,
6945 +/* 453 */,
6946 +/* 454 */,
6947 +/* 455 */,
6948 +/* 456 */,
6949 +/* 457 */,
6950 +/* 458 */,
6951 +/* 459 */,
6952 +/* 460 */,
6953 +/* 461 */,
6954 +/* 462 */,
6955 +/* 463 */,
6956 +/* 464 */,
6957 +/* 465 */,
6958 +/* 466 */,
6959 +/* 467 */,
6960 +/* 468 */,
6961 +/* 469 */,
6962 +/* 470 */,
6963 +/* 471 */,
6964 +/* 472 */,
6965 +/* 473 */,
6966 +/* 474 */,
6967 +/* 475 */,
6968 +/* 476 */,
6969 +/* 477 */,
6970 +/* 478 */,
6971 +/* 479 */,
6972 +/* 480 */,
6973 +/* 481 */,
6974 +/* 482 */,
6975 +/* 483 */,
6976 +/* 484 */,
6977 +/* 485 */,
6978 +/* 486 */,
6979 +/* 487 */,
6980 +/* 488 */,
6981 +/* 489 */,
6982 +/* 490 */,
6983 +/* 491 */,
6984 +/* 492 */,
6985 +/* 493 */,
6986 +/* 494 */,
6987 +/* 495 */,
6988 +/* 496 */,
6989 +/* 497 */,
6990 +/* 498 */,
6991 +/* 499 */,
6992 +/* 500 */,
6993 +/* 501 */,
6994 +/* 502 */,
6995 +/* 503 */,
6996 +/* 504 */,
6997 +/* 505 */,
6998 +/* 506 */,
6999 +/* 507 */,
7000 +/* 508 */,
7001 +/* 509 */,
7002 +/* 510 */,
7003 +/* 511 */,
7004 +/* 512 */,
7005 +/* 513 */,
7006 +/* 514 */,
7007 +/* 515 */,
7008 +/* 516 */,
7009 +/* 517 */,
7010 +/* 518 */,
7011 +/* 519 */,
7012 +/* 520 */,
7013 +/* 521 */,
7014 +/* 522 */,
7015 +/* 523 */,
7016 +/* 524 */,
7017 +/* 525 */,
7018 +/* 526 */,
7019 +/* 527 */,
7020 +/* 528 */,
7021 +/* 529 */,
7022 +/* 530 */,
7023 +/* 531 */,
7024 +/* 532 */,
7025 +/* 533 */,
7026 +/* 534 */,
7027 +/* 535 */,
7028 +/* 536 */,
7029 +/* 537 */,
7030 +/* 538 */,
7031 +/* 539 */,
7032 +/* 540 */,
7033 +/* 541 */,
7034 +/* 542 */,
7035 +/* 543 */,
7036 +/* 544 */,
7037 +/* 545 */,
7038 +/* 546 */,
7039 +/* 547 */,
7040 +/* 548 */,
7041 +/* 549 */,
7042 +/* 550 */,
7043 +/* 551 */,
7044 +/* 552 */,
7045 +/* 553 */,
7046 +/* 554 */,
7047 +/* 555 */,
7048 +/* 556 */,
7049 +/* 557 */,
7050 +/* 558 */,
7051 +/* 559 */,
7052 +/* 560 */,
7053 +/* 561 */,
7054 +/* 562 */,
7055 +/* 563 */,
7056 +/* 564 */,
7057 +/* 565 */,
7058 +/* 566 */,
7059 +/* 567 */,
7060 +/* 568 */,
7061 +/* 569 */,
7062 +/* 570 */,
7063 +/* 571 */,
7064 +/* 572 */,
7065 +/* 573 */,
7066 +/* 574 */,
7067 +/* 575 */,
7068 +/* 576 */,
7069 +/* 577 */,
7070 +/* 578 */,
7071 +/* 579 */,
7072 +/* 580 */,
7073 +/* 581 */,
7074 +/* 582 */,
7075 +/* 583 */,
7076 +/* 584 */,
7077 +/* 585 */,
7078 +/* 586 */,
7079 +/* 587 */,
7080 +/* 588 */,
7081 +/* 589 */,
7082 +/* 590 */,
7083 +/* 591 */,
7084 +/* 592 */,
7085 +/* 593 */,
7086 +/* 594 */,
7087 +/* 595 */,
7088 +/* 596 */,
7089 +/* 597 */,
7090 +/* 598 */,
7091 +/* 599 */,
7092 +/* 600 */,
7093 +/* 601 */,
7094 +/* 602 */,
7095 +/* 603 */,
7096 +/* 604 */,
7097 +/* 605 */,
7098 +/* 606 */,
7099 +/* 607 */,
7100 +/* 608 */,
7101 +/* 609 */,
7102 +/* 610 */,
7103 +/* 611 */,
7104 +/* 612 */,
7105 +/* 613 */,
7106 +/* 614 */,
7107 +/* 615 */,
7108 +/* 616 */,
7109 +/* 617 */,
7110 +/* 618 */,
7111 +/* 619 */,
7112 +/* 620 */,
7113 +/* 621 */,
7114 +/* 622 */,
7115 +/* 623 */,
7116 +/* 624 */,
7117 +/* 625 */,
7118 +/* 626 */,
7119 +/* 627 */,
7120 +/* 628 */,
7121 +/* 629 */,
7122 +/* 630 */,
7123 +/* 631 */,
7124 +/* 632 */,
7125 +/* 633 */,
7126 +/* 634 */,
7127 +/* 635 */,
7128 +/* 636 */
7129 +/***/ (function(module, exports, __webpack_require__) {
7130 +
7131 +"use strict";
7132 +
7133 +
7134 +exports.__esModule = true;
7135 +
7136 +var _react = __webpack_require__(11);
7137 +
7138 +var _react2 = _interopRequireDefault(_react);
7139 +
7140 +var _propTypes = __webpack_require__(41);
7141 +
7142 +var _propTypes2 = _interopRequireDefault(_propTypes);
7143 +
7144 +var _gud = __webpack_require__(637);
7145 +
7146 +var _gud2 = _interopRequireDefault(_gud);
7147 +
7148 +var _warning = __webpack_require__(639);
7149 +
7150 +var _warning2 = _interopRequireDefault(_warning);
7151 +
7152 +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7153 +
7154 +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7155 +
7156 +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
7157 +
7158 +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
7159 +
7160 +var MAX_SIGNED_31_BIT_INT = 1073741823;
7161 +
7162 +// Inlined Object.is polyfill.
7163 +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
7164 +function objectIs(x, y) {
7165 + if (x === y) {
7166 + return x !== 0 || 1 / x === 1 / y;
7167 + } else {
7168 + return x !== x && y !== y;
7169 + }
7170 +}
7171 +
7172 +function createEventEmitter(value) {
7173 + var handlers = [];
7174 + return {
7175 + on: function on(handler) {
7176 + handlers.push(handler);
7177 + },
7178 + off: function off(handler) {
7179 + handlers = handlers.filter(function (h) {
7180 + return h !== handler;
7181 + });
7182 + },
7183 + get: function get() {
7184 + return value;
7185 + },
7186 + set: function set(newValue, changedBits) {
7187 + value = newValue;
7188 + handlers.forEach(function (handler) {
7189 + return handler(value, changedBits);
7190 + });
7191 + }
7192 + };
7193 +}
7194 +
7195 +function onlyChild(children) {
7196 + return Array.isArray(children) ? children[0] : children;
7197 +}
7198 +
7199 +function createReactContext(defaultValue, calculateChangedBits) {
7200 + var _Provider$childContex, _Consumer$contextType;
7201 +
7202 + var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';
7203 +
7204 + var Provider = function (_Component) {
7205 + _inherits(Provider, _Component);
7206 +
7207 + function Provider() {
7208 + var _temp, _this, _ret;
7209 +
7210 + _classCallCheck(this, Provider);
7211 +
7212 + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
7213 + args[_key] = arguments[_key];
7214 + }
7215 +
7216 + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);
7217 + }
7218 +
7219 + Provider.prototype.getChildContext = function getChildContext() {
7220 + var _ref;
7221 +
7222 + return _ref = {}, _ref[contextProp] = this.emitter, _ref;
7223 + };
7224 +
7225 + Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
7226 + if (this.props.value !== nextProps.value) {
7227 + var oldValue = this.props.value;
7228 + var newValue = nextProps.value;
7229 + var changedBits = void 0;
7230 +
7231 + if (objectIs(oldValue, newValue)) {
7232 + changedBits = 0; // No change
7233 + } else {
7234 + changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
7235 + if (false) {}
7236 +
7237 + changedBits |= 0;
7238 +
7239 + if (changedBits !== 0) {
7240 + this.emitter.set(nextProps.value, changedBits);
7241 + }
7242 + }
7243 + }
7244 + };
7245 +
7246 + Provider.prototype.render = function render() {
7247 + return this.props.children;
7248 + };
7249 +
7250 + return Provider;
7251 + }(_react.Component);
7252 +
7253 + Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);
7254 +
7255 + var Consumer = function (_Component2) {
7256 + _inherits(Consumer, _Component2);
7257 +
7258 + function Consumer() {
7259 + var _temp2, _this2, _ret2;
7260 +
7261 + _classCallCheck(this, Consumer);
7262 +
7263 + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7264 + args[_key2] = arguments[_key2];
7265 + }
7266 +
7267 + return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {
7268 + value: _this2.getValue()
7269 + }, _this2.onUpdate = function (newValue, changedBits) {
7270 + var observedBits = _this2.observedBits | 0;
7271 + if ((observedBits & changedBits) !== 0) {
7272 + _this2.setState({ value: _this2.getValue() });
7273 + }
7274 + }, _temp2), _possibleConstructorReturn(_this2, _ret2);
7275 + }
7276 +
7277 + Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
7278 + var observedBits = nextProps.observedBits;
7279 +
7280 + this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
7281 + : observedBits;
7282 + };
7283 +
7284 + Consumer.prototype.componentDidMount = function componentDidMount() {
7285 + if (this.context[contextProp]) {
7286 + this.context[contextProp].on(this.onUpdate);
7287 + }
7288 + var observedBits = this.props.observedBits;
7289 +
7290 + this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
7291 + : observedBits;
7292 + };
7293 +
7294 + Consumer.prototype.componentWillUnmount = function componentWillUnmount() {
7295 + if (this.context[contextProp]) {
7296 + this.context[contextProp].off(this.onUpdate);
7297 + }
7298 + };
7299 +
7300 + Consumer.prototype.getValue = function getValue() {
7301 + if (this.context[contextProp]) {
7302 + return this.context[contextProp].get();
7303 + } else {
7304 + return defaultValue;
7305 + }
7306 + };
7307 +
7308 + Consumer.prototype.render = function render() {
7309 + return onlyChild(this.props.children)(this.state.value);
7310 + };
7311 +
7312 + return Consumer;
7313 + }(_react.Component);
7314 +
7315 + Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);
7316 +
7317 +
7318 + return {
7319 + Provider: Provider,
7320 + Consumer: Consumer
7321 + };
7322 +}
7323 +
7324 +exports.default = createReactContext;
7325 +module.exports = exports['default'];
7326 +
7327 +/***/ }),
7328 +/* 637 */
7329 +/***/ (function(module, exports, __webpack_require__) {
7330 +
7331 +"use strict";
7332 +/* WEBPACK VAR INJECTION */(function(global) {// @flow
7333 +
7334 +
7335 +var key = '__global_unique_id__';
7336 +
7337 +module.exports = function() {
7338 + return global[key] = (global[key] || 0) + 1;
7339 +};
7340 +
7341 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(638)))
7342 +
7343 +/***/ }),
7344 +/* 638 */
7345 +/***/ (function(module, exports) {
7346 +
7347 +var g;
7348 +
7349 +// This works in non-strict mode
7350 +g = (function() {
7351 + return this;
7352 +})();
7353 +
7354 +try {
7355 + // This works if eval is allowed (see CSP)
7356 + g = g || new Function("return this")();
7357 +} catch (e) {
7358 + // This works if the window reference is available
7359 + if (typeof window === "object") g = window;
7360 +}
7361 +
7362 +// g can still be undefined, but nothing to do about it...
7363 +// We return undefined, instead of nothing here, so it's
7364 +// easier to handle this case. if(!global) { ...}
7365 +
7366 +module.exports = g;
7367 +
7368 +
7369 +/***/ }),
7370 +/* 639 */
7371 +/***/ (function(module, exports, __webpack_require__) {
7372 +
7373 +"use strict";
5418 7374 /**
5419 - * Temporary solution for share components.
5420 - * TODO.
5421 - */
5422 - window.elementorAppPackages = {
5423 - appUi,
5424 - components,
5425 - hooks,
5426 - router,
5427 - siteEditor: package_default
5428 - };
7375 + * Copyright (c) 2014-present, Facebook, Inc.
7376 + *
7377 + * This source code is licensed under the MIT license found in the
7378 + * LICENSE file in the root directory of this source tree.
7379 + */
5429 7380
5430 -//#endregion
5431 -})(React, wp.i18n);
7381 +
7382 +
7383 +/**
7384 + * Similar to invariant but only logs a warning if the condition is not met.
7385 + * This can be used to log issues in development environments in critical
7386 + * paths. Removing the logging code for production environments will keep the
7387 + * same logic and follow the same code paths.
7388 + */
7389 +
7390 +var __DEV__ = "production" !== 'production';
7391 +
7392 +var warning = function() {};
7393 +
7394 +if (__DEV__) {
7395 + var printWarning = function printWarning(format, args) {
7396 + var len = arguments.length;
7397 + args = new Array(len > 1 ? len - 1 : 0);
7398 + for (var key = 1; key < len; key++) {
7399 + args[key - 1] = arguments[key];
7400 + }
7401 + var argIndex = 0;
7402 + var message = 'Warning: ' +
7403 + format.replace(/%s/g, function() {
7404 + return args[argIndex++];
7405 + });
7406 + if (typeof console !== 'undefined') {
7407 + console.error(message);
7408 + }
7409 + try {
7410 + // --- Welcome to debugging React ---
7411 + // This error was thrown as a convenience so that you can use this stack
7412 + // to find the callsite that caused this warning to fire.
7413 + throw new Error(message);
7414 + } catch (x) {}
7415 + }
7416 +
7417 + warning = function(condition, format, args) {
7418 + var len = arguments.length;
7419 + args = new Array(len > 2 ? len - 2 : 0);
7420 + for (var key = 2; key < len; key++) {
7421 + args[key - 2] = arguments[key];
7422 + }
7423 + if (format === undefined) {
7424 + throw new Error(
7425 + '`warning(condition, format, ...args)` requires a warning ' +
7426 + 'message argument'
7427 + );
7428 + }
7429 + if (!condition) {
7430 + printWarning.apply(null, [format].concat(args));
7431 + }
7432 + };
7433 +}
7434 +
7435 +module.exports = warning;
7436 +
7437 +
7438 +/***/ }),
7439 +/* 640 */
7440 +/***/ (function(module, exports, __webpack_require__) {
7441 +
7442 +"use strict";
7443 +/* WEBPACK VAR INJECTION */(function(__) {
7444 +
7445 +var _interopRequireDefault = __webpack_require__(0);
7446 +
7447 +var _Object$defineProperty = __webpack_require__(1);
7448 +
7449 +_Object$defineProperty(exports, "__esModule", {
7450 + value: true
7451 +});
7452 +
7453 +exports.default = NotFound;
7454 +
7455 +var _react = _interopRequireDefault(__webpack_require__(11));
7456 +
7457 +var _page = _interopRequireDefault(__webpack_require__(403));
7458 +
7459 +function NotFound() {
7460 + var config = {
7461 + title: __('Not Found', 'elementor'),
7462 + className: 'eps-app__not-found',
7463 + content: /*#__PURE__*/_react.default.createElement("h1", null, " ", __('Not Found', 'elementor'), " "),
7464 + sidebar: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)
7465 + };
7466 + return /*#__PURE__*/_react.default.createElement(_page.default, config);
7467 +}
7468 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"]))
7469 +
7470 +/***/ }),
7471 +/* 641 */
7472 +/***/ (function(module, exports, __webpack_require__) {
7473 +
7474 +"use strict";
7475 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7476 +
7477 +var _interopRequireDefault = __webpack_require__(0);
7478 +
7479 +var _Object$defineProperty = __webpack_require__(1);
7480 +
7481 +_Object$defineProperty(exports, "__esModule", {
7482 + value: true
7483 +});
7484 +
7485 +exports.default = Header;
7486 +
7487 +var _react = _interopRequireDefault(__webpack_require__(11));
7488 +
7489 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
7490 +
7491 +var _headerButtons = _interopRequireDefault(__webpack_require__(642));
7492 +
7493 +var _grid = _interopRequireDefault(__webpack_require__(346));
7494 +
7495 +function Header(props) {
7496 + var TitleTag = 'span',
7497 + titleAttrs = {};
7498 +
7499 + if (props.titleRedirectRoute) {
7500 + TitleTag = 'a';
7501 + titleAttrs = {
7502 + href: "#".concat(props.titleRedirectRoute),
7503 + target: '_self'
7504 + };
7505 + }
7506 +
7507 + _react.default.useEffect(function () {
7508 + document.title = __('Elementor', 'elementor') + ' | ' + props.title;
7509 + });
7510 +
7511 + return /*#__PURE__*/_react.default.createElement(_grid.default, {
7512 + container: true,
7513 + alignItems: "center",
7514 + justify: "space-between",
7515 + className: "eps-app__header"
7516 + }, /*#__PURE__*/_react.default.createElement(TitleTag, (0, _extends2.default)({
7517 + className: "eps-app__logo-title-wrapper"
7518 + }, titleAttrs), /*#__PURE__*/_react.default.createElement("i", {
7519 + className: "eps-app__logo eicon-elementor"
7520 + }), /*#__PURE__*/_react.default.createElement("h1", {
7521 + className: "eps-app__title"
7522 + }, props.title)), /*#__PURE__*/_react.default.createElement(_headerButtons.default, {
7523 + buttons: props.buttons
7524 + }));
7525 +}
7526 +
7527 +Header.propTypes = {
7528 + title: PropTypes.string,
7529 + titleRedirectRoute: PropTypes.string,
7530 + buttons: PropTypes.arrayOf(PropTypes.object)
7531 +};
7532 +Header.defaultProps = {
7533 + buttons: []
7534 +};
7535 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
7536 +
7537 +/***/ }),
7538 +/* 642 */
7539 +/***/ (function(module, exports, __webpack_require__) {
7540 +
7541 +"use strict";
7542 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7543 +
7544 +var _interopRequireDefault = __webpack_require__(0);
7545 +
7546 +var _Object$defineProperty = __webpack_require__(1);
7547 +
7548 +_Object$defineProperty(exports, "__esModule", {
7549 + value: true
7550 +});
7551 +
7552 +exports.default = HeaderButtons;
7553 +
7554 +var _react = _interopRequireDefault(__webpack_require__(11));
7555 +
7556 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
7557 +
7558 +var _headerButton = _interopRequireDefault(__webpack_require__(643));
7559 +
7560 +function HeaderButtons(props) {
7561 + var tools = '';
7562 +
7563 + if (props.buttons.length) {
7564 + var buttons = props.buttons.map(function (button) {
7565 + return /*#__PURE__*/_react.default.createElement(_headerButton.default, (0, _extends2.default)({
7566 + key: button.id
7567 + }, button));
7568 + });
7569 + tools = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, buttons);
7570 + }
7571 +
7572 + return /*#__PURE__*/_react.default.createElement("div", {
7573 + className: "eps-app__header-buttons"
7574 + }, /*#__PURE__*/_react.default.createElement(_headerButton.default, {
7575 + text: __('Close', 'elementor'),
7576 + icon: "eicon-close",
7577 + className: "eps-app__close-button",
7578 + onClick: function onClick() {
7579 + if (window.top === window) {
7580 + // Directly.
7581 + window.top.location = elementorAppConfig.return_url;
7582 + } else {
7583 + // Iframe.
7584 + window.top.$e.run('app/close');
7585 + }
7586 + }
7587 + }), tools);
7588 +}
7589 +
7590 +HeaderButtons.propTypes = {
7591 + buttons: PropTypes.arrayOf(PropTypes.object)
7592 +};
7593 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
7594 +
7595 +/***/ }),
7596 +/* 643 */
7597 +/***/ (function(module, exports, __webpack_require__) {
7598 +
7599 +"use strict";
7600 +
7601 +
7602 +var _interopRequireDefault = __webpack_require__(0);
7603 +
7604 +var _Object$defineProperty = __webpack_require__(1);
7605 +
7606 +_Object$defineProperty(exports, "__esModule", {
7607 + value: true
7608 +});
7609 +
7610 +exports.default = void 0;
7611 +
7612 +var _assign = _interopRequireDefault(__webpack_require__(150));
7613 +
7614 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7615 +
7616 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7617 +
7618 +var _get2 = _interopRequireDefault(__webpack_require__(25));
7619 +
7620 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
7621 +
7622 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7623 +
7624 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7625 +
7626 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
7627 +
7628 +var _button = _interopRequireDefault(__webpack_require__(238));
7629 +
7630 +var Button = /*#__PURE__*/function (_BaseButton) {
7631 + (0, _inherits2.default)(Button, _BaseButton);
7632 +
7633 + var _super = (0, _createSuper2.default)(Button);
7634 +
7635 + function Button() {
7636 + (0, _classCallCheck2.default)(this, Button);
7637 + return _super.apply(this, arguments);
7638 + }
7639 +
7640 + (0, _createClass2.default)(Button, [{
7641 + key: "getCssId",
7642 + value: function getCssId() {
7643 + return "eps-app-header-btn-" + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getCssId", this).call(this);
7644 + }
7645 + }, {
7646 + key: "getClassName",
7647 + value: function getClassName() {
7648 + return "eps-app__header-btn " + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getClassName", this).call(this);
7649 + }
7650 + }]);
7651 + return Button;
7652 +}(_button.default);
7653 +
7654 +exports.default = Button;
7655 +(0, _defineProperty2.default)(Button, "defaultProps", (0, _assign.default)({}
7656 +/* clone */
7657 +, _button.default.defaultProps, {
7658 + hideText: true
7659 +}));
7660 +
7661 +/***/ }),
7662 +/* 644 */
7663 +/***/ (function(module, exports) {
7664 +
7665 +
7666 +
7667 +/***/ }),
7668 +/* 645 */
7669 +/***/ (function(module, exports) {
7670 +
7671 +
7672 +
7673 +/***/ }),
7674 +/* 646 */
7675 +/***/ (function(module, exports, __webpack_require__) {
7676 +
7677 +"use strict";
7678 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7679 +
7680 +var _interopRequireDefault = __webpack_require__(0);
7681 +
7682 +var _Object$defineProperty = __webpack_require__(1);
7683 +
7684 +_Object$defineProperty(exports, "__esModule", {
7685 + value: true
7686 +});
7687 +
7688 +exports.default = Sidebar;
7689 +
7690 +var _react = _interopRequireDefault(__webpack_require__(11));
7691 +
7692 +function Sidebar(props) {
7693 + return /*#__PURE__*/_react.default.createElement("div", {
7694 + className: "eps-app__sidebar"
7695 + }, props.children);
7696 +}
7697 +
7698 +Sidebar.propTypes = {
7699 + children: PropTypes.object
7700 +};
7701 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7702 +
7703 +/***/ }),
7704 +/* 647 */
7705 +/***/ (function(module, exports, __webpack_require__) {
7706 +
7707 +"use strict";
7708 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7709 +
7710 +var _interopRequireDefault = __webpack_require__(0);
7711 +
7712 +var _Object$defineProperty = __webpack_require__(1);
7713 +
7714 +_Object$defineProperty(exports, "__esModule", {
7715 + value: true
7716 +});
7717 +
7718 +exports.default = Content;
7719 +
7720 +var _react = _interopRequireDefault(__webpack_require__(11));
7721 +
7722 +function Content(props) {
7723 + return /*#__PURE__*/_react.default.createElement("main", {
7724 + className: "eps-app__content"
7725 + }, props.children);
7726 +}
7727 +
7728 +Content.propTypes = {
7729 + children: PropTypes.object
7730 +};
7731 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7732 +
7733 +/***/ }),
7734 +/* 648 */
7735 +/***/ (function(module, exports, __webpack_require__) {
7736 +
7737 +"use strict";
7738 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7739 +
7740 +var _interopRequireDefault = __webpack_require__(0);
7741 +
7742 +var _Object$defineProperty = __webpack_require__(1);
7743 +
7744 +_Object$defineProperty(exports, "__esModule", {
7745 + value: true
7746 +});
7747 +
7748 +exports.default = Footer;
7749 +
7750 +var _react = _interopRequireDefault(__webpack_require__(11));
7751 +
7752 +function Footer(props) {
7753 + return /*#__PURE__*/_react.default.createElement("footer", {
7754 + className: "eps-app__footer"
7755 + }, props.children);
7756 +}
7757 +
7758 +Footer.propTypes = {
7759 + children: PropTypes.object
7760 +};
7761 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7762 +
7763 +/***/ }),
7764 +/* 649 */
7765 +/***/ (function(module, exports, __webpack_require__) {
7766 +
7767 +"use strict";
7768 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7769 +
7770 +var _interopRequireDefault = __webpack_require__(0);
7771 +
7772 +var _Object$defineProperty = __webpack_require__(1);
7773 +
7774 +_Object$defineProperty(exports, "__esModule", {
7775 + value: true
7776 +});
7777 +
7778 +exports.default = void 0;
7779 +
7780 +var _react = _interopRequireDefault(__webpack_require__(11));
7781 +
7782 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7783 +
7784 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7785 +
7786 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7787 +
7788 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7789 +
7790 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
7791 +
7792 +var _dialog = _interopRequireDefault(__webpack_require__(404));
7793 +
7794 +// In the current time there is no solution to use "getDerivedStateFromError" static method with functional component
7795 +// That is why this component is a class component.
7796 +// @link https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes
7797 +var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
7798 + (0, _inherits2.default)(ErrorBoundary, _React$Component);
7799 +
7800 + var _super = (0, _createSuper2.default)(ErrorBoundary);
7801 +
7802 + function ErrorBoundary(props) {
7803 + var _this;
7804 +
7805 + (0, _classCallCheck2.default)(this, ErrorBoundary);
7806 + _this = _super.call(this, props);
7807 + _this.state = {
7808 + hasError: null
7809 + };
7810 + return _this;
7811 + }
7812 +
7813 + (0, _createClass2.default)(ErrorBoundary, [{
7814 + key: "goBack",
7815 + value: function goBack() {
7816 + // If the app was opened inside an iframe, it will close it,
7817 + // if not, it will redirect to the last location.
7818 + if (window.top !== window.self) {
7819 + window.top.$e.run('app/close');
7820 + }
7821 +
7822 + window.location = elementorAppConfig.return_url;
7823 + }
7824 + }, {
7825 + key: "render",
7826 + value: function render() {
7827 + if (this.state.hasError) {
7828 + return /*#__PURE__*/_react.default.createElement(_dialog.default, {
7829 + title: this.props.title,
7830 + text: this.props.text,
7831 + approveButtonUrl: this.props.learnMoreUrl,
7832 + approveButtonColor: "link",
7833 + approveButtonTarget: "_blank",
7834 + approveButtonText: __('Learn More', 'elementor'),
7835 + dismissButtonText: __('Go Back', 'elementor'),
7836 + dismissButtonOnClick: this.goBack
7837 + });
7838 + }
7839 +
7840 + return this.props.children;
7841 + }
7842 + }], [{
7843 + key: "getDerivedStateFromError",
7844 + value: function getDerivedStateFromError() {
7845 + return {
7846 + hasError: true
7847 + };
7848 + }
7849 + }]);
7850 + return ErrorBoundary;
7851 +}(_react.default.Component);
7852 +
7853 +exports.default = ErrorBoundary;
7854 +(0, _defineProperty2.default)(ErrorBoundary, "propTypes", {
7855 + children: PropTypes.any,
7856 + title: PropTypes.string,
7857 + text: PropTypes.string,
7858 + learnMoreUrl: PropTypes.string
7859 +});
7860 +(0, _defineProperty2.default)(ErrorBoundary, "defaultProps", {
7861 + title: __('App could not be loaded', 'elementor'),
7862 + text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'),
7863 + learnMoreUrl: 'https://go.elementor.com/app-general-load-issue/'
7864 +});
7865 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
7866 +
7867 +/***/ }),
7868 +/* 650 */
7869 +/***/ (function(module, exports, __webpack_require__) {
7870 +
7871 +"use strict";
7872 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7873 +
7874 +var _interopRequireDefault = __webpack_require__(0);
7875 +
7876 +var _Object$defineProperty = __webpack_require__(1);
7877 +
7878 +_Object$defineProperty(exports, "__esModule", {
7879 + value: true
7880 +});
7881 +
7882 +exports.default = DialogWrapper;
7883 +
7884 +var _react = _interopRequireDefault(__webpack_require__(11));
7885 +
7886 +var _button = _interopRequireDefault(__webpack_require__(238));
7887 +
7888 +function DialogWrapper(props) {
7889 + var WrapperTag = 'div';
7890 +
7891 + if (props.onSubmit) {
7892 + WrapperTag = 'form';
7893 + }
7894 +
7895 + return /*#__PURE__*/_react.default.createElement("section", {
7896 + className: "eps-modal__overlay"
7897 + }, props.onClose && /*#__PURE__*/_react.default.createElement(_button.default, {
7898 + onClick: props.onClose,
7899 + text: __('Close', 'elementor'),
7900 + hideText: true,
7901 + icon: "eicon-close",
7902 + className: "eps-dialog__close-button"
7903 + }), /*#__PURE__*/_react.default.createElement(WrapperTag, {
7904 + className: "eps-modal eps-dialog",
7905 + onSubmit: props.onSubmit
7906 + }, props.children));
7907 +}
7908 +
7909 +DialogWrapper.propTypes = {
7910 + onClose: PropTypes.func,
7911 + onSubmit: PropTypes.func,
7912 + children: PropTypes.any
7913 +};
7914 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
7915 +
7916 +/***/ }),
7917 +/* 651 */
7918 +/***/ (function(module, exports, __webpack_require__) {
7919 +
7920 +"use strict";
7921 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7922 +
7923 +var _interopRequireDefault = __webpack_require__(0);
7924 +
7925 +var _Object$defineProperty = __webpack_require__(1);
7926 +
7927 +_Object$defineProperty(exports, "__esModule", {
7928 + value: true
7929 +});
7930 +
7931 +exports.default = DialogContent;
7932 +
7933 +var _react = _interopRequireDefault(__webpack_require__(11));
7934 +
7935 +function DialogContent(props) {
7936 + return /*#__PURE__*/_react.default.createElement("div", {
7937 + className: "eps-dialog__content"
7938 + }, props.children);
7939 +}
7940 +
7941 +DialogContent.propTypes = {
7942 + children: PropTypes.any
7943 +};
7944 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7945 +
7946 +/***/ }),
7947 +/* 652 */
7948 +/***/ (function(module, exports, __webpack_require__) {
7949 +
7950 +"use strict";
7951 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7952 +
7953 +var _interopRequireDefault = __webpack_require__(0);
7954 +
7955 +var _Object$defineProperty = __webpack_require__(1);
7956 +
7957 +_Object$defineProperty(exports, "__esModule", {
7958 + value: true
7959 +});
7960 +
7961 +exports.default = DialogTitle;
7962 +
7963 +var _react = _interopRequireDefault(__webpack_require__(11));
7964 +
7965 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(212));
7966 +
7967 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
7968 +
7969 +var _heading = _interopRequireDefault(__webpack_require__(336));
7970 +
7971 +function DialogTitle(props) {
7972 + return /*#__PURE__*/_react.default.createElement(_heading.default, (0, _extends2.default)({}, props, {
7973 + className: "eps-dialog__title ".concat(props.className)
7974 + }));
7975 +}
7976 +
7977 +DialogTitle.propTypes = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _heading.default.propTypes), {}, {
7978 + className: PropTypes.string
7979 +});
7980 +DialogTitle.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _heading.default.propTypes), {}, {
7981 + variant: 'h3',
7982 + tag: 'h3',
7983 + className: ''
7984 +});
7985 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7986 +
7987 +/***/ }),
7988 +/* 653 */
7989 +/***/ (function(module, exports, __webpack_require__) {
7990 +
7991 +"use strict";
7992 +
7993 +
7994 +var _interopRequireDefault = __webpack_require__(0);
7995 +
7996 +var _Object$defineProperty = __webpack_require__(1);
7997 +
7998 +_Object$defineProperty(exports, "__esModule", {
7999 + value: true
8000 +});
8001 +
8002 +exports.default = DialogText;
8003 +
8004 +var _react = _interopRequireDefault(__webpack_require__(11));
8005 +
8006 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(212));
8007 +
8008 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
8009 +
8010 +var _text = _interopRequireDefault(__webpack_require__(347));
8011 +
8012 +function DialogText(props) {
8013 + return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({
8014 + className: "eps-dialog__text",
8015 + variant: "xs"
8016 + }, props));
8017 +}
8018 +
8019 +DialogText.propTypes = (0, _objectSpread2.default)({}, _text.default.propTypes);
8020 +DialogText.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _text.default.defaultProps), {}, {
8021 + tag: 'p',
8022 + variant: 'sm'
8023 +});
8024 +
8025 +/***/ }),
8026 +/* 654 */
8027 +/***/ (function(module, exports, __webpack_require__) {
8028 +
8029 +"use strict";
8030 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8031 +
8032 +var _interopRequireDefault = __webpack_require__(0);
8033 +
8034 +var _Object$defineProperty = __webpack_require__(1);
8035 +
8036 +_Object$defineProperty(exports, "__esModule", {
8037 + value: true
8038 +});
8039 +
8040 +exports.default = DialogActions;
8041 +
8042 +var _react = _interopRequireDefault(__webpack_require__(11));
8043 +
8044 +function DialogActions(props) {
8045 + return /*#__PURE__*/_react.default.createElement("div", {
8046 + className: "eps-dialog__buttons"
8047 + }, props.children);
8048 +}
8049 +
8050 +DialogActions.propTypes = {
8051 + children: PropTypes.any
8052 +};
8053 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8054 +
8055 +/***/ }),
8056 +/* 655 */
8057 +/***/ (function(module, exports, __webpack_require__) {
8058 +
8059 +"use strict";
8060 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8061 +
8062 +var _interopRequireDefault = __webpack_require__(0);
8063 +
8064 +var _Object$defineProperty = __webpack_require__(1);
8065 +
8066 +_Object$defineProperty(exports, "__esModule", {
8067 + value: true
8068 +});
8069 +
8070 +exports.default = DialogButton;
8071 +
8072 +var _react = _interopRequireDefault(__webpack_require__(11));
8073 +
8074 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(212));
8075 +
8076 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
8077 +
8078 +var _button = _interopRequireDefault(__webpack_require__(238));
8079 +
8080 +function DialogButton(props) {
8081 + return /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props, {
8082 + className: "eps-dialog__button ".concat(props.className)
8083 + }));
8084 +}
8085 +
8086 +DialogButton.propTypes = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.propTypes), {}, {
8087 + tabIndex: PropTypes.string,
8088 + type: PropTypes.string
8089 +});
8090 +DialogButton.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.defaultProps), {}, {
8091 + tabIndex: '0',
8092 + type: 'button'
8093 +});
8094 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8095 +
8096 +/***/ }),
8097 +/* 656 */
8098 +/***/ (function(module, exports) {
8099 +
8100 +
8101 +
8102 +/***/ }),
8103 +/* 657 */,
8104 +/* 658 */,
8105 +/* 659 */,
8106 +/* 660 */,
8107 +/* 661 */,
8108 +/* 662 */,
8109 +/* 663 */,
8110 +/* 664 */,
8111 +/* 665 */,
8112 +/* 666 */,
8113 +/* 667 */,
8114 +/* 668 */,
8115 +/* 669 */,
8116 +/* 670 */,
8117 +/* 671 */,
8118 +/* 672 */,
8119 +/* 673 */,
8120 +/* 674 */,
8121 +/* 675 */,
8122 +/* 676 */,
8123 +/* 677 */,
8124 +/* 678 */
8125 +/***/ (function(module, exports, __webpack_require__) {
8126 +
8127 +"use strict";
8128 +/* WEBPACK VAR INJECTION */(function(PropTypes, __) {
8129 +
8130 +var _interopRequireDefault = __webpack_require__(0);
8131 +
8132 +var _Object$defineProperty = __webpack_require__(1);
8133 +
8134 +_Object$defineProperty(exports, "__esModule", {
8135 + value: true
8136 +});
8137 +
8138 +exports.default = void 0;
8139 +
8140 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(212));
8141 +
8142 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8143 +
8144 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8145 +
8146 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8147 +
8148 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8149 +
8150 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
8151 +
8152 +var _button = _interopRequireDefault(__webpack_require__(238));
8153 +
8154 +__webpack_require__(759);
8155 +
8156 +var AddNewButton = /*#__PURE__*/function (_Button) {
8157 + (0, _inherits2.default)(AddNewButton, _Button);
8158 +
8159 + var _super = (0, _createSuper2.default)(AddNewButton);
8160 +
8161 + function AddNewButton() {
8162 + (0, _classCallCheck2.default)(this, AddNewButton);
8163 + return _super.apply(this, arguments);
8164 + }
8165 +
8166 + (0, _createClass2.default)(AddNewButton, [{
8167 + key: "getClassName",
8168 + value: function getClassName() {
8169 + var className = this.props.className;
8170 +
8171 + if (this.props.size) {
8172 + className += ' eps-add-new-button--' + this.props.size;
8173 + }
8174 +
8175 + return className;
8176 + }
8177 + }]);
8178 + return AddNewButton;
8179 +}(_button.default);
8180 +
8181 +exports.default = AddNewButton;
8182 +(0, _defineProperty2.default)(AddNewButton, "propTypes", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.propTypes), {}, {
8183 + text: PropTypes.string,
8184 + size: PropTypes.string
8185 +}));
8186 +(0, _defineProperty2.default)(AddNewButton, "defaultProps", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.defaultProps), {}, {
8187 + className: 'eps-add-new-button',
8188 + text: __('Add New', 'elementor-pro'),
8189 + icon: 'eicon-plus'
8190 +}));
8191 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(189)["__"]))
8192 +
8193 +/***/ }),
8194 +/* 679 */
8195 +/***/ (function(module, exports, __webpack_require__) {
8196 +
8197 +"use strict";
8198 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8199 +
8200 +var _interopRequireDefault = __webpack_require__(0);
8201 +
8202 +var _Object$defineProperty = __webpack_require__(1);
8203 +
8204 +_Object$defineProperty(exports, "__esModule", {
8205 + value: true
8206 +});
8207 +
8208 +exports.default = void 0;
8209 +
8210 +var _react = _interopRequireDefault(__webpack_require__(11));
8211 +
8212 +__webpack_require__(348);
8213 +
8214 +var Card = _react.default.forwardRef(function (props, ref) {
8215 + return /*#__PURE__*/_react.default.createElement("article", {
8216 + className: "eps-card ".concat(props.className),
8217 + ref: ref
8218 + }, props.children);
8219 +});
8220 +
8221 +Card.propTypes = {
8222 + type: PropTypes.string,
8223 + className: PropTypes.string,
8224 + children: PropTypes.any
8225 +};
8226 +Card.defaultProps = {
8227 + className: ''
8228 +};
8229 +Card.displayName = 'Card';
8230 +var _default = Card;
8231 +exports.default = _default;
8232 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8233 +
8234 +/***/ }),
8235 +/* 680 */
8236 +/***/ (function(module, exports, __webpack_require__) {
8237 +
8238 +"use strict";
8239 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8240 +
8241 +var _interopRequireDefault = __webpack_require__(0);
8242 +
8243 +var _Object$defineProperty = __webpack_require__(1);
8244 +
8245 +_Object$defineProperty(exports, "__esModule", {
8246 + value: true
8247 +});
8248 +
8249 +exports.default = CardBody;
8250 +
8251 +var _react = _interopRequireDefault(__webpack_require__(11));
8252 +
8253 +__webpack_require__(348);
8254 +
8255 +function CardBody(props) {
8256 + return /*#__PURE__*/_react.default.createElement("main", {
8257 + className: "eps-card__body ".concat(props.className)
8258 + }, props.children);
8259 +}
8260 +
8261 +CardBody.propTypes = {
8262 + className: PropTypes.string,
8263 + children: PropTypes.object.isRequired
8264 +};
8265 +CardBody.defaultProps = {
8266 + className: ''
8267 +};
8268 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8269 +
8270 +/***/ }),
8271 +/* 681 */
8272 +/***/ (function(module, exports, __webpack_require__) {
8273 +
8274 +"use strict";
8275 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8276 +
8277 +var _interopRequireDefault = __webpack_require__(0);
8278 +
8279 +var _Object$defineProperty = __webpack_require__(1);
8280 +
8281 +_Object$defineProperty(exports, "__esModule", {
8282 + value: true
8283 +});
8284 +
8285 +exports.default = CardImage;
8286 +
8287 +var _react = _interopRequireDefault(__webpack_require__(11));
8288 +
8289 +__webpack_require__(348);
8290 +
8291 +function CardImage(props) {
8292 + var image = /*#__PURE__*/_react.default.createElement("img", {
8293 + src: props.src,
8294 + alt: props.alt,
8295 + className: "eps-card__image"
8296 + });
8297 +
8298 + return /*#__PURE__*/_react.default.createElement("figure", {
8299 + className: "eps-card__figure ".concat(props.className)
8300 + }, image, props.children);
8301 +}
8302 +
8303 +CardImage.propTypes = {
8304 + className: PropTypes.string,
8305 + src: PropTypes.string.isRequired,
8306 + alt: PropTypes.string.isRequired,
8307 + children: PropTypes.any
8308 +};
8309 +CardImage.defaultProps = {
8310 + className: ''
8311 +};
8312 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8313 +
8314 +/***/ }),
8315 +/* 682 */
8316 +/***/ (function(module, exports, __webpack_require__) {
8317 +
8318 +"use strict";
8319 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8320 +
8321 +var _interopRequireDefault = __webpack_require__(0);
8322 +
8323 +var _Object$defineProperty = __webpack_require__(1);
8324 +
8325 +_Object$defineProperty(exports, "__esModule", {
8326 + value: true
8327 +});
8328 +
8329 +exports.default = CardHeader;
8330 +
8331 +var _react = _interopRequireDefault(__webpack_require__(11));
8332 +
8333 +__webpack_require__(348);
8334 +
8335 +function CardHeader(props) {
8336 + return /*#__PURE__*/_react.default.createElement("header", {
8337 + className: "eps-card__header ".concat(props.className)
8338 + }, props.children);
8339 +}
8340 +
8341 +CardHeader.propTypes = {
8342 + className: PropTypes.string,
8343 + children: PropTypes.any.isRequired
8344 +};
8345 +CardHeader.defaultProps = {
8346 + className: ''
8347 +};
8348 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8349 +
8350 +/***/ }),
8351 +/* 683 */
8352 +/***/ (function(module, exports, __webpack_require__) {
8353 +
8354 +"use strict";
8355 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8356 +
8357 +var _interopRequireDefault = __webpack_require__(0);
8358 +
8359 +var _Object$defineProperty = __webpack_require__(1);
8360 +
8361 +_Object$defineProperty(exports, "__esModule", {
8362 + value: true
8363 +});
8364 +
8365 +exports.default = CardOverlay;
8366 +
8367 +var _react = _interopRequireDefault(__webpack_require__(11));
8368 +
8369 +__webpack_require__(348);
8370 +
8371 +function CardOverlay(props) {
8372 + return /*#__PURE__*/_react.default.createElement("div", {
8373 + className: "eps-card__image-overlay ".concat(props.className)
8374 + }, props.children);
8375 +}
8376 +
8377 +CardOverlay.propTypes = {
8378 + className: PropTypes.string,
8379 + children: PropTypes.object.isRequired
8380 +};
8381 +CardOverlay.defaultProps = {
8382 + className: ''
8383 +};
8384 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8385 +
8386 +/***/ }),
8387 +/* 684 */
8388 +/***/ (function(module, exports, __webpack_require__) {
8389 +
8390 +"use strict";
8391 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8392 +
8393 +var _interopRequireDefault = __webpack_require__(0);
8394 +
8395 +var _Object$defineProperty = __webpack_require__(1);
8396 +
8397 +_Object$defineProperty(exports, "__esModule", {
8398 + value: true
8399 +});
8400 +
8401 +exports.default = CssGrid;
8402 +
8403 +var _react = _interopRequireDefault(__webpack_require__(11));
8404 +
8405 +var _utils = _interopRequireDefault(__webpack_require__(685));
8406 +
8407 +__webpack_require__(761);
8408 +
8409 +function CssGrid(props) {
8410 + var gridStyle = {
8411 + '--eps-grid-columns': props.columns,
8412 + '--eps-grid-spacing': _utils.default.pxToRem(props.spacing),
8413 + '--eps-grid-col-min-width': _utils.default.pxToRem(props.colMinWidth),
8414 + '--eps-grid-col-max-width': _utils.default.pxToRem(props.colMaxWidth)
8415 + };
8416 + return /*#__PURE__*/_react.default.createElement("div", {
8417 + style: gridStyle,
8418 + className: "eps-css-grid ".concat(props.className)
8419 + }, props.children);
8420 +}
8421 +
8422 +CssGrid.propTypes = {
8423 + className: PropTypes.string,
8424 + children: PropTypes.any.isRequired,
8425 + columns: PropTypes.number,
8426 + spacing: PropTypes.number,
8427 + colMinWidth: PropTypes.number,
8428 + colMaxWidth: PropTypes.number
8429 +};
8430 +CssGrid.defaultProps = {
8431 + spacing: 24,
8432 + className: ''
8433 +};
8434 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8435 +
8436 +/***/ }),
8437 +/* 685 */
8438 +/***/ (function(module, exports, __webpack_require__) {
8439 +
8440 +"use strict";
8441 +
8442 +
8443 +var _interopRequireDefault = __webpack_require__(0);
8444 +
8445 +var _Object$defineProperty = __webpack_require__(1);
8446 +
8447 +_Object$defineProperty(exports, "__esModule", {
8448 + value: true
8449 +});
8450 +
8451 +exports.default = void 0;
8452 +
8453 +__webpack_require__(80);
8454 +
8455 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8456 +
8457 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
8458 +
8459 +var Utils = function Utils() {
8460 + (0, _classCallCheck2.default)(this, Utils);
8461 +};
8462 +
8463 +exports.default = Utils;
8464 +(0, _defineProperty2.default)(Utils, "pxToRem", function (pixels) {
8465 + if (!pixels) {
8466 + return;
8467 + }
8468 +
8469 + return "".concat(pixels * 0.0625, "rem");
8470 +});
8471 +(0, _defineProperty2.default)(Utils, "arrayToClassName", function (array) {
8472 + return array.filter(function (classItem) {
8473 + return '' !== classItem;
8474 + }).join(' ');
8475 +});
8476 +(0, _defineProperty2.default)(Utils, "stringToRemValues", function (string) {
8477 + return string.split(' ').map(function (value) {
8478 + return Utils.pxToRem(value);
8479 + }).join(' ');
8480 +});
8481 +
8482 +/***/ }),
8483 +/* 686 */
8484 +/***/ (function(module, exports, __webpack_require__) {
8485 +
8486 +"use strict";
8487 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8488 +
8489 +var _interopRequireDefault = __webpack_require__(0);
8490 +
8491 +var _interopRequireWildcard = __webpack_require__(36);
8492 +
8493 +var _Object$defineProperty = __webpack_require__(1);
8494 +
8495 +_Object$defineProperty(exports, "__esModule", {
8496 + value: true
8497 +});
8498 +
8499 +exports.default = DragDrop;
8500 +
8501 +var _react = _interopRequireWildcard(__webpack_require__(11));
8502 +
8503 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
8504 +
8505 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104));
8506 +
8507 +var _utils = _interopRequireDefault(__webpack_require__(685));
8508 +
8509 +__webpack_require__(762);
8510 +
8511 +function DragDrop(props) {
8512 + var _useState = (0, _react.useState)(false),
8513 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
8514 + isDragOver = _useState2[0],
8515 + setIsDragOver = _useState2[1],
8516 + getClassName = function getClassName() {
8517 + var baseClassName = 'e-app-drag-drop',
8518 + classes = [baseClassName, props.className];
8519 +
8520 + if (isDragOver && !props.isLoading) {
8521 + classes.push(baseClassName + '--drag-over');
8522 + }
8523 +
8524 + return _utils.default.arrayToClassName(classes);
8525 + },
8526 + onDragDropActions = function onDragDropActions(event) {
8527 + event.preventDefault();
8528 + event.stopPropagation();
8529 + },
8530 + dragDropEvents = {
8531 + onDrop: function onDrop(event) {
8532 + onDragDropActions(event);
8533 + setIsDragOver(false);
8534 +
8535 + if (props.onDrop) {
8536 + props.onDrop(event);
8537 + }
8538 + },
8539 + onDragOver: function onDragOver(event) {
8540 + onDragDropActions(event);
8541 + setIsDragOver(true);
8542 +
8543 + if (props.onDragOver) {
8544 + props.onDragOver(event);
8545 + }
8546 + },
8547 + onDragLeave: function onDragLeave(event) {
8548 + onDragDropActions(event);
8549 + setIsDragOver(false);
8550 +
8551 + if (props.onDragLeave) {
8552 + props.onDragLeave(event);
8553 + }
8554 + }
8555 + };
8556 +
8557 + return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, dragDropEvents, {
8558 + className: getClassName()
8559 + }), props.children);
8560 +}
8561 +
8562 +DragDrop.propTypes = {
8563 + className: PropTypes.string,
8564 + children: PropTypes.any,
8565 + onDrop: PropTypes.func,
8566 + onDragLeave: PropTypes.func,
8567 + onDragOver: PropTypes.func,
8568 + isLoading: PropTypes.bool
8569 +};
8570 +DragDrop.defaultProps = {
8571 + className: ''
8572 +};
8573 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8574 +
8575 +/***/ }),
8576 +/* 687 */
8577 +/***/ (function(module, exports, __webpack_require__) {
8578 +
8579 +"use strict";
8580 +/* WEBPACK VAR INJECTION */(function(PropTypes, __) {
8581 +
8582 +var _interopRequireDefault = __webpack_require__(0);
8583 +
8584 +var _interopRequireWildcard = __webpack_require__(36);
8585 +
8586 +var _Object$defineProperty = __webpack_require__(1);
8587 +
8588 +_Object$defineProperty(exports, "__esModule", {
8589 + value: true
8590 +});
8591 +
8592 +exports.default = UploadFile;
8593 +
8594 +var _react = _interopRequireWildcard(__webpack_require__(11));
8595 +
8596 +var _button = _interopRequireDefault(__webpack_require__(238));
8597 +
8598 +__webpack_require__(764);
8599 +
8600 +function UploadFile(props) {
8601 + var fileInput = (0, _react.useRef)(null);
8602 + return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("input", {
8603 + ref: fileInput,
8604 + type: "file",
8605 + className: "e-app-upload-file__input",
8606 + onChange: function onChange(event) {
8607 + props.onFileSelect(event.target.files, event);
8608 + }
8609 + }), /*#__PURE__*/_react.default.createElement(_button.default, {
8610 + className: "e-app-upload-file__button",
8611 + text: props.text,
8612 + variant: "contained",
8613 + color: "primary",
8614 + size: "lg",
8615 + hideText: props.isLoading,
8616 + icon: props.isLoading ? 'eicon-loading eicon-animation-spin' : '',
8617 + onClick: function onClick() {
8618 + if (!props.isLoading) {
8619 + fileInput.current.click();
8620 + }
8621 + }
8622 + }));
8623 +}
8624 +
8625 +UploadFile.propTypes = {
8626 + className: PropTypes.string,
8627 + text: PropTypes.string,
8628 + onFileSelect: PropTypes.func,
8629 + isLoading: PropTypes.bool
8630 +};
8631 +UploadFile.defaultProps = {
8632 + className: '',
8633 + text: __('Select File', 'elementor')
8634 +};
8635 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(189)["__"]))
8636 +
8637 +/***/ }),
8638 +/* 688 */
8639 +/***/ (function(module, exports, __webpack_require__) {
8640 +
8641 +"use strict";
8642 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8643 +
8644 +var _interopRequireDefault = __webpack_require__(0);
8645 +
8646 +var _Object$defineProperty = __webpack_require__(1);
8647 +
8648 +_Object$defineProperty(exports, "__esModule", {
8649 + value: true
8650 +});
8651 +
8652 +exports.default = Menu;
8653 +
8654 +var _react = _interopRequireDefault(__webpack_require__(11));
8655 +
8656 +__webpack_require__(119);
8657 +
8658 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
8659 +
8660 +__webpack_require__(766);
8661 +
8662 +var _button = _interopRequireDefault(__webpack_require__(238));
8663 +
8664 +var _router = _interopRequireDefault(__webpack_require__(344));
8665 +
8666 +var _router2 = __webpack_require__(340);
8667 +
8668 +function Menu(props) {
8669 + var ActionButton = function ActionButton(itemProps) {
8670 + if (!props.actionButton) {
8671 + return '';
8672 + }
8673 +
8674 + return props.actionButton(itemProps);
8675 + };
8676 +
8677 + if (props.promotion) {
8678 + return /*#__PURE__*/_react.default.createElement("nav", {
8679 + className: "eps-menu"
8680 + }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) {
8681 + return /*#__PURE__*/_react.default.createElement("li", {
8682 + key: item.type,
8683 + className: "eps-menu-item"
8684 + }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
8685 + text: item.title,
8686 + className: "eps-menu-item__link"
8687 + }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item));
8688 + })));
8689 + }
8690 +
8691 + return /*#__PURE__*/_react.default.createElement(_router2.LocationProvider, {
8692 + history: _router.default.appHistory
8693 + }, /*#__PURE__*/_react.default.createElement("nav", {
8694 + className: "eps-menu"
8695 + }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) {
8696 + return /*#__PURE__*/_react.default.createElement(_router2.Match, {
8697 + key: item.type,
8698 + path: item.url
8699 + }, function (_ref) {
8700 + var match = _ref.match;
8701 + return /*#__PURE__*/_react.default.createElement("li", {
8702 + key: item.type,
8703 + className: "eps-menu-item".concat(match ? ' eps-menu-item--active' : '')
8704 + }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
8705 + text: item.title,
8706 + className: "eps-menu-item__link"
8707 + }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item));
8708 + });
8709 + }))));
8710 +}
8711 +
8712 +Menu.propTypes = {
8713 + menuItems: PropTypes.arrayOf(PropTypes.object),
8714 + children: PropTypes.any,
8715 + actionButton: PropTypes.func,
8716 + promotion: PropTypes.bool
8717 +};
8718 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8719 +
8720 +/***/ }),
8721 +/* 689 */
8722 +/***/ (function(module, exports, __webpack_require__) {
8723 +
8724 +"use strict";
8725 +
8726 +
8727 +var _interopRequireDefault = __webpack_require__(0);
8728 +
8729 +var _Object$defineProperty = __webpack_require__(1);
8730 +
8731 +_Object$defineProperty(exports, "__esModule", {
8732 + value: true
8733 +});
8734 +
8735 +exports.default = void 0;
8736 +
8737 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8738 +
8739 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8740 +
8741 +var _get2 = _interopRequireDefault(__webpack_require__(25));
8742 +
8743 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
8744 +
8745 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8746 +
8747 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8748 +
8749 +__webpack_require__(767);
8750 +
8751 +var _button = _interopRequireDefault(__webpack_require__(238));
8752 +
8753 +var SideMenuItem = /*#__PURE__*/function (_BaseButton) {
8754 + (0, _inherits2.default)(SideMenuItem, _BaseButton);
8755 +
8756 + var _super = (0, _createSuper2.default)(SideMenuItem);
8757 +
8758 + function SideMenuItem() {
8759 + (0, _classCallCheck2.default)(this, SideMenuItem);
8760 + return _super.apply(this, arguments);
8761 + }
8762 +
8763 + (0, _createClass2.default)(SideMenuItem, [{
8764 + key: "getCssId",
8765 + value: function getCssId() {
8766 + return "eps-menu-item-" + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getCssId", this).call(this);
8767 + }
8768 + }, {
8769 + key: "getClassName",
8770 + value: function getClassName() {
8771 + return "eps-menu-item " + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getClassName", this).call(this);
8772 + }
8773 + }]);
8774 + return SideMenuItem;
8775 +}(_button.default);
8776 +
8777 +exports.default = SideMenuItem;
8778 +
8779 +/***/ }),
8780 +/* 690 */
8781 +/***/ (function(module, exports, __webpack_require__) {
8782 +
8783 +"use strict";
8784 +/* WEBPACK VAR INJECTION */(function(PropTypes, __) {
8785 +
8786 +var _interopRequireDefault = __webpack_require__(0);
8787 +
8788 +var _Object$defineProperty = __webpack_require__(1);
8789 +
8790 +_Object$defineProperty(exports, "__esModule", {
8791 + value: true
8792 +});
8793 +
8794 +exports.default = void 0;
8795 +
8796 +var _react = _interopRequireDefault(__webpack_require__(11));
8797 +
8798 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
8799 +
8800 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8801 +
8802 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8803 +
8804 +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
8805 +
8806 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8807 +
8808 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8809 +
8810 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
8811 +
8812 +var _button = _interopRequireDefault(__webpack_require__(238));
8813 +
8814 +var _grid = _interopRequireDefault(__webpack_require__(346));
8815 +
8816 +var _icon = _interopRequireDefault(__webpack_require__(345));
8817 +
8818 +__webpack_require__(768);
8819 +
8820 +var ModalProvider = /*#__PURE__*/function (_React$Component) {
8821 + (0, _inherits2.default)(ModalProvider, _React$Component);
8822 +
8823 + var _super = (0, _createSuper2.default)(ModalProvider);
8824 +
8825 + function ModalProvider(props) {
8826 + var _this;
8827 +
8828 + (0, _classCallCheck2.default)(this, ModalProvider);
8829 + _this = _super.call(this, props);
8830 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "hideModal", function () {
8831 + _this.setState({
8832 + show: false
8833 + });
8834 + });
8835 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "showModal", function () {
8836 + _this.setState({
8837 + show: true
8838 + });
8839 + });
8840 + _this.state = {
8841 + hideModal: _this.hideModal,
8842 + show: false,
8843 + showModal: _this.showModal
8844 + };
8845 + return _this;
8846 + }
8847 +
8848 + (0, _createClass2.default)(ModalProvider, [{
8849 + key: "render",
8850 + value: function render() {
8851 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, this.props.toggleButtonProps, {
8852 + onClick: this.state.showModal
8853 + })), /*#__PURE__*/_react.default.createElement(Modal, {
8854 + modalProps: this.state,
8855 + title: this.props.title
8856 + }, this.props.children));
8857 + }
8858 + }]);
8859 + return ModalProvider;
8860 +}(_react.default.Component);
8861 +
8862 +exports.default = ModalProvider;
8863 +ModalProvider.propTypes = {
8864 + children: PropTypes.node.isRequired,
8865 + toggleButtonProps: PropTypes.object.isRequired,
8866 + title: PropTypes.string.isRequired
8867 +};
8868 +
8869 +var Modal = /*#__PURE__*/function (_React$Component2) {
8870 + (0, _inherits2.default)(Modal, _React$Component2);
8871 +
8872 + var _super2 = (0, _createSuper2.default)(Modal);
8873 +
8874 + function Modal() {
8875 + var _this2;
8876 +
8877 + (0, _classCallCheck2.default)(this, Modal);
8878 +
8879 + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8880 + args[_key] = arguments[_key];
8881 + }
8882 +
8883 + _this2 = _super2.call.apply(_super2, [this].concat(args));
8884 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "modalRef", _react.default.createRef());
8885 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "closeRef", _react.default.createRef());
8886 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "closeModal", function (e) {
8887 + var modalProps = _this2.props.modalProps;
8888 + var node = _this2.modalRef.current,
8889 + closeNode = _this2.closeRef.current,
8890 + isInCloseNode = closeNode && closeNode.contains(e.target); // ignore if click is inside the modal
8891 +
8892 + if (node && node.contains(e.target) && !isInCloseNode) {
8893 + return;
8894 + }
8895 +
8896 + modalProps.hideModal();
8897 + });
8898 + return _this2;
8899 + }
8900 +
8901 + (0, _createClass2.default)(Modal, [{
8902 + key: "componentDidMount",
8903 + value: function componentDidMount() {
8904 + document.addEventListener('mousedown', this.closeModal, false);
8905 + }
8906 + }, {
8907 + key: "componentWillUnmount",
8908 + value: function componentWillUnmount() {
8909 + document.removeEventListener('mousedown', this.closeModal, false);
8910 + }
8911 + }, {
8912 + key: "render",
8913 + value: function render() {
8914 + var _this$props = this.props,
8915 + modalProps = _this$props.modalProps,
8916 + children = _this$props.children;
8917 + return modalProps.show ? /*#__PURE__*/_react.default.createElement("div", {
8918 + className: "eps-modal__overlay",
8919 + onClick: this.closeModal
8920 + }, /*#__PURE__*/_react.default.createElement("div", {
8921 + className: "eps-modal",
8922 + ref: this.modalRef
8923 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
8924 + container: true,
8925 + className: "eps-modal__header",
8926 + justify: "space-between",
8927 + alignItems: "center"
8928 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
8929 + item: true
8930 + }, /*#__PURE__*/_react.default.createElement(_icon.default, {
8931 + className: "eps-modal__icon eicon-info-circle"
8932 + }), this.props.title), /*#__PURE__*/_react.default.createElement(_grid.default, {
8933 + item: true
8934 + }, /*#__PURE__*/_react.default.createElement("div", {
8935 + className: "eps-modal__close-wrapper",
8936 + ref: this.closeRef
8937 + }, /*#__PURE__*/_react.default.createElement(_button.default, {
8938 + text: __('Close', 'elementor'),
8939 + hideText: true,
8940 + icon: "eicon-close",
8941 + onClick: this.closeModal
8942 + })))), /*#__PURE__*/_react.default.createElement("div", {
8943 + className: "eps-modal__body"
8944 + }, children))) : null;
8945 + }
8946 + }]);
8947 + return Modal;
8948 +}(_react.default.Component);
8949 +
8950 +Modal.propTypes = {
8951 + modalProps: PropTypes.object.isRequired,
8952 + children: PropTypes.any.isRequired,
8953 + title: PropTypes.string.isRequired
8954 +};
8955 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(189)["__"]))
8956 +
8957 +/***/ }),
8958 +/* 691 */
8959 +/***/ (function(module, exports, __webpack_require__) {
8960 +
8961 +"use strict";
8962 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8963 +
8964 +var _interopRequireDefault = __webpack_require__(0);
8965 +
8966 +var _Object$defineProperty = __webpack_require__(1);
8967 +
8968 +_Object$defineProperty(exports, "__esModule", {
8969 + value: true
8970 +});
8971 +
8972 +exports.default = Select;
8973 +
8974 +var _react = _interopRequireDefault(__webpack_require__(11));
8975 +
8976 +function Select(props) {
8977 + return /*#__PURE__*/_react.default.createElement("select", {
8978 + multiple: props.multiple,
8979 + className: props.className,
8980 + value: props.value,
8981 + onChange: props.onChange,
8982 + ref: props.elRef
8983 + }, props.options.map(function (option) {
8984 + return option.children ? /*#__PURE__*/_react.default.createElement("optgroup", {
8985 + label: option.label,
8986 + key: option.label
8987 + }, option.children.map(function (childOption) {
8988 + return /*#__PURE__*/_react.default.createElement("option", {
8989 + key: childOption.value,
8990 + value: childOption.value
8991 + }, childOption.label);
8992 + })) : /*#__PURE__*/_react.default.createElement("option", {
8993 + key: option.value,
8994 + value: option.value
8995 + }, option.label);
8996 + }));
8997 +}
8998 +
8999 +Select.propTypes = {
9000 + className: PropTypes.string,
9001 + value: PropTypes.string,
9002 + onChange: PropTypes.func,
9003 + options: PropTypes.array,
9004 + elRef: PropTypes.object,
9005 + multiple: PropTypes.bool
9006 +};
9007 +Select.defaultProps = {
9008 + className: '',
9009 + options: []
9010 +};
9011 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9012 +
9013 +/***/ }),
9014 +/* 692 */
9015 +/***/ (function(module, exports, __webpack_require__) {
9016 +
9017 +"use strict";
9018 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9019 +
9020 +var _interopRequireDefault = __webpack_require__(0);
9021 +
9022 +var _Object$defineProperty = __webpack_require__(1);
9023 +
9024 +_Object$defineProperty(exports, "__esModule", {
9025 + value: true
9026 +});
9027 +
9028 +exports.default = AllPartsButton;
9029 +
9030 +var _react = _interopRequireDefault(__webpack_require__(11));
9031 +
9032 +__webpack_require__(119);
9033 +
9034 +var _menuItem = _interopRequireDefault(__webpack_require__(689));
9035 +
9036 +var _router = __webpack_require__(340);
9037 +
9038 +function AllPartsButton(props) {
9039 + var activePathname = '/site-editor/templates';
9040 + return /*#__PURE__*/_react.default.createElement(_router.Match, {
9041 + path: activePathname
9042 + }, function (_ref) {
9043 + var match = _ref.match;
9044 + var className = "eps-menu-item__link".concat(match || props.promotion ? ' eps-menu-item--active' : '');
9045 + return /*#__PURE__*/_react.default.createElement(_menuItem.default, {
9046 + text: __('All Parts', 'elementor'),
9047 + className: className,
9048 + icon: "eicon-filter",
9049 + url: props.url
9050 + });
9051 + });
9052 +}
9053 +
9054 +AllPartsButton.propTypes = {
9055 + url: PropTypes.string,
9056 + promotion: PropTypes.bool
9057 +};
9058 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
9059 +
9060 +/***/ }),
9061 +/* 693 */
9062 +/***/ (function(module, exports, __webpack_require__) {
9063 +
9064 +"use strict";
9065 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9066 +
9067 +var _interopRequireDefault = __webpack_require__(0);
9068 +
9069 +var _Object$defineProperty = __webpack_require__(1);
9070 +
9071 +_Object$defineProperty(exports, "__esModule", {
9072 + value: true
9073 +});
9074 +
9075 +exports.default = Layout;
9076 +
9077 +var _react = _interopRequireDefault(__webpack_require__(11));
9078 +
9079 +var _page = _interopRequireDefault(__webpack_require__(403));
9080 +
9081 +var _menu = _interopRequireDefault(__webpack_require__(774));
9082 +
9083 +var _templateTypes = _interopRequireDefault(__webpack_require__(412));
9084 +
9085 +__webpack_require__(777);
9086 +
9087 +function Layout(props) {
9088 + var config = {
9089 + title: __('Theme Builder', 'elementor'),
9090 + titleRedirectRoute: '/site-editor',
9091 + headerButtons: props.headerButtons,
9092 + sidebar: /*#__PURE__*/_react.default.createElement(_menu.default, {
9093 + allPartsButton: props.allPartsButton,
9094 + promotion: props.promotion
9095 + }),
9096 + content: props.children
9097 + };
9098 + return /*#__PURE__*/_react.default.createElement(_templateTypes.default, null, /*#__PURE__*/_react.default.createElement(_page.default, config));
9099 +}
9100 +
9101 +Layout.propTypes = {
9102 + headerButtons: PropTypes.arrayOf(PropTypes.object),
9103 + allPartsButton: PropTypes.element.isRequired,
9104 + children: PropTypes.object.isRequired,
9105 + promotion: PropTypes.bool
9106 +};
9107 +Layout.defaultProps = {
9108 + headerButtons: []
9109 +};
9110 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
9111 +
9112 +/***/ }),
9113 +/* 694 */
9114 +/***/ (function(module, exports, __webpack_require__) {
9115 +
9116 +"use strict";
9117 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9118 +
9119 +var _interopRequireDefault = __webpack_require__(0);
9120 +
9121 +var _Object$defineProperty = __webpack_require__(1);
9122 +
9123 +_Object$defineProperty(exports, "__esModule", {
9124 + value: true
9125 +});
9126 +
9127 +exports.default = SiteParts;
9128 +
9129 +var _react = _interopRequireDefault(__webpack_require__(11));
9130 +
9131 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
9132 +
9133 +var _button = _interopRequireDefault(__webpack_require__(238));
9134 +
9135 +var _cssGrid = _interopRequireDefault(__webpack_require__(684));
9136 +
9137 +var _modal = _interopRequireDefault(__webpack_require__(690));
9138 +
9139 +var _sitePart = _interopRequireDefault(__webpack_require__(695));
9140 +
9141 +var _templateTypes = __webpack_require__(412);
9142 +
9143 +var InfoButton = function InfoButton(props) {
9144 + var toggleButtonProps = {
9145 + text: __('Info', 'elementor'),
9146 + hideText: true,
9147 + icon: 'eicon-info-circle e-site-part__info-toggle'
9148 + };
9149 + return /*#__PURE__*/_react.default.createElement(_modal.default, {
9150 + toggleButtonProps: toggleButtonProps,
9151 + title: props.title
9152 + }, /*#__PURE__*/_react.default.createElement(_cssGrid.default, {
9153 + columns: 2,
9154 + spacing: 60
9155 + }, /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h3", null, props.type), /*#__PURE__*/_react.default.createElement("p", null, props.content, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_button.default, {
9156 + text: __('Learn More', 'elementor'),
9157 + color: "link",
9158 + target: "_blank",
9159 + url: props.docs
9160 + })), /*#__PURE__*/_react.default.createElement("div", {
9161 + className: "eps-modal__tip"
9162 + }, /*#__PURE__*/_react.default.createElement("h3", null, __('Tip', 'elementor')), /*#__PURE__*/_react.default.createElement("p", null, props.tip))), /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h3", null, __('Watch Video', 'elementor')), /*#__PURE__*/_react.default.createElement("div", {
9163 + className: "video-wrapper"
9164 + }, /*#__PURE__*/_react.default.createElement("iframe", {
9165 + id: "ytplayer",
9166 + src: props.video_url,
9167 + frameBorder: "0"
9168 + })))));
9169 +};
9170 +
9171 +InfoButton.propTypes = {
9172 + content: PropTypes.string.isRequired,
9173 + docs: PropTypes.string.isRequired,
9174 + tip: PropTypes.string.isRequired,
9175 + title: PropTypes.string.isRequired,
9176 + type: PropTypes.string.isRequired,
9177 + video_url: PropTypes.string.isRequired
9178 +};
9179 +
9180 +function SiteParts(props) {
9181 + var _React$useContext = _react.default.useContext(_templateTypes.Context),
9182 + templateTypes = _React$useContext.templateTypes;
9183 +
9184 + return /*#__PURE__*/_react.default.createElement(_cssGrid.default, {
9185 + className: "e-site-editor__site-parts",
9186 + colMinWidth: 200,
9187 + spacing: 25
9188 + }, templateTypes.map(function (item) {
9189 + return /*#__PURE__*/_react.default.createElement(_sitePart.default, (0, _extends2.default)({
9190 + className: "e-site-editor__site-part",
9191 + actionButton: /*#__PURE__*/_react.default.createElement(InfoButton, (0, _extends2.default)({
9192 + type: item.title
9193 + }, item.tooltip_data)),
9194 + thumbnail: item.urls.thumbnail,
9195 + key: item.type
9196 + }, item), _react.default.createElement(props.hoverElement, item));
9197 + }));
9198 +}
9199 +
9200 +SiteParts.propTypes = {
9201 + hoverElement: PropTypes.func.isRequired
9202 +};
9203 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
9204 +
9205 +/***/ }),
9206 +/* 695 */
9207 +/***/ (function(module, exports, __webpack_require__) {
9208 +
9209 +"use strict";
9210 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9211 +
9212 +var _interopRequireDefault = __webpack_require__(0);
9213 +
9214 +var _Object$defineProperty = __webpack_require__(1);
9215 +
9216 +_Object$defineProperty(exports, "__esModule", {
9217 + value: true
9218 +});
9219 +
9220 +exports.default = SitePart;
9221 +
9222 +var _react = _interopRequireDefault(__webpack_require__(11));
9223 +
9224 +var _card = _interopRequireDefault(__webpack_require__(679));
9225 +
9226 +var _cardHeader = _interopRequireDefault(__webpack_require__(682));
9227 +
9228 +var _cardBody = _interopRequireDefault(__webpack_require__(680));
9229 +
9230 +var _cardImage = _interopRequireDefault(__webpack_require__(681));
9231 +
9232 +var _heading = _interopRequireDefault(__webpack_require__(336));
9233 +
9234 +__webpack_require__(780);
9235 +
9236 +function SitePart(props) {
9237 + return /*#__PURE__*/_react.default.createElement(_card.default, {
9238 + className: "e-site-part"
9239 + }, /*#__PURE__*/_react.default.createElement(_cardHeader.default, null, /*#__PURE__*/_react.default.createElement(_heading.default, {
9240 + tag: "h1",
9241 + variant: "text-sm",
9242 + className: "eps-card__headline"
9243 + }, props.title), props.actionButton), /*#__PURE__*/_react.default.createElement(_cardBody.default, null, /*#__PURE__*/_react.default.createElement(_cardImage.default, {
9244 + alt: props.title,
9245 + src: props.thumbnail
9246 + }, props.children)));
9247 +}
9248 +
9249 +SitePart.propTypes = {
9250 + thumbnail: PropTypes.string.isRequired,
9251 + title: PropTypes.string.isRequired,
9252 + children: PropTypes.object,
9253 + showIndicator: PropTypes.bool,
9254 + actionButton: PropTypes.object
9255 +};
9256 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9257 +
9258 +/***/ }),
9259 +/* 696 */
9260 +/***/ (function(module, exports, __webpack_require__) {
9261 +
9262 +"use strict";
9263 +/* WEBPACK VAR INJECTION */(function(__) {
9264 +
9265 +var _interopRequireDefault = __webpack_require__(0);
9266 +
9267 +var _Object$defineProperty = __webpack_require__(1);
9268 +
9269 +_Object$defineProperty(exports, "__esModule", {
9270 + value: true
9271 +});
9272 +
9273 +exports.default = NotFound;
9274 +
9275 +var _react = _interopRequireDefault(__webpack_require__(11));
9276 +
9277 +__webpack_require__(80);
9278 +
9279 +var _dialog = _interopRequireDefault(__webpack_require__(404));
9280 +
9281 +function NotFound() {
9282 + var url = _react.default.useMemo(function () {
9283 + var _elementorAppConfig$m;
9284 +
9285 + return ((_elementorAppConfig$m = elementorAppConfig.menu_url.split('#')) === null || _elementorAppConfig$m === void 0 ? void 0 : _elementorAppConfig$m[1]) || '/site-editor';
9286 + }, []);
9287 +
9288 + return /*#__PURE__*/_react.default.createElement(_dialog.default, {
9289 + title: __('Theme Builder could not be loaded', 'elementor'),
9290 + text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'),
9291 + approveButtonUrl: "https://go.elementor.com/app-theme-builder-load-issue",
9292 + approveButtonColor: "link",
9293 + approveButtonTarget: "_blank",
9294 + approveButtonText: __('Learn More', 'elementor'),
9295 + dismissButtonText: __('Go Back', 'elementor'),
9296 + dismissButtonUrl: url
9297 + });
9298 +}
9299 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"]))
9300 +
9301 +/***/ }),
9302 +/* 697 */,
9303 +/* 698 */,
9304 +/* 699 */,
9305 +/* 700 */,
9306 +/* 701 */,
9307 +/* 702 */,
9308 +/* 703 */,
9309 +/* 704 */,
9310 +/* 705 */,
9311 +/* 706 */,
9312 +/* 707 */,
9313 +/* 708 */,
9314 +/* 709 */,
9315 +/* 710 */,
9316 +/* 711 */,
9317 +/* 712 */,
9318 +/* 713 */,
9319 +/* 714 */,
9320 +/* 715 */,
9321 +/* 716 */,
9322 +/* 717 */,
9323 +/* 718 */,
9324 +/* 719 */,
9325 +/* 720 */,
9326 +/* 721 */,
9327 +/* 722 */,
9328 +/* 723 */,
9329 +/* 724 */,
9330 +/* 725 */,
9331 +/* 726 */,
9332 +/* 727 */,
9333 +/* 728 */,
9334 +/* 729 */,
9335 +/* 730 */,
9336 +/* 731 */,
9337 +/* 732 */,
9338 +/* 733 */,
9339 +/* 734 */,
9340 +/* 735 */,
9341 +/* 736 */,
9342 +/* 737 */,
9343 +/* 738 */,
9344 +/* 739 */,
9345 +/* 740 */,
9346 +/* 741 */,
9347 +/* 742 */,
9348 +/* 743 */,
9349 +/* 744 */,
9350 +/* 745 */,
9351 +/* 746 */,
9352 +/* 747 */,
9353 +/* 748 */,
9354 +/* 749 */,
9355 +/* 750 */,
9356 +/* 751 */,
9357 +/* 752 */,
9358 +/* 753 */,
9359 +/* 754 */,
9360 +/* 755 */,
9361 +/* 756 */
9362 +/***/ (function(module, exports, __webpack_require__) {
9363 +
9364 +"use strict";
9365 +
9366 +
9367 +var _interopRequireDefault = __webpack_require__(0);
9368 +
9369 +var _router = _interopRequireDefault(__webpack_require__(757));
9370 +
9371 +var _package = _interopRequireDefault(__webpack_require__(758));
9372 +
9373 +var _package2 = _interopRequireDefault(__webpack_require__(773));
9374 +
9375 +/**
9376 + * Temporary solution for share components.
9377 + * TODO.
9378 + */
9379 +// Make router available for use within packages.
9380 +// Alphabetical order.
9381 +window.elementorAppPackages = {
9382 + appUi: _package.default,
9383 + router: _router.default,
9384 + siteEditor: _package2.default
9385 +};
9386 +
9387 +/***/ }),
9388 +/* 757 */
9389 +/***/ (function(module, exports, __webpack_require__) {
9390 +
9391 +"use strict";
9392 +/* WEBPACK VAR INJECTION */(function(React) {
9393 +
9394 +var _interopRequireDefault = __webpack_require__(0);
9395 +
9396 +var _Object$defineProperty = __webpack_require__(1);
9397 +
9398 +_Object$defineProperty(exports, "__esModule", {
9399 + value: true
9400 +});
9401 +
9402 +exports.default = void 0;
9403 +
9404 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9405 +
9406 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9407 +
9408 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
9409 +
9410 +/**
9411 + * App Router
9412 + *
9413 + * TODO: Temporary solution for routing extensibility.
9414 + */
9415 +var Router = /*#__PURE__*/function () {
9416 + function Router() {
9417 + (0, _classCallCheck2.default)(this, Router);
9418 + (0, _defineProperty2.default)(this, "routes", []);
9419 + (0, _defineProperty2.default)(this, "history", null);
9420 + }
9421 +
9422 + (0, _createClass2.default)(Router, [{
9423 + key: "addRoute",
9424 +
9425 + /**
9426 + *
9427 + * @param route {{
9428 + * path: string,
9429 + * component: object,
9430 + * props: object,
9431 + * }}
9432 + */
9433 + value: function addRoute(route) {
9434 + this.routes.push(route);
9435 + }
9436 + }, {
9437 + key: "getRoutes",
9438 + value: function getRoutes() {
9439 + return this.routes.map(function (route) {
9440 + var props = route.props || {}; // Use the path as a key, and add it as a prop.
9441 +
9442 + props.path = props.key = route.path;
9443 + return React.createElement(route.component, props);
9444 + });
9445 + }
9446 + }]);
9447 + return Router;
9448 +}();
9449 +
9450 +var router = new Router(); // Make router available for use within packages.
9451 +
9452 +window.elementorAppPackages = {
9453 + router: router
9454 +};
9455 +var _default = router;
9456 +exports.default = _default;
9457 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(11)))
9458 +
9459 +/***/ }),
9460 +/* 758 */
9461 +/***/ (function(module, exports, __webpack_require__) {
9462 +
9463 +"use strict";
9464 +
9465 +
9466 +var _interopRequireDefault = __webpack_require__(0);
9467 +
9468 +var _Object$defineProperty = __webpack_require__(1);
9469 +
9470 +_Object$defineProperty(exports, "__esModule", {
9471 + value: true
9472 +});
9473 +
9474 +exports.default = void 0;
9475 +
9476 +var _addNewButton = _interopRequireDefault(__webpack_require__(678));
9477 +
9478 +var _button = _interopRequireDefault(__webpack_require__(238));
9479 +
9480 +var _card = _interopRequireDefault(__webpack_require__(679));
9481 +
9482 +var _cardBody = _interopRequireDefault(__webpack_require__(680));
9483 +
9484 +var _cardFooter = _interopRequireDefault(__webpack_require__(760));
9485 +
9486 +var _cardImage = _interopRequireDefault(__webpack_require__(681));
9487 +
9488 +var _cardHeader = _interopRequireDefault(__webpack_require__(682));
9489 +
9490 +var _cardOverlay = _interopRequireDefault(__webpack_require__(683));
9491 +
9492 +var _cssGrid = _interopRequireDefault(__webpack_require__(684));
9493 +
9494 +var _dialog = _interopRequireDefault(__webpack_require__(404));
9495 +
9496 +var _dragDrop = _interopRequireDefault(__webpack_require__(686));
9497 +
9498 +var _dropZone = _interopRequireDefault(__webpack_require__(763));
9499 +
9500 +var _errorBoundary = _interopRequireDefault(__webpack_require__(649));
9501 +
9502 +var _heading = _interopRequireDefault(__webpack_require__(336));
9503 +
9504 +var _grid = _interopRequireDefault(__webpack_require__(346));
9505 +
9506 +var _icon = _interopRequireDefault(__webpack_require__(345));
9507 +
9508 +var _menu = _interopRequireDefault(__webpack_require__(688));
9509 +
9510 +var _menuItem = _interopRequireDefault(__webpack_require__(689));
9511 +
9512 +var _modal = _interopRequireDefault(__webpack_require__(690));
9513 +
9514 +var _notFound = _interopRequireDefault(__webpack_require__(640));
9515 +
9516 +var _page = _interopRequireDefault(__webpack_require__(403));
9517 +
9518 +var _popover = _interopRequireDefault(__webpack_require__(769));
9519 +
9520 +var _select = _interopRequireDefault(__webpack_require__(691));
9521 +
9522 +var _select2 = _interopRequireDefault(__webpack_require__(771));
9523 +
9524 +var _text = _interopRequireDefault(__webpack_require__(347));
9525 +
9526 +var _uploadFile = _interopRequireDefault(__webpack_require__(687));
9527 +
9528 +// Alphabetical order.
9529 +var _default = {
9530 + AddNewButton: _addNewButton.default,
9531 + Button: _button.default,
9532 + Card: _card.default,
9533 + CardBody: _cardBody.default,
9534 + CardFooter: _cardFooter.default,
9535 + CardHeader: _cardHeader.default,
9536 + CardImage: _cardImage.default,
9537 + CardOverlay: _cardOverlay.default,
9538 + CssGrid: _cssGrid.default,
9539 + Dialog: _dialog.default,
9540 + DragDrop: _dragDrop.default,
9541 + DropZone: _dropZone.default,
9542 + ErrorBoundary: _errorBoundary.default,
9543 + Heading: _heading.default,
9544 + Grid: _grid.default,
9545 + Icon: _icon.default,
9546 + Menu: _menu.default,
9547 + MenuItem: _menuItem.default,
9548 + ModalProvider: _modal.default,
9549 + NotFound: _notFound.default,
9550 + Page: _page.default,
9551 + Popover: _popover.default,
9552 + Select: _select.default,
9553 + Select2: _select2.default,
9554 + Text: _text.default,
9555 + UploadFile: _uploadFile.default
9556 +};
9557 +exports.default = _default;
9558 +
9559 +/***/ }),
9560 +/* 759 */
9561 +/***/ (function(module, exports) {
9562 +
9563 +
9564 +
9565 +/***/ }),
9566 +/* 760 */
9567 +/***/ (function(module, exports, __webpack_require__) {
9568 +
9569 +"use strict";
9570 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9571 +
9572 +var _interopRequireDefault = __webpack_require__(0);
9573 +
9574 +var _Object$defineProperty = __webpack_require__(1);
9575 +
9576 +_Object$defineProperty(exports, "__esModule", {
9577 + value: true
9578 +});
9579 +
9580 +exports.default = CardFooter;
9581 +
9582 +var _react = _interopRequireDefault(__webpack_require__(11));
9583 +
9584 +__webpack_require__(348);
9585 +
9586 +function CardFooter(props) {
9587 + return /*#__PURE__*/_react.default.createElement("footer", {
9588 + className: "eps-card__footer ".concat(props.className)
9589 + }, props.children);
9590 +}
9591 +
9592 +CardFooter.propTypes = {
9593 + className: PropTypes.string,
9594 + children: PropTypes.object.isRequired
9595 +};
9596 +CardFooter.defaultProps = {
9597 + className: ''
9598 +};
9599 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9600 +
9601 +/***/ }),
9602 +/* 761 */
9603 +/***/ (function(module, exports) {
9604 +
9605 +
9606 +
9607 +/***/ }),
9608 +/* 762 */
9609 +/***/ (function(module, exports) {
9610 +
9611 +
9612 +
9613 +/***/ }),
9614 +/* 763 */
9615 +/***/ (function(module, exports, __webpack_require__) {
9616 +
9617 +"use strict";
9618 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9619 +
9620 +var _interopRequireDefault = __webpack_require__(0);
9621 +
9622 +var _Object$defineProperty = __webpack_require__(1);
9623 +
9624 +_Object$defineProperty(exports, "__esModule", {
9625 + value: true
9626 +});
9627 +
9628 +exports.default = DropZone;
9629 +
9630 +var _react = _interopRequireDefault(__webpack_require__(11));
9631 +
9632 +var _extends2 = _interopRequireDefault(__webpack_require__(187));
9633 +
9634 +var _uploadFile = _interopRequireDefault(__webpack_require__(687));
9635 +
9636 +var _dragDrop = _interopRequireDefault(__webpack_require__(686));
9637 +
9638 +var _icon = _interopRequireDefault(__webpack_require__(345));
9639 +
9640 +var _heading = _interopRequireDefault(__webpack_require__(336));
9641 +
9642 +var _text = _interopRequireDefault(__webpack_require__(347));
9643 +
9644 +__webpack_require__(765);
9645 +
9646 +function DropZone(props) {
9647 + var dragDropEvents = {
9648 + onDrop: function onDrop(event) {
9649 + if (!props.isLoading) {
9650 + props.onFileSelect(event.dataTransfer.files, event);
9651 + }
9652 + }
9653 + };
9654 + return /*#__PURE__*/_react.default.createElement("section", {
9655 + className: "e-app-drop-zone"
9656 + }, /*#__PURE__*/_react.default.createElement(_dragDrop.default, (0, _extends2.default)({}, dragDropEvents, {
9657 + isLoading: props.isLoading
9658 + }), props.icon && /*#__PURE__*/_react.default.createElement(_icon.default, {
9659 + className: "e-app-drop-zone__icon ".concat(props.icon)
9660 + }), props.heading && /*#__PURE__*/_react.default.createElement(_heading.default, {
9661 + variant: "display-3"
9662 + }, props.heading), props.text && /*#__PURE__*/_react.default.createElement(_text.default, {
9663 + variant: "xl"
9664 + }, props.text), props.secondaryText && /*#__PURE__*/_react.default.createElement(_text.default, {
9665 + variant: "xl"
9666 + }, props.secondaryText), props.showButton && /*#__PURE__*/_react.default.createElement(_uploadFile.default, {
9667 + isLoading: props.isLoading,
9668 + onFileSelect: props.onFileSelect,
9669 + text: props.buttonText
9670 + })));
9671 +}
9672 +
9673 +DropZone.propTypes = {
9674 + className: PropTypes.string,
9675 + children: PropTypes.any,
9676 + onFileSelect: PropTypes.func,
9677 + heading: PropTypes.string,
9678 + text: PropTypes.string,
9679 + secondaryText: PropTypes.string,
9680 + buttonText: PropTypes.string,
9681 + icon: PropTypes.string,
9682 + showButton: PropTypes.bool,
9683 + showIcon: PropTypes.bool,
9684 + isLoading: PropTypes.bool
9685 +};
9686 +DropZone.defaultProps = {
9687 + className: '',
9688 + icon: 'eicon-library-upload',
9689 + showButton: true,
9690 + showIcon: true
9691 +};
9692 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9693 +
9694 +/***/ }),
9695 +/* 764 */
9696 +/***/ (function(module, exports) {
9697 +
9698 +
9699 +
9700 +/***/ }),
9701 +/* 765 */
9702 +/***/ (function(module, exports) {
9703 +
9704 +
9705 +
9706 +/***/ }),
9707 +/* 766 */
9708 +/***/ (function(module, exports) {
9709 +
9710 +
9711 +
9712 +/***/ }),
9713 +/* 767 */
9714 +/***/ (function(module, exports) {
9715 +
9716 +
9717 +
9718 +/***/ }),
9719 +/* 768 */
9720 +/***/ (function(module, exports) {
9721 +
9722 +
9723 +
9724 +/***/ }),
9725 +/* 769 */
9726 +/***/ (function(module, exports, __webpack_require__) {
9727 +
9728 +"use strict";
9729 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9730 +
9731 +var _interopRequireDefault = __webpack_require__(0);
9732 +
9733 +var _Object$defineProperty = __webpack_require__(1);
9734 +
9735 +_Object$defineProperty(exports, "__esModule", {
9736 + value: true
9737 +});
9738 +
9739 +exports.default = Popover;
9740 +
9741 +var _react = _interopRequireDefault(__webpack_require__(11));
9742 +
9743 +__webpack_require__(770);
9744 +
9745 +function Popover(props) {
9746 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
9747 + className: "eps-popover__background",
9748 + onClick: props.closeFunction
9749 + }), /*#__PURE__*/_react.default.createElement("ul", {
9750 + className: "eps-popover ".concat(props.className),
9751 + onClick: props.closeFunction
9752 + }, props.children));
9753 +}
9754 +
9755 +Popover.propTypes = {
9756 + children: PropTypes.any.isRequired,
9757 + className: PropTypes.string,
9758 + closeFunction: PropTypes.func
9759 +};
9760 +Popover.defaultProps = {
9761 + className: ''
9762 +};
9763 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9764 +
9765 +/***/ }),
9766 +/* 770 */
9767 +/***/ (function(module, exports) {
9768 +
9769 +
9770 +
9771 +/***/ }),
9772 +/* 771 */
9773 +/***/ (function(module, exports, __webpack_require__) {
9774 +
9775 +"use strict";
9776 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9777 +
9778 +var _interopRequireDefault = __webpack_require__(0);
9779 +
9780 +var _Object$defineProperty = __webpack_require__(1);
9781 +
9782 +_Object$defineProperty(exports, "__esModule", {
9783 + value: true
9784 +});
9785 +
9786 +exports.default = Select2;
9787 +
9788 +var _react = _interopRequireDefault(__webpack_require__(11));
9789 +
9790 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(212));
9791 +
9792 +var _select = _interopRequireDefault(__webpack_require__(691));
9793 +
9794 +__webpack_require__(772);
9795 +
9796 +/**
9797 + * Default settings of the select 2
9798 + *
9799 + * @returns {{placeholder: string, allowClear: boolean, dir: string}}
9800 + */
9801 +var getDefaultSettings = function getDefaultSettings() {
9802 + return {
9803 + allowClear: true,
9804 + placeholder: '',
9805 + dir: elementorCommon.config.isRTL ? 'rtl' : 'ltr'
9806 + };
9807 +};
9808 +/**
9809 + * Main component
9810 + *
9811 + * @param props
9812 + * @returns {*}
9813 + * @constructor
9814 + */
9815 +
9816 +
9817 +function Select2(props) {
9818 + var ref = _react.default.useRef(null); // Initiate the select 2 library, call to onReady after initiate, and
9819 + // listen to select event on the select instance.
9820 +
9821 +
9822 + _react.default.useEffect(function () {
9823 + var $select2 = jQuery(ref.current).select2((0, _objectSpread2.default)((0, _objectSpread2.default)({}, getDefaultSettings()), props.settings)).on('select2:select select2:unselect', props.onChange);
9824 +
9825 + if (props.onReady) {
9826 + props.onReady($select2);
9827 + }
9828 +
9829 + return function () {
9830 + $select2.select2('destroy').off('select2:select select2:unselect');
9831 + };
9832 + }, [props.settings, props.options]); // Listen to changes in the prop `value`, if changed update the select 2.
9833 +
9834 +
9835 + _react.default.useEffect(function () {
9836 + jQuery(ref.current).val(props.value).trigger('change');
9837 + }, [props.value]);
9838 +
9839 + return /*#__PURE__*/_react.default.createElement(_select.default, {
9840 + multiple: props.multiple,
9841 + value: props.value,
9842 + onChange: props.onChange,
9843 + elRef: ref,
9844 + options: props.options
9845 + });
9846 +}
9847 +
9848 +Select2.propTypes = {
9849 + value: PropTypes.string,
9850 + onChange: PropTypes.func,
9851 + onReady: PropTypes.func,
9852 + options: PropTypes.array,
9853 + settings: PropTypes.object,
9854 + multiple: PropTypes.bool
9855 +};
9856 +Select2.defaultProps = {
9857 + settings: {},
9858 + options: [],
9859 + dependencies: []
9860 +};
9861 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9862 +
9863 +/***/ }),
9864 +/* 772 */
9865 +/***/ (function(module, exports) {
9866 +
9867 +
9868 +
9869 +/***/ }),
9870 +/* 773 */
9871 +/***/ (function(module, exports, __webpack_require__) {
9872 +
9873 +"use strict";
9874 +
9875 +
9876 +var _interopRequireDefault = __webpack_require__(0);
9877 +
9878 +var _Object$defineProperty = __webpack_require__(1);
9879 +
9880 +_Object$defineProperty(exports, "__esModule", {
9881 + value: true
9882 +});
9883 +
9884 +exports.default = void 0;
9885 +
9886 +var _allPartsButton = _interopRequireDefault(__webpack_require__(692));
9887 +
9888 +var _layout = _interopRequireDefault(__webpack_require__(693));
9889 +
9890 +var _module = _interopRequireDefault(__webpack_require__(778));
9891 +
9892 +var _notFound = _interopRequireDefault(__webpack_require__(696));
9893 +
9894 +var _siteParts = _interopRequireDefault(__webpack_require__(694));
9895 +
9896 +var _sitePart = _interopRequireDefault(__webpack_require__(695));
9897 +
9898 +var _templateTypes = __webpack_require__(412);
9899 +
9900 +// Alphabetical order.
9901 +var _default = {
9902 + AllPartsButton: _allPartsButton.default,
9903 + Layout: _layout.default,
9904 + Module: _module.default,
9905 + NotFound: _notFound.default,
9906 + SitePart: _sitePart.default,
9907 + SiteParts: _siteParts.default,
9908 + TemplateTypesContext: _templateTypes.Context
9909 +};
9910 +exports.default = _default;
9911 +
9912 +/***/ }),
9913 +/* 774 */
9914 +/***/ (function(module, exports, __webpack_require__) {
9915 +
9916 +"use strict";
9917 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9918 +
9919 +var _interopRequireDefault = __webpack_require__(0);
9920 +
9921 +var _Object$defineProperty = __webpack_require__(1);
9922 +
9923 +_Object$defineProperty(exports, "__esModule", {
9924 + value: true
9925 +});
9926 +
9927 +exports.default = Menu;
9928 +
9929 +var _react = _interopRequireDefault(__webpack_require__(11));
9930 +
9931 +var _menu = _interopRequireDefault(__webpack_require__(688));
9932 +
9933 +var _templateTypes = __webpack_require__(412);
9934 +
9935 +var _button = _interopRequireDefault(__webpack_require__(238));
9936 +
9937 +var _addNewButton = _interopRequireDefault(__webpack_require__(678));
9938 +
9939 +__webpack_require__(776);
9940 +
9941 +function Menu(props) {
9942 + var _React$useContext = _react.default.useContext(_templateTypes.Context),
9943 + templateTypes = _React$useContext.templateTypes,
9944 + actionButton = function actionButton(itemProps) {
9945 + var className = 'eps-menu-item__action-button';
9946 +
9947 + if (props.promotion) {
9948 + return /*#__PURE__*/_react.default.createElement(_button.default, {
9949 + text: __('Go Pro', 'elementor'),
9950 + hideText: true,
9951 + icon: "eicon-lock",
9952 + className: className
9953 + });
9954 + }
9955 +
9956 + var goToCreate = function goToCreate() {
9957 + location.href = itemProps.urls.create;
9958 + };
9959 +
9960 + return /*#__PURE__*/_react.default.createElement("span", {
9961 + className: className
9962 + }, /*#__PURE__*/_react.default.createElement(_addNewButton.default, {
9963 + hideText: true,
9964 + size: "sm",
9965 + onClick: function onClick() {
9966 + return goToCreate();
9967 + }
9968 + }));
9969 + };
9970 +
9971 + return /*#__PURE__*/_react.default.createElement(_menu.default, {
9972 + menuItems: templateTypes,
9973 + actionButton: actionButton,
9974 + promotion: props.promotion
9975 + }, props.allPartsButton, /*#__PURE__*/_react.default.createElement("div", {
9976 + className: "eps-menu__title"
9977 + }, __('Site Parts', 'elementor')));
9978 +}
9979 +
9980 +Menu.propTypes = {
9981 + allPartsButton: PropTypes.element.isRequired,
9982 + promotion: PropTypes.bool
9983 +};
9984 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
9985 +
9986 +/***/ }),
9987 +/* 775 */
9988 +/***/ (function(module, exports) {
9989 +
9990 +
9991 +
9992 +/***/ }),
9993 +/* 776 */
9994 +/***/ (function(module, exports) {
9995 +
9996 +
9997 +
9998 +/***/ }),
9999 +/* 777 */
10000 +/***/ (function(module, exports) {
10001 +
10002 +
10003 +
10004 +/***/ }),
10005 +/* 778 */
10006 +/***/ (function(module, exports, __webpack_require__) {
10007 +
10008 +"use strict";
10009 +/* WEBPACK VAR INJECTION */(function(__) {
10010 +
10011 +var _interopRequireDefault = __webpack_require__(0);
10012 +
10013 +var _Object$defineProperty = __webpack_require__(1);
10014 +
10015 +_Object$defineProperty(exports, "__esModule", {
10016 + value: true
10017 +});
10018 +
10019 +exports.default = void 0;
10020 +
10021 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10022 +
10023 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10024 +
10025 +var _router = _interopRequireDefault(__webpack_require__(344));
10026 +
10027 +var _promotion = _interopRequireDefault(__webpack_require__(779));
10028 +
10029 +var _notFound = _interopRequireDefault(__webpack_require__(696));
10030 +
10031 +var SiteEditor = /*#__PURE__*/function () {
10032 + function SiteEditor() {
10033 + (0, _classCallCheck2.default)(this, SiteEditor);
10034 + this.saveTemplateTypesToCache();
10035 +
10036 + _router.default.addRoute({
10037 + path: '/site-editor/promotion',
10038 + component: _promotion.default
10039 + });
10040 +
10041 + _router.default.addRoute({
10042 + path: '/site-editor/*',
10043 + component: _notFound.default
10044 + });
10045 + }
10046 +
10047 + (0, _createClass2.default)(SiteEditor, [{
10048 + key: "saveTemplateTypesToCache",
10049 + value: function saveTemplateTypesToCache() {
10050 + var types = this.getTypes();
10051 + elementorCommon.ajax.addRequestCache({
10052 + unique_id: 'app_site_editor_template_types'
10053 + }, types);
10054 + }
10055 + }, {
10056 + key: "getTypes",
10057 + value: function getTypes() {
10058 + return [{
10059 + type: 'header',
10060 + icon: 'eicon-header',
10061 + title: __('Header', 'elementor'),
10062 + urls: {
10063 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/header.svg'
10064 + },
10065 + tooltip_data: {
10066 + title: __('What is a Header Template?', 'elementor'),
10067 + content: __('The header template allows you to easily design and edit custom WordPress headers so you are no longer constrained by your theme’s header design limitations.', 'elementor'),
10068 + tip: __('You can create multiple headers, and assign each to different areas of your site.', 'elementor'),
10069 + docs: 'https://go.elementor.com/app-theme-builder-header',
10070 + video_url: 'https://www.youtube.com/embed/HHy5RK6W-6I'
10071 + }
10072 + }, {
10073 + type: 'footer',
10074 + icon: 'eicon-footer',
10075 + title: __('Footer', 'elementor'),
10076 + urls: {
10077 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/footer.svg'
10078 + },
10079 + tooltip_data: {
10080 + title: __('What is a Footer Template?', 'elementor'),
10081 + content: __('The footer template allows you to easily design and edit custom WordPress footers without the limits of your theme’s footer design constraints', 'elementor'),
10082 + tip: __('You can create multiple footers, and assign each to different areas of your site.', 'elementor'),
10083 + docs: 'https://go.elementor.com/app-theme-builder-footer',
10084 + video_url: 'https://www.youtube.com/embed/xa8DoR4tQrY'
10085 + }
10086 + }, {
10087 + type: 'single-page',
10088 + icon: 'eicon-single-page',
10089 + title: __('Single Page', 'elementor'),
10090 + urls: {
10091 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-page.svg'
10092 + },
10093 + tooltip_data: {
10094 + title: __('What is a Single Page Template?', 'elementor'),
10095 + content: __('A single page template allows you to easily create the layout and style of pages, ensuring design consistency across all the pages of your site.', 'elementor'),
10096 + tip: __('You can create multiple global page templates, and assign each to different areas of your site.', 'elementor'),
10097 + docs: 'https://go.elementor.com/app-theme-builder-page',
10098 + video_url: 'https://www.youtube.com/embed/_y5eZ60lVoY'
10099 + }
10100 + }, {
10101 + type: 'single-post',
10102 + icon: 'eicon-single-post',
10103 + title: __('Single Post', 'elementor'),
10104 + urls: {
10105 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-post.svg'
10106 + },
10107 + tooltip_data: {
10108 + title: __('What is a Single Post Template?', 'elementor'),
10109 + content: __('A single post template allows you to easily design the layout and style of posts, ensuring a design consistency throughout all your blog posts, for example.', 'elementor'),
10110 + tip: __('You can create multiple global post templates, and assign each to a different category.', 'elementor'),
10111 + docs: 'https://go.elementor.com/app-theme-builder-post',
10112 + video_url: 'https://www.youtube.com/embed/8Fk-Edu7DL0'
10113 + }
10114 + }, {
10115 + type: 'archive',
10116 + icon: 'eicon-archive',
10117 + title: __('Archive', 'elementor'),
10118 + urls: {
10119 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/archive.svg'
10120 + },
10121 + tooltip_data: {
10122 + title: __('What is an Archive Template?', 'elementor'),
10123 + content: __('An archive template allows you to easily design the layout and style of archive pages - those pages that show a list of posts (e.g. a blog’s list of recent posts), which may be filtered by terms such as authors, categories, tags, search results, etc.', 'elementor'),
10124 + tip: __('If you’d like a different style for a specific category, it’s easy to create a separate global archive template whose condition is to only display when users are viewing that category’s list of posts.', 'elementor'),
10125 + docs: 'https://go.elementor.com/app-theme-builder-archive',
10126 + video_url: 'https://www.youtube.com/embed/wxElpEh9bfA'
10127 + }
10128 + }, {
10129 + type: 'search-results',
10130 + icon: 'eicon-search-results',
10131 + title: __('Search Results', 'elementor'),
10132 + urls: {
10133 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/search-results.svg'
10134 + },
10135 + tooltip_data: {
10136 + title: __('What is a Search Results Template?', 'elementor'),
10137 + content: __('You can easily control the layout and design of the Search Results page with the Search Results template, which is simply a special archive template just for displaying search results.', 'elementor'),
10138 + tip: __('You can customize the message if there are no results for the search term.', 'elementor'),
10139 + docs: 'https://go.elementor.com/app-theme-builder-search-results',
10140 + video_url: 'https://www.youtube.com/embed/KKkIU_L5sDo'
10141 + }
10142 + }, {
10143 + type: 'product',
10144 + icon: 'eicon-single-product',
10145 + title: __('Product', 'elementor'),
10146 + urls: {
10147 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/product.svg'
10148 + },
10149 + tooltip_data: {
10150 + title: __('What is a Single Product Template?', 'elementor'),
10151 + content: __('A single product template allows you to easily design the layout and style of WooCommerce single product pages, and apply that template to various conditions that you assign.', 'elementor'),
10152 + tip: __('You can create multiple global product templates, and assign each to different types of products, enabling a custom design for each group of similar products.', 'elementor'),
10153 + docs: 'https://go.elementor.com/app-theme-builder-product',
10154 + video_url: 'https://www.youtube.com/embed/PjhoB1RWkBM'
10155 + }
10156 + }, {
10157 + type: 'products',
10158 + icon: 'eicon-products',
10159 + title: __('Products Archive', 'elementor'),
10160 + urls: {
10161 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/products.svg'
10162 + },
10163 + tooltip_data: {
10164 + title: __('What is a Products Archive Template?', 'elementor'),
10165 + content: __('A products archive template allows you to easily design the layout and style of your WooCommerce shop page or other product archive pages - those pages that show a list of products, which may be filtered by terms such as categories, tags, etc.', 'elementor'),
10166 + tip: __('You can create multiple global archive product templates, and assign each to different categories of products. This gives you the freedom to customize the appearance for each type of product being shown.', 'elementor'),
10167 + docs: 'https://go.elementor.com/app-theme-builder-products-archive',
10168 + video_url: 'https://www.youtube.com/embed/F2gyAeZdU9s'
10169 + }
10170 + }, {
10171 + type: 'error-404',
10172 + icon: 'eicon-error-404',
10173 + title: __('Error 404', 'elementor'),
10174 + urls: {
10175 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/error-404.svg'
10176 + },
10177 + tooltip_data: {
10178 + title: __('What is a 404 Page Template?', 'elementor'),
10179 + content: __('A 404 page template allows you to easily design the layout and style of the page that is displayed when a visitor arrives at a page that does not exist.', 'elementor'),
10180 + tip: __('Keep your site\'s visitors happy when they get lost by displaying your recent posts, a search bar, or any information that might help the user find what they were looking for.', 'elementor'),
10181 + docs: 'https://go.elementor.com/app-theme-builder-404',
10182 + video_url: 'https://www.youtube.com/embed/ACCNp9tBMQg'
10183 + }
10184 + }];
10185 + }
10186 + }]);
10187 + return SiteEditor;
10188 +}();
10189 +
10190 +exports.default = SiteEditor;
10191 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"]))
10192 +
10193 +/***/ }),
10194 +/* 779 */
10195 +/***/ (function(module, exports, __webpack_require__) {
10196 +
10197 +"use strict";
10198 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
10199 +
10200 +var _interopRequireDefault = __webpack_require__(0);
10201 +
10202 +var _Object$defineProperty = __webpack_require__(1);
10203 +
10204 +_Object$defineProperty(exports, "__esModule", {
10205 + value: true
10206 +});
10207 +
10208 +exports.default = Promotion;
10209 +
10210 +var _react = _interopRequireDefault(__webpack_require__(11));
10211 +
10212 +var _allPartsButton = _interopRequireDefault(__webpack_require__(692));
10213 +
10214 +var _button = _interopRequireDefault(__webpack_require__(238));
10215 +
10216 +var _cardOverlay = _interopRequireDefault(__webpack_require__(683));
10217 +
10218 +var _grid = _interopRequireDefault(__webpack_require__(346));
10219 +
10220 +var _heading = _interopRequireDefault(__webpack_require__(336));
10221 +
10222 +var _layout = _interopRequireDefault(__webpack_require__(693));
10223 +
10224 +var _siteParts = _interopRequireDefault(__webpack_require__(694));
10225 +
10226 +var _text = _interopRequireDefault(__webpack_require__(347));
10227 +
10228 +__webpack_require__(781);
10229 +
10230 +function Promotion() {
10231 + var promotionUrl = 'https://go.elementor.com/go-pro-theme-builder',
10232 + PromotionHoverElement = function PromotionHoverElement(props) {
10233 + var promotionUrlWithType = "".concat(promotionUrl, "?type=").concat(props.type);
10234 + return /*#__PURE__*/_react.default.createElement(_cardOverlay.default, {
10235 + className: "e-site-editor__promotion-overlay"
10236 + }, /*#__PURE__*/_react.default.createElement("a", {
10237 + className: "e-site-editor__promotion-overlay__link",
10238 + target: "_blank",
10239 + rel: "noopener noreferrer",
10240 + href: promotionUrlWithType
10241 + }, /*#__PURE__*/_react.default.createElement("i", {
10242 + className: "e-site-editor__promotion-overlay__icon eicon-lock"
10243 + }), /*#__PURE__*/_react.default.createElement(_button.default, {
10244 + size: "sm",
10245 + color: "cta",
10246 + variant: "contained",
10247 + text: __('Go Pro', 'elementor')
10248 + })));
10249 + };
10250 +
10251 + PromotionHoverElement.propTypes = {
10252 + className: PropTypes.string,
10253 + type: PropTypes.string.isRequired
10254 + };
10255 + return /*#__PURE__*/_react.default.createElement(_layout.default, {
10256 + allPartsButton: /*#__PURE__*/_react.default.createElement(_allPartsButton.default, {
10257 + promotion: true
10258 + }),
10259 + promotion: true
10260 + }, /*#__PURE__*/_react.default.createElement("section", {
10261 + className: "e-site-editor__promotion"
10262 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
10263 + container: true,
10264 + className: "page-header"
10265 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
10266 + item: true,
10267 + sm: 7,
10268 + justify: "end"
10269 + }, /*#__PURE__*/_react.default.createElement(_heading.default, {
10270 + variant: "h1"
10271 + }, __('Create Full Site', 'elementor')), /*#__PURE__*/_react.default.createElement(_text.default, null, __('Theme Builder is the industry leading all-in-one solution that lets you customize every part of your WordPress theme visually: Header, Footer, Single, Archive & WooCommerce', 'elementor'))), /*#__PURE__*/_react.default.createElement(_grid.default, {
10272 + item: true,
10273 + container: true,
10274 + justify: "end",
10275 + alignItems: "start",
10276 + sm: 5
10277 + }, /*#__PURE__*/_react.default.createElement(_button.default, {
10278 + size: "sm",
10279 + color: "cta",
10280 + variant: "contained",
10281 + url: promotionUrl,
10282 + text: __('Go Pro', 'elementor')
10283 + }))), /*#__PURE__*/_react.default.createElement("hr", {
10284 + className: "eps-separator"
10285 + }), /*#__PURE__*/_react.default.createElement(_siteParts.default, {
10286 + hoverElement: PromotionHoverElement
10287 + })));
10288 +}
10289 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41)))
10290 +
10291 +/***/ }),
10292 +/* 780 */
10293 +/***/ (function(module, exports) {
10294 +
10295 +
10296 +
10297 +/***/ }),
10298 +/* 781 */
10299 +/***/ (function(module, exports) {
10300 +
10301 +
10302 +
10303 +/***/ })
10304 +/******/ ]);
5432 10305 //# sourceMappingURL=app-packages.js.map