/*! For license information please see 5012.3de1c6e5de49777af546.js.LICENSE.txt */ "use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[5012,1663],{6866:(e,n,o)=>{o.r(n),o.d(n,{default:()=>f});var t=o(4914),l=o(678),s=o(5024),i=o.n(s),u=o(4212),r=o.n(u),a=o(8124),c=o.n(a),d=o(1703),S=o.n(d),P=o(6025);function A(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var t,l,s,i,u=[],r=!0,a=!1;try{if(s=(o=o.call(e)).next,0===n){if(Object(o)!==o)return;r=!1}else for(;!(r=(t=s.call(o)).done)&&(u.push(t.value),u.length!==n);r=!0);}catch(e){a=!0,l=e}finally{try{if(!r&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(a)throw l}}return u}}(e,n)||function(e,n){if(e){if("string"==typeof e)return _(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_(e,n):void 0}}(e,n)||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 _(e,n){(null==n||n>e.length)&&(n=e.length);for(var o=0,t=new Array(n);o0&&void 0!==arguments[0]?arguments[0]:{},n=e.soundUrl,o=void 0===n?"":n,s=e.soundObj,u=void 0===s?{}:s,a=e.musicUrl,d=void 0===a?"":a,_=e.musicObj,f=void 0===_?{}:_,p=r()(),v=(0,l.useSelector)(P.cd),y=A((0,t.useState)(!!o&&(null===(null===S()||void 0===S()?void 0:S().getItem(E))||"true"===(null===S()||void 0===S()?void 0:S().getItem(E)))),2),b=y[0],B=y[1],h=A((0,t.useState)(!!d&&(null===(null===S()||void 0===S()?void 0:S().getItem(O))||"true"===(null===S()||void 0===S()?void 0:S().getItem(O)))),2),m=h[0],U=h[1],M=A(i()(!b,o,u),3),N=M[0],C=M[1],R=M[2],H=A(i()(!m,d,f),3),g=H[0],L=H[1],j=H[2];(0,t.useEffect)((function(){null===S()||void 0===S()||S().setItem(E,p?N&&b:null===S()||void 0===S()?void 0:S().getItem(E))}),[b,N]),(0,t.useEffect)((function(){null===S()||void 0===S()||S().setItem(O,p?g&&m:null===S()||void 0===S()?void 0:S().getItem(O))}),[m,g]),c()((function(){p?(B("true"===(null===S()||void 0===S()?void 0:S().getItem(E))),U("true"===(null===S()||void 0===S()?void 0:S().getItem(O))),"true"===(null===S()||void 0===S()?void 0:S().getItem(O))&&L("background")):(B(!1),U(!1))}),[p]);var x=(0,t.useMemo)((function(){return{isLoaded:N,isOn:b,play:C,stop:R,setOn:o?B:function(){}}}),[N,b,C,R,B]),I=(0,t.useMemo)((function(){return{isLoaded:g,isOn:m,play:L,stop:j,setOn:d?U:function(){}}}),[g,m,L,j,U]);return(0,t.useEffect)((function(){v||!m&&!b||(o&&B(!0),d&&U(!0))}),[v]),{sound:x,music:I}}},2593:(e,n,o)=>{o.d(n,{W:()=>s});var t=o(7438),l=o(8718),s=function(){(0,t.requestFeaturesToServer)({name:l.O.BonusHistory})}},851:(e,n,o)=>{o.d(n,{A:()=>G});var t=o(3444),l=o.n(t),s=o(4914),i=o(678),u=o(1703),r=o.n(u),a=o(1644),c=o.n(a),d=o(7131),S=o.n(d),P=o(8516),A=o.n(P),_=o(7791),E=o.n(_),O=o(3679),f=o(5435),p=o.n(f),v=o(6907),y=o.n(v),b=o(8517),B=o(6024),h=o(5218),m=o(6337),U=o(7311),M=o(4848);function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var o=0,t=new Array(n);o{o.d(n,{A:()=>V});var t=o(3444),l=o.n(t),s=o(4914),i=o(678),u=o(1703),r=o.n(u),a=o(7131),c=o.n(a),d=o(1644),S=o.n(d),P=o(8516),A=o.n(P),_=o(2367),E=o.n(_),O=o(375),f=o.n(O),p=o(3679),v=o(5435),y=o.n(v),b=o(6907),B=o.n(b),h=o(4889),m=o.n(h),U=o(8517),M=o(5218),N=o(6337),C=o(7311),R=o(4848);function H(e){return H="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},H(e)}function g(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,t)}return o}function L(e){for(var n=1;ne.length)&&(n=e.length);for(var o=0,t=new Array(n);o{o.r(n),o.d(n,{PopupServiceGlass:()=>l.A,PopupServiceOrnament:()=>t.A,actions:()=>s.o1,selectPopups:()=>s.Io});var t=o(5067),l=o(851),s=o(6024)},463:(e,n,o)=>{o.d(n,{A:()=>v,W:()=>f});var t=o(3444),l=o.n(t),s=o(4914),i=o(678),u=o(1703),r=o.n(u),a=o(5218),c=o(6866),d=o(6337);function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var o=0,t=new Array(n);o{o.r(n),o.d(n,{SettingsService:()=>t.A,settings:()=>t.W});var t=o(463)},7311:(e,n,o)=>{o.d(n,{A:()=>O});var t=o(3444),l=o.n(t),s=o(4914),i=o(678),u=o(1703),r=o.n(u),a=o(5218),c=o(6337),d=o(8517),S=o(1663),P=o(2593),A=o(4848),_=(0,s.lazy)((function(){return o.e(6451).then(o.t.bind(o,6451,23))})),E=function(e){var n=e.style,o=e.getBetHistory,t=e.menuRef,l=(0,i.useDispatch)(),u=(0,a.shallowSelector)(a.selectPartnerUIConfig),E=u.hideHistory,O=u.hideLeaderboard,f=(0,i.useSelector)(a.selectGameTypeNames),p=(0,a.shallowSelector)(a.selectResources),v=(0,s.useCallback)((function(e){return l(a.actions.closePopupsList({names:e}))}),[]),y=(0,a.shallowSelector)(a.selectSettings),b=y.sound,B=y.music,h=y.isAnimate,m=(0,i.useSelector)(a.selectAnimationToggle),U=(0,i.useSelector)(a.selectWithSeparatedSounds),M=(0,s.useCallback)((function(e,n){l(a.actions.openPopup({name:e,args:n}))}),[]),N=(0,s.useCallback)((function(e){l(a.actions.closePopup({name:e}))}),[]),C=(0,s.useCallback)((function(){M(d.BASE_POPUP_NAMES.RULES),v([d.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY,d.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY,d.BASE_POPUP_NAMES.GLOBAL_HISTORY])}),[]),R=(0,s.useCallback)((function(){var e=B.isOn||b.isOn;S.settings.setOnSound(!e),S.settings.setOnMusic(!e),b.isLoaded&&(null===r()||void 0===r()||r().setItem("isSoundOn",e)),B.isLoaded&&(null===r()||void 0===r()||r().setItem("isMusicOn",e))}),[B,b]),H=(0,s.useCallback)((function(){var e=!h;l(a.actions.changeIsAnimate(e)),null===r()||void 0===r()||r().setItem("isAnimationOn",e)}),[h]),g=(0,s.useCallback)((function(){v([d.BASE_POPUP_NAMES.MAIN_MENU,d.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY,d.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY,d.BASE_POPUP_NAMES.CHECK_HASH_CODE,d.BASE_POPUP_NAMES.ABOUT_HASH_CODE,d.BASE_POPUP_NAMES.RULES,d.BASE_POPUP_NAMES.GLOBAL_HISTORY])}),[]),L=(0,s.useCallback)((function(){o(),v([d.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY,d.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY,d.BASE_POPUP_NAMES.RULES]),M(d.BASE_POPUP_NAMES.GLOBAL_HISTORY)}),[]),j=(0,s.useCallback)((function(){(0,P.W)(),v([d.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY,d.BASE_POPUP_NAMES.CHECK_HASH_CODE,d.BASE_POPUP_NAMES.ABOUT_HASH_CODE,d.BASE_POPUP_NAMES.GLOBAL_HISTORY,d.BASE_POPUP_NAMES.RULES]),M(d.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY)}),[]),x=(0,s.useCallback)((function(){v([d.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY,d.BASE_POPUP_NAMES.CHECK_HASH_CODE,d.BASE_POPUP_NAMES.ABOUT_HASH_CODE,d.BASE_POPUP_NAMES.GLOBAL_HISTORY,d.BASE_POPUP_NAMES.RULES]),M(d.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY)}),[]);return(0,A.jsx)(_,{menuRef:t,onCloseMainMenu:g,onOpenWebGlobalHistory:L,onOpenWebGlobalBonusHistory:j,onOpenLeaderboardHistory:x,showHistory:!E&&!!Number(c.playerId),showLeaderboard:!O&&!!Number(c.playerId),resources:p,openPopup:M,closePopup:N,currentGameName:null===c.gameKindName||void 0===c.gameKindName?void 0:c.gameKindName.toLowerCase(),popupNames:d.BASE_POPUP_NAMES,similarGames:f,animationToggle:m,styles:n.mainMenu,handleSoundsClick:R,handleSoundClick:function(){S.settings.setOnSound(!b.isOn),null===r()||void 0===r()||r().setItem("isSoundOn",b.isOn)},handleMusicClick:function(){S.settings.setOnMusic(!B.isOn),null===r()||void 0===r()||r().setItem("isMusicOn",B.isOn)},handleAnimationOnClick:H,isAnimationOn:h,openRulesPopup:C,sound:b,music:B,withSeparatedSounds:U})};E.defaultProps={menuRef:null,style:{},getBetHistory:function(){}},E.propTypes={menuRef:l().node,style:l().object,getBetHistory:l().func};const O=(0,s.memo)(E)},1020:(e,n,o)=>{var t=o(4914),l=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,o){var t,s={},a=null,c=null;for(t in void 0!==o&&(a=""+o),void 0!==n.key&&(a=""+n.key),void 0!==n.ref&&(c=n.ref),n)i.call(n,t)&&!r.hasOwnProperty(t)&&(s[t]=n[t]);if(e&&e.defaultProps)for(t in n=e.defaultProps)void 0===s[t]&&(s[t]=n[t]);return{$$typeof:l,type:e,key:a,ref:c,props:s,_owner:u.current}}n.Fragment=s,n.jsx=a,n.jsxs=a},4848:(e,n,o)=>{e.exports=o(1020)}}]);