1import{r as o,aV as h,p as s,ak as f,at as w}from"./index-C9IH3k-2.js";import{A}from"./Add3rdPartyScript-CynHdFNV.js";const m="o",a={ready:"rl_payuCheckoutReady",init:"rl_payuCheckoutInit",done:"rl_payuCheckoutDone"},u="Payment gateway is not loaded. Please refresh and try again.",l="An error occurred during payment. Please try again.",b=()=>{const c=o.useRef(!1);return o.useEffect(()=>{const{documentElement:t,body:n}=document,r=[t.style.background,n.style.background];return t.style.background="transparent",n.style.background="transparent",()=>{[t.style.background,n.style.background]=r}},[]),o.useEffect(()=>{const t=new URLSearchParams(window.location.search).get(m);if(!t)return;const n=e=>window.parent.postMessage(e,t),r=e=>{c.current||(c.current=!0,n({type:a.done,...e}))},p=({paymentData:e,userDetails:y})=>{if(!e||!window.bolt)return r({error:u});try{window.bolt.launch({...e,...y},{responseHandler:g=>r({response:g?.response}),catchException:()=>r({error:l})})}catch{r({error:l})}},i=e=>{e.origin===t&&e.data?.type===a.init&&p(e.data)};window.addEventListener("message",i);const d=()=>n({type:a.ready});return window.bolt?d():A(h).then(d).catch(()=>r({error:u})),()=>window.removeEventListener("message",i)},[]),s.jsx("div",{style:{height:"100vh",display:"grid",placeItems:"center",background:"transparent"},children:s.jsx(f,{indicator:s.jsx(w,{spin:!0}),size:"large"})})};export{b 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.