1import{A as M,v as h,x as _,j as s,y as t,q as o,f as n,I as m,i as d,G as W,B as i,T as N,p as u,H as D,J as O}from"./@vue-4474Gfnj.js";import{_ as Z}from"./InputError-DRXmsDfx.js";import{_ as c,a as x}from"./TextInput-hPSqJxED.js";import{_ as G}from"./app-DP9F7eky.js";import{u as H}from"./@inertiajs-7zqq8wgj.js";import J from"./Master-CGTmEVx3.js";import{u as Q}from"./useRegisterForm-Bzhzu5cI.js";import"./axios-DjWHqwoD.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";import"./qs-C7saBnVC.js";import"./side-channel-BLCytySV.js";import"./es-errors-B3qLL4WI.js";import"./object-inspect--bXPCECa.js";import"./side-channel-list-BCZJqq54.js";import"./side-channel-map-D4vBmt7j.js";import"./get-intrinsic-DvtG1oIa.js";import"./es-object-atoms-BR76m4z7.js";import"./math-intrinsics-DP1tGiab.js";import"./gopd-C1lCZ5Qs.js";import"./es-define-property-D_7cP-M3.js";import"./has-symbols-BaUvM3gb.js";import"./get-proto-MZ3MALak.js";import"./dunder-proto-C6VzgWTX.js";import"./call-bind-apply-helpers-C9UlVOU4.js";import"./function-bind-CHqF18-c.js";import"./hasown-DwiY0sux.js";import"./call-bound-B0s5y60d.js";import"./side-channel-weakmap-Kf8cPeRJ.js";import"./lodash-es-DY0-vtN4.js";import"./laravel-precognition-BqdyoEeO.js";import"./Header-DLhoaqMY.js";import"./InfoMarq-ch0ch5gJ.js";import"./modal-login-B6di99CS.js";import"./Footer-Ba5Obk7-.js";/* empty css */import"./Sidebar-RCUJPBGW.js";import"./NotifButton-Mobile-D-Aygd-T.js";/* empty css *//* empty css */import"./Floating-DfpBtMAx.js";import"./SmartBanner-D8WniEiT.js";/* empty css */const X={class:"page-content p-2"},Y={key:0,class:"mb-4 p-3 bg-red-600 text-white rounded-lg text-sm"},tt={class:"flex w-full"},et={class:"flex items-center gap-2 w-8/12"},st={class:"flex m-auto w-1/12 items-center justify-center"},at={key:0,class:"animate-spin"},ot={key:1,class:"text-green-500 text-xl"},lt={key:2,class:"text-red-500 text-xl"},nt={class:"flex w-full !mt-2"},rt={class:"flex items-center gap-2 w-8/12"},it={class:"relative flex-1"},dt={key:0},pt={key:1},mt={class:"flex m-auto w-1/12 items-center justify-center"},ut={key:0,class:"animate-spin"},ct={key:1,class:"text-green-500 text-xl"},xt={key:2,class:"text-red-500 text-xl"},ft={key:0,class:"bg-white !mt-2 rounded-lg p-3 text-sm overflow-hidden"},gt={class:"space-y-1"},yt={class:"flex items-center gap-2"},wt={class:"flex items-center gap-2"},bt={class:"flex items-center gap-2"},ht={class:"flex items-center gap-2"},_t={class:"flex items-center gap-2"},vt={class:"flex w-full !mt-2"},kt={class:"flex items-center gap-2 w-8/12"},Vt={class:"relative flex-1"},Bt={key:0},Ct={key:1},St={class:"flex m-auto w-1/12 items-center justify-center"},Pt={key:0,class:"animate-spin"},At={key:1,class:"text-green-500 text-xl"},Ut={key:2,class:"text-red-500 text-xl"},$t={class:"flex w-full !mt-2"},Wt={class:"flex items-center gap-2 w-8/12"},Nt={class:"flex m-auto w-1/12 items-center justify-center"},Rt={key:0,class:"animate-spin"},jt={key:1,class:"text-green-500 text-xl"},It={key:2,class:"text-red-500 text-xl"},Kt={class:"flex w-full !mt-2"},Tt={class:"flex items-center gap-2 w-8/12"},qt={class:"flex flex-1 gap-2"},zt={class:"flex m-auto w-1/12 items-center justify-center"},Et={key:0,class:"animate-spin"},Ft={key:1,class:"text-green-500 text-xl"},Lt={key:2,class:"text-red-500 text-xl"},Mt={class:"flex w-full !mt-2"},Dt={class:"flex items-center gap-2 w-8/12"},Ot={key:0,class:"flex-1 px-3 py-2 rounded-md text-black font-bold"},Zt={class:"flex m-auto w-1/12 items-center justify-center"},Gt={key:0,class:"animate-spin"},Ht={key:1,class:"text-green-500 text-xl"},Jt={key:2,class:"text-red-500 text-xl"},Qt={class:"flex w-full !mt-2"},Xt={class:"items-center gap-2 mt-1 w-8/12"},Yt={class:"flex mt-1"},te=["src"],ee={class:"space-y-2"},se={class:"flex items-start gap-2 text-white text-sm"},ae={class:"italic text-sm text-black"},oe={class:"flex flex-col items-center gap-4 pt-4"},le=["disabled"],ne={key:0,class:"animate-spin mr-2"},re={__name:"Register",props:{captchaSrc:{type:String,default:""},nonWWW:{type:String,default:""},tittleweb:{type:String,default:"Register"},ref:{type:String,default:""}},setup(v){var $;const k=v,y=(($=H().props)==null?void 0:$.ref)||"",{form:l,showPassword:V,showConfirmPassword:B,showPasswordCriteria:w,captchaSrc:R,showSuccessModal:j,alertMessage:C,isLoading:b,isRefreshingCaptcha:S,validations:r,passwordCriteria:p,onPasswordInput
1:I,onUsernameBlur:K,onPasswordBlur:T,onConfirmPasswordBlur:q,onEmailBlur:z,onPhoneBlur:E,onRefBlur:F,refreshCaptcha:f,togglePassword:P,toggleConfirmPassword:A,submit:U,handleSuccessOk:g}=Q({captchaSrc:k.captchaSrc||"/captcha/default",refValue:y||"",nonWWW:k.nonWWW||"",postRoute:"register.post"});return(de,e)=>{const L=M("Icon");return o(),h(J,null,{default:_(({go:pe})=>[s("div",X,[e[33]||(e[33]=s("label",{class:"ntf fs-13 !text-base"},"DAFTAR",-1)),e[34]||(e[34]=s("hr",{"data-v-560f7c10":"",class:"margin-0 tmargin-2 bmargin-3 bg-brown-panel"},null,-1)),t(C)?(o(),n("div",Y,m(t(C)),1)):d("",!0),s("form",{onSubmit:e[20]||(e[20]=W((...a)=>t(U)&&t(U)(...a),["prevent"])),class:"w-full !mt-4"},[s("div",tt,[i(c,{for:"username",value:"Username",class:"text-left w-3/12 my-auto"}),s("div",et,[i(x,{id:"username",type:"text",class:"mt-1 block w-full bg-white border-gray-700 py-1 text-sm",modelValue:t(l).username,"onUpdate:modelValue":e[0]||(e[0]=a=>t(l).username=a),onBlur:t(K),onKeyup:e[1]||(e[1]=a=>t(l).username=t(l).username.replace(/[^a-zA-Z0-9_]/g,"")),placeholder:"Username Account Anda",maxlength:"10",required:"",autofocus:""},null,8,["modelValue","onBlur"])]),s("div",st,[t(r).username.loading?(o(),n("span",at,"â³")):t(r).username.status===!0?(o(),n("span",ot,"â")):t(r).username.status===!1?(o(),n("span",lt,"â")):d("",!0)])]),s("div",nt,[i(c,{for:"password",value:"Password",class:"text-left w-3/12 my-auto"}),s("div",rt,[s("div",it,[i(x,{id:"password",type:t(V)?"text":"password",class:"mt-1 block w-full bg-white border-gray-700 pr-10 text-sm",modelValue:t(l).password,"onUpdate:modelValue":e[2]||(e[2]=a=>t(l).password=a),onInput:e[3]||(e[3]=a=>t(I)(t(l).password)),onFocus:e[4]||(e[4]=a=>w.value=!0),onBlur:e[5]||(e[5]=a=>{w.value=!1,t(T)()}),placeholder:"Kata Sandi Account Anda (contoh : Ex@mple123)",required:""},null,8,["type","modelValue"]),s("button",{type:"button",onClick:e[6]||(e[6]=(...a)=>t(P)&&t(P)(...a)),class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-white"},[t(V)?(o(),n("span",dt,"ðï¸")):(o(),n("span",pt,"ðï¸âð¨ï¸"))])])]),s("div",mt,[t(r).password.loading?(o(),n("span",ut,"â³")):t(r).password.status===!0?(o(),n("span",ct,"â")):t(r).password.status===!1?(o(),n("span",xt,"â")):d("",!0)])]),i(N,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-48","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-48","leave-to-class":"opacity-0 max-h-0"},{default:_(()=>[t(w)?(o(),n("div",ft,[s("ul",gt,[s("li",yt,[s("span",{class:u(t(p).minLength?"text-green-500":"text-red-500")},m(t(p).minLength?"â":"â"),3),e[24]||(e[24]=s("span",{class:"text-black"},"Password minimum 5 Digit",-1))]),s("li",wt,[s("span",{class:u(t(p).noSpace?"text-green-500":"text-red-500")},m(t(p).noSpace?"â":"â"),3),e[25]||(e[25]=s("span",{class:"text-black"},"Password tidak boleh spasi",-1))]),s("li",bt,[s("span",{class:u(t(p).startsAlphaNum?"text-green-500":"text-red-500")},m(t(p).startsAlphaNum?"â":"â"),3),e[26]||(e[26]=s("span",{class:"text-black"},"Password harus diawali huruf atau angka",-1))]),s("li",ht,[s("span",{class:u(t(p).noUsername?"text-green-500":"text-red-500")},m(t(p).noUsername?"â":"â"),3),e[27]||(e[27]=s("span",{class:"text-black"},"Password tidak boleh mengandung username",-1))]),s("li",_t,[s("span",{class:u(t(p).alphaNumCombo?"text-green-500":"text-red-500")},m(t(p).alphaNumCombo?"â":"â"),3),e[28]||(e[28]=s("span",{class:"text-black"},"Password harus kombinasi huruf dan angka",-1))])])])):d("",!0)]),_:1}),s("div",vt,[i(c,{for:"cpassword",value:"Konfirmasi Password",class:"text-left w-3/12 my-auto"}),s("div",kt,[s("div",Vt,[i(x,{id:"cpassword",type:t(B)?"text":"password",class:"mt-1 block w-full bg-white border-gray-700 pr-10 text-sm",modelValue:t(l).cpassword,"onUpdate:modelValue":e[7]||(e[7]=a=>t(l).cpassword=a),onBlur:t(q),placeholder:"Konfirmasi Password Account Anda",required:""},null,8,["type","modelValue","onBlur"]),s("button",{type:"button",onClick:e[8]||(e[8]=(...a)=>t(A)&&t(A)(...a)),class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-white"},[t(B)?(o(),n("span",Bt,"ðï¸")):(o(),n("span",Ct,"ðï¸âð¨ï¸"))])])]),s("div",St,[t(r).cpassword.loading?(
1o(),n("span",Pt,"â³")):d("",!0),t(r).cpassword.status===!0?(o(),n("span",At,"â")):t(r).cpassword.status===!1?(o(),n("span",Ut,"â")):d("",!0)])]),s("div",$t,[i(c,{for:"email",value:"Email",class:"w-3/12 my-auto"}),s("div",Wt,[i(x,{id:"email",type:"email",class:"mt-1 block w-full bg-white border-gray-700 text-sm",modelValue:t(l).email,"onUpdate:modelValue":e[9]||(e[9]=a=>t(l).email=a),onBlur:t(z),onKeyup:e[10]||(e[10]=a=>t(l).email=t(l).email.replace(/[^a-zA-Z0-9_.@]/g,"")),placeholder:"Email harus valid dan benar, [email protected]",maxlength:"40",required:""},null,8,["modelValue","onBlur"])]),s("div",Nt,[t(r).email.loading?(o(),n("span",Rt,"â³")):t(r).email.status===!0?(o(),n("span",jt,"â")):t(r).email.status===!1?(o(),n("span",It,"â")):d("",!0)])]),s("div",Kt,[i(c,{for:"phone",value:"No Telepon",class:"text-left w-3/12 my-auto"}),s("div",Tt,[s("div",qt,[e[29]||(e[29]=s("input",{type:"text",value:"+62",readonly:"",class:"w-12 text-sm px-3 py-2 bg-gray-600 border border-gray-700 rounded-md text-white cursor-not-allowed"},null,-1)),i(x,{id:"phone",type:"text",class:"flex-1 bg-white border-gray-700 text-sm",modelValue:t(l).phone,"onUpdate:modelValue":e[11]||(e[11]=a=>t(l).phone=a),onBlur:t(E),onKeyup:e[12]||(e[12]=a=>t(l).phone=t(l).phone.replace(/[^0-9]/g,"").replace(/^0+/,"")),placeholder:"Nomor Telepon Anda",maxlength:"13",required:""},null,8,["modelValue","onBlur"])])]),s("div",zt,[t(r).phone.loading?(o(),n("span",Et,"â³")):t(r).phone.status===!0?(o(),n("span",Ft,"â")):t(r).phone.status===!1?(o(),n("span",Lt,"â")):d("",!0)])]),s("div",Mt,[i(c,{for:"ref_text",value:"Referral",class:"w-3/12 my-auto"}),s("div",Dt,[t(y)?(o(),n("div",Ot,m(t(y).toUpperCase()),1)):(o(),h(x,{key:1,id:"ref_text",type:"text",class:"mt-1 block w-full bg-white border-gray-700 text-sm",modelValue:t(l).ref_text,"onUpdate:modelValue":e[13]||(e[13]=a=>t(l).ref_text=a),onBlur:t(F),placeholder:"Nama Referral *Ini tidak wajib diisi"},null,8,["modelValue","onBlur"]))]),s("div",Zt,[t(r).ref_text.loading?(o(),n("span",Gt,"â³")):t(r).ref_text.status===!0?(o(),n("span",Ht,"â")):t(r).ref_text.status===!1?(o(),n("span",Jt,"â")):d("",!0)])]),s("div",Qt,[i(c,{for:"captcha",value:"Validation",class:"w-3/12 my-auto"}),s("div",Xt,[i(x,{id:"captcha",type:"text",class:"w-full bg-white border-gray-700 text-sm",modelValue:t(l).captcha,"onUpdate:modelValue":e[14]||(e[14]=a=>t(l).captcha=a),onFocus:e[15]||(e[15]=a=>{t(l).captcha=""}),placeholder:"Captcha",maxlength:"5",onKeyup:e[16]||(e[16]=a=>t(l).captcha=t(l).captcha.replace(/[^0-9]/g,"")),required:""},null,8,["modelValue"]),s("div",Yt,[s("img",{src:t(R),alt:"Captcha",class:"h-10 mr-3 rounded cursor-pointer",onClick:e[17]||(e[17]=(...a)=>t(f)&&t(f)(...a)),onLoad:e[18]||(e[18]=a=>S.value=!1)},null,40,te),s("button",{type:"button",onClick:e[19]||(e[19]=(...a)=>t(f)&&t(f)(...a)),class:"text-[#f99f38] hover:text-[#ffb84d] transition-transform"},[i(L,{icon:"zondicons:reload",class:u({"animate-spin":t(S)}),width:"28",height:"28"},null,8,["class"])])])]),i(Z,{class:"mt-2 w-1/12",message:t(l).errors.captcha},null,8,["message"])]),s("div",ee,[s("label",se,[e[30]||(e[30]=s("input",{type:"checkbox",checked:"",class:"mt-1 rounded border-gray-600 bg-white"},null,-1)),s("span",ae,"Saya bersedia menerima email promosi "+m(v.nonWWW),1)]),e[31]||(e[31]=s("label",{class:"flex items-start gap-2 text-white text-sm"},[s("input",{type:"checkbox",checked:"",class:"mt-1 rounded border-gray-600 bg-white"}),s("span",{class:"italic text-sm text-black"},"Saya setuju dengan peraturan yang berlaku.")],-1))]),s("div",oe,[s("button",{type:"submit",class:u(["btn btn-green fs-normal regbtn",{"opacity-50 cursor-not-allowed":t(l).processing||t(b)}]),disabled:t(l).processing||t(b)},[t(b)?(o(),n("span",ne,"â³")):d("",!0),e[32]||(e[32]=D(" SUBMIT ",-1))],10,le)])],32)]),(o(),h(O,{to:"body"},[i(N,{"enter-active-class":"transition-opacity duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_(()=>[t(j)?(o(),n("div",{key:0,class:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center p-4",onClick:e[23]||(e[23]=(...a)=>t(g)&&t(g)(...a))},[s("div",{class:"bg-white rounded-xl p-8 text-center max-w-sm w-full shadow-2xl animate-bounce-in",onClick:e[22]||(e[22]=W(()=>{},["stop"]))},[e[35]||(e[35]=s("div",{class:"text-6xl text-green-500 mb-4 animate-bounce"},"â",-1)),e[36]||(e[36]=s("h2",{class:"text-2xl font-bold text-gray-800 mb
1-2"},"Selamat!",-1)),e[37]||(e[37]=s("p",{class:"text-gray-600 mb-6"},"Akun Anda berhasil dibuat.",-1)),s("button",{onClick:e[21]||(e[21]=(...a)=>t(g)&&t(g)(...a)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-8 rounded-lg transition-colors"}," OK ")])])):d("",!0)]),_:1})]))]),_:1})}}},es=G(re,[["__scopeId","data-v-ed28a354"]]);export{es 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.