"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4852],{94852:(b,r,s)=>{s.r(r),s.d(r,{ViewMstTestimonialPage:()=>P});var m=s(75205),d=s(45312),e=s(36375),u=s(89417),_=s(20891),v=s(21626),h=s(4417),c=s(60177),t=s(54438),f=s(345);const E=()=>["/menu/configuration/mst-testimonial"];function T(i,a){if(1&i&&(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,"Content:"),t.k0s(),t.nrm(10,"ion-text",7),t.k0s(),t.j41(11,"ion-item")(12,"ion-label")(13,"ion-button",8),t.EFF(14," Edit Testimonial "),t.k0s()()()()()),2&i){const o=t.XpG(2);t.R7$(6),t.JRh(o.mstTestimonial.testimonial_name),t.R7$(4),t.Y8G("innerHTML",o.mstTestimonial.testimonial_content,t.npT),t.R7$(3),t.Mz_("href","/menu/configuration/edit-mst-testimonial/",o.mstTestimonial.testimonial_id,"")}}function M(i,a){1&i&&(t.j41(0,"div")(1,"div",9),t.nrm(2,"ion-skeleton-text",10)(3,"ion-skeleton-text",11)(4,"ion-skeleton-text",12)(5,"ion-skeleton-text",13),t.k0s()())}function g(i,a){if(1&i&&(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 Testimonial"),t.k0s()()(),t.j41(7,"ion-content"),t.DNE(8,T,15,4,"div",5)(9,M,6,0,"div",5),t.k0s()()),2&i){const o=t.XpG();t.R7$(8),t.Y8G("ngIf",!o.showSkeleton),t.R7$(),t.Y8G("ngIf",o.showSkeleton)}}function p(i,a){if(1&i&&(t.j41(0,"div",14)(1,"div",15)(2,"div",16)(3,"div",17)(4,"div",18)(5,"div",19)(6,"div",20)(7,"ul",21)(8,"li",22),t.EFF(9,"Configuration"),t.k0s(),t.j41(10,"li",22)(11,"a",23),t.EFF(12,"Testimonial"),t.k0s()(),t.j41(13,"li",24),t.EFF(14,"View Testimonial"),t.k0s()()()()(),t.j41(15,"div",25)(16,"div",26)(17,"h1"),t.EFF(18,"View Testimonial"),t.k0s()()(),t.j41(19,"div",19)(20,"div",27)(21,"table",28)(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,"Content:"),t.k0s(),t.nrm(36,"td",7),t.k0s(),t.j41(37,"tr")(38,"td",29)(39,"ion-button",30),t.EFF(40,"Back "),t.k0s()()()()()()()()()()()),2&i){const o=t.XpG();t.R7$(11),t.Y8G("routerLink",t.lJ4(4,E)),t.R7$(21),t.JRh(o.mstTestimonial.testimonial_name),t.R7$(4),t.Y8G("innerHTML",o.mstTestimonial.testimonial_content,t.npT),t.R7$(3),t.Y8G("routerLink","/menu/configuration/mst-testimonial")}}let P=(()=>{var i;class a{constructor(n,l,k){this.activatedRoute=n,this.apiRequest=l,this.sanitizer=k,this.forMobile=d.c.forMobile,this.baseURL=d.c.baseApiURL,this.mstTestimonial={},this.showSkeleton=!0}ngOnInit(){}ionViewWillEnter(){if(this.activatedRoute.paramMap.subscribe(n=>{this.urlParams=n}),this.urlParams.params.hasOwnProperty("id")){let n=this.urlParams.params.id;this.apiRequest.post("mst_testimonial/get_records/"+n,n).subscribe(l=>{this.mstTestimonial=l.data.mst_testimonial,this.showSkeleton=!1})}}sanitizeUrl(n){return this.sanitizer.bypassSecurityTrustResourceUrl(n)}}return(i=a).\u0275fac=function(n){return new(n||i)(t.rXU(m.nX),t.rXU(_.x),t.rXU(f.up))},i.\u0275cmp=t.VBU({type:i,selectors:[["app-view-mst-testimonial"]],standalone:!0,features:[t.Jv_([_.x,h.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"],[3,"innerHTML"],["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(n,l){1&n&&t.DNE(0,g,10,2,"div",0)(1,p,41,5,"div",1),2&n&&(t.Y8G("ngIf",l.forMobile),t.R7$(),t.Y8G("ngIf",!l.forMobile))},dependencies:[c.MD,c.bT,e.bv,e.Jm,e.QW,e.b_,e.W9,e.eU,e.uz,e.he,e.ds,e.IO,e.BC,e.ai,e.el,e.N7,e.oY,u.YN,v.q1,m.Wk]}),a})()}}]);