<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{a as s}from"./chunk-B6LIAO5K.js";import{a as l,i as h}from"./chunk-DPB6NOKB.js";import{o as n,u as c}from"./chunk-FAZPNFSM.js";import{ca as a,ia as e}from"./chunk-2IQUHU5E.js";var p=class r{authService=e(h);log=e(c);localStorageService=e(l);deviceService=e(s);router=e(n);constructor(){}startPlay(t,o=!0){this.log.out("LOGGED ON as "+t.nickname+" settings tokens"),this.log.out("Setting storage tokens"),this.localStorageService.getItem("token")?this.log.out("Already have a token in Local Storage"):this.localStorageService.setItem("token",t.token),this.localStorageService.setItem("server","backend-dot-schnopsncom.appspot.com"),o?window.open("/game/schnopsn.htm","_blank"):window.location.href="/game/schnopsn.htm"}play(t,o=!0){if(t&amp;&amp;!this.authService.currentUserValue)this.log.out("NO USER GOING TO SIGNUP"),this.router.navigate(["/signup"]);else if(!this.deviceService.isMobile())this.authService.checkLogon(i=&gt;{i?this.startPlay(i,o):this.log.out("LOGON NOT SUCCESSFUL")});else if(this.deviceService.isAndroid()){this.log.out("Android");let i=Math.floor(Math.random()*Math.floor(1e3));window.location.href="https://storage.googleapis.com/schnopsncomdata/SchnopsnCashAndroid.apk?rnd="+i}else this.deviceService.isIOS()?window.location.href="https://apps.apple.com/at/app/schnopsn-cash/id1548924371":(this.log.out("CAN ONLY PLAY RIGHT AWAY ON DESKTOP OR TABLET"),this.router.navigate(["/signup"]))}static \u0275fac=function(o){return new(o||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
</pre></body></html>