PageSourceSearch

https://static-v1.mydramawave.com/frontend_static/assets/philippines-gift-Bv8WCDs0.js

js mydramawave.com collected 2026-10-02 05:57:19 UTC 7,286 bytes, 1 lines download raw bytes

1import{c as D,an as O}from"./index-BsQ57qF-.js";import{d as E}from"./dialog-bg-mIP-3nCD.js";import{u as $,a as q}from"./use-account-info-ksqfvOdX.js";import{A as Y}from"./account-error-display-C0mlxv6-.js";import{a as z}from"./track-DUPWnDkQ.js";import{o as T}from"./open-dialog-DjI3zNrs.js";import{u as U}from"./use-free-redeem-DGPP6vTU.js";import{c as W}from"./use-gift-redeem-handler-N_eQu5BB.js";import{s as Z}from"./use-validation-rules-D5IlxVMu.js";import{h as u,c as J,m as e,Z as w,H as Q}from"./v-deps-DTwyrOR8.js";import{B as C}from"./button-DxffMNmN.js";import"./coins-api-xtPfTt0P.js";import"./redeem-dialog-3F71dymP.js";import"./pix-dialog-CH2z1VCS.js";import"./cashout-page-DuqGEA4j.js";import"./back-light-CjGIYL1M.js";import"./back-D304ezgz.js";import"./use-wallet-data-_dtlZN-d.js";import"./withdrawal-fail-dialog-DXSc9RP-.js";import"./use-preloaded-translation-DfN7WPMw.js";import"./meal-check-in-api-DMmlDoyT.js";import"./update-bg-DQW9L6_0.js";import"./index-CABe2VTF.js";import"./vue-helper-DfQqxeTk.js";function X(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Q(t)}let p,g;const P=(t,o,n)=>typeof o=="string"?o:t,f={firstInputTitle:"Ilagay ang numero ng cellphone ng Gcash account",secondInputTitle:"Kumpirmahin ang numero ng GCash",firstInputPlaceholder:"Ang numero ng GCash ay dapat magsimula sa '09'",secondInputPlaceholder:"Kumpirmahin ang numero ng GCash",notMatchError:"Hindi tugma ang numero, subukang muli",emptyError:"Hindi puwedeng walang laman ang numero ng cellphone"},Ae=D({props:{gift:{cashAmount:"",type:"philippines",level_id:"",third_channel:"payermax"},TAuto:P}},t=>{var B,_;const{t:o}=O(),n=t.TAuto||P,b=u(""),i=u(""),s=u(""),F=u(!1),a=u(""),G=u(!1),{errorIconShow:R,accountError:S}=$(n),{openRedeemSuccessDialog:H,openRedeemFailDialog:N,commonTitle:k}=U(((B=t==null?void 0:t.gift)==null?void 0:B.type)||"",n),{initAccountInfo:M,hasAccountInfo:V}=q({giftType:((_=t.gift)==null?void 0:_.type)||"philippines",fieldMap:{account:"account",confirmAccount:"confirmPhone",fullName:"full_name"},needHandleResponse:!1}),A=u(!1),d=u(""),x=u(""),j=()=>{let l;p==null||p(),g=T({customClass:"bg-transparent shadow-none gap-y-0",mainClass:"rounded-sm",title:k,closeVisible:!0,body:e("x-exchange-body",{style:{backgroundImage:`url(${E})`},class:"mb-4 flex flex-col rounded-xl bg-cover bg-no-repeat pb-6 pt-12"},[e("x-body-main",{class:"mx-4 flex flex-col"},[e("x-title",{class:"line-clamp-2 w-full text-center text-lg font-bold text-[#090609]"},[n("coins.exchange.transferXConfirm",o("coins.exchange.transferXConfirm",{X:""}),{X:""})]),e("x-content",{class:"mb-6 mt-2 w-full text-center text-sm text-[#4d4e4f]"},[n("coins.exchange.transferToYourAccountX",o("coins.exchange.transferToYourAccountX",{X:a.value}),{X:a.value})]),e(C,{class:"h-11 w-full rounded-lg border-none bg-[--fr-brand-1] text-base font-bold text-white",onClick:K},X(l=n("coins.exchange.confirmBtn",o("coins.exchange.confirmBtn")))?l:{default:()=>[l]}),e(C,{class:"mt-3 w-full border-none bg-transparent text-base text-[#A1A0A3]",onClick:()=>{g==null||g(),I()}},{default:()=>[w("Go Back")]})])])})},{redeemHandler:K}=W({redeemLoading:F,clickloading:G,getRiskCheckKey:()=>a.value||"",getTrackPopupGift:()=>{var l,r,c,m;return{type:(l=t.gift)==null?void 0:l.type,SKUID:((c=(r=t.gift)==null?void 0:r.level_id)==null?void 0:c.toString())||"",amount:((m=t.gift)==null?void 0:m.cashAmount)||""}},getRedeemPayload:()=>{var l,r,c,m;return{account:a.value||"",type:((l=t==null?void 0:t.gift)==null?void 0:l.type)||"",third_channel:((r=t.gift)==null?void 0:r.third_channel)||"",full_name:((c=d.value)==null?void 0:c.trim())||"",level_id:((m=t==null?void 0:t.gift)==null?void 0:m.level_id)||""}},closeConfirmDialog:()=>g==null?void 0:g(),closeConfirmAccountDialog:()=>p==null?void 0:p(),openRedeemSuccessDialog:H,openRedeemFailDialog:N}),L=async()=>{z("redeemlevel","redeemlevel","click",{gift_type:t.gift.type});try{if(!A.value){const l={account:a,confirmPhone:b,full_name:d};V(l,["account","confirmPhone","full_name"])||await M(l),A.value=!0}}catch{}I()},I=()=>{const l=()=>{if(i.value="",!a.value){i.value=f.emptyError;return}if(!a.value.startsWith("09")){i.value=f.notMatchError;return}if(a.value.length!==11||!/^\d+$/.test(a.value)){i.value=f.notMatchError;return}i.value=""},r=()=>{b.value!==a.value?s.value=f.notMatchError:s.value=""};p=T({customClass:"bg-transparent shadow-none gap-y-0",title:k,closeVisible:!0,body:()=>{var m;
1let c;return e("x-exchange-body",{style:{backgroundImage:`url(${E})`},class:"mb-4 flex flex-col rounded-xl bg-cover bg-no-repeat pb-6 pt-12"},[e("x-body-main",{class:"mx-4 flex flex-col gap-y-4"},[e("x-title",{class:"truncate text-center text-lg font-bold text-[#090609]"},[o("coins.exchange.transferConfirm")]),e("x-form",null,[e("x-form-item",{class:"block text-sm"},[e("x-form-label",{class:"font-bold text-black"},[f.firstInputTitle]),e("input",{type:"number",value:a.value,onBlur:l,onInput:h=>{a.value=h.target.value,s.value="",l()},placeholder:f.firstInputPlaceholder,class:"dramato-input mt-2 bg-transparent py-3 pl-0 text-black"},null),e("x-line",{class:"border-top-1 block h-px w-full border-0 border-t border-solid border-[#CCCACB]"},[w(" ")]),e(Y,{errorIconShow:R.value,accountError:i.value||S.value},null)]),e("x-form-item",{class:"mt-4 block text-sm"},[e("x-form-label",{class:"font-bold text-black"},[f.secondInputTitle]),e("input",{type:"number",value:b.value,onBlur:r,onInput:h=>{b.value=h.target.value,s.value="",r()},placeholder:f.secondInputPlaceholder,class:"dramato-input mt-2 bg-transparent py-3 pl-0 text-black"},null),e("x-line",{class:"border-top-1 block h-px w-full border-0 border-t border-solid border-[#CCCACB]"},[w(" ")]),s.value&&e("x-error",{class:"line-clamp-2 w-full pt-[4px] text-xs text-[#FF3B30]"},[s.value])]),window.location.href.includes("/free-app/")&&e("x-form-item",{class:"mt-4 block text-sm"},[e("x-form-label",{class:"font-bold text-black"},[n("free.withdrawalpage.fullname.label")]),e("input",{value:d.value,maxlength:100,onInput:h=>{d.value=h.target.value,x.value="",y()},onBlur:y,placeholder:n("free.withdrawalpage.fullname.maxlength"),class:"dramato-input mt-2 bg-transparent py-3 pl-0 text-black"},null),e("x-line",{class:"border-top-1 block h-px w-full border-0 border-t border-solid border-[#CCCACB]"},null),x.value&&e("x-error",{class:"line-clamp-2 w-full pt-[4px] text-xs text-[#FF3B30]"},[x.value])])]),e(C,{disabled:!a.value||!b.value||window.location.href.includes("/free-app/")&&(!((m=d.value)!=null&&m.trim())||d.value.trim().length<3)||!!i.value||!!s.value||window.location.href.includes("/free-app/")&&!!x.value,class:"mt-4  h-11 w-full  rounded-lg border-none bg-[--fr-brand-1] text-base font-bold text-white disabled:!bg-[--fr-brand-3] disabled:text-[#fdfbfc]/50",onClick:()=>{l(),r(),window.location.href.includes("/free-app/")&&y(),!(i.value||s.value||window.location.href.includes("/free-app/")&&x.value)&&j()}},X(c=n("coins.exchange.transferX",o("coins.exchange.transferX",{X:""}),{X:""}))?c:{default:()=>[c]})])])}})},y=()=>{Z(d,x,n("free.withdrawalpage.fullname.error.required",o("free.withdrawalpage.fullname.error.required")))},v=J();return v&&(v.exposed=v.exposed||{},Object.assign(v.exposed,{handleClick:L})),()=>null});export{Ae as PhilippinesGift};

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.