1import{Q as C,T as b,c as k,r as g,o as u,a as i,b as e,f as s,d as v,u as t,w as B,g as d,t as r,e as f}from"./app-D57bzFyH.js";import{F as c}from"./FormInputWrapper-BzEGjXY_.js";import{F as _}from"./FormLabel-bD6WaDy7.js";import{u as T}from"./useTranslations-DVMRzCoD.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const q=["textContent"],w=["textContent"],F=["textContent"],N=["textContent"],U={class:"flex col-span-2 mt-5"},I={class:"flex justify-center col-span-2 mt-2"},L={__name:"GuestCheckout",emits:["back"],setup(S){const{t:m}=T(),h=C(),o=b({first_name:"",last_name:"",email:"",phone:""}),a=k(()=>h.props.errors);function y(){o.post("/checkout/save-guest-data")}return(V,l)=>{const p=g("InputText"),x=g("Button");return u(),i("form",{class:"sm:grid sm:grid-cols-2 gap-x-2 sm:gap-y-4 space-y-4 sm:space-y-0",onSubmit:B(y,["prevent"])},[e(c,null,{default:s(()=>[e(_,{for:"register-first-name"},{default:s(()=>[d(r(t(m)("auth.first_name")),1)]),_:1}),e(p,{id:"register-first-name",modelValue:t(o).first_name,"onUpdate:modelValue":l[0]||(l[0]=n=>t(o).first_name=n),autocomplete:"given-name",name:"first-name",required:"",type:"text"},null,8,["modelValue"]),a.value&&a.value.first_name?(u(),i("small",{key:0,class:"text-red-600",textContent:r(a.value.first_name)},null,8,q)):f("",!0)]),_:1}),e(c,null,{default:s(()=>[e(_,{for:"register-last-name"},{default:s(()=>[d(r(t(m)("auth.last_name")),1)]),_:1}),e(p,{id:"register-last-name",modelValue:t(o).last_name,"onUpdate:modelValue":l[1]||(l[1]=n=>t(o).last_name=n),autocomplete:"family-name",name:"last-name",required:"",type:"text"},null,8,["modelValue"]),a.value&&a.value.last_name?(u(),i("small",{key:0,class:"text-red-600",textContent:r(a.value.last_name)},null,8,w)):f("",!0)]),_:1}),e(c,null,{default:s(()=>[e(_,{for:"register-email"},{default:s(()=>[d(r(t(m)("auth.email")),1)]),_:1}),e(p,{id:"register-email",modelValue:t(o).email,"onUpdate:modelValue":l[2]||(l[2]=n=>t(o).email=n),autocomplete:"email",name:"email",required:"",type:"email"},null,8,["modelValue"]),a.value&&a.value.email?(u(),i("small",{key:0,class:"text-red-600",textContent:r(a.value.email)},null,8,F)):f("",!0)]),_:1}),e(c,null,{default:s(()=>[e(_,{for:"register-phone"},{default:s(()=>[d(r(t(m)("auth.phone")),1)]),_:1}),e(p,{id:"register-phone",modelValue:t(o).phone,"onUpdate:modelValue":l[3]||(l[3]=n=>t(o).phone=n),autocomplete:"tel",name:"phone",pattern:"+[0-9]{3}[0-9]{8}",required:"",type:"tel"},null,8,["modelValue"]),a.value&&a.value.phone?(u(),i("small",{key:0,class:"text-red-600",textContent:r(a.value.phone)},null,8,N)):f("",!0)]),_:1}),v("div",U,[e(x,{label:t(m)("auth.update_details"),class:"flex-grow",type:"submit"},null,8,["label"])]),v("div",I,[e(x,{label:t(m)("auth.back_to_login"),class:"text-xs text-gray-400 hover:opacity-60 items-center gap-1 flex",icon:"pi pi-chevron-left",unstyled:"",onClick:l[4]||(l[4]=n=>V.$emit("back"))},null,8,["label"])])],32)}}};export{L as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.