(()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var i in t)e.o(t,i)&&!e.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:t[i]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)};const n=window.wp.blocks,t=window.React,i=window.wp.blockEditor,o=window.wp.serverSideRender;var r=e.n(o);const s=window.wp.components,a=window.wp.i18n;function l({attributes:e,setAttributes:n}){const{customClass:i}=e;return(0,t.createElement)(s.PanelBody,{title:(0,a.__)("User menu","cine-movie-engine"),initialOpen:!0},(0,t.createElement)(s.TextControl,{label:(0,a.__)("Extra CSS class","cine-movie-engine"),value:i,onChange:e=>n({customClass:e||""}),help:(0,a.__)("Added to the guest menu or logged-in menu wrapper. Use for header alignment or spacing.","cine-movie-engine")}))}const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"cine-movie-engine/user-menu","title":"Movie Engine User Menu","category":"movie-engine","icon":"admin-users","description":"Account / login area for the header (same as [movie_engine_user_menu]).","keywords":["account","login","user","profile","movie engine"],"textdomain":"cine-movie-engine","attributes":{"customClass":{"type":"string","default":""}},"supports":{"html":false,"customClassName":false,"align":false}}');(0,n.registerBlockType)(c,{edit:function({attributes:e,setAttributes:n}){const o=(0,i.useBlockProps)({className:"movie-engine-user-menu-block-editor"});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(l,{attributes:e,setAttributes:n})),(0,t.createElement)("div",{...o},(0,t.createElement)("div",{className:"movie-engine-user-menu-block-editor__preview movie-engine-plugin"},(0,t.createElement)(r(),{block:"cine-movie-engine/user-menu",attributes:e,LoadingResponsePlaceholder:()=>(0,t.createElement)("p",{className:"movie-engine-user-menu-block-editor__preview-loading"},(0,t.createElement)(s.Spinner,null),(0,a.__)("Loading preview…","cine-movie-engine")),ErrorResponsePlaceholder:()=>(0,t.createElement)("p",{className:"movie-engine-user-menu-block-editor__preview-loading"},(0,a.__)("Preview unavailable. Check the front end or try saving the page.","cine-movie-engine"))}))))},save:()=>null})})();