Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/plugins/elementor/assets/js/packages/editor-app-bar/editor-app-bar.js
Arrière
/*! 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/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 j},injectIntoPageIndication:function(){return S},injectIntoPrimaryAction:function(){return L},injectIntoResponsive:function(){return C},integrationsMenu:function(){return V},mainMenu:function(){return D},toolsMenu:function(){return R},utilitiesMenu:function(){return O}});var e=n("react"),t=n("@elementor/locations"),r=n("@elementor/ui"),i=n("@elementor/icons"),l=n("@wordpress/i18n"),a=n("@elementor/editor-documents"),c=n("@elementor/editor"),s=n("@elementor/editor-v1-adapters"),u=n("@elementor/editor-responsive"),p=(0,e.createContext)({type:"toolbar"});function m({type:t,popupState:n,children:o}){return e.createElement(p.Provider,{value:{type:t,popupState:n}},o)}function d(){return(0,e.useContext)(p)}function g({title:t,...n}){return e.createElement(v,{title:t},e.createElement(r.Box,{component:"span","aria-label":void 0},e.createElement(r.IconButton,{...n,"aria-label":t,size:"medium",sx:{"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"},"&:hover":{color:"text.primary"}}})))}function v(t){return e.createElement(r.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2}}},...t})}var E=(0,r.withDirection)(i.ArrowUpRightIcon),f=(0,r.withDirection)(i.ChevronRightIcon);function _({text:t,icon:n,onClick:o,href:i,target:l,disabled:a,isGroupParent:c,...s}){const u=i&&"_blank"===l;return e.createElement(r.MenuItem,{...s,disabled:a,onClick:o,component:i?"a":"div",href:i,target:l,sx:{"&:hover":{color:"text.primary"}}},e.createElement(r.ListItemIcon,null,n),e.createElement(r.ListItemText,{primary:t}),u&&e.createElement(E,null),c&&e.createElement(f,null))}function y({icon:t,title:n,visible:o=!0,...r}){const{type:i}=d();return o?"toolbar"===i?e.createElement(g,{title:n,...r},e.createElement(t,null)):e.createElement(_,{...r,text:n,icon:e.createElement(t,null)}):null}function b({title:t,onClick:n,...o}){return e.createElement(r.Tooltip,{title:t},e.createElement(r.Box,{component:"span","aria-label":void 0},e.createElement(r.ToggleButton,{...o,onChange:n,"aria-label":t,size:"small",sx:{border:0,"&.Mui-disabled":{border:0},"& svg":{fontSize:"1.25rem",height:"1em",width:"1em"}}})))}function h({icon:t,title:n,value:o,visible:r=!0,...i}){const{type:l}=d();return r?"toolbar"===l?e.createElement(b,{value:o||n,title:n,...i},e.createElement(t,null)):e.createElement(_,{...i,text:n,icon:e.createElement(t,null)}):null}function w({icon:t,title:n,visible:o=!0,...r}){const{type:i}=d();return o?"toolbar"===i?e.createElement(g,{title:n,...r},e.createElement(t,null)):e.createElement(_,{...r,text:n,icon:e.createElement(t,null)}):null}function k({children:t,popupState:n,...o}){return e.createElement(m,{type:"popover",popupState:n},e.createElement(r.Menu,{PaperProps:{sx:{mt:1.5}},...o,MenuListProps:{component:"div",dense:!0}},t))}function I({children:t,...n}){const o="rtl"===(0,r.useTheme)().direction;return e.createElement(k,{sx:{pointerEvents:"none"},PaperProps:{sx:{...o?{marginInlineEnd:-1}:{marginInlineStart:1},pointerEvents:"auto"}},anchorOrigin:{vertical:"center",horizontal:o?"left":"right"},transformOrigin:{vertical:"center",horizontal:o?"right":"left"},...n},t)}function M({icon:t,title:n,visible:o=!0,items:i,...l}){const a=(0,e.useId)(),{type:c,popupState:s}=d(),u=(0,r.usePopupState)({parentPopupState:s,variant:"popover",popupId:"elementor-v2-app-bar-actions-group-"+a});return o?"toolbar"===c?e.createElement(e.Fragment,null,e.createElement(g,{...(0,r.bindTrigger)(u),title:n,...l},e.createElement(t,null)),e.createElement(k,{onClick:u.close,...(0,r.bindMenu)(u),marginThreshold:8,open:u.isOpen,popupState:u},i.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))))):e.createElement(e.Fragment,null,e.createElement(_,{...l,...(0,r.bindHover)(u),...(0,r.bindFocus)(u),text:n,icon:e.createElement(t,null),isGroupParent:!0}),e.createElement(I,{...l,...(0,r.bindPopover)(u),popupState:u},i.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))))):null}function x(n=[]){const o=[...n,"default"],r=o.reduce(((e,n)=>({...e,[n]:(0,t.createLocation)()})),{}),[i,l,a]=[y,h,w].map((e=>P({locations:r,menuGroups:o,component:e}))),c=function(t){return()=>(0,e.useMemo)((()=>Object.entries(t).reduce(((e,[t,n])=>({...e,[t]:n.getInjections().map((e=>({id:e.id,MenuItem:e.component})))})),{})),[])}(r),s=function({locations:e,menuGroups:t}){return n=>{const o=x();return P({locations:e,menuGroups:t,component:M,useMenuItems:()=>o.useMenuItems().default})(n),o}}({locations:r,menuGroups:o});return{registerAction:i,registerToggleAction:l,registerLink:a,registerSubMenu:s,useMenuItems:c}}function P({locations:t,menuGroups:n,component:o,useMenuItems:r}){return({group:i="default",id:l,overwrite:a,priority:c,...s})=>{if(!n.includes(i))return;const u="props"in s?()=>s.props:s.useProps,p=o;t[i].inject({id:l,component:t=>{const n=u(),o=r?.();return o?.length?e.createElement(p,{...t,...n,items:o}):e.createElement(p,{...t,...n})},options:{priority:c,overwrite:a}})}}var{inject:S,Slot:B}=(0,t.createLocation)(),{inject:C,Slot:T}=(0,t.createLocation)(),{inject:L,Slot:A}=(0,t.createLocation)(),D=x(["exits"]),R=x(),O=x(),V=x(),j=x(["save"]),z=(0,r.styled)(r.ToggleButton)((({theme:e})=>({padding:0,border:0,color:e.palette.text.primary,"&.MuiToggleButton-root:hover":{backgroundColor:"initial"},"&.MuiToggleButton-root.Mui-selected":{backgroundColor:"initial"}}))),H=(0,r.styled)((t=>e.createElement(r.SvgIcon,{viewBox:"0 0 32 32",...t},e.createElement("g",null,e.createElement("circle",{cx:"16",cy:"16",r:"16"}),e.createElement("path",{d:"M11.7 9H9V22.3H11.7V9Z"}),e.createElement("path",{d:"M22.4 9H9V11.7H22.4V9Z"}),e.createElement("path",{d:"M22.4 14.4004H9V17.1004H22.4V14.4004Z"}),e.createElement("path",{d:"M22.4 19.6992H9V22.3992H22.4V19.6992Z"})))),{shouldForwardProp:e=>"showMenuIcon"!==e})((({theme:e,showMenuIcon:t})=>({"& path":{fill:e.palette.background.default,transition:"all 0.2s linear",transformOrigin:"bottom left","&:first-of-type":{transitionDelay:!t&&"0.2s",transform:t&&"translateY(-9px) scaleY(0)"},"&:not(:first-of-type)":{transform:!t&&`translateX(${"rtl"===e.direction?"4":"9"}px) scaleX(0.6)`},"&:nth-of-type(2)":{transitionDelay:t?"0":"0.2s"},"&:nth-of-type(3)":{transitionDelay:"0.1s"},"&:nth-of-type(4)":{transitionDelay:t?"0.2s":"0"}}})));function G(t){const[n,o]=(0,e.useState)(!1),r=t.selected||n;return e.createElement(z,{...t,value:"selected",size:"large",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)},e.createElement(H,{fontSize:"large",showMenuIcon:r,titleAccess:(0,l.__)("Elementor Logo","elementor")}))}var{useMenuItems:F}=D;function U(){const t=F(),n=(0,r.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-main-menu"}),o=(0,r.bindTrigger)(n);return e.createElement(r.Stack,{sx:{paddingInlineStart:3},direction:"row",alignItems:"center"},e.createElement(G,{...o,onClick:e=>{const t=window,n=t?.elementor?.editorEvents?.config;n&&t.elementor.editorEvents.dispatchEvent(n.names.topBar.elementorLogoDropdown,{location:n.locations.topBar,secondaryLocation:n.secondaryLocations.elementorLogo,trigger:n.triggers.dropdownClick,element:n.elements.buttonIcon}),o.onClick(e)},selected:n.isOpen}),e.createElement(k,{onClick:n.close,...(0,r.bindMenu)(n),marginThreshold:8},t.default.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))),t.exits.length>0&&e.createElement(r.Divider,null),t.exits.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}function W({children:t,...n}){return e.createElement(m,{type:"toolbar"},e.createElement(r.Stack,{sx:{px:1.5},spacing:1.5,direction:"row",alignItems:"center",...n},t))}function K({children:t,id:n}){const o=(0,r.usePopupState)({variant:"popover",popupId:n});return e.createElement(e.Fragment,null,e.createElement(g,{...(0,r.bindTrigger)(o),title:(0,l.__)("More","elementor")},e.createElement(i.DotsVerticalIcon,null)),e.createElement(k,{onClick:o.close,...(0,r.bindMenu)(o)},t))}var{useMenuItems:Z}=V;function $(){const t=Z(),n=(0,r.usePopupState)({variant:"popover",popupId:"elementor-v2-app-bar-integrations"});return 0===t.default.length?null:e.createElement(e.Fragment,null,e.createElement(g,{...(0,r.bindTrigger)(n),title:(0,l.__)("Integrations","elementor")},e.createElement(i.PlugIcon,null)),e.createElement(k,{onClick:n.close,...(0,r.bindMenu)(n),marginThreshold:8,open:n.isOpen},t.default.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}var q=5,{useMenuItems:X}=R;function Y(){const t=X(),n=t.default.slice(0,q),o=t.default.slice(q);return e.createElement(W,null,n.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n}))),e.createElement($,null),o.length>0&&e.createElement(K,{id:"elementor-editor-app-bar-tools-more"},o.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}var J=4,{useMenuItems:N}=O;function Q(){const t=N(),n=t.default.slice(0,J),o=t.default.slice(J);return e.createElement(W,null,n.map((({MenuItem:t,id:n},o)=>e.createElement(e.Fragment,{key:n},0===o&&e.createElement(r.Divider,{orientation:"vertical"}),e.createElement(t,null)))),o.length>0&&e.createElement(K,{id:"elementor-editor-app-bar-utilities-more"},o.map((({MenuItem:t,id:n})=>e.createElement(t,{key:n})))))}function ee(){return e.createElement(A,null)}function te(){return e.createElement(B,null)}function ne(){return e.createElement(T,null)}function oe(){const t=(0,a.__useActiveDocument)(),n=(0,a.__useHostDocument)(),o=t&&"kit"!==t.type.value?t:n,{isActive:c,isBlocked:u}=(0,s.__privateUseRouteStatus)("panel/page-settings");if(!o)return null;const p=(0,l.__)("%s Settings","elementor").replace("%s",o.type.label);return e.createElement(re,{title:p},e.createElement(r.Box,{component:"span","aria-label":void 0},e.createElement(r.ToggleButton,{value:"document-settings",selected:c,disabled:u,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,s.__privateOpenRoute)("panel/page-settings/settings")},"aria-label":p,size:"small",sx:{border:0,"&.Mui-disabled":{border:0}}},e.createElement(i.SettingsIcon,{fontSize:"small"}))))}function re(t){return e.createElement(r.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1.7}}},...t})}function ie(){const e=(0,a.__useActiveDocument)();return{icon:i.EyeIcon,title:(0,l.__)("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,s.__privateRunCommand)("editor/documents/preview",{id:e.id,force:!0})}}}function le(){const e=(0,a.__useActiveDocument)(),{saveDraft:t}=(0,a.__useActiveDocumentActions)();return{icon:i.FileReportIcon,title:(0,l.__)("Save Draft","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!e.isDirty}}function ae(){const{saveTemplate:e}=(0,a.__useActiveDocumentActions)();return{icon:i.FolderIcon,title:(0,l.__)("Save as Template","elementor"),onClick:e}}function ce(){const e=(0,a.__useActiveDocument)();return{icon:i.EyeIcon,title:(0,l.__)("View Page","elementor"),onClick:()=>e?.id&&(0,s.__privateRunCommand)("editor/documents/view",{id:e.id})}}var{useMenuItems:se}=j,ue=(0,r.styled)(k)` & > .MuiPopover-paper > .MuiList-root { & > .MuiDivider-root { display: none; } & > *:not( .MuiDivider-root ):not( :last-of-type ) + .MuiDivider-root { display: block; } } `;function pe(t){const{save:n,default:o}=se();return e.createElement(ue,{...t,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:4,PaperProps:{sx:{mt:.5}}},n.map((({MenuItem:t,id:n},o)=>[o>0&&e.createElement(r.Divider,{key:`${n}-divider`}),e.createElement(t,{key:n})])),n.length>0&&o.length>0&&e.createElement(r.Divider,null),o.map((({MenuItem:t,id:n},o)=>[o>0&&e.createElement(r.Divider,{key:`${n}-divider`}),e.createElement(t,{key:n})])))}function me(){const t=(0,a.__useActiveDocument)(),{save:n}=(0,a.__useActiveDocumentActions)(),o=(0,s.__privateUseIsPreviewMode)(),c=(0,r.usePopupState)({variant:"popover",popupId:"document-save-options"});if(!t)return null;const u=o||!function(e){return"kit"!==e.type.value&&(e.isDirty||"draft"===e.status.value)}(t),p=o||"kit"===t.type.value,m=t.isSaving&&!u;return e.createElement(e.Fragment,null,e.createElement(r.ButtonGroup,{size:"large",variant:"contained"},e.createElement(r.Button,{onClick:()=>{const e=window,o=e?.elementor?.editorEvents?.config;o&&e.elementor.editorEvents.dispatchEvent(o.names.topBar.publishButton,{location:o.locations.topBar,secondaryLocation:o.secondaryLocations["publish-button"],trigger:o.triggers.click,element:o.elements.mainCta}),t.isSaving||n()},sx:{height:"100%",borderRadius:0,maxWidth:"158px","&.MuiButtonBase-root.MuiButtonGroup-grouped":{minWidth:"110px"}},disabled:u},m?e.createElement(r.CircularProgress,{color:"inherit",size:"1.5em"}):function(e){return e.userCan.publish?(0,l.__)("Publish","elementor"):(0,l.__)("Submit","elementor")}(t)),e.createElement(r.Tooltip,{title:(0,l.__)("Save Options","elementor"),PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1,mr:.25}}}},e.createElement(r.Box,{component:"span","aria-label":void 0},e.createElement(r.Button,{size:"small",...(0,r.bindTrigger)(c),sx:{px:0,height:"100%",borderRadius:0},disabled:p,"aria-label":(0,l.__)("Save Options","elementor")},e.createElement(i.ChevronDownIcon,null))))),e.createElement(pe,{...(0,r.bindMenu)(c),onClick:c.close}))}function de(){const e=(0,a.__useActiveDocument)(),{copyAndShare:t}=(0,a.__useActiveDocumentActions)();return{icon:i.LinkIcon,title:(0,l.__)("Copy and Share","elementor"),onClick:t,disabled:!e||e.isSaving||e.isSavingDraft||!("publish"===e.status.value),visible:e?.permissions?.showCopyAndShare}}function ge(e){window.elementor?.getPanelView?.()?.getHeaderView?.()?.setTitle?.(e)}function ve(e){const t=document.querySelector('.elementor-component-tab[data-tab="categories"]');t&&(t.textContent=e)}function Ee(){const{isActive:e,isBlocked:t}=(0,s.__privateUseRouteStatus)("panel/elements");return{title:(0,l.__)("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,s.__privateOpenRoute)("panel/elements/categories")},selected:e,disabled:t}}function fe(){const{isBlocked:e}=(0,s.__privateUseRouteStatus)("finder",{blockOnKitRoutes:!1,blockOnPreviewMode:!1});return{title:(0,l.__)("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,s.__privateRunCommand)("finder/toggle")},disabled:e}}function _e(){const{isActive:e,isBlocked:t}=(0,s.__privateUseRouteStatus)("panel/history");return{title:(0,l.__)("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,s.__privateOpenRoute)("panel/history/actions")},selected:e,disabled:t}}function ye(){return{icon:i.KeyboardIcon,title:(0,l.__)("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,s.__privateRunCommand)("shortcuts/open")}}}function be(){const t=(0,u.useBreakpoints)(),n=(0,u.useActiveBreakpoint)(),o=(0,u.useActivateBreakpoint)();return t.length&&n?e.createElement(r.Tabs,{textColor:"inherit",indicatorColor:"secondary",value:n,onChange:(e,t)=>{const n=window,r=n?.elementor?.editorEvents?.config;r&&n.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}),o(t)},"aria-label":(0,l.__)("Switch Device","elementor"),sx:{"& .MuiTabs-indicator":{backgroundColor:"text.primary"}}},t.map((({id:t,label:n,type:o,width:i})=>{const l=we[t],a=ke[o||"default"].replace("%s",n).replace("%d",i?.toString()||"");return e.createElement(r.Tab,{value:t,key:t,"aria-label":a,icon:e.createElement(he,{title:a},e.createElement(l,null)),sx:{minWidth:"auto"},"data-testid":`switch-device-to-${t}`})}))):null}function he(t){return e.createElement(r.Tooltip,{PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:2.5}}},...t})}var we={widescreen:i.WidescreenIcon,desktop:i.DesktopIcon,laptop:i.LaptopIcon,tablet_extra:i.TabletLandscapeIcon,tablet:i.TabletPortraitIcon,mobile_extra:i.MobileLandscapeIcon,mobile:i.MobilePortraitIcon},ke={default:"%s","min-width":(0,l.__)("%s (%dpx and up)","elementor"),"max-width":(0,l.__)("%s (up to %dpx)","elementor")};function Ie(t){const n=(0,s.__privateUseListenTo)([(0,s.routeOpenEvent)("panel/global"),(0,s.routeCloseEvent)("panel/global")],Me);return n.current?e.createElement(r.Portal,{container:n.current,...t}):null}function Me(){return(0,s.__privateIsRouteActive)("panel/global")?{current:document.querySelector("#elementor-panel-inner")}:{current:null}}function xe(){const t=(0,a.__useActiveDocument)(),{save:n}=(0,a.__useActiveDocumentActions)();return e.createElement(r.Paper,{sx:{px:5,py:4,borderTop:1,borderColor:"divider"}},e.createElement(r.Button,{variant:"contained",disabled:!t||!t.isDirty,size:"medium",sx:{width:"100%"},onClick:()=>t&&!t.isSaving?n():null},t?.isSaving?e.createElement(r.CircularProgress,null):(0,l.__)("Save Changes","elementor")))}function Pe(){return e.createElement(Ie,null,e.createElement(xe,null))}function Se(){const{isActive:e,isBlocked:t}=(0,s.__privateUseRouteStatus)("panel/global",{blockOnKitRoutes:!1});return{title:(0,l.__)("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,s.__privateRunCommand)("panel/global/close"):(0,s.__privateRunCommand)("panel/global/open")},selected:e,disabled:t}}function Be(){const{isActive:e,isBlocked:t}=(0,s.__privateUseRouteStatus)("navigator");return{title:(0,l.__)("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,s.__privateRunCommand)("navigator/toggle")},selected:e,disabled:t}}function Ce(){return{icon:i.ThemeBuilderIcon,title:(0,l.__)("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,s.__privateRunCommand)("app/open")}}}function Te(){const{isActive:e,isBlocked:t}=(0,s.__privateUseRouteStatus)("panel/editor-preferences");return{icon:i.ToggleRightIcon,title:(0,l.__)("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,s.__privateOpenRoute)("panel/editor-preferences")},selected:e,disabled:t}}(0,s.__privateListenTo)((0,s.routeOpenEvent)("panel/menu"),(()=>{(0,s.__privateOpenRoute)("panel/elements/categories")})),S({id:"document-settings-button",component:oe,options:{priority:20}}),O.registerAction({id:"document-preview-button",priority:30,useProps:ie}),L({id:"document-primary-action",component:me}),j.registerAction({group:"save",id:"document-save-draft",priority:10,useProps:le}),j.registerAction({group:"save",id:"document-save-as-template",priority:20,useProps:ae}),j.registerAction({id:"document-copy-and-share",priority:10,useProps:de}),j.registerAction({id:"document-view-page",priority:50,useProps:ce}),function(){const e=(0,l.__)("Elements","elementor"),t=(0,l.__)("Widgets","elementor");(0,s.__privateListenTo)((0,s.routeOpenEvent)("panel/elements"),(()=>{ge(e),ve(t)})),(0,s.__privateListenTo)((0,s.v1ReadyEvent)(),(()=>{(0,s.__privateIsRouteActive)("panel/elements")&&(ge(e),ve(t))}))}(),R.registerToggleAction({id:"open-elements-panel",priority:1,useProps:Ee}),O.registerAction({id:"toggle-finder",priority:10,useProps:fe}),O.registerLink({id:"open-help-center",priority:20,useProps:()=>({title:(0,l.__)("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})}})}),D.registerToggleAction({id:"open-history",priority:20,useProps:_e}),D.registerAction({id:"open-keyboard-shortcuts",group:"default",priority:40,useProps:ye}),C({id:"responsive-breakpoints-switcher",component:be,options:{priority:20}}),(0,c.injectIntoTop)({id:"site-settings-primary-action-portal",component:Pe}),R.registerToggleAction({id:"toggle-site-settings",priority:2,useProps:Se}),R.registerToggleAction({id:"toggle-structure-view",priority:3,useProps:Be}),D.registerAction({id:"open-theme-builder",useProps:Ce}),D.registerToggleAction({id:"open-user-preferences",priority:30,useProps:Te}),D.registerLink({id:"exit-to-wordpress",group:"exits",useProps:()=>{const e=(0,a.__useActiveDocument)();return{title:(0,l.__)("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,c.injectIntoTop)({id:"app-bar",component:function(){const t=(0,a.__useActiveDocument)();return e.createElement(r.ThemeProvider,{colorScheme:"dark"},e.createElement(r.AppBar,{position:"sticky"},e.createElement(r.Toolbar,{disableGutters:!0,variant:"dense"},e.createElement(r.Box,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",flexGrow:1},e.createElement(r.Grid,{container:!0},e.createElement(U,null),t?.permissions?.allowAddingWidgets&&e.createElement(Y,null)),e.createElement(r.Grid,{container:!0,justifyContent:"center"},e.createElement(W,{spacing:1.5},e.createElement(r.Divider,{orientation:"vertical"}),e.createElement(te,null),e.createElement(r.Divider,{orientation:"vertical"}),e.createElement(ne,null),e.createElement(r.Divider,{orientation:"vertical"}))),e.createElement(r.Grid,{container:!0,justifyContent:"flex-end"},e.createElement(Q,null),e.createElement(ee,null))))))}})}(),(window.elementorV2=window.elementorV2||{}).editorAppBar=o}();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages