1"use strict";(globalThis["webpackChunkazrhymes"]=globalThis["webpackChunkazrhymes"]||[]).push([[6022],{46022:(e,t,a)=>{a.r(t),a.d(t,{default:()=>$});var s=a(61758),r=a(58790);const i={class:"container wait-payment-page"},n={key:0},o={class:"text-negative q-my-md","data-e2e":"purchase-error"},l={key:1};function c(e,t,a,c,h,p){const u=(0,s.g2)("q-icon"),m=(0,s.g2)("q-btn"),g=(0,s.g2)("q-spinner"),d=(0,s.g2)("q-card-section"),P=(0,s.g2)("q-card");return(0,s.uX)(),(0,s.CE)("div",i,[(0,s.bF)(P,{class:"q-pa-xl text-center",flat:""},{default:(0,s.k6)((()=>[(0,s.bF)(d,null,{default:(0,s.k6)((()=>[h.errorMessage?((0,s.uX)(),(0,s.CE)("div",n,[(0,s.Lk)("div",o,[(0,s.bF)(u,{name:"error",size:"md",class:"q-mr-sm"}),(0,s.eW)(" "+(0,r.v_)(h.errorMessage),1)]),(0,s.bF)(m,{label:e.$t("wfp.backToProfile"),"no-caps":"",color:"primary",rounded:"",to:{name:"profile"},"data-e2e":"back"},null,8,["label"])])):((0,s.uX)(),(0,s.CE)("div",l,[(0,s.Lk)("h2",null,(0,r.v_)(e.$t("wfp.yourPaymentIsBeingProcessed")),1),(0,s.Lk)("p",null,(0,r.v_)(e.$t("wfp.waitingForPaymentCompany")),1),h.isPolling&&!h.errorMessage?((0,s.uX)(),(0,s.Wv)(g,{key:0,color:"primary",size:"3em",class:"q-my-lg"})):(0,s.Q3)("",!0)]))])),_:1})])),_:1})])}var h=a(36980),p=a(47893),u=a(9120),m=a(9042);const g={name:"WaitForPayment",mixins:[(0,p.A)((function(){return{title:this.$t("wfp.title")}}))],data(){return{isPolling:!1,paymentPoller:null,errorMessage:null,successMessage:null,purchaseData:null}},created(){this.$gtag.event("page_view",{page_title:"WaitForPayment"}),this.purchaseData=u.A.getItem("purchaseData"),this.purchaseData&&this.purchaseData.priceId&&this.purchaseData.timestamp?this.startPollingPaymentStatus():this.errorMessage=this.$t("wfp.missingPaymentData")},beforeUnmount(){this.stopPolling()},methods:{...(0,h.i0)("userData",["load"]),startPollingPaymentStatus(){this.stopPolling(),this.isPolling=!0,this.errorMessage=null,this.successMessage=null,"ai-credits"===this.$route.query.product?this.paymentPoller=(0,m.Zn)({priceId:this.purchaseData.priceId,timestamp:this.purchaseData.timestamp,onSuccess:async()=>{await this.handlePaymentSuccess()},onError:e=>{this.handlePaymentError(e)},onWaiting:()=>{console.log("Waiting for payment confirmation...")}}):(this.errorMessage=this.$t("wfp.invalidProduct"),this.stopPolling())},stopPolling(){this.paymentPoller&&(this.paymentPoller.stop(),this.paymentPoller=null),this.isPolling=!1},async handlePaymentSuccess(){this.stopPolling(),await this.load(!0),u.A.remove("purchaseData"),this.$q.notify({color:"positive",position:"top",message:this.$t("wfp.purchaseSuccess"),timeout:5e3}),this.navigateToProfile()},handlePaymentError(e){this.stopPolling(),this.errorMessage=this.$t("wfp.purchaseError"),console.error("Purchase error:",e),u.A.remove("purchaseData")},navigateToProfile(){this.$router.push({path:this.purchaseData?.returnPath})}}};var d=a(12807),P=a(97569),y=a(27066),f=a(24609),v=a(69001),w=a(11895),b=a(98582),k=a.n(b);const D=(0,d.A)(g,[["render",c]]),$=D;k()(g,"components",{QCard:P.A,QCardSection:y.A,QIcon:f.A,QBtn:v.A,QSpinner:w.A})}}]);
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.