PageSourceSearch

https://rajarepair.id/_rr/DVPO_QgS.js

js rajarepair.id collected 2026-10-06 20:54:32 UTC 8,677 bytes, 1 lines download raw bytes

1import{_ as te}from"./DL45NWz-.js";import{_ as se}from"./CTcA32qb.js";import{_ as ae}from"./3EBg3iUg.js";import{_ as oe}from"./BCNY_h_o.js";import{f as le,u as ne,c as ie,s as B,t as D,y as u,C as s,D as o,v as e,z as m,E as d,B as r,G as h,P as N,I as E,H as M,M as y,J as S,Y as re,X as R,i as ue,b as de,x as n,q as ce}from"./D5MLA-hU.js";import{I as me}from"./DlZaLOuR.js";import{I as pe}from"./Dwacv551.js";import{I as G}from"./DxIERjcP.js";import{I as O}from"./C6ZGBDap.js";import{I as fe}from"./DhOByWcj.js";import{u as be}from"./CbqWd3-v.js";import"./GhFrNfLP.js";import"./B1_oImu8.js";import"./Dvq-jn9A.js";import"./D_rngVSp.js";import"./DA7qIMyu.js";import"./DeIXQDC2.js";import"./DnT6CYIS.js";import"./BsSRCWlq.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new f.Error().stack;t&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[t]="8427b6b3-7c10-47a2-9447-6ee9c6eaa6c2",f._sentryDebugIdIdentifier="sentry-dbid-8427b6b3-7c10-47a2-9447-6ee9c6eaa6c2")}catch{}})();const ve={class:"display text-3xl text-ink-900 sm:text-4xl"},xe={class:"mt-2 text-base text-slate-500"},ge={key:0,class:"mt-6 rounded-xl border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700"},ye={key:1,class:"mt-6 rounded-xl border border-green-100 bg-green-50 px-4 py-3 text-sm text-green-700"},_e={key:2,class:"mt-8"},ke={class:"my-5 flex items-center gap-3 text-xs font-medium uppercase tracking-wide text-slate-400"},he={class:"hidden","aria-hidden":"true"},we={class:"text-sm font-semibold text-ink-900"},Ie={class:"relative mt-2"},Ce=["placeholder"],Te={class:"flex items-center justify-between"},Ve={class:"text-sm font-semibold text-ink-900"},Le={class:"relative mt-2"},De=["disabled"],Ee={class:"mt-8 text-center text-sm text-slate-500"},Me={class:"relative w-full rounded-t-3xl bg-white p-6 shadow-2xl lg:max-w-md lg:rounded-3xl"},Se=["aria-label"],Be={class:"flex h-11 w-11 items-center justify-center rounded-2xl bg-brand-50 text-brand-600"},Ne={class:"mt-4 text-lg font-semibold text-ink-900"},Pe={class:"mt-1 text-sm text-slate-500"},Ue={key:0,class:"mt-4 rounded-xl border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700"},je={key:1,class:"mt-4 rounded-xl border border-green-100 bg-green-50 px-4 py-3 text-sm text-green-700"},$e={class:"relative"},ze=["placeholder"],Ae=["disabled"],P="w-full rounded-xl border border-slate-200 bg-white py-3 pl-11 pr-4 text-sm text-ink-900 placeholder:text-slate-400 transition-all focus:border-brand-400 focus:outline-none focus:ring-2 focus:ring-brand-100",nt=le({__name:"masuk",setup(f){const{t}=ne();be({title:t("masuk.seoTitle"),description:t("masuk.seoDescription")});const{login:U,forgotPassword:X,sendMagicLink:q}=ie(),j=ue(()=>!!de().public.googleClientId),p=n(""),w=n(""),b=n(""),I=n(""),$=n(),C=n(!1),c=n(""),T=n(""),H=(i,a)=>i?.data?.message||a;async function J(){c.value="",T.value="",C.value=!0;try{await U(p.value,w.value,b.value),await ce("/akun")}catch(i){c.value=H(i,t("masuk.invalidCreds"))}finally{C.value=!1}}const W=i=>i?.statusCode;function z(i,a){const L=W(i);return L===403?t("masuk.challengeFailed"):L===429?t("masuk.rateLimited"):a}async function Y(){if(!p.value){c.value=t("masuk.fillEmailReset");return}c.value="";try{await X(p.value,b.value,I.value),T.value=t("masuk.resetSent")}catch(i){c.value=z(i,t("masuk.resetFailed"))}finally{$.value?.reset()}}const v=n(!1),x=n(""),V=n(""),A=n(),_=n(!1),g=n(""),k=n("");function K(){x.value=p.value,g.value="",k.value="",v.value=!0}async function Q(){if(!x.value){g.value=t("masuk.fillEmailMagic");return}g.value="",_.value=!0;try{await q(x.value,b.value,V.value),k.value=t("masuk.magicSent")}catch(i){g.value=z(i,t("masuk.magicFailed"))}finally{_.value=!1,A.value?.reset()}}return(i,a)=>{const L=te,F=se,Z=ae,ee=oe;return u(),B(ee,null,{default:D(()=>[s("h1",ve,o(e(t)("masuk.heading")),1),s("p",xe,o(e(t)("masuk.subheading")),1),e(c)?(u(),m("p",ge,o(e(c)),1)):d("",!0),e(T)?(u(),m("p",ye,o(e(T)),1)):d("",!0),e(j)?(u(),m("div",_e,[r(L,{onError:a[0]||(a[0]=l=>c.value=l)}),s("div",ke,[a[10]||(a[10]=s("span",{class:"h-px flex-1 bg-slate-100"},null,-1)),h(" "+o(e(t)("masuk.orDivider"))+" ",1),a[11]||(a[11]=s("span",{class:"h-px flex-1 bg-slate-100"},null,-1))])])):d("",!0),s("form",{class:E(["space-y-4",!e(j)&&"mt-8"]),onSubmit:N(J,["prevent"])},[s("div",he,[M(s("input",{"onUpdate:modelValue":a[1]||(a[1]=l=>y(b)?b.value=l:null),type:"text",tabindex:"-1",autocomplete:"off","data-lpignore":"true","data-1p-ignore":"true","data-form-type":"other"},null,512),[[S,e(b)]])]),s("div",null,[s("label",we,o(e(t)("masuk.emailLabel")),1),s("div",Ie,[r(e(G),{class:"pointer-events-none absolute left-3.5 to
1p-1/2 h-4.5 w-4.5 -translate-y-1/2 text-slate-400"}),M(s("input",{"onUpdate:modelValue":a[2]||(a[2]=l=>y(p)?p.value=l:null),type:"email",autocomplete:"email",placeholder:e(t)("masuk.emailPlaceholder"),class:E(P)},null,8,Ce),[[S,e(p)]])])]),s("div",null,[s("div",Te,[s("label",Ve,o(e(t)("masuk.passwordLabel")),1),s("button",{type:"button",class:"text-xs font-medium text-slate-500 transition-colors hover:text-brand-600",onClick:Y},o(e(t)("masuk.forgotPassword")),1)]),s("div",Le,[r(e(pe),{class:"pointer-events-none absolute left-3.5 top-1/2 h-4.5 w-4.5 -translate-y-1/2 text-slate-400"}),M(s("input",{"onUpdate:modelValue":a[3]||(a[3]=l=>y(w)?w.value=l:null),type:"password",autocomplete:"current-password",placeholder:"••••••••",class:E(P)},null,512),[[S,e(w)]])])]),r(F,{ref_key:"turnstile",ref:$,modelValue:e(I),"onUpdate:modelValue":a[4]||(a[4]=l=>y(I)?I.value=l:null)},null,8,["modelValue"]),s("button",{type:"submit",disabled:e(C),class:"w-full rounded-full bg-brand-500 px-6 py-3.5 text-base font-semibold text-white shadow-lg shadow-brand-500/25 transition-all duration-300 hover:bg-brand-600 hover:shadow-brand-600/30 disabled:opacity-60 disabled:shadow-none"},o(e(C)?e(t)("auth.processing"):e(t)("masuk.submit")),9,De),s("button",{type:"button",class:"flex w-full items-center justify-center gap-2 rounded-full border border-slate-200 px-6 py-3 text-sm font-semibold text-ink-900 transition-colors hover:border-brand-300 hover:bg-brand-50 hover:text-brand-700",onClick:K},[r(e(O),{class:"h-4 w-4"}),h(" "+o(e(t)("masuk.magicTrigger")),1)])],34),s("p",Ee,[h(o(e(t)("masuk.noAccount"))+" ",1),r(Z,{to:"/daftar",class:"font-semibold text-brand-600 hover:underline"},{default:D(()=>[h(o(e(t)("masuk.createAccount")),1)]),_:1})]),(u(),B(re,{to:"body"},[r(R,{"enter-active-class":"transition-opacity duration-300","enter-from-class":"opacity-0","leave-active-class":"transition-opacity duration-200","leave-to-class":"opacity-0"},{default:D(()=>[e(v)?(u(),m("div",{key:0,class:"fixed inset-0 z-[80] bg-ink-950/50 backdrop-blur-sm",onClick:a[5]||(a[5]=l=>v.value=!1)})):d("",!0)]),_:1}),r(R,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"opacity-0 translate-y-4 lg:scale-95","leave-active-class":"transition duration-200 ease-in","leave-to-class":"opacity-0 translate-y-4 lg:scale-95"},{default:D(()=>[e(v)?(u(),m("div",{key:0,class:"fixed inset-0 z-[90] flex items-end justify-center p-0 lg:items-center lg:p-6",role:"dialog","aria-modal":"true",onClick:a[9]||(a[9]=N(l=>v.value=!1,["self"]))},[s("div",Me,[s("button",{type:"button",class:"absolute right-4 top-4 text-slate-400 transition-colors hover:text-slate-600","aria-label":e(t)("masuk.close"),onClick:a[6]||(a[6]=l=>v.value=!1)},[r(e(fe),{class:"h-5 w-5"})],8,Se),s("div",Be,[r(e(O),{class:"h-5 w-5"})]),s("h2",Ne,o(e(t)("masuk.magicModalTitle")),1),s("p",Pe,o(e(t)("masuk.magicModalDesc")),1),e(g)?(u(),m("p",Ue,o(e(g)),1)):d("",!0),e(k)?(u(),m("p",je,o(e(k)),1)):d("",!0),e(k)?d("",!0):(u(),m("form",{key:2,class:"mt-5 space-y-4",onSubmit:N(Q,["prevent"])},[s("div",$e,[r(e(G),{class:"pointer-events-none absolute left-3.5 top-1/2 h-4.5 w-4.5 -translate-y-1/2 text-slate-400"}),M(s("input",{"onUpdate:modelValue":a[7]||(a[7]=l=>y(x)?x.value=l:null),type:"email",autocomplete:"email",placeholder:e(t)("masuk.emailPlaceholder"),class:E(P)},null,8,ze),[[S,e(x)]])]),r(F,{ref_key:"magicTurnstile",ref:A,modelValue:e(V),"onUpdate:modelValue":a[8]||(a[8]=l=>y(V)?V.value=l:null)},null,8,["modelValue"]),s("button",{type:"submit",disabled:e(_),class:"flex w-full items-center justify-center gap-2 rounded-full bg-brand-500 px-6 py-3.5 text-base font-semibold text-white shadow-lg shadow-brand-500/25 transition-all hover:bg-brand-600 disabled:opacity-60"},[e(_)?(u(),B(e(me),{key:0,class:"h-4 w-4 animate-spin"})):d("",!0),h(" "+o(e(_)?e(t)("auth.processing"):e(t)("masuk.magicLink")),1)],8,Ae)],32))])])):d("",!0)]),_:1})]))]),_:1})}}});
1export{nt 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.