import{d as p,u as f,o as _,a as g,b as o,e,h as w,w as i,f as r,s as c,i as l,t as V,F as y}from"./app-bWy6VYs1.js";import{_ as d}from"./InputError.vue_vue_type_script_setup_true_lang-rMzOKLUE.js";import{_ as b}from"./index-C32fBP6Q.js";import{_ as m}from"./Input.vue_vue_type_script_setup_true_lang-C2RPzpSC.js";import{_ as n}from"./Label.vue_vue_type_script_setup_true_lang-Bs6ONg8r.js";import{_ as x}from"./AuthLayout.vue_vue_type_script_setup_true_lang-7K5JbaF3.js";import"./index-CMWG4mbA.js";import"./useForwardExpose-Cx2E44RD.js";const v={class:"space-y-1"},q={class:"space-y-1"},C={class:"space-y-1"},R={class:"space-y-1"},D=p({__name:"Register",setup($){const a=f({name:"",email:"",password:"",password_confirmation:""}),u=()=>{a.post("/client-zone/register")};return(F,s)=>(_(),g(y,null,[o(e(w),{title:"Client Registration"}),o(x,{title:"Client Zone Registration",description:"Register with your customer email to request access."},{default:i(()=>[r("form",{class:"space-y-4",onSubmit:c(u,["prevent"])},[r("div",v,[o(e(n),{for:"name"},{default:i(()=>[...s[4]||(s[4]=[l("Full name",-1)])]),_:1}),o(e(m),{id:"name",modelValue:e(a).name,"onUpdate:modelValue":s[0]||(s[0]=t=>e(a).name=t),required:""},null,8,["modelValue"]),o(d,{message:e(a).errors.name},null,8,["message"])]),r("div",q,[o(e(n),{for:"email"},{default:i(()=>[...s[5]||(s[5]=[l("Email",-1)])]),_:1}),o(e(m),{id:"email",modelValue:e(a).email,"onUpdate:modelValue":s[1]||(s[1]=t=>e(a).email=t),type:"email",required:""},null,8,["modelValue"]),o(d,{message:e(a).errors.email},null,8,["message"])]),r("div",C,[o(e(n),{for:"password"},{default:i(()=>[...s[6]||(s[6]=[l("Password",-1)])]),_:1}),o(e(m),{id:"password",modelValue:e(a).password,"onUpdate:modelValue":s[2]||(s[2]=t=>e(a).password=t),type:"password",required:""},null,8,["modelValue"]),o(d,{message:e(a).errors.password},null,8,["message"])]),r("div",R,[o(e(n),{for:"password_confirmation"},{default:i(()=>[...s[7]||(s[7]=[l("Confirm password",-1)])]),_:1}),o(e(m),{id:"password_confirmation",modelValue:e(a).password_confirmation,"onUpdate:modelValue":s[3]||(s[3]=t=>e(a).password_confirmation=t),type:"password",required:""},null,8,["modelValue"])]),o(e(b),{type:"submit",disabled:e(a).processing,class:"w-full"},{default:i(()=>[l(V(e(a).processing?"Submitting...":"Register"),1)]),_:1},8,["disabled"]),s[8]||(s[8]=r("p",{class:"text-center text-sm text-gray-600"},[l(" Already have access? "),r("a",{href:"/client-login",class:"font-medium text-blue-600 hover:text-blue-500"},"Sign in")],-1))],32)]),_:1})],64))}});export{D as default};
