"use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[3798,3723],{661:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(3444),r=t.n(o),a=t(8874),l=t.n(a),i=t(4848),c=l()("div").withConfig({componentId:"sc-c8gdi6-0"})(["display:flex;flex-direction:column;flex:0 0 21.5em;width:21.5em;height:100%;font-size:1em;position:relative;"]);function s(e){var n=e.style,t=e.children;return(0,i.jsx)(c,{style:n.gameAside,children:t})}s.defaultProps={children:null,style:{}},s.propTypes={children:r().element,style:r().object}},1259:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(3444),r=t.n(o),a=t(8874),l=t.n(a),i=t(4848),c=l()("div").withConfig({componentId:"sc-12omhix-0"})(["position:relative;height:43.1875em;padding:1em 0.4375em 1em 0.9375em;border-radius:1em;background:var(--mainBackground);border:1px solid;border-color:var(--mainLayoutBorderColor);"]);function s(e){var n=e.style,t=e.children;return(0,i.jsx)(c,{style:n.gameAsideInner,children:t})}s.defaultProps={children:null,style:{}},s.propTypes={children:r().element,style:r().object}},7529:(e,n,t)=>{t.d(n,{A:()=>P});var o=t(4914),r=t(678),a=t(3444),l=t.n(a),i=t(1703),c=t.n(i),s=t(6295),u=t(8517),d=t(5012),f=t(5218),p=t(6337),m=t(4848),b=(0,o.lazy)((function(){return t.e(1045).then(t.t.bind(t,1045,23))})),y=(0,o.lazy)((function(){return t.e(4615).then(t.t.bind(t,4615,23))}));function S(e){var n,t,a,l=e.style,i=e.localStorageEnabled,S=(0,r.useDispatch)(),P=(0,f.shallowSelector)(d.selectPopups),g=(0,f.shallowSelector)(f.selectBonuses),h=(0,r.useSelector)(f.selectHostName),v=(0,f.shallowSelector)(f.selectResources),_=g.list,A=g.enabled;(0,o.useEffect)((function(){var e=[];g.list.forEach((function(n){c()&&"true"!==c().getItem("bonus_id_".concat(n.id))&&(c()&&c().setItem("bonus_id_".concat(n.id),!0),p.isMobile?S(f.actions.openPopup({name:"".concat(u.BASE_POPUP_NAMES.BONUS_ASIDE,"_").concat(n.id)})):e.push(n))})),e.length&&!p.isMobile&&S(f.actions.openPopup({name:u.BASE_POPUP_NAMES.BONUS_ASIDE,args:{bonuses:e}}))}),[_]),(0,o.useEffect)((function(){if(_.length>0){var e=!!i&&c()&&"true"===c().getItem("useBonus_hook_enabled_".concat(p.gameKindName.toLowerCase()));E(e)}}),[_.length]),(0,o.useEffect)((function(){0===_.length&&A&&(c().setItem("useBonus_hook_enabled_".concat(p.gameKindName.toLowerCase()),!1),E(!1))}),[_]);var E=(0,o.useCallback)((function(e){i&&c()&&c().setItem("useBonus_hook_enabled_".concat(p.gameKindName.toLowerCase()),e),S(f.actions.setBonusEnabled(e))}),[g]),O=(0,o.useCallback)((function(e){return S(f.actions.closePopup({name:e}))}),[]),N=(0,o.useCallback)((function(){(0,s.redirectToRealGameGalaxsys)({playerId:p.playerId,partnerId:p.partnerId,gameKindName:p.gameKindName,referer:p.referer,hostName:h})}),[p.playerId,p.partnerId,p.gameKindName,p.referer,h]);return(0,m.jsx)(o.Suspense,{fallback:null,children:p.isMobile?null==g||null===(n=g.list)||void 0===n?void 0:n.map((function(e){var n;return null!==(n=P["".concat(u.BASE_POPUP_NAMES.BONUS_ASIDE,"_").concat(e.id)])&&void 0!==n&&n.open?(0,m.jsx)(b,{iconColor:"rgba(var(--white),0.6)",currencyId:e.currencyId,culture:p.culture,bonus:e,resources:v,onClose:function(){return O("".concat(u.BASE_POPUP_NAMES.BONUS_ASIDE,"_").concat(e.id))},styles:l.bonusNotification,gameKindName:p.gameKindName},e.id):null})):null!==(t=P[u.BASE_POPUP_NAMES.BONUS_ASIDE])&&void 0!==t&&t.open?(0,m.jsx)(y,{iconColor:"rgba(var(--white),0.8)",culture:p.culture,bonuses:null===(a=P[u.BASE_POPUP_NAMES.BONUS_ASIDE])||void 0===a||null===(a=a.data)||void 0===a?void 0:a.bonuses,resources:v,onClose:function(){return O(u.BASE_POPUP_NAMES.BONUS_ASIDE)},onUseClick:function(){E(!0),p.isDemo?N():O(u.BASE_POPUP_NAMES.BONUS_ASIDE)},styles:l.bonusAside,gameKindName:p.gameKindName}):null})}S.defaultProps={style:{},localStorageEnabled:!0},S.propTypes={style:l().object,localStorageEnabled:l().bool};const P=(0,o.memo)(S)},1585:(e,n,t)=>{t.d(n,{A:()=>_});var o=t(3444),r=t.n(o),a=t(4914),l=t(678),i=t(1703),c=t.n(i),s=t(6295),u=t(8517),d=t(5012),f=t(5218),p=t(6337),m=t(4848);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function S(e){for(var n=1;n0){var e=!!i&&c()&&"true"===c().getItem("useBonus_hook_enabled_".concat(E));I(e)}}),[O.length]),(0,a.useEffect)((function(){0===O.length&&N&&(c().setItem("useBonus_hook_enabled_".concat(E),!1),I(!1))}),[O]);var I=(0,a.useCallback)((function(e){v.autoSwitchDisabled?b(f.actions.setAutoSwitchBonusDisabled(!1)):(i&&c()&&c().setItem("useBonus_hook_enabled_".concat(E),e),b(f.actions.setBonusEnabled(e)))}),[v]),B=(0,a.useCallback)((function(){(0,s.redirectToRealGameGalaxsys)({playerId:p.playerId,partnerId:p.partnerId,gameKindName:p.gameKindName,referer:p.referer,hostName:A})}),[p.playerId,p.partnerId,p.gameKindName,p.referer,A]),C=(0,a.useCallback)((function(e){return b(f.actions.closePopup({name:e}))}),[]);return(0,m.jsx)(a.Suspense,{fallback:null,children:p.isMobile?null==v||null===(n=v.list)||void 0===n?void 0:n.map((function(e){var n;return null!==(n=y["".concat(u.BASE_POPUP_NAMES.BONUS_ASIDE,"_").concat(e.id)])&&void 0!==n&&n.open?(0,m.jsx)(P,{iconColor:"rgba(var(--white),0.6)",currencyId:e.currencyId,culture:p.culture,bonus:e,resources:_,onClose:function(){return C("".concat(u.BASE_POPUP_NAMES.BONUS_ASIDE,"_").concat(e.id))},styles:r.bonusNotification,gameKindName:p.gameKindName},e.id):null})):null!==(t=y[u.BASE_POPUP_NAMES.BONUS_ASIDE])&&void 0!==t&&t.open?(0,m.jsx)(h,S(S({},r.gameBoxesPaths),{},{styles:r.bonusAsideBox,children:(0,m.jsx)(g,{iconColor:"rgba(var(--white),0.8)",culture:p.culture,bonuses:null===(o=y[u.BASE_POPUP_NAMES.BONUS_ASIDE])||void 0===o||null===(o=o.data)||void 0===o?void 0:o.bonuses,resources:_,onClose:function(){return C(u.BASE_POPUP_NAMES.BONUS_ASIDE)},onUseClick:function(){v.disabledSwitcher||(I(!0),p.isDemo?B():C(u.BASE_POPUP_NAMES.BONUS_ASIDE))},styles:r.bonusAside,gameKindName:p.gameKindName})})):null})}v.defaultProps={style:{},localStorageEnabled:!0},v.propTypes={style:r().object,localStorageEnabled:r().bool};const _=(0,a.memo)(v)},3723:(e,n,t)=>{t.r(n),t.d(n,{BonusServiceGlass:()=>r.A,BonusServiceOrnament:()=>o.A});var o=t(1585),r=t(7529)},2051:(e,n,t)=>{t.d(n,{A:()=>P});var o,r=t(3444),a=t.n(r),l=t(4914),i=t(678),c=t(6295),s=t(5094),u=t.n(s),d=t(3672),f=t.n(d),p=t(5218),m=t(4848),b=(0,c.getIsMobile)(),y=((0,c.getParamsFromUrl)()||{}).culture;function S(e){var n=e.style,t=e.second,r=e.maxLength,a=(0,i.useDispatch)(),c=(0,i.useSelector)(p.selectNotifications),s=(0,l.useCallback)((function(){return a(p.actions.removeNotification())}),[]),d=b&&!u()();return(0,l.useEffect)((function(){a(p.actions.initializeConfigs({second:t,maxLength:r}))}),[t,r]),(0,l.useEffect)((function(){return c.length&&0!==t&&(o=setTimeout((function(){s()}),1e3*(t+.4))),function(){return clearTimeout(o)}}),[c]),b?c.length>0&&(0,m.jsx)(f(),{culture:y,isMobile:!0,isLandscape:d,style:n.notificationContainer,notificationList:c,removeNotification:s,closeTime:t,isSmall:!0}):null}S.defaultProps={style:{},second:1.7,maxLength:b?2:5},S.propTypes={style:a().object,second:a().number,maxLength:a().number};const P=(0,l.memo)(S)},1690:(e,n,t)=>{t.d(n,{A:()=>j});var o=t(4914),r=t(678),a=t(3444),l=t.n(a),i=t(989),c=t.n(i),s=t(3717),u=t.n(s),d=t(1703),f=t.n(d),p=t(8517),m=t(2051),b=t(5869),y=t.n(b),S=t(6295),P=t(5218),g=t(6337);function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{};return t(P.actions.openPopup({name:e,args:n}))}),[]),_=(0,o.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(P.actions.closePopup({name:e,args:n}))}),[]),A=(0,o.useCallback)((function(e){return t(P.actions.closeAllPopupsExcept({names:e}))}),[]),E=(0,o.useCallback)((function(){(0,S.redirectToRealGameGalaxsys)({playerId:g.playerId,partnerId:g.partnerId,gameKindName:g.gameKindName,referer:g.referer,hostName:m})}),[g.playerId,g.partnerId,g.gameKindName,g.referer,m]),O={demo:g.isDemo,balance:u,currencyId:d,culture:g.culture,gameId:f,bonuses:c,selectedBonus:null==c?void 0:c.selected,ping:s,redirectToGame:E,resources:l,notifications:i};return{removeNotification:b,openPopup:v,closePopup:_,bonuses:c,isMobile:g.isMobile,mode:g.mode,props:O,isToggleBalance:p,onCloseAllPopupExcept:A}};var _=t(4848);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function O(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,o=new Array(n);t0&&(null==G||!G.selected)&&(E(P.actions.openPopup({name:p.BASE_POPUP_NAMES.CASH_BACK_INTRO_POPUP})),f().setItem("cashbackIntroShowed",!0)),i){if(U)return;y(!0),0===D||100===D?y(!1):D<100&&setTimeout((function(){y(!1)}),4e3)}else s(!0)}),[i,D,U]);var x=v(),K=x.removeNotification,T=x.openPopup,L=x.closePopup,G=x.bonuses,R=x.isMobile,H=x.mode,z=x.props,J=x.isToggleBalance,F=(0,o.useMemo)((function(){return-1===C.indexOf(g.gameKindName)}),[g.gameKindName]),$=(0,o.useCallback)((function(){T(p.BASE_POPUP_NAMES.CASH_BACK)}),[]),Y=(0,o.useCallback)((function(){null!=M&&M.chatPopupOpened?L(p.BASE_POPUP_NAMES.CHAT_POPUP):T(p.BASE_POPUP_NAMES.CHAT_POPUP)}),[M]),q=(0,o.useCallback)((function(){T(p.BASE_POPUP_NAMES.CHAT_REGISTRY_POPUP)}),[]);if((0,o.useEffect)((function(){var e="true"===(null===f()||void 0===f()?void 0:f().getItem("GalaxsysJackpot"));A(e)}),[]),R)return(0,_.jsx)(B,O({isGlow:b,cashBackInfo:I,openCashBackPopup:$,openChatRegistryPopup:q,styles:n.gameHeader,isShort:!0,isToggleBalance:J,openMenu:a,openPopup:T,mode:H,selectedBonus:null==G?void 0:G.selected,activeLeaderBoardId:w,chatConfigs:M,showRelumJackpot:h,hideMenu:k},z));var Q="glass"===t?c():u(),V=(0,o.useCallback)((function(){return T(p.BASE_POPUP_NAMES.BONUS_LIST)}),[]),W=(0,o.useCallback)((function(){T(p.BASE_POPUP_NAMES.MAIN_MENU)})),X=(0,o.useCallback)((function(){return T(p.BASE_POPUP_NAMES.LEADER_BOARD,{leaderBoardId:w})}),[w]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.A,{style:n}),(0,_.jsx)(Q,O({isGlow:b,cashBackInfo:I,openCashBackPopup:$,openMainMenu:W,openBonusListPopup:V,openLeaderboardPopup:X,onChatIconClick:Y,openChatRegistryPopup:q,removeNotification:K,notificationStyles:n.notificationContainer,selectedBonus:null==G?void 0:G.selected,isToggleBalance:J,styles:n.gameHeader,isLeaderBoard:j,showNotification:F,chatConfigs:M,showRelumJackpot:h,hideMenu:k},z))]})}w.defaultProps={style:{},openMenu:function(){},type:"ornament"},w.propTypes={style:l().object,openMenu:l().func,type:l().oneOf(["ornament","glass"])};const j=(0,o.memo)(w)}}]);