PageSourceSearch

https://trailence.org/chunk-Bt6J4aUS2.js

js trailence.org collected 2026-10-02 02:07:04 UTC 7,105 bytes, 1 lines download raw bytes

1import"./chunk-s0wiiGIr.js";import{t as _}from"./chunk-B7GYYPiL.js";import{Cn as fh,Dt as Vr,F as Hh,Ir as tw,Kt as ZI,M as HT,Or as sl,Q as Nv,Qr as zD,Qt as aT,Xt as Zp,at as QD,c as Bh,g as EE,kt as WD,lt as Re,ur as ph,ut as Ri,vt as UD,zr as ul}from"./chunk-hDFLhPjY.js";import"./chunk-FC6QOr9W.js";import"./chunk-CliYzLcJ.js";import"./chunk-CcZ3toaq.js";import"./chunk-rZVfv4j_.js";import"./chunk-CwUaU26X.js";import"./chunk-CvaPAsOr.js";import"./chunk-BVtY32wR.js";import"./chunk-CABSGZFi.js";import"./chunk-DD_7l2Gm.js";import{O as Gy,m as CE,p as C4}from"./chunk-D0hd025I.js";import{a as nt,n as O,o as w}from"./chunk-OfVixYYr.js";import"./chunk-Bhn2b1Np.js";import{o as Bt,x as Vi}from"./main-YKKQ4SR4.js";import"./chunk-D3sTKLJR.js";import"./chunk-D38ykYVj.js";import"./chunk-48K5wG4v.js";import{t as Fn}from"./chunk-Bfl8O5s7.js";import"./chunk-BbRbIDhd.js";import"./chunk-CmSobN6W.js";import{r as y}from"./chunk-B0UcflZI2.js";var A=(r,l)=>({"--progression-total":r,"--progression-done":l});var L=(r,l)=>l.type;function B(r,l){if(r&1&&(Ri(0,`div`,11)(1,`div`,14)(2,`div`,15),HT(3),sl()(),Ri(4,`div`),HT(5),sl()()),r&2){let t=aT().$implicit,i=aT();EE(),fh(`ngStyle`,tw(3,A,t.amount,t.current)),EE(2),ul(` \xA0 € `,i.amountFormatter(t.current),` \xA0 `),EE(2),ul(`€ `,i.amountFormatter(t.amount))}}function G(r,l){if(r&1&&(Ri(0,`div`,12),HT(1),ph(2,`ion-icon`,16),HT(3),ph(4,`ion-icon`,17),sl()),r&2){let t=aT().$implicit,i=aT();EE(),Bh(` € `,i.amountFormatter(t.amount),` `,i.i18n.texts.pages.donation.goals.raised,` `),EE(2),ul(` `,i.i18n.texts.pages.donation.goals.thanks,` `)}}function U(r,l){if(r&1&&(Ri(0,`div`,6)(1,`div`,9)(2,`span`),HT(3),sl(),Ri(4,`span`),HT(5),sl()(),Ri(6,`div`,10),UD(7,B,6,6,`div`,11)(8,G,5,3,`div`,12),Ri(9,`div`,13)(10,`span`),HT(11),sl()()()()),r&2){let t=l.$implicit,i=l.$index,e=aT();EE(3),Hh(e.i18n.texts.pages.donation.goals.goal),EE(2),ul(`\xA0`,i+1),EE(2),WD(t.current<t.amount?7:8),EE(4),Hh(e.i18n.texts.pages.donation.goals.descriptions[t.type])}}var et=(()=>{class r extends y{constructor(t,i,e,c,h){super(t),this.prefs=i,this.i18n=e,this.http=c,this.network=h,this.goals=[],this.amountFormatter=j=>j.toLocaleString(this.prefs.preferences.lang,{minimumFractionDigits:0,maximumFractionDigits:2})}initComponent(){this.whenVisible.subscribe(this.network.server$,t=>{t&&this.refresh()})}refresh(){this._refreshTimeout&&clearTimeout(this._refreshTimeout),this._refreshTimeout=void 0,this.network.server&&this.http.get(w.apiBaseUrl+`/donation/v1/status`).subscribe({next:t=>{let i=t.currentDonations/1e6;t.goals.sort((e,c)=>e.index-c.index),this.goals=[];for(let e of t.goals){let c=e.amount/100,h={type:e.type,amount:c,current:Math.min(i,c)};this.goals.push(h),i-=h.current}this.refreshTimeout()},error:t=>{_.error(t),this.refreshTimeout()}})}refreshTimeout(){this.visible&&(this._refreshTimeout=setTimeout(()=>this.refresh(),6e4))}static{this.ɵfac=function(i){return new(i||r)(Vr(Re),Vr(Vi),Vr(Bt),Vr(O),Vr(nt))}}static{this.ɵcmp=ZI({type:r,selectors:[[`app-donation-page`]],features:[Zp],decls:27,vars:11,consts:[[3,`title`,`description`,`useH1`],[1,`page-container`],[3,`innerHTML`],[1,`donation-button`],[`href`,`https://ko-fi.com/trailence`,`target`,`_blank`],[1,`goals`],[1,`goal`],[1,`developer`],[`href`,`https://github.com/trailence`,`target`,`_blank`],[1,`title`],[1,`goal-content`],[1,`progression`],[1,`progress-full`],[1,`goal-description`],[1,`progression-bar`,3,`ngStyle`],[1,`progression-done`],[`name`,`celebration`],[`name`,`heart-outline`,1,`donation-color`]],template:function(i,e){i&1&&(ph(0,`app-header`,0),Ri(1,`div`,1)(2,`h1`)(3,`span`),HT(4),sl()(),ph(5,`p`,2),Ri(6,`div`,3)(7,`a`,4)(8,`ion-button`),HT(9),sl()()(),Ri(10,`div`,5),zD(11,U,12,4,`div`,6,L),sl(),Ri(13,`h2`),HT(14),sl(),Ri(15,`div`,7)(16,`p`),HT(17),Ri(18,`a`,8),HT(19,`Github`),sl()(),Ri(20,`p`),HT(21),sl()(),Ri(22,`h2`),HT(23),sl(),Ri(24,`div`,7)(25,`p`),HT(26),sl()()()),i&2&&(fh(`title`,e.i18n.texts.pages.donation.title)(`description`,e.i18n.texts.pages.donation.meta_description)(`useH1`,!0),EE(4),Hh(e.i18n.texts.pages.donation.header),EE(),fh(`innerHTML`,e.i18n.texts.pages.donation.text,Nv),EE(4),Hh(e.i18n.texts.pages.donation.button),EE(2),QD(e.goals),EE(3),Hh(e.i18n.texts.pages.donation.developer.title),EE(3),ul(``,e.i18n.texts.pages.donation.developer.message,` `),EE(4),Hh(e.i18n.texts.pages.donation.developer.message2),EE(2),Hh(e.i18n.texts.pages.donation.translations.title),EE(3),Hh(e.i18n.texts.pages.donation.translations.message))},dependencies:[C4,CE,Fn,Gy],styles:[`div.page-container[_ngcontent-%COMP%]{padding:10px;height:100%;overflow-y:auto;font-size:16px}h1[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;font-size:24px}h1[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{margin-right:10px;width:28px;height:28px;min-width:28px}p[_ngcontent-%COMP%]{color:rgba(var(--%NS%ion-text-color-rgb),.8)}h2[_ngcontent-%COMP%]{font-size:20px}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:active{color:var(--%NS%ion-color-secondary)}@media(max-width:600px){div.page-container[_ngcontent-%COMP%]{font-size:14px}h1[_ngcontent-%COMP%]{font-size:16px}h1[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{width:24px;height:24px;min-width:24px}}.goals[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]{margin:8px;padding:8px;background-color:rgba(var(--%NS%ion-text-color-rgb),.05);border:1px solid rgba(var(--%NS%ion-color-medium-rgb),.66);border-radius:8px;width:min(95%,300px)}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .goal-description[_ngcontent-%COMP%]{font-size:14px;color:rgba(var(--%NS%ion-text-color-rgb),.8)}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .progression[_ngcontent-%COMP%]{margin:10px 0;display:flex;flex-direction:row;align-items:center;font-size:14px}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .progression[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{white-space:nowrap}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .progression[_ngcontent-%COMP%]   .progression-bar[_ng
1content-%COMP%]{margin:0 8px 0 0;flex:1 1 100%;background-color:rgba(var(--%NS%ion-text-color-rgb),.1);border-radius:9px;height:24px;overflow:hidden}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .progression[_ngcontent-%COMP%]   .progression-bar[_ngcontent-%COMP%]   .progression-done[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%ion-text-color);white-space:nowrap;text-align:right;background-color:var(--%NS%donation-color);width:calc(var(--%NS%progression-done) / var(--%NS%progression-total) * 100%);height:100%;border-radius:4px;padding-top:4px}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .progress-full[_ngcontent-%COMP%]{padding:10px 6px}.goals[_ngcontent-%COMP%]   .goal[_ngcontent-%COMP%]   .progress-full[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{width:26px;min-width:26px;height:26px;margin:0 2px -4px}`],changeDetection:1})}}return r})();export{et as DonationPage};

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.