PageSourceSearch

https://ilmanifesto.it/_next/static/chunks/1_-v1fqc1koy3.js?dpl=20260923194548

js ilmanifesto.it collected 2026-09-24 08:36:13 UTC 29,757 bytes, 12 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c06c959b-7318-6fb6-e3f8-3db89cbcbcee")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,949020,e=>{e.q("/_next/static/media/logo-small.3k6vmfwq28_7c.svg")},494205,e=>{"use strict";var t=e.i(408536),i=e.i(291967),l=e.i(359687),r=e.i(975946),n=e.i(736542),s=e.i(221977),a=e.i(934093),o=e.i(241687),c=e.i(871598),d=e.i(854401),u="Collapsible",[h,f]=(0,l.createContextScope)(u),[m,p]=h(u),x=t.forwardRef((e,i)=>{let{__scopeCollapsible:l,open:n,defaultOpen:s,disabled:o,onOpenChange:h,...f}=e,[p,x]=(0,r.useControllableState)({prop:n,defaultProp:s??!1,onChange:h,caller:u});return(0,d.jsx)(m,{scope:l,disabled:o,contentId:(0,c.useId)(),open:p,onOpenToggle:t.useCallback(()=>x(e=>!e),[x]),children:(0,d.jsx)(a.Primitive.div,{"data-state":N(p),"data-disabled":o?"":void 0,...f,ref:i})})});x.displayName=u;var g="CollapsibleTrigger",b=t.forwardRef((e,t)=>{let{__scopeCollapsible:l,...r}=e,n=p(g,l);return(0,d.jsx)(a.Primitive.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":N(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:t,onClick:(0,i.composeEventHandlers)(e.onClick,n.onOpenToggle)})});b.displayName=g;var v="CollapsibleContent",y=t.forwardRef((e,t)=>{let{forceMount:i,...l}=e,r=p(v,e.__scopeCollapsible);return(0,d.jsx)(o.Presence,{present:i||r.open,children:e=>{let{present:i}=e;return(0,d.jsx)(j,{...l,ref:t,present:i})}})});y.displayName=v;var j=t.forwardRef((e,i)=>{let{__scopeCollapsible:l,present:r,children:o,...c}=e,u=p(v,l),[h,f]=t.useState(r),m=t.useRef(null),x=(0,s.useComposedRefs)(i,m),g=t.useRef(0),b=g.current,y=t.useRef(0),j=y.current,C=u.open||h,k=t.useRef(C),w=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,n.useLayoutEffect)(()=>{let e=m.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,k.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),f(r)}},[u.open,r]),(0,d.jsx)(a.Primitive.div,{"data-state":N(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...c,ref:x,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:C&&o})});function N(e){return e?"open":"closed"}e.s(["Collapsible",0,x,"CollapsibleContent",0,y,"CollapsibleTrigger",0,b,"Content",0,y,"Root",0,x,"Trigger",0,b,"createCollapsibleScope",0,f])},886793,e=>{"use strict";let t=(0,e.i(89718).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},620914,e=>{"use strict";var t=e.i(762199);e.s(["ChevronDown",()=>t.default])},692290,e=>{"use strict";var t=e.i(886793);e.s(["Search",()=>t.default])},105054,e=>{"use strict";var t=e.i(854401),i=e.i(34522),l=e.i(494205),l=l;e.s(["Collapsible",0,function(e){let r,n,s=(0,i.c)(4);return s[0]!==e?({...r}=e,s[0]=e,s[1]=r):r=s[1],s[2]!==r?(n=(0,t.jsx)(l.Root,{"data-slot":"collapsible",...r}),s[2]=r,s[3]=n):n=s[3],n},"CollapsibleContent",0,function(e){let r,n,s=(0,i.c)(4);return s[0]!==e?({...r}=e,s[0]=e,s[1]=r):r=s[1],s[2]!==r?(n=(0,t.jsx)(l.CollapsibleContent,{"data-slot":"collapsible-content",...r}),s[2]=r,s[3]=n):n=s[3],n},"CollapsibleTrigger",0,function(e){let r,n,s=(0,i.c)(4);return s[0]!==e?({...r}=e,s[0]=e,s[1]=r):r=s[1],s[2]!==r?(n=(0,t.jsx)(l.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...r}),s[2]=r,s[3]=n):n=s[3],n}],105054)},495785,e=>{"use strict";var t=e.i(854401),i=e.i(34522),l=e.i(627144),r=e.i(992282);let n=(0,e.i(89718).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var s=e.i(741696),a=e.i(568002),o=e.i(579629),c=e.i(408536);let d={src:e.i(949020).default,width:32,height:26,blurWidth:0,blurHeight:0};var u=e.i(462600);function h(e){let l,r,n,s,a=(0,i.c)(10),{menu:c,title:d,onClick:h}=e;return a[0]!==d?(l=(0,t.jsx)("h3",{className:"overline-3 pb-2 font-bold text-gray-400",children:d}),a[0]=d,a[1]=l):l=a[1],a[2]!==(null==c?void 0:c.items)||a[3]!==h?(r=null==c?void 0:c.items.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(o.default,{prefetch:u.LINK_PREFETCH,href:e.url||"#",onClick:h,className:"block py-2 text-base text-gray-500 hover:text-gray-600",children:e.title})},e.id)),a[2]=null==c?void 0:c.items,a[3]=h,a[4]=r):r=a[4],a[5]!==r?(n=(0,t.jsx)("ul",{children:r}
2),a[5]=r,a[6]=n):n=a[6],a[7]!==l||a[8]!==n?(s=(0,t.jsxs)("div",{className:"mx-6 border-b border-gray-300 py-6 last-of-type:border-0 last-of-type:pb-0",children:[l,n]}),a[7]=l,a[8]=n,a[9]=s):s=a[9],s}function f(e){let l,r,n=(0,i.c)(5),{menu:s,onClick:a}=e;return n[0]!==(null==s?void 0:s.items)||n[1]!==a?(l=null==s?void 0:s.items.map(e=>(0,t.jsx)(o.default,{prefetch:u.LINK_PREFETCH,href:e.url||"#",onClick:a,children:e.title},e.id)),n[0]=null==s?void 0:s.items,n[1]=a,n[2]=l):l=n[2],n[3]!==l?(r=(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 border-b border-gray-300 p-6 lg:hidden",children:l}),n[3]=l,n[4]=r):r=n[4],r}var m=e.i(692290),p=e.i(333305),x=e.i(984710);function g(e){let r,n,s,a,o,c,d,u,h=(0,i.c)(18),{placeholder:f,onSearch:g}=e,b=(0,p.useRouter)();h[0]===Symbol.for("react.memo_cache_sentinel")?(r={defaultValues:{search:""}},h[0]=r):r=h[0];let{register:v,handleSubmit:y}=(0,x.useForm)(r);h[1]!==g||h[2]!==b?(n=e=>{let{search:t}=e;t&&(null==g||g(t),b.push(`/ricerca?query=${t}`))},h[1]=g,h[2]=b,h[3]=n):n=h[3],h[4]!==y||h[5]!==n?(s=y(n),h[4]=y,h[5]=n,h[6]=s):s=h[6];let j=s;return h[7]!==v?(a=v("search"),h[7]=v,h[8]=a):a=h[8],h[9]!==f||h[10]!==a?(o=(0,t.jsx)("input",{className:"body-ns-1 block w-full rounded-xs border-0 px-4 py-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-red-500",type:"text",...a,placeholder:f}),h[9]=f,h[10]=a,h[11]=o):o=h[11],h[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:(0,t.jsx)(l.Button,{type:"submit",variant:"ghost",size:"icon",className:"text-gray-500 hover:bg-white",children:(0,t.jsx)(m.Search,{className:"size-5","aria-hidden":"true"})})}),h[12]=c):c=h[12],h[13]!==o?(d=(0,t.jsxs)("div",{className:"relative rounded-xs text-gray-500",children:[o,c]}),h[13]=o,h[14]=d):d=h[14],h[15]!==j||h[16]!==d?(u=(0,t.jsx)("div",{className:"border-b border-gray-300 p-6",children:(0,t.jsx)("form",{id:"search-form",onSubmit:j,children:d})}),h[15]=j,h[16]=d,h[17]=u):u=h[17],u}var b=e.i(105054),v=e.i(620914);function y(e){let l,r,n,s,a,d,h,f=(0,i.c)(18),{title:m,items:p,onClick:x}=e,[g,y]=(0,c.useState)(!1),j=g?"open":"closed";f[0]!==m?(l=(0,t.jsx)("span",{className:"inline-flex items-start truncate text-left",children:m}),f[0]=m,f[1]=l):l=f[1];let N=g?"open":"closed";return f[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(v.ChevronDown,{className:"size-6 shrink-0 transition-transform duration-200"}),f[2]=r):r=f[2],f[3]!==N?(n=(0,t.jsx)("span",{"data-state":N,className:"inline-flex size-9 items-center justify-center rounded-md bg-gray-100 text-red-500 transition-all group-hover:bg-gray-300 data-[state='open']:bg-gray-300 [&[data-state='open']>svg]:rotate-180",children:r}),f[3]=N,f[4]=n):n=f[4],f[5]!==j||f[6]!==l||f[7]!==n?(s=(0,t.jsx)(b.CollapsibleTrigger,{className:"h-12 w-full font-bold text-gray-500",children:(0,t.jsxs)("div",{"data-state":j,className:"mx-6 flex items-center justify-between gap-x-2 border-gray-300 py-1.5 data-[state='closed']:border-b",children:[l,n]})}),f[5]=j,f[6]=l,f[7]=n,f[8]=s):s=f[8],f[9]!==p||f[10]!==x?(a=null==p?void 0:p.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(o.default,{prefetch:u.LINK_PREFETCH,href:e.url||"#",onClick:x,className:"block py-3 text-gray-500 hover:text-gray-600",children:e.title}),e.children?(0,t.jsx)("ul",{children:e.children.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(o.default,{prefetch:u.LINK_PREFETCH,href:e.url||"#",onClick:x,className:"block py-3 pl-3 text-gray-500 hover:text-gray-600",children:e.title})},e.id))},`sub-${e.id}`):null]},e.id)),f[9]=p,f[10]=x,f[11]=a):a=f[11],f[12]!==a?(d=(0,t.jsx)(b.CollapsibleContent,{className:"data-[state='open']:border-y data-[state='open']:border-gray-300 data-[state='open']:bg-gray-100",children:(0,t.jsx)("ul",{className:"px-6 py-2",children:a})}),f[12]=a,f[13]=d):d=f[13],f[14]!==g||f[15]!==s||f[16]!==d?(h=(0,t.jsxs)(b.Collapsible,{open:g,onOpenChange:y,className:"group",children:[s,d]}),f[14]=g,f[15]=s,f[16]=d,f[17]=h):h=f[17],h}function j(e){let l,r,n,s=(0,i.c)(8),{menu:a,title:o,onClick:c}=e;return s[0]!==o?(l=(0,t.jsx)("h3",{className:"mb-2 px-6 text-xs font-bold uppercase leading-supertight tracking-wide text-gray-400",children:o}),s[0]=o,s[1]=l):l=s[1],s[2]!==(null==a?void 0:a.items)||s[3]!==c?(r=null==a?void 0:a.items.map(e=>(0,t.jsx)(y,{title:e.title??"",items:e.children,onClick:c},e.id)),s[2]=null==a?void 0:a.items,s[3]=c,s[4]=r):r=s[4],s[5]!==l||s[6]!==r?(n=(0,t.jsxs)("div",{className:"w-full border-b border-gray-300 py-6",children:[l,r]}),s[5]=l,s[6]=r,s[7]=n):n=s[7],n}function N(e){let l,r,n,s,a=(0,i.c)(10),{lastUpdate:c,menu:d,onClick:h}=e;return a[0]!==c?(l=(0,t.jsx)("div",{className:"text-sm leading-snug text-gray-400",children:c}),a[0]=c,a[1]=l):l=a[1],a[2]!==(null==d?void 0:d.items)||a[3]!==h?(r=null==d?void 0:d.items.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(o.default,{prefetch:u.LINK_PREFETCH,href:e.url||"#",onClick:h,className:"block pt-4 text-base text-gray-500 hover:text-gray-600",children:e.title})},e.id)),a[2]=null==d?void 0:d.items,a[3]=h,a[4]=r):r=a[4],a[5]!==r?(n=(0,t.jsx)("ul",{children:r}
2),a[5]=r,a[6]=n):n=a[6],a[7]!==l||a[8]!==n?(s=(0,t.jsxs)("div",{className:"mx-6 block border-b border-gray-300 py-6 lg:hidden",children:[l,n]}),a[7]=l,a[8]=n,a[9]=s):s=a[9],s}function C(e){let m,p,x,b,v,y,C,k,w,P,_,S,E,R,L,I,T,M=(0,i.c)(38),{menu:z,isSignedIn:H,sidebarButtonLabel:B,signInButtonLabel:F,subscribeButtonLabel:$,searchInputPlaceholder:D,sectionMenuTitle:q,infoMenuTitle:K,lastUpdate:A}=e,[O,Q]=(0,c.useState)(!1);M[0]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(n,{className:"h-6 w-6 lg:mr-1.5"}),M[0]=m):m=M[0],M[1]!==B?(p=(0,t.jsx)(r.SheetTrigger,{asChild:!0,children:(0,t.jsxs)(l.Button,{className:"font-normal no-underline",variant:"secondary-link",size:"compact",children:[m,(0,t.jsx)("span",{className:"hidden lg:inline",children:B})]})}),M[1]=B,M[2]=p):p=M[2],M[3]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)("div",{className:"flex size-20 shrink-0 items-center justify-center bg-white",children:(0,t.jsx)(a.default,{src:d,alt:"il manifesto"})}),M[3]=x):x=M[3],M[4]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsxs)("div",{className:"sticky top-0 z-10 box-content flex h-20 items-center justify-between border-b border-gray-300 bg-gray-100",children:[x,(0,t.jsx)("div",{className:"m-6 flex size-8 items-center justify-center",children:(0,t.jsx)(r.SheetClose,{className:"text-gray-500 hover:bg-gray-100",children:(0,t.jsx)(s.X,{className:"size-7","aria-hidden":"true"})})})]}),M[4]=b):b=M[4],M[5]!==H||M[6]!==F||M[7]!==$?(v=H?null:(0,t.jsx)("div",{className:"block lg:hidden",children:(0,t.jsx)("div",{className:"flex items-center justify-start",children:(0,t.jsxs)("div",{className:"flex w-full items-center gap-3 border-b border-gray-300 p-6",children:[(0,t.jsx)(l.Button,{asChild:!0,children:(0,t.jsx)(o.default,{prefetch:u.LINK_PREFETCH,href:"/abbonamenti",onClick:()=>{Q(!1)},children:$})}),(0,t.jsx)(l.Button,{variant:"outline",asChild:!0,children:(0,t.jsx)(o.default,{href:"/accesso",onClick:()=>{Q(!1)},children:F})})]})})}),M[5]=H,M[6]=F,M[7]=$,M[8]=v):v=M[8];let U=null==z?void 0:z.primaryMenu;M[9]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{Q(!1)},M[9]=y):y=M[9],M[10]!==U?(C=(0,t.jsx)(f,{menu:U,onClick:y}),M[10]=U,M[11]=C):C=M[11],M[12]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{Q(!1)},M[12]=k):k=M[12],M[13]!==D?(w=(0,t.jsx)(g,{placeholder:D,onSearch:k}),M[13]=D,M[14]=w):w=M[14];let X=null==z?void 0:z.sectionMenu;M[15]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{Q(!1)},M[15]=P):P=M[15],M[16]!==q||M[17]!==X?(_=(0,t.jsx)(j,{menu:X,title:q,onClick:P}),M[16]=q,M[17]=X,M[18]=_):_=M[18];let V=null==z?void 0:z.topLeftMenu;M[19]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{Q(!1)},M[19]=S):S=M[19],M[20]!==A||M[21]!==V?(E=(0,t.jsx)(N,{menu:V,lastUpdate:A,onClick:S}),M[20]=A,M[21]=V,M[22]=E):E=M[22];let W=null==z?void 0:z.infoMenu;return M[23]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{Q(!1)},M[23]=R):R=M[23],M[24]!==K||M[25]!==W?(L=(0,t.jsx)(h,{menu:W,title:K,onClick:R}),M[24]=K,M[25]=W,M[26]=L):L=M[26],M[27]!==w||M[28]!==_||M[29]!==E||M[30]!==L||M[31]!==v||M[32]!==C?(I=(0,t.jsx)(r.SheetPrimitiveContent,{side:"left",className:"w-full overflow-y-auto scroll-smooth p-0 lg:max-w-[410px]",children:(0,t.jsxs)("div",{className:"flex grow flex-col bg-white pb-2",children:[b,(0,t.jsxs)("nav",{className:"flex flex-1 flex-col",children:[v,C,w,_,E,L]})]})}),M[27]=w,M[28]=_,M[29]=E,M[30]=L,M[31]=v,M[32]=C,M[33]=I):I=M[33],M[34]!==O||M[35]!==p||M[36]!==I?(T=(0,t.jsxs)(r.Sheet,{open:O,onOpenChange:Q,children:[p,I]}),M[34]=O,M[35]=p,M[36]=I,M[37]=T):T=M[37],T}e.s(["SidebarSheetMenu",0,C,"default",0,C],495785)},763655,e=>{"use strict";var t=e.i(854401),i=e.i(34522),l=e.i(690923),r=e.i(481816),n=e.i(202261),s=e.i(408536);function a(e){let a,o,c,d,u=(0,i.c)(8),{className:h,children:f}=e,m=(0,s.useRef)(null);u[0]===Symbol.for("react.memo_cache_sentinel")?(a={target:m},u[0]=a):a=u[0];let{scrollY:p}=(0,n.useScroll)(a),[x,g]=(0,s.useState)(!1);u[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{m.current&&g(e>m.current.clientHeight)},u[1]=o):o=u[1],(0,r.useMotionValueEvent)(p,"change",o);let b=x?"is-compact":null;return u[2]!==h||u[3]!==b?(c=(0,l.cn)(h,b),u[2]=h,u[3]=b,u[4]=c):c=u[4],u[5]!==f||u[6]!==c?(d=(0,t.jsx)("header",{ref:m,className:c,children:f}),u[5]=f,u[6]=c,u[7]=d):d=u[7],d}e.s(["HeaderContainer",0,a,"default",0,a])},550227,e=>{"use strict";var t=e.i(856063),i=e.i(572238),l=class extends t.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}
2fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var l,r;let{state:n}=e,s=super.createResult(e,t),{isFetching:a,isRefetching:o,isError:c,isRefetchError:d}=s,u=null==(r=n.fetchMeta)||null==(l=r.fetchMore)?void 0:l.direction,h=c&&"forward"===u,f=a&&"forward"===u,m=c&&"backward"===u,p=a&&"backward"===u;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.hasNextPage)(t,n.data),hasPreviousPage:(0,i.hasPreviousPage)(t,n.data),isFetchNextPageError:h,isFetchingNextPage:f,isFetchPreviousPageError:m,isFetchingPreviousPage:p,isRefetchError:d&&!h&&!m,isRefetching:o&&!f&&!p}}},r=e.i(214019);e.s(["useInfiniteQuery",0,function(e,t){return(0,r.useBaseQuery)(e,l,t)}],550227)},32067,e=>{"use strict";var t=e.i(854401),i=e.i(34522),l=e.i(659948);e.s(["StripHtml",0,function(e){let r,n=(0,i.c)(4),{as:s,className:a,html:o}=e,c=void 0===s?"p":s;return n[0]!==c||n[1]!==a||n[2]!==o?(r=o?(0,t.jsx)(c,{...a?{className:a}:{},children:(0,l.stripHtml)(o)}):null,n[0]=c,n[1]=a,n[2]=o,n[3]=r):r=n[3],r}])},453570,e=>{"use strict";let t=(0,e.i(89718).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",0,t])},770550,e=>{"use strict";var t=e.i(34522),i=e.i(550227),l=e.i(422470),r=e.i(793455),n=e.i(235807),s=e.i(654995);let a=["id","slug","headline","summary","startDate","endDate","location","videoUrl","datePublished","date_updated",{featuredImage:["id","alternativeText","caption",{image:["id","width","height","filename_disk"]}]}],o=["id","headline","content","datePublished",{event:["id","slug","headline","startDate","endDate"],featuredImage:["id","alternativeText","caption",{image:["id","width","height","filename_disk"]}]}],c={status:{_eq:"published"}};async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{page:1,limit:12};return(0,r.readItemsPaginated)(s.directus,"events",{...e,filter:{...c,...e.filter},sort:["-startDate"],fields:a})}async function u(){let[e]=await s.directus.request((0,n.readItems)("event_banners",{filter:c,sort:["-datePublished"],limit:1,fields:o}));return e||null}function h(){return u()}function f(e){let{page:t,limit:i,total:l}=e;return t*i<l?t+1:null}e.s(["useEventBanner",0,function(e){let i,r,n=(0,t.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(i=["event_banners","latest"],n[0]=i):i=n[0],n[1]!==e?(r={...e,queryKey:i,queryFn:h},n[1]=e,n[2]=r):r=n[2],(0,l.useQuery)(r)},"useEvents",0,function(e,l,r,n){let s,a,o,c=(0,t.c)(9),u=void 0===r?12:r;return c[0]!==e||c[1]!==u||c[2]!==l?(s=["events",{fromDate:e,toDate:l,pageSize:u}],a=async t=>{let{pageParam:i}=t,r={};return e&&(r.startDate={_gte:e}),l&&(r.endDate={_lte:l}),d({page:i,limit:u,filter:r})},c[0]=e,c[1]=u,c[2]=l,c[3]=s,c[4]=a):(s=c[3],a=c[4]),c[5]!==n||c[6]!==s||c[7]!==a?(o={...n,queryKey:s,queryFn:a,initialPageParam:1,getNextPageParam:f},c[5]=n,c[6]=s,c[7]=a,c[8]=o):o=c[8],(0,i.useInfiniteQuery)(o)}],770550)},175692,e=>{"use strict";e.i(547007);var t=e.i(854401),i=e.i(408536),l=e.i(564076),r=e.i(376233),n=e.i(846165),s=e.i(206044),a=e.i(335029),o=i,c=e.i(256664);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,a.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=(0,a.isHTMLElement)(e)&&e.offsetWidth||0,l=(0,a.isHTMLElement)(e)&&e.offsetHeight||0,r=getComputedStyle(t),n=this.props.sizeRef.current;n.height=parseFloat(r.height),n.width=parseFloat(r.width),n.top=t.offsetTop,n.left=t.offsetLeft,n.right=i-n.width-n.left,n.bottom=l-n.height-n.top,n.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){var l;let{children:r,isPresent:n,anchorX:s,anchorY:a,root:h,pop:f}=e,m=(0,o.useId)(),p=(0,o.useRef)(null),x=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,o.useContext)(c.MotionConfigContext),b=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return i.useCallback(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return e=>{let i=!1,l=t.map(t=>{let l=d(t,e);return i||"function"!=typeof l||(i=!0),l});if(i)return()=>{for(let e=0;e<l.length;e++){let i=l[e];"function"==typeof i?i():d(t[e],null)}}}}(...t),t)}(p,(null==(l=r.props)?void 0:l.ref)??(null==r?void 0:r.ref));return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:l,right:r,bottom:o,direction:c}=x.current;if(n||!1===f||!p.current||!e||!t)return;
2let d="rtl"===c,u="left"===s?d?`right: ${r}`:`left: ${l}`:d?`left: ${l}`:`right: ${r}`,b="bottom"===a?`bottom: ${o}`:`top: ${i}`;p.current.dataset.motionPopId=m;let v=document.createElement("style");g&&(v.nonce=g);let y=h??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
3          [data-motion-pop-id="${m}"] {
4            position: absolute !important;
5            width: ${e}px !important;
6            height: ${t}px !important;
7            ${u}px !important;
8            ${b}px !important;
9          }
10        `),()=>{var e;null==(e=p.current)||e.removeAttribute("data-motion-pop-id"),y.contains(v)&&y.removeChild(v)}},[n]),(0,t.jsx)(u,{isPresent:n,childRef:p,sizeRef:x,pop:f,children:!1===f?r:o.cloneElement(r,{ref:b})})}let f=e=>{let{children:l,initial:a,isPresent:o,onExitComplete:c,custom:d,presenceAffectsLayout:u,mode:f,anchorX:p,anchorY:x,root:g}=e,b=(0,r.useConstant)(m),v=(0,i.useId)(),y=(0,i.useRef)(o),j=(0,i.useRef)(c);(0,n.useIsomorphicLayoutEffect)(()=>{y.current=o,j.current=c});let N=!0,C=(0,i.useMemo)(()=>(N=!1,{id:v,initial:a,isPresent:o,custom:d,onExitComplete:e=>{for(let t of(b.set(e,!0),b.values()))if(!t)return;c&&c()},register:e=>(b.set(e,!1),()=>{var t;b.delete(e),y.current||b.size||null==(t=j.current)||t.call(j)})}),[o,b,c]);return u&&N&&(C={...C}),(0,i.useMemo)(()=>{b.forEach((e,t)=>b.set(t,!1))},[o]),i.useEffect(()=>{o||b.size||!c||c()},[o]),l=(0,t.jsx)(h,{pop:"popLayout"===f,isPresent:o,anchorX:p,anchorY:x,root:g,children:l}),(0,t.jsx)(s.PresenceContext.Provider,{value:C,children:l})};function m(){return new Map}var p=e.i(361691);let x=e=>e.key||"";function g(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,e=>{let{children:s,custom:a,initial:o=!0,onExitComplete:c,presenceAffectsLayout:d=!0,mode:u="sync",propagate:h=!1,anchorX:m="left",anchorY:b="top",root:v}=e,[y,j]=(0,p.usePresence)(h),N=(0,i.useMemo)(()=>g(s),[s]),C=h&&!y?[]:N.map(x),k=(0,i.useRef)(!0),w=(0,i.useRef)(N),P=(0,r.useConstant)(()=>new Map),_=(0,i.useRef)(new Set),[S,E]=(0,i.useState)(N),[R,L]=(0,i.useState)(N);(0,n.useIsomorphicLayoutEffect)(()=>{k.current=!1,w.current=N;for(let e=0;e<R.length;e++){let t=x(R[e]);C.includes(t)?(P.delete(t),_.current.delete(t)):!0!==P.get(t)&&P.set(t,!1)}},[R,C.length,C.join("-")]);let I=[];if(N!==S){let e=[...N];for(let t=0;t<R.length;t++){let i=R[t],l=x(i);C.includes(l)||(e.splice(t,0,i),I.push(i))}return"wait"===u&&I.length&&(e=I),L(g(e)),E(N),null}let{forceRender:T}=(0,i.useContext)(l.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:R.map(e=>{let i=x(e),l=(!h||!!y)&&(N===R||C.includes(i));return(0,t.jsx)(f,{isPresent:l,initial:(!k.current||!!o)&&void 0,custom:a,presenceAffectsLayout:d,mode:u,root:v,onExitComplete:l?void 0:()=>{if(_.current.has(i)||!P.has(i))return;_.current.add(i),P.set(i,!0);let e=!0;P.forEach(t=>{t||(e=!1)}),e&&(null==T||T(),L(w.current),h&&(null==j||j()),c&&c())},anchorX:m,anchorY:b,children:e},i)})})}],175692)},665242,e=>{"use strict";var t=e.i(854401),i=e.i(34522),l=e.i(627144),r=e.i(690923),n=e.i(32067),s=e.i(741696),a=e.i(175692),o=e.i(433299),c=e.i(579629),d=e.i(408536),u=e.i(807880),h=e.i(422470);e.i(793455);var f=e.i(235807),m=e.i(654995);let p=["id","headline","content","overtitle","externalLink","linkLabel",{internalLink:["id","slug"]}];async function x(){let[e]=await m.directus.request((0,f.readItems)("breaking_news",{filter:{status:{_eq:"published"}},sort:["-datePublished"],limit:1,fields:p}));return e||null}function g(){return x()}var b=e.i(462600);function v(e){var f;let m,p,x,v,y,j,N,C,k,w=(0,i.c)(18),{className:P}=e;w[0]===Symbol.for("react.memo_cache_sentinel")?(m={retry:1},w[0]=m):m=w[0];let{data:_,isLoading:S}=(f=m,(k=(0,i.c)(3))[0]===Symbol.for("react.memo_cache_sentinel")?(N=["breaking_news","latest"],k[0]=N):N=k[0],k[1]!==f?(C={...f,queryKey:N,queryFn:g},k[1]=f,k[2]=C):C=k[2],(0,h.useQuery)(C)),[E,R]=(0,u.useLocalStorage)("bnews",null),[L,I]=(0,d.useState)(!1),[T,M]=(0,d.useState)(!1);w[1]!==_||w[2]!==R?(p=function(){if(!_)return null;R(_.id),I(!1)},w[1]=_,w[2]=R,w[3]=p):p=w[3];let z=p;w[4]!==E||w[5]!==_?(x=()=>{(null==_?void 0:_.id)&&(I(_.id!==E),M(!1))},w[4]=E,w[5]=_,w[6]=x):x=w[6];let H=null==_?void 0:_.id;w[7]!==E||w[8]!==H?(v=[H,E],w[7]=E,w[8]=H,w[9]=v):v=w[9],(0,d.useEffect)(x,v);let B=(null==_?void 0:_.internalLink)&&"object"==typeof _.internalLink&&_.internalLink.slug?`/${_.internalLink.slug}`:null;return S||!_||T?null:(w[10]!==P||w[11]!==_||w[12]!==B||w[13]!==L||w[14]!==z?(y=L?(0,t.jsx)(o.motion.div,{className:"container",initial:{opacity:0}
10,animate:{opacity:1},exit:{opacity:0},children:(0,t.jsx)("div",{className:(0,r.cn)("border-l-2 border-red-500 bg-red-200",P),children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"flex grow flex-col gap-3 py-6 pl-6",children:[_.overtitle?(0,t.jsx)("strong",{className:"overline-3 font-bold text-red-500",children:_.overtitle}):null,B||_.externalLink?(0,t.jsx)("h3",{children:(0,t.jsx)(c.default,{prefetch:b.LINK_PREFETCH,href:B||_.externalLink||"#",target:_.externalLink?"_blank":void 0,children:_.headline})}):(0,t.jsx)("h3",{children:_.headline}),_.content?(0,t.jsx)(n.StripHtml,{as:"p",html:_.content,className:"body-ns-1"}):null,_.linkLabel&&(B||_.externalLink)?(0,t.jsx)("div",{children:(0,t.jsx)(l.Button,{asChild:!0,children:(0,t.jsx)(c.default,{prefetch:b.LINK_PREFETCH,href:B||_.externalLink||"#",target:_.externalLink?"_blank":void 0,children:_.linkLabel})})}):null]}),(0,t.jsx)("div",{className:"flex-none",children:(0,t.jsx)(l.Button,{size:"icon",variant:"ghost",onClick:z,className:"text-gray-500 hover:bg-transparent hover:text-red-500",children:(0,t.jsx)(s.X,{className:"size-5"})})})]})})}):null,w[10]=P,w[11]=_,w[12]=B,w[13]=L,w[14]=z,w[15]=y):y=w[15],w[16]!==y?(j=(0,t.jsx)(a.AnimatePresence,{children:y}),w[16]=y,w[17]=j):j=w[17],j)}e.s(["BreakingNewsBanner",0,v,"default",0,v],665242)},588095,e=>{"use strict";var t=e.i(854401),i=e.i(34522),l=e.i(627144),r=e.i(766847),n=e.i(690923),s=e.i(32067),a=e.i(453570),a=a,o=e.i(741696),c=e.i(175692),d=e.i(433299),u=e.i(568002),h=e.i(579629),f=e.i(408536),m=e.i(807880),p=e.i(770550),x=e.i(462600);function g(e){let g,b,v,y,j,N,C,k=(0,i.c)(27),{className:w,liveLabel:P,liveButtonLabel:_}=e;k[0]===Symbol.for("react.memo_cache_sentinel")?(g={retry:1},k[0]=g):g=k[0];let{data:S,isLoading:E}=(0,p.useEventBanner)(g),[R,L]=(0,m.useLocalStorage)("events",null),[I,T]=(0,f.useState)(!1),[M,z]=(0,f.useState)(!1),H=(null==S?void 0:S.featuredImage)&&"object"==typeof S.featuredImage?S.featuredImage:null;k[1]!==(null==S?void 0:S.headline)||k[2]!==H?(b=H?(0,r.formatImage)(H,(null==S?void 0:S.headline)??void 0):null,k[1]=null==S?void 0:S.headline,k[2]=H,k[3]=b):b=k[3];let B=b,F=!!(null==B?void 0:B.url),$=!!(null==S?void 0:S.content);k[4]!==S||k[5]!==L?(v=function(){if(!S)return null;L(S.id),T(!1)},k[4]=S,k[5]=L,k[6]=v):v=k[6];let D=v;k[7]!==S||k[8]!==R?(y=()=>{(null==S?void 0:S.id)&&(T(S.id!==R),z(!1))},k[7]=S,k[8]=R,k[9]=y):y=k[9];let q=null==S?void 0:S.id;if(k[10]!==R||k[11]!==q?(j=[q,R],k[10]=R,k[11]=q,k[12]=j):j=k[12],(0,f.useEffect)(y,j),E||!S||M)return null;let K=S.event&&"object"==typeof S.event?S.event.slug:null;return k[13]!==w||k[14]!==S.content||k[15]!==S.headline||k[16]!==K||k[17]!==B||k[18]!==$||k[19]!==F||k[20]!==I||k[21]!==_||k[22]!==P||k[23]!==D?(N=I?(0,t.jsx)(d.motion.div,{className:"container",initial:{opacity:0}
10,animate:{opacity:1},exit:{opacity:0},children:(0,t.jsxs)("div",{className:(0,n.cn)("relative inline-flex w-full flex-col items-start justify-between gap-3 self-stretch rounded-xs bg-gray-500 md:flex-row md:items-center md:p-4",w),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5 md:flex-row",children:[(null==B?void 0:B.url)?(0,t.jsxs)("div",{className:"relative grid shrink-0 grid-cols-1 text-white before:absolute before:bottom-0 before:left-0 before:right-0 before:top-0 before:h-full before:w-full before:bg-linear-to-b before:from-gray-500/0 before:to-gray-500 md:before:bg-none",children:[(0,t.jsx)(u.default,{alt:B.alternativeText??"",src:B.url,width:B.width??1200,height:B.height??675,title:B.title,className:"col-start-1 row-start-1 aspect-video h-auto w-full object-cover md:h-full md:max-w-64",style:{objectPosition:B.position||"center"}}),(0,t.jsx)("div",{className:"z-10 col-start-1 row-start-1",children:(0,t.jsxs)("div",{className:"col-start-1 row-start-1 m-5 inline-flex items-center justify-center gap-1 rounded-xs bg-red-500 px-2 py-1 md:hidden",children:[(0,t.jsx)(a.default,{className:"size-3 shrink-0 fill-white"}),(0,t.jsx)("strong",{className:"overline-3 font-bold",children:P})]})}),(0,t.jsx)("h4",{className:"z-10 col-start-1 row-start-1 inline-block place-self-start self-end px-4 md:hidden",children:S.headline})]}):null,(0,t.jsxs)("div",{className:(0,n.cn)("flex items-start gap-2 px-4 text-white md:p-0",F||$?"flex-col":"flex-col md:flex-row",F?null:"pt-4"),children:[(0,t.jsxs)("div",{className:(0,n.cn)("items-center justify-center gap-1 rounded-xs bg-red-500 px-2 py-1 md:inline-flex",F?"hidden":"inline-flex"),children:[(0,t.jsx)(a.default,{className:"size-2 shrink-0 fill-white"}),(0,t.jsx)("strong",{className:"overline-3 font-bold",children:P})]}),(0,t.jsx)("h5",{className:(0,n.cn)("md:inline-block md:text-md",F?"hidden":"inline-block"),children:S.headline}),(0,t.jsx)(s.StripHtml,{html:S.content,className:"body-ns-1 text-gray-100"})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-center px-4 pb-4 md:p-0",children:[(0,t.jsx)(l.Button,{asChild:!0,children:(0,t.jsx)(h.default,{prefetch:x.LINK_PREFETCH,href:K?`/eventi/${K}`:"/eventi",children:_})}),(0,t.jsx)("div",{className:(0,n.cn)("absolute right-0 top-1.5 z-10 md:top-0",F||$?null:"md:relative"),children:(0,t.jsx)(l.Button,{size:"icon",variant:"ghost",onClick:D,className:"text-white hover:bg-transparent hover:text-red-500",children:(0,t.jsx)(o.X,{className:"size-5"})})})]})]})}):null,k[13]=w,k[14]=S.content,k[15]=S.headline,k[16]=K,k[17]=B,k[18]=$,k[19]=F,k[20]=I,k[21]=_,k[22]=P,k[23]=D,k[24]=N):N=k[24],k[25]!==N?(C=(0,t.jsx)(c.AnimatePresence,{children:N}),k[25]=N,k[26]=C):C=k[26],C}e.s(["EventBanner",0,g,"default",0,g],588095)}]);
11
12//# debugId=c06c959b-7318-6fb6-e3f8-3db89cbcbcee

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.