"use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[1260,6750],{1519:(e,s,t)=>{t.r(s),t.d(s,{default:()=>d});var n=t(3444),l=t.n(n),r=t(892),a=t.n(r),i=t(7749),o=t(661),c=t(1259),u=t(4848);function d(e){var s=e.gameName,t=e.logoUrlAddition,n=e.style,l=e.children,r=t||"".concat(s,"/desktop/logo.webp"),d="".concat(i.c_,"/images/").concat(r);return(0,u.jsxs)(o.A,{style:n,children:[(0,u.jsx)(a(),{logoImg:d,gameKindName:s,styles:n.logoContainer}),(0,u.jsx)(c.A,{style:n,children:l})]})}d.defaultProps={gameName:"",logoUrlAddition:"",style:{logoContainer:{},logo:{},gameAsideInner:{}},children:null},d.propTypes={gameName:l().string,logoUrlAddition:l().string,style:l().object,children:l().element}},6750:(e,s,t)=>{t.r(s),t.d(s,{default:()=>m});var n=t(3444),l=t.n(n),r=t(6907),a=t.n(r),i=t(8497),o=t.n(i),c=t(1690),u=t(3723),d=t(661),h=t(1259),y=t(4848);function m(e){var s=e.style,t=e.children;return(0,y.jsxs)(d.A,{style:s,children:[(0,y.jsx)(c.A,{type:"glass",style:s}),(0,y.jsxs)(h.A,{style:s,children:[(0,y.jsx)(u.BonusServiceGlass,{style:s}),(0,y.jsx)(o(),{styles:s}),(0,y.jsx)(a(),{style:s.chatAside}),t]})]})}m.defaultProps={children:null,style:{logoContainer:{},logo:{},gameAsideInner:{}}},m.propTypes={children:l().element,style:l().object}},1260:(e,s,t)=>{t.r(s),t.d(s,{default:()=>G});var n=t(4914),l=t(678),r=t(8874),a=t.n(r),i=t(6295),o=t(1931),c=t.n(o),u=t(8497),d=t.n(u),h=t(4825),y=t(1519),m=t(6750),f=t(6770),b=t(6947),g=t(1744),j=t(8517),p=t(7529),x=t(7438),S=t(463),A=t(2051),v=t(851),k=t(2593),C=t(3745),N=t(1690),P=t(6337),M=t(4848);function O(e,s){return function(e){if(Array.isArray(e))return e}(e)||function(e,s){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,l,r,a,i=[],o=!0,c=!1;try{if(r=(t=t.call(e)).next,0===s){if(Object(t)!==t)return;o=!1}else for(;!(o=(n=r.call(t)).done)&&(i.push(n.value),i.length!==s);o=!0);}catch(e){c=!0,l=e}finally{try{if(!o&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw l}}return i}}(e,s)||function(e,s){if(e){if("string"==typeof e)return w(e,s);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,s):void 0}}(e,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,s){(null==s||s>e.length)&&(s=e.length);for(var t=0,n=new Array(s);t1&&void 0!==arguments[1]?arguments[1]:{};return q(f.actions.openPopup({name:e,args:s}))}),[]),Pe=(0,n.useCallback)((function(){ae(!re)}),[re]),Me=(0,n.useCallback)((function(){(0,i.redirectToHomeGalaxsys)({partnerId:P.partnerId,referer:P.referer})}),[P.partnerId,P.referer]),Oe=(0,n.useCallback)((function(){ne(!0)}),[]),we=(0,n.useCallback)((function(e){switch(ae(!1),e){case"home":Me();break;case"game":break;case"history":fe(),Ne(j.BASE_POPUP_NAMES.GLOBAL_HISTORY);break;case"bonusHistory":(0,k.W)(),Ne(j.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY);break;case"rules":Ne(j.BASE_POPUP_NAMES.RULES);break;case"leaderboard":Ne(j.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY)}}),[P.partnerId,Se,P.culture]),Le=(0,n.useCallback)((function(){return we(j.BASE_POPUP_NAMES.RULES)}),[]);(0,n.useEffect)((function(){Q.current||(Q.current=document.getElementsByTagName("body")[0]),ce(re),Q.current.style.overflow=re?"hidden":""}),[re]),(0,n.useEffect)((function(){if(!P.isDemo)return R("GalaxsysFreeze",(function(e){var s=e.isFreezed;he(s)})),function(){H("GalaxsysFreeze")}}),[]);var Ee=Z&&Ae&&ke&&te||ve;return(0,M.jsxs)(M.Fragment,{children:[(!Ee||Ce)&&!ve&&(0,M.jsx)(c(),{isMobile:P.isMobile,setContentLoaded:ee,styles:a.loader,isNinjaLoader:$}),(0,M.jsxs)(n.Suspense,{fallback:null,children:[J&&(0,M.jsx)(I,{images:null==J?void 0:J.images,videos:null==J?void 0:J.videos,onLoaded:Oe}),D&&(0,M.jsx)(S.A,{configs:D}),(0,M.jsx)(x.ConnectionService,{gameName:U,socketListeners:o}),Ee&&(0,M.jsxs)(h.default,{style:a,className:z,children:[P.isMobile&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(A.A,{style:a}),(0,M.jsx)(p.A,{style:a}),(0,M.jsx)(d(),{styles:a}),(0,M.jsx)("div",{className:oe?"blurred":"",children:(0,M.jsx)(n.Suspense,{fallback:null,children:(0,M.jsx)(_,{openTab:we,style:a,menuOpened:re,selectedTab:ge})})}),(0,M.jsx)("div",{style:(P.mode,{}),children:(0,M.jsx)(N.A,{style:a,openMenu:Pe,isToggleBalance:W})})]}),(0,M.jsx)(n.Suspense,{fallback:null,children:!P.isMobile&&s&&(0,M.jsx)(y.default,{logoUrlAddition:K,gameName:U,style:a,children:(0,M.jsx)(B,{style:a.sliderViewContainer,children:(0,M.jsx)(s,{style:a})})})}),re&&(0,M.jsx)(n.Suspense,{children:(0,M.jsx)(T,{styles:a.backdrop,onClick:Pe})}),(0,M.jsx)("div",{className:ge&&"game"!==ge?"hide":"",style:a.childrenContainer,children:u}),(0,M.jsx)(n.Suspense,{fallback:null,children:!P.isMobile&&t&&(0,M.jsx)(m.default,{style:a,children:(0,M.jsx)(B,{style:a.sliderViewContainer,children:(0,M.jsx)(t,{style:a})})})}),P.isMobile&&Y&&r?(0,M.jsx)(B,{style:a.sliderViewContainer,children:(0,M.jsx)(n.Suspense,{fallback:null,children:(0,M.jsx)(r,{style:a})})}):(0,M.jsxs)(M.Fragment,{children:["bets"===ge||"statistics"===ge?(0,M.jsx)(B,{style:a.sliderViewContainer,children:(0,M.jsx)(r,{style:a,selectedTab:ge})}):null,(0,M.jsxs)(n.Suspense,{fallback:null,children:["settings"===ge&&(0,M.jsx)(L,{haveCustomization:"blackJack"===U,resources:be,sound:null==pe?void 0:pe.isOn,music:null==xe?void 0:xe.isOn,setSound:S.W.setOnSound,setMusic:S.W.setOnMusic,openRules:Le,styles:a.settings,openPopup:Ne}),P.isMobile&&!Y&&(0,M.jsx)(E,{theme:"glass",handleTabChange:function(e){return q(f.actions.setMobileSelectedTab(e))},selectedTab:ge,isIOSWithHomeIndicator:!0,styles:a.mobileMenu,currentGameName:P.gameKindName,resources:be})]})]})]}),(0,M.jsx)(v.A,{style:a,mappedGlobalHistory:F,getHashCode:me,getBetHistory:fe,mappedResources:G}),(0,M.jsx)(C.A,{}),de&&(0,M.jsx)(T,{})]})]})}}}]);