PageSourceSearch

https://vocport.gov.in/chunk-AVOLNC6O.js

js vocport.gov.in collected 2026-10-02 19:42:33 UTC 17,072 bytes, 1 lines download raw bytes

1import{b as A,c as T,d as k}from"./chunk-7S5VARFA.js";import{a as B}from"./chunk-247YCUVF.js";import{a as z}from"./chunk-K2BAHOWP.js";import"./chunk-4QTHKBSW.js";import{k as H,l as E,m as L,t as Y,w as D}from"./chunk-EQ6PZGEX.js";import{Db as I,Eb as s,Gb as C,Nb as i,Ob as n,Pb as f,Tb as S,Yb as b,Zb as m,ab as O,bc as w,gb as t,jc as o,kc as c,lb as x,lc as _,na as P,oa as M,sb as v,wc as l,xb as y,xc as g,yc as h}from"./chunk-QZFOZYL5.js";import"./chunk-SZAW6ZBW.js";function N(a,d){if(a&1){let e=S();i(0,"button",9),b("click",function(){let p=P(e).$implicit,u=m();return u.selectedYear=p,M(u.onYearChange())}),o(1),n()}if(a&2){let e=d.$implicit,r=m();C("btn-primary",r.selectedYear===e)("btn-outline-primary",r.selectedYear!==e),t(),_(" ",e," ")}}function U(a,d){a&1&&(i(0,"div",13)(1,"div",14)(2,"span",15),o(3),l(4,"translate"),n()()()),a&2&&(t(3),c(g(4,1,"HOLIDAYS.LOADING")))}function $(a,d){if(a&1&&(i(0,"a",41),f(1,"i",42),o(2),l(3,"translate"),n()),a&2){let e=m().$implicit;s("href",e.fileUrl,O),t(2),_(" ",g(3,2,"HOLIDAYS.DOWNLOAD")," ")}}function W(a,d){a&1&&(i(0,"span",43),o(1,"-"),n())}function j(a,d){if(a&1&&(i(0,"tr",28)(1,"td",29),o(2),n(),i(3,"td",30)(4,"div",31)(5,"div",32)(6,"span",33),o(7),l(8,"date"),n(),i(9,"span",34),o(10),l(11,"date"),n()(),i(12,"div",35),o(13),l(14,"date"),n()()(),i(15,"td",30)(16,"span",36),o(17),n()(),i(18,"td")(19,"div",37),o(20),n()(),i(21,"td",38),y(22,$,4,4,"a",39)(23,W,2,0,"span",40),n()()),a&2){let e=d.$implicit,r=d.index,p=m(4);C("restricted-holiday",e.title.toLowerCase().includes("(restricted holiday)")),t(2),_(" ",r+1," "),t(5),c(h(8,11,e.date,"MMM")),t(3),c(h(11,14,e.date,"dd")),t(3),_(" ",h(14,17,e.date,"yyyy")," "),t(3),s("ngClass",p.getDayClass(e.day)),t(),_(" ",e.day," "),t(3),c(e.title),t(2),s("ngIf",e.fileUrl),t(),s("ngIf",!e.fileUrl)}}function V(a,d){if(a&1&&(i(0,"div",19)(1,"h2",20),o(2),n(),i(3,"div",21)(4,"table",22)(5,"thead")(6,"tr")(7,"th",23),o(8),l(9,"translate"),n(),i(10,"th",24),o(11),l(12,"translate"),n(),i(13,"th",25),o(14),l(15,"translate"),n(),i(16,"th"),o(17),l(18,"translate"),n(),i(19,"th",26),o(20),l(21,"translate"),n()()(),i(22,"tbody"),y(23,j,24,20,"tr",27),n()()()()),a&2){let e=d.$implicit,r=m(3);t(),w("id","year-",e,""),t(),c(e),t(2),I("aria-labelledby","year-"+e),t(4),c(g(9,10,"HOLIDAYS.S_NO")),t(3),c(g(12,12,"HOLIDAYS.DATE")),t(3),c(g(15,14,"HOLIDAYS.DAY")),t(3),c(g(18,16,"HOLIDAYS.HOLIDAY")),t(3),c(g(21,18,"HOLIDAYS.ACTION")),t(3),s("ngForOf",r.groupedHolidays[e])}}function R(a,d){if(a&1&&(i(0,"div",17),y(1,V,24,20,"div",18),n()),a&2){let e=m(2);t(),s("ngForOf",e.getYears())}}function G(a,d){a&1&&(i(0,"div",46),f(1,"i",47),o(2," Restricted Holiday "),n())}function q(a,d){if(a&1&&(i(0,"a",41),f(1,"i",42),o(2),l(3,"translate"),n()),a&2){let e=m().$implicit;s("href",e.fileUrl,O),t(2),_(" ",g(3,2,"HOLIDAYS.DOWNLOAD")," ")}}function J(a,d){a&1&&(i(0,"span",43),o(1,"-"),n())}function K(a,d){if(a&1&&(i(0,"tr",28)(1,"td",29),o(2),n(),i(3,"td",30)(4,"div",31)(5,"div",32)(6,"span",33),o(7),l(8,"date"),n(),i(9,"span",34),o(10),l(11,"date"),n()(),i(12,"div",35),o(13),l(14,"date"),n()()(),i(15,"td",30)(16,"span",36),o(17),n()(),i(18,"td")(19,"div",37),o(20),n(),y(21,G,3,0,"div",45),n(),i(22,"td",38),y(23,q,4,4,"a",39)(24,J,2,0,"span",40),n()()),a&2){let e=d.$implicit,r=d.index,p=m(3);C("restricted-holiday",e.title.toLowerCase().includes("(restricted holiday)")),t(2),_(" ",r+1," "),t(5),c(h(8,12,e.date,"MMM")),t(3),c(h(11,15,e.date,"dd")),t(3),_(" ",h(14,18,e.date,"yyyy")," "),t(3),s("ngClass",p.getDayClass(e.day)),t(),_(" ",e.day," "),t(3),c(e.title),t(),s("ngIf",e.title.toLowerCase().includes("(restricted holiday)")),t(2),s("ngIf",e.fileUrl),t(),s("ngIf",!e.fileUrl)}}function Q(a,d){if(a&1&&(i(0,"div")(1,"div",21)(2,"table",44)(3,"thead")(4,"tr")(5,"th",23),o(6),l(7,"translate"),n(),i(8,"th",24),o(9),l(10,"translate"),n(),i(11,"th",25),o(12),l(13,"translate"),n(),i(14,"th"),o(15),l(16,"translate"),n(),i(17,"th",26),o(18),l(19,"translate"),n()()(),i(20,"tbody"),y(21,K,25,21,"tr",27),n()()()()),a&2){let e=m(2);t(6),c(g(7,6,"HOLIDAYS.S_NO")),t(3),c(g(10,8,"HOLIDAYS.DATE")),t(3),c(g(13,10,"HOLIDAYS.DAY")),t(3),c(g(16,12,"HOLIDAYS.HOLIDAY")),t(3),c(g(19,14,"HOLIDAYS.ACTION")),t(3),s("ngForOf",e.groupedHolidays[e.selectedYear])}}function X(a,d){a&1&&(i(0,"div",13),f(1,"i",48),i(2,"p",49),o(3),l(4,"translate"),n()()),a&2&&(t(3),c(g(4,1,"HOLIDAYS.NO_HOLIDAYS_AVAILABLE")))}function Z(a,d){if(a&1&&(i(0,"div"),y(1,R,2,1,"div",16)(2,Q,22,16,"div",12)(3,X,5,3,"div",11),n()),a&2){let e=m();t(),s("ngIf",e.selectedYear===null),t(),s("ngIf",e.selectedYear!==null&&e.groupedHolidays[e.selectedYear]),t(),s("ngIf",e.holidays.length===0)}}var F=class a{constructor(d,e){this.apiService=d;this.translate=e;this.currentLanguage=this.translate.currentLang||this.translate.defaultLang||"en",this.langSubscription=this.translate.onLangChange.subscribe(r=>{this.currentLanguage=r.lang})}holidays=[];isLoading=!1;currentYear=new Date().getFullYear();selectedYear=null;groupedHolidays={};currentLanguage="en";langSubscription;ngOnInit(){this.selectedYear=this.currentYear,this.loadHolidays()}loadHolidays(d){this.isLoading=!0,this.apiService.getAllHolidays(d||void 0).subscribe({next:e=>{let r=e.data||e||[];this.holidays=r.map(p=>({id:p.id,title:p.title||"",year:p.year||this.currentYear,date:p.date||"",day:p.day||"",fileUrl:p.filePath?p.filePath.startsWith("http")?p.filePath:`${z.apiUrl}/${p.filePath}`:null})),this.groupedHolidays={},this.holidays.forEach(p=>{this.groupedHolidays[p.year]||(this.groupedHolidays[p.year]=[]),this.groupedHolidays[p.year].push(p)}),this.isLoading=!1},error:e=>{console.error("Error loading holidays:",e),this.isLoading=!1}})}onYearChange(){this.loadHolidays(this.selectedYear||void 0)}formatDate(d){if(!d)return"";try{return new Date(d).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return d}}getYears(){let d=Object.keys(this.groupedHolidays).map(e=>parseInt(e)).sort((e,r)=>r-e);return d.length>0?d:[this.currentYear]}getDayClass(d){let e=(d||"").toLowerCase();return e.includes("sunday")?"bg-danger-subtle text-danger":e.includes("saturday")?"bg-warning-subtle text-warning":"bg-info-subtle text-info"}ngOnDestroy(){this.langSubscription&&this.langSubscription.unsubscribe()}isTamilLanguage(){return this.currentLanguage==="ta"}static \u0275fac=function(e){return new(e||a)(x(B),x(A))};static \u0275cmp=v({type:a,selectors:[["app-holidays"]],decls:19,vars:18,consts:[[1,"holidays-page"],[1,"container","pb-5"],[1,"row"],[1,"col-12"],[1,"page-title","text-center","mb-4"],[1,"title-underline","mx-auto","mb-5"],[1,"year-filter","mb-4"],["id","holidayYearLabel",1,"form-label","fw-semibold","mb-3"],[1,"d-flex","flex-wrap","gap-2"],["type","button",1,"btn",3,"click"],["type","button","class","btn",3,"btn-primary","btn-outline-primary","click",4,"ngFor","ngForOf"],["class","text-center py-5",4,"ngIf"],[4,"ngIf"],[1,"text-center","py-5"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],["class","holidays-by-year",4,"ngIf"],[1,"holidays-by-year"],["class","year-section mb-5",4,"ngFor","ngForOf"],[1,"year-section","mb-5"],[1,"year-title","mb-4",3,"id"],[1,"table-responsive"],[1,"table","modern-table","align-middle"],[1,"text-center","col-sno"],[1,"text-center","col-date"],[1,"text-center","col-day"],[1,"text-end","col-action"],["class","holiday-row",3,"restricted-holiday",4,"ngFor","ngForOf"],[1,"holiday-row"],[1,"text-center","fw-bold",2,"color","#334155"],[1,"text-center"],[1,"d-flex","align-items-center","gap-3"],[1,"date-icon"],[1,"month"],[1,"day"],[1,"date-text","d-none","d-md-block","text-muted","small"],[1,"day-badge",3,"ngClass"],[1,"holiday-title","fw-bold"],[1,"text-end"],["target","_blank","class","btn btn-download rounded-pill",3,"href",4,"ngIf"],["class","text-muted opacity-50",4,"ngIf"],["target","_blank",1,"btn","btn-download","rounded-pill",3,"href"],[1,"ri-download-cloud-2-line","me-2"],[1,"text-muted","opacity-50"],[1,"table","modern-table","align-middle","output-table"],["class","small mt-1","style","color: #8C2F26;",4,"ngIf"],[1,"small","mt-1",2,"color","#8C2F26"],[1,"ri-alert-line","me-1"],[1,"ri-calendar-line","fs-1","text-muted"],[1,"text-muted","mt-3"]],template:function(e,r){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),o(5),l(6,"translate"),n(),f(7,"div",5),i(8,"div",6)(9,"label",7),o(10),l(11,"translate"),n(),i(12,"div",8)(13,"button",9),b("click",function(){return r.selectedYear=null,r.onYearChange()}),o(14),l(15,"translate"),n(),y(16,N,2,5,"button",10),n()(),y(17,U,5,3,"div",11)(18,Z,4,3,"div",12),n()()()()),e&2&&(C("lang-tamil",r.isTamilLanguage()),t(5),c(g(6,12,"HOLIDAYS.HOLIDAYS")),t(5),c(g(11,14,"HOLIDAYS.SELECT_YEAR")),t(3),C("btn-primary",r.selectedYear===null)("btn-outline-primary",r.selectedYear!==null),t(),_(" ",g(15,16,"HOLIDAYS.ALL_YEARS")," "),t(2),s("ngForOf",r.getYears()),t(),s("ngIf",r.isLoading),t(),s("ngIf",!r.isLoading))},dependencies:[D,H,E,L,Y,k,T],styles:[".holidays-page[_ngcontent-%COMP%]{min-height:60vh;background:#f8f9fa;padding:2rem 0}.holidays-page[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]{color:#0b1941;font-size:2.5rem;font-weight:700}.holidays-page[_ngcontent-%COMP%]   .title-underline[_ngcontent-%COMP%]{width:100px;height:4px;background:linear-gradient(90deg,#198754,d6def5);border-radius:10px}.holidays-page[_ngcontent-%COMP%]   .year-filter[_ngcontent-%COMP%]{background:#fff;padding:1.5rem;border-radius:10px;box-shadow:0 2px 10px #0000001a}.holidays-page[_ngcontent-%COMP%]   .year-section[_ngcontent-%COMP%]{background:#fff;padding:2rem;border-radius:10px;box-shadow:0 2px 10px #0000001a}.holidays-page[_ngcontent-%COMP%]   .year-section[_ngcontent-%COMP%]   .year-title[_ngcontent-%COMP%]{color:#0b1941;font-size:1.75rem;font-weight:700;border-bottom:2px solid d6def5;padding-bottom:.5rem}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]{width:auto;margin-left:auto;margin-right:auto;background:transparent;border-collapse:separate;border-spacing:0 1rem}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background:transparent;color:#334155;font-weight:600;text-transform:uppercase;font-size:.85rem;letter-spacing:.5px;padding-bottom:.5rem;border:none}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{background:#fff;box-shadow:0 2px 6px #00000005;transition:all .2s ease;border-radius:12px}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.restricted-holiday[_ngcontent-%COMP%]{background:#fff8e1;border-left:4px solid #ffc107}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 8px 15px #0000000d}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:1rem 1.5rem;background:transparent;border:none}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:50px;height:50px;background:#f8f9fa;border-radius:8px;border:1px solid #2966A3}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{font-size:.7rem;font-weight:700;text-transform:uppercase;color:#dc3545;line-height:1}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:#212529;line-height:1}.holidays-page[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]{white-space:nowrap}.holidays-page[_ngcontent-%COMP%]   .day-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:110px;white-space:nowrap;padding:.35rem .75rem;border-radius:20px;font-size:.85rem;font-weight:600}.holidays-page[_ngcontent-%COMP%]   .day-badge.bg-danger-subtle[_ngcontent-%COMP%]{background-color:#f8d7da!important;color:#842029!important}.holidays-page[_ngcontent-%COMP%]   .day-badge.bg-warning-subtle[_ngcontent-%COMP%]{background-color:#fff3cd!important;color:#664d03!important}.holidays-page[_ngcontent-%COMP%]   .day-badge.bg-info-subtle[_ngcontent-%COMP%]{background-color:#cff4fc!important;color:#055160!important}.holidays-page[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]{background-color:#eef2ff;color:#4f46e5;font-weight:500;font-size:.9rem;padding:.5rem 1.25rem;transition:all .2s;border:1px solid transparent}.holidays-page[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]:hover{background-color:#4f46e5;color:#fff;box-shadow:0 4px 12px #4f46e533}.holidays-page[_ngcontent-%COMP%]   .table-responsive[_ngcontent-%COMP%]{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}.holidays-page[_ngcontent-%COMP%]   .col-sno[_ngcontent-%COMP%]{width:60px}.holidays-page[_ngcontent-%COMP%]   .col-date[_ngcontent-%COMP%]{width:130px}.holidays-page[_ngcontent-%COMP%]   .col-day[_ngcontent-%COMP%]{width:110px}.holidays-page[_ngcontent-%COMP%]   .col-action[_ngcontent-%COMP%]{width:130px}@media (max-width: 768px){.holidays-page[_ngcontent-%COMP%]{padding:1rem 0}.holidays-page[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]{font-size:1.6rem}.holidays-page[_ngcontent-%COMP%]   .year-filter[_ngcontent-%COMP%], .holidays-page[_ngcontent-%COMP%]   .year-section[_ngcontent-%COMP%]{padding:1rem}.holidays-page[_ngcontent-%COMP%]   .year-section[_ngcontent-%COMP%]   .year-title[_ngcontent-%COMP%]{font-size:1.3rem}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]{border-spacing:0 .5rem}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:.75rem;white-space:nowrap}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:.6rem .5rem;font-size:.85rem}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]{width:40px;height:40px}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{font-size:.6rem}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{font-size:1rem}.holidays-page[_ngcontent-%COMP%]   .day-badge[_ngcontent-%COMP%]{font-size:.75rem;padding:.25rem .5rem;min-width:80px}.holidays-page[_ngcontent-%COMP%]   .btn-download[_ngcontent-%COMP%]{font-size:.8rem;padding:.3rem .8rem}.holidays-page[_ngcontent-%COMP%]   .table-responsive[_ngcontent-%COMP%]{overflow-x:auto;-webkit-overflow-scrolling:touch}.holidays-page[_ngcontent-%COMP%]   .col-sno[_ngcontent-%COMP%]{width:35px}.holidays-page[_ngcontent-%COMP%]   .col-date[_ngcontent-%COMP%]{width:90px}.holidays-page[_ngcontent-%COMP%]   .col-day[_ngcontent-%COMP%]{width:80px}.holidays-page[_ngcontent-%COMP%]   .col-action[_ngcontent-%COMP%]{width:95px}}@media (max-width: 480px){.holidays-page[_ngcontent-%COMP%]   .date-text[_ngcontent-%COMP%]{display:none!important}.holidays-page[_ngcontent-%COMP%]   .modern-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:.5rem .3rem;font-size:.8rem}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]{width:34px;height:34px}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{font-size:.55rem}.holidays-page[_ngcontent-%COMP%]   .date-icon[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{font-size:.85rem}.holidays-page[_ngcontent-%COMP%]   .day-badge[_ngcontent-%COMP%]{font-size:.7rem;padding:.2rem .4rem;min-width:66px}.holidays-page[_ngcontent-%COMP%]   .col-sno[_ngcontent-%COMP%]{width:28px}.holidays-page[_ngcontent-%COMP%]   .col-date[_ngcontent-%COMP%]{width:70px}.holidays-page[_ngcontent-%COMP%]   .col-day[_ngcontent-%COMP%]{width:65px}.holidays-page[_
1ngcontent-%COMP%]   .col-action[_ngcontent-%COMP%]{width:80px}}.holidays-page.lang-tamil[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]{font-size:2rem}.holidays-page.lang-tamil[_ngcontent-%COMP%]   .year-title[_ngcontent-%COMP%]{font-size:1.5rem}.holidays-page.lang-tamil[_ngcontent-%COMP%]   .day-badge[_ngcontent-%COMP%]{min-width:125px}.holidays-page.lang-tamil[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-size:.95rem}.holidays-page.lang-tamil[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .holidays-page.lang-tamil[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-size:.9rem}"]})};export{F as HolidaysComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.