!function(){"use strict";var e={5527:function(e){e.exports=window.elementorV2.editorV1Adapters},18998:function(e){e.exports=window.elementorV2.httpClient},22504:function(e){e.exports=window.elementorV2.editor},24413:function(e){e.exports=window.elementorV2.icons},27723:function(e){e.exports=window.wp.i18n},27987:function(e){e.exports=window.elementorV2.menus},33176:function(e){e.exports=window.elementorV2.events},40884:function(e,t,n){var o,r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,__copyProps=(e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of c(t))s.call(e,r)||r===n||i(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e},__toESM=(e,t,n)=>(n=null!=e?r(l(e)):{},__copyProps(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),u={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(u,{documentOptionsMenu:()=>U,init:()=>init19,injectIntoPageIndication:()=>T,injectIntoPrimaryAction:()=>S,injectIntoResponsive:()=>L,integrationsMenu:()=>j,mainMenu:()=>R,toolsMenu:()=>O,utilitiesMenu:()=>V}),e.exports=(o=u,__copyProps(i({},"__esModule",{value:!0}),o));var p=n(87627),m=n(27987),d=__toESM(n(97557)),g=__toESM(n(97557)),v=n(97557),_=(0,v.createContext)({type:"toolbar"});function MenuContextProvider({type:e,popupState:t,children:n}){return g.createElement(_.Provider,{value:{type:e,popupState:t}},n)}function useMenuContext(){return(0,v.useContext)(_)}var f=__toESM(n(97557)),y=n(24413),w=n(79513),b=(0,w.withDirection)(y.ArrowUpRightIcon),E=(0,w.withDirection)(y.ChevronRightIcon);function PopoverMenuItem({text:e,icon:t,onClick:n,href:o,target:r,disabled:i,isGroupParent:a,showExternalLinkIcon:c,...l}){const s=o&&"_blank"===r&&c;return f.createElement(w.MenuItem,{...l,disabled:i,onClick:n,component:o?"a":"div",href:o,target:r,sx:{"&:hover":{color:"text.primary"}}},f.createElement(w.ListItemIcon,null,t),f.createElement(w.ListItemText,{primary:e}),s&&f.createElement(b,null),a&&f.createElement(E,null))}var h=__toESM(n(97557)),C=n(79513);function ToolbarMenuItem({title:e,...t}){return h.createElement(Tooltip,{title:e},h.createElement(C.Box,{component:"span","aria-label":void 0},h.createElement(C.IconButton,{...t,"aria-label":e,size:"medium",sx:{"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"},"&:hover":{color:"text.primary"}}})))}function Tooltip(e){return h.createElement(C.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2}}},...e})}function Action({icon:e,title:t,visible:n=!0,...o}){const{type:r}=useMenuContext();return n?"toolbar"===r?d.createElement(ToolbarMenuItem,{title:t,...o},d.createElement(e,null)):d.createElement(PopoverMenuItem,{...o,text:t,icon:d.createElement(e,null)}):null}var M=__toESM(n(97557));function Link({icon:e,title:t,visible:n=!0,showExternalLinkIcon:o=!1,...r}){const{type:i}=useMenuContext();return n?"toolbar"===i?M.createElement(ToolbarMenuItem,{title:t,...r},M.createElement(e,null)):M.createElement(PopoverMenuItem,{...r,text:t,icon:M.createElement(e,null),showExternalLinkIcon:o}):null}var k=__toESM(n(97557)),P=__toESM(n(97557)),A=n(79513);function ToolbarMenuToggleItem({title:e,onClick:t,...n}){return P.createElement(A.Tooltip,{title:e},P.createElement(A.Box,{component:"span","aria-label":void 0},P.createElement(A.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 ToggleAction({icon:e,title:t,value:n,visible:o=!0,...r}){const{type:i}=useMenuContext();return o?"toolbar"===i?k.createElement(ToolbarMenuToggleItem,{value:n||t,title:t,...r},k.createElement(e,null)):k.createElement(PopoverMenuItem,{...r,text:t,icon:k.createElement(e,null)}):null}var{inject:T,Slot:I}=(0,p.createLocation)(),{inject:L,Slot:x}=(0,p.createLocation)(),{inject:S,Slot:B}=(0,p.createLocation)(),D={Action:Action,ToggleAction:ToggleAction,Link:Link},R=(0,m.createMenu)({groups:["help","exits"],components:D}),O=(0,m.createMenu)({components:D}),V=(0,m.createMenu)({components:D}),j=(0,m.createMenu)({components:D}),U=(0,n(27987).createMenu)({groups:["save"],components:{Action:Action,ToggleAction:ToggleAction,Link:Link}}),F=n(22504),z=__toESM(n(97557)),H=n(46280),G=n(79513),W=__toESM(n(97557)),N=n(79513),q=__toESM(n(97557)),$=n(79513);function PopoverMenu({children:e,popupState:t,...n}){return q.createElement(MenuContextProvider,{type:"popover",popupState:t},q.createElement($.Menu,{PaperProps:{sx:{mt:1.5}},...n,MenuListProps:{component:"div",dense:!0}},e))}var Z=__toESM(n(97557)),K=n(97557),Q=n(79513),Y=n(27723),X=(0,Q.styled)(Q.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,Q.styled)(e=>Z.createElement(Q.SvgIcon,{viewBox:"0 0 32 32",...e},Z.createElement("g",null,Z.createElement("circle",{cx:"16",cy:"16",r:"16"}),Z.createElement("path",{d:"M11.7 9H9V22.3H11.7V9Z"}),Z.createElement("path",{d:"M22.4 9H9V11.7H22.4V9Z"}),Z.createElement("path",{d:"M22.4 14.4004H9V17.1004H22.4V14.4004Z"}),Z.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 ToolbarLogo(e){const[t,n]=(0,K.useState)(!1),o=e.selected||t;return Z.createElement(X,{...e,value:"selected",size:"large",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},Z.createElement(J,{fontSize:"large",showMenuIcon:o,titleAccess:(0,Y.__)("Elementor Logo","elementor")}))}var{useMenuItems:ee}=R;function MainMenuLocation(){const e=ee(),t=(0,N.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-main-menu"}),n=(0,N.bindTrigger)(t);return W.createElement(N.Stack,{sx:{paddingInlineStart:3},direction:"row",alignItems:"center"},W.createElement(ToolbarLogo,{...n,onClick:e=>{const t=window,o=t?.elementorCommon?.eventsManager?.config;o&&t.elementorCommon.eventsManager.dispatchEvent(o.names.topBar.elementorLogoDropdown,{location:o.locations.topBar,secondaryLocation:o.secondaryLocations.eLogoMenu,trigger:o.triggers.dropdownClick,element:o.elements.buttonIcon}),n.onClick(e)},selected:t.isOpen}),W.createElement(PopoverMenu,{onClick:t.close,...(0,N.bindMenu)(t),marginThreshold:8},e.default.map(({MenuItem:e,id:t})=>W.createElement(e,{key:t})),W.createElement(N.Divider,null),e.help.map(({MenuItem:e,id:t})=>W.createElement(e,{key:t})),e.exits.map(({MenuItem:e,id:t})=>W.createElement(e,{key:t}))))}var te=__toESM(n(97557));function PageIndicationLocation(){return te.createElement(I,null)}var ne=__toESM(n(97557));function PrimaryActionLocation(){return ne.createElement(B,null)}var oe=__toESM(n(97557));function ResponsiveLocation(){return oe.createElement(x,null)}var re=__toESM(n(97557)),ie=__toESM(n(97557)),ae=n(97557),ce=n(46400),le=n(70374),se=n(33176),ue=n(79513),pe=n(27723),me="elementor/editor/toggle-angie-guide",de="elementor/editor/create-widget",ge=(0,pe.__)("Angie","elementor"),ve="https://go.elementor.com/angie-learn-more",_e=((0,pe.__)("Angie lets you generate custom widgets, sections, and code using simple instructions.","elementor"),"ai_widget_cta_viewed"),fe="https://assets.elementor.com/packages/v1/images/angie-top-bar-promotion.svg",ye=(0,pe.__)("Build custom widgets using simple instructions.","elementor"),we=__toESM(n(97557)),be=n(79513),Ee=n(27723);function AngieGuideCard({imageUrl:e,description:t,learnMoreUrl:n,onInstall:o,onClose:r}){return we.createElement(be.ClickAwayListener,{onClickAway:r},we.createElement(be.Stack,{sx:{width:296},"data-testid":"e-angie-guide-card"},we.createElement(be.Stack,{direction:"row",alignItems:"center",gap:1,py:1,px:2},we.createElement(be.Typography,{variant:"subtitle2"},(0,Ee.__)("Meet Angie","elementor")),we.createElement(be.Chip,{label:(0,Ee.__)("New","elementor"),size:"small",color:"info",variant:"standard"}),we.createElement(be.CloseButton,{edge:"end",sx:{ml:"auto"},slotProps:{icon:{fontSize:"small"}},onClick:r})),we.createElement(be.Image,{src:e,alt:(0,Ee.__)("Angie","elementor"),sx:{height:150,width:"100%"}}),we.createElement(be.Stack,{px:2,pt:1.5,pb:1},we.createElement(be.Typography,{variant:"body2",color:"secondary"},t)),we.createElement(be.Stack,{direction:"row",justifyContent:"flex-end",gap:1,pt:1,pb:1.5,px:2},we.createElement(be.Button,{variant:"text",size:"small",color:"secondary",onClick:()=>{window.open(n,"_blank","noopener,noreferrer"),r()}},(0,Ee.__)("Learn More","elementor")),o&&we.createElement(be.Button,{variant:"contained",size:"small",color:"accent",onClick:o},(0,Ee.__)("Try for free","elementor")))))}var he=n(97557);function AngieGuideLocation(){!function useAutoShow(){(0,he.useEffect)(()=>{if(!window.elementor?.config?.angie?.autoShow)return;const e=setTimeout(()=>{window.dispatchEvent(new CustomEvent(me))},0);return()=>clearTimeout(e)},[])}();const[e,t]=(0,ae.useState)(null),{dispatchEvent:n}=(0,se.useMixpanel)(),{isAdmin:o}=(0,ce.useCurrentUserCapabilities)(),r=Boolean(e);(0,ae.useEffect)(()=>{const handleToggle=()=>{t(e=>e?null:document.querySelector(`[aria-label="${ge}"]`))};return window.addEventListener(me,handleToggle),()=>{window.removeEventListener(me,handleToggle)}},[]);const handleClose=()=>t(null);return ie.createElement(le.ThemeProvider,null,ie.createElement(ue.Infotip,{content:ie.createElement(AngieGuideCard,{imageUrl:fe,description:ye,learnMoreUrl:ve,onInstall:o?async()=>{n?.(_e,{entry_point:"top_bar_icon"}),window.dispatchEvent(new CustomEvent(de,{detail:{entry_point:"top_bar_icon"}})),handleClose()}:void 0,onClose:handleClose}),placement:"bottom-start",open:r,disableHoverListener:!0,PopperProps:{anchorEl:e,modifiers:[{name:"offset",options:{offset:[-4,-4]}}]}},ie.createElement("span",null)))}var Ce=__toESM(n(97557)),Me=n(79513);function ToolbarMenu({children:e,...t}){return Ce.createElement(MenuContextProvider,{type:"toolbar"},Ce.createElement(Me.Stack,{sx:{px:1.5},spacing:1.5,direction:"row",alignItems:"center",...t},e))}var ke=__toESM(n(97557)),Pe=n(24413),Ae=n(79513),Te=n(27723);function ToolbarMenuMore({children:e,id:t}){const n=(0,Ae.usePopupState)({variant:"popover",popupId:t});return ke.createElement(ke.Fragment,null,ke.createElement(ToolbarMenuItem,{...(0,Ae.bindTrigger)(n),title:(0,Te.__)("More","elementor")},ke.createElement(Pe.DotsVerticalIcon,null)),ke.createElement(PopoverMenu,{onClick:n.close,...(0,Ae.bindMenu)(n)},e))}var Ie=__toESM(n(97557)),Le=n(24413),xe=n(79513),Se=n(27723),{useMenuItems:Be}=j;function IntegrationsMenuLocation(){const e=Be(),t=(0,xe.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-integrations"});return 0===e.default.length?null:Ie.createElement(Ie.Fragment,null,Ie.createElement(ToolbarMenuItem,{...(0,xe.bindTrigger)(t),title:(0,Se.__)("Integrations","elementor")},Ie.createElement(Le.PlugIcon,null)),Ie.createElement(PopoverMenu,{onClick:t.close,...(0,xe.bindMenu)(t),marginThreshold:8,open:t.isOpen},e.default.map(({MenuItem:e,id:t})=>Ie.createElement(e,{key:t}))))}var De=__toESM(n(97557)),Re=n(97557),Oe=n(70374),Ve=n(5527),je=n(33176),Ue=n(18998),Fe=n(24413),ze=n(79513),He=n(27723),Ge="in_editor_feedback",We="elementor/open-feedback",checkIfUserIsConnected=()=>{const e=window;return e?.elementorCommon?.config.library_connect.is_connected||e?.elementorPro?.config.isActive};function SendFeedbackPopupLocation(){const e=(0,Ve.isExperimentActive)(Ge),t=window,[n,o]=(0,Re.useState)(checkIfUserIsConnected()),r=t?.elementor?.config.user.top_bar.connect_url,[i,a]=(0,Re.useState)(""),[c,l]=(0,Re.useState)(null),[s,u]=(0,Re.useState)(!0),{dispatchEvent:p=(...e)=>{}}=(0,je.useMixpanel)(),m=(0,ze.usePopupState)({variant:"dialog",popupId:We}),[d,g]=(0,Re.useState)(!1);(0,Re.useEffect)(()=>{const handler=()=>{m.toggle(),o(checkIfUserIsConnected()),l(null),p("feedback_modal_opened",{source:"top_bar",context:"v4_beta"})};return window.addEventListener(We,handler),()=>{window.removeEventListener(We,handler)}},[m,p]),(0,Re.useEffect)(()=>{u(i.trim().length<10||!n||d)},[i,c,n,d]);return e?De.createElement(Oe.ThemeProvider,null,De.createElement(ze.Popover,{...(0,ze.bindDialog)(m),onClose:()=>(m.close(),void p("feedback_modal_closed",{feedback_text:i}))},De.createElement(ze.Dialog,{open:m.isOpen},De.createElement(ze.DialogHeader,{style:{width:"100%",minWidth:"35rem"}},De.createElement(ze.DialogTitle,{style:{width:"100%"}},De.createElement(ze.Stack,{display:"flex",direction:"row",alignItems:"center",justifyContent:"space-between",width:"100%"},(0,He.__)("Submit Feedback","elementor"),De.createElement(ze.CloseButton,{onClick:m.close})))),De.createElement(ze.DialogContent,null,De.createElement(ze.Stack,{direction:"column",gap:2},n?De.createElement(De.Fragment,null,De.createElement(ze.TextField,{autofocus:!0,placeholder:(0,He.__)("E.g. Can you add ABC features? I want to do ABC and it’s important because …","elementor"),fullwith:!0,label:(0,He.__)("Your Feedback","elementor"),multiline:!0,id:"elementor-feedback-usercontent",rows:6,cols:80,disabled:d||c?.success,onChange:e=>a(e.target.value),value:i}),De.createElement(ze.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2},c&&De.createElement(De.Fragment,null,c.success?De.createElement(Fe.CheckIcon,{color:"success"}):De.createElement(Fe.AlertCircleIcon,{color:"error"}),c.message),c?.success?De.createElement(ze.Button,{variant:"text",onClick:()=>(a(""),void l(null))},(0,He.__)("Submit Another Feedback","elementor")):De.createElement(ze.Button,{disabled:s,onClick:()=>{g(!0),(0,Ue.httpService)().post("elementor/v1/feedback/submit",{description:i.trim()}).then(e=>{l({message:e.data.message,success:e.data.success}),(!e.data.success&&"401"===e.data.code.toString()||"403"===e.data.code.toString())&&o(!1),p(e.data.success?"feedback_submitted":"feedback_error",{feedback_length:i.length,error_type:e.data.success?void 0:"server",error_message:e.data.success?void 0:e.data.message})}).finally(()=>g(!1))},variant:"contained",color:"primary",size:"small"},(0,He.__)("Submit","elementor")))):De.createElement(De.Fragment,null,De.createElement(ze.Button,{variant:"contained",color:"primary",size:"large",href:r,target:"_blank",rel:"noopener",onClick:m.close},(0,He.__)("Connect to Elementor","elementor")))))))):null}var Ne=5,{useMenuItems:qe}=O;function ToolsMenuLocation(){const e=qe(),t=e.default.slice(0,Ne),n=e.default.slice(Ne);return re.createElement(ToolbarMenu,null,t.map(({MenuItem:e,id:t})=>re.createElement(e,{key:t})),re.createElement(AngieGuideLocation,null),re.createElement(SendFeedbackPopupLocation,null),re.createElement(IntegrationsMenuLocation,null),n.length>0&&re.createElement(ToolbarMenuMore,{id:"elementor-editor-app-bar-tools-more"},n.map(({MenuItem:e,id:t})=>re.createElement(e,{key:t}))))}var $e=__toESM(n(97557)),Ze=n(97557),Ke=4,{useMenuItems:Qe}=V;function UtilitiesMenuLocation(){const e=Qe(),t=e.default.length>Ke+1,n=t?e.default.slice(0,Ke):e.default,o=t?e.default.slice(Ke):[];return $e.createElement(ToolbarMenu,null,n.map(({MenuItem:e,id:t})=>$e.createElement(Ze.Fragment,{key:t},$e.createElement(e,null))),o.length>0&&$e.createElement(ToolbarMenuMore,{id:"elementor-editor-app-bar-utilities-more"},o.map(({MenuItem:e,id:t})=>$e.createElement(e,{key:t}))))}function AppBar(){const e=(0,H.__useActiveDocument)();return z.createElement(G.ThemeProvider,{colorScheme:"dark"},z.createElement(G.AppBar,{position:"sticky"},z.createElement(G.Toolbar,{disableGutters:!0,variant:"dense"},z.createElement(G.Box,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",flexGrow:1},z.createElement(G.Grid,{container:!0,flexWrap:"nowrap"},z.createElement(MainMenuLocation,null),e?.permissions?.allowAddingWidgets&&z.createElement(ToolsMenuLocation,null)),z.createElement(G.Grid,{container:!0,justifyContent:"center"},z.createElement(ToolbarMenu,{spacing:1.5},z.createElement(G.Divider,{orientation:"vertical"}),z.createElement(PageIndicationLocation,null),z.createElement(G.Divider,{orientation:"vertical"}),z.createElement(ResponsiveLocation,null),z.createElement(G.Divider,{orientation:"vertical"}))),z.createElement(G.Grid,{container:!0,justifyContent:"flex-end",flexWrap:"nowrap"},z.createElement(UtilitiesMenuLocation,null),z.createElement(PrimaryActionLocation,null))))))}var Ye=n(97557),Xe=n(55534),Je=n(33176),et=n(24413),tt=n(27723);function useActionProps(){const e=!(0,Xe.isAngieAvailable)();return(0,Ye.useEffect)(()=>{e&&(0,Je.trackEvent)({eventName:_e,entry_point:"top_bar_icon",has_angie_installed:!1})},[e]),{title:(0,tt.__)("Angie","elementor"),icon:et.AngieIcon,onClick:()=>{window.dispatchEvent(new CustomEvent(me))},selected:!1,visible:e}}var nt=n(97557),ot=n(24413),rt=n(27723),dispatchConnectClickEvent=e=>{try{const t=window,n=t?.elementorCommon?.eventsManager?.config;n&&t.elementorCommon.eventsManager.dispatchEvent(n.names.topBar[e],{location:n.locations.topBar,secondaryLocation:n.secondaryLocations.eLogoMenu,trigger:n.triggers.dropdownClick,element:n.elements.buttonIcon})}catch(e){console.warn(e)}};function useConnectLinkConfig(){const e=window;let t=!1;const n=e?.elementor?.helpers.hasPro();let o="_blank";n?t=e?.elementorPro?.config.isActive??!1:(t=e?.elementorCommon?.config.library_connect.is_connected??!1,o="_self");const r=(0,nt.useCallback)(t=>{if(t.preventDefault(),e.jQuery&&e.jQuery.fn?.elementorConnect){const t=e?.elementor?.config.user.top_bar.connect_url,n=e.jQuery("");n?.attr("href",t)?.attr("target","_blank")?.attr("rel","opener")?.css("display","none")?.appendTo("body"),n.elementorConnect({success:()=>{dispatchConnectClickEvent("accountConnected"),setTimeout(()=>{e.location.reload()},200)}}),n[0].click(),dispatchConnectClickEvent("connectAccount"),setTimeout(()=>{n.remove()},1e3)}},[e]);return t?{title:(0,rt.__)("My Elementor","elementor"),href:e?.elementor?.config.user.top_bar.my_elementor_url,icon:ot.UserIcon,target:"_blank"}:{title:(0,rt.__)("Connect my account","elementor"),href:e?.elementor?.config.user.top_bar.connect_url,icon:ot.UserIcon,target:o,onClick:r}}var it=n(46280),at=n(5527),ct=n(24413),lt=n(27723);function useActionProps2(){const e=(0,it.__useActiveDocument)();return{icon:ct.EyeIcon,title:(0,lt.__)("Preview Changes","elementor"),onClick:()=>{const t=window,n=t?.elementorCommon?.eventsManager?.config;n&&t.elementorCommon.eventsManager.dispatchEvent(n.names.topBar.previewPage,{location:n.locations.topBar,secondaryLocation:n.secondaryLocations["preview-page"],trigger:n.triggers.click,element:n.elements.buttonIcon}),e&&(0,at.__privateRunCommand)("editor/documents/preview",{id:e.id,force:!0})}}}var st=__toESM(n(97557)),ut=n(46280),pt=n(5527),mt=n(24413),dt=n(79513),gt=n(27723),vt=__toESM(n(97557)),_t=n(79513),{useMenuItems:ft}=U,yt=(0,_t.styled)(PopoverMenu)` & > .MuiPopover-paper > .MuiList-root { & > .MuiDivider-root { display: none; } & > *:not( .MuiDivider-root ):not( :last-of-type ) + .MuiDivider-root { display: block; } } `;function PrimaryActionMenu(e){const{save:t,default:n}=ft();return vt.createElement(yt,{...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&&vt.createElement(_t.Divider,{key:`${t}-divider`}),vt.createElement(e,{key:t})]),t.length>0&&n.length>0&&vt.createElement(_t.Divider,null),n.map(({MenuItem:e,id:t},n)=>[n>0&&vt.createElement(_t.Divider,{key:`${t}-divider`}),vt.createElement(e,{key:t})]))}function PrimaryAction(){const e=(0,ut.__useActiveDocument)(),{save:t}=(0,ut.__useActiveDocumentActions)(),n="edit"===(0,pt.useEditMode)(),o=(0,dt.usePopupState)({variant:"popover",popupId:"document-save-options"});if(!e)return null;const r=!n||!function isPublishEnabled(e){if("kit"===e.type.value)return!1;return e.isDirty||"draft"===e.status.value}(e),i=!n||"kit"===e.type.value,a=e.isSaving&&!r;return st.createElement(st.Fragment,null,st.createElement(dt.ButtonGroup,{size:"large",variant:"contained"},st.createElement(dt.Button,{onClick:()=>{const n=window,o=n?.elementorCommon?.eventsManager?.config;o&&n.elementorCommon.eventsManager.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:r},a?st.createElement(dt.CircularProgress,{color:"inherit",size:"1.5em"}):function getLabel(e){return e.userCan.publish?(0,gt.__)("Publish","elementor"):(0,gt.__)("Submit","elementor")}(e)),st.createElement(dt.Tooltip,{title:(0,gt.__)("Save Options","elementor"),PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1,mr:.25}}}},st.createElement(dt.Box,{component:"span","aria-label":void 0},st.createElement(dt.Button,{size:"small",...(0,dt.bindTrigger)(o),sx:{px:0,height:"100%",borderRadius:0},disabled:i,"aria-label":(0,gt.__)("Save Options","elementor")},st.createElement(mt.ChevronDownIcon,null))))),st.createElement(PrimaryActionMenu,{...(0,dt.bindMenu)(o),onClick:o.close}))}var wt=n(46280),bt=n(33176),Et=n(24413),ht=n(27723);function useDocumentCopyAndShareProps(){const e=(0,wt.__useActiveDocument)(),{copyAndShare:t}=(0,wt.__useActiveDocumentActions)(),{dispatchEvent:n,config:o}=(0,bt.useMixpanel)();return{icon:Et.LinkIcon,title:(0,ht.__)("Copy and Share","elementor"),onClick:()=>{const e=o?.names?.editorOne?.topBarPublishDropdown;e&&n?.(e,{app_type:o?.appTypes?.editor,window_name:o?.appTypes?.editor,interaction_type:o?.triggers?.click?.toLowerCase(),target_type:o?.targetTypes?.dropdownItem,target_name:o?.targetNames?.publishDropdown?.copyAndShare,interaction_result:o?.interactionResults?.actionSelected,target_location:o?.locations?.topBar?.replace(/\s+/g,"_").toLowerCase(),location_l1:o?.secondaryLocations?.publishDropdown?.replace(/\s+/g,"_").toLowerCase(),location_l2:o?.targetTypes?.dropdownItem}),t()},disabled:!e||e.isSaving||e.isSavingDraft||!("publish"===e.status.value),visible:e?.permissions?.showCopyAndShare}}var Ct=n(46280),Mt=n(33176),kt=n(24413),Pt=n(27723);function useDocumentSaveDraftProps(){const e=(0,Ct.__useActiveDocument)(),{saveDraft:t}=(0,Ct.__useActiveDocumentActions)(),{dispatchEvent:n,config:o}=(0,Mt.useMixpanel)();return{icon:kt.FileReportIcon,title:(0,Pt.__)("Save Draft","elementor"),onClick:()=>{const e=o?.names?.editorOne?.topBarPublishDropdown;e&&n?.(e,{app_type:o?.appTypes?.editor,window_name:o?.appTypes?.editor,interaction_type:o?.triggers?.click?.toLowerCase(),target_type:o?.targetTypes?.dropdownItem,target_name:o?.targetNames?.publishDropdown?.saveDraft,interaction_result:o?.interactionResults?.actionSelected,target_location:o?.locations?.topBar?.replace(/\s+/g,"_").toLowerCase(),location_l1:o?.secondaryLocations?.publishDropdown?.replace(/\s+/g,"_").toLowerCase(),location_l2:o?.targetTypes?.dropdownItem}),t()},disabled:!e||e.isSaving||e.isSavingDraft||!e.isDirty}}var At=n(46280),Tt=n(33176),It=n(24413),Lt=n(27723);function useDocumentSaveTemplateProps(){const{saveTemplate:e}=(0,At.__useActiveDocumentActions)(),{dispatchEvent:t,config:n}=(0,Tt.useMixpanel)();return{icon:It.FolderIcon,title:(0,Lt.__)("Save as Template","elementor"),onClick:()=>{const o=n?.names?.editorOne?.topBarPublishDropdown;o&&t?.(o,{app_type:n?.appTypes?.editor,window_name:n?.appTypes?.editor,interaction_type:n?.triggers?.click?.toLowerCase(),target_type:n?.targetTypes?.dropdownItem,target_name:n?.targetNames?.publishDropdown?.saveAsTemplate,interaction_result:n?.interactionResults?.actionSelected,target_location:n?.locations?.topBar?.replace(/\s+/g,"_").toLowerCase(),location_l1:n?.secondaryLocations?.publishDropdown?.replace(/\s+/g,"_").toLowerCase(),location_l2:n?.targetTypes?.dropdownItem}),e()}}}var xt=n(46280),St=n(5527),Bt=n(33176),Dt=n(24413),Rt=n(27723);function useDocumentViewPageProps(){const e=(0,xt.__useActiveDocument)(),{dispatchEvent:t,config:n}=(0,Bt.useMixpanel)();return{icon:Dt.EyeIcon,title:(0,Rt.__)("View Page","elementor"),onClick:()=>{const o=n?.names?.editorOne?.topBarPublishDropdown;o&&t?.(o,{app_type:n?.appTypes?.editor,window_name:n?.appTypes?.editor,interaction_type:n?.triggers?.click?.toLowerCase(),target_type:n?.targetTypes?.dropdownItem,target_name:n?.targetNames?.publishDropdown?.viewPage,interaction_result:n?.interactionResults?.actionSelected,target_location:n?.locations?.topBar?.replace(/\s+/g,"_").toLowerCase(),location_l1:n?.secondaryLocations?.publishDropdown?.replace(/\s+/g,"_").toLowerCase(),location_l2:n?.targetTypes?.dropdownItem}),e?.id&&(0,St.__privateRunCommand)("editor/documents/view",{id:e.id})}}}var Ot=n(46280),Vt=n(5527),jt=n(24413),Ut=n(27723);function useActionProps3(){const e=(0,Ot.__useActiveDocument)(),t=(0,Ot.__useHostDocument)(),{isActive:n,isBlocked:o}=(0,Vt.__privateUseRouteStatus)("panel/page-settings"),r=e&&"kit"!==e.type.value?e:t;return{title:r?(0,Ut.__)("%s Settings","elementor").replace("%s",r.type.label):(0,Ut.__)("Document Settings","elementor"),icon:jt.FileSettingsIcon,onClick:()=>{if(!r)return;const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.documentSettings,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations["document-settings"],trigger:t.triggers.click,element:t.elements.buttonIcon}),(0,Vt.__privateOpenRoute)("panel/page-settings/settings")},selected:n,disabled:o||!r}}var Ft=n(5527),zt=n(24413),Ht=n(27723);function useActionProps4(){const{isActive:e,isBlocked:t}=(0,Ft.__privateUseRouteStatus)("panel/elements");return{title:(0,Ht.__)("Add Element","elementor"),icon:zt.PlusIcon,onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.widgetPanel,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations["widget-panel"],trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,Ft.__privateOpenRoute)("panel/elements/categories")},selected:e,disabled:t}}var Gt=n(5527),Wt=n(27723);function setPanelTitle(e){window.elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.(e)}function setTabTitle(e){const t=document.querySelector('.elementor-component-tab[data-tab="categories"]');t&&(t.textContent=e)}function init6(){!function syncPanelTitle(){const e=(0,Wt.__)("Elements","elementor"),t=(0,Wt.__)("Widgets","elementor");(0,Gt.__privateListenTo)((0,Gt.routeOpenEvent)("panel/elements"),()=>{setPanelTitle(e),setTabTitle(t)}),(0,Gt.__privateListenTo)((0,Gt.v1ReadyEvent)(),()=>{(0,Gt.__privateIsRouteActive)("panel/elements")&&(setPanelTitle(e),setTabTitle(t))})}(),O.registerToggleAction({id:"open-elements-panel",priority:1,useProps:useActionProps4})}var Nt=n(5527),qt=n(24413),$t=n(27723);var Zt=n(5527),Kt=n(24413),Qt=n(27723);function useActionProps5(){return{title:(0,Qt.__)("Finder","elementor"),icon:Kt.SearchIcon,onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.finder,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.finder,trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,Zt.__privateRunCommand)("finder/toggle")}}}var Yt=n(24413),Xt=n(27723);function useActionProps6(){return{title:(0,Xt.__)("Help Center","elementor"),href:"https://go.elementor.com/editor-top-bar-learn/",icon:Yt.HelpIcon,target:"_blank",onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.help,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.help,trigger:t.triggers.click,element:t.elements.buttonIcon})}}}var Jt=n(5527),en=n(24413),tn=n(27723);function useActionProps7(){const{isActive:e,isBlocked:t}=(0,Jt.__privateUseRouteStatus)("panel/history");return{title:(0,tn.__)("History","elementor"),icon:en.HistoryIcon,onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.history,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,Jt.__privateOpenRoute)("panel/history/actions")},selected:e,disabled:t}}var nn=n(5527),on=n(24413),rn=n(27723);function useActionProps8(){return{icon:on.KeyboardIcon,title:(0,rn.__)("Keyboard Shortcuts","elementor"),onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.keyboardShortcuts,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,nn.__privateRunCommand)("shortcuts/open")}}}var an=__toESM(n(97557)),cn=n(74518),ln=n(24413),sn=n(79513),un=n(27723);function BreakpointsSwitcher(){const e=(0,cn.useBreakpoints)(),t=(0,cn.useActiveBreakpoint)(),n=(0,cn.useActivateBreakpoint)();if(!e.length||!t)return null;return an.createElement(sn.Tabs,{textColor:"inherit",indicatorColor:"secondary",value:t,onChange:(e,t)=>{const o=window,r=o?.elementorCommon?.eventsManager?.config;r&&o.elementorCommon.eventsManager.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,un.__)("Switch Device","elementor"),sx:{"& .MuiTabs-indicator":{backgroundColor:"text.primary"}}},e.map(({id:e,label:t,type:n,width:o})=>{const r=pn[e],i=mn[n||"default"].replace("%s",t).replace("%d",o?.toString()||"");return an.createElement(sn.Tab,{value:e,key:e,"aria-label":i,icon:an.createElement(Tooltip4,{title:i},an.createElement(r,null)),sx:{minWidth:"auto"},"data-testid":`switch-device-to-${e}`})}))}function Tooltip4(e){return an.createElement(sn.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2.5}}},...e})}var pn={widescreen:ln.WidescreenIcon,desktop:ln.DesktopIcon,laptop:ln.LaptopIcon,tablet_extra:ln.TabletLandscapeIcon,tablet:ln.TabletPortraitIcon,mobile_extra:ln.MobileLandscapeIcon,mobile:ln.MobilePortraitIcon},mn={default:"%s","min-width":(0,un.__)("%s (%dpx and up)","elementor"),"max-width":(0,un.__)("%s (up to %dpx)","elementor")};var dn=n(22504),gn=__toESM(n(97557)),vn=__toESM(n(97557)),_n=n(5527),fn=n(79513);function Portal(e){const t=(0,_n.__privateUseListenTo)([(0,_n.routeOpenEvent)("panel/global"),(0,_n.routeCloseEvent)("panel/global")],getContainerRef);return t.current?vn.createElement(fn.Portal,{container:t.current,...e}):null}function getContainerRef(){return(0,_n.__privateIsRouteActive)("panel/global")?{current:document.querySelector("#elementor-panel-inner")}:{current:null}}var yn=__toESM(n(97557)),wn=n(46280),bn=n(79513),En=n(27723);function PrimaryAction2(){const e=(0,wn.__useActiveDocument)(),{save:t}=(0,wn.__useActiveDocumentActions)();return yn.createElement(bn.Paper,{sx:{px:5,py:4,borderTop:1,borderColor:"divider"}},yn.createElement(bn.Button,{variant:"contained",disabled:!e||!e.isDirty,size:"medium",sx:{width:"100%"},onClick:()=>e&&!e.isSaving?t():null},e?.isSaving?yn.createElement(bn.CircularProgress,null):(0,En.__)("Save Changes","elementor")))}function PortalledPrimaryAction(){return gn.createElement(Portal,null,gn.createElement(PrimaryAction2,null))}var hn=n(5527),Cn=n(24413),Mn=n(27723);function useActionProps9(){const{isActive:e,isBlocked:t}=(0,hn.__privateUseRouteStatus)("panel/global",{blockOnKitRoutes:!1});return{title:(0,Mn.__)("Site Settings","elementor"),icon:Cn.SettingsIcon,onClick:()=>{const t=window,n=t?.elementorCommon?.eventsManager?.config;n&&t.elementorCommon.eventsManager.dispatchEvent(n.names.topBar.siteSettings,{location:n.locations.topBar,secondaryLocation:n.secondaryLocations.siteSettings,trigger:n.triggers.toggleClick,element:n.elements.buttonIcon}),e?(0,hn.__privateRunCommand)("panel/global/close"):(0,hn.__privateRunCommand)("panel/global/open")},selected:e,disabled:t}}var kn=n(5527),Pn=n(24413),An=n(27723);function useActionProps10(){const{isActive:e,isBlocked:t}=(0,kn.__privateUseRouteStatus)("navigator");return{title:(0,An.__)("Structure","elementor"),icon:Pn.StructureIcon,onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.structure,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.structure,trigger:t.triggers.toggleClick,element:t.elements.buttonIcon}),(0,kn.__privateRunCommand)("navigator/toggle")},selected:e,disabled:t}}var Tn=n(5527),In=n(24413),Ln=n(27723);function useActionProps11(){return{icon:In.ThemeBuilderIcon,title:(0,Ln.__)("Theme Builder","elementor"),onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.themeBuilder,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,Tn.__privateRunCommand)("app/open")}}}var xn=n(5527),Sn=n(24413),Bn=n(27723);function useActionProps12(){const{isActive:e,isBlocked:t}=(0,xn.__privateUseRouteStatus)("panel/editor-preferences");return{icon:Sn.ToggleRightIcon,title:(0,Bn.__)("User Preferences","elementor"),onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.userPreferences,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link}),(0,xn.__privateOpenRoute)("panel/editor-preferences")},selected:e,disabled:t}}var Dn=n(46280),Rn=n(24413),On=n(27723);function init18(){!function init(){O.registerToggleAction({id:"toggle-angie",priority:2,useProps:useActionProps})}(),function init3(){V.registerAction({id:"document-preview-button",priority:30,useProps:useActionProps2})}(),function init4(){S({id:"document-primary-action",component:PrimaryAction}),U.registerAction({group:"save",id:"document-save-draft",priority:10,useProps:useDocumentSaveDraftProps}),U.registerAction({group:"save",id:"document-save-as-template",priority:20,useProps:useDocumentSaveTemplateProps}),U.registerAction({id:"document-copy-and-share",priority:10,useProps:useDocumentCopyAndShareProps}),U.registerAction({id:"document-view-page",priority:50,useProps:useDocumentViewPageProps})}(),function init5(){O.registerToggleAction({id:"document-settings-button",priority:3,useProps:useActionProps3})}(),init6(),function init8(){V.registerAction({id:"toggle-finder",priority:15,useProps:useActionProps5})}(),function init9(){R.registerLink({id:"open-help-center",group:"help",priority:10,useProps:useActionProps6})}(),function init10(){O.registerToggleAction({id:"open-history",priority:15,useProps:useActionProps7})}(),function init11(){R.registerAction({id:"open-keyboard-shortcuts",group:"default",priority:40,useProps:useActionProps8})}(),function init12(){L({id:"responsive-breakpoints-switcher",component:BreakpointsSwitcher,options:{priority:20}})}(),function init13(){(0,dn.injectIntoTop)({id:"site-settings-primary-action-portal",component:PortalledPrimaryAction}),R.registerToggleAction({id:"toggle-site-settings",group:"default",priority:1,useProps:useActionProps9})}(),function init7(){(0,Nt.isExperimentActive)(Ge)&&R.registerAction({id:"open-send-feedback",group:"help",priority:20,useProps:()=>({icon:qt.MessageLinesIcon,title:(0,$t.__)("Send Feedback","elementor"),onClick:()=>{dispatchEvent(new CustomEvent(We))}})})}(),function init14(){V.registerToggleAction({id:"toggle-structure-view",priority:25,useProps:useActionProps10})}(),function init15(){R.registerAction({id:"open-theme-builder",group:"default",priority:10,useProps:useActionProps11})}(),function init16(){R.registerToggleAction({id:"open-user-preferences",group:"default",priority:30,useProps:useActionProps12})}(),function init17(){R.registerLink({id:"exit-to-wordpress",group:"exits",priority:20,useProps:()=>{const e=(0,Dn.__useActiveDocument)();return{title:(0,On.__)("Exit to WordPress","elementor"),href:e?.links?.platformEdit,icon:Rn.WordpressIcon,onClick:()=>{const e=window,t=e?.elementorCommon?.eventsManager?.config;t&&e.elementorCommon.eventsManager.dispatchEvent(t.names.topBar.exitToWordpress,{location:t.locations.topBar,secondaryLocation:t.secondaryLocations.elementorLogo,trigger:t.triggers.click,element:t.elements.link})}}}})}(),function init2(){R.registerLink({id:"app-bar-connect",group:"exits",priority:10,useProps:useConnectLinkConfig})}()}var Vn=n(5527);function init19(){!function redirectOldMenus(){(0,Vn.__privateListenTo)((0,Vn.routeOpenEvent)("panel/menu"),()=>{(0,Vn.__privateOpenRoute)("panel/elements/categories")})}(),init18(),(0,F.injectIntoTop)({id:"app-bar",component:AppBar})}},46280:function(e){e.exports=window.elementorV2.editorDocuments},46400:function(e){e.exports=window.elementorV2.editorCurrentUser},55534:function(e){e.exports=window.elementorV2.editorMcp},70374:function(e){e.exports=window.elementorV2.editorUi},74518:function(e){e.exports=window.elementorV2.editorResponsive},79513:function(e){e.exports=window.elementorV2.ui},87627:function(e){e.exports=window.elementorV2.locations},97557:function(e){e.exports=window.React}},t={};var n=function __webpack_require__(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,__webpack_require__),r.exports}(40884);(window.elementorV2=window.elementorV2||{}).editorAppBar=n}(),window.elementorV2.editorAppBar?.init?.();