1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7459],{65007:function(e,l,a){a.r(l);var n=a(52322),i=a(27553),t=a(9403),s=a(66976),d=a(2784),o=a(94928),r=a(84454);let c=e=>{var l,a,c,u,m;let{provider:v,publicConfigUrl:g}=e,[h,p]=(0,d.useState)(!1),[_,j]=(0,t.Y)({rootMargin:"100px",triggerOnce:!0,threshold:.1}),{locale:x}=(0,o.useI18nLocalization)(),{games:f,isLoading:b}=(0,s.sO)({enabled:j,payload:{isLobby:!0,languageId:null==x?void 0:x.activeLocaleID,subProviderId:null==v?void 0:v.id,Page:1}}),{gameSubProviders:N}=(0,s.fn)({includeProviders:!0});return((0,d.useEffect)(()=>{j&&p(!0)},[j]),(null==f?void 0:null===(l=f.Data)||void 0===l?void 0:null===(a=l.Games)||void 0===a?void 0:a.length)===0)?null:(0,n.jsx)("div",{ref:_,className:"p-provider pp-providersGameProvider--component",children:j&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"panel__header heading",children:(null==v?void 0:v.name)?(0,n.jsx)("img",{src:"".concat(null==g?void 0:g.providersImgUrl).concat((0,i.E)(v.id.toString())),alt:null==v?void 0:v.name,width:155,height:67}):(0,n.jsx)("h2",{className:"heading__text",children:null==v?void 0:v.name})}),(0,n.jsx)("div",{className:"panel__body",children:(null==f?void 0:null===(c=f.Data)||void 0===c?void 0:null===(u=c.Games)||void 0===u?void 0:u.length)>0&&h?(0,n.jsx)("div",{className:"games__items",children:(0,n.jsx)(r.GameItems,{games:null==f?void 0:null===(m=f.Data)||void 0===m?void 0:m.Games,publicConfigUrl:g,gamesSubproviders:N})}):(0,n.jsx)(n.Fragment,{children:b?(0,n.jsx)("div",{className:"games__loader",children:(0,n.jsx)("div",{className:"fetch-loader",style:{margin:"20px auto"}})}):(0,n.jsx)("div",{children:(0,n.jsx)("p",{children:"No Games Currently Available"})})})})]})},"".concat(null==v?void 0:v.id,"_provider"))};l.default=c},84454:function(e,l,a){a.r(l),a.d(l,{GameItems:function(){return u}});var n=a(52322),i=a(2784),t=a(17542),s=a(20862),d=a(98123),o=a(46e3),r=a(66976),c=a(65007);let u=e=>{let{publicConfigUrl:l,mutateFavouriteGames:a,favourites:t,gamesSubproviders:d,games:r,isJackpotCategory:c=!1}=e,[u,m]=(0,i.useState)(1),{enrichedGames:v}=(0,o.C)({games:r,enabled:c}),g=(0,i.useMemo)(()=>{let e=new Map;return null==d||d.forEach(l=>e.set(null==l?void 0:l.id,l)),e},[d]),h=(0,i.useCallback)(e=>{e&&m(e=>e+1)},[]),p=(0,i.useMemo)(()=>null==v?void 0:v.slice(0,12*u),[v,u]);return(0,n.jsx)(n.Fragment,{children:null==p?void 0:p.map((e,i)=>{let d=g.get(e.SubProviderID);return(0,n.jsx)(s.default,{onScreenHandler:h,game:e,jackpot:e.JackpotPrice?e.JackpotPrice:null,provider:d,publicConfigUrl:l,mutateFavouriteGames:a,favourites:t},e.GameID)})})},m=e=>{var l,a,s,o,m,v;let{subCategories:g,isProviders:h,publicConfigUrl:p,gamesSubproviders:_,mutateFavouriteGames:j,category:x,favourites:f,isLobby:b=!1}=e,[N,I]=(0,i.useState)("all"),[G,k]=(0,i.useState)(null),{t:y}=(0,d.$G)(["lexicons"]),C=e=>{(null==e?void 0:e.gameFilterId)&&(I(null==e?void 0:e.name),k(e.gameFilterId))},w=()=>{I("all"),k(null)};(0,i.useEffect)(()=>{var e;(null==x?void 0:null===(e=x.name)||void 0===e?void 0:e.toLowerCase())!=="live"&&w()},[x]);let S=(0,i.useMemo)(()=>G?{filterId:G}:{categoryId:null==x?void 0:x.id},[G,x]),{games:F,isLoading:D}=(0,r.sO)({enabled:!!(null==x?void 0:x.id)&&(null==x?void 0:x.name)!=="Providers",payload:{isLobby:!0,Page:1,PageSize:1e4,...S}});return(0,n.jsxs)("div",{className:"panel pp-games--component",children:[(0,n.jsx)("div",{className:"panel__header heading",children:(0,n.jsx)("h2",{className:"heading__text",children:y(null==x?void 0:x.name)})}),(null==x?void 0:null===(l=x.name)||void 0===l?void 0:l.toLowerCase())==="live"&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"gameFilter__radiobuttons",children:[(0,n.jsxs)("div",{className:"gameFilter__radiobutton",children:[(0,n.jsx)("input",{id:"all",type:"radio","data-testid":"radio__Games-filterAll",onChange:w,checked:"all"===N}),(0,n.jsxs)("label",{htmlFor:"all",children:[(0,n.jsx)("div",{className:"dot"}),(0,n.jsx)("span",{children:y(t.fo.all)})]})]}),null==g?void 0:g.map((e,l)=>(0,n.jsxs)("div",{className:"gameFilter__radiobutton",children:[(0,n.jsx)("input",{id:null==e?void 0:e.name,type:"radio","data-testid":"radio__Games-filterSubCategory--".concat(null==e?void 0:e.name),onChange:()=>{C(e)},checked:N===e.name}),(0,n.jsxs)("label",{htmlFor:e.name,children:[(0,n.jsx)("div",{className:"dot"}),(0,n.jsx)("span",{children:e.name})]})]},l))]},"all")}),(0,n.jsx)("div",{className:"panel__body",children:h?(0,n.jsx)(n.Fragment,{children:null==_?void 0:_.map(e=>(0,n.jsx)(c.default,{publicConfigUrl:p,provider:e},null==e?void 0:e.id))}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"games__items",children:(null==F?void 0:null===(a=F.Data)||void 0===a?void 0:null===(s=a.Games)||void 0===s?void 0:s.length)>0&&!D?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u,{games:null==F?void 0:null===(o=F.Data)||void 0===o?void 0:o.Games,publicConfigUrl:p,mutateFavouriteGames:j,favourites:f,gamesSubproviders:_,isJackpotCategory:null===(m=null==x?void 0:null===(v=x.name)||void 0===v?void 0:v.toLowerCase())||void 0===m?void 0:m.includes("jackpot")})}):(0,n.jsx)(n.Fragment,{children:!D&&(0,n.jsx)("div",{children:(0,n.jsx)("p",{children:"No Games Available"})})})}),D&&(0,n.jsx)("div",{className:"games__loader",children:(0,n.jsx)("div",{className:"fetch-loader",style:{margin:"20px auto"}})})]})})]})};l.default=m},20862:function(e,l,a){a.r(l);var n=a(52322),i=a(2784),t=a(92496),s=a(98123),d=a(71469),o=a(97125),r=a(21723),c=a(5632),u=a(97136),m=a(51833),v=a(27553),g=a(83571),h=a(25237),p=a.n(h),_=a(72276),j=a(29127),x=a(86275),f=a(37289),b=a(64622),N=a(26925);let I=p()(()=>a.e(3760).then(a.bind(a,73760)),{loadableGenerated:{webpack:()=>[73760]},ssr:!0}),G=p()(()=>a.e(3385).then(a.bind(a,63385)),{loadableGenerated:{webpack:()=>[63385]},ssr:!0}),k=p()(()=>a.e(3159).then(a.bind(a,66688)),{loadableGenerated:{webpack:()=>[66688]},ssr:!1}),y=e=>{var l,a;let{provider:h,game:p,wrapperClassName:y="games__item",containerClassName:C="games__menu",onScreenHandler:w,jackpot:S,loading:F,isLargeImage:D=!1,useIsOnScreen:E=!1,publicConfigUrl:P,favourites:L,mutateFavouriteGames:z}
1=e,[M,U]=(0,i.useState)(S),[Z,H]=(0,i.useState)(!1),O=(0,i.useMemo)(()=>null!==(l=null==S?void 0:S.split(""))&&void 0!==l?l:[],[S]),A=(0,i.useMemo)(()=>null!==(a=null==M?void 0:M.split(""))&&void 0!==a?a:[],[M]),[T,J]=(0,i.useState)(!1),[R,W]=(0,i.useState)(!1),{data:K,config:$}=(0,b.useBrandConfig)(),B=(0,c.useRouter)(),{t:Y}=(0,s.$G)(),{player:q}=(0,o.A)({}),{ua:Q}=(0,r.e)(),{showAuth:V}=(0,x.useAuthContext)(),X=(0,g.p)();(0,i.useEffect)(()=>{let e=!!(null==L?void 0:L.some(e=>(null==e?void 0:e.GameID)===(null==p?void 0:p.GameID)));J(!!(e||(null==p?void 0:p.IsFavourite)))},[L,null==p?void 0:p.GameID,null==p?void 0:p.IsFavourite]),(0,i.useEffect)(()=>{S&&S!==M&&(H(!0),setTimeout(()=>{H(!1),U(S)},350))},[S,M]);let ee=(null==p?void 0:p.GameID)||0,el=(0,i.useRef)(),ea=(0,u.Z)(el,!1),{dynamicWidth:en}=(0,_.Z)(ea&&R?el:null),{dynamicHeight:ei}=(0,j.Z)(ea&&R?el:null),et=(null==h?void 0:h.id)?"".concat(null==P?void 0:P.providersImgUrl).concat((0,v.E)(h.id.toString())):"";(0,i.useEffect)(()=>{ea&&!R&&(W(!0),(0,t.m)(w)&&w(ea))},[ea,R]);let es=(0,i.useCallback)(e=>{(null==q?void 0:q.PlayerId)===0&&(null==K?void 0:K.jurisdictionId)===721?V(f.PopupKeys.login):er(e)},[null==q?void 0:q.PlayerId,p.ProviderTitle,p.GameID,null==h?void 0:h.name,B]),ed=(0,i.useCallback)(e=>{if(!(null==q?void 0:q.PlayerId)){V(f.PopupKeys.login),(0,t.m)(e)&&e();return}return J(e=>!e),null==z||z(ee),(0,N.Z)("/api/games/toggleFavGame",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(new d.Z({gameId:ee}))}).catch(),p.IsFavourite},[ee,null==q?void 0:q.PlayerId,z,V]),eo=e=>{V(e)},er=e=>{let l={whiteLabelName:null==$?void 0:$.Name,providerName:(null==h?void 0:h.name)||"",isDemo:e,game:p,onRedirect:eo};(0,m.rH)(l)},ec=(0,i.useCallback)(()=>{X.open(e=>(0,n.jsx)(G,{data:{providerImage:et,game:p},onClose:e.close,handleMobilePlay:l=>{e.close(),es(l)},favHandle:()=>ed(e.close)}))},[et,p,X,L,ed,es]),eu=e=>{B.push("/providers?providerId=".concat(e)).catch()};return(0,n.jsxs)("div",{className:y,ref:el,children:[(null==Q?void 0:Q.isDesktop)&&(ea&&E||!E)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I,{width:en,height:ei,game:p,loading:F||"lazy",isLargeImage:D},"game-".concat(p.ImageID)),(0,n.jsxs)("div",{className:"".concat(C," game-menu"),children:[(0,n.jsx)("button",{type:"button",className:"btn-icon game-menu__favorite-btn","data-testid":"btn__GameItem-favourite--".concat(null==p?void 0:p.GameID),onClick:()=>ed(),children:(0,n.jsx)("i",{className:T?"icon-heart":"icon-heart-empty"})}),(0,n.jsxs)("div",{className:"game-menu__buttons",children:[(0,n.jsx)("button",{className:"btn btn__sm m__b--3","data-testid":"btn__GameItem-play--".concat(null==p?void 0:p.GameID),onClick:()=>er(!1),children:Y("NS_play")}),(null==p?void 0:p.DemoEnabled)&&(0,n.jsx)("button",{className:"btn btn__sm btn__transparent","data-testid":"btn__GameItem-demo--".concat(null==p?void 0:p.GameID),onClick:()=>er(!0),children:Y("NS_demo")})]}),(0,n.jsx)("div",{className:"game-menu__title",children:p.GameName}),(0,n.jsx)("div",{className:"game-menu__provider","data-testid":"btn__GameItem-provider--".concat(null==h?void 0:h.id),onClick:()=>eu(null==h?void 0:h.id),children:et?(0,n.jsx)("div",{className:"game-menu__provider-img",children:(0,n.jsx)(k,{src:et,width:155,height:67,objectFit:"contain"})}):(0,n.jsx)("span",{className:"game-menu__provider-text",children:null==h?void 0:h.name})})]})]}):ea&&E||!E?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{onClick:()=>ec(),children:(0,n.jsx)(I,{width:en,height:ei,game:p,loading:F||"lazy",isLargeImage:D},"game-".concat(p.ImageID))})}):null,S&&(0,n.jsx)("div",{className:"game-jackpot",children:(0,n.jsx)("div",{className:"game-jackpot__container",children:A.map((e,l)=>{let a=O[l],i=e<a,t=e>a;return(0,n.jsxs)("div",{className:"game-jackpot__item",children:[(0,n.jsx)("span",{className:"game-jackpot__item__textUp ".concat(Z&&i?"animate":""),children:a}),(0,n.jsx)("span",{className:"game-jackpot__item__text ".concat(Z?t?"animateUp":i?"animateDown":"":""),children:e}),(0,n.jsx)("span",{className:"game-jackpot__item__textDown ".concat(Z&&t?"animate":""),children:a})]},l)})})})]})};l.default=y},27553:function(e,l,a){a.d(l,{E:function(){return n}});let n=e=>"".concat(e,".webp")},29127:function(e,l,a){var n=a(2784);let i=e=>
1{let[l,a]=(0,n.useState)(0),[i,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{(null==e?void 0:e.current)&&t(null==e?void 0:e.current)},[e]);let s=(0,n.useCallback)(()=>{(null==i?void 0:i.offsetHeight)>0&&a(i.offsetHeight)},[null==i?void 0:i.offsetHeight]);return(0,n.useEffect)(()=>(i&&s&&(s(),window.addEventListener("resize",s)),()=>{window.removeEventListener("resize",s)}),[i,s]),{dynamicHeight:l}};l.Z=i},72276:function(e,l,a){var n=a(2784);let i=e=>{let[l,a]=(0,n.useState)(0),[i,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{(null==e?void 0:e.current)&&t(null==e?void 0:e.current)},[e]);let s=(0,n.useCallback)(()=>{(null==i?void 0:i.offsetWidth)>0&&a(null==i?void 0:i.offsetWidth)},[null==i?void 0:i.offsetWidth]);return(0,n.useEffect)(()=>(i&&s&&(s(),window.addEventListener("resize",s)),()=>{window.removeEventListener("resize",s)}),[i,s]),{dynamicWidth:l}};l.Z=i},97136:function(e,l,a){a.d(l,{Z:function(){return i}});var n=a(2784);function i(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[a,i]=(0,n.useState)(!1),t=new IntersectionObserver(e=>{let[l]=e;i(l.isIntersecting),l.isIntersecting&&t.unobserve(l.target)});return(0,n.useEffect)(()=>(l?setTimeout(()=>{null!==e.current&&t.observe(e.current)},3e3):t.observe(e.current),()=>{t.disconnect()}),[]),a}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.