PluginProbe
Elementor Website Builder – more than just a page builder / 3.17.0-dev3
Elementor Website Builder – more than just a page builder v3.17.0-dev3
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.17.0-dev3, at assets/js/styleguide-app-initiator.js

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