Update elementor pro
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*! elementor-pro - v3.33.0 - 03-12-2025 */
|
||||
/*! elementor-pro - v3.35.0 - 11-02-2026 */
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
@@ -1172,111 +1172,20 @@ module.exports = elementorModules.editor.utils.Module.extend({
|
||||
elementor.config.user.dismissed_editor_notices.push(this.eventName);
|
||||
},
|
||||
onAction(event) {
|
||||
const {
|
||||
action_url: actionURL = null
|
||||
} = JSON.parse(event.target.closest('button').dataset.settings);
|
||||
let actionURL = null;
|
||||
let source = 'sm-form-install';
|
||||
try {
|
||||
const settings = JSON.parse(event.target.closest('button').dataset.settings);
|
||||
actionURL = settings.action_url || null;
|
||||
source = settings.source || 'sm-form-install';
|
||||
} catch (error) {
|
||||
// Do nothing.
|
||||
}
|
||||
if (actionURL) {
|
||||
window.open(actionURL, '_blank');
|
||||
}
|
||||
this.ajaxRequest('elementor_site_mailer_campaign', {
|
||||
source: 'sm-form-install'
|
||||
});
|
||||
this.ensureNoPromoControlInSession();
|
||||
},
|
||||
onInit() {
|
||||
elementor.channels.editor.on('section:activated', sectionName => this.onSectionActive(sectionName));
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "../modules/forms/assets/js/editor/hints/submission-analysis.js":
|
||||
/*!**********************************************************************!*\
|
||||
!*** ../modules/forms/assets/js/editor/hints/submission-analysis.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js");
|
||||
module.exports = elementorModules.editor.utils.Module.extend({
|
||||
eventName: 'send_app_forms_actions_notice',
|
||||
suffix: '',
|
||||
control: null,
|
||||
onSectionActive(sectionName) {
|
||||
if (!this.isCurrentSection(sectionName)) {
|
||||
return;
|
||||
}
|
||||
this.control = null;
|
||||
if (!this.hasPromoControl()) {
|
||||
return;
|
||||
}
|
||||
if (this.isNoticeDismissed('send_app_forms_actions_notice')) {
|
||||
this.getPromoControl().remove();
|
||||
return;
|
||||
}
|
||||
this.registerEvents();
|
||||
},
|
||||
isCurrentSection(sectionName) {
|
||||
return ['section_integration'].includes(sectionName);
|
||||
},
|
||||
isNoticeDismissed(noticeName) {
|
||||
return elementor.config.user.dismissed_editor_notices.includes(noticeName);
|
||||
},
|
||||
registerEvents() {
|
||||
const dismissBtn = this.getPromoControl().$el.find('.elementor-control-notice-dismiss');
|
||||
const onDismissBtnClick = event => {
|
||||
dismissBtn.off('click', onDismissBtnClick);
|
||||
event.preventDefault();
|
||||
this.dismiss();
|
||||
this.getPromoControl().remove();
|
||||
};
|
||||
dismissBtn.on('click', onDismissBtnClick);
|
||||
const actionBtn = this.getPromoControl().$el.find('.e-btn-1');
|
||||
const onActionBtn = event => {
|
||||
actionBtn.off('click', onActionBtn);
|
||||
event.preventDefault();
|
||||
this.onAction(event);
|
||||
this.getPromoControl().remove();
|
||||
};
|
||||
actionBtn.on('click', onActionBtn);
|
||||
},
|
||||
getPromoControl() {
|
||||
if (this.control) {
|
||||
return this.control;
|
||||
}
|
||||
if (!!this.getEditorControlModel('send_app_promo' + this.suffix)) {
|
||||
this.control = this.getEditorControlView('send_app_promo' + this.suffix);
|
||||
}
|
||||
return this.control;
|
||||
},
|
||||
hasPromoControl() {
|
||||
return !!this.getPromoControl();
|
||||
},
|
||||
ajaxRequest(name, data) {
|
||||
elementorCommon.ajax.addRequest(name, {
|
||||
data
|
||||
});
|
||||
},
|
||||
dismiss() {
|
||||
this.ajaxRequest('dismissed_editor_notices', {
|
||||
dismissId: this.eventName
|
||||
});
|
||||
this.ensureNoPromoControlInSession();
|
||||
},
|
||||
ensureNoPromoControlInSession() {
|
||||
elementor.config.user.dismissed_editor_notices.push(this.eventName);
|
||||
},
|
||||
onAction(event) {
|
||||
const {
|
||||
action_url: actionURL = null
|
||||
} = JSON.parse(event.currentTarget.dataset.settings);
|
||||
if (actionURL) {
|
||||
window.open(actionURL, '_blank');
|
||||
}
|
||||
this.ajaxRequest('elementor_send_app_campaign', {
|
||||
source: 'snd-form-install'
|
||||
source
|
||||
});
|
||||
this.ensureNoPromoControlInSession();
|
||||
},
|
||||
@@ -2339,8 +2248,7 @@ class FormsModule extends elementorModules.editor.utils.Module {
|
||||
ActiveCampaign = __webpack_require__(/*! ./integrations/activecampaign */ "../modules/forms/assets/js/editor/integrations/activecampaign.js"),
|
||||
GetResponse = __webpack_require__(/*! ./integrations/getresponse */ "../modules/forms/assets/js/editor/integrations/getresponse.js"),
|
||||
ConvertKit = __webpack_require__(/*! ./integrations/convertkit */ "../modules/forms/assets/js/editor/integrations/convertkit.js"),
|
||||
EmailDeliverability = __webpack_require__(/*! ./hints/email-deliverability */ "../modules/forms/assets/js/editor/hints/email-deliverability.js"),
|
||||
SubmissionAnalysis = __webpack_require__(/*! ./hints/submission-analysis */ "../modules/forms/assets/js/editor/hints/submission-analysis.js");
|
||||
EmailDeliverability = __webpack_require__(/*! ./hints/email-deliverability */ "../modules/forms/assets/js/editor/hints/email-deliverability.js");
|
||||
this.replyToField = new ReplyToField();
|
||||
this.mailchimp = new Mailchimp('form');
|
||||
this.recaptcha = new Recaptcha('form');
|
||||
@@ -2366,8 +2274,7 @@ class FormsModule extends elementorModules.editor.utils.Module {
|
||||
elementor.addControlView('Fields_map', __webpack_require__(/*! ./fields-map-control */ "../modules/forms/assets/js/editor/fields-map-control.js"));
|
||||
elementor.addControlView('form-fields-repeater', __webpack_require__(/*! ./fields-repeater-control */ "../modules/forms/assets/js/editor/fields-repeater-control.js"));
|
||||
this.hints = {
|
||||
emailDeliverability: new EmailDeliverability(),
|
||||
submissionAnalysis: new SubmissionAnalysis()
|
||||
emailDeliverability: new EmailDeliverability()
|
||||
};
|
||||
}
|
||||
onElementorInitComponents() {
|
||||
@@ -7215,111 +7122,6 @@ exports["default"] = Component;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "../modules/woocommerce/assets/js/editor/hints/store-tracking.js":
|
||||
/*!***********************************************************************!*\
|
||||
!*** ../modules/woocommerce/assets/js/editor/hints/store-tracking.js ***!
|
||||
\***********************************************************************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js");
|
||||
module.exports = elementorModules.editor.utils.Module.extend({
|
||||
eventName: 'send_app_wc_widgets_notice',
|
||||
suffix: '',
|
||||
control: null,
|
||||
onSectionActive(sectionName, editor) {
|
||||
const editedElement = editor.getOption('editedElementView');
|
||||
const widgetType = editedElement.model.get('widgetType');
|
||||
const sectionWidgetMap = {
|
||||
section_product: ['wc-add-to-cart'],
|
||||
section_content: ['woocommerce-cart', 'woocommerce-checkout-page'],
|
||||
section_layout: ['woocommerce-product-add-to-cart']
|
||||
};
|
||||
if (!sectionWidgetMap[sectionName]?.includes(widgetType)) {
|
||||
return;
|
||||
}
|
||||
this.control = null;
|
||||
|
||||
// Check if control exists
|
||||
if (!this.hasPromoControl()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the user has dismissed the hint
|
||||
if (elementor.config.user.dismissed_editor_notices.includes('send_app_wc_widgets_notice')) {
|
||||
this.getPromoControl().remove();
|
||||
return;
|
||||
}
|
||||
this.registerEvents();
|
||||
},
|
||||
registerEvents() {
|
||||
// Handle dismiss and action buttons
|
||||
const dismissBtn = this.getPromoControl().$el.find('.elementor-control-notice-dismiss');
|
||||
const onDismissBtnClick = event => {
|
||||
dismissBtn.off('click', onDismissBtnClick); // Remove the event listener
|
||||
event.preventDefault();
|
||||
this.dismiss();
|
||||
this.getPromoControl().remove();
|
||||
};
|
||||
dismissBtn.on('click', onDismissBtnClick);
|
||||
|
||||
// Handle action button
|
||||
const actionBtn = this.getPromoControl().$el.find('.e-btn-1');
|
||||
const onActionBtn = event => {
|
||||
actionBtn.off('click', onActionBtn); // Remove the event listener
|
||||
event.preventDefault();
|
||||
this.onAction(event);
|
||||
this.getPromoControl().remove();
|
||||
};
|
||||
actionBtn.on('click', onActionBtn);
|
||||
},
|
||||
getPromoControl() {
|
||||
if (!this.control && !!this.getEditorControlModel('send_app_promo' + this.suffix)) {
|
||||
this.control = this.getEditorControlView('send_app_promo' + this.suffix);
|
||||
}
|
||||
return this.control;
|
||||
},
|
||||
hasPromoControl() {
|
||||
return !!this.getPromoControl();
|
||||
},
|
||||
ajaxRequest(name, data) {
|
||||
elementorCommon.ajax.addRequest(name, {
|
||||
data
|
||||
});
|
||||
},
|
||||
dismiss() {
|
||||
this.ajaxRequest('dismissed_editor_notices', {
|
||||
dismissId: this.eventName
|
||||
});
|
||||
|
||||
// Prevent opening the same hint again in current editor session.
|
||||
this.ensureNoPromoControlInSession();
|
||||
},
|
||||
ensureNoPromoControlInSession() {
|
||||
// Prevent opening the same hint again in current editor session.
|
||||
elementor.config.user.dismissed_editor_notices.push(this.eventName);
|
||||
},
|
||||
onAction(event) {
|
||||
const {
|
||||
action_url: actionURL = null
|
||||
} = JSON.parse(event.target.closest('button').dataset.settings);
|
||||
if (actionURL) {
|
||||
window.open(actionURL, '_blank');
|
||||
}
|
||||
this.ajaxRequest('elementor_send_app_campaign', {
|
||||
source: 'snd-wc-install'
|
||||
});
|
||||
this.ensureNoPromoControlInSession();
|
||||
},
|
||||
onElementorInit() {
|
||||
elementor.channels.editor.on('section:activated', (sectionName, editor) => this.onSectionActive(sectionName, editor));
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "../modules/woocommerce/assets/js/editor/hooks/data/create-widget-activate-settings-modal.js":
|
||||
/*!***************************************************************************************************!*\
|
||||
!*** ../modules/woocommerce/assets/js/editor/hooks/data/create-widget-activate-settings-modal.js ***!
|
||||
@@ -7535,7 +7337,6 @@ Object.keys(_data).forEach(function (key) {
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||||
__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js");
|
||||
var _component = _interopRequireDefault(__webpack_require__(/*! ./component */ "../modules/woocommerce/assets/js/editor/component.js"));
|
||||
var _storeTracking = _interopRequireDefault(__webpack_require__(/*! ./hints/store-tracking */ "../modules/woocommerce/assets/js/editor/hints/store-tracking.js"));
|
||||
class WoocommerceModule extends elementorModules.editor.utils.Module {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
@@ -7578,9 +7379,6 @@ class WoocommerceModule extends elementorModules.editor.utils.Module {
|
||||
}
|
||||
};
|
||||
this.createdPageSettingsWidgets = [];
|
||||
this.hints = {
|
||||
storeTracking: new _storeTracking.default()
|
||||
};
|
||||
}
|
||||
addWooCommerceClassToLoopWrapper(LoopGridHandler) {
|
||||
LoopGridHandler.$element.addClass('woocommerce');
|
||||
|
||||
Reference in New Issue
Block a user