1import{$s as B,Ec as C,Gd as n,Kd as s,Mu as N,Nr as E,Oi as H,Ps as R,Qn as A,Rd as h,Sf as v,Td as W,Ud as o,Us as V,Wd as _,Xd as g,Yd as b,Yn as z,ap as a,cc as U,ec as I,ep as S,ff as k,if as j,kd as q,lt as G,mf as c,nc as Y,np as T,od as K,on as w,pf as M,qs as F,qt as Z,u as D,uf as t,vf as Q,wc as P}from"./DRtw6qQx.js";import{t as X}from"./DhAXn6H9.js";import{t as J}from"./BEf9SOjw.js";import{t as x}from"./Br2JQMDz.js";var ee={class:"payment-skeleton-loader"},te={class:"payment-skeleton-loader__card"},ae=Object.assign({name:"PaymentSkeletonLoader"},{__name:"PaymentSkeletonLoader",setup(e){return(i,p)=>(t(),s("div",ee,[o("div",te,[g(D,{width:"100%",height:30,"background-color":"var(--secondary-color-30)"}),g(D,{width:"100%",height:10,"background-color":"var(--secondary-color-30)"})])]))}}),se=ae,ie={name:"PayoutCard",props:{isCrypto:Boolean,systemMethod:Object|String,activeMethod:String,url:String,isMethodAsIcon:Boolean,network:String,isDisabled:{type:Boolean,default:!1},hasFeeLabel:Boolean},emits:["select-method"],computed:{...C({isUserAdmin:e=>e.user.userInformation.userData?.isAdmin}),isLabelImage(){const e=this.systemMethod?.label;return e?K(e,["svg","png","webp","jpg","jpeg"]):!1},isTabAdminOnly(){return this.isUserAdmin&&this.systemMethod?.state_admin==="active"&&this.systemMethod?.state!=="active"&&this.systemMethod?.state_merchant!=="active"},isActiveMethod(){return this.activeMethod===this.systemMethod?.key_name||this.activeMethod===this.systemMethod},isCryptoMethod(){return this.systemMethod?.category===V.CRYPTO||this.isCrypto},name(){return this.systemMethod?.payoutMethodName||this.systemMethod},currency(){return this.systemMethod?.currency||this.systemMethod},fullName(){return this.isCryptoMethod?R(this.currency):this.name},fee(){return this.systemMethod.fee?.default?.percent||this.systemMethod.fee?.percent}},methods:{selectMethod(e){this.isDisabled||this.$emit("select-method",e)}}},oe=ie,re={key:0,class:"payout-card__admin"},ne={class:"payout-card__image"},le=["src"],me={key:0,class:"payout-card__text"},de={class:"payout-card__title"},ue={key:0,class:"payout-card__crypto-network"},he={key:2,class:"payout-card__fee"};function pe(e,i,p,l,f,y){const m=c("image-wrapper");return t(),s("div",{class:S(["payout-card",{"payout-card_state_active":e.isActiveMethod,"payout-card_state_disabled":e.isDisabled,"payout-card_type_top":e.isLabelImage&&!e.isActiveMethod}]),onClick:i[0]||(i[0]=d=>e.selectMethod(e.systemMethod))},[e.isTabAdminOnly?(t(),s("span",re,a(e.$t("base.admin")),1)):n("",!0),o("div",ne,[o("img",{src:e.url,class:S({"payout-card-base-image":!e.isCryptoMethod})},null,10,le),e.isMethodAsIcon&&e.isCryptoMethod?(t(),s("div",me,[o("span",de,a(e.fullName),1),e.network&&e.network.toLowerCase()!==e.fullName.toLowerCase()?(t(),s("div",ue,[o("span",null,a(e.network),1)])):n("",!0)])):n("",!0)]),e.isLabelImage?(t(),_(m,{key:1,src:e.systemMethod.label},{default:v(d=>[o("img",j(d,{class:"payout-card__top",alt:"top"}),null,16)]),_:1},8,["src"])):n("",!0),e.hasFeeLabel&&e.fee&&!e.isCryptoMethod?(t(),s("span",he,a(e.$t("base.fee"))+": "+a(e.fee)+"% ",1)):n("",!0)],2)}var ye=w(oe,[["render",pe],["__scopeId","data-v-c6955b77"]]),ce={components:{PaymentSkeletonLoader:se,PayoutCard:ye},props:{placeholderCountry:String,isPlaceholderMethods:Boolean,skeletons:{type:Array,default:()=>[]},isPaymentSystemActive:{type:Function,default:()=>!0},isMethodAsIcon:{type:Boolean,default:!1},countOfSkeletonItems:{type:Number,default:10},hasFeeLabels:{type:Boolean,default:!0},isCrypto:Boolean,type:String,size:{type:String,default:"default"},paymentMethod:String,payMethod:String,paymentSystems:[Object,Array],isInactiveSystem:{type:Function,default:()=>!1},isDisabledSystem:{type:Function,default:()=>!1},getPaymentImage:{type:Function,default:e=>H(e.name||"",{path:"payments"})}},setup(){const{defaultPresentationPaymentsDataList:e}=z();return{defaultPresentationPaymentsDataList:e}},emits:["select-payment-system"],computed:{...P(["isMobileDevice"]),...C({isUserAdmin:e=>e.user.userInformation.userData?.isAdmin}),isHorizontalScroll(){return this.paymentSystems.length>(this.isMobileDevice?4:10)},isWithdrawFormType(){return this.type===N},paymentMethodValue(){return this.paymentMethod||this.payMethod},activeSystemsWithLabel(){return this.activeSystems?.map(e=>{const i=A[e.payoutMethodName]?.label;return i&&(e.label=i),this.isPaymentAdminOnly(e)&&(e.label="base.admin"),e})},hasTwoRows(){return!this.activeSystems.length||this.size==="default"&&this.activeSystems.length>3||this.size==="sm"&&this.activeSystems.length>4},hasScroll(){return this.size==="default"&&this.activeSystems.length>6||this.size==="sm"&&this.activeSystems.length>8},activeSystems(){if(this.paymentSystems){const e=Object.entries(this.paymentSystems).map(l=>l[1]).filter(l=>!this.isInactiveSystem(l)),i=e.filter(l=>!this.isDisabledSystem(l)).sort((l,f)=>l.sort-f.sort),p=e.filter(this.isDisabledSystem);return[...i,...this.isUserAdmin?p:[]]}return[]}},methods:{selectPaymentMethod(e){this.checkIsDisabledSystem(e)||this.$emit("select-payment-system",e)},checkIsDisabledSystem(e){return this.isDisabledSystem(e)},getPaymentImagePath(e){if(this.isWithdrawFormType)return A[e.payoutMethodName]?.image||this.$requireImageByPath("credit-cards",{path:"payments"});const i=this.getPaymentName(e);return this.$requireImageByPath(i,{path:"payments",format:"svg"})||this.$requireImageByPath("credit-cards",{path:"payments"})},getPaymentName(e){return e.key_name||e.frontend_title||e.name||e.currency_from},getPaymentNameValue(e){return e.key_name||e.pay_method||e.name||e.currency_from},isPaymentAdminOnly(e){return this.isUserAdmin&&(e.only_for_admin||e.state_admin==="active"&&e.state!=="active"&&e.state_merchant!=="active")},isCryptoSystem(e){return!!F(this.getPaymentName(e))},getPaymentInfo(e){const i=F(this.getPaymentName(e));
1return i||(this.isPaymentAdminOnly(e)&&e.payment_system?e.payment_system:null)}}},fe=ce;function ve(e,i,p,l,f,y){const m=c("payment-skeleton-loader"),d=c("payout-card");return e.isWithdrawFormType?(t(),s("div",{key:1,class:S(["payment-method payment-method__list",{"payment-method__list-scroll-y":e.isHorizontalScroll}])},[!e.activeSystems.length&&e.isPlaceholderMethods?(t(!0),s(h,{key:0},k(e.defaultPresentationPaymentsDataList,r=>(t(),_(d,{key:r.name,"is-crypto":e.isCrypto,"system-method":r,url:r.image,class:"payment-method__inactive"},null,8,["is-crypto","system-method","url"]))),128)):n("",!0),!e.activeSystems.length&&!e.isPlaceholderMethods?(t(!0),s(h,{key:1},k(e.countOfSkeletonItems,r=>(t(),_(m,{key:e.skeletons[r]}))),128)):n("",!0),(t(!0),s(h,null,k(e.activeSystemsWithLabel,r=>(t(),_(d,{key:e.getPaymentNameValue(r),"has-fee-label":e.hasFeeLabels,"is-disabled":e.isDisabledSystem(r),"system-method":r,"is-crypto":e.isCrypto,"active-method":e.paymentMethodValue,url:e.getPaymentImagePath(r),network:e.getPaymentInfo(r),onSelectMethod:e.selectPaymentMethod},null,8,["has-fee-label","is-disabled","system-method","is-crypto","active-method","url","network","onSelectMethod"]))),128))],2)):(t(),s("div",{key:0,class:S(["methods-list",[!e.isMobileDevice&&`methods-list_size_${e.size}`,{"methods-list_has-two-rows":!e.isMobileDevice&&e.hasTwoRows,"methods-list_has-scroll":!e.isMobileDevice&&e.hasScroll}]])},[e.activeSystems.length?n("",!0):(t(!0),s(h,{key:0},k(e.countOfSkeletonItems,r=>(t(),_(m,{key:r.id}))),128)),(t(!0),s(h,null,k(e.activeSystems,r=>(t(),_(d,{key:e.getPaymentNameValue(r),"has-fee-label":e.hasFeeLabels,"is-disabled":e.isDisabledSystem(r),"system-method":e.getPaymentNameValue(r),"active-method":e.paymentMethodValue,"is-method-as-icon":e.isMethodAsIcon,"is-crypto":e.isCrypto,url:e.getPaymentImage(r),network:r.disableNetwork?null:r.newtork||e.getPaymentInfo(r),onSelectMethod:()=>e.selectPaymentMethod(r)},null,8,["has-fee-label","is-disabled","system-method","active-method","is-method-as-icon","is-crypto","url","network","onSelectMethod"]))),128))],2))}var dt=w(fe,[["render",ve],["__scopeId","data-v-4336f38d"]]),_e={name:"BonusExplanationPanel",props:{bonusPercent:Number,bonusAmount:Number},computed:{...P(["isMobileDevice"])}},be=_e,ge={class:"bonus-explanation-panel"},Se={class:"bonus-explanation-panel__text"},ke={class:"currency__symbol"};function Me(e,i,p,l,f,y){const m=c("base-tooltip");return e.bonusAmount>0?(t(),_(m,{key:0,width:e.isMobileDevice?"360px":"375px",position:"bottom","z-index":9999},{"tooltip-main":v(()=>[o("div",ge,[o("span",Se,[i[0]||(i[0]=b(" + ",-1)),o("span",ke,a(e.currencySymbol),1),b(" "+a(e.formattedSum(e.bonusAmount.toFixed(2)))+" "+a(e.$t("base.bonus")),1)]),i[1]||(i[1]=o("img",{src:x},null,-1))])]),"tooltip-text":v(()=>[b(a(e.$t("withdraw_form.your_loyalty_bonus_is_applied",{bonusPercent:e.bonusPercent})),1)]),_:1},8,["width"])):n("",!0)}var we=w(be,[["render",Me],["__scopeId","data-v-a0278274"]]),$={SELECT_SKINS:"select-skins",CHOOSE_METHOD:"choose-method",FILL_FORM:"fill-form"},$e={name:"ConfirmTransactionBlock",components:{BonusExplanationPanel:we,BaseTooltip:Z}
1,props:{isRefillModal:Boolean,isWithdrawModal:Boolean,calculationData:Array,paymentMaxArrivalTime:Object,isPayoutWithoutHoldAllowed:Boolean,initSum:Number,minSum:{type:Number,default:0},availableBalance:{type:Number,default:0},receiveSum:{type:Number,default:0},feeSum:{type:Number,default:0},bonusSum:{type:Number,default:0},bonusPercent:{type:Number,default:0},isWalletCardsMethod:Boolean,receiveWalletCardsCount:Number,buttonDisabled:Boolean,buttonIsLoading:Boolean,step:{type:String,default:$.FILL_FORM,validator:e=>Object.values($).includes(e)},backgroundColor:{type:String,default:"var(--secondary-color-70)"},isShowAbsoluteDateFormat:{type:Boolean,default:!0}},setup(){const{isSwiping:e,direction:i}=E(Q("info"));return{isSwiping:e,swipeDirection:i}},emits:["on-button-click"],data(){return{isInfoOpened:!1}},computed:{...P(["isMobileDevice"]),hasAdditionalTopContentSlot(){return!!this.$slots["additional-top-content"]},hasWarningInfoSlot(){return!!this.$slots["warning-info"]},hasPreviewCalculationData(){return this.calculationData.some(e=>e?.preview)},hasPaymentMaxArrivalTime(){return this.paymentMaxArrivalTime&&Object.keys(this.paymentMaxArrivalTime).length>0},avgArrivalTime(){return this.hasPaymentMaxArrivalTime?{short:I(this.paymentMaxArrivalTime,{hasShortTimeUnits:!0}),long:I(this.paymentMaxArrivalTime)}:null},totalArrivalTime(){if(this.isRefillModal||this.isWithdrawModal&&!this.hasPaymentMaxArrivalTime)return;const{timeAmount:e,timeUnit:i}=this.hasPaymentMaxArrivalTime?Y(this.paymentMaxArrivalTime,{hasShortTimeUnits:!0}):{},p=e?`${e}${i}`:`${this.$t("payouts.interval.instant")}`,l=!this.isPayoutWithoutHoldAllowed&&!this.isWithdrawModal,f=this.hasPaymentMaxArrivalTime&&!e;if(!this.isShowAbsoluteDateFormat){const m=`8${this.$t("base.time_unit.d")} ${this.$t("profile.states.hold")}`.toLowerCase(),d=this.hasPaymentMaxArrivalTime&&p===`${this.$t("payouts.interval.instant")}`;return l&&(!this.hasPaymentMaxArrivalTime||d)?m:l&&!d?`${m} + ${p}`:p}if(f)return p;let y=new B({timeV:void 0});if(l&&(y=y.addT(8,"day")),this.hasPaymentMaxArrivalTime&&!f){const{days:m=0,hours:d=0,minutes:r=0}=this.paymentMaxArrivalTime;y=y.addT(m,"day").addT(d,"hour").addT(r,"minute")}return y.formatT(U)},minProfitableSum(){return Math.max(this.minSum,this.feeSum)},isValidPayoutSum(){return this.isRefillModal?this.initSum>=this.minProfitableSum:this.initSum+this.bonusSum>=this.minProfitableSum},isButtonDisabled(){return this.buttonDisabled||!this.isValidPayoutSum}},watch:{isSwiping(e){if(e)switch(this.swipeDirection){case"up":this.isInfoOpened=!0;break;case"down":this.isInfoOpened=!1;break}}},mounted(){this.$el.style.setProperty("--main-background-color",this.backgroundColor)},methods:{toggleInfo(){this.isInfoOpened=!this.isInfoOpened},setZeroHeight(e){e.style.height="0"},setAutoHeight(e){e.style.height="auto"},setElementHeight(e){e.style.height=e.scrollHeight+"px"},leave(e){setTimeout(()=>this.setZeroHeight(e),0)}},steps:$,HOLDING_PERIOD_DAYS:8},Pe=W("/images/icons/clock.svg"),Ae=$e,Ie={class:"confirm-transaction-block__main"},Te={key:0,class:"confirm-transaction-block__drag-handle"},Fe={class:"calc-item"},De={key:0,class:"confirm-transaction-block__info-item-wrapper"},Ce={class:"confirm-transaction-block__warning-info"},Le={class:"summary__left-side"},Oe={class:"summary__title"},Be={key:0,class:"summary__subtitle"},Ne={class:"summary__right-side"},Ee={class:"summary__main-receive-item"},He={key:0},Re={key:1},We={class:"currency__symbol"},Ve={key:2,class:"summary__arrow"},ze={key:0,class:"summary__arrival-time"},Ue={class:"summary__arrival-time-trigger"},je={class:"no-wrap-text"},qe={key:1,class:"summary__arrival-time"},Ge={class:"no-wrap-text"},Ye={class:"summary__main-receive-item"},Ke={class:"currency__symbol"},Ze={key:0},Qe={key:1},Xe={key:0},Je={key:1},xe={key:0},et={key:1},tt={key:0,class:"confirm-transaction-block__caution-text"},at=["href"];function st(e,i,p,l,f,y){const m=c("base-divider"),d=c("base-tooltip"),r=c("bonus-explanation-panel"),L=c("base-button"),O=c("i18n-t");return t(),s("div",{class:S(["confirm-transaction-block",{"confirm-transaction-block_has-info":e.step===e.$options.steps.FILL_FORM}])},[o("div",Ie,[e.hasAdditionalTopContentSlot?M(e.$slots,"additional-top-content",{key:0},void 0,!0):n("",!0),e.step===e.$options.steps.FILL_FORM?(t(),s("div",{key:1,ref:"info",class:S(["confirm-transaction-block__info",{"confirm-transaction-block__info_opened":e.isInfoOpened||e.hasPreviewCalculationData,"confirm-transaction-block__info_preview":!e.isInfoOpened&&e.hasPreviewCalculationData}])},[e.isMobileDevice?(t(),s("div",Te)):n("",!0),g(q,{name:"fade",onBeforeEnter:e.setZeroHeight,onEnter:e.setElementHeight,onAfterEnter:e.setAutoHeight,onBeforeLeave:e.setElementHeight,onLeave:e.leave,onAfterLeave:e.setAutoHeight},{default:v(()=>[(t(!0),s(h,null,k(e.calculationData,u=>(t(),s(h,null,[e.isInfoOpened||u.preview?(t(),s("div",{key:u.name,class:"confirm-transaction-block__info-item-wrapper confirm-transaction-block__calc-item-wrapper"},[M(e.$slots,`calc-${u.name}`,{item:u,isInfoOpened:e.isInfoOpened},()=>[o("div",Fe,[o("span",{class:"calc-item__title",style:T(`color: ${u.color}`)},a(u.title),5),g(m,{width:"100%",height:1,"border-radius":0,background:"repeating-linear-gradient(to right, var(--secondary-color-15) 0 2px, transparent 2px 4px)"}),o("span",{class:"calc-item__sum",style:T(`color: ${u.color}`)},a(u?.sign)+" "+a(u.noCurrencySymbol?"":e.currencySymbol)+" "+a(u.sum),5)])],!0)])):n("",!0)],64))),256)),e.hasWarningInfoSlot&&e.isInfoOpened?(t
1(),s("div",De,[o("div",Ce,[M(e.$slots,"warning-info",{},void 0,!0)])])):n("",!0)]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],2)):n("",!0),e.isMobileDevice||e.step===e.$options.steps.FILL_FORM?(t(),s("div",{key:2,class:S(["summary",{"summary_info-opened":e.isInfoOpened}]),onClick:i[0]||(i[0]=(...u)=>e.toggleInfo&&e.toggleInfo(...u))},[o("div",Le,[M(e.$slots,"bonus-receive-item",{},()=>[o("span",Oe,a(e.$t("withdraw_form.you_will_receive")),1),e.totalArrivalTime?(t(),s("span",Be,a(e.$t("withdraw_form.the_total_amount")),1)):n("",!0)],!0)]),o("div",Ne,[e.step===e.$options.steps.FILL_FORM?(t(),s(h,{key:0},[o("div",Ee,[e.isWalletCardsMethod?(t(),s("span",He,a(e.receiveWalletCardsCount)+" "+a(e.$t("withdraw_form.cards")),1)):(t(),s("span",Re,[o("span",We,a(e.currencySymbol),1),b(" "+a(e.formattedSum(Math.max(e.receiveSum,0).toFixed(2))),1)])),e.isMobileDevice?n("",!0):(t(),s("div",Ve,[...i[2]||(i[2]=[o("img",{src:J,alt:"chevron-down"},null,-1)])]))]),e.avgArrivalTime&&e.isWithdrawModal?(t(),s("span",ze,[g(d,{"z-index":"9999",width:"312px"},{"tooltip-main":v(()=>[o("span",Ue,[i[3]||(i[3]=o("img",{src:G,alt:"information-slab-circle"},null,-1)),b(" "+a(e.$t("withdraw_form.avg_payout_time"))+": ",1),o("span",je,a(e.avgArrivalTime.short),1)])]),"tooltip-text":v(()=>[b(a(e.$t("withdraw_form.avg_payout_time_tooltip",{time:e.avgArrivalTime.long})),1)]),_:1})])):e.totalArrivalTime?(t(),s("span",qe,[i[4]||(i[4]=o("img",{src:Pe,alt:"clock"},null,-1)),b(" "+a(e.isShowAbsoluteDateFormat?e.$t("profile.payout_date"):e.$t("withdraw_form.payout_time"))+": ",1),o("span",Ge,a(e.totalArrivalTime),1)])):n("",!0)],64)):(t(),s(h,{key:1},[o("div",Ye,[o("span",null,[o("span",Ke,a(e.currencySymbol),1),b(" "+a(e.formattedSum(e.initSum.toFixed(2))),1)])]),e.bonusSum>0?(t(),_(r,{key:0,"bonus-percent":e.bonusPercent,"bonus-amount":e.bonusSum},null,8,["bonus-percent","bonus-amount"])):n("",!0)],64))])],2)):n("",!0)]),g(L,{class:"confirm-transaction-block__button","min-width":"100%",size:e.isMobileDevice?"default":"lg","text-transform":"uppercase",disabled:e.isButtonDisabled,"is-loading":e.buttonIsLoading,onOnClick:i[1]||(i[1]=u=>e.$emit("on-button-click"))},{default:v(()=>[e.isValidPayoutSum?e.step===e.$options.steps.SELECT_SKINS?(t(),s("span",Qe,a(e.$t("withdraw_form.choose_payout_method")),1)):e.step===e.$options.steps.CHOOSE_METHOD?(t(),s(h,{key:2},[o("span",null,a(e.$t("base.continue")),1),i[5]||(i[5]=o("img",{src:X,alt:"arrow thin",class:"continue-arrow"},null,-1))],64)):e.step===e.$options.steps.FILL_FORM?(t(),s(h,{key:3},[e.isWalletCardsMethod?(t(),s("span",Xe,a(e.$t("withdraw_form.receive_wallet_cards")),1)):e.isRefillModal?(t(),s("span",Je,a(e.$t("refill.pay"))+" "+a(e.formattedSum((+e.initSum||0).toFixed(2)))+" "+a(e.currencyType),1)):(t(),s(h,{key:2},[+e.availableBalance>0?(t(),s("span",xe,a(e.$t("withdraw_form.receive_money"))+" ("+a(e.formattedSum((+e.receiveSum).toFixed(2)))+") ",1)):(t(),s("span",et,a(e.$t("withdraw.min_payout"))+" "+a(e.currencySymbol)+" "+a(e.formattedSum(e.minSum.toFixed(2))),1))],64))],64)):n("",!0):(t(),s("span",Ze,a(e.$t("withdraw.min_payout"))+" "+a(e.currencySymbol)+" "+a(e.formattedSum(e.minProfitableSum.toFixed(2))),1))]),_:1},8,["size","disabled","is-loading"]),e.isRefillModal&&e.step===e.$options.steps.FILL_FORM?(t(),s("div",tt,[g(O,{keypath:"refill.agree_info",tag:"div"},{link:v(()=>[o("a",{href:`/${e.$t("tos")}`,target:"_blank"},a(e.$t("tos_full")),9,at)]),_:1})])):n("",!0)],2)}var ut=w(Ae,[["render",st],["__scopeId","data-v-933af878"]]);export{ye as a,dt as i,Pe as n,we as r,ut as t};
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.