import{a as $,b as G,c as Q}from"./chunk-KUR3C4SH.js";import"./chunk-TI3W5EB6.js";import"./chunk-IS3UN6PU.js";import{ab as O,hb as te,t as u}from"./chunk-W6VUERDV.js";import"./chunk-UERONQY6.js";import"./chunk-U4JSLAJE.js";import"./chunk-KEKAC6HA.js";import"./chunk-Q5D4T2Y3.js";import"./chunk-QRL6GM6J.js";import"./chunk-7VMB4KH3.js";import"./chunk-LMOGP2ZK.js";import"./chunk-XOOENRSX.js";import"./chunk-KRXKHOBV.js";import"./chunk-CQVNCDCL.js";import{b as B,f as F,g as L,h as N,k as A,m as q,p as ee}from"./chunk-5TFZQSKB.js";import{Ca as x,N as T,qa as I,u as M,v as Z}from"./chunk-YAMJAX32.js";import"./chunk-OMEYURTL.js";import{$b as h,Ab as l,Eb as c,Jc as J,Sa as C,Sb as b,Ta as _,Ua as p,Ub as k,Zb as R,_b as m,ic as E,ld as o,nb as v,nc as D,oc as w,pc as j,qa as P,va as s,vc as S}from"./chunk-L32SNWA7.js";import{e as n}from"./chunk-ECZWGI5G.js";var f,U=n(()=>{"use strict";Q();o();f=(()=>{class e extends ${getAuroraCrashConfigurationConverter(){return{convert(t,a){return{playbackData:{eventId:a.eventId,product:t.productName,container:t.container,fadeDuration:t.fadeDuration,crash$:t.crash$,gameConfiguration:{gtpaks:[`${t.productName}_${t.brandingId}.gtpak`]},orientation:"landscape"},eventStartTimestamp:a.startTimestamp,eventUniqueId:`${t.productName}-${a.eventId}`}}}}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(e)))(r||e)}})()}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})()});var y,V=n(()=>{"use strict";o();Q();Z();ee();U();x();o();y=(()=>{class e extends G{constructor(){super(s(f),s(p),s(T)),this.brandingName="bet9ja"}crash(){this.triggerCrash({})}getGameConfiguration(){return{container:this.elemRef.nativeElement,crash$:this.crashSubject.asObservable(),fadeDuration:this.fadeDuration,productName:"jetgame",brandingId:this.brandingName}}getEventConfiguration(){return{eventId:this.eventId++,startTimestamp:Date.now()-this.offsetTime}}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=l({type:e,selectors:[["sq-crash-ep-jet-escape"]],inputs:{brandingName:"brandingName"},features:[J([B,N,q,L,f,{provide:F,useClass:A}]),c],decls:0,vars:0,template:function(a,r){},dependencies:[M],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden}
/*# sourceMappingURL=jet-game-player.component-OXYTJD77.css.map */`]})}}return e})()});var W=n(()=>{"use strict";V()});function ae(e,oe){e&1&&(m(0,"div",1),S(1,"loading..."),h())}var d,g=n(()=>{"use strict";o();W();te();x();o();d=(()=>{class e extends O{constructor(){super(),this.fadeDuration=.1,this.isLoading=!0,this.isPlayerReady=!1,this.isPlaying=!1,this.canCrash=!1,this.firstLoad=!0,this.el=s(p)}ngOnChanges(){this.updateAnimation()}ngOnDestroy(){this.timer&&window.clearTimeout(this.timer)}playbackReady(){this.isPlayerReady=!0,this.isLoading&&(this.isLoading=!1,this.updateAnimation())}handlePlayerError(t){this.playerError.next(t)}handlePlaybackStart(){this.isPlaying=!0,this.canCrash=!0,this.state===u.CRASH&&this.crash(),this.playBackStart.next()}handlePlaybackEnd(){this.isPlayerReady=!1,this.isPlaying=!1,this.canCrash=!1,this.playBackEnd.next()}updateAnimation(){this.isPlayerReady&&(this.isPlaying?this.canCrash&&this.state===u.CRASH&&this.crash():this.play())}play(){this.isPlaying=!0,this.firstLoad?(this.timer=window.setTimeout(()=>{this.playerReference.play(),this.timer=void 0,I()?this.playerReady.next({useMaskAt:this.getBoundingRect()}):this.playerReady.next({})},20),this.firstLoad=!1):this.playerReference.play()}crash(){this.playerReference.crash(),this.canCrash=!1}getBoundingRect(){return this.el?.nativeElement?.getBoundingClientRect()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=l({type:e,selectors:[["sq-jet-escape-player"]],viewQuery:function(a,r){if(a&1&&D(y,5),a&2){let i;w(i=j())&&(r.playerReference=i.first)}},features:[c,C],decls:2,vars:5,consts:[[3,"playbackReady","playbackStart","playbackEnd","errorDetected","volume","fadeDuration","offsetTime","allowNotApprovedPackages"],[1,"loading"]],template:function(a,r){a&1&&(m(0,"sq-crash-ep-jet-escape",0),E("playbackReady",function(){return r.playbackReady()})("playbackStart",function(){return r.handlePlaybackStart()})("playbackEnd",function(){return r.handlePlaybackEnd()})("errorDetected",function(z){return r.handlePlayerError(z)}),h(),b(1,ae,2,0,"div",1)),a&2&&(R("volume",r.volume)("fadeDuration",r.fadeDuration)("offsetTime",r.time)("allowNotApprovedPackages",r.allowNotApprovedPackages),v(),k(r.isLoading?1:-1))},dependencies:[y],styles:[`[_nghost-%COMP%], sq-crash-ep-jet-escape[_ngcontent-%COMP%]{align-items:center;background-color:transparent;color:#fff;display:flex;height:100%;width:100%}[_nghost-%COMP%]{transition:opacity .5s ease}.loading[_ngcontent-%COMP%]{display:none}
/*# sourceMappingURL=jet-escape-player.component-VR7FKGHD.css.map */`]})}}return e})()});var re,Se,K=n(()=>{"use strict";g();re="assets/games-crash-ui-jet-escape/",Se={player:d,assetsPath:`${re}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var ne,ie,X=n(()=>{"use strict";g();ne="assets/games-crash-ui-jet-escape/",ie={player:d,assetsPath:`${ne}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var Y=n(()=>{"use strict";K();X()});var se=n(()=>{Y()});se();export{ie as viewerModule};
//# sourceMappingURL=chunk-5LEGXE2A.js.map
