1import{g as L,h as G,i as q,j as x,k as y,m as B,n as K,o as j,s as z,p as J,q as N,a as O,v as Q,w as Z,M as ee,E as te,A as oe,r as U,x as se,d as b,e as ie,y as re,T as ne,z as ae,B as ce,C as ue}from"./index-CN4xOLzz.js";import{d as V,T as me,C as de,_ as he,j as le,s as pe}from"./selectDefaultPaymentSystem-B1PEIcbx.js";import{g as fe,A as Se}from"./ErrorKeyHelper-DJqA6PjL.js";import{B as _e,t as ge}from"./BoxInformer-CNwnDdym.js";import{_ as v,I as Ee,o as Te,d as H,l as Ce,J as De,H as ye}from"./ui-lib-CSML94fI.js";import be from"./DepositGift-Cpt8g7E0.js";import{aF as $,ay as _,a as m,h as M,t as C,k as l,F as X,q as W,p as S,n as A,e as h,D as f,B as Y,s as c,o as n,E as Oe,T as ve,b5 as Pe}from"./vendors-D_z06TSl.js";import{C as Ie,d as Ae,u as Ge}from"./CashboxStepAmount-DPjsrD39.js";import{C as Be}from"./CashboxWithdrawRequests-DD0lDtQe.js";import{u as Ne}from"./hookAfterLoadCashbox-CDMlG-DY.js";import{T as w,a as R,u as Me}from"./CashboxStepFlowMixin-CmdqyTAq.js";import{L as ke}from"./LotteryTicket-C1fPi5Nc.js";import"./ProgressBarRadial-J2WURUo3.js";import"./TextField.vue_vue_type_script_setup_true_lang-BfKjjaoE.js";import"./useValidationErrorMessage-DFRIbOQF.js";import"./paymentIptionsData-YyYeeWTc.js";import"./BirthdayInlineField-G9L2J7a-.js";import"./PhoneField-Dg2IbN19.js";import"./utilsPhoneFields-CBk0ZB2h.js";import"./SelectField.vue_vue_type_script_setup_true_lang-B2i5hV5B.js";import"./SelectStateField-BVqGuM3h.js";import"./EmailField-BdvZYl6t.js";import"./metrics-BAeznggB.js";import"./clipboard-ChJIdEHp.js";import"./qr-code-D_2-adc0.js";import"./welcome_1nd-MVGZzuAl.js";import"./welcome_2nd-DcF63VoM.js";import"./BaseGift-CObObXvd.js";import"./List-CDpykL4M.js";import"./deposit_insurance-mJPgCw78.js";import"./activityHubConfig-4kw60O9K.js";import"./PromoSorting-D_vOKOaO.js";import"./achievements-a-b4N945.js";import"./rocketLootboxes-CnSDTrQz.js";import"./SuperGift.vue_vue_type_script_setup_true_lang-p_LOoBR7.js";import"./useUserBonusesHelper-DVj8Hyec.js";import"./GiftField-DgM3Z4Pf.js";import"./filterOnlyPositiveNumbers-BKg_OwGI.js";import"./data-test-attrs-ByXfOVMu.js";import"./style.scss_vue_type_style_index_0_src_true_lang-A03y1dG2.js";const F={value:"",disabled:!1,valid:null},Le={name:"CashboxDepositBonus",components:{UiButton:H,FeInput:Te,FeSwitch:Ee,DepositGift:be,BoxInformer:_e},props:{initValuePromocode:{type:String},propErrorMessage:{type:String}},emits:["changeBonusStatus","changePromocode","addedPromocode","errorPromocode"],setup(){return{useBonuses:J,setUserCoupon:z,deleteUserCoupon:j}},data(){return{addAnimationClass:!1,updateTimeout:null,isChangingGift:!1,promocode:{...F},dataTestAttrs:V,themesMessage:ge}},computed:{..._(O,{userInfo:"getUserInfo"}),..._(N,{depositGifts:"depositGifts",activeDepositGift:"activeDepositGift",activeDepositGiftGroupID:"activeDepositGiftGroupID",giftMatchInUserGroup:"giftMatchInUserGroup",giftMatchInUserGroupID:"giftMatchInUserGroupID"}),classes(){return{valid:this.promocode.valid,"not-valid":this.promocode.valid===!1||this.propErrorMessage}},showInputBtn(){return De(this.promocode.value.toString())},validateCodeMessage(){return this.promocode.valid?{message:this.$t("CASHBOX.BONUS.MESSAGES.CODE_VALID"),messageCode:"CODE-VALID"}:this.promocode.valid===!1?{message:this.$t("CASHBOX.BONUS.MESSAGES.CODE_NOT_VALID"),messageCode:"CODE-NOT-VALID"}:this.propErrorMessage?{message:this.propErrorMessage,messageCode:"ERROR-NOT-ADD"}:""},gifts(){return K(this.$route)?[...this.depositGifts].sort((e,t)=>!e.betting&&t.betting?1:-1):this.depositGifts},hasValidPromocode(){return!!(this.promocode.value&&this.promocode.valid)}},watch:{"promocode.value":function(e){this.updateTimeout&&clearTimeout(this.updateTimeout),e?(this.addAnimationClass=!1,this.updateTimeout=setTimeout(()=>{this.addAnimationClass=!0},1e3)):this.addAnimationClass=!1}},async mounted(){await this.initDefaultPromocode(),this.initDefaultGift()},beforeUnmount(){this.updateTimeout&&clearTimeout(this.updateTimeout)},methods:{...$(N,{getDepositGiftGroupID:"getDepositGiftGroupID",setActiveDepositGift:"setActiveDepositGift"}),async changeBonusStatus(e){this.isChangingGift||(await this.useBonuses({can_issue:e}),e||(this.hasValidPromocode?await this.removePromocode():await G()),B.show({image:"successfully",text:this.$t(`GIFT.
1NOTIFICATION.BONUSES_${e?"ENABLED":"DISABLED"}`),id:Date.now(),url:null,type:"success"}),this.$emit("changeBonusStatus",e))},initDefaultGift(){if(!this.hasValidPromocode){if(this.giftMatchInUserGroup&&!this.activeDepositGift){this.setActiveDepositGift(this.giftMatchInUserGroup);return}if(!this.giftMatchInUserGroup&&this.activeDepositGift){y(this.activeDepositGiftGroupID);return}if(this.giftMatchInUserGroup&&this.activeDepositGift&&this.giftMatchInUserGroupID!==this.activeDepositGiftGroupID){y(this.activeDepositGiftGroupID,this.giftMatchInUserGroupID);return}}},async syncGiftState(){await this.useBonuses({can_issue:this.userInfo.can_issue_bonuses})},getSelectStatusCurrentGift(e){return this.hasValidPromocode||this.activeDepositGiftGroupID&&this.activeDepositGiftGroupID===this.getDepositGiftGroupID(e)},async changeActiveGift(e){if(this.isChangingGift)return;const t=this.getDepositGiftGroupID(e),r=this.activeDepositGiftGroupID,i=t===r,o=this.activeDepositGift;this.isChangingGift=!0;try{i?(this.setActiveDepositGift(null),await y(null,t),await this.syncGiftState()):(this.setActiveDepositGift(e),await y(t,r),await this.syncGiftState())}catch(s){Ce.error("Failed to change gift group:",s),this.setActiveDepositGift(o),await this.syncGiftState()}finally{this.isChangingGift=!1}},async initDefaultPromocode(){var e;this.promocode.value=this.initValuePromocode||((e=this.userInfo)==null?void 0:e.deposit_bonus_code)||"",this.promocode.value&&await this.addPromocode({emitEnabled:!1}),q.get()&&!x.get()&&(this.hasValidPromocode?x.set(!0):(this.addErrorForPromocode(),L()))},async addPromocode({emitEnabled:e=!0}={}){this.giftMatchInUserGroup&&await G();const{errors:t,promoIsValid:r}=await this.setUserCoupon(this.promocode.value.toLowerCase());t||(this.promocode.disabled=!0),this.promocode.valid=r,this.hasValidPromocode?(e&&this.$emit("addedPromocode"),this.setActiveDepositGift(this.gifts[0])):(await this.removePromocode(!1),this.addErrorForPromocode())},async removePromocode(e=null){await this.deleteUserCoupon(),L(),this.promocode={...F,valid:e},this.setActiveDepositGift(null)},addErrorForPromocode(){this.promocode.valid=!1,this.$emit("errorPromocode",this.validateCodeMessage),setTimeout(()=>{var e;(e=this.$refs.validateMessage)==null||e.scrollIntoView({behavior:"smooth"})},1e3)}}},xe={class:"cashbox-deposit-bonuses auto-cols-columns-auto grid gap-y-16 auto-cols-fr"},Ue={class:"cashbox-deposit-bonuses__switcher"},we={class:"cashbox-deposit-bonuses__switcher-label"},Re={key:0,class:"lobby-row gifts-row grid gap-16"},Fe={key:1,class:"cashbox-deposit-bonuses__or-add text-center"},Ve={key:2,class:"cashbox-deposit-bonuses__body"};function He(e,t,r,i,o,s){const a=c("FeSwitch"),p=c("DepositGift"),g=c("UiButton"),E=c("FeInput"),T=c("BoxInformer");return n(),m("div",xe,[M("div",Ue,[M("p",we,C(e.$t("CASHBOX.RECIEVE_BONUSES")),1),l(a,{value:e.userInfo.can_issue_bonuses,"onSwitch:changeToggle":s.changeBonusStatus},null,8,["value","onSwitch:changeToggle"])]),e.userInfo.can_issue_bonuses?(n(),m("div",Re,[(n(!0),m(X,null,W(s.gifts,d=>(n(),S(p,{key:e.getDepositGiftGroupID(d),class:A(["cashbox-deposit-bonuses__gift",{"cashbox-deposit-bonuses__gift--pointer":!s.hasValidPromocode&&!o.isChangingGift}]),gift:d,"active-status-gift":s.getSelectStatusCurrentGift(d),disabled:o.isChangingGift,cashbox:"",onClickGift:D=>!s.hasValidPromocode&&!o.isChangingGift?s.changeActiveGift(d):null},null,8,["class","gift","active-status-gift","disabled","onClickGift"]))),128))])):h("",!0),e.userInfo.can_issue_bonuses&&s.gifts.length?(n(),m("div",Fe,C(e.$t("CASHBOX.OR_ADD")),1)):h("",!0),e.userInfo.can_issue_bonuses?(n(),m("div",Ve,[l(E,{modelValue:o.promocode.value,"onUpdate:modelValue":t[1]||(t[1]=d=>o.promocode.value=d),class:"cashbox-deposit-bonuses__body-promocode",name:"promocode",label:e.$t("PROFILE.PROMOCODE"),placeholder:e.$t("REGISTRATION.PROMO_CODE_PLACEHOLDER"),"data-test":o.dataTestAttrs.deposit.promoInput,disabled:o.promocode.disabled||o.isChangingGift,"onInput:change":t[2]||(t[2]=d=>e.$emit("changePromocode"))},{right:f(()=>[s.showInputBtn?(n(),S(g,{key:0,variant:"tertiary",size:"sm",class:A(["cashbox-deposit-bonuses__promocode-btn animation-control",{"add-promocode-button-animation":o.addAnimationClass&&!s.hasValidPromocode}]),"data-test":o.dataTestAttrs.deposit.promoAddBtn,disabled:o.isChangingGift,onClick:t[0]||(t[0]=d=>o.promocode.disabled?s.removePromocode():s.addPromocode())},{default:f(()=>[Y(C(o.promocode.disabled?e.$t("COMMON.REMOVE"):e.$t("COMMON.ADD")),1)]),_:1},8,["class","data-test","disabled"])):h("",!0)]),_:1},8,["modelValue","label","placeholder","data-test","disabled"]),s.validateCodeMessage?(n(),m("div",{key:0,ref:"validateMessage",class:A(["cashbox-deposit-bonuses__messages-box",s.classes])},C(s.validateCodeMessage.message),3)):h("",!0)])):(n(),S(T,{key:3,title:e.$t("CASHBOX.BONUS.MESSAGES.TITLE"),message:e.$t("CASHBOX.BONUS.MESSAGES.BONUS_DISABLE_MESSAGE"),theme:o.themesMessage.attention},null,8,["title","message","theme"]))])}const $e=v(Le,[["render",He],["__scopeId","data-v-27f44e24"]]);function Xe({bonusMinDep:e,queryMinDep:t,currentAmount:r,defaultAmount:i}){if(!e)return r;const o=Math.max(e,t,i);return r>=o&&r>=i?r:o}const We={name:"LotteryRecommendDep",components:{LotteryTicket:ke},props:{lotteryData:{type:Object},amountDep:{type:Number}},computed:{..._(O,{userCurrency:"getUserCurrency"}),useCurrency(){return this.lotteryData.deposit_scale_rules[this.userCurrency]&&this.userCurrency},sortedRules(){return[...this.lotteryData.deposit_scale_rules[this.useCurrency]].sort((e,t)=>
1t.from_amount_cents-e.from_amount_cents)},ticketDataNearestLess(){return this.useCurrency?this.sortedRules.filter(({from_amount_cents:e})=>e/this.subUnits(this.useCurrency)<=this.amountDep).find(e=>e.from_amount_cents/this.subUnits(this.useCurrency)<=this.amountDep):null},ticketDataRecommend(){return this.useCurrency?this.sortedRules.filter(({from_amount_cents:e})=>e/this.subUnits(this.useCurrency)>=this.amountDep).reverse().find(e=>e.from_amount_cents/this.subUnits(this.useCurrency)>this.amountDep):null},ticketData(){return{...this.ticketDataNearestLess,from_amount_cents:this.amountDep*this.subUnits(this.useCurrency)}}},methods:{...$(O,{subUnits:"getSubunitsToUnitsByCode"})}},Ye={key:0,class:"lottery-recommend-dep"};function qe(e,t,r,i,o,s){const a=c("LotteryTicket");return s.ticketDataNearestLess||s.ticketDataRecommend?(n(),m("div",Ye,[l(a,{"ticket-data":s.ticketData,label:{text:e.$t("LOTTERIES.HOW_WORK.TICKET.LABEL_YOUR_DEP")},recommend:s.ticketDataRecommend},null,8,["ticket-data","label","recommend"])])):h("",!0)}const Ke=v(We,[["render",qe],["__scopeId","data-v-d43fe7f9"]]),je={name:"LotteryRecommendDepList",components:{LotteryRecommendDep:Ke},props:{amountDep:{type:Number}},computed:{..._(Q,{lotteryList:"getActiveLotteryList"})}},ze={key:0,class:"lottery-recommend-list"};function Je(e,t,r,i,o,s){const a=c("LotteryRecommendDep");return e.lotteryList.length?(n(),m("div",ze,[(n(!0),m(X,null,W(e.lotteryList,p=>(n(),S(a,{key:p.id,"lottery-data":p,"amount-dep":r.amountDep,class:"lottery-recommend-dep__ticket"},null,8,["lottery-data","amount-dep"]))),128))])):h("",!0)}const Qe=v(je,[["render",Je],["__scopeId","data-v-4422bc34"]]),Ze={name:"CashboxStepDeposit",components:{CashboxWithdrawRequests:Be,CashboxDepositBonus:$e,CashboxPaymentMethods:he,CashboxStepAmount:Ie,LotteryRecommendDepList:Qe,CashboxForm:de,ToolbarSteps:me,ModalCommonSlot:ee,UiButton:H},props:{promocode:{type:String},activeTab:{type:String},closeHandler:{type:Function},amountProp:{type:Number,default:Z.depositFistAmount},comeFromDashboard:{type:Boolean},toStep:{type:Number,default:1},clickOnLogo:{type:Function}},setup(e){const{amount:t,typeSystem:r,back:i,currentIndex:o,preventStep:s,LAST_STEP_INDEX:a,FIRST_STEP_INDEX:p,goToPrevStep:g,userCurrency:E,toNextStep:T,toPrevStep:d}=Me(e),{userCurrencyConfig:D}=Ge(),{loadPaymentMethods:P}=ae(),{hasDepositLimit:I}=ce(),{validate:u}=Pe({initialValues:{amount:t.value}});return{amount:t,typeSystem:r,back:i,currentIndex:o,preventStep:s,LAST_STEP_INDEX:a,FIRST_STEP_INDEX:p,goToPrevStep:g,userCurrency:E,toNextStep:T,toPrevStep:d,validate:u,userCurrencyConfig:D,loadPaymentMethods:P,hasDepositLimit:I}},data(){return{TypeSystemPayment:ne,FeCardConfig:ye,dataTestAttrs:V,selectTab:w,formElForGTM:null,containerFormNum:3,TAB_NAME_CRYPTO:R,isLoaded:!1,errorPromoPressAdd:"",depTicketText:"",selectedMethod:{},methodFields:{},clickedMethod:{}}},computed:{themes(){return themes},..._(O,{userInfo:"getUserInfo"}),..._(N,{activeDepositGift:"activeDepositGift",activeDepositGiftMinDep:"activeDepositGiftMinDep"}),fnToPrev(){return this.toPrevStep.bind(this,this.goToPrevStep)},showNextButton(){return this.currentIndex!==this.LAST_STEP_INDEX&&(this.currentIndex!==2||this.selectTab!==R)&&this.currentIndex!==3},steps(){return[{title:this.$t("CASHBOX.STEP_FLOW.STEP_1.TITLE"),description:this.$t("CASHBOX.STEP_FLOW.STEP_1.DESC")},{title:this.$t("CASHBOX.STEP_FLOW.STEP_2.TITLE"),description:this.selectTab===w?this.$t("CASHBOX.STEP_FLOW.STEP_2.DESC"):this.$t("CASHBOX.STEP_FLOW.STEP_2.DESC_CRYPTO")},{title:this.$t("CASHBOX.STEP_FLOW.STEP_3.TITLE")}]},blockNextByPromoCode(){var t;const e=this.$refs.cashboxDepositBonus;return e?e.promocode.value!==""&&!((t=this.userInfo)!=null&&t.deposit_bonus_code):!1},minDepOnlyNumber(){return parseFloat(String(this.activeDepositGiftMinDep).replace(",","."))},paymentMethodCurrency(){var e,t;return((t=(e=this.selectedMethod.termsOfService)==null?void 0:e.restrictions)==null?void 0:t.amountCurrencyCode)||this.selectedMethod.id},getGtmDepositData(){var e;return{amount:this.amount,dep_ticket:this.depTicketText||"no_ticket",dep_currency:this.userCurrency,dep_bonus:((e=this.userInfo)==null?void 0:e.deposit_bonus_code)||"no_bonus"}}},watch:{userCurrency(){this.activeDepositGift||this.setDefaultAmountBuCurrency()},"userInfo.currency":function(){this.loadPaymentMethods()},minDepOnlyNumber:{handler(e){var t;this.amount=Xe({bonusMinDep:e,queryMinDep:parseFloat(re.get())||0,currentAmount:this.amount,defaultAmount:((t=this.userCurrencyConfig)==null?void 0:t.defaultAmount)||0})},immediate:!0}},mounted(){const{hookAfterLoadCashbox:e}=Ne();ie(async()=>{try{await e(),this.isLoaded=!0,b.markReady()}catch(t){b.markLoadFailed({stage:"data_load",err:t})}}).catch(t=>{b.markLoadFailed({stage:"lib_load",err:t})}),this.amount||this.setDefaultAmountBuCurrency(),this.$gtm.customTrackEvent(this.$gtm.CASHBOX_EVENTS.DEPOSIT.POPUP_OPENED),this.$bus.$on("ticket.choose.recommend.amount",t=>{this.amount=t}),this.$bus.$on("changedUserWallet",t=>{this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.AMOUNT_CHANGE_CURRENCY,dep_currency:t}),this.$bus.$off("changedUserWallet")}),this.$bus.$on("click.ticket.recommend.amount",({text:t})=>{this.depTicketText=t,this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.LOTTERY_TICKET_REC_CHOSEN,dep_ticket:this.depTicketText})})},beforeUnmount(){this.$bus.$off("ticket.choose.recommend.amount"),this.$bus.$off("changedUserWallet"),this.$bus.$off("click.ticket.recommend.amount"),b.markAbandon({step:this.currentIndex})},methods:{gtmEventErrorPromocode({message:e,messageCode:t}){const r=fe(Se.VALIDATION_FRONT,t);this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.ER
1ROR,eventLabel:"bonus",eventAction:`step${this.currentIndex}`,eventContent:e,error_key:r})},gtmInputError(e){this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.ERROR,eventAction:`step${this.currentIndex}`,eventLabel:e.name,eventContent:e.message,error_key:e.errorKey})},gtmSubmitSuccess(e){this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.DEPOSIT_BUTTON,...this.getGtmDepositData,amount:e.amount,eventLabel:this.selectedMethod.type,payment_option:this.paymentMethodCurrency})},onConfirmEnter(){this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.CONFIRM_STEP,eventLabel:this.selectedMethod.type,payment_option:this.paymentMethodCurrency})},closeHandlerDeposit(){this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.CLOSE_POPUP,eventAction:`step${this.currentIndex}`}),this.$route.name===U.bettingMain&&se(this.$router),this.closeHandler()},async selectPaymentMethod(e,t,r){var s,a;if(this.typeSystem===oe.DEPOSIT?this.hasDepositLimit:!1)return this.$router.push({name:U.profileLimits}).then(()=>{ue.close("modal-cashbox"),B.show({text:this.$t("NOTIFICATIONS.DEPOSIT_LIMIT_REACHED"),image:"reject",id:Date.now(),url:null,type:"warning",time:0}),this.closeHandler()});this.clickedMethod=e;const o=await pe({paymentMethod:e,saverProfileId:t,typeSystem:this.typeSystem,userCurrency:this.userCurrency});((s=this.clickedMethod)==null?void 0:s.id)===e.id&&(this.methodFields=o==null?void 0:o.methodFields,this.selectedMethod=o==null?void 0:o.selectedMethod,r&&this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.CHOOSE_METHOD,eventLabel:(a=this.selectedMethod)==null?void 0:a.type,payment_option:this.paymentMethodCurrency}))},changeBonusStatus(e){this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.USE_BONUSES,eventLabel:e?"bonus_check_on":"bonus_check_off"})},async toNextStepDeposit(){var r,i,o,s;if(this.blockNextByPromoCode){this.moveScrollToPromoCodeField();return}const{valid:e}=await this.validate();if(!e)return;switch((r=this.userInfo)!=null&&r.deposit_bonus_code&&this.amount<this.minDepOnlyNumber&&await((i=this.$refs.cashboxDepositBonus)==null?void 0:i.removePromocode()),this.toNextStep()){case 2:this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.POPUP_STEP_2,...this.getGtmDepositData});break;case 3:{const a=this.clickedMethod.id?this.clickedMethod:this.selectedMethod;le(a==null?void 0:a.brand),this.$gtm.customTrackEvent({...this.$gtm.CASHBOX_EVENTS.DEPOSIT.POPUP_STEP_3,...this.getGtmDepositData,eventLabel:a.type,payment_option:((s=(o=a.termsOfService)==null?void 0:o.restrictions)==null?void 0:s.amountCurrencyCode)||a.id});break}}},setDefaultAmountBuCurrency(){var e;this.amount=this.amountProp||((e=this.userCurrencyConfig)==null?void 0:e.defaultAmount)||Ae[this.userCurrency]},handleSelectTab(e){this.selectTab=e},moveScrollToPromoCodeField(){this.errorPromoPressAdd=this.$t("CASHBOX.BONUS.MESSAGES.ERROR_NOT_ADD"),this.gtmEventErrorPromocode({message:this.errorPromoPressAdd,messageCode:"ERROR-NOT-ADD"}),te.$emit("scrollToError",".cashbox-deposit-bonuses__body-promocode")},async handleChangeAmount(){var e;if(this.amount<this.minDepOnlyNumber){const t=(e=this.userInfo)==null?void 0:e.deposit_bonus_code;B.show({image:"warning",text:this.$t(`GIFT.NOTIFICATION.${t?"PROMOCODE_RESET":"BONUS_RESET"}`,{sum:this.activeDepositGiftMinDep}),id:Date.now(),url:null,type:"warning"}),await G()}}}},et={key:1,class:"auto-cols-columns-auto grid gap-y-16 lg:gap-y-24 auto-cols-fr slide-container__item"},tt={key:2,class:"slide-container__item"},ot={key:0,id:"container-payment-form",ref:"container",class:"payment-items__extra"};function st(e,t,r,i,o,s){const a=c("ToolbarSteps"),p=c("CashboxWithdrawRequests"),g=c("CashboxStepAmount"),E=c("LotteryRecommendDepList"),T=c("CashboxDepositBonus"),d=c("CashboxPaymentMethods"),D=c("CashboxForm"),P=c("UiButton"),I=c("ModalCommonSlot");return n(),S(I,{"data-test":"cashbox-deposit","show-loader":!o.isLoaded,"hide-common-toolbar":!0,title:e.$t("COMMON.DEPOSIT")},{"top-side":f(()=>[l(a,{"close-handler":s.closeHandlerDeposit,"current-step":i.currentIndex,"last-step":3,"show-progress":!0,"text-content":s.steps[i.currentIndex-1],"to-prev":s.fnToPrev},null,8,["close-handler","current-step","text-content","to-prev"])]),"bottom-side-under-scroll":f(()=>[s.showNextButton?(n(),S(P,{key:0,"data-test":o.dataTestAttrs.deposit.nextButton,class:"cashbox-step-button","full-width":"",onClick:s.toNextStepDeposit},{default:f(()=>[Y(C(e.$t("CASHBOX.STEP_FLOW.BUTTON_NEXT")),1)]),_:1},8,["data-test","onClick"])):h("",!0)]),default:f(()=>[l(ve,{name:i.back?"slideback":"slidenext",class:"slide-container",tag:"div"},{default:f(()=>[i.currentIndex===1?(n(),m("div",et,[l(p,{"close-handler":s.closeHandlerDeposit,"max-showing-items":2,"show-more-button":!1,theme:o.FeCardConfig.themes.Dark,class:"cashbox-dashboard__request","data-test":"cashbox-withdraw-requests","deposit-step":""},null,8,["close-handler","theme"]),M("form",{onSubmit:t[4]||(t[4]=Oe((...u)=>s.toNextStepDeposit&&s.toNextStepDeposit(...u),["prevent"]))},[l(g,{modelValue:i.amount,"onUpdate:modelValue":t[0]||(t[0]=u=>i.amount=u),class:"required","to-next-step":s.toNextStepDeposit,"type-system":o.TypeSystemPayment.TYPE_SYSTEM_PAYMENT,name:"amount","use-step-buttons":"",onKeyupOnce:t[1]||(t[1]=u=>e.$gtm.customTrackEvent(e.$gtm.CASHBOX_EVENTS.DEPOSIT.ENTER_THE_AMOUNT)),"onInput:change":s.handleChangeAmount,"onInput:minusOnce":t[2]||(t[2]=u=>e.$gtm.customTrackEvent(e.$gtm.CASHBOX_EVENTS.DEPOSIT.MINUS_AMOUNT)),"onInput:plusOnce":t[3]||(t[3]=u=>e.$gtm.customTrackEvent(e.$gtm.CASHBOX_EVENTS.DEPOSIT.PLUS_AMOUNT)),"onInput:error":s.gtmInputError},null,8,["modelValue","to-next-step","type-system","onInput:change","onInput:error"])],32),l(E,{"amount-dep":+i.amount},null,8,["amount-dep"]),l(T,{ref:"cashboxDepositBonus","init-value-promocode":r.promocode,"prop-error-message":o.errorPromoPressAdd,onChangeBonusStatus:s.changeBonusStatus,onChangePromocode:t[5]||(t[5]=u=>o.errorPromoPressAdd=""),onChangePromocodeOnce:t[6]||(t[6]=u=>e.$gtm.customTrackEvent(e.$gtm.CASHBOX_EVENTS.DEPOSIT.ENTER_PROMO_CODE)),onErrorPromocode:s.gtmEventErrorPromocode,onAddedPromocode:t[7]||(t[7]=u=>o.errorPromoPressAdd=""),onAddedPromocodeOnce:t[8]||(t[8]=u=>{var k;return e.$gtm.customTrackEvent({...e.$gtm.CASHBOX_EVENTS.DEPOSIT.PROMO_CODE_ADDED,dep_promocode:(k=e.userInfo)==null?void 0:k.deposit_bonus_code})})},null,8,["init-value-promocode","prop-error-message","onChangeBonusStatus","onErrorPromocode"])])):h("",!0),i.currentIndex===2?(n(),m("div",tt,[l(d,{amount:+i.amount,"type-system":o.TypeSystemPayment.TYPE_SYSTEM_PAYMENT,"show-tabs":"",onSelectTab:s.handleSelectTab,onSelected:s.selectPaymentMethod},null,8,["amount","type-system","onSelectTab","onSelected"])])):h("",!0),i.currentIndex===o.containerFormNum?(n(),m("div",{key:o.c
1ontainerFormNum,class:"payment-items__extra-form__parent slide-container__item"},[o.selectTab===o.TAB_NAME_CRYPTO?(n(),m("div",ot,null,512)):i.currentIndex===o.containerFormNum&&o.selectedMethod.id?(n(),S(D,{key:1,class:"required",action:i.typeSystem,"amount-value":i.amount,currency:i.userCurrency,"selected-method-config":o.selectedMethod,"selected-method-fields":o.methodFields,"type-action":i.typeSystem,"onInput:error":s.gtmInputError,"onConfirm:enter":s.onConfirmEnter,"onSubmitForm:success":s.gtmSubmitSuccess,onUpdateAmountValueOnce:t[9]||(t[9]=u=>e.$gtm.customTrackEvent({...e.$gtm.CASHBOX_EVENTS.DEPOSIT.CHANGE_AMOUNT_STEP_3,amount:u}))},null,8,["action","amount-value","currency","selected-method-config","selected-method-fields","type-action","onInput:error","onConfirm:enter","onSubmitForm:success"])):h("",!0)])):h("",!0)]),_:1},8,["name"])]),_:1},8,["show-loader","title"])}const Xt=v(Ze,[["render",st]]);export{Xt as default}; 2//# sourceMappingURL=CashboxStepDeposit-AHQKp7wm.js.map
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.