1var $=(f,i,p)=>new Promise((y,h)=>{var m=n=>{try{d(p.next(n))}catch(s){h(s)}},k=n=>{try{d(p.throw(n))}catch(s){h(s)}},d=n=>n.done?y(n.value):Promise.resolve(n.value).then(m,k);d((p=p.apply(f,i)).next())});import{d as H,b as K,K as L,r as F,c as T,e as B,o as Y,j as C,i as o,n as l,g as e,G as U,D as P,N as w,f as b,l as I,F as N,k as u,t as W,p as q,q as z,h as c,_ as J}from"./entry.c55ffabf.js";import{u as Q,I as O}from"./icon_circle_close.5a7f89d0.js";import{u as X}from"./useToast.70b6f554.js";import{u as Z}from"./useLoading.e1af9ed2.js";import{p as M}from"./filter.a104e2af.js";import{n as ee}from"./navigation.e1a8c0a2.js";import{s as oe,a as te,l as ne,O as D}from"./auth.cd331406.js";import{I as R}from"./icon_check.8af11e13.js";import{I as V}from"./icon_uncheck.cb3715b2.js";import"./device.3bf4a32e.js";import"./address.dbcf008e.js";const _=f=>(q("data-v-9185ba2c"),f=f(),z(),f),se=_(()=>o("li",null,[u("Limit s.d. "),o("b",null,"Rp100Juta!"),u(" Bayar nanti 40 hari "),o("b",null,"bunga 0%"),u(" terus & cicilan s.d. "),o("b",null,"12 bulan.")],-1)),ae=_(()=>o("li",null,[u("Nikmati voucher potongan total s.d. "),o("b",null,"Rp200Rb"),u(" belanja dimana saja & kapan saja pakai Yup!")],-1)),ie=[se,ae],le={class:"field-input"},ce=_(()=>o("label",{for:"phone"}
1,"Nomor HP kamu",-1)),de={class:"otp-container"},re=["disabled"],ue={class:"other-phone-otp"},pe=["disabled"],me=["disabled"],ke={class:"field-input"},fe=_(()=>o("label",{for:"code"},"Kode OTP",-1)),be={class:"service-terms"},_e=_(()=>o("p",{class:"content"},"Dengan memilih kotak di samping, kamu setuju untuk menerima materi pemasaran dan promosi dari Yup.",-1)),he=_(()=>o("p",{class:"content"},"Dengan berpartisipasi dalam aktivitas ini, kamu menyetujui Syarat & Ketentuan Yup.",-1)),ve=H({__name:"BD",setup(f){const{prefixCls:i}=K("active-landing"),{ga:p}=L(),{run:y,timeText:h,isRun:m}=Q(),{$toast:k}=X(),{$loading:d}=Z(),n=F({phone:"",code:""}),s=F({phoneFocus:!1,codeFocus:!1,checkbox1:!0,checkbox2:!0}),j=T(),g=T(),A=B(()=>s.phoneFocus||!!n.phone),E=B(()=>s.codeFocus||!!n.code);function v(r,t){s[r]=t,r==="codeFocus"&&t&&setTimeout(()=>{g.value&&g.value.scrollIntoView({behavior:"smooth"})},100)}function S(r){n[r]=""}function x(r){return $(this,null,function*(){if(!m.value){if(!(yield M(n.phone)))return k("Masukkan 9-15 Digit Nomor HP dimulai dengan angka 08");d.show();try{if(!(yield oe({username:n.phone,otp_type:r,scene:te.BD_LANDING_PAGE})))return;k("Berhasil dikirim"),y()}finally{d.hide()}}})}function G(){return $(this,null,function*(){if(!(yield M(n.phone))){k("Masukkan 9-15 Digit Nomor HP dimulai dengan angka 08");return}if(!n.code||n.code.length!==4||isNaN(Number(n.code))){k("Format kode verifikasi salah");return}if(!s.checkbox1||!s.checkbox2){k("Beri centang untuk menyetujui syarat dan ketentuan kami");return}d.show(),p("click_BD_landingpage_mainbtn");try{if(!(yield ne({username:n.phone,code:n.code,channel:"Web",utm_source:"BD - scan_test",utm_content:"Tel_h5_v1_button"})))return;ee()}finally{d.hide()}})}return Y(()=>{p("show_BD_landingpage")}),(r,t)=>(c(),C("div",{class:l([e(i)])},[o("div",{class:l(`${e(i)}-container`)},[o("div",{class:l(`${e(i)}-content`)},[o("h3",{class:l(`${e(i)}-content__title`)},"Gabung Yup Sekarang",2),o("div",{class:l(`${e(i)}-scroll`)},[o("ul",{class:l(`${e(i)}-content__description`)},ie,2),o("form",{class:l(`${e(i)}-content-form`),onSubmit:t[13]||(t[13]=U(()=>{},["prevent"]))},[o("div",{class:l(`${e(i)}-content-form__item`)},[o("div",{class:l(["field",{active:e(A)}])},[o("div",le,[ce,P(o("input",{ref_key:"telRef",ref:j,"onUpdate:modelValue":t[0]||(t[0]=a=>e(n).phone=a),type:"tel",id:"phone",name:"phone",enterkeyhint:"done",onFocus:t[1]||(t[1]=a=>v("phoneFocus",!0)),onBlur:t[2]||(t[2]=a=>v("phoneFocus",!1))},null,544),[[w,e(n).phone]]),e(n).phone?(c(),b(e(O),{key:0,filled:"",class:"input-clear",onClick:t[3]||(t[3]=a=>S("phone"))})):I("",!0)]),o("div",de,[o("button",{type:"button",disabled:e(m),onClick:t[4]||(t[4]=a=>x(e(D).WHATSAPP))},[e(m)?(c(),C(N,{key:0},[u(W(e(h)),1)],64)):(c(),C(N,{key:1},[u("Kirim WA OTP")],64))],8,re)])],2),o("div",ue,[u(" Permintaan OTP lainnya: "),o("button",{type:"button",disabled:e(m),onClick:t[5]||(t[5]=a=>x(e(D).SMS))}," SMS OTP ",8,pe),o("button",{type:"button",disabled:e(m),onClick:t[6]||(t[6]=a=>x(e(D).VOICE))}," Voice OTP ",8,me)])],2),o("div",{class:l(`${e(i)}-content-form__item`)},[o("div",{class:l(["field",{active:e(E)}])},[o("div",ke,[fe,P(o("input",{ref_key:"codeRef",ref:g,"onUpdate:modelValue":t[7]||(t[7]=a=>e(n).code=a),type:"tel",id:"code",name:"code",enterkeyhint:"done",onFocus:t[8]||(t[8]=a=>v("codeFocus",!0)),onBlur:t[9]||(t[9]=a=>v("codeFocus",!1))},null,544),[[w,e(n).code]]),e(n).code?(c(),b(e(O),{key:0,filled:"",class:"input-clear",onClick:t[10]||(t[10]=a=>S("code"))})):I("",!0)])],2)],2),o("div",{class:l(`${e(i)}-content-form__item`)},[o("ul",be,[o("li",{onClick:t[11]||(t[11]=a=>e(s).checkbox1=!e(s).checkbox1)},[e(s).checkbox1?(c(),b(e(R),{key:1,filled:"",class:"checkbox text-17px"})):(c(),b(e(V),{key:0,filled:"",class:"checkbox text-17px"})),_e]),o("li",{onClick:t[12]||(t[12]=a=>e(s).checkbox2=!e(s).checkbox2)},[e(s).checkbox2?(c(),b(e(R),{key:1,filled:"",class:"checkbox text-17px"})):(c(),b(e(V),{key:0,filled:"",class:"checkbox text-17px"})),he])])],2)],34)],2)],2),o("div",{class:l([`${e(i)}-footer`])},[o("button",{type:"submit",onClick:G}
1,"Gabung Sekarang")],2)],2)],2))}});const Ie=J(ve,[["__scopeId","data-v-9185ba2c"]]);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.