1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1354],{87120:(T,C,o)=>{o.d(C,{R:()=>L});var R=o(60177),v=o(74710),B=o(41075),b=o(73955),f=o(62540),p=o(54438);let L=(()=>{var m;class y{}return(m=y).\u0275fac=function(n){return new(n||m)},m.\u0275mod=p.$C({type:m}),m.\u0275inj=p.G2t({imports:[R.MD,f.G,B.bv,b.h,v.iI]}),y})()},81354:(T,C,o)=>{o.r(C),o.d(C,{LobbyGamePageModule:()=>re});var R=o(34324),v=o(60177),B=o(89417),b=o(41075),f=o(10467),p=o(14944),L=o(21413),m=o(56977),y=o(96354),G=o(5964),n=o(30274),e=o(54438),X=o(58498),S=o(12872),I=o(74710),U=o(55568),g=o(90006),M=o(10419),w=o(34573),F=o(49537),$=o(48778),Y=o(345),W=o(73955),k=o(14824),x=o(27850),z=o(75538);const V=["iframe"],j=s=>({"ns7-games":s});function H(s,u){if(1&s){const d=e.RV6();e.j41(0,"iframe",4,0),e.bIt("load",function(){e.eBV(d);const t=e.XpG();return e.Njj(t.redirectToLobby())}),e.k0s()}if(2&s){const d=e.XpG();e.Y8G("ngClass",e.eq3(2,j,"NS7"===d.provider))("src",d.sanitizerUrl,e.f$h)}}function Q(s,u){1&s&&(e.j41(0,"div"),e.nrm(1,"div",5),e.k0s())}let J=(()=>{var s;class u{set content(i){i&&(this.iframe=i,"NS7"===this.provider?this.virtualIframeResizerService.isReady().pipe((0,m.Q)(this.onDestroy)).subscribe(t=>{t&&this.virtualIframeResizerService.iFrameResizer(this.url,this.iframe)}):"ELBET"===this.provider?this.elbetIframeResizerService.iFrameResizer(this.url,this.iframe):"KIRON"===this.provider&&this.kironIframeResizerService.iFrameResizer(this.url,this.iframe))}constructor(i,t,a,l,r,c,N,O,P,E,D,A,h,se,ne,le,me,ce,he,de){this.sanitizer=i,this.activatedRoute=t,this.navController=a,this.virtualIframeResizerService=l,this.router=r,this.elbetIframeResizerService=c,this.lobbyService=N,this.gameplayService=O,this.authStateService=P,this.lobbyHandlerService=E,this.location=D,this.userInfoService=A,this.navCtrl=h,this.alertCtrl=se,this.translateService=ne,this.urlPipe=le,this.scriptLoader=me,this.googleAnalyticsService=ce,this.notificationService=he,this.kironIframeResizerService=de,this.onDestroy=new L.B,this.provider=null,this.url=null,this.historyBack=!1}ngOnInit(){this.notificationService.getDepositBankPayInNotificationAsObs().pipe((0,m.Q)(this.onDestroy)).subscribe(i=>{i&&this.presentAlert(this.translateService.instant("profile.deposit"),this.translateService.instant("card_payin_successfully"))}),this.gameplayService.navigateObservable().pipe((0,m.Q)(this.onDestroy)).subscribe(i=>{this.startGame(i.state)}),this.lobbyHandlerService.getLobbyStateObservable().pipe((0,m.Q)(this.onDestroy)).subscribe(i=>{null!=i&&null!=i.roomCode?(this.mainCurrentRoom=i.roomCode,this.mainCurrentRoomLabel=i.roomLabel):(this.mainCurrentRoom="overview",this.mainCurrentRoomLabel="overview"),null!=i&&(this.implementation=i.implementationName,this.lobbyCode=i.lobbyCode)}
1),this.getCasinoGameByIdAndProvider()}ngOnDestroy(){var i=this;return(0,f.A)(function*(){if("vg"===i.game.type.value){let t;i.authStateService.isAuthenticated()&&(t=(yield i.userInfoService.getIUserInfo()).uuid);const a=new $.Wc(i.authStateService.isAuthenticated(),i.game.gameName,t);i.googleAnalyticsService.sendVirtualGameExitEvent(a)}i.virtualIframeResizerService.clearLuckyIFrameResizer(),"LIW"===i.provider&&i.gameplayService.cleanupLiwGame(),i.kironIframeResizerService.destroy(),i.game=null,i.onDestroy.next(),i.onDestroy.complete()})()}startGame(i){null!=i&&null!=i.url?(this.provider=i.provider,this.url=i.url,this.sanitizerUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i.url),"LIW"===this.provider&&this.gameplayService.startLiwGame()):this.navController.back()}getCasinoGameByIdAndProvider(){const i=this.activatedRoute.snapshot.paramMap.get("gameId"),t=this.activatedRoute.snapshot.paramMap.get("selectedLimitId");this.activatedRoute.paramMap.pipe((0,m.Q)(this.onDestroy),(0,y.T)(()=>window.history.state)).subscribe(a=>{null!=a&&null!=a.casinoGame?(this.historyBack=!0,this.game=a.casinoGame,this.game.selectedLimitId=t,this.startGameforAuth(this.game,a.demo)):this.lobbyService.getGameByGid(parseInt(i,10)).pipe((0,m.Q)(this.onDestroy)).subscribe(l=>{if(null!=l){this.game=l;const r=this.activatedRoute.snapshot.paramMap.get("gameName");if(this.urlPipe.transform(this.game.gameName)!==r)return void location.replace("404");l.selectedLimitId=t,this.startGameforAuth(this.game,!1)}})})}startGameforAuth(i,t){var a=this;return(0,f.A)(function*(){const l=a.authStateService.isAuthenticated();!t&&l||!0!==i.demoAvailable?l&&((yield a.userInfoService.isRegistrationNotFinished())?(a.presentFinishRegistrationAlert(),a.router.navigate([n.O.HOME])):a.gameplayService.loginAndStartProvider(!1,i.provider,i,a.mainCurrentRoom,a.lobbyCode,a.implementation,!0,a.mainCurrentRoomLabel)):a.gameplayService.loginAndStartProvider(!0,i.provider,i,a.mainCurrentRoom,a.lobbyCode,a.implementation,!0,a.mainCurrentRoomLabel)})()}redirectToLobby(){setTimeout(()=>{try{this.iframe.nativeElement.contentWindow.location.host===location.host&&this.goBack()}catch(i){console.log(i)}})}goBack(){const i=this.lobbyCode,t=null!=this.mainCurrentRoom?this.mainCurrentRoom:"overview",a=null!=this.mainCurrentRoomLabel?this.mainCurrentRoomLabel:"overview";i&&t?this.lobbyService.getILobbiesInfo().subscribe(l=>{const r=l[i];if(null==r)return void this.router.navigate([n.O.HOME]);let c;switch(r.implementationName){case"classic":c=n.O.LOBBY_CLASSIC.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code);break;case"live":c=n.O.LOBBY_LIVE.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code);break;case"unified":default:c=n.O.LOBBY_UNIFIED.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code);break;case"virtual":c=n.O.LOBBY_VIRTUAL.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code)}this.router.navigate([c],{state:{lobbyImplementation:r.implementationName,lobbyCode:r.code,roomCode:t,roomLabel:a}})}):this.router.navigate(this.historyBack?[n.O.LOBBY_LANDING]:[n.O.HOME])}presentFinishRegistrationAlert(){var i=this;return(0,f.A)(function*(){yield(yield i.alertCtrl.create({subHeader:i.translateService.instant("finish_registration.necessity"),buttons:[{text:i.translateService.instant("title.finish_registration"),handler:()=>{i.navCtrl.navigateRoot("/"+n.O.FINISH_REGISTRATION)}}],backdropDismiss:!0})).present()})()}presentAlert(i,t){var a=this;return(0,f.A)(function*(){const l=yield a.alertCtrl.create({header:i,message:t,buttons:[{text:"OK"}]});l.onDidDismiss().then(()=>{window.location.reload()}),yield l.present()})()}}return(s=u).\u0275fac=function(i){return new(i||s)(e.rXU(Y.up),e.rXU(I.nX),e.rXU(S.q9),e.rXU(g.HZ),e.rXU(I.Ix),e.rXU(g.EK),e.rXU(g.QC),e.rXU(g.mW),e.rXU(p.TI),e.rXU(M.O),e.rXU(v.aZ),e.rXU(p.fv),e.rXU(S.q9),e.rXU(b.hG),e.rXU(W.c$),e.rXU(k._x),e.rXU(p.sx),e.rXU(x.p),e.rXU(z.JE),e.rXU(g.xI))},s.\u0275cmp=e.VBU({type:s,selectors:[["ds-lobby-game-wrapper"]],viewQuery:function(i,t){if(1&i&&e.GBs(V,5),2&i){let a;e.mGM(a=e.lsd())&&(t.content=a.first)}},decls:3,vars:2,consts:[["iframe",""],["no-padding","","no-margin","",1,"iframe-wrapper","casino-game--iframe-wrapper"],["no-padding","","no-margin","","id","seven-plugin","frameborder","0","scrolling","auto",3,"ngClass","src","load",4,"ngIf"],[4,"ngIf"],["no-padding","","no-margin","","id","seven-plugin","frameborder","0","scrolling","auto",3,"load","ngClass","src"],["id","magicwin_container"]],template:function(i,t){1&i&&(e.j41(0,"div",1),e.DNE(1,H,2,4,"iframe",2)(2,Q,2,0,"div",3),e.k0s()),2&i&&(e.R7$(),e.Y8G("ngIf",null!=t.sanitizerUrl&&"LIW"!==t.provider),e.R7$(),e.Y8G("ngIf","LIW"===t.provider))},dependencies:[v.YU,v.bT]}),u})();var K=o(43095),_=o(66733);function Z(s,u){if(1&s){const d=e.RV6();e.j41(0,"ion-row",6)(1,"ion-row",7)(2,"ion-button",8),e.bIt("click",function(){e.eBV(d);const t=e.XpG(2);return e.Njj(t.showFastDepositNotification=!t.showFastDepositNotification)}),e.nrm(3,"div",9),e.k0s(),e.nrm(4,"ds-deposit-notification",10),e.k0s()()}}function q(s,u){if(1&s&&(e.j41(0,"ion-header"),e.nrm(1,"ds-nav-top",4),e.DNE(2,Z,5,0,"ion-row",5),e.k0s()),2&s){const d=e.XpG();e.R7$(),e.Y8G("showBack",!0),e.R7$(),e.Y8G("ngIf",d.showFastDepositNotification)}}let ee=(()=>{var s;class u{constructor(i,t,a,l,r,c,N,O,P,E,D,A){this.utilService=i,this.platform=t,this.activatedRoute=a,this.viewT
1ypeService=l,this.lobbyService=r,this.lobbyHandlerService=c,this.router=N,this.navCtrl=O,this.domainService=P,this.iab=E,this.balanceService=D,this.depositHandlerService=A,this.viewType$=this.viewTypeService.getViewTypeAsObservable(),this.showExit=!this.isPlatformBrowser(),this.onDestroy=new L.B,this.showJackpot=!1,this.demo=!1,this.historyBack=!1,this.showCasinoGamePayInModal=!1,this.enableCasinoGameDespositPayin=!0===p.lO.getParameterValue("IBET_ENABLE_CASINO_GAME_DEPOSIT_PAYIN"),this.enableMonriPayment=null!=p.lO.getParameterValue("IBET_ENABLE_MONRI")&&p.lO.getParameterValue("IBET_ENABLE_MONRI"),this.enableAsoftPayment=null!=p.lO.getParameterValue("IBET_ASOFT_IPG_ENABLE")&&p.lO.getParameterValue("IBET_ASOFT_IPG_ENABLE"),this.enableIntesaPayment=null!=p.lO.getParameterValue("IBET_ENABLE_CARD_PAYMENT")?p.lO.getParameterValue("IBET_ENABLE_CARD_PAYMENT"):null,this.showFastDepositNotification=!1,this.activatedRoute.paramMap.pipe((0,m.Q)(this.onDestroy),(0,y.T)(()=>window.history.state)).subscribe(h=>{this.demo=h.demo,h&&(h.casinoGame?(this.game=h.casinoGame,this.showJackpot=this.game.usedInJackpot&&!h.demo,this.historyBack=!0):this.getCasinoGameByIdAndProvider())}),this.lobbyHandlerService.getLobbyStateObservable().pipe((0,m.Q)(this.onDestroy)).subscribe(h=>{null!=h&&null!=h.roomCode?(this.mainCurrentRoom=h.roomCode,this.mainCurrentRoomLabel=h.roomLabel):(this.mainCurrentRoom="overview",this.mainCurrentRoomLabel="overview"),null!=h&&(this.implementation=h.implementationName,this.lobbyCode=h.lobbyCode,this.tag=h.tag,this.tagRoomCode=h.tagRoomCode)}),this.initializeFastDepositNotification()}ngOnDestroy(){this.game=null,this.onDestroy.next(),this.onDestroy.complete(),this.utilService.closeFullscreen()}isPlatformBrowser(){return!this.platform.is("cordova")}ionViewWillEnter(){this.gameId=this.activatedRoute.snapshot.paramMap.get("gameId"),this.gameProvider=this.activatedRoute.snapshot.paramMap.get("provider")}getCasinoGameByIdAndProvider(){this.gameId=this.activatedRoute.snapshot.paramMap.get("gameId"),this.gameProvider=this.activatedRoute.snapshot.paramMap.get("provider"),this.activatedRoute.paramMap.pipe((0,m.Q)(this.onDestroy),(0,y.T)(()=>window.history.state)).subscribe(i=>{null!=i&&null!=i.casinoGame?(this.historyBack=!0,this.game=i.casinoGame,this.showJackpot=this.game.usedInJackpot):this.lobbyService.getGameByGid(parseInt(this.gameId,10)).subscribe(t=>{null!=t&&(this.game=t,this.showJackpot=this.game.usedInJackpot)})})}goBack(){const i=this.lobbyCode,t=null!=this.mainCurrentRoom?this.mainCurrentRoom:"overview",a=null!=this.mainCurrentRoomLabel?this.mainCurrentRoomLabel:"overview";i&&t?this.lobbyService.getILobbiesInfo().pipe((0,m.Q)(this.onDestroy)).subscribe(l=>{const r=l[i];if(null==r)return void this.router.navigate([n.O.HOME]);let c;switch(r.implementationName){case"classic":c=n.O.LOBBY_CLASSIC.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code);break;case"live":c=n.O.LOBBY_LIVE.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code);break;case"unified":default:c=n.O.LOBBY_UNIFIED.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code);break;case"virtual":c=n.O.LOBBY_VIRTUAL.replace("${implName}",r.implementationName).replace("${lobbyCode}",r.code)}this.navCtrl.navigateBack([c],{state:{lobbyImplementation:r.implementationName,lobbyCode:r.code,roomCode:t,roomLabel:a,tag:this.tag,tagRoomCode:this.tagRoomCode}})}):this.navCtrl.navigateBack(this.historyBack?[n.O.LOBBY_LANDING]:[n.O.HOME])}isFullScreen(){return this.utilService.isFullScreen()}isApplication(){return this.utilService.isNative()}isiOS(){return this.utilService.isPlatformIos()&&!this.utilService.isDeviceIPad()}openFullScreen(){this.utilService.openFullscreen()}closeFullScreen(){this.utilService.closeFullscreen()}openGamePayIn(){if("intesa"===this.enableCasinoGameDepositPayIn())return this.generateLink();this.showCasinoGamePayInModal=!this.showCasinoGamePayInModal}enableCasinoGameDepositPayIn(){if(this.enableCasinoGameDespositPayin){if(this.enableMonriPayment)return"monri";if(this.enableAsoftPayment)return"asoft";if(this.enableIntesaPayment)return"intesa"}}closeCasinoDepositPayIn(){this.showCasinoGamePayInModal=!1}generateLink(){this.iab.openExternalLinkInDefaultBrowser(this.domainService.getIBet2Address()+n.O.BANK_PAYIN)}initializeFastDepositNotification(){var i=this;this.balanceService.getInternetBalanceSubject().pipe((0,G.p)(t=>null!=(null==t?void 0:t.balance)),(0,m.Q)(this.onDestroy)).subscribe(function(){var t=(0,f.A)(function*(a){const l=i.depositHandlerService.getConfig();i.showFastDepositNotification=yield i.depositHandlerService.shouldShowPopup(a,l)});return function(a){return t.apply(this,arguments)}}())}}return(s=u).\u0275fac=function(i){return new(i||s)(e.rXU(X.T),e.rXU(S.OD),e.rXU(I.nX),e.rXU(U.P),e.rXU(g.QC),e.rXU(M.O),e.rXU(I.Ix),e.rXU(S.q9),e.rXU(p.iC),e.rXU(w.u),e.rXU(p.os),e.rXU(F.C))},s.\u0275cmp=e.VBU({type:s,selectors:[["ds-lobby-game"]],decls:6,vars:7,consts:[["pageContent",""],[4,"ngIf"],["ionScrollListener","","dsScrollbarDesign","","fullscreen","",3,"scrollEvents","scrollY"],[1,"ion-content--scroll"],[3,"showBack"],["class","external-link-frame--fast-deposit-notification",4,"ngIf"],[1,"external-link-frame--fast-deposit-notification"],["nowrap","","align-items-center","",1,"external-link-frame--fast-deposit-wrap"],["color","none","size","small",1,"custom-modal--close",3,"click"],[1,"icon-close","icon-default-m","icon-invert-color"],["
1w-100",""]],template:function(i,t){1&i&&(e.DNE(0,q,3,2,"ion-header",1),e.nI1(1,"async"),e.j41(2,"ion-content",2,0),e.nI1(4,"async"),e.nrm(5,"ds-lobby-game-wrapper",3),e.k0s()),2&i&&(e.Y8G("ngIf","MOBILE"===e.bMT(1,3,t.viewType$)),e.R7$(2),e.Y8G("scrollEvents",!0)("scrollY","MOBILE"===e.bMT(4,5,t.viewType$)))},dependencies:[v.bT,b.Jm,b.W9,b.eU,b.ln,J,K.a,U.El,_.Z,v.Jj]}),u})();var ie=o(87120),te=o(62540),oe=o(59802);const ae=[{path:"",component:ee}];let re=(()=>{var s;class u{}return(s=u).\u0275fac=function(i){return new(i||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[v.MD,B.YN,I.iI.forChild(ae),b.bv,ie.R,R.I,te.G,oe.U]}),u})()}}]);
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.