1 line
No EOL
4.7 KiB
JavaScript
1 line
No EOL
4.7 KiB
JavaScript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[97],{7380:(e,t,s)=>{s.d(t,{Z:()=>o});var r=s(821),n={class:"text-sm text-red-400"};const o={__name:"InputError",props:{message:{type:String}},setup:function(e){return function(t,s){return(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",null,[(0,r._)("p",n,(0,r.zw)(e.message),1)],512)),[[r.F8,e.message]])}}}},8195:(e,t,s)=>{s.d(t,{Z:()=>a});var r=s(821),n={class:"block font-medium text-gray-300"},o={key:0},l={key:1};const a={__name:"InputLabel",props:{value:{type:String}},setup:function(e){return function(t,s){return(0,r.wg)(),(0,r.iD)("label",n,[e.value?((0,r.wg)(),(0,r.iD)("span",o,(0,r.zw)(e.value),1)):((0,r.wg)(),(0,r.iD)("span",l,[(0,r.WI)(t.$slots,"default")]))])}}}},7917:(e,t,s)=>{s.d(t,{Z:()=>o});var r=s(821),n=["value"];const o={__name:"TextInput",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup:function(e,t){var s=t.expose,o=(0,r.iH)(null);return(0,r.bv)((function(){o.value.hasAttribute("autofocus")&&o.value.focus()})),s({focus:function(){return o.value.focus()}}),function(t,s){return(0,r.wg)(),(0,r.iD)("input",{class:"border-gray-700 bg-zinc-900 text-gray-300 focus:border-sky-600 hover:border-sky-600 rounded-md",value:e.modelValue,onInput:s[0]||(s[0]=function(e){return t.$emit("update:modelValue",e.target.value)}),ref_key:"input",ref:o},null,40,n)}}}},2200:(e,t,s)=>{s.d(t,{Z:()=>d});var r=s(821),n={class:"h-screen w-full bg-zinc-900 text-gray-100 flex gap-4"},o={class:"flex flex-col flex-1 px-4 overflow-hidden items-center justify-center"},l=["href"],a=[(0,r._)("span",null,"DR",-1),(0,r._)("span",{class:"text-3xl",id:"lightning"},"⭍",-1),(0,r._)("span",null,"VE",-1)],u={class:"w-full sm:max-w-md mt-6 px-6 py-4 border-sky-600 border rounded overflow-hidden sm:rounded-lg"};const i={},d=(0,s(3744).Z)(i,[["render",function(e,t){return(0,r.wg)(),(0,r.iD)("div",n,[(0,r._)("main",o,[(0,r._)("a",{href:e.route("login"),method:"get",as:"button",type:"button",id:"logotext",class:"text-5xl flex"},a,8,l),(0,r._)("div",u,[(0,r.WI)(e.$slots,"default")])])])}]])},97:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var r=s(821),n=s(2200),o=s(7380),l=s(8195),a=s(7917),u=s(8748),i=["onSubmit"],d={class:"mt-4"},m={class:"mt-4"},c={class:"mt-4"},p={class:"flex items-center justify-end mt-6 gap-6"},f=["disabled"];const g={__name:"Register",setup:function(e){var t=(0,u.cI)({name:"",email:"",password:"",password_confirmation:""}),s=function(){t.post(route("register"),{onFinish:function(){return t.reset("password","password_confirmation")},onSuccess:function(){u.Nd.visit(route("/login"))}})};return function(e,g){return(0,r.wg)(),(0,r.j4)(n.Z,null,{default:(0,r.w5)((function(){return[(0,r.Wm)((0,r.SU)(u.Fb),{title:"Register"}),(0,r._)("form",{onSubmit:(0,r.iM)(s,["prevent"])},[(0,r._)("div",null,[(0,r.Wm)(l.Z,{for:"name",value:"Name"}),(0,r.Wm)(a.Z,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:(0,r.SU)(t).name,"onUpdate:modelValue":g[0]||(g[0]=function(e){return(0,r.SU)(t).name=e}),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),(0,r.Wm)(o.Z,{class:"mt-2",message:(0,r.SU)(t).errors.name},null,8,["message"])]),(0,r._)("div",d,[(0,r.Wm)(l.Z,{for:"email",value:"Email"}),(0,r.Wm)(a.Z,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:(0,r.SU)(t).email,"onUpdate:modelValue":g[1]||(g[1]=function(e){return(0,r.SU)(t).email=e}),required:"",autocomplete:"username"},null,8,["modelValue"]),(0,r.Wm)(o.Z,{class:"mt-2",message:(0,r.SU)(t).errors.email},null,8,["message"])]),(0,r._)("div",m,[(0,r.Wm)(l.Z,{for:"password",value:"Password"}),(0,r.Wm)(a.Z,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:(0,r.SU)(t).password,"onUpdate:modelValue":g[2]||(g[2]=function(e){return(0,r.SU)(t).password=e}),required:"",autocomplete:"new-password"},null,8,["modelValue"]),(0,r.Wm)(o.Z,{class:"mt-2",message:(0,r.SU)(t).errors.password},null,8,["message"])]),(0,r._)("div",c,[(0,r.Wm)(l.Z,{for:"password_confirmation",value:"Confirm Password"}),(0,r.Wm)(a.Z,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:(0,r.SU)(t).password_confirmation,"onUpdate:modelValue":g[3]||(g[3]=function(e){return(0,r.SU)(t).password_confirmation=e}),required:"",autocomplete:"new-password"},null,8,["modelValue"]),(0,r.Wm)(o.Z,{class:"mt-2",message:(0,r.SU)(t).errors.password_confirmation},null,8,["message"])]),(0,r._)("div",p,[(0,r.Wm)((0,r.SU)(u.rU),{href:e.route("login"),class:"underline text-sm text-gray-400 hover:text-gray-100 rounded-md"},{default:(0,r.w5)((function(){return[(0,r.Uk)(" Already registered? ")]})),_:1},8,["href"]),(0,r._)("button",{class:(0,r.C_)(["px-6 py-3 border-sky-600 border rounded-lg hover:bg-sky-600 loginbutton",{"opacity-25":(0,r.SU)(t).processing}]),disabled:(0,r.SU)(t).processing}," Register ",10,f)])],40,i)]})),_:1})}}}}}]); |