PageSourceSearch

https://wagrab.com/assets/BankPaymentDevPage.3a191240.js

js wagrab.com collected 2026-10-02 14:24:51 UTC 3,762 bytes, 1 lines download raw bytes

1import{u as D,_ as R,Q as E,a as M,b as Y,c as $}from"./PaymentHeader.62ed2baf.js";import{ae as z,r as n,o as A,Y as C,j as s,C as m,D as v,a4 as B,Z as t,$ as l,B as P,a0 as H,a1 as q,a2 as h}from"./index.d8369006.js";import{Q as I,f as L,l as O}from"./use-id.2b0c9cdd.js";const U={class:"bg-primary full-width row justify-center items-center",style:{height:"100vh"}},K={class:"text-body1 q-mb-md"},Z={style:{"line-height":"30px"}},F={style:{"line-height":"30px"}},G={style:{"line-height":"30px"}},J={style:{"line-height":"30px"}},W={class:"text-h4 text-center"},X={key:1,class:"text-body1"},oe={__name:"BankPaymentDevPage",setup(ee){const Q=D(),x=z(),y=n(""),c=n(),_=n(),k=n(),u=n(!1),r=n(""),i=n(),f=n(),b=n(0),g=n(),w=n(),p=n();function j(){$(i.value||""),Q.notify({message:"Token tercopy",color:"info"})}const N=async function(){if(c.value=x.currentRoute.value.query.code,_.value=x.currentRoute.value.query.token,!c.value)return;const o=`https://dev.wagrab.com/items/subscriptions?filter[payment_code][_eq]=${c.value}&fields=*.*`,d=await(await fetch(o)).json();if(!d.data||!d.data.length)return;const a=d.data[0];a.user_created&&(y.value=a.user_created.email.split("@")[0]||""),a.currency==="usd"&&a.price<100&&(a.price*=1e4,a.discount*=1e4),i.value=a.payment_code,f.value=a.promo_code,b.value=a.price,g.value=a.discount,w.value=(a.price-a.discount).toLocaleString(),k.value=a.status,a.duration==="trimonthly"&&(p.value="3 Bulan"),a.duration==="sixmonthly"&&(p.value="6 Bulan"),a.duration==="yearly"&&(p.value="1 Tahun")},V=function(){if(!!c.value&&k.value==="approved"){u.value=!0,r.value="Invoice sudah dibayar!";return}};async function S(){window.snap.pay(_.value,{onSuccess:function(){u.value=!0,r.value="Terima kasih atas pembayarannya!"},onPending:function(){u.value=!0,r.value="Pembayaran pending. Refresh untuk update."},onError:function(){r.value="Pembayaran gagal."}})}const T=()=>{const o=document.createElement("script");o.type="text/javascript",o.src="https://app.sandbox.midtrans.com/snap/snap.js",o.dataset.clientKey="SB-Mid-client-_7HTmy-jgCNhOSYL",document.body.appendChild(o)};return A(()=>{T(),N(),V()}),(o,e)=>(v(),C("div",U,[s(I,{class:"q-pa-md",style:{"border-radius":"25px","min-width":"40vw"}},{default:m(()=>[s(R,{"package-duration":p.value},null,8,["package-duration"]),s(L,null,{default:m(()=>[s(E,{color:"warning",class:"full-width q-mb-md text-body1 column items-start"},{default:m(()=>e[1]||(e[1]=[B("Save the payment or license code below. "),t("br",null,null,-1),t("b",null,"Use to change the number.",-1)])),_:1}),t("div",null,[e[2]||(e[2]=t("div",{class:"text-body1"},"Your phone number:",-1)),s(M,{class:"q-mt-xs",outlined:"",dense:"",modelValue:y.value,"onUpdate:modelValue":e[0]||(e[0]=d=>y.value=d),placeholder:"Nomor HP Anda"},null,8,["modelValue"])]),t("table",K,[t("tr",Z,[e[3]||(e[3]=t("td",null,"Payment Code",-1)),e[4]||(e[4]=t("td",null,":",-1)),t("td",null,[B(l(i.value?i.value:"-")+" ",1),i.value?(v(),P(q,{key:0,dense:"",round:"",flat:"",size:"sm",color:"info",icon:H(O),onClick:j,class:"q-ma-none q-pa-none"},null,8,["icon"])):h("",!0)])]),t("tr",F,[e[5]||(e[5]=t("td",null,"Promo Code",-1)),e[6]||(e[6]=t("td",null,":",-1)),t("td",null,l(f.value?f.value:"-"),1)]),t("tr",G,[e[7]||(e[7]=t("td",null,"Price",-1)),e[8]||(e[8]=t("td",null,":",-1)),t("td",null,l(b.value?b.value:"-"),1)]),t("tr",J,[e[9]||(e[9]=t("td",null,"Discount",-1)),e[10]||(e[10]=t("td",null,":",-1)),t("td",null,l(g.value?g.value:"-"),1)])]),t("p",W,"Rp. "+l(w.value),1)]),_:1}),s(Y,{class:"row q-mb-sm justify-center"},{default:m(()=>[u.value?h("",!0):(v(),P(q,{key:0,rounded:"",unelevated:"",color:"primary",size:"lg",label:"Pay Now",onClick:S})),u.value?(v(),C("p",X,l(r.value),1)):h("",!0)]),_:1})]),_:1})]))}};export{oe 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.