1import{i as c,x as g,o as f,e as w,h as y,T as V,a as v,w as m,b as o,u as a,Z as h,d as r,f as _,q as b,k as $,p as q}from"./app-fb54e4c5.js";import{_ as x}from"./GuestLayout-275a4c21.js";import{_ as u}from"./InputError-3d5c4629.js";import{_ as i}from"./InputLabel-aaedcd87.js";import{P as k}from"./PrimaryButton-3848d5c4.js";import{_ as d}from"./TextInput-3b872b57.js";import"./ApplicationLogoWhite-4713b0f1.js";import"./_plugin-vue_export-helper-c27b6911.js";const B=["value"],P={__name:"SelectInput",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(p,{expose:e}){const l=c(null);return g(()=>{l.value.hasAttribute("autofocus")&&l.value.focus()}),e({focus:()=>l.value.focus()}),(n,s)=>(f(),w("select",{class:"form-select",value:p.modelValue,onInput:s[0]||(s[0]=t=>n.$emit("update:modelValue",t.target.value)),ref_key:"input",ref:l},[y(n.$slots,"default")],40,B))}},U=r("div",{class:"auth-layout__intro"},[r("h4",null,"Register for a new account")],-1),N={class:"auth-layout__form-item"},R=r("option",{value:"parent"},"Parent/Guardian",-1),S=r("option",{value:"teacher"},"Teacher",-1),C={class:"auth-layout__form-item"},I={class:"auth-layout__form-item"},T={class:"auth-layout__form-item"},A={class:"auth-layout__form-item"},E={class:"auth-layout__form-actions auth-layout__form-actions--end"},J={__name:"Register",setup(p){const e=V({guardian_type:"",name:"",email:"",password:"",password_confirmation:""}),l=()=>{e.post(route("register"),{onFinish:()=>e.reset("password","password_confirmation")})};return(n,s)=>(f(),v(x,null,{default:m(()=>[o(a(h),{title:"Register"}),U,r("form",{class:"auth-layout__form",onSubmit:q(l,["prevent"])},[r("div",N,[o(i,{for:"guardian_type",value:"I am a..."}),o(P,{id:"guardian_type",type:"text",modelValue:a(e).guardian_type,"onUpdate:modelValue":s[0]||(s[0]=t=>a(e).guardian_type=t),required:"",autofocus:"",autocomplete:"guardian_type"},{default:m(()=>[R,S]),_:1},8,["modelValue"]),o(u,{message:a(e).errors.guardian_type},null,8,["message"])]),r("div",C,[o(i,{for:"name",value:"Name"}),o(d,{id:"name",type:"text",modelValue:a(e).name,"onUpdate:modelValue":s[1]||(s[1]=t=>a(e).name=t),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(u,{message:a(e).errors.name},null,8,["message"])]),r("div",I,[o(i,{for:"email",value:"Email"}),o(d,{id:"email",type:"email",modelValue:a(e).email,"onUpdate:modelValue":s[2]||(s[2]=t=>a(e).email=t),required:"",autocomplete:"email"},null,8,["modelValue"]),o(u,{message:a(e).errors.email},null,8,["message"])]),r("div",T,[o(i,{for:"password",value:"Password"}),o(d,{id:"password",type:"password",modelValue:a(e).password,"onUpdate:modelValue":s[3]||(s[3]=t=>a(e).password=t),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(u,{message:a(e).errors.password},null,8,["message"])]),r("div",A,[o(i,{for:"password_confirmation",value:"Confirm Password"}),o(d,{id:"password_confirmation",type:"password",modelValue:a(e).password_confirmation,"onUpdate:modelValue":s[4]||(s[4]=t=>a(e).password_confirmation=t),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(u,{message:a(e).errors.password_confirmation},null,8,["message"])]),r("div",E,[o(a(b),{href:n.route("login")},{default:m(()=>[_(" Already registered? ")]),_:1},8,["href"]),o(k,{class:$({"form-btn-disabled":a(e).processing}),disabled:a(e).processing},{default:m(()=>[_(" Register ")]),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{J 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.