1import{a as Lt}from"./chunk-T2VRL6SL.js";import{f as bt,g as St,h as At,j as wt,o as W,p as xt,q as Z,s as Ct,u as Rt,v as It,w as Et,x as Tt}from"./chunk-RLJX6HUN.js";import{c as lt,d as ct,e as mt,f as ut,h as vt,i as q,l as x,m as gt,n as yt,o as Y,p as se,q as Nt}from"./chunk-LWFAGR64.js";import{H as ot,I as at,J as st,L as dt,N as pt,p as G}from"./chunk-QNCKLSCX.js";import{a as C,b as ht,g as ft}from"./chunk-ICXT54AR.js";import{A as Je,B as Qe,C as K,D as Xe,E as et,F as tt,G as it,H as rt,I as nt,k as Ke,l as Ge,m as qe,n as Ye,u as oe,x as We,z as Ze}from"./chunk-KVX3QGMM.js";import"./chunk-YK4I54J7.js";import"./chunk-HP426JLC.js";import{a as ae}from"./chunk-KUDL7LGM.js";import{a as R,b as E}from"./chunk-3SKXFEDV.js";import"./chunk-TV76PUYP.js";import"./chunk-YZFBIX4X.js";import"./chunk-JE7WFXLH.js";import"./chunk-L2LUVKTY.js";import"./chunk-DOJSIOHO.js";import"./chunk-UOPKXJOB.js";import"./chunk-Y35IEVVD.js";import"./chunk-6XTYV7YZ.js";import"./chunk-CR7N3R3U.js";import"./chunk-5PHDSQQU.js";import"./chunk-GWCQHT6Q.js";import"./chunk-M3YF5KVX.js";import"./chunk-BT7JLMP4.js";import"./chunk-K3XUQLYF.js";import"./chunk-ZDVL6AZP.js";import"./chunk-3GDQPTBB.js";import"./chunk-EBUUUG4C.js";import"./chunk-PD3A77NV.js";import{$ as A,C as Ce,Cc as re,D as L,Dc as ne,E as Re,Eb as B,F as Ie,Fb as O,Jb as I,Kb as v,Lb as y,Mb as V,N as ie,Nb as Ue,Ob as je,Q as Ee,Qc as $e,S as Ne,V as h,Vc as Ve,Y as Te,Zb as He,aa as s,ba as Le,bb as ze,db as c,f as Ae,fb as _e,j as te,ja as Be,ka as Oe,lb as ke,lc as w,mc as M,n as ye,o as H,oa as Me,ra as Fe,rb as $,v as we,va as De,w as xe,x as f,xa as Pe}from"./chunk-D67YGJF6.js";import"./chunk-MJONREZX.js";import"./chunk-MZPJFIDG.js";import"./chunk-5ZFANIRF.js";import"./chunk-ZH6P2F55.js";import"./chunk-YGN6QPRP.js";import"./chunk-GGKVYRND.js";import"./chunk-UNWQIXMA.js";import"./chunk-5WWMC5IG.js";import"./chunk-PAGXI32Z.js";import"./chunk-WCYKB7QZ.js";import"./chunk-HXZJRFDE.js";import{k as Se,l as j,m}from"./chunk-EHITY2XH.js";var $t="@",Vt=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;
vendor: 2,812 bytes, line 1
1scheduler=null;injector=s(Be);loadingSchedulerFn=s(Kt,{optional:!0});_engine;constructor(i,r,n,o,d){this.doc=i,this.delegate=r,this.zone=n,this.animationType=o,this.moduleImpl=d}ngOnDestroy(){this._engine?.flush()}loadImpl(){let i=()=>this.moduleImpl??import("./chunk-UL3YJDN5.js").then(n=>n),r;return this.loadingSchedulerFn?r=this.loadingSchedulerFn(i):r=i(),r.catch(n=>{throw new Ne(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:o})=>{this._engine=n(this.animationType,this.doc);let d=new o(this.delegate,this._engine,this.zone);return this.delegate=d,d})}createRenderer(i,r){let n=this.delegate.createRenderer(i,r);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let o=new de(n);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(d=>{let g=d.createRenderer(i,r);o.use(g),this.scheduler??=this.injector.get(Pe,null,{optional:!0}),this.scheduler?.notify(10)}).catch(d=>{o.use(n)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(i){this._engine?.flush(),this.delegate.componentReplaced?.(i)}static \u0275fac=function(r){ke()};static \u0275prov=h({token:t,factory:t.\u0275fac})}return t})(),de=class{delegate;replay=[];\u0275type=1;constructor(e){this.delegate=e}use(e){if(this.delegate=e,this.replay!==null){for(let i of this.replay)i(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,i){this.delegate.appendChild(e,i)}insertBefore(e,i,r,n){this.delegate.insertBefore(e,i,r,n)}removeChild(e,i,r,n){this.delegate.removeChild(e,i,r,n)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,r,n){this.delegate.setAttribute(e,i,r,n)}removeAttribute(e,i,r){this.delegate.removeAttribute(e,i,r)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,r,n){this.delegate.setStyle(e,i,r,n)}removeStyle(e,i,r){this.delegate.removeStyle(e,i,r)}setProperty(e,i,r){this.shouldReplay(i)&&this.replay.push(n=>n.setProperty(e,i,r)),this.delegate.setProperty(e,i,r)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,r,n){return this.shouldReplay(i)&&this.replay.push(o=>o.listen(e,i,r,n)),this.delegate.listen(e,i,r,n)}shouldReplay(e){return this.replay!==null&&e.startsWith($t)}}
1,Kt=new Te("");function Bt(t="animations"){return ze("NgAsyncAnimations"),Le([{provide:_e,useFactory:()=>new Vt(s(Oe),s(Ke),s(Me),t)},{provide:De,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var J=class{online$;constructor(){if(!C){this.online$=te(!0);return}this.online$=xe(te(ft()),we(window,"online").pipe(Re(!0))).pipe(f(e=>!!e))}};var Ot=class t{constructor(e,i,r){this.router=e;this.activatedRoute=i;this.pairsService=r}router;activatedRoute;pairsService;resolve(e,i){let r=ht("LOCALIZE_DEFAULT_LANGUAGE"),n=(x.languages??[]).find(o=>o.id===r);C&&this.router.navigate([`${n?n.id:"en"}/price/BTC`],{relativeTo:this.activatedRoute,replaceUrl:!0})}static \u0275fac=function(i){return new(i||t)(A(K),A(Ze),A(q))};static \u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})},D=class t{constructor(e){this.pairsService=e}pairsService;resolve(e,i){let r=At().pipe(L(1),H(o=>{let d={B:6,"\u20AC":2,$:2,\u30B7:0};return o&&Object.keys(o).forEach(g=>{d[g]=o[g]}),this.pairsService.digits=d})),n=St().pipe(L(1),H(o=>(this.pairsService.exchanges().length||this.pairsService.exchanges.set(o.map(d=>({key:d.key??d.name,name:d.name}))),this.pairsService.exchanges())));return new J().online$.pipe(L(1),ie(()=>r),ie(()=>n))}static \u0275fac=function(i){return new(i||t)(A(q))};static \u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})},P=class t{constructor(e){this.pairsService=e}pairsService;resolve(e,i){let r=e.params.pair||this.pairsService.activePair()||{};return bt().pipe(Ee(n=>{vt(n)}),H(n=>{this.pairsService.setPairs(n);let o=this.pairsService.pairs(),d=o.find(N=>N.pair===r),g=o[0],b=d??g;return this.pairsService.setActivePair(b),b}),L(1))}static \u0275fac=function(i){return new(i||t)(A(q))};static \u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})};var u=class t{constructor(e){this.seoService=e}seoService;resolve(e,i){return this.seoService.setResolvedPath(i.url),!0}static \u0275fac=function(i){return new(i||t)(A(Y))};static \u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})};var pe=[{path:":pair",loadComponent:()=>import("./chunk-DFI27FBX.js").then(t=>t.ChartComponent),resolve:{seo:u,pairs:P,exchanges:D}},{path:"",loadComponent:()=>import("./chunk-DFI27FBX.js").then(t=>t.ChartComponent),resolve:{seo:u,pairs:P,exchanges:D}}],Mt=[{path:"imprint",loadComponent:()=>import("./chunk-YRWHWNU2.js").then(t=>t.ImprintComponent),resolve:{seo:u}},{path:"contact",loadComponent:()=>import("./chunk-XLQNR3II.js").then(t=>t.ContactComponent),resolve:{seo:u}},{path:"apps",loadComponent:()=>import("./chunk-HIXQHPQ5.js").then(t=>t.AppsComponent),resolve:{seo:u}},{path:"price",resolve:{seo:u},children:pe},{path:"ccc",resolve:{seo:u},children:pe},{path:"",resolve:{seo:u},children:pe},{path:"**",loadComponent:()=>import("./chunk-WXQBDJG3.js").then(t=>t.NotFoundComponent),resolve:{seo:u}}];function Gt(t){return{appName:t.appName??"Crypto Coin Check",showAds:t.showAds??!1,subscriptions:t.subscriptions??{},revenueCat:t.revenueCat,admobiOS:t.admobiOS?{banner:t.admobiOS.banner.id,interstitial:t.admobiOS.interstitial?.id}:void 0,admobAndroid:t.admobAndroid?{banner:t.admobAndroid.banner.id,interstitial:t.admobAndroid.interstitial?.id}:void 0}}var le=class{constructor(e,i,r){this.http=e;this.prefix=i;this.suffix=r}http;prefix;suffix;getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}};function qt(t){let e=x.i18n??"i18n";return new le(t,`/assets/${e}/`,".json")}var Ft={providers:[{provide:Qe,useClass:ot},Ve({eventCoalescing:!0,runCoalescing:!0}),it(Mt,rt(),nt(tt)),Bt(),pt({statusTap:!0}),Ye(),ut({loader:{provide:lt,useFactory:qt,deps:[qe]}}),{provide:Z,useValue:Gt(x)}]};var ce=(function(t){return t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT",t})(ce||{});var z=E("StatusBar");var _=(function(t){return t.SizeChanged="bannerAdSizeChanged",t.Loaded="bannerAdLoaded",t.FailedToLoad="bannerAdFailedToLoad",t.Opened="bannerAdOpened",t.Closed="bannerAdClosed",t.AdImpression="bannerAdImpression",t})(_||{});var me=(function(t){return t.TOP_CENTER="TOP_CENTER",t.CENTER="CENTER",t.BOTTOM_CENTER="BOTTOM_CENTER",t})(me||{});var ue=(function(t){return t.BANNER="BANNER",t.FULL_BANNER="FULL_BANNER",t.LARGE_BANNER="LARGE_BANNER",t.MEDIUM_RECTANGLE="MEDIUM_RECTANGLE",t.LEADERBOARD="LEADERBOARD",t.ADAPTIVE_BANNER="ADAPTIVE_BANNER",t.SMART_BANNER="SMART_BANNER",t})(ue||{});var he=(function(t){return t.Loaded="interstitialAdLoaded",t.FailedToLoad="interstitialAdFailedToLoad",t.Showed="interstitialAdShowed",t.FailedToShow="interstitialAdFailedToShow",t.Dismissed="interstitialAdDismissed",t})(he||{});var l=E("AdMob",{web:()=>import("./chunk-STLYXPU6.js").then(t=>new t.AdMobWeb)}
1);var Dt=E("Device",{web:()=>import("./chunk-Q22IUXL2.js").then(t=>new t.DeviceWeb)});var Pt="This value was promised to be truthy.";function fe(t,e=Pt){if(!t)throw new Error(e)}fe.silent=(t,e=Pt)=>{t||console.warn(e)};var zt=t=>m(null,null,function*(){return new Promise(e=>setTimeout(e,t))});var k=new Ae(1);ae.addListener("pause",()=>{console.warn("appStateChange: App paused"),k.next(!1)});ae.addListener("resume",()=>{console.warn("appStateChange: App resumed"),k.next(!0)});var _t=k.pipe(f(t=>t)),Qr=k.pipe(f(t=>!t));k.next(!0);var Yt=[],Wt=1,Zt=2,Jt=45e3,Qt=10*6e4,p=class{capacitorSvc=s(Tt);platform=s(G);config=s(Z);noAds=!1;hasInitialized=!1;lastBannerSizeKey=null;currentBannerSize;adMobListenerHandles=[];interstitialOpportunitySubscription;numberOfRunsAdThreshold;numberOfRunsInterstitialThreshold;constructor(){let e=this.config;this.numberOfRunsAdThreshold=W(e.numberOfRunsAdThreshold)?e.numberOfRunsAdThreshold:Wt,this.numberOfRunsInterstitialThreshold=W(e.numberOfRunsInterstitialThreshold)?e.numberOfRunsInterstitialThreshold:Zt;try{let i=sessionStorage.getItem(p.SESSION_BANNER_HEIGHT_KEY);if(i!==null){let r=Number(i);Number.isFinite(r)&&r>0&&(this.currentBannerSize={width:Math.max(window.innerWidth,0),height:r},this.applyBannerSpacing(this.currentBannerSize))}}catch(i){}}getCurrentBannerSize(){return this.currentBannerSize}initializeAdmob(e){return m(this,null,function*(){if(this.noAds||this.hasInitialized)return;if(this.capacitorSvc.numberOfRuns<this.numberOfRunsAdThreshold){this.applyBannerSpacing(void 0);return}if(this.hasInitialized=!0,yield this.platform.ready(),this.noAds){yield this.removeAdMobListeners();return}let{identifier:r}=yield Dt.getId(),n=Yt.some(a=>a===r),o=n?{testingDevices:["9FC5CA332943F6AA3A0ABE3F1EF0D248","b49aa50f65e24b19897468b18589c654","356155ac5a88352df374b96cb2539f76","2062AD716E1A7581C328E5741309A72F","0f8891538cfa180f96b7112ebf2e681b"],initializeForTesting:!0}:{initializeForTesting:!1};if(this.noAds){yield this.removeAdMobListeners();return}try{yield l.initialize(o)}catch(a){console.warn("Admob: initialize failed",a);return}if(this.noAds)return;let[d,g]=yield Promise.all([l.trackingAuthorizationStatus(),l.requestConsentInfo()]),b=g;if(this.noAds||(!b.canRequestAds&&b.isConsentFormAvailable&&b.status===Lt.REQUIRED&&(b=yield l.showConsentForm()),this.noAds)||!b.canRequestAds)return;d.status==="notDetermined"&&(yield this.requestTrackingAuthorization()),yield this.removeAdMobListeners();let N=a=>{this.applyBannerSpacing(a),e?.onBannerSizeChanged?.(a)};yield this.addAdMobListener(l.addListener(_.SizeChanged,a=>{let S=Number(a?.width??0),T=Number(a?.height??0);if(!Number.isFinite(S)||!Number.isFinite(T))return;this.currentBannerSize=S>0&&T>0?{width:S,height:T}:void 0;let be=this.currentBannerSize?`${this.currentBannerSize.width}x${this.currentBannerSize.height}`:null;this.lastBannerSizeKey!==be&&(this.lastBannerSizeKey=be,N(this.currentBannerSize))})),yield this.addAdMobListener(l.addListener(_.Loaded,()=>{let a=this.currentBannerSize?`${this.currentBannerSize.width}x${this.currentBannerSize.height}`:null;a===null||this.lastBannerSizeKey===a||(this.lastBannerSizeKey=a,N(this.currentBannerSize))}));let U=this.capacitorSvc.isIos?this.config.admobiOS:this.config.admobAndroid;fe(W(U),"No admob config defined");let Ut={adId:U.banner,adSize:ue.ADAPTIVE_BANNER,position:me.BOTTOM_CENTER,margin:0};if(this.noAds)return;if(yield this.addAdMobListener(l.addListener(_.FailedToLoad,a=>{this.currentBannerSize=void 0,this.lastBannerSizeKey=null,N(void 0);let S=a.message??"",T=S.includes("No ads meet eCPM floor")||S.includes("Request Error: No ad to show.");this.capacitorSvc.isDevMode&&!T&&console.warn("Admob: banner failed to load",JSON.stringify(a)),xt.logEvent({name:"ad_banner_fill",params:{status:"failed",platform:this.capacitorSvc.isIos?"ios":"android",message:a.message,code:a.code}})})),yield l.showBanner(Ut),this.noAds){yield this.removeBannerSafely(),yield this.removeAdMobListeners();return}if(this.capacitorSvc.numberOfRuns<this.numberOfRunsInterstitialThreshold||!U.interstitial)return;yield this.addAdMobListener(l.addListener(he.Loaded,()=>{}));let ee=!1,ve=0,jt=Date.now()+Jt,ge=e?.canShowInterstitial,Ht=()=>m(this,null,function*(){if(this.noAds||ee||Date.now()<jt||Date.now()-ve<Qt||!ge||!(yield ge()))return;ve=Date.now(),ee=!0;let a={adId:U.interstitial};try{if(yield l.prepareInterstitial(a),yield ye(_t),this.noAds)return;yield l.showInterstitial()}catch(S){this.capacitorSvc.isDevMode&&console.warn("Admob: interstitial failed",S)}finally{ee=!1}});
1this.interstitialOpportunitySubscription?.unsubscribe(),this.interstitialOpportunitySubscription=e?.interstitialOpportunity$?.pipe(It(this)).subscribe(()=>{Ht()})})}closeAds(){return m(this,null,function*(){this.noAds=!0,this.currentBannerSize=void 0,this.lastBannerSizeKey=null,this.clearInterstitialOpportunitySubscription(),yield this.removeAdMobListeners(),yield this.removeBannerSafely(),document.documentElement.style.setProperty("--admob-banner-height","0px"),document.body.classList.remove("admob-banner-visible");try{sessionStorage.removeItem(p.SESSION_BANNER_HEIGHT_KEY)}catch(e){}this.notifyLayoutChanged()})}restartAds(){return m(this,null,function*(){this.currentBannerSize=void 0,this.lastBannerSizeKey=null,this.clearInterstitialOpportunitySubscription(),yield this.removeAdMobListeners(),this.noAds=!1,this.hasInitialized=!1})}addAdMobListener(e){return m(this,null,function*(){this.adMobListenerHandles.push(yield e)})}removeAdMobListeners(){return m(this,null,function*(){let e=this.adMobListenerHandles;this.adMobListenerHandles=[],yield Promise.all(e.map(i=>m(this,null,function*(){try{yield i.remove()}catch(r){this.capacitorSvc.isDevMode&&console.warn("Admob: failed to remove listener",r)}})))})}clearInterstitialOpportunitySubscription(){this.interstitialOpportunitySubscription?.unsubscribe(),this.interstitialOpportunitySubscription=void 0}applyBannerSpacing(e){let i=e?Math.max(0,e.height):0;document.documentElement.style.setProperty("--admob-banner-height",`${i}px`),document.body.classList.toggle("admob-banner-visible",i>0);try{i>0?sessionStorage.setItem(p.SESSION_BANNER_HEIGHT_KEY,String(i)):sessionStorage.removeItem(p.SESSION_BANNER_HEIGHT_KEY)}catch(r){}this.notifyLayoutChanged()}notifyLayoutChanged(){window.dispatchEvent(new Event("resize"))}removeBannerSafely(){return m(this,null,function*(){try{yield l.removeBanner()}catch(e){this.capacitorSvc.isDevMode&&console.warn("Admob: remove banner failed",e)}})}requestTrackingAuthorization(){return m(this,null,function*(){yield l.requestTrackingAuthorization();let e={status:"notDetermined"};for(;e.status==="notDetermined";)yield zt(1e3),e=yield l.trackingAuthorizationStatus();return e})}};j(p,"SESSION_BANNER_HEIGHT_KEY","dp-admob-banner-height"),j(p,"\u0275fac",function(i){return new(i||p)}),j(p,"\u0275prov",h({token:p,factory:p.\u0275fac,providedIn:"root"})),p=Se([Rt()],p);var Q=class t{label=$e.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=$({type:t,selectors:[["dp-admob-banner-disclosure"]],inputs:{label:[1,"label"]},decls:3,vars:1,consts:[["aria-hidden","true",1,"admob-banner-disclosure"]],template:function(i,r){i&1&&(Ue(0,"div",0)(1,"span"),w(2),je()()),i&2&&(c(2),M(r.label()))},styles:[".admob-banner-disclosure[_ngcontent-%COMP%]{position:fixed;right:0;bottom:var(--admob-banner-offset, 0px);left:0;z-index:10002;display:flex;align-items:center;justify-content:center;height:var(--admob-disclosure-height, 0px);min-height:0;padding-inline:max(.5rem,var(--app-safe-area-left)) max(.5rem,var(--app-safe-area-right));overflow:hidden;pointer-events:none;background:var(--admob-disclosure-bg, color-mix(in srgb, var(--ion-background-color, #ffffff) 96%, var(--ion-color-primary, #000000) 4%));border-top:1px solid var(--admob-disclosure-border, var(--app-border-subtle, rgba(15, 23, 42, .14)));border-bottom:1px solid var(--admob-disclosure-border, var(--app-border-subtle, rgba(15, 23, 42, .14)));box-shadow:var(--admob-disclosure-shadow, 0 -1px 0 rgba(255, 255, 255, .66));color:var(--admob-disclosure-color, color-mix(in srgb, var(--ion-text-color, #1f2937) 62%, transparent));font-size:.625rem;font-weight:800;letter-spacing:.08em;line-height:1;text-transform:uppercase}span[_ngcontent-%COMP%]{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})};function kt(){document.body.classList.toggle("native-android",R.isNativePlatform()&&R.getPlatform()==="android"),document.body.classList.toggle("native-ios",R.isNativePlatform()&&R.getPlatform()==="ios")}function ei(t,e){t&1&&(v(0,"li")(1,"a",7),w(2,"Apps"),y()()),t&2&&(c(),I("routerLink","/apps"))}function ti(t,e){if(t&1&&(v(0,"ion-header",1)(1,"div",5)(2,"ul",6)(3,"li")(4,"a",7),w(5,"Bitcoin Monitor"),y()(),v(6,"li")(7,"a",7),w(8,"Crypto Coin Check"),y()()(),v(9,"ul",6),B(10,ei,3,1,"li"),v(11,"li")(12,"a",8),w(13),re(14,"translate"),y()(),v(15,"li")(16,"a",9),w(17),re(18,"translate"),y()()()()()),t&2){let i=He();c(4),I("routerLink","/price"),c(3),I("routerLink","/ccc"),c(3),O(i.userAgentService.showAppLinks?10:-1),c(2),I("routerLink","/imprint"),c(),M(ne(14,7,"NAV_IMPRINT")),c(3),I("routerLink","/contact"),c(),M(ne(18,9,"NAV_CONTACT"))}}function ii(t,e){t&1&&V(0,"ion-router-outlet",3)}function ri(t,e){t&1&&V(0,"router-outlet")}function ni(t,e){t&1&&V(0,"dp-admob-banner-disclosure",4)}var oi=x.languages??[],ai=5e3,X=class t{config=x;isNative=C?R.isNativePlatform():!1;isBrowser=C;bannerSize=Fe(void 0);platform=s(G);translateSvc=s(ct);spinner=s(yt);userAgentService=s(wt);router=s(K);admob=s(p);iapService=s(Ct);seoService=s(Y);lastUserInteractionAt=Date.now();constructor(){kt(),this.isBrowser&&this.platform.backButton.subscribeWithPriority(10,()=>{console.log("Exit was called!"),navigator.app?.exitApp?.()}),this.updateConfigForUrl(this.router.url),this.initializeApp(),this.trackUserInteraction(),this.router.events.pipe(f(e=>e instanceof We)).subscribe(e=>{let i=this.config.homeRoute??"price";e.snapshot.url.length&&e.snapshot.url[0].path!==i&&this.spinner.stop()}),this.router.events.pipe(f(e=>e instanceof oe)).subscribe(e=>{let i=e;this.updateConfigForUrl(i.urlAfterRedirects||i.url)})}initializeApp(){this.initializeTranslation(),this.isBrowser&&this.platform.ready().then(()=>
1{if(this.isNative){let e=this.config.customBackground==="bitcoin-monitor-background"?"#000000":"#162125";z.setOverlaysWebView({overlay:!1}),z.setStyle({style:ce.Dark}),z.setBackgroundColor({color:e}),z.show(),setTimeout(()=>{Et.hide().catch(()=>{})},2e3),this.config.showAds&&(this.config.subscriptions?.adFreeId?this.iapService.isAdFree$.pipe(Ie()).subscribe(i=>{i?(this.bannerSize.set(void 0),this.admob.closeAds()):this.initializeAdmob()}):this.initializeAdmob())}})}initializeAdmob(){this.admob.initializeAdmob({onBannerSizeChanged:e=>this.bannerSize.set(e),canShowInterstitial:()=>this.isCalmForInterstitial(),interstitialOpportunity$:this.router.events.pipe(f(e=>e instanceof oe),Ce(750))})}trackUserInteraction(){if(!this.isBrowser)return;let e=()=>{this.lastUserInteractionAt=Date.now()};window.addEventListener("pointerdown",e,{passive:!0}),window.addEventListener("keydown",e),window.addEventListener("wheel",e,{passive:!0})}isCalmForInterstitial(){return!(document.visibilityState==="hidden"||this.spinner.isActive()||Date.now()-this.lastUserInteractionAt<ai)}initializeTranslation(){this.translateSvc.addLangs(oi.map(i=>i.id)),this.translateSvc.setFallbackLang(se);let e=this.isBrowser?this.translateSvc.getBrowserLang():se;this.translateSvc.use(Nt(e))}updateConfigForUrl(e){this.config=gt(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=$({type:t,selectors:[["crypto-root"]],decls:6,vars:3,consts:[[1,"background-image"],["translucent",""],[1,"relative","flex-container","flex-grow"],[1,"needs-resize"],["label","Advertisement"],[1,"flex-container","navbar","m-b-sm","align-items-center","space-between"],[1,"nav-group"],["routerLinkActive","active accent",3,"routerLink"],["routerLinkActive","active accent","aria-label","Imprint",3,"routerLink"],["routerLinkActive","active accent","aria-label","Contact",3,"routerLink"]],template:function(i,r){i&1&&(v(0,"ion-app",0),B(1,ti,19,11,"ion-header",1),v(2,"div",2),B(3,ii,1,0,"ion-router-outlet",3)(4,ri,1,0,"router-outlet"),y(),B(5,ni,1,0,"dp-admob-banner-disclosure",4),y()),i&2&&(c(),O(r.isNative?-1:1),c(2),O(r.isBrowser?3:4),c(2),O(r.bannerSize()?5:-1))},dependencies:[Q,st,dt,at,Je,Xe,et,mt],encapsulation:2})};Ge(X,Ft).catch(t=>console.error(t));
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.