"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7619],{17619:(R,d,s)=>{s.r(d),s.d(d,{ViewMstZonePage:()=>p});var l=s(75205),_=s(45312),o=s(36375),u=s(89417),m=s(20891),v=s(21626),h=s(4417),c=s(60177),e=s(54438),E=s(345);const f=()=>["/menu/configuration/mst-zone"];function g(t,a){if(1&t&&(e.j41(0,"div")(1,"ion-card")(2,"ion-item")(3,"ion-label"),e.EFF(4,"Name:"),e.k0s(),e.j41(5,"ion-text",6),e.EFF(6),e.k0s()(),e.j41(7,"ion-item")(8,"ion-label"),e.EFF(9,"Is Active:"),e.k0s(),e.j41(10,"ion-text",6),e.EFF(11),e.k0s()(),e.j41(12,"ion-item")(13,"ion-label")(14,"ion-button",7),e.EFF(15," Edit Zone "),e.k0s()()()()()),2&t){const n=e.XpG(2);e.R7$(6),e.JRh(n.mstZone.zone_name),e.R7$(5),e.JRh("1"===n.mstZone.zone_is_active?"Yes":"No"),e.R7$(3),e.Mz_("href","/menu/configuration/edit-mst-zone/",n.mstZone.zone_id,"")}}function F(t,a){1&t&&(e.j41(0,"div")(1,"div",8),e.nrm(2,"ion-skeleton-text",9)(3,"ion-skeleton-text",10)(4,"ion-skeleton-text",11)(5,"ion-skeleton-text",12),e.k0s()())}function M(t,a){if(1&t&&(e.j41(0,"div",2)(1,"ion-header")(2,"ion-toolbar",3)(3,"ion-buttons",4),e.nrm(4,"ion-back-button"),e.k0s(),e.j41(5,"ion-title"),e.EFF(6,"View Zone"),e.k0s()()(),e.j41(7,"ion-content"),e.DNE(8,g,16,4,"div",5)(9,F,6,0,"div",5),e.k0s()()),2&t){const n=e.XpG();e.R7$(8),e.Y8G("ngIf",!n.showSkeleton),e.R7$(),e.Y8G("ngIf",n.showSkeleton)}}function k(t,a){if(1&t&&(e.j41(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16)(4,"div",17)(5,"div",18)(6,"div",19)(7,"ul",20)(8,"li",21),e.EFF(9,"Configuration"),e.k0s(),e.j41(10,"li",21)(11,"a",22),e.EFF(12,"Zone"),e.k0s()(),e.j41(13,"li",23),e.EFF(14,"View Zone"),e.k0s()()()()(),e.j41(15,"div",24)(16,"div",25)(17,"h1"),e.EFF(18,"View Zone"),e.k0s()()(),e.j41(19,"div",18)(20,"div",26)(21,"table",27)(22,"thead")(23,"tr")(24,"th"),e.EFF(25,"#"),e.k0s(),e.nrm(26,"th"),e.k0s()(),e.j41(27,"tbody")(28,"tr")(29,"td"),e.EFF(30,"Zone Name:"),e.k0s(),e.j41(31,"td",6),e.EFF(32),e.k0s()(),e.j41(33,"tr")(34,"td"),e.EFF(35,"Org Name:"),e.k0s(),e.j41(36,"td",6),e.EFF(37),e.k0s()(),e.j41(38,"tr")(39,"td"),e.EFF(40,"Is Active:"),e.k0s(),e.j41(41,"td",6),e.EFF(42),e.k0s()(),e.j41(43,"tr")(44,"td",28)(45,"ion-button",29),e.EFF(46,"Back "),e.k0s()()()()()()()()()()()),2&t){const n=e.XpG();e.R7$(11),e.Y8G("routerLink",e.lJ4(5,f)),e.R7$(21),e.JRh(n.mstZone.zone_name),e.R7$(5),e.JRh(n.mstZone.org_name),e.R7$(5),e.JRh("1"===n.mstZone.zone_is_active?"Yes":"No"),e.R7$(3),e.Y8G("routerLink","/menu/configuration/mst-zone")}}let p=(()=>{var t;class a{constructor(i,r,P){this.activatedRoute=i,this.apiRequest=r,this.sanitizer=P,this.forMobile=_.c.forMobile,this.baseURL=_.c.baseApiURL,this.mstZone={},this.showSkeleton=!0}ngOnInit(){}ionViewWillEnter(){if(this.activatedRoute.paramMap.subscribe(i=>{this.urlParams=i}),this.urlParams.params.hasOwnProperty("id")){let i=this.urlParams.params.id;this.apiRequest.post("mst_zone/get_records/"+i,i).subscribe(r=>{this.mstZone=r.data.mst_zone,this.showSkeleton=!1})}}sanitizeUrl(i){return this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return(t=a).\u0275fac=function(i){return new(i||t)(e.rXU(l.nX),e.rXU(m.x),e.rXU(E.up))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-view-mst-zone"]],standalone:!0,features:[e.Jv_([m.x,h.W]),e.aNF],decls:2,vars:2,consts:[["class","mobile","style","height:100%",4,"ngIf"],["class","desktop","style","height:100%;overflow-y: auto;overflow-x: auto;background:#f7f7f7;",4,"ngIf"],[1,"mobile",2,"height","100%"],["color","primary"],["slot","start"],[4,"ngIf"],[1,"ion-text-wrap"],["expand","full",3,"href"],[1,"ion-padding","custom-skeleton"],["animated","",2,"width","70%"],["animated","",2,"width","80%"],["animated","",2,"width","90%"],["animated","",2,"width","100%"],[1,"desktop",2,"height","100%","overflow-y","auto","overflow-x","auto","background","#f7f7f7"],[1,"wrapper"],[1,"sa4d25"],[1,"container-fluid"],[1,"page-header"],[1,"row"],[1,"col"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],[1,"card_dash1"],[1,"card_dash_left1"],[1,"col-12"],[1,"table","table-responsive","table-bordered"],["colspan","2"],["type","button","color","danger",3,"routerLink"]],template:function(i,r){1&i&&e.DNE(0,M,10,2,"div",0)(1,k,47,6,"div",1),2&i&&(e.Y8G("ngIf",r.forMobile),e.R7$(),e.Y8G("ngIf",!r.forMobile))},dependencies:[c.MD,c.bT,o.bv,o.Jm,o.QW,o.b_,o.W9,o.eU,o.uz,o.he,o.ds,o.IO,o.BC,o.ai,o.el,o.N7,o.oY,u.YN,v.q1,l.Wk]}),a})()}}]);