packages
4 months ago
00f53f1b378f6c98c043.bundle.min.js
5 months ago
04441cacbcc0ffea6713.bundle.min.js
5 months ago
0982f37bec0944fbcb10.bundle.js
5 months ago
0bc41c4656ca54cf2aca.bundle.min.js
5 months ago
137ba3baf43f287996c2.bundle.min.js
5 months ago
1564d2bfa4591bf857f3.bundle.min.js
5 months ago
197583acd246fea0e25d.bundle.js
6 months ago
1f7fa1d64dd4cef4a3c0.bundle.js
5 months ago
254132ea6903b7cf0c30.bundle.js
5 months ago
2934fa380b70eb462ece.bundle.min.js
5 months ago
315ffba5a5bf098be034.bundle.min.js
5 months ago
35423d812dc1d52fdb27.bundle.min.js
5 months ago
3c18b6eb4e735ca7e8bf.bundle.js
5 months ago
3c838288a9b7ddd2aea4.bundle.min.js
5 months ago
3d1613aca86991103452.bundle.min.js
5 months ago
3d410a099008411bb011.bundle.js
6 months ago
40d841f4b4ce7b1928f5.bundle.js
5 months ago
4246c56134ca9ba65163.bundle.js
5 months ago
45167112673d4bc99f6b.bundle.js
5 months ago
45a55c192b49ad3f224d.bundle.js
5 months ago
45f1ae567e48fe3da9b0.bundle.min.js
8 months ago
4812775bcbc0ff8a9043.bundle.min.js
5 months ago
4886b33c17731474e197.bundle.min.js
5 months ago
54d62e5edbcf81b72a1f.bundle.min.js
5 months ago
5b13d0f77c0ac139c979.bundle.js
5 months ago
5be98965bbdf1c631fdf.bundle.min.js
5 months ago
6a19e86dd8c1f9165dbe.bundle.js
6 months ago
6cb9e42b9b73a76315e0.bundle.js
5 months ago
72459a35b6570acc77f3.bundle.js
5 months ago
75915b40e37cc6d910ef.bundle.js
5 months ago
7745b82dc4a05385ef1f.bundle.js
5 months ago
79016b3aba18d6be6dc3.bundle.min.js
5 months ago
7a5da9cf33b7d3557599.bundle.js
5 months ago
7a8c6c081d659e35d7d2.bundle.min.js
4 months ago
7d17894dc2ca045cfbb5.bundle.min.js
5 months ago
7dae73b622bebe8a5d94.bundle.js
5 months ago
7f2c78456ab3f406f3df.bundle.js
5 months ago
8277989eebcfba278cb0.bundle.min.js
8 months ago
84288e5699f5d8b8b23e.bundle.min.js
5 months ago
85106d35eeb23f6f4a33.bundle.min.js
5 months ago
877227b9d759b63096a9.bundle.js
5 months ago
8ac2c6e532225b54dba2.bundle.js
5 months ago
8b4f35f99eb521b37d0c.bundle.js
5 months ago
8b6212b7ad0ef8719b6b.bundle.min.js
5 months ago
8e8b47ad5b4e4d038c80.bundle.js
5 months ago
8ecfd8495b7ec419862a.bundle.js
5 months ago
9167bffba76b36a431f5.bundle.min.js
5 months ago
91c1e96a5c75bbc8ec6d.bundle.js
5 months ago
982fcee032dda41fa3a1.bundle.min.js
5 months ago
9832c866a8fe9b51f9d2.bundle.min.js
5 months ago
9dcd9e88237da6496816.bundle.min.js
5 months ago
9f88a0d716a691c2448a.bundle.min.js
8 months ago
a2ea929f439e819b924b.bundle.min.js
5 months ago
a9f41949787209626737.bundle.min.js
5 months ago
ac53273f887639e3c6ea.bundle.min.js
5 months ago
accordion.8b0db5058afeb74622f5.bundle.min.js
8 months ago
accordion.b9a0ab19c7c872c405d7.bundle.js
6 months ago
admin-feedback.js
8 months ago
admin-feedback.min.js
8 months ago
admin-feedback.strings.js
5 months ago
admin-modules.js
6 months ago
admin-modules.min.js
6 months ago
admin-modules.min.js.LICENSE.txt
10 months ago
admin-modules.strings.js
6 months ago
admin-notifications.js
8 months ago
admin-notifications.min.js
8 months ago
admin-notifications.strings.js
6 months ago
admin-top-bar.js
5 months ago
admin-top-bar.min.js
5 months ago
admin-top-bar.strings.js
6 months ago
admin.js
4 months ago
admin.min.js
4 months ago
admin.min.js.LICENSE.txt
10 months ago
admin.strings.js
6 months ago
aee13673e923469c3275.bundle.min.js
5 months ago
ai-admin.js
6 months ago
ai-admin.min.js
6 months ago
ai-admin.min.js.LICENSE.txt
10 months ago
ai-admin.strings.js
6 months ago
ai-gutenberg.js
6 months ago
ai-gutenberg.min.js
6 months ago
ai-gutenberg.min.js.LICENSE.txt
10 months ago
ai-gutenberg.strings.js
6 months ago
ai-layout.js
6 months ago
ai-layout.min.js
6 months ago
ai-layout.min.js.LICENSE.txt
10 months ago
ai-layout.strings.js
4 months ago
ai-media-library.js
6 months ago
ai-media-library.min.js
6 months ago
ai-media-library.min.js.LICENSE.txt
10 months ago
ai-media-library.strings.js
6 months ago
ai-unify-product-images.js
6 months ago
ai-unify-product-images.min.js
6 months ago
ai-unify-product-images.min.js.LICENSE.txt
10 months ago
ai-unify-product-images.strings.js
6 months ago
ai.js
6 months ago
ai.min.js
6 months ago
ai.min.js.LICENSE.txt
10 months ago
ai.strings.js
5 months ago
alert.42cc1d522ef5c60bf874.bundle.min.js
8 months ago
alert.fd509aa768e7b35a8e32.bundle.js
6 months ago
announcements-app.js
4 months ago
announcements-app.min.js
4 months ago
announcements-app.min.js.LICENSE.txt
10 months ago
announcements-app.strings.js
6 months ago
app-loader.js
6 months ago
app-loader.min.js
8 months ago
app-loader.strings.js
4 months ago
app-packages.js
5 months ago
app-packages.min.js
5 months ago
app-packages.min.js.LICENSE.txt
10 months ago
app-packages.strings.js
4 months ago
app.js
4 months ago
app.min.js
4 months ago
app.min.js.LICENSE.txt
10 months ago
app.strings.js
4 months ago
atomic-widgets-editor.js
4 months ago
atomic-widgets-editor.min.js
4 months ago
atomic-widgets-editor.min.js.LICENSE.txt
4 months ago
atomic-widgets-editor.strings.js
4 months ago
atomic-widgets-frontend-handler.js
4 months ago
atomic-widgets-frontend-handler.min.js
4 months ago
b09b262748a4be8417ce.bundle.js
5 months ago
b423d91809cf7e0cb8b0.bundle.js
5 months ago
b668f6906820570e60b5.bundle.min.js
5 months ago
b96d70044d0d67c2df19.bundle.min.js
8 months ago
b97ced1683f62f5686fa.bundle.min.js
5 months ago
ba292d36d983cead2a5b.bundle.js
5 months ago
bb708343060feb5c4a5d.bundle.min.js
5 months ago
beta-tester.js
8 months ago
beta-tester.min.js
8 months ago
beta-tester.strings.js
6 months ago
bf55a1adc050b89179ff.bundle.min.js
5 months ago
bff204c1ab0d15e0a69b.bundle.min.js
5 months ago
bfff0d754d68404bd5a6.bundle.js
5 months ago
c13d205fa26f8af1ce7c.bundle.js
6 months ago
c4d335a90ec9a10c603f.bundle.js
4 months ago
cf2707501445e5b44fbe.bundle.js
5 months ago
cf6ec600fcf4e08ba6d3.bundle.js
5 months ago
checklist.js
6 months ago
checklist.min.js
6 months ago
checklist.min.js.LICENSE.txt
10 months ago
checklist.strings.js
6 months ago
cloud-library-screenshot.js
6 months ago
cloud-library-screenshot.min.js
6 months ago
cloud-library-screenshot.min.js.LICENSE.txt
8 months ago
cloud-library-screenshot.strings.js
6 months ago
common-modules.js
4 months ago
common-modules.min.js
4 months ago
common-modules.strings.js
6 months ago
common.js
4 months ago
common.min.js
4 months ago
common.min.js.LICENSE.txt
10 months ago
common.strings.js
6 months ago
contact-buttons.086261d3e9c4d8037686.bundle.js
6 months ago
contact-buttons.e98d0220ce8c38404e7e.bundle.min.js
8 months ago
container-converter.js
8 months ago
container-converter.min.js
8 months ago
container-converter.strings.js
6 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
8 months ago
counter.7310c276bc7865a3d438.bundle.js
6 months ago
d0d9578389b742468cb7.bundle.min.js
5 months ago
d42de03ef4a0f50e39ca.bundle.min.js
5 months ago
d52aa05c75af56327744.bundle.js
6 months ago
d67ddd6f08b08392c42f.bundle.js
6 months ago
daecdcc50702fd1d72f1.bundle.js
6 months ago
daedc6797eaad5c82711.bundle.min.js
8 months ago
db27207322ef9be952ee.bundle.js
5 months ago
dev-tools.js
8 months ago
dev-tools.min.js
8 months ago
dev-tools.strings.js
6 months ago
e-home-screen.js
4 months ago
e-home-screen.min.js
4 months ago
e-home-screen.strings.js
4 months ago
e-react-promotions.js
8 months ago
e-react-promotions.min.js
8 months ago
e-react-promotions.strings.js
6 months ago
e-wc-product-editor.js
6 months ago
e-wc-product-editor.min.js
8 months ago
e-wc-product-editor.min.js.LICENSE.txt
1 year ago
e-wc-product-editor.strings.js
6 months ago
e1cb4d726bb59646c677.bundle.min.js
8 months ago
e2a127e2fb01b578d2ba.bundle.js
5 months ago
e393545679b12d012fba.bundle.js
5 months ago
e3b540e2c02813e75f38.bundle.min.js
5 months ago
e459c6c89c0c0899c850.bundle.js
6 months ago
e4d209bf3a704ff88e1a.bundle.js
5 months ago
e7d71f4e1d39edbc1fb6.bundle.js
5 months ago
e883e6638ef93bfd3204.bundle.js
6 months ago
editor-document.js
6 months ago
editor-document.min.js
8 months ago
editor-document.strings.js
4 months ago
editor-environment-v2.js
8 months ago
editor-environment-v2.min.js
8 months ago
editor-environment-v2.strings.js
6 months ago
editor-interactions.js
4 months ago
editor-interactions.min.js
4 months ago
editor-interactions.strings.js
6 months ago
editor-loader-v1.js
8 months ago
editor-loader-v1.min.js
8 months ago
editor-loader-v1.strings.js
6 months ago
editor-loader-v2.js
8 months ago
editor-loader-v2.min.js
8 months ago
editor-loader-v2.strings.js
6 months ago
editor-modules.js
6 months ago
editor-modules.min.js
6 months ago
editor-modules.min.js.LICENSE.txt
10 months ago
editor-modules.strings.js
5 months ago
editor-notifications.js
8 months ago
editor-notifications.min.js
8 months ago
editor-notifications.strings.js
6 months ago
editor-one-admin.js
6 months ago
editor-one-admin.min.js
6 months ago
editor-one-admin.strings.js
6 months ago
editor-one-menu.js
5 months ago
editor-one-menu.min.js
5 months ago
editor-one-menu.strings.js
6 months ago
editor-one-sidebar-navigation.js
4 months ago
editor-one-sidebar-navigation.min.js
4 months ago
editor-one-sidebar-navigation.min.js.LICENSE.txt
6 months ago
editor-one-sidebar-navigation.strings.js
6 months ago
editor-one-top-bar.js
4 months ago
editor-one-top-bar.min.js
4 months ago
editor-one-top-bar.min.js.LICENSE.txt
5 months ago
editor-one-top-bar.strings.js
5 months ago
editor-v4-opt-in-alphachip.js
4 months ago
editor-v4-opt-in-alphachip.min.js
4 months ago
editor-v4-opt-in-alphachip.strings.js
5 months ago
editor-v4-opt-in.js
4 months ago
editor-v4-opt-in.min.js
4 months ago
editor-v4-opt-in.min.js.LICENSE.txt
6 months ago
editor-v4-opt-in.strings.js
5 months ago
editor-v4-welcome-opt-in.js
4 months ago
editor-v4-welcome-opt-in.min.js
4 months ago
editor-v4-welcome-opt-in.strings.js
5 months ago
editor.js
4 months ago
editor.min.js
4 months ago
editor.min.js.LICENSE.txt
6 months ago
editor.strings.js
6 months ago
ef2100ac3eda1a957819.bundle.min.js
8 months ago
ef35c83e4628f0a5c328.bundle.js
5 months ago
element-manager-admin.js
5 months ago
element-manager-admin.min.js
5 months ago
element-manager-admin.min.js.LICENSE.txt
10 months ago
element-manager-admin.strings.js
5 months ago
elementor-admin-bar.js
8 months ago
elementor-admin-bar.min.js
8 months ago
elementor-admin-bar.strings.js
6 months ago
fa64159422dec32bd185.bundle.js
5 months ago
floating-bars.740d06d17cea5cebdb61.bundle.min.js
8 months ago
floating-bars.a6e6a043444b62f64f82.bundle.js
6 months ago
floating-elements-modal.js
5 months ago
floating-elements-modal.min.js
5 months ago
floating-elements-modal.strings.js
6 months ago
frontend-modules.js
4 months ago
frontend-modules.min.js
4 months ago
frontend.js
8 months ago
frontend.min.js
8 months ago
gutenberg.js
8 months ago
gutenberg.min.js
8 months ago
gutenberg.strings.js
6 months ago
image-carousel.6167d20b95b33386757b.bundle.min.js
8 months ago
image-carousel.8b25f3674c29b829a867.bundle.js
6 months ago
import-export-admin.js
6 months ago
import-export-admin.min.js
6 months ago
import-export-admin.strings.js
4 months ago
import-export-customization-admin.js
4 months ago
import-export-customization-admin.min.js
4 months ago
import-export-customization-admin.min.js.LICENSE.txt
8 months ago
import-export-customization-admin.strings.js
4 months ago
interactions.js
4 months ago
interactions.min.js
4 months ago
interactions.strings.js
6 months ago
kit-elements-defaults-editor.js
6 months ago
kit-elements-defaults-editor.min.js
6 months ago
kit-elements-defaults-editor.min.js.LICENSE.txt
10 months ago
kit-elements-defaults-editor.strings.js
6 months ago
kit-library.4d4a9d3b76f7410214c3.bundle.min.js
4 months ago
kit-library.9c4bbee79edf32c6fcb3.bundle.js
4 months ago
lightbox.a1f44406e887981f48c7.bundle.js
6 months ago
lightbox.d1799e507b570f6b0496.bundle.min.js
8 months ago
media-hints.js
8 months ago
media-hints.min.js
8 months ago
media-hints.strings.js
6 months ago
nested-accordion.294d40984397351fd0f5.bundle.min.js
4 months ago
nested-accordion.4340b64226322f36bcc0.bundle.js
4 months ago
nested-accordion.js
6 months ago
nested-accordion.min.js
6 months ago
nested-accordion.min.js.LICENSE.txt
10 months ago
nested-accordion.strings.js
6 months ago
nested-elements.js
6 months ago
nested-elements.min.js
6 months ago
nested-elements.strings.js
6 months ago
nested-tabs.7a338e6d7e060c473993.bundle.js
6 months ago
nested-tabs.a2401356d329f179475e.bundle.min.js
6 months ago
nested-tabs.js
6 months ago
nested-tabs.min.js
6 months ago
nested-tabs.min.js.LICENSE.txt
10 months ago
nested-tabs.strings.js
6 months ago
nested-title-keyboard-handler.0c2b498e3e0695a1dc19.bundle.js
6 months ago
nested-title-keyboard-handler.2a67d3cc630e11815acc.bundle.min.js
6 months ago
new-template.js
5 months ago
new-template.min.js
5 months ago
new-template.strings.js
6 months ago
notes.js
8 months ago
notes.min.js
8 months ago
notes.strings.js
6 months ago
onboarding.31a5615a753ffac2c800.bundle.min.js
5 months ago
onboarding.63cdf72a450944ebd5f7.bundle.js
5 months ago
pro-free-trial-popup.js
8 months ago
pro-free-trial-popup.min.js
8 months ago
pro-free-trial-popup.strings.js
6 months ago
pro-install-events.js
8 months ago
pro-install-events.min.js
8 months ago
pro-install-events.strings.js
6 months ago
progress.0ea083b809812c0e3aa1.bundle.min.js
8 months ago
progress.b1057ba870016558bce1.bundle.js
6 months ago
responsive-bar.js
8 months ago
responsive-bar.min.js
8 months ago
responsive-bar.strings.js
6 months ago
section-editor-handlers.53ffedef32043348b99b.bundle.min.js
8 months ago
section-editor-handlers.d65899d232b5339510d7.bundle.js
6 months ago
section-frontend-handlers.c3950c6b190ca134bc8d.bundle.js
6 months ago
section-frontend-handlers.d85ab872da118940910d.bundle.min.js
8 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
8 months ago
shared-frontend-handlers.3b079824c37a5fe2bdaa.bundle.js
6 months ago
styleguide-app-initiator.js
6 months ago
styleguide-app-initiator.min.js
6 months ago
styleguide-app-initiator.min.js.LICENSE.txt
10 months ago
styleguide-app-initiator.strings.js
6 months ago
styleguide-app.04340244193733d78622.bundle.min.js
8 months ago
styleguide-app.36ecabae74d9b87fc5a8.bundle.js
6 months ago
styleguide.js
8 months ago
styleguide.min.js
8 months ago
styleguide.strings.js
6 months ago
tabs-handler.js
6 months ago
tabs-handler.min.js
6 months ago
tabs-preview-handler.js
6 months ago
tabs-preview-handler.min.js
6 months ago
tabs.18344b05d8d1ea0702bc.bundle.min.js
8 months ago
tabs.40498fa771d612162c53.bundle.js
6 months ago
text-editor.0c9960167105139d27c9.bundle.js
6 months ago
text-editor.45609661e409413f1cef.bundle.min.js
8 months ago
text-path.b5766aff4e92f7f6c661.bundle.min.js
6 months ago
text-path.b5766aff4e92f7f6c661.bundle.min.js.LICENSE.txt
6 months ago
text-path.eb787fc2b296f56e6e5f.bundle.js
6 months ago
toggle.2a177a3ef4785d3dfbc5.bundle.min.js
8 months ago
toggle.b75e66d2aca6f6ee742e.bundle.js
6 months ago
video.6e96510afa701d1f2ebc.bundle.js
6 months ago
video.86d44e46e43d0807e708.bundle.min.js
8 months ago
web-cli.js
6 months ago
web-cli.min.js
6 months ago
web-cli.min.js.LICENSE.txt
10 months ago
web-cli.strings.js
6 months ago
webpack.runtime.js
4 months ago
webpack.runtime.min.js
4 months ago
wp-audio.0ba9114964acf4c37ca2.bundle.js
6 months ago
wp-audio.c9624cb6e5dc9de86abd.bundle.min.js
8 months ago
youtube-handler.js
6 months ago
youtube-handler.min.js
6 months ago
3d410a099008411bb011.bundle.js
1091 lines
| 1 | (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["modules_nested-elements_assets_js_editor_module_js"],{ |
| 2 | |
| 3 | /***/ "../modules/nested-elements/assets/js/editor/component.js": |
| 4 | /*!****************************************************************!*\ |
| 5 | !*** ../modules/nested-elements/assets/js/editor/component.js ***! |
| 6 | \****************************************************************/ |
| 7 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 8 | |
| 9 | "use strict"; |
| 10 | |
| 11 | |
| 12 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 13 | Object.defineProperty(exports, "__esModule", ({ |
| 14 | value: true |
| 15 | })); |
| 16 | exports["default"] = void 0; |
| 17 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 18 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 19 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 20 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 21 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 22 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 23 | var _component = _interopRequireDefault(__webpack_require__(/*! ./nested-repeater/component */ "../modules/nested-elements/assets/js/editor/nested-repeater/component.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 | 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; } |
| 27 | var Component = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) { |
| 28 | function Component() { |
| 29 | (0, _classCallCheck2.default)(this, Component); |
| 30 | return _callSuper(this, Component, arguments); |
| 31 | } |
| 32 | (0, _inherits2.default)(Component, _$e$modules$Component); |
| 33 | return (0, _createClass2.default)(Component, [{ |
| 34 | key: "getNamespace", |
| 35 | value: function getNamespace() { |
| 36 | return 'nested-elements'; |
| 37 | } |
| 38 | }, { |
| 39 | key: "registerAPI", |
| 40 | value: function registerAPI() { |
| 41 | $e.components.register(new _component.default()); |
| 42 | _superPropGet(Component, "registerAPI", this, 3)([]); |
| 43 | } |
| 44 | }]); |
| 45 | }($e.modules.ComponentBase); |
| 46 | |
| 47 | /***/ }), |
| 48 | |
| 49 | /***/ "../modules/nested-elements/assets/js/editor/module.js": |
| 50 | /*!*************************************************************!*\ |
| 51 | !*** ../modules/nested-elements/assets/js/editor/module.js ***! |
| 52 | \*************************************************************/ |
| 53 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 54 | |
| 55 | "use strict"; |
| 56 | |
| 57 | |
| 58 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 59 | Object.defineProperty(exports, "__esModule", ({ |
| 60 | value: true |
| 61 | })); |
| 62 | exports["default"] = void 0; |
| 63 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 64 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 65 | var _component = _interopRequireDefault(__webpack_require__(/*! ./component */ "../modules/nested-elements/assets/js/editor/component.js")); |
| 66 | var NestedElementsModule = exports["default"] = /*#__PURE__*/(0, _createClass2.default)(function NestedElementsModule() { |
| 67 | (0, _classCallCheck2.default)(this, NestedElementsModule); |
| 68 | this.component = $e.components.register(new _component.default()); |
| 69 | }); |
| 70 | |
| 71 | /***/ }), |
| 72 | |
| 73 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/component.js": |
| 74 | /*!********************************************************************************!*\ |
| 75 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/component.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 | var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); |
| 84 | Object.defineProperty(exports, "__esModule", ({ |
| 85 | value: true |
| 86 | })); |
| 87 | exports["default"] = void 0; |
| 88 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 89 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 90 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 91 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 92 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 93 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 94 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 95 | var _nestedModelBase = _interopRequireDefault(__webpack_require__(/*! ./models/nested-model-base */ "../modules/nested-elements/assets/js/editor/nested-repeater/models/nested-model-base.js")); |
| 96 | var _nestedViewBase = _interopRequireDefault(__webpack_require__(/*! ./views/nested-view-base */ "../modules/nested-elements/assets/js/editor/nested-repeater/views/nested-view-base.js")); |
| 97 | var _repeater = _interopRequireDefault(__webpack_require__(/*! ./controls/repeater */ "../modules/nested-elements/assets/js/editor/nested-repeater/controls/repeater.js")); |
| 98 | var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks/ */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/index.js")); |
| 99 | function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } |
| 100 | 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)); } |
| 101 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 102 | 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; } |
| 103 | var Component = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) { |
| 104 | function Component() { |
| 105 | var _this; |
| 106 | (0, _classCallCheck2.default)(this, Component); |
| 107 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 108 | args[_key] = arguments[_key]; |
| 109 | } |
| 110 | _this = _callSuper(this, Component, [].concat(args)); |
| 111 | (0, _defineProperty2.default)(_this, "exports", { |
| 112 | NestedModelBase: _nestedModelBase.default, |
| 113 | NestedViewBase: _nestedViewBase.default |
| 114 | }); |
| 115 | return _this; |
| 116 | } |
| 117 | (0, _inherits2.default)(Component, _$e$modules$Component); |
| 118 | return (0, _createClass2.default)(Component, [{ |
| 119 | key: "registerAPI", |
| 120 | value: function registerAPI() { |
| 121 | _superPropGet(Component, "registerAPI", this, 3)([]); |
| 122 | elementor.addControlView('nested-elements-repeater', _repeater.default); |
| 123 | } |
| 124 | }, { |
| 125 | key: "getNamespace", |
| 126 | value: function getNamespace() { |
| 127 | return 'nested-elements/nested-repeater'; |
| 128 | } |
| 129 | }, { |
| 130 | key: "defaultHooks", |
| 131 | value: function defaultHooks() { |
| 132 | return this.importHooks(hooks); |
| 133 | } |
| 134 | }]); |
| 135 | }($e.modules.ComponentBase); |
| 136 | |
| 137 | /***/ }), |
| 138 | |
| 139 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/controls/repeater.js": |
| 140 | /*!****************************************************************************************!*\ |
| 141 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/controls/repeater.js ***! |
| 142 | \****************************************************************************************/ |
| 143 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 144 | |
| 145 | "use strict"; |
| 146 | |
| 147 | |
| 148 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 149 | Object.defineProperty(exports, "__esModule", ({ |
| 150 | value: true |
| 151 | })); |
| 152 | exports["default"] = void 0; |
| 153 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 154 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 155 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 156 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 157 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 158 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 159 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 160 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 161 | 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)); } |
| 162 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 163 | 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; } |
| 164 | var Repeater = exports["default"] = /*#__PURE__*/function (_elementor$modules$co) { |
| 165 | function Repeater() { |
| 166 | (0, _classCallCheck2.default)(this, Repeater); |
| 167 | return _callSuper(this, Repeater, arguments); |
| 168 | } |
| 169 | (0, _inherits2.default)(Repeater, _elementor$modules$co); |
| 170 | return (0, _createClass2.default)(Repeater, [{ |
| 171 | key: "className", |
| 172 | value: function className() { |
| 173 | // Repeater Panel CSS, depends on 'elementor-control-type-repeater` control. |
| 174 | // `elementor-control-type-nested-elements-repeater` to `elementor-control-type-repeater` |
| 175 | return _superPropGet(Repeater, "className", this, 3)([]).replace('nested-elements-repeater', 'repeater'); |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Override to avoid the default behavior to adjust the title of the row. |
| 180 | * |
| 181 | * @return {Object} |
| 182 | */ |
| 183 | }, { |
| 184 | key: "getDefaults", |
| 185 | value: function getDefaults() { |
| 186 | var widgetContainer = this.options.container, |
| 187 | defaults = widgetContainer.model.config.defaults, |
| 188 | index = widgetContainer.children.length + 1; |
| 189 | return (0, _defineProperty2.default)({ |
| 190 | _id: '' |
| 191 | }, defaults.repeater_title_setting, (0, _utils.extractNestedItemTitle)(widgetContainer, index)); |
| 192 | } |
| 193 | }, { |
| 194 | key: "onChildviewClickDuplicate", |
| 195 | value: function onChildviewClickDuplicate(childView) { |
| 196 | $e.run('document/repeater/duplicate', { |
| 197 | container: this.options.container, |
| 198 | name: this.model.get('name'), |
| 199 | index: childView._index |
| 200 | }); |
| 201 | this.toggleMinRowsClass(); |
| 202 | } |
| 203 | }, { |
| 204 | key: "updateActiveRow", |
| 205 | value: function updateActiveRow() { |
| 206 | if (!this.currentEditableChild) { |
| 207 | return; |
| 208 | } |
| 209 | $e.run('document/repeater/select', { |
| 210 | container: this.container, |
| 211 | index: this.currentEditableChild.itemIndex, |
| 212 | options: { |
| 213 | useHistory: false |
| 214 | } |
| 215 | }); |
| 216 | } |
| 217 | }]); |
| 218 | }(elementor.modules.controls.Repeater); |
| 219 | |
| 220 | /***/ }), |
| 221 | |
| 222 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/base.js": |
| 223 | /*!**************************************************************************************!*\ |
| 224 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/base.js ***! |
| 225 | \**************************************************************************************/ |
| 226 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 227 | |
| 228 | "use strict"; |
| 229 | |
| 230 | |
| 231 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 232 | Object.defineProperty(exports, "__esModule", ({ |
| 233 | value: true |
| 234 | })); |
| 235 | exports["default"] = void 0; |
| 236 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 237 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 238 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 239 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 240 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 241 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 242 | 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)); } |
| 243 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 244 | var Base = exports["default"] = /*#__PURE__*/function (_$e$modules$hookData$) { |
| 245 | function Base() { |
| 246 | (0, _classCallCheck2.default)(this, Base); |
| 247 | return _callSuper(this, Base, arguments); |
| 248 | } |
| 249 | (0, _inherits2.default)(Base, _$e$modules$hookData$); |
| 250 | return (0, _createClass2.default)(Base, [{ |
| 251 | key: "getContainerType", |
| 252 | value: function getContainerType() { |
| 253 | return 'widget'; |
| 254 | } |
| 255 | }, { |
| 256 | key: "getConditions", |
| 257 | value: function getConditions(args) { |
| 258 | return (0, _utils.isWidgetSupportNesting)(args.container.model.get('widgetType')); |
| 259 | } |
| 260 | }]); |
| 261 | }($e.modules.hookData.After); |
| 262 | |
| 263 | /***/ }), |
| 264 | |
| 265 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/duplicate/nested-repeater-duplicate-container.js": |
| 266 | /*!*************************************************************************************************************************************************!*\ |
| 267 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/duplicate/nested-repeater-duplicate-container.js ***! |
| 268 | \*************************************************************************************************************************************************/ |
| 269 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 270 | |
| 271 | "use strict"; |
| 272 | |
| 273 | |
| 274 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 275 | Object.defineProperty(exports, "__esModule", ({ |
| 276 | value: true |
| 277 | })); |
| 278 | exports["default"] = exports.NestedRepeaterDuplicateContainer = void 0; |
| 279 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 280 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 281 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 282 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 283 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 284 | var _base = _interopRequireDefault(__webpack_require__(/*! ../../../base */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/base.js")); |
| 285 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 286 | 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)); } |
| 287 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 288 | var NestedRepeaterDuplicateContainer = exports.NestedRepeaterDuplicateContainer = /*#__PURE__*/function (_Base) { |
| 289 | function NestedRepeaterDuplicateContainer() { |
| 290 | (0, _classCallCheck2.default)(this, NestedRepeaterDuplicateContainer); |
| 291 | return _callSuper(this, NestedRepeaterDuplicateContainer, arguments); |
| 292 | } |
| 293 | (0, _inherits2.default)(NestedRepeaterDuplicateContainer, _Base); |
| 294 | return (0, _createClass2.default)(NestedRepeaterDuplicateContainer, [{ |
| 295 | key: "getId", |
| 296 | value: function getId() { |
| 297 | return 'document/repeater/duplicate--nested-repeater-duplicate-container'; |
| 298 | } |
| 299 | }, { |
| 300 | key: "getCommand", |
| 301 | value: function getCommand() { |
| 302 | return 'document/repeater/duplicate'; |
| 303 | } |
| 304 | }, { |
| 305 | key: "apply", |
| 306 | value: function apply(_ref) { |
| 307 | var container = _ref.container, |
| 308 | index = _ref.index; |
| 309 | var result = $e.run('document/elements/duplicate', { |
| 310 | container: (0, _utils.findChildContainerOrFail)(container, index), |
| 311 | options: { |
| 312 | edit: false // Not losing focus. |
| 313 | } |
| 314 | }); |
| 315 | var widgetType = container.settings.get('widgetType'); |
| 316 | if ((0, _utils.shouldUseAtomicRepeaters)(widgetType)) { |
| 317 | container.view.children._views = (0, _utils.sortViewsByModels)(container); |
| 318 | elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent('elementor/nested-container/atomic-repeater', { |
| 319 | detail: { |
| 320 | container: container, |
| 321 | targetContainer: result, |
| 322 | index: index, |
| 323 | action: { |
| 324 | type: 'duplicate' |
| 325 | } |
| 326 | } |
| 327 | })); |
| 328 | } else { |
| 329 | container.render(); |
| 330 | } |
| 331 | } |
| 332 | }]); |
| 333 | }(_base.default); |
| 334 | var _default = exports["default"] = NestedRepeaterDuplicateContainer; |
| 335 | |
| 336 | /***/ }), |
| 337 | |
| 338 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/insert/nested-repeater-create-container.js": |
| 339 | /*!*******************************************************************************************************************************************!*\ |
| 340 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/insert/nested-repeater-create-container.js ***! |
| 341 | \*******************************************************************************************************************************************/ |
| 342 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 343 | |
| 344 | "use strict"; |
| 345 | |
| 346 | |
| 347 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 348 | Object.defineProperty(exports, "__esModule", ({ |
| 349 | value: true |
| 350 | })); |
| 351 | exports["default"] = exports.NestedRepeaterCreateContainer = void 0; |
| 352 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 353 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 354 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 355 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 356 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 357 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 358 | var _base = _interopRequireDefault(__webpack_require__(/*! ../../../base */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/base.js")); |
| 359 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 360 | 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)); } |
| 361 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 362 | 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; } |
| 363 | /** |
| 364 | * Hook responsible for: |
| 365 | * a. Create container element for each created repeater item. |
| 366 | * b. Set setting `_title` for the new container. |
| 367 | * c. Since the core mechanism does not support nested by default, |
| 368 | * the hook take care of duplicating the children for the new container. |
| 369 | */ |
| 370 | var NestedRepeaterCreateContainer = exports.NestedRepeaterCreateContainer = /*#__PURE__*/function (_Base) { |
| 371 | function NestedRepeaterCreateContainer() { |
| 372 | (0, _classCallCheck2.default)(this, NestedRepeaterCreateContainer); |
| 373 | return _callSuper(this, NestedRepeaterCreateContainer, arguments); |
| 374 | } |
| 375 | (0, _inherits2.default)(NestedRepeaterCreateContainer, _Base); |
| 376 | return (0, _createClass2.default)(NestedRepeaterCreateContainer, [{ |
| 377 | key: "getId", |
| 378 | value: function getId() { |
| 379 | return 'document/repeater/insert--nested-repeater-create-container'; |
| 380 | } |
| 381 | }, { |
| 382 | key: "getCommand", |
| 383 | value: function getCommand() { |
| 384 | return 'document/repeater/insert'; |
| 385 | } |
| 386 | }, { |
| 387 | key: "getConditions", |
| 388 | value: function getConditions(args) { |
| 389 | // Will only handle when command called directly and not through another command like `duplicate` or `move`. |
| 390 | var isCommandCalledDirectly = $e.commands.isCurrentFirstTrace(this.getCommand()); |
| 391 | return _superPropGet(NestedRepeaterCreateContainer, "getConditions", this, 3)([args]) && isCommandCalledDirectly; |
| 392 | } |
| 393 | }, { |
| 394 | key: "apply", |
| 395 | value: function apply(_ref) { |
| 396 | var container = _ref.container, |
| 397 | name = _ref.name; |
| 398 | var index = container.repeaters[name].children.length; |
| 399 | $e.run('document/elements/create', { |
| 400 | container: container, |
| 401 | model: { |
| 402 | elType: 'container', |
| 403 | isLocked: true, |
| 404 | _title: (0, _utils.extractNestedItemTitle)(container, index) |
| 405 | }, |
| 406 | options: { |
| 407 | edit: false // Not losing focus. |
| 408 | } |
| 409 | }); |
| 410 | var widgetType = container.settings.get('widgetType'); |
| 411 | if ((0, _utils.shouldUseAtomicRepeaters)(widgetType)) { |
| 412 | elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent('elementor/nested-container/atomic-repeater', { |
| 413 | detail: { |
| 414 | container: container, |
| 415 | action: { |
| 416 | type: 'create' |
| 417 | } |
| 418 | } |
| 419 | })); |
| 420 | } |
| 421 | } |
| 422 | }]); |
| 423 | }(_base.default); |
| 424 | var _default = exports["default"] = NestedRepeaterCreateContainer; |
| 425 | |
| 426 | /***/ }), |
| 427 | |
| 428 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/move/nested-repeater-move-container.js": |
| 429 | /*!***************************************************************************************************************************************!*\ |
| 430 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/move/nested-repeater-move-container.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"] = exports.NestedRepeaterMoveContainer = void 0; |
| 442 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 443 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 444 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 445 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 446 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 447 | var _base = _interopRequireDefault(__webpack_require__(/*! ../../../base */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/base.js")); |
| 448 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 449 | 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)); } |
| 450 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 451 | var NestedRepeaterMoveContainer = exports.NestedRepeaterMoveContainer = /*#__PURE__*/function (_Base) { |
| 452 | function NestedRepeaterMoveContainer() { |
| 453 | (0, _classCallCheck2.default)(this, NestedRepeaterMoveContainer); |
| 454 | return _callSuper(this, NestedRepeaterMoveContainer, arguments); |
| 455 | } |
| 456 | (0, _inherits2.default)(NestedRepeaterMoveContainer, _Base); |
| 457 | return (0, _createClass2.default)(NestedRepeaterMoveContainer, [{ |
| 458 | key: "getId", |
| 459 | value: function getId() { |
| 460 | return 'document/repeater/move--nested-repeater-move-container'; |
| 461 | } |
| 462 | }, { |
| 463 | key: "getCommand", |
| 464 | value: function getCommand() { |
| 465 | return 'document/repeater/move'; |
| 466 | } |
| 467 | }, { |
| 468 | key: "apply", |
| 469 | value: function apply(_ref) { |
| 470 | var container = _ref.container, |
| 471 | sourceIndex = _ref.sourceIndex, |
| 472 | targetIndex = _ref.targetIndex; |
| 473 | var result = $e.run('document/elements/move', { |
| 474 | container: (0, _utils.findChildContainerOrFail)(container, sourceIndex), |
| 475 | target: container, |
| 476 | options: { |
| 477 | at: targetIndex, |
| 478 | edit: false // Not losing focus. |
| 479 | } |
| 480 | }); |
| 481 | var widgetType = container.settings.get('widgetType'); |
| 482 | if ((0, _utils.shouldUseAtomicRepeaters)(widgetType)) { |
| 483 | container.view.children._views = (0, _utils.sortViewsByModels)(container); |
| 484 | elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent('elementor/nested-container/atomic-repeater', { |
| 485 | detail: { |
| 486 | container: container, |
| 487 | targetContainer: result, |
| 488 | index: targetIndex, |
| 489 | action: { |
| 490 | type: 'move' |
| 491 | } |
| 492 | } |
| 493 | })); |
| 494 | } |
| 495 | } |
| 496 | }]); |
| 497 | }(_base.default); |
| 498 | var _default = exports["default"] = NestedRepeaterMoveContainer; |
| 499 | |
| 500 | /***/ }), |
| 501 | |
| 502 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/remove/nested-repeater-remove-container.js": |
| 503 | /*!*******************************************************************************************************************************************!*\ |
| 504 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/remove/nested-repeater-remove-container.js ***! |
| 505 | \*******************************************************************************************************************************************/ |
| 506 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 507 | |
| 508 | "use strict"; |
| 509 | |
| 510 | |
| 511 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 512 | Object.defineProperty(exports, "__esModule", ({ |
| 513 | value: true |
| 514 | })); |
| 515 | exports["default"] = exports.NestedRepeaterRemoveContainer = void 0; |
| 516 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 517 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 518 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 519 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 520 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 521 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 522 | var _base = _interopRequireDefault(__webpack_require__(/*! ../../../base */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/base.js")); |
| 523 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 524 | 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)); } |
| 525 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 526 | 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; } |
| 527 | /** |
| 528 | * Hook responsible for removing container element for the removed repeater item. |
| 529 | */ |
| 530 | var NestedRepeaterRemoveContainer = exports.NestedRepeaterRemoveContainer = /*#__PURE__*/function (_Base) { |
| 531 | function NestedRepeaterRemoveContainer() { |
| 532 | (0, _classCallCheck2.default)(this, NestedRepeaterRemoveContainer); |
| 533 | return _callSuper(this, NestedRepeaterRemoveContainer, arguments); |
| 534 | } |
| 535 | (0, _inherits2.default)(NestedRepeaterRemoveContainer, _Base); |
| 536 | return (0, _createClass2.default)(NestedRepeaterRemoveContainer, [{ |
| 537 | key: "getId", |
| 538 | value: function getId() { |
| 539 | return 'document/repeater/remove--nested-elements-remove-container'; |
| 540 | } |
| 541 | }, { |
| 542 | key: "getCommand", |
| 543 | value: function getCommand() { |
| 544 | return 'document/repeater/remove'; |
| 545 | } |
| 546 | }, { |
| 547 | key: "getConditions", |
| 548 | value: function getConditions(args) { |
| 549 | // Will only handle when command called directly and not through another command like `duplicate` or `move`. |
| 550 | var isCommandCalledDirectly = $e.commands.isCurrentFirstTrace(this.getCommand()); |
| 551 | return _superPropGet(NestedRepeaterRemoveContainer, "getConditions", this, 3)([args]) && isCommandCalledDirectly; |
| 552 | } |
| 553 | }, { |
| 554 | key: "apply", |
| 555 | value: function apply(_ref) { |
| 556 | var container = _ref.container, |
| 557 | index = _ref.index; |
| 558 | $e.run('document/elements/delete', { |
| 559 | container: (0, _utils.findChildContainerOrFail)(container, index), |
| 560 | force: true |
| 561 | }); |
| 562 | var widgetType = container.settings.get('widgetType'); |
| 563 | if ((0, _utils.shouldUseAtomicRepeaters)(widgetType)) { |
| 564 | elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent('elementor/nested-container/atomic-repeater', { |
| 565 | detail: { |
| 566 | container: container, |
| 567 | action: { |
| 568 | type: 'remove' |
| 569 | } |
| 570 | } |
| 571 | })); |
| 572 | } |
| 573 | } |
| 574 | }]); |
| 575 | }(_base.default); |
| 576 | var _default = exports["default"] = NestedRepeaterRemoveContainer; |
| 577 | |
| 578 | /***/ }), |
| 579 | |
| 580 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/index.js": |
| 581 | /*!**********************************************************************************!*\ |
| 582 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/index.js ***! |
| 583 | \**********************************************************************************/ |
| 584 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 585 | |
| 586 | "use strict"; |
| 587 | |
| 588 | |
| 589 | Object.defineProperty(exports, "__esModule", ({ |
| 590 | value: true |
| 591 | })); |
| 592 | Object.defineProperty(exports, "NestedRepeaterCreateContainer", ({ |
| 593 | enumerable: true, |
| 594 | get: function get() { |
| 595 | return _nestedRepeaterCreateContainer.NestedRepeaterCreateContainer; |
| 596 | } |
| 597 | })); |
| 598 | Object.defineProperty(exports, "NestedRepeaterDuplicateContainer", ({ |
| 599 | enumerable: true, |
| 600 | get: function get() { |
| 601 | return _nestedRepeaterDuplicateContainer.NestedRepeaterDuplicateContainer; |
| 602 | } |
| 603 | })); |
| 604 | Object.defineProperty(exports, "NestedRepeaterFocusCurrentEditedContainer", ({ |
| 605 | enumerable: true, |
| 606 | get: function get() { |
| 607 | return _nestedRepeaterFocusCurrentEditedContainer.NestedRepeaterFocusCurrentEditedContainer; |
| 608 | } |
| 609 | })); |
| 610 | Object.defineProperty(exports, "NestedRepeaterMoveContainer", ({ |
| 611 | enumerable: true, |
| 612 | get: function get() { |
| 613 | return _nestedRepeaterMoveContainer.NestedRepeaterMoveContainer; |
| 614 | } |
| 615 | })); |
| 616 | Object.defineProperty(exports, "NestedRepeaterRemoveContainer", ({ |
| 617 | enumerable: true, |
| 618 | get: function get() { |
| 619 | return _nestedRepeaterRemoveContainer.NestedRepeaterRemoveContainer; |
| 620 | } |
| 621 | })); |
| 622 | var _nestedRepeaterCreateContainer = __webpack_require__(/*! ./data/document/repeater/insert/nested-repeater-create-container */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/insert/nested-repeater-create-container.js"); |
| 623 | var _nestedRepeaterRemoveContainer = __webpack_require__(/*! ./data/document/repeater/remove/nested-repeater-remove-container */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/remove/nested-repeater-remove-container.js"); |
| 624 | var _nestedRepeaterMoveContainer = __webpack_require__(/*! ./data/document/repeater/move/nested-repeater-move-container */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/move/nested-repeater-move-container.js"); |
| 625 | var _nestedRepeaterDuplicateContainer = __webpack_require__(/*! ./data/document/repeater/duplicate/nested-repeater-duplicate-container */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/data/document/repeater/duplicate/nested-repeater-duplicate-container.js"); |
| 626 | var _nestedRepeaterFocusCurrentEditedContainer = __webpack_require__(/*! ./ui/panel/editor/open/nested-repeater-focus-current-edited-container */ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/ui/panel/editor/open/nested-repeater-focus-current-edited-container.js"); |
| 627 | |
| 628 | /***/ }), |
| 629 | |
| 630 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/hooks/ui/panel/editor/open/nested-repeater-focus-current-edited-container.js": |
| 631 | /*!************************************************************************************************************************************************!*\ |
| 632 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/hooks/ui/panel/editor/open/nested-repeater-focus-current-edited-container.js ***! |
| 633 | \************************************************************************************************************************************************/ |
| 634 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 635 | |
| 636 | "use strict"; |
| 637 | |
| 638 | |
| 639 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 640 | Object.defineProperty(exports, "__esModule", ({ |
| 641 | value: true |
| 642 | })); |
| 643 | exports["default"] = exports.NestedRepeaterFocusCurrentEditedContainer = void 0; |
| 644 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 645 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 646 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 647 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 648 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 649 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 650 | 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)); } |
| 651 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 652 | /** |
| 653 | * Since the nested tabs can have different depths, it should focus the current edited container, |
| 654 | * but the problem is, without timeout it will be so fast, that the USER will not be able to see it. |
| 655 | * using `NAVIGATION_DEPTH_SENSITIVITY_TIMEOUT` it will be delayed. formula: `NAVIGATION_DEPTH_SENSITIVITY_TIMEOUT * depth`. |
| 656 | */ |
| 657 | var NAVIGATION_DEPTH_SENSITIVITY_TIMEOUT = 250; |
| 658 | |
| 659 | /** |
| 660 | * Used to open current selected container. |
| 661 | * Will run 'document/repeater/select', over nested elements tree. |
| 662 | * Will select all repeater nested item(s) till it reach current repeater of selected element. |
| 663 | */ |
| 664 | var NestedRepeaterFocusCurrentEditedContainer = exports.NestedRepeaterFocusCurrentEditedContainer = /*#__PURE__*/function (_$e$modules$hookUI$Af) { |
| 665 | function NestedRepeaterFocusCurrentEditedContainer() { |
| 666 | (0, _classCallCheck2.default)(this, NestedRepeaterFocusCurrentEditedContainer); |
| 667 | return _callSuper(this, NestedRepeaterFocusCurrentEditedContainer, arguments); |
| 668 | } |
| 669 | (0, _inherits2.default)(NestedRepeaterFocusCurrentEditedContainer, _$e$modules$hookUI$Af); |
| 670 | return (0, _createClass2.default)(NestedRepeaterFocusCurrentEditedContainer, [{ |
| 671 | key: "getCommand", |
| 672 | value: function getCommand() { |
| 673 | return 'panel/editor/open'; |
| 674 | } |
| 675 | }, { |
| 676 | key: "getId", |
| 677 | value: function getId() { |
| 678 | return 'nested-repeater-focus-current-edited-container'; |
| 679 | } |
| 680 | }, { |
| 681 | key: "getConditions", |
| 682 | value: function getConditions(args) { |
| 683 | var _this$navigationMap; |
| 684 | // Do not select for element creation. |
| 685 | if ($e.commands.isCurrentFirstTrace('document/elements/create')) { |
| 686 | return false; |
| 687 | } |
| 688 | |
| 689 | // If some of the parents are supporting nested elements, then return true. |
| 690 | var allParents = args.view.container.getParentAncestry(), |
| 691 | result = allParents.some(function (parent) { |
| 692 | return (0, _utils.isWidgetSupportNesting)(parent.model.get('widgetType')); |
| 693 | }); |
| 694 | if (result) { |
| 695 | this.navigationMap = this.getNavigationMapForContainers(allParents.filter(function (container) { |
| 696 | return 'container' === container.type && 'widget' === container.parent.type; |
| 697 | })).filter(function (map) { |
| 698 | // Filter out paths that are the same as current. |
| 699 | return map.index !== map.current; |
| 700 | }); |
| 701 | } |
| 702 | return (_this$navigationMap = this.navigationMap) === null || _this$navigationMap === void 0 ? void 0 : _this$navigationMap.length; |
| 703 | } |
| 704 | }, { |
| 705 | key: "apply", |
| 706 | value: function apply() { |
| 707 | var depth = 1; |
| 708 | this.navigationMap.forEach(function (_ref) { |
| 709 | var container = _ref.container, |
| 710 | index = _ref.index; |
| 711 | setTimeout(function () { |
| 712 | // No history, for focusing on current container. |
| 713 | $e.run('document/repeater/select', { |
| 714 | container: container, |
| 715 | index: index++, |
| 716 | options: { |
| 717 | useHistory: false |
| 718 | } |
| 719 | }); |
| 720 | }, NAVIGATION_DEPTH_SENSITIVITY_TIMEOUT * depth); |
| 721 | ++depth; |
| 722 | }); |
| 723 | } |
| 724 | }, { |
| 725 | key: "getNavigationMapForContainers", |
| 726 | value: function getNavigationMapForContainers(containers) { |
| 727 | return containers.map(function (container) { |
| 728 | return { |
| 729 | current: container.parent.model.get('editSettings').get('activeItemIndex'), |
| 730 | container: container.parent, |
| 731 | index: container.parent.children.indexOf(container) + 1 |
| 732 | }; |
| 733 | }).reverse(); |
| 734 | } |
| 735 | }]); |
| 736 | }($e.modules.hookUI.After); |
| 737 | var _default = exports["default"] = NestedRepeaterFocusCurrentEditedContainer; |
| 738 | |
| 739 | /***/ }), |
| 740 | |
| 741 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/models/nested-model-base.js": |
| 742 | /*!***********************************************************************************************!*\ |
| 743 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/models/nested-model-base.js ***! |
| 744 | \***********************************************************************************************/ |
| 745 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 746 | |
| 747 | "use strict"; |
| 748 | |
| 749 | |
| 750 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 751 | Object.defineProperty(exports, "__esModule", ({ |
| 752 | value: true |
| 753 | })); |
| 754 | exports["default"] = void 0; |
| 755 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 756 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 757 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 758 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 759 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 760 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 761 | var _utils = __webpack_require__(/*! elementor/modules/nested-elements/assets/js/editor/utils */ "../modules/nested-elements/assets/js/editor/utils.js"); |
| 762 | 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)); } |
| 763 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 764 | 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; } |
| 765 | var NestedModelBase = exports["default"] = /*#__PURE__*/function (_elementor$modules$el) { |
| 766 | function NestedModelBase() { |
| 767 | (0, _classCallCheck2.default)(this, NestedModelBase); |
| 768 | return _callSuper(this, NestedModelBase, arguments); |
| 769 | } |
| 770 | (0, _inherits2.default)(NestedModelBase, _elementor$modules$el); |
| 771 | return (0, _createClass2.default)(NestedModelBase, [{ |
| 772 | key: "initialize", |
| 773 | value: function initialize(options) { |
| 774 | this.config = elementor.widgetsCache[options.widgetType]; |
| 775 | this.set('supportRepeaterChildren', true); |
| 776 | var isNewElementCreate = 0 === this.get('elements').length && $e.commands.currentTrace.includes('document/elements/create'); |
| 777 | if (isNewElementCreate) { |
| 778 | this.onElementCreate(); |
| 779 | } |
| 780 | _superPropGet(NestedModelBase, "initialize", this, 3)([options]); |
| 781 | } |
| 782 | }, { |
| 783 | key: "isValidChild", |
| 784 | value: function isValidChild(childModel) { |
| 785 | var parentElType = this.get('elType'), |
| 786 | childElType = childModel.get('elType'); |
| 787 | return 'container' === childElType && 'widget' === parentElType && (0, _utils.isWidgetSupportNesting)(this.get('widgetType')) && |
| 788 | // When creating a container for the tabs widget specifically from the repeater, the container should be locked, |
| 789 | // so only containers that are locked (created from the repeater) can be inside the tabs widget. |
| 790 | childModel.get('isLocked'); |
| 791 | } |
| 792 | }, { |
| 793 | key: "getDefaultChildren", |
| 794 | value: function getDefaultChildren() { |
| 795 | var defaults = this.config.defaults, |
| 796 | result = []; |
| 797 | defaults.elements.forEach(function (element) { |
| 798 | element.id = elementorCommon.helpers.getUniqueId(); |
| 799 | element.settings = element.settings || {}; |
| 800 | element.elements = element.elements || []; |
| 801 | element.isLocked = true; |
| 802 | result.push(element); |
| 803 | }); |
| 804 | return result; |
| 805 | } |
| 806 | }, { |
| 807 | key: "onElementCreate", |
| 808 | value: function onElementCreate() { |
| 809 | this.set('elements', this.getDefaultChildren()); |
| 810 | } |
| 811 | }]); |
| 812 | }(elementor.modules.elements.models.Element); |
| 813 | |
| 814 | /***/ }), |
| 815 | |
| 816 | /***/ "../modules/nested-elements/assets/js/editor/nested-repeater/views/nested-view-base.js": |
| 817 | /*!*********************************************************************************************!*\ |
| 818 | !*** ../modules/nested-elements/assets/js/editor/nested-repeater/views/nested-view-base.js ***! |
| 819 | \*********************************************************************************************/ |
| 820 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 821 | |
| 822 | "use strict"; |
| 823 | |
| 824 | |
| 825 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 826 | Object.defineProperty(exports, "__esModule", ({ |
| 827 | value: true |
| 828 | })); |
| 829 | exports["default"] = void 0; |
| 830 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 831 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 832 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 833 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 834 | var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); |
| 835 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 836 | 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)); } |
| 837 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 838 | 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; } |
| 839 | var NestedViewBase = exports["default"] = /*#__PURE__*/function (_elementor$modules$el) { |
| 840 | function NestedViewBase() { |
| 841 | (0, _classCallCheck2.default)(this, NestedViewBase); |
| 842 | return _callSuper(this, NestedViewBase, arguments); |
| 843 | } |
| 844 | (0, _inherits2.default)(NestedViewBase, _elementor$modules$el); |
| 845 | return (0, _createClass2.default)(NestedViewBase, [{ |
| 846 | key: "getChildViewContainer", |
| 847 | value: |
| 848 | // Sometimes the children placement is not in the end of the element, but somewhere else, eg: deep inside the element template. |
| 849 | // If `defaults_placeholder_selector` is set, it will be used to find the correct place to insert the children. |
| 850 | function getChildViewContainer(containerView, childView) { |
| 851 | var _this$model$config$de = this.model.config.defaults, |
| 852 | customSelector = _this$model$config$de.elements_placeholder_selector, |
| 853 | childContainerSelector = _this$model$config$de.child_container_placeholder_selector; |
| 854 | if (childView !== undefined && childView._index !== undefined && childContainerSelector) { |
| 855 | return containerView.$el.find("".concat(childContainerSelector, ":nth-child(").concat(childView._index + 1, ")")); |
| 856 | } |
| 857 | if (customSelector) { |
| 858 | return containerView.$el.find(this.model.config.defaults.elements_placeholder_selector); |
| 859 | } |
| 860 | return _superPropGet(NestedViewBase, "getChildViewContainer", this, 3)([containerView, childView]); |
| 861 | } |
| 862 | }, { |
| 863 | key: "getChildType", |
| 864 | value: function getChildType() { |
| 865 | return ['container']; |
| 866 | } |
| 867 | }, { |
| 868 | key: "onRender", |
| 869 | value: function onRender() { |
| 870 | _superPropGet(NestedViewBase, "onRender", this, 3)([]); |
| 871 | this.normalizeAttributes(); |
| 872 | } |
| 873 | }]); |
| 874 | }(elementor.modules.elements.views.BaseWidget); |
| 875 | |
| 876 | /***/ }), |
| 877 | |
| 878 | /***/ "../modules/nested-elements/assets/js/editor/utils.js": |
| 879 | /*!************************************************************!*\ |
| 880 | !*** ../modules/nested-elements/assets/js/editor/utils.js ***! |
| 881 | \************************************************************/ |
| 882 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 883 | |
| 884 | "use strict"; |
| 885 | /* provided dependency */ var sprintf = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["sprintf"]; |
| 886 | |
| 887 | |
| 888 | Object.defineProperty(exports, "__esModule", ({ |
| 889 | value: true |
| 890 | })); |
| 891 | exports.extractNestedItemTitle = extractNestedItemTitle; |
| 892 | exports.findChildContainerOrFail = findChildContainerOrFail; |
| 893 | exports.isWidgetSupportAtomicRepeaters = isWidgetSupportAtomicRepeaters; |
| 894 | exports.isWidgetSupportNesting = isWidgetSupportNesting; |
| 895 | exports.shouldUseAtomicRepeaters = shouldUseAtomicRepeaters; |
| 896 | exports.sortViewsByModels = sortViewsByModels; |
| 897 | exports.widgetNodes = widgetNodes; |
| 898 | function extractNestedItemTitle(container, index) { |
| 899 | var title = container.view.model.config.defaults.elements_title; |
| 900 | |
| 901 | // Translations comes from server side. |
| 902 | return sprintf(title, index); |
| 903 | } |
| 904 | function isWidgetSupportNesting(widgetType) { |
| 905 | var widgetConfig = elementor.widgetsCache[widgetType]; |
| 906 | if (!widgetConfig) { |
| 907 | return false; |
| 908 | } |
| 909 | return widgetConfig.support_nesting; |
| 910 | } |
| 911 | function isWidgetSupportAtomicRepeaters(widgetType) { |
| 912 | var widgetConfig = elementor.widgetsCache[widgetType]; |
| 913 | if (!widgetConfig) { |
| 914 | return false; |
| 915 | } |
| 916 | return widgetConfig.support_improved_repeaters; |
| 917 | } |
| 918 | function widgetNodes(widgetType) { |
| 919 | var widgetConfig = elementor.widgetsCache[widgetType]; |
| 920 | if (!widgetConfig) { |
| 921 | return false; |
| 922 | } |
| 923 | return { |
| 924 | targetContainer: widgetConfig.target_container, |
| 925 | node: widgetConfig.node |
| 926 | }; |
| 927 | } |
| 928 | function findChildContainerOrFail(container, index) { |
| 929 | var childView = container.view.children.findByIndex(index); |
| 930 | if (!childView) { |
| 931 | throw new Error('Child container was not found for the current repeater item.'); |
| 932 | } |
| 933 | return childView.getContainer(); |
| 934 | } |
| 935 | function shouldUseAtomicRepeaters(widgetType) { |
| 936 | return isWidgetSupportNesting(widgetType) && isWidgetSupportAtomicRepeaters(widgetType); |
| 937 | } |
| 938 | function sortViewsByModels(container) { |
| 939 | var models = container.model.get('elements').models, |
| 940 | children = container.view.children, |
| 941 | updatedViews = {}; |
| 942 | models.forEach(function (model, index) { |
| 943 | var view = children.findByModel(model); |
| 944 | view._index = index; |
| 945 | updatedViews[view.cid] = view; |
| 946 | }); |
| 947 | return updatedViews; |
| 948 | } |
| 949 | |
| 950 | /***/ }), |
| 951 | |
| 952 | /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": |
| 953 | /*!***********************************************************************!*\ |
| 954 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 955 | \***********************************************************************/ |
| 956 | /***/ ((module) => { |
| 957 | |
| 958 | function _assertThisInitialized(e) { |
| 959 | if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); |
| 960 | return e; |
| 961 | } |
| 962 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 963 | |
| 964 | /***/ }), |
| 965 | |
| 966 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 967 | /*!****************************************************************!*\ |
| 968 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 969 | \****************************************************************/ |
| 970 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 971 | |
| 972 | var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 973 | function _defineProperty(e, r, t) { |
| 974 | return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { |
| 975 | value: t, |
| 976 | enumerable: !0, |
| 977 | configurable: !0, |
| 978 | writable: !0 |
| 979 | }) : e[r] = t, e; |
| 980 | } |
| 981 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 982 | |
| 983 | /***/ }), |
| 984 | |
| 985 | /***/ "../node_modules/@babel/runtime/helpers/get.js": |
| 986 | /*!*****************************************************!*\ |
| 987 | !*** ../node_modules/@babel/runtime/helpers/get.js ***! |
| 988 | \*****************************************************/ |
| 989 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 990 | |
| 991 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 992 | function _get() { |
| 993 | return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { |
| 994 | var p = superPropBase(e, t); |
| 995 | if (p) { |
| 996 | var n = Object.getOwnPropertyDescriptor(p, t); |
| 997 | return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; |
| 998 | } |
| 999 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); |
| 1000 | } |
| 1001 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1002 | |
| 1003 | /***/ }), |
| 1004 | |
| 1005 | /***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": |
| 1006 | /*!****************************************************************!*\ |
| 1007 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 1008 | \****************************************************************/ |
| 1009 | /***/ ((module) => { |
| 1010 | |
| 1011 | function _getPrototypeOf(t) { |
| 1012 | return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { |
| 1013 | return t.__proto__ || Object.getPrototypeOf(t); |
| 1014 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); |
| 1015 | } |
| 1016 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1017 | |
| 1018 | /***/ }), |
| 1019 | |
| 1020 | /***/ "../node_modules/@babel/runtime/helpers/inherits.js": |
| 1021 | /*!**********************************************************!*\ |
| 1022 | !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! |
| 1023 | \**********************************************************/ |
| 1024 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1025 | |
| 1026 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 1027 | function _inherits(t, e) { |
| 1028 | if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); |
| 1029 | t.prototype = Object.create(e && e.prototype, { |
| 1030 | constructor: { |
| 1031 | value: t, |
| 1032 | writable: !0, |
| 1033 | configurable: !0 |
| 1034 | } |
| 1035 | }), Object.defineProperty(t, "prototype", { |
| 1036 | writable: !1 |
| 1037 | }), e && setPrototypeOf(t, e); |
| 1038 | } |
| 1039 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1040 | |
| 1041 | /***/ }), |
| 1042 | |
| 1043 | /***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": |
| 1044 | /*!***************************************************************************!*\ |
| 1045 | !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! |
| 1046 | \***************************************************************************/ |
| 1047 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1048 | |
| 1049 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1050 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 1051 | function _possibleConstructorReturn(t, e) { |
| 1052 | if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; |
| 1053 | if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); |
| 1054 | return assertThisInitialized(t); |
| 1055 | } |
| 1056 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1057 | |
| 1058 | /***/ }), |
| 1059 | |
| 1060 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| 1061 | /*!****************************************************************!*\ |
| 1062 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 1063 | \****************************************************************/ |
| 1064 | /***/ ((module) => { |
| 1065 | |
| 1066 | function _setPrototypeOf(t, e) { |
| 1067 | return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { |
| 1068 | return t.__proto__ = e, t; |
| 1069 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); |
| 1070 | } |
| 1071 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1072 | |
| 1073 | /***/ }), |
| 1074 | |
| 1075 | /***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": |
| 1076 | /*!***************************************************************!*\ |
| 1077 | !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! |
| 1078 | \***************************************************************/ |
| 1079 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1080 | |
| 1081 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 1082 | function _superPropBase(t, o) { |
| 1083 | for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); |
| 1084 | return t; |
| 1085 | } |
| 1086 | module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1087 | |
| 1088 | /***/ }) |
| 1089 | |
| 1090 | }]); |
| 1091 | //# sourceMappingURL=3d410a099008411bb011.bundle.js.map |