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