packages
1 month ago
00f53f1b378f6c98c043.bundle.min.js
4 months ago
0352e30f394e8e1dd4dc.bundle.js
2 months ago
0982f37bec0944fbcb10.bundle.js
4 months ago
0bc41c4656ca54cf2aca.bundle.min.js
4 months ago
137ba3baf43f287996c2.bundle.min.js
4 months ago
1564d2bfa4591bf857f3.bundle.min.js
4 months ago
197583acd246fea0e25d.bundle.js
5 months ago
1f7fa1d64dd4cef4a3c0.bundle.js
4 months ago
2140afa714e988f1069e.bundle.js
2 months ago
32f7c5e8db4c8976b254.bundle.js
2 months ago
35423d812dc1d52fdb27.bundle.min.js
4 months ago
397f2d183c19202777d6.bundle.min.js
3 months ago
397f2d183c19202777d6.bundle.min.js.LICENSE.txt
3 months ago
3c18b6eb4e735ca7e8bf.bundle.js
4 months ago
3c838288a9b7ddd2aea4.bundle.min.js
4 months ago
3d1613aca86991103452.bundle.min.js
4 months ago
3d410a099008411bb011.bundle.js
5 months ago
3df4dbb5d612dbdab477.bundle.min.js
2 months ago
40d841f4b4ce7b1928f5.bundle.js
4 months ago
4246c56134ca9ba65163.bundle.js
4 months ago
435080452e81c388e779.bundle.min.js
2 months ago
4812775bcbc0ff8a9043.bundle.min.js
4 months ago
4886b33c17731474e197.bundle.min.js
4 months ago
4927500be197e062162e.bundle.min.js
2 months ago
52ff17c2f566e528dc72.bundle.js
2 months ago
5b13d0f77c0ac139c979.bundle.js
4 months ago
5b74c81f4d425912a202.bundle.min.js
2 months ago
6117d083decd13b6ed73.bundle.js
2 months ago
64b3c0850f66b46478fb.bundle.min.js
2 months ago
6844b6c0a66040e3ca12.bundle.js
2 months ago
6a19e86dd8c1f9165dbe.bundle.js
5 months ago
6caa76d2f6eec6c4e665.bundle.js
3 months ago
6cb9e42b9b73a76315e0.bundle.js
4 months ago
6d09ff0398a56a60654b.bundle.min.js
3 months ago
6f779545aaa23e951088.bundle.min.js
2 months ago
72459a35b6570acc77f3.bundle.js
4 months ago
7745b82dc4a05385ef1f.bundle.js
4 months ago
78dd4dee6173d40eb75a.bundle.min.js
2 months ago
7dae73b622bebe8a5d94.bundle.js
4 months ago
7f2c78456ab3f406f3df.bundle.js
4 months ago
8277989eebcfba278cb0.bundle.min.js
7 months ago
84288e5699f5d8b8b23e.bundle.min.js
4 months ago
877227b9d759b63096a9.bundle.js
4 months ago
8ac2c6e532225b54dba2.bundle.js
4 months ago
8b4f35f99eb521b37d0c.bundle.js
4 months ago
8e5b42844d27eada9b53.bundle.min.js
2 months ago
8e80438d29fc79b648e5.bundle.js
2 months ago
8e8b47ad5b4e4d038c80.bundle.js
4 months ago
8ecfd8495b7ec419862a.bundle.js
4 months ago
979a9c03fe10da23400d.bundle.js
2 months ago
9832c866a8fe9b51f9d2.bundle.min.js
4 months ago
9b97a73ee8fdc5fb7dc3.bundle.js
3 months ago
9bd390911e34b349d8cb.bundle.min.js
2 months ago
9dcd9e88237da6496816.bundle.min.js
4 months ago
9e7e356552c03a622b0f.bundle.js
2 months ago
a2ea929f439e819b924b.bundle.min.js
4 months ago
a9f41949787209626737.bundle.min.js
4 months ago
ac53273f887639e3c6ea.bundle.min.js
4 months ago
accordion.8b0db5058afeb74622f5.bundle.min.js
7 months ago
accordion.b9a0ab19c7c872c405d7.bundle.js
5 months ago
admin-feedback.js
7 months ago
admin-feedback.min.js
7 months ago
admin-feedback.strings.js
2 months ago
admin-modules.js
5 months ago
admin-modules.min.js
5 months ago
admin-modules.min.js.LICENSE.txt
9 months ago
admin-modules.strings.js
1 month ago
admin-notifications.js
7 months ago
admin-notifications.min.js
7 months ago
admin-notifications.strings.js
5 months ago
admin-top-bar.js
2 months ago
admin-top-bar.min.js
2 months ago
admin-top-bar.strings.js
5 months ago
admin.js
2 months ago
admin.min.js
2 months ago
admin.min.js.LICENSE.txt
9 months ago
admin.strings.js
5 months ago
aee13673e923469c3275.bundle.min.js
4 months ago
ai-admin.js
5 months ago
ai-admin.min.js
5 months ago
ai-admin.min.js.LICENSE.txt
9 months ago
ai-admin.strings.js
5 months ago
ai-gutenberg.js
5 months ago
ai-gutenberg.min.js
5 months ago
ai-gutenberg.min.js.LICENSE.txt
9 months ago
ai-gutenberg.strings.js
5 months ago
ai-layout.js
3 months ago
ai-layout.min.js
3 months ago
ai-layout.min.js.LICENSE.txt
9 months ago
ai-layout.strings.js
2 months ago
ai-media-library.js
5 months ago
ai-media-library.min.js
5 months ago
ai-media-library.min.js.LICENSE.txt
9 months ago
ai-media-library.strings.js
5 months ago
ai-unify-product-images.js
5 months ago
ai-unify-product-images.min.js
5 months ago
ai-unify-product-images.min.js.LICENSE.txt
9 months ago
ai-unify-product-images.strings.js
5 months ago
ai.js
5 months ago
ai.min.js
5 months ago
ai.min.js.LICENSE.txt
9 months ago
ai.strings.js
1 month ago
alert.42cc1d522ef5c60bf874.bundle.min.js
7 months ago
alert.fd509aa768e7b35a8e32.bundle.js
5 months ago
announcements-app.js
2 months ago
announcements-app.min.js
2 months ago
announcements-app.min.js.LICENSE.txt
9 months ago
announcements-app.strings.js
5 months ago
app-loader.js
5 months ago
app-loader.min.js
7 months ago
app-loader.strings.js
1 month ago
app-packages.js
4 months ago
app-packages.min.js
4 months ago
app-packages.min.js.LICENSE.txt
9 months ago
app-packages.strings.js
1 month ago
app.js
2 months ago
app.min.js
2 months ago
app.min.js.LICENSE.txt
9 months ago
app.strings.js
1 month ago
atomic-widgets-editor.js
1 month ago
atomic-widgets-editor.min.js
1 month ago
atomic-widgets-editor.min.js.LICENSE.txt
4 months ago
atomic-widgets-editor.strings.js
2 months ago
atomic-widgets-frontend-handler.js
1 month ago
atomic-widgets-frontend-handler.min.js
1 month ago
b09b262748a4be8417ce.bundle.js
4 months ago
b668f6906820570e60b5.bundle.min.js
4 months ago
b96d70044d0d67c2df19.bundle.min.js
7 months ago
b97ced1683f62f5686fa.bundle.min.js
4 months ago
bcb5135af6b817bc9708.bundle.min.js
2 months ago
beta-tester.js
7 months ago
beta-tester.min.js
7 months ago
beta-tester.strings.js
5 months ago
bff204c1ab0d15e0a69b.bundle.min.js
4 months ago
c13d205fa26f8af1ce7c.bundle.js
5 months ago
cf6ec600fcf4e08ba6d3.bundle.js
4 months ago
checklist.js
5 months ago
checklist.min.js
5 months ago
checklist.min.js.LICENSE.txt
9 months ago
checklist.strings.js
5 months ago
cloud-library-screenshot.js
5 months ago
cloud-library-screenshot.min.js
5 months ago
cloud-library-screenshot.min.js.LICENSE.txt
7 months ago
cloud-library-screenshot.strings.js
5 months ago
common-modules.js
2 months ago
common-modules.min.js
2 months ago
common-modules.strings.js
5 months ago
common.js
1 month ago
common.min.js
1 month ago
common.min.js.LICENSE.txt
9 months ago
common.strings.js
5 months ago
contact-buttons.086261d3e9c4d8037686.bundle.js
5 months ago
contact-buttons.e98d0220ce8c38404e7e.bundle.min.js
7 months ago
container-converter.js
7 months ago
container-converter.min.js
7 months ago
container-converter.strings.js
5 months ago
container-editor-handlers.a2e8e48d28c5544fb183.bundle.min.js
4 months ago
container-editor-handlers.e7e069c4e656425c51f8.bundle.js
4 months ago
counter.12335f45aaa79d244f24.bundle.min.js
7 months ago
counter.7310c276bc7865a3d438.bundle.js
5 months ago
d245aa80c28d9ec3617d.bundle.js
2 months ago
d42de03ef4a0f50e39ca.bundle.min.js
4 months ago
d4c67aa71d8173f6201f.bundle.js
2 months ago
d52aa05c75af56327744.bundle.js
5 months ago
d67ddd6f08b08392c42f.bundle.js
5 months ago
daedc6797eaad5c82711.bundle.min.js
7 months ago
db27207322ef9be952ee.bundle.js
4 months ago
design-system-sync.js
1 month ago
design-system-sync.min.js
1 month ago
design-system-sync.strings.js
2 months ago
dev-tools.js
7 months ago
dev-tools.min.js
7 months ago
dev-tools.strings.js
5 months ago
df2f2a2ae20e0181ec2d.bundle.js
2 months ago
e-home-screen.js
2 months ago
e-home-screen.min.js
2 months ago
e-home-screen.strings.js
2 months ago
e-react-promotions.js
1 month ago
e-react-promotions.min.js
1 month ago
e-react-promotions.min.js.LICENSE.txt
1 month ago
e-react-promotions.strings.js
5 months ago
e-wc-product-editor.js
5 months ago
e-wc-product-editor.min.js
7 months ago
e-wc-product-editor.min.js.LICENSE.txt
1 year ago
e-wc-product-editor.strings.js
5 months ago
e1cb4d726bb59646c677.bundle.min.js
7 months ago
e3b540e2c02813e75f38.bundle.min.js
4 months ago
e459c6c89c0c0899c850.bundle.js
5 months ago
e7d71f4e1d39edbc1fb6.bundle.js
4 months ago
eb5018119ee87fd6a7fc.bundle.min.js
2 months ago
editor-document.js
5 months ago
editor-document.min.js
7 months ago
editor-document.strings.js
1 month ago
editor-environment-v2.js
7 months ago
editor-environment-v2.min.js
7 months ago
editor-environment-v2.strings.js
5 months ago
editor-interactions.js
2 months ago
editor-interactions.min.js
2 months ago
editor-interactions.strings.js
5 months ago
editor-loader-v1.js
7 months ago
editor-loader-v1.min.js
7 months ago
editor-loader-v1.strings.js
5 months ago
editor-loader-v2.js
7 months ago
editor-loader-v2.min.js
7 months ago
editor-loader-v2.strings.js
5 months ago
editor-modules.js
2 months ago
editor-modules.min.js
2 months ago
editor-modules.min.js.LICENSE.txt
9 months ago
editor-modules.strings.js
1 month ago
editor-notifications.js
7 months ago
editor-notifications.min.js
7 months ago
editor-notifications.strings.js
5 months ago
editor-one-admin.js
5 months ago
editor-one-admin.min.js
5 months ago
editor-one-admin.strings.js
5 months ago
editor-one-menu.js
4 months ago
editor-one-menu.min.js
4 months ago
editor-one-menu.strings.js
5 months ago
editor-one-sidebar-navigation.js
2 months ago
editor-one-sidebar-navigation.min.js
2 months ago
editor-one-sidebar-navigation.min.js.LICENSE.txt
5 months ago
editor-one-sidebar-navigation.strings.js
5 months ago
editor-one-top-bar.js
2 months ago
editor-one-top-bar.min.js
2 months ago
editor-one-top-bar.min.js.LICENSE.txt
4 months ago
editor-one-top-bar.strings.js
4 months ago
editor-v4-opt-in-alphachip.js
2 months ago
editor-v4-opt-in-alphachip.min.js
2 months ago
editor-v4-opt-in-alphachip.strings.js
2 months ago
editor-v4-opt-in.js
2 months ago
editor-v4-opt-in.min.js
2 months ago
editor-v4-opt-in.min.js.LICENSE.txt
5 months ago
editor-v4-opt-in.strings.js
2 months ago
editor.js
1 month ago
editor.min.js
1 month ago
editor.min.js.LICENSE.txt
5 months ago
editor.strings.js
5 months ago
ef2100ac3eda1a957819.bundle.min.js
7 months ago
ef35c83e4628f0a5c328.bundle.js
4 months ago
element-manager-admin.js
2 months ago
element-manager-admin.min.js
2 months ago
element-manager-admin.min.js.LICENSE.txt
9 months ago
element-manager-admin.strings.js
2 months ago
elementor-admin-bar.js
7 months ago
elementor-admin-bar.min.js
7 months ago
elementor-admin-bar.strings.js
5 months ago
f56b0d1257a5346afe64.bundle.min.js
2 months ago
fdda4547e887fbda71b3.bundle.js
2 months ago
fdf69f4e1f300fb27472.bundle.min.js
2 months ago
floating-bars.740d06d17cea5cebdb61.bundle.min.js
7 months ago
floating-bars.a6e6a043444b62f64f82.bundle.js
5 months ago
floating-elements-modal.js
2 months ago
floating-elements-modal.min.js
2 months ago
floating-elements-modal.strings.js
5 months ago
frontend-modules.js
2 months ago
frontend-modules.min.js
2 months ago
frontend.js
3 months ago
frontend.min.js
3 months ago
gutenberg.js
7 months ago
gutenberg.min.js
7 months ago
gutenberg.strings.js
2 months ago
image-carousel.6167d20b95b33386757b.bundle.min.js
7 months ago
image-carousel.8b25f3674c29b829a867.bundle.js
5 months ago
import-export-admin.js
5 months ago
import-export-admin.min.js
5 months ago
import-export-admin.strings.js
1 month ago
import-export-customization-admin.js
2 months ago
import-export-customization-admin.min.js
2 months ago
import-export-customization-admin.min.js.LICENSE.txt
7 months ago
import-export-customization-admin.strings.js
1 month ago
interactions-shared-utils.js
2 months ago
interactions-shared-utils.min.js
2 months ago
interactions-shared-utils.strings.js
2 months ago
interactions.js
1 month ago
interactions.min.js
1 month ago
interactions.strings.js
5 months ago
kit-elements-defaults-editor.js
5 months ago
kit-elements-defaults-editor.min.js
5 months ago
kit-elements-defaults-editor.min.js.LICENSE.txt
9 months ago
kit-elements-defaults-editor.strings.js
5 months ago
kit-library.a394510096bc447f636d.bundle.min.js
2 months ago
kit-library.b768952e1d4177aa68d8.bundle.js
2 months ago
lightbox.570c05c5a283cfb6b223.bundle.min.js
3 months ago
lightbox.d9ea72d232a14f514ee2.bundle.js
3 months ago
media-hints.js
7 months ago
media-hints.min.js
7 months ago
media-hints.strings.js
5 months ago
nested-accordion.294d40984397351fd0f5.bundle.min.js
4 months ago
nested-accordion.4340b64226322f36bcc0.bundle.js
4 months ago
nested-accordion.js
5 months ago
nested-accordion.min.js
5 months ago
nested-accordion.min.js.LICENSE.txt
9 months ago
nested-accordion.strings.js
5 months ago
nested-elements.js
3 months ago
nested-elements.min.js
3 months ago
nested-elements.strings.js
5 months ago
nested-tabs.7a338e6d7e060c473993.bundle.js
5 months ago
nested-tabs.a2401356d329f179475e.bundle.min.js
5 months ago
nested-tabs.js
5 months ago
nested-tabs.min.js
5 months ago
nested-tabs.min.js.LICENSE.txt
9 months ago
nested-tabs.strings.js
5 months ago
nested-title-keyboard-handler.0c2b498e3e0695a1dc19.bundle.js
5 months ago
nested-title-keyboard-handler.2a67d3cc630e11815acc.bundle.min.js
5 months ago
new-template.js
4 months ago
new-template.min.js
4 months ago
new-template.strings.js
5 months ago
notes.js
7 months ago
notes.min.js
7 months ago
notes.strings.js
5 months ago
pro-free-trial-popup.js
7 months ago
pro-free-trial-popup.min.js
7 months ago
pro-free-trial-popup.strings.js
5 months ago
pro-install-events.js
7 months ago
pro-install-events.min.js
7 months ago
pro-install-events.strings.js
5 months ago
progress.0ea083b809812c0e3aa1.bundle.min.js
7 months ago
progress.b1057ba870016558bce1.bundle.js
5 months ago
responsive-bar.js
7 months ago
responsive-bar.min.js
7 months ago
responsive-bar.strings.js
5 months ago
section-editor-handlers.53ffedef32043348b99b.bundle.min.js
7 months ago
section-editor-handlers.d65899d232b5339510d7.bundle.js
5 months ago
section-frontend-handlers.c3950c6b190ca134bc8d.bundle.js
5 months ago
section-frontend-handlers.d85ab872da118940910d.bundle.min.js
7 months ago
shared-editor-handlers.3023894100138e442ab0.bundle.js
4 months ago
shared-editor-handlers.cacdcbed391abf4b48b0.bundle.min.js
4 months ago
shared-frontend-handlers.03caa53373b56d3bab67.bundle.min.js
7 months ago
shared-frontend-handlers.3b079824c37a5fe2bdaa.bundle.js
5 months ago
styleguide-app-initiator.js
5 months ago
styleguide-app-initiator.min.js
5 months ago
styleguide-app-initiator.min.js.LICENSE.txt
9 months ago
styleguide-app-initiator.strings.js
5 months ago
styleguide-app.04340244193733d78622.bundle.min.js
7 months ago
styleguide-app.36ecabae74d9b87fc5a8.bundle.js
5 months ago
styleguide.js
7 months ago
styleguide.min.js
7 months ago
styleguide.strings.js
3 months ago
tabs-handler.js
2 months ago
tabs-handler.min.js
2 months ago
tabs-preview-handler.js
5 months ago
tabs-preview-handler.min.js
5 months ago
tabs.18344b05d8d1ea0702bc.bundle.min.js
7 months ago
tabs.40498fa771d612162c53.bundle.js
5 months ago
text-editor.0c9960167105139d27c9.bundle.js
5 months ago
text-editor.45609661e409413f1cef.bundle.min.js
7 months ago
text-path.6db73cc0a10a70f128eb.bundle.js
3 months ago
text-path.a67c1f3a78d208bc7e1b.bundle.min.js
3 months ago
toggle.2a177a3ef4785d3dfbc5.bundle.min.js
7 months ago
toggle.b75e66d2aca6f6ee742e.bundle.js
5 months ago
video.6e96510afa701d1f2ebc.bundle.js
5 months ago
video.86d44e46e43d0807e708.bundle.min.js
7 months ago
web-cli.js
5 months ago
web-cli.min.js
5 months ago
web-cli.min.js.LICENSE.txt
9 months ago
web-cli.strings.js
5 months ago
webpack.runtime.js
3 months ago
webpack.runtime.min.js
3 months ago
wp-audio.0ba9114964acf4c37ca2.bundle.js
5 months ago
wp-audio.c9624cb6e5dc9de86abd.bundle.min.js
7 months ago
youtube-handler.js
5 months ago
youtube-handler.min.js
5 months ago
editor-document.js
1628 lines
| 1 | /******/ (() => { // webpackBootstrap |
| 2 | /******/ var __webpack_modules__ = ({ |
| 3 | |
| 4 | /***/ "../assets/dev/js/editor/command-bases/command-container-base.js": |
| 5 | /*!***********************************************************************!*\ |
| 6 | !*** ../assets/dev/js/editor/command-bases/command-container-base.js ***! |
| 7 | \***********************************************************************/ |
| 8 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 9 | |
| 10 | "use strict"; |
| 11 | |
| 12 | |
| 13 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 14 | Object.defineProperty(exports, "__esModule", ({ |
| 15 | value: true |
| 16 | })); |
| 17 | exports["default"] = void 0; |
| 18 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 19 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 20 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 21 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 22 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 23 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 24 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 25 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 26 | /** |
| 27 | * @name $e.modules.editor.CommandContainerBase |
| 28 | */ |
| 29 | var CommandContainerBase = exports["default"] = /*#__PURE__*/function (_CommandBase) { |
| 30 | function CommandContainerBase() { |
| 31 | (0, _classCallCheck2.default)(this, CommandContainerBase); |
| 32 | return _callSuper(this, CommandContainerBase, arguments); |
| 33 | } |
| 34 | (0, _inherits2.default)(CommandContainerBase, _CommandBase); |
| 35 | return (0, _createClass2.default)(CommandContainerBase, [{ |
| 36 | key: "requireContainer", |
| 37 | value: |
| 38 | /** |
| 39 | * Function requireContainer(). |
| 40 | * |
| 41 | * Validate `arg.container` & `arg.containers`. |
| 42 | * |
| 43 | * @param {{}} args |
| 44 | * |
| 45 | * @throws {Error} |
| 46 | */ |
| 47 | function requireContainer() { |
| 48 | var _this = this; |
| 49 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 50 | if (!args.container && !args.containers) { |
| 51 | throw Error('container or containers are required.'); |
| 52 | } |
| 53 | if (args.container && args.containers) { |
| 54 | throw Error('container and containers cannot go together please select one of them.'); |
| 55 | } |
| 56 | var containers = args.containers || [args.container]; |
| 57 | containers.forEach(function (container) { |
| 58 | _this.requireArgumentInstance('container', elementorModules.editor.Container, { |
| 59 | container: container |
| 60 | }); |
| 61 | }); |
| 62 | } |
| 63 | }], [{ |
| 64 | key: "getInstanceType", |
| 65 | value: function getInstanceType() { |
| 66 | return 'CommandContainerBase'; |
| 67 | } |
| 68 | }]); |
| 69 | }(_commandBase.default); |
| 70 | |
| 71 | /***/ }), |
| 72 | |
| 73 | /***/ "../assets/dev/js/editor/command-bases/command-container-internal-base.js": |
| 74 | /*!********************************************************************************!*\ |
| 75 | !*** ../assets/dev/js/editor/command-bases/command-container-internal-base.js ***! |
| 76 | \********************************************************************************/ |
| 77 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 78 | |
| 79 | "use strict"; |
| 80 | |
| 81 | |
| 82 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 83 | Object.defineProperty(exports, "__esModule", ({ |
| 84 | value: true |
| 85 | })); |
| 86 | exports["default"] = void 0; |
| 87 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 88 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 89 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 90 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 91 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 92 | var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); |
| 93 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 94 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 95 | /** |
| 96 | * @name $e.modules.editor.CommandContainerInternalBase |
| 97 | */ |
| 98 | var CommandContainerInternalBase = exports["default"] = /*#__PURE__*/function (_CommandContainerBase) { |
| 99 | function CommandContainerInternalBase(args) { |
| 100 | (0, _classCallCheck2.default)(this, CommandContainerInternalBase); |
| 101 | return _callSuper(this, CommandContainerInternalBase, [args, $e.commandsInternal]); |
| 102 | } |
| 103 | (0, _inherits2.default)(CommandContainerInternalBase, _CommandContainerBase); |
| 104 | return (0, _createClass2.default)(CommandContainerInternalBase, null, [{ |
| 105 | key: "getInstanceType", |
| 106 | value: function getInstanceType() { |
| 107 | return 'CommandContainerInternalBase'; |
| 108 | } |
| 109 | }]); |
| 110 | }(_commandContainerBase.default); |
| 111 | |
| 112 | /***/ }), |
| 113 | |
| 114 | /***/ "../assets/dev/js/editor/document/command-bases/command-history-base.js": |
| 115 | /*!******************************************************************************!*\ |
| 116 | !*** ../assets/dev/js/editor/document/command-bases/command-history-base.js ***! |
| 117 | \******************************************************************************/ |
| 118 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 119 | |
| 120 | "use strict"; |
| 121 | |
| 122 | |
| 123 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 124 | Object.defineProperty(exports, "__esModule", ({ |
| 125 | value: true |
| 126 | })); |
| 127 | exports["default"] = void 0; |
| 128 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 129 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 130 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 131 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 132 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 133 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 134 | var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! elementor-editor/command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); |
| 135 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 136 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 137 | function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } |
| 138 | /** |
| 139 | * @name $e.modules.editor.document.CommandHistoryBase |
| 140 | */ |
| 141 | var CommandHistoryBase = exports["default"] = /*#__PURE__*/function (_CommandContainerBase) { |
| 142 | function CommandHistoryBase() { |
| 143 | (0, _classCallCheck2.default)(this, CommandHistoryBase); |
| 144 | return _callSuper(this, CommandHistoryBase, arguments); |
| 145 | } |
| 146 | (0, _inherits2.default)(CommandHistoryBase, _CommandContainerBase); |
| 147 | return (0, _createClass2.default)(CommandHistoryBase, [{ |
| 148 | key: "initialize", |
| 149 | value: function initialize() { |
| 150 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 151 | var _args$options = args.options, |
| 152 | options = _args$options === void 0 ? {} : _args$options, |
| 153 | _options$useHistory = options.useHistory, |
| 154 | useHistory = _options$useHistory === void 0 ? true : _options$useHistory; |
| 155 | if (useHistory) { |
| 156 | /** |
| 157 | * Get History from child command. |
| 158 | * |
| 159 | * @type {{}|boolean} |
| 160 | */ |
| 161 | this.history = this.getHistory(args); |
| 162 | |
| 163 | /** |
| 164 | * @type {number|boolean} |
| 165 | */ |
| 166 | this.historyId = false; |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | // eslint-disable-next-line jsdoc/require-returns-check |
| 171 | /** |
| 172 | * Function getHistory(). |
| 173 | * |
| 174 | * Get history object from child, do nothing if it false. |
| 175 | * |
| 176 | * @param {*} [args={}] |
| 177 | * |
| 178 | * @return {({}|boolean)} history object |
| 179 | */ |
| 180 | }, { |
| 181 | key: "getHistory", |
| 182 | value: function getHistory() { |
| 183 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 184 | // eslint-disable-line no-unused-vars |
| 185 | elementorModules.ForceMethodImplementation(); |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Function isHistoryActive(). |
| 190 | * |
| 191 | * Return `elementor.documents.getCurrent().history.getActive()`. |
| 192 | * |
| 193 | * @return {boolean} is history active |
| 194 | */ |
| 195 | }, { |
| 196 | key: "isHistoryActive", |
| 197 | value: function isHistoryActive() { |
| 198 | return elementor.documents.getCurrent().history.getActive(); |
| 199 | } |
| 200 | }, { |
| 201 | key: "onBeforeRun", |
| 202 | value: function onBeforeRun(args) { |
| 203 | _superPropGet(CommandHistoryBase, "onBeforeRun", this, 3)([args]); |
| 204 | if (this.history && this.isHistoryActive()) { |
| 205 | this.historyId = $e.internal('document/history/start-log', this.history); |
| 206 | } |
| 207 | } |
| 208 | }, { |
| 209 | key: "onAfterRun", |
| 210 | value: function onAfterRun(args, result) { |
| 211 | _superPropGet(CommandHistoryBase, "onAfterRun", this, 3)([args, result]); |
| 212 | if (this.history && this.isHistoryActive()) { |
| 213 | $e.internal('document/history/end-log', { |
| 214 | id: this.historyId |
| 215 | }); |
| 216 | } |
| 217 | } |
| 218 | }, { |
| 219 | key: "onAfterApply", |
| 220 | value: function onAfterApply() { |
| 221 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 222 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 223 | _superPropGet(CommandHistoryBase, "onAfterApply", this, 3)([args, result]); |
| 224 | if (this.isDataChanged()) { |
| 225 | $e.internal('document/save/set-is-modified', { |
| 226 | status: true |
| 227 | }); |
| 228 | } |
| 229 | } |
| 230 | }, { |
| 231 | key: "onCatchApply", |
| 232 | value: function onCatchApply(e) { |
| 233 | // Rollback history on failure. |
| 234 | if (e instanceof $e.modules.HookBreak && this.historyId) { |
| 235 | $e.internal('document/history/delete-log', { |
| 236 | id: this.historyId |
| 237 | }); |
| 238 | } |
| 239 | _superPropGet(CommandHistoryBase, "onCatchApply", this, 3)([e]); |
| 240 | } |
| 241 | }, { |
| 242 | key: "isDataChanged", |
| 243 | value: function isDataChanged() { |
| 244 | // All the commands who use history are commands that changing the data. |
| 245 | return true; |
| 246 | } |
| 247 | }], [{ |
| 248 | key: "getInstanceType", |
| 249 | value: function getInstanceType() { |
| 250 | return 'CommandHistoryBase'; |
| 251 | } |
| 252 | }]); |
| 253 | }(_commandContainerBase.default); |
| 254 | |
| 255 | /***/ }), |
| 256 | |
| 257 | /***/ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js": |
| 258 | /*!***************************************************************************************!*\ |
| 259 | !*** ../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js ***! |
| 260 | \***************************************************************************************/ |
| 261 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 262 | |
| 263 | "use strict"; |
| 264 | |
| 265 | |
| 266 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 267 | Object.defineProperty(exports, "__esModule", ({ |
| 268 | value: true |
| 269 | })); |
| 270 | exports.getDefaultDebounceDelay = exports["default"] = exports.DEFAULT_DEBOUNCE_DELAY = void 0; |
| 271 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 272 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 273 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 274 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 275 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 276 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 277 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 278 | var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! ./command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js")); |
| 279 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 280 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 281 | function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } |
| 282 | var DEFAULT_DEBOUNCE_DELAY = exports.DEFAULT_DEBOUNCE_DELAY = 800; |
| 283 | |
| 284 | /** |
| 285 | * Function getDefaultDebounceDelay(). |
| 286 | * |
| 287 | * Returns default debounce delay time, if exists in config override. |
| 288 | * |
| 289 | * @return {number} default debounce delay time |
| 290 | */ |
| 291 | var getDefaultDebounceDelay = exports.getDefaultDebounceDelay = function getDefaultDebounceDelay() { |
| 292 | var result = DEFAULT_DEBOUNCE_DELAY; |
| 293 | if (elementor.config.document && undefined !== elementor.config.document.debounceDelay) { |
| 294 | result = elementor.config.document.debounceDelay; |
| 295 | } |
| 296 | return result; |
| 297 | }; |
| 298 | |
| 299 | /** |
| 300 | * @name $e.modules.editor.document.CommandHistoryDebounceBase |
| 301 | */ |
| 302 | var CommandHistoryDebounceBase = exports["default"] = /*#__PURE__*/function (_CommandHistoryBase) { |
| 303 | function CommandHistoryDebounceBase() { |
| 304 | (0, _classCallCheck2.default)(this, CommandHistoryDebounceBase); |
| 305 | return _callSuper(this, CommandHistoryDebounceBase, arguments); |
| 306 | } |
| 307 | (0, _inherits2.default)(CommandHistoryDebounceBase, _CommandHistoryBase); |
| 308 | return (0, _createClass2.default)(CommandHistoryDebounceBase, [{ |
| 309 | key: "initialize", |
| 310 | value: function initialize(args) { |
| 311 | var _args$options = args.options, |
| 312 | options = _args$options === void 0 ? {} : _args$options; |
| 313 | _superPropGet(CommandHistoryDebounceBase, "initialize", this, 3)([args]); |
| 314 | if (!this.constructor.debounce) { |
| 315 | this.constructor.debounce = _.debounce(function (fn) { |
| 316 | return fn(); |
| 317 | }, getDefaultDebounceDelay()); |
| 318 | } |
| 319 | |
| 320 | // If its head command, and not called within another command. |
| 321 | if (1 === $e.commands.currentTrace.length || options.debounce) { |
| 322 | this.isDebounceRequired = true; |
| 323 | } |
| 324 | } |
| 325 | }, { |
| 326 | key: "onBeforeRun", |
| 327 | value: function onBeforeRun(args) { |
| 328 | $e.modules.CommandBase.prototype.onBeforeRun.call(this, args); |
| 329 | if (this.history && this.isHistoryActive()) { |
| 330 | $e.internal('document/history/add-transaction', this.history); |
| 331 | } |
| 332 | } |
| 333 | }, { |
| 334 | key: "onAfterRun", |
| 335 | value: function onAfterRun(args, result) { |
| 336 | $e.modules.CommandBase.prototype.onAfterRun.call(this, args, result); |
| 337 | if (this.isHistoryActive()) { |
| 338 | if (this.isDebounceRequired) { |
| 339 | this.constructor.debounce(function () { |
| 340 | return $e.internal('document/history/end-transaction'); |
| 341 | }); |
| 342 | } else { |
| 343 | $e.internal('document/history/end-transaction'); |
| 344 | } |
| 345 | } |
| 346 | } |
| 347 | }, { |
| 348 | key: "onCatchApply", |
| 349 | value: function onCatchApply(e) { |
| 350 | $e.modules.CommandBase.prototype.onCatchApply.call(this, e); |
| 351 | |
| 352 | // Rollback history on failure. |
| 353 | if (e instanceof $e.modules.HookBreak && this.history) { |
| 354 | if (this.isDebounceRequired) { |
| 355 | // `clear-transaction` is under debounce, because it should `clear-transaction` after `end-transaction`. |
| 356 | this.constructor.debounce(function () { |
| 357 | return $e.internal('document/history/clear-transaction'); |
| 358 | }); |
| 359 | } else { |
| 360 | $e.internal('document/history/clear-transaction'); |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | }], [{ |
| 365 | key: "getInstanceType", |
| 366 | value: function getInstanceType() { |
| 367 | return 'CommandHistoryDebounceBase'; |
| 368 | } |
| 369 | }]); |
| 370 | }(_commandHistoryBase.default); |
| 371 | /** |
| 372 | * Function debounce(). |
| 373 | * |
| 374 | * Will debounce every function you pass in, at the same debounce flow. |
| 375 | * |
| 376 | * @param {Function} |
| 377 | */ |
| 378 | (0, _defineProperty2.default)(CommandHistoryDebounceBase, "debounce", undefined); |
| 379 | |
| 380 | /***/ }), |
| 381 | |
| 382 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 383 | /*!******************************************************!*\ |
| 384 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 385 | \******************************************************/ |
| 386 | /***/ ((__unused_webpack_module, exports) => { |
| 387 | |
| 388 | "use strict"; |
| 389 | |
| 390 | |
| 391 | Object.defineProperty(exports, "__esModule", ({ |
| 392 | value: true |
| 393 | })); |
| 394 | exports["default"] = void 0; |
| 395 | function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } |
| 396 | function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } } |
| 397 | function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } |
| 398 | /** |
| 399 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 400 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 401 | * check whether it's instanceof by using the objects constructor and prototype names. |
| 402 | * |
| 403 | * @param object |
| 404 | * @param constructors |
| 405 | * @return {boolean} |
| 406 | */ |
| 407 | var _default = exports["default"] = function _default(object, constructors) { |
| 408 | constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 409 | var _iterator = _createForOfIteratorHelper(constructors), |
| 410 | _step; |
| 411 | try { |
| 412 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 413 | var constructor = _step.value; |
| 414 | if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { |
| 415 | return true; |
| 416 | } |
| 417 | } |
| 418 | } catch (err) { |
| 419 | _iterator.e(err); |
| 420 | } finally { |
| 421 | _iterator.f(); |
| 422 | } |
| 423 | return false; |
| 424 | }; |
| 425 | |
| 426 | /***/ }), |
| 427 | |
| 428 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| 429 | /*!*******************************************************!*\ |
| 430 | !*** ../assets/dev/js/modules/imports/args-object.js ***! |
| 431 | \*******************************************************/ |
| 432 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 433 | |
| 434 | "use strict"; |
| 435 | |
| 436 | |
| 437 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 438 | Object.defineProperty(exports, "__esModule", ({ |
| 439 | value: true |
| 440 | })); |
| 441 | exports["default"] = void 0; |
| 442 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 443 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 444 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 445 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 446 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 447 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 448 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 449 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 450 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 451 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 452 | var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { |
| 453 | /** |
| 454 | * Function constructor(). |
| 455 | * |
| 456 | * Create ArgsObject. |
| 457 | * |
| 458 | * @param {{}} args |
| 459 | */ |
| 460 | function ArgsObject(args) { |
| 461 | var _this; |
| 462 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 463 | _this = _callSuper(this, ArgsObject); |
| 464 | _this.args = args; |
| 465 | return _this; |
| 466 | } |
| 467 | |
| 468 | /** |
| 469 | * Function requireArgument(). |
| 470 | * |
| 471 | * Validate property in args. |
| 472 | * |
| 473 | * @param {string} property |
| 474 | * @param {{}} args |
| 475 | * |
| 476 | * @throws {Error} |
| 477 | */ |
| 478 | (0, _inherits2.default)(ArgsObject, _InstanceType); |
| 479 | return (0, _createClass2.default)(ArgsObject, [{ |
| 480 | key: "requireArgument", |
| 481 | value: function requireArgument(property) { |
| 482 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 483 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| 484 | throw Error("".concat(property, " is required.")); |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * Function requireArgumentType(). |
| 490 | * |
| 491 | * Validate property in args using `type === typeof(args.whatever)`. |
| 492 | * |
| 493 | * @param {string} property |
| 494 | * @param {string} type |
| 495 | * @param {{}} args |
| 496 | * |
| 497 | * @throws {Error} |
| 498 | */ |
| 499 | }, { |
| 500 | key: "requireArgumentType", |
| 501 | value: function requireArgumentType(property, type) { |
| 502 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 503 | this.requireArgument(property, args); |
| 504 | if ((0, _typeof2.default)(args[property]) !== type) { |
| 505 | throw Error("".concat(property, " invalid type: ").concat(type, ".")); |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | /** |
| 510 | * Function requireArgumentInstance(). |
| 511 | * |
| 512 | * Validate property in args using `args.whatever instanceof instance`. |
| 513 | * |
| 514 | * @param {string} property |
| 515 | * @param {*} instance |
| 516 | * @param {{}} args |
| 517 | * |
| 518 | * @throws {Error} |
| 519 | */ |
| 520 | }, { |
| 521 | key: "requireArgumentInstance", |
| 522 | value: function requireArgumentInstance(property, instance) { |
| 523 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 524 | this.requireArgument(property, args); |
| 525 | if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) { |
| 526 | throw Error("".concat(property, " invalid instance.")); |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | /** |
| 531 | * Function requireArgumentConstructor(). |
| 532 | * |
| 533 | * Validate property in args using `type === args.whatever.constructor`. |
| 534 | * |
| 535 | * @param {string} property |
| 536 | * @param {*} type |
| 537 | * @param {{}} args |
| 538 | * |
| 539 | * @throws {Error} |
| 540 | */ |
| 541 | }, { |
| 542 | key: "requireArgumentConstructor", |
| 543 | value: function requireArgumentConstructor(property, type) { |
| 544 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 545 | this.requireArgument(property, args); |
| 546 | |
| 547 | // Note: Converting the constructor to string in order to avoid equation issues |
| 548 | // due to different memory addresses between iframes (window.Object !== window.top.Object). |
| 549 | if (args[property].constructor.toString() !== type.prototype.constructor.toString()) { |
| 550 | throw Error("".concat(property, " invalid constructor type.")); |
| 551 | } |
| 552 | } |
| 553 | }], [{ |
| 554 | key: "getInstanceType", |
| 555 | value: function getInstanceType() { |
| 556 | return 'ArgsObject'; |
| 557 | } |
| 558 | }]); |
| 559 | }(_instanceType.default); |
| 560 | |
| 561 | /***/ }), |
| 562 | |
| 563 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| 564 | /*!*********************************************************!*\ |
| 565 | !*** ../assets/dev/js/modules/imports/instance-type.js ***! |
| 566 | \*********************************************************/ |
| 567 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 568 | |
| 569 | "use strict"; |
| 570 | |
| 571 | |
| 572 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 573 | Object.defineProperty(exports, "__esModule", ({ |
| 574 | value: true |
| 575 | })); |
| 576 | exports["default"] = void 0; |
| 577 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 578 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 579 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 580 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 581 | function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } |
| 582 | var InstanceType = exports["default"] = /*#__PURE__*/function () { |
| 583 | function InstanceType() { |
| 584 | var _this = this; |
| 585 | (0, _classCallCheck2.default)(this, InstanceType); |
| 586 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| 587 | var target = this instanceof InstanceType ? this.constructor : void 0; |
| 588 | var prototypes = []; |
| 589 | while (target.__proto__ && target.__proto__.name) { |
| 590 | prototypes.push(target.__proto__); |
| 591 | target = target.__proto__; |
| 592 | } |
| 593 | prototypes.reverse().forEach(function (proto) { |
| 594 | return _this instanceof proto; |
| 595 | }); |
| 596 | } |
| 597 | return (0, _createClass2.default)(InstanceType, null, [{ |
| 598 | key: Symbol.hasInstance, |
| 599 | value: function value(target) { |
| 600 | /** |
| 601 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 602 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 603 | * saving current class each time will give option later to handle instanceOf manually. |
| 604 | */ |
| 605 | var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); |
| 606 | |
| 607 | // Act normal when validate a class, which does not have instance type. |
| 608 | if (target && !target.constructor.getInstanceType) { |
| 609 | return result; |
| 610 | } |
| 611 | if (target) { |
| 612 | if (!target.instanceTypes) { |
| 613 | target.instanceTypes = []; |
| 614 | } |
| 615 | if (!result) { |
| 616 | if (this.getInstanceType() === target.constructor.getInstanceType()) { |
| 617 | result = true; |
| 618 | } |
| 619 | } |
| 620 | if (result) { |
| 621 | var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); |
| 622 | if (-1 === target.instanceTypes.indexOf(name)) { |
| 623 | target.instanceTypes.push(name); |
| 624 | } |
| 625 | } |
| 626 | } |
| 627 | if (!result && target) { |
| 628 | // Check if the given 'target', is instance of known types. |
| 629 | result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); |
| 630 | } |
| 631 | return result; |
| 632 | } |
| 633 | }, { |
| 634 | key: "getInstanceType", |
| 635 | value: function getInstanceType() { |
| 636 | elementorModules.ForceMethodImplementation(); |
| 637 | } |
| 638 | }]); |
| 639 | }(); |
| 640 | |
| 641 | /***/ }), |
| 642 | |
| 643 | /***/ "../modules/web-cli/assets/js/modules/command-base.js": |
| 644 | /*!************************************************************!*\ |
| 645 | !*** ../modules/web-cli/assets/js/modules/command-base.js ***! |
| 646 | \************************************************************/ |
| 647 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 648 | |
| 649 | "use strict"; |
| 650 | |
| 651 | |
| 652 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 653 | Object.defineProperty(exports, "__esModule", ({ |
| 654 | value: true |
| 655 | })); |
| 656 | exports["default"] = void 0; |
| 657 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 658 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 659 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 660 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 661 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 662 | var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); |
| 663 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 664 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 665 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 666 | /** |
| 667 | * @name $e.modules.CommandBase |
| 668 | */ |
| 669 | var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) { |
| 670 | function CommandBase() { |
| 671 | (0, _classCallCheck2.default)(this, CommandBase); |
| 672 | return _callSuper(this, CommandBase, arguments); |
| 673 | } |
| 674 | (0, _inherits2.default)(CommandBase, _CommandInfra); |
| 675 | return (0, _createClass2.default)(CommandBase, [{ |
| 676 | key: "onBeforeRun", |
| 677 | value: function onBeforeRun() { |
| 678 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 679 | $e.hooks.runUIBefore(this.command, args); |
| 680 | } |
| 681 | }, { |
| 682 | key: "onAfterRun", |
| 683 | value: function onAfterRun() { |
| 684 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 685 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 686 | $e.hooks.runUIAfter(this.command, args, result); |
| 687 | } |
| 688 | }, { |
| 689 | key: "onBeforeApply", |
| 690 | value: function onBeforeApply() { |
| 691 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 692 | $e.hooks.runDataDependency(this.command, args); |
| 693 | } |
| 694 | }, { |
| 695 | key: "onAfterApply", |
| 696 | value: function onAfterApply() { |
| 697 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 698 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 699 | return $e.hooks.runDataAfter(this.command, args, result); |
| 700 | } |
| 701 | }, { |
| 702 | key: "onCatchApply", |
| 703 | value: function onCatchApply(e) { |
| 704 | this.runCatchHooks(e); |
| 705 | } |
| 706 | |
| 707 | /** |
| 708 | * Run all the catch hooks. |
| 709 | * |
| 710 | * @param {Error} e |
| 711 | */ |
| 712 | }, { |
| 713 | key: "runCatchHooks", |
| 714 | value: function runCatchHooks(e) { |
| 715 | $e.hooks.runDataCatch(this.command, this.args, e); |
| 716 | $e.hooks.runUICatch(this.command, this.args, e); |
| 717 | } |
| 718 | |
| 719 | /** |
| 720 | * TODO - Remove - Backwards compatibility. |
| 721 | * |
| 722 | * Function requireContainer(). |
| 723 | * |
| 724 | * Validate `arg.container` & `arg.containers`. |
| 725 | * |
| 726 | * @param {{}} args |
| 727 | * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. |
| 728 | * |
| 729 | * @throws {Error} |
| 730 | */ |
| 731 | }, { |
| 732 | key: "requireContainer", |
| 733 | value: function requireContainer() { |
| 734 | var _this = this; |
| 735 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 736 | _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); |
| 737 | if (!args.container && !args.containers) { |
| 738 | throw Error('container or containers are required.'); |
| 739 | } |
| 740 | if (args.container && args.containers) { |
| 741 | throw Error('container and containers cannot go together please select one of them.'); |
| 742 | } |
| 743 | var containers = args.containers || [args.container]; |
| 744 | containers.forEach(function (container) { |
| 745 | _this.requireArgumentInstance('container', elementorModules.editor.Container, { |
| 746 | container: container |
| 747 | }); |
| 748 | }); |
| 749 | } |
| 750 | }], [{ |
| 751 | key: "getInstanceType", |
| 752 | value: function getInstanceType() { |
| 753 | return 'CommandBase'; |
| 754 | } |
| 755 | }]); |
| 756 | }(_commandInfra.default); |
| 757 | |
| 758 | /***/ }), |
| 759 | |
| 760 | /***/ "../modules/web-cli/assets/js/modules/command-infra.js": |
| 761 | /*!*************************************************************!*\ |
| 762 | !*** ../modules/web-cli/assets/js/modules/command-infra.js ***! |
| 763 | \*************************************************************/ |
| 764 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 765 | |
| 766 | "use strict"; |
| 767 | |
| 768 | |
| 769 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 770 | Object.defineProperty(exports, "__esModule", ({ |
| 771 | value: true |
| 772 | })); |
| 773 | exports["default"] = void 0; |
| 774 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 775 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 776 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 777 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 778 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 779 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 780 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 781 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 782 | function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } |
| 783 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 784 | /** |
| 785 | * @typedef {import('../modules/component-base')} ComponentBase |
| 786 | */ |
| 787 | var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) { |
| 788 | /** |
| 789 | * Function constructor(). |
| 790 | * |
| 791 | * Create Commands Base. |
| 792 | * |
| 793 | * @param {{}} args |
| 794 | */ |
| 795 | function CommandInfra() { |
| 796 | var _this; |
| 797 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 798 | (0, _classCallCheck2.default)(this, CommandInfra); |
| 799 | _this = _callSuper(this, CommandInfra, [args]); |
| 800 | if (!_this.constructor.registerConfig) { |
| 801 | throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); |
| 802 | } |
| 803 | |
| 804 | // Acknowledge self about which command it run. |
| 805 | _this.command = _this.constructor.getCommand(); |
| 806 | |
| 807 | // Assign instance of current component. |
| 808 | _this.component = _this.constructor.getComponent(); |
| 809 | |
| 810 | // Who ever need do something before without `super` the constructor can use `initialize` method. |
| 811 | _this.initialize(args); |
| 812 | |
| 813 | // Refresh args, maybe the changed via `initialize`. |
| 814 | args = _this.args; |
| 815 | |
| 816 | // Validate args before run. |
| 817 | _this.validateArgs(args); |
| 818 | return _this; |
| 819 | } |
| 820 | |
| 821 | /** |
| 822 | * Function initialize(). |
| 823 | * |
| 824 | * Initialize command, called after construction. |
| 825 | * |
| 826 | * @param {{}} args |
| 827 | */ |
| 828 | (0, _inherits2.default)(CommandInfra, _ArgsObject); |
| 829 | return (0, _createClass2.default)(CommandInfra, [{ |
| 830 | key: "currentCommand", |
| 831 | get: |
| 832 | /** |
| 833 | * @deprecated since 3.7.0, use `this.command` instead. |
| 834 | */ |
| 835 | function get() { |
| 836 | _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); |
| 837 | return this.command; |
| 838 | } |
| 839 | }, { |
| 840 | key: "initialize", |
| 841 | value: function initialize() { |
| 842 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 843 | } // eslint-disable-line no-unused-vars |
| 844 | |
| 845 | /** |
| 846 | * Function validateArgs(). |
| 847 | * |
| 848 | * Validate command arguments. |
| 849 | * |
| 850 | * @param {{}} args |
| 851 | */ |
| 852 | }, { |
| 853 | key: "validateArgs", |
| 854 | value: function validateArgs() { |
| 855 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 856 | } // eslint-disable-line no-unused-vars |
| 857 | |
| 858 | // eslint-disable-next-line jsdoc/require-returns-check |
| 859 | /** |
| 860 | * Function apply(). |
| 861 | * |
| 862 | * Do the actual command. |
| 863 | * |
| 864 | * @param {{}} args |
| 865 | * |
| 866 | * @return {*} Command results. |
| 867 | */ |
| 868 | }, { |
| 869 | key: "apply", |
| 870 | value: function apply() { |
| 871 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 872 | // eslint-disable-line no-unused-vars |
| 873 | elementorModules.ForceMethodImplementation(); |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * Function run(). |
| 878 | * |
| 879 | * Run command with history & hooks. |
| 880 | * |
| 881 | * @return {*} Command results. |
| 882 | */ |
| 883 | }, { |
| 884 | key: "run", |
| 885 | value: function run() { |
| 886 | return this.apply(this.args); |
| 887 | } |
| 888 | |
| 889 | /** |
| 890 | * Function onBeforeRun. |
| 891 | * |
| 892 | * Called before run(). |
| 893 | * |
| 894 | * @param {{}} args |
| 895 | */ |
| 896 | }, { |
| 897 | key: "onBeforeRun", |
| 898 | value: function onBeforeRun() { |
| 899 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 900 | } // eslint-disable-line no-unused-vars |
| 901 | |
| 902 | /** |
| 903 | * Function onAfterRun. |
| 904 | * |
| 905 | * Called after run(). |
| 906 | * |
| 907 | * @param {{}} args |
| 908 | * @param {*} result |
| 909 | */ |
| 910 | }, { |
| 911 | key: "onAfterRun", |
| 912 | value: function onAfterRun() { |
| 913 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 914 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 915 | } // eslint-disable-line no-unused-vars |
| 916 | |
| 917 | /** |
| 918 | * Function onBeforeApply. |
| 919 | * |
| 920 | * Called before apply(). |
| 921 | * |
| 922 | * @param {{}} args |
| 923 | */ |
| 924 | }, { |
| 925 | key: "onBeforeApply", |
| 926 | value: function onBeforeApply() { |
| 927 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 928 | } // eslint-disable-line no-unused-vars |
| 929 | |
| 930 | /** |
| 931 | * Function onAfterApply. |
| 932 | * |
| 933 | * Called after apply(). |
| 934 | * |
| 935 | * @param {{}} args |
| 936 | * @param {*} result |
| 937 | */ |
| 938 | }, { |
| 939 | key: "onAfterApply", |
| 940 | value: function onAfterApply() { |
| 941 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 942 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 943 | } // eslint-disable-line no-unused-vars |
| 944 | |
| 945 | /** |
| 946 | * Function onCatchApply. |
| 947 | * |
| 948 | * Called after apply() failed. |
| 949 | * |
| 950 | * @param {Error} e |
| 951 | */ |
| 952 | }, { |
| 953 | key: "onCatchApply", |
| 954 | value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars |
| 955 | }], [{ |
| 956 | key: "getInstanceType", |
| 957 | value: function getInstanceType() { |
| 958 | return 'CommandInfra'; |
| 959 | } |
| 960 | |
| 961 | /** |
| 962 | * Get info of command. |
| 963 | * |
| 964 | * @return {Object} Extra information about the command. |
| 965 | */ |
| 966 | }, { |
| 967 | key: "getInfo", |
| 968 | value: function getInfo() { |
| 969 | return {}; |
| 970 | } |
| 971 | |
| 972 | /** |
| 973 | * @return {string} Self command name. |
| 974 | */ |
| 975 | }, { |
| 976 | key: "getCommand", |
| 977 | value: function getCommand() { |
| 978 | return this.registerConfig.command; |
| 979 | } |
| 980 | |
| 981 | /** |
| 982 | * @return {ComponentBase} Self component |
| 983 | */ |
| 984 | }, { |
| 985 | key: "getComponent", |
| 986 | value: function getComponent() { |
| 987 | return this.registerConfig.component; |
| 988 | } |
| 989 | }, { |
| 990 | key: "setRegisterConfig", |
| 991 | value: function setRegisterConfig(config) { |
| 992 | this.registerConfig = Object.freeze(config); |
| 993 | } |
| 994 | }]); |
| 995 | }(_argsObject.default); |
| 996 | /** |
| 997 | * @type {Object} |
| 998 | */ |
| 999 | (0, _defineProperty2.default)(CommandInfra, "registerConfig", null); |
| 1000 | |
| 1001 | /***/ }), |
| 1002 | |
| 1003 | /***/ "../modules/web-cli/assets/js/utils/console.js": |
| 1004 | /*!*****************************************************!*\ |
| 1005 | !*** ../modules/web-cli/assets/js/utils/console.js ***! |
| 1006 | \*****************************************************/ |
| 1007 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1008 | |
| 1009 | "use strict"; |
| 1010 | |
| 1011 | |
| 1012 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1013 | Object.defineProperty(exports, "__esModule", ({ |
| 1014 | value: true |
| 1015 | })); |
| 1016 | exports["default"] = void 0; |
| 1017 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1018 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1019 | var Console = exports["default"] = /*#__PURE__*/function () { |
| 1020 | function Console() { |
| 1021 | (0, _classCallCheck2.default)(this, Console); |
| 1022 | } |
| 1023 | return (0, _createClass2.default)(Console, null, [{ |
| 1024 | key: "error", |
| 1025 | value: function error(message) { |
| 1026 | // Show an error if devTools is available. |
| 1027 | if ($e.devTools) { |
| 1028 | $e.devTools.log.error(message); |
| 1029 | } |
| 1030 | |
| 1031 | // If not a 'Hook-Break' then show error. |
| 1032 | if (!(message instanceof $e.modules.HookBreak)) { |
| 1033 | // eslint-disable-next-line no-console |
| 1034 | console.error(message); |
| 1035 | } |
| 1036 | } |
| 1037 | }, { |
| 1038 | key: "warn", |
| 1039 | value: function warn() { |
| 1040 | var _console; |
| 1041 | var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;"); |
| 1042 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 1043 | args[_key] = arguments[_key]; |
| 1044 | } |
| 1045 | args.unshift('%c %c', style, ''); |
| 1046 | (_console = console).warn.apply(_console, args); // eslint-disable-line no-console |
| 1047 | } |
| 1048 | }]); |
| 1049 | }(); |
| 1050 | |
| 1051 | /***/ }), |
| 1052 | |
| 1053 | /***/ "../modules/web-cli/assets/js/utils/deprecation.js": |
| 1054 | /*!*********************************************************!*\ |
| 1055 | !*** ../modules/web-cli/assets/js/utils/deprecation.js ***! |
| 1056 | \*********************************************************/ |
| 1057 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1058 | |
| 1059 | "use strict"; |
| 1060 | |
| 1061 | |
| 1062 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1063 | Object.defineProperty(exports, "__esModule", ({ |
| 1064 | value: true |
| 1065 | })); |
| 1066 | exports["default"] = void 0; |
| 1067 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1068 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1069 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1070 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 1071 | // Copied from `modules/dev-tools/assets/js/deprecation.js` |
| 1072 | /** |
| 1073 | * @typedef {Object} Version |
| 1074 | * @property {number} major1 The first number |
| 1075 | * @property {number} major2 The second number |
| 1076 | * @property {number} minor The third number |
| 1077 | * @property {string} build The fourth number |
| 1078 | */ |
| 1079 | |
| 1080 | var softDeprecated = function softDeprecated(name, version, replacement) { |
| 1081 | if (elementorWebCliConfig.isDebug) { |
| 1082 | deprecatedMessage('soft', name, version, replacement); |
| 1083 | } |
| 1084 | }; |
| 1085 | var hardDeprecated = function hardDeprecated(name, version, replacement) { |
| 1086 | deprecatedMessage('hard', name, version, replacement); |
| 1087 | }; |
| 1088 | var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) { |
| 1089 | var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version); |
| 1090 | if (replacement) { |
| 1091 | message += " - Use `".concat(replacement, "` instead"); |
| 1092 | } |
| 1093 | _console.default.warn(message); |
| 1094 | }; |
| 1095 | var Deprecation = exports["default"] = /*#__PURE__*/function () { |
| 1096 | function Deprecation() { |
| 1097 | (0, _classCallCheck2.default)(this, Deprecation); |
| 1098 | } |
| 1099 | return (0, _createClass2.default)(Deprecation, null, [{ |
| 1100 | key: "deprecated", |
| 1101 | value: function deprecated(name, version, replacement) { |
| 1102 | if (this.isHardDeprecated(version)) { |
| 1103 | hardDeprecated(name, version, replacement); |
| 1104 | } else { |
| 1105 | softDeprecated(name, version, replacement); |
| 1106 | } |
| 1107 | } |
| 1108 | |
| 1109 | /** |
| 1110 | * @param {string} version |
| 1111 | * |
| 1112 | * @return {Version} |
| 1113 | */ |
| 1114 | }, { |
| 1115 | key: "parseVersion", |
| 1116 | value: function parseVersion(version) { |
| 1117 | var versionParts = version.split('.'); |
| 1118 | if (versionParts.length < 3 || versionParts.length > 4) { |
| 1119 | throw new RangeError('Invalid Semantic Version string provided'); |
| 1120 | } |
| 1121 | var _versionParts = (0, _slicedToArray2.default)(versionParts, 4), |
| 1122 | major1 = _versionParts[0], |
| 1123 | major2 = _versionParts[1], |
| 1124 | minor = _versionParts[2], |
| 1125 | _versionParts$ = _versionParts[3], |
| 1126 | build = _versionParts$ === void 0 ? '' : _versionParts$; |
| 1127 | return { |
| 1128 | major1: parseInt(major1), |
| 1129 | major2: parseInt(major2), |
| 1130 | minor: parseInt(minor), |
| 1131 | build: build |
| 1132 | }; |
| 1133 | } |
| 1134 | |
| 1135 | /** |
| 1136 | * Get total of major. |
| 1137 | * |
| 1138 | * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example, |
| 1139 | * versions with major2 more then 9 will be added to total. |
| 1140 | * |
| 1141 | * @param {Version} versionObj |
| 1142 | * |
| 1143 | * @return {number} |
| 1144 | */ |
| 1145 | }, { |
| 1146 | key: "getTotalMajor", |
| 1147 | value: function getTotalMajor(versionObj) { |
| 1148 | var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0")); |
| 1149 | total = Number((total / 10).toFixed(0)); |
| 1150 | if (versionObj.major2 > 9) { |
| 1151 | total = versionObj.major2 - 9; |
| 1152 | } |
| 1153 | return total; |
| 1154 | } |
| 1155 | |
| 1156 | /** |
| 1157 | * @param {string} version1 |
| 1158 | * @param {string} version2 |
| 1159 | * |
| 1160 | * @return {number} |
| 1161 | */ |
| 1162 | }, { |
| 1163 | key: "compareVersion", |
| 1164 | value: function compareVersion(version1, version2) { |
| 1165 | var _this = this; |
| 1166 | return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) { |
| 1167 | return _this.getTotalMajor(versionObj); |
| 1168 | }).reduce(function (acc, major) { |
| 1169 | return acc - major; |
| 1170 | }); |
| 1171 | } |
| 1172 | |
| 1173 | /** |
| 1174 | * @param {string} version |
| 1175 | * |
| 1176 | * @return {boolean} |
| 1177 | */ |
| 1178 | }, { |
| 1179 | key: "isSoftDeprecated", |
| 1180 | value: function isSoftDeprecated(version) { |
| 1181 | var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 1182 | return total <= 4; |
| 1183 | } |
| 1184 | |
| 1185 | /** |
| 1186 | * @param {string} version |
| 1187 | * @return {boolean} |
| 1188 | */ |
| 1189 | }, { |
| 1190 | key: "isHardDeprecated", |
| 1191 | value: function isHardDeprecated(version) { |
| 1192 | var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 1193 | return total < 0 || total >= 8; |
| 1194 | } |
| 1195 | }]); |
| 1196 | }(); |
| 1197 | |
| 1198 | /***/ }), |
| 1199 | |
| 1200 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| 1201 | /*!******************************************************************!*\ |
| 1202 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 1203 | \******************************************************************/ |
| 1204 | /***/ ((module) => { |
| 1205 | |
| 1206 | function _arrayLikeToArray(r, a) { |
| 1207 | (null == a || a > r.length) && (a = r.length); |
| 1208 | for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; |
| 1209 | return n; |
| 1210 | } |
| 1211 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1212 | |
| 1213 | /***/ }), |
| 1214 | |
| 1215 | /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": |
| 1216 | /*!****************************************************************!*\ |
| 1217 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 1218 | \****************************************************************/ |
| 1219 | /***/ ((module) => { |
| 1220 | |
| 1221 | function _arrayWithHoles(r) { |
| 1222 | if (Array.isArray(r)) return r; |
| 1223 | } |
| 1224 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1225 | |
| 1226 | /***/ }), |
| 1227 | |
| 1228 | /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": |
| 1229 | /*!***********************************************************************!*\ |
| 1230 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 1231 | \***********************************************************************/ |
| 1232 | /***/ ((module) => { |
| 1233 | |
| 1234 | function _assertThisInitialized(e) { |
| 1235 | if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); |
| 1236 | return e; |
| 1237 | } |
| 1238 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1239 | |
| 1240 | /***/ }), |
| 1241 | |
| 1242 | /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| 1243 | /*!****************************************************************!*\ |
| 1244 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 1245 | \****************************************************************/ |
| 1246 | /***/ ((module) => { |
| 1247 | |
| 1248 | function _classCallCheck(a, n) { |
| 1249 | if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); |
| 1250 | } |
| 1251 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1252 | |
| 1253 | /***/ }), |
| 1254 | |
| 1255 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 1256 | /*!*************************************************************!*\ |
| 1257 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 1258 | \*************************************************************/ |
| 1259 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1260 | |
| 1261 | var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 1262 | function _defineProperties(e, r) { |
| 1263 | for (var t = 0; t < r.length; t++) { |
| 1264 | var o = r[t]; |
| 1265 | o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); |
| 1266 | } |
| 1267 | } |
| 1268 | function _createClass(e, r, t) { |
| 1269 | return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { |
| 1270 | writable: !1 |
| 1271 | }), e; |
| 1272 | } |
| 1273 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1274 | |
| 1275 | /***/ }), |
| 1276 | |
| 1277 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 1278 | /*!****************************************************************!*\ |
| 1279 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 1280 | \****************************************************************/ |
| 1281 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1282 | |
| 1283 | var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 1284 | function _defineProperty(e, r, t) { |
| 1285 | return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { |
| 1286 | value: t, |
| 1287 | enumerable: !0, |
| 1288 | configurable: !0, |
| 1289 | writable: !0 |
| 1290 | }) : e[r] = t, e; |
| 1291 | } |
| 1292 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1293 | |
| 1294 | /***/ }), |
| 1295 | |
| 1296 | /***/ "../node_modules/@babel/runtime/helpers/get.js": |
| 1297 | /*!*****************************************************!*\ |
| 1298 | !*** ../node_modules/@babel/runtime/helpers/get.js ***! |
| 1299 | \*****************************************************/ |
| 1300 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1301 | |
| 1302 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 1303 | function _get() { |
| 1304 | return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { |
| 1305 | var p = superPropBase(e, t); |
| 1306 | if (p) { |
| 1307 | var n = Object.getOwnPropertyDescriptor(p, t); |
| 1308 | return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; |
| 1309 | } |
| 1310 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); |
| 1311 | } |
| 1312 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1313 | |
| 1314 | /***/ }), |
| 1315 | |
| 1316 | /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": |
| 1317 | /*!****************************************************************!*\ |
| 1318 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 1319 | \****************************************************************/ |
| 1320 | /***/ ((module) => { |
| 1321 | |
| 1322 | function _getPrototypeOf(t) { |
| 1323 | return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { |
| 1324 | return t.__proto__ || Object.getPrototypeOf(t); |
| 1325 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); |
| 1326 | } |
| 1327 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1328 | |
| 1329 | /***/ }), |
| 1330 | |
| 1331 | /***/ "../node_modules/@babel/runtime/helpers/inherits.js": |
| 1332 | /*!**********************************************************!*\ |
| 1333 | !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! |
| 1334 | \**********************************************************/ |
| 1335 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1336 | |
| 1337 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 1338 | function _inherits(t, e) { |
| 1339 | if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); |
| 1340 | t.prototype = Object.create(e && e.prototype, { |
| 1341 | constructor: { |
| 1342 | value: t, |
| 1343 | writable: !0, |
| 1344 | configurable: !0 |
| 1345 | } |
| 1346 | }), Object.defineProperty(t, "prototype", { |
| 1347 | writable: !1 |
| 1348 | }), e && setPrototypeOf(t, e); |
| 1349 | } |
| 1350 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1351 | |
| 1352 | /***/ }), |
| 1353 | |
| 1354 | /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": |
| 1355 | /*!***********************************************************************!*\ |
| 1356 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 1357 | \***********************************************************************/ |
| 1358 | /***/ ((module) => { |
| 1359 | |
| 1360 | function _interopRequireDefault(e) { |
| 1361 | return e && e.__esModule ? e : { |
| 1362 | "default": e |
| 1363 | }; |
| 1364 | } |
| 1365 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1366 | |
| 1367 | /***/ }), |
| 1368 | |
| 1369 | /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": |
| 1370 | /*!**********************************************************************!*\ |
| 1371 | !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 1372 | \**********************************************************************/ |
| 1373 | /***/ ((module) => { |
| 1374 | |
| 1375 | function _iterableToArrayLimit(r, l) { |
| 1376 | var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; |
| 1377 | if (null != t) { |
| 1378 | var e, |
| 1379 | n, |
| 1380 | i, |
| 1381 | u, |
| 1382 | a = [], |
| 1383 | f = !0, |
| 1384 | o = !1; |
| 1385 | try { |
| 1386 | if (i = (t = t.call(r)).next, 0 === l) { |
| 1387 | if (Object(t) !== t) return; |
| 1388 | f = !1; |
| 1389 | } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); |
| 1390 | } catch (r) { |
| 1391 | o = !0, n = r; |
| 1392 | } finally { |
| 1393 | try { |
| 1394 | if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; |
| 1395 | } finally { |
| 1396 | if (o) throw n; |
| 1397 | } |
| 1398 | } |
| 1399 | return a; |
| 1400 | } |
| 1401 | } |
| 1402 | module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1403 | |
| 1404 | /***/ }), |
| 1405 | |
| 1406 | /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": |
| 1407 | /*!*****************************************************************!*\ |
| 1408 | !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! |
| 1409 | \*****************************************************************/ |
| 1410 | /***/ ((module) => { |
| 1411 | |
| 1412 | function _nonIterableRest() { |
| 1413 | throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
| 1414 | } |
| 1415 | module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1416 | |
| 1417 | /***/ }), |
| 1418 | |
| 1419 | /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": |
| 1420 | /*!***************************************************************************!*\ |
| 1421 | !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! |
| 1422 | \***************************************************************************/ |
| 1423 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1424 | |
| 1425 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1426 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 1427 | function _possibleConstructorReturn(t, e) { |
| 1428 | if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; |
| 1429 | if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); |
| 1430 | return assertThisInitialized(t); |
| 1431 | } |
| 1432 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1433 | |
| 1434 | /***/ }), |
| 1435 | |
| 1436 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| 1437 | /*!****************************************************************!*\ |
| 1438 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 1439 | \****************************************************************/ |
| 1440 | /***/ ((module) => { |
| 1441 | |
| 1442 | function _setPrototypeOf(t, e) { |
| 1443 | return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { |
| 1444 | return t.__proto__ = e, t; |
| 1445 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); |
| 1446 | } |
| 1447 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1448 | |
| 1449 | /***/ }), |
| 1450 | |
| 1451 | /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": |
| 1452 | /*!***************************************************************!*\ |
| 1453 | !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! |
| 1454 | \***************************************************************/ |
| 1455 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1456 | |
| 1457 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 1458 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 1459 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 1460 | var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 1461 | function _slicedToArray(r, e) { |
| 1462 | return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); |
| 1463 | } |
| 1464 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1465 | |
| 1466 | /***/ }), |
| 1467 | |
| 1468 | /***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": |
| 1469 | /*!***************************************************************!*\ |
| 1470 | !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! |
| 1471 | \***************************************************************/ |
| 1472 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1473 | |
| 1474 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 1475 | function _superPropBase(t, o) { |
| 1476 | for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); |
| 1477 | return t; |
| 1478 | } |
| 1479 | module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1480 | |
| 1481 | /***/ }), |
| 1482 | |
| 1483 | /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": |
| 1484 | /*!*************************************************************!*\ |
| 1485 | !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! |
| 1486 | \*************************************************************/ |
| 1487 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1488 | |
| 1489 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1490 | function toPrimitive(t, r) { |
| 1491 | if ("object" != _typeof(t) || !t) return t; |
| 1492 | var e = t[Symbol.toPrimitive]; |
| 1493 | if (void 0 !== e) { |
| 1494 | var i = e.call(t, r || "default"); |
| 1495 | if ("object" != _typeof(i)) return i; |
| 1496 | throw new TypeError("@@toPrimitive must return a primitive value."); |
| 1497 | } |
| 1498 | return ("string" === r ? String : Number)(t); |
| 1499 | } |
| 1500 | module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1501 | |
| 1502 | /***/ }), |
| 1503 | |
| 1504 | /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": |
| 1505 | /*!***************************************************************!*\ |
| 1506 | !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! |
| 1507 | \***************************************************************/ |
| 1508 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1509 | |
| 1510 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1511 | var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); |
| 1512 | function toPropertyKey(t) { |
| 1513 | var i = toPrimitive(t, "string"); |
| 1514 | return "symbol" == _typeof(i) ? i : i + ""; |
| 1515 | } |
| 1516 | module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1517 | |
| 1518 | /***/ }), |
| 1519 | |
| 1520 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 1521 | /*!********************************************************!*\ |
| 1522 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 1523 | \********************************************************/ |
| 1524 | /***/ ((module) => { |
| 1525 | |
| 1526 | function _typeof(o) { |
| 1527 | "@babel/helpers - typeof"; |
| 1528 | |
| 1529 | return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { |
| 1530 | return typeof o; |
| 1531 | } : function (o) { |
| 1532 | return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 1533 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); |
| 1534 | } |
| 1535 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1536 | |
| 1537 | /***/ }), |
| 1538 | |
| 1539 | /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": |
| 1540 | /*!****************************************************************************!*\ |
| 1541 | !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! |
| 1542 | \****************************************************************************/ |
| 1543 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1544 | |
| 1545 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 1546 | function _unsupportedIterableToArray(r, a) { |
| 1547 | if (r) { |
| 1548 | if ("string" == typeof r) return arrayLikeToArray(r, a); |
| 1549 | var t = {}.toString.call(r).slice(8, -1); |
| 1550 | 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; |
| 1551 | } |
| 1552 | } |
| 1553 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1554 | |
| 1555 | /***/ }) |
| 1556 | |
| 1557 | /******/ }); |
| 1558 | /************************************************************************/ |
| 1559 | /******/ // The module cache |
| 1560 | /******/ var __webpack_module_cache__ = {}; |
| 1561 | /******/ |
| 1562 | /******/ // The require function |
| 1563 | /******/ function __webpack_require__(moduleId) { |
| 1564 | /******/ // Check if module is in cache |
| 1565 | /******/ var cachedModule = __webpack_module_cache__[moduleId]; |
| 1566 | /******/ if (cachedModule !== undefined) { |
| 1567 | /******/ return cachedModule.exports; |
| 1568 | /******/ } |
| 1569 | /******/ // Create a new module (and put it into the cache) |
| 1570 | /******/ var module = __webpack_module_cache__[moduleId] = { |
| 1571 | /******/ // no module.id needed |
| 1572 | /******/ // no module.loaded needed |
| 1573 | /******/ exports: {} |
| 1574 | /******/ }; |
| 1575 | /******/ |
| 1576 | /******/ // Execute the module function |
| 1577 | /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 1578 | /******/ |
| 1579 | /******/ // Return the exports of the module |
| 1580 | /******/ return module.exports; |
| 1581 | /******/ } |
| 1582 | /******/ |
| 1583 | /************************************************************************/ |
| 1584 | var __webpack_exports__ = {}; |
| 1585 | // This entry needs to be wrapped in an IIFE because it needs to be in strict mode. |
| 1586 | (() => { |
| 1587 | "use strict"; |
| 1588 | /*!**************************************************!*\ |
| 1589 | !*** ../assets/dev/js/editor/editor-document.js ***! |
| 1590 | \**************************************************/ |
| 1591 | |
| 1592 | |
| 1593 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1594 | var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); |
| 1595 | var _commandContainerInternalBase = _interopRequireDefault(__webpack_require__(/*! ./command-bases/command-container-internal-base */ "../assets/dev/js/editor/command-bases/command-container-internal-base.js")); |
| 1596 | var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! elementor-document/command-bases/command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js")); |
| 1597 | var _commandHistoryDebounceBase = _interopRequireDefault(__webpack_require__(/*! elementor-document/command-bases/command-history-debounce-base */ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js")); |
| 1598 | $e.modules.editor = { |
| 1599 | CommandContainerBase: _commandContainerBase.default, |
| 1600 | CommandContainerInternalBase: _commandContainerInternalBase.default, |
| 1601 | document: { |
| 1602 | CommandHistoryBase: _commandHistoryBase.default, |
| 1603 | CommandHistoryDebounceBase: _commandHistoryDebounceBase.default |
| 1604 | } |
| 1605 | }; |
| 1606 | |
| 1607 | // TODO: Remove, BC. |
| 1608 | $e.modules.document = { |
| 1609 | /** |
| 1610 | * @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryBase` instead. |
| 1611 | */ |
| 1612 | get CommandHistory() { |
| 1613 | elementorDevTools.deprecation.deprecated('$e.modules.document.CommandHistory', '3.7.0', '$e.modules.editor.document.CommandHistoryBase'); |
| 1614 | return $e.modules.editor.document.CommandHistoryBase; |
| 1615 | }, |
| 1616 | /** |
| 1617 | * @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryDebounceBase` instead. |
| 1618 | */ |
| 1619 | get CommandHistoryDebounce() { |
| 1620 | elementorDevTools.deprecation.deprecated('$e.modules.CommandHistoryDebounce', '3.7.0', '$e.modules.editor.document.CommandHistoryDebounceBase'); |
| 1621 | return $e.modules.editor.document.CommandHistoryDebounceBase; |
| 1622 | } |
| 1623 | }; |
| 1624 | })(); |
| 1625 | |
| 1626 | /******/ })() |
| 1627 | ; |
| 1628 | //# sourceMappingURL=editor-document.js.map |