"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6368],{46368:(P,m,s)=>{s.r(m),s.d(m,{ViewMstRequirementPage:()=>k});var u=s(75205),l=s(45312),i=s(36375),c=s(89417),_=s(20891),v=s(21626),R=s(4417),d=s(60177),e=s(54438),h=s(345);const E=()=>["/menu/configuration/mst-requirement"];function f(t,o){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 Compulsory:"),e.k0s(),e.j41(10,"ion-text",6),e.EFF(11),e.k0s()(),e.j41(12,"ion-item")(13,"ion-label"),e.EFF(14,"Is Active:"),e.k0s(),e.j41(15,"ion-text",6),e.EFF(16),e.k0s()(),e.j41(17,"ion-item")(18,"ion-label")(19,"ion-button",7),e.EFF(20," Edit Requirement "),e.k0s()()()()()),2&t){const n=e.XpG(2);e.R7$(6),e.JRh(n.mstRequirement.requirement_name),e.R7$(5),e.SpI("","1"===n.mstRequirement.requirement_is_compulsory?"Yes":"No"," "),e.R7$(5),e.JRh("1"===n.mstRequirement.requirement_is_active?"Yes":"No"),e.R7$(3),e.Mz_("href","/menu/configuration/edit-mst-requirement/",n.mstRequirement.requirement_id,"")}}function F(t,o){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 p(t,o){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 Requirement"),e.k0s()()(),e.j41(7,"ion-content"),e.DNE(8,f,21,5,"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 g(t,o){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,"Requirement"),e.k0s()(),e.j41(13,"li",23),e.EFF(14,"View Requirement"),e.k0s()()()()(),e.j41(15,"div",24)(16,"div",25)(17,"h1"),e.EFF(18,"View Requirement"),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,"Name:"),e.k0s(),e.j41(31,"td",6),e.EFF(32),e.k0s()(),e.j41(33,"tr")(34,"td"),e.EFF(35,"Is Compulsory:"),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,E)),e.R7$(21),e.JRh(n.mstRequirement.requirement_name),e.R7$(5),e.JRh("1"===n.mstRequirement.requirement_is_compulsory?"Yes":"No"),e.R7$(5),e.JRh("1"===n.mstRequirement.requirement_is_active?"Yes":"No"),e.R7$(3),e.Y8G("routerLink","/menu/configuration/mst-requirement")}}let k=(()=>{var t;class o{constructor(r,a,M){this.activatedRoute=r,this.apiRequest=a,this.sanitizer=M,this.forMobile=l.c.forMobile,this.baseURL=l.c.baseApiURL,this.mstRequirement={},this.showSkeleton=!0}ngOnInit(){}ionViewWillEnter(){if(this.activatedRoute.paramMap.subscribe(r=>{this.urlParams=r}),this.urlParams.params.hasOwnProperty("id")){let r=this.urlParams.params.id;this.apiRequest.post("mst_requirement/get_records/"+r,r).subscribe(a=>{this.mstRequirement=a.data.mst_requirement,this.showSkeleton=!1})}}sanitizeUrl(r){return this.sanitizer.bypassSecurityTrustResourceUrl(r)}}return(t=o).\u0275fac=function(r){return new(r||t)(e.rXU(u.nX),e.rXU(_.x),e.rXU(h.up))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-view-mst-requirement"]],standalone:!0,features:[e.Jv_([_.x,R.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(r,a){1&r&&e.DNE(0,p,10,2,"div",0)(1,g,47,6,"div",1),2&r&&(e.Y8G("ngIf",a.forMobile),e.R7$(),e.Y8G("ngIf",!a.forMobile))},dependencies:[d.MD,d.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,c.YN,v.q1,u.Wk]}),o})()}}]);