OwlCyberSecurity - MANAGER
Edit File: editor-app-bar-ui.js
/*! For license information please see editor-app-bar-ui.js.LICENSE.txt */ !function(){"use strict";var e={react:function(e){e.exports=window.React},"@elementor/icons":function(e){e.exports=window.elementorV2.icons},"@elementor/locations":function(e){e.exports=window.elementorV2.locations},"@elementor/ui":function(e){e.exports=window.elementorV2.ui},"@wordpress/i18n":function(e){e.exports=window.wp.i18n}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{__privateAppBar:function(){return K},__privateCreateMenu:function(){return h},__privateInjectIntoPageIndication:function(){return y},__privateInjectIntoPrimaryAction:function(){return x},__privateInjectIntoResponsive:function(){return M},__privateIntegrationsMenu:function(){return k},__privateMainMenu:function(){return _},__privatePopoverMenu:function(){return T},__privateToolsMenu:function(){return P},__privateUtilitiesMenu:function(){return S}});var e=n("react"),t=n("@elementor/locations"),o=n("@elementor/ui"),i=n("@elementor/icons"),l=n("@wordpress/i18n"),a=(0,e.createContext)({type:"toolbar"});function c({type:t,children:n}){return e.createElement(a.Provider,{value:{type:t}},n)}function u(){return(0,e.useContext)(a)}function m({title:t,...n}){return e.createElement(s,{title:t},e.createElement(o.Box,{component:"span","aria-label":void 0},e.createElement(o.IconButton,{...n,"aria-label":t,size:"medium",sx:{"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"},"&:hover":{color:"text.primary"}}})))}function s(t){return e.createElement(o.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2}}},...t})}var p=(0,o.withDirection)(i.ArrowUpRightIcon);function d({text:t,icon:n,onClick:r,href:i,target:l,disabled:a,...c}){const u=i&&"_blank"===l;return e.createElement(o.MenuItem,{...c,disabled:a,onClick:r,component:i?"a":"div",href:i,target:l,sx:{"&:hover":{color:"text.primary"}}},e.createElement(o.ListItemIcon,null,n),e.createElement(o.ListItemText,{primary:t}),u&&e.createElement(p,null))}function E({icon:t,title:n,visible:r=!0,...o}){const{type:i}=u();return r?"toolbar"===i?e.createElement(m,{title:n,...o},e.createElement(t,null)):e.createElement(d,{...o,text:n,icon:e.createElement(t,null)}):null}function f({title:t,onClick:n,...r}){return e.createElement(o.Tooltip,{title:t},e.createElement(o.Box,{component:"span","aria-label":void 0},e.createElement(o.ToggleButton,{...r,onChange:n,"aria-label":t,size:"small",sx:{border:0,"&.Mui-disabled":{border:0},"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"}}})))}function v({icon:t,title:n,value:r,visible:o=!0,...i}){const{type:l}=u();return o?"toolbar"===l?e.createElement(f,{value:r||n,title:n,...i},e.createElement(t,null)):e.createElement(d,{...i,text:n,icon:e.createElement(t,null)}):null}function g({icon:t,title:n,visible:r=!0,...o}){const{type:i}=u();return r?"toolbar"===i?e.createElement(m,{title:n,...o},e.createElement(t,null)):e.createElement(d,{...o,text:n,icon:e.createElement(t,null)}):null}function h(n=[]){const r=[...n,"default"],o=r.reduce(((e,n)=>({...e,[n]:(0,t.createLocation)()})),{}),[i,l,a]=[E,v,g].map((t=>function({locations:t,menuGroups:n,component:r}){return({group:o="default",id:i,overwrite:l,priority:a,...c})=>{if(!n.includes(o))return;const u="props"in c?()=>c.props:c.useProps,m=r;t[o].inject({id:i,component:t=>{const n=u();return e.createElement(m,{...t,...n})},options:{priority:a,overwrite:l}})}}({locations:o,menuGroups:r,component:t}))),c=function(t){return()=>(0,e.useMemo)((()=>Object.entries(t).reduce(((e,[t,n])=>({...e,[t]:n.getInjections().map((e=>({id:e.id,MenuItem:e.component})))})),{})),[])}(o);return{registerAction:i,registerToggleAction:l,registerLink:a,useMenuItems:c}}var{inject:y,Slot:I}=(0,t.createLocation)(),{inject:M,Slot:b}=(0,t.createLocation)(),{inject:x,Slot:w}=(0,t.createLocation)(),_=h(["exits"]),P=h(),S=h(),k=h();function T({children:t,...n}){return e.createElement(c,{type:"popover"},e.createElement(o.Menu,{PaperProps:{sx:{mt:1.5}},...n,MenuListProps:{component:"div",dense:!0}},t))}var C=(0,o.styled)(o.ToggleButton)((({theme:e})=>({padding:0,border:0,color:e.palette.text.primary,"&.MuiToggleButton-root:hover":{backgroundColor:"initial"},"&.MuiToggleButton-root.Mui-selected":{backgroundColor:"initial"}}))),j=(0,o.styled)((t=>e.createElement(o.SvgIcon,{viewBox:"0 0 32 32",...t},e.createElement("g",null,e.createElement("circle",{cx:"16",cy:"16",r:"16"}),e.createElement("path",{d:"M11.7 9H9V22.3H11.7V9Z"}),e.createElement("path",{d:"M22.4 9H9V11.7H22.4V9Z"}),e.createElement("path",{d:"M22.4 14.4004H9V17.1004H22.4V14.4004Z"}),e.createElement("path",{d:"M22.4 19.6992H9V22.3992H22.4V19.6992Z"})))),{shouldForwardProp:e=>"showMenuIcon"!==e})((({theme:e,showMenuIcon:t})=>({"& path":{fill:e.palette.background.default,transition:"all 0.2s linear",transformOrigin:"bottom left","&:first-of-type":{transitionDelay:!t&&"0.2s",transform:t&&"translateY(-9px) scaleY(0)"},"&:not(:first-of-type)":{transform:!t&&`translateX(${"rtl"===e.direction?"4":"9"}px) scaleX(0.6)`},"&:nth-of-type(2)":{transitionDelay:t?"0":"0.2s"},"&:nth-of-type(3)":{transitionDelay:"0.1s"},"&:nth-of-type(4)":{transitionDelay:t?"0.2s":"0"}}})));function V(t){const[n,r]=(0,e.useState)(!1),o=t.selected||n;return e.createElement(C,{...t,value:"selected",size:"large",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},e.createElement(j,{fontSize:"large",showMenuIcon:o,titleAccess:(0,l.__)("Elementor Logo","elementor")}))}function B({children:t,...n}){const r="rtl"===(0,o.useTheme)().direction;return e.createElement(T,{sx:{pointerEvents:"none"},PaperProps:{sx:{...r?{marginInlineEnd:-1}:{marginInlineStart:1},pointerEvents:"auto"}},anchorOrigin:{vertical:"center",horizontal:r?"left":"right"},transformOrigin:{vertical:"center",horizontal:r?"right":"left"},...n},t)}var{useMenuItems:D}=k,L=(0,o.withDirection)(i.ChevronRightIcon);function O({parentPopupState:t}){const n=D(),r=(0,o.usePopupState)({parentPopupState:t,variant:"popover",popupId:"elementor-v2-app-bar-integrations"});return 0===n.default.length?null:e.createElement(e.Fragment,null,e.createElement(o.Divider,null),e.createElement(o.MenuItem,{...(0,o.bindHover)(r),...(0,o.bindFocus)(r)},e.createElement(o.ListItemIcon,null,e.createElement(i.PlugIcon,null)),e.createElement(o.ListItemText,{primary:(0,l.__)("Integrations","elementor")}),e.createElement(L,null),e.createElement(B,{...(0,o.bindMenu)(r),onClick:r.close},n.default.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))))))}var{useMenuItems:H}=_;function z(){const t=H(),n=(0,o.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-main-menu"});return e.createElement(o.Stack,{sx:{paddingInlineStart:3},direction:"row",alignItems:"center"},e.createElement(V,{...(0,o.bindTrigger)(n),selected:n.isOpen}),e.createElement(T,{onClick:n.close,...(0,o.bindMenu)(n),marginThreshold:8},t.default.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))),e.createElement(O,{key:"integrations-location",parentPopupState:n}),t.exits.length>0&&e.createElement(o.Divider,null),t.exits.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}function A({children:t,...n}){return e.createElement(c,{type:"toolbar"},e.createElement(o.Stack,{sx:{px:1.5},spacing:1.5,direction:"row",alignItems:"center",...n},t))}function F({children:t,id:n}){const r=(0,o.usePopupState)({variant:"popover",popupId:n});return e.createElement(e.Fragment,null,e.createElement(m,{...(0,o.bindTrigger)(r),title:(0,l.__)("More","elementor")},e.createElement(i.DotsVerticalIcon,null)),e.createElement(T,{onClick:r.close,...(0,o.bindMenu)(r)},t))}var G=5,{useMenuItems:R}=P;function Z(){const t=R(),n=t.default.slice(0,G),r=t.default.slice(G);return e.createElement(A,null,n.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))),r.length>0&&e.createElement(F,{id:"elementor-editor-app-bar-tools-more"},r.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}var U=4,{useMenuItems:X}=S;function Y(){const t=X(),n=t.default.slice(0,U),r=t.default.slice(U);return e.createElement(A,null,n.map((({MenuItem:t,id:n},r)=>e.createElement(e.Fragment,{key:n},0===r&&e.createElement(o.Divider,{orientation:"vertical"}),e.createElement(t,null)))),r.length>0&&e.createElement(F,{id:"elementor-editor-app-bar-utilities-more"},r.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}function $(){return e.createElement(w,null)}function q(){return e.createElement(I,null)}function J(){return e.createElement(b,null)}function K(){return e.createElement(o.ThemeProvider,{colorScheme:"dark"},e.createElement(o.AppBar,{position:"sticky"},e.createElement(o.Box,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)"},e.createElement(o.Grid,{container:!0},e.createElement(z,null),e.createElement(Z,null)),e.createElement(o.Grid,{container:!0,justifyContent:"center"},e.createElement(A,{spacing:1.5},e.createElement(o.Divider,{orientation:"vertical"}),e.createElement(q,null),e.createElement(o.Divider,{orientation:"vertical"}),e.createElement(J,null),e.createElement(o.Divider,{orientation:"vertical"}))),e.createElement(o.Grid,{container:!0,justifyContent:"flex-end"},e.createElement(Y,null),e.createElement($,null)))))}}(),(window.elementorV2=window.elementorV2||{}).editorAppBarUi=r}();