PageSourceSearch

https://qwickbirr.com/_nuxt/CMWSURJ9.js

js qwickbirr.com collected 2026-10-06 18:13:22 UTC 4,902 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BbDVSjUP.js","./w7OlQP-1.js","./D-WtLP6d.js","./CAKHesL1.js","./BdYNzXwf.js"])))=>i.map(i=>d[i]);
2import{d as B,v as U,l as F,r as u,L as W,e as j,C as J,c as m,o as i,a as t,i as L,j as E,S as q,k,h as C,J as w,t as c,N as Q,O as X,u as I,y as H,b as R,w as S,F as Y,z as p,A as Z,x as G,R as K,K as P}from"./w7OlQP-1.js";import{_ as ee}from"./D8wZDWdq.js";import{r as te}from"./Mt9Xk0Tp.js";import{_ as oe}from"./DlAUqK2U.js";import"./DzsGp8l1.js";const se=w(()=>P(()=>import("./BbDVSjUP.js"),__vite__mapDeps([0,1]),import.meta.url).then(a=>a.default||a)),ae=w(()=>P(()=>import("./D-WtLP6d.js"),__vite__mapDeps([2,1,3]),import.meta.url).then(a=>a.default||a)),ne=w(()=>P(()=>import("./BdYNzXwf.js"),__vite__mapDeps([4,1]),import.meta.url).then(a=>a.default||a)),le={class:"md:w-[500px] w-full px-[20px] sm:px-[20px] pt-[35px] pb-[30px] bg-surface h-auto rounded-[4px]"},re={key:0,class:"error-text"},ue={class:"mt-1"},ie={class:"mt-2"},ce={class:"flex items-center gap-3"},_e=["href"],pe={type:"submit",class:"next-button"},de={key:0},ve={key:1,class:"loader"},me={key:0,class:"text-center mt-[7px]"},fe={class:"flex justify-end mt-1"},ge={href:"#",class:"login-button"},Ee=B({__name:"ShortRegisterBody",props:{withPromo:{type:Boolean,default:!1}},emits:["changeStep"],setup(a,{emit:he}){const V=a,M=U(),h=F(),x=u(!0),o=R(),{t:N}=W(),n=u(""),_=u(""),b=u(""),d=u(""),f=u(""),v=u(""),A=u(!1);j(()=>{});function D(){_.value="",f.value=""}const{cookieMaxAge:O}=Z();async function $(){if(D(),!z())return;A.value=!0;const e=await h.Register(n.value,d.value,d.value,b.value);if(A.value=!1,e&&e.errMsg){v.value=e.errMsg;return}else if(e&&e.user&&e.accessToken){h.accessToken=e.accessToken,h.refreshToken=e.refreshToken,h.InitUser(e,null);const l=p(o.public.USER_COOKIE_NAME,{maxAge:O});l.value=e.accessToken;const g=p(o.public.REFRESH_TOKEN,{maxAge:O});g.value=e.refreshToken;const T=p(o.public.REGISTRATION_PHONE_COOKIE_NAME);T.value=null;const y=p(R().public.REGISTRATION_TOKEN_COOKIE_NAME,{maxAge:O});y.value=null;const r=p(R().public.FORGOT_TOKEN_COOKIE_NAME,{maxAge:O});r.value=null,G(M("/"))}else if(e&&e.token){const l=p(o.public.REGISTRATION_TOKEN_COOKIE_NAME);l.value=e.token;const g=p(o.public.REGISTRATION_PHONE_COOKIE_NAME);g.value=n.value,G(M("/verification"))}}function z(){let s=!0;d.value.length<+o.public.PASSWORD_LENGTH&&(f.value=K().$i18n.t("pass-error").replaceAll("[pass_length]",o.public.PASSWORD_LENGTH.toString()),s=!1),n.value.length<+o.public.PHONE_LENGTH&&(_.value=K().$i18n.t("phone_lenght_error").replaceAll("[phone_length]",o.public.PHONE_LENGTH.toString()),s=!1);let l=new RegExp(`^([0]?([1-9]{1}[0-9]{${+o.public.PHONE_LENGTH-1}}))$`,"i").exec(n.value);return l&&l.length>0?n.value=l[2]:(_.value=N("phone_not_valid"),s=!1),n.value[0]==="0"&&(_.value=N("cant_start_0"),s=!1),x.value||(v.value=N("need_agree_terms"),s=!1),s}return J([d,n],()=>{v.value=""}),(s,e)=>{const l=se,g=ae,T=ee,y=ne;return i(),m(Y,null,[t("div",le,[t("form",{class:"space-y-2",action:"#",onSubmit:q($,["prevent"])},[t("div",null,[k(l,{phone:n.value,"onUpdate:phone":e[0]||(e[0]=r=>n.value=r),class:C([{"error-border":_.value}])},null,8,["phone","class"]),_.value?(i(),m("span",re,c(_.value),1)):E("",!0)]),t("div",null,[t("div",ue,[t("div",{class:C([{"error-border":f.value}])},[k(g,{name:"password",password:d.value,"onUpdate:password":e[1]||(e[1]=r=>d.value=r),placeholder:"Password"},null,8,["password"])],2),t("span",{class:C(["text-[12px] font-medium text-neutrals-dark-4",[{"error-text":f.value}]])},c(f.value),3)])]),t("div",null,[V.withPromo?Q((i(),m("input",{key:0,type:"text","onUpdate:modelValue":e[2]||(e[2]=r=>b.value=r),placeholder:"Promo Code(Optional)",class:"input_style relative mt-2"},null,512)),[[X,b.value]]):E("",!0),e[5]||(e[5]=t("div",{class:"w-full h-[1px] bg-black rounded mt-[10px]"},null,-1))]),t("div",null,[t("div",ie,[t("div",ce,[t("div",{class:"check-icon",onClick:e[3]||(e[3]=r=>x.value=!x.value)},[x.value?(i(),L(I(te),{key:0,class:"text-green-500"})):E("",!0)]),t("div",null,[H(c(s.$t("Agree_with_terms"))+" ",1),t("a",{class:"underline ml-[2px]",target:"_blank","data-testId":"terms-btn",href:I(o).public.FOOTER_TERMS_AND_CON
2DITIONS},c(s.$t("terms_condition")),9,_e)])])])]),t("div",null,[t("button",pe,[A.value?(i(),m("div",ve)):(i(),m("span",de,c(s.$t("next")),1))])])],32),I(o).public.SHOW_HAVE_CODE?(i(),m("p",me,[k(T,{to:"/verification",replace:!0},{default:S(()=>[...e[6]||(e[6]=[t("span",{class:"underline"},c("Already have a registration code?"),-1)])]),_:1})])):E("",!0),t("div",fe,[k(T,{to:"/login",replace:!0},{default:S(()=>[t("span",ge,c(s.$t("login")),1)]),_:1})])]),v.value?(i(),L(y,{key:0,class:"absolute bottom-[50px] right-0",onClosed:e[4]||(e[4]=r=>v.value="")},{default:S(()=>[H(c(v.value),1)]),_:1})):E("",!0)],64)}}}),be=oe(Ee,[["__scopeId","data-v-f86dcc1e"]]);export{be 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.