(self.webpackChunk=self.webpackChunk||[]).push([[9547,5870],{38637:(e,a,n)=>{"use strict";n.d(a,{D:()=>o});const i=new(n(17407).x),o={added:e=>{i.next({game:e,isFavourite:!0})},removed:e=>{i.next({game:e,isFavourite:!1})},subscribe:e=>i.subscribe(e)}},89547:(e,a,n)=>{"use strict";n.r(a),n.d(a,{CasinoGameMaintenanceModal:()=>Z,default:()=>O});var i=n(12139),o=n(90705),t=n(82762),m=n(35104),c=n(58061),r=n(91193),l=n(85573),s=n(16575),d=n(85782),g=n(45870),p=n(46062),u=n.n(p),h=n(44036),_=n.n(h),b=n(96793),x=n.n(b),v=n(17892),f=n.n(v),w=n(11173),N=n.n(w),$=n(42464),y=n.n($),C=n(88018),k=n.n(C),T={};T.styleTagTransform=y(),T.setAttributes=f(),T.insert=x().bind(null,"head"),T.domAPI=_(),T.insertStyleElement=N(),u()(k(),T),k()&&k().locals&&k().locals;var E=n(56753);const I=(0,s.Vo)((()=>n.e(6060).then(n.bind(n,66060)))),A="casino-game-maintenance-modal",S=(0,d.dG)(A),Z=({onClose:e})=>{var a,n,p,u,h;let _;const[b,x,v]=(0,c.CU)(!1,t.LoaderMode.Skeleton),[f,w]=(0,i.eJ)(!1),[N,$]=(0,i.eJ)(null),{isLoaded:y,layout:C,navigateTo:k,verticalThemeColor:T}=(0,c.$Y)(),Z=(0,c.qM)();return(0,i.d4)((()=>{if(y){var e,a,n;const i=y?[...null==(e=C.casinoRibbon)?void 0:e.allGames,...null==(a=C.casinoRibbon)?void 0:a.popular]:[],m=null==i||null==(n=i.find((e=>e.targetUri.includes(t.CASINO_ROUTES.recommended.replace("/category/","")))))?void 0:n.id;return m?_=g.gamingApi.getCasinoCategory({id:m},{disableErrorNotification:!0,mode:v.current,connector:x}).pipe((0,o.x)((()=>w(!0)))).subscribe({next:$}):w(!0),()=>_&&_.unsubscribe()}}),[C,y]),(0,E.tZ)(s.u_,{className:A,onClose:e,children:(0,E.tZ)(s.Od,{visible:b||!f,type:t.SkeletonType.Loader,children:(0,E.BX)("div",{className:(0,d.O5)(S("content"),{mobile:"mobile"===r.Z}),children:[(0,E.BX)("div",{className:S("maintenance-screen"),children:[(0,E.tZ)("div",{className:S("image-wrapper"),children:(0,E.tZ)("img",{src:`${m.NZ.defaults.basePath}assets/images/casino_game_maintenance_${T}.${"orange"===T?"svg":"png"}`,alt:"Maintenance"})}),(0,E.tZ)("h3",{className:S("main-title"),children:Z("CASINO.MAINTENANCE_TITLE")}),(0,E.tZ)("h5",{className:S("sub-title"),children:Z("CASINO.MAINTENANCE_TEXT_FIRST_LINE")}),(0,E.tZ)("h5",{className:S("sub-title"),children:Z("CASINO.MAINTENANCE_TEXT_SECOND_LINE")}),(0,E.tZ)(s.le,{className:S("icon"),name:"chevron-right"})]}),(0,E.BX)("div",{className:S("recommended-games"),children:[(null==N||null==(a=N.data)||null==(n=a.games)?void 0:n.length)>0&&(0,E.tZ)(I,{data:N.data}),!(null==C||null==(p=C.casinoRibbon)||!p.popular)&&(0,E.tZ)("div",{className:S("popular-categories"),children:null==C||null==(u=C.casinoRibbon)||null==(h=u.popular)?void 0:h.map((e=>(0,E.tZ)("button",{className:S("category-buttons"),onClick:()=>{return a=null==e?void 0:e.targetUri,l.PT.reset(),void k(`${t.CASINO_ROUTES.category}${a}`);var a},children:(0,E.tZ)("span",{children:e.title})})))})]})]})})})},O=Z},45870:(e,a,n)=>{"use strict";n.r(a),n.d(a,{gamingApi:()=>u});var i=n(35120),o=n(12335),t=n(47009),m=n(58059),c=n(35104),r=n(38637);const l=c.NZ.gamingApiEndpoint,s=e=>(e?e.apiName="gaming":e={apiName:"gaming"},e),d=e=>{if(401===e.status)return m.BG.isLoggedIn().pipe((0,o.w)((()=>{throw e})));throw e},g=(e,a,n)=>(0,m.U2)(e,a,n).pipe((0,t.K)(d));function p(e){return e&&e.length?`&gameTypes=${e.toString()}`:""}const u={defaultError:"NOTIFICATIONS.GENERIC",errorsPrefix:"GAMING_API_ERRORS",getCasinoCategories:function(e,a){return g(`${l}/casino/lobby/categories?ids=${e}&${(0,m.pm)()}${p(a)}`)},getCasinoCategory:({id:e,from:a,limit:n,gameTypes:i},o)=>g(`${l}/casino/category/${e}?${(0,m.pm)({from:a,limit:n})}${p(i)}`,void 0,o),getCasinoProvider:function(e,a,n){return g(`${l}/casino/provider/${e}?${(0,m.pm)()}${p(a)}`,void 0,n)},addGameToFavourite:function(e){return r.D.added(e),(a=`${l}/casino/game/${e.id}/favourite?${(0,m.pm)()}`,n={},o=s(),!1,(0,m.v_)(a,n,s(o),false).pipe((0,t.K)(d))).pipe((0,t.K)((a=>(r.D.removed(e),(0,i.of)(a)))));var a,n,o},removeGameFromFavourite:function(e){return r.D.removed(e),(a=`${l}/casino/game/${e.id}/favourite?${(0,m.pm)()}`,n=s(),!1,(0,m.Ks)(a,s(n),false).pipe((0,t.K)(d))).pipe((0,t.K)((a=>(r.D.added(e),(0,i.of)(a)))));var a,n},searchGames:(e,a,n)=>g(`${l}/casino/games/search?${(0,m.pm)(e)}${p(a)}`,void 0,n),getGameLaunchDetails:function(e,a,n){return g(`${l}/casino/game/${e}/launch-url?${(0,m.pm)({lobbyUrl:a})}`,void 0,n)}}},88018:e=>{e.exports=[[e.id,".casino-game-maintenance-modal{display:flex;flex-direction:column;background-color:var(--color-brand-background);max-width:840px;overflow:hidden;width:100%}.casino-game-maintenance-modal .modal__content{overflow-y:auto}.casino-game-maintenance-modal__maintenance-screen{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:21px 21px 35px;background:var(--color-casino-maintenance-background)}.casino-game-maintenance-modal__image-wrapper{width:253px;height:241px}.casino-game-maintenance-modal__image-wrapper img{max-width:100%}.casino-game-maintenance-modal__main-title{text-align:center;font-size:60px;line-height:73px;font-weight:700;letter-spacing:0;color:var(--color-white);margin:0}.casino-game-maintenance-modal__sub-title{text-align:center;font-size:34px;line-height:41px;font-weight:400;letter-spacing:0;color:var(--color-white);margin:0}.casino-game-maintenance-modal__icon{max-width:39px;max-height:39px;margin-top:16px;fill:var(--color-white);transform:rotate(90deg)}.casino-game-maintenance-modal__recommended-games{display:flex;flex-direction:column;align-items:center;background-color:var(--color-white);padding:12px 21px 10px}.casino-game-maintenance-modal__recommended-games .casino-games-recommendations{margin-bottom:19px}.casino-game-maintenance-modal__recommended-games .casino-category{width:100%}.casino-game-maintenance-modal__popular-categories{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}.casino-game-maintenance-modal__popular-categories button{display:flex;align-items:center;justify-content:center;padding:10px;min-width:93px;height:33px;background:var(--color-casino-maintenance-categories-button-background);font-size:14px;line-height:14px;color:var(--color-casino-maintenance-categories-button-text);border-radius:30px;border:none;cursor:pointer;margin-bottom:10px;margin-right:10px}.casino-game-maintenance-modal__popular-categories button:last-child{margin-right:0}.casino-game-maintenance-modal__popular-categories button:hover{background-color:var(--color-casino-maintenance-categories-button-hover-background);color:var(--color-casino-maintenance-categories-button-hover-text)}.casino-game-maintenance-modal__popular-categories button span{display:inline-block;word-break:break-word}@supports(-webkit-line-clamp: 2){.casino-game-maintenance-modal__popular-categories button span{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:93px}}.casino-game-maintenance-modal__content{background-color:var(--color-white);height:100%;max-height:82vh}.casino-game-maintenance-modal__content--mobile{max-height:100%}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__maintenance-screen{height:100%;max-height:395px;padding:18px 21px 28px;width:100%}@media(orientation: landscape){.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__maintenance-screen{height:auto;max-height:unset}}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__image-wrapper{width:227px;height:217px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__main-title{margin-bottom:10px;font-size:30px;line-height:37px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__sub-title{font-size:17px;line-height:21px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__icon{min-width:21px;min-height:13px;max-width:21px;max-height:13px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__recommended-games{padding:22px 10px 12px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__recommended-games .casino-games-recommendations{margin-bottom:14px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__popular-categories{margin:0}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__popular-categories button{width:120px;height:44px;font-size:18px;line-height:18px}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__popular-categories button:last-child,.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__popular-categories button:nth-child(3n+3){margin:0 0 10px 0}@media(max-width: 399px){.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__popular-categories button{margin-right:0}.casino-game-maintenance-modal__content--mobile .casino-game-maintenance-modal__popular-categories button:nth-child(odd){margin-right:10px}}","",""]]}}]);