PageSourceSearch

https://kitanimals.org/_nuxt/login.57e0e6fb.js

js kitanimals.org collected 2026-10-07 04:10:49 UTC 2,657 bytes, 1 lines download raw bytes

1import{_ as V}from"./PageHero.900cbedb.js";import{_ as $}from"./FInput.vue_vue_type_script_setup_true_lang.6df5ad8d.js";import{_ as q}from"./FLink.vue_vue_type_script_setup_true_lang.7ce9c716.js";import{_ as A}from"./FSocial.vue_vue_type_script_setup_true_lang.bfb62cbe.js";import{d as D,h as G,i as p,j as h,c as u,k as e,w as _,a as o,b as t,l as x,r as j,o as c,m as f,t as w,p as H,q as y,s as K,v as g}from"./entry.f29c803b.js";import{u as W}from"./form.d702e496.js";import"./FFakeImage.vue_vue_type_script_setup_true_lang.a1152759.js";import"./FField.vue_vue_type_script_setup_true_lang.fb62544f.js";import"./facebook.4c0b7aaf.js";const z={class:"container max-w-96 py-8 md:py-12"},J={class:"mb-6"},M={class:"space-y-3"},Q={key:0,class:"text-right"},U=["disabled"],X=o("div",{class:"flex-center py-4"},[o("div",{class:"w-full border-t border-gray-light"}),o("div",{class:"px-4 text-sm"},"OR"),o("div",{class:"w-full border-t border-gray-light"})],-1),Y={class:"space-y-3"},Z={beforeRouteEnter(k,s,i){i(()=>x().$redirector.setIntendedPath(s.fullPath))}},le=D({...Z,__name:"login",setup(k){const s="login",i="register",E=G(),a=p(()=>E.path.includes("login")?s:i),v=p(()=>a.value===s?"Login":"Register"),F=p(()=>v.value);function b(){x().$redirector.intended("/")}async function l({accessToken:n,provider:r}){await h().socialLogin({accessToken:n,provider:r}),b()}const{login:R,register:I}=h(),O={[s]:R,[i]:I},{FForm:T,onSubmit:L}=W({infiniteLoading:!0,values:{email:"",password:""}});return L(async({values:n})=>{const r=O[a.value];await r({email:n.email,password:n.password}),b()}),(n,r)=>{const P=V,d=$,S=q,m=A,B=j("loading");return c(),u("div",null,[e(P,null,{default:_(()=>[f(w(t(v)),1)]),_:1}),o("div",z,[e(t(T),null,{default:_(({busy:C,invalid:N})=>[o("div",J,[o("div",M,[e(d,{label:"E-mail",name:"email",icon:"envelope",rules:"email",inputmode:"email",required:""}),e(d,{label:"Password",name:"password",icon:"key",type:"password",required:""}),t(a)===i?(c(),H(d,{key:0,label:"Password Confirmation",name:"confirmation",icon:"key",rules:"confirmed:@password",type:"password",required:""})):y("",!0)]),t(a)===s?(c(),u("p",Q,[e(S,{class:"link link-primary text-sm",to:"/auth/password/forgot"},{default:_(()=>[f(" Forgot your password? ")]),_:1})])):y("",!0)]),K((c(),u("button",{class:"btn btn-primary btn-block",disabled:N},[f(w(t(F)),1)],8,U)),[[B,C]])]),_:1}),X,o("div",Y,[e(m,{provider:t(g).GOOGLE,action:l,"infinite-loading":""},null,8,["provider"]),e(m,{provider:t(g).TWITTER,action:l,"infinite-loading":""},null,8,["provider"]),e(m,{provider:t(g).FACEBOOK,action:l,"infinite-loading":""},null,8,["provider"])])])])}}});export{le 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.