(self.webpackChunk=self.webpackChunk||[]).push([[3698],{73698:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>G});var a=i(12139),s=i(31503),t=i(82762),l=i(58061),o=i(91193),r=i(16575),c=i(85782),u=i(9722),b=i(93502),d=i(45870),v=i(46062),g=i.n(v),y=i(44036),p=i.n(y),m=i(96793),h=i.n(m),k=i(17892),f=i.n(k),T=i(11173),Z=i.n(T),C=i(42464),x=i.n(C),A=i(31897),R=i.n(A),S={};S.styleTagTransform=x(),S.setAttributes=f(),S.insert=h().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=Z(),g()(R(),S),R()&&R().locals&&R().locals;var w=i(56753);const E="casino-lobby",F=(0,c.dG)(E),G=function({items:e,vertical:n}){var i,c,v;const[g,y]=(0,a.eJ)(),p=null==(i=(0,l.aF)().user)||null==(c=i.account)?void 0:c.id,{layout:m}=(0,l.$Y)();return(0,b.H)(n),(0,a.d4)((()=>{var n;if(!m.vertical)return;const i=e.map((e=>e.id)),a=d.gamingApi.getCasinoCategories(i,null==m||null==(n=m.casinoRibbon)?void 0:n.gameTypes).subscribe({next:e=>{y(e)},error:()=>{y([])}});return()=>a&&a.unsubscribe()}),[e,p,null==m||null==(v=m.casinoRibbon)?void 0:v.gameTypes,null==m?void 0:m.vertical]),(0,w.BX)("div",{className:E,children:["desktop"===o.Z&&(0,w.tZ)(s.Sx,{}),(0,w.tZ)(r.Od,{visible:!g,type:t.SkeletonType.CasinoLobby,autoHeight:!0,children:!!g&&(0,w.tZ)("div",{className:F("categories"),children:g.filter((e=>!!e.games.length||"FAVOURITE"===e.type)).map((e=>(0,w.tZ)(u.Z,{data:e,visualization:e.lobbyGridVisualisation,isLobby:!0})))})})]})}},31897:e=>{e.exports=[[e.id,".casino-lobby{background:var(--color-casino-background)}.casino-lobby .casino-category{min-height:201px}","",""]]}}]);