(()=>{"use strict";var e={n:l=>{var r=l&&l.__esModule?()=>l.default:()=>l;return e.d(r,{a:r}),r},d:(l,r)=>{for(var o in r)e.o(r,o)&&!e.o(l,o)&&Object.defineProperty(l,o,{enumerable:!0,get:r[o]})},o:(e,l)=>Object.prototype.hasOwnProperty.call(e,l)};const l=window.wp.blocks,r=JSON.parse('{"UU":"meta-box/login-form"}'),o=window.wp.blockEditor,a=window.wp.components,t=window.wp.i18n,n=window.wp.serverSideRender;var s=e.n(n);const i=window.ReactJSXRuntime;(0,l.registerBlockType)(r.UU,{edit:function({attributes:e,setAttributes:l}){const{redirect:r,form_id:n,recaptcha_key:b,recaptcha_secret:u,label_title:_,label_username:m,label_password:d,label_remember:c,label_lost_password:p,label_submit:x,id_username:f,id_password:C,id_remember:h,id_submit:v,value_username:w,value_remember:g,confirmation:j}=e,T=e=>r=>l({[e]:r});return(0,i.jsxs)("div",{...(0,o.useBlockProps)(),children:[(0,i.jsxs)(o.InspectorControls,{children:[(0,i.jsxs)(a.PanelBody,{className:"mbup-block",title:(0,t.__)("Settings","mb-user-profile"),children:[(0,i.jsx)(a.TextControl,{label:(0,t.__)("Redirect URL","mb-user-profile"),help:(0,t.__)("Redirect URL, to which users will be redirected after successful login.","mb-user-profile"),value:r,onChange:T("redirect")}),(0,i.jsx)(a.ToggleControl,{label:(0,t.__)("Remember login","mb-user-profile"),checked:g,onChange:T("value_remember")})]}),(0,i.jsxs)(a.PanelBody,{title:(0,t.__)("Appearance","mb-user-profile"),initialOpen:!1,children:[(0,i.jsx)(a.TextControl,{label:(0,t.__)("Form ID","mb-user-profile"),value:n,onChange:T("form_id")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Form title","mb-user-profile"),value:_,onChange:T("label_title")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Username field label","mb-user-profile"),value:m,onChange:T("label_username")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Password field label","mb-user-profile"),value:d,onChange:T("label_password")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Remember checkbox label","mb-user-profile"),value:c,onChange:T("label_remember")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Lost password field label","mb-user-profile"),value:p,onChange:T("label_lost_password")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Submit button text","mb-user-profile"),value:x,onChange:T("label_submit")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Username field ID","mb-user-profile"),value:f,onChange:T("id_username")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Password field ID","mb-user-profile"),value:C,onChange:T("id_password")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Remember checkbox ID","mb-user-profile"),value:h,onChange:T("id_remember")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Submit button ID","mb-user-profile"),value:v,onChange:T("id_submit")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Confirmation text","mb-user-profile"),value:j,onChange:T("confirmation")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Default username value","mb-user-profile"),value:w,onChange:T("value_username")})]}),(0,i.jsxs)(a.PanelBody,{title:(0,t.__)("Google reCaptcha (v3)","mb-user-profile"),initialOpen:!1,children:[(0,i.jsx)(a.TextControl,{label:(0,t.__)("Site key","mb-user-profile"),value:b,onChange:T("recaptcha_key")}),(0,i.jsx)(a.TextControl,{label:(0,t.__)("Secret key","mb-user-profile"),value:u,onChange:T("recaptcha_secret")})]})]}),(0,i.jsx)(s(),{block:"meta-box/login-form",attributes:e})]})},save:function(){return null}})})();