PageSourceSearch

https://nagapkr88.co/build/assets/VA-B_Cp5Jk8.js

js nagapkr88.co collected 2026-09-28 00:48:17 UTC 10,271 bytes, 1 lines download raw bytes

1import{a as u,o as J,w as Q,z as W,A as X,v as Y,x as Z,j as e,B as v,y as B,q as _,f as w,G as ee,I as y,i as te,F as ne,l as ae,g as oe,L as S,M as D,H as L,b as R}from"./@vue-4474Gfnj.js";import{a as ie,u as le}from"./@inertiajs-7zqq8wgj.js";import re from"./Master-C-BPO2ui.js";import{_ as se}from"./DepositTabs-DF-Zp7UW.js";import de from"./main-field-CbCMfWR0.js";import ue from"./qd-field-8TP-KXoy.js";import U from"./info-CinhxLES.js";import{_ as ce}from"./BankSchedule-DQmDki6d.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-DricLq1r.js";import"./app-CC255QP7.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";import"./InfoMarq-ch0ch5gJ.js";import"./Footer-CfBK3qku.js";/* empty css                                                               */import"./QuickDepositLoader-DoQkcPSd.js";const me={class:"red-box-cus container mx-auto px-2 pb-4"},pe={class:"flex w-full p-4 rounded gap-5"},fe={class:"w-7/12"},ve={key:0,class:"text-white"},be={key:0,class:"bg-red-900 border border-red-700 rounded p-4 mb-3"},ge={class:"text-sm text-red-100"},he={style:{width:"100%",display:"flex","flex-direction":"column",padding:"0 1rem 0 0","margin-top":"1rem"}},_e=["data-code","data-fee","data-min_amount","data-max_amount","onClick"],ye={style:{width:"80%",height:"100%","background-color":"#0083cb",padding:"1rem 1rem","border-radius":"0.25rem 0 0 0.25rem","font-size":"16px","font-weight":"400",display:"flex","align-items":"center"}},xe={style:{"margin-left":"1rem"}},ke={style:{width:"20%","background-color":"#ffffff",padding:"0.5rem 1rem","border-radius":"0 0.25rem 0.25rem 0",display:"flex","align-items":"center"}},we={id:"serviceFeeContainer",style:{width:"100%",display:"flex","flex-direction":"row","margin-top":"1.25rem","align-items":"center"}},Ce={style:{width:"75%","text-align":"left"}},Me={id:"serviceFee"},Ie={id:"uniqueCodeContainer",style:{width:"100%",display:"flex","flex-direction":"row","margin-top":"1.25rem","align-items":"center"}},Te={style:{width:"75%","text-align":"left"}},Be={id:"uniqueCode"},Se={id:"totalFeeContainer",style:{width:"100%",display:"flex","flex-direction":"row","margin-top":"1.25rem","align-items":"center"}},De={style:{width:"75%","text-align":"left"}},Fe={id:"totalFee"},Ne={style:{width:"100%",display:"flex",padding:"0 1rem 0 0","margin-top":"2rem"}},Ee=["disabled"],Ae={class:"bg-green-800 border border-green-700 rounded p-4 my-3",id:"resultAlert"},qe={class:"alert alert-success",style:{width:"100%"}},Ve=["href"],Le={key:1,class:"text-white"},Re={class:"mb-4"},Ue={class:"border border-neutral-700 bg-white p-2",style:{"min-height":"1270px"}},$e=["src"],je={class:"w-5/12"},St={__name:"VA",setup(Ke){const l=le().props,F=u(l.paymentMethods||[]),A=l.firstMinMax||{min:0,max:0},b=u(""),$=l.PassData.getBankSchedule||null,C=u(0),N=R(()=>{const n=Number(b.value)||0,t=F.value[C.value]||null;if(!t||!n)return 0;const a=Number(t.fee)||0;return Math.round(n*a/100)}),j=R(()=>(Number(b.value)||0)+N.value+(m.value||0));let g=null;function K(){return String(Math.floor(Math.random()*900)+100)}function P(){const n=document.getElementById("totalFee"),t=document.getElementById("uniqueCode"),a=document.getElementById("uniqueCodeInfo");g&&clearInterval(g),g=setInterval(()=>{try{if(!n||!t)return;const r=(n.innerText||"").trim().replace(/\D/g,"");if(!r){a&&(a.style.display="none");return}const d=K();let c;r.length<=3?c=d:c=r.slice(0,-3)+d;try{const k=new Intl.NumberFormat("id-ID").format(Number(c));n.innerText=k}catch{n.innerText=c}t.innerText=d,a&&(a.style.display="block")}catch{}},100)}const m=u(null),p=u(!1),o=u(""),M=l.pendingTransaction||null,I=u(!!M),x=u(!1),s=u(""),E=ie({type:"ewallet",code:"",amount:""});let h=null;function T(){h&&clearTimeout(h),o.value&&(h=setTimeout(()=>{const n=document.getElementById("pgaresultlink");n&&n.click()},3e3))}function z(){if(!o.value)return;const n=document.createElement("a");n.href=o.value,n.target="_blank",n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),document.body.removeChild(n)}function O(){if(!o.value)return;const n=o.value;if(navigator&&navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(n).catch(()=>{const t=document.createElement("textarea");t.value=n,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)});else{const t=document.createElement("textarea");t.value=n,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}function G(n){b.value=String(n||""),b.value&&Number(b.value)>0?m.value=Math.floor(Math.random()*899)+100:m.value=null}function H(n){C.value=n}async function q(){if(x.value)return;const n=F.value[C.value];if(!n)return;const t=Number(b.value)||0;if(!(t<=0)){x.value=!0;try{try{s.value="",E.code=n.code,E.amount=t,await E.post(route("deposit.pgas.create-bill"),{preserveScroll:!0,onSuccess:a=>{var r,d,c,k,V;p.value=!0;const i=((d=(r=a.props)==null?void 0:r.pendingTransaction)==null?void 0:d.form_url)||((c=a.props)==null?void 0:c.form_url)||null;if(i){o.value=i;const f=document.createElement("a");f.href=i,f.target="_blank",f.rel="noopener noreferrer",f.style.display="none",document.body.appendChild(f),f.click(),document.body.removeChild(f)}(V=(k=a.props)==null?void 0:k.flash)!=null&&V.error?s.value=a.props.flash.error:s.value=""},onError:a=>{try{s.value=Object.values(a)[0]||JSON.stringify(a)}catch{s.value="Validation error"}}})}catch(a){console.error("create-bill exception",a),s.value=a.message||"Unknown error"}}catch(a){console.error(a)}finally{x.value=!1}}}return J(()=>{P(),M&&M.form_url?(o.value=M.form_url,p.value=!0,I.value=!0,T()):l.form_url?(o.value=l.form_url,p.value=!0,I.value=!0,T()):l.flash&&l.flash.form_url&&(o.value=l.flash.form_url,p.value=!0,I.value=!0,T()),Q([p,o],()=>{p.value&&o.value&&T()})}),W(()=>{g&&(clearInterval(g),g=null),h&&(clearTimeout(h),h=null)}),(n,t)=>{const a=X("image-component");return _(),Y(re,{title:"Deposit"},{default:Z(()=>[e("div",me,[t[9]||(t[9]=e("div",{class:"text-center mb-6 border-b-2 border-neutral-800"},[e("h1",{class:"text-3xl font-bold maincolor px-2 py-1 inline-block"},"Virtual Account")],-1)),v(se,{active:"virtual-account","pgas-enabled-types":B(l).pgas_enabled_types},null,8,["pgas-enabled-types"]),e("div",pe,[e("div",fe,[I.value?(_(),w("div",Le,[e("div",Re,[t[8]||(t[8]=e("div",{class:"bg-blue-100 p-4 rounded mb-3 text-center text-sm text-blue-800"},"Silakan melakukan pembayaran transaksi Anda. Klik tombol di bawah jika invoice gagal ditampilkan.",-1)),e("div",{class:"grid grid-cols-2 gap-4 mb-3"},[e("button",{type:"button",class:"btn-login p-2 btn-blue rounded items-start",onClick:z},"Buka invoice di tab baru"),e("button",{type:"button",class:"btn-login p-2 btn-blue rounded items-end",onClick:O},"Salin tautan invoice")]),e("div",Ue,[e("iframe",{src:o.value,class:"w-full h-full",style:{"min-height":"1270px"},frameborder:"0"},null,8,$e)])])])):(_(),w("div",ve,[e("form",{onSubmit:ee(q,["prevent"])},[s.value?(_(),w("div",be,[e("div",ge,y(s.value),1)])):te("",!0),v(de,{firstMinMax:B(A),"onUpdate:amount":G},null,8,["firstMinMax"]),v(ue,{firstMinMax:B(A)},null,8,["firstMinMax"]),v(U,{hidden:!0,id:"uniqueCodeInfo",infoContent:"Anda bisa membayar dengan transfer melalui ATM, Internet Banking & Mobile Banking."}),e("div",he,[(_(!0),w(ne,null,ae(F.value,(i,r)=>{var d;return _(),w("div",{key:r,class:"payment-method","data-code":i.code,"data-fee":i.fee,"data-min_amount":i.min_amount,"data-max_amount":i.max_amount,style:{display:"flex","flex-direction":"row",width:"100%","text-align":"left","margin-top":"0.5rem","border-radius":"0.25rem",cursor:"pointer"},tabindex:"0",onClick:c=>H(r)},[e("div",ye,[e("div",{class:"active-indicator",style:oe({width:"20px",height:"20px",border:"3px solid #0c0c0c",borderRadius:"100%",background:r===C.value?"#22e57b":"#0c0c0c"})},null,4),e("span",xe,y(i.title),1)]),e("div",ke,[v(a,{"image-src":(d=i.raw)==null?void 0:d.icon_url,style:{width:"100%"}},null,8,["image-src"])])],8,_e)}),128))]),S(e("div",we,[t[1]||(t[1]=e("label",{style:{width:"25%","text-align":"left"}},[e("span",null,"Biaya Layanan")],-1)),e("label",Ce,[t[0]||(t[0]=e("span",null,":   IDR ",-1)),e("span",Me,y(N.value.toLocaleStr
1ing("id-ID")),1)])],512),[[D,m.value!==null]]),S(e("div",Ie,[t[3]||(t[3]=e("label",{style:{width:"25%","text-align":"left"}},[e("span",null,"Kode Unik")],-1)),e("label",Te,[t[2]||(t[2]=e("span",null,":   ",-1)),e("span",Be,y(m.value),1)])],512),[[D,m.value!==null]]),S(e("div",Se,[t[5]||(t[5]=e("label",{style:{width:"25%","text-align":"left"}},[e("span",null,"Total Biaya")],-1)),e("label",De,[t[4]||(t[4]=e("span",null,":   IDR ",-1)),e("span",Fe,y(j.value.toLocaleString("id-ID")),1)])],512),[[D,N.value>0||m.value!==null]]),v(U,{hidden:!0,id:"uniqueCodeInfo",infoContent:"Demi keamanan dan kenyamanan nominal unik akan tampil setelah melakukan pengisian form"}),e("div",Ne,[e("button",{type:"button",class:"btn-login btn-blue rounded p-2",style:{width:"40%",margin:"0 auto"},onClick:q,disabled:x.value},y(x.value?"Mengirim...":"KIRIM"),9,Ee)]),S(e("div",Ae,[e("div",qe,[t[6]||(t[6]=L(" Permintaan deposit berhasil! Anda akan diarahkan ke halaman invoice. ",-1)),e("a",{href:o.value,target:"_blank",id:"pgaresultlink",class:"text-link"},"Klik di sini",8,Ve),t[7]||(t[7]=L(" jika Anda tidak diarahkan setelah 5 detik. ",-1))])],512),[[D,p.value&&!s.value]])],32)]))]),e("div",je,[v(ce,{schedules:B($)},null,8,["schedules"])])])])]),_:1})}}};export{St 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.