(self.webpackChunk=self.webpackChunk||[]).push([[9022,5870,666],{38637:(e,a,r)=>{"use strict";r.d(a,{D:()=>t});const i=new(r(17407).x),t={added:e=>{i.next({game:e,isFavourite:!0})},removed:e=>{i.next({game:e,isFavourite:!1})},subscribe:e=>i.subscribe(e)}},20666:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>T});var i=r(12139),t=r(58061),n=r(85782),o=r(46062),s=r.n(o),c=r(44036),l=r.n(c),m=r(96793),d=r.n(m),u=r(17892),g=r.n(u),p=r(11173),h=r.n(p),f=r(42464),v=r.n(f),$=r(77182),b=r.n($),x={};x.styleTagTransform=v(),x.setAttributes=g(),x.insert=d().bind(null,"head"),x.domAPI=l(),x.insertStyleElement=h(),s()(b(),x),b()&&b().locals&&b().locals;var N=r(56753);const A="casino-game-launch-iframe",y=(0,n.dG)(A),T=function({title:e,src:a,bottomMenu:r=!1}){const o=(0,i.sO)(),[s,c]=(0,i.eJ)(),l=(0,i.Ye)((()=>s?{height:s}:null),[s]),m=(0,i.Ye)((()=>{var e;return a?null==(e=new URL(a))?void 0:e.origin:null}),[a]);return(0,t.mJ)(),(0,t.R0)({handler:e=>{"resize"===e.action&&e.scrollHeight&&c(e.scrollHeight)},iframeRef:o,origin:m}),a&&(0,N.tZ)("div",{className:(0,n.O5)(A,{"bottom-menu":r}),style:l,children:(0,N.tZ)("iframe",{ref:o,allowFullScreen:!0,className:y("frame"),src:a,title:e,height:s||"100%",width:"100%"})})}},93502:(e,a,r)=>{"use strict";r.d(a,{H:()=>m});var i=r(12139),t=r(56747),n=r(64763),o=r(82762),s=r(35104),c=r(58061),l=r(96e3);const m=e=>{const[a,r]=(0,i.eJ)(""),[m,d]=(0,i.eJ)(""),[u,g]=(0,i.eJ)(""),{homePageTargetUri:p}=(0,c.$Y)(),h=(0,t.TH)(),f=(0,i.qp)(l.AZ),v=(0,c.qM)();return(0,i.d4)((()=>{e&&g(o.BrandName[s.NZ.verticals[e].brand])}),[e]),(0,i.d4)((()=>{if(e!==n.VerticalType.Casino||"green"!==s.NZ.verticals.CASINO.theme&&"blue"!==s.NZ.verticals.CASINO.theme)switch(!0){case h.pathname.startsWith(`${p}${o.CASINO_ROUTES.category}`):document.title=`${u} | ${a}`;break;case h.pathname.startsWith(`${p}${o.CASINO_ROUTES.gameProviders}`):document.title=v("CASINO_DOCUMENT_TITLE.GAME_PROVIDERS_PAGE",{brand:u,provider:m});break;default:document.title=e?v(`CASINO_DOCUMENT_TITLE.LOBBY_PAGE_${e}`,{brand:u}):""}}),[f.userLanguage,h,a,m,u]),{setGameCategoryName:r,setProviderName:d}}},59022:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>P});var i=r(12139),t=r(82762),n=r(35104),o=r(58061),s=r(91193),c=r(96e3),l=r(85573),m=r(16575),d=r(85782),u=r(20666),g=r(93502),p=r(45870),h=r(46062),f=r.n(h),v=r(44036),$=r.n(v),b=r(96793),x=r.n(b),N=r(17892),A=r.n(N),y=r(11173),T=r.n(y),E=r(42464),O=r.n(E),C=r(15366),I=r.n(C),S={};S.styleTagTransform=O(),S.setAttributes=A(),S.insert=x().bind(null,"head"),S.domAPI=$(),S.insertStyleElement=T(),f()(I(),S),I()&&I().locals&&I().locals;var w=r(56753);const P=function({items:e,vertical:a}){const{user:r}=(0,o.aF)(),{homePageTargetUri:h}=(0,o.$Y)(),[f,v,$]=(0,o.CU)(!0,t.LoaderMode.Skeleton),[b,x]=(0,i.eJ)(null),[N,A]=(0,i.eJ)(null),y="mobile"===s.Z;return(0,g.H)(a),(0,i.d4)((()=>{if(r){const a=(0,d.cS)(n.NZ.defaults.basePath),r="/"===a?"":a,i=p.gamingApi.getGameLaunchDetails(e[0],`${window.location.origin}${r}${h}`,{mode:$.current,connector:v}).subscribe({next:e=>{A(e.displayName),x(e.launchUrl)},error:e=>{if(401!==e.status){let a=(0,c.Ag)(p.gamingApi.defaultError);if(e.response){const r=`${p.gamingApi.errorsPrefix}.${e.response.error}`;a=(0,c.H0)(r)?(0,c.Ag)(r):a}l.Ps.error(a,(0,c.Ag)("_OK"))}}});return()=>i&&i.unsubscribe()}}),[e,r]),(0,w.tZ)("div",{className:"casino-single-game",children:r?(0,w.tZ)(m.Od,{visible:f,type:t.SkeletonType.Loader,autoHeight:!0,children:(0,w.tZ)(u.default,{title:N,src:b,bottomMenu:y})}):(0,w.tZ)(m.$J,{messageKey:"POKER.PLEASE_LOGIN"})})}},45870:(e,a,r)=>{"use strict";r.r(a),r.d(a,{gamingApi:()=>p});var i=r(35120),t=r(12335),n=r(47009),o=r(58059),s=r(35104),c=r(38637);const l=s.NZ.gamingApiEndpoint,m=e=>(e?e.apiName="gaming":e={apiName:"gaming"},e),d=e=>{if(401===e.status)return o.BG.isLoggedIn().pipe((0,t.w)((()=>{throw e})));throw e},u=(e,a,r)=>(0,o.U2)(e,a,r).pipe((0,n.K)(d));function g(e){return e&&e.length?`&gameTypes=${e.toString()}`:""}const p={defaultError:"NOTIFICATIONS.GENERIC",errorsPrefix:"GAMING_API_ERRORS",getCasinoCategories:function(e,a){return u(`${l}/casino/lobby/categories?ids=${e}&${(0,o.pm)()}${g(a)}`)},getCasinoCategory:({id:e,from:a,limit:r,gameTypes:i},t)=>u(`${l}/casino/category/${e}?${(0,o.pm)({from:a,limit:r})}${g(i)}`,void 0,t),getCasinoProvider:function(e,a,r){return u(`${l}/casino/provider/${e}?${(0,o.pm)()}${g(a)}`,void 0,r)},addGameToFavourite:function(e){return c.D.added(e),(a=`${l}/casino/game/${e.id}/favourite?${(0,o.pm)()}`,r={},t=m(),!1,(0,o.v_)(a,r,m(t),false).pipe((0,n.K)(d))).pipe((0,n.K)((a=>(c.D.removed(e),(0,i.of)(a)))));var a,r,t},removeGameFromFavourite:function(e){return c.D.removed(e),(a=`${l}/casino/game/${e.id}/favourite?${(0,o.pm)()}`,r=m(),!1,(0,o.Ks)(a,m(r),false).pipe((0,n.K)(d))).pipe((0,n.K)((a=>(c.D.added(e),(0,i.of)(a)))));var a,r},searchGames:(e,a,r)=>u(`${l}/casino/games/search?${(0,o.pm)(e)}${g(a)}`,void 0,r),getGameLaunchDetails:function(e,a,r){return u(`${l}/casino/game/${e}/launch-url?${(0,o.pm)({lobbyUrl:a})}`,void 0,r)}}},77182:e=>{e.exports=[[e.id,".casino-game-launch-iframe{display:flex;flex-direction:column;background:var(--color-primary-background);height:calc(var(--vh, 1vh)*100 - 48px);width:100%}.casino-game-launch-iframe--bottom-menu{height:calc(var(--vh, 1vh)*100 - 48px - 56px)}.casino-game-launch-iframe__frame{height:100%;width:100%}","",""]]},15366:e=>{e.exports=[[e.id,".casino-single-game{background:var(--color-casino-background);display:flex;flex-direction:column;width:100%}.casino-single-game .info-message{display:flex;align-items:center;justify-content:center;background:var(--color-brand-background);border-radius:5px;padding:22px;font-size:12px;line-height:16px;letter-spacing:0;color:var(--color-white);margin:34px 12px 52px}@media(min-width: 768px){.casino-single-game .info-message{margin:43px auto 42px;width:50%;font-size:14px}}","",""]]}}]);