"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6660],{26660:(P,d,o)=>{o.r(d),o.d(d,{ViewMstMessagePage:()=>p});var _=o(75205),l=o(45312),t=o(36375),u=o(89417),m=o(20891),c=o(21626),M=o(4417),g=o(60177),e=o(54438),v=o(345);const h=()=>["/menu/configuration/mst-message"];function E(s,n){if(1&s&&(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 Message "),e.k0s()()()()()),2&s){const a=e.XpG(2);e.R7$(6),e.JRh(a.mstMessage.message_name),e.R7$(5),e.JRh("1"===a.mstMessage.message_is_active?"Yes":"No"),e.R7$(3),e.Mz_("href","/menu/configuration/edit-mst-message/",a.mstMessage.message_id,"")}}function f(s,n){1&s&&(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 F(s,n){if(1&s&&(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 Message"),e.k0s()()(),e.j41(7,"ion-content"),e.DNE(8,E,16,4,"div",5)(9,f,6,0,"div",5),e.k0s()()),2&s){const a=e.XpG();e.R7$(8),e.Y8G("ngIf",!a.showSkeleton),e.R7$(),e.Y8G("ngIf",a.showSkeleton)}}function k(s,n){if(1&s&&(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,"Message"),e.k0s()(),e.j41(13,"li",23),e.EFF(14,"View Message"),e.k0s()()()()(),e.j41(15,"div",24)(16,"div",25),e.nrm(17,"i",26),e.j41(18,"h1"),e.EFF(19,"View Message"),e.k0s()()(),e.j41(20,"div",18)(21,"div",27)(22,"table",28)(23,"thead")(24,"tr")(25,"th"),e.EFF(26,"#"),e.k0s(),e.nrm(27,"th"),e.k0s()(),e.j41(28,"tbody")(29,"tr")(30,"td"),e.EFF(31,"Name:"),e.k0s(),e.j41(32,"td",6),e.EFF(33),e.k0s()(),e.j41(34,"tr")(35,"td"),e.EFF(36,"Message from:"),e.k0s(),e.j41(37,"td",6),e.EFF(38),e.k0s()(),e.j41(39,"tr")(40,"td"),e.EFF(41,"Message to:"),e.k0s(),e.j41(42,"td",6),e.EFF(43),e.k0s()(),e.j41(44,"tr")(45,"td"),e.EFF(46,"Is Active:"),e.k0s(),e.j41(47,"td",6),e.EFF(48),e.k0s()(),e.j41(49,"tr")(50,"td",29)(51,"ion-button",30),e.EFF(52,"Back "),e.k0s()()()()()()()()()()()),2&s){const a=e.XpG();e.R7$(11),e.Y8G("routerLink",e.lJ4(6,h)),e.R7$(22),e.JRh(a.mstMessage.message_name),e.R7$(5),e.JRh(a.mstMessage.message_from_user_id),e.R7$(5),e.JRh(a.mstMessage.message_to_user_id),e.R7$(5),e.JRh("1"===a.mstMessage.message_is_active?"Yes":"No"),e.R7$(3),e.Y8G("routerLink","/menu/configuration/mst-message")}}let p=(()=>{var s;class n{constructor(i,r,R){this.activatedRoute=i,this.apiRequest=r,this.sanitizer=R,this.forMobile=l.c.forMobile,this.baseURL=l.c.baseApiURL,this.mstMessage={},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_message/get_records/"+i,i).subscribe(r=>{this.mstMessage=r.data.mst_message,this.showSkeleton=!1})}}sanitizeUrl(i){return this.sanitizer.bypassSecurityTrustResourceUrl(i)}}return(s=n).\u0275fac=function(i){return new(i||s)(e.rXU(_.nX),e.rXU(m.x),e.rXU(v.up))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-view-mst-message"]],standalone:!0,features:[e.Jv_([m.x,M.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,"uil","uil-award"],[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,F,10,2,"div",0)(1,k,53,7,"div",1),2&i&&(e.Y8G("ngIf",r.forMobile),e.R7$(),e.Y8G("ngIf",!r.forMobile))},dependencies:[g.MD,g.bT,t.bv,t.Jm,t.QW,t.b_,t.W9,t.eU,t.uz,t.he,t.ds,t.IO,t.BC,t.ai,t.el,t.N7,t.oY,u.YN,c.q1,_.Wk]}),n})()}}]);