1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3236],{81675:function(c,b,a){var d=a(85893),e=a(44105),f=a(11163),g=a(67294),h=a(12423),i=a(73398),j=a(25719);b.Z=function(a){var b,c=null==a?void 0:a.t,n=a.buttonName,o=a.styleClasses,p=a.items,k=(0,g.useState)(),q=k[0],r=k[1],l=(0,f.useRouter)(),m=function(a){a==c("all")?(r(a),l.push("".concat(l.pathname))):(r(null==a?void 0:a.name),l.push("".concat(null==l?void 0:l.pathname,"?").concat(c("category"),"=").concat(null==a?void 0:a.subCategorySlug)))};return(0,d.jsxs)(e.v,{as:"div",className:o,children:[(0,d.jsx)("div",{children:(null==l?void 0:null===(b=l.query)|| void 0===b?void 0:b[c("category")])?(0,d.jsxs)(e.v.Button,{className:"flex flex-row w-full justify-between items-center p-2 text-sm font-medium text-gray-700 focus:outline-none",children:[(0,d.jsx)("p",{children:q||n})," ",(0,d.jsx)(h.Z,{})]}):(0,d.jsxs)(e.v.Button,{className:"flex flex-row w-full justify-between items-center p-2 text-sm font-medium text-gray-700 focus:outline-none",children:[(0,d.jsx)("p",{children:c("all")})," ",(0,d.jsx)(h.Z,{})]})}),(0,d.jsx)(j.Z,{handleActive:m,t:c,children:(0,d.jsx)("div",{className:"",children:(0,i.z)(p,m)})})]})}},6326:function(c,b,a){var d=a(85893),e=a(67294),f=a(88116),g=a(30719),h=a(20141),i=a(60432),j=a(7371),k=a(93463);b.Z=function(a){var b=(0,e.useState)(""),l=b[0],n=b[1],c=null==a?void 0:a.list,o=a._handleLetterClick;(0,e.useEffect)(function(){l&&o(l)},[l]);var p=function(a){n(a.currentTarget.textContent)},q=(0,e.useMemo)(function(){var a=new Map;return null==c||c.forEach(function(b){var c=(0,j.Ro)(null==b?void 0:b.name)[0];a.has(c)||a.set(c.toUpperCase(),!0)}),a},[null==c?void 0:c.map(function(a){return null==a?void 0:a.name}).join("|")]),m=(0,h.o)();return(0,d.jsxs)("div",{className:"overflow-hidden swiper",children:[(0,d.jsx)("ul",{className:"hidden md:flex flex-wrap gap-3 mr-auto py-4 w-fit",children:i.Z$.map(function(a){var b=q.has(a.toUpperCase());return(0,d.jsx)("li",{className:"font-normal text-gray.200 text-sm order-last",children:(0,d.jsx)("button",{onClick:p,className:"".concat(!b&&"text-gray.100"),disabled:!b,children:a})},a)})}),(0,d.jsx)("div",{className:"md:hidden mt-5",children:(0,d.jsx)(k.Z,{slidesPerView:(0,j.Fm)(m),spaceBetween:14.5,modules:[f.tl],className:"mySwiper",children:i.Z$.map(function(a){var b=q.has(a.toUpperCase());return(0,d.jsx)(g.o5,{children:(0,d.jsx)("button",{onClick:p,className:"".concat(!b&&"text-gray.100"),disabled:!b,children:a})},a)})})})]})}},43236:function(f,b,a){var c=a(34051),g=a.n(c),h=a(85893),d=a(30381),i=a.n(d),j=a(15254),e=a(41664),k=a.n(e),l=a(11163),m=a(67294),n=a(41680),o=a(73398),p=a(81675),q=a(6326),r=a(11250),s=a(78516),t=a(60432),u=a(96652),v=a(7371),w=a(84339);function x(c,a){(null==a||a>c.length)&&(a=c.length);for(var b=0,d=new Array(a);b<a;b++)d[b]=c[b];return d}function y(c,d,e,f,g,h,i){try{var a=c[h](i),b=a.value}catch(j){e(j);return}a.done?d(b):Promise.resolve(b).then(f,g)}function z(a){return function(){var b=this,c=arguments;return new Promise(function(e,f){var g=a.apply(b,c);function d(a){y(g,e,f,d,h,"next",a)}function h(a){y(g,e,f,d,h,"throw",a)}d(void 0)})}}function A(a){return function(a){if(Array.isArray(a))return x(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||B(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(a,c){if(a){if("string"==typeof a)return x(a,c);var b=Object.prototype.toString.call(a).slice(8,-1);if("Object"===b&&a.constructor&&(b=a.constructor.name),"Map"===b||"Set"===b)return Array.from(b);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return x(a,c)}}b.Z=function(W){var B,C,D,E,e=W.props,a=(0,j.$G)("common").t,G=(0,m.useState)(),X=G[0],ad=G[1],H=(0,m.useState)(),I=H[0],ae=H[1],J=(0,m.useState)(),f=J[0],af=J[1],K=(0,m.useState)(),L=K[0],ag=K[1],M=(0,m.useState)(),Y=M[0],ah=M[1],N=(0,m.useState)(!1),x=N[0],ai=N[1],O=(0,m.useState)(),c=O[0],aj=O[1],P=(0,m.useState)(),y=P[0],ak=P[1],Q=(0,m.useState)(),Z=Q[0],al=Q[1],R=(0,m.useState)(),S=R[0],am=R[1],T=(0,m.useState)(),U=T[0],an=T[1],b=(0,l.useRouter)(),F=(0,w.getLocaleRoute)(null==b?void 0:b.pathname,null==b?void 0:b.locale,{noPrefix:!0}),d=null==e?void 0:null===(B=e.staticData)|| void 0===B?void 0:null===(C=B.seoData)|| void 0===C?void 0:C.seo,$=null==b?void 0:null===(D=b.query)|| void 0===D?void 0:D[a("category")],V=null==e?void 0:e.events,ao=V.eventsData,ap=V.total;(0,m.useEffect)(function(){ag(ao);var a,c=(a=z(g().mark(function a(){var c,d;return g().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,u.d.getActiveEvents(b.locale,100,200);case 3:d=a.sent,ag(A(null==e?void 0:null===(c=e.events)|| void 0===c?void 0:c.eventsData).concat(A(null==d?void 0:d.eventsData)));case 5:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)});ap&&ao.length>ap&&c()},[]),(0,m.useEffect)(function(){var a;(a=z(g().mark(function a(){var c;return g().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,u.d.getPastEvents(b.locale,$);case 2:ah(null==(c=a.sent)?void 0:c.eventsData);case 4:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})(),aa()},[$]),(0,m.useEffect)(function(){S==a("all")||S==a("startDate")?af(I):af(null==I?void 0:I.filter(function(a){return i()(null==a?void 0:a.startDate).format("DD/MM/YYYY")==S}))},[S]);var aq=function(){ae(X),af(X)},_=function(){var a=null==X?void 0:X.filter(function(b){var a;return(null==b?void 0:null===(a=b.menu_sub_category)|| void 0===a?void 0:a.subCategorySlug)==$});
1ae(a),af(a)};(0,m.useEffect)(function(){am(a("startDate"))},[x]);var aa=function(){$?_():aq(),ai(!1)},ar=function(){var b=[],a=x?Y:I;null==a||a.forEach(function(a){var c=i()(null==a?void 0:a.startDate).format("DD/MM/YYYY");c&&b.push(c)});var c=b.sort(function(a,b){var c=new Date(a.split("/").reverse().join("-")),d=new Date(b.split("/").reverse().join("-"));return d.getTime()-c.getTime()});al(Array.from(new Set(c)))};(0,m.useEffect)(function(){ar()},[f]);var ab,as=function(){var c,d,f,b=null==e?void 0:null===(c=e.staticData)|| void 0===c?void 0:c.menuData.find(function(b){return a("url.".concat(null==b?void 0:b.href))==F});ak(null==b?void 0:b.name);var g=null==b?void 0:null===(d=b.menu_sub_categories)|| void 0===d?void 0:d.map(function(a){return a}),h=null==b?void 0:null===(f=b.menu_sub_categories)|| void 0===f?void 0:f.find(function(a){return(null==a?void 0:a.subCategorySlug)==$});an(h),aj((0,v.iL)(g))},at=function(){an(a("all")),ae(X)};(0,m.useEffect)(function(){ad(L),as()},[null==L?void 0:L.length]),(0,m.useEffect)(function(){$?_():at(),$||aq()},[X]),(0,m.useEffect)(function(){ai(!1)},[b.query]),(0,m.useEffect)(function(){ar()},[I,f]);var ac=(ab=z(g().mark(function b(c){var d,e,f;return g().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:d=x?Y:X,U!=a("all")?af(e=null==d?void 0:d.filter(function(a){var b,d;return(null==a?void 0:null===(b=a.name)|| void 0===b?void 0:b.startsWith(c))&&(null==a?void 0:null===(d=a.menu_sub_category)|| void 0===d?void 0:d.subCategorySlug)==$})):af(f=null==d?void 0:d.filter(function(b){var a;return null==b?void 0:null===(a=b.name)|| void 0===a?void 0:a.startsWith(c)}));case 2:case"end":return b.stop()}},b)})),function(a){return ab.apply(this,arguments)});return(0,h.jsxs)("section",{className:"flex flex-col items-center justify-center h-fit py-8",children:[y&&(0,h.jsx)(r.Z,{title:y+" | "+(null==d?void 0:d.metaTitle),description:null==d?void 0:d.metaDescription,keywords:null==d?void 0:d.keywords}),(0,h.jsxs)("div",{className:"flex flex-col w-full max-w-7xl px-4 md:px-12",children:[(0,h.jsxs)("div",{className:"flex flex-row items-center ",children:[(0,h.jsx)(k(),{href:t.ft,children:(0,h.jsx)("a",{href:t.ft,className:"text-sm font-light text-gray.100 text-clip",children:a("home")})}),(0,h.jsx)("p",{className:"px-4.5 text-sm font-light text-gray.100",children:">"}),(0,h.jsx)(k(),{href:F,children:(0,h.jsx)("a",{href:F,className:"text-sm font-light text-gray.300",children:y})})]}),(0,h.jsx)("h1",{className:"font-semibold text-3xl my-7 md:my-14","aria-label":"Events",children:y}),!!(null==c?void 0:c.length)&&(0,h.jsx)(p.Z,{items:c,handleClick:_,styleClasses:"w-full border-b z-[30] md:hidden mt-4",buttonName:null==U?void 0:U.name,t:a}),(0,h.jsxs)("ul",{className:"w-full flex flex-wrap gap-2",children:[(0,h.jsx)("li",{children:(0,h.jsx)(k(),{href:F,passHref:!0,children:(0,h.jsx)("a",{className:"".concat((null==b?void 0:null===(E=b.query)|| void 0===E?void 0:E[a("category")])?"text-gray.200":"bg-black text-white thing-reverse"," border px-4 py-2 rounded-full text-sm thing hidden md:flex"),children:a("all")})})},a("all")),!!(null==c?void 0:c.length)&&(null==c?void 0:c.map(function(b){return(0,h.jsx)(k(),{href:"".concat(F,"?").concat(a("c
1ategory"),"=").concat(null==b?void 0:b.subCategorySlug),passHref:!0,children:(0,h.jsx)("a",{href:"".concat(F,"?").concat(a("category"),"=").concat(null==b?void 0:b.subCategorySlug),className:"".concat((null==b?void 0:b.subCategorySlug)==$?"bg-black text-white thing-reverse":"text-gray.200"," text-sm border px-4 py-2 rounded-full text-sm thing hidden md:flex"),children:null==b?void 0:b.name},null==b?void 0:b.id)},null==b?void 0:b.id)}))]}),(0,h.jsxs)("div",{className:"flex flex-col gap-4 justify-between md:flex-row ",children:[(0,h.jsx)(q.Z,{_handleLetterClick:ac,list:x?Y:I}),(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,h.jsx)("button",{className:"w-full py-3 md:w-48 font-normal border border-white.100 text-sm ease-in duration-200 px-6 hover:bg-black hover:text-white",onClick:x?aa:function(){af(Y),ae(Y),ai(!0)},children:x?a("currentEvents"):a("pastEvents")}),(0,h.jsx)(o.Z,{styleClasses:"relative order-first md:order-last inline-block text-left ml-auto mt-2 min-w-12 w-full md:w-fit border-b flex max-h-60",buttonName:a("startDate"),handleClick:function(a){am(a)},activeItem:S,items:Z,t:a})]})]}),(0,h.jsx)("ul",{className:" w-full list-none grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-8 mt-16",children:null==f?void 0:f.map(function(a,b){var c=null==a?void 0:a.id,d=null==a?void 0:a.slug;return(0,h.jsx)("li",{className:"flex flex-col gap-2",children:(0,h.jsx)(n.Z,{object:a,href:"".concat(F,"/").concat(d),priority:b<3})},c)})})]}),(0,h.jsx)("div",{className:"w-full",children:(0,h.jsx)(s.Z,{})})]})}}}])
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.