import{a as O,b as G,c as Q}from"./chunk-KHQGZJWD.js";import"./chunk-UVFPKIB4.js";import{ab as q,hb as se,t as f}from"./chunk-UO63EFYQ.js";import"./chunk-U4JSLAJE.js";import"./chunk-T27WPVKK.js";import"./chunk-556DCWP5.js";import"./chunk-E56FHLIJ.js";import"./chunk-Q5D4T2Y3.js";import"./chunk-UEINPWAQ.js";import"./chunk-BU34JQ3G.js";import"./chunk-EFPGSNKD.js";import"./chunk-DSSAQI6P.js";import"./chunk-52LJ5TPV.js";import{b as I,f as F,g as L,h as N,k as A,m as $,p as re}from"./chunk-UQEEIX3C.js";import{Aa as T,M as J,pa as M,u as x,v as ae}from"./chunk-T4T25APH.js";import"./chunk-OMEYURTL.js";import{$b as h,Ab as m,Eb as d,Jc as S,Sa as C,Sb as v,Ta as b,Ua as c,Ub as k,Zb as E,_b as u,ic as R,ld as l,nb as _,nc as w,oc as B,pc as j,qa as P,va as i,vc as D}from"./chunk-JTR2KOIV.js";import{e as s}from"./chunk-ECZWGI5G.js";var y,U=s(()=>{"use strict";Q();l();y=(()=>{class e extends O{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=b(e)))(r||e)}})()}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})()});var g,V=s(()=>{"use strict";l();Q();ae();re();U();T();l();g=(()=>{class e extends G{constructor(){super(i(y),i(c),i(J)),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=m({type:e,selectors:[["sq-crash-ep-jet-escape"]],inputs:{brandingName:"brandingName"},features:[S([I,N,$,L,y,{provide:F,useClass:A}]),d],decls:0,vars:0,template:function(a,r){},dependencies:[x],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden}
/*# sourceMappingURL=jet-game-player.component-OXYTJD77.css.map */`]})}}return e})()});var W=s(()=>{"use strict";V()});function ne(e,ue){e&1&&(u(0,"div",1),D(1,"loading..."),h())}var n,p=s(()=>{"use strict";l();W();se();T();l();n=(()=>{class e extends q{constructor(){super(),this.fadeDuration=.1,this.isLoading=!0,this.isPlayerReady=!1,this.isPlaying=!1,this.canCrash=!1,this.firstLoad=!0,this.el=i(c)}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===f.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===f.CRASH&&this.crash():this.play())}play(){this.isPlaying=!0,this.firstLoad?(this.timer=window.setTimeout(()=>{this.playerReference.play(),this.timer=void 0,M()?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=m({type:e,selectors:[["sq-jet-escape-player"]],viewQuery:function(a,r){if(a&1&&w(g,5),a&2){let o;B(o=j())&&(r.playerReference=o.first)}},features:[d,C],decls:2,vars:5,consts:[[3,"playbackReady","playbackStart","playbackEnd","errorDetected","volume","fadeDuration","offsetTime","allowNotApprovedPackages"],[1,"loading"]],template:function(a,r){a&1&&(u(0,"sq-crash-ep-jet-escape",0),R("playbackReady",function(){return r.playbackReady()})("playbackStart",function(){return r.handlePlaybackStart()})("playbackEnd",function(){return r.handlePlaybackEnd()})("errorDetected",function(te){return r.handlePlayerError(te)}),h(),v(1,ne,2,0,"div",1)),a&2&&(E("volume",r.volume)("fadeDuration",r.fadeDuration)("offsetTime",r.time)("allowNotApprovedPackages",r.allowNotApprovedPackages),_(),k(r.isLoading?1:-1))},dependencies:[g],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 oe,Ie,K=s(()=>{"use strict";p();oe="assets/games-crash-ui-jet-escape/",Ie={player:n,assetsPath:`${oe}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var ie,Ne,X=s(()=>{"use strict";p();ie="assets/games-crash-ui-jet-escape/",Ne={player:n,assetsPath:`${ie}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var pe,qe,Y=s(()=>{"use strict";p();pe="assets/games-crash-ui-jet-escape/",qe={player:n,assetsPath:`${pe}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var le,Qe,z=s(()=>{"use strict";p();le="assets/games-crash-ui-jet-escape/",Qe={player:n,assetsPath:`${le}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var ce,me,Z=s(()=>{"use strict";p();ce="assets/games-crash-ui-jet-escape/",me={player:n,assetsPath:`${ce}`,sounds:{loop:[],crash:[],win:[],rocketPreamble:[],preamble:[],betButton:[],cashButton:[],multiplier:[],defaultButton:[],rocket:[],pop:[]}}});var ee=s(()=>{"use strict";K();X();Y();z();Z()});var de=s(()=>{ee()});de();export{me as viewerModule};
//# sourceMappingURL=chunk-HFDW3G6A.js.map
