1import{A as ee,v as te,x as k,j as s,B as n,y as e,H as m,q as l,f as r,I as d,i as p,G as se,T as ae,p as g,b as oe,a as le}from"./@vue-4474Gfnj.js";import{l as A,u as re}from"./@inertiajs-7zqq8wgj.js";import ne from"./Master-DsDqOD3O.js";import{_ as w}from"./InputError-DRXmsDfx.js";import{_ as c,a as y}from"./TextInput-hPSqJxED.js";import{_ as ie}from"./app-BQNyFDK5.js";import{u as de}from"./useRegisterForm-Efb-3lG_.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"./axios-DjWHqwoD.js";import"./lodash-es-DY0-vtN4.js";import"./laravel-precognition-BqdyoEeO.js";import"./Header-CdClvMjb.js";import"./InfoMarq-ch0ch5gJ.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";import"./Footer-CVnxiqXG.js";/* empty css */const ue={class:"red-box-cus container mx-auto px-2 pb-4"},pe={class:"max-w-3xl mx-auto"},me={class:"flex w-1/2 mb-5 gap-2"},ce={class:"border p-3 mb-4"},xe={class:"flex items-center gap-2"},fe={key:0,class:"break-all text-sm text-white"},ge={key:1,class:"text-sm text-gray-500"},we={key:0,class:"copy-toast text-white"},ye={key:0,class:"mb-4 p-3 bg-green-600 text-white rounded-lg text-sm text-center"},he={key:1,class:"mb-4 p-3 bg-red-600 text-white rounded-lg text-sm"},be={class:"flex"},_e={class:"flex items-center gap-2 w-9/12"},ve={class:"w-8 h-8 flex items-center justify-center"},ke={key:0,class:"animate-spin"},Ce={key:1,class:"text-green-500 text-xl"},Ve={key:2,class:"text-red-500 text-xl"},Be={class:"flex"},Pe={class:"flex items-center gap-2 w-9/12"},Ae={class:"relative flex-1"},Re={key:0},Ne={key:1},Ue={class:"w-8 h-8 flex items-center justify-center"},$e={key:0,class:"animate-spin"},Se={key:1,class:"text-green-500 text-xl"},Te={key:2,class:"text-red-500 text-xl"},je={key:0,class:"bg-white rounded-lg p-3 text-sm overflow-hidden"},Ke={class:"space-y-1"},Le={class:"flex items-center gap-2"},Ee={class:"flex items-center gap-2"},Ie={class:"flex items-center gap-2"},qe={class:"flex items-center gap-2"},De={class:"flex items-center gap-2"},Fe={class:"flex"},ze={class:"flex items-center gap-2 w-9/12"},Me={class:"relative flex-1"},Ze={key:0},Ge={key:1},He={class:"w-8 h-8 flex items-center justify-center"},Oe={key:0,class:"text-green-500 text-xl"},Je={key:1,class:"text-red-500 text-xl"},Qe={class:"flex"},We={class:"flex items-center gap-2 w-9/12"},Xe={class:"w-8 h-8 flex items-center justify-center"},Ye={key:0,class:"animate-spin"},et={key:1,class:"text-green-500 text-xl"},tt={key:2,class:"text-red-500 text-xl"},st={class:"flex"},at={class:"flex items-center gap-2 w-9/12"},ot={class:"flex flex-1 gap-2"},lt={class:"w-8 h-8 flex items-center justify-center"},rt={key:0,class:"animate-spin"},nt={key:1,class:"text-green-500 text-xl"},it={key:2,class:"text-red-500 text-xl"},dt={class:"flex"},ut={class:"flex"},pt={class:"flex items-center gap-2 w-9/12"},mt={class:"w-8 h-8 flex items-center justify-center"},ct={key:0,class:"animate-spin"},xt={key:1,class:"text-green-500 text-xl"},ft={key:2,class:"text-red-500 text-xl"},gt={class:"flex"},wt={class:"flex items-center gap-2 mt-1 w-9/12"},yt=["src"],ht={class:"flex flex-col items-center gap-4 pt-4"},bt=["disabled"],_t={key:0,class:"animate-spin mr-2"},vt={methods:{formatCurrency(x){let f=x;try{x&&typeof x=="object"&&"value"in x&&(f=x.value)}catch{f=x}const _=Number(f||0);return Number.isNaN(_)?"0":_}}},kt=Object.assign(vt,{__name:"Refreg",setup(x){var K,L,E,I,q,D,F;const f=re(),_=((E=(L=(K=f.props)==null?void 0:K.auth)==null?void 0:L.user)==null?void 0:E.loginid)??((q=(I=f.props)==null?void 0:I.user)==null?void 0:q.loginid)??"",C=oe(()=>`${window.location.origin}/ref/${_}`),V=(F=(D=f.props)==null?void 0:D.PassData)==null?void 0:F.domain,{form:a,showPassword:R,showConfirmPassword:N,showPasswordCriteria:B,captchaSrc:z,successMessage:M,alertMessage:U,isLoading:P,isRefreshingCaptcha:$,validations:i,passwordCriteria:u,onPasswordInput
1:Z,onUsernameBlur:G,onPasswordBlur:H,onConfirmPasswordBlur:O,onEmailBlur:J,onPhoneBlur:Q,onRefBlur:W,refreshCaptcha:v,togglePassword:S,toggleConfirmPassword:T,submit:j}=de({captchaSrc:"/captcha/default",postRoute:"refreg.post",debug:!0});a.ref_text=_||a.ref_text;function X(){const b=C.value;if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(b).then(()=>{h.value="Copied",setTimeout(()=>h.value="",2e3)});return}const t=document.createElement("input");t.value=b,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),h.value="Copied",setTimeout(()=>h.value="",2e3)}const h=le("");return(b,t)=>{const Y=ee("Icon");return l(),te(ne,{title:"RefData"},{default:k(()=>[s("div",ue,[t[40]||(t[40]=s("div",{class:"text-center mb-6 border-b-2 border-neutral-800"},[s("h1",{class:"text-3xl font-bold p-2 inline-block maincolor"},"DAFTAR REFERRAL BARU")],-1)),s("div",pe,[s("div",me,[n(e(A),{class:"btn-cus bg-gray-600 hover:bg-gray-400",href:b.route("refdata")},{default:k(()=>[...t[21]||(t[21]=[m("Data",-1)])]),_:1},8,["href"]),n(e(A),{class:"btn-cus bg-gray-600 hover:bg-gray-400",href:b.route("refcomm")},{default:k(()=>[...t[22]||(t[22]=[m("Komisi",-1)])]),_:1},8,["href"]),n(e(A),{class:"btn-cus bg-yellow-500 !text-black",href:b.route("refreg")},{default:k(()=>[...t[23]||(t[23]=[m("Daftar",-1)])]),_:1},8,["href"])]),s("fieldset",ce,[t[24]||(t[24]=s("legend",{class:"px-2 text-white"},"Link Referral:",-1)),s("div",xe,[C.value?(l(),r("label",fe,d(C.value),1)):(l(),r("span",ge,"-")),s("button",{class:"btn-cus bg-white !text-black ml-auto cursor-pointer",onClick:X,type:"button"},"Copy")]),h.value?(l(),r("div",we,d(h.value),1)):p("",!0)]),e(M)?(l(),r("div",ye,[m(d(e(V))+" - Pendaftaran Sukses",1),t[25]||(t[25]=s("br",null,null,-1)),t[26]||(t[26]=m(" Username : ",-1)),s("b",null,d(e(a).username),1),t[27]||(t[27]=s("br",null,null,-1)),m(" Silakan Login di "+d(e(V))+" ",1),t[28]||(t[28]=s("br",null,null,-1)),m(" Anda bisa melakukan deposit di website "+d(e(V)),1),t[29]||(t[29]=s("br",null,null,-1)),t[30]||(t[30]=m(" Terima Kasih ",-1))])):e(U)?(l(),r("div",he,d(e(U)),1)):p("",!0),s("form",{onSubmit:t[20]||(t[20]=se((...o)=>e(j)&&e(j)(...o),["prevent"])),class:"space-y-4 w-10/12 mx-auto"},[s("div",be,[n(c,{for:"username",value:"Username",class:"text-white text-left w-2/12 my-auto"}),s("div",_e,[n(y,{id:"username",type:"text",class:"mt-1 block w-full bg-white border-gray-700 py-1",modelValue:e(a).username,"onUpdate:modelValue":t[0]||(t[0]=o=>e(a).username=o),onBlur:e(G),autocomplete:"username",onKeyup:t[1]||(t[1]=o=>e(a).username=e(a).username.replace(/[^a-zA-Z0-9_]/g,"")),placeholder:"Username Account Anda",maxlength:"10",required:"",autofocus:""},null,8,["modelValue","onBlur"]),s("div",ve,[e(i).username.loading?(l(),r("span",ke,"â³")):e(i).username.status===!0?(l(),r("span",Ce,"â")):e(i).username.status===!1?(l(),r("span",Ve,"â")):p("",!0)])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.username},null,8,["message"])]),s("div",Be,[n(c,{for:"password",value:"Password",class:"text-white text-left w-2/12 my-auto"}),s("div",Pe,[s("div",Ae,[n(y,{id:"passwordref",type:e(R)?"text":"password",class:"mt-1 block w-full bg-white border-gray-700 pr-10",modelValue:e(a).password,"onUpdate:modelValue":t[2]||(t[2]=o=>e(a).password=o),onInput:t[3]||(t[3]=o=>e(Z)(e(a).password)),autocomplete:"new-password",onFocus:t[4]||(t[4]=o=>B.value=!0),onBlur:t[5]||(t[5]=o=>{B.value=!1,e(H)()}),placeholder:"Kata Sandi Account Anda (contoh : Ex@mple123)",required:""},null,8,["type","modelValue"]),s("button",{type:"button",onClick:t[6]||(t[6]=(...o)=>e(S)&&e(S)(...o)),class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-white"},[e(R)?(l(),r("span",Re,"ðï¸")):(l(),r("span",Ne,"ðï¸âð¨ï¸"))])]),s("div",Ue,[e(i).password.loading?(l(),r("span",$e,"â³")):e(i).password.status===!0?(l(),r("span",Se,"â")):e(i).password.status===!1?(l(),r("span",Te,"â")):p("",!0)])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.password},null,8,["message"])]),n(ae,{"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:k(()=>[e(B)?(l(),r("div",je,[s("ul",Ke,[s("li",Le,[s("span",{class:g(e(u).minLength?"text-green-500":"text-red-500")},d(e(u).minLength?"â":"â"),3),t[31]||(t[31]=s("span",{class:"text-black"},"Password minimum 5 Digit",-1))]),s("li",Ee,[s("span",{class:g(e(u).noSpace?"text-green-500":"text-red-500")},d(e(u).noSpace?"â":"â"),3),t[32]||(t[32]=s("span",{class:"text-black"},"Password tidak boleh spasi",-1))]),s("li",Ie,[s("span",{class:g(e(u).startsAlphaNum?"text-green-500":"text-red-500")},d(e(u).startsAlphaNum?"â":"â"),3),t[33]||(t[33]=s("span",{class:"text-black"},"Password harus diawali huruf atau angka",-1))]),s("li",qe,[s("span",{class:g(e(u).noUsername?"text-green-500":"text-red-500")},d(e(u).noUsername?"â":"â"),3),t[34]||(t[34]=s("span",{class:"text-black"},"Password tidak boleh mengandung username",-1))]),s("li",De,[s("span",{class:g(e(u).alphaNumCombo?"text-green-500":"text-red-500")},d(e(u).alphaNumCombo?"â":"â"),3),t[35]||(t[35]=s("span",{class:"text-black"},"Password harus kombinasi huruf dan angka",-1))])])])):p("",!0)]),_:1}),s("div",Fe,[n(c,{for:"cpassword",value:"Konfirmasi Password",class:"text-white w-2/12 my-auto"}),s("div",ze,[s("div",Me,[n(y,{id:"cpassword",type:e(N)?"text":"password",class:"mt-1 block w-full bg-white border-gray-700 pr-10",modelValue:e(a).cpassword,"onUpdate:modelValue":t[7]||(t[7]=o=>e(a).cpassword=o),onBlur:e(O),autocomplete:"new-password",placeholder:"Konfirmasi Password Account Anda",required:""},null,8,["type","modelValue","onBlur"]),s("button",{type:"button",onClick:t[8]||(t[8]=(...o)=>e(T)&&e(T)(...o)),class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-white"},[e(N)?(l(),r("span",Ze,"ðï¸")):(l(),r("span",Ge,"ðï¸âð¨ï¸"))])]),s("div",He,[e(i).cpassword.status===!0?(l(),r("span",Oe,"â")):e(i).cpassword.status===!1?(l(),r("span",Je,"â")):p("",!0)])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.cpassword},null,8,["message"])]),s("div",Qe,[n(c,{for:"email",value:"Email",class:"text-white w-2/12 my-auto"}),s("div",We,[n(y,{id:"email",type:"email",class:"mt-1 block w-full bg-white border-gray-700",modelValue:e(a).email,"onUpdate:modelValue":t[9]||(t[9]=o=>e(a).email=o),onBlur:e(J),autocomplete:"email",onKeyup:t[10]||(t[10]=o=>e(a).email=e(a).email.replace(/[^a-zA-Z0-9_.@]/g,"")),placeholder:"Email harus valid dan benar, [email protected]",maxlength:"40",required:""},null,8,["modelValue","onBlur"]),s("div",Xe,[e(i).email.loading?(l(),r("span",Ye,"â³")):e(i).email.status===!0?(l(),r("span",et,"â")):e(i).email.status===!1?(l(),r("span",tt,"â")):p("",!0)])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.email},null,8,["message"])]),s("div",st,[n(c,{for:"phone",value:"No Telepon",class:"text-white w-2/12 my-auto"}
1),s("div",at,[s("div",ot,[t[36]||(t[36]=s("input",{type:"text",value:"+62",readonly:"",class:"w-16 px-3 py-2 bg-gray-600 border border-gray-700 rounded-md text-white cursor-not-allowed"},null,-1)),n(y,{id:"phone",type:"text",class:"flex-1 bg-white border-gray-700",modelValue:e(a).phone,"onUpdate:modelValue":t[11]||(t[11]=o=>e(a).phone=o),onBlur:e(Q),autocomplete:"tel",onKeyup:t[12]||(t[12]=o=>e(a).phone=e(a).phone.replace(/[^0-9]/g,"").replace(/^0+/,"")),placeholder:"Nomor Telepon Anda",maxlength:"13",required:""},null,8,["modelValue","onBlur"])]),s("div",lt,[e(i).phone.loading?(l(),r("span",rt,"â³")):e(i).phone.status===!0?(l(),r("span",nt,"â")):e(i).phone.status===!1?(l(),r("span",it,"â")):p("",!0)])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.phone},null,8,["message"])]),s("div",dt,[n(c,{for:"saham",value:"Saham Referral",class:"text-white w-2/12 my-auto"}),t[37]||(t[37]=s("div",{class:"flex items-center gap-2 w-9/12"},[s("div",{class:"flex flex-1 gap-2"},[s("span",{class:"text-white"},"16.85%")])],-1))]),s("div",ut,[n(c,{for:"ref_text",value:"Referral",class:"text-white w-2/12 my-auto"}),s("div",pt,[n(y,{id:"ref_text",type:"text",class:"mt-1 block w-full bg-white border-gray-700 read-only:bg-gray-600 read-only:text-white read-only:cursor-not-allowed read-only:border-gray-700",modelValue:e(a).ref_text,"onUpdate:modelValue":t[13]||(t[13]=o=>e(a).ref_text=o),onBlur:e(W),readonly:"",autocomplete:"off",placeholder:"Nama Referral *Ini tidak wajib diisi"},null,8,["modelValue","onBlur"]),s("div",mt,[e(i).ref_text.loading?(l(),r("span",ct,"â³")):e(i).ref_text.status===!0?(l(),r("span",xt,"â")):e(i).ref_text.status===!1?(l(),r("span",ft,"â")):p("",!0)])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.ref_text},null,8,["message"])]),s("div",gt,[n(c,{for:"captcha",value:"Validation",class:"text-white w-2/12 my-auto"}),s("div",wt,[n(y,{id:"captcha",type:"text",class:"w-40 bg-white border-gray-700",modelValue:e(a).captcha,"onUpdate:modelValue":t[14]||(t[14]=o=>e(a).captcha=o),onFocus:t[15]||(t[15]=o=>{e(a).captcha="",e(v)()}),autocomplete:"off",placeholder:"Captcha",maxlength:"5",onKeyup:t[16]||(t[16]=o=>e(a).captcha=e(a).captcha.replace(/[^0-9]/g,"")),required:""},null,8,["modelValue"]),s("img",{src:e(z),alt:"Captcha",class:"h-10 rounded cursor-pointer",onClick:t[17]||(t[17]=(...o)=>e(v)&&e(v)(...o)),onLoad:t[18]||(t[18]=o=>$.value=!1)},null,40,yt),s("button",{type:"button",onClick:t[19]||(t[19]=(...o)=>e(v)&&e(v)(...o)),class:"text-[#f99f38] hover:text-[#ffb84d] transition-transform"},[n(Y,{icon:"zondicons:reload",class:g({"animate-spin":e($)}),width:"20",height:"20"},null,8,["class"])])]),n(w,{class:"mt-2 w-1/12",message:e(a).errors.captcha},null,8,["message"])]),t[39]||(t[39]=s("div",{class:"space-y-2"},[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"},"Saya bersedia menerima email promosi")]),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"},"Saya setuju dengan peraturan yang berlaku.")])],-1)),s("div",ht,[s("button",{type:"submit",class:g(["btn-cus btn-blue",{"opacity-50 cursor-not-allowed":e(a).processing||e(P)}]),disabled:e(a).processing||e(P)},[e(P)?(l(),r("span",_t,"â³")):p("",!0),t[38]||(t[38]=m(" SUBMIT ",-1))],10,bt)])],32)])])]),_:1})}}}),rs=ie(kt,[["__scopeId","data-v-42e265dd"]]);export{rs 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.