| 1 |
/*! elementor - v3.32.0 - 08-09-2025 */ |
| 2 |
/******/ (() => { // webpackBootstrap |
| 3 |
/******/ var __webpack_modules__ = ({ |
| 4 |
|
| 5 |
/***/ "../app/assets/js/event-track/apps-event-tracking.js": |
| 6 |
/*!***********************************************************!*\ |
| 7 |
!*** ../app/assets/js/event-track/apps-event-tracking.js ***! |
| 8 |
\***********************************************************/ |
| 9 |
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 10 |
|
| 11 |
"use strict"; |
| 12 |
|
| 13 |
|
| 14 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 15 |
Object.defineProperty(exports, "__esModule", ({ |
| 16 |
value: true |
| 17 |
})); |
| 18 |
exports.appsEventTrackingDispatch = exports.AppsEventTracking = void 0; |
| 19 |
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 20 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 21 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 22 |
var _eventsConfig = _interopRequireDefault(__webpack_require__(/*! ../../../../core/common/modules/events-manager/assets/js/events-config */ "../core/common/modules/events-manager/assets/js/events-config.js")); |
| 23 |
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; } |
| 24 |
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; } |
| 25 |
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } |
| 26 |
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } |
| 27 |
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } |
| 28 |
var EVENTS_MAP = { |
| 29 |
PAGE_VIEWS_WEBSITE_TEMPLATES: 'page_views_website_templates', |
| 30 |
KITS_CLOUD_UPGRADE_CLICKED: 'kits_cloud_upgrade_clicked', |
| 31 |
EXPORT_KIT_CUSTOMIZATION: 'export_kit_customization', |
| 32 |
IMPORT_KIT_CUSTOMIZATION: 'import_kit_customization', |
| 33 |
KIT_IMPORT_STATUS: 'kit_import_status', |
| 34 |
KIT_CLOUD_LIBRARY_APPLY: 'kit_cloud_library_apply', |
| 35 |
KIT_CLOUD_LIBRARY_DELETE: 'kit_cloud_library_delete', |
| 36 |
IMPORT_EXPORT_ADMIN_ACTION: 'ie_admin_action', |
| 37 |
KIT_IMPORT_UPLOAD_FILE: 'kit_import_upload_file' |
| 38 |
}; |
| 39 |
var appsEventTrackingDispatch = exports.appsEventTrackingDispatch = function appsEventTrackingDispatch(command, eventParams) { |
| 40 |
// Add existing eventParams key value pair to the data/details object. |
| 41 |
var objectCreator = function objectCreator(array, obj) { |
| 42 |
var _iterator = _createForOfIteratorHelper(array), |
| 43 |
_step; |
| 44 |
try { |
| 45 |
for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 46 |
var key = _step.value; |
| 47 |
if (eventParams.hasOwnProperty(key) && eventParams[key] !== null) { |
| 48 |
obj[key] = eventParams[key]; |
| 49 |
} |
| 50 |
} |
| 51 |
} catch (err) { |
| 52 |
_iterator.e(err); |
| 53 |
} finally { |
| 54 |
_iterator.f(); |
| 55 |
} |
| 56 |
return obj; |
| 57 |
}; |
| 58 |
var dataKeys = []; |
| 59 |
var detailsKeys = ['layout', 'site_part', 'error', 'document_name', 'document_type', 'view_type_clicked', 'tag', 'sort_direction', 'sort_type', 'action', 'grid_location', 'kit_name', 'page_source', 'element_position', 'element', 'event_type', 'modal_type', 'method', 'status', 'step', 'item', 'category', 'element_location', 'search_term', 'section', 'site_area']; |
| 60 |
var data = {}; |
| 61 |
var details = {}; |
| 62 |
var init = function init() { |
| 63 |
objectCreator(detailsKeys, details); |
| 64 |
objectCreator(dataKeys, data); |
| 65 |
var commandSplit = command.split('/'); |
| 66 |
data.placement = commandSplit[0]; |
| 67 |
data.event = commandSplit[1]; |
| 68 |
|
| 69 |
// If 'details' is not empty, add the details object to the data object. |
| 70 |
if (Object.keys(details).length) { |
| 71 |
data.details = details; |
| 72 |
} |
| 73 |
}; |
| 74 |
init(); |
| 75 |
$e.run(command, data); |
| 76 |
}; |
| 77 |
var AppsEventTracking = exports.AppsEventTracking = /*#__PURE__*/function () { |
| 78 |
function AppsEventTracking() { |
| 79 |
(0, _classCallCheck2.default)(this, AppsEventTracking); |
| 80 |
} |
| 81 |
return (0, _createClass2.default)(AppsEventTracking, null, [{ |
| 82 |
key: "dispatchEvent", |
| 83 |
value: function dispatchEvent(eventName, payload) { |
| 84 |
return elementorCommon.eventsManager.dispatchEvent(eventName, payload); |
| 85 |
} |
| 86 |
}, { |
| 87 |
key: "sendPageViewsWebsiteTemplates", |
| 88 |
value: function sendPageViewsWebsiteTemplates(page) { |
| 89 |
return this.dispatchEvent(EVENTS_MAP.PAGE_VIEWS_WEBSITE_TEMPLATES, { |
| 90 |
trigger: _eventsConfig.default.triggers.pageLoaded, |
| 91 |
page_loaded: page, |
| 92 |
secondary_location: page |
| 93 |
}); |
| 94 |
} |
| 95 |
}, { |
| 96 |
key: "sendKitsCloudUpgradeClicked", |
| 97 |
value: function sendKitsCloudUpgradeClicked(upgradeLocation) { |
| 98 |
return this.dispatchEvent(EVENTS_MAP.KITS_CLOUD_UPGRADE_CLICKED, { |
| 99 |
trigger: _eventsConfig.default.triggers.click, |
| 100 |
secondary_location: upgradeLocation, |
| 101 |
upgrade_location: upgradeLocation |
| 102 |
}); |
| 103 |
} |
| 104 |
}, { |
| 105 |
key: "sendExportKitCustomization", |
| 106 |
value: function sendExportKitCustomization(payload) { |
| 107 |
return this.dispatchEvent(EVENTS_MAP.EXPORT_KIT_CUSTOMIZATION, _objectSpread({ |
| 108 |
trigger: _eventsConfig.default.triggers.click |
| 109 |
}, payload)); |
| 110 |
} |
| 111 |
}, { |
| 112 |
key: "sendImportKitCustomization", |
| 113 |
value: function sendImportKitCustomization(payload) { |
| 114 |
return this.dispatchEvent(EVENTS_MAP.IMPORT_KIT_CUSTOMIZATION, _objectSpread({ |
| 115 |
trigger: _eventsConfig.default.triggers.click |
| 116 |
}, payload)); |
| 117 |
} |
| 118 |
}, { |
| 119 |
key: "sendKitImportStatus", |
| 120 |
value: function sendKitImportStatus() { |
| 121 |
var error = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; |
| 122 |
return this.dispatchEvent(EVENTS_MAP.KIT_IMPORT_STATUS, _objectSpread({ |
| 123 |
kit_import_status: !error |
| 124 |
}, error && { |
| 125 |
kit_import_error: error.message |
| 126 |
})); |
| 127 |
} |
| 128 |
}, { |
| 129 |
key: "sendKitCloudLibraryApply", |
| 130 |
value: function sendKitCloudLibraryApply(kitId, kitApplyUrl) { |
| 131 |
return this.dispatchEvent(EVENTS_MAP.KIT_CLOUD_LIBRARY_APPLY, _objectSpread({ |
| 132 |
trigger: _eventsConfig.default.triggers.click, |
| 133 |
kit_cloud_id: kitId |
| 134 |
}, kitApplyUrl && { |
| 135 |
kit_apply_url: kitApplyUrl |
| 136 |
})); |
| 137 |
} |
| 138 |
}, { |
| 139 |
key: "sendKitCloudLibraryDelete", |
| 140 |
value: function sendKitCloudLibraryDelete() { |
| 141 |
return this.dispatchEvent(EVENTS_MAP.KIT_CLOUD_LIBRARY_DELETE, { |
| 142 |
trigger: _eventsConfig.default.triggers.click |
| 143 |
}); |
| 144 |
} |
| 145 |
}, { |
| 146 |
key: "sendImportExportAdminAction", |
| 147 |
value: function sendImportExportAdminAction(actionType) { |
| 148 |
return this.dispatchEvent(EVENTS_MAP.IMPORT_EXPORT_ADMIN_ACTION, { |
| 149 |
trigger: _eventsConfig.default.triggers.click, |
| 150 |
action_type: actionType |
| 151 |
}); |
| 152 |
} |
| 153 |
}, { |
| 154 |
key: "sendKitImportUploadFile", |
| 155 |
value: function sendKitImportUploadFile(status) { |
| 156 |
return this.dispatchEvent(EVENTS_MAP.KIT_IMPORT_UPLOAD_FILE, { |
| 157 |
kit_import_upload_file_status: status |
| 158 |
}); |
| 159 |
} |
| 160 |
}]); |
| 161 |
}(); |
| 162 |
|
| 163 |
/***/ }), |
| 164 |
|
| 165 |
/***/ "../core/common/modules/events-manager/assets/js/events-config.js": |
| 166 |
/*!************************************************************************!*\ |
| 167 |
!*** ../core/common/modules/events-manager/assets/js/events-config.js ***! |
| 168 |
\************************************************************************/ |
| 169 |
/***/ ((__unused_webpack_module, exports) => { |
| 170 |
|
| 171 |
"use strict"; |
| 172 |
|
| 173 |
|
| 174 |
Object.defineProperty(exports, "__esModule", ({ |
| 175 |
value: true |
| 176 |
})); |
| 177 |
exports["default"] = void 0; |
| 178 |
var eventsConfig = { |
| 179 |
triggers: { |
| 180 |
click: 'Click', |
| 181 |
accordionClick: 'Accordion Click', |
| 182 |
toggleClick: 'Toggle Click', |
| 183 |
dropdownClick: 'Click Dropdown', |
| 184 |
editorLoaded: 'Editor Loaded', |
| 185 |
visible: 'Visible', |
| 186 |
pageLoaded: 'Page Loaded' |
| 187 |
}, |
| 188 |
locations: { |
| 189 |
widgetPanel: 'Widget Panel', |
| 190 |
topBar: 'Top Bar', |
| 191 |
elementorEditor: 'Elementor Editor', |
| 192 |
templatesLibrary: { |
| 193 |
library: 'Templates Library' |
| 194 |
}, |
| 195 |
app: { |
| 196 |
import: 'Import Kit', |
| 197 |
export: 'Export Kit', |
| 198 |
kitLibrary: 'Kit Library', |
| 199 |
cloudKitLibrary: 'Cloud Kit Library' |
| 200 |
}, |
| 201 |
variables: 'Variables Panel', |
| 202 |
admin: 'WP admin' |
| 203 |
}, |
| 204 |
secondaryLocations: { |
| 205 |
layout: 'Layout Section', |
| 206 |
basic: 'Basic Section', |
| 207 |
'pro-elements': 'Pro Section', |
| 208 |
general: 'General Section', |
| 209 |
'theme-elements': 'Site Section', |
| 210 |
'theme-elements-single': 'Single Section', |
| 211 |
'woocommerce-elements': 'WooCommerce Section', |
| 212 |
wordpress: 'WordPress Section', |
| 213 |
categories: 'Widgets Tab', |
| 214 |
global: 'Globals Tab', |
| 215 |
'whats-new': 'What\'s New', |
| 216 |
'document-settings': 'Document Settings icon', |
| 217 |
'preview-page': 'Preview Page', |
| 218 |
'publish-button': 'Publish Button', |
| 219 |
'widget-panel': 'Widget Panel Icon', |
| 220 |
finder: 'Finder', |
| 221 |
help: 'Help', |
| 222 |
elementorLogoDropdown: 'top_bar_elementor_logo_dropdown', |
| 223 |
elementorLogo: 'Elementor Logo', |
| 224 |
eLogoMenu: 'E-logo Menu', |
| 225 |
notes: 'Notes', |
| 226 |
siteSettings: 'Site Settings', |
| 227 |
structure: 'Structure', |
| 228 |
documentNameDropdown: 'Document Name dropdown', |
| 229 |
responsiveControls: 'Responsive controls', |
| 230 |
launchpad: 'launchpad', |
| 231 |
checklistHeader: 'Checklist Header', |
| 232 |
checklistSteps: 'Checklist Steps', |
| 233 |
userPreferences: 'User Preferences', |
| 234 |
contextMenu: 'Context Menu', |
| 235 |
templateLibrary: { |
| 236 |
saveModal: 'Save to Modal', |
| 237 |
moveModal: 'Move to Modal', |
| 238 |
bulkMoveModal: 'Bulk Move to Modal', |
| 239 |
copyModal: 'Copy to Modal', |
| 240 |
bulkCopyModal: 'Bulk Copy to Modal', |
| 241 |
saveModalSelectFolder: 'Save to Modal - select folder', |
| 242 |
saveModalSelectConnect: 'Save to Modal - connect', |
| 243 |
saveModalSelectUpgrade: 'Save to Modal - upgrade', |
| 244 |
importModal: 'Import Modal', |
| 245 |
newFolderModal: 'New Folder Modal', |
| 246 |
deleteDialog: 'Delete Dialog', |
| 247 |
deleteFolderDialog: 'Delete Folder Dialog', |
| 248 |
renameDialog: 'Rename Dialog', |
| 249 |
createFolderDialog: 'Create Folder Dialog', |
| 250 |
applySettingsDialog: 'Apply Settings Dialog', |
| 251 |
cloudTab: 'Cloud Tab', |
| 252 |
siteTab: 'Site Tab', |
| 253 |
cloudTabFolder: 'Cloud Tab - Folder', |
| 254 |
cloudTabConnect: 'Cloud Tab - Connect', |
| 255 |
cloudTabUpgrade: 'Cloud Tab - Upgrade', |
| 256 |
morePopup: 'Context Menu', |
| 257 |
quotaBar: 'Quota Bar' |
| 258 |
}, |
| 259 |
kitLibrary: { |
| 260 |
cloudKitLibrary: 'kits_cloud_library', |
| 261 |
cloudKitLibraryConnect: 'kits_cloud_library_connect', |
| 262 |
cloudKitLibraryUpgrade: 'kits_cloud_library_upgrade', |
| 263 |
kitExportCustomization: 'kit_export_customization', |
| 264 |
kitExport: 'kit_export', |
| 265 |
kitExportCustomizationEdit: 'kit_export_customization_edit', |
| 266 |
kitExportSummary: 'kit_export_summary', |
| 267 |
kitImportUploadBox: 'kit_import_upload_box', |
| 268 |
kitImportCustomization: 'kit_import_customization', |
| 269 |
kitImportSummary: 'kit_import_summary' |
| 270 |
}, |
| 271 |
variablesPopover: 'Variables Popover', |
| 272 |
admin: { |
| 273 |
pluginToolsTab: 'plugin_tools_tab', |
| 274 |
pluginWebsiteTemplatesTab: 'plugin_website_templates_tab' |
| 275 |
} |
| 276 |
}, |
| 277 |
elements: { |
| 278 |
accordionSection: 'Accordion section', |
| 279 |
buttonIcon: 'Button Icon', |
| 280 |
mainCta: 'Main CTA', |
| 281 |
button: 'Button', |
| 282 |
link: 'Link', |
| 283 |
dropdown: 'Dropdown', |
| 284 |
toggle: 'Toggle', |
| 285 |
launchpadChecklist: 'Checklist popup' |
| 286 |
}, |
| 287 |
names: { |
| 288 |
v1: { |
| 289 |
layout: 'v1_widgets_tab_layout_section', |
| 290 |
basic: 'v1_widgets_tab_basic_section', |
| 291 |
'pro-elements': 'v1_widgets_tab_pro_section', |
| 292 |
general: 'v1_widgets_tab_general_section', |
| 293 |
'theme-elements': 'v1_widgets_tab_site_section', |
| 294 |
'theme-elements-single': 'v1_widgets_tab_single_section', |
| 295 |
'woocommerce-elements': 'v1_widgets_tab_woocommerce_section', |
| 296 |
wordpress: 'v1_widgets_tab_wordpress_section', |
| 297 |
categories: 'v1_widgets_tab', |
| 298 |
global: 'v1_globals_tab' |
| 299 |
}, |
| 300 |
topBar: { |
| 301 |
whatsNew: 'top_bar_whats_new', |
| 302 |
documentSettings: 'top_bar_document_settings_icon', |
| 303 |
previewPage: 'top_bar_preview_page', |
| 304 |
publishButton: 'top_bar_publish_button', |
| 305 |
widgetPanel: 'top_bar_widget_panel_icon', |
| 306 |
finder: 'top_bar_finder', |
| 307 |
help: 'top_bar_help', |
| 308 |
history: 'top_bar_elementor_logo_dropdown_history', |
| 309 |
userPreferences: 'top_bar_elementor_logo_dropdown_user_preferences', |
| 310 |
keyboardShortcuts: 'top_bar_elementor_logo_dropdown_keyboard_shortcuts', |
| 311 |
exitToWordpress: 'top_bar_elementor_logo_dropdown_exit_to_wordpress', |
| 312 |
themeBuilder: 'top_bar_elementor_logo_dropdown_theme_builder', |
| 313 |
notes: 'top_bar_notes', |
| 314 |
siteSettings: 'top_bar_site_setting', |
| 315 |
structure: 'top_bar_structure', |
| 316 |
documentNameDropdown: 'top_bar_document_name_dropdown', |
| 317 |
responsiveControls: 'top_bar_responsive_controls', |
| 318 |
launchpadOn: 'top_bar_checklist_icon_show', |
| 319 |
launchpadOff: 'top_bar_checklist_icon_hide', |
| 320 |
elementorLogoDropdown: 'open_e_menu', |
| 321 |
connectAccount: 'connect_account', |
| 322 |
accountConnected: 'account_connected' |
| 323 |
}, |
| 324 |
// ChecklistSteps event names are generated dynamically, based on stepId and action type taken: title, action, done, undone, upgrade |
| 325 |
elementorEditor: { |
| 326 |
checklist: { |
| 327 |
checklistHeaderClose: 'checklist_header_close_icon', |
| 328 |
checklistFirstPopup: 'checklist popup triggered' |
| 329 |
}, |
| 330 |
userPreferences: { |
| 331 |
checklistShow: 'checklist_userpreferences_toggle_show', |
| 332 |
checklistHide: 'checklist_userpreferences_toggle_hide' |
| 333 |
} |
| 334 |
}, |
| 335 |
variables: { |
| 336 |
open: 'open_variables_popover', |
| 337 |
add: 'add_new_variable', |
| 338 |
connect: 'connect_variable', |
| 339 |
save: 'save_new_variable' |
| 340 |
} |
| 341 |
} |
| 342 |
}; |
| 343 |
var _default = exports["default"] = eventsConfig; |
| 344 |
|
| 345 |
/***/ }), |
| 346 |
|
| 347 |
/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| 348 |
/*!****************************************************************!*\ |
| 349 |
!*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 350 |
\****************************************************************/ |
| 351 |
/***/ ((module) => { |
| 352 |
|
| 353 |
function _classCallCheck(a, n) { |
| 354 |
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); |
| 355 |
} |
| 356 |
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 357 |
|
| 358 |
/***/ }), |
| 359 |
|
| 360 |
/***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 361 |
/*!*************************************************************!*\ |
| 362 |
!*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 363 |
\*************************************************************/ |
| 364 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 365 |
|
| 366 |
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 367 |
function _defineProperties(e, r) { |
| 368 |
for (var t = 0; t < r.length; t++) { |
| 369 |
var o = r[t]; |
| 370 |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); |
| 371 |
} |
| 372 |
} |
| 373 |
function _createClass(e, r, t) { |
| 374 |
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { |
| 375 |
writable: !1 |
| 376 |
}), e; |
| 377 |
} |
| 378 |
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 379 |
|
| 380 |
/***/ }), |
| 381 |
|
| 382 |
/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 383 |
/*!****************************************************************!*\ |
| 384 |
!*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 385 |
\****************************************************************/ |
| 386 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 387 |
|
| 388 |
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 389 |
function _defineProperty(e, r, t) { |
| 390 |
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { |
| 391 |
value: t, |
| 392 |
enumerable: !0, |
| 393 |
configurable: !0, |
| 394 |
writable: !0 |
| 395 |
}) : e[r] = t, e; |
| 396 |
} |
| 397 |
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 398 |
|
| 399 |
/***/ }), |
| 400 |
|
| 401 |
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": |
| 402 |
/*!***********************************************************************!*\ |
| 403 |
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 404 |
\***********************************************************************/ |
| 405 |
/***/ ((module) => { |
| 406 |
|
| 407 |
function _interopRequireDefault(e) { |
| 408 |
return e && e.__esModule ? e : { |
| 409 |
"default": e |
| 410 |
}; |
| 411 |
} |
| 412 |
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 413 |
|
| 414 |
/***/ }), |
| 415 |
|
| 416 |
/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": |
| 417 |
/*!*************************************************************!*\ |
| 418 |
!*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! |
| 419 |
\*************************************************************/ |
| 420 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 421 |
|
| 422 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 423 |
function toPrimitive(t, r) { |
| 424 |
if ("object" != _typeof(t) || !t) return t; |
| 425 |
var e = t[Symbol.toPrimitive]; |
| 426 |
if (void 0 !== e) { |
| 427 |
var i = e.call(t, r || "default"); |
| 428 |
if ("object" != _typeof(i)) return i; |
| 429 |
throw new TypeError("@@toPrimitive must return a primitive value."); |
| 430 |
} |
| 431 |
return ("string" === r ? String : Number)(t); |
| 432 |
} |
| 433 |
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 434 |
|
| 435 |
/***/ }), |
| 436 |
|
| 437 |
/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": |
| 438 |
/*!***************************************************************!*\ |
| 439 |
!*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! |
| 440 |
\***************************************************************/ |
| 441 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 442 |
|
| 443 |
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 444 |
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); |
| 445 |
function toPropertyKey(t) { |
| 446 |
var i = toPrimitive(t, "string"); |
| 447 |
return "symbol" == _typeof(i) ? i : i + ""; |
| 448 |
} |
| 449 |
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 450 |
|
| 451 |
/***/ }), |
| 452 |
|
| 453 |
/***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 454 |
/*!********************************************************!*\ |
| 455 |
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 456 |
\********************************************************/ |
| 457 |
/***/ ((module) => { |
| 458 |
|
| 459 |
function _typeof(o) { |
| 460 |
"@babel/helpers - typeof"; |
| 461 |
|
| 462 |
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { |
| 463 |
return typeof o; |
| 464 |
} : function (o) { |
| 465 |
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 466 |
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); |
| 467 |
} |
| 468 |
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 469 |
|
| 470 |
/***/ }) |
| 471 |
|
| 472 |
/******/ }); |
| 473 |
/************************************************************************/ |
| 474 |
/******/ // The module cache |
| 475 |
/******/ var __webpack_module_cache__ = {}; |
| 476 |
/******/ |
| 477 |
/******/ // The require function |
| 478 |
/******/ function __webpack_require__(moduleId) { |
| 479 |
/******/ // Check if module is in cache |
| 480 |
/******/ var cachedModule = __webpack_module_cache__[moduleId]; |
| 481 |
/******/ if (cachedModule !== undefined) { |
| 482 |
/******/ return cachedModule.exports; |
| 483 |
/******/ } |
| 484 |
/******/ // Create a new module (and put it into the cache) |
| 485 |
/******/ var module = __webpack_module_cache__[moduleId] = { |
| 486 |
/******/ // no module.id needed |
| 487 |
/******/ // no module.loaded needed |
| 488 |
/******/ exports: {} |
| 489 |
/******/ }; |
| 490 |
/******/ |
| 491 |
/******/ // Execute the module function |
| 492 |
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 493 |
/******/ |
| 494 |
/******/ // Return the exports of the module |
| 495 |
/******/ return module.exports; |
| 496 |
/******/ } |
| 497 |
/******/ |
| 498 |
/************************************************************************/ |
| 499 |
var __webpack_exports__ = {}; |
| 500 |
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. |
| 501 |
(() => { |
| 502 |
"use strict"; |
| 503 |
/*!*********************************************************************!*\ |
| 504 |
!*** ../app/modules/import-export-customization/assets/js/admin.js ***! |
| 505 |
\*********************************************************************/ |
| 506 |
|
| 507 |
|
| 508 |
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 509 |
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 510 |
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 511 |
var _appsEventTracking = __webpack_require__(/*! ../../../../assets/js/event-track/apps-event-tracking */ "../app/assets/js/event-track/apps-event-tracking.js"); |
| 512 |
var Admin = /*#__PURE__*/function () { |
| 513 |
function Admin() { |
| 514 |
var _this = this; |
| 515 |
(0, _classCallCheck2.default)(this, Admin); |
| 516 |
var urlParams = new URLSearchParams(window.location.search); |
| 517 |
if ('elementor-tools' === urlParams.get('page')) { |
| 518 |
this.sendPageToolsViewedEvent(); |
| 519 |
elementorAdmin.elements.$settingsTabs.on('focus', function () { |
| 520 |
var location = window.location.hash.slice(1); |
| 521 |
_this.maybeSendImportExportLocationEvent(location); |
| 522 |
}); |
| 523 |
this.maybeSendImportExportLocationEvent(window.location.hash.slice(1)); |
| 524 |
} |
| 525 |
this.revertButton = document.getElementById('elementor-import-export__revert_kit'); |
| 526 |
this.importFroLibraryButton = document.getElementById('elementor-import-export__import_from_library'); |
| 527 |
this.importButton = document.getElementById('elementor-import-export__import'); |
| 528 |
this.exportButton = document.getElementById('elementor-import-export__export'); |
| 529 |
if (this.revertButton) { |
| 530 |
this.revertButton.addEventListener('click', this.onRevertButtonClick.bind(this)); |
| 531 |
} |
| 532 |
if (this.importFroLibraryButton) { |
| 533 |
this.importFroLibraryButton.addEventListener('click', this.onImportFromLibraryButtonClick.bind(this)); |
| 534 |
} |
| 535 |
if (this.importButton) { |
| 536 |
this.importButton.addEventListener('click', this.onImportButtonClick.bind(this)); |
| 537 |
} |
| 538 |
if (this.exportButton) { |
| 539 |
this.exportButton.addEventListener('click', this.onExportButtonClick.bind(this)); |
| 540 |
} |
| 541 |
} |
| 542 |
return (0, _createClass2.default)(Admin, [{ |
| 543 |
key: "sendPageToolsViewedEvent", |
| 544 |
value: function sendPageToolsViewedEvent() { |
| 545 |
_appsEventTracking.AppsEventTracking.sendPageViewsWebsiteTemplates(elementorCommon.eventsManager.config.secondaryLocations.admin.pluginToolsTab); |
| 546 |
} |
| 547 |
}, { |
| 548 |
key: "maybeSendImportExportLocationEvent", |
| 549 |
value: function maybeSendImportExportLocationEvent(location) { |
| 550 |
if ('tab-import-export-kit' === location) { |
| 551 |
_appsEventTracking.AppsEventTracking.sendPageViewsWebsiteTemplates(elementorCommon.eventsManager.config.secondaryLocations.admin.pluginWebsiteTemplatesTab); |
| 552 |
} |
| 553 |
} |
| 554 |
}, { |
| 555 |
key: "onRevertButtonClick", |
| 556 |
value: function onRevertButtonClick() { |
| 557 |
_appsEventTracking.AppsEventTracking.sendImportExportAdminAction('Revert'); |
| 558 |
} |
| 559 |
}, { |
| 560 |
key: "onExportButtonClick", |
| 561 |
value: function onExportButtonClick() { |
| 562 |
_appsEventTracking.AppsEventTracking.sendImportExportAdminAction('Export'); |
| 563 |
} |
| 564 |
}, { |
| 565 |
key: "onImportButtonClick", |
| 566 |
value: function onImportButtonClick() { |
| 567 |
_appsEventTracking.AppsEventTracking.sendImportExportAdminAction('Import'); |
| 568 |
} |
| 569 |
}, { |
| 570 |
key: "onImportFromLibraryButtonClick", |
| 571 |
value: function onImportFromLibraryButtonClick() { |
| 572 |
_appsEventTracking.AppsEventTracking.sendImportExportAdminAction('Import from Library'); |
| 573 |
} |
| 574 |
}]); |
| 575 |
}(); |
| 576 |
window.addEventListener('load', function () { |
| 577 |
new Admin(); |
| 578 |
}); |
| 579 |
})(); |
| 580 |
|
| 581 |
/******/ })() |
| 582 |
; |
| 583 |
//# sourceMappingURL=import-export-customization-admin.js.map |