1import{r as l,o as L,a as M,T as x,b as i,c as r,d as c,u as o,e,w as f,m as d,q as N,v as U,x as v,t as w,l as b,h as m,F as W,Z as z,y}from"./app-36d8bf1b.js";import{_ as P}from"./backBtn-dff81b39.js";import{W as T}from"./WebView-346f0b71.js";import"./_plugin-vue_export-helper-c27b6911.js";const C="/build/assets/LHT07-a9e9bd2f.jpg",D={key:0,class:"web_landing"},E={key:1,class:"Register_page"},R={class:"container"},A={class:"row"},F={class:"col-12"},H={class:"Register_contents"},K=e("div",{class:"register_img"},[e("img",{class:"img-fluid",src:C,alt:""})],-1),j=e("div",{class:"back_btn"},[e("img",{src:P,alt:""})],-1),q={class:"welcome_contents"},I=["onSubmit"],Z=e("h2",null,"Welcome to Lulu Happiness",-1),G=e("p",null,"nice to see you again",-1),J={class:"form-floating"},O=e("label",{for:"floatingPassword"},"Mobile",-1),Q={class:"error-message"},X={key:0,class:"alert-danger"},Y={key:1,class:"clickmsg"},$={class:"verify_parentBtn"},ee=["disabled"],ie={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String},error:{type:String}},setup(u){const _=l(!1);L(()=>{p(),window.addEventListener("resize",p)});const p=()=>{_.value=window.innerWidth>768},k=a=>{let n=a.target.value.replace(/[^0-9]/g,"");n=n.replace(/^0+/,""),t.phone=n,t.phone.length>10&&(t.phone=t.phone.slice(0,10))};M(()=>{window.removeEventListener("resize",p)});const V=l(window.location.href),g=l(!0),S=()=>{g.value=!1},t=x({phone:"",type:"login"}),h=l(""),B=()=>{if(t.phone=t.phone.toString(),t.phone.toString().length<10){h.value="Phone number must be 10 digits";return}h.value="",t.post(route("login"),{})};return(a,s)=>(i(),r(W,null,[c(o(z),{title:"Login"}),e("main",null,[_.value?(i(),r("div",D,[c(T,{launched:g.value,siteUrl:V.value,useApp:S},null,8,["launched","siteUrl"])])):(i(),r("div",E,[e("div",R,[e("div",A,[e("div",F,[e("div",H,[K,c(o(y),{href:a.route("welcome")},{default:f(()=>[j]),_:1},8,["href"]),e("div",q,[e("form",{onSubmit:d(B,["prevent"])},[Z,G,e("div",J,[N(e("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=n=>o(t).phone=n),autofocus:"",onInput:k,autocomplete:"phone",onKeydown:[s[1]||(s[1]=v(d(()=>{},["prevent"]),["up"])),s[2]||(s[2]=v(d(()=>{},["prevent"]),["down"]))],onWheel:s[3]||(s[3]=d(()=>{},["prevent"])),class:"form-control",id:"floatingPassword",name:"phone",placeholder:"Mobile",inputmode:"numeric"},null,544),[[U,o(t).phone]]),O,e("span",Q,w(h.value),1),u.error?(i(),r("div",X,w(u.error),1)):b("",!0),u.error?(i(),r("div",Y,[m(" Click "),c(o(y),{href:a.route("signup")},{default:f(()=>[m("here")]),_:1},8,["href"]),m(" to register ")])):b("",!0)]),e("div",$,[e("button",{type:"submit",class:"primary_btn",disabled:o(t).processing},"Verify",8,ee)])],40,I)])])])])])]))])],64))}};export{ie 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.