1import{d as p,a4 as d,b as l,o as u,e as s,v as h,x as f,I as g,C as _,j as m,w as y,B as v}from"./vue-runtimeBcw72k-n.js";import{_ as w}from"./chunkReloadRecoveryC4XyrbqR.js";import"./cjs-helpersC4iS2aBk.js";import"./bootstrap-vue-nextD6HU9H8G.js";import"./dexie2jmnBxhj.js";const S=p({name:"OrderStatus",data(){return{loading:!0,storeConfig:{},subscription:null,errorMessage:null,message:null,stripe:null}},async mounted(){this.includeStripe("js.stripe.com/v3/",(function(){this.configure()}).bind(this))},computed:{},methods:{includeStripe(e,t){var r;let a=document,i="script",o=a.createElement(i),n=a.getElementsByTagName(i)[0];o.src="//"+e,t&&o.addEventListener("load",function(c){t(null,c)},!1),(r=n==null?void 0:n.parentNode)==null||r.insertBefore(o,n)},async configure(){await this.loadStoreConfig(),this.stripe=window.Stripe(this.storeConfig.stripPublishableKey);const e=new URLSearchParams(window.location.search).get("payment_intent_client_secret");this.stripe.retrievePaymentIntent(e).then(({paymentIntent:t})=>{switch(t.status){case"succeeded":this.message="Success! Payment received.";break;case"processing":this.message="Payment processing. We'll update you when payment is received.";break;case"requires_payment_method":this.message="Payment failed. Please try another payment method.";break;default:this.message="Something went wrong.";break}this.RefreshAccountInfo(!0,!0),this.auth.refreshCurrentUser(),this.loading=!1})},async loadStoreConfig(){const e=await this.typedSendReq("/store/config");e.success&&e.result?this.storeConfig=e.result:console.error("Error:",e)}},async created(){}}),b={class:"mx-auto"},C={class:"cardo mx-auto text-center border rounded m-4 shadow p-4"},k={class:"mx-auto"},x={key:0},B={class:"text-center mt-3"};function P(e,t,a,i,o,n){const r=d("b-spinner"),c=d("router-link");return u(),l("div",null,[s("div",b,[t[1]||(t[1]=s("div",{class:"text-center"},[s("div",{class:"h1"},"Status")],-1)),s("div",C,[s("div",k,[h(s("div",null,_(e.message),513),[[g,!e.loading]]),e.loading?(u(),l("div",x,[m(r,{label:"Loading..."})])):f("",!0)])]),s("div",B,[m(c,{to:"/support"},{default:y(()=>[...t[0]||(t[0]=[v(" Back ",-1)])]),_:1})])])])}const I=w(S,[["render",P]]);export{I 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.