1import{t as i}from"./chunk-4N6VE7H7-Exqj4PTM.js";import{a as s}from"./apiUrl-CPPZcCHl.js";import{u as c,v as m}from"./paymentMethods-B503QdFI.js";import{h as p}from"./constants-CmaRX5ba.js";const b=()=>{const[r,t]=i.useState(!1),{clientFetch:a}=c();return{isLoading:r,transaction:async e=>{t(!0);const n={...e,idempotencyKey:m()},o=await a({body:n,endpoint:s.payments.transaction(),method:"POST",sentryReport:{obfuscate:["billingDetails"],remove:["idempotencyKey","paymentMethodNonce","paymentMethodToken"]}});return t(!1),o},transactionConfirm:async(e,n)=>{t(!0);const o=await a({body:{...e,returnUrl:p},endpoint:s.payments.transactionConfirm(n),method:"POST",sentryReport:{obfuscate:["billingDetails"],remove:["paymentMethodNonce","paymentMethodToken"]}});return t(!1),o}}};export{b 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.