PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.0-beta1
Elementor Website Builder – more than just a page builder v3.34.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | assets/js/atomic-widgets-editor.js +657 -1184 4.2.3 → 3.34.0-beta1 View file →
@@ -302,513 +302,23 @@
302 302 value: true
303 303 }));
304 304 exports["default"] = EmptyComponent;
305 305 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
306 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
307 306 /* eslint-disable jsx-a11y/no-static-element-interactions */
308 307 /* eslint-disable jsx-a11y/click-events-have-key-events */
309 -
310 308 function EmptyComponent() {
311 - var handleClick = function handleClick() {
312 - _editorOneEvents.EditorOneEventManager.sendCanvasEmptyBoxAction({
313 - targetName: 'add_container'
314 - });
315 - $e.route('panel/elements/categories');
316 - };
317 309 return /*#__PURE__*/_react.default.createElement("div", {
318 310 className: "elementor-first-add"
319 311 }, /*#__PURE__*/_react.default.createElement("div", {
320 312 className: "elementor-icon eicon-plus",
321 - onClick: handleClick
313 + onClick: function onClick() {
314 + return $e.route('panel/elements/categories');
315 + }
322 316 }));
323 317 }
324 318
325 319 /***/ }),
326 320
327 -/***/ "../assets/dev/js/editor/utils/editor-one-events.js":
328 -/*!**********************************************************!*\
329 - !*** ../assets/dev/js/editor/utils/editor-one-events.js ***!
330 - \**********************************************************/
331 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
332 -
333 -"use strict";
334 -
335 -
336 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
337 -Object.defineProperty(exports, "__esModule", ({
338 - value: true
339 -}));
340 -exports["default"] = exports.createDebouncedWidgetPanelSearch = exports.createDebouncedFinderSearch = exports.EditorOneEventManager = void 0;
341 -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
342 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
343 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
344 -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
345 -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
346 -var EditorOneEventManager = exports.EditorOneEventManager = /*#__PURE__*/function () {
347 - function EditorOneEventManager() {
348 - (0, _classCallCheck2.default)(this, EditorOneEventManager);
349 - }
350 - return (0, _createClass2.default)(EditorOneEventManager, null, [{
351 - key: "getEventsManager",
352 - value: function getEventsManager() {
353 - var _elementorCommon;
354 - return (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.eventsManager;
355 - }
356 - }, {
357 - key: "getConfig",
358 - value: function getConfig() {
359 - var _this$getEventsManage;
360 - return (_this$getEventsManage = this.getEventsManager()) === null || _this$getEventsManage === void 0 ? void 0 : _this$getEventsManage.config;
361 - }
362 - }, {
363 - key: "canSendEvents",
364 - value: function canSendEvents() {
365 - var _elementorCommon2;
366 - return ((_elementorCommon2 = elementorCommon) === null || _elementorCommon2 === void 0 || (_elementorCommon2 = _elementorCommon2.config) === null || _elementorCommon2 === void 0 || (_elementorCommon2 = _elementorCommon2.editor_events) === null || _elementorCommon2 === void 0 ? void 0 : _elementorCommon2.can_send_events) || false;
367 - }
368 - }, {
369 - key: "isEventsManagerAvailable",
370 - value: function isEventsManagerAvailable() {
371 - var eventsManager = this.getEventsManager();
372 - return eventsManager && 'function' === typeof eventsManager.dispatchEvent;
373 - }
374 - }, {
375 - key: "dispatchEvent",
376 - value: function dispatchEvent(eventName, payload) {
377 - try {
378 - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) {
379 - return false;
380 - }
381 - this.getEventsManager().dispatchEvent(eventName, payload);
382 - return true;
383 - } catch (error) {
384 - return false;
385 - }
386 - }
387 - }, {
388 - key: "toLowerSnake",
389 - value: function toLowerSnake(value) {
390 - if (!value || 'string' !== typeof value) {
391 - return value;
392 - }
393 - return value.replace(/\s+/g, '_').toLowerCase();
394 - }
395 - }, {
396 - key: "decodeHtmlEntities",
397 - value: function decodeHtmlEntities(text) {
398 - if (!text || 'string' !== typeof text) {
399 - return text;
400 - }
401 - var doc = new DOMParser().parseFromString(text, 'text/html');
402 - return doc.body.textContent || text;
403 - }
404 - }, {
405 - key: "isInEditorContext",
406 - value: function isInEditorContext() {
407 - var _window$elementor;
408 - return 'undefined' !== typeof window.elementor && !!((_window$elementor = window.elementor) !== null && _window$elementor !== void 0 && _window$elementor.documents);
409 - }
410 - }, {
411 - key: "getFinderContext",
412 - value: function getFinderContext() {
413 - var _config$appTypes, _config$appTypes2, _config$locations, _config$locations2;
414 - var config = this.getConfig();
415 - var isEditor = this.isInEditorContext();
416 - return {
417 - windowName: isEditor ? config === null || config === void 0 || (_config$appTypes = config.appTypes) === null || _config$appTypes === void 0 ? void 0 : _config$appTypes.editor : config === null || config === void 0 || (_config$appTypes2 = config.appTypes) === null || _config$appTypes2 === void 0 ? void 0 : _config$appTypes2.wpAdmin,
418 - targetLocation: this.toLowerSnake(isEditor ? config === null || config === void 0 || (_config$locations = config.locations) === null || _config$locations === void 0 ? void 0 : _config$locations.topBar : config === null || config === void 0 || (_config$locations2 = config.locations) === null || _config$locations2 === void 0 ? void 0 : _config$locations2.sidebar)
419 - };
420 - }
421 - }, {
422 - key: "createBasePayload",
423 - value: function createBasePayload() {
424 - var _config$appTypes$edit, _config$appTypes3, _config$appTypes$edit2, _config$appTypes4;
425 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
426 - var config = this.getConfig();
427 - return _objectSpread({
428 - app_type: (_config$appTypes$edit = config === null || config === void 0 || (_config$appTypes3 = config.appTypes) === null || _config$appTypes3 === void 0 ? void 0 : _config$appTypes3.editor) !== null && _config$appTypes$edit !== void 0 ? _config$appTypes$edit : 'editor',
429 - window_name: (_config$appTypes$edit2 = config === null || config === void 0 || (_config$appTypes4 = config.appTypes) === null || _config$appTypes4 === void 0 ? void 0 : _config$appTypes4.editor) !== null && _config$appTypes$edit2 !== void 0 ? _config$appTypes$edit2 : 'editor'
430 - }, overrides);
431 - }
432 - }, {
433 - key: "sendTopBarPublishDropdown",
434 - value: function sendTopBarPublishDropdown(targetName) {
435 - var _config$names, _config$triggers, _config$targetTypes, _config$interactionRe, _config$locations3, _config$secondaryLoca, _config$targetTypes2;
436 - var config = this.getConfig();
437 - return this.dispatchEvent(config === null || config === void 0 || (_config$names = config.names) === null || _config$names === void 0 || (_config$names = _config$names.editorOne) === null || _config$names === void 0 ? void 0 : _config$names.topBarPublishDropdown, this.createBasePayload({
438 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers = config.triggers) === null || _config$triggers === void 0 ? void 0 : _config$triggers.click),
439 - target_type: config === null || config === void 0 || (_config$targetTypes = config.targetTypes) === null || _config$targetTypes === void 0 ? void 0 : _config$targetTypes.dropdownItem,
440 - target_name: targetName,
441 - interaction_result: config === null || config === void 0 || (_config$interactionRe = config.interactionResults) === null || _config$interactionRe === void 0 ? void 0 : _config$interactionRe.actionSelected,
442 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations3 = config.locations) === null || _config$locations3 === void 0 ? void 0 : _config$locations3.topBar),
443 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca = config.secondaryLocations) === null || _config$secondaryLoca === void 0 ? void 0 : _config$secondaryLoca.publishDropdown),
444 - location_l2: config === null || config === void 0 || (_config$targetTypes2 = config.targetTypes) === null || _config$targetTypes2 === void 0 ? void 0 : _config$targetTypes2.dropdownItem,
445 - interaction_description: 'User selected an action from the publish dropdown'
446 - }));
447 - }
448 - }, {
449 - key: "sendTopBarPageList",
450 - value: function sendTopBarPageList(targetName) {
451 - var _config$names2, _config$triggers2, _config$targetTypes3, _config$interactionRe2, _config$interactionRe3, _config$locations4, _config$secondaryLoca2, _config$targetTypes4;
452 - var isCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
453 - var config = this.getConfig();
454 - return this.dispatchEvent(config === null || config === void 0 || (_config$names2 = config.names) === null || _config$names2 === void 0 || (_config$names2 = _config$names2.editorOne) === null || _config$names2 === void 0 ? void 0 : _config$names2.topBarPageList, this.createBasePayload({
455 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers2 = config.triggers) === null || _config$triggers2 === void 0 ? void 0 : _config$triggers2.click),
456 - target_type: config === null || config === void 0 || (_config$targetTypes3 = config.targetTypes) === null || _config$targetTypes3 === void 0 ? void 0 : _config$targetTypes3.dropdownItem,
457 - target_name: targetName,
458 - interaction_result: isCreate ? config === null || config === void 0 || (_config$interactionRe2 = config.interactionResults) === null || _config$interactionRe2 === void 0 ? void 0 : _config$interactionRe2.create : config === null || config === void 0 || (_config$interactionRe3 = config.interactionResults) === null || _config$interactionRe3 === void 0 ? void 0 : _config$interactionRe3.navigate,
459 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations4 = config.locations) === null || _config$locations4 === void 0 ? void 0 : _config$locations4.topBar),
460 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca2 = config.secondaryLocations) === null || _config$secondaryLoca2 === void 0 ? void 0 : _config$secondaryLoca2.pageListDropdown),
461 - location_l2: config === null || config === void 0 || (_config$targetTypes4 = config.targetTypes) === null || _config$targetTypes4 === void 0 ? void 0 : _config$targetTypes4.dropdownItem,
462 - interaction_description: 'User selected an action from the page list dropdown'
463 - }));
464 - }
465 - }, {
466 - key: "sendSiteSettingsSession",
467 - value: function sendSiteSettingsSession(_ref) {
468 - var _config$names3, _config$triggers3, _config$interactionRe4, _config$locations5, _config$secondaryLoca3;
469 - var targetType = _ref.targetType,
470 - _ref$visitedItems = _ref.visitedItems,
471 - visitedItems = _ref$visitedItems === void 0 ? [] : _ref$visitedItems,
472 - _ref$savedItems = _ref.savedItems,
473 - savedItems = _ref$savedItems === void 0 ? [] : _ref$savedItems,
474 - state = _ref.state;
475 - var config = this.getConfig();
476 - return this.dispatchEvent(config === null || config === void 0 || (_config$names3 = config.names) === null || _config$names3 === void 0 || (_config$names3 = _config$names3.editorOne) === null || _config$names3 === void 0 ? void 0 : _config$names3.siteSettingsSession, this.createBasePayload({
477 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers3 = config.triggers) === null || _config$triggers3 === void 0 ? void 0 : _config$triggers3.click),
478 - target_type: targetType,
479 - target_name: 'site_settings',
480 - interaction_result: config === null || config === void 0 || (_config$interactionRe4 = config.interactionResults) === null || _config$interactionRe4 === void 0 ? void 0 : _config$interactionRe4.sessionEnd,
481 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations5 = config.locations) === null || _config$locations5 === void 0 ? void 0 : _config$locations5.leftPanel),
482 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca3 = config.secondaryLocations) === null || _config$secondaryLoca3 === void 0 ? void 0 : _config$secondaryLoca3.siteSettings),
483 - interaction_description: 'Records areas visited as part of the site setting session',
484 - metadata: {
485 - visited_items: visitedItems,
486 - saved_items: savedItems
487 - },
488 - state: state
489 - }));
490 - }
491 - }, {
492 - key: "sendELibraryNav",
493 - value: function sendELibraryNav(tabName) {
494 - var _config$names4, _config$triggers4, _config$targetTypes5, _config$interactionRe5, _config$locations6, _config$secondaryLoca4;
495 - var config = this.getConfig();
496 - return this.dispatchEvent(config === null || config === void 0 || (_config$names4 = config.names) === null || _config$names4 === void 0 || (_config$names4 = _config$names4.editorOne) === null || _config$names4 === void 0 ? void 0 : _config$names4.eLibraryNav, this.createBasePayload({
497 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers4 = config.triggers) === null || _config$triggers4 === void 0 ? void 0 : _config$triggers4.tabSelect),
498 - target_type: config === null || config === void 0 || (_config$targetTypes5 = config.targetTypes) === null || _config$targetTypes5 === void 0 ? void 0 : _config$targetTypes5.tab,
499 - target_name: this.toLowerSnake(tabName),
500 - interaction_result: config === null || config === void 0 || (_config$interactionRe5 = config.interactionResults) === null || _config$interactionRe5 === void 0 ? void 0 : _config$interactionRe5.tabChanged,
501 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations6 = config.locations) === null || _config$locations6 === void 0 ? void 0 : _config$locations6.elementorLibrary),
502 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca4 = config.secondaryLocations) === null || _config$secondaryLoca4 === void 0 ? void 0 : _config$secondaryLoca4.libraryTabs),
503 - interaction_description: 'User navigates within elementor library'
504 - }));
505 - }
506 - }, {
507 - key: "sendELibraryInsert",
508 - value: function sendELibraryInsert(_ref2) {
509 - var _config$triggers5, _config$targetTypes6, _config$interactionRe6, _config$locations7, _config$secondaryLoca5, _config$names5;
510 - var assetId = _ref2.assetId,
511 - assetName = _ref2.assetName,
512 - libraryType = _ref2.libraryType,
513 - _ref2$proRequired = _ref2.proRequired,
514 - proRequired = _ref2$proRequired === void 0 ? false : _ref2$proRequired;
515 - var config = this.getConfig();
516 - var payload = this.createBasePayload({
517 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers5 = config.triggers) === null || _config$triggers5 === void 0 ? void 0 : _config$triggers5.insert),
518 - target_type: config === null || config === void 0 || (_config$targetTypes6 = config.targetTypes) === null || _config$targetTypes6 === void 0 ? void 0 : _config$targetTypes6.button,
519 - target_name: String(assetId),
520 - interaction_result: config === null || config === void 0 || (_config$interactionRe6 = config.interactionResults) === null || _config$interactionRe6 === void 0 ? void 0 : _config$interactionRe6.assetInserted,
521 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations7 = config.locations) === null || _config$locations7 === void 0 ? void 0 : _config$locations7.elementorLibrary),
522 - location_l1: this.toLowerSnake(libraryType),
523 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca5 = config.secondaryLocations) === null || _config$secondaryLoca5 === void 0 ? void 0 : _config$secondaryLoca5.assetCard),
524 - interaction_description: 'User inserts block/pages from elementor library',
525 - metadata: {
526 - template_id: String(assetId),
527 - template_name: this.decodeHtmlEntities(assetName) || ''
528 - }
529 - });
530 - if (proRequired) {
531 - payload.state = 'pro_plan_required';
532 - }
533 - return this.dispatchEvent(config === null || config === void 0 || (_config$names5 = config.names) === null || _config$names5 === void 0 || (_config$names5 = _config$names5.editorOne) === null || _config$names5 === void 0 ? void 0 : _config$names5.eLibraryInsert, payload);
534 - }
535 - }, {
536 - key: "sendELibraryFavorite",
537 - value: function sendELibraryFavorite(_ref3) {
538 - var _config$triggers6, _config$targetTypes7, _config$interactionRe7, _config$locations8, _config$secondaryLoca6, _config$names6;
539 - var assetId = _ref3.assetId,
540 - assetName = _ref3.assetName,
541 - libraryType = _ref3.libraryType,
542 - isFavorite = _ref3.isFavorite,
543 - _ref3$proRequired = _ref3.proRequired,
544 - proRequired = _ref3$proRequired === void 0 ? false : _ref3$proRequired;
545 - var config = this.getConfig();
546 - var payload = this.createBasePayload({
547 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers6 = config.triggers) === null || _config$triggers6 === void 0 ? void 0 : _config$triggers6.click),
548 - target_type: config === null || config === void 0 || (_config$targetTypes7 = config.targetTypes) === null || _config$targetTypes7 === void 0 ? void 0 : _config$targetTypes7.toggle,
549 - target_name: String(assetId),
550 - interaction_result: config === null || config === void 0 || (_config$interactionRe7 = config.interactionResults) === null || _config$interactionRe7 === void 0 ? void 0 : _config$interactionRe7.assetFavorite,
551 - target_value: Boolean(isFavorite),
552 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations8 = config.locations) === null || _config$locations8 === void 0 ? void 0 : _config$locations8.elementorLibrary),
553 - location_l1: this.toLowerSnake(libraryType),
554 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca6 = config.secondaryLocations) === null || _config$secondaryLoca6 === void 0 ? void 0 : _config$secondaryLoca6.assetCard),
555 - interaction_description: 'User favorite block/pages from elementor library',
556 - metadata: {
557 - template_id: String(assetId),
558 - template_name: this.decodeHtmlEntities(assetName) || ''
559 - }
560 - });
561 - if (proRequired) {
562 - payload.state = 'pro_plan_required';
563 - }
564 - return this.dispatchEvent(config === null || config === void 0 || (_config$names6 = config.names) === null || _config$names6 === void 0 || (_config$names6 = _config$names6.editorOne) === null || _config$names6 === void 0 ? void 0 : _config$names6.eLibraryFavorite, payload);
565 - }
566 - }, {
567 - key: "sendELibraryGenerateAi",
568 - value: function sendELibraryGenerateAi(_ref4) {
569 - var _config$names7, _config$triggers7, _config$targetTypes8, _config$interactionRe8, _config$locations9, _config$secondaryLoca7;
570 - var assetId = _ref4.assetId,
571 - assetName = _ref4.assetName,
572 - libraryType = _ref4.libraryType;
573 - var config = this.getConfig();
574 - return this.dispatchEvent(config === null || config === void 0 || (_config$names7 = config.names) === null || _config$names7 === void 0 || (_config$names7 = _config$names7.editorOne) === null || _config$names7 === void 0 ? void 0 : _config$names7.eLibraryGenerateAi, this.createBasePayload({
575 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers7 = config.triggers) === null || _config$triggers7 === void 0 ? void 0 : _config$triggers7.click),
576 - target_type: config === null || config === void 0 || (_config$targetTypes8 = config.targetTypes) === null || _config$targetTypes8 === void 0 ? void 0 : _config$targetTypes8.button,
577 - target_name: String(assetId),
578 - interaction_result: config === null || config === void 0 || (_config$interactionRe8 = config.interactionResults) === null || _config$interactionRe8 === void 0 ? void 0 : _config$interactionRe8.aiGenerate,
579 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations9 = config.locations) === null || _config$locations9 === void 0 ? void 0 : _config$locations9.elementorLibrary),
580 - location_l1: this.toLowerSnake(libraryType),
581 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca7 = config.secondaryLocations) === null || _config$secondaryLoca7 === void 0 ? void 0 : _config$secondaryLoca7.assetCard),
582 - interaction_description: 'User generated block/page based on a library asset',
583 - metadata: {
584 - template_id: String(assetId),
585 - template_name: this.decodeHtmlEntities(assetName) || ''
586 - }
587 - }));
588 - }
589 - }, {
590 - key: "sendFinderSearchInput",
591 - value: function sendFinderSearchInput(_ref5) {
592 - var _config$triggers8, _config$targetTypes9, _config$interactionRe9, _config$interactionRe0, _config$secondaryLoca8, _config$names8;
593 - var resultsCount = _ref5.resultsCount,
594 - _ref5$searchTerm = _ref5.searchTerm,
595 - searchTerm = _ref5$searchTerm === void 0 ? null : _ref5$searchTerm;
596 - var config = this.getConfig();
597 - var hasResults = resultsCount > 0;
598 - var finderContext = this.getFinderContext();
599 - var payload = this.createBasePayload({
600 - window_name: finderContext.windowName,
601 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers8 = config.triggers) === null || _config$triggers8 === void 0 ? void 0 : _config$triggers8.typing),
602 - target_type: config === null || config === void 0 || (_config$targetTypes9 = config.targetTypes) === null || _config$targetTypes9 === void 0 ? void 0 : _config$targetTypes9.searchInput,
603 - target_name: 'finder',
604 - interaction_result: hasResults ? config === null || config === void 0 || (_config$interactionRe9 = config.interactionResults) === null || _config$interactionRe9 === void 0 ? void 0 : _config$interactionRe9.resultsUpdated : config === null || config === void 0 || (_config$interactionRe0 = config.interactionResults) === null || _config$interactionRe0 === void 0 ? void 0 : _config$interactionRe0.noResults,
605 - target_location: finderContext.targetLocation,
606 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca8 = config.secondaryLocations) === null || _config$secondaryLoca8 === void 0 ? void 0 : _config$secondaryLoca8.finder),
607 - interaction_description: 'Finder search input, follows debounce behavior',
608 - metadata: {
609 - results_count: resultsCount
610 - }
611 - });
612 - if (!hasResults && searchTerm) {
613 - payload.metadata.search_term = searchTerm;
614 - }
615 - return this.dispatchEvent(config === null || config === void 0 || (_config$names8 = config.names) === null || _config$names8 === void 0 || (_config$names8 = _config$names8.editorOne) === null || _config$names8 === void 0 ? void 0 : _config$names8.finderSearchInput, payload);
616 - }
617 - }, {
618 - key: "sendFinderResultSelect",
619 - value: function sendFinderResultSelect(choice) {
620 - var _config$names9, _config$triggers9, _config$targetTypes0, _config$interactionRe1, _config$secondaryLoca9, _config$secondaryLoca0;
621 - var config = this.getConfig();
622 - var finderContext = this.getFinderContext();
623 - return this.dispatchEvent(config === null || config === void 0 || (_config$names9 = config.names) === null || _config$names9 === void 0 || (_config$names9 = _config$names9.editorOne) === null || _config$names9 === void 0 ? void 0 : _config$names9.finderResultSelect, this.createBasePayload({
624 - window_name: finderContext.windowName,
625 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers9 = config.triggers) === null || _config$triggers9 === void 0 ? void 0 : _config$triggers9.click),
626 - target_type: config === null || config === void 0 || (_config$targetTypes0 = config.targetTypes) === null || _config$targetTypes0 === void 0 ? void 0 : _config$targetTypes0.searchResult,
627 - target_name: choice,
628 - interaction_result: config === null || config === void 0 || (_config$interactionRe1 = config.interactionResults) === null || _config$interactionRe1 === void 0 ? void 0 : _config$interactionRe1.selected,
629 - target_location: finderContext.targetLocation,
630 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca9 = config.secondaryLocations) === null || _config$secondaryLoca9 === void 0 ? void 0 : _config$secondaryLoca9.finder),
631 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca0 = config.secondaryLocations) === null || _config$secondaryLoca0 === void 0 ? void 0 : _config$secondaryLoca0.finderResults),
632 - interaction_description: 'Finder search results was selected'
633 - }));
634 - }
635 - }, {
636 - key: "sendCanvasEmptyBoxAction",
637 - value: function sendCanvasEmptyBoxAction(_ref6) {
638 - var _config$triggers0, _config$targetTypes1, _config$interactionRe10, _config$locations0, _config$secondaryLoca1, _config$names0;
639 - var targetName = _ref6.targetName,
640 - _ref6$metadata = _ref6.metadata,
641 - metadata = _ref6$metadata === void 0 ? {} : _ref6$metadata,
642 - _ref6$containerCreate = _ref6.containerCreated,
643 - containerCreated = _ref6$containerCreate === void 0 ? null : _ref6$containerCreate;
644 - var config = this.getConfig();
645 - var payload = this.createBasePayload({
646 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers0 = config.triggers) === null || _config$triggers0 === void 0 ? void 0 : _config$triggers0.click),
647 - target_type: config === null || config === void 0 || (_config$targetTypes1 = config.targetTypes) === null || _config$targetTypes1 === void 0 ? void 0 : _config$targetTypes1.buttons,
648 - target_name: targetName,
649 - interaction_result: config === null || config === void 0 || (_config$interactionRe10 = config.interactionResults) === null || _config$interactionRe10 === void 0 ? void 0 : _config$interactionRe10.selected,
650 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations0 = config.locations) === null || _config$locations0 === void 0 ? void 0 : _config$locations0.canvas),
651 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca1 = config.secondaryLocations) === null || _config$secondaryLoca1 === void 0 ? void 0 : _config$secondaryLoca1.emptyBox),
652 - interaction_description: 'Empty box on canvas actions'
653 - });
654 - if (Object.keys(metadata).length > 0) {
655 - payload.metadata = metadata;
656 - }
657 - if (containerCreated !== null) {
658 - payload.state = containerCreated;
659 - }
660 - return this.dispatchEvent(config === null || config === void 0 || (_config$names0 = config.names) === null || _config$names0 === void 0 || (_config$names0 = _config$names0.editorOne) === null || _config$names0 === void 0 ? void 0 : _config$names0.canvasEmptyBoxAction, payload);
661 - }
662 - }, {
663 - key: "sendWidgetPanelSearch",
664 - value: function sendWidgetPanelSearch(_ref7) {
665 - var _config$triggers1, _config$targetTypes10, _config$interactionRe11, _config$interactionRe12, _config$locations1, _config$locations10, _config$secondaryLoca10, _config$names1;
666 - var resultsCount = _ref7.resultsCount,
667 - _ref7$userInput = _ref7.userInput,
668 - userInput = _ref7$userInput === void 0 ? null : _ref7$userInput;
669 - var config = this.getConfig();
670 - var hasResults = resultsCount > 0;
671 - var payload = this.createBasePayload({
672 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers1 = config.triggers) === null || _config$triggers1 === void 0 ? void 0 : _config$triggers1.typing),
673 - target_type: config === null || config === void 0 || (_config$targetTypes10 = config.targetTypes) === null || _config$targetTypes10 === void 0 ? void 0 : _config$targetTypes10.searchWidget,
674 - target_name: 'search_widget',
675 - interaction_result: hasResults ? config === null || config === void 0 || (_config$interactionRe11 = config.interactionResults) === null || _config$interactionRe11 === void 0 ? void 0 : _config$interactionRe11.resultsUpdated : config === null || config === void 0 || (_config$interactionRe12 = config.interactionResults) === null || _config$interactionRe12 === void 0 ? void 0 : _config$interactionRe12.noResults,
676 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations1 = config.locations) === null || _config$locations1 === void 0 ? void 0 : _config$locations1.leftPanel),
677 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$locations10 = config.locations) === null || _config$locations10 === void 0 ? void 0 : _config$locations10.widgetPanel),
678 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca10 = config.secondaryLocations) === null || _config$secondaryLoca10 === void 0 ? void 0 : _config$secondaryLoca10.searchBar),
679 - interaction_description: 'Widget search input, follows debounce behavior'
680 - });
681 - if (!hasResults && userInput) {
682 - payload.metadata = {
683 - user_input: userInput
684 - };
685 - }
686 - return this.dispatchEvent(config === null || config === void 0 || (_config$names1 = config.names) === null || _config$names1 === void 0 || (_config$names1 = _config$names1.editorOne) === null || _config$names1 === void 0 ? void 0 : _config$names1.widgetPanelSearch, payload);
687 - }
688 - }, {
689 - key: "createWpDashPayload",
690 - value: function createWpDashPayload() {
691 - var _config$appTypes$wpDa, _config$appTypes5, _config$locations11;
692 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
693 - var config = this.getConfig();
694 - return this.createBasePayload(_objectSpread({
695 - window_name: (_config$appTypes$wpDa = config === null || config === void 0 || (_config$appTypes5 = config.appTypes) === null || _config$appTypes5 === void 0 ? void 0 : _config$appTypes5.wpDash) !== null && _config$appTypes$wpDa !== void 0 ? _config$appTypes$wpDa : 'wpdash',
696 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin),
697 - location_l2: ''
698 - }, overrides));
699 - }
700 - }, {
701 - key: "sendWpDashElementorMenuClick",
702 - value: function sendWpDashElementorMenuClick() {
703 - var _config$names10, _config$triggers10, _config$targetTypes11, _config$interactionRe13, _config$secondaryLoca11;
704 - var config = this.getConfig();
705 - return this.dispatchEvent(config === null || config === void 0 || (_config$names10 = config.names) === null || _config$names10 === void 0 || (_config$names10 = _config$names10.editorOne) === null || _config$names10 === void 0 ? void 0 : _config$names10.wpDashElementorMenuClick, this.createWpDashPayload({
706 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click),
707 - target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem,
708 - target_name: 'elementor_menu_item',
709 - interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened,
710 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu),
711 - interaction_description: 'core_user_clicked_elementor_menu_item'
712 - }));
713 - }
714 - }, {
715 - key: "sendWpDashEditorSubMenuHover",
716 - value: function sendWpDashEditorSubMenuHover() {
717 - var _config$names11, _config$triggers11, _config$targetTypes12, _config$interactionRe14, _config$secondaryLoca12;
718 - var config = this.getConfig();
719 - return this.dispatchEvent(config === null || config === void 0 || (_config$names11 = config.names) === null || _config$names11 === void 0 || (_config$names11 = _config$names11.editorOne) === null || _config$names11 === void 0 ? void 0 : _config$names11.wpDashEditorSubMenuHover, this.createWpDashPayload({
720 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover),
721 - target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu,
722 - target_name: 'wpdash_editor_sub_menu',
723 - interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened,
724 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu),
725 - interaction_description: 'core_user_hovered_sub_menu'
726 - }));
727 - }
728 - }, {
729 - key: "sendWpDashThemeBuilderClick",
730 - value: function sendWpDashThemeBuilderClick() {
731 - var _config$names12, _config$triggers12, _config$targetTypes13, _config$interactionRe15, _config$secondaryLoca13;
732 - var config = this.getConfig();
733 - return this.dispatchEvent(config === null || config === void 0 || (_config$names12 = config.names) === null || _config$names12 === void 0 || (_config$names12 = _config$names12.editorOne) === null || _config$names12 === void 0 ? void 0 : _config$names12.wpDashThemeBuilderClick, this.createWpDashPayload({
734 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click),
735 - target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem,
736 - target_name: 'theme_builder_menu_item',
737 - interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow,
738 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder),
739 - interaction_description: 'core_user_clicked_theme_builder_menu_item'
740 - }));
741 - }
742 - }, {
743 - key: "sendSidebarMenuItemClicked",
744 - value: function sendSidebarMenuItemClicked(_ref8) {
745 - var eventId = _ref8.eventId,
746 - groupEventId = _ref8.groupEventId;
747 - try {
748 - var _config$windowNames, _config$triggers13, _config$targetTypes14, _config$interactionRe16, _config$locations12, _config$names13;
749 - var config = this.getConfig();
750 - var payload = this.createBasePayload({
751 - window_name: config === null || config === void 0 || (_config$windowNames = config.windowNames) === null || _config$windowNames === void 0 ? void 0 : _config$windowNames.sidebarMenu,
752 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers13 = config.triggers) === null || _config$triggers13 === void 0 ? void 0 : _config$triggers13.click),
753 - target_type: config === null || config === void 0 || (_config$targetTypes14 = config.targetTypes) === null || _config$targetTypes14 === void 0 ? void 0 : _config$targetTypes14.link,
754 - target_name: eventId,
755 - interaction_result: config === null || config === void 0 || (_config$interactionRe16 = config.interactionResults) === null || _config$interactionRe16 === void 0 ? void 0 : _config$interactionRe16.pageOpened,
756 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations12 = config.locations) === null || _config$locations12 === void 0 ? void 0 : _config$locations12.sidebar)
757 - });
758 - if (groupEventId) {
759 - payload.location_l1 = groupEventId;
760 - }
761 - return this.dispatchEvent(config === null || config === void 0 || (_config$names13 = config.names) === null || _config$names13 === void 0 || (_config$names13 = _config$names13.editorOne) === null || _config$names13 === void 0 ? void 0 : _config$names13.sidebarMenuItemClicked, payload);
762 - } catch (error) {
763 - return false;
764 - }
765 - }
766 - }, {
767 - key: "sendSidebarMenuGroupToggled",
768 - value: function sendSidebarMenuGroupToggled(_ref9) {
769 - var eventId = _ref9.eventId,
770 - isExpanded = _ref9.isExpanded;
771 - try {
772 - var _config$interactionRe17, _config$interactionRe18, _config$names14, _config$windowNames2, _config$triggers14, _config$targetTypes15, _config$locations13;
773 - var config = this.getConfig();
774 - var interactionResult = isExpanded ? config === null || config === void 0 || (_config$interactionRe17 = config.interactionResults) === null || _config$interactionRe17 === void 0 ? void 0 : _config$interactionRe17.expanded : config === null || config === void 0 || (_config$interactionRe18 = config.interactionResults) === null || _config$interactionRe18 === void 0 ? void 0 : _config$interactionRe18.collapsed;
775 - return this.dispatchEvent(config === null || config === void 0 || (_config$names14 = config.names) === null || _config$names14 === void 0 || (_config$names14 = _config$names14.editorOne) === null || _config$names14 === void 0 ? void 0 : _config$names14.sidebarMenuGroupToggled, this.createBasePayload({
776 - window_name: config === null || config === void 0 || (_config$windowNames2 = config.windowNames) === null || _config$windowNames2 === void 0 ? void 0 : _config$windowNames2.sidebarMenu,
777 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers14 = config.triggers) === null || _config$triggers14 === void 0 ? void 0 : _config$triggers14.click),
778 - target_type: config === null || config === void 0 || (_config$targetTypes15 = config.targetTypes) === null || _config$targetTypes15 === void 0 ? void 0 : _config$targetTypes15.toggle,
779 - target_name: eventId,
780 - interaction_result: interactionResult,
781 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations13 = config.locations) === null || _config$locations13 === void 0 ? void 0 : _config$locations13.sidebar)
782 - }));
783 - } catch (error) {
784 - return false;
785 - }
786 - }
787 - }]);
788 -}();
789 -var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() {
790 - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300;
791 - return _.debounce(function (resultsCount, searchTerm) {
792 - EditorOneEventManager.sendFinderSearchInput({
793 - resultsCount: resultsCount,
794 - searchTerm: searchTerm
795 - });
796 - }, delay);
797 -};
798 -var createDebouncedWidgetPanelSearch = exports.createDebouncedWidgetPanelSearch = function createDebouncedWidgetPanelSearch() {
799 - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2000;
800 - return _.debounce(function (resultsCount, userInput) {
801 - EditorOneEventManager.sendWidgetPanelSearch({
802 - resultsCount: resultsCount,
803 - userInput: userInput
804 - });
805 - }, delay);
806 -};
807 -var _default = exports["default"] = EditorOneEventManager;
808 -
809 -/***/ }),
810 -
811 321 /***/ "../assets/dev/js/editor/utils/element-types.js":
812 322 /*!******************************************************!*\
813 323 !*** ../assets/dev/js/editor/utils/element-types.js ***!
814 324 \******************************************************/
@@ -927,14 +437,10 @@
927 437 }
928 438 }, {
929 439 key: "initialize",
930 440 value: function initialize(attributes, options) {
931 - var _this$config;
932 441 var elementType = this.get('elType');
933 442 this.config = elementor.config.elements[elementType];
934 - if ((_this$config = this.config) !== null && _this$config !== void 0 && (_this$config = _this$config.meta) !== null && _this$config !== void 0 && _this$config.permanently_locked) {
935 - this.set('isLocked', true);
936 - }
937 443 var isNewElementCreate = 0 === this.get('elements').length && $e.commands.currentTrace.includes('document/elements/create');
938 444 if (isNewElementCreate) {
939 445 this.onElementCreate();
940 446 }
@@ -949,14 +455,8 @@
949 455 }, {
950 456 key: "onElementCreate",
951 457 value: function onElementCreate() {
952 458 var _this = this;
953 - if (this.get('skipDefaultChildren')) {
954 - this.unset('skipDefaultChildren', {
955 - silent: true
956 - });
957 - return;
958 - }
959 459 this.set('elements', this.getDefaultChildren().map(function (element) {
960 460 return _this.buildElement(element);
961 461 }));
962 462 }
@@ -980,10 +480,9 @@
980 480 id: id,
981 481 settings: (_element$settings = element.settings) !== null && _element$settings !== void 0 ? _element$settings : {},
982 482 elements: elements,
983 483 isLocked: element.isLocked || false,
984 - editor_settings: element.editor_settings || {},
985 - meta: element.meta || {}
484 + editor_settings: element.editor_settings || {}
986 485 };
987 486 }
988 487 }]);
989 488 }(elementor.modules.elements.models.Element);
@@ -1049,8 +548,412 @@
1049 548 }(elementor.modules.elements.types.Base);
1050 549
1051 550 /***/ }),
1052 551
552 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab-content/create-atomic-tab-content-type.js":
553 +/*!****************************************************************************************************************************!*\
554 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab-content/create-atomic-tab-content-type.js ***!
555 + \****************************************************************************************************************************/
556 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
557 +
558 +"use strict";
559 +
560 +
561 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
562 +Object.defineProperty(exports, "__esModule", ({
563 + value: true
564 +}));
565 +exports["default"] = void 0;
566 +var _createAtomicTabContentView = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-tab-content-view */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab-content/create-atomic-tab-content-view.js"));
567 +var createAtomicTabContentType = function createAtomicTabContentType() {
568 + return new elementor.modules.elements.types.AtomicElementBase('e-tab-content', (0, _createAtomicTabContentView.default)());
569 +};
570 +var _default = exports["default"] = createAtomicTabContentType;
571 +
572 +/***/ }),
573 +
574 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab-content/create-atomic-tab-content-view.js":
575 +/*!****************************************************************************************************************************!*\
576 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab-content/create-atomic-tab-content-view.js ***!
577 + \****************************************************************************************************************************/
578 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
579 +
580 +"use strict";
581 +
582 +
583 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
584 +Object.defineProperty(exports, "__esModule", ({
585 + value: true
586 +}));
587 +exports["default"] = void 0;
588 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
589 +var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
590 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
591 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
592 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
593 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
594 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
595 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
596 +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
597 +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
598 +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)); }
599 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
600 +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; }
601 +var createAtomicTabContentView = function createAtomicTabContentView() {
602 + var AtomicElementBaseView = elementor.modules.elements.views.createAtomicElementBase('e-tab-content');
603 + return /*#__PURE__*/function (_AtomicElementBaseVie) {
604 + function AtomicTabContentView() {
605 + (0, _classCallCheck2.default)(this, AtomicTabContentView);
606 + return _callSuper(this, AtomicTabContentView, arguments);
607 + }
608 + (0, _inherits2.default)(AtomicTabContentView, _AtomicElementBaseVie);
609 + return (0, _createClass2.default)(AtomicTabContentView, [{
610 + key: "attributes",
611 + value: function attributes() {
612 + var attributes = _superPropGet(AtomicTabContentView, "attributes", this, 3)([]);
613 + return _objectSpread({
614 + 'x-bind': 'tabContent',
615 + 'x-ref': this.model.id
616 + }, attributes);
617 + }
618 + }]);
619 + }(AtomicElementBaseView);
620 +};
621 +var _default = exports["default"] = createAtomicTabContentView;
622 +
623 +/***/ }),
624 +
625 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-model.js":
626 +/*!*************************************************************************************************************!*\
627 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-model.js ***!
628 + \*************************************************************************************************************/
629 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
630 +
631 +"use strict";
632 +
633 +
634 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
635 +Object.defineProperty(exports, "__esModule", ({
636 + value: true
637 +}));
638 +exports["default"] = void 0;
639 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
640 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
641 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
642 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
643 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
644 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
645 +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)); }
646 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
647 +var createAtomicTabModel = function createAtomicTabModel() {
648 + var AtomicElementBaseModel = elementor.modules.elements.models.AtomicElementBase;
649 + return /*#__PURE__*/function (_AtomicElementBaseMod) {
650 + function AtomicTabModel() {
651 + (0, _classCallCheck2.default)(this, AtomicTabModel);
652 + return _callSuper(this, AtomicTabModel, arguments);
653 + }
654 + (0, _inherits2.default)(AtomicTabModel, _AtomicElementBaseMod);
655 + return (0, _createClass2.default)(AtomicTabModel, [{
656 + key: "modifyDefaultChildren",
657 + value: function modifyDefaultChildren(elements) {
658 + var _this$attributes$edit;
659 + var _elements = (0, _slicedToArray2.default)(elements, 1),
660 + paragraph = _elements[0];
661 + var position = (_this$attributes$edit = this.attributes.editor_settings) === null || _this$attributes$edit === void 0 ? void 0 : _this$attributes$edit.initial_position;
662 + paragraph.settings.paragraph = {
663 + $$type: 'string',
664 + value: "Tab ".concat(position)
665 + };
666 + return elements;
667 + }
668 + }]);
669 + }(AtomicElementBaseModel);
670 +};
671 +var _default = exports["default"] = createAtomicTabModel;
672 +
673 +/***/ }),
674 +
675 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-type.js":
676 +/*!************************************************************************************************************!*\
677 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-type.js ***!
678 + \************************************************************************************************************/
679 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
680 +
681 +"use strict";
682 +
683 +
684 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
685 +Object.defineProperty(exports, "__esModule", ({
686 + value: true
687 +}));
688 +exports["default"] = void 0;
689 +var _createAtomicTabView = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-tab-view */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-view.js"));
690 +var _createAtomicTabModel = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-tab-model */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-model.js"));
691 +var createAtomicTabType = function createAtomicTabType() {
692 + return new elementor.modules.elements.types.AtomicElementBase('e-tab', (0, _createAtomicTabView.default)(), (0, _createAtomicTabModel.default)());
693 +};
694 +var _default = exports["default"] = createAtomicTabType;
695 +
696 +/***/ }),
697 +
698 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-view.js":
699 +/*!************************************************************************************************************!*\
700 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-view.js ***!
701 + \************************************************************************************************************/
702 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
703 +
704 +"use strict";
705 +
706 +
707 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
708 +Object.defineProperty(exports, "__esModule", ({
709 + value: true
710 +}));
711 +exports["default"] = void 0;
712 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
713 +var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
714 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
715 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
716 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
717 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
718 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
719 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
720 +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
721 +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
722 +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)); }
723 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
724 +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; }
725 +var createAtomicTabView = function createAtomicTabView() {
726 + var atomicElementBaseView = elementor.modules.elements.views.createAtomicElementBase('e-tab');
727 + return /*#__PURE__*/function (_atomicElementBaseVie) {
728 + function AtomicTabView() {
729 + (0, _classCallCheck2.default)(this, AtomicTabView);
730 + return _callSuper(this, AtomicTabView, arguments);
731 + }
732 + (0, _inherits2.default)(AtomicTabView, _atomicElementBaseVie);
733 + return (0, _createClass2.default)(AtomicTabView, [{
734 + key: "attributes",
735 + value: function attributes() {
736 + var attributes = _superPropGet(AtomicTabView, "attributes", this, 3)([]);
737 + return _objectSpread({
738 + 'x-bind': 'tab',
739 + 'x-ref': this.model.id
740 + }, attributes);
741 + }
742 + }]);
743 + }(atomicElementBaseView);
744 +};
745 +var _default = exports["default"] = createAtomicTabView;
746 +
747 +/***/ }),
748 +
749 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-type.js":
750 +/*!****************************************************************************************************************************************!*\
751 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-type.js ***!
752 + \****************************************************************************************************************************************/
753 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
754 +
755 +"use strict";
756 +
757 +
758 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
759 +Object.defineProperty(exports, "__esModule", ({
760 + value: true
761 +}));
762 +exports["default"] = void 0;
763 +var _createAtomicTabsContentAreaView = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-tabs-content-area-view */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-view.js"));
764 +var createAtomicTabsContentAreaType = function createAtomicTabsContentAreaType() {
765 + var AtomicTabsContentAreaView = (0, _createAtomicTabsContentAreaView.default)();
766 + return new elementor.modules.elements.types.AtomicElementBase('e-tabs-content-area', AtomicTabsContentAreaView);
767 +};
768 +var _default = exports["default"] = createAtomicTabsContentAreaType;
769 +
770 +/***/ }),
771 +
772 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-view.js":
773 +/*!****************************************************************************************************************************************!*\
774 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-view.js ***!
775 + \****************************************************************************************************************************************/
776 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
777 +
778 +"use strict";
779 +
780 +
781 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
782 +Object.defineProperty(exports, "__esModule", ({
783 + value: true
784 +}));
785 +exports["default"] = void 0;
786 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
787 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
788 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
789 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
790 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
791 +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)); }
792 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
793 +var createAtomicTabsContentAreaView = function createAtomicTabsContentAreaView() {
794 + var BaseView = elementor.modules.elements.views.createAtomicElementBase('e-tabs-content-area');
795 + return /*#__PURE__*/function (_BaseView) {
796 + function AtomicTabsContentAreaView() {
797 + (0, _classCallCheck2.default)(this, AtomicTabsContentAreaView);
798 + return _callSuper(this, AtomicTabsContentAreaView, arguments);
799 + }
800 + (0, _inherits2.default)(AtomicTabsContentAreaView, _BaseView);
801 + return (0, _createClass2.default)(AtomicTabsContentAreaView, [{
802 + key: "getChildType",
803 + value: function getChildType() {
804 + return ['e-tab-content', 'container'];
805 + }
806 + }]);
807 + }(BaseView);
808 +};
809 +var _default = exports["default"] = createAtomicTabsContentAreaView;
810 +
811 +/***/ }),
812 +
813 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-type.js":
814 +/*!************************************************************************************************************************!*\
815 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-type.js ***!
816 + \************************************************************************************************************************/
817 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
818 +
819 +"use strict";
820 +
821 +
822 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
823 +Object.defineProperty(exports, "__esModule", ({
824 + value: true
825 +}));
826 +exports["default"] = void 0;
827 +var _createAtomicTabsMenuView = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-tabs-menu-view */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-view.js"));
828 +var createAtomicTabsMenuType = function createAtomicTabsMenuType() {
829 + var AtomicTabsMenuView = (0, _createAtomicTabsMenuView.default)();
830 + return new elementor.modules.elements.types.AtomicElementBase('e-tabs-menu', AtomicTabsMenuView);
831 +};
832 +var _default = exports["default"] = createAtomicTabsMenuType;
833 +
834 +/***/ }),
835 +
836 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-view.js":
837 +/*!************************************************************************************************************************!*\
838 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-view.js ***!
839 + \************************************************************************************************************************/
840 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
841 +
842 +"use strict";
843 +
844 +
845 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
846 +Object.defineProperty(exports, "__esModule", ({
847 + value: true
848 +}));
849 +exports["default"] = void 0;
850 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
851 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
852 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
853 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
854 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
855 +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)); }
856 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
857 +var createAtomicTabsMenuView = function createAtomicTabsMenuView() {
858 + var BaseView = elementor.modules.elements.views.createAtomicElementBase('e-tabs-menu');
859 + return /*#__PURE__*/function (_BaseView) {
860 + function AtomicTabsMenuView() {
861 + (0, _classCallCheck2.default)(this, AtomicTabsMenuView);
862 + return _callSuper(this, AtomicTabsMenuView, arguments);
863 + }
864 + (0, _inherits2.default)(AtomicTabsMenuView, _BaseView);
865 + return (0, _createClass2.default)(AtomicTabsMenuView, [{
866 + key: "getChildType",
867 + value: function getChildType() {
868 + return ['e-tab', 'container'];
869 + }
870 + }]);
871 + }(BaseView);
872 +};
873 +var _default = exports["default"] = createAtomicTabsMenuView;
874 +
875 +/***/ }),
876 +
877 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs/create-atomic-tabs-type.js":
878 +/*!**************************************************************************************************************!*\
879 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs/create-atomic-tabs-type.js ***!
880 + \**************************************************************************************************************/
881 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
882 +
883 +"use strict";
884 +
885 +
886 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
887 +Object.defineProperty(exports, "__esModule", ({
888 + value: true
889 +}));
890 +exports["default"] = void 0;
891 +var _createAtomicTabsView = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-tabs-view */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs/create-atomic-tabs-view.js"));
892 +var createAtomicTabsType = function createAtomicTabsType() {
893 + return new elementor.modules.elements.types.AtomicElementBase('e-tabs', (0, _createAtomicTabsView.default)());
894 +};
895 +var _default = exports["default"] = createAtomicTabsType;
896 +
897 +/***/ }),
898 +
899 +/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs/create-atomic-tabs-view.js":
900 +/*!**************************************************************************************************************!*\
901 + !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs/create-atomic-tabs-view.js ***!
902 + \**************************************************************************************************************/
903 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
904 +
905 +"use strict";
906 +
907 +
908 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
909 +Object.defineProperty(exports, "__esModule", ({
910 + value: true
911 +}));
912 +exports["default"] = void 0;
913 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
914 +var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
915 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
916 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
917 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
918 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
919 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
920 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
921 +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
922 +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
923 +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)); }
924 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
925 +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; }
926 +var createAtomicTabsView = function createAtomicTabsView() {
927 + var AtomicElementBaseView = elementor.modules.elements.views.createAtomicElementBase('e-tabs');
928 + return /*#__PURE__*/function (_AtomicElementBaseVie) {
929 + function AtomicTabsView() {
930 + (0, _classCallCheck2.default)(this, AtomicTabsView);
931 + return _callSuper(this, AtomicTabsView, arguments);
932 + }
933 + (0, _inherits2.default)(AtomicTabsView, _AtomicElementBaseVie);
934 + return (0, _createClass2.default)(AtomicTabsView, [{
935 + key: "attributes",
936 + value: function attributes() {
937 + var _this$model$getSettin;
938 + var defaultActiveTab = (_this$model$getSettin = this.model.getSetting('default-active-tab').value) !== null && _this$model$getSettin !== void 0 ? _this$model$getSettin : 0;
939 + var defaultActiveTabId = "".concat(this.model.id, "-tab-").concat(defaultActiveTab);
940 + var eSettings = JSON.stringify({
941 + 'default-active-tab': defaultActiveTabId
942 + });
943 + var attributes = _superPropGet(AtomicTabsView, "attributes", this, 3)([]);
944 + return _objectSpread({
945 + 'x-data': "eTabs".concat(this.model.id),
946 + 'data-e-settings': eSettings
947 + }, attributes);
948 + }
949 + }]);
950 + }(AtomicElementBaseView);
951 +};
952 +var _default = exports["default"] = createAtomicTabsView;
953 +
954 +/***/ }),
955 +
1053 956 /***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-div-block-type.js":
1054 957 /*!************************************************************************************************!*\
1055 958 !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-div-block-type.js ***!
1056 959 \************************************************************************************************/
@@ -1091,29 +994,8 @@
1091 994 var _default = exports["default"] = createFlexboxType;
1092 995
1093 996 /***/ }),
1094 997
1095 -/***/ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-grid-type.js":
1096 -/*!*******************************************************************************************!*\
1097 - !*** ../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-grid-type.js ***!
1098 - \*******************************************************************************************/
1099 -/***/ ((__unused_webpack_module, exports) => {
1100 -
1101 -"use strict";
1102 -
1103 -
1104 -Object.defineProperty(exports, "__esModule", ({
1105 - value: true
1106 -}));
1107 -exports["default"] = void 0;
1108 -var createGridType = function createGridType() {
1109 - var GridView = elementor.modules.elements.views.createAtomicElementBase('e-grid');
1110 - return new elementor.modules.elements.types.AtomicElementBase('e-grid', GridView);
1111 -};
1112 -var _default = exports["default"] = createGridType;
1113 -
1114 -/***/ }),
1115 -
1116 998 /***/ "../modules/atomic-widgets/assets/js/editor/component.js":
1117 999 /*!***************************************************************!*\
1118 1000 !*** ../modules/atomic-widgets/assets/js/editor/component.js ***!
1119 1001 \***************************************************************/
@@ -1192,9 +1074,8 @@
1192 1074 }
1193 1075 _this = _callSuper(this, AtomicElementEmptyView, [].concat(args));
1194 1076 (0, _defineProperty2.default)(_this, "template", '<div></div>');
1195 1077 (0, _defineProperty2.default)(_this, "className", 'elementor-empty-view');
1196 - (0, _defineProperty2.default)(_this, "unmount", null);
1197 1078 return _this;
1198 1079 }
1199 1080 (0, _inherits2.default)(AtomicElementEmptyView, _Marionette$ItemView);
1200 1081 return (0, _createClass2.default)(AtomicElementEmptyView, [{
@@ -1206,17 +1087,8 @@
1206 1087 unmount = _ReactUtils$render.unmount;
1207 1088 this.unmount = unmount;
1208 1089 }
1209 1090 }, {
1210 - key: "onBeforeRender",
1211 - value: function onBeforeRender() {
1212 - // In case the element is being rendered again, we need to unmount the previous React component.
1213 - if (this.unmount) {
1214 - this.unmount();
1215 - this.unmount = null;
1216 - }
1217 - }
1218 - }, {
1219 1091 key: "onRender",
1220 1092 value: function onRender() {
1221 1093 this.$el.addClass(this.className);
1222 1094 this.renderReactDefaultElement();
@@ -1223,10 +1095,9 @@
1223 1095 }
1224 1096 }, {
1225 1097 key: "onDestroy",
1226 1098 value: function onDestroy() {
1227 - var _this$unmount;
1228 - (_this$unmount = this.unmount) === null || _this$unmount === void 0 || _this$unmount.call(this);
1099 + this.unmount();
1229 1100 }
1230 1101 }]);
1231 1102 }(Marionette.ItemView);
1232 1103
@@ -1247,27 +1118,28 @@
1247 1118 Object.defineProperty(exports, "__esModule", ({
1248 1119 value: true
1249 1120 }));
1250 1121 exports["default"] = createAtomicElementBaseView;
1251 -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
1252 -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
1122 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1253 1123 var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js"));
1254 1124 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1125 +var _atomicElementEmptyView = _interopRequireDefault(__webpack_require__(/*! ./container/atomic-element-empty-view */ "../modules/atomic-widgets/assets/js/editor/container/atomic-element-empty-view.js"));
1255 1126 var _elementTypes = __webpack_require__(/*! elementor-editor/utils/element-types */ "../assets/dev/js/editor/utils/element-types.js");
1256 -var _atomicElementEmptyView = _interopRequireDefault(__webpack_require__(/*! ./container/atomic-element-empty-view */ "../modules/atomic-widgets/assets/js/editor/container/atomic-element-empty-view.js"));
1127 +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1128 +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1257 1129 var BaseElementView = elementor.modules.elements.views.BaseElement;
1258 1130 function createAtomicElementBaseView(type) {
1259 1131 var AtomicElementView = BaseElementView.extend({
1260 1132 template: Marionette.TemplateCache.get("#tmpl-elementor-".concat(type, "-content")),
1261 1133 emptyView: _atomicElementEmptyView.default,
1262 - _childrenRenderPromises: [],
1263 - _createElement: function _createElement(tag) {
1264 - var _elementor$$preview;
1265 - var previewDocument = (_elementor$$preview = elementor.$preview) === null || _elementor$$preview === void 0 || (_elementor$$preview = _elementor$$preview[0]) === null || _elementor$$preview === void 0 ? void 0 : _elementor$$preview.contentDocument;
1266 - if (previewDocument) {
1267 - return previewDocument.createElement(tag);
1134 + tagName: function tagName() {
1135 + if (this.haveLink()) {
1136 + return 'a';
1268 1137 }
1269 - return document.createElement(tag);
1138 + var tagControl = this.model.getSetting('tag');
1139 + var tagControlValue = (tagControl === null || tagControl === void 0 ? void 0 : tagControl.value) || tagControl;
1140 + var defaultTag = this.model.config.default_html_tag;
1141 + return tagControlValue || defaultTag;
1270 1142 },
1271 1143 getChildViewContainer: function getChildViewContainer() {
1272 1144 this.childViewContainer = '';
1273 1145 return Marionette.CompositeView.prototype.getChildViewContainer.apply(this, arguments);
@@ -1283,136 +1155,130 @@
1283 1155 return elType;
1284 1156 });
1285 1157 return ['widget', 'container'].concat((0, _toConsumableArray2.default)(atomicElements));
1286 1158 },
1287 - getRenderContext: function getRenderContext() {
1288 - var _this$_parent, _this$_parent$getRend;
1289 - return (_this$_parent = this._parent) === null || _this$_parent === void 0 || (_this$_parent$getRend = _this$_parent.getRenderContext) === null || _this$_parent$getRend === void 0 ? void 0 : _this$_parent$getRend.call(_this$_parent);
1159 + className: function className() {
1160 + return "".concat(BaseElementView.prototype.className.apply(this), " e-con e-atomic-element ").concat(this.getClassString());
1290 1161 },
1291 - getResolverRenderContext: function getResolverRenderContext() {
1292 - var _this$_parent2, _this$_parent2$getRes;
1293 - return (_this$_parent2 = this._parent) === null || _this$_parent2 === void 0 || (_this$_parent2$getRes = _this$_parent2.getResolverRenderContext) === null || _this$_parent2$getRes === void 0 ? void 0 : _this$_parent2$getRes.call(_this$_parent2);
1162 + // TODO: Copied from `views/column.js`.
1163 + ui: function ui() {
1164 + var ui = BaseElementView.prototype.ui.apply(this, arguments);
1165 + ui.percentsTooltip = '> .elementor-element-overlay .elementor-column-percents-tooltip';
1166 + return ui;
1294 1167 },
1295 - render: function render() {
1296 - var _this = this;
1297 - this._currentRenderPromise = new Promise(function (resolve) {
1298 - // Optimize rendering by reusing existing child views instead of recreating them.
1299 - if (_this._shouldSkipFullRender()) {
1300 - _this._renderWithoutDomRecreation(resolve);
1301 - } else {
1302 - _this._renderWithDomRecreation(resolve);
1168 + attributes: function attributes() {
1169 + var _this$model$getSettin, _this$model$getSettin2, _this$model$config$in, _this$model;
1170 + var attr = BaseElementView.prototype.attributes.apply(this);
1171 + var local = {};
1172 + var cssId = this.model.getSetting('_cssid');
1173 + var customAttributes = (_this$model$getSettin = (_this$model$getSettin2 = this.model.getSetting('attributes')) === null || _this$model$getSettin2 === void 0 ? void 0 : _this$model$getSettin2.value) !== null && _this$model$getSettin !== void 0 ? _this$model$getSettin : [];
1174 + var initialAttributes = (_this$model$config$in = this === null || this === void 0 || (_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.config) === null || _this$model === void 0 ? void 0 : _this$model.initial_attributes) !== null && _this$model$config$in !== void 0 ? _this$model$config$in : {};
1175 + if (cssId) {
1176 + local.id = cssId.value;
1177 + }
1178 + var href = this.getHref();
1179 + if (href) {
1180 + local.href = href;
1181 + }
1182 + local['data-interaction-id'] = this.model.get('id');
1183 + customAttributes.forEach(function (attribute) {
1184 + var _attribute$value, _attribute$value2;
1185 + var key = (_attribute$value = attribute.value) === null || _attribute$value === void 0 || (_attribute$value = _attribute$value.key) === null || _attribute$value === void 0 ? void 0 : _attribute$value.value;
1186 + var value = (_attribute$value2 = attribute.value) === null || _attribute$value2 === void 0 || (_attribute$value2 = _attribute$value2.value) === null || _attribute$value2 === void 0 ? void 0 : _attribute$value2.value;
1187 + if (key && value) {
1188 + local[key] = value;
1303 1189 }
1304 1190 });
1305 - return this;
1191 + return _objectSpread(_objectSpread(_objectSpread({}, attr), initialAttributes), local);
1306 1192 },
1307 - _shouldSkipFullRender: function _shouldSkipFullRender() {
1308 - return this.isRendered && this._hasConnectedChildren();
1193 + // TODO: Copied from `views/column.js`.
1194 + attachElContent: function attachElContent() {
1195 + BaseElementView.prototype.attachElContent.apply(this, arguments);
1196 + var $tooltip = jQuery('<div>', {
1197 + class: 'elementor-column-percents-tooltip',
1198 + 'data-side': elementorCommon.config.isRTL ? 'right' : 'left'
1199 + });
1200 + this.$el.children('.elementor-element-overlay').append($tooltip);
1309 1201 },
1310 - _hasConnectedChildren: function _hasConnectedChildren() {
1311 - var _this$children, _firstChild$$el$get$i, _firstChild$$el;
1312 - if (!((_this$children = this.children) !== null && _this$children !== void 0 && _this$children.length)) {
1313 - return false;
1202 + // TODO: Copied from `views/column.js`.
1203 + getPercentSize: function getPercentSize(size) {
1204 + if (!size) {
1205 + size = this.el.getBoundingClientRect().width;
1314 1206 }
1315 -
1316 - // If the parent's innerHTML was replaced, all children are detached together.
1317 - var firstChild = this.children.findByIndex(0);
1318 - return (_firstChild$$el$get$i = firstChild === null || firstChild === void 0 || (_firstChild$$el = firstChild.$el) === null || _firstChild$$el === void 0 || (_firstChild$$el = _firstChild$$el.get(0)) === null || _firstChild$$el === void 0 ? void 0 : _firstChild$$el.isConnected) !== null && _firstChild$$el$get$i !== void 0 ? _firstChild$$el$get$i : false;
1207 + return +(size / this.$el.parent().width() * 100).toFixed(3);
1319 1208 },
1320 - _renderWithoutDomRecreation: function _renderWithoutDomRecreation(resolve) {
1321 - var _this2 = this;
1322 - this._beforeRender();
1323 - this._renderChildren();
1324 - this._waitForChildrenToComplete().then(function () {
1325 - _this2._afterRender();
1326 - resolve();
1327 - });
1209 + // TODO: Copied from `views/column.js`.
1210 + getPercentsForDisplay: function getPercentsForDisplay() {
1211 + var width = +this.model.getSetting('width') || this.getPercentSize();
1212 + return width.toFixed(1) + '%';
1328 1213 },
1329 - _renderWithDomRecreation: function _renderWithDomRecreation(resolve) {
1330 - BaseElementView.prototype.render.apply(this, arguments);
1331 - this._waitForChildrenToComplete().then(function () {
1332 - resolve();
1214 + renderOnChange: function renderOnChange(settings) {
1215 + var _this = this;
1216 + var changed = settings.changedAttributes();
1217 + setTimeout(function () {
1218 + _this.updateHandlesPosition();
1333 1219 });
1334 - },
1335 - _beforeRender: function _beforeRender() {
1336 - this._isRendering = true;
1337 - this.triggerMethod('before:render', this);
1338 - },
1339 - _afterRender: function _afterRender() {
1340 - this._isRendering = false;
1341 - this.isRendered = true;
1342 - this.triggerMethod('render', this);
1343 - },
1344 - _waitForChildrenToComplete: function _waitForChildrenToComplete() {
1345 - var _this3 = this;
1346 - return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
1347 - return _regenerator.default.wrap(function (_context) {
1348 - while (1) switch (_context.prev = _context.next) {
1349 - case 0:
1350 - if (!(_this3._childrenRenderPromises.length > 0)) {
1351 - _context.next = 1;
1352 - break;
1353 - }
1354 - _context.next = 1;
1355 - return Promise.all(_this3._childrenRenderPromises);
1356 - case 1:
1357 - case "end":
1358 - return _context.stop();
1220 + if (!changed) {
1221 + return;
1222 + }
1223 + BaseElementView.prototype.renderOnChange.apply(this, settings);
1224 + if (changed.attributes) {
1225 + var _this$model$getSettin3;
1226 + var preserveAttrs = ['id', 'class', 'href'];
1227 + var $elAttrs = this.$el[0].attributes;
1228 + for (var i = $elAttrs.length - 1; i >= 0; i--) {
1229 + var attrName = $elAttrs[i].name;
1230 + if (!preserveAttrs.includes(attrName)) {
1231 + this.$el.removeAttr(attrName);
1359 1232 }
1360 - }, _callee);
1361 - }))();
1362 - },
1363 - _renderChildren: function _renderChildren() {
1364 - if (this._shouldSkipFullRender()) {
1365 - var _this$children2;
1366 - (_this$children2 = this.children) === null || _this$children2 === void 0 || _this$children2.each(function (childView) {
1367 - return childView.render();
1233 + }
1234 + var attrs = ((_this$model$getSettin3 = this.model.getSetting('attributes')) === null || _this$model$getSettin3 === void 0 ? void 0 : _this$model$getSettin3.value) || [];
1235 + attrs.forEach(function (attribute) {
1236 + var _attribute$value3, _attribute$value4;
1237 + var key = attribute === null || attribute === void 0 || (_attribute$value3 = attribute.value) === null || _attribute$value3 === void 0 || (_attribute$value3 = _attribute$value3.key) === null || _attribute$value3 === void 0 ? void 0 : _attribute$value3.value;
1238 + var value = attribute === null || attribute === void 0 || (_attribute$value4 = attribute.value) === null || _attribute$value4 === void 0 || (_attribute$value4 = _attribute$value4.value) === null || _attribute$value4 === void 0 ? void 0 : _attribute$value4.value;
1239 + if (key && value) {
1240 + _this.$el.attr(key, value);
1241 + }
1368 1242 });
1369 - } else {
1370 - BaseElementView.prototype._renderChildren.apply(this, arguments);
1243 + return;
1371 1244 }
1372 - this._collectChildrenRenderPromises();
1245 + if (changed.classes) {
1246 + this.$el.attr('class', this.className());
1247 + return;
1248 + }
1249 + if (changed._cssid) {
1250 + if (changed._cssid.value) {
1251 + this.$el.attr('id', changed._cssid.value);
1252 + } else {
1253 + this.$el.removeAttr('id');
1254 + }
1255 + return;
1256 + }
1257 + this.$el.addClass(this.getClasses());
1258 + if (this.isTagChanged(changed)) {
1259 + this.rerenderEntireView();
1260 + }
1373 1261 },
1374 - _collectChildrenRenderPromises: function _collectChildrenRenderPromises() {
1375 - var _this$children3,
1376 - _this4 = this;
1377 - this._childrenRenderPromises = [];
1378 - (_this$children3 = this.children) === null || _this$children3 === void 0 || _this$children3.each(function (childView) {
1379 - if (childView._currentRenderPromise) {
1380 - _this4._childrenRenderPromises.push(childView._currentRenderPromise);
1381 - }
1382 - });
1262 + isTagChanged: function isTagChanged(changed) {
1263 + return ((changed === null || changed === void 0 ? void 0 : changed.tag) !== undefined || (changed === null || changed === void 0 ? void 0 : changed.link) !== undefined) && this._parent && this.tagName() !== this.el.tagName;
1383 1264 },
1265 + rerenderEntireView: function rerenderEntireView() {
1266 + var parent = this._parent;
1267 + this._parent.removeChildView(this);
1268 + parent.addChild(this.model, AtomicElementView, this._index);
1269 + },
1384 1270 onRender: function onRender() {
1385 - var _this5 = this;
1271 + var _this2 = this;
1386 1272 this.dispatchPreviewEvent('elementor/element/render');
1387 1273 BaseElementView.prototype.onRender.apply(this, arguments);
1388 1274
1389 1275 // Defer to wait for everything to render.
1390 1276 setTimeout(function () {
1391 - if (_this5.isAtomicGridContainer()) {
1392 - _this5.reInitEmptyView();
1393 - }
1394 - _this5.droppableInitialize();
1395 - _this5.updateHandlesPosition();
1277 + _this2.droppableInitialize();
1278 + _this2.updateHandlesPosition();
1396 1279 });
1397 1280 },
1398 - destroyEmptyView: function destroyEmptyView() {
1399 - if (this.isAtomicGridContainer()) {
1400 - return;
1401 - }
1402 - return Marionette.CompositeView.prototype.destroyEmptyView.apply(this, arguments);
1403 - },
1404 - isAtomicGridContainer: function isAtomicGridContainer() {
1405 - return 'e-grid' === type;
1406 - },
1407 - reInitEmptyView: function reInitEmptyView() {
1408 - var _this$el;
1409 - if ((_this$el = this.el) !== null && _this$el !== void 0 && _this$el.querySelector(':scope > .elementor-empty-view')) {
1410 - return;
1411 - }
1412 - delete this._showingEmptyView;
1413 - this.showEmptyView();
1414 - },
1415 1281 onDestroy: function onDestroy() {
1416 1282 BaseElementView.prototype.onDestroy.apply(this, arguments);
1417 1283 this.dispatchPreviewEvent('elementor/element/destroy');
1418 1284 },
@@ -1425,8 +1291,23 @@
1425 1291 element: this.getDomElement().get(0)
1426 1292 }
1427 1293 }));
1428 1294 },
1295 + haveLink: function haveLink() {
1296 + var _this$model$getSettin4;
1297 + return !!((_this$model$getSettin4 = this.model.getSetting('link')) !== null && _this$model$getSettin4 !== void 0 && (_this$model$getSettin4 = _this$model$getSettin4.value) !== null && _this$model$getSettin4 !== void 0 && (_this$model$getSettin4 = _this$model$getSettin4.destination) !== null && _this$model$getSettin4 !== void 0 && _this$model$getSettin4.value);
1298 + },
1299 + getHref: function getHref() {
1300 + if (!this.haveLink()) {
1301 + return;
1302 + }
1303 + var _this$model$getSettin5 = this.model.getSetting('link').value.destination,
1304 + $$type = _this$model$getSettin5.$$type,
1305 + value = _this$model$getSettin5.value;
1306 + var isPostId = 'number' === $$type;
1307 + var hrefPrefix = isPostId ? elementor.config.home_url + '/?p=' : '';
1308 + return hrefPrefix + value;
1309 + },
1429 1310 droppableInitialize: function droppableInitialize() {
1430 1311 this.$el.html5Droppable(this.getDroppableOptions());
1431 1312 },
1432 1313 /**
@@ -1434,37 +1315,27 @@
1434 1315 *
1435 1316 * @return {Object} groups
1436 1317 */
1437 1318 getContextMenuGroups: function getContextMenuGroups() {
1438 - var _this6 = this,
1319 + var _this3 = this,
1439 1320 _elementorCommon$conf;
1440 1321 var saveActions = [{
1441 1322 name: 'save',
1442 1323 title: __('Save as a template', 'elementor'),
1324 + shortcut: "<span class=\"elementor-context-menu-list__item__shortcut__new-badge\">".concat(__('New', 'elementor'), "</span>"),
1443 1325 callback: this.saveAsTemplate.bind(this),
1444 1326 isEnabled: function isEnabled() {
1445 - return !_this6.getContainer().isLocked();
1327 + return !_this3.getContainer().isLocked();
1446 1328 }
1447 1329 }];
1448 - var isAdministrator = elementor.config.user.is_administrator;
1449 - var isExperimentalFeaturesEnabled = (_elementorCommon$conf = elementorCommon.config.experimentalFeatures) === null || _elementorCommon$conf === void 0 ? void 0 : _elementorCommon$conf.e_components;
1450 - if (isExperimentalFeaturesEnabled && isAdministrator) {
1451 - var _window$elementorV2$u, _window$elementorV, _window$elementorV$is, _window$elementorV2$u2, _window$elementorV2, _window$elementorV2$h, _window$elementorV2$u3, _window$elementorV3, _window$elementorV3$i;
1452 - var isProActive = (_window$elementorV2$u = (_window$elementorV = window.elementorV2) === null || _window$elementorV === void 0 || (_window$elementorV = _window$elementorV.utils) === null || _window$elementorV === void 0 || (_window$elementorV$is = _window$elementorV.isProActive) === null || _window$elementorV$is === void 0 ? void 0 : _window$elementorV$is.call(_window$elementorV)) !== null && _window$elementorV2$u !== void 0 ? _window$elementorV2$u : true;
1453 - var hasProInstalled = (_window$elementorV2$u2 = (_window$elementorV2 = window.elementorV2) === null || _window$elementorV2 === void 0 || (_window$elementorV2 = _window$elementorV2.utils) === null || _window$elementorV2 === void 0 || (_window$elementorV2$h = _window$elementorV2.hasProInstalled) === null || _window$elementorV2$h === void 0 ? void 0 : _window$elementorV2$h.call(_window$elementorV2)) !== null && _window$elementorV2$u2 !== void 0 ? _window$elementorV2$u2 : false;
1454 - var isProOutdated = hasProInstalled && !((_window$elementorV2$u3 = (_window$elementorV3 = window.elementorV2) === null || _window$elementorV3 === void 0 || (_window$elementorV3 = _window$elementorV3.utils) === null || _window$elementorV3 === void 0 || (_window$elementorV3$i = _window$elementorV3.isProAtLeast) === null || _window$elementorV3$i === void 0 ? void 0 : _window$elementorV3$i.call(_window$elementorV3, '4.0')) !== null && _window$elementorV2$u3 !== void 0 ? _window$elementorV2$u3 : false);
1455 - var showPromoBadge = !isProActive && !isProOutdated;
1456 - var newBadge = "<span class=\"elementor-context-menu-list__item__shortcut__new-badge\">".concat(__('New', 'elementor'), "</span>");
1457 - var badgeClass = 'elementor-context-menu-list__item__shortcut__promotion-badge';
1458 - var proBadge = "<a href=\"https://go.elementor.com/go-pro-components-Instance-create-context-menu/\" target=\"_blank\" onclick=\"event.stopPropagation()\" class=\"".concat(badgeClass, "\"><i class=\"eicon-upgrade-crown\"></i></a>");
1330 + if ((_elementorCommon$conf = elementorCommon.config.experimentalFeatures) !== null && _elementorCommon$conf !== void 0 && _elementorCommon$conf.e_components) {
1459 1331 saveActions.unshift({
1460 1332 name: 'save-component',
1461 - title: __('Create component', 'elementor'),
1462 - shortcut: isProActive || isProOutdated ? newBadge : proBadge,
1463 - hasShortcutAction: showPromoBadge,
1333 + title: __('Save as a component', 'elementor'),
1334 + shortcut: "<span class=\"elementor-context-menu-list__item__shortcut__new-badge\">".concat(__('New', 'elementor'), "</span>"),
1464 1335 callback: this.saveAsComponent.bind(this),
1465 1336 isEnabled: function isEnabled() {
1466 - return (isProActive || isProOutdated) && !_this6.getContainer().isLocked();
1337 + return !_this3.getContainer().isLocked();
1467 1338 }
1468 1339 });
1469 1340 }
1470 1341 var groups = BaseElementView.prototype.getContextMenuGroups.apply(this, arguments),
@@ -1483,33 +1354,8 @@
1483 1354 model: this.model
1484 1355 });
1485 1356 },
1486 1357 saveAsComponent: function saveAsComponent(openContextMenuEvent, options) {
1487 - var _window$elementorV2$u4, _window$elementorV4, _window$elementorV4$h, _window$elementorV2$u5, _window$elementorV5, _window$elementorV5$i, _window$elementorV2$u6, _window$elementorV7, _window$elementorV7$i;
1488 - var hasProInstalled = (_window$elementorV2$u4 = (_window$elementorV4 = window.elementorV2) === null || _window$elementorV4 === void 0 || (_window$elementorV4 = _window$elementorV4.utils) === null || _window$elementorV4 === void 0 || (_window$elementorV4$h = _window$elementorV4.hasProInstalled) === null || _window$elementorV4$h === void 0 ? void 0 : _window$elementorV4$h.call(_window$elementorV4)) !== null && _window$elementorV2$u4 !== void 0 ? _window$elementorV2$u4 : false;
1489 - var isProOutdated = hasProInstalled && !((_window$elementorV2$u5 = (_window$elementorV5 = window.elementorV2) === null || _window$elementorV5 === void 0 || (_window$elementorV5 = _window$elementorV5.utils) === null || _window$elementorV5 === void 0 || (_window$elementorV5$i = _window$elementorV5.isProAtLeast) === null || _window$elementorV5$i === void 0 ? void 0 : _window$elementorV5$i.call(_window$elementorV5, '4.0')) !== null && _window$elementorV2$u5 !== void 0 ? _window$elementorV2$u5 : false);
1490 - if (isProOutdated) {
1491 - var _window$elementorV6, _window$elementorV6$n;
1492 - (_window$elementorV6 = window.elementorV2) === null || _window$elementorV6 === void 0 || (_window$elementorV6 = _window$elementorV6.editorNotifications) === null || _window$elementorV6 === void 0 || (_window$elementorV6$n = _window$elementorV6.notify) === null || _window$elementorV6$n === void 0 || _window$elementorV6$n.call(_window$elementorV6, {
1493 - type: 'info',
1494 - id: 'component-create-update',
1495 - message: __('To create new components, update Elementor Pro to the latest version.', 'elementor'),
1496 - additionalActionProps: [{
1497 - size: 'small',
1498 - variant: 'contained',
1499 - color: 'info',
1500 - href: '/wp-admin/plugins.php',
1501 - target: '_blank',
1502 - children: __('Update Now', 'elementor')
1503 - }]
1504 - });
1505 - return;
1506 - }
1507 - var isProActive = (_window$elementorV2$u6 = (_window$elementorV7 = window.elementorV2) === null || _window$elementorV7 === void 0 || (_window$elementorV7 = _window$elementorV7.utils) === null || _window$elementorV7 === void 0 || (_window$elementorV7$i = _window$elementorV7.isProActive) === null || _window$elementorV7$i === void 0 ? void 0 : _window$elementorV7$i.call(_window$elementorV7)) !== null && _window$elementorV2$u6 !== void 0 ? _window$elementorV2$u6 : true;
1508 - if (!isProActive) {
1509 - return;
1510 - }
1511 -
1512 1358 // Calculate the absolute position where the context menu was opened.
1513 1359 var openMenuOriginalEvent = openContextMenuEvent.originalEvent;
1514 1360 var iframeRect = elementor.$preview[0].getBoundingClientRect();
1515 1361 var anchorPosition = {
@@ -1547,12 +1393,12 @@
1547 1393 preventInit: true
1548 1394 };
1549 1395 },
1550 1396 getDroppableOptions: function getDroppableOptions() {
1551 - var _this7 = this;
1397 + var _this4 = this;
1552 1398 var items = '> .elementor-element, > .elementor-empty-view .elementor-first-add';
1553 1399 return {
1554 - axis: this.isAtomicGridContainer() ? 'vertical' : null,
1400 + axis: null,
1555 1401 items: items,
1556 1402 groups: ['elementor-element'],
1557 1403 horizontalThreshold: 0,
1558 1404 isDroppingAllowed: this.isDroppingAllowed.bind(this),
@@ -1559,9 +1405,9 @@
1559 1405 currentElementClass: 'elementor-html5dnd-current-element',
1560 1406 placeholderClass: 'elementor-sortable-placeholder elementor-widget-placeholder',
1561 1407 hasDraggingOnChildClass: 'e-dragging-over',
1562 1408 getDropContainer: function getDropContainer() {
1563 - return _this7.getContainer();
1409 + return _this4.getContainer();
1564 1410 },
1565 1411 onDropping: function onDropping(side, event) {
1566 1412 event.stopPropagation();
1567 1413
@@ -1568,29 +1414,44 @@
1568 1414 // Triggering the drag end manually, since it won't fire above the iframe
1569 1415 elementor.getPreviewView().onPanelElementDragEnd();
1570 1416 var draggedView = elementor.channels.editor.request('element:dragged'),
1571 1417 draggedElement = draggedView === null || draggedView === void 0 ? void 0 : draggedView.getContainer().view.el,
1572 - isEmptyViewTarget = _this7.emptyViewIsCurrentlyBeingDraggedOver(),
1573 - containerElement = isEmptyViewTarget ? _this7.el : event.currentTarget.parentElement,
1418 + containerElement = event.currentTarget.parentElement,
1574 1419 elements = Array.from((containerElement === null || containerElement === void 0 ? void 0 : containerElement.querySelectorAll(':scope > .elementor-element')) || []);
1575 - var targetIndex = isEmptyViewTarget ? elements.length : elements.indexOf(event.currentTarget);
1576 - if (_this7.isPanelElement(draggedView, draggedElement)) {
1577 - if (_this7.draggingOnBottomOrRightSide(side) && !isEmptyViewTarget) {
1420 + var targetIndex = elements.indexOf(event.currentTarget);
1421 + if (_this4.isPanelElement(draggedView, draggedElement)) {
1422 + var _elementorCommon;
1423 + if (_this4.draggingOnBottomOrRightSide(side) && !_this4.emptyViewIsCurrentlyBeingDraggedOver()) {
1578 1424 targetIndex++;
1579 1425 }
1580 - _this7.onDrop(event, {
1426 + _this4.onDrop(event, {
1581 1427 at: targetIndex
1582 1428 });
1429 + if ((_elementorCommon = elementorCommon) !== null && _elementorCommon !== void 0 && (_elementorCommon = _elementorCommon.eventsManager) !== null && _elementorCommon !== void 0 && _elementorCommon.dispatchEvent) {
1430 + var selectedElement = elementor.channels.panelElements.request('element:selected');
1431 + if (selectedElement) {
1432 + var _selectedElement$mode, _selectedElement$mode2, _selectedElement$mode3, _selectedElement$mode4;
1433 + var elType = (_selectedElement$mode = (_selectedElement$mode2 = selectedElement.model) === null || _selectedElement$mode2 === void 0 ? void 0 : _selectedElement$mode2.get('elType')) !== null && _selectedElement$mode !== void 0 ? _selectedElement$mode : '';
1434 + var widgetType = (_selectedElement$mode3 = (_selectedElement$mode4 = selectedElement.model) === null || _selectedElement$mode4 === void 0 ? void 0 : _selectedElement$mode4.get('widgetType')) !== null && _selectedElement$mode3 !== void 0 ? _selectedElement$mode3 : '';
1435 + var elementName = 'widget' === elType ? widgetType : elType;
1436 + elementorCommon.eventsManager.dispatchEvent('add_element', {
1437 + location: 'editor_panel',
1438 + element_name: elementName,
1439 + element_type: elType,
1440 + widget_type: widgetType
1441 + });
1442 + }
1443 + }
1583 1444 return;
1584 1445 }
1585 - if (_this7.isParentElement(draggedView.getContainer().id)) {
1446 + if (_this4.isParentElement(draggedView.getContainer().id)) {
1586 1447 return;
1587 1448 }
1588 - if (isEmptyViewTarget) {
1589 - _this7.moveDroppedItem(draggedView, targetIndex);
1449 + if (_this4.emptyViewIsCurrentlyBeingDraggedOver()) {
1450 + _this4.moveDroppedItem(draggedView, 0);
1590 1451 return;
1591 1452 }
1592 - _this7.moveExistingElement(side, draggedView, containerElement, elements, targetIndex, draggedElement);
1453 + _this4.moveExistingElement(side, draggedView, containerElement, elements, targetIndex, draggedElement);
1593 1454 }
1594 1455 };
1595 1456 },
1596 1457 moveExistingElement: function moveExistingElement(side, draggedView, containerElement, elements, targetIndex, draggedElement) {
@@ -1708,8 +1569,26 @@
1708 1569 });
1709 1570 });
1710 1571 this.addSectionView = addSectionView;
1711 1572 },
1573 + getClasses: function getClasses() {
1574 + var _window, _window$get, _this$options;
1575 + var transformer = (_window = window) === null || _window === void 0 || (_window = _window.elementorV2) === null || _window === void 0 || (_window = _window.editorCanvas) === null || _window === void 0 || (_window = _window.settingsTransformersRegistry) === null || _window === void 0 || (_window$get = _window.get) === null || _window$get === void 0 ? void 0 : _window$get.call(_window, 'classes');
1576 + if (!transformer) {
1577 + return [];
1578 + }
1579 + return transformer(((_this$options = this.options) === null || _this$options === void 0 || (_this$options = _this$options.model) === null || _this$options === void 0 || (_this$options = _this$options.getSetting('classes')) === null || _this$options === void 0 ? void 0 : _this$options.value) || []);
1580 + },
1581 + getClassString: function getClassString() {
1582 + var classes = this.getClasses();
1583 + var base = this.getBaseClass();
1584 + return [base].concat((0, _toConsumableArray2.default)(classes)).join(' ');
1585 + },
1586 + getBaseClass: function getBaseClass() {
1587 + var _this$options2, _Object$keys$;
1588 + var baseStyles = elementor.helpers.getAtomicWidgetBaseStyles((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.model);
1589 + return (_Object$keys$ = Object.keys(baseStyles !== null && baseStyles !== void 0 ? baseStyles : {})[0]) !== null && _Object$keys$ !== void 0 ? _Object$keys$ : '';
1590 + },
1712 1591 isOverflowHidden: function isOverflowHidden() {
1713 1592 var elementStyles = window.getComputedStyle(this.el);
1714 1593 var overflowStyles = [elementStyles.overflowX, elementStyles.overflowY, elementStyles.overflow];
1715 1594 return overflowStyles.includes('hidden') || overflowStyles.includes('auto');
@@ -1729,17 +1608,9 @@
1729 1608 isTopLevelElement: function isTopLevelElement() {
1730 1609 return this.container.parent && 'document' === this.container.parent.id;
1731 1610 },
1732 1611 isFirstElementInStructure: function isFirstElementInStructure() {
1733 - if (!this.model.collection) {
1734 - return true;
1735 - }
1736 1612 return 0 === this.model.collection.indexOf(this.model);
1737 - },
1738 - getInteractionId: function getInteractionId() {
1739 - var originId = this.model.get('originId');
1740 - var id = this.model.get('id');
1741 - return originId !== null && originId !== void 0 ? originId : id;
1742 1613 }
1743 1614 });
1744 1615 return AtomicElementView;
1745 1616 }
@@ -1943,16 +1814,25 @@
1943 1814 value: true
1944 1815 }));
1945 1816 exports.getElementChildren = getElementChildren;
1946 1817 var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js"));
1818 +/**
1819 + * @typedef {import('assets/dev/js/editor/container/container')} Container
1820 + */
1821 +
1822 +/**
1823 + * return all recursively nested elements in a flat array
1824 + *
1825 + * @param {Container} model
1826 + * @return {Container[]}
1827 + */
1947 1828 function getElementChildren(model) {
1948 - var _model$get$models, _model$get;
1949 - if (!model) {
1950 - return [];
1951 - }
1952 - var childModels = (_model$get$models = (_model$get = model.get('elements')) === null || _model$get === void 0 ? void 0 : _model$get.models) !== null && _model$get$models !== void 0 ? _model$get$models : [];
1953 - var children = childModels.flatMap(getElementChildren);
1954 - return [model].concat((0, _toConsumableArray2.default)(children));
1829 + var _flatMap, _container$model$get$, _container$model;
1830 + var container = window.elementor.getContainer(model.id);
1831 + var children = (_flatMap = ((_container$model$get$ = (_container$model = container.model) === null || _container$model === void 0 || (_container$model = _container$model.get('elements')) === null || _container$model === void 0 ? void 0 : _container$model.models) !== null && _container$model$get$ !== void 0 ? _container$model$get$ : []).flatMap(function (child) {
1832 + return getElementChildren(child);
1833 + })) !== null && _flatMap !== void 0 ? _flatMap : [];
1834 + return [container].concat((0, _toConsumableArray2.default)(children));
1955 1835 }
1956 1836
1957 1837 /***/ }),
1958 1838
@@ -2008,38 +1888,38 @@
2008 1888 var _getElementChildren = __webpack_require__(/*! ./get-element-children */ "../modules/atomic-widgets/assets/js/editor/utils/get-element-children.js");
2009 1889 var _getRandomStyleId = __webpack_require__(/*! ./get-random-style-id */ "../modules/atomic-widgets/assets/js/editor/utils/get-random-style-id.js");
2010 1890 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2011 1891 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2012 -function regenerateLocalStyleIds(container) {
2013 - if (!(container !== null && container !== void 0 && container.model)) {
2014 - return;
2015 - }
2016 - var allElements = (0, _getElementChildren.getElementChildren)(container.model);
2017 - var styledElements = allElements.filter(function (model) {
2018 - var _model$get;
2019 - return model && Object.keys((_model$get = model.get('styles')) !== null && _model$get !== void 0 ? _model$get : {}).length > 0;
2020 - });
2021 - updateElementsStyleIdsInsideOut(styledElements);
2022 -}
1892 +/**
1893 + * @typedef {import('assets/dev/js/editor/container/container')} Container
1894 + */
1895 +
2023 1896 function isClassesProp(prop) {
2024 1897 return prop.$$type && 'classes' === prop.$$type && Array.isArray(prop.value) && prop.value.length > 0;
2025 1898 }
2026 -function calculateNewStylesAndSettings(element, model, settings) {
2027 - var _settings$toJSON;
2028 - var originalStyles = model.get('styles');
2029 - var settingsJson = (_settings$toJSON = settings === null || settings === void 0 ? void 0 : settings.toJSON()) !== null && _settings$toJSON !== void 0 ? _settings$toJSON : {};
2030 - var classesProps = Object.entries(settingsJson).filter(function (_ref) {
1899 +
1900 +/**
1901 + * Update the style id of the container.
1902 + *
1903 + * @param {Container} container
1904 + */
1905 +function updateStyleId(container) {
1906 + var _container$settings$t, _container$settings;
1907 + var originalStyles = container.model.get('styles');
1908 + var settings = (_container$settings$t = (_container$settings = container.settings) === null || _container$settings === void 0 ? void 0 : _container$settings.toJSON()) !== null && _container$settings$t !== void 0 ? _container$settings$t : {};
1909 + var classesProps = Object.entries(settings).filter(function (_ref) {
2031 1910 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
2032 1911 propValue = _ref2[1];
2033 1912 return isClassesProp(propValue);
2034 1913 });
2035 1914 var newStyles = {};
2036 - var changedIds = {};
1915 + var changedIds = {}; // Conversion map - {[originalId: string]: newId: string}
1916 +
2037 1917 Object.entries(originalStyles).forEach(function (_ref3) {
2038 1918 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
2039 1919 originalStyleId = _ref4[0],
2040 1920 style = _ref4[1];
2041 - var newStyleId = (0, _getRandomStyleId.getRandomStyleId)(element, newStyles);
1921 + var newStyleId = (0, _getRandomStyleId.getRandomStyleId)(container, newStyles);
2042 1922 newStyles[newStyleId] = structuredClone(_objectSpread(_objectSpread({}, style), {}, {
2043 1923 id: newStyleId
2044 1924 }));
2045 1925 changedIds[originalStyleId] = newStyleId;
@@ -2054,59 +1934,35 @@
2054 1934 return (_changedIds$className = changedIds[className]) !== null && _changedIds$className !== void 0 ? _changedIds$className : className;
2055 1935 })
2056 1936 })];
2057 1937 }, {});
2058 - return {
2059 - newStyles: newStyles,
2060 - newSettings: Object.fromEntries(newClassesProps)
2061 - };
2062 -}
2063 -function updateStyleIdForContainer(container) {
2064 - var model = container.model,
2065 - settings = container.settings;
2066 - var _calculateNewStylesAn = calculateNewStylesAndSettings(container, model, settings),
2067 - newStyles = _calculateNewStylesAn.newStyles,
2068 - newSettings = _calculateNewStylesAn.newSettings;
1938 +
1939 + // Update classes array
2069 1940 $e.internal('document/elements/set-settings', {
2070 1941 container: container,
2071 - settings: newSettings
1942 + settings: Object.fromEntries(newClassesProps)
2072 1943 });
2073 - model.set('styles', newStyles);
2074 -}
2075 -function updateStyleIdForModel(model) {
2076 - var settings = model.get('settings');
2077 - var _calculateNewStylesAn2 = calculateNewStylesAndSettings(model, model, settings),
2078 - newStyles = _calculateNewStylesAn2.newStyles,
2079 - newSettings = _calculateNewStylesAn2.newSettings;
2080 - settings.set(newSettings);
2081 - model.set('styles', newStyles);
2082 -}
2083 -function updateStyleId(model) {
2084 - var container = window.elementor.getContainer(model.get('id'));
2085 1944
2086 - // If view exists, update the styles via the container
2087 - if (container) {
2088 - updateStyleIdForContainer(container);
2089 - return;
2090 - }
2091 - updateStyleIdForModel(model);
1945 + // Update local styles
1946 + container.model.set('styles', newStyles);
2092 1947 }
2093 1948 function updateElementsStyleIdsInsideOut(styledElements) {
2094 1949 styledElements === null || styledElements === void 0 || styledElements.reverse().forEach(updateStyleId);
2095 1950 }
2096 1951
2097 -/***/ }),
2098 -
2099 -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js":
2100 -/*!***************************************************************!*\
2101 - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***!
2102 - \***************************************************************/
2103 -/***/ ((module) => {
2104 -
2105 -function _OverloadYield(e, d) {
2106 - this.v = e, this.k = d;
1952 +/**
1953 + * Get a container - iterate over its children, find all styled atomic widgets and update their style ids
1954 + *
1955 + * @param {Container} container
1956 + */
1957 +function regenerateLocalStyleIds(container) {
1958 + var allElements = (0, _getElementChildren.getElementChildren)(container);
1959 + var styledElements = allElements.filter(function (element) {
1960 + var _element$model$get;
1961 + return Object.keys((_element$model$get = element.model.get('styles')) !== null && _element$model$get !== void 0 ? _element$model$get : {}).length > 0;
1962 + });
1963 + updateElementsStyleIdsInsideOut(styledElements);
2107 1964 }
2108 -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
2109 1965
2110 1966 /***/ }),
2111 1967
2112 1968 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
@@ -2164,43 +2020,8 @@
2164 2020 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2165 2021
2166 2022 /***/ }),
2167 2023
2168 -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
2169 -/*!******************************************************************!*\
2170 - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
2171 - \******************************************************************/
2172 -/***/ ((module) => {
2173 -
2174 -function asyncGeneratorStep(n, t, e, r, o, a, c) {
2175 - try {
2176 - var i = n[a](c),
2177 - u = i.value;
2178 - } catch (n) {
2179 - return void e(n);
2180 - }
2181 - i.done ? t(u) : Promise.resolve(u).then(r, o);
2182 -}
2183 -function _asyncToGenerator(n) {
2184 - return function () {
2185 - var t = this,
2186 - e = arguments;
2187 - return new Promise(function (r, o) {
2188 - var a = n.apply(t, e);
2189 - function _next(n) {
2190 - asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
2191 - }
2192 - function _throw(n) {
2193 - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
2194 - }
2195 - _next(void 0);
2196 - });
2197 - };
2198 -}
2199 -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2200 -
2201 -/***/ }),
2202 -
2203 2024 /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2204 2025 /*!****************************************************************!*\
2205 2026 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2206 2027 \****************************************************************/
@@ -2419,344 +2240,21 @@
2419 2240 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2420 2241
2421 2242 /***/ }),
2422 2243
2423 -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js":
2424 -/*!*************************************************************!*\
2425 - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***!
2426 - \*************************************************************/
2427 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2428 -
2429 -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2430 -function _regenerator() {
2431 - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
2432 - var e,
2433 - t,
2434 - r = "function" == typeof Symbol ? Symbol : {},
2435 - n = r.iterator || "@@iterator",
2436 - o = r.toStringTag || "@@toStringTag";
2437 - function i(r, n, o, i) {
2438 - var c = n && n.prototype instanceof Generator ? n : Generator,
2439 - u = Object.create(c.prototype);
2440 - return regeneratorDefine(u, "_invoke", function (r, n, o) {
2441 - var i,
2442 - c,
2443 - u,
2444 - f = 0,
2445 - p = o || [],
2446 - y = !1,
2447 - G = {
2448 - p: 0,
2449 - n: 0,
2450 - v: e,
2451 - a: d,
2452 - f: d.bind(e, 4),
2453 - d: function d(t, r) {
2454 - return i = t, c = 0, u = e, G.n = r, a;
2455 - }
2456 - };
2457 - function d(r, n) {
2458 - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
2459 - var o,
2460 - i = p[t],
2461 - d = G.p,
2462 - l = i[2];
2463 - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
2464 - }
2465 - if (o || r > 1) return a;
2466 - throw y = !0, n;
2467 - }
2468 - return function (o, p, l) {
2469 - if (f > 1) throw TypeError("Generator is already running");
2470 - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
2471 - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
2472 - try {
2473 - if (f = 2, i) {
2474 - if (c || (o = "next"), t = i[o]) {
2475 - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
2476 - if (!t.done) return t;
2477 - u = t.value, c < 2 && (c = 0);
2478 - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
2479 - i = e;
2480 - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
2481 - } catch (t) {
2482 - i = e, c = 1, u = t;
2483 - } finally {
2484 - f = 1;
2485 - }
2486 - }
2487 - return {
2488 - value: t,
2489 - done: y
2490 - };
2491 - };
2492 - }(r, o, i), !0), u;
2493 - }
2494 - var a = {};
2495 - function Generator() {}
2496 - function GeneratorFunction() {}
2497 - function GeneratorFunctionPrototype() {}
2498 - t = Object.getPrototypeOf;
2499 - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () {
2500 - return this;
2501 - }), t),
2502 - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
2503 - function f(e) {
2504 - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
2505 - }
2506 - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () {
2507 - return this;
2508 - }), regeneratorDefine(u, "toString", function () {
2509 - return "[object Generator]";
2510 - }), (module.exports = _regenerator = function _regenerator() {
2511 - return {
2512 - w: i,
2513 - m: f
2514 - };
2515 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2516 -}
2517 -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2518 -
2519 -/***/ }),
2520 -
2521 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js":
2522 -/*!******************************************************************!*\
2523 - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***!
2524 - \******************************************************************/
2525 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2526 -
2527 -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2528 -function _regeneratorAsync(n, e, r, t, o) {
2529 - var a = regeneratorAsyncGen(n, e, r, t, o);
2530 - return a.next().then(function (n) {
2531 - return n.done ? n.value : a.next();
2532 - });
2533 -}
2534 -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
2535 -
2536 -/***/ }),
2537 -
2538 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js":
2539 -/*!*********************************************************************!*\
2540 - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***!
2541 - \*********************************************************************/
2542 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2543 -
2544 -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2545 -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2546 -function _regeneratorAsyncGen(r, e, t, o, n) {
2547 - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
2548 -}
2549 -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
2550 -
2551 -/***/ }),
2552 -
2553 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js":
2554 -/*!**************************************************************************!*\
2555 - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***!
2556 - \**************************************************************************/
2557 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2558 -
2559 -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2560 -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2561 -function AsyncIterator(t, e) {
2562 - function n(r, o, i, f) {
2563 - try {
2564 - var c = t[r](o),
2565 - u = c.value;
2566 - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) {
2567 - n("next", t, i, f);
2568 - }, function (t) {
2569 - n("throw", t, i, f);
2570 - }) : e.resolve(u).then(function (t) {
2571 - c.value = t, i(c);
2572 - }, function (t) {
2573 - return n("throw", t, i, f);
2574 - });
2575 - } catch (t) {
2576 - f(t);
2577 - }
2578 - }
2579 - var r;
2580 - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
2581 - return this;
2582 - })), regeneratorDefine(this, "_invoke", function (t, o, i) {
2583 - function f() {
2584 - return new e(function (e, r) {
2585 - n(t, i, e, r);
2586 - });
2587 - }
2588 - return r = r ? r.then(f, f) : f();
2589 - }, !0);
2590 -}
2591 -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2592 -
2593 -/***/ }),
2594 -
2595 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js":
2596 -/*!*******************************************************************!*\
2597 - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***!
2598 - \*******************************************************************/
2244 +/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js":
2245 +/*!***************************************************************!*\
2246 + !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***!
2247 + \***************************************************************/
2599 2248 /***/ ((module) => {
2600 2249
2601 -function _regeneratorDefine(e, r, n, t) {
2602 - var i = Object.defineProperty;
2603 - try {
2604 - i({}, "", {});
2605 - } catch (e) {
2606 - i = 0;
2607 - }
2608 - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
2609 - function o(r, n) {
2610 - _regeneratorDefine(e, r, function (e) {
2611 - return this._invoke(r, n, e);
2612 - });
2613 - }
2614 - r ? i ? i(e, r, {
2615 - value: n,
2616 - enumerable: !t,
2617 - configurable: !t,
2618 - writable: !t
2619 - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
2620 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
2250 +function _readOnlyError(r) {
2251 + throw new TypeError('"' + r + '" is read-only');
2621 2252 }
2622 -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
2253 +module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
2623 2254
2624 2255 /***/ }),
2625 2256
2626 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js":
2627 -/*!*****************************************************************!*\
2628 - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***!
2629 - \*****************************************************************/
2630 -/***/ ((module) => {
2631 -
2632 -function _regeneratorKeys(e) {
2633 - var n = Object(e),
2634 - r = [];
2635 - for (var t in n) r.unshift(t);
2636 - return function e() {
2637 - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
2638 - return e.done = !0, e;
2639 - };
2640 -}
2641 -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
2642 -
2643 -/***/ }),
2644 -
2645 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
2646 -/*!********************************************************************!*\
2647 - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
2648 - \********************************************************************/
2649 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2650 -
2651 -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2652 -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2653 -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js");
2654 -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2655 -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2656 -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js");
2657 -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js");
2658 -function _regeneratorRuntime() {
2659 - "use strict";
2660 -
2661 - var r = regenerator(),
2662 - e = r.m(_regeneratorRuntime),
2663 - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
2664 - function n(r) {
2665 - var e = "function" == typeof r && r.constructor;
2666 - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
2667 - }
2668 - var o = {
2669 - "throw": 1,
2670 - "return": 2,
2671 - "break": 3,
2672 - "continue": 3
2673 - };
2674 - function a(r) {
2675 - var e, t;
2676 - return function (n) {
2677 - e || (e = {
2678 - stop: function stop() {
2679 - return t(n.a, 2);
2680 - },
2681 - "catch": function _catch() {
2682 - return n.v;
2683 - },
2684 - abrupt: function abrupt(r, e) {
2685 - return t(n.a, o[r], e);
2686 - },
2687 - delegateYield: function delegateYield(r, o, a) {
2688 - return e.resultName = o, t(n.d, regeneratorValues(r), a);
2689 - },
2690 - finish: function finish(r) {
2691 - return t(n.f, r);
2692 - }
2693 - }, t = function t(r, _t, o) {
2694 - n.p = e.prev, n.n = e.next;
2695 - try {
2696 - return r(_t, o);
2697 - } finally {
2698 - e.next = n.n;
2699 - }
2700 - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
2701 - try {
2702 - return r.call(this, e);
2703 - } finally {
2704 - n.p = e.prev, n.n = e.next;
2705 - }
2706 - };
2707 - }
2708 - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
2709 - return {
2710 - wrap: function wrap(e, t, n, o) {
2711 - return r.w(a(e), t, n, o && o.reverse());
2712 - },
2713 - isGeneratorFunction: n,
2714 - mark: r.m,
2715 - awrap: function awrap(r, e) {
2716 - return new OverloadYield(r, e);
2717 - },
2718 - AsyncIterator: regeneratorAsyncIterator,
2719 - async: function async(r, e, t, o, u) {
2720 - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u);
2721 - },
2722 - keys: regeneratorKeys,
2723 - values: regeneratorValues
2724 - };
2725 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2726 -}
2727 -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
2728 -
2729 -/***/ }),
2730 -
2731 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js":
2732 -/*!*******************************************************************!*\
2733 - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***!
2734 - \*******************************************************************/
2735 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2736 -
2737 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2738 -function _regeneratorValues(e) {
2739 - if (null != e) {
2740 - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
2741 - r = 0;
2742 - if (t) return t.call(e);
2743 - if ("function" == typeof e.next) return e;
2744 - if (!isNaN(e.length)) return {
2745 - next: function next() {
2746 - return e && r >= e.length && (e = void 0), {
2747 - value: e && e[r++],
2748 - done: !e
2749 - };
2750 - }
2751 - };
2752 - }
2753 - throw new TypeError(_typeof(e) + " is not iterable");
2754 -}
2755 -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
2756 -
2757 -/***/ }),
2758 -
2759 2257 /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2760 2258 /*!****************************************************************!*\
2761 2259 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2762 2260 \****************************************************************/
@@ -2893,33 +2391,8 @@
2893 2391 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2894 2392
2895 2393 /***/ }),
2896 2394
2897 -/***/ "../node_modules/@babel/runtime/regenerator/index.js":
2898 -/*!***********************************************************!*\
2899 - !*** ../node_modules/@babel/runtime/regenerator/index.js ***!
2900 - \***********************************************************/
2901 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2902 -
2903 -// TODO(Babel 8): Remove this file.
2904 -
2905 -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
2906 -module.exports = runtime;
2907 -
2908 -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
2909 -try {
2910 - regeneratorRuntime = runtime;
2911 -} catch (accidentalStrictMode) {
2912 - if (typeof globalThis === "object") {
2913 - globalThis.regeneratorRuntime = runtime;
2914 - } else {
2915 - Function("r", "regeneratorRuntime = r")(runtime);
2916 - }
2917 -}
2918 -
2919 -
2920 -/***/ }),
2921 -
2922 2395 /***/ "../node_modules/react-dom/client.js":
2923 2396 /*!*******************************************!*\
2924 2397 !*** ../node_modules/react-dom/client.js ***!
2925 2398 \*******************************************/
@@ -3033,9 +2506,13 @@
3033 2506 var _createAtomicElementBaseView = _interopRequireDefault(__webpack_require__(/*! ./create-atomic-element-base-view */ "../modules/atomic-widgets/assets/js/editor/create-atomic-element-base-view.js"));
3034 2507 var _atomicElementBaseModel = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-base-model */ "../modules/atomic-widgets/assets/js/editor/atomic-element-base-model.js"));
3035 2508 var _createDivBlockType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/create-div-block-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-div-block-type.js"));
3036 2509 var _createFlexboxType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/create-flexbox-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-flexbox-type.js"));
3037 -var _createGridType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/create-grid-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/create-grid-type.js"));
2510 +var _createAtomicTabsType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/atomic-tabs/create-atomic-tabs-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs/create-atomic-tabs-type.js"));
2511 +var _createAtomicTabContentType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/atomic-tab-content/create-atomic-tab-content-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab-content/create-atomic-tab-content-type.js"));
2512 +var _createAtomicTabType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/atomic-tab/create-atomic-tab-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tab/create-atomic-tab-type.js"));
2513 +var _createAtomicTabsMenuType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-menu/create-atomic-tabs-menu-type.js"));
2514 +var _createAtomicTabsContentAreaType = _interopRequireDefault(__webpack_require__(/*! ./atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-type */ "../modules/atomic-widgets/assets/js/editor/atomic-element-types/atomic-tabs-content-area/create-atomic-tabs-content-area-type.js"));
3038 2515 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)); }
3039 2516 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
3040 2517 var Module = /*#__PURE__*/function (_elementorModules$edi) {
3041 2518 function Module() {
@@ -3059,19 +2536,15 @@
3059 2536 }
3060 2537 }, {
3061 2538 key: "registerAtomicElements",
3062 2539 value: function registerAtomicElements() {
3063 - this.registerAtomicElementTypeIfAbsent((0, _createDivBlockType.default)());
3064 - this.registerAtomicElementTypeIfAbsent((0, _createFlexboxType.default)());
3065 - this.registerAtomicElementTypeIfAbsent((0, _createGridType.default)());
3066 - }
3067 - }, {
3068 - key: "registerAtomicElementTypeIfAbsent",
3069 - value: function registerAtomicElementTypeIfAbsent(elementType) {
3070 - if (elementor.elementsManager.getElementTypeClass(elementType.getType())) {
3071 - return;
3072 - }
3073 - elementor.elementsManager.registerElementType(elementType);
2540 + elementor.elementsManager.registerElementType((0, _createDivBlockType.default)());
2541 + elementor.elementsManager.registerElementType((0, _createFlexboxType.default)());
2542 + elementor.elementsManager.registerElementType((0, _createAtomicTabsType.default)());
2543 + elementor.elementsManager.registerElementType((0, _createAtomicTabContentType.default)());
2544 + elementor.elementsManager.registerElementType((0, _createAtomicTabType.default)());
2545 + elementor.elementsManager.registerElementType((0, _createAtomicTabsMenuType.default)());
2546 + elementor.elementsManager.registerElementType((0, _createAtomicTabsContentAreaType.default)());
3074 2547 }
3075 2548 }]);
3076 2549 }(elementorModules.editor.utils.Module);
3077 2550 new Module();