(()=>{"use strict";var e={n:o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return e.d(t,{a:t}),t},d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,t=window.wp.blockEditor,r=window.wp.serverSideRender;var s=e.n(r);const l=window.wp.components,n=JSON.parse('{"UU":"ggmc/customer-account"}'),a=window.ReactJSXRuntime;(0,o.registerBlockType)(n.UU,{edit:({attributes:e,setAttributes:o})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(t.InspectorControls,{children:[(0,a.jsxs)(l.PanelBody,{title:"Login/Register Settings",children:[(0,a.jsx)(l.ToggleControl,{label:"Show Login Form",checked:"yes"===e.showLogin,onChange:e=>o({showLogin:e?"yes":""})}),(0,a.jsx)(l.ToggleControl,{label:"Show Register Form",checked:"yes"===e.showRegister,onChange:e=>o({showRegister:e?"yes":""})}),(0,a.jsx)(l.TextControl,{label:"Redirect After Login URL",value:e.redirectAfterLogin,onChange:e=>o({redirectAfterLogin:e}),help:"Leave empty to stay on the current page."})]}),(0,a.jsxs)(l.PanelBody,{title:"Dashboard Settings",initialOpen:!1,children:[(0,a.jsx)(l.TextControl,{label:"Orders Per Page",type:"number",value:e.ordersPerPage,onChange:e=>o({ordersPerPage:parseInt(e,10)||10})}),(0,a.jsx)(l.SelectControl,{label:"Default Tab",value:e.defaultTab,options:[{label:"Orders",value:"orders"},{label:"Downloads",value:"downloads"},{label:"Wishlists",value:"wishlists"},{label:"Profile",value:"profile"},{label:"Addresses",value:"addresses"}],onChange:e=>o({defaultTab:e})})]})]}),(0,a.jsx)(s(),{block:n.UU,attributes:e})]}),save:()=>null})})();