-
Notifications
You must be signed in to change notification settings - Fork 1
/
9479.9d6c9a920c8edcfc.js
1 lines (1 loc) · 2.26 KB
/
9479.9d6c9a920c8edcfc.js
1
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9479],{9479:(L,u,o)=>{o.r(u),o.d(u,{LanguagesModule:()=>v});var l=o(177),g=o(1470);class p{constructor(c,e){this.name=c,this.code=e}}var r=o(5694),s=o(915),n=o(4438),h=o(7984);let m=(()=>{class t{constructor(e,a){this.router=e,this.statusExchanger=a}ngOnInit(){}changeLanguage(e){localStorage.setItem("language",e),this.router.navigate(["/"]),this.statusExchanger.activeLanguageCode.emit(e)}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(g.Ix),n.rXU(h.r))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["app-language"]],inputs:{language:"language"},standalone:!0,features:[n.aNF],decls:3,vars:1,consts:[[3,"click"]],template:function(a,i){1&a&&(n.j41(0,"ion-item",0),n.bIt("click",function(){return i.changeLanguage(i.language.code)}),n.j41(1,"ion-label"),n.EFF(2),n.k0s()()),2&a&&(n.R7$(2),n.JRh(i.language.name))},dependencies:[s.bv,s.uz,s.he],styles:["ion-item[_ngcontent-%COMP%]{margin-top:7px}"]})}return t})();function d(t,c){1&t&&n.nrm(0,"app-language",2),2&t&&n.Y8G("language",c.$implicit)}const f=[{path:"",component:(()=>{class t{constructor(){this.languages=[new p("English","en")]}ngOnInit(){}static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["app-languages"]],standalone:!0,features:[n.aNF],decls:9,vars:4,consts:[["translucent",""],[3,"language",4,"ngFor","ngForOf"],[3,"language"]],template:function(a,i){1&a&&(n.j41(0,"ion-app")(1,"ion-content")(2,"ion-list")(3,"ion-header",0)(4,"ion-toolbar")(5,"ion-title"),n.EFF(6),n.nI1(7,"translate"),n.k0s()()(),n.DNE(8,d,1,1,"app-language",1),n.k0s()()()),2&a&&(n.R7$(6),n.SpI(" ",n.bMT(7,2,"language"),""),n.R7$(2),n.Y8G("ngForOf",i.languages))},dependencies:[s.bv,s.U1,s.W9,s.eU,s.nf,s.BC,s.ai,l.pM,m,r.h,r.D9],styles:["ion-header[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--background: none;--box-shadow: none}"]})}return t})()}];let C=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#a=this.\u0275inj=n.G2t({imports:[g.iI.forChild(f),g.iI]})}return t})(),v=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#a=this.\u0275inj=n.G2t({imports:[l.MD,s.bv,C]})}return t})()}}]);