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]="042f9a35-3775-408c-9987-c16ae54dbd20",e._sentryDebugIdIdentifier="sentry-dbid-042f9a35-3775-408c-9987-c16ae54dbd20")}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-13133f38","preloadChunk-CountrySelectBottom"],{"0860":function(e,t,o){"use strict";o("4a96")},"2ead":function(e,t,o){"use strict";var s=o("f2bf");const l={key:0,ref:"togglesInner",class:"toggles"},n=["data-test","onClick"],c={class:"toggles__icon-wr flex-center"},a={class:"toggles__title"};function i(e,t,o,i,r,d){const u=Object(s["resolveComponent"])("icon");return d.showToggles?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",l,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(d.toggles,o=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:o.id,"data-test":"dt-"+o.code,class:Object(s["normalizeClass"])(["toggles__item",{"toggles__item--active":e.getRegistrationForm===o.code}]),onClick:e=>d.clickToggle(e,o)},[Object(s["createElementVNode"])("div",c,[Object(s["createVNode"])(u,{"icon-name":o.icon,class:Object(s["normalizeClass"])(["toggles__icon","toggles__icon--"+o.icon])},null,8,["icon-name","class"])]),t[0]||(t[0]=Object(s["createTextVNode"])()),Object(s["createElementVNode"])("span",a,Object(s["toDisplayString"])(e.$t(o.name)),1)],10,n))),128))],512)):Object(s["createCommentVNode"])("",!0)}var r=o("c964"),d=o("f3f3"),u=(o("4de4"),o("e9f5"),o("910d"),o("be92")),h=o("d373"),b=o("5d2a"),p=o("7f14"),m={name:"toggles",components:{Icon:b["a"]},mixins:[p["a"]],computed:Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(u["f"])(h["a"].profileSettings,["isCanary"])),Object(u["f"])(h["a"].registrationForm,["getRegistrationForm","getActiveTab"])),{},{allToggles(){return[{id:1,name:"registration.by_email",code:"email",icon:"mail",visible:!0},{id:2,name:"registration.by_phone",code:"phone",icon:"phone",visible:this.isCanary}]},toggles(){return this.allToggles.filter(({visible:e})=>e)},showToggles(){return this.toggles.length>1}}),watch:{getActiveTab(){var e=this;return Object(r["a"])((function*(){yield e.$nextTick(),e.scrollToActiveSelector(".toggles__item--active",e.$refs.togglesInner)}))()}},mounted(){var e=this;return Object(r["a"])((function*(){yield e.$nextTick(),e.scrollToActiveSelector(".toggles__item--active",e.$refs.togglesInner)}))()},methods:Object(d["a"])(Object(d["a"])({},Object(u["e"])(h["a"].registrationForm,["toggleForm"])),{},{clickToggle(e,t){this.toggleForm(t.code),this.$nextTick().then(()=>{this.scrollToActiveSelector(".toggles__item--active",this.$refs.togglesInner,!0)}),this.$emit("toggle",t.code)}})},g=(o("0860"),o("6b0d")),f=o.n(g);const O=f()(m,[["render",i],["__scopeId","data-v-66ea4986"]]);t["a"]=O},"4a96":function(e,t,o){},5185:function(e,t,o){"use strict";var s=o("f2bf");const l={class:"validation-select"};function n(e,t,o,n,c,a){const i=Object(s["resolveComponent"])("custom-select"),r=Object(s["resolveComponent"])("error-validation");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",l,[Object(s["createVNode"])(i,Object(s["mergeProps"])(e.$attrs,{error:n.errors[0],"model-value":n.value,label:a.selectLabel,"is-with-scroll-bar":o.isWithScrollBar,class:o.classSelect,"data-test":o.dataTest,"left-icon":o.leftIcon,options:o.options,onCloseOptions:a.closeHandler,"onUpdate:modelValue":a.handleUpdate}),null,16,["error","model-value","label","is-with-scroll-bar","class","data-test","left-icon","options","onCloseOptions","onUpdate:modelValue"]),t[0]||(t[0]=Object(s["createTextVNode"])()),n.errors[0]?(Object(s["openBlock"])(),Object(s["createBlock"])(r,{key:0,error:n.errors[0],"data-test":e.$attrs["data-test-error"],class:"validation-select__error"},null,8,["error","data-test"])):Object(s["createCommentVNode"])("",!0)])}var c=o("cc7b"),a=o("2b85"),i=o("91bd"),r={name:"validation-select",components:{CustomSelect:a["a"],ErrorValidation:i["a"]},inheritAttrs:!1,props:{validationRules:{type:[String,Object],default:""},classSelect:{type:[String,Object,Array],default:""},name:{type:String,required:!0},modelValue:{type:[Object,String],default:""},label:{type:String,default:""},isWithScrollBar:{type:Boolean,default:!1},leftIcon:{type:String,default:""},dataTest:{type:String,default:""},options:{type:Array,default:()=>[]}},emits:["update:model-value","error","focus"],setup(e){const t=Object(c["c"])(e.name,Object(s["toRef"])(e,"validationRules"),{initialValue:e.modelValue}),o=t.value,l=t.errors,n=t.validate,a=t.resetField;return{value:o,errors:l,validate:n,reset:a}},computed:{selectLabel(){return this.modelValue&&this.label}},watch:{errors(e){this.$emit("error",{message:e[0]})},modelValue(e){this.value=e}},methods:{closeHandler(){this.validate(this.selectedValue)},handleUpdate(e,t){this.value=e,this.$emit("update:model-value",e,t)}}},d=(o("f40c"),o("6b0d")),u=o.n(d);const h=u()(r,[["render",n]]);t["a"]=h},"5f6b":function(e,t,o){"use strict";o("caad"),o("14d9"),o("ac1f"),o("2532"),o("5319");var s=o("63ea"),l=o.n(s),n=o("4281");t["a"]={data(){return{lastSendAvailableAnalytics:{},lastSendErrorAnalytics:{},lastSendActivationAnalytics:{},gtmFieldsErrors:{},gtmTouchedFields:[]}},unmounted(){this.lastSendAvailableAnalytics={},this.lastSendErrorAnalytics={},this.lastSendActivationAnalytics={},this.gtmFieldsErrors={}},methods:{sendGtmAvailableAnalytics(e,t=null,o=null){l()(e,this.lastSendAvailableAnalytics)||(this.lastSendAvailableAnalytics=Object.assign({},e),t&&(e.step=t),o&&(e.place=o),this.$analytics.logEvent(Object.assign(Object.assign({},e),{event:n["b"].available})))},sendGtmErrorAnalytics(e,t=null,o=null){l()(e,this.lastSendErrorAnalytics)||(this.lastSendErrorAnalytics=Object.assign({},e),t&&(e.step=t),o&&(e.place=o),this.$analytics.logEvent(Object.assign(Object.assign({},e),{event:n["b"].fieldError})))},sendGtmFieldActivationAnalytics(e,t={step:null,place:null,position:null,once:!0}){l()(e,this.lastSendActivationAnalytics)&&t.once||(this.lastSendActivationAnalytics=Object.assign({},e),t.step&&(e.step=t.step),t.place&&(e.place=t.place),t.position&&(e.position=t.position),this.$analytics.logEvent(Object.assign(Object.assign({},e),{event:n["b"].fieldActivation})))},sendGtmFormSuccessAnalytics(e,t=null,o=null){t&&(e.step=t),o&&(e.place=o),this.$analytics.logEvent(Object.assign(Object.assign({},e),{event:n["b"].formSuccess}))},sendErrorFieldsAnalytics(e,t){var o;const s=null!==(o=null===t||void 0===t?void 0:t.name)&&void 0!==o?o:"";if(!e)return void delete this.gtmFieldsErrors[s];const l=this.gtmFieldsErrors[s];l&&l===e||(this.gtmFieldsErrors[s]=e,this.$analytics.logEvent(Object.assign(Object.assign({},t),{reason:e.replace(/"/g,"'"),event:n["b"].fieldError})))},sendFocusFieldAnalytics(e,t={once:!0}){this.gtmTouchedFields.includes(e.name)&&t.once||(this.gtmTouchedFields.push(e.name),this.sendGtmFieldActivationAnalytics(e,{once:t.once}))},sendFieldActivationAnalytics(e,t,o,s){e&&Object.keys(e).length&&this.sendGtmFieldActivationAnalytics(e,{step:t,place:o,position:s})}}}},"606c":function(e,t,o){"use strict";o.r(t);var s=o("f2bf");const l={class:"country-select__flag"},n=["src"],c=["disabled"],a=["data-test","innerHTML"],i={key:0,class:"country-select__header"},r={class:"country-select__label"},d={class:"country-select__search-input-wrap"},u={class:"country-select__search-input-icon-wr flex-center"},h={class:"country-select__options-scroll-wr"},b={key:0,ref:"optionsScroll",class:"country-select__options-scroll"},p=["name","onClick"],m=["src","alt"],g=["data-test","innerHTML"],f={key:0,class:"input-field__error-wr"};function O(e,t,o,O,y,v){const j=Object(s["resolveComponent"])("input-field"),k=Object(s["resolveComponent"])("icon"),S=Object(s["resolveComponent"])("transition-expand"),_=Object(s["resolveComponent"])("error-validation"),T=Object(s["resolveDirective"])("click-outside");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"countrySelect",class:Object(s["normalizeClass"])(["country-select",v.getMainClasses])},[Object(s["createElementVNode"])("div",l,[(Object(s["openBlock"])(),Object(s["createElementBlock"])("img",{key:y.selectedValue,src:v.imgSelectedValue,alt:"","aria-hidden":!0,class:"country-select__flag-icon",onClick:t[0]||(t[0]=Object(s["withModifiers"])((...e)=>v.toggleSelect&&v.toggleSelect(...e),["self","stop"]))},null,8,n))]),t[9]||(t[9]=Object(s["createTextVNode"])()),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(["country-select__selected",v.getSelectClasses]),disabled:o.disabled,onClick:t[3]||(t[3]=Object(s["withModifiers"])((...e)=>v.toggleSelect&&v.toggleSelect(...e),["self","stop"]))},[v.isVisibleSelectName?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:"country-select__name","data-test":v.getDataTestSelectName,onClick:t[1]||(t[1]=Object(s["withModifiers"])((...e)=>v.toggleSelect&&v.toggleSelect(...e),["self","stop"])),innerHTML:v.getSelectName},null,8,a)):(Object(s["openBlock"])(),Object(s["createBlock"])(j,{key:1,id:"search",ref:"searchInput","country-input":"","handle-input-event":"",name:"search",type:"text",placeholder:e.$t("choose_country"),class:"country-select__search-input","model-value":y.countrySearch,"data-test-input":o.dataTestSearch,onBlur:v.blurSearch,"onUpdate:modelValue":v.onInput,onPaste:v.onPaste},null,8,["placeholder","model-value","data-test-input","onBlur","onUpdate:modelValue","onPaste"])),t[4]||(t[4]=Object(s["createTextVNode"])()),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(["country-select__arrow",v.countrySelectArrowClass]),onClick:t[2]||(t[2]=Object(s["withModifiers"])((...e)=>v.toggleSelect&&v.toggleSelect(...e),["stop"]))},[Object(s["createVNode"])(k,{class:"country-select__arrow-icon","icon-name":"chevrone-down"})],2)],10,c),t[10]||(t[10]=Object(s["createTextVNode"])()),(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(v.isTag),{ref:"countrySelectBottomSheet","mount-in-portal":"","has-scroll":!1,"max-height":"calc(100% - 60px)","is-full-screen":"","class-name":v.getComponentClassName,onClosed:v.bottomSheetCloseHandler},{default:Object(s["withCtx"])(()=>[v.isInBottomSheet?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",i,[Object(s["createElementVNode"])("div",r,Object(s["toDisplayString"])(e.$t("choose_country")),1),t[6]||(t[6]=Object(s["createTextVNode"])()),Object(s["createElementVNode"])("div",d,[Object(s["createElementVNode"])("div",u,[Object(s["createVNode"])(k,{class:"country-select__search-input-icon","icon-name":"search"})]),t[5]||(t[5]=Object(s["createTextVNode"])()),(Object(s["openBlock"])(),Object(s["createBlock"])(j,{id:"searchBottomSheet",ref:"searchInputBottomSheet",key:y.selectedValue,"country-input":"","handle-input-event":"",name:"search",type:"text",class:"country-select__search-input",placeholder:o.placeholder,"model-value":y.countrySearch,"data-test-input":o.dataTestSearch,onBlur:v.blurSearch,"onUpdate:modelValue":v.onInput,onPaste:v.onPaste},null,8,["placeholder","model-value","data-test-input","onBlur","onUpdate:modelValue","onPaste"]))])])):Object(s["createCommentVNode"])("",!0),t[8]||(t[8]=Object(s["createTextVNode"])()),Object(s["createVNode"])(S,{onEnter:v.enter},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",h,[v.isOptionsScrollVisible?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",b,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(v.countryList,e=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:e.id,class:Object(s["normalizeClass"])(["country-select__option",v.isActiveOption(e)]),name:e.name.toLowerCase(),onClick:t=>v.selectOption(e,t)},[Object(s["createElementVNode"])("img",{class:"country-select__options-image",src:e.img,alt:e.name},null,8,m),t[7]||(t[7]=Object(s["createTextVNode"])()),e.name?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:"country-select__option-label pointer-event-none","data-test":v.getDataTestOption(e),innerHTML:e.name},null,8,g)):Object(s["createCommentVNode"])("",!0)],10,p))),128))],512)):Object(s["createCommentVNode"])("",!0)])]),_:1},8,["onEnter"])]),_:1},40,["class-name","onClosed"])),t[11]||(t[11]=Object(s["createTextVNode"])()),o.error?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",f,[Object(s["createVNode"])(_,{error:o.error},null,8,["error"])])):Object(s["createCommentVNode"])("",!0)],2)),[[T,v.clickOutside]])}var y=o("d0af"),v=o("c964"),j=o("f3f3"),k=(o("4de4"),o("caad"),o("4e82"),o("e9f5"),o("910d"),o("f665"),o("2532"),o("2ca0"),o("498a"),o("be92")),S=o("d373"),_=o("ef24"),T=o("0d66"),V=o("91bd"),C=o("b686"),w=o("5d2a"),B=o("c235"),E=o("c7b5");const x=0,N="country-select";var A={name:"country-select-bottom",components:{BottomSheet:_["default"],TransitionExpand:T["a"],ErrorValidation:V["a"],InputField:C["a"],Icon:w["a"]},mixins:[B["a"],E["a"]],inheritAttrs:!1,props:{options:{type:Array,default:()=>[]},modelValue:{type:[Object,String],default:""},error:{type:[String,Boolean],default:""},placeholder:{type:String,default:""},dataTest:{type:String,default:""},dataTestInput:{type:String,default:""},disabled:Boolean,deniedToggleMsg:{type:String,default:""},useValueFromProp:{type:Boolean,default:!1},notScrollToOption:{type:Boolean,default:!1},dataTestSearch:{type:String,default:""},isBottomSheetOnTablet:{type:Boolean,default:!1}},emits:["update:model-value","show-options","focus","close-options"],data(){return{countrySearch:"",showOptions:!1,disabledFetchingCountry:!0,selectedValue:"",isFocus:!1}},computed:Object(j["a"])(Object(j["a"])({},Object(k["f"])(S["a"].breakpoints,["isMobile","isMobileOrTablet"])),{},{isInBottomSheet(){return this.isBottomSheetOnTablet?this.isMobileOrTablet:this.isMobile},isTag(){return this.isInBottomSheet?"bottom-sheet":"div"},getComponentClassName(){return this.isInBottomSheet?`${N} ${N}--opened`:N},isOptionsScrollVisible(){return Boolean(this.showOptions&&this.countryList.length)},countrySelectArrowClass(){return this.showOptions?"country-select__arrow-up":"country-select__arrow-down"},imgSelectedValue(){var e;return(null===(e=this.options.find(({name:e})=>"object"===typeof this.modelValue?e===this.modelValue.name:e===this.modelValue))||void 0===e?void 0:e.img)||""},countryList(){const e=this.countrySearch.trim().toLowerCase();return this.options.filter(({name:t})=>null===t||void 0===t?void 0:t.toLowerCase().includes(e)).sort(({name:t},{name:o})=>{const s=t.toLowerCase().startsWith(e),l=o.toLowerCase().startsWith(e);return s&&l?t>o?1:-1:t?-1:1})},selectedCountry(){return this.countryList.find(({name:e})=>e===this.selectedValue)||{}},getMainClasses(){return{"country-select--opened":this.showOptions,"country-select--selected":Boolean(this.modelValue),"country-select--has-error":Boolean(this.error),"country-select--disabled":Boolean(this.deniedToggleMsg)}},getSelectClasses(){return{"select__selected--error":Boolean(this.error),"country-select__selected--no-results":!this.isOptionsScrollVisible}},isVisibleSelectName(){return!this.showOptions||this.isInBottomSheet},getDataTestSelectName(){return this.dataTest||this.dataTestInput},getSelectName(){return this.selectedValue||this.placeholder||this.$t("choose")}}),watch:{isMobile(){this.showOptions=!1},showOptions(e){if(e)return this.$emit("show-options"),this.$emit("focus"),document.body.addEventListener("keydown",this.keyEvent,!0),void this.$nextTick().then(()=>{this.$refs.searchInput&&!this.isInBottomSheet&&setTimeout(()=>{var e,t;null===(e=this.$refs.searchInput)||void 0===e||null===(t=e.$el)||void 0===t||t.querySelector("input").focus()},100)});this.$emit("close-options"),document.body.removeEventListener("keydown",this.keyEvent,!0)},countryList(e){var t;this.showOptions&&!this.useValueFromProp&&(this.selectedValue=(null===(t=e[0])||void 0===t?void 0:t.name)||"")},modelValue:{immediate:!0,handler(e){this.selectedValue=(null===e||void 0===e?void 0:e.name)||e||""}}},beforeUnmount(){document.body.removeEventListener("keydown",this.keyEvent,!0)},methods:{clickOutside(){this.isInBottomSheet||(this.showOptions=!1,this.setRegistrationVisible())},selectOption(e,t,o=!0){this.useValueFromProp||(this.selectedValue=(null===e||void 0===e?void 0:e.name)||""),o&&(this.$emit("update:model-value",e,t),this.toggleSelect(),this.updateCountrySearch(""))},scrollToOption(e){var t=this;return Object(v["a"])((function*(e,o={block:"end"}){var s,l;yield t.$nextTick();const n=null===(s=t.$refs.optionsScroll)||void 0===s?void 0:s.querySelector(`.country-select__option[name="${e}"]`);if(!n||t.notScrollToOption)return;if(t.isInBottomSheet)return void n.scrollIntoView(o);const c=(null===(l=t.$refs.optionsScroll)||void 0===l?void 0:l.getBoundingClientRect())||{},a=c.top,i=n.getBoundingClientRect()||{},r=i.top;r&&a&&(t.$refs.optionsScroll.scrollTop=r-a-x)})).apply(this,arguments)},toggleSelect(){var e;if(!this.disabled)if(this.deniedToggleMsg)this.showNotify({type:"warn",text:this.deniedToggleMsg});else if(this.showOptions=!this.showOptions,this.setRegistrationVisible(this.showOptions),this.isInBottomSheet){var t;if(this.showOptions)return null===(t=this.$refs.countrySelectBottomSheet)||void 0===t||t.open(),void this.$nextTick().then(this.scrollToOption(this.selectedValue.toLowerCase(),{block:"center"}));null===(e=this.$refs.countrySelectBottomSheet)||void 0===e||e.close()}else this.$nextTick().then(this.scrollToOption(this.selectedValue.toLowerCase()))},setRegistrationVisible(e=!1){const t=document.querySelector(".custom-modal--registration")||document.querySelector(".play__iframe--registration");if(!t)return;const o=e?"add":"remove";t.classList[o]("custom-modal--visible")},bottomSheetCloseHandler(){this.showOptions=!1},keyEvent(e){if(!(e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey)){switch(e.key){case"Enter":case"Escape":this.selectedCountry&&this.$emit("update:model-value",this.selectedCountry,e),this.toggleSelect();break;case"ArrowDown":this.moveList("down",e);break;case"ArrowUp":this.moveList("up",e);break;default:return}e.preventDefault()}},moveList(e,t){const o=this.countryList.findIndex(({name:e})=>e===this.selectedValue),s="down"===e?o+1:o-1,l=this.countryList[s];s>=0&&s<=this.countryList.length&&(this.scrollToOption(l.name.toLowerCase(),{block:"center"}),this.selectOption(l,t,!1))},enter(e){this.scrollToOption(this.selectedValue.toLowerCase(),{block:"center"}),this.$nextTick().then(()=>{e.classList.add("open")})},onInput(e){var t;const o=""===(null===(t=e[0])||void 0===t?void 0:t.trim())?e.substr(1):e;this.updateCountrySearch(o),this.changeSearchCriteria(o)},changeSearchCriteria(e){if(!e)return;const t=Object(y["a"])(this.countryList,1),o=t[0];o&&this.scrollToOption(o.name.toLowerCase())},onPaste(e,t){t.preventDefault(),this.updateCountrySearch(e.trim())},onChange(e){const t=e.target.options.selectedIndex-1,o=this.countryList[t];this.selectOption(o,e)},isActiveOption(e){return e.name===this.selectedValue?"active":""},updateCountrySearch(e){this.countrySearch=e},getDataTestOption({code:e,id:t}={}){return"country_"+(e||t)},blurSearch(){this.updateCountrySearch(this.countrySearch.trim())}}},$=o("6b0d"),L=o.n($);const I=L()(A,[["render",O]]);t["default"]=I},"7f14":function(e,t,o){"use strict";var s=o("f3f3"),l=o("be92"),n=o("d373");const c=.5;t["a"]={computed:Object(s["a"])({},Object(l["f"])(n["a"].breakpoints,["isMobileOrTablet"])),methods:{scrollToActiveTabOnMobile(e,t,o,s){this.isMobileOrTablet&&this.scrollToActiveTab(null===e||void 0===e?void 0:e.target,t,o,s)},scrollToActiveTab(e,t,o,s){if(!e||!t)return;const l=e.getBoundingClientRect(),n=t.getBoundingClientRect(),c=t.scrollLeft,a=parseInt(window.getComputedStyle(t).paddingLeft)||0;if(!l||!n||!c&&0!==c)return;let i=0;i=0===s?-a:s===o.length-1?l.right:l.left-n.left+c-a,t.scrollTo({left:i,behavior:"smooth"})},scrollToActiveSelector(e,t,o){const s=t;if(!s)return;const l=parseInt(window.getComputedStyle(s).paddingLeft)||0,n=null===s||void 0===s?void 0:s.querySelector(e);if(!n)return;const c=s.getBoundingClientRect(),a=n.getBoundingClientRect();if(!o){const e=a.left-c.left;return void(s.scrollLeft+=e)}const i=a.left-c.left-l;s.scrollLeft+=i},scrollToActiveTabCentered(e,t,o=0){const s=window.innerWidth*c,l=this.$refs[t][0],n=l.offsetLeft,a=l.clientWidth;this.$refs[e].scrollWidth*cp.updateValue&&p.updateValue(...e)),onFocus:t[1]||(t[1]=t=>e.$emit("focus",t))},null,40,c),t[4]||(t[4]=Object(s["createTextVNode"])()),t[5]||(t[5]=Object(s["createElementVNode"])("span",{class:"checkbox__pseudo-block"},null,-1))],8,n),t[8]||(t[8]=Object(s["createTextVNode"])()),o.hrefText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",a,[Object(s["createElementVNode"])("span",null,[Object(s["createTextVNode"])(Object(s["toDisplayString"])(o.label)+" ",1),o.href?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:0,class:"checkbox__pseudo-link",href:"#","data-test":o.dataTestHref,onClick:t[2]||(t[2]=Object(s["withModifiers"])((...e)=>p.toLink&&p.toLink(...e),["prevent"]))},Object(s["toDisplayString"])(o.hrefText),9,i)):o.isCallback?(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{key:1,href:"#",class:"checkbox__pseudo-link","data-test":o.dataTestHref,onClick:t[3]||(t[3]=Object(s["withModifiers"])((...e)=>p.hrefCallback&&p.hrefCallback(...e),["prevent"]))},Object(s["toDisplayString"])(o.hrefText),9,r)):Object(s["createCommentVNode"])("",!0),t[6]||(t[6]=Object(s["createTextVNode"])()),Object(s["createElementVNode"])("span",null,[Object(s["renderSlot"])(e.$slots,"default")])])])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",d,[Object(s["createElementVNode"])("span",null,[Object(s["createElementVNode"])("span",{innerHTML:o.label},null,8,u),t[7]||(t[7]=Object(s["createTextVNode"])()),Object(s["createElementVNode"])("span",null,[Object(s["renderSlot"])(e.$slots,"default")])])]))],2),t[9]||(t[9]=Object(s["createTextVNode"])()),h.errors[0]?(Object(s["openBlock"])(),Object(s["createBlock"])(m,{key:0,error:h.errors[0],"data-test":o.dataTestError},null,8,["error","data-test"])):Object(s["createCommentVNode"])("",!0)])}var b=o("f3f3"),p=(o("14d9"),o("be92")),m=o("d373"),g=o("cc7b"),f=o("91bd"),O={name:"checkbox-input",components:{ErrorValidation:f["a"]},props:{xs:{type:Boolean,default:!0},m:{type:Boolean,default:!1},name:{type:String,default:""},modelValue:{type:Boolean,default:!1},validationRules:{type:[String,Object],default:""},validationFieldName:{type:String,default:""},validationMode:{type:[String,Function],default:"aggressive"},label:{type:String,default:""},href:{type:String,default:""},hrefText:{type:String,default:""},isCallback:{type:Boolean,default:!1},dataTestLabel:{type:String,default:""},dataTestHref:{type:String,default:""},dataTestError:{type:String,default:""}},emits:["update:model-value","error","callback"],setup(e){const t=Object(g["c"])(e.name,Object(s["toRef"])(e,"validationRules"),{initialValue:e.modelValue}),o=t.value,l=t.errors,n=t.validate;return{value:o,errors:l,validate:n}},watch:{modelValue(e){this.value=e},validationFieldName(e){e&&this.errors.length&&this.$nextTick().then(this.validate)}},mounted(){this.$watch(()=>this.errors,e=>{this.$emit("error",{message:e[0]})})},methods:Object(b["a"])(Object(b["a"])({},Object(p["e"])(m["a"].modal,["closeModal"])),{},{updateValue(e){const t=(null===e||void 0===e?void 0:e.target)||{},o=t.checked;this.value=o,this.$emit("update:model-value",o)},hrefCallback(){this.$emit("callback")},toLink(){this.$router.push(this.href).finally(()=>{this.closeModal()}).catch(()=>({}))}})},y=(o("c5bc"),o("6b0d")),v=o.n(y);const j=v()(O,[["render",h]]);t["a"]=j},a601:function(e,t,o){},c5bc:function(e,t,o){"use strict";o("e03e")},e03e:function(e,t,o){},f40c:function(e,t,o){"use strict";o("a601")}}]); //# sourceMappingURL=chunk-13133f38.5cbba560.js.map