try{let d="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new d.Error).stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="835ffbf9-a9ac-4b4a-ad38-ee3e3152dd2d",d._sentryDebugIdIdentifier="sentry-dbid-835ffbf9-a9ac-4b4a-ad38-ee3e3152dd2d")}catch(e){}{let d="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};d.SENTRY_RELEASE={id:"558896"}}(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a521346"],{"251f":function(d,e,t){"use strict";t("94c1")},"2b11":function(d,e,t){"use strict";var $=t("f3f3"),n=(t("caad"),t("c975"),t("13d5"),t("fb6a"),t("4d63"),t("c607"),t("ac1f"),t("2532"),t("5319"),t("841c"),t("be92")),i=t("d373"),o=t("10ba");const r={Semicolon:";",Quote:"'",IntlBackslash:"`",Backslash:"\\",Minus:"-",BracketLeft:"[",BracketRight:"]",Equal:"=",Slash:"/",Period:".",Comma:",",Space:" "},a={BracketLeft:"{",BracketRight:"}",Semicolon:":",Quote:'"',Backslash:"|",IntlBackslash:"~",Slash:"?",Period:">",Comma:"<",Equal:"+",Minus:"_",Digit0:")",Digit9:"(",Digit8:"*",Digit7:"7",Digit6:"^",Digit5:"%\n",Digit4:"$",Digit3:"#",Digit2:"@",Digit1:"!"};e["a"]={computed:Object($["a"])({},Object(n["f"])(i["a"].cmsConfig,["getKeyboards"])),methods:{anyLanguageToLatin(d){this.changeLayoutToLatin&&(o["a"].isMobile?this.inputValueFromKeyDown={originalValue:d.key,changedValue:d.key.toString().toLowerCase()===d.key.toString().toUpperCase()?d.key:d.key.replace(/[^a-zA-Z]/,"")}:this.inputValueFromKeyDown={originalValue:d.key,changedValue:this.getLatinSymbols(d)})},getLatinNumbersAndLetters(d){if(d.includes("Key"))return d.slice(3);if(d.includes("Digit"))return d.slice(5);if(d.includes("Numpad")){const e=d.slice(6);return isNaN(Number(e))?"":e}return""},getLatinSymbols(d){const e=d.code,t=d.shiftKey;if(t){const d=a[e];return d||this.getLatinNumbersAndLetters(e)}const $=r[e],n=$||this.getLatinNumbersAndLetters(e);return d.getModifierState("CapsLock")?n:n.toLowerCase()},cyrillicToLatin(d,e){if(!d)return d;e=e||new RegExp(/[^a-zA-Z]/g);const t=this.getKeyboards.cyrillic,$=this.getKeyboards.latin;return[...d].reduce((d,n)=>{if(n.search(e)<0)return d+=n,d;const i=t.indexOf(n.toLowerCase());return i>=0&&$[i].search(e)<0&&(d+=n===n.toUpperCase()?$[i].toUpperCase():$[i]),d},"")}}}},5808:function(d,e,t){"use strict";t("498a");var $=t("9ab4"),n=t("7b2b"),i=t("c235"),o=t("bd54"),r=t("a1cb");e["a"]={data(){return{isAddEventListenerNotify:!0}},mixins:[i["a"]],methods:{fallbackCopyTextToClipboard(d){const e=document.createElement("textarea");e.value=d,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e)},copyToClipboard(d,e=!0){return Object($["a"])(this,void 0,void 0,(function*(){this.isAddEventListenerNotify=e;try{return navigator.clipboard?yield navigator.clipboard.writeText(d):this.fallbackCopyTextToClipboard(d),this.getNotificationCopyText(),!0}catch(t){return this.getNotificationCopyText(!1),n["b"].sentry.captureNamedException({name:n["a"].CopyTextToClipboard,message:"Text was not copied for a reason: "+String(t)}),!1}}))},getNotificationCopyText(d=!0){const e=d?"notification.text_copied":"notification.text_not_copied",t=d?o["Cb"].SUCCESS:o["Cb"].WARNING;this.showNotify({type:Object(r["a"])(t,o["Cb"].INFO),text:this.$t(e),duration:1500},this.isAddEventListenerNotify)},copyWithSelection(d){return Object($["a"])(this,void 0,void 0,(function*(){const e=this.$refs[d],t=e.textContent.trim(),$=window.getSelection(),n=document.createRange(),i=yield this.copyToClipboard(t);i&&(null===$||void 0===$||$.removeAllRanges(),n.selectNode(e),null===$||void 0===$||$.addRange(n))}))}}}},"89b1":function(d,e,t){"use strict";t("a8bb")},"91bd":function(d,e,t){"use strict";var $=t("f2bf");const n=["data-test","innerHTML"];function i(d,e,t,i,o,r){return Object($["openBlock"])(),Object($["createElementBlock"])("div",Object($["mergeProps"])({class:"input-field__error","data-test":t.dataTest},d.$attrs,{innerHTML:t.error}),null,16,n)}var o={name:"error-validation",inheritAttrs:!1,props:{dataTest:{type:String,default:""},error:{type:String,default:""}}},r=(t("251f"),t("6b0d")),a=t.n(r);const s=a()(o,[["render",i]]);e["a"]=s},"94c1":function(d,e,t){},a689:function(d,e,t){(function(e){const $="PhoneNumber$$module$src$index";d.exports=t("ca26")[$]||("undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof e&&e||"undefined"!==typeof window&&window||"undefined"!==typeof self&&self||this)[$],Object.defineProperty(d.exports,"__esModule",{value:!0}),d.exports.default=d.exports}).call(this,t("c8ba"))},a8bb:function(d,e,t){},b686:function(d,e,t){"use strict";var $=t("f2bf");const n={key:0,class:"input-field__icon-wr input-field__icon-wr--left"},i={key:1,class:"input-field__icon-wr"},o=["id","autocomplete","minlength","maxlength","tabindex","type","name","value","disabled","placeholder","data-test","readonly"],r={key:4,class:"input-field__units"},a={class:"input-field__units-hidden"},s={key:0},l={key:5,class:"input-field__currency"},u={class:"input-field__currency-inner"},c={class:"input-field__currency-image"},p=["src"],h={class:"input-field__currency-name"},f=["innerHTML"],g=["data-test"],b={class:"input-field__copy-btn-text"},m={key:11,class:"input-field__inner-postfix"},y=["innerHTML"];function C(d,e,t,C,v,O){const S=Object($["resolveComponent"])("icon"),B=Object($["resolveComponent"])("phone-picker"),V=Object($["resolveComponent"])("btn"),j=Object($["resolveComponent"])("error-validation"),x=Object($["resolveDirective"])("resize");return Object($["openBlock"])(),Object($["createElementBlock"])("div",{class:Object($["normalizeClass"])(["input-field",{"input-field--card":t.card,"has-error":O.showError,"input-field--warning":t.warning}])},[Object($["withDirectives"])((Object($["openBlock"])(),Object($["createElementBlock"])("div",{ref:"inputWrap",class:Object($["normalizeClass"])(["relative input-field__wrap",O.inputFieldWrapClasses])},[O.hasPrependIcon?(Object($["openBlock"])(),Object($["createElementBlock"])("div",n,[t.prependIconAsButton?(Object($["openBlock"])(),Object($["createElementBlock"])("button",{key:0,type:"button",class:"input-field__button-icon",onClick:e[0]||(e[0]=e=>d.$emit("click-prepend-icon",t.modelValue))},[Object($["createVNode"])(S,{class:Object($["normalizeClass"])(["input-field__icon","input-field__icon--"+t.prependIcon]),"icon-name":t.prependIcon},null,8,["class","icon-name"])])):(Object($["openBlock"])(),Object($["createBlock"])(S,{key:1,class:Object($["normalizeClass"])(["input-field__icon","input-field__icon--"+t.prependIcon]),"icon-name":t.prependIcon},null,8,["class","icon-name"]))])):Object($["createCommentVNode"])("",!0),e[20]||(e[20]=Object($["createTextVNode"])()),t.rightIcon?(Object($["openBlock"])(),Object($["createElementBlock"])("div",i,[t.rightIconAsButton?(Object($["openBlock"])(),Object($["createElementBlock"])("button",{key:0,type:"button",class:"input-field__button-icon flex-center",onClick:e[1]||(e[1]=Object($["withModifiers"])(e=>d.$emit("click-icon-right",t.modelValue),["stop"]))},[Object($["createVNode"])(S,{class:Object($["normalizeClass"])(["input-field__icon","input-field__icon--"+t.rightIcon]),"icon-name":t.rightIcon},null,8,["class","icon-name"])])):(Object($["openBlock"])(),Object($["createBlock"])(S,{key:1,class:Object($["normalizeClass"])(["input-field__icon","input-field__icon--"+t.rightIcon]),"icon-name":t.rightIcon},null,8,["class","icon-name"]))])):Object($["createCommentVNode"])("",!0),e[21]||(e[21]=Object($["createTextVNode"])()),t.mobileInput?(Object($["openBlock"])(),Object($["createElementBlock"])("form",{key:2,autocomplete:"off",class:"input-field__phone",onSubmit:e[3]||(e[3]=Object($["withModifiers"])(()=>{},["prevent"]))},[Object($["createVNode"])(B,{ref:"telInput",modelValue:C.inputValue,"onUpdate:modelValue":[e[2]||(e[2]=d=>C.inputValue=d),O.inputEventMobile],autocomplete:O.inputAutocomplete,minlength:t.minlength,"max-len":O.maxPhoneLength,tabindex:t.tabindex,"input-id":t.id,name:t.name,disabled:t.disabled,"custom-validate":O.customValidate,"data-label":t.label,"data-test":t.dataTest,"data-test-tel-input":t.dataTestTelInput,"data-test-tel-country":t.dataTestTelCountry,placeholder:O.isPlaceholder,"enabled-country-code":"","enabled-flags":!t.withoutCountryFlags&&t.enabledFlags,"valid-characters-only":t.withoutCountryFlags,"default-country":O.defaultCountry,overlay:t.overlay,"is-bottom-sheet":t.isBottomSheet,"only-countries":t.onlyCountries,"preferred-countries":O.preferredCountries,mode:"international","all-countries":d.getCountriesForPhoneCode,"image-flag-instead-of-bg":"",class:Object($["normalizeClass"])({open:v.phoneDropDownIsOpen,"input-field--top-label":O.topLabelClass,"anim-label":t.animLabel,"input-field--error":O.showError,"vue-tel-input--without-country-flags":t.withoutCountryFlags,"pr-150":O.pr150Class}),onOpen:O.togglePhoneDropdown,onClose:O.togglePhoneDropdown,onChange:O.changeEventMobile,onBlur:O.inputBlur,onFocus:O.inputFocus,onValidate:O.onValidate,onCountryChanged:O.countryChanged,onPaste:O.inputMobilePaste,onVisibleList:O.visibleList},null,8,["modelValue","autocomplete","minlength","max-len","tabindex","input-id","name","disabled","custom-validate","data-label","data-test","data-test-tel-input","data-test-tel-country","placeholder","enabled-flags","valid-characters-only","default-country","overlay","is-bottom-sheet","only-countries","preferred-countries","all-countries","class","onOpen","onClose","onChange","onUpdate:modelValue","onBlur","onFocus","onValidate","onCountryChanged","onPaste","onVisibleList"])],32)):(Object($["openBlock"])(),Object($["createElementBlock"])("input",{id:t.id,ref:"inputEl",key:t.name,autocomplete:O.inputAutocomplete,minlength:t.minlength,maxlength:t.maxlength,tabindex:t.tabindex,type:O.inputType,name:t.name,value:C.inputValue,class:Object($["normalizeClass"])(["input-field__input",{"input-field--top-label":O.topLabelClass,"anim-label":t.animLabel,"fix-label":t.fixLabel,"input-field--error":O.showError,"pr-150":O.pr150Class,"input-field--country":t.countryInput,"input-field__input--password":"password"===t.type,"input-field__input--postfix":d.$slots["inner-postfix"]}]),disabled:t.disabled,placeholder:t.placeholder||O.animatedPlaceholder,"data-test":t.dataTestInput,readonly:t.readonly,onKeyup:[e[4]||(e[4]=(...d)=>O.preventUnncessaryCursor&&O.preventUnncessaryCursor(...d)),e[6]||(e[6]=Object($["withKeys"])((...d)=>O.inputEnterClick&&O.inputEnterClick(...d),["enter"]))],onKeydown:[e[5]||(e[5]=(...e)=>d.anyLanguageToLatin&&d.anyLanguageToLatin(...e)),e[7]||(e[7]=Object($["withKeys"])((...d)=>O.inputDeleteClick&&O.inputDeleteClick(...d),["delete"]))],onChange:e[8]||(e[8]=(...d)=>O.updateValue&&O.updateValue(...d)),onInput:e[9]||(e[9]=(...d)=>O.inputEvent&&O.inputEvent(...d)),onBlur:e[10]||(e[10]=(...d)=>O.inputBlur&&O.inputBlur(...d)),onFocus:e[11]||(e[11]=(...d)=>O.inputFocus&&O.inputFocus(...d)),onPaste:e[12]||(e[12]=(...d)=>O.inputPaste&&O.inputPaste(...d))},null,42,o)),e[22]||(e[22]=Object($["createTextVNode"])()),t.units?(Object($["openBlock"])(),Object($["createElementBlock"])("div",r,[Object($["createElementVNode"])("span",a,Object($["toDisplayString"])(t.modelValue),1),e[16]||(e[16]=Object($["createTextVNode"])()),t.modelValue?(Object($["openBlock"])(),Object($["createElementBlock"])("span",s,Object($["toDisplayString"])(O.unitsInput),1)):Object($["createCommentVNode"])("",!0)])):Object($["createCommentVNode"])("",!0),e[23]||(e[23]=Object($["createTextVNode"])()),O.hasCurrencyValue?(Object($["openBlock"])(),Object($["createElementBlock"])("div",l,[e[18]||(e[18]=Object($["createElementVNode"])("div",{class:"input-field__currency-line"},null,-1)),e[19]||(e[19]=Object($["createTextVNode"])()),Object($["createElementVNode"])("div",u,[Object($["createElementVNode"])("div",c,[Object($["createElementVNode"])("img",{src:t.currencyValue.img,alt:"currency"},null,8,p)]),e[17]||(e[17]=Object($["createTextVNode"])()),Object($["createElementVNode"])("span",h,Object($["toDisplayString"])(t.currencyValue.text),1)])])):Object($["createCommentVNode"])("",!0),e[24]||(e[24]=Object($["createTextVNode"])()),O.isLabelVisible?(Object($["openBlock"])(),Object($["createElementBlock"])("div",{key:6,class:"input-field__label-anim",innerHTML:t.label},null,8,f)):Object($["createCommentVNode"])("",!0),e[25]||(e[25]=Object($["createTextVNode"])()),"password"===t.type?(Object($["openBlock"])(),Object($["createElementBlock"])("div",{key:7,class:Object($["normalizeClass"])(["input-field__pseudo-pas-eye",{active:"text"===v.inputPassType}]),"data-test":t.dataTestEye,onClick:e[13]||(e[13]=(...d)=>O.showPassword&&O.showPassword(...d))},[Object($["createVNode"])(S,{"icon-name":O.isIconName},null,8,["icon-name"])],10,g)):Object($["createCommentVNode"])("",!0),e[26]||(e[26]=Object($["createTextVNode"])()),O.isButtonClose?(Object($["openBlock"])(),Object($["createElementBlock"])("div",{key:8,class:"input-field__button--remove","data-test":"delete_phone_number",onClick:e[14]||(e[14]=Object($["withModifiers"])((...d)=>O.buttonEvent&&O.buttonEvent(...d),["stop"]))},[Object($["createVNode"])(S,{class:"input-field__button-close","icon-name":"trash"})])):Object($["createCommentVNode"])("",!0),e[27]||(e[27]=Object($["createTextVNode"])()),t.copyBtn?(Object($["openBlock"])(),Object($["createBlock"])(V,{key:9,s:"",class:"input-field__copy-btn",onClick:e[15]||(e[15]=e=>d.copyToClipboard(C.inputValue))},{default:Object($["withCtx"])(()=>[Object($["createElementVNode"])("div",b,Object($["toDisplayString"])(d.$t("crypto.copy")),1)]),_:1})):Object($["createCommentVNode"])("",!0),e[28]||(e[28]=Object($["createTextVNode"])()),O.isRightButton?(Object($["openBlock"])(),Object($["createBlock"])(V,Object($["mergeProps"])({key:10,ref:"rightButton"},t.rightButton.props,{class:"input-field__right-btn",onClick:t.rightButton.action}),{default:Object($["withCtx"])(()=>[Object($["createTextVNode"])(Object($["toDisplayString"])(t.rightButton.text),1)]),_:1},16,["onClick"])):Object($["createCommentVNode"])("",!0),e[29]||(e[29]=Object($["createTextVNode"])()),d.$slots["inner-postfix"]?(Object($["openBlock"])(),Object($["createElementBlock"])("div",m,[Object($["renderSlot"])(d.$slots,"inner-postfix")])):Object($["createCommentVNode"])("",!0)],2)),[[x,O.setRightButtonWidth]]),e[30]||(e[30]=Object($["createTextVNode"])()),O.showError||t.warning?(Object($["openBlock"])(),Object($["createBlock"])(j,{key:0,error:O.computedErrorMessage||t.customErrorMessage,"data-test":t.dataTestError,onClick:O.handleErrorClick},null,8,["error","data-test","onClick"])):Object($["createCommentVNode"])("",!0),e[31]||(e[31]=Object($["createTextVNode"])()),O.isBtnUnderField?(Object($["openBlock"])(),Object($["createBlock"])(V,{key:1,id:t.dataTestBtn,full:"",class:Object($["normalizeClass"])(["input-field__button",{"input-field__button--disabled":t.button.disabled,"input-field__button--out":t.button.outOfInput}]),"data-test":t.dataTestBtn,type:"button",onClick:O.buttonEvent},{default:Object($["withCtx"])(()=>[Object($["createElementVNode"])("span",{innerHTML:t.button.text},null,8,y)]),_:1},8,["id","class","data-test","onClick"])):Object($["createCommentVNode"])("",!0)],2)}var v=t("c964"),O=t("f3f3"),S=(t("caad"),t("fb6a"),t("4d63"),t("c607"),t("ac1f"),t("2532"),t("466d"),t("5319"),t("2ca0"),t("498a"),t("be92")),B=t("d373"),V=t("cc7b"),j=t("1fa8"),x=t("210f"),w=t("ceac"),T=t.n(w),E=t("91bd"),N=t("5d2a");const _=["disabled"],I=["tabindex"],k=["src","alt"],A={key:0,class:"vti__country-code"},M={class:"vti__chevron-wr flex-center"},L={key:0,class:"vti__dropdown-header"},P={class:"vti__dropdown-header-title"},D={class:"vti__dropdown-header-search"},R={class:"vti__dropdown-header-search-icon-wr flex-center"},F=["value","placeholder"],G={key:1,class:"vti__dropdown-list"},K={ref:"list",class:"vti__dropdown-vbar"},U=["name","index","onClick","onMousemove"],W=["src","alt"],H={class:"vti__country-code"},Z={class:"vti__country-name"},z=["value","placeholder"],Y=["id","autocomplete","autofocus","disabled","maxlength","name","placeholder","readonly","required","tabindex"];function J(d,e,t,n,i,o){const r=Object($["resolveComponent"])("icon"),a=Object($["resolveDirective"])("click-outside");return Object($["withDirectives"])((Object($["openBlock"])(),Object($["createElementBlock"])("div",{ref:"vueTelInput",class:Object($["normalizeClass"])(["vue-tel-input",{disabled:t.disabled,"vue-tel-input--above":o.isAboveDropdownDirection,"vue-tel-input--focus":i.isFocus,"vue-tel-input--no-results":!o.isVisibleList}]),disabled:t.disabled},[t.enabledFlags?(Object($["openBlock"])(),Object($["createElementBlock"])("div",{key:0,class:Object($["normalizeClass"])(["vti__dropdown",{open:i.open}]),tabindex:o.tabIndex,onClick:e[0]||(e[0]=(...d)=>o.toggleDropdown&&o.toggleDropdown(...d))},[(Object($["openBlock"])(),Object($["createElementBlock"])("img",{key:i.activeCountry.iso2,class:"vti__flag-img",src:o.getImg(i.activeCountry.iso2),alt:i.activeCountry.iso2},null,8,k)),e[11]||(e[11]=Object($["createTextVNode"])()),t.enabledCountryCode?(Object($["openBlock"])(),Object($["createElementBlock"])("div",A,Object($["toDisplayString"])("+"+i.activeCountry.dialCode),1)):Object($["createCommentVNode"])("",!0),e[12]||(e[12]=Object($["createTextVNode"])()),Object($["createElementVNode"])("div",M,[Object($["createVNode"])(r,{"icon-name":"chevrone-down",class:"vti__chevron"})])],10,I)):Object($["createCommentVNode"])("",!0),e[18]||(e[18]=Object($["createTextVNode"])()),(Object($["openBlock"])(),Object($["createBlock"])(Object($["resolveDynamicComponent"])(o.isTag),{ref:"phonePickerBottomSheet","has-scroll":!1,"max-height":"calc(100% - 60px)","is-full-screen":"","class-name":"phone-picker",overlay:t.overlay,onClosed:e[3]||(e[3]=d=>o.toggleDropdown(null,!0))},{default:Object($["withCtx"])(()=>[o.isBottomSheetVisible?(Object($["openBlock"])(),Object($["createElementBlock"])("div",L,[Object($["createElementVNode"])("div",P,Object($["toDisplayString"])(d.$t("choose_phone_code")),1),e[14]||(e[14]=Object($["createTextVNode"])()),Object($["createElementVNode"])("div",D,[Object($["createElementVNode"])("div",R,[Object($["createVNode"])(r,{"icon-name":"search",class:"vti__dropdown-header-search-icon"})]),e[13]||(e[13]=Object($["createTextVNode"])()),(Object($["openBlock"])(),Object($["createElementBlock"])("input",{ref:"inputSearchBottomSheet",key:i.dropdownOpenDirection,class:Object($["normalizeClass"])(["vti__input input-field__input",t.inputClasses]),type:"text",value:i.countryCodeSearch,placeholder:d.$t("phone_number_search"),onInput:e[1]||(e[1]=(...d)=>o.onInputSearch&&o.onInputSearch(...d)),onKeydown:e[2]||(e[2]=(...d)=>o.keyboardNav&&o.keyboardNav(...d))},null,42,F))])])):Object($["createCommentVNode"])("",!0),e[17]||(e[17]=Object($["createTextVNode"])()),o.isVisibleList?(Object($["openBlock"])(),Object($["createElementBlock"])("div",G,[Object($["createElementVNode"])("div",{ref:"listWr",class:Object($["normalizeClass"])(["vti__dropdown-vbar-wrap",i.dropdownOpenDirection])},[Object($["createElementVNode"])("ul",K,[(Object($["openBlock"])(!0),Object($["createElementBlock"])($["Fragment"],null,Object($["renderList"])(o.sortedCountries,(d,t)=>(Object($["openBlock"])(),Object($["createElementBlock"])("li",{key:d.iso2+(d.preferred?"-preferred":""),class:Object($["normalizeClass"])(["vti__dropdown-item",o.getItemClass(d.originalIdx,d.iso2)]),name:d.name,index:d.originalIdx,onClick:e=>o.choose(d),onMousemove:d=>o.mouseMove(t)},[Object($["createElementVNode"])("img",{class:"vti__flag-img",src:o.getImg(d.iso2),alt:d.name},null,8,W),e[15]||(e[15]=Object($["createTextVNode"])()),Object($["createElementVNode"])("div",H,Object($["toDisplayString"])("+"+d.dialCode),1),e[16]||(e[16]=Object($["createTextVNode"])()),Object($["createElementVNode"])("div",Z,Object($["toDisplayString"])(d.name),1)],42,U))),128))],512)],2)])):Object($["createCommentVNode"])("",!0)]),_:1},40,["overlay"])),e[19]||(e[19]=Object($["createTextVNode"])()),i.open?(Object($["openBlock"])(),Object($["createElementBlock"])("input",{key:1,ref:"inputSearch",class:Object($["normalizeClass"])(["vti__input",t.inputClasses]),type:"text",value:i.countryCodeSearch,placeholder:d.$t("phone_number_search"),onInput:e[4]||(e[4]=(...d)=>o.onInputSearch&&o.onInputSearch(...d)),onKeydown:e[5]||(e[5]=(...d)=>o.keyboardNav&&o.keyboardNav(...d))},null,42,z)):Object($["withDirectives"])((Object($["openBlock"])(),Object($["createElementBlock"])("input",{key:2,id:t.inputId,ref:"input","onUpdate:modelValue":e[6]||(e[6]=d=>i.phone=d),class:Object($["normalizeClass"])(["vti__input",t.inputClasses]),type:"tel",autocomplete:t.autocomplete,autofocus:t.autofocus,disabled:t.disabled,maxlength:t.maxLen,name:t.name,placeholder:o.parsedPlaceholder,readonly:t.readonly,required:t.required,tabindex:t.inputOptions&&t.inputOptions.tabindex?t.inputOptions.tabindex:0,onBlur:e[7]||(e[7]=(...d)=>o.onBlur&&o.onBlur(...d)),onFocus:e[8]||(e[8]=(...d)=>o.onFocus&&o.onFocus(...d)),onInput:e[9]||(e[9]=(...d)=>o.onInput&&o.onInput(...d)),onKeyup:e[10]||(e[10]=(...d)=>o.keyUp&&o.keyUp(...d))},null,42,Y)),[[$["vModelText"],i.phone]])],10,_)),[[a,o.clickOutside]])}t("d9e2"),t("4de4"),t("c975"),t("d81d"),t("4e82"),t("e9f5"),t("910d"),t("f665"),t("ab43"),t("a732"),t("00b4"),t("5b81");var q=t("a689"),Q=t.n(q),X=t("ef24"),dd=t("c7b5");const ed={MOBILE:0,TABLET:12},td={allCountries:[],autocomplete:"on",autofocus:!1,customValidate:!1,defaultCountry:"",disabled:!1,disabledFetchingCountry:!1,dropdownDirectionAbove:!1,dropdownOptions:{},dynamicPlaceholder:!1,enabledCountryCode:!0,enabledFlags:!0,ignoredCountries:[],inputClasses:"",inputId:"",inputOptions:{},invalidMsg:"",maxLen:25,mode:"",name:"telephone",overlay:!0,onlyCountries:[],placeholder:"Enter a phone number",preferredCountries:[],readonly:!1,required:!1,validCharactersOnly:!1,wrapperClasses:"",isBottomSheet:!1},$d=/[`~!@#$%^&*()_|+\-=?№;:'",.×÷₽€£¥₩°•○●□■♤♡◇♧☆¡¿◾《》¤<>{}[\]\\/]/;var nd={name:"phone-picker",components:{Icon:N["a"],BottomSheet:X["default"]},mixins:[dd["a"]],props:{modelValue:{type:String,default:""},allCountries:{type:Array,default:td.allCountries},autocomplete:{type:String,default:td.autocomplete},autofocus:{type:Boolean,default:td.autofocus},customValidate:{type:[Boolean,RegExp],default:td.customValidate},defaultCountry:{type:String,default:td.defaultCountry},disabled:{type:Boolean,default:td.disabled},disabledFetchingCountry:{type:Boolean,default:td.disabledFetchingCountry},dropdownDirectionAbove:{type:Boolean,default:td.dropdownDirectionAbove},dropdownOptions:{type:Object,default(){return td.dropdownOptions}},dynamicPlaceholder:{type:Boolean,default:td.dynamicPlaceholder},enabledCountryCode:{type:Boolean,default:td.enabledCountryCode},enabledFlags:{type:Boolean,default:td.enabledFlags},ignoredCountries:{type:Array,default(){return td.ignoredCountries}},inputClasses:{type:[String,Array,Object],default:td.inputClasses},inputId:{type:String,default:td.inputId},inputOptions:{type:Object,default(){return td.inputOptions}},invalidMsg:{type:String,default:td.invalidMsg},maxLen:{type:Number,default:td.maxLen},name:{type:String,default:td.name},mode:{type:String,default:td.mode},onlyCountries:{type:Array,default:()=>td.onlyCountries},overlay:{type:Boolean,default:td.overlay},isBottomSheet:{type:Boolean,default:td.isBottomSheet},placeholder:{type:String,default:td.placeholder},preferredCountries:{type:Array,default:()=>td.preferredCountries},readonly:{type:Boolean,default:td.readonly},required:{type:Boolean,default:td.required},validCharactersOnly:{type:Boolean,default:td.validCharactersOnly},wrapperClasses:{type:[String,Array,Object],default:td.wrapperClasses}},emits:["update:model-value","visible-list","validate","open","close","country-changed","blur","focus","enter","space","change","toggle-payment-scroll"],data(){return{phone:"",activeCountry:{iso2:""},open:!1,finishMounted:!1,selectedIndex:null,cursorPosition:0,dropdownOpenDirection:"below",countryCodeSearch:"",isFocus:!1}},computed:Object(O["a"])(Object(O["a"])(Object(O["a"])(Object(O["a"])({},Object(S["f"])(B["a"].breakpoints,["isMobile","isMobileOrTablet"])),Object(S["f"])(B["a"].globalCountries,["getCountriesKeyBy"])),Object(S["f"])(B["a"].modal,["currentModal"])),{},{dropDownPadding(){return this.isMobile?ed.MOBILE:ed.TABLET},isAboveDropdownDirection(){return"above"===this.dropdownOpenDirection},tabIndex(){var d,e;return null!==(d=this.dropdownOptions)&&void 0!==d&&d.tabindex?null===(e=this.dropdownOptions)||void 0===e?void 0:e.tabindex:0},isBottomSheetVisible(){return this.isMobile||this.isBottomSheet},isTag(){return this.isBottomSheetVisible?"bottom-sheet":"div"},isVisibleList(){return this.open&&this.sortedCountries.length},parsedPlaceholder(){return this.placeholder},parsedMode(){if(this.customValidate)return"input";if(this.mode){if(["international","national"].includes(this.mode))return this.mode;console.error('Invalid value of prop "mode"')}return this.phone&&"+"===this.phone[0]?"international":"national"},filteredCountries(){return this.onlyCountries.length?this.allCountries.filter(d=>this.onlyCountries.some(e=>e.toUpperCase()===d.iso2)):this.ignoredCountries.length?this.allCountries.filter(d=>{const e=d.iso2;return!this.ignoredCountries.includes(e.toUpperCase())&&!this.ignoredCountries.includes(e.toLowerCase())}):this.allCountries},sortedCountries(){const d=this.getCountries(this.preferredCountries).map(d=>Object(O["a"])(Object(O["a"])({},d),{},{preferred:!0})),e=this.filteredCountries.filter(d=>!this.preferredCountries.includes(d.iso2.toLowerCase())),t=[...d,...e].map((d,e)=>Object(O["a"])(Object(O["a"])({},d),{},{originalIdx:e})),$=this.countryCodeSearch.trim().toLowerCase();let n="name";return $?(isNaN($)||(n="dialCode"),this.filterList(t,n,$)):t},phoneObject(){const d=Q()(this.phone,this.activeCountry.iso2).toJSON();return Object.assign(d,{isValid:d.valid,country:this.activeCountry}),d},phoneText(){let d="input";return this.phoneObject.valid&&(d=this.parsedMode),this.getPhoneNumber(this.phoneObject.number[d]||"")}}),watch:{isVisibleList(d){this.$emit("visible-list",d)},disabled(d){d&&(this.open=!1,this.isBottomSheetVisible&&this.$refs.phonePickerBottomSheet.close())},defaultCountry(d){const e=this.findCountry(d);e&&this.choose(e)},isBottomSheetVisible(){this.open=!1},"phoneObject.valid"(d){var e=this;return Object(v["a"])((function*(){const t=e.phone!==e.phoneText;d&&t&&(yield e.$nextTick(),e.phone=e.phoneText),e.$emit("validate",e.phoneObject)}))()},phoneText(){var d=this;return Object(v["a"])((function*(){const e=d.phone!==d.phoneText;e&&(yield d.$nextTick(),d.phone=d.phoneText)}))()},modelValue(d){this.phone=this.getPhoneNumber(d)},open(d){var e=this;return Object(v["a"])((function*(){if(d)return yield e.setDropdownPosition(),e.setFocusOnSearch(),e.scrollMissingData(),e.cleanSearch(),void e.$emit("open");e.$emit("close")}))()},phone(d,e){const t=this.validCharactersOnly&&!this.testCharacters(),$=this.customValidate&&!this.testCustomValidate(),n=t||$,i=!d||this.enabledFlags||d.startsWith("+")||d.includes("+")?d:"+"+d,o=i?Q()(i):Q()(this.phone),r=o.getNumber("significant"),a=o.getRegionCode();this.enabledFlags||d.startsWith("+")||!d.includes("+")?n&&(this.phone=e||r||""):this.phone=i.slice(i.indexOf("+"),i.length),a&&(this.activeCountry=this.findCountry(a)||this.activeCountry)},activeCountry(d){d&&d.iso2&&this.$emit("country-changed",d)}},mounted(){this.initializeCountry().then(()=>{!this.phone&&this.inputOptions&&this.inputOptions.showDialCode&&this.activeCountry.dialCode&&(this.phone="+"+this.activeCountry.dialCode),this.enabledFlags||(this.phone=this.phoneText),this.$emit("validate",this.phoneObject)}).catch(console.error).finally(()=>{this.finishMounted=!0})},created(){this.modelValue&&(this.phone=this.modelValue.trim())},methods:{initializeCountry(){return new Promise(d=>{if(this.phone&&"+"===this.phone[0]){const e=Q()(this.phone).getRegionCode();if(e)return this.choose(e),void d()}if(this.defaultCountry){const e=this.findCountry(this.defaultCountry);if(e)return this.choose(e),void d()}const e=this.findCountry(this.preferredCountries[0])||this.filteredCountries[0];this.disabledFetchingCountry?(this.choose(e),d()):this.getCountry().then(d=>{this.activeCountry=this.findCountry(d)||this.activeCountry}).catch(d=>{console.warn(d),this.choose(e)}).finally(()=>{d()})})},getCountries(){const d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return d.map(d=>this.findCountry(d)).filter(Boolean)},findCountry(){const d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.filteredCountries.find(e=>e.iso2===d.toUpperCase())},getItemClass(d,e){const t=this.selectedIndex===d,$=d===this.preferredCountries.length-1,n=this.preferredCountries.some(d=>d.toUpperCase()===e);return{highlighted:t,"last-preferred":$,preferred:n}},choose(d){var e;const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];let $=d;"string"===typeof $&&($=this.findCountry($)),$&&(this.activeCountry=$||this.activeCountry||{},"+"===(null===(e=this.phone)||void 0===e?void 0:e[0])&&this.activeCountry.iso2&&this.phoneObject.number.national?this.phone=Q()(this.phoneObject.number.national,this.activeCountry.iso2).getNumber("international"):this.inputOptions&&this.inputOptions.showDialCode&&$&&(this.phone="+".concat($.dialCode)),t&&this.$emit("update:model-value",this.phoneText,this.phoneObject),this.toggleDropdown(null,!0))},testCharacters(){const d=/^[()\-+0-9\s]*$/;return d.test(this.phone)},testCustomValidate(){return this.customValidate instanceof RegExp&&this.customValidate.test(this.phone)},onInput(d){this.validCharactersOnly&&!this.testCharacters()||(!this.customValidate||this.testCustomValidate()||this.phone)&&(this.$refs.input.setCustomValidity(this.phoneObject.valid?"":this.invalidMsg),this.$emit("update:model-value",this.phoneText,this.phoneObject),d&&d.target&&(this.cursorPosition=d.target.selectionStart,this.phone=this.phoneText))},onBlur(){this.$emit("blur"),this.isFocus=!1},onFocus(){this.$emit("focus"),this.isFocus=!0},onEnter(){this.$emit("enter")},onSpace(){this.$emit("space")},toggleDropdown(d,e){var t,$;this.disabled||(this.open=!e&&!this.open,this.scrollTo(),this.isBottomSheetVisible&&(this.open?null===($=this.$refs.phonePickerBottomSheet)||void 0===$||$.open():null!==(t=this.$refs.phonePickerBottomSheet)&&void 0!==t&&t.opened&&this.$refs.phonePickerBottomSheet.close()))},keyboardNav(d){if(27===d.keyCode)this.reset(),this.open=!1,this.isBottomSheetVisible&&this.$refs.phonePickerBottomSheet.close();else if(40===d.keyCode){d.preventDefault(),this.open=!0,null===this.selectedIndex?this.selectedIndex=0:this.selectedIndex=Math.min(this.sortedCountries.length-1,this.selectedIndex+1);const e=this.$refs.list.children[this.selectedIndex];e.offsetTop+e.clientHeight>this.$refs.list.scrollTop+this.$refs.list.clientHeight&&(this.$refs.list.scrollTop=e.offsetTop-this.$refs.list.clientHeight+e.clientHeight)}else if(38===d.keyCode){d.preventDefault(),this.open=!0,null===this.selectedIndex?this.selectedIndex=this.sortedCountries.length-1:this.selectedIndex=Math.max(0,this.selectedIndex-1);const e=this.$refs.list.children[this.selectedIndex];e.offsetTopd.iso2).indexOf(this.activeCountry.iso2),this.open=!1},setDropdownPosition(){var d=this;return Object(v["a"])((function*(){if(d.dropdownDirectionAbove)return void(d.dropdownOpenDirection="above");yield d.$nextTick();const e=window.innerHeight-(d.$el.getBoundingClientRect().bottom+d.$refs.listWr.getBoundingClientRect().height),t=e>0;d.dropdownOpenDirection=t?"below":"above"}))()},getCountry(){return fetch("https://ip2c.org/s").then(d=>d.text()).then(d=>{const e=(d||"").toString();if(!e||"1"!==e[0])throw new Error("unable to fetch the country");return e.substr(2,2)})},mouseMove(d){this.selectedIndex=d},keyUp(d){13===d.keyCode&&this.onEnter(d),32===d.keyCode&&this.onSpace(d)},filterList(d,e,t){return d.filter(d=>{var $;return null===($=d[e])||void 0===$?void 0:$.toLowerCase().includes(t)}).sort((d,$)=>{const n=d[e].toLowerCase().startsWith(t);return n&&$[e].toLowerCase().startsWith(t)?d[e]>$[e]?1:-1:n?-1:1})},onInputSearch(d){var e,t,$;if(!this.checkSymbol(null===d||void 0===d||null===(e=d.target)||void 0===e?void 0:e.value))return this.selectedIndex=0,null===(t=this.$refs.list)||void 0===t||null===($=t.querySelector(".vti__dropdown-item"))||void 0===$||$.scrollIntoView({block:"nearest"}),void(this.countryCodeSearch=d.target.value);d.target.value=this.countryCodeSearch},scrollTo(){var d=this;return Object(v["a"])((function*(){var e;yield d.$nextTick();const t=null===(e=d.$refs.list)||void 0===e?void 0:e.querySelector(`.vti__dropdown-item[name="${d.activeCountry.name}"`);t&&(d.selectedIndex=parseInt(null===t||void 0===t?void 0:t.getAttribute("index")),d.$refs.listWr.scrollTop=t.offsetTop-d.dropDownPadding)}))()},clickOutside(d){this.isMobileOrTablet||this.toggleDropdown(d,!0)},setFocusOnSearch(){var d=this;return Object(v["a"])((function*(){yield d.$nextTick(),d.isBottomSheetVisible?setTimeout(()=>{var e;null===(e=d.$refs.inputSearchBottomSheet)||void 0===e||e.focus()},100):setTimeout(()=>{var e;null===(e=d.$refs.inputSearch)||void 0===e||e.focus()},100)}))()},cleanSearch(){this.countryCodeSearch=""},checkSymbol(d){var e;return $d.test(d)||""===(null===(e=d[0])||void 0===e?void 0:e.trim())},getImg(d){var e;return null===(e=this.getCountriesKeyBy[d.toUpperCase()])||void 0===e?void 0:e.img},scrollMissingData(){var d=this;return Object(v["a"])((function*(){var e,t;if(d.isAboveDropdownDirection)return;yield d.$nextTick();const $=document.querySelector(".payment"),n=d.$el.closest(".vb-content");if(!$||!n)return;const i=n.getBoundingClientRect().height,o=null===(e=d.$refs.vueTelInput)||void 0===e?void 0:e.getBoundingClientRect().top,r=(null===(t=d.$refs.list)||void 0===t?void 0:t.getBoundingClientRect().height)||0,a=20;i-o-r{const e=d.clipboardData||window.clipboardData;return e.getData("Text")},gd=new RegExp(/\+|\s|-/,"g");var bd={name:"input-field",components:{Btn:ud["default"],ErrorValidation:E["a"],Icon:N["a"],PhonePicker:ad},mixins:[sd["a"],pd["a"],hd["a"]],props:{prependIcon:{type:String,default:""},label:{type:String,default:""},id:{type:String,default:""},name:{type:String,default:""},type:{type:[String,null],default:null},rightIcon:{type:String,default:""},animLabel:{type:Boolean,default:!0},fixLabel:{type:Boolean,default:!1},customErrorMessage:{type:[String,Boolean],default:""},rightIconAsButton:{type:Boolean,default:!1},prependIconAsButton:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},warning:{type:Boolean,default:!1},card:{type:Boolean,default:!1},autocomplete:{type:String,default:""},placeholder:{type:String,default:""},minlength:{type:[Number,void 0],default:void 0},maxlength:{type:[Number,void 0],default:void 0},maxLimit:{type:[Number,String,void 0],default:void 0,validator:d=>void 0===d||"number"===typeof d||"string"===typeof d},tabindex:{type:[Number,void 0],default:void 0},handleInputEvent:{type:Boolean,default:!1},onlyNumbers:{type:Boolean,default:!1},onlyText:{type:Boolean,default:!1},floatNumbers:{type:Boolean,default:!1},latinAndNumber:{type:Boolean,default:!1},changeLayoutToLatin:{type:Boolean,default:!1},capitalLatinAndNumber:{type:Boolean,default:!1},latin:{type:Boolean,default:!1},withoutSpaces:{type:Boolean,default:!1},regexpRules:{type:RegExp,default:null},isMonth:{type:Boolean,default:!1},isYear:{type:Boolean,default:!1},mobileInput:{type:Boolean,default:!1},withoutCountryFlags:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},enableEnterClick:{type:Boolean,default:!1},mobileCountryCode:{type:String,default:""},validationRules:{type:[String,Object],default:""},validationFieldName:{type:String,default:""},validationMode:{type:[String,Function],default:"aggressive"},forceValidation:{type:Boolean,default:!1},showAllErrors:{type:Boolean,default:!1},dataTestInput:{type:String,default:""},dataTestTelInput:{type:String,default:""},dataTestTelCountry:{type:String,default:""},dataTestTelCountryCodeList:{type:String,default:""},dataTestError:{type:String,default:""},dataTestEye:{type:String,default:""},dataTestBtn:{type:String,default:""},dataTest:{type:String,default:""},onlyCountries:{type:Array,default(){return[]}},readonly:{type:Boolean,default:!1},isChangeLayout:{type:Boolean,default:!1},removeBtn:{type:Boolean,default:!1},button:{type:[Boolean,Object],default:!1},modelValue:{type:[String,Number],default:""},onInputCallback:{type:[Function,void 0],default:void 0},usePreferredCountries:{type:Boolean,default:!1},countryInput:{type:Boolean,default:!1},noTrimmedValue:{type:Boolean,default:!1},needCountryCode:{type:Boolean,default:!1},disableEnterChange:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},isBottomSheet:{type:Boolean,default:!1},resetValidationOnFocus:{type:Boolean,default:!1},lastValue:{type:[String,Number],default:""},sendAnalyticsForBlur:{type:[Function,void 0],default:void 0},enabledFlags:{type:Boolean,default:!0},units:{type:String,default:""},currencyValue:{type:Object,default:()=>({})},maxValueLimit:{type:Object,default:()=>({})},latinNumberHash:{type:Boolean,default:!1},copyBtn:{type:String,default:""},decimalPlace:{type:Number,default:2},rightButton:{type:Object,default:()=>({})}},emits:["blur","focus","paste","error","delete","input-enter","code-changed","click-icon-left","click-icon-right","update:model-value","phone-drop-down-open","validation-status-changed"],setup(d){const e=Object(V["c"])(d.name,Object($["toRef"])(d,"validationRules"),{label:d.validationFieldName,initialValue:d.modelValue,standalone:d.disabled&&!d.forceValidation&&!d.button,validateOnValueUpdate:!1}),t=e.value,n=e.errors,i=e.validate,o=e.handleChange;return{validate:i,errors:n,handleChange:o,inputValue:t}},data(){return{inputPassType:"password",phoneDropDownIsOpen:!1,phoneCode:null,phoneCodeInitialized:!1,valueWasChanged:!1,listOfPreferredCountries:["ru","ua","kz"],isPastePhone:!1,inputValueFromKeyDown:null,countryIso2:"",focus:!1,isVisibleList:!1}},computed:Object(O["a"])(Object(O["a"])(Object(O["a"])({},Object(S["f"])(B["a"].player,["getCountry"])),Object(S["f"])(B["a"].globalCountries,["getCountriesForPhoneCode"])),{},{isRightButton(){return Boolean(Object.keys(this.rightButton).length)},inputFieldWrapClasses(){return{"input-field__wrap--disabled":this.disabled,"input-field__wrap--error":this.showError,"input-field__wrap--focus":this.focus,"input-field__wrap--filled":this.modelValue,"input-field__wrap--phone-dropdown-open":this.phoneDropDownIsOpen,"input-field__wrap--prepend-icon":this.hasPrependIcon,"input-field__wrap--visible-list":Boolean(this.isVisibleList),"input-field__wrap--right-button":this.isRightButton}},unitsInput(){return this.$t(this.units,parseInt(this.modelValue))},hasCurrencyValue(){return Boolean(Object.keys(this.currencyValue).length)},hasPrependIcon(){return Boolean(this.prependIcon)},isIconName(){return"password"===this.inputPassType?"eye-close":"eye"},isButtonClose(){return this.button&&this.removeBtn},isBtnUnderField(){return this.button&&!this.phoneDropDownIsOpen&&!this.removeBtn},preferredCountries(){return this.usePreferredCountries?this.listOfPreferredCountries:[]},defaultCountry(){return this.mobileCountryCode||this.getCountry||window.LANG_CODE.toUpperCase()},animatedPlaceholder(){return this.animLabel?"":this.label},inputType(){return"password"===this.type?this.inputPassType:this.type},customValidate(){return!this.withoutCountryFlags&&!this.isPastePhone&&/^[0-9]*$/},showError(){var d;return null!==(d=this.maxValueLimit)&&void 0!==d&&d.isMaxValueError?this.maxValueLimit.isMaxValueError:this.mobileInput&&this.withoutCountryFlags?(this.errors[0]||this.customErrorMessage)&&(this.valueWasChanged||this.phoneCode!==this.inputValue):Boolean(this.errors[0]||this.customErrorMessage)},computedErrorMessage(){return this.maxValueLimit.isMaxValueError?this.maxValueLimit.textError:this.showAllErrors?this.errors.join("
"):this.errors[0]},isAllowedCursorPosition(){return!this.type||ld["p"].includes(this.type)},inputAutocomplete(){return this.autocomplete?this.autocomplete:"off"},maxPhoneLength(){let d=0;if(this.needCountryCode){const e=Object(x["a"])(this.inputValue);d=e.length}return d+=this.specialSymbolsCount,Object(x["b"])(this.countryIso2||this.mobileCountryCode).maxLength+d},specialSymbolsCount(){return(this.inputValue.match(gd)||[]).length},topLabelClass(){return!(""===this.inputValue||void 0===this.inputValue||null===this.inputValue)},pr150Class(){return this.button&&!this.button.outOfInput&&"email"===this.name},isPlaceholder(){return this.placeholder||this.animatedPlaceholder||this.label},isLabelVisible(){return(this.animLabel||this.fixLabel)&&!this.mobileInput},isPromocodeInput(){return"promocode"===this.name},validateOnBlur(){return[ld["Lc"].AGGRESSIVE,ld["Lc"].EAGER].includes(this.validationMode)}}),watch:{isRightButton(){this.$nextTick().then(this.setRightButtonWidth)},modelValue(d){this.handleChange(d,Boolean(d))},validationFieldName(d){d&&this.errors.length&&this.$nextTick().then(this.validate)},customErrorMessage:{immediate:!0,handler(d,e=""){if(!d||"string"!==typeof d)return;const t=T()(d.split(""),null===e||void 0===e?void 0:e.split("")).length>4;t&&this.$emit("error",{message:d})}},errors(d){this.$emit("error",{message:d?d[0]:d})}},mounted(){this.setTestAttrOnTelInput(),this.setRightButtonWidth()},methods:{visibleList(d){this.isVisibleList=d,this.setCustomModalVisible(d)},setCustomModalVisible(d){const e=document.querySelector(".custom-modal--registration"),t=document.querySelector(".custom-modal--signin"),$=document.querySelector(".custom-modal--deposit-missing"),n=e||t||$;if(!n)return;const i=d?"add":"remove";n.classList[i]("custom-modal--visible")},updateValue(d){this.changeLayoutToLatin&&this.setChangedLayout(),this.onlyNumbers?this.setOnlyNumbers():this.onlyText?this.setOnlyText():this.isMonth?this.setMonthField():this.isYear?this.setYearField():this.latinAndNumber?this.setLatinAndNumber():this.latinNumberHash?this.setLatinNumberHash():this.capitalLatinAndNumber?this.setCapitalLatinAndNumber():this.floatNumbers?this.setFloat():this.withoutSpaces?this.setWithoutSpaces():null!==this.regexpRules&&this.setRegexpRules(this.regexpRules),this.latin&&this.setLatin(),this.$emit("update:model-value",this.inputValue,d)},inputFocus(d){var e;(this.focus=!0,this.$emit("focus",d),this.resetValidationOnFocus)&&(null===(e=this.$refs.provider)||void 0===e||e.reset())},inputPaste(d){this.$emit("paste",fd(d),d)},inputBlur(d){var e=this;return Object(v["a"])((function*(){var t;e.focus=!1,yield e.$emit("blur",e.inputValue,d),e.noTrimmedValue||"string"!==typeof e.inputValue||(yield e.$emit("update:model-value",e.inputValue.trim(),d)),null===(t=e.sendAnalyticsForBlur)||void 0===t||t.call(e),e.validateOnBlur&&(yield e.validate())}))()},inputEvent(d){let e=d.target.value;if(e!==this.inputValue){var t;const $=this.isAllowedCursorPosition&&(null===d||void 0===d||null===(t=d.currentTarget)||void 0===t?void 0:t.selectionStart);this.maxLimit&&Number(e)>this.maxLimit&&(e=this.maxLimit.toString()),this.isChangeLayout&&(e=Object(j["d"])(e)),this.inputValue=e,this.onInputCallback&&(this.inputValue=this.onInputCallback(this.inputValue)),this.handleInputEvent?(this.valueWasChanged=!0,this.updateValue(d)):(!this.isPromocodeInput||d.target.value.length<=this.maxlength)&&this.$emit("update:model-value",this.inputValue,d),d.target.value=this.inputValue,isNaN(parseInt($))||(d.currentTarget.selectionEnd=$)}else this.inputValue=this.modelValue;this.validateInput()},validateInput(){var d=this;return Object(v["a"])((function*(){yield d.$nextTick(),(d.validationMode===ld["Lc"].AGGRESSIVE||d.validationMode===ld["Lc"].EAGER&&d.errors.length)&&d.validate()}))()},inputDeleteClick(){this.$emit("delete",this.inputValue)},changeEventMobile(d){this.updateValue(d),this.validateInput()},inputEventMobile(d){this.handleInputEvent&&(this.valueWasChanged=!0,this.updateValue(d),this.validateInput())},buttonEvent(){this.button.event&&!this.button.disabled&&this.button.event()},setOnlyText(){this.inputValue&&(this.inputValue=this.inputValue.toString().replace(/[^a-zа-я\s]/gi,""))},setOnlyNumbers(){this.inputValue&&(this.inputValue=this.inputValue.toString().replace(/[^\d]/g,""))},setFloat(){if(this.decimalPlace){if(this.inputValue){const d=new RegExp(`[0-9]+[.]?([0-9]{1,${this.decimalPlace}})?`,"g"),e=this.inputValue.toString().replace(",",".").replace(/[^\d.]/g,"").match(d);this.inputValue=Array.isArray(e)?e[0]:""}}else this.setOnlyNumbers()},setLatinAndNumber(){if(this.inputValue){const d=this.cyrillicToLatin(this.inputValue,new RegExp(/[^a-zA-Z\d]/g)).match(/^[0-9a-zA-Z]+/g);this.inputValue=Array.isArray(d)?d[0]:""}},setChangedLayout(){if(!this.inputValue||!this.inputValueFromKeyDown)return;const d=this.inputValue.length-1,e="'"===this.inputValueFromKeyDown.originalValue;var t;(this.inputValueFromKeyDown.originalValue===this.inputValue[d]||e)&&(this.inputValue=(null===(t=this.inputValue)||void 0===t?void 0:t.slice(0,d))+this.inputValueFromKeyDown.changedValue,this.inputValueFromKeyDown=null)},setCapitalLatinAndNumber(){if(this.inputValue){const d=this.cyrillicToLatin(this.inputValue,new RegExp(/[^a-zA-Z\d]/g)).match(/^[0-9a-zA-Z]+/g);this.inputValue=(Array.isArray(d)?d[0]:"").toUpperCase()}},setLatin(){this.inputValue&&(this.inputValue=this.cyrillicToLatin(this.inputValue,new RegExp(/[^a-zA-Z\s]/g)))},setWithoutSpaces(){this.inputValue&&(this.inputValue=this.inputValue.toString().replace(/[^\S]/g,""))},setRegexpRules(d){this.inputValue&&(this.inputValue=this.inputValue.toString().replace(d,""))},setMonthField(){this.setOnlyNumbers(),this.inputValue>12&&(this.inputValue=12),"00"===this.inputValue&&(this.inputValue="01")},setYearField(){this.setOnlyNumbers(),this.inputValue>99&&(this.inputValue=99)},showPassword(){"password"===this.inputPassType?this.inputPassType="text":this.inputPassType="password"},togglePhoneDropdown(){this.phoneDropDownIsOpen=!this.phoneDropDownIsOpen,this.$emit("phone-drop-down-open",this.phoneDropDownIsOpen),this.setTestAttrOnTelInput()},countryChanged(d){const e=Object(O["a"])({},d);e.dialCode="+"+e.dialCode,this.phoneCode=e.dialCode,this.inputValue=this.inputValue.replace("+"+e.dialCode,""),this.countryIso2=e.iso2,!this.withoutCountryFlags||this.phoneCodeInitialized||this.inputValue||(this.inputValue=e.dialCode,this.phoneCodeInitialized=!0),this.$nextTick().then(()=>{var d;this.inputValue=null===(d=this.inputValue)||void 0===d?void 0:d.substring(0,this.maxPhoneLength)}),this.$emit("code-changed",e)},onValidate(d){this.withoutCountryFlags&&this.$emit("validation-status-changed",d),d.isValid||this.setAutoFillNoValidPhoneValue()},inputEnterClick(d){this.disableEnterChange&&d.preventDefault(),this.enableEnterClick&&this.buttonEvent(),this.$emit("input-enter")},inputMobilePaste(d){var e;const t=(null===(e=this.$refs.telInput)||void 0===e?void 0:e.$refs)||{},$=t.input;if($!==d.target)return;this.isPastePhone=!0,d.preventDefault();let n=fd(d);if(n){const d=this.getPastedPhoneMaxLength(n);n=n.toString().replace(/[^\d]/g,"").substring(0,d),$.value=this.getPhoneNumberByConditionWithoutCountryFlags(n),this.dispatchInputEvent($),this.isPastePhone=!1}},setTestAttrOnTelInput(){var d=this;return Object(v["a"])((function*(){yield d.$nextTick();const e=d.$refs.telInput;if(e){var t,$;if(d.dataTestTelCountryCodeList&&e.$refs.list.setAttribute("data-test",d.dataTestTelCountryCodeList),d.dataTestTelCountry)null===(t=e.$el.querySelector(".vti__selection"))||void 0===t||t.setAttribute("data-test",d.dataTestTelCountry);if(d.dataTestTelInput)null===($=e.$refs.input)||void 0===$||$.setAttribute("data-test",d.dataTestTelInput)}}))()},getPhoneNumberByConditionWithoutCountryFlags(d){return this.withoutCountryFlags?"+"+d:d},setAutoFillNoValidPhoneValue(){var d,e;const t=null===(d=this.$refs.telInput)||void 0===d||null===(e=d.$el)||void 0===e?void 0:e.querySelector("input");if(!t)return;const $=t.value.toString().replace(/[^\d]/g,"");setTimeout(()=>{const d=t.matches(":-webkit-autofill");d&&$&&(t.value=this.getPhoneNumberByConditionWithoutCountryFlags($),this.dispatchInputEvent(t))})},dispatchInputEvent(d){if(d){if("createEvent"in document){const e=document.createEvent("HTMLEvents");return e.initEvent("input",!1,!0),void d.dispatchEvent(e)}d.fireEvent("onchange")}},handleErrorClick(d){var e;"A"===d.target.tagName&&null!==(e=d.target.dataset.href)&&void 0!==e&&e.startsWith("/support/chat")&&(d.preventDefault(),this.openChat())},preventUnncessaryCursor(d){if(this.isPromocodeInput&&cd["a"].isAndroid){var e;const t=this.isAllowedCursorPosition&&(null===d||void 0===d||null===(e=d.currentTarget)||void 0===e?void 0:e.selectionStart);this.modelValue.length===this.maxlength&&td.length)&&Dd($d,d)}function rd(d){return Dd(X,d)?pd(d,W):pd(d,K)}function ad(d){var e=rd(d.toString());E(d),d.g(e)}function sd(){return Object.keys(F).filter((function(d){return isNaN(d)}))}function ld(){return Object.keys(F).filter((function(d){return!isNaN(d)})).map((function(d){return parseInt(d,10)}))}function ud(){var d=Object.keys(R);return[...ld(),...d.map((function(d){return parseInt(d,10)}))]}function cd(d){return null!=d&&(1!=v(d,9)||-1!=C(d,9)[0])}function pd(d,e){for(var t,$=new T,n=d.length,i=0;ie?2:i[i.length-1]=n&&n<=$;++n)if(t=parseInt(d.substring(0,n),10),t in R)return e.g(d.substring(n)),t;return 0}function Md(d,e,t,$,n){if(0==e.length)return 0;var i;e=new T(e),null!=t&&(i=m(t,11)),null==i&&(i="NonMatch");var o=e.toString();if(0==o.length)i=20;else if(z.test(o))o=o.replace(z,""),E(e),e.g(rd(o)),i=1;else{if(o=new RegExp(i),ad(e),i=e.toString(),0==i.search(o)){o=i.match(o)[0].length;var r=i.substring(o).match(Y);r&&null!=r[1]&&0=e.h.length)throw Error("Phone number too short after IDD");if(d=Ad(e,$),0!=d)return O(n,1,d),d;throw Error("Invalid country calling code")}return null!=t&&(i=y(t,10),o=""+i,r=e.toString(),0==r.lastIndexOf(o,0)&&(o=new T(r.substring(o.length)),r=m(t,1),r=new RegExp(y(r,2)),Ld(o,t,null),o=o.toString(),!Dd(r,e.toString())&&Dd(r,o)||3==Id(d,e.toString(),t,-1)))?($.g(o),O(n,1,i),i):(O(n,1,0),0)}function Ld(d,e,t){var $=d.toString(),n=$.length,i=m(e,15);if(0!=n&&null!=i&&0!=i.length){var o=new RegExp("^(?:"+i+")");if(n=o.exec($)){i=new RegExp(y(m(e,1),2));var r=Dd(i,$),a=n.length-1;e=m(e,16),null==e||0==e.length||null==n[a]||0==n[a].length?r&&!Dd(i,$.substring(n[0].length))||(null!=t&&0n.h.length)throw Error("The string supplied is too short to be a phone number");if(null!=i&&(t=new T(n.toString()),Ld(t,i,new T),d=Id(d,t.toString(),i,-1),2!=d&&4!=d&&5!=d&&(n=t)),d=n.toString(),t=d.length,2>t)throw Error("The string supplied is too short to be a phone number");if(17n;++n){if($=void 0,d.length!e.hasOwnProperty(d)&&(e[d]=1,!0))}function he(d){this.l=d,this.j=new Rd(d),this.g=this.h=""}ae.getCountryCodeForRegionCode=ce,ae.getRegionCodeForCountryCode=function(d){return Ed(d)},ae.getSupportedRegionCodes=function(){return pe(sd())},ae.getSupportedCallingCodes=function(){return pe(ud())},ae.getExample=function(d,e){var t;return t=Od(d,e?ie(e):0),new ae(t,d)},ae.getAsYouType=function(d){return new he(d)},ae.prototype.toJSON=function(){return this.g},ae.prototype.toJSON=ae.prototype.toJSON,ae.prototype.ia=function(){return this.g.canBeInternationallyDialled},ae.prototype.canBeInternationallyDialled=ae.prototype.ia,ae.prototype.za=function(){return this.g.valid},ae.prototype.isValid=ae.prototype.za,ae.prototype.ya=function(){return this.g.possible},ae.prototype.isPossible=ae.prototype.ya,ae.prototype.ua=function(){return this.g.type},ae.prototype.getType=ae.prototype.ua,ae.prototype.xa=function(){return"mobile"===this.g.type||"fixed-line-or-mobile"===this.g.type},ae.prototype.isMobile=ae.prototype.xa,ae.prototype.wa=function(){return"fixed-line"===this.g.type||"fixed-line-or-mobile"===this.g.type},ae.prototype.isFixedLine=ae.prototype.wa,ae.prototype.qa=function(d){return this.g.number[null==d?"e164":d]},ae.prototype.getNumber=ae.prototype.qa,ae.prototype.ra=function(d){return md(this.h,d)},ae.prototype.getNumberFrom=ae.prototype.ra,ae.prototype.ta=function(){return this.g.regionCode},ae.prototype.getRegionCode=ae.prototype.ta,ae.prototype.ha=function(){return ce(this.g.regionCode)},ae.prototype.getCountryCode=ae.prototype.ha,he.prototype.pa=function(d){this.h+=d;var e=this.j;return e.ka=Zd(e,d),this.g=e.ka},he.prototype.addChar=he.prototype.pa,he.prototype.Aa=function(){return this.g},he.prototype.number=he.prototype.Aa,he.prototype.Ba=function(){return""===this.h?this.g:this.reset(this.h.slice(0,this.h.length-1))},he.prototype.removeChar=he.prototype.Ba,he.prototype.reset=function(d){var e=this.j;if(e.ka="",E(e.s),E(e.aa),E(e.v),e.$=0,e.ca="",E(e.h),e.o="",E(e.g),e.u=!0,e.na=!1,e.ba=!1,e.da=!1,e.j=[],e.ga=!1,e.l!=e.va&&(e.l=Ud(e,e.la)),this.g=this.h="",d){e=0;for(var t=d.length;e