1import{w as u}from"./chunk-24MP32AG.js";import{V as s,_ as a,g as r,ja as i}from"./chunk-TH2R3M5J.js";var A=(()=>{class n{STORAGE_KEY="jw-selected-language";DEFAULT_LANGUAGE="pl";SUPPORTED_LANGUAGES=["pl","en"];currentLanguageSubject=new r(this.DEFAULT_LANGUAGE);currentLanguage$=this.currentLanguageSubject.asObservable();translate=a(u);document=a(i);constructor(){this.initializeLanguage()}initializeLanguage(){let e=this.getSavedLanguage(),t=this.getBrowserLanguage(),g=e||t||this.DEFAULT_LANGUAGE;this.setLanguage(g)}getSavedLanguage(){if(typeof localStorage<"u"){let e=localStorage.getItem(this.STORAGE_KEY);return this.SUPPORTED_LANGUAGES.includes(e)?e:null}return null}getBrowserLanguage(){if(typeof navigator<"u"){let e=navigator.language.split("-")[0];return this.SUPPORTED_LANGUAGES.includes(e)?e:null}return null}setLanguage(e){this.SUPPORTED_LANGUAGES.includes(e)||(console.warn(`Unsupported language: ${e}. Using default: ${this.DEFAULT_LANGUAGE}`),e=this.DEFAULT_LANGUAGE),this.translate.use(e),this.document.documentElement.lang=e,typeof localStorage<"u"&&localStorage.setItem(this.STORAGE_KEY,e),this.currentLanguageSubject.next(e)}getCurrentLanguage(){return this.currentLanguageSubject.value}toggleLanguage(){let t=this.getCurrentLanguage()==="pl"?"en":"pl";this.setLanguage(t)}getSupportedLanguages(){return[...this.SUPPORTED_LANGUAGES]}isLanguageSupported(e){return this.SUPPORTED_LANGUAGES.includes(e)}getLanguageDisplayName(e){return{pl:"Polski",en:"English"}[e]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=s({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{A 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.