try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="774b54be-a9cb-4c8f-8223-643a94666cbe",e._sentryDebugIdIdentifier="sentry-dbid-774b54be-a9cb-4c8f-8223-643a94666cbe")}catch(e){}{let e="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};e.SENTRY_RELEASE={id:"558896"}}(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-727d6e6a"],{"05b0":function(e,t,o){},"2b85":function(e,t,o){"use strict";var l=o("f2bf");const s={key:0,class:"custom-select__icon-wr flex-center"},i=["src"],c={key:1,class:"custom-select__left-icon-wr"},n=["innerHTML"],a=["data-test"],r=["innerHTML"],d={key:0,class:"custom-select__selected-error-msg"},u={ref:"customSelectOptionsScroll",class:"custom-select__options"},h=["innerHTML"],m={class:"custom-select__options-scroll"},b=["onClick"],p=["data-test","innerHTML"];function f(e,t,o,f,g,O){const S=Object(l["resolveComponent"])("icon");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{ref:"customSelect",class:Object(l["normalizeClass"])(["custom-select",O.customSelectClasses])},[Object(l["createElementVNode"])("div",{class:"custom-select__selected",onClick:t[0]||(t[0]=Object(l["withModifiers"])((...e)=>O.toggleSelect&&O.toggleSelect(...e),["stop"]))},[o.isCurrency?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",s,[Object(l["createElementVNode"])("img",{class:"custom-select__icon",src:O.selectImageCurrencies,alt:"img"},null,8,i)])):Object(l["createCommentVNode"])("",!0),t[1]||(t[1]=Object(l["createTextVNode"])()),o.leftIcon?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",c,[Object(l["createVNode"])(S,{"icon-name":o.leftIcon,class:"custom-select__left-icon"},null,8,["icon-name"])])):Object(l["createCommentVNode"])("",!0),t[2]||(t[2]=Object(l["createTextVNode"])()),o.label?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:2,class:"custom-select__label-anim",innerHTML:o.label},null,8,n)):Object(l["createCommentVNode"])("",!0),t[3]||(t[3]=Object(l["createTextVNode"])()),Object(l["createElementVNode"])("span",{class:"custom-select__name","data-test":o.dataTest},[Object(l["renderSlot"])(e.$slots,"value",{modelValue:o.modelValue,selectedValue:O.selectedValueForCurrency},()=>[Object(l["createElementVNode"])("span",{innerHTML:O.selectedValueHtml},null,8,r)],!0)],8,a),t[4]||(t[4]=Object(l["createTextVNode"])()),O.disableDropdown?Object(l["createCommentVNode"])("",!0):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",{key:3,class:Object(l["normalizeClass"])(["custom-select__arrow flex-center",O.arrowClass])},[Object(l["createVNode"])(S,{class:"custom-select__arrow-icon","icon-name":"chevrone-down"})],2))]),t[6]||(t[6]=Object(l["createTextVNode"])()),o.errorMessage?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",d,Object(l["toDisplayString"])(o.errorMessage),1)):Object(l["createCommentVNode"])("",!0),t[7]||(t[7]=Object(l["createTextVNode"])()),(Object(l["openBlock"])(),Object(l["createBlock"])(Object(l["resolveDynamicComponent"])(O.selectListModifiedComponent),{ref:"customSelectBottomSheet","mount-in-portal":"",modifier:"custom-select",title:O.bottomSheetTitle,"max-height":e.bottomSheetHeight,"data-test":o.dataTest.wrap,style:Object(l["normalizeStyle"])({height:O.selectHeight}),"class-name":o.classBottomSheet,class:Object(l["normalizeClass"])([O.customSelectClass,"custom-select__options-wrap js-custom-select-menu"]),onClosed:O.closeBottomSheet},{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("div",u,[o.title?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:"custom-select__title",innerHTML:o.title},null,8,h)):Object(l["createCommentVNode"])("",!0),t[5]||(t[5]=Object(l["createTextVNode"])()),Object(l["createElementVNode"])("ul",m,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(o.options,(t,s)=>(Object(l["openBlock"])(),Object(l["createElementBlock"])("li",{key:s,class:Object(l["normalizeClass"])(["custom-select__option",{"custom-select__option--active":O.getIsActiveOption(t)}]),onClick:e=>O.selectOption(t,e)},[Object(l["renderSlot"])(e.$slots,"option",{option:t},()=>[Object(l["createElementVNode"])("label",{class:"pointer-event-none","data-test":!!o.dataTestOption&&o.dataTestOption+t.code,innerHTML:O.getOptionLabel(t)},null,8,p)],!0)],10,b))),128))])],512)]),_:3},40,["title","max-height","data-test","style","class-name","class","onClosed"]))],2)}var g=o("f3f3"),O=o("be92"),S=o("d373"),v=o("5d2a"),y=o("ef24"),j=o("c235"),B=o("498d"),w=o("589d"),V=o.n(w),_=o("8f12");const T=364,k=40,C=16,M=4,E=-8;var N={name:"custom-select",components:{Icon:v["a"],BottomSheet:y["default"]},mixins:[j["a"],B["a"]],props:{options:{type:Array,default:()=>[]},modelValue:{type:[Object,String],default:""},dataTestOption:{type:String,default:""},error:{type:[String,Boolean],default:""},errorMessage:{type:String,default:""},maxHeight:{type:Number,default:0},placeholder:{type:String,default:""},dataTest:{type:String,default:""},disabled:{type:Boolean,default:!1},deniedToggleMsg:{type:String,default:""},scrollToSelected:{type:Boolean,default:!1},isCurrency:{type:Boolean,default:!1},label:{type:String,default:""},leftIcon:{type:String,default:""},title:{type:String,default:""},optionsTitle:{type:String,default:""},classBottomSheet:{type:String,default:""},isBlocked:{type:Boolean,default:!1},enableDisabling:{type:Boolean,default:!0},isWithScrollBar:{type:Boolean,default:!1},isBottomSheetPriority:{type:Boolean,default:!1}},emits:["focus","close-options","update:model-value","click"],data(){var e,t,o;return{showOptions:!1,selectMenuTop:!1,selectedValue:!!this.modelValue&&((null===(e=this.modelValue)||void 0===e?void 0:e.label)||(null===(t=this.modelValue)||void 0===t?void 0:t.name)||(null===(o=this.modelValue)||void 0===o?void 0:o.code)||this.modelValue)}},computed:Object(g["a"])(Object(g["a"])(Object(g["a"])(Object(g["a"])({},Object(O["f"])(S["a"].breakpoints,["isMobile","isTablet"])),Object(O["f"])(S["a"].currencies,["getCurrencies"])),Object(O["f"])(S["a"].modal,["hasOpened"])),{},{bottomSheetTitle(){return this.optionsTitle||this.placeholder},customSelectClasses(){return{"custom-select__opened":this.showOptions,"custom-select--disabled":this.isCustomSelectDisabled,"custom-select--selected":this.selectedValue,"custom-select--has-error":Boolean(this.error),"custom-select--left-icon":Boolean(this.leftIcon),"custom-select--no-label":!this.label,"custom-select--with-scroll-bar":this.isWithScrollBar}},customSelectClass(){return{"custom-select__options-wrap--d-none":!this.showOptions,"custom-select__options-wrap--top":this.selectMenuTop}},isShowBottomSheet(){return this.isMobile||this.isTablet&&this.isBottomSheetPriority},selectListModifiedComponent(){return this.isShowBottomSheet?"bottom-sheet":"div"},isCustomSelectDisabled(){return this.enableDisabling&&(this.disabled||Boolean(this.deniedToggleMsg))},selectImageCurrencies(){var e,t,o;return null===(e=this.getCurrencies[null===(t=this.modelValue)||void 0===t||null===(o=t.code)||void 0===o?void 0:o.toUpperCase()])||void 0===e?void 0:e.icon},arrowClass(){return this.showOptions?"custom-select__arrow--up":"custom-select__arrow--down"},selectMenuMaxHeight(){return this.maxHeight||T},selectHeight(){if(this.isMobile)return;const e=this.options.length*k+C+(this.options.length-1)*M;return es)this.selectMenuTop=!0;else if(c&&l>c){const e=l-c;o&&e>0&&(o.style.marginBottom=e+i+"px")}setTimeout(this.scrollToSelectedOption)}else o&&o.style&&(o.style.marginBottom=0),this.selectMenuTop=!1;var l;(this.showOptions=!this.showOptions,this.showOptions&&this.$emit("click"),this.isShowBottomSheet)&&(this.showOptions?null===(l=this.$refs.customSelectBottomSheet)||void 0===l||l.open():null===(t=this.$refs.customSelectBottomSheet)||void 0===t||t.close())},clickOutside(e){this.$refs.customSelect&&this.$refs.customSelect!==e.target&&!this.$refs.customSelect.contains(e.target)&&this.toggleSelect()},onChange(e){const t=e.target.options.selectedIndex+(this.showPlaceholder?-1:0),o=this.options[t];this.selectOption(o,e)},scrollToSelectedOption(){var e,t,o,l;if(!this.scrollToSelected)return;const s=this.isShowBottomSheet?this.$refs.customSelectOptionsScroll:this.$el,i=this.isShowBottomSheet?null===s||void 0===s||null===(e=s.parentElement)||void 0===e?void 0:e.parentElement:null===s||void 0===s||null===(t=s.getElementsByTagName("ul"))||void 0===t||null===(o=t[0])||void 0===o?void 0:o.parentElement,c=null===s||void 0===s||null===(l=s.getElementsByClassName("custom-select__option--active"))||void 0===l?void 0:l[0];i&&c&&this.$nextTick().then(()=>{V()(c,"scroll",{container:i,duration:0,offset:E})})},closeBottomSheet(){this.showOptions=!1}}},x=(o("b27a"),o("6b0d")),$=o.n(x);const H=$()(N,[["render",f],["__scopeId","data-v-3870ade0"]]);t["a"]=H},"498d":function(e,t,o){"use strict";t["a"]={methods:{createScrollBar(e){const t="string"===typeof e?document.querySelector(e):e;t&&!this.$vuebar.getState(t)&&this.$vuebar.initScrollbar(t,{})},refreshScrollBar(e){const t="string"===typeof e?document.querySelector(e):e;t&&this.$vuebar.getState(t)&&this.$vuebar.refreshScrollbar(t)},removeScrollBar(e,t=!0){const o="string"===typeof e?document.querySelector(e):e;o&&this.$vuebar.getState(o)&&this.$vuebar.destroyScrollbar(o),t&&(o.setAttribute("style",""),o.firstElementChild.setAttribute("style",""))}}}},b27a:function(e,t,o){"use strict";o("05b0")}}]); //# sourceMappingURL=chunk-727d6e6a.5cbba560.js.map