PageSourceSearch

https://app.v1ce.co/build/assets/Checkout-7d581588.js

js v1ce.co collected 2026-09-26 00:15:41 UTC 1,691 bytes, 1 lines download raw bytes

1import{r as l,o as c,c as i,b as d,g as p,n as k,t as m,q as u}from"./createPinia-5647c5a7.js";import{l as P}from"./index-4f8414fb.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";import"./_commonjsHelpers-23102255.js";import"./___vite-browser-external_commonjs-proxy-760c9547.js";const w={class:"checkout-container"},C=["disabled"],x={key:0,class:"loading-spinner"},B={key:0,class:"error-message"},I={__name:"Checkout",props:{stripe_key:String},setup(_){const y=P(_.stripe_key),s=l(!1),t=l(""),f=async()=>{var r,n;s.value=!0;try{const a="pm_1QKavUHynTwd7GDcEZk3atGT",{data:e}=await u.post("/payment/create_intent",{payment_method:a}),g=await y;if(e.status==="requires_action"){const{client_secret:h}=e,o=await g.handleCardAction(h);o.error?t.value=o.error.message:await v(o.paymentIntent.id)}else e.status==="succeeded"?alert("Payment succeeded! Order is being created."):t.value="Payment failed. Please try again."}catch(a){t.value=((n=(r=a.response)==null?void 0:r.data)==null?void 0:n.error)||a.message}finally{s.value=!1}},v=async r=>{var n,a;try{const{data:e}=await u.post("/payment/confirm_payment",{payment_intent_id:r});e.status==="succeeded"?alert("Order created successfully!"):t.value="Failed to confirm payment. Please try again."}catch(e){t.value=((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.error)||e.message}};return(r,n)=>(c(),i("div",w,[d("button",{onClick:f,disabled:s.value,class:"payment-button"},[s.value?(c(),i("span",x)):p("",!0),d("span",{class:k({"ml-2":s.value})},m(s.value?"Processing Payment...":"Pay Now"),3)],8,C),t.value?(c(),i("p",B," ❌ "+m(t.value),1)):p("",!0)]))}},G=b(I,[["__scopeId","data-v-d290c3eb"]]);export{G 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.