"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6013],{36013:(k,d,o)=>{o.r(d),o.d(d,{ViewMstOrgPage:()=>F});var l=o(75205),_=o(45312),i=o(36375),m=o(89417),g=o(20891),u=o(21626),v=o(4417),c=o(60177),t=o(54438),h=o(345);const E=()=>["/menu/configuration/mst-org"];function f(e,a){if(1&e&&(t.j41(0,"div")(1,"ion-card")(2,"ion-item")(3,"ion-label"),t.EFF(4,"Name:"),t.k0s(),t.j41(5,"ion-text",6),t.EFF(6),t.k0s()(),t.j41(7,"ion-item")(8,"ion-label"),t.EFF(9,"Is Active:"),t.k0s(),t.j41(10,"ion-text",6),t.EFF(11),t.k0s()(),t.j41(12,"ion-item")(13,"ion-label")(14,"ion-button",7),t.EFF(15," Edit Org "),t.k0s()()()()()),2&e){const r=t.XpG(2);t.R7$(6),t.JRh(r.mstOrg.org_name),t.R7$(5),t.JRh("1"===r.mstOrg.org_is_active?"Yes":"No"),t.R7$(3),t.Mz_("href","/menu/configuration/edit-mst-org/",r.mstOrg.org_id,"")}}function O(e,a){1&e&&(t.j41(0,"div")(1,"div",8),t.nrm(2,"ion-skeleton-text",9)(3,"ion-skeleton-text",10)(4,"ion-skeleton-text",11)(5,"ion-skeleton-text",12),t.k0s()())}function M(e,a){if(1&e&&(t.j41(0,"div",2)(1,"ion-header")(2,"ion-toolbar",3)(3,"ion-buttons",4),t.nrm(4,"ion-back-button"),t.k0s(),t.j41(5,"ion-title"),t.EFF(6,"View Org"),t.k0s()()(),t.j41(7,"ion-content"),t.DNE(8,f,16,4,"div",5)(9,O,6,0,"div",5),t.k0s()()),2&e){const r=t.XpG();t.R7$(8),t.Y8G("ngIf",!r.showSkeleton),t.R7$(),t.Y8G("ngIf",r.showSkeleton)}}function p(e,a){if(1&e&&(t.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),t.EFF(9,"Configuration"),t.k0s(),t.j41(10,"li",21)(11,"a",22),t.EFF(12,"Org"),t.k0s()(),t.j41(13,"li",23),t.EFF(14,"View Org"),t.k0s()()()()(),t.j41(15,"div",24)(16,"div",25)(17,"h1"),t.EFF(18,"View Org"),t.k0s()()(),t.j41(19,"div",18)(20,"div",26)(21,"table",27)(22,"thead")(23,"tr")(24,"th"),t.EFF(25,"#"),t.k0s(),t.nrm(26,"th"),t.k0s()(),t.j41(27,"tbody")(28,"tr")(29,"td"),t.EFF(30,"Name:"),t.k0s(),t.j41(31,"td",6),t.EFF(32),t.k0s()(),t.j41(33,"tr")(34,"td"),t.EFF(35,"Is Active:"),t.k0s(),t.j41(36,"td",6),t.EFF(37),t.k0s()(),t.j41(38,"tr")(39,"td",28)(40,"ion-button",29),t.EFF(41,"Back "),t.k0s()()()()()()()()()()()),2&e){const r=t.XpG();t.R7$(11),t.Y8G("routerLink",t.lJ4(4,E)),t.R7$(21),t.JRh(r.mstOrg.org_name),t.R7$(5),t.JRh("1"===r.mstOrg.org_is_active?"Yes":"No"),t.R7$(3),t.Y8G("routerLink","/menu/configuration/mst-org")}}let F=(()=>{var e;class a{constructor(s,n,P){this.activatedRoute=s,this.apiRequest=n,this.sanitizer=P,this.forMobile=_.c.forMobile,this.baseURL=_.c.baseApiURL,this.mstOrg={},this.showSkeleton=!0}ngOnInit(){}ionViewWillEnter(){if(this.activatedRoute.paramMap.subscribe(s=>{this.urlParams=s}),this.urlParams.params.hasOwnProperty("id")){let s=this.urlParams.params.id;this.apiRequest.post("mst_org/get_records/"+s,s).subscribe(n=>{this.mstOrg=n.data.mst_org,this.showSkeleton=!1})}}sanitizeUrl(s){return this.sanitizer.bypassSecurityTrustResourceUrl(s)}}return(e=a).\u0275fac=function(s){return new(s||e)(t.rXU(l.nX),t.rXU(g.x),t.rXU(h.up))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-view-mst-org"]],standalone:!0,features:[t.Jv_([g.x,v.W]),t.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(s,n){1&s&&t.DNE(0,M,10,2,"div",0)(1,p,42,5,"div",1),2&s&&(t.Y8G("ngIf",n.forMobile),t.R7$(),t.Y8G("ngIf",!n.forMobile))},dependencies:[c.MD,c.bT,i.bv,i.Jm,i.QW,i.b_,i.W9,i.eU,i.uz,i.he,i.ds,i.IO,i.BC,i.ai,i.el,i.N7,i.oY,m.YN,u.q1,l.Wk]}),a})()}}]);