1import{b as c}from"./chunk-JLWCQ6UT.js";import{V as o}from"./chunk-P4C42LQP.js";import{d as s}from"./chunk-Z7IUSDSQ.js";import{Da as a,g as n,ma as i}from"./chunk-SRTQBDBP.js";var b=(()=>{class e{constructor(t,r,g){this.translateService=t,this.document=r,this.router=g,this.currentLang=new n("ar"),this.currentLang$=this.currentLang.asObservable(),this.isLangArabic=new n(!0),this.htmlTag=this.document.getElementsByTagName("html")[0],this.initializeLanguage()}initializeLanguage(){let t=localStorage.getItem("lang")||"ar";localStorage.setItem("lang",t),this.translateService.setDefaultLang(t),this.setLangSubjectValue(t),this.isLangArabic.next(t==="ar")}setLangSubjectValue(t){this.currentLang.next(t),this.isLangArabic.next(t==="ar"),this.updateHtmlAttributes(t),this.translateService.use(t)}updateHtmlAttributes(t){this.htmlTag.lang=t,this.htmlTag.dir=t==="ar"?"rtl":"ltr"}changeCurrentLang(t){localStorage.setItem("lang",t),this.setLangSubjectValue(t),this.reloadCurrentRoute()}onLangChange(){let t=this.currentLang.value==="ar"?"en":"ar";this.changeCurrentLang(t)}getCurrentLang(){return this.currentLang.value}getOkMessageAccordingToLanguage(){return this.getCurrentLang()==="ar"?"\u0645\u0648\u0627\u0641\u0642":"Okay"}reloadCurrentRoute(){window.location.reload()}getIsLangArHandler(){return this.isLangArabic.asObservable()}static{this.\u0275fac=function(r){return new(r||e)(a(c),a(s),a(o))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{b 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.