(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4187],{16742:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/game/[gameKey]",function(){return n(13907)}])},13907:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return iR},default:function(){return iB}});var i,a,r,o,s,l,c,d,u=n(74512),m=n(32735),p=n(56434),g=n(82835),h=n(75199),x=n(43857),f=n(10608),w=n(73439),v=n(56817),C=n(16092);(i=s||(s={})).games="__games",i.common="__common",i.shared="__shared";var b=n(10310);let y=(0,f.ZP)(b.H1).withConfig({componentId:"sc-83a2eebc-0"})(["margin-bottom:16px;"]),j=(0,f.ZP)(b.P).withConfig({componentId:"sc-83a2eebc-1"})([""]),k=f.ZP.div.withConfig({componentId:"sc-83a2eebc-2"})(["margin:32px 0 4px;padding:0 4px;width:100%;display:flex;justify-content:center;& > *{&:first-child{margin-right:16px;}&:last-child{margin-right:0;}}"]);var _=e=>{let{onCancel:t,customTitle:n,customText:i,customOkButton:a,contactSecondButton:r}=e,[o]=(0,C.$G)(s.games),[l,c]=(0,m.useState)(!0),d=(0,m.useContext)(f.Ni),p=()=>{c(!1),t&&t()},g=o("modalCannotPlay.title"),b=o("modalCannotPlay.text");return(0,u.jsxs)(w.Z,{handleClose:p,isOpen:l,"data-testid":v.Y.game_navigation.modal_cannot_play,background:d.gameDetail?.modals?.background,children:[(0,u.jsx)(y,{"data-testid":v.Y.game_navigation.modal_cannot_play_title,children:n??g}),(0,u.jsx)(j,{"data-testid":v.Y.game_navigation.modal_cannot_play_text,children:i??b}),(0,u.jsxs)(k,{children:[a??(0,u.jsx)(x.ZP,{variant:"primary",href:h.default.profile.index,fullWidth:!0,"data-testid":v.Y.game_navigation.profile_button,children:o("modalCannotPlay.toProfile")}),r?(0,u.jsx)(x.ZP,{variant:"ghost",href:h.default.contact,fullWidth:!0,children:"Kontakty"}):(0,u.jsx)(x.Co,{variant:"ghost",onClick:p,fullWidth:!0,"data-testid":v.Y.game_navigation.demo_button,children:o("modalCannotPlay.toDemo")})]})]})},E=()=>{let[e]=(0,C.$G)(s.games);return(0,u.jsxs)(w.Z,{handleClose:void 0,isOpen:!0,children:[(0,u.jsx)(y,{children:e("modalRVO.title")}),(0,u.jsx)(j,{children:e("modalRVO.text")}),(0,u.jsx)(k,{children:(0,u.jsx)(x.ZP,{variant:"primary",href:h.default.index,children:e("buttons.ok")})})]})},I=n(35837),P=()=>{let[e]=(0,C.$G)(s.games),[t,n]=(0,m.useState)(!0),i=(0,I.useRouter)(),a=(0,m.useContext)(f.Ni);return(0,u.jsxs)(w.Z,{handleClose:()=>{n(!1),i.push(h.default.index)},isOpen:t,"data-testid":v.Y.game_navigation.limit_reached_modal,background:a.gameDetail?.modals?.background,children:[(0,u.jsx)(y,{"data-testid":v.Y.game_navigation.limit_reached_modal_title,children:e("modalLimitsReached.title")}),(0,u.jsx)(j,{"data-testid":v.Y.game_navigation.limit_reached_modal_text,children:(0,u.jsx)(C.cC,{t:e,i18nKey:"modalLimitsReached.text",components:[(0,u.jsx)(x.Gi,{href:h.default.profile.settings.limits,isExternalLink:!1,variant:"primary"},"limit_reached_button_link")]})}),(0,u.jsx)(k,{children:(0,u.jsx)(x.ZP,{variant:"ghost",href:h.default.index,children:e("modalLimitsReached.toLobby")})})]})},S=n(89218),L=n.n(S),Z=n(36251),R=n(10798),B=n(41403);f.ZP.div.withConfig({componentId:"sc-c97255a-0"})(["display:flex;flex-direction:column;width:70%;"]);let D=(0,f.ZP)(b.H1).withConfig({componentId:"sc-c97255a-1"})([""]),M=f.ZP.div.withConfig({componentId:"sc-c97255a-2"})(["margin-top:24px;margin-bottom:32px;",""],B.B.md`
    width: 80%;
  `),F=(0,f.ZP)(b.P3).withConfig({componentId:"sc-c97255a-3"})(["display:block;margin:0 auto;padding-top:16px;text-align:center;position:relative;margin-bottom:24px;&::before{content:'';margin:0 auto;display:block;width:80%;height:1px;background:rgba(255,255,255,0.5);top:0;left:10%;position:absolute;}"]);(0,f.ZP)(x.Gi).withConfig({componentId:"sc-c97255a-4"})(["margin-bottom:48px;"]);var T=e=>{let{onCancel:t,onSuccess:n}=e,[i]=(0,R.$)(R.NS.entry),[a,r]=(0,m.useState)(!0),o=(0,m.useContext)(f.Ni);return(0,u.jsxs)(w.Z,{handleClose:()=>{r(!1),t&&t()},isOpen:a,background:o.gameDetail?.modals?.background,children:[(0,u.jsx)(D,{children:i("login.loginSimple")}),(0,u.jsx)(M,{children:(0,u.jsx)(Z.Z,{onSuccess:()=>{r(!1),n&&n()}})}),(0,u.jsxs)(F,{children:[i("login.notRegistredYet")," ",(0,u.jsx)(L(),{href:h.default.entry.registration.index,"data-testid":v.Y.login_simple_register_link,children:i("login.registerSimple")})]})]})},A=e=>(0,u.jsx)(T,{...e}),O=()=>{let[e]=(0,C.$G)(s.games);return(0,u.jsxs)(w.Z,{handleClose:void 0,isOpen:!0,children:[(0,u.jsx)(y,{children:e("modalPEO.title")}),(0,u.jsx)(j,{children:e("modalPEO.text")}),(0,u.jsx)(k,{children:(0,u.jsx)(x.ZP,{variant:"primary",href:h.default.index,children:e("modalPEO.button")})})]})};let G=(0,m.createContext)({isFullscreen:!1,setIsFullscreen:()=>{}});var N=e=>{let{children:t}=e,[n,i]=(0,m.useState)(!1);return(0,u.jsx)(G.Provider,{value:{isFullscreen:n,setIsFullscreen:i},children:t})},H=()=>{let e=(0,m.useRef)(null),[t,n]=(0,m.useState)(!1),[i,a]=(0,m.useState)(!1);(0,m.useEffect)(()=>{(void 0!==document.documentElement.requestFullscreen||document.documentElement.mozRequestFullScreen||document.documentElement.webkitRequestFullscreen||document.documentElement.msRequestFullscreen)&&a(!0)},[]);let r=(0,m.useCallback)(()=>{n((document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)===e.current)},[]);(0,m.useEffect)(()=>(document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r),()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r),document.removeEventListener("mozfullscreenchange",r),document.removeEventListener("MSFullscreenChange",r)}),[r]);let o=(0,m.useCallback)(()=>{let t=e.current;t&&i&&(t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen())},[i]),s=(0,m.useCallback)(()=>{let n=e.current;n&&i&&(t?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen())},[i,t]);return{elementRef:e,openFullscreen:o,isFullscreen:t,toggleFullscreen:s,isSupported:i}},V=()=>(0,u.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M3 9H21",strokeWidth:"2",stroke:"white"}),(0,u.jsx)("path",{d:"M3 15H16",strokeWidth:"2",stroke:"white"})]});let $=(e,t)=>t?(0,u.jsx)(L(),{href:t,passHref:!0,children:e}):e,z=f.ZP.a.withConfig({componentId:"sc-a518779a-0"})(["padding:8px;display:flex;justify-content:center;align-items:center;transition-duration:0.4s;cursor:pointer;gap:8px;& > svg{font-size:27px;opacity:0.7;}",""],e=>{let{showAnimation:t}=e;return t?(0,f.iv)(["&:hover{transform:translateX(-8px);}"]):null});var U=e=>{let{children:t,showAnimation:n=!1,onClick:i,link:a,testId:r}=e;return $((0,u.jsx)(z,{showAnimation:n,onClick:i,"data-testid":r,children:t}),a)},Y=n(87696);let K=(e,t)=>{let n=(0,I.useRouter)(),{isAuthenticated:i}=(0,m.useContext)(Y.S),a={...n.query,demo:!1},r=h.default.game(e,!1,a);return i?{...r,href:r.as?.toString(),as:void 0}:{href:{pathname:h.default.entry.login.index,query:{redirect:r.as,...t}}}};var q=n(16518);let J=(0,q.cy)`(orientation: portrait) and (max-width: ${B.A.sm}px),
(orientation: landscape) and (max-height: ${B.A.sm}px)`,W=(0,q.cy)`(orientation: portrait) and (min-width: ${B.A.sm+1}px) and (max-width: ${B.A.md}px),
(orientation: landscape) and (min-height: ${B.A.sm+1}px) and (max-height: ${B.A.md}px) and (max-width: ${B.A.lg}px)`,X=(0,q.cy)`(orientation: portrait) and (min-width: ${B.A.md+1}px),
(orientation: landscape) and (min-height: ${B.A.md+1}px),
(orientation: landscape) and (min-width: ${B.A.lg+1}px) and (min-height: ${B.A.sm+1}px)`,Q=(0,f.iv)(["background:",";"],e=>{let{theme:t}=e;return t.gameDetail?.buttonGradient??t.colors.alpha}),ee=(0,f.iv)(["width:",";padding:8px 24px;white-space:nowrap;font-size:14px;font-weight:700;display:flex;justify-content:center;align-items:center;",";color:",";&:hover{",";}"," ",""],e=>{let{fullWidth:t}=e;return t?"100%":"auto"},Q,e=>{let{theme:t}=e;return t.colors.primary},Q,e=>{let{isFullHeight:t,theme:n}=e;return t?(0,f.iv)(["height:100%;border-radius:",";"],n.gameDetail?.addBorderRadiusToFullHeight?"10px":"0px"):(0,f.iv)(["border-radius:",";margin:4px;height:calc(100% - 4px - 4px);"],e=>{let{theme:t}=e;return t.button.borderRadius||t.radius.primary})},e=>{let{size:t}=e;return"large"===t?(0,f.iv)(["height:48px;font-size:15px;font-weight:",";"],e=>{let{theme:t}=e;return t.font.weight.bold}):null}),et=(0,f.ZP)(x.ZP).withConfig({componentId:"sc-1aaf61c3-0"})(["",""],ee),en=(0,f.ZP)(x.Gi).withConfig({componentId:"sc-1aaf61c3-1"})(["",""],ee),ei=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-2"})(["height:100%;display:flex;justify-content:center;position:relative;z-index:100;"]),ea=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-3"})(["height:100%;max-width:1280px;width:100%;display:flex;position:relative;justify-content:space-between;gap:4px;"," ",""],B.B.sm`
    gap: 16px;
  `,X`
  max-width: ${e=>{let{theme:t}=e;return t.gameDetail?.navbar?.matchGameWidth?"80%":"1280px"}};
  `),er=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-4"})(["height:100%;display:flex;align-items:center;gap:8px;width:",";transition-duration:0.4s;"," ",""],e=>{let{customWidth:t}=e;return t??"auto"},B.B.md`
    gap: 16px;
  `,e=>{let{fullWidth:t}=e;return t?(0,f.iv)(["flex:1;"]):null}),eo=f.ZP.nav.withConfig({componentId:"sc-1aaf61c3-5"})(["background-color:",";padding:0;height:100%;"],e=>{let{theme:t}=e;return t.gameDetail?.navbar?.background??t.colors.secondary}),es=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-6"})(["display:none;height:100%;max-width:100vw;overflow:auto hidden;",""],J`
    display: block;
  `),el=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-7"})(["height:100%;display:none;",""],W`
    display: block;
  `),ec=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-8"})(["height:100%;display:none;",""],X`
    display: block;
  `),ed=f.ZP.div.withConfig({componentId:"sc-1aaf61c3-9"})(["border:none;width:1px;height:25px;background-color:rgba(255,255,255,0.35);"]),eu=f.ZP.div.withConfig({componentId:"sc-a169cbcc-0"})(["display:flex;justify-content:end;align-items:center;height:100%;width:",";"],e=>{let{fullWidth:t}=e;return t?"100%":"auto"});var em=e=>{let{isDemo:t,gameKey:n,fullHeight:i,fullWidth:a,shortLabel:r,size:o="normal"}=e,[l]=(0,C.$G)(s.games),c=(0,m.useContext)(f.Ni),d=K(n),p=c.gameDetail?.buttonType==="normal"?et:en;return(0,u.jsx)(eu,{fullWidth:a,children:t?(0,u.jsx)(p,{variant:"primary",...d,href:d.href??"",size:o,isFullHeight:i,fullWidth:a,"data-testid":v.Y.game_navigation.play_for_real_button,children:l("detail.navigation.playForReal")}):(0,u.jsx)(p,{variant:"primary",href:h.default.profile.payments.deposit.index,size:o,isFullHeight:i,fullWidth:a,"data-testid":v.Y.game_navigation.deposit_button,children:r?"$":l("detail.actions.deposit")})})},ep=n(34596),eg=n(75617),eh=n(4409);let ex={ease:"linear",duration:.4};var ef=e=>{let{isOpen:t,children:n,initial:i,animate:a,exit:r}=e;return(0,u.jsx)(ep.M,{children:t&&(0,u.jsx)(eh.E.div,{initial:i,animate:a,exit:r,transition:ex,children:n},`animation_${t}`)})},ew=e=>{let{isOpen:t,children:n,addictionInitialStyles:i}=e,{width:a}=(0,eg.Z)(),r=(0,m.useMemo)(()=>a??0,[a]);return(0,u.jsx)(ef,{isOpen:t,initial:{x:-r,...i},animate:{x:0},exit:{x:-r,transitionEnd:{display:"none"}},children:n})},ev=n(27698),eC=n(2487),eb=n(55546),ey=n(59078),ej=n(31249),ek=()=>(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M16.6 18L10.3 11.7C9.8 12.1 9.225 12.4167 8.575 12.65C7.925 12.8833 7.23333 13 6.5 13C4.68333 13 3.146 12.371 1.888 11.113C0.629333 9.85433 0 8.31667 0 6.5C0 4.68333 0.629333 3.14567 1.888 1.887C3.146 0.629 4.68333 0 6.5 0C8.31667 0 9.85433 0.629 11.113 1.887C12.371 3.14567 13 4.68333 13 6.5C13 7.23333 12.8833 7.925 12.65 8.575C12.4167 9.225 12.1 9.8 11.7 10.3L18 16.6L16.6 18ZM6.5 11C7.75 11 8.81267 10.5627 9.688 9.688C10.5627 8.81267 11 7.75 11 6.5C11 5.25 10.5627 4.18733 9.688 3.312C8.81267 2.43733 7.75 2 6.5 2C5.25 2 4.18733 2.43733 3.312 3.312C2.43733 4.18733 2 5.25 2 6.5C2 7.75 2.43733 8.81267 3.312 9.688C4.18733 10.5627 5.25 11 6.5 11Z"})}),e_=()=>(0,u.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M1.4 14L0 12.6L5.6 7L0 1.4L1.4 0L7 5.6L12.6 0L14 1.4L8.4 7L14 12.6L12.6 14L7 8.4L1.4 14Z",fill:"#A2B9D4"})});let eE=e=>"ArrowUp"===e||"ArrowDown"===e||"Enter"===e,eI=(e,t,n)=>{switch(t){case"ArrowDown":if(void 0===n)return 0;if(e-1<=n)return e-1;return n+1;case"ArrowUp":if(void 0===n||n<=0)return 0;return n-1;case"Enter":return;default:throw Error(`Undefined selection state. Given: ${t}.`)}},eP=e=>{let{gamesCount:t,onSelectSuggestion:n}=e,[i,a]=(0,m.useState)(void 0);return{onKeyUp:e=>{e.preventDefault(),e.stopPropagation(),a(n=>{if(eE(e.key))return eI(t,e.key,n)}),"Enter"===e.key&&void 0!==i&&n&&n(i)},resetFocusedId:(0,m.useCallback)(()=>{a(void 0)},[]),focusedIdx:i}},eS=f.ZP.div.withConfig({componentId:"sc-8dc2a661-0"})(["padding:4px 12px;",""],e=>{let{mobileDirection:t}=e;return"horizontal"===t&&(0,f.iv)(["",""],B.B.maxMd`
        width: 100%;
        height: 100%;
        overflow: hidden;
      `)}),eL=f.ZP.ul.withConfig({componentId:"sc-8dc2a661-1"})(["",""],e=>{let{mobileDirection:t}=e;return"horizontal"===t&&(0,f.iv)(["",""],B.B.maxMd`
        display: flex;
        width: 100%;
        height: 36px;
        overflow-x: auto;
        padding-bottom: 17px; /* Increase/decrease this value for cross-browser compatibility */
        box-sizing: content-box; /* So the width will be 100% + 17px */
        flex-wrap: nowrap;

        li {
          margin-bottom: 0 !important;
          margin-right: 24px;
          white-space: nowrap;
        }
      `)}),eZ=f.ZP.li.withConfig({componentId:"sc-8dc2a661-2"})(["padding:4px;border-radius:4px;&:not(:last-child){margin-bottom:14px;}&:hover{background-color:",";}&:hover .itemListImage{width:96px;}&:hover .itemListText{font-size:1.4rem;}"],e=>{let{theme:t}=e;return t.colors.primary_010}),eR=f.ZP.a.withConfig({componentId:"sc-8dc2a661-3"})(["display:block;padding:4px;margin:-4px;border-radius:",";transition:background-color 200ms;&:hover{background-color:",";}",""],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.primary_005},e=>{let{isSelected:t}=e;return t&&(0,f.iv)(["background-color:",";"],e=>{let{theme:t}=e;return t.colors.primary_005})}),eB=f.ZP.span.withConfig({componentId:"sc-8dc2a661-4"})(["display:flex;justify-content:space-between;align-items:center;min-height:36px;"]),eD=f.ZP.div.withConfig({componentId:"sc-8dc2a661-5"})(["height:50px;width:80px;margin-right:","px;border-radius:",";background:url('","') no-repeat center center ",";background-size:cover;transition-duration:0.3s;"],e=>{let{mobileDirection:t}=e;return"horizontal"===t?12:16},e=>{let{theme:t}=e;return t.radius.primary},e=>{let{bgImage:t}=e;return t},e=>{let{theme:t}=e;return t.colors.primary_005}),eM=f.ZP.span.withConfig({componentId:"sc-8dc2a661-6"})(["display:flex;align-items:start;flex:1;overflow:hidden;font-size:1.2rem;font-weight:",";"],e=>{let{theme:t}=e;return t.font.weight.bold});f.ZP.div.withConfig({componentId:"sc-8dc2a661-7"})(["font-size:1rem;opacity:0.7;letter-spacing:0.13px;"]);let eF=(e,t,n,i)=>t?"string"==typeof t?(0,u.jsx)(eR,{href:t,target:n?"_blank":void 0,rel:n?"nofollow":void 0,isSelected:i,children:e}):(0,u.jsx)(L(),{...t,passHref:!0,legacyBehavior:!0,children:(0,u.jsx)(eR,{isSelected:i,children:e})}):e;var eT=e=>{let{items:t,mobileDirection:n,selectedIdx:i}=e;return t.length>0?(0,u.jsx)(eS,{mobileDirection:n,children:(0,u.jsx)(eL,{mobileDirection:n,children:t.map((e,t)=>(0,u.jsx)(eZ,{onClick:e.onClickCallback,children:eF((0,u.jsxs)(eB,{children:[e.image&&(0,u.jsx)(eD,{className:"itemListImage",bgImage:e.image,mobileDirection:n}),(0,u.jsx)(eM,{className:"itemListText",children:e.text})]}),e.link,e.openInNewtab,t===i)},e.key))})}):null},eA=n(86511);let eO=(0,f.ZP)(b.P3).withConfig({componentId:"sc-b7b7fd20-0"})(["text-align:center;padding-bottom:12px;"]),eG=f.ZP.div.withConfig({componentId:"sc-b7b7fd20-1"})(["display:flex;gap:8px;padding:12px;"]),eN=f.ZP.span.withConfig({componentId:"sc-b7b7fd20-2"})(["font-size:14px;line-height:17px;font-weight:",";white-space:nowrap;padding:8px;cursor:pointer;border-radius:8px;color:",";&:hover{background:",";}",""],e=>{let{theme:t}=e;return t.font.weight.bold},e=>{let{theme:t}=e;return t.colors.primary_075},e=>{let{theme:t}=e;return t.colors.primary_010},e=>{let{isActive:t,theme:n}=e;return t?(0,f.iv)(["background:",";color:",";"],(0,eA._j)(.3,n.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??n.colors.primary_075),n.colors.primary):(0,f.iv)(["border:1px solid ",";"],(0,eA._j)(.3,n.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??n.colors.primary_075))}),eH=f.ZP.div.withConfig({componentId:"sc-b7b7fd20-3"})(["padding-top:0;max-height:600px;max-height:",";overflow-y:auto;overflow-x:hidden;&::-webkit-scrollbar{width:0.5em;}&::-webkit-scrollbar-thumb{background-color:transparent;}"],e=>{let{maxHeight:t}=e;return t?`${t}vh`:"calc(100vh - 60px - 60px)"});(a=l||(l={})).all="all",a.favourites="favourites",a.lastPlayed="lastPlayed";var eV=e=>{let{games:t,onItemClick:n,lastPlayedGames:i,selectedIdx:a,maxHeight:r}=e,[o]=(0,C.$G)(),[l]=(0,C.$G)(s.games),[c,d]=(0,m.useState)("all"),p=(0,m.useMemo)(()=>[{name:"all",label:l("navigation.search.categories.all")},{name:"favourites",label:l("navigation.search.categories.favourites")},{name:"lastPlayed",label:l("navigation.search.categories.lastPlayed")}],[l]),g=(0,m.useCallback)(e=>e.map(e=>({key:`searchresult_${e.key}`,text:e.name||"",image:e.iconUrl||"",link:h.default.game(e.key),onClickCallback:n})),[n]),x=(0,m.useMemo)(()=>"all"===c?g(t):"favourites"===c?g(t.filter(e=>e.isFavorite)):g(i?.reduce((e,n)=>{let i=t.find(e=>n.key===e.key);return i&&e.push(i),e},[])??[]),[c,t,g,i]),f=(0,m.useMemo)(()=>p.map((e,t)=>(0,u.jsx)(eN,{isActive:c===e.name,onClick:()=>d(e.name),children:e.label},`category_${e.name}_${t}`)),[c,p]);return 0===t.length?(0,u.jsx)(eO,{children:o("search.emptyResult")}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eG,{children:f}),(0,u.jsx)(eH,{maxHeight:r,children:(0,u.jsx)(eT,{items:x,selectedIdx:a})})]})},e$=n(2415),ez=n(98484);let eU=(e,t,n,i)=>(0,e$.Z)(e=>{let a=e.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??e.colors.secondary,r=e.gameDetail?.navbar?.searchBar;return(0,ez.Z)({root:{margin:"0 !important",fontSize:"large"===n?"17px":"12px",letterSpacing:"0.75px",borderRadius:t?`${e.radius.primary} ${e.radius.primary} 0 0`:e.radius.primary,color:i?e.colors.primary_075:e.colors.primary,border:e.gameDetail?.navbar?.searchBar?.border??`3px solid ${a} !important`,backgroundColor:t?a:"transparent !important",paddingLeft:e.gameDetail?.navbar?.searchBar?.paddingLeft??"6px","&:hover":{color:e.colors.primary,backgroundColor:t?`${a} !important`:"transparent"},"&:focused":{border:`1px solid ${e.colors.primary_050} !important`,background:`${a} !important`},"&:before":{display:"none"},"&:after":{display:"none"}},input:{padding:"large"===n?"16px 0 16px !important":"8px 0 8px !important","&::placeholder":{opacity:.7,fontSize:"large"===n?"17px":"12px",letterSpacing:r?.disableLetterSpacing?"normal":"1.29px"},fontWeight:r?.normalFontWeight?400:Number(e.font.weight.bold)||700},focused:{backgroundColor:`${a} !important`}})})(e),eY=f.ZP.div.withConfig({componentId:"sc-367bfd11-0"})(["background:",";border-radius:",";position:",";left:0;right:0;z-index:100;width:100%;"],e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??t.colors.secondary},e=>{let{theme:t}=e;return`0 0 ${t.radius.primary} ${t.radius.primary}`},e=>{let{positionOfResult:t}=e;return t}),eK=f.ZP.div.withConfig({componentId:"sc-367bfd11-1"})(["background-color:",";border-radius:50%;padding:4px;display:flex;justify-content:center;align-items:center;& > svg{fill:",";padding:",";}"],e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.magnifierBackground??"transparent"},e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.adornment?.color??"#a2b9d4"},e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.adornment?.padding}),eq=(0,m.forwardRef)(e=>{let{isOpen:t,children:n,animate:i}=e;return i?(0,u.jsx)(ep.M,{children:t?(0,u.jsx)(eh.E.div,{initial:{opacity:0,x:0,y:0,width:"auto",height:"auto"},animate:{opacity:1,transition:{duration:1}},exit:{opacity:0,transitionEnd:{display:"none"},transition:{duration:.4}},children:n},`result_${t}`):void 0}):n});eq.displayName="ResultAnimation";let eJ="search",eW=(0,m.forwardRef)((e,t)=>{let{isOpen:n,setIsOpen:i,showCrossButton:a,showCloseButton:r,maxHeight:o,positionOfResult:s="static",fontSize:l="small",hasPlaceholderOpacity:c=!1}=e,[d]=(0,C.$G)(),{values:p,setFieldValue:g}=(0,ev.u6)(),{selectGamesByFulltext:x,lastPlayedGames:w}=(0,m.useContext)(ey.Jx),b=(0,I.useRouter)(),y=(0,m.useContext)(f.Ni),j=eU(y,n,l,c),k=m.createRef(),_=x(p[eJ]),E=(0,m.useCallback)(()=>{g(eJ,""),i(!1)},[g,i]),P=(0,m.useCallback)(e=>{let t=_[e];if(t){E();let e=h.default.game(t.key);b.push(e.href,e.as)}},[_,E,b]),{onKeyUp:S,resetFocusedId:L,focusedIdx:Z}=eP({gamesCount:_.length,onSelectSuggestion:P});(0,m.useEffect)(()=>{n||L()},[n,L]);let R=(0,m.useCallback)(()=>{i(!1)},[i]),B=(0,m.useCallback)(()=>{k?.current?.value||i(!1),k&&k.current&&(k.current.value="",g(eJ,""))},[k,g,i]),D=(0,m.useCallback)(e=>{["searchFormInnfer","search"].includes(e?.relatedTarget?.id??"")||i(!1)},[i]),M=(0,m.useCallback)(()=>{k.current?.focus()},[k]);return(0,u.jsxs)("div",{id:"searchFormInnfer",tabIndex:0,onBlur:D,onFocus:M,children:[(0,u.jsx)(ev.l0,{onKeyUp:e=>S(e),"data-testid":v.Y.search_games_form,children:(0,u.jsx)(ej.ZP,{inputRef:(0,eb.l)([k,t]),name:eJ,label:"",placeholder:d("search.placeholder"),customAdornmentMinWidth:y.gameDetail?.navbar?.searchBar?.openedSearchBarBackground,startAdornment:n&&r?(0,u.jsx)(U,{showAnimation:!1,onClick:R,children:(0,u.jsx)(eC.Z,{})}):(0,u.jsx)(eK,{children:(0,u.jsx)(ek,{})}),endAdornment:a&&n?(0,u.jsx)(U,{showAnimation:!1,onClick:B,testId:v.Y.game_navigation.cross_button,children:(0,u.jsx)(e_,{})}):null,size:"small",autoComplete:"off",inputClasses:j})}),(0,u.jsx)(eq,{isOpen:n,animate:"absolute"===s,children:(0,u.jsx)(eY,{"data-testid":v.Y.search_games_results,positionOfResult:s,children:(0,u.jsx)(eV,{games:_,lastPlayedGames:w,onItemClick:E,selectedIdx:Z,maxHeight:o})})})]})});eW.displayName="SearchFormInner";let eX=f.ZP.div.withConfig({componentId:"sc-c8cead93-0"})(["position:relative;min-width:200px;width:100%;"," .MuiInputAdornment-root{margin-top:0 !important;svg{height:15px;width:15px;}}"],e=>{let{isOpen:t}=e;return t&&(0,f.iv)(["border-radius:"," "," 0 0;flex:1;"],e=>{let{theme:t}=e;return t.radius.primary},e=>{let{theme:t}=e;return t.radius.primary})}),eQ=(0,m.forwardRef)((e,t)=>{let{isOpen:n,setIsOpen:i,showCrossButton:a,showCloseButton:r,maxHeight:o,positionOfResult:s="absolute",fontSize:l="large",hasPlaceholderOpacity:c=!1}=e,d=(0,m.useRef)(null),p=(0,m.useCallback)(()=>{n||i(!0)},[n,i]);return(0,u.jsx)(eX,{isOpen:n,ref:d,onClick:p,children:(0,u.jsx)(ev.J9,{onSubmit:()=>{},initialValues:{search:""},children:(0,u.jsx)(eW,{isOpen:n,setIsOpen:i,showCrossButton:a,showCloseButton:r,maxHeight:o,positionOfResult:s,fontSize:l,hasPlaceholderOpacity:c,ref:t})})})});eQ.displayName="Search",f.ZP.div.withConfig({componentId:"sc-9668cd5-0"})([""]);let e0=f.ZP.div.withConfig({componentId:"sc-9668cd5-1"})(["overflow:hidden;height:100%;background:",";background:",";"],e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??t.colors.secondary},e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??t.colors.secondary});var e1=e=>{let{onClose:t}=e,n=(0,m.useRef)(null);(0,m.useEffect)(()=>{n.current?.focus()},[]);let i=(0,m.useCallback)(e=>{e||t()},[t]);return(0,u.jsx)(e0,{children:(0,u.jsx)(eQ,{isOpen:!0,setIsOpen:i,showCloseButton:!0,showCrossButton:!0,ref:n})})},e3=e=>{let{isOpen:t,onClose:n}=e;return(0,u.jsx)(ep.M,{children:(0,u.jsx)(ew,{isOpen:t,addictionInitialStyles:{left:0,position:"fixed",width:"100vw",height:"100vh"},children:(0,u.jsx)(e1,{onClose:n})})})},e2=n(57149);let e7=f.ZP.div.withConfig({componentId:"sc-83c99878-0"})(["height:100%;display:flex;align-items:center;"]),e5=(0,f.ZP)(x.Gi).withConfig({componentId:"sc-83c99878-1"})(["width:4rem;word-wrap:break-word;font-size:0.8rem;font-weight:400;line-height:0.968rem;text-align:center;color:",";&:hover{color:",";}",""],e=>{let{theme:t}=e;return t.colors.primary_075},e=>{let{theme:t}=e;return t.colors.primary},X`
    width: auto;
  `);var e6=e=>{let{}=e,[t]=(0,C.$G)(s.games);return(0,u.jsx)(e7,{"data-testid":v.Y.game_navigation.panic_button,children:(0,u.jsx)(e5,{variant:"secondary",href:h.default.panicButton,children:t("detail.navigation.panicButton")})})};let e8=e=>{let{isGameFavourite:t,toggleFavouriteState:n}=(0,m.useContext)(ey.Jx);return{toggleFavourite:(0,m.useCallback)(()=>{n(e,!!t(e))},[e,t,n]),isGameFavourite:(0,m.useMemo)(()=>t(e),[e,t])}};var e4=n(38891),e9=n(30198);let te=f.ZP.button.withConfig({componentId:"sc-bc9ba113-0"})(["border-radius:",";color:",";border:0;outline:none;cursor:pointer;background:transparent;opacity:0.85;display:flex;justify-content:center;align-items:center;transition:opacity 200ms;"," &>svg{font-size:26px;}"],e=>{let{theme:t}=e;return t.radius.primary},e=>{let{theme:t}=e;return t.colors.primary},B.B.xs`
    &:hover {
      opacity: 1;
      color: ${e=>{let{theme:t}=e;return t.colors.alpha}};
    }
  `);var tt=e=>{let{onClick:t,fill:n}=e,[i]=(0,C.$G)(s.games),a=(0,f.Fg)();return(0,u.jsx)(te,{onClick:t,title:i("detail.actions.favourite")??"","data-testid":v.Y.game_navigation.favorite_star_button,children:n?(0,u.jsx)(e9.Z,{fill:a.gameDetail?.favoriteStarColor??"#f3d610",fontSize:"large","data-testid":v.Y.game_navigation.favorite_star}):(0,u.jsx)(e4.Z,{fontSize:"large","data-testid":v.Y.game_navigation.favorite_star_border})})},tn=e=>{let{gameKey:t}=e,{toggleFavourite:n,isGameFavourite:i}=e8(t);return(0,u.jsx)(tt,{onClick:n,fill:i??!1})};let ti=f.ZP.div.withConfig({componentId:"sc-dd741da9-0"})(["display:flex;gap:8px;margin:6px 0;"]),ta=f.ZP.div.withConfig({componentId:"sc-dd741da9-1"})(["display:flex;gap:2rem;"]),tr=f.ZP.div.withConfig({componentId:"sc-dd741da9-2"})(["font-size:20px;font-weight:700;line-height:24px;letter-spacing:0;text-align:left;display:flex;justify-content:center;align-items:center;gap:8px;"]),to=f.ZP.span.withConfig({componentId:"sc-dd741da9-3"})(["color:",";font-size:12px;font-weight:700;line-height:15px;letter-spacing:0;text-transform:uppercase;"],e=>{let{theme:t}=e;return t.colors.alpha}),ts=f.ZP.div.withConfig({componentId:"sc-dd741da9-4"})([""]),tl=f.ZP.h2.withConfig({componentId:"sc-dd741da9-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""],e=>{let{titleElipsizeBreakpoints:t}=e;return(0,f.iv)(["max-width:","px;"," "," "," ",""],t.xs,B.B.sm`
        max-width: ${t.sm}px;
      `,B.B.md`
        max-width: ${t.md}px;
      `,B.B.lg`
        max-width: ${t.lg}px;
      `,B.B.xl`
        max-width: ${t.xl}px;
      `)});var tc=e=>{let{isDemo:t,gameKey:n,title:i,isLoading:a,titleElipsizeBreakpoints:r}=e,[o]=(0,C.$G)(s.games),{isAuthenticated:l}=(0,m.useContext)(Y.S),{isEnabled:c}=(0,e2.s)();return(0,u.jsxs)(ta,{children:[(0,u.jsx)(ti,{children:(0,u.jsx)(ts,{children:a?null:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(tr,{children:[(0,u.jsx)(tl,{titleElipsizeBreakpoints:r,"data-testid":v.Y.game_navigation.game_name,children:i}),l?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(q.NZ,{children:(0,u.jsx)(tn,{gameKey:n})})}):null]}),t?(0,u.jsx)(to,{"data-testid":v.Y.game_navigation.demo_wrap,children:o("navigation.demo")}):null]})})}),c&&!t?(0,u.jsx)(q.NZ,{children:(0,u.jsx)(e6,{})}):null]})},td=n(54168),tu=n(52767),tm=n(72032),tp=n(26131);let tg=e=>{let{gameKey:t}=e,{userData:n}=(0,m.useContext)(Y.S),i=n?.playerId,{data:a,setData:r,loading:o,setLoading:s,error:l,setError:c,getError:d}=(0,tu.F)(),u=(0,td.LE)(),{registerForTournament:p}=(0,tp.Z)(),g=(0,m.useCallback)(async()=>{if(i){c(void 0),s(!0);try{let{data:e}=await u.getCapiV2OnlingTournamentsGetPlayerResultsByGame({gameKey:t,playerId:i});r(e)}catch(e){c(d(e)),r(void 0)}s(!1)}},[d,r,c,s,u,t,i]);(0,m.useEffect)(()=>{i&&g()},[g,t,i]),(0,tm.Y)(g,6e4,[]);let h=(0,m.useCallback)(async e=>{let{roundId:t}=e;await p({roundId:t}),await g()},[g,p]);return{tournament:(a||[]).find(e=>e.isRegistered)??a?.[0],loading:o,error:l,registerForTournament:h,load:g}};var th=n(81269),tx=()=>(0,u.jsx)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M4.69233 17V15.5H8.25V12.073C7.40128 11.9025 6.65128 11.5455 6 11.0019C5.34872 10.4583 4.88589 9.78071 4.61153 8.96918C3.45769 8.83199 2.48398 8.34225 1.6904 7.49995C0.8968 6.65765 0.5 5.65766 0.5 4.49998V3.49998C0.5 3.09101 0.647758 2.73878 0.943275 2.44328C1.23877 2.14776 1.59101 2 1.99997 2H4.32693V0H13.673V2H16C16.4089 2 16.7612 2.14776 17.0567 2.44328C17.3522 2.73878 17.5 3.09101 17.5 3.49998V4.49998C17.5 5.65766 17.1032 6.65765 16.3096 7.49995C15.516 8.34225 14.5423 8.83199 13.3884 8.96918C13.1141 9.78071 12.6512 10.4583 12 11.0019C11.3487 11.5455 10.5987 11.9025 9.74995 12.073V15.5H13.3076V17H4.69233ZM4.32693 7.35768V3.49998H1.99997V4.49998C1.99997 5.19741 2.21857 5.80991 2.65575 6.33748C3.09293 6.86504 3.64999 7.20511 4.32693 7.35768ZM13.673 7.35768C14.35 7.20511 14.907 6.86504 15.3442 6.33748C15.7814 5.80991 16 5.19741 16 4.49998V3.49998H13.673V7.35768Z",fill:"white"})}),tf=n(39952),tw=e=>{let{startTime:t,endTime:n}=e,[i]=(0,C.$G)(s.games),{component:a,variant:r}=(0,tf.w)({startTime:t,endTime:n});return"start"===r?(0,u.jsxs)(u.Fragment,{children:[a,` ${i("navigation.tournament.start")}`]}):"end"===r?(0,u.jsxs)(u.Fragment,{children:[a,` ${i("navigation.tournament.end")}`]}):(0,u.jsx)(u.Fragment,{children:i("navigation.tournament.ended")})},tv=n(861);let tC=f.ZP.div.withConfig({componentId:"sc-ff415f79-0"})(["height:100%;border-radius:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;"]),tb=f.ZP.div.withConfig({componentId:"sc-ff415f79-1"})(["font-size:10px;line-height:12px;white-space:nowrap;",""],B.B.md`
    font-size: 12px;
    line-height: 15px;
  `),ty=f.ZP.div.withConfig({componentId:"sc-ff415f79-2"})(["width:100%;font-size:12px;line-height:13px;white-space:nowrap;font-weight:",";",""],e=>{let{theme:t}=e;return t.font.weight.bold},B.B.md`
    font-size: 14px;
    line-height: 15px;
  `);var tj=e=>{let{title:t,value:n,testid:i}=e;return(0,u.jsxs)(tC,{"data-testid":i,children:[(0,u.jsx)(tb,{children:t}),(0,u.jsx)(ty,{children:n})]})};let tk=f.ZP.div.withConfig({componentId:"sc-5d58d77c-0"})(["display:flex;align-items:center;"," position:static;"," "," ",""],e=>{let{visibility:t}=e;return`display: ${t?"flex":"none"};`},B.B.md`
    right: 32px;
  `,B.B.maxMd`
    left: 0;
  `,B.B.maxLgLandscape`
    position: relative;
    visibility: visible;
    margin-left: 25px;
  `),t_=f.ZP.div.withConfig({componentId:"sc-5d58d77c-1"})(["display:flex;flex-direction:row;align-items:center;gap:4px;color:",";"],e=>{let{color:t,theme:n}=e;return t||n.colors.alpha});f.ZP.div.withConfig({componentId:"sc-5d58d77c-2"})(["font-size:10px;"]),f.ZP.span.withConfig({componentId:"sc-5d58d77c-3"})([""," ",""],b.T2,e=>{let{theme:t}=e;return B.B.maxLgLandscape`
    font-size: 10px;
    font-weight: ${t.font.weight.semiBold};
  `});let tE=f.ZP.img.withConfig({componentId:"sc-5d58d77c-4"})(["max-height:12px;aspect-ratio:1;",""],B.B.md`
    font-size: 12px;
    line-height: 15px;
  `),tI=f.ZP.span.withConfig({componentId:"sc-5d58d77c-5"})(["max-width:100px;font-weight:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],e=>{let{theme:t}=e;return t.gameDetail?.jackpot?.boldLevelName?800:400});var tP=e=>{let{displayValue:t,levelName:n,image:i,textColor:a,visibility:r}=e;return(0,u.jsx)(tk,{visibility:r,children:(0,u.jsx)(tj,{title:(0,u.jsxs)(t_,{color:a,children:[(0,u.jsx)(tE,{src:i,alt:n}),(0,u.jsx)(tI,{children:n})]}),value:t})})},tS=n(50673);let tL=()=>{let{data:e}=(0,tS._)(),[t,n]=(0,m.useState)(0),i=(0,m.useMemo)(()=>(e?.levels.length??0)-1,[e?.levels]);return(0,m.useEffect)(()=>{let e=setInterval(()=>{n(e=>e!==i?e+1:0)},2e3);return()=>clearInterval(e)},[n,i]),{data:e,singleJackpotVisible:t}},tZ=f.ZP.div.withConfig({componentId:"sc-47dde01c-0"})(["display:flex;justify-content:space-between;align-items:center;position:relative;"," ",""],B.B.maxMd`
    position: relative;
    left: 0;
    right: 0;
  `,B.B.maxLgLandscape`
    margin-bottom: 0;
  `),tR=f.ZP.div.withConfig({componentId:"sc-47dde01c-1"})(["display:flex;align-items:center;justify-content:center;height:50px;width:90px;"," ",""],B.B.sm`
    width: 140px;
  `,B.B.maxLgLandscape`
    height: auto;
  `),tB=()=>{let{data:e,singleJackpotVisible:t}=tL();return e?(0,u.jsx)(tZ,{"data-testid":v.Y.game_navigation.platform_jackpot_wrapper,children:(0,u.jsx)(tR,{children:e.levels.map((e,n)=>(0,u.jsx)(tP,{levelName:e.name,image:e.image,displayValue:e.displayValue,textColor:e.color,visibility:t===n},e.name))})}):null};var tD=e=>(0,u.jsx)(tv.Z,{showErrorFallback:!1,children:(0,u.jsx)(tB,{...e})});let tM=f.ZP.span.withConfig({componentId:"sc-ccd5af15-0"})(["display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;max-width:80px;",""],B.B.sm`
    max-width: 120px;
  `),tF=f.ZP.div.withConfig({componentId:"sc-ccd5af15-1"})(["display:none;",""],B.B.md`
  display: block;
  border: none;
  width: 1px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.35);`);var tT=e=>{let{gameKey:t,showJackpots:n=!0,canBePanicButtonVisible:i=!1}=e,[a,r]=(0,C.$G)(s.games),o=(0,f.Fg)(),{tournament:l,load:c}=tg({gameKey:t}),{isEnabled:d}=(0,e2.s)();(0,m.useEffect)(()=>{c()},[c]);let p=(0,m.useMemo)(()=>l?.playerRank!==void 0&&l?.playerRank<=0?"-":l?.playerRank!==void 0&&l?.playerRank<99?l?.playerRank?.toString():a("navigation.tournament.maxPlayerRank"),[a,l?.playerRank]);return(0,u.jsxs)(u.Fragment,{children:[n?(0,u.jsx)(tD,{}):null,o.gameDetail?.showDividers?(0,u.jsx)(tF,{}):null,d&&i?(0,u.jsx)(e6,{}):l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(tj,{testid:v.Y.game_navigation.remaining_time_wrapper,value:(0,u.jsx)(tM,{children:(0,u.jsx)(tw,{startTime:l?.startTime||"",endTime:l?.endTime||""})}),title:(0,u.jsx)(tM,{children:(0,th.ed)(l?.localizedTournamentName,r.language)??""})}),o.gameDetail?.showDividers?(0,u.jsx)(tF,{}):null,(0,u.jsx)(tj,{title:(0,u.jsx)(tx,{}),testid:v.Y.game_navigation.player_rank_wrapper,value:(0,u.jsx)(tM,{children:p})})]}):null]})};let tA={xs:50,sm:20,md:270,lg:450,xl:750},tO={xs:100,sm:160,md:330,lg:500,xl:800},tG=e=>{let{isEnabled:t}=(0,e2.s)();return t&&!e?tA:tO},tN=f.ZP.div.withConfig({componentId:"sc-24c85d14-0"})(["display:flex;align-items:center;flex:1;justify-content:space-between;padding-right:8px;"]);var tH=e=>{let{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r}=e,o=tG(t);return t?(0,u.jsx)(tc,{gameKey:n,isDemo:t,title:i,isLoading:a,titleElipsizeBreakpoints:o}):(0,u.jsx)(tN,{children:(0,u.jsx)(tT,{gameKey:n,showJackpots:r,canBePanicButtonVisible:!t})})};let tV=f.ZP.div.withConfig({componentId:"sc-71e043d-0"})(["width:100%;height:100%;background-color:",";"],e=>{let{theme:t}=e;return t.colors.universal_020});(0,f.ZP)(eh.E.div).withConfig({componentId:"sc-71e043d-1"})(["position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;opacity:0;z-index:999;"]);var t$=e=>{let{isOpen:t,onClick:n}=e,i=(0,m.useContext)(f.Ni);return(0,u.jsx)(ep.M,{children:t&&(0,u.jsx)(eh.E.div,{initial:{opacity:0,x:0,y:0,width:"100%",height:"100%",backgroundColor:i.colors.universal_020},animate:{opacity:1,position:"fixed",transition:{duration:1}},exit:{opacity:0,transitionEnd:{display:"none"},transition:{duration:1}},children:(0,u.jsx)(tV,{isOpen:t,onClick:n})},`motionDiv_${t}`)})},tz=e=>{let{isOpen:t,children:n,addictionInitialStyles:i}=e,{height:a}=(0,eg.Z)(),r=(0,m.useMemo)(()=>a??0,[a]);return(0,u.jsx)(ef,{isOpen:t,initial:{bottom:-r,...i},animate:{bottom:0},exit:{bottom:-r,transitionEnd:{display:"none"}},children:n})},tU=()=>(0,u.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M2 18C1.45 18 0.979 17.8043 0.587 17.413C0.195667 17.021 0 16.55 0 16V2C0 1.45 0.195667 0.979 0.587 0.587C0.979 0.195667 1.45 0 2 0H9V2H2V16H9V18H2ZM13 14L11.625 12.55L14.175 10H6V8H14.175L11.625 5.45L13 4L18 9L13 14Z",fill:"#EF7D19"})}),tY=()=>(0,u.jsx)("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M13.5 13C13.2167 13 12.9793 12.904 12.788 12.712C12.596 12.5207 12.5 12.2833 12.5 12V8C12.5 7.71667 12.596 7.479 12.788 7.287C12.9793 7.09567 13.2167 7 13.5 7H16C16.2833 7 16.5207 7.09567 16.712 7.287C16.904 7.479 17 7.71667 17 8V12C17 12.2833 16.904 12.5207 16.712 12.712C16.5207 12.904 16.2833 13 16 13H13.5ZM14 11.5H15.5V8.5H14V11.5ZM3 13V10.5C3 10.2167 3.09567 9.979 3.287 9.787C3.479 9.59567 3.71667 9.5 4 9.5H6V8.5H3V7H6.5C6.78333 7 7.021 7.09567 7.213 7.287C7.40433 7.479 7.5 7.71667 7.5 8V9.5C7.5 9.78333 7.40433 10.0207 7.213 10.212C7.021 10.404 6.78333 10.5 6.5 10.5H4.5V11.5H7.5V13H3ZM9.25 9V7.5H10.75V9H9.25ZM9.25 12.5V11H10.75V12.5H9.25ZM2 18C1.45 18 0.979333 17.8043 0.588 17.413C0.196 17.021 0 16.55 0 16V4C0 3.45 0.196 2.97933 0.588 2.588C0.979333 2.196 1.45 2 2 2H5V0H7V2H13V0H15V2H18C18.55 2 19.021 2.196 19.413 2.588C19.8043 2.97933 20 3.45 20 4V16C20 16.55 19.8043 17.021 19.413 17.413C19.021 17.8043 18.55 18 18 18H2ZM2 16H9.25V14.5H10.75V16H18V4H10.75V5.5H9.25V4H2V16ZM2 16V4V16Z",fill:"#A2B9D4"})}),tK=()=>(0,u.jsx)("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M2 15V17H18V15H2ZM2 4H4.2C4.11667 3.85 4.0625 3.69167 4.0375 3.525C4.0125 3.35833 4 3.18333 4 3C4 2.16667 4.29167 1.45833 4.875 0.875C5.45833 0.291667 6.16667 0 7 0C7.5 0 7.9625 0.129167 8.3875 0.3875C8.8125 0.645833 9.18333 0.966667 9.5 1.35L10 2L10.5 1.35C10.8 0.95 11.1667 0.625 11.6 0.375C12.0333 0.125 12.5 0 13 0C13.8333 0 14.5417 0.291667 15.125 0.875C15.7083 1.45833 16 2.16667 16 3C16 3.18333 15.9875 3.35833 15.9625 3.525C15.9375 3.69167 15.8833 3.85 15.8 4H18C18.55 4 19.0208 4.19583 19.4125 4.5875C19.8042 4.97917 20 5.45 20 6V17C20 17.55 19.8042 18.0208 19.4125 18.4125C19.0208 18.8042 18.55 19 18 19H2C1.45 19 0.979167 18.8042 0.5875 18.4125C0.195833 18.0208 0 17.55 0 17V6C0 5.45 0.195833 4.97917 0.5875 4.5875C0.979167 4.19583 1.45 4 2 4ZM2 12H18V6H12.9L15 8.85L13.4 10L10 5.4L6.6 10L5 8.85L7.05 6H2V12ZM7 4C7.28333 4 7.52083 3.90417 7.7125 3.7125C7.90417 3.52083 8 3.28333 8 3C8 2.71667 7.90417 2.47917 7.7125 2.2875C7.52083 2.09583 7.28333 2 7 2C6.71667 2 6.47917 2.09583 6.2875 2.2875C6.09583 2.47917 6 2.71667 6 3C6 3.28333 6.09583 3.52083 6.2875 3.7125C6.47917 3.90417 6.71667 4 7 4ZM13 4C13.2833 4 13.5208 3.90417 13.7125 3.7125C13.9042 3.52083 14 3.28333 14 3C14 2.71667 13.9042 2.47917 13.7125 2.2875C13.5208 2.09583 13.2833 2 13 2C12.7167 2 12.4792 2.09583 12.2875 2.2875C12.0958 2.47917 12 2.71667 12 3C12 3.28333 12.0958 3.52083 12.2875 3.7125C12.4792 3.90417 12.7167 4 13 4Z",fill:"#A2B9D4"})}),tq=()=>(0,u.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M9.1 17H10.85V15.75C11.6833 15.6 12.4 15.275 13 14.775C13.6 14.275 13.9 13.5333 13.9 12.55C13.9 11.85 13.7 11.2083 13.3 10.625C12.9 10.0417 12.1 9.53333 10.9 9.1C9.9 8.76667 9.20833 8.475 8.825 8.225C8.44167 7.975 8.25 7.63333 8.25 7.2C8.25 6.76667 8.40433 6.425 8.713 6.175C9.021 5.925 9.46667 5.8 10.05 5.8C10.5833 5.8 11 5.92933 11.3 6.188C11.6 6.446 11.8167 6.76667 11.95 7.15L13.55 6.5C13.3667 5.91667 13.0293 5.40833 12.538 4.975C12.046 4.54167 11.5 4.3 10.9 4.25V3H9.15V4.25C8.31667 4.43333 7.66667 4.8 7.2 5.35C6.73333 5.9 6.5 6.51667 6.5 7.2C6.5 7.98333 6.72933 8.61667 7.188 9.1C7.646 9.58333 8.36667 10 9.35 10.35C10.4 10.7333 11.1293 11.075 11.538 11.375C11.946 11.675 12.15 12.0667 12.15 12.55C12.15 13.1 11.954 13.504 11.562 13.762C11.1707 14.0207 10.7 14.15 10.15 14.15C9.6 14.15 9.11267 13.979 8.688 13.637C8.26267 13.2957 7.95 12.7833 7.75 12.1L6.1 12.75C6.33333 13.55 6.696 14.196 7.188 14.688C7.67933 15.1793 8.31667 15.5167 9.1 15.7V17ZM10 20C8.61667 20 7.31667 19.7373 6.1 19.212C4.88333 18.6873 3.825 17.975 2.925 17.075C2.025 16.175 1.31267 15.1167 0.788 13.9C0.262667 12.6833 0 11.3833 0 10C0 8.61667 0.262667 7.31667 0.788 6.1C1.31267 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.31233 6.1 0.787C7.31667 0.262333 8.61667 0 10 0C11.3833 0 12.6833 0.262333 13.9 0.787C15.1167 1.31233 16.175 2.025 17.075 2.925C17.975 3.825 18.6873 4.88333 19.212 6.1C19.7373 7.31667 20 8.61667 20 10C20 11.3833 19.7373 12.6833 19.212 13.9C18.6873 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6873 13.9 19.212C12.6833 19.7373 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z",fill:"#A2B9D4"})});let tJ=()=>{let e=(0,p.useSearchParams)();return{previousArrowButtonLink:(0,m.useMemo)(()=>{let t=h.default.archive().as,n=new URLSearchParams,i=(e,t)=>{t.forEach(t=>{n.append(e,t)})};return[g.h.providerslugs,g.h.categoryslugs,g.h.genreslugs].forEach(t=>{let n=e.getAll(t);n.length&&i(t,n)}),`${t}${n.size?`?${n.toString()}`:""}`},[e])}},tW=(e,t)=>{let[n]=(0,C.$G)(s.games),i=(0,m.useContext)(f.Ni),{toggleFavourite:a,isGameFavourite:r}=e8(t),{previousArrowButtonLink:o}=tJ(),{isAuthenticated:l}=(0,m.useContext)(Y.S),c=(0,m.useMemo)(()=>({icon:(0,u.jsx)(tK,{}),name:"bonuses",label:n("navigation.menuItems.bonuses"),color:i.colors.primary,link:h.default.bonuses.index}),[n,i.colors.primary]),d=(0,m.useMemo)(()=>({icon:(0,u.jsx)(tq,{}),name:"jackpots",label:n("navigation.menuItems.jackpots"),color:i.colors.primary,link:h.default.jackpots}),[n,i.colors.primary]),p=(0,m.useMemo)(()=>({icon:(0,u.jsx)(tU,{}),name:"leaveGame",label:n("navigation.menuItems.leaveGame"),color:i.colors.alpha,link:o,testId:v.Y.game_navigation.leave_game_button}),[n,i.colors.alpha]),g=(0,m.useMemo)(()=>({icon:(0,u.jsx)(tt,{fill:r??!1}),name:"addToFavourites",label:n("navigation.menuItems.addToFavourites"),color:i.colors.primary,onClick:a}),[r,n,i.colors.primary,a]);return{menuItemsConf:(0,m.useMemo)(()=>e?[...l?[g]:[],c,d,p]:[g,c,{icon:(0,u.jsx)(tY,{}),name:"tournaments",label:n("navigation.menuItems.tournaments"),color:i.colors.primary,link:h.default.tournaments.index},d,p],[c,a,e,r,d,p,n,i.colors.primary])}},tX=f.ZP.li.withConfig({componentId:"sc-82a33efd-0"})([""]),tQ=f.ZP.a.withConfig({componentId:"sc-82a33efd-1"})(["display:flex;align-items:center;gap:12px;padding:12px 16px;"]),t0=f.ZP.div.withConfig({componentId:"sc-82a33efd-2"})(["width:40px;height:40px;font-size:30px;display:flex;justify-content:center;align-items:center;"]),t1=f.ZP.div.withConfig({componentId:"sc-82a33efd-3"})(["font-size:17px;font-weight:",";line-height:20px;color:",";"],e=>{let{theme:t}=e;return t.font.weight.bold},e=>{let{color:t}=e;return t});var t3=e=>{let{icon:t,label:n,color:i,link:a,"data-testid":r,onClick:o}=e,s=(0,u.jsxs)(tQ,{onClick:o,"data-testid":r,children:[(0,u.jsx)(t0,{children:t}),(0,u.jsx)(t1,{color:i,children:n})]});return(0,u.jsx)(tX,{children:$(s,a)})};let t2=f.ZP.div.withConfig({componentId:"sc-131488bf-0"})(["max-height:70vh;overflow:auto;transition-duration:0.5s;background-blend-mode:",";background:",";border-radius:",";z-index:999;padding-bottom:8px;"],e=>{let{theme:t}=e;return t.gameDetail?.mobileMenu?.backgroundBlendMode??"normal"},e=>{let{theme:t}=e;return t.gameDetail?.mobileMenu?.background??t.colors.secondary},e=>{let{theme:t}=e;return t.gameDetail?.mobileMenu?.radius??"24px 24px 0 0"}),t7=f.ZP.div.withConfig({componentId:"sc-131488bf-1"})(["padding:0 16px;"]);f.ZP.div.withConfig({componentId:"sc-131488bf-2"})(["margin:16px;"]);let t5=f.ZP.ul.withConfig({componentId:"sc-131488bf-3"})([""]),t6=f.ZP.div.withConfig({componentId:"sc-131488bf-4"})(["margin:16px;"]),t8=f.ZP.button.withConfig({componentId:"sc-131488bf-5"})(["width:100%;display:flex;align-items:center;gap:16px;margin:4px;padding-left:",";border-radius:",";border:3px solid ",";background-color:transparent;"],e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.paddingLeft??"8px"},e=>{let{theme:t}=e;return t.radius.primary},e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??t.colors.secondary}),t4=f.ZP.span.withConfig({componentId:"sc-131488bf-6"})(["padding:16px 0;font-weight:",";font-size:17px;color:",";"],e=>{let{theme:t}=e;return t.font.weight.bold},e=>{let{theme:t}=e;return t.colors.primary_075}),t9=f.ZP.span.withConfig({componentId:"sc-131488bf-7"})(["width:40px;display:flex;align-items:center;justify-content:center;background-color:",";border-radius:50%;aspect-ratio:1;& > svg{fill:",";width:16px;}"],e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.magnifierBackground},e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.adornment?.color??t.colors.primary_075}),ne={left:0,position:"fixed",width:"100%"};var nt=e=>{let{isOpen:t,closeMenu:n,gameKey:i,showGameList:a,isDemo:r}=e,[o]=(0,C.$G)(),{menuItemsConf:s}=tW(r,i);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(t$,{isOpen:t,onClick:n}),(0,u.jsx)(tz,{isOpen:t,addictionInitialStyles:ne,children:(0,u.jsxs)(t2,{children:[(0,u.jsx)(t6,{"data-testid":v.Y.game_navigation.search_wrap,children:(0,u.jsxs)(t8,{onClick:a,children:[(0,u.jsx)(t9,{children:(0,u.jsx)(ek,{})}),(0,u.jsx)(t4,{children:o("search.placeholder")})]})}),(0,u.jsx)(t7,{children:(0,u.jsx)(em,{gameKey:i,isDemo:!1,fullHeight:!1,fullWidth:!0,shortLabel:!1,size:"large"})}),(0,u.jsx)(t5,{"data-testid":v.Y.game_navigation.menu_items,children:s.map(e=>(0,u.jsx)(t3,{icon:e.icon,label:e.label,color:e.color,link:e.link,onClick:e.onClick,"data-testid":e.testId},e.name))})]})})]})},nn=e=>{let{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r}=e,[o,s]=(0,m.useState)(!1),[l,c]=(0,m.useState)(!1),d=(0,f.Fg)(),p=d.gameDetail?.disableDesktopButtonFullSizes??!1,g=(0,m.useCallback)(()=>{s(!0)},[]),h=(0,m.useCallback)(()=>{s(!1)},[]),x=(0,m.useCallback)(()=>{c(!0)},[]),w=(0,m.useCallback)(()=>{c(!1)},[]);return(0,u.jsxs)(ei,{children:[(0,u.jsxs)(ea,{children:[(0,u.jsxs)(er,{fullWidth:!0,children:[(0,u.jsxs)(U,{onClick:g,testId:v.Y.game_navigation.menu_icon,children:[(0,u.jsx)(V,{}),(0,u.jsx)(ed,{})]}),(0,u.jsx)(tH,{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r})]}),(0,u.jsx)("div",{style:{padding:d.gameDetail?.addBorderRadiusToFullHeight?"4px":"0px"},children:(0,u.jsx)(em,{gameKey:n,isDemo:t,fullHeight:!t||!p,fullWidth:!1,shortLabel:!0})})]}),(0,u.jsx)(nt,{isOpen:o,showGameList:x,gameKey:n,isDemo:t,closeMenu:h}),(0,u.jsx)(e3,{isOpen:l,onClose:w})]})},ni=()=>(0,u.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",children:(0,u.jsx)("g",{strokeWidth:"1",fillRule:"evenodd",fill:"none",children:(0,u.jsx)("g",{fillRule:"nonzero",fill:"currentColor",children:(0,u.jsx)("path",{d:"M0 7.1C0 11 3.2 14.1 7.1 14.1 8.9 14.1 10.5 13.5 11.8 12.4L16.3 16.9C16.4 17 16.5 17 16.6 17 16.7 17 16.8 17 16.9 16.9 17 16.7 17 16.4 16.9 16.3L12.4 11.8C13.5 10.5 14.1 8.9 14.1 7.1 14.1 3.2 11 0 7.1 0 3.2 0 0 3.2 0 7.1ZM13 7C13 10.3 10.3 13 7 13 3.7 13 1 10.3 1 7 1 3.7 3.7 1 7 1 10.3 1 13 3.7 13 7Z"})})})}),na=e=>{let{isOpen:t,children:n,addictionInitialStyles:i}=e,{height:a}=(0,eg.Z)(),r=(0,m.useMemo)(()=>a??0,[a]);return(0,u.jsx)(ef,{isOpen:t,initial:{bottom:r,...i},animate:{bottom:0},exit:{bottom:r,transitionEnd:{display:"none"}},children:n})};let nr=f.ZP.div.withConfig({componentId:"sc-cbb7329f-0"})(["width:600px;border-radius:",";background-color:",";"],e=>{let{theme:t}=e;return t.radius.primary},e=>{let{theme:t}=e;return t.gameDetail?.navbar?.searchBar?.openedSearchBarBackground??t.colors.secondary});var no=e=>{let{onClose:t}=e,n=(0,m.useRef)(null);(0,m.useEffect)(()=>{n.current?.focus()},[]);let i=(0,m.useCallback)(e=>{e||t()},[t]);return(0,u.jsx)(nr,{children:(0,u.jsx)(eQ,{isOpen:!0,setIsOpen:i,showCloseButton:!0,showCrossButton:!0,maxHeight:70,positionOfResult:"static",ref:n})})},ns=e=>{let{isOpen:t,onClose:n}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(na,{isOpen:t,addictionInitialStyles:{height:"100vh",position:"fixed",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(no,{onClose:n})}),(0,u.jsx)(t$,{isOpen:t})]})};let nl=f.ZP.button.withConfig({componentId:"sc-a087197b-0"})(["cursor:pointer;height:50px;width:auto;background-color:transparent;border:none;color:",";",""],e=>{let{theme:t}=e;return t.colors.primary},B.B.sm`
    width: 50px;
  `);var nc=e=>{let{icon:t,onClick:n}=e;return(0,u.jsx)(nl,{"data-testid":v.Y.game_navigation.search_wrap,onClick:n,children:t})};let nd=f.ZP.div.withConfig({componentId:"sc-8af94bf7-0"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.alpha});var nu=e=>{let{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r}=e,[o,s]=(0,m.useState)(!1),{previousArrowButtonLink:l}=tJ(),c=tG(t),d=(0,m.useCallback)(()=>{s(!0)},[]),p=(0,m.useCallback)(()=>{s(!1)},[]);return(0,u.jsxs)(ei,{children:[(0,u.jsxs)(ea,{children:[(0,u.jsxs)(er,{children:[(0,u.jsx)(U,{showAnimation:!0,link:l,children:(0,u.jsx)(eC.Z,{"data-testid":v.Y.game_navigation.arrow_back_button})}),(0,u.jsx)(tc,{isDemo:t,gameKey:n,title:i,isLoading:a,titleElipsizeBreakpoints:c})]}),(0,u.jsxs)(er,{children:[t?null:(0,u.jsx)(tT,{gameKey:n,showJackpots:r,canBePanicButtonVisible:!1}),(0,u.jsx)(nc,{icon:(0,u.jsx)(nd,{children:(0,u.jsx)(ni,{})}),onClick:d}),(0,u.jsx)(em,{gameKey:n,isDemo:t,fullWidth:!1,fullHeight:!t,shortLabel:!1})]})]}),(0,u.jsx)(ns,{isOpen:o,onClose:p})]})};let nm=f.ZP.div.withConfig({componentId:"sc-d07e58ae-0"})(["display:flex;align-items:center;width:100%;"]);var np=e=>{let{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r}=e,[o,s]=(0,m.useState)(!1),{previousArrowButtonLink:l}=tJ(),c=(0,f.Fg)(),d=c.gameDetail?.disableDesktopButtonFullSizes??!1,p=tG(t);return(0,u.jsx)(ei,{children:(0,u.jsxs)(ea,{children:[(0,u.jsxs)(er,{children:[(0,u.jsx)(U,{showAnimation:!0,link:l,children:(0,u.jsx)(eC.Z,{"data-testid":v.Y.game_navigation.arrow_back_button})}),(0,u.jsx)(tc,{isDemo:t,gameKey:n,title:i,isLoading:a,titleElipsizeBreakpoints:p})]}),(0,u.jsx)(er,{fullWidth:o,customWidth:"35rem",children:(0,u.jsx)(nm,{"data-testid":v.Y.game_navigation.search_wrap,children:(0,u.jsx)(eQ,{isOpen:o,setIsOpen:s,maxHeight:50,fontSize:"small",showCrossButton:!0,hasPlaceholderOpacity:!0})})}),(0,u.jsxs)(er,{children:[t?null:(0,u.jsx)(tT,{gameKey:n,showJackpots:r}),(0,u.jsx)(em,{gameKey:n,isDemo:t,fullWidth:!d&&!t,fullHeight:!d&&!t,shortLabel:!1})]})]})})},ng=e=>{let{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r}=e;return(0,u.jsxs)(eo,{children:[(0,u.jsx)(es,{"data-testid":v.Y.game_navigation.game_navigation_wrapper_mobile,children:(0,u.jsx)(nn,{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r})}),(0,u.jsx)(el,{"data-testid":v.Y.game_navigation.game_navigation_wrapper_tablet,children:(0,u.jsx)(nu,{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r})}),(0,u.jsx)(ec,{"data-testid":v.Y.game_navigation.game_navigation_wrapper_desktop,children:(0,u.jsx)(np,{isDemo:t,gameKey:n,title:i,isLoading:a,showJackpots:r})})]})},nh=()=>(0,u.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":v.Y.game_navigation.full_screen_button,children:(0,u.jsx)("path",{d:"M0 14V9H2V12H5V14H0ZM0 5V0H5V2H2V5H0ZM9 14V12H12V9H14V14H9ZM12 5V2H9V0H14V5H12Z",fill:"white"})}),nx=()=>(0,u.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":v.Y.game_navigation.full_screen_close_button,children:(0,u.jsx)("path",{d:"M1.4 20L0 18.6L6.6 12H2V10H10V18H8V13.4L1.4 20ZM10 10V2H12V6.6L18.6 0L20 1.4L13.4 8H18V10H10Z",fill:"white"})});let nf=f.ZP.div.withConfig({componentId:"sc-8d0f9f49-0"})(["display:flex;"]),nw=f.ZP.button.withConfig({componentId:"sc-8d0f9f49-1"})(["width:40px;height:40px;color:",";border:0;outline:none;cursor:pointer;background:transparent;"],e=>{let{theme:t}=e;return t.colors.primary});f.ZP.div.withConfig({componentId:"sc-8d0f9f49-2"})(["flex:1;"]);let nv=f.ZP.div.withConfig({componentId:"sc-8d0f9f49-3"})(["display:none;"," ",""],B.B.maxSm`
    display: block;
  `,(0,q.cy)`screen and (max-height: ${B.A.sm}px) and (orientation: landscape) and (max-width: ${B.A.md}px) {
    display: block;
    }
  `);var nC=e=>{let{toggleFullscreen:t,isSupported:n,isFullscreen:i}=e,[a]=(0,C.$G)(s.games);return(0,u.jsx)(nv,{children:(0,u.jsx)(nf,{children:n?(0,u.jsx)(nw,{onClick:t,title:a("detail.actions.fullscreen")??"",children:i?(0,u.jsx)(nx,{}):(0,u.jsx)(nh,{})}):null})})},nb=n(98854);(r=c||(c={})).HANDSHAKE="HANDSHAKE",r.ERROR="ERROR",r.GET_ISMOBILE="GET_ISMOBILE",r.REDIRECT_TO="REDIRECT_TO",r.GAME_SPIN_START="GAME_SPIN_START",r.GAME_SPIN_END="GAME_SPIN_END",r.RELOAD="RELOAD",r.GAME_TIME="GAME_TIME",r.LOGIN_TIME="LOGIN_TIME",r.CURRENT_TIME="",r.PLAYER_BALANCE="PLAYER_BALANCE",r.FULLSCREEN_ON="FULLSCREEN_ON",r.FULLSCREEN_OFF="FULLSCREEN_OFF";let ny=e=>{let{type:t,payload:n}=e;return{type:t,dir:"REQUEST",payload:n}};var nj=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;(0,m.useEffect)(()=>{if(e)return console.info("Listening for messages from the iframe..."),window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[e,t])},nk=n(26757),n_=n(29227),nE=n(86486),nI=n(49584);let nP=(0,m.createContext)({gameState:void 0,gameError:void 0,endGameSession:()=>{},prepareGameSession:async()=>{},reloadGameSession:async()=>{},pauseBalanceUpdates:()=>{},resumeBalanceUpdates:()=>{},setGameCapabilities:()=>{},sendMessageToGameIframe:()=>{},setSendMessageToGameIframeFunction:()=>{}});var nS=e=>{let{children:t}=e,[,n]=(0,nI.$G)(),i=(0,td.Md)(),{userData:a,isAuthenticated:r}=(0,m.useContext)(Y.S),{refreshLastPlayedGames:o}=(0,m.useContext)(ey.Jx),[s,l]=(0,m.useState)(),[c,d]=(0,m.useState)(),[p,g]=(0,m.useState)(),[h,x]=(0,m.useState)(()=>()=>{}),f=a?.playerId,w=(0,m.useCallback)(async e=>{let{isDemo:t,gameKey:a,provider:s}=e;try{let{data:e}=await i.postCapiV2OnlingOnlineGameLaunch({gameKey:a,playerId:f,gameMode:!r||t?"Demo":"Real",language:n.language,client:(0,nb.Z3)()?"Mobile":"Desktop",returnUrl:location.origin});l({key:a,isDemo:!r||t,provider:s,iframeSrc:e,sessionStartAt:new Date().getTime(),balanceState:{pauseUpdates:!1},gameShows:{gameTime:!1,legalClaims:!1,playerBalance:!1,loginTime:!1}}),r&&!t?(o(),nE.V.trackGameSessionStart({gameKey:a})):nE.V.trackDemoSessionStart({gameKey:a}),d(void 0)}catch(t){let{errorCode:e}=(0,nk.B8)(t);console.error("GAME errorCode ___ ",e),"ERR_PLAYER_BLOCKED_BY_RVO"===e?d("RVO_EXCLUDED"):"LimitsReached"===e?d("LIMITS_REACHED"):"ERR_PLAYER_IS_PEO"===e?d("PLAYER_IS_PEO"):(d("GENERAL_ERROR"),(0,n_.eK)(t)),l(void 0)}},[f,o,i,n.language]),v=(0,m.useCallback)(async e=>{let t=()=>w(e);t(),g(()=>t)},[w]),C=(0,m.useCallback)(()=>{l(void 0),d(void 0),g(void 0)},[]),b=(0,m.useCallback)(()=>{l(e=>e?{...e,balanceState:{...e.balanceState,pauseUpdates:!0}}:void 0)},[]),y=(0,m.useCallback)(()=>{l(e=>e?{...e,balanceState:{...e.balanceState,pauseUpdates:!1}}:void 0)},[]),j=(0,m.useCallback)(e=>{l(t=>t?{...t,gameShows:e}:void 0)},[]);return(0,u.jsx)(nP.Provider,{value:{gameState:s,endGameSession:C,prepareGameSession:v,reloadGameSession:p,gameError:c,pauseBalanceUpdates:b,resumeBalanceUpdates:y,setGameCapabilities:j,sendMessageToGameIframe:h,setSendMessageToGameIframeFunction:x},children:t})};(o=d||(d={})).LOBBY="LOBBY",o.PROFILE="PROFILE";let nL=e=>{switch(e){case"LOBBY":default:return"/";case"PROFILE":return"/profile/settings"}};var nZ=e=>t=>{if(t.source!==e.iframeRef.current?.contentWindow)return;"null"!==t.origin&&t.origin!==window.origin&&console.warn(`Message from origin ${t.origin} can be ignored!`,t.data);let n=e=>{t.source?.postMessage&&t.source?.postMessage(e,"*")};if(console.info("Received message from game:",{origin:t.origin,data:t.data}),"REQUEST"===t.data.dir)switch(t.data.type){case c.HANDSHAKE:if(t.data.payload){let n=t.data.payload,i=Array.isArray(n.gameWillShow)?n.gameWillShow:[];i&&e.setGameCapabilities({gameTime:i.includes("GAME_TIME"),playerBalance:i.includes("PLAYER_BALANCE"),legalClaims:i.includes("LEGAL_CLAIMS"),loginTime:i.includes("LOGIN_TIME")})}n({type:c.HANDSHAKE,dir:"RESPONSE",requestId:t.data.requestId,payload:{result:"OK",gameState:{isFullscreen:e.isFullscreen}}});break;case c.GET_ISMOBILE:n({type:c.GET_ISMOBILE,dir:"RESPONSE",requestId:t.data.requestId,payload:(0,nb.Z3)()});break;case c.REDIRECT_TO:let i=nL(t.data.payload);n({type:c.REDIRECT_TO,dir:"RESPONSE",requestId:t.data.requestId,payload:"OK"}),e.handleRouterRedirect(i);break;case c.GAME_SPIN_START:e.pauseBalanceUpdates(),n({type:c.GAME_SPIN_START,dir:"RESPONSE",requestId:t.data.requestId,payload:"OK"});break;case c.GAME_SPIN_END:e.resumeBalanceUpdates(),n({type:c.GAME_SPIN_END,dir:"RESPONSE",requestId:t.data.requestId,payload:"OK"});break;case c.RELOAD:e.reloadGameSession&&e.reloadGameSession(),n({type:c.RELOAD,dir:"RESPONSE",requestId:t.data.requestId,payload:e.reloadGameSession?"OK":"ERROR"});break;default:n({type:c.ERROR,dir:"RESPONSE",requestId:t.data.requestId,payload:`Unsupported message type ${t.data.type}`})}},nR=e=>{let{isFullscreen:t}=(0,m.useContext)(G),{pauseBalanceUpdates:n,resumeBalanceUpdates:i,reloadGameSession:a,setGameCapabilities:r,setSendMessageToGameIframeFunction:o}=(0,m.useContext)(nP),s=(0,m.useCallback)(t=>{e.iframeRef.current?.contentWindow?.postMessage(t,"*")},[e.iframeRef]);(0,m.useEffect)(()=>{s({dir:"REQUEST",type:t?c.FULLSCREEN_ON:c.FULLSCREEN_OFF})},[s,t]),(0,m.useEffect)(()=>{o(()=>s)},[s,o]),nj(!0,nZ({...e,isFullscreen:t,pauseBalanceUpdates:n,resumeBalanceUpdates:i,reloadGameSession:a,setGameCapabilities:r}))},nB=e=>t=>{switch(t.data.command){case"com.egt-bg.exit":e.onExitGame();break;case"com.egt-bg.reload":e.onReloadGame();break;case"com.egt-bg.launchGame":let n=e.gameKey.toLowerCase().replace("egt_",""),i=t.data.gin;i&&Number(n)&&i!==Number(n)&&e.onRedirectGame(`egt_${i}`)}},nD=e=>{let{gameState:t}=(0,m.useContext)(nP);nj(t?.provider==="egt",nB({...e,gameKey:t?.key||""}))};let nM=f.ZP.div.withConfig({componentId:"sc-90e922ae-0"})(["height:100%;width:100%;",""],e=>{let{width:t,height:n}=e;return(0,f.iv)(["iframe{width:","px !important;height:","px !important;}"],t||0,n||0)});var nF=e=>{let{children:t}=e,[n,i]=(0,m.useState)({width:void 0,height:void 0}),a=(0,m.useRef)(null);return(0,m.useLayoutEffect)(()=>{let e=()=>{i({width:a.current?.offsetWidth,height:a.current?.offsetHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),(0,u.jsx)(nM,{ref:a,...n,children:t})};let nT=f.ZP.iframe.withConfig({componentId:"sc-3f6f69c1-0"})(["width:100%;height:100%;flex:1;"]),nA=m.forwardRef((e,t)=>{let{src:n,title:i}=e;return console.info(`Rendering the iframe ${i}`,n),(0,u.jsx)(nT,{src:n,title:i,ref:t,sandbox:"allow-scripts allow-same-origin allow-popups allow-top-navigation allow-forms",allow:"",referrerPolicy:"origin",name:"game_iframe",scrolling:"no"})});nA.displayName="GameIframe";let nO=m.memo(nA),nG=m.forwardRef((e,t)=>{let{src:n,title:i,handleRouterRedirect:a}=e,r=(0,m.useRef)(null),{reload:o,query:s}=(0,I.useRouter)(),{demo:l,gameKey:c,...d}=s;return nR({handleRouterRedirect:a,iframeRef:r}),nD({onReloadGame:()=>{o()},onExitGame:()=>{a(h.default.index)},onRedirectGame:e=>{a(h.default.game(e,l?.toString().toLowerCase()==="true",d)?.as?.toString()||"")}}),(0,u.jsx)(nO,{src:n,title:i,ref:(0,eb.l)([t,r])})});nG.displayName="GameIframeWithListener";let nN=m.memo(nG),nH=m.forwardRef((e,t)=>{let n=(0,nb.oK)();return n&&n<13?(0,u.jsx)(nF,{children:(0,u.jsx)(nN,{...e,ref:t})}):(0,u.jsx)(nN,{...e,ref:t})});nH.displayName="GameIframeWithFix";let nV=m.memo(nH);f.ZP.div.withConfig({componentId:"sc-fd3e605f-0"})(["flex:1;display:flex;flex-direction:column;margin:0 auto;width:100%;position:relative;"," ",""],B.B.sm`
    flex-direction: row;
  `,B.B.lg`
    max-width: 80%;
  `),f.ZP.div.withConfig({componentId:"sc-fd3e605f-1"})(["margin:8px;position:absolute;top:0;right:0;",""],B.B.sm`
    margin: 12px;
  `);let n$=f.ZP.div.withConfig({componentId:"sc-fd3e605f-2"})(["background:",";width:100%;flex:1;display:flex;align-items:center;justify-content:center;",""],e=>{let{theme:t}=e;return t.colors.primary_005},B.B.md`
    border: 1px solid ${e=>{let{theme:t}=e;return t.colors.primary_010}};
    width: calc(100% - 2px);
  `),nz=f.ZP.div.withConfig({componentId:"sc-fd3e605f-3"})(["font-size:1.5rem;"]);var nU=e=>{let{iframeSrc:t,isLoading:n,title:i,error:a}=e,[r]=(0,C.$G)(s.games),{push:o}=(0,I.useRouter)();return(0,u.jsx)(n$,{children:n?(0,u.jsx)(nz,{children:"loading ..."}):(0,u.jsx)(u.Fragment,{children:t?(0,u.jsx)(nV,{src:t,title:i,handleRouterRedirect:o}):(0,u.jsx)(nz,{children:r(a?"detail.loadingError":"detail.notFound")})})})},nY=n(59791),nK=n(301),nq=n(63734),nJ=n(14125),nW=n(82485),nX=e=>{let{children:t}=e,{sendMessageToGameIframe:n}=(0,m.useContext)(nP);return(0,m.useEffect)(()=>{n(ny({type:c.PLAYER_BALANCE,payload:t}))},[t,n]),null},nQ=e=>{let{children:t}=e;return(0,u.jsx)(u.Fragment,{children:t})},n0=e=>{let{showData:t,type:n}=e,{gameState:i}=(0,m.useContext)(nP),{clearLoss:a,monthlyClearLoss:r}=(0,m.useContext)(nW.V),[o,s]=(0,m.useState)(),l=i?.balanceState.pauseUpdates||!1;(0,m.useEffect)(()=>{s(e=>{let t="all"===n?a:r;return void 0===e?t:l?e:t})},[a,r,l,s,n]);let c=(0,m.useMemo)(()=>void 0!==o?(0,nJ.T4)(0===o?0:-1*o):void 0,[o]);return void 0!==c?t?(0,u.jsx)(nQ,{children:c}):(0,u.jsx)(nX,{children:c}):null},n1=n(55203),n3=n(52867);let n2=()=>{let{gameState:e}=(0,m.useContext)(nP),{loginTimestamp:t}=(0,m.useContext)(Y.S),{isClient:n}=(0,n3.q)(),i=(0,m.useMemo)(()=>n1.appConfig.casino.gameLegalInfo.playerBalance&&!e?.isDemo&&!e?.gameShows.playerBalance,[e?.gameShows.playerBalance,e?.isDemo]),a=(0,m.useMemo)(()=>n1.appConfig.casino.gameLegalInfo.playerBalance&&!e?.isDemo&&!e?.gameShows.playerBalance,[e?.gameShows.playerBalance,e?.isDemo]),r=(0,m.useMemo)(()=>n1.appConfig.casino.gameLegalInfo.playerBalance&&!e?.isDemo&&!e?.gameShows.playerBalance,[e?.gameShows.playerBalance,e?.isDemo]),o=(0,m.useMemo)(()=>n1.appConfig.casino.gameLegalInfo.legalClaims&&!e?.gameShows.legalClaims,[e?.gameShows.legalClaims]);return{shouldDisplayClearLoss:i,shouldDisplayMonthlyClearLoss:r,shouldDisplayLoginTime:(0,m.useMemo)(()=>n1.appConfig.casino.gameLegalInfo.loginTime&&!!t&&n&&!e?.gameShows.loginTime,[e?.gameShows.loginTime,n,t]),shouldDisplayLegalClaims:o,shouldDisplayBalance:a}},n7=f.ZP.div.withConfig({componentId:"sc-85f66f86-0"})(["opacity:0.7;letter-spacing:-0.009rem;font-size:1.5rem;line-height:2rem;color:",";"],e=>{let{theme:t}=e;return t.colors.primary}),n5=f.ZP.span.withConfig({componentId:"sc-85f66f86-1"})(["font-variant-numeric:tabular-nums;color:",";"],e=>{let{theme:t}=e;return t.colors.primary}),n6=f.ZP.div.withConfig({componentId:"sc-85f66f86-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:4rem;background:#000;"]);var n8=e=>{let[t]=(0,C.$G)(s.games),{shouldDisplayClearLoss:n,shouldDisplayMonthlyClearLoss:i}=n2();return(0,u.jsx)(nq.Z,{open:e.isOpen,onClose:e.onClose,children:(0,u.jsxs)(n6,{children:[i?(0,u.jsxs)(n7,{children:[t("detail.footer.monthlyClearLost"),": ",(0,u.jsx)(n5,{children:(0,u.jsx)(n0,{showData:!0,type:"monthly"})})]}):null,n?(0,u.jsxs)(n7,{children:[t("detail.footer.clearLost"),":"," ",(0,u.jsx)(n5,{children:(0,u.jsx)(n0,{showData:!0,type:"all"})})]}):null]})})};let n4=f.ZP.footer.withConfig({componentId:"sc-6bc0483f-0"})(["background:",";"," display:flex;flex-direction:column;row-gap:0.4rem;padding:0.4rem 0;"," width:100%;"],e=>{let{theme:t}=e;return t.gameDetail?.footer?.background??t.colors.universal_020},e=>{let{theme:t}=e;return t.gameDetail?.footer?.backgroundBlendMode&&(0,f.iv)(["background-blend-mode:",";"],t.gameDetail.footer.backgroundBlendMode)},B.B.sm`
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.2rem;
    row-gap: .2rem;


    height: 1.8rem;
  `),n9=f.ZP.div.withConfig({componentId:"sc-6bc0483f-1"})(["display:flex;justify-content:center;align-items:center;flex-wrap:wrap;column-gap:1.2rem;"]);f.ZP.div.withConfig({componentId:"sc-6bc0483f-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 5px;"," ",""],B.B.sm`
    flex-direction: row;
    justify-content: space-between;
  `,B.B.md`
    padding: 0;
    background: transparent;
  `);let ie=f.ZP.div.withConfig({componentId:"sc-6bc0483f-3"})(["opacity:0.7;letter-spacing:-0.009rem;font-size:7px;line-height:0.84rem;"]);(0,f.ZP)(ie).withConfig({componentId:"sc-6bc0483f-4"})(["&:hover{opacity:0.8;cursor:pointer;color:",";}"],e=>{let{theme:t}=e;return t.colors.alpha}),f.ZP.span.withConfig({componentId:"sc-6bc0483f-5"})(["font-variant-numeric:tabular-nums;"]);let it=f.ZP.div.withConfig({componentId:"sc-6bc0483f-6"})(["aspect-ratio:1;border:0.1rem solid ",";border-radius:50%;overflow:hidden;display:flex;justify-content:center;align-items:center;"],e=>{let{theme:t}=e;return t.colors.primary}),ii=f.ZP.span.withConfig({componentId:"sc-6bc0483f-7"})(["font-size:0.4rem;padding:0.1rem;"]),ia=f.ZP.button.withConfig({componentId:"sc-6bc0483f-8"})(["border-radius:50%;border:0.1rem solid ",";opacity:0.6;background:none;width:1rem;height:1rem;margin-inline:0.1rem;display:flex;justify-content:center;align-items:center;padding:0.2rem 0.3rem;"],e=>{let{theme:t}=e;return t.colors.primary}),ir=f.ZP.div.withConfig({componentId:"sc-182cbcde-0"})(["display:flex;gap:8px;align-items:center;"]);var io=e=>{let{showLegalClaims:t}=e,[n]=(0,C.$G)(s.games);return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsx)(ie,{children:(0,u.jsx)(ir,{children:(0,u.jsx)(it,{children:(0,u.jsx)(ii,{children:`${n("detail.footer.ageShort",{age:n1.appConfig.minRegistrationAge})}+`})})})}):null})};let is=e=>{let{footerWarningsComponent:t}=e,[n,i]=(0,m.useState)(!1),{shouldDisplayLoginTime:a,shouldDisplayLegalClaims:r,shouldDisplayBalance:o}=n2();return(0,u.jsx)(n4,{children:(0,u.jsxs)(n9,{children:[a?(0,u.jsx)(ie,{children:(0,u.jsx)(nK.Z,{})}):null,(0,u.jsx)(n9,{children:t({showLegalClaims:r})}),o?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ia,{onClick:()=>i(!0),children:(0,u.jsx)(nY.LL$,{color:"#fff"})}),(0,u.jsx)(n8,{isOpen:n,onClose:()=>i(!1)})]}):null]})})},il=()=>(0,u.jsx)(is,{footerWarningsComponent:e=>(0,u.jsx)(io,{...e})}),ic=e=>{let{title:t,isDemo:n,gameKey:i,isLoading:a,iframeSrc:r,error:o,renderGameNavigation:s,renderActionButtons:l,renderGameFooter:c,renderGame:d}=e,{elementRef:p,toggleFullscreen:g,isSupported:h,isFullscreen:x}=H();function f(e,t,n){return"function"==typeof n?n(t):(0,u.jsx)(e,{...t})}let w=(0,m.useMemo)(()=>f(ng,{title:t,isDemo:n,gameKey:i,isLoading:a,showJackpots:n1.appConfig.casino.inGame.showJackpots},s),[i,n,a,s,t]),v=(0,m.useMemo)(()=>f(nC,{toggleFullscreen:g,isSupported:h,isFullscreen:x},l),[g,h,x,l]);return{gameFooter:(0,m.useMemo)(()=>f(il,{},c),[c]),actionButtons:v,gameNavigation:w,game:(0,m.useMemo)(()=>f(nU,{title:t,iframeSrc:r,isLoading:a,error:o},d),[o,r,a,d,t]),elementRef:p}},id=f.ZP.div.withConfig({componentId:"sc-a6bd6f40-0"})(["display:flex;flex-direction:column;flex:1;margin:0 auto;width:100%;position:relative;"," ",""],B.B.sm`
    flex-direction: row;
  `,B.B.lg`
    max-width: 80%;
  `),iu=f.ZP.div.withConfig({componentId:"sc-a6bd6f40-1"})(["margin:8px;position:absolute;top:0;right:0;",""],B.B.sm`
    margin: 12px;
  `),im=f.ZP.div.withConfig({componentId:"sc-a6bd6f40-2"})(["background:",";width:100%;flex:1;display:flex;align-items:center;justify-content:center;",""],e=>{let{theme:t}=e;return t.colors.primary_005},B.B.md`
    border: 1px solid ${e=>{let{theme:t}=e;return t.colors.primary_010}};
    width: calc(100% - 2px);
  `),ip=f.ZP.div.withConfig({componentId:"sc-a6bd6f40-3"})(["font-size:1.5rem;"]);var ig=e=>{let{iframeSrc:t,isLoading:n,title:i,error:a,actionButtons:r}=e,[o]=(0,C.$G)(s.games),{isFullscreen:l}=(0,m.useContext)(G),{push:c}=(0,I.useRouter)();return(0,u.jsxs)(id,{isFullscreen:l,children:[(0,u.jsx)(iu,{children:r}),(0,u.jsx)(im,{children:n?(0,u.jsx)(ip,{children:"loading ..."}):(0,u.jsx)(u.Fragment,{children:t?(0,u.jsx)(nV,{src:t,title:i,handleRouterRedirect:c}):(0,u.jsx)(ip,{children:o(a?"detail.loadingError":"detail.notFound")})})})]})};let ih={initial:{height:0,opacity:0},animate:{opacity:1,height:"51px",transition:{duration:.5}},exit:{opacity:0,height:0,transition:{duration:.5}}};var ix=e=>{let{gameNavigation:t}=e,{isFullscreen:n}=(0,m.useContext)(G);return(0,u.jsx)(ep.M,{initial:!1,children:!n&&(0,u.jsx)(eh.E.div,{...ih,children:t},`motionDiv_${n}`)})},iw=e=>{let{gameFooter:t}=e;return t};let iv=f.ZP.div.withConfig({componentId:"sc-cec98b68-0"})(["height:100%;min-height:100dvh;background:linear-gradient(0deg,rgba(0,0,0,1) 5%,rgba(0,0,0,0) 20%),url('","') no-repeat center center;background-size:cover;display:flex;flex-direction:column;padding:0;"],e=>{let{bgImage:t}=e;return t||""});f.ZP.div.withConfig({componentId:"sc-cec98b68-1"})(["flex:1;display:flex;flex-direction:column;margin:0 auto;width:100%;position:relative;"," ",""],B.B.sm`
    flex-direction: row;
  `,B.B.xl`
    max-width: 1920px;
  `);let iC=f.ZP.div.withConfig({componentId:"sc-cec98b68-2"})(["display:flex;flex-direction:column;flex:1;"]);var ib=e=>{let{iframeSrc:t,isDemo:n,isLoading:i,gameKey:a,title:r,bgImage:o,error:s,renderGameNavigation:l,renderActionButtons:c,renderGameFooter:d,renderGame:p}=e,{isFullscreen:g}=(0,m.useContext)(G),{gameFooter:h,actionButtons:x,gameNavigation:f,elementRef:w}=ic({title:r,isDemo:n,gameKey:a,isLoading:i,iframeSrc:t,error:s,renderGameNavigation:l,renderActionButtons:c,renderGameFooter:d,renderGame:p});return(0,u.jsxs)(iv,{bgImage:o,ref:w,children:[(0,u.jsx)(ix,{gameNavigation:f}),(0,u.jsxs)(iC,{children:[(0,u.jsx)(ig,{iframeSrc:t,isLoading:i,title:r,error:s,actionButtons:x}),(0,u.jsx)(iw,{gameFooter:h})]})]})},iy=()=>{let[e]=(0,C.$G)(s.games);return(0,u.jsxs)(w.Z,{isOpen:!0,children:[(0,u.jsx)(y,{children:e("generalErrorModal.title")}),(0,u.jsx)(j,{children:e("generalErrorModal.text")}),(0,u.jsx)(k,{children:(0,u.jsx)(x.ZP,{variant:"primary",href:h.default.contact,fullWidth:!0,children:e("generalErrorModal.toContact")})})]})},ij=e=>{(0,m.useEffect)(()=>{let t=document.getElementById("coworkers-app");if(t)return e?t.classList.add("hide"):t.classList.remove("hide"),()=>{t.classList.remove("hide")}},[e])},ik=n(39857),i_=n(31718),iE=e=>{let{children:t,pageTitle:n,pageDescription:i,keywords:a}=e,[r]=(0,C.$G)(),o=n||r("pageTitle",{appName:n1.appConfig.appName}),s=i||r("description")||"";return(0,u.jsxs)(m.Fragment,{children:[(0,u.jsx)(i_.Z,{pageTitle:o,description:s,keywords:a}),t]})},iI=n(4768),iP=n(39869),iS=n(47777),iL=e=>{let{data:t,isDemo:n,isLoading:i,children:a}=e,{prepareGameSession:r,gameError:o,gameState:s,endGameSession:l}=(0,m.useContext)(nP),c=t?.key,d=t?.provider?.normalizedName;(0,m.useEffect)(()=>{c?r({gameKey:c,isDemo:n,provider:d}):l()},[r,n,c,l,d]);let u=s?.iframeSrc;return a({gameKey:t?.key||"",title:t?.name||"",bgImage:t?.coverUrl,isDemo:n,iframeSrc:u||"",isLoading:i||!u,error:null===t?"Game not found":"",gameError:o})},iZ=e=>{let{gameKey:t,isDemo:n,routes:i,loginModal:a,cannotPlayModal:r,children:o,onGameNameChange:s,dataExpiredModal:l}=e,c=(0,I.useRouter)(),{isLoading:d,fetchGamesData:p,selectGameBySlug:g}=(0,m.useContext)(ey.Jx),{isAuthenticated:h}=(0,m.useContext)(Y.S),{isAccReqLoading:x,accountRequirements:f,isOnlinePlayingBlocked:w}=(0,m.useContext)(iS.J);(0,m.useEffect)(()=>{p()},[p]);let v=(0,iI.Cc)(t),C=g(v),b=()=>{if(i.demoGame){let e=i.demoGame(v);c.push(e.href,e.as)}else c.push(i.lobby||"/")},y=C?.name;(0,m.useEffect)(()=>{s&&y&&s(y)},[s,y]);let{onlineAccountState:j}=f,{canPlay:k,cannotPlayReasons:_}=j||{};(0,m.useEffect)(()=>{w&&c.replace(i.lobby||"/")},[c,w,i]);let E=(0,m.useMemo)(()=>(k||n)&&C||null,[k,C,n]);return w?null:(0,u.jsxs)(u.Fragment,{children:[!n&&(0,u.jsxs)(u.Fragment,{children:[!h&&a&&a({redirectToDemo:b}),(()=>{if(h&&!1===k){let e=f.onlineAccountState?.accountState==="FullAccount";try{let t=(0,iP.v)(_);if(r&&("AmlConditionsNotAccepted"===t||"Unknown"===t||!e))return r({redirectToDemo:b});if(l&&"InvalidIdentityDocument"===t&&e)return l({redirectToDemo:b})}catch(e){if(e instanceof iP._)return null;throw e}}return null})()]}),(0,u.jsx)(N,{children:(0,u.jsx)(nS,{children:(0,u.jsx)(iL,{data:E,isDemo:n,isLoading:d||!!h&&x,children:o})})})]})},iR=!0,iB=e=>{let{paramsGameKey:t,queryIsDemo:n,renderGameNavigation:i,renderActionButtons:a,renderGameFooter:r}=e,[o]=(0,C.$G)(s.common),[l]=(0,C.$G)(s.games),[c,d]=(0,m.useState)(t||""),f=(0,p.useSearchParams)(),{isAnyLimitReached:w}=(0,m.useContext)(nW.V);ij(!!ik.J.NEXT_PUBLIC_DAKTELA_URL);let v=(0,m.useRef)(w);(0,m.useEffect)(()=>{v.current&&!w&&window.location.reload(),v.current=w},[w]);let b=()=>({providerslugs:f.getAll(g.h.providerslugs),categoryslugs:f.getAll(g.h.categoryslugs),genreslugs:f.getAll(g.h.genreslugs)});return(0,u.jsx)(iE,{pageTitle:o("seo.titleSubpage",{title:c}),pageDescription:o("seo.description"),keywords:o("seo.keywords"),children:(0,u.jsx)(iZ,{gameKey:t,isDemo:n,routes:{lobby:h.default.index,demoGame:e=>h.default.game(e,!0,b())},loginModal:e=>{let{redirectToDemo:t}=e;return(0,u.jsx)(A,{onCancel:t})},cannotPlayModal:e=>{let{redirectToDemo:t}=e;return(0,u.jsx)(_,{onCancel:t})},dataExpiredModal:e=>{let{redirectToDemo:t}=e;return(0,u.jsx)(_,{onCancel:t,customText:l("dataExpiredModal.text"),customOkButton:(0,u.jsx)(x.ZP,{variant:"primary",href:h.default.profile.settings.documentsUpload.index,fullWidth:!0,children:l("dataExpiredModal.buttonText")}),contactSecondButton:!0})},onGameNameChange:d,children:e=>(0,u.jsxs)(u.Fragment,{children:["RVO_EXCLUDED"===e.gameError&&(0,u.jsx)(E,{}),("LIMITS_REACHED"===e.gameError||w)&&(0,u.jsx)(P,{}),"PLAYER_IS_PEO"===e.gameError&&(0,u.jsx)(O,{}),"GENERAL_ERROR"===e.gameError&&(0,u.jsx)(iy,{}),(0,u.jsx)(ib,{...e,renderGameFooter:r,renderActionButtons:a,renderGameNavigation:i})]})})})}},482:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(74512),a=n(32735),r=n(39354);let o=e=>{let{targetTimestamp:t,onTimeChange:n,useShortFormat:i}=e,[o,s]=(0,a.useState)(t-Date.now());return(0,a.useEffect)(()=>{let e=setInterval(()=>{s(t-Date.now())},1e3);return()=>{clearInterval(e)}},[t]),(0,a.useEffect)(()=>{n&&n(o)},[o,n]),{value:i?(0,r.uO)(o):(0,r.At)(o),diff:o}};var s=e=>{let{timestamp:t,onExpire:n,useShortFormat:r}=e,{value:s,diff:l}=o({targetTimestamp:t,useShortFormat:r});return(0,a.useEffect)(()=>{l<0&&n()},[l,n]),(0,i.jsx)(i.Fragment,{children:s})}},301:function(e,t,n){"use strict";var i=n(74512),a=n(85511),r=n(32735),o=n(87696),s=n(16092);t.Z=e=>{let[t]=(0,s.$G)(s.NS.common),{loginTimestamp:n,isAuthenticated:l}=(0,r.useContext)(o.S),[c]=(0,r.useState)(Date.now()-(n??0)),{value:d}=(0,a.C)({initTime:c,dir:"up"});return(0,i.jsx)(i.Fragment,{children:`${t("footer.secondary.loginTime")}: ${d}`})}},82835:function(e,t,n){"use strict";var i,a;n.d(t,{h:function(){return i}}),(a=i||(i={})).providerslugs="providerslugs",a.categoryslugs="categoryslugs",a.genreslugs="genreslugs"},861:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(74512),a=n(32735),r=n(29227),o=n(79832),s=n(43857),l=n(75199);let c=n(10608).ZP.div.withConfig({componentId:"sc-d85018cf-0"})(["display:flex;margin-top:24px;*:not(:first-child){margin-left:24px;}"]);var d=e=>{let{message:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{title:"Na str\xe1nce se vyskytla chyba",text:t,variant:"error"}),(0,i.jsxs)(c,{children:[(0,i.jsx)(s.Co,{onClick:()=>{location.reload()},variant:"primary",children:"Refresh"}),(0,i.jsx)(s.ZP,{href:l.default.index,variant:"ghost",children:"Lobby"}),(0,i.jsx)(s.ZP,{href:l.default.contact,variant:"ghost",children:"Kontakt"})]})]})};class u extends a.Component{componentDidCatch(e,t){this.setState({error:e}),console.error(e),console.log(t),(0,r.eK)(e,t)}render(){return this.state.error?!1===this.props.showErrorFallback?null:(0,i.jsx)(d,{message:this.state.error?.toString?.()}):this.props.children}constructor(...e){super(...e),this.state={error:null}}}var m=u},52867:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var i=n(32735);let a=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(!0)},[]),{isClient:e}}},31718:function(e,t,n){"use strict";var i=n(74512);n(32735);var a=n(46582),r=n.n(a);t.Z=e=>{let{pageTitle:t,description:n,keywords:a}=e,o=`${t}`;return(0,i.jsxs)(r(),{children:[(0,i.jsx)("title",{children:o},"title"),(0,i.jsx)("meta",{name:"description",content:n},"description"),a&&(0,i.jsx)("meta",{name:"keywords",content:a},"keywords"),(0,i.jsx)("meta",{property:"og:title",content:t},"ogtitle"),(0,i.jsx)("meta",{property:"og:description",content:n},"ogdesc")]})}},21453:function(e,t,n){"use strict";n.d(t,{o_:function(){return b},r2:function(){return _},v1:function(){return y},DJ:function(){return v},Is:function(){return I},ZP:function(){return k},kr:function(){return f},zC:function(){return h}});var i=n(55203),a=n(34507),r=n(43653),o=n.n(r);class s{constructor(e={}){this.royalJackpot={get:()=>this.instance.request({url:"/royalJackpot/get",method:"GET",responseType:"json"})},this.instance=o().create({...e,baseURL:e.baseURL||""})}}class l{constructor(e={}){this.ProgressiveBonus={GetInfo:()=>this.instance.request({url:"",method:"GET",responseType:"json",headers:{"cache-control":"no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0",expires:"0, Tue, 01 Jan 1980 1:00:00 GMT",pragma:"no-cache"}})},this.instance=o().create({...e,baseURL:e.baseURL||""})}}class c{constructor(e={}){this.DisplayByCasinoId={GetGroup:()=>this.instance.request({url:"",method:"GET",responseType:"json",headers:{"cache-control":"no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0",expires:"0, Tue, 01 Jan 1980 1:00:00 GMT",pragma:"no-cache"}})},this.instance=o().create({...e,baseURL:e.baseURL||""})}}let d=n(34500).uo;class u{constructor(e={}){this.Jackpots=()=>this.instance.request({url:"/Jackpots",method:"GET",responseType:"json"}),this.instance=o().create({...e,baseURL:e.baseURL||""})}}let m=n(3441).jy;class p{constructor(e={}){this.DisplayByCasinoId={GetJackpotLevels:()=>this.instance.request({url:"",method:"GET",responseType:"json",headers:{"cache-control":"no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0",expires:"0, Tue, 01 Jan 1980 1:00:00 GMT",pragma:"no-cache"}})},this.instance=o().create({...e,baseURL:e.baseURL||""})}}let g=new s({baseURL:i.J.NEXT_PUBLIC_TECH4BET_JACKPOT}),h=()=>g,x=new l({baseURL:i.J.NEXT_PUBLIC_SYNOT_JACKPOT}),f=()=>x,w=new c({baseURL:i.J.NEXT_PUBLIC_KAJOT_JACKPOT}),v=()=>w,C=new p({baseURL:i.J.NEXT_PUBLIC_ADELL_JACKPOT}),b=()=>C,y=()=>d,j=new u({baseURL:i.J.NEXT_PUBLIC_SPINFINITY_JACKPOT}),k=()=>j,_=()=>m,E=new a.V0({baseURL:i.J.NEXT_PUBLIC_PLATFORM_JACKPOT}),I=()=>E},50673:function(e,t,n){"use strict";n.d(t,{_:function(){return u}});var i=n(32735),a=n(52767),r=n(72032),o=n(1209),s=n(55203),l=n(21453),c=n(74402),d=n(45212);let u=()=>{let{data:e,setData:t,loading:n,setLoading:u,error:m,setError:p,getError:g}=(0,a.F)(),h=(0,l.Is)(),x=(0,i.useCallback)(async()=>{if(s.J.NEXT_PUBLIC_PLATFORM_JACKPOT){p(void 0),u(!0);try{let{data:e}=await h.jackpot.getCapiActive(),n={provider:"platform",currency:e[0]?.currency??s.appConfig.currency.code,levels:e.sort((e,t)=>(t.jackpotSettings?.minimalPayoutValue??0)-(e.jackpotSettings?.minimalPayoutValue??0)).map((e,t)=>({name:e.jackpotSettings?.settingsName??"",currentValue:e.currentValue??0,order:t+1,displayValue:(0,o.hj)(e.currentValue)?(0,c.T)(e.currentValue,{showCurrency:!0,minimumFractionDigits:2}):"",image:d.w.platform_jackpot((e.jackpotSettings?.settingsName||"jackpot").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"_"))}))};t(n)}catch(e){p(g(e)),t(void 0)}u(!1)}},[g,t,p,u,h]);return(0,r.Y)(x,5e3,[]),(0,i.useEffect)(()=>{x()},[x]),{data:e,loading:n,error:m,load:x}}},45212:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});let i={synot_jackpot:e=>`/static/images/jackpots/synot/jackpot-${e}.webp`,kajot_jackpot:e=>`/static/images/jackpots/kajot/jackpot-${e}.webp`,spinfinity_jackpot:e=>`/static/images/jackpots/spinfinity/jackpot-${e}.webp`,apollo_jackpot:e=>`/static/images/jackpots/apollo/jackpot-${e}.webp`,adell_jackpot:e=>`/static/images/jackpots/adell/jackpot-${e}.webp`,tech4bet_jackpot:"/static/images/jackpots/tech4bet/jackpot-royal.webp",platform_jackpot:e=>`/static/images/jackpots/platform/platform-${e}.webp`,amusnet_jackpot:e=>{let t=e=>`/static/images/jackpots/amusnet/jackpot-${e}.webp`;switch(e){case"leveliv":return t("4");case"leveliii":return t("3");case"levelii":return t("2");default:return t("1")}}}},74402:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(14125),a=n(1209);let r=(e,t)=>(0,a.hj)(e)?(0,i.T4)(Math.floor(100*e)/100,t):"---"},57149:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var i=n(32735),a=n(47777),r=n(55203),o=n(87696);let s=()=>{let{accountRequirements:e,isAccReqLoading:t}=(0,i.useContext)(a.J),{isAuthenticated:n}=(0,i.useContext)(o.S),[s,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{s||t||l(!0)},[s,t]);let c=e.onlineAccountState?.accountState==="FullAccount";return{isEnabled:r.appConfig.casino.panicButton.show&&n&&c,initialized:s}}},39952:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var i=n(74512),a=n(32735),r=n(39354),o=n(482),s=n(95638);let l=e=>{let{startTime:t,endTime:n,onTournamentStart:l,onTournamentEnd:c,useShortFormat:d}=e,[u,m]=(0,a.useState)(),[p]=(0,s.$G)(s.NS.tournaments),g=(0,a.useCallback)(()=>{let e=new Date(t).getTime();e-Date.now()>0?m({timestamp:e,variant:"start"}):m({timestamp:new Date(n).getTime(),variant:"end"})},[t,n]);return((0,a.useEffect)(()=>{g()},[g]),u)?"start"===u.variant?{variant:u.variant,text:p("startsIn")+":",component:(0,i.jsx)(o.Z,{timestamp:u.timestamp,useShortFormat:d,onExpire:()=>{g(),l&&l()}})}:u.timestamp>Date.now()?{variant:u.variant,text:p("tournamentsEndsIn")+":",component:(0,i.jsx)(o.Z,{timestamp:u.timestamp,onExpire:()=>{g(),c&&c()},useShortFormat:d??!0})}:{variant:u.variant,text:p("ended"),component:(0,r.J_)(new Date(n))}:{variant:void 0,text:void 0,component:void 0}}},26131:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(32735),a=n(54168),r=n(62807),o=n(87696),s=n(95638);let l=()=>{let e=(0,a.LE)(),[t]=(0,s.$G)(s.NS.tournaments),{userData:n}=(0,i.useContext)(o.S),{showGlobalMessage:l}=(0,i.useContext)(r.E),c=n?.playerId;return{registerForTournament:(0,i.useCallback)(async n=>{let{roundId:i}=n;try{let{data:n}=await e.postCapiV2OnlingTournamentsRegisterPlayerRound({playerId:c,roundId:i});return l({title:t("success.activate")},"success"),n}catch(e){console.error(e),l({title:t("error.activate")},"error")}},[c,e,l,t])}}},95638:function(e,t,n){"use strict";n.d(t,{$G:function(){return r.$G},ID:function(){return r.ID},NS:function(){return a}});var i,a,r=n(16092);(i=a||(a={})).tournaments="__tournaments",i.shared="__shared",i.errors="__errors"},39869:function(e,t,n){"use strict";n.d(t,{_:function(){return i},v:function(){return a}});class i extends Error{constructor(){super('Cannot determine "cannotPlayReasons" when no reasons has been passed. Haven\'t you forgotten to add condition when invoking "determineReasonByPriority"?')}}let a=e=>{if(!e)throw new i;for(let t of e)switch(t.reason){case"AmlConditionsNotAccepted":return"AmlConditionsNotAccepted";case"InvalidIdentityDocument":return"InvalidIdentityDocument"}return"Unknown"}},85511:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var i=n(32735),a=n(39354);let r=e=>{let{initTime:t,onTimeChange:n,dir:r,useShortFormat:o}=e,[s,l]=(0,i.useState)(t||0);(0,i.useEffect)(()=>{let e=setInterval(()=>{l(e=>e+("down"===r?-1e3:1e3))},1e3);return()=>{clearInterval(e)}},[r]),(0,i.useEffect)(()=>{n&&n(s)},[s,n]),(0,i.useEffect)(()=>{l(t||0)},[t]);let c=(0,i.useCallback)(()=>{l(t||0)},[t]);return{value:o?(0,a.uO)(s):(0,a.At)(s),diff:s,reset:c}}}},function(e){e.O(0,[9371,6434,4940,2385,6251,2888,9774,179],function(){return e(e.s=16742)}),_N_E=e.O()}]);