PageSourceSearch

https://panel.whogohost.com/_nuxt/BVnz5w0Z.js

js whogohost.com collected 2026-10-03 22:42:43 UTC 1,694 bytes, 1 lines download raw bytes

1import{a9 as u,b as d,a3 as y,L as m}from"./BsIkG1OG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9f683c4f-18df-4b85-b952-8986ceead886",e._sentryDebugIdIdentifier="sentry-dbid-9f683c4f-18df-4b85-b952-8986ceead886")}catch{}})();const p=()=>{const e=m(!1),n=async(t,a)=>{if(e.value)return{success:!1,message:"Payment is already being processed"};y().gateways.find(s=>s.name===t)?.type,e.value=!0;try{const{$apiFetch:s}=d(),l=["banktransfer","selcomalt"].includes(t)?`${window.location.origin}/billing/invoice/`:`${window.location.origin}/payment/callback`,i=await s(`/api/payments/invoice/${a.invoiceId}/pay`,{method:"POST",body:{gateway:t,callback_url:l,...a.forceNewCard?{force_new_card:!0}:{}}});if(i.data?.success){const c=i.data.data;return window.location.href=c.authorization_url,{success:!0,message:"Redirecting to payment gateway...",data:c}}else throw new Error(i.data?.message||"Failed to initialize payment")}catch(s){return{success:!1,message:s?.data?.statusMessage||s?.data?.message||s?.message||"Payment failed"}}finally{e.value=!1}},o=async t=>{try{const{$apiFetch:a}=d(),r=await a(`/api/payments/verify/${t}`,{method:"GET"});if(r.data?.success)return{success:!0,message:"Payment verified successfully",data:r.data.data};throw new Error(r.data?.message||"Payment verification failed")}catch(a){return console.error("❌ Payment verification failed:",a),{success:!1,message:a.data?.statusMessage||"Payment verification failed"}}};return{processing:u(e),initiatePayment:n,verifyPayment:o}};export{p as u};

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.