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]="1bc98749-5df2-411f-a227-20b12108a20c",e._sentryDebugIdIdentifier="sentry-dbid-1bc98749-5df2-411f-a227-20b12108a20c")}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([["preloadChunk-TopBar"],{"0acc":function(e,t,o){"use strict";o("3498")},"168a":function(e,t,o){"use strict";o("55a4")},1754:function(e,t,o){"use strict";var i=o("f3f3"),s=(o("ac1f"),o("841c"),o("be92")),a=o("d373");t["a"]={computed:Object(i["a"])({},Object(s["f"])(a["a"].breakpoints,["isMobile","isMobileOrTablet"])),methods:{sendClickEvent(e){this.$analytics.clickEvent({button:e})},sendClickTabGameEvent(e,t){var o;const i={button:this.GTM_ELEMENTS.popup.search[t].game,currency_type:(null===(o=e.gtm)||void 0===o?void 0:o.currency_type)||null,game_identifier:e.identifier,position:e.gtm.position,line:e.gtm.line};this.$analytics.clickEvent(i)},sendClickSearchGameEvent(e,t){var o;const i={button:t,currency_type:(null===(o=e.gtm)||void 0===o?void 0:o.currency_type)||null,game_identifier:e.identifier,position:e.gtm.position,line:e.gtm.line};this.$analytics.clickEvent(i)},sendSearchEvent(e,t){const o={event:"Search",request:e,reason:t};this.$analytics.logEvent(o)},sendSearchGameEvent(e,t,o){const i={event:"Search",request:e,reason:o,game_identifier:t.identifier,position:t.gtm.position,line:t.gtm.line};this.$analytics.logEvent(i)},sendSearchProviderEvent(e,t){const o={event:"Search",request:e,reason:"provider",provider_name:t.name};this.$analytics.logEvent(o)},isHoveredGame({id:e}){return Number(this.hoveredGame)===Number(e)}}}},3498:function(e,t,o){},"55a4":function(e,t,o){},5975:function(e,t,o){"use strict";o("4de4"),o("caad"),o("d81d"),o("14d9"),o("e9f5"),o("910d"),o("2532");var i=o("be92"),s=o("d373"),a=o("10ba");const n=["ios","android"];t["a"]={computed:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Object(i["f"])(s["a"].bottomSheet,["getOpenedBottomSheets"])),Object(i["f"])(s["a"].breakpoints,["isMobileOrTablet"])),Object(i["f"])(s["a"].cmsConfig,["getAppLinks","getDomainWebView"])),Object(i["f"])(s["a"].player,["getLanguageForUrl"])),{isNotAndroid(){return"android"!==a["a"].osName.toLowerCase()},iosLink(){return"Mac OS"===a["a"].osName&&this.getAppLinks.macOs?this.getAppLinks.macOs:this.getAppLinks.iOs},isDownloadAppPage(){return this.$route.path.includes(this.getAppLinks.android)},mappedSystems(){const e=this.isDownloadAppPage?this.getAppLinks.androidApp:`${this.getLanguageForUrl}${this.getAppLinks.android}`;return this.getDomainWebView?[]:n.map(t=>({name:t,link:"ios"===t&&(this.isNotAndroid||this.isDownloadAppPage)?this.iosLink:e}))},systems(){return this.mappedSystems.filter(({name:e})=>e===a["a"].osName.toLowerCase())}}),methods:{handleClick(e){var t;this.$bus.emit("stories-buttons-app-click",e.name),this.gtmElement&&this.$analytics.clickEvent({button:""+this.gtmElement,option:e.name}),"ios"===e.name&&this.isNotAndroid||this.isDownloadAppPage?window.open(e.link):(this.$router.push(e.link).catch(()=>({})),this.$emit("click-handler"),(null===(t=this.getOpenedBottomSheets)||void 0===t?void 0:t.length)&&this.isMobileOrTablet&&this.$bus.emit("close-menu-burger-bottom-sheets"))}}}},d55c:function(e,t,o){"use strict";o.r(t);o("ac1f"),o("841c");var i=o("f2bf");const s={class:"top-bar__wrapper"},a={ref:"topBarLeft",class:"top-bar__left-wr"},n={class:"top-bar__left"},r={class:"top-bar__burger-logo"},c=["href"],l=["src"],b={key:0,class:"top-bar__menu"},p={class:"top-bar__menu-text"},d={class:"top-bar__menu-text"},h={class:"top-bar__center"},u={class:"top-bar__search-wr"},m={key:0,class:"top-bar__search"},O={class:"top-bar__search-btn-text"},g={class:"top-bar__search-btn-icon-wr"},j={class:"top-bar__right"},f={class:"top-bar__user"},k={key:1,class:"top-bar__msp"};function _(e,t,o,_,v,w){const B=Object(i["resolveComponent"])("btn"),T=Object(i["resolveComponent"])("icon"),y=Object(i["resolveComponent"])("router-link"),E=Object(i["resolveComponent"])("top-bar-app-button"),S=Object(i["resolveComponent"])("payout-cancel-btn"),C=Object(i["resolveComponent"])("msp-deposit-button"),N=Object(i["resolveComponent"])("messenger-micro-app"),V=Object(i["resolveComponent"])("user-top"),M=Object(i["resolveDirective"])("gtm"),D=Object(i["resolveDirective"])("scroll");return Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("header",{ref:"topBar",class:Object(i["normalizeClass"])(["top-bar",w.topBarClasses])},[Object(i["createElementVNode"])("div",s,[Object(i["createElementVNode"])("div",a,[Object(i["createElementVNode"])("div",n,[Object(i["createElementVNode"])("div",r,[e.isMobileOrTablet?Object(i["createCommentVNode"])("",!0):Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])(B,{key:0,m:"",circle:"","secondary-c":"",type:"button",icon:"burger",onClick:e.toggleMenu},null,8,["onClick"])),[[M,e.GTM_ELEMENTS.top.menu.main,"click"]]),t[2]||(t[2]=Object(i["createTextVNode"])()),Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("a",{ref:"logoImage",href:w.casinoUrl,class:"top-bar__logo","data-test":"logo_casino",onClick:t[0]||(t[0]=Object(i["withModifiers"])((...e)=>w.clickLogo&&w.clickLogo(...e),["prevent"]))},[e.isMobileOrTablet?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"top-bar__logo-img",style:Object(i["normalizeStyle"])(`background-image: url(${w.logoSrc})`)},null,4)):(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:1,src:w.logoSrc,alt:"logo_flagman",class:"top-bar__logo-img"},null,8,l))],8,c)),[[M,e.GTM_ELEMENTS.top.home,"click"]])]),t[10]||(t[10]=Object(i["createTextVNode"])()),e.isMobileOrTablet?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",b,[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])(y,{to:w.casinoUrl,class:Object(i["normalizeClass"])(["top-bar__menu-link",{"top-bar__menu-link--active":e.isCasinoPages}])},{default:Object(i["withCtx"])(()=>[t[3]||(t[3]=Object(i["createElementVNode"])("div",{class:"top-bar__menu-link-hover"},null,-1)),t[4]||(t[4]=Object(i["createTextVNode"])()),e.isCasinoPages?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(T,{key:0,"icon-name":"casino",class:"top-bar__menu-icon"})),t[5]||(t[5]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("span",p,Object(i["toDisplayString"])(e.$t("top_bar.casino")),1)]),_:1},8,["to","class"])),[[M,e.GTM_ELEMENTS.top.casino,"click"]]),t[9]||(t[9]=Object(i["createTextVNode"])()),Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createBlock"])(y,{to:e.getLanguageForUrl+"/sports",class:Object(i["normalizeClass"])(["top-bar__menu-link",{"top-bar__menu-link--active":e.isSportPages}]),onClick:w.handleMenuSportClick},{default:Object(i["withCtx"])(()=>[t[6]||(t[6]=Object(i["createElementVNode"])("div",{class:"top-bar__menu-link-hover"},null,-1)),t[7]||(t[7]=Object(i["createTextVNode"])()),e.isSportPages?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(T,{key:0,"icon-name":"sport",class:"top-bar__menu-icon"})),t[8]||(t[8]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("span",d,Object(i["toDisplayString"])(e.$t("top_bar.sport")),1)]),_:1},8,["to","class","onClick"])),[[M,e.GTM_ELEMENTS.top.sport,"click"]])]))])],512),t[19]||(t[19]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("div",h,[Object(i["createElementVNode"])("div",u,[t[14]||(t[14]=Object(i["createElementVNode"])("div",{class:"top-bar__search-border"},null,-1)),t[15]||(t[15]=Object(i["createTextVNode"])()),w.isShowSearch?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",m,[Object(i["withDirectives"])((Object(i["openBlock"])(),Object(i["createElementBlock"])("button",{id:"top-search",type:"button",class:"top-bar__search-btn","data-test":"top-search",onClick:t[1]||(t[1]=(...t)=>e.openSearch&&e.openSearch(...t))},[t[11]||(t[11]=Object(i["createElementVNode"])("span",{class:"top-bar__search-btn-border"},null,-1)),t[12]||(t[12]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("span",O,Object(i["toDisplayString"])(e.$t("search.placeholder_btn")),1),t[13]||(t[13]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("span",g,[Object(i["createVNode"])(T,{"icon-name":"search",class:"top-bar__search-btn-icon"})])])),[[M,{button:e.GTM_ELEMENTS.top.search,isGtmClickFirst:!0},"click"]])])):Object(i["createCommentVNode"])("",!0)])]),t[20]||(t[20]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("div",{style:Object(i["normalizeStyle"])({"min-width":v.topBarRightWidth}),class:"top-bar__right-wr"},[Object(i["createElementVNode"])("div",j,[w.isAppButtonVisible?(Object(i["openBlock"])(),Object(i["createBlock"])(E,{key:0})):Object(i["createCommentVNode"])("",!0),t[18]||(t[18]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("div",f,[w.isPayoutBtnVisible?(Object(i["openBlock"])(),Object(i["createBlock"])(S,{key:0})):Object(i["createCommentVNode"])("",!0),t[16]||(t[16]=Object(i["createTextVNode"])()),w.isDepositButtonVisible?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",k,[Object(i["createVNode"])(C,{"icon-name":"msp-card-change","class-name":"msp-deposit-button"})])):w.isShowMessenger?(Object(i["openBlock"])(),Object(i["createBlock"])(N,{key:2,"is-sidebar-opened":Boolean(e.getOpenedSidebar),theme:"dark","site-name":"flagman"},null,8,["is-sidebar-opened"])):Object(i["createCommentVNode"])("",!0),t[17]||(t[17]=Object(i["createTextVNode"])()),Object(i["createVNode"])(V,{slot:"online"})])])],4)])],2)),[[D,{handler:w.onScroll,throttleTime:0}]])}var v=o("c964"),w=o("d0af"),B=o("f3f3"),T=(o("14d9"),o("be92")),y=o("d373"),E=o("0594"),S=o("5d2a"),C=o("8fc3"),N=o("e613"),V=o("1754");const M={class:"top-bar__app-buttons"},D={class:"top-bar__app-button__inner"},L=["src","alt"],A={class:"top-bar__app-button-text"};function P(e,t,o,s,a,n){const r=Object(i["resolveComponent"])("btn");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",M,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(e.systems,o=>(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:o.name,s:"","secondary-transparent":"",class:"top-bar__app-button",onClick:t=>e.handleClick(o)},{default:Object(i["withCtx"])(()=>[Object(i["createElementVNode"])("div",D,[Object(i["createElementVNode"])("img",{class:"top-bar__app-button-icon",src:n.changeImg(o.name),alt:o.name},null,8,L),t[0]||(t[0]=Object(i["createTextVNode"])()),Object(i["createElementVNode"])("div",A,Object(i["toDisplayString"])(e.$t("buttons_app.app_download")),1)])]),_:2},1032,["onClick"]))),128))])}var x=o("5975"),$={name:"top-bar-app-button",components:{Btn:E["default"]},mixins:[x["a"]],props:{gtmElement:{type:String,default:""}},methods:{changeImg(e){return`/img/download-app/${e}_logo_app.svg`}}},I=(o("0acc"),o("6b0d")),W=o.n(I);const z=W()($,[["render",P]]);var G=z,R=o("8c34"),q=o("f489"),H=o("8f12");const U=56,F="auto",J=2;var Y={name:"top-bar",components:{MessengerMicroApp:q["a"],PayoutCancelBtn:R["a"],TopBarAppButton:G,UserTop:Object(i["defineAsyncComponent"])(()=>o.e("preloadChunk-UserTop").then(o.bind(null,"4d92"))),MspDepositButton:Object(i["defineAsyncComponent"])(()=>o.e("chunk-45270cd3").then(o.bind(null,"45d5"))),Btn:E["default"],Icon:S["a"]},mixins:[V["a"],C["a"],N["a"]],data(){return{isShowTopBar:!0,isScrolled:!1,isRequiredShowTopBar:!1,previousCoordinates:-U,topBarRightWidth:F}},computed:Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])({},Object(T["f"])(y["a"].breakpoints,["isMobile","isMobileOrTablet","isDesktop","isDesktopOrLaptop"])),Object(T["f"])(y["a"].cmsConfig,["getDomainWebView","getIsHomePage"])),Object(T["f"])(y["a"].playerCashWait,["getDataWithoutMspInProcessingCount"])),Object(T["f"])(y["a"].player,["isPlayerAuthorized","getLanguageForUrl","getIsNeedCardSelfieNotVerified"])),Object(T["f"])(y["a"].modal,["currentModal","hasOpened"])),Object(T["f"])(y["a"].search,{searchIsOpened:"opened"})),Object(T["f"])(y["a"].messenger,["getIsOpened"])),Object(T["f"])(y["a"].menu,["getOpenedSidebar"])),Object(T["f"])(y["a"].interfaceTranslations,["isTranslationsUpdated"])),Object(T["f"])(y["a"].playerMspPayments,["getPendingDeposit"])),{},{isDepositButtonVisible(){return Boolean(this.getPendingDeposit)&&this.isMobileOrTablet},isShowMessenger(){return this.isPlayerAuthorized&&this.isMobileOrTablet},isPayoutBtnVisible(){return this.isMobileOrTablet&&this.getDataWithoutMspInProcessingCount&&this.isPlayerAuthorized},isAppButtonVisible(){return this.isMobileOrTablet&&!this.isPlayerAuthorized},casinoUrl(){return this.getLanguageForUrl||"/"},hasCashWait(){return!this.isMobileOrTablet&&this.getDataWithoutMspInProcessingCount},isOpenGameInfoModal(){return this.hasOpened&&this.currentModal.name===H["yd"].GAME_INFO},isShowSearch(){return this.isDesktopOrLaptop&&!this.isSportPages},topBarClasses(){const e=this.isShowTopBar||this.isOpenGameInfoModal||this.isSport;return[{"top-bar--reduce":this.hasCashWait,"top-bar--scrolled":this.isScrolled,"top-bar--high-index-sport":this.isTopBarHighIndex,"top-bar--webview":this.getDomainWebView},e?"top-bar--show":"top-bar--hide"]},isTopBarHighIndex(){return this.isSport&&this.getIsOpened},logoSrc(){return this.getDomainWebView&&this.isMobileOrTablet&&!this.isPlayerAuthorized?"/img/logo.svg":this.isMobileOrTablet?"/img/logo-mobile.svg":"/img/logo.svg"}}),watch:{searchIsOpened(e){e&&this.isMobile&&(this.isShowTopBar=!0)},isCasinoPages(){this.resizeHandler()},isTranslationsUpdated(){this.resizeHandler()},isDesktop(){this.resizeHandler()},getIsHomePage:{handler(){this.resizeHandler()},immediate:!0}},created(){this.$bus.on("setting-required-top-bar",this.settingRequiredTopBar),this.$bus.on("show-top-bar",this.showTopBar),window.addEventListener("load",this.resizeHandler)},beforeUnmount(){this.$bus.off("setting-required-top-bar",this.settingRequiredTopBar),this.$bus.off("show-top-bar",this.showTopBar),window.removeEventListener("load",this.resizeHandler)},methods:Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])(Object(B["a"])({},Object(T["e"])(y["a"].search,["openSearch"])),Object(T["e"])(y["a"].modal,["closeModal"])),Object(T["e"])(y["a"].menu,["changeBurger","toggleMenu"])),Object(T["e"])(y["a"].overlay,["removeBodyOverflow"])),Object(T["e"])(y["a"].player,["switchGroup"])),{},{clickLogo(){this.$bus.emit("toggle-filter",null),this.$bus.emit("toggle-game-provider",null),this.removeBodyOverflow(),this.$bus.emit("click-main-logo"),this.currentModal&&this.currentModal.name!==H["yd"].PATCH_PROFILE&&this.closeModal(),this.getIsHomePage&&window.pageYOffset&&setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},300),this.$router.push(this.getLanguageForUrl||"/").catch(()=>({})),this.setDefaultBurgerButtonView()},setDefaultBurgerButtonView(){this.isMobile&&this.changeBurger({state:""})},settingRequiredTopBar(){this.isRequiredShowTopBar=!0,setTimeout(()=>{this.isRequiredShowTopBar=!1},1e3)},onScroll(){if(this.isMobileOrTablet&&(this.forceShowMenu||this.isOpenGameInfoModal))return void(this.isShowTopBar=!0);const e=document.querySelectorAll(".main-wrapper"),t=Object(w["a"])(e,1),o=t[0];if(!o)return;const i=o.getBoundingClientRect().top;this.isScrolled=i<0,this.isRequiredShowTopBar||(this.isShowTopBar=i>=this.previousCoordinates&&this.isMobileOrTablet),this.forceShowMenu=!1,(this.windowWidth!==window.innerWidth&&this.isMobileOrTablet||this.isRequiredShowTopBar)&&(this.isShowTopBar=!0),setTimeout(()=>{this.previousCoordinates=i>=-U?-U:i,this.windowWidth=window.innerWidth},300)},showTopBar(){this.isShowTopBar=!0},handleMenuSportClick(){this.isPlayerAuthorized&&this.switchGroup({add:"sport:visitor"})},resizeHandler(){var e=this;return Object(v["a"])((function*(){if(!e.isDesktop)return void(e.topBarRightWidth=F);yield e.$nextTick();const t=e.$refs,o=t.topBarLeft,i=t.topBar;if(!o||!i)return;const s=i.getBoundingClientRect().width,a=o.getBoundingClientRect().width;a>s/J||(e.topBarRightWidth=a+"px")}))()}})};o("168a");const K=W()(Y,[["render",_]]);t["default"]=K}}]); //# sourceMappingURL=preloadChunk-TopBar.5cbba560.js.map