(self.webpackChunk=self.webpackChunk||[]).push([[9022,5870,666],{38637:(e,a,i)=>{"use strict";i.d(a,{D:()=>t});const r=new(i(17407).x),t={added:e=>{r.next({game:e,isFavourite:!0})},removed:e=>{r.next({game:e,isFavourite:!1})},subscribe:e=>r.subscribe(e)}},20666:(e,a,i)=>{"use strict";i.r(a),i.d(a,{default:()=>T});var r=i(12139),t=i(58061),n=i(85782),o=i(46062),s=i.n(o),l=i(44036),c=i.n(l),m=i(96793),d=i.n(m),u=i(17892),g=i.n(u),p=i(11173),h=i.n(p),f=i(42464),v=i.n(f),$=i(77182),b=i.n($),x={};x.styleTagTransform=v(),x.setAttributes=g(),x.insert=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=h(),s()(b(),x),b()&&b().locals&&b().locals;var N=i(56753);const A="casino-game-launch-iframe",y=(0,n.dG)(A),T=function({title:e,src:a,bottomMenu:i=!1,fullSize:o=!1}){const s=(0,r.sO)(),[l,c]=(0,r.eJ)(),m=(0,r.Ye)((()=>l?{height:l}:null),[l]),d=(0,r.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:s,origin:d}),a&&(0,N.tZ)("div",{className:(0,n.O5)(A,{"bottom-menu":i,"full-size":o}),style:m,children:(0,N.tZ)("iframe",{ref:s,allowFullScreen:!0,className:y("frame"),src:a,title:e,height:l||"100%",width:"100%"})})}},93502:(e,a,i)=>{"use strict";i.d(a,{H:()=>m});var r=i(12139),t=i(56747),n=i(64763),o=i(82762),s=i(35104),l=i(58061),c=i(96e3);const m=e=>{const[a,i]=(0,r.eJ)(""),[m,d]=(0,r.eJ)(""),[u,g]=(0,r.eJ)(""),{homePageTargetUri:p}=(0,l.$Y)(),h=(0,t.TH)(),f=(0,r.qp)(c.AZ),v=(0,l.qM)();return(0,r.d4)((()=>{e&&g(o.BrandName[s.NZ.verticals[e].brand])}),[e]),(0,r.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:i,setProviderName:d}}},59022:(e,a,i)=>{"use strict";i.r(a),i.d(a,{default:()=>P});var r=i(12139),t=i(82762),n=i(35104),o=i(58061),s=i(91193),l=i(96e3),c=i(85573),m=i(16575),d=i(85782),u=i(20666),g=i(93502),p=i(45870),h=i(46062),f=i.n(h),v=i(44036),$=i.n(v),b=i(96793),x=i.n(b),N=i(17892),A=i.n(N),y=i(11173),T=i.n(y),E=i(42464),O=i.n(E),C=i(15366),S=i.n(C),I={};I.styleTagTransform=O(),I.setAttributes=A(),I.insert=x().bind(null,"head"),I.domAPI=$(),I.insertStyleElement=T(),f()(S(),I),S()&&S().locals&&S().locals;var w=i(56753);const P=function({items:e,vertical:a}){const{user:i}=(0,o.aF)(),{homePageTargetUri:h}=(0,o.$Y)(),[f,v,$]=(0,o.CU)(!0,t.LoaderMode.Skeleton),[b,x]=(0,r.eJ)(null),[N,A]=(0,r.eJ)(null),y="mobile"===s.Z;return(0,g.H)(a),(0,r.d4)((()=>{if(i){const a=(0,d.cS)(n.NZ.defaults.basePath),i="/"===a?"":a,r=p.gamingApi.getGameLaunchDetails(e[0],`${window.location.origin}${i}${h}`,{mode:$.current,connector:v}).subscribe({next:e=>{A(e.displayName),x(e.launchUrl)},error:e=>{if(401!==e.status){let a=(0,l.Ag)(p.gamingApi.defaultError);if(e.response){const i=`${p.gamingApi.errorsPrefix}.${e.response.error}`;a=(0,l.H0)(i)?(0,l.Ag)(i):a}c.Ps.error(a,(0,l.Ag)("_OK"))}}});return()=>r&&r.unsubscribe()}}),[e,i]),(0,w.tZ)("div",{className:"casino-single-game",children:i?(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,i)=>{"use strict";i.r(a),i.d(a,{gamingApi:()=>p});var r=i(35120),t=i(12335),n=i(47009),o=i(58059),s=i(35104),l=i(38637);const c=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,i)=>(0,o.U2)(e,a,i).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(`${c}/casino/lobby/categories?ids=${e}&${(0,o.pm)()}${g(a)}`)},getCasinoCategory:({id:e,from:a,limit:i,gameTypes:r},t)=>u(`${c}/casino/category/${e}?${(0,o.pm)({from:a,limit:i})}${g(r)}`,void 0,t),getCasinoProvider:function(e,a,i){return u(`${c}/casino/provider/${e}?${(0,o.pm)()}${g(a)}`,void 0,i)},addGameToFavourite:function(e){return l.D.added(e),(a=`${c}/casino/game/${e.id}/favourite?${(0,o.pm)()}`,i={},t=m(),!1,(0,o.v_)(a,i,m(t),false).pipe((0,n.K)(d))).pipe((0,n.K)((a=>(l.D.removed(e),(0,r.of)(a)))));var a,i,t},removeGameFromFavourite:function(e){return l.D.removed(e),(a=`${c}/casino/game/${e.id}/favourite?${(0,o.pm)()}`,i=m(),!1,(0,o.Ks)(a,m(i),false).pipe((0,n.K)(d))).pipe((0,n.K)((a=>(l.D.added(e),(0,r.of)(a)))));var a,i},searchGames:(e,a,i)=>u(`${c}/casino/games/search?${(0,o.pm)(e)}${g(a)}`,void 0,i),getGameLaunchDetails:function(e,a,i){return u(`${c}/casino/game/${e}/launch-url?${(0,o.pm)({lobbyUrl:a})}`,void 0,i)}}},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--full-size{height:100%}.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}}","",""]]}}]);