1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{1105:(e,l,t)=>{"use strict";t.d(l,{default:()=>y});var n=t(5155),i=t(2115),r=t(9495);let s={listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",span:"span"},o={[s.listItem]:"listItem",[s.oListItem]:"oListItem",[s.list]:"list",[s.oList]:"oList"},a=e=>(l,t,n,i,r)=>{let s=e[o[l]||l];if(s)return s({type:l,node:t,text:n,children:i,key:r})},d=()=>(++d.i).toString();d.i=0;let u=(e,l=[])=>({key:d(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:l}),c=e=>u({type:s.span,text:e,spans:[]}),h=e=>{if("text"in e)return u(e,m(e.spans,e));if("items"in e){let l=[];for(let t=0;t<e.items.length;t++)l.push(h(e.items[t]));return u(e,l)}return u(e)},m=(e,l,t)=>{if(!e.length)return[c(l.text)];let n=e.slice(0);n.sort((e,l)=>e.start-l.start||l.end-e.end);let i=[];for(let e=0;e<n.length;e++){let r=n[e],s=t&&t.start||0,o=r.start-s,a=r.end-s,d=l.text.slice(o,a),h=[];for(let l=e;l<n.length;l++){let e=n[l];e!==r&&(e.start>=r.start&&e.end<=r.end?(h.push(e),n.splice(l,1),l--):e.start<r.end&&e.end>r.start&&(h.push({...e,end:r.end}),n[l]={...e,start:r.end}))}0===e&&o>0&&i.push(c(l.text.slice(0,o)));let p={...r,text:d};i.push(u(p,m(h,{...l,text:d},r))),a<l.text.length&&i.push(c(l.text.slice(a,n[e+1]?n[e+1].start-s:void 0)))}return i},p=(e,l)=>{let t=[];for(let n=0;n<e.length;n++){let i=e[n],r=l(i.type,i.node,i.text,p(i.children,l),i.key);null!=r&&t.push(r)}return t},v={Any:"Any",Document:"Document",Media:"Media",Web:"Web"},x=(0,i.forwardRef)(function(e,l){let{field:t,document:i,linkResolver:s,internalComponent:o,externalComponent:a,children:d,...u}=e,{href:c,rel:h,...m}=((e,l={})=>{if(e&&("link_type"in e?(0,r.nf)(e):e)){let t="target"in e?e.target:void 0,n=((e,...l)=>{var t,n;let i;if(!e)return null;let r="link_type"in e?e:(t=e,{link_type:v.Document,id:t.id,uid:t.uid||void 0,type:t.type,tags:t.tags,lang:t.lang,url:null==t.url?void 0:t.url,slug:null==(n=t.slugs)?void 0:n[0],...t.data&&Object.keys(t.data).length>0?{data:t.data}:{}}),[s]=l;switch(i="function"==typeof s||null==s?{linkResolver:s}:{...s},r.link_type){case v.Media:case v.Web:return"url"in r?r.url:null;case v.Document:if("id"in r&&i.linkResolver){let e=i.linkResolver(r);if(null!=e)return e}if("url"in r&&r.url)return r.url;return null;case v.Any:default:return null}})(e,l.linkResolver),i=null==n?void 0:n,r="string"==typeof i&&!(e=>{let l=/^(\/(?!\/)|#)/.test(e),t=!l&&!/^https?:\/\//.test(e);return l&&!t})(i),s=l.rel?l.rel({href:i,isExternal:r,target:t}):r?"noreferrer":void 0;return{href:i,target:t,rel:null==s?void 0:s}}return{}})(t??i,{linkResolver:s,rel:"function"==typeof u.rel?u.rel:void 0}),p=h;"rel"in u&&"function"!=typeof u.rel&&(p=u.rel);let x=("href"in u?u.href:c)||"",g=o||"a",f=x&&!function(e){let l=/^(\/(?!\/)|#)/.test(e),t=!l&&!/^https?:\/\//.test(e);return l&&!t}(x)?a||"a":g;return(0,n.jsx)(f,{ref:l,...m,...u,href:x,rel:p,children:"children"in e?d:null==t?void 0:t.text})}),g=e=>{if("direction"in e&&"rtl"===e.direction)return"rtl"},f=e=>{let l,{linkResolver:t,field:o,fallback:u,components:c,externalLinkComponent:m,internalLinkComponent:v,...f}=e;if(!r.YD(o))return null!=u?(0,n.jsx)(n.Fragment,{children:u}):null;let k=((...e)=>(...l)=>{for(let t=0;t<e.length;t++){let n=e[t];if(n){let e=n(...l);if(null!=e)return e}}})("object"==typeof c?a(c):c,(e=>a({heading1:({node:e,children:l,key:t})=>(0,n.jsx)("h1",{dir:g(e),children:l},t),heading2:({node:e,children:l,key:t})=>(0,n.jsx)("h2",{dir:g(e),children:l},t),heading3:({node:e,children:l,key:t})=>(0,n.jsx)("h3",{dir:g(e),children:l},t),heading4:({node:e,children:l,key:t})=>(0,n.jsx)("h4",{dir:g(e),children:l},t),heading5:({node:e,children:l,key:t})=>(0,n.jsx)("h5",{dir:g(e),children:l},t),heading6:({node:e,children:l,key:t})=>(0,n.jsx)("h6",{dir:g(e),children:l},t),paragraph:({node:e,children:l,key:t})=>(0,n.jsx)("p",{dir:g(e),children:l},t),preformatted:({node:e,key:l})=>(0,n.jsx)("pre",{children:e.text},l),strong:({children:e,key:l})=>(0,n.jsx)("strong",{children:e},l),em:({children:e,key:l})=>(0,n.jsx)("em",{children:e},l),listItem:({node:e,children:l,key:t})=>(0,n.jsx)("li",{dir:g(e),children:l},t),oListItem:({node:e,children:l,key:t})=>(0,n.jsx)("li",{dir:g(e),children:l},t),list:({children:e,key:l})=>(0,n.jsx)("ul",{children:e},l),oList:({children:e,key:l})=>(0,n.jsx)("ol",{children:e},l),image:({node:l,key:t})=>{let i=(0,n.jsx)("img",{src:l.url,alt:l.alt??void 0,"data-copyright":l.copyright?l.copyright:void 0});return(0,n.jsx)("p",{className:"block-img",children:l.linkTo?(0,n.jsx)(x,{linkResolver:e.linkResolver,internalComponent:e.internalLinkComponent,externalComponent:e.externalLinkComponent,field:l.linkTo,children:i}):i},t)}
1,embed:({node:e,key:l})=>(0,n.jsx)("div",{"data-oembed":e.oembed.embed_url,"data-oembed-type":e.oembed.type,"data-oembed-provider":e.oembed.provider_name,dangerouslySetInnerHTML:{__html:e.oembed.html??""}},l),hyperlink:({node:l,children:t,key:i})=>(0,n.jsx)(x,{field:l.data,linkResolver:e.linkResolver,internalComponent:e.internalLinkComponent,externalComponent:e.externalLinkComponent,children:t},i),label:({node:e,children:l,key:t})=>(0,n.jsx)("span",{className:e.data.label,children:l},t),span:({text:e,key:l})=>{let t=[],r=0;for(let l of e.split("\n"))r>0&&t.push((0,n.jsx)("br",{},`${r}__break`)),t.push((0,n.jsx)(i.Fragment,{children:l},`${r}__line`)),r++;return(0,n.jsx)(i.Fragment,{children:t},l)}}))({linkResolver:t,internalLinkComponent:v,externalLinkComponent:m})),b=(l=(e,l,t,n,r)=>{let s=k(e,l,t,n,r);return(0,i.isValidElement)(s)&&null==s.key?(0,i.cloneElement)(s,{key:r}):s},p((e=>{let l=(e=>{let l=e.slice(0);for(let e=0;e<l.length;e++){let t=l[e];if(t.type===s.listItem||t.type===s.oListItem){let n=[t];for(;l[e+1]&&l[e+1].type===t.type;)n.push(l[e+1]),l.splice(e,1);t.type===s.listItem?l[e]={type:s.list,items:n}:l[e]={type:s.oList,items:n}}}return l})(e),t=[];for(let e=0;e<l.length;e++)t.push(h(l[e]));return{key:d(),children:t}})(o).children,l));return b?(0,n.jsx)(n.Fragment,{children:b}):null!=u?(0,n.jsx)(n.Fragment,{children:u}):null};var k=t(439),b=t(5604);let j=e=>{var l,t,i,r,s,o,a,d,u,c,h,m,p,v,x,g,b,j,y,_,N,L,w;let{event:I}=e;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"whitespace-pre-line font-bold text-2xl lg:text-4xl",children:null==I?void 0:I.duration_time}),(0,n.jsxs)("td",{className:"space-y-2",children:[(null==I?void 0:I.event_title)&&(0,n.jsx)("div",{className:"whitespace-pre-line font-bold text-2xl lg:text-4xl",children:null==I?void 0:I.event_title}),(null==I?void 0:I.location)&&(0,n.jsx)("div",{className:"block lg:hidden text-sm whitespace-pre-line font-bold",children:null==I?void 0:I.location}),(null==I||null==(l=I.event_tag)?void 0:l.length)>0&&(0,n.jsx)("div",{className:"flex gap-4 lg:gap-1",children:null==I||null==(t=I.event_tag)?void 0:t.map((e,l)=>{if(null==e?void 0:e.text)return(0,n.jsx)("div",{className:"text-xs lg:text-sm bg-black text-white px-1 py-0.5",children:null==e?void 0:e.text},l)})}),(null==I||null==(i=I.description)?void 0:i.length)>0&&(0,n.jsx)("div",{className:"text-xs lg:text-sm pb-2",children:(0,n.jsx)(f,{field:null==I?void 0:I.description})}),(null==I||null==(r=I.registration_link)?void 0:r.url)&&(null==I||null==(s=I.registration_link)?void 0:s.text)&&(0,n.jsx)("div",{className:"block lg:hidden",children:(0,n.jsx)(k.default,{href:null==I||null==(o=I.registration_link)?void 0:o.url,target:null==I||null==(a=I.registration_link)?void 0:a.target,color:"black",icon:!0,children:null==I||null==(d=I.registration_link)?void 0:d.text})}),(null==I||null==(u=I.program_link)?void 0:u.url)&&(null==I||null==(c=I.program_link)?void 0:c.text)&&(0,n.jsx)("div",{className:"block lg:hidden",children:(0,n.jsx)(k.default,{href:null==I||null==(h=I.program_link)?void 0:h.url,target:null==I||null==(m=I.program_link)?void 0:m.target,color:"black",icon:!0,children:null==I||null==(p=I.program_link)?void 0:p.text})})]}),(0,n.jsxs)("td",{className:"space-y-2 hidden lg:block",children:[(null==I?void 0:I.location)&&(0,n.jsx)("div",{className:"text-sm whitespace-pre-line font-bold",children:null==I?void 0:I.location}),(null==I||null==(v=I.registration_link)?void 0:v.url)&&(null==I||null==(x=I.registration_link)?void 0:x.text)&&(0,n.jsx)(k.default,{href:null==I||null==(g=I.registration_link)?void 0:g.url,target:null==I||null==(b=I.registration_link)?void 0:b.target,color:"black",icon:!0,children:null==I||null==(j=I.registration_link)?void 0:j.text}),(null==I||null==(y=I.program_link)?void 0:y.url)&&(null==I||null==(_=I.program_link)?void 0:_.text)&&(0,n.jsx)(k.default,{href:null==I||null==(N=I.program_link)?void 0:N.url,target:null==I||null==(L=I.program_link)?void 0:L.target,color:"black",icon:!0,children:null==I||null==(w=I.program_link)?void 0:w.text})]})]})},y=e=>{let{label:l,data:t=[]}=e,r=(0,b.useLocale)(),s=(0,b.useTranslations)(),[o,a]=(0,i.useState)([]);return(0,i.useEffect)(()=>{a(null==t?void 0:t.map((e,l)=>{var t;if(null==e||null==(t=e.program_date)?void 0:t.data)return 0===l}))},[]),(0,n.jsxs)("div",{className:"space-y-4",children:[l&&(0,n.jsx)("p",{className:"uppercase font-bold text-sm",children:l}),(0,n.jsx)("div",{className:"border-y border-black divide-y divide-black",children:t.map((e,l)=>{var d,u,c,h,m,p,v,x,g,f;if(null==e||null==(u=e.program_date)||null==(d=u.data)?void 0:d.date)return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("button",{className:"block w-full text-start py-4 text-4xl lg:text-8xl font-bold hover:opacity-75 transition-opacity first-letter:capitalize",onClick:()=>{var e;return a(Array.from({length:null==t||null==(e=t.map(e=>{var l;return null==e||null==(l=e.program_date)?void 0:l.data}))?void 0:e.length},(e,t)=>l===t&&!o[t]))},children:new Intl.DateTimeFormat(r,{day:"numeric",weekday:"long",month:"long"}).format(new Date(null==e||null==(h=e.program_date)||null==(c=h.data)?void 0:c.date))}),o[l]&&(null==e||null==(v=e.program_date)||null==(p=v.data)||null==(m
1=p.events)?void 0:m.length)>0&&(0,n.jsxs)("table",{className:"w-full",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"border-b border-black",children:[(0,n.jsx)("th",{children:s("Orario")}),(0,n.jsx)("th",{children:s("Eventi")}),(0,n.jsx)("th",{className:"hidden lg:block",children:s("Dove")})]})}),(0,n.jsx)("tbody",{className:"divide-y divide-stone-300",children:null==e||null==(f=e.program_date)||null==(g=f.data)||null==(x=g.events)?void 0:x.map((e,l)=>(0,n.jsx)(j,{event:e},l))})]})]},l)})})]})}},6159:(e,l,t)=>{Promise.resolve().then(t.t.bind(t,7903,23)),Promise.resolve().then(t.t.bind(t,6868,23)),Promise.resolve().then(t.bind(t,3e3)),Promise.resolve().then(t.t.bind(t,2619,23)),Promise.resolve().then(t.t.bind(t,1402,23)),Promise.resolve().then(t.bind(t,2598)),Promise.resolve().then(t.bind(t,3787)),Promise.resolve().then(t.bind(t,439)),Promise.resolve().then(t.bind(t,1105)),Promise.resolve().then(t.bind(t,8486)),Promise.resolve().then(t.bind(t,2947))}},e=>{e.O(0,[176,589,964,10,441,255,358],()=>e(e.s=6159)),_N_E=e.O()}]);
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.