芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/elementor/assets/js/packages/editor-app-bar/editor-app-bar.js
/*! For license information please see editor-app-bar.js.LICENSE.txt */ !function(){"use strict";var e={react:function(e){e.exports=window.React},"@elementor/editor":function(e){e.exports=window.elementorV2.editor},"@elementor/editor-documents":function(e){e.exports=window.elementorV2.editorDocuments},"@elementor/editor-responsive":function(e){e.exports=window.elementorV2.editorResponsive},"@elementor/editor-v1-adapters":function(e){e.exports=window.elementorV2.editorV1Adapters},"@elementor/icons":function(e){e.exports=window.elementorV2.icons},"@elementor/locations":function(e){e.exports=window.elementorV2.locations},"@elementor/menus":function(e){e.exports=window.elementorV2.menus},"@elementor/ui":function(e){e.exports=window.elementorV2.ui},"@wordpress/i18n":function(e){e.exports=window.wp.i18n}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 o={};!function(){n.r(o),n.d(o,{documentOptionsMenu:function(){return R},injectIntoPageIndication:function(){return I},injectIntoPrimaryAction:function(){return C},injectIntoResponsive:function(){return M},integrationsMenu:function(){return D},mainMenu:function(){return T},toolsMenu:function(){return L},utilitiesMenu:function(){return A}});var e=n("@elementor/locations"),t=n("@elementor/menus"),r=n("react"),i=n("@elementor/ui"),l=n("@elementor/icons"),a=n("@wordpress/i18n"),c=n("@elementor/editor-documents"),s=n("@elementor/editor"),u=n("@elementor/editor-v1-adapters"),m=n("@elementor/editor-responsive"),p=(0,r.createContext)({type:"toolbar"});function d({type:e,popupState:t,children:n}){return r.createElement(p.Provider,{value:{type:e,popupState:t}},n)}function g(){return(0,r.useContext)(p)}function v({title:e,...t}){return r.createElement(E,{title:e},r.createElement(i.Box,{component:"span","aria-label":void 0},r.createElement(i.IconButton,{...t,"aria-label":e,size:"medium",sx:{"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"},"&:hover":{color:"text.primary"}}})))}function E(e){return r.createElement(i.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2}}},...e})}var f=(0,i.withDirection)(l.ArrowUpRightIcon),_=(0,i.withDirection)(l.ChevronRightIcon);function y({text:e,icon:t,onClick:n,href:o,target:l,disabled:a,isGroupParent:c,...s}){const u=o&&"_blank"===l;return r.createElement(i.MenuItem,{...s,disabled:a,onClick:n,component:o?"a":"div",href:o,target:l,sx:{"&:hover":{color:"text.primary"}}},r.createElement(i.ListItemIcon,null,t),r.createElement(i.ListItemText,{primary:e}),u&&r.createElement(f,null),c&&r.createElement(_,null))}function b({icon:e,title:t,visible:n=!0,...o}){const{type:i}=g();return n?"toolbar"===i?r.createElement(v,{title:t,...o},r.createElement(e,null)):r.createElement(y,{...o,text:t,icon:r.createElement(e,null)}):null}function h({icon:e,title:t,visible:n=!0,...o}){const{type:i}=g();return n?"toolbar"===i?r.createElement(v,{title:t,...o},r.createElement(e,null)):r.createElement(y,{...o,text:t,icon:r.createElement(e,null)}):null}function w({title:e,onClick:t,...n}){return r.createElement(i.Tooltip,{title:e},r.createElement(i.Box,{component:"span","aria-label":void 0},r.createElement(i.ToggleButton,{...n,onChange:t,"aria-label":e,size:"small",sx:{border:0,"&.Mui-disabled":{border:0},"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"}}})))}function k({icon:e,title:t,value:n,visible:o=!0,...i}){const{type:l}=g();return o?"toolbar"===l?r.createElement(w,{value:n||t,title:t,...i},r.createElement(e,null)):r.createElement(y,{...i,text:t,icon:r.createElement(e,null)}):null}var{inject:I,Slot:x}=(0,e.createLocation)(),{inject:M,Slot:B}=(0,e.createLocation)(),{inject:C,Slot:P}=(0,e.createLocation)(),S={Action:b,ToggleAction:k,Link:h},T=(0,t.createMenu)({groups:["exits"],components:S}),L=(0,t.createMenu)({components:S}),A=(0,t.createMenu)({components:S}),D=(0,t.createMenu)({components:S}),R=(0,t.createMenu)({groups:["save"],components:{Action:b,ToggleAction:k,Link:h}});function O({children:e,popupState:t,...n}){return r.createElement(d,{type:"popover",popupState:t},r.createElement(i.Menu,{PaperProps:{sx:{mt:1.5}},...n,MenuListProps:{component:"div",dense:!0}},e))}var V=(0,i.styled)(i.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,i.styled)((e=>r.createElement(i.SvgIcon,{viewBox:"0 0 32 32",...e},r.createElement("g",null,r.createElement("circle",{cx:"16",cy:"16",r:"16"}),r.createElement("path",{d:"M11.7 9H9V22.3H11.7V9Z"}),r.createElement("path",{d:"M22.4 9H9V11.7H22.4V9Z"}),r.createElement("path",{d:"M22.4 14.4004H9V17.1004H22.4V14.4004Z"}),r.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 z(e){const[t,n]=(0,r.useState)(!1),o=e.selected||t;return r.createElement(V,{...e,value:"selected",size:"large",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},r.createElement(j,{fontSize:"large",showMenuIcon:o,titleAccess:(0,a.__)("Elementor Logo","elementor")}))}var{useMenuItems:H}=T;function U(){const e=H(),t=(0,i.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-main-menu"}),n=(0,i.bindTrigger)(t);return r.createElement(i.Stack,{sx:{paddingInlineStart:3},direction:"row",alignItems:"center"},r.createElement(z,{...n,onClick:e=>{const t=window,o=t?.elementor?.editorEvents?.config;o&&t.elementor.editorEvents.dispatchEvent(o.names.topBar.elementorLogoDropdown,{location:o.locations.topBar,secondaryLocation:o.secondaryLocations.elementorLogo,trigger:o.triggers.dropdownClick,element:o.elements.buttonIcon}),n.onClick(e)},selected:t.isOpen}),r.createElement(O,{onClick:t.close,...(0,i.bindMenu)(t),marginThreshold:8},e.default.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t}))),e.exits.length>0&&r.createElement(i.Divider,null),e.exits.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}function W({children:e,...t}){return r.createElement(d,{type:"toolbar"},r.createElement(i.Stack,{sx:{px:1.5},spacing:1.5,direction:"row",alignItems:"center",...t},e))}function F({children:e,id:t}){const n=(0,i.usePopupState)({variant:"popover",popupId:t});return r.createElement(r.Fragment,null,r.createElement(v,{...(0,i.bindTrigger)(n),title:(0,a.__)("More","elementor")},r.createElement(l.DotsVerticalIcon,null)),r.createElement(O,{onClick:n.close,...(0,i.bindMenu)(n)},e))}var{useMenuItems:G}=D;function K(){const e=G(),t=(0,i.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-integrations"});return 0===e.default.length?null:r.createElement(r.Fragment,null,r.createElement(v,{...(0,i.bindTrigger)(t),title:(0,a.__)("Integrations","elementor")},r.createElement(l.PlugIcon,null)),r.createElement(O,{onClick:t.close,...(0,i.bindMenu)(t),marginThreshold:8,open:t.isOpen},e.default.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}var Z=5,{useMenuItems:$}=L;function q(){const e=$(),t=e.default.slice(0,Z),n=e.default.slice(Z);return r.createElement(W,null,t.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t}))),r.createElement(K,null),n.length>0&&r.createElement(F,{id:"elementor-editor-app-bar-tools-more"},n.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}var X=4,{useMenuItems:Y}=A;function J(){const e=Y(),t=e.default.length>X+1,n=t?e.default.slice(0,X):e.default,o=t?e.default.slice(X):[];return r.createElement(W,null,n.map((({MenuItem:e,id:t},n)=>r.createElement(r.Fragment,{key:t},0===n&&r.createElement(i.Divider,{orientation:"vertical"}),r.createElement(e,null)))),o.length>0&&r.createElement(F,{id:"elementor-editor-app-bar-utilities-more"},o.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}function N(){return r.createElement(P,null)}function Q(){return r.createElement(x,null)}function ee(){return r.createElement(B,null)}function te(){const e=(0,c.__useActiveDocument)(),t=(0,c.__useHostDocument)(),n=e&&"kit"!==e.type.value?e:t,{isActive:o,isBlocked:s}=(0,u.__privateUseRouteStatus)("panel/page-settings");if(!n)return null;const m=(0,a.__)("%s Settings","elementor").replace("%s",n.type.label);return r.createElement(ne,{title:m},r.createElement(i.Box,{component:"span","aria-label":void 0},r.createElement(i.ToggleButton,{value:"document-settings",selected:o,disabled:s,onChange:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.documentSettings,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations["document-settings"],trigger:t.triggers.click,element:t.elements.buttonIcon}),(0,u.__privateOpenRoute)("panel/page-settings/settings")},"aria-label":m,size:"small",sx:{border:0,"&.Mui-disabled":{border:0}}},r.createElement(l.SettingsIcon,{fontSize:"small"}))))}function ne(e){return r.createElement(i.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1.7}}},...e})}function oe(){const e=(0,c.__useActiveDocument)();return{icon:l.EyeIcon,title:(0,a.__)("Preview Changes","elementor"),onClick:()=>{const t=window,n=t?.elementor?.editorEvents?.config;n&&t.elementor.editorEvents.dispatchEvent(n.names.topBar.previewPage,{location:n.locations.topBar,secondaryLocation:n.secondaryLocations["preview-page"],trigger:n.triggers.click,element:n.elements.buttonIcon}),e&&(0,u.__privateRunCommand)("editor/documents/preview",{id:e.id,force:!0})}}}function re(){const e=(0,c.__useActiveDocument)(),{saveDraft:t}=(0,c.__useActiveDocumentActions)();return{icon:l.FileReportIcon,title:(0,a.__)("Save Draft","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!e.isDirty}}function ie(){const{saveTemplate:e}=(0,c.__useActiveDocumentActions)();return{icon:l.FolderIcon,title:(0,a.__)("Save as Template","elementor"),onClick:e}}function le(){const e=(0,c.__useActiveDocument)();return{icon:l.EyeIcon,title:(0,a.__)("View Page","elementor"),onClick:()=>e?.id&&(0,u.__privateRunCommand)("editor/documents/view",{id:e.id})}}var{useMenuItems:ae}=R,ce=(0,i.styled)(O)` & > .MuiPopover-paper > .MuiList-root { & > .MuiDivider-root { display: none; } & > *:not( .MuiDivider-root ):not( :last-of-type ) + .MuiDivider-root { display: block; } } `;function se(e){const{save:t,default:n}=ae();return r.createElement(ce,{...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(i.Divider,{key:`${t}-divider`}),r.createElement(e,{key:t})])),t.length>0&&n.length>0&&r.createElement(i.Divider,null),n.map((({MenuItem:e,id:t},n)=>[n>0&&r.createElement(i.Divider,{key:`${t}-divider`}),r.createElement(e,{key:t})])))}function ue(){const e=(0,c.__useActiveDocument)(),{save:t}=(0,c.__useActiveDocumentActions)(),n=(0,u.__privateUseIsPreviewMode)(),o=(0,i.usePopupState)({variant:"popover",popupId:"document-save-options"});if(!e)return null;const s=n||!function(e){return"kit"!==e.type.value&&(e.isDirty||"draft"===e.status.value)}(e),m=n||"kit"===e.type.value,p=e.isSaving&&!s;return r.createElement(r.Fragment,null,r.createElement(i.ButtonGroup,{size:"large",variant:"contained"},r.createElement(i.Button,{onClick:()=>{const n=window,o=n?.elementor?.editorEvents?.config;o&&n.elementor.editorEvents.dispatchEvent(o.names.topBar.publishButton,{location:o.locations.topBar,secondaryLocation:o.secondaryLocations["publish-button"],trigger:o.triggers.click,element:o.elements.mainCta}),e.isSaving||t()},sx:{height:"100%",borderRadius:0,maxWidth:"158px","&.MuiButtonBase-root.MuiButtonGroup-grouped":{minWidth:"110px"}},disabled:s},p?r.createElement(i.CircularProgress,{color:"inherit",size:"1.5em"}):function(e){return e.userCan.publish?(0,a.__)("Publish","elementor"):(0,a.__)("Submit","elementor")}(e)),r.createElement(i.Tooltip,{title:(0,a.__)("Save Options","elementor"),PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1,mr:.25}}}},r.createElement(i.Box,{component:"span","aria-label":void 0},r.createElement(i.Button,{size:"small",...(0,i.bindTrigger)(o),sx:{px:0,height:"100%",borderRadius:0},disabled:m,"aria-label":(0,a.__)("Save Options","elementor")},r.createElement(l.ChevronDownIcon,null))))),r.createElement(se,{...(0,i.bindMenu)(o),onClick:o.close}))}function me(){const e=(0,c.__useActiveDocument)(),{copyAndShare:t}=(0,c.__useActiveDocumentActions)();return{icon:l.LinkIcon,title:(0,a.__)("Copy and Share","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!("publish"===e.status.value),visible:e?.permissions?.showCopyAndShare}}function pe(e){window.elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.(e)}function de(e){const t=document.querySelector('.elementor-component-tab[data-tab="categories"]');t&&(t.textContent=e)}function ge(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/elements");return{title:(0,a.__)("Add Element","elementor"),icon:l.PlusIcon,onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.widgetPanel,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations["widget-panel"],trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,u.__privateOpenRoute)("panel/elements/categories")},selected:e,disabled:t}}function ve(){const{isBlocked:e}=(0,u.__privateUseRouteStatus)("finder",{blockOnKitRoutes:!1,blockOnPreviewMode:!1});return{title:(0,a.__)("Finder","elementor"),icon:l.SearchIcon,onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.finder,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.finder,trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,u.__privateRunCommand)("finder/toggle")},disabled:e}}function Ee(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/history");return{title:(0,a.__)("History","elementor"),icon:l.HistoryIcon,onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.history,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,u.__privateOpenRoute)("panel/history/actions")},selected:e,disabled:t}}function fe(){return{icon:l.KeyboardIcon,title:(0,a.__)("Keyboard Shortcuts","elementor"),onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.keyboardShortcuts,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,u.__privateRunCommand)("shortcuts/open")}}}function _e(){const e=(0,m.useBreakpoints)(),t=(0,m.useActiveBreakpoint)(),n=(0,m.useActivateBreakpoint)();return e.length&&t?r.createElement(i.Tabs,{textColor:"inherit",indicatorColor:"secondary",value:t,onChange:(e,t)=>{const o=window,r=o?.elementor?.editorEvents?.config;r&&o.elementor.editorEvents.dispatchEvent(r.names.topBar.responsiveControls,{location:r.locations.topBar,secondaryLocation:r.secondaryLocations.responsiveControls,trigger:r.triggers.click,element:r.elements.buttonIcon,mode:t}),n(t)},"aria-label":(0,a.__)("Switch Device","elementor"),sx:{"& .MuiTabs-indicator":{backgroundColor:"text.primary"}}},e.map((({id:e,label:t,type:n,width:o})=>{const l=be[e],a=he[n||"default"].replace("%s",t).replace("%d",o?.toString()||"");return r.createElement(i.Tab,{value:e,key:e,"aria-label":a,icon:r.createElement(ye,{title:a},r.createElement(l,null)),sx:{minWidth:"auto"},"data-testid":`switch-device-to-${e}`})}))):null}function ye(e){return r.createElement(i.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2.5}}},...e})}var be={widescreen:l.WidescreenIcon,desktop:l.DesktopIcon,laptop:l.LaptopIcon,tablet_extra:l.TabletLandscapeIcon,tablet:l.TabletPortraitIcon,mobile_extra:l.MobileLandscapeIcon,mobile:l.MobilePortraitIcon},he={default:"%s","min-width":(0,a.__)("%s (%dpx and up)","elementor"),"max-width":(0,a.__)("%s (up to %dpx)","elementor")};function we(e){const t=(0,u.__privateUseListenTo)([(0,u.routeOpenEvent)("panel/global"),(0,u.routeCloseEvent)("panel/global")],ke);return t.current?r.createElement(i.Portal,{container:t.current,...e}):null}function ke(){return(0,u.__privateIsRouteActive)("panel/global")?{current:document.querySelector("#elementor-panel-inner")}:{current:null}}function Ie(){const e=(0,c.__useActiveDocument)(),{save:t}=(0,c.__useActiveDocumentActions)();return r.createElement(i.Paper,{sx:{px:5,py:4,borderTop:1,borderColor:"divider"}},r.createElement(i.Button,{variant:"contained",disabled:!e||!e.isDirty,size:"medium",sx:{width:"100%"},onClick:()=>e&&!e.isSaving?t():null},e?.isSaving?r.createElement(i.CircularProgress,null):(0,a.__)("Save Changes","elementor")))}function xe(){return r.createElement(we,null,r.createElement(Ie,null))}function Me(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/global",{blockOnKitRoutes:!1});return{title:(0,a.__)("Site Settings","elementor"),icon:l.AdjustmentsHorizontalIcon,onClick:()=>{const t=window,n=t?.elementor?.editorEvents?.config;n&&t.elementor.editorEvents.dispatchEvent(n.names.topBar.siteSettings,{location:n.locations.topBar,secondaryLocation:n.secondaryLocations.siteSettings,trigger:n.triggers.toggleClick,element:n.elements.buttonIcon}),e?(0,u.__privateRunCommand)("panel/global/close"):(0,u.__privateRunCommand)("panel/global/open")},selected:e,disabled:t}}function Be(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("navigator");return{title:(0,a.__)("Structure","elementor"),icon:l.StructureIcon,onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.structure,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.structure,trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,u.__privateRunCommand)("navigator/toggle")},selected:e,disabled:t}}function Ce(){return{icon:l.ThemeBuilderIcon,title:(0,a.__)("Theme Builder","elementor"),onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.themeBuilder,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,u.__privateRunCommand)("app/open")}}}function Pe(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/editor-preferences");return{icon:l.ToggleRightIcon,title:(0,a.__)("User Preferences","elementor"),onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.userPreferences,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,u.__privateOpenRoute)("panel/editor-preferences")},selected:e,disabled:t}}(0,u.__privateListenTo)((0,u.routeOpenEvent)("panel/menu"),(()=>{(0,u.__privateOpenRoute)("panel/elements/categories")})),I({id:"document-settings-button",component:te,options:{priority:20}}),A.registerAction({id:"document-preview-button",priority:30,useProps:oe}),C({id:"document-primary-action",component:ue}),R.registerAction({group:"save",id:"document-save-draft",priority:10,useProps:re}),R.registerAction({group:"save",id:"document-save-as-template",priority:20,useProps:ie}),R.registerAction({id:"document-copy-and-share",priority:10,useProps:me}),R.registerAction({id:"document-view-page",priority:50,useProps:le}),function(){const e=(0,a.__)("Elements","elementor"),t=(0,a.__)("Widgets","elementor");(0,u.__privateListenTo)((0,u.routeOpenEvent)("panel/elements"),(()=>{pe(e),de(t)})),(0,u.__privateListenTo)((0,u.v1ReadyEvent)(),(()=>{(0,u.__privateIsRouteActive)("panel/elements")&&(pe(e),de(t))}))}(),L.registerToggleAction({id:"open-elements-panel",priority:1,useProps:ge}),A.registerAction({id:"toggle-finder",priority:15,useProps:ve}),A.registerLink({id:"open-help-center",priority:25,useProps:()=>({title:(0,a.__)("Help","elementor"),href:"https://go.elementor.com/editor-top-bar-learn/",icon:l.HelpIcon,target:"_blank",onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.help,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.help,trigger:t.triggers.click,element:t.elements.buttonIcon})}})}),T.registerToggleAction({id:"open-history",priority:20,useProps:Ee}),T.registerAction({id:"open-keyboard-shortcuts",group:"default",priority:40,useProps:fe}),M({id:"responsive-breakpoints-switcher",component:_e,options:{priority:20}}),(0,s.injectIntoTop)({id:"site-settings-primary-action-portal",component:xe}),L.registerToggleAction({id:"toggle-site-settings",priority:2,useProps:Me}),L.registerToggleAction({id:"toggle-structure-view",priority:3,useProps:Be}),T.registerAction({id:"open-theme-builder",useProps:Ce}),T.registerToggleAction({id:"open-user-preferences",priority:30,useProps:Pe}),T.registerLink({id:"exit-to-wordpress",group:"exits",useProps:()=>{const e=(0,c.__useActiveDocument)();return{title:(0,a.__)("Exit to WordPress","elementor"),href:e?.links?.platformEdit,icon:l.WordpressIcon,onClick:()=>{const e=window,t=e?.elementor?.editorEvents?.config;t&&e.elementor.editorEvents.dispatchEvent(t.names.topBar.exitToWordpress,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link})}}}}),(0,s.injectIntoTop)({id:"app-bar",component:function(){const e=(0,c.__useActiveDocument)();return r.createElement(i.ThemeProvider,{colorScheme:"dark"},r.createElement(i.AppBar,{position:"sticky"},r.createElement(i.Toolbar,{disableGutters:!0,variant:"dense"},r.createElement(i.Box,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",flexGrow:1},r.createElement(i.Grid,{container:!0},r.createElement(U,null),e?.permissions?.allowAddingWidgets&&r.createElement(q,null)),r.createElement(i.Grid,{container:!0,justifyContent:"center"},r.createElement(W,{spacing:1.5},r.createElement(i.Divider,{orientation:"vertical"}),r.createElement(Q,null),r.createElement(i.Divider,{orientation:"vertical"}),r.createElement(ee,null),r.createElement(i.Divider,{orientation:"vertical"}))),r.createElement(i.Grid,{container:!0,justifyContent:"flex-end"},r.createElement(J,null),r.createElement(N,null))))))}})}(),(window.elementorV2=window.elementorV2||{}).editorAppBar=o}();