(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3812],{1007:(e,t,l)=>{"use strict";l.d(t,{DynamicAds:()=>r});var s=l(95155);let a=(0,l(67909).default)(()=>Promise.all([l.e(5440),l.e(5016),l.e(225)]).then(l.bind(l,51911)),{loadableGenerated:{webpack:()=>[51911]},ssr:!1}),r=e=>{let{enabled:t=!0,pageKey:l}=e;return(0,s.jsx)(a,{enabled:t,pageKey:l})}},1224:(e,t,l)=>{"use strict";l.d(t,{R:()=>d});var s=l(95155),a=l(65900),r=l(85203),i=l.n(r);let n=e=>{let{className:t,...l}=e;return(0,s.jsx)("input",{...l,type:"checkbox",className:i()("checkbox",t)})},o=e=>{let{className:t,type:l="text",...a}=e;return(0,s.jsx)("input",{...a,type:l,className:i()("input input-bordered w-full",t)})};var c=l(12115);let d=e=>{let{mailupApGroup:t,mailupList:l}=e,r=(0,c.useId)();return(0,s.jsx)("div",{children:(0,s.jsxs)("form",{action:"https://a2h2a1.emailsp.com/frontend/subscribe.aspx",className:"mt-3",children:[(0,s.jsx)("label",{className:"label font-bold",children:"Email*"}),(0,s.jsx)(o,{type:"email",placeholder:"Inserisci qui la tua email",name:"email",id:"email",required:!0}),(0,s.jsx)("p",{className:"border-b border-b-yellow pb-4 pt-3 text-body-sm",children:"Quando invii il modulo, controlla la tua inbox per confermare l'iscrizione"}),(0,s.jsx)("input",{type:"hidden",name:"group",value:"10"}),(0,s.jsx)("p",{className:"mt-4 text-body-md font-extrabold",children:"Informativa ai sensi dell’articolo 13 del Regolamento UE 2016/679 o GDPR*"}),(0,s.jsxs)("div",{className:"mt-3 flex",children:[(0,s.jsx)(n,{className:"mr-2",name:"privacy",required:!0,id:r}),(0,s.jsxs)("label",{className:"text-body-xs",htmlFor:r,children:["Alla mail registrata verranno inviati periodicamente messaggi di posta elettronica contenenti le ultime notizie. Potr\xe0 interrompere in ogni momento l'invio seguendo le istruzioni che trover\xe0 in ogni messaggio.",(0,s.jsx)("a",{href:"/privacy",target:"_blank",className:"font-bold",children:"Clicca qui per l'informativa estesa"})]})]}),(0,s.jsx)(a.$,{variant:"secondary",type:"submit",name:"submit",value:"true",className:"mx-auto mt-5 h-5 max-w-xs px-5",children:"Accetta ed iscriviti"}),(0,s.jsx)("input",{type:"hidden",id:"apgroup",name:"apgroup",value:t}),(0,s.jsx)("input",{type:"hidden",name:"list",value:l})]})})}},1496:(e,t,l)=>{"use strict";l.d(t,{default:()=>p});var s=l(95155),a=l(3648),r=l(12135),i=l(12115);function n(){let e=(0,a._)(["flex h-3 w-3 touch-manipulation appearance-none items-center justify-center disabled:text-gray-50"]);return n=function(){return e},e}let o=(0,r.tw)(n()),c=e=>{let{children:t,...l}=e;return(0,s.jsxs)("button",{className:o,type:"button",...l,children:[(0,s.jsx)("svg",{viewBox:"0 0 532 532",children:(0,s.jsx)("path",{fill:"currentColor",d:"M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"})}),t]})},d=e=>{let{children:t,...l}=e;return(0,s.jsxs)("button",{className:o,type:"button",...l,children:[(0,s.jsx)("svg",{viewBox:"0 0 532 532",children:(0,s.jsx)("path",{fill:"currentColor",d:"M176.34 520.646c-13.793 13.805-36.208 13.805-50.001 0-13.785-13.804-13.785-36.238 0-50.034L330.78 266 126.34 61.391c-13.785-13.805-13.785-36.239 0-50.044 13.793-13.796 36.208-13.796 50.002 0 22.928 22.947 206.395 206.507 229.332 229.454a35.065 35.065 0 0 1 10.326 25.126c0 9.2-3.393 18.26-10.326 25.2-45.865 45.901-206.404 206.564-229.332 229.52Z"})}),t]})},u=e=>{let{children:t,...l}=e;return(0,s.jsx)("button",{type:"button",...l,children:t})};var m=l(85203),x=l.n(m),h=l(68072);let p=e=>{let{children:t}=e,[l,a]=(0,h.A)({align:"start",loop:!0}),{selectedIndex:r,scrollSnaps:n,onDotButtonClick:o}=(e=>{let[t,l]=(0,i.useState)(0),[s,a]=(0,i.useState)([]),r=(0,i.useCallback)(t=>{e&&e.scrollTo(t)},[e]),n=(0,i.useCallback)(e=>{a(e.scrollSnapList())},[]),o=(0,i.useCallback)(e=>{l(e.selectedScrollSnap())},[]);return(0,i.useEffect)(()=>{e&&(n(e),o(e),e.on("reInit",n).on("reInit",o).on("select",o))},[e,n,o]),{selectedIndex:t,scrollSnaps:s,onDotButtonClick:r}})(a),{prevBtnDisabled:m,nextBtnDisabled:p,onPrevButtonClick:b,onNextButtonClick:g}=(e=>{let[t,l]=(0,i.useState)(!0),[s,a]=(0,i.useState)(!0),r=(0,i.useCallback)(()=>{e&&e.scrollPrev()},[e]),n=(0,i.useCallback)(()=>{e&&e.scrollNext()},[e]),o=(0,i.useCallback)(e=>{l(!e.canScrollPrev()),a(!e.canScrollNext())},[]);return(0,i.useEffect)(()=>{e&&(o(e),e.on("reInit",o).on("select",o))},[e,o]),{prevBtnDisabled:t,nextBtnDisabled:s,onPrevButtonClick:r,onNextButtonClick:n}})(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"overflow-hidden",ref:l,children:(0,s.jsx)("div",{className:"-ml-3 flex touch-pan-y touch-pinch-zoom",children:t})}),(0,s.jsxs)("div",{className:"mt-2 flex justify-between",children:[(0,s.jsx)("div",{className:"mr-3 flex flex-wrap items-center justify-start",children:n.map((e,t)=>(0,s.jsx)(u,{onClick:()=>o(t),className:x()("flex h-3 w-3 appearance-none items-center justify-center rounded-full after:h-2 after:w-2 after:rounded-full after:content-['']",{"after:bg-gray-50":t!==r,"after:bg-black":t===r})},t))}),(0,s.jsxs)("div",{className:"grid grid-cols-2 items-center gap-2",children:[(0,s.jsx)(c,{onClick:b,disabled:m}),(0,s.jsx)(d,{onClick:g,disabled:p})]})]})]})}},3872:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(95155),a=l(34514),r=l(12115);let i=e=>{let{className:t,format:l,id:i,keywords:n,location:o,position:c}=e,[d,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{u(!0)},[]),d)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.DevComment,{children:["Adagio ",c," - Loc=",o," - Fmt=",l," - Keywords=",n," ","- id=",i]}),(0,s.jsx)("div",{className:"flex justify-center px-spacer",children:(0,s.jsx)("div",{id:i,className:t})})]}):null}},4275:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>s});let s={src:"/_next/static/media/imprese-e-bilanci.3ad06d26.jpg",height:717,width:600,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAcDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAVAQEBAAAAAAAAAAAAAAAAAAAEBf/aAAwDAQACEAMQAAAAhhE3/8QAGxAAAgIDAQAAAAAAAAAAAAAAAgMBEgAEE2H/2gAIAQEAAT8AetjlnshFjOacxTNR9jP/xAAVEQEBAAAAAAAAAAAAAAAAAAABAP/aAAgBAgEBPwBL/8QAGBEAAgMAAAAAAAAAAAAAAAAAAQIAITH/2gAIAQMBAT8AVqwCf//Z",blurWidth:7,blurHeight:8}},4327:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(95155),a=l(85203),r=l.n(a);let i=e=>{let{className:t,variant:l="md",width:a,...i}=e;return(0,s.jsx)("div",{className:r()(t,"rounded bg-gray-20",{"mb-skel-sm":"sm"==l,"h-skel-sm":"sm"==l,"mb-skel-md":"md"==l,"h-skel-md":"md"==l,"mb-skel-lg":"lg"==l,"h-skel-lg":"lg"==l}),...i,style:{maxWidth:a}})}},7050:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdagioInread:()=>i});var s=l(95155),a=l(78325);let r=(0,l(67909).default)(()=>l.e(8847).then(l.bind(l,8847)),{loadableGenerated:{webpack:()=>[8847]},ssr:!1}),i=()=>(0,a.useIsPreview)()?null:(0,s.jsx)(r,{})},8367:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TeletuttoLiveWidget:()=>m});var s=l(95155),a=l(276),r=l(24871),i=l(65447),n=l(30482);let o=e=>{let{details:t,variant:l}=e;return(0,s.jsx)("div",{children:(0,s.jsxs)(n.I,{columnsLg:"wide"===l?2:1,className:"bg-gray-3 p-2",children:[(0,s.jsx)(r.m,{streamUrl:"https://3177cee185284d2990021eccc8b06ae6.msvdn.net/live/S55287570/tq6PELOcQoAf/playlist.m3u8",autoplay:!0}),(0,s.jsxs)("div",{className:"p-3 lg:ps-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)(i.s,{label:"Tg Live ⬤",variant:"live"})}),(0,s.jsx)("h2",{className:"mb-3 mt-2 font-serif text-title-md font-semibold",children:t.title}),(0,s.jsx)("p",{className:"text-label-sm italic text-gray-70",children:t.description})]})]})})};var c=l(41912),d=l(25016),u=l(12115);let m=e=>{let{children:t,variant:l="default"}=e,[r,i]=(0,u.useState)(null),n=()=>fetch("/api/gdbbackoffice/tg").then(e=>e.json()).then(e=>i(e)).catch(()=>i(null));return(0,u.useEffect)(()=>{n()},[]),(0,c.$)(()=>{(0,d.Sc)("Polling live TT"),n()},6e4),(null==r?void 0:r.isonline)?(0,s.jsx)(a.DevWrapper,{label:"TG ON AIR",children:(0,s.jsx)(o,{details:r,variant:l})}):(0,s.jsx)(a.DevWrapper,{label:"TG PLACEHOLDER",children:t})}},8586:(e,t,l)=>{"use strict";l.r(t),l.d(t,{GalleryCard:()=>u});var s=l(95155),a=l(45476),r=l(32937);l(76419),l(89159);let i=e=>{let{slides:t,open:l,index:i=0,onClose:n}=e;return(0,s.jsx)(a.Ay,{open:l,close:n,index:i,slides:t,plugins:[r.A],carousel:{finite:!0},controller:{closeOnBackdropClick:!0}})};var n=l(76917),o=l(15239),c=l(12115),d=l(4428);let u=e=>{var t,l,a,r,u,m;let{item:x,width:h=800,showTitleInCaption:p=!1,className:b}=e,[g,A]=(0,c.useState)(!1),v=null==(t=x.items)?void 0:t.find(e=>{var t;return null==e||null==(t=e.image)?void 0:t.url});if(!(null==v||null==(l=v.image)?void 0:l.url))return null;let f=null!=(u=null==(a=x.items)?void 0:a.filter(e=>{var t;return null==e||null==(t=e.image)?void 0:t.url}).length)?u:0,j=[p?x.title:null,v.caption].filter(Boolean).join(" - "),w=x.hideAuthor?void 0:x.byline,y=null!=(m=null==(r=x.items)?void 0:r.filter(e=>{var t;return!!(null==e||null==(t=e.image)?void 0:t.url)}).map(e=>{var t,l,s,a,r;let i=[[p?x.title:null,e.caption].filter(Boolean).join(" - "),[w,null==(t=e.image)?void 0:t.rights,null==(l=e.image)?void 0:l.credit,null==(a=e.image)||null==(s=a.provider)?void 0:s.name].filter(Boolean).join(" / ")].filter(Boolean).join(" - ");return{src:e.image.url,alt:(null==(r=e.image)?void 0:r.caption)||"",description:i?(0,d.QZ)(i).result:void 0}}))?m:[];return(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("div",{className:"group relative cursor-pointer overflow-hidden rounded-lg",onClick:()=>A(!0),role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),A(!0))},"aria-label":"Apri fotogallery: ".concat(x.title||""," - ").concat(f," foto"),children:[(0,s.jsx)(o.default,{src:(0,n.b8)(v.image.url,n.NE.RATIO_16_9,h),alt:v.image.caption||"",width:h,height:(0,n.vr)(n.NE.RATIO_16_9,h),className:"w-full transition-transform duration-300 group-hover:scale-[1.03]",unoptimized:!0}),(0,s.jsxs)("div",{className:"absolute left-3 top-3 flex items-center gap-[6px] rounded bg-black/60 px-2 py-1 text-body-xs font-semibold uppercase text-white",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-[14px] w-[14px]",children:[(0,s.jsx)("path",{d:"M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z"}),(0,s.jsx)("path",{fillRule:"evenodd",d:"M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.152-.177a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"})]}),"Fotogallery"]}),(0,s.jsxs)("div",{className:"absolute bottom-3 right-3 flex items-center gap-[6px] rounded bg-black/60 px-2 py-1 text-body-xs font-semibold text-white",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-[14px] w-[14px]",children:[(0,s.jsx)("path",{d:"M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z"}),(0,s.jsx)("path",{fillRule:"evenodd",d:"M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.152-.177a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"})]}),f," foto"]}),j&&(0,s.jsx)("div",{className:"absolute inset-x-0 bottom-0 translate-y-full bg-black/70 px-3 py-2 text-headline-sm text-white transition-transform duration-300 group-hover:translate-y-0",children:(0,d.QZ)(j).result})]}),(0,s.jsx)(i,{slides:y,open:g,onClose:()=>A(!1)})]})}},8967:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(14185);let a=()=>(0,s.A)("(max-width: 1020px)")},10271:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var s=l(95155),a=l(75186),r=l(60852),i=l(15239),n=l(12115);let o=e=>{let{items:t}=e,[l,o]=(0,n.useState)(0),c=t.slice(0,3*Math.floor(t.length/3)),d=Math.ceil(c.length/3),u=c.slice(3*l,3*l+3);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"font-serif text-title-xl font-bold",children:"ZOOM"}),(0,s.jsx)("p",{className:"mt-1 text-body-sm text-gray-70",children:"Le vostre fotografie raccontano il territorio"})]}),d>1&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("button",{className:"rounded-full border border-gray-30 bg-white p-2 disabled:opacity-30",onClick:()=>o(e=>e-1),disabled:!(l>0),"aria-label":"Indietro",children:(0,s.jsx)(r.c,{className:"rotate-180",width:20,height:20})}),(0,s.jsx)("button",{className:"rounded-full border border-gray-30 bg-white p-2 disabled:opacity-30",onClick:()=>o(e=>e+1),disabled:!(l(0,s.jsx)(a.default,{href:e.targetUrl,target:"_blank",children:(0,s.jsx)(i.default,{src:e.imgUrl,alt:e.title,title:e.title,width:400,height:400,className:"aspect-video w-full rounded-xl object-cover",unoptimized:!0})},t))})]})}},11224:(e,t,l)=>{"use strict";l.d(t,{SidebarWidgetEvents:()=>u});var s=l(95155),a=l(26522),r=l(24850),i=l(38581),n=l(19740),o=l(12115);let c=["GEN","FEB","MAR","APR","MAG","GIU","LUG","AGO","SET","OTT","NOV","DIC"],d=(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)(n.gc,{icon:i.l6G,className:"size-[10px]"}),"Prossimi eventi"]}),(0,s.jsxs)("a",{href:"https://abrescia.giornaledibrescia.it/ricerca",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 font-normal normal-case tracking-normal",children:["Tutti ",(0,s.jsx)(a.Q,{width:8,height:8,fill:"currentColor"})]})]}),u=e=>{let{count:t=5}=e,[l,a]=(0,o.useState)(null);return((0,o.useEffect)(()=>{fetch("/api/agenda?count=".concat(t)).then(e=>e.ok?e.json():null).then(e=>{if(!e)return a(null);a([...e].sort((e,t)=>e.minDate?t.minDate?e.minDate.localeCompare(t.minDate):-1:1))}).catch(()=>{})},[t]),null==l?void 0:l.length)?(0,s.jsx)(r.F,{title:d,children:(0,s.jsx)("ul",{className:"flex flex-col divide-y divide-gray-10",children:l.map((e,t)=>{let l=e.minDate?function(e){let[,t,l]=e.split("-");return{day:l,month:c[parseInt(t,10)-1]}}(e.minDate):void 0,a=[e.venue,e.address,e.city].filter(Boolean).join(", ");return(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-start gap-spacer py-spacer",children:[l&&(0,s.jsxs)("div",{className:"w-6 flex-none rounded-[7px] bg-gray py-[7px] text-center",children:[(0,s.jsx)("div",{className:"font-agenda text-body-lg leading-[18px] text-yellow",children:l.day}),(0,s.jsx)("div",{className:"text-[10px] font-semibold leading-[14px] text-white",children:l.month})]}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"line-clamp-2 font-serif text-title-sm font-semibold text-gray-95",children:e.title}),a&&(0,s.jsxs)("p",{className:"mt-1 flex items-center gap-2 text-[11.5px] leading-[17px] text-gray-75",children:[(0,s.jsx)(n.gc,{icon:i.gKm,className:"size-[11px] flex-none text-yellow"}),(0,s.jsx)("span",{className:"line-clamp-2",children:a})]})]})]})},t)})})}):null}},12543:(e,t,l)=>{"use strict";l.d(t,{default:()=>c});var s=l(95155),a=l(43008),r=l(89442),i=l(30482),n=l(36750),o=l(12115);let c=e=>{let{count:t}=e,[l,c]=(0,o.useState)(void 0);return((0,o.useEffect)(()=>{fetch("/api/most-read").then(e=>e.ok?e.json():null).then(e=>{var t;return c(null!=(t=null==e?void 0:e.articles)?t:null)}).catch(()=>c(null))},[]),(null==l?void 0:l.length)||void 0===l)?(0,s.jsx)(n.M,{moduleName:"I pi\xf9 letti",children:(0,s.jsx)(i.I,{divideSm:!0,divideLg:!0,children:void 0===l?(0,s.jsx)(r.A,{count:t}):l.slice(0,t).map((e,t)=>(0,s.jsx)(a.A,{title:e.name,url:e.articleUrl,publicationDate:e.publicationDateComplete},t))})}):null}},13036:(e,t,l)=>{"use strict";l.d(t,{LinkOpenCmp:()=>r});var s=l(95155),a=l(12115);let r=e=>{let{label:t}=e,l=(0,a.useCallback)(()=>window.___pubtech_open_cmp(),[]);return(0,s.jsx)("span",{className:"cursor-pointer underline",onClick:l,children:t})}},15453:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoPlayer:()=>u});var s=l(95155),a=l(34514),r=l(27596),i=l(96304),n=l(8967),o=l(56936),c=l(25016),d=l(12115);let u=e=>{let{title:t,mediaUrl:l,imageUrl:u,autoPlay:m=!1}=e,[x,h]=(0,d.useState)(!1);(0,d.useEffect)(()=>{h(!0)},[]);let p=(0,d.useId)(),b=(0,n.A)(),{loc:g}=(0,d.useContext)(r.v),A=(0,d.useMemo)(()=>"".concat(g,"_").concat(b?"mob":"dsk","_preroll_video"),[b,g]),v=(0,o.A)(),f=(0,d.useMemo)(()=>{if(console.log("WIP VIDEO: tcData",v),console.log("WIP VIDEO: isClient",x),console.log("WIP VIDEO: loc",A),!x)return"";let e=new URL("https://ad91.neodatagroup.com/ad/opq.jsp");e.searchParams.set("loc",A),e.searchParams.set("sid","91"),e.searchParams.set("bt","n"),e.searchParams.set("wt","n");let t=(null==v?void 0:v.gdprApplies)?"1":"0",l=(null==v?void 0:v.tcString)||"";return e.searchParams.set("rlp","gdpr:".concat(t,"^gdpr_consent:").concat(l,"^url:").concat(encodeURIComponent(encodeURIComponent(window.location.toString())))),e.searchParams.set("gdpr",t),e.searchParams.set("gdpr_consent",l),e.toString()},[A,v,x]);return(0,d.useEffect)(()=>{if(!window.mnPlayerQueue||!f)return;let e={appendTo:"#".concat(p),adDefaultVolume:1,adTagUrl:f,videoAutoPlay:m,autoPlay:!0,behavior:"incontent",canIncontentGoInslide:!1,closeButton:{enabled:!0,position:"top-right",showAfter:1,showAfterAdComplete:!0,text:"X"},playerPosition:"right",poster:u,restoreIncontentPositionAfterGoInslide:!0,source:l,startAdWithVolume:!0,startVideoContentWithVolume:!m,startAdClickToPlay:!0,style:{color:"rgb(255 221 0)"},videoVolume:1,videoContentTitle:t,enableContinuousVideoPlayback:!0};if((0,c.Sc)("Loading video player with options: ".concat(JSON.stringify(e))),window.loadMnPlayer(e),window._videoEventListeners||(window._videoEventListeners={}),!window._videoEventListeners["video-started"]){let e=e=>{let t=e.detail;(0,i.B)({event:"video-started",title:null==t?void 0:t.title})};window.addEventListener("video-started",e),window._videoEventListeners["video-started"]=e}if(!window._videoEventListeners["video-resumed"]){let e=e=>{let t=e.detail;(0,i.B)({event:"video-resumed",title:null==t?void 0:t.title,video_duration:null==t?void 0:t.video_duration,event_raised_at:null==t?void 0:t.event_raised_at})};window.addEventListener("video-resumed",e),window._videoEventListeners["video-resumed"]=e}if(!window._videoEventListeners["video-paused"]){let e=e=>{let t=e.detail;(0,i.B)({event:"video-paused",title:null==t?void 0:t.title,video_duration:null==t?void 0:t.video_duration,event_raised_at:null==t?void 0:t.event_raised_at})};window.addEventListener("video-paused",e),window._videoEventListeners["video-paused"]=e}if(!window._videoEventListeners["video-ended"]){let e=e=>{let t=e.detail;(0,i.B)({event:"video-ended",title:null==t?void 0:t.title,video_duration:null==t?void 0:t.video_duration})};window.addEventListener("video-ended",e),window._videoEventListeners["video-ended"]=e}},[p,m,u,l,f,t]),f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:p,className:"aspect-video w-full overflow-hidden rounded-lg"}),(0,s.jsxs)(a.DevComment,{children:["Preroll loc: ",A," - Autoplay: ",m?"true":"false"]})]}):(0,s.jsx)("div",{children:"Loading video..."})}},15925:(e,t,l)=>{"use strict";l.d(t,{W:()=>i});var s=l(95155),a=l(42027),r=l(12115);let i=e=>{let{callback:t,threshold:l=0,rootMargin:i="0px",children:n}=e,o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e,s=new IntersectionObserver(e=>{e[0].isIntersecting&&t()},{threshold:l,rootMargin:i});return o.current&&(s.observe(o.current),e=o.current),()=>{e&&s.unobserve(e)}},[t,o,i,l]),(0,s.jsxs)("div",{ref:o,children:[(0,s.jsx)(a.O,{label:"Scroll observer"}),n]})}},20025:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SalaLibrettiLiveWidget:()=>v});var s=l(95155),a=l(276),r=l(79600),i=l(51033),n=l(65447),o=l(93704),c=l(30482),d=l(75186),u=l(15453),m=l(85203),x=l.n(m),h=l(34821);let p=e=>{let{details:t,variant:l}=e;return(0,s.jsx)("div",{children:(0,s.jsxs)(c.I,{columnsLg:"wide"===l?2:1,className:x()("p-2",{"bg-gray-3":"live"===t.status,"bg-white":"live"!==t.status}),children:[(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(u.VideoPlayer,{title:"Diretta Sala Libretti",mediaUrl:t.video_url,autoPlay:!0})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:["live"===t.status&&(0,s.jsx)(n.s,{label:"Sala Libretti Live ⬤",variant:"live"}),"upcoming"===t.status&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.s,{label:h.c9.fromJSDate(new Date(t.event_date)).toFormat("dd.MM.yyyy"),variant:"positive"}),(0,s.jsx)(o.F,{date:new Date(t.event_date),className:"text-body-xs"})]}),"archived"===t.status&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.s,{label:"Sala libretti",variant:"black"}),(0,s.jsx)(n.s,{label:"Archived",variant:"default"}),(0,s.jsx)(r.B,{date:new Date(t.event_date),className:"text-body-xs"})]})]}),(0,s.jsx)("h2",{className:"mb-3 mt-2 font-serif text-title-md font-semibold",children:(0,s.jsx)(d.default,{href:t.url,target:"_blank",children:t.title})}),(0,s.jsx)(i.m,{html:t.lead,className:"mb-3 text-highlights-md italic"}),(0,s.jsx)("p",{className:"text-label-sm italic text-gray-70",children:t.kicker})]})]})})};var b=l(41912),g=l(25016),A=l(12115);let v=e=>{let{children:t,variant:l="default"}=e,[r,i]=(0,A.useState)(null),n=()=>fetch("/api/gdbbackoffice/salalibretti").then(e=>e.json()).then(i).catch(()=>i(null));return(0,A.useEffect)(()=>{n()},[]),(0,b.$)(()=>{(0,g.Sc)("Polling live"),n()},6e4),r?(0,s.jsx)(a.DevWrapper,{label:"LIVE ON AIR",children:(0,s.jsx)(p,{details:r,variant:l})}):(0,s.jsx)(a.DevWrapper,{label:"LIVE PLACEHOLDER",children:t})}},24120:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DataLayerEvents:()=>c});var s=l(95155),a=l(15925),r=l(43023),i=l(25016),n=l(76784),o=l(12115);let c=e=>{let{article:t,rootMargin:l,threshold:c,children:d}=e,u=(0,r.Ir)(t,"scroll"),m=(0,o.useCallback)(()=>{u&&((0,n.sendGTMEvent)(u),(0,i.Sc)("GTM event article-scrolled: ".concat(JSON.stringify(u))))},[u]);return(0,s.jsx)(a.W,{callback:m,rootMargin:l,threshold:c,children:d})}},24278:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AudioboostBootstrap:()=>i});var s=l(56936),a=l(12115);let r=!1,i=()=>((()=>{let e=(0,s.A)(),t=(0,a.useMemo)(()=>!!(null==e?void 0:e.tcString),[e]);(0,a.useEffect)(()=>{t&&(r||(()=>{let e=document.createElement("script");e.id="speakup-player-script",e.src="https://cdn.speakup.ai/loader.speakup.min.js",e.async=!0,e.dataset.site="iFfXCyIYLMopCgPa7YZX",e.dataset.lang="it",e.dataset.layout="boxed-small",e.dataset.theme="black-white",document.body.appendChild(e),r=!0})())},[t])})(),null)},24850:(e,t,l)=>{"use strict";l.d(t,{F:()=>i});var s=l(95155),a=l(85203),r=l.n(a);let i=e=>{let{title:t,children:l,className:a}=e;return(0,s.jsxs)("div",{className:r()("overflow-hidden rounded-lg border border-gray-10",a),children:[t&&(0,s.jsx)("div",{className:"mb-2 border-b border-gray-10 bg-gray-2 px-[18px] py-[12px] text-widget-title font-bold uppercase tracking-[1px] text-gray-75",children:t}),(0,s.jsx)("div",{className:"px-3 pb-3",children:l})]})}},24871:(e,t,l)=>{"use strict";l.d(t,{m:()=>r});var s=l(95155),a=l(15453);let r=e=>{let{streamUrl:t,coverUrl:l,autoplay:r}=e;return(0,s.jsx)("div",{children:(0,s.jsx)(a.VideoPlayer,{title:"Video in diretta",mediaUrl:t,imageUrl:l,autoPlay:r})})}},26522:(e,t,l)=>{"use strict";l.d(t,{Q:()=>a});var s=l(95155);l(12115);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000",viewBox:"0 0 448 512",...e,children:(0,s.jsx)("path",{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})})},27207:(e,t,l)=>{"use strict";l.d(t,{a:()=>n});var s=l(95155),a=l(85203),r=l.n(a),i=l(12115);let n=e=>{let{children:t,show:l,onClose:a,allowClose:n=!0,className:o}=e,c=(0,i.useRef)(null),d=(0,i.useCallback)(e=>{l&&n&&(e.preventDefault(),a())},[l,n,a]);return(0,i.useEffect)(()=>{var e,t;l?null==(e=c.current)||e.showModal():(null==(t=c.current)?void 0:t.close)&&c.current.close()},[l]),(0,s.jsxs)("dialog",{ref:c,className:"modal backdrop-blur-sm",onCancel:d,onClose:d,children:[(0,s.jsxs)("div",{className:r()("modal-box",o),children:[n&&(0,s.jsx)("form",{method:"dialog",children:(0,s.jsx)("button",{className:"btn btn-circle btn-ghost btn-sm absolute right-2 top-2",children:"✕"})}),t]}),n&&(0,s.jsx)("form",{method:"dialog",className:"modal-backdrop",children:(0,s.jsx)("button",{children:"close"})})]})}},27596:(e,t,l)=>{"use strict";l.d(t,{AdagioContextProvider:()=>o,U:()=>c,v:()=>n});var s=l(95155),a=l(34514),r=l(12115);let i={loc:"gdbn_ros",kw:"",fmt:"fmt_brescia_new"},n=(0,r.createContext)(i),o=e=>{let{loc:t=i.loc,kw:l=i.kw,fmt:r=i.fmt,children:o}=e;return(0,s.jsxs)(n.Provider,{value:{loc:t,kw:l,fmt:r},children:[(0,s.jsxs)(a.DevComment,{children:["\uD83E\uDC47 Adagio context: ",t," - ",l," - ",r]}),o]})},c=()=>(0,r.useContext)(n)},27755:(e,t,l)=>{"use strict";l.d(t,{SidebarWidgetCinema:()=>c});var s=l(95155),a=l(26522),r=l(24850),i=l(15239),n=l(12115);let o=(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{children:"Cinema oggi"}),(0,s.jsxs)("a",{href:"https://abrescia.giornaledibrescia.it/cinema",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 font-normal normal-case tracking-normal",children:["Tutti ",(0,s.jsx)(a.Q,{width:8,height:8,fill:"currentColor"})]})]}),c=e=>{let{count:t=6}=e,[l,a]=(0,n.useState)(null);return((0,n.useEffect)(()=>{fetch("/api/cinema").then(e=>e.ok?e.json():null).then(a).catch(()=>{})},[]),null==l?void 0:l.length)?(0,s.jsx)(r.F,{title:o,children:(0,s.jsx)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-3 pt-1",children:l.slice(0,t).map(e=>(0,s.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"relative overflow-hidden rounded",children:[(0,s.jsx)(i.default,{src:e.img,alt:e.title,width:150,height:210,className:"aspect-[2/3] w-full object-cover transition-opacity group-hover:opacity-90",unoptimized:!0}),e.genere&&(0,s.jsx)("span",{className:"absolute left-1 top-1 rounded bg-yellow-bright px-1 py-[3px] text-[0.6rem] font-black uppercase leading-none text-black",children:e.genere})]}),(0,s.jsx)("p",{className:"line-clamp-2 text-body-xs font-semibold leading-snug text-gray-95",children:e.title})]},e.film_id))})}):null}},27993:(e,t,l)=>{Promise.resolve().then(l.bind(l,33040)),Promise.resolve().then(l.bind(l,7050)),Promise.resolve().then(l.bind(l,1007)),Promise.resolve().then(l.bind(l,69569)),Promise.resolve().then(l.bind(l,11224)),Promise.resolve().then(l.bind(l,58477)),Promise.resolve().then(l.bind(l,11948)),Promise.resolve().then(l.bind(l,46368)),Promise.resolve().then(l.bind(l,99595)),Promise.resolve().then(l.bind(l,12543)),Promise.resolve().then(l.bind(l,82241)),Promise.resolve().then(l.bind(l,24278)),Promise.resolve().then(l.bind(l,44732)),Promise.resolve().then(l.bind(l,73567)),Promise.resolve().then(l.bind(l,45681)),Promise.resolve().then(l.bind(l,77255)),Promise.resolve().then(l.bind(l,27755)),Promise.resolve().then(l.bind(l,13036)),Promise.resolve().then(l.bind(l,93258)),Promise.resolve().then(l.bind(l,33320)),Promise.resolve().then(l.bind(l,69862)),Promise.resolve().then(l.bind(l,97068)),Promise.resolve().then(l.bind(l,71160)),Promise.resolve().then(l.bind(l,77871)),Promise.resolve().then(l.bind(l,34514)),Promise.resolve().then(l.bind(l,69975)),Promise.resolve().then(l.bind(l,49809)),Promise.resolve().then(l.bind(l,276)),Promise.resolve().then(l.bind(l,43616)),Promise.resolve().then(l.bind(l,36842)),Promise.resolve().then(l.bind(l,78696)),Promise.resolve().then(l.bind(l,48077)),Promise.resolve().then(l.bind(l,75186)),Promise.resolve().then(l.bind(l,62642)),Promise.resolve().then(l.bind(l,41572)),Promise.resolve().then(l.bind(l,8586)),Promise.resolve().then(l.bind(l,15453)),Promise.resolve().then(l.bind(l,81767)),Promise.resolve().then(l.bind(l,73290)),Promise.resolve().then(l.bind(l,37816)),Promise.resolve().then(l.bind(l,34299)),Promise.resolve().then(l.bind(l,31418)),Promise.resolve().then(l.bind(l,97107)),Promise.resolve().then(l.bind(l,42644)),Promise.resolve().then(l.bind(l,87321)),Promise.resolve().then(l.bind(l,73818)),Promise.resolve().then(l.bind(l,24120)),Promise.resolve().then(l.bind(l,1496)),Promise.resolve().then(l.bind(l,37396)),Promise.resolve().then(l.bind(l,90499)),Promise.resolve().then(l.bind(l,16963)),Promise.resolve().then(l.bind(l,87316)),Promise.resolve().then(l.bind(l,18480)),Promise.resolve().then(l.bind(l,56829)),Promise.resolve().then(l.bind(l,20025)),Promise.resolve().then(l.bind(l,8367)),Promise.resolve().then(l.bind(l,10271)),Promise.resolve().then(l.bind(l,27596)),Promise.resolve().then(l.bind(l,78325)),Promise.resolve().then(l.t.bind(l,52619,23)),Promise.resolve().then(l.t.bind(l,81356,23)),Promise.resolve().then(l.t.bind(l,41402,23)),Promise.resolve().then(l.bind(l,59735)),Promise.resolve().then(l.bind(l,29348)),Promise.resolve().then(l.bind(l,4275)),Promise.resolve().then(l.bind(l,97994)),Promise.resolve().then(l.bind(l,40077)),Promise.resolve().then(l.bind(l,35199))},31418:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var s=l(95155),a=l(51747),r=l(2577),i=l(56696),n=l(88370);let o=e=>{let{returnTo:t,isLoggedIn:l,shopUrl:a,absBaseUrl:o,ref:c,onSubscribeClick:d,onLoginClick:u,decorateUrl:m=e=>e}=e,x="".concat(a).concat(i.pk),h="".concat(o).concat(i.ND).concat(encodeURIComponent(t)),p=(0,r.C)(),b=!p,g=!l;return(0,s.jsxs)("div",{className:"qpb_container",ref:c,children:[(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n.qpb_container {\n font-family: Arial, sans-serif;\n max-width: 800px;\n margin: 0 auto;\n border: 1px solid #ccc;\n border-radius: 8px;\n overflow: hidden;\n}\n.qpb_banner {\n background-color: #ffe066;\n text-align: center;\n padding: 10px;\n font-weight: bold;\n}\n.qpb_content {\n display: flex;\n min-height: 400px;\n}\n.qpb_left_column {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: #fffde6;\n padding: 20px;\n}\n.qpb_left {\n padding-right: 10px;\n}\n.qpb_right {\n flex: 1;\n background-image: url('https://iniziative.giornaledibrescia.it/static.giornaledibrescia.it/2025/bilanci/hero-bilanci-desktop.jpg');\n background-size: cover;\n background-position: center;\n}\n.qpb_footer {\n background-color: #ffe066;\n padding: 20px 10px;\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 20px;\n}\n.qpb_price {\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 10px;\n text-align: center;\n}\n.qpb_subscribe {\n background-color: #000;\n color: #fff;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n margin-bottom: 10px;\n font-weight: bold;\n text-decoration: none;\n display: inline-block;\n}\n.qpb_subscribe a {\n color: #fff;\n text-decoration: none;\n}\n.qpb_already_subscribed_link {\n color: #000;\n text-decoration: underline;\n cursor: pointer;\n text-align: center;\n}\n@media (max-width: 768px) {\n .qpb_content {\n flex-direction: column;\n }\n .qpb_right {\n height: 200px;\n }\n .qpb_left_column {\n padding: 15px;\n }\n .qpb_footer {\n margin-top: 20px;\n }\n}\n"}}),(0,s.jsx)("div",{className:"qpb_banner",children:(0,s.jsx)("p",{children:"Accesso riservato agli abbonati"})}),(0,s.jsxs)("div",{className:"qpb_content",children:[(0,s.jsxs)("div",{className:"qpb_left_column",children:[(0,s.jsxs)("div",{className:"qpb_left",children:[(0,s.jsx)("h2",{children:"IMPRESE"}),(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Il servizio informativo dedicato alle imprese e ai professionisti bresciani"})}),(0,s.jsx)("p",{children:"L’abbonamento consente di accedere per un anno a:"}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:"L’analisi dei settori"}),(0,s.jsx)("li",{children:"I dati con i trend di bilancio di oltre 1000 aziende"}),(0,s.jsx)("li",{children:"La newsletter esclusiva"})]})]}),(b||g)&&(0,s.jsxs)("div",{className:"qpb_footer",children:[b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"qpb_price",children:(0,s.jsx)("p",{children:"35,00 €"})}),(0,s.jsx)("a",{href:m(x),className:"qpb_subscribe",onClick:()=>null==d?void 0:d(x),children:"ABBONATI"})]}),g&&(0,s.jsx)("a",{href:h,className:"qpb_already_subscribed_link",onClick:e=>(0,n.e)(e,p,h,u),children:"Sono gi\xe0 abbonato"})]})]}),(0,s.jsx)("div",{className:"qpb_right"})]})]})};var c=l(51852),d=l(28894),u=l(70708),m=l(36489),x=l(20063);let h=e=>{var t;let{children:l,url:r,premium:n,shopUrl:h,absBaseUrl:p}=e,b=(0,x.usePathname)(),{data:g}=(0,m.useSession)(),{codes:A,isGdbPlusSubscriber:v,isBilanciSubscriber:f,isLoading:j}=(0,u.A)(),w=null!=(t=(e=>{if(!e)return null;try{return new URL(e).pathname}catch(t){return e.startsWith("/")?e:"/".concat(e)}})(r))?t:b,y=r||window.location.href,N=!!g,k=!j&&(0,i.iu)(w)&&!f,C=!j&&!!n&&!v,E=(0,d._)(N,A),S=(0,a.usePaywallTracking)({paywallId:"gdbplus_article",userStatus:E,contentId:null!=w?w:void 0,enabled:C}),I=(0,a.usePaywallTracking)({paywallId:"bilanci_site_path",userStatus:E,contentId:null!=w?w:void 0,enabled:k}),_=k||C;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:_?"pointer-events-none max-h-[50px] select-none overflow-hidden [mask-image:linear-gradient(to_bottom,black_0%,transparent_100%)]":void 0,children:l}),k&&(0,s.jsx)(o,{returnTo:y,isLoggedIn:N,shopUrl:h,absBaseUrl:p,...(0,d.Y)(I)}),C&&(0,s.jsx)(c.K,{returnTo:y,isLoggedIn:N,shopUrl:h,absBaseUrl:p,...(0,d.Y)(S)})]})}},33040:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdagioAdv:()=>u});var s=l(95155),a=l(3872),r=l(34514),i=l(12115);let n=e=>{let{format:t,keywords:l,location:a,positions:n}=e;return(e=>{let{format:t,keywords:l,location:s,positions:a}=e;(0,i.useEffect)(()=>{if(!a.length)return;window._neodata=window._neodata||{};let e=window._neodata;e.adagioTag=e.adagioTag||[],e.adagioTag.push({sid:parseInt("91"),loc:s,fmt:t,pos:a,kw:l,ap:!0,params:[]});let r=document.createElement("script");return r.src="https://js-ssl.neodatagroup.com/uploads/js/opq.js",r.async=!0,document.body.appendChild(r),()=>{document.body.removeChild(r)}},[t,l,s,a])})({format:t,keywords:l,location:a,positions:n}),(0,s.jsxs)(r.DevComment,{children:["Adagio dynamic script: format=",t,", keywords=",l,", location=",a,", positions=",JSON.stringify(n)]})};var o=l(27596),c=l(78325),d=l(36245);let u=e=>{let{position:t,keywords:l,location:r,format:i,className:u}=e,m=(0,d.A)(),x=(0,o.U)(),h=(0,c.useIsPreview)(),p=r||x.loc,b=i||x.fmt,g=(null==l?void 0:l.join(","))||x.kw,A=[[t,m]];return h?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{id:m,className:u,position:t,format:b,keywords:g,location:p}),(0,s.jsx)(n,{format:b,keywords:g,location:p,positions:A})]})}},33320:(e,t,l)=>{"use strict";l.d(t,{CommentsSection:()=>G});var s=l(95155),a=l(51747),r=l(38581),i=l(19740),n=l(85203),o=l.n(n);let c=e=>{let{small:t=!1,mine:l=!1}=e;return(0,s.jsx)("span",{"aria-hidden":"true",className:o()("grid shrink-0 place-items-center rounded-full",t?"size-[30px] text-body-xs":"size-[36px] text-label-xs",l?"bg-yellow text-black":"bg-gray-5 text-gray-60"),children:(0,s.jsx)(i.gc,{icon:r.X46})})};var d=l(3648);let u=e=>{let{id:t,children:l}=e;return(0,s.jsxs)("p",{id:t,role:"alert",className:"mt-2 flex items-baseline gap-[6px] text-label-xs font-medium text-red-dark",children:[(0,s.jsx)(i.gc,{icon:r.lEd}),l]})},m=()=>(0,s.jsx)("span",{"aria-hidden":"true",className:"size-[14px] animate-spin rounded-full border-2 border-current border-r-transparent motion-reduce:animate-none"});var x=l(12135);function h(){let e=(0,d._)(["inline-flex min-h-[40px] items-center justify-center gap-2 rounded-[12px] px-[20px] text-button-label font-semibold"]);return h=function(){return e},e}function p(){let e=(0,d._)([""," bg-yellow text-black hover:bg-yellow-bright disabled:bg-gray-5 disabled:text-gray-60"]);return p=function(){return e},e}function b(){let e=(0,d._)([""," border border-gray-10 bg-white text-black hover:border-black disabled:border-gray-10 disabled:text-gray-60"]);return b=function(){return e},e}function g(){let e=(0,d._)(["text-label-xs font-semibold text-gray-75 decoration-yellow decoration-[3px] underline-offset-4 hover:text-black hover:underline disabled:text-gray-60 disabled:no-underline aria-expanded:text-black aria-expanded:underline"]);return g=function(){return e},e}function A(){let e=(0,d._)(["block min-h-[88px] w-full rounded-[16px] border border-gray-10 bg-gray-3 px-[14px] py-spacer text-body-md text-black"]);return A=function(){return e},e}function v(){let e=(0,d._)(["flex items-center gap-spacer rounded-[16px] px-3 py-[14px] text-body-sm text-gray-75"]);return v=function(){return e},e}let f=(0,x.tw)(h()),j=(0,x.tw)(p(),f),w=(0,x.tw)(b(),f),y=(0,x.tw)(g()),N=(0,x.tw)(A()),k=(0,x.tw)(v());var C=l(94635),E=l(5440);let S=E.z.object({id:E.z.string(),articleRef:E.z.object({source:E.z.string(),externalId:E.z.string(),title:E.z.string(),url:E.z.string()}),parentId:E.z.string().nullable(),author:E.z.object({userId:E.z.string(),displayName:E.z.string()}),body:E.z.string().nullable(),likesCount:E.z.number(),repliesCount:E.z.number(),liked:E.z.boolean(),createdAt:E.z.string(),deletedAt:E.z.string().nullable(),permissions:E.z.object({canDelete:E.z.boolean(),canLike:E.z.boolean(),canReply:E.z.boolean()})});E.z.object({items:E.z.array(E.z.object({comment:S,replies:E.z.array(S)})),nextCursor:E.z.string().nullable()}),E.z.object({count:E.z.number().int().nonnegative()}),E.z.object({items:E.z.array(S),nextCursor:E.z.string().nullable()}),E.z.object({liked:E.z.boolean(),likesCount:E.z.number()}),E.z.object({code:E.z.string(),message:E.z.string(),details:E.z.unknown().optional()});var I=l(12115);function _(){let e=(0,d._)(["resize-y placeholder:text-gray-60 focus:border-black focus:bg-white focus:outline-none focus:ring-[3px] focus:ring-yellow disabled:cursor-progress disabled:text-gray-60"]);return _=function(){return e},e}let P=(0,x.tw)(_()),D=e=>{let{reply:t=!1,autoFocus:l=!1,onSubmit:a,onCancel:r}=e,[i,n]=(0,I.useState)(""),[d,h]=(0,I.useState)(!1),[p,b]=(0,I.useState)(null),g=(0,I.useId)(),A=t?"Scrivi una risposta":"Scrivi un commento",v=async e=>{e.preventDefault();let t=i.trim();if(t&&!d){h(!0),b(null);try{await a(t),n("")}catch(e){b((0,C.g6)(e))}finally{h(!1)}}};return(0,s.jsxs)("form",{onSubmit:v,className:o()("flex gap-spacer",t?"pb-1 pt-[14px]":"border-b border-gray-10 pb-3"),children:[(0,s.jsx)(c,{small:t,mine:!0}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("textarea",{className:(0,x.Q)(o()(N,P,{"min-h-[72px]":t,"border-red-dark bg-white":p})),rows:3,maxLength:2e3,placeholder:"".concat(A,"…"),"aria-label":A,"aria-invalid":!!p||void 0,"aria-describedby":p?g:void 0,value:i,autoFocus:l,disabled:d,onChange:e=>n(e.target.value)}),p&&(0,s.jsx)(u,{id:g,children:p}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-3",children:[(0,s.jsxs)("span",{className:"flex-1 text-body-xs tabular-nums text-gray-60",children:[i.length,"/",2e3]}),r&&(0,s.jsx)("button",{type:"button",className:y,disabled:d,onClick:r,children:"Annulla"}),(0,s.jsxs)("button",{type:"submit",className:o()(j,{"disabled:cursor-progress":d}),disabled:!i.trim()||d,children:[d&&(0,s.jsx)(m,{}),d?"Invio…":t?"Rispondi":"Commenta"]})]})]})]})},z=[["w-[38%]","w-full","w-[72%]"],["w-[30%]","w-full","w-[56%]"],["w-[34%]","w-[84%]"]],B=()=>(0,s.jsx)("div",{"aria-hidden":"true",className:"animate-pulse motion-reduce:animate-none",children:z.map((e,t)=>(0,s.jsxs)("div",{className:"flex gap-spacer border-b border-gray-10 py-3",children:[(0,s.jsx)("span",{className:"size-[36px] shrink-0 rounded-full bg-gray-5"}),(0,s.jsx)("div",{className:"flex flex-1 flex-col gap-[10px] pt-1",children:e.map((e,t)=>(0,s.jsx)("span",{className:"block h-[10px] rounded-[5px] bg-gray-5 ".concat(e)},t))})]},t))}),L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,l=new Date(e),s=Math.round((t.getTime()-l.getTime())/1e3);if(s<60)return"adesso";let a=new Intl.RelativeTimeFormat("it",{numeric:"auto"}),r=Math.round(s/60);if(r<60)return a.format(-r,"minute");let i=Math.round(r/60);if(i<24)return a.format(-i,"hour");let n=Math.round(i/24);return n<7?a.format(-n,"day"):l.toLocaleDateString("it-IT",{day:"numeric",month:"long",year:"numeric"})};var R=l(97448),M=l(36489);let U=e=>{var t;let{comment:l,reply:a=!1,replyOpen:n,onReplyClick:d}=e,{data:m,status:x}=(0,M.useSession)(),[h,p]=(0,I.useState)(l),[b,g]=(0,I.useState)(!1),[A,v]=(0,I.useState)(null);(0,I.useEffect)(()=>p(l),[l]);let f=null===h.body,j="authenticated"===x,w=j&&!f&&(null==m||null==(t=m.user)?void 0:t.id)===h.author.userId,N=async()=>{if(!b&&!f){if(!j)return void(0,M.signIn)("gdbpiu",{callbackUrl:window.location.href});if(h.permissions.canLike){g(!0),v(null);try{let e=h.liked?await (0,C.TX)(h.id):await (0,C.HL)(h.id);p(t=>({...t,liked:e.liked,likesCount:e.likesCount}))}catch(e){v((0,C.g6)(e))}finally{g(!1)}}}},k=async()=>{if(window.confirm("Vuoi eliminare definitivamente il commento?")){v(null);try{await (0,C.Tu)(h.id),p(e=>({...e,body:null,deletedAt:new Date().toISOString(),permissions:{canDelete:!1,canLike:!1,canReply:!1}}))}catch(e){v((0,C.g6)(e))}}},E=!f&&(!j||h.permissions.canLike),S=!f&&!E&&h.likesCount>0,_=d&&!f,P=h.permissions.canDelete;return(0,s.jsxs)("div",{className:o()("flex gap-spacer",{"border-t border-gray-10 py-spacer":a,"py-3":!a,"-mx-spacer rounded-l-[12px] bg-gradient-to-r from-yellow-bright to-transparent to-85% px-spacer":w}),children:[(0,s.jsx)(c,{small:a,mine:w}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-1 text-body-sm",children:[(0,s.jsx)("span",{className:"font-semibold",children:h.author.displayName}),w&&(0,s.jsx)("span",{className:"rounded-[4px] bg-yellow px-[6px] py-[2px] text-label-categoria font-semibold uppercase tracking-wider text-black",children:"Tu"}),(0,s.jsx)("time",{dateTime:h.createdAt,className:"text-body-xs text-gray-60",children:L(h.createdAt)})]}),f?(0,s.jsxs)("p",{className:"flex items-baseline gap-1 text-body-sm italic text-gray-60",children:[(0,s.jsx)(i.gc,{icon:R.sjs}),"Commento eliminato"]}):(0,s.jsx)("p",{className:"whitespace-pre-line break-words text-body-sm",children:h.body}),(E||S||_||P)&&(0,s.jsxs)("div",{className:"mt-[6px] flex items-center gap-[20px]",children:[E&&(0,s.jsxs)("button",{type:"button",className:o()("inline-flex items-center gap-[6px] text-label-xs font-semibold hover:text-black disabled:opacity-40",h.liked?"text-black":"text-gray-75"),disabled:b,onClick:N,"aria-label":h.liked?"Togli mi piace":"Mi piace",children:[(0,s.jsx)(i.gc,{icon:h.liked?r.Wcv:R.Wcv}),h.likesCount]}),S&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-[6px] text-label-xs font-semibold text-gray-60",title:w?"Non puoi mettere mi piace ai tuoi commenti":void 0,children:[(0,s.jsx)(i.gc,{icon:R.Wcv}),h.likesCount]}),_&&(0,s.jsx)("button",{type:"button",className:y,"aria-expanded":n,onClick:d,children:"Rispondi"}),P&&(0,s.jsx)("button",{type:"button",className:o()(y,"ml-auto"),onClick:k,children:"Elimina"})]}),A&&(0,s.jsx)(u,{children:A})]})]})},T=e=>{let{item:t,closed:l,onReplyLocked:a}=e,[r,i]=(0,I.useState)(null),[n,c]=(0,I.useState)(null),[d,m]=(0,I.useState)(!1),[x,h]=(0,I.useState)(null),[p,b]=(0,I.useState)([]),[g,A]=(0,I.useState)(!1),v=null!=r?r:t.replies,f=(0,I.useMemo)(()=>{let e=new Set(v.map(e=>e.id));return[...v,...p.filter(t=>!e.has(t.id))]},[v,p]),j=null===r?t.comment.repliesCount>t.replies.length:null!==n,w=async()=>{if(!d){m(!0),h(null);try{let e=await (0,C.$b)(t.comment.id,null===r?null:n);i([...null!=r?r:[],...e.items]),c(e.nextCursor)}catch(e){h((0,C.g6)(e))}finally{m(!1)}}},N=async e=>{let l=await (0,C.VM)(t.comment.id,e);b(e=>[...e,l]),A(!1)},k=!l&&null===t.comment.deletedAt;return(0,s.jsxs)("div",{className:"border-b border-gray-10",children:[(0,s.jsx)(U,{comment:t.comment,replyOpen:g,onReplyClick:k?()=>{t.comment.permissions.canReply?A(e=>!e):a()}:void 0}),(f.length>0||j||g)&&(0,s.jsxs)("div",{className:"ml-6 pb-2",children:[f.map(e=>(0,s.jsx)(U,{comment:e,reply:!0},e.id)),j&&(0,s.jsx)("button",{type:"button",className:o()(y,"mb-1 mt-spacer"),disabled:d,onClick:w,children:d?"Caricamento…":"Mostra altre risposte (".concat(t.comment.repliesCount,")")}),x&&(0,s.jsx)(u,{children:x}),g&&(0,s.jsx)(D,{reply:!0,autoFocus:!0,onSubmit:N,onCancel:()=>A(!1)})]})]})};var q=l(56355),V=l(28894),O=l(70708),F=l(67016);let Q=e=>{let{onClick:t}=e;return(0,s.jsxs)("button",{type:"button",onClick:t,className:"group flex w-full gap-spacer border-b border-gray-10 pb-3 text-left",children:[(0,s.jsx)(c,{}),(0,s.jsx)("span",{className:o()(N,"flex-1 text-gray-60 group-hover:border-black"),children:"Scrivi un commento…"})]})},H=()=>(0,s.jsxs)("p",{className:o()(k,"mb-1 border border-dashed border-black bg-white"),children:[(0,s.jsx)(i.gc,{icon:r.DW4}),"I commenti per questo articolo sono chiusi."]}),G=e=>{let{source:t,externalId:l,articleTitle:n,articleUrl:c,shopUrl:d,absBaseUrl:u,closed:x=!1}=e,h=(0,I.useRef)(null),[p,b]=(0,I.useState)(!1),[g,A]=(0,I.useState)(null),{status:v}=(0,M.useSession)(),{codes:f,isGdbPlusSubscriber:j,isLoading:y}=(0,O.A)(),{items:N,error:E,isLoading:S,isLoadingMore:_,hasMore:P,loadMore:z,refresh:L}=((e,t,l)=>{var s,a,r,i;let{data:n}=(0,M.useSession)(),o=null!=(r=null==n||null==(s=n.user)?void 0:s.id)?r:"anon",c=(0,I.useCallback)((s,a)=>{var r;return l&&(!a||a.nextCursor)?["comments-feed",e,t,0===s?"":null!=(r=null==a?void 0:a.nextCursor)?r:"",o]:null},[l,e,t,o]),{data:d,error:u,isLoading:m,isValidating:x,size:h,setSize:p,mutate:b}=(0,F.Ay)(c,e=>{let[,t,l,s]=e;return(0,C.T7)(t,l,s||null)},{revalidateFirstPage:!1}),g=(0,I.useMemo)(()=>(null!=d?d:[]).flatMap(e=>e.items),[d]),A=!!d&&(null==(a=d[d.length-1])?void 0:a.nextCursor)!==null,v=h>(null!=(i=null==d?void 0:d.length)?i:0)&&x;return{items:g,error:u,isLoading:m,isLoadingMore:v,hasMore:A,loadMore:(0,I.useCallback)(()=>p(e=>e+1),[p]),refresh:(0,I.useCallback)(()=>b(),[b])}})(t,l,p);(0,I.useEffect)(()=>{let e=h.current;if(!e||p)return;if(!("IntersectionObserver"in window))return void b(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(b(!0),t.disconnect())},{rootMargin:"200px 0px"});return t.observe(e),()=>t.disconnect()},[p]);let U=async e=>{await (0,C.Gy)(t,l,{body:e,articleTitle:n,articleUrl:c}),L()},G="authenticated"===v,W=G&&j,X="unauthenticated"===v||G&&!y,K=(0,a.usePaywallTracking)({paywallId:"gdbplus_comments",userStatus:(0,V._)(G,f),contentId:(e=>{try{return new URL(e).pathname}catch(t){return e}})(c),trigger:null==g?void 0:g.trigger,enabled:null!==g}),Y=e=>{let t=new URL(window.location.href);t.hash="commenti",A({returnTo:t.toString(),trigger:e})},Z=null;return x?Z=(0,s.jsx)(H,{}):X&&(Z=W?(0,s.jsx)(D,{onSubmit:U}):(0,s.jsx)(Q,{onClick:()=>Y("comment_write")})),(0,s.jsxs)("section",{ref:h,id:"commenti","aria-labelledby":"commenti-titolo",children:[(0,s.jsx)("h2",{id:"commenti-titolo",className:"mb-3 border-b-[3px] border-yellow pb-2 font-serif text-headline-lg font-semibold",children:"Commenti"}),Z,p&&S&&(0,s.jsx)("div",{"aria-busy":"true",children:(0,s.jsx)(B,{})}),E&&(0,s.jsxs)("div",{role:"alert",className:o()(k,"mt-3 flex-wrap bg-gray-3"),children:[(0,s.jsx)(i.gc,{icon:r.JAe,className:"text-red-dark"}),(0,s.jsx)("span",{className:"flex-1",children:(0,C.g6)(E)}),(0,s.jsx)("button",{type:"button",className:w,onClick:()=>L(),children:"Riprova"})]}),p&&!S&&!E&&0===N.length&&(0,s.jsxs)("p",{className:o()(k,"mt-3 flex-col bg-gray-3 py-[28px] text-center"),children:[(0,s.jsx)(i.gc,{icon:R.q9p,className:"text-headline-lg text-gray-60"}),"Non ci sono ancora commenti."]}),N.length>0&&(0,s.jsx)("div",{children:N.map(e=>(0,s.jsx)(T,{item:e,closed:x,onReplyLocked:()=>Y("comment_reply")},e.comment.id))}),P&&(0,s.jsx)("div",{className:"flex pt-3",children:(0,s.jsxs)("button",{type:"button",className:w,disabled:_,onClick:z,children:[_&&(0,s.jsx)(m,{}),_?"Caricamento…":"Carica altri commenti"]})}),g&&(0,s.jsx)(q.f,{returnTo:g.returnTo,isLoggedIn:G,shopUrl:d,absBaseUrl:u,onClose:e=>{K.onDismiss(e),A(null)},...(0,V.Y)(K)})]})}},34299:(e,t,l)=>{"use strict";l.r(t),l.d(t,{NewsletterSingleItemInArticle:()=>x});var s=l(95155),a=l(36520),r=l(65900),i=l(27207),n=l(60432),o=l(1224),c=l(52076),d=l(21955),u=l(19740),m=l(12115);let x=e=>{let{mailupApGroup:t,mailupList:l,name:x,logo:h,text:p}=e,[b,g]=(0,m.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.Q,{className:"flex h-full flex-col items-center gap-3 lg:flex-row",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-[60px] w-[60px] shrink-0 items-center justify-center rounded-full bg-yellow",children:(0,s.jsx)(u.gc,{icon:c.v_,className:"text-[28px] text-black"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-body-md font-bold text-black",children:x}),(0,s.jsx)("p",{className:"mt-1 line-clamp-2 text-body-sm text-gray-80",children:p})]})]}),(0,s.jsxs)(r.$,{onClick:()=>g(!0),variant:"secondary",className:"w-full shrink-0 gap-2 py-2 text-body-sm font-semibold lg:w-auto",children:[(0,s.jsx)(u.gc,{icon:d.is}),"Iscriviti"]})]}),(0,s.jsxs)(i.a,{onClose:()=>g(!1),show:b,className:"mb-2",children:[(0,s.jsx)("h3",{className:"mb-5 text-headline-reg font-semibold",children:"Conferma l'iscrizione alla newsletter"}),(0,s.jsx)(n.R,{name:x,logo:h,text:p}),(0,s.jsx)(o.R,{mailupApGroup:t,mailupList:l})]})]})}},34514:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DevComment:()=>n});var s=l(95155),a=l(49809),r=l(12115);let i=e=>{let{children:t}=e,[l,a]=(0,r.useState)(!1);return(0,s.jsxs)("div",{className:"relative my-1 w-full",children:[l&&(0,s.jsx)("div",{className:"fixed inset-0 z-40",onClick:()=>a(!1),"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"relative z-50",children:[(0,s.jsx)("button",{type:"button",onClick:()=>a(e=>!e),"aria-label":"Toggle dev comment",className:"font-mono inline-flex items-center gap-1 rounded bg-red-dark px-2 py-1 text-[12px] font-bold leading-none text-white",children:"DEV"}),l&&(0,s.jsx)("div",{className:"absolute left-0 top-full z-50 mt-1 max-h-[200px] w-max max-w-[280px] overflow-auto border border-red-dark bg-white p-2 text-body-xs text-gray shadow-md",children:t})]})]})},n=e=>(0,s.jsx)(a.DevOnly,{children:(0,s.jsx)(i,{...e})})},34931:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(95155),a=l(85203),r=l.n(a);let i=e=>{let{children:t,className:l,...a}=e;return(0,s.jsxs)("div",{...a,role:"status",className:r()(l,"animate-pulse"),children:[t,(0,s.jsx)("div",{className:"sr-only",children:"Caricamento..."})]})}},35199:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>s});let s={src:"/_next/static/media/podcast.aeae1e79.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAKlBMVEX/8Az96Q3/7A3/9gu3rRLUxw/BthHp2Q5ZWhmlnhNjYhiSjRQ/QxuflxQv0BASAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANklEQVR4nDXLQQ7AIAzEQHc3CVDo/79bgYRPczF6TkKybQRtjG8mOPrbVxkyKqPpoDYE7IW7/yGHAN7KcOuuAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},36245:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(12115);let a=()=>(0,s.useId)().replace("\xab","-").replace("\xbb","-")},36520:(e,t,l)=>{"use strict";l.d(t,{Q:()=>i});var s=l(95155),a=l(85203),r=l.n(a);let i=e=>{let{className:t,children:l}=e;return(0,s.jsx)("div",{className:r()("rounded-lg border border-gray-10 bg-gradient-to-br from-[#f8f9fa] to-[#e9ecef] p-3",t),children:l})}},36750:(e,t,l)=>{"use strict";l.d(t,{M:()=>a});var s=l(95155);let a=e=>{let{moduleName:t,children:l}=e;return(0,s.jsx)("div",{"data-mrf-recirculation":t,children:l})}},36842:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentAdv:()=>c});var s=l(95155),a=l(33040),r=l(8967),i=l(25016),n=l(12115),o=l(47650);let c=e=>{var t;let{content:l,className:c}=e,d=(0,r.A)(),u=null==l?void 0:l.optionalId,[m,x]=(0,n.useState)(null);(0,n.useEffect)(()=>{x(document.getElementById(d?"adv-position2-mobile-article-".concat(u):"adv-position2-desktop-article-".concat(u)))},[d,u]);let h=[];return l&&"relatedSections"in l&&(null==(t=l.relatedSections)||t.map(e=>{let t=(null==e?void 0:e.__typename)==="Section"&&(0,i.t0)(e.config).adagioKw;t&&h.push(t)})),!!m&&(0,o.createPortal)((0,s.jsx)(a.AdagioAdv,{position:"position2",keywords:h,className:c}),m)}},37396:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var s=l(95155),a=l(65900),r=l(22264),i=l(30482),n=l(88309),o=l(10451),c=l(12115);let d=e=>{let{path:t,slotId:l,usedIds:d,onSlotTeasers:u}=e,[m,x]=(0,c.useState)(!1),[h,p]=(0,c.useState)([]),[b,g]=(0,c.useState)(!1),A=(0,c.useCallback)(()=>{x(!0),u({offset:h.length+d.length,path:t,slotId:l,usedIds:d}).then(e=>{p([...h,...e.results])}).finally(()=>x(!1))},[t,h,l,d,u]);return(0,c.useEffect)(()=>{u({offset:d.length,limit:0,path:t,slotId:l,usedIds:d}).then(e=>g(e.hasMore))},[t,l,d,u]),(0,s.jsxs)(s.Fragment,{children:[h.length>0&&(0,s.jsx)(r.q,{bordersLg:"top",bordersSm:"top",children:(0,s.jsx)(i.I,{divideSm:!0,divideLg:!0,children:h.map((e,t)=>!!e&&(0,s.jsx)(o.I,{item:e,layout:o.D.LIST_ITEM},t))})}),b&&(0,s.jsxs)(a.$,{className:"mx-auto my-4",onClick:A,disabled:m,children:[m&&(0,s.jsx)(n.y,{}),"Carica altri articoli"]})]})}},41572:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MatchLive:()=>q});var s=l(95155),a=l(88309),r=l(51033);let i={src:"/_next/static/media/card-red.39770c48.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEVMaXHtOzvwupT1ODjsPj7vWVD05bbuOTnvPDzrNTX3zaLumXz11qf/7L3/3LH/3K/82q3/6Lj9Pz/8Ojv5i3X/zKRCkv91AAAAEXRSTlMAhPkbNv05/JZE192jiEJn/SlDBoYAAAAJcEhZcwAAAN0AAADdAXBTogcAAAA5SURBVHicNchJDoAgEADBFoWRnQH9/1eJEm6VgqOLXAB3F/Eba4a1a4Z5ogNOH17NX5FU6w/XtDABN5QBrsivDcoAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},n={src:"/_next/static/media/card-yellow.c71156d0.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEXw0GLz3oT61LP59Urz7EX/4rX015H28khMaXH380r18Uny5GDwz5T01af/6r7/3K///07//kn58Fn+633/4aX/87zTwiIOAAAAEHRSTlMCKDsnQ/7b/QCWiPv5popn3RjrdgAAAAlwSFlzAAAA7AAAAOwBeShxvQAAADlJREFUeJxVxkkOgCAQRcGfhqYfjqBw/6uaGDfWqsTSIhIStUXkf/p6fdnuYoiUy5gHQuzu5xsbbjxKpQIVYi2NCAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},o={src:"/_next/static/media/fault.6a1cdbb0.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAM1BMVEVMaXH306pQo9hIm8/61q780Kj+2K3/5L/51q0ditrx0atLms782K39165Hms/87L7/4bIMlhqIAAAAD3RSTlMApPbgdBu+BWIMtqPgiKWMt1NaAAAACXBIWXMAAADsAAAA7AF5KHG9AAAAOElEQVR4nC3GSRKAMAhFwZcB+MQB739aSyurbnIsdwHZ61ntgrwlYQEQbh9g5yQgUP2BtpOjH/ACMakBM/PLpJAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},c={src:"/_next/static/media/goal.2fd97d0d.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAMFBMVEUAAABMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACKdyomAAAAEHRSTlNaACY6SjPQ/Jek5HJwA6gCF4PRGQAAAAlwSFlzAAAAvQAAAL0BHVrG+gAAADhJREFUeJwFwYcBgEAQwzDn+hdg/22RkLE3JsyVKTdWCpSLitN9okC3+wri8Rn/AquRpgz5SyzXDydBAS4oX8C3AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},d={src:"/_next/static/media/injury.bd95871c.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAElBMVEXMZmbvWlrvWFjtWFj8Xl7uWVnTwaldAAAABHRSTlMDgcB2M027hAAAAAlwSFlzAAAA7AAAAOwBeShxvQAAAClJREFUeJxli0EKACAQhJxd9/9fjiDqkCdBBKJhcyRdWh3UGfXJTd+1ABUYAJWv9j5eAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},u={src:"/_next/static/media/switch-in.f699972c.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEVMaXEAvAAAuQAAuQAAugAAugAAuwAAugAAvgAAxgD69hnHAAAACXRSTlMACYqfrXfRODP2JtBIAAAACXBIWXMAABZ/AAAWfwGkE7q/AAAAL0lEQVR4nE3JSw4AIAxCQaAf7f0vbGxdyGZeAvBN9qzqinRPAdiUcc3nDREGTl4ODfgAYM3I08EAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},m={src:"/_next/static/media/switch-out.1a22b7d9.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEVMaXH2LgX/LhD2Lwb3LgX4MQb3LwX4Lwb/MgY7tb2OAAAACHRSTlMAiAmfrTbRcViB+jMAAAAJcEhZcwAAAOwAAADsAXkocb0AAAAtSURBVHicLYlJDgAgDITodP3/i41VLpAAIHER7by0WKXMlUBXRNmeGd+HfT8ODc4AXoO7jMUAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},x={src:"/_next/static/media/tripla.b66366bd.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAYFBMVEVMaXH+uVj/w4T/qlH/3Wv/skb/7Uj/tXH/4E3//nH/x2P/p0n/t0T/vz7/ykL/6kj/0En/0j//40T+yUn9xEP7kzr8dVH8ckz9tjn/x0n/yjf/iVr/tHb/lWT/tjn/lFGb3A31AAAAHXRSTlMA9vzufzoOBCA5t0nw8Y4xU8iUZb37+/73cv/+/hcHbTwAAAAJcEhZcwAAAOwAAADsAXkocb0AAABCSURBVHicBcGHAYAgEACxoz5g70rR/bc0AXiMsYJgv1aqRaIqurZEWN+z6paYlnxcRUXCkPO9R3D9uM0BwXV4L8IPdysDNWnNQK4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},h={src:"/_next/static/media/watch.d5a598a0.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAKlBMVEVMaXGPVUKozMy80dKbvL+kwMTF09fm7OyYubyjwMPDycylwcTL3+KbjII/amqYAAAADHRSTlMAtQhUWMn+/VjI/cgI9nGAAAAACXBIWXMAAADsAAAA7AF5KHG9AAAANElEQVR4nD2LSQ4AIAgDC4q4lP9/10CMvXSSaQFABJUW0bLVOJYC6Bybs8C9QA9pqf743S8i/QD78rluUgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8};var p=l(15239);let b={replace:e=>"attribs"in e&&"fa fa-file yellow"===e.attribs.class?(0,s.jsx)(p.default,{src:n,alt:"Cartellino giallo",className:"inline-block"}):"attribs"in e&&"fa fa-file red"===e.attribs.class?(0,s.jsx)(p.default,{src:i,alt:"Cartellino rosso",className:"inline-block"}):"attribs"in e&&"fa fa-caret-down"===e.attribs.class?(0,s.jsx)(p.default,{src:m,alt:"Uscita dal campo",className:"inline-block",width:24}):"attribs"in e&&"fa fa-caret-up"===e.attribs.class?(0,s.jsx)(p.default,{src:u,alt:"Ingresso in campo",className:"inline-block",width:24}):"attribs"in e&&"fa fa-futbol-o"===e.attribs.class?(0,s.jsx)(p.default,{src:c,alt:"Goal",className:"mr-1 inline-block",width:24}):"attribs"in e&&"fa fa-clock-o"===e.attribs.class?(0,s.jsx)(p.default,{src:h,alt:"Tempo",className:"inline-block"}):"attribs"in e&&"fa fa-plus-square"===e.attribs.class?(0,s.jsx)(p.default,{src:d,alt:"Infortunio",className:"mr-1 inline-block",width:24}):"attribs"in e&&"foul"===e.attribs.class?(0,s.jsx)(p.default,{src:o,alt:"Fallo tecnico",className:"inline-block",width:28}):"attribs"in e&&"fas fa-fire orange"===e.attribs.class?(0,s.jsx)(p.default,{src:x,alt:"Tripla",className:"inline-block"}):void 0},g=e=>{let{html:t,className:l}=e;return(0,s.jsx)(r.m,{html:t,options:b,className:l})};var A=l(85203),v=l.n(A);let f=e=>{let{item:t}=e;return(0,s.jsxs)("div",{className:"flex items-center py-3",children:[t.minuti&&(0,s.jsx)("div",{className:"basis-2/12 text-center font-bold",children:t.minuti}),(0,s.jsx)("div",{className:v()({"basis-10/12":t.minuti,"px-3":!t.minuti}),children:(0,s.jsx)(g,{html:t.testo})})]})},j=e=>{let{item:t}=e;return(0,s.jsxs)("div",{className:"flex items-center py-3",children:[t.minuti&&(0,s.jsx)("div",{className:"basis-2/12 text-center font-bold",children:t.minuti}),(0,s.jsx)("div",{className:v()({"basis-10/12":t.minuti,"px-3":!t.minuti}),children:(0,s.jsx)(g,{className:"font-bold",html:t.testo})})]})},w=e=>{let{item:t}=e;return(0,s.jsx)("div",{className:"py-5 text-center text-headline-md font-semibold uppercase lg:text-headline-lg",children:t.testo})},y=e=>{let{match:t}=e;return(0,s.jsxs)("div",{className:"p-0 pt-3 lg:p-2 lg:pt-5",children:[(0,s.jsx)("div",{className:"text-center font-bold uppercase",children:"Cronaca"}),(0,s.jsx)("div",{className:"flex flex-col divide-y divide-cool-grey-bright text-body-md",children:t.cronaca.map((e,t)=>(0,s.jsxs)("div",{children:["break"===e.tipo&&(0,s.jsx)(w,{item:e}),"normal"===e.tipo&&(0,s.jsx)(f,{item:e}),"bold"===e.tipo&&(0,s.jsx)(j,{item:e})]},t))})]})};var N=l(85576);let k=e=>{let{label:t,html:l,className:a}=e;return(0,s.jsxs)("div",{className:a,children:[(0,s.jsx)("div",{className:"mb-2 font-bold uppercase",children:t}),(0,s.jsx)(g,{html:l})]})},C=e=>{let{match:t}=e;return(0,s.jsxs)("div",{className:"p-0 pt-3 lg:p-2",children:[(0,s.jsx)("div",{className:"pb-3 text-center font-bold uppercase",children:"squadre"}),t.note&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-4 text-body-sm",children:(0,s.jsx)("span",{className:"mb-3 font-bold uppercase",children:"Note e Statistiche:"})}),(0,s.jsx)(N.s,{className:"mb-5",children:(0,s.jsx)(r.m,{html:t.note})})]}),(0,s.jsxs)("div",{className:"mb-3 flex justify-evenly gap-5 text-body-sm",children:[(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:t.squadraA.nome,html:t.squadraA.formazione,className:"mb-5 flex flex-col items-center justify-center"})}),(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:t.squadraB.nome,html:t.squadraB.formazione,className:"mb-5 flex flex-col items-center justify-center"})})]}),(0,s.jsxs)("div",{className:"mb-3 flex justify-evenly gap-5 text-body-sm",children:[(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:"Quintetto iniziale",html:t.squadraA.panchina,className:"mb-3"})}),(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:"Quintetto iniziale",html:t.squadraB.panchina,className:"mb-3"})})]})]})};var E=l(12115);let S=e=>{let{match:t}=e,[l,a]=(0,E.useState)(!0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-x-3 rounded-b-xl bg-blue-dark px-3 pt-3 text-white",children:[(0,s.jsx)("button",{onClick:()=>a(!0),disabled:l,className:v()("p-2 text-body-xs font-semibold uppercase lg:text-body-sm",{"border-b-4 border-yellow":l,"border-b-4 border-blue-dark":!l}),children:"cronaca"}),(0,s.jsx)("button",{onClick:()=>a(!1),disabled:!l,className:v()("p-2 text-body-xs font-semibold uppercase lg:text-body-sm",{"border-b-4 border-yellow":!l,"border-b-4 border-blue-dark":l}),children:"formazione e statistiche"})]}),(0,s.jsxs)("div",{className:"not-prose",children:[l&&(0,s.jsx)(y,{match:t}),!l&&(0,s.jsx)(C,{match:t})]})]})};var I=l(79600);let _=e=>{let{squadra:t,sport:l,className:a}=e;return(0,s.jsx)("div",{className:v()("text-center",{"text-body-xs lg:text-body-sm":"basket"===l,"text-body-xs lg:text-body-lg ":"calcio"===l},a),children:t.nome})},P=e=>{let{squadra:t,className:l}=e;return(0,s.jsx)("div",{className:v()("text-center text-display-lg lg:text-[60px]/[60px]",l),children:t.risultato})},D=e=>{let{squadra:t,sport:l}=e;return(0,s.jsx)(p.default,{alt:t.nome,src:t.logo,unoptimized:!0,width:80,height:80,className:"h-[50px] w-auto lg:h-[80px]"})},z=e=>{let{match:t}=e;return(0,s.jsxs)("div",{className:"rounded-t-xl bg-blue-dark p-1 text-white",children:[(0,s.jsx)("div",{className:"text-center font-bold uppercase",children:(0,s.jsx)(I.B,{date:new Date(t.data),className:"text-body-sm"})}),(0,s.jsxs)("div",{className:"flex items-center justify-evenly",children:[(0,s.jsxs)("div",{className:"flex basis-1/2 flex-col items-center justify-center px-1 lg:px-3",children:[(0,s.jsx)(D,{squadra:t.squadraA,sport:"basket"}),(0,s.jsx)(_,{squadra:t.squadraA,sport:"basket",className:"mb-3 mt-2 font-bold"}),(0,s.jsx)(P,{squadra:t.squadraA,className:"font-bold"})]}),(0,s.jsx)("div",{className:"px-1 text-display-lg font-extralight lg:px-3",children:" | "}),(0,s.jsxs)("div",{className:"flex basis-1/2 flex-col items-center justify-center px-1 lg:px-3",children:[(0,s.jsx)(D,{squadra:t.squadraB,sport:"basket"}),(0,s.jsx)(_,{squadra:t.squadraB,sport:"basket",className:"mb-3 mt-2 font-bold"}),(0,s.jsx)(P,{squadra:t.squadraB,className:"font-bold"})]})]}),(0,s.jsx)("div",{className:"text-center text-highlights-sm capitalize",children:t.stato}),t.arbitro&&(0,s.jsxs)("p",{className:"mt-3 px-3 text-body-sm",children:[(0,s.jsx)("div",{className:"uppercase",children:"Arbitro:"})," ",t.arbitro]})]})},B=e=>{let{match:t}=e;return(0,s.jsxs)("div",{className:"p-3 lg:p-5",children:[(0,s.jsx)("div",{className:"pb-3 text-center font-bold uppercase",children:"squadre"}),(0,s.jsxs)("div",{className:"mb-3 flex justify-evenly gap-5 text-body-sm",children:[(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:t.squadraA.nome,html:t.squadraA.formazione,className:"mb-5 flex flex-col items-center justify-center"})}),(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:t.squadraB.nome,html:t.squadraB.formazione,className:"mb-5 flex flex-col items-center justify-center"})})]}),(0,s.jsxs)("div",{className:"mb-3 flex justify-evenly gap-5 text-body-sm",children:[(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:"a disposizione",html:t.squadraA.panchina,className:"mb-3"})}),(0,s.jsx)("div",{className:"basis-1/2",children:(0,s.jsx)(k,{label:"a disposizione",html:t.squadraB.panchina,className:"mb-3"})})]}),(0,s.jsxs)("div",{className:"mb-3 flex justify-evenly gap-5 text-body-sm",children:[(0,s.jsx)("div",{className:"basis-1/2",children:t.squadraA.sostituzioni&&(0,s.jsx)(k,{label:"sostituzioni",html:t.squadraA.sostituzioni,className:"mb-3"})}),(0,s.jsx)("div",{className:"basis-1/2",children:t.squadraB.sostituzioni&&(0,s.jsx)(k,{label:"sostituzioni",html:t.squadraB.sostituzioni,className:"mb-3"})})]}),(0,s.jsxs)("div",{className:"mb-3 flex justify-evenly gap-5 text-body-sm",children:[(0,s.jsx)("div",{className:"basis-1/2",children:t.squadraA.ammonizioni&&(0,s.jsx)(k,{label:"cartellini",html:t.squadraA.ammonizioni})}),(0,s.jsx)("div",{className:"basis-1/2",children:t.squadraB.ammonizioni&&(0,s.jsx)(k,{label:"cartellini",html:t.squadraB.ammonizioni})})]})]})},L=e=>{let{match:t}=e,[l,a]=E.useState(!0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-x-3 rounded-b-xl bg-gray px-3 pt-3 text-white",children:[(0,s.jsx)("button",{onClick:()=>a(!0),disabled:l,className:v()("p-2 text-headline-sm font-semibold uppercase",{"border-b-4 border-yellow":l,"border-b-4 border-gray":!l}),children:"cronaca"}),(0,s.jsx)("button",{onClick:()=>a(!1),disabled:!l,className:v()("p-2 text-headline-sm font-semibold uppercase",{"border-b-4 border-yellow":!l,"border-b-4 border-gray":l}),children:"formazione"})]}),(0,s.jsxs)("div",{className:"not-prose",children:[l&&(0,s.jsx)(y,{match:t}),!l&&(0,s.jsx)(B,{match:t})]})]})},R=e=>{let{match:t}=e;return(0,s.jsxs)("div",{className:"rounded-t-xl bg-gray p-1 text-white",children:[(0,s.jsx)("div",{className:"text-center font-bold uppercase",children:(0,s.jsx)(I.B,{date:new Date(t.data),className:"text-body-sm"})}),(0,s.jsxs)("div",{className:"flex items-center justify-evenly",children:[(0,s.jsxs)("div",{className:"flex grow basis-1/2 flex-col items-center gap-2 lg:flex-row lg:justify-between",children:[(0,s.jsxs)("div",{className:"flex grow flex-col items-center justify-center",children:[(0,s.jsx)(D,{squadra:t.squadraA,sport:"calcio"}),(0,s.jsx)(_,{squadra:t.squadraA,sport:"calcio",className:"mt-2 text-nowrap font-bold uppercase"})]}),(0,s.jsx)(P,{squadra:t.squadraA,className:"px-3 font-bold"})]}),(0,s.jsx)("div",{className:"px-1 text-display-lg font-extrabold lg:px-3",children:"-"}),(0,s.jsxs)("div",{className:"flex basis-1/2 flex-col-reverse items-center gap-2 lg:flex-row lg:justify-between",children:[(0,s.jsx)(P,{squadra:t.squadraB,className:"px-3 font-bold"}),(0,s.jsxs)("div",{className:"flex grow flex-col items-center justify-center",children:[(0,s.jsx)(D,{squadra:t.squadraB,sport:"calcio"}),(0,s.jsx)(_,{squadra:t.squadraB,sport:"calcio",className:"mt-2 text-nowrap font-bold uppercase"})]})]})]}),(0,s.jsx)("div",{className:"text-center text-highlights-sm capitalize",children:t.stato}),(0,s.jsxs)("div",{className:"mb-4 flex items-center justify-evenly pt-2",children:[(0,s.jsx)("div",{className:"flex basis-1/2 items-center justify-center text-body-sm",children:(0,s.jsx)(r.m,{html:t.squadraA.marcatori})}),(0,s.jsx)("div",{className:"px-3"}),(0,s.jsx)("div",{className:"flex basis-1/2 items-center justify-center text-body-sm",children:(0,s.jsx)(r.m,{html:t.squadraB.marcatori})})]}),t.arbitro&&(0,s.jsxs)("p",{className:"px-3 text-body-sm",children:[(0,s.jsx)("span",{className:"uppercase",children:"Arbitro:"})," ",t.arbitro]}),t.note&&(0,s.jsxs)("p",{className:"px-3 text-body-sm",children:[(0,s.jsx)("span",{className:"uppercase",children:"Note:"})," ",t.note]})]})};var M=l(41912),U=l(25016);let T={basket:"https://backoffice.giornaledibrescia.it/basket-live/preview_gdb/",calcio:"https://backoffice.giornaledibrescia.it/live/preview_gdb/"},q=e=>{let{id:t,sport:l}=e,[r,i]=(0,E.useState)(null),n="".concat(T[l]).concat(t),o=e=>fetch(e).then(e=>e.json()).then(e=>i(e)).catch(()=>i(null));return(0,E.useEffect)(()=>{o(n)},[n]),(0,M.$)(()=>{(0,U.Sc)("Polling match"),o(n)},3e4),(0,s.jsx)("div",{className:"not-prose font-sans",children:r?(0,s.jsxs)("div",{className:"flex flex-col",children:["basket"===l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{match:r.match}),(0,s.jsx)(S,{match:r.match})]}),"calcio"===l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(R,{match:r.match}),(0,s.jsx)(L,{match:r.match})]})]}):(0,s.jsx)(a.y,{})})}},41912:(e,t,l)=>{"use strict";l.d(t,{$:()=>a});var s=l(12115);function a(e,t){let l=(0,s.useRef)(null);(0,s.useEffect)(()=>{l.current=e},[e]),(0,s.useEffect)(()=>{if(null!==t){let e=setInterval(function(){l.current&&l.current()},t);return()=>clearInterval(e)}},[t])}},42644:(e,t,l)=>{"use strict";l.r(t),l.d(t,{Reloader:()=>n});var s=l(78397),a=l(41912),r=l(25016),i=l(20063);let n=e=>{let{interval:t=3e5,method:l="routerReload"}=e,n=(0,i.useRouter)();return(0,a.$)(()=>{(0,r.Sc)("Page reload"),"routerReload"===l?((0,s.S)(),n.refresh()):window.location.reload()},t),null}},43008:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var s=l(95155),a=l(79600),r=l(75186),i=l(59789),n=l(19740);let o=e=>{let{title:t,publicationDate:l,url:o}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"mt-2 line-clamp-4 font-serif text-title-sm font-semibold",children:(0,s.jsx)(r.default,{href:o,children:t})}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-[0.72rem]",children:[(0,s.jsx)(n.gc,{icon:i.ok,className:"text-[12px] text-yellow"}),(0,s.jsx)(a.B,{date:new Date(l),className:"text-gray-75"})]})]})}},43023:(e,t,l)=>{"use strict";l.d(t,{Cv:()=>o,Ir:()=>n,Vu:()=>c,jt:()=>d});var s=l(76296),a=l(25016),r=l(36489),i=l(12115);let n=(e,t)=>{let{status:l}=(0,r.useSession)();return(0,i.useMemo)(()=>{if(["authenticated","unauthenticated"].includes(l)){var r,i,n,o,c,d;let u=(null==(r=e.relatedSections)?void 0:r.map(e=>e&&e.title).filter(a.Pe))||[],m=(null==(i=e.authors)?void 0:i.map(e=>e&&e.name).filter(a.Pe))||[],x=((null==(n=e.tags)?void 0:n.map(e=>e&&e.name))||[]).concat((null==(o=e.locations)?void 0:o.map(e=>e&&e.name))||[]).concat((null==(c=e.organizations)?void 0:c.map(e=>e&&e.name))||[]).concat((null==(d=e.persons)?void 0:d.map(e=>e&&e.name))||[]).filter(a.Pe);return{event:"article",trigger:t,section:e.parent&&"title"in e.parent?e.parent.title:void 0,related_sections:u,related_sections_joined:null==u?void 0:u.join("|"),premium:e.premiumType===s.Cv.Premium,url:e.url,title:e.title,page_title:(0,a.SI)(e.title||""),publication_date:e.publishedDate,authors:m,authors_joined:m.join("|"),tags:x,tags_joined:x.join("|"),user_logged:"authenticated"===l}}return null},[e,l,t])},o=e=>{let{status:t}=(0,r.useSession)();return(0,i.useMemo)(()=>["authenticated","unauthenticated"].includes(t)&&e.__typename&&["ImageGallery","Video"].includes(e.__typename)?{event:"ImageGallery"===e.__typename?"photogallery":"video",url:"url"in e?e.url:null,title:e.title,user_logged:"authenticated"===t}:null,[e,t])},c=()=>{let{status:e}=(0,r.useSession)();return(0,i.useMemo)(()=>["authenticated","unauthenticated"].includes(e)?{event:"homepage",user_logged:"authenticated"===e}:null,[e])},d=e=>{let{status:t}=(0,r.useSession)();return(0,i.useMemo)(()=>["authenticated","unauthenticated"].includes(t)?{event:"minihome",url:"url"in e?e.url:null,title:e.title,user_logged:"authenticated"===t}:null,[e,t])}},44732:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AudioboostPlayer:()=>i});var s=l(95155),a=l(69609),r=l(12115);let i=e=>{let{url:t,primary:l=!1}=e,i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=i.current;if(e)return(0,a.Ps)(t,e),()=>{(0,a._j)(t,e)}},[t]),(0,s.jsx)("div",{ref:i,...l?{id:"speakup-player"}:{}})}},46368:(e,t,l)=>{"use strict";l.d(t,{default:()=>r});var s=l(95155);let a=(0,l(67909).default)(()=>Promise.all([l.e(2177),l.e(808)]).then(l.bind(l,80808)),{loadableGenerated:{webpack:()=>[80808]},ssr:!1}),r=e=>(0,s.jsx)(a,{...e})},48077:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HubspotForm:()=>r});var s=l(95155),a=l(12115);let r=e=>{let{portalId:t,formId:l,region:r}=e,i=(0,a.useRef)(null),n="hubspot-form-".concat(l);return(0,a.useEffect)(()=>{let e=document.querySelector('script[src*="js.hsforms.net"]'),s=()=>{window.hbspt&&i.current&&window.hbspt.forms.create({portalId:t,formId:l,region:r,target:"#".concat(n)})};if(e)s();else{let e=document.createElement("script");e.src="//js-".concat(r,".hsforms.net/forms/embed/v2.js"),e.charset="utf-8",e.type="text/javascript",e.async=!0,e.onload=()=>{s()},document.body.appendChild(e)}},[t,l,r,n]),(0,s.jsx)("div",{id:n,ref:i})}},56829:(e,t,l)=>{"use strict";l.r(t),l.d(t,{Ticker:()=>r});var s=l(95155),a=l(12115);let r=e=>{let{children:t,delay:l="5s",pixelPerSecond:r=60}=e,i=(0,a.useRef)(null),[n,o]=(0,a.useState)(0);return(0,a.useEffect)(()=>{if(!i.current||!i.current.parentElement)return;let e=i.current.offsetWidth;e>i.current.parentElement.offsetWidth&&o(e/r)},[t,r]),(0,s.jsx)("div",{className:"relative m-2 flex",children:(0,s.jsx)("div",{className:"hover:animation-pause flex animate-marquee gap-5 whitespace-nowrap",ref:i,style:{animationDuration:"".concat(n,"s"),animationDelay:l},children:t})})}},56936:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(12115);let a=()=>{let[e,t]=(0,s.useState)();return(0,s.useEffect)(()=>{let e=()=>{let e=window.__tcfapi;if(e)try{e("getTCData",2,(e,l)=>{l&&t({tcString:e.tcString,tcfPolicyVersion:e.tcfPolicyVersion,cmpId:e.cmpId,cmpVersion:e.cmpVersion,gdprApplies:e.gdprApplies,eventStatus:e.eventStatus})})}catch(e){console.error("useTcData: cannot call getTCData",e)}},l=window.__gdb_cmp;if(null==l?void 0:l.addEventListener)return l.addEventListener(e),()=>l.removeEventListener(e);e()},[]),e}},58477:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentGroup:()=>i});var s=l(20063),a=l(12115),r=l(85278);let i=e=>{let{group:t}=e,l=(0,s.usePathname)();return(0,a.useEffect)(()=>{(0,r.X)(t)},[t,l]),null}},60432:(e,t,l)=>{"use strict";l.d(t,{R:()=>i});var s=l(95155),a=l(30482),r=l(15239);let i=e=>{let{name:t,logo:l,text:i,className:n}=e;return(0,s.jsx)("div",{className:n,children:(0,s.jsxs)(a.I,{columnsLg:2,columnsSm:2,className:"items-center",children:[(0,s.jsx)("div",{className:"lg:col-span-2",children:(0,s.jsx)(r.default,{src:l,alt:t,width:200,height:200,className:"mx-auto",unoptimized:!0})}),(0,s.jsx)("div",{className:"lg:col-span-2",children:(0,s.jsx)("p",{className:"text-body-sm",children:i})})]})})}},62642:(e,t,l)=>{"use strict";l.d(t,{default:()=>b});var s=l(95155),a=l(42027),r=l(3648),i=l(30482),n=l(75186),o=l(12135),c=l(85203),d=l.n(c),u=l(15239);function m(){let e=(0,r._)(["h-[100px]"]);return m=function(){return e},e}function x(){let e=(0,r._)(["h-[80px]"]);return x=function(){return e},e}(0,o.tw)(m()),(0,o.tw)(x());let h=e=>{let{image:t,title:l,subtitle:a,buttonLabel:r,url:o,external:c=!1,reversed:m=!1,className:x}=e;return(0,s.jsxs)(i.I,{columnsLg:3,className:d()("mx-auto w-full max-w-3xl items-center bg-gray-4 p-2",m?"flex-row-reverse":"flex-row",x),children:[(0,s.jsx)("div",{className:d()("relative aspect-video w-full flex-none",{"lg:order-last":m}),children:(0,s.jsx)(u.default,{src:t,alt:l,fill:!0,className:"rounded",unoptimized:!0})}),(0,s.jsxs)("div",{className:"col-span-2",children:[(0,s.jsx)("h3",{className:"font-serif text-title-marketing font-bold",children:l}),a&&(0,s.jsx)("p",{className:"mt-1 text-body-sm text-gray-50",children:a}),o&&(0,s.jsxs)(n.default,{href:o,className:"mt-2 block text-body-sm font-bold",target:c?"_blank":"_self",children:[r," →"]})]})]})};var p=l(12115);let b=e=>{let{id:t,maxItems:l}=e,[r,i]=(0,p.useState)(null);if((0,p.useEffect)(()=>{fetch("/api/marketing").then(e=>e.ok?e.json():null).then(e=>{var l;return i(null!=(l=null==e?void 0:e[t])?l:null)}).catch(()=>{})},[t]),!r||0===r.items.length)return(0,s.jsx)(a.O,{label:"Not set"});let n=r.items.slice(0,l);return(0,s.jsx)("div",{className:"flex flex-col gap-[20px]",children:n.map((e,t)=>(0,s.jsx)(h,{...e,reversed:t%2!=0},t))})}},69569:(e,t,l)=>{"use strict";l.d(t,{default:()=>p});var s=l(95155),a=l(34931),r=l(79037),i=l(4327);let n=e=>{let{count:t}=e;return(0,s.jsx)(a.A,{className:"grid grid-cols-2 gap-4 lg:grid-cols-3",children:Array.from({length:t}).map((e,t)=>(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(r.A,{className:"aspect-video w-full"}),(0,s.jsx)(i.A,{variant:"lg",width:"90%"}),(0,s.jsx)(i.A,{variant:"lg",width:"60%"}),(0,s.jsx)(i.A,{variant:"sm",width:"70%"}),(0,s.jsx)(i.A,{variant:"sm",width:"50%"})]},t))})};var o=l(51033),c=l(75186),d=l(12115);let u=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",...e,children:(0,s.jsx)("path",{d:"M128 0c17.7 0 32 14.3 32 32v32h128V32c0-17.7 14.3-32 32-32s32 14.3 32 32v32h48c26.5 0 48 21.5 48 48v48H0v-48c0-26.5 21.5-48 48-48h48V32c0-17.7 14.3-32 32-32zM0 192h448v272c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-32zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-32zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16z"})}),m=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",width:"1em",height:"1em",...e,children:(0,s.jsx)("path",{d:"M215.7 499.2C267 435 384 279.4 384 192 384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2 12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"})});var x=l(15239);let h=e=>{let{title:t,city:l,venue:a,info:r,imgUrl:i,url:n}=e;return(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(c.default,{href:n,className:"block overflow-hidden rounded-lg",children:(0,s.jsx)(x.default,{className:"aspect-[3/2] w-full object-cover",src:i,alt:t,title:t,width:300,height:200,unoptimized:!0})}),(0,s.jsx)("h2",{className:"line-clamp-3 font-serif text-title-md font-semibold",children:(0,s.jsx)(c.default,{href:n,children:t})}),(l||a)&&(0,s.jsxs)("div",{className:"mt-2 flex gap-2 text-agenda-details text-gray-70",children:[(0,s.jsx)(m,{width:16,height:16,className:"flex-none fill-gray-70"}),(0,s.jsxs)("p",{children:[l&&(0,s.jsx)("strong",{className:"font-semibold uppercase text-gray",children:l}),l&&a&&" | ",a]})]}),(0,s.jsxs)("div",{className:"flex gap-2 text-agenda-details text-gray-70",children:[(0,s.jsx)(u,{width:16,height:16,className:"flex-none fill-gray-70"}),(0,s.jsx)(o.m,{html:r,className:"text-agenda-details"})]})]})},p=e=>{let{count:t}=e,[l,a]=(0,d.useState)(null);return((0,d.useEffect)(()=>{fetch("/api/agenda?count=".concat(t)).then(e=>e.ok?e.json():null).then(a).catch(()=>{})},[t]),l)?(0,s.jsx)("div",{className:"grid gap-4 lg:grid-cols-3",children:l.map((e,t)=>(0,s.jsx)(h,{title:e.title,city:e.city,venue:e.venue,info:e.info,imgUrl:e.imgUrl,url:e.url},t))}):(0,s.jsx)(n,{count:t})}},69609:(e,t,l)=>{"use strict";l.d(t,{Ps:()=>i,_j:()=>n,t:()=>o});let s=new Map,a=null,r=null,i=(e,t)=>{s.set(e,t),a===e&&o(e)},n=(e,t)=>{s.get(e)===t&&s.delete(e)},o=e=>{a=e,r&&(clearTimeout(r),r=null);let t=l=>{var i,n,o,c;if(a!==e)return;let d=s.get(e);if(d&&(null==(n=window.$sp)||null==(i=n.isReady)?void 0:i.call(n))){null==(o=(c=window.$sp).reinit)||o.call(c,{url:e,container:d});return}l<=0||(r=setTimeout(()=>t(l-1),100))};t(50)}},69862:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ArticleEvent:()=>i});var s=l(96304),a=l(43023),r=l(12115);let i=e=>{let{article:t}=e,l=(0,a.Ir)(t,"pageview");return(0,r.useEffect)(()=>{(0,s.B)(l)},[l]),null}},71160:(e,t,l)=>{"use strict";l.d(t,{MediaEvent:()=>i});var s=l(96304),a=l(43023),r=l(12115);let i=e=>{let{media:t}=e,l=(0,a.Cv)(t);return(0,r.useEffect)(()=>{(0,s.B)(l)},[l]),null}},73818:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ActiveArticleObserver:()=>o});var s=l(95155),a=l(15925),r=l(69609),i=l(25016),n=l(12115);let o=e=>{let{url:t,title:l,rootMargin:o,threshold:c,children:d}=e,u=(0,n.useCallback)(()=>{t&&(window.location.href!==t&&(history.replaceState(null,"",t),l&&(document.title=l),(0,i.Sc)("URL and title replaced")),(0,r.t)(t))},[t,l]);return(0,s.jsx)(a.W,{callback:u,rootMargin:o,threshold:c,children:d})}},77255:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>u});var s=l(95155),a=l(60852);let r=e=>{let{disabledPrev:t,disabledNext:l,onPrev:r,onNext:i}=e;return(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("button",{className:"disabled:opacity-50",onClick:r,disabled:t,"aria-label":"Indietro",children:(0,s.jsx)(a.c,{className:"rotate-180"})}),(0,s.jsx)("button",{className:"disabled:opacity-50",onClick:i,disabled:l,"aria-label":"Avanti",children:(0,s.jsx)(a.c,{})})]})};var i=l(85203),n=l.n(i);let o=e=>{let{current:t,onClick:l,total:a}=e;return(0,s.jsx)("div",{className:"flex h-2 w-7 rounded-full bg-gray-10",children:[...Array(a)].map((e,a)=>(0,s.jsx)("span",{className:n()("flex-1 rounded-full",{"bg-gray":a===t}),onClick:()=>l&&l(a)},a))})};var c=l(41912),d=l(12115);let u=e=>{let{children:t,label:l,className:a,gapPx:i=16,additionalItem:u,autoplay:m=!1,autoplayInterval:x=1e4,highlightBorder:h=!1}=e,p=(0,d.useRef)(null),b=(0,d.useRef)(0),[g,A]=(0,d.useState)(0),[v,f]=(0,d.useState)(0),[j,w]=(0,d.useState)(0);(0,d.useEffect)(()=>{let e=()=>w(null!==p.current?p.current.offsetWidth:0);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let y=(0,d.useCallback)(()=>{g>0&&A(e=>e-1)},[g]),N=(0,d.useCallback)(()=>{j*g<=b.current&&A(e=>e+1)},[j,g]);return(0,d.useEffect)(()=>{b.current=p.current&&j?p.current.scrollWidth-j:0,f(p.current&&j?Math.ceil(p.current.scrollWidth/j):0)},[j]),(0,d.useEffect)(()=>{null!==p&&null!==p.current&&j&&(p.current.scrollLeft=(j+i)*g)},[j,i,g]),(0,c.$)(()=>{m&&A(g+11,"border-b border-gray-20":!h,"border-b-2 border-yellow":h}),children:[(0,s.jsx)("div",{className:"text-title-md font-extrabold",children:l}),v>1&&(0,s.jsx)(r,{disabledPrev:g<=0,disabledNext:j*g>=b.current,onNext:N,onPrev:y})]}),(0,s.jsx)("ul",{ref:p,className:"flex snap-x overflow-x-auto scrollbar-hide *:snap-start motion-safe:scroll-smooth",style:{gap:i},children:t}),(0,s.jsxs)("div",{className:"mt-3 flex items-center",children:[v>1&&(0,s.jsx)(o,{current:g,total:v}),(0,s.jsx)("div",{className:"ml-auto",children:u})]})]})}},77871:(e,t,l)=>{"use strict";l.d(t,{SectionEvent:()=>i});var s=l(96304),a=l(43023),r=l(12115);let i=e=>{let{section:t}=e,l=(0,a.jt)(t);return(0,r.useEffect)(()=>{(0,s.B)(l)},[l]),null}},78325:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HideInPreview:()=>o,PreviewContextProvider:()=>i,useIsPreview:()=>n});var s=l(95155),a=l(12115);let r=(0,a.createContext)(!1),i=e=>{let{isPreview:t,children:l}=e;return(0,s.jsx)(r.Provider,{value:t,children:l})},n=()=>(0,a.useContext)(r),o=e=>{let{children:t}=e;return n()?null:(0,s.jsx)(s.Fragment,{children:t})}},78397:(e,t,l)=>{"use strict";l.d(t,{S:()=>r,ViewChangeNotifier:()=>i});var s=l(20063),a=l(12115);let r=()=>{let e=new CustomEvent("viewChange");document.dispatchEvent(e)},i=()=>{let[e,t]=(0,a.useState)(!1),l=(0,s.usePathname)();return(0,a.useEffect)(()=>{t(!0)},[]),(0,a.useEffect)(()=>{e&&r()},[e,l]),null}},78696:(e,t,l)=>{"use strict";l.d(t,{ShareButtons:()=>r});var s=l(95155);let a=(0,l(67909).default)(()=>Promise.all([l.e(335),l.e(2090)]).then(l.bind(l,2090)),{loadableGenerated:{webpack:()=>[2090]},ssr:!1}),r=e=>(0,s.jsx)(a,{...e})},79037:(e,t,l)=>{"use strict";l.d(t,{A:()=>n});var s=l(95155);l(12115);let a=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 0 24 24",...e,children:(0,s.jsxs)("g",{fill:"current",fillRule:"evenodd",clipRule:"evenodd",children:[(0,s.jsx)("path",{d:"M9.839 3.75h4.322c.798 0 1.528.45 1.886 1.164a.61.61 0 0 0 .545.336H19.5a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25h-15A2.25 2.25 0 0 1 2.25 18V7.5A2.25 2.25 0 0 1 4.5 5.25h2.911c.23 0 .44-.13.543-.335A2.107 2.107 0 0 1 9.84 3.75Zm4.322 1.5H9.839c-.23 0-.44.13-.543.335A2.107 2.107 0 0 1 7.41 6.75H4.5a.75.75 0 0 0-.75.75V18c0 .414.336.75.75.75h15a.75.75 0 0 0 .75-.75V7.5a.75.75 0 0 0-.75-.75h-2.908a2.11 2.11 0 0 1-1.886-1.164.61.61 0 0 0-.545-.336Z"}),(0,s.jsx)("path",{d:"M7.5 12.75a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.5 0a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z"})]})});var r=l(85203),i=l.n(r);let n=e=>{let{children:t,className:l,...r}=e;return(0,s.jsxs)("div",{className:i()(l,"flex items-center justify-center bg-gray-20"),...r,children:[t,(0,s.jsx)(a,{})]})}},81767:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>n});var s=l(95155),a=l(67909),r=l(15239);let i=(0,a.default)(()=>l.e(8149).then(l.t.bind(l,48149,23)),{loadableGenerated:{webpack:()=>[48149]},ssr:!1}),n=e=>{let{mediaUrl:t,imageUrl:l,title:a}=e;return t&&(0,s.jsx)("div",{className:"aspect-video w-full overflow-hidden rounded-lg",children:(0,s.jsx)(i,{url:t,width:"100%",height:"100%",controls:!0,light:l?(0,s.jsx)(r.default,{unoptimized:!0,src:l,alt:a||""}):void 0,playing:!!l})})}},82241:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>w});var s=l(95155),a=l(75186),r=l(15239);let i=e=>{let{article:t}=e;return(0,s.jsxs)("div",{className:"flex flex-col",children:[t.imageUrl&&(0,s.jsx)("div",{className:"relative aspect-video overflow-hidden rounded",children:(0,s.jsx)(r.default,{src:t.imageUrl,alt:t.name,fill:!0,unoptimized:!0,className:"object-cover"})}),t.subtitle&&(0,s.jsx)("p",{className:"mt-2 text-label-sm font-extrabold uppercase text-accent",children:t.subtitle}),(0,s.jsx)("h2",{className:"mt-1 line-clamp-3 font-serif text-title-md font-bold",children:(0,s.jsx)(a.default,{href:t.articleUrl,children:t.name})}),t.lead&&(0,s.jsx)("p",{className:"mt-1 line-clamp-3 text-body-sm text-gray-60",children:t.lead})]})},n=e=>{let{article:t}=e;return(0,s.jsxs)("div",{className:"py-3 first:pt-0 last:pb-0",children:[t.subtitle&&(0,s.jsx)("p",{className:"text-label-sm font-extrabold uppercase text-accent",children:t.subtitle}),(0,s.jsx)("h2",{className:"mt-1 line-clamp-3 font-serif text-title-sm font-bold",children:(0,s.jsx)(a.default,{href:t.articleUrl,children:t.name})})]})},o=e=>{let{articles:t}=e,l=t.slice(0,2),a=t.slice(2);return(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-3",children:[(0,s.jsx)("div",{className:"grid gap-4 lg:col-span-2 lg:grid-cols-2",children:l.map(e=>(0,s.jsx)(i,{article:e},e.articleUrl))}),(0,s.jsx)("div",{className:"divide-y divide-gray-20",children:a.map(e=>(0,s.jsx)(n,{article:e},e.articleUrl))})]})};var c=l(34931),d=l(79037),u=l(4327);let m=()=>(0,s.jsx)(c.A,{children:(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,s.jsx)("div",{className:"grid gap-4 lg:col-span-2 lg:grid-cols-2",children:[0,1].map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{className:"aspect-video rounded"}),(0,s.jsx)(u.A,{variant:"sm",width:"30%",className:"mt-2"}),(0,s.jsx)(u.A,{variant:"md",width:"85%",className:"mt-1"}),(0,s.jsx)(u.A,{variant:"md",width:"70%"}),(0,s.jsx)(u.A,{variant:"sm",width:"90%",className:"mt-1"}),(0,s.jsx)(u.A,{variant:"sm",width:"75%"})]},e))}),(0,s.jsx)("div",{className:"divide-y divide-gray-20",children:[0,1,2,3].map(e=>(0,s.jsxs)("div",{className:"py-3 first:pt-0 last:pb-0",children:[(0,s.jsx)(u.A,{variant:"sm",width:"25%"}),(0,s.jsx)(u.A,{variant:"sm",width:"85%",className:"mt-1"}),(0,s.jsx)(u.A,{variant:"sm",width:"70%"})]},e))})]})});var x=l(43008),h=l(30482);let p=e=>{let{articles:t}=e;return(0,s.jsx)(h.I,{divideSm:!0,divideLg:!0,children:t.map(e=>(0,s.jsx)(x.A,{title:e.name,url:e.articleUrl,publicationDate:e.publicationDateComplete},e.articleUrl))})};var b=l(89442);let g=e=>{let{count:t}=e;return(0,s.jsx)(h.I,{divideSm:!0,divideLg:!0,children:(0,s.jsx)(b.A,{count:t})})};var A=l(36750),v=l(24850),f=l(12115);let j={default:{render:e=>(0,s.jsx)(p,{articles:e}),skeleton:e=>(0,s.jsx)(g,{count:e})},premium:{render:e=>(0,s.jsx)(o,{articles:e}),skeleton:()=>(0,s.jsx)(m,{})}},w=e=>{let{articleId:t,count:l,variant:a="default",className:r}=e,[i,n]=(0,f.useState)();(0,f.useEffect)(()=>{var e;let s=new URL("/api/socialbeat-gdb-scrolling",null==(e=window.location)?void 0:e.toString());s.searchParams.set("articleId",t),s.searchParams.set("count","".concat(l));let a=new AbortController;return fetch(s,{signal:a.signal}).then(e=>e.ok?e.json():null).then(e=>{var t;return n(null!=(t=null==e?void 0:e.articles)?t:[])}).catch(()=>{a.signal.aborted||n([])}),()=>a.abort()},[t,l]);let o=j[a];if(void 0===i)return(0,s.jsx)(s.Fragment,{children:o.skeleton(l)});if(!i.length)return null;let c=(0,s.jsx)(A.M,{moduleName:"Suggeriti per te",children:o.render(i)});return"premium"===a?(0,s.jsxs)("div",{className:r,children:[(0,s.jsx)("h2",{className:"mb-3 text-headline-reg font-bold",children:"Suggeriti per te"}),c]}):(0,s.jsx)(v.F,{title:"Suggeriti per te",className:r,children:c})}},85278:(e,t,l)=>{"use strict";l.d(t,{X:()=>a,k:()=>r});let s=null;function a(e){s=e}function r(){let e=null!=s?s:"other";return s=null,e}},87316:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TabsBar:()=>d});var s=l(95155),a=l(75186),r=l(85203),i=l.n(r);let n=e=>{let{label:t,href:l,active:r,external:n}=e;return l&&(0,s.jsx)(a.default,{className:i()("relative w-full px-3 py-2 text-center text-body-xs font-semibold uppercase hover:no-underline lg:w-auto lg:whitespace-nowrap lg:px-2 xl:px-3","after:absolute after:inset-x-0 after:bottom-0 after:h-[2px]",r?"after:bg-yellow":"after:bg-transparent hover:after:bg-yellow"),href:l,target:n?"_blank":void 0,children:t})},o=e=>{let{label:t,href:l,active:r,external:n}=e;return(0,s.jsx)(a.default,{className:i()("relative w-full px-3 py-2 text-center text-body-xs font-semibold uppercase hover:no-underline lg:w-auto lg:whitespace-nowrap lg:px-2 xl:px-3","after:absolute after:inset-x-0 after:bottom-0 after:h-[2px]",r?"after:bg-yellow":"after:bg-transparent hover:after:bg-yellow"),href:l,target:n?"_blank":void 0,children:t})};var c=l(12115);let d=e=>{let{items:t=[],overrideItems:l=[],className:r}=e,[d,u]=(0,c.useState)(!1),[m,x]=(0,c.useState)(!1),h=(0,c.useRef)(null),p=l.length>0,b=p?l:t,g=b.slice(0,5),A=b.slice(5),v=A.length>0;(0,c.useEffect)(()=>{if(!m)return;let e=e=>{h.current&&!h.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m]);let f=(e,t)=>p?(0,s.jsx)(o,{href:e.href,label:e.label,active:e.active,external:e.external},t):(0,s.jsx)(n,{href:e.href,label:e.label,active:e.active,external:e.external},t);return(t.length>0||l.length>0)&&(0,s.jsxs)("div",{className:i()("relative",r),children:[(0,s.jsx)("button",{type:"button",onClick:()=>u(!d),className:"flex items-center gap-2 lg:hidden","aria-label":"Apri menu",children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",viewBox:"0 0 24 24",children:[(0,s.jsx)("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),(0,s.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),(0,s.jsx)("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})}),d&&(0,s.jsx)("div",{className:"fixed inset-0 z-20 bg-black/40 lg:hidden",onClick:()=>u(!1)}),(0,s.jsxs)("nav",{"aria-label":"Menu di sezione",className:i()("fixed inset-y-0 z-30 flex w-[300px] flex-col divide-y divide-gray-20 bg-white transition-[right] duration-300 lg:static lg:flex lg:w-auto lg:flex-row lg:flex-nowrap lg:items-start lg:gap-1 lg:divide-none lg:overflow-visible",{"right-0":d,"-right-[300px]":!d}),children:[(0,s.jsx)("button",{type:"button",onClick:()=>u(!1),className:"self-end p-4 font-semibold uppercase lg:hidden","aria-label":"Chiudi menu",children:"✕"}),g.map((e,t)=>f(e,t)),v&&(0,s.jsxs)(s.Fragment,{children:[A.map((e,t)=>(0,s.jsx)("div",{className:"flex lg:hidden",children:f(e,t)},"mobile-".concat(t))),(0,s.jsxs)("div",{ref:h,className:"relative hidden lg:block",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>x(!m),"aria-expanded":m?"true":"false","aria-haspopup":"true",className:i()("flex items-center gap-1 whitespace-nowrap text-body-xs font-semibold uppercase hover:underline",p?"px-2 py-2 xl:px-3":"p-2"),children:["Altro",(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",className:i()("transition-transform",m&&"rotate-180"),children:(0,s.jsx)("path",{d:"M1 3l4 4 4-4z"})})]}),m&&(0,s.jsx)("ul",{className:"absolute right-0 top-full z-[100] mt-1 min-w-[200px] rounded-md border border-gray-20 bg-white py-1 shadow-lg",children:A.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)(a.default,{href:e.href,target:e.external?"_blank":void 0,onClick:()=>x(!1),className:"block whitespace-nowrap px-3 py-2 text-body-xs font-semibold uppercase hover:bg-gray-10",children:e.label})},t))})]})]})]})]})}},87321:(e,t,l)=>{"use strict";l.d(t,{SalaLibretti:()=>A});var s=l(95155),a=l(88309),r=l(79600),i=l(51033),n=l(65447),o=l(93704),c=l(30482),d=l(75186),u=l(76917),m=l(85203),x=l.n(m),h=l(34821),p=l(15239);let b=e=>{let{details:t,variant:l}=e;return(0,s.jsxs)(c.I,{columnsLg:"wide"===l?2:1,className:x()("!p-2",{"bg-blue-bright":"live"===t.status,"bg-white":"live"!==t.status}),children:[(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(d.default,{href:t.url,target:"_blank",children:(0,s.jsx)(p.default,{src:t.image,width:800,height:(0,u.vr)(u.NE.RATIO_16_9,800),alt:t.title,unoptimized:!0,className:"aspect-video"})})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:["live"===t.status&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.s,{label:"Live ⬤",variant:"live"}),(0,s.jsx)(n.s,{label:"Sala libretti",variant:"black"}),(0,s.jsx)(o.F,{date:new Date(t.event_date),className:"text-body-xs"})]}),"upcoming"===t.status&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.s,{label:h.c9.fromJSDate(new Date(t.event_date)).toFormat("dd.MM.yyyy"),variant:"positive"}),(0,s.jsx)(o.F,{date:new Date(t.event_date),className:"text-body-xs"})]}),"archived"===t.status&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.s,{label:"Sala libretti",variant:"black"}),(0,s.jsx)(n.s,{label:"Archived",variant:"default"}),(0,s.jsx)(r.B,{date:new Date(t.event_date),className:"text-body-xs"})]})]}),(0,s.jsx)("h2",{className:"mb-3 mt-2 line-clamp-3 font-serif text-headline-lg font-bold",children:(0,s.jsx)(d.default,{href:t.url,target:"_blank",children:t.title})}),(0,s.jsx)(i.m,{html:t.lead,className:"mb-3 text-highlights-md italic"}),(0,s.jsx)("p",{className:"text-label-sm italic text-gray-70",children:t.kicker})]})]})};var g=l(12115);let A=e=>{let{count:t=3}=e,[l,r]=(0,g.useState)([]);return(0,g.useEffect)(()=>{let e=new URL("https://eventi.giornaledibrescia.it/api/v1/upcoming");e.searchParams.append("n",t.toString()),fetch(e).then(e=>e.json()).then(e=>r(e.events))},[t]),(0,s.jsx)("div",{className:"-mx-spacer flex grid-cols-3 flex-col gap-3 bg-gray-5 p-3 lg:grid",children:l.length?l.map((e,t)=>(0,s.jsx)(b,{details:e,variant:"default"},t)):(0,s.jsx)(a.y,{})})}},89442:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(95155),a=l(34931),r=l(4327);let i=e=>{let{count:t}=e;return(0,s.jsx)(s.Fragment,{children:Array.from({length:t}).map((e,t)=>(0,s.jsxs)(a.A,{className:"mt-2",children:[(0,s.jsx)(r.A,{variant:"sm",width:"20%"}),(0,s.jsx)(r.A,{variant:"sm",width:"80%",className:"mt-2"}),(0,s.jsx)(r.A,{variant:"sm",width:"80%"})]},t))})}},90499:(e,t,l)=>{"use strict";l.d(t,{Specialista:()=>o});var s=l(95155),a=l(88309),r=l(51033),i=l(65447),n=l(12115);let o=e=>{let{id:t}=e,[l,o]=(0,n.useState)(null),c="".concat("https://backoffice.giornaledibrescia.it/rest/get_specialista/").concat(t);return(0,n.useEffect)(()=>{fetch(c).then(e=>e.json()).then(e=>o(e)).catch(()=>o(null))},[c]),(0,s.jsx)("div",{className:"not-prose rounded-lg border border-orange bg-gray-2 p-6",children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.s,{label:"Specialista",variant:"sponsored"}),(0,s.jsx)("h3",{className:"mt-3 font-serif text-title-md font-semibold text-black",children:l.title}),(0,s.jsx)(r.m,{html:l.content,className:"mt-3 italic [&_a]:underline"})]}):(0,s.jsx)(a.y,{})})}},93258:(e,t,l)=>{"use strict";l.d(t,{ArticleCommentsCount:()=>u});var s=l(95155),a=l(75186),r=l(94635),i=l(97448),n=l(19740),o=l(85203),c=l.n(o),d=l(12115);let u=e=>{let{source:t,externalId:l,articleUrl:o,closed:u=!1,className:m}=e,[x,h]=(0,d.useState)(null);return((0,d.useEffect)(()=>{let e=!1;return(0,r.Ws)(t,l).then(t=>!e&&h(t.count)).catch(()=>{}),()=>{e=!0}},[t,l]),null===x||u&&0===x)?null:(0,s.jsxs)(a.default,{href:"".concat(o,"#commenti"),className:c()("flex items-center text-highlights-xs text-gray-80 hover:underline",m),children:[(0,s.jsx)(n.gc,{icon:i.DN2,className:"mr-1 text-yellow"}),(e=>0===e?"Commenta":1===e?"1 commento":"".concat(e," commenti"))(x)]})}},93704:(e,t,l)=>{"use strict";l.d(t,{F:()=>r});var s=l(95155),a=l(59499);let r=e=>{let{date:t,className:l}=e;return(0,s.jsx)("time",{dateTime:t.toISOString(),className:l,children:(0,a.Kj)(t).toFormat("HH:mm")})}},94635:(e,t,l)=>{"use strict";l.d(t,{$b:()=>m,Gy:()=>u,HL:()=>p,T7:()=>c,TX:()=>b,Tu:()=>h,VM:()=>x,Ws:()=>d,g6:()=>r});class s extends Error{constructor(e,t,l){super(l),this.status=e,this.code=t,this.name="CommentsClientError"}}let a={AUTH_REQUIRED:"Devi effettuare l’accesso per continuare.",GDB_PLUS_REQUIRED:"La partecipazione alla discussione \xe8 riservata agli abbonati GdB+.",FORBIDDEN:"Operazione non consentita.",NOT_FOUND:"Commento non trovato.",BODY_VALIDATION:"Il testo inserito non \xe8 valido.",MAX_DEPTH_EXCEEDED:"Non \xe8 possibile rispondere a una risposta.",SELF_LIKE_FORBIDDEN:'Non puoi mettere "mi piace" ai tuoi commenti.',RATE_LIMITED:"Hai fatto troppe operazioni, riprova tra qualche minuto."},r=e=>e instanceof s&&a[e.code]||"Si \xe8 verificato un errore, riprova pi\xf9 tardi.";async function i(e,t){let l=await fetch(e,{...t,...(null==t?void 0:t.body)!==void 0&&{headers:{"Content-Type":"application/json"}}});if(204===l.status)return;let a=await l.json().catch(()=>null);if(!l.ok){var r,i;throw new s(l.status,null!=(r=null==a?void 0:a.code)?r:"INTERNAL_ERROR",null!=(i=null==a?void 0:a.message)?i:"".concat(l.status," ").concat(l.statusText))}return a}let n=(e,t)=>"/api/comments/articles/".concat(encodeURIComponent(e),"/").concat(encodeURIComponent(t)),o=(e,t)=>t?"".concat(e,"?cursor=").concat(encodeURIComponent(t)):e,c=(e,t,l)=>i(o(n(e,t),l)),d=(e,t)=>i("".concat(n(e,t),"/count")),u=(e,t,l)=>i(n(e,t),{method:"POST",body:JSON.stringify(l)}),m=(e,t)=>i(o("/api/comments/".concat(e,"/replies"),t)),x=(e,t)=>i("/api/comments/".concat(e,"/replies"),{method:"POST",body:JSON.stringify({body:t})}),h=e=>i("/api/comments/".concat(e),{method:"DELETE"}),p=e=>i("/api/comments/".concat(e,"/like"),{method:"PUT"}),b=e=>i("/api/comments/".concat(e,"/like"),{method:"DELETE"})},96304:(e,t,l)=>{"use strict";l.d(t,{B:()=>r});var s=l(25016),a=l(76784);let r=e=>{e&&((0,a.sendGTMEvent)(e),(0,s.Sc)("GTM event: ".concat(JSON.stringify(e))))}},97068:(e,t,l)=>{"use strict";l.d(t,{HomepageEvent:()=>i});var s=l(96304),a=l(43023),r=l(12115);let i=()=>{let e=(0,a.Vu)();return(0,r.useEffect)(()=>{(0,s.B)(e)},[e]),null}},97107:(e,t,l)=>{"use strict";l.d(t,{AcceptCMP:()=>r});var s=l(56936),a=l(12115);let r=()=>{let e=(0,s.A)();return(0,a.useEffect)(()=>{var e;null==(e=document.getElementById("pt-accept-all"))||e.click()},[e]),null}},97994:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>s});let s={src:"/_next/static/media/lettera.4465b601.png",height:339,width:800,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAALVBMVEVeNyTQzcW1r67Z1853YE9XQzqdkI/y9/lJKhuVgnTCua9nTkSvoZa9tKjKxrya4WulAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAI0lEQVR4nGNgZ2Ri4mLhYGBgYmNkZOZl4WBg5eZh5mPmZAAABhUAgoYZuBkAAAAASUVORK5CYII=",blurWidth:8,blurHeight:3}},99595:(e,t,l)=>{"use strict";l.r(t),l.d(t,{FlourishEmbedLoader:()=>i});var s=l(12115);let a="flourish-embed",r=!1,i=e=>{let{src:t}=e;return(0,s.useEffect)(()=>{(e=>{if(r)return;let t=Array.from(document.querySelectorAll(".".concat(a)));if(!t.some(e=>!e.querySelector("iframe")))return;let l=t.filter(e=>e.querySelector("iframe"));l.forEach(e=>e.classList.remove(a)),r=!0,window.FlourishLoaded=!1;let s=document.createElement("script");s.src=e,s.async=!0,s.onload=s.onerror=()=>{l.forEach(e=>e.classList.add(a)),s.remove(),r=!1},document.body.appendChild(s)})(t)},[t]),null}}},e=>{e.O(0,[6701,2266,1209,1356,5889,2854,5440,6489,4821,3625,6831,766,5850,758,5016,3447,7849,1153,7056,8441,1255,7358],()=>e(e.s=27993)),_N_E=e.O()}]);