1import{_ as b}from"./BouncingDots.CQJZ1P1-.js";import{_ as C}from"./ProductLoader.FlXTwAcT.js";import{_ as P}from"./client-only.CdBPenLZ.js";import{_ as B}from"./Index.vue.D-6Rl1x6.js";import{_ as q}from"./nuxt-link.Dmp1iV9N.js";import{b as L,g as N,k as O}from"./entry.2ehg4ZD6.js";import{l as E}from"./stripe.esm.BytsDmIO.js";import{u as R}from"./cart.ecZ5euuP.js";import{ac as p,c as T,C as V,G as i,L as m,u as h,H as A,P as _,_ as t,a9 as D,Q as s}from"./swiper-vue.iPC35nDh.js";import"./OrderItem.vue.Mwv4YnmI.js";import"./EntireMedia.C7G8GjGR.js";import"./EntireResize.x4YkSxw8.js";import"./dimensions.DOnGCwxX.js";import"./sprite.MSAEivaF.js";const I={class:"thankyou-page"},$={class:"thankyou-page--empty"},G=t("div",{class:"thankyou-page--empty__info el-heading el-heading--h3 h-center"},"Thank you for your order!",-1),H={class:"thankyou-page--empty__info el-heading el-heading--h3 h-center h-color--secondary"},K={class:"thankyou-page-loader"},M={key:1,class:"thankyou-page--empty"},Q=t("div",{class:"thankyou-page--empty__info el-heading el-heading--h3 h-center"},"Thank you for your support!",-1),U=t("div",{class:"thankyou-page--empty__info el-heading el-heading--h3 h-center h-color--secondary"}," Choose your first product and create a custom configuration that suits your taste preferences and materials of choice. ",-1),j=t("button",{type:"button",class:"el-button el-button--form-action"},"Start now",-1),_e={__name:"success",async setup(z){let e,o;const u=L();let d=null;const y=O(),n=N();let r=null;n.query.payment_intent?r=([e,o]=p(()=>Promise.all([u.fetchOrder({order_method_id:n.query.payment_intent})])),e=await e,o(),e):n.query.order_id&&(r=([e,o]=p(()=>Promise.all([u.fetchOrder({order_method_id:n.query.order_id})])),e=await e,o(),e));const[{data:l}]=r,f=R(),g=T(()=>l.value==null);return V(async()=>{d=await E(y.public.stripeKey);const c=new URLSearchParams(window.location.search).get("payment_intent_client_secret");if(!c)return;const{paymentIntent:a}=await d.retrievePaymentIntent(c);switch(console.log(a),console.log("payment status : ",a.status),a.status){case"succeeded":f.clearCart();break}}),(c,a)=>{const k=b,w=C,v=P,S=B,x=q;return i(),m("div",I,[h(g)?(i(),m("div",M,[Q,U,s(x,{to:"/#products"},{default:_(()=>[j]),_:1})])):(i(),A(S,{key:0,order:h(l),generate:!0},{default:_(()=>[t("div",$,[G,t("div",H,[D(" Please wait a moment until your manual and custom print files have been generated"),s(k)]),t("div",K,[s(v,null,{default:_(()=>[s(w)]),_:1})])])]),_:1},8,["order"]))])}}};export{_e 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.