1import{_ as l}from"./BRz_m0pf.js";import{_ as f}from"./BDeqDCRD.js";import{f as y,a8 as h,$ as v,d as r,S as s,c as g,w as E,aa as $,ab as k,ac as x,o as c,q as i,g as C,j as w,a as B}from"./BEQDRGZu.js";import"./Cds-sYxm.js";import"./DKkg-gxU.js";import"./BXn9_Wi1.js";import"./DZtHvcg4.js";const q=["innerHTML"],F=y({__name:"payment",setup(L){const n=h(),m=x(),u=v(),t=r(),a=r();async function p(){try{const e=await $fetch(`${m.public.clientApiEndpoint}/api/payments/ecpay/form/${n.query.paymentUid}`,{method:"GET",headers:{authorization:`Bearer ${u.token||"none"}`}});t.value=e}catch(e){$((e==null?void 0:e.toString())||k)}}return s(()=>[a.value,t.value],()=>{var e;if(a.value&&t.value){const o=document.createElement("script");o.textContent='document.getElementById("__ecpayForm").submit()',o.async=!0,(e=a.value)==null||e.appendChild(o)}}),s(()=>n.query,()=>{p()},{immediate:!0}),(e,o)=>{const _=l,d=f;return c(),g(d,null,{default:E(()=>[i(t)?(c(),C("div",{key:0,ref_key:"myDiv",ref:a,innerHTML:i(t)},null,8,q)):w("",!0),B(_,{show:!0})]),_:1})}}});
1export{F 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.