1import{$ as p,Cd as l,F as n,Y as m,da as c,h as i,ia as u,n as o,s as t,t as s}from"./chunk-QQFLHA75.js";var g=class r{#t=u(l);#e=new i(1);get userSettings$(){return this.#e.pipe()}loadUiSettings(){return this.#t.get("/core/api/me/settings").pipe(n(e=>(console.error(e),o({dateFormat:"YYYY-MM-DD",hours12:!1,yearDigits2:!1,timeZone:"UTC",colorScheme:"blue"}))),t(e=>(e.dateFormat=e.dateFormat.replace("DD","dd"),e)),p(e=>{this.#e.next(e)}),m(()=>this.userSettings$))}getDateFormat(){return this.userSettings$.pipe(t(e=>(e.yearDigits2&&(e.dateFormat=e.dateFormat.replace("YYYY","YY")),e.dateFormat??"YYYY-MM-dd")))}getTimeFormat(){return this.userSettings$.pipe(t(e=>`${e.hours12?"h":"H"}:mm${e.hours12?" a":""}`))}getDateTimeFormat(){return s([this.getDateFormat(),this.getTimeFormat()]).pipe(t(([e,a])=>`${e}, ${a}`))}static \u0275fac=function(a){return new(a||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};export{g as a};
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.