/*! 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/icons"),l=n("@elementor/ui"),a=n("@elementor/editor"),c=n("@elementor/editor-documents"),s=n("@wordpress/i18n"),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)}var v=(0,l.withDirection)(i.ArrowUpRightIcon),E=(0,l.withDirection)(i.ChevronRightIcon);function f({text:e,icon:t,onClick:n,href:o,target:i,disabled:a,isGroupParent:c,...s}){const u=o&&"_blank"===i;return r.createElement(l.MenuItem,{...s,disabled:a,onClick:n,component:o?"a":"div",href:o,target:i,sx:{"&:hover":{color:"text.primary"}}},r.createElement(l.ListItemIcon,null,t),r.createElement(l.ListItemText,{primary:e}),u&&r.createElement(v,null),c&&r.createElement(E,null))}function _({title:e,...t}){return r.createElement(y,{title:e},r.createElement(l.Box,{component:"span","aria-label":void 0},r.createElement(l.IconButton,{...t,"aria-label":e,size:"medium",sx:{"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"},"&:hover":{color:"text.primary"}}})))}function y(e){return r.createElement(l.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2}}},...e})}function b({icon:e,title:t,visible:n=!0,...o}){const{type:i}=g();return n?"toolbar"===i?r.createElement(_,{title:t,...o},r.createElement(e,null)):r.createElement(f,{...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(_,{title:t,...o},r.createElement(e,null)):r.createElement(f,{...o,text:t,icon:r.createElement(e,null)}):null}function w({title:e,onClick:t,...n}){return r.createElement(l.Tooltip,{title:e},r.createElement(l.Box,{component:"span","aria-label":void 0},r.createElement(l.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(f,{...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(l.Menu,{PaperProps:{sx:{mt:1.5}},...n,MenuListProps:{component:"div",dense:!0}},e))}var V=(0,l.styled)(l.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,l.styled)((e=>r.createElement(l.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,s.__)("Elementor Logo","elementor")}))}var{useMenuItems:H}=T;function U(){const e=H(),t=(0,l.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-main-menu"}),n=(0,l.bindTrigger)(t);return r.createElement(l.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,l.bindMenu)(t),marginThreshold:8},e.default.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t}))),e.exits.length>0&&r.createElement(l.Divider,null),e.exits.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}function W(){return r.createElement(x,null)}function F(){return r.createElement(P,null)}function G(){return r.createElement(B,null)}function K({children:e,...t}){return r.createElement(d,{type:"toolbar"},r.createElement(l.Stack,{sx:{px:1.5},spacing:1.5,direction:"row",alignItems:"center",...t},e))}function Z({children:e,id:t}){const n=(0,l.usePopupState)({variant:"popover",popupId:t});return r.createElement(r.Fragment,null,r.createElement(_,{...(0,l.bindTrigger)(n),title:(0,s.__)("More","elementor")},r.createElement(i.DotsVerticalIcon,null)),r.createElement(O,{onClick:n.close,...(0,l.bindMenu)(n)},e))}var{useMenuItems:$}=D;function q(){const e=$(),t=(0,l.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-integrations"});return 0===e.default.length?null:r.createElement(r.Fragment,null,r.createElement(_,{...(0,l.bindTrigger)(t),title:(0,s.__)("Integrations","elementor")},r.createElement(i.PlugIcon,null)),r.createElement(O,{onClick:t.close,...(0,l.bindMenu)(t),marginThreshold:8,open:t.isOpen},e.default.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}var{useMenuItems:X}=L;function Y(){const e=X(),t=e.default.slice(0,5),n=e.default.slice(5);return r.createElement(K,null,t.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t}))),r.createElement(q,null),n.length>0&&r.createElement(Z,{id:"elementor-editor-app-bar-tools-more"},n.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}var{useMenuItems:J}=A;function N(){const e=J(),t=e.default.length>5,n=t?e.default.slice(0,4):e.default,o=t?e.default.slice(4):[];return r.createElement(K,null,n.map((({MenuItem:e,id:t},n)=>r.createElement(r.Fragment,{key:t},0===n&&r.createElement(l.Divider,{orientation:"vertical"}),r.createElement(e,null)))),o.length>0&&r.createElement(Z,{id:"elementor-editor-app-bar-utilities-more"},o.map((({MenuItem:e,id:t})=>r.createElement(e,{key:t})))))}function Q(){const e=(0,c.__useActiveDocument)(),t=(0,c.__useHostDocument)(),n=e&&"kit"!==e.type.value?e:t,{isActive:o,isBlocked:a}=(0,u.__privateUseRouteStatus)("panel/page-settings");if(!n)return null;const m=(0,s.__)("%s Settings","elementor").replace("%s",n.type.label);return r.createElement(ee,{title:m},r.createElement(l.Box,{component:"span","aria-label":void 0},r.createElement(l.ToggleButton,{value:"document-settings",selected:o,disabled:a,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(i.SettingsIcon,{fontSize:"small"}))))}function ee(e){return r.createElement(l.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1.7}}},...e})}function te(){const e=(0,c.__useActiveDocument)();return{icon:i.EyeIcon,title:(0,s.__)("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})}}}var{useMenuItems:ne}=R,oe=(0,l.styled)(O)` & > .MuiPopover-paper > .MuiList-root { & > .MuiDivider-root { display: none; } & > *:not( .MuiDivider-root ):not( :last-of-type ) + .MuiDivider-root { display: block; } } `;function re(e){const{save:t,default:n}=ne();return r.createElement(oe,{...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})])),t.length>0&&n.length>0&&r.createElement(l.Divider,null),n.map((({MenuItem:e,id:t},n)=>[n>0&&r.createElement(l.Divider,{key:`${t}-divider`}),r.createElement(e,{key:t})])))}function ie(){const e=(0,c.__useActiveDocument)(),{save:t}=(0,c.__useActiveDocumentActions)(),n=(0,u.__privateUseIsPreviewMode)(),o=(0,l.usePopupState)({variant:"popover",popupId:"document-save-options"});if(!e)return null;const a=n||!function(e){return"kit"!==e.type.value&&(e.isDirty||"draft"===e.status.value)}(e),m=n||"kit"===e.type.value,p=e.isSaving&&!a;return r.createElement(r.Fragment,null,r.createElement(l.ButtonGroup,{size:"large",variant:"contained"},r.createElement(l.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:a},p?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)(o),sx:{px:0,height:"100%",borderRadius:0},disabled:m,"aria-label":(0,s.__)("Save Options","elementor")},r.createElement(i.ChevronDownIcon,null))))),r.createElement(re,{...(0,l.bindMenu)(o),onClick:o.close}))}function le(){const e=(0,c.__useActiveDocument)(),{copyAndShare:t}=(0,c.__useActiveDocumentActions)();return{icon:i.LinkIcon,title:(0,s.__)("Copy and Share","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!("publish"===e.status.value),visible:e?.permissions?.showCopyAndShare}}function ae(){const e=(0,c.__useActiveDocument)(),{saveDraft:t}=(0,c.__useActiveDocumentActions)();return{icon:i.FileReportIcon,title:(0,s.__)("Save Draft","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!e.isDirty}}function ce(){const{saveTemplate:e}=(0,c.__useActiveDocumentActions)();return{icon:i.FolderIcon,title:(0,s.__)("Save as Template","elementor"),onClick:e}}function se(){const e=(0,c.__useActiveDocument)();return{icon:i.EyeIcon,title:(0,s.__)("View Page","elementor"),onClick:()=>e?.id&&(0,u.__privateRunCommand)("editor/documents/view",{id:e.id})}}function ue(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/elements");return{title:(0,s.__)("Add Element","elementor"),icon:i.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 me(e){window.elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.(e)}function pe(e){const t=document.querySelector('.elementor-component-tab[data-tab="categories"]');t&&(t.textContent=e)}function de(){const{isBlocked:e}=(0,u.__privateUseRouteStatus)("finder",{blockOnKitRoutes:!1,blockOnPreviewMode:!1});return{title:(0,s.__)("Finder","elementor"),icon:i.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 ge(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/history");return{title:(0,s.__)("History","elementor"),icon:i.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 ve(){return{icon:i.KeyboardIcon,title:(0,s.__)("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 Ee(){const e=(0,m.useBreakpoints)(),t=(0,m.useActiveBreakpoint)(),n=(0,m.useActivateBreakpoint)();return e.length&&t?r.createElement(l.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,s.__)("Switch Device","elementor"),sx:{"& .MuiTabs-indicator":{backgroundColor:"text.primary"}}},e.map((({id:e,label:t,type:n,width:o})=>{const i=_e[e],a=ye[n||"default"].replace("%s",t).replace("%d",o?.toString()||"");return r.createElement(l.Tab,{value:e,key:e,"aria-label":a,icon:r.createElement(fe,{title:a},r.createElement(i,null)),sx:{minWidth:"auto"},"data-testid":`switch-device-to-${e}`})}))):null}function fe(e){return r.createElement(l.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2.5}}},...e})}var _e={widescreen:i.WidescreenIcon,desktop:i.DesktopIcon,laptop:i.LaptopIcon,tablet_extra:i.TabletLandscapeIcon,tablet:i.TabletPortraitIcon,mobile_extra:i.MobileLandscapeIcon,mobile:i.MobilePortraitIcon},ye={default:"%s","min-width":(0,s.__)("%s (%dpx and up)","elementor"),"max-width":(0,s.__)("%s (up to %dpx)","elementor")};function be(e){const t=(0,u.__privateUseListenTo)([(0,u.routeOpenEvent)("panel/global"),(0,u.routeCloseEvent)("panel/global")],he);return t.current?r.createElement(l.Portal,{container:t.current,...e}):null}function he(){return(0,u.__privateIsRouteActive)("panel/global")?{current:document.querySelector("#elementor-panel-inner")}:{current:null}}function we(){const e=(0,c.__useActiveDocument)(),{save:t}=(0,c.__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 ke(){return r.createElement(be,null,r.createElement(we,null))}function Ie(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/global",{blockOnKitRoutes:!1});return{title:(0,s.__)("Site Settings","elementor"),icon:i.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 xe(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("navigator");return{title:(0,s.__)("Structure","elementor"),icon:i.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 Me(){return{icon:i.ThemeBuilderIcon,title:(0,s.__)("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 Be(){const{isActive:e,isBlocked:t}=(0,u.__privateUseRouteStatus)("panel/editor-preferences");return{icon:i.ToggleRightIcon,title:(0,s.__)("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:Q,options:{priority:20}}),A.registerAction({id:"document-preview-button",priority:30,useProps:te}),C({id:"document-primary-action",component:ie}),R.registerAction({group:"save",id:"document-save-draft",priority:10,useProps:ae}),R.registerAction({group:"save",id:"document-save-as-template",priority:20,useProps:ce}),R.registerAction({id:"document-copy-and-share",priority:10,useProps:le}),R.registerAction({id:"document-view-page",priority:50,useProps:se}),function(){const e=(0,s.__)("Elements","elementor"),t=(0,s.__)("Widgets","elementor");(0,u.__privateListenTo)((0,u.routeOpenEvent)("panel/elements"),(()=>{me(e),pe(t)})),(0,u.__privateListenTo)((0,u.v1ReadyEvent)(),(()=>{(0,u.__privateIsRouteActive)("panel/elements")&&(me(e),pe(t))}))}(),L.registerToggleAction({id:"open-elements-panel",priority:1,useProps:ue}),A.registerAction({id:"toggle-finder",priority:15,useProps:de}),A.registerLink({id:"open-help-center",priority:25,useProps:()=>({title:(0,s.__)("Help","elementor"),href:"https://go.elementor.com/editor-top-bar-learn/",icon:i.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:ge}),T.registerAction({id:"open-keyboard-shortcuts",group:"default",priority:40,useProps:ve}),M({id:"responsive-breakpoints-switcher",component:Ee,options:{priority:20}}),(0,a.injectIntoTop)({id:"site-settings-primary-action-portal",component:ke}),L.registerToggleAction({id:"toggle-site-settings",priority:2,useProps:Ie}),L.registerToggleAction({id:"toggle-structure-view",priority:3,useProps:xe}),T.registerAction({id:"open-theme-builder",useProps:Me}),T.registerToggleAction({id:"open-user-preferences",priority:30,useProps:Be}),T.registerLink({id:"exit-to-wordpress",group:"exits",useProps:()=>{const e=(0,c.__useActiveDocument)();return{title:(0,s.__)("Exit to WordPress","elementor"),href:e?.links?.platformEdit,icon:i.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,a.injectIntoTop)({id:"app-bar",component:function(){const e=(0,c.__useActiveDocument)();return r.createElement(l.ThemeProvider,{colorScheme:"dark"},r.createElement(l.AppBar,{position:"sticky"},r.createElement(l.Toolbar,{disableGutters:!0,variant:"dense"},r.createElement(l.Box,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",flexGrow:1},r.createElement(l.Grid,{container:!0},r.createElement(U,null),e?.permissions?.allowAddingWidgets&&r.createElement(Y,null)),r.createElement(l.Grid,{container:!0,justifyContent:"center"},r.createElement(K,{spacing:1.5},r.createElement(l.Divider,{orientation:"vertical"}),r.createElement(W,null),r.createElement(l.Divider,{orientation:"vertical"}),r.createElement(G,null),r.createElement(l.Divider,{orientation:"vertical"}))),r.createElement(l.Grid,{container:!0,justifyContent:"flex-end"},r.createElement(N,null),r.createElement(F,null))))))}})}(),(window.elementorV2=window.elementorV2||{}).editorAppBar=o}();