| @@ -1,3239 +1,2483 @@ | ||
| 1 | -(function(react, react_dom, _elementor_ui, _elementor_ui_Typography, _elementor_ui_Button, _wordpress_i18n, _elementor_ui_Link, _elementor_ui_List, _elementor_ui_ListItem, _elementor_ui_ListItemText, _elementor_ui_ListItemButton, _elementor_ui_Box, _elementor_ui_DialogHeader, _elementor_ui_DialogHeaderGroup, _elementor_ui_DialogTitle, _elementor_ui_DialogContent, _elementor_ui_DialogContentText, _elementor_ui_TextField, _elementor_ui_DialogActions, _elementor_ui_Dialog) { | |
| 1 | +/*! elementor - v3.26.0 - 19-12-2024 */ | |
| 2 | +/******/ (() => { // webpackBootstrap | |
| 3 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 4 | |
| 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)); | |
| 5 | +/***/ "../assets/dev/js/utils/react.js": | |
| 6 | +/*!***************************************!*\ | |
| 7 | + !*** ../assets/dev/js/utils/react.js ***! | |
| 8 | + \***************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 33 | 10 | |
| 34 | -//#endregion | |
| 35 | -react = __toESM(react); | |
| 36 | -react_dom = __toESM(react_dom); | |
| 37 | -_elementor_ui_Typography = __toESM(_elementor_ui_Typography); | |
| 38 | -_elementor_ui_Button = __toESM(_elementor_ui_Button); | |
| 39 | -_elementor_ui_Link = __toESM(_elementor_ui_Link); | |
| 40 | -_elementor_ui_List = __toESM(_elementor_ui_List); | |
| 41 | -_elementor_ui_ListItem = __toESM(_elementor_ui_ListItem); | |
| 42 | -_elementor_ui_ListItemText = __toESM(_elementor_ui_ListItemText); | |
| 43 | -_elementor_ui_ListItemButton = __toESM(_elementor_ui_ListItemButton); | |
| 44 | -_elementor_ui_Box = __toESM(_elementor_ui_Box); | |
| 45 | -_elementor_ui_DialogHeader = __toESM(_elementor_ui_DialogHeader); | |
| 46 | -_elementor_ui_DialogHeaderGroup = __toESM(_elementor_ui_DialogHeaderGroup); | |
| 47 | -_elementor_ui_DialogTitle = __toESM(_elementor_ui_DialogTitle); | |
| 48 | -_elementor_ui_DialogContent = __toESM(_elementor_ui_DialogContent); | |
| 49 | -_elementor_ui_DialogContentText = __toESM(_elementor_ui_DialogContentText); | |
| 50 | -_elementor_ui_TextField = __toESM(_elementor_ui_TextField); | |
| 51 | -_elementor_ui_DialogActions = __toESM(_elementor_ui_DialogActions); | |
| 52 | -_elementor_ui_Dialog = __toESM(_elementor_ui_Dialog); | |
| 11 | +"use strict"; | |
| 53 | 12 | |
| 54 | -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js | |
| 55 | -/** @license React v16.13.1 | |
| 56 | - * react-is.development.js | |
| 57 | - * | |
| 58 | - * Copyright (c) Facebook, Inc. and its affiliates. | |
| 59 | - * | |
| 60 | - * This source code is licensed under the MIT license found in the | |
| 61 | - * LICENSE file in the root directory of this source tree. | |
| 62 | - */ | |
| 63 | - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => { | |
| 64 | - (function() { | |
| 65 | - "use strict"; | |
| 66 | - var hasSymbol = typeof Symbol === "function" && Symbol.for; | |
| 67 | - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; | |
| 68 | - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; | |
| 69 | - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; | |
| 70 | - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; | |
| 71 | - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; | |
| 72 | - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; | |
| 73 | - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; | |
| 74 | - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; | |
| 75 | - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; | |
| 76 | - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; | |
| 77 | - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; | |
| 78 | - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; | |
| 79 | - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; | |
| 80 | - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; | |
| 81 | - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; | |
| 82 | - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; | |
| 83 | - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; | |
| 84 | - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; | |
| 85 | - function isValidElementType(type) { | |
| 86 | - 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); | |
| 87 | - } | |
| 88 | - function typeOf(object) { | |
| 89 | - if (typeof object === "object" && object !== null) { | |
| 90 | - var $$typeof = object.$$typeof; | |
| 91 | - switch ($$typeof) { | |
| 92 | - case REACT_ELEMENT_TYPE: | |
| 93 | - var type = object.type; | |
| 94 | - switch (type) { | |
| 95 | - case REACT_ASYNC_MODE_TYPE: | |
| 96 | - case REACT_CONCURRENT_MODE_TYPE: | |
| 97 | - case REACT_FRAGMENT_TYPE: | |
| 98 | - case REACT_PROFILER_TYPE: | |
| 99 | - case REACT_STRICT_MODE_TYPE: | |
| 100 | - case REACT_SUSPENSE_TYPE: return type; | |
| 101 | - default: | |
| 102 | - var $$typeofType = type && type.$$typeof; | |
| 103 | - switch ($$typeofType) { | |
| 104 | - case REACT_CONTEXT_TYPE: | |
| 105 | - case REACT_FORWARD_REF_TYPE: | |
| 106 | - case REACT_LAZY_TYPE: | |
| 107 | - case REACT_MEMO_TYPE: | |
| 108 | - case REACT_PROVIDER_TYPE: return $$typeofType; | |
| 109 | - default: return $$typeof; | |
| 110 | - } | |
| 111 | - } | |
| 112 | - case REACT_PORTAL_TYPE: return $$typeof; | |
| 113 | - } | |
| 114 | - } | |
| 115 | - } | |
| 116 | - var AsyncMode = REACT_ASYNC_MODE_TYPE; | |
| 117 | - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | |
| 118 | - var ContextConsumer = REACT_CONTEXT_TYPE; | |
| 119 | - var ContextProvider = REACT_PROVIDER_TYPE; | |
| 120 | - var Element = REACT_ELEMENT_TYPE; | |
| 121 | - var ForwardRef = REACT_FORWARD_REF_TYPE; | |
| 122 | - var Fragment = REACT_FRAGMENT_TYPE; | |
| 123 | - var Lazy = REACT_LAZY_TYPE; | |
| 124 | - var Memo = REACT_MEMO_TYPE; | |
| 125 | - var Portal = REACT_PORTAL_TYPE; | |
| 126 | - var Profiler = REACT_PROFILER_TYPE; | |
| 127 | - var StrictMode = REACT_STRICT_MODE_TYPE; | |
| 128 | - var Suspense = REACT_SUSPENSE_TYPE; | |
| 129 | - var hasWarnedAboutDeprecatedIsAsyncMode = false; | |
| 130 | - function isAsyncMode(object) { | |
| 131 | - if (!hasWarnedAboutDeprecatedIsAsyncMode) { | |
| 132 | - hasWarnedAboutDeprecatedIsAsyncMode = true; | |
| 133 | - 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."); | |
| 134 | - } | |
| 135 | - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; | |
| 136 | - } | |
| 137 | - function isConcurrentMode(object) { | |
| 138 | - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; | |
| 139 | - } | |
| 140 | - function isContextConsumer(object) { | |
| 141 | - return typeOf(object) === REACT_CONTEXT_TYPE; | |
| 142 | - } | |
| 143 | - function isContextProvider(object) { | |
| 144 | - return typeOf(object) === REACT_PROVIDER_TYPE; | |
| 145 | - } | |
| 146 | - function isElement(object) { | |
| 147 | - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | |
| 148 | - } | |
| 149 | - function isForwardRef(object) { | |
| 150 | - return typeOf(object) === REACT_FORWARD_REF_TYPE; | |
| 151 | - } | |
| 152 | - function isFragment(object) { | |
| 153 | - return typeOf(object) === REACT_FRAGMENT_TYPE; | |
| 154 | - } | |
| 155 | - function isLazy(object) { | |
| 156 | - return typeOf(object) === REACT_LAZY_TYPE; | |
| 157 | - } | |
| 158 | - function isMemo(object) { | |
| 159 | - return typeOf(object) === REACT_MEMO_TYPE; | |
| 160 | - } | |
| 161 | - function isPortal(object) { | |
| 162 | - return typeOf(object) === REACT_PORTAL_TYPE; | |
| 163 | - } | |
| 164 | - function isProfiler(object) { | |
| 165 | - return typeOf(object) === REACT_PROFILER_TYPE; | |
| 166 | - } | |
| 167 | - function isStrictMode(object) { | |
| 168 | - return typeOf(object) === REACT_STRICT_MODE_TYPE; | |
| 169 | - } | |
| 170 | - function isSuspense(object) { | |
| 171 | - return typeOf(object) === REACT_SUSPENSE_TYPE; | |
| 172 | - } | |
| 173 | - exports.AsyncMode = AsyncMode; | |
| 174 | - exports.ConcurrentMode = ConcurrentMode; | |
| 175 | - exports.ContextConsumer = ContextConsumer; | |
| 176 | - exports.ContextProvider = ContextProvider; | |
| 177 | - exports.Element = Element; | |
| 178 | - exports.ForwardRef = ForwardRef; | |
| 179 | - exports.Fragment = Fragment; | |
| 180 | - exports.Lazy = Lazy; | |
| 181 | - exports.Memo = Memo; | |
| 182 | - exports.Portal = Portal; | |
| 183 | - exports.Profiler = Profiler; | |
| 184 | - exports.StrictMode = StrictMode; | |
| 185 | - exports.Suspense = Suspense; | |
| 186 | - exports.isAsyncMode = isAsyncMode; | |
| 187 | - exports.isConcurrentMode = isConcurrentMode; | |
| 188 | - exports.isContextConsumer = isContextConsumer; | |
| 189 | - exports.isContextProvider = isContextProvider; | |
| 190 | - exports.isElement = isElement; | |
| 191 | - exports.isForwardRef = isForwardRef; | |
| 192 | - exports.isFragment = isFragment; | |
| 193 | - exports.isLazy = isLazy; | |
| 194 | - exports.isMemo = isMemo; | |
| 195 | - exports.isPortal = isPortal; | |
| 196 | - exports.isProfiler = isProfiler; | |
| 197 | - exports.isStrictMode = isStrictMode; | |
| 198 | - exports.isSuspense = isSuspense; | |
| 199 | - exports.isValidElementType = isValidElementType; | |
| 200 | - exports.typeOf = typeOf; | |
| 201 | - })(); | |
| 202 | - })); | |
| 203 | 13 | |
| 204 | -//#endregion | |
| 205 | -//#region node_modules/prop-types/node_modules/react-is/index.js | |
| 206 | - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 207 | - module.exports = require_react_is_development(); | |
| 208 | - })); | |
| 14 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 15 | +Object.defineProperty(exports, "__esModule", ({ | |
| 16 | + value: true | |
| 17 | +})); | |
| 18 | +exports["default"] = void 0; | |
| 19 | +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 20 | +var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom")); | |
| 21 | +var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js"); | |
| 22 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 23 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 24 | +/** | |
| 25 | + * Support conditional rendering of a React App to the DOM, based on the React version. | |
| 26 | + * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions. | |
| 27 | + * | |
| 28 | + * @param { React.ReactElement } app The app to render. | |
| 29 | + * @param { HTMLElement } domElement The DOM element to render the app into. | |
| 30 | + * | |
| 31 | + * @return {{ unmount: () => void }} The unmount function. | |
| 32 | + */ | |
| 33 | +function render(app, domElement) { | |
| 34 | + var unmountFunction; | |
| 35 | + try { | |
| 36 | + var root = (0, _client.createRoot)(domElement); | |
| 37 | + root.render(app); | |
| 38 | + unmountFunction = function unmountFunction() { | |
| 39 | + root.unmount(); | |
| 40 | + }; | |
| 41 | + } catch (e) { | |
| 42 | + // eslint-disable-next-line react/no-deprecated | |
| 43 | + ReactDOM.render(app, domElement); | |
| 44 | + unmountFunction = function unmountFunction() { | |
| 45 | + // eslint-disable-next-line react/no-deprecated | |
| 46 | + ReactDOM.unmountComponentAtNode(domElement); | |
| 47 | + }; | |
| 48 | + } | |
| 49 | + return { | |
| 50 | + unmount: unmountFunction | |
| 51 | + }; | |
| 52 | +} | |
| 53 | +var _default = exports["default"] = { | |
| 54 | + render: render | |
| 55 | +}; | |
| 209 | 56 | |
| 210 | -//#endregion | |
| 211 | -//#region node_modules/object-assign/index.js | |
| 212 | -/* | |
| 213 | - object-assign | |
| 214 | - (c) Sindre Sorhus | |
| 215 | - @license MIT | |
| 216 | - */ | |
| 217 | - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 218 | - var getOwnPropertySymbols = Object.getOwnPropertySymbols; | |
| 219 | - var hasOwnProperty = Object.prototype.hasOwnProperty; | |
| 220 | - var propIsEnumerable = Object.prototype.propertyIsEnumerable; | |
| 221 | - function toObject(val) { | |
| 222 | - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined"); | |
| 223 | - return Object(val); | |
| 224 | - } | |
| 225 | - function shouldUseNative() { | |
| 226 | - try { | |
| 227 | - if (!Object.assign) return false; | |
| 228 | - var test1 = /* @__PURE__ */ new String("abc"); | |
| 229 | - test1[5] = "de"; | |
| 230 | - if (Object.getOwnPropertyNames(test1)[0] === "5") return false; | |
| 231 | - var test2 = {}; | |
| 232 | - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; | |
| 233 | - if (Object.getOwnPropertyNames(test2).map(function(n) { | |
| 234 | - return test2[n]; | |
| 235 | - }).join("") !== "0123456789") return false; | |
| 236 | - var test3 = {}; | |
| 237 | - "abcdefghijklmnopqrst".split("").forEach(function(letter) { | |
| 238 | - test3[letter] = letter; | |
| 239 | - }); | |
| 240 | - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false; | |
| 241 | - return true; | |
| 242 | - } catch (err) { | |
| 243 | - return false; | |
| 244 | - } | |
| 245 | - } | |
| 246 | - module.exports = shouldUseNative() ? Object.assign : function(target, source) { | |
| 247 | - var from; | |
| 248 | - var to = toObject(target); | |
| 249 | - var symbols; | |
| 250 | - for (var s = 1; s < arguments.length; s++) { | |
| 251 | - from = Object(arguments[s]); | |
| 252 | - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key]; | |
| 253 | - if (getOwnPropertySymbols) { | |
| 254 | - symbols = getOwnPropertySymbols(from); | |
| 255 | - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]]; | |
| 256 | - } | |
| 257 | - } | |
| 258 | - return to; | |
| 259 | - }; | |
| 260 | - })); | |
| 57 | +/***/ }), | |
| 261 | 58 | |
| 262 | -//#endregion | |
| 263 | -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js | |
| 264 | -/** | |
| 265 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 266 | - * | |
| 267 | - * This source code is licensed under the MIT license found in the | |
| 268 | - * LICENSE file in the root directory of this source tree. | |
| 269 | - */ | |
| 270 | - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 271 | - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | |
| 272 | - module.exports = ReactPropTypesSecret; | |
| 273 | - })); | |
| 59 | +/***/ "../modules/home/assets/js/components/addons-section.js": | |
| 60 | +/*!**************************************************************!*\ | |
| 61 | + !*** ../modules/home/assets/js/components/addons-section.js ***! | |
| 62 | + \**************************************************************/ | |
| 63 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 274 | 64 | |
| 275 | -//#endregion | |
| 276 | -//#region node_modules/prop-types/lib/has.js | |
| 277 | - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 278 | - module.exports = Function.call.bind(Object.prototype.hasOwnProperty); | |
| 279 | - })); | |
| 65 | +"use strict"; | |
| 66 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 280 | 67 | |
| 281 | -//#endregion | |
| 282 | -//#region node_modules/prop-types/checkPropTypes.js | |
| 283 | -/** | |
| 284 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 285 | - * | |
| 286 | - * This source code is licensed under the MIT license found in the | |
| 287 | - * LICENSE file in the root directory of this source tree. | |
| 288 | - */ | |
| 289 | - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 290 | - var printWarning = function() {}; | |
| 291 | - var ReactPropTypesSecret = require_ReactPropTypesSecret(); | |
| 292 | - var loggedTypeFailures = {}; | |
| 293 | - var has = require_has(); | |
| 294 | - printWarning = function(text) { | |
| 295 | - var message = "Warning: " + text; | |
| 296 | - if (typeof console !== "undefined") console.error(message); | |
| 297 | - try { | |
| 298 | - throw new Error(message); | |
| 299 | - } catch (x) {} | |
| 300 | - }; | |
| 301 | - /** | |
| 302 | - * Assert that the values match with the type specs. | |
| 303 | - * Error messages are memorized and will only be shown once. | |
| 304 | - * | |
| 305 | - * @param {object} typeSpecs Map of name to a ReactPropType | |
| 306 | - * @param {object} values Runtime values that need to be type-checked | |
| 307 | - * @param {string} location e.g. "prop", "context", "child context" | |
| 308 | - * @param {string} componentName Name of the component for error messages. | |
| 309 | - * @param {?Function} getStack Returns the component stack. | |
| 310 | - * @private | |
| 311 | - */ | |
| 312 | - function checkPropTypes(typeSpecs, values, location, componentName, getStack) { | |
| 313 | - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) { | |
| 314 | - var error; | |
| 315 | - try { | |
| 316 | - if (typeof typeSpecs[typeSpecName] !== "function") { | |
| 317 | - 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`."); | |
| 318 | - err.name = "Invariant Violation"; | |
| 319 | - throw err; | |
| 320 | - } | |
| 321 | - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | |
| 322 | - } catch (ex) { | |
| 323 | - error = ex; | |
| 324 | - } | |
| 325 | - 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)."); | |
| 326 | - if (error instanceof Error && !(error.message in loggedTypeFailures)) { | |
| 327 | - loggedTypeFailures[error.message] = true; | |
| 328 | - var stack = getStack ? getStack() : ""; | |
| 329 | - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : "")); | |
| 330 | - } | |
| 331 | - } | |
| 332 | - } | |
| 333 | - /** | |
| 334 | - * Resets warning cache when testing. | |
| 335 | - * | |
| 336 | - * @private | |
| 337 | - */ | |
| 338 | - checkPropTypes.resetWarningCache = function() { | |
| 339 | - loggedTypeFailures = {}; | |
| 340 | - }; | |
| 341 | - module.exports = checkPropTypes; | |
| 342 | - })); | |
| 343 | 68 | |
| 344 | -//#endregion | |
| 345 | -//#region node_modules/prop-types/factoryWithTypeCheckers.js | |
| 346 | -/** | |
| 347 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 348 | - * | |
| 349 | - * This source code is licensed under the MIT license found in the | |
| 350 | - * LICENSE file in the root directory of this source tree. | |
| 351 | - */ | |
| 352 | - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 353 | - var ReactIs = require_react_is(); | |
| 354 | - var assign = require_object_assign(); | |
| 355 | - var ReactPropTypesSecret = require_ReactPropTypesSecret(); | |
| 356 | - var has = require_has(); | |
| 357 | - var checkPropTypes = require_checkPropTypes(); | |
| 358 | - var printWarning = function() {}; | |
| 359 | - printWarning = function(text) { | |
| 360 | - var message = "Warning: " + text; | |
| 361 | - if (typeof console !== "undefined") console.error(message); | |
| 362 | - try { | |
| 363 | - throw new Error(message); | |
| 364 | - } catch (x) {} | |
| 365 | - }; | |
| 366 | - function emptyFunctionThatReturnsNull() { | |
| 367 | - return null; | |
| 368 | - } | |
| 369 | - module.exports = function(isValidElement, throwOnDirectAccess) { | |
| 370 | - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; | |
| 371 | - var FAUX_ITERATOR_SYMBOL = "@@iterator"; | |
| 372 | - /** | |
| 373 | - * Returns the iterator method function contained on the iterable object. | |
| 374 | - * | |
| 375 | - * Be sure to invoke the function with the iterable as context: | |
| 376 | - * | |
| 377 | - * var iteratorFn = getIteratorFn(myIterable); | |
| 378 | - * if (iteratorFn) { | |
| 379 | - * var iterator = iteratorFn.call(myIterable); | |
| 380 | - * ... | |
| 381 | - * } | |
| 382 | - * | |
| 383 | - * @param {?object} maybeIterable | |
| 384 | - * @return {?function} | |
| 385 | - */ | |
| 386 | - function getIteratorFn(maybeIterable) { | |
| 387 | - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); | |
| 388 | - if (typeof iteratorFn === "function") return iteratorFn; | |
| 389 | - } | |
| 390 | - /** | |
| 391 | - * Collection of methods that allow declaration and validation of props that are | |
| 392 | - * supplied to React components. Example usage: | |
| 393 | - * | |
| 394 | - * var Props = require('ReactPropTypes'); | |
| 395 | - * var MyArticle = React.createClass({ | |
| 396 | - * propTypes: { | |
| 397 | - * // An optional string prop named "description". | |
| 398 | - * description: Props.string, | |
| 399 | - * | |
| 400 | - * // A required enum prop named "category". | |
| 401 | - * category: Props.oneOf(['News','Photos']).isRequired, | |
| 402 | - * | |
| 403 | - * // A prop named "dialog" that requires an instance of Dialog. | |
| 404 | - * dialog: Props.instanceOf(Dialog).isRequired | |
| 405 | - * }, | |
| 406 | - * render: function() { ... } | |
| 407 | - * }); | |
| 408 | - * | |
| 409 | - * A more formal specification of how these methods are used: | |
| 410 | - * | |
| 411 | - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) | |
| 412 | - * decl := ReactPropTypes.{type}(.isRequired)? | |
| 413 | - * | |
| 414 | - * Each and every declaration produces a function with the same signature. This | |
| 415 | - * allows the creation of custom validation functions. For example: | |
| 416 | - * | |
| 417 | - * var MyLink = React.createClass({ | |
| 418 | - * propTypes: { | |
| 419 | - * // An optional string or URI prop named "href". | |
| 420 | - * href: function(props, propName, componentName) { | |
| 421 | - * var propValue = props[propName]; | |
| 422 | - * if (propValue != null && typeof propValue !== 'string' && | |
| 423 | - * !(propValue instanceof URI)) { | |
| 424 | - * return new Error( | |
| 425 | - * 'Expected a string or an URI for ' + propName + ' in ' + | |
| 426 | - * componentName | |
| 427 | - * ); | |
| 428 | - * } | |
| 429 | - * } | |
| 430 | - * }, | |
| 431 | - * render: function() {...} | |
| 432 | - * }); | |
| 433 | - * | |
| 434 | - * @internal | |
| 435 | - */ | |
| 436 | - var ANONYMOUS = "<<anonymous>>"; | |
| 437 | - var ReactPropTypes = { | |
| 438 | - array: createPrimitiveTypeChecker("array"), | |
| 439 | - bigint: createPrimitiveTypeChecker("bigint"), | |
| 440 | - bool: createPrimitiveTypeChecker("boolean"), | |
| 441 | - func: createPrimitiveTypeChecker("function"), | |
| 442 | - number: createPrimitiveTypeChecker("number"), | |
| 443 | - object: createPrimitiveTypeChecker("object"), | |
| 444 | - string: createPrimitiveTypeChecker("string"), | |
| 445 | - symbol: createPrimitiveTypeChecker("symbol"), | |
| 446 | - any: createAnyTypeChecker(), | |
| 447 | - arrayOf: createArrayOfTypeChecker, | |
| 448 | - element: createElementTypeChecker(), | |
| 449 | - elementType: createElementTypeTypeChecker(), | |
| 450 | - instanceOf: createInstanceTypeChecker, | |
| 451 | - node: createNodeChecker(), | |
| 452 | - objectOf: createObjectOfTypeChecker, | |
| 453 | - oneOf: createEnumTypeChecker, | |
| 454 | - oneOfType: createUnionTypeChecker, | |
| 455 | - shape: createShapeTypeChecker, | |
| 456 | - exact: createStrictShapeTypeChecker | |
| 457 | - }; | |
| 458 | - /** | |
| 459 | - * inlined Object.is polyfill to avoid requiring consumers ship their own | |
| 460 | - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 461 | - */ | |
| 462 | - function is(x, y) { | |
| 463 | - if (x === y) return x !== 0 || 1 / x === 1 / y; | |
| 464 | - else return x !== x && y !== y; | |
| 465 | - } | |
| 466 | - /** | |
| 467 | - * We use an Error-like object for backward compatibility as people may call | |
| 468 | - * PropTypes directly and inspect their output. However, we don't use real | |
| 469 | - * Errors anymore. We don't inspect their stack anyway, and creating them | |
| 470 | - * is prohibitively expensive if they are created too often, such as what | |
| 471 | - * happens in oneOfType() for any type before the one that matched. | |
| 472 | - */ | |
| 473 | - function PropTypeError(message, data) { | |
| 474 | - this.message = message; | |
| 475 | - this.data = data && typeof data === "object" ? data : {}; | |
| 476 | - this.stack = ""; | |
| 477 | - } | |
| 478 | - PropTypeError.prototype = Error.prototype; | |
| 479 | - function createChainableTypeChecker(validate) { | |
| 480 | - var manualPropTypeCallCache = {}; | |
| 481 | - var manualPropTypeWarningCount = 0; | |
| 482 | - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { | |
| 483 | - componentName = componentName || ANONYMOUS; | |
| 484 | - propFullName = propFullName || propName; | |
| 485 | - if (secret !== ReactPropTypesSecret) { | |
| 486 | - if (throwOnDirectAccess) { | |
| 487 | - 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"); | |
| 488 | - err.name = "Invariant Violation"; | |
| 489 | - throw err; | |
| 490 | - } else if (typeof console !== "undefined") { | |
| 491 | - var cacheKey = componentName + ":" + propName; | |
| 492 | - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { | |
| 493 | - 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."); | |
| 494 | - manualPropTypeCallCache[cacheKey] = true; | |
| 495 | - manualPropTypeWarningCount++; | |
| 496 | - } | |
| 497 | - } | |
| 498 | - } | |
| 499 | - if (props[propName] == null) { | |
| 500 | - if (isRequired) { | |
| 501 | - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); | |
| 502 | - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); | |
| 503 | - } | |
| 504 | - return null; | |
| 505 | - } else return validate(props, propName, componentName, location, propFullName); | |
| 506 | - } | |
| 507 | - var chainedCheckType = checkType.bind(null, false); | |
| 508 | - chainedCheckType.isRequired = checkType.bind(null, true); | |
| 509 | - return chainedCheckType; | |
| 510 | - } | |
| 511 | - function createPrimitiveTypeChecker(expectedType) { | |
| 512 | - function validate(props, propName, componentName, location, propFullName, secret) { | |
| 513 | - var propValue = props[propName]; | |
| 514 | - if (getPropType(propValue) !== expectedType) { | |
| 515 | - var preciseType = getPreciseType(propValue); | |
| 516 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType }); | |
| 517 | - } | |
| 518 | - return null; | |
| 519 | - } | |
| 520 | - return createChainableTypeChecker(validate); | |
| 521 | - } | |
| 522 | - function createAnyTypeChecker() { | |
| 523 | - return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 524 | - } | |
| 525 | - function createArrayOfTypeChecker(typeChecker) { | |
| 526 | - function validate(props, propName, componentName, location, propFullName) { | |
| 527 | - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); | |
| 528 | - var propValue = props[propName]; | |
| 529 | - if (!Array.isArray(propValue)) { | |
| 530 | - var propType = getPropType(propValue); | |
| 531 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array.")); | |
| 532 | - } | |
| 533 | - for (var i = 0; i < propValue.length; i++) { | |
| 534 | - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); | |
| 535 | - if (error instanceof Error) return error; | |
| 536 | - } | |
| 537 | - return null; | |
| 538 | - } | |
| 539 | - return createChainableTypeChecker(validate); | |
| 540 | - } | |
| 541 | - function createElementTypeChecker() { | |
| 542 | - function validate(props, propName, componentName, location, propFullName) { | |
| 543 | - var propValue = props[propName]; | |
| 544 | - if (!isValidElement(propValue)) { | |
| 545 | - var propType = getPropType(propValue); | |
| 546 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); | |
| 547 | - } | |
| 548 | - return null; | |
| 549 | - } | |
| 550 | - return createChainableTypeChecker(validate); | |
| 551 | - } | |
| 552 | - function createElementTypeTypeChecker() { | |
| 553 | - function validate(props, propName, componentName, location, propFullName) { | |
| 554 | - var propValue = props[propName]; | |
| 555 | - if (!ReactIs.isValidElementType(propValue)) { | |
| 556 | - var propType = getPropType(propValue); | |
| 557 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); | |
| 558 | - } | |
| 559 | - return null; | |
| 560 | - } | |
| 561 | - return createChainableTypeChecker(validate); | |
| 562 | - } | |
| 563 | - function createInstanceTypeChecker(expectedClass) { | |
| 564 | - function validate(props, propName, componentName, location, propFullName) { | |
| 565 | - if (!(props[propName] instanceof expectedClass)) { | |
| 566 | - var expectedClassName = expectedClass.name || ANONYMOUS; | |
| 567 | - var actualClassName = getClassName(props[propName]); | |
| 568 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); | |
| 569 | - } | |
| 570 | - return null; | |
| 571 | - } | |
| 572 | - return createChainableTypeChecker(validate); | |
| 573 | - } | |
| 574 | - function createEnumTypeChecker(expectedValues) { | |
| 575 | - if (!Array.isArray(expectedValues)) { | |
| 576 | - 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])."); | |
| 577 | - else printWarning("Invalid argument supplied to oneOf, expected an array."); | |
| 578 | - return emptyFunctionThatReturnsNull; | |
| 579 | - } | |
| 580 | - function validate(props, propName, componentName, location, propFullName) { | |
| 581 | - var propValue = props[propName]; | |
| 582 | - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; | |
| 583 | - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { | |
| 584 | - if (getPreciseType(value) === "symbol") return String(value); | |
| 585 | - return value; | |
| 586 | - }); | |
| 587 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); | |
| 588 | - } | |
| 589 | - return createChainableTypeChecker(validate); | |
| 590 | - } | |
| 591 | - function createObjectOfTypeChecker(typeChecker) { | |
| 592 | - function validate(props, propName, componentName, location, propFullName) { | |
| 593 | - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); | |
| 594 | - var propValue = props[propName]; | |
| 595 | - var propType = getPropType(propValue); | |
| 596 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object.")); | |
| 597 | - for (var key in propValue) if (has(propValue, key)) { | |
| 598 | - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 599 | - if (error instanceof Error) return error; | |
| 600 | - } | |
| 601 | - return null; | |
| 602 | - } | |
| 603 | - return createChainableTypeChecker(validate); | |
| 604 | - } | |
| 605 | - function createUnionTypeChecker(arrayOfTypeCheckers) { | |
| 606 | - if (!Array.isArray(arrayOfTypeCheckers)) { | |
| 607 | - printWarning("Invalid argument supplied to oneOfType, expected an instance of array."); | |
| 608 | - return emptyFunctionThatReturnsNull; | |
| 609 | - } | |
| 610 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 611 | - var checker = arrayOfTypeCheckers[i]; | |
| 612 | - if (typeof checker !== "function") { | |
| 613 | - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."); | |
| 614 | - return emptyFunctionThatReturnsNull; | |
| 615 | - } | |
| 616 | - } | |
| 617 | - function validate(props, propName, componentName, location, propFullName) { | |
| 618 | - var expectedTypes = []; | |
| 619 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 620 | - var checker = arrayOfTypeCheckers[i]; | |
| 621 | - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); | |
| 622 | - if (checkerResult == null) return null; | |
| 623 | - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType); | |
| 624 | - } | |
| 625 | - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; | |
| 626 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); | |
| 627 | - } | |
| 628 | - return createChainableTypeChecker(validate); | |
| 629 | - } | |
| 630 | - function createNodeChecker() { | |
| 631 | - function validate(props, propName, componentName, location, propFullName) { | |
| 632 | - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); | |
| 633 | - return null; | |
| 634 | - } | |
| 635 | - return createChainableTypeChecker(validate); | |
| 636 | - } | |
| 637 | - function invalidValidatorError(componentName, location, propFullName, key, type) { | |
| 638 | - 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 + "`."); | |
| 639 | - } | |
| 640 | - function createShapeTypeChecker(shapeTypes) { | |
| 641 | - function validate(props, propName, componentName, location, propFullName) { | |
| 642 | - var propValue = props[propName]; | |
| 643 | - var propType = getPropType(propValue); | |
| 644 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); | |
| 645 | - for (var key in shapeTypes) { | |
| 646 | - var checker = shapeTypes[key]; | |
| 647 | - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 648 | - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 649 | - if (error) return error; | |
| 650 | - } | |
| 651 | - return null; | |
| 652 | - } | |
| 653 | - return createChainableTypeChecker(validate); | |
| 654 | - } | |
| 655 | - function createStrictShapeTypeChecker(shapeTypes) { | |
| 656 | - function validate(props, propName, componentName, location, propFullName) { | |
| 657 | - var propValue = props[propName]; | |
| 658 | - var propType = getPropType(propValue); | |
| 659 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); | |
| 660 | - for (var key in assign({}, props[propName], shapeTypes)) { | |
| 661 | - var checker = shapeTypes[key]; | |
| 662 | - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 663 | - 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, " ")); | |
| 664 | - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 665 | - if (error) return error; | |
| 666 | - } | |
| 667 | - return null; | |
| 668 | - } | |
| 669 | - return createChainableTypeChecker(validate); | |
| 670 | - } | |
| 671 | - function isNode(propValue) { | |
| 672 | - switch (typeof propValue) { | |
| 673 | - case "number": | |
| 674 | - case "string": | |
| 675 | - case "undefined": return true; | |
| 676 | - case "boolean": return !propValue; | |
| 677 | - case "object": | |
| 678 | - if (Array.isArray(propValue)) return propValue.every(isNode); | |
| 679 | - if (propValue === null || isValidElement(propValue)) return true; | |
| 680 | - var iteratorFn = getIteratorFn(propValue); | |
| 681 | - if (iteratorFn) { | |
| 682 | - var iterator = iteratorFn.call(propValue); | |
| 683 | - var step; | |
| 684 | - if (iteratorFn !== propValue.entries) { | |
| 685 | - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false; | |
| 686 | - } else while (!(step = iterator.next()).done) { | |
| 687 | - var entry = step.value; | |
| 688 | - if (entry) { | |
| 689 | - if (!isNode(entry[1])) return false; | |
| 690 | - } | |
| 691 | - } | |
| 692 | - } else return false; | |
| 693 | - return true; | |
| 694 | - default: return false; | |
| 695 | - } | |
| 696 | - } | |
| 697 | - function isSymbol(propType, propValue) { | |
| 698 | - if (propType === "symbol") return true; | |
| 699 | - if (!propValue) return false; | |
| 700 | - if (propValue["@@toStringTag"] === "Symbol") return true; | |
| 701 | - if (typeof Symbol === "function" && propValue instanceof Symbol) return true; | |
| 702 | - return false; | |
| 703 | - } | |
| 704 | - function getPropType(propValue) { | |
| 705 | - var propType = typeof propValue; | |
| 706 | - if (Array.isArray(propValue)) return "array"; | |
| 707 | - if (propValue instanceof RegExp) return "object"; | |
| 708 | - if (isSymbol(propType, propValue)) return "symbol"; | |
| 709 | - return propType; | |
| 710 | - } | |
| 711 | - function getPreciseType(propValue) { | |
| 712 | - if (typeof propValue === "undefined" || propValue === null) return "" + propValue; | |
| 713 | - var propType = getPropType(propValue); | |
| 714 | - if (propType === "object") { | |
| 715 | - if (propValue instanceof Date) return "date"; | |
| 716 | - else if (propValue instanceof RegExp) return "regexp"; | |
| 717 | - } | |
| 718 | - return propType; | |
| 719 | - } | |
| 720 | - function getPostfixForTypeWarning(value) { | |
| 721 | - var type = getPreciseType(value); | |
| 722 | - switch (type) { | |
| 723 | - case "array": | |
| 724 | - case "object": return "an " + type; | |
| 725 | - case "boolean": | |
| 726 | - case "date": | |
| 727 | - case "regexp": return "a " + type; | |
| 728 | - default: return type; | |
| 729 | - } | |
| 730 | - } | |
| 731 | - function getClassName(propValue) { | |
| 732 | - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; | |
| 733 | - return propValue.constructor.name; | |
| 734 | - } | |
| 735 | - ReactPropTypes.checkPropTypes = checkPropTypes; | |
| 736 | - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; | |
| 737 | - ReactPropTypes.PropTypes = ReactPropTypes; | |
| 738 | - return ReactPropTypes; | |
| 739 | - }; | |
| 740 | - })); | |
| 69 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 70 | +Object.defineProperty(exports, "__esModule", ({ | |
| 71 | + value: true | |
| 72 | +})); | |
| 73 | +exports["default"] = void 0; | |
| 74 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 75 | +var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); | |
| 76 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 77 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 78 | +var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); | |
| 79 | +var _Link = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Link */ "@elementor/ui/Link")); | |
| 80 | +var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); | |
| 81 | +var _Card = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Card */ "@elementor/ui/Card")); | |
| 82 | +var _CardActions = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/CardActions */ "@elementor/ui/CardActions")); | |
| 83 | +var _CardContent = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/CardContent */ "@elementor/ui/CardContent")); | |
| 84 | +var _CardMedia = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/CardMedia */ "@elementor/ui/CardMedia")); | |
| 85 | +var Addons = function Addons(_ref) { | |
| 86 | + var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); | |
| 87 | + var domain = props.adminUrl.replace('wp-admin/', ''); | |
| 88 | + var addonsArray = props.addonsData.repeater; | |
| 89 | + var cardsPerRow = 3 === addonsArray.length ? 3 : 2; | |
| 90 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 91 | + elevation: 0, | |
| 92 | + sx: { | |
| 93 | + p: 3, | |
| 94 | + display: 'flex', | |
| 95 | + flexDirection: 'column', | |
| 96 | + gap: 2 | |
| 97 | + } | |
| 98 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 99 | + variant: "h6" | |
| 100 | + }, props.addonsData.header.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 101 | + variant: "body2", | |
| 102 | + color: "text.secondary" | |
| 103 | + }, props.addonsData.header.description)), /*#__PURE__*/_react.default.createElement(_List.default, { | |
| 104 | + sx: { | |
| 105 | + display: 'grid', | |
| 106 | + gridTemplateColumns: { | |
| 107 | + md: "repeat(".concat(cardsPerRow, ", 1fr)"), | |
| 108 | + xs: 'repeat(1, 1fr)' | |
| 109 | + }, | |
| 110 | + gap: 2 | |
| 111 | + } | |
| 112 | + }, addonsArray.map(function (item) { | |
| 113 | + var linkTarget = item.hasOwnProperty('target') ? item.target : '_blank'; | |
| 114 | + return /*#__PURE__*/_react.default.createElement(_Card.default, { | |
| 115 | + key: item.title, | |
| 116 | + elevation: 0, | |
| 117 | + sx: { | |
| 118 | + display: 'flex', | |
| 119 | + border: 1, | |
| 120 | + borderRadius: 1, | |
| 121 | + borderColor: 'action.focus' | |
| 122 | + } | |
| 123 | + }, /*#__PURE__*/_react.default.createElement(_CardContent.default, { | |
| 124 | + sx: { | |
| 125 | + display: 'flex', | |
| 126 | + flexDirection: 'column', | |
| 127 | + justifyContent: 'space-between', | |
| 128 | + gap: 3, | |
| 129 | + p: 3 | |
| 130 | + } | |
| 131 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_CardMedia.default, { | |
| 132 | + image: item.image, | |
| 133 | + sx: { | |
| 134 | + height: '58px', | |
| 135 | + width: '58px', | |
| 136 | + mb: 2 | |
| 137 | + } | |
| 138 | + }), /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 139 | + variant: "subtitle2" | |
| 140 | + }, item.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 141 | + variant: "body2", | |
| 142 | + color: "text.secondary" | |
| 143 | + }, item.description))), /*#__PURE__*/_react.default.createElement(_CardActions.default, { | |
| 144 | + sx: { | |
| 145 | + p: 0 | |
| 146 | + } | |
| 147 | + }, /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 148 | + variant: "outlined", | |
| 149 | + size: "small", | |
| 150 | + color: "promotion", | |
| 151 | + href: item.url, | |
| 152 | + target: linkTarget | |
| 153 | + }, item.button_label)))); | |
| 154 | + })), /*#__PURE__*/_react.default.createElement(_Link.default, { | |
| 155 | + variant: "body2", | |
| 156 | + color: "info.main", | |
| 157 | + underline: "none", | |
| 158 | + href: "".concat(domain).concat(props.addonsData.footer.file_path) | |
| 159 | + }, props.addonsData.footer.label)); | |
| 160 | +}; | |
| 161 | +var _default = exports["default"] = Addons; | |
| 162 | +Addons.propTypes = { | |
| 163 | + addonsData: PropTypes.object.isRequired, | |
| 164 | + adminUrl: PropTypes.string.isRequired | |
| 165 | +}; | |
| 741 | 166 | |
| 742 | -//#endregion | |
| 743 | -//#region node_modules/prop-types/index.js | |
| 744 | - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 745 | - var ReactIs = require_react_is(); | |
| 746 | - var throwOnDirectAccess = true; | |
| 747 | - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess); | |
| 748 | - })); | |
| 167 | +/***/ }), | |
| 749 | 168 | |
| 750 | -//#endregion | |
| 751 | -//#region node_modules/react-dom/client.js | |
| 752 | - var require_client = /* @__PURE__ */ __commonJSMin(((exports) => { | |
| 753 | - var m = (globalThis.ReactDOM); | |
| 754 | - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | |
| 755 | - exports.createRoot = function(c, o) { | |
| 756 | - i.usingClientEntryPoint = true; | |
| 757 | - try { | |
| 758 | - return m.createRoot(c, o); | |
| 759 | - } finally { | |
| 760 | - i.usingClientEntryPoint = false; | |
| 761 | - } | |
| 762 | - }; | |
| 763 | - })); | |
| 169 | +/***/ "../modules/home/assets/js/components/create-new-page-dialog.js": | |
| 170 | +/*!**********************************************************************!*\ | |
| 171 | + !*** ../modules/home/assets/js/components/create-new-page-dialog.js ***! | |
| 172 | + \**********************************************************************/ | |
| 173 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 764 | 174 | |
| 765 | -//#endregion | |
| 766 | -//#region assets/dev/js/utils/react.js | |
| 767 | -var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types()); | |
| 768 | - var import_client = require_client(); | |
| 769 | - /** | |
| 770 | - * Support conditional rendering of a React App to the DOM, based on the React version. | |
| 771 | - * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions. | |
| 772 | - * | |
| 773 | - * @param {Promise.resolve(React).ReactElement} app The app to render. | |
| 774 | - * @param {HTMLElement} domElement The DOM element to render the app into. | |
| 775 | - * | |
| 776 | - * @return {{ unmount: () => void }} The unmount function. | |
| 777 | - */ | |
| 778 | - function render(app, domElement) { | |
| 779 | - var unmountFunction; | |
| 780 | - try { | |
| 781 | - var root = (0, import_client.createRoot)(domElement); | |
| 782 | - root.render(app); | |
| 783 | - unmountFunction = function unmountFunction() { | |
| 784 | - root.unmount(); | |
| 785 | - }; | |
| 786 | - } catch (e) { | |
| 787 | - react_dom.render(app, domElement); | |
| 788 | - unmountFunction = function unmountFunction() { | |
| 789 | - react_dom.unmountComponentAtNode(domElement); | |
| 790 | - }; | |
| 791 | - } | |
| 792 | - return { unmount: unmountFunction }; | |
| 793 | - } | |
| 794 | - var react_default = { render }; | |
| 175 | +"use strict"; | |
| 176 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 177 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 795 | 178 | |
| 796 | -//#endregion | |
| 797 | -//#region modules/home/assets/js/components/header-section.js | |
| 798 | - var HeaderSection = function HeaderSection(props) { | |
| 799 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 800 | - elevation: 0, | |
| 801 | - sx: { | |
| 802 | - display: "flex", | |
| 803 | - flexDirection: "row", | |
| 804 | - justifyContent: "space-between", | |
| 805 | - alignItems: "center", | |
| 806 | - pt: 2.5 | |
| 807 | - } | |
| 808 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_Typography.default, { variant: "h5" }, (0, _wordpress_i18n.__)("Quick Start", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 809 | - variant: "contained", | |
| 810 | - size: "medium", | |
| 811 | - color: "primary", | |
| 812 | - href: props.editWebsiteUrl, | |
| 813 | - target: "_blank", | |
| 814 | - rel: "noopener noreferrer" | |
| 815 | - }, (0, _wordpress_i18n.__)("Edit site", "elementor"))); | |
| 816 | - }; | |
| 817 | - HeaderSection.propTypes = { editWebsiteUrl: import_prop_types.default.string.isRequired }; | |
| 818 | 179 | |
| 819 | -//#endregion | |
| 820 | -//#region node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js | |
| 821 | - function _objectDestructuringEmpty(t) { | |
| 822 | - if (null == t) throw new TypeError("Cannot destructure " + t); | |
| 823 | - } | |
| 180 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 181 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 182 | +Object.defineProperty(exports, "__esModule", ({ | |
| 183 | + value: true | |
| 184 | +})); | |
| 185 | +exports["default"] = void 0; | |
| 186 | +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 187 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 188 | +var _DialogHeader = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogHeader */ "@elementor/ui/DialogHeader")); | |
| 189 | +var _DialogHeaderGroup = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogHeaderGroup */ "@elementor/ui/DialogHeaderGroup")); | |
| 190 | +var _DialogTitle = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogTitle */ "@elementor/ui/DialogTitle")); | |
| 191 | +var _DialogContent = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogContent */ "@elementor/ui/DialogContent")); | |
| 192 | +var _DialogContentText = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogContentText */ "@elementor/ui/DialogContentText")); | |
| 193 | +var _TextField = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/TextField */ "@elementor/ui/TextField")); | |
| 194 | +var _DialogActions = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogActions */ "@elementor/ui/DialogActions")); | |
| 195 | +var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); | |
| 196 | +var _Dialog = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Dialog */ "@elementor/ui/Dialog")); | |
| 197 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 198 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 199 | +var CreateNewPageDialog = function CreateNewPageDialog(_ref) { | |
| 200 | + var url = _ref.url, | |
| 201 | + isOpen = _ref.isOpen, | |
| 202 | + closedDialogCallback = _ref.closedDialogCallback; | |
| 203 | + var _React$useState = _react.default.useState(false), | |
| 204 | + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), | |
| 205 | + open = _React$useState2[0], | |
| 206 | + setOpen = _React$useState2[1]; | |
| 207 | + var _React$useState3 = _react.default.useState(''), | |
| 208 | + _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2), | |
| 209 | + pageName = _React$useState4[0], | |
| 210 | + setPageName = _React$useState4[1]; | |
| 211 | + (0, _react.useEffect)(function () { | |
| 212 | + setOpen(isOpen); | |
| 213 | + }, [isOpen]); | |
| 214 | + var handleDialogClose = function handleDialogClose() { | |
| 215 | + setOpen(false); | |
| 216 | + closedDialogCallback(); | |
| 217 | + }; | |
| 218 | + var handleChange = function handleChange(event) { | |
| 219 | + var urlParams = new URLSearchParams(); | |
| 220 | + urlParams.append('post_data[post_title]', event.target.value); | |
| 221 | + setPageName(urlParams.toString()); | |
| 222 | + }; | |
| 223 | + return /*#__PURE__*/_react.default.createElement(_Dialog.default, { | |
| 224 | + open: open, | |
| 225 | + onClose: handleDialogClose, | |
| 226 | + maxWidth: "xs", | |
| 227 | + width: "xs", | |
| 228 | + fullWidth: true | |
| 229 | + }, /*#__PURE__*/_react.default.createElement(_DialogHeader.default, null, /*#__PURE__*/_react.default.createElement(_DialogHeaderGroup.default, null, /*#__PURE__*/_react.default.createElement(_DialogTitle.default, null, __('Name your page', 'elementor')))), /*#__PURE__*/_react.default.createElement(_DialogContent.default, { | |
| 230 | + dividers: true | |
| 231 | + }, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, { | |
| 232 | + sx: { | |
| 233 | + mb: 2 | |
| 234 | + } | |
| 235 | + }, __('To proceed, please name your first page,', 'elementor'), /*#__PURE__*/_react.default.createElement("br", null), __('or rename it later.', 'elementor')), /*#__PURE__*/_react.default.createElement(_TextField.default, { | |
| 236 | + onChange: handleChange, | |
| 237 | + fullWidth: true, | |
| 238 | + placeholder: __('New Page', 'elementor') | |
| 239 | + })), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 240 | + onClick: handleDialogClose, | |
| 241 | + color: "secondary" | |
| 242 | + }, __('Cancel', 'elementor')), /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 243 | + variant: "contained", | |
| 244 | + href: pageName ? url + '&' + pageName : url, | |
| 245 | + target: "_blank" | |
| 246 | + }, __('Save', 'elementor')))); | |
| 247 | +}; | |
| 248 | +var _default = exports["default"] = CreateNewPageDialog; | |
| 249 | +CreateNewPageDialog.propTypes = { | |
| 250 | + url: PropTypes.string.isRequired, | |
| 251 | + isOpen: PropTypes.bool.isRequired, | |
| 252 | + closedDialogCallback: PropTypes.func.isRequired | |
| 253 | +}; | |
| 824 | 254 | |
| 825 | -//#endregion | |
| 826 | -//#region node_modules/@babel/runtime/helpers/esm/extends.js | |
| 827 | - function _extends() { | |
| 828 | - return _extends = Object.assign ? Object.assign.bind() : function(n) { | |
| 829 | - for (var e = 1; e < arguments.length; e++) { | |
| 830 | - var t = arguments[e]; | |
| 831 | - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 832 | - } | |
| 833 | - return n; | |
| 834 | - }, _extends.apply(null, arguments); | |
| 835 | - } | |
| 255 | +/***/ }), | |
| 836 | 256 | |
| 837 | -//#endregion | |
| 838 | -//#region modules/home/assets/js/icons/youtube-icon.js | |
| 839 | - var YoutubeIcon = function YoutubeIcon(props) { | |
| 840 | - return /*#__PURE__*/ react.createElement(_elementor_ui.SvgIcon, _extends({ viewBox: "0 0 24 24" }, props), /*#__PURE__*/ react.createElement("path", { | |
| 841 | - fillRule: "evenodd", | |
| 842 | - clipRule: "evenodd", | |
| 843 | - d: "M7 5.75C5.20507 5.75 3.75 7.20507 3.75 9V15C3.75 16.7949 5.20507 18.25 7 18.25H17C18.7949 18.25 20.25 16.7949 20.25 15V9C20.25 7.20507 18.7949 5.75 17 5.75H7ZM2.25 9C2.25 6.37665 4.37665 4.25 7 4.25H17C19.6234 4.25 21.75 6.37665 21.75 9V15C21.75 17.6234 19.6234 19.75 17 19.75H7C4.37665 19.75 2.25 17.6234 2.25 15V9ZM9.63048 8.34735C9.86561 8.21422 10.1542 8.21786 10.3859 8.35688L15.3859 11.3569C15.6118 11.4924 15.75 11.7366 15.75 12C15.75 12.2634 15.6118 12.5076 15.3859 12.6431L10.3859 15.6431C10.1542 15.7821 9.86561 15.7858 9.63048 15.6526C9.39534 15.5195 9.25 15.2702 9.25 15V9C9.25 8.7298 9.39534 8.48048 9.63048 8.34735ZM10.75 10.3246V13.6754L13.5423 12L10.75 10.3246Z" | |
| 844 | - })); | |
| 845 | - }; | |
| 257 | +/***/ "../modules/home/assets/js/components/external-links-section.js": | |
| 258 | +/*!**********************************************************************!*\ | |
| 259 | + !*** ../modules/home/assets/js/components/external-links-section.js ***! | |
| 260 | + \**********************************************************************/ | |
| 261 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 846 | 262 | |
| 847 | -//#endregion | |
| 848 | -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js | |
| 849 | - function _classCallCheck(a, n) { | |
| 850 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 851 | - } | |
| 263 | +"use strict"; | |
| 264 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 852 | 265 | |
| 853 | -//#endregion | |
| 854 | -//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 855 | - function _typeof(o) { | |
| 856 | - "@babel/helpers - typeof"; | |
| 857 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 858 | - return typeof o; | |
| 859 | - } : function(o) { | |
| 860 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 861 | - }, _typeof(o); | |
| 862 | - } | |
| 863 | 266 | |
| 864 | -//#endregion | |
| 865 | -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js | |
| 866 | - function toPrimitive(t, r) { | |
| 867 | - if ("object" != _typeof(t) || !t) return t; | |
| 868 | - var e = t[Symbol.toPrimitive]; | |
| 869 | - if (void 0 !== e) { | |
| 870 | - var i = e.call(t, r || "default"); | |
| 871 | - if ("object" != _typeof(i)) return i; | |
| 872 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 873 | - } | |
| 874 | - return ("string" === r ? String : Number)(t); | |
| 875 | - } | |
| 267 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 268 | +Object.defineProperty(exports, "__esModule", ({ | |
| 269 | + value: true | |
| 270 | +})); | |
| 271 | +exports["default"] = void 0; | |
| 272 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 273 | +var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); | |
| 274 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 275 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 276 | +var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); | |
| 277 | +var _ListItemButton = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemButton */ "@elementor/ui/ListItemButton")); | |
| 278 | +var _ListItemText = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemText */ "@elementor/ui/ListItemText")); | |
| 279 | +var _Divider = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Divider */ "@elementor/ui/Divider")); | |
| 280 | +var ExternalLinksSection = function ExternalLinksSection(_ref) { | |
| 281 | + var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); | |
| 282 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 283 | + elevation: 0, | |
| 284 | + sx: { | |
| 285 | + px: 3 | |
| 286 | + } | |
| 287 | + }, /*#__PURE__*/_react.default.createElement(_List.default, null, props.externalLinksData.map(function (item, index) { | |
| 288 | + return /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 289 | + key: item.label | |
| 290 | + }, /*#__PURE__*/_react.default.createElement(_ListItemButton.default, { | |
| 291 | + href: item.url, | |
| 292 | + target: "_blank", | |
| 293 | + sx: { | |
| 294 | + '&:hover': { | |
| 295 | + backgroundColor: 'initial' | |
| 296 | + }, | |
| 297 | + gap: 2, | |
| 298 | + px: 0, | |
| 299 | + py: 2 | |
| 300 | + } | |
| 301 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 302 | + component: "img", | |
| 303 | + src: item.image, | |
| 304 | + sx: { | |
| 305 | + width: '38px' | |
| 306 | + } | |
| 307 | + }), /*#__PURE__*/_react.default.createElement(_ListItemText.default, { | |
| 308 | + sx: { | |
| 309 | + color: 'text.secondary' | |
| 310 | + }, | |
| 311 | + primary: item.label | |
| 312 | + })), index < props.externalLinksData.length - 1 && /*#__PURE__*/_react.default.createElement(_Divider.default, null)); | |
| 313 | + }))); | |
| 314 | +}; | |
| 315 | +var _default = exports["default"] = ExternalLinksSection; | |
| 316 | +ExternalLinksSection.propTypes = { | |
| 317 | + externalLinksData: PropTypes.array.isRequired | |
| 318 | +}; | |
| 876 | 319 | |
| 877 | -//#endregion | |
| 878 | -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js | |
| 879 | - function toPropertyKey(t) { | |
| 880 | - var i = toPrimitive(t, "string"); | |
| 881 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 882 | - } | |
| 320 | +/***/ }), | |
| 883 | 321 | |
| 884 | -//#endregion | |
| 885 | -//#region node_modules/@babel/runtime/helpers/esm/createClass.js | |
| 886 | - function _defineProperties(e, r) { | |
| 887 | - for (var t = 0; t < r.length; t++) { | |
| 888 | - var o = r[t]; | |
| 889 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 890 | - } | |
| 891 | - } | |
| 892 | - function _createClass(e, r, t) { | |
| 893 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; | |
| 894 | - } | |
| 322 | +/***/ "../modules/home/assets/js/components/get-started-list-item.js": | |
| 323 | +/*!*********************************************************************!*\ | |
| 324 | + !*** ../modules/home/assets/js/components/get-started-list-item.js ***! | |
| 325 | + \*********************************************************************/ | |
| 326 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 895 | 327 | |
| 896 | -//#endregion | |
| 897 | -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js | |
| 898 | - function _defineProperty(e, r, t) { | |
| 899 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 900 | - value: t, | |
| 901 | - enumerable: !0, | |
| 902 | - configurable: !0, | |
| 903 | - writable: !0 | |
| 904 | - }) : e[r] = t, e; | |
| 905 | - } | |
| 328 | +"use strict"; | |
| 329 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 906 | 330 | |
| 907 | -//#endregion | |
| 908 | -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js | |
| 909 | - function _assertThisInitialized(e) { | |
| 910 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 911 | - return e; | |
| 912 | - } | |
| 913 | 331 | |
| 914 | -//#endregion | |
| 915 | -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js | |
| 916 | - function _possibleConstructorReturn(t, e) { | |
| 917 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 918 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 919 | - return _assertThisInitialized(t); | |
| 920 | - } | |
| 332 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 333 | +Object.defineProperty(exports, "__esModule", ({ | |
| 334 | + value: true | |
| 335 | +})); | |
| 336 | +exports["default"] = void 0; | |
| 337 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 338 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 339 | +var _ListItem = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItem */ "@elementor/ui/ListItem")); | |
| 340 | +var _ListItemText = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemText */ "@elementor/ui/ListItemText")); | |
| 341 | +var _Link = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Link */ "@elementor/ui/Link")); | |
| 342 | +var _Box = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Box */ "@elementor/ui/Box")); | |
| 343 | +var _createNewPageDialog = _interopRequireDefault(__webpack_require__(/*! ./create-new-page-dialog */ "../modules/home/assets/js/components/create-new-page-dialog.js")); | |
| 344 | +var GetStartedListItem = function GetStartedListItem(_ref) { | |
| 345 | + var item = _ref.item, | |
| 346 | + image = _ref.image, | |
| 347 | + adminUrl = _ref.adminUrl; | |
| 348 | + var url = item.is_relative_url ? adminUrl + item.url : item.url; | |
| 349 | + var _React$useState = _react.default.useState(false), | |
| 350 | + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), | |
| 351 | + isOpen = _React$useState2[0], | |
| 352 | + openDialog = _React$useState2[1]; | |
| 353 | + var handleLinkClick = function handleLinkClick(event) { | |
| 354 | + if (!item.new_page) { | |
| 355 | + return; | |
| 356 | + } | |
| 357 | + event.preventDefault(); | |
| 358 | + openDialog(true); | |
| 359 | + }; | |
| 360 | + return /*#__PURE__*/_react.default.createElement(_ListItem.default, { | |
| 361 | + alignItems: "flex-start", | |
| 362 | + sx: { | |
| 363 | + gap: 1, | |
| 364 | + p: 0, | |
| 365 | + maxWidth: '150px' | |
| 366 | + } | |
| 367 | + }, /*#__PURE__*/_react.default.createElement(_Box.default, { | |
| 368 | + component: "img", | |
| 369 | + src: image | |
| 370 | + }), /*#__PURE__*/_react.default.createElement(_Box.default, null, /*#__PURE__*/_react.default.createElement(_ListItemText.default, { | |
| 371 | + primary: item.title, | |
| 372 | + primaryTypographyProps: { | |
| 373 | + variant: 'subtitle1' | |
| 374 | + }, | |
| 375 | + sx: { | |
| 376 | + my: 0 | |
| 377 | + } | |
| 378 | + }), /*#__PURE__*/_react.default.createElement(_Link.default, { | |
| 379 | + variant: "body2", | |
| 380 | + color: item.title_small_color ? item.title_small_color : 'text.tertiary', | |
| 381 | + underline: "hover", | |
| 382 | + href: url, | |
| 383 | + target: "_blank", | |
| 384 | + onClick: handleLinkClick | |
| 385 | + }, item.title_small)), item.new_page && /*#__PURE__*/_react.default.createElement(_createNewPageDialog.default, { | |
| 386 | + url: url, | |
| 387 | + isOpen: isOpen, | |
| 388 | + closedDialogCallback: function closedDialogCallback() { | |
| 389 | + return openDialog(false); | |
| 390 | + } | |
| 391 | + })); | |
| 392 | +}; | |
| 393 | +var _default = exports["default"] = GetStartedListItem; | |
| 394 | +GetStartedListItem.propTypes = { | |
| 395 | + item: PropTypes.shape({ | |
| 396 | + title: PropTypes.string.isRequired, | |
| 397 | + title_small: PropTypes.string.isRequired, | |
| 398 | + url: PropTypes.string.isRequired, | |
| 399 | + new_page: PropTypes.bool, | |
| 400 | + is_relative_url: PropTypes.bool, | |
| 401 | + title_small_color: PropTypes.string | |
| 402 | + }).isRequired, | |
| 403 | + adminUrl: PropTypes.string.isRequired, | |
| 404 | + image: PropTypes.string | |
| 405 | +}; | |
| 921 | 406 | |
| 922 | -//#endregion | |
| 923 | -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js | |
| 924 | - function _getPrototypeOf(t) { | |
| 925 | - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { | |
| 926 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 927 | - }, _getPrototypeOf(t); | |
| 928 | - } | |
| 407 | +/***/ }), | |
| 929 | 408 | |
| 930 | -//#endregion | |
| 931 | -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js | |
| 932 | - function _setPrototypeOf(t, e) { | |
| 933 | - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { | |
| 934 | - return t.__proto__ = e, t; | |
| 935 | - }, _setPrototypeOf(t, e); | |
| 409 | +/***/ "../modules/home/assets/js/components/get-started-section.js": | |
| 410 | +/*!*******************************************************************!*\ | |
| 411 | + !*** ../modules/home/assets/js/components/get-started-section.js ***! | |
| 412 | + \*******************************************************************/ | |
| 413 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 414 | + | |
| 415 | +"use strict"; | |
| 416 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 417 | + | |
| 418 | + | |
| 419 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 420 | +Object.defineProperty(exports, "__esModule", ({ | |
| 421 | + value: true | |
| 422 | +})); | |
| 423 | +exports["default"] = void 0; | |
| 424 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 425 | +var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); | |
| 426 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 427 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 428 | +var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); | |
| 429 | +var _getStartedListItem = _interopRequireDefault(__webpack_require__(/*! ./get-started-list-item */ "../modules/home/assets/js/components/get-started-list-item.js")); | |
| 430 | +var GetStarted = function GetStarted(_ref) { | |
| 431 | + var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); | |
| 432 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 433 | + elevation: 0, | |
| 434 | + sx: { | |
| 435 | + p: 3, | |
| 436 | + display: 'flex', | |
| 437 | + flexDirection: 'column', | |
| 438 | + gap: 2 | |
| 439 | + } | |
| 440 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 441 | + variant: "h6" | |
| 442 | + }, props.getStartedData.header.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 443 | + variant: "body2", | |
| 444 | + color: "text.secondary" | |
| 445 | + }, props.getStartedData.header.description)), /*#__PURE__*/_react.default.createElement(_List.default, { | |
| 446 | + sx: { | |
| 447 | + display: 'grid', | |
| 448 | + gridTemplateColumns: { | |
| 449 | + md: 'repeat(4, 1fr)', | |
| 450 | + xs: 'repeat(2, 1fr)' | |
| 451 | + }, | |
| 452 | + columnGap: { | |
| 453 | + md: 9, | |
| 454 | + xs: 7 | |
| 455 | + }, | |
| 456 | + rowGap: 3 | |
| 457 | + } | |
| 458 | + }, props.getStartedData.repeater.map(function (item) { | |
| 459 | + return /*#__PURE__*/_react.default.createElement(_getStartedListItem.default, { | |
| 460 | + key: item.title, | |
| 461 | + item: item, | |
| 462 | + image: item.image, | |
| 463 | + adminUrl: props.adminUrl | |
| 464 | + }); | |
| 465 | + }))); | |
| 466 | +}; | |
| 467 | +var _default = exports["default"] = GetStarted; | |
| 468 | +GetStarted.propTypes = { | |
| 469 | + getStartedData: PropTypes.object.isRequired, | |
| 470 | + adminUrl: PropTypes.string.isRequired | |
| 471 | +}; | |
| 472 | + | |
| 473 | +/***/ }), | |
| 474 | + | |
| 475 | +/***/ "../modules/home/assets/js/components/home-screen.js": | |
| 476 | +/*!***********************************************************!*\ | |
| 477 | + !*** ../modules/home/assets/js/components/home-screen.js ***! | |
| 478 | + \***********************************************************/ | |
| 479 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 480 | + | |
| 481 | +"use strict"; | |
| 482 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 483 | + | |
| 484 | + | |
| 485 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 486 | +Object.defineProperty(exports, "__esModule", ({ | |
| 487 | + value: true | |
| 488 | +})); | |
| 489 | +exports["default"] = void 0; | |
| 490 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 491 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 492 | +var _topSection = _interopRequireDefault(__webpack_require__(/*! ./top-section */ "../modules/home/assets/js/components/top-section.js")); | |
| 493 | +var _sidebarPromotion = _interopRequireDefault(__webpack_require__(/*! ./sidebar-promotion */ "../modules/home/assets/js/components/sidebar-promotion.js")); | |
| 494 | +var _addonsSection = _interopRequireDefault(__webpack_require__(/*! ./addons-section */ "../modules/home/assets/js/components/addons-section.js")); | |
| 495 | +var _externalLinksSection = _interopRequireDefault(__webpack_require__(/*! ./external-links-section */ "../modules/home/assets/js/components/external-links-section.js")); | |
| 496 | +var _getStartedSection = _interopRequireDefault(__webpack_require__(/*! ./get-started-section */ "../modules/home/assets/js/components/get-started-section.js")); | |
| 497 | +var HomeScreen = function HomeScreen(props) { | |
| 498 | + var hasSidebarUpgrade = props.homeScreenData.hasOwnProperty('sidebar_upgrade'); | |
| 499 | + return /*#__PURE__*/ /* Box wrapper around the Container is needed to neutralize wp-content area left-padding */_react.default.createElement(_ui.Box, { | |
| 500 | + sx: { | |
| 501 | + pr: 1 | |
| 502 | + } | |
| 503 | + }, /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 504 | + disableGutters: true, | |
| 505 | + maxWidth: "lg", | |
| 506 | + sx: { | |
| 507 | + display: 'flex', | |
| 508 | + flexDirection: 'column', | |
| 509 | + gap: { | |
| 510 | + xs: 1, | |
| 511 | + md: 3 | |
| 512 | + }, | |
| 513 | + pt: { | |
| 514 | + xs: 2, | |
| 515 | + md: 6 | |
| 516 | + }, | |
| 517 | + pb: 2 | |
| 518 | + } | |
| 519 | + }, /*#__PURE__*/_react.default.createElement(_topSection.default, { | |
| 520 | + topData: props.homeScreenData.top_with_licences, | |
| 521 | + createNewPageUrl: props.homeScreenData.create_new_page_url | |
| 522 | + }), /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 523 | + sx: { | |
| 524 | + display: 'flex', | |
| 525 | + flexDirection: { | |
| 526 | + xs: 'column', | |
| 527 | + sm: 'row' | |
| 528 | + }, | |
| 529 | + justifyContent: 'space-between', | |
| 530 | + gap: 3 | |
| 531 | + } | |
| 532 | + }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { | |
| 533 | + sx: { | |
| 534 | + flex: 1, | |
| 535 | + gap: 3 | |
| 536 | + } | |
| 537 | + }, /*#__PURE__*/_react.default.createElement(_getStartedSection.default, { | |
| 538 | + getStartedData: props.homeScreenData.get_started, | |
| 539 | + adminUrl: props.adminUrl | |
| 540 | + }), /*#__PURE__*/_react.default.createElement(_addonsSection.default, { | |
| 541 | + addonsData: props.homeScreenData.add_ons, | |
| 542 | + adminUrl: props.adminUrl | |
| 543 | + })), /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 544 | + maxWidth: "xs", | |
| 545 | + disableGutters: true, | |
| 546 | + sx: { | |
| 547 | + width: { | |
| 548 | + sm: '305px' | |
| 549 | + }, | |
| 550 | + display: 'flex', | |
| 551 | + flexDirection: 'column', | |
| 552 | + gap: 3 | |
| 553 | + } | |
| 554 | + }, hasSidebarUpgrade && /*#__PURE__*/_react.default.createElement(_sidebarPromotion.default, { | |
| 555 | + sideData: props.homeScreenData.sidebar_upgrade | |
| 556 | + }), /*#__PURE__*/_react.default.createElement(_externalLinksSection.default, { | |
| 557 | + externalLinksData: props.homeScreenData.external_links | |
| 558 | + }))))); | |
| 559 | +}; | |
| 560 | +HomeScreen.propTypes = { | |
| 561 | + homeScreenData: PropTypes.object, | |
| 562 | + adminUrl: PropTypes.string | |
| 563 | +}; | |
| 564 | +var _default = exports["default"] = HomeScreen; | |
| 565 | + | |
| 566 | +/***/ }), | |
| 567 | + | |
| 568 | +/***/ "../modules/home/assets/js/components/sidebar-promotion.js": | |
| 569 | +/*!*****************************************************************!*\ | |
| 570 | + !*** ../modules/home/assets/js/components/sidebar-promotion.js ***! | |
| 571 | + \*****************************************************************/ | |
| 572 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 573 | + | |
| 574 | +"use strict"; | |
| 575 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 576 | + | |
| 577 | + | |
| 578 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 579 | +Object.defineProperty(exports, "__esModule", ({ | |
| 580 | + value: true | |
| 581 | +})); | |
| 582 | +exports["default"] = void 0; | |
| 583 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 584 | +var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); | |
| 585 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 586 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 587 | +var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); | |
| 588 | +var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); | |
| 589 | +var _ListItem = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItem */ "@elementor/ui/ListItem")); | |
| 590 | +var _ListItemText = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemText */ "@elementor/ui/ListItemText")); | |
| 591 | +var _sideBarCheckIcon = _interopRequireDefault(__webpack_require__(/*! ../icons/side-bar-check-icon */ "../modules/home/assets/js/icons/side-bar-check-icon.js")); | |
| 592 | +var SideBarPromotion = function SideBarPromotion(_ref) { | |
| 593 | + var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); | |
| 594 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 595 | + elevation: 0, | |
| 596 | + sx: { | |
| 597 | + p: 3 | |
| 598 | + } | |
| 599 | + }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { | |
| 600 | + gap: 1.5, | |
| 601 | + sx: { | |
| 602 | + alignItems: 'center', | |
| 603 | + textAlign: 'center', | |
| 604 | + pb: 4 | |
| 605 | + } | |
| 606 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 607 | + component: "img", | |
| 608 | + src: props.sideData.header.image | |
| 609 | + }), /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 610 | + variant: "h6" | |
| 611 | + }, props.sideData.header.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 612 | + variant: "body2", | |
| 613 | + color: "text.secondary" | |
| 614 | + }, props.sideData.header.description)), /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 615 | + variant: "contained", | |
| 616 | + size: "medium", | |
| 617 | + color: "promotion", | |
| 618 | + href: props.sideData.cta.url, | |
| 619 | + startIcon: /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 620 | + component: "img", | |
| 621 | + src: props.sideData.cta.image, | |
| 622 | + sx: { | |
| 623 | + width: '16px' | |
| 624 | + } | |
| 625 | + }), | |
| 626 | + target: "_blank", | |
| 627 | + sx: { | |
| 628 | + maxWidth: 'fit-content' | |
| 629 | + } | |
| 630 | + }, props.sideData.cta.label)), /*#__PURE__*/_react.default.createElement(_List.default, { | |
| 631 | + sx: { | |
| 632 | + p: 0 | |
| 633 | + } | |
| 634 | + }, props.sideData.repeater.map(function (item, index) { | |
| 635 | + return /*#__PURE__*/_react.default.createElement(_ListItem.default, { | |
| 636 | + key: index, | |
| 637 | + sx: { | |
| 638 | + p: 0, | |
| 639 | + gap: 1 | |
| 640 | + } | |
| 641 | + }, /*#__PURE__*/_react.default.createElement(_sideBarCheckIcon.default, null), /*#__PURE__*/_react.default.createElement(_ListItemText.default, { | |
| 642 | + primaryTypographyProps: { | |
| 643 | + variant: 'body2' | |
| 644 | + }, | |
| 645 | + primary: item.title | |
| 646 | + })); | |
| 647 | + }))); | |
| 648 | +}; | |
| 649 | +var _default = exports["default"] = SideBarPromotion; | |
| 650 | +SideBarPromotion.propTypes = { | |
| 651 | + sideData: PropTypes.object.isRequired | |
| 652 | +}; | |
| 653 | + | |
| 654 | +/***/ }), | |
| 655 | + | |
| 656 | +/***/ "../modules/home/assets/js/components/top-section.js": | |
| 657 | +/*!***********************************************************!*\ | |
| 658 | + !*** ../modules/home/assets/js/components/top-section.js ***! | |
| 659 | + \***********************************************************/ | |
| 660 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 661 | + | |
| 662 | +"use strict"; | |
| 663 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 664 | + | |
| 665 | + | |
| 666 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 667 | +Object.defineProperty(exports, "__esModule", ({ | |
| 668 | + value: true | |
| 669 | +})); | |
| 670 | +exports["default"] = void 0; | |
| 671 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 672 | +var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); | |
| 673 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 674 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 675 | +var _Typography = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Typography */ "@elementor/ui/Typography")); | |
| 676 | +var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); | |
| 677 | +var _youtubeIcon = _interopRequireDefault(__webpack_require__(/*! ../icons/youtube-icon */ "../modules/home/assets/js/icons/youtube-icon.js")); | |
| 678 | +var TopSection = function TopSection(_ref) { | |
| 679 | + var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); | |
| 680 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 681 | + elevation: 0, | |
| 682 | + sx: { | |
| 683 | + display: 'flex', | |
| 684 | + flexDirection: { | |
| 685 | + xs: 'column', | |
| 686 | + sm: 'row' | |
| 687 | + }, | |
| 688 | + justifyContent: 'space-between', | |
| 689 | + py: { | |
| 690 | + xs: 3, | |
| 691 | + md: 3 | |
| 692 | + }, | |
| 693 | + px: { | |
| 694 | + xs: 3, | |
| 695 | + md: 4 | |
| 696 | + }, | |
| 697 | + gap: { | |
| 698 | + xs: 2, | |
| 699 | + sm: 3, | |
| 700 | + lg: 22 | |
| 701 | + } | |
| 702 | + } | |
| 703 | + }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { | |
| 704 | + gap: 3, | |
| 705 | + justifyContent: "center" | |
| 706 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_Typography.default, { | |
| 707 | + variant: "h6" | |
| 708 | + }, props.topData.title), /*#__PURE__*/_react.default.createElement(_Typography.default, { | |
| 709 | + variant: "body2", | |
| 710 | + color: "secondary" | |
| 711 | + }, props.topData.description)), /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 712 | + sx: { | |
| 713 | + display: 'flex', | |
| 714 | + gap: 1 | |
| 715 | + } | |
| 716 | + }, /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 717 | + variant: "contained", | |
| 718 | + size: "small", | |
| 719 | + href: props.createNewPageUrl, | |
| 720 | + target: "_blank" | |
| 721 | + }, props.topData.button_create_page_title), /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 722 | + variant: "outlined", | |
| 723 | + color: "secondary", | |
| 724 | + size: "small", | |
| 725 | + startIcon: /*#__PURE__*/_react.default.createElement(_youtubeIcon.default, null), | |
| 726 | + href: props.topData.button_watch_url, | |
| 727 | + target: "_blank" | |
| 728 | + }, props.topData.button_watch_title))), /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 729 | + component: "iframe", | |
| 730 | + src: "https://www.youtube.com/embed/".concat(props.topData.youtube_embed_id), | |
| 731 | + title: "YouTube video player", | |
| 732 | + frameBorder: "0", | |
| 733 | + allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", | |
| 734 | + allowFullScreen: true, | |
| 735 | + sx: { | |
| 736 | + aspectRatio: '16/9', | |
| 737 | + borderRadius: 1, | |
| 738 | + display: 'flex', | |
| 739 | + width: '100%', | |
| 740 | + maxWidth: '365px' | |
| 741 | + } | |
| 742 | + })); | |
| 743 | +}; | |
| 744 | +TopSection.propTypes = { | |
| 745 | + topData: PropTypes.object.isRequired, | |
| 746 | + createNewPageUrl: PropTypes.string.isRequired | |
| 747 | +}; | |
| 748 | +var _default = exports["default"] = TopSection; | |
| 749 | + | |
| 750 | +/***/ }), | |
| 751 | + | |
| 752 | +/***/ "../modules/home/assets/js/icons/side-bar-check-icon.js": | |
| 753 | +/*!**************************************************************!*\ | |
| 754 | + !*** ../modules/home/assets/js/icons/side-bar-check-icon.js ***! | |
| 755 | + \**************************************************************/ | |
| 756 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 757 | + | |
| 758 | +"use strict"; | |
| 759 | + | |
| 760 | + | |
| 761 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 762 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 763 | +Object.defineProperty(exports, "__esModule", ({ | |
| 764 | + value: true | |
| 765 | +})); | |
| 766 | +exports["default"] = void 0; | |
| 767 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 768 | +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 769 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 770 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 771 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 772 | +var SideBarCheckIcon = function SideBarCheckIcon(props) { | |
| 773 | + return /*#__PURE__*/React.createElement(_ui.SvgIcon, (0, _extends2.default)({ | |
| 774 | + viewBox: "0 0 24 24" | |
| 775 | + }, props), /*#__PURE__*/React.createElement("path", { | |
| 776 | + fillRule: "evenodd", | |
| 777 | + clipRule: "evenodd", | |
| 778 | + d: "M9.09013 3.69078C10.273 3.2008 11.5409 2.94861 12.8213 2.94861C14.1017 2.94861 15.3695 3.2008 16.5525 3.69078C17.7354 4.18077 18.8102 4.89895 19.7156 5.80432C20.621 6.70969 21.3391 7.78452 21.8291 8.96744C22.3191 10.1504 22.5713 11.4182 22.5713 12.6986C22.5713 13.979 22.3191 15.2468 21.8291 16.4298C21.3391 17.6127 20.621 18.6875 19.7156 19.5929C18.8102 20.4983 17.7354 21.2165 16.5525 21.7064C15.3695 22.1964 14.1017 22.4486 12.8213 22.4486C11.5409 22.4486 10.2731 22.1964 9.09013 21.7064C7.9072 21.2165 6.83237 20.4983 5.927 19.5929C5.02163 18.6875 4.30345 17.6127 3.81346 16.4298C3.32348 15.2468 3.07129 13.979 3.07129 12.6986C3.07129 11.4182 3.32348 10.1504 3.81346 8.96744C4.30345 7.78452 5.02163 6.70969 5.927 5.80432C6.83237 4.89895 7.9072 4.18077 9.09013 3.69078ZM12.8213 4.44861C11.7379 4.44861 10.6651 4.662 9.66415 5.0766C8.66321 5.4912 7.75374 6.09889 6.98766 6.86498C6.22157 7.63106 5.61388 8.54053 5.19928 9.54147C4.78468 10.5424 4.57129 11.6152 4.57129 12.6986C4.57129 13.782 4.78468 14.8548 5.19928 15.8557C5.61388 16.8567 6.22157 17.7662 6.98766 18.5322C7.75374 19.2983 8.66322 19.906 9.66415 20.3206C10.6651 20.7352 11.7379 20.9486 12.8213 20.9486C13.9047 20.9486 14.9775 20.7352 15.9784 20.3206C16.9794 19.906 17.8888 19.2983 18.6549 18.5322C19.421 17.7662 20.0287 16.8567 20.4433 15.8557C20.8579 14.8548 21.0713 13.782 21.0713 12.6986C21.0713 11.6152 20.8579 10.5424 20.4433 9.54147C20.0287 8.54053 19.421 7.63106 18.6549 6.86498C17.8888 6.09889 16.9794 5.4912 15.9784 5.0766C14.9775 4.662 13.9047 4.44861 12.8213 4.44861Z", | |
| 779 | + fill: "#93003F" | |
| 780 | + }), /*#__PURE__*/React.createElement("path", { | |
| 781 | + fillRule: "evenodd", | |
| 782 | + clipRule: "evenodd", | |
| 783 | + d: "M17.3213 9.69424C17.6142 9.98713 17.6142 10.462 17.3213 10.7549L12.3732 15.703C12.0803 15.9959 11.6054 15.9959 11.3125 15.703L8.83851 13.2289C8.54562 12.936 8.54562 12.4612 8.83851 12.1683C9.1314 11.8754 9.60628 11.8754 9.89917 12.1683L11.8429 14.112L16.2606 9.69424C16.5535 9.40135 17.0284 9.40135 17.3213 9.69424Z", | |
| 784 | + fill: "#93003F" | |
| 785 | + })); | |
| 786 | +}; | |
| 787 | +var _default = exports["default"] = SideBarCheckIcon; | |
| 788 | + | |
| 789 | +/***/ }), | |
| 790 | + | |
| 791 | +/***/ "../modules/home/assets/js/icons/youtube-icon.js": | |
| 792 | +/*!*******************************************************!*\ | |
| 793 | + !*** ../modules/home/assets/js/icons/youtube-icon.js ***! | |
| 794 | + \*******************************************************/ | |
| 795 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 796 | + | |
| 797 | +"use strict"; | |
| 798 | + | |
| 799 | + | |
| 800 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 801 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 802 | +Object.defineProperty(exports, "__esModule", ({ | |
| 803 | + value: true | |
| 804 | +})); | |
| 805 | +exports["default"] = void 0; | |
| 806 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 807 | +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 808 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 809 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 810 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 811 | +var YoutubeIcon = function YoutubeIcon(props) { | |
| 812 | + return /*#__PURE__*/React.createElement(_ui.SvgIcon, (0, _extends2.default)({ | |
| 813 | + viewBox: "0 0 24 24" | |
| 814 | + }, props), /*#__PURE__*/React.createElement("path", { | |
| 815 | + fillRule: "evenodd", | |
| 816 | + clipRule: "evenodd", | |
| 817 | + d: "M7 5.75C5.20507 5.75 3.75 7.20507 3.75 9V15C3.75 16.7949 5.20507 18.25 7 18.25H17C18.7949 18.25 20.25 16.7949 20.25 15V9C20.25 7.20507 18.7949 5.75 17 5.75H7ZM2.25 9C2.25 6.37665 4.37665 4.25 7 4.25H17C19.6234 4.25 21.75 6.37665 21.75 9V15C21.75 17.6234 19.6234 19.75 17 19.75H7C4.37665 19.75 2.25 17.6234 2.25 15V9ZM9.63048 8.34735C9.86561 8.21422 10.1542 8.21786 10.3859 8.35688L15.3859 11.3569C15.6118 11.4924 15.75 11.7366 15.75 12C15.75 12.2634 15.6118 12.5076 15.3859 12.6431L10.3859 15.6431C10.1542 15.7821 9.86561 15.7858 9.63048 15.6526C9.39534 15.5195 9.25 15.2702 9.25 15V9C9.25 8.7298 9.39534 8.48048 9.63048 8.34735ZM10.75 10.3246V13.6754L13.5423 12L10.75 10.3246Z" | |
| 818 | + })); | |
| 819 | +}; | |
| 820 | +var _default = exports["default"] = YoutubeIcon; | |
| 821 | + | |
| 822 | +/***/ }), | |
| 823 | + | |
| 824 | +/***/ "../node_modules/object-assign/index.js": | |
| 825 | +/*!**********************************************!*\ | |
| 826 | + !*** ../node_modules/object-assign/index.js ***! | |
| 827 | + \**********************************************/ | |
| 828 | +/***/ ((module) => { | |
| 829 | + | |
| 830 | +"use strict"; | |
| 831 | +/* | |
| 832 | +object-assign | |
| 833 | +(c) Sindre Sorhus | |
| 834 | +@license MIT | |
| 835 | +*/ | |
| 836 | + | |
| 837 | + | |
| 838 | +/* eslint-disable no-unused-vars */ | |
| 839 | +var getOwnPropertySymbols = Object.getOwnPropertySymbols; | |
| 840 | +var hasOwnProperty = Object.prototype.hasOwnProperty; | |
| 841 | +var propIsEnumerable = Object.prototype.propertyIsEnumerable; | |
| 842 | + | |
| 843 | +function toObject(val) { | |
| 844 | + if (val === null || val === undefined) { | |
| 845 | + throw new TypeError('Object.assign cannot be called with null or undefined'); | |
| 936 | 846 | } |
| 937 | 847 | |
| 938 | -//#endregion | |
| 939 | -//#region node_modules/@babel/runtime/helpers/esm/inherits.js | |
| 940 | - function _inherits(t, e) { | |
| 941 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 942 | - t.prototype = Object.create(e && e.prototype, { constructor: { | |
| 943 | - value: t, | |
| 944 | - writable: !0, | |
| 945 | - configurable: !0 | |
| 946 | - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); | |
| 947 | - } | |
| 848 | + return Object(val); | |
| 849 | +} | |
| 948 | 850 | |
| 949 | -//#endregion | |
| 950 | -//#region app/assets/js/event-track/dashboard/base-tracking.js | |
| 951 | - var BaseTracking = /*#__PURE__*/ function() { | |
| 952 | - function BaseTracking() { | |
| 953 | - _classCallCheck(this, BaseTracking); | |
| 851 | +function shouldUseNative() { | |
| 852 | + try { | |
| 853 | + if (!Object.assign) { | |
| 854 | + return false; | |
| 954 | 855 | } |
| 955 | - return _createClass(BaseTracking, null, [ | |
| 956 | - { | |
| 957 | - key: "ensureOwnArrays", | |
| 958 | - value: function ensureOwnArrays() { | |
| 959 | - if (!Object.prototype.hasOwnProperty.call(this, "observers")) this.observers = []; | |
| 960 | - if (!Object.prototype.hasOwnProperty.call(this, "eventListeners")) this.eventListeners = []; | |
| 961 | - } | |
| 962 | - }, | |
| 963 | - { | |
| 964 | - key: "destroy", | |
| 965 | - value: function destroy() { | |
| 966 | - this.ensureOwnArrays(); | |
| 967 | - this.observers.forEach(function(observer) { | |
| 968 | - return observer.disconnect(); | |
| 969 | - }); | |
| 970 | - this.observers = []; | |
| 971 | - this.eventListeners.forEach(function(_ref) { | |
| 972 | - var target = _ref.target; | |
| 973 | - var type = _ref.type; | |
| 974 | - var handler = _ref.handler; | |
| 975 | - var options = _ref.options; | |
| 976 | - target.removeEventListener(type, handler, options); | |
| 977 | - }); | |
| 978 | - this.eventListeners = []; | |
| 979 | - } | |
| 980 | - }, | |
| 981 | - { | |
| 982 | - key: "addObserver", | |
| 983 | - value: function addObserver(target, options, callback) { | |
| 984 | - this.ensureOwnArrays(); | |
| 985 | - var observer = new MutationObserver(callback); | |
| 986 | - observer.observe(target, options); | |
| 987 | - this.observers.push(observer); | |
| 988 | - return observer; | |
| 989 | - } | |
| 990 | - }, | |
| 991 | - { | |
| 992 | - key: "addEventListenerTracked", | |
| 993 | - value: function addEventListenerTracked(target, type, handler) { | |
| 994 | - var options = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; | |
| 995 | - this.ensureOwnArrays(); | |
| 996 | - target.addEventListener(type, handler, options); | |
| 997 | - this.eventListeners.push({ | |
| 998 | - target, | |
| 999 | - type, | |
| 1000 | - handler, | |
| 1001 | - options | |
| 1002 | - }); | |
| 1003 | - } | |
| 1004 | - } | |
| 1005 | - ]); | |
| 1006 | - }(); | |
| 1007 | 856 | |
| 1008 | -//#endregion | |
| 1009 | -//#region app/assets/js/event-track/dashboard/navigation.js | |
| 1010 | - function _callSuper$5(t, o, e) { | |
| 1011 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1012 | - } | |
| 1013 | - __name(_callSuper$5, "_callSuper"); | |
| 1014 | - function _isNativeReflectConstruct$5() { | |
| 1015 | - try { | |
| 1016 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1017 | - } catch (t) {} | |
| 1018 | - return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { | |
| 1019 | - return !!t; | |
| 1020 | - })(); | |
| 1021 | - } | |
| 1022 | - __name(_isNativeReflectConstruct$5, "_isNativeReflectConstruct"); | |
| 1023 | - var ELEMENTOR_MENU_SELECTORS = { | |
| 1024 | - ELEMENTOR_TOP_LEVEL: "li#toplevel_page_elementor", | |
| 1025 | - TEMPLATES_TOP_LEVEL: "li#menu-posts-elementor_library", | |
| 1026 | - ELEMENTOR_HOME_TOP_LEVEL: "li#toplevel_page_elementor-home", | |
| 1027 | - ADMIN_MENU: "#adminmenu", | |
| 1028 | - TOP_LEVEL_LINK: ".wp-menu-name", | |
| 1029 | - SUBMENU_CONTAINER: ".wp-submenu", | |
| 1030 | - SUBMENU_ITEM: ".wp-submenu li a", | |
| 1031 | - SUBMENU_ITEM_TOP_LEVEL: ".wp-has-submenu", | |
| 1032 | - SIDEBAR_NAVIGATION: "#editor-one-sidebar-navigation" | |
| 1033 | - }; | |
| 1034 | - var NavigationTracking = /*#__PURE__*/ function(_BaseTracking) { | |
| 1035 | - function NavigationTracking() { | |
| 1036 | - _classCallCheck(this, NavigationTracking); | |
| 1037 | - return _callSuper$5(this, NavigationTracking, arguments); | |
| 857 | + // Detect buggy property enumeration order in older V8 versions. | |
| 858 | + | |
| 859 | + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 | |
| 860 | + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers | |
| 861 | + test1[5] = 'de'; | |
| 862 | + if (Object.getOwnPropertyNames(test1)[0] === '5') { | |
| 863 | + return false; | |
| 1038 | 864 | } |
| 1039 | - _inherits(NavigationTracking, _BaseTracking); | |
| 1040 | - return _createClass(NavigationTracking, null, [ | |
| 1041 | - { | |
| 1042 | - key: "init", | |
| 1043 | - value: function init() { | |
| 1044 | - if (WpDashboardTracking.isEditorOneActive()) { | |
| 1045 | - this.attachSidebarNavigationTracking(); | |
| 1046 | - this.attachElementorHomeMenuTracking(); | |
| 1047 | - } else { | |
| 1048 | - this.attachElementorMenuTracking(); | |
| 1049 | - this.attachTemplatesMenuTracking(); | |
| 1050 | - } | |
| 1051 | - } | |
| 1052 | - }, | |
| 1053 | - { | |
| 1054 | - key: "attachTemplatesMenuTracking", | |
| 1055 | - value: function attachTemplatesMenuTracking() { | |
| 1056 | - var templatesMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.TEMPLATES_TOP_LEVEL); | |
| 1057 | - if (!templatesMenu) return; | |
| 1058 | - this.attachMenuTracking(templatesMenu, "Templates"); | |
| 1059 | - } | |
| 1060 | - }, | |
| 1061 | - { | |
| 1062 | - key: "attachElementorHomeMenuTracking", | |
| 1063 | - value: function attachElementorHomeMenuTracking() { | |
| 1064 | - var elementorHomeMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.ELEMENTOR_HOME_TOP_LEVEL); | |
| 1065 | - if (!elementorHomeMenu) return; | |
| 1066 | - this.attachMenuTracking(elementorHomeMenu, "Elementor"); | |
| 1067 | - } | |
| 1068 | - }, | |
| 1069 | - { | |
| 1070 | - key: "attachElementorMenuTracking", | |
| 1071 | - value: function attachElementorMenuTracking() { | |
| 1072 | - var elementorMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.ELEMENTOR_TOP_LEVEL); | |
| 1073 | - if (!elementorMenu) return; | |
| 1074 | - this.attachMenuTracking(elementorMenu, "Elementor"); | |
| 1075 | - } | |
| 1076 | - }, | |
| 1077 | - { | |
| 1078 | - key: "attachSidebarNavigationTracking", | |
| 1079 | - value: function attachSidebarNavigationTracking() { | |
| 1080 | - var sidebar = document.querySelector(ELEMENTOR_MENU_SELECTORS.SIDEBAR_NAVIGATION); | |
| 1081 | - if (sidebar) this.attachSidebarClickListener(sidebar); | |
| 1082 | - } | |
| 1083 | - }, | |
| 1084 | - { | |
| 1085 | - key: "attachSidebarClickListener", | |
| 1086 | - value: function attachSidebarClickListener(sidebar) { | |
| 1087 | - var _this = this; | |
| 1088 | - this.addEventListenerTracked(sidebar, "click", function(event) { | |
| 1089 | - _this.handleSidebarClick(event); | |
| 1090 | - }, { capture: true }); | |
| 1091 | - } | |
| 1092 | - }, | |
| 1093 | - { | |
| 1094 | - key: "attachMenuTracking", | |
| 1095 | - value: function attachMenuTracking(menuElement, menuName) { | |
| 1096 | - var _this2 = this; | |
| 1097 | - this.addEventListenerTracked(menuElement, "click", function(event) { | |
| 1098 | - _this2.handleMenuClick(event, menuName); | |
| 1099 | - }); | |
| 1100 | - } | |
| 1101 | - }, | |
| 1102 | - { | |
| 1103 | - key: "handleMenuClick", | |
| 1104 | - value: function handleMenuClick(event, menuName) { | |
| 1105 | - var link = event.target.closest("a"); | |
| 1106 | - if (!link) return; | |
| 1107 | - var isTopLevel = link.classList.contains("menu-top"); | |
| 1108 | - var itemId = this.extractItemId(link); | |
| 1109 | - var area = this.determineNavArea(link); | |
| 1110 | - WpDashboardTracking.trackNavClicked(itemId, isTopLevel ? null : menuName, area); | |
| 1111 | - } | |
| 1112 | - }, | |
| 1113 | - { | |
| 1114 | - key: "handleSidebarClick", | |
| 1115 | - value: function handleSidebarClick(event) { | |
| 1116 | - var clickedElement = event.target.closest("a, button, [role=\"button\"]"); | |
| 1117 | - if (!clickedElement) return; | |
| 1118 | - var itemId = this.extractSidebarItemId(clickedElement); | |
| 1119 | - WpDashboardTracking.trackNavClicked(itemId, null, NAV_AREAS.SIDEBAR_MENU); | |
| 1120 | - } | |
| 1121 | - }, | |
| 1122 | - { | |
| 1123 | - key: "extractSidebarItemId", | |
| 1124 | - value: function extractSidebarItemId(element) { | |
| 1125 | - var paragraph = element.querySelector("p"); | |
| 1126 | - if (paragraph) return paragraph.textContent.trim(); | |
| 1127 | - var textContent = element.textContent.trim(); | |
| 1128 | - if (textContent) return textContent; | |
| 1129 | - return "unknown"; | |
| 1130 | - } | |
| 1131 | - }, | |
| 1132 | - { | |
| 1133 | - key: "extractPageFromUrl", | |
| 1134 | - value: function extractPageFromUrl(href) { | |
| 1135 | - var urlParams = new URLSearchParams(href.split("?")[1] || ""); | |
| 1136 | - var page = urlParams.get("page"); | |
| 1137 | - if (page) return page; | |
| 1138 | - var postType = urlParams.get("post_type"); | |
| 1139 | - if (postType) return postType; | |
| 1140 | - return "unknown"; | |
| 1141 | - } | |
| 1142 | - }, | |
| 1143 | - { | |
| 1144 | - key: "extractItemId", | |
| 1145 | - value: function extractItemId(link) { | |
| 1146 | - var textContent = link.textContent.trim(); | |
| 1147 | - if (textContent) return textContent; | |
| 1148 | - var href = link.getAttribute("href"); | |
| 1149 | - if (href) return this.extractPageFromUrl(href); | |
| 1150 | - var linkId = link.getAttribute("id"); | |
| 1151 | - if (linkId) return linkId; | |
| 1152 | - return "unknown"; | |
| 1153 | - } | |
| 1154 | - }, | |
| 1155 | - { | |
| 1156 | - key: "determineNavArea", | |
| 1157 | - value: function determineNavArea(link) { | |
| 1158 | - if (link.closest("li.menu-top")) { | |
| 1159 | - if (link.closest(ELEMENTOR_MENU_SELECTORS.SUBMENU_CONTAINER)) { | |
| 1160 | - if (link.closest(ELEMENTOR_MENU_SELECTORS.SUBMENU_ITEM_TOP_LEVEL).classList.contains("wp-not-current-submenu")) return NAV_AREAS.HOVER_MENU; | |
| 1161 | - return NAV_AREAS.SUBMENU; | |
| 1162 | - } | |
| 1163 | - return NAV_AREAS.LEFT_MENU; | |
| 1164 | - } | |
| 1165 | - return NAV_AREAS.LEFT_MENU; | |
| 1166 | - } | |
| 1167 | - } | |
| 1168 | - ]); | |
| 1169 | - }(BaseTracking); | |
| 1170 | 865 | |
| 1171 | -//#endregion | |
| 1172 | -//#region app/assets/js/event-track/dashboard/plugin-actions.js | |
| 1173 | - function _callSuper$4(t, o, e) { | |
| 1174 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1175 | - } | |
| 1176 | - __name(_callSuper$4, "_callSuper"); | |
| 1177 | - function _isNativeReflectConstruct$4() { | |
| 1178 | - try { | |
| 1179 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1180 | - } catch (t) {} | |
| 1181 | - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { | |
| 1182 | - return !!t; | |
| 1183 | - })(); | |
| 1184 | - } | |
| 1185 | - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct"); | |
| 1186 | - var PLUGIN_TYPE = { | |
| 1187 | - ELEMENTOR: "core", | |
| 1188 | - ELEMENTOR_PRO: "pro" | |
| 1189 | - }; | |
| 1190 | - var PluginActions = /*#__PURE__*/ function(_BaseTracking) { | |
| 1191 | - function PluginActions() { | |
| 1192 | - _classCallCheck(this, PluginActions); | |
| 1193 | - return _callSuper$4(this, PluginActions, arguments); | |
| 866 | + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 | |
| 867 | + var test2 = {}; | |
| 868 | + for (var i = 0; i < 10; i++) { | |
| 869 | + test2['_' + String.fromCharCode(i)] = i; | |
| 1194 | 870 | } |
| 1195 | - _inherits(PluginActions, _BaseTracking); | |
| 1196 | - return _createClass(PluginActions, null, [ | |
| 1197 | - { | |
| 1198 | - key: "init", | |
| 1199 | - value: function init() { | |
| 1200 | - this.attachCoreDeactivationTracking(); | |
| 1201 | - this.attachProDeactivationTracking(); | |
| 1202 | - this.attachProDeletionTracking(); | |
| 1203 | - } | |
| 1204 | - }, | |
| 1205 | - { | |
| 1206 | - key: "attachCoreDeactivationTracking", | |
| 1207 | - value: function attachCoreDeactivationTracking() { | |
| 1208 | - var _this = this; | |
| 1209 | - var dialogForm = document.querySelector("#elementor-deactivate-feedback-dialog-form"); | |
| 1210 | - if (!dialogForm) return; | |
| 1211 | - this.addEventListenerTracked(dialogForm, "change", function(event) { | |
| 1212 | - var target = event.target; | |
| 1213 | - if (target.classList.contains("elementor-deactivate-feedback-dialog-input")) _this.selectedReason = target.value; | |
| 1214 | - }); | |
| 1215 | - this.observeModalButtons(); | |
| 1216 | - } | |
| 1217 | - }, | |
| 1218 | - { | |
| 1219 | - key: "attachProDeactivationTracking", | |
| 1220 | - value: function attachProDeactivationTracking() { | |
| 1221 | - var _this2 = this; | |
| 1222 | - var pluginsTable = document.querySelector(".plugins"); | |
| 1223 | - if (!pluginsTable) return; | |
| 1224 | - this.addEventListenerTracked(pluginsTable, "click", function(event) { | |
| 1225 | - var link = event.target.closest("a"); | |
| 1226 | - if (link && "deactivate-elementor-pro" === link.id) _this2.trackProDeactivation(); | |
| 1227 | - }, { capture: true }); | |
| 1228 | - } | |
| 1229 | - }, | |
| 1230 | - { | |
| 1231 | - key: "observeModalButtons", | |
| 1232 | - value: function observeModalButtons() { | |
| 1233 | - var _this3 = this; | |
| 1234 | - var checkAndAttachDelegation = function checkAndAttachDelegation() { | |
| 1235 | - var modal = document.querySelector("#elementor-deactivate-feedback-modal"); | |
| 1236 | - if (!modal) return false; | |
| 1237 | - _this3.addEventListenerTracked(modal, "click", function(event) { | |
| 1238 | - var submitButton = event.target.closest(".dialog-submit"); | |
| 1239 | - var skipButton = event.target.closest(".dialog-skip"); | |
| 1240 | - if (submitButton) _this3.trackCoreDeactivation("submit&deactivate"); | |
| 1241 | - else if (skipButton) _this3.trackCoreDeactivation("skip&deactivate"); | |
| 1242 | - }, { capture: true }); | |
| 1243 | - return true; | |
| 1244 | - }; | |
| 1245 | - if (checkAndAttachDelegation()) return; | |
| 1246 | - this.addObserver(document.body, { | |
| 1247 | - childList: true, | |
| 1248 | - subtree: true | |
| 1249 | - }, function(mutations, observer) { | |
| 1250 | - if (checkAndAttachDelegation()) observer.disconnect(); | |
| 1251 | - }); | |
| 1252 | - } | |
| 1253 | - }, | |
| 1254 | - { | |
| 1255 | - key: "getUserInput", | |
| 1256 | - value: function getUserInput() { | |
| 1257 | - if (!this.selectedReason || !["found_a_better_plugin", "other"].includes(this.selectedReason)) return null; | |
| 1258 | - var inputField = document.querySelector("input[name=\"reason_".concat(this.selectedReason, "\"]")); | |
| 1259 | - if (inputField && inputField.value) return inputField.value; | |
| 1260 | - return null; | |
| 1261 | - } | |
| 1262 | - }, | |
| 1263 | - { | |
| 1264 | - key: "trackCoreDeactivation", | |
| 1265 | - value: function trackCoreDeactivation(action) { | |
| 1266 | - var properties = { | |
| 1267 | - deactivate_form_submit: action, | |
| 1268 | - deactivate_plugin_type: PLUGIN_TYPE.ELEMENTOR | |
| 1269 | - }; | |
| 1270 | - if (this.selectedReason) properties.deactivate_feedback_reason = this.selectedReason; | |
| 1271 | - var userInput = this.getUserInput(); | |
| 1272 | - if (userInput) properties.deactivate_feedback_reason += "/".concat(userInput); | |
| 1273 | - WpDashboardTracking.dispatchEvent("wpdash_deactivate_plugin", properties, { send_immediately: true }); | |
| 1274 | - } | |
| 1275 | - }, | |
| 1276 | - { | |
| 1277 | - key: "trackProDeactivation", | |
| 1278 | - value: function trackProDeactivation() { | |
| 1279 | - this.trackProAction("deactivate"); | |
| 1280 | - } | |
| 1281 | - }, | |
| 1282 | - { | |
| 1283 | - key: "attachProDeletionTracking", | |
| 1284 | - value: function attachProDeletionTracking() { | |
| 1285 | - var _this4 = this; | |
| 1286 | - if ("undefined" === typeof jQuery) return; | |
| 1287 | - jQuery(document).on("wp-plugin-deleting", function(event, args) { | |
| 1288 | - if ("elementor-pro" === (args === null || args === void 0 ? void 0 : args.slug)) _this4.trackProAction("delete"); | |
| 1289 | - }); | |
| 1290 | - } | |
| 1291 | - }, | |
| 1292 | - { | |
| 1293 | - key: "destroy", | |
| 1294 | - value: function destroy() { | |
| 1295 | - if ("undefined" !== typeof jQuery) jQuery(document).off("wp-plugin-deleting"); | |
| 1296 | - BaseTracking.destroy.call(this); | |
| 1297 | - } | |
| 1298 | - }, | |
| 1299 | - { | |
| 1300 | - key: "trackProAction", | |
| 1301 | - value: function trackProAction(action) { | |
| 1302 | - var config = { | |
| 1303 | - deactivate: { | |
| 1304 | - eventName: "wpdash_deactivate_plugin", | |
| 1305 | - propertyKey: "deactivate_plugin_type" | |
| 1306 | - }, | |
| 1307 | - delete: { | |
| 1308 | - eventName: "wpdash_delete_plugin", | |
| 1309 | - propertyKey: "plugin_delete" | |
| 1310 | - } | |
| 1311 | - }[action]; | |
| 1312 | - if (!config) return; | |
| 1313 | - var properties = _defineProperty({}, config.propertyKey, PLUGIN_TYPE.ELEMENTOR_PRO); | |
| 1314 | - WpDashboardTracking.dispatchEvent(config.eventName, properties, { send_immediately: true }); | |
| 1315 | - } | |
| 1316 | - } | |
| 1317 | - ]); | |
| 1318 | - }(BaseTracking); | |
| 1319 | - _defineProperty(PluginActions, "selectedReason", null); | |
| 871 | + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { | |
| 872 | + return test2[n]; | |
| 873 | + }); | |
| 874 | + if (order2.join('') !== '0123456789') { | |
| 875 | + return false; | |
| 876 | + } | |
| 1320 | 877 | |
| 1321 | -//#endregion | |
| 1322 | -//#region app/assets/js/event-track/dashboard/promotion.js | |
| 1323 | - function _callSuper$3(t, o, e) { | |
| 1324 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1325 | - } | |
| 1326 | - __name(_callSuper$3, "_callSuper"); | |
| 1327 | - function _isNativeReflectConstruct$3() { | |
| 1328 | - try { | |
| 1329 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1330 | - } catch (t) {} | |
| 1331 | - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { | |
| 1332 | - return !!t; | |
| 1333 | - })(); | |
| 1334 | - } | |
| 1335 | - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct"); | |
| 1336 | - var PROMO_SELECTORS = { | |
| 1337 | - PROMO_PAGE: ".e-feature-promotion, .elementor-settings-form-page, #elementor-element-manager-wrap", | |
| 1338 | - PROMO_BLANK_STATE: ".elementor-blank_state", | |
| 1339 | - CTA_BUTTON: ".go-pro", | |
| 1340 | - TITLE: "h3" | |
| 1341 | - }; | |
| 1342 | - var PromotionTracking = /*#__PURE__*/ function(_BaseTracking) { | |
| 1343 | - function PromotionTracking() { | |
| 1344 | - _classCallCheck(this, PromotionTracking); | |
| 1345 | - return _callSuper$3(this, PromotionTracking, arguments); | |
| 878 | + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 | |
| 879 | + var test3 = {}; | |
| 880 | + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { | |
| 881 | + test3[letter] = letter; | |
| 882 | + }); | |
| 883 | + if (Object.keys(Object.assign({}, test3)).join('') !== | |
| 884 | + 'abcdefghijklmnopqrst') { | |
| 885 | + return false; | |
| 1346 | 886 | } |
| 1347 | - _inherits(PromotionTracking, _BaseTracking); | |
| 1348 | - return _createClass(PromotionTracking, null, [ | |
| 1349 | - { | |
| 1350 | - key: "init", | |
| 1351 | - value: function init() { | |
| 1352 | - this.attachDelegatedTracking(); | |
| 1353 | - } | |
| 1354 | - }, | |
| 1355 | - { | |
| 1356 | - key: "attachDelegatedTracking", | |
| 1357 | - value: function attachDelegatedTracking() { | |
| 1358 | - var _this = this; | |
| 1359 | - this.addEventListenerTracked(document, "click", function(event) { | |
| 1360 | - var target = event.target; | |
| 1361 | - if (!target) return; | |
| 1362 | - var button = target.closest("a".concat(PROMO_SELECTORS.CTA_BUTTON)); | |
| 1363 | - if (!button) return; | |
| 1364 | - var promoPage = button.closest("".concat(PROMO_SELECTORS.PROMO_PAGE, ", ").concat(PROMO_SELECTORS.PROMO_BLANK_STATE)); | |
| 1365 | - if (!promoPage) return; | |
| 1366 | - _this.handlePromoClick(button, promoPage); | |
| 1367 | - }, { capture: true }); | |
| 1368 | - } | |
| 1369 | - }, | |
| 1370 | - { | |
| 1371 | - key: "handlePromoClick", | |
| 1372 | - value: function handlePromoClick(button, promoPage) { | |
| 1373 | - var promoTitle = this.extractPromoTitle(promoPage, button); | |
| 1374 | - var destination = button.getAttribute("href"); | |
| 1375 | - var path = this.extractPromoPath(); | |
| 1376 | - WpDashboardTracking.trackPromoClicked(promoTitle, destination, path); | |
| 1377 | - } | |
| 1378 | - }, | |
| 1379 | - { | |
| 1380 | - key: "extractPromoTitle", | |
| 1381 | - value: function extractPromoTitle(promoPage, button) { | |
| 1382 | - var titleElement = promoPage.querySelector(PROMO_SELECTORS.TITLE); | |
| 1383 | - return titleElement ? titleElement.textContent.trim() : button.textContent.trim(); | |
| 1384 | - } | |
| 1385 | - }, | |
| 1386 | - { | |
| 1387 | - key: "extractPromoPath", | |
| 1388 | - value: function extractPromoPath() { | |
| 1389 | - var page = new URLSearchParams(window.location.search).get("page"); | |
| 1390 | - if (!page) return "elementor"; | |
| 1391 | - return page.replace("elementor_", "").replace(/_/g, "/"); | |
| 1392 | - } | |
| 1393 | - } | |
| 1394 | - ]); | |
| 1395 | - }(BaseTracking); | |
| 1396 | 887 | |
| 1397 | -//#endregion | |
| 1398 | -//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js | |
| 1399 | - function _superPropBase(t, o) { | |
| 1400 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); | |
| 1401 | - return t; | |
| 888 | + return true; | |
| 889 | + } catch (err) { | |
| 890 | + // We don't expect any of the above to throw, but better to be safe. | |
| 891 | + return false; | |
| 1402 | 892 | } |
| 893 | +} | |
| 1403 | 894 | |
| 1404 | -//#endregion | |
| 1405 | -//#region node_modules/@babel/runtime/helpers/esm/get.js | |
| 1406 | - function _get() { | |
| 1407 | - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) { | |
| 1408 | - var p = _superPropBase(e, t); | |
| 1409 | - if (p) { | |
| 1410 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 1411 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 1412 | - } | |
| 1413 | - }, _get.apply(null, arguments); | |
| 1414 | - } | |
| 895 | +module.exports = shouldUseNative() ? Object.assign : function (target, source) { | |
| 896 | + var from; | |
| 897 | + var to = toObject(target); | |
| 898 | + var symbols; | |
| 1415 | 899 | |
| 1416 | -//#endregion | |
| 1417 | -//#region app/assets/js/event-track/dashboard/utils.js | |
| 1418 | - var DashboardUtils = { isElementorPage: function isElementorPage() { | |
| 1419 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1420 | - var page = urlParams.get("page"); | |
| 1421 | - if (page && WpDashboardTracking.elementorPages.some(function(p) { | |
| 1422 | - return page.includes(p); | |
| 1423 | - })) return true; | |
| 1424 | - var postType = urlParams.get("post_type"); | |
| 1425 | - if (WpDashboardTracking.elementorPostTypes.includes(postType)) return true; | |
| 1426 | - return document.body.className.split(" ").some(function(cls) { | |
| 1427 | - return cls.includes("elementor") && (cls.includes("page") || cls.includes("post-type")); | |
| 1428 | - }); | |
| 1429 | - } }; | |
| 900 | + for (var s = 1; s < arguments.length; s++) { | |
| 901 | + from = Object(arguments[s]); | |
| 1430 | 902 | |
| 1431 | -//#endregion | |
| 1432 | -//#region app/assets/js/event-track/dashboard/screen-view.js | |
| 1433 | - function _createForOfIteratorHelper$1(r, e) { | |
| 1434 | - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1435 | - if (!t) { | |
| 1436 | - if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { | |
| 1437 | - t && (r = t); | |
| 1438 | - var _n = 0; | |
| 1439 | - var F = function F() {}; | |
| 1440 | - return { | |
| 1441 | - s: F, | |
| 1442 | - n: function n() { | |
| 1443 | - return _n >= r.length ? { done: !0 } : { | |
| 1444 | - done: !1, | |
| 1445 | - value: r[_n++] | |
| 1446 | - }; | |
| 1447 | - }, | |
| 1448 | - e: function e(r) { | |
| 1449 | - throw r; | |
| 1450 | - }, | |
| 1451 | - f: F | |
| 1452 | - }; | |
| 903 | + for (var key in from) { | |
| 904 | + if (hasOwnProperty.call(from, key)) { | |
| 905 | + to[key] = from[key]; | |
| 1453 | 906 | } |
| 1454 | - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1455 | 907 | } |
| 1456 | - var o; | |
| 1457 | - var a = !0; | |
| 1458 | - var u = !1; | |
| 1459 | - return { | |
| 1460 | - s: function s() { | |
| 1461 | - t = t.call(r); | |
| 1462 | - }, | |
| 1463 | - n: function n() { | |
| 1464 | - var r = t.next(); | |
| 1465 | - return a = r.done, r; | |
| 1466 | - }, | |
| 1467 | - e: function e(r) { | |
| 1468 | - u = !0, o = r; | |
| 1469 | - }, | |
| 1470 | - f: function f() { | |
| 1471 | - try { | |
| 1472 | - a || null == t.return || t.return(); | |
| 1473 | - } finally { | |
| 1474 | - if (u) throw o; | |
| 908 | + | |
| 909 | + if (getOwnPropertySymbols) { | |
| 910 | + symbols = getOwnPropertySymbols(from); | |
| 911 | + for (var i = 0; i < symbols.length; i++) { | |
| 912 | + if (propIsEnumerable.call(from, symbols[i])) { | |
| 913 | + to[symbols[i]] = from[symbols[i]]; | |
| 1475 | 914 | } |
| 1476 | 915 | } |
| 1477 | - }; | |
| 1478 | - } | |
| 1479 | - __name(_createForOfIteratorHelper$1, "_createForOfIteratorHelper"); | |
| 1480 | - function _unsupportedIterableToArray$2(r, a) { | |
| 1481 | - if (r) { | |
| 1482 | - if ("string" == typeof r) return _arrayLikeToArray$2(r, a); | |
| 1483 | - var t = {}.toString.call(r).slice(8, -1); | |
| 1484 | - 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$2(r, a) : void 0; | |
| 1485 | 916 | } |
| 1486 | 917 | } |
| 1487 | - __name(_unsupportedIterableToArray$2, "_unsupportedIterableToArray"); | |
| 1488 | - function _arrayLikeToArray$2(r, a) { | |
| 1489 | - (null == a || a > r.length) && (a = r.length); | |
| 1490 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 1491 | - return n; | |
| 1492 | - } | |
| 1493 | - __name(_arrayLikeToArray$2, "_arrayLikeToArray"); | |
| 1494 | - function _callSuper$2(t, o, e) { | |
| 1495 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1496 | - } | |
| 1497 | - __name(_callSuper$2, "_callSuper"); | |
| 1498 | - function _isNativeReflectConstruct$2() { | |
| 1499 | - try { | |
| 1500 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1501 | - } catch (t) {} | |
| 1502 | - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { | |
| 1503 | - return !!t; | |
| 1504 | - })(); | |
| 1505 | - } | |
| 1506 | - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct"); | |
| 1507 | - function _superPropGet(t, o, e, r) { | |
| 1508 | - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); | |
| 1509 | - return 2 & r && "function" == typeof p ? function(t) { | |
| 1510 | - return p.apply(e, t); | |
| 1511 | - } : p; | |
| 1512 | - } | |
| 1513 | - var SCREEN_SELECTORS = { | |
| 1514 | - NAV_TAB_WRAPPER: ".nav-tab-wrapper", | |
| 1515 | - NAV_TAB: ".nav-tab", | |
| 1516 | - NAV_TAB_ACTIVE: ".nav-tab-active", | |
| 1517 | - SETTINGS_FORM_PAGE: ".elementor-settings-form-page", | |
| 1518 | - SETTINGS_FORM_PAGE_ACTIVE: ".elementor-settings-form-page.elementor-active", | |
| 1519 | - FLOATING_ELEMENTS_MODAL: "#elementor-new-floating-elements-modal", | |
| 1520 | - TEMPLATE_DIALOG_MODAL: "#elementor-new-template-dialog-content" | |
| 1521 | - }; | |
| 1522 | - var TRACKED_MODALS = [SCREEN_SELECTORS.FLOATING_ELEMENTS_MODAL, SCREEN_SELECTORS.TEMPLATE_DIALOG_MODAL]; | |
| 1523 | - var ScreenViewTracking = /*#__PURE__*/ function(_BaseTracking) { | |
| 1524 | - function ScreenViewTracking() { | |
| 1525 | - _classCallCheck(this, ScreenViewTracking); | |
| 1526 | - return _callSuper$2(this, ScreenViewTracking, arguments); | |
| 1527 | - } | |
| 1528 | - _inherits(ScreenViewTracking, _BaseTracking); | |
| 1529 | - return _createClass(ScreenViewTracking, null, [ | |
| 1530 | - { | |
| 1531 | - key: "init", | |
| 1532 | - value: function init() { | |
| 1533 | - if (!DashboardUtils.isElementorPage()) return; | |
| 1534 | - var screenData = this.getScreenData(); | |
| 1535 | - if (screenData) this.trackScreen(screenData.screenId, screenData.screenType); | |
| 1536 | - this.attachTabChangeTracking(); | |
| 1537 | - } | |
| 1538 | - }, | |
| 1539 | - { | |
| 1540 | - key: "destroy", | |
| 1541 | - value: function destroy() { | |
| 1542 | - _superPropGet(ScreenViewTracking, "destroy", this, 2)([]); | |
| 1543 | - this.trackedScreens.clear(); | |
| 1544 | - } | |
| 1545 | - }, | |
| 1546 | - { | |
| 1547 | - key: "getScreenData", | |
| 1548 | - value: function getScreenData() { | |
| 1549 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1550 | - var page = urlParams.get("page"); | |
| 1551 | - var postType = urlParams.get("post_type"); | |
| 1552 | - var hash = window.location.hash; | |
| 1553 | - var screenId = ""; | |
| 1554 | - var screenType = ""; | |
| 1555 | - if (page) screenId = page; | |
| 1556 | - else if (postType) screenId = postType; | |
| 1557 | - else screenId = this.getScreenIdFromBody(); | |
| 1558 | - if (this.isElementorAppPage()) { | |
| 1559 | - var appScreenData = this.getAppScreenData(hash); | |
| 1560 | - if (appScreenData) return appScreenData; | |
| 1561 | - } | |
| 1562 | - var hasNavTabs = document.querySelector(SCREEN_SELECTORS.NAV_TAB_WRAPPER); | |
| 1563 | - var hasSettingsTabs = document.querySelectorAll(SCREEN_SELECTORS.SETTINGS_FORM_PAGE).length > 1; | |
| 1564 | - if (hasNavTabs || hasSettingsTabs || hash && !this.isElementorAppPage()) { | |
| 1565 | - screenType = SCREEN_TYPES.TAB; | |
| 1566 | - if (hash) { | |
| 1567 | - var tabId = hash.replace(/^#(tab-)?/, ""); | |
| 1568 | - screenId = "".concat(screenId, "-").concat(tabId); | |
| 1569 | - } else if (hasNavTabs) { | |
| 1570 | - var activeTab = document.querySelector(SCREEN_SELECTORS.NAV_TAB_ACTIVE); | |
| 1571 | - if (activeTab) { | |
| 1572 | - var tabText = activeTab.textContent.trim(); | |
| 1573 | - var tabHref = activeTab.getAttribute("href"); | |
| 1574 | - if (tabText) screenId = "".concat(screenId, "-").concat(this.sanitizeScreenId(tabText)); | |
| 1575 | - else if (tabHref && tabHref.includes("#")) { | |
| 1576 | - var _tabId = tabHref.split("#")[1]; | |
| 1577 | - screenId = "".concat(screenId, "-").concat(_tabId); | |
| 1578 | - } | |
| 1579 | - } | |
| 1580 | - } else if (hasSettingsTabs) { | |
| 1581 | - var activeSettingsTab = document.querySelector(SCREEN_SELECTORS.SETTINGS_FORM_PAGE_ACTIVE); | |
| 1582 | - if (activeSettingsTab) { | |
| 1583 | - var _tabId2 = activeSettingsTab.id; | |
| 1584 | - if (_tabId2) screenId = "".concat(screenId, "-").concat(_tabId2); | |
| 1585 | - } | |
| 1586 | - } | |
| 1587 | - } | |
| 1588 | - return { | |
| 1589 | - screenId, | |
| 1590 | - screenType | |
| 1591 | - }; | |
| 1592 | - } | |
| 1593 | - }, | |
| 1594 | - { | |
| 1595 | - key: "isElementorAppPage", | |
| 1596 | - value: function isElementorAppPage() { | |
| 1597 | - return "elementor-app" === new URLSearchParams(window.location.search).get("page"); | |
| 1598 | - } | |
| 1599 | - }, | |
| 1600 | - { | |
| 1601 | - key: "getAppScreenData", | |
| 1602 | - value: function getAppScreenData(hash) { | |
| 1603 | - if (!hash) return null; | |
| 1604 | - var cleanHash = hash.replace(/^#/, ""); | |
| 1605 | - if (!cleanHash.startsWith("/")) return null; | |
| 1606 | - var pathParts = cleanHash.split("/").filter(Boolean); | |
| 1607 | - if (0 === pathParts.length) return null; | |
| 1608 | - return { | |
| 1609 | - screenId: pathParts.join("/"), | |
| 1610 | - screenType: SCREEN_TYPES.APP_SCREEN | |
| 1611 | - }; | |
| 1612 | - } | |
| 1613 | - }, | |
| 1614 | - { | |
| 1615 | - key: "getScreenIdFromBody", | |
| 1616 | - value: function getScreenIdFromBody() { | |
| 1617 | - var _iterator = _createForOfIteratorHelper$1(document.body.className.split(" ")); | |
| 1618 | - var _step; | |
| 1619 | - try { | |
| 1620 | - for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 1621 | - var cls = _step.value; | |
| 1622 | - if (cls.startsWith("elementor") && (cls.includes("page") || cls.includes("post-type"))) return cls; | |
| 1623 | - } | |
| 1624 | - } catch (err) { | |
| 1625 | - _iterator.e(err); | |
| 1626 | - } finally { | |
| 1627 | - _iterator.f(); | |
| 1628 | - } | |
| 1629 | - return "elementor-unknown"; | |
| 1630 | - } | |
| 1631 | - }, | |
| 1632 | - { | |
| 1633 | - key: "sanitizeScreenId", | |
| 1634 | - value: function sanitizeScreenId(text) { | |
| 1635 | - return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, ""); | |
| 1636 | - } | |
| 1637 | - }, | |
| 1638 | - { | |
| 1639 | - key: "attachTabChangeTracking", | |
| 1640 | - value: function attachTabChangeTracking() { | |
| 1641 | - this.attachNavTabTracking(); | |
| 1642 | - this.attachHashChangeTracking(); | |
| 1643 | - this.attachSettingsTabTracking(); | |
| 1644 | - this.attachModalTracking(); | |
| 1645 | - } | |
| 1646 | - }, | |
| 1647 | - { | |
| 1648 | - key: "attachNavTabTracking", | |
| 1649 | - value: function attachNavTabTracking() { | |
| 1650 | - var _this = this; | |
| 1651 | - var wrapper = document.querySelector(SCREEN_SELECTORS.NAV_TAB_WRAPPER); | |
| 1652 | - if (!wrapper) return; | |
| 1653 | - this.addEventListenerTracked(wrapper, "click", function(event) { | |
| 1654 | - var navTab = event.target.closest(SCREEN_SELECTORS.NAV_TAB); | |
| 1655 | - if (navTab && !navTab.classList.contains("nav-tab-active")) { | |
| 1656 | - var screenData = _this.getScreenData(); | |
| 1657 | - if (screenData) _this.trackScreen(screenData.screenId, screenData.screenType); | |
| 1658 | - } | |
| 1659 | - }); | |
| 1660 | - } | |
| 1661 | - }, | |
| 1662 | - { | |
| 1663 | - key: "attachHashChangeTracking", | |
| 1664 | - value: function attachHashChangeTracking() { | |
| 1665 | - var _this2 = this; | |
| 1666 | - this.addEventListenerTracked(window, "hashchange", function() { | |
| 1667 | - var screenData = _this2.getScreenData(); | |
| 1668 | - if (screenData) _this2.trackScreen(screenData.screenId, screenData.screenType); | |
| 1669 | - }); | |
| 1670 | - } | |
| 1671 | - }, | |
| 1672 | - { | |
| 1673 | - key: "attachSettingsTabTracking", | |
| 1674 | - value: function attachSettingsTabTracking() { | |
| 1675 | - var _this3 = this; | |
| 1676 | - var settingsPages = document.querySelectorAll(SCREEN_SELECTORS.SETTINGS_FORM_PAGE); | |
| 1677 | - if (0 === settingsPages.length) return; | |
| 1678 | - settingsPages.forEach(function(page) { | |
| 1679 | - _this3.addObserver(page, { | |
| 1680 | - attributes: true, | |
| 1681 | - attributeFilter: ["class"] | |
| 1682 | - }, function() { | |
| 1683 | - var screenData = _this3.getScreenData(); | |
| 1684 | - if (screenData) _this3.trackScreen(screenData.screenId, screenData.screenType); | |
| 1685 | - }); | |
| 1686 | - }); | |
| 1687 | - } | |
| 1688 | - }, | |
| 1689 | - { | |
| 1690 | - key: "attachModalTracking", | |
| 1691 | - value: function attachModalTracking() { | |
| 1692 | - var _this4 = this; | |
| 1693 | - this.addObserver(document.body, { | |
| 1694 | - childList: true, | |
| 1695 | - subtree: true | |
| 1696 | - }, function(mutations) { | |
| 1697 | - var _iterator2 = _createForOfIteratorHelper$1(mutations); | |
| 1698 | - var _step2; | |
| 1699 | - try { | |
| 1700 | - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) if ("childList" === _step2.value.type) TRACKED_MODALS.forEach(function(modalSelector) { | |
| 1701 | - var modal = document.querySelector(modalSelector); | |
| 1702 | - if (modal && _this4.isModalVisible(modal)) { | |
| 1703 | - var modalId = modalSelector.replace("#", ""); | |
| 1704 | - _this4.trackScreen(modalId, SCREEN_TYPES.POPUP); | |
| 1705 | - } | |
| 1706 | - }); | |
| 1707 | - } catch (err) { | |
| 1708 | - _iterator2.e(err); | |
| 1709 | - } finally { | |
| 1710 | - _iterator2.f(); | |
| 1711 | - } | |
| 1712 | - }); | |
| 1713 | - } | |
| 1714 | - }, | |
| 1715 | - { | |
| 1716 | - key: "isModalVisible", | |
| 1717 | - value: function isModalVisible(element) { | |
| 1718 | - if (!element) return false; | |
| 1719 | - var style = window.getComputedStyle(element); | |
| 1720 | - return "none" !== style.display && 0 !== parseFloat(style.opacity); | |
| 1721 | - } | |
| 1722 | - }, | |
| 1723 | - { | |
| 1724 | - key: "trackScreen", | |
| 1725 | - value: function trackScreen(screenId) { | |
| 1726 | - var screenType = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : SCREEN_TYPES.TOP_LEVEL_PAGE; | |
| 1727 | - var trackingKey = "".concat(screenId, "-").concat(screenType); | |
| 1728 | - if (this.trackedScreens.has(trackingKey)) return; | |
| 1729 | - this.trackedScreens.add(trackingKey); | |
| 1730 | - WpDashboardTracking.trackScreenViewed(screenId, screenType); | |
| 1731 | - } | |
| 1732 | - } | |
| 1733 | - ]); | |
| 1734 | - }(BaseTracking); | |
| 1735 | - _defineProperty(ScreenViewTracking, "trackedScreens", /* @__PURE__ */ new Set()); | |
| 1736 | 918 | |
| 1737 | -//#endregion | |
| 1738 | -//#region app/assets/js/event-track/dashboard/menu-promotion.js | |
| 1739 | - function _callSuper$1(t, o, e) { | |
| 1740 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1741 | - } | |
| 1742 | - __name(_callSuper$1, "_callSuper"); | |
| 1743 | - function _isNativeReflectConstruct$1() { | |
| 1744 | - try { | |
| 1745 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1746 | - } catch (t) {} | |
| 1747 | - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { | |
| 1748 | - return !!t; | |
| 1749 | - })(); | |
| 1750 | - } | |
| 1751 | - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct"); | |
| 1752 | - var PROMO_MENU_ITEMS = { | |
| 1753 | - go_elementor_pro: "Upgrade", | |
| 1754 | - "elementor-one-upgrade": "Upgrade" | |
| 1755 | - }; | |
| 1756 | - var MenuPromotionTracking = /*#__PURE__*/ function(_BaseTracking) { | |
| 1757 | - function MenuPromotionTracking() { | |
| 1758 | - _classCallCheck(this, MenuPromotionTracking); | |
| 1759 | - return _callSuper$1(this, MenuPromotionTracking, arguments); | |
| 1760 | - } | |
| 1761 | - _inherits(MenuPromotionTracking, _BaseTracking); | |
| 1762 | - return _createClass(MenuPromotionTracking, null, [ | |
| 1763 | - { | |
| 1764 | - key: "init", | |
| 1765 | - value: function init() { | |
| 1766 | - this.attachDelegatedTracking(); | |
| 1767 | - } | |
| 1768 | - }, | |
| 1769 | - { | |
| 1770 | - key: "attachDelegatedTracking", | |
| 1771 | - value: function attachDelegatedTracking() { | |
| 1772 | - var _this = this; | |
| 1773 | - this.addEventListenerTracked(document, "click", function(event) { | |
| 1774 | - var target = event.target; | |
| 1775 | - if (!target) return; | |
| 1776 | - var link = target.closest("a"); | |
| 1777 | - if (!link) return; | |
| 1778 | - var href = link.getAttribute("href"); | |
| 1779 | - if (!href) return; | |
| 1780 | - var menuItemKey = _this.extractPromoMenuKey(href); | |
| 1781 | - if (!menuItemKey) return; | |
| 1782 | - _this.handleMenuPromoClick(link, menuItemKey); | |
| 1783 | - }, { capture: true }); | |
| 1784 | - } | |
| 1785 | - }, | |
| 1786 | - { | |
| 1787 | - key: "extractPromoMenuKey", | |
| 1788 | - value: function extractPromoMenuKey(href) { | |
| 1789 | - for (var _i = 0, _Object$keys = Object.keys(PROMO_MENU_ITEMS); _i < _Object$keys.length; _i++) { | |
| 1790 | - var menuItemKey = _Object$keys[_i]; | |
| 1791 | - if (href.includes("page=".concat(menuItemKey))) return menuItemKey; | |
| 1792 | - } | |
| 1793 | - return null; | |
| 1794 | - } | |
| 1795 | - }, | |
| 1796 | - { | |
| 1797 | - key: "handleMenuPromoClick", | |
| 1798 | - value: function handleMenuPromoClick(menuItem, menuItemKey) { | |
| 1799 | - var destination = menuItem.getAttribute("href"); | |
| 1800 | - var promoName = PROMO_MENU_ITEMS[menuItemKey]; | |
| 1801 | - var path = menuItemKey.replace("elementor_", "").replace(/_/g, "/"); | |
| 1802 | - WpDashboardTracking.trackPromoClicked(promoName, destination, path); | |
| 1803 | - } | |
| 1804 | - } | |
| 1805 | - ]); | |
| 1806 | - }(BaseTracking); | |
| 919 | + return to; | |
| 920 | +}; | |
| 1807 | 921 | |
| 1808 | -//#endregion | |
| 1809 | -//#region app/assets/js/event-track/dashboard/action-controls.js | |
| 1810 | - function _createForOfIteratorHelper(r, e) { | |
| 1811 | - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1812 | - if (!t) { | |
| 1813 | - if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { | |
| 1814 | - t && (r = t); | |
| 1815 | - var _n = 0; | |
| 1816 | - var F = function F() {}; | |
| 1817 | - return { | |
| 1818 | - s: F, | |
| 1819 | - n: function n() { | |
| 1820 | - return _n >= r.length ? { done: !0 } : { | |
| 1821 | - done: !1, | |
| 1822 | - value: r[_n++] | |
| 1823 | - }; | |
| 1824 | - }, | |
| 1825 | - e: function e(r) { | |
| 1826 | - throw r; | |
| 1827 | - }, | |
| 1828 | - f: F | |
| 1829 | - }; | |
| 1830 | - } | |
| 1831 | - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1832 | - } | |
| 1833 | - var o; | |
| 1834 | - var a = !0; | |
| 1835 | - var u = !1; | |
| 1836 | - return { | |
| 1837 | - s: function s() { | |
| 1838 | - t = t.call(r); | |
| 1839 | - }, | |
| 1840 | - n: function n() { | |
| 1841 | - var r = t.next(); | |
| 1842 | - return a = r.done, r; | |
| 1843 | - }, | |
| 1844 | - e: function e(r) { | |
| 1845 | - u = !0, o = r; | |
| 1846 | - }, | |
| 1847 | - f: function f() { | |
| 1848 | - try { | |
| 1849 | - a || null == t.return || t.return(); | |
| 1850 | - } finally { | |
| 1851 | - if (u) throw o; | |
| 1852 | - } | |
| 1853 | - } | |
| 1854 | - }; | |
| 1855 | - } | |
| 1856 | - function _unsupportedIterableToArray$1(r, a) { | |
| 1857 | - if (r) { | |
| 1858 | - if ("string" == typeof r) return _arrayLikeToArray$1(r, a); | |
| 1859 | - var t = {}.toString.call(r).slice(8, -1); | |
| 1860 | - 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$1(r, a) : void 0; | |
| 1861 | - } | |
| 1862 | - } | |
| 1863 | - __name(_unsupportedIterableToArray$1, "_unsupportedIterableToArray"); | |
| 1864 | - function _arrayLikeToArray$1(r, a) { | |
| 1865 | - (null == a || a > r.length) && (a = r.length); | |
| 1866 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 1867 | - return n; | |
| 1868 | - } | |
| 1869 | - __name(_arrayLikeToArray$1, "_arrayLikeToArray"); | |
| 1870 | - function _callSuper(t, o, e) { | |
| 1871 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1872 | - } | |
| 1873 | - function _isNativeReflectConstruct() { | |
| 1874 | - try { | |
| 1875 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1876 | - } catch (t) {} | |
| 1877 | - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 1878 | - return !!t; | |
| 1879 | - })(); | |
| 1880 | - } | |
| 1881 | - var EXCLUDED_SELECTORS = { | |
| 1882 | - ADMIN_MENU: "#adminmenu", | |
| 1883 | - TOP_BAR: ".e-admin-top-bar", | |
| 1884 | - TOP_BAR_EDITOR_ONE: "#editor-one-top-bar", | |
| 1885 | - WP_ADMIN_BAR: "#wpadminbar", | |
| 1886 | - SUBMENU: ".wp-submenu", | |
| 1887 | - PROMO_PAGE: ".e-feature-promotion", | |
| 1888 | - PROMO_BLANK_STATE: ".elementor-blank_state", | |
| 1889 | - APP: ".e-app", | |
| 1890 | - SIDEBAR_NAVIGATION: "#editor-one-sidebar-navigation", | |
| 1891 | - FLYOUT_MENU: ".elementor-submenu-flyout" | |
| 1892 | - }; | |
| 1893 | - var ActionControlTracking = /*#__PURE__*/ function(_BaseTracking) { | |
| 1894 | - function ActionControlTracking() { | |
| 1895 | - _classCallCheck(this, ActionControlTracking); | |
| 1896 | - return _callSuper(this, ActionControlTracking, arguments); | |
| 1897 | - } | |
| 1898 | - _inherits(ActionControlTracking, _BaseTracking); | |
| 1899 | - return _createClass(ActionControlTracking, null, [ | |
| 1900 | - { | |
| 1901 | - key: "init", | |
| 1902 | - value: function init() { | |
| 1903 | - if (!DashboardUtils.isElementorPage()) return; | |
| 1904 | - this.attachDelegatedHandlers(); | |
| 1905 | - this.addTrackingAttributesToFilterButtons(); | |
| 1906 | - this.initializeLinkDataIds(); | |
| 1907 | - } | |
| 1908 | - }, | |
| 1909 | - { | |
| 1910 | - key: "initializeLinkDataIds", | |
| 1911 | - value: function initializeLinkDataIds() { | |
| 1912 | - var _this = this; | |
| 1913 | - var initializeLinks = function initializeLinks() { | |
| 1914 | - document.querySelectorAll("a[href]").forEach(function(link) { | |
| 1915 | - if (_this.isExcludedElement(link) || _this.isNavigationLink(link) || link.hasAttribute("data-id")) return; | |
| 1916 | - var href = link.getAttribute("href"); | |
| 1917 | - if (!href) return; | |
| 1918 | - var cleanedHref = _this.removeNonceFromUrl(href); | |
| 1919 | - if (cleanedHref) link.setAttribute("data-id", cleanedHref); | |
| 1920 | - }); | |
| 1921 | - }; | |
| 1922 | - if ("loading" === document.readyState) document.addEventListener("DOMContentLoaded", initializeLinks); | |
| 1923 | - else initializeLinks(); | |
| 1924 | - } | |
| 1925 | - }, | |
| 1926 | - { | |
| 1927 | - key: "addTrackingAttributesToFilterButtons", | |
| 1928 | - value: function addTrackingAttributesToFilterButtons() { | |
| 1929 | - var body = document.body; | |
| 1930 | - if (!body) return; | |
| 1931 | - var screenPrefix = ""; | |
| 1932 | - switch (true) { | |
| 1933 | - case body.classList.contains("post-type-elementor_library"): | |
| 1934 | - screenPrefix = "elementor_library-library"; | |
| 1935 | - break; | |
| 1936 | - case body.classList.contains("post-type-e-floating-buttons"): | |
| 1937 | - screenPrefix = "e-floating-buttons"; | |
| 1938 | - break; | |
| 1939 | - default: return; | |
| 1940 | - } | |
| 1941 | - var addDataIdToListTableButtons = function addDataIdToListTableButtons() { | |
| 1942 | - [ | |
| 1943 | - { | |
| 1944 | - id: "post-query-submit", | |
| 1945 | - suffix: "filter" | |
| 1946 | - }, | |
| 1947 | - { | |
| 1948 | - id: "search-submit", | |
| 1949 | - suffix: "search" | |
| 1950 | - }, | |
| 1951 | - { | |
| 1952 | - id: "doaction", | |
| 1953 | - suffix: "apply" | |
| 1954 | - }, | |
| 1955 | - { | |
| 1956 | - id: "doaction2", | |
| 1957 | - suffix: "apply-bottom" | |
| 1958 | - } | |
| 1959 | - ].forEach(function(config) { | |
| 1960 | - var button = document.getElementById(config.id); | |
| 1961 | - if (!button || button.hasAttribute("data-id")) return; | |
| 1962 | - button.setAttribute("data-id", "".concat(screenPrefix, "-button-").concat(config.suffix)); | |
| 1963 | - }); | |
| 1964 | - }; | |
| 1965 | - if ("loading" === document.readyState) document.addEventListener("DOMContentLoaded", addDataIdToListTableButtons); | |
| 1966 | - else addDataIdToListTableButtons(); | |
| 1967 | - } | |
| 1968 | - }, | |
| 1969 | - { | |
| 1970 | - key: "isExcludedElement", | |
| 1971 | - value: function isExcludedElement(element) { | |
| 1972 | - for (var _i = 0, _Object$values = Object.values(EXCLUDED_SELECTORS); _i < _Object$values.length; _i++) { | |
| 1973 | - var selector = _Object$values[_i]; | |
| 1974 | - if (element.closest(selector)) return true; | |
| 1975 | - } | |
| 1976 | - if (element.classList.contains("go-pro")) return true; | |
| 1977 | - return false; | |
| 1978 | - } | |
| 1979 | - }, | |
| 1980 | - { | |
| 1981 | - key: "attachDelegatedHandlers", | |
| 1982 | - value: function attachDelegatedHandlers() { | |
| 1983 | - var _this2 = this; | |
| 1984 | - var FILTER_BUTTON_IDS = ["search-submit", "post-query-submit"]; | |
| 1985 | - this.addEventListenerTracked(document, "click", function(event) { | |
| 1986 | - var _event$target; | |
| 1987 | - var base = event.target && 1 === event.target.nodeType ? event.target : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.parentElement; | |
| 1988 | - if (!base) return; | |
| 1989 | - var toggle = base.closest(".elementor-role-toggle"); | |
| 1990 | - if (toggle && !_this2.isExcludedElement(toggle)) { | |
| 1991 | - _this2.trackControl(toggle, CONTROL_TYPES.TOGGLE); | |
| 1992 | - return; | |
| 1993 | - } | |
| 1994 | - var button = base.closest("button, input[type=\"submit\"], input[type=\"button\"], .button, .e-btn"); | |
| 1995 | - if (button && !_this2.isExcludedElement(button)) { | |
| 1996 | - if (FILTER_BUTTON_IDS.includes(button.id)) { | |
| 1997 | - _this2.trackControl(button, CONTROL_TYPES.FILTER); | |
| 1998 | - return; | |
| 1999 | - } | |
| 2000 | - _this2.trackControl(button, CONTROL_TYPES.BUTTON); | |
| 2001 | - return; | |
| 2002 | - } | |
| 2003 | - var link = base.closest("a"); | |
| 2004 | - if (link && !_this2.isExcludedElement(link) && !_this2.isNavigationLink(link)) _this2.trackControl(link, CONTROL_TYPES.LINK); | |
| 2005 | - }, { capture: false }); | |
| 2006 | - this.addEventListenerTracked(document, "change", function(event) { | |
| 2007 | - var _event$target2; | |
| 2008 | - var base = event.target && 1 === event.target.nodeType ? event.target : (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.parentElement; | |
| 2009 | - if (!base) return; | |
| 2010 | - var toggle = null; | |
| 2011 | - if (WpDashboardTracking.isEditorOneActive()) toggle = base.closest(".MuiSwitch-switchBase"); | |
| 2012 | - else toggle = base.closest(".components-toggle-control"); | |
| 2013 | - if (toggle && !_this2.isExcludedElement(toggle)) { | |
| 2014 | - _this2.trackControl(toggle, CONTROL_TYPES.TOGGLE); | |
| 2015 | - return; | |
| 2016 | - } | |
| 2017 | - var checkbox = base.closest("input[type=\"checkbox\"]"); | |
| 2018 | - if (checkbox && !_this2.isExcludedElement(checkbox)) { | |
| 2019 | - _this2.trackControl(checkbox, CONTROL_TYPES.CHECKBOX); | |
| 2020 | - return; | |
| 2021 | - } | |
| 2022 | - var radio = base.closest("input[type=\"radio\"]"); | |
| 2023 | - if (radio && !_this2.isExcludedElement(radio)) { | |
| 2024 | - _this2.trackControl(radio, CONTROL_TYPES.RADIO); | |
| 2025 | - return; | |
| 2026 | - } | |
| 2027 | - var select = base.closest("select"); | |
| 2028 | - if (select && !_this2.isExcludedElement(select)) _this2.trackControl(select, CONTROL_TYPES.SELECT); | |
| 2029 | - }); | |
| 2030 | - } | |
| 2031 | - }, | |
| 2032 | - { | |
| 2033 | - key: "isNavigationLink", | |
| 2034 | - value: function isNavigationLink(link) { | |
| 2035 | - var href = link.getAttribute("href"); | |
| 2036 | - if (!href) return false; | |
| 2037 | - if (href.startsWith("#") && href.includes("tab")) return true; | |
| 2038 | - if (link.classList.contains("nav-tab")) return true; | |
| 2039 | - return !!link.closest(".wp-submenu, #adminmenu, .e-admin-top-bar, #wpadminbar"); | |
| 2040 | - } | |
| 2041 | - }, | |
| 2042 | - { | |
| 2043 | - key: "trackControl", | |
| 2044 | - value: function trackControl(element, controlType) { | |
| 2045 | - var controlIdentifier = this.extractControlIdentifier(element, controlType); | |
| 2046 | - if (!controlIdentifier) return; | |
| 2047 | - WpDashboardTracking.trackActionControl(controlIdentifier, controlType); | |
| 2048 | - } | |
| 2049 | - }, | |
| 2050 | - { | |
| 2051 | - key: "extractControlIdentifier", | |
| 2052 | - value: function extractControlIdentifier(element, controlType) { | |
| 2053 | - if (CONTROL_TYPES.RADIO === controlType) { | |
| 2054 | - var name = element.getAttribute("name"); | |
| 2055 | - var value = element.value || element.getAttribute("value"); | |
| 2056 | - if (name && value) return "".concat(name, "-").concat(value); | |
| 2057 | - if (name) return name; | |
| 2058 | - } | |
| 2059 | - if (CONTROL_TYPES.SELECT === controlType) { | |
| 2060 | - var _name = element.getAttribute("name"); | |
| 2061 | - if (_name) return _name; | |
| 2062 | - } | |
| 2063 | - if (CONTROL_TYPES.CHECKBOX === controlType) { | |
| 2064 | - var _name2 = element.getAttribute("name"); | |
| 2065 | - if (_name2) { | |
| 2066 | - if (document.querySelectorAll("input[type=\"checkbox\"][name=\"".concat(CSS.escape(_name2), "\"]")).length > 1) { | |
| 2067 | - var _value = element.value || element.getAttribute("value"); | |
| 2068 | - if (_value) return "".concat(_name2, "-").concat(_value); | |
| 2069 | - } | |
| 2070 | - return _name2; | |
| 2071 | - } | |
| 2072 | - } | |
| 2073 | - if (CONTROL_TYPES.LINK === controlType) { | |
| 2074 | - var dataId = element.getAttribute("data-id"); | |
| 2075 | - if (dataId) return dataId; | |
| 2076 | - var href = element.getAttribute("href"); | |
| 2077 | - if (href) return this.removeNonceFromUrl(href); | |
| 2078 | - } | |
| 2079 | - if (CONTROL_TYPES.BUTTON === controlType || CONTROL_TYPES.TOGGLE === controlType || CONTROL_TYPES.FILTER === controlType) { | |
| 2080 | - var _dataId = element.getAttribute("data-id"); | |
| 2081 | - if (_dataId) return _dataId; | |
| 2082 | - var classIdMatch = this.extractClassId(element); | |
| 2083 | - if (classIdMatch) return classIdMatch; | |
| 2084 | - } | |
| 2085 | - return ""; | |
| 2086 | - } | |
| 2087 | - }, | |
| 2088 | - { | |
| 2089 | - key: "extractClassId", | |
| 2090 | - value: function extractClassId(element) { | |
| 2091 | - var classes = element.className; | |
| 2092 | - if (!classes || "string" !== typeof classes) return ""; | |
| 2093 | - var _iterator = _createForOfIteratorHelper(classes.split(" ")); | |
| 2094 | - var _step; | |
| 2095 | - try { | |
| 2096 | - for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 2097 | - var cls = _step.value; | |
| 2098 | - if (cls.startsWith("e-id-")) return cls.substring(5); | |
| 2099 | - } | |
| 2100 | - } catch (err) { | |
| 2101 | - _iterator.e(err); | |
| 2102 | - } finally { | |
| 2103 | - _iterator.f(); | |
| 2104 | - } | |
| 2105 | - return ""; | |
| 2106 | - } | |
| 2107 | - }, | |
| 2108 | - { | |
| 2109 | - key: "removeNonceFromUrl", | |
| 2110 | - value: function removeNonceFromUrl(url) { | |
| 2111 | - try { | |
| 2112 | - var urlObj = new URL(url, window.location.origin); | |
| 2113 | - urlObj.searchParams.delete("_wpnonce"); | |
| 2114 | - var postParam = urlObj.searchParams.get("post"); | |
| 2115 | - if (postParam !== null && /^[0-9]+$/.test(postParam)) urlObj.searchParams.delete("post"); | |
| 2116 | - return urlObj.pathname + urlObj.search + urlObj.hash; | |
| 2117 | - } catch (e) { | |
| 2118 | - return url; | |
| 2119 | - } | |
| 2120 | - } | |
| 2121 | - } | |
| 2122 | - ]); | |
| 2123 | - }(BaseTracking); | |
| 2124 | 922 | |
| 2125 | -//#endregion | |
| 2126 | -//#region app/assets/js/event-track/wp-dashboard-tracking.js | |
| 2127 | - var _WpDashboardTracking; | |
| 2128 | - var SESSION_TIMEOUT_MINUTES = 30; | |
| 2129 | - var MINUTE_MS = 60 * 1e3; | |
| 2130 | - var SESSION_TIMEOUT = SESSION_TIMEOUT_MINUTES * MINUTE_MS; | |
| 2131 | - var ACTIVITY_CHECK_INTERVAL = 1 * MINUTE_MS; | |
| 2132 | - var SESSION_STORAGE_KEY = "elementor_wpdash_session"; | |
| 2133 | - var PENDING_NAV_CLICK_KEY = "elementor_wpdash_pending_nav"; | |
| 2134 | - var CONTROL_TYPES = { | |
| 2135 | - BUTTON: "button", | |
| 2136 | - CHECKBOX: "checkbox", | |
| 2137 | - RADIO: "radio", | |
| 2138 | - LINK: "link", | |
| 2139 | - SELECT: "select", | |
| 2140 | - TOGGLE: "toggle", | |
| 2141 | - FILTER: "filter" | |
| 2142 | - }; | |
| 2143 | - var NAV_AREAS = { | |
| 2144 | - LEFT_MENU: "left_menu", | |
| 2145 | - SUBMENU: "submenu", | |
| 2146 | - HOVER_MENU: "hover_menu", | |
| 2147 | - TOP_BAR: "top_bar", | |
| 2148 | - SIDEBAR_MENU: "sidebar" | |
| 2149 | - }; | |
| 2150 | - var SCREEN_TYPES = { | |
| 2151 | - TAB: "tab", | |
| 2152 | - POPUP: "popup", | |
| 2153 | - APP_SCREEN: "app_screen" | |
| 2154 | - }; | |
| 2155 | - var WpDashboardTracking = /*#__PURE__*/ function() { | |
| 2156 | - function WpDashboardTracking() { | |
| 2157 | - _classCallCheck(this, WpDashboardTracking); | |
| 2158 | - } | |
| 2159 | - return _createClass(WpDashboardTracking, null, [ | |
| 2160 | - { | |
| 2161 | - key: "getElementorCommon", | |
| 2162 | - value: function getElementorCommon() { | |
| 2163 | - return window.elementorCommon; | |
| 2164 | - } | |
| 2165 | - }, | |
| 2166 | - { | |
| 2167 | - key: "init", | |
| 2168 | - value: function init() { | |
| 2169 | - if (this.initialized) return; | |
| 2170 | - this.restoreOrCreateSession(); | |
| 2171 | - if (this.isEventsManagerAvailable()) { | |
| 2172 | - this.startSessionMonitoring(); | |
| 2173 | - this.attachActivityListeners(); | |
| 2174 | - this.attachNavigationListener(); | |
| 2175 | - this.initialized = true; | |
| 2176 | - } | |
| 2177 | - } | |
| 2178 | - }, | |
| 2179 | - { | |
| 2180 | - key: "restoreOrCreateSession", | |
| 2181 | - value: function restoreOrCreateSession() { | |
| 2182 | - var storedSession = this.getStoredSession(); | |
| 2183 | - if (storedSession) { | |
| 2184 | - this.sessionStartTime = storedSession.sessionStartTime; | |
| 2185 | - this.navItemsVisited = new Set(storedSession.navItemsVisited); | |
| 2186 | - this.lastActivityTime = Date.now(); | |
| 2187 | - this.sessionEnded = false; | |
| 2188 | - } else { | |
| 2189 | - this.sessionStartTime = Date.now(); | |
| 2190 | - this.lastActivityTime = Date.now(); | |
| 2191 | - this.sessionEnded = false; | |
| 2192 | - this.navItemsVisited = /* @__PURE__ */ new Set(); | |
| 2193 | - } | |
| 2194 | - this.processPendingNavClick(); | |
| 2195 | - this.saveSessionToStorage(); | |
| 2196 | - } | |
| 2197 | - }, | |
| 2198 | - { | |
| 2199 | - key: "isEditorOneActive", | |
| 2200 | - value: function isEditorOneActive() { | |
| 2201 | - var _elementorCommon$conf; | |
| 2202 | - var _elementorCommon$conf2; | |
| 2203 | - var elementorCommon = this.getElementorCommon(); | |
| 2204 | - return (_elementorCommon$conf = elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$conf2 = elementorCommon.config) === null || _elementorCommon$conf2 === void 0 || (_elementorCommon$conf2 = _elementorCommon$conf2.editor_events) === null || _elementorCommon$conf2 === void 0 ? void 0 : _elementorCommon$conf2.isEditorOneActive) !== null && _elementorCommon$conf !== void 0 ? _elementorCommon$conf : false; | |
| 2205 | - } | |
| 2206 | - }, | |
| 2207 | - { | |
| 2208 | - key: "processPendingNavClick", | |
| 2209 | - value: function processPendingNavClick() { | |
| 2210 | - try { | |
| 2211 | - var pendingNav = sessionStorage.getItem(PENDING_NAV_CLICK_KEY); | |
| 2212 | - if (pendingNav) { | |
| 2213 | - var _JSON$parse = JSON.parse(pendingNav); | |
| 2214 | - var itemId = _JSON$parse.itemId; | |
| 2215 | - var rootItem = _JSON$parse.rootItem; | |
| 2216 | - var area = _JSON$parse.area; | |
| 2217 | - this.navItemsVisited.add(itemId); | |
| 2218 | - var properties = { | |
| 2219 | - wpdash_nav_item_id: itemId, | |
| 2220 | - wpdash_nav_area: area | |
| 2221 | - }; | |
| 2222 | - if (rootItem) properties.wpdash_nav_item_root = rootItem; | |
| 2223 | - this.dispatchEvent("wpdash_nav_clicked", properties, { send_immediately: true }); | |
| 2224 | - sessionStorage.removeItem(PENDING_NAV_CLICK_KEY); | |
| 2225 | - } | |
| 2226 | - } catch (error) { | |
| 2227 | - sessionStorage.removeItem(PENDING_NAV_CLICK_KEY); | |
| 2228 | - } | |
| 2229 | - } | |
| 2230 | - }, | |
| 2231 | - { | |
| 2232 | - key: "getStoredSession", | |
| 2233 | - value: function getStoredSession() { | |
| 2234 | - try { | |
| 2235 | - var stored = sessionStorage.getItem(SESSION_STORAGE_KEY); | |
| 2236 | - return stored ? JSON.parse(stored) : null; | |
| 2237 | - } catch (error) { | |
| 2238 | - return null; | |
| 2239 | - } | |
| 2240 | - } | |
| 2241 | - }, | |
| 2242 | - { | |
| 2243 | - key: "saveSessionToStorage", | |
| 2244 | - value: function saveSessionToStorage() { | |
| 2245 | - var sessionData = { | |
| 2246 | - sessionStartTime: this.sessionStartTime, | |
| 2247 | - navItemsVisited: Array.from(this.navItemsVisited) | |
| 2248 | - }; | |
| 2249 | - sessionStorage.setItem(SESSION_STORAGE_KEY, JSON.stringify(sessionData)); | |
| 2250 | - } | |
| 2251 | - }, | |
| 2252 | - { | |
| 2253 | - key: "clearStoredSession", | |
| 2254 | - value: function clearStoredSession() { | |
| 2255 | - sessionStorage.removeItem(SESSION_STORAGE_KEY); | |
| 2256 | - } | |
| 2257 | - }, | |
| 2258 | - { | |
| 2259 | - key: "isEventsManagerAvailable", | |
| 2260 | - value: function isEventsManagerAvailable() { | |
| 2261 | - var elementorCommon = this.getElementorCommon(); | |
| 2262 | - return (elementorCommon === null || elementorCommon === void 0 ? void 0 : elementorCommon.eventsManager) && "function" === typeof elementorCommon.eventsManager.dispatchEvent; | |
| 2263 | - } | |
| 2264 | - }, | |
| 2265 | - { | |
| 2266 | - key: "canSendEvents", | |
| 2267 | - value: function canSendEvents() { | |
| 2268 | - var _elementorCommon$conf3; | |
| 2269 | - var _elementorCommon$conf4; | |
| 2270 | - var elementorCommon = this.getElementorCommon(); | |
| 2271 | - return (_elementorCommon$conf3 = elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$conf4 = elementorCommon.config) === null || _elementorCommon$conf4 === void 0 || (_elementorCommon$conf4 = _elementorCommon$conf4.editor_events) === null || _elementorCommon$conf4 === void 0 ? void 0 : _elementorCommon$conf4.can_send_events) !== null && _elementorCommon$conf3 !== void 0 ? _elementorCommon$conf3 : false; | |
| 2272 | - } | |
| 2273 | - }, | |
| 2274 | - { | |
| 2275 | - key: "dispatchEvent", | |
| 2276 | - value: function dispatchEvent(eventName) { | |
| 2277 | - var _elementorCommon$even; | |
| 2278 | - var properties = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; | |
| 2279 | - var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; | |
| 2280 | - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) return; | |
| 2281 | - var elementorCommon = this.getElementorCommon(); | |
| 2282 | - elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$even = elementorCommon.eventsManager) === null || _elementorCommon$even === void 0 || _elementorCommon$even.dispatchEvent(eventName, properties, options); | |
| 2283 | - } | |
| 2284 | - }, | |
| 2285 | - { | |
| 2286 | - key: "updateActivity", | |
| 2287 | - value: function updateActivity() { | |
| 2288 | - this.lastActivityTime = Date.now(); | |
| 2289 | - } | |
| 2290 | - }, | |
| 2291 | - { | |
| 2292 | - key: "startSessionMonitoring", | |
| 2293 | - value: function startSessionMonitoring() { | |
| 2294 | - var _this = this; | |
| 2295 | - this.activityCheckInterval = setInterval(function() { | |
| 2296 | - _this.checkSessionTimeout(); | |
| 2297 | - }, ACTIVITY_CHECK_INTERVAL); | |
| 2298 | - window.addEventListener("beforeunload", function() { | |
| 2299 | - if (!_this.sessionEnded && !_this.isNavigatingToElementor) _this.trackSessionEnd("tab_closed"); | |
| 2300 | - }); | |
| 2301 | - document.addEventListener("visibilitychange", function() { | |
| 2302 | - if (!_this.sessionEnded && document.hidden) { | |
| 2303 | - if (Date.now() - _this.lastActivityTime > SESSION_TIMEOUT) _this.trackSessionEnd("tab_inactive"); | |
| 2304 | - } | |
| 2305 | - }); | |
| 2306 | - } | |
| 2307 | - }, | |
| 2308 | - { | |
| 2309 | - key: "isElementorPage", | |
| 2310 | - value: function isElementorPage(url) { | |
| 2311 | - try { | |
| 2312 | - var params = new URL(url, window.location.origin).searchParams; | |
| 2313 | - var page = params.get("page"); | |
| 2314 | - var postType = params.get("post_type"); | |
| 2315 | - var action = params.get("action"); | |
| 2316 | - return !!(page && this.elementorPages.some(function(p) { | |
| 2317 | - return page.includes(p); | |
| 2318 | - }) || postType && this.elementorPostTypes.includes(postType) || action && action.includes(this.anyPageWithElementorString)); | |
| 2319 | - } catch (error) { | |
| 2320 | - return false; | |
| 2321 | - } | |
| 2322 | - } | |
| 2323 | - }, | |
| 2324 | - { | |
| 2325 | - key: "isPluginsPage", | |
| 2326 | - value: function isPluginsPage(url) { | |
| 2327 | - try { | |
| 2328 | - return new URL(url, window.location.origin).pathname.includes("plugins.php"); | |
| 2329 | - } catch (error) { | |
| 2330 | - return false; | |
| 2331 | - } | |
| 2332 | - } | |
| 2333 | - }, | |
| 2334 | - { | |
| 2335 | - key: "isNavigatingAwayFromElementor", | |
| 2336 | - value: function isNavigatingAwayFromElementor(targetUrl) { | |
| 2337 | - if (!targetUrl) return false; | |
| 2338 | - if (targetUrl.startsWith("#")) return false; | |
| 2339 | - return !this.isElementorPage(targetUrl); | |
| 2340 | - } | |
| 2341 | - }, | |
| 2342 | - { | |
| 2343 | - key: "isLinkOpeningInNewTab", | |
| 2344 | - value: function isLinkOpeningInNewTab(link) { | |
| 2345 | - var target = link.getAttribute("target"); | |
| 2346 | - return "_blank" === target || "_new" === target; | |
| 2347 | - } | |
| 2348 | - }, | |
| 2349 | - { | |
| 2350 | - key: "attachNavigationListener", | |
| 2351 | - value: function attachNavigationListener() { | |
| 2352 | - var _this2 = this; | |
| 2353 | - var handleLinkClick = function handleLinkClick(event) { | |
| 2354 | - var link = event.target.closest("a"); | |
| 2355 | - if (link && link.href) { | |
| 2356 | - if (_this2.isLinkOpeningInNewTab(link)) return; | |
| 2357 | - if (!_this2.sessionEnded && _this2.isNavigatingAwayFromElementor(link.href)) _this2.trackSessionEnd("navigate_away"); | |
| 2358 | - else if (_this2.isElementorPage(link.href)) _this2.isNavigatingToElementor = true; | |
| 2359 | - } | |
| 2360 | - if (event.target.closest("#editor-one-sidebar-navigation")) _this2.isNavigatingToElementor = true; | |
| 2361 | - }; | |
| 2362 | - var handleFormSubmit = function handleFormSubmit(event) { | |
| 2363 | - var form = event.target; | |
| 2364 | - if (form.action) { | |
| 2365 | - if (!_this2.sessionEnded && _this2.isNavigatingAwayFromElementor(form.action)) _this2.trackSessionEnd("navigate_away"); | |
| 2366 | - else if (_this2.isElementorPage(form.action)) _this2.isNavigatingToElementor = true; | |
| 2367 | - } | |
| 2368 | - }; | |
| 2369 | - document.addEventListener("click", handleLinkClick, true); | |
| 2370 | - document.addEventListener("submit", handleFormSubmit, true); | |
| 2371 | - this.navigationListeners.push({ | |
| 2372 | - type: "click", | |
| 2373 | - handler: handleLinkClick | |
| 2374 | - }, { | |
| 2375 | - type: "submit", | |
| 2376 | - handler: handleFormSubmit | |
| 2377 | - }); | |
| 2378 | - } | |
| 2379 | - }, | |
| 2380 | - { | |
| 2381 | - key: "checkSessionTimeout", | |
| 2382 | - value: function checkSessionTimeout() { | |
| 2383 | - if (Date.now() - this.lastActivityTime > SESSION_TIMEOUT && !this.sessionEnded) this.trackSessionEnd("timeout"); | |
| 2384 | - } | |
| 2385 | - }, | |
| 2386 | - { | |
| 2387 | - key: "attachActivityListeners", | |
| 2388 | - value: function attachActivityListeners() { | |
| 2389 | - var _this3 = this; | |
| 2390 | - [ | |
| 2391 | - "mousedown", | |
| 2392 | - "keydown", | |
| 2393 | - "scroll", | |
| 2394 | - "touchstart", | |
| 2395 | - "click" | |
| 2396 | - ].forEach(function(event) { | |
| 2397 | - document.addEventListener(event, function() { | |
| 2398 | - _this3.updateActivity(); | |
| 2399 | - }, { | |
| 2400 | - capture: true, | |
| 2401 | - passive: true | |
| 2402 | - }); | |
| 2403 | - }); | |
| 2404 | - } | |
| 2405 | - }, | |
| 2406 | - { | |
| 2407 | - key: "formatDuration", | |
| 2408 | - value: function formatDuration(milliseconds) { | |
| 2409 | - var totalSeconds = Math.floor(milliseconds / 1e3); | |
| 2410 | - return Number(totalSeconds.toFixed(2)); | |
| 2411 | - } | |
| 2412 | - }, | |
| 2413 | - { | |
| 2414 | - key: "trackNavClicked", | |
| 2415 | - value: function trackNavClicked(itemId) { | |
| 2416 | - var rootItem = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; | |
| 2417 | - var area = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NAV_AREAS.LEFT_MENU; | |
| 2418 | - if (!this.initialized) { | |
| 2419 | - var pendingNav = { | |
| 2420 | - itemId, | |
| 2421 | - rootItem, | |
| 2422 | - area | |
| 2423 | - }; | |
| 2424 | - sessionStorage.setItem(PENDING_NAV_CLICK_KEY, JSON.stringify(pendingNav)); | |
| 2425 | - return; | |
| 2426 | - } | |
| 2427 | - this.updateActivity(); | |
| 2428 | - this.navItemsVisited.add(itemId); | |
| 2429 | - this.saveSessionToStorage(); | |
| 2430 | - var properties = { | |
| 2431 | - wpdash_nav_item_id: itemId, | |
| 2432 | - wpdash_nav_area: area | |
| 2433 | - }; | |
| 2434 | - if (rootItem) properties.wpdash_nav_item_root = rootItem; | |
| 2435 | - this.dispatchEvent("wpdash_nav_clicked", properties); | |
| 2436 | - } | |
| 2437 | - }, | |
| 2438 | - { | |
| 2439 | - key: "trackScreenViewed", | |
| 2440 | - value: function trackScreenViewed(screenId) { | |
| 2441 | - var screenType = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : SCREEN_TYPES.TAB; | |
| 2442 | - this.updateActivity(); | |
| 2443 | - var properties = { | |
| 2444 | - wpdash_screen_id: screenId, | |
| 2445 | - wpdash_screen_type: screenType | |
| 2446 | - }; | |
| 2447 | - this.dispatchEvent("wpdash_screen_viewed", properties); | |
| 2448 | - } | |
| 2449 | - }, | |
| 2450 | - { | |
| 2451 | - key: "trackActionControl", | |
| 2452 | - value: function trackActionControl(controlIdentifier, controlType) { | |
| 2453 | - this.updateActivity(); | |
| 2454 | - var properties = { | |
| 2455 | - wpdash_action_control_interacted: controlIdentifier, | |
| 2456 | - wpdash_control_type: controlType | |
| 2457 | - }; | |
| 2458 | - this.dispatchEvent("wpdash_action_control", properties); | |
| 2459 | - } | |
| 2460 | - }, | |
| 2461 | - { | |
| 2462 | - key: "trackPromoClicked", | |
| 2463 | - value: function trackPromoClicked(promoName, destination, clickPath) { | |
| 2464 | - this.updateActivity(); | |
| 2465 | - var properties = { | |
| 2466 | - wpdash_promo_name: promoName, | |
| 2467 | - wpdash_promo_destination: destination, | |
| 2468 | - wpdash_promo_clicked_path: clickPath | |
| 2469 | - }; | |
| 2470 | - this.dispatchEvent("wpdash_promo_clicked", properties); | |
| 2471 | - } | |
| 2472 | - }, | |
| 2473 | - { | |
| 2474 | - key: "trackSessionEnd", | |
| 2475 | - value: function trackSessionEnd() { | |
| 2476 | - var reason = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "timeout"; | |
| 2477 | - if (this.sessionEnded) return; | |
| 2478 | - this.sessionEnded = true; | |
| 2479 | - if (this.activityCheckInterval) { | |
| 2480 | - clearInterval(this.activityCheckInterval); | |
| 2481 | - this.activityCheckInterval = null; | |
| 2482 | - } | |
| 2483 | - var duration = Date.now() - this.sessionStartTime; | |
| 2484 | - var properties = { | |
| 2485 | - wpdash_endstate_nav_summary: Array.from(this.navItemsVisited), | |
| 2486 | - wpdash_endstate_nav_count: this.navItemsVisited.size, | |
| 2487 | - wpdash_endstate_duration: this.formatDuration(duration), | |
| 2488 | - reason | |
| 2489 | - }; | |
| 2490 | - this.dispatchEvent("wpdash_session_end_state", properties); | |
| 2491 | - this.clearStoredSession(); | |
| 2492 | - } | |
| 2493 | - }, | |
| 2494 | - { | |
| 2495 | - key: "destroy", | |
| 2496 | - value: function destroy() { | |
| 2497 | - if (this.activityCheckInterval) clearInterval(this.activityCheckInterval); | |
| 2498 | - this.navigationListeners.forEach(function(_ref) { | |
| 2499 | - var type = _ref.type; | |
| 2500 | - var handler = _ref.handler; | |
| 2501 | - document.removeEventListener(type, handler, true); | |
| 2502 | - }); | |
| 2503 | - this.navigationListeners = []; | |
| 2504 | - ScreenViewTracking.destroy(); | |
| 2505 | - PromotionTracking.destroy(); | |
| 2506 | - MenuPromotionTracking.destroy(); | |
| 2507 | - ActionControlTracking.destroy(); | |
| 2508 | - this.initialized = false; | |
| 2509 | - } | |
| 2510 | - } | |
| 2511 | - ]); | |
| 2512 | - }(); | |
| 2513 | - _WpDashboardTracking = WpDashboardTracking; | |
| 2514 | - _defineProperty(WpDashboardTracking, "anyPageWithElementorString", "elementor"); | |
| 2515 | - _defineProperty(WpDashboardTracking, "elementorPages", [ | |
| 2516 | - _WpDashboardTracking.anyPageWithElementorString, | |
| 2517 | - "e-form-submissions", | |
| 2518 | - "popup_templates" | |
| 2519 | - ]); | |
| 2520 | - _defineProperty(WpDashboardTracking, "elementorPostTypes", [ | |
| 2521 | - "elementor_library", | |
| 2522 | - "e-floating-buttons", | |
| 2523 | - "elementor_snippet", | |
| 2524 | - "elementor_font", | |
| 2525 | - "elementor_icons" | |
| 2526 | - ]); | |
| 2527 | - _defineProperty(WpDashboardTracking, "sessionStartTime", Date.now()); | |
| 2528 | - _defineProperty(WpDashboardTracking, "lastActivityTime", Date.now()); | |
| 2529 | - _defineProperty(WpDashboardTracking, "sessionEnded", false); | |
| 2530 | - _defineProperty(WpDashboardTracking, "navItemsVisited", /* @__PURE__ */ new Set()); | |
| 2531 | - _defineProperty(WpDashboardTracking, "activityCheckInterval", null); | |
| 2532 | - _defineProperty(WpDashboardTracking, "initialized", false); | |
| 2533 | - _defineProperty(WpDashboardTracking, "navigationListeners", []); | |
| 2534 | - _defineProperty(WpDashboardTracking, "isNavigatingToElementor", false); | |
| 2535 | - window.addEventListener("elementor/admin/init", function() { | |
| 2536 | - var currentUrl = window.location.href; | |
| 2537 | - var isPluginsPage = WpDashboardTracking.isPluginsPage(currentUrl); | |
| 2538 | - var isElementorPage = WpDashboardTracking.isElementorPage(currentUrl); | |
| 2539 | - if (isPluginsPage) PluginActions.init(); | |
| 2540 | - NavigationTracking.init(); | |
| 2541 | - if (isElementorPage) { | |
| 2542 | - WpDashboardTracking.init(); | |
| 2543 | - ScreenViewTracking.init(); | |
| 2544 | - PromotionTracking.init(); | |
| 2545 | - MenuPromotionTracking.init(); | |
| 2546 | - ActionControlTracking.init(); | |
| 2547 | - } | |
| 2548 | - }); | |
| 2549 | - window.addEventListener("beforeunload", function() { | |
| 2550 | - NavigationTracking.destroy(); | |
| 2551 | - PluginActions.destroy(); | |
| 2552 | - WpDashboardTracking.destroy(); | |
| 2553 | - }); | |
| 923 | +/***/ }), | |
| 2554 | 924 | |
| 2555 | -//#endregion | |
| 2556 | -//#region modules/home/assets/js/utils/promo-tracking.js | |
| 2557 | - var trackPromoClick = function trackPromoClick(promoName, destination, path) { | |
| 2558 | - if (WpDashboardTracking && "function" === typeof WpDashboardTracking.trackPromoClicked) WpDashboardTracking.trackPromoClicked(promoName, destination, path); | |
| 2559 | - }; | |
| 2560 | - var getHomeScreenPath = function getHomeScreenPath(section) { | |
| 2561 | - return ["home", section]; | |
| 2562 | - }; | |
| 925 | +/***/ "../node_modules/prop-types/checkPropTypes.js": | |
| 926 | +/*!****************************************************!*\ | |
| 927 | + !*** ../node_modules/prop-types/checkPropTypes.js ***! | |
| 928 | + \****************************************************/ | |
| 929 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2563 | 930 | |
| 2564 | -//#endregion | |
| 2565 | -//#region modules/home/assets/js/components/top-section.js | |
| 2566 | - var TopSection = function TopSection(_ref) { | |
| 2567 | - var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | |
| 2568 | - var topData = props.topData; | |
| 2569 | - var buttonCtaUrl = props.buttonCtaUrl; | |
| 2570 | - if (!topData) return null; | |
| 2571 | - var title = topData.title; | |
| 2572 | - var description = topData.description; | |
| 2573 | - var buttonCtaTitle = topData.button_cta_text; | |
| 2574 | - var buttonCreatePageTitle = topData.button_create_page_title; | |
| 2575 | - var youtubeEmbeddedId = topData.youtube_embed_id; | |
| 2576 | - var buttonWatchURL = topData.button_watch_url; | |
| 2577 | - var buttonWatchTitle = topData.button_watch_title; | |
| 2578 | - var ctaButtonTitle = buttonCtaTitle !== null && buttonCtaTitle !== void 0 ? buttonCtaTitle : buttonCreatePageTitle; | |
| 2579 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 2580 | - elevation: 0, | |
| 2581 | - sx: { | |
| 2582 | - display: "flex", | |
| 2583 | - flexDirection: { | |
| 2584 | - xs: "column", | |
| 2585 | - sm: "row" | |
| 2586 | - }, | |
| 2587 | - justifyContent: "space-between", | |
| 2588 | - py: 3, | |
| 2589 | - px: { | |
| 2590 | - xs: 3, | |
| 2591 | - md: 4 | |
| 2592 | - }, | |
| 2593 | - gap: { | |
| 2594 | - xs: 2, | |
| 2595 | - sm: 3, | |
| 2596 | - lg: 10, | |
| 2597 | - xl: 22 | |
| 2598 | - }, | |
| 2599 | - borderRadius: 1, | |
| 2600 | - border: "1px solid rgba(0, 0, 0, 0.12)" | |
| 2601 | - } | |
| 2602 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { | |
| 2603 | - gap: 3, | |
| 2604 | - justifyContent: "center" | |
| 2605 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui_Typography.default, { variant: "h6" }, title), /*#__PURE__*/ react.default.createElement(_elementor_ui_Typography.default, { | |
| 2606 | - variant: "body2", | |
| 2607 | - color: "secondary" | |
| 2608 | - }, description)), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 2609 | - display: "flex", | |
| 2610 | - gap: 1 | |
| 2611 | - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 2612 | - "data-testid": "e-create-button", | |
| 2613 | - variant: "contained", | |
| 2614 | - size: "small", | |
| 2615 | - href: buttonCtaUrl, | |
| 2616 | - target: "_blank", | |
| 2617 | - onClick: function handleCtaClick() { | |
| 2618 | - trackPromoClick(ctaButtonTitle, buttonCtaUrl, getHomeScreenPath("top_section")); | |
| 2619 | - } | |
| 2620 | - }, ctaButtonTitle), /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 2621 | - variant: "outlined", | |
| 2622 | - color: "secondary", | |
| 2623 | - size: "small", | |
| 2624 | - startIcon: /*#__PURE__*/ react.default.createElement(YoutubeIcon, null), | |
| 2625 | - href: buttonWatchURL, | |
| 2626 | - target: "_blank", | |
| 2627 | - onClick: function handleWatchClick() { | |
| 2628 | - trackPromoClick(buttonWatchTitle, buttonWatchURL, getHomeScreenPath("top_section")); | |
| 2629 | - } | |
| 2630 | - }, buttonWatchTitle))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 2631 | - component: "iframe", | |
| 2632 | - src: "https://www.youtube.com/embed/".concat(youtubeEmbeddedId), | |
| 2633 | - title: "YouTube video player", | |
| 2634 | - frameBorder: "0", | |
| 2635 | - allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", | |
| 2636 | - allowFullScreen: true, | |
| 2637 | - sx: { | |
| 2638 | - aspectRatio: "16/9", | |
| 2639 | - borderRadius: 1, | |
| 2640 | - display: "flex", | |
| 2641 | - width: "100%", | |
| 2642 | - maxWidth: "365px" | |
| 2643 | - } | |
| 2644 | - })); | |
| 2645 | - }; | |
| 2646 | - TopSection.propTypes = { | |
| 2647 | - topData: import_prop_types.default.object.isRequired, | |
| 2648 | - buttonCtaUrl: import_prop_types.default.string.isRequired | |
| 2649 | - }; | |
| 931 | +"use strict"; | |
| 932 | +/** | |
| 933 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 934 | + * | |
| 935 | + * This source code is licensed under the MIT license found in the | |
| 936 | + * LICENSE file in the root directory of this source tree. | |
| 937 | + */ | |
| 2650 | 938 | |
| 2651 | -//#endregion | |
| 2652 | -//#region modules/home/assets/js/components/promotions/sidebar-banner.js | |
| 2653 | - var SidebarBanner = function SidebarBanner(_ref) { | |
| 2654 | - var image = _ref.image; | |
| 2655 | - var link = _ref.link; | |
| 2656 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 2657 | - elevation: 0, | |
| 2658 | - sx: { | |
| 2659 | - overflow: "hidden", | |
| 2660 | - borderRadius: 1 | |
| 2661 | - } | |
| 2662 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_Link.default, { | |
| 2663 | - target: "_blank", | |
| 2664 | - href: link, | |
| 2665 | - onClick: function handleClick() { | |
| 2666 | - trackPromoClick("Sidebar Banner", link, getHomeScreenPath("sidebar")); | |
| 2667 | - }, | |
| 2668 | - sx: { | |
| 2669 | - lineHeight: 0, | |
| 2670 | - display: "block", | |
| 2671 | - width: "100%", | |
| 2672 | - height: "100%", | |
| 2673 | - boxShadow: "none", | |
| 2674 | - "&:focus": { boxShadow: "none" }, | |
| 2675 | - "&:active": { boxShadow: "none" } | |
| 2676 | - } | |
| 2677 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 2678 | - component: "img", | |
| 2679 | - src: image, | |
| 2680 | - sx: { | |
| 2681 | - width: "100%", | |
| 2682 | - height: "100%" | |
| 2683 | - } | |
| 2684 | - }))); | |
| 2685 | - }; | |
| 2686 | - SidebarBanner.propTypes = { | |
| 2687 | - image: import_prop_types.default.string.isRequired, | |
| 2688 | - link: import_prop_types.default.string.isRequired | |
| 2689 | - }; | |
| 2690 | 939 | |
| 2691 | -//#endregion | |
| 2692 | -//#region modules/home/assets/js/icons/side-bar-check-icon.js | |
| 2693 | - var SideBarCheckIcon = function SideBarCheckIcon(props) { | |
| 2694 | - return /*#__PURE__*/ react.createElement(_elementor_ui.SvgIcon, _extends({ viewBox: "0 0 24 24" }, props), /*#__PURE__*/ react.createElement("path", { | |
| 2695 | - fillRule: "evenodd", | |
| 2696 | - clipRule: "evenodd", | |
| 2697 | - d: "M9.09013 3.69078C10.273 3.2008 11.5409 2.94861 12.8213 2.94861C14.1017 2.94861 15.3695 3.2008 16.5525 3.69078C17.7354 4.18077 18.8102 4.89895 19.7156 5.80432C20.621 6.70969 21.3391 7.78452 21.8291 8.96744C22.3191 10.1504 22.5713 11.4182 22.5713 12.6986C22.5713 13.979 22.3191 15.2468 21.8291 16.4298C21.3391 17.6127 20.621 18.6875 19.7156 19.5929C18.8102 20.4983 17.7354 21.2165 16.5525 21.7064C15.3695 22.1964 14.1017 22.4486 12.8213 22.4486C11.5409 22.4486 10.2731 22.1964 9.09013 21.7064C7.9072 21.2165 6.83237 20.4983 5.927 19.5929C5.02163 18.6875 4.30345 17.6127 3.81346 16.4298C3.32348 15.2468 3.07129 13.979 3.07129 12.6986C3.07129 11.4182 3.32348 10.1504 3.81346 8.96744C4.30345 7.78452 5.02163 6.70969 5.927 5.80432C6.83237 4.89895 7.9072 4.18077 9.09013 3.69078ZM12.8213 4.44861C11.7379 4.44861 10.6651 4.662 9.66415 5.0766C8.66321 5.4912 7.75374 6.09889 6.98766 6.86498C6.22157 7.63106 5.61388 8.54053 5.19928 9.54147C4.78468 10.5424 4.57129 11.6152 4.57129 12.6986C4.57129 13.782 4.78468 14.8548 5.19928 15.8557C5.61388 16.8567 6.22157 17.7662 6.98766 18.5322C7.75374 19.2983 8.66322 19.906 9.66415 20.3206C10.6651 20.7352 11.7379 20.9486 12.8213 20.9486C13.9047 20.9486 14.9775 20.7352 15.9784 20.3206C16.9794 19.906 17.8888 19.2983 18.6549 18.5322C19.421 17.7662 20.0287 16.8567 20.4433 15.8557C20.8579 14.8548 21.0713 13.782 21.0713 12.6986C21.0713 11.6152 20.8579 10.5424 20.4433 9.54147C20.0287 8.54053 19.421 7.63106 18.6549 6.86498C17.8888 6.09889 16.9794 5.4912 15.9784 5.0766C14.9775 4.662 13.9047 4.44861 12.8213 4.44861Z", | |
| 2698 | - fill: "#93003F" | |
| 2699 | - }), /*#__PURE__*/ react.createElement("path", { | |
| 2700 | - fillRule: "evenodd", | |
| 2701 | - clipRule: "evenodd", | |
| 2702 | - d: "M17.3213 9.69424C17.6142 9.98713 17.6142 10.462 17.3213 10.7549L12.3732 15.703C12.0803 15.9959 11.6054 15.9959 11.3125 15.703L8.83851 13.2289C8.54562 12.936 8.54562 12.4612 8.83851 12.1683C9.1314 11.8754 9.60628 11.8754 9.89917 12.1683L11.8429 14.112L16.2606 9.69424C16.5535 9.40135 17.0284 9.40135 17.3213 9.69424Z", | |
| 2703 | - fill: "#93003F" | |
| 2704 | - })); | |
| 2705 | - }; | |
| 2706 | 940 | |
| 2707 | -//#endregion | |
| 2708 | -//#region modules/home/assets/js/components/promotions/sidebar-default.js | |
| 2709 | - var SidebarDefault = function SidebarDefault(_ref) { | |
| 2710 | - var header = _ref.header; | |
| 2711 | - var cta = _ref.cta; | |
| 2712 | - var repeater = _ref.repeater; | |
| 2713 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 2714 | - elevation: 0, | |
| 2715 | - sx: { | |
| 2716 | - p: 3, | |
| 2717 | - borderRadius: 1 | |
| 2718 | - } | |
| 2719 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { | |
| 2720 | - gap: 1.5, | |
| 2721 | - alignItems: "center", | |
| 2722 | - textAlign: "center", | |
| 2723 | - sx: { pb: 4 } | |
| 2724 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 2725 | - component: "img", | |
| 2726 | - src: header.image | |
| 2727 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { variant: "h6" }, header.title), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 2728 | - variant: "body2", | |
| 2729 | - color: "text.secondary" | |
| 2730 | - }, header.description)), /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 2731 | - variant: "contained", | |
| 2732 | - size: "medium", | |
| 2733 | - color: "promotion", | |
| 2734 | - href: cta.url, | |
| 2735 | - onClick: function handleCtaClick() { | |
| 2736 | - trackPromoClick(header.title, cta.url, getHomeScreenPath("sidebar")); | |
| 2737 | - }, | |
| 2738 | - startIcon: /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 2739 | - component: "img", | |
| 2740 | - src: cta.image, | |
| 2741 | - sx: { width: "16px" } | |
| 2742 | - }), | |
| 2743 | - target: "_blank", | |
| 2744 | - sx: { maxWidth: "fit-content" } | |
| 2745 | - }, cta.label)), /*#__PURE__*/ react.default.createElement(_elementor_ui_List.default, { sx: { p: 0 } }, repeater.map(function(item, index) { | |
| 2746 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui_ListItem.default, { | |
| 2747 | - key: index, | |
| 2748 | - sx: { | |
| 2749 | - p: 0, | |
| 2750 | - gap: 1 | |
| 2751 | - } | |
| 2752 | - }, /*#__PURE__*/ react.default.createElement(SideBarCheckIcon, null), /*#__PURE__*/ react.default.createElement(_elementor_ui_ListItemText.default, { | |
| 2753 | - primaryTypographyProps: { variant: "body2" }, | |
| 2754 | - primary: item.title | |
| 2755 | - })); | |
| 2756 | - }))); | |
| 2757 | - }; | |
| 2758 | - SidebarDefault.propTypes = { | |
| 2759 | - header: import_prop_types.default.object.isRequired, | |
| 2760 | - cta: import_prop_types.default.object.isRequired, | |
| 2761 | - repeater: import_prop_types.default.array | |
| 2762 | - }; | |
| 941 | +var printWarning = function() {}; | |
| 2763 | 942 | |
| 2764 | -//#endregion | |
| 2765 | -//#region modules/home/assets/js/components/sidebar-promotion.js | |
| 2766 | - var SideBarPromotion = function SideBarPromotion(_ref) { | |
| 2767 | - var sideData = _ref.sideData; | |
| 2768 | - if ("banner" === sideData.type) return /*#__PURE__*/ react.default.createElement(SidebarBanner, sideData.data); | |
| 2769 | - return /*#__PURE__*/ react.default.createElement(SidebarDefault, sideData.data); | |
| 2770 | - }; | |
| 2771 | - SideBarPromotion.propTypes = { sideData: import_prop_types.default.object.isRequired }; | |
| 943 | +if (true) { | |
| 944 | + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js"); | |
| 945 | + var loggedTypeFailures = {}; | |
| 946 | + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js"); | |
| 2772 | 947 | |
| 2773 | -//#endregion | |
| 2774 | -//#region modules/home/assets/js/components/external-links-section.js | |
| 2775 | - var ExternalLinksSection = function ExternalLinksSection(_ref) { | |
| 2776 | - var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | |
| 2777 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 2778 | - elevation: 0, | |
| 2779 | - sx: { | |
| 2780 | - py: 3, | |
| 2781 | - px: { | |
| 2782 | - xs: 3, | |
| 2783 | - md: 4 | |
| 2784 | - }, | |
| 2785 | - borderRadius: 1, | |
| 2786 | - border: "1px solid rgba(0, 0, 0, 0.12)" | |
| 2787 | - } | |
| 2788 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_List.default, { sx: { | |
| 2789 | - display: "flex", | |
| 2790 | - flexDirection: { | |
| 2791 | - xs: "column", | |
| 2792 | - sm: "row" | |
| 2793 | - }, | |
| 2794 | - rowGap: 2, | |
| 2795 | - columnGap: 7.5, | |
| 2796 | - flexWrap: "wrap" | |
| 2797 | - } }, props.externalLinksData.map(function(item) { | |
| 2798 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 2799 | - key: item.label, | |
| 2800 | - sx: { | |
| 2801 | - display: "flex", | |
| 2802 | - alignItems: "center" | |
| 2803 | - } | |
| 2804 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_ListItemButton.default, { | |
| 2805 | - href: item.url, | |
| 2806 | - target: "_blank", | |
| 2807 | - sx: { | |
| 2808 | - "&:hover": { backgroundColor: "initial" }, | |
| 2809 | - gap: 2, | |
| 2810 | - px: 0, | |
| 2811 | - py: 0 | |
| 2812 | - } | |
| 2813 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 2814 | - component: "img", | |
| 2815 | - src: item.image, | |
| 2816 | - sx: { width: "38px" } | |
| 2817 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui_ListItemText.default, { | |
| 2818 | - sx: { color: "text.secondary" }, | |
| 2819 | - primary: item.label | |
| 2820 | - }))); | |
| 2821 | - }))); | |
| 2822 | - }; | |
| 2823 | - ExternalLinksSection.propTypes = { externalLinksData: import_prop_types.default.array.isRequired }; | |
| 948 | + printWarning = function(text) { | |
| 949 | + var message = 'Warning: ' + text; | |
| 950 | + if (typeof console !== 'undefined') { | |
| 951 | + console.error(message); | |
| 952 | + } | |
| 953 | + try { | |
| 954 | + // --- Welcome to debugging React --- | |
| 955 | + // This error was thrown as a convenience so that you can use this stack | |
| 956 | + // to find the callsite that caused this warning to fire. | |
| 957 | + throw new Error(message); | |
| 958 | + } catch (x) { /**/ } | |
| 959 | + }; | |
| 960 | +} | |
| 2824 | 961 | |
| 2825 | -//#endregion | |
| 2826 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js | |
| 2827 | - function _arrayWithHoles(r) { | |
| 2828 | - if (Array.isArray(r)) return r; | |
| 2829 | - } | |
| 962 | +/** | |
| 963 | + * Assert that the values match with the type specs. | |
| 964 | + * Error messages are memorized and will only be shown once. | |
| 965 | + * | |
| 966 | + * @param {object} typeSpecs Map of name to a ReactPropType | |
| 967 | + * @param {object} values Runtime values that need to be type-checked | |
| 968 | + * @param {string} location e.g. "prop", "context", "child context" | |
| 969 | + * @param {string} componentName Name of the component for error messages. | |
| 970 | + * @param {?Function} getStack Returns the component stack. | |
| 971 | + * @private | |
| 972 | + */ | |
| 973 | +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { | |
| 974 | + if (true) { | |
| 975 | + for (var typeSpecName in typeSpecs) { | |
| 976 | + if (has(typeSpecs, typeSpecName)) { | |
| 977 | + var error; | |
| 978 | + // Prop type validation may throw. In case they do, we don't want to | |
| 979 | + // fail the render phase where it didn't fail before. So we log it. | |
| 980 | + // After these have been cleaned up, we'll let them throw. | |
| 981 | + try { | |
| 982 | + // This is intentionally an invariant that gets caught. It's the same | |
| 983 | + // behavior as without this statement except with a better message. | |
| 984 | + if (typeof typeSpecs[typeSpecName] !== 'function') { | |
| 985 | + var err = Error( | |
| 986 | + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + | |
| 987 | + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + | |
| 988 | + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' | |
| 989 | + ); | |
| 990 | + err.name = 'Invariant Violation'; | |
| 991 | + throw err; | |
| 992 | + } | |
| 993 | + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | |
| 994 | + } catch (ex) { | |
| 995 | + error = ex; | |
| 996 | + } | |
| 997 | + if (error && !(error instanceof Error)) { | |
| 998 | + printWarning( | |
| 999 | + (componentName || 'React class') + ': type specification of ' + | |
| 1000 | + location + ' `' + typeSpecName + '` is invalid; the type checker ' + | |
| 1001 | + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + | |
| 1002 | + 'You may have forgotten to pass an argument to the type checker ' + | |
| 1003 | + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + | |
| 1004 | + 'shape all require an argument).' | |
| 1005 | + ); | |
| 1006 | + } | |
| 1007 | + if (error instanceof Error && !(error.message in loggedTypeFailures)) { | |
| 1008 | + // Only monitor this failure once because there tends to be a lot of the | |
| 1009 | + // same error. | |
| 1010 | + loggedTypeFailures[error.message] = true; | |
| 2830 | 1011 | |
| 2831 | -//#endregion | |
| 2832 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js | |
| 2833 | - function _iterableToArrayLimit(r, l) { | |
| 2834 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 2835 | - if (null != t) { | |
| 2836 | - var e; | |
| 2837 | - var n; | |
| 2838 | - var i; | |
| 2839 | - var u; | |
| 2840 | - var a = []; | |
| 2841 | - var f = !0; | |
| 2842 | - var o = !1; | |
| 2843 | - try { | |
| 2844 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 2845 | - if (Object(t) !== t) return; | |
| 2846 | - f = !1; | |
| 2847 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 2848 | - } catch (r) { | |
| 2849 | - o = !0, n = r; | |
| 2850 | - } finally { | |
| 2851 | - try { | |
| 2852 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 2853 | - } finally { | |
| 2854 | - if (o) throw n; | |
| 2855 | - } | |
| 2856 | - } | |
| 2857 | - return a; | |
| 2858 | - } | |
| 2859 | - } | |
| 1012 | + var stack = getStack ? getStack() : ''; | |
| 2860 | 1013 | |
| 2861 | -//#endregion | |
| 2862 | -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js | |
| 2863 | - function _arrayLikeToArray(r, a) { | |
| 2864 | - (null == a || a > r.length) && (a = r.length); | |
| 2865 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2866 | - return n; | |
| 2867 | - } | |
| 1014 | + printWarning( | |
| 1015 | + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') | |
| 1016 | + ); | |
| 1017 | + } | |
| 1018 | + } | |
| 1019 | + } | |
| 1020 | + } | |
| 1021 | +} | |
| 2868 | 1022 | |
| 2869 | -//#endregion | |
| 2870 | -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js | |
| 2871 | - function _unsupportedIterableToArray(r, a) { | |
| 2872 | - if (r) { | |
| 2873 | - if ("string" == typeof r) return _arrayLikeToArray(r, a); | |
| 2874 | - var t = {}.toString.call(r).slice(8, -1); | |
| 2875 | - 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; | |
| 2876 | - } | |
| 2877 | - } | |
| 1023 | +/** | |
| 1024 | + * Resets warning cache when testing. | |
| 1025 | + * | |
| 1026 | + * @private | |
| 1027 | + */ | |
| 1028 | +checkPropTypes.resetWarningCache = function() { | |
| 1029 | + if (true) { | |
| 1030 | + loggedTypeFailures = {}; | |
| 1031 | + } | |
| 1032 | +} | |
| 2878 | 1033 | |
| 2879 | -//#endregion | |
| 2880 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js | |
| 2881 | - function _nonIterableRest() { | |
| 2882 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 2883 | - } | |
| 1034 | +module.exports = checkPropTypes; | |
| 2884 | 1035 | |
| 2885 | -//#endregion | |
| 2886 | -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js | |
| 2887 | - function _slicedToArray(r, e) { | |
| 2888 | - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); | |
| 2889 | - } | |
| 2890 | 1036 | |
| 2891 | -//#endregion | |
| 2892 | -//#region modules/home/assets/js/components/create-new-page-dialog.js | |
| 2893 | - var CreateNewPageDialog = function CreateNewPageDialog(_ref) { | |
| 2894 | - var url = _ref.url; | |
| 2895 | - var isOpen = _ref.isOpen; | |
| 2896 | - var closedDialogCallback = _ref.closedDialogCallback; | |
| 2897 | - var _React$useState2 = _slicedToArray(react.default.useState(false), 2); | |
| 2898 | - var open = _React$useState2[0]; | |
| 2899 | - var setOpen = _React$useState2[1]; | |
| 2900 | - var _React$useState4 = _slicedToArray(react.default.useState(""), 2); | |
| 2901 | - var pageName = _React$useState4[0]; | |
| 2902 | - var setPageName = _React$useState4[1]; | |
| 2903 | - (0, react.useEffect)(function() { | |
| 2904 | - setOpen(isOpen); | |
| 2905 | - }, [isOpen]); | |
| 2906 | - var handleDialogClose = function handleDialogClose() { | |
| 2907 | - setOpen(false); | |
| 2908 | - closedDialogCallback(); | |
| 2909 | - }; | |
| 2910 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui_Dialog.default, { | |
| 2911 | - open, | |
| 2912 | - onClose: handleDialogClose, | |
| 2913 | - maxWidth: "xs", | |
| 2914 | - width: "xs", | |
| 2915 | - fullWidth: true | |
| 2916 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_DialogHeader.default, null, /*#__PURE__*/ react.default.createElement(_elementor_ui_DialogHeaderGroup.default, null, /*#__PURE__*/ react.default.createElement(_elementor_ui_DialogTitle.default, null, (0, _wordpress_i18n.__)("Name your page", "elementor")))), /*#__PURE__*/ react.default.createElement(_elementor_ui_DialogContent.default, { dividers: true }, /*#__PURE__*/ react.default.createElement(_elementor_ui_DialogContentText.default, { sx: { mb: 2 } }, (0, _wordpress_i18n.__)("To proceed, please name your first page,", "elementor"), /*#__PURE__*/ react.default.createElement("br", null), (0, _wordpress_i18n.__)("or rename it later.", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui_TextField.default, { | |
| 2917 | - onChange: function handleChange(event) { | |
| 2918 | - var urlParams = new URLSearchParams(); | |
| 2919 | - urlParams.append("post_data[post_title]", event.target.value); | |
| 2920 | - setPageName(urlParams.toString()); | |
| 2921 | - }, | |
| 2922 | - fullWidth: true, | |
| 2923 | - placeholder: (0, _wordpress_i18n.__)("New Page", "elementor") | |
| 2924 | - })), /*#__PURE__*/ react.default.createElement(_elementor_ui_DialogActions.default, null, /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 2925 | - onClick: handleDialogClose, | |
| 2926 | - color: "secondary" | |
| 2927 | - }, (0, _wordpress_i18n.__)("Cancel", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 2928 | - variant: "contained", | |
| 2929 | - href: pageName ? url + "&" + pageName : url, | |
| 2930 | - target: "_blank" | |
| 2931 | - }, (0, _wordpress_i18n.__)("Save", "elementor")))); | |
| 2932 | - }; | |
| 2933 | - CreateNewPageDialog.propTypes = { | |
| 2934 | - url: import_prop_types.default.string.isRequired, | |
| 2935 | - isOpen: import_prop_types.default.bool.isRequired, | |
| 2936 | - closedDialogCallback: import_prop_types.default.func.isRequired | |
| 2937 | - }; | |
| 1037 | +/***/ }), | |
| 2938 | 1038 | |
| 2939 | -//#endregion | |
| 2940 | -//#region modules/home/assets/js/components/get-started-list-item.js | |
| 2941 | - var GetStartedListItem = function GetStartedListItem(_ref) { | |
| 2942 | - var item = _ref.item; | |
| 2943 | - var image = _ref.image; | |
| 2944 | - var adminUrl = _ref.adminUrl; | |
| 2945 | - var url = item.is_relative_url ? adminUrl + item.url : item.url; | |
| 2946 | - var _React$useState2 = _slicedToArray(react.default.useState(false), 2); | |
| 2947 | - var isOpen = _React$useState2[0]; | |
| 2948 | - var openDialog = _React$useState2[1]; | |
| 2949 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui_ListItem.default, { | |
| 2950 | - alignItems: "flex-start", | |
| 2951 | - sx: { | |
| 2952 | - gap: 1, | |
| 2953 | - p: 0, | |
| 2954 | - maxWidth: "150px" | |
| 2955 | - } | |
| 2956 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_Box.default, { | |
| 2957 | - component: "img", | |
| 2958 | - src: image | |
| 2959 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui_Box.default, null, /*#__PURE__*/ react.default.createElement(_elementor_ui_ListItemText.default, { | |
| 2960 | - primary: item.title, | |
| 2961 | - primaryTypographyProps: { variant: "subtitle1" }, | |
| 2962 | - sx: { my: 0 } | |
| 2963 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui_Link.default, { | |
| 2964 | - variant: "body2", | |
| 2965 | - color: item.title_small_color ? item.title_small_color : "text.tertiary", | |
| 2966 | - underline: "hover", | |
| 2967 | - href: url, | |
| 2968 | - target: "_blank", | |
| 2969 | - onClick: function handleLinkClick(event) { | |
| 2970 | - if (!item.new_page) return; | |
| 2971 | - event.preventDefault(); | |
| 2972 | - openDialog(true); | |
| 2973 | - } | |
| 2974 | - }, item.title_small)), item.new_page && /*#__PURE__*/ react.default.createElement(CreateNewPageDialog, { | |
| 2975 | - url, | |
| 2976 | - isOpen, | |
| 2977 | - closedDialogCallback: function closedDialogCallback() { | |
| 2978 | - return openDialog(false); | |
| 2979 | - } | |
| 2980 | - })); | |
| 2981 | - }; | |
| 2982 | - GetStartedListItem.propTypes = { | |
| 2983 | - item: import_prop_types.default.shape({ | |
| 2984 | - title: import_prop_types.default.string.isRequired, | |
| 2985 | - title_small: import_prop_types.default.string.isRequired, | |
| 2986 | - url: import_prop_types.default.string.isRequired, | |
| 2987 | - new_page: import_prop_types.default.bool, | |
| 2988 | - is_relative_url: import_prop_types.default.bool, | |
| 2989 | - title_small_color: import_prop_types.default.string | |
| 2990 | - }).isRequired, | |
| 2991 | - adminUrl: import_prop_types.default.string.isRequired, | |
| 2992 | - image: import_prop_types.default.string | |
| 2993 | - }; | |
| 1039 | +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js": | |
| 1040 | +/*!*************************************************************!*\ | |
| 1041 | + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***! | |
| 1042 | + \*************************************************************/ | |
| 1043 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2994 | 1044 | |
| 2995 | -//#endregion | |
| 2996 | -//#region modules/home/assets/js/components/get-started-section.js | |
| 2997 | - var GetStarted = function GetStarted(_ref) { | |
| 2998 | - var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | |
| 2999 | - var mdGridColumns = props.homeScreenData.hasOwnProperty("sidebar_promotion_variants") ? "repeat(3, 1fr)" : "repeat(4, 1fr)"; | |
| 3000 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 3001 | - elevation: 0, | |
| 3002 | - sx: { | |
| 3003 | - py: 3, | |
| 3004 | - px: { | |
| 3005 | - xs: 3, | |
| 3006 | - md: 4 | |
| 3007 | - }, | |
| 3008 | - display: "flex", | |
| 3009 | - flexDirection: "column", | |
| 3010 | - gap: 2, | |
| 3011 | - borderRadius: 1, | |
| 3012 | - border: "1px solid rgba(0, 0, 0, 0.12)" | |
| 3013 | - } | |
| 3014 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { variant: "h6" }, props.getStartedData.header.title), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 3015 | - variant: "body2", | |
| 3016 | - color: "text.secondary" | |
| 3017 | - }, props.getStartedData.header.description)), /*#__PURE__*/ react.default.createElement(_elementor_ui_List.default, { sx: { | |
| 3018 | - display: "grid", | |
| 3019 | - gridTemplateColumns: { | |
| 3020 | - xl: "repeat(4, 1fr)", | |
| 3021 | - md: mdGridColumns, | |
| 3022 | - xs: "repeat(2, 1fr)" | |
| 3023 | - }, | |
| 3024 | - columnGap: { | |
| 3025 | - md: 9, | |
| 3026 | - xs: 7 | |
| 3027 | - }, | |
| 3028 | - rowGap: 3 | |
| 3029 | - } }, props.getStartedData.repeater.map(function(item) { | |
| 3030 | - return /*#__PURE__*/ react.default.createElement(GetStartedListItem, { | |
| 3031 | - key: item.title, | |
| 3032 | - item, | |
| 3033 | - image: item.image, | |
| 3034 | - adminUrl: props.adminUrl | |
| 3035 | - }); | |
| 3036 | - }))); | |
| 3037 | - }; | |
| 3038 | - GetStarted.propTypes = { | |
| 3039 | - getStartedData: import_prop_types.default.object.isRequired, | |
| 3040 | - adminUrl: import_prop_types.default.string.isRequired, | |
| 3041 | - homeScreenData: import_prop_types.default.object.isRequired | |
| 3042 | - }; | |
| 1045 | +"use strict"; | |
| 1046 | +/** | |
| 1047 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 1048 | + * | |
| 1049 | + * This source code is licensed under the MIT license found in the | |
| 1050 | + * LICENSE file in the root directory of this source tree. | |
| 1051 | + */ | |
| 3043 | 1052 | |
| 3044 | -//#endregion | |
| 3045 | -//#region modules/home/assets/js/components/create-with-ai-banner.js | |
| 3046 | - var CreateWithAIBanner = function CreateWithAIBanner(_ref) { | |
| 3047 | - var createWithAIData = _extends({}, (_objectDestructuringEmpty(_ref), _ref)).createWithAIData; | |
| 3048 | - var _useState2 = _slicedToArray((0, react.useState)(""), 2); | |
| 3049 | - var inputValue = _useState2[0]; | |
| 3050 | - var setInputValue = _useState2[1]; | |
| 3051 | - if (!createWithAIData) return null; | |
| 3052 | - var title = createWithAIData.title; | |
| 3053 | - var description = createWithAIData.description; | |
| 3054 | - var inputPlaceholder = createWithAIData.input_placeholder; | |
| 3055 | - var buttonTitle = createWithAIData.button_title; | |
| 3056 | - var buttonCtaUrl = createWithAIData.button_cta_url; | |
| 3057 | - var backgroundImage = createWithAIData.background_image; | |
| 3058 | - var utmSource = createWithAIData.utm_source; | |
| 3059 | - var utmMedium = createWithAIData.utm_medium; | |
| 3060 | - var utmCampaign = createWithAIData.utm_campaign; | |
| 3061 | - var handleInputChange = function handleInputChange(event) { | |
| 3062 | - setInputValue(event.target.value); | |
| 3063 | - }; | |
| 3064 | - var getButtonHref = function getButtonHref() { | |
| 3065 | - if (!inputValue) return buttonCtaUrl; | |
| 3066 | - var url = new URL(buttonCtaUrl); | |
| 3067 | - url.searchParams.append("prompt", inputValue); | |
| 3068 | - url.searchParams.append("utm_source", utmSource); | |
| 3069 | - url.searchParams.append("utm_medium", utmMedium); | |
| 3070 | - url.searchParams.append("utm_campaign", utmCampaign); | |
| 3071 | - return url.toString(); | |
| 3072 | - }; | |
| 3073 | - var handleNavigation = function handleNavigation() { | |
| 3074 | - if (!inputValue) return; | |
| 3075 | - var destination = getButtonHref(); | |
| 3076 | - trackPromoClick(title, destination, getHomeScreenPath("ai_banner")); | |
| 3077 | - window.open(destination, "_blank"); | |
| 3078 | - setInputValue(""); | |
| 3079 | - }; | |
| 3080 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 3081 | - elevation: 0, | |
| 3082 | - sx: { | |
| 3083 | - display: "flex", | |
| 3084 | - flexDirection: "column", | |
| 3085 | - py: 3, | |
| 3086 | - px: { | |
| 3087 | - xs: 3, | |
| 3088 | - md: 4 | |
| 3089 | - }, | |
| 3090 | - gap: 2, | |
| 3091 | - backgroundImage: "url(".concat(backgroundImage, ")"), | |
| 3092 | - backgroundSize: "cover", | |
| 3093 | - backgroundPosition: "right center", | |
| 3094 | - backgroundRepeat: "no-repeat", | |
| 3095 | - borderRadius: 1, | |
| 3096 | - border: "1px solid rgba(0, 0, 0, 0.12)" | |
| 3097 | - } | |
| 3098 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { | |
| 3099 | - gap: 1, | |
| 3100 | - justifyContent: "center" | |
| 3101 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui_Typography.default, { variant: "h6" }, title), /*#__PURE__*/ react.default.createElement(_elementor_ui_Typography.default, { | |
| 3102 | - variant: "body2", | |
| 3103 | - color: "secondary" | |
| 3104 | - }, description)), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 3105 | - display: "flex", | |
| 3106 | - flexDirection: { | |
| 3107 | - xs: "column", | |
| 3108 | - sm: "row" | |
| 3109 | - }, | |
| 3110 | - gap: 2, | |
| 3111 | - mt: 1 | |
| 3112 | - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.TextField, { | |
| 3113 | - fullWidth: true, | |
| 3114 | - placeholder: inputPlaceholder, | |
| 3115 | - variant: "outlined", | |
| 3116 | - color: "secondary", | |
| 3117 | - size: "small", | |
| 3118 | - sx: { flex: 1 }, | |
| 3119 | - value: inputValue, | |
| 3120 | - onChange: handleInputChange, | |
| 3121 | - onKeyDown: function handleKeyDown(event) { | |
| 3122 | - if ("Enter" === event.key) { | |
| 3123 | - event.preventDefault(); | |
| 3124 | - handleNavigation(); | |
| 3125 | - } | |
| 3126 | - } | |
| 3127 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui_Button.default, { | |
| 3128 | - variant: "outlined", | |
| 3129 | - size: "small", | |
| 3130 | - color: "secondary", | |
| 3131 | - startIcon: /*#__PURE__*/ react.default.createElement("span", { className: "eicon-ai" }), | |
| 3132 | - onClick: handleNavigation | |
| 3133 | - }, buttonTitle))); | |
| 3134 | - }; | |
| 3135 | - CreateWithAIBanner.propTypes = { createWithAIData: import_prop_types.default.object }; | |
| 3136 | 1053 | |
| 3137 | -//#endregion | |
| 3138 | -//#region modules/home/assets/js/components/load-fallback-message.js | |
| 3139 | - var LoadFallbackMessage = function LoadFallbackMessage() { | |
| 3140 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Container, { | |
| 3141 | - disableGutters: true, | |
| 3142 | - maxWidth: "lg", | |
| 3143 | - sx: { | |
| 3144 | - px: 4, | |
| 3145 | - pt: 4 | |
| 3146 | - } | |
| 3147 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 3148 | - elevation: 0, | |
| 3149 | - sx: { | |
| 3150 | - py: 4, | |
| 3151 | - px: 4, | |
| 3152 | - borderRadius: 1, | |
| 3153 | - border: 1, | |
| 3154 | - borderColor: "divider", | |
| 3155 | - textAlign: "center" | |
| 3156 | - } | |
| 3157 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 3158 | - variant: "body1", | |
| 3159 | - color: "text.secondary" | |
| 3160 | - }, (0, _wordpress_i18n.__)("We couldn't load this content right now. Please try again later.", "elementor"))))); | |
| 3161 | - }; | |
| 3162 | 1054 | |
| 3163 | -//#endregion | |
| 3164 | -//#region modules/home/assets/js/components/home-screen.js | |
| 3165 | - var EditorScreen = function EditorScreen(props) { | |
| 3166 | - var _props$homeScreenData; | |
| 3167 | - if (!((_props$homeScreenData = props.homeScreenData) !== null && _props$homeScreenData !== void 0 && _props$homeScreenData.get_started)) return /*#__PURE__*/ react.default.createElement(LoadFallbackMessage, null); | |
| 3168 | - var hasSidebarPromotion = props.homeScreenData.hasOwnProperty("sidebar_promotion_variants"); | |
| 3169 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Container, { | |
| 3170 | - disableGutters: true, | |
| 3171 | - maxWidth: "lg", | |
| 3172 | - sx: { | |
| 3173 | - display: "flex", | |
| 3174 | - flexDirection: "column", | |
| 3175 | - gap: 2.5, | |
| 3176 | - px: { | |
| 3177 | - xs: 1.5, | |
| 3178 | - md: 4 | |
| 3179 | - } | |
| 3180 | - } | |
| 3181 | - }, /*#__PURE__*/ react.default.createElement(HeaderSection, { editWebsiteUrl: props.homeScreenData.edit_website_url }), props.homeScreenData.top_with_licences && /*#__PURE__*/ react.default.createElement(TopSection, { | |
| 3182 | - topData: props.homeScreenData.top_with_licences, | |
| 3183 | - buttonCtaUrl: props.homeScreenData.button_cta_url | |
| 3184 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 3185 | - display: "flex", | |
| 3186 | - flexDirection: { | |
| 3187 | - xs: "column", | |
| 3188 | - sm: "row" | |
| 3189 | - }, | |
| 3190 | - justifyContent: "space-between", | |
| 3191 | - gap: 2.5 | |
| 3192 | - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { sx: { | |
| 3193 | - flex: 1, | |
| 3194 | - gap: 2.5 | |
| 3195 | - } }, props.homeScreenData.create_with_ai && /*#__PURE__*/ react.default.createElement(CreateWithAIBanner, { createWithAIData: props.homeScreenData.create_with_ai }), /*#__PURE__*/ react.default.createElement(GetStarted, { | |
| 3196 | - getStartedData: props.homeScreenData.get_started, | |
| 3197 | - adminUrl: props.adminUrl, | |
| 3198 | - homeScreenData: props.homeScreenData | |
| 3199 | - }), /*#__PURE__*/ react.default.createElement(ExternalLinksSection, { externalLinksData: props.homeScreenData.external_links })), hasSidebarPromotion && /*#__PURE__*/ react.default.createElement(_elementor_ui.Container, { | |
| 3200 | - maxWidth: "xs", | |
| 3201 | - disableGutters: true, | |
| 3202 | - sx: { | |
| 3203 | - width: { sm: "305px" }, | |
| 3204 | - display: "flex", | |
| 3205 | - flexDirection: "column", | |
| 3206 | - gap: 2.5 | |
| 3207 | - } | |
| 3208 | - }, /*#__PURE__*/ react.default.createElement(SideBarPromotion, { sideData: props.homeScreenData.sidebar_promotion_variants }))))); | |
| 3209 | - }; | |
| 3210 | - EditorScreen.propTypes = { | |
| 3211 | - homeScreenData: import_prop_types.default.object, | |
| 3212 | - adminUrl: import_prop_types.default.string | |
| 3213 | - }; | |
| 1055 | +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js"); | |
| 1056 | +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js"); | |
| 3214 | 1057 | |
| 3215 | -//#endregion | |
| 3216 | -//#region modules/home/assets/js/app.js | |
| 3217 | - var App = function App(props) { | |
| 3218 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: props.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.LocalizationProvider, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { colorScheme: "light" }, /*#__PURE__*/ react.default.createElement(EditorScreen, { | |
| 3219 | - homeScreenData: props.homeScreenData, | |
| 3220 | - adminUrl: props.adminUrl | |
| 3221 | - })))); | |
| 3222 | - }; | |
| 3223 | - var isRTL = elementorCommon.config.isRTL; | |
| 3224 | - var adminUrl = elementorAppConfig.admin_url; | |
| 3225 | - var rootElement = document.querySelector("#e-home-screen"); | |
| 3226 | - App.propTypes = { | |
| 3227 | - isRTL: import_prop_types.default.bool, | |
| 3228 | - adminUrl: import_prop_types.default.string, | |
| 3229 | - homeScreenData: import_prop_types.default.object | |
| 3230 | - }; | |
| 3231 | - react_default.render(/*#__PURE__*/ react.default.createElement(App, { | |
| 3232 | - isRTL, | |
| 3233 | - homeScreenData: elementorHomeScreenData, | |
| 3234 | - adminUrl | |
| 3235 | - }), rootElement); | |
| 1058 | +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js"); | |
| 1059 | +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js"); | |
| 1060 | +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js"); | |
| 3236 | 1061 | |
| 3237 | -//#endregion | |
| 3238 | -})(React, ReactDOM, elementorV2.ui, elementorV2.ui['Typography'], elementorV2.ui['Button'], wp.i18n, elementorV2.ui['Link'], elementorV2.ui['List'], elementorV2.ui['ListItem'], elementorV2.ui['ListItemText'], elementorV2.ui['ListItemButton'], elementorV2.ui['Box'], elementorV2.ui['DialogHeader'], elementorV2.ui['DialogHeaderGroup'], elementorV2.ui['DialogTitle'], elementorV2.ui['DialogContent'], elementorV2.ui['DialogContentText'], elementorV2.ui['TextField'], elementorV2.ui['DialogActions'], elementorV2.ui['Dialog']); | |
| 1062 | +var printWarning = function() {}; | |
| 1063 | + | |
| 1064 | +if (true) { | |
| 1065 | + printWarning = function(text) { | |
| 1066 | + var message = 'Warning: ' + text; | |
| 1067 | + if (typeof console !== 'undefined') { | |
| 1068 | + console.error(message); | |
| 1069 | + } | |
| 1070 | + try { | |
| 1071 | + // --- Welcome to debugging React --- | |
| 1072 | + // This error was thrown as a convenience so that you can use this stack | |
| 1073 | + // to find the callsite that caused this warning to fire. | |
| 1074 | + throw new Error(message); | |
| 1075 | + } catch (x) {} | |
| 1076 | + }; | |
| 1077 | +} | |
| 1078 | + | |
| 1079 | +function emptyFunctionThatReturnsNull() { | |
| 1080 | + return null; | |
| 1081 | +} | |
| 1082 | + | |
| 1083 | +module.exports = function(isValidElement, throwOnDirectAccess) { | |
| 1084 | + /* global Symbol */ | |
| 1085 | + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; | |
| 1086 | + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. | |
| 1087 | + | |
| 1088 | + /** | |
| 1089 | + * Returns the iterator method function contained on the iterable object. | |
| 1090 | + * | |
| 1091 | + * Be sure to invoke the function with the iterable as context: | |
| 1092 | + * | |
| 1093 | + * var iteratorFn = getIteratorFn(myIterable); | |
| 1094 | + * if (iteratorFn) { | |
| 1095 | + * var iterator = iteratorFn.call(myIterable); | |
| 1096 | + * ... | |
| 1097 | + * } | |
| 1098 | + * | |
| 1099 | + * @param {?object} maybeIterable | |
| 1100 | + * @return {?function} | |
| 1101 | + */ | |
| 1102 | + function getIteratorFn(maybeIterable) { | |
| 1103 | + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); | |
| 1104 | + if (typeof iteratorFn === 'function') { | |
| 1105 | + return iteratorFn; | |
| 1106 | + } | |
| 1107 | + } | |
| 1108 | + | |
| 1109 | + /** | |
| 1110 | + * Collection of methods that allow declaration and validation of props that are | |
| 1111 | + * supplied to React components. Example usage: | |
| 1112 | + * | |
| 1113 | + * var Props = require('ReactPropTypes'); | |
| 1114 | + * var MyArticle = React.createClass({ | |
| 1115 | + * propTypes: { | |
| 1116 | + * // An optional string prop named "description". | |
| 1117 | + * description: Props.string, | |
| 1118 | + * | |
| 1119 | + * // A required enum prop named "category". | |
| 1120 | + * category: Props.oneOf(['News','Photos']).isRequired, | |
| 1121 | + * | |
| 1122 | + * // A prop named "dialog" that requires an instance of Dialog. | |
| 1123 | + * dialog: Props.instanceOf(Dialog).isRequired | |
| 1124 | + * }, | |
| 1125 | + * render: function() { ... } | |
| 1126 | + * }); | |
| 1127 | + * | |
| 1128 | + * A more formal specification of how these methods are used: | |
| 1129 | + * | |
| 1130 | + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) | |
| 1131 | + * decl := ReactPropTypes.{type}(.isRequired)? | |
| 1132 | + * | |
| 1133 | + * Each and every declaration produces a function with the same signature. This | |
| 1134 | + * allows the creation of custom validation functions. For example: | |
| 1135 | + * | |
| 1136 | + * var MyLink = React.createClass({ | |
| 1137 | + * propTypes: { | |
| 1138 | + * // An optional string or URI prop named "href". | |
| 1139 | + * href: function(props, propName, componentName) { | |
| 1140 | + * var propValue = props[propName]; | |
| 1141 | + * if (propValue != null && typeof propValue !== 'string' && | |
| 1142 | + * !(propValue instanceof URI)) { | |
| 1143 | + * return new Error( | |
| 1144 | + * 'Expected a string or an URI for ' + propName + ' in ' + | |
| 1145 | + * componentName | |
| 1146 | + * ); | |
| 1147 | + * } | |
| 1148 | + * } | |
| 1149 | + * }, | |
| 1150 | + * render: function() {...} | |
| 1151 | + * }); | |
| 1152 | + * | |
| 1153 | + * @internal | |
| 1154 | + */ | |
| 1155 | + | |
| 1156 | + var ANONYMOUS = '<<anonymous>>'; | |
| 1157 | + | |
| 1158 | + // Important! | |
| 1159 | + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. | |
| 1160 | + var ReactPropTypes = { | |
| 1161 | + array: createPrimitiveTypeChecker('array'), | |
| 1162 | + bigint: createPrimitiveTypeChecker('bigint'), | |
| 1163 | + bool: createPrimitiveTypeChecker('boolean'), | |
| 1164 | + func: createPrimitiveTypeChecker('function'), | |
| 1165 | + number: createPrimitiveTypeChecker('number'), | |
| 1166 | + object: createPrimitiveTypeChecker('object'), | |
| 1167 | + string: createPrimitiveTypeChecker('string'), | |
| 1168 | + symbol: createPrimitiveTypeChecker('symbol'), | |
| 1169 | + | |
| 1170 | + any: createAnyTypeChecker(), | |
| 1171 | + arrayOf: createArrayOfTypeChecker, | |
| 1172 | + element: createElementTypeChecker(), | |
| 1173 | + elementType: createElementTypeTypeChecker(), | |
| 1174 | + instanceOf: createInstanceTypeChecker, | |
| 1175 | + node: createNodeChecker(), | |
| 1176 | + objectOf: createObjectOfTypeChecker, | |
| 1177 | + oneOf: createEnumTypeChecker, | |
| 1178 | + oneOfType: createUnionTypeChecker, | |
| 1179 | + shape: createShapeTypeChecker, | |
| 1180 | + exact: createStrictShapeTypeChecker, | |
| 1181 | + }; | |
| 1182 | + | |
| 1183 | + /** | |
| 1184 | + * inlined Object.is polyfill to avoid requiring consumers ship their own | |
| 1185 | + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 1186 | + */ | |
| 1187 | + /*eslint-disable no-self-compare*/ | |
| 1188 | + function is(x, y) { | |
| 1189 | + // SameValue algorithm | |
| 1190 | + if (x === y) { | |
| 1191 | + // Steps 1-5, 7-10 | |
| 1192 | + // Steps 6.b-6.e: +0 != -0 | |
| 1193 | + return x !== 0 || 1 / x === 1 / y; | |
| 1194 | + } else { | |
| 1195 | + // Step 6.a: NaN == NaN | |
| 1196 | + return x !== x && y !== y; | |
| 1197 | + } | |
| 1198 | + } | |
| 1199 | + /*eslint-enable no-self-compare*/ | |
| 1200 | + | |
| 1201 | + /** | |
| 1202 | + * We use an Error-like object for backward compatibility as people may call | |
| 1203 | + * PropTypes directly and inspect their output. However, we don't use real | |
| 1204 | + * Errors anymore. We don't inspect their stack anyway, and creating them | |
| 1205 | + * is prohibitively expensive if they are created too often, such as what | |
| 1206 | + * happens in oneOfType() for any type before the one that matched. | |
| 1207 | + */ | |
| 1208 | + function PropTypeError(message, data) { | |
| 1209 | + this.message = message; | |
| 1210 | + this.data = data && typeof data === 'object' ? data: {}; | |
| 1211 | + this.stack = ''; | |
| 1212 | + } | |
| 1213 | + // Make `instanceof Error` still work for returned errors. | |
| 1214 | + PropTypeError.prototype = Error.prototype; | |
| 1215 | + | |
| 1216 | + function createChainableTypeChecker(validate) { | |
| 1217 | + if (true) { | |
| 1218 | + var manualPropTypeCallCache = {}; | |
| 1219 | + var manualPropTypeWarningCount = 0; | |
| 1220 | + } | |
| 1221 | + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { | |
| 1222 | + componentName = componentName || ANONYMOUS; | |
| 1223 | + propFullName = propFullName || propName; | |
| 1224 | + | |
| 1225 | + if (secret !== ReactPropTypesSecret) { | |
| 1226 | + if (throwOnDirectAccess) { | |
| 1227 | + // New behavior only for users of `prop-types` package | |
| 1228 | + var err = new Error( | |
| 1229 | + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + | |
| 1230 | + 'Use `PropTypes.checkPropTypes()` to call them. ' + | |
| 1231 | + 'Read more at http://fb.me/use-check-prop-types' | |
| 1232 | + ); | |
| 1233 | + err.name = 'Invariant Violation'; | |
| 1234 | + throw err; | |
| 1235 | + } else if ( true && typeof console !== 'undefined') { | |
| 1236 | + // Old behavior for people using React.PropTypes | |
| 1237 | + var cacheKey = componentName + ':' + propName; | |
| 1238 | + if ( | |
| 1239 | + !manualPropTypeCallCache[cacheKey] && | |
| 1240 | + // Avoid spamming the console because they are often not actionable except for lib authors | |
| 1241 | + manualPropTypeWarningCount < 3 | |
| 1242 | + ) { | |
| 1243 | + printWarning( | |
| 1244 | + 'You are manually calling a React.PropTypes validation ' + | |
| 1245 | + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + | |
| 1246 | + 'and will throw in the standalone `prop-types` package. ' + | |
| 1247 | + 'You may be seeing this warning due to a third-party PropTypes ' + | |
| 1248 | + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' | |
| 1249 | + ); | |
| 1250 | + manualPropTypeCallCache[cacheKey] = true; | |
| 1251 | + manualPropTypeWarningCount++; | |
| 1252 | + } | |
| 1253 | + } | |
| 1254 | + } | |
| 1255 | + if (props[propName] == null) { | |
| 1256 | + if (isRequired) { | |
| 1257 | + if (props[propName] === null) { | |
| 1258 | + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); | |
| 1259 | + } | |
| 1260 | + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); | |
| 1261 | + } | |
| 1262 | + return null; | |
| 1263 | + } else { | |
| 1264 | + return validate(props, propName, componentName, location, propFullName); | |
| 1265 | + } | |
| 1266 | + } | |
| 1267 | + | |
| 1268 | + var chainedCheckType = checkType.bind(null, false); | |
| 1269 | + chainedCheckType.isRequired = checkType.bind(null, true); | |
| 1270 | + | |
| 1271 | + return chainedCheckType; | |
| 1272 | + } | |
| 1273 | + | |
| 1274 | + function createPrimitiveTypeChecker(expectedType) { | |
| 1275 | + function validate(props, propName, componentName, location, propFullName, secret) { | |
| 1276 | + var propValue = props[propName]; | |
| 1277 | + var propType = getPropType(propValue); | |
| 1278 | + if (propType !== expectedType) { | |
| 1279 | + // `propValue` being instance of, say, date/regexp, pass the 'object' | |
| 1280 | + // check, but we can offer a more precise error message here rather than | |
| 1281 | + // 'of type `object`'. | |
| 1282 | + var preciseType = getPreciseType(propValue); | |
| 1283 | + | |
| 1284 | + return new PropTypeError( | |
| 1285 | + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), | |
| 1286 | + {expectedType: expectedType} | |
| 1287 | + ); | |
| 1288 | + } | |
| 1289 | + return null; | |
| 1290 | + } | |
| 1291 | + return createChainableTypeChecker(validate); | |
| 1292 | + } | |
| 1293 | + | |
| 1294 | + function createAnyTypeChecker() { | |
| 1295 | + return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 1296 | + } | |
| 1297 | + | |
| 1298 | + function createArrayOfTypeChecker(typeChecker) { | |
| 1299 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1300 | + if (typeof typeChecker !== 'function') { | |
| 1301 | + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); | |
| 1302 | + } | |
| 1303 | + var propValue = props[propName]; | |
| 1304 | + if (!Array.isArray(propValue)) { | |
| 1305 | + var propType = getPropType(propValue); | |
| 1306 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); | |
| 1307 | + } | |
| 1308 | + for (var i = 0; i < propValue.length; i++) { | |
| 1309 | + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); | |
| 1310 | + if (error instanceof Error) { | |
| 1311 | + return error; | |
| 1312 | + } | |
| 1313 | + } | |
| 1314 | + return null; | |
| 1315 | + } | |
| 1316 | + return createChainableTypeChecker(validate); | |
| 1317 | + } | |
| 1318 | + | |
| 1319 | + function createElementTypeChecker() { | |
| 1320 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1321 | + var propValue = props[propName]; | |
| 1322 | + if (!isValidElement(propValue)) { | |
| 1323 | + var propType = getPropType(propValue); | |
| 1324 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); | |
| 1325 | + } | |
| 1326 | + return null; | |
| 1327 | + } | |
| 1328 | + return createChainableTypeChecker(validate); | |
| 1329 | + } | |
| 1330 | + | |
| 1331 | + function createElementTypeTypeChecker() { | |
| 1332 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1333 | + var propValue = props[propName]; | |
| 1334 | + if (!ReactIs.isValidElementType(propValue)) { | |
| 1335 | + var propType = getPropType(propValue); | |
| 1336 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); | |
| 1337 | + } | |
| 1338 | + return null; | |
| 1339 | + } | |
| 1340 | + return createChainableTypeChecker(validate); | |
| 1341 | + } | |
| 1342 | + | |
| 1343 | + function createInstanceTypeChecker(expectedClass) { | |
| 1344 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1345 | + if (!(props[propName] instanceof expectedClass)) { | |
| 1346 | + var expectedClassName = expectedClass.name || ANONYMOUS; | |
| 1347 | + var actualClassName = getClassName(props[propName]); | |
| 1348 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); | |
| 1349 | + } | |
| 1350 | + return null; | |
| 1351 | + } | |
| 1352 | + return createChainableTypeChecker(validate); | |
| 1353 | + } | |
| 1354 | + | |
| 1355 | + function createEnumTypeChecker(expectedValues) { | |
| 1356 | + if (!Array.isArray(expectedValues)) { | |
| 1357 | + if (true) { | |
| 1358 | + if (arguments.length > 1) { | |
| 1359 | + printWarning( | |
| 1360 | + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + | |
| 1361 | + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' | |
| 1362 | + ); | |
| 1363 | + } else { | |
| 1364 | + printWarning('Invalid argument supplied to oneOf, expected an array.'); | |
| 1365 | + } | |
| 1366 | + } | |
| 1367 | + return emptyFunctionThatReturnsNull; | |
| 1368 | + } | |
| 1369 | + | |
| 1370 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1371 | + var propValue = props[propName]; | |
| 1372 | + for (var i = 0; i < expectedValues.length; i++) { | |
| 1373 | + if (is(propValue, expectedValues[i])) { | |
| 1374 | + return null; | |
| 1375 | + } | |
| 1376 | + } | |
| 1377 | + | |
| 1378 | + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { | |
| 1379 | + var type = getPreciseType(value); | |
| 1380 | + if (type === 'symbol') { | |
| 1381 | + return String(value); | |
| 1382 | + } | |
| 1383 | + return value; | |
| 1384 | + }); | |
| 1385 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); | |
| 1386 | + } | |
| 1387 | + return createChainableTypeChecker(validate); | |
| 1388 | + } | |
| 1389 | + | |
| 1390 | + function createObjectOfTypeChecker(typeChecker) { | |
| 1391 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1392 | + if (typeof typeChecker !== 'function') { | |
| 1393 | + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); | |
| 1394 | + } | |
| 1395 | + var propValue = props[propName]; | |
| 1396 | + var propType = getPropType(propValue); | |
| 1397 | + if (propType !== 'object') { | |
| 1398 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); | |
| 1399 | + } | |
| 1400 | + for (var key in propValue) { | |
| 1401 | + if (has(propValue, key)) { | |
| 1402 | + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 1403 | + if (error instanceof Error) { | |
| 1404 | + return error; | |
| 1405 | + } | |
| 1406 | + } | |
| 1407 | + } | |
| 1408 | + return null; | |
| 1409 | + } | |
| 1410 | + return createChainableTypeChecker(validate); | |
| 1411 | + } | |
| 1412 | + | |
| 1413 | + function createUnionTypeChecker(arrayOfTypeCheckers) { | |
| 1414 | + if (!Array.isArray(arrayOfTypeCheckers)) { | |
| 1415 | + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0; | |
| 1416 | + return emptyFunctionThatReturnsNull; | |
| 1417 | + } | |
| 1418 | + | |
| 1419 | + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 1420 | + var checker = arrayOfTypeCheckers[i]; | |
| 1421 | + if (typeof checker !== 'function') { | |
| 1422 | + printWarning( | |
| 1423 | + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + | |
| 1424 | + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' | |
| 1425 | + ); | |
| 1426 | + return emptyFunctionThatReturnsNull; | |
| 1427 | + } | |
| 1428 | + } | |
| 1429 | + | |
| 1430 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1431 | + var expectedTypes = []; | |
| 1432 | + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 1433 | + var checker = arrayOfTypeCheckers[i]; | |
| 1434 | + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); | |
| 1435 | + if (checkerResult == null) { | |
| 1436 | + return null; | |
| 1437 | + } | |
| 1438 | + if (checkerResult.data && has(checkerResult.data, 'expectedType')) { | |
| 1439 | + expectedTypes.push(checkerResult.data.expectedType); | |
| 1440 | + } | |
| 1441 | + } | |
| 1442 | + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; | |
| 1443 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); | |
| 1444 | + } | |
| 1445 | + return createChainableTypeChecker(validate); | |
| 1446 | + } | |
| 1447 | + | |
| 1448 | + function createNodeChecker() { | |
| 1449 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1450 | + if (!isNode(props[propName])) { | |
| 1451 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); | |
| 1452 | + } | |
| 1453 | + return null; | |
| 1454 | + } | |
| 1455 | + return createChainableTypeChecker(validate); | |
| 1456 | + } | |
| 1457 | + | |
| 1458 | + function invalidValidatorError(componentName, location, propFullName, key, type) { | |
| 1459 | + return new PropTypeError( | |
| 1460 | + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + | |
| 1461 | + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' | |
| 1462 | + ); | |
| 1463 | + } | |
| 1464 | + | |
| 1465 | + function createShapeTypeChecker(shapeTypes) { | |
| 1466 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1467 | + var propValue = props[propName]; | |
| 1468 | + var propType = getPropType(propValue); | |
| 1469 | + if (propType !== 'object') { | |
| 1470 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); | |
| 1471 | + } | |
| 1472 | + for (var key in shapeTypes) { | |
| 1473 | + var checker = shapeTypes[key]; | |
| 1474 | + if (typeof checker !== 'function') { | |
| 1475 | + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 1476 | + } | |
| 1477 | + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 1478 | + if (error) { | |
| 1479 | + return error; | |
| 1480 | + } | |
| 1481 | + } | |
| 1482 | + return null; | |
| 1483 | + } | |
| 1484 | + return createChainableTypeChecker(validate); | |
| 1485 | + } | |
| 1486 | + | |
| 1487 | + function createStrictShapeTypeChecker(shapeTypes) { | |
| 1488 | + function validate(props, propName, componentName, location, propFullName) { | |
| 1489 | + var propValue = props[propName]; | |
| 1490 | + var propType = getPropType(propValue); | |
| 1491 | + if (propType !== 'object') { | |
| 1492 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); | |
| 1493 | + } | |
| 1494 | + // We need to check all keys in case some are required but missing from props. | |
| 1495 | + var allKeys = assign({}, props[propName], shapeTypes); | |
| 1496 | + for (var key in allKeys) { | |
| 1497 | + var checker = shapeTypes[key]; | |
| 1498 | + if (has(shapeTypes, key) && typeof checker !== 'function') { | |
| 1499 | + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 1500 | + } | |
| 1501 | + if (!checker) { | |
| 1502 | + return new PropTypeError( | |
| 1503 | + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + | |
| 1504 | + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + | |
| 1505 | + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') | |
| 1506 | + ); | |
| 1507 | + } | |
| 1508 | + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 1509 | + if (error) { | |
| 1510 | + return error; | |
| 1511 | + } | |
| 1512 | + } | |
| 1513 | + return null; | |
| 1514 | + } | |
| 1515 | + | |
| 1516 | + return createChainableTypeChecker(validate); | |
| 1517 | + } | |
| 1518 | + | |
| 1519 | + function isNode(propValue) { | |
| 1520 | + switch (typeof propValue) { | |
| 1521 | + case 'number': | |
| 1522 | + case 'string': | |
| 1523 | + case 'undefined': | |
| 1524 | + return true; | |
| 1525 | + case 'boolean': | |
| 1526 | + return !propValue; | |
| 1527 | + case 'object': | |
| 1528 | + if (Array.isArray(propValue)) { | |
| 1529 | + return propValue.every(isNode); | |
| 1530 | + } | |
| 1531 | + if (propValue === null || isValidElement(propValue)) { | |
| 1532 | + return true; | |
| 1533 | + } | |
| 1534 | + | |
| 1535 | + var iteratorFn = getIteratorFn(propValue); | |
| 1536 | + if (iteratorFn) { | |
| 1537 | + var iterator = iteratorFn.call(propValue); | |
| 1538 | + var step; | |
| 1539 | + if (iteratorFn !== propValue.entries) { | |
| 1540 | + while (!(step = iterator.next()).done) { | |
| 1541 | + if (!isNode(step.value)) { | |
| 1542 | + return false; | |
| 1543 | + } | |
| 1544 | + } | |
| 1545 | + } else { | |
| 1546 | + // Iterator will provide entry [k,v] tuples rather than values. | |
| 1547 | + while (!(step = iterator.next()).done) { | |
| 1548 | + var entry = step.value; | |
| 1549 | + if (entry) { | |
| 1550 | + if (!isNode(entry[1])) { | |
| 1551 | + return false; | |
| 1552 | + } | |
| 1553 | + } | |
| 1554 | + } | |
| 1555 | + } | |
| 1556 | + } else { | |
| 1557 | + return false; | |
| 1558 | + } | |
| 1559 | + | |
| 1560 | + return true; | |
| 1561 | + default: | |
| 1562 | + return false; | |
| 1563 | + } | |
| 1564 | + } | |
| 1565 | + | |
| 1566 | + function isSymbol(propType, propValue) { | |
| 1567 | + // Native Symbol. | |
| 1568 | + if (propType === 'symbol') { | |
| 1569 | + return true; | |
| 1570 | + } | |
| 1571 | + | |
| 1572 | + // falsy value can't be a Symbol | |
| 1573 | + if (!propValue) { | |
| 1574 | + return false; | |
| 1575 | + } | |
| 1576 | + | |
| 1577 | + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' | |
| 1578 | + if (propValue['@@toStringTag'] === 'Symbol') { | |
| 1579 | + return true; | |
| 1580 | + } | |
| 1581 | + | |
| 1582 | + // Fallback for non-spec compliant Symbols which are polyfilled. | |
| 1583 | + if (typeof Symbol === 'function' && propValue instanceof Symbol) { | |
| 1584 | + return true; | |
| 1585 | + } | |
| 1586 | + | |
| 1587 | + return false; | |
| 1588 | + } | |
| 1589 | + | |
| 1590 | + // Equivalent of `typeof` but with special handling for array and regexp. | |
| 1591 | + function getPropType(propValue) { | |
| 1592 | + var propType = typeof propValue; | |
| 1593 | + if (Array.isArray(propValue)) { | |
| 1594 | + return 'array'; | |
| 1595 | + } | |
| 1596 | + if (propValue instanceof RegExp) { | |
| 1597 | + // Old webkits (at least until Android 4.0) return 'function' rather than | |
| 1598 | + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ | |
| 1599 | + // passes PropTypes.object. | |
| 1600 | + return 'object'; | |
| 1601 | + } | |
| 1602 | + if (isSymbol(propType, propValue)) { | |
| 1603 | + return 'symbol'; | |
| 1604 | + } | |
| 1605 | + return propType; | |
| 1606 | + } | |
| 1607 | + | |
| 1608 | + // This handles more types than `getPropType`. Only used for error messages. | |
| 1609 | + // See `createPrimitiveTypeChecker`. | |
| 1610 | + function getPreciseType(propValue) { | |
| 1611 | + if (typeof propValue === 'undefined' || propValue === null) { | |
| 1612 | + return '' + propValue; | |
| 1613 | + } | |
| 1614 | + var propType = getPropType(propValue); | |
| 1615 | + if (propType === 'object') { | |
| 1616 | + if (propValue instanceof Date) { | |
| 1617 | + return 'date'; | |
| 1618 | + } else if (propValue instanceof RegExp) { | |
| 1619 | + return 'regexp'; | |
| 1620 | + } | |
| 1621 | + } | |
| 1622 | + return propType; | |
| 1623 | + } | |
| 1624 | + | |
| 1625 | + // Returns a string that is postfixed to a warning about an invalid type. | |
| 1626 | + // For example, "undefined" or "of type array" | |
| 1627 | + function getPostfixForTypeWarning(value) { | |
| 1628 | + var type = getPreciseType(value); | |
| 1629 | + switch (type) { | |
| 1630 | + case 'array': | |
| 1631 | + case 'object': | |
| 1632 | + return 'an ' + type; | |
| 1633 | + case 'boolean': | |
| 1634 | + case 'date': | |
| 1635 | + case 'regexp': | |
| 1636 | + return 'a ' + type; | |
| 1637 | + default: | |
| 1638 | + return type; | |
| 1639 | + } | |
| 1640 | + } | |
| 1641 | + | |
| 1642 | + // Returns class name of the object, if any. | |
| 1643 | + function getClassName(propValue) { | |
| 1644 | + if (!propValue.constructor || !propValue.constructor.name) { | |
| 1645 | + return ANONYMOUS; | |
| 1646 | + } | |
| 1647 | + return propValue.constructor.name; | |
| 1648 | + } | |
| 1649 | + | |
| 1650 | + ReactPropTypes.checkPropTypes = checkPropTypes; | |
| 1651 | + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; | |
| 1652 | + ReactPropTypes.PropTypes = ReactPropTypes; | |
| 1653 | + | |
| 1654 | + return ReactPropTypes; | |
| 1655 | +}; | |
| 1656 | + | |
| 1657 | + | |
| 1658 | +/***/ }), | |
| 1659 | + | |
| 1660 | +/***/ "../node_modules/prop-types/index.js": | |
| 1661 | +/*!*******************************************!*\ | |
| 1662 | + !*** ../node_modules/prop-types/index.js ***! | |
| 1663 | + \*******************************************/ | |
| 1664 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1665 | + | |
| 1666 | +/** | |
| 1667 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 1668 | + * | |
| 1669 | + * This source code is licensed under the MIT license found in the | |
| 1670 | + * LICENSE file in the root directory of this source tree. | |
| 1671 | + */ | |
| 1672 | + | |
| 1673 | +if (true) { | |
| 1674 | + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js"); | |
| 1675 | + | |
| 1676 | + // By explicitly using `prop-types` you are opting into new development behavior. | |
| 1677 | + // http://fb.me/prop-types-in-prod | |
| 1678 | + var throwOnDirectAccess = true; | |
| 1679 | + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); | |
| 1680 | +} else {} | |
| 1681 | + | |
| 1682 | + | |
| 1683 | +/***/ }), | |
| 1684 | + | |
| 1685 | +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js": | |
| 1686 | +/*!**************************************************************!*\ | |
| 1687 | + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***! | |
| 1688 | + \**************************************************************/ | |
| 1689 | +/***/ ((module) => { | |
| 1690 | + | |
| 1691 | +"use strict"; | |
| 1692 | +/** | |
| 1693 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 1694 | + * | |
| 1695 | + * This source code is licensed under the MIT license found in the | |
| 1696 | + * LICENSE file in the root directory of this source tree. | |
| 1697 | + */ | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; | |
| 1702 | + | |
| 1703 | +module.exports = ReactPropTypesSecret; | |
| 1704 | + | |
| 1705 | + | |
| 1706 | +/***/ }), | |
| 1707 | + | |
| 1708 | +/***/ "../node_modules/prop-types/lib/has.js": | |
| 1709 | +/*!*********************************************!*\ | |
| 1710 | + !*** ../node_modules/prop-types/lib/has.js ***! | |
| 1711 | + \*********************************************/ | |
| 1712 | +/***/ ((module) => { | |
| 1713 | + | |
| 1714 | +module.exports = Function.call.bind(Object.prototype.hasOwnProperty); | |
| 1715 | + | |
| 1716 | + | |
| 1717 | +/***/ }), | |
| 1718 | + | |
| 1719 | +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": | |
| 1720 | +/*!************************************************************************************!*\ | |
| 1721 | + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***! | |
| 1722 | + \************************************************************************************/ | |
| 1723 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1724 | + | |
| 1725 | +"use strict"; | |
| 1726 | +/** @license React v16.13.1 | |
| 1727 | + * react-is.development.js | |
| 1728 | + * | |
| 1729 | + * Copyright (c) Facebook, Inc. and its affiliates. | |
| 1730 | + * | |
| 1731 | + * This source code is licensed under the MIT license found in the | |
| 1732 | + * LICENSE file in the root directory of this source tree. | |
| 1733 | + */ | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | +if (true) { | |
| 1740 | + (function() { | |
| 1741 | +'use strict'; | |
| 1742 | + | |
| 1743 | +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol | |
| 1744 | +// nor polyfill, then a plain number is used for performance. | |
| 1745 | +var hasSymbol = typeof Symbol === 'function' && Symbol.for; | |
| 1746 | +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | |
| 1747 | +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; | |
| 1748 | +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; | |
| 1749 | +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; | |
| 1750 | +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; | |
| 1751 | +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; | |
| 1752 | +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | |
| 1753 | +// (unstable) APIs that have been removed. Can we remove the symbols? | |
| 1754 | + | |
| 1755 | +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; | |
| 1756 | +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; | |
| 1757 | +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; | |
| 1758 | +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; | |
| 1759 | +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; | |
| 1760 | +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; | |
| 1761 | +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; | |
| 1762 | +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; | |
| 1763 | +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; | |
| 1764 | +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; | |
| 1765 | +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; | |
| 1766 | + | |
| 1767 | +function isValidElementType(type) { | |
| 1768 | + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | |
| 1769 | + 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); | |
| 1770 | +} | |
| 1771 | + | |
| 1772 | +function typeOf(object) { | |
| 1773 | + if (typeof object === 'object' && object !== null) { | |
| 1774 | + var $$typeof = object.$$typeof; | |
| 1775 | + | |
| 1776 | + switch ($$typeof) { | |
| 1777 | + case REACT_ELEMENT_TYPE: | |
| 1778 | + var type = object.type; | |
| 1779 | + | |
| 1780 | + switch (type) { | |
| 1781 | + case REACT_ASYNC_MODE_TYPE: | |
| 1782 | + case REACT_CONCURRENT_MODE_TYPE: | |
| 1783 | + case REACT_FRAGMENT_TYPE: | |
| 1784 | + case REACT_PROFILER_TYPE: | |
| 1785 | + case REACT_STRICT_MODE_TYPE: | |
| 1786 | + case REACT_SUSPENSE_TYPE: | |
| 1787 | + return type; | |
| 1788 | + | |
| 1789 | + default: | |
| 1790 | + var $$typeofType = type && type.$$typeof; | |
| 1791 | + | |
| 1792 | + switch ($$typeofType) { | |
| 1793 | + case REACT_CONTEXT_TYPE: | |
| 1794 | + case REACT_FORWARD_REF_TYPE: | |
| 1795 | + case REACT_LAZY_TYPE: | |
| 1796 | + case REACT_MEMO_TYPE: | |
| 1797 | + case REACT_PROVIDER_TYPE: | |
| 1798 | + return $$typeofType; | |
| 1799 | + | |
| 1800 | + default: | |
| 1801 | + return $$typeof; | |
| 1802 | + } | |
| 1803 | + | |
| 1804 | + } | |
| 1805 | + | |
| 1806 | + case REACT_PORTAL_TYPE: | |
| 1807 | + return $$typeof; | |
| 1808 | + } | |
| 1809 | + } | |
| 1810 | + | |
| 1811 | + return undefined; | |
| 1812 | +} // AsyncMode is deprecated along with isAsyncMode | |
| 1813 | + | |
| 1814 | +var AsyncMode = REACT_ASYNC_MODE_TYPE; | |
| 1815 | +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | |
| 1816 | +var ContextConsumer = REACT_CONTEXT_TYPE; | |
| 1817 | +var ContextProvider = REACT_PROVIDER_TYPE; | |
| 1818 | +var Element = REACT_ELEMENT_TYPE; | |
| 1819 | +var ForwardRef = REACT_FORWARD_REF_TYPE; | |
| 1820 | +var Fragment = REACT_FRAGMENT_TYPE; | |
| 1821 | +var Lazy = REACT_LAZY_TYPE; | |
| 1822 | +var Memo = REACT_MEMO_TYPE; | |
| 1823 | +var Portal = REACT_PORTAL_TYPE; | |
| 1824 | +var Profiler = REACT_PROFILER_TYPE; | |
| 1825 | +var StrictMode = REACT_STRICT_MODE_TYPE; | |
| 1826 | +var Suspense = REACT_SUSPENSE_TYPE; | |
| 1827 | +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated | |
| 1828 | + | |
| 1829 | +function isAsyncMode(object) { | |
| 1830 | + { | |
| 1831 | + if (!hasWarnedAboutDeprecatedIsAsyncMode) { | |
| 1832 | + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint | |
| 1833 | + | |
| 1834 | + 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.'); | |
| 1835 | + } | |
| 1836 | + } | |
| 1837 | + | |
| 1838 | + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; | |
| 1839 | +} | |
| 1840 | +function isConcurrentMode(object) { | |
| 1841 | + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; | |
| 1842 | +} | |
| 1843 | +function isContextConsumer(object) { | |
| 1844 | + return typeOf(object) === REACT_CONTEXT_TYPE; | |
| 1845 | +} | |
| 1846 | +function isContextProvider(object) { | |
| 1847 | + return typeOf(object) === REACT_PROVIDER_TYPE; | |
| 1848 | +} | |
| 1849 | +function isElement(object) { | |
| 1850 | + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | |
| 1851 | +} | |
| 1852 | +function isForwardRef(object) { | |
| 1853 | + return typeOf(object) === REACT_FORWARD_REF_TYPE; | |
| 1854 | +} | |
| 1855 | +function isFragment(object) { | |
| 1856 | + return typeOf(object) === REACT_FRAGMENT_TYPE; | |
| 1857 | +} | |
| 1858 | +function isLazy(object) { | |
| 1859 | + return typeOf(object) === REACT_LAZY_TYPE; | |
| 1860 | +} | |
| 1861 | +function isMemo(object) { | |
| 1862 | + return typeOf(object) === REACT_MEMO_TYPE; | |
| 1863 | +} | |
| 1864 | +function isPortal(object) { | |
| 1865 | + return typeOf(object) === REACT_PORTAL_TYPE; | |
| 1866 | +} | |
| 1867 | +function isProfiler(object) { | |
| 1868 | + return typeOf(object) === REACT_PROFILER_TYPE; | |
| 1869 | +} | |
| 1870 | +function isStrictMode(object) { | |
| 1871 | + return typeOf(object) === REACT_STRICT_MODE_TYPE; | |
| 1872 | +} | |
| 1873 | +function isSuspense(object) { | |
| 1874 | + return typeOf(object) === REACT_SUSPENSE_TYPE; | |
| 1875 | +} | |
| 1876 | + | |
| 1877 | +exports.AsyncMode = AsyncMode; | |
| 1878 | +exports.ConcurrentMode = ConcurrentMode; | |
| 1879 | +exports.ContextConsumer = ContextConsumer; | |
| 1880 | +exports.ContextProvider = ContextProvider; | |
| 1881 | +exports.Element = Element; | |
| 1882 | +exports.ForwardRef = ForwardRef; | |
| 1883 | +exports.Fragment = Fragment; | |
| 1884 | +exports.Lazy = Lazy; | |
| 1885 | +exports.Memo = Memo; | |
| 1886 | +exports.Portal = Portal; | |
| 1887 | +exports.Profiler = Profiler; | |
| 1888 | +exports.StrictMode = StrictMode; | |
| 1889 | +exports.Suspense = Suspense; | |
| 1890 | +exports.isAsyncMode = isAsyncMode; | |
| 1891 | +exports.isConcurrentMode = isConcurrentMode; | |
| 1892 | +exports.isContextConsumer = isContextConsumer; | |
| 1893 | +exports.isContextProvider = isContextProvider; | |
| 1894 | +exports.isElement = isElement; | |
| 1895 | +exports.isForwardRef = isForwardRef; | |
| 1896 | +exports.isFragment = isFragment; | |
| 1897 | +exports.isLazy = isLazy; | |
| 1898 | +exports.isMemo = isMemo; | |
| 1899 | +exports.isPortal = isPortal; | |
| 1900 | +exports.isProfiler = isProfiler; | |
| 1901 | +exports.isStrictMode = isStrictMode; | |
| 1902 | +exports.isSuspense = isSuspense; | |
| 1903 | +exports.isValidElementType = isValidElementType; | |
| 1904 | +exports.typeOf = typeOf; | |
| 1905 | + })(); | |
| 1906 | +} | |
| 1907 | + | |
| 1908 | + | |
| 1909 | +/***/ }), | |
| 1910 | + | |
| 1911 | +/***/ "../node_modules/prop-types/node_modules/react-is/index.js": | |
| 1912 | +/*!*****************************************************************!*\ | |
| 1913 | + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***! | |
| 1914 | + \*****************************************************************/ | |
| 1915 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1916 | + | |
| 1917 | +"use strict"; | |
| 1918 | + | |
| 1919 | + | |
| 1920 | +if (false) {} else { | |
| 1921 | + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); | |
| 1922 | +} | |
| 1923 | + | |
| 1924 | + | |
| 1925 | +/***/ }), | |
| 1926 | + | |
| 1927 | +/***/ "../node_modules/react-dom/client.js": | |
| 1928 | +/*!*******************************************!*\ | |
| 1929 | + !*** ../node_modules/react-dom/client.js ***! | |
| 1930 | + \*******************************************/ | |
| 1931 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1932 | + | |
| 1933 | +"use strict"; | |
| 1934 | + | |
| 1935 | + | |
| 1936 | +var m = __webpack_require__(/*! react-dom */ "react-dom"); | |
| 1937 | +if (false) {} else { | |
| 1938 | + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | |
| 1939 | + exports.createRoot = function(c, o) { | |
| 1940 | + i.usingClientEntryPoint = true; | |
| 1941 | + try { | |
| 1942 | + return m.createRoot(c, o); | |
| 1943 | + } finally { | |
| 1944 | + i.usingClientEntryPoint = false; | |
| 1945 | + } | |
| 1946 | + }; | |
| 1947 | + exports.hydrateRoot = function(c, h, o) { | |
| 1948 | + i.usingClientEntryPoint = true; | |
| 1949 | + try { | |
| 1950 | + return m.hydrateRoot(c, h, o); | |
| 1951 | + } finally { | |
| 1952 | + i.usingClientEntryPoint = false; | |
| 1953 | + } | |
| 1954 | + }; | |
| 1955 | +} | |
| 1956 | + | |
| 1957 | + | |
| 1958 | +/***/ }), | |
| 1959 | + | |
| 1960 | +/***/ "react": | |
| 1961 | +/*!************************!*\ | |
| 1962 | + !*** external "React" ***! | |
| 1963 | + \************************/ | |
| 1964 | +/***/ ((module) => { | |
| 1965 | + | |
| 1966 | +"use strict"; | |
| 1967 | +module.exports = React; | |
| 1968 | + | |
| 1969 | +/***/ }), | |
| 1970 | + | |
| 1971 | +/***/ "react-dom": | |
| 1972 | +/*!***************************!*\ | |
| 1973 | + !*** external "ReactDOM" ***! | |
| 1974 | + \***************************/ | |
| 1975 | +/***/ ((module) => { | |
| 1976 | + | |
| 1977 | +"use strict"; | |
| 1978 | +module.exports = ReactDOM; | |
| 1979 | + | |
| 1980 | +/***/ }), | |
| 1981 | + | |
| 1982 | +/***/ "@elementor/ui": | |
| 1983 | +/*!*********************************!*\ | |
| 1984 | + !*** external "elementorV2.ui" ***! | |
| 1985 | + \*********************************/ | |
| 1986 | +/***/ ((module) => { | |
| 1987 | + | |
| 1988 | +"use strict"; | |
| 1989 | +module.exports = elementorV2.ui; | |
| 1990 | + | |
| 1991 | +/***/ }), | |
| 1992 | + | |
| 1993 | +/***/ "@elementor/ui/Box": | |
| 1994 | +/*!****************************************!*\ | |
| 1995 | + !*** external "elementorV2.ui['Box']" ***! | |
| 1996 | + \****************************************/ | |
| 1997 | +/***/ ((module) => { | |
| 1998 | + | |
| 1999 | +"use strict"; | |
| 2000 | +module.exports = elementorV2.ui['Box']; | |
| 2001 | + | |
| 2002 | +/***/ }), | |
| 2003 | + | |
| 2004 | +/***/ "@elementor/ui/Button": | |
| 2005 | +/*!*******************************************!*\ | |
| 2006 | + !*** external "elementorV2.ui['Button']" ***! | |
| 2007 | + \*******************************************/ | |
| 2008 | +/***/ ((module) => { | |
| 2009 | + | |
| 2010 | +"use strict"; | |
| 2011 | +module.exports = elementorV2.ui['Button']; | |
| 2012 | + | |
| 2013 | +/***/ }), | |
| 2014 | + | |
| 2015 | +/***/ "@elementor/ui/Card": | |
| 2016 | +/*!*****************************************!*\ | |
| 2017 | + !*** external "elementorV2.ui['Card']" ***! | |
| 2018 | + \*****************************************/ | |
| 2019 | +/***/ ((module) => { | |
| 2020 | + | |
| 2021 | +"use strict"; | |
| 2022 | +module.exports = elementorV2.ui['Card']; | |
| 2023 | + | |
| 2024 | +/***/ }), | |
| 2025 | + | |
| 2026 | +/***/ "@elementor/ui/CardActions": | |
| 2027 | +/*!************************************************!*\ | |
| 2028 | + !*** external "elementorV2.ui['CardActions']" ***! | |
| 2029 | + \************************************************/ | |
| 2030 | +/***/ ((module) => { | |
| 2031 | + | |
| 2032 | +"use strict"; | |
| 2033 | +module.exports = elementorV2.ui['CardActions']; | |
| 2034 | + | |
| 2035 | +/***/ }), | |
| 2036 | + | |
| 2037 | +/***/ "@elementor/ui/CardContent": | |
| 2038 | +/*!************************************************!*\ | |
| 2039 | + !*** external "elementorV2.ui['CardContent']" ***! | |
| 2040 | + \************************************************/ | |
| 2041 | +/***/ ((module) => { | |
| 2042 | + | |
| 2043 | +"use strict"; | |
| 2044 | +module.exports = elementorV2.ui['CardContent']; | |
| 2045 | + | |
| 2046 | +/***/ }), | |
| 2047 | + | |
| 2048 | +/***/ "@elementor/ui/CardMedia": | |
| 2049 | +/*!**********************************************!*\ | |
| 2050 | + !*** external "elementorV2.ui['CardMedia']" ***! | |
| 2051 | + \**********************************************/ | |
| 2052 | +/***/ ((module) => { | |
| 2053 | + | |
| 2054 | +"use strict"; | |
| 2055 | +module.exports = elementorV2.ui['CardMedia']; | |
| 2056 | + | |
| 2057 | +/***/ }), | |
| 2058 | + | |
| 2059 | +/***/ "@elementor/ui/Dialog": | |
| 2060 | +/*!*******************************************!*\ | |
| 2061 | + !*** external "elementorV2.ui['Dialog']" ***! | |
| 2062 | + \*******************************************/ | |
| 2063 | +/***/ ((module) => { | |
| 2064 | + | |
| 2065 | +"use strict"; | |
| 2066 | +module.exports = elementorV2.ui['Dialog']; | |
| 2067 | + | |
| 2068 | +/***/ }), | |
| 2069 | + | |
| 2070 | +/***/ "@elementor/ui/DialogActions": | |
| 2071 | +/*!**************************************************!*\ | |
| 2072 | + !*** external "elementorV2.ui['DialogActions']" ***! | |
| 2073 | + \**************************************************/ | |
| 2074 | +/***/ ((module) => { | |
| 2075 | + | |
| 2076 | +"use strict"; | |
| 2077 | +module.exports = elementorV2.ui['DialogActions']; | |
| 2078 | + | |
| 2079 | +/***/ }), | |
| 2080 | + | |
| 2081 | +/***/ "@elementor/ui/DialogContent": | |
| 2082 | +/*!**************************************************!*\ | |
| 2083 | + !*** external "elementorV2.ui['DialogContent']" ***! | |
| 2084 | + \**************************************************/ | |
| 2085 | +/***/ ((module) => { | |
| 2086 | + | |
| 2087 | +"use strict"; | |
| 2088 | +module.exports = elementorV2.ui['DialogContent']; | |
| 2089 | + | |
| 2090 | +/***/ }), | |
| 2091 | + | |
| 2092 | +/***/ "@elementor/ui/DialogContentText": | |
| 2093 | +/*!******************************************************!*\ | |
| 2094 | + !*** external "elementorV2.ui['DialogContentText']" ***! | |
| 2095 | + \******************************************************/ | |
| 2096 | +/***/ ((module) => { | |
| 2097 | + | |
| 2098 | +"use strict"; | |
| 2099 | +module.exports = elementorV2.ui['DialogContentText']; | |
| 2100 | + | |
| 2101 | +/***/ }), | |
| 2102 | + | |
| 2103 | +/***/ "@elementor/ui/DialogHeader": | |
| 2104 | +/*!*************************************************!*\ | |
| 2105 | + !*** external "elementorV2.ui['DialogHeader']" ***! | |
| 2106 | + \*************************************************/ | |
| 2107 | +/***/ ((module) => { | |
| 2108 | + | |
| 2109 | +"use strict"; | |
| 2110 | +module.exports = elementorV2.ui['DialogHeader']; | |
| 2111 | + | |
| 2112 | +/***/ }), | |
| 2113 | + | |
| 2114 | +/***/ "@elementor/ui/DialogHeaderGroup": | |
| 2115 | +/*!******************************************************!*\ | |
| 2116 | + !*** external "elementorV2.ui['DialogHeaderGroup']" ***! | |
| 2117 | + \******************************************************/ | |
| 2118 | +/***/ ((module) => { | |
| 2119 | + | |
| 2120 | +"use strict"; | |
| 2121 | +module.exports = elementorV2.ui['DialogHeaderGroup']; | |
| 2122 | + | |
| 2123 | +/***/ }), | |
| 2124 | + | |
| 2125 | +/***/ "@elementor/ui/DialogTitle": | |
| 2126 | +/*!************************************************!*\ | |
| 2127 | + !*** external "elementorV2.ui['DialogTitle']" ***! | |
| 2128 | + \************************************************/ | |
| 2129 | +/***/ ((module) => { | |
| 2130 | + | |
| 2131 | +"use strict"; | |
| 2132 | +module.exports = elementorV2.ui['DialogTitle']; | |
| 2133 | + | |
| 2134 | +/***/ }), | |
| 2135 | + | |
| 2136 | +/***/ "@elementor/ui/Divider": | |
| 2137 | +/*!********************************************!*\ | |
| 2138 | + !*** external "elementorV2.ui['Divider']" ***! | |
| 2139 | + \********************************************/ | |
| 2140 | +/***/ ((module) => { | |
| 2141 | + | |
| 2142 | +"use strict"; | |
| 2143 | +module.exports = elementorV2.ui['Divider']; | |
| 2144 | + | |
| 2145 | +/***/ }), | |
| 2146 | + | |
| 2147 | +/***/ "@elementor/ui/Link": | |
| 2148 | +/*!*****************************************!*\ | |
| 2149 | + !*** external "elementorV2.ui['Link']" ***! | |
| 2150 | + \*****************************************/ | |
| 2151 | +/***/ ((module) => { | |
| 2152 | + | |
| 2153 | +"use strict"; | |
| 2154 | +module.exports = elementorV2.ui['Link']; | |
| 2155 | + | |
| 2156 | +/***/ }), | |
| 2157 | + | |
| 2158 | +/***/ "@elementor/ui/List": | |
| 2159 | +/*!*****************************************!*\ | |
| 2160 | + !*** external "elementorV2.ui['List']" ***! | |
| 2161 | + \*****************************************/ | |
| 2162 | +/***/ ((module) => { | |
| 2163 | + | |
| 2164 | +"use strict"; | |
| 2165 | +module.exports = elementorV2.ui['List']; | |
| 2166 | + | |
| 2167 | +/***/ }), | |
| 2168 | + | |
| 2169 | +/***/ "@elementor/ui/ListItem": | |
| 2170 | +/*!*********************************************!*\ | |
| 2171 | + !*** external "elementorV2.ui['ListItem']" ***! | |
| 2172 | + \*********************************************/ | |
| 2173 | +/***/ ((module) => { | |
| 2174 | + | |
| 2175 | +"use strict"; | |
| 2176 | +module.exports = elementorV2.ui['ListItem']; | |
| 2177 | + | |
| 2178 | +/***/ }), | |
| 2179 | + | |
| 2180 | +/***/ "@elementor/ui/ListItemButton": | |
| 2181 | +/*!***************************************************!*\ | |
| 2182 | + !*** external "elementorV2.ui['ListItemButton']" ***! | |
| 2183 | + \***************************************************/ | |
| 2184 | +/***/ ((module) => { | |
| 2185 | + | |
| 2186 | +"use strict"; | |
| 2187 | +module.exports = elementorV2.ui['ListItemButton']; | |
| 2188 | + | |
| 2189 | +/***/ }), | |
| 2190 | + | |
| 2191 | +/***/ "@elementor/ui/ListItemText": | |
| 2192 | +/*!*************************************************!*\ | |
| 2193 | + !*** external "elementorV2.ui['ListItemText']" ***! | |
| 2194 | + \*************************************************/ | |
| 2195 | +/***/ ((module) => { | |
| 2196 | + | |
| 2197 | +"use strict"; | |
| 2198 | +module.exports = elementorV2.ui['ListItemText']; | |
| 2199 | + | |
| 2200 | +/***/ }), | |
| 2201 | + | |
| 2202 | +/***/ "@elementor/ui/TextField": | |
| 2203 | +/*!**********************************************!*\ | |
| 2204 | + !*** external "elementorV2.ui['TextField']" ***! | |
| 2205 | + \**********************************************/ | |
| 2206 | +/***/ ((module) => { | |
| 2207 | + | |
| 2208 | +"use strict"; | |
| 2209 | +module.exports = elementorV2.ui['TextField']; | |
| 2210 | + | |
| 2211 | +/***/ }), | |
| 2212 | + | |
| 2213 | +/***/ "@elementor/ui/Typography": | |
| 2214 | +/*!***********************************************!*\ | |
| 2215 | + !*** external "elementorV2.ui['Typography']" ***! | |
| 2216 | + \***********************************************/ | |
| 2217 | +/***/ ((module) => { | |
| 2218 | + | |
| 2219 | +"use strict"; | |
| 2220 | +module.exports = elementorV2.ui['Typography']; | |
| 2221 | + | |
| 2222 | +/***/ }), | |
| 2223 | + | |
| 2224 | +/***/ "@wordpress/i18n": | |
| 2225 | +/*!**************************!*\ | |
| 2226 | + !*** external "wp.i18n" ***! | |
| 2227 | + \**************************/ | |
| 2228 | +/***/ ((module) => { | |
| 2229 | + | |
| 2230 | +"use strict"; | |
| 2231 | +module.exports = wp.i18n; | |
| 2232 | + | |
| 2233 | +/***/ }), | |
| 2234 | + | |
| 2235 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 2236 | +/*!******************************************************************!*\ | |
| 2237 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 2238 | + \******************************************************************/ | |
| 2239 | +/***/ ((module) => { | |
| 2240 | + | |
| 2241 | +function _arrayLikeToArray(r, a) { | |
| 2242 | + (null == a || a > r.length) && (a = r.length); | |
| 2243 | + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2244 | + return n; | |
| 2245 | +} | |
| 2246 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2247 | + | |
| 2248 | +/***/ }), | |
| 2249 | + | |
| 2250 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 2251 | +/*!****************************************************************!*\ | |
| 2252 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 2253 | + \****************************************************************/ | |
| 2254 | +/***/ ((module) => { | |
| 2255 | + | |
| 2256 | +function _arrayWithHoles(r) { | |
| 2257 | + if (Array.isArray(r)) return r; | |
| 2258 | +} | |
| 2259 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2260 | + | |
| 2261 | +/***/ }), | |
| 2262 | + | |
| 2263 | +/***/ "../node_modules/@babel/runtime/helpers/extends.js": | |
| 2264 | +/*!*********************************************************!*\ | |
| 2265 | + !*** ../node_modules/@babel/runtime/helpers/extends.js ***! | |
| 2266 | + \*********************************************************/ | |
| 2267 | +/***/ ((module) => { | |
| 2268 | + | |
| 2269 | +function _extends() { | |
| 2270 | + return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { | |
| 2271 | + for (var e = 1; e < arguments.length; e++) { | |
| 2272 | + var t = arguments[e]; | |
| 2273 | + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 2274 | + } | |
| 2275 | + return n; | |
| 2276 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); | |
| 2277 | +} | |
| 2278 | +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2279 | + | |
| 2280 | +/***/ }), | |
| 2281 | + | |
| 2282 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 2283 | +/*!***********************************************************************!*\ | |
| 2284 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 2285 | + \***********************************************************************/ | |
| 2286 | +/***/ ((module) => { | |
| 2287 | + | |
| 2288 | +function _interopRequireDefault(e) { | |
| 2289 | + return e && e.__esModule ? e : { | |
| 2290 | + "default": e | |
| 2291 | + }; | |
| 2292 | +} | |
| 2293 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2294 | + | |
| 2295 | +/***/ }), | |
| 2296 | + | |
| 2297 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 2298 | +/*!**********************************************************************!*\ | |
| 2299 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 2300 | + \**********************************************************************/ | |
| 2301 | +/***/ ((module) => { | |
| 2302 | + | |
| 2303 | +function _iterableToArrayLimit(r, l) { | |
| 2304 | + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 2305 | + if (null != t) { | |
| 2306 | + var e, | |
| 2307 | + n, | |
| 2308 | + i, | |
| 2309 | + u, | |
| 2310 | + a = [], | |
| 2311 | + f = !0, | |
| 2312 | + o = !1; | |
| 2313 | + try { | |
| 2314 | + if (i = (t = t.call(r)).next, 0 === l) { | |
| 2315 | + if (Object(t) !== t) return; | |
| 2316 | + f = !1; | |
| 2317 | + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 2318 | + } catch (r) { | |
| 2319 | + o = !0, n = r; | |
| 2320 | + } finally { | |
| 2321 | + try { | |
| 2322 | + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 2323 | + } finally { | |
| 2324 | + if (o) throw n; | |
| 2325 | + } | |
| 2326 | + } | |
| 2327 | + return a; | |
| 2328 | + } | |
| 2329 | +} | |
| 2330 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2331 | + | |
| 2332 | +/***/ }), | |
| 2333 | + | |
| 2334 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 2335 | +/*!*****************************************************************!*\ | |
| 2336 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 2337 | + \*****************************************************************/ | |
| 2338 | +/***/ ((module) => { | |
| 2339 | + | |
| 2340 | +function _nonIterableRest() { | |
| 2341 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 2342 | +} | |
| 2343 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2344 | + | |
| 2345 | +/***/ }), | |
| 2346 | + | |
| 2347 | +/***/ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js": | |
| 2348 | +/*!**************************************************************************!*\ | |
| 2349 | + !*** ../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js ***! | |
| 2350 | + \**************************************************************************/ | |
| 2351 | +/***/ ((module) => { | |
| 2352 | + | |
| 2353 | +function _objectDestructuringEmpty(t) { | |
| 2354 | + if (null == t) throw new TypeError("Cannot destructure " + t); | |
| 2355 | +} | |
| 2356 | +module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2357 | + | |
| 2358 | +/***/ }), | |
| 2359 | + | |
| 2360 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 2361 | +/*!***************************************************************!*\ | |
| 2362 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 2363 | + \***************************************************************/ | |
| 2364 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2365 | + | |
| 2366 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 2367 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 2368 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 2369 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 2370 | +function _slicedToArray(r, e) { | |
| 2371 | + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 2372 | +} | |
| 2373 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2374 | + | |
| 2375 | +/***/ }), | |
| 2376 | + | |
| 2377 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 2378 | +/*!********************************************************!*\ | |
| 2379 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 2380 | + \********************************************************/ | |
| 2381 | +/***/ ((module) => { | |
| 2382 | + | |
| 2383 | +function _typeof(o) { | |
| 2384 | + "@babel/helpers - typeof"; | |
| 2385 | + | |
| 2386 | + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 2387 | + return typeof o; | |
| 2388 | + } : function (o) { | |
| 2389 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 2390 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 2391 | +} | |
| 2392 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2393 | + | |
| 2394 | +/***/ }), | |
| 2395 | + | |
| 2396 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 2397 | +/*!****************************************************************************!*\ | |
| 2398 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 2399 | + \****************************************************************************/ | |
| 2400 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2401 | + | |
| 2402 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 2403 | +function _unsupportedIterableToArray(r, a) { | |
| 2404 | + if (r) { | |
| 2405 | + if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 2406 | + var t = {}.toString.call(r).slice(8, -1); | |
| 2407 | + 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; | |
| 2408 | + } | |
| 2409 | +} | |
| 2410 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2411 | + | |
| 2412 | +/***/ }) | |
| 2413 | + | |
| 2414 | +/******/ }); | |
| 2415 | +/************************************************************************/ | |
| 2416 | +/******/ // The module cache | |
| 2417 | +/******/ var __webpack_module_cache__ = {}; | |
| 2418 | +/******/ | |
| 2419 | +/******/ // The require function | |
| 2420 | +/******/ function __webpack_require__(moduleId) { | |
| 2421 | +/******/ // Check if module is in cache | |
| 2422 | +/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 2423 | +/******/ if (cachedModule !== undefined) { | |
| 2424 | +/******/ return cachedModule.exports; | |
| 2425 | +/******/ } | |
| 2426 | +/******/ // Create a new module (and put it into the cache) | |
| 2427 | +/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 2428 | +/******/ // no module.id needed | |
| 2429 | +/******/ // no module.loaded needed | |
| 2430 | +/******/ exports: {} | |
| 2431 | +/******/ }; | |
| 2432 | +/******/ | |
| 2433 | +/******/ // Execute the module function | |
| 2434 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 2435 | +/******/ | |
| 2436 | +/******/ // Return the exports of the module | |
| 2437 | +/******/ return module.exports; | |
| 2438 | +/******/ } | |
| 2439 | +/******/ | |
| 2440 | +/************************************************************************/ | |
| 2441 | +var __webpack_exports__ = {}; | |
| 2442 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 2443 | +(() => { | |
| 2444 | +"use strict"; | |
| 2445 | +/*!****************************************!*\ | |
| 2446 | + !*** ../modules/home/assets/js/app.js ***! | |
| 2447 | + \****************************************/ | |
| 2448 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2449 | + | |
| 2450 | + | |
| 2451 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2452 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2453 | +var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js")); | |
| 2454 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 2455 | +var _homeScreen = _interopRequireDefault(__webpack_require__(/*! ./components/home-screen */ "../modules/home/assets/js/components/home-screen.js")); | |
| 2456 | +var App = function App(props) { | |
| 2457 | + return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, { | |
| 2458 | + rtl: props.isRTL | |
| 2459 | + }, /*#__PURE__*/_react.default.createElement(_ui.LocalizationProvider, null, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, { | |
| 2460 | + colorScheme: 'light' | |
| 2461 | + }, /*#__PURE__*/_react.default.createElement(_homeScreen.default, { | |
| 2462 | + homeScreenData: props.homeScreenData, | |
| 2463 | + adminUrl: props.adminUrl | |
| 2464 | + })))); | |
| 2465 | +}; | |
| 2466 | +var isRTL = elementorCommon.config.isRTL, | |
| 2467 | + adminUrl = elementorAppConfig.admin_url, | |
| 2468 | + rootElement = document.querySelector('#e-home-screen'); | |
| 2469 | +App.propTypes = { | |
| 2470 | + isRTL: PropTypes.bool, | |
| 2471 | + adminUrl: PropTypes.string, | |
| 2472 | + homeScreenData: PropTypes.object | |
| 2473 | +}; | |
| 2474 | +_react2.default.render(/*#__PURE__*/_react.default.createElement(App, { | |
| 2475 | + isRTL: isRTL, | |
| 2476 | + homeScreenData: elementorHomeScreenData, | |
| 2477 | + adminUrl: adminUrl | |
| 2478 | +}), rootElement); | |
| 2479 | +})(); | |
| 2480 | + | |
| 2481 | +/******/ })() | |
| 2482 | +; | |
| 3239 | 2483 | //# sourceMappingURL=e-home-screen.js.map |