PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.1
Elementor Website Builder – more than just a page builder v3.26.1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / assets / js / styleguide-app-initiator.js

styleguide-app-initiator.js in Elementor Website Builder – more than just a page builder 3.26.1, at assets/js/styleguide-app-initiator.js

891 lines 34.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.26.0 - 19-12-2024 */
2 /******/ (() => { // webpackBootstrap
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "../assets/dev/js/utils/react.js":
6 /*!***************************************!*\
7 !*** ../assets/dev/js/utils/react.js ***!
8 \***************************************/
9 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10
11 "use strict";
12
13
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 };
56
57 /***/ }),
58
59 /***/ "../node_modules/react-dom/client.js":
60 /*!*******************************************!*\
61 !*** ../node_modules/react-dom/client.js ***!
62 \*******************************************/
63 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
64
65 "use strict";
66
67
68 var m = __webpack_require__(/*! react-dom */ "react-dom");
69 if (false) {} else {
70 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
71 exports.createRoot = function(c, o) {
72 i.usingClientEntryPoint = true;
73 try {
74 return m.createRoot(c, o);
75 } finally {
76 i.usingClientEntryPoint = false;
77 }
78 };
79 exports.hydrateRoot = function(c, h, o) {
80 i.usingClientEntryPoint = true;
81 try {
82 return m.hydrateRoot(c, h, o);
83 } finally {
84 i.usingClientEntryPoint = false;
85 }
86 };
87 }
88
89
90 /***/ }),
91
92 /***/ "react":
93 /*!************************!*\
94 !*** external "React" ***!
95 \************************/
96 /***/ ((module) => {
97
98 "use strict";
99 module.exports = React;
100
101 /***/ }),
102
103 /***/ "react-dom":
104 /*!***************************!*\
105 !*** external "ReactDOM" ***!
106 \***************************/
107 /***/ ((module) => {
108
109 "use strict";
110 module.exports = ReactDOM;
111
112 /***/ }),
113
114 /***/ "@wordpress/i18n":
115 /*!**************************!*\
116 !*** external "wp.i18n" ***!
117 \**************************/
118 /***/ ((module) => {
119
120 "use strict";
121 module.exports = wp.i18n;
122
123 /***/ }),
124
125 /***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
126 /*!******************************************************************!*\
127 !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
128 \******************************************************************/
129 /***/ ((module) => {
130
131 function asyncGeneratorStep(n, t, e, r, o, a, c) {
132 try {
133 var i = n[a](c),
134 u = i.value;
135 } catch (n) {
136 return void e(n);
137 }
138 i.done ? t(u) : Promise.resolve(u).then(r, o);
139 }
140 function _asyncToGenerator(n) {
141 return function () {
142 var t = this,
143 e = arguments;
144 return new Promise(function (r, o) {
145 var a = n.apply(t, e);
146 function _next(n) {
147 asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
148 }
149 function _throw(n) {
150 asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
151 }
152 _next(void 0);
153 });
154 };
155 }
156 module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
157
158 /***/ }),
159
160 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
161 /*!***********************************************************************!*\
162 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
163 \***********************************************************************/
164 /***/ ((module) => {
165
166 function _interopRequireDefault(e) {
167 return e && e.__esModule ? e : {
168 "default": e
169 };
170 }
171 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
172
173 /***/ }),
174
175 /***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
176 /*!********************************************************************!*\
177 !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
178 \********************************************************************/
179 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
180
181 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
182 function _regeneratorRuntime() {
183 "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
184 module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
185 return e;
186 }, module.exports.__esModule = true, module.exports["default"] = module.exports;
187 var t,
188 e = {},
189 r = Object.prototype,
190 n = r.hasOwnProperty,
191 o = Object.defineProperty || function (t, e, r) {
192 t[e] = r.value;
193 },
194 i = "function" == typeof Symbol ? Symbol : {},
195 a = i.iterator || "@@iterator",
196 c = i.asyncIterator || "@@asyncIterator",
197 u = i.toStringTag || "@@toStringTag";
198 function define(t, e, r) {
199 return Object.defineProperty(t, e, {
200 value: r,
201 enumerable: !0,
202 configurable: !0,
203 writable: !0
204 }), t[e];
205 }
206 try {
207 define({}, "");
208 } catch (t) {
209 define = function define(t, e, r) {
210 return t[e] = r;
211 };
212 }
213 function wrap(t, e, r, n) {
214 var i = e && e.prototype instanceof Generator ? e : Generator,
215 a = Object.create(i.prototype),
216 c = new Context(n || []);
217 return o(a, "_invoke", {
218 value: makeInvokeMethod(t, r, c)
219 }), a;
220 }
221 function tryCatch(t, e, r) {
222 try {
223 return {
224 type: "normal",
225 arg: t.call(e, r)
226 };
227 } catch (t) {
228 return {
229 type: "throw",
230 arg: t
231 };
232 }
233 }
234 e.wrap = wrap;
235 var h = "suspendedStart",
236 l = "suspendedYield",
237 f = "executing",
238 s = "completed",
239 y = {};
240 function Generator() {}
241 function GeneratorFunction() {}
242 function GeneratorFunctionPrototype() {}
243 var p = {};
244 define(p, a, function () {
245 return this;
246 });
247 var d = Object.getPrototypeOf,
248 v = d && d(d(values([])));
249 v && v !== r && n.call(v, a) && (p = v);
250 var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
251 function defineIteratorMethods(t) {
252 ["next", "throw", "return"].forEach(function (e) {
253 define(t, e, function (t) {
254 return this._invoke(e, t);
255 });
256 });
257 }
258 function AsyncIterator(t, e) {
259 function invoke(r, o, i, a) {
260 var c = tryCatch(t[r], t, o);
261 if ("throw" !== c.type) {
262 var u = c.arg,
263 h = u.value;
264 return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
265 invoke("next", t, i, a);
266 }, function (t) {
267 invoke("throw", t, i, a);
268 }) : e.resolve(h).then(function (t) {
269 u.value = t, i(u);
270 }, function (t) {
271 return invoke("throw", t, i, a);
272 });
273 }
274 a(c.arg);
275 }
276 var r;
277 o(this, "_invoke", {
278 value: function value(t, n) {
279 function callInvokeWithMethodAndArg() {
280 return new e(function (e, r) {
281 invoke(t, n, e, r);
282 });
283 }
284 return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
285 }
286 });
287 }
288 function makeInvokeMethod(e, r, n) {
289 var o = h;
290 return function (i, a) {
291 if (o === f) throw Error("Generator is already running");
292 if (o === s) {
293 if ("throw" === i) throw a;
294 return {
295 value: t,
296 done: !0
297 };
298 }
299 for (n.method = i, n.arg = a;;) {
300 var c = n.delegate;
301 if (c) {
302 var u = maybeInvokeDelegate(c, n);
303 if (u) {
304 if (u === y) continue;
305 return u;
306 }
307 }
308 if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
309 if (o === h) throw o = s, n.arg;
310 n.dispatchException(n.arg);
311 } else "return" === n.method && n.abrupt("return", n.arg);
312 o = f;
313 var p = tryCatch(e, r, n);
314 if ("normal" === p.type) {
315 if (o = n.done ? s : l, p.arg === y) continue;
316 return {
317 value: p.arg,
318 done: n.done
319 };
320 }
321 "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
322 }
323 };
324 }
325 function maybeInvokeDelegate(e, r) {
326 var n = r.method,
327 o = e.iterator[n];
328 if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
329 var i = tryCatch(o, e.iterator, r.arg);
330 if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
331 var a = i.arg;
332 return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
333 }
334 function pushTryEntry(t) {
335 var e = {
336 tryLoc: t[0]
337 };
338 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
339 }
340 function resetTryEntry(t) {
341 var e = t.completion || {};
342 e.type = "normal", delete e.arg, t.completion = e;
343 }
344 function Context(t) {
345 this.tryEntries = [{
346 tryLoc: "root"
347 }], t.forEach(pushTryEntry, this), this.reset(!0);
348 }
349 function values(e) {
350 if (e || "" === e) {
351 var r = e[a];
352 if (r) return r.call(e);
353 if ("function" == typeof e.next) return e;
354 if (!isNaN(e.length)) {
355 var o = -1,
356 i = function next() {
357 for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
358 return next.value = t, next.done = !0, next;
359 };
360 return i.next = i;
361 }
362 }
363 throw new TypeError(_typeof(e) + " is not iterable");
364 }
365 return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
366 value: GeneratorFunctionPrototype,
367 configurable: !0
368 }), o(GeneratorFunctionPrototype, "constructor", {
369 value: GeneratorFunction,
370 configurable: !0
371 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
372 var e = "function" == typeof t && t.constructor;
373 return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
374 }, e.mark = function (t) {
375 return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
376 }, e.awrap = function (t) {
377 return {
378 __await: t
379 };
380 }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
381 return this;
382 }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
383 void 0 === i && (i = Promise);
384 var a = new AsyncIterator(wrap(t, r, n, o), i);
385 return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
386 return t.done ? t.value : a.next();
387 });
388 }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
389 return this;
390 }), define(g, "toString", function () {
391 return "[object Generator]";
392 }), e.keys = function (t) {
393 var e = Object(t),
394 r = [];
395 for (var n in e) r.push(n);
396 return r.reverse(), function next() {
397 for (; r.length;) {
398 var t = r.pop();
399 if (t in e) return next.value = t, next.done = !1, next;
400 }
401 return next.done = !0, next;
402 };
403 }, e.values = values, Context.prototype = {
404 constructor: Context,
405 reset: function reset(e) {
406 if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
407 },
408 stop: function stop() {
409 this.done = !0;
410 var t = this.tryEntries[0].completion;
411 if ("throw" === t.type) throw t.arg;
412 return this.rval;
413 },
414 dispatchException: function dispatchException(e) {
415 if (this.done) throw e;
416 var r = this;
417 function handle(n, o) {
418 return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
419 }
420 for (var o = this.tryEntries.length - 1; o >= 0; --o) {
421 var i = this.tryEntries[o],
422 a = i.completion;
423 if ("root" === i.tryLoc) return handle("end");
424 if (i.tryLoc <= this.prev) {
425 var c = n.call(i, "catchLoc"),
426 u = n.call(i, "finallyLoc");
427 if (c && u) {
428 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
429 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
430 } else if (c) {
431 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
432 } else {
433 if (!u) throw Error("try statement without catch or finally");
434 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
435 }
436 }
437 }
438 },
439 abrupt: function abrupt(t, e) {
440 for (var r = this.tryEntries.length - 1; r >= 0; --r) {
441 var o = this.tryEntries[r];
442 if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
443 var i = o;
444 break;
445 }
446 }
447 i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
448 var a = i ? i.completion : {};
449 return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
450 },
451 complete: function complete(t, e) {
452 if ("throw" === t.type) throw t.arg;
453 return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
454 },
455 finish: function finish(t) {
456 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
457 var r = this.tryEntries[e];
458 if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
459 }
460 },
461 "catch": function _catch(t) {
462 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
463 var r = this.tryEntries[e];
464 if (r.tryLoc === t) {
465 var n = r.completion;
466 if ("throw" === n.type) {
467 var o = n.arg;
468 resetTryEntry(r);
469 }
470 return o;
471 }
472 }
473 throw Error("illegal catch attempt");
474 },
475 delegateYield: function delegateYield(e, r, n) {
476 return this.delegate = {
477 iterator: values(e),
478 resultName: r,
479 nextLoc: n
480 }, "next" === this.method && (this.arg = t), y;
481 }
482 }, e;
483 }
484 module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
485
486 /***/ }),
487
488 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
489 /*!********************************************************!*\
490 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
491 \********************************************************/
492 /***/ ((module) => {
493
494 function _typeof(o) {
495 "@babel/helpers - typeof";
496
497 return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
498 return typeof o;
499 } : function (o) {
500 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
501 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
502 }
503 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
504
505 /***/ }),
506
507 /***/ "../node_modules/@babel/runtime/regenerator/index.js":
508 /*!***********************************************************!*\
509 !*** ../node_modules/@babel/runtime/regenerator/index.js ***!
510 \***********************************************************/
511 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
512
513 // TODO(Babel 8): Remove this file.
514
515 var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
516 module.exports = runtime;
517
518 // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
519 try {
520 regeneratorRuntime = runtime;
521 } catch (accidentalStrictMode) {
522 if (typeof globalThis === "object") {
523 globalThis.regeneratorRuntime = runtime;
524 } else {
525 Function("r", "regeneratorRuntime = r")(runtime);
526 }
527 }
528
529
530 /***/ })
531
532 /******/ });
533 /************************************************************************/
534 /******/ // The module cache
535 /******/ var __webpack_module_cache__ = {};
536 /******/
537 /******/ // The require function
538 /******/ function __webpack_require__(moduleId) {
539 /******/ // Check if module is in cache
540 /******/ var cachedModule = __webpack_module_cache__[moduleId];
541 /******/ if (cachedModule !== undefined) {
542 /******/ return cachedModule.exports;
543 /******/ }
544 /******/ // Create a new module (and put it into the cache)
545 /******/ var module = __webpack_module_cache__[moduleId] = {
546 /******/ // no module.id needed
547 /******/ // no module.loaded needed
548 /******/ exports: {}
549 /******/ };
550 /******/
551 /******/ // Execute the module function
552 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
553 /******/
554 /******/ // Return the exports of the module
555 /******/ return module.exports;
556 /******/ }
557 /******/
558 /******/ // expose the modules object (__webpack_modules__)
559 /******/ __webpack_require__.m = __webpack_modules__;
560 /******/
561 /************************************************************************/
562 /******/ /* webpack/runtime/compat get default export */
563 /******/ (() => {
564 /******/ // getDefaultExport function for compatibility with non-harmony modules
565 /******/ __webpack_require__.n = (module) => {
566 /******/ var getter = module && module.__esModule ?
567 /******/ () => (module['default']) :
568 /******/ () => (module);
569 /******/ __webpack_require__.d(getter, { a: getter });
570 /******/ return getter;
571 /******/ };
572 /******/ })();
573 /******/
574 /******/ /* webpack/runtime/define property getters */
575 /******/ (() => {
576 /******/ // define getter functions for harmony exports
577 /******/ __webpack_require__.d = (exports, definition) => {
578 /******/ for(var key in definition) {
579 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
580 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
581 /******/ }
582 /******/ }
583 /******/ };
584 /******/ })();
585 /******/
586 /******/ /* webpack/runtime/ensure chunk */
587 /******/ (() => {
588 /******/ __webpack_require__.f = {};
589 /******/ // This file contains only the entry chunk.
590 /******/ // The chunk loading function for additional chunks
591 /******/ __webpack_require__.e = (chunkId) => {
592 /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
593 /******/ __webpack_require__.f[key](chunkId, promises);
594 /******/ return promises;
595 /******/ }, []));
596 /******/ };
597 /******/ })();
598 /******/
599 /******/ /* webpack/runtime/get javascript chunk filename */
600 /******/ (() => {
601 /******/ // This function allow to reference async chunks
602 /******/ __webpack_require__.u = (chunkId) => {
603 /******/ // return url for filenames not based on template
604 /******/ if (chunkId === "vendors-node_modules_prop-types_index_js-node_modules_babel_runtime_helpers_slicedToArray_js") return "056b8f3bbbcabf026cd1.bundle.js";
605 /******/ if (chunkId === "vendors-node_modules_styled-components_dist_styled-components_browser_esm_js-node_modules_bab-0097ba") return "fe1f62efe8b83270a88c.bundle.js";
606 /******/ if (chunkId === "modules_styleguide_assets_js_frontend_app_js") return "f75dc05bac1a6892309b.bundle.js";
607 /******/ // return url for filenames based on template
608 /******/ return undefined;
609 /******/ };
610 /******/ })();
611 /******/
612 /******/ /* webpack/runtime/global */
613 /******/ (() => {
614 /******/ __webpack_require__.g = (function() {
615 /******/ if (typeof globalThis === 'object') return globalThis;
616 /******/ try {
617 /******/ return this || new Function('return this')();
618 /******/ } catch (e) {
619 /******/ if (typeof window === 'object') return window;
620 /******/ }
621 /******/ })();
622 /******/ })();
623 /******/
624 /******/ /* webpack/runtime/hasOwnProperty shorthand */
625 /******/ (() => {
626 /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
627 /******/ })();
628 /******/
629 /******/ /* webpack/runtime/load script */
630 /******/ (() => {
631 /******/ var inProgress = {};
632 /******/ var dataWebpackPrefix = "elementor:";
633 /******/ // loadScript function to load a script via script tag
634 /******/ __webpack_require__.l = (url, done, key, chunkId) => {
635 /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
636 /******/ var script, needAttach;
637 /******/ if(key !== undefined) {
638 /******/ var scripts = document.getElementsByTagName("script");
639 /******/ for(var i = 0; i < scripts.length; i++) {
640 /******/ var s = scripts[i];
641 /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
642 /******/ }
643 /******/ }
644 /******/ if(!script) {
645 /******/ needAttach = true;
646 /******/ script = document.createElement('script');
647 /******/
648 /******/ script.charset = 'utf-8';
649 /******/ script.timeout = 120;
650 /******/ if (__webpack_require__.nc) {
651 /******/ script.setAttribute("nonce", __webpack_require__.nc);
652 /******/ }
653 /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
654 /******/
655 /******/ script.src = url;
656 /******/ }
657 /******/ inProgress[url] = [done];
658 /******/ var onScriptComplete = (prev, event) => {
659 /******/ // avoid mem leaks in IE.
660 /******/ script.onerror = script.onload = null;
661 /******/ clearTimeout(timeout);
662 /******/ var doneFns = inProgress[url];
663 /******/ delete inProgress[url];
664 /******/ script.parentNode && script.parentNode.removeChild(script);
665 /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
666 /******/ if(prev) return prev(event);
667 /******/ }
668 /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
669 /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
670 /******/ script.onload = onScriptComplete.bind(null, script.onload);
671 /******/ needAttach && document.head.appendChild(script);
672 /******/ };
673 /******/ })();
674 /******/
675 /******/ /* webpack/runtime/make namespace object */
676 /******/ (() => {
677 /******/ // define __esModule on exports
678 /******/ __webpack_require__.r = (exports) => {
679 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
680 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
681 /******/ }
682 /******/ Object.defineProperty(exports, '__esModule', { value: true });
683 /******/ };
684 /******/ })();
685 /******/
686 /******/ /* webpack/runtime/publicPath */
687 /******/ (() => {
688 /******/ var scriptUrl;
689 /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
690 /******/ var document = __webpack_require__.g.document;
691 /******/ if (!scriptUrl && document) {
692 /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
693 /******/ scriptUrl = document.currentScript.src;
694 /******/ if (!scriptUrl) {
695 /******/ var scripts = document.getElementsByTagName("script");
696 /******/ if(scripts.length) {
697 /******/ var i = scripts.length - 1;
698 /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
699 /******/ }
700 /******/ }
701 /******/ }
702 /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
703 /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
704 /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
705 /******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
706 /******/ __webpack_require__.p = scriptUrl;
707 /******/ })();
708 /******/
709 /******/ /* webpack/runtime/jsonp chunk loading */
710 /******/ (() => {
711 /******/ // no baseURI
712 /******/
713 /******/ // object to store loaded and loading chunks
714 /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
715 /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
716 /******/ var installedChunks = {
717 /******/ "styleguide-app-initiator": 0
718 /******/ };
719 /******/
720 /******/ __webpack_require__.f.j = (chunkId, promises) => {
721 /******/ // JSONP chunk loading for javascript
722 /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
723 /******/ if(installedChunkData !== 0) { // 0 means "already installed".
724 /******/
725 /******/ // a Promise means "currently loading".
726 /******/ if(installedChunkData) {
727 /******/ promises.push(installedChunkData[2]);
728 /******/ } else {
729 /******/ if(true) { // all chunks have JS
730 /******/ // setup Promise in chunk cache
731 /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
732 /******/ promises.push(installedChunkData[2] = promise);
733 /******/
734 /******/ // start chunk loading
735 /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
736 /******/ // create error before stack unwound to get useful stacktrace later
737 /******/ var error = new Error();
738 /******/ var loadingEnded = (event) => {
739 /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
740 /******/ installedChunkData = installedChunks[chunkId];
741 /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
742 /******/ if(installedChunkData) {
743 /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
744 /******/ var realSrc = event && event.target && event.target.src;
745 /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
746 /******/ error.name = 'ChunkLoadError';
747 /******/ error.type = errorType;
748 /******/ error.request = realSrc;
749 /******/ installedChunkData[1](error);
750 /******/ }
751 /******/ }
752 /******/ };
753 /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
754 /******/ }
755 /******/ }
756 /******/ }
757 /******/ };
758 /******/
759 /******/ // no prefetching
760 /******/
761 /******/ // no preloaded
762 /******/
763 /******/ // no HMR
764 /******/
765 /******/ // no HMR manifest
766 /******/
767 /******/ // no on chunks loaded
768 /******/
769 /******/ // install a JSONP callback for chunk loading
770 /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
771 /******/ var [chunkIds, moreModules, runtime] = data;
772 /******/ // add "moreModules" to the modules object,
773 /******/ // then flag all "chunkIds" as loaded and fire callback
774 /******/ var moduleId, chunkId, i = 0;
775 /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
776 /******/ for(moduleId in moreModules) {
777 /******/ if(__webpack_require__.o(moreModules, moduleId)) {
778 /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
779 /******/ }
780 /******/ }
781 /******/ if(runtime) var result = runtime(__webpack_require__);
782 /******/ }
783 /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
784 /******/ for(;i < chunkIds.length; i++) {
785 /******/ chunkId = chunkIds[i];
786 /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
787 /******/ installedChunks[chunkId][0]();
788 /******/ }
789 /******/ installedChunks[chunkId] = 0;
790 /******/ }
791 /******/
792 /******/ }
793 /******/
794 /******/ var chunkLoadingGlobal = self["webpackChunkelementor"] = self["webpackChunkelementor"] || [];
795 /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
796 /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
797 /******/ })();
798 /******/
799 /******/ /* webpack/runtime/nonce */
800 /******/ (() => {
801 /******/ __webpack_require__.nc = undefined;
802 /******/ })();
803 /******/
804 /************************************************************************/
805 var __webpack_exports__ = {};
806 // This entry need to be wrapped in an IIFE because it need to be in strict mode.
807 (() => {
808 "use strict";
809 /*!*******************************************************************!*\
810 !*** ../modules/styleguide/assets/js/styleguide-app-initiator.js ***!
811 \*******************************************************************/
812
813
814 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
815 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
816 var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
817 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
818 var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
819 (function () {
820 var unmountCallback;
821 var styleguideBodyClass = 'e-styleguide-shown';
822
823 /**
824 * Add the app into the page.
825 */
826 function mount() {
827 return _mount.apply(this, arguments);
828 }
829 /**
830 * Remove the app from the page.
831 */
832 function _mount() {
833 _mount = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
834 var _yield$import, App, _ReactUtils$render, unmountUtil;
835 return _regenerator.default.wrap(function _callee$(_context) {
836 while (1) switch (_context.prev = _context.next) {
837 case 0:
838 _context.next = 2;
839 return Promise.all(/*! import() */[__webpack_require__.e("vendors-node_modules_prop-types_index_js-node_modules_babel_runtime_helpers_slicedToArray_js"), __webpack_require__.e("vendors-node_modules_styled-components_dist_styled-components_browser_esm_js-node_modules_bab-0097ba"), __webpack_require__.e("modules_styleguide_assets_js_frontend_app_js")]).then(__webpack_require__.bind(__webpack_require__, /*! ./frontend/app */ "../modules/styleguide/assets/js/frontend/app.js"));
840 case 2:
841 _yield$import = _context.sent;
842 App = _yield$import.default;
843 document.body.classList.add(styleguideBodyClass);
844 _ReactUtils$render = _react2.default.render(/*#__PURE__*/_react.default.createElement(App, null), getStyleguideWidget()), unmountUtil = _ReactUtils$render.unmount;
845 unmountCallback = unmountUtil;
846 case 7:
847 case "end":
848 return _context.stop();
849 }
850 }, _callee);
851 }));
852 return _mount.apply(this, arguments);
853 }
854 function unmount() {
855 unmountCallback();
856 document.body.classList.remove(styleguideBodyClass);
857 }
858
859 /**
860 * Get the Styleguide widget that serves as the App container.
861 * Returns null if the widget does not exist.
862 *
863 * @return {Object|null}
864 */
865 function getStyleguideWidget() {
866 return document.querySelector('.dialog-styleguide-message');
867 }
868
869 /**
870 * Listen to an event from the Styleguide e-component to mount or unmount the app.
871 */
872 window.addEventListener('message', function (event) {
873 var _event$data;
874 if (!((_event$data = event.data) !== null && _event$data !== void 0 && (_event$data = _event$data.name) !== null && _event$data !== void 0 && _event$data.startsWith('elementor/styleguide/preview')) || !getStyleguideWidget()) {
875 return;
876 }
877 switch (event.data.name) {
878 case 'elementor/styleguide/preview/show':
879 mount();
880 break;
881 case 'elementor/styleguide/preview/hide':
882 unmount();
883 break;
884 }
885 });
886 })();
887 })();
888
889 /******/ })()
890 ;
891 //# sourceMappingURL=styleguide-app-initiator.js.map