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