1import{bo as y,be as c,bf as g,bj as e,bk as o,cs as w,bq as $,fk as I,co as k,bO as q,bN as R,bZ as C,fl as u,cJ as L,fm as D,by as p,bl as T,bg as f,bi as i,bu as b,bL as B,bP as m}from"./Dus7iMKz.js";import{h as S,i as M,j as N}from"./C6I56RJv.js";import{b as O,c as V}from"./DoF97dPs.js";import{R as j}from"./BvaOV6CM.js";import{R as x}from"./DNRE2JET.js";import{C as E}from"./xd4S6CyB.js";import{M as F}from"./xDIgsLQ1.js";import"./CAoyKSQy.js";import"./Bc12DARX.js";import"./CHdgm6zm.js";import"./BOKV-M25.js";import"./BvEueam4.js";import"./_rforvXH.js";import"./B4wlGpwE.js";import"./BMVEEE2Y.js";import"./YQ4jXBDF.js";import"./Bii2ooBM.js";import"./D4Hqk9tz.js";import"./BILo_GaG.js";import"./CIR3dMIJ.js";import"./NtVjWzlQ.js";import"./CnEho_q9.js";import"./CBWAfL2f.js";import"./QgGM4E4p.js";import"./CBSlkiRM.js";import"./DdopVrzO.js";import"./CG67rvdW.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="9ebae77a-cc8b-4f36-b847-412d4bc46235",s._sentryDebugIdIdentifier="sentry-dbid-9ebae77a-cc8b-4f36-b847-412d4bc46235")}catch{}})();const H={name:"Redeemtimmer",props:["timeLeft","transactionId","currency","withdraw","banned"],data(){return{interval:null,time:"00:00:00",date:"00:00:00",left:0}},async mounted(){if(this.banned){this.time=this.$t("redeem-now.general-error");return}this.left=this.timeLeft;const s=this.$i18n.locale==="pl"||this.$i18n.locale==="sk"?"H:mm":"h:mm A";this.currency==="USDC"?this.time=this.$t("redeem-now.sent-10-min"):(this.date=w().add(this.left,"seconds").format(s),this.time=`${this.$t("redeem-now.sent-at")} ${this.date}.`),this.interval=$(async()=>{if(this.left--,this.left===0||this.date<=w().format(s))return clearInterval(this.interval),this.$router.push({path:`/successful-redeem-order?id=${this.transactionId}&withdraw=${this.withdraw}`});if(this.left<=600&&this.left%10===0){const{sent:a}=await I(this.transactionId,this.withdraw||0);if(a)return clearInterval(this.interval),this.$router.push({path:`/successful-redeem-order?id=${this.transactionId}&withdraw=${this.withdraw}`})}},1e3)},beforeUnmount(){clearInterval(this.interval)}},P={class:"timer-wrapper"},U={class:"timer-data"};function A(s,a,r,d,l,h){return c(),g("div",P,[e("div",U,[e("h2",null,o(l.time),1)])])}const J=Object.assign(y(H,[["render",A]]),{__name:"RedeemFormRedeemTimer"}),Z={class:"redeem-page page"},z={class:"display-none-header"},G={class:"page__main"},K={class:"elements-wrapper"},Q={class:"title-order-info"},W={class:"black"},X={class:"steps-bar-text"},Y={style:{"margin-left":"85px"}},Ce=k({__name:"order-in-progress",setup(s){const a=q(),r=R(),d=m(0),l=m(!1),h=m(!1),n=m({voucher:null,wallet:null,value:null,withdrawalFee:null,currency:"BTC",transactionId:null,total:null,timeLeft:0});return C(async()=>{if(a.setLoading(!0),!r.query.id&&!r.query.w)return u("/");let t;if(d.value=r.query.withdraw?1:0,r.query.id)t=await L(r.query.id);else if(r.query.w)t=await D(r.query.w);else return u("/");if(a.setLoading(!1),t.b&&(l.value=!0),d.value&&t.status==="waiting-for-verification"&&(h.value=!0),t.alreadySent)return u({path:"/successful-redeem-order",query:{id:t.transactionId,withdraw:d.value}});n.value=t}),(t,_)=>{const v=B;return c(),p(v,null,{default:T(()=>[e("div",Z,[e("div",z,[f(E),f(F)]),e("main",G,[e("div",K,[e("div",Q,[e("h1",W,o(t.$t("redeem-now.orderInProgrss")),1),e("p",null,o(t.$t("redeem-now.orderInfo")),1)]),_[0]||(_[0]=e("div",{class:"steps-bar redeem-steps"},[e("div",null,[e("img",{class:"d-step",src:S,alt:"step"}),e("img",{class:"m-step",src:M,alt:"step"})]),e("div",{class:"divider dark-divider__checked"}),e("div",null,[e("img",{class:"d-step",src:N,alt:"step"}),e("img",{class:"m-step",src:O,alt:"step"})]),e("div",{class:"divider dark-divider"}),e("div",null,[e("img",{src:V,alt:"step"})])],-1)),e("div",X,[e("p",null,o(t.$t("redeem-now.redeem")),1),e("p",Y,o(t.$t("redeem-now.transactionSummary")),1),e("p",null,o(t.$t("redeem-now.transactionCompleted")),1)]),i(n).timeLeft||i(l)?(c(),p(J,{key:0,banned:i(l),currency:i(n).currency,"time-left":i(n).timeLeft,"transaction-id":i(n).transactionId,withdraw:i(d)},null,8,["banned","currency","time-left","transaction-id","withdraw"])):b("",!0),i(n).transactionId?(c(),p(j,{key:1,details:i(n)},null,8,["details"])):b("",!0),f(x)])])])]),_:1})}}});
1export{Ce 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.