"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9801],{39801:(M,v,a)=>{a.r(v),a.d(v,{ViewMstReviewPage:()=>p});var d=a(75205),_=a(45312),s=a(36375),R=a(89417),l=a(20891),w=a(21626),c=a(4417),m=a(60177),e=a(54438),u=a(345);const E=()=>["/menu/configuration/mst-review"];function h(t,n){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,"Rating:"),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 Approved:"),e.k0s(),e.j41(15,"ion-text",6),e.EFF(16),e.k0s()(),e.j41(17,"ion-item")(18,"ion-label"),e.EFF(19,"Is Active:"),e.k0s(),e.j41(20,"ion-text",6),e.EFF(21),e.k0s()(),e.j41(22,"ion-item")(23,"ion-label")(24,"ion-button",7),e.EFF(25," Edit Review "),e.k0s()()()()()),2&t){const i=e.XpG(2);e.R7$(6),e.JRh(i.mstReview.review_name),e.R7$(5),e.JRh(i.mstReview.review_rating),e.R7$(5),e.JRh("1"===i.mstReview.review_is_approved?"Yes":"No"),e.R7$(5),e.JRh("1"===i.mstReview.review_is_active?"Yes":"No"),e.R7$(3),e.Mz_("href","/menu/configuration/edit-mst-review/",i.mstReview.review_id,"")}}function F(t,n){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 f(t,n){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 Review"),e.k0s()()(),e.j41(7,"ion-content"),e.DNE(8,h,26,6,"div",5)(9,F,6,0,"div",5),e.k0s()()),2&t){const i=e.XpG();e.R7$(8),e.Y8G("ngIf",!i.showSkeleton),e.R7$(),e.Y8G("ngIf",i.showSkeleton)}}function g(t,n){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,"Review"),e.k0s()(),e.j41(13,"li",23),e.EFF(14,"View Review"),e.k0s()()()()(),e.j41(15,"div",24)(16,"div",25)(17,"h1"),e.EFF(18,"View Review"),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,"Rating:"),e.k0s(),e.j41(36,"td",6),e.EFF(37),e.k0s()(),e.j41(38,"tr")(39,"td"),e.EFF(40,"Is Approved:"),e.k0s(),e.j41(41,"td",6),e.EFF(42),e.k0s()(),e.j41(43,"tr")(44,"td"),e.EFF(45,"Is Active:"),e.k0s(),e.j41(46,"td",6),e.EFF(47),e.k0s()(),e.j41(48,"tr")(49,"td",28)(50,"ion-button",29),e.EFF(51,"Back "),e.k0s()()()()()()()()()()()),2&t){const i=e.XpG();e.R7$(11),e.Y8G("routerLink",e.lJ4(6,E)),e.R7$(21),e.JRh(i.mstReview.review_name),e.R7$(5),e.JRh(i.mstReview.review_rating),e.R7$(5),e.JRh("1"===i.mstReview.review_is_approved?"Yes":"No"),e.R7$(5),e.JRh("1"===i.mstReview.review_is_active?"Yes":"No"),e.R7$(3),e.Y8G("routerLink","/menu/configuration/mst-review")}}let p=(()=>{var t;class n{constructor(o,r,k){this.activatedRoute=o,this.apiRequest=r,this.sanitizer=k,this.forMobile=_.c.forMobile,this.baseURL=_.c.baseApiURL,this.mstReview={},this.showSkeleton=!0}ngOnInit(){}ionViewWillEnter(){if(this.activatedRoute.paramMap.subscribe(o=>{this.urlParams=o}),this.urlParams.params.hasOwnProperty("id")){let o=this.urlParams.params.id;this.apiRequest.post("mst_review/get_records/"+o,o).subscribe(r=>{this.mstReview=r.data.mst_review,this.showSkeleton=!1})}}sanitizeUrl(o){return this.sanitizer.bypassSecurityTrustResourceUrl(o)}}return(t=n).\u0275fac=function(o){return new(o||t)(e.rXU(d.nX),e.rXU(l.x),e.rXU(u.up))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-view-mst-review"]],standalone:!0,features:[e.Jv_([l.x,c.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(o,r){1&o&&e.DNE(0,f,10,2,"div",0)(1,g,52,7,"div",1),2&o&&(e.Y8G("ngIf",r.forMobile),e.R7$(),e.Y8G("ngIf",!r.forMobile))},dependencies:[m.MD,m.bT,s.bv,s.Jm,s.QW,s.b_,s.W9,s.eU,s.uz,s.he,s.ds,s.IO,s.BC,s.ai,s.el,s.N7,s.oY,R.YN,w.q1,d.Wk]}),n})()}}]);