!function(){"use strict";var t,e={68187:function(t,e,n){var o=n(26982),r=n(13886),i=n.n(r),a=n(63237),s=n.n(a),c=n(21978),u=n(38501),l=n(93366),f=n(88524),d=(0,u.D)((0,c.lt)((0,c.eh)((function(t){return{step:+(0,f.A)("step"),amount:0,youReceiveAmount:0,method:null,isAjaxLoadingMethod:[!1,null],promocode:{},errorMessage:null,successMessage:null,chest:{title:null,img:null},sortType:"sort1",paymentsList:(0,f.A)("paymentsList"),setIsAjaxLoadingMethod:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t((function(t){t.isAjaxLoadingMethod=[e,n]}))},changeStep:function(e){return t((function(t){t.step=e}))},setSortType:function(e){return t((function(t){t.sortType=e}))},setAmount:function(e){return t((function(t){t.amount=e}))},setYouReceiveAmount:function(e){return t((function(t){t.youReceiveAmount=e}))},setMethod:function(e){return t((function(t){t.method=e}))},setErrorMessage:function(e){return t((function(t){t.errorMessage=e}))},setSuccessMessage:function(e){return t((function(t){t.successMessage=e}))},setChest:function(e){var n=e.title,o=e.img;return t((function(t){t.chest.title=n,t.chest.img=o}))},setPromocode:function(e){return t((function(t){t.promocode=e}))},removePromocode:function(){return t((function(t){t.promocode={}}))},searchPaymentsList:function(e){return t((function(t){e=e.toLowerCase(),Object.keys(t.paymentsList).map((function(n){var o=t.paymentsList[n].items.length,r=0;t.paymentsList[n].items.map((function(t){t.name.toLowerCase().includes(e)||(t.hidden=!0,r++)})),o===r&&(t.paymentsList[n].hidden=!0)}))}))},resetSearchPaymentList:function(){return t((function(t){Object.keys(t.paymentsList).map((function(e){t.paymentsList[e].hidden=!1,t.paymentsList[e].items.map((function(t){return t.hidden=!1}))}))}))}}})),{name:"cabinet-deposit-store",enabled:!1})),m=(0,l.vt)(d),h=m.getState,p=(m.setState,m.subscribe),v=function(t){return t(h())},b=n(29650),y=n.n(b),g=n(59974),k=n.n(g),C=function(){var t=v((function(t){return t.promocode})),e=v((function(t){return t.amount})),n={amount:e,minAmount:null,bonus:null,amountToWithdrawal:0};if(!k()(t,"min_amount"))return h().setYouReceiveAmount(e),n;var o=+y()(t,"min_amount"),r=+y()(t,"max_bonus"),i=+y()(t,"percent"),a=+y()(t,"multiplier");if(n.minAmount=o,n.bonus=i,n.amountToWithdrawal=0,e>=o){var s=e*i/100;s>r&&(s=r),n.amount=e+s,n.amountToWithdrawal=a*s,n.amountToWithdrawal=Math.round(n.amountToWithdrawal)}else n.amountToWithdrawal=0;return h().setYouReceiveAmount(n.amount),n};function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function j(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,S(o.key),o)}}function S(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==w(e)?e:e+""}var _=function(){return t=function t(){var e,n,o,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,o=function(t){var e=i()(t.currentTarget),n=+e.data("sum"),o=+e.data("percent"),a=+e.data("originalSum"),c=+e.data("notConvertedSum"),u=i()(".js-step2-content-block .js-safe-next-percent"),l=i()(".js-step2-content-block .js-safe-next-sum");a&&i()(".js-step2-content-block .profit").attr("data-crypto-original-val",a),s()(n)&&(l.html(c),u.html(o+"%"),C(),r.$step2Block.find('input[name="amount"]').val(n).trigger("input"))},(n=S(n="itemClickHandler"))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,this.$step2Block=i()(".js-step2-content-block")},(e=[{key:"init",value:function(){this.events()}},{key:"events",value:function(){i()(".js-step2-content-block").on("click",".js-sum-offer-item",this.itemClickHandler)}}])&&j(t.prototype,e),n&&j(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function $(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,A(o.key),o)}}function A(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:e+""}var B=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$input=i()(".js-live-search-input"),this.minChars=3},(e=[{key:"init",value:function(){this.$input.length&&this.events()}},{key:"events",value:function(){var t=this;this.$input.on("input",(function(){var e=i().trim(t.$input.val());e.length<t.minChars?h().resetSearchPaymentList():h().searchPaymentsList(e)}))}}])&&$(t.prototype,e),n&&$(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function x(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,O(o.key),o)}}function O(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==P(e)?e:e+""}var M=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$paymentListBlock=i()(".js-payments-block"),this.$sortBtn1=i()(".js-sort-btn-1"),this.$sortBtn2=i()(".js-sort-btn-2")},(e=[{key:"init",value:function(){this.$paymentListBlock.length&&this.events()}},{key:"events",value:function(){var t=this;this.$sortBtn1.on("click",(function(){h().setSortType("sort1"),!t.$sortBtn1.hasClass("active")&&t.$sortBtn1.addClass("active"),t.$sortBtn2.hasClass("active")&&t.$sortBtn2.removeClass("active")})),this.$sortBtn2.on("click",(function(){h().setSortType("sort2"),!t.$sortBtn2.hasClass("active")&&t.$sortBtn2.addClass("active"),t.$sortBtn1.hasClass("active")&&t.$sortBtn1.removeClass("active")}))}}])&&x(t.prototype,e),n&&x(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),E=n(50542),L=n(3863),H=n(93003),N=n(52404),D=n(51761),I=n(73399),R=n(22485),F=n.n(R),J=function(t){if(y()(window,"AppData.trader_and_upgrade_enable",!1)){var e=i()(".js-traders-and-upgrade");0!==e.length&&(t>=20?e.hasClass("hidden")&&e.removeClass("hidden"):!e.hasClass("hidden")&&e.addClass("hidden"))}},W=function(t){if(y()(window,"AppData.traders_box_enable",!1)){var e=i()(".js-traders-box");0!==e.length&&(t>=25?e.hasClass("hidden")&&e.removeClass("hidden"):!e.hasClass("hidden")&&e.addClass("hidden"))}};function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function Y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){u=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return U(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function X(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,z(o.key),o)}}function z(t){var e=function(t,e){if("object"!=q(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==q(e)?e:e+""}var G=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$items=i()(".js-payments-item"),this.$step2Block=i()(".js-step2"),this.abort=null},e=[{key:"init",value:function(){this.$items.length&&(this.events(),this.openMethodFromHash())}},{key:"openMethodFromHash",value:function(){var e=window.location.hash.substr(1),n=e.indexOf("?");if((e=-1!==n?e.substr(0,n):(0,I.A)("method")||"").length&&function(e){var n=y()(window,"AppData.paymentsList",!1);if(!n)return!0;try{n=Object.values(n).map((function(t){return t.items}));var o=[];return n.map((function(t){return t.map((function(t){return o.push(t.method)}))})),F()(o,e)}catch(t){}return!0}(e)){var o=i()('.js-payments-item[data-method="'.concat(e,'"]'));o.length&&(h().setMethod(e),o.click())}}},{key:"events",value:function(){var t=this;i()(".js-payments-block").on("click",".js-payments-item",(function(e){if(!Y(v((function(t){return t.isAjaxLoadingMethod})),1)[0]){var n=i()(e.currentTarget);if(n.data("note-id")&&!0!==n.data("note-confirmed")){e.preventDefault();var o=(0,N.U)("#".concat(n.data("note-id"),"-tpl"),"#".concat(n.data("method"),"-tpl"));(new D.p).openWithHtml(o({method:n.data("method")}))}else{var r=i().trim(n.find('input[name="url"]').val());h().setMethod(n.data("method")),h().setIsAjaxLoadingMethod(!0,n),t.request(r).then((function(){h().setIsAjaxLoadingMethod(!1,n),(0,H.hP)()&&(0,L.A)(i()(".deposit-block__in"),0)}))}}})),i()("body").on("click",".note-modal .js-confirm",(function(t){var e=i()('.js-payments-block .js-payments-item[data-method="'.concat(i()(t.currentTarget).data("method"),'"]'));0!==e.length&&(e.data("note-confirmed",!0),e.trigger("click"),i().magnificPopup.close())})),i()(window).on("hashchange",(function(){return t.openMethodFromHash()}))}},{key:"request",value:function(t){var e=this,n=E.A.requestAbortable({url:t,beforeSend:function(){"function"==typeof e.abort&&e.abort()},success:function(t){k()(t,"error")?h().setErrorMessage(t.error):(h().setErrorMessage(null),h().setAmount(t.amount),h().setYouReceiveAmount(t.amount),e.$step2Block.find(".js-step2-content-block").html(t.html).promise().done((function(){h().changeStep(2),e.initPlugins();var n=i()(".js-step2 #bonus_code");if(i().trim(n.val()).length>0){var o=i()(".js-step2 .js-promocode-checkbox");o.is(":hidden")||(o.trigger("click"),n.trigger("input"))}J(t.amount),W(t.amount),(0,I.A)("submit")&&e.$step2Block.find(".js-submit-btn").trigger("click")})))},complete:function(){e.abort=null}}),o=n.abort,r=n.promise;return this.abort=o,r}},{key:"initPlugins",value:function(){var t=this.$step2Block.find(".selectpicker");t.length&&t.selectpicker()}}],e&&X(t.prototype,e),n&&X(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function V(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Q(o.key),o)}}function Q(t){var e=function(t,e){if("object"!=K(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=K(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==K(e)?e:e+""}var Z=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$stepsBlock=i()(".js-deposit-steps"),this.classNameChecked="step--checked",this.classNameActive="step--active"},(e=[{key:"setStep",value:function(t){var e=this,n=this.$stepsBlock.find(".step");n.removeClass(this.classNameChecked),n.removeClass(this.classNameActive),n.each((function(n,o){if(!(n+1<t))return n+1===t?(i()(o).addClass(e.classNameActive),!1):void 0;i()(o).addClass(e.classNameChecked)}))}},{key:"test",value:function(){var t=this;console.log("START test Steps"),setTimeout((function(){return t.setStep(1)}),2e3),setTimeout((function(){return t.setStep(2)}),4e3),setTimeout((function(){return t.setStep(3)}),6e3),setTimeout((function(){return t.setStep(4)}),8e3),setTimeout((function(){return t.setStep(5)}),1e4)}}])&&V(t.prototype,e),n&&V(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,nt(o.key),o)}}function nt(t){var e=function(t,e){if("object"!=tt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=tt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tt(e)?e:e+""}var ot=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$block=i()(".js-message-block"),this.allowedTypes=["success","info","error","warning"]},(e=[{key:"showMessage",value:function(t,e){-1!==this.allowedTypes.indexOf(e)&&(this.$block.removeClass(this.allowedTypes.map((function(t){return"message-".concat(t)})).join(" ")).removeClass("hidden"),this.$block.addClass("message-".concat(e)).html(t))}},{key:"hideMessage",value:function(){this.$block.removeClass(this.allowedTypes.map((function(t){return"message-".concat(t)})).join(" ")),this.$block.addClass("hidden")}},{key:"test",value:function(){var t=this;setTimeout((function(){return t.showMessage("test message","info")}),2e3),setTimeout((function(){return t.showMessage("test message","error")}),4e3),setTimeout((function(){return t.showMessage("test message","success")}),6e3),setTimeout((function(){return t.hideMessage()}),1e4)}}])&&et(t.prototype,e),n&&et(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),rt=function(){i()("body").on("click",".js-prev",(function(t){t.preventDefault();var e=v((function(t){return t.step}));h().changeStep(e-1)}))},it=n(15785),at=n(3803),st=n.n(at),ct=n(61290),ut=n(83150),lt=function(){var t=i()(".js-promocode-checkbox"),e=i()("#bonus_code"),n=i()(".js-promocode-info"),o=i()(".js-fs-promocode-info-box"),r=i()(".promocode-info-block__in");t.is("checked")&&t.trigger("click"),e.val(""),!n.hasClass("hidden")&&n.addClass("hidden"),!o.hasClass("hidden")&&o.addClass("hidden"),!r.hasClass("hidden")&&r.addClass("hidden")},ft=n(39405),dt=function(t){return t.errorMessage},mt=function(t){return t.successMessage},ht=function(t){return t.chest},pt=function(t){return t.paymentsList},vt=function(t){return t.sortType},bt=function(t){return t.youReceiveAmount},yt=function(t){return t.amount},gt=function(t){return t.step},kt=function(t){return t.isAjaxLoadingMethod},Ct=function(t){return t.promocode},wt=n(8934),jt=n(13283);function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function _t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,$t(o.key),o)}}function Tt(t,e,n){return(e=$t(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $t(t){var e=function(t,e){if("object"!=St(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=St(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==St(e)?e:e+""}var At=function(){return t=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Tt(this,"youReceiveAmountListenerHandler",(function(){var t=e.getData();if(1!=t.rate){var n=Math.pow(10,-1*t.precision),o=Math.ceil(t.amount*t.rate/n)*n;e.cache.$localRateBlock.removeClass("hidden"),e.cache.$localRateBlock.text("("+(0,wt.vv)((0,jt.A)(o,t.precision>=0?t.precision:0,".",","),t.currency)+")")}else e.cache.$localRateBlock.addClass("hidden")})),Tt(this,"getData",(function(){return{currency:e.cache.$amountField.data("deposit-currency"),rate:e.cache.$amountField.data("deposit-rate"),precision:e.cache.$amountField.data("deposit-precision"),amount:v((function(t){return t.amount}))}})),this.cache={}},(e=[{key:"init",value:function(){var t=this;p(gt,(function(e){2===e?t.attachEvents():t.detachEvents()}))}},{key:"attachEvents",value:function(){this.cache.$block=i()(".js-step2"),this.cache.$btn=this.cache.$block.find(".js-submit-btn"),this.cache.$amountField=this.cache.$block.find('input[name="amount"]'),this.cache.$localRateBlock=this.cache.$block.find(".js-local-rate"),this.cache.listener=p(bt,this.youReceiveAmountListenerHandler),this.youReceiveAmountListenerHandler()}},{key:"detachEvents",value:function(){this.cache.listener(),this.cache={}}}])&&_t(t.prototype,e),n&&_t(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Pt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Ot(o.key),o)}}function xt(t,e,n){return(e=Ot(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ot(t){var e=function(t,e){if("object"!=Bt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Bt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bt(e)?e:e+""}var Mt=function(){return t=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xt(this,"clearCardData",(function(){e.$step2Block.find(".card-data-wrapper").remove(),e.$step2Block.find(".btn-submit-wrap").show()})),xt(this,"clearPromocodeClickHandler",(function(){var t=v((function(t){return t.amount}));e.$step2Block.find('input[name="bonus_code"]').val(""),e.promocodeHideStep(),h().setErrorMessage(null),h().removePromocode(),!e.$step2Block.find(".js-fs-promocode-info-box").hasClass("hidden")&&e.$step2Block.find(".js-fs-promocode-info-box").addClass("hidden"),h().setYouReceiveAmount(t),e.promoCodeMessageBlock("hide")})),xt(this,"promocodeChangeHandler",(function(t){var n=i().trim(i()(t.currentTarget).val()),o=v((function(t){return t.amount}));if(0!==n.length){if(n.length<3)return e.promoCodeMessageBlock("hide"),h().removePromocode(),e.promocodeInfoBlockToggle("hide"),void e.promocodeShowStep(1);var r=E.A.requestAbortable({url:(0,ct.hX)("ajax-trading/check-bonus-code"),method:"post",data:{bonus_code:n},beforeSend:function(){null!==e.promocodeAbort&&e.promocodeAbort(),e.promoCodeMessageBlock("hide"),e.promocodeShowStep(2),e.promocodeInfoBlockToggle("hide"),h().setYouReceiveAmount(o)},complete:function(){e.promocodeAbort=null,e.calculatePromo()},success:function(t){!0===t.error?(e.promocodeShowStep(4),e.promoCodeMessageBlock("show",t.text),document.dispatchEvent(new CustomEvent("deposit-step-2-bonus-code-error",{detail:{type:t.error_type}}))):(h().setPromocode(t),e.promocodeShowStep(3),e.promocodeInfoBlockToggle("show"),e.promocodeInfoTooltipBlock())},error:function(){}}).abort;e.promocodeAbort=r}else e.clearPromocodeClickHandler()})),xt(this,"promoCodeMessageBlock",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"show",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.$step2Block.find(".js-promocode-block .js-promo-cede-error-block");"show"===t?(o.html(n),o.hasClass("hidden")&&o.removeClass("hidden")):!o.hasClass("hidden")&&o.addClass("hidden")})),xt(this,"checkboxPromocodeChangeHandler",(function(t){var n=i()(t.currentTarget).is(":checked"),o=e.$step2Block.find(".js-promocode-block");n?o.hasClass("hidden")&&o.removeClass("hidden"):(!o.hasClass("hidden")&&o.addClass("hidden"),lt(),h().removePromocode())})),xt(this,"formSubmitHandler",(function(t){var n=i()(t.currentTarget);if(!0!==n.data("is-loading")){if((0,H.hP)()&&(n[0].checkValidity()||(0,L.A)(i()(".deposit-block__in"))),e.$step2Block.find(".js-submit-btn").hasClass("btn-ajax-loading"))return!1;var o=new FormData(n[0]),r=(new ut.Ay).setAbsolute(!0).setBacking(!0).getForBlock(),a=E.A.requestAbortable({url:n.attr("action"),method:n.attr("method"),data:o,processData:!1,contentType:!1,beforeSend:function(){"function"==typeof e.abort&&e.abort(),n.append(r).data("is-loading",!0)},success:function(t){t.form_errors?(h().setErrorMessage(t.form_errors.join("<br>")),r.remove(),n.removeData("is-loading")):t.html_replace?(i()(t.html_replace).insertAfter(".btn-submit-wrap"),i()(".btn-submit-wrap").hide(),r.remove(),n.removeData("is-loading"),(0,f.A)("is-mobile-version")&&i()([document.documentElement,document.body]).animate({scrollTop:i()(".youll-get-block").offset().top-15},500),console.log("SCRl")):t.html&&(setTimeout((function(){r.remove(),n.removeData("is-loading")}),1e4),e.$step3Block.addClass("hidden").html(t.html).find(".process-btn").trigger("click"))},complete:function(){e.abort=null},error:function(t){r.remove(),n.removeData("is-loading"),console.error(t)}}).abort;e.abort=a}})),xt(this,"amountChangeHandler",(function(t){var n=(0,it.Kz)(t.currentTarget.value,(0,wt.L9)());t.currentTarget.value=(0,it.q$)(t.currentTarget.value,(0,wt.L9)()),h().setAmount(+n),h().setYouReceiveAmount(+n),e.calculatePromo()})),xt(this,"toggleCurrentBonusHandler",(function(t){var e="current-bonus",n="".concat(e,"--opened"),o=i()(t.currentTarget).parent(),r=o.find(".".concat(e,"__content"));o.hasClass(n)?(o.removeClass(n),r.stop(!0).slideUp("normal")):(o.addClass(n),r.stop(!0).slideDown("fast"))})),this.$step2Block=i()(".js-step2"),this.$step3Block=i()(".js-step3"),this.promocodeAbort=null,this.abort=null},(e=[{key:"init",value:function(){(new At).init(),this.events(),this.$step2Block.length&&!this.$step2Block.hasClass("hidden")&&(h().changeStep(2),this.$step2Block.find('input[name="amount"]').trigger("input"))}},{key:"events",value:function(){var t=this;this.$step2Block.on("input",'input[name="amount"]',this.amountChangeHandler),this.$step2Block.on("input keyup change","input, select",(function(){t.clearCardData()})),this.$step2Block.on("click",".current-bonus__header",this.toggleCurrentBonusHandler),this.$step2Block.on("submit","form",this.formSubmitHandler),this.$step2Block.on("change",".js-promocode-checkbox",this.checkboxPromocodeChangeHandler),this.$step2Block.on("click",".js-clear-promo-code",this.clearPromocodeClickHandler),this.$step2Block.on("input",'input[name="bonus_code"]',st()(this.promocodeChangeHandler.bind(this),500));var e=this.$step2Block.find("#bonus_code");if(i().trim(e.val()).length>0&&(this.$step2Block.find(".js-promocode-checkbox").trigger("click"),e.trigger("input")),(0,I.A)("submit")){var n=!1;this.$step2Block.find(".form-group input, .form-group select").each((function(t){i()(this).attr("name")&&!["amount","bonus_code","email"].includes(i()(this).attr("name"))&&(n=!0)})),n||this.$step2Block.find(".js-submit-btn").trigger("click")}window.addEventListener("message",(function(t){t.data&&t.data.type&&"card_redirect"===t.data.type&&(i().ajax({url:(0,ft.A)()+"cabinet/deposit/log/"+t.data.id,type:"GET",data:{message:"Html Redirect to 3DS"}}),document.write(t.data.html))}))}},{key:"promocodeInfoTooltipBlock",value:function(){var t=v((function(t){return t.promocode})),e=this.$step2Block.find(".promocode-info-block__v3 .tooltip-text");e.find(".js-min-amount").text((0,wt.ej)(y()(t,"min_amount"),(0,wt.L9)())),e.find(".js-percent").text(y()(t,"percent")),e.find(".js-label").text(y()(t,"label")),e.find(".js-count-user-use").text(y()(t,"cnt_user_use")),e.find("#promo-multiplier").text(y()(t,"multiplier")),this.$step2Block.find(".promo_min_amount").text((0,wt.ej)(y()(t,"min_amount"),(0,wt.L9)())),this.$step2Block.find("#promo_bonus").text(y()(t,"percent")),k()(t,"max_bonus")&&parseInt(t.max_bonus)>0?(e.find(".promo_max_bonus").html((0,wt.ej)(t.max_bonus,(0,wt.L9)())),e.find(".promo_max_bonus_wrapper").show()):e.find(".promo_max_bonus_wrapper").hide()}},{key:"promocodeInfoBlockToggle",value:function(t){var e=v((function(t){return t.promocode})),n=this.$step2Block.find(".js-fs-promocode-info-box");n.find(".promo_min_amount").text((0,wt.ej)(y()(e,"min_amount"),(0,wt.L9)())),n.find(".promo_max_bonus").text((0,wt.ej)(y()(e,"max_bonus"),(0,wt.L9)())),n.find(".promo_bonus").text(y()(e,"percent")),n.find(".promo-multiplier").text(y()(e,"multiplier")),"show"===t?n.hasClass("hidden")&&n.removeClass("hidden"):!n.hasClass("hidden")&&n.addClass("hidden")}},{key:"calculatePromo",value:function(){var t=this.$step2Block.find(".js-fs-promocode-info-box"),e=C();k()(e,"minAmount")&&"number"==typeof e.minAmount&&(e.amount>e.minAmount?(t.find(".promo_bonus").text(e.bonus),!t.find(".min-amount-message").hasClass("hidden")&&t.find(".min-amount-message").addClass("hidden")):(t.find(".promo_bonus").text(0),t.hasClass("hidden")&&t.removeClass("hidden")),t.find(".amount-to-wdrw").text((0,wt.ej)(e.amountToWithdrawal,(0,wt.L9)())))}},{key:"promocodeShowStep",value:function(t){var e=i()(".js-promocode-block");if(e.length){var n=e.find(".promocode-info-block__in");n.hasClass("hidden")&&n.removeClass("hidden");for(var o=0;o<4;o++){var r=n.find(".promocode-info-block__v".concat(o+1));o+1===t?r.hasClass("hidden")&&r.removeClass("hidden"):!r.hasClass("hidden")&&r.addClass("hidden")}var a=n.find(".promocode-info-block__v".concat(t));a.hasClass("hidden")&&a.removeClass("hidden")}}},{key:"promocodeHideStep",value:function(){var t=i()(".js-promocode-block .promocode-info-block__in");!t.hasClass("hidden")&&t.addClass("hidden");for(var e=0;e<4;e++){var n=t.find(".promocode-info-block__v".concat(e+1));!n.hasClass("hidden")&&n.addClass("hidden")}}}])&&Pt(t.prototype,e),n&&Pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),Et=Mt,Lt=n(47727);i().fn.textColorFadeOutCss=function(t){return this.each((function(){var e=i()(this),n=i().extend(!0,i().fn.textColorFadeOutCss.defaultOptions,t),o="text-color-animation text-color-animation--".concat(n.type);e.removeClass(o),this.offsetWidth,"string"==typeof n.duration&&e.css("animation-duration",n.duration),e.one((0,Lt.A)(),(function(){return e.removeClass(o)})).addClass(o)})),this},i().fn.textColorFadeOutCss.defaultOptions={type:"orange"};var Ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return k()(window,"chestJsonData")?y()(window,"chestJsonData.".concat(t,".amount"),e):new Error("Error: window.chestJsonData not found")};function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}function Dt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Rt(o.key),o)}}function It(t,e,n){return(e=Rt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t){var e=function(t,e){if("object"!=Nt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Nt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nt(e)?e:e+""}var Ft=function(){return t=function e(){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),It(this,"amountChangeHandler",(function(e){try{var o=function(t){if(!k()(window,"chestJsonData"))return new Error("Error: window.chestJsonData not found");for(var e in window.chestJsonData)if(t>=Ht(e,0))return e;return"info"}(e);if("info"===o)return n.hideChestInfo(),h().setChest({img:null,title:null}),n.getChestsBlock().find(".".concat(n.activeClassName)).removeClass(n.activeClassName);var r=n.getChestsBlock().find(".".concat(n.baseClassName,"--").concat(o));if(0===r.length)return;n.blockChangeClassName(o),r.addClass(n.activeClassName).siblings().removeClass(n.activeClassName),n.showChestInfo(o),n.saveToStore(o)}catch(t){}})),It(this,"itemClickHandler",(function(t){t.preventDefault();try{var e=i()(t.currentTarget).data("type");n.setAmount(Ht(e));var o=n.$body.find(".".concat(n.baseClassName,"--").concat(e));if(0===o.length)return;n.blockChangeClassName(e),o.addClass(n.activeClassName).siblings().removeClass(n.activeClassName),n.showChestInfo(e),n.saveToStore(e),C()}catch(t){}})),this.$body=i()("body"),this.baseClassName="deposit-chest-list__item",this.activeClassName="".concat(this.baseClassName,"--active")},(e=[{key:"init",value:function(){this.events()}},{key:"events",value:function(){var t=this;this.$body.on("click",".js-amount-in-chests .".concat(this.baseClassName),this.itemClickHandler),p((function(t){return t.amount}),(function(e){return t.amountChangeHandler(e)}))}},{key:"getChestsBlock",value:function(){return i()(".js-amount-in-chests")}},{key:"setAmount",value:function(t){i()(".js-step2-content-block #amount").val(t).trigger("input").trigger("keyup")}},{key:"saveToStore",value:function(t){var e=this.getChestByType(t),n=i()(".js-amount-in-chests .".concat(this.activeClassName," img")).attr("src");h().setChest({img:n,title:e.title})}},{key:"getChestByType",value:function(t){return y()(window,"chestJsonData.".concat(t))}},{key:"showChestInfo",value:function(t){var e=this.getChestByType(t),n=(0,N.U)("#js-amount-chest-info-tpl");i()(".js-amount-chest-info").html(n(e)).removeClass("hidden")}},{key:"hideChestInfo",value:function(){var t=i()(".js-amount-chest-info");!t.hasClass("hidden")&&t.addClass("hidden")}},{key:"blockChangeClassName",value:function(t){var e=this.getChestsBlock();if(0!==e.length&&k()(window,"chestJsonData")){var n=Object.keys(window.chestJsonData);e.removeClass(n.join(" ")),e.addClass(t)}}}])&&Dt(t.prototype,e),n&&Dt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function Wt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,qt(o.key),o)}}function qt(t){var e=function(t,e){if("object"!=Jt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Jt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jt(e)?e:e+""}var Yt=function(){return t=function t(){var e,n,o,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,o=function(t){var e=r.$step3Block.find("#depositForm"),n=r.$step3Block.find("#deposit-id").data("value");return i().get("".concat((0,ft.A)(),"cabinet/deposit-confirm/").concat(n)),e.submit()},(n=qt(n="processBtnClickHandler"))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,this.$step3Block=i()(".js-step3")},(e=[{key:"init",value:function(){this.events()}},{key:"events",value:function(){this.$step3Block.on("click",".process-btn",this.processBtnClickHandler)}}])&&Wt(t.prototype,e),n&&Wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),Ut=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.ceil(t.length/e),o=[],r=0;r<Math.ceil(t.length/n);r++)o[r]=t.slice(r*n,r*n+n);return o},Xt=function(){if(1===v((function(t){return t.step}))){var t=v((function(t){return t.sortType})),e=v((function(t){return t.paymentsList})),n=i()(".js-payments-block"),o=(0,N.U)("#payment-list-divider-tpl","#payment-list-divider-tpl"),r=(0,N.U)("#payment-list-item-tpl","#payment-list-item-tpl"),a=[];if(Object.keys(e).map((function(t){e[t].hidden||a.push(o({icon:e[t].icon,label:e[t].label,category:t})),e[t].items.map((function(t){t.hidden||a.push(r({noteId:-1!==["changecoins_etc","changecoins_tron","nowpayments_etc"].indexOf(t.method)&&"etc-note",image:t.image,imageHtml:t.imageHtml,short_name:t.short_name,min_depo:t.min_depo,processing_time:t.processing_time,method:t.method}))}))})),"sort1"===t)!n.hasClass("sort1")&&n.addClass("sort1"),n.hasClass("sort2")&&n.removeClass("sort2");else if("sort2"===t){!n.hasClass("sort2")&&n.addClass("sort2"),n.hasClass("sort1")&&n.removeClass("sort1");var s=Ut(a);a=[];for(var c=0;c<s.length;c++){a.push('<div class="tmp-col">');for(var u=0;u<s[c].length;u++)a.push(s[c][u]);a.push("</div>")}}n.html(a.join(""))}},zt=function(t){var e=i()(".js-step1"),n=i()(".js-step2"),o=i()(".js-step3");switch(t){case 1:e.hasClass("hidden")&&e.removeClass("hidden"),!n.hasClass("hidden")&&n.addClass("hidden"),n.find(".js-step2-content-block").empty(),!o.hasClass("hidden")&&o.addClass("hidden"),o.find(".js-step3-content-block").empty(),h().setAmount(0),h().setYouReceiveAmount(0),h().setMethod(null),h().setErrorMessage(null),h().setSuccessMessage(null),h().setChest({title:null,img:null});break;case 2:!e.hasClass("hidden")&&e.addClass("hidden"),n.hasClass("hidden")&&n.removeClass("hidden"),!o.hasClass("hidden")&&o.addClass("hidden"),o.find(".js-step3-content-block").empty();break;case 3:!e.hasClass("hidden")&&e.addClass("hidden"),!n.hasClass("hidden")&&n.addClass("hidden"),n.find(".js-step2-content-block").empty(),o.hasClass("hidden")&&o.removeClass("hidden")}},Gt=n(69914),Kt=n.n(Gt);function Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}function Qt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Zt(o.key),o)}}function Zt(t){var e=function(t,e){if("object"!=Vt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Vt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vt(e)?e:e+""}var te=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.items=document.querySelectorAll(".copy-to-clipboard"),this.$items=i()(".copy-to-clipboard"),this.clipboard=null},e=[{key:"init",value:function(){0!==this.$items.length&&this.events()}},{key:"events",value:function(){this.$items.on("click",(function(t){var e=i()(t.currentTarget);if(!0!==e.data("is-clicked")){e.data("is-clicked",!0);var n=e.html();e.html('<span style="color: #07c328">'+e.data("copy-message")+"</span>"),setTimeout((function(){e.html(n),e.removeData("is-clicked")}),3e3)}else t.preventDefault()})),this.clipboard=new(Kt())(this.items,{text:function(t){return t.getAttribute("data-copy-text")}})}}],e&&Qt(t.prototype,e),n&&Qt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function ee(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){u=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ne(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}var oe=function(){var t=ee(v((function(t){return t.isAjaxLoadingMethod})),2),e=t[0],n=t[1];null!==n&&n.length&&(e?n.find(".".concat(ut.pP.base)).length||n.append((new ut.Ay).setAbsolute(!0).getForBlock()):n.find(".".concat(ut.pP.base)).length&&n.find(".".concat(ut.pP.base)).remove())};function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function ie(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,se(o.key),o)}}function ae(t,e,n){return(e=se(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function se(t){var e=function(t,e){if("object"!=re(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=re(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==re(e)?e:e+""}var ce=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ae(this,"changeAmountHandler",(function(t){var e=t+n.safeBalance,o=0;n.conditions.map((function(t,n){e>=t.account_balance&&e<=t.volume&&(o=n)}));var r=n.conditions[o];n.conditions[o+1]&&(r=n.conditions[o+1]);var i=(0,wt.Fl)(r.balance-n.safeBalance,n.safeCurrencyCode);n.changeText(r.percent,i)})),ae(this,"changeText",(function(t,e){var o=i()(".payment-info-block-deposit--my-safe .payment-info-block-deposit__text");o.find(".js-percentage").text("".concat(t,"%")),o.find(".js-sum").text("".concat(n.safeCurrency).concat(e))})),this.conditions=Object.values(e),this.safeBalance=y()(window,"safeBalance",0),this.safeCurrency=y()(window,"safeCurrency",""),this.safeCurrencyCode=y()(window,"safeCurrencyCode","")},(e=[{key:"init",value:function(){this.events()}},{key:"events",value:function(){p(bt,this.changeAmountHandler)}}])&&ie(t.prototype,e),n&&ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),ue=n(5864),le=n(94113),fe=n(38245);function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function me(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,he(o.key),o)}}function he(t){var e=function(t,e){if("object"!=de(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=de(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==de(e)?e:e+""}var pe=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$select=i()("select.js-payment-country"),this.abort=null,this.notify=new ue.A({position:le.XC,time:5e3})},e=[{key:"init",value:function(){this.$select.length&&this.events()}},{key:"scrollToSelected",value:function(){var t=i()(".dropdown-menu > .inner"),e=t.find(".user-geoip").closest("li").addClass("selected active li-user-geoip");if(e.length){var n=e.offset().top-t.offset().top+t.scrollTop();t.scrollTop(n)}}},{key:"changeCountry",value:function(t){"function"==typeof this.abort&&this.abort();var e=this.$select.closest(".deposit-filters").find(".deposit-filters__col:first");if(2===t.length){var n=E.A.requestAbortable({url:(0,ct.hX)("cabinet/save-var"),data:{key:"change-payment-country",value:t},beforeSend:function(){e.append((new ut.Ay).setAbsolute(!0).getForBlock()),e.addClass("ajax-loading")},complete:function(){e.find(".".concat(ut.pP.base)).remove(),e.removeClass("ajax-loading")},success:function(t){t.status&&window.location.reload()},error:function(t){return console.log(t)}}).abort;this.abort=n}else this.notify.red((0,fe.tr)("choose_the_country"))}},{key:"events",value:function(){var t=this;this.$select.on("show.bs.select",(function(){setTimeout((function(){return t.scrollToSelected()}),0)})),this.$select.on("change",(function(e){e.preventDefault();var n=e.currentTarget.value.trim();t.changeCountry(n)}))}}],e&&me(t.prototype,e),n&&me(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();document.addEventListener("DOMContentLoaded",(function(){(0,o.A)();var t=new Z,e=new ot;Xt(),p(gt,(function(e){t.setStep(e),zt(e),1!==e&&2!==e||i()(".content").removeAttr("class").addClass("content deposit-step-".concat(e))})),p(bt,(function(t){var e=t-v((function(t){return t.amount}));0===e?i()(".youll-get-block__amount").addClass("hidden"):i()(".youll-get-block__amount").removeClass("hidden"),i()(".js-result-sum").html((0,wt.ej)(t,(0,wt.L9)())),i()(".js-result-amount").html((0,wt.ej)(e,(0,wt.L9)()))})),p(yt,(function(t){var e=i()(".deposit-step-2");e.find(".js-btn-amount").html((0,wt.ej)(t,(0,wt.L9)()));var n=e.find(".js-maximum-depo-notice");n.length>0&&(t<parseFloat(n.data("min-amount"))?n.hasClass("hidden")&&n.removeClass("hidden"):!n.hasClass("hidden")&&n.addClass("hidden")),J(t),W(t)})),p(vt,(function(){Xt(),oe()})),p(pt,(function(){Xt(),oe()})),p(ht,(function(t){var e=i()(".youll-get-block__chest"),n=i()(".youll-get-block__amount");(e.length||n.length)&&(null!==t.title?(e.find("img").attr("src",t.img),e.find("span").text(t.title),e.removeClass("hidden"),n.find(".js-result-amount span").html(t.amount),n.removeClass("hidden")):!e.hasClass("hidden")&&e.addClass("hidden"))})),p(dt,(function(t){if(null===t)return e.hideMessage();e.showMessage(t,"error")})),p(mt,(function(t){if(null===t)return e.hideMessage();e.showMessage(t,"success")})),p(Ct,(function(){return C()})),p(kt,(function(){return oe()})),(new te).init(),(new B).init(),(new pe).init(),(new M).init(),(new G).init(),(new Et).init(),(new Yt).init(),(new _).init(),(new Ft).init(),k()(window,"safeConditions")&&new ce(y()(window,"safeConditions")).init(),rt()}))}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=e,t=[],o.O=function(e,n,r,i){if(!n){var a=1/0;for(l=0;l<t.length;l++){n=t[l][0],r=t[l][1],i=t[l][2];for(var s=!0,c=0;c<n.length;c++)(!1&i||a>=i)&&Object.keys(o.O).every((function(t){return o.O[t](n[c])}))?n.splice(c--,1):(s=!1,i<a&&(a=i));if(s){t.splice(l--,1);var u=r();void 0!==u&&(e=u)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[n,r,i]},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o.j=335,function(){var t={335:0};o.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,i,a=n[0],s=n[1],c=n[2],u=0;if(a.some((function(e){return 0!==t[e]}))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(c)var l=c(o)}for(e&&e(n);u<a.length;u++)i=a[u],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return o.O(l)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var r=o.O(void 0,[994],(function(){return o(68187)}));r=o.O(r)}();
//# sourceMappingURL=deposit.js.map