PageSourceSearch

https://hipodromosanisidro.com/programacion/build/assets/calendario-hQLg63et.js

js hipodromosanisidro.com collected 2026-09-24 23:53:40 UTC 5,071 bytes, 1 lines download raw bytes

1import{i as e,m as t,o as n,r}from"./wayfinder-C5eGbx8e.js";import{m as i}from"./app-DI1jUwKY.js";import{t as a}from"./calendario-submenu-YEaYGjJw.js";import{t as o}from"./page-breadcrumb-DFqrDmXD.js";import{t as s}from"./public-layout-CLlwVYE1.js";var c=e(),l=r(),u={"calendario-color":{bg:`#FF8989`,label:`Calendario`},"proximas-inscripciones-color":{bg:`#5ba2e7`,label:`Próx. Inscripciones`},"inscriptos-color":{bg:`#48D2FF`,label:`Inscriptos`},"programa-oficial-color":{bg:`#FF9900`,label:`Programa Oficial`},"resultados-color":{bg:`#5bd75b`,label:`Resultados`},"resultado-parcial-color":{bg:`#5bd75b`,label:`En Curso`}},d=[`Enero`,`Febrero`,`Marzo`,`Abril`,`Mayo`,`Junio`,`Julio`,`Agosto`,`Septiembre`,`Octubre`,`Noviembre`,`Diciembre`],f=[`Dom`,`Lun`,`Mar`,`Mié`,`Jue`,`Vie`,`Sáb`];function p(e,t){let n=new Date(e,t-1,1).getDay(),r=new Date(e,t,0).getDate(),i=Array(n).fill(null);for(let e=1;e<=r;e++)i.push(e);return i}function m(e){let r=(0,c.c)(63),{eventos:s,year:m,month:b}=e,x;if(r[0]!==s){x={};for(let e of s)x[e.start]=e;r[0]=s,r[1]=x}else x=r[1];let S=String(b),C;r[2]===S?C=r[3]:(C=S.padStart(2,`0`),r[2]=S,r[3]=C);let w=`${m}${C}01`,T,E,D,O,k,A,j,M;if(r[4]!==w||r[5]!==x||r[6]!==b||r[7]!==m){let e=p(m,b),s=new Date,c=[];for(let e=2010;e<=s.getFullYear()+1;e++)c.push(e);let h;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(h=function(e,n){let r=`${e}${String(n).padStart(2,`0`)}`;t.get(`/programacion/calendario`,{mes:r},{preserveState:!1})},r[16]=h):h=r[16];let g=h;r[17]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,l.jsx)(n,{title:`Calendario - Hipódromo San Isidro`}),r[17]=j):j=r[17],r[18]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,l.jsx)(o,{items:[{label:`Programación`,href:i.url()},{label:`Calendario`}]}),r[18]=M):M=r[18],r[19]===w?T=r[20]:(T=(0,l.jsx)(a,{calendarioId:w}),r[19]=w,r[20]=T),k=`cal-section`;let S;r[21]!==b||r[22]!==m?(S=(0,l.jsx)(`button`,{className:`cal-nav-btn`,onClick:()=>b===1?g(m-1,12):g(m,b-1),children:`‹`}),r[21]=b,r[22]=m,r[23]=S):S=r[23];let C;r[24]===m?C=r[25]:(C=e=>g(m,+e.target.value),r[24]=m,r[25]=C);let N;r[26]===Symbol.for(`react.memo_cache_sentinel`)?(N=d.map(y),r[26]=N):N=r[26];let P;r[27]!==b||r[28]!==C?(P=(0,l.jsx)(`select`,{value:b,onChange:C,className:`cal-select`,children:N}),r[27]=b,r[28]=C,r[29]=P):P=r[29];let F;r[30]===b?F=r[31]:(F=e=>g(+e.target.value,b),r[30]=b,r[31]=F);let I;r[32]===c?I=r[33]:(I=c.map(v),r[32]=c,r[33]=I);let L;r[34]!==F||r[35]!==I||r[36]!==m?(L=(0,l.jsx)(`select`,{value:m,onChange:F,className:`cal-select`,children:I}),r[34]=F,r[35]=I,r[36]=m,r[37]=L):L=r[37];let R;r[38]!==P||r[39]!==L?(R=(0,l.jsxs)(`div`,{className:`cal-nav-selects`,children:[P,L]}),r[38]=P,r[39]=L,r[40]=R):R=r[40];let z;r[41]!==b||r[42]!==m?(z=(0,l.jsx)(`button`,{className:`cal-nav-btn`,onClick:()=>b===12?g(m+1,1):g(m,b+1),children:`›`}),r[41]=b,r[42]=m,r[43]=z):z=r[43],r[44]!==S||r[45]!==R||r[46]!==z?(A=(0,l.jsxs)(`div`,{className:`cal-nav`,children:[S,R,z]}),r[44]=S,r[45]=R,r[46]=z,r[47]=A):A=r[47],E=`cal-grid`,r[48]===Symbol.for(`react.memo_cache_sentinel`)?(D=f.map(_),r[48]=D):D=r[48],O=e.map((e,t)=>{if(e===null)return(0,l.jsx)(`div`,{className:`cal-day-empty`},`e-${t}`);let n=`${m}-${String(b).padStart(2,`0`)}-${String(e).padStart(2,`0`)}`,r=x[n],i=s.getFullYear()===m&&s.getMonth()+1===b&&s.getDate()===e;if(r){let t=u[r.estado]?.bg??`#FF8989`;return r.url?(0,l.jsx)(`a`,{href:r.url,className:`cal-day cal-day-event${i?` cal-day-today`:``}`,style:{backgroundColor:t},children:(0,l.jsx)(`span`,{children:e})},e):(0,l.jsx)(`div`,{className:`cal-day cal-day-event cal-day-no-link${i?` cal-day-today`:``}`,style:{backgroundColor:t},children:(0,l.jsx)(`span`,{children:e})},e)}return(0,l.jsx)(`div`,{className:`cal-day${i?` cal-day-today`:``}`,children:(0,l.jsx)(`span`,{children:e})},e)}),r[4]=w,r[5]=x,r[6]=b,r[7]=m,r[8]=T,r[9]=E,r[10]=D,r[11]=O,r[12]=k,r[13]=A,r[14]=j,r[15]=M}else T=r[8],E=r[9],D=r[10],O=r[11],k=r[12],A=r[13],j=r[14],M=r[15];let N;r[49]!==E||r[50]!==D||r[51]!==O?(N=(0,l.jsxs)(`div`,{className:E,children:[D,O]}),r[49]=E,r[50]=D,r[51]=O,r[52]=N):N=r[52];let P;r[53]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,l.jsx)(`div`,{className:`cal-legend`,children:Object.entries(u).filter(g).map(h)}),r[53]=P):P=r[53];let F;r[54]!==N||r[55]!==k||r[56]!==A?(F=(0,l.jsxs)(`section`,{className:k,children:[A,N,P]}),r[54]=N,r[55]=k,r[56]=A,r[57]=F):F=r[57];let I;return r[58]!==T||r[59]!==F||r[60]!==j||r[61]!==M?(I=(0,l.jsxs)(l.Fragment,{children:[j,M,T,F]}),r[58]=T,r[59]=F,r[60]=j,r[61]=M,r[62]=I):I=r[62],I}function h(e){let[t,n]=e,{bg:r,label:i}=n;return(0,l.jsxs)(`div`,{className:`cal-legend-item`,children:[(0,l.jsx)(`span`,{className:`cal-legend-dot`,style:{backgroundColor:r}}),(0,l.jsx)(`span`,{children:i})]},t)}function g(e){let[t]=e;return t!==`resultado-parcial-color`}function _(e){return(0,l.jsx)(`div`,{className:`cal-day-header`,children:e},e)}function v(e){return(0,l.jsx)(`option`,{value:e,children:e},e)}function y(e,t){return(0,l.jsx)(`option`,{value:t+1,children:e},t+1)}m.layout=e=>(0,l.jsx)(s,{children:e});export{m as default};

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.