PageSourceSearch

https://cm-tondela.pt/_next/static/chunks/1844.9058817f6557f0ab.js

js cm-tondela.pt collected 2026-10-02 07:02:56 UTC 7,030 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1844],{41844:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var a=n(57437),s=n(43949),i=n(3256),c=n(81099),r=n(2265),l=n(19764),o=n(73377);n(7354),n(86968),n(76889);var d=n(34079),h=n(14008),m=n(63366),u=n(31869),v=n(16629);function g(e){let{lang:t="pt",events:n}=e,{t:l}=(0,s.$G)(),o=(0,i.W)(),d=(0,m.G)(),[h,g]=(0,r.useState)("agenda"),x=(0,r.useRef)(null),{animationDone:j}=(0,v.q)(x);return(0,r.useEffect)(()=>{"pt"===t?g("agenda"):g("".concat(t,"/").concat(u.ns[t]))},[t]),(0,a.jsxs)("div",{className:"home-events container ".concat(j?"visible":"not-visible"),id:"home-events",ref:x,children:[(0,a.jsxs)("div",{className:o?"home-events__top container ".concat(j?"visible":"not-visible"):"home-events__top ".concat(j?"visible":"not-visible"),id:"home-events__top",children:[(0,a.jsx)("div",{className:"home-events__title-container",children:(0,a.jsx)("div",{className:"title-text",children:l("home:event_single")})}),(0,a.jsx)("div",{className:"home-events__btn-see-all-container",children:(0,a.jsx)(c.J3,{link:{url:"/".concat(h),external:!1},linkClass:"btn-see-all",title:l("home:event_plural"),children:l("home:event_all")})})]}),o&&!d&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(f,{events:n,lang:t})}),(!o||o&&d)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"home-events__desktop-container ".concat(j?"visible":"not-visible"),id:"home-events__desktop-container",children:(0,a.jsx)(p,{events:n,lang:t})})})]})}let p=e=>{let{events:t,lang:n="pt"}=e,{t:i}=(0,s.$G)(),r=(0,m.G)();return(0,a.jsx)(a.Fragment,{children:(r?t.slice(0,2):t).map((e,t)=>{var s;return(0,a.jsx)("div",{className:"card-container",children:(0,a.jsxs)(c.J3,{link:e.link,title:e.title,children:[(0,a.jsx)(c.iV,{src:e.image,title:null!==(s=e.title)&&void 0!==s?s:"Image "+t,imageClass:"card-image"}),(0,a.jsxs)("div",{className:"card-info",children:[e.title&&(0,a.jsx)("div",{className:"card-info__title-container",children:(0,a.jsx)("div",{className:"title-text",children:e.title})}),e.startDate&&(0,a.jsxs)("div",{className:"card-info__date-container",children:[(0,a.jsxs)("div",{className:"date-text",children:[(0,d.Z)({locale:(0,h.S)(n||"pt")},"dd - MMMM - yyyy",new Date(e.startDate)).replaceAll("-","".concat(i("home:of"))),e.endDate&&e.endDate!==e.startDate&&(0,a.jsx)("span",{children:" ".concat(i("home:to"))})]}),e.endDate&&e.startDate!==e.endDate&&(0,a.jsx)("div",{className:"date-text",children:(0,d.Z)({locale:(0,h.S)(n||"pt")},"dd - MMMM - yyyy",new Date(e.endDate)).replaceAll("-","".concat(i("home:of")))})]}),e.category&&(0,a.jsx)("div",{className:"card-info__category-container",children:(0,a.jsxs)("div",{className:"category",children:[(0,a.jsx)("div",{className:"category--info-container",children:(0,a.jsx)("span",{className:"category--info",children:e.category.title})}),void 0!==e.categoriesCount&&e.categoriesCount>0&&(0,a.jsx)("span",{className:"category--length-others",children:", +".concat(e.categoriesCount)})]})})]})]})},t)})})},f=e=>{let{events:t,lang:n="pt"}=e,[i,m]=(0,r.useState)(0),[u,v]=(0,r.useState)(""),{t:g}=(0,s.$G)();return(0,a.jsx)("div",{className:"generic-gallery",children:(0,a.jsx)(l.tq,{modules:[o.s5,o.tl,o.W_],navigation:!0,pagination:{type:"progressbar"},slidesPerView:1,speed:500,className:1===t.length?"generic-swiper no-arrows":"generic-swiper",onProgress:(e,t)=>v(("0"+(Math.floor(t*(i-1))+1)).slice(-2)),onSnapGridLengthChange:e=>m(e.snapGrid.length),onAfterInit:e=>v(("0"+(e.snapIndex+1)).slice(-2)),children:t.map((e,t)=>{var s;return(0,a.jsx)(l.o5,{children:(0,a.jsx)("div",{className:"card-container",children:(0,a.jsxs)(c.J3,{link:e.link,title:e.title,children:[(0,a.jsx)(c.iV,{src:e.image,title:null!==(s=e.title)&&void 0!==s?s:"Image "+t,imageClass:"card-image"}),(0,a.jsxs)("div",{className:"card-info",children:[(0,a.jsx)("div",{className:"card-info__title-container",children:(0,a.jsx)("div",{className:"title-text",children:e.title})}),e.startDate&&(0,a.jsxs)("div",{className:"date-container",children:[(0,a.jsxs)("div",{className:"date-text",children:[(0,d.Z)({locale:(0,h.S)(n||"pt")},"dd - MMMM - yyyy",new Date(e.startDate)).replaceAll("-","".concat(g("home:of"))),e.endDate&&(0,a.jsx)("span",{children:" ".concat(g("home:to"))})]}),e.endDate&&(0,a.jsx)("div",{className:"date-text",children:(0,d.Z)({locale:(0,h.S)(n||"pt")},"dd - MMMM - yyyy",new Date(e.endDate)).replaceAll("-","".concat(g("home:of")))})]}),e.category&&(0,a.jsx)("div",{className:"card-info__category-container",children:(0,a.jsxs)("div",{className:"category",children:[(0,a.jsx)("div",{className:"category--info-container",children:(0,a.jsx)("span",{className:"category--info",children:e.category.title})}),void 0!==e.categoriesCount&&e.categoriesCount>0&&(0,a.jsx)("span",{className:"category--length-others",children:", +".concat(e.categoriesCount)})]})})]})]})})},t)})})})}},31869:function(e,t,n){"use strict";n.d(t,{UC:function(){return r},fC:function(){return m},nB:function(){return h},ns:function(){return c}});var a=n(92722);let s={pt:"noticias",en:"news"},i={pt:"avisos",en:"warnings"},c={pt:"agenda",en:"events"},r={pt:"pesquisa",en:"search"},l={pt:"mapadosite",en:"sitemap"},o={pt:"reunioes",en:"meetings"},d={pt:"mapa",en:"map"};[...a.RI];let h=e=>({warnings:{path:"".concat(i[e]),langs:i},news:{path:"".concat(s[e]),langs:s},events:{path:"".concat(c[e]),langs:c},meetings:{path:"".concat(o[e]),langs:o,hideFromSitemap:!0},search:{path:"".concat(r[e]),langs:r},sitemap:{path:"".concat(l[e]),langs:l},common:{path:":id/:title",langs:null,hideFromSitemap:!0},map:{path:"".concat(d[e]),langs:d,hideFromSitemap:!0}}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.fc;return a.Hh&&e===a.fc?"/":"/".concat(e,"/")}},16629:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var a=n(2265);let s=e=>{let[t,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let t=()=>{if(e.current){let a=e.current.getBoundingClientRect().top,s=e.current.offsetHeight;a<window.innerHeight-s/2&&(setTimeout(()=>{n(!0)},500),window.removeEventListener("scroll",t))}};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]),{animationDone:t,componentStyle:{opacity:t?1:0,transition:"opacity 0.5s ease"}}}},3256:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var a=n(2265);let s=()=>{let[e,t]=(0,a.useState)(0),[n,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(window.innerWidth);let n=()=>{t(window.innerWidth)};return window.addEventListener("resize",n),e<992&&e>0?s(!0):s(!1),()=>{window.removeEventListener("resize",n)}},[e]),n}},63366:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var a=n(2265);let s=()=>{let[e,t]=(0,a.useState)(0),[n,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(window.innerWidth);let n=()=>{t(window.innerWidth)};return window.addEventListener("resize",n),e<992&&e>798?s(!0):s(!1),()=>{window.removeEventListener("resize",n)}},[e]),n}},86968:function(){},76889:function(){},7354:function(){}}]);

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.