OwlCyberSecurity - MANAGER
Edit File: editor-app-bar.min.js
!function(){"use strict";var e={d:function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{documentOptionsMenu:function(){return c},injectIntoPageIndication:function(){return n.__privateInjectIntoPageIndication},injectIntoPrimaryAction:function(){return n.__privateInjectIntoPrimaryAction},injectIntoResponsive:function(){return n.__privateInjectIntoResponsive},integrationsMenu:function(){return n.__privateIntegrationsMenu},mainMenu:function(){return n.__privateMainMenu},toolsMenu:function(){return n.__privateToolsMenu},utilitiesMenu:function(){return n.__privateUtilitiesMenu}});var n=window.elementorV2.editorAppBarUi,i=window.elementorV2.editor,o=window.elementorV2.editorV1Adapters,r=window.React,l=window.elementorV2.ui,s=window.wp.i18n,a=window.elementorV2.icons,u=window.elementorV2.editorDocuments,c=(0,n.__privateCreateMenu)(["save"]);function p(){const e=(0,u.__useActiveDocument)(),t=(0,u.__useHostDocument)(),n=e&&"kit"!==e.type.value?e:t,{isActive:i,isBlocked:c}=(0,o.__privateUseRouteStatus)("panel/page-settings");if(!n)return null;const p=(0,s.__)("%s Settings","elementor").replace("%s",n.type.label);return r.createElement(d,{title:p},r.createElement(l.Box,{component:"span","aria-label":void 0},r.createElement(l.ToggleButton,{value:"document-settings",selected:i,disabled:c,onChange:()=>(0,o.__privateOpenRoute)("panel/page-settings/settings"),"aria-label":p,size:"small",sx:{border:0,"&.Mui-disabled":{border:0}}},r.createElement(a.SettingsIcon,{fontSize:"small"}))))}function d(e){return r.createElement(l.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1.7}}},...e})}function _(){const e=(0,u.__useActiveDocument)();return{icon:a.EyeIcon,title:(0,s.__)("Preview Changes","elementor"),onClick:()=>e&&(0,o.__privateRunCommand)("editor/documents/preview",{id:e.id,force:!0})}}function m(){const e=(0,u.__useActiveDocument)(),{saveDraft:t}=(0,u.__useActiveDocumentActions)();return{icon:a.FileReportIcon,title:(0,s.__)("Save Draft","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!e.isDirty}}function v(){const{saveTemplate:e}=(0,u.__useActiveDocumentActions)();return{icon:a.FolderIcon,title:(0,s.__)("Save as Template","elementor"),onClick:e}}var{useMenuItems:g}=c,f=(0,l.styled)(n.__privatePopoverMenu)` & > .MuiPopover-paper > .MuiList-root > .MuiDivider-root { &:only-child, /* A divider is being rendered lonely */ &:last-child, /* The last group renders empty but renders a divider */ & + .MuiDivider-root /* Multiple dividers due to multiple empty groups */ { display: none; } } `;function b(e){const{save:t,default:n}=g();return r.createElement(f,{...e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:4,PaperProps:{sx:{mt:.5}}},t.map((({MenuItem:e,id:t},n)=>[n>0&&r.createElement(l.Divider,{key:`${t}-divider`}),r.createElement(e,{key:t})])),n.length>0&&r.createElement(l.Divider,null),n.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t}))))}function y(){const e=(0,u.__useActiveDocument)(),{save:t}=(0,u.__useActiveDocumentActions)(),n=(0,o.__privateUseIsPreviewMode)(),i=(0,l.usePopupState)({variant:"popover",popupId:"document-save-options"});if(!e)return null;const c=n||!function(e){return"kit"!==e.type.value&&(e.isDirty||"draft"===e.status.value)}(e),p=n||"kit"===e.type.value,d=e.isSaving&&!c;return r.createElement(r.Fragment,null,r.createElement(l.ButtonGroup,{size:"large",variant:"contained"},r.createElement(l.Button,{onClick:()=>!e.isSaving&&t(),sx:{height:"100%",borderRadius:0,maxWidth:"158px","&.MuiButtonBase-root.MuiButtonGroup-grouped":{minWidth:"110px"}},disabled:c},d?r.createElement(l.CircularProgress,{color:"inherit",size:"1.5em"}):function(e){return e.userCan.publish?(0,s.__)("Publish","elementor"):(0,s.__)("Submit","elementor")}(e)),r.createElement(l.Tooltip,{title:(0,s.__)("Save Options","elementor"),PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1,mr:.25}}}},r.createElement(l.Box,{component:"span","aria-label":void 0},r.createElement(l.Button,{size:"small",...(0,l.bindTrigger)(i),sx:{px:0,height:"100%",borderRadius:0},disabled:p,"aria-label":(0,s.__)("Save Options","elementor")},r.createElement(a.ChevronDownIcon,null))))),r.createElement(b,{...(0,l.bindMenu)(i),onClick:i.close}))}function M(e){window.elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.(e)}function P(e){const t=document.querySelector('.elementor-component-tab[data-tab="categories"]');t&&(t.textContent=e)}function A(){const{isActive:e,isBlocked:t}=(0,o.__privateUseRouteStatus)("panel/elements");return{title:(0,s.__)("Add Element","elementor"),icon:a.PlusIcon,onClick:()=>(0,o.__privateOpenRoute)("panel/elements/categories"),selected:e,disabled:t}}function h(){const{isBlocked:e}=(0,o.__privateUseRouteStatus)("finder",{blockOnKitRoutes:!1,blockOnPreviewMode:!1});return{title:(0,s.__)("Finder","elementor"),icon:a.SearchIcon,onClick:()=>(0,o.__privateRunCommand)("finder/toggle"),disabled:e}}function I(){const{isActive:e,isBlocked:t}=(0,o.__privateUseRouteStatus)("panel/history");return{title:(0,s.__)("History","elementor"),icon:a.HistoryIcon,onClick:()=>(0,o.__privateOpenRoute)("panel/history/actions"),selected:e,disabled:t}}function S(){return{icon:a.KeyboardIcon,title:(0,s.__)("Keyboard Shortcuts","elementor"),onClick:()=>(0,o.__privateRunCommand)("shortcuts/open")}}function T(e){const t=(0,o.__privateUseListenTo)([(0,o.routeOpenEvent)("panel/global"),(0,o.routeCloseEvent)("panel/global")],k);return t.current?r.createElement(l.Portal,{container:t.current,...e}):null}function k(){return(0,o.__privateIsRouteActive)("panel/global")?{current:document.querySelector("#elementor-panel-inner")}:{current:null}}function w(){const e=(0,u.__useActiveDocument)(),{save:t}=(0,u.__useActiveDocumentActions)();return r.createElement(l.Paper,{sx:{px:5,py:4,borderTop:1,borderColor:"divider"}},r.createElement(l.Button,{variant:"contained",disabled:!e||!e.isDirty,size:"medium",sx:{width:"100%"},onClick:()=>e&&!e.isSaving?t():null},e?.isSaving?r.createElement(l.CircularProgress,null):(0,s.__)("Save Changes","elementor")))}function E(){return r.createElement(T,null,r.createElement(w,null))}function C(){const{isActive:e,isBlocked:t}=(0,o.__privateUseRouteStatus)("panel/global",{blockOnKitRoutes:!1});return{title:(0,s.__)("Site Settings","elementor"),icon:a.AdjustmentsHorizontalIcon,onClick:()=>e?(0,o.__privateRunCommand)("panel/global/close"):(0,o.__privateRunCommand)("panel/global/open"),selected:e,disabled:t}}function R(){const{isActive:e,isBlocked:t}=(0,o.__privateUseRouteStatus)("navigator");return{title:(0,s.__)("Structure","elementor"),icon:a.StructureIcon,onClick:()=>(0,o.__privateRunCommand)("navigator/toggle"),selected:e,disabled:t}}function B(){return{icon:a.ThemeBuilderIcon,title:(0,s.__)("Theme Builder","elementor"),onClick:()=>(0,o.__privateRunCommand)("app/open")}}function D(){const{isActive:e,isBlocked:t}=(0,o.__privateUseRouteStatus)("panel/editor-preferences");return{icon:a.ToggleRightIcon,title:(0,s.__)("User Preferences","elementor"),onClick:()=>(0,o.__privateOpenRoute)("panel/editor-preferences"),selected:e,disabled:t}}(0,o.__privateListenTo)((0,o.routeOpenEvent)("panel/menu"),(()=>{(0,o.__privateOpenRoute)("panel/elements/categories")})),(0,n.__privateInjectIntoPageIndication)({id:"document-settings-button",component:p,options:{priority:20}}),n.__privateUtilitiesMenu.registerAction({id:"document-preview-button",priority:30,useProps:_}),(0,n.__privateInjectIntoPrimaryAction)({id:"document-primary-action",component:y}),c.registerAction({group:"save",id:"document-save-draft",priority:10,useProps:m}),c.registerAction({group:"save",id:"document-save-as-template",priority:20,useProps:v}),function(){const e=(0,s.__)("Elements","elementor"),t=(0,s.__)("Widgets","elementor");(0,o.__privateListenTo)((0,o.routeOpenEvent)("panel/elements"),(()=>{M(e),P(t)})),(0,o.__privateListenTo)((0,o.v1ReadyEvent)(),(()=>{(0,o.__privateIsRouteActive)("panel/elements")&&(M(e),P(t))}))}(),n.__privateToolsMenu.registerToggleAction({id:"open-elements-panel",priority:1,useProps:A}),n.__privateUtilitiesMenu.registerAction({id:"toggle-finder",priority:10,useProps:h}),n.__privateUtilitiesMenu.registerLink({id:"open-help-center",priority:20,useProps:()=>({title:(0,s.__)("Help","elementor"),href:"https://go.elementor.com/editor-top-bar-learn/",icon:a.HelpIcon,target:"_blank"})}),n.__privateMainMenu.registerToggleAction({id:"open-history",priority:20,useProps:I}),n.__privateMainMenu.registerAction({id:"open-keyboard-shortcuts",group:"default",priority:40,useProps:S}),(0,i.injectIntoTop)({id:"site-settings-primary-action-portal",component:E}),n.__privateToolsMenu.registerToggleAction({id:"toggle-site-settings",priority:2,useProps:C}),n.__privateToolsMenu.registerToggleAction({id:"toggle-structure-view",priority:3,useProps:R}),n.__privateMainMenu.registerAction({id:"open-theme-builder",useProps:B}),n.__privateMainMenu.registerToggleAction({id:"open-user-preferences",priority:30,useProps:D}),n.__privateMainMenu.registerLink({id:"exit-to-wordpress",group:"exits",useProps:()=>{const e=(0,u.__useActiveDocument)();return{title:(0,s.__)("Exit to WordPress","elementor"),href:e?.links?.platformEdit,icon:a.WordpressIcon}}}),(0,i.injectIntoTop)({id:"app-bar",component:n.__privateAppBar}),(window.elementorV2=window.elementorV2||{}).editorAppBar=t}();