"use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[9460,4766],{3480:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var s,r,l=n(5439),a=n.n(l),i=n(9411),o=n.n(i),c=n(2549),d=n.n(c),u=n(3621),m=n(5893);function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=o()("div")(s||(s=f(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex: 0 0 21.5em;\n\twidth: 21.5em;\n\theight: 100%;\n\tfont-size: 1em;\n\tposition: relative;\n"]))),y=o()("div")(r||(r=f(["\n\tposition: relative;\n\theight: ",";\n\tpadding: 1em 0.4375em 1em 0.9375em;\n\tborder-radius: 1em;\n\tbackground: var(--mainBackground);\n\tborder: 1px solid;\n\tborder-color: var(--mainLayoutBorderColor);\n"])),(function(e){return e.demo?"34.4375em":"43.1875em"}));function g(e){var t=e.gameName,n=e.logoUrlAddition,s=e.style,r=e.children,l=n||"".concat(t,"/desktop/logo.png"),a="".concat(u.mD,"/images/").concat(l);return(0,m.jsxs)(h,{style:s.gameAside,children:[(0,m.jsx)(d(),{logoImg:a,gameKindName:t,styles:s.logoContainer}),(0,m.jsx)(y,{style:s.gameAsideInner,children:r})]})}g.defaultProps={gameName:"",logoUrlAddition:"",style:{logoContainer:{},logo:{},gameAsideInner:{}},children:null},g.propTypes={gameName:a().string,logoUrlAddition:a().string,style:a().object,children:a().element}},4766:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});var s,r,l=n(5439),a=n.n(l),i=n(9411),o=n.n(i),c=n(5282),d=n.n(c),u=n(3645),m=n.n(u),f=n(829),h=n(5953),y=n(5893);function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var b=o()("div")(s||(s=g(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex: 0 0 21.5em;\n\twidth: 21.5em;\n\theight: 100%;\n\tfont-size: 1em;\n\tposition: relative;\n"]))),p=o()("div")(r||(r=g(["\n\tposition: relative;\n\theight: ",";\n\tpadding: 1em 0.4375em 1em 0.9375em;\n\tborder-radius: 1em;\n\tbackground: var(--mainBackground);\n\tborder: 1px solid;\n\tborder-color: var(--mainLayoutBorderColor);\n"])),(function(e){return e.demo?"34.4375em":"43.1875em"}));function j(e){var t=e.style,n=e.children;return(0,y.jsxs)(b,{style:t.gameAside,children:[(0,y.jsx)(f.Z,{type:"glass",style:t}),(0,y.jsxs)(p,{style:t.gameAsideInner,children:[(0,y.jsx)(h.BonusServiceGlass,{style:t}),(0,y.jsx)(m(),{styles:t}),(0,y.jsx)(d(),{style:t.chatAside}),n]})]})}j.defaultProps={children:null,style:{logoContainer:{},logo:{},gameAsideInner:{}}},j.propTypes={children:a().element,style:a().object}},9460:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var s,r=n(8416),l=n(5694),a=n(9411),i=n.n(a),o=n(6606),c=n(7682),d=n.n(c),u=n(3645),m=n.n(u),f=n(6317),h=n(3480),y=n(4766),g=n(613),b=n(3419),p=n(4687),j=n(3487),x=n(7314),v=n(3351),S=n(914),A=n(4104),k=n(5307),O=n(7291),P=n(829),C=n(9767),N=n(5893);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,r,l,a,i=[],o=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;o=!1}else for(;!(o=(s=l.call(n)).done)&&(i.push(s.value),i.length!==t);o=!0);}catch(e){c=!0,r=e}finally{try{if(!o&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||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 B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return J(g.actions.openPopup({name:e,args:t}))}),[]),Pe=(0,r.useCallback)((function(){re(!se)}),[se]),Ce=(0,r.useCallback)((function(){(0,o.redirectToHomeGalaxsys)({partnerId:C.y_,referer:C.q7})}),[C.y_,C.q7]),Ne=(0,r.useCallback)((function(){te(!0)}),[]),we=(0,r.useCallback)((function(e){switch(re(!1),e){case"home":Ce();break;case"game":break;case"history":fe(),Oe(j.BASE_POPUP_NAMES.GLOBAL_HISTORY);break;case"bonusHistory":he(),Oe(j.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY);break;case"rules":Oe(j.BASE_POPUP_NAMES.RULES);break;case"leaderboard":Oe(j.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY)}}),[C.y_,xe,C.TG]),Be=(0,r.useCallback)((function(){return we(j.BASE_POPUP_NAMES.RULES)}),[]);(0,r.useEffect)((function(){V.current||(V.current=document.getElementsByTagName("body")[0]),ie(se),V.current.style.overflow=se?"hidden":""}),[se]),(0,r.useEffect)((function(){if(!C.xf)return R("GalaxsysFreeze",(function(e){var t=e.isFreezed;de(t)})),function(){G("GalaxsysFreeze")}}),[]);var Le=K&&ve&&Ae&&ee||Se;return(0,N.jsxs)(N.Fragment,{children:[(!Le||ke)&&!Se&&(0,N.jsx)(d(),{isMobile:C.tq,setContentLoaded:$,styles:a.loader}),(0,N.jsxs)(r.Suspense,{fallback:null,children:[Y&&(0,N.jsx)(I,{images:null==Y?void 0:Y.images,videos:null==Y?void 0:Y.videos,onLoaded:Ne}),q&&(0,N.jsx)(S.Z,{configs:q}),(0,N.jsx)(v.ConnectionService,{gameName:B,socketListeners:i}),Le&&(0,N.jsxs)(f.default,{style:a,className:T,children:[C.tq&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(A.Z,{style:a}),(0,N.jsx)(x.Z,{style:a}),(0,N.jsx)(m(),{styles:a}),(0,N.jsx)("div",{className:ae?"blurred":"",children:(0,N.jsx)(r.Suspense,{fallback:null,children:(0,N.jsx)(H,{openTab:we,style:a,menuOpened:se,selectedTab:ge})})}),(0,N.jsx)("div",{style:(C.xJ,{}),children:(0,N.jsx)(P.Z,{style:a,openMenu:Pe,isToggleBalance:Z})})]}),(0,N.jsx)(r.Suspense,{fallback:null,children:!C.tq&&t&&(0,N.jsx)(h.default,{logoUrlAddition:X,gameName:B,style:a,children:(0,N.jsx)(M,{children:(0,N.jsx)(t,{style:a})})})}),se&&(0,N.jsx)(r.Suspense,{children:(0,N.jsx)(z,{styles:a.backdrop,onClick:Pe})}),(0,N.jsx)("div",{className:ge&&"game"!==ge?"hide":"",style:a.childrenContainer,children:c}),(0,N.jsx)(r.Suspense,{fallback:null,children:!C.tq&&n&&(0,N.jsx)(y.default,{style:a,children:(0,N.jsx)(M,{children:(0,N.jsx)(n,{style:a})})})}),C.tq&&F&&s?(0,N.jsx)(M,{style:a.sliderViewContainer,children:(0,N.jsx)(r.Suspense,{fallback:null,children:(0,N.jsx)(s,{style:a})})}):(0,N.jsxs)(N.Fragment,{children:["bets"===ge||"statistics"===ge?(0,N.jsx)(M,{style:a.sliderViewContainer,children:(0,N.jsx)(s,{style:a,selectedTab:ge})}):null,(0,N.jsxs)(r.Suspense,{fallback:null,children:["settings"===ge&&(0,N.jsx)(E,{haveCustomization:"blackJack"===B,resources:ye,sound:null==pe?void 0:pe.isOn,music:null==je?void 0:je.isOn,setSound:S.X.setOnSound,setMusic:S.X.setOnMusic,openRules:Be,styles:a.settings,openPopup:Oe}),C.tq&&!F&&(0,N.jsx)(_,{handleTabChange:function(e){return J(g.actions.setMobileSelectedTab(e))},selectedTab:ge,isIOSWithHomeIndicator:!0,styles:a.mobileMenu,currentGameName:C.GZ,resources:ye})]})]})]}),(0,N.jsx)(k.Z,{style:a,mappedGlobalHistory:U,getHashCode:me,getBetHistory:fe,getBonusHistory:he,mappedResources:L}),(0,N.jsx)(O.Z,{}),ce&&(0,N.jsx)(z,{})]})]})}}}]);