"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6229],{6229:(x,c,o)=>{o.r(c),o.d(c,{VersionUpdatePageModule:()=>T});var d=o(6895),p=o(4006),r=o(9383),g=o(529),f=o(9832),i=o(8008),u=o(3324),v=o(7582),t=o(4650),h=o(2045),U=o(2401),m=o(205),V=o(5362);function O(e,a){if(1&e){const n=t.EpF();t.TgZ(0,"ion-button",3),t.NdJ("click",function(){t.CHM(n);const l=t.oxw();return t.KtG(l.download())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"VERSION_UPDATE.DOWNLOAD")))}const P=[{path:"",component:(()=>{class e{constructor(n,s,l,E,Z,y){this.iab=n,this.routerOutlet=s,this.platform=l,this.facility=E,this.taptic=Z,this._log=y}ngOnInit(){return(0,v.mG)(this,void 0,void 0,function*(){this.link=yield this.facility.getDownloadUrl()})}ionViewWillEnter(){this.routerOutlet.swipeGesture=!1}ionViewDidLeave(){this.routerOutlet.swipeGesture=!0}download(){this.taptic.impactMedium(),this._log.send({event:"download",type:"click",ref:"version-update"}),this.iab.create(this.link,"_system",{usewkwebview:"yes"})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(h.i),t.Y36(i.jP),t.Y36(i.t4),t.Y36(U.j),t.Y36(m.u),t.Y36(V.$))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-version-update"]],decls:16,vars:10,consts:[[1,"base-container"],[1,"clr-danger"],["expand","block",3,"click",4,"ngIf"],["expand","block",3,"click"]],template:function(n,s){1&n&&(t.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),t._uU(3),t.ALo(4,"translate"),t.qZA()()(),t.TgZ(5,"ion-content")(6,"div",0)(7,"p"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"p",1),t._uU(11),t.ALo(12,"translate"),t.qZA()()(),t.TgZ(13,"ion-footer")(14,"ion-toolbar"),t.YNc(15,O,3,3,"ion-button",2),t.qZA()()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,4,"VERSION_UPDATE.TITLE")),t.xp6(5),t.Oqu(t.lcZ(9,6,"VERSION_UPDATE.MESSAGE_VERSION_TOO_LOW")),t.xp6(3),t.Oqu(t.lcZ(12,8,"VERSION_UPDATE.MESSAGE_DONT_UNINSTALL")),t.xp6(4),t.Q6J("ngIf",s.link))},dependencies:[d.O5,i.YG,i.W2,i.fr,i.Gu,i.wd,i.sr,r.X$]}),e})()}];let A=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[u.Bz.forChild(P),u.Bz]}),e})(),T=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[d.ez,p.u5,i.Pc,A,r.aw.forChild({loader:{provide:r.Zw,useFactory:a=>new f.w(a),deps:[g.eN]}})]}),e})()}}]);