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