PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.13
Elementor Website Builder – more than just a page builder v3.0.13
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 +10172 -5289 4.3.1 → 3.0.13 View file →
@@ -1,5432 +1,10315 @@
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.13 - 04-11-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 = 765);
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__(152);
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__(130);
148 +
149 +var setPrototypeOf = __webpack_require__(119);
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__(95);
173 +
174 +var getPrototypeOf = __webpack_require__(16);
175 +
176 +var isNativeReflectConstruct = __webpack_require__(138);
177 +
178 +var possibleConstructorReturn = __webpack_require__(167);
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__(29);
214 +var hide = __webpack_require__(22);
215 +var has = __webpack_require__(17);
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__(71)('wks');
301 +var uid = __webpack_require__(55);
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, __webpack_require__) {
316 +
317 +var isObject = __webpack_require__(9);
318 +module.exports = function (it) {
319 + if (!isObject(it)) throw TypeError(it + ' is not an object!');
320 + return it;
321 +};
322 +
323 +
324 +/***/ }),
325 +/* 12 */
326 +/***/ (function(module, exports) {
327 +
328 +module.exports = React;
329 +
330 +/***/ }),
331 +/* 13 */
332 +/***/ (function(module, exports, __webpack_require__) {
333 +
334 +var store = __webpack_require__(76)('wks');
335 +var uid = __webpack_require__(77);
336 +var Symbol = __webpack_require__(18).Symbol;
337 +var USE_SYMBOL = typeof Symbol == 'function';
338 +
339 +var $exports = module.exports = function (name) {
340 + return store[name] || (store[name] =
341 + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
342 +};
343 +
344 +$exports.store = store;
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__(21)(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__(11);
362 +var IE8_DOM_DEFINE = __webpack_require__(110);
363 +var toPrimitive = __webpack_require__(69);
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__(154);
384 +
385 +var _Object$setPrototypeOf = __webpack_require__(111);
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 +var hasOwnProperty = {}.hasOwnProperty;
401 +module.exports = function (it, key) {
402 + return hasOwnProperty.call(it, key);
403 +};
404 +
405 +
406 +/***/ }),
407 +/* 18 */
408 +/***/ (function(module, exports) {
409 +
410 +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
411 +var global = module.exports = typeof window != 'undefined' && window.Math == Math
412 + ? window : typeof self != 'undefined' && self.Math == Math ? self
413 + // eslint-disable-next-line no-new-func
414 + : Function('return this')();
415 +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
416 +
417 +
418 +/***/ }),
419 +/* 19 */
420 +/***/ (function(module, exports, __webpack_require__) {
421 +
422 +// to indexed object, toObject with fallback for non-array-like ES3 strings
423 +var IObject = __webpack_require__(103);
424 +var defined = __webpack_require__(65);
425 +module.exports = function (it) {
426 + return IObject(defined(it));
427 +};
428 +
429 +
430 +/***/ }),
431 +/* 20 */
432 +/***/ (function(module, exports, __webpack_require__) {
433 +
434 +var isObject = __webpack_require__(31);
435 +module.exports = function (it) {
436 + if (!isObject(it)) throw TypeError(it + ' is not an object!');
437 + return it;
438 +};
439 +
440 +
441 +/***/ }),
442 +/* 21 */
443 +/***/ (function(module, exports) {
444 +
445 +module.exports = function (exec) {
446 + try {
447 + return !!exec();
448 + } catch (e) {
449 + return true;
450 + }
451 +};
452 +
453 +
454 +/***/ }),
455 +/* 22 */
456 +/***/ (function(module, exports, __webpack_require__) {
457 +
458 +var dP = __webpack_require__(15);
459 +var createDesc = __webpack_require__(42);
460 +module.exports = __webpack_require__(14) ? function (object, key, value) {
461 + return dP.f(object, key, createDesc(1, value));
462 +} : function (object, key, value) {
463 + object[key] = value;
464 + return object;
465 +};
466 +
467 +
468 +/***/ }),
469 +/* 23 */,
470 +/* 24 */,
471 +/* 25 */
472 +/***/ (function(module, exports, __webpack_require__) {
473 +
474 +module.exports = __webpack_require__(202);
475 +
476 +/***/ }),
477 +/* 26 */
478 +/***/ (function(module, exports, __webpack_require__) {
479 +
480 +var _Object$getOwnPropertyDescriptor = __webpack_require__(116);
481 +
482 +var _Reflect$get = __webpack_require__(186);
483 +
484 +var superPropBase = __webpack_require__(189);
485 +
486 +function _get(target, property, receiver) {
487 + if (typeof Reflect !== "undefined" && _Reflect$get) {
488 + module.exports = _get = _Reflect$get;
489 + } else {
490 + module.exports = _get = function _get(target, property, receiver) {
491 + var base = superPropBase(target, property);
492 + if (!base) return;
493 +
494 + var desc = _Object$getOwnPropertyDescriptor(base, property);
495 +
496 + if (desc.get) {
497 + return desc.get.call(receiver);
498 + }
499 +
500 + return desc.value;
501 + };
502 + }
503 +
504 + return _get(target, property, receiver || target);
505 +}
506 +
507 +module.exports = _get;
508 +
509 +/***/ }),
510 +/* 27 */
511 +/***/ (function(module, exports, __webpack_require__) {
512 +
513 +var _Object$defineProperty = __webpack_require__(1);
514 +
515 +function _defineProperty(obj, key, value) {
516 + if (key in obj) {
517 + _Object$defineProperty(obj, key, {
518 + value: value,
519 + enumerable: true,
520 + configurable: true,
521 + writable: true
522 + });
523 + } else {
524 + obj[key] = value;
525 + }
526 +
527 + return obj;
528 +}
529 +
530 +module.exports = _defineProperty;
531 +
532 +/***/ }),
533 +/* 28 */
534 +/***/ (function(module, exports, __webpack_require__) {
535 +
536 +// Thank's IE8 for his funny defineProperty
537 +module.exports = !__webpack_require__(36)(function () {
538 + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
539 +});
540 +
541 +
542 +/***/ }),
543 +/* 29 */
544 +/***/ (function(module, exports, __webpack_require__) {
545 +
546 +// optional / simple context binding
547 +var aFunction = __webpack_require__(35);
548 +module.exports = function (fn, that, length) {
549 + aFunction(fn);
550 + if (that === undefined) return fn;
551 + switch (length) {
552 + case 1: return function (a) {
553 + return fn.call(that, a);
554 + };
555 + case 2: return function (a, b) {
556 + return fn.call(that, a, b);
557 + };
558 + case 3: return function (a, b, c) {
559 + return fn.call(that, a, b, c);
560 + };
561 + }
562 + return function (/* ...args */) {
563 + return fn.apply(that, arguments);
564 + };
565 +};
566 +
567 +
568 +/***/ }),
569 +/* 30 */
570 +/***/ (function(module, exports, __webpack_require__) {
571 +
572 +var dP = __webpack_require__(51);
573 +var createDesc = __webpack_require__(106);
574 +module.exports = __webpack_require__(28) ? function (object, key, value) {
575 + return dP.f(object, key, createDesc(1, value));
576 +} : function (object, key, value) {
577 + object[key] = value;
578 + return object;
579 +};
580 +
581 +
582 +/***/ }),
583 +/* 31 */
584 +/***/ (function(module, exports) {
585 +
586 +module.exports = function (it) {
587 + return typeof it === 'object' ? it !== null : typeof it === 'function';
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 = {};
607 +
608 +
609 +/***/ }),
610 +/* 34 */
611 +/***/ (function(module, exports, __webpack_require__) {
612 +
613 +var _Object$getOwnPropertyDescriptor = __webpack_require__(116);
614 +
615 +var _Object$defineProperty = __webpack_require__(1);
616 +
617 +var _typeof = __webpack_require__(50);
618 +
619 +var _WeakMap = __webpack_require__(263);
620 +
621 +function _getRequireWildcardCache() {
622 + if (typeof _WeakMap !== "function") return null;
623 + var cache = new _WeakMap();
624 +
625 + _getRequireWildcardCache = function _getRequireWildcardCache() {
626 + return cache;
627 + };
628 +
629 + return cache;
630 +}
631 +
632 +function _interopRequireWildcard(obj) {
633 + if (obj && obj.__esModule) {
634 + return obj;
635 + }
636 +
637 + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
638 + return {
639 + "default": obj
640 + };
641 + }
642 +
643 + var cache = _getRequireWildcardCache();
644 +
645 + if (cache && cache.has(obj)) {
646 + return cache.get(obj);
647 + }
648 +
649 + var newObj = {};
650 + var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
651 +
652 + for (var key in obj) {
653 + if (Object.prototype.hasOwnProperty.call(obj, key)) {
654 + var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
655 +
656 + if (desc && (desc.get || desc.set)) {
657 + _Object$defineProperty(newObj, key, desc);
658 + } else {
659 + newObj[key] = obj[key];
660 + }
661 + }
662 + }
663 +
664 + newObj["default"] = obj;
665 +
666 + if (cache) {
667 + cache.set(obj, newObj);
668 + }
669 +
670 + return newObj;
671 +}
672 +
673 +module.exports = _interopRequireWildcard;
674 +
675 +/***/ }),
676 +/* 35 */
677 +/***/ (function(module, exports) {
678 +
679 +module.exports = function (it) {
680 + if (typeof it != 'function') throw TypeError(it + ' is not a function!');
681 + return it;
682 +};
683 +
684 +
685 +/***/ }),
686 +/* 36 */
687 +/***/ (function(module, exports) {
688 +
689 +module.exports = function (exec) {
690 + try {
691 + return !!exec();
692 + } catch (e) {
693 + return true;
694 + }
695 +};
696 +
697 +
698 +/***/ }),
699 +/* 37 */
700 +/***/ (function(module, exports, __webpack_require__) {
701 +
702 +// 19.1.2.14 / 15.2.3.14 Object.keys(O)
703 +var $keys = __webpack_require__(112);
704 +var enumBugKeys = __webpack_require__(74);
705 +
706 +module.exports = Object.keys || function keys(O) {
707 + return $keys(O, enumBugKeys);
708 +};
709 +
710 +
711 +/***/ }),
712 +/* 38 */
713 +/***/ (function(module, exports, __webpack_require__) {
714 +
715 +var global = __webpack_require__(18);
716 +var core = __webpack_require__(58);
717 +var hide = __webpack_require__(30);
718 +var redefine = __webpack_require__(39);
719 +var ctx = __webpack_require__(81);
720 +var PROTOTYPE = 'prototype';
721 +
722 +var $export = function (type, name, source) {
723 + var IS_FORCED = type & $export.F;
724 + var IS_GLOBAL = type & $export.G;
725 + var IS_STATIC = type & $export.S;
726 + var IS_PROTO = type & $export.P;
727 + var IS_BIND = type & $export.B;
728 + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
729 + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
730 + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
731 + var key, own, out, exp;
732 + if (IS_GLOBAL) source = name;
733 + for (key in source) {
734 + // contains in native
735 + own = !IS_FORCED && target && target[key] !== undefined;
736 + // export native or passed
737 + out = (own ? target : source)[key];
738 + // bind timers to global for call from export context
739 + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
740 + // extend global
741 + if (target) redefine(target, key, out, type & $export.U);
742 + // export
743 + if (exports[key] != out) hide(exports, key, exp);
744 + if (IS_PROTO && expProto[key] != out) expProto[key] = out;
745 + }
746 +};
747 +global.core = core;
748 +// type bitmap
749 +$export.F = 1; // forced
750 +$export.G = 2; // global
751 +$export.S = 4; // static
752 +$export.P = 8; // proto
753 +$export.B = 16; // bind
754 +$export.W = 32; // wrap
755 +$export.U = 64; // safe
756 +$export.R = 128; // real proto method for `library`
757 +module.exports = $export;
758 +
759 +
760 +/***/ }),
761 +/* 39 */
762 +/***/ (function(module, exports, __webpack_require__) {
763 +
764 +var global = __webpack_require__(18);
765 +var hide = __webpack_require__(30);
766 +var has = __webpack_require__(64);
767 +var SRC = __webpack_require__(77)('src');
768 +var $toString = __webpack_require__(147);
769 +var TO_STRING = 'toString';
770 +var TPL = ('' + $toString).split(TO_STRING);
771 +
772 +__webpack_require__(58).inspectSource = function (it) {
773 + return $toString.call(it);
774 +};
775 +
776 +(module.exports = function (O, key, val, safe) {
777 + var isFunction = typeof val == 'function';
778 + if (isFunction) has(val, 'name') || hide(val, 'name', key);
779 + if (O[key] === val) return;
780 + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
781 + if (O === global) {
782 + O[key] = val;
783 + } else if (!safe) {
784 + delete O[key];
785 + hide(O, key, val);
786 + } else if (O[key]) {
787 + O[key] = val;
788 + } else {
789 + hide(O, key, val);
790 + }
791 +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
792 +})(Function.prototype, TO_STRING, function toString() {
793 + return typeof this == 'function' && this[SRC] || $toString.call(this);
794 +});
795 +
796 +
797 +/***/ }),
798 +/* 40 */,
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__(338)();
813 +}
353 814
354 -//#endregion
355 -//#region node_modules/prop-types/checkPropTypes.js
815 +
816 +/***/ }),
817 +/* 42 */
818 +/***/ (function(module, exports) {
819 +
820 +module.exports = function (bitmap, value) {
821 + return {
822 + enumerable: !(bitmap & 1),
823 + configurable: !(bitmap & 2),
824 + writable: !(bitmap & 4),
825 + value: value
826 + };
827 +};
828 +
829 +
830 +/***/ }),
831 +/* 43 */
832 +/***/ (function(module, exports) {
833 +
834 +// 7.2.1 RequireObjectCoercible(argument)
835 +module.exports = function (it) {
836 + if (it == undefined) throw TypeError("Can't call method on " + it);
837 + return it;
838 +};
839 +
840 +
841 +/***/ }),
842 +/* 44 */
843 +/***/ (function(module, exports) {
844 +
845 +module.exports = true;
846 +
847 +
848 +/***/ }),
849 +/* 45 */
850 +/***/ (function(module, exports) {
851 +
852 +function _assertThisInitialized(self) {
853 + if (self === void 0) {
854 + throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
855 + }
856 +
857 + return self;
858 +}
859 +
860 +module.exports = _assertThisInitialized;
861 +
862 +/***/ }),
863 +/* 46 */
864 +/***/ (function(module, exports, __webpack_require__) {
865 +
866 +// 7.1.15 ToLength
867 +var toInteger = __webpack_require__(60);
868 +var min = Math.min;
869 +module.exports = function (it) {
870 + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
871 +};
872 +
873 +
874 +/***/ }),
875 +/* 47 */
876 +/***/ (function(module, exports, __webpack_require__) {
877 +
878 +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
879 +var anObject = __webpack_require__(11);
880 +var dPs = __webpack_require__(131);
881 +var enumBugKeys = __webpack_require__(74);
882 +var IE_PROTO = __webpack_require__(70)('IE_PROTO');
883 +var Empty = function () { /* empty */ };
884 +var PROTOTYPE = 'prototype';
885 +
886 +// Create object with fake `null` prototype: use iframe Object with cleared prototype
887 +var createDict = function () {
888 + // Thrash, waste and sodomy: IE GC bug
889 + var iframe = __webpack_require__(88)('iframe');
890 + var i = enumBugKeys.length;
891 + var lt = '<';
892 + var gt = '>';
893 + var iframeDocument;
894 + iframe.style.display = 'none';
895 + __webpack_require__(132).appendChild(iframe);
896 + iframe.src = 'javascript:'; // eslint-disable-line no-script-url
897 + // createDict = iframe.contentWindow.Object;
898 + // html.removeChild(iframe);
899 + iframeDocument = iframe.contentWindow.document;
900 + iframeDocument.open();
901 + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
902 + iframeDocument.close();
903 + createDict = iframeDocument.F;
904 + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
905 + return createDict();
906 +};
907 +
908 +module.exports = Object.create || function create(O, Properties) {
909 + var result;
910 + if (O !== null) {
911 + Empty[PROTOTYPE] = anObject(O);
912 + result = new Empty();
913 + Empty[PROTOTYPE] = null;
914 + // add "__proto__" for Object.getPrototypeOf polyfill
915 + result[IE_PROTO] = O;
916 + } else result = createDict();
917 + return Properties === undefined ? result : dPs(result, Properties);
918 +};
919 +
920 +
921 +/***/ }),
922 +/* 48 */
923 +/***/ (function(module, exports, __webpack_require__) {
924 +
925 +var pIE = __webpack_require__(49);
926 +var createDesc = __webpack_require__(42);
927 +var toIObject = __webpack_require__(19);
928 +var toPrimitive = __webpack_require__(69);
929 +var has = __webpack_require__(17);
930 +var IE8_DOM_DEFINE = __webpack_require__(110);
931 +var gOPD = Object.getOwnPropertyDescriptor;
932 +
933 +exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) {
934 + O = toIObject(O);
935 + P = toPrimitive(P, true);
936 + if (IE8_DOM_DEFINE) try {
937 + return gOPD(O, P);
938 + } catch (e) { /* empty */ }
939 + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
940 +};
941 +
942 +
943 +/***/ }),
944 +/* 49 */
945 +/***/ (function(module, exports) {
946 +
947 +exports.f = {}.propertyIsEnumerable;
948 +
949 +
950 +/***/ }),
951 +/* 50 */
952 +/***/ (function(module, exports, __webpack_require__) {
953 +
954 +var _Symbol$iterator = __webpack_require__(148);
955 +
956 +var _Symbol = __webpack_require__(107);
957 +
958 +function _typeof(obj) {
959 + "@babel/helpers - typeof";
960 +
961 + if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
962 + module.exports = _typeof = function _typeof(obj) {
963 + return typeof obj;
964 + };
965 + } else {
966 + module.exports = _typeof = function _typeof(obj) {
967 + return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
968 + };
969 + }
970 +
971 + return _typeof(obj);
972 +}
973 +
974 +module.exports = _typeof;
975 +
976 +/***/ }),
977 +/* 51 */
978 +/***/ (function(module, exports, __webpack_require__) {
979 +
980 +var anObject = __webpack_require__(20);
981 +var IE8_DOM_DEFINE = __webpack_require__(135);
982 +var toPrimitive = __webpack_require__(127);
983 +var dP = Object.defineProperty;
984 +
985 +exports.f = __webpack_require__(28) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
986 + anObject(O);
987 + P = toPrimitive(P, true);
988 + anObject(Attributes);
989 + if (IE8_DOM_DEFINE) try {
990 + return dP(O, P, Attributes);
991 + } catch (e) { /* empty */ }
992 + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
993 + if ('value' in Attributes) O[P] = Attributes.value;
994 + return O;
995 +};
996 +
997 +
998 +/***/ }),
999 +/* 52 */
1000 +/***/ (function(module, exports) {
1001 +
1002 +var toString = {}.toString;
1003 +
1004 +module.exports = function (it) {
1005 + return toString.call(it).slice(8, -1);
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__(17);
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 id = 0;
1028 +var px = Math.random();
1029 +module.exports = function (key) {
1030 + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1031 +};
1032 +
1033 +
1034 +/***/ }),
1035 +/* 56 */
1036 +/***/ (function(module, exports) {
1037 +
1038 +var toString = {}.toString;
1039 +
1040 +module.exports = function (it) {
1041 + return toString.call(it).slice(8, -1);
1042 +};
1043 +
1044 +
1045 +/***/ }),
1046 +/* 57 */
1047 +/***/ (function(module, exports, __webpack_require__) {
1048 +
1049 +"use strict";
1050 +
1051 +var $at = __webpack_require__(169)(true);
1052 +
1053 +// 21.1.3.27 String.prototype[@@iterator]()
1054 +__webpack_require__(96)(String, 'String', function (iterated) {
1055 + this._t = String(iterated); // target
1056 + this._i = 0; // next index
1057 +// 21.1.5.2.1 %StringIteratorPrototype%.next()
1058 +}, function () {
1059 + var O = this._t;
1060 + var index = this._i;
1061 + var point;
1062 + if (index >= O.length) return { value: undefined, done: true };
1063 + point = $at(O, index);
1064 + this._i += point.length;
1065 + return { value: point, done: false };
1066 +});
1067 +
1068 +
1069 +/***/ }),
1070 +/* 58 */
1071 +/***/ (function(module, exports) {
1072 +
1073 +var core = module.exports = { version: '2.6.11' };
1074 +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1075 +
1076 +
1077 +/***/ }),
1078 +/* 59 */
1079 +/***/ (function(module, exports, __webpack_require__) {
1080 +
1081 +__webpack_require__(171);
1082 +var global = __webpack_require__(8);
1083 +var hide = __webpack_require__(22);
1084 +var Iterators = __webpack_require__(33);
1085 +var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
1086 +
1087 +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
1088 + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
1089 + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
1090 + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
1091 + 'TextTrackList,TouchList').split(',');
1092 +
1093 +for (var i = 0; i < DOMIterables.length; i++) {
1094 + var NAME = DOMIterables[i];
1095 + var Collection = global[NAME];
1096 + var proto = Collection && Collection.prototype;
1097 + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1098 + Iterators[NAME] = Iterators.Array;
1099 +}
1100 +
1101 +
1102 +/***/ }),
1103 +/* 60 */
1104 +/***/ (function(module, exports) {
1105 +
1106 +// 7.1.4 ToInteger
1107 +var ceil = Math.ceil;
1108 +var floor = Math.floor;
1109 +module.exports = function (it) {
1110 + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1111 +};
1112 +
1113 +
1114 +/***/ }),
1115 +/* 61 */
1116 +/***/ (function(module, exports, __webpack_require__) {
1117 +
1118 +"use strict";
1119 +
1120 +
1121 +var anObject = __webpack_require__(20);
1122 +var toObject = __webpack_require__(102);
1123 +var toLength = __webpack_require__(46);
1124 +var toInteger = __webpack_require__(60);
1125 +var advanceStringIndex = __webpack_require__(108);
1126 +var regExpExec = __webpack_require__(100);
1127 +var max = Math.max;
1128 +var min = Math.min;
1129 +var floor = Math.floor;
1130 +var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1131 +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1132 +
1133 +var maybeToString = function (it) {
1134 + return it === undefined ? it : String(it);
1135 +};
1136 +
1137 +// @@replace logic
1138 +__webpack_require__(101)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1139 + return [
1140 + // `String.prototype.replace` method
1141 + // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1142 + function replace(searchValue, replaceValue) {
1143 + var O = defined(this);
1144 + var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1145 + return fn !== undefined
1146 + ? fn.call(searchValue, O, replaceValue)
1147 + : $replace.call(String(O), searchValue, replaceValue);
1148 + },
1149 + // `RegExp.prototype[@@replace]` method
1150 + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1151 + function (regexp, replaceValue) {
1152 + var res = maybeCallNative($replace, regexp, this, replaceValue);
1153 + if (res.done) return res.value;
1154 +
1155 + var rx = anObject(regexp);
1156 + var S = String(this);
1157 + var functionalReplace = typeof replaceValue === 'function';
1158 + if (!functionalReplace) replaceValue = String(replaceValue);
1159 + var global = rx.global;
1160 + if (global) {
1161 + var fullUnicode = rx.unicode;
1162 + rx.lastIndex = 0;
1163 + }
1164 + var results = [];
1165 + while (true) {
1166 + var result = regExpExec(rx, S);
1167 + if (result === null) break;
1168 + results.push(result);
1169 + if (!global) break;
1170 + var matchStr = String(result[0]);
1171 + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1172 + }
1173 + var accumulatedResult = '';
1174 + var nextSourcePosition = 0;
1175 + for (var i = 0; i < results.length; i++) {
1176 + result = results[i];
1177 + var matched = String(result[0]);
1178 + var position = max(min(toInteger(result.index), S.length), 0);
1179 + var captures = [];
1180 + // NOTE: This is equivalent to
1181 + // captures = result.slice(1).map(maybeToString)
1182 + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1183 + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1184 + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1185 + for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1186 + var namedCaptures = result.groups;
1187 + if (functionalReplace) {
1188 + var replacerArgs = [matched].concat(captures, position, S);
1189 + if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1190 + var replacement = String(replaceValue.apply(undefined, replacerArgs));
1191 + } else {
1192 + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1193 + }
1194 + if (position >= nextSourcePosition) {
1195 + accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1196 + nextSourcePosition = position + matched.length;
1197 + }
1198 + }
1199 + return accumulatedResult + S.slice(nextSourcePosition);
1200 + }
1201 + ];
1202 +
1203 + // https://tc39.github.io/ecma262/#sec-getsubstitution
1204 + function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1205 + var tailPos = position + matched.length;
1206 + var m = captures.length;
1207 + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1208 + if (namedCaptures !== undefined) {
1209 + namedCaptures = toObject(namedCaptures);
1210 + symbols = SUBSTITUTION_SYMBOLS;
1211 + }
1212 + return $replace.call(replacement, symbols, function (match, ch) {
1213 + var capture;
1214 + switch (ch.charAt(0)) {
1215 + case '$': return '$';
1216 + case '&': return matched;
1217 + case '`': return str.slice(0, position);
1218 + case "'": return str.slice(tailPos);
1219 + case '<':
1220 + capture = namedCaptures[ch.slice(1, -1)];
1221 + break;
1222 + default: // \d\d?
1223 + var n = +ch;
1224 + if (n === 0) return match;
1225 + if (n > m) {
1226 + var f = floor(n / 10);
1227 + if (f === 0) return match;
1228 + if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1229 + return match;
1230 + }
1231 + capture = captures[n - 1];
1232 + }
1233 + return capture === undefined ? '' : capture;
1234 + });
1235 + }
1236 +});
1237 +
1238 +
1239 +/***/ }),
1240 +/* 62 */
1241 +/***/ (function(module, exports, __webpack_require__) {
1242 +
1243 +exports.f = __webpack_require__(10);
1244 +
1245 +
1246 +/***/ }),
1247 +/* 63 */
1248 +/***/ (function(module, exports, __webpack_require__) {
1249 +
1250 +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1251 +var has = __webpack_require__(17);
1252 +var toObject = __webpack_require__(32);
1253 +var IE_PROTO = __webpack_require__(70)('IE_PROTO');
1254 +var ObjectProto = Object.prototype;
1255 +
1256 +module.exports = Object.getPrototypeOf || function (O) {
1257 + O = toObject(O);
1258 + if (has(O, IE_PROTO)) return O[IE_PROTO];
1259 + if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1260 + return O.constructor.prototype;
1261 + } return O instanceof Object ? ObjectProto : null;
1262 +};
1263 +
1264 +
1265 +/***/ }),
1266 +/* 64 */
1267 +/***/ (function(module, exports) {
1268 +
1269 +var hasOwnProperty = {}.hasOwnProperty;
1270 +module.exports = function (it, key) {
1271 + return hasOwnProperty.call(it, key);
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 META = __webpack_require__(55)('meta');
1291 +var isObject = __webpack_require__(9);
1292 +var has = __webpack_require__(17);
1293 +var setDesc = __webpack_require__(15).f;
1294 +var id = 0;
1295 +var isExtensible = Object.isExtensible || function () {
1296 + return true;
1297 +};
1298 +var FREEZE = !__webpack_require__(21)(function () {
1299 + return isExtensible(Object.preventExtensions({}));
1300 +});
1301 +var setMeta = function (it) {
1302 + setDesc(it, META, { value: {
1303 + i: 'O' + ++id, // object ID
1304 + w: {} // weak collections IDs
1305 + } });
1306 +};
1307 +var fastKey = function (it, create) {
1308 + // return primitive with prefix
1309 + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1310 + if (!has(it, META)) {
1311 + // can't set metadata to uncaught frozen object
1312 + if (!isExtensible(it)) return 'F';
1313 + // not necessary to add metadata
1314 + if (!create) return 'E';
1315 + // add missing metadata
1316 + setMeta(it);
1317 + // return object ID
1318 + } return it[META].i;
1319 +};
1320 +var getWeak = function (it, create) {
1321 + if (!has(it, META)) {
1322 + // can't set metadata to uncaught frozen object
1323 + if (!isExtensible(it)) return true;
1324 + // not necessary to add metadata
1325 + if (!create) return false;
1326 + // add missing metadata
1327 + setMeta(it);
1328 + // return hash weak collections IDs
1329 + } return it[META].w;
1330 +};
1331 +// add metadata on freeze-family methods calling
1332 +var onFreeze = function (it) {
1333 + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
1334 + return it;
1335 +};
1336 +var meta = module.exports = {
1337 + KEY: META,
1338 + NEED: false,
1339 + fastKey: fastKey,
1340 + getWeak: getWeak,
1341 + onFreeze: onFreeze
1342 +};
1343 +
1344 +
1345 +/***/ }),
1346 +/* 67 */
1347 +/***/ (function(module, exports) {
1348 +
1349 +exports.f = Object.getOwnPropertySymbols;
1350 +
1351 +
1352 +/***/ }),
1353 +/* 68 */,
1354 +/* 69 */
1355 +/***/ (function(module, exports, __webpack_require__) {
1356 +
1357 +// 7.1.1 ToPrimitive(input [, PreferredType])
1358 +var isObject = __webpack_require__(9);
1359 +// instead of the ES6 spec version, we didn't implement @@toPrimitive case
1360 +// and the second argument - flag - preferred type is a string
1361 +module.exports = function (it, S) {
1362 + if (!isObject(it)) return it;
1363 + var fn, val;
1364 + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
1365 + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
1366 + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
1367 + throw TypeError("Can't convert object to primitive value");
1368 +};
1369 +
1370 +
1371 +/***/ }),
1372 +/* 70 */
1373 +/***/ (function(module, exports, __webpack_require__) {
1374 +
1375 +var shared = __webpack_require__(71)('keys');
1376 +var uid = __webpack_require__(55);
1377 +module.exports = function (key) {
1378 + return shared[key] || (shared[key] = uid(key));
1379 +};
1380 +
1381 +
1382 +/***/ }),
1383 +/* 71 */
1384 +/***/ (function(module, exports, __webpack_require__) {
1385 +
1386 +var core = __webpack_require__(6);
1387 +var global = __webpack_require__(8);
1388 +var SHARED = '__core-js_shared__';
1389 +var store = global[SHARED] || (global[SHARED] = {});
1390 +
1391 +(module.exports = function (key, value) {
1392 + return store[key] || (store[key] = value !== undefined ? value : {});
1393 +})('versions', []).push({
1394 + version: core.version,
1395 + mode: __webpack_require__(44) ? 'pure' : 'global',
1396 + copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1397 +});
1398 +
1399 +
1400 +/***/ }),
1401 +/* 72 */
1402 +/***/ (function(module, exports, __webpack_require__) {
1403 +
1404 +// 7.1.15 ToLength
1405 +var toInteger = __webpack_require__(73);
1406 +var min = Math.min;
1407 +module.exports = function (it) {
1408 + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1409 +};
1410 +
1411 +
1412 +/***/ }),
1413 +/* 73 */
1414 +/***/ (function(module, exports) {
1415 +
1416 +// 7.1.4 ToInteger
1417 +var ceil = Math.ceil;
1418 +var floor = Math.floor;
1419 +module.exports = function (it) {
1420 + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1421 +};
1422 +
1423 +
1424 +/***/ }),
1425 +/* 74 */
1426 +/***/ (function(module, exports) {
1427 +
1428 +// IE 8- don't enum bug keys
1429 +module.exports = (
1430 + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1431 +).split(',');
1432 +
1433 +
1434 +/***/ }),
1435 +/* 75 */
1436 +/***/ (function(module, exports, __webpack_require__) {
1437 +
1438 +var global = __webpack_require__(8);
1439 +var core = __webpack_require__(6);
1440 +var LIBRARY = __webpack_require__(44);
1441 +var wksExt = __webpack_require__(62);
1442 +var defineProperty = __webpack_require__(15).f;
1443 +module.exports = function (name) {
1444 + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
1445 + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
1446 +};
1447 +
1448 +
1449 +/***/ }),
1450 +/* 76 */
1451 +/***/ (function(module, exports, __webpack_require__) {
1452 +
1453 +var core = __webpack_require__(58);
1454 +var global = __webpack_require__(18);
1455 +var SHARED = '__core-js_shared__';
1456 +var store = global[SHARED] || (global[SHARED] = {});
1457 +
1458 +(module.exports = function (key, value) {
1459 + return store[key] || (store[key] = value !== undefined ? value : {});
1460 +})('versions', []).push({
1461 + version: core.version,
1462 + mode: __webpack_require__(115) ? 'pure' : 'global',
1463 + copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1464 +});
1465 +
1466 +
1467 +/***/ }),
1468 +/* 77 */
1469 +/***/ (function(module, exports) {
1470 +
1471 +var id = 0;
1472 +var px = Math.random();
1473 +module.exports = function (key) {
1474 + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1475 +};
1476 +
1477 +
1478 +/***/ }),
1479 +/* 78 */
1480 +/***/ (function(module, exports, __webpack_require__) {
1481 +
1482 +// most Object methods by ES6 should accept primitives
1483 +var $export = __webpack_require__(7);
1484 +var core = __webpack_require__(6);
1485 +var fails = __webpack_require__(21);
1486 +module.exports = function (KEY, exec) {
1487 + var fn = (core.Object || {})[KEY] || Object[KEY];
1488 + var exp = {};
1489 + exp[KEY] = exec(fn);
1490 + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
1491 +};
1492 +
1493 +
1494 +/***/ }),
1495 +/* 79 */
1496 +/***/ (function(module, exports, __webpack_require__) {
1497 +
1498 +var ctx = __webpack_require__(29);
1499 +var call = __webpack_require__(143);
1500 +var isArrayIter = __webpack_require__(144);
1501 +var anObject = __webpack_require__(11);
1502 +var toLength = __webpack_require__(72);
1503 +var getIterFn = __webpack_require__(117);
1504 +var BREAK = {};
1505 +var RETURN = {};
1506 +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
1507 + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
1508 + var f = ctx(fn, that, entries ? 2 : 1);
1509 + var index = 0;
1510 + var length, step, iterator, result;
1511 + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
1512 + // fast case for arrays with default iterator
1513 + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
1514 + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
1515 + if (result === BREAK || result === RETURN) return result;
1516 + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
1517 + result = call(iterator, f, step.value, entries);
1518 + if (result === BREAK || result === RETURN) return result;
1519 + }
1520 +};
1521 +exports.BREAK = BREAK;
1522 +exports.RETURN = RETURN;
1523 +
1524 +
1525 +/***/ }),
1526 +/* 80 */,
1527 +/* 81 */
1528 +/***/ (function(module, exports, __webpack_require__) {
1529 +
1530 +// optional / simple context binding
1531 +var aFunction = __webpack_require__(98);
1532 +module.exports = function (fn, that, length) {
1533 + aFunction(fn);
1534 + if (that === undefined) return fn;
1535 + switch (length) {
1536 + case 1: return function (a) {
1537 + return fn.call(that, a);
1538 + };
1539 + case 2: return function (a, b) {
1540 + return fn.call(that, a, b);
1541 + };
1542 + case 3: return function (a, b, c) {
1543 + return fn.call(that, a, b, c);
1544 + };
1545 + }
1546 + return function (/* ...args */) {
1547 + return fn.apply(that, arguments);
1548 + };
1549 +};
1550 +
1551 +
1552 +/***/ }),
1553 +/* 82 */
1554 +/***/ (function(module, exports, __webpack_require__) {
1555 +
1556 +"use strict";
1557 +
1558 +
1559 +var isRegExp = __webpack_require__(126);
1560 +var anObject = __webpack_require__(20);
1561 +var speciesConstructor = __webpack_require__(180);
1562 +var advanceStringIndex = __webpack_require__(108);
1563 +var toLength = __webpack_require__(46);
1564 +var callRegExpExec = __webpack_require__(100);
1565 +var regexpExec = __webpack_require__(94);
1566 +var fails = __webpack_require__(36);
1567 +var $min = Math.min;
1568 +var $push = [].push;
1569 +var $SPLIT = 'split';
1570 +var LENGTH = 'length';
1571 +var LAST_INDEX = 'lastIndex';
1572 +var MAX_UINT32 = 0xffffffff;
1573 +
1574 +// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1575 +var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
1576 +
1577 +// @@split logic
1578 +__webpack_require__(101)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
1579 + var internalSplit;
1580 + if (
1581 + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
1582 + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
1583 + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
1584 + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
1585 + '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
1586 + ''[$SPLIT](/.?/)[LENGTH]
1587 + ) {
1588 + // based on es5-shim implementation, need to rework it
1589 + internalSplit = function (separator, limit) {
1590 + var string = String(this);
1591 + if (separator === undefined && limit === 0) return [];
1592 + // If `separator` is not a regex, use native split
1593 + if (!isRegExp(separator)) return $split.call(string, separator, limit);
1594 + var output = [];
1595 + var flags = (separator.ignoreCase ? 'i' : '') +
1596 + (separator.multiline ? 'm' : '') +
1597 + (separator.unicode ? 'u' : '') +
1598 + (separator.sticky ? 'y' : '');
1599 + var lastLastIndex = 0;
1600 + var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
1601 + // Make `global` and avoid `lastIndex` issues by working with a copy
1602 + var separatorCopy = new RegExp(separator.source, flags + 'g');
1603 + var match, lastIndex, lastLength;
1604 + while (match = regexpExec.call(separatorCopy, string)) {
1605 + lastIndex = separatorCopy[LAST_INDEX];
1606 + if (lastIndex > lastLastIndex) {
1607 + output.push(string.slice(lastLastIndex, match.index));
1608 + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
1609 + lastLength = match[0][LENGTH];
1610 + lastLastIndex = lastIndex;
1611 + if (output[LENGTH] >= splitLimit) break;
1612 + }
1613 + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
1614 + }
1615 + if (lastLastIndex === string[LENGTH]) {
1616 + if (lastLength || !separatorCopy.test('')) output.push('');
1617 + } else output.push(string.slice(lastLastIndex));
1618 + return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
1619 + };
1620 + // Chakra, V8
1621 + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
1622 + internalSplit = function (separator, limit) {
1623 + return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
1624 + };
1625 + } else {
1626 + internalSplit = $split;
1627 + }
1628 +
1629 + return [
1630 + // `String.prototype.split` method
1631 + // https://tc39.github.io/ecma262/#sec-string.prototype.split
1632 + function split(separator, limit) {
1633 + var O = defined(this);
1634 + var splitter = separator == undefined ? undefined : separator[SPLIT];
1635 + return splitter !== undefined
1636 + ? splitter.call(separator, O, limit)
1637 + : internalSplit.call(String(O), separator, limit);
1638 + },
1639 + // `RegExp.prototype[@@split]` method
1640 + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
1641 + //
1642 + // NOTE: This cannot be properly polyfilled in engines that don't support
1643 + // the 'y' flag.
1644 + function (regexp, limit) {
1645 + var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
1646 + if (res.done) return res.value;
1647 +
1648 + var rx = anObject(regexp);
1649 + var S = String(this);
1650 + var C = speciesConstructor(rx, RegExp);
1651 +
1652 + var unicodeMatching = rx.unicode;
1653 + var flags = (rx.ignoreCase ? 'i' : '') +
1654 + (rx.multiline ? 'm' : '') +
1655 + (rx.unicode ? 'u' : '') +
1656 + (SUPPORTS_Y ? 'y' : 'g');
1657 +
1658 + // ^(? + rx + ) is needed, in combination with some S slicing, to
1659 + // simulate the 'y' flag.
1660 + var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
1661 + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1662 + if (lim === 0) return [];
1663 + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
1664 + var p = 0;
1665 + var q = 0;
1666 + var A = [];
1667 + while (q < S.length) {
1668 + splitter.lastIndex = SUPPORTS_Y ? q : 0;
1669 + var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
1670 + var e;
1671 + if (
1672 + z === null ||
1673 + (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
1674 + ) {
1675 + q = advanceStringIndex(S, q, unicodeMatching);
1676 + } else {
1677 + A.push(S.slice(p, q));
1678 + if (A.length === lim) return A;
1679 + for (var i = 1; i <= z.length - 1; i++) {
1680 + A.push(z[i]);
1681 + if (A.length === lim) return A;
1682 + }
1683 + q = p = e;
1684 + }
1685 + }
1686 + A.push(S.slice(p));
1687 + return A;
1688 + }
1689 + ];
1690 +});
1691 +
1692 +
1693 +/***/ }),
1694 +/* 83 */,
1695 +/* 84 */,
1696 +/* 85 */,
1697 +/* 86 */
1698 +/***/ (function(module, exports, __webpack_require__) {
1699 +
1700 +module.exports = __webpack_require__(221);
1701 +
1702 +/***/ }),
1703 +/* 87 */,
1704 +/* 88 */
1705 +/***/ (function(module, exports, __webpack_require__) {
1706 +
1707 +var isObject = __webpack_require__(9);
1708 +var document = __webpack_require__(8).document;
1709 +// typeof document.createElement is 'object' in old IE
1710 +var is = isObject(document) && isObject(document.createElement);
1711 +module.exports = function (it) {
1712 + return is ? document.createElement(it) : {};
1713 +};
1714 +
1715 +
1716 +/***/ }),
1717 +/* 89 */
1718 +/***/ (function(module, exports, __webpack_require__) {
1719 +
1720 +module.exports = __webpack_require__(22);
1721 +
1722 +
1723 +/***/ }),
1724 +/* 90 */
1725 +/***/ (function(module, exports, __webpack_require__) {
1726 +
1727 +// 22.1.3.31 Array.prototype[@@unscopables]
1728 +var UNSCOPABLES = __webpack_require__(13)('unscopables');
1729 +var ArrayProto = Array.prototype;
1730 +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(30)(ArrayProto, UNSCOPABLES, {});
1731 +module.exports = function (key) {
1732 + ArrayProto[UNSCOPABLES][key] = true;
1733 +};
1734 +
1735 +
1736 +/***/ }),
1737 +/* 91 */
1738 +/***/ (function(module, exports, __webpack_require__) {
1739 +
1740 +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
1741 +var $keys = __webpack_require__(112);
1742 +var hiddenKeys = __webpack_require__(74).concat('length', 'prototype');
1743 +
1744 +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1745 + return $keys(O, hiddenKeys);
1746 +};
1747 +
1748 +
1749 +/***/ }),
1750 +/* 92 */
1751 +/***/ (function(module, exports) {
1752 +
1753 +
1754 +
1755 +/***/ }),
1756 +/* 93 */,
1757 +/* 94 */
1758 +/***/ (function(module, exports, __webpack_require__) {
1759 +
1760 +"use strict";
1761 +
1762 +
1763 +var regexpFlags = __webpack_require__(109);
1764 +
1765 +var nativeExec = RegExp.prototype.exec;
1766 +// This always refers to the native implementation, because the
1767 +// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1768 +// which loads this file before patching the method.
1769 +var nativeReplace = String.prototype.replace;
1770 +
1771 +var patchedExec = nativeExec;
1772 +
1773 +var LAST_INDEX = 'lastIndex';
1774 +
1775 +var UPDATES_LAST_INDEX_WRONG = (function () {
1776 + var re1 = /a/,
1777 + re2 = /b*/g;
1778 + nativeExec.call(re1, 'a');
1779 + nativeExec.call(re2, 'a');
1780 + return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
1781 +})();
1782 +
1783 +// nonparticipating capturing group, copied from es5-shim's String#split patch.
1784 +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1785 +
1786 +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
1787 +
1788 +if (PATCH) {
1789 + patchedExec = function exec(str) {
1790 + var re = this;
1791 + var lastIndex, reCopy, match, i;
1792 +
1793 + if (NPCG_INCLUDED) {
1794 + reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
1795 + }
1796 + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
1797 +
1798 + match = nativeExec.call(re, str);
1799 +
1800 + if (UPDATES_LAST_INDEX_WRONG && match) {
1801 + re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
1802 + }
1803 + if (NPCG_INCLUDED && match && match.length > 1) {
1804 + // Fix browsers whose `exec` methods don't consistently return `undefined`
1805 + // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1806 + // eslint-disable-next-line no-loop-func
1807 + nativeReplace.call(match[0], reCopy, function () {
1808 + for (i = 1; i < arguments.length - 2; i++) {
1809 + if (arguments[i] === undefined) match[i] = undefined;
1810 + }
1811 + });
1812 + }
1813 +
1814 + return match;
1815 + };
1816 +}
1817 +
1818 +module.exports = patchedExec;
1819 +
1820 +
1821 +/***/ }),
1822 +/* 95 */
1823 +/***/ (function(module, exports, __webpack_require__) {
1824 +
1825 +module.exports = __webpack_require__(164);
1826 +
1827 +/***/ }),
1828 +/* 96 */
1829 +/***/ (function(module, exports, __webpack_require__) {
1830 +
1831 +"use strict";
1832 +
1833 +var LIBRARY = __webpack_require__(44);
1834 +var $export = __webpack_require__(7);
1835 +var redefine = __webpack_require__(89);
1836 +var hide = __webpack_require__(22);
1837 +var Iterators = __webpack_require__(33);
1838 +var $iterCreate = __webpack_require__(170);
1839 +var setToStringTag = __webpack_require__(53);
1840 +var getPrototypeOf = __webpack_require__(63);
1841 +var ITERATOR = __webpack_require__(10)('iterator');
1842 +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
1843 +var FF_ITERATOR = '@@iterator';
1844 +var KEYS = 'keys';
1845 +var VALUES = 'values';
1846 +
1847 +var returnThis = function () { return this; };
1848 +
1849 +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
1850 + $iterCreate(Constructor, NAME, next);
1851 + var getMethod = function (kind) {
1852 + if (!BUGGY && kind in proto) return proto[kind];
1853 + switch (kind) {
1854 + case KEYS: return function keys() { return new Constructor(this, kind); };
1855 + case VALUES: return function values() { return new Constructor(this, kind); };
1856 + } return function entries() { return new Constructor(this, kind); };
1857 + };
1858 + var TAG = NAME + ' Iterator';
1859 + var DEF_VALUES = DEFAULT == VALUES;
1860 + var VALUES_BUG = false;
1861 + var proto = Base.prototype;
1862 + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
1863 + var $default = $native || getMethod(DEFAULT);
1864 + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
1865 + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
1866 + var methods, key, IteratorPrototype;
1867 + // Fix native
1868 + if ($anyNative) {
1869 + IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
1870 + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
1871 + // Set @@toStringTag to native iterators
1872 + setToStringTag(IteratorPrototype, TAG, true);
1873 + // fix for some old engines
1874 + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
1875 + }
1876 + }
1877 + // fix Array#{values, @@iterator}.name in V8 / FF
1878 + if (DEF_VALUES && $native && $native.name !== VALUES) {
1879 + VALUES_BUG = true;
1880 + $default = function values() { return $native.call(this); };
1881 + }
1882 + // Define iterator
1883 + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
1884 + hide(proto, ITERATOR, $default);
1885 + }
1886 + // Plug for library
1887 + Iterators[NAME] = $default;
1888 + Iterators[TAG] = returnThis;
1889 + if (DEFAULT) {
1890 + methods = {
1891 + values: DEF_VALUES ? $default : getMethod(VALUES),
1892 + keys: IS_SET ? $default : getMethod(KEYS),
1893 + entries: $entries
1894 + };
1895 + if (FORCED) for (key in methods) {
1896 + if (!(key in proto)) redefine(proto, key, methods[key]);
1897 + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
1898 + }
1899 + return methods;
1900 +};
1901 +
1902 +
1903 +/***/ }),
1904 +/* 97 */
1905 +/***/ (function(module, exports, __webpack_require__) {
1906 +
1907 +// 7.2.2 IsArray(argument)
1908 +var cof = __webpack_require__(56);
1909 +module.exports = Array.isArray || function isArray(arg) {
1910 + return cof(arg) == 'Array';
1911 +};
1912 +
1913 +
1914 +/***/ }),
1915 +/* 98 */
1916 +/***/ (function(module, exports) {
1917 +
1918 +module.exports = function (it) {
1919 + if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1920 + return it;
1921 +};
1922 +
1923 +
1924 +/***/ }),
1925 +/* 99 */
1926 +/***/ (function(module, exports, __webpack_require__) {
1927 +
1928 +// getting tag from 19.1.3.6 Object.prototype.toString()
1929 +var cof = __webpack_require__(56);
1930 +var TAG = __webpack_require__(10)('toStringTag');
1931 +// ES3 wrong here
1932 +var ARG = cof(function () { return arguments; }()) == 'Arguments';
1933 +
1934 +// fallback for IE11 Script Access Denied error
1935 +var tryGet = function (it, key) {
1936 + try {
1937 + return it[key];
1938 + } catch (e) { /* empty */ }
1939 +};
1940 +
1941 +module.exports = function (it) {
1942 + var O, T, B;
1943 + return it === undefined ? 'Undefined' : it === null ? 'Null'
1944 + // @@toStringTag case
1945 + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
1946 + // builtinTag case
1947 + : ARG ? cof(O)
1948 + // ES3 arguments fallback
1949 + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
1950 +};
1951 +
1952 +
1953 +/***/ }),
1954 +/* 100 */
1955 +/***/ (function(module, exports, __webpack_require__) {
1956 +
1957 +"use strict";
1958 +
1959 +
1960 +var classof = __webpack_require__(118);
1961 +var builtinExec = RegExp.prototype.exec;
1962 +
1963 + // `RegExpExec` abstract operation
1964 +// https://tc39.github.io/ecma262/#sec-regexpexec
1965 +module.exports = function (R, S) {
1966 + var exec = R.exec;
1967 + if (typeof exec === 'function') {
1968 + var result = exec.call(R, S);
1969 + if (typeof result !== 'object') {
1970 + throw new TypeError('RegExp exec method returned something other than an Object or null');
1971 + }
1972 + return result;
1973 + }
1974 + if (classof(R) !== 'RegExp') {
1975 + throw new TypeError('RegExp#exec called on incompatible receiver');
1976 + }
1977 + return builtinExec.call(R, S);
1978 +};
1979 +
1980 +
1981 +/***/ }),
1982 +/* 101 */
1983 +/***/ (function(module, exports, __webpack_require__) {
1984 +
1985 +"use strict";
1986 +
1987 +__webpack_require__(197);
1988 +var redefine = __webpack_require__(39);
1989 +var hide = __webpack_require__(30);
1990 +var fails = __webpack_require__(36);
1991 +var defined = __webpack_require__(43);
1992 +var wks = __webpack_require__(13);
1993 +var regexpExec = __webpack_require__(94);
1994 +
1995 +var SPECIES = wks('species');
1996 +
1997 +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1998 + // #replace needs built-in support for named groups.
1999 + // #match works fine because it just return the exec results, even if it has
2000 + // a "grops" property.
2001 + var re = /./;
2002 + re.exec = function () {
2003 + var result = [];
2004 + result.groups = { a: '7' };
2005 + return result;
2006 + };
2007 + return ''.replace(re, '$<a>') !== '7';
2008 +});
2009 +
2010 +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
2011 + // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
2012 + var re = /(?:)/;
2013 + var originalExec = re.exec;
2014 + re.exec = function () { return originalExec.apply(this, arguments); };
2015 + var result = 'ab'.split(re);
2016 + return result.length === 2 && result[0] === 'a' && result[1] === 'b';
2017 +})();
2018 +
2019 +module.exports = function (KEY, length, exec) {
2020 + var SYMBOL = wks(KEY);
2021 +
2022 + var DELEGATES_TO_SYMBOL = !fails(function () {
2023 + // String methods call symbol-named RegEp methods
2024 + var O = {};
2025 + O[SYMBOL] = function () { return 7; };
2026 + return ''[KEY](O) != 7;
2027 + });
2028 +
2029 + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
2030 + // Symbol-named RegExp methods call .exec
2031 + var execCalled = false;
2032 + var re = /a/;
2033 + re.exec = function () { execCalled = true; return null; };
2034 + if (KEY === 'split') {
2035 + // RegExp[@@split] doesn't call the regex's exec method, but first creates
2036 + // a new one. We need to return the patched regex when creating the new one.
2037 + re.constructor = {};
2038 + re.constructor[SPECIES] = function () { return re; };
2039 + }
2040 + re[SYMBOL]('');
2041 + return !execCalled;
2042 + }) : undefined;
2043 +
2044 + if (
2045 + !DELEGATES_TO_SYMBOL ||
2046 + !DELEGATES_TO_EXEC ||
2047 + (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
2048 + (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
2049 + ) {
2050 + var nativeRegExpMethod = /./[SYMBOL];
2051 + var fns = exec(
2052 + defined,
2053 + SYMBOL,
2054 + ''[KEY],
2055 + function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
2056 + if (regexp.exec === regexpExec) {
2057 + if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2058 + // The native String method already delegates to @@method (this
2059 + // polyfilled function), leasing to infinite recursion.
2060 + // We avoid it by directly calling the native @@method method.
2061 + return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
2062 + }
2063 + return { done: true, value: nativeMethod.call(str, regexp, arg2) };
2064 + }
2065 + return { done: false };
2066 + }
2067 + );
2068 + var strfn = fns[0];
2069 + var rxfn = fns[1];
2070 +
2071 + redefine(String.prototype, KEY, strfn);
2072 + hide(RegExp.prototype, SYMBOL, length == 2
2073 + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
2074 + // 21.2.5.11 RegExp.prototype[@@split](string, limit)
2075 + ? function (string, arg) { return rxfn.call(string, this, arg); }
2076 + // 21.2.5.6 RegExp.prototype[@@match](string)
2077 + // 21.2.5.9 RegExp.prototype[@@search](string)
2078 + : function (string) { return rxfn.call(string, this); }
2079 + );
2080 + }
2081 +};
2082 +
2083 +
2084 +/***/ }),
2085 +/* 102 */
2086 +/***/ (function(module, exports, __webpack_require__) {
2087 +
2088 +// 7.1.13 ToObject(argument)
2089 +var defined = __webpack_require__(43);
2090 +module.exports = function (it) {
2091 + return Object(defined(it));
2092 +};
2093 +
2094 +
2095 +/***/ }),
2096 +/* 103 */
2097 +/***/ (function(module, exports, __webpack_require__) {
2098 +
2099 +// fallback for non-array-like ES3 and non-enumerable old V8 strings
2100 +var cof = __webpack_require__(56);
2101 +// eslint-disable-next-line no-prototype-builtins
2102 +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2103 + return cof(it) == 'String' ? it.split('') : Object(it);
2104 +};
2105 +
2106 +
2107 +/***/ }),
2108 +/* 104 */
2109 +/***/ (function(module, exports, __webpack_require__) {
2110 +
2111 +// to indexed object, toObject with fallback for non-array-like ES3 strings
2112 +var IObject = __webpack_require__(125);
2113 +var defined = __webpack_require__(43);
2114 +module.exports = function (it) {
2115 + return IObject(defined(it));
2116 +};
2117 +
2118 +
2119 +/***/ }),
2120 +/* 105 */
2121 +/***/ (function(module, exports, __webpack_require__) {
2122 +
2123 +var arrayWithHoles = __webpack_require__(247);
2124 +
2125 +var iterableToArrayLimit = __webpack_require__(248);
2126 +
2127 +var unsupportedIterableToArray = __webpack_require__(194);
2128 +
2129 +var nonIterableRest = __webpack_require__(251);
2130 +
2131 +function _slicedToArray(arr, i) {
2132 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
2133 +}
2134 +
2135 +module.exports = _slicedToArray;
2136 +
2137 +/***/ }),
2138 +/* 106 */
2139 +/***/ (function(module, exports) {
2140 +
2141 +module.exports = function (bitmap, value) {
2142 + return {
2143 + enumerable: !(bitmap & 1),
2144 + configurable: !(bitmap & 2),
2145 + writable: !(bitmap & 4),
2146 + value: value
2147 + };
2148 +};
2149 +
2150 +
2151 +/***/ }),
2152 +/* 107 */
2153 +/***/ (function(module, exports, __webpack_require__) {
2154 +
2155 +module.exports = __webpack_require__(173);
2156 +
2157 +/***/ }),
2158 +/* 108 */
2159 +/***/ (function(module, exports, __webpack_require__) {
2160 +
2161 +"use strict";
2162 +
2163 +var at = __webpack_require__(146)(true);
2164 +
2165 + // `AdvanceStringIndex` abstract operation
2166 +// https://tc39.github.io/ecma262/#sec-advancestringindex
2167 +module.exports = function (S, index, unicode) {
2168 + return index + (unicode ? at(S, index).length : 1);
2169 +};
2170 +
2171 +
2172 +/***/ }),
2173 +/* 109 */
2174 +/***/ (function(module, exports, __webpack_require__) {
2175 +
2176 +"use strict";
2177 +
2178 +// 21.2.5.3 get RegExp.prototype.flags
2179 +var anObject = __webpack_require__(20);
2180 +module.exports = function () {
2181 + var that = anObject(this);
2182 + var result = '';
2183 + if (that.global) result += 'g';
2184 + if (that.ignoreCase) result += 'i';
2185 + if (that.multiline) result += 'm';
2186 + if (that.unicode) result += 'u';
2187 + if (that.sticky) result += 'y';
2188 + return result;
2189 +};
2190 +
2191 +
2192 +/***/ }),
2193 +/* 110 */
2194 +/***/ (function(module, exports, __webpack_require__) {
2195 +
2196 +module.exports = !__webpack_require__(14) && !__webpack_require__(21)(function () {
2197 + return Object.defineProperty(__webpack_require__(88)('div'), 'a', { get: function () { return 7; } }).a != 7;
2198 +});
2199 +
2200 +
2201 +/***/ }),
2202 +/* 111 */
2203 +/***/ (function(module, exports, __webpack_require__) {
2204 +
2205 +module.exports = __webpack_require__(157);
2206 +
2207 +/***/ }),
2208 +/* 112 */
2209 +/***/ (function(module, exports, __webpack_require__) {
2210 +
2211 +var has = __webpack_require__(17);
2212 +var toIObject = __webpack_require__(19);
2213 +var arrayIndexOf = __webpack_require__(162)(false);
2214 +var IE_PROTO = __webpack_require__(70)('IE_PROTO');
2215 +
2216 +module.exports = function (object, names) {
2217 + var O = toIObject(object);
2218 + var i = 0;
2219 + var result = [];
2220 + var key;
2221 + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
2222 + // Don't enum bug & hidden keys
2223 + while (names.length > i) if (has(O, key = names[i++])) {
2224 + ~arrayIndexOf(result, key) || result.push(key);
2225 + }
2226 + return result;
2227 +};
2228 +
2229 +
2230 +/***/ }),
2231 +/* 113 */
2232 +/***/ (function(module, exports, __webpack_require__) {
2233 +
2234 +var isObject = __webpack_require__(9);
2235 +module.exports = function (it, TYPE) {
2236 + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
2237 + return it;
2238 +};
2239 +
2240 +
2241 +/***/ }),
2242 +/* 114 */
2243 +/***/ (function(module, exports, __webpack_require__) {
2244 +
2245 +var isObject = __webpack_require__(31);
2246 +var document = __webpack_require__(18).document;
2247 +// typeof document.createElement is 'object' in old IE
2248 +var is = isObject(document) && isObject(document.createElement);
2249 +module.exports = function (it) {
2250 + return is ? document.createElement(it) : {};
2251 +};
2252 +
2253 +
2254 +/***/ }),
2255 +/* 115 */
2256 +/***/ (function(module, exports) {
2257 +
2258 +module.exports = false;
2259 +
2260 +
2261 +/***/ }),
2262 +/* 116 */
2263 +/***/ (function(module, exports, __webpack_require__) {
2264 +
2265 +module.exports = __webpack_require__(184);
2266 +
2267 +/***/ }),
2268 +/* 117 */
2269 +/***/ (function(module, exports, __webpack_require__) {
2270 +
2271 +var classof = __webpack_require__(99);
2272 +var ITERATOR = __webpack_require__(10)('iterator');
2273 +var Iterators = __webpack_require__(33);
2274 +module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
2275 + if (it != undefined) return it[ITERATOR]
2276 + || it['@@iterator']
2277 + || Iterators[classof(it)];
2278 +};
2279 +
2280 +
2281 +/***/ }),
2282 +/* 118 */
2283 +/***/ (function(module, exports, __webpack_require__) {
2284 +
2285 +// getting tag from 19.1.3.6 Object.prototype.toString()
2286 +var cof = __webpack_require__(52);
2287 +var TAG = __webpack_require__(13)('toStringTag');
2288 +// ES3 wrong here
2289 +var ARG = cof(function () { return arguments; }()) == 'Arguments';
2290 +
2291 +// fallback for IE11 Script Access Denied error
2292 +var tryGet = function (it, key) {
2293 + try {
2294 + return it[key];
2295 + } catch (e) { /* empty */ }
2296 +};
2297 +
2298 +module.exports = function (it) {
2299 + var O, T, B;
2300 + return it === undefined ? 'Undefined' : it === null ? 'Null'
2301 + // @@toStringTag case
2302 + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
2303 + // builtinTag case
2304 + : ARG ? cof(O)
2305 + // ES3 arguments fallback
2306 + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
2307 +};
2308 +
2309 +
2310 +/***/ }),
2311 +/* 119 */
2312 +/***/ (function(module, exports, __webpack_require__) {
2313 +
2314 +var _Object$setPrototypeOf = __webpack_require__(111);
2315 +
2316 +function _setPrototypeOf(o, p) {
2317 + module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
2318 + o.__proto__ = p;
2319 + return o;
2320 + };
2321 +
2322 + return _setPrototypeOf(o, p);
2323 +}
2324 +
2325 +module.exports = _setPrototypeOf;
2326 +
2327 +/***/ }),
2328 +/* 120 */
2329 +/***/ (function(module, exports) {
2330 +
2331 +module.exports = function (it, Constructor, name, forbiddenField) {
2332 + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
2333 + throw TypeError(name + ': incorrect invocation!');
2334 + } return it;
2335 +};
2336 +
2337 +
2338 +/***/ }),
2339 +/* 121 */
2340 +/***/ (function(module, exports, __webpack_require__) {
2341 +
2342 +var hide = __webpack_require__(22);
2343 +module.exports = function (target, src, safe) {
2344 + for (var key in src) {
2345 + if (safe && target[key]) target[key] = src[key];
2346 + else hide(target, key, src[key]);
2347 + } return target;
2348 +};
2349 +
2350 +
2351 +/***/ }),
2352 +/* 122 */,
2353 +/* 123 */,
2354 +/* 124 */
2355 +/***/ (function(module, exports, __webpack_require__) {
2356 +
2357 +"use strict";
2358 +
2359 +
2360 +var anObject = __webpack_require__(20);
2361 +var toLength = __webpack_require__(46);
2362 +var advanceStringIndex = __webpack_require__(108);
2363 +var regExpExec = __webpack_require__(100);
2364 +
2365 +// @@match logic
2366 +__webpack_require__(101)('match', 1, function (defined, MATCH, $match, maybeCallNative) {
2367 + return [
2368 + // `String.prototype.match` method
2369 + // https://tc39.github.io/ecma262/#sec-string.prototype.match
2370 + function match(regexp) {
2371 + var O = defined(this);
2372 + var fn = regexp == undefined ? undefined : regexp[MATCH];
2373 + return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
2374 + },
2375 + // `RegExp.prototype[@@match]` method
2376 + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
2377 + function (regexp) {
2378 + var res = maybeCallNative($match, regexp, this);
2379 + if (res.done) return res.value;
2380 + var rx = anObject(regexp);
2381 + var S = String(this);
2382 + if (!rx.global) return regExpExec(rx, S);
2383 + var fullUnicode = rx.unicode;
2384 + rx.lastIndex = 0;
2385 + var A = [];
2386 + var n = 0;
2387 + var result;
2388 + while ((result = regExpExec(rx, S)) !== null) {
2389 + var matchStr = String(result[0]);
2390 + A[n] = matchStr;
2391 + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2392 + n++;
2393 + }
2394 + return n === 0 ? null : A;
2395 + }
2396 + ];
2397 +});
2398 +
2399 +
2400 +/***/ }),
2401 +/* 125 */
2402 +/***/ (function(module, exports, __webpack_require__) {
2403 +
2404 +// fallback for non-array-like ES3 and non-enumerable old V8 strings
2405 +var cof = __webpack_require__(52);
2406 +// eslint-disable-next-line no-prototype-builtins
2407 +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2408 + return cof(it) == 'String' ? it.split('') : Object(it);
2409 +};
2410 +
2411 +
2412 +/***/ }),
2413 +/* 126 */
2414 +/***/ (function(module, exports, __webpack_require__) {
2415 +
2416 +// 7.2.8 IsRegExp(argument)
2417 +var isObject = __webpack_require__(31);
2418 +var cof = __webpack_require__(52);
2419 +var MATCH = __webpack_require__(13)('match');
2420 +module.exports = function (it) {
2421 + var isRegExp;
2422 + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
2423 +};
2424 +
2425 +
2426 +/***/ }),
2427 +/* 127 */
2428 +/***/ (function(module, exports, __webpack_require__) {
2429 +
2430 +// 7.1.1 ToPrimitive(input [, PreferredType])
2431 +var isObject = __webpack_require__(31);
2432 +// instead of the ES6 spec version, we didn't implement @@toPrimitive case
2433 +// and the second argument - flag - preferred type is a string
2434 +module.exports = function (it, S) {
2435 + if (!isObject(it)) return it;
2436 + var fn, val;
2437 + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2438 + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2439 + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2440 + throw TypeError("Can't convert object to primitive value");
2441 +};
2442 +
2443 +
2444 +/***/ }),
2445 +/* 128 */,
2446 +/* 129 */,
2447 +/* 130 */
2448 +/***/ (function(module, exports, __webpack_require__) {
2449 +
2450 +module.exports = __webpack_require__(160);
2451 +
2452 +/***/ }),
2453 +/* 131 */
2454 +/***/ (function(module, exports, __webpack_require__) {
2455 +
2456 +var dP = __webpack_require__(15);
2457 +var anObject = __webpack_require__(11);
2458 +var getKeys = __webpack_require__(37);
2459 +
2460 +module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
2461 + anObject(O);
2462 + var keys = getKeys(Properties);
2463 + var length = keys.length;
2464 + var i = 0;
2465 + var P;
2466 + while (length > i) dP.f(O, P = keys[i++], Properties[P]);
2467 + return O;
2468 +};
2469 +
2470 +
2471 +/***/ }),
2472 +/* 132 */
2473 +/***/ (function(module, exports, __webpack_require__) {
2474 +
2475 +var document = __webpack_require__(8).document;
2476 +module.exports = document && document.documentElement;
2477 +
2478 +
2479 +/***/ }),
2480 +/* 133 */
2481 +/***/ (function(module, exports) {
2482 +
2483 +// fast apply, http://jsperf.lnkit.com/fast-apply/5
2484 +module.exports = function (fn, args, that) {
2485 + var un = that === undefined;
2486 + switch (args.length) {
2487 + case 0: return un ? fn()
2488 + : fn.call(that);
2489 + case 1: return un ? fn(args[0])
2490 + : fn.call(that, args[0]);
2491 + case 2: return un ? fn(args[0], args[1])
2492 + : fn.call(that, args[0], args[1]);
2493 + case 3: return un ? fn(args[0], args[1], args[2])
2494 + : fn.call(that, args[0], args[1], args[2]);
2495 + case 4: return un ? fn(args[0], args[1], args[2], args[3])
2496 + : fn.call(that, args[0], args[1], args[2], args[3]);
2497 + } return fn.apply(that, args);
2498 +};
2499 +
2500 +
2501 +/***/ }),
2502 +/* 134 */,
2503 +/* 135 */
2504 +/***/ (function(module, exports, __webpack_require__) {
2505 +
2506 +module.exports = !__webpack_require__(28) && !__webpack_require__(36)(function () {
2507 + return Object.defineProperty(__webpack_require__(114)('div'), 'a', { get: function () { return 7; } }).a != 7;
2508 +});
2509 +
2510 +
2511 +/***/ }),
2512 +/* 136 */
2513 +/***/ (function(module, exports, __webpack_require__) {
2514 +
2515 +"use strict";
2516 +
2517 +// ECMAScript 6 symbols shim
2518 +var global = __webpack_require__(8);
2519 +var has = __webpack_require__(17);
2520 +var DESCRIPTORS = __webpack_require__(14);
2521 +var $export = __webpack_require__(7);
2522 +var redefine = __webpack_require__(89);
2523 +var META = __webpack_require__(66).KEY;
2524 +var $fails = __webpack_require__(21);
2525 +var shared = __webpack_require__(71);
2526 +var setToStringTag = __webpack_require__(53);
2527 +var uid = __webpack_require__(55);
2528 +var wks = __webpack_require__(10);
2529 +var wksExt = __webpack_require__(62);
2530 +var wksDefine = __webpack_require__(75);
2531 +var enumKeys = __webpack_require__(174);
2532 +var isArray = __webpack_require__(97);
2533 +var anObject = __webpack_require__(11);
2534 +var isObject = __webpack_require__(9);
2535 +var toObject = __webpack_require__(32);
2536 +var toIObject = __webpack_require__(19);
2537 +var toPrimitive = __webpack_require__(69);
2538 +var createDesc = __webpack_require__(42);
2539 +var _create = __webpack_require__(47);
2540 +var gOPNExt = __webpack_require__(175);
2541 +var $GOPD = __webpack_require__(48);
2542 +var $GOPS = __webpack_require__(67);
2543 +var $DP = __webpack_require__(15);
2544 +var $keys = __webpack_require__(37);
2545 +var gOPD = $GOPD.f;
2546 +var dP = $DP.f;
2547 +var gOPN = gOPNExt.f;
2548 +var $Symbol = global.Symbol;
2549 +var $JSON = global.JSON;
2550 +var _stringify = $JSON && $JSON.stringify;
2551 +var PROTOTYPE = 'prototype';
2552 +var HIDDEN = wks('_hidden');
2553 +var TO_PRIMITIVE = wks('toPrimitive');
2554 +var isEnum = {}.propertyIsEnumerable;
2555 +var SymbolRegistry = shared('symbol-registry');
2556 +var AllSymbols = shared('symbols');
2557 +var OPSymbols = shared('op-symbols');
2558 +var ObjectProto = Object[PROTOTYPE];
2559 +var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
2560 +var QObject = global.QObject;
2561 +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
2562 +var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
2563 +
2564 +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
2565 +var setSymbolDesc = DESCRIPTORS && $fails(function () {
2566 + return _create(dP({}, 'a', {
2567 + get: function () { return dP(this, 'a', { value: 7 }).a; }
2568 + })).a != 7;
2569 +}) ? function (it, key, D) {
2570 + var protoDesc = gOPD(ObjectProto, key);
2571 + if (protoDesc) delete ObjectProto[key];
2572 + dP(it, key, D);
2573 + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
2574 +} : dP;
2575 +
2576 +var wrap = function (tag) {
2577 + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
2578 + sym._k = tag;
2579 + return sym;
2580 +};
2581 +
2582 +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
2583 + return typeof it == 'symbol';
2584 +} : function (it) {
2585 + return it instanceof $Symbol;
2586 +};
2587 +
2588 +var $defineProperty = function defineProperty(it, key, D) {
2589 + if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
2590 + anObject(it);
2591 + key = toPrimitive(key, true);
2592 + anObject(D);
2593 + if (has(AllSymbols, key)) {
2594 + if (!D.enumerable) {
2595 + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
2596 + it[HIDDEN][key] = true;
2597 + } else {
2598 + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
2599 + D = _create(D, { enumerable: createDesc(0, false) });
2600 + } return setSymbolDesc(it, key, D);
2601 + } return dP(it, key, D);
2602 +};
2603 +var $defineProperties = function defineProperties(it, P) {
2604 + anObject(it);
2605 + var keys = enumKeys(P = toIObject(P));
2606 + var i = 0;
2607 + var l = keys.length;
2608 + var key;
2609 + while (l > i) $defineProperty(it, key = keys[i++], P[key]);
2610 + return it;
2611 +};
2612 +var $create = function create(it, P) {
2613 + return P === undefined ? _create(it) : $defineProperties(_create(it), P);
2614 +};
2615 +var $propertyIsEnumerable = function propertyIsEnumerable(key) {
2616 + var E = isEnum.call(this, key = toPrimitive(key, true));
2617 + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
2618 + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
2619 +};
2620 +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
2621 + it = toIObject(it);
2622 + key = toPrimitive(key, true);
2623 + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
2624 + var D = gOPD(it, key);
2625 + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
2626 + return D;
2627 +};
2628 +var $getOwnPropertyNames = function getOwnPropertyNames(it) {
2629 + var names = gOPN(toIObject(it));
2630 + var result = [];
2631 + var i = 0;
2632 + var key;
2633 + while (names.length > i) {
2634 + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
2635 + } return result;
2636 +};
2637 +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
2638 + var IS_OP = it === ObjectProto;
2639 + var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
2640 + var result = [];
2641 + var i = 0;
2642 + var key;
2643 + while (names.length > i) {
2644 + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
2645 + } return result;
2646 +};
2647 +
2648 +// 19.4.1.1 Symbol([description])
2649 +if (!USE_NATIVE) {
2650 + $Symbol = function Symbol() {
2651 + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
2652 + var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
2653 + var $set = function (value) {
2654 + if (this === ObjectProto) $set.call(OPSymbols, value);
2655 + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2656 + setSymbolDesc(this, tag, createDesc(1, value));
2657 + };
2658 + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
2659 + return wrap(tag);
2660 + };
2661 + redefine($Symbol[PROTOTYPE], 'toString', function toString() {
2662 + return this._k;
2663 + });
2664 +
2665 + $GOPD.f = $getOwnPropertyDescriptor;
2666 + $DP.f = $defineProperty;
2667 + __webpack_require__(91).f = gOPNExt.f = $getOwnPropertyNames;
2668 + __webpack_require__(49).f = $propertyIsEnumerable;
2669 + $GOPS.f = $getOwnPropertySymbols;
2670 +
2671 + if (DESCRIPTORS && !__webpack_require__(44)) {
2672 + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
2673 + }
2674 +
2675 + wksExt.f = function (name) {
2676 + return wrap(wks(name));
2677 + };
2678 +}
2679 +
2680 +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
2681 +
2682 +for (var es6Symbols = (
2683 + // 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
2684 + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
2685 +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
2686 +
2687 +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
2688 +
2689 +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
2690 + // 19.4.2.1 Symbol.for(key)
2691 + 'for': function (key) {
2692 + return has(SymbolRegistry, key += '')
2693 + ? SymbolRegistry[key]
2694 + : SymbolRegistry[key] = $Symbol(key);
2695 + },
2696 + // 19.4.2.5 Symbol.keyFor(sym)
2697 + keyFor: function keyFor(sym) {
2698 + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
2699 + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
2700 + },
2701 + useSetter: function () { setter = true; },
2702 + useSimple: function () { setter = false; }
2703 +});
2704 +
2705 +$export($export.S + $export.F * !USE_NATIVE, 'Object', {
2706 + // 19.1.2.2 Object.create(O [, Properties])
2707 + create: $create,
2708 + // 19.1.2.4 Object.defineProperty(O, P, Attributes)
2709 + defineProperty: $defineProperty,
2710 + // 19.1.2.3 Object.defineProperties(O, Properties)
2711 + defineProperties: $defineProperties,
2712 + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
2713 + getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
2714 + // 19.1.2.7 Object.getOwnPropertyNames(O)
2715 + getOwnPropertyNames: $getOwnPropertyNames,
2716 + // 19.1.2.8 Object.getOwnPropertySymbols(O)
2717 + getOwnPropertySymbols: $getOwnPropertySymbols
2718 +});
2719 +
2720 +// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
2721 +// https://bugs.chromium.org/p/v8/issues/detail?id=3443
2722 +var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
2723 +
2724 +$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
2725 + getOwnPropertySymbols: function getOwnPropertySymbols(it) {
2726 + return $GOPS.f(toObject(it));
2727 + }
2728 +});
2729 +
2730 +// 24.3.2 JSON.stringify(value [, replacer [, space]])
2731 +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
2732 + var S = $Symbol();
2733 + // MS Edge converts symbol values to JSON as {}
2734 + // WebKit converts symbol values to JSON as null
2735 + // V8 throws on boxed symbols
2736 + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
2737 +})), 'JSON', {
2738 + stringify: function stringify(it) {
2739 + var args = [it];
2740 + var i = 1;
2741 + var replacer, $replacer;
2742 + while (arguments.length > i) args.push(arguments[i++]);
2743 + $replacer = replacer = args[1];
2744 + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
2745 + if (!isArray(replacer)) replacer = function (key, value) {
2746 + if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
2747 + if (!isSymbol(value)) return value;
2748 + };
2749 + args[1] = replacer;
2750 + return _stringify.apply($JSON, args);
2751 + }
2752 +});
2753 +
2754 +// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
2755 +$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(22)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
2756 +// 19.4.3.5 Symbol.prototype[@@toStringTag]
2757 +setToStringTag($Symbol, 'Symbol');
2758 +// 20.2.1.9 Math[@@toStringTag]
2759 +setToStringTag(Math, 'Math', true);
2760 +// 24.3.3 JSON[@@toStringTag]
2761 +setToStringTag(global.JSON, 'JSON', true);
2762 +
2763 +
2764 +/***/ }),
2765 +/* 137 */,
2766 +/* 138 */
2767 +/***/ (function(module, exports, __webpack_require__) {
2768 +
2769 +var _Reflect$construct = __webpack_require__(95);
2770 +
2771 +function _isNativeReflectConstruct() {
2772 + if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
2773 + if (_Reflect$construct.sham) return false;
2774 + if (typeof Proxy === "function") return true;
2775 +
2776 + try {
2777 + Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
2778 + return true;
2779 + } catch (e) {
2780 + return false;
2781 + }
2782 +}
2783 +
2784 +module.exports = _isNativeReflectConstruct;
2785 +
2786 +/***/ }),
2787 +/* 139 */
2788 +/***/ (function(module, exports) {
2789 +
2790 +module.exports = function (done, value) {
2791 + return { value: value, done: !!done };
2792 +};
2793 +
2794 +
2795 +/***/ }),
2796 +/* 140 */
2797 +/***/ (function(module, exports, __webpack_require__) {
2798 +
2799 +module.exports = __webpack_require__(291);
2800 +
2801 +/***/ }),
2802 +/* 141 */
2803 +/***/ (function(module, exports, __webpack_require__) {
2804 +
2805 +"use strict";
2806 +
2807 +// https://github.com/tc39/Array.prototype.includes
2808 +var $export = __webpack_require__(38);
2809 +var $includes = __webpack_require__(145)(true);
2810 +
2811 +$export($export.P, 'Array', {
2812 + includes: function includes(el /* , fromIndex = 0 */) {
2813 + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2814 + }
2815 +});
2816 +
2817 +__webpack_require__(90)('includes');
2818 +
2819 +
2820 +/***/ }),
2821 +/* 142 */
2822 +/***/ (function(module, exports, __webpack_require__) {
2823 +
2824 +// 0 -> Array#forEach
2825 +// 1 -> Array#map
2826 +// 2 -> Array#filter
2827 +// 3 -> Array#some
2828 +// 4 -> Array#every
2829 +// 5 -> Array#find
2830 +// 6 -> Array#findIndex
2831 +var ctx = __webpack_require__(29);
2832 +var IObject = __webpack_require__(103);
2833 +var toObject = __webpack_require__(32);
2834 +var toLength = __webpack_require__(72);
2835 +var asc = __webpack_require__(245);
2836 +module.exports = function (TYPE, $create) {
2837 + var IS_MAP = TYPE == 1;
2838 + var IS_FILTER = TYPE == 2;
2839 + var IS_SOME = TYPE == 3;
2840 + var IS_EVERY = TYPE == 4;
2841 + var IS_FIND_INDEX = TYPE == 6;
2842 + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2843 + var create = $create || asc;
2844 + return function ($this, callbackfn, that) {
2845 + var O = toObject($this);
2846 + var self = IObject(O);
2847 + var f = ctx(callbackfn, that, 3);
2848 + var length = toLength(self.length);
2849 + var index = 0;
2850 + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
2851 + var val, res;
2852 + for (;length > index; index++) if (NO_HOLES || index in self) {
2853 + val = self[index];
2854 + res = f(val, index, O);
2855 + if (TYPE) {
2856 + if (IS_MAP) result[index] = res; // map
2857 + else if (res) switch (TYPE) {
2858 + case 3: return true; // some
2859 + case 5: return val; // find
2860 + case 6: return index; // findIndex
2861 + case 2: result.push(val); // filter
2862 + } else if (IS_EVERY) return false; // every
2863 + }
2864 + }
2865 + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
2866 + };
2867 +};
2868 +
2869 +
2870 +/***/ }),
2871 +/* 143 */
2872 +/***/ (function(module, exports, __webpack_require__) {
2873 +
2874 +// call something on iterator step with safe closing on error
2875 +var anObject = __webpack_require__(11);
2876 +module.exports = function (iterator, fn, value, entries) {
2877 + try {
2878 + return entries ? fn(anObject(value)[0], value[1]) : fn(value);
2879 + // 7.4.6 IteratorClose(iterator, completion)
2880 + } catch (e) {
2881 + var ret = iterator['return'];
2882 + if (ret !== undefined) anObject(ret.call(iterator));
2883 + throw e;
2884 + }
2885 +};
2886 +
2887 +
2888 +/***/ }),
2889 +/* 144 */
2890 +/***/ (function(module, exports, __webpack_require__) {
2891 +
2892 +// check on default Array iterator
2893 +var Iterators = __webpack_require__(33);
2894 +var ITERATOR = __webpack_require__(10)('iterator');
2895 +var ArrayProto = Array.prototype;
2896 +
2897 +module.exports = function (it) {
2898 + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
2899 +};
2900 +
2901 +
2902 +/***/ }),
2903 +/* 145 */
2904 +/***/ (function(module, exports, __webpack_require__) {
2905 +
2906 +// false -> Array#indexOf
2907 +// true -> Array#includes
2908 +var toIObject = __webpack_require__(104);
2909 +var toLength = __webpack_require__(46);
2910 +var toAbsoluteIndex = __webpack_require__(199);
2911 +module.exports = function (IS_INCLUDES) {
2912 + return function ($this, el, fromIndex) {
2913 + var O = toIObject($this);
2914 + var length = toLength(O.length);
2915 + var index = toAbsoluteIndex(fromIndex, length);
2916 + var value;
2917 + // Array#includes uses SameValueZero equality algorithm
2918 + // eslint-disable-next-line no-self-compare
2919 + if (IS_INCLUDES && el != el) while (length > index) {
2920 + value = O[index++];
2921 + // eslint-disable-next-line no-self-compare
2922 + if (value != value) return true;
2923 + // Array#indexOf ignores holes, Array#includes - not
2924 + } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
2925 + if (O[index] === el) return IS_INCLUDES || index || 0;
2926 + } return !IS_INCLUDES && -1;
2927 + };
2928 +};
2929 +
2930 +
2931 +/***/ }),
2932 +/* 146 */
2933 +/***/ (function(module, exports, __webpack_require__) {
2934 +
2935 +var toInteger = __webpack_require__(60);
2936 +var defined = __webpack_require__(43);
2937 +// true -> String#at
2938 +// false -> String#codePointAt
2939 +module.exports = function (TO_STRING) {
2940 + return function (that, pos) {
2941 + var s = String(defined(that));
2942 + var i = toInteger(pos);
2943 + var l = s.length;
2944 + var a, b;
2945 + if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
2946 + a = s.charCodeAt(i);
2947 + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
2948 + ? TO_STRING ? s.charAt(i) : a
2949 + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
2950 + };
2951 +};
2952 +
2953 +
2954 +/***/ }),
2955 +/* 147 */
2956 +/***/ (function(module, exports, __webpack_require__) {
2957 +
2958 +module.exports = __webpack_require__(76)('native-function-to-string', Function.toString);
2959 +
2960 +
2961 +/***/ }),
2962 +/* 148 */
2963 +/***/ (function(module, exports, __webpack_require__) {
2964 +
2965 +module.exports = __webpack_require__(168);
2966 +
2967 +/***/ }),
2968 +/* 149 */,
2969 +/* 150 */,
2970 +/* 151 */,
2971 +/* 152 */
2972 +/***/ (function(module, exports, __webpack_require__) {
2973 +
2974 +__webpack_require__(153);
2975 +var $Object = __webpack_require__(6).Object;
2976 +module.exports = function defineProperty(it, key, desc) {
2977 + return $Object.defineProperty(it, key, desc);
2978 +};
2979 +
2980 +
2981 +/***/ }),
2982 +/* 153 */
2983 +/***/ (function(module, exports, __webpack_require__) {
2984 +
2985 +var $export = __webpack_require__(7);
2986 +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
2987 +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f });
2988 +
2989 +
2990 +/***/ }),
2991 +/* 154 */
2992 +/***/ (function(module, exports, __webpack_require__) {
2993 +
2994 +module.exports = __webpack_require__(155);
2995 +
2996 +/***/ }),
2997 +/* 155 */
2998 +/***/ (function(module, exports, __webpack_require__) {
2999 +
3000 +__webpack_require__(156);
3001 +module.exports = __webpack_require__(6).Object.getPrototypeOf;
3002 +
3003 +
3004 +/***/ }),
3005 +/* 156 */
3006 +/***/ (function(module, exports, __webpack_require__) {
3007 +
3008 +// 19.1.2.9 Object.getPrototypeOf(O)
3009 +var toObject = __webpack_require__(32);
3010 +var $getPrototypeOf = __webpack_require__(63);
3011 +
3012 +__webpack_require__(78)('getPrototypeOf', function () {
3013 + return function getPrototypeOf(it) {
3014 + return $getPrototypeOf(toObject(it));
3015 + };
3016 +});
3017 +
3018 +
3019 +/***/ }),
3020 +/* 157 */
3021 +/***/ (function(module, exports, __webpack_require__) {
3022 +
3023 +__webpack_require__(158);
3024 +module.exports = __webpack_require__(6).Object.setPrototypeOf;
3025 +
3026 +
3027 +/***/ }),
3028 +/* 158 */
3029 +/***/ (function(module, exports, __webpack_require__) {
3030 +
3031 +// 19.1.3.19 Object.setPrototypeOf(O, proto)
3032 +var $export = __webpack_require__(7);
3033 +$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(159).set });
3034 +
3035 +
3036 +/***/ }),
3037 +/* 159 */
3038 +/***/ (function(module, exports, __webpack_require__) {
3039 +
3040 +// Works with __proto__ only. Old v8 can't work with null proto objects.
3041 +/* eslint-disable no-proto */
3042 +var isObject = __webpack_require__(9);
3043 +var anObject = __webpack_require__(11);
3044 +var check = function (O, proto) {
3045 + anObject(O);
3046 + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
3047 +};
3048 +module.exports = {
3049 + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
3050 + function (test, buggy, set) {
3051 + try {
3052 + set = __webpack_require__(29)(Function.call, __webpack_require__(48).f(Object.prototype, '__proto__').set, 2);
3053 + set(test, []);
3054 + buggy = !(test instanceof Array);
3055 + } catch (e) { buggy = true; }
3056 + return function setPrototypeOf(O, proto) {
3057 + check(O, proto);
3058 + if (buggy) O.__proto__ = proto;
3059 + else set(O, proto);
3060 + return O;
3061 + };
3062 + }({}, false) : undefined),
3063 + check: check
3064 +};
3065 +
3066 +
3067 +/***/ }),
3068 +/* 160 */
3069 +/***/ (function(module, exports, __webpack_require__) {
3070 +
3071 +__webpack_require__(161);
3072 +var $Object = __webpack_require__(6).Object;
3073 +module.exports = function create(P, D) {
3074 + return $Object.create(P, D);
3075 +};
3076 +
3077 +
3078 +/***/ }),
3079 +/* 161 */
3080 +/***/ (function(module, exports, __webpack_require__) {
3081 +
3082 +var $export = __webpack_require__(7);
3083 +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
3084 +$export($export.S, 'Object', { create: __webpack_require__(47) });
3085 +
3086 +
3087 +/***/ }),
3088 +/* 162 */
3089 +/***/ (function(module, exports, __webpack_require__) {
3090 +
3091 +// false -> Array#indexOf
3092 +// true -> Array#includes
3093 +var toIObject = __webpack_require__(19);
3094 +var toLength = __webpack_require__(72);
3095 +var toAbsoluteIndex = __webpack_require__(163);
3096 +module.exports = function (IS_INCLUDES) {
3097 + return function ($this, el, fromIndex) {
3098 + var O = toIObject($this);
3099 + var length = toLength(O.length);
3100 + var index = toAbsoluteIndex(fromIndex, length);
3101 + var value;
3102 + // Array#includes uses SameValueZero equality algorithm
3103 + // eslint-disable-next-line no-self-compare
3104 + if (IS_INCLUDES && el != el) while (length > index) {
3105 + value = O[index++];
3106 + // eslint-disable-next-line no-self-compare
3107 + if (value != value) return true;
3108 + // Array#indexOf ignores holes, Array#includes - not
3109 + } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
3110 + if (O[index] === el) return IS_INCLUDES || index || 0;
3111 + } return !IS_INCLUDES && -1;
3112 + };
3113 +};
3114 +
3115 +
3116 +/***/ }),
3117 +/* 163 */
3118 +/***/ (function(module, exports, __webpack_require__) {
3119 +
3120 +var toInteger = __webpack_require__(73);
3121 +var max = Math.max;
3122 +var min = Math.min;
3123 +module.exports = function (index, length) {
3124 + index = toInteger(index);
3125 + return index < 0 ? max(index + length, 0) : min(index, length);
3126 +};
3127 +
3128 +
3129 +/***/ }),
3130 +/* 164 */
3131 +/***/ (function(module, exports, __webpack_require__) {
3132 +
3133 +__webpack_require__(165);
3134 +module.exports = __webpack_require__(6).Reflect.construct;
3135 +
3136 +
3137 +/***/ }),
3138 +/* 165 */
3139 +/***/ (function(module, exports, __webpack_require__) {
3140 +
3141 +// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
3142 +var $export = __webpack_require__(7);
3143 +var create = __webpack_require__(47);
3144 +var aFunction = __webpack_require__(35);
3145 +var anObject = __webpack_require__(11);
3146 +var isObject = __webpack_require__(9);
3147 +var fails = __webpack_require__(21);
3148 +var bind = __webpack_require__(166);
3149 +var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
3150 +
3151 +// MS Edge supports only 2 arguments and argumentsList argument is optional
3152 +// FF Nightly sets third argument as `new.target`, but does not create `this` from it
3153 +var NEW_TARGET_BUG = fails(function () {
3154 + function F() { /* empty */ }
3155 + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
3156 +});
3157 +var ARGS_BUG = !fails(function () {
3158 + rConstruct(function () { /* empty */ });
3159 +});
3160 +
3161 +$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
3162 + construct: function construct(Target, args /* , newTarget */) {
3163 + aFunction(Target);
3164 + anObject(args);
3165 + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
3166 + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
3167 + if (Target == newTarget) {
3168 + // w/o altered newTarget, optimization for 0-4 arguments
3169 + switch (args.length) {
3170 + case 0: return new Target();
3171 + case 1: return new Target(args[0]);
3172 + case 2: return new Target(args[0], args[1]);
3173 + case 3: return new Target(args[0], args[1], args[2]);
3174 + case 4: return new Target(args[0], args[1], args[2], args[3]);
3175 + }
3176 + // w/o altered newTarget, lot of arguments case
3177 + var $args = [null];
3178 + $args.push.apply($args, args);
3179 + return new (bind.apply(Target, $args))();
3180 + }
3181 + // with altered newTarget, not support built-in constructors
3182 + var proto = newTarget.prototype;
3183 + var instance = create(isObject(proto) ? proto : Object.prototype);
3184 + var result = Function.apply.call(Target, instance, args);
3185 + return isObject(result) ? result : instance;
3186 + }
3187 +});
3188 +
3189 +
3190 +/***/ }),
3191 +/* 166 */
3192 +/***/ (function(module, exports, __webpack_require__) {
3193 +
3194 +"use strict";
3195 +
3196 +var aFunction = __webpack_require__(35);
3197 +var isObject = __webpack_require__(9);
3198 +var invoke = __webpack_require__(133);
3199 +var arraySlice = [].slice;
3200 +var factories = {};
3201 +
3202 +var construct = function (F, len, args) {
3203 + if (!(len in factories)) {
3204 + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
3205 + // eslint-disable-next-line no-new-func
3206 + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
3207 + } return factories[len](F, args);
3208 +};
3209 +
3210 +module.exports = Function.bind || function bind(that /* , ...args */) {
3211 + var fn = aFunction(this);
3212 + var partArgs = arraySlice.call(arguments, 1);
3213 + var bound = function (/* args... */) {
3214 + var args = partArgs.concat(arraySlice.call(arguments));
3215 + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
3216 + };
3217 + if (isObject(fn.prototype)) bound.prototype = fn.prototype;
3218 + return bound;
3219 +};
3220 +
3221 +
3222 +/***/ }),
3223 +/* 167 */
3224 +/***/ (function(module, exports, __webpack_require__) {
3225 +
3226 +var _typeof = __webpack_require__(50);
3227 +
3228 +var assertThisInitialized = __webpack_require__(45);
3229 +
3230 +function _possibleConstructorReturn(self, call) {
3231 + if (call && (_typeof(call) === "object" || typeof call === "function")) {
3232 + return call;
3233 + }
3234 +
3235 + return assertThisInitialized(self);
3236 +}
3237 +
3238 +module.exports = _possibleConstructorReturn;
3239 +
3240 +/***/ }),
3241 +/* 168 */
3242 +/***/ (function(module, exports, __webpack_require__) {
3243 +
3244 +__webpack_require__(57);
3245 +__webpack_require__(59);
3246 +module.exports = __webpack_require__(62).f('iterator');
3247 +
3248 +
3249 +/***/ }),
3250 +/* 169 */
3251 +/***/ (function(module, exports, __webpack_require__) {
3252 +
3253 +var toInteger = __webpack_require__(73);
3254 +var defined = __webpack_require__(65);
3255 +// true -> String#at
3256 +// false -> String#codePointAt
3257 +module.exports = function (TO_STRING) {
3258 + return function (that, pos) {
3259 + var s = String(defined(that));
3260 + var i = toInteger(pos);
3261 + var l = s.length;
3262 + var a, b;
3263 + if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
3264 + a = s.charCodeAt(i);
3265 + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
3266 + ? TO_STRING ? s.charAt(i) : a
3267 + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
3268 + };
3269 +};
3270 +
3271 +
3272 +/***/ }),
3273 +/* 170 */
3274 +/***/ (function(module, exports, __webpack_require__) {
3275 +
3276 +"use strict";
3277 +
3278 +var create = __webpack_require__(47);
3279 +var descriptor = __webpack_require__(42);
3280 +var setToStringTag = __webpack_require__(53);
3281 +var IteratorPrototype = {};
3282 +
3283 +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
3284 +__webpack_require__(22)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
3285 +
3286 +module.exports = function (Constructor, NAME, next) {
3287 + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
3288 + setToStringTag(Constructor, NAME + ' Iterator');
3289 +};
3290 +
3291 +
3292 +/***/ }),
3293 +/* 171 */
3294 +/***/ (function(module, exports, __webpack_require__) {
3295 +
3296 +"use strict";
3297 +
3298 +var addToUnscopables = __webpack_require__(172);
3299 +var step = __webpack_require__(139);
3300 +var Iterators = __webpack_require__(33);
3301 +var toIObject = __webpack_require__(19);
3302 +
3303 +// 22.1.3.4 Array.prototype.entries()
3304 +// 22.1.3.13 Array.prototype.keys()
3305 +// 22.1.3.29 Array.prototype.values()
3306 +// 22.1.3.30 Array.prototype[@@iterator]()
3307 +module.exports = __webpack_require__(96)(Array, 'Array', function (iterated, kind) {
3308 + this._t = toIObject(iterated); // target
3309 + this._i = 0; // next index
3310 + this._k = kind; // kind
3311 +// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
3312 +}, function () {
3313 + var O = this._t;
3314 + var kind = this._k;
3315 + var index = this._i++;
3316 + if (!O || index >= O.length) {
3317 + this._t = undefined;
3318 + return step(1);
3319 + }
3320 + if (kind == 'keys') return step(0, index);
3321 + if (kind == 'values') return step(0, O[index]);
3322 + return step(0, [index, O[index]]);
3323 +}, 'values');
3324 +
3325 +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
3326 +Iterators.Arguments = Iterators.Array;
3327 +
3328 +addToUnscopables('keys');
3329 +addToUnscopables('values');
3330 +addToUnscopables('entries');
3331 +
3332 +
3333 +/***/ }),
3334 +/* 172 */
3335 +/***/ (function(module, exports) {
3336 +
3337 +module.exports = function () { /* empty */ };
3338 +
3339 +
3340 +/***/ }),
3341 +/* 173 */
3342 +/***/ (function(module, exports, __webpack_require__) {
3343 +
3344 +__webpack_require__(136);
3345 +__webpack_require__(92);
3346 +__webpack_require__(176);
3347 +__webpack_require__(177);
3348 +module.exports = __webpack_require__(6).Symbol;
3349 +
3350 +
3351 +/***/ }),
3352 +/* 174 */
3353 +/***/ (function(module, exports, __webpack_require__) {
3354 +
3355 +// all enumerable object keys, includes symbols
3356 +var getKeys = __webpack_require__(37);
3357 +var gOPS = __webpack_require__(67);
3358 +var pIE = __webpack_require__(49);
3359 +module.exports = function (it) {
3360 + var result = getKeys(it);
3361 + var getSymbols = gOPS.f;
3362 + if (getSymbols) {
3363 + var symbols = getSymbols(it);
3364 + var isEnum = pIE.f;
3365 + var i = 0;
3366 + var key;
3367 + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
3368 + } return result;
3369 +};
3370 +
3371 +
3372 +/***/ }),
3373 +/* 175 */
3374 +/***/ (function(module, exports, __webpack_require__) {
3375 +
3376 +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
3377 +var toIObject = __webpack_require__(19);
3378 +var gOPN = __webpack_require__(91).f;
3379 +var toString = {}.toString;
3380 +
3381 +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
3382 + ? Object.getOwnPropertyNames(window) : [];
3383 +
3384 +var getWindowNames = function (it) {
3385 + try {
3386 + return gOPN(it);
3387 + } catch (e) {
3388 + return windowNames.slice();
3389 + }
3390 +};
3391 +
3392 +module.exports.f = function getOwnPropertyNames(it) {
3393 + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
3394 +};
3395 +
3396 +
3397 +/***/ }),
3398 +/* 176 */
3399 +/***/ (function(module, exports, __webpack_require__) {
3400 +
3401 +__webpack_require__(75)('asyncIterator');
3402 +
3403 +
3404 +/***/ }),
3405 +/* 177 */
3406 +/***/ (function(module, exports, __webpack_require__) {
3407 +
3408 +__webpack_require__(75)('observable');
3409 +
3410 +
3411 +/***/ }),
3412 +/* 178 */
3413 +/***/ (function(module, exports, __webpack_require__) {
3414 +
3415 +var ITERATOR = __webpack_require__(10)('iterator');
3416 +var SAFE_CLOSING = false;
3417 +
3418 +try {
3419 + var riter = [7][ITERATOR]();
3420 + riter['return'] = function () { SAFE_CLOSING = true; };
3421 + // eslint-disable-next-line no-throw-literal
3422 + Array.from(riter, function () { throw 2; });
3423 +} catch (e) { /* empty */ }
3424 +
3425 +module.exports = function (exec, skipClosing) {
3426 + if (!skipClosing && !SAFE_CLOSING) return false;
3427 + var safe = false;
3428 + try {
3429 + var arr = [7];
3430 + var iter = arr[ITERATOR]();
3431 + iter.next = function () { return { done: safe = true }; };
3432 + arr[ITERATOR] = function () { return iter; };
3433 + exec(arr);
3434 + } catch (e) { /* empty */ }
3435 + return safe;
3436 +};
3437 +
3438 +
3439 +/***/ }),
3440 +/* 179 */,
3441 +/* 180 */
3442 +/***/ (function(module, exports, __webpack_require__) {
3443 +
3444 +// 7.3.20 SpeciesConstructor(O, defaultConstructor)
3445 +var anObject = __webpack_require__(20);
3446 +var aFunction = __webpack_require__(98);
3447 +var SPECIES = __webpack_require__(13)('species');
3448 +module.exports = function (O, D) {
3449 + var C = anObject(O).constructor;
3450 + var S;
3451 + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
3452 +};
3453 +
3454 +
3455 +/***/ }),
3456 +/* 181 */,
3457 +/* 182 */
3458 +/***/ (function(module, exports, __webpack_require__) {
3459 +
3460 +var _Object$defineProperty = __webpack_require__(1);
3461 +
3462 +var _Object$defineProperties = __webpack_require__(273);
3463 +
3464 +var _Object$getOwnPropertyDescriptors = __webpack_require__(293);
3465 +
3466 +var _Object$getOwnPropertyDescriptor = __webpack_require__(116);
3467 +
3468 +var _Object$getOwnPropertySymbols = __webpack_require__(297);
3469 +
3470 +var _Object$keys = __webpack_require__(25);
3471 +
3472 +var defineProperty = __webpack_require__(27);
3473 +
3474 +function ownKeys(object, enumerableOnly) {
3475 + var keys = _Object$keys(object);
3476 +
3477 + if (_Object$getOwnPropertySymbols) {
3478 + var symbols = _Object$getOwnPropertySymbols(object);
3479 +
3480 + if (enumerableOnly) symbols = symbols.filter(function (sym) {
3481 + return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
3482 + });
3483 + keys.push.apply(keys, symbols);
3484 + }
3485 +
3486 + return keys;
3487 +}
3488 +
3489 +function _objectSpread2(target) {
3490 + for (var i = 1; i < arguments.length; i++) {
3491 + var source = arguments[i] != null ? arguments[i] : {};
3492 +
3493 + if (i % 2) {
3494 + ownKeys(Object(source), true).forEach(function (key) {
3495 + defineProperty(target, key, source[key]);
3496 + });
3497 + } else if (_Object$getOwnPropertyDescriptors) {
3498 + _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
3499 + } else {
3500 + ownKeys(Object(source)).forEach(function (key) {
3501 + _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
3502 + });
3503 + }
3504 + }
3505 +
3506 + return target;
3507 +}
3508 +
3509 +module.exports = _objectSpread2;
3510 +
3511 +/***/ }),
3512 +/* 183 */,
3513 +/* 184 */
3514 +/***/ (function(module, exports, __webpack_require__) {
3515 +
3516 +__webpack_require__(185);
3517 +var $Object = __webpack_require__(6).Object;
3518 +module.exports = function getOwnPropertyDescriptor(it, key) {
3519 + return $Object.getOwnPropertyDescriptor(it, key);
3520 +};
3521 +
3522 +
3523 +/***/ }),
3524 +/* 185 */
3525 +/***/ (function(module, exports, __webpack_require__) {
3526 +
3527 +// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
3528 +var toIObject = __webpack_require__(19);
3529 +var $getOwnPropertyDescriptor = __webpack_require__(48).f;
3530 +
3531 +__webpack_require__(78)('getOwnPropertyDescriptor', function () {
3532 + return function getOwnPropertyDescriptor(it, key) {
3533 + return $getOwnPropertyDescriptor(toIObject(it), key);
3534 + };
3535 +});
3536 +
3537 +
3538 +/***/ }),
3539 +/* 186 */
3540 +/***/ (function(module, exports, __webpack_require__) {
3541 +
3542 +module.exports = __webpack_require__(187);
3543 +
3544 +/***/ }),
3545 +/* 187 */
3546 +/***/ (function(module, exports, __webpack_require__) {
3547 +
3548 +__webpack_require__(188);
3549 +module.exports = __webpack_require__(6).Reflect.get;
3550 +
3551 +
3552 +/***/ }),
3553 +/* 188 */
3554 +/***/ (function(module, exports, __webpack_require__) {
3555 +
3556 +// 26.1.6 Reflect.get(target, propertyKey [, receiver])
3557 +var gOPD = __webpack_require__(48);
3558 +var getPrototypeOf = __webpack_require__(63);
3559 +var has = __webpack_require__(17);
3560 +var $export = __webpack_require__(7);
3561 +var isObject = __webpack_require__(9);
3562 +var anObject = __webpack_require__(11);
3563 +
3564 +function get(target, propertyKey /* , receiver */) {
3565 + var receiver = arguments.length < 3 ? target : arguments[2];
3566 + var desc, proto;
3567 + if (anObject(target) === receiver) return target[propertyKey];
3568 + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
3569 + ? desc.value
3570 + : desc.get !== undefined
3571 + ? desc.get.call(receiver)
3572 + : undefined;
3573 + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
3574 +}
3575 +
3576 +$export($export.S, 'Reflect', { get: get });
3577 +
3578 +
3579 +/***/ }),
3580 +/* 189 */
3581 +/***/ (function(module, exports, __webpack_require__) {
3582 +
3583 +var getPrototypeOf = __webpack_require__(16);
3584 +
3585 +function _superPropBase(object, property) {
3586 + while (!Object.prototype.hasOwnProperty.call(object, property)) {
3587 + object = getPrototypeOf(object);
3588 + if (object === null) break;
3589 + }
3590 +
3591 + return object;
3592 +}
3593 +
3594 +module.exports = _superPropBase;
3595 +
3596 +/***/ }),
3597 +/* 190 */,
3598 +/* 191 */,
3599 +/* 192 */,
3600 +/* 193 */
3601 +/***/ (function(module, exports, __webpack_require__) {
3602 +
3603 +"use strict";
3604 +
3605 +var $defineProperty = __webpack_require__(15);
3606 +var createDesc = __webpack_require__(42);
3607 +
3608 +module.exports = function (object, index, value) {
3609 + if (index in object) $defineProperty.f(object, index, createDesc(0, value));
3610 + else object[index] = value;
3611 +};
3612 +
3613 +
3614 +/***/ }),
3615 +/* 194 */
3616 +/***/ (function(module, exports, __webpack_require__) {
3617 +
3618 +var _Array$from = __webpack_require__(201);
3619 +
3620 +var arrayLikeToArray = __webpack_require__(200);
3621 +
3622 +function _unsupportedIterableToArray(o, minLen) {
3623 + if (!o) return;
3624 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
3625 + var n = Object.prototype.toString.call(o).slice(8, -1);
3626 + if (n === "Object" && o.constructor) n = o.constructor.name;
3627 + if (n === "Map" || n === "Set") return _Array$from(o);
3628 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3629 +}
3630 +
3631 +module.exports = _unsupportedIterableToArray;
3632 +
3633 +/***/ }),
3634 +/* 195 */
3635 +/***/ (function(module, exports, __webpack_require__) {
3636 +
3637 +var _Object$assign = __webpack_require__(140);
3638 +
3639 +function _extends() {
3640 + module.exports = _extends = _Object$assign || function (target) {
3641 + for (var i = 1; i < arguments.length; i++) {
3642 + var source = arguments[i];
3643 +
3644 + for (var key in source) {
3645 + if (Object.prototype.hasOwnProperty.call(source, key)) {
3646 + target[key] = source[key];
3647 + }
3648 + }
3649 + }
3650 +
3651 + return target;
3652 + };
3653 +
3654 + return _extends.apply(this, arguments);
3655 +}
3656 +
3657 +module.exports = _extends;
3658 +
3659 +/***/ }),
3660 +/* 196 */
3661 +/***/ (function(module, exports) {
3662 +
3663 +module.exports = wp.i18n;
3664 +
3665 +/***/ }),
3666 +/* 197 */
3667 +/***/ (function(module, exports, __webpack_require__) {
3668 +
3669 +"use strict";
3670 +
3671 +var regexpExec = __webpack_require__(94);
3672 +__webpack_require__(38)({
3673 + target: 'RegExp',
3674 + proto: true,
3675 + forced: regexpExec !== /./.exec
3676 +}, {
3677 + exec: regexpExec
3678 +});
3679 +
3680 +
3681 +/***/ }),
3682 +/* 198 */,
3683 +/* 199 */
3684 +/***/ (function(module, exports, __webpack_require__) {
3685 +
3686 +var toInteger = __webpack_require__(60);
3687 +var max = Math.max;
3688 +var min = Math.min;
3689 +module.exports = function (index, length) {
3690 + index = toInteger(index);
3691 + return index < 0 ? max(index + length, 0) : min(index, length);
3692 +};
3693 +
3694 +
3695 +/***/ }),
3696 +/* 200 */
3697 +/***/ (function(module, exports) {
3698 +
3699 +function _arrayLikeToArray(arr, len) {
3700 + if (len == null || len > arr.length) len = arr.length;
3701 +
3702 + for (var i = 0, arr2 = new Array(len); i < len; i++) {
3703 + arr2[i] = arr[i];
3704 + }
3705 +
3706 + return arr2;
3707 +}
3708 +
3709 +module.exports = _arrayLikeToArray;
3710 +
3711 +/***/ }),
3712 +/* 201 */
3713 +/***/ (function(module, exports, __webpack_require__) {
3714 +
3715 +module.exports = __webpack_require__(233);
3716 +
3717 +/***/ }),
3718 +/* 202 */
3719 +/***/ (function(module, exports, __webpack_require__) {
3720 +
3721 +__webpack_require__(203);
3722 +module.exports = __webpack_require__(6).Object.keys;
3723 +
3724 +
3725 +/***/ }),
3726 +/* 203 */
3727 +/***/ (function(module, exports, __webpack_require__) {
3728 +
3729 +// 19.1.2.14 Object.keys(O)
3730 +var toObject = __webpack_require__(32);
3731 +var $keys = __webpack_require__(37);
3732 +
3733 +__webpack_require__(78)('keys', function () {
3734 + return function keys(it) {
3735 + return $keys(toObject(it));
3736 + };
3737 +});
3738 +
3739 +
3740 +/***/ }),
3741 +/* 204 */,
3742 +/* 205 */,
3743 +/* 206 */,
3744 +/* 207 */,
3745 +/* 208 */,
3746 +/* 209 */,
3747 +/* 210 */,
3748 +/* 211 */,
3749 +/* 212 */
3750 +/***/ (function(module, exports, __webpack_require__) {
3751 +
3752 +module.exports = __webpack_require__(235);
3753 +
3754 +/***/ }),
3755 +/* 213 */
3756 +/***/ (function(module, exports, __webpack_require__) {
3757 +
3758 +"use strict";
3759 +
3760 +// 19.1.2.1 Object.assign(target, source, ...)
3761 +var DESCRIPTORS = __webpack_require__(14);
3762 +var getKeys = __webpack_require__(37);
3763 +var gOPS = __webpack_require__(67);
3764 +var pIE = __webpack_require__(49);
3765 +var toObject = __webpack_require__(32);
3766 +var IObject = __webpack_require__(103);
3767 +var $assign = Object.assign;
3768 +
3769 +// should work with symbols and should have deterministic property order (V8 bug)
3770 +module.exports = !$assign || __webpack_require__(21)(function () {
3771 + var A = {};
3772 + var B = {};
3773 + // eslint-disable-next-line no-undef
3774 + var S = Symbol();
3775 + var K = 'abcdefghijklmnopqrst';
3776 + A[S] = 7;
3777 + K.split('').forEach(function (k) { B[k] = k; });
3778 + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
3779 +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
3780 + var T = toObject(target);
3781 + var aLen = arguments.length;
3782 + var index = 1;
3783 + var getSymbols = gOPS.f;
3784 + var isEnum = pIE.f;
3785 + while (aLen > index) {
3786 + var S = IObject(arguments[index++]);
3787 + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
3788 + var length = keys.length;
3789 + var j = 0;
3790 + var key;
3791 + while (length > j) {
3792 + key = keys[j++];
3793 + if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
3794 + }
3795 + } return T;
3796 +} : $assign;
3797 +
3798 +
3799 +/***/ }),
3800 +/* 214 */,
3801 +/* 215 */,
3802 +/* 216 */,
3803 +/* 217 */,
3804 +/* 218 */,
3805 +/* 219 */,
3806 +/* 220 */,
3807 +/* 221 */
3808 +/***/ (function(module, exports, __webpack_require__) {
3809 +
3810 +__webpack_require__(222);
3811 +module.exports = __webpack_require__(6).Array.isArray;
3812 +
3813 +
3814 +/***/ }),
3815 +/* 222 */
3816 +/***/ (function(module, exports, __webpack_require__) {
3817 +
3818 +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
3819 +var $export = __webpack_require__(7);
3820 +
3821 +$export($export.S, 'Array', { isArray: __webpack_require__(97) });
3822 +
3823 +
3824 +/***/ }),
3825 +/* 223 */
3826 +/***/ (function(module, exports, __webpack_require__) {
3827 +
3828 +"use strict";
3829 +
3830 +var global = __webpack_require__(8);
3831 +var $export = __webpack_require__(7);
3832 +var meta = __webpack_require__(66);
3833 +var fails = __webpack_require__(21);
3834 +var hide = __webpack_require__(22);
3835 +var redefineAll = __webpack_require__(121);
3836 +var forOf = __webpack_require__(79);
3837 +var anInstance = __webpack_require__(120);
3838 +var isObject = __webpack_require__(9);
3839 +var setToStringTag = __webpack_require__(53);
3840 +var dP = __webpack_require__(15).f;
3841 +var each = __webpack_require__(142)(0);
3842 +var DESCRIPTORS = __webpack_require__(14);
3843 +
3844 +module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
3845 + var Base = global[NAME];
3846 + var C = Base;
3847 + var ADDER = IS_MAP ? 'set' : 'add';
3848 + var proto = C && C.prototype;
3849 + var O = {};
3850 + if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
3851 + new C().entries().next();
3852 + }))) {
3853 + // create collection constructor
3854 + C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
3855 + redefineAll(C.prototype, methods);
3856 + meta.NEED = true;
3857 + } else {
3858 + C = wrapper(function (target, iterable) {
3859 + anInstance(target, C, NAME, '_c');
3860 + target._c = new Base();
3861 + if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
3862 + });
3863 + each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
3864 + var IS_ADDER = KEY == 'add' || KEY == 'set';
3865 + if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
3866 + anInstance(this, C, KEY);
3867 + if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
3868 + var result = this._c[KEY](a === 0 ? 0 : a, b);
3869 + return IS_ADDER ? this : result;
3870 + });
3871 + });
3872 + IS_WEAK || dP(C.prototype, 'size', {
3873 + get: function () {
3874 + return this._c.size;
3875 + }
3876 + });
3877 + }
3878 +
3879 + setToStringTag(C, NAME);
3880 +
3881 + O[NAME] = C;
3882 + $export($export.G + $export.W + $export.F, O);
3883 +
3884 + if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
3885 +
3886 + return C;
3887 +};
3888 +
3889 +
3890 +/***/ }),
3891 +/* 224 */
3892 +/***/ (function(module, exports, __webpack_require__) {
3893 +
3894 +"use strict";
3895 +
3896 +// https://tc39.github.io/proposal-setmap-offrom/
3897 +var $export = __webpack_require__(7);
3898 +
3899 +module.exports = function (COLLECTION) {
3900 + $export($export.S, COLLECTION, { of: function of() {
3901 + var length = arguments.length;
3902 + var A = new Array(length);
3903 + while (length--) A[length] = arguments[length];
3904 + return new this(A);
3905 + } });
3906 +};
3907 +
3908 +
3909 +/***/ }),
3910 +/* 225 */
3911 +/***/ (function(module, exports, __webpack_require__) {
3912 +
3913 +"use strict";
3914 +
3915 +// https://tc39.github.io/proposal-setmap-offrom/
3916 +var $export = __webpack_require__(7);
3917 +var aFunction = __webpack_require__(35);
3918 +var ctx = __webpack_require__(29);
3919 +var forOf = __webpack_require__(79);
3920 +
3921 +module.exports = function (COLLECTION) {
3922 + $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
3923 + var mapFn = arguments[1];
3924 + var mapping, A, n, cb;
3925 + aFunction(this);
3926 + mapping = mapFn !== undefined;
3927 + if (mapping) aFunction(mapFn);
3928 + if (source == undefined) return new this();
3929 + A = [];
3930 + if (mapping) {
3931 + n = 0;
3932 + cb = ctx(mapFn, arguments[2], 2);
3933 + forOf(source, false, function (nextItem) {
3934 + A.push(cb(nextItem, n++));
3935 + });
3936 + } else {
3937 + forOf(source, false, A.push, A);
3938 + }
3939 + return new this(A);
3940 + } });
3941 +};
3942 +
3943 +
3944 +/***/ }),
3945 +/* 226 */,
3946 +/* 227 */,
3947 +/* 228 */,
3948 +/* 229 */,
3949 +/* 230 */,
3950 +/* 231 */,
3951 +/* 232 */,
3952 +/* 233 */
3953 +/***/ (function(module, exports, __webpack_require__) {
3954 +
3955 +__webpack_require__(57);
3956 +__webpack_require__(234);
3957 +module.exports = __webpack_require__(6).Array.from;
3958 +
3959 +
3960 +/***/ }),
3961 +/* 234 */
3962 +/***/ (function(module, exports, __webpack_require__) {
3963 +
3964 +"use strict";
3965 +
3966 +var ctx = __webpack_require__(29);
3967 +var $export = __webpack_require__(7);
3968 +var toObject = __webpack_require__(32);
3969 +var call = __webpack_require__(143);
3970 +var isArrayIter = __webpack_require__(144);
3971 +var toLength = __webpack_require__(72);
3972 +var createProperty = __webpack_require__(193);
3973 +var getIterFn = __webpack_require__(117);
3974 +
3975 +$export($export.S + $export.F * !__webpack_require__(178)(function (iter) { Array.from(iter); }), 'Array', {
3976 + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
3977 + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
3978 + var O = toObject(arrayLike);
3979 + var C = typeof this == 'function' ? this : Array;
3980 + var aLen = arguments.length;
3981 + var mapfn = aLen > 1 ? arguments[1] : undefined;
3982 + var mapping = mapfn !== undefined;
3983 + var index = 0;
3984 + var iterFn = getIterFn(O);
3985 + var length, result, step, iterator;
3986 + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
3987 + // if object isn't iterable or it's array with default iterator - use simple case
3988 + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
3989 + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
3990 + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
3991 + }
3992 + } else {
3993 + length = toLength(O.length);
3994 + for (result = new C(length); length > index; index++) {
3995 + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
3996 + }
3997 + }
3998 + result.length = index;
3999 + return result;
4000 + }
4001 +});
4002 +
4003 +
4004 +/***/ }),
4005 +/* 235 */
4006 +/***/ (function(module, exports, __webpack_require__) {
4007 +
4008 +__webpack_require__(59);
4009 +__webpack_require__(57);
4010 +module.exports = __webpack_require__(236);
4011 +
4012 +
4013 +/***/ }),
4014 +/* 236 */
4015 +/***/ (function(module, exports, __webpack_require__) {
4016 +
4017 +var classof = __webpack_require__(99);
4018 +var ITERATOR = __webpack_require__(10)('iterator');
4019 +var Iterators = __webpack_require__(33);
4020 +module.exports = __webpack_require__(6).isIterable = function (it) {
4021 + var O = Object(it);
4022 + return O[ITERATOR] !== undefined
4023 + || '@@iterator' in O
4024 + // eslint-disable-next-line no-prototype-builtins
4025 + || Iterators.hasOwnProperty(classof(O));
4026 +};
4027 +
4028 +
4029 +/***/ }),
4030 +/* 237 */,
4031 +/* 238 */
4032 +/***/ (function(module, exports, __webpack_require__) {
4033 +
4034 +module.exports = __webpack_require__(249);
4035 +
4036 +/***/ }),
4037 +/* 239 */,
4038 +/* 240 */
4039 +/***/ (function(module, exports, __webpack_require__) {
4040 +
4041 +"use strict";
4042 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
4043 +
4044 +var _interopRequireDefault = __webpack_require__(0);
4045 +
4046 +var _Object$defineProperty = __webpack_require__(1);
4047 +
4048 +_Object$defineProperty(exports, "__esModule", {
4049 + value: true
4050 +});
4051 +
4052 +exports.default = void 0;
4053 +
4054 +var _react = _interopRequireDefault(__webpack_require__(12));
4055 +
4056 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
4057 +
4058 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
4059 +
4060 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
4061 +
4062 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
4063 +
4064 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
4065 +
4066 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
4067 +
4068 +var _router = __webpack_require__(353);
4069 +
4070 +var _router2 = _interopRequireDefault(__webpack_require__(357));
4071 +
4072 +var _icon = _interopRequireDefault(__webpack_require__(358));
4073 +
4074 +__webpack_require__(652);
4075 +
4076 +var Button = /*#__PURE__*/function (_React$Component) {
4077 + (0, _inherits2.default)(Button, _React$Component);
4078 +
4079 + var _super = (0, _createSuper2.default)(Button);
4080 +
4081 + function Button() {
4082 + (0, _classCallCheck2.default)(this, Button);
4083 + return _super.apply(this, arguments);
4084 + }
4085 +
4086 + (0, _createClass2.default)(Button, [{
4087 + key: "getCssId",
4088 + value: function getCssId() {
4089 + return this.props.id;
4090 + }
4091 + }, {
4092 + key: "getClassName",
4093 + value: function getClassName() {
4094 + var baseClassName = 'eps-button',
4095 + classes = [baseClassName, this.props.className];
4096 + return classes.concat(this.getStylePropsClasses(baseClassName)).filter(function (classItem) {
4097 + return '' !== classItem;
4098 + }).join(' ');
4099 + }
4100 + }, {
4101 + key: "getStylePropsClasses",
4102 + value: function getStylePropsClasses(baseClassName) {
4103 + var _this = this;
4104 +
4105 + var styleProps = ['color', 'size', 'variant'],
4106 + stylePropClasses = [];
4107 + styleProps.forEach(function (styleProp) {
4108 + var stylePropValue = _this.props[styleProp];
4109 +
4110 + if (stylePropValue) {
4111 + stylePropClasses.push(baseClassName + '--' + stylePropValue);
4112 + }
4113 + });
4114 + return stylePropClasses;
4115 + }
4116 + }, {
4117 + key: "getIcon",
4118 + value: function getIcon() {
4119 + if (this.props.icon) {
4120 + var tooltip = this.props.tooltip || this.props.text;
4121 +
4122 + var icon = /*#__PURE__*/_react.default.createElement(_icon.default, {
4123 + className: this.props.icon,
4124 + "aria-hidden": "true",
4125 + title: tooltip
4126 + });
4127 +
4128 + var screenReaderText = '';
4129 +
4130 + if (this.props.hideText) {
4131 + screenReaderText = /*#__PURE__*/_react.default.createElement("span", {
4132 + className: "sr-only"
4133 + }, tooltip);
4134 + }
4135 +
4136 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon, screenReaderText);
4137 + }
4138 +
4139 + return '';
4140 + }
4141 + }, {
4142 + key: "getText",
4143 + value: function getText() {
4144 + return this.props.hideText ? '' : /*#__PURE__*/_react.default.createElement("span", null, this.props.text);
4145 + }
4146 + }, {
4147 + key: "render",
4148 + value: function render() {
4149 + var attributes = {},
4150 + id = this.getCssId(),
4151 + className = this.getClassName(); // Add attributes only if they are not empty.
4152 +
4153 + if (id) {
4154 + attributes.id = id;
4155 + }
4156 +
4157 + if (className) {
4158 + attributes.className = className;
4159 + }
4160 +
4161 + if (this.props.onClick) {
4162 + attributes.onClick = this.props.onClick;
4163 + }
4164 +
4165 + var buttonContent = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, this.getIcon(), this.getText());
4166 +
4167 + if (this.props.url) {
4168 + if (0 === this.props.url.indexOf('http')) {
4169 + return /*#__PURE__*/_react.default.createElement("a", (0, _extends2.default)({
4170 + href: this.props.url,
4171 + target: this.props.target
4172 + }, attributes), buttonContent);
4173 + } // @see https://reach.tech/router/example/active-links.
4174 +
4175 +
4176 + attributes.getProps = function (props) {
4177 + if (props.isCurrent) {
4178 + attributes.className += ' active';
4179 + }
4180 +
4181 + return {
4182 + className: attributes.className
4183 + };
4184 + };
4185 +
4186 + return /*#__PURE__*/_react.default.createElement(_router.LocationProvider, {
4187 + history: _router2.default.appHistory
4188 + }, /*#__PURE__*/_react.default.createElement(_router.Link, (0, _extends2.default)({
4189 + to: this.props.url
4190 + }, attributes), buttonContent));
4191 + }
4192 +
4193 + return /*#__PURE__*/_react.default.createElement("div", attributes, buttonContent);
4194 + }
4195 + }]);
4196 + return Button;
4197 +}(_react.default.Component);
4198 +
4199 +exports.default = Button;
4200 +(0, _defineProperty2.default)(Button, "propTypes", {
4201 + text: PropTypes.string.isRequired,
4202 + hideText: PropTypes.bool,
4203 + icon: PropTypes.string,
4204 + tooltip: PropTypes.string,
4205 + id: PropTypes.string,
4206 + className: PropTypes.string,
4207 + url: PropTypes.string,
4208 + onClick: PropTypes.func,
4209 + variant: PropTypes.string,
4210 + color: PropTypes.string,
4211 + size: PropTypes.string,
4212 + target: PropTypes.string
4213 +});
4214 +(0, _defineProperty2.default)(Button, "defaultProps", {
4215 + id: '',
4216 + className: '',
4217 + variant: '',
4218 + target: '_parent'
4219 +});
4220 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
4221 +
4222 +/***/ }),
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__(86);
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__(238);
4277 +
4278 +var _isIterable = __webpack_require__(212);
4279 +
4280 +var _Symbol = __webpack_require__(107);
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__(59);
4316 +__webpack_require__(57);
4317 +module.exports = __webpack_require__(250);
4318 +
4319 +
4320 +/***/ }),
4321 +/* 250 */
4322 +/***/ (function(module, exports, __webpack_require__) {
4323 +
4324 +var anObject = __webpack_require__(11);
4325 +var get = __webpack_require__(117);
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__(92);
4365 +__webpack_require__(59);
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__(142)(0);
4380 +var redefine = __webpack_require__(89);
4381 +var meta = __webpack_require__(66);
4382 +var assign = __webpack_require__(213);
4383 +var weak = __webpack_require__(266);
4384 +var isObject = __webpack_require__(9);
4385 +var validate = __webpack_require__(113);
4386 +var NATIVE_WEAK_MAP = __webpack_require__(113);
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__(223)(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__(121);
4446 +var getWeak = __webpack_require__(66).getWeak;
4447 +var anObject = __webpack_require__(11);
4448 +var isObject = __webpack_require__(9);
4449 +var anInstance = __webpack_require__(120);
4450 +var forOf = __webpack_require__(79);
4451 +var createArrayMethod = __webpack_require__(142);
4452 +var $has = __webpack_require__(17);
4453 +var validate = __webpack_require__(113);
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__(224)('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__(225)('WeakMap');
4545 +
4546 +
4547 +/***/ }),
4548 +/* 269 */,
4549 +/* 270 */,
4550 +/* 271 */,
4551 +/* 272 */,
4552 +/* 273 */
4553 +/***/ (function(module, exports, __webpack_require__) {
4554 +
4555 +module.exports = __webpack_require__(274);
4556 +
4557 +/***/ }),
4558 +/* 274 */
4559 +/***/ (function(module, exports, __webpack_require__) {
4560 +
4561 +__webpack_require__(275);
4562 +var $Object = __webpack_require__(6).Object;
4563 +module.exports = function defineProperties(T, D) {
4564 + return $Object.defineProperties(T, D);
4565 +};
4566 +
4567 +
4568 +/***/ }),
4569 +/* 275 */
4570 +/***/ (function(module, exports, __webpack_require__) {
4571 +
4572 +var $export = __webpack_require__(7);
4573 +// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
4574 +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(131) });
4575 +
4576 +
4577 +/***/ }),
4578 +/* 276 */,
4579 +/* 277 */,
4580 +/* 278 */,
4581 +/* 279 */
4582 +/***/ (function(module, exports, __webpack_require__) {
4583 +
4584 +"use strict";
356 4585 /**
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 - }));
4586 + * Copyright (c) 2013-present, Facebook, Inc.
4587 + *
4588 + * This source code is licensed under the MIT license found in the
4589 + * LICENSE file in the root directory of this source tree.
4590 + */
416 4591
417 -//#endregion
418 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
4592 +
4593 +
419 4594 /**
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 - }));
4595 + * Use invariant() to assert state which your program assumes to be true.
4596 + *
4597 + * Provide sprintf-style format (only %s is supported) and arguments
4598 + * to provide information about what broke and what you were
4599 + * expecting.
4600 + *
4601 + * The invariant message will be stripped in production, but the invariant
4602 + * will remain to ensure logic does not differ in production.
4603 + */
814 4604
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 - }));
4605 +var invariant = function(condition, format, a, b, c, d, e, f) {
4606 + if (false) {}
822 4607
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 - }
4608 + if (!condition) {
4609 + var error;
4610 + if (format === undefined) {
4611 + error = new Error(
4612 + 'Minified exception occurred; use the non-minified dev environment ' +
4613 + 'for the full error message and additional helpful warnings.'
4614 + );
4615 + } else {
4616 + var args = [a, b, c, d, e, f];
4617 + var argIndex = 0;
4618 + error = new Error(
4619 + format.replace(/%s/g, function() { return args[argIndex++]; })
4620 + );
4621 + error.name = 'Invariant Violation';
4622 + }
830 4623
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");
4624 + error.framesToPop = 1; // we don't care about invariant's own frame
4625 + throw error;
4626 + }
4627 +};
839 4628
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 - }
4629 +module.exports = invariant;
847 4630
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 4631
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");
4632 +/***/ }),
4633 +/* 280 */,
4634 +/* 281 */,
4635 +/* 282 */,
4636 +/* 283 */,
4637 +/* 284 */,
4638 +/* 285 */,
4639 +/* 286 */,
4640 +/* 287 */,
4641 +/* 288 */,
4642 +/* 289 */,
4643 +/* 290 */,
4644 +/* 291 */
4645 +/***/ (function(module, exports, __webpack_require__) {
867 4646
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");
4647 +__webpack_require__(292);
4648 +module.exports = __webpack_require__(6).Object.assign;
880 4649
881 -//#endregion
882 -//#region node_modules/invariant/browser.js
4650 +
4651 +/***/ }),
4652 +/* 292 */
4653 +/***/ (function(module, exports, __webpack_require__) {
4654 +
4655 +// 19.1.3.1 Object.assign(target, source)
4656 +var $export = __webpack_require__(7);
4657 +
4658 +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(213) });
4659 +
4660 +
4661 +/***/ }),
4662 +/* 293 */
4663 +/***/ (function(module, exports, __webpack_require__) {
4664 +
4665 +module.exports = __webpack_require__(294);
4666 +
4667 +/***/ }),
4668 +/* 294 */
4669 +/***/ (function(module, exports, __webpack_require__) {
4670 +
4671 +__webpack_require__(295);
4672 +module.exports = __webpack_require__(6).Object.getOwnPropertyDescriptors;
4673 +
4674 +
4675 +/***/ }),
4676 +/* 295 */
4677 +/***/ (function(module, exports, __webpack_require__) {
4678 +
4679 +// https://github.com/tc39/proposal-object-getownpropertydescriptors
4680 +var $export = __webpack_require__(7);
4681 +var ownKeys = __webpack_require__(296);
4682 +var toIObject = __webpack_require__(19);
4683 +var gOPD = __webpack_require__(48);
4684 +var createProperty = __webpack_require__(193);
4685 +
4686 +$export($export.S, 'Object', {
4687 + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
4688 + var O = toIObject(object);
4689 + var getDesc = gOPD.f;
4690 + var keys = ownKeys(O);
4691 + var result = {};
4692 + var i = 0;
4693 + var key, desc;
4694 + while (keys.length > i) {
4695 + desc = getDesc(O, key = keys[i++]);
4696 + if (desc !== undefined) createProperty(result, key, desc);
4697 + }
4698 + return result;
4699 + }
4700 +});
4701 +
4702 +
4703 +/***/ }),
4704 +/* 296 */
4705 +/***/ (function(module, exports, __webpack_require__) {
4706 +
4707 +// all object keys, includes non-enumerable and symbols
4708 +var gOPN = __webpack_require__(91);
4709 +var gOPS = __webpack_require__(67);
4710 +var anObject = __webpack_require__(11);
4711 +var Reflect = __webpack_require__(8).Reflect;
4712 +module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
4713 + var keys = gOPN.f(anObject(it));
4714 + var getSymbols = gOPS.f;
4715 + return getSymbols ? keys.concat(getSymbols(it)) : keys;
4716 +};
4717 +
4718 +
4719 +/***/ }),
4720 +/* 297 */
4721 +/***/ (function(module, exports, __webpack_require__) {
4722 +
4723 +module.exports = __webpack_require__(298);
4724 +
4725 +/***/ }),
4726 +/* 298 */
4727 +/***/ (function(module, exports, __webpack_require__) {
4728 +
4729 +__webpack_require__(136);
4730 +module.exports = __webpack_require__(6).Object.getOwnPropertySymbols;
4731 +
4732 +
4733 +/***/ }),
4734 +/* 299 */,
4735 +/* 300 */,
4736 +/* 301 */,
4737 +/* 302 */,
4738 +/* 303 */,
4739 +/* 304 */,
4740 +/* 305 */,
4741 +/* 306 */
4742 +/***/ (function(module, exports, __webpack_require__) {
4743 +
4744 +var arrayWithoutHoles = __webpack_require__(330);
4745 +
4746 +var iterableToArray = __webpack_require__(331);
4747 +
4748 +var unsupportedIterableToArray = __webpack_require__(194);
4749 +
4750 +var nonIterableSpread = __webpack_require__(332);
4751 +
4752 +function _toConsumableArray(arr) {
4753 + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
4754 +}
4755 +
4756 +module.exports = _toConsumableArray;
4757 +
4758 +/***/ }),
4759 +/* 307 */,
4760 +/* 308 */,
4761 +/* 309 */,
4762 +/* 310 */,
4763 +/* 311 */,
4764 +/* 312 */,
4765 +/* 313 */,
4766 +/* 314 */,
4767 +/* 315 */,
4768 +/* 316 */,
4769 +/* 317 */,
4770 +/* 318 */,
4771 +/* 319 */,
4772 +/* 320 */,
4773 +/* 321 */,
4774 +/* 322 */,
4775 +/* 323 */,
4776 +/* 324 */,
4777 +/* 325 */,
4778 +/* 326 */,
4779 +/* 327 */,
4780 +/* 328 */,
4781 +/* 329 */,
4782 +/* 330 */
4783 +/***/ (function(module, exports, __webpack_require__) {
4784 +
4785 +var _Array$isArray = __webpack_require__(86);
4786 +
4787 +var arrayLikeToArray = __webpack_require__(200);
4788 +
4789 +function _arrayWithoutHoles(arr) {
4790 + if (_Array$isArray(arr)) return arrayLikeToArray(arr);
4791 +}
4792 +
4793 +module.exports = _arrayWithoutHoles;
4794 +
4795 +/***/ }),
4796 +/* 331 */
4797 +/***/ (function(module, exports, __webpack_require__) {
4798 +
4799 +var _Array$from = __webpack_require__(201);
4800 +
4801 +var _isIterable = __webpack_require__(212);
4802 +
4803 +var _Symbol = __webpack_require__(107);
4804 +
4805 +function _iterableToArray(iter) {
4806 + if (typeof _Symbol !== "undefined" && _isIterable(Object(iter))) return _Array$from(iter);
4807 +}
4808 +
4809 +module.exports = _iterableToArray;
4810 +
4811 +/***/ }),
4812 +/* 332 */
4813 +/***/ (function(module, exports) {
4814 +
4815 +function _nonIterableSpread() {
4816 + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4817 +}
4818 +
4819 +module.exports = _nonIterableSpread;
4820 +
4821 +/***/ }),
4822 +/* 333 */,
4823 +/* 334 */,
4824 +/* 335 */,
4825 +/* 336 */,
4826 +/* 337 */,
4827 +/* 338 */
4828 +/***/ (function(module, exports, __webpack_require__) {
4829 +
4830 +"use strict";
883 4831 /**
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 - }));
4832 + * Copyright (c) 2013-present, Facebook, Inc.
4833 + *
4834 + * This source code is licensed under the MIT license found in the
4835 + * LICENSE file in the root directory of this source tree.
4836 + */
926 4837
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 4838
936 -//#endregion
937 -//#region node_modules/warning/warning.js
4839 +
4840 +var ReactPropTypesSecret = __webpack_require__(339);
4841 +
4842 +function emptyFunction() {}
4843 +function emptyFunctionWithReset() {}
4844 +emptyFunctionWithReset.resetWarningCache = emptyFunction;
4845 +
4846 +module.exports = function() {
4847 + function shim(props, propName, componentName, location, propFullName, secret) {
4848 + if (secret === ReactPropTypesSecret) {
4849 + // It is still safe when called from React.
4850 + return;
4851 + }
4852 + var err = new Error(
4853 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4854 + 'Use PropTypes.checkPropTypes() to call them. ' +
4855 + 'Read more at http://fb.me/use-check-prop-types'
4856 + );
4857 + err.name = 'Invariant Violation';
4858 + throw err;
4859 + };
4860 + shim.isRequired = shim;
4861 + function getShim() {
4862 + return shim;
4863 + };
4864 + // Important!
4865 + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
4866 + var ReactPropTypes = {
4867 + array: shim,
4868 + bool: shim,
4869 + func: shim,
4870 + number: shim,
4871 + object: shim,
4872 + string: shim,
4873 + symbol: shim,
4874 +
4875 + any: shim,
4876 + arrayOf: getShim,
4877 + element: shim,
4878 + elementType: shim,
4879 + instanceOf: getShim,
4880 + node: shim,
4881 + objectOf: getShim,
4882 + oneOf: getShim,
4883 + oneOfType: getShim,
4884 + shape: getShim,
4885 + exact: getShim,
4886 +
4887 + checkPropTypes: emptyFunctionWithReset,
4888 + resetWarningCache: emptyFunction
4889 + };
4890 +
4891 + ReactPropTypes.PropTypes = ReactPropTypes;
4892 +
4893 + return ReactPropTypes;
4894 +};
4895 +
4896 +
4897 +/***/ }),
4898 +/* 339 */
4899 +/***/ (function(module, exports, __webpack_require__) {
4900 +
4901 +"use strict";
938 4902 /**
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 - }));
4903 + * Copyright (c) 2013-present, Facebook, Inc.
4904 + *
4905 + * This source code is licensed under the MIT license found in the
4906 + * LICENSE file in the root directory of this source tree.
4907 + */
977 4908
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 4909
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 4910
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());
4911 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4912 +
4913 +module.exports = ReactPropTypesSecret;
4914 +
4915 +
4916 +/***/ }),
4917 +/* 340 */,
4918 +/* 341 */,
4919 +/* 342 */,
4920 +/* 343 */,
4921 +/* 344 */,
4922 +/* 345 */,
4923 +/* 346 */,
4924 +/* 347 */,
4925 +/* 348 */,
4926 +/* 349 */
4927 +/***/ (function(module, exports, __webpack_require__) {
4928 +
4929 +"use strict";
4930 +/* WEBPACK VAR INJECTION */(function(React, PropTypes) {
4931 +
4932 +var _Object$defineProperty = __webpack_require__(1);
4933 +
4934 +_Object$defineProperty(exports, "__esModule", {
4935 + value: true
4936 +});
4937 +
4938 +exports.default = Heading;
4939 +
4940 +__webpack_require__(141);
4941 +
4942 +function Heading(props) {
4943 + var baseClassName = 'eps',
4944 + allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
4945 + classes = [props.className],
4946 + tagName = allowedTags.includes(props.tag) ? props.tag : 'h1';
4947 +
4948 + if (props.variant) {
4949 + classes.push(baseClassName + '-' + props.variant);
4950 + }
4951 +
4952 + return React.createElement(tagName, {
4953 + className: classes.filter(function (classItem) {
4954 + return classItem;
4955 + }).join(' ')
4956 + }, props.children);
4957 +}
4958 +
4959 +Heading.propTypes = {
4960 + className: PropTypes.string,
4961 + children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired,
4962 + tag: PropTypes.string,
4963 + variant: PropTypes.string.isRequired
4964 +};
4965 +Heading.defaultProps = {
4966 + className: ''
4967 +};
4968 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(12), __webpack_require__(41)))
4969 +
4970 +/***/ }),
4971 +/* 350 */,
4972 +/* 351 */,
4973 +/* 352 */,
4974 +/* 353 */
4975 +/***/ (function(module, __webpack_exports__, __webpack_require__) {
4976 +
4977 +"use strict";
4978 +// ESM COMPAT FLAG
4979 +__webpack_require__.r(__webpack_exports__);
4980 +
4981 +// EXPORTS
4982 +__webpack_require__.d(__webpack_exports__, "Link", function() { return /* binding */ Link; });
4983 +__webpack_require__.d(__webpack_exports__, "Location", function() { return /* binding */ es_Location; });
4984 +__webpack_require__.d(__webpack_exports__, "LocationProvider", function() { return /* binding */ es_LocationProvider; });
4985 +__webpack_require__.d(__webpack_exports__, "Match", function() { return /* binding */ es_Match; });
4986 +__webpack_require__.d(__webpack_exports__, "Redirect", function() { return /* binding */ es_Redirect; });
4987 +__webpack_require__.d(__webpack_exports__, "Router", function() { return /* binding */ es_Router; });
4988 +__webpack_require__.d(__webpack_exports__, "ServerLocation", function() { return /* binding */ es_ServerLocation; });
4989 +__webpack_require__.d(__webpack_exports__, "createHistory", function() { return /* reexport */ createHistory; });
4990 +__webpack_require__.d(__webpack_exports__, "createMemorySource", function() { return /* reexport */ createMemorySource; });
4991 +__webpack_require__.d(__webpack_exports__, "isRedirect", function() { return /* binding */ isRedirect; });
4992 +__webpack_require__.d(__webpack_exports__, "navigate", function() { return /* reexport */ history_navigate; });
4993 +__webpack_require__.d(__webpack_exports__, "redirectTo", function() { return /* binding */ redirectTo; });
4994 +__webpack_require__.d(__webpack_exports__, "globalHistory", function() { return /* reexport */ globalHistory; });
4995 +__webpack_require__.d(__webpack_exports__, "matchPath", function() { return /* reexport */ utils_match; });
4996 +__webpack_require__.d(__webpack_exports__, "useLocation", function() { return /* binding */ es_useLocation; });
4997 +__webpack_require__.d(__webpack_exports__, "useNavigate", function() { return /* binding */ es_useNavigate; });
4998 +__webpack_require__.d(__webpack_exports__, "useParams", function() { return /* binding */ es_useParams; });
4999 +__webpack_require__.d(__webpack_exports__, "useMatch", function() { return /* binding */ es_useMatch; });
5000 +
5001 +// EXTERNAL MODULE: external "React"
5002 +var external_React_ = __webpack_require__(12);
5003 +var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
5004 +
5005 +// EXTERNAL MODULE: ../node_modules/prop-types/index.js
5006 +var prop_types = __webpack_require__(41);
5007 +
5008 +// EXTERNAL MODULE: ../node_modules/invariant/browser.js
5009 +var browser = __webpack_require__(279);
5010 +var browser_default = /*#__PURE__*/__webpack_require__.n(browser);
5011 +
5012 +// EXTERNAL MODULE: ../node_modules/create-react-context/lib/index.js
5013 +var lib = __webpack_require__(415);
5014 +var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
5015 +
5016 +// CONCATENATED MODULE: ../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js
1135 5017 /**
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 - }
5018 + * Copyright (c) 2013-present, Facebook, Inc.
5019 + *
5020 + * This source code is licensed under the MIT license found in the
5021 + * LICENSE file in the root directory of this source tree.
5022 + */
1201 5023
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 - };
5024 +function componentWillMount() {
5025 + // Call this.constructor.gDSFP to support sub-classes.
5026 + var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
5027 + if (state !== null && state !== undefined) {
5028 + this.setState(state);
5029 + }
5030 +}
1365 5031
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;
5032 +function componentWillReceiveProps(nextProps) {
5033 + // Call this.constructor.gDSFP to support sub-classes.
5034 + // Use the setState() updater to ensure state isn't stale in certain edge cases.
5035 + function updater(prevState) {
5036 + var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
5037 + return state !== null && state !== undefined ? state : null;
5038 + }
5039 + // Binding "this" is important for shallow renderer support.
5040 + this.setState(updater.bind(this));
5041 +}
1525 5042
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 - };
5043 +function componentWillUpdate(nextProps, nextState) {
5044 + try {
5045 + var prevProps = this.props;
5046 + var prevState = this.state;
5047 + this.props = nextProps;
5048 + this.state = nextState;
5049 + this.__reactInternalSnapshotFlag = true;
5050 + this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
5051 + prevProps,
5052 + prevState
5053 + );
5054 + } finally {
5055 + this.props = prevProps;
5056 + this.state = prevState;
5057 + }
5058 +}
1980 5059
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 - };
5060 +// React may warn about cWM/cWRP/cWU methods being deprecated.
5061 +// Add a flag to suppress these warnings for this special case.
5062 +componentWillMount.__suppressDeprecationWarning = true;
5063 +componentWillReceiveProps.__suppressDeprecationWarning = true;
5064 +componentWillUpdate.__suppressDeprecationWarning = true;
2099 5065
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 - }
5066 +function polyfill(Component) {
5067 + var prototype = Component.prototype;
2111 5068
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 - }
5069 + if (!prototype || !prototype.isReactComponent) {
5070 + throw new Error('Can only polyfill class components');
5071 + }
2125 5072
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: "" };
5073 + if (
5074 + typeof Component.getDerivedStateFromProps !== 'function' &&
5075 + typeof prototype.getSnapshotBeforeUpdate !== 'function'
5076 + ) {
5077 + return Component;
5078 + }
2139 5079
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 - });
5080 + // If new component APIs are defined, "unsafe" lifecycles won't be called.
5081 + // Error if any of these lifecycles are present,
5082 + // Because they would work differently between older and newer (16.3+) versions of React.
5083 + var foundWillMountName = null;
5084 + var foundWillReceivePropsName = null;
5085 + var foundWillUpdateName = null;
5086 + if (typeof prototype.componentWillMount === 'function') {
5087 + foundWillMountName = 'componentWillMount';
5088 + } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
5089 + foundWillMountName = 'UNSAFE_componentWillMount';
5090 + }
5091 + if (typeof prototype.componentWillReceiveProps === 'function') {
5092 + foundWillReceivePropsName = 'componentWillReceiveProps';
5093 + } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
5094 + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
5095 + }
5096 + if (typeof prototype.componentWillUpdate === 'function') {
5097 + foundWillUpdateName = 'componentWillUpdate';
5098 + } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
5099 + foundWillUpdateName = 'UNSAFE_componentWillUpdate';
5100 + }
5101 + if (
5102 + foundWillMountName !== null ||
5103 + foundWillReceivePropsName !== null ||
5104 + foundWillUpdateName !== null
5105 + ) {
5106 + var componentName = Component.displayName || Component.name;
5107 + var newApiName =
5108 + typeof Component.getDerivedStateFromProps === 'function'
5109 + ? 'getDerivedStateFromProps()'
5110 + : 'getSnapshotBeforeUpdate()';
2286 5111
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 - }));
5112 + throw Error(
5113 + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
5114 + componentName +
5115 + ' uses ' +
5116 + newApiName +
5117 + ' but also contains the following legacy lifecycles:' +
5118 + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
5119 + (foundWillReceivePropsName !== null
5120 + ? '\n ' + foundWillReceivePropsName
5121 + : '') +
5122 + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
5123 + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
5124 + 'https://fb.me/react-async-component-lifecycle-hooks'
5125 + );
5126 + }
2349 5127
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 - };
5128 + // React <= 16.2 does not support static getDerivedStateFromProps.
5129 + // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
5130 + // Newer versions of React will ignore these lifecycles if gDSFP exists.
5131 + if (typeof Component.getDerivedStateFromProps === 'function') {
5132 + prototype.componentWillMount = componentWillMount;
5133 + prototype.componentWillReceiveProps = componentWillReceiveProps;
5134 + }
2372 5135
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: "" };
5136 + // React <= 16.2 does not support getSnapshotBeforeUpdate.
5137 + // As a workaround, use cWU to invoke the new lifecycle.
5138 + // Newer versions of React will ignore that lifecycle if gSBU exists.
5139 + if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
5140 + if (typeof prototype.componentDidUpdate !== 'function') {
5141 + throw new Error(
5142 + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
5143 + );
5144 + }
2398 5145
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: "" };
5146 + prototype.componentWillUpdate = componentWillUpdate;
2422 5147
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: "" };
5148 + var componentDidUpdate = prototype.componentDidUpdate;
2446 5149
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 - };
5150 + prototype.componentDidUpdate = function componentDidUpdatePolyfill(
5151 + prevProps,
5152 + prevState,
5153 + maybeSnapshot
5154 + ) {
5155 + // 16.3+ will not execute our will-update method;
5156 + // It will pass a snapshot value to did-update though.
5157 + // Older versions will require our polyfilled will-update value.
5158 + // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
5159 + // Because for <= 15.x versions this might be a "prevContext" object.
5160 + // We also can't just check "__reactInternalSnapshot",
5161 + // Because get-snapshot might return a falsy value.
5162 + // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
5163 + var snapshot = this.__reactInternalSnapshotFlag
5164 + ? this.__reactInternalSnapshot
5165 + : maybeSnapshot;
2470 5166
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: "" };
5167 + componentDidUpdate.call(this, prevProps, prevState, snapshot);
5168 + };
5169 + }
2481 5170
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: "" };
5171 + return Component;
5172 +}
2505 5173
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 5174
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 5175
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;
5176 +// CONCATENATED MODULE: ../node_modules/@reach/router/es/lib/utils.js
2549 5177
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 5178
2594 -//#endregion
2595 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
2596 - function _arrayWithHoles(r) {
2597 - if (Array.isArray(r)) return r;
2598 - }
5179 +////////////////////////////////////////////////////////////////////////////////
5180 +// startsWith(string, search) - Check if `string` starts with `search`
5181 +var startsWith = function startsWith(string, search) {
5182 + return string.substr(0, search.length) === search;
5183 +};
2599 5184
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 - }
5185 +////////////////////////////////////////////////////////////////////////////////
5186 +// pick(routes, uri)
5187 +//
5188 +// Ranks and picks the best route to match. Each segment gets the highest
5189 +// amount of points, then the type of segment gets an additional amount of
5190 +// points where
5191 +//
5192 +// static > dynamic > splat > root
5193 +//
5194 +// This way we don't have to worry about the order of our routes, let the
5195 +// computers do it.
5196 +//
5197 +// A route looks like this
5198 +//
5199 +// { path, default, value }
5200 +//
5201 +// And a returned match looks like:
5202 +//
5203 +// { route, params, uri }
5204 +//
5205 +// I know, I should use TypeScript not comments for these types.
5206 +var utils_pick = function pick(routes, uri) {
5207 + var match = void 0;
5208 + var default_ = void 0;
2629 5209
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 - }
5210 + var _uri$split = uri.split("?"),
5211 + uriPathname = _uri$split[0];
2637 5212
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 - }
5213 + var uriSegments = segmentize(uriPathname);
5214 + var isRootUri = uriSegments[0] === "";
5215 + var ranked = rankRoutes(routes);
2647 5216
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 - }
5217 + for (var i = 0, l = ranked.length; i < l; i++) {
5218 + var missed = false;
5219 + var route = ranked[i].route;
2653 5220
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 - }
5221 + if (route.default) {
5222 + default_ = {
5223 + route: route,
5224 + params: {},
5225 + uri: uri
5226 + };
5227 + continue;
5228 + }
2659 5229
2660 -//#endregion
2661 -//#region app/assets/js/molecules/collapse-context.js
2662 - var CollapseContext = react.default.createContext();
5230 + var routeSegments = segmentize(route.path);
5231 + var params = {};
5232 + var max = Math.max(uriSegments.length, routeSegments.length);
5233 + var index = 0;
2663 5234
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 - };
5235 + for (; index < max; index++) {
5236 + var routeSegment = routeSegments[index];
5237 + var uriSegment = uriSegments[index];
2692 5238
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: "" };
5239 + if (isSplat(routeSegment)) {
5240 + // Hit a splat, just grab the rest, and return a match
5241 + // uri: /files/documents/work
5242 + // route: /files/*
5243 + var param = routeSegment.slice(1) || "*";
5244 + params[param] = uriSegments.slice(index).map(decodeURIComponent).join("/");
5245 + break;
5246 + }
2703 5247
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;
5248 + if (uriSegment === undefined) {
5249 + // URI is shorter than the route, no match
5250 + // uri: /users
5251 + // route: /users/:userId
5252 + missed = true;
5253 + break;
5254 + }
2741 5255
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 - };
5256 + var dynamicMatch = paramRe.exec(routeSegment);
2768 5257
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 - };
5258 + if (dynamicMatch && !isRootUri) {
5259 + var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1;
5260 + !matchIsNotReserved ? false ? undefined : browser_default()(false) : void 0;
5261 + var value = decodeURIComponent(uriSegment);
5262 + params[dynamicMatch[1]] = value;
5263 + } else if (routeSegment !== uriSegment) {
5264 + // Current segments don't match, not dynamic, not splat, so no match
5265 + // uri: /users/123/settings
5266 + // route: /users/:id/profile
5267 + missed = true;
5268 + break;
5269 + }
5270 + }
2790 5271
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 };
5272 + if (!missed) {
5273 + match = {
5274 + route: route,
5275 + params: params,
5276 + uri: "/" + uriSegments.slice(0, index).join("/")
5277 + };
5278 + break;
5279 + }
5280 + }
2797 5281
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 - };
5282 + return match || default_ || null;
5283 +};
2840 5284
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 - });
5285 +////////////////////////////////////////////////////////////////////////////////
5286 +// match(path, uri) - Matches just one path to a uri, also lol
5287 +var utils_match = function match(path, uri) {
5288 + return utils_pick([{ path: path }], uri);
5289 +};
2875 5290
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 - };
5291 +////////////////////////////////////////////////////////////////////////////////
5292 +// resolve(to, basepath)
5293 +//
5294 +// Resolves URIs as though every path is a directory, no files. Relative URIs
5295 +// in the browser can feel awkward because not only can you be "in a directory"
5296 +// you can be "at a file", too. For example
5297 +//
5298 +// browserSpecResolve('foo', '/bar/') => /bar/foo
5299 +// browserSpecResolve('foo', '/bar') => /foo
5300 +//
5301 +// But on the command line of a file system, it's not as complicated, you can't
5302 +// `cd` from a file, only directories. This way, links have to know less about
5303 +// their current path. To go deeper you can do this:
5304 +//
5305 +// <Link to="deeper"/>
5306 +// // instead of
5307 +// <Link to=`{${props.uri}/deeper}`/>
5308 +//
5309 +// Just like `cd`, if you want to go deeper from the command line, you do this:
5310 +//
5311 +// cd deeper
5312 +// # not
5313 +// cd $(pwd)/deeper
5314 +//
5315 +// By treating every path as a directory, linking to relative paths should
5316 +// require less contextual information and (fingers crossed) be more intuitive.
5317 +var resolve = function resolve(to, base) {
5318 + // /foo/bar, /baz/qux => /foo/bar
5319 + if (startsWith(to, "/")) {
5320 + return to;
5321 + }
2904 5322
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 - });
5323 + var _to$split = to.split("?"),
5324 + toPathname = _to$split[0],
5325 + toQuery = _to$split[1];
2938 5326
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 };
5327 + var _base$split = base.split("?"),
5328 + basePathname = _base$split[0];
2945 5329
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 - });
5330 + var toSegments = segmentize(toPathname);
5331 + var baseSegments = segmentize(basePathname);
2982 5332
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;
5333 + // ?a=b, /users?b=c => /users?a=b
5334 + if (toSegments[0] === "") {
5335 + return addQuery(basePathname, toQuery);
5336 + }
3031 5337
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: "" };
5338 + // profile, /users/789 => /users/789/profile
5339 + if (!startsWith(toSegments[0], ".")) {
5340 + var pathname = baseSegments.concat(toSegments).join("/");
5341 + return addQuery((basePathname === "/" ? "" : "/") + pathname, toQuery);
5342 + }
3075 5343
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 - };
5344 + // ./ /users/123 => /users/123
5345 + // ../ /users/123 => /users
5346 + // ../.. /users/123 => /
5347 + // ../../one /a/b/c/d => /a/b/one
5348 + // .././one /a/b/c/d => /a/b/c/one
5349 + var allSegments = baseSegments.concat(toSegments);
5350 + var segments = [];
5351 + for (var i = 0, l = allSegments.length; i < l; i++) {
5352 + var segment = allSegments[i];
5353 + if (segment === "..") segments.pop();else if (segment !== ".") segments.push(segment);
5354 + }
3153 5355
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 - };
5356 + return addQuery("/" + segments.join("/"), toQuery);
5357 +};
3224 5358
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 - });
5359 +////////////////////////////////////////////////////////////////////////////////
5360 +// insertParams(path, params)
3288 5361
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 - };
5362 +var insertParams = function insertParams(path, params) {
5363 + var _path$split = path.split("?"),
5364 + pathBase = _path$split[0],
5365 + _path$split$ = _path$split[1],
5366 + query = _path$split$ === undefined ? "" : _path$split$;
3311 5367
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 - }
5368 + var segments = segmentize(pathBase);
5369 + var constructedPath = "/" + segments.map(function (segment) {
5370 + var match = paramRe.exec(segment);
5371 + return match ? params[match[1]] : segment;
5372 + }).join("/");
5373 + var _params$location = params.location;
5374 + _params$location = _params$location === undefined ? {} : _params$location;
5375 + var _params$location$sear = _params$location.search,
5376 + search = _params$location$sear === undefined ? "" : _params$location$sear;
3317 5377
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 - }
5378 + var searchSplit = search.split("?")[1] || "";
5379 + constructedPath = addQuery(constructedPath, query, searchSplit);
5380 + return constructedPath;
5381 +};
3323 5382
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 - }
5383 +var validateRedirect = function validateRedirect(from, to) {
5384 + var filter = function filter(segment) {
5385 + return isDynamic(segment);
5386 + };
5387 + var fromString = segmentize(from).filter(filter).sort().join("/");
5388 + var toString = segmentize(to).filter(filter).sort().join("/");
5389 + return fromString === toString;
5390 +};
3329 5391
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 - }
5392 +////////////////////////////////////////////////////////////////////////////////
5393 +// Junk
5394 +var paramRe = /^:(.+)/;
3335 5395
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: "" };
5396 +var SEGMENT_POINTS = 4;
5397 +var STATIC_POINTS = 3;
5398 +var DYNAMIC_POINTS = 2;
5399 +var SPLAT_PENALTY = 1;
5400 +var ROOT_POINTS = 1;
3434 5401
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: "" };
5402 +var isRootSegment = function isRootSegment(segment) {
5403 + return segment === "";
5404 +};
5405 +var isDynamic = function isDynamic(segment) {
5406 + return paramRe.test(segment);
5407 +};
5408 +var isSplat = function isSplat(segment) {
5409 + return segment && segment[0] === "*";
5410 +};
3456 5411
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;
5412 +var rankRoute = function rankRoute(route, index) {
5413 + var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) {
5414 + score += SEGMENT_POINTS;
5415 + 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;
5416 + return score;
5417 + }, 0);
5418 + return { route: route, score: score, index: index };
5419 +};
3482 5420
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 - };
5421 +var rankRoutes = function rankRoutes(routes) {
5422 + return routes.map(rankRoute).sort(function (a, b) {
5423 + return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index;
5424 + });
5425 +};
3522 5426
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 - }
5427 +var segmentize = function segmentize(uri) {
5428 + return uri
5429 + // strip starting/ending slashes
5430 + .replace(/(^\/+|\/+$)/g, "").split("/");
5431 +};
3529 5432
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 - }
5433 +var addQuery = function addQuery(pathname) {
5434 + for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5435 + query[_key - 1] = arguments[_key];
5436 + }
3541 5437
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);
5438 + query = query.filter(function (q) {
5439 + return q && q.length > 0;
5440 + });
5441 + return pathname + (query && query.length > 0 ? "?" + query.join("&") : "");
5442 +};
3582 5443
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: "" };
5444 +var reservedNames = ["uri", "path"];
3593 5445
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 - };
5446 +/**
5447 + * Shallow compares two objects.
5448 + * @param {Object} obj1 The first object to compare.
5449 + * @param {Object} obj2 The second object to compare.
5450 + */
5451 +var shallowCompare = function shallowCompare(obj1, obj2) {
5452 + var obj1Keys = Object.keys(obj1);
5453 + return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) {
5454 + return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];
5455 + });
5456 +};
3611 5457
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: "" };
5458 +////////////////////////////////////////////////////////////////////////////////
3732 5459
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 - }
5460 +// CONCATENATED MODULE: ../node_modules/@reach/router/es/lib/history.js
5461 +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 5462
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 - }));
5463 +var getLocation = function getLocation(source) {
5464 + var _source$location = source.location,
5465 + search = _source$location.search,
5466 + hash = _source$location.hash,
5467 + href = _source$location.href,
5468 + origin = _source$location.origin,
5469 + protocol = _source$location.protocol,
5470 + host = _source$location.host,
5471 + hostname = _source$location.hostname,
5472 + port = _source$location.port;
5473 + var pathname = source.location.pathname;
3792 5474
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 5475
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 - }
5476 + if (!pathname && href && canUseDOM) {
5477 + var url = new URL(href);
5478 + pathname = url.pathname;
5479 + }
3832 5480
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: [] };
5481 + return {
5482 + pathname: encodeURI(decodeURI(pathname)),
5483 + search: search,
5484 + hash: hash,
5485 + href: href,
5486 + origin: origin,
5487 + protocol: protocol,
5488 + host: host,
5489 + hostname: hostname,
5490 + port: port,
5491 + state: source.history.state,
5492 + key: source.history.state && source.history.state.key || "initial"
5493 + };
5494 +};
3863 5495
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 };
5496 +var createHistory = function createHistory(source, options) {
5497 + var listeners = [];
5498 + var location = getLocation(source);
5499 + var transitioning = false;
5500 + var resolveTransition = function resolveTransition() {};
3870 5501
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: "" };
5502 + return {
5503 + get location() {
5504 + return location;
5505 + },
3881 5506
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 };
5507 + get transitioning() {
5508 + return transitioning;
5509 + },
3888 5510
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: "" };
5511 + _onTransitionComplete: function _onTransitionComplete() {
5512 + transitioning = false;
5513 + resolveTransition();
5514 + },
5515 + listen: function listen(listener) {
5516 + listeners.push(listener);
3916 5517
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");
5518 + var popstateListener = function popstateListener() {
5519 + location = getLocation(source);
5520 + listener({ location: location, action: "POP" });
5521 + };
3929 5522
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 - };
5523 + source.addEventListener("popstate", popstateListener);
3976 5524
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 - };
5525 + return function () {
5526 + source.removeEventListener("popstate", popstateListener);
5527 + listeners = listeners.filter(function (fn) {
5528 + return fn !== listener;
5529 + });
5530 + };
5531 + },
5532 + navigate: function navigate(to) {
5533 + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
5534 + state = _ref.state,
5535 + _ref$replace = _ref.replace,
5536 + replace = _ref$replace === undefined ? false : _ref$replace;
4010 5537
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 - };
5538 + if (typeof to === "number") {
5539 + source.history.go(to);
5540 + } else {
5541 + state = _extends({}, state, { key: Date.now() + "" });
5542 + // try...catch iOS Safari limits to 100 pushState calls
5543 + try {
5544 + if (transitioning || replace) {
5545 + source.history.replaceState(state, null, to);
5546 + } else {
5547 + source.history.pushState(state, null, to);
5548 + }
5549 + } catch (e) {
5550 + source.location[replace ? "replace" : "assign"](to);
5551 + }
5552 + }
4052 5553
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 - };
5554 + location = getLocation(source);
5555 + transitioning = true;
5556 + var transition = new Promise(function (res) {
5557 + return resolveTransition = res;
5558 + });
5559 + listeners.forEach(function (listener) {
5560 + return listener({ location: location, action: "PUSH" });
5561 + });
5562 + return transition;
5563 + }
5564 + };
5565 +};
4133 5566
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 - };
5567 +////////////////////////////////////////////////////////////////////////////////
5568 +// Stores history entries in memory for testing or other platforms like Native
5569 +var createMemorySource = function createMemorySource() {
5570 + var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/";
4198 5571
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 - }
5572 + var searchIndex = initialPath.indexOf("?");
5573 + var initialLocation = {
5574 + pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath,
5575 + search: searchIndex > -1 ? initialPath.substr(searchIndex) : ""
5576 + };
5577 + var index = 0;
5578 + var stack = [initialLocation];
5579 + var states = [null];
4227 5580
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 - }));
5581 + return {
5582 + get location() {
5583 + return stack[index];
5584 + },
5585 + addEventListener: function addEventListener(name, fn) {},
5586 + removeEventListener: function removeEventListener(name, fn) {},
4236 5587
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 - }));
5588 + history: {
5589 + get entries() {
5590 + return stack;
5591 + },
5592 + get index() {
5593 + return index;
5594 + },
5595 + get state() {
5596 + return states[index];
5597 + },
5598 + pushState: function pushState(state, _, uri) {
5599 + var _uri$split = uri.split("?"),
5600 + pathname = _uri$split[0],
5601 + _uri$split$ = _uri$split[1],
5602 + search = _uri$split$ === undefined ? "" : _uri$split$;
4263 5603
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 - }));
5604 + index++;
5605 + stack.push({ pathname: pathname, search: search.length ? "?" + search : search });
5606 + states.push(state);
5607 + },
5608 + replaceState: function replaceState(state, _, uri) {
5609 + var _uri$split2 = uri.split("?"),
5610 + pathname = _uri$split2[0],
5611 + _uri$split2$ = _uri$split2[1],
5612 + search = _uri$split2$ === undefined ? "" : _uri$split2$;
4357 5613
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 - }));
5614 + stack[index] = { pathname: pathname, search: search };
5615 + states[index] = state;
5616 + },
5617 + go: function go(to) {
5618 + var newIndex = index + to;
4395 5619
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 - }));
5620 + if (newIndex < 0 || newIndex > states.length - 1) {
5621 + return;
5622 + }
4406 5623
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 - }));
5624 + index = newIndex;
5625 + }
5626 + }
5627 + };
5628 +};
4419 5629
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 - }));
5630 +////////////////////////////////////////////////////////////////////////////////
5631 +// global history - uses window.history as the source if available, otherwise a
5632 +// memory history
5633 +var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
5634 +var getSource = function getSource() {
5635 + return canUseDOM ? window : createMemorySource();
5636 +};
4434 5637
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 - }));
5638 +var globalHistory = createHistory(getSource());
5639 +var history_navigate = globalHistory.navigate;
4448 5640
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 - }));
5641 +////////////////////////////////////////////////////////////////////////////////
4470 5642
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 5643
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 - }));
5644 +// CONCATENATED MODULE: ../node_modules/@reach/router/es/index.js
5645 +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 5646
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 - }
5647 +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 5648
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 - };
5649 +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4761 5650
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 - }
5651 +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 5652
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 - }
5653 +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 5654
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 - }
5655 +/* eslint-disable jsx-a11y/anchor-has-content */
4885 5656
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 5657
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 5658
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 5659
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 5660
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 5661
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 5662
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 5663
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 - };
5664 +////////////////////////////////////////////////////////////////////////////////
5139 5665
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 };
5666 +var es_createNamedContext = function createNamedContext(name, defaultValue) {
5667 + var Ctx = lib_default()(defaultValue);
5668 + Ctx.displayName = name;
5669 + return Ctx;
5670 +};
5189 5671
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 - }
5672 +////////////////////////////////////////////////////////////////////////////////
5673 +// Location Context/Provider
5674 +var LocationContext = es_createNamedContext("Location");
5237 5675
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 - }
5676 +// sets up a listener if there isn't one already so apps don't need to be
5677 +// wrapped in some top level provider
5678 +var es_Location = function Location(_ref) {
5679 + var children = _ref.children;
5680 + return external_React_default.a.createElement(
5681 + LocationContext.Consumer,
5682 + null,
5683 + function (context) {
5684 + return context ? children(context) : external_React_default.a.createElement(
5685 + es_LocationProvider,
5686 + null,
5687 + children
5688 + );
5689 + }
5690 + );
5691 +};
5256 5692
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 - }();
5693 +var es_LocationProvider = function (_React$Component) {
5694 + _inherits(LocationProvider, _React$Component);
5403 5695
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 - };
5696 + function LocationProvider() {
5697 + var _temp, _this, _ret;
5415 5698
5416 -//#endregion
5417 -//#region app/assets/js/app-packages.js
5699 + _classCallCheck(this, LocationProvider);
5700 +
5701 + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
5702 + args[_key] = arguments[_key];
5703 + }
5704 +
5705 + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
5706 + context: _this.getContext(),
5707 + refs: { unlisten: null }
5708 + }, _temp), _possibleConstructorReturn(_this, _ret);
5709 + }
5710 +
5711 + LocationProvider.prototype.getContext = function getContext() {
5712 + var _props$history = this.props.history,
5713 + navigate = _props$history.navigate,
5714 + location = _props$history.location;
5715 +
5716 + return { navigate: navigate, location: location };
5717 + };
5718 +
5719 + LocationProvider.prototype.componentDidCatch = function componentDidCatch(error, info) {
5720 + if (isRedirect(error)) {
5721 + var _navigate = this.props.history.navigate;
5722 +
5723 + _navigate(error.uri, { replace: true });
5724 + } else {
5725 + throw error;
5726 + }
5727 + };
5728 +
5729 + LocationProvider.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
5730 + if (prevState.context.location !== this.state.context.location) {
5731 + this.props.history._onTransitionComplete();
5732 + }
5733 + };
5734 +
5735 + LocationProvider.prototype.componentDidMount = function componentDidMount() {
5736 + var _this2 = this;
5737 +
5738 + var refs = this.state.refs,
5739 + history = this.props.history;
5740 +
5741 + history._onTransitionComplete();
5742 + refs.unlisten = history.listen(function () {
5743 + Promise.resolve().then(function () {
5744 + // TODO: replace rAF with react deferred update API when it's ready https://github.com/facebook/react/issues/13306
5745 + requestAnimationFrame(function () {
5746 + if (!_this2.unmounted) {
5747 + _this2.setState(function () {
5748 + return { context: _this2.getContext() };
5749 + });
5750 + }
5751 + });
5752 + });
5753 + });
5754 + };
5755 +
5756 + LocationProvider.prototype.componentWillUnmount = function componentWillUnmount() {
5757 + var refs = this.state.refs;
5758 +
5759 + this.unmounted = true;
5760 + refs.unlisten();
5761 + };
5762 +
5763 + LocationProvider.prototype.render = function render() {
5764 + var context = this.state.context,
5765 + children = this.props.children;
5766 +
5767 + return external_React_default.a.createElement(
5768 + LocationContext.Provider,
5769 + { value: context },
5770 + typeof children === "function" ? children(context) : children || null
5771 + );
5772 + };
5773 +
5774 + return LocationProvider;
5775 +}(external_React_default.a.Component);
5776 +
5777 +////////////////////////////////////////////////////////////////////////////////
5778 +
5779 +
5780 +es_LocationProvider.defaultProps = {
5781 + history: globalHistory
5782 +};
5783 + false ? undefined : void 0;
5784 +var es_ServerLocation = function ServerLocation(_ref2) {
5785 + var url = _ref2.url,
5786 + children = _ref2.children;
5787 +
5788 + var searchIndex = url.indexOf("?");
5789 + var searchExists = searchIndex > -1;
5790 + var pathname = void 0;
5791 + var search = "";
5792 + var hash = "";
5793 +
5794 + if (searchExists) {
5795 + pathname = url.substring(0, searchIndex);
5796 + search = url.substring(searchIndex);
5797 + } else {
5798 + pathname = url;
5799 + }
5800 +
5801 + return external_React_default.a.createElement(
5802 + LocationContext.Provider,
5803 + {
5804 + value: {
5805 + location: {
5806 + pathname: pathname,
5807 + search: search,
5808 + hash: hash
5809 + },
5810 + navigate: function navigate() {
5811 + throw new Error("You can't call navigate on the server.");
5812 + }
5813 + }
5814 + },
5815 + children
5816 + );
5817 +};
5818 +////////////////////////////////////////////////////////////////////////////////
5819 +// Sets baseuri and basepath for nested routers and links
5820 +var BaseContext = es_createNamedContext("Base", { baseuri: "/", basepath: "/" });
5821 +
5822 +////////////////////////////////////////////////////////////////////////////////
5823 +// The main event, welcome to the show everybody.
5824 +var es_Router = function Router(props) {
5825 + return external_React_default.a.createElement(
5826 + BaseContext.Consumer,
5827 + null,
5828 + function (baseContext) {
5829 + return external_React_default.a.createElement(
5830 + es_Location,
5831 + null,
5832 + function (locationContext) {
5833 + return external_React_default.a.createElement(es_RouterImpl, es_extends({}, baseContext, locationContext, props));
5834 + }
5835 + );
5836 + }
5837 + );
5838 +};
5839 +
5840 +var es_RouterImpl = function (_React$PureComponent) {
5841 + _inherits(RouterImpl, _React$PureComponent);
5842 +
5843 + function RouterImpl() {
5844 + _classCallCheck(this, RouterImpl);
5845 +
5846 + return _possibleConstructorReturn(this, _React$PureComponent.apply(this, arguments));
5847 + }
5848 +
5849 + RouterImpl.prototype.render = function render() {
5850 + var _props = this.props,
5851 + location = _props.location,
5852 + _navigate2 = _props.navigate,
5853 + basepath = _props.basepath,
5854 + primary = _props.primary,
5855 + children = _props.children,
5856 + baseuri = _props.baseuri,
5857 + _props$component = _props.component,
5858 + component = _props$component === undefined ? "div" : _props$component,
5859 + domProps = _objectWithoutProperties(_props, ["location", "navigate", "basepath", "primary", "children", "baseuri", "component"]);
5860 +
5861 + var routes = external_React_default.a.Children.toArray(children).reduce(function (array, child) {
5862 + var routes = es_createRoute(basepath)(child);
5863 + return array.concat(routes);
5864 + }, []);
5865 + var pathname = location.pathname;
5866 +
5867 +
5868 + var match = utils_pick(routes, pathname);
5869 +
5870 + if (match) {
5871 + var params = match.params,
5872 + uri = match.uri,
5873 + route = match.route,
5874 + element = match.route.value;
5875 +
5876 + // remove the /* from the end for child routes relative paths
5877 +
5878 + basepath = route.default ? basepath : route.path.replace(/\*$/, "");
5879 +
5880 + var props = es_extends({}, params, {
5881 + uri: uri,
5882 + location: location,
5883 + navigate: function navigate(to, options) {
5884 + return _navigate2(resolve(to, uri), options);
5885 + }
5886 + });
5887 +
5888 + var clone = external_React_default.a.cloneElement(element, props, element.props.children ? external_React_default.a.createElement(
5889 + es_Router,
5890 + { location: location, primary: primary },
5891 + element.props.children
5892 + ) : undefined);
5893 +
5894 + // using 'div' for < 16.3 support
5895 + var FocusWrapper = primary ? es_FocusHandler : component;
5896 + // don't pass any props to 'div'
5897 + var wrapperProps = primary ? es_extends({ uri: uri, location: location, component: component }, domProps) : domProps;
5898 +
5899 + return external_React_default.a.createElement(
5900 + BaseContext.Provider,
5901 + { value: { baseuri: uri, basepath: basepath } },
5902 + external_React_default.a.createElement(
5903 + FocusWrapper,
5904 + wrapperProps,
5905 + clone
5906 + )
5907 + );
5908 + } else {
5909 + // Not sure if we want this, would require index routes at every level
5910 + // warning(
5911 + // false,
5912 + // `<Router basepath="${basepath}">\n\nNothing matched:\n\t${
5913 + // location.pathname
5914 + // }\n\nPaths checked: \n\t${routes
5915 + // .map(route => route.path)
5916 + // .join(
5917 + // "\n\t"
5918 + // )}\n\nTo get rid of this warning, add a default NotFound component as child of Router:
5919 + // \n\tlet NotFound = () => <div>Not Found!</div>
5920 + // \n\t<Router>\n\t <NotFound default/>\n\t {/* ... */}\n\t</Router>`
5921 + // );
5922 + return null;
5923 + }
5924 + };
5925 +
5926 + return RouterImpl;
5927 +}(external_React_default.a.PureComponent);
5928 +
5929 +es_RouterImpl.defaultProps = {
5930 + primary: true
5931 +};
5932 +
5933 +
5934 +var FocusContext = es_createNamedContext("Focus");
5935 +
5936 +var es_FocusHandler = function FocusHandler(_ref3) {
5937 + var uri = _ref3.uri,
5938 + location = _ref3.location,
5939 + component = _ref3.component,
5940 + domProps = _objectWithoutProperties(_ref3, ["uri", "location", "component"]);
5941 +
5942 + return external_React_default.a.createElement(
5943 + FocusContext.Consumer,
5944 + null,
5945 + function (requestFocus) {
5946 + return external_React_default.a.createElement(es_FocusHandlerImpl, es_extends({}, domProps, {
5947 + component: component,
5948 + requestFocus: requestFocus,
5949 + uri: uri,
5950 + location: location
5951 + }));
5952 + }
5953 + );
5954 +};
5955 +
5956 +// don't focus on initial render
5957 +var initialRender = true;
5958 +var focusHandlerCount = 0;
5959 +
5960 +var es_FocusHandlerImpl = function (_React$Component2) {
5961 + _inherits(FocusHandlerImpl, _React$Component2);
5962 +
5963 + function FocusHandlerImpl() {
5964 + var _temp2, _this4, _ret2;
5965 +
5966 + _classCallCheck(this, FocusHandlerImpl);
5967 +
5968 + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5969 + args[_key2] = arguments[_key2];
5970 + }
5971 +
5972 + return _ret2 = (_temp2 = (_this4 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this4), _this4.state = {}, _this4.requestFocus = function (node) {
5973 + if (!_this4.state.shouldFocus && node) {
5974 + node.focus();
5975 + }
5976 + }, _temp2), _possibleConstructorReturn(_this4, _ret2);
5977 + }
5978 +
5979 + FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
5980 + var initial = prevState.uri == null;
5981 + if (initial) {
5982 + return es_extends({
5983 + shouldFocus: true
5984 + }, nextProps);
5985 + } else {
5986 + var myURIChanged = nextProps.uri !== prevState.uri;
5987 + var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri;
5988 + return es_extends({
5989 + shouldFocus: myURIChanged || navigatedUpToMe
5990 + }, nextProps);
5991 + }
5992 + };
5993 +
5994 + FocusHandlerImpl.prototype.componentDidMount = function componentDidMount() {
5995 + focusHandlerCount++;
5996 + this.focus();
5997 + };
5998 +
5999 + FocusHandlerImpl.prototype.componentWillUnmount = function componentWillUnmount() {
6000 + focusHandlerCount--;
6001 + if (focusHandlerCount === 0) {
6002 + initialRender = true;
6003 + }
6004 + };
6005 +
6006 + FocusHandlerImpl.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
6007 + if (prevProps.location !== this.props.location && this.state.shouldFocus) {
6008 + this.focus();
6009 + }
6010 + };
6011 +
6012 + FocusHandlerImpl.prototype.focus = function focus() {
6013 + if (false) {}
6014 +
6015 + var requestFocus = this.props.requestFocus;
6016 +
6017 +
6018 + if (requestFocus) {
6019 + requestFocus(this.node);
6020 + } else {
6021 + if (initialRender) {
6022 + initialRender = false;
6023 + } else if (this.node) {
6024 + // React polyfills [autofocus] and it fires earlier than cDM,
6025 + // so we were stealing focus away, this line prevents that.
6026 + if (!this.node.contains(document.activeElement)) {
6027 + this.node.focus();
6028 + }
6029 + }
6030 + }
6031 + };
6032 +
6033 + FocusHandlerImpl.prototype.render = function render() {
6034 + var _this5 = this;
6035 +
6036 + var _props2 = this.props,
6037 + children = _props2.children,
6038 + style = _props2.style,
6039 + requestFocus = _props2.requestFocus,
6040 + _props2$component = _props2.component,
6041 + Comp = _props2$component === undefined ? "div" : _props2$component,
6042 + uri = _props2.uri,
6043 + location = _props2.location,
6044 + domProps = _objectWithoutProperties(_props2, ["children", "style", "requestFocus", "component", "uri", "location"]);
6045 +
6046 + return external_React_default.a.createElement(
6047 + Comp,
6048 + es_extends({
6049 + style: es_extends({ outline: "none" }, style),
6050 + tabIndex: "-1",
6051 + ref: function ref(n) {
6052 + return _this5.node = n;
6053 + }
6054 + }, domProps),
6055 + external_React_default.a.createElement(
6056 + FocusContext.Provider,
6057 + { value: this.requestFocus },
6058 + this.props.children
6059 + )
6060 + );
6061 + };
6062 +
6063 + return FocusHandlerImpl;
6064 +}(external_React_default.a.Component);
6065 +
6066 +polyfill(es_FocusHandlerImpl);
6067 +
6068 +var k = function k() {};
6069 +
6070 +////////////////////////////////////////////////////////////////////////////////
6071 +var forwardRef = external_React_default.a.forwardRef;
6072 +
6073 +if (typeof forwardRef === "undefined") {
6074 + forwardRef = function forwardRef(C) {
6075 + return C;
6076 + };
6077 +}
6078 +
6079 +var Link = forwardRef(function (_ref4, ref) {
6080 + var innerRef = _ref4.innerRef,
6081 + props = _objectWithoutProperties(_ref4, ["innerRef"]);
6082 +
6083 + return external_React_default.a.createElement(
6084 + BaseContext.Consumer,
6085 + null,
6086 + function (_ref5) {
6087 + var basepath = _ref5.basepath,
6088 + baseuri = _ref5.baseuri;
6089 + return external_React_default.a.createElement(
6090 + es_Location,
6091 + null,
6092 + function (_ref6) {
6093 + var location = _ref6.location,
6094 + navigate = _ref6.navigate;
6095 +
6096 + var to = props.to,
6097 + state = props.state,
6098 + replace = props.replace,
6099 + _props$getProps = props.getProps,
6100 + getProps = _props$getProps === undefined ? k : _props$getProps,
6101 + anchorProps = _objectWithoutProperties(props, ["to", "state", "replace", "getProps"]);
6102 +
6103 + var href = resolve(to, baseuri);
6104 + var encodedHref = encodeURI(href);
6105 + var isCurrent = location.pathname === encodedHref;
6106 + var isPartiallyCurrent = startsWith(location.pathname, encodedHref);
6107 +
6108 + return external_React_default.a.createElement("a", es_extends({
6109 + ref: ref || innerRef,
6110 + "aria-current": isCurrent ? "page" : undefined
6111 + }, anchorProps, getProps({ isCurrent: isCurrent, isPartiallyCurrent: isPartiallyCurrent, href: href, location: location }), {
6112 + href: href,
6113 + onClick: function onClick(event) {
6114 + if (anchorProps.onClick) anchorProps.onClick(event);
6115 + if (shouldNavigate(event)) {
6116 + event.preventDefault();
6117 + var shouldReplace = replace;
6118 + if (typeof replace !== "boolean" && isCurrent) {
6119 + var _location$state = es_extends({}, location.state),
6120 + key = _location$state.key,
6121 + restState = _objectWithoutProperties(_location$state, ["key"]);
6122 +
6123 + shouldReplace = shallowCompare(es_extends({}, state), restState);
6124 + }
6125 + navigate(href, {
6126 + state: state,
6127 + replace: shouldReplace
6128 + });
6129 + }
6130 + }
6131 + }));
6132 + }
6133 + );
6134 + }
6135 + );
6136 +});
6137 +
6138 +Link.displayName = "Link";
6139 +
6140 + false ? undefined : void 0;
6141 +
6142 +////////////////////////////////////////////////////////////////////////////////
6143 +function RedirectRequest(uri) {
6144 + this.uri = uri;
6145 +}
6146 +
6147 +var isRedirect = function isRedirect(o) {
6148 + return o instanceof RedirectRequest;
6149 +};
6150 +
6151 +var redirectTo = function redirectTo(to) {
6152 + throw new RedirectRequest(to);
6153 +};
6154 +
6155 +var es_RedirectImpl = function (_React$Component3) {
6156 + _inherits(RedirectImpl, _React$Component3);
6157 +
6158 + function RedirectImpl() {
6159 + _classCallCheck(this, RedirectImpl);
6160 +
6161 + return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
6162 + }
6163 +
6164 + // Support React < 16 with this hook
6165 + RedirectImpl.prototype.componentDidMount = function componentDidMount() {
6166 + var _props3 = this.props,
6167 + navigate = _props3.navigate,
6168 + to = _props3.to,
6169 + from = _props3.from,
6170 + _props3$replace = _props3.replace,
6171 + replace = _props3$replace === undefined ? true : _props3$replace,
6172 + state = _props3.state,
6173 + noThrow = _props3.noThrow,
6174 + baseuri = _props3.baseuri,
6175 + props = _objectWithoutProperties(_props3, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]);
6176 +
6177 + Promise.resolve().then(function () {
6178 + var resolvedTo = resolve(to, baseuri);
6179 + navigate(insertParams(resolvedTo, props), { replace: replace, state: state });
6180 + });
6181 + };
6182 +
6183 + RedirectImpl.prototype.render = function render() {
6184 + var _props4 = this.props,
6185 + navigate = _props4.navigate,
6186 + to = _props4.to,
6187 + from = _props4.from,
6188 + replace = _props4.replace,
6189 + state = _props4.state,
6190 + noThrow = _props4.noThrow,
6191 + baseuri = _props4.baseuri,
6192 + props = _objectWithoutProperties(_props4, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]);
6193 +
6194 + var resolvedTo = resolve(to, baseuri);
6195 + if (!noThrow) redirectTo(insertParams(resolvedTo, props));
6196 + return null;
6197 + };
6198 +
6199 + return RedirectImpl;
6200 +}(external_React_default.a.Component);
6201 +
6202 +var es_Redirect = function Redirect(props) {
6203 + return external_React_default.a.createElement(
6204 + BaseContext.Consumer,
6205 + null,
6206 + function (_ref7) {
6207 + var baseuri = _ref7.baseuri;
6208 + return external_React_default.a.createElement(
6209 + es_Location,
6210 + null,
6211 + function (locationContext) {
6212 + return external_React_default.a.createElement(es_RedirectImpl, es_extends({}, locationContext, { baseuri: baseuri }, props));
6213 + }
6214 + );
6215 + }
6216 + );
6217 +};
6218 +
6219 + false ? undefined : void 0;
6220 +
6221 +////////////////////////////////////////////////////////////////////////////////
6222 +var es_Match = function Match(_ref8) {
6223 + var path = _ref8.path,
6224 + children = _ref8.children;
6225 + return external_React_default.a.createElement(
6226 + BaseContext.Consumer,
6227 + null,
6228 + function (_ref9) {
6229 + var baseuri = _ref9.baseuri;
6230 + return external_React_default.a.createElement(
6231 + es_Location,
6232 + null,
6233 + function (_ref10) {
6234 + var navigate = _ref10.navigate,
6235 + location = _ref10.location;
6236 +
6237 + var resolvedPath = resolve(path, baseuri);
6238 + var result = utils_match(resolvedPath, location.pathname);
6239 + return children({
6240 + navigate: navigate,
6241 + location: location,
6242 + match: result ? es_extends({}, result.params, {
6243 + uri: result.uri,
6244 + path: path
6245 + }) : null
6246 + });
6247 + }
6248 + );
6249 + }
6250 + );
6251 +};
6252 +
6253 +////////////////////////////////////////////////////////////////////////////////
6254 +// Hooks
6255 +
6256 +var es_useLocation = function useLocation() {
6257 + var context = Object(external_React_["useContext"])(LocationContext);
6258 +
6259 + if (!context) {
6260 + 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");
6261 + }
6262 +
6263 + return context.location;
6264 +};
6265 +
6266 +var es_useNavigate = function useNavigate() {
6267 + var context = Object(external_React_["useContext"])(LocationContext);
6268 +
6269 + if (!context) {
6270 + 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");
6271 + }
6272 +
6273 + return context.navigate;
6274 +};
6275 +
6276 +var es_useParams = function useParams() {
6277 + var context = Object(external_React_["useContext"])(BaseContext);
6278 +
6279 + if (!context) {
6280 + 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");
6281 + }
6282 +
6283 + var location = es_useLocation();
6284 +
6285 + var results = utils_match(context.basepath, location.pathname);
6286 +
6287 + return results ? results.params : null;
6288 +};
6289 +
6290 +var es_useMatch = function useMatch(path) {
6291 + if (!path) {
6292 + throw new Error("useMatch(path: string) requires an argument of a string to match against");
6293 + }
6294 + var context = Object(external_React_["useContext"])(BaseContext);
6295 +
6296 + if (!context) {
6297 + 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");
6298 + }
6299 +
6300 + var location = es_useLocation();
6301 +
6302 + var resolvedPath = resolve(path, context.baseuri);
6303 + var result = utils_match(resolvedPath, location.pathname);
6304 + return result ? es_extends({}, result.params, {
6305 + uri: result.uri,
6306 + path: path
6307 + }) : null;
6308 +};
6309 +
6310 +////////////////////////////////////////////////////////////////////////////////
6311 +// Junk
6312 +var stripSlashes = function stripSlashes(str) {
6313 + return str.replace(/(^\/+|\/+$)/g, "");
6314 +};
6315 +
6316 +var es_createRoute = function createRoute(basepath) {
6317 + return function (element) {
6318 + if (!element) {
6319 + return null;
6320 + }
6321 +
6322 + if (element.type === external_React_default.a.Fragment && element.props.children) {
6323 + return external_React_default.a.Children.map(element.props.children, createRoute(basepath));
6324 + }
6325 + !(element.props.path || element.props.default || element.type === es_Redirect) ? false ? undefined : browser_default()(false) : void 0;
6326 +
6327 + !!(element.type === es_Redirect && (!element.props.from || !element.props.to)) ? false ? undefined : browser_default()(false) : void 0;
6328 +
6329 + !!(element.type === es_Redirect && !validateRedirect(element.props.from, element.props.to)) ? false ? undefined : browser_default()(false) : void 0;
6330 +
6331 + if (element.props.default) {
6332 + return { value: element, default: true };
6333 + }
6334 +
6335 + var elementPath = element.type === es_Redirect ? element.props.from : element.props.path;
6336 +
6337 + var path = elementPath === "/" ? basepath : stripSlashes(basepath) + "/" + stripSlashes(elementPath);
6338 +
6339 + return {
6340 + value: element,
6341 + default: element.props.default,
6342 + path: element.props.children ? stripSlashes(path) + "/*" : path
6343 + };
6344 + };
6345 +};
6346 +
6347 +var shouldNavigate = function shouldNavigate(event) {
6348 + return !event.defaultPrevented && event.button === 0 && !(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
6349 +};
6350 +
6351 +////////////////////////////////////////////////////////////////////////
6352 +
6353 +
6354 +/***/ }),
6355 +/* 354 */,
6356 +/* 355 */,
6357 +/* 356 */,
6358 +/* 357 */
6359 +/***/ (function(module, exports) {
6360 +
6361 +module.exports = elementorAppPackages.router;
6362 +
6363 +/***/ }),
6364 +/* 358 */
6365 +/***/ (function(module, exports, __webpack_require__) {
6366 +
6367 +"use strict";
6368 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6369 +
6370 +var _interopRequireDefault = __webpack_require__(0);
6371 +
6372 +var _Object$defineProperty = __webpack_require__(1);
6373 +
6374 +_Object$defineProperty(exports, "__esModule", {
6375 + value: true
6376 +});
6377 +
6378 +exports.default = Icon;
6379 +
6380 +var _react = _interopRequireDefault(__webpack_require__(12));
6381 +
6382 +function Icon(props) {
6383 + return /*#__PURE__*/_react.default.createElement("i", {
6384 + className: "eps-icon ".concat(props.className)
6385 + });
6386 +}
6387 +
6388 +Icon.propTypes = {
6389 + className: PropTypes.string.isRequired
6390 +};
6391 +Icon.defaultProps = {
6392 + className: ''
6393 +};
6394 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6395 +
6396 +/***/ }),
6397 +/* 359 */
6398 +/***/ (function(module, exports, __webpack_require__) {
6399 +
6400 +"use strict";
6401 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6402 +
6403 +var _interopRequireDefault = __webpack_require__(0);
6404 +
6405 +var _Object$defineProperty = __webpack_require__(1);
6406 +
6407 +_Object$defineProperty(exports, "__esModule", {
6408 + value: true
6409 +});
6410 +
6411 +exports.default = Grid;
6412 +
6413 +var _react = _interopRequireDefault(__webpack_require__(12));
6414 +
6415 +__webpack_require__(61);
6416 +
6417 +__webpack_require__(124);
6418 +
6419 +var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(306));
6420 +
6421 +__webpack_require__(653);
6422 +
6423 +function Grid(props) {
6424 + var propsMap = {
6425 + direction: '--direction{{ -VALUE }}',
6426 + justify: '--justify{{ -VALUE }}',
6427 + alignContent: '--align-content{{ -VALUE }}',
6428 + alignItems: '--align-items{{ -VALUE }}',
6429 + container: '-container',
6430 + item: '-item',
6431 + noWrap: '-container--no-wrap',
6432 + wrapReverse: '-container--wrap-reverse',
6433 + zeroMinWidth: '-item--zero-min-width',
6434 + spacing: '-container--spacing',
6435 + xs: '-item-xs{{ -VALUE }}',
6436 + sm: '-item-sm{{ -VALUE }}',
6437 + md: '-item-md{{ -VALUE }}',
6438 + lg: '-item-lg{{ -VALUE }}',
6439 + xl: '-item-xl{{ -VALUE }}',
6440 + xxl: '-item-xxl{{ -VALUE }}'
6441 + },
6442 + getStyle = function getStyle() {
6443 + return isValidPropValue(props.spacing) ? {
6444 + '--grid-spacing-gutter': props.spacing
6445 + } : {};
6446 + },
6447 + classes = [getBaseClassName(), props.className].concat((0, _toConsumableArray2.default)(getPropsClasses(propsMap, props)));
6448 +
6449 + return /*#__PURE__*/_react.default.createElement("div", {
6450 + style: getStyle(),
6451 + className: classes.filter(function (classItem) {
6452 + return '' !== classItem;
6453 + }).join(' ')
6454 + }, props.children);
6455 +}
6456 +
6457 +function getPropsClasses(propsMap, props) {
6458 + var classes = [];
6459 +
6460 + for (var prop in propsMap) {
6461 + if (props[prop]) {
6462 + var propValue = isValidPropValue(props[prop]) ? props[prop] : '';
6463 + classes.push(getBaseClassName() + renderPropValueBrackets(propsMap[prop], propValue));
6464 + }
6465 + }
6466 +
6467 + return classes;
6468 +}
6469 +
6470 +function renderPropValueBrackets(propClass, propValue) {
6471 + var brackets = propClass.match(/{{.*?}}/);
6472 +
6473 + if (brackets) {
6474 + var bracketsValue = propValue ? brackets[0].replace(/[{ }]/g, '').replace(/value/i, propValue) : '';
6475 + propClass = propClass.replace(brackets[0], bracketsValue);
6476 + }
6477 +
6478 + return propClass;
6479 +}
6480 +
6481 +function getBaseClassName() {
6482 + return 'eps-grid';
6483 +}
6484 +
6485 +function isValidPropValue(propValue) {
6486 + return propValue && 'boolean' !== typeof propValue;
6487 +}
6488 +
6489 +Grid.propTypes = {
6490 + className: PropTypes.string,
6491 + direction: PropTypes.string,
6492 + justify: PropTypes.string,
6493 + alignContent: PropTypes.string,
6494 + alignItems: PropTypes.string,
6495 + container: PropTypes.bool,
6496 + item: PropTypes.bool,
6497 + noWrap: PropTypes.bool,
6498 + wrapReverse: PropTypes.bool,
6499 + zeroMinWidth: PropTypes.bool,
6500 + spacing: PropTypes.number,
6501 + xs: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6502 + sm: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6503 + md: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6504 + lg: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6505 + xl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6506 + xxl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
6507 + children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired
6508 +};
6509 +Grid.defaultProps = {
6510 + className: ''
6511 +};
6512 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6513 +
6514 +/***/ }),
6515 +/* 360 */
6516 +/***/ (function(module, exports, __webpack_require__) {
6517 +
6518 +"use strict";
6519 +/* WEBPACK VAR INJECTION */(function(React, PropTypes) {
6520 +
6521 +var _Object$defineProperty = __webpack_require__(1);
6522 +
6523 +_Object$defineProperty(exports, "__esModule", {
6524 + value: true
6525 +});
6526 +
6527 +exports.default = Text;
6528 +
6529 +function Text(props) {
6530 + var baseClassName = 'eps',
6531 + classes = [props.className],
6532 + tagName = props.tag,
6533 + variant = props.variant && 'md' !== props.variant ? '-' + props.variant : '';
6534 + classes.push(baseClassName + '-text' + variant);
6535 + return React.createElement(tagName, {
6536 + className: classes.filter(function (classItem) {
6537 + return classItem;
6538 + }).join(' ')
6539 + }, props.children);
6540 +}
6541 +
6542 +Text.propTypes = {
6543 + className: PropTypes.string,
6544 + variant: PropTypes.string,
6545 + tag: PropTypes.string,
6546 + children: PropTypes.any.isRequired
6547 +};
6548 +Text.defaultProps = {
6549 + className: '',
6550 + tag: 'p'
6551 +};
6552 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(12), __webpack_require__(41)))
6553 +
6554 +/***/ }),
6555 +/* 361 */
6556 +/***/ (function(module, exports) {
6557 +
6558 +
6559 +
6560 +/***/ }),
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 +/* 404 */,
6604 +/* 405 */,
6605 +/* 406 */,
6606 +/* 407 */,
6607 +/* 408 */
6608 +/***/ (function(module, exports, __webpack_require__) {
6609 +
6610 +"use strict";
6611 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6612 +
6613 +var _interopRequireDefault = __webpack_require__(0);
6614 +
6615 +var _Object$defineProperty = __webpack_require__(1);
6616 +
6617 +_Object$defineProperty(exports, "__esModule", {
6618 + value: true
6619 +});
6620 +
6621 +exports.default = Page;
6622 +
6623 +var _react = _interopRequireDefault(__webpack_require__(12));
6624 +
6625 +var _header = _interopRequireDefault(__webpack_require__(649));
6626 +
6627 +var _sidebar = _interopRequireDefault(__webpack_require__(654));
6628 +
6629 +var _content = _interopRequireDefault(__webpack_require__(655));
6630 +
6631 +var _footer = _interopRequireDefault(__webpack_require__(656));
6632 +
6633 +function Page(props) {
6634 + var AppSidebar = function AppSidebar() {
6635 + if (!props.sidebar) {
6636 + return;
6637 + }
6638 +
6639 + return /*#__PURE__*/_react.default.createElement(_sidebar.default, null, props.sidebar);
6640 + },
6641 + AppFooter = function AppFooter() {
6642 + if (!props.footer) {
6643 + return;
6644 + }
6645 +
6646 + return /*#__PURE__*/_react.default.createElement(_footer.default, null, props.footer);
6647 + };
6648 +
6649 + return /*#__PURE__*/_react.default.createElement("div", {
6650 + className: "eps-app__lightbox ".concat(props.className)
6651 + }, /*#__PURE__*/_react.default.createElement("div", {
6652 + className: "eps-app"
6653 + }, /*#__PURE__*/_react.default.createElement(_header.default, {
6654 + title: props.title,
6655 + buttons: props.headerButtons,
6656 + titleRedirectRoute: props.titleRedirectRoute
6657 + }), /*#__PURE__*/_react.default.createElement("div", {
6658 + className: "eps-app__main"
6659 + }, AppSidebar(), /*#__PURE__*/_react.default.createElement(_content.default, null, props.content)), AppFooter()));
6660 +}
6661 +
6662 +Page.propTypes = {
6663 + title: PropTypes.string,
6664 + titleRedirectRoute: PropTypes.string,
6665 + className: PropTypes.string,
6666 + headerButtons: PropTypes.arrayOf(PropTypes.object),
6667 + sidebar: PropTypes.object,
6668 + content: PropTypes.object.isRequired,
6669 + footer: PropTypes.object
6670 +};
6671 +Page.defaultProps = {
6672 + className: ''
6673 +};
6674 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6675 +
6676 +/***/ }),
6677 +/* 409 */
6678 +/***/ (function(module, exports, __webpack_require__) {
6679 +
6680 +"use strict";
6681 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
6682 +
6683 +var _interopRequireDefault = __webpack_require__(0);
6684 +
6685 +var _Object$defineProperty = __webpack_require__(1);
6686 +
6687 +_Object$defineProperty(exports, "__esModule", {
6688 + value: true
6689 +});
6690 +
6691 +exports.default = Dialog;
6692 +
6693 +var _react = _interopRequireDefault(__webpack_require__(12));
6694 +
6695 +var _dialogWrapper = _interopRequireDefault(__webpack_require__(658));
6696 +
6697 +var _dialogContent = _interopRequireDefault(__webpack_require__(659));
6698 +
6699 +var _dialogTitle = _interopRequireDefault(__webpack_require__(660));
6700 +
6701 +var _dialogText = _interopRequireDefault(__webpack_require__(661));
6702 +
6703 +var _dialogActions = _interopRequireDefault(__webpack_require__(662));
6704 +
6705 +var _dialogButton = _interopRequireDefault(__webpack_require__(663));
6706 +
6707 +__webpack_require__(664);
6708 +
6709 +function Dialog(props) {
6710 + return /*#__PURE__*/_react.default.createElement(_dialogWrapper.default, {
6711 + onSubmit: props.onSubmit,
6712 + onClose: props.onClose
6713 + }, /*#__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, {
6714 + key: "dismiss",
6715 + text: props.dismissButtonText,
6716 + onClick: props.dismissButtonOnClick,
6717 + url: props.dismissButtonUrl,
6718 + target: props.dismissButtonTarget,
6719 + tabIndex: "2"
6720 + }), /*#__PURE__*/_react.default.createElement(_dialogButton.default, {
6721 + key: "approve",
6722 + text: props.approveButtonText,
6723 + onClick: props.approveButtonOnClick,
6724 + url: props.approveButtonUrl,
6725 + target: props.approveButtonTarget,
6726 + color: props.approveButtonColor,
6727 + tabIndex: "1"
6728 + })));
6729 +}
6730 +
6731 +Dialog.propTypes = {
6732 + title: PropTypes.any,
6733 + text: PropTypes.any,
6734 + children: PropTypes.any,
6735 + onSubmit: PropTypes.func,
6736 + onClose: PropTypes.func,
6737 + dismissButtonText: PropTypes.string.isRequired,
6738 + dismissButtonOnClick: PropTypes.func,
6739 + dismissButtonUrl: PropTypes.string,
6740 + dismissButtonTarget: PropTypes.string,
6741 + approveButtonText: PropTypes.string.isRequired,
6742 + approveButtonOnClick: PropTypes.func,
6743 + approveButtonUrl: PropTypes.string,
6744 + approveButtonColor: PropTypes.string,
6745 + approveButtonTarget: PropTypes.string
6746 +};
6747 +Dialog.defaultProps = {};
6748 +Dialog.Wrapper = _dialogWrapper.default;
6749 +Dialog.Content = _dialogContent.default;
6750 +Dialog.Title = _dialogTitle.default;
6751 +Dialog.Text = _dialogText.default;
6752 +Dialog.Actions = _dialogActions.default;
6753 +Dialog.Button = _dialogButton.default;
6754 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
6755 +
6756 +/***/ }),
6757 +/* 410 */,
6758 +/* 411 */,
6759 +/* 412 */,
6760 +/* 413 */,
6761 +/* 414 */,
6762 +/* 415 */
6763 +/***/ (function(module, exports, __webpack_require__) {
6764 +
6765 +"use strict";
6766 +
6767 +
6768 +exports.__esModule = true;
6769 +
6770 +var _react = __webpack_require__(12);
6771 +
6772 +var _react2 = _interopRequireDefault(_react);
6773 +
6774 +var _implementation = __webpack_require__(644);
6775 +
6776 +var _implementation2 = _interopRequireDefault(_implementation);
6777 +
6778 +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6779 +
6780 +exports.default = _react2.default.createContext || _implementation2.default;
6781 +module.exports = exports['default'];
6782 +
6783 +/***/ }),
6784 +/* 416 */,
6785 +/* 417 */
6786 +/***/ (function(module, exports, __webpack_require__) {
6787 +
6788 +"use strict";
6789 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
6790 +
6791 +var _interopRequireDefault = __webpack_require__(0);
6792 +
6793 +var _Object$defineProperty = __webpack_require__(1);
6794 +
6795 +_Object$defineProperty(exports, "__esModule", {
6796 + value: true
6797 +});
6798 +
6799 +exports.default = exports.TemplateTypesConsumer = exports.Context = void 0;
6800 +
6801 +var _react = _interopRequireDefault(__webpack_require__(12));
6802 +
6803 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6804 +
6805 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6806 +
6807 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6808 +
6809 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6810 +
6811 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
6812 +
6813 +__webpack_require__(784);
6814 +
6815 +var Context = _react.default.createContext();
6816 +
6817 +exports.Context = Context;
6818 +
6819 +var TemplateTypesContext = /*#__PURE__*/function (_React$Component) {
6820 + (0, _inherits2.default)(TemplateTypesContext, _React$Component);
6821 +
6822 + var _super = (0, _createSuper2.default)(TemplateTypesContext);
6823 +
6824 + function TemplateTypesContext(props) {
6825 + var _this;
6826 +
6827 + (0, _classCallCheck2.default)(this, TemplateTypesContext);
6828 + _this = _super.call(this, props);
6829 + _this.state = {
6830 + templateTypes: [],
6831 + loading: true,
6832 + error: false
6833 + };
6834 + return _this;
6835 + }
6836 +
6837 + (0, _createClass2.default)(TemplateTypesContext, [{
6838 + key: "componentDidMount",
6839 + value: function componentDidMount() {
6840 + var _this2 = this;
6841 +
6842 + this.getTemplateTypes().then(function (response) {
6843 + _this2.setState({
6844 + templateTypes: response,
6845 + loading: false
6846 + });
6847 + }).fail(function (error) {
6848 + _this2.setState({
6849 + error: error.statusText ? error.statusText : error,
6850 + loading: false
6851 + });
6852 + });
6853 + }
6854 + }, {
6855 + key: "getTemplateTypes",
6856 + value: function getTemplateTypes() {
6857 + return elementorCommon.ajax.load({
6858 + action: 'app_site_editor_template_types'
6859 + });
6860 + }
6861 + }, {
6862 + key: "render",
6863 + value: function render() {
6864 + if (this.state.error) {
6865 + return /*#__PURE__*/_react.default.createElement("div", {
6866 + className: "e-loading-wrapper"
6867 + }, /*#__PURE__*/_react.default.createElement("h3", null, __('Error:', 'elementor'), " ", this.state.error));
6868 + }
6869 +
6870 + if (this.state.loading) {
6871 + return /*#__PURE__*/_react.default.createElement("div", {
6872 + className: "elementor-loading"
6873 + }, /*#__PURE__*/_react.default.createElement("div", {
6874 + className: "elementor-loader-wrapper"
6875 + }, /*#__PURE__*/_react.default.createElement("div", {
6876 + className: "elementor-loader"
6877 + }, /*#__PURE__*/_react.default.createElement("div", {
6878 + className: "elementor-loader-boxes"
6879 + }, /*#__PURE__*/_react.default.createElement("div", {
6880 + className: "elementor-loader-box"
6881 + }), /*#__PURE__*/_react.default.createElement("div", {
6882 + className: "elementor-loader-box"
6883 + }), /*#__PURE__*/_react.default.createElement("div", {
6884 + className: "elementor-loader-box"
6885 + }), /*#__PURE__*/_react.default.createElement("div", {
6886 + className: "elementor-loader-box"
6887 + }))), /*#__PURE__*/_react.default.createElement("div", {
6888 + className: "elementor-loading-title"
6889 + }, __('Loading', 'elementor')))); // <div className="e-loading-wrapper"><h3>{ __( 'Loading', 'elementor' ) }...</h3></div>;
6890 + }
6891 +
6892 + return /*#__PURE__*/_react.default.createElement(Context.Provider, {
6893 + value: this.state
6894 + }, this.props.children);
6895 + }
6896 + }]);
6897 + return TemplateTypesContext;
6898 +}(_react.default.Component);
6899 +
6900 +(0, _defineProperty2.default)(TemplateTypesContext, "propTypes", {
6901 + children: PropTypes.object.isRequired
6902 +});
6903 +var TemplateTypesConsumer = Context.Consumer;
6904 +exports.TemplateTypesConsumer = TemplateTypesConsumer;
6905 +var _default = TemplateTypesContext;
6906 +exports.default = _default;
6907 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
6908 +
6909 +/***/ }),
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 +/* 637 */,
7130 +/* 638 */,
7131 +/* 639 */,
7132 +/* 640 */,
7133 +/* 641 */,
7134 +/* 642 */,
7135 +/* 643 */,
7136 +/* 644 */
7137 +/***/ (function(module, exports, __webpack_require__) {
7138 +
7139 +"use strict";
7140 +
7141 +
7142 +exports.__esModule = true;
7143 +
7144 +var _react = __webpack_require__(12);
7145 +
7146 +var _react2 = _interopRequireDefault(_react);
7147 +
7148 +var _propTypes = __webpack_require__(41);
7149 +
7150 +var _propTypes2 = _interopRequireDefault(_propTypes);
7151 +
7152 +var _gud = __webpack_require__(645);
7153 +
7154 +var _gud2 = _interopRequireDefault(_gud);
7155 +
7156 +var _warning = __webpack_require__(647);
7157 +
7158 +var _warning2 = _interopRequireDefault(_warning);
7159 +
7160 +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7161 +
7162 +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7163 +
7164 +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; }
7165 +
7166 +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; }
7167 +
7168 +var MAX_SIGNED_31_BIT_INT = 1073741823;
7169 +
7170 +// Inlined Object.is polyfill.
7171 +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
7172 +function objectIs(x, y) {
7173 + if (x === y) {
7174 + return x !== 0 || 1 / x === 1 / y;
7175 + } else {
7176 + return x !== x && y !== y;
7177 + }
7178 +}
7179 +
7180 +function createEventEmitter(value) {
7181 + var handlers = [];
7182 + return {
7183 + on: function on(handler) {
7184 + handlers.push(handler);
7185 + },
7186 + off: function off(handler) {
7187 + handlers = handlers.filter(function (h) {
7188 + return h !== handler;
7189 + });
7190 + },
7191 + get: function get() {
7192 + return value;
7193 + },
7194 + set: function set(newValue, changedBits) {
7195 + value = newValue;
7196 + handlers.forEach(function (handler) {
7197 + return handler(value, changedBits);
7198 + });
7199 + }
7200 + };
7201 +}
7202 +
7203 +function onlyChild(children) {
7204 + return Array.isArray(children) ? children[0] : children;
7205 +}
7206 +
7207 +function createReactContext(defaultValue, calculateChangedBits) {
7208 + var _Provider$childContex, _Consumer$contextType;
7209 +
7210 + var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';
7211 +
7212 + var Provider = function (_Component) {
7213 + _inherits(Provider, _Component);
7214 +
7215 + function Provider() {
7216 + var _temp, _this, _ret;
7217 +
7218 + _classCallCheck(this, Provider);
7219 +
7220 + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
7221 + args[_key] = arguments[_key];
7222 + }
7223 +
7224 + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);
7225 + }
7226 +
7227 + Provider.prototype.getChildContext = function getChildContext() {
7228 + var _ref;
7229 +
7230 + return _ref = {}, _ref[contextProp] = this.emitter, _ref;
7231 + };
7232 +
7233 + Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
7234 + if (this.props.value !== nextProps.value) {
7235 + var oldValue = this.props.value;
7236 + var newValue = nextProps.value;
7237 + var changedBits = void 0;
7238 +
7239 + if (objectIs(oldValue, newValue)) {
7240 + changedBits = 0; // No change
7241 + } else {
7242 + changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
7243 + if (false) {}
7244 +
7245 + changedBits |= 0;
7246 +
7247 + if (changedBits !== 0) {
7248 + this.emitter.set(nextProps.value, changedBits);
7249 + }
7250 + }
7251 + }
7252 + };
7253 +
7254 + Provider.prototype.render = function render() {
7255 + return this.props.children;
7256 + };
7257 +
7258 + return Provider;
7259 + }(_react.Component);
7260 +
7261 + Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);
7262 +
7263 + var Consumer = function (_Component2) {
7264 + _inherits(Consumer, _Component2);
7265 +
7266 + function Consumer() {
7267 + var _temp2, _this2, _ret2;
7268 +
7269 + _classCallCheck(this, Consumer);
7270 +
7271 + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7272 + args[_key2] = arguments[_key2];
7273 + }
7274 +
7275 + return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {
7276 + value: _this2.getValue()
7277 + }, _this2.onUpdate = function (newValue, changedBits) {
7278 + var observedBits = _this2.observedBits | 0;
7279 + if ((observedBits & changedBits) !== 0) {
7280 + _this2.setState({ value: _this2.getValue() });
7281 + }
7282 + }, _temp2), _possibleConstructorReturn(_this2, _ret2);
7283 + }
7284 +
7285 + Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
7286 + var observedBits = nextProps.observedBits;
7287 +
7288 + this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
7289 + : observedBits;
7290 + };
7291 +
7292 + Consumer.prototype.componentDidMount = function componentDidMount() {
7293 + if (this.context[contextProp]) {
7294 + this.context[contextProp].on(this.onUpdate);
7295 + }
7296 + var observedBits = this.props.observedBits;
7297 +
7298 + this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
7299 + : observedBits;
7300 + };
7301 +
7302 + Consumer.prototype.componentWillUnmount = function componentWillUnmount() {
7303 + if (this.context[contextProp]) {
7304 + this.context[contextProp].off(this.onUpdate);
7305 + }
7306 + };
7307 +
7308 + Consumer.prototype.getValue = function getValue() {
7309 + if (this.context[contextProp]) {
7310 + return this.context[contextProp].get();
7311 + } else {
7312 + return defaultValue;
7313 + }
7314 + };
7315 +
7316 + Consumer.prototype.render = function render() {
7317 + return onlyChild(this.props.children)(this.state.value);
7318 + };
7319 +
7320 + return Consumer;
7321 + }(_react.Component);
7322 +
7323 + Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);
7324 +
7325 +
7326 + return {
7327 + Provider: Provider,
7328 + Consumer: Consumer
7329 + };
7330 +}
7331 +
7332 +exports.default = createReactContext;
7333 +module.exports = exports['default'];
7334 +
7335 +/***/ }),
7336 +/* 645 */
7337 +/***/ (function(module, exports, __webpack_require__) {
7338 +
7339 +"use strict";
7340 +/* WEBPACK VAR INJECTION */(function(global) {// @flow
7341 +
7342 +
7343 +var key = '__global_unique_id__';
7344 +
7345 +module.exports = function() {
7346 + return global[key] = (global[key] || 0) + 1;
7347 +};
7348 +
7349 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(646)))
7350 +
7351 +/***/ }),
7352 +/* 646 */
7353 +/***/ (function(module, exports) {
7354 +
7355 +var g;
7356 +
7357 +// This works in non-strict mode
7358 +g = (function() {
7359 + return this;
7360 +})();
7361 +
7362 +try {
7363 + // This works if eval is allowed (see CSP)
7364 + g = g || new Function("return this")();
7365 +} catch (e) {
7366 + // This works if the window reference is available
7367 + if (typeof window === "object") g = window;
7368 +}
7369 +
7370 +// g can still be undefined, but nothing to do about it...
7371 +// We return undefined, instead of nothing here, so it's
7372 +// easier to handle this case. if(!global) { ...}
7373 +
7374 +module.exports = g;
7375 +
7376 +
7377 +/***/ }),
7378 +/* 647 */
7379 +/***/ (function(module, exports, __webpack_require__) {
7380 +
7381 +"use strict";
5418 7382 /**
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 - };
7383 + * Copyright (c) 2014-present, Facebook, Inc.
7384 + *
7385 + * This source code is licensed under the MIT license found in the
7386 + * LICENSE file in the root directory of this source tree.
7387 + */
5429 7388
5430 -//#endregion
5431 -})(React, wp.i18n);
7389 +
7390 +
7391 +/**
7392 + * Similar to invariant but only logs a warning if the condition is not met.
7393 + * This can be used to log issues in development environments in critical
7394 + * paths. Removing the logging code for production environments will keep the
7395 + * same logic and follow the same code paths.
7396 + */
7397 +
7398 +var __DEV__ = "production" !== 'production';
7399 +
7400 +var warning = function() {};
7401 +
7402 +if (__DEV__) {
7403 + var printWarning = function printWarning(format, args) {
7404 + var len = arguments.length;
7405 + args = new Array(len > 1 ? len - 1 : 0);
7406 + for (var key = 1; key < len; key++) {
7407 + args[key - 1] = arguments[key];
7408 + }
7409 + var argIndex = 0;
7410 + var message = 'Warning: ' +
7411 + format.replace(/%s/g, function() {
7412 + return args[argIndex++];
7413 + });
7414 + if (typeof console !== 'undefined') {
7415 + console.error(message);
7416 + }
7417 + try {
7418 + // --- Welcome to debugging React ---
7419 + // This error was thrown as a convenience so that you can use this stack
7420 + // to find the callsite that caused this warning to fire.
7421 + throw new Error(message);
7422 + } catch (x) {}
7423 + }
7424 +
7425 + warning = function(condition, format, args) {
7426 + var len = arguments.length;
7427 + args = new Array(len > 2 ? len - 2 : 0);
7428 + for (var key = 2; key < len; key++) {
7429 + args[key - 2] = arguments[key];
7430 + }
7431 + if (format === undefined) {
7432 + throw new Error(
7433 + '`warning(condition, format, ...args)` requires a warning ' +
7434 + 'message argument'
7435 + );
7436 + }
7437 + if (!condition) {
7438 + printWarning.apply(null, [format].concat(args));
7439 + }
7440 + };
7441 +}
7442 +
7443 +module.exports = warning;
7444 +
7445 +
7446 +/***/ }),
7447 +/* 648 */
7448 +/***/ (function(module, exports, __webpack_require__) {
7449 +
7450 +"use strict";
7451 +/* WEBPACK VAR INJECTION */(function(__) {
7452 +
7453 +var _interopRequireDefault = __webpack_require__(0);
7454 +
7455 +var _Object$defineProperty = __webpack_require__(1);
7456 +
7457 +_Object$defineProperty(exports, "__esModule", {
7458 + value: true
7459 +});
7460 +
7461 +exports.default = NotFound;
7462 +
7463 +var _react = _interopRequireDefault(__webpack_require__(12));
7464 +
7465 +var _page = _interopRequireDefault(__webpack_require__(408));
7466 +
7467 +function NotFound() {
7468 + var config = {
7469 + title: __('Not Found', 'elementor'),
7470 + className: 'eps-app__not-found',
7471 + content: /*#__PURE__*/_react.default.createElement("h1", null, " ", __('Not Found', 'elementor'), " "),
7472 + sidebar: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)
7473 + };
7474 + return /*#__PURE__*/_react.default.createElement(_page.default, config);
7475 +}
7476 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"]))
7477 +
7478 +/***/ }),
7479 +/* 649 */
7480 +/***/ (function(module, exports, __webpack_require__) {
7481 +
7482 +"use strict";
7483 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7484 +
7485 +var _interopRequireDefault = __webpack_require__(0);
7486 +
7487 +var _Object$defineProperty = __webpack_require__(1);
7488 +
7489 +_Object$defineProperty(exports, "__esModule", {
7490 + value: true
7491 +});
7492 +
7493 +exports.default = Header;
7494 +
7495 +var _react = _interopRequireDefault(__webpack_require__(12));
7496 +
7497 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
7498 +
7499 +var _headerButtons = _interopRequireDefault(__webpack_require__(650));
7500 +
7501 +var _grid = _interopRequireDefault(__webpack_require__(359));
7502 +
7503 +function Header(props) {
7504 + var TitleTag = 'span',
7505 + titleAttrs = {};
7506 +
7507 + if (props.titleRedirectRoute) {
7508 + TitleTag = 'a';
7509 + titleAttrs = {
7510 + href: "#".concat(props.titleRedirectRoute),
7511 + target: '_self'
7512 + };
7513 + }
7514 +
7515 + _react.default.useEffect(function () {
7516 + document.title = __('Elementor', 'elementor') + ' | ' + props.title;
7517 + });
7518 +
7519 + return /*#__PURE__*/_react.default.createElement(_grid.default, {
7520 + container: true,
7521 + alignItems: "center",
7522 + justify: "space-between",
7523 + className: "eps-app__header"
7524 + }, /*#__PURE__*/_react.default.createElement(TitleTag, (0, _extends2.default)({
7525 + className: "eps-app__logo-title-wrapper"
7526 + }, titleAttrs), /*#__PURE__*/_react.default.createElement("i", {
7527 + className: "eps-app__logo eicon-elementor"
7528 + }), /*#__PURE__*/_react.default.createElement("h1", {
7529 + className: "eps-app__title"
7530 + }, props.title)), /*#__PURE__*/_react.default.createElement(_headerButtons.default, {
7531 + buttons: props.buttons
7532 + }));
7533 +}
7534 +
7535 +Header.propTypes = {
7536 + title: PropTypes.string,
7537 + titleRedirectRoute: PropTypes.string,
7538 + buttons: PropTypes.arrayOf(PropTypes.object)
7539 +};
7540 +Header.defaultProps = {
7541 + buttons: []
7542 +};
7543 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
7544 +
7545 +/***/ }),
7546 +/* 650 */
7547 +/***/ (function(module, exports, __webpack_require__) {
7548 +
7549 +"use strict";
7550 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7551 +
7552 +var _interopRequireDefault = __webpack_require__(0);
7553 +
7554 +var _Object$defineProperty = __webpack_require__(1);
7555 +
7556 +_Object$defineProperty(exports, "__esModule", {
7557 + value: true
7558 +});
7559 +
7560 +exports.default = HeaderButtons;
7561 +
7562 +var _react = _interopRequireDefault(__webpack_require__(12));
7563 +
7564 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
7565 +
7566 +var _headerButton = _interopRequireDefault(__webpack_require__(651));
7567 +
7568 +function HeaderButtons(props) {
7569 + var tools = '';
7570 +
7571 + if (props.buttons.length) {
7572 + var buttons = props.buttons.map(function (button) {
7573 + return /*#__PURE__*/_react.default.createElement(_headerButton.default, (0, _extends2.default)({
7574 + key: button.id
7575 + }, button));
7576 + });
7577 + tools = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, buttons);
7578 + }
7579 +
7580 + return /*#__PURE__*/_react.default.createElement("div", {
7581 + className: "eps-app__header-buttons"
7582 + }, /*#__PURE__*/_react.default.createElement(_headerButton.default, {
7583 + text: __('Close', 'elementor'),
7584 + icon: "eicon-close",
7585 + className: "eps-app__close-button",
7586 + onClick: function onClick() {
7587 + if (window.top === window) {
7588 + // Directly.
7589 + window.top.location = elementorAppConfig.return_url;
7590 + } else {
7591 + // Iframe.
7592 + window.top.$e.run('app/close');
7593 + }
7594 + }
7595 + }), tools);
7596 +}
7597 +
7598 +HeaderButtons.propTypes = {
7599 + buttons: PropTypes.arrayOf(PropTypes.object)
7600 +};
7601 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
7602 +
7603 +/***/ }),
7604 +/* 651 */
7605 +/***/ (function(module, exports, __webpack_require__) {
7606 +
7607 +"use strict";
7608 +
7609 +
7610 +var _interopRequireDefault = __webpack_require__(0);
7611 +
7612 +var _Object$defineProperty = __webpack_require__(1);
7613 +
7614 +_Object$defineProperty(exports, "__esModule", {
7615 + value: true
7616 +});
7617 +
7618 +exports.default = void 0;
7619 +
7620 +var _assign = _interopRequireDefault(__webpack_require__(140));
7621 +
7622 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7623 +
7624 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7625 +
7626 +var _get2 = _interopRequireDefault(__webpack_require__(26));
7627 +
7628 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
7629 +
7630 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7631 +
7632 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7633 +
7634 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
7635 +
7636 +var _button = _interopRequireDefault(__webpack_require__(240));
7637 +
7638 +var Button = /*#__PURE__*/function (_BaseButton) {
7639 + (0, _inherits2.default)(Button, _BaseButton);
7640 +
7641 + var _super = (0, _createSuper2.default)(Button);
7642 +
7643 + function Button() {
7644 + (0, _classCallCheck2.default)(this, Button);
7645 + return _super.apply(this, arguments);
7646 + }
7647 +
7648 + (0, _createClass2.default)(Button, [{
7649 + key: "getCssId",
7650 + value: function getCssId() {
7651 + return "eps-app-header-btn-" + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getCssId", this).call(this);
7652 + }
7653 + }, {
7654 + key: "getClassName",
7655 + value: function getClassName() {
7656 + return "eps-app__header-btn " + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getClassName", this).call(this);
7657 + }
7658 + }]);
7659 + return Button;
7660 +}(_button.default);
7661 +
7662 +exports.default = Button;
7663 +(0, _defineProperty2.default)(Button, "defaultProps", (0, _assign.default)({}
7664 +/* clone */
7665 +, _button.default.defaultProps, {
7666 + hideText: true
7667 +}));
7668 +
7669 +/***/ }),
7670 +/* 652 */
7671 +/***/ (function(module, exports) {
7672 +
7673 +
7674 +
7675 +/***/ }),
7676 +/* 653 */
7677 +/***/ (function(module, exports) {
7678 +
7679 +
7680 +
7681 +/***/ }),
7682 +/* 654 */
7683 +/***/ (function(module, exports, __webpack_require__) {
7684 +
7685 +"use strict";
7686 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7687 +
7688 +var _interopRequireDefault = __webpack_require__(0);
7689 +
7690 +var _Object$defineProperty = __webpack_require__(1);
7691 +
7692 +_Object$defineProperty(exports, "__esModule", {
7693 + value: true
7694 +});
7695 +
7696 +exports.default = Sidebar;
7697 +
7698 +var _react = _interopRequireDefault(__webpack_require__(12));
7699 +
7700 +function Sidebar(props) {
7701 + return /*#__PURE__*/_react.default.createElement("div", {
7702 + className: "eps-app__sidebar"
7703 + }, props.children);
7704 +}
7705 +
7706 +Sidebar.propTypes = {
7707 + children: PropTypes.object
7708 +};
7709 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7710 +
7711 +/***/ }),
7712 +/* 655 */
7713 +/***/ (function(module, exports, __webpack_require__) {
7714 +
7715 +"use strict";
7716 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7717 +
7718 +var _interopRequireDefault = __webpack_require__(0);
7719 +
7720 +var _Object$defineProperty = __webpack_require__(1);
7721 +
7722 +_Object$defineProperty(exports, "__esModule", {
7723 + value: true
7724 +});
7725 +
7726 +exports.default = Content;
7727 +
7728 +var _react = _interopRequireDefault(__webpack_require__(12));
7729 +
7730 +function Content(props) {
7731 + return /*#__PURE__*/_react.default.createElement("main", {
7732 + className: "eps-app__content"
7733 + }, props.children);
7734 +}
7735 +
7736 +Content.propTypes = {
7737 + children: PropTypes.object
7738 +};
7739 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7740 +
7741 +/***/ }),
7742 +/* 656 */
7743 +/***/ (function(module, exports, __webpack_require__) {
7744 +
7745 +"use strict";
7746 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7747 +
7748 +var _interopRequireDefault = __webpack_require__(0);
7749 +
7750 +var _Object$defineProperty = __webpack_require__(1);
7751 +
7752 +_Object$defineProperty(exports, "__esModule", {
7753 + value: true
7754 +});
7755 +
7756 +exports.default = Footer;
7757 +
7758 +var _react = _interopRequireDefault(__webpack_require__(12));
7759 +
7760 +function Footer(props) {
7761 + return /*#__PURE__*/_react.default.createElement("footer", {
7762 + className: "eps-app__footer"
7763 + }, props.children);
7764 +}
7765 +
7766 +Footer.propTypes = {
7767 + children: PropTypes.object
7768 +};
7769 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7770 +
7771 +/***/ }),
7772 +/* 657 */
7773 +/***/ (function(module, exports, __webpack_require__) {
7774 +
7775 +"use strict";
7776 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7777 +
7778 +var _interopRequireDefault = __webpack_require__(0);
7779 +
7780 +var _Object$defineProperty = __webpack_require__(1);
7781 +
7782 +_Object$defineProperty(exports, "__esModule", {
7783 + value: true
7784 +});
7785 +
7786 +exports.default = void 0;
7787 +
7788 +var _react = _interopRequireDefault(__webpack_require__(12));
7789 +
7790 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7791 +
7792 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7793 +
7794 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7795 +
7796 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7797 +
7798 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
7799 +
7800 +var _dialog = _interopRequireDefault(__webpack_require__(409));
7801 +
7802 +// In the current time there is no solution to use "getDerivedStateFromError" static method with functional component
7803 +// That is why this component is a class component.
7804 +// @link https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes
7805 +var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
7806 + (0, _inherits2.default)(ErrorBoundary, _React$Component);
7807 +
7808 + var _super = (0, _createSuper2.default)(ErrorBoundary);
7809 +
7810 + function ErrorBoundary(props) {
7811 + var _this;
7812 +
7813 + (0, _classCallCheck2.default)(this, ErrorBoundary);
7814 + _this = _super.call(this, props);
7815 + _this.state = {
7816 + hasError: null
7817 + };
7818 + return _this;
7819 + }
7820 +
7821 + (0, _createClass2.default)(ErrorBoundary, [{
7822 + key: "goBack",
7823 + value: function goBack() {
7824 + // If the app was opened inside an iframe, it will close it,
7825 + // if not, it will redirect to the last location.
7826 + if (window.top !== window.self) {
7827 + window.top.$e.run('app/close');
7828 + }
7829 +
7830 + window.location = elementorAppConfig.return_url;
7831 + }
7832 + }, {
7833 + key: "render",
7834 + value: function render() {
7835 + if (this.state.hasError) {
7836 + return /*#__PURE__*/_react.default.createElement(_dialog.default, {
7837 + title: this.props.title,
7838 + text: this.props.text,
7839 + approveButtonUrl: this.props.learnMoreUrl,
7840 + approveButtonColor: "link",
7841 + approveButtonTarget: "_blank",
7842 + approveButtonText: __('Learn More', 'elementor'),
7843 + dismissButtonText: __('Go Back', 'elementor'),
7844 + dismissButtonOnClick: this.goBack
7845 + });
7846 + }
7847 +
7848 + return this.props.children;
7849 + }
7850 + }], [{
7851 + key: "getDerivedStateFromError",
7852 + value: function getDerivedStateFromError() {
7853 + return {
7854 + hasError: true
7855 + };
7856 + }
7857 + }]);
7858 + return ErrorBoundary;
7859 +}(_react.default.Component);
7860 +
7861 +exports.default = ErrorBoundary;
7862 +(0, _defineProperty2.default)(ErrorBoundary, "propTypes", {
7863 + children: PropTypes.any,
7864 + title: PropTypes.string,
7865 + text: PropTypes.string,
7866 + learnMoreUrl: PropTypes.string
7867 +});
7868 +(0, _defineProperty2.default)(ErrorBoundary, "defaultProps", {
7869 + title: __('App could not be loaded', 'elementor'),
7870 + text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'),
7871 + learnMoreUrl: 'https://go.elementor.com/app-general-load-issue/'
7872 +});
7873 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
7874 +
7875 +/***/ }),
7876 +/* 658 */
7877 +/***/ (function(module, exports, __webpack_require__) {
7878 +
7879 +"use strict";
7880 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
7881 +
7882 +var _interopRequireDefault = __webpack_require__(0);
7883 +
7884 +var _Object$defineProperty = __webpack_require__(1);
7885 +
7886 +_Object$defineProperty(exports, "__esModule", {
7887 + value: true
7888 +});
7889 +
7890 +exports.default = DialogWrapper;
7891 +
7892 +var _react = _interopRequireDefault(__webpack_require__(12));
7893 +
7894 +var _button = _interopRequireDefault(__webpack_require__(240));
7895 +
7896 +function DialogWrapper(props) {
7897 + var WrapperTag = 'div';
7898 +
7899 + if (props.onSubmit) {
7900 + WrapperTag = 'form';
7901 + }
7902 +
7903 + return /*#__PURE__*/_react.default.createElement("section", {
7904 + className: "eps-modal__overlay"
7905 + }, props.onClose && /*#__PURE__*/_react.default.createElement(_button.default, {
7906 + onClick: props.onClose,
7907 + text: __('Close', 'elementor'),
7908 + hideText: true,
7909 + icon: "eicon-close",
7910 + className: "eps-dialog__close-button"
7911 + }), /*#__PURE__*/_react.default.createElement(WrapperTag, {
7912 + className: "eps-modal eps-dialog",
7913 + onSubmit: props.onSubmit
7914 + }, props.children));
7915 +}
7916 +
7917 +DialogWrapper.propTypes = {
7918 + onClose: PropTypes.func,
7919 + onSubmit: PropTypes.func,
7920 + children: PropTypes.any
7921 +};
7922 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
7923 +
7924 +/***/ }),
7925 +/* 659 */
7926 +/***/ (function(module, exports, __webpack_require__) {
7927 +
7928 +"use strict";
7929 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7930 +
7931 +var _interopRequireDefault = __webpack_require__(0);
7932 +
7933 +var _Object$defineProperty = __webpack_require__(1);
7934 +
7935 +_Object$defineProperty(exports, "__esModule", {
7936 + value: true
7937 +});
7938 +
7939 +exports.default = DialogContent;
7940 +
7941 +var _react = _interopRequireDefault(__webpack_require__(12));
7942 +
7943 +function DialogContent(props) {
7944 + return /*#__PURE__*/_react.default.createElement("div", {
7945 + className: "eps-dialog__content"
7946 + }, props.children);
7947 +}
7948 +
7949 +DialogContent.propTypes = {
7950 + children: PropTypes.any
7951 +};
7952 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7953 +
7954 +/***/ }),
7955 +/* 660 */
7956 +/***/ (function(module, exports, __webpack_require__) {
7957 +
7958 +"use strict";
7959 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
7960 +
7961 +var _interopRequireDefault = __webpack_require__(0);
7962 +
7963 +var _Object$defineProperty = __webpack_require__(1);
7964 +
7965 +_Object$defineProperty(exports, "__esModule", {
7966 + value: true
7967 +});
7968 +
7969 +exports.default = DialogTitle;
7970 +
7971 +var _react = _interopRequireDefault(__webpack_require__(12));
7972 +
7973 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
7974 +
7975 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
7976 +
7977 +var _heading = _interopRequireDefault(__webpack_require__(349));
7978 +
7979 +function DialogTitle(props) {
7980 + return /*#__PURE__*/_react.default.createElement(_heading.default, (0, _extends2.default)({}, props, {
7981 + className: "eps-dialog__title ".concat(props.className)
7982 + }));
7983 +}
7984 +
7985 +DialogTitle.propTypes = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _heading.default.propTypes), {}, {
7986 + className: PropTypes.string
7987 +});
7988 +DialogTitle.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _heading.default.propTypes), {}, {
7989 + variant: 'h3',
7990 + tag: 'h3',
7991 + className: ''
7992 +});
7993 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
7994 +
7995 +/***/ }),
7996 +/* 661 */
7997 +/***/ (function(module, exports, __webpack_require__) {
7998 +
7999 +"use strict";
8000 +
8001 +
8002 +var _interopRequireDefault = __webpack_require__(0);
8003 +
8004 +var _Object$defineProperty = __webpack_require__(1);
8005 +
8006 +_Object$defineProperty(exports, "__esModule", {
8007 + value: true
8008 +});
8009 +
8010 +exports.default = DialogText;
8011 +
8012 +var _react = _interopRequireDefault(__webpack_require__(12));
8013 +
8014 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
8015 +
8016 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
8017 +
8018 +var _text = _interopRequireDefault(__webpack_require__(360));
8019 +
8020 +function DialogText(props) {
8021 + return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({
8022 + variant: "xs"
8023 + }, props, {
8024 + className: "eps-dialog__text ".concat(props.className)
8025 + }));
8026 +}
8027 +
8028 +DialogText.propTypes = (0, _objectSpread2.default)({}, _text.default.propTypes);
8029 +DialogText.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _text.default.defaultProps), {}, {
8030 + tag: 'p',
8031 + variant: 'sm'
8032 +});
8033 +
8034 +/***/ }),
8035 +/* 662 */
8036 +/***/ (function(module, exports, __webpack_require__) {
8037 +
8038 +"use strict";
8039 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8040 +
8041 +var _interopRequireDefault = __webpack_require__(0);
8042 +
8043 +var _Object$defineProperty = __webpack_require__(1);
8044 +
8045 +_Object$defineProperty(exports, "__esModule", {
8046 + value: true
8047 +});
8048 +
8049 +exports.default = DialogActions;
8050 +
8051 +var _react = _interopRequireDefault(__webpack_require__(12));
8052 +
8053 +function DialogActions(props) {
8054 + return /*#__PURE__*/_react.default.createElement("div", {
8055 + className: "eps-dialog__buttons"
8056 + }, props.children);
8057 +}
8058 +
8059 +DialogActions.propTypes = {
8060 + children: PropTypes.any
8061 +};
8062 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8063 +
8064 +/***/ }),
8065 +/* 663 */
8066 +/***/ (function(module, exports, __webpack_require__) {
8067 +
8068 +"use strict";
8069 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8070 +
8071 +var _interopRequireDefault = __webpack_require__(0);
8072 +
8073 +var _Object$defineProperty = __webpack_require__(1);
8074 +
8075 +_Object$defineProperty(exports, "__esModule", {
8076 + value: true
8077 +});
8078 +
8079 +exports.default = DialogButton;
8080 +
8081 +var _react = _interopRequireDefault(__webpack_require__(12));
8082 +
8083 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
8084 +
8085 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
8086 +
8087 +var _button = _interopRequireDefault(__webpack_require__(240));
8088 +
8089 +function DialogButton(props) {
8090 + return /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props, {
8091 + className: "eps-dialog__button ".concat(props.className)
8092 + }));
8093 +}
8094 +
8095 +DialogButton.propTypes = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.propTypes), {}, {
8096 + tabIndex: PropTypes.string,
8097 + type: PropTypes.string
8098 +});
8099 +DialogButton.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.defaultProps), {}, {
8100 + tabIndex: '0',
8101 + type: 'button'
8102 +});
8103 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8104 +
8105 +/***/ }),
8106 +/* 664 */
8107 +/***/ (function(module, exports) {
8108 +
8109 +
8110 +
8111 +/***/ }),
8112 +/* 665 */,
8113 +/* 666 */,
8114 +/* 667 */,
8115 +/* 668 */,
8116 +/* 669 */,
8117 +/* 670 */,
8118 +/* 671 */,
8119 +/* 672 */,
8120 +/* 673 */,
8121 +/* 674 */,
8122 +/* 675 */,
8123 +/* 676 */,
8124 +/* 677 */,
8125 +/* 678 */,
8126 +/* 679 */,
8127 +/* 680 */,
8128 +/* 681 */,
8129 +/* 682 */,
8130 +/* 683 */,
8131 +/* 684 */,
8132 +/* 685 */
8133 +/***/ (function(module, exports, __webpack_require__) {
8134 +
8135 +"use strict";
8136 +/* WEBPACK VAR INJECTION */(function(PropTypes, __) {
8137 +
8138 +var _interopRequireDefault = __webpack_require__(0);
8139 +
8140 +var _Object$defineProperty = __webpack_require__(1);
8141 +
8142 +_Object$defineProperty(exports, "__esModule", {
8143 + value: true
8144 +});
8145 +
8146 +exports.default = void 0;
8147 +
8148 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
8149 +
8150 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8151 +
8152 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8153 +
8154 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8155 +
8156 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8157 +
8158 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
8159 +
8160 +var _button = _interopRequireDefault(__webpack_require__(240));
8161 +
8162 +__webpack_require__(768);
8163 +
8164 +var AddNewButton = /*#__PURE__*/function (_Button) {
8165 + (0, _inherits2.default)(AddNewButton, _Button);
8166 +
8167 + var _super = (0, _createSuper2.default)(AddNewButton);
8168 +
8169 + function AddNewButton() {
8170 + (0, _classCallCheck2.default)(this, AddNewButton);
8171 + return _super.apply(this, arguments);
8172 + }
8173 +
8174 + (0, _createClass2.default)(AddNewButton, [{
8175 + key: "getClassName",
8176 + value: function getClassName() {
8177 + var className = this.props.className;
8178 +
8179 + if (this.props.size) {
8180 + className += ' eps-add-new-button--' + this.props.size;
8181 + }
8182 +
8183 + return className;
8184 + }
8185 + }]);
8186 + return AddNewButton;
8187 +}(_button.default);
8188 +
8189 +exports.default = AddNewButton;
8190 +(0, _defineProperty2.default)(AddNewButton, "propTypes", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.propTypes), {}, {
8191 + text: PropTypes.string,
8192 + size: PropTypes.string
8193 +}));
8194 +(0, _defineProperty2.default)(AddNewButton, "defaultProps", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.defaultProps), {}, {
8195 + className: 'eps-add-new-button',
8196 + text: __('Add New', 'elementor-pro'),
8197 + icon: 'eicon-plus'
8198 +}));
8199 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(196)["__"]))
8200 +
8201 +/***/ }),
8202 +/* 686 */
8203 +/***/ (function(module, exports, __webpack_require__) {
8204 +
8205 +"use strict";
8206 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8207 +
8208 +var _interopRequireDefault = __webpack_require__(0);
8209 +
8210 +var _Object$defineProperty = __webpack_require__(1);
8211 +
8212 +_Object$defineProperty(exports, "__esModule", {
8213 + value: true
8214 +});
8215 +
8216 +exports.default = void 0;
8217 +
8218 +var _react = _interopRequireDefault(__webpack_require__(12));
8219 +
8220 +__webpack_require__(361);
8221 +
8222 +var Card = _react.default.forwardRef(function (props, ref) {
8223 + return /*#__PURE__*/_react.default.createElement("article", {
8224 + className: "eps-card ".concat(props.className),
8225 + ref: ref
8226 + }, props.children);
8227 +});
8228 +
8229 +Card.propTypes = {
8230 + type: PropTypes.string,
8231 + className: PropTypes.string,
8232 + children: PropTypes.any
8233 +};
8234 +Card.defaultProps = {
8235 + className: ''
8236 +};
8237 +Card.displayName = 'Card';
8238 +var _default = Card;
8239 +exports.default = _default;
8240 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8241 +
8242 +/***/ }),
8243 +/* 687 */
8244 +/***/ (function(module, exports, __webpack_require__) {
8245 +
8246 +"use strict";
8247 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8248 +
8249 +var _interopRequireDefault = __webpack_require__(0);
8250 +
8251 +var _Object$defineProperty = __webpack_require__(1);
8252 +
8253 +_Object$defineProperty(exports, "__esModule", {
8254 + value: true
8255 +});
8256 +
8257 +exports.default = CardBody;
8258 +
8259 +var _react = _interopRequireDefault(__webpack_require__(12));
8260 +
8261 +__webpack_require__(361);
8262 +
8263 +function CardBody(props) {
8264 + return /*#__PURE__*/_react.default.createElement("main", {
8265 + className: "eps-card__body ".concat(props.className)
8266 + }, props.children);
8267 +}
8268 +
8269 +CardBody.propTypes = {
8270 + className: PropTypes.string,
8271 + children: PropTypes.object.isRequired
8272 +};
8273 +CardBody.defaultProps = {
8274 + className: ''
8275 +};
8276 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8277 +
8278 +/***/ }),
8279 +/* 688 */
8280 +/***/ (function(module, exports, __webpack_require__) {
8281 +
8282 +"use strict";
8283 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8284 +
8285 +var _interopRequireDefault = __webpack_require__(0);
8286 +
8287 +var _Object$defineProperty = __webpack_require__(1);
8288 +
8289 +_Object$defineProperty(exports, "__esModule", {
8290 + value: true
8291 +});
8292 +
8293 +exports.default = CardImage;
8294 +
8295 +var _react = _interopRequireDefault(__webpack_require__(12));
8296 +
8297 +__webpack_require__(361);
8298 +
8299 +function CardImage(props) {
8300 + var image = /*#__PURE__*/_react.default.createElement("img", {
8301 + src: props.src,
8302 + alt: props.alt,
8303 + className: "eps-card__image"
8304 + });
8305 +
8306 + return /*#__PURE__*/_react.default.createElement("figure", {
8307 + className: "eps-card__figure ".concat(props.className)
8308 + }, image, props.children);
8309 +}
8310 +
8311 +CardImage.propTypes = {
8312 + className: PropTypes.string,
8313 + src: PropTypes.string.isRequired,
8314 + alt: PropTypes.string.isRequired,
8315 + children: PropTypes.any
8316 +};
8317 +CardImage.defaultProps = {
8318 + className: ''
8319 +};
8320 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8321 +
8322 +/***/ }),
8323 +/* 689 */
8324 +/***/ (function(module, exports, __webpack_require__) {
8325 +
8326 +"use strict";
8327 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8328 +
8329 +var _interopRequireDefault = __webpack_require__(0);
8330 +
8331 +var _Object$defineProperty = __webpack_require__(1);
8332 +
8333 +_Object$defineProperty(exports, "__esModule", {
8334 + value: true
8335 +});
8336 +
8337 +exports.default = CardHeader;
8338 +
8339 +var _react = _interopRequireDefault(__webpack_require__(12));
8340 +
8341 +__webpack_require__(361);
8342 +
8343 +function CardHeader(props) {
8344 + return /*#__PURE__*/_react.default.createElement("header", {
8345 + className: "eps-card__header ".concat(props.className)
8346 + }, props.children);
8347 +}
8348 +
8349 +CardHeader.propTypes = {
8350 + className: PropTypes.string,
8351 + children: PropTypes.any.isRequired
8352 +};
8353 +CardHeader.defaultProps = {
8354 + className: ''
8355 +};
8356 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8357 +
8358 +/***/ }),
8359 +/* 690 */
8360 +/***/ (function(module, exports, __webpack_require__) {
8361 +
8362 +"use strict";
8363 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8364 +
8365 +var _interopRequireDefault = __webpack_require__(0);
8366 +
8367 +var _Object$defineProperty = __webpack_require__(1);
8368 +
8369 +_Object$defineProperty(exports, "__esModule", {
8370 + value: true
8371 +});
8372 +
8373 +exports.default = CardOverlay;
8374 +
8375 +var _react = _interopRequireDefault(__webpack_require__(12));
8376 +
8377 +__webpack_require__(361);
8378 +
8379 +function CardOverlay(props) {
8380 + return /*#__PURE__*/_react.default.createElement("div", {
8381 + className: "eps-card__image-overlay ".concat(props.className)
8382 + }, props.children);
8383 +}
8384 +
8385 +CardOverlay.propTypes = {
8386 + className: PropTypes.string,
8387 + children: PropTypes.object.isRequired
8388 +};
8389 +CardOverlay.defaultProps = {
8390 + className: ''
8391 +};
8392 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8393 +
8394 +/***/ }),
8395 +/* 691 */
8396 +/***/ (function(module, exports, __webpack_require__) {
8397 +
8398 +"use strict";
8399 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8400 +
8401 +var _interopRequireDefault = __webpack_require__(0);
8402 +
8403 +var _Object$defineProperty = __webpack_require__(1);
8404 +
8405 +_Object$defineProperty(exports, "__esModule", {
8406 + value: true
8407 +});
8408 +
8409 +exports.default = CssGrid;
8410 +
8411 +var _react = _interopRequireDefault(__webpack_require__(12));
8412 +
8413 +var _utils = _interopRequireDefault(__webpack_require__(692));
8414 +
8415 +__webpack_require__(770);
8416 +
8417 +function CssGrid(props) {
8418 + var gridStyle = {
8419 + '--eps-grid-columns': props.columns,
8420 + '--eps-grid-spacing': _utils.default.pxToRem(props.spacing),
8421 + '--eps-grid-col-min-width': _utils.default.pxToRem(props.colMinWidth),
8422 + '--eps-grid-col-max-width': _utils.default.pxToRem(props.colMaxWidth)
8423 + };
8424 + return /*#__PURE__*/_react.default.createElement("div", {
8425 + style: gridStyle,
8426 + className: "eps-css-grid ".concat(props.className)
8427 + }, props.children);
8428 +}
8429 +
8430 +CssGrid.propTypes = {
8431 + className: PropTypes.string,
8432 + children: PropTypes.any.isRequired,
8433 + columns: PropTypes.number,
8434 + spacing: PropTypes.number,
8435 + colMinWidth: PropTypes.number,
8436 + colMaxWidth: PropTypes.number
8437 +};
8438 +CssGrid.defaultProps = {
8439 + spacing: 24,
8440 + className: ''
8441 +};
8442 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8443 +
8444 +/***/ }),
8445 +/* 692 */
8446 +/***/ (function(module, exports, __webpack_require__) {
8447 +
8448 +"use strict";
8449 +
8450 +
8451 +var _interopRequireDefault = __webpack_require__(0);
8452 +
8453 +var _Object$defineProperty = __webpack_require__(1);
8454 +
8455 +_Object$defineProperty(exports, "__esModule", {
8456 + value: true
8457 +});
8458 +
8459 +exports.default = void 0;
8460 +
8461 +__webpack_require__(82);
8462 +
8463 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8464 +
8465 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
8466 +
8467 +var Utils = function Utils() {
8468 + (0, _classCallCheck2.default)(this, Utils);
8469 +};
8470 +
8471 +exports.default = Utils;
8472 +(0, _defineProperty2.default)(Utils, "pxToRem", function (pixels) {
8473 + if (!pixels) {
8474 + return;
8475 + }
8476 +
8477 + return "".concat(pixels * 0.0625, "rem");
8478 +});
8479 +(0, _defineProperty2.default)(Utils, "arrayToClassName", function (array) {
8480 + return array.filter(function (classItem) {
8481 + return '' !== classItem;
8482 + }).join(' ');
8483 +});
8484 +(0, _defineProperty2.default)(Utils, "stringToRemValues", function (string) {
8485 + return string.split(' ').map(function (value) {
8486 + return Utils.pxToRem(value);
8487 + }).join(' ');
8488 +});
8489 +
8490 +/***/ }),
8491 +/* 693 */
8492 +/***/ (function(module, exports, __webpack_require__) {
8493 +
8494 +"use strict";
8495 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8496 +
8497 +var _interopRequireDefault = __webpack_require__(0);
8498 +
8499 +var _interopRequireWildcard = __webpack_require__(34);
8500 +
8501 +var _Object$defineProperty = __webpack_require__(1);
8502 +
8503 +_Object$defineProperty(exports, "__esModule", {
8504 + value: true
8505 +});
8506 +
8507 +exports.default = DragDrop;
8508 +
8509 +var _react = _interopRequireWildcard(__webpack_require__(12));
8510 +
8511 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
8512 +
8513 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(105));
8514 +
8515 +var _utils = _interopRequireDefault(__webpack_require__(692));
8516 +
8517 +__webpack_require__(771);
8518 +
8519 +function DragDrop(props) {
8520 + var _useState = (0, _react.useState)(false),
8521 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
8522 + isDragOver = _useState2[0],
8523 + setIsDragOver = _useState2[1],
8524 + getClassName = function getClassName() {
8525 + var baseClassName = 'e-app-drag-drop',
8526 + classes = [baseClassName, props.className];
8527 +
8528 + if (isDragOver && !props.isLoading) {
8529 + classes.push(baseClassName + '--drag-over');
8530 + }
8531 +
8532 + return _utils.default.arrayToClassName(classes);
8533 + },
8534 + onDragDropActions = function onDragDropActions(event) {
8535 + event.preventDefault();
8536 + event.stopPropagation();
8537 + },
8538 + dragDropEvents = {
8539 + onDrop: function onDrop(event) {
8540 + onDragDropActions(event);
8541 + setIsDragOver(false);
8542 +
8543 + if (props.onDrop) {
8544 + props.onDrop(event);
8545 + }
8546 + },
8547 + onDragOver: function onDragOver(event) {
8548 + onDragDropActions(event);
8549 + setIsDragOver(true);
8550 +
8551 + if (props.onDragOver) {
8552 + props.onDragOver(event);
8553 + }
8554 + },
8555 + onDragLeave: function onDragLeave(event) {
8556 + onDragDropActions(event);
8557 + setIsDragOver(false);
8558 +
8559 + if (props.onDragLeave) {
8560 + props.onDragLeave(event);
8561 + }
8562 + }
8563 + };
8564 +
8565 + return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, dragDropEvents, {
8566 + className: getClassName()
8567 + }), props.children);
8568 +}
8569 +
8570 +DragDrop.propTypes = {
8571 + className: PropTypes.string,
8572 + children: PropTypes.any,
8573 + onDrop: PropTypes.func,
8574 + onDragLeave: PropTypes.func,
8575 + onDragOver: PropTypes.func,
8576 + isLoading: PropTypes.bool
8577 +};
8578 +DragDrop.defaultProps = {
8579 + className: ''
8580 +};
8581 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8582 +
8583 +/***/ }),
8584 +/* 694 */
8585 +/***/ (function(module, exports, __webpack_require__) {
8586 +
8587 +"use strict";
8588 +/* WEBPACK VAR INJECTION */(function(PropTypes, __) {
8589 +
8590 +var _interopRequireDefault = __webpack_require__(0);
8591 +
8592 +var _interopRequireWildcard = __webpack_require__(34);
8593 +
8594 +var _Object$defineProperty = __webpack_require__(1);
8595 +
8596 +_Object$defineProperty(exports, "__esModule", {
8597 + value: true
8598 +});
8599 +
8600 +exports.default = UploadFile;
8601 +
8602 +var _react = _interopRequireWildcard(__webpack_require__(12));
8603 +
8604 +var _button = _interopRequireDefault(__webpack_require__(240));
8605 +
8606 +__webpack_require__(773);
8607 +
8608 +function UploadFile(props) {
8609 + var fileInput = (0, _react.useRef)(null);
8610 + return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("input", {
8611 + ref: fileInput,
8612 + type: "file",
8613 + className: "e-app-upload-file__input",
8614 + onChange: function onChange(event) {
8615 + props.onFileSelect(event.target.files, event);
8616 + }
8617 + }), /*#__PURE__*/_react.default.createElement(_button.default, {
8618 + className: "e-app-upload-file__button",
8619 + text: props.text,
8620 + variant: "contained",
8621 + color: "primary",
8622 + size: "lg",
8623 + hideText: props.isLoading,
8624 + icon: props.isLoading ? 'eicon-loading eicon-animation-spin' : '',
8625 + onClick: function onClick() {
8626 + if (!props.isLoading) {
8627 + fileInput.current.click();
8628 + }
8629 + }
8630 + }));
8631 +}
8632 +
8633 +UploadFile.propTypes = {
8634 + className: PropTypes.string,
8635 + text: PropTypes.string,
8636 + onFileSelect: PropTypes.func,
8637 + isLoading: PropTypes.bool
8638 +};
8639 +UploadFile.defaultProps = {
8640 + className: '',
8641 + text: __('Select File', 'elementor')
8642 +};
8643 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(196)["__"]))
8644 +
8645 +/***/ }),
8646 +/* 695 */
8647 +/***/ (function(module, exports, __webpack_require__) {
8648 +
8649 +"use strict";
8650 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8651 +
8652 +var _interopRequireDefault = __webpack_require__(0);
8653 +
8654 +var _Object$defineProperty = __webpack_require__(1);
8655 +
8656 +_Object$defineProperty(exports, "__esModule", {
8657 + value: true
8658 +});
8659 +
8660 +exports.default = Menu;
8661 +
8662 +var _react = _interopRequireDefault(__webpack_require__(12));
8663 +
8664 +__webpack_require__(124);
8665 +
8666 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
8667 +
8668 +__webpack_require__(775);
8669 +
8670 +var _button = _interopRequireDefault(__webpack_require__(240));
8671 +
8672 +var _router = _interopRequireDefault(__webpack_require__(357));
8673 +
8674 +var _router2 = __webpack_require__(353);
8675 +
8676 +function Menu(props) {
8677 + var ActionButton = function ActionButton(itemProps) {
8678 + if (!props.actionButton) {
8679 + return '';
8680 + }
8681 +
8682 + return props.actionButton(itemProps);
8683 + };
8684 +
8685 + if (props.promotion) {
8686 + return /*#__PURE__*/_react.default.createElement("nav", {
8687 + className: "eps-menu"
8688 + }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) {
8689 + return /*#__PURE__*/_react.default.createElement("li", {
8690 + key: item.type,
8691 + className: "eps-menu-item"
8692 + }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
8693 + text: item.title,
8694 + className: "eps-menu-item__link"
8695 + }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item));
8696 + })));
8697 + }
8698 +
8699 + return /*#__PURE__*/_react.default.createElement(_router2.LocationProvider, {
8700 + history: _router.default.appHistory
8701 + }, /*#__PURE__*/_react.default.createElement("nav", {
8702 + className: "eps-menu"
8703 + }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) {
8704 + return /*#__PURE__*/_react.default.createElement(_router2.Match, {
8705 + key: item.type,
8706 + path: item.url
8707 + }, function (_ref) {
8708 + var match = _ref.match;
8709 + return /*#__PURE__*/_react.default.createElement("li", {
8710 + key: item.type,
8711 + className: "eps-menu-item".concat(match ? ' eps-menu-item--active' : '')
8712 + }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
8713 + text: item.title,
8714 + className: "eps-menu-item__link"
8715 + }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item));
8716 + });
8717 + }))));
8718 +}
8719 +
8720 +Menu.propTypes = {
8721 + menuItems: PropTypes.arrayOf(PropTypes.object),
8722 + children: PropTypes.any,
8723 + actionButton: PropTypes.func,
8724 + promotion: PropTypes.bool
8725 +};
8726 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
8727 +
8728 +/***/ }),
8729 +/* 696 */
8730 +/***/ (function(module, exports, __webpack_require__) {
8731 +
8732 +"use strict";
8733 +
8734 +
8735 +var _interopRequireDefault = __webpack_require__(0);
8736 +
8737 +var _Object$defineProperty = __webpack_require__(1);
8738 +
8739 +_Object$defineProperty(exports, "__esModule", {
8740 + value: true
8741 +});
8742 +
8743 +exports.default = void 0;
8744 +
8745 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8746 +
8747 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8748 +
8749 +var _get2 = _interopRequireDefault(__webpack_require__(26));
8750 +
8751 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
8752 +
8753 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8754 +
8755 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8756 +
8757 +__webpack_require__(776);
8758 +
8759 +var _button = _interopRequireDefault(__webpack_require__(240));
8760 +
8761 +var SideMenuItem = /*#__PURE__*/function (_BaseButton) {
8762 + (0, _inherits2.default)(SideMenuItem, _BaseButton);
8763 +
8764 + var _super = (0, _createSuper2.default)(SideMenuItem);
8765 +
8766 + function SideMenuItem() {
8767 + (0, _classCallCheck2.default)(this, SideMenuItem);
8768 + return _super.apply(this, arguments);
8769 + }
8770 +
8771 + (0, _createClass2.default)(SideMenuItem, [{
8772 + key: "getCssId",
8773 + value: function getCssId() {
8774 + return "eps-menu-item-" + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getCssId", this).call(this);
8775 + }
8776 + }, {
8777 + key: "getClassName",
8778 + value: function getClassName() {
8779 + return "eps-menu-item " + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getClassName", this).call(this);
8780 + }
8781 + }]);
8782 + return SideMenuItem;
8783 +}(_button.default);
8784 +
8785 +exports.default = SideMenuItem;
8786 +
8787 +/***/ }),
8788 +/* 697 */
8789 +/***/ (function(module, exports, __webpack_require__) {
8790 +
8791 +"use strict";
8792 +/* WEBPACK VAR INJECTION */(function(PropTypes, __) {
8793 +
8794 +var _interopRequireDefault = __webpack_require__(0);
8795 +
8796 +var _Object$defineProperty = __webpack_require__(1);
8797 +
8798 +_Object$defineProperty(exports, "__esModule", {
8799 + value: true
8800 +});
8801 +
8802 +exports.default = void 0;
8803 +
8804 +var _react = _interopRequireDefault(__webpack_require__(12));
8805 +
8806 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
8807 +
8808 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8809 +
8810 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8811 +
8812 +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
8813 +
8814 +var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8815 +
8816 +var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8817 +
8818 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
8819 +
8820 +var _button = _interopRequireDefault(__webpack_require__(240));
8821 +
8822 +var _grid = _interopRequireDefault(__webpack_require__(359));
8823 +
8824 +var _icon = _interopRequireDefault(__webpack_require__(358));
8825 +
8826 +__webpack_require__(777);
8827 +
8828 +var ModalProvider = /*#__PURE__*/function (_React$Component) {
8829 + (0, _inherits2.default)(ModalProvider, _React$Component);
8830 +
8831 + var _super = (0, _createSuper2.default)(ModalProvider);
8832 +
8833 + function ModalProvider(props) {
8834 + var _this;
8835 +
8836 + (0, _classCallCheck2.default)(this, ModalProvider);
8837 + _this = _super.call(this, props);
8838 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "hideModal", function () {
8839 + _this.setState({
8840 + show: false
8841 + });
8842 + });
8843 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "showModal", function () {
8844 + _this.setState({
8845 + show: true
8846 + });
8847 + });
8848 + _this.state = {
8849 + hideModal: _this.hideModal,
8850 + show: false,
8851 + showModal: _this.showModal
8852 + };
8853 + return _this;
8854 + }
8855 +
8856 + (0, _createClass2.default)(ModalProvider, [{
8857 + key: "render",
8858 + value: function render() {
8859 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, this.props.toggleButtonProps, {
8860 + onClick: this.state.showModal
8861 + })), /*#__PURE__*/_react.default.createElement(Modal, {
8862 + modalProps: this.state,
8863 + title: this.props.title
8864 + }, this.props.children));
8865 + }
8866 + }]);
8867 + return ModalProvider;
8868 +}(_react.default.Component);
8869 +
8870 +exports.default = ModalProvider;
8871 +ModalProvider.propTypes = {
8872 + children: PropTypes.node.isRequired,
8873 + toggleButtonProps: PropTypes.object.isRequired,
8874 + title: PropTypes.string.isRequired
8875 +};
8876 +
8877 +var Modal = /*#__PURE__*/function (_React$Component2) {
8878 + (0, _inherits2.default)(Modal, _React$Component2);
8879 +
8880 + var _super2 = (0, _createSuper2.default)(Modal);
8881 +
8882 + function Modal() {
8883 + var _this2;
8884 +
8885 + (0, _classCallCheck2.default)(this, Modal);
8886 +
8887 + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8888 + args[_key] = arguments[_key];
8889 + }
8890 +
8891 + _this2 = _super2.call.apply(_super2, [this].concat(args));
8892 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "modalRef", _react.default.createRef());
8893 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "closeRef", _react.default.createRef());
8894 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "closeModal", function (e) {
8895 + var modalProps = _this2.props.modalProps;
8896 + var node = _this2.modalRef.current,
8897 + closeNode = _this2.closeRef.current,
8898 + isInCloseNode = closeNode && closeNode.contains(e.target); // ignore if click is inside the modal
8899 +
8900 + if (node && node.contains(e.target) && !isInCloseNode) {
8901 + return;
8902 + }
8903 +
8904 + modalProps.hideModal();
8905 + });
8906 + return _this2;
8907 + }
8908 +
8909 + (0, _createClass2.default)(Modal, [{
8910 + key: "componentDidMount",
8911 + value: function componentDidMount() {
8912 + document.addEventListener('mousedown', this.closeModal, false);
8913 + }
8914 + }, {
8915 + key: "componentWillUnmount",
8916 + value: function componentWillUnmount() {
8917 + document.removeEventListener('mousedown', this.closeModal, false);
8918 + }
8919 + }, {
8920 + key: "render",
8921 + value: function render() {
8922 + var _this$props = this.props,
8923 + modalProps = _this$props.modalProps,
8924 + children = _this$props.children;
8925 + return modalProps.show ? /*#__PURE__*/_react.default.createElement("div", {
8926 + className: "eps-modal__overlay",
8927 + onClick: this.closeModal
8928 + }, /*#__PURE__*/_react.default.createElement("div", {
8929 + className: "eps-modal",
8930 + ref: this.modalRef
8931 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
8932 + container: true,
8933 + className: "eps-modal__header",
8934 + justify: "space-between",
8935 + alignItems: "center"
8936 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
8937 + item: true
8938 + }, /*#__PURE__*/_react.default.createElement(_icon.default, {
8939 + className: "eps-modal__icon eicon-info-circle"
8940 + }), this.props.title), /*#__PURE__*/_react.default.createElement(_grid.default, {
8941 + item: true
8942 + }, /*#__PURE__*/_react.default.createElement("div", {
8943 + className: "eps-modal__close-wrapper",
8944 + ref: this.closeRef
8945 + }, /*#__PURE__*/_react.default.createElement(_button.default, {
8946 + text: __('Close', 'elementor'),
8947 + hideText: true,
8948 + icon: "eicon-close",
8949 + onClick: this.closeModal
8950 + })))), /*#__PURE__*/_react.default.createElement("div", {
8951 + className: "eps-modal__body"
8952 + }, children))) : null;
8953 + }
8954 + }]);
8955 + return Modal;
8956 +}(_react.default.Component);
8957 +
8958 +Modal.propTypes = {
8959 + modalProps: PropTypes.object.isRequired,
8960 + children: PropTypes.any.isRequired,
8961 + title: PropTypes.string.isRequired
8962 +};
8963 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(196)["__"]))
8964 +
8965 +/***/ }),
8966 +/* 698 */
8967 +/***/ (function(module, exports, __webpack_require__) {
8968 +
8969 +"use strict";
8970 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
8971 +
8972 +var _interopRequireDefault = __webpack_require__(0);
8973 +
8974 +var _Object$defineProperty = __webpack_require__(1);
8975 +
8976 +_Object$defineProperty(exports, "__esModule", {
8977 + value: true
8978 +});
8979 +
8980 +exports.default = Select;
8981 +
8982 +var _react = _interopRequireDefault(__webpack_require__(12));
8983 +
8984 +function Select(props) {
8985 + return /*#__PURE__*/_react.default.createElement("select", {
8986 + multiple: props.multiple,
8987 + className: props.className,
8988 + value: props.value,
8989 + onChange: props.onChange,
8990 + ref: props.elRef
8991 + }, props.options.map(function (option) {
8992 + return option.children ? /*#__PURE__*/_react.default.createElement("optgroup", {
8993 + label: option.label,
8994 + key: option.label
8995 + }, option.children.map(function (childOption) {
8996 + return /*#__PURE__*/_react.default.createElement("option", {
8997 + key: childOption.value,
8998 + value: childOption.value
8999 + }, childOption.label);
9000 + })) : /*#__PURE__*/_react.default.createElement("option", {
9001 + key: option.value,
9002 + value: option.value
9003 + }, option.label);
9004 + }));
9005 +}
9006 +
9007 +Select.propTypes = {
9008 + className: PropTypes.string,
9009 + value: PropTypes.string,
9010 + onChange: PropTypes.func,
9011 + options: PropTypes.array,
9012 + elRef: PropTypes.object,
9013 + multiple: PropTypes.bool
9014 +};
9015 +Select.defaultProps = {
9016 + className: '',
9017 + options: []
9018 +};
9019 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9020 +
9021 +/***/ }),
9022 +/* 699 */
9023 +/***/ (function(module, exports, __webpack_require__) {
9024 +
9025 +"use strict";
9026 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9027 +
9028 +var _interopRequireDefault = __webpack_require__(0);
9029 +
9030 +var _Object$defineProperty = __webpack_require__(1);
9031 +
9032 +_Object$defineProperty(exports, "__esModule", {
9033 + value: true
9034 +});
9035 +
9036 +exports.default = AllPartsButton;
9037 +
9038 +var _react = _interopRequireDefault(__webpack_require__(12));
9039 +
9040 +__webpack_require__(124);
9041 +
9042 +var _menuItem = _interopRequireDefault(__webpack_require__(696));
9043 +
9044 +var _router = __webpack_require__(353);
9045 +
9046 +function AllPartsButton(props) {
9047 + var activePathname = '/site-editor/templates';
9048 + return /*#__PURE__*/_react.default.createElement(_router.Match, {
9049 + path: activePathname
9050 + }, function (_ref) {
9051 + var match = _ref.match;
9052 + var className = "eps-menu-item__link".concat(match || props.promotion ? ' eps-menu-item--active' : '');
9053 + return /*#__PURE__*/_react.default.createElement(_menuItem.default, {
9054 + text: __('All Parts', 'elementor'),
9055 + className: className,
9056 + icon: "eicon-filter",
9057 + url: props.url
9058 + });
9059 + });
9060 +}
9061 +
9062 +AllPartsButton.propTypes = {
9063 + url: PropTypes.string,
9064 + promotion: PropTypes.bool
9065 +};
9066 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
9067 +
9068 +/***/ }),
9069 +/* 700 */
9070 +/***/ (function(module, exports, __webpack_require__) {
9071 +
9072 +"use strict";
9073 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9074 +
9075 +var _interopRequireDefault = __webpack_require__(0);
9076 +
9077 +var _Object$defineProperty = __webpack_require__(1);
9078 +
9079 +_Object$defineProperty(exports, "__esModule", {
9080 + value: true
9081 +});
9082 +
9083 +exports.default = Layout;
9084 +
9085 +var _react = _interopRequireDefault(__webpack_require__(12));
9086 +
9087 +var _page = _interopRequireDefault(__webpack_require__(408));
9088 +
9089 +var _menu = _interopRequireDefault(__webpack_require__(783));
9090 +
9091 +var _templateTypes = _interopRequireDefault(__webpack_require__(417));
9092 +
9093 +__webpack_require__(786);
9094 +
9095 +function Layout(props) {
9096 + var config = {
9097 + title: __('Theme Builder', 'elementor'),
9098 + titleRedirectRoute: '/site-editor',
9099 + headerButtons: props.headerButtons,
9100 + sidebar: /*#__PURE__*/_react.default.createElement(_menu.default, {
9101 + allPartsButton: props.allPartsButton,
9102 + promotion: props.promotion
9103 + }),
9104 + content: props.children
9105 + };
9106 + return /*#__PURE__*/_react.default.createElement(_templateTypes.default, null, /*#__PURE__*/_react.default.createElement(_page.default, config));
9107 +}
9108 +
9109 +Layout.propTypes = {
9110 + headerButtons: PropTypes.arrayOf(PropTypes.object),
9111 + allPartsButton: PropTypes.element.isRequired,
9112 + children: PropTypes.object.isRequired,
9113 + promotion: PropTypes.bool
9114 +};
9115 +Layout.defaultProps = {
9116 + headerButtons: []
9117 +};
9118 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
9119 +
9120 +/***/ }),
9121 +/* 701 */
9122 +/***/ (function(module, exports, __webpack_require__) {
9123 +
9124 +"use strict";
9125 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9126 +
9127 +var _interopRequireDefault = __webpack_require__(0);
9128 +
9129 +var _Object$defineProperty = __webpack_require__(1);
9130 +
9131 +_Object$defineProperty(exports, "__esModule", {
9132 + value: true
9133 +});
9134 +
9135 +exports.default = SiteParts;
9136 +
9137 +var _react = _interopRequireDefault(__webpack_require__(12));
9138 +
9139 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
9140 +
9141 +var _button = _interopRequireDefault(__webpack_require__(240));
9142 +
9143 +var _cssGrid = _interopRequireDefault(__webpack_require__(691));
9144 +
9145 +var _modal = _interopRequireDefault(__webpack_require__(697));
9146 +
9147 +var _sitePart = _interopRequireDefault(__webpack_require__(702));
9148 +
9149 +var _templateTypes = __webpack_require__(417);
9150 +
9151 +var InfoButton = function InfoButton(props) {
9152 + var toggleButtonProps = {
9153 + text: __('Info', 'elementor'),
9154 + hideText: true,
9155 + icon: 'eicon-info-circle e-site-part__info-toggle'
9156 + };
9157 + return /*#__PURE__*/_react.default.createElement(_modal.default, {
9158 + toggleButtonProps: toggleButtonProps,
9159 + title: props.title
9160 + }, /*#__PURE__*/_react.default.createElement(_cssGrid.default, {
9161 + columns: 2,
9162 + spacing: 60
9163 + }, /*#__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, {
9164 + text: __('Learn More', 'elementor'),
9165 + color: "link",
9166 + target: "_blank",
9167 + url: props.docs
9168 + })), /*#__PURE__*/_react.default.createElement("div", {
9169 + className: "eps-modal__tip"
9170 + }, /*#__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", {
9171 + className: "video-wrapper"
9172 + }, /*#__PURE__*/_react.default.createElement("iframe", {
9173 + id: "ytplayer",
9174 + src: props.video_url,
9175 + frameBorder: "0"
9176 + })))));
9177 +};
9178 +
9179 +InfoButton.propTypes = {
9180 + content: PropTypes.string.isRequired,
9181 + docs: PropTypes.string.isRequired,
9182 + tip: PropTypes.string.isRequired,
9183 + title: PropTypes.string.isRequired,
9184 + type: PropTypes.string.isRequired,
9185 + video_url: PropTypes.string.isRequired
9186 +};
9187 +
9188 +function SiteParts(props) {
9189 + var _React$useContext = _react.default.useContext(_templateTypes.Context),
9190 + templateTypes = _React$useContext.templateTypes;
9191 +
9192 + return /*#__PURE__*/_react.default.createElement(_cssGrid.default, {
9193 + className: "e-site-editor__site-parts",
9194 + colMinWidth: 200,
9195 + spacing: 25
9196 + }, templateTypes.map(function (item) {
9197 + return /*#__PURE__*/_react.default.createElement(_sitePart.default, (0, _extends2.default)({
9198 + className: "e-site-editor__site-part",
9199 + actionButton: /*#__PURE__*/_react.default.createElement(InfoButton, (0, _extends2.default)({
9200 + type: item.title
9201 + }, item.tooltip_data)),
9202 + thumbnail: item.urls.thumbnail,
9203 + key: item.type
9204 + }, item), _react.default.createElement(props.hoverElement, item));
9205 + }));
9206 +}
9207 +
9208 +SiteParts.propTypes = {
9209 + hoverElement: PropTypes.func.isRequired
9210 +};
9211 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
9212 +
9213 +/***/ }),
9214 +/* 702 */
9215 +/***/ (function(module, exports, __webpack_require__) {
9216 +
9217 +"use strict";
9218 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9219 +
9220 +var _interopRequireDefault = __webpack_require__(0);
9221 +
9222 +var _Object$defineProperty = __webpack_require__(1);
9223 +
9224 +_Object$defineProperty(exports, "__esModule", {
9225 + value: true
9226 +});
9227 +
9228 +exports.default = SitePart;
9229 +
9230 +var _react = _interopRequireDefault(__webpack_require__(12));
9231 +
9232 +var _card = _interopRequireDefault(__webpack_require__(686));
9233 +
9234 +var _cardHeader = _interopRequireDefault(__webpack_require__(689));
9235 +
9236 +var _cardBody = _interopRequireDefault(__webpack_require__(687));
9237 +
9238 +var _cardImage = _interopRequireDefault(__webpack_require__(688));
9239 +
9240 +var _heading = _interopRequireDefault(__webpack_require__(349));
9241 +
9242 +__webpack_require__(789);
9243 +
9244 +function SitePart(props) {
9245 + return /*#__PURE__*/_react.default.createElement(_card.default, {
9246 + className: "e-site-part"
9247 + }, /*#__PURE__*/_react.default.createElement(_cardHeader.default, null, /*#__PURE__*/_react.default.createElement(_heading.default, {
9248 + tag: "h1",
9249 + variant: "text-sm",
9250 + className: "eps-card__headline"
9251 + }, props.title), props.actionButton), /*#__PURE__*/_react.default.createElement(_cardBody.default, null, /*#__PURE__*/_react.default.createElement(_cardImage.default, {
9252 + alt: props.title,
9253 + src: props.thumbnail
9254 + }, props.children)));
9255 +}
9256 +
9257 +SitePart.propTypes = {
9258 + thumbnail: PropTypes.string.isRequired,
9259 + title: PropTypes.string.isRequired,
9260 + children: PropTypes.object,
9261 + showIndicator: PropTypes.bool,
9262 + actionButton: PropTypes.object
9263 +};
9264 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9265 +
9266 +/***/ }),
9267 +/* 703 */
9268 +/***/ (function(module, exports, __webpack_require__) {
9269 +
9270 +"use strict";
9271 +/* WEBPACK VAR INJECTION */(function(__) {
9272 +
9273 +var _interopRequireDefault = __webpack_require__(0);
9274 +
9275 +var _Object$defineProperty = __webpack_require__(1);
9276 +
9277 +_Object$defineProperty(exports, "__esModule", {
9278 + value: true
9279 +});
9280 +
9281 +exports.default = NotFound;
9282 +
9283 +var _react = _interopRequireDefault(__webpack_require__(12));
9284 +
9285 +__webpack_require__(82);
9286 +
9287 +var _dialog = _interopRequireDefault(__webpack_require__(409));
9288 +
9289 +function NotFound() {
9290 + var url = _react.default.useMemo(function () {
9291 + var _elementorAppConfig$m;
9292 +
9293 + return ((_elementorAppConfig$m = elementorAppConfig.menu_url.split('#')) === null || _elementorAppConfig$m === void 0 ? void 0 : _elementorAppConfig$m[1]) || '/site-editor';
9294 + }, []);
9295 +
9296 + return /*#__PURE__*/_react.default.createElement(_dialog.default, {
9297 + title: __('Theme Builder could not be loaded', 'elementor'),
9298 + text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'),
9299 + approveButtonUrl: "https://go.elementor.com/app-theme-builder-load-issue",
9300 + approveButtonColor: "link",
9301 + approveButtonTarget: "_blank",
9302 + approveButtonText: __('Learn More', 'elementor'),
9303 + dismissButtonText: __('Go Back', 'elementor'),
9304 + dismissButtonUrl: url
9305 + });
9306 +}
9307 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"]))
9308 +
9309 +/***/ }),
9310 +/* 704 */,
9311 +/* 705 */,
9312 +/* 706 */,
9313 +/* 707 */,
9314 +/* 708 */,
9315 +/* 709 */,
9316 +/* 710 */,
9317 +/* 711 */,
9318 +/* 712 */,
9319 +/* 713 */,
9320 +/* 714 */,
9321 +/* 715 */,
9322 +/* 716 */,
9323 +/* 717 */,
9324 +/* 718 */,
9325 +/* 719 */,
9326 +/* 720 */,
9327 +/* 721 */,
9328 +/* 722 */,
9329 +/* 723 */,
9330 +/* 724 */,
9331 +/* 725 */,
9332 +/* 726 */,
9333 +/* 727 */,
9334 +/* 728 */,
9335 +/* 729 */,
9336 +/* 730 */,
9337 +/* 731 */,
9338 +/* 732 */,
9339 +/* 733 */,
9340 +/* 734 */,
9341 +/* 735 */,
9342 +/* 736 */,
9343 +/* 737 */,
9344 +/* 738 */,
9345 +/* 739 */,
9346 +/* 740 */,
9347 +/* 741 */,
9348 +/* 742 */,
9349 +/* 743 */,
9350 +/* 744 */,
9351 +/* 745 */,
9352 +/* 746 */,
9353 +/* 747 */,
9354 +/* 748 */,
9355 +/* 749 */,
9356 +/* 750 */,
9357 +/* 751 */,
9358 +/* 752 */,
9359 +/* 753 */,
9360 +/* 754 */,
9361 +/* 755 */,
9362 +/* 756 */,
9363 +/* 757 */,
9364 +/* 758 */,
9365 +/* 759 */,
9366 +/* 760 */,
9367 +/* 761 */,
9368 +/* 762 */,
9369 +/* 763 */,
9370 +/* 764 */,
9371 +/* 765 */
9372 +/***/ (function(module, exports, __webpack_require__) {
9373 +
9374 +"use strict";
9375 +
9376 +
9377 +var _interopRequireDefault = __webpack_require__(0);
9378 +
9379 +var _router = _interopRequireDefault(__webpack_require__(766));
9380 +
9381 +var _package = _interopRequireDefault(__webpack_require__(767));
9382 +
9383 +var _package2 = _interopRequireDefault(__webpack_require__(782));
9384 +
9385 +/**
9386 + * Temporary solution for share components.
9387 + * TODO.
9388 + */
9389 +// Make router available for use within packages.
9390 +// Alphabetical order.
9391 +window.elementorAppPackages = {
9392 + appUi: _package.default,
9393 + router: _router.default,
9394 + siteEditor: _package2.default
9395 +};
9396 +
9397 +/***/ }),
9398 +/* 766 */
9399 +/***/ (function(module, exports, __webpack_require__) {
9400 +
9401 +"use strict";
9402 +/* WEBPACK VAR INJECTION */(function(React) {
9403 +
9404 +var _interopRequireDefault = __webpack_require__(0);
9405 +
9406 +var _Object$defineProperty = __webpack_require__(1);
9407 +
9408 +_Object$defineProperty(exports, "__esModule", {
9409 + value: true
9410 +});
9411 +
9412 +exports.default = void 0;
9413 +
9414 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9415 +
9416 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9417 +
9418 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
9419 +
9420 +/**
9421 + * App Router
9422 + *
9423 + * TODO: Temporary solution for routing extensibility.
9424 + */
9425 +var Router = /*#__PURE__*/function () {
9426 + function Router() {
9427 + (0, _classCallCheck2.default)(this, Router);
9428 + (0, _defineProperty2.default)(this, "routes", []);
9429 + (0, _defineProperty2.default)(this, "history", null);
9430 + }
9431 +
9432 + (0, _createClass2.default)(Router, [{
9433 + key: "addRoute",
9434 +
9435 + /**
9436 + *
9437 + * @param route {{
9438 + * path: string,
9439 + * component: object,
9440 + * props: object,
9441 + * }}
9442 + */
9443 + value: function addRoute(route) {
9444 + this.routes.push(route);
9445 + }
9446 + }, {
9447 + key: "getRoutes",
9448 + value: function getRoutes() {
9449 + return this.routes.map(function (route) {
9450 + var props = route.props || {}; // Use the path as a key, and add it as a prop.
9451 +
9452 + props.path = props.key = route.path;
9453 + return React.createElement(route.component, props);
9454 + });
9455 + }
9456 + }]);
9457 + return Router;
9458 +}();
9459 +
9460 +var router = new Router(); // Make router available for use within packages.
9461 +
9462 +window.elementorAppPackages = {
9463 + router: router
9464 +};
9465 +var _default = router;
9466 +exports.default = _default;
9467 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(12)))
9468 +
9469 +/***/ }),
9470 +/* 767 */
9471 +/***/ (function(module, exports, __webpack_require__) {
9472 +
9473 +"use strict";
9474 +
9475 +
9476 +var _interopRequireDefault = __webpack_require__(0);
9477 +
9478 +var _Object$defineProperty = __webpack_require__(1);
9479 +
9480 +_Object$defineProperty(exports, "__esModule", {
9481 + value: true
9482 +});
9483 +
9484 +exports.default = void 0;
9485 +
9486 +var _addNewButton = _interopRequireDefault(__webpack_require__(685));
9487 +
9488 +var _button = _interopRequireDefault(__webpack_require__(240));
9489 +
9490 +var _card = _interopRequireDefault(__webpack_require__(686));
9491 +
9492 +var _cardBody = _interopRequireDefault(__webpack_require__(687));
9493 +
9494 +var _cardFooter = _interopRequireDefault(__webpack_require__(769));
9495 +
9496 +var _cardImage = _interopRequireDefault(__webpack_require__(688));
9497 +
9498 +var _cardHeader = _interopRequireDefault(__webpack_require__(689));
9499 +
9500 +var _cardOverlay = _interopRequireDefault(__webpack_require__(690));
9501 +
9502 +var _cssGrid = _interopRequireDefault(__webpack_require__(691));
9503 +
9504 +var _dialog = _interopRequireDefault(__webpack_require__(409));
9505 +
9506 +var _dragDrop = _interopRequireDefault(__webpack_require__(693));
9507 +
9508 +var _dropZone = _interopRequireDefault(__webpack_require__(772));
9509 +
9510 +var _errorBoundary = _interopRequireDefault(__webpack_require__(657));
9511 +
9512 +var _heading = _interopRequireDefault(__webpack_require__(349));
9513 +
9514 +var _grid = _interopRequireDefault(__webpack_require__(359));
9515 +
9516 +var _icon = _interopRequireDefault(__webpack_require__(358));
9517 +
9518 +var _menu = _interopRequireDefault(__webpack_require__(695));
9519 +
9520 +var _menuItem = _interopRequireDefault(__webpack_require__(696));
9521 +
9522 +var _modal = _interopRequireDefault(__webpack_require__(697));
9523 +
9524 +var _notFound = _interopRequireDefault(__webpack_require__(648));
9525 +
9526 +var _page = _interopRequireDefault(__webpack_require__(408));
9527 +
9528 +var _popover = _interopRequireDefault(__webpack_require__(778));
9529 +
9530 +var _select = _interopRequireDefault(__webpack_require__(698));
9531 +
9532 +var _select2 = _interopRequireDefault(__webpack_require__(780));
9533 +
9534 +var _text = _interopRequireDefault(__webpack_require__(360));
9535 +
9536 +var _uploadFile = _interopRequireDefault(__webpack_require__(694));
9537 +
9538 +// Alphabetical order.
9539 +var _default = {
9540 + AddNewButton: _addNewButton.default,
9541 + Button: _button.default,
9542 + Card: _card.default,
9543 + CardBody: _cardBody.default,
9544 + CardFooter: _cardFooter.default,
9545 + CardHeader: _cardHeader.default,
9546 + CardImage: _cardImage.default,
9547 + CardOverlay: _cardOverlay.default,
9548 + CssGrid: _cssGrid.default,
9549 + Dialog: _dialog.default,
9550 + DragDrop: _dragDrop.default,
9551 + DropZone: _dropZone.default,
9552 + ErrorBoundary: _errorBoundary.default,
9553 + Heading: _heading.default,
9554 + Grid: _grid.default,
9555 + Icon: _icon.default,
9556 + Menu: _menu.default,
9557 + MenuItem: _menuItem.default,
9558 + ModalProvider: _modal.default,
9559 + NotFound: _notFound.default,
9560 + Page: _page.default,
9561 + Popover: _popover.default,
9562 + Select: _select.default,
9563 + Select2: _select2.default,
9564 + Text: _text.default,
9565 + UploadFile: _uploadFile.default
9566 +};
9567 +exports.default = _default;
9568 +
9569 +/***/ }),
9570 +/* 768 */
9571 +/***/ (function(module, exports) {
9572 +
9573 +
9574 +
9575 +/***/ }),
9576 +/* 769 */
9577 +/***/ (function(module, exports, __webpack_require__) {
9578 +
9579 +"use strict";
9580 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9581 +
9582 +var _interopRequireDefault = __webpack_require__(0);
9583 +
9584 +var _Object$defineProperty = __webpack_require__(1);
9585 +
9586 +_Object$defineProperty(exports, "__esModule", {
9587 + value: true
9588 +});
9589 +
9590 +exports.default = CardFooter;
9591 +
9592 +var _react = _interopRequireDefault(__webpack_require__(12));
9593 +
9594 +__webpack_require__(361);
9595 +
9596 +function CardFooter(props) {
9597 + return /*#__PURE__*/_react.default.createElement("footer", {
9598 + className: "eps-card__footer ".concat(props.className)
9599 + }, props.children);
9600 +}
9601 +
9602 +CardFooter.propTypes = {
9603 + className: PropTypes.string,
9604 + children: PropTypes.object.isRequired
9605 +};
9606 +CardFooter.defaultProps = {
9607 + className: ''
9608 +};
9609 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9610 +
9611 +/***/ }),
9612 +/* 770 */
9613 +/***/ (function(module, exports) {
9614 +
9615 +
9616 +
9617 +/***/ }),
9618 +/* 771 */
9619 +/***/ (function(module, exports) {
9620 +
9621 +
9622 +
9623 +/***/ }),
9624 +/* 772 */
9625 +/***/ (function(module, exports, __webpack_require__) {
9626 +
9627 +"use strict";
9628 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9629 +
9630 +var _interopRequireDefault = __webpack_require__(0);
9631 +
9632 +var _Object$defineProperty = __webpack_require__(1);
9633 +
9634 +_Object$defineProperty(exports, "__esModule", {
9635 + value: true
9636 +});
9637 +
9638 +exports.default = DropZone;
9639 +
9640 +var _react = _interopRequireDefault(__webpack_require__(12));
9641 +
9642 +var _extends2 = _interopRequireDefault(__webpack_require__(195));
9643 +
9644 +var _uploadFile = _interopRequireDefault(__webpack_require__(694));
9645 +
9646 +var _dragDrop = _interopRequireDefault(__webpack_require__(693));
9647 +
9648 +var _icon = _interopRequireDefault(__webpack_require__(358));
9649 +
9650 +var _heading = _interopRequireDefault(__webpack_require__(349));
9651 +
9652 +var _text = _interopRequireDefault(__webpack_require__(360));
9653 +
9654 +__webpack_require__(774);
9655 +
9656 +function DropZone(props) {
9657 + var dragDropEvents = {
9658 + onDrop: function onDrop(event) {
9659 + if (!props.isLoading) {
9660 + props.onFileSelect(event.dataTransfer.files, event);
9661 + }
9662 + }
9663 + };
9664 + return /*#__PURE__*/_react.default.createElement("section", {
9665 + className: "e-app-drop-zone"
9666 + }, /*#__PURE__*/_react.default.createElement(_dragDrop.default, (0, _extends2.default)({}, dragDropEvents, {
9667 + isLoading: props.isLoading
9668 + }), props.icon && /*#__PURE__*/_react.default.createElement(_icon.default, {
9669 + className: "e-app-drop-zone__icon ".concat(props.icon)
9670 + }), props.heading && /*#__PURE__*/_react.default.createElement(_heading.default, {
9671 + variant: "display-3"
9672 + }, props.heading), props.text && /*#__PURE__*/_react.default.createElement(_text.default, {
9673 + variant: "xl"
9674 + }, props.text), props.secondaryText && /*#__PURE__*/_react.default.createElement(_text.default, {
9675 + variant: "xl"
9676 + }, props.secondaryText), props.showButton && /*#__PURE__*/_react.default.createElement(_uploadFile.default, {
9677 + isLoading: props.isLoading,
9678 + onFileSelect: props.onFileSelect,
9679 + text: props.buttonText
9680 + })));
9681 +}
9682 +
9683 +DropZone.propTypes = {
9684 + className: PropTypes.string,
9685 + children: PropTypes.any,
9686 + onFileSelect: PropTypes.func,
9687 + heading: PropTypes.string,
9688 + text: PropTypes.string,
9689 + secondaryText: PropTypes.string,
9690 + buttonText: PropTypes.string,
9691 + icon: PropTypes.string,
9692 + showButton: PropTypes.bool,
9693 + showIcon: PropTypes.bool,
9694 + isLoading: PropTypes.bool
9695 +};
9696 +DropZone.defaultProps = {
9697 + className: '',
9698 + icon: 'eicon-library-upload',
9699 + showButton: true,
9700 + showIcon: true
9701 +};
9702 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9703 +
9704 +/***/ }),
9705 +/* 773 */
9706 +/***/ (function(module, exports) {
9707 +
9708 +
9709 +
9710 +/***/ }),
9711 +/* 774 */
9712 +/***/ (function(module, exports) {
9713 +
9714 +
9715 +
9716 +/***/ }),
9717 +/* 775 */
9718 +/***/ (function(module, exports) {
9719 +
9720 +
9721 +
9722 +/***/ }),
9723 +/* 776 */
9724 +/***/ (function(module, exports) {
9725 +
9726 +
9727 +
9728 +/***/ }),
9729 +/* 777 */
9730 +/***/ (function(module, exports) {
9731 +
9732 +
9733 +
9734 +/***/ }),
9735 +/* 778 */
9736 +/***/ (function(module, exports, __webpack_require__) {
9737 +
9738 +"use strict";
9739 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9740 +
9741 +var _interopRequireDefault = __webpack_require__(0);
9742 +
9743 +var _Object$defineProperty = __webpack_require__(1);
9744 +
9745 +_Object$defineProperty(exports, "__esModule", {
9746 + value: true
9747 +});
9748 +
9749 +exports.default = Popover;
9750 +
9751 +var _react = _interopRequireDefault(__webpack_require__(12));
9752 +
9753 +__webpack_require__(779);
9754 +
9755 +function Popover(props) {
9756 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
9757 + className: "eps-popover__background",
9758 + onClick: props.closeFunction
9759 + }), /*#__PURE__*/_react.default.createElement("ul", {
9760 + className: "eps-popover ".concat(props.className),
9761 + onClick: props.closeFunction
9762 + }, props.children));
9763 +}
9764 +
9765 +Popover.propTypes = {
9766 + children: PropTypes.any.isRequired,
9767 + className: PropTypes.string,
9768 + closeFunction: PropTypes.func
9769 +};
9770 +Popover.defaultProps = {
9771 + className: ''
9772 +};
9773 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9774 +
9775 +/***/ }),
9776 +/* 779 */
9777 +/***/ (function(module, exports) {
9778 +
9779 +
9780 +
9781 +/***/ }),
9782 +/* 780 */
9783 +/***/ (function(module, exports, __webpack_require__) {
9784 +
9785 +"use strict";
9786 +/* WEBPACK VAR INJECTION */(function(PropTypes) {
9787 +
9788 +var _interopRequireDefault = __webpack_require__(0);
9789 +
9790 +var _Object$defineProperty = __webpack_require__(1);
9791 +
9792 +_Object$defineProperty(exports, "__esModule", {
9793 + value: true
9794 +});
9795 +
9796 +exports.default = Select2;
9797 +
9798 +var _react = _interopRequireDefault(__webpack_require__(12));
9799 +
9800 +var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
9801 +
9802 +var _select = _interopRequireDefault(__webpack_require__(698));
9803 +
9804 +__webpack_require__(781);
9805 +
9806 +/**
9807 + * Default settings of the select 2
9808 + *
9809 + * @returns {{placeholder: string, allowClear: boolean, dir: string}}
9810 + */
9811 +var getDefaultSettings = function getDefaultSettings() {
9812 + return {
9813 + allowClear: true,
9814 + placeholder: '',
9815 + dir: elementorCommon.config.isRTL ? 'rtl' : 'ltr'
9816 + };
9817 +};
9818 +/**
9819 + * Main component
9820 + *
9821 + * @param props
9822 + * @returns {*}
9823 + * @constructor
9824 + */
9825 +
9826 +
9827 +function Select2(props) {
9828 + var ref = _react.default.useRef(null); // Initiate the select 2 library, call to onReady after initiate, and
9829 + // listen to select event on the select instance.
9830 +
9831 +
9832 + _react.default.useEffect(function () {
9833 + var $select2 = jQuery(ref.current).select2((0, _objectSpread2.default)((0, _objectSpread2.default)({}, getDefaultSettings()), props.settings)).on('select2:select select2:unselect', props.onChange);
9834 +
9835 + if (props.onReady) {
9836 + props.onReady($select2);
9837 + }
9838 +
9839 + return function () {
9840 + $select2.select2('destroy').off('select2:select select2:unselect');
9841 + };
9842 + }, [props.settings, props.options]); // Listen to changes in the prop `value`, if changed update the select 2.
9843 +
9844 +
9845 + _react.default.useEffect(function () {
9846 + jQuery(ref.current).val(props.value).trigger('change');
9847 + }, [props.value]);
9848 +
9849 + return /*#__PURE__*/_react.default.createElement(_select.default, {
9850 + multiple: props.multiple,
9851 + value: props.value,
9852 + onChange: props.onChange,
9853 + elRef: ref,
9854 + options: props.options
9855 + });
9856 +}
9857 +
9858 +Select2.propTypes = {
9859 + value: PropTypes.string,
9860 + onChange: PropTypes.func,
9861 + onReady: PropTypes.func,
9862 + options: PropTypes.array,
9863 + settings: PropTypes.object,
9864 + multiple: PropTypes.bool
9865 +};
9866 +Select2.defaultProps = {
9867 + settings: {},
9868 + options: [],
9869 + dependencies: []
9870 +};
9871 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41)))
9872 +
9873 +/***/ }),
9874 +/* 781 */
9875 +/***/ (function(module, exports) {
9876 +
9877 +
9878 +
9879 +/***/ }),
9880 +/* 782 */
9881 +/***/ (function(module, exports, __webpack_require__) {
9882 +
9883 +"use strict";
9884 +
9885 +
9886 +var _interopRequireDefault = __webpack_require__(0);
9887 +
9888 +var _Object$defineProperty = __webpack_require__(1);
9889 +
9890 +_Object$defineProperty(exports, "__esModule", {
9891 + value: true
9892 +});
9893 +
9894 +exports.default = void 0;
9895 +
9896 +var _allPartsButton = _interopRequireDefault(__webpack_require__(699));
9897 +
9898 +var _layout = _interopRequireDefault(__webpack_require__(700));
9899 +
9900 +var _module = _interopRequireDefault(__webpack_require__(787));
9901 +
9902 +var _notFound = _interopRequireDefault(__webpack_require__(703));
9903 +
9904 +var _siteParts = _interopRequireDefault(__webpack_require__(701));
9905 +
9906 +var _sitePart = _interopRequireDefault(__webpack_require__(702));
9907 +
9908 +var _templateTypes = __webpack_require__(417);
9909 +
9910 +// Alphabetical order.
9911 +var _default = {
9912 + AllPartsButton: _allPartsButton.default,
9913 + Layout: _layout.default,
9914 + Module: _module.default,
9915 + NotFound: _notFound.default,
9916 + SitePart: _sitePart.default,
9917 + SiteParts: _siteParts.default,
9918 + TemplateTypesContext: _templateTypes.Context
9919 +};
9920 +exports.default = _default;
9921 +
9922 +/***/ }),
9923 +/* 783 */
9924 +/***/ (function(module, exports, __webpack_require__) {
9925 +
9926 +"use strict";
9927 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
9928 +
9929 +var _interopRequireDefault = __webpack_require__(0);
9930 +
9931 +var _Object$defineProperty = __webpack_require__(1);
9932 +
9933 +_Object$defineProperty(exports, "__esModule", {
9934 + value: true
9935 +});
9936 +
9937 +exports.default = Menu;
9938 +
9939 +var _react = _interopRequireDefault(__webpack_require__(12));
9940 +
9941 +var _menu = _interopRequireDefault(__webpack_require__(695));
9942 +
9943 +var _templateTypes = __webpack_require__(417);
9944 +
9945 +var _button = _interopRequireDefault(__webpack_require__(240));
9946 +
9947 +var _addNewButton = _interopRequireDefault(__webpack_require__(685));
9948 +
9949 +__webpack_require__(785);
9950 +
9951 +function Menu(props) {
9952 + var _React$useContext = _react.default.useContext(_templateTypes.Context),
9953 + templateTypes = _React$useContext.templateTypes,
9954 + actionButton = function actionButton(itemProps) {
9955 + var className = 'eps-menu-item__action-button';
9956 +
9957 + if (props.promotion) {
9958 + return /*#__PURE__*/_react.default.createElement(_button.default, {
9959 + text: __('Go Pro', 'elementor'),
9960 + hideText: true,
9961 + icon: "eicon-lock",
9962 + className: className
9963 + });
9964 + }
9965 +
9966 + var goToCreate = function goToCreate() {
9967 + location.href = itemProps.urls.create;
9968 + };
9969 +
9970 + return /*#__PURE__*/_react.default.createElement("span", {
9971 + className: className
9972 + }, /*#__PURE__*/_react.default.createElement(_addNewButton.default, {
9973 + hideText: true,
9974 + size: "sm",
9975 + onClick: function onClick() {
9976 + return goToCreate();
9977 + }
9978 + }));
9979 + };
9980 +
9981 + return /*#__PURE__*/_react.default.createElement(_menu.default, {
9982 + menuItems: templateTypes,
9983 + actionButton: actionButton,
9984 + promotion: props.promotion
9985 + }, props.allPartsButton, /*#__PURE__*/_react.default.createElement("div", {
9986 + className: "eps-menu__title"
9987 + }, __('Site Parts', 'elementor')));
9988 +}
9989 +
9990 +Menu.propTypes = {
9991 + allPartsButton: PropTypes.element.isRequired,
9992 + promotion: PropTypes.bool
9993 +};
9994 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
9995 +
9996 +/***/ }),
9997 +/* 784 */
9998 +/***/ (function(module, exports) {
9999 +
10000 +
10001 +
10002 +/***/ }),
10003 +/* 785 */
10004 +/***/ (function(module, exports) {
10005 +
10006 +
10007 +
10008 +/***/ }),
10009 +/* 786 */
10010 +/***/ (function(module, exports) {
10011 +
10012 +
10013 +
10014 +/***/ }),
10015 +/* 787 */
10016 +/***/ (function(module, exports, __webpack_require__) {
10017 +
10018 +"use strict";
10019 +/* WEBPACK VAR INJECTION */(function(__) {
10020 +
10021 +var _interopRequireDefault = __webpack_require__(0);
10022 +
10023 +var _Object$defineProperty = __webpack_require__(1);
10024 +
10025 +_Object$defineProperty(exports, "__esModule", {
10026 + value: true
10027 +});
10028 +
10029 +exports.default = void 0;
10030 +
10031 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10032 +
10033 +var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10034 +
10035 +var _router = _interopRequireDefault(__webpack_require__(357));
10036 +
10037 +var _promotion = _interopRequireDefault(__webpack_require__(788));
10038 +
10039 +var _notFound = _interopRequireDefault(__webpack_require__(703));
10040 +
10041 +var SiteEditor = /*#__PURE__*/function () {
10042 + function SiteEditor() {
10043 + (0, _classCallCheck2.default)(this, SiteEditor);
10044 + this.saveTemplateTypesToCache();
10045 +
10046 + _router.default.addRoute({
10047 + path: '/site-editor/promotion',
10048 + component: _promotion.default
10049 + });
10050 +
10051 + _router.default.addRoute({
10052 + path: '/site-editor/*',
10053 + component: _notFound.default
10054 + });
10055 + }
10056 +
10057 + (0, _createClass2.default)(SiteEditor, [{
10058 + key: "saveTemplateTypesToCache",
10059 + value: function saveTemplateTypesToCache() {
10060 + var types = this.getTypes();
10061 + elementorCommon.ajax.addRequestCache({
10062 + unique_id: 'app_site_editor_template_types'
10063 + }, types);
10064 + }
10065 + }, {
10066 + key: "getTypes",
10067 + value: function getTypes() {
10068 + return [{
10069 + type: 'header',
10070 + icon: 'eicon-header',
10071 + title: __('Header', 'elementor'),
10072 + urls: {
10073 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/header.svg'
10074 + },
10075 + tooltip_data: {
10076 + title: __('What is a Header Template?', 'elementor'),
10077 + 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'),
10078 + tip: __('You can create multiple headers, and assign each to different areas of your site.', 'elementor'),
10079 + docs: 'https://go.elementor.com/app-theme-builder-header',
10080 + video_url: 'https://www.youtube.com/embed/HHy5RK6W-6I'
10081 + }
10082 + }, {
10083 + type: 'footer',
10084 + icon: 'eicon-footer',
10085 + title: __('Footer', 'elementor'),
10086 + urls: {
10087 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/footer.svg'
10088 + },
10089 + tooltip_data: {
10090 + title: __('What is a Footer Template?', 'elementor'),
10091 + 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'),
10092 + tip: __('You can create multiple footers, and assign each to different areas of your site.', 'elementor'),
10093 + docs: 'https://go.elementor.com/app-theme-builder-footer',
10094 + video_url: 'https://www.youtube.com/embed/xa8DoR4tQrY'
10095 + }
10096 + }, {
10097 + type: 'single-page',
10098 + icon: 'eicon-single-page',
10099 + title: __('Single Page', 'elementor'),
10100 + urls: {
10101 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-page.svg'
10102 + },
10103 + tooltip_data: {
10104 + title: __('What is a Single Page Template?', 'elementor'),
10105 + 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'),
10106 + tip: __('You can create multiple single page templates, and assign each to different areas of your site.', 'elementor'),
10107 + docs: 'https://go.elementor.com/app-theme-builder-page',
10108 + video_url: 'https://www.youtube.com/embed/_y5eZ60lVoY'
10109 + }
10110 + }, {
10111 + type: 'single-post',
10112 + icon: 'eicon-single-post',
10113 + title: __('Single Post', 'elementor'),
10114 + urls: {
10115 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-post.svg'
10116 + },
10117 + tooltip_data: {
10118 + title: __('What is a Single Post Template?', 'elementor'),
10119 + 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'),
10120 + tip: __('You can create multiple single post templates, and assign each to a different category.', 'elementor'),
10121 + docs: 'https://go.elementor.com/app-theme-builder-post',
10122 + video_url: 'https://www.youtube.com/embed/8Fk-Edu7DL0'
10123 + }
10124 + }, {
10125 + type: 'archive',
10126 + icon: 'eicon-archive',
10127 + title: __('Archive', 'elementor'),
10128 + urls: {
10129 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/archive.svg'
10130 + },
10131 + tooltip_data: {
10132 + title: __('What is an Archive Template?', 'elementor'),
10133 + 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'),
10134 + tip: __('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'),
10135 + docs: 'https://go.elementor.com/app-theme-builder-archive',
10136 + video_url: 'https://www.youtube.com/embed/wxElpEh9bfA'
10137 + }
10138 + }, {
10139 + type: 'search-results',
10140 + icon: 'eicon-search-results',
10141 + title: __('Search Results', 'elementor'),
10142 + urls: {
10143 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/search-results.svg'
10144 + },
10145 + tooltip_data: {
10146 + title: __('What is a Search Results Template?', 'elementor'),
10147 + 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'),
10148 + tip: __('You can customize the message if there are no results for the search term.', 'elementor'),
10149 + docs: 'https://go.elementor.com/app-theme-builder-search-results',
10150 + video_url: 'https://www.youtube.com/embed/KKkIU_L5sDo'
10151 + }
10152 + }, {
10153 + type: 'product',
10154 + icon: 'eicon-single-product',
10155 + title: __('Product', 'elementor'),
10156 + urls: {
10157 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/product.svg'
10158 + },
10159 + tooltip_data: {
10160 + title: __('What is a Single Product Template?', 'elementor'),
10161 + 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'),
10162 + tip: __('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'),
10163 + docs: 'https://go.elementor.com/app-theme-builder-product',
10164 + video_url: 'https://www.youtube.com/embed/PjhoB1RWkBM'
10165 + }
10166 + }, {
10167 + type: 'products',
10168 + icon: 'eicon-products',
10169 + title: __('Products Archive', 'elementor'),
10170 + urls: {
10171 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/products.svg'
10172 + },
10173 + tooltip_data: {
10174 + title: __('What is a Products Archive Template?', 'elementor'),
10175 + 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'),
10176 + tip: __('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'),
10177 + docs: 'https://go.elementor.com/app-theme-builder-products-archive',
10178 + video_url: 'https://www.youtube.com/embed/cQLeirgkguA'
10179 + }
10180 + }, {
10181 + type: 'error-404',
10182 + icon: 'eicon-error-404',
10183 + title: __('Error 404', 'elementor'),
10184 + urls: {
10185 + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/error-404.svg'
10186 + },
10187 + tooltip_data: {
10188 + title: __('What is a 404 Page Template?', 'elementor'),
10189 + 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'),
10190 + 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'),
10191 + docs: 'https://go.elementor.com/app-theme-builder-404',
10192 + video_url: 'https://www.youtube.com/embed/ACCNp9tBMQg'
10193 + }
10194 + }];
10195 + }
10196 + }]);
10197 + return SiteEditor;
10198 +}();
10199 +
10200 +exports.default = SiteEditor;
10201 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"]))
10202 +
10203 +/***/ }),
10204 +/* 788 */
10205 +/***/ (function(module, exports, __webpack_require__) {
10206 +
10207 +"use strict";
10208 +/* WEBPACK VAR INJECTION */(function(__, PropTypes) {
10209 +
10210 +var _interopRequireDefault = __webpack_require__(0);
10211 +
10212 +var _Object$defineProperty = __webpack_require__(1);
10213 +
10214 +_Object$defineProperty(exports, "__esModule", {
10215 + value: true
10216 +});
10217 +
10218 +exports.default = Promotion;
10219 +
10220 +var _react = _interopRequireDefault(__webpack_require__(12));
10221 +
10222 +var _allPartsButton = _interopRequireDefault(__webpack_require__(699));
10223 +
10224 +var _button = _interopRequireDefault(__webpack_require__(240));
10225 +
10226 +var _cardOverlay = _interopRequireDefault(__webpack_require__(690));
10227 +
10228 +var _grid = _interopRequireDefault(__webpack_require__(359));
10229 +
10230 +var _heading = _interopRequireDefault(__webpack_require__(349));
10231 +
10232 +var _layout = _interopRequireDefault(__webpack_require__(700));
10233 +
10234 +var _siteParts = _interopRequireDefault(__webpack_require__(701));
10235 +
10236 +var _text = _interopRequireDefault(__webpack_require__(360));
10237 +
10238 +__webpack_require__(790);
10239 +
10240 +function Promotion() {
10241 + var promotionUrl = 'https://go.elementor.com/go-pro-theme-builder',
10242 + PromotionHoverElement = function PromotionHoverElement(props) {
10243 + var promotionUrlWithType = "".concat(promotionUrl, "?type=").concat(props.type);
10244 + return /*#__PURE__*/_react.default.createElement(_cardOverlay.default, {
10245 + className: "e-site-editor__promotion-overlay"
10246 + }, /*#__PURE__*/_react.default.createElement("a", {
10247 + className: "e-site-editor__promotion-overlay__link",
10248 + target: "_blank",
10249 + rel: "noopener noreferrer",
10250 + href: promotionUrlWithType
10251 + }, /*#__PURE__*/_react.default.createElement("i", {
10252 + className: "e-site-editor__promotion-overlay__icon eicon-lock"
10253 + }), /*#__PURE__*/_react.default.createElement(_button.default, {
10254 + size: "sm",
10255 + color: "cta",
10256 + variant: "contained",
10257 + text: __('Go Pro', 'elementor')
10258 + })));
10259 + };
10260 +
10261 + PromotionHoverElement.propTypes = {
10262 + className: PropTypes.string,
10263 + type: PropTypes.string.isRequired
10264 + };
10265 + return /*#__PURE__*/_react.default.createElement(_layout.default, {
10266 + allPartsButton: /*#__PURE__*/_react.default.createElement(_allPartsButton.default, {
10267 + promotion: true
10268 + }),
10269 + promotion: true
10270 + }, /*#__PURE__*/_react.default.createElement("section", {
10271 + className: "e-site-editor__promotion"
10272 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
10273 + container: true,
10274 + className: "page-header"
10275 + }, /*#__PURE__*/_react.default.createElement(_grid.default, {
10276 + item: true,
10277 + sm: 7,
10278 + justify: "end"
10279 + }, /*#__PURE__*/_react.default.createElement(_heading.default, {
10280 + variant: "h1"
10281 + }, __('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, {
10282 + item: true,
10283 + container: true,
10284 + justify: "end",
10285 + alignItems: "start",
10286 + sm: 5
10287 + }, /*#__PURE__*/_react.default.createElement(_button.default, {
10288 + size: "sm",
10289 + color: "cta",
10290 + variant: "contained",
10291 + url: promotionUrl,
10292 + text: __('Go Pro', 'elementor')
10293 + }))), /*#__PURE__*/_react.default.createElement("hr", {
10294 + className: "eps-separator"
10295 + }), /*#__PURE__*/_react.default.createElement(_siteParts.default, {
10296 + hoverElement: PromotionHoverElement
10297 + })));
10298 +}
10299 +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(196)["__"], __webpack_require__(41)))
10300 +
10301 +/***/ }),
10302 +/* 789 */
10303 +/***/ (function(module, exports) {
10304 +
10305 +
10306 +
10307 +/***/ }),
10308 +/* 790 */
10309 +/***/ (function(module, exports) {
10310 +
10311 +
10312 +
10313 +/***/ })
10314 +/******/ ]);
5432 10315 //# sourceMappingURL=app-packages.js.map