View file File name : elementor-admin-bar.min.js Content :/*! elementor - v3.25.0 - 13-11-2024 */ (()=>{var e={77266:e=>{e.exports=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},78983:e=>{e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},42081:(e,t,r)=>{var n=r(74040);function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},51121:(e,t,r)=>{var n=r(79443);function _get(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=_get=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=_get=function _get(e,t,r){var o=n(e,t);if(o){var s=Object.getOwnPropertyDescriptor(o,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},e.exports.__esModule=!0,e.exports.default=e.exports),_get.apply(this,arguments)}e.exports=_get,e.exports.__esModule=!0,e.exports.default=e.exports},74910:e=>{function _getPrototypeOf(t){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,_getPrototypeOf(t)}e.exports=_getPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},58724:(e,t,r)=>{var n=r(96196);e.exports=function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},73203:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},71173:(e,t,r)=>{var n=r(7501).default,o=r(77266);e.exports=function _possibleConstructorReturn(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},96196:e=>{function _setPrototypeOf(t,r){return e.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,_setPrototypeOf(t,r)}e.exports=_setPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},79443:(e,t,r)=>{var n=r(74910);e.exports=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},56027:(e,t,r)=>{var n=r(7501).default;e.exports=function toPrimitive(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:(e,t,r)=>{var n=r(7501).default,o=r(56027);e.exports=function toPropertyKey(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,__webpack_require__),o.exports}(()=>{"use strict";var e=__webpack_require__(73203),t=e(__webpack_require__(78983)),r=e(__webpack_require__(42081)),n=e(__webpack_require__(51121)),o=e(__webpack_require__(58724)),s=e(__webpack_require__(71173)),u=e(__webpack_require__(74910));function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var r,n=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var a=function(e){(0,o.default)(AdminBar,e);var s=_createSuper(AdminBar);function AdminBar(){return(0,t.default)(this,AdminBar),s.apply(this,arguments)}return(0,r.default)(AdminBar,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{prefixes:{adminBarId:"wp-admin-bar-"},classes:{adminBarItem:"ab-item",adminBarItemTitle:"elementor-edit-link-title",adminBarItemSubTitle:"elementor-edit-link-type",adminBarNonLinkItem:"ab-empty-item",adminBarSubItemsWrapper:"ab-sub-wrapper",adminBarSubItems:"ab-submenu"},selectors:{adminBar:"#wp-admin-bar-root-default",editMenuItem:"#wp-admin-bar-edit",newMenuItem:"#wp-admin-bar-new-content"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors"),t=e.adminBar,r=e.editMenuItem,n=e.newMenuItem;return{$adminBar:jQuery(t),$editMenuItem:jQuery(r),$newMenuItem:jQuery(n)}}},{key:"onInit",value:function onInit(){(0,n.default)((0,u.default)(AdminBar.prototype),"onInit",this).call(this),this.createMenu(elementorAdminBarConfig)}},{key:"createMenu",value:function createMenu(e){var t=this.createMenuItems(Object.values(e));this.elements.$editMenuItem.length?this.elements.$editMenuItem.after(t):this.elements.$newMenuItem.length?this.elements.$newMenuItem.after(t):this.elements.$adminBar.append(t)}},{key:"createMenuItems",value:function createMenuItems(e){var t=this;return e.map((function(e){return t.createMenuItem(e)}))}},{key:"createMenuItem",value:function createMenuItem(e){var t=e.children?Object.values(e.children):[],r="".concat(this.getSettings("prefixes.adminBarId")).concat(e.id),n=jQuery("<span>",{class:this.getSettings("classes.adminBarItemTitle"),html:e.title}),o=e.sub_title?jQuery("<span>",{class:this.getSettings("classes.adminBarItemSubTitle"),html:e.sub_title}):null,s=jQuery(e.href?"<a>":"<div>",{"aria-haspopup":!!t.length||null,class:[this.getSettings("classes.adminBarItem"),e.href?"":this.getSettings("classes.adminBarNonLinkItem"),e.class].join(" "),href:e.href}).append([n,o]);return jQuery("<li>",{id:r,class:t.length?"menupop":""+(e.parent_class||"elementor-general-section")}).append([s,t.length?this.createSubMenuItems(r,t):null])}},{key:"createSubMenuItems",value:function createSubMenuItems(e,t){var r=jQuery("<ul>",{class:this.getSettings("classes.adminBarSubItems"),id:"".concat(e,"-default")}).append(this.createMenuItems(t));return jQuery("<div>",{class:this.getSettings("classes.adminBarSubItemsWrapper")}).append(r)}}]),AdminBar}(elementorModules.ViewModule);document.addEventListener("DOMContentLoaded",(function(){return new a}))})()})();