1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1649],{13247:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/live-casino/group",function(){return a(86543)}])},76629:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return r},default:function(){return o}});var n=a(52322),i=a(2784),l=a(5632),s=a(30001);a(65958);var r=!0;function o(e){let[t,a]=(0,i.useState)(null),[r,o]=(0,i.useState)([]),[c,u]=(0,i.useState)(1),[d,g]=(0,i.useState)(1),[v,p]=(0,i.useState)({created_date:"desc"}),m=(0,s.ffc)(),f=e.params.id,h=(0,l.useRouter)(),[x,j]=(0,i.useState)(!0),[N,_]=(0,i.useState)({gameProviders:new Set,gameTypes:new Set,searchText:[]});(0,i.useEffect)(()=>{var e;(null==t?void 0:null===(e=t.group.games)||void 0===e?void 0:e.length)&&_((0,s.EQh)(t.group.games))},[t]);let b=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;try{let i=await (0,s.MiK)(m,f,e,40,null!=n?n:{});i&&(a(i),o(e=>t?[...e,...i.group.games]:i.group.games),g(i.pagination.last_page),u(i.pagination.current_page))}catch(e){console.error("Error fetching game group:",e)}finally{j(!1)}};(0,i.useEffect)(()=>{f&&b()},[f]);let w=async()=>{if(c<d){let e=c+1;e<=c||await b(e,!0)}},S=async e=>{var a;let n=null!==(a=e.sortSelection)&&void 0!==a?a:{};if(JSON.stringify(v)!==JSON.stringify(n)&&(p(n),Object.keys(n).length>0)){await b(1,!1,n);return}(null==t?void 0:t.group.games)&&o((0,s.Cvu)(t.group.games,e))},k=()=>{if(document.referrer.includes(window.location.host))h.back();else{let e="virtual"==m?"virtuales":m;h.push("/".concat(e.replace(/^\//,"")))}},{loading:y}=(0,s.MQn)(c<d,w);return(0,n.jsx)("section",{className:"casino-detail-page",children:x?(0,n.jsx)(s.OdW,{templateType:"game-group-detail-template"}):t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"detail-banner",style:{backgroundImage:"url(".concat(null==t?void 0:t.group.banner,")"),backgroundPosition:"center center",backgroundSize:"cover"},children:[(0,n.jsx)("div",{className:"header-back-button",onClick:()=>k(),children:(0,n.jsx)(s.JO$,{iconClass:"left-arrow"})}),(0,n.jsx)("div",{className:"banner-icon-container",children:(0,n.jsx)(s.JO$,{iconClass:t.group.icon})}),(null==t?void 0:t.group.description)&&(0,n.jsx)("div",{className:"detail-description",children:(0,n.jsx)(s.$LY,{widget:{directive:"TextWidget",settings:{text:t.group.description}}})})]}),(0,n.jsx)(s.$v0,{title:null==t?void 0:t.group.name,gameCount:t.pagination.total,showSortSelection:!0,onFilterChange:S,showBackButton:!1}),(0,n.jsx)("div",{className:"game-wrapper",children:r.map(e=>{var t,a,i,l,r;return(0,n.jsx)(s.FzS,{game:e,directive:"game_group_page",pageDirective:(null==h?void 0:null===(i=h.pathname)||void 0===i?void 0:null===(a=i.split("/"))||void 0===a?void 0:null===(t=a.filter(Boolean))||void 0===t?void 0:t[0])||m,badge:(null===(l=e.label)||void 0===l?void 0:l.name)&&(null===(r=e.label)||void 0===r?void 0:r.color)?{name:e.label.name,color:e.label.color}:void 0,favBtn:!0,className:"casino-game-item"},e.id)})}),y&&(0,n.jsxs)("div",{className:"spinner",children:[(0,n.jsx)("div",{className:"rect1"}),(0,n.jsx)("div",{className:"rect2"}),(0,n.jsx)("div",{className:"rect3"}),(0,n.jsx)("div",{className:"rect4"}),(0,n.jsx)("div",{className:"rect5"})]}),0===r.length&&(0,n.jsx)(s.t7$,{border:!0})]}):null})}},86543:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return n.default}});var n=a(76629)},65958:function(){}},function(e){e.O(0,[1705,1617,1711,1709],function(){return e(e.s=13247)}),_N_E=e.O()}]);
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.