(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/5ci":function(e,t,n){"use strict";n.r(t);var i=n("ofXK"),a=n("3Pt+"),c=n("sYmb"),o=n("uIW0"),l=n("UWk7"),r=n("GAWG"),s=n("j672"),d=n("AytR"),m=n("fXoL"),u=n("DiM6"),b=n("jhN1"),g=n("LYBR"),h=n("tyNb"),p=n("qVlC"),f=n("oOf3"),v=n("GmSP"),C=n("/9+q");function D(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function M(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("en"==e.translate.currentLang?null==e.category?null:e.category.SubMenuNameEnglish:null==e.category?null:e.category.SubMenuNameHindi)}}function I(e,t){if(1&e){const e=m.bc();m.ac(0,"div",11),m.ac(1,"div",12),m.ac(2,"div",13),m.ac(3,"div",14),m.ac(4,"label",15),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.ac(7,"input",16),m.ic("ngModelChange",(function(t){return m.Mc(e),m.mc().filterModel.SearchKeyword=t}))("keyup.enter",(function(){return m.Mc(e),m.mc().onSearch()})),m.nc(8,"translate"),m.Zb(),m.Zb(),m.ac(9,"div",17),m.ac(10,"label",18),m.Vc(11,"\xa0"),m.Zb(),m.ac(12,"button",19),m.ic("click",(function(){return m.Mc(e),m.mc().onSearch()})),m.Wb(13,"i",20),m.Vc(14),m.nc(15,"translate"),m.Zb(),m.Zb(),m.ac(16,"div",17),m.ac(17,"label",18),m.Vc(18,"\xa0"),m.Zb(),m.ac(19,"button",21),m.ic("click",(function(){return m.Mc(e),m.mc().reset()})),m.Wb(20,"i",22),m.Vc(21),m.nc(22,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(5),m.Wc(m.oc(6,5,"TextSearch_txt")),m.Hb(2),m.uc("placeholder",m.oc(8,7,"TextSearch_txt")),m.tc("ngModel",e.filterModel.SearchKeyword),m.Hb(7),m.Xc(" ",m.oc(15,9,"Search_txt")," "),m.Hb(7),m.Xc(" ",m.oc(22,11,"Reset_txt")," ")}}function Z(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"date"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(1),m.Xc(" ",m.pc(2,1,e.AchievementDate,t.DateFormat)," ")}}function T(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.Xc(" ",e.AchievementDateHindi," ")}}function y(e,t){1&e&&(m.ac(0,"span"),m.Vc(1,"N/A"),m.Zb())}function x(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",38),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.PdfFIleName,m.Pc),m.uc("title",m.oc(1,2,"pdf_txt"))}}function P(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",39),m.ic("error",(function(t){return m.Mc(e),m.mc(5).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function S(e,t){if(1&e&&(m.Yb(0),m.Tc(1,P,5,11,"a",36),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",e)}}function _(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",39),m.ic("error",(function(t){return m.Mc(e),m.mc(4).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e.ImagePath,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e.ImagePath,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function w(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",40),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.Url,m.Pc),m.uc("title",m.oc(1,2,"WebsiteUrl"))}}function L(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.Vc(5),m.Zb(),m.ac(6,"td"),m.Tc(7,Z,3,4,"span",6),m.Tc(8,T,2,1,"span",6),m.Tc(9,y,2,0,"span",6),m.Zb(),m.ac(10,"td"),m.Tc(11,x,3,4,"a",35),m.Tc(12,S,2,1,"ng-container",34),m.Tc(13,_,5,11,"a",36),m.Tc(14,w,3,4,"a",35),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(3),m.Xc(" ",(i.indexModel.Page-1)*i.indexModel.PageSize+(n+1)," "),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(2),m.tc("ngIf","en"==i.translate.currentLang&&(null==e?null:e.AchievementDate)),m.Hb(1),m.tc("ngIf","en"!=i.translate.currentLang&&(null==e?null:e.AchievementDateHindi)),m.Hb(1),m.tc("ngIf",!(null!=e&&e.AchievementDate||null!=e&&e.AchievementDateHindi)),m.Hb(2),m.tc("ngIf",e.PdfFIleName),m.Hb(1),m.tc("ngForOf",e.ImageFiles),m.Hb(1),m.tc("ngIf",e.ImagePath),m.Hb(1),m.tc("ngIf",e.Url)}}function V(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",29),m.ac(2,"div",30),m.ac(3,"table",31),m.ac(4,"thead"),m.ac(5,"tr"),m.ac(6,"th",32),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.ac(9,"th"),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.ac(12,"th"),m.Vc(13),m.nc(14,"translate"),m.Zb(),m.ac(15,"th",33),m.Vc(16),m.nc(17,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(18,"tbody"),m.Tc(19,L,15,9,"ng-container",34),m.nc(20,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Xb()),2&e){const e=m.mc(2);m.Hb(7),m.Wc(m.oc(8,5,"SrNo_txt")),m.Hb(3),m.Wc(m.oc(11,7,"Description_txt")),m.Hb(3),m.Wc(m.oc(14,9,"Date_txt")),m.Hb(3),m.Wc(m.oc(17,11,"Attachment_txt")),m.Hb(3),m.tc("ngForOf",m.pc(20,13,e.model,e.pagerConfig))}}function k(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"25"),m.Zb())}function N(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"50"),m.Zb())}function O(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"100"),m.Zb())}function A(e,t){if(1&e){const e=m.bc();m.ac(0,"div",41),m.ac(1,"select",42),m.ic("change",(function(t){return m.Mc(e),m.mc(2).changePageSize(t.target.value)})),m.ac(2,"option",43),m.Vc(3,"10"),m.Zb(),m.Tc(4,k,2,0,"option",44),m.Tc(5,N,2,0,"option",45),m.Tc(6,O,2,0,"option",46),m.ac(7,"option",47),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb(),m.ac(10,"pagination-controls",48),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(2).getNextPageRecord(t)})),m.nc(11,"translate"),m.nc(12,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(4),m.tc("ngIf",e.totalRecords>25),m.Hb(1),m.tc("ngIf",e.totalRecords>50),m.Hb(1),m.tc("ngIf",e.totalRecords>100),m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(9,7,"All_txt")," "),m.Hb(2),m.uc("previousLabel",m.oc(11,9,"Previous_txt")),m.uc("nextLabel",m.oc(12,11,"Next_txt"))}}function W(e,t){if(1&e){const e=m.bc();m.ac(0,"div",23),m.ac(1,"div",24),m.ac(2,"div",25),m.ac(3,"h1",26),m.ac(4,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/departmental_galley.png")})),m.nc(5,"translate"),m.nc(6,"translate"),m.Zb(),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"div",24),m.Tc(10,V,21,16,"ng-container",6),m.Tc(11,A,13,13,"div",28),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(4),m.uc("src",(null==e.pageTitle?null:e.pageTitle.ImagePath)||"assets/images/new-gov-orders.png",m.Pc),m.uc("title",m.oc(5,6,"Government_Orders_txt")),m.uc("alt",m.oc(6,8,"Government_Orders_txt")),m.Hb(3),m.Xc(" ",m.oc(8,10,"Government_Orders_txt")," "),m.Hb(3),m.tc("ngIf",(null==e.model?null:e.model.length)>0),m.Hb(1),m.tc("ngIf",e.totalRecords>10)}}function E(e,t){if(1&e&&m.Wb(0,"div",55),2&e){const e=m.mc().$implicit;m.tc("innerHTML",null==e?null:e.EditorDetailEnglish,m.Nc)}}function G(e,t){if(1&e&&m.Wb(0,"div",55),2&e){const e=m.mc().$implicit;m.tc("innerHTML",null==e?null:e.EditorDetail,m.Nc)}}function F(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",38),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.PdfFIleName,m.Pc),m.uc("title",m.oc(1,2,"pdf_txt"))}}function R(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",39),m.ic("error",(function(t){return m.Mc(e),m.mc(5).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function X(e,t){if(1&e&&(m.Yb(0),m.Tc(1,R,5,11,"a",36),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",e)}}function B(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",39),m.ic("error",(function(t){return m.Mc(e),m.mc(4).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e.ImagePath,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e.ImagePath,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function U(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",40),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.Url,m.Pc),m.uc("title",m.oc(1,2,"WebsiteUrl"))}}function z(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.ac(5,"div",53),m.Vc(6),m.Zb(),m.Tc(7,E,1,1,"div",54),m.Tc(8,G,1,1,"div",54),m.Zb(),m.ac(9,"td"),m.Tc(10,F,3,4,"a",35),m.Tc(11,X,2,1,"ng-container",34),m.Tc(12,B,5,11,"a",36),m.Tc(13,U,3,4,"a",35),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(3),m.Xc(" ",(i.indexModel.Page-1)*i.indexModel.PageSize+(n+1)," "),m.Hb(3),m.Xc(" ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("ngIf","en"==i.translate.currentLang),m.Hb(1),m.tc("ngIf","en"!=i.translate.currentLang),m.Hb(2),m.tc("ngIf",e.PdfFIleName),m.Hb(1),m.tc("ngForOf",e.ImageFiles),m.Hb(1),m.tc("ngIf",e.ImagePath),m.Hb(1),m.tc("ngIf",e.Url)}}function j(e,t){if(1&e&&(m.ac(0,"div",29),m.ac(1,"div",30),m.ac(2,"table",31),m.ac(3,"thead"),m.ac(4,"tr"),m.ac(5,"th",32),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.ac(8,"th"),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.ac(11,"th",33),m.Vc(12),m.nc(13,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(14,"tbody"),m.Tc(15,z,14,8,"ng-container",34),m.nc(16,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(6),m.Wc(m.oc(7,4,"SrNo_txt")),m.Hb(3),m.Wc(m.oc(10,6,"Description_txt")),m.Hb(3),m.Wc(m.oc(13,8,"Attachment_txt")),m.Hb(3),m.tc("ngForOf",m.pc(16,10,e.model,e.pagerConfig))}}function Y(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"25"),m.Zb())}function q(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"50"),m.Zb())}function J(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"100"),m.Zb())}function K(e,t){if(1&e){const e=m.bc();m.ac(0,"div",41),m.ac(1,"select",42),m.ic("change",(function(t){return m.Mc(e),m.mc(2).changeSpecialZonePageSize(t.target.value)})),m.ac(2,"option",43),m.Vc(3,"10"),m.Zb(),m.Tc(4,Y,2,0,"option",44),m.Tc(5,q,2,0,"option",45),m.Tc(6,J,2,0,"option",46),m.ac(7,"option",47),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb(),m.ac(10,"pagination-controls",48),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(2).getSpecialZoneNextPageRecord(t)})),m.nc(11,"translate"),m.nc(12,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(4),m.tc("ngIf",e.totalRecords>25),m.Hb(1),m.tc("ngIf",e.totalRecords>50),m.Hb(1),m.tc("ngIf",e.totalRecords>100),m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(9,7,"All_txt")," "),m.Hb(2),m.uc("previousLabel",m.oc(11,9,"Previous_txt")),m.uc("nextLabel",m.oc(12,11,"Next_txt"))}}function Q(e,t){if(1&e){const e=m.bc();m.ac(0,"div",23),m.ac(1,"div",24),m.ac(2,"div",25),m.ac(3,"h1",26),m.ac(4,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/requered-doc.png")})),m.nc(5,"translate"),m.nc(6,"translate"),m.Zb(),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"div",24),m.Tc(10,j,17,13,"div",52),m.Tc(11,K,13,13,"div",28),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(4),m.uc("src",(null==e.pageTitle?null:e.pageTitle.ImagePath)||"assets/images/new-gov-orders.png",m.Pc),m.uc("title",m.oc(5,6,"specialEconomicZone_txt")),m.uc("alt",m.oc(6,8,"specialEconomicZone_txt")),m.Hb(3),m.Xc(" ",m.oc(8,10,"specialEconomicZone_txt")," "),m.Hb(3),m.tc("ngIf",(null==e.model?null:e.model.length)>0),m.Hb(1),m.tc("ngIf",e.totalRecords>10)}}function ee(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function te(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("en"==e.translate.currentLang?null==e.category?null:e.category.SubMenuNameEnglish:null==e.category?null:e.category.SubMenuNameHindi)}}function ne(e,t){1&e&&(m.ac(0,"th"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"Date_txt")))}function ie(e,t){if(1&e&&m.Wb(0,"div",55),2&e){const e=m.mc().$implicit;m.tc("innerHTML",null==e?null:e.EditorDetailEnglish,m.Nc)}}function ae(e,t){if(1&e&&m.Wb(0,"div",55),2&e){const e=m.mc().$implicit;m.tc("innerHTML",null==e?null:e.EditorDetail,m.Nc)}}function ce(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"date"),m.Zb()),2&e){const e=m.mc(2).$implicit,t=m.mc(3);m.Hb(1),m.Xc(" ",m.pc(2,1,e.AchievementDate,t.DateFormat)," ")}}function oe(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2).$implicit;m.Hb(1),m.Xc(" ",e.AchievementDateHindi," ")}}function le(e,t){1&e&&(m.ac(0,"span"),m.Vc(1,"N/A"),m.Zb())}function re(e,t){if(1&e&&(m.ac(0,"td"),m.Tc(1,ce,3,4,"span",6),m.Tc(2,oe,2,1,"span",6),m.Tc(3,le,2,0,"span",6),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(1),m.tc("ngIf","en"==t.translate.currentLang&&(null==e?null:e.AchievementDate)),m.Hb(1),m.tc("ngIf","en"!=t.translate.currentLang&&(null==e?null:e.AchievementDateHindi)),m.Hb(1),m.tc("ngIf",!(null!=e&&e.AchievementDate||null!=e&&e.AchievementDateHindi))}}function se(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",38),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.PdfFIleName,m.Pc),m.uc("title",m.oc(1,2,"pdf_txt"))}}function de(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",40),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.Url,m.Pc),m.uc("title",m.oc(1,2,"WebsiteUrl"))}}function me(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",57),m.ic("error",(function(t){return m.Mc(e),m.mc(5).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function ue(e,t){if(1&e&&(m.Yb(0),m.Tc(1,me,5,11,"a",36),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",e)}}function be(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.ac(5,"div",53),m.Vc(6),m.Zb(),m.Tc(7,ie,1,1,"div",54),m.Tc(8,ae,1,1,"div",54),m.Zb(),m.Tc(9,re,4,3,"td",6),m.ac(10,"td"),m.Tc(11,se,3,4,"a",35),m.Tc(12,de,3,4,"a",35),m.Tc(13,ue,2,1,"ng-container",34),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(3),m.Xc(" ",(i.indexModel.Page-1)*i.indexModel.PageSize+(n+1)," "),m.Hb(3),m.Xc(" ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("ngIf","en"==i.translate.currentLang),m.Hb(1),m.tc("ngIf","en"!=i.translate.currentLang),m.Hb(1),m.tc("ngIf",i.category&&i.category.IsVisibleDate),m.Hb(2),m.tc("ngIf",e.PdfFIleName),m.Hb(1),m.tc("ngIf",e.Url),m.Hb(1),m.tc("ngForOf",e.ImageFiles)}}function ge(e,t){if(1&e&&(m.ac(0,"div",29),m.ac(1,"div",30),m.ac(2,"table",31),m.ac(3,"thead"),m.ac(4,"tr"),m.ac(5,"th",32),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.ac(8,"th"),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.Tc(11,ne,3,3,"th",6),m.ac(12,"th",33),m.Vc(13),m.nc(14,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(15,"tbody"),m.Tc(16,be,14,8,"ng-container",34),m.nc(17,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(6),m.Wc(m.oc(7,5,"SrNo_txt")),m.Hb(3),m.Wc(m.oc(10,7,"Description_txt")),m.Hb(2),m.tc("ngIf",e.category&&e.category.IsVisibleDate),m.Hb(2),m.Wc(m.oc(14,9,"Attachment_txt")),m.Hb(3),m.tc("ngForOf",m.pc(17,11,e.model,e.pagerConfig))}}function he(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"25"),m.Zb())}function pe(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"50"),m.Zb())}function fe(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"100"),m.Zb())}function ve(e,t){if(1&e){const e=m.bc();m.ac(0,"div",41),m.ac(1,"select",42),m.ic("change",(function(t){return m.Mc(e),m.mc(2).changeSpecialZonePageSize(t.target.value)})),m.ac(2,"option",43),m.Vc(3,"10"),m.Zb(),m.Tc(4,he,2,0,"option",44),m.Tc(5,pe,2,0,"option",45),m.Tc(6,fe,2,0,"option",46),m.ac(7,"option",47),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb(),m.ac(10,"pagination-controls",48),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(2).getSpecialZoneNextPageRecord(t)})),m.nc(11,"translate"),m.nc(12,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(4),m.tc("ngIf",e.totalRecords>25),m.Hb(1),m.tc("ngIf",e.totalRecords>50),m.Hb(1),m.tc("ngIf",e.totalRecords>100),m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(9,7,"All_txt")," "),m.Hb(2),m.uc("previousLabel",m.oc(11,9,"Previous_txt")),m.uc("nextLabel",m.oc(12,11,"Next_txt"))}}function Ce(e,t){if(1&e){const e=m.bc();m.ac(0,"div",23),m.ac(1,"div",24),m.ac(2,"div",25),m.ac(3,"h1",26),m.ac(4,"img",56),m.ic("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/new-gov-orders.png")}))("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/requered-doc.png")})),m.Zb(),m.Tc(5,ee,2,1,"span",6),m.Tc(6,te,2,1,"span",6),m.Zb(),m.Zb(),m.Zb(),m.ac(7,"div",24),m.Tc(8,ge,18,14,"div",52),m.Tc(9,ve,13,13,"div",28),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(4),m.uc("title","en"==e.translate.currentLang?e.category.SubMenuNameEnglish:e.category.SubMenuNameHindi),m.uc("alt","en"==e.translate.currentLang?e.category.SubMenuNameEnglish:e.category.SubMenuNameHindi),m.tc("src",null==e.category?null:e.category.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(2),m.tc("ngIf",(null==e.model?null:e.model.length)>0),m.Hb(1),m.tc("ngIf",e.totalRecords>10)}}function He(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",38),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.PdfFIleName,m.Pc),m.uc("title",m.oc(1,2,"pdf_txt"))}}function De(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",39),m.ic("error",(function(t){return m.Mc(e),m.mc(5).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function Me(e,t){if(1&e&&(m.Yb(0),m.Tc(1,De,5,11,"a",36),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",e)}}function Ie(e,t){if(1&e){const e=m.bc();m.ac(0,"a",37),m.nc(1,"translate"),m.ac(2,"img",39),m.ic("error",(function(t){return m.Mc(e),m.mc(4).commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit;m.uc("href",e.ImagePath,m.Pc),m.uc("title",m.oc(1,5,"Image_txt")),m.Hb(2),m.uc("src",e.ImagePath,m.Pc),m.uc("title",m.oc(3,7,"Image_txt")),m.uc("alt",m.oc(4,9,"Image_txt"))}}function Ze(e,t){if(1&e&&(m.ac(0,"a",37),m.nc(1,"translate"),m.Wb(2,"i",40),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.Url,m.Pc),m.uc("title",m.oc(1,2,"WebsiteUrl"))}}function Te(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.Vc(5),m.Zb(),m.ac(6,"td"),m.Tc(7,He,3,4,"a",35),m.Tc(8,Me,2,1,"ng-container",34),m.Tc(9,Ie,5,11,"a",36),m.Tc(10,Ze,3,4,"a",35),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(3),m.Xc(" ",(i.indexModel.Page-1)*i.indexModel.PageSize+(n+1)," "),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(2),m.tc("ngIf",e.PdfFIleName),m.Hb(1),m.tc("ngForOf",e.ImageFiles),m.Hb(1),m.tc("ngIf",e.ImagePath),m.Hb(1),m.tc("ngIf",e.Url)}}function ye(e,t){if(1&e&&(m.ac(0,"div",29),m.ac(1,"div",30),m.ac(2,"table",31),m.ac(3,"thead"),m.ac(4,"tr"),m.ac(5,"th",32),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.ac(8,"th"),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.ac(11,"th",33),m.Vc(12),m.nc(13,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(14,"tbody"),m.Tc(15,Te,11,6,"ng-container",34),m.nc(16,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(6),m.Wc(m.oc(7,4,"SrNo_txt")),m.Hb(3),m.Wc(m.oc(10,6,"Scheme-Package-Description_txt")),m.Hb(3),m.Wc(m.oc(13,8,"Attachment_txt")),m.Hb(3),m.tc("ngForOf",m.pc(16,10,e.packagesModel,e.packagesPagerConfig))}}function xe(e,t){if(1&e){const e=m.bc();m.ac(0,"div",23),m.ac(1,"div",24),m.ac(2,"div",25),m.ac(3,"h1",26),m.ac(4,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/requered-doc.png")})),m.nc(5,"translate"),m.nc(6,"translate"),m.Zb(),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"div",24),m.Tc(10,ye,17,13,"div",52),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(4),m.uc("src",(null==e.pageTitle?null:e.pageTitle.ImagePath)||"assets/images/scheme-package.png",m.Pc),m.uc("title",m.oc(5,5,"Detail-scheme-Package_txt")),m.uc("alt",m.oc(6,7,"Detail-scheme-Package_txt")),m.Hb(3),m.Xc(" ",m.oc(8,9,"Detail-scheme-Package_txt")," "),m.Hb(3),m.tc("ngIf",(null==e.packagesModel?null:e.packagesModel.length)>0)}}function Pe(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"date"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(1),m.Xc(" ",m.pc(2,1,e.AchievementDate,t.DateFormat)," ")}}function Se(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.Xc(" ",e.AchievementDateHindi," ")}}function _e(e,t){if(1&e&&(m.ac(0,"a",59),m.Wb(1,"i",60),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.PdfFIleName,m.Pc)}}function we(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.Vc(5),m.Zb(),m.ac(6,"td"),m.Tc(7,Pe,3,4,"span",6),m.Tc(8,Se,2,1,"span",6),m.Zb(),m.ac(9,"td"),m.Tc(10,_e,2,1,"a",58),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(3),m.Xc(" ",(i.inMediaIndexModel.Page-1)*i.inMediaIndexModel.PageSize+(n+1)," "),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(2),m.tc("ngIf","en"==i.translate.currentLang&&(null==e?null:e.AchievementDate)),m.Hb(1),m.tc("ngIf","en"!=i.translate.currentLang&&(null==e?null:e.AchievementDateHindi)),m.Hb(2),m.tc("ngIf",e.PdfFIleName)}}function Le(e,t){if(1&e&&(m.ac(0,"div",29),m.ac(1,"div",30),m.ac(2,"table",31),m.ac(3,"thead"),m.ac(4,"tr"),m.ac(5,"th",32),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.ac(8,"th"),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.ac(11,"th"),m.Vc(12),m.nc(13,"translate"),m.Zb(),m.ac(14,"th",33),m.Vc(15),m.nc(16,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(17,"tbody"),m.Tc(18,we,11,5,"ng-container",34),m.nc(19,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(6),m.Wc(m.oc(7,5,"SrNo_txt")),m.Hb(3),m.Wc(m.oc(10,7,"NewsHeadline_txt")),m.Hb(3),m.Wc(m.oc(13,9,"Date_txt")),m.Hb(3),m.Wc(m.oc(16,11,"Attachment_txt")),m.Hb(3),m.tc("ngForOf",m.pc(19,13,e.inMediaModel,e.inMediaPagerConfig))}}function Ve(e,t){if(1&e){const e=m.bc();m.ac(0,"div",23),m.ac(1,"div",24),m.ac(2,"div",25),m.ac(3,"h1",26),m.ac(4,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/requered-doc.png")})),m.nc(5,"translate"),m.nc(6,"translate"),m.Zb(),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"div",24),m.Tc(10,Le,20,16,"div",52),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(4),m.uc("src",(null==e.pageTitle?null:e.pageTitle.ImagePath)||"assets/images/new-gov-orders.png",m.Pc),m.uc("title",m.oc(5,5,"InMedia_txt")),m.uc("alt",m.oc(6,7,"InMedia_txt")),m.Hb(3),m.Xc(" ",m.oc(8,9,"InMedia_txt")," "),m.Hb(3),m.tc("ngIf",(null==e.inMediaModel?null:e.inMediaModel.length)>0)}}function ke(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ne(e,t){1&e&&m.Wb(0,"app-no-records",62),2&e&&m.tc("showImage",!0)}function Oe(e,t){if(1&e&&(m.Yb(0),m.Tc(1,ke,1,0,"app-mini-loader",6),m.Tc(2,Ne,1,1,"app-no-records",61),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",!e.model),m.Hb(1),m.tc("ngIf",e.model&&0==e.model.length)}}function Ae(e,t){1&e&&m.Wb(0,"app-mini-loader")}function We(e,t){1&e&&m.Wb(0,"app-no-records",62),2&e&&m.tc("showImage",!0)}function Ee(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"25"),m.Zb())}function Ge(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"50"),m.Zb())}function Fe(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"100"),m.Zb())}function Re(e,t){if(1&e){const e=m.bc();m.ac(0,"div",41),m.ac(1,"select",42),m.ic("change",(function(t){return m.Mc(e),m.mc(2).packageChangePageSize(t.target.value)})),m.ac(2,"option",47),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",43),m.Vc(6,"10"),m.Zb(),m.Tc(7,Ee,2,0,"option",44),m.Tc(8,Ge,2,0,"option",45),m.Tc(9,Fe,2,0,"option",46),m.Zb(),m.ac(10,"pagination-controls",63),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(2).packageGetNextPageRecord(t)})),m.nc(11,"translate"),m.nc(12,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(2),m.uc("value",e.packagesTotalRecords),m.Hb(1),m.Xc(" ",m.oc(4,7,"All_txt")," "),m.Hb(4),m.tc("ngIf",e.packagesTotalRecords>25),m.Hb(1),m.tc("ngIf",e.packagesTotalRecords>50),m.Hb(1),m.tc("ngIf",e.packagesTotalRecords>100),m.Hb(1),m.uc("previousLabel",m.oc(11,9,"Previous_txt")),m.uc("nextLabel",m.oc(12,11,"Next_txt"))}}function Xe(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Ae,1,0,"app-mini-loader",6),m.Tc(2,We,1,1,"app-no-records",61),m.Tc(3,Re,13,13,"div",28),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",!e.packagesModel),m.Hb(1),m.tc("ngIf",e.packagesModel&&0==e.packagesModel.length),m.Hb(1),m.tc("ngIf",e.packagesTotalRecords>10)}}function Be(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ue(e,t){1&e&&m.Wb(0,"app-no-records",62),2&e&&m.tc("showImage",!0)}function ze(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"25"),m.Zb())}function je(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"50"),m.Zb())}function $e(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"100"),m.Zb())}function Ye(e,t){if(1&e){const e=m.bc();m.ac(0,"div",41),m.ac(1,"select",42),m.ic("change",(function(t){return m.Mc(e),m.mc(2).InMediaChangePageSize(t.target.value)})),m.ac(2,"option",43),m.Vc(3,"10"),m.Zb(),m.Tc(4,ze,2,0,"option",44),m.Tc(5,je,2,0,"option",45),m.Tc(6,$e,2,0,"option",46),m.ac(7,"option",47),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb(),m.ac(10,"pagination-controls",63),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(2).InMediaGetNextPageRecord(t)})),m.nc(11,"translate"),m.nc(12,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(4),m.tc("ngIf",e.inMediaTotalRecords>25),m.Hb(1),m.tc("ngIf",e.inMediaTotalRecords>50),m.Hb(1),m.tc("ngIf",e.inMediaTotalRecords>100),m.Hb(1),m.uc("value",e.inMediaTotalRecords),m.Hb(1),m.Xc(" ",m.oc(9,7,"All_txt")," "),m.Hb(2),m.uc("previousLabel",m.oc(11,9,"Previous_txt")),m.uc("nextLabel",m.oc(12,11,"Next_txt"))}}function qe(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Be,1,0,"app-mini-loader",6),m.Tc(2,Ue,1,1,"app-no-records",61),m.Tc(3,Ye,13,13,"div",28),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",!e.inMediaModel),m.Hb(1),m.tc("ngIf",e.inMediaModel&&0==e.inMediaModel.length),m.Hb(1),m.tc("ngIf",e.inMediaTotalRecords>10)}}let Je=(()=>{class e{constructor(e,t,n,i,a,c,r,m){this._achievementAwardService=e,this.translate=t,this.sanitizer=n,this.commonService=i,this.route=a,this._titleService=c,this._route=r,this._distDeptService=m,this.indexModel=new s.d,this.totalRecords=0,this.pagerConfig={id:"datapager",itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords},this.DateFormat=d.a.DateFormat,this.DatePickerFormat=d.a.DatePickerFormat,this.minimumDate=d.a.MinimumDate,this.IsLoading=!0,this.filterModel=new l.b,this.achievementEnum=o.a,this.achievementSubCatEnum=o.b,this.category=new l.d,this.packagesIndexModel=new s.d,this.packagesTotalRecords=0,this.packagesPagerConfig={id:"datapager",itemsPerPage:this.packagesIndexModel.PageSize,currentPage:this.packagesIndexModel.Page,totalItems:this.packagesTotalRecords},this.inMediaIndexModel=new s.d,this.inMediaTotalRecords=0,this.inMediaPagerConfig={id:"datapager",itemsPerPage:this.inMediaIndexModel.PageSize,currentPage:this.inMediaIndexModel.Page,totalItems:this.inMediaTotalRecords}}ngOnInit(){this._route.paramMap.subscribe(e=>{this.pageTitle=void 0;let t=this.route.url.split("/"),n=e.get("dptCode");this.DepartmentCode=n?Number(n):this.commonService.GetWebDistDeptCode(),this.filterModel.DepartmentCode=this.DepartmentCode;let i=e.get("submenuCode");this.submenuCode=Number(i);let a=e.get("catCode");this.categoryCode=Number(a),this.pageName=i&&a?t[t.length-4]:a?t[t.length-3]:t[t.length-2],this.getPageHeading(),this.getCategoryDetail(),this.getData()})}getPageHeading(){this.submenuCode>0&&this.getSubmenuDetail()}getSubmenuDetail(){this._distDeptService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this.commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}},e=>{})}getData(){switch(this.pageName){case"government-orders":this._titleService.setTitle("hi"==this.translate.currentLang?"\u0926\u0938\u094d\u0924\u093e\u0935\u0947\u091c\u093c : \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":"Government Orders : Rajasthan Government"),this.getGovernmentOrderData();break;case"special-economic-zone":this._titleService.setTitle("hi"==this.translate.currentLang?"\u0935\u093f\u0936\u0947\u0937 \u0906\u0930\u094d\u0925\u093f\u0915 \u0915\u094d\u0937\u0947\u0924\u094d\u0930 : \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":"Special Economic Zone : Rajasthan Government"),this.geSpecialZoneData();break;case"grid-data":this._titleService.setTitle("hi"==this.translate.currentLang?" \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":" Rajasthan Government"),this.geSpecialZoneData();break;case"scheme-package":this._titleService.setTitle("hi"==this.translate.currentLang?"\u092f\u094b\u091c\u0928\u093e\u0930\u094d\u0928\u094d\u0924\u0917\u0924 \u092a\u0948\u0915\u0947\u091c : \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":"SCHEME PACKAGE : Rajasthan Government"),this.GetPackageData();break;case"in-media":this._titleService.setTitle("hi"==this.translate.currentLang?"\u0938\u092e\u093e\u091a\u093e\u0930 \u092a\u0924\u094d\u0930\u094b \u0938\u0947 : \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":"IN MEDIA : Rajasthan Government"),this.GetInMediaData();break;default:this.route.navigate(["home"])}}get IsDateShow(){return this.categoryCode!=Number(this.achievementEnum.AllDownloadFormsCode)}GetInMediaData(){this.IsLoading=!0,this.inMediaModel=void 0,this.filterModel.IndexModel=this.inMediaIndexModel,this.filterModel.IndexModel.OrderBy="AchievementDate",this.filterModel.IndexModel.OrderByAsc=0,this.filterModel.DepartmentCode=this.DepartmentCode,this.filterModel.SubCategoryCode=this.achievementSubCatEnum.InMediaCode,this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel,!1).subscribe(e=>{e.IsSuccess?(this.inMediaModel=e.Data.Data,this.inMediaIndexModel.IsPostBack||(this.inMediaTotalRecords=e.Data.TotalRecords),this.InMediaUpdatePageConfig()):this.inMediaModel=[],this.IsLoading=!1},e=>{this.inMediaModel=[]})}InMediaGetNextPageRecord(e){window.scroll(0,0),this.inMediaIndexModel.IsPostBack=!0,this.inMediaIndexModel.Page=e,this.GetInMediaData()}InMediaChangePageSize(e){window.scroll(0,0),this.inMediaIndexModel.IsPostBack=!0,this.inMediaIndexModel.PageSize=Number(e),this.inMediaIndexModel.Page=1,this.GetInMediaData()}InMediaUpdatePageConfig(){this.pagerConfig={itemsPerPage:this.inMediaIndexModel.PageSize,currentPage:this.inMediaIndexModel.Page,totalItems:this.inMediaTotalRecords}}GetPackageData(){this.IsLoading=!0,this.packagesModel=void 0,this.filterModel.IndexModel=this.packagesIndexModel,this.filterModel.IndexModel.OrderBy="AchievementDate",this.filterModel.IndexModel.OrderByAsc=0,this.filterModel.DepartmentCode=this.DepartmentCode,this.filterModel.SubCategoryCode=this.achievementSubCatEnum.SchemePackageCode,this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel,!1).subscribe(e=>{e.IsSuccess?(this.packagesModel=e.Data.Data,this.packagesIndexModel.IsPostBack||(this.packagesTotalRecords=e.Data.TotalRecords),this.packageUpdatePageConfig()):this.packagesModel=[],this.IsLoading=!1},e=>{this.packagesModel=[]})}packageGetNextPageRecord(e){window.scroll(0,0),this.packagesIndexModel.IsPostBack=!0,this.packagesIndexModel.Page=e,this.GetPackageData()}packageChangePageSize(e){window.scroll(0,0),this.packagesIndexModel.IsPostBack=!0,this.packagesIndexModel.PageSize=Number(e),this.packagesIndexModel.Page=1,this.GetPackageData()}packageUpdatePageConfig(){this.pagerConfig={itemsPerPage:this.packagesIndexModel.PageSize,currentPage:this.packagesIndexModel.Page,totalItems:this.packagesTotalRecords}}getGovernmentOrderData(){this.IsLoading=!0,this.model=void 0,this.filterModel.IndexModel=this.indexModel,this.filterModel.IndexModel.OrderBy="AchievementDate",this.filterModel.IndexModel.OrderByAsc=0,this.filterModel.DepartmentCode=this.DepartmentCode,this.filterModel.SubCategoryCode=this.achievementSubCatEnum.StateOrderCode,this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel,!0).subscribe(e=>{e.IsSuccess?(this.model=e.Data.Data,this.indexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this.updatePageConfig()):this.model=[],this.IsLoading=!1},e=>{this.model=[]})}onSearch(){switch(this.indexModel.Page=1,this.indexModel.IsPostBack=!1,this.pageName){case"government-orders":this.getGovernmentOrderData();break;case"special-economic-zone":case"grid-data":this.geSpecialZoneData();break;case"scheme-package":this.GetPackageData();break;case"in-media":this.GetInMediaData()}}reset(){this.filterModel=new l.b,this.onSearch()}getNextPageRecord(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.Page=e,this.getGovernmentOrderData()}changePageSize(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.PageSize=Number(e),this.indexModel.Page=1,this.getGovernmentOrderData()}updatePageConfig(){this.pagerConfig.itemsPerPage=this.filterModel.IndexModel.PageSize,this.pagerConfig.currentPage=this.filterModel.IndexModel.Page,this.pagerConfig.totalItems=this.totalRecords}GetDDLList(){this._distDeptService.GetAllDDL(r.a.DDLFilterLKeyForAchievementList).subscribe(e=>{e.IsSuccess&&(this.dDLList=e.Data)},e=>{})}getFilterdDDL(e,t,n){const i=new s.c;i.FilterFor=e,i.Value=t,i.FilterFrom=n,this.filterDDlModel=[],this.filterDDlModel.push(i),this._distDeptService.GetFilterdDDL(this.filterDDlModel).subscribe(e=>{var t,n,a,c;e.IsSuccess&&("ddlDepartmentLetterstoCentralGovt"===i.FilterFor||(null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.ddlDepartmentLetterstoCentralGovt))&&(this.filterModel.DepartmentCode=0,this.dDLList.ddlDepartmentLetterstoCentralGovt=null===(c=null===(a=e)||void 0===a?void 0:a.Data)||void 0===c?void 0:c.ddlDepartmentLetterstoCentralGovt)},e=>{})}geSpecialZoneData(){this.model=void 0,this.IsLoading=!0,this.filterModel.IndexModel=this.indexModel,this.filterModel.IndexModel.OrderBy="ModifiedDate",this.filterModel.IndexModel.OrderByAsc=0,this.filterModel.DepartmentCode=this.DepartmentCode,this.filterModel.CategoryCode=this.categoryCode,this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel).subscribe(e=>{e.IsSuccess?(this.model=e.Data.Data,this.indexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this.updatePageConfig()):this.model=[],this.IsLoading=!1},e=>{this.model=[]})}getSpecialZoneNextPageRecord(e){window.scroll(0,0),this.filterModel.IndexModel.IsPostBack=!0,this.filterModel.IndexModel.Page=e,this.geSpecialZoneData()}changeSpecialZonePageSize(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.PageSize=Number(e),this.indexModel.Page=1,this.geSpecialZoneData()}updateSpecialZonePageConfig(){this.pagerConfig={itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords}}getCategoryDetail(){this._achievementAwardService.GetAcievementCatDetail(this.categoryCode).subscribe(e=>{e.IsSuccess&&(this.category=e.Data,this.commonService.SetWebTitle("hi"==this.translate.currentLang?this.category.TitleHindi:this.category.Title))},e=>{console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(c.d),m.Vb(b.b),m.Vb(g.a),m.Vb(h.b),m.Vb(b.d),m.Vb(h.a),m.Vb(p.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-document-list"]],decls:21,vars:16,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"container","p-0"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[4,"ngIf"],[1,"inner-page","pt-0"],["class","orders_filter",4,"ngIf"],[3,"ngSwitch"],["class","container p-4",4,"ngSwitchCase"],[1,"orders_filter"],[1,"container-fluid"],[1,"row","justify-content-center"],[1,"col-xl-2","col-lg-4","col-md-4","col-sm-4","wow","fadeInUp"],[1,"text-white"],["type","text",1,"form-control",3,"placeholder","ngModel","ngModelChange","keyup.enter"],[1,"col-xl-2","col-lg-4","col-md-4","col-sm-6","wow","fadeInUp"],[1,"d-none","d-sm-block"],[1,"btn","btn-success","filter-btn","d-block","w-100","fadeInUp",2,"border","none",3,"click"],[1,"fas","fa-search","mr-2"],[1,"btn","btn-danger","filter-btn","d-block","w-100","fadeInUp",2,"border","none",3,"click"],[1,"fas","fa-redo-alt","mr-2"],[1,"container","p-4"],[1,"row"],[1,"col-xl-12","col-lg-12","mb-12"],[1,"title","text-center"],[1,"img-fluid",2,"max-width","45px",3,"src","title","alt","error"],["class","new-pagination-outer",4,"ngIf"],[1,"col-lg-12"],[1,"table-responsive"],["border","0",1,"table","table-striped","table-bordered","table-new-design"],[2,"width","30px"],[2,"width","180px"],[4,"ngFor","ngForOf"],["class","text-blue mr-2 fa-2x","target","_blank",3,"href","title",4,"ngIf"],["target","_blank","class","text-blue mr-2 fa-2x",3,"href","title",4,"ngIf"],["target","_blank",1,"text-blue","mr-2","fa-2x",3,"href","title"],[1,"fas","fa-file-pdf"],[1,"table-data-sm-img",2,"width","100px","height","auto","max-height","100px",3,"src","title","alt","error"],[1,"fas","fa-globe"],[1,"new-pagination-outer"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"change"],["selected","","value","10"],["value","25",4,"ngIf"],["value","50",4,"ngIf"],["value","100",4,"ngIf"],[3,"value"],["id","datapager","autoHide","true",1,"text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],["value","25"],["value","50"],["value","100"],["class","col-lg-12",4,"ngIf"],[2,"text-align","justify"],["style","text-align: justify",3,"innerHTML",4,"ngIf"],[2,"text-align","justify",3,"innerHTML"],[1,"img-fluid",3,"src","title","alt","error"],[1,"table-data-sm-img",2,"width","auto","height","auto","max-width","40px",3,"src","title","alt","error"],["target","_blank","class","text-blue mr-2 fa-2x",3,"href",4,"ngIf"],["target","_blank",1,"text-blue","mr-2","fa-2x",3,"href"],[1,"fas","fa-download"],[3,"showImage",4,"ngIf"],[3,"showImage"],["autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"div",1),m.ac(2,"ol",2),m.ac(3,"li",3),m.ac(4,"a",4),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb(),m.ac(7,"li",5),m.Tc(8,D,2,1,"span",6),m.Tc(9,M,2,1,"span",6),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(10,"section",7),m.Tc(11,I,23,13,"div",8),m.Yb(12,9),m.Tc(13,W,12,12,"div",10),m.Tc(14,Q,12,12,"div",10),m.Tc(15,Ce,10,7,"div",10),m.Tc(16,xe,11,11,"div",10),m.Tc(17,Ve,11,11,"div",10),m.Xb(),m.Tc(18,Oe,3,2,"ng-container",6),m.Tc(19,Xe,4,3,"ng-container",6),m.Tc(20,qe,4,3,"ng-container",6),m.Zb()),2&e&&(m.Hb(4),m.uc("routerLink",t.commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(6,14,"Home_txt")),m.Hb(3),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(2),m.tc("ngIf","scheme-package"!=t.pageName),m.Hb(1),m.tc("ngSwitch",t.pageName),m.Hb(1),m.tc("ngSwitchCase","government-orders"),m.Hb(1),m.tc("ngSwitchCase","special-economic-zone"),m.Hb(1),m.tc("ngSwitchCase","grid-data"),m.Hb(1),m.tc("ngSwitchCase","scheme-package"),m.Hb(1),m.tc("ngSwitchCase","in-media"),m.Hb(1),m.tc("ngIf","government-orders"==t.pageName||"special-economic-zone"==t.pageName||"grid-data"==t.pageName),m.Hb(1),m.tc("ngIf","scheme-package"==t.pageName),m.Hb(1),m.tc("ngIf","in-media"==t.pageName))},directives:[h.d,i.n,i.p,i.q,a.b,a.m,a.p,i.m,a.q,a.w,f.c,v.a,C.a],pipes:[c.c,f.b,i.e],styles:[""]}),e})();var Ke=n("ic5G"),Qe=n("Sy1n"),et=n("kQyY");function tt(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function nt(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function it(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function at(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function ct(e,t){if(1&e){const e=m.bc();m.ac(0,"li"),m.ac(1,"a",30),m.ac(2,"img",31),m.ic("error",(function(t){return m.Mc(e),m.mc(6)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2),n=t.index,i=t.$implicit,a=m.mc(3);m.Hb(1),m.uc("href",e,m.Pc),m.Jb("data-lightbox","images_",n,""),m.uc("title","en"==a.translate.currentLang?i.Achievement:i.AchievementHindi),m.Hb(1),m.uc("title","en"==a.translate.currentLang?i.Achievement:i.AchievementHindi),m.uc("alt","en"==a.translate.currentLang?i.Achievement:i.AchievementHindi),m.tc("src",e,m.Pc)}}function ot(e,t){if(1&e&&(m.Yb(0),m.Tc(1,ct,3,6,"li",5),m.Xb()),2&e){const e=t.index;m.Hb(1),m.tc("ngIf",e>0)}}function lt(e,t){if(1&e&&(m.ac(0,"ul",28),m.Tc(1,ot,2,1,"ng-container",29),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngForOf",e.ImageFiles)}}function rt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",22),m.ac(1,"a",23),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/default.png")})),m.ac(2,"img",24),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Tc(3,lt,2,1,"ul",25),m.ac(4,"div",26),m.Vc(5),m.nc(6,"slice"),m.nc(7,"slice"),m.Zb(),m.Zb(),m.ac(8,"div",27),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(1),m.Jb("data-lightbox","images_",n,""),m.uc("title","en"==i.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("href",e.ImagePath,m.Pc),m.Hb(1),m.uc("title","en"==i.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("alt","en"==i.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("src",e.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.ImageFiles&&e.ImageFiles.length>0),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?(null==e?null:e.Achievement.length)>80?m.qc(6,10,null==e?null:e.Achievement,0,80)+"...":null==e?null:e.Achievement:(null==e?null:e.AchievementHindi.length)>80?m.qc(7,14,null==e?null:e.AchievementHindi,0,80)+"...":null==e?null:e.AchievementHindi," "),m.Hb(4),m.Yc("",m.oc(10,18,"RecordEntryNo_txt")," : ",null==e?null:e.Id,"")}}function st(e,t){if(1&e){const e=m.bc();m.ac(0,"select",35),m.ic("change",(function(t){return m.Mc(e),m.mc(4).posterChangePageSize(t.target.value)})),m.ac(1,"option",36),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.ac(4,"option",37),m.Vc(5,"15"),m.Zb(),m.ac(6,"option",38),m.Vc(7,"30"),m.Zb(),m.ac(8,"option",39),m.Vc(9,"60"),m.Zb(),m.ac(10,"option",40),m.Vc(11,"120"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(4);m.Hb(1),m.uc("value",e.posterTotalRecords),m.Hb(1),m.Wc(m.oc(3,2,"All_txt"))}}function dt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.Tc(1,st,12,4,"select",33),m.ac(2,"pagination-controls",34),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(3).posterGetNextPageRecord(t)})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(3);m.Hb(1),m.tc("ngIf",e.posterTotalRecords>e.posterIndexModel.PageSize),m.Hb(1),m.uc("previousLabel",m.oc(3,3,"Previous_txt")),m.uc("nextLabel",m.oc(4,5,"Next_txt"))}}function mt(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",17),m.ac(2,"div",18),m.Tc(3,rt,11,20,"div",19),m.nc(4,"paginate"),m.Zb(),m.Zb(),m.ac(5,"div",20),m.Tc(6,dt,5,7,"div",21),m.Zb(),m.Xb()),2&e){const e=m.mc(2);m.Hb(3),m.tc("ngForOf",m.pc(4,2,e.posterModel,e.posterPagerConfig)),m.Hb(3),m.tc("ngIf",e.posterTotalRecords>15)}}function ut(e,t){1&e&&m.Wb(0,"app-mini-loader")}function bt(e,t){1&e&&m.Wb(0,"app-no-records",41),2&e&&m.tc("showImage",!0)}function gt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",13),m.ac(1,"h1",14),m.ac(2,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/Poster.png")})),m.Zb(),m.Tc(3,it,2,1,"span",5),m.Tc(4,at,2,1,"span",5),m.Zb(),m.Tc(5,mt,7,5,"ng-container",5),m.Tc(6,ut,1,0,"app-mini-loader",5),m.Tc(7,bt,1,1,"app-no-records",16),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.uc("alt",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.tc("src",null==e.pageTitle?null:e.pageTitle.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(1),m.tc("ngIf",e.posterModel&&(null==e.posterModel?null:e.posterModel.length)>0),m.Hb(1),m.tc("ngIf",!e.posterModel),m.Hb(1),m.tc("ngIf",e.posterModel&&0==e.posterModel.length)}}function ht(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function pt(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function ft(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"a",50),m.ac(2,"video",51),m.ic("playing",(function(t){return m.Mc(e),m.mc(5).onMediaPlaying(t,!1)})),m.Wb(3,"source",52),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc(2),t=e.$implicit,n=e.index;m.Hb(1),m.uc("href",t.Url,m.Pc),m.Hb(1),m.vc("id","my_video_",n,""),m.uc("poster",t.ThumbnailPath,m.Pc),m.Hb(1),m.uc("src",t.Url,m.Pc),m.vc("type","video/",t.Url.split(".")[t.Url.split(".").length-1],"")}}function vt(e,t){if(1&e){const e=m.bc();m.ac(0,"a",50),m.ac(1,"iframe",53),m.ic("onclick",(function(t){return m.Mc(e),m.mc(5).onMediaPlaying(t,!1)})),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2).$implicit,t=m.mc(3);m.tc("href",t.SafeUrl(e.YoutubeURL?e.YoutubeURL:e.Url),m.Pc),m.Hb(1),m.tc("src",e.safeUrl,m.Oc)}}function Ct(e,t){if(1&e&&(m.ac(0,"div",44),m.ac(1,"div",45),m.ac(2,"div",46),m.Tc(3,ft,4,5,"ng-container",47),m.Tc(4,vt,2,2,"ng-template",null,48,m.Uc),m.Zb(),m.ac(6,"div",49),m.Vc(7),m.nc(8,"slice"),m.nc(9,"slice"),m.Zb(),m.ac(10,"p"),m.Vc(11),m.nc(12,"translate"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.Kc(5),t=m.mc().$implicit,n=m.mc(3);m.uc("title","en"==n.translate.currentLang?t.Achievement:t.AchievementHindi),m.Hb(3),m.tc("ngIf",1==n.isExtenstionUrl(t.Url))("ngIfElse",e),m.Hb(3),m.uc("title","en"==n.translate.currentLang?t.Achievement:t.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==n.translate.currentLang?t.AchievementHindi.length>60?m.qc(8,7,t.AchievementHindi,0,60)+"...":t.AchievementHindi:t.Achievement.length>60?m.qc(9,11,t.Achievement,0,60)+"...":t.Achievement," "),m.Hb(4),m.Yc("",m.oc(12,15,"RecordEntryNo_txt")," : ",null==t?null:t.Id,"")}}function Ht(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Ct,13,17,"div",43),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",(null==e.Url?null:e.Url.length)>0||e.YoutubeURL)}}function Dt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc(3).videoChangePageSize(t.target.value)})),m.ac(2,"option",36),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",37),m.Vc(6,"15"),m.Zb(),m.ac(7,"option",38),m.Vc(8,"30"),m.Zb(),m.ac(9,"option",39),m.Vc(10,"60"),m.Zb(),m.ac(11,"option",40),m.Vc(12,"120"),m.Zb(),m.Zb(),m.ac(13,"pagination-controls",55),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(3).videoGetNextPageRecord(t)})),m.nc(14,"translate"),m.nc(15,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(3);m.Hb(2),m.uc("value",e.videoTotalRecords),m.Hb(1),m.Wc(m.oc(4,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(14,6,"Previous_txt")),m.uc("nextLabel",m.oc(15,8,"Next_txt"))}}function Mt(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",18),m.Tc(2,Ht,2,1,"ng-container",29),m.nc(3,"paginate"),m.Zb(),m.Tc(4,Dt,16,10,"div",21),m.Xb()),2&e){const e=m.mc(2);m.Hb(2),m.tc("ngForOf",m.pc(3,2,e.videoModel,e.videoPagerConfig)),m.Hb(2),m.tc("ngIf",e.videoTotalRecords>15)}}function It(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Zt(e,t){1&e&&m.Wb(0,"app-no-records",41),2&e&&m.tc("showImage",!0)}function Tt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",42),m.ac(1,"h1",14),m.ac(2,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/Video.png")})),m.Zb(),m.Tc(3,ht,2,1,"span",5),m.Tc(4,pt,2,1,"span",5),m.Zb(),m.Tc(5,Mt,5,5,"ng-container",5),m.Tc(6,It,1,0,"app-mini-loader",5),m.Tc(7,Zt,1,1,"app-no-records",16),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.uc("alt",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.tc("src",null==e.pageTitle?null:e.pageTitle.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(1),m.tc("ngIf",e.videoModel&&(null==e.videoModel?null:e.videoModel.length)>0),m.Hb(1),m.tc("ngIf",!e.videoModel),m.Hb(1),m.tc("ngIf",e.videoModel&&0==e.videoModel.length)}}function yt(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function xt(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function Pt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",57),m.ac(1,"div",58),m.Wb(2,"img",59),m.ac(3,"audio",60),m.ic("playing",(function(t){return m.Mc(e),m.mc(4).onMediaPlaying(t,!0)})),m.Wb(4,"source",61),m.Zb(),m.ac(5,"div",49),m.Vc(6),m.nc(7,"slice"),m.nc(8,"slice"),m.Zb(),m.ac(9,"div",27),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(3);m.uc("title","en"==t.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(2),m.uc("title","en"==t.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("alt","en"==t.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(2),m.uc("src",e.Url,m.Pc),m.Hb(1),m.uc("title","en"==t.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.AchievementHindi.length>60?m.qc(7,8,e.AchievementHindi,0,60)+"...":e.AchievementHindi:e.Achievement.length>60?m.qc(8,12,e.Achievement,0,60)+"...":e.Achievement," "),m.Hb(4),m.Yc("",m.oc(11,16,"RecordEntryNo_txt")," : ",null==e?null:e.Id,"")}}function St(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Pt,12,18,"div",56),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",null!=e.Url&&(null==e.Url?null:e.Url.length)>0)}}function _t(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc(3).audioChangePageSize(t.target.value)})),m.ac(2,"option",36),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",37),m.Vc(6,"15"),m.Zb(),m.ac(7,"option",38),m.Vc(8,"30"),m.Zb(),m.ac(9,"option",39),m.Vc(10,"60"),m.Zb(),m.ac(11,"option",40),m.Vc(12,"120"),m.Zb(),m.Zb(),m.ac(13,"pagination-controls",62),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(3).audioGetNextPageRecord(t)})),m.nc(14,"translate"),m.nc(15,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(3);m.Hb(2),m.uc("value",e.audioTotalRecords),m.Hb(1),m.Wc(m.oc(4,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(14,6,"Previous_txt")),m.uc("nextLabel",m.oc(15,8,"Next_txt"))}}function wt(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",18),m.Tc(2,St,2,1,"ng-container",29),m.nc(3,"paginate"),m.Zb(),m.Tc(4,_t,16,10,"div",21),m.Xb()),2&e){const e=m.mc(2);m.Hb(2),m.tc("ngForOf",m.pc(3,2,e.audioModel,e.audioPagerConfig)),m.Hb(2),m.tc("ngIf",e.audioTotalRecords>15)}}function Lt(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Vt(e,t){1&e&&m.Wb(0,"app-no-records")}function kt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",42),m.ac(1,"h1",14),m.ac(2,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/Audio.png")})),m.Zb(),m.Tc(3,yt,2,1,"span",5),m.Tc(4,xt,2,1,"span",5),m.Zb(),m.Tc(5,wt,5,5,"ng-container",5),m.Tc(6,Lt,1,0,"app-mini-loader",5),m.Tc(7,Vt,1,0,"app-no-records",5),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.uc("alt",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.tc("src",null==e.pageTitle?null:e.pageTitle.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(1),m.tc("ngIf",e.audioModel&&(null==e.audioModel?null:e.audioModel.length)>0),m.Hb(1),m.tc("ngIf",!e.audioModel),m.Hb(1),m.tc("ngIf",e.audioModel&&0==e.audioModel.length)}}function Nt(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function Ot(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function At(e,t){if(1&e){const e=m.bc();m.ac(0,"div",22),m.ac(1,"a",63),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/default.png")})),m.ac(2,"img",24),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.ac(3,"div",27),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(1),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("href",e.ImagePath,m.Pc),m.Hb(1),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("alt","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("src",e.ImagePath,m.Pc),m.Hb(2),m.Yc("",m.oc(5,7,"RecordEntryNo_txt")," : ",null==e?null:e.Id,"")}}function Wt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc(3).advertisementChangePageSize(t.target.value)})),m.ac(2,"option",36),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",37),m.Vc(6,"15"),m.Zb(),m.ac(7,"option",38),m.Vc(8,"30"),m.Zb(),m.ac(9,"option",39),m.Vc(10,"60"),m.Zb(),m.ac(11,"option",40),m.Vc(12,"120"),m.Zb(),m.Zb(),m.ac(13,"pagination-controls",64),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(3).advertisementGetNextPageRecord(t)})),m.nc(14,"translate"),m.nc(15,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(3);m.Hb(2),m.uc("value",e.advertisementTotalRecords),m.Hb(1),m.Wc(m.oc(4,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(14,6,"Previous_txt")),m.uc("nextLabel",m.oc(15,8,"Next_txt"))}}function Et(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",17),m.ac(2,"div",18),m.Tc(3,At,6,9,"div",19),m.nc(4,"paginate"),m.Zb(),m.Zb(),m.Tc(5,Wt,16,10,"div",21),m.Xb()),2&e){const e=m.mc(2);m.Hb(3),m.tc("ngForOf",m.pc(4,2,e.advertisementModel,e.advertisementPagerConfig)),m.Hb(2),m.tc("ngIf",e.advertisementTotalRecords>15)}}function Gt(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ft(e,t){1&e&&m.Wb(0,"app-no-records",41),2&e&&m.tc("showImage",!0)}function Rt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",13),m.ac(1,"h1",14),m.ac(2,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/ADVT.png")})),m.Zb(),m.Tc(3,Nt,2,1,"span",5),m.Tc(4,Ot,2,1,"span",5),m.Zb(),m.Tc(5,Et,6,5,"ng-container",5),m.Tc(6,Gt,1,0,"app-mini-loader",5),m.Tc(7,Ft,1,1,"app-no-records",16),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.uc("alt",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.tc("src",null==e.pageTitle?null:e.pageTitle.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(1),m.tc("ngIf",e.advertisementModel&&(null==e.advertisementModel?null:e.advertisementModel.length)>0),m.Hb(1),m.tc("ngIf",!e.advertisementModel),m.Hb(1),m.tc("ngIf",e.advertisementModel&&0==e.advertisementModel.length)}}function Xt(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function Bt(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function Ut(e,t){if(1&e){const e=m.bc();m.ac(0,"div",22),m.ac(1,"a",65),m.ac(2,"img",24),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.ac(3,"div",26),m.Vc(4),m.nc(5,"slice"),m.nc(6,"slice"),m.Zb(),m.Zb(),m.ac(7,"div",27),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(1),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("href",e.PdfFIleName,m.Pc),m.Hb(1),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("alt","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("src",e.ImagePath,m.Pc),m.Hb(2),m.Xc(" ","en"==n.translate.currentLang?(null==e?null:e.Achievement.length)>80?m.qc(5,8,null==e?null:e.Achievement,0,80)+"...":null==e?null:e.Achievement:(null==e?null:e.AchievementHindi.length)>80?m.qc(6,12,null==e?null:e.AchievementHindi,0,80)+"...":null==e?null:e.AchievementHindi," "),m.Hb(4),m.Yc("",m.oc(9,16,"RecordEntryNo_txt")," : ",null==e?null:e.Id,"")}}function zt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc(3).attachmentChangePageSize(t.target.value)})),m.ac(2,"option",36),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",37),m.Vc(6,"15"),m.Zb(),m.ac(7,"option",38),m.Vc(8,"30"),m.Zb(),m.ac(9,"option",39),m.Vc(10,"60"),m.Zb(),m.ac(11,"option",40),m.Vc(12,"120"),m.Zb(),m.Zb(),m.ac(13,"pagination-controls",66),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(3).attachmentGetNextPageRecord(t)})),m.nc(14,"translate"),m.nc(15,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(3);m.Hb(2),m.uc("value",e.attachmentTotalRecords),m.Hb(1),m.Wc(m.oc(4,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(14,6,"Previous_txt")),m.uc("nextLabel",m.oc(15,8,"Next_txt"))}}function jt(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",17),m.ac(2,"div",18),m.Tc(3,Ut,10,18,"div",19),m.nc(4,"paginate"),m.Zb(),m.Zb(),m.Tc(5,zt,16,10,"div",21),m.Xb()),2&e){const e=m.mc(2);m.Hb(3),m.tc("ngForOf",m.pc(4,2,e.attachmentModel,e.attachmentPagerConfig)),m.Hb(2),m.tc("ngIf",e.attachmentTotalRecords>15)}}function $t(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Yt(e,t){1&e&&m.Wb(0,"app-no-records",41),2&e&&m.tc("showImage",!0)}function qt(e,t){if(1&e){const e=m.bc();m.ac(0,"div",42),m.ac(1,"h1",14),m.ac(2,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/ADVT.png")})),m.Zb(),m.Tc(3,Xt,2,1,"span",5),m.Tc(4,Bt,2,1,"span",5),m.Zb(),m.Tc(5,jt,6,5,"ng-container",5),m.Tc(6,$t,1,0,"app-mini-loader",5),m.Tc(7,Yt,1,1,"app-no-records",16),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.uc("alt",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.tc("src",null==e.pageTitle?null:e.pageTitle.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(1),m.tc("ngIf",e.attachmentModel&&(null==e.attachmentModel?null:e.attachmentModel.length)>0),m.Hb(1),m.tc("ngIf",!e.attachmentModel),m.Hb(1),m.tc("ngIf",e.attachmentModel&&0==e.attachmentModel.length)}}function Jt(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function Kt(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function Qt(e,t){if(1&e){const e=m.bc();m.ac(0,"div"),m.ac(1,"a",70),m.ic("click",(function(){m.Mc(e);const n=t.$implicit;return m.mc(3)._commonService.setFocus("record_"+n.Id)})),m.Vc(2),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(2),m.Yc(" ",(i.descriptionIndexModel.Page-1)*i.descriptionIndexModel.PageSize+(n+1),". ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," ")}}function en(e,t){if(1&e){const e=m.bc();m.ac(0,"div"),m.ac(1,"div",77),m.ac(2,"a",50),m.ac(3,"img",31),m.ic("error",(function(t){return m.Mc(e),m.mc(4)._commonService.onImageError(t,"assets/images/record-not-found.png")})),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(2),m.uc("href",null==e?null:e.ImagePath,m.Pc),m.Hb(1),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi)}}function tn(e,t){if(1&e&&(m.ac(0,"div"),m.ac(1,"div",78),m.ac(2,"a",50),m.Wb(3,"i",79),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(2),m.uc("href",null==e?null:e.PdfFIleName,m.Pc)}}function nn(e,t){if(1&e&&(m.ac(0,"div",71),m.ac(1,"div",42),m.ac(2,"div",72),m.ac(3,"div",73),m.ac(4,"h2",74),m.Vc(5),m.Zb(),m.ac(6,"div",75),m.Tc(7,en,4,4,"div",5),m.Tc(8,tn,4,1,"div",5),m.Zb(),m.Zb(),m.Wb(9,"pre",76),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.uc("id","record_"+e.Id),m.Hb(5),m.Yc(" ",(i.descriptionIndexModel.Page-1)*i.descriptionIndexModel.PageSize+(n+1),". ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(2),m.tc("ngIf",null==e?null:e.ImagePath),m.Hb(1),m.tc("ngIf",null==e?null:e.PdfFIleName),m.Hb(1),m.tc("innerHTML","hi"==i.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function an(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc(3).descriptionChangePageSize(t.target.value)})),m.ac(2,"option",36),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",37),m.Vc(6,"15"),m.Zb(),m.ac(7,"option",38),m.Vc(8,"30"),m.Zb(),m.ac(9,"option",39),m.Vc(10,"60"),m.Zb(),m.ac(11,"option",40),m.Vc(12,"120"),m.Zb(),m.Zb(),m.ac(13,"pagination-controls",80),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(3).descriptionGetNextPageRecord(t)})),m.nc(14,"translate"),m.nc(15,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(3);m.Hb(2),m.uc("value",e.descriptionTotalRecords),m.Hb(1),m.Wc(m.oc(4,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(14,6,"Previous_txt")),m.uc("nextLabel",m.oc(15,8,"Next_txt"))}}function cn(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",68),m.ac(2,"div",9),m.ac(3,"div",42),m.Tc(4,Qt,3,2,"div",29),m.Zb(),m.Zb(),m.Zb(),m.ac(5,"div",68),m.Tc(6,nn,10,6,"div",69),m.nc(7,"paginate"),m.Zb(),m.Tc(8,an,16,10,"div",21),m.Xb()),2&e){const e=m.mc(2);m.Hb(4),m.tc("ngForOf",e.descriptionModel),m.Hb(2),m.tc("ngForOf",m.pc(7,3,e.descriptionModel,e.descriptionPagerConfig)),m.Hb(2),m.tc("ngIf",e.descriptionTotalRecords>15)}}function on(e,t){1&e&&m.Wb(0,"app-mini-loader")}function ln(e,t){1&e&&m.Wb(0,"app-no-records",41),2&e&&m.tc("showImage",!0)}function rn(e,t){if(1&e){const e=m.bc();m.ac(0,"div",67),m.ac(1,"h1",14),m.ac(2,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/ADVT.png")})),m.Zb(),m.Tc(3,Jt,2,1,"span",5),m.Tc(4,Kt,2,1,"span",5),m.Zb(),m.Tc(5,cn,9,6,"ng-container",5),m.Tc(6,on,1,0,"app-mini-loader",5),m.Tc(7,ln,1,1,"app-no-records",16),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.uc("alt",e.pageTitle?"hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi:" "),m.tc("src",null==e.pageTitle?null:e.pageTitle.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.pageTitle),m.Hb(1),m.tc("ngIf",!e.pageTitle),m.Hb(1),m.tc("ngIf",e.descriptionModel&&(null==e.descriptionModel?null:e.descriptionModel.length)>0),m.Hb(1),m.tc("ngIf",!e.descriptionModel),m.Hb(1),m.tc("ngIf",e.descriptionModel&&0==e.descriptionModel.length)}}let sn=(()=>{class e{constructor(e,t,n,i,a,c,o,l,r,d){this.achievementAwardService=e,this._dptDistrictWebsiteService=t,this.translate=n,this.sanitizer=i,this.route=a,this._app=c,this._route=o,this._titleService=l,this._achService=r,this._commonService=d,this.pageName="",this.posterIndexModel=new s.d,this.posterTotalRecords=0,this.posterPagerConfig={id:"poster-paging",itemsPerPage:this.posterIndexModel.PageSize,currentPage:this.posterIndexModel.Page,totalItems:this.posterTotalRecords},this.videoIndexModel=new s.d,this.videoTotalRecords=0,this.videoPagerConfig={id:"video-paging",itemsPerPage:this.videoIndexModel.PageSize,currentPage:this.videoIndexModel.Page,totalItems:this.videoTotalRecords},this.audioIndexModel=new s.d,this.audioTotalRecords=0,this.audioPagerConfig={id:"audio-paging",itemsPerPage:this.audioIndexModel.PageSize,currentPage:this.audioIndexModel.Page,totalItems:this.audioTotalRecords},this.advertisementIndexModel=new s.d,this.advertisementTotalRecords=0,this.advertisementPagerConfig={id:"advertisement-paging",itemsPerPage:this.advertisementIndexModel.PageSize,currentPage:this.advertisementIndexModel.Page,totalItems:this.advertisementTotalRecords},this.attachmentIndexModel=new s.d,this.attachmentTotalRecords=0,this.attachmentPagerConfig={id:"attachment-paging",itemsPerPage:this.attachmentIndexModel.PageSize,currentPage:this.attachmentIndexModel.Page,totalItems:this.attachmentTotalRecords},this.descriptionIndexModel=new s.d,this.descriptionTotalRecords=0,this.descriptionPagerConfig={id:"description-paging",itemsPerPage:this.descriptionIndexModel.PageSize,currentPage:this.descriptionIndexModel.Page,totalItems:this.descriptionTotalRecords},this.isShowPoster=!1,this.isShowVideo=!1,this.isShowAudio=!1,this.isShowAdvertisment=!1,this.isShowAttachment=!1,this.isShowDescription=!1,this.departmentCode=0}ngOnInit(){this._route.paramMap.subscribe(e=>{this.pageTitle=void 0;let t=this.route.url.replace("/","").split("/");console.log("url",t),this.departmentCode=this._commonService.GetWebDistDeptCode();let n=this._route.snapshot.params.dptCode;n&&(this.departmentCode=Number(n));let i=this._route.snapshot.params.catCode;i&&(this.catCode=Number(i));let a=this._route.snapshot.params.subCatCode;a&&(this.subCatCode=Number(a));let c=this._route.snapshot.params.submenuCode;c&&(this.submenuCode=Number(c)),this.pageName=this._route.snapshot.params.pageName||(this.submenuCode>=0?this.subCatCode||0==this.subCatCode?t[t.length-5]:this.catCode||0==this.catCode?t[t.length-4]:t[t.length-3]:this.subCatCode||0==this.subCatCode?t[t.length-4]:this.catCode||0==this.catCode?t[t.length-3]:t[t.length-2]),this.getPageHeading(),this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u0917\u0947\u0932\u0930\u0940":"Gallery"),this.getData()})}getPageHeading(){this.submenuCode>0?this.getSubmenuDetail():this.subCatCode>0?this.getSubCategoryDetail():this.getCategoryDetail()}getSubmenuDetail(){this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}},e=>{})}getData(){switch(this.pageName){case"video":this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u0935\u0940\u0921\u093f\u092f\u094b":"Video"),this.isShowVideo=!0,this.videoIndexModel.PageSize=15,this.videoListData();break;case"audio":case"cm-speech":this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u0911\u0921\u093f\u092f\u094b":"Audio"),this.isShowAudio=!0,this.audioIndexModel.PageSize=15,this.audioListData();break;case"poster":this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u092a\u094b\u0938\u094d\u091f\u0930":"Poster"),this.isShowPoster=!0,this.posterIndexModel.PageSize=15,this.posterListData();break;case"images":case"photo-gallery":this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u092b\u093c\u094b\u091f\u094b \u0917\u0947\u0932\u0930\u0940":"Photo Gallery"),this.isShowPoster=!0,this.posterIndexModel.PageSize=15,this.posterListData();break;case"advertisement":this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u0935\u093f\u091c\u094d\u091e\u093e\u092a\u0928":"Advertisement"),this.isShowAdvertisment=!0,this.advertisementIndexModel.PageSize=15,this.advertisementListData();break;case"attachments":this.isShowAttachment=!0,this.attachmentIndexModel.PageSize=15,this.getAttachmentsData();break;case"description-list":this.isShowDescription=!0,this.descriptionIndexModel.PageSize=15,this.getDescriptionData();break;default:this.route.navigate(["home"])}}getCategoryDetail(){this._achService.GetAcievementCatDetail(this.catCode).subscribe(e=>{if(e.IsSuccess){this.pageTitle=new s.f;let t=e.Data;this.pageTitle.NameEnglish=t.SubMenuNameEnglish,this.pageTitle.NameHindi=t.SubMenuNameHindi,this.pageTitle.ImagePath=t.ImagePath,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish)}},e=>{console.error(e)})}getSubCategoryDetail(){this._achService.GetAcievementSubCatDetail(this.subCatCode).subscribe(e=>{if(e.IsSuccess){this.pageTitle=new s.f;let t=e.Data;this.pageTitle.NameEnglish=t.Title,this.pageTitle.NameHindi=t.TitleHindi,this.pageTitle.ImagePath=t.ImagePath,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish)}},e=>{console.error(e)})}posterListData(){this.posterModel=void 0,this.posterIndexModel.OrderBy="AchievementDate",this.posterIndexModel.OrderByAsc=0,this.posterIndexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode||0,SubCategoryCode:this.subCatCode||0},this.achievementAwardService.GetPostersListData(this.posterIndexModel).subscribe(e=>{e.IsSuccess?(this.posterModel=e.Data.Data,this.posterIndexModel.IsPostBack||(this.posterTotalRecords=e.Data.TotalRecords),this.posterUpdatePageConfig()):this.posterModel=[]},e=>{this.posterModel=[]})}posterGetNextPageRecord(e){window.scroll(0,0),this.posterIndexModel.IsPostBack=!0,this.posterIndexModel.Page=e,this.posterListData()}posterChangePageSize(e){window.scroll(0,0),this.posterIndexModel.IsPostBack=!0,this.posterIndexModel.PageSize=Number(e),this.posterIndexModel.Page=1,this.posterListData()}posterUpdatePageConfig(){this.posterPagerConfig.itemsPerPage=this.posterIndexModel.PageSize,this.posterPagerConfig.currentPage=this.posterIndexModel.Page,this.posterPagerConfig.totalItems=this.posterTotalRecords}videoListData(){this.videoModel=void 0,this.videoIndexModel.OrderBy="AchievementDate",this.videoIndexModel.OrderByAsc=0,this.videoIndexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode||0,SubCategoryCode:this.subCatCode||0},this.achievementAwardService.GetVideoListData(this.videoIndexModel).subscribe(e=>{e.IsSuccess?(this.videoModel=e.Data.Data,this.videoModel.forEach(e=>{e.safeUrl=this.SafeUrl(e.YoutubeURL?e.YoutubeURL:e.Url)}),this.videoIndexModel.IsPostBack||(this.videoTotalRecords=e.Data.TotalRecords),this.videoUpdatePageConfig()):this.videoModel=[]},e=>{this.videoModel=[]})}videoGetNextPageRecord(e){window.scroll(0,0),this.videoIndexModel.IsPostBack=!0,this.videoIndexModel.Page=e,this.videoListData()}videoChangePageSize(e){window.scroll(0,0),this.videoIndexModel.IsPostBack=!0,this.videoIndexModel.PageSize=Number(e),this.videoIndexModel.Page=1,this.videoListData()}videoUpdatePageConfig(){this.videoPagerConfig.itemsPerPage=this.videoIndexModel.PageSize,this.videoPagerConfig.currentPage=this.videoIndexModel.Page,this.videoPagerConfig.totalItems=this.videoTotalRecords}audioListData(){this.audioModel=void 0,this.audioIndexModel.OrderBy="Priority",this.audioIndexModel.OrderByAsc=1,this.audioIndexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode||0,SubCategoryCode:this.subCatCode||0},this.achievementAwardService.GetAudioListData(this.audioIndexModel).subscribe(e=>{e.IsSuccess?(this.audioModel=e.Data.Data,this.audioIndexModel.IsPostBack||(this.audioTotalRecords=e.Data.TotalRecords),this.audioUpdatePageConfig()):this.audioModel=[]},e=>{this.audioModel=[]})}audioGetNextPageRecord(e){window.scroll(0,0),this.audioIndexModel.IsPostBack=!0,this.audioIndexModel.Page=e,this.audioListData()}audioChangePageSize(e){window.scroll(0,0),this.audioIndexModel.IsPostBack=!0,this.audioIndexModel.PageSize=Number(e),this.audioIndexModel.Page=1,this.audioListData()}audioUpdatePageConfig(){this.audioPagerConfig.itemsPerPage=this.audioIndexModel.PageSize,this.audioPagerConfig.currentPage=this.audioIndexModel.Page,this.audioPagerConfig.totalItems=this.audioTotalRecords}advertisementListData(){this.advertisementModel=void 0,this.advertisementIndexModel.OrderBy="AchievementDate",this.advertisementIndexModel.OrderByAsc=0,this.advertisementIndexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode||0,SubCategoryCode:this.subCatCode||0},this.achievementAwardService.GetAdvertisementListData(this.advertisementIndexModel).subscribe(e=>{e.IsSuccess?(this.advertisementModel=e.Data.Data,this.advertisementIndexModel.IsPostBack||(this.advertisementTotalRecords=e.Data.TotalRecords),this.advertisementUpdatePageConfig()):this.advertisementModel=[]},e=>{this.advertisementModel=[]})}advertisementGetNextPageRecord(e){window.scroll(0,0),this.advertisementIndexModel.IsPostBack=!0,this.advertisementIndexModel.Page=e,this.advertisementListData()}advertisementChangePageSize(e){window.scroll(0,0),this.advertisementIndexModel.IsPostBack=!0,this.advertisementIndexModel.PageSize=Number(e),this.advertisementIndexModel.Page=1,this.advertisementListData()}advertisementUpdatePageConfig(){this.advertisementPagerConfig.itemsPerPage=this.advertisementIndexModel.PageSize,this.advertisementPagerConfig.currentPage=this.advertisementIndexModel.Page,this.advertisementPagerConfig.totalItems=this.advertisementTotalRecords}getAttachmentsData(){this.attachmentModel=void 0,this.attachmentIndexModel.OrderBy="Priority",this.attachmentIndexModel.OrderByAsc=1,this.attachmentIndexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode||0,SubCategoryCode:this.subCatCode||0},this.achievementAwardService.GetAdvertisementListData(this.attachmentIndexModel).subscribe(e=>{e.IsSuccess?(this.attachmentModel=e.Data.Data,this.attachmentIndexModel.IsPostBack||(this.attachmentTotalRecords=e.Data.TotalRecords),this.attachmentUpdatePageConfig()):this.attachmentModel=[]},e=>{this.attachmentModel=[]})}attachmentGetNextPageRecord(e){window.scroll(0,0),this.attachmentIndexModel.IsPostBack=!0,this.attachmentIndexModel.Page=e,this.getAttachmentsData()}attachmentChangePageSize(e){window.scroll(0,0),this.attachmentIndexModel.IsPostBack=!0,this.attachmentIndexModel.PageSize=Number(e),this.attachmentIndexModel.Page=1,this.getAttachmentsData()}attachmentUpdatePageConfig(){this.attachmentPagerConfig.itemsPerPage=this.attachmentIndexModel.PageSize,this.attachmentPagerConfig.currentPage=this.attachmentIndexModel.Page,this.attachmentPagerConfig.totalItems=this.attachmentTotalRecords}getDescriptionData(){this.descriptionModel=void 0,this.descriptionIndexModel.OrderBy="Priority",this.descriptionIndexModel.OrderByAsc=1,this.descriptionIndexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode||0,SubCategoryCode:this.subCatCode||0},this.achievementAwardService.GetAdvertisementListData(this.descriptionIndexModel).subscribe(e=>{e.IsSuccess?(this.descriptionModel=e.Data.Data,this.descriptionIndexModel.IsPostBack||(this.descriptionTotalRecords=e.Data.TotalRecords),this.descriptionUpdatePageConfig()):this.descriptionModel=[]},e=>{this.descriptionModel=[]})}descriptionGetNextPageRecord(e){window.scroll(0,0),this.descriptionIndexModel.IsPostBack=!0,this.descriptionIndexModel.Page=e,this.getDescriptionData()}descriptionChangePageSize(e){window.scroll(0,0),this.descriptionIndexModel.IsPostBack=!0,this.descriptionIndexModel.PageSize=Number(e),this.descriptionIndexModel.Page=1,this.getDescriptionData()}descriptionUpdatePageConfig(){this.descriptionPagerConfig.itemsPerPage=this.descriptionIndexModel.PageSize,this.descriptionPagerConfig.currentPage=this.descriptionIndexModel.Page,this.descriptionPagerConfig.totalItems=this.descriptionTotalRecords}onMediaPlaying(e,t){var n,i;e.preventDefault(),null!=this.currentPlayingVideo&&(null===(n=this.currentPlayingVideo)||void 0===n||n.pause()),null!=this.currentPlayingAudio&&(null===(i=this.currentPlayingAudio)||void 0===i||i.pause()),t?(this.currentPlayingAudio=e.target,this.currentPlayingAudio.play()):(this.currentPlayingVideo=e.target,this.currentPlayingVideo.play())}isExtenstionUrl(e){return new RegExp(/\.\w{3,4}($|\?)/i).test(e)}SafeUrl(e){return null!=e&&e.length>0?new RegExp(/\/view(v|V?)/i).test(e)?(e=e.replace(/\/view(v|V?)/i,"/preview"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):(e=e.replace(/\/watch\?(v|V\?)=/g,"/embed/"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):null}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(p.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.b),m.Vb(Qe.a),m.Vb(h.a),m.Vb(b.d),m.Vb(u.a),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-gallery"]],decls:20,vars:12,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[4,"ngIf"],[1,"order_page"],[1,"gallery","pt-5"],[1,"container-fluid"],[1,"row"],["class","col-lg-12 pb-4",4,"ngIf"],["class","col-lg-12",4,"ngIf"],["class","col-lg-12 p-0",4,"ngIf"],[1,"col-lg-12","pb-4"],[1,"title","text-center"],[1,"img-fluid","mr-10",3,"src","title","alt","error"],[3,"showImage",4,"ngIf"],[1,"photo-gallery","photo-gallery-new-design"],[1,"d-flex","flex-row","flex-wrap","my-flex-container","justify-content-center","photos"],["class","photo-gallery-bx align-items-center d-flex justify-content-center",4,"ngFor","ngForOf"],[1,"text-center","my-5"],["class","new-pagination-outer",4,"ngIf"],[1,"photo-gallery-bx","align-items-center","d-flex","justify-content-center"],[1,"img-loader",3,"href","title","error"],[1,"img-fluid","rounded",3,"src","title","alt","error"],["style","display: none;",4,"ngIf"],[1,"home-gallery-items-caption"],[1,"soft-entry"],[2,"display","none"],[4,"ngFor","ngForOf"],[3,"href","title"],[3,"src","title","alt","error"],[1,"new-pagination-outer"],["name","example_length","aria-controls","example","class","form-control-sm top-0","style","width:70px;",3,"change",4,"ngIf"],["id","poster-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],["name","example_length","aria-controls","example",1,"form-control-sm","top-0",2,"width","70px",3,"change"],[3,"value"],["selected","","value","15"],["value","30"],["value","60"],["value","120"],[3,"showImage"],[1,"col-lg-12"],["class","col-sm-6 col-md-6 col-lg-6 col-xl-4 item mb-3 ",3,"title",4,"ngIf"],[1,"col-sm-6","col-md-6","col-lg-6","col-xl-4","item","mb-3",3,"title"],[1,"audio-card","video-card-new","text-center"],[1,"embed-responsive","embed-responsive-21by9"],[4,"ngIf","ngIfElse"],["iframVideo",""],[1,"av-caption",3,"title"],["target","_blank",3,"href"],["width","100%","height","100%","controls","","preload","metadata","data-setup",'{ "aspectRatio":"100%:100%", "playbackRates": [1, 1.5, 2] }',1,"embed-responsive-item",3,"id","poster","playing"],[3,"src","type"],["width","100%","height","100%","frameborder","0","allow","accelerometer; autoplay; gyroscope; picture-in-picture","allowfullscreen","",1,"embed-responsive-item",3,"src","onclick"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"change"],["id","video-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],["class","col-sm-6 col-md-6 col-lg-4 col-xl-3 item mb-4",3,"title",4,"ngIf"],[1,"col-sm-6","col-md-6","col-lg-4","col-xl-3","item","mb-4",3,"title"],[1,"audio-card","text-center"],["src","assets/images/high-volume.png",1,"img-fluid",3,"title","alt"],["preload","none","controls","",1,"w-100",3,"playing"],[3,"src"],["id","audio-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],["data-lightbox","photos",3,"href","title","error"],["id","advertisement-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],["target","_blank",1,"img-loader",3,"href","title"],["id","attachment-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],[1,"col-lg-12","p-0"],[1,"container"],["class","row mt-4",3,"id",4,"ngFor","ngForOf"],["href","javascript:void(0);",1,"btn","btn-round","btn-theme","btn-yellow","mb-3",3,"click"],[1,"row","mt-4",3,"id"],[1,"card-d-1"],[1,"d-md-flex","align-items-center","justify-content-between","mb-2"],[1,"text-color-theme-blue","font-size-3x"],[1,"d-flex","align-items-center"],[3,"innerHTML"],[1,"card-d-1-gallery-img"],[1,"card-d-1-gallery-pdf"],[1,"fas","fa-file-pdf"],["id","description-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"]],template:function(e,t){1&e&&(m.Wb(0,"app-loader"),m.ac(1,"nav",0),m.ac(2,"ol",1),m.ac(3,"li",2),m.ac(4,"a",3),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb(),m.ac(7,"li",4),m.Tc(8,tt,2,1,"span",5),m.Tc(9,nt,2,1,"span",5),m.Zb(),m.Zb(),m.Zb(),m.ac(10,"section",6),m.ac(11,"section",7),m.ac(12,"div",8),m.ac(13,"div",9),m.Tc(14,gt,8,8,"div",10),m.Tc(15,Tt,8,8,"div",11),m.Tc(16,kt,8,8,"div",11),m.Tc(17,Rt,8,8,"div",10),m.Tc(18,qt,8,8,"div",11),m.Tc(19,rn,8,8,"div",12),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(4),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(6,10,"Home_txt")),m.Hb(3),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(5),m.tc("ngIf",t.isShowPoster),m.Hb(1),m.tc("ngIf",t.isShowVideo),m.Hb(1),m.tc("ngIf",t.isShowAudio),m.Hb(1),m.tc("ngIf",t.isShowAdvertisment),m.Hb(1),m.tc("ngIf",t.isShowAttachment),m.Hb(1),m.tc("ngIf",t.isShowDescription))},directives:[et.a,h.d,i.n,i.m,f.c,a.q,a.w,v.a,C.a],pipes:[c.c,f.b,i.u],styles:[""]}),e})();var dn=n("+xgG"),mn=n("DxiF"),un=n("qnWF");function bn(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function gn(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"AssemblyConstituency_txt")))}function hn(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function pn(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"AssemblyConstituency_txt")))}function fn(e,t){if(1&e&&(m.ac(0,"a",29),m.Wb(1,"i",30),m.Vc(2),m.Zb()),2&e){const e=m.mc().$implicit;m.vc("href","mailto:",null==e?null:e.Email,"",m.Pc),m.Hb(2),m.Xc(" ",null==e?null:e.Email," ")}}function vn(e,t){if(1&e&&(m.ac(0,"a",31),m.Wb(1,"i",32),m.Vc(2),m.Zb()),2&e){const e=m.mc().$implicit;m.vc("href","tel:",null==e?null:e.whatsappNumber,"",m.Pc),m.Hb(2),m.Xc(" ",null==e?null:e.whatsappNumber,"")}}function Cn(e,t){if(1&e){const e=m.bc();m.ac(0,"div",13),m.ac(1,"a",14),m.ac(2,"div",15),m.ac(3,"img",16),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/user-default.jpg")})),m.Zb(),m.Zb(),m.ac(4,"div",17),m.ac(5,"h5",18),m.Vc(6),m.Zb(),m.ac(7,"div",19),m.Vc(8),m.Zb(),m.ac(9,"p",20),m.Vc(10),m.Zb(),m.ac(11,"div",21),m.ac(12,"a",22),m.Wb(13,"i",23),m.Zb(),m.ac(14,"a",24),m.Wb(15,"i",25),m.Zb(),m.Zb(),m.ac(16,"div",26),m.Tc(17,fn,3,2,"a",27),m.Tc(18,vn,3,2,"a",28),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc();m.Hb(1),m.wc("routerLink","/home/mla-detail/",e.MLACode,"/",n.departmentCode,""),m.Hb(2),m.uc("alt","hi"==n.translate.currentLang?null==e?null:e.MLANameHindi:null==e?null:e.MLANameEng),m.uc("title","hi"==n.translate.currentLang?null==e?null:e.MLANameHindi:null==e?null:e.MLANameEng),m.tc("src",n.sanitizeImageUrl(null==e?null:e.MLAPhoto),m.Pc),m.Hb(1),m.wc("routerLink","/home/mla-detail/",e.MLACode,"/",n.departmentCode,""),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.MLANameHindi:null==e?null:e.MLANameEng," "),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.DesignationDisplayNameHindi:null==e?null:e.DesignationDisplayName," "),m.Hb(2),m.Yc("","hi"==n.translate.currentLang?null==e?null:e.NameHindi:null==e?null:e.Name,", ","hi"==n.translate.currentLang?null==e?null:e.DistrictTitleHindi:null==e?null:e.DistrictTitle,""),m.Hb(7),m.tc("ngIf",null==e?null:e.Email),m.Hb(1),m.tc("ngIf",null==e?null:e.whatsappNumber)}}function Hn(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Dn(e,t){1&e&&m.Wb(0,"app-no-records",33),2&e&&m.tc("showImage",!0)}let Mn=(()=>{class e{constructor(e,t,n,i,a,c){var o,l,r,d,m,u;this._commonService=e,this._dptDistrictWebsiteService=t,this.translate=n,this.sanitizer=i,this._titleService=a,this.route=c,this.departmentCode=0,this.designationCode=0,this.indexModel=new s.d,this.submenuCode=0,this._commonService.SetWebTitle("hi"==n.currentLang?"\u091c\u093f\u0932\u0947 \u0915\u0947 \u0935\u093f\u0927\u093e\u092f\u0915\u0917\u0923":"MLA of District"),this.indexModel.PageSize=101;let b=null===(r=null===(l=null===(o=this.route)||void 0===o?void 0:o.snapshot)||void 0===l?void 0:l.params)||void 0===r?void 0:r.dptCode;this.departmentCode=Number(b||e.GetWebDistDeptCode()),this.route.snapshot.params.submenuCode&&(this.submenuCode=Number(this.route.snapshot.params.submenuCode||0));let g=null===(u=null===(m=null===(d=this.route)||void 0===d?void 0:d.snapshot)||void 0===m?void 0:m.params)||void 0===u?void 0:u.catCode;this.designationCode=Number(g||0),this.getPageHeading()}getPageHeading(){this.submenuCode>0?this.getSubmenuDetail():this.designationCode>0&&this.getDesignationDetail()}getSubmenuDetail(){this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}},e=>{})}getDesignationDetail(){this._dptDistrictWebsiteService.GetAllDDL(r.a.ddlKey_ddlDesignation).subscribe(e=>{var t,n;if(e.IsSuccess){let i=null===(t=e)||void 0===t?void 0:t.Data;if(i&&i.ddlDesignation&&i.ddlDesignation.length>0){let e=i.ddlDesignation.find(e=>e.Value==this.designationCode);e&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=e.Text,this.pageTitle.NameHindi=null===(n=e.OtherData)||void 0===n?void 0:n.NameHindi,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}}},e=>{console.error(e.message)})}ngOnInit(){this.GetList()}GetList(){this.model=void 0,this.indexModel.OrderByAsc=1,this.indexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode},this._dptDistrictWebsiteService.GetMLAConstituency(this.indexModel).subscribe(e=>{this.model=e.IsSuccess?e.Data.Data:[]},e=>{this.model=[]})}sanitizeImageUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(g.a),m.Vb(p.a),m.Vb(c.d),m.Vb(b.b),m.Vb(b.d),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-assembly-constituncy-list"]],decls:21,vars:18,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[4,"ngIf"],[1,"inner-page","page-district-page-assembly-constituncy"],[1,"container"],[1,"title","text-center"],[1,"img-fluid",3,"title","alt","src","error"],[1,"row"],["class","col-lg-3 col-md-6 col-sm-6 mb-4",4,"ngFor","ngForOf"],[3,"showImage",4,"ngIf"],[1,"col-lg-3","col-md-6","col-sm-6","mb-4"],[1,"home-assembly-constituncy-items","text-center","d-block",3,"routerLink"],[1,"home-assembly-constituncy-items-img","d-flex","justify-content-center"],[3,"src","alt","title","error"],[1,"home-assembly-constituncy-items-detail","py-2",3,"routerLink"],[1,"text-blue","mb-1"],[1,"m-0","mla-detail-desination"],[1,"m-0","text-muted"],[1,"home-assembly-constituncy-items-social","pt-2"],["href","https://www.facebook.com/RajCMO/","target","_blank",1,"socail-color-fb"],[1,"fab","fa-facebook-f"],["href","https://twitter.com/RajCMO","target","_blank",1,"socail-color-twitter"],[1,"fab","fa-twitter"],[1,"mp-mla-items-info-footer"],["class","d-block w-100 mb-1 text-white",3,"href",4,"ngIf"],["class","d-block w-100 text-white",3,"href",4,"ngIf"],[1,"d-block","w-100","mb-1","text-white",3,"href"],[1,"bi","bi-envelope"],[1,"d-block","w-100","text-white",3,"href"],[1,"bi","bi-telephone"],[3,"showImage"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Tc(7,bn,2,1,"span",5),m.Tc(8,gn,3,3,"span",5),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"section",6),m.ac(10,"div",7),m.ac(11,"h1",8),m.ac(12,"img",9),m.ic("error",(function(e){return t._commonService.onImageError(e,"assets/images/mla-list.png")})),m.nc(13,"translate"),m.nc(14,"translate"),m.Zb(),m.Tc(15,hn,2,1,"span",5),m.Tc(16,pn,3,3,"span",5),m.Zb(),m.ac(17,"div",10),m.Tc(18,Cn,19,13,"div",11),m.Zb(),m.Tc(19,Hn,1,0,"app-mini-loader",5),m.Tc(20,Dn,1,1,"app-no-records",12),m.Zb(),m.Zb()),2&e&&(m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,12,"Home_txt")),m.Hb(3),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(4),m.uc("title",m.oc(13,14,"AssemblyConstituency_txt")),m.uc("alt",m.oc(14,16,"AssemblyConstituency_txt")),m.uc("src",(null==t.pageTitle?null:t.pageTitle.ImagePath)||"assets/images/mla-list.png",m.Pc),m.Hb(3),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(2),m.tc("ngForOf",t.model),m.Hb(1),m.tc("ngIf",!t.model),m.Hb(1),m.tc("ngIf",t.model&&0==t.model.length))},directives:[h.d,i.n,i.m,h.c,v.a,C.a],pipes:[c.c],styles:[""]}),e})();var In=n("6mOv");function Zn(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function Tn(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function yn(e,t){if(1&e&&(m.ac(0,"option",28),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.uc("value",e.Value),m.Hb(1),m.Wc(e.Text)}}function xn(e,t){if(1&e){const e=m.bc();m.ac(0,"div",16),m.ac(1,"div",17),m.ac(2,"div",18),m.ac(3,"div",19),m.ac(4,"label"),m.Vc(5,"Category"),m.Zb(),m.ac(6,"select",20),m.ic("ngModelChange",(function(t){return m.Mc(e),m.mc().indexModel.SubCategoryCode=t})),m.ac(7,"option",21),m.Vc(8,"--Select--"),m.Zb(),m.Tc(9,yn,2,2,"option",22),m.Zb(),m.Zb(),m.ac(10,"div",23),m.ac(11,"label"),m.Vc(12,"\xa0"),m.Zb(),m.ac(13,"button",24),m.ic("click",(function(){m.Mc(e);const t=m.mc();return t.indexModel.IndexModel.Page=1,t.getData()})),m.Wb(14,"i",25),m.Vc(15),m.nc(16,"translate"),m.Zb(),m.Zb(),m.ac(17,"div",23),m.ac(18,"label"),m.Vc(19,"\xa0"),m.Zb(),m.ac(20,"button",26),m.ic("click",(function(){return m.Mc(e),m.mc().reset()})),m.Wb(21,"i",27),m.Vc(22),m.nc(23,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(6),m.tc("ngModel",e.indexModel.SubCategoryCode),m.Hb(3),m.tc("ngForOf",null==e.dDLList?null:e.dDLList.ddlAchievementSubCategory),m.Hb(6),m.Xc(" ",m.oc(16,4,"Search_txt")," "),m.Hb(7),m.Xc(" ",m.oc(23,6,"Reset_txt")," ")}}function Pn(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Wc("hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi)}}function Sn(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e&&(m.Hb(1),m.Wc(" "))}function _n(e,t){1&e&&m.Wb(0,"app-mini-loader")}function wn(e,t){1&e&&m.Wb(0,"app-no-records",29),2&e&&m.tc("showImage",!0)}function Ln(e,t){if(1&e&&(m.ac(0,"div",11),m.ac(1,"div",40),m.ac(2,"a",41),m.Wb(3,"i",42),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(2),m.uc("href",null==e?null:e.PdfFIleName,m.Pc)}}function Vn(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"div",33),m.ac(2,"div",34),m.ac(3,"img",35),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/record-not-found.png")})),m.Zb(),m.Zb(),m.Zb(),m.ac(4,"div",36),m.ac(5,"h2",37),m.Vc(6),m.Zb(),m.Tc(7,Ln,4,1,"div",38),m.ac(8,"div",11),m.Wb(9,"pre",39),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(3),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("ngIf",null==e?null:e.PdfFIleName),m.Hb(2),m.tc("innerHTML","hi"==n.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function kn(e,t){1&e&&(m.ac(0,"option",48),m.Vc(1,"10"),m.Zb())}function Nn(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"30"),m.Zb())}function On(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"60"),m.Zb())}function An(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"120"),m.Zb())}function Wn(e,t){if(1&e){const e=m.bc();m.ac(0,"select",43),m.ic("change",(function(t){return m.Mc(e),m.mc(2).ChangePageSize(t.target.value)})),m.ac(1,"option",28),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,kn,2,0,"option",44),m.Tc(5,Nn,2,0,"option",45),m.Tc(6,On,2,0,"option",46),m.Tc(7,An,2,0,"option",47),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(3,6,"All_txt")," "),m.Hb(2),m.tc("ngIf",e.totalRecords>10),m.Hb(1),m.tc("ngIf",e.totalRecords>30),m.Hb(1),m.tc("ngIf",e.totalRecords>60),m.Hb(1),m.tc("ngIf",e.totalRecords>120)}}function En(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Vn,10,6,"div",30),m.nc(2,"paginate"),m.Tc(3,Wn,8,8,"select",31),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",m.pc(2,2,e.model,e.pagerConfig)),m.Hb(2),m.tc("ngIf",e.totalRecords>10)}}function Gn(e,t){if(1&e&&(m.ac(0,"div",60),m.ac(1,"div",40),m.ac(2,"a",41),m.Wb(3,"i",42),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(2),m.uc("href",null==e?null:e.PdfFIleName,m.Pc)}}function Fn(e,t){if(1&e){const e=m.bc();m.ac(0,"div",54),m.ac(1,"div",55),m.Tc(2,Gn,4,1,"div",56),m.ac(3,"div",57),m.ac(4,"img",35),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.ac(5,"div",58),m.ac(6,"a",59),m.Vc(7),m.Zb(),m.Wb(8,"pre",39),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(2),m.tc("ngIf",null==e?null:e.PdfFIleName),m.Hb(2),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(3),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("innerHTML","hi"==n.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function Rn(e,t){1&e&&(m.ac(0,"option",48),m.Vc(1,"10"),m.Zb())}function Xn(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"30"),m.Zb())}function Bn(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"60"),m.Zb())}function Un(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"120"),m.Zb())}function zn(e,t){if(1&e){const e=m.bc();m.ac(0,"select",43),m.ic("change",(function(t){return m.Mc(e),m.mc(2).ChangePageSize(t.target.value)})),m.ac(1,"option",28),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,Rn,2,0,"option",44),m.Tc(5,Xn,2,0,"option",45),m.Tc(6,Bn,2,0,"option",46),m.Tc(7,Un,2,0,"option",47),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(3,6,"All_txt")," "),m.Hb(2),m.tc("ngIf",e.totalRecords>10),m.Hb(1),m.tc("ngIf",e.totalRecords>30),m.Hb(1),m.tc("ngIf",e.totalRecords>60),m.Hb(1),m.tc("ngIf",e.totalRecords>120)}}function jn(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",52),m.Tc(2,Fn,9,6,"div",53),m.nc(3,"paginate"),m.Zb(),m.Tc(4,zn,8,8,"select",31),m.Xb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",m.pc(3,2,e.model,e.pagerConfig)),m.Hb(2),m.tc("ngIf",e.totalRecords>10)}}function $n(e,t){if(1&e){const e=m.bc();m.ac(0,"div",62),m.ac(1,"div",55),m.ac(2,"a",63),m.ac(3,"div",64),m.ac(4,"img",35),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.ac(5,"div",58),m.ac(6,"h2",65),m.Vc(7),m.Zb(),m.Wb(8,"pre",39),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(2),m.vc("href","pages/district-detail/",null==e?null:e.Id,"",m.Pc),m.Hb(2),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(3),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("innerHTML","hi"==n.translate.currentLang?e.DescriptionHindi:e.Description,m.Nc)}}function Yn(e,t){1&e&&(m.ac(0,"option",48),m.Vc(1,"10"),m.Zb())}function qn(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"30"),m.Zb())}function Jn(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"60"),m.Zb())}function Kn(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"120"),m.Zb())}function Qn(e,t){if(1&e){const e=m.bc();m.ac(0,"select",43),m.ic("change",(function(t){return m.Mc(e),m.mc(2).ChangePageSize(t.target.value)})),m.ac(1,"option",28),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,Yn,2,0,"option",44),m.Tc(5,qn,2,0,"option",45),m.Tc(6,Jn,2,0,"option",46),m.Tc(7,Kn,2,0,"option",47),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(3,6,"All_txt")," "),m.Hb(2),m.tc("ngIf",e.totalRecords>10),m.Hb(1),m.tc("ngIf",e.totalRecords>30),m.Hb(1),m.tc("ngIf",e.totalRecords>60),m.Hb(1),m.tc("ngIf",e.totalRecords>120)}}function ei(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",52),m.Tc(2,$n,9,6,"div",61),m.nc(3,"paginate"),m.Zb(),m.Tc(4,Qn,8,8,"select",31),m.Xb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",m.pc(3,2,e.model,e.pagerConfig)),m.Hb(2),m.tc("ngIf",e.totalRecords>10)}}function ti(e,t){if(1&e){const e=m.bc();m.ac(0,"div",67),m.ac(1,"div",68),m.ac(2,"div",69),m.ac(3,"a",63),m.ac(4,"img",70),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(5,"div",71),m.ac(6,"div",72),m.ac(7,"h2",73),m.Vc(8),m.Zb(),m.ac(9,"p",74),m.ac(10,"span"),m.Vc(11),m.Zb(),m.Vc(12," > "),m.ac(13,"span"),m.Vc(14),m.Zb(),m.Zb(),m.ac(15,"div",10),m.ac(16,"div",75),m.ac(17,"p"),m.Wb(18,"i",76),m.ac(19,"strong"),m.Vc(20,"Address : "),m.Zb(),m.ac(21,"a",77),m.Vc(22),m.Zb(),m.Zb(),m.Zb(),m.ac(23,"div",75),m.ac(24,"p"),m.Wb(25,"i",78),m.ac(26,"strong"),m.Vc(27,"Email : "),m.Zb(),m.Vc(28),m.Zb(),m.Zb(),m.ac(29,"div",75),m.ac(30,"p"),m.Wb(31,"i",79),m.ac(32,"strong"),m.Vc(33,"Pincode : "),m.Zb(),m.Vc(34),m.Zb(),m.Zb(),m.ac(35,"div",75),m.ac(36,"p"),m.Wb(37,"i",80),m.ac(38,"strong"),m.Vc(39,"Phone : "),m.Zb(),m.Vc(40),m.Zb(),m.Zb(),m.ac(41,"div",11),m.ac(42,"p"),m.Wb(43,"i",81),m.ac(44,"strong"),m.Vc(45,"Website : "),m.Zb(),m.ac(46,"a",77),m.Vc(47),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.vc("href","pages/district-detail/",null==e?null:e.Id,"",m.Pc),m.Hb(1),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(4),m.Wc("en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi),m.Hb(3),m.Wc("en"==n.translate.currentLang?"Category":"\u0936\u094d\u0930\u0947\u0923\u0940"),m.Hb(3),m.Wc("en"==n.translate.currentLang?e.AchievementSubCategory:e.AchievementSubCategoryHindi),m.Hb(7),m.tc("href",e.GoogleMapUrl,m.Pc),m.Hb(1),m.Xc(" ","en"==n.translate.currentLang?e.Address_English:e.Address_Hindi," "),m.Hb(6),m.Xc(" ",e.Email," "),m.Hb(6),m.Xc(" ",e.PinCode," "),m.Hb(6),m.Xc(" ",e.Phone," "),m.Hb(6),m.tc("href",n.getSafeUrl(e.Url),m.Pc),m.Hb(1),m.Xc(" ",e.Url," ")}}function ni(e,t){1&e&&(m.ac(0,"option",48),m.Vc(1,"10"),m.Zb())}function ii(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"30"),m.Zb())}function ai(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"60"),m.Zb())}function ci(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"120"),m.Zb())}function oi(e,t){if(1&e){const e=m.bc();m.ac(0,"select",43),m.ic("change",(function(t){return m.Mc(e),m.mc(2).ChangePageSize(t.target.value)})),m.ac(1,"option",28),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,ni,2,0,"option",44),m.Tc(5,ii,2,0,"option",45),m.Tc(6,ai,2,0,"option",46),m.Tc(7,ci,2,0,"option",47),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(3,6,"All_txt")," "),m.Hb(2),m.tc("ngIf",e.totalRecords>10),m.Hb(1),m.tc("ngIf",e.totalRecords>30),m.Hb(1),m.tc("ngIf",e.totalRecords>60),m.Hb(1),m.tc("ngIf",e.totalRecords>120)}}function li(e,t){if(1&e&&(m.Yb(0),m.Tc(1,ti,48,14,"div",66),m.nc(2,"paginate"),m.Tc(3,oi,8,8,"select",31),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",m.pc(2,2,e.model,e.pagerConfig)),m.Hb(2),m.tc("ngIf",e.totalRecords>10)}}function ri(e,t){if(1&e&&(m.ac(0,"div",9),m.ac(1,"div",10),m.ac(2,"div",11),m.ac(3,"div",40),m.ac(4,"a",41),m.Wb(5,"i",42),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(4),m.uc("href",null==e?null:e.PdfFIleName,m.Pc)}}function si(e,t){if(1&e){const e=m.bc();m.ac(0,"img",85),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/departmental_galley.png")})),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2);m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi)}}function di(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",83),m.ac(2,"h2",84),m.ac(3,"img",85),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/departmental_galley.png")})),m.Zb(),m.Vc(4),m.Zb(),m.Tc(5,ri,6,1,"div",86),m.Wb(6,"br"),m.Wb(7,"pre",39),m.Tc(8,si,1,3,"img",87),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.AchievementSubCategoryImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(1),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("ngIf",null==e?null:e.PdfFIleName),m.Hb(2),m.tc("innerHTML","hi"==n.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc),m.Hb(1),m.tc("ngIf",null==e?null:e.ImagePath)}}function mi(e,t){1&e&&(m.ac(0,"option",48),m.Vc(1,"10"),m.Zb())}function ui(e,t){1&e&&(m.ac(0,"option",49),m.Vc(1,"30"),m.Zb())}function bi(e,t){1&e&&(m.ac(0,"option",50),m.Vc(1,"60"),m.Zb())}function gi(e,t){1&e&&(m.ac(0,"option",51),m.Vc(1,"120"),m.Zb())}function hi(e,t){if(1&e){const e=m.bc();m.ac(0,"select",43),m.ic("change",(function(t){return m.Mc(e),m.mc(2).ChangePageSize(t.target.value)})),m.ac(1,"option",28),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,mi,2,0,"option",44),m.Tc(5,ui,2,0,"option",45),m.Tc(6,bi,2,0,"option",46),m.Tc(7,gi,2,0,"option",47),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(3,6,"All_txt")," "),m.Hb(2),m.tc("ngIf",e.totalRecords>10),m.Hb(1),m.tc("ngIf",e.totalRecords>30),m.Hb(1),m.tc("ngIf",e.totalRecords>60),m.Hb(1),m.tc("ngIf",e.totalRecords>120)}}function pi(e,t){if(1&e&&(m.Yb(0),m.Tc(1,di,9,7,"ng-container",82),m.nc(2,"paginate"),m.Tc(3,hi,8,8,"select",31),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",m.pc(2,2,e.model,e.pagerConfig)),m.Hb(2),m.tc("ngIf",e.totalRecords>10)}}let fi=(()=>{class e{constructor(e,t,n,i,a,c,r,d,m){this.achievementAwardService=e,this._dptDistrictWebsiteService=t,this.translate=n,this.sanitizer=i,this.route=a,this._app=c,this._route=r,this._commonService=d,this._departmentService=m,this.totalRecords=0,this.achievementEnum=o.a,this.indexModel=new l.b,this.submenuCode=0,this.dDLList=new s.b,this.pagerConfig={id:"data-paging",itemsPerPage:this.indexModel.IndexModel.PageSize,currentPage:this.indexModel.IndexModel.Page,totalItems:this.totalRecords},this._route.paramMap.subscribe(e=>{this.indexModel.IndexModel.PageSize=10,this.indexModel.IndexModel.OrderBy="Priority",this.indexModel.IndexModel.OrderByAsc=1,this.pageTitle=void 0;let t=e.get("dptCode");t?(this.indexModel.DepartmentCode=Number(t),localStorage.setItem("websiteCode",t)):localStorage.getItem("websiteCode")&&(this.indexModel.DepartmentCode=Number(localStorage.getItem("websiteCode"))),this.catCode=Number(e.get("catCode")),this.submenuCode=Number(e.get("submenuCode")||0),this.indexModel.CategoryCode=e.get("catCode"),131==this.catCode?this.GetGeneralSubCategory(131):this.dDLList.ddlAchievementSubCategory=[],this.getData(),this.getPageHeading()})}getPageHeading(){this.submenuCode>0?this.getSubmenuDetail():this.catCode>0&&this.getCategoryDetail()}getSubmenuDetail(){this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}})}ngOnInit(){let e=localStorage.getItem("websiteCode");this.GetDepartmentMenuList(JSON.parse(e))}getData(){this.model=void 0,this.achievementAwardService.GetAchievementListBySearchFilterData(this.indexModel,!0).subscribe(e=>{e.IsSuccess?(this.model=e.Data.Data,this.indexModel.IndexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this.UpdatePageConfig()):this.model=[]},e=>{this.model=[]})}reset(){this.indexModel.SubCategoryCode=0,this.getData()}getSafeUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}getCategoryDetail(){this.achievementAwardService.GetAcievementCatDetail(this.catCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.SubMenuNameEnglish,this.pageTitle.NameHindi=t.SubMenuNameHindi,this._commonService.SetWebTitle("hi"==this.translate.currentLang?t.SubMenuNameHindi:t.SubMenuNameEnglish))}},e=>{console.error(e)})}NextPageRecord(e){window.scroll(0,0),this.indexModel.IndexModel.IsPostBack=!0,this.indexModel.IndexModel.Page=e,this.getData()}ChangePageSize(e){window.scroll(0,0),this.indexModel.IndexModel.IsPostBack=!0,this.indexModel.IndexModel.PageSize=Number(e),this.indexModel.IndexModel.Page=1,this.getData()}UpdatePageConfig(){this.pagerConfig.itemsPerPage=this.indexModel.IndexModel.PageSize,this.pagerConfig.currentPage=this.indexModel.IndexModel.Page,this.pagerConfig.totalItems=this.totalRecords}GetDepartmentMenuList(e){this._departmentService.GetDepartmentMenuList(e).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&this._departmentService.setDeptMenuList(t)}},e=>{console.error(e)})}GetGeneralSubCategory(e){this.indexModel.CategoryCode?this._departmentService.GetGeneralSubCategory(e).subscribe(e=>{e.IsSuccess&&(this.dDLList.ddlAchievementSubCategory=e.Data)}):this.dDLList.ddlAchievementSubCategory=[]}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(p.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.b),m.Vb(Qe.a),m.Vb(h.a),m.Vb(g.a),m.Vb(In.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-dictrict-info-detail"]],decls:29,vars:25,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[4,"ngIf"],[1,"order_page"],["class","orders_filter",4,"ngIf"],[1,"gallery","pt-5"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"title","text-center"],[1,"img-fluid","mr-10",3,"src","title","alt","error"],[3,"showImage",4,"ngIf"],["id","data-paging","autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],[1,"orders_filter"],[1,"container-fluid"],[1,"row","justify-content-center"],[1,"col","l3","xl3","m3","s12"],["name","SubCategoryCode",1,"form-control",3,"ngModel","ngModelChange"],["value","0"],[3,"value",4,"ngFor","ngForOf"],[1,"col-lg-2","col-sm-6","col-12"],[1,"btn","btn-success","filter-btn","d-block","w-100",2,"border","none",3,"click"],[1,"fas","fa-search","mr-2"],[1,"btn","btn-danger","filter-btn","d-block","w-100",2,"border","none",3,"click"],[1,"fas","fa-redo-alt","mr-2"],[3,"value"],[3,"showImage"],["class","row mb-5 align-items-center custom-slider-1 w-100",4,"ngFor","ngForOf"],["name","example_length","aria-controls","example","class","form-control-sm","style","width: 70px",3,"change",4,"ngIf"],[1,"row","mb-5","align-items-center","custom-slider-1","w-100"],[1,"col-lg-5","p-0"],[1,"festival-img","d-flex","align-items-center","justify-content-center","img-box"],[3,"src","title","alt","error"],[1,"col-lg-7","mt-4","mt-lg-0","festival-details","px-4","py-3"],[1,"text-color-theme-blue","font-size-5x","mb-3"],["class","col-lg-12",4,"ngIf"],[3,"innerHTML"],[1,"page-file-download"],["target","_blank",1,"page-file-download-btn",3,"href"],[1,"fas","fa-file-pdf"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"change"],["selected","","value","10",4,"ngIf"],["value","30",4,"ngIf"],["value","60",4,"ngIf"],["value","120",4,"ngIf"],["selected","","value","10"],["value","30"],["value","60"],["value","120"],[1,"row","m-0","w-100","h-100"],["class","col-lg-4 col-sm-6 mb-5",4,"ngFor","ngForOf"],[1,"col-lg-4","col-sm-6","mb-5"],[1,"card-2-design","box-box-shadow"],["class","right",4,"ngIf"],[1,"card-2-design-img","d-flex","align-items-center","justify-content-center","position-relative"],[1,"card-2-design-detail","p-3"],["href","#",1,"text-color-theme-blue","font-size-3x","mb-2","d-block"],[1,"right"],["class","col-lg-6 mb-4",4,"ngFor","ngForOf"],[1,"col-lg-6","mb-4"],[3,"href"],[1,"card-2-design-img","d-flex","align-items-center","justify-content-center"],[1,"text-color-theme-blue","font-size-4x","mb-2","place-visit-title"],["class","row w-100 titi-part-section",4,"ngFor","ngForOf"],[1,"row","w-100","titi-part-section"],[1,"col-lg-3","p-0"],[1,"image-container"],[1,"bg-image-part",3,"src","title","alt","error"],[1,"col-lg-9"],[1,"details","details-part4"],[1,"accomodationtitlecolor"],[1,"category","category-part3"],[1,"col-lg-6"],[1,"fas","fa-map-marker-alt","icon-part-section"],["target","_blank",3,"href"],[1,"fas","fa-envelope","envelope-part","icon-part-section"],[1,"fas","fa-thumbtack","pincode","icon-part-section"],[1,"fas","fa-phone","phone-call","icon-part-section"],[1,"fas","fa-globe","globe-part","icon-part-section"],[4,"ngFor","ngForOf"],[1,"mb-4","col-md-12"],[1,"text-color-theme-blue","font-size-4x","mb-3","d-flex","align-items-center","how-reach-img"],[1,"mr-10",3,"src","title","alt","error"],["class","container",4,"ngIf"],["class","mr-10",3,"src","title","alt","error",4,"ngIf"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Tc(7,Zn,2,1,"span",5),m.Tc(8,Tn,2,1,"span",5),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"section",6),m.Tc(10,xn,24,8,"div",7),m.ac(11,"section",8),m.ac(12,"div",9),m.ac(13,"div",10),m.ac(14,"div",11),m.ac(15,"h1",12),m.ac(16,"img",13),m.ic("error",(function(e){return t._commonService.onImageError(e,"assets/images/loader.gif")})),m.Zb(),m.Tc(17,Pn,2,1,"span",5),m.Tc(18,Sn,2,1,"span",5),m.Zb(),m.Zb(),m.Tc(19,_n,1,0,"app-mini-loader",5),m.Tc(20,wn,1,1,"app-no-records",14),m.Tc(21,En,4,5,"ng-container",5),m.Tc(22,jn,5,5,"ng-container",5),m.Tc(23,ei,5,5,"ng-container",5),m.Tc(24,li,4,5,"ng-container",5),m.Tc(25,pi,4,5,"ng-container",5),m.ac(26,"pagination-controls",15),m.ic("pageChange",(function(e){return t.NextPageRecord(e)})),m.nc(27,"translate"),m.nc(28,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Xc(" ",m.oc(5,19,"Home_txt")," "),m.Hb(3),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(2),m.tc("ngIf",t.indexModel.CategoryCode==t.achievementEnum.DAccomodationCode),m.Hb(6),m.uc("src",(null==t.pageTitle?null:t.pageTitle.ImagePath)||"assets/images/icon-district-tab-2.png",m.Pc),m.uc("title",t.pageTitle?"hi"!=t.translate.currentLang?null==t.pageTitle?null:t.pageTitle.NameEnglish:null==t.pageTitle?null:t.pageTitle.NameHindi:" "),m.uc("alt",t.pageTitle?"hi"!=t.translate.currentLang?null==t.pageTitle?null:t.pageTitle.NameEnglish:null==t.pageTitle?null:t.pageTitle.NameHindi:" "),m.Hb(1),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(1),m.tc("ngIf",!t.model),m.Hb(1),m.tc("ngIf",t.model&&0==t.model.length),m.Hb(1),m.tc("ngIf",t.indexModel.CategoryCode==t.achievementEnum.DFestivalsCode||t.indexModel.CategoryCode==t.achievementEnum.DistrictSmartCityCode||t.indexModel.CategoryCode==t.achievementEnum.DistrictAwardsCode),m.Hb(1),m.tc("ngIf",t.indexModel.CategoryCode==t.achievementEnum.DArtCultureLifestyleCode||t.indexModel.CategoryCode==t.achievementEnum.DSupportingInstitutionsCode),m.Hb(1),m.tc("ngIf",t.indexModel.CategoryCode==t.achievementEnum.DTouristPlacesCode||t.indexModel.CategoryCode==t.achievementEnum.DWildlifeCode||t.indexModel.CategoryCode==t.achievementEnum.DLocalProduceCode||t.indexModel.CategoryCode==t.achievementEnum.DCulinaryDelightsCode||t.indexModel.CategoryCode==t.achievementEnum.DProductsMadeByNomadicCastes_GroupsCode||t.indexModel.CategoryCode==t.achievementEnum.DProductsMadeByWomenSelf_HelpGroupsCode),m.Hb(1),m.tc("ngIf",t.indexModel.CategoryCode==t.achievementEnum.DAccomodationCode),m.Hb(1),m.tc("ngIf",t.indexModel.CategoryCode==t.achievementEnum.DHowtoReachCode),m.Hb(1),m.uc("previousLabel",m.oc(27,21,"Previous_txt")),m.uc("nextLabel",m.oc(28,23,"Next_txt")))},directives:[h.d,i.n,f.c,a.u,a.m,a.p,a.q,a.w,i.m,v.a,C.a],pipes:[c.c,f.b],styles:["select.form-control-sm[_ngcontent-%COMP%]{top:0!important}pre[_ngcontent-%COMP%]{text-align:justify}.accommodation-card[_ngcontent-%COMP%]{display:-webkit-box;display:flex;border:1px solid #ddd;border-radius:10px;overflow:hidden;box-shadow:2px 2px 10px rgba(0,0,0,.1);max-width:900px;margin:auto;background:#fff}.image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:300px;height:auto;-o-object-fit:cover;object-fit:cover}.details[_ngcontent-%COMP%]{padding:20px;-webkit-box-flex:1;flex:1}h2[_ngcontent-%COMP%]{margin-top:0;color:#fff}.accomodationtitlecolor[_ngcontent-%COMP%]{color:#000}.category[_ngcontent-%COMP%]{font-size:14px;color:#666;margin-bottom:15px}.info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px 0;font-size:14px}.icon[_ngcontent-%COMP%]{margin-right:5px}a[_ngcontent-%COMP%]{color:#333}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover{text-decoration:none}a[_ngcontent-%COMP%]:hover{color:#007bff}.bg-image-part[_ngcontent-%COMP%]{width:100%!important;border-radius:8px}.titi-part-section[_ngcontent-%COMP%]{border:1px solid #dedede;padding:10px;border-radius:10px}.details-part4[_ngcontent-%COMP%]{padding:0}.category-part3[_ngcontent-%COMP%]{font-weight:600;margin:18px 0;font-size:1em;background:#eee;padding:7px;border:1px solid #ddd}.category-part3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000}.main-part-section[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:stretch;justify-content:stretch}.icon-part-section[_ngcontent-%COMP%]{width:25px;height:25px;line-height:25px;font-size:inherit;margin-right:8px;background:#f52d2d;color:#fff;border-radius:50%;text-align:center}.envelope-part[_ngcontent-%COMP%]{background:#05af39}.pincode[_ngcontent-%COMP%]{background:#f9a408}.phone-call[_ngcontent-%COMP%]{background:#5d5d5d}.globe-part[_ngcontent-%COMP%]{background:#007bff}"]}),e})();var vi=n("9h9k"),Ci=n("MZWM"),Hi=n("56/0");function Di(e,t){1&e&&(m.ac(0,"li",13),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"AboutTitle_txt")," "))}function Mi(e,t){if(1&e){const e=m.bc();m.ac(0,"h1",14),m.ac(1,"img",15),m.ic("error",(function(t){return m.Mc(e),m.mc().commonService.onImageError(t,"assets/images/loader.gif")})),m.nc(2,"translate"),m.nc(3,"translate"),m.Zb(),m.Vc(4),m.nc(5,"translate"),m.Zb()}2&e&&(m.Hb(1),m.uc("title",m.oc(2,3,"AboutTitle_txt")),m.uc("alt",m.oc(3,5,"AboutTitle_txt")),m.Hb(3),m.Xc(" ",m.oc(5,7,"AboutTitle_txt")," "))}function Ii(e,t){if(1&e&&(m.ac(0,"section",16),m.ac(1,"div",17),m.ac(2,"div",18),m.ac(3,"div",19),m.ac(4,"div",20),m.Wb(5,"p",21),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(5),m.tc("innerHTML","hi"==e.translate.currentLang&&null!=e.dataModel&&e.dataModel.DetailsInHindi?null==e.dataModel?null:e.dataModel.DetailsInHindi:null==e.dataModel?null:e.dataModel.Details,m.Nc)}}function Zi(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ti(e,t){1&e&&m.Wb(0,"app-no-records",22),2&e&&m.tc("showImage",!0)}let yi=(()=>{class e{constructor(e,t,n,i,a,c){this.departmentProfile=e,this.translate=t,this.sanitizer=n,this._route=i,this._titleService=a,this.commonService=c,this.departmentCode=0,this.departmentProfileFilterModel=new Ci.c,this.jankalyanEntryTypeEnum=vi.d,this._route.paramMap.subscribe(e=>{if(e.get("dptCode")){let t=e.get("dptCode");localStorage.getItem("websiteCode")?this.departmentCode=Number(localStorage.getItem("websiteCode")):t&&(this.departmentCode=Number(t),localStorage.setItem("websiteCode",t)),this.pageType="about",this.commonService.SetWebTitle("hi"==this.translate.currentLang?"\u092c\u093e\u0930\u0947 \u092e\u0947\u0902":"About Us"),this.getDepartmentProfileListData()}})}ngOnInit(){}getDepartmentProfileListData(){this.dataModel=void 0,this.departmentProfileFilterModel.DepartmentCode=this.departmentCode,this.departmentProfileFilterModel.EntryTypeCode=Number(this.jankalyanEntryTypeEnum.AboutCode),this.departmentProfileFilterModel.IndexModel.PageSize=1,this.departmentProfile.GetList(this.departmentProfileFilterModel).subscribe(e=>{var t,n;if(e.IsSuccess)if(this.departmentProfileModel=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,this.departmentProfileModel&&this.departmentProfileModel.length>1)for(let i in this.departmentProfileModel)this.departmentProfileModel[i].Details=this.sanitizer.bypassSecurityTrustHtml(this.departmentProfileModel[i].Details);else this.departmentProfileModel&&1==this.departmentProfileModel.length?(this.dataModel=this.departmentProfileModel[0],this.dataModel.Details=this.sanitizer.bypassSecurityTrustHtml(this.departmentProfileModel[0].Details)):this.dataModel={};else this.dataModel={}},e=>{this.dataModel={},console.error(e.message)})}onDownload(e){e&&open("'url'","_blank").document.write('')}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Hi.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.a),m.Vb(b.d),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-district-information"]],decls:16,vars:11,consts:[["id","sticky-anchor"],["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"container","p-0"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[3,"ngSwitch"],["class","breadcrumb-item active","aria-current","page",4,"ngSwitchCase"],[1,"col-lg-12","mt-5"],["class","title text-center mb-1",4,"ngSwitchCase"],["class","inner-page page-about page-editor-entry-design",4,"ngIf"],[4,"ngIf"],[3,"showImage",4,"ngIf"],["aria-current","page",1,"breadcrumb-item","active"],[1,"title","text-center","mb-1"],["src","assets/images/icon-district-tab-1.png",1,"img-fluid",3,"title","alt","error"],[1,"inner-page","page-about","page-editor-entry-design"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"about-yajona-text"],[2,"text-align","justify !important",3,"innerHTML"],[3,"showImage"]],template:function(e,t){1&e&&(m.Wb(0,"div",0),m.ac(1,"nav",1),m.ac(2,"div",2),m.ac(3,"ol",3),m.ac(4,"li",4),m.ac(5,"a",5),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.Zb(),m.Yb(8,6),m.Tc(9,Di,3,3,"li",7),m.Xb(),m.Zb(),m.Zb(),m.Zb(),m.Yb(10,6),m.ac(11,"div",8),m.Tc(12,Mi,6,9,"h1",9),m.Zb(),m.Xb(),m.Tc(13,Ii,6,1,"section",10),m.Tc(14,Zi,1,0,"app-mini-loader",11),m.Tc(15,Ti,1,1,"app-no-records",12)),2&e&&(m.Hb(5),m.uc("routerLink",t.commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(7,9,"Home_txt")),m.Hb(2),m.tc("ngSwitch",t.pageType),m.Hb(1),m.tc("ngSwitchCase","about"),m.Hb(1),m.tc("ngSwitch",t.pageType),m.Hb(2),m.tc("ngSwitchCase","about"),m.Hb(1),m.tc("ngIf",t.dataModel),m.Hb(1),m.tc("ngIf",!t.dataModel),m.Hb(1),m.tc("ngIf",t.dataModel&&0==t.commonService.GetObjectLength(t.dataModel)))},directives:[h.d,i.p,i.q,i.n,v.a,C.a],pipes:[c.c],styles:[""]}),e})();var xi=n("RVz6"),Pi=n("K2V9");function Si(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",9),m.ac(2,"a",10),m.ac(3,"div",11),m.Vc(4),m.Zb(),m.ac(5,"div",12),m.ac(6,"img",13),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/scheme_logo.png")})),m.Zb(),m.Zb(),m.ac(7,"div",14),m.Vc(8),m.Wb(9,"i",15),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(2),m.vc("routerLink","/scheme/detail/",e.Id,""),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?e.DepartmentTitleHindi:e.DepartmentTitle," "),m.Hb(2),m.uc("src",e.Logo,m.Pc),m.uc("alt","hi"==n.translate.currentLang?e.NameHindi:e.NameEnglish),m.uc("title","hi"==n.translate.currentLang?e.NameHindi:e.NameEnglish),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?e.NameHindi:e.NameEnglish," ")}}function _i(e,t){if(1&e&&(m.ac(0,"div",7),m.Tc(1,Si,10,6,"ng-container",8),m.nc(2,"paginate"),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.tc("ngForOf",m.pc(2,1,e.schemeModel,e.schemePagerConfig))}}function wi(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.ac(4,"div",4),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.ac(7,"a",5),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Tc(10,_i,3,4,"div",6),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("home-schemes schemes py-1 py-md-5 ",e.BackGroundClass,""),m.Hb(5),m.Xc(" ",m.oc(6,6,"Schemes_txt"),""),m.Hb(3),m.Xc(" ",m.oc(9,8,"ViewAll_txt"),""),m.Hb(2),m.tc("ngIf",e.schemeRecordsExist)}}let Li=(()=>{class e{constructor(e,t,n){this.translate=e,this._commonService=t,this.schemeService=n,this.DepartmentCode=0,this.AdmDepartmentCode=0,this.IsDistrictDepartmentCode=!1,this.onShowData=new m.q,this.schemeFilterModel=new s.g,this.schemeTotalRecords=0,this.schemeRecordsExist=!1,this.schemePagerConfig={id:"scheme-paging",itemsPerPage:this.schemeFilterModel.indexModel.PageSize,currentPage:this.schemeFilterModel.indexModel.Page,totalItems:this.schemeTotalRecords},this.schemeFilterModel.indexModel.PageSize=3}ngOnInit(){this.GetSchemeListData()}GetSchemeListData(){this.schemeFilterModel.AdmDepartmentCode=this.IsDistrictDepartmentCode?0:this.AdmDepartmentCode,this.schemeFilterModel.DepartmentCode=0,this.schemeFilterModel.indexModel=this.schemeFilterModel.indexModel,this.schemeFilterModel.indexModel.OrderBy="ItemOrder",this.schemeFilterModel.indexModel.OrderByAsc=1,this.schemeFilterModel.IsFlagShipScheme=1,this.schemeService.GetFilterSchemeData(this.schemeFilterModel).subscribe(e=>{var t,n,i,a;e.IsSuccess?(this.schemeModel=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,this.onShowData.emit(this.schemeModel.length>0),this.schemeFilterModel.indexModel.IsPostBack||(this.schemeTotalRecords=(null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.TotalRecords)||0),this.schemeRecordsExist=this.schemeModel.length>0,this.schemeUpdatePageConfig()):this.onShowData.emit(!1)},e=>{this.onShowData.emit(!1)})}schemeUpdatePageConfig(){window.scroll(0,0),this.schemePagerConfig.itemsPerPage=this.schemeFilterModel.indexModel.PageSize,this.schemePagerConfig.currentPage=this.schemeFilterModel.indexModel.Page,this.schemePagerConfig.totalItems=this.schemeTotalRecords}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(g.a),m.Vb(Pi.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-flag-ship-section"]],inputs:{DepartmentCode:"DepartmentCode",AdmDepartmentCode:"AdmDepartmentCode",IsDistrictDepartmentCode:"IsDistrictDepartmentCode",BackGroundClass:"BackGroundClass"},outputs:{onShowData:"onShowData"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"section-title","text-center","m-auto"],["href","https://jankalyan.rajasthan.gov.in/#/flagshipscheme","target","_blank",1,"btn","btn-round","btn-theme","btn-yellow"],["class","w-100 row justify-content-center m-0",4,"ngIf"],[1,"w-100","row","justify-content-center","m-0"],[4,"ngFor","ngForOf"],[1,"col-md-4","mb-3","mb-md-0"],[1,"scheme_bx","d-block",3,"routerLink"],[1,"scheme_titile"],[1,"scheme-img","d-flex","align-items-center","justify-content-center"],[1,"img-fluid",3,"src","alt","title","error"],[1,"seheme_name"],[1,"fa","fa-chevron-right"]],template:function(e,t){1&e&&m.Tc(0,wi,11,10,"section",0),2&e&&m.tc("ngIf",(null==t.schemeModel?null:t.schemeModel.length)>0)},directives:[i.n,i.m,h.d],pipes:[c.c,f.b],styles:[""]}),e})();function Vi(e,t){if(1&e&&(m.ac(0,"a",7),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.vc("routerLink","/pages/assembly-constituency/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function ki(e,t){if(1&e&&(m.ac(0,"a",19),m.Wb(1,"i",20),m.Vc(2),m.Zb()),2&e){const e=m.mc().$implicit;m.vc("href","mailto:",null==e?null:e.Email,"",m.Pc),m.Hb(2),m.Xc(" ",null==e?null:e.Email," ")}}function Ni(e,t){if(1&e&&(m.ac(0,"a",21),m.Wb(1,"i",22),m.Vc(2),m.Zb()),2&e){const e=m.mc().$implicit;m.vc("href","tel:",null==e?null:e.whatsappNumber,"",m.Pc),m.Hb(2),m.Xc(" ",null==e?null:e.whatsappNumber,"")}}function Oi(e,t){if(1&e){const e=m.bc();m.ac(0,"div",8),m.ac(1,"a",9),m.ac(2,"div",10),m.ac(3,"img",11),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/user-default.jpg")})),m.Zb(),m.Zb(),m.ac(4,"div",12),m.ac(5,"h5",13),m.Vc(6),m.Zb(),m.ac(7,"div",14),m.Vc(8),m.Zb(),m.ac(9,"p",15),m.Vc(10),m.Zb(),m.ac(11,"div",16),m.Tc(12,ki,3,2,"a",17),m.Tc(13,Ni,3,2,"a",18),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc();m.Hb(1),m.wc("routerLink","/pages/mla-detail/",e.MLACode,"/",n.departmentCode,""),m.Hb(2),m.uc("alt","hi"==n.translate.currentLang?null==e?null:e.MLANameHindi:null==e?null:e.MLANameEng),m.uc("title","hi"==n.translate.currentLang?null==e?null:e.MLANameHindi:null==e?null:e.MLANameEng),m.tc("src",n.sanitizeImageUrl(null==e?null:e.MLAPhoto),m.Pc),m.Hb(1),m.wc("routerLink","/pages/mla-detail/",e.MLACode,"/",n.departmentCode,""),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.MLANameHindi:null==e?null:e.MLANameEng," "),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.DesignationDisplayNameHindi:null==e?null:e.DesignationDisplayName," "),m.Hb(2),m.Yc("","hi"==n.translate.currentLang?null==e?null:e.NameHindi:null==e?null:e.Name,", ","hi"==n.translate.currentLang?null==e?null:e.DistrictTitleHindi:null==e?null:e.DistrictTitle,""),m.Hb(2),m.tc("ngIf",null==e?null:e.Email),m.Hb(1),m.tc("ngIf",null==e?null:e.whatsappNumber)}}function Ai(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Wi(e,t){1&e&&m.Wb(0,"app-no-records")}let Ei=(()=>{class e{constructor(e,t,n,i,a,c){var o,l,r;this._dptDistrictWebsiteService=e,this.translate=t,this.sanitizer=n,this._titleService=i,this.route=a,this._commonService=c,this.DepartmentCode=0,this.indexModel=new s.d,this.departmentCode=0,this.indexModel=new s.d,this.indexModel.PageSize=8;let d=null===(r=null===(l=null===(o=this.route)||void 0===o?void 0:o.snapshot)||void 0===l?void 0:l.params)||void 0===r?void 0:r.dptCode;this.DepartmentCode=c.GetWebDistDeptCode(d)}ngOnInit(){this.GetList()}GetList(){this.model=void 0,this.indexModel.OrderByAsc=1,this.indexModel.AdvanceSearchModel={DepartmentCode:this.DepartmentCode},this._dptDistrictWebsiteService.GetMLAConstituency(this.indexModel).subscribe(e=>{this.model=e.IsSuccess?e.Data.Data:[]},e=>{this.model=[]})}sanitizeImageUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(p.a),m.Vb(c.d),m.Vb(b.b),m.Vb(b.d),m.Vb(h.a),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-assembly-constituncy"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},decls:11,vars:10,consts:[[1,"container"],[1,"row"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"section-title","text-center","m-auto"],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","col-lg-3 col-md-6 col-sm-6 mb-4",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-3","col-md-6","col-sm-6","mb-4"],[1,"home-assembly-constituncy-items","text-center","d-block",3,"routerLink"],[1,"home-assembly-constituncy-items-img","d-flex","justify-content-center"],[3,"src","alt","title","error"],[1,"home-assembly-constituncy-items-detail","py-2",3,"routerLink"],[1,"text-blue","mb-1"],[1,"m-0","mla-detail-desination"],[1,"m-0","text-muted"],[1,"mp-mla-items-info-footer"],["class","d-block w-100 mb-1 text-white",3,"href",4,"ngIf"],["class","d-block w-100 text-white",3,"href",4,"ngIf"],[1,"d-block","w-100","mb-1","text-white",3,"href"],[1,"bi","bi-envelope"],[1,"d-block","w-100","text-white",3,"href"],[1,"bi","bi-telephone"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"div",3),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Tc(7,Vi,3,4,"a",4),m.Zb(),m.Tc(8,Oi,14,13,"div",5),m.Tc(9,Ai,1,0,"app-mini-loader",6),m.Tc(10,Wi,1,0,"app-no-records",6),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("home-assembly-constituncy ",t.BackGroundClass,""),m.Hb(5),m.Xc(" ",m.oc(6,8,"AssemblyConstituency_txt")," "),m.Hb(2),m.tc("ngIf",t.model&&t.model.length),m.Hb(1),m.tc("ngForOf",t.model),m.Hb(1),m.tc("ngIf",!t.model),m.Hb(1),m.tc("ngIf",t.model&&0==t.model.length))},directives:[i.n,i.m,h.d,h.c,v.a,C.a],pipes:[c.c],styles:[""]}),e})();function Gi(e,t){1&e&&m.Wb(0,"i",15)}function Fi(e,t){1&e&&m.Wb(0,"i",16)}const Ri=function(e){return{cursor:e}};function Xi(e,t){if(1&e&&(m.ac(0,"div",7),m.ac(1,"div",8),m.ac(2,"a",9),m.Wb(3,"img",10),m.Zb(),m.ac(4,"div",11),m.ac(5,"a",12),m.Tc(6,Gi,1,0,"i",13),m.Tc(7,Fi,1,0,"i",14),m.Vc(8),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.Hb(2),m.tc("ngStyle",m.Ec(10,Ri,e.AttachmentPath||e.URL?"cursor":"initial")),m.Ib("href",e.AttachmentPath||e.URL||null,m.Pc),m.Hb(1),m.tc("src",e.IconPath||"assets/images/departmental_galley.png",m.Pc)("alt",e.Subject)("title",e.Subject),m.Hb(2),m.tc("ngStyle",m.Ec(12,Ri,e.AttachmentPath||e.URL?"cursor":"initial")),m.Ib("href",e.AttachmentPath||e.URL||null,m.Pc),m.Hb(1),m.tc("ngIf",e.AttachmentPath),m.Hb(1),m.tc("ngIf",e.URL&&!e.AttachmentPath),m.Hb(1),m.Xc(" ",e.Subject," ")}}function Bi(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ui(e,t){1&e&&m.Wb(0,"app-no-records")}let zi=(()=>{class e{constructor(e,t,n){this._dptDistrictWebsiteService=e,this._commonService=t,this.translate=n,this.dataType=xi.a}ngOnInit(){let e=this._commonService.GetWebDistDeptCode();this.getDeptAssetsIconAndList(e)}getDeptAssetsIconAndList(e){this._dptDistrictWebsiteService.GetDeptAssetsIconAndList(e).subscribe(e=>{e.IsSuccess?(this.iconData=[],(e.Data.Data||[]).forEach(e=>{e.DataTypeCode===this.dataType.Assets_DataType_Icon&&this.iconData.push(e)}),setTimeout(()=>{this.IconSlider()},50)):this.iconData=[]},()=>{this.iconData=[]})}IconSlider(){$(".slider-items-6").slick({dots:this.iconData.length>6,infinite:!0,autoplay:!0,autoplaySpeed:4e3,slidesToShow:6,slidesToScroll:6,responsive:[{breakpoint:1400,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:1350,settings:{slidesToShow:5,slidesToScroll:5}},{breakpoint:1200,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:595,settings:{slidesToShow:1,slidesToScroll:1}}]})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(p.a),m.Vb(g.a),m.Vb(c.d))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-assets-icons"]],inputs:{BackGroundClass:"BackGroundClass"},decls:9,vars:6,consts:[[1,"container-fluid"],[1,"row"],[1,"col-lg-12","col-xl-12","page-budget-left-aside"],[1,"budget-doc-bg","d-flex","align-items-center","justify-content-center"],[1,"row","slider-items-6","container","p-0","m-0"],["class","budget-doc-items",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"budget-doc-items"],[1,"budget-doc"],["target","_blank",1,"budget-doc-img","d-flex","align-items-center","justify-content-center",3,"ngStyle"],[3,"src","alt","title"],[1,"budget-doc-btn"],["target","_blank",1,"btn",3,"ngStyle"],["class","bi bi-file-earmark-pdf mr-2",4,"ngIf"],["class","bi bi-globe mr-2",4,"ngIf"],[1,"bi","bi-file-earmark-pdf","mr-2"],[1,"bi","bi-globe","mr-2"]],template:function(e,t){1&e&&(m.ac(0,"div"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"section",3),m.ac(5,"div",4),m.Tc(6,Xi,9,14,"div",5),m.Zb(),m.Tc(7,Bi,1,0,"app-mini-loader",6),m.Tc(8,Ui,1,0,"app-no-records",6),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("py-3 mb-5 ",t.BackGroundClass," impo-updates"),m.Hb(6),m.tc("ngForOf",t.iconData),m.Hb(1),m.tc("ngIf",!t.iconData),m.Hb(1),m.tc("ngIf",t.iconData&&0==t.iconData.length))},directives:[i.m,i.n,i.o,v.a,C.a],styles:[".budget-doc-img[_ngcontent-%COMP%]{height:150px;width:150px;background:#fff;border-radius:20px;margin:auto;outline:4px double #e5e5e5;outline-offset:-2px}.budget-doc-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:130px}.budget-doc-btn[_ngcontent-%COMP%]{text-align:center;margin-top:25px}.budget-doc-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:25px;width:25px;margin-right:6px}.budget-doc-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-align:start;align-items:start;-webkit-box-pack:center;justify-content:center;margin:auto;background:#ab3566;font-size:120%;font-weight:400;color:#fff;text-transform:uppercase;padding:5px;border:2px solid transparent;border-radius:10px;box-shadow:0 0 11px #5b6fdd;min-height:64px}.budget-doc-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:relative;top:5px}.budget-doc-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{background:#151d4c}.budget-doc-bg[_ngcontent-%COMP%]{margin-bottom:20px}.impo-updates[_ngcontent-%COMP%] .slick-slide[_ngcontent-%COMP%]{margin:0 10px}"]}),e})();function ji(e,t){if(1&e){const e=m.bc();m.ac(0,"button",20),m.ic("click",(function(){m.Mc(e);const t=m.mc();return t.openInNewTab("/pages/general/images/"+t.redirectUrlDeptCode+"/"+(null==t.achievementEnum?null:t.achievementEnum.PostersCode))})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"ViewAll_txt")," "))}function $i(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",21),m.ac(2,"a",22),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.ac(3,"img",23),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc();m.Hb(1),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(1),m.uc("href",e.ImagePath,m.Pc),m.Hb(1),m.uc("src",e.ImagePath,m.Pc),m.uc("alt","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi)}}function Yi(e,t){1&e&&m.Wb(0,"app-mini-loader",24)}function qi(e,t){1&e&&m.Wb(0,"app-no-records",24)}function Ji(e,t){if(1&e){const e=m.bc();m.ac(0,"button",20),m.ic("click",(function(){return m.Mc(e),m.mc().viewAllVideos()})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"ViewAll_txt")," "))}function Ki(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"a",32),m.ac(2,"video",33),m.ic("playing",(function(t){return m.Mc(e),m.mc(3).onMediaPlaying(t,!1)})),m.Wb(3,"source",34),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc(2).$implicit;m.Hb(1),m.uc("href",e.Url,m.Pc),m.Hb(1),m.uc("poster",e.ThumbnailPath,m.Pc),m.Hb(1),m.uc("src",e.Url,m.Pc),m.vc("type","video/",e.Url.split(".")[e.Url.split(".").length-1],"")}}function Qi(e,t){if(1&e&&(m.ac(0,"a",32),m.Wb(1,"iframe",35),m.Zb()),2&e){const e=m.mc(2).$implicit,t=m.mc();m.tc("href",e.SafeUrl,m.Pc),m.Hb(1),m.uc("title","hi"==t.translate.currentLang?e.AchievementHindi:e.Achievement),m.tc("src",e.SafeUrl,m.Oc)}}function ea(e,t){if(1&e&&(m.ac(0,"div",26),m.ac(1,"div",27),m.ac(2,"div",28),m.Tc(3,Ki,4,4,"ng-container",29),m.Tc(4,Qi,2,3,"ng-template",null,30,m.Uc),m.Zb(),m.ac(6,"div",31),m.Vc(7),m.nc(8,"slice"),m.nc(9,"slice"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.Kc(5),t=m.mc().$implicit,n=m.mc();m.uc("title","en"==n.translate.currentLang?t.Achievement:t.AchievementHindi),m.Hb(3),m.tc("ngIf",1==n.isExtenstionUrl(t.Url))("ngIfElse",e),m.Hb(3),m.uc("title","en"==n.translate.currentLang?t.Achievement:t.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==n.translate.currentLang?t.AchievementHindi.length>60?m.qc(8,5,t.AchievementHindi,0,60)+"...":t.AchievementHindi:t.Achievement.length>60?m.qc(9,9,t.Achievement,0,60)+"...":t.Achievement," ")}}function ta(e,t){if(1&e&&(m.Yb(0),m.Tc(1,ea,10,13,"div",25),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",e.Url&&(null==e.Url?null:e.Url.length)>0||e.YoutubeURL)}}function na(e,t){1&e&&m.Wb(0,"app-mini-loader",24)}function ia(e,t){1&e&&m.Wb(0,"app-no-records",24)}function aa(e,t){if(1&e){const e=m.bc();m.ac(0,"button",20),m.ic("click",(function(){m.Mc(e);const t=m.mc();return t.openInNewTab("/pages/general/images/"+t.redirectUrlDeptCode+"/"+(null==t.achievementEnum?null:t.achievementEnum.AdvertisementCode))})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"ViewAll_txt")," "))}function ca(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",21),m.ac(2,"a",22),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.ac(3,"img",36),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc();m.Hb(1),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(1),m.uc("href",e.ImagePath,m.Pc),m.Hb(1),m.uc("src",e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("alt","en"==n.translate.currentLang?e.Achievement:e.AchievementHindi)}}function oa(e,t){1&e&&m.Wb(0,"app-mini-loader",24)}function la(e,t){1&e&&m.Wb(0,"app-no-records",24)}function ra(e,t){if(1&e){const e=m.bc();m.ac(0,"button",20),m.ic("click",(function(){m.Mc(e);const t=m.mc();return t.openInNewTab("/pages/general/audio/"+t.redirectUrlDeptCode+"/"+(null==t.achievementEnum?null:t.achievementEnum.AudioCode))})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"ViewAll_txt")," "))}function sa(e,t){if(1&e){const e=m.bc();m.ac(0,"div",26),m.ac(1,"div",37),m.Wb(2,"img",38),m.ac(3,"audio",39),m.ic("playing",(function(t){return m.Mc(e),m.mc(2).onMediaPlaying(t,!0)})),m.Wb(4,"source",34),m.Zb(),m.ac(5,"div",31),m.Vc(6),m.nc(7,"slice"),m.nc(8,"slice"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc();m.uc("title","en"==t.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(4),m.uc("src",e.Url,m.Pc),m.vc("type","audio/",e.Url.split(".")[e.Url.split(".").length-1],""),m.Hb(1),m.uc("title","en"==t.translate.currentLang?e.Achievement:e.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.AchievementHindi.length>60?m.qc(7,5,e.AchievementHindi,0,60)+"...":e.AchievementHindi:e.Achievement.length>60?m.qc(8,9,e.Achievement,0,60)+"...":e.Achievement," ")}}function da(e,t){if(1&e&&(m.Yb(0),m.Tc(1,sa,9,13,"div",25),m.Xb()),2&e){const e=t.$implicit;m.Hb(1),m.tc("ngIf",null!=e.Url&&(null==e.Url?null:e.Url.length)>0)}}function ma(e,t){1&e&&m.Wb(0,"app-mini-loader",24)}function ua(e,t){1&e&&m.Wb(0,"app-no-records",24)}let ba=(()=>{class e{constructor(e,t,n,i,a){this.achievementAwardService=e,this.translate=t,this.sanitizer=n,this._router=i,this._commonService=a,this.DepartmentCode=0,this.posterModelCount=0,this.advertisementModelCount=0,this.audioModelCount=0,this.videoModelCount=0,this.redirectUrlDeptCode=0,this.achievementEnum=o.a,this.newsModel=[],this.DateFormat=d.a.DateFormat,this.onPause=new m.q}ngOnInit(){this.GetAllData(),this.redirectUrlDeptCode=this._commonService.IsDistrict()?0:this.DepartmentCode}GetAllData(){this.GetPosterData(),this.GetAdvertisementData(),this.GetAudioData(),this.GetVideoData()}GetPosterData(){this.posterModel=void 0;let e=new l.b;e.IndexModel.OrderBy="AchievementDate",e.IndexModel.OrderByAsc=0,e.IndexModel.PageSize=3,e.IsImageRequired=!0,e.CategoryCode=this.achievementEnum.PostersCode,e.DepartmentCode=this._commonService.IsDistrict()?0:this.DepartmentCode,this.achievementAwardService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{var t;e.IsSuccess?(this.posterModelCount=null===(t=e.Data.Data)||void 0===t?void 0:t.length,this.posterModel=e.Data.Data.splice(0,2)):this.posterModel=[]},e=>{this.posterModel=[]})}GetVideoData(){this.videoModel=void 0;let e=new l.b;e.IndexModel.OrderBy="AchievementDate",e.IndexModel.OrderByAsc=0,e.IndexModel.PageSize=3,e.IsURLRequired=!0,e.CategoryCode=this.achievementEnum.VideoCode,this.DepartmentCode==vi.a.DirectorateOfPeaceNonViolence&&(e.CategoryCode=this.achievementEnum.RashtrapitaCode,e.SubCategoryCode=o.b.Rashtrapita_Video,e.IsURLRequired=!1),e.DepartmentCode=this._commonService.IsDistrict()?0:this.DepartmentCode,this.achievementAwardService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{var t;e.IsSuccess?(this.videoModelCount=null===(t=e.Data.Data)||void 0===t?void 0:t.length,this.videoModel=e.Data.Data.splice(0,2),this.videoModel&&this.videoModel.length>0&&this.videoModel.forEach(e=>{e.SafeUrl=this.SafeUrl(e.YoutubeURL||e.Url)})):this.videoModel=[]},e=>{this.videoModel=[]})}GetAudioData(){this.audioModel=void 0;let e=new l.b;e.IndexModel.OrderBy="Priority",e.IndexModel.OrderByAsc=1,e.IndexModel.PageSize=3,e.IsURLRequired=!0,e.CategoryCode=this.achievementEnum.AudioCode,e.DepartmentCode=this._commonService.IsDistrict()?0:this.DepartmentCode,this.achievementAwardService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{var t;e.IsSuccess?(this.audioModelCount=null===(t=e.Data.Data)||void 0===t?void 0:t.length,this.audioModel=e.Data.Data.splice(0,2)):this.audioModel=[]},e=>{this.audioModel=[]})}GetAdvertisementData(){this.advertisementModel=void 0;let e=new l.b;e.IndexModel.OrderBy="AchievementDate",e.IndexModel.OrderByAsc=0,e.IndexModel.PageSize=3,e.IsImageRequired=!0,e.CategoryCode=this.achievementEnum.AdvertisementCode,e.DepartmentCode=this._commonService.IsDistrict()?0:this.DepartmentCode,this.achievementAwardService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{var t;e.IsSuccess?(this.advertisementModelCount=null===(t=e.Data.Data)||void 0===t?void 0:t.length,this.advertisementModel=e.Data.Data.splice(0,2)):this.advertisementModel=[]},e=>{this.advertisementModel=[]})}isExtenstionUrl(e){return new RegExp(/\.\w{3,4}($|\?)/i).test(e)}SafeUrl(e){return new RegExp(/\/view(v|V?)/i).test(e)?(e=e.replace(/\/view(v|V?)/i,"/preview"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):(e=e.replace(/\/watch\?(v|V\?)=/g,"/embed/"),this.sanitizer.bypassSecurityTrustResourceUrl(e))}onMediaPlaying(e,t){var n,i;e.preventDefault(),null===(n=this.currentPlayingAudio)||void 0===n||n.pause(),null===(i=this.currentPlayingVideo)||void 0===i||i.pause(),t?(this.currentPlayingAudio=e.target,this.currentPlayingAudio.play()):(this.currentPlayingVideo=e.target,this.currentPlayingVideo.play()),this.mediaControlModel=new s.e,this.mediaControlModel.Item=e,this.mediaControlModel.IsAudio=t,this.onPause.emit(this.mediaControlModel)}GetMonth(e){var t,n,i;return null!=e?(null===(t=e)||void 0===t?void 0:t.includes("-"))?null===(n=e)||void 0===n?void 0:n.split("-")[1]:null===(i=e)||void 0===i?void 0:i.split("/")[1]:""}viewAllVideos(){var e;let t="";t=this.DepartmentCode==vi.a.DirectorateOfPeaceNonViolence?"/pages/general/video/"+this.redirectUrlDeptCode+"/"+this.achievementEnum.RashtrapitaCode+"/"+o.b.Rashtrapita_Video:"/pages/general/video/"+this.redirectUrlDeptCode+"/"+(null===(e=this.achievementEnum)||void 0===e?void 0:e.VideoCode),this.openInNewTab(t)}openInNewTab(e){this._router.navigate([]).then(t=>{window.open(d.a.isHashUrl?`#${e}`:e,"_blank")})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.b),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-awareness-material"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},outputs:{onPause:"onPause"},decls:56,vars:35,consts:[[1,"container-fluid"],[1,"section-title","text-center","mb-5"],[1,"row"],[1,"col-lg-5","mb-4"],[1,"home-awareness-material-items"],[1,"d-flex","align-items-center","justify-content-between","mb-3","home-awareness-material-items-title"],[1,"section-title","mb-0"],["class","btn btn-round btn-theme btn-yellow",3,"click",4,"ngIf"],[1,"photo-gallery","home-new-poster"],[1,"photos"],[1,"d-flex","flex-row","flex-wrap","my-flex-container","justify-content-center","photos","w-100"],[4,"ngFor","ngForOf"],["color","#fff",4,"ngIf"],[1,"col-lg-7","mb-4"],[1,"col-lg-5"],[1,"d-flex","align-items-center","justify-content-between","mb-4","home-awareness-material-items-title"],[3,"ngClass"],[1,"photo-gallery"],[1,"row","photos"],[1,"col-lg-7"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"click"],[1,"photo-gallery-bx","align-items-center","d-flex","justify-content-center",3,"title"],["data-lightbox","photos",3,"href","error"],[1,"img-fluid","rounded",3,"src","alt","title","error"],["color","#fff"],["class","col-xl-6 col-lg-6 col-sm-6 col-12 mb-0",3,"title",4,"ngIf"],[1,"col-xl-6","col-lg-6","col-sm-6","col-12","mb-0",3,"title"],[1,"audio-card","video-card-new","text-center"],[1,"embed-responsive","embed-responsive-21by9"],[4,"ngIf","ngIfElse"],["iframVideo",""],[1,"av-caption",3,"title"],["target","_blank",3,"href"],["id","my_video_1","width","100%","height","100%","controls","","preload","none","data-setup",'{ "aspectRatio":"100%:100%", "playbackRates": [1, 1.5, 2] }',1,"embed-responsive-item",3,"poster","playing"],[3,"src","type"],["width","1280","height","720","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen","",3,"src","title"],[1,"img-fluid","rounded",3,"src","title","alt","error"],[1,"audio-card","text-center"],["src","assets/images/high-volume.png","alt","CMO",1,"img-fluid"],["preload","none","controls","",1,"w-100",3,"playing"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"div",2),m.ac(6,"div",3),m.ac(7,"div",4),m.ac(8,"div",5),m.ac(9,"h1",6),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.Tc(12,ji,3,3,"button",7),m.Zb(),m.ac(13,"div",8),m.ac(14,"div",9),m.ac(15,"div",10),m.Tc(16,$i,4,5,"ng-container",11),m.Tc(17,Yi,1,0,"app-mini-loader",12),m.Tc(18,qi,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(19,"div",13),m.ac(20,"div",4),m.ac(21,"div",5),m.ac(22,"h1",6),m.Vc(23),m.nc(24,"translate"),m.Zb(),m.Tc(25,Ji,3,3,"button",7),m.Zb(),m.ac(26,"div",2),m.Tc(27,ta,2,1,"ng-container",11),m.Tc(28,na,1,0,"app-mini-loader",12),m.Tc(29,ia,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.ac(30,"div",14),m.ac(31,"div",4),m.ac(32,"div",15),m.ac(33,"h1",6),m.Vc(34),m.nc(35,"translate"),m.Zb(),m.Tc(36,aa,3,3,"button",7),m.Zb(),m.ac(37,"div",2),m.ac(38,"div",16),m.ac(39,"div",17),m.ac(40,"div",18),m.ac(41,"div",10),m.Tc(42,ca,4,5,"ng-container",11),m.Tc(43,oa,1,0,"app-mini-loader",12),m.Tc(44,la,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(45,"div",19),m.ac(46,"div",4),m.ac(47,"div",15),m.ac(48,"h1",6),m.Vc(49),m.nc(50,"translate"),m.Zb(),m.Tc(51,ra,3,3,"button",7),m.Zb(),m.ac(52,"div",2),m.Tc(53,da,2,1,"ng-container",11),m.Tc(54,ma,1,0,"app-mini-loader",12),m.Tc(55,ua,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("awareness-material ",t.BackGroundClass,""),m.Hb(3),m.Wc(m.oc(4,25,"AwarenessMaterial_txt")),m.Hb(7),m.Xc(" ",m.oc(11,27,"Posters_txt"),""),m.Hb(2),m.tc("ngIf",t.posterModelCount>2),m.Hb(4),m.tc("ngForOf",t.posterModel),m.Hb(1),m.tc("ngIf",!t.posterModel),m.Hb(1),m.tc("ngIf",t.posterModel&&0==t.posterModel.length),m.Hb(5),m.Wc(m.oc(24,29,"Video_txt")),m.Hb(2),m.tc("ngIf",t.videoModelCount>2),m.Hb(2),m.tc("ngForOf",t.videoModel),m.Hb(1),m.tc("ngIf",!t.videoModel),m.Hb(1),m.tc("ngIf",t.videoModel&&0==t.videoModel.length),m.Hb(5),m.Xc(" ",m.oc(35,31,"Advertisement_txt")," "),m.Hb(2),m.tc("ngIf",t.advertisementModelCount>2),m.Hb(2),m.tc("ngClass",(null==t.advertisementModel?null:t.advertisementModel.length)>0&&(null==t.newsModel?null:t.newsModel.length)>0?"col-lg-6 col-md-6":"col-lg-12 col-md-12"),m.Hb(4),m.tc("ngForOf",t.advertisementModel),m.Hb(1),m.tc("ngIf",!t.advertisementModel),m.Hb(1),m.tc("ngIf",t.advertisementModel&&0==t.advertisementModel.length),m.Hb(5),m.Wc(m.oc(50,33,"Audio_txt")),m.Hb(2),m.tc("ngIf",t.audioModelCount>2),m.Hb(2),m.tc("ngForOf",t.audioModel),m.Hb(1),m.tc("ngIf",!t.audioModel),m.Hb(1),m.tc("ngIf",t.audioModel&&0==t.audioModel.length))},directives:[i.n,i.m,i.l,v.a,C.a],pipes:[c.c,i.u],styles:[".photo-gallery-bx[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:240px}.photo-gallery-bx[_ngcontent-%COMP%]{width:45%}section.awareness-material[_ngcontent-%COMP%] h1.section-title[_ngcontent-%COMP%]{color:#fff;font-size:160%;font-weight:400}.audio-card[_ngcontent-%COMP%]{min-height:280px}"]}),e})();var ga=n("AeFW"),ha=n("ylkv");function pa(e,t){if(1&e&&(m.ac(0,"a",8),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.tc("href",e.Url,m.Pc),m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.AchievementHindi:e.Achievement," ")}}function fa(e,t){if(1&e&&(m.ac(0,"a",8),m.Vc(1),m.Zb()),2&e){const e=m.mc(2).$implicit,t=m.mc(2);m.tc("href",e.PdfFIleName,m.Pc),m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.AchievementHindi:e.Achievement," ")}}function va(e,t){if(1&e&&m.Tc(0,fa,2,2,"a",5),2&e){const e=m.mc().$implicit,t=m.Kc(5);m.tc("ngIf",e.PdfFIleName)("ngIfElse",t)}}function Ca(e,t){if(1&e&&(m.ac(0,"a",9),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.AchievementHindi:e.Achievement," ")}}function Ha(e,t){if(1&e&&(m.ac(0,"li"),m.Tc(1,pa,2,2,"a",5),m.Tc(2,va,1,2,"ng-template",null,6,m.Uc),m.Tc(4,Ca,2,1,"ng-template",null,7,m.Uc),m.Zb()),2&e){const e=t.$implicit,n=m.Kc(3);m.Hb(1),m.tc("ngIf",e.Url)("ngIfElse",n)}}function Da(e,t){if(1&e&&(m.ac(0,"section",1),m.ac(1,"div",2),m.Vc(2,"Announcements"),m.Zb(),m.ac(3,"marquee",3),m.ac(4,"ul"),m.Tc(5,Ha,6,2,"li",4),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(5),m.tc("ngForOf",e.advertisementModel)}}let Ma=(()=>{class e{constructor(e,t,n){this._achievementService=e,this.translate=t,this._commonService=n,this.advertisementModel=[]}ngOnInit(){this.GetAchievementListBySearchFilter()}GetAchievementListBySearchFilter(){let e=new l.b;e.IndexModel.OrderBy="ModifiedDate",e.IndexModel.OrderByAsc=0,e.CategoryCode=o.a.NewsTickerCode,e.DepartmentCode=this._commonService.GetWebDistDeptCode(),e.IndexModel.PageSize=5,e.IsBase64File=!1,e.IsLatestUpdate=-1,this._achievementService.GetAchievementListBySearchFilterData(e).subscribe(e=>{e.IsSuccess&&(this.advertisementModel=[],this.advertisementModel=e.Data.Data)},e=>{console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(c.d),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-marquee-section"]],decls:1,vars:1,consts:[["class","home-marquee text-center",4,"ngIf"],[1,"home-marquee","text-center"],[1,"home-marquee-title"],["onmouseover","this.stop();","onmouseout","this.start();","scrollamount","5"],[4,"ngFor","ngForOf"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["itemPDF",""],["itemWithoutLink",""],["target","_blank",3,"href"],["href","javascript:void(0)"]],template:function(e,t){1&e&&m.Tc(0,Da,6,1,"section",0),2&e&&m.tc("ngIf",t.advertisementModel.length>0)},directives:[i.n,i.m],styles:['section.home-marquee[_ngcontent-%COMP%]{background:#d90e00;padding:5px;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}section.home-marquee[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;margin:0 20px}section.home-marquee[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;position:relative}section.home-marquee[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{background:hsla(0,0%,100%,.6);height:10px;width:10px;position:absolute;content:"";border-radius:100%;top:3px;left:-15px}']}),e})(),Ia=(()=>{class e{constructor(e){this.sanitizer=e}transform(e){if(e)return this.sanitizer.bypassSecurityTrustResourceUrl(e)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(b.b))},e.\u0275pipe=m.Ub({name:"safeUrl",type:e,pure:!0}),e})();function Za(e,t){1&e&&m.Wb(0,"div",18)}function Ta(e,t){if(1&e&&(m.ac(0,"div",18),m.ac(1,"a",19),m.Wb(2,"img",20),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.uc("alt","hi"==e.translate.currentLang?"\u0935\u0902\u0926\u0947-\u0917\u0902\u0917\u093e":"vande-ganga"),m.uc("title","hi"==e.translate.currentLang?"\u0935\u0902\u0926\u0947-\u0917\u0902\u0917\u093e":"vande-ganga")}}function ya(e,t){if(1&e){const e=m.bc();m.ac(0,"a",26),m.ac(1,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/slider-default.png")})),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2);m.tc("href",null==e?null:e.Url,m.Pc),m.Hb(1),m.uc("title","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.tc("src",e.ImagePath,m.Pc)}}function xa(e,t){if(1&e){const e=m.bc();m.ac(0,"a"),m.ac(1,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/slider-default.png")})),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.uc("title","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==t.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.tc("src",e.ImagePath,m.Pc)}}function Pa(e,t){if(1&e&&(m.ac(0,"div",23),m.Tc(1,ya,2,4,"a",24),m.Tc(2,xa,2,3,"a",25),m.Zb()),2&e){const e=t.$implicit;m.Mb("active",0==t.index),m.Hb(1),m.tc("ngIf",null==e?null:e.Url),m.Hb(1),m.tc("ngIf",!(null!=e&&e.Url))}}function Sa(e,t){if(1&e&&(m.ac(0,"div",21),m.Tc(1,Pa,3,4,"div",22),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",e.resultModel)}}function _a(e,t){if(1&e){const e=m.bc();m.ac(0,"div",21),m.ac(1,"div",28),m.ac(2,"img",27),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/slider-default.png")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("title",m.oc(3,3,"JankalyanPortal_txt")),m.uc("alt",m.oc(4,5,"JankalyanPortal_txt")),m.tc("src",e.dtpModel&&e.dtpModel.Admin_DefaultBanner?e.dtpModel.Admin_DefaultBanner:"assets/images/slider-default.png",m.Pc)}}function wa(e,t){if(1&e&&(m.Wb(0,"iframe",31),m.nc(1,"safeUrl")),2&e){const e=m.mc(2);m.tc("src",m.oc(1,1,e.rajAdvtSideBarUrl+"/"+((null==e.dtpModel?null:e.dtpModel.RajAdvtDataSourceCode)||0)),m.Oc)}}function La(e,t){if(1&e&&(m.Wb(0,"iframe",31),m.nc(1,"safeUrl")),2&e){const e=m.mc(2);m.tc("src",m.oc(1,1,e.rajAdvtSideBarUrl+"/0"),m.Oc)}}function Va(e,t){if(1&e&&(m.ac(0,"div",29),m.Tc(1,wa,2,3,"iframe",30),m.Tc(2,La,2,3,"iframe",30),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",null==e.dtpModel?null:e.dtpModel.IsSideBarDeptSpecific),m.Hb(1),m.tc("ngIf",!(null!=e.dtpModel&&e.dtpModel.IsSideBarDeptSpecific))}}function ka(e,t){if(1&e&&(m.ac(0,"div",32),m.ac(1,"div",33),m.ac(2,"div",34),m.ac(3,"h3"),m.Vc(4),m.Zb(),m.Zb(),m.ac(5,"div",35),m.Vc(6),m.Zb(),m.ac(7,"div",36),m.Wb(8,"iframe",37),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(4),m.Xc(" ",e.dtpModel.IFrameHeading,""),m.Hb(2),m.Xc(" ",e.dtpModel.IFrameDescription,""),m.Hb(2),m.tc("src",null==e.dtpModel?null:e.dtpModel.IFrameURLSafe,m.Oc)}}function Na(e,t){if(1&e&&(m.ac(0,"div"),m.ac(1,"div",38),m.ac(2,"div",36),m.ac(3,"div",39),m.ac(4,"a",40),m.ac(5,"div",41),m.Wb(6,"img",42),m.nc(7,"translate"),m.nc(8,"translate"),m.Zb(),m.ac(9,"div",43),m.ac(10,"span"),m.Vc(11),m.Zb(),m.Vc(12),m.nc(13,"translate"),m.Wb(14,"i",44),m.Zb(),m.Zb(),m.ac(15,"a",40),m.ac(16,"div",41),m.Wb(17,"img",45),m.nc(18,"translate"),m.nc(19,"translate"),m.Zb(),m.ac(20,"div",43),m.ac(21,"span"),m.Vc(22),m.Zb(),m.Vc(23),m.nc(24,"translate"),m.Wb(25,"i",44),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("home-page-ent-number ",e.BackGroundClass," text-center"),m.Hb(4),m.vc("routerLink","/scheme/",e.DepartmentCode,""),m.Hb(2),m.uc("title",m.oc(7,13,"Schemes_txt")),m.uc("alt",m.oc(8,15,"Schemes_txt")),m.Hb(5),m.Xc(" ",null==e.quickLinksModel[0]?null:e.quickLinksModel[0].TotalCount," "),m.Hb(1),m.Xc(" ",m.oc(13,17,"Schemes_txt")," "),m.Hb(3),m.vc("routerLink","/services/",e.DepartmentCode,""),m.Hb(2),m.uc("title",m.oc(18,19,"GovServices_txt")),m.uc("alt",m.oc(19,21,"GovServices_txt")),m.Hb(5),m.Xc(" ",null==e.quickLinksModel[1]?null:e.quickLinksModel[1].TotalCount," "),m.Hb(1),m.Xc(" ",m.oc(24,23,"GovServices_txt")," ")}}let Oa=(()=>{class e{constructor(e,t,n,i,a,c){this.sanitizer=e,this.translate=t,this._achivementService=n,this._dptDistrictWebsiteService=i,this._commonService=a,this._departmentService=c,this.DepartmentCode=0,this.indexModel=new s.d,this.resultModel=[],this.quickLinksModel=[],this.enumdata=xi.b,this.sliderPaused=!1,this.defaultBannerUrl="",this.rajAdvtSideBarUrl=d.a.AdvertisementUrl+"#/side-bar",this.isShowIconOnBanner=!1,this.deptCodes=[371,370,369,368,367,365,364,282,281,279,245,228,1006,1005,1855,323,280,372,208,384,383,173,125],this.defaultBannerUrl=ga.a.DefaultBannerUrl}ngOnInit(){this._departmentService.getDepartmentDetail().subscribe(e=>{e&&(this.dtpModel=e)}),this.GetBannerData(),this.GetQuickLinksData(),console.log(this.BackGroundClass),this.deptCode=this._commonService.GetWebDistDeptCode(),this.deptCodes.findIndex(e=>e==this.deptCode)}GetBannerData(){let e=new l.b;e.IndexModel.OrderBy="Priority",e.IndexModel.OrderByAsc=1,e.CategoryCode=o.a.WebHomePageImageCode,e.DepartmentCode=this.DepartmentCode,e.IndexModel.PageSize=101,e.IsBase64File=!1,this._achivementService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{e.IsSuccess&&(this.resultModel=[],this.resultModel=e.Data.Data,0==this.resultModel.length&&(this.dtpModel=new ha.b,this._departmentService.getDepartmentDetail().subscribe(e=>{this.dtpModel=e})),this.addCarousel())},e=>{console.error(e)})}sanitizeImageUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}GetQuickLinksData(){this._dptDistrictWebsiteService.GetDepartemntWebsiteQuickLink(this.DepartmentCode).subscribe(e=>{e.IsSuccess&&(this.quickLinksModel=[],this.quickLinksModel=e.Data)},e=>{console.error(e)})}addCarousel(){$("#HomeSlider").carousel({interval:4e3,cycle:!0,pause:!1})}playPause(e){var t=this.sliderPaused?"cycle":"pause";this.sliderPaused=!this.sliderPaused,$("#HomeSlider").carousel(t),$("#playPausebtnIcon").toggleClass("fa-play fa-pause")}onViewFile(e){let t=new s.a;t.Title="PDF file",t.TitleHindi="\u092a\u0940\u0921\u0940\u090f\u092b \u092b\u093e\u0907\u0932",t.Url=e,t.FileType="PDF",localStorage.setItem("content-data",JSON.stringify(t)),window.open("/pdf-viewer")}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(b.b),m.Vb(c.d),m.Vb(u.a),m.Vb(p.a),m.Vb(g.a),m.Vb(In.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-banner"]],inputs:{DepartmentData:"DepartmentData",DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},decls:26,vars:10,consts:[[1,"container-fluid","p-0"],[1,"row","m-0"],[1,"col-slider"],["class","col-slider-2",4,"ngIf"],["id","HomeSlider","data-ride","carousel",1,"carousel","homepage-slider","slide","carousel-fade","m-0"],["HomeSlider",""],["id","toggleCarousel",1,"slider-act-btn",3,"click"],["id","playPausebtnIcon",1,"fa","fa-pause"],["class","carousel-inner",4,"ngIf"],["href","#HomeSlider","role","button","data-slide","prev",1,"carousel-control-prev","carousel-control-icon"],["aria-hidden","true"],[1,"fas","fa-chevron-left"],[1,"sr-only"],["href","#HomeSlider","role","button","data-slide","next",1,"carousel-control-next","carousel-control-icon"],[1,"fas","fa-chevron-right"],["class","col-advertisement",4,"ngIf"],["class","container pt-3 pb-3",4,"ngIf"],[3,"class",4,"ngIf"],[1,"col-slider-2"],["target","_blank","href","https://water.rajasthan.gov.in/wr/#/pages/department-page/2937",1,"r-raj"],["src","assets/images/vande-ganga-logo.jpeg",1,"zoom-in-zoom-out","logo-vande-ganga",3,"alt","title"],[1,"carousel-inner"],["class","carousel-item",3,"active",4,"ngFor","ngForOf"],[1,"carousel-item"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[3,"src","title","alt","error"],[1,"carousel-item","active"],[1,"col-advertisement"],["width","100%","height","100%",3,"src",4,"ngIf"],["width","100%","height","100%",3,"src"],[1,"container","pt-3","pb-3"],[1,"row"],[1,"col-md-12","advertisement-block"],[1,"col-md-12","pb-3"],[1,"col-md-12"],["width","100%",2,"min-height","500px",3,"src"],[1,"row","w-100"],[1,"home-page-ent-number-items"],[3,"routerLink"],[1,"home-page-ent-number-items-img"],["src","assets/images/svg/scheme.svg",1,"img-fluid",3,"title","alt"],[1,"home-page-ent-number-info"],[1,"fa","fa-chevron-right"],["src","assets/images/svg/services.svg",1,"img-fluid",3,"title","alt"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Tc(4,Za,1,0,"div",3),m.Tc(5,Ta,3,2,"div",3),m.ac(6,"div",4,5),m.ac(8,"button",6),m.ic("click",(function(e){return t.playPause(e)})),m.Wb(9,"i",7),m.Zb(),m.Tc(10,Sa,2,1,"div",8),m.Tc(11,_a,5,7,"div",8),m.ac(12,"a",9),m.ac(13,"span",10),m.Wb(14,"i",11),m.Zb(),m.ac(15,"span",12),m.Vc(16,"Previous"),m.Zb(),m.Zb(),m.ac(17,"a",13),m.ac(18,"span",10),m.Wb(19,"i",14),m.Zb(),m.ac(20,"span",12),m.Vc(21,"Next"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Tc(22,Va,3,2,"div",15),m.Zb(),m.Zb(),m.Zb(),m.Tc(23,ka,9,3,"div",16),m.Tc(24,Na,26,25,"div",17),m.Wb(25,"app-ddw-marquee-section")),2&e&&(m.Lb("home-banner-slider ",t.BackGroundClass,""),m.Hb(4),m.tc("ngIf",t.isShowIconOnBanner),m.Hb(1),m.tc("ngIf",142==t.deptCode),m.Hb(5),m.tc("ngIf",(null==t.resultModel?null:t.resultModel.length)>0),m.Hb(1),m.tc("ngIf",0==(null==t.resultModel?null:t.resultModel.length)),m.Hb(11),m.tc("ngIf",t.dtpModel&&(null==t.dtpModel?null:t.dtpModel.IsDisplaySideNewsWindow)),m.Hb(1),m.tc("ngIf",t.dtpModel.IsDisplayIFrame&&null!=(null==t.dtpModel?null:t.dtpModel.IFrameURL)),m.Hb(1),m.tc("ngIf",t.enumdata.Department==(null==t.DepartmentData?null:t.DepartmentData.DepartmentDistrictCode)))},directives:[i.n,Ma,i.m,h.d],pipes:[c.c,Ia],styles:[".col-slider-2[_ngcontent-%COMP%]{position:absolute;z-index:9999;left:50px;margin-top:50px}.col-slider[_ngcontent-%COMP%]{position:relative}.col-slider-2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px;margin:auto;max-height:300px;border-radius:20px}.banner-icon[_ngcontent-%COMP%]{display:grid;gap:50px}.logo-vande-ganga[_ngcontent-%COMP%]{width:150px;height:auto;position:absolute;top:0!important;left:5px;z-index:1000;border:2px solid #0378d0}@media screen and (max-width:767px){.zoom-in-zoom-out[_ngcontent-%COMP%]{max-width:141px!important}.banner-icon[_ngcontent-%COMP%]{gap:10px}}@media screen and (max-width:400px){.col-slider-2[_ngcontent-%COMP%]{margin-top:15px}}"]}),e})();var Aa=n("tDDI"),Wa=n("6a0g");class Ea extends s.d{}var Ga=n("PaCI"),Fa=n("MLVi");let Ra=(()=>{class e{constructor(e){this._baseService=e}GetDepartmentAchivement_DeptCatWiseList(e){return this._baseService.post(r.a.AchievementDepartmentCoutWiseListUrl,e)}GetDepartmentAchivement_DeptCatWiseCount(e=0){return this._baseService.get(r.a.AchievementDepartmentCoutListUrl+e)}}return e.\u0275fac=function(t){return new(t||e)(m.ec(Fa.a))},e.\u0275prov=m.Rb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Xa(e,t){1&e&&(m.ac(0,"li",20),m.ac(1,"a",21),m.Wb(2,"img",22),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("title",m.oc(3,3,"Achievement_txt")),m.uc("alt",m.oc(4,5,"Achievement_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"Achievement_txt")," "))}function Ba(e,t){1&e&&(m.ac(0,"li",20),m.ac(1,"a",23),m.Wb(2,"img",24),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("title",m.oc(3,3,"GovtInitiatives_txt")),m.uc("alt",m.oc(4,5,"GovtInitiatives_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"GovtInitiatives_txt")," "))}function Ua(e,t){1&e&&(m.ac(0,"li",20),m.ac(1,"a",25),m.Wb(2,"img",26),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("title",m.oc(3,3,"BudgetAnnouncement_txt")),m.uc("alt",m.oc(4,5,"BudgetAnnouncement_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"BudgetAnnouncement_txt")," "))}function za(e,t){1&e&&(m.ac(0,"li",20),m.ac(1,"a",27),m.Wb(2,"img",28),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("title",m.oc(3,3,"CabinetDecisions_txt")),m.uc("alt",m.oc(4,5,"CabinetDecisions_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"CabinetDecisions_txt")," "))}function ja(e,t){1&e&&(m.ac(0,"li",20),m.ac(1,"a",29),m.Wb(2,"img",30),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("title",m.oc(3,3,"JanGhoshnaPatra_txt")),m.uc("alt",m.oc(4,5,"JanGhoshnaPatra_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"JanGhoshnaPatra_txt")," "))}function $a(e,t){if(1&e){const e=m.bc();m.ac(0,"a",39),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).getReadMoreData(t.AchievementHindi?t.AchievementHindi?t.AchievementHindi:t.Achievement:t.Achievement?t.Achievement:t.AchievementHindi)})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Readmore")," "))}function Ya(e,t){if(1&e&&(m.ac(0,"div",34),m.ac(1,"div",35),m.ac(2,"div",36),m.Wb(3,"img",22),m.nc(4,"translate"),m.nc(5,"translate"),m.Zb(),m.ac(6,"div",37),m.ac(7,"h5"),m.ac(8,"pre",19),m.nc(9,"slice"),m.nc(10,"slice"),m.nc(11,"slice"),m.nc(12,"slice"),m.Vc(13," "),m.Zb(),m.Tc(14,$a,3,3,"a",38),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("title",m.oc(4,4,"Achievement_txt")),m.uc("alt",m.oc(5,6,"Achievement_txt")),m.Hb(5),m.tc("innerHTML","hi"==n.translate.currentLang?((null==e.AchievementHindi?null:e.AchievementHindi.length)>500?(m.qc(9,8,e.AchievementHindi,0,500),1):e.AchievementHindi)?e.AchievementHindi:(null==e.Achievement?null:e.Achievement.length)>500?m.qc(10,12,e.Achievement,0,500)+"...":e.Achievement:((null==e.Achievement?null:e.Achievement.length)>500?(m.qc(11,16,e.Achievement,0,500),1):e.Achievement)?e.Achievement:(null==e.AchievementHindi?null:e.AchievementHindi.length)>500?m.qc(12,20,e.AchievementHindi,0,500)+"...":e.AchievementHindi,m.Nc),m.Hb(6),m.tc("ngIf",("en"!=n.translate.currentLang?null==e?null:null==e.AchievementHindi?null:e.AchievementHindi.length:null==e?null:null==e.Achievement?null:e.Achievement.length)<500)}}function qa(e,t){1&e&&(m.ac(0,"div",40),m.ac(1,"a",41),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.Xc(" ",m.oc(3,1,"ViewAll_txt")," "))}function Ja(e,t){if(1&e&&(m.ac(0,"div",31),m.ac(1,"div",1),m.Tc(2,Ya,15,24,"div",32),m.Tc(3,qa,4,3,"div",33),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",e.otherAchievementList),m.Hb(1),m.tc("ngIf",(null==e.otherAchievementList?null:e.otherAchievementList.length)>5)}}function Ka(e,t){if(1&e){const e=m.bc();m.ac(0,"a",39),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).getReadMoreData(t.AchievementHindi?t.AchievementHindi?t.AchievementHindi:t.Achievement:t.Achievement?t.Achievement:t.AchievementHindi)})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Readmore")," "))}function Qa(e,t){if(1&e){const e=m.bc();m.ac(0,"div",34),m.ac(1,"div",35),m.ac(2,"div",36),m.ac(3,"img",43),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/icon-achievements-list.png")})),m.nc(4,"translate"),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"div",37),m.ac(7,"h5"),m.ac(8,"pre",19),m.nc(9,"slice"),m.nc(10,"slice"),m.nc(11,"slice"),m.nc(12,"slice"),m.Vc(13," "),m.Zb(),m.Tc(14,Ka,3,3,"a",38),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.AchievementCategoryImagePath,m.Pc),m.uc("title",m.oc(4,5,"GovtInitiatives_txt")),m.uc("alt",m.oc(5,7,"GovtInitiatives_txt")),m.Hb(5),m.tc("innerHTML","hi"==n.translate.currentLang?((null==e.AchievementHindi?null:e.AchievementHindi.length)>500?(m.qc(9,9,e.AchievementHindi,0,500),1):e.AchievementHindi)?e.AchievementHindi:(null==e.Achievement?null:e.Achievement.length)>500?m.qc(10,13,e.Achievement,0,500)+"...":e.Achievement:((null==e.Achievement?null:e.Achievement.length)>500?(m.qc(11,17,e.Achievement,0,500),1):e.Achievement)?e.Achievement:(null==e.AchievementHindi?null:e.AchievementHindi.length)>500?m.qc(12,21,e.AchievementHindi,0,500)+"...":e.AchievementHindi,m.Nc),m.Hb(6),m.tc("ngIf",("en"!=n.translate.currentLang?null==e?null:null==e.AchievementHindi?null:e.AchievementHindi.length:null==e?null:null==e.Achievement?null:e.Achievement.length)>500)}}function ec(e,t){if(1&e&&(m.ac(0,"div",40),m.ac(1,"a",44),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.vc("routerLink","/home/departmental-achievements-detail/",e.newInitiativeAchievementList[0].AchievementCategoryCode,""),m.Hb(1),m.Xc(" ",m.oc(3,2,"ViewAll_txt")," ")}}function tc(e,t){if(1&e&&(m.ac(0,"div",42),m.ac(1,"div",1),m.Tc(2,Qa,15,25,"div",32),m.Tc(3,ec,4,4,"div",33),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",e.newInitiativeAchievementList),m.Hb(1),m.tc("ngIf",(null==e.newInitiativeAchievementList?null:e.newInitiativeAchievementList.length)>5)}}function nc(e,t){if(1&e){const e=m.bc();m.ac(0,"a",39),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).getReadMoreData(null==t?null:t.Announcement_Description)})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Readmore")," "))}function ic(e,t){if(1&e&&(m.ac(0,"div",34),m.ac(1,"div",35),m.ac(2,"div",36),m.Wb(3,"img",26),m.nc(4,"translate"),m.nc(5,"translate"),m.Zb(),m.ac(6,"div",37),m.ac(7,"h5"),m.ac(8,"p"),m.Vc(9),m.nc(10,"slice"),m.Tc(11,nc,3,3,"a",38),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.Hb(3),m.uc("title",m.oc(4,4,"BudgetAnnouncement_txt")),m.uc("alt",m.oc(5,6,"BudgetAnnouncement_txt")),m.Hb(6),m.Xc(" ",(null==e?null:null==e.Announcement_Description?null:e.Announcement_Description.length)>200?m.qc(10,8,null==e?null:e.Announcement_Description,0,200)+"...":null==e?null:e.Announcement_Description," "),m.Hb(2),m.tc("ngIf",(null==e?null:null==e.Announcement_Description?null:e.Announcement_Description.length)>200)}}function ac(e,t){if(1&e&&(m.ac(0,"div",45),m.ac(1,"div",1),m.Tc(2,ic,12,12,"div",32),m.ac(3,"div",40),m.ac(4,"a",44),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",e.budgetModel),m.Hb(2),m.vc("routerLink","/cmis-budgetannouncements/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(6,3,"ViewAll_txt")," ")}}function cc(e,t){if(1&e){const e=m.bc();m.ac(0,"a",39),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).getReadMoreData(null==t?null:t.Announcement_Description)})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Readmore")," "))}function oc(e,t){if(1&e&&(m.ac(0,"div",34),m.ac(1,"div",35),m.ac(2,"div",36),m.Wb(3,"img",28),m.nc(4,"translate"),m.nc(5,"translate"),m.Zb(),m.ac(6,"div",37),m.ac(7,"h5"),m.ac(8,"p"),m.Vc(9),m.nc(10,"slice"),m.Tc(11,cc,3,3,"a",38),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.Hb(3),m.uc("title",m.oc(4,4,"CabinetDecisions_txt")),m.uc("alt",m.oc(5,6,"CabinetDecisions_txt")),m.Hb(6),m.Xc(" ",(null==e?null:null==e.Announcement_Description?null:e.Announcement_Description.length)>200?m.qc(10,8,null==e?null:e.Announcement_Description,0,200)+"...":null==e?null:e.Announcement_Description," "),m.Hb(2),m.tc("ngIf",(null==e?null:null==e.Announcement_Description?null:e.Announcement_Description.length)>200)}}function lc(e,t){if(1&e&&(m.ac(0,"div",40),m.ac(1,"a",44),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.vc("routerLink","/cmis-cabinetdecisions/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(3,2,"ViewAll_txt")," ")}}function rc(e,t){if(1&e&&(m.ac(0,"div",46),m.ac(1,"div",1),m.Tc(2,oc,12,12,"div",32),m.Tc(3,lc,4,4,"div",33),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",e.cabinetDecisionsModel),m.Hb(1),m.tc("ngIf",(null==e.cabinetDecisionsModel?null:e.cabinetDecisionsModel.length)>5)}}function sc(e,t){if(1&e){const e=m.bc();m.ac(0,"a",39),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).getReadMoreData(null==t?null:t.Announcement_Description)})),m.Vc(1),m.nc(2,"translate"),m.Zb()}2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Readmore")," "))}function dc(e,t){if(1&e&&(m.ac(0,"div",34),m.ac(1,"div",35),m.ac(2,"div",36),m.Wb(3,"img",30),m.nc(4,"translate"),m.nc(5,"translate"),m.Zb(),m.ac(6,"div",37),m.ac(7,"h5"),m.ac(8,"p"),m.Vc(9),m.nc(10,"slice"),m.Tc(11,sc,3,3,"a",38),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.Hb(3),m.uc("title",m.oc(4,4,"JanGhoshnaPatra_txt")),m.uc("alt",m.oc(5,6,"JanGhoshnaPatra_txt")),m.Hb(6),m.Xc(" ",(null==e?null:null==e.Announcement_Description?null:e.Announcement_Description.length)>200?m.qc(10,8,null==e?null:e.Announcement_Description,0,200)+"...":null==e?null:e.Announcement_Description," "),m.Hb(2),m.tc("ngIf",(null==e?null:null==e.Announcement_Description?null:e.Announcement_Description.length)>200)}}function mc(e,t){if(1&e&&(m.ac(0,"div",40),m.ac(1,"a",44),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.vc("routerLink","/cmis-janghoshnapatra/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(3,2,"ViewAll_txt")," ")}}function uc(e,t){if(1&e&&(m.ac(0,"div",47),m.ac(1,"div",1),m.Tc(2,dc,12,12,"div",32),m.Tc(3,mc,4,4,"div",33),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.tc("ngForOf",e.JanghoshnaModel),m.Hb(1),m.tc("ngIf",(null==e.JanghoshnaModel?null:e.JanghoshnaModel.length)>5)}}let bc=(()=>{class e{constructor(e,t,n,i,a){this._cmisModuleService=e,this.translate=t,this.achievementAwardService=n,this._importantDecisionService=i,this._commonService=a,this.DepartmentCode=0,this.DateFormat=d.a.DateFormat,this.cMISModuleEnum=Aa.a,this.achmodel=[],this.achListmodel=[],this.catEnum=o.a,this.newInitiativeIndexModel=new s.d,this.newInitiativeModel=[],this.budgetModel=[],this.budgeFilterModel=new Wa.a,this.cabinetDecisionsModel=[],this.cabinetDecisionsFilterModel=new Wa.a,this.JanghoshnaModel=[],this.JanghoshnaFilterModel=new Wa.a,this.filterModel=new Ea,this.readMoreHTML="",this.indexModel=new s.d}ngOnInit(){this.GetBudgetData(),this.GetCabinetDecisionsData(),this.GetJanghoshnaData(),this.GetDepartmentAchivement_DeptCatWiseList()}GetJanghoshnaData(){this.JanghoshnaFilterModel.ModuleId=Number(this.cMISModuleEnum.JanGhoshnaPatraCode),this.JanghoshnaFilterModel.JanDepartmentCode=this.DepartmentCode,this._cmisModuleService.GetAllCMISModuleDataGroupByDepartment(this.JanghoshnaFilterModel).subscribe(e=>{var t,n,i,a,c,o;if(e.IsSuccess){var l=[];(null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data)||void 0===i?void 0:i.length)>0&&(l=null===(c=null===(a=e)||void 0===a?void 0:a.Data)||void 0===c?void 0:c.Data),(null===(o=l)||void 0===o?void 0:o.length)>0&&(this.JanghoshnaModel=l[0].Items.splice(0,6))}},e=>{})}GetCabinetDecisionsData(){this.cabinetDecisionsFilterModel.ModuleId=Number(this.cMISModuleEnum.CabinetDecisionCode),this.cabinetDecisionsFilterModel.JanDepartmentCode=this.DepartmentCode,this._cmisModuleService.GetAllCMISModuleDataGroupByDepartment(this.cabinetDecisionsFilterModel).subscribe(e=>{var t,n,i,a,c,o;if(e.IsSuccess){var l=[];(null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data)||void 0===i?void 0:i.length)>0&&(l=null===(c=null===(a=e)||void 0===a?void 0:a.Data)||void 0===c?void 0:c.Data),(null===(o=l)||void 0===o?void 0:o.length)>0&&(this.cabinetDecisionsModel=l[0].Items.splice(0,6))}},e=>{})}GetBudgetData(){this.budgeFilterModel.ModuleId=Number(this.cMISModuleEnum.BudgetAnnouncementCode),this.budgeFilterModel.JanDepartmentCode=this.DepartmentCode,this._cmisModuleService.GetAllCMISModuleDataGroupByDepartment(this.budgeFilterModel).subscribe(e=>{var t,n,i,a,c,o;if(e.IsSuccess){var l=[];(null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data)||void 0===i?void 0:i.length)>0&&(l=null===(c=null===(a=e)||void 0===a?void 0:a.Data)||void 0===c?void 0:c.Data),(null===(o=l)||void 0===o?void 0:o.length)>0&&(this.budgetModel=l[0].Items.splice(0,6))}},e=>{})}GetDepartmentAchivement_DeptCatWiseList(){this.filterModel.DepartmentCode=this.DepartmentCode,this.filterModel.OrderBy="AchievementDate",this.filterModel.OrderByAsc=0,this.filterModel.PageSize=101,this._importantDecisionService.GetDepartmentAchivement_DeptCatWiseList(this.filterModel).subscribe(e=>{if(e.IsSuccess){if(this.allAchievementList=e.Data.Data,this.allAchievementList&&this.allAchievementList.length>0){let e=0,t=0,n=this.catEnum.NewInitiativesCode;this.newInitiativeAchievementList=[],this.otherAchievementList=[],this.allAchievementList.forEach(i=>{i.AchievementCategoryCode==n&&e<6?(this.newInitiativeAchievementList.push(i),e++):i.AchievementCategoryCode!=n&&t<6&&(this.otherAchievementList.push(i),t++)})}}else this.allAchievementList=[]},e=>{this.allAchievementList=[],console.error(e)})}getReadMoreData(e){this.readMoreHTML=e}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Ga.a),m.Vb(c.d),m.Vb(u.a),m.Vb(Ra),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-cmis-module"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},decls:26,vars:14,consts:[[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"tab-design1","tab-info-design-dept"],["id","myTab","role","tablist",1,"nav","nav-tabs","justify-content-center"],["class","nav-item",4,"ngIf"],["id","myTabContent",1,"tab-content","p-4"],["class","tab-pane fade show active","id","dep-tab1",4,"ngIf"],["class","tab-pane fade","id","dep-tab2",4,"ngIf"],["class","tab-pane fade","id","dep-tab3",4,"ngIf"],["class","tab-pane fade","id","dep-tab4",4,"ngIf"],["class","tab-pane fade","id","dep-tab5",4,"ngIf"],["id","ReadMoreModal","tabindex","-1","role","dialog","aria-labelledby","ReadMoreModal","aria-hidden","true",1,"modal","fade","modal-dsign-sm"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-body"],[1,"d-block","mb-4"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[3,"innerHTML"],[1,"nav-item"],["data-toggle","tab","href","#dep-tab1",1,"nav-link","active"],["src","assets/images/icon-dept-achievements.png",3,"title","alt"],["data-toggle","tab","href","#dep-tab2",1,"nav-link"],["src","assets/images/icon-dept-initiative.png",3,"title","alt"],["data-toggle","tab","href","#dep-tab3",1,"nav-link"],["src","assets/images/icon-dept-budget.png",3,"title","alt"],["data-toggle","tab","href","#dep-tab4",1,"nav-link"],["src","assets/images/icon-dept-cabinet-des.png",3,"title","alt"],["data-toggle","tab","href","#dep-tab5",1,"nav-link"],["src","assets/images/icon-dept-janghoshna.png",3,"title","alt"],["id","dep-tab1",1,"tab-pane","fade","show","active"],["class","col-xl-4 col-lg-6 col-md-6 col-sm-12 mb-3",4,"ngFor","ngForOf"],["class","col-lg-12 text-center",4,"ngIf"],[1,"col-xl-4","col-lg-6","col-md-6","col-sm-12","mb-3"],[1,"card-design-1","d-flex"],[1,"card-design-1-img"],[1,"card-design-1-detail"],["href","#","class","text-primary","data-toggle","modal","data-target","#ReadMoreModal",3,"click",4,"ngIf"],["href","#","data-toggle","modal","data-target","#ReadMoreModal",1,"text-primary",3,"click"],[1,"col-lg-12","text-center"],["routerLink","/home/departmental-achievements-detail",1,"btn","btn-round","btn-theme","btn-yellow"],["id","dep-tab2",1,"tab-pane","fade"],[3,"src","title","alt","error"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],["id","dep-tab3",1,"tab-pane","fade"],["id","dep-tab4",1,"tab-pane","fade"],["id","dep-tab5",1,"tab-pane","fade"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"section",3),m.ac(5,"ul",4),m.Tc(6,Xa,7,9,"li",5),m.Tc(7,Ba,7,9,"li",5),m.Tc(8,Ua,7,9,"li",5),m.Tc(9,za,7,9,"li",5),m.Tc(10,ja,7,9,"li",5),m.Zb(),m.ac(11,"div",6),m.Tc(12,Ja,4,2,"div",7),m.Tc(13,tc,4,2,"div",8),m.Tc(14,ac,7,5,"div",9),m.Tc(15,rc,4,2,"div",10),m.Tc(16,uc,4,2,"div",11),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(17,"div",12),m.ac(18,"div",13),m.ac(19,"div",14),m.ac(20,"div",15),m.ac(21,"div",16),m.ac(22,"button",17),m.ac(23,"span",18),m.Vc(24,"\xd7"),m.Zb(),m.Zb(),m.Zb(),m.Wb(25,"P",19),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("home-about-us ",t.BackGroundClass,""),m.Hb(6),m.tc("ngIf",(null==t.otherAchievementList?null:t.otherAchievementList.length)>0),m.Hb(1),m.tc("ngIf",(null==t.newInitiativeAchievementList?null:t.newInitiativeAchievementList.length)>0),m.Hb(1),m.tc("ngIf",(null==t.budgetModel?null:t.budgetModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.cabinetDecisionsModel?null:t.cabinetDecisionsModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.JanghoshnaModel?null:t.JanghoshnaModel.length)>0),m.Hb(2),m.tc("ngIf",(null==t.otherAchievementList?null:t.otherAchievementList.length)>0),m.Hb(1),m.tc("ngIf",(null==t.newInitiativeAchievementList?null:t.newInitiativeAchievementList.length)>0),m.Hb(1),m.tc("ngIf",(null==t.budgetModel?null:t.budgetModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.cabinetDecisionsModel?null:t.cabinetDecisionsModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.JanghoshnaModel?null:t.JanghoshnaModel.length)>0),m.Hb(9),m.tc("innerHTML",t.readMoreHTML,m.Nc))},directives:[i.n,i.m,h.d],pipes:[c.c,i.u],styles:[""]}),e})();var gc=n("T5CN"),hc=n("Lexf"),pc=n("t7Da");function fc(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Wb(4,"p",4),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("dept-dynamic-info-home-page ",e.BackGroundClass,""),m.Hb(4),m.tc("innerHTML",e.sanitizer.bypassSecurityTrustHtml("hi"==e.translate.currentLang&&null!=e.dataModel&&e.dataModel.DetailsInHindi?null==e.dataModel?null:e.dataModel.DetailsInHindi:null==e.dataModel?null:e.dataModel.Details),m.Nc)}}let vc=(()=>{class e{constructor(e,t,n,i,a,c,o){this.departmentProfile=e,this.translate=t,this.sanitizer=n,this._route=i,this.orderService=a,this.commonService=c,this._distDeptService=o,this.pageTitle=new s.f,this.dataModel=new Ci.d,this.departmentProfileFilterModel=new Ci.c,this.departmentRecordsExist=!1,this.departmentProfileTotalRecords=0,this.totalRecords=0,this.DateFormat=d.a.DateFormat,this.orderValDocEnum=gc.f,this.orderPublicPortal=[],this.orderFilterModel=new hc.d,this.entryDataType=vi.e,this.IsLoading=!0,this.departmentProfilePagerConfig={id:"departmentProfile-paging",itemsPerPage:this.departmentProfileFilterModel.IndexModel.PageSize,currentPage:this.departmentProfileFilterModel.IndexModel.Page,totalItems:this.departmentProfileTotalRecords}}ngOnInit(){this.getDepartmentProfileListData()}getEntryTypeDetail(){this.orderPublicPortal=[],this.IsLoading=!0,this.JankalyanEntrymodel=void 0,this.pageTitle=new s.f,this.departmentProfileFilterModel.EntryTypeCode&&this._distDeptService.GetJankalyanEntryTypeDetail(Number(this.departmentProfileFilterModel.EntryTypeCode)).subscribe(e=>{if(e.IsSuccess){let t=e.Data;this.JankalyanEntrymodel=e.Data,t&&this.JankalyanEntrymodel.GovernmentDocumentTypeCode&&this.JankalyanEntrymodel.GovernmentDocumentSubTypeCode&&this.GetGovDocList()}},e=>{console.error(e)})}getDepartmentProfileListData(){this.IsLoading=!0,this.dataModel=void 0,this.departmentProfileFilterModel.IndexModel.PageSize=1,this.departmentProfileFilterModel.JankalyanCategoryCode=vi.b.AboutDepartmantDistCode,this.departmentProfileFilterModel.EntryTypeCode=vi.d.HomeCode,this.departmentProfileFilterModel.DepartmentCode=this.commonService.GetWebDistDeptCode(),this.departmentProfile.GetList(this.departmentProfileFilterModel).subscribe(e=>{var t,n,i,a;e.IsSuccess?(this.departmentProfileModel=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,this.dataModel=this.departmentProfileModel&&1==this.departmentProfileModel.length?this.departmentProfileModel[0]:new Ci.d,this.departmentProfileFilterModel.IndexModel.IsPostBack||(this.departmentProfileTotalRecords=(null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.TotalRecords)||0)):this.dataModel={},this.IsLoading=!1},e=>{this.dataModel={},this.IsLoading=!1})}GetGovDocList(){this.orderFilterModel.IndexModel.Page=1,this.orderFilterModel.IndexModel.PageSize=10,this.orderFilterModel.Type=this.JankalyanEntrymodel.GovernmentDocumentTypeCode,this.orderFilterModel.SubTypeCode=this.JankalyanEntrymodel.GovernmentDocumentSubTypeCode,this.orderService.Get(this.orderFilterModel).subscribe(e=>{var t,n,i,a;this.orderPublicPortal=[],e.IsSuccess?(this.orderPublicPortal=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,this.orderFilterModel.IndexModel.IsPostBack||(this.totalRecords=null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.TotalRecords)):this.totalRecords=0},e=>{console.error(e.message)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Hi.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.a),m.Vb(pc.a),m.Vb(g.a),m.Vb(p.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-department-info"]],inputs:{BackGroundClass:"BackGroundClass"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[2,"text-align","justify !important",3,"innerHTML"]],template:function(e,t){1&e&&m.Tc(0,fc,5,4,"section",0),2&e&&m.tc("ngIf",null==t.dataModel?null:t.dataModel.Details)},directives:[i.n],styles:[""]}),e})();function Cc(e,t){1&e&&(m.ac(0,"li",12),m.ac(1,"a",13),m.Wb(2,"img",14),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("alt",m.oc(3,3,"AboutTitle_txt")),m.uc("title",m.oc(4,5,"AboutTitle_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"AboutTitle_txt")," "))}function Hc(e,t){1&e&&(m.ac(0,"li",12),m.ac(1,"a",15),m.Wb(2,"img",16),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("alt",m.oc(3,3,"FairFestivals_txt")),m.uc("title",m.oc(4,5,"FairFestivals_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"FairFestivals_txt")," "))}function Dc(e,t){1&e&&(m.ac(0,"li",12),m.ac(1,"a",17),m.Wb(2,"img",18),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("alt",m.oc(3,3,"ArtCulture_txt")),m.uc("title",m.oc(4,5,"ArtCulture_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"ArtCulture_txt")," "))}function Mc(e,t){1&e&&(m.ac(0,"li",12),m.ac(1,"a",19),m.Wb(2,"img",20),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("alt",m.oc(3,3,"PlacesVisit_txt")),m.uc("title",m.oc(4,5,"PlacesVisit_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"PlacesVisit_txt")," "))}function Ic(e,t){1&e&&(m.ac(0,"li",12),m.ac(1,"a",21),m.Wb(2,"img",22),m.nc(3,"translate"),m.nc(4,"translate"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.uc("alt",m.oc(3,3,"HowReach_txt")),m.uc("title",m.oc(4,5,"HowReach_txt")),m.Hb(3),m.Xc(" ",m.oc(6,7,"HowReach_txt")," "))}function Zc(e,t){if(1&e&&(m.ac(0,"div",23),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Wb(4,"p",24),m.ac(5,"a",25),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(4),m.tc("innerHTML",e.sanitizer.bypassSecurityTrustHtml("hi"==e.translate.currentLang&&null!=e.dataModel&&e.dataModel.DetailsInHindi?null==e.dataModel?null:e.dataModel.DetailsInHindi:null==e.dataModel?null:e.dataModel.Details),m.Nc),m.Hb(1),m.vc("routerLink","/home/district-info/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(7,3,"ViewAll_txt")," ")}}const Tc=function(e){return{active:e}};function yc(e,t){if(1&e){const e=m.bc();m.ac(0,"div",38),m.ac(1,"div",39),m.ac(2,"div",40),m.ac(3,"div",41),m.ac(4,"img",42),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/record-not-found.png")})),m.Zb(),m.Zb(),m.Zb(),m.ac(5,"div",43),m.ac(6,"h2",44),m.Vc(7),m.Zb(),m.Wb(8,"pre",45),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.tc("ngClass",m.Ec(6,Tc,0==n)),m.Hb(4),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(3),m.Xc(" ","en"==i.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("innerHTML","hi"==i.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function xc(e,t){if(1&e&&(m.ac(0,"div",26),m.ac(1,"div",1),m.ac(2,"div",27),m.ac(3,"div",28),m.Tc(4,yc,9,8,"div",29),m.Zb(),m.ac(5,"div",30),m.ac(6,"a",31),m.ac(7,"span",32),m.Wb(8,"i",33),m.Zb(),m.ac(9,"span",34),m.Vc(10,"Previous"),m.Zb(),m.Zb(),m.ac(11,"a",35),m.ac(12,"span",32),m.Wb(13,"i",36),m.Zb(),m.ac(14,"span",34),m.Vc(15,"Next"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(16,"div",37),m.ac(17,"a",25),m.Vc(18),m.nc(19,"translate"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(4),m.tc("ngForOf",e.festivalsModel),m.Hb(13),m.wc("routerLink","/home/district-info-detail/",e.DepartmentCode,"/",e.achievementEnum.DFestivalsCode,""),m.Hb(1),m.Xc(" ",m.oc(19,4,"ViewAll_txt")," ")}}function Pc(e,t){if(1&e){const e=m.bc();m.ac(0,"div",48),m.ac(1,"div",49),m.ac(2,"div",50),m.ac(3,"img",42),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.ac(4,"div",51),m.ac(5,"a",52),m.Vc(6),m.Zb(),m.Wb(7,"pre",45),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(2),m.vc("routerLink","/home/district-info-detail/",n.DepartmentCode,"/art-&-culture"),m.Hb(1),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("innerHTML","hi"==n.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function Sc(e,t){if(1&e&&(m.ac(0,"div",46),m.ac(1,"div",1),m.ac(2,"div",2),m.Tc(3,Pc,8,6,"div",47),m.ac(4,"div",37),m.ac(5,"a",25),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.artCultureLifestyleModel),m.Hb(2),m.wc("routerLink","/home/district-info-detail/",e.DepartmentCode,"/",e.achievementEnum.DArtCultureLifestyleCode,""),m.Hb(1),m.Xc(" ",m.oc(7,4,"ViewAll_txt")," ")}}function _c(e,t){if(1&e){const e=m.bc();m.ac(0,"div",56),m.ac(1,"div",49),m.ac(2,"div",57),m.ac(3,"img",42),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.ac(4,"div",51),m.ac(5,"h2",58),m.Vc(6),m.Zb(),m.Wb(7,"pre",45),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(3),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("innerHTML","hi"==n.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function wc(e,t){if(1&e&&(m.ac(0,"div",53),m.ac(1,"div",1),m.ac(2,"div",2),m.Tc(3,_c,8,5,"div",54),m.ac(4,"div",55),m.ac(5,"a",25),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.touristPlacesModel),m.Hb(2),m.wc("routerLink","/home/district-info-detail/",e.DepartmentCode,"/",e.achievementEnum.DTouristPlacesCode,""),m.Hb(1),m.Xc(" ",m.oc(7,4,"ViewAll_txt")," ")}}function Lc(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",61),m.ac(2,"h2",62),m.ac(3,"img",63),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/departmental_galley.png")})),m.Zb(),m.Vc(4),m.Zb(),m.Wb(5,"pre",45),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.AchievementSubCategoryImagePath,m.Pc),m.uc("title","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.uc("alt","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi),m.Hb(1),m.Xc(" ","en"==n.translate.currentLang?e.AchievementHindi:e.SubjectHindi?e.SubjectHindi:e.AchievementHindi," "),m.Hb(1),m.tc("innerHTML","hi"==n.translate.currentLang?e.EditorDetail:e.EditorDetailEnglish,m.Nc)}}function Vc(e,t){if(1&e&&(m.ac(0,"div",59),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Tc(4,Lc,6,5,"ng-container",60),m.ac(5,"div",37),m.ac(6,"a",25),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(4),m.tc("ngForOf",e.howtoReachModel),m.Hb(2),m.wc("routerLink","/home/district-info-detail/",e.DepartmentCode,"/",e.achievementEnum.DHowtoReachCode,""),m.Hb(1),m.Xc(" ",m.oc(8,4,"ViewAll_txt")," ")}}let kc=(()=>{class e{constructor(e,t,n,i,a,c,l){this.departmentProfile=e,this.translate=t,this.sanitizer=n,this._achivementService=i,this._titleService=a,this._commonService=c,this._route=l,this.DepartmentCode=0,this.achievementEnum=o.a,this.dataModel=new Ci.d,this.departmentProfileFilterModel=new Ci.c,this.jankalyanEntryTypeEnum=vi.d,this.artCultureLifestyleModel=[],this.festivalsModel=[],this.howtoReachModel=[],this.touristPlacesModel=[]}ngOnInit(){this._route.paramMap.subscribe(e=>{this.getDepartmentProfileListData(),this.GetFestivalseData(),this.GetArtCultureLifestyleData(),this.GetTouristPlacesData(),this.GetHowToReachData()})}GetFestivalseData(){let e=new l.b;e.IndexModel.OrderBy="Priority",e.IndexModel.OrderByAsc=0,e.CategoryCode=this.achievementEnum.DFestivalsCode,e.DepartmentCode=this.DepartmentCode,e.IndexModel.PageSize=3,this._achivementService.GetAchievementListBySearchFilterData(e,!0).subscribe(e=>{e.IsSuccess&&(this.festivalsModel=[],this.festivalsModel=e.Data.Data)},e=>{console.error(e)})}GetArtCultureLifestyleData(){let e=new l.b;e.IndexModel.OrderBy="Priority",e.IndexModel.OrderByAsc=0,e.CategoryCode=this.achievementEnum.DArtCultureLifestyleCode,e.DepartmentCode=this.DepartmentCode,e.IndexModel.PageSize=3,this._achivementService.GetAchievementListBySearchFilterData(e,!0).subscribe(e=>{e.IsSuccess&&(this.artCultureLifestyleModel=[],this.artCultureLifestyleModel=e.Data.Data)},e=>{console.error(e)})}GetHowToReachData(){let e=new l.b;e.IndexModel.OrderBy="Priority",e.IndexModel.OrderByAsc=1,e.CategoryCode=this.achievementEnum.DHowtoReachCode,e.DepartmentCode=this.DepartmentCode,e.IndexModel.PageSize=3,this._achivementService.GetAchievementListBySearchFilterData(e,!0).subscribe(e=>{e.IsSuccess&&(this.howtoReachModel=[],this.howtoReachModel=e.Data.Data)},e=>{console.error(e)})}GetTouristPlacesData(){let e=new l.b;e.IndexModel.OrderBy="Priority",e.IndexModel.OrderByAsc=0,e.CategoryCode=this.achievementEnum.DTouristPlacesCode,e.DepartmentCode=this.DepartmentCode,e.IndexModel.PageSize=3,this._achivementService.GetAchievementListBySearchFilterData(e,!0).subscribe(e=>{e.IsSuccess&&(this.touristPlacesModel=[],this.touristPlacesModel=e.Data.Data)},e=>{console.error(e)})}getDepartmentProfileListData(){this.departmentProfileFilterModel.IndexModel.PageSize=1,this.departmentProfileFilterModel.DepartmentCode=this.DepartmentCode,this.departmentProfileFilterModel.EntryTypeCode=this.jankalyanEntryTypeEnum.AboutCode,this.departmentProfile.GetList(this.departmentProfileFilterModel).subscribe(e=>{var t,n;if(e.IsSuccess)if(this.departmentProfileModel=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,this.departmentProfileModel&&this.departmentProfileModel.length>1)for(let i in this.departmentProfileModel)this.departmentProfileModel[i].Details=this.departmentProfileModel[i].Details;else this.departmentProfileModel&&1==this.departmentProfileModel.length?(this.dataModel=this.departmentProfileModel[0],this.dataModel.Details=this.departmentProfileModel[0].Details):this.dataModel=new Ci.d;else this.dataModel=new Ci.d},e=>{console.error(e.message)})}onDownload(e){e&&open("'url'","_blank").document.write('')}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Hi.a),m.Vb(c.d),m.Vb(b.b),m.Vb(u.a),m.Vb(b.d),m.Vb(g.a),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-district-info"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},decls:17,vars:13,consts:[[1,"tab-design1","tab-info-design-district"],[1,"container"],[1,"row"],[1,"col-lg-12"],["id","myTab","role","tablist",1,"nav","nav-tabs","justify-content-center","mb-4","border-0"],["class","nav-item",4,"ngIf"],["id","myTabContent",1,"tab-content","p-0"],["class","tab-pane tab-dis-about bg-overlay position-relative fade show active","id","dis-tab1",4,"ngIf"],["class","tab-pane fade tab-dis-fair bg-overlay position-relative","id","dis-tab2",4,"ngIf"],["class","tab-pane fade tab-dis-culture bg-overlay position-relative","id","dis-tab3",4,"ngIf"],["class","tab-pane fade tab-dis-place-visit bg-overlay position-relative","id","dis-tab4",4,"ngIf"],["class","tab-pane fade tab-dis-how-reach bg-overlay position-relative","id","dis-tab5",4,"ngIf"],[1,"nav-item"],["data-toggle","tab","href","#dis-tab1",1,"nav-link","active"],["src","assets/images/icon-district-tab-1.png",3,"alt","title"],["data-toggle","tab","href","#dis-tab2",1,"nav-link"],["src","assets/images/icon-district-tab-2.png",3,"alt","title"],["data-toggle","tab","href","#dis-tab3",1,"nav-link"],["src","assets/images/icon-district-tab-3.png",3,"alt","title"],["data-toggle","tab","href","#dis-tab4",1,"nav-link"],["src","assets/images/icon-district-tab-4.png",3,"alt","title"],["data-toggle","tab","href","#dis-tab5",1,"nav-link"],["src","assets/images/icon-district-tab-5.png",3,"alt","title"],["id","dis-tab1",1,"tab-pane","tab-dis-about","bg-overlay","position-relative","fade","show","active"],[2,"text-align","justify !important",3,"innerHTML"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],["id","dis-tab2",1,"tab-pane","fade","tab-dis-fair","bg-overlay","position-relative"],["id","SliderData-1","data-ride","carousel",1,"carousel","slide","slider-data-d-1"],[1,"carousel-inner"],["class","carousel-item mb-4 custom-slider-1",3,"ngClass",4,"ngFor","ngForOf"],[1,"slider-data-d-1-arrow"],["href","#SliderData-1","role","button","data-slide","prev",1,"slider-data-d-1-arrow-icon"],["aria-hidden","true"],[1,"fas","fa-chevron-left"],[1,"sr-only"],["href","#SliderData-1","role","button","data-slide","next",1,"slider-data-d-1-arrow-icon"],[1,"fas","fa-chevron-right"],[1,"col-lg-12","text-center"],[1,"carousel-item","mb-4","custom-slider-1",3,"ngClass"],[1,"row","align-items-center"],[1,"col-lg-5","p-0"],[1,"festival-img","d-flex","align-items-center","justify-content-center","img-box"],[3,"src","title","alt","error"],[1,"col-lg-7","mt-4","mt-lg-0","festival-details","px-4","py-3"],[1,"text-color-theme-blue","font-size-5x","mb-3"],[3,"innerHTML"],["id","dis-tab3",1,"tab-pane","fade","tab-dis-culture","bg-overlay","position-relative"],["class","col-lg-4 col-sm-6 mb-5",4,"ngFor","ngForOf"],[1,"col-lg-4","col-sm-6","mb-5"],[1,"card-2-design","box-box-shadow","h-100"],[1,"card-2-design-img","d-flex","align-items-center","justify-content-center","position-relative"],[1,"card-2-design-detail","p-3"],[1,"text-color-theme-blue","font-size-3x","mb-2","d-block",3,"routerLink"],["id","dis-tab4",1,"tab-pane","fade","tab-dis-place-visit","bg-overlay","position-relative"],["class","col-lg-4 mb-4 mb-lg-0",4,"ngFor","ngForOf"],[1,"col-lg-12","text-center","mt-5"],[1,"col-lg-4","mb-4","mb-lg-0"],[1,"card-2-design-img","d-flex","align-items-center","justify-content-center"],[1,"text-color-theme-blue","font-size-4x","mb-2","place-visit-title"],["id","dis-tab5",1,"tab-pane","fade","tab-dis-how-reach","bg-overlay","position-relative"],[4,"ngFor","ngForOf"],[1,"mb-4","col-md-12"],[1,"text-color-theme-blue","font-size-4x","mb-3","d-flex","align-items-center","how-reach-img"],[1,"mr-10",3,"src","title","alt","error"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"section",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"div",3),m.ac(5,"ul",4),m.Tc(6,Cc,7,9,"li",5),m.Tc(7,Hc,7,9,"li",5),m.Tc(8,Dc,7,9,"li",5),m.Tc(9,Mc,7,9,"li",5),m.Tc(10,Ic,7,9,"li",5),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(11,"div",6),m.Tc(12,Zc,8,5,"div",7),m.Tc(13,xc,20,6,"div",8),m.Tc(14,Sc,8,6,"div",9),m.Tc(15,wc,8,6,"div",10),m.Tc(16,Vc,9,6,"div",11),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("home-about-us ",t.BackGroundClass," "),m.Hb(6),m.tc("ngIf",null==t.dataModel?null:t.dataModel.Details),m.Hb(1),m.tc("ngIf",(null==t.festivalsModel?null:t.festivalsModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.artCultureLifestyleModel?null:t.artCultureLifestyleModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.touristPlacesModel?null:t.touristPlacesModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.howtoReachModel?null:t.howtoReachModel.length)>0),m.Hb(2),m.tc("ngIf",null==t.dataModel?null:t.dataModel.Details),m.Hb(1),m.tc("ngIf",(null==t.festivalsModel?null:t.festivalsModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.artCultureLifestyleModel?null:t.artCultureLifestyleModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.touristPlacesModel?null:t.touristPlacesModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.howtoReachModel?null:t.howtoReachModel.length)>0))},directives:[i.n,h.d,i.m,i.l],pipes:[c.c],styles:[""]}),e})();function Nc(e,t){if(1&e&&(m.ac(0,"a",6),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.vc("routerLink","/pages/inaugurations/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function Oc(e,t){if(1&e){const e=m.bc();m.ac(0,"div",9),m.ac(1,"a",10),m.ac(2,"div",11),m.Vc(3),m.nc(4,"date"),m.Zb(),m.ac(5,"div",12),m.ac(6,"img",13),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/dpt-Inaugration.png")})),m.Zb(),m.Zb(),m.ac(7,"div",14),m.Vc(8),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(1),m.vc("routerLink","/home/press-release/",null==e?null:e.Id,""),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.PressReleaseDateHindi:m.pc(4,6,null==e?null:e.PressreleaseDate,"d MMM, y")," "),m.Hb(3),m.uc("src",null==e?null:e.HomePageImageUrl,m.Pc),m.uc("alt",null==e?null:e.Description),m.uc("title",null==e?null:e.Description),m.Hb(2),m.Xc(" ",null==e?null:e.Description," ")}}function Ac(e,t){if(1&e&&(m.ac(0,"div",7),m.Tc(1,Oc,9,9,"div",8),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",e.generalModel)}}function Wc(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ec(e,t){1&e&&m.Wb(0,"app-no-records")}let Gc=(()=>{class e{constructor(e,t,n){this._commonService=e,this.translate=t,this._dptDistrictWebsiteService=n,this.DepartmentCode=0,this.departmentCode=0,this.enumdata=vi.d,this.DateFormat=d.a.DateFormat,this.departmentCode=this._commonService.GetWebDistDeptCode()}ngOnInit(){this.GetInaugrationData()}GetInaugrationData(){this.generalModel=void 0;let e=new ha.f;e.IsLokarpanInauguration=!0,e.IsBase64File=!1,e.PageSize=3,e.OrderByAsc=0,e.OrderBy="PressreleaseDate",e.DepartmentCode=this.departmentCode,e.CategoryCode=0,this._dptDistrictWebsiteService.GetDptInAugrationLink(e).subscribe(e=>{e.IsSuccess?(this.generalModel=[],this.generalModel=e.Data.Data):this.generalModel=[]},e=>{this.generalModel=[],console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(g.a),m.Vb(c.d),m.Vb(p.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-inauguration"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},decls:10,vars:10,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"section-title","text-center","m-auto"],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","row justify-content-center",4,"ngIf"],[4,"ngIf"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"row","justify-content-center"],["class","col-lg-4 col-md-6 col-sm-12 mb-5 mb-lg-0",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","col-sm-12","mb-5","mb-lg-0"],[1,"home-inauguration-items","custom-card","position-relative","d-block",3,"routerLink"],[1,"home-inauguration-items-date"],[1,"home-inauguration-items-img","d-flex","align-items-center","justify-content-center"],[3,"src","alt","title","error"],[1,"home-inauguration-items-info","d-block"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Tc(6,Nc,3,4,"a",3),m.Zb(),m.Tc(7,Ac,2,1,"div",4),m.Tc(8,Wc,1,0,"app-mini-loader",5),m.Tc(9,Ec,1,0,"app-no-records",5),m.Zb(),m.Zb()),2&e&&(m.Lb("home-inauguration ",t.BackGroundClass,""),m.Hb(4),m.Xc(" ",m.oc(5,8,"Inauguration_txt")," "),m.Hb(2),m.tc("ngIf",(null==t.generalModel?null:t.generalModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.generalModel?null:t.generalModel.length)>0),m.Hb(1),m.tc("ngIf",!t.generalModel),m.Hb(1),m.tc("ngIf",t.generalModel&&0==t.generalModel.length))},directives:[i.n,h.d,i.m,v.a,C.a],pipes:[c.c,i.e],styles:[""]}),e})();const Fc=["map"];function Rc(e,t){if(1&e&&(m.ac(0,"option",12),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.tc("ngValue",e.Value),m.Hb(1),m.Xc(" ",e.Text," ")}}function Xc(e,t){if(1&e){const e=m.bc();m.ac(0,"select",9),m.ic("ngModelChange",(function(t){return m.Mc(e),m.mc().selectedOfficeCode=t}))("change",(function(){m.Mc(e);const t=m.mc();return t.displayOfficeOnMap(t.selectedOfficeCode)})),m.ac(1,"option",10),m.Vc(2,"--All--"),m.Zb(),m.Tc(3,Rc,2,2,"option",11),m.Zb()}if(2&e){const e=m.mc();m.tc("ngModel",e.selectedOfficeCode),m.Hb(3),m.tc("ngForOf",e.ddlOffice)}}function Bc(e,t){1&e&&(m.ac(0,"div",13),m.ac(1,"div",14),m.Wb(2,"div",15,16),m.Zb(),m.Zb())}function Uc(e,t){1&e&&m.Wb(0,"app-mini-loader")}let zc=(()=>{class e{constructor(e,t,n){this._commonService=e,this._departmentService=t,this.translate=n,this.deptCode=0,this.zoomLevel=12}ngOnInit(){this.getDepartmentDetail(),this.setMapConfig()}setMapConfig(){this.platform=new H.service.Platform({app_id:d.a.HereMapId,app_code:d.a.HereMapCode,useHTTPS:!0})}getDepartmentDetail(){this._departmentService.getDepartmentDetail().subscribe(e=>{e&&(this.deptCode=e.DepartmentCode,this.defaultOfficeCode=e.DefaultOfficeCode,this.selectedOfficeCode=this.defaultOfficeCode?String(this.defaultOfficeCode):"0",this.getOffices())})}getOffices(){this.deptCode>0&&this._commonService.GetOfficesFor(this.deptCode,0).subscribe(e=>{e.IsSuccess?(this.ddlOffice=e.Data.filter(e=>e.OtherData&&e.OtherData.Latitude&&e.OtherData.Longitude),this.defaultOfficeDetail=this.ddlOffice.find(e=>Number(e.Value)==this.defaultOfficeCode),setTimeout(()=>{this.bindMap()},500)):this.ddlOffice=[]},e=>{this.ddlOffice=[],console.error(e)})}bindMap(){let e=this.platform.createDefaultLayers();this.map=new H.Map(this.mapElement.nativeElement,e.normal.map,{zoom:this.defaultOfficeDetail?this.zoomLevel:6,center:{lat:this.defaultOfficeDetail?this.defaultOfficeDetail.OtherData.Latitude:d.a.HereMapLatitude,lng:this.defaultOfficeDetail?this.defaultOfficeDetail.OtherData.Longitude:d.a.HereMapLongitude}}),new H.mapevents.Behavior(new H.mapevents.MapEvents(this.map)),this.ui=H.ui.UI.createDefault(this.map,e),this.displayOfficeOnMap(this.selectedOfficeCode)}displayOfficeOnMap(e){this.map.removeObjects(this.map.getObjects());let t=this.ddlOffice.filter(t=>t.Value==e||0==e);t&&t.length>0&&t.forEach(e=>{this.addMarker({lat:e.OtherData.Latitude,lng:e.OtherData.Longitude},e.OtherData.OfficeAddress||"")})}addMarker(e,t){let n=new H.map.Marker(e);t&&(n.setData("
"+t+"
"),n.addEventListener("tap",e=>{let t=new H.ui.InfoBubble(e.target.getPosition(),{content:e.target.getData()});this.ui.addBubble(t)},!1)),this.map.addObject(n)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(g.a),m.Vb(In.a),m.Vb(c.d))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-office-locator"]],viewQuery:function(e,t){var n;1&e&&m.bd(Fc,!0),2&e&&m.Jc(n=m.jc())&&(t.mapElement=n.first)},inputs:{BackGroundClass:"BackGroundClass"},decls:12,vars:9,consts:[[1,"sec-wsc-items","map-view-data"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"wsc-4"],[1,"sec-wsc-title","text-center"],["class","form-control",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","sec-wsc-body text-center",4,"ngIf"],[4,"ngIf"],[1,"form-control",3,"ngModel","ngModelChange","change"],["value","0"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"sec-wsc-body","text-center"],[1,"map-view-data-map"],[2,"width","100%","height","500px"],["map",""]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"div",3),m.ac(5,"section",4),m.ac(6,"div",5),m.Vc(7),m.nc(8,"translate"),m.Tc(9,Xc,4,2,"select",6),m.Zb(),m.Tc(10,Bc,4,0,"div",7),m.Tc(11,Uc,1,0,"app-mini-loader",8),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("page-web-service-configuration py-0 ",t.BackGroundClass,""),m.Hb(7),m.Xc(" ",m.oc(8,7,"OfficeLocator_txt")," "),m.Hb(2),m.tc("ngIf",t.ddlOffice&&t.ddlOffice.length>0),m.Hb(1),m.tc("ngIf",t.ddlOffice),m.Hb(1),m.tc("ngIf",!t.ddlOffice))},directives:[i.n,a.u,a.m,a.p,a.q,a.w,i.m,v.a],pipes:[c.c],styles:[".sec-wsc-items[_ngcontent-%COMP%]{background:#d4ecff;padding:45px 0}.sec-wsc-title[_ngcontent-%COMP%]{font-size:230%;color:#000;font-weight:600;margin-bottom:35px}.table-shadow[_ngcontent-%COMP%]{background:#fff;padding:10px;border-radius:15px;box-shadow:0 0 20px #d7d7d7}.caption-top[_ngcontent-%COMP%]{caption-side:top}caption[_ngcontent-%COMP%]{color:#000;font-size:20px;padding:0 0 12px;font-weight:600}.custom-form-control[_ngcontent-%COMP%]{width:100%;border:1px solid #c7c7c7;padding:10px 12px;border-radius:10px}.custom-form-control[_ngcontent-%COMP%]:focus{border-color:#000}.custom-form-control[_ngcontent-%COMP%]:focus-visible{outline:none}.table-header-fix[_ngcontent-%COMP%]{position:relative;max-height:400px}.table-header-fix[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:-10px}.direct-view-data[_ngcontent-%COMP%]{background:#f3fffe!important}.map-view-data[_ngcontent-%COMP%]{background:#fcffdc!important}"]}),e})();var jc=function(e){return e.Order="Order",e.PressRelease="Press Release",e.Scheme="Scheme",e.DepartmentProfile="Department Profile",e.GeneralEntry="General Entry",e.Project="Project",e}({}),$c=function(e){return e.GovtDocument="GOVERNMENT DOCUMENT",e.GeneralEntry="GENERAL ENTRY",e}({});function Yc(e,t){if(1&e&&(m.lc(),m.kc(),m.ac(0,"a",19),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.vc("routerLink","/home/press-release-list/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function qc(e,t){if(1&e&&(m.ac(0,"a",20),m.ac(1,"div",21),m.Vc(2),m.nc(3,"date"),m.Zb(),m.ac(4,"div",22),m.Vc(5),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc();m.vc("routerLink","/home/press-release/",null==e?null:e.Id,""),m.Hb(2),m.Xc(" ","en"==n.translate.currentLang?m.pc(3,3,null==e?null:e.PressreleaseDate,"dd MMM, yyyy"):null==e?null:e.PressreleaseDateHindi," "),m.Hb(3),m.Xc(" ",null==e?null:e.Description," ")}}function Jc(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Kc(e,t){1&e&&m.Wb(0,"app-no-records")}function Qc(e,t){if(1&e&&(m.lc(),m.kc(),m.ac(0,"a",19),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.vc("routerLink","/pages/department-order/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function eo(e,t){if(1&e&&(m.ac(0,"a",20),m.ac(1,"div",21),m.Vc(2),m.nc(3,"date"),m.Zb(),m.ac(4,"div",22),m.Vc(5),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.mc(),m.vc("routerLink","/order/detail/",null==e?null:e.Id,""),m.Hb(2),m.Xc(" ",m.pc(3,3,null==e?null:e.Date,"dd MMM, yyyy")," "),m.Hb(3),m.Xc(" ",null==e?null:e.Title," ")}}function to(e,t){1&e&&m.Wb(0,"app-mini-loader")}function no(e,t){1&e&&m.Wb(0,"app-no-records")}function io(e,t){if(1&e&&(m.lc(),m.kc(),m.ac(0,"a",19),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc(2);m.vc("routerLink","/pages/tender-list/",e.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function ao(e,t){if(1&e&&(m.ac(0,"a",25),m.ac(1,"div",21),m.Vc(2),m.nc(3,"date"),m.Zb(),m.ac(4,"div",22),m.Vc(5),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.mc(2),m.uc("href",null==e?null:e.SoftCopyURL,m.Pc),m.Hb(2),m.Xc(" ",m.pc(3,3,null==e?null:e.ReleaseDate,"dd MMM, yyyy")," "),m.Hb(3),m.Xc(" ",null==e?null:e.NITPurpose," ")}}function co(e,t){1&e&&m.Wb(0,"app-mini-loader")}function oo(e,t){1&e&&m.Wb(0,"app-no-records")}function lo(e,t){if(1&e&&(m.ac(0,"div",2),m.ac(1,"div",3),m.ac(2,"div",4),m.ac(3,"div",5),m.lc(),m.ac(4,"svg",23),m.Wb(5,"path",17),m.Zb(),m.Vc(6),m.nc(7,"translate"),m.Zb(),m.Tc(8,io,3,4,"a",9),m.Zb(),m.kc(),m.ac(9,"div",10),m.Tc(10,ao,6,6,"a",24),m.Tc(11,co,1,0,"app-mini-loader",12),m.Tc(12,oo,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(6),m.Xc(" ",m.oc(7,5,"Tender_txt")," "),m.Hb(2),m.tc("ngIf",(null==e.tenderModel?null:e.tenderModel.length)>0),m.Hb(2),m.tc("ngForOf",e.tenderModel),m.Hb(1),m.tc("ngIf",!e.tenderModel),m.Hb(1),m.tc("ngIf",e.tenderModel&&0==e.tenderModel.length)}}const ro=function(e){return[e]};function so(e,t){if(1&e&&(m.lc(),m.kc(),m.ac(0,"a",19),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.tc("routerLink",m.Ec(4,ro,"/pages/department-order/latest/"+e.DepartmentCode)),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function mo(e,t){if(1&e&&(m.Yb(0),m.Vc(1),m.nc(2,"date"),m.Xb()),2&e){const e=m.mc(4).$implicit;m.Hb(1),m.Xc(" ",m.pc(2,1,null==e?null:e.AchievementDate,"dd MMM, yyyy")," ")}}function uo(e,t){if(1&e&&m.Vc(0),2&e){const e=m.mc(4).$implicit;m.Xc(" ",null==e?null:e.AchievementDateHindi," ")}}function bo(e,t){if(1&e&&(m.ac(0,"div",21),m.Tc(1,mo,3,4,"ng-container",26),m.Tc(2,uo,1,1,"ng-template",null,30,m.Uc),m.Zb()),2&e){const e=m.Kc(3),t=m.mc(4);m.Hb(1),m.tc("ngIf","en"==t.translate.currentLang)("ngIfElse",e)}}function go(e,t){if(1&e&&(m.Yb(0),m.ac(1,"a",25),m.Tc(2,bo,4,2,"div",29),m.ac(3,"div",22),m.Vc(4),m.Zb(),m.Zb(),m.Xb()),2&e){const e=m.mc(2).$implicit,t=m.mc();m.Hb(1),m.uc("href",null==e?null:e.Url,m.Pc),m.Hb(1),m.tc("ngIf",null==e?null:e.AchievementDate),m.Hb(2),m.Xc(" ","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi," ")}}function ho(e,t){if(1&e&&(m.Yb(0),m.Vc(1),m.nc(2,"date"),m.Xb()),2&e){const e=m.mc(4).$implicit;m.Hb(1),m.Xc(" ",m.pc(2,1,null==e?null:e.AchievementDate,"dd MMM, yyyy")," ")}}function po(e,t){if(1&e&&m.Vc(0),2&e){const e=m.mc(4).$implicit;m.Xc(" ",null==e?null:e.AchievementDateHindi," ")}}function fo(e,t){if(1&e&&(m.ac(0,"div",21),m.Tc(1,ho,3,4,"ng-container",26),m.Tc(2,po,1,1,"ng-template",null,30,m.Uc),m.Zb()),2&e){const e=m.Kc(3),t=m.mc(4);m.Hb(1),m.tc("ngIf","en"==t.translate.currentLang)("ngIfElse",e)}}function vo(e,t){if(1&e&&(m.ac(0,"a",25),m.Tc(1,fo,4,2,"div",29),m.ac(2,"div",22),m.Vc(3),m.Zb(),m.Zb()),2&e){const e=m.mc(2).$implicit,t=m.mc();m.uc("href",null==e?null:e.PdfFIleName,m.Pc),m.Hb(1),m.tc("ngIf",null==e?null:e.AchievementDate),m.Hb(2),m.Xc(" ","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi," ")}}function Co(e,t){if(1&e&&(m.Yb(0),m.Tc(1,go,5,3,"ng-container",26),m.Tc(2,vo,4,3,"ng-template",null,28,m.Uc),m.Xb()),2&e){const e=m.Kc(3),t=m.mc().$implicit;m.Hb(1),m.tc("ngIf",(null==t?null:null==t.Url?null:t.Url.length)>0)("ngIfElse",e)}}function Ho(e,t){if(1&e&&(m.Yb(0),m.Vc(1),m.nc(2,"date"),m.Xb()),2&e){const e=m.mc(3).$implicit;m.Hb(1),m.Xc(" ",m.pc(2,1,null==e?null:e.AchievementDate,"dd MMM, yyyy")," ")}}function Do(e,t){if(1&e&&m.Vc(0),2&e){const e=m.mc(3).$implicit;m.Xc(" ",null==e?null:e.AchievementDateHindi," ")}}function Mo(e,t){if(1&e&&(m.ac(0,"div",21),m.Tc(1,Ho,3,4,"ng-container",26),m.Tc(2,Do,1,1,"ng-template",null,30,m.Uc),m.Zb()),2&e){const e=m.Kc(3),t=m.mc(3);m.Hb(1),m.tc("ngIf","en"==t.translate.currentLang)("ngIfElse",e)}}function Io(e,t){if(1&e&&(m.ac(0,"a",20),m.Tc(1,Mo,4,2,"div",29),m.ac(2,"div",22),m.Vc(3),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc();m.vc("routerLink","/order/detail/",null==e?null:e.Id,""),m.Hb(1),m.tc("ngIf",null==e?null:e.AchievementDate),m.Hb(2),m.Xc(" ","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi," ")}}function Zo(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Co,4,2,"ng-container",26),m.Tc(2,Io,4,3,"ng-template",null,27,m.Uc),m.Xb()),2&e){const e=t.$implicit,n=m.Kc(3),i=m.mc();m.Hb(1),m.tc("ngIf",(null==e?null:e.ModuleName)==i.moduleType.GeneralEntry)("ngIfElse",n)}}function To(e,t){1&e&&m.Wb(0,"app-mini-loader")}function yo(e,t){1&e&&m.Wb(0,"app-no-records")}function xo(e,t){1&e&&(m.lc(),m.kc(),m.ac(0,"a",35),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"ViewAll_txt")," "))}function Po(e,t){1&e&&m.Wb(0,"i",37)}function So(e,t){if(1&e&&(m.ac(0,"a",20),m.ac(1,"div",21),m.Tc(2,Po,1,0,"i",36),m.Vc(3),m.nc(4,"date"),m.Zb(),m.ac(5,"div",22),m.Vc(6),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.mc(2),m.vc("routerLink","/order/detail/",null==e?null:e.Id,""),m.Hb(2),m.tc("ngIf",!(null!=e&&e.Date)),m.Hb(1),m.Xc(" ",m.pc(4,4,null==e?null:e.Date,"dd MMM, yyyy")," "),m.Hb(3),m.Xc(" ",null==e?null:e.Title," ")}}function _o(e,t){1&e&&m.Wb(0,"app-mini-loader")}function wo(e,t){1&e&&m.Wb(0,"app-no-records")}function Lo(e,t){if(1&e&&(m.ac(0,"div",2),m.ac(1,"div",3),m.ac(2,"div",4),m.ac(3,"div"),m.ac(4,"div",5),m.lc(),m.ac(5,"svg",31),m.Wb(6,"path",32),m.Wb(7,"path",33),m.Zb(),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.Zb(),m.Tc(10,xo,3,3,"a",34),m.Zb(),m.kc(),m.ac(11,"div",10),m.Tc(12,So,7,7,"a",11),m.Tc(13,_o,1,0,"app-mini-loader",12),m.Tc(14,wo,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(8),m.Xc(" ",m.oc(9,5,"AdminDeptUpdate_txt")," "),m.Hb(2),m.tc("ngIf",(null==e.OthetDepartmentLatestUpdatesModel?null:e.OthetDepartmentLatestUpdatesModel.length)>0),m.Hb(2),m.tc("ngForOf",e.OthetDepartmentLatestUpdatesModel),m.Hb(1),m.tc("ngIf",!e.OthetDepartmentLatestUpdatesModel),m.Hb(1),m.tc("ngIf",e.OthetDepartmentLatestUpdatesModel&&0==e.OthetDepartmentLatestUpdatesModel.length)}}let Vo=(()=>{class e{constructor(e,t,n,i,a){this._commonService=e,this._dptDistrictWebsiteService=t,this.translate=n,this.sanitizer=i,this._route=a,this.IsCodeOfConduct=!0,this.DepartmentCode=0,this.IsDistrictDepartmentCode=!1,this.IsDisplayAdmDeptUpdates=!1,this.DistrictDepartmentCode=0,this.isDistrict=!1,this.moduleType=$c,this.orderType=gc.e,this.orderSubType=gc.d,this.IsHideTenderFromHome=!1,this.IsCodeOfConduct=this._commonService.IsCodeOfConduct()}ngOnInit(){this._route.paramMap.subscribe(e=>{this.isDistrict=this._commonService.IsDistrict(),this.GetPressReleaseData(),this.GetTenderData(),this.GetOrderData(),this.GetGeneralEntryData(),this.GetOthetDepartmentLatestUpdatesData(),this.IsHideTenderFromHome="true"==localStorage.getItem("IsHideTenderFromHome")})}GetData(){this.model=void 0,0==this.DepartmentCode&&(this.DepartmentCode=this._commonService.GetWebDistDeptCode()),this.isDistrict?this._dptDistrictWebsiteService.GetOrderPressReleaseTenderData(0,this.DepartmentCode).subscribe(e=>{e.IsSuccess?this.model=e.Data:this.clearData()},e=>{this.clearData()}):this._dptDistrictWebsiteService.GetOrderPressReleaseTenderData(this.DepartmentCode,0).subscribe(e=>{e.IsSuccess?this.model=e.Data:this.clearData()},e=>{this.clearData()})}GetPressReleaseData(){this.pressReleaseModel=void 0,0==this.DepartmentCode&&(this.DepartmentCode=this._commonService.GetWebDistDeptCode()),this.isDistrict?this._dptDistrictWebsiteService.GetPressReleaseData(0,this.DepartmentCode).subscribe(e=>{this.pressReleaseModel=e.IsSuccess?e.Data:[]},e=>{this.pressReleaseModel=[]}):this._dptDistrictWebsiteService.GetPressReleaseData(this.DepartmentCode,0).subscribe(e=>{this.pressReleaseModel=e.IsSuccess?e.Data:[]},e=>{this.pressReleaseModel=[]})}GetTenderData(){this.tenderModel=void 0,0==this.DepartmentCode&&(this.DepartmentCode=this._commonService.GetWebDistDeptCode()),this.isDistrict?this._dptDistrictWebsiteService.GetTenderData(0,this.DepartmentCode).subscribe(e=>{this.tenderModel=e.IsSuccess?e.Data:[]},e=>{this.tenderModel=[]}):this._dptDistrictWebsiteService.GetTenderData(this.DepartmentCode,0).subscribe(e=>{this.tenderModel=e.IsSuccess?e.Data:[]},e=>{this.tenderModel=[]})}GetOrderData(){this.OrderModel=void 0,0==this.DepartmentCode&&(this.DepartmentCode=this._commonService.GetWebDistDeptCode()),this.isDistrict?this._dptDistrictWebsiteService.GetOrderData(0,this.DepartmentCode).subscribe(e=>{this.OrderModel=e.IsSuccess?e.Data:[]},e=>{this.OrderModel=[]}):this._dptDistrictWebsiteService.GetOrderData(this.DepartmentCode,0).subscribe(e=>{this.OrderModel=e.IsSuccess?e.Data:[]},e=>{this.OrderModel=[]})}GetGeneralEntryData(){this.GeneralEntryModel=void 0,0==this.DepartmentCode&&(this.DepartmentCode=this._commonService.GetWebDistDeptCode()),this.isDistrict?this._dptDistrictWebsiteService.GetGeneralEntryData(0,this.DepartmentCode).subscribe(e=>{this.GeneralEntryModel=e.IsSuccess?e.Data:[]},e=>{this.GeneralEntryModel=[]}):this._dptDistrictWebsiteService.GetGeneralEntryData(this.DepartmentCode,0).subscribe(e=>{this.GeneralEntryModel=e.IsSuccess?e.Data:[]},e=>{this.GeneralEntryModel=[]})}GetOthetDepartmentLatestUpdatesData(){this.OthetDepartmentLatestUpdatesModel=void 0,0==this.DepartmentCode&&(this.DepartmentCode=this._commonService.GetWebDistDeptCode()),this.isDistrict?this._dptDistrictWebsiteService.GetOthetDepartmentLatestUpdatesData(0,this.DepartmentCode).subscribe(e=>{this.OthetDepartmentLatestUpdatesModel=e.IsSuccess?e.Data:[]},e=>{this.OthetDepartmentLatestUpdatesModel=[]}):this._dptDistrictWebsiteService.GetOthetDepartmentLatestUpdatesData(this.DepartmentCode,0).subscribe(e=>{this.OthetDepartmentLatestUpdatesModel=e.IsSuccess?e.Data:[]},e=>{this.OthetDepartmentLatestUpdatesModel=[]})}clearData(){this.model.PressReleaseList=[],this.model.GovDocumentList=[],this.model.TenderList=[],this.model.GeneralEntryList=[],this.model.OtherDeptLatestUpdateList=[]}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(g.a),m.Vb(p.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-order-tender-pressrelease"]],inputs:{DepartmentCode:"DepartmentCode",IsDistrictDepartmentCode:"IsDistrictDepartmentCode",IsDisplayAdmDeptUpdates:"IsDisplayAdmDeptUpdates",BackGroundClass:"BackGroundClass"},decls:45,vars:26,consts:[[1,"container-fluid"],[1,"row"],[1,"middle-content-items-card"],[1,"middle-content-custom-card","h-100"],[1,"custom-card-title","d-flex","align-items-center","justify-content-between","px-3"],[1,"d-flex","align-items-center"],["xmlns","http://www.w3.org/2000/svg","width","30","height","30","fill","#5e7428","viewBox","0 0 16 16",1,"mr-2"],["d","M7.84 4.1a.178.178 0 0 1 .32 0l.634 1.285a.178.178 0 0 0 .134.098l1.42.206c.145.021.204.2.098.303L9.42 6.993a.178.178 0 0 0-.051.158l.242 1.414a.178.178 0 0 1-.258.187l-1.27-.668a.178.178 0 0 0-.165 0l-1.27.668a.178.178 0 0 1-.257-.187l.242-1.414a.178.178 0 0 0-.05-.158l-1.03-1.001a.178.178 0 0 1 .098-.303l1.42-.206a.178.178 0 0 0 .134-.098L7.84 4.1z"],["d","M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v13.5a.5.5 0 0 1-.777.416L8 13.101l-5.223 2.815A.5.5 0 0 1 2 15.5V2zm2-1a1 1 0 0 0-1 1v12.566l4.723-2.482a.5.5 0 0 1 .554 0L13 14.566V2a1 1 0 0 0-1-1H4z"],["class","btn btn-round btn-theme",3,"routerLink",4,"ngIf"],[1,"custom-card-body"],["class","middle-content-items mb-2",3,"routerLink",4,"ngFor","ngForOf"],[4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","30","height","30","fill","#a71515","viewBox","0 0 16 16",1,"mr-2"],["d","M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z"],["class","middle-content-items-card",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","25","height","25","fill","#024a76","viewBox","0 0 16 16",1,"mr-2"],["fill-rule","evenodd","d","M0 .5A.5.5 0 0 1 .5 0h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 0 .5Zm4 0a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1h-10A.5.5 0 0 1 4 .5Zm-4 2A.5.5 0 0 1 .5 2h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm-4 2A.5.5 0 0 1 .5 4h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm-4 2A.5.5 0 0 1 .5 6h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1h-8a.5.5 0 0 1-.5-.5Zm-4 2A.5.5 0 0 1 .5 8h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1h-8a.5.5 0 0 1-.5-.5Zm-4 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1h-10a.5.5 0 0 1-.5-.5Zm-4 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm-4 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5Zm4 0a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Z"],[4,"ngFor","ngForOf"],[1,"btn","btn-round","btn-theme",3,"routerLink"],[1,"middle-content-items","mb-2",3,"routerLink"],[1,"middle-content-date"],[1,"middle-content-info"],["xmlns","http://www.w3.org/2000/svg","width","30","height","30","fill","#024a76","viewBox","0 0 16 16",1,"mr-2"],["target","_blank","class","middle-content-items mb-2",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"middle-content-items","mb-2",3,"href"],[4,"ngIf","ngIfElse"],["govtDoc",""],["elsePDF",""],["class","middle-content-date",4,"ngIf"],["hindiDate",""],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8409b1","viewBox","0 0 16 16",1,"mr-2"],["d","M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z"],["d","M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"],["routerLink","/pages/admin-department-updates","class","btn btn-round btn-theme",4,"ngIf"],["routerLink","/pages/admin-department-updates",1,"btn","btn-round","btn-theme"],["class","fas fa-calendar",4,"ngIf"],[1,"fas","fa-calendar"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"div",3),m.ac(5,"div",4),m.ac(6,"div",5),m.lc(),m.ac(7,"svg",6),m.Wb(8,"path",7),m.Wb(9,"path",8),m.Zb(),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.Tc(12,Yc,3,4,"a",9),m.Zb(),m.kc(),m.ac(13,"div",10),m.Tc(14,qc,6,6,"a",11),m.Tc(15,Jc,1,0,"app-mini-loader",12),m.Tc(16,Kc,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.ac(17,"div",2),m.ac(18,"div",3),m.ac(19,"div",4),m.ac(20,"div",5),m.lc(),m.ac(21,"svg",13),m.Wb(22,"path",14),m.Zb(),m.Vc(23),m.nc(24,"translate"),m.Zb(),m.Tc(25,Qc,3,4,"a",9),m.Zb(),m.kc(),m.ac(26,"div",10),m.Tc(27,eo,6,6,"a",11),m.Tc(28,to,1,0,"app-mini-loader",12),m.Tc(29,no,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.Tc(30,lo,13,7,"div",15),m.ac(31,"div",2),m.ac(32,"div",3),m.ac(33,"div",4),m.ac(34,"div",5),m.lc(),m.ac(35,"svg",16),m.Wb(36,"path",17),m.Zb(),m.Vc(37),m.nc(38,"translate"),m.Zb(),m.Tc(39,so,3,6,"a",9),m.Zb(),m.kc(),m.ac(40,"div",10),m.Tc(41,Zo,4,2,"ng-container",18),m.Tc(42,To,1,0,"app-mini-loader",12),m.Tc(43,yo,1,0,"app-no-records",12),m.Zb(),m.Zb(),m.Zb(),m.Tc(44,Lo,15,7,"div",15),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("middle-content ",t.BackGroundClass,""),m.Hb(10),m.Xc(" ",m.oc(11,20,"Press_Releases_txt")," "),m.Hb(2),m.tc("ngIf",(null==t.pressReleaseModel?null:t.pressReleaseModel.length)>0),m.Hb(2),m.tc("ngForOf",t.pressReleaseModel),m.Hb(1),m.tc("ngIf",!t.pressReleaseModel),m.Hb(1),m.tc("ngIf",t.pressReleaseModel&&0==t.pressReleaseModel.length),m.Hb(7),m.Xc(" ",m.oc(24,22,"Government_Documents_txt")," "),m.Hb(2),m.tc("ngIf",(null==t.OrderModel?null:t.OrderModel.length)>0),m.Hb(2),m.tc("ngForOf",t.OrderModel),m.Hb(1),m.tc("ngIf",!t.OrderModel),m.Hb(1),m.tc("ngIf",t.OrderModel&&0==t.OrderModel.length),m.Hb(1),m.tc("ngIf",!t.IsHideTenderFromHome),m.Hb(7),m.Xc(" ",m.oc(38,24,"LatestUpdatetitle_txt")," "),m.Hb(2),m.tc("ngIf",(null==t.GeneralEntryModel?null:t.GeneralEntryModel.length)>0),m.Hb(2),m.tc("ngForOf",t.GeneralEntryModel),m.Hb(1),m.tc("ngIf",!t.GeneralEntryModel),m.Hb(1),m.tc("ngIf",t.GeneralEntryModel&&0==t.GeneralEntryModel.length),m.Hb(1),m.tc("ngIf",!t.isDistrict&&t.IsDisplayAdmDeptUpdates))},directives:[i.n,i.m,h.d,v.a,C.a],pipes:[c.c,i.e],styles:[""]}),e})();function ko(e,t){if(1&e&&(m.ac(0,"p",12),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(1),m.Wc("en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi)}}function No(e,t){if(1&e){const e=m.bc();m.ac(0,"div"),m.ac(1,"a",8),m.ac(2,"div",9),m.ac(3,"img",10),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/loader.gif")})),m.Zb(),m.Tc(4,ko,2,1,"p",11),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(1),m.uc("href",null==e?null:e.Url,m.Pc),m.Hb(2),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("alt","en"==n.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.uc("title","en"==n.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(1),m.tc("ngIf",!(null!=e&&e.ImagePath))}}function Oo(e,t){if(1&e&&(m.Yb(0),m.Tc(1,No,5,5,"div",7),m.Xb()),2&e){const e=m.mc(2);m.Hb(1),m.tc("ngForOf",e.LinkModel)}}function Ao(e,t){if(1&e&&(m.ac(0,"p",12),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(1),m.Wc("en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi)}}function Wo(e,t){if(1&e){const e=m.bc();m.ac(0,"div"),m.ac(1,"a",8),m.ac(2,"div",9),m.ac(3,"img",10),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/loader.gif")})),m.Zb(),m.Tc(4,Ao,2,1,"p",11),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(1),m.uc("href",null==e?null:e.Url,m.Pc),m.Hb(2),m.uc("src",null==e?null:e.ImagePath,m.Pc),m.uc("alt","en"==n.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.uc("title","en"==n.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(1),m.tc("ngIf",!(null!=e&&e.ImagePath))}}function Eo(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Wo,5,5,"div",7),m.Xb()),2&e){const e=m.mc(2);m.Hb(1),m.tc("ngForOf",e.generalEntryLinks)}}function Go(e,t){if(1&e&&(m.ac(0,"div",6),m.Tc(1,Oo,2,1,"ng-container",5),m.Tc(2,Eo,2,1,"ng-container",5),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",e.linkTypeCode==e.linkTypeCodeEnum.OtherImportantLinkType_Both||e.linkTypeCode==e.linkTypeCodeEnum.OtherImportantLinkType_OnlyDefaultLinks),m.Hb(1),m.tc("ngIf",e.linkTypeCode==e.linkTypeCodeEnum.OtherImportantLinkType_Both||e.linkTypeCode==e.linkTypeCodeEnum.OtherImportantLinkType_OnlyLinksFromGeneralEntry)}}function Fo(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Ro(e,t){1&e&&m.Wb(0,"app-no-records")}let Xo=(()=>{class e{constructor(e,t,n,i,a){this._achievementService=e,this.sanitizer=t,this.translate=n,this._departmentService=i,this._commonService=a,this.linkTypeCode=0,this.linkTypeCodeEnum=xi.a,this.achievementEnum=o.a,this.DepartmentCode=0}ngOnInit(){this.getImportantLinkData(),this._departmentService.getDepartmentDetail().subscribe(e=>{e&&(this.linkTypeCode=e.OtherImportantLinkTypeCode,this.generalEntryLinks=e.OtherImportantLinks)})}getImportantLinkData(){this.LinkModel=void 0;let e=new l.b;e.IndexModel.OrderBy="AchievementDate",e.IndexModel.OrderByAsc=0,e.IndexModel.PageSize=5,e.IsURLRequired=!0,e.CategoryCode=this.achievementEnum.WebImportantLinksCode,e.DepartmentCode=vi.a.ChiranjeeviPortal,e.IsActive=!0,this._achievementService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{e.IsSuccess?(this.LinkModel=e.Data.Data,this.LinkModel.map(e=>{e.SafeUrl=this.SafeUrl(e.Url)}),setTimeout(()=>{this.AddSlider()},50)):this.LinkModel=[]},e=>{this.LinkModel=[]})}sanitizeUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}SafeUrl(e){var t,n;return null==e?"":new RegExp(/\/view(v|V?)/i).test(e)?(e=null===(n=e)||void 0===n?void 0:n.replace(/\/view(v|V?)/i,"/preview"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):(e=null===(t=e)||void 0===t?void 0:t.replace(/\/watch\?(v|V\?)=/g,"/embed/"),this.sanitizer.bypassSecurityTrustResourceUrl(e))}AddSlider(){$(".slider-items-4").slick({dots:this.LinkModel.length>4,infinite:!0,autoplay:!0,autoplaySpeed:4e3,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1400,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(b.b),m.Vb(c.d),m.Vb(In.a),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-other-impt-link"]],inputs:{BackGroundClass:"BackGroundClass",DepartmentCode:"DepartmentCode"},decls:10,vars:9,consts:[[1,"container"],[1,"row","w-100","m-0"],[1,"col-lg-12"],[1,"section-title","text-center"],["class","slider-items-4 container p-0 m-0",4,"ngIf"],[4,"ngIf"],[1,"slider-items-4","container","p-0","m-0"],[4,"ngFor","ngForOf"],["target","_blank",1,"website-impo-links-items","d-block","text-center",3,"href"],[1,"website-impo-links-items-img"],[3,"src","alt","title","error"],["class","impo-links-default-text",4,"ngIf"],[1,"impo-links-default-text"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"div",3),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb(),m.Tc(7,Go,3,2,"div",4),m.Tc(8,Fo,1,0,"app-mini-loader",5),m.Tc(9,Ro,1,0,"app-no-records",5),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("website-impo-links ",t.BackGroundClass,""),m.Hb(5),m.Wc(m.oc(6,7,"OtherImportantLinks_txt")),m.Hb(2),m.tc("ngIf",t.LinkModel&&(null==t.LinkModel?null:t.LinkModel.length)>0||t.generalEntryLinks&&(null==t.generalEntryLinks?null:t.generalEntryLinks.length)>0),m.Hb(1),m.tc("ngIf",!t.LinkModel),m.Hb(1),m.tc("ngIf",t.LinkModel&&0==t.LinkModel.length))},directives:[i.n,i.m,v.a,C.a],pipes:[c.c],styles:[""]}),e})();function Bo(e,t){if(1&e&&(m.ac(0,"a",12),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("routerLink",e.Url),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function Uo(e,t){if(1&e&&(m.ac(0,"small"),m.ac(1,"strong"),m.Vc(2,"Date:"),m.Zb(),m.Vc(3),m.nc(4,"date"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(3),m.Xc(" ","hi"==t.translate.currentLang?null==e?null:e.DateHindi:m.pc(4,1,null==e?null:e.Date,t.DateFormat)," ")}}const zo=function(e){return{cursor:e}};function jo(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"li",13),m.ac(2,"a",14),m.ic("click",(function(){m.Mc(e);const n=t.$implicit;return m.mc(3).OpenUrl(null==n?null:n.RedirectURL)})),m.ac(3,"div",15),m.ac(4,"img",16),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/doc_default.png")})),m.Zb(),m.Zb(),m.ac(5,"div",17),m.ac(6,"h6"),m.Vc(7),m.Zb(),m.Tc(8,Uo,5,4,"small",0),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(2),m.tc("ngStyle",m.Ec(6,zo,null!=e&&e.RedirectURL?"pointer":null!=e&&e.RedirectURL?"auto":null)),m.Hb(2),m.uc("src",null==e?null:e.IconPath,m.Pc),m.uc("alt","hi"==n.translate.currentLang?null==e?null:e.NameHindi:null==e?null:e.Name),m.uc("title","hi"==n.translate.currentLang?null==e?null:e.NameHindi:null==e?null:e.Name),m.Hb(3),m.Wc("hi"==n.translate.currentLang?null==e?null:e.NameHindi:null==e?null:e.Name),m.Hb(1),m.tc("ngIf",null==e?null:e.Date)}}function $o(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",3),m.ac(2,"div",4),m.ac(3,"div",5),m.ac(4,"div",6),m.ac(5,"div",7),m.Vc(6),m.Zb(),m.Tc(7,Bo,3,4,"a",8),m.Zb(),m.ac(8,"div",9),m.ac(9,"ul",10),m.Tc(10,jo,9,8,"ng-container",11),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc(2);m.Lb("document home-doc-new-section mt-0 ",n.BackGroundClass,""),m.Hb(6),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish," "),m.Hb(1),m.tc("ngIf",(null==e?null:e.OtherLinkList.length)>0),m.Hb(3),m.tc("ngForOf",null==e?null:e.OtherLinkList)}}function Yo(e,t){if(1&e&&(m.Yb(0),m.Tc(1,$o,11,6,"section",2),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",e.tranSubMenuList)}}function qo(e,t){if(1&e&&(m.ac(0,"p"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.Xc(" ",null==e.DepartmentData?null:e.DepartmentData.HomePageCatDesc," ")}}function Jo(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"a",22),m.ic("click",(function(){m.Mc(e);const n=t.$implicit;return m.mc(2).redirectToImpLink(n)})),m.ac(2,"div",23),m.ac(3,"img",16),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/icon-achievements-list.png")})),m.Zb(),m.Zb(),m.ac(4,"p",24),m.Vc(5),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.uc("src",null==e?null:e.IconImage,m.Pc),m.uc("alt","hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish),m.uc("title","hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish),m.Hb(2),m.Wc("hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish)}}function Ko(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",3),m.ac(2,"div",18),m.ac(3,"div",19),m.ac(4,"div",20),m.ac(5,"h1"),m.Vc(6),m.Zb(),m.Tc(7,qo,2,1,"p",0),m.Zb(),m.ac(8,"div",21),m.Tc(9,Jo,6,4,"ng-container",11),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("link-new-d-1 ",e.BackGroundClass,""),m.Hb(6),m.Xc(" ","en"==e.translate.currentLang?null==e.DepartmentData?null:e.DepartmentData.WebsiteDynamicCategory:null==e.DepartmentData?null:e.DepartmentData.WebsiteDynamictransaction," "),m.Hb(1),m.tc("ngIf",null==e.DepartmentData?null:e.DepartmentData.HomePageCatDesc),m.Hb(2),m.tc("ngForOf",e.catSubMenuList)}}function Qo(e,t){if(1&e){const e=m.bc();m.ac(0,"div",32),m.ac(1,"a",33),m.ic("click",(function(){m.Mc(e);const n=t.$implicit;return m.mc(3).redirectToImpLink(n)})),m.ac(2,"img",16),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/icon-achievements-list.png")})),m.Zb(),m.ac(3,"span"),m.Vc(4),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(3);m.Hb(2),m.uc("src",null==e?null:e.IconImage,m.Pc),m.uc("alt","hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish),m.uc("title","hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish),m.Hb(2),m.Xc(" ","hi"==n.translate.currentLang?null==e?null:e.DisplayNameHindi:null==e?null:e.DisplayNameEnglish," ")}}function el(e,t){if(1&e&&(m.ac(0,"div",28),m.ac(1,"div",29),m.Vc(2),m.Zb(),m.ac(3,"div",30),m.Tc(4,Qo,5,4,"div",31),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(2),m.Xc(" ","en"==e.translate.currentLang?null==e.DepartmentData?null:e.DepartmentData.WebsiteDynamicCategory:null==e.DepartmentData?null:e.DepartmentData.WebsiteDynamictransaction," "),m.Hb(2),m.tc("ngForOf",e.catSubMenuList)}}function tl(e,t){if(1&e&&(m.ac(0,"li",39),m.ac(1,"a",40),m.Wb(2,"i",41),m.Vc(3),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(1),m.Lb("nav-link ",0==n?"active":"",""),m.vc("href","#tab_",e.Id,"",m.Pc),m.Hb(2),m.Wc("en"==i.translate.currentLang?e.DisplayNameEnglish:e.DisplayNameHindi)}}function nl(e,t){if(1&e&&(m.ac(0,"div",46),m.ac(1,"h3",47),m.Vc(2),m.Zb(),m.ac(3,"p",48),m.Vc(4),m.nc(5,"date"),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc(4);m.Hb(2),m.Wc("en"==n.translate.currentLang?e.Name:e.NameHindi),m.Hb(2),m.Xc(" ","en"==n.translate.currentLang?m.pc(5,2,null==e?null:e.Date,"d MMM, y"):null==e?null:e.DateHindi," ")}}function il(e,t){1&e&&m.Wb(0,"app-no-records",49),2&e&&m.tc("showImage",!1)}function al(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",42),m.ac(2,"div",43),m.Tc(3,nl,6,5,"div",44),m.Tc(4,il,1,1,"app-no-records",45),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index;m.Hb(1),m.Lb("tab-pane fade ",0==n?"show active":"",""),m.vc("id","tab_",e.Id,""),m.Hb(2),m.tc("ngForOf",e.OtherLinkList),m.Hb(1),m.tc("ngIf",e.OtherLinkList&&0==e.OtherLinkList.length)}}function cl(e,t){if(1&e&&(m.ac(0,"div",34),m.ac(1,"div",35),m.ac(2,"ul",36),m.Tc(3,tl,4,5,"li",37),m.Zb(),m.ac(4,"div",38),m.Tc(5,al,5,6,"ng-container",11),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(3),m.tc("ngForOf",e.tabsList),m.Hb(2),m.tc("ngForOf",e.tabsList)}}function ol(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",25),m.ac(2,"div",18),m.Tc(3,el,5,2,"div",26),m.Tc(4,cl,6,2,"div",27),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("home-new-document-design home-ext-link pb-5 w-100 ",e.BackGroundClass,""),m.Hb(3),m.tc("ngIf",e.catSubMenuList&&(null==e.catSubMenuList?null:e.catSubMenuList.length)>0),m.Hb(1),m.tc("ngIf",e.tabsList&&e.tabsList.length>0)}}let ll=(()=>{class e{constructor(e,t,n,i,a){this.translate=e,this._commonService=t,this._dptDistrictWebsiteService=n,this._departmentService=i,this._router=a,this.deptCode=0,this.tranSubMenuList=[],this.catSubMenuList=[],this.tabsList=[],this.enumdata=xi.a,this.DateFormat=d.a.DateFormat,this.deptCode=this._commonService.GetWebDistDeptCode();let c=this._commonService.getTemplateName();this.isUniveristyTemplate=c==ga.b.University}ngOnInit(){this._departmentService.getDeptMenuList().subscribe(e=>{e&&(this.menuListModel=e)}),this.GetTransactionSubMenues(),this.GetCategorySubMenues(),this.GetTabRecords()}GetTransactionSubMenues(){let e=new ha.d;e.DepartmentCode=this.deptCode,e.CommonCategoryCode=this.enumdata.TransactionSubMenu,e.TopCount=3,this._dptDistrictWebsiteService.GetDptWebsiteSubMenus(e).subscribe(e=>{e.IsSuccess&&(this.tranSubMenuList=e.Data)},e=>{console.error(e)})}GetCategorySubMenues(){let e=new ha.d;e.DepartmentCode=this.deptCode,e.CommonCategoryCode=this.enumdata.CategorySubMenu,e.TopCount=5,this._dptDistrictWebsiteService.GetDptWebsiteSubMenus(e).subscribe(e=>{e.IsSuccess&&(this.catSubMenuList=e.Data)},e=>{console.error(e)})}GetTabRecords(){let e=new ha.d;e.DepartmentCode=this.deptCode,e.CommonCategoryCode=this.enumdata.DisplayInTabOnHomePage,e.TopCount=5,this._dptDistrictWebsiteService.GetDptWebsiteSubMenus(e).subscribe(e=>{e.IsSuccess&&(this.tabsList=e.Data)},e=>{console.error(e)})}OpenUrl(e){e&&(open("'url'","_blank").location.href=e)}redirectToImpLink(e){var t,n,i;let a=void 0,c=void 0;e.RedirectionManagementRadio==xi.a.URLOfSameWebsiteOtherWebsite&&(a=null===(t=e)||void 0===t?void 0:t.RedirectionURL),e.RedirectionManagementRadio==xi.a.PDFFileUpload?a=null===(n=e)||void 0===n?void 0:n.PDFAttachment:(e.RedirectionManagementRadio=xi.a.DataEnteredInScreens)&&(c=null===(i=e)||void 0===i?void 0:i.Url),a?this.OpenUrl(a):this._router.navigateByUrl(c)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(g.a),m.Vb(p.a),m.Vb(In.a),m.Vb(h.b))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-other-links"]],inputs:{DepartmentData:"DepartmentData",BackGroundClass:"BackGroundClass"},decls:3,vars:3,consts:[[4,"ngIf"],[3,"class",4,"ngIf"],[3,"class",4,"ngFor","ngForOf"],[1,"container"],[1,"row","justify-content-center"],[1,"col-xl-12","col-md-12","col-sm-12","col-lg-12","wow","fadeInUp"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-4"],[1,"section-title","text-center","m-auto"],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],[1,"doc-detail-bx","document-new-bx","document-new-bx-horizontal"],[1,"list-group","flex-row","flex-wrap","justify-content-center"],[4,"ngFor","ngForOf"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"list-group-item","list-group-item-action"],[1,"d-flex","align-items-center",3,"ngStyle","click"],[1,"d-box-icon"],[3,"src","alt","title","error"],[1,"list-caption"],[1,"row"],[1,"col-lg-12"],[1,"link-new-d-1-header","text-center"],[1,"link-new-d-1-content"],["href","javascript:void(0);",1,"link-new-d-1-content-items",3,"click"],[1,"link-new-d-1-content-items-img"],[1,"mb-0"],[1,"container-fluid"],["class","dynamic-flex-75",4,"ngIf"],["class","dynamic-flex-25 mt-5 mt-xl-0",4,"ngIf"],[1,"dynamic-flex-75"],[1,"section-title","text-center"],[1,"d-flex","flex-wrap","justify-content-center"],["class","home-new-document-design-items text-center",4,"ngFor","ngForOf"],[1,"home-new-document-design-items","text-center"],[3,"click"],[1,"dynamic-flex-25","mt-5","mt-xl-0"],[1,"new-tab-design-1"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["class","nav-item",4,"ngFor","ngForOf"],["id","myTabContent",1,"tab-content"],[1,"nav-item"],["id","new-tab-design1","data-toggle","tab","role","tab",3,"href"],[1,"fas","fa-external-link-alt"],["role","tabpanel",3,"id"],[1,"new-tab-design-1-items"],["class","new-tab-design-1-items-list",4,"ngFor","ngForOf"],[3,"showImage",4,"ngIf"],[1,"new-tab-design-1-items-list"],[1,"mb-1"],[1,"m-0"],[3,"showImage"]],template:function(e,t){1&e&&(m.Tc(0,Yo,2,1,"ng-container",0),m.Tc(1,Ko,10,6,"section",1),m.Tc(2,ol,5,5,"section",1)),2&e&&(m.tc("ngIf",t.tranSubMenuList&&(null==t.tranSubMenuList?null:t.tranSubMenuList.length)>0),m.Hb(1),m.tc("ngIf",t.isUniveristyTemplate&&t.catSubMenuList&&(null==t.catSubMenuList?null:t.catSubMenuList.length)>0),m.Hb(1),m.tc("ngIf",!t.isUniveristyTemplate&&(t.catSubMenuList&&(null==t.catSubMenuList?null:t.catSubMenuList.length)>0||t.tabsList&&t.tabsList.length>0)))},directives:[i.n,i.m,h.d,i.o,C.a],pipes:[c.c,i.e],styles:[""]}),e})();function rl(e,t){if(1&e&&(m.ac(0,"a",6),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.wc("routerLink","/pages/general/photo-gallery/",e.searchModel.DepartmentCode,"/",e.searchModel.CategoryCode,""),m.Hb(1),m.Xc(" ",m.oc(2,3,"ViewAll_txt")," ")}}function sl(e,t){if(1&e){const e=m.bc();m.ac(0,"li"),m.ac(1,"a",19),m.ac(2,"img",14),m.ic("error",(function(t){return m.Mc(e),m.mc(5)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2),n=t.index,i=t.$implicit,a=m.mc(2);m.Hb(1),m.uc("href",e,m.Pc),m.Jb("data-lightbox","images_",n,"B"),m.uc("title","en"==a.translate.currentLang?i.Achievement:i.AchievementHindi),m.Hb(1),m.uc("title","en"==a.translate.currentLang?i.Achievement:i.AchievementHindi),m.uc("alt","en"==a.translate.currentLang?i.Achievement:i.AchievementHindi),m.tc("src",e,m.Pc)}}function dl(e,t){if(1&e&&(m.Yb(0),m.Tc(1,sl,3,6,"li",5),m.Xb()),2&e){const e=t.index;m.Hb(1),m.tc("ngIf",e>0)}}function ml(e,t){if(1&e&&(m.ac(0,"ul",17),m.Tc(1,dl,2,1,"ng-container",18),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngForOf",e.ImageFiles)}}function ul(e,t){if(1&e){const e=m.bc();m.ac(0,"div",11),m.ac(1,"a",12),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.nc(2,"slice"),m.nc(3,"slice"),m.ac(4,"div",13),m.ac(5,"img",14),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Tc(6,ml,2,1,"ul",15),m.ac(7,"div",16),m.Vc(8),m.nc(9,"slice"),m.nc(10,"slice"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.Hb(1),m.Jb("data-lightbox","images_",n,"A"),m.uc("title","en"==i.translate.currentLang?(null==e?null:e.Achievement.length)>80?m.qc(2,8,null==e?null:e.Achievement,0,80)+"...":null==e?null:e.Achievement:(null==e?null:e.Achievement.length)>80?m.qc(3,12,null==e?null:e.Achievement,0,80)+"...":null==e?null:e.Achievement),m.tc("href",e.ImagePath,m.Pc),m.Hb(4),m.uc("title","en"==i.translate.currentLang?e.Achievement:e.AchievementHindi),m.uc("alt","en"==i.translate.currentLang?e.Achievement:e.AchievementHindi),m.tc("src",e.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.ImageFiles&&e.ImageFiles.length>0),m.Hb(2),m.Xc(" ","hi"==i.translate.currentLang?(null==e?null:e.AchievementHindi.length)>60?m.qc(9,16,null==e?null:e.AchievementHindi,0,60)+"...":null==e?null:e.AchievementHindi:(null==e?null:e.Achievement.length)>60?m.qc(10,20,null==e?null:e.Achievement,0,60)+"...":null==e?null:e.Achievement," ")}}function bl(e,t){if(1&e&&(m.ac(0,"div",7),m.ac(1,"div",8),m.ac(2,"div",9),m.Tc(3,ul,11,24,"div",10),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.photoModel)}}function gl(e,t){1&e&&m.Wb(0,"app-mini-loader")}function hl(e,t){1&e&&m.Wb(0,"app-no-records")}let pl=(()=>{class e{constructor(e,t,n){this.translate=e,this._achievementService=t,this._commonService=n,this.searchModel=new l.b,this.achievementEnum=o.a,this.totalRecords=0}ngOnInit(){this.GetData()}GetData(){this.searchModel.IndexModel.OrderBy="AchievementDate",this.searchModel.IndexModel.OrderByAsc=0,this.searchModel.IndexModel.PageSize=4,this.searchModel.CategoryCode=Number(this.achievementEnum.DepartmentalPhotoGalleryCode),this.searchModel.DepartmentCode=this._commonService.GetWebDistDeptCode(),this.searchModel.IndexModel.AdvanceSearchModel={DepartmentCode:this.searchModel.DepartmentCode,CategoryCode:this.searchModel.CategoryCode||0,SubCategoryCode:0},this._achievementService.GetPostersListData(this.searchModel.IndexModel).subscribe(e=>{e.IsSuccess?(this.photoModel=e.Data.Data,this.totalRecords=e.Data.TotalRecords,console.log(this.photoModel)):this.photoModel=[]},e=>{this.photoModel=[],console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(u.a),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-photo-gallery"]],inputs:{BackGroundClass:"BackGroundClass"},decls:10,vars:10,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"section-title","text-center","m-auto"],["target","_blank","class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","col-lg-12 col-md-12 col-12 mb-4 mb-lg-0",4,"ngIf"],[4,"ngIf"],["target","_blank",1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-12","col-md-12","col-12","mb-4","mb-lg-0"],[1,"home-new-program-bg-white"],[1,"row"],["class","col-lg-3 col-md-3 col-sm-3 col-3 mb-3 px-2",4,"ngFor","ngForOf"],[1,"col-lg-3","col-md-3","col-sm-3","col-3","mb-3","px-2"],[1,"home-gallery-items","d-block",3,"href","title","error"],[1,"home-gallery-items-img","d-flex","align-items-center","justify-content-center"],[3,"src","title","alt","error"],["style","display: none;",4,"ngIf"],[1,"home-gallery-items-caption"],[2,"display","none"],[4,"ngFor","ngForOf"],[3,"href","title"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Tc(6,rl,3,5,"a",3),m.Zb(),m.Tc(7,bl,4,1,"div",4),m.Tc(8,gl,1,0,"app-mini-loader",5),m.Tc(9,hl,1,0,"app-no-records",5),m.Zb(),m.Zb()),2&e&&(m.Lb("home-inauguration ",t.BackGroundClass,""),m.Hb(4),m.Xc(" ",m.oc(5,8,"PhotoGallery_txt")," "),m.Hb(2),m.tc("ngIf",t.totalRecords>t.searchModel.IndexModel.PageSize),m.Hb(1),m.tc("ngIf",(null==t.photoModel?null:t.photoModel.length)>0),m.Hb(1),m.tc("ngIf",!t.photoModel),m.Hb(1),m.tc("ngIf",t.photoModel&&0==t.photoModel.length))},directives:[i.n,h.d,i.m,v.a,C.a],pipes:[c.c,i.u],styles:["a.home-gallery-items[_ngcontent-%COMP%] .home-gallery-items-img[_ngcontent-%COMP%]{height:250px;overflow:hidden;border-radius:3px 3px 0 0;box-shadow:0 0 15px 0 rgb(73 78 92/25%)}a.home-gallery-items[_ngcontent-%COMP%] .home-gallery-items-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:250px;width:auto}a.home-gallery-items[_ngcontent-%COMP%] .home-gallery-items-caption[_ngcontent-%COMP%]{border-radius:0 0 3px 3px;box-shadow:0 0 15px 0 rgb(73 78 92/25%)}"]}),e})();function fl(e,t){if(1&e&&(m.ac(0,"div",7),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","en"!=e.translate.currentLang?e.SectionNameHi||e.SectionNameEn:e.SectionNameEn||e.SectionNameHi,"")}}function vl(e,t){1&e&&(m.ac(0,"div",7),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"press_release_Gallery_txt")," "))}function Cl(e,t){if(1&e&&(m.ac(0,"a",8),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.vc("routerLink","/pages/press-release/gallery/",e.filterModel.DepartmentCode,""),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function Hl(e,t){if(1&e){const e=m.bc();m.ac(0,"li"),m.ac(1,"a",23),m.ac(2,"img",24),m.ic("error",(function(t){return m.Mc(e),m.mc(5)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2),n=t.index,i=t.$implicit;m.Hb(1),m.uc("href",e,m.Pc),m.Jb("data-lightbox","images_",n,""),m.uc("title",i.Description),m.Hb(1),m.uc("title",i.Description),m.uc("alt",i.Description),m.tc("src",e,m.Pc)}}function Dl(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Hl,3,6,"li",6),m.Xb()),2&e){const e=t.index;m.Hb(1),m.tc("ngIf",e>0)}}function Ml(e,t){if(1&e&&(m.ac(0,"ul",21),m.Tc(1,Dl,2,1,"ng-container",22),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngForOf",e.ImageAttachments)}}function Il(e,t){if(1&e){const e=m.bc();m.ac(0,"div",13),m.ac(1,"a",14),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.ac(2,"div",15),m.Vc(3),m.nc(4,"date"),m.Zb(),m.ac(5,"div",16),m.ac(6,"img",17),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Tc(7,Ml,2,1,"ul",18),m.ac(8,"a",19),m.ac(9,"div",20),m.ac(10,"span"),m.Vc(11),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.Hb(1),m.Jb("data-lightbox","images_",n,""),m.uc("title",e.Description),m.tc("href",e.HomePageImageUrl,m.Pc),m.Hb(2),m.Xc(" ","hi"==i.translate.currentLang?null==e?null:e.PressReleaseDateHindi:m.pc(4,10,null==e?null:e.PressreleaseDate,"d MMM, y")," "),m.Hb(3),m.uc("title",e.Description),m.uc("alt",e.Description),m.tc("src",e.HomePageImageUrl,m.Pc),m.Hb(1),m.tc("ngIf",e.ImageAttachments&&e.ImageAttachments.length>0),m.Hb(1),m.vc("routerLink","/home/press-release/",null==e?null:e.Id,""),m.Hb(3),m.Xc(" ",e.Description," ")}}function Zl(e,t){if(1&e&&(m.ac(0,"div",9),m.ac(1,"div",10),m.ac(2,"div",11),m.Tc(3,Il,12,13,"div",12),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.generalModel)}}function Tl(e,t){1&e&&m.Wb(0,"app-mini-loader")}function yl(e,t){1&e&&m.Wb(0,"app-no-records")}let xl=(()=>{class e{constructor(e,t,n,i){this.translate=e,this.sanitizer=t,this._distDeptService=n,this._commonService=i,this.filterModel=new ha.f,this.totalRecords=0}ngOnInit(){this.GetPressReleaseData()}GetPressReleaseData(){this.generalModel=void 0,this.filterModel.IsBase64File=!1,this.filterModel.PageSize=4,this.filterModel.OrderBy="PressreleaseDate",this.filterModel.DepartmentCode=this._commonService.GetWebDistDeptCode(),this.filterModel.IsImageRequired=!0,this._distDeptService.GetDptInAugrationLink(this.filterModel).subscribe(e=>{e.IsSuccess?(this.generalModel=e.Data.Data,this.totalRecords=e.Data.TotalRecords):this.generalModel=[]},e=>{this.generalModel=[],console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(b.b),m.Vb(p.a),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-press-release-gallery"]],inputs:{BackGroundClass:"BackGroundClass",SectionNameEn:"SectionNameEn",SectionNameHi:"SectionNameHi"},decls:10,vars:9,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],["class","section-title text-center m-auto",4,"ngIf","ngIfElse"],["defaultHeading",""],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","col-lg-12 col-md-12 col-12 mb-4 mb-lg-0",4,"ngIf"],[4,"ngIf"],[1,"section-title","text-center","m-auto"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-12","col-md-12","col-12","mb-4","mb-lg-0"],[1,"home-new-program-bg-white","home-press-release-gallery"],[1,"row"],["class","col-lg-3 col-md-3 col-sm-3 col-3 mb-3 px-2",4,"ngFor","ngForOf"],[1,"col-lg-3","col-md-3","col-sm-3","col-3","mb-3","px-2"],[1,"home-gallery-items","d-block",3,"href","title","error"],[1,"home-inauguration-items-date"],[1,"home-gallery-items-img","d-flex","align-items-center","justify-content-center"],[1,"img-fluid","rounded",3,"src","title","alt","error"],["style","display: none;",4,"ngIf"],[3,"routerLink"],[1,"home-gallery-items-caption"],[2,"display","none"],[4,"ngFor","ngForOf"],[3,"href","title"],[3,"src","title","alt","error"]],template:function(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.Tc(3,fl,2,1,"div",2),m.Tc(4,vl,3,3,"ng-template",null,3,m.Uc),m.Tc(6,Cl,3,4,"a",4),m.Zb(),m.Tc(7,Zl,4,1,"div",5),m.Tc(8,Tl,1,0,"app-mini-loader",6),m.Tc(9,yl,1,0,"app-no-records",6),m.Zb(),m.Zb()),2&e){const e=m.Kc(5);m.Lb("home-inauguration ",t.BackGroundClass,""),m.Hb(3),m.tc("ngIf",t.SectionNameHi||t.SectionNameEn)("ngIfElse",e),m.Hb(3),m.tc("ngIf",t.totalRecords>t.filterModel.PageSize),m.Hb(1),m.tc("ngIf",(null==t.generalModel?null:t.generalModel.length)>0),m.Hb(1),m.tc("ngIf",!t.generalModel),m.Hb(1),m.tc("ngIf",t.generalModel&&0==t.generalModel.length)}},directives:[i.n,h.d,i.m,v.a,C.a],pipes:[c.c,i.e],styles:[""]}),e})();function Pl(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"video",20),m.ic("playing",(function(t){return m.Mc(e),m.mc(4).onMediaPlaying(t,!1)})),m.Wb(2,"source",21),m.Zb(),m.Xb()}if(2&e){const e=m.mc(),t=e.index,n=e.$implicit,i=m.mc(3);m.Hb(1),m.vc("id","my_video_",t,""),m.uc("poster",null==n?null:n.ThumbnailPath,m.Pc),m.Hb(1),m.vc("type","video/",null==n?null:null==n.Url?null:n.Url.split(".")[(null==n?null:null==n.Url?null:n.Url.split(".").length)-1],""),m.tc("src",i.sanitizeUrl(null==n?null:n.Url),m.Pc)}}function Sl(e,t){if(1&e){const e=m.bc();m.ac(0,"iframe",23),m.ic("onclick",(function(t){return m.Mc(e),m.mc(5).onMediaPlaying(t,!1)})),m.Zb()}if(2&e){const e=m.mc(2).$implicit;m.tc("src",null==e?null:e.SafeUrl,m.Oc)}}function _l(e,t){if(1&e&&m.Tc(0,Sl,1,1,"iframe",22),2&e){const e=m.mc().$implicit;m.tc("ngIf",(null==e?null:null==e.Url?null:e.Url.length)>0)}}function wl(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",14),m.ac(2,"div",15),m.ac(3,"div",16),m.Tc(4,Pl,3,4,"ng-container",17),m.Tc(5,_l,1,1,"ng-template",null,18,m.Uc),m.Zb(),m.ac(7,"div",19),m.Vc(8),m.nc(9,"slice"),m.nc(10,"slice"),m.Zb(),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=m.Kc(6),i=m.mc(3);m.Hb(4),m.tc("ngIf",1==i.isExtenstionUrl(null==e?null:e.Url))("ngIfElse",n),m.Hb(3),m.uc("title","en"==i.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==i.translate.currentLang?(null==e?null:e.AchievementHindi.length)>60?m.qc(9,4,null==e?null:e.AchievementHindi,0,60)+"...":null==e?null:e.AchievementHindi:(null==e?null:e.Achievement.length)>60?m.qc(10,8,null==e?null:e.Achievement,0,60)+"...":null==e?null:e.Achievement," ")}}function Ll(e,t){if(1&e&&(m.ac(0,"div",7),m.ac(1,"div",8),m.ac(2,"div",9),m.ac(3,"h1",10),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.ac(6,"a",11),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.ac(9,"div",12),m.Tc(10,wl,11,12,"ng-container",13),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(4),m.Xc(" ",m.oc(5,3,"ProgramVideo_txt")," "),m.Hb(3),m.Xc(" ",m.oc(8,5,"ViewAll_txt")," "),m.Hb(3),m.tc("ngForOf",e.videoModel)}}function Vl(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",27),m.ac(2,"div",28),m.Wb(3,"img",29),m.ac(4,"audio",30),m.ic("playing",(function(t){return m.Mc(e),m.mc(4).onMediaPlaying(t,!0)})),m.Wb(5,"source",21),m.Zb(),m.ac(6,"div",19),m.Vc(7),m.nc(8,"slice"),m.nc(9,"slice"),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc().$implicit,t=m.mc(3);m.Hb(1),m.uc("title","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(2),m.uc("title","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.uc("alt","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(2),m.vc("type","audio/",null==e?null:null==e.Url?null:e.Url.split(".")[(null==e?null:null==e.Url?null:e.Url.split(".").length)-1],""),m.tc("src",t.sanitizeUrl(null==e?null:e.Url),m.Pc),m.Hb(1),m.uc("title","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?(null==e?null:e.AchievementHindi.length)>60?m.qc(8,7,null==e?null:e.AchievementHindi,0,60)+"...":null==e?null:e.AchievementHindi:(null==e?null:e.Achievement.length)>60?m.qc(9,11,null==e?null:e.Achievement,0,60)+"...":null==e?null:e.Achievement," ")}}function kl(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"video",20),m.ic("playing",(function(t){return m.Mc(e),m.mc(5).onMediaPlaying(t,!1)})),m.Wb(2,"source",21),m.Zb(),m.Xb()}if(2&e){const e=m.mc(2),t=e.index,n=e.$implicit,i=m.mc(3);m.Hb(1),m.vc("id","cmmy_video_",t,""),m.uc("poster",null==n?null:n.ThumbnailPath,m.Pc),m.Hb(1),m.vc("type","video/",null==n?null:null==n.Url?null:n.Url.split(".")[(null==n?null:null==n.Url?null:n.Url.split(".").length)-1],""),m.tc("src",i.sanitizeUrl(null==n?null:n.Url),m.Pc)}}function Nl(e,t){if(1&e){const e=m.bc();m.ac(0,"iframe",32),m.ic("playing",(function(t){return m.Mc(e),m.mc(6).onMediaPlaying(t,!1)})),m.Zb()}if(2&e){const e=m.mc(3).$implicit;m.tc("src",null==e?null:e.SafeUrl,m.Oc)}}function Ol(e,t){if(1&e&&m.Tc(0,Nl,1,1,"iframe",31),2&e){const e=m.mc(2).$implicit;m.tc("ngIf",(null==e?null:null==e.Url?null:e.Url.length)>0)}}function Al(e,t){if(1&e&&(m.ac(0,"div",14),m.ac(1,"div",15),m.ac(2,"div",16),m.Tc(3,kl,3,4,"ng-container",17),m.Tc(4,Ol,1,1,"ng-template",null,18,m.Uc),m.Zb(),m.ac(6,"div",19),m.Vc(7),m.nc(8,"slice"),m.nc(9,"slice"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.Kc(5),t=m.mc().$implicit,n=m.mc(3);m.Hb(3),m.tc("ngIf",1==n.isExtenstionUrl(null==t?null:t.Url))("ngIfElse",e),m.Hb(3),m.uc("title","en"==n.translate.currentLang?null==t?null:t.Achievement:null==t?null:t.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==n.translate.currentLang?(null==t?null:t.AchievementHindi.length)>60?m.qc(8,4,null==t?null:t.AchievementHindi,0,60)+"...":null==t?null:t.AchievementHindi:(null==t?null:t.Achievement.length)>60?m.qc(9,8,null==t?null:t.Achievement,0,60)+"...":null==t?null:t.Achievement," ")}}function Wl(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Vl,10,15,"ng-container",17),m.Tc(2,Al,10,12,"ng-template",null,26,m.Uc),m.Xb()),2&e){const e=t.$implicit,n=m.Kc(3),i=m.mc(3);m.Hb(1),m.tc("ngIf",i.IsAudioContent(null==e?null:e.Url))("ngIfElse",n)}}function El(e,t){if(1&e&&(m.ac(0,"div",24),m.ac(1,"div",8),m.ac(2,"div",9),m.ac(3,"h1",10),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.ac(6,"a",25),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.ac(9,"div",12),m.Tc(10,Wl,4,2,"ng-container",13),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(4),m.Xc(" ",m.oc(5,3,"CMSpeech_txt")," "),m.Hb(3),m.Wc(m.oc(8,5,"ViewAll_txt")),m.Hb(3),m.tc("ngForOf",e.audioModel)}}function Gl(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",1),m.ac(2,"h1",2),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.Zb(),m.ac(5,"div",3),m.ac(6,"div",4),m.Tc(7,Ll,11,7,"div",5),m.Tc(8,El,11,7,"div",6),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("home-new-program ",e.BackGroundClass,""),m.Hb(3),m.Xc(" ",m.oc(4,6,"Program_txt")," "),m.Hb(4),m.tc("ngIf",(null==e.videoModel?null:e.videoModel.length)>0),m.Hb(1),m.tc("ngIf",(null==e.audioModel?null:e.audioModel.length)>0)}}let Fl=(()=>{class e{constructor(e,t,n,i){this.datePipe=e,this.translate=t,this._achievementService=n,this.sanitizer=i,this.DepartmentCode=0,this.audioModel=[],this.videoModel=[],this.achievementEnum=o.a,this.DateFormat=d.a.DateFormat,this.onPause=new m.q}ngOnInit(){this.getProgramVideoData(),this.getCMSpeechData()}GetCategoryGroupAchievementListData(){let e=new s.d;e.OrderBy="AchievementDate",e.OrderByAsc=0,this._achievementService.GetCategoryGroupAchievementListData(e).subscribe(e=>{var t,n,i,a;e.IsSuccess&&(null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data)&&(this.CategoryGroupViewModel=null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.Data)},e=>{this.CategoryGroupViewModel=[]})}sanitizeUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}getProgramVideoData(){let e=new l.b;e.IndexModel.OrderBy="AchievementDate",e.IndexModel.OrderByAsc=0,e.IndexModel.PageSize=2,e.IsURLRequired=!0,e.CategoryCode=this.achievementEnum.ProgramVideoCode,e.DepartmentCode=this.DepartmentCode,e.IsActive=!0,this._achievementService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{e.IsSuccess&&(this.videoModel=e.Data.Data,this.videoModel.map(e=>{e.SafeUrl=this.SafeUrl(e.YoutubeURL?e.YoutubeURL:e.Url)}))},e=>{})}getCMSpeechData(){let e=new l.b;e.IndexModel.OrderBy="AchievementDate",e.IndexModel.OrderByAsc=0,e.IndexModel.PageSize=2,e.IsURLRequired=!0,e.CategoryCode=this.achievementEnum.CMSpeechCode,e.DepartmentCode=this.DepartmentCode,this._achievementService.GetAchievementListBySearchFilterData(e,!1).subscribe(e=>{e.IsSuccess&&(this.audioModel=e.Data.Data,this.audioModel.map(e=>{e.SafeUrl=this.SafeUrl(e.YoutubeURL?e.YoutubeURL:e.Url)}))},e=>{})}isExtenstionUrl(e){return null!=e&&new RegExp(/\.\w{3,4}($|\?)/i).test(e)}SafeUrl(e){var t,n;return null==e?"":new RegExp(/\/view(v|V?)/i).test(e)?(e=null===(n=e)||void 0===n?void 0:n.replace(/\/view(v|V?)/i,"/preview"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):(e=null===(t=e)||void 0===t?void 0:t.replace(/\/watch\?(v|V\?)=/g,"/embed/"),this.sanitizer.bypassSecurityTrustResourceUrl(e))}onMediaPlaying(e,t){this.mediaControlModel=new s.e,this.mediaControlModel.Item=e,this.mediaControlModel.IsAudio=t,this.onPause.emit(this.mediaControlModel)}IsAudioContent(e){return!!new RegExp(/\.(?:wav|mp3|aac|flac|ogg|wma|aiff|aa|alac|au)$/i).test(e)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(i.e),m.Vb(c.d),m.Vb(u.a),m.Vb(b.b))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-program"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},outputs:{onPause:"onPause"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"col-lg-12","mt-5"],[1,"section-title","text-center"],[1,"container-fluid"],[1,"row","justify-content-center"],["class","col-lg-6 col-md-12 col-12 mb-4 mb-lg-0",4,"ngIf"],["class","col-lg-6 col-md-12 col-12",4,"ngIf"],[1,"col-lg-6","col-md-12","col-12","mb-4","mb-lg-0"],[1,"home-new-program-bg-white"],[1,"d-flex","align-items-center","mb-4","justify-content-between"],[1,"title","mb-0"],["routerLink","/program-video",1,"btn","btn-round","btn-theme","btn-yellow"],[1,"row"],[4,"ngFor","ngForOf"],[1,"col-xl-6","col-lg-6","col-sm-6","col-12","mb-3"],[1,"audio-card","video-card-new","d-flex","justify-content-center","text-center"],[1,"embed-responsive","embed-responsive-21by9"],[4,"ngIf","ngIfElse"],["iframVideo",""],[1,"av-caption",3,"title"],["width","100%","height","100%","controls","","preload","none","data-setup",'{ "aspectRatio":"100%:100%", "playbackRates": [1, 1.5, 2] }',1,"embed-responsive-item",3,"id","poster","playing"],[3,"src","type"],["class","embed-responsive-item","width","100%","height","100%","frameborder","0","allow","accelerometer; gyroscope; picture-in-picture","allowfullscreen","",3,"src","onclick",4,"ngIf"],["width","100%","height","100%","frameborder","0","allow","accelerometer; gyroscope; picture-in-picture","allowfullscreen","",1,"embed-responsive-item",3,"src","onclick"],[1,"col-lg-6","col-md-12","col-12"],["routerLink","/cm-speech",1,"btn","btn-round","btn-theme","btn-yellow"],["videoContent",""],[1,"col-xl-6","col-lg-12","col-sm-12","col-12","mb-3",3,"title"],[1,"audio-card","text-center"],["src","assets/images/high-volume.png",1,"img-fluid",3,"title","alt"],["preload","none","controls","",1,"w-100",3,"playing"],["preload","none","class","embed-responsive-item","width","100%","height","100%","frameborder","0","allow","accelerometer; autoplay; gyroscope; picture-in-picture","allowfullscreen","",3,"src","playing",4,"ngIf"],["preload","none","width","100%","height","100%","frameborder","0","allow","accelerometer; autoplay; gyroscope; picture-in-picture","allowfullscreen","",1,"embed-responsive-item",3,"src","playing"]],template:function(e,t){1&e&&m.Tc(0,Gl,9,8,"section",0),2&e&&m.tc("ngIf",(null==t.videoModel?null:t.videoModel.length)>0||(null==t.audioModel?null:t.audioModel.length)>0)},directives:[i.n,h.d,i.m],pipes:[c.c,i.u],styles:[""]}),e})();var Rl=n("1cbQ"),Xl=n("9GqC");function Bl(e,t){if(1&e&&(m.ac(0,"a",9),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.xc("routerLink","/project-or-works/",e.completedStatus,"/",e.ongoingfilter.DepartmentCode,"/",e.ongoingfilter.DistrictDepartmentCode,""),m.Hb(1),m.Wc(m.oc(2,4,"ViewAll_txt"))}}function Ul(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",10),m.ac(2,"div",11),m.ac(3,"div",12),m.ac(4,"div"),m.ac(5,"strong",13),m.Vc(6),m.Zb(),m.ac(7,"p",14),m.Vc(8),m.nc(9,"slice"),m.Zb(),m.Zb(),m.ac(10,"div",15),m.ac(11,"ul",16),m.ac(12,"li"),m.ac(13,"strong"),m.Vc(14,"Cost:"),m.Zb(),m.Vc(15),m.Zb(),m.ac(16,"li"),m.ac(17,"strong"),m.Vc(18,"District:"),m.Zb(),m.Vc(19),m.Zb(),m.Zb(),m.ac(20,"div",17),m.ac(21,"a",18),m.Vc(22,"View detail"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=m.mc();m.Hb(6),m.Wc("hi"!=n.translate.currentLang?(null==e?null:null==e.CategoryName?null:e.CategoryName.length)>0?null==e?null:e.CategoryName:"":(null==e?null:null==e.CategoryNameHindi?null:e.CategoryNameHindi.length)>0?null==e?null:e.CategoryNameHindi:""),m.Hb(2),m.Xc(" ",(null==e?null:null==e.Description?null:e.Description.length)>200?m.qc(9,5,null==e?null:e.Description,0,200)+"...":null==e?null:e.Description," "),m.Hb(7),m.Xc("",e.Cost," Lakh"),m.Hb(4),m.Xc(" ","hi"!=n.translate.currentLang?(null==e?null:null==e.MLAConstituencyDistrictNameHindi?null:e.MLAConstituencyDistrictNameHindi.length)>0?null==e?null:e.MLAConstituencyDistrictNameHindi:"":(null==e?null:null==e.MLAConstituencyDistrictName?null:e.MLAConstituencyDistrictName.length)>0?null==e?null:e.MLAConstituencyDistrictName:"",""),m.Hb(2),m.vc("routerLink","/project-master/detail/",null==e?null:e.Id,"")}}function zl(e,t){1&e&&m.Wb(0,"app-mini-loader")}function jl(e,t){1&e&&m.Wb(0,"app-no-records")}let $l=(()=>{class e{constructor(e,t){this.projectService=e,this.translate=t,this.DepartmentCode=0,this.IsDistrictDepartmentCode=!1,this.onShowData=new m.q,this.enumdata=xi.b,this.completedStatus=this.enumdata.ProjectStatusCompleted,this.ongoingStatus=this.enumdata.ProjectStatusOnGoing,this.ongoingfilter=new Rl.a}ngOnInit(){this.GetListCompleted(),this.GetListOngoing()}GetListCompleted(){this.modelCompleted=void 0;const e=new Rl.a;e.IndexModel.PageSize=2,e.IndexModel.Page=1,e.StatusCode=this.completedStatus,e.DepartmentCode=this.IsDistrictDepartmentCode?0:this.DepartmentCode,e.DistrictDepartmentCode=this.IsDistrictDepartmentCode?this.DepartmentCode:0,e.IndexModel.OrderBy="ModifiedDate",e.IndexModel.OrderByAsc=0,this.projectService.GetProjectMasterListBySearchFilterData(e).subscribe(e=>{e.IsSuccess?(this.modelCompleted=e.Data.Data,this.onShowData.emit(this.modelCompleted.length>0)):(this.modelCompleted=[],this.onShowData.emit(!1))},e=>{this.modelCompleted=[],this.onShowData.emit(!1)})}GetListOngoing(){this.modelOngoing=void 0,this.ongoingfilter.IndexModel.PageSize=2,this.ongoingfilter.IndexModel.Page=1,this.ongoingfilter.StatusCode=this.ongoingStatus,this.ongoingfilter.DepartmentCode=this.IsDistrictDepartmentCode?0:this.DepartmentCode,this.ongoingfilter.DistrictDepartmentCode=this.IsDistrictDepartmentCode?this.DepartmentCode:0,this.ongoingfilter.IndexModel.OrderBy="ModifiedDate",this.ongoingfilter.IndexModel.OrderByAsc=0,this.projectService.GetProjectMasterListBySearchFilterData(this.ongoingfilter).subscribe(e=>{e.IsSuccess?(this.modelOngoing=e.Data.Data,this.onShowData.emit(this.modelOngoing.length>0)):(this.modelOngoing=[],this.onShowData.emit(!1))},e=>{this.modelOngoing=[],this.onShowData.emit(!1)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Xl.a),m.Vb(c.d))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-project-or-work"]],inputs:{DepartmentCode:"DepartmentCode",IsDistrictDepartmentCode:"IsDistrictDepartmentCode",BackGroundClass:"BackGroundClass"},outputs:{onShowData:"onShowData"},decls:16,vars:13,consts:[[1,"section-title","text-center"],[1,"container-fluid"],[1,"row"],[1,"col-lg-6","col-md-12","col-sm-12","p-4","home-project-complete-project"],[1,"d-flex","align-items-center","justify-content-between","mb-4"],[1,"section-title","text-white","m-0"],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-6"],[1,"card-design-2","h-100","align-items-center","text-dark","d-block"],[1,"card-design-2-info","flex-column"],[1,"d-block","mb-2","home-project-title"],[1,"home-project-discription"],[1,"mt-auto"],[1,"mb-3"],[1,"text-right"],["href","javasript:void(0)",1,"text-theme","font-w-600",3,"routerLink"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.ac(4,"div",1),m.ac(5,"div",2),m.ac(6,"div",3),m.ac(7,"div",4),m.ac(8,"div",5),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.Tc(11,Bl,3,6,"a",6),m.Zb(),m.ac(12,"div",2),m.Tc(13,Ul,23,9,"ng-container",7),m.Tc(14,zl,1,0,"app-mini-loader",8),m.Tc(15,jl,1,0,"app-no-records",8),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("home-project ",t.BackGroundClass,""),m.Hb(2),m.Wc(m.oc(3,9,"ProjectsOrWorkSection_txt")),m.Hb(7),m.Wc(m.oc(10,11,"CompleteProjects_txt")),m.Hb(2),m.tc("ngIf",t.modelCompleted&&(null==t.modelCompleted?null:t.modelCompleted.length)),m.Hb(2),m.tc("ngForOf",t.modelCompleted),m.Hb(1),m.tc("ngIf",!t.modelCompleted),m.Hb(1),m.tc("ngIf",t.modelCompleted&&0==t.modelCompleted.length))},directives:[i.n,i.m,h.d,v.a,C.a],pipes:[c.c,i.u],styles:[""]}),e})();function Yl(e,t){if(1&e&&(m.ac(0,"a",5),m.ac(1,"div",6),m.Wb(2,"img",7),m.Zb(),m.ac(3,"div",8),m.ac(4,"span"),m.Vc(5),m.Zb(),m.Vc(6),m.nc(7,"translate"),m.Wb(8,"i",9),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.vc("routerLink","/scheme/",e.DepartmentCode,""),m.Hb(5),m.Xc(" ",null==e.quickLinksModel[0]?null:e.quickLinksModel[0].TotalCount," "),m.Hb(1),m.Xc(" ",m.oc(7,3,"Schemes_txt")," ")}}function ql(e,t){if(1&e&&(m.ac(0,"a",5),m.ac(1,"div",6),m.Wb(2,"img",10),m.Zb(),m.ac(3,"div",8),m.ac(4,"span"),m.Vc(5),m.Zb(),m.Vc(6),m.nc(7,"translate"),m.Wb(8,"i",9),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.vc("routerLink","/services/",e.DepartmentCode,""),m.Hb(5),m.Xc(" ",null==e.quickLinksModel[1]?null:e.quickLinksModel[1].TotalCount," "),m.Hb(1),m.Xc(" ",m.oc(7,3,"GovServices_txt")," ")}}function Jl(e,t){if(1&e&&(m.ac(0,"div"),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Tc(4,Yl,9,5,"a",4),m.Tc(5,ql,9,5,"a",4),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("home-page-ent-number text-center ",e.BackGroundClass,""),m.Hb(4),m.tc("ngIf",e.haveSchemes),m.Hb(1),m.tc("ngIf",e.haveServices)}}let Kl=(()=>{class e{constructor(e,t,n){this.sanitizer=e,this._dptDistrictWebsiteService=t,this.translate=n,this.DepartmentCode=0,this.quickLinksModel=[],this.enumdata=xi.b,this.haveSchemes=!1,this.haveServices=!1}ngOnInit(){this.GetQuickLinksData()}GetQuickLinksData(){this._dptDistrictWebsiteService.GetDepartemntWebsiteQuickLink(this.DepartmentCode).subscribe(e=>{var t,n;e.IsSuccess&&(this.quickLinksModel=[],this.quickLinksModel=e.Data,this.quickLinksModel&&this.quickLinksModel.length>0&&(null===(t=this.quickLinksModel[0])||void 0===t?void 0:t.TotalCount)&&(this.haveSchemes=!0),this.quickLinksModel&&this.quickLinksModel.length>1&&(null===(n=this.quickLinksModel[1])||void 0===n?void 0:n.TotalCount)&&(this.haveServices=!0))},e=>{console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(b.b),m.Vb(p.a),m.Vb(c.d))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-scheme-service"]],inputs:{DepartmentData:"DepartmentData",DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"row","w-100"],[1,"col-md-12"],[1,"home-page-ent-number-items"],[3,"routerLink",4,"ngIf"],[3,"routerLink"],[1,"home-page-ent-number-items-img"],["src","assets/images/new_scheme.png","alt","CMO",1,"img-fluid"],[1,"home-page-ent-number-info"],[1,"fa","fa-chevron-right"],["src","assets/images/gov_servce.png","alt","CMO",1,"img-fluid"]],template:function(e,t){1&e&&m.Tc(0,Jl,6,5,"div",0),2&e&&m.tc("ngIf",t.enumdata.Department==(null==t.DepartmentData?null:t.DepartmentData.DepartmentDistrictCode)&&(t.haveSchemes||t.haveServices))},directives:[i.n,h.d],pipes:[c.c],styles:[""]}),e})();var Ql=n("81W+");function er(e,t){if(1&e&&(m.ac(0,"a",7),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.wc("routerLink","/pages/general/video/",e.searchModel.DepartmentCode,"/",e.searchModel.CategoryCode,""),m.Hb(1),m.Xc(" ",m.oc(2,3,"ViewAll_txt")," ")}}function tr(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"a",18),m.ac(2,"video",19),m.ic("playing",(function(t){return m.Mc(e),m.mc(3).onMediaPlaying(t,!1)})),m.Wb(3,"source",20),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc(),t=e.$implicit,n=e.index;m.Hb(1),m.uc("href",t.Url,m.Pc),m.Hb(1),m.vc("id","my_video_",n,""),m.uc("poster",t.ThumbnailPath,m.Pc),m.Hb(1),m.uc("src",t.Url,m.Pc),m.vc("type","video/",t.Url.split(".")[t.Url.split(".").length-1],"")}}function nr(e,t){if(1&e&&m.Wb(0,"iframe",21),2&e){const e=m.mc().$implicit,t=m.mc(2);m.uc("title","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.tc("src",e.SafeUrl,m.Oc)}}function ir(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",12),m.ac(2,"div",13),m.ac(3,"div",14),m.Tc(4,tr,4,5,"ng-container",15),m.Tc(5,nr,1,2,"ng-template",null,16,m.Uc),m.Zb(),m.ac(7,"div",17),m.Vc(8),m.nc(9,"slice"),m.nc(10,"slice"),m.Zb(),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=m.Kc(6),i=m.mc(2);m.Hb(4),m.tc("ngIf",1==i.isExtenstionUrl(e.Url))("ngIfElse",n),m.Hb(3),m.uc("title","en"==i.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==i.translate.currentLang?(null==e?null:e.AchievementHindi.length)>60?m.qc(9,4,null==e?null:e.AchievementHindi,0,60)+"...":null==e?null:e.AchievementHindi:(null==e?null:e.Achievement.length)>60?m.qc(10,8,null==e?null:e.Achievement,0,60)+"...":null==e?null:e.Achievement," ")}}function ar(e,t){if(1&e&&(m.ac(0,"div",8),m.ac(1,"div",9),m.ac(2,"div",10),m.Tc(3,ir,11,12,"ng-container",11),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.videoModel)}}function cr(e,t){1&e&&m.Wb(0,"app-mini-loader")}function or(e,t){1&e&&m.Wb(0,"app-no-records")}function lr(e,t){if(1&e&&(m.ac(0,"a",7),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc(2);m.wc("routerLink","/pages/general/video/",e.brSearchModel.DepartmentCode,"/",e.brSearchModel.CategoryCode,""),m.Hb(1),m.Xc(" ",m.oc(2,3,"ViewAll_txt")," ")}}function rr(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"video",19),m.ic("playing",(function(t){return m.Mc(e),m.mc(3).onMediaPlaying(t,!1)})),m.Wb(2,"source",20),m.Zb(),m.Xb()}if(2&e){const e=m.mc(),t=e.index,n=e.$implicit;m.Hb(1),m.vc("id","my_video_",t,""),m.uc("poster",n.ThumbnailPath,m.Pc),m.Hb(1),m.uc("src",n.Url,m.Pc),m.vc("type","video/",n.Url.split(".")[n.Url.split(".").length-1],"")}}function sr(e,t){if(1&e&&m.Wb(0,"iframe",21),2&e){const e=m.mc().$implicit,t=m.mc(2);m.uc("title","en"==t.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.tc("src",e.SafeUrl,m.Oc)}}function dr(e,t){if(1&e&&(m.Yb(0),m.ac(1,"div",12),m.ac(2,"div",13),m.ac(3,"div",14),m.Tc(4,rr,3,4,"ng-container",15),m.Tc(5,sr,1,2,"ng-template",null,16,m.Uc),m.Zb(),m.ac(7,"div",17),m.Vc(8),m.nc(9,"slice"),m.nc(10,"slice"),m.Zb(),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=m.Kc(6),i=m.mc(2);m.Hb(4),m.tc("ngIf",1==i.isExtenstionUrl(e.Url))("ngIfElse",n),m.Hb(3),m.uc("title","en"==i.translate.currentLang?null==e?null:e.Achievement:null==e?null:e.AchievementHindi),m.Hb(1),m.Xc(" ","hi"==i.translate.currentLang?(null==e?null:e.AchievementHindi.length)>60?m.qc(9,4,null==e?null:e.AchievementHindi,0,60)+"...":null==e?null:e.AchievementHindi:(null==e?null:e.Achievement.length)>60?m.qc(10,8,null==e?null:e.Achievement,0,60)+"...":null==e?null:e.Achievement," ")}}function mr(e,t){1&e&&m.Wb(0,"app-mini-loader")}function ur(e,t){1&e&&m.Wb(0,"app-no-records")}function br(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Tc(6,lr,3,5,"a",3),m.Zb(),m.ac(7,"div",8),m.ac(8,"div",9),m.ac(9,"div",10),m.Tc(10,dr,11,12,"ng-container",11),m.Zb(),m.Zb(),m.Zb(),m.Tc(11,mr,1,0,"app-mini-loader",5),m.Tc(12,ur,1,0,"app-no-records",5),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("home-inauguration ",e.BackGroundClass,""),m.Hb(4),m.Xc(" ",m.oc(5,8,"BudgetReviewVideo_txt")," "),m.Hb(2),m.tc("ngIf",e.brTotalRecords>e.brSearchModel.IndexModel.PageSize),m.Hb(4),m.tc("ngForOf",e.brVideoModel),m.Hb(1),m.tc("ngIf",!e.brVideoModel),m.Hb(1),m.tc("ngIf",e.brVideoModel&&0==e.brVideoModel.length)}}let gr=(()=>{class e{constructor(e,t,n,i){this.translate=e,this._achievementService=t,this.sanitizer=n,this._commonService=i,this.totalRecords=0,this.searchModel=new l.b,this.brTotalRecords=0,this.brSearchModel=new l.b,this.departmentEnum=Ql.a,this.deptCode=0,this.deptCode=this._commonService.GetWebDistDeptCode()}ngOnInit(){this.getData(),this.deptCode==this.departmentEnum.BudgetWebsite&&this.getBudgetReviewData()}getData(){this.searchModel.IndexModel.OrderBy="AchievementDate",this.searchModel.IndexModel.OrderByAsc=0,this.searchModel.IndexModel.PageSize=4,this.searchModel.CategoryCode=Number(o.a.VideoGalleryCode),this.searchModel.DepartmentCode=this.deptCode,this.searchModel.IndexModel.AdvanceSearchModel={DepartmentCode:this.searchModel.DepartmentCode,CategoryCode:this.searchModel.CategoryCode,SubCategoryCode:0},this._achievementService.GetVideoListData(this.searchModel.IndexModel).subscribe(e=>{e.IsSuccess?(this.videoModel=e.Data.Data,this.videoModel&&this.videoModel.length>0&&this.videoModel.forEach(e=>{e.SafeUrl=this.SafeUrl(e.YoutubeURL||e.Url)}),this.searchModel.IndexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords)):this.videoModel=[]},e=>{this.videoModel=[],console.error(e)})}getBudgetReviewData(){this.brSearchModel.IndexModel.OrderBy="AchievementDate",this.brSearchModel.IndexModel.OrderByAsc=0,this.brSearchModel.IndexModel.PageSize=4,this.brSearchModel.CategoryCode=Number(o.a.BudgetReviewVideoCode),this.brSearchModel.DepartmentCode=this.deptCode,this.brSearchModel.IndexModel.AdvanceSearchModel={DepartmentCode:this.brSearchModel.DepartmentCode,CategoryCode:this.brSearchModel.CategoryCode,SubCategoryCode:0},this._achievementService.GetVideoListData(this.brSearchModel.IndexModel).subscribe(e=>{e.IsSuccess?(this.brVideoModel=e.Data.Data,this.brVideoModel&&this.brVideoModel.length>0&&this.brVideoModel.forEach(e=>{e.SafeUrl=this.SafeUrl(e.YoutubeURL||e.Url)}),this.brSearchModel.IndexModel.IsPostBack||(this.brTotalRecords=e.Data.TotalRecords)):this.brVideoModel=[]},e=>{this.brVideoModel=[],console.error(e)})}SafeUrl(e){var t,n;return null==e?"":new RegExp(/\/view(v|V?)/i).test(e)?(e=null===(n=e)||void 0===n?void 0:n.replace(/\/view(v|V?)/i,"/preview"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):(e=null===(t=e)||void 0===t?void 0:t.replace(/\/watch\?(v|V\?)=/g,"/embed/"),this.sanitizer.bypassSecurityTrustResourceUrl(e))}isExtenstionUrl(e){return new RegExp(/\.\w{3,4}($|\?)/i).test(e)}sanitizeUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}onMediaPlaying(e,t){var n,i;e.preventDefault(),null!=this.currentPlayingVideo&&(null===(n=this.currentPlayingVideo)||void 0===n||n.pause()),null!=this.currentPlayingAudio&&(null===(i=this.currentPlayingAudio)||void 0===i||i.pause()),t?(this.currentPlayingAudio=e.target,this.currentPlayingAudio.play()):(this.currentPlayingVideo=e.target,this.currentPlayingVideo.play())}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(u.a),m.Vb(b.b),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-video-gallery"]],inputs:{BackGroundClass:"BackGroundClass"},decls:11,vars:11,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"section-title","text-center","m-auto"],["target","_blank","class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","col-lg-12 col-md-12 col-12 mb-4 mb-lg-0",4,"ngIf"],[4,"ngIf"],[3,"class",4,"ngIf"],["target","_blank",1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-12","col-md-12","col-12","mb-4","mb-lg-0"],[1,"home-new-program-bg-white"],[1,"row"],[4,"ngFor","ngForOf"],[1,"col-xl-3","col-lg-3","col-sm-3","col-12","mb-3"],[1,"audio-card","video-card-new","d-flex","justify-content-center","text-center"],[1,"embed-responsive","embed-responsive-21by9"],[4,"ngIf","ngIfElse"],["iframVideo",""],[1,"av-caption",3,"title"],["target","_blank",3,"href"],["width","100%","height","100%","controls","","preload","none","data-setup",'{ "aspectRatio":"100%:100%", "playbackRates": [1, 1.5, 2] }',1,"embed-responsive-item",3,"id","poster","playing"],[3,"src","type"],["width","971","height","546","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen","",3,"src","title"]],template:function(e,t){1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Tc(6,er,3,5,"a",3),m.Zb(),m.Tc(7,ar,4,1,"div",4),m.Tc(8,cr,1,0,"app-mini-loader",5),m.Tc(9,or,1,0,"app-no-records",5),m.Zb(),m.Zb(),m.Tc(10,br,13,10,"section",6)),2&e&&(m.Lb("home-inauguration ",t.BackGroundClass,""),m.Hb(4),m.Xc(" ",m.oc(5,9,"VideoGallery_txt")," "),m.Hb(2),m.tc("ngIf",t.totalRecords>t.searchModel.IndexModel.PageSize),m.Hb(1),m.tc("ngIf",t.videoModel&&t.videoModel.length>0),m.Hb(1),m.tc("ngIf",!t.videoModel),m.Hb(1),m.tc("ngIf",t.videoModel&&0==t.videoModel.length),m.Hb(1),m.tc("ngIf",t.brVideoModel&&t.brVideoModel.length>0))},directives:[i.n,h.d,i.m,v.a,C.a],pipes:[c.c,i.u],styles:[""]}),e})();const hr=function(e,t){return["/pages/government-order/images",e,t,"1771"]};function pr(e,t){if(1&e&&(m.ac(0,"button",19),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.tc("routerLink",m.Fc(4,hr,e._commonService.GetWebDistDeptCode(),e.orderTypeEnum.Publication)),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function fr(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",20),m.ac(2,"a",21),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.ac(3,"img",22),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit;m.mc(),m.Hb(1),m.uc("title",e.Title),m.Hb(1),m.uc("href",e.ImagePath,m.Pc),m.Hb(1),m.uc("src",e.ImagePath,m.Pc),m.uc("alt",e.Title),m.uc("title",e.Title)}}function vr(e,t){1&e&&m.Wb(0,"app-mini-loader",23)}function Cr(e,t){1&e&&m.Wb(0,"app-no-records",23)}const Hr=function(e,t){return["/pages/government-order/images",e,t,"2169"]};function Dr(e,t){if(1&e&&(m.ac(0,"button",19),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.tc("routerLink",m.Fc(4,Hr,e._commonService.GetWebDistDeptCode(),e.orderTypeEnum.Publication)),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function Mr(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",20),m.ac(2,"a",24),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.ac(3,"img",25),m.ic("error",(function(t){return m.Mc(e),m.mc()._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit;m.mc(),m.Hb(1),m.uc("title",e.Title),m.Hb(1),m.uc("href",e.ImagePath,m.Pc),m.Hb(1),m.uc("src",e.ImagePath,m.Pc),m.uc("title",e.Title),m.uc("alt",e.Title)}}function Ir(e,t){1&e&&m.Wb(0,"app-mini-loader",23)}function Zr(e,t){1&e&&m.Wb(0,"app-no-records",23)}let Tr=(()=>{class e{constructor(e,t,n,i,a){this._orderService=e,this.translate=t,this.sanitizer=n,this._router=i,this._commonService=a,this.orderTypeEnum=gc.e,this.posterModelCount=0,this.advertisementModelCount=0,this.audioModelCount=0,this.videoModelCount=0,this.DepartmentCode=0,this.DateFormat=d.a.DateFormat,this.onPause=new m.q}ngOnInit(){this.GetPoster(),this.GetAdvertisement()}GetAudio(){this.GetListByTypeCode(1684).subscribe(e=>{var t,n,i,a;if(this.audioModel=[],e.IsSuccess)return this.filterModel.IndexModel.IsPostBack||(this.audioModelCount=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.TotalRecords),this.audioModel=null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.Data;this.audioModelCount=0},e=>{console.error(e.message),this.audioModel=[]})}GetAdvertisement(){this.GetListByTypeCode(gc.d.Advertisement).subscribe(e=>{var t,n,i,a;if(this.advertisementModel=[],e.IsSuccess)return this.filterModel.IndexModel.IsPostBack||(this.advertisementModelCount=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.TotalRecords),this.advertisementModel=null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.Data;this.advertisementModelCount=0},e=>{console.error(e.message),this.advertisementModel=[]})}GetPoster(){this.GetListByTypeCode(gc.d.Poster).subscribe(e=>{var t,n,i,a;if(this.posterModel=[],e.IsSuccess)return this.filterModel.IndexModel.IsPostBack||(this.posterModelCount=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.TotalRecords),this.posterModel=null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.Data;this.posterModelCount=0},e=>{console.error(e.message),this.posterModel=[]})}GetVideo(){this.GetListByTypeCode(1863).subscribe(e=>{var t,n,i,a;if(this.videoModel=[],this.videoModel=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,e.IsSuccess)return this.filterModel.IndexModel.IsPostBack||(this.videoModelCount=null===(a=null===(i=e)||void 0===i?void 0:i.Data)||void 0===a?void 0:a.TotalRecords),this.videoModel&&this.videoModel.length>0&&this.videoModel.forEach(e=>{e.SafeUrl=this.SafeUrl(e.YoutubeURL||e.Url)}),this.videoModel;this.videoModelCount=0},e=>{console.error(e.message),this.videoModel=[]})}isExtenstionUrl(e){return new RegExp(/\.\w{3,4}($|\?)/i).test(e)}onMediaPlaying(e,t){var n,i;e.preventDefault(),null===(n=this.currentPlayingAudio)||void 0===n||n.pause(),null===(i=this.currentPlayingVideo)||void 0===i||i.pause(),t?(this.currentPlayingAudio=e.target,this.currentPlayingAudio.play()):(this.currentPlayingVideo=e.target,this.currentPlayingVideo.play()),this.mediaControlModel=new s.e,this.mediaControlModel.Item=e,this.mediaControlModel.IsAudio=t,this.onPause.emit(this.mediaControlModel)}SafeUrl(e){return new RegExp(/\/view(v|V?)/i).test(e)?(e=e.replace(/\/view(v|V?)/i,"/preview"),this.sanitizer.bypassSecurityTrustResourceUrl(e)):(e=e.replace(/\/watch\?(v|V\?)=/g,"/embed/"),this.sanitizer.bypassSecurityTrustResourceUrl(e))}GetListByTypeCode(e){let t=new hc.d;return t.IndexModel.Page=1,t.IndexModel.PageSize=2,t.IndexModel.OrderBy="Date",t.IndexModel.OrderByAsc=0,t.Type=this.orderTypeEnum.Publication,t.SubTypeCode=e,t.DepartmentCode=this._commonService.GetWebDistDeptCode(),this.filterModel=t,this._orderService.Get(t)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(pc.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.b),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-order-awareness-material"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass"},outputs:{onPause:"onPause"},decls:34,vars:20,consts:[[2,"background","#fff !important"],[1,"container-fluid"],[1,"section-title","text-center","mb-5"],[1,"row"],[1,"col-lg-6","mb-4"],[1,"home-order-material-items"],[1,"d-flex","align-items-center","justify-content-between","mb-3","home-order-material-items-title"],[1,"section-title","mb-0"],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],[1,"photo-gallery","home-new-poster"],[1,"photos"],[1,"d-flex","flex-row","flex-wrap","my-flex-container","justify-content-center","photos","w-100"],[4,"ngFor","ngForOf"],["color","#fff",4,"ngIf"],[1,"col-lg-6"],[1,"d-flex","align-items-center","justify-content-between","mb-4","home-order-material-items-title"],[1,"col-lg-12","col-md-12"],[1,"photo-gallery"],[1,"row","photos"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"photo-gallery-bx","align-items-center","d-flex","justify-content-center",3,"title"],["data-lightbox","photosSection",3,"href","error"],[1,"img-fluid","rounded",3,"src","alt","title","error"],["color","#fff"],["data-lightbox","photosAdvertisements",3,"href","error"],[1,"img-fluid","rounded",3,"src","title","alt","error"]],template:function(e,t){1&e&&(m.ac(0,"section",0),m.ac(1,"div",1),m.ac(2,"div",2),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"div",3),m.ac(6,"div",4),m.ac(7,"div",5),m.ac(8,"div",6),m.ac(9,"h1",7),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.Tc(12,pr,3,7,"button",8),m.Zb(),m.ac(13,"div",9),m.ac(14,"div",10),m.ac(15,"div",11),m.Tc(16,fr,4,5,"ng-container",12),m.Tc(17,vr,1,0,"app-mini-loader",13),m.Tc(18,Cr,1,0,"app-no-records",13),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(19,"div",14),m.ac(20,"div",5),m.ac(21,"div",15),m.ac(22,"h1",7),m.Vc(23),m.nc(24,"translate"),m.Zb(),m.Tc(25,Dr,3,7,"button",8),m.Zb(),m.ac(26,"div",3),m.ac(27,"div",16),m.ac(28,"div",17),m.ac(29,"div",18),m.ac(30,"div",11),m.Tc(31,Mr,4,5,"ng-container",12),m.Tc(32,Ir,1,0,"app-mini-loader",13),m.Tc(33,Zr,1,0,"app-no-records",13),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Lb("order-material py-5 ",t.BackGroundClass,""),m.Hb(3),m.Wc(m.oc(4,14,"AwarenessMaterial_txt")),m.Hb(7),m.Xc(" ",m.oc(11,16,"Posters_txt"),""),m.Hb(2),m.tc("ngIf",t.posterModelCount>t.filterModel.IndexModel.PageSize),m.Hb(4),m.tc("ngForOf",t.posterModel),m.Hb(1),m.tc("ngIf",!t.posterModel),m.Hb(1),m.tc("ngIf",t.posterModel&&0==t.posterModel.length),m.Hb(5),m.Xc(" ",m.oc(24,18,"Advertisement_txt")," "),m.Hb(2),m.tc("ngIf",t.advertisementModelCount>t.filterModel.IndexModel.PageSize),m.Hb(6),m.tc("ngForOf",t.advertisementModel),m.Hb(1),m.tc("ngIf",!t.advertisementModel),m.Hb(1),m.tc("ngIf",t.advertisementModel&&0==t.advertisementModel.length))},directives:[i.n,i.m,h.c,v.a,C.a],pipes:[c.c],styles:[".order-material[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]:after, .order-material[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]:before{display:none}section.order-material[_ngcontent-%COMP%]{box-shadow:0 0 20px #e7e7e7;max-width:1600px;margin:auto;border-radius:40px;border-top:5px solid #009688}.order-material[_ngcontent-%COMP%] .photo-gallery-bx[_ngcontent-%COMP%]{box-shadow:none;width:40%;border:2px solid #dfdfdf;border-radius:10px;height:300px;background:#fbfdff}.order-material[_ngcontent-%COMP%] .photo-gallery-bx[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:295px}.order-material[_ngcontent-%COMP%] .btn-theme[_ngcontent-%COMP%]{background:transparent;color:#135da4!important;text-decoration:underline}"]}),e})();function yr(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Wb(4,"p",4),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("dept-dynamic-info-home-page ",e.BackGroundClass,""),m.Hb(4),m.tc("innerHTML",e.sanitizer.bypassSecurityTrustHtml("hi"==e.translate.currentLang&&null!=e.model&&e.model.DetailsInHindi?null==e.model?null:e.model.DetailsInHindi:null==e.model?null:e.model.Details),m.Nc)}}let xr=(()=>{class e{constructor(e,t,n,i){this.sanitizer=e,this.translate=t,this._commonService=n,this._departmentProfileService=i,this.isLoading=!0,this.filterModel=new Ci.c,this.model=new Ci.d}ngOnInit(){this.getDepartmentProfileData()}getDepartmentProfileData(){this.isLoading=!0,this.model=void 0,this.filterModel.IndexModel.PageSize=1,this.filterModel.JankalyanCategoryCode=vi.b.AboutDepartmantDistCode,this.filterModel.EntryTypeCode=vi.d.WelcomePage,this.filterModel.DepartmentCode=this._commonService.GetWebDistDeptCode(),this._departmentProfileService.GetList(this.filterModel).subscribe(e=>{var t,n;if(e.IsSuccess){let i=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data;this.model=i&&1==i.length?i[0]:new Ci.d}else this.model={};this.isLoading=!1},e=>{this.model={},this.isLoading=!1})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(b.b),m.Vb(c.d),m.Vb(g.a),m.Vb(Hi.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-welcome-section"]],inputs:{BackGroundClass:"BackGroundClass"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[2,"text-align","justify !important",3,"innerHTML"]],template:function(e,t){1&e&&m.Tc(0,yr,5,4,"section",0),2&e&&m.tc("ngIf",null==t.model?null:t.model.Details)},directives:[i.n],styles:[""]}),e})();function Pr(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Wb(4,"p",4),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("dept-dynamic-info-home-page ",e.BackGroundClass,""),m.Hb(4),m.tc("innerHTML",e.sanitizer.bypassSecurityTrustHtml("hi"==e.translate.currentLang&&null!=e.model&&e.model.DetailsInHindi?null==e.model?null:e.model.DetailsInHindi:null==e.model?null:e.model.Details),m.Nc)}}let Sr=(()=>{class e{constructor(e,t,n,i){this.sanitizer=e,this.translate=t,this._commonService=n,this._departmentProfileService=i,this.isLoading=!0,this.filterModel=new Ci.c,this.model=new Ci.d}ngOnInit(){this.getDepartmentProfileData()}getDepartmentProfileData(){this.isLoading=!0,this.model=void 0,this.filterModel.IndexModel.PageSize=1,this.filterModel.JankalyanCategoryCode=vi.b.AboutDepartmantDistCode,this.filterModel.EntryTypeCode=vi.d.WelcomePage2,this.filterModel.DepartmentCode=this._commonService.GetWebDistDeptCode(),this._departmentProfileService.GetList(this.filterModel).subscribe(e=>{var t,n;if(e.IsSuccess){let i=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data;this.model=i&&1==i.length?i[0]:new Ci.d}else this.model={};this.isLoading=!1},e=>{this.model={},this.isLoading=!1})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(b.b),m.Vb(c.d),m.Vb(g.a),m.Vb(Hi.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-welcome2-section"]],inputs:{BackGroundClass:"BackGroundClass"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[2,"text-align","justify !important",3,"innerHTML"]],template:function(e,t){1&e&&m.Tc(0,Pr,5,4,"section",0),2&e&&m.tc("ngIf",null==t.model?null:t.model.Details)},directives:[i.n],styles:[""]}),e})();function _r(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",1),m.ac(2,"div",2),m.ac(3,"div",3),m.Wb(4,"p",4),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Lb("dept-dynamic-info-home-page ",e.BackGroundClass,""),m.Hb(4),m.tc("innerHTML",e.sanitizer.bypassSecurityTrustHtml("hi"==e.translate.currentLang&&null!=e.model&&e.model.DetailsInHindi?null==e.model?null:e.model.DetailsInHindi:null==e.model?null:e.model.Details),m.Nc)}}let wr=(()=>{class e{constructor(e,t,n,i){this.sanitizer=e,this.translate=t,this._commonService=n,this._departmentProfileService=i,this.isLoading=!0,this.filterModel=new Ci.c,this.model=new Ci.d}ngOnInit(){this.getDepartmentProfileData()}getDepartmentProfileData(){this.isLoading=!0,this.model=void 0,this.filterModel.IndexModel.PageSize=1,this.filterModel.JankalyanCategoryCode=vi.b.AboutDepartmantDistCode,this.filterModel.EntryTypeCode=vi.d.WelcomePage3,this.filterModel.DepartmentCode=this._commonService.GetWebDistDeptCode(),this._departmentProfileService.GetList(this.filterModel).subscribe(e=>{var t,n;if(e.IsSuccess){let i=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data;this.model=i&&1==i.length?i[0]:new Ci.d}else this.model={};this.isLoading=!1},e=>{this.model={},this.isLoading=!1})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(b.b),m.Vb(c.d),m.Vb(g.a),m.Vb(Hi.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-welcome3-section"]],inputs:{BackGroundClass:"BackGroundClass"},decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[2,"text-align","justify !important",3,"innerHTML"]],template:function(e,t){1&e&&m.Tc(0,_r,5,4,"section",0),2&e&&m.tc("ngIf",null==t.model?null:t.model.Details)},directives:[i.n],styles:[""]}),e})();var Lr=function(e){return e.Photo="PHOTO",e.Video="VIDEO",e.Image="PHOTO",e}({});function Vr(e,t){if(1&e&&(m.ac(0,"option",11),m.Vc(1),m.Zb()),2&e){const e=t.$implicit,n=m.mc(2);m.tc("value",e.Value),m.Hb(1),m.Xc(" ","en"!=n.translate.currentLang?e.OtherData.DepartmentTitleHindi:e.Text," ")}}function kr(e,t){if(1&e){const e=m.bc();m.ac(0,"select",10),m.ic("change",(function(t){return m.Mc(e),m.mc().onDistrictSelect(t)}))("ngModelChange",(function(t){return m.Mc(e),m.mc().filters.DepartmentCode=t})),m.ac(1,"option",11),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,Vr,2,2,"option",12),m.Zb()}if(2&e){const e=m.mc();m.tc("ngModel",e.filters.DepartmentCode),m.Hb(1),m.tc("value",0),m.Hb(1),m.Xc("--",m.oc(3,4,"District_txt"),"--"),m.Hb(2),m.tc("ngForOf",e.departments)}}function Nr(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","en"!=e.translate.currentLang?e.SectionNameHi||e.SectionNameEn:e.SectionNameEn||e.SectionNameHi,"")}}function Or(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"PhotoGallery_txt"),""))}const Ar=function(e,t){return["/pages/uploader",e,"gallery",t,0]};function Wr(e,t){if(1&e&&(m.ac(0,"a",13),m.ac(1,"span"),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e){const e=m.mc();m.tc("routerLink",m.Fc(4,Ar,e.UploaderTypeEnum.Image,e.filters.DepartmentCode)),m.Hb(2),m.Xc(" ",m.oc(3,2,"ViewAll_txt"),"")}}function Er(e,t){if(1&e){const e=m.bc();m.ac(0,"li"),m.ac(1,"a",27),m.ac(2,"img",21),m.ic("error",(function(t){return m.Mc(e),m.mc(5)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2),n=t.index,i=t.$implicit;m.Hb(1),m.uc("href",e,m.Pc),m.Jb("data-lightbox","uploader_images_",n,"A"),m.uc("title",i.Subject),m.Hb(1),m.uc("title",i.Subject),m.uc("alt",i.Subject),m.tc("src",e,m.Pc)}}function Gr(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Er,3,6,"li",9),m.Xb()),2&e){const e=t.index;m.Hb(1),m.tc("ngIf",e>0)}}function Fr(e,t){if(1&e&&(m.ac(0,"ul",25),m.Tc(1,Gr,2,1,"ng-container",26),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngForOf",e.Images)}}function Rr(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.DepartmentTitleHindi||e.DepartmentTitle:e.DepartmentTitle||e.DepartmentTitleHindi," ")}}function Xr(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"slice"),m.nc(3,"slice"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?(null==e?null:e.Subject.length)>60?m.qc(2,1,null==e?null:e.Subject,0,60)+"...":null==e?null:e.Subject:(null==e?null:e.Subject.length)>60?m.qc(3,5,null==e?null:e.Subject,0,60)+"...":null==e?null:e.Subject," ")}}function Br(e,t){if(1&e&&(m.ac(0,"span",28),m.Vc(1),m.nc(2,"date"),m.nc(3,"date"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Wc("hi"==t.translate.currentLang?e.DateHindi||m.pc(2,1,e.Date,t.DateFormat):m.pc(3,4,e.Date,t.DateFormat)||e.DateHindi)}}function Ur(e,t){if(1&e){const e=m.bc();m.ac(0,"div",18),m.ac(1,"a",19),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.nc(2,"slice"),m.nc(3,"slice"),m.ac(4,"div",20),m.ac(5,"img",21),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Tc(6,Fr,2,1,"ul",22),m.ac(7,"div",23),m.Tc(8,Rr,2,1,"span",9),m.Tc(9,Xr,4,9,"span",9),m.Zb(),m.Tc(10,Br,4,7,"span",24),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.Hb(1),m.Jb("data-lightbox","uploader_images_",n,"A"),m.uc("title","en"==i.translate.currentLang?(null==e?null:null==e.Subject?null:e.Subject.length)>80?m.qc(2,10,null==e?null:e.Subject,0,80)+"...":null==e?null:e.Subject:(null==e?null:null==e.Subject?null:e.Subject.length)>80?m.qc(3,14,null==e?null:e.Subject,0,80)+"...":null==e?null:e.Subject),m.tc("href",e.Images[0],m.Pc),m.Hb(4),m.uc("title",e.Subject),m.uc("alt",e.Subject),m.tc("src",e.Images[0],m.Pc),m.Hb(1),m.tc("ngIf",e.Images&&e.Images.length>0),m.Hb(2),m.tc("ngIf",e.DepartmentTitle||e.DepartmentTitleHindi),m.Hb(1),m.tc("ngIf",null==e?null:e.Subject),m.Hb(1),m.tc("ngIf",e.DateHindi||e.Date)}}function zr(e,t){if(1&e&&(m.ac(0,"div",14),m.ac(1,"div",15),m.ac(2,"div",16),m.Tc(3,Ur,11,18,"div",17),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.data)}}function jr(e,t){1&e&&m.Wb(0,"app-mini-loader")}function $r(e,t){1&e&&m.Wb(0,"app-no-records")}let Yr=(()=>{class e{constructor(e,t,n){this.translate=e,this._dptDistrictWebsiteService=t,this._commonService=n,this.departments=[],this.filters=new ha.e,this.totalRecords=0,this.UploaderTypeEnum=Lr,this.DateFormat=d.a.DateFormat}ngOnInit(){this.GetData()}onDistrictSelect(e){this.GetData()}GetData(){this.data=void 0,this.filters.OrderBy="ModifiedDate",this.filters.OrderByAsc=0,this.filters.PageSize=4,this.filters.UploaderType=Lr.Image,this.filters.DepartmentCode=this._commonService.GetWebDistDeptCode(),this._dptDistrictWebsiteService.GetUploaderDataForFront(this.filters).subscribe(e=>{var t,n;e.IsSuccess?(this.data=e.Data.Data,this.totalRecords=e.Data.TotalRecords,(null===(t=this.data)||void 0===t?void 0:t.length)&&!(null===(n=this.departments)||void 0===n?void 0:n.length)&&this.GetDepartmentByAdminDepartmentCodes()):this.data=[]},e=>{this.data=[]})}GetDepartmentByAdminDepartmentCodes(){this._dptDistrictWebsiteService.GetDepartmentByAdminDepartmentCodes(Ql.a.Collectorate.toString()).subscribe(e=>{this.departments=e.IsSuccess?e.Data:[]})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(p.a),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-uploader-photo-gallery"]],inputs:{BackGroundClass:"BackGroundClass",SectionNameEn:"SectionNameEn",SectionNameHi:"SectionNameHi"},decls:13,vars:10,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"col-lg-4",2,"display","none"],["class","custom-select","style","max-width: 170px;",3,"ngModel","change","ngModelChange",4,"ngIf"],[1,"section-title","text-center","m-auto"],[4,"ngIf","ngIfElse"],["defaultHeading",""],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","col-lg-12 col-md-12 col-12 mb-4 mb-lg-0",4,"ngIf"],[4,"ngIf"],[1,"custom-select",2,"max-width","170px",3,"ngModel","change","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-12","col-md-12","col-12","mb-4","mb-lg-0"],[1,"home-new-program-bg-white"],[1,"row"],["class","col-lg-3 col-md-3 col-sm-6 col-12 mb-3 px-2",4,"ngFor","ngForOf"],[1,"col-lg-3","col-md-3","col-sm-6","col-12","mb-3","px-2"],[1,"home-gallery-items","d-block",3,"href","title","error"],[1,"home-gallery-items-img","d-flex","align-items-center","justify-content-center"],[3,"src","title","alt","error"],["style","display: none;",4,"ngIf"],[1,"home-gallery-items-caption"],["class","new-date-design",4,"ngIf"],[2,"display","none"],[4,"ngFor","ngForOf"],[3,"href","title"],[1,"new-date-design"]],template:function(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Tc(4,kr,5,6,"select",3),m.Zb(),m.ac(5,"div",4),m.Tc(6,Nr,2,1,"span",5),m.Tc(7,Or,3,3,"ng-template",null,6,m.Uc),m.Zb(),m.Tc(9,Wr,4,7,"a",7),m.Zb(),m.Tc(10,zr,4,1,"div",8),m.Tc(11,jr,1,0,"app-mini-loader",9),m.Tc(12,$r,1,0,"app-no-records",9),m.Zb(),m.Zb()),2&e){const e=m.Kc(8);m.Lb("home-inauguration ",t.BackGroundClass,""),m.Hb(4),m.tc("ngIf",t.data||!t.data&&t.filters.DepartmentCode),m.Hb(2),m.tc("ngIf",t.SectionNameHi||t.SectionNameEn)("ngIfElse",e),m.Hb(3),m.tc("ngIf",t.totalRecords>t.filters.PageSize),m.Hb(1),m.tc("ngIf",(null==t.data?null:t.data.length)>0),m.Hb(1),m.tc("ngIf",!t.data),m.Hb(1),m.tc("ngIf",t.data&&0==t.data.length)}},directives:[i.n,a.u,a.m,a.p,a.q,a.w,i.m,h.d,v.a,C.a],pipes:[c.c,i.u,i.e],styles:[""]}),e})();function qr(e,t){if(1&e&&(m.ac(0,"option",11),m.Vc(1),m.Zb()),2&e){const e=t.$implicit,n=m.mc(2);m.tc("value",e.Value),m.Hb(1),m.Xc(" ","en"!=n.translate.currentLang?e.OtherData.DepartmentTitleHindi:e.Text," ")}}function Jr(e,t){if(1&e){const e=m.bc();m.ac(0,"select",10),m.ic("change",(function(t){return m.Mc(e),m.mc().onDistrictSelect(t)}))("ngModelChange",(function(t){return m.Mc(e),m.mc().filters.DepartmentCode=t})),m.ac(1,"option",11),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Tc(4,qr,2,2,"option",12),m.Zb()}if(2&e){const e=m.mc();m.tc("ngModel",e.filters.DepartmentCode),m.Hb(1),m.tc("value",0),m.Hb(1),m.Xc("--",m.oc(3,4,"District_txt"),"--"),m.Hb(2),m.tc("ngForOf",e.departments)}}function Kr(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","en"!=e.translate.currentLang?e.SectionNameHi||e.SectionNameEn:e.SectionNameEn||e.SectionNameHi,"")}}function Qr(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"VideoGallery_txt"),""))}const es=function(e,t){return["/pages/uploader",e,"gallery",t,0]};function ts(e,t){if(1&e&&(m.ac(0,"a",13),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.tc("routerLink",m.Fc(4,es,e.UploaderTypeEnum.Video,e.filters.DepartmentCode)),m.Hb(1),m.Xc(" ",m.oc(2,2,"ViewAll_txt")," ")}}function ns(e,t){if(1&e&&(m.ac(0,"span",27),m.Vc(1),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?e.DepartmentTitleHindi||e.DepartmentTitle:e.DepartmentTitle||e.DepartmentTitleHindi," ")}}function is(e,t){if(1&e&&(m.ac(0,"span",28),m.Vc(1),m.nc(2,"slice"),m.nc(3,"slice"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ","hi"==t.translate.currentLang?(null==e?null:e.Subject.length)>60?m.qc(2,1,null==e?null:e.Subject,0,60)+"...":null==e?null:e.Subject:(null==e?null:e.Subject.length)>60?m.qc(3,5,null==e?null:e.Subject,0,60)+"...":null==e?null:e.Subject," ")}}function as(e,t){if(1&e&&(m.ac(0,"span",29),m.Vc(1),m.nc(2,"date"),m.nc(3,"date"),m.Zb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.Wc("hi"==t.translate.currentLang?e.DateHindi||m.pc(2,1,e.Date,t.DateFormat):m.pc(3,4,e.Date,t.DateFormat)||e.DateHindi)}}function cs(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",18),m.ac(2,"div",19),m.ac(3,"div",20),m.Yb(4),m.ac(5,"video",21),m.ic("playing",(function(t){return m.Mc(e),m.mc(2).onMediaPlaying(t)})),m.Wb(6,"source",22),m.Zb(),m.Xb(),m.Zb(),m.ac(7,"div",23),m.Tc(8,ns,2,1,"span",24),m.Tc(9,is,4,9,"span",25),m.Zb(),m.Tc(10,as,4,7,"span",26),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit,n=t.index;m.mc(2),m.Hb(5),m.vc("id","my_video_",n,""),m.Hb(1),m.uc("src",e.VideoPath,m.Pc),m.vc("type","video/",e.VideoPath.split(".")[e.VideoPath.split(".").length-1],""),m.Hb(1),m.uc("title",null==e?null:e.Subject),m.Hb(1),m.tc("ngIf",e.DepartmentTitle||e.DepartmentTitleHindi),m.Hb(1),m.tc("ngIf",null==e?null:e.Subject),m.Hb(1),m.tc("ngIf",e.DateHindi||e.Date)}}function os(e,t){if(1&e&&(m.ac(0,"div",14),m.ac(1,"div",15),m.ac(2,"div",16),m.Tc(3,cs,11,7,"ng-container",17),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.tc("ngForOf",e.data)}}function ls(e,t){1&e&&m.Wb(0,"app-mini-loader")}function rs(e,t){1&e&&m.Wb(0,"app-no-records")}let ss=(()=>{class e{constructor(e,t,n,i){this.translate=e,this._dptDistrictWebsiteService=t,this._commonService=n,this.sanitizer=i,this.DateFormat=d.a.DateFormat,this.totalRecords=0,this.filters=new ha.e,this.UploaderTypeEnum=Lr,this.departments=[]}ngOnInit(){this.getData()}onDistrictSelect(e){this.getData()}getData(){this.data=void 0,this.filters.OrderBy="ModifiedDate",this.filters.OrderByAsc=0,this.filters.PageSize=3,this.filters.UploaderType=Lr.Video,this.filters.DepartmentCode=this._commonService.GetWebDistDeptCode(),this._dptDistrictWebsiteService.GetUploaderDataForFront(this.filters).subscribe(e=>{var t,n;e.IsSuccess?(this.data=e.Data.Data,this.totalRecords=e.Data.TotalRecords,(null===(t=this.data)||void 0===t?void 0:t.length)&&!(null===(n=this.departments)||void 0===n?void 0:n.length)&&this.GetDepartmentByAdminDepartmentCodes()):this.data=[]},e=>{this.data=[]})}sanitizeUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}onMediaPlaying(e){var t;e.preventDefault(),null!=this.currentPlayingVideo&&(null===(t=this.currentPlayingVideo)||void 0===t||t.pause()),this.currentPlayingVideo=e.target,this.currentPlayingVideo.play()}GetDepartmentByAdminDepartmentCodes(){this._dptDistrictWebsiteService.GetDepartmentByAdminDepartmentCodes(Ql.a.Collectorate.toString()).subscribe(e=>{this.departments=e.IsSuccess?e.Data:[]})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(p.a),m.Vb(g.a),m.Vb(b.b))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-uploader-video-gallery"]],inputs:{BackGroundClass:"BackGroundClass",SectionNameEn:"SectionNameEn",SectionNameHi:"SectionNameHi"},decls:13,vars:10,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"col-lg-4",2,"display","none"],["class","custom-select","style","max-width: 170px;",3,"ngModel","change","ngModelChange",4,"ngIf"],[1,"section-title","text-center","m-auto"],[4,"ngIf","ngIfElse"],["defaultHeading",""],["target","_blank","class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","col-lg-12 col-md-12 col-12 mb-4 mb-lg-0",4,"ngIf"],[4,"ngIf"],[1,"custom-select",2,"max-width","170px",3,"ngModel","change","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["target","_blank",1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"col-lg-12","col-md-12","col-12","mb-4","mb-lg-0"],[1,"home-new-program-bg-white"],[1,"row"],[4,"ngFor","ngForOf"],[1,"col-xl-4","col-lg-3","col-sm-6","col-12","mb-3"],[1,"audio-card","video-card-new","d-flex","justify-content-center","text-center"],[1,"embed-responsive","embed-responsive-21by9"],["width","100%","height","100%","controls","","preload","none","data-setup",'{ "aspectRatio":"100%:100%", "playbackRates": [1, 1.5, 2] }',1,"embed-responsive-item",3,"id","playing"],[3,"src","type"],[1,"av-caption","d-block",3,"title"],["class","d-block",4,"ngIf"],["class","d-block text-muted",4,"ngIf"],["class","new-date-design",4,"ngIf"],[1,"d-block"],[1,"d-block","text-muted"],[1,"new-date-design"]],template:function(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Tc(4,Jr,5,6,"select",3),m.Zb(),m.ac(5,"div",4),m.Tc(6,Kr,2,1,"span",5),m.Tc(7,Qr,3,3,"ng-template",null,6,m.Uc),m.Zb(),m.Tc(9,ts,3,7,"a",7),m.Zb(),m.Tc(10,os,4,1,"div",8),m.Tc(11,ls,1,0,"app-mini-loader",9),m.Tc(12,rs,1,0,"app-no-records",9),m.Zb(),m.Zb()),2&e){const e=m.Kc(8);m.Lb("py-5 ",t.BackGroundClass,""),m.Hb(4),m.tc("ngIf",t.data||!t.data&&t.filters.DepartmentCode),m.Hb(2),m.tc("ngIf",t.SectionNameHi||t.SectionNameEn)("ngIfElse",e),m.Hb(3),m.tc("ngIf",t.totalRecords>t.filters.PageSize),m.Hb(1),m.tc("ngIf",null==t.data?null:t.data.length),m.Hb(1),m.tc("ngIf",!t.data),m.Hb(1),m.tc("ngIf",t.data&&0==t.data.length)}},directives:[i.n,a.u,a.m,a.p,a.q,a.w,i.m,h.d,v.a,C.a],pipes:[c.c,i.u,i.e],styles:[""]}),e})();function ds(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","en"!=e.translate.currentLang?e.SectionNameHi||e.SectionNameEn:e.SectionNameEn||e.SectionNameHi,"")}}function ms(e,t){1&e&&(m.ac(0,"span"),m.Vc(1," In Media"),m.Zb())}function us(e,t){if(1&e&&(m.ac(0,"a",8),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc();m.xc("routerLink","/pages/sm/government-order/images/0/",e.DepartmentCode,"/",e.orderType.InMediaNewsofDept,"/",e.orderSubType.InNewsPaper,""),m.Hb(1),m.Xc(" ",m.oc(2,4,"ViewAll_txt")," ")}}function bs(e,t){if(1&e){const e=m.bc();m.ac(0,"li"),m.ac(1,"a",19),m.ac(2,"img",14),m.ic("error",(function(t){return m.Mc(e),m.mc(5)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc().$implicit,t=m.mc(2),n=t.index,i=t.$implicit;m.mc(2),m.Hb(1),m.uc("href",e,m.Pc),m.Jb("data-lightbox","images_",n,""),m.uc("title",i.Title),m.Hb(1),m.uc("title",i.Title),m.uc("alt",i.Title),m.tc("src",e,m.Pc)}}function gs(e,t){if(1&e&&(m.Yb(0),m.Tc(1,bs,3,6,"li",7),m.Xb()),2&e){const e=t.index;m.Hb(1),m.tc("ngIf",e>0)}}function hs(e,t){if(1&e&&(m.ac(0,"ul",17),m.Tc(1,gs,2,1,"ng-container",18),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngForOf",e.ImageFiles)}}function ps(e,t){if(1&e){const e=m.bc();m.ac(0,"div",11),m.ac(1,"a",12),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.nc(2,"slice"),m.nc(3,"slice"),m.ac(4,"div",13),m.ac(5,"img",14),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/default.png")})),m.Zb(),m.Zb(),m.Tc(6,hs,2,1,"ul",15),m.ac(7,"div",16),m.Vc(8),m.nc(9,"slice"),m.nc(10,"slice"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.Hb(1),m.Jb("data-lightbox","images_",n,""),m.uc("title","en"==i.translate.currentLang?(null==e?null:e.Title.length)>80?m.qc(2,8,null==e?null:e.Title,0,80)+"...":null==e?null:e.Title:(null==e?null:e.Title.length)>80?m.qc(3,12,null==e?null:e.Title,0,80)+"...":null==e?null:e.Title),m.tc("href",e.ImagePath,m.Pc),m.Hb(4),m.uc("title",e.Title),m.uc("alt",e.Title),m.tc("src",e.ImagePath,m.Pc),m.Hb(1),m.tc("ngIf",e.ImageFiles&&e.ImageFiles.length>0),m.Hb(2),m.Xc(" ","hi"==i.translate.currentLang?(null==e?null:e.Title.length)>60?m.qc(9,16,null==e?null:e.Title,0,60)+"...":null==e?null:e.Title:(null==e?null:e.Title.length)>60?m.qc(10,20,null==e?null:e.Title,0,60)+"...":null==e?null:e.Title," ")}}function fs(e,t){if(1&e&&(m.ac(0,"div",9),m.Tc(1,ps,11,24,"div",10),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngForOf",e.orderPublicPortal)}}function vs(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Cs(e,t){1&e&&m.Wb(0,"app-no-records")}let Hs=(()=>{class e{constructor(e,t,n,i,a){this.translate=e,this._commonService=t,this.orderService=n,this._distDeptService=i,this.route=a,this.DepartmentCode=0,this.indexModel=new s.d,this.model=new hc.d,this.isLatest=!1,this.DateFormat=d.a.DateFormat,this.departmentCode=0,this.orderType=gc.e,this.orderSubType=gc.d,this.DepartmentCode=this._commonService.GetWebDistDeptCode()}ngOnInit(){this.GetList()}GetList(){this.orderPublicPortal=void 0,this.model.IndexModel=this.indexModel,this.model.DepartmentCode=this.DepartmentCode,this.model.IsImagesRequired=!0,this.model.Type=this.orderType.InMediaNewsofDept,this.model.SubTypeCode=this.orderSubType.InNewsPaper,this.model.IndexModel.PageSize=3,this.model.IndexModel.OrderBy="Date",this.orderService.Get(this.model).subscribe(e=>{var t,n;this.orderPublicPortal=[],this.orderPublicPortal=e.IsSuccess?null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data:[]},e=>{console.error(e.message),this.orderPublicPortal=[]})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(c.d),m.Vb(g.a),m.Vb(pc.a),m.Vb(p.a),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-custom-section"]],inputs:{DepartmentCode:"DepartmentCode",BackGroundClass:"BackGroundClass",SectionNameEn:"SectionNameEn",SectionNameHi:"SectionNameHi"},decls:11,vars:9,consts:[[1,"container"],[1,"col-lg-12","d-md-flex","align-items-center","justify-content-between","mb-5"],[1,"section-title","text-center","m-auto"],[4,"ngIf","ngIfElse"],["defaultHeading",""],["class","btn btn-round btn-theme btn-yellow",3,"routerLink",4,"ngIf"],["class","row justify-content-center",4,"ngIf"],[4,"ngIf"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"routerLink"],[1,"row","justify-content-center"],["class","col-lg-4 col-md-6 col-sm-12 mb-5 mb-lg-0",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","col-sm-12","mb-5","mb-lg-0"],[1,"home-gallery-items","d-block",3,"href","title","error"],[1,"home-gallery-items-img","d-flex","align-items-center","justify-content-center"],[3,"src","title","alt","error"],["style","display: none;",4,"ngIf"],[1,"home-gallery-items-caption"],[2,"display","none"],[4,"ngFor","ngForOf"],[3,"href","title"]],template:function(e,t){if(1&e&&(m.ac(0,"section"),m.ac(1,"div",0),m.ac(2,"div",1),m.ac(3,"div",2),m.Tc(4,ds,2,1,"span",3),m.Tc(5,ms,2,0,"ng-template",null,4,m.Uc),m.Zb(),m.Tc(7,us,3,6,"a",5),m.Zb(),m.Tc(8,fs,2,1,"div",6),m.Tc(9,vs,1,0,"app-mini-loader",7),m.Tc(10,Cs,1,0,"app-no-records",7),m.Zb(),m.Zb()),2&e){const e=m.Kc(6);m.Lb("home-inauguration ",t.BackGroundClass,""),m.Hb(4),m.tc("ngIf",t.SectionNameHi||t.SectionNameEn)("ngIfElse",e),m.Hb(3),m.tc("ngIf",(null==t.orderPublicPortal?null:t.orderPublicPortal.length)>2),m.Hb(1),m.tc("ngIf",(null==t.orderPublicPortal?null:t.orderPublicPortal.length)>0),m.Hb(1),m.tc("ngIf",!t.orderPublicPortal),m.Hb(1),m.tc("ngIf",t.orderPublicPortal&&0==t.orderPublicPortal.length)}},directives:[i.n,h.d,i.m,v.a,C.a],pipes:[c.c,i.u],styles:[""]}),e})();var Ds=function(e){return e[e.ListingWithSearchPage=30839]="ListingWithSearchPage",e[e.GISData=30838]="GISData",e[e.Views=30837]="Views",e[e.IFrame=30836]="IFrame",e[e.ListingPage=30835]="ListingPage",e[e.NumericDataReturn=30834]="NumericDataReturn",e}({});class Ms{constructor(){this.IFrameWebservice=[],this.ListingPageWebservice=[],this.NumericDataWebservice=[]}}var Is=n("ADQb");let Zs=(()=>{class e{constructor(e){this._baseService=e}getWebServiceById(e){let t=new Is.a;return t.Add("id",e.toString()),this._baseService.get(r.a.GetWebServicesById,t)}GetAllWebService(e=0,t=0,n=!0){let i=new Is.a;return i.Add("deptCode",e.toString()),i.Add("secDeptCode",t.toString()),i.Add("isResponse",n.toString()),this._baseService.get(r.a.GetAllWebServiceUrl,i)}}return e.\u0275fac=function(t){return new(t||e)(m.ec(Fa.a))},e.\u0275prov=m.Rb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ts(e,t){if(1&e&&(m.ac(0,"div",15),m.ac(1,"h2"),m.Vc(2),m.Zb(),m.ac(3,"p",16),m.Vc(4),m.Zb(),m.Zb()),2&e){const e=t.$implicit;m.Hb(2),m.Wc(e.value),m.Hb(2),m.Wc(e.key)}}function ys(e,t){if(1&e&&(m.ac(0,"section",11),m.ac(1,"div",12),m.Vc(2),m.Zb(),m.ac(3,"div",13),m.Tc(4,Ts,5,2,"div",14),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc(3);m.Hb(2),m.Wc("en"==n.translate.currentLang?e.DisplayTitle||e.DisplayTitleHindi:e.DisplayTitleHindi||e.DisplayTitle),m.Hb(2),m.tc("ngForOf",e.Data)}}function xs(e,t){if(1&e&&(m.ac(0,"section",6),m.ac(1,"div",7),m.ac(2,"div",8),m.ac(3,"div",9),m.Tc(4,ys,5,2,"section",10),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(4),m.tc("ngForOf",null==e.model?null:e.model.NumericDataWebservice)}}function Ps(e,t){if(1&e&&(m.ac(0,"th"),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.Hb(1),m.Wc(e)}}function Ss(e,t){if(1&e&&(m.ac(0,"td"),m.Vc(1),m.Zb()),2&e){const e=t.$implicit,n=m.mc().$implicit;m.Hb(1),m.Wc(n[e])}}function _s(e,t){if(1&e&&(m.ac(0,"tr"),m.Tc(1,Ss,2,1,"td",23),m.Zb()),2&e){const e=m.mc().index,t=m.mc(3);m.Hb(1),m.tc("ngForOf",t.columnsToDisplay[e])}}const ws=function(e){return{"table-header-fix":e}};function Ls(e,t){if(1&e&&(m.ac(0,"div",9),m.ac(1,"h4"),m.Vc(2),m.Zb(),m.ac(3,"div",21),m.ac(4,"table",22),m.ac(5,"thead"),m.ac(6,"tr"),m.Tc(7,Ps,2,1,"th",23),m.Zb(),m.Zb(),m.ac(8,"tbody"),m.Tc(9,_s,2,1,"tr",23),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(2),m.Xc("","en"==i.translate.currentLang?e.DisplayTitle||e.DisplayTitleHindi:e.DisplayTitleHindi||e.DisplayTitle," "),m.Hb(1),m.tc("ngClass",m.Ec(4,ws,e.IsAutoScroll)),m.Hb(4),m.tc("ngForOf",i.columnsToDisplay[n]),m.Hb(2),m.tc("ngForOf",e.Data)}}function Vs(e,t){if(1&e&&(m.ac(0,"section",17),m.ac(1,"div",7),m.ac(2,"div",8),m.ac(3,"div",9),m.ac(4,"section",18),m.ac(5,"div",19),m.ac(6,"div",8),m.Tc(7,Ls,10,6,"div",20),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(7),m.tc("ngForOf",null==e.model?null:e.model.ListingPageWebservice)}}function ks(e,t){if(1&e&&(m.ac(0,"div",9),m.ac(1,"section",25),m.ac(2,"div",12),m.Vc(3),m.Zb(),m.ac(4,"div",19),m.Wb(5,"iframe",26),m.nc(6,"safeUrl"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc(3);m.Hb(3),m.Wc("en"==n.translate.currentLang?e.DisplayTitle||e.DisplayTitleHindi:e.DisplayTitleHindi||e.DisplayTitle),m.Hb(2),m.tc("src",m.oc(6,2,e.Url),m.Oc)}}function Ns(e,t){if(1&e&&(m.ac(0,"section",24),m.ac(1,"div",7),m.ac(2,"div",8),m.Tc(3,ks,7,4,"div",20),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(3),m.tc("ngForOf",null==e.model?null:e.model.IFrameWebservice)}}function Os(e,t){if(1&e&&(m.ac(0,"section",2),m.Tc(1,xs,5,1,"section",3),m.Tc(2,Vs,8,1,"section",4),m.Tc(3,Ns,4,1,"section",5),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",null==e.model.NumericDataWebservice?null:e.model.NumericDataWebservice.length),m.Hb(1),m.tc("ngIf",null==e.model.ListingPageWebservice?null:e.model.ListingPageWebservice.length),m.Hb(1),m.tc("ngIf",null==e.model.IFrameWebservice?null:e.model.IFrameWebservice.length)}}function As(e,t){1&e&&m.Wb(0,"app-mini-loader")}let Ws=(()=>{class e{constructor(e,t,n,i,a){this._webServicesConfiguration=e,this._commonService=t,this.translate=n,this.commonService=i,this._route=a,this.webserviceTypeEnum=Ds,this.columnsToDisplay=[],this.DptCode=0,this.listData=[],this.DptCode=this.commonService.GetWebDistDeptCode(this._route.snapshot.params.websiteCode)}ngOnInit(){this.GetAllWebService()}getDataById(e){this._webServicesConfiguration.getWebServiceById(e).subscribe(e=>{e.IsSuccess&&(e.Data.length>0?this.setPropertiesForListData(e.Data):this.setPropertiesForNumericData(e.Data))})}GetAllWebService(){this._webServicesConfiguration.GetAllWebService(this.DptCode).subscribe(e=>{this.model=e.IsSuccess?this.processWebserviceData(e.Data):new Ms},()=>{this.model=new Ms})}processWebserviceData(e){let t=new Ms;return e&&e.forEach(e=>{var n,i;switch(e.CategoryCode){case this.webserviceTypeEnum.IFrame:t.IFrameWebservice.push(e);break;case this.webserviceTypeEnum.ListingPage:e.Data.d&&(e.Data=JSON.parse(e.Data.d)),t.ListingPageWebservice.push(e),this.columnsToDisplay.push((null===(i=null===(n=e)||void 0===n?void 0:n.Data)||void 0===i?void 0:i.length)?Object.keys(e.Data[0]):[]);break;case this.webserviceTypeEnum.NumericDataReturn:e.Data.Data&&(e.Data=e.Data.Data),Array.isArray(e.Data)&&(e.Data=e.Data[0]);let a=[];Object.keys(e.Data).forEach(t=>{"data"==t.toLowerCase()&&Array.isArray(e.Data.data)?(a=[],Object.keys(e.Data.data[0]).forEach(t=>{a.push({key:t,value:e.Data.data[0][t]})})):"data"!=t.toLowerCase()||Array.isArray(e.Data.data)?a.push({key:t,value:e.Data[t]}):(a=[],Object.keys(e.Data.data).forEach(t=>{a.push({key:t,value:e.Data.data[t]})}))}),e.Data=a,t.NumericDataWebservice.push(e)}}),t}setPropertiesForListData(e){this.listData=e;let t=Object.keys(this.listData[0]);this.columnsToDisplay=t}setPropertiesForNumericData(e){this.objectData=e,this.objectDataKeys=Object.keys(this.objectData)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Zs),m.Vb(g.a),m.Vb(c.d),m.Vb(g.a),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-web-services-configuration"]],decls:2,vars:2,consts:[["class","page-web-service-configuration py-0",4,"ngIf"],[4,"ngIf"],[1,"page-web-service-configuration","py-0"],["class","sec-wsc-items numeric-data",4,"ngIf"],["class","sec-wsc-items listing-data",4,"ngIf"],["class","sec-wsc-items iframe-data",4,"ngIf"],[1,"sec-wsc-items","numeric-data"],[1,"container"],[1,"row"],[1,"col-lg-12"],["class","wsc-1 mb-5",4,"ngFor","ngForOf"],[1,"wsc-1","mb-5"],[1,"sec-wsc-title","text-center"],[1,"sec-wsc-body","d-flex","flex-wrap","justify-content-between"],["class","numeric-data-items text-center",4,"ngFor","ngForOf"],[1,"numeric-data-items","text-center"],[1,"m-0"],[1,"sec-wsc-items","listing-data"],[1,"wsc-2"],[1,"sec-wsc-body"],["class","col-lg-12",4,"ngFor","ngForOf"],[1,"listing-data-table","table-responsive","table-shadow",3,"ngClass"],[1,"table","m-0","caption-top"],[4,"ngFor","ngForOf"],[1,"sec-wsc-items","iframe-data"],[1,"wsc-3"],["title","","height","500px","width","100%",3,"src"]],template:function(e,t){1&e&&(m.Tc(0,Os,4,3,"section",0),m.Tc(1,As,1,0,"app-mini-loader",1)),2&e&&(m.tc("ngIf",t.model&&((null==t.model.IFrameWebservice?null:t.model.IFrameWebservice.length)||(null==t.model.ListingPageWebservice?null:t.model.ListingPageWebservice.length)||(null==t.model.NumericDataWebservice?null:t.model.NumericDataWebservice.length))),m.Hb(1),m.tc("ngIf",!t.model))},directives:[i.n,i.m,i.l,v.a],pipes:[Ia],styles:[".sec-wsc-items[_ngcontent-%COMP%]{background:#d4ecff;padding:45px 0}.sec-wsc-title[_ngcontent-%COMP%]{font-size:230%;color:#000;font-weight:600;margin-bottom:35px}.table-shadow[_ngcontent-%COMP%]{background:#fff;padding:10px;border-radius:15px;box-shadow:0 0 20px #d7d7d7}.caption-top[_ngcontent-%COMP%]{caption-side:top}caption[_ngcontent-%COMP%]{color:#000;font-size:20px;padding:0 0 12px;font-weight:600}.custom-form-control[_ngcontent-%COMP%]{width:100%;border:1px solid #c7c7c7;padding:10px 12px;border-radius:10px}.custom-form-control[_ngcontent-%COMP%]:focus{border-color:#000}.custom-form-control[_ngcontent-%COMP%]:focus-visible{outline:none}.table-header-fix[_ngcontent-%COMP%]{position:relative;max-height:400px}.table-header-fix[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:-10px}.numeric-data-items[_ngcontent-%COMP%]{-webkit-box-flex:1;flex:1 1 20%;padding:20px;background:#135da4}.numeric-data-items[_ngcontent-%COMP%]:nth-child(odd){background:#0a58ca}.numeric-data-items[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:250%;font-weight:600;color:#fff}.numeric-data-items[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:120%;color:hsla(0,0%,100%,.6)}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%]{background:#fff;border-radius:15px;box-shadow:0 0 20px #ddd;overflow:hidden}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:first-child{background:#e59900}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:nth-child(2){background:#d03432}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:nth-child(3){background:#2996bf}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:nth-child(4){background:#009688}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:nth-child(5){background:#795548}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:nth-child(6){background:#3f51b5}.numeric-data[_ngcontent-%COMP%] .sec-wsc-body[_ngcontent-%COMP%] .numeric-data-items[_ngcontent-%COMP%]:nth-child(7){background:#96004c}.listing-data[_ngcontent-%COMP%]{background:#fff4de!important}.listing-data-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#135da4;color:#fff;border:none}.listing-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:none}.listing-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#ebf5ff}.iframe-data[_ngcontent-%COMP%]{background:#fceaff!important}.iframe-data[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{background:#fff;border-radius:5px;box-shadow:0 0 20px #d5d5d5}.direct-view-data[_ngcontent-%COMP%]{background:#f3fffe!important}.map-view-data[_ngcontent-%COMP%]{background:#fcffdc!important}.dy-form-list-view-data[_ngcontent-%COMP%]{background:#ffe3da!important}.table-custom-design[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#135da4;color:#fff;border:none}.table-custom-design[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table-custom-design[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}.table-custom-design[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:none}.table-custom-design[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#ebf5ff}@media screen and (max-width:767px){.numeric-data-items[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:170%}.numeric-data-items[_ngcontent-%COMP%]{-webkit-box-flex:1;flex:1 1 50%}}"]}),e})();const Es=["container"];function Gs(e,t){}function Fs(e,t){if(1&e&&m.Wb(0,"iframe",10),2&e){const e=m.mc();m.tc("src",e.popUpUrl,m.Oc)}}let Rs=(()=>{class e{constructor(e,t,n,i,a,c,o){this.componentFactoryResolver=e,this._app=t,this._dptDistrictWebsiteService=n,this._route=i,this._commonService=a,this._departmentService=c,this._sanitizer=o,this.DepartmentCode=0,this.AdmDepartmentCode=0,this.IsDistrictDepartmentCode=!1,this.sectionModel=[],this.enumdata=xi.b,this.isShowProjectSection=!0,this.isAssemblyConstituncyComponentLoad=!1,this.isBannerComponentLoad=!1,this.isAwarenessMaterialComponentLoad=!1,this.isOrderAwarenessMaterialComponentLoad=!1,this.isDepartmentInfoComponentLoad=!1,this.isCmisModuleComponentLoad=!1,this.isDistrictInfoComponentLoad=!1,this.isInaugurationComponentLoad=!1,this.isDdwPressReleaseGalleryLoad=!1,this.isOtherImptLinkComponentLoad=!1,this.isOtherLinksComponentLoad=!1,this.isProgramComponentLoad=!1,this.isProjectOrWorkComponentLoad=!1,this.isOrderTenderPressreleaseComponentLoad=!1,this.isFlagShipSectionComponentLoad=!1,this.isSchemeServiceComponentLoad=!1,this.isOfficeLocatorComponentLoad=!1,this.isVideoGalleryComponentLoad=!1,this.isPhotoGalleryComponentLoad=!1,this.isAssetsIconsComponentLoad=!1,this.isWelcomePageComponentLoad=!1,this.isWelcomePage2ComponentLoad=!1,this.isWelcomePage3ComponentLoad=!1,this.isUploaderVideoGalleryComponentLoad=!1,this.isUploaderPhotoGalleryComponentLoad=!1,this.isCustomSectionComponentLoad=!1,this.isWebServicesConfigSectionComponentLoad=!1,this.isCodeOfConduct=!0,this._app.showLoaderEvent(!1),this.DepartmentCode=this._commonService.GetWebDistDeptCode()}ngOnInit(){this._route.paramMap.subscribe(e=>{this._commonService.updateMenu.next(),this._departmentService.getDepartmentDetail().subscribe(e=>{var t,n;e&&(this.model=e,this.checkDepartmentDetail(),this.model&&((null===(t=this.model)||void 0===t?void 0:t.IsDisplayRajAdvtPopup)||(null===(n=this.model)||void 0===n?void 0:n.PersonalizedPopupUrl))&&this.showRajAdvtPopUp())})})}bindComponentData(){this.container.clear(),this.sectionModel.forEach(e=>{if("DdwAssemblyConstituncyComponent"!=e.ComponentName||this.isAssemblyConstituncyComponentLoad||this.enumdata.District!=this.model.DepartmentDistrictCode)if(this.isCodeOfConduct||"DdwAwarenessMaterialComponent"!=e.ComponentName||this.isAwarenessMaterialComponentLoad)if("DdwOrderAwarenessMaterialComponent"!=e.ComponentName||this.isOrderAwarenessMaterialComponentLoad)if("DdwBannerComponent"!=e.ComponentName||this.isBannerComponentLoad)if("DdwDepartmentInfoComponent"!=e.ComponentName||this.enumdata.Department!=this.model.DepartmentDistrictCode&&this.enumdata.Portal_Other!=this.model.DepartmentDistrictCode||this.isDepartmentInfoComponentLoad)if("DdwCmisModuleComponent"!=e.ComponentName||this.enumdata.Department!=this.model.DepartmentDistrictCode||this.isCmisModuleComponentLoad)if("DdwDistrictInfoComponent"!=e.ComponentName||this.enumdata.District!=this.model.DepartmentDistrictCode||this.isDistrictInfoComponentLoad)if(this.isCodeOfConduct||"DdwInaugurationComponent"!=e.ComponentName||this.isInaugurationComponentLoad)if("DdwPressReleaseGalleryComponent"!=e.ComponentName||this.isDdwPressReleaseGalleryLoad)if("DdwOtherImptLinkComponent"!=e.ComponentName||this.isOtherImptLinkComponentLoad)if("DdwOtherLinksComponent"!=e.ComponentName||this.isOtherLinksComponentLoad)if(this.isCodeOfConduct||"DdwProgramComponent"!=e.ComponentName||this.isProgramComponentLoad)if("DdwProjectOrWorkComponent"!=e.ComponentName||this.isProjectOrWorkComponentLoad)if("DdwOrderTenderPressreleaseComponent"!=e.ComponentName||this.isOrderTenderPressreleaseComponentLoad)if(this.isCodeOfConduct||"DdwFlagShipSectionComponent"!=e.ComponentName||this.isFlagShipSectionComponentLoad)if(this.isCodeOfConduct||"SchemeService"!=e.ComponentName||this.isSchemeServiceComponentLoad)if("DdwOfficeLocatorComponent"!=e.ComponentName||this.isOfficeLocatorComponentLoad)if(this.isCodeOfConduct||"DdwVideoGalleryComponent"!=e.ComponentName||this.isVideoGalleryComponentLoad)if(this.isCodeOfConduct||"DdwPhotoGalleryComponent"!=e.ComponentName||this.isPhotoGalleryComponentLoad)if("DdwAssetsIconsComponent"!=e.ComponentName||this.isAssetsIconsComponentLoad)if("WelcomePageComponent"!=e.ComponentName||this.isWelcomePageComponentLoad)if("WelcomePage2Component"!=e.ComponentName||this.isWelcomePage2ComponentLoad)if("WelcomePage3Component"!=e.ComponentName||this.isWelcomePage3ComponentLoad)if(this.isCodeOfConduct||"UploaderPhotoGalleryComponent"!=e.ComponentName||this.isUploaderPhotoGalleryComponentLoad)if(this.isCodeOfConduct||"UploaderVideoGalleryComponent"!=e.ComponentName||this.isUploaderVideoGalleryComponentLoad)if("DdwCustomSectionComponent"!=e.ComponentName||this.isCustomSectionComponentLoad){if("WebServicesConfigurationComponent"==e.ComponentName&&!this.isWebServicesConfigSectionComponentLoad){this.isWebServicesConfigSectionComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Ws),n=this.container.createComponent(t);n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:"",n.instance.SectionNameEn=e.NameEnglish?e.NameEnglish:"",n.instance.SectionNameHi=e.NameHindi?e.NameHindi:""}}else{this.isCustomSectionComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Hs),n=this.container.createComponent(t);n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:"",n.instance.SectionNameEn=e.NameEnglish?e.NameEnglish:"",n.instance.SectionNameHi=e.NameHindi?e.NameHindi:""}else{this.isUploaderVideoGalleryComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(ss),n=this.container.createComponent(t);n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:"",n.instance.SectionNameEn=e.NameEnglish?e.NameEnglish:"",n.instance.SectionNameHi=e.NameHindi?e.NameHindi:""}else{this.isUploaderPhotoGalleryComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Yr),n=this.container.createComponent(t);n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:"",n.instance.SectionNameEn=e.NameEnglish?e.NameEnglish:"",n.instance.SectionNameHi=e.NameHindi?e.NameHindi:""}else{this.isWelcomePage3ComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(wr);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isWelcomePage2ComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Sr);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isWelcomePageComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(xr);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isAssetsIconsComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(zi);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isPhotoGalleryComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(pl);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isVideoGalleryComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(gr);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isOfficeLocatorComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(zc);this.container.createComponent(t).instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isSchemeServiceComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Kl),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.DepartmentData=this.model,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isFlagShipSectionComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Li),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.AdmDepartmentCode=this.AdmDepartmentCode,n.instance.IsDistrictDepartmentCode=this.IsDistrictDepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isOrderTenderPressreleaseComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Vo),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.IsDistrictDepartmentCode=this.IsDistrictDepartmentCode,n.instance.IsDisplayAdmDeptUpdates=this.model.IsDisplayAdmDeptUpdates,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isProjectOrWorkComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory($l),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.IsDistrictDepartmentCode=this.IsDistrictDepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isProgramComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Fl),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isOtherLinksComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(ll),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.DepartmentData=this.model,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isOtherImptLinkComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Xo),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isDdwPressReleaseGalleryLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(xl),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:"",n.instance.SectionNameEn=e.NameEnglish?e.NameEnglish:"",n.instance.SectionNameHi=e.NameHindi?e.NameHindi:""}else{this.isInaugurationComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Gc),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isDistrictInfoComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(kc),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isCmisModuleComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(bc),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isDepartmentInfoComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(vc),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isBannerComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Oa),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isOrderAwarenessMaterialComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Tr),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isAwarenessMaterialComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(ba),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}else{this.isAssemblyConstituncyComponentLoad=!0;let t=this.componentFactoryResolver.resolveComponentFactory(Ei),n=this.container.createComponent(t);n.instance.DepartmentCode=this.DepartmentCode,n.instance.BackGroundClass=e.BackGroundClass?e.BackGroundClass:""}})}ngOnDestroy(){this._app.showLoaderEvent(!0)}checkDepartmentDetail(){var e,t,n;(null===(e=this.model)||void 0===e?void 0:e.DepartmentDistrictCode)==this.enumdata.District&&(this.IsDistrictDepartmentCode=!0),(null===(t=this.model)||void 0===t?void 0:t.Department_AdmDepartmentCode)&&(this.AdmDepartmentCode=null===(n=this.model)||void 0===n?void 0:n.Department_AdmDepartmentCode),this.GetWebsiteHomePageSection()}GetWebsiteHomePageSection(){this._dptDistrictWebsiteService.GetWebsiteHomePageSection(this.DepartmentCode).subscribe(e=>{var t;e.IsSuccess&&(this.sectionModel=null===(t=e)||void 0===t?void 0:t.Data,this.isCodeOfConduct=this._commonService.IsCodeOfConduct(),this.bindComponentData())},e=>{})}showRajAdvtPopUp(){var e,t;null!=sessionStorage.getItem("isPopupShown")&&null!=sessionStorage.getItem("isPopupShown")||(this.popUpUrl=this._sanitizer.bypassSecurityTrustResourceUrl(d.a.AdvertisementUrl),sessionStorage.setItem("isPopupShown","1"),(null===(e=this.model)||void 0===e?void 0:e.PersonalizedPopupUrl)&&$("#RajAdvtPopupModelCustom").modal("show"),(null===(t=this.model)||void 0===t?void 0:t.IsDisplayRajAdvtPopup)&&$("#RajAdvtPopupModel").modal("show"))}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(m.l),m.Vb(Qe.a),m.Vb(p.a),m.Vb(h.a),m.Vb(g.a),m.Vb(In.a),m.Vb(b.b))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-home"]],viewQuery:function(e,t){var n;1&e&&m.Rc(Es,!0,m.U),2&e&&m.Jc(n=m.jc())&&(t.container=n.first)},decls:19,vars:2,consts:[["container",""],["id","RajAdvtPopupModel","data-keyboard","false","data-backdrop","static",1,"modal","fade"],[1,"modal-dialog",2,"max-width","1000px"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","title","Close",1,"close"],[1,"glyphicon","glyphicon-remove"],["width","100%","height","610px",3,"src",4,"ngIf"],["id","RajAdvtPopupModelCustom","data-keyboard","false","data-backdrop","static",1,"modal","fade"],["height","610px",3,"src"],["width","100%","height","610px",3,"src"]],template:function(e,t){1&e&&(m.Tc(0,Gs,0,0,"ng-template",null,0,m.Uc),m.ac(2,"div",1),m.ac(3,"div",2),m.ac(4,"div",3),m.ac(5,"div",4),m.ac(6,"button",5),m.ac(7,"span",6),m.Vc(8,"X"),m.Zb(),m.Zb(),m.Zb(),m.Tc(9,Fs,1,1,"iframe",7),m.Zb(),m.Zb(),m.Zb(),m.ac(10,"div",8),m.Vc(11,"? "),m.ac(12,"div",2),m.ac(13,"div",3),m.ac(14,"div",4),m.ac(15,"button",5),m.ac(16,"span",6),m.Vc(17,"X"),m.Zb(),m.Zb(),m.Zb(),m.Wb(18,"img",9),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(9),m.tc("ngIf",t.popUpUrl),m.Hb(9),m.tc("src",null==t.model?null:t.model.PersonalizedPopupUrl,m.Pc))},directives:[i.n],styles:[""]}),e})();function Xs(e,t){if(1&e&&(m.ac(0,"div",29),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"==e.translate.currentLang?null==e.mLAModel?null:e.mLAModel.DesignationDisplayNameHindi:null==e.mLAModel?null:e.mLAModel.DesignationDisplayName," ")}}function Bs(e,t){if(1&e&&(m.ac(0,"a",30),m.Wb(1,"i",31),m.Vc(2),m.Zb()),2&e){const e=m.mc();m.vc("href","mailto:",null==e.mLAModel?null:e.mLAModel.Email,"",m.Pc),m.Hb(2),m.Xc(" ",null==e.mLAModel?null:e.mLAModel.Email," ")}}function Us(e,t){if(1&e&&(m.ac(0,"a",32),m.Wb(1,"i",33),m.Vc(2),m.Zb()),2&e){const e=m.mc();m.vc("href","tel:",null==e.mLAModel?null:e.mLAModel.whatsappNumber,"",m.Pc),m.Hb(2),m.Xc(" ",null==e.mLAModel?null:e.mLAModel.whatsappNumber,"")}}function zs(e,t){if(1&e&&(m.ac(0,"div",34),m.ac(1,"a",35),m.ac(2,"div",36),m.ac(3,"div"),m.ac(4,"strong",37),m.Vc(5),m.Zb(),m.ac(6,"p",38),m.Vc(7),m.nc(8,"slice"),m.Zb(),m.Zb(),m.ac(9,"div",39),m.ac(10,"ul",40),m.ac(11,"li"),m.ac(12,"strong"),m.Vc(13,"Cost:"),m.Zb(),m.Vc(14),m.Zb(),m.ac(15,"li"),m.ac(16,"strong"),m.Vc(17,"District:"),m.Zb(),m.Vc(18),m.Zb(),m.Zb(),m.ac(19,"div",41),m.ac(20,"a",42),m.Vc(21),m.nc(22,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc();m.Hb(5),m.Wc("hi"!=n.translate.currentLang?(null==e?null:null==e.CategoryName?null:e.CategoryName.length)>0?null==e?null:e.CategoryName:"":(null==e?null:null==e.CategoryNameHindi?null:e.CategoryNameHindi.length)>0?null==e?null:e.CategoryNameHindi:""),m.Hb(2),m.Xc(" ",(null==e?null:null==e.Description?null:e.Description.length)>200?m.qc(8,6,null==e?null:e.Description,0,200)+"...":null==e?null:e.Description," "),m.Hb(7),m.Xc("",e.Cost," Lakh"),m.Hb(4),m.Xc(" ","hi"!=n.translate.currentLang?(null==e?null:null==e.MLAConstituencyDistrictNameHindi?null:e.MLAConstituencyDistrictNameHindi.length)>0?null==e?null:e.MLAConstituencyDistrictNameHindi:"":(null==e?null:null==e.MLAConstituencyDistrictName?null:e.MLAConstituencyDistrictName.length)>0?null==e?null:e.MLAConstituencyDistrictName:"",""),m.Hb(2),m.vc("routerLink","/project-master/detail/",null==e?null:e.Id,""),m.Hb(1),m.Wc(m.oc(22,10,"Viewdetail_txt"))}}function js(e,t){1&e&&m.Wb(0,"app-mini-loader")}function $s(e,t){1&e&&m.Wb(0,"app-no-records")}function Ys(e,t){if(1&e){const e=m.bc();m.ac(0,"div",47),m.ac(1,"div",48),m.ac(2,"div",49),m.Vc(3),m.nc(4,"date"),m.Zb(),m.ac(5,"div",50),m.ac(6,"img",12),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/website/city10.png")})),m.Zb(),m.Zb(),m.ac(7,"a",51),m.Vc(8),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.Xc(" ","en"==n.translate.currentLang?m.pc(4,5,null==e?null:e.PressreleaseDate,"d MMM, y"):null==e?null:e.PressReleaseDateHindi," "),m.Hb(3),m.uc("src",null==e?null:e.HomePageImageUrl,m.Pc),m.uc("title",null==e?null:e.Description),m.uc("alt",null==e?null:e.Description),m.Hb(2),m.Xc(" ",null==e?null:e.Description," ")}}function qs(e,t){if(1&e&&(m.ac(0,"section",43),m.ac(1,"div",44),m.ac(2,"div",45),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"div",22),m.Tc(6,Ys,9,8,"div",46),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.Wc(m.oc(4,2,"Shilayanas_txt")),m.Hb(3),m.tc("ngForOf",e.shilanyasModel)}}function Js(e,t){if(1&e){const e=m.bc();m.ac(0,"div",47),m.ac(1,"div",48),m.ac(2,"div",49),m.Vc(3),m.nc(4,"date"),m.Zb(),m.ac(5,"div",50),m.ac(6,"img",12),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/website/city12.png")})),m.Zb(),m.Zb(),m.ac(7,"a",51),m.Vc(8),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=t.$implicit,n=m.mc(2);m.Hb(3),m.Xc(" ","en"==n.translate.currentLang?m.pc(4,5,null==e?null:e.PressreleaseDate,"d MMM, y"):null==e?null:e.PressReleaseDateHindi," "),m.Hb(3),m.uc("src",null==e?null:e.HomePageImageUrl,m.Pc),m.uc("title",null==e?null:e.Description),m.uc("alt",null==e?null:e.Description),m.Hb(2),m.Xc(" ",null==e?null:e.Description," ")}}function Ks(e,t){if(1&e&&(m.ac(0,"section",43),m.ac(1,"div",44),m.ac(2,"div",45),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"div",22),m.Tc(6,Js,9,8,"div",46),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(3),m.Wc(m.oc(4,2,"Lokarpan_txt")),m.Hb(3),m.tc("ngForOf",e.lokarpanModel)}}let Qs=(()=>{class e{constructor(e,t,n,i,a,c){this.projectService=e,this._commonService=t,this._dptDistrictWebsiteService=n,this.translate=i,this._route=a,this.sanitizer=c,this.isDistrict=!1,this.shilanyasModel=[],this.lokarpanModel=[],this.pressReleaseEnum=vi.d,this.DateFormat=d.a.DateFormat,this.mlaIndexModel=new s.d,this.modelCompleted=[],this.modelOngoing=[],this.enumdata=xi.b,this.completedStatus=this.enumdata.ProjectStatusCompleted,this.ongoingStatus=this.enumdata.ProjectStatusOnGoing,this.ongoingfilter=new Rl.a,this._route.paramMap.subscribe(e=>{this.mLAConstituencyCode=Number(e.get("mlaCode"));let t=e.get("dptCode");localStorage.getItem("websiteCode")?this.departmentCode=Number(localStorage.getItem("websiteCode")):t&&(this.departmentCode=Number(t),localStorage.setItem("websiteCode",t))}),localStorage.getItem("IsDistrict")&&(this.isDistrict=JSON.parse(localStorage.getItem("IsDistrict")))}ngOnInit(){this.GetMLaDetailList(),this.GetListCompleted(),this.GetListOngoing(),this.GetLokarpanData(),this.GetShilanyasData()}GetMLaDetailList(){this.mlaIndexModel.PageSize=1,this.mlaIndexModel.OrderByAsc=1,this.mlaIndexModel.AdvanceSearchModel={MLACode:this.mLAConstituencyCode},this._dptDistrictWebsiteService.GetMLAConstituency(this.mlaIndexModel).subscribe(e=>{e.IsSuccess&&(this.mLAModel=e.Data.Data[0])},e=>{})}GetLokarpanData(){let e=new ha.f;e.SubCategoryCode=Number(this.pressReleaseEnum.LokarpanCode),e.VIPPersonCode=this.mLAConstituencyCode,e.DepartmentCode=this.departmentCode,e.OrderBy="PressreleaseDate",this._dptDistrictWebsiteService.GetDptInAugrationLink(e).subscribe(e=>{this.lokarpanModel=[],e.IsSuccess&&(this.lokarpanModel=e.Data.Data)},e=>{console.error(e)})}GetShilanyasData(){let e=new ha.f;e.SubCategoryCode=Number(this.pressReleaseEnum.ShilanyasCode),e.VIPPersonCode=this.mLAConstituencyCode,e.DepartmentCode=this.departmentCode,e.OrderBy="PressreleaseDate",this._dptDistrictWebsiteService.GetDptInAugrationLink(e).subscribe(e=>{this.shilanyasModel=[],e.IsSuccess&&(this.shilanyasModel=e.Data.Data)},e=>{console.error(e)})}GetListCompleted(){const e=new Rl.a;e.IndexModel.Page=1,e.MLAConstituencyCode=this.mLAConstituencyCode,e.StatusCode=this.completedStatus,e.IndexModel.OrderBy="ModifiedDate",e.IndexModel.OrderByAsc=0,this.projectService.GetProjectMasterListBySearchFilterData(e).subscribe(e=>{e.IsSuccess&&(this.modelCompleted=e.Data.Data)},e=>{})}GetListOngoing(){this.ongoingfilter.IndexModel.Page=1,this.ongoingfilter.StatusCode=this.ongoingStatus,this.ongoingfilter.MLAConstituencyCode=this.mLAConstituencyCode,this.ongoingfilter.IndexModel.OrderBy="ModifiedDate",this.ongoingfilter.IndexModel.OrderByAsc=0,this.projectService.GetProjectMasterListBySearchFilterData(this.ongoingfilter).subscribe(e=>{e.IsSuccess&&(this.modelOngoing=e.Data.Data)},e=>{})}sanitizeImageUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Xl.a),m.Vb(g.a),m.Vb(p.a),m.Vb(c.d),m.Vb(h.a),m.Vb(b.b))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-mla-detail"]],decls:42,vars:28,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active",3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-mla-details"],[1,"container","pt-5"],[1,"row","mb-5","justify-content-center"],[1,"col-xl-4","col-lg-6","col-md-6","col-sm-12"],[1,"mla-detail-img-item","bg-pattern-1"],[1,"mla-detail-img"],[3,"src","title","alt","error"],[1,"mla-detail-info","text-center"],[1,"text-white"],["class","m-0 mla-detail-desination",4,"ngIf"],[1,"m-0","text-white"],[1,"mp-mla-items-info-footer"],["class","d-block w-100 mb-1 text-white",3,"href",4,"ngIf"],["class","d-block w-100 text-white",3,"href",4,"ngIf"],[1,"home-project"],[1,"container-fluid"],[1,"row"],[1,"col-lg-6","col-md-6","col-sm-12","p-4","home-project-complete-project"],[1,"d-flex","align-items-center","justify-content-between","mb-4"],[1,"section-title","text-white","m-0"],["class","col-lg-6 mb-3",4,"ngFor","ngForOf"],[4,"ngIf"],["class","home-inauguration",4,"ngIf"],[1,"m-0","mla-detail-desination"],[1,"d-block","w-100","mb-1","text-white",3,"href"],[1,"bi","bi-envelope"],[1,"d-block","w-100","text-white",3,"href"],[1,"bi","bi-telephone"],[1,"col-lg-6","mb-3"],[1,"card-design-2","h-100","align-items-center","text-dark","d-block"],[1,"card-design-2-info","flex-column"],[1,"d-block","mb-2","home-project-title"],[1,"home-project-discription"],[1,"mt-auto"],[1,"mb-3"],[1,"text-right"],["href","javasript:void(0)",1,"text-theme","font-w-600",3,"routerLink"],[1,"home-inauguration"],[1,"container"],[1,"section-title","text-center","mb-5"],["class","col-lg-3 col-md-6 col-sm-12 mb-5 mb-lg-0",4,"ngFor","ngForOf"],[1,"col-lg-3","col-md-6","col-sm-12","mb-5","mb-lg-0"],[1,"home-inauguration-items","custom-card","position-relative"],[1,"home-inauguration-items-date"],[1,"home-inauguration-items-img","d-flex","align-items-center","justify-content-center"],[1,"home-inauguration-items-info","d-block"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.ac(9,"li",5),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(12,"section",6),m.ac(13,"div",7),m.ac(14,"div",8),m.ac(15,"div",9),m.ac(16,"div",10),m.ac(17,"div",11),m.ac(18,"img",12),m.ic("error",(function(e){return t._commonService.onImageError(e,"assets/images/user-default.jpg")})),m.Zb(),m.Zb(),m.ac(19,"div",13),m.ac(20,"h2",14),m.Vc(21),m.Zb(),m.Tc(22,Xs,2,1,"div",15),m.ac(23,"p",16),m.Vc(24),m.Zb(),m.ac(25,"div",17),m.Tc(26,Bs,3,2,"a",18),m.Tc(27,Us,3,2,"a",19),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(28,"section",20),m.ac(29,"div",21),m.ac(30,"div",22),m.ac(31,"div",23),m.ac(32,"div",24),m.ac(33,"div",25),m.Vc(34),m.nc(35,"translate"),m.Zb(),m.Zb(),m.ac(36,"div",22),m.Tc(37,zs,23,12,"div",26),m.Tc(38,js,1,0,"app-mini-loader",27),m.Tc(39,$s,1,0,"app-no-records",27),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Tc(40,qs,7,4,"section",28),m.Tc(41,Ks,7,4,"section",28),m.Zb()),2&e&&(m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,20,"Home_txt")),m.Hb(2),m.vc("routerLink","/home/assembly-constituency/",t.departmentCode,""),m.Hb(1),m.Xc(" ",m.oc(8,22,"AssemblyConstituencyList_txt"),""),m.Hb(3),m.Xc(" ",m.oc(11,24,"AssemblyConstituencyDetail_txt"),""),m.Hb(8),m.uc("title","hi"==t.translate.currentLang?null==t.mLAModel?null:t.mLAModel.MLANameHindi:null==t.mLAModel?null:t.mLAModel.MLANameEng),m.uc("alt","hi"==t.translate.currentLang?null==t.mLAModel?null:t.mLAModel.MLANameHindi:null==t.mLAModel?null:t.mLAModel.MLANameEng),m.tc("src",t.sanitizeImageUrl(null==t.mLAModel?null:t.mLAModel.MLAPhoto),m.Pc),m.Hb(3),m.Xc(" ","hi"==t.translate.currentLang?null==t.mLAModel?null:t.mLAModel.MLANameHindi:null==t.mLAModel?null:t.mLAModel.MLANameEng," "),m.Hb(1),m.tc("ngIf",null==t.mLAModel?null:null==t.mLAModel.DesignationName?null:t.mLAModel.DesignationName.includes("Minister")),m.Hb(2),m.Yc("","hi"==t.translate.currentLang?null==t.mLAModel?null:t.mLAModel.NameHindi:null==t.mLAModel?null:t.mLAModel.Name,", ","hi"==t.translate.currentLang?null==t.mLAModel?null:t.mLAModel.DistrictTitleHindi:null==t.mLAModel?null:t.mLAModel.DistrictTitle," "),m.Hb(2),m.tc("ngIf",null==t.mLAModel?null:t.mLAModel.Email),m.Hb(1),m.tc("ngIf",null==t.mLAModel?null:t.mLAModel.whatsappNumber),m.Hb(7),m.Wc(m.oc(35,26,"CompleteProjects_txt")),m.Hb(3),m.tc("ngForOf",t.modelCompleted),m.Hb(1),m.tc("ngIf",!t.modelCompleted),m.Hb(1),m.tc("ngIf",t.modelCompleted&&0==t.modelCompleted.length),m.Hb(1),m.tc("ngIf",(null==t.shilanyasModel?null:t.shilanyasModel.length)>0),m.Hb(1),m.tc("ngIf",(null==t.lokarpanModel?null:t.lokarpanModel.length)>0))},directives:[h.d,h.c,i.n,i.m,v.a,C.a],pipes:[c.c,i.u,i.e],styles:[""]}),e})();function ed(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"date"),m.Zb()),2&e){const e=m.mc(2).$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ",m.pc(2,1,e.AchievementDate,t.DateFormat)," ")}}function td(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2).$implicit;m.Hb(1),m.Xc(" ",e.AchievementDateHindi," ")}}function nd(e,t){if(1&e&&(m.Yb(0),m.Tc(1,ed,3,4,"span",12),m.Tc(2,td,2,1,"span",12),m.Xb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.tc("ngIf","en"==t.translate.currentLang&&(null==e?null:e.AchievementDate)),m.Hb(1),m.tc("ngIf","en"!=t.translate.currentLang&&(null==e?null:e.AchievementDateHindi))}}function id(e,t){1&e&&(m.ac(0,"span"),m.Vc(1,"\xa0"),m.Zb())}function ad(e,t){if(1&e){const e=m.bc();m.ac(0,"a",23),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).onDownload(null==t?null:t.PdfFIleName)})),m.Wb(1,"i",24),m.Vc(2),m.nc(3,"translate"),m.Zb()}2&e&&(m.Hb(2),m.Xc(" ",m.oc(3,1,"ViewAttachments_txt")," "))}function cd(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Wb(4,"br"),m.Vc(5),m.Zb(),m.ac(6,"td"),m.Vc(7),m.Zb(),m.ac(8,"td"),m.Vc(9),m.Zb(),m.ac(10,"td"),m.Tc(11,nd,3,2,"ng-container",20),m.Tc(12,id,2,0,"ng-template",null,21,m.Uc),m.Zb(),m.ac(14,"td"),m.Vc(15),m.Zb(),m.ac(16,"td"),m.Tc(17,ad,4,3,"a",22),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.Kc(13),a=m.mc(2);m.Hb(3),m.Xc("",(a.indexModel.Page-1)*a.indexModel.PageSize+(n+1),"/ "),m.Hb(2),m.Wc(null==e?null:e.Id),m.Hb(2),m.Xc(" ","en"!=a.translate.currentLang?null==e?null:e.DepartmentHindi:null==e?null:e.Department," "),m.Hb(2),m.Xc(" ","en"!=a.translate.currentLang?null==e?null:e.AchievementCategoryHindi:null==e?null:e.AchievementCategory,""),m.Hb(2),m.tc("ngIf",(null==e?null:e.AchievementDate)&&(null==e?null:e.AchievementDateHindi))("ngIfElse",i),m.Hb(4),m.Xc(" ","en"!=a.translate.currentLang?null==e?null:e.AchievementHindi:null==e?null:e.Achievement," "),m.Hb(2),m.tc("ngIf",e.PdfFIleName)}}function od(e,t){if(1&e&&(m.ac(0,"div",13),m.ac(1,"div",14),m.ac(2,"table",15),m.ac(3,"thead"),m.ac(4,"tr"),m.ac(5,"th",16),m.Vc(6),m.nc(7,"translate"),m.Wb(8,"br"),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.ac(11,"th",17),m.Vc(12),m.nc(13,"translate"),m.Zb(),m.ac(14,"th",17),m.Vc(15),m.nc(16,"translate"),m.Zb(),m.ac(17,"th"),m.Vc(18),m.nc(19,"translate"),m.Zb(),m.ac(20,"th"),m.Vc(21),m.nc(22,"translate"),m.Zb(),m.ac(23,"th",18),m.Vc(24),m.nc(25,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(26,"tbody"),m.Tc(27,cd,18,8,"ng-container",19),m.nc(28,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(6),m.Xc("",m.oc(7,8,"SrNo_txt"),"/ "),m.Hb(3),m.Xc("",m.oc(10,10,"RecordEntryNo_txt")," "),m.Hb(3),m.Wc(m.oc(13,12,"Department_txt")),m.Hb(3),m.Wc(m.oc(16,14,"Category")),m.Hb(3),m.Wc(m.oc(19,16,"Date_txt")),m.Hb(3),m.Wc(m.oc(22,18,"Subject_txt")),m.Hb(3),m.Wc(m.oc(25,20,"Attachments_txt")),m.Hb(3),m.tc("ngForOf",m.pc(28,22,e.model,e.pagerConfig))}}function ld(e,t){1&e&&(m.ac(0,"div",13),m.ac(1,"h3",25),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.Wc(m.oc(3,1,"NoRecordFound_txt")))}function rd(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",26),m.ac(2,"select",27),m.ic("change",(function(t){return m.Mc(e),m.mc().changePageSize(t.target.value)})),m.ac(3,"option",28),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.ac(6,"option",29),m.Vc(7,"10"),m.Zb(),m.ac(8,"option",30),m.Vc(9,"25"),m.Zb(),m.ac(10,"option",31),m.Vc(11,"50"),m.Zb(),m.ac(12,"option",32),m.Vc(13,"100"),m.Zb(),m.Zb(),m.ac(14,"pagination-controls",33),m.ic("pageChange",(function(t){return m.Mc(e),m.mc().getNextPageRecord(t)})),m.nc(15,"translate"),m.nc(16,"translate"),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc();m.Hb(3),m.uc("value",e.totalRecords),m.Hb(1),m.Wc(m.oc(5,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(15,6,"Previous_txt")),m.uc("nextLabel",m.oc(16,8,"Next_txt"))}}let sd=(()=>{class e{constructor(e,t,n,i,a,c){this._achievementAwardService=e,this.translate=t,this.sanitizer=n,this._commonService=i,this._titleService=a,this._route=c,this.indexModel=new s.d,this.totalRecords=0,this.pagerConfig={id:"datapager",itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords},this.DateFormat=d.a.DateFormat,this.DatePickerFormat=d.a.DatePickerFormat,this.minimumDate=d.a.MinimumDate,this.IsLoading=!0,this.filterModel=new l.b,this.achievementEnum=o.a,this.enumdata=xi.b,a.setTitle("hi"==t.currentLang?" \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":" Rajasthan Government"),this._route.paramMap.subscribe(e=>{this.pageType=e.get("pageType"),this._titleService.setTitle(this.pageType),this.pageCode=e.get("pageCode");let t=e.get("dptCode");localStorage.getItem("websiteCode")?this.filterModel.DepartmentCode=Number(localStorage.getItem("websiteCode")):t&&(this.filterModel.DepartmentCode=Number(t),localStorage.setItem("websiteCode",t)),this.GetData()})}ngOnInit(){}GetData(){this.IsLoading=!0,this.filterModel.IndexModel=this.indexModel,this.filterModel.IndexModel.OrderBy="AchievementDate",this.filterModel.IndexModel.OrderByAsc=0,this.filterModel.CommonCategoryCode=this.enumdata.CommonCategoryLookupTransactions,this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel,!1).subscribe(e=>{e.IsSuccess&&(this.model=e.Data.Data,this.model&&(this.pageTypeHindi=this.model[0].AchievementCategoryHindi),this.indexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this.updatePageConfig()),this.IsLoading=!1},e=>{})}getNextPageRecord(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.Page=e,this.GetData()}changePageSize(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.PageSize=Number(e),this.indexModel.Page=1,this.GetData()}updatePageConfig(){this.pagerConfig={itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords}}onDownload(e){e&&open("'url'","_blank").document.write('')}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(c.d),m.Vb(b.b),m.Vb(g.a),m.Vb(b.d),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-newly-added-list"]],decls:19,vars:11,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"inner-page","pt-0"],[1,"container-fluid","p-4"],[1,"row"],[1,"col-xl-12","col-lg-12","mb-12"],[1,"title","text-center"],["src","assets/images/cm-letter.png",1,"img-fluid",2,"max-width","45px",3,"title","alt","error"],["class","col-lg-12",4,"ngIf"],[4,"ngIf"],[1,"col-lg-12"],[1,"table-responsive"],["border","0",1,"table","table-striped","table-bordered","table-new-design"],[2,"width","30px"],[2,"width","250px"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["Blankdata",""],["href","javascript:void(0);","class","btn btn-secondary btn-sm",3,"click",4,"ngIf"],["href","javascript:void(0);",1,"btn","btn-secondary","btn-sm",3,"click"],[1,"fas","fa-paperclip"],[1,"text-center"],[1,"new-pagination-outer"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"change"],[3,"value"],["selected","","value","10"],["value","25"],["value","50"],["value","100"],["autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Vc(7),m.Zb(),m.Zb(),m.Zb(),m.ac(8,"section",5),m.ac(9,"div",6),m.ac(10,"div",7),m.ac(11,"div",8),m.ac(12,"h1",9),m.ac(13,"img",10),m.ic("error",(function(e){return t._commonService.onImageError(e,"assets/images/loader.gif")})),m.Zb(),m.Vc(14),m.Zb(),m.Zb(),m.Zb(),m.ac(15,"div",7),m.Tc(16,od,29,25,"div",11),m.Tc(17,ld,4,3,"div",11),m.Tc(18,rd,17,10,"ng-container",12),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,9,"Home_txt")),m.Hb(3),m.Xc(" ","en"!=t.translate.currentLang?t.pageTypeHindi:t.pageType,""),m.Hb(6),m.uc("title","en"!=t.translate.currentLang?t.pageTypeHindi:t.pageType),m.uc("alt","en"!=t.translate.currentLang?t.pageTypeHindi:t.pageType),m.Hb(1),m.Xc(" ","en"!=t.translate.currentLang?t.pageTypeHindi:t.pageType," "),m.Hb(2),m.tc("ngIf",(null==t.model?null:t.model.length)>0),m.Hb(1),m.tc("ngIf",(null==t.model||t.model.length<=0)&&!t.IsLoading),m.Hb(1),m.tc("ngIf",(null==t.model?null:t.model.length)>0))},directives:[h.d,i.n,i.m,a.q,a.w,f.c],pipes:[c.c,f.b,i.e],styles:[""]}),e})(),dd=(()=>{class e{constructor(e,t,n,i,a,c){this.departmentProfile=e,this.translate=t,this.sanitizer=n,this._route=i,this._commonService=a,this._titleService=c,this.dataModel=new Ci.d,this.departmentProfileFilterModel=new Ci.c,this.departmentRecordsExist=!1,this.departmentProfileTotalRecords=0,this.departmentProfilePagerConfig={id:"departmentProfile-paging",itemsPerPage:this.departmentProfileFilterModel.IndexModel.PageSize,currentPage:this.departmentProfileFilterModel.IndexModel.Page,totalItems:this.departmentProfileTotalRecords},this.jankalyanEntryTypeEnum=vi.d,this._route.paramMap.subscribe(e=>{this.pageType=e.get("pageType"),this._titleService.setTitle(this.pageType),this.pageCode=e.get("pageCode");let t=e.get("dptCode");localStorage.getItem("websiteCode")?this.departmentProfileFilterModel.DepartmentCode=Number(localStorage.getItem("websiteCode")):t&&(this.departmentProfileFilterModel.DepartmentCode=Number(t),localStorage.setItem("websiteCode",t)),this.getDepartmentProfileListData()})}ngOnInit(){}getDepartmentProfileListData(){this.departmentProfileFilterModel.IndexModel.PageSize=1,this.departmentProfileFilterModel.JankalyanCategoryCode=this.pageCode,this.departmentProfile.GetList(this.departmentProfileFilterModel).subscribe(e=>{var t,n;if(e.IsSuccess)if(this.departmentProfileModel=null===(n=null===(t=e)||void 0===t?void 0:t.Data)||void 0===n?void 0:n.Data,this.departmentProfileModel&&this.departmentProfileModel.length>1)for(let i in this.departmentProfileModel)this.departmentProfileModel[i].Details=this.sanitizer.bypassSecurityTrustHtml(this.departmentProfileModel[i].Details);else this.departmentProfileModel&&1==this.departmentProfileModel.length?(this.dataModel=this.departmentProfileModel[0],this.dataModel.Details=this.sanitizer.bypassSecurityTrustHtml(this.departmentProfileModel[0].Details)):this.dataModel=new Ci.d;else this.dataModel=new Ci.d},e=>{console.error(e.message)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(Hi.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.a),m.Vb(g.a),m.Vb(b.d))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-other-link-general"]],decls:18,vars:8,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"container","p-0"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[3,"ngSwitch"],[1,"title","text-center","mb-1"],[1,"inner-page","page-about","page-editor-entry-design"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"about-yajona-text"],[3,"innerHTML"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"div",1),m.ac(2,"ol",2),m.ac(3,"li",3),m.ac(4,"a",4),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.Zb(),m.ac(7,"li",5),m.Vc(8),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Yb(9,6),m.ac(10,"h1",7),m.Vc(11),m.Zb(),m.Xb(),m.ac(12,"section",8),m.ac(13,"div",9),m.ac(14,"div",10),m.ac(15,"div",11),m.ac(16,"div",12),m.Wb(17,"p",13),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(4),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(6,6,"Home_txt")),m.Hb(3),m.Wc(t.pageType),m.Hb(1),m.tc("ngSwitch",t.pageType),m.Hb(2),m.Wc(t.pageType),m.Hb(6),m.tc("innerHTML",null==t.dataModel?null:t.dataModel.Details,m.Nc))},directives:[h.d,i.p],pipes:[c.c],styles:[""]}),e})();function md(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"date"),m.Zb()),2&e){const e=m.mc(2).$implicit,t=m.mc(2);m.Hb(1),m.Xc(" ",m.pc(2,1,e.AchievementDate,t.DateFormat),"")}}function ud(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc(2).$implicit;m.Hb(1),m.Xc("",e.AchievementDateHindi," ")}}function bd(e,t){if(1&e&&(m.Yb(0),m.Tc(1,md,3,4,"span",12),m.Tc(2,ud,2,1,"span",12),m.Xb()),2&e){const e=m.mc().$implicit,t=m.mc(2);m.Hb(1),m.tc("ngIf","en"==t.translate.currentLang&&(null==e?null:e.AchievementDate)),m.Hb(1),m.tc("ngIf","en"!=t.translate.currentLang&&(null==e?null:e.AchievementDateHindi))}}function gd(e,t){1&e&&(m.ac(0,"span"),m.Vc(1,"\xa0"),m.Zb())}function hd(e,t){if(1&e){const e=m.bc();m.ac(0,"a",23),m.ic("click",(function(){m.Mc(e);const t=m.mc().$implicit;return m.mc(2).onDownload(null==t?null:t.PdfFIleName)})),m.Wb(1,"i",24),m.Vc(2),m.nc(3,"translate"),m.Zb()}2&e&&(m.Hb(2),m.Xc(" ",m.oc(3,1,"ViewAttachments_txt")," "))}function pd(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Wb(4,"br"),m.Vc(5),m.Zb(),m.ac(6,"td"),m.Vc(7),m.Zb(),m.ac(8,"td"),m.Tc(9,bd,3,2,"ng-container",20),m.Tc(10,gd,2,0,"ng-template",null,21,m.Uc),m.Zb(),m.ac(12,"td"),m.Vc(13),m.Zb(),m.ac(14,"td"),m.Tc(15,hd,4,3,"a",22),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.Kc(11),a=m.mc(2);m.Hb(3),m.Xc("",(a.indexModel.Page-1)*a.indexModel.PageSize+(n+1),"/ "),m.Hb(2),m.Wc(null==e?null:e.Id),m.Hb(2),m.Xc(" ","en"!=a.translate.currentLang?null==e?null:e.DepartmentHindi:null==e?null:e.Department," "),m.Hb(2),m.tc("ngIf",(null==e?null:e.AchievementDate)&&(null==e?null:e.AchievementDateHindi))("ngIfElse",i),m.Hb(4),m.Xc(" ","en"!=a.translate.currentLang?null==e?null:e.AchievementHindi:null==e?null:e.Achievement," "),m.Hb(2),m.tc("ngIf",e.PdfFIleName)}}function fd(e,t){if(1&e&&(m.ac(0,"div",13),m.ac(1,"div",14),m.ac(2,"table",15),m.ac(3,"thead"),m.ac(4,"tr"),m.ac(5,"th",16),m.Vc(6),m.nc(7,"translate"),m.Wb(8,"br"),m.Vc(9),m.nc(10,"translate"),m.Zb(),m.ac(11,"th",17),m.Vc(12),m.nc(13,"translate"),m.Zb(),m.ac(14,"th"),m.Vc(15),m.nc(16,"translate"),m.Zb(),m.ac(17,"th"),m.Vc(18),m.nc(19,"translate"),m.Zb(),m.ac(20,"th",18),m.Vc(21),m.nc(22,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(23,"tbody"),m.Tc(24,pd,16,7,"ng-container",19),m.nc(25,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(6),m.Xc("",m.oc(7,7,"SrNo_txt"),"/ "),m.Hb(3),m.Xc("",m.oc(10,9,"RecordEntryNo_txt")," "),m.Hb(3),m.Wc(m.oc(13,11,"Department_txt")),m.Hb(3),m.Wc(m.oc(16,13,"Date_txt")),m.Hb(3),m.Wc(m.oc(19,15,"Subject_txt")),m.Hb(3),m.Wc(m.oc(22,17,"Attachments_txt")),m.Hb(3),m.tc("ngForOf",m.pc(25,19,e.model,e.pagerConfig))}}function vd(e,t){1&e&&(m.ac(0,"div",13),m.ac(1,"h3",25),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.Zb()),2&e&&(m.Hb(2),m.Wc(m.oc(3,1,"NoRecordFound_txt")))}function Cd(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",26),m.ac(2,"select",27),m.ic("change",(function(t){return m.Mc(e),m.mc().changePageSize(t.target.value)})),m.ac(3,"option",28),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.ac(6,"option",29),m.Vc(7,"10"),m.Zb(),m.ac(8,"option",30),m.Vc(9,"25"),m.Zb(),m.ac(10,"option",31),m.Vc(11,"50"),m.Zb(),m.ac(12,"option",32),m.Vc(13,"100"),m.Zb(),m.Zb(),m.ac(14,"pagination-controls",33),m.ic("pageChange",(function(t){return m.Mc(e),m.mc().getNextPageRecord(t)})),m.nc(15,"translate"),m.nc(16,"translate"),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc();m.Hb(3),m.uc("value",e.totalRecords),m.Hb(1),m.Wc(m.oc(5,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(15,6,"Previous_txt")),m.uc("nextLabel",m.oc(16,8,"Next_txt"))}}let Hd=(()=>{class e{constructor(e,t,n,i,a,c,r){this._dptDistrictWebsiteService=e,this._achievementAwardService=t,this.translate=n,this.sanitizer=i,this._commonService=a,this._titleService=c,this._route=r,this.indexModel=new s.d,this.totalRecords=0,this.pagerConfig={id:"datapager",itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords},this.DateFormat=d.a.DateFormat,this.DatePickerFormat=d.a.DatePickerFormat,this.minimumDate=d.a.MinimumDate,this.IsLoading=!0,this.filterModel=new l.b,this.achievementEnum=o.a,this.pageTitle=new s.f,c.setTitle("hi"==n.currentLang?" \u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928 \u0938\u0930\u0915\u093e\u0930\u0964":" Rajasthan Government"),this._route.paramMap.subscribe(e=>{this.pageType=e.get("pageType"),this._titleService.setTitle(this.pageType),this.pageCode=e.get("pageCode");let t=e.get("dptCode");localStorage.getItem("websiteCode")?this.filterModel.DepartmentCode=Number(localStorage.getItem("websiteCode")):t&&(this.filterModel.DepartmentCode=Number(t),localStorage.setItem("websiteCode",t)),this.GetData(),this.pageCode&&this.GetAchievementCategoryDetail()})}ngOnInit(){}GetData(){this.IsLoading=!0,this.filterModel.IndexModel=this.indexModel,this.filterModel.IndexModel.OrderBy="AchievementDate",this.filterModel.IndexModel.OrderByAsc=0,this.filterModel.CategoryCode=this.pageCode,this._achievementAwardService.GetAchievementListBySearchFilterData(this.filterModel,!1).subscribe(e=>{e.IsSuccess&&(this.model=e.Data.Data,this.indexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this.updatePageConfig()),this.IsLoading=!1},e=>{})}getNextPageRecord(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.Page=e,this.GetData()}changePageSize(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.PageSize=Number(e),this.indexModel.Page=1,this.GetData()}updatePageConfig(){this.pagerConfig={itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords}}onDownload(e){e&&open("'url'","_blank").document.write('')}GetAchievementCategoryDetail(){this._dptDistrictWebsiteService.GetAchievementCategoryDetail(Number(this.pageCode)).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle.NameEnglish=t.SubMenuNameEnglish,this.pageTitle.NameHindi=t.SubMenuNameHindi)}},e=>{})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(p.a),m.Vb(u.a),m.Vb(c.d),m.Vb(b.b),m.Vb(g.a),m.Vb(b.d),m.Vb(h.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-other-link-transaction"]],decls:19,vars:12,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"inner-page","pt-0"],[1,"container-fluid","p-4"],[1,"row"],[1,"col-xl-12","col-lg-12","mb-12"],[1,"title","text-center"],[1,"img-fluid",2,"max-width","45px",3,"src","title","alt","error"],["class","col-lg-12",4,"ngIf"],[4,"ngIf"],[1,"col-lg-12"],[1,"table-responsive"],["border","0",1,"table","table-striped","table-bordered","table-new-design"],[2,"width","30px"],[2,"width","250px"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["Blankdata",""],["href","javascript:void(0);","class","btn btn-secondary btn-sm",3,"click",4,"ngIf"],["href","javascript:void(0);",1,"btn","btn-secondary","btn-sm",3,"click"],[1,"fas","fa-paperclip"],[1,"text-center"],[1,"new-pagination-outer"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"change"],[3,"value"],["selected","","value","10"],["value","25"],["value","50"],["value","100"],["autoHide","true",1,"w-100","text-center","mt-4",3,"previousLabel","nextLabel","pageChange"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Vc(7),m.Zb(),m.Zb(),m.Zb(),m.ac(8,"section",5),m.ac(9,"div",6),m.ac(10,"div",7),m.ac(11,"div",8),m.ac(12,"h1",9),m.ac(13,"img",10),m.ic("error",(function(e){return t._commonService.onImageError(e,"assets/images/icon-achievements-list.png")})),m.Zb(),m.Vc(14),m.Zb(),m.Zb(),m.Zb(),m.ac(15,"div",7),m.Tc(16,fd,26,22,"div",11),m.Tc(17,vd,4,3,"div",11),m.Tc(18,Cd,17,10,"ng-container",12),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,10,"Home_txt")),m.Hb(3),m.Xc(" ","en"!=t.translate.currentLang?t.pageTitle.NameHindi:t.pageTitle.NameEnglish," "),m.Hb(6),m.uc("title","en"!=t.translate.currentLang?t.pageTitle.NameHindi:t.pageTitle.NameEnglish),m.uc("alt","en"!=t.translate.currentLang?t.pageTitle.NameHindi:t.pageTitle.NameEnglish),m.tc("src",null==t.model[0]?null:t.model[0].AchievementCategoryImagePath,m.Pc),m.Hb(1),m.Xc(" ","en"!=t.translate.currentLang?t.pageTitle.NameHindi:t.pageTitle.NameEnglish," "),m.Hb(2),m.tc("ngIf",(null==t.model?null:t.model.length)>0),m.Hb(1),m.tc("ngIf",(null==t.model||t.model.length<=0)&&!t.IsLoading),m.Hb(1),m.tc("ngIf",(null==t.model?null:t.model.length)>0))},directives:[h.d,i.n,i.m,a.q,a.w,f.c],pipes:[c.c,f.b,i.e],styles:[""]}),e})();function Dd(e,t){if(1&e){const e=m.bc();m.ac(0,"div",18),m.ac(1,"div",19),m.ac(2,"div",20),m.ac(3,"img",21),m.ic("error",(function(t){return m.Mc(e),m.mc(2)._commonService.onImageError(t,"assets/images/no-img.png")})),m.Zb(),m.Zb(),m.Zb(),m.ac(4,"a",22),m.ac(5,"span",23),m.Wb(6,"i",24),m.Zb(),m.ac(7,"span",25),m.Vc(8,"Previous"),m.Zb(),m.Zb(),m.ac(9,"a",26),m.ac(10,"span",23),m.Wb(11,"i",27),m.Zb(),m.ac(12,"span",25),m.Vc(13,"Next"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(3),m.uc("title",null==e.generalModel?null:e.generalModel.Description),m.uc("alt",null==e.generalModel?null:e.generalModel.Description),m.tc("src",null==e.generalModel?null:e.generalModel.HomePageImageUrl,m.Pc)}}function Md(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Dd,14,3,"div",17),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",e.generalModel)}}function Id(e,t){if(1&e){const e=m.bc();m.ac(0,"div",35),m.ac(1,"button",36),m.ic("click",(function(){m.Mc(e);const t=m.mc(2);return t._commonService.ShareOnWhatsapp(("en"==t.translate.currentLang?null==t.generalModel?null:t.generalModel.CategoryName:null==t.generalModel?null:t.generalModel.CategoryNameHindi)+" : "+(null==t.generalModel?null:t.generalModel.Description),t.pageLink)})),m.nc(2,"translate"),m.lc(),m.ac(3,"svg",37),m.Wb(4,"path",38),m.Zb(),m.Zb(),m.Zb()}2&e&&(m.Hb(1),m.uc("title",m.oc(2,1,"WhatsAppShare_txt")))}function Zd(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"a",39),m.ic("click",(function(){m.Mc(e);const n=t.$implicit;return m.mc(2).openAttachmentInNewTabl(n)})),m.Wb(2,"i",40),m.Vc(3," Download"),m.Zb(),m.Xb()}}function Td(e,t){if(1&e&&(m.ac(0,"div",28),m.ac(1,"h4",29),m.Vc(2),m.Zb(),m.ac(3,"p",30),m.Wb(4,"i",31),m.Vc(5),m.nc(6,"date"),m.Zb(),m.ac(7,"div",32),m.Tc(8,Id,5,3,"div",33),m.ac(9,"div"),m.Tc(10,Zd,4,0,"ng-container",16),m.Zb(),m.Zb(),m.Wb(11,"p",34),m.Zb()),2&e){const e=m.mc();m.Hb(2),m.Xc("",null==e.generalModel?null:e.generalModel.Description," "),m.Hb(3),m.Xc(" ","en"==e.translate.currentLang?m.pc(6,5,null==e.generalModel?null:e.generalModel.PressreleaseDate,"d MMM, y"):null==e.generalModel?null:e.generalModel.PressReleaseDateHindi," "),m.Hb(3),m.tc("ngIf",e.isDistrict),m.Hb(2),m.tc("ngForOf",null==e.generalModel?null:e.generalModel.Attachments),m.Hb(1),m.tc("innerHTML",null==e.generalModel?null:e.generalModel.GeneralDescription,m.Nc)}}function yd(e,t){1&e&&m.Wb(0,"app-mini-loader")}function xd(e,t){1&e&&m.Wb(0,"app-no-records",41),2&e&&m.tc("showImage",!0)}function Pd(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"a",46),m.ic("click",(function(){m.Mc(e);const n=t.$implicit;return m.mc(3).openAttachmentInNewTabl(n)})),m.ac(2,"img",21),m.ic("error",(function(t){return m.Mc(e),m.mc(3)._commonService.onImageError(t,"assets/images/no-img.png")})),m.nc(3,"translate"),m.nc(4,"translate"),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=t.$implicit;m.Hb(2),m.uc("title",m.oc(3,3,"PhotoGallery_txt")),m.uc("alt",m.oc(4,5,"PhotoGallery_txt")),m.tc("src",e,m.Pc)}}function Sd(e,t){if(1&e&&(m.ac(0,"div",43),m.ac(1,"div",44),m.Vc(2),m.nc(3,"translate"),m.Zb(),m.ac(4,"div",15),m.ac(5,"div",45),m.Tc(6,Pd,5,7,"ng-container",16),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(2),m.Wc(m.oc(3,2,"PhotoGallery_txt")),m.Hb(4),m.tc("ngForOf",null==e.generalModel?null:e.generalModel.ImageAttachments)}}function _d(e,t){if(1&e&&(m.Yb(0),m.Tc(1,Sd,7,4,"div",42),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",(null==e.generalModel?null:e.generalModel.ImageAttachments)&&(null==e.generalModel?null:e.generalModel.ImageAttachments.length))}}function wd(e,t){if(1&e&&(m.Yb(0),m.ac(1,"a",47),m.ac(2,"div",48),m.Vc(3),m.nc(4,"date"),m.Zb(),m.ac(5,"div",49),m.Vc(6),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=m.mc();m.Hb(1),m.vc("routerLink","/home/press-release/",null==e?null:e.Id,""),m.Hb(2),m.Xc(" ","en"==n.translate.currentLang?m.pc(4,3,e.PressreleaseDate,"d MMM, y"):e.PressReleaseDateHindi," "),m.Hb(3),m.Wc(null==e?null:e.Description)}}function Ld(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Vd(e,t){1&e&&m.Wb(0,"app-no-records")}let kd=(()=>{class e{constructor(e,t,n,i,a,c,o,l,r){this.achievementAwardService=e,this.translate=t,this.sanitizer=n,this.route=i,this._app=a,this._route=c,this._titleService=o,this._commonService=l,this._dptDistrictWebsiteService=r,this.indexModel=new ha.f,this.isDistrict=!1,this.IsCodeOfConduct=!0,this._commonService.SetWebTitle("hi"==t.currentLang?"\u092a\u094d\u0930\u0947\u0938 \u0935\u093f\u091c\u094d\u091e\u092a\u094d\u0924\u093f \u0935\u093f\u0935\u0930\u0923":"Press Release Detail"),this.isDistrict=l.IsDistrict(),this._route.paramMap.subscribe(e=>{this.indexModel.EntryNumber=Number(e.get("pressreleaseid")),this.indexModel.DepartmentCode=l.GetWebDistDeptCode(),this.GetPressReleaseData(),this.GetTopPressRelease()}),this.IsCodeOfConduct=this._commonService.IsCodeOfConduct()}ngOnInit(){this.pageLink=window.location.href}GetPressReleaseData(){this.generalModel=void 0;let e=new ha.f;e.PageSize=3,e.IsBase64File=!1,e.EntryNumber=this.indexModel.EntryNumber,this._dptDistrictWebsiteService.GetDptInAugrationLink(e).subscribe(e=>{e.IsSuccess?(this.generalModel=e.Data.Data[0],this.generalModel.GeneralDescription=this.sanitizer.bypassSecurityTrustHtml(this.generalModel.GeneralDescription)):this.generalModel={}},e=>{this.generalModel={},console.error(e)})}openAttachmentInNewTabl(e){window.open(e,"_blank")}GetTopPressRelease(){this.PressReleaseListModel=void 0;let e=new ha.f;e.PageSize=3,e.OrderBy="CreatedDate",e.OrderByAsc=0,e.IsBase64File=!1,e.DepartmentCode=this.indexModel.DepartmentCode,this._dptDistrictWebsiteService.GetDptInAugrationLink(e).subscribe(e=>{this.PressReleaseListModel=e.IsSuccess?e.Data.Data:[]},e=>{this.PressReleaseListModel=[],console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.b),m.Vb(Qe.a),m.Vb(h.a),m.Vb(b.d),m.Vb(g.a),m.Vb(p.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-press-release-detail"]],decls:27,vars:18,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-press-release-details","py-5"],[1,"container"],[1,"row"],[1,"col-lg-8"],[4,"ngIf"],["class","press-release-details-left pt-4",4,"ngIf"],[3,"showImage",4,"ngIf"],[1,"col-lg-4","press-release-details-right"],[1,"middle-content-custom-card"],[1,"custom-card-title"],[1,"custom-card-body"],[4,"ngFor","ngForOf"],["id","SliderPress","class","carousel slide","data-ride","carousel",4,"ngIf"],["id","SliderPress","data-ride","carousel",1,"carousel","slide"],[1,"carousel-inner"],[1,"carousel-item","active"],[3,"src","title","alt","error"],["href","#SliderPress","role","button","data-slide","prev",1,"carousel-control-prev","carousel-control-icon"],["aria-hidden","true"],[1,"fas","fa-chevron-left"],[1,"sr-only"],["href","#SliderPress","role","button","data-slide","next",1,"carousel-control-next","carousel-control-icon"],[1,"fas","fa-chevron-right"],[1,"press-release-details-left","pt-4"],[1,"text-theme"],[1,"text-muted"],[1,"fas","fa-calendar","mr-1"],[1,"text-center","d-flex","align-items-center","mb-4","justify-content-between"],["class","detail-page-share-icons",4,"ngIf"],[3,"innerHTML"],[1,"detail-page-share-icons"],["type","submit",1,"btn-whtsap_share",3,"title","click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-whatsapp"],["d","M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"],[1,"btn","btn-round","btn-theme","btn-yellow",3,"click"],[1,"fas","fa-file-pdf","mr-2"],[3,"showImage"],["class"," middle-content-custom-card mb-5",4,"ngIf"],[1,"middle-content-custom-card","mb-5"],[1,"custom-card-title","text-uppercase"],[1,"side-photo-gallery","d-flex","flex-wrap"],[1,"side-photo-gallery-img",3,"click"],[1,"middle-content-items","d-block","text-dark","mb-2",3,"routerLink"],[1,"middle-content-date"],[1,"middle-content-info"]],template:function(e,t){1&e&&(m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(9,"section",5),m.ac(10,"div",6),m.ac(11,"div",7),m.ac(12,"div",8),m.Tc(13,Md,2,1,"ng-container",9),m.Tc(14,Td,12,8,"div",10),m.Tc(15,yd,1,0,"app-mini-loader",9),m.Tc(16,xd,1,1,"app-no-records",11),m.Zb(),m.ac(17,"div",12),m.Tc(18,_d,2,1,"ng-container",9),m.ac(19,"div",13),m.ac(20,"div",14),m.Vc(21),m.nc(22,"translate"),m.Zb(),m.ac(23,"div",15),m.Tc(24,wd,7,6,"ng-container",16),m.Zb(),m.Zb(),m.Tc(25,Ld,1,0,"app-mini-loader",9),m.Tc(26,Vd,1,0,"app-no-records",9),m.Zb(),m.Zb(),m.Zb(),m.Zb()),2&e&&(m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,12,"Home_txt")),m.Hb(3),m.Xc("",m.oc(8,14,"PressReleaseDetail_txt")," "),m.Hb(6),m.tc("ngIf",!t.IsCodeOfConduct),m.Hb(1),m.tc("ngIf",t.generalModel),m.Hb(1),m.tc("ngIf",!t.generalModel),m.Hb(1),m.tc("ngIf",t.generalModel&&0==t._commonService.GetObjectLength(t.generalModel)),m.Hb(2),m.tc("ngIf",!t.IsCodeOfConduct),m.Hb(3),m.Wc(m.oc(22,16,"LatestPressReleases_txt")),m.Hb(3),m.tc("ngForOf",t.PressReleaseListModel),m.Hb(1),m.tc("ngIf",!t.PressReleaseListModel),m.Hb(1),m.tc("ngIf",t.PressReleaseListModel&&0==t.PressReleaseListModel.length))},directives:[h.d,i.n,i.m,v.a,C.a],pipes:[c.c,i.e],styles:[""]}),e})();var Nd=n("hzby");function Od(e,t){if(1&e&&(m.ac(0,"li",37),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"==e.translate.currentLang?e.pageTitle.NameHindi:e.pageTitle.NameEnglish," ")}}function Ad(e,t){1&e&&(m.ac(0,"li",37),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Press_Releases_txt")," "))}function Wd(e,t){if(1&e&&(m.ac(0,"option",38),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.tc("value",e.Value),m.Hb(1),m.Xc(" ",e.Text," ")}}function Ed(e,t){if(1&e&&(m.ac(0,"option",38),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.tc("value",e.Value),m.Hb(1),m.Xc(" ",e.Text," ")}}function Gd(e,t){if(1&e&&(m.ac(0,"option",38),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.tc("value",e.Value),m.Hb(1),m.Xc(" ",e.Text," ")}}function Fd(e,t){if(1&e&&(m.ac(0,"option",38),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.tc("value",e.Value),m.Hb(1),m.Xc("",e.Text," ")}}function Rd(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"==e.translate.currentLang?e.pageTitle.NameHindi:e.pageTitle.NameEnglish," ")}}function Xd(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Press_Releases_txt")," "))}function Bd(e,t){1&e&&(m.ac(0,"th"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"Image_txt")))}function Ud(e,t){if(1&e&&(m.Wb(0,"img",51),m.nc(1,"translate"),m.nc(2,"translate")),2&e){const e=m.mc(2).$implicit,t=m.mc(2);m.uc("title",m.oc(1,3,"Attachment_txt")),m.uc("alt",m.oc(2,5,"Attachment_txt")),m.tc("src",t.sanitizeImageUrl(e.HomePageImageUrl),m.Pc)}}function zd(e,t){1&e&&m.Wb(0,"div",52)}function jd(e,t){if(1&e&&(m.ac(0,"td"),m.Tc(1,Ud,3,7,"img",49),m.Tc(2,zd,1,0,"div",50),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngIf",e.HomePageImageUrl),m.Hb(1),m.tc("ngIf",!e.HomePageImageUrl)}}function $d(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.Vc(5),m.nc(6,"date"),m.Zb(),m.ac(7,"td"),m.Vc(8),m.Zb(),m.Tc(9,jd,3,2,"td",34),m.ac(10,"td"),m.ac(11,"a",48),m.Vc(12),m.nc(13,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.Hb(3),m.Wc((i.filterModel.Page-1)*i.filterModel.PageSize+(n+1)),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?m.pc(6,6,e.PressreleaseDate,"d MMM, y"):e.PressReleaseDateHindi," "),m.Hb(3),m.Xc(" ",e.Description," "),m.Hb(1),m.tc("ngIf",!i.isCodeOfConduct),m.Hb(2),m.vc("routerLink","/home/press-release/",null==e?null:e.Id,""),m.Hb(1),m.Wc(m.oc(13,9,"ViewDetail_txt"))}}function Yd(e,t){if(1&e){const e=m.bc();m.ac(0,"div",53),m.ac(1,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc(2).posterChangePageSize(t.target.value)})),m.ac(2,"option",38),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.ac(5,"option",55),m.Vc(6,"15"),m.Zb(),m.ac(7,"option",56),m.Vc(8,"25"),m.Zb(),m.ac(9,"option",57),m.Vc(10,"50"),m.Zb(),m.ac(11,"option",58),m.Vc(12,"100"),m.Zb(),m.Zb(),m.ac(13,"pagination-controls",59),m.ic("pageChange",(function(t){return m.Mc(e),m.mc(2).posterGetNextPageRecord(t)})),m.nc(14,"translate"),m.nc(15,"translate"),m.Zb(),m.Zb()}if(2&e){const e=m.mc(2);m.Hb(2),m.uc("value",e.totalRecords),m.Hb(1),m.Wc(m.oc(4,4,"All_txt")),m.Hb(10),m.uc("previousLabel",m.oc(14,6,"Previous_txt")),m.uc("nextLabel",m.oc(15,8,"Next_txt"))}}function qd(e,t){if(1&e&&(m.ac(0,"div",39),m.ac(1,"div",40),m.ac(2,"div",41),m.ac(3,"table",42),m.ac(4,"thead"),m.ac(5,"tr"),m.ac(6,"th",43),m.Vc(7),m.nc(8,"translate"),m.Zb(),m.ac(9,"th",44),m.Vc(10),m.nc(11,"translate"),m.Zb(),m.ac(12,"th"),m.Vc(13),m.nc(14,"translate"),m.Zb(),m.Tc(15,Bd,3,3,"th",34),m.ac(16,"th",45),m.Vc(17),m.nc(18,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(19,"tbody"),m.Tc(20,$d,14,11,"ng-container",46),m.nc(21,"paginate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Tc(22,Yd,16,10,"div",47),m.Zb()),2&e){const e=m.mc();m.Hb(7),m.Wc(m.oc(8,7,"SrNo_txt")),m.Hb(3),m.Wc(m.oc(11,9,"Date_txt")),m.Hb(3),m.Wc(m.oc(14,11,"Subject_txt")),m.Hb(2),m.tc("ngIf",!e.isCodeOfConduct),m.Hb(2),m.Wc(m.oc(18,13,"ViewDetail_txt")),m.Hb(3),m.tc("ngForOf",m.pc(21,15,e.generalModel,e.pagerConfig)),m.Hb(2),m.tc("ngIf",e.totalRecords>15)}}function Jd(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Kd(e,t){1&e&&m.Wb(0,"app-no-records",60),2&e&&m.tc("showImage",!0)}const Qd=function(e){return{containerClass:"theme-dark-blue",dateInputFormat:e,showWeekNumbers:!1}};let em=(()=>{class e{constructor(e,t,n,i,a,c,o,l,r){this.achievementAwardService=e,this.translate=t,this.sanitizer=n,this.route=i,this._app=a,this._route=c,this._distDeptService=o,this._commonService=l,this.datePipe=r,this.isTableView=!1,this.totalRecords=0,this.noRecords=!1,this.filterModel=new ha.f,this.categoryCode=0,this.subCatCode=0,this.DatePickerFormat=d.a.DatePickerFormat,this.minimumDate=d.a.MinimumDate,this.pressreleaseIndexModel=new s.d,this.enumdata=vi.d,this.dDLList=new s.b,this.ddlDepartment=[],this.DateFormat=d.a.DateFormat,this.submenuCode=0,this.isCodeOfConduct=!0,this._route.paramMap.subscribe(e=>{var t,n,i;this.pageTitle=void 0;let a=null===(i=null===(n=null===(t=this._route)||void 0===t?void 0:t.snapshot)||void 0===n?void 0:n.params)||void 0===i?void 0:i.submenuCode;this.submenuCode=Number(a||0),this.deptCode=Number(e.get("dptCode"))||this._commonService.GetWebDistDeptCode();let c=e.get("CategoryCode");c&&(this.categoryCode=Number(c));let o=e.get("SubCategoryCode");o&&(this.subCatCode=Number(o),this.filterModel.SubCategoryCode=this.subCatCode),this.getPageHeading();let l=this.route.url.replace("/","").split("/");switch(this.pageName=a?l[l.length-4]:l[l.length-3],this.pageName){case"press-release-list":this.categoryCode=this.enumdata.PressReleaseCode;break;case"special-press-release-list":this.categoryCode=this.enumdata.SpecialReleaseCode}}),l.IsDistrict()?this.filterModel.DistrictDepartmentCode=this.deptCode:this.filterModel.DepartmentCode=this.deptCode,this.pagerConfig={id:"prs09890",itemsPerPage:this.filterModel.PageSize,currentPage:this.filterModel.Page,totalItems:this.totalRecords},this.dDLList=new s.b,this.ddlDepartment=[]}ngOnInit(){this.GetDDLList(),this.isCodeOfConduct=this._commonService.IsCodeOfConduct(),this.GetJankalyanEntryTypebyDepartmentCode("",this.categoryCode),setTimeout(()=>{this.GetPressReleaseData()},1e3)}getPageHeading(){this.submenuCode&&this.submenuCode>0?this.getSubmenuDetail():this.categoryCode&&this.categoryCode>0&&this.getCategoryDetail()}GetPressReleaseData(){this.generalModel=void 0,this.filterModel.IsBase64File=!1,this.filterModel.PageSize=15,this.filterModel.CategoryCode=this.categoryCode,this.filterModel.OrderBy="PressreleaseDate",this._distDeptService.GetDptInAugrationLink(this.filterModel).subscribe(e=>{e.IsSuccess?(this.generalModel=e.Data.Data,this.totalRecords=e.Data.TotalRecords,this.posterUpdatePageConfig()):this.generalModel=[]},e=>{this.generalModel=[],console.error(e)})}posterGetNextPageRecord(e){window.scroll(0,0),this.filterModel.IsPostBack=!0,this.filterModel.Page=e,this.GetPressReleaseData()}posterChangePageSize(e){window.scroll(0,0),this.filterModel.IsPostBack=!0,this.filterModel.PageSize=Number(e),this.filterModel.Page=1,this.GetPressReleaseData()}posterUpdatePageConfig(){this.pagerConfig.itemsPerPage=this.filterModel.PageSize,this.pagerConfig.currentPage=this.filterModel.Page,this.pagerConfig.totalItems=this.totalRecords}sanitizeImageUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}GetDDLList(){this._distDeptService.GetAllDDL(r.a.PressReleaseDDLKey).subscribe(e=>{var t;e.IsSuccess&&(this.dDLList=null===(t=e)||void 0===t?void 0:t.Data,sessionStorage.setItem("pressReleaseDDL",JSON.stringify(this.dDLList)))},e=>{console.error(e.message)})}GetJankalyanEntryTypebyDepartmentCode(e,t){(e||t)&&this._distDeptService.GetJankalyanEntryTypebyDepartmentCode(String(e),Number(t)).subscribe(e=>{e.IsSuccess&&(this.ddlEntryTypeMaster=e.Data)})}getParticipantList(e){e?this._distDeptService.GetVIPPersonListOfPressRelease(e).subscribe(e=>{e.IsSuccess&&(this.ddlParticipant=e.Data)}):this.ddlParticipant=[]}saveFilterAndGet(){this.saveFilter(),this.GetPressReleaseData()}saveFilter(){this.filterModel.Page=1,this.filterModel.VIPCategoryCode&&(this.filterModel.VIPCategoryCode=String(this.filterModel.VIPCategoryCode)),this.filterModel.VIPPersonCode&&(this.filterModel.VIPPersonCode=this.filterModel.VIPPersonCode),sessionStorage.setItem("pressReleaseFilter",JSON.stringify(this.filterModel))}reset(){this.filterModel=new ha.f,sessionStorage.removeItem("pressReleaseFilter"),this.GetJankalyanEntryTypebyDepartmentCode("",this.categoryCode),this._commonService.IsDistrict()?this.filterModel.DistrictDepartmentCode=this.deptCode:this.filterModel.DepartmentCode=this.deptCode,this.saveFilterAndGet()}getSubmenuDetail(){this._distDeptService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}},e=>{})}getCategoryDetail(){this.categoryCode&&this._distDeptService.GetJankalyanCategoryDetail(Number(this.categoryCode)).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.SubMenuNameEnglish||t.Name,this.pageTitle.NameHindi=t.SubMenuNameHindi||t.NameHindi,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(u.a),m.Vb(c.d),m.Vb(b.b),m.Vb(h.b),m.Vb(Qe.a),m.Vb(h.a),m.Vb(p.a),m.Vb(g.a),m.Vb(i.e))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-press-release-list"]],decls:90,vars:80,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["class","breadcrumb-item active","aria-current","page",4,"ngIf"],["autocomplete","off"],[1,"order_page"],[1,"orders_filter"],[1,"container-fluid"],[1,"row","justify-content-center"],[1,"col-xl-3","col-lg-3","col-sm-6","col-12","wow","fadeInUp"],["name","CategoryCode",1,"form-control",3,"ngModel","ngModelChange","change"],["value","0"],[3,"value",4,"ngFor","ngForOf"],["name","SubCategoryCode",1,"form-control",3,"ngModel","ngModelChange"],["name","VIPCategoryCode",1,"form-control",3,"ngModel","ngModelChange","change"],["value",""],["name","VIPPersonCode",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-xl-3","col-lg-3","col-sm-6","col-12","calendar-icon-date","fadeInUp"],["autocomplete","off","type","text","name","PressReleaseFromDate","bsDatepicker","",1,"form-control",3,"placeholder","ngModel","bsConfig","minDate","ngModelChange"],["catFromDate","bsDatepicker"],[1,"fas","fa-calendar-alt",3,"click"],["lable","","for","101"],["autocomplete","off","type","text","name","PressReleaseToDate","bsDatepicker","",1,"form-control",3,"placeholder","ngModel","bsConfig","minDate","ngModelChange"],["catToDate","bsDatepicker"],[1,"col-xl-3","col-lg-3","col-sm-6","col-12"],[1,"btn","btn-success","filter-btn","d-block","w-100",2,"border","none",3,"click"],[1,"fas","fa-search","mr-2"],[1,"btn","btn-danger","filter-btn","d-block","w-100",2,"border","none",3,"click"],[1,"fas","fa-redo-alt","mr-2"],[1,"inner-page","press-release-list-page","py-5"],[1,"container"],[1,"title","text-center"],[1,"img-fluid",2,"max-width","45px",3,"src","title","alt"],[4,"ngIf"],["class","row m-0",4,"ngIf"],[3,"showImage",4,"ngIf"],["aria-current","page",1,"breadcrumb-item","active"],[3,"value"],[1,"row","m-0"],[1,"col-lg-12","p-0"],[1,"table-responsive"],["border","0","cellspacing","0","cellpadding","0","width","100%",1,"table","font-14","table-striped","table_order_list","table-custom","table-custom"],["width","70"],["width","150px"],["width","150"],[4,"ngFor","ngForOf"],["class","new-pagination-outer",4,"ngIf"],[1,"btn","btn-round","btn-theme","btn-yellow","btn-sm","py-1",3,"routerLink"],["class","img-fluid","width","100px","style","height:auto;max-height: 100px;",3,"src","title","alt",4,"ngIf"],["width","100px","height","10px",4,"ngIf"],["width","100px",1,"img-fluid",2,"height","auto","max-height","100px",3,"src","title","alt"],["width","100px","height","10px"],[1,"new-pagination-outer"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"change"],["selected","","value","15"],["value","25"],["value","50"],["value","100"],["id","prs09890",1,"text-center","mt-4",3,"previousLabel","nextLabel","pageChange"],[3,"showImage"]],template:function(e,t){if(1&e){const e=m.bc();m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.Tc(6,Od,2,1,"li",4),m.Tc(7,Ad,3,3,"li",4),m.Zb(),m.Zb(),m.ac(8,"form",5),m.ac(9,"section",6),m.ac(10,"div",7),m.ac(11,"div",8),m.ac(12,"div",9),m.ac(13,"div",10),m.ac(14,"label"),m.Vc(15),m.nc(16,"translate"),m.Zb(),m.ac(17,"select",11),m.ic("ngModelChange",(function(e){return t.filterModel.CategoryCode=e}))("change",(function(e){return t.GetJankalyanEntryTypebyDepartmentCode("",e.target.value)})),m.ac(18,"option",12),m.Vc(19),m.nc(20,"translate"),m.Zb(),m.Tc(21,Wd,2,2,"option",13),m.Zb(),m.Zb(),m.ac(22,"div",10),m.ac(23,"label"),m.Vc(24),m.nc(25,"translate"),m.Zb(),m.ac(26,"select",14),m.ic("ngModelChange",(function(e){return t.filterModel.SubCategoryCode=e})),m.ac(27,"option",12),m.Vc(28),m.nc(29,"translate"),m.Zb(),m.Tc(30,Ed,2,2,"option",13),m.Zb(),m.Zb(),m.ac(31,"div",10),m.ac(32,"label"),m.Vc(33),m.nc(34,"translate"),m.Zb(),m.ac(35,"select",15),m.ic("ngModelChange",(function(e){return t.filterModel.VIPCategoryCode=e}))("change",(function(e){return t.getParticipantList(e.target.value)})),m.ac(36,"option",16),m.Vc(37),m.nc(38,"translate"),m.Zb(),m.Tc(39,Gd,2,2,"option",13),m.Zb(),m.Zb(),m.ac(40,"div",10),m.ac(41,"label"),m.Vc(42),m.nc(43,"translate"),m.Zb(),m.ac(44,"select",17),m.ic("ngModelChange",(function(e){return t.filterModel.VIPPersonCode=e})),m.ac(45,"option",16),m.Vc(46),m.nc(47,"translate"),m.Zb(),m.Tc(48,Fd,2,2,"option",13),m.Zb(),m.Zb(),m.ac(49,"div",18),m.ac(50,"label"),m.Vc(51),m.nc(52,"translate"),m.Zb(),m.ac(53,"input",19,20),m.ic("ngModelChange",(function(e){return t.filterModel.PressReleaseFromDate=e})),m.nc(55,"translate"),m.Zb(),m.ac(56,"i",21),m.ic("click",(function(){return m.Mc(e),m.Kc(54).toggle()})),m.Zb(),m.Zb(),m.ac(57,"div",18),m.ac(58,"label",22),m.Vc(59),m.nc(60,"translate"),m.Zb(),m.ac(61,"input",23,24),m.ic("ngModelChange",(function(e){return t.filterModel.PressReleaseToDate=e})),m.nc(63,"translate"),m.Zb(),m.ac(64,"i",21),m.ic("click",(function(){return m.Mc(e),m.Kc(62).toggle()})),m.Zb(),m.Zb(),m.ac(65,"div",25),m.ac(66,"label"),m.Vc(67,"\xa0"),m.Zb(),m.ac(68,"button",26),m.ic("click",(function(){return t.saveFilterAndGet()})),m.Wb(69,"i",27),m.Vc(70),m.nc(71,"translate"),m.Zb(),m.Zb(),m.ac(72,"div",25),m.ac(73,"label"),m.Vc(74,"\xa0"),m.Zb(),m.ac(75,"button",28),m.ic("click",(function(){return t.reset()})),m.Wb(76,"i",29),m.Vc(77),m.nc(78,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(79,"section",30),m.ac(80,"div",31),m.ac(81,"h1",32),m.Wb(82,"img",33),m.nc(83,"translate"),m.nc(84,"translate"),m.Tc(85,Rd,2,1,"span",34),m.Tc(86,Xd,3,3,"span",34),m.Zb(),m.Tc(87,qd,23,18,"div",35),m.Tc(88,Jd,1,0,"app-mini-loader",34),m.Tc(89,Kd,1,1,"app-no-records",36),m.Zb(),m.Zb()}if(2&e){const e=m.Kc(54),n=m.Kc(62);m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,42,"Home_txt")),m.Hb(2),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(8),m.Wc(m.oc(16,44,"Category_txt")),m.Hb(2),m.tc("ngModel",t.filterModel.CategoryCode),m.Hb(2),m.Xc("--",m.oc(20,46,"Category_txt"),"--"),m.Hb(2),m.tc("ngForOf",null==t.dDLList?null:t.dDLList.ddlPressReleaseCategory),m.Hb(3),m.Wc(m.oc(25,48,"SubCategory_txt")),m.Hb(2),m.tc("ngModel",t.filterModel.SubCategoryCode),m.Hb(2),m.Xc("--",m.oc(29,50,"SubCategory_txt"),"--"),m.Hb(2),m.tc("ngForOf",t.ddlEntryTypeMaster),m.Hb(3),m.Wc(m.oc(34,52,"VIPCategory_txt")),m.Hb(2),m.tc("ngModel",t.filterModel.VIPCategoryCode),m.Hb(2),m.Xc("--",m.oc(38,54,"VIPCategory_txt"),"--"),m.Hb(2),m.tc("ngForOf",null==t.dDLList?null:t.dDLList.ddlDesignationForPressRelease),m.Hb(3),m.Wc(m.oc(43,56,"VIPCategoryPersion_txt")),m.Hb(2),m.tc("ngModel",t.filterModel.VIPPersonCode),m.Hb(2),m.Xc("--",m.oc(47,58,"VIPCategoryPersion_txt"),"--"),m.Hb(2),m.tc("ngForOf",t.ddlParticipant),m.Hb(3),m.Xc("",m.oc(52,60,"PressReleaseFromDate_txt")," "),m.Hb(2),m.uc("placeholder",m.oc(55,62,"PressReleaseFromDate_txt")),m.tc("ngModel",t.filterModel.PressReleaseFromDate)("bsConfig",m.Ec(76,Qd,t.DatePickerFormat))("minDate",t.minimumDate),m.Hb(3),m.Ib("aria-expanded",e.isOpen),m.Hb(3),m.Wc(m.oc(60,64,"PressReleaseToDate_txt")),m.Hb(2),m.uc("placeholder",m.oc(63,66,"PressReleaseToDate_txt")),m.tc("ngModel",t.filterModel.PressReleaseToDate)("bsConfig",m.Ec(78,Qd,t.DatePickerFormat))("minDate",t.minimumDate),m.Hb(3),m.Ib("aria-expanded",n.isOpen),m.Hb(6),m.Xc(" ",m.oc(71,68,"Search_txt")," "),m.Hb(7),m.Xc(" ",m.oc(78,70,"Reset_txt")," "),m.Hb(5),m.uc("src",(null==t.pageTitle?null:t.pageTitle.ImagePath)||"assets/images/CM-directions.png",m.Pc),m.uc("title",t.pageTitle?"hi"==t.translate.currentLang?t.pageTitle.NameHindi:t.pageTitle.NameEnglish:m.oc(83,72,"Press_Releases_txt")),m.uc("alt",t.pageTitle?"hi"==t.translate.currentLang?t.pageTitle.NameHindi:t.pageTitle.NameEnglish:m.oc(84,74,"Press_Releases_txt")),m.Hb(3),m.tc("ngIf",t.pageTitle),m.Hb(1),m.tc("ngIf",!t.pageTitle),m.Hb(1),m.tc("ngIf",(null==t.generalModel?null:t.generalModel.length)>0),m.Hb(1),m.tc("ngIf",!t.generalModel),m.Hb(1),m.tc("ngIf",t.generalModel&&0==t.generalModel.length)}},directives:[h.d,i.n,a.x,a.n,a.o,a.u,a.m,a.p,a.q,a.w,i.m,Nd.b,a.b,Nd.a,f.c,v.a,C.a],pipes:[c.c,f.b,i.e],styles:[""]}),e})();function tm(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Tender_list_txt")," "))}function nm(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Archived_tender_list_txt")," "))}function im(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi," ")}}function am(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi," (Archived) ")}}function cm(e,t){if(1&e&&(m.ac(0,"option",52),m.Vc(1),m.Zb()),2&e){const e=t.$implicit;m.tc("value",e.Value),m.Hb(1),m.Wc(e.Text)}}function om(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Tender_list_txt")," "))}function lm(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"Archived_tender_list_txt")," "))}function rm(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi," ")}}function sm(e,t){if(1&e&&(m.ac(0,"span"),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ","hi"!=e.translate.currentLang?null==e.pageTitle?null:e.pageTitle.NameEnglish:null==e.pageTitle?null:e.pageTitle.NameHindi," (Archived) ")}}function dm(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"View_tender_list_txt")," "))}function mm(e,t){1&e&&(m.ac(0,"span"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Xc(" ",m.oc(2,1,"View_archived_tender_list_txt")," "))}const um=function(e){return{"bg-danger":e}},bm=function(e,t){return["/pages/sm/tender-list",e,t,0]},gm=function(e,t){return["/pages/sm/archive-tender-list",e,t,1]};function hm(e,t){if(1&e&&(m.ac(0,"li",53),m.ac(1,"a",54),m.Vc(2,">> "),m.Tc(3,dm,3,3,"span",5),m.Tc(4,mm,3,3,"span",5),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngClass",m.Ec(4,um,1!=e.isExpired))("routerLink",1==e.isExpired?m.Fc(6,bm,e.submenuCode,e.departmentCode):m.Fc(9,gm,e.submenuCode,e.departmentCode)),m.Hb(2),m.tc("ngIf",1==e.isExpired),m.Hb(1),m.tc("ngIf",0==e.isExpired)}}function pm(e,t){if(1&e&&(m.ac(0,"a",60),m.Wb(1,"i",61),m.Vc(2),m.nc(3,"translate"),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.SoftCopyURL,m.Pc),m.Hb(2),m.Xc(" ",m.oc(3,2,"ViewAttachments_txt")," ")}}const fm=function(e){return{"tender-expire":e}};function vm(e,t){if(1&e&&(m.ac(0,"div",55),m.ac(1,"div",56),m.ac(2,"div",57),m.ac(3,"h5"),m.ac(4,"strong"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.ac(7,"span"),m.Vc(8),m.Zb(),m.Zb(),m.ac(9,"h5"),m.ac(10,"strong"),m.Vc(11),m.nc(12,"translate"),m.Zb(),m.ac(13,"span"),m.Vc(14),m.Zb(),m.Zb(),m.Zb(),m.ac(15,"div",58),m.ac(16,"div"),m.ac(17,"p"),m.Vc(18),m.nc(19,"translate"),m.Zb(),m.ac(20,"ul"),m.ac(21,"li"),m.Vc(22),m.nc(23,"translate"),m.nc(24,"date"),m.Zb(),m.ac(25,"li"),m.Vc(26),m.nc(27,"translate"),m.nc(28,"date"),m.Zb(),m.ac(29,"li"),m.Vc(30),m.nc(31,"translate"),m.nc(32,"date"),m.Zb(),m.Zb(),m.Zb(),m.Tc(33,pm,4,4,"a",59),m.Zb(),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc();m.Hb(1),m.tc("ngClass",m.Ec(35,fm,e.IsExpired)),m.Hb(4),m.Xc(" ",m.oc(6,14,"RNNo_txt")," : "),m.Hb(3),m.Xc(" ",e.RONo?e.RONo:"-"," "),m.Hb(3),m.Xc(" ",m.oc(12,16,"NITNo_txt")," : "),m.Hb(3),m.Xc(" ",e.NITNo?e.NITNo:"-"," "),m.Hb(4),m.Yc("",m.oc(19,18,"NITPurpose_txt"),": ",e.NITPurpose," "),m.Hb(4),m.Yc(" ",m.oc(23,20,"ReleaseDate_txt")," : ",e.ReleaseDate?m.pc(24,22,e.ReleaseDate,n.dateFormat):" -"," "),m.Hb(4),m.Yc(" ",m.oc(27,25,"FormIssuingDate_txt")," : ",e.FormIssuingDate?m.pc(28,27,e.FormIssuingDate,n.dateFormat):" -"," "),m.Hb(4),m.Yc(" ",m.oc(31,30,"FormSubmissionDate_txt")," : ",e.FormSubmissionDate?m.pc(32,32,e.FormSubmissionDate,n.dateFormat):" -"," "),m.Hb(3),m.tc("ngIf",e.SoftCopyURL)}}function Cm(e,t){if(1&e&&(m.ac(0,"a",73),m.Wb(1,"i",74),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",e.PDFUrl,m.Pc)}}function Hm(e,t){if(1&e&&(m.ac(0,"li",69),m.ac(1,"div",70),m.ac(2,"div"),m.Vc(3),m.ac(4,"span",71),m.Vc(5),m.nc(6,"date"),m.Zb(),m.Zb(),m.Tc(7,Cm,2,1,"a",72),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=m.mc(3);m.Hb(3),m.Xc(" ",e.Description," "),m.Hb(2),m.Wc(m.pc(6,3,e.Date,n.dateFormat)),m.Hb(2),m.tc("ngIf",e.PDFUrl)}}function Dm(e,t){if(1&e&&(m.ac(0,"a",75),m.Wb(1,"i",61),m.Vc(2),m.nc(3,"translate"),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",null==e?null:e.SoftCopyURL,m.Pc),m.Hb(2),m.Xc(" ",m.oc(3,2,"ViewAttachments_txt"),"")}}function Mm(e,t){if(1&e&&(m.ac(0,"tr",65),m.ac(1,"td"),m.Vc(2),m.Zb(),m.ac(3,"td"),m.Vc(4),m.Zb(),m.ac(5,"td"),m.Vc(6),m.Zb(),m.ac(7,"td"),m.Vc(8),m.ac(9,"ul",66),m.Tc(10,Hm,8,6,"li",67),m.Zb(),m.Zb(),m.ac(11,"td"),m.Vc(12),m.nc(13,"date"),m.Zb(),m.ac(14,"td"),m.Vc(15),m.nc(16,"date"),m.Zb(),m.ac(17,"td"),m.Vc(18),m.nc(19,"date"),m.Zb(),m.ac(20,"td"),m.Vc(21),m.nc(22,"date"),m.Zb(),m.ac(23,"td"),m.Vc(24," \xa0 "),m.Tc(25,Dm,4,4,"a",68),m.Zb(),m.Zb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(2);m.tc("ngClass",m.Ec(23,fm,e.IsExpired)),m.Hb(2),m.Xc(" ",(i.indexModel.Page-1)*i.indexModel.PageSize+(n+1),""),m.Hb(2),m.Wc(e.RONo?e.RONo:"-"),m.Hb(2),m.Wc(e.NITNo?e.NITNo:"-"),m.Hb(2),m.Xc("",e.NITPurpose," "),m.Hb(2),m.tc("ngForOf",e.TenderMappingList),m.Hb(2),m.Wc(e.ReleaseDate?m.pc(13,11,e.ReleaseDate,i.dateFormat):" -"),m.Hb(3),m.Xc(" ",e.FormIssuingDate?m.pc(16,14,e.FormIssuingDate,i.dateFormat):" -",""),m.Hb(3),m.Wc(e.FormSubmissionDate?m.pc(19,17,e.FormSubmissionDate,i.dateFormat):" -"),m.Hb(3),m.Wc(e.TenderOpeningDate?m.pc(22,20,e.TenderOpeningDate,i.dateFormat):" -"),m.Hb(4),m.tc("ngIf",e.SoftCopyURL)}}function Im(e,t){if(1&e&&(m.ac(0,"div",62),m.ac(1,"table",63),m.ac(2,"thead"),m.ac(3,"tr"),m.ac(4,"th"),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.ac(7,"th"),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.ac(10,"th"),m.Vc(11),m.nc(12,"translate"),m.Zb(),m.ac(13,"th"),m.Vc(14),m.nc(15,"translate"),m.Zb(),m.ac(16,"th"),m.Vc(17),m.nc(18,"translate"),m.Zb(),m.ac(19,"th"),m.Vc(20),m.nc(21,"translate"),m.Zb(),m.ac(22,"th"),m.Vc(23),m.nc(24,"translate"),m.Zb(),m.ac(25,"th"),m.Vc(26),m.nc(27,"translate"),m.Zb(),m.ac(28,"th"),m.Vc(29),m.nc(30,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(31,"tbody"),m.Tc(32,Mm,26,25,"tr",64),m.nc(33,"paginate"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc();m.Hb(5),m.Xc("",m.oc(6,10,"SrNo_txt")," "),m.Hb(3),m.Xc("",m.oc(9,12,"RNNo_txt")," "),m.Hb(3),m.Wc(m.oc(12,14,"NITNo_txt")),m.Hb(3),m.Wc(m.oc(15,16,"NITPurpose_txt")),m.Hb(3),m.Wc(m.oc(18,18,"ReleaseDate_txt")),m.Hb(3),m.Wc(m.oc(21,20,"FormIssuingDate_txt")),m.Hb(3),m.Wc(m.oc(24,22,"FormSubmissionDate_txt")),m.Hb(3),m.Wc(m.oc(27,24,"TenderOpeningDate_txt")),m.Hb(3),m.Wc(m.oc(30,26,"Action_txt")),m.Hb(3),m.tc("ngForOf",m.pc(33,28,e.model,e.pagerConfig))}}function Zm(e,t){1&e&&m.Wb(0,"app-mini-loader")}function Tm(e,t){1&e&&m.Wb(0,"app-no-records",76),2&e&&m.tc("showImage",!0)}function ym(e,t){if(1&e){const e=m.bc();m.Yb(0),m.ac(1,"div",77),m.ac(2,"select",78),m.ic("ngModelChange",(function(t){return m.Mc(e),m.mc().pagesize=t}))("change",(function(t){return m.Mc(e),m.mc().changePageSize(t.target.value)})),m.ac(3,"option",52),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.ac(6,"option",79),m.Vc(7,"12"),m.Zb(),m.ac(8,"option",80),m.Vc(9,"20"),m.Zb(),m.ac(10,"option",81),m.Vc(11,"30"),m.Zb(),m.Zb(),m.ac(12,"pagination-controls",82),m.ic("pageChange",(function(t){return m.Mc(e),m.mc().getNextPageRecord(t)})),m.nc(13,"translate"),m.nc(14,"translate"),m.Zb(),m.Zb(),m.Xb()}if(2&e){const e=m.mc();m.Hb(2),m.tc("ngModel",e.pagesize),m.Hb(1),m.uc("value",e.totalRecords),m.Hb(1),m.Wc(m.oc(5,5,"All_txt")),m.Hb(8),m.uc("previousLabel",m.oc(13,7,"Previous_txt")),m.uc("nextLabel",m.oc(14,9,"Next_txt"))}}const xm=function(e){return{containerClass:"theme-dark-blue",dateInputFormat:e,showWeekNumbers:!1}};let Pm=(()=>{class e{constructor(e,t,n,i){this._DptDistrictWebsiteService=e,this._route=t,this.translate=n,this._commonService=i,this.indexModel=new ha.a,this.totalRecords=0,this.pagerConfig={id:"datapager",itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords},this.pagesize="12",this.departmentCode=0,this.dateFormat=d.a.DateFormat,this.isExpired=-1,this.curDate=new Date,this.minimumDate=d.a.MinimumDate,this.DatePickerFormat=d.a.DatePickerFormat,this.submenuCode=0,this._route.params.subscribe(e=>{var t,n,a,c,o;this.pageTitle=void 0,this.isExpired=null!=(t=e.IsExpired)?t:-1,this.cateCode=null!=(n=e.catCode)?n:"0",this.indexModel.CategoryCode=this.cateCode,this.officeCode=null!=(a=e.officeCode)?a:"0",this.indexModel.OfficeCode=this.officeCode,this.departmentCode=null!=(c=e.dptCode)?c:i.GetWebDistDeptCode(),this.departmentCode&&this.GetOfficeWiseTender(),this.submenuCode=null!=(o=e.submenuCode)?o:"0",this.getPageHeading()})}getPageHeading(){this.submenuCode&&this.submenuCode>0&&this.getSubmenuDetail()}getSubmenuDetail(){this._DptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle=new s.f,this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}})}ngOnInit(){this.GetDDLList(),this.GetData()}onSearch(){this.GetData()}reset(){this.indexModel=new ha.a,sessionStorage.removeItem("isHistoryBack"),sessionStorage.removeItem("orderFilter"),this.indexModel.CategoryCode=this.cateCode,this.indexModel.OfficeCode=this.officeCode,this.GetData()}GetData(){this.model=void 0,this.indexModel.DepartmentCode=this.departmentCode,this.indexModel.IsExpired=this.isExpired,this.indexModel.OrderByAsc=0,this._DptDistrictWebsiteService.GetAllTendorData(this.indexModel).subscribe(e=>{e.IsSuccess?(this.model=e.Data.Data,this.indexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this._commonService.SetWebTitle("hi"==this.translate.currentLang?"\u091f\u0947\u0902\u0921\u0930 \u0938\u0942\u091a\u0940":"Tender List"),this.updatePageConfig()):this.model=[]},e=>{this.model=[]})}updatePageConfig(){this.pagerConfig={itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords}}changePageSize(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.PageSize=Number(e),this.indexModel.Page=1,this.GetData()}getNextPageRecord(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.Page=e,this.GetData()}GetDDLList(){this._DptDistrictWebsiteService.GetAllDDL(r.a.DDLKeyForTender).subscribe(e=>{e.IsSuccess&&(this.dDLList=e.Data)},e=>{console.error(e)})}GetOfficeWiseTender(){this._DptDistrictWebsiteService.GetOfficeWiseTenderCounts(this.departmentCode,this.cateCode).subscribe(e=>{this.tenderOrderList=e.IsSuccess?e.Data:[]},e=>{this.tenderOrderList=[],console.log(e)})}}return e.\u0275fac=function(t){return new(t||e)(m.Vb(p.a),m.Vb(h.a),m.Vb(c.d),m.Vb(g.a))},e.\u0275cmp=m.Pb({type:e,selectors:[["app-ddw-tender-list"]],decls:141,vars:136,consts:[["aria-label","breadcrumb",1,"breadcrumb_nav"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[4,"ngIf"],[1,"orders_filter"],[1,"container-fluid"],[1,"row","justify-content-center"],[1,"col-xl-3","col-lg-3","col-sm-6","col-12","wow","fadeInUp"],["type","text",1,"form-control",3,"placeholder","ngModel","ngModelChange"],[1,"form-control",3,"disabled","ngModel","ngModelChange"],["value","0"],[3,"value",4,"ngFor","ngForOf"],[1,"col-xl-3","col-lg-3","col-sm-6","col-12","calendar-icon-date","fadeInUp"],["type","text","bsDatepicker","",1,"form-control",3,"placeholder","ngModel","bsConfig","minDate","ngModelChange"],["ReleaseFromDate","bsDatepicker"],[1,"fas","fa-calendar-alt",3,"click"],["ReleaseToDate","bsDatepicker"],[1,"input-group-addon"],[1,"glyphicon","glyphicon-calendar"],["FormIssuingFromDate","bsDatepicker"],["FormIssuingToDate","bsDatepicker"],["FormSubmissionFromDate","bsDatepicker"],["FormSubmissionToDate","bsDatepicker"],[1,"col-lg-2","col-sm-6","col-12"],[1,"btn","btn-success","filter-btn","d-block","w-100",2,"border","none",3,"click"],[1,"fas","fa-search","mr-2"],[1,"btn","btn-danger","filter-btn","d-block","w-100",2,"border","none",3,"click"],[1,"fas","fa-redo-alt","mr-2"],[1,"inner-page","tender-list","py-5"],[1,"container"],[1,"title","text-center"],[1,"img-fluid",2,"max-width","45px",3,"src","title","alt"],[1,"row"],[1,"col-lg-12"],[1,"list-grid-view-btn","text-right","mb-4"],[1,"nav","nav-tabs"],["class","nav-item",4,"ngIf"],[1,"nav-item",2,"display","none"],["id","TenderGrid-tab","data-toggle","tab","href","#TenderGrid",1,"nav-link"],["type","button"],[1,"fas","fa-th"],["id","TenderList-tab","data-toggle","tab","href","#TenderList",1,"nav-link","active"],["type","button",1,"active"],[1,"fas","fa-th-list"],[1,"tab-content","row","w-100","m-0"],["id","TenderGrid",1,"row","tab-pane","fade"],["class","col-lg-4 col-md-4 col-sm-12 mb-3 ",4,"ngFor","ngForOf"],["id","TenderList",1,"col-lg-12","tab-pane","fade","show","active"],["class","table-responsive table-shadow",4,"ngIf"],[3,"showImage",4,"ngIf"],[3,"value"],[1,"nav-item"],["href","javascript:void(0)",1,"btn","btn-round","btn-theme","mr-3",3,"ngClass","routerLink"],[1,"col-lg-4","col-md-4","col-sm-12","mb-3"],[1,"new-d-box-1","d-flex","flex-column",3,"ngClass"],[1,"new-d-box-1-header"],[1,"new-d-box-1-body"],["target","_blank","class","btn btn-warning btn-sm mt-auto mb-1 p-2",3,"href",4,"ngIf"],["target","_blank",1,"btn","btn-warning","btn-sm","mt-auto","mb-1","p-2",3,"href"],[1,"fas","fa-file-pdf"],[1,"table-responsive","table-shadow"],[1,"table","table-striped","table-custom","m-auto","table-tender"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"tender-list-sub-item"],["class","mb-1",4,"ngFor","ngForOf"],["target","_blank","class","btn btn-danger btn-sm mt-auto mb-1 p-2",3,"href",4,"ngIf"],[1,"mb-1"],[1,"d-flex","justify-content-between"],[1,"mr-10"],["class","p-0 text-dark","style","font-size:20px; position:relative;","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"p-0","text-dark",2,"font-size","20px","position","relative",3,"href"],[1,"fas","fa-paperclip"],["target","_blank",1,"btn","btn-danger","btn-sm","mt-auto","mb-1","p-2",3,"href"],[3,"showImage"],[1,"new-pagination-outer","p-0","mt-4","justify-content-center","flex-column"],["name","example_length","aria-controls","example",1,"form-control-sm",2,"width","70px",3,"ngModel","ngModelChange","change"],["value","12"],["value","20"],["value","30"],["autoHide","true",1,"text-center","mt-4",3,"previousLabel","nextLabel","pageChange"]],template:function(e,t){if(1&e){const e=m.bc();m.ac(0,"nav",0),m.ac(1,"ol",1),m.ac(2,"li",2),m.ac(3,"a",3),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Zb(),m.ac(6,"li",4),m.Tc(7,tm,3,3,"span",5),m.Tc(8,nm,3,3,"span",5),m.Tc(9,im,2,1,"span",5),m.Tc(10,am,2,1,"span",5),m.Zb(),m.Zb(),m.Zb(),m.ac(11,"div",6),m.ac(12,"div",7),m.ac(13,"div",8),m.ac(14,"div",9),m.ac(15,"label"),m.Vc(16),m.nc(17,"translate"),m.Zb(),m.ac(18,"input",10),m.ic("ngModelChange",(function(e){return t.indexModel.RONo=e})),m.nc(19,"translate"),m.Zb(),m.Zb(),m.ac(20,"div",9),m.ac(21,"label"),m.Vc(22),m.nc(23,"translate"),m.Zb(),m.ac(24,"input",10),m.ic("ngModelChange",(function(e){return t.indexModel.NITNo=e})),m.nc(25,"translate"),m.Zb(),m.Zb(),m.ac(26,"div",9),m.ac(27,"label"),m.Vc(28),m.nc(29,"translate"),m.Zb(),m.ac(30,"select",11),m.ic("ngModelChange",(function(e){return t.indexModel.OfficeCode=e})),m.ac(31,"option",12),m.Vc(32),m.nc(33,"translate"),m.Zb(),m.Tc(34,cm,2,2,"option",13),m.Zb(),m.Zb(),m.ac(35,"div",14),m.ac(36,"label"),m.Vc(37),m.nc(38,"translate"),m.Zb(),m.ac(39,"input",15,16),m.ic("ngModelChange",(function(e){return t.indexModel.ReleaseFromDate=e})),m.nc(41,"translate"),m.Zb(),m.ac(42,"i",17),m.ic("click",(function(){return m.Mc(e),m.Kc(40).toggle()})),m.Zb(),m.Zb(),m.ac(43,"div",14),m.ac(44,"label"),m.Vc(45),m.nc(46,"translate"),m.Zb(),m.ac(47,"input",15,18),m.ic("ngModelChange",(function(e){return t.indexModel.ReleaseToDate=e})),m.nc(49,"translate"),m.Zb(),m.ac(50,"i",17),m.ic("click",(function(){return m.Mc(e),m.Kc(48).toggle()})),m.Zb(),m.ac(51,"span",19),m.Wb(52,"span",20),m.Zb(),m.Zb(),m.ac(53,"div",14),m.ac(54,"label"),m.Vc(55),m.nc(56,"translate"),m.Zb(),m.ac(57,"input",15,21),m.ic("ngModelChange",(function(e){return t.indexModel.FormIssuingFromDate=e})),m.nc(59,"translate"),m.Zb(),m.ac(60,"i",17),m.ic("click",(function(){return m.Mc(e),m.Kc(58).toggle()})),m.Zb(),m.Zb(),m.ac(61,"div",14),m.ac(62,"label"),m.Vc(63),m.nc(64,"translate"),m.Zb(),m.ac(65,"input",15,22),m.ic("ngModelChange",(function(e){return t.indexModel.FormIssuingToDate=e})),m.nc(67,"translate"),m.Zb(),m.ac(68,"i",17),m.ic("click",(function(){return m.Mc(e),m.Kc(66).toggle()})),m.Zb(),m.ac(69,"span",19),m.Wb(70,"span",20),m.Zb(),m.Zb(),m.ac(71,"div",14),m.ac(72,"label"),m.Vc(73),m.nc(74,"translate"),m.Zb(),m.ac(75,"input",15,23),m.ic("ngModelChange",(function(e){return t.indexModel.FormSubmissionFromDate=e})),m.nc(77,"translate"),m.Zb(),m.ac(78,"i",17),m.ic("click",(function(){return m.Mc(e),m.Kc(76).toggle()})),m.Zb(),m.Zb(),m.ac(79,"div",14),m.ac(80,"label"),m.Vc(81),m.nc(82,"translate"),m.Zb(),m.ac(83,"input",15,24),m.ic("ngModelChange",(function(e){return t.indexModel.FormSubmissionToDate=e})),m.nc(85,"translate"),m.Zb(),m.ac(86,"i",17),m.ic("click",(function(){return m.Mc(e),m.Kc(84).toggle()})),m.Zb(),m.ac(87,"span",19),m.Wb(88,"span",20),m.Zb(),m.Zb(),m.ac(89,"div",9),m.ac(90,"label"),m.Vc(91),m.nc(92,"translate"),m.Zb(),m.ac(93,"input",10),m.ic("ngModelChange",(function(e){return t.indexModel.NITPurpose=e})),m.nc(94,"translate"),m.Zb(),m.Zb(),m.ac(95,"div",25),m.ac(96,"label"),m.Vc(97,"\xa0"),m.Zb(),m.ac(98,"button",26),m.ic("click",(function(){return t.onSearch()})),m.Wb(99,"i",27),m.Vc(100),m.nc(101,"translate"),m.Zb(),m.Zb(),m.ac(102,"div",25),m.ac(103,"label"),m.Vc(104,"\xa0"),m.Zb(),m.ac(105,"button",28),m.ic("click",(function(){return t.reset()})),m.Wb(106,"i",29),m.Vc(107),m.nc(108,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(109,"section",30),m.ac(110,"div",31),m.ac(111,"h1",32),m.Wb(112,"img",33),m.nc(113,"translate"),m.nc(114,"translate"),m.Tc(115,om,3,3,"span",5),m.Tc(116,lm,3,3,"span",5),m.Tc(117,rm,2,1,"span",5),m.Tc(118,sm,2,1,"span",5),m.Zb(),m.ac(119,"div",34),m.ac(120,"div",35),m.ac(121,"div",36),m.ac(122,"ul",37),m.Tc(123,hm,5,12,"li",38),m.ac(124,"li",39),m.ac(125,"a",40),m.ac(126,"button",41),m.Wb(127,"i",42),m.Zb(),m.Zb(),m.Zb(),m.ac(128,"li",39),m.ac(129,"a",43),m.ac(130,"button",44),m.Wb(131,"i",45),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.Zb(),m.ac(132,"div",46),m.ac(133,"div",47),m.Tc(134,vm,34,37,"div",48),m.nc(135,"paginate"),m.Zb(),m.ac(136,"div",49),m.Tc(137,Im,34,31,"div",50),m.Zb(),m.Zb(),m.Zb(),m.Tc(138,Zm,1,0,"app-mini-loader",5),m.Tc(139,Tm,1,1,"app-no-records",51),m.Tc(140,ym,15,11,"ng-container",5),m.Zb(),m.Zb()}if(2&e){const e=m.Kc(40),n=m.Kc(48),i=m.Kc(58),a=m.Kc(66),c=m.Kc(76),o=m.Kc(84);m.Hb(3),m.uc("routerLink",t._commonService.GetHomePageUrl()),m.Hb(1),m.Wc(m.oc(5,71,"Home_txt")),m.Hb(3),m.tc("ngIf",1!=t.isExpired&&0==t.submenuCode),m.Hb(1),m.tc("ngIf",1==t.isExpired&&0==t.submenuCode),m.Hb(1),m.tc("ngIf",1!=t.isExpired&&t.submenuCode>0),m.Hb(1),m.tc("ngIf",1==t.isExpired&&t.submenuCode>0),m.Hb(6),m.Wc(m.oc(17,73,"RNNo_txt")),m.Hb(2),m.uc("placeholder",m.oc(19,75,"RNNo_txt")),m.tc("ngModel",t.indexModel.RONo),m.Hb(4),m.Wc(m.oc(23,77,"NITNo_txt")),m.Hb(2),m.uc("placeholder",m.oc(25,79,"NITNo_txt")),m.tc("ngModel",t.indexModel.NITNo),m.Hb(4),m.Wc(m.oc(29,81,"Office_txt")),m.Hb(2),m.tc("disabled",t.officeCode>0)("ngModel",t.indexModel.OfficeCode),m.Hb(2),m.Xc("--",m.oc(33,83,"Office_txt"),"--"),m.Hb(2),m.tc("ngForOf",t.tenderOrderList),m.Hb(3),m.Xc("",m.oc(38,85,"ReleaseFromDate_txt")," "),m.Hb(2),m.uc("placeholder",m.oc(41,87,"ReleaseFromDate_txt")),m.tc("ngModel",t.indexModel.ReleaseFromDate)("bsConfig",m.Ec(124,xm,t.DatePickerFormat))("minDate",t.minimumDate),m.Hb(3),m.Ib("aria-expanded",e.isOpen),m.Hb(3),m.Wc(m.oc(46,89,"ReleaseToDate_txt")),m.Hb(2),m.uc("placeholder",m.oc(49,91,"ReleaseToDate_txt")),m.tc("ngModel",t.indexModel.ReleaseToDate)("bsConfig",m.Ec(126,xm,t.DatePickerFormat))("minDate",t.indexModel.ReleaseFromDate?t.indexModel.ReleaseFromDate:t.minimumDate),m.Hb(3),m.Ib("aria-expanded",n.isOpen),m.Hb(5),m.Xc("",m.oc(56,93,"FormIssuingFromDate_txt")," "),m.Hb(2),m.uc("placeholder",m.oc(59,95,"FormIssuingFromDate_txt")),m.tc("ngModel",t.indexModel.FormIssuingFromDate)("bsConfig",m.Ec(128,xm,t.DatePickerFormat))("minDate",t.minimumDate),m.Hb(3),m.Ib("aria-expanded",i.isOpen),m.Hb(3),m.Wc(m.oc(64,97,"FormIssuingToDate_txt")),m.Hb(2),m.uc("placeholder",m.oc(67,99,"FormIssuingToDate_txt")),m.tc("ngModel",t.indexModel.FormIssuingToDate)("bsConfig",m.Ec(130,xm,t.DatePickerFormat))("minDate",t.indexModel.FormIssuingFromDate?t.indexModel.FormIssuingFromDate:t.minimumDate),m.Hb(3),m.Ib("aria-expanded",a.isOpen),m.Hb(5),m.Xc("",m.oc(74,101,"FormSubmissionFromDate_txt")," "),m.Hb(2),m.uc("placeholder",m.oc(77,103,"FormSubmissionFromDate_txt")),m.tc("ngModel",t.indexModel.FormSubmissionFromDate)("bsConfig",m.Ec(132,xm,t.DatePickerFormat))("minDate",t.minimumDate),m.Hb(3),m.Ib("aria-expanded",c.isOpen),m.Hb(3),m.Wc(m.oc(82,105,"FormSubmissionToDate_txt")),m.Hb(2),m.uc("placeholder",m.oc(85,107,"FormSubmissionToDate_txt")),m.tc("ngModel",t.indexModel.FormSubmissionToDate)("bsConfig",m.Ec(134,xm,t.DatePickerFormat))("minDate",t.indexModel.FormSubmissionFromDate?t.indexModel.FormSubmissionFromDate:t.minimumDate),m.Hb(3),m.Ib("aria-expanded",o.isOpen),m.Hb(5),m.Wc(m.oc(92,109,"NITPurpose_txt")),m.Hb(2),m.uc("placeholder",m.oc(94,111,"NITPurpose_txt")),m.tc("ngModel",t.indexModel.NITPurpose),m.Hb(7),m.Xc("",m.oc(101,113,"Search_txt")," "),m.Hb(7),m.Xc(" ",m.oc(108,115,"Reset_txt")," "),m.Hb(5),m.uc("src",(null==t.pageTitle?null:t.pageTitle.ImagePath)||"assets/images/title-category.png",m.Pc),m.uc("title",m.oc(113,117,"Tender_list_txt")),m.uc("alt",m.oc(114,119,"Tender_list_txt")),m.Hb(3),m.tc("ngIf",1!=t.isExpired&&0==t.submenuCode),m.Hb(1),m.tc("ngIf",1==t.isExpired&&0==t.submenuCode),m.Hb(1),m.tc("ngIf",1!=t.isExpired&&t.submenuCode>0),m.Hb(1),m.tc("ngIf",1==t.isExpired&&t.submenuCode>0),m.Hb(5),m.tc("ngIf",-1!=t.isExpired),m.Hb(11),m.tc("ngForOf",m.pc(135,121,t.model,t.pagerConfig)),m.Hb(3),m.tc("ngIf",(null==t.model?null:t.model.length)>0),m.Hb(1),m.tc("ngIf",!t.model),m.Hb(1),m.tc("ngIf",t.model&&0==t.model.length),m.Hb(1),m.tc("ngIf",t.totalRecords>12)}},directives:[h.d,i.n,a.b,a.m,a.p,a.u,a.q,a.w,i.m,Nd.b,Nd.a,i.l,v.a,C.a,f.c],pipes:[c.c,f.b,i.e],styles:[""]}),e})();var Sm=n("lWHn");function _m(e,t){if(1&e&&(m.ac(0,"li",18),m.Vc(1),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ",e.pageTitle.NameEnglish?"en"==e.translate.currentLang?e.pageTitle.NameEnglish:e.pageTitle.NameHindi:null==e.model[0]?null:e.model[0].ContactCategoryName," ")}}function wm(e,t){if(1&e&&(m.Yb(0),m.Vc(1),m.Xb()),2&e){const e=m.mc();m.Hb(1),m.Xc(" ",e.pageTitle.NameEnglish?"en"==e.translate.currentLang?e.pageTitle.NameEnglish:e.pageTitle.NameHindi:e.model[0].ContactCategoryName," ")}}function Lm(e,t){if(1&e&&m.Vc(0),2&e){const e=m.mc();m.Xc(" ",e.pageTitle.NameEnglish?"en"==e.translate.currentLang?e.pageTitle.NameEnglish:e.pageTitle.NameHindi:""," ")}}function Vm(e,t){if(1&e){const e=m.bc();m.ac(0,"div",19),m.ac(1,"div",20),m.ac(2,"input",21),m.ic("ngModelChange",(function(t){return m.Mc(e),m.mc().searchKeyword=t})),m.nc(3,"translate"),m.Zb(),m.ac(4,"div",22),m.ac(5,"button",23),m.ic("click",(function(){return m.Mc(e),m.mc().GetList()})),m.Wb(6,"i",24),m.Zb(),m.Zb(),m.Zb(),m.ac(7,"div",25),m.ac(8,"button",26),m.ic("click",(function(){return m.Mc(e),m.mc().printDepartment("deptreport")})),m.lc(),m.ac(9,"svg",27),m.Wb(10,"path",28),m.Wb(11,"path",29),m.Zb(),m.kc(),m.ac(12,"span"),m.Vc(13),m.nc(14,"translate"),m.Zb(),m.Zb(),m.ac(15,"button",30),m.ic("click",(function(){return m.Mc(e),m.mc().DepartmentontactDetailToExcel()})),m.lc(),m.ac(16,"svg",31),m.Wb(17,"path",32),m.Zb(),m.kc(),m.ac(18,"span"),m.Vc(19),m.nc(20,"translate"),m.Zb(),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(2),m.uc("placeholder",m.oc(3,4,"Search_txt")),m.tc("ngModel",e.searchKeyword),m.Hb(11),m.Xc(" ",m.oc(14,6,"Print_txt"),""),m.Hb(6),m.Xc(" ",m.oc(20,8,"excel_txt"),"")}}function km(e,t){1&e&&(m.ac(0,"th"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"Phone_txt")))}function Nm(e,t){1&e&&(m.ac(0,"th"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"Email_txt")))}function Om(e,t){1&e&&(m.ac(0,"th"),m.Vc(1),m.nc(2,"translate"),m.Zb()),2&e&&(m.Hb(1),m.Wc(m.oc(2,1,"Image_txt")))}function Am(e,t){if(1&e&&(m.ac(0,"td"),m.ac(1,"a",41),m.Vc(2),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.vc("href","tel:",e.MobileNo,"",m.Pc),m.Hb(1),m.Xc(" ",e.MobileNo," ")}}function Wm(e,t){if(1&e&&(m.ac(0,"td"),m.ac(1,"a",41),m.Vc(2),m.Zb(),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.vc("href","mailto:",e.Email,"",m.Pc),m.Hb(1),m.Xc(" ",e.Email," ")}}function Em(e,t){if(1&e){const e=m.bc();m.ac(0,"img",44),m.ic("error",(function(t){return m.Mc(e),m.mc(5)._commonService.onImageError(t,"assets/images/loader.gif")})),m.Zb()}if(2&e){const e=m.mc(2).$implicit,t=m.mc(3);m.uc("title","en"==t.translate.currentLang?t.pageTitle.NameEnglish:t.pageTitle.NameHindi),m.uc("alt","en"==t.translate.currentLang?t.pageTitle.NameEnglish:t.pageTitle.NameHindi),m.tc("src",t.sanitizeImageUrl(e.ImagePath),m.Pc)}}function Gm(e,t){1&e&&m.Wb(0,"div",45)}function Fm(e,t){if(1&e&&(m.ac(0,"td"),m.Tc(1,Em,1,3,"img",42),m.Tc(2,Gm,1,0,"div",43),m.Zb()),2&e){const e=m.mc().$implicit;m.Hb(1),m.tc("ngIf",e.ImagePath),m.Hb(1),m.tc("ngIf",!e.ImagePath)}}function Rm(e,t){if(1&e&&(m.ac(0,"a",46),m.Wb(1,"i",47),m.nc(2,"translate"),m.Zb()),2&e){const e=m.mc().$implicit;m.uc("href",e.AttachmentUrl,m.Pc),m.Hb(1),m.uc("title",m.oc(2,2,"View_txt"))}}function Xm(e,t){if(1&e&&(m.Yb(0),m.ac(1,"tr"),m.ac(2,"td"),m.Vc(3),m.Zb(),m.ac(4,"td"),m.Vc(5),m.Zb(),m.ac(6,"td"),m.Vc(7),m.Zb(),m.ac(8,"td"),m.Vc(9),m.Zb(),m.ac(10,"td"),m.Vc(11),m.Zb(),m.ac(12,"td"),m.Vc(13),m.Zb(),m.ac(14,"td"),m.Vc(15),m.Zb(),m.ac(16,"td"),m.Vc(17),m.Zb(),m.Tc(18,Am,3,2,"td",15),m.Tc(19,Wm,3,2,"td",15),m.Tc(20,Fm,3,2,"td",15),m.ac(21,"td"),m.Vc(22," \xa0 "),m.Tc(23,Rm,3,4,"a",40),m.Zb(),m.Zb(),m.Xb()),2&e){const e=t.$implicit,n=t.index,i=m.mc(3);m.Hb(3),m.Xc(" ",(i.indexModel.Page-1)*i.indexModel.PageSize+(n+1)," "),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?e.OfficerName:e.OfficerNameInHindi," "),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?e.DesignationName:"NULL"==e.DesignationNameHindi?"--":e.DesignationNameHindi," "),m.Hb(2),m.Xc(" ","en"==i.translate.currentLang?null==e.Office?"--":e.Office:null==e.OfficeHindi?"--":e.OfficeHindi," "),m.Hb(2),m.Xc(" ",null==e.AreaSpecialization?"--":e.AreaSpecialization," "),m.Hb(2),m.Xc(" ",null==e.Qualification?"--":e.Qualification," "),m.Hb(2),m.Xc(" ",null==e.ContactCategoryName?"--":e.ContactCategoryName," "),m.Hb(2),m.Yc(" ","en"==i.translate.currentLang?e.Place:e.PlaceInHindi," ","en"==i.translate.currentLang?e.Address:e.AddressInHindi," "),m.Hb(1),m.tc("ngIf",i.isMobileExist),m.Hb(1),m.tc("ngIf",i.isEmailExist),m.Hb(1),m.tc("ngIf",!i.IsCodeOfConduct),m.Hb(3),m.tc("ngIf",null==e?null:e.AttachmentUrl)}}function Bm(e,t){if(1&e&&(m.ac(0,"div",36),m.ac(1,"table",37),m.ac(2,"thead"),m.ac(3,"tr"),m.ac(4,"th",38),m.Vc(5),m.nc(6,"translate"),m.Zb(),m.ac(7,"th"),m.Vc(8),m.nc(9,"translate"),m.Zb(),m.ac(10,"th"),m.Vc(11),m.nc(12,"translate"),m.Zb(),m.ac(13,"th"),m.Vc(14),m.nc(15,"translate"),m.Zb(),m.ac(16,"th"),m.Vc(17),m.nc(18,"translate"),m.Zb(),m.ac(19,"th"),m.Vc(20),m.nc(21,"translate"),m.Zb(),m.ac(22,"th"),m.Vc(23),m.nc(24,"translate"),m.Zb(),m.ac(25,"th"),m.Vc(26),m.nc(27,"translate"),m.Zb(),m.Tc(28,km,3,3,"th",15),m.Tc(29,Nm,3,3,"th",15),m.Tc(30,Om,3,3,"th",15),m.ac(31,"th"),m.Vc(32),m.nc(33,"translate"),m.Zb(),m.Zb(),m.Zb(),m.ac(34,"tbody"),m.Tc(35,Xm,24,13,"ng-container",39),m.nc(36,"paginate"),m.Zb(),m.Zb(),m.Zb()),2&e){const e=m.mc(2);m.Hb(5),m.Wc(m.oc(6,13,"SNo_txt")),m.Hb(3),m.Wc(m.oc(9,15,"OfficerName_txt")),m.Hb(3),m.Wc(m.oc(12,17,"Designation")),m.Hb(3),m.Wc(m.oc(15,19,"Office_txt")),m.Hb(3),m.Wc(m.oc(18,21,"AreaOfSpecialization_txt")),m.Hb(3),m.Wc(m.oc(21,23,"Qualification_txt")),m.Hb(3),m.Wc(m.oc(24,25,"ContactCategoryName_txt")),m.Hb(3),m.Wc(m.oc(27,27,"PlaceAddress_txt")),m.Hb(2),m.tc("ngIf",e.isMobileExist),m.Hb(1),m.tc("ngIf",e.isEmailExist),m.Hb(1),m.tc("ngIf",!e.IsCodeOfConduct),m.Hb(2),m.Wc(m.oc(33,29,"Attachment_txt")),m.Hb(3),m.tc("ngForOf",m.pc(36,31,e.model,e.pagerConfig))}}function Um(e,t){if(1&e&&(m.ac(0,"div",48),m.ac(1,"a",49),m.Wb(2,"i",50),m.Vc(3),m.nc(4,"translate"),m.Zb(),m.Wb(5,"iframe",51),m.Zb()),2&e){const e=m.mc(2);m.Hb(1),m.tc("href",e.safeURL,m.Pc),m.Hb(2),m.Wc(m.oc(4,3,"Downloads_txt")),m.Hb(2),m.tc("src",e.safeURL,m.Oc)}}function zm(e,t){if(1&e&&(m.ac(0,"div",33),m.Tc(1,Bm,37,34,"div",34),m.Tc(2,Um,6,5,"div",35),m.Zb()),2&e){const e=m.mc();m.Hb(1),m.tc("ngIf",e.IsData),m.Hb(1),m.tc("ngIf",e.IsPDF&&(null==e.model[0]?null:e.model[0].AttachmentUrl))}}function jm(e,t){1&e&&m.Wb(0,"app-mini-loader")}function $m(e,t){1&e&&m.Wb(0,"app-no-records",52),2&e&&m.tc("showImage",!0)}function Ym(e,t){1&e&&(m.ac(0,"option",61),m.Vc(1,"10"),m.Zb())}function qm(e,t){1&e&&(m.ac(0,"option",62),m.Vc(1,"25"),m.Zb())}function Jm(e,t){1&e&&(m.ac(0,"option",63),m.Vc(1,"50"),m.Zb())}function Km(e,t){1&e&&(m.ac(0,"option",64),m.Vc(1,"100"),m.Zb())}function Qm(e,t){if(1&e){const e=m.bc();m.ac(0,"div",53),m.ac(1,"div",53),m.ac(2,"select",54),m.ic("change",(function(t){return m.Mc(e),m.mc().changePageSize(t.target.value)})),m.ac(3,"option",55),m.Vc(4),m.nc(5,"translate"),m.Zb(),m.Tc(6,Ym,2,0,"option",56),m.Tc(7,qm,2,0,"option",57),m.Tc(8,Jm,2,0,"option",58),m.Tc(9,Km,2,0,"option",59),m.Zb(),m.ac(10,"pagination-controls",60),m.ic("pageChange",(function(t){return m.Mc(e),m.mc().getNextPageRecord(t)})),m.nc(11,"translate"),m.nc(12,"translate"),m.Zb(),m.Zb(),m.Zb()}if(2&e){const e=m.mc();m.Hb(3),m.uc("value",e.totalRecords),m.Hb(1),m.Xc(" ",m.oc(5,9,"All_txt")," "),m.Hb(2),m.tc("ngIf",e.totalRecords>10),m.Hb(1),m.tc("ngIf",e.totalRecords>25),m.Hb(1),m.tc("ngIf",e.totalRecords>50),m.Hb(1),m.tc("ngIf",e.totalRecords>100),m.Hb(1),m.uc("previousLabel",m.oc(11,11,"Previous_txt")),m.uc("maxSize",e.totalRecords),m.uc("nextLabel",m.oc(12,13,"Next_txt"))}}let eu=(()=>{class e{constructor(e,t,n,i,a,c){this._dptDistrictWebsiteService=e,this.translate=t,this.sanitizer=n,this._titleService=i,this.route=a,this._commonService=c,this.departmentCode=0,this.catCode=0,this.indexModel=new s.d,this.totalRecords=0,this.pagerConfig={id:"datapager",itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords},this.pageTitle=new s.f,this.deptcode=0,this.IsLoading=!0,this.isMobileExist=!1,this.isEmailExist=!1,this.searchKeyword="",this.submenuCode=0,this.IsCodeOfConduct=!0,this.IsCodeOfConduct=this._commonService.IsCodeOfConduct()}ngOnInit(){this.route.paramMap.subscribe(e=>{var t,n,i,a,c,o;this.indexModel=new s.d,this.indexModel.IsPostBack=!0,this.indexModel.PageSize=101,this.indexModel.OrderBy="DisplayOrderNo";let l=null===(i=null===(n=null===(t=this.route)||void 0===t?void 0:t.snapshot)||void 0===n?void 0:n.params)||void 0===i?void 0:i.submenuCode;this.submenuCode=Number(l||0);let r=null===(o=null===(c=null===(a=this.route)||void 0===a?void 0:a.snapshot)||void 0===c?void 0:c.params)||void 0===o?void 0:o.dptCode;this.departmentCode=r?Number(r):this._commonService.GetWebDistDeptCode(),this.route.snapshot.params.catCode&&(this.catCode=Number(this.route.snapshot.params.catCode)),this.getPageHeading(),this.GetList()})}getPageHeading(){this.submenuCode&&this.submenuCode>0?this.getSubmenuDetail():this.catCode&&this.catCode>0&&this.GetDepartmentontactCategoryDetail()}getSubmenuDetail(){this._dptDistrictWebsiteService.GetSubmenuDetail(this.submenuCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle.NameEnglish=t.DisplayNameEnglish,this.pageTitle.NameHindi=t.DisplayNameHindi,this.pageTitle.ImagePath=t.IconImage,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}},e=>{})}GetList(){this.IsLoading=!0,this.model=void 0,this.indexModel.Search="",this.indexModel.OrderByAsc=1,this.indexModel.AdvanceSearchModel={DepartmentCode:this.departmentCode,CategoryCode:this.catCode,SearchKeyword:this.searchKeyword.trim()},this._dptDistrictWebsiteService.GetDepartmentontactDetail(this.indexModel).subscribe(e=>{var t,n,i;e.IsSuccess?(this.model=e.Data.Data,this.model.length>0&&(this.IsData=null===(t=this.model[0])||void 0===t?void 0:t.IsData,this.IsPDF=null===(n=this.model[0])||void 0===n?void 0:n.IsPDF,this.IsURL=null===(i=this.model[0])||void 0===i?void 0:i.IsURL,this.IsPDF?this.safeURL=this.sanitizer.bypassSecurityTrustResourceUrl(this.model[0].AttachmentUrl):this.IsURL?(setTimeout(()=>{window.history.back()},100),window.open(this.model[0].URL,"_blank")):(this.model.find(e=>e.MobileNo)&&(this.isMobileExist=!0),this.model.find(e=>e.Email)&&(this.isEmailExist=!0))),this.indexModel.IsPostBack||(this.totalRecords=e.Data.TotalRecords),this.updatePageConfig()):this.model=[],this.IsLoading=!1},e=>{this.model=[]})}sanitizeImageUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}getNextPageRecord(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.Page=e,this.GetList()}changePageSize(e){window.scroll(0,0),this.indexModel.IsPostBack=!0,this.indexModel.PageSize=Number(e),this.indexModel.Page=1,this.GetList()}updatePageConfig(){this.pagerConfig={itemsPerPage:this.indexModel.PageSize,currentPage:this.indexModel.Page,totalItems:this.totalRecords}}GetDepartmentontactCategoryDetail(){this._dptDistrictWebsiteService.GetDepartmentontactCategoryDetail(this.catCode).subscribe(e=>{if(e.IsSuccess){let t=e.Data;t&&(this.pageTitle.NameEnglish=t.Lookup,this.pageTitle.NameHindi=t.NameHindi,this._commonService.SetWebTitle("hi"==this.translate.currentLang?this.pageTitle.NameHindi:this.pageTitle.NameEnglish))}},e=>{})}reset(){this.searchKeyword="",this.indexModel=new s.d,this.GetList()}printDepartment(e){let t,n;t=document.getElementById(e).outerHTML,n=window.open(" ","","top=0,left=0,height=100%,width=100%"),n.document.open(),n.document.write(`\n \n \n