geno/wp-content/plugins/elementor/assets/js/admin-top-bar.min.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2024-02-01 17:24:18 +05:30
/*! elementor - v3.18.0 - 20-12-2023 */
(()=>{var e={73308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function matchUserAgent(e){return n.indexOf(e)>=0},n=navigator.userAgent,o=!!window.opr&&!!opr.addons||!!window.opera||r(" OPR/"),a=r("Firefox"),i=/^((?!chrome|android).)*safari/i.test(n)||/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString(),u=/Trident|MSIE/.test(n)&&!!document.documentMode,c=!u&&!!window.StyleMedia||r("Edg"),l=!!window.chrome&&r("Chrome")&&!(c||o),s=r("Chrome")&&!!window.CSS,d=r("AppleWebKit")&&!s,f={isTouchDevice:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,appleWebkit:d,blink:s,chrome:l,edge:c,firefox:a,ie:u,mac:r("Macintosh"),opera:o,safari:i,webkit:r("AppleWebKit")};t.default=f},23680:(e,t,r)=>{"use strict";var n=r(38003).__,o=r(73203),a=r(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function AdminTopBar(){var e=(0,i.useRef)();(0,i.useEffect)((function(){document.querySelector("#e-admin-top-bar-root").classList.add("e-admin-top-bar--active")}),[]);var t=(0,s.usePageTitle)();(0,i.useEffect)((function(){document.querySelectorAll(".page-title-action").forEach((function(t){e.current.appendChild(t)}))}),[]);var r=d.default.mac?"⌘":"^",o=n("Search or do anything in Elementor","elementor")+" ".concat(r,"+E");return i.default.createElement("div",{className:"e-admin-top-bar"},i.default.createElement("div",{className:"e-admin-top-bar__main-area"},i.default.createElement(c.default,null,t),i.default.createElement("div",{className:"e-admin-top-bar__main-area-buttons",ref:e})),i.default.createElement("div",{className:"e-admin-top-bar__secondary-area"},i.default.createElement("div",{className:"e-admin-top-bar__secondary-area-buttons"},i.default.createElement(u.default,{href:window.elementorAdminTopBarConfig.apps_url,icon:"eicon-integration"},n("Apps","elementor")),window.elementorAdminTopBarConfig.is_administrator?i.default.createElement(u.default,{onClick:function finderAction(){$e.route("finder")},dataInfo:o,icon:"eicon-search-bold"},n("Finder","elementor")):"",window.elementorCloudAdmin?window.elementorCloudAdmin():""),i.default.createElement(l.default,null)))};var i=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(87363)),u=o(r(50818)),c=o(r(76668)),l=o(r(79943)),s=r(30174),d=o(r(73308));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}},50818:(e,t,r)=>{"use strict";var n=r(23615),o=r(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=BarButton;var a=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(87363));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function BarButton(e){return(0,a.useEffect)((function(){e.dataInfo&&jQuery(".e-admin-top-bar__bar-button[data-info]").tipsy({title:function title(){return this.getAttribute("data-info")},gravity:function gravity()