"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1153],{3988:(e,t,l)=>{l.d(t,{z:()=>c});var r=l(95155),s=l(65900),a=l(75186),i=l(85203),n=l.n(i);let c=e=>{let{variant:t="default",className:l,...i}=e;return(0,r.jsx)(a.default,{...i,className:n()("flex items-center gap-2",s.x[t],l)})}},10439:(e,t,l)=>{l.d(t,{A:()=>a});var r=l(12115);let s=[1,2,3,4,5,6,7,8,9,10,11],a=()=>{let[e,t]=r.useState({featureCookies:!1,measurementCookies:!1,userExperienceCookies:!1,tcfPurposes:Object.fromEntries(s.map(e=>[e,!1])),consentReady:!1});return r.useEffect(()=>{let e=window.__gdb_cmp;if(e){let l=()=>{var l,r,a,i;t({featureCookies:!!(null==(l=e.publisherConsentObject)?void 0:l.featureCookiesChoice),measurementCookies:!!(null==(r=e.publisherConsentObject)?void 0:r.measurementCookiesChoice),userExperienceCookies:!!(null==(a=e.publisherConsentObject)?void 0:a.userExperienceCookiesChoice),tcfPurposes:Object.fromEntries(s.map(t=>{var l;return[t,null==(l=e.consentObject)?void 0:l.purposeConsents.has(t)]})),consentReady:(null==(i=e.consentData)?void 0:i.EVENT_NAME)==="ConsentReady"})};return e.addEventListener(l),()=>{e.removeEventListener(l)}}},[]),e}},11948:(e,t,l)=>{l.d(t,{TouchpointLink:()=>i});var r=l(95155),s=l(63648),a=l(75186);let i=e=>{let{touchpointId:t,onClick:l,...i}=e;return(0,r.jsx)(a.default,{...i,onClick:e=>{(0,s.eX)({type:"nav",id:t}),null==l||l(e)}})}},14185:(e,t,l)=>{l.d(t,{A:()=>s});var r=l(12115);let s=e=>{let[t,l]=(0,r.useState)(window.matchMedia(e).matches);return(0,r.useEffect)(()=>{let t=window.matchMedia(e),r=()=>{l(window.matchMedia(e).matches)};return r(),t.addEventListener?t.addEventListener("change",r):t.addListener&&t.addListener(r),()=>{t.removeEventListener?t.removeEventListener("change",r):t.removeListener&&t.removeListener(r)}},[e]),t}},16963:(e,t,l)=>{l.d(t,{default:()=>a});var r=l(12115);class s extends r.Component{static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}let a=s},17765:(e,t,l)=>{l.d(t,{t:()=>s});var r=l(95155);l(12115);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"current",fillRule:"evenodd",d:"M9.458 4.8c0-1.413 1.076-2.675 2.542-2.675 1.466 0 2.542 1.262 2.542 2.675V12c0 1.413-1.076 2.675-2.542 2.675-1.466 0-2.542-1.262-2.542-2.675V4.8ZM12 3.875c-.375 0-.792.35-.792.925V12c0 .575.417.925.792.925.375 0 .792-.35.792-.925V4.8c0-.575-.417-.925-.792-.925Zm5 3.2c.483 0 .875.392.875.875V12c0 3.094-2.126 5.753-5 6.207v1.918h.792a.875.875 0 0 1 0 1.75h-3.334a.875.875 0 0 1 0-1.75h.792v-1.918c-2.874-.454-5-3.113-5-6.207V8.4a.875.875 0 1 1 1.75 0V12c0 2.564 1.909 4.525 4.125 4.525s4.125-1.961 4.125-4.525V7.95c0-.483.392-.875.875-.875Z",clipRule:"evenodd"})})},17986:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});let r={src:"/_next/static/media/gdb-logo.d9ec2512.png",height:44,width:104,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAG1BMVEUjHyAiHh8iHR8jHh8iHiAiHR8jICAiHh4jICF8/0ukAAAACXRSTlO3iFmWrKK9dd4O3U2aAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nGNgYmZiZmZnYWRgAGE2DhYGVgZGBkZWNiYAA60ARcswnv0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:3}},29348:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});let r={src:"/_next/static/media/gdb-logo-multiline.037e07e0.png",height:71,width:213,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAGFBMVEUiHR4hHR8iHh8iHR4hHh4iHiAfHx8hHh4dkBIJAAAACHRSTlNvjKB+r7tJXDEB3kEAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAfSURBVHicBcEHAQAACMOw7gD+HZMgWcBiz7SGQwnkAQKwADWY12+vAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3}},33865:(e,t,l)=>{l.d(t,{g:()=>i});var r=l(95155),s=l(85203),a=l.n(s);let i=e=>{let{title:t,as:l,className:s}=e;return(0,r.jsx)(l,{className:a()("font-serif text-section-title-md font-bold text-black lg:text-section-title-xl",s),children:t})}},36875:(e,t,l)=>{l.d(t,{SearchForm:()=>o});var r=l(95155),s=l(65900),a=l(30482),i=l(12115);let n=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 0 24 24",...e,children:(0,r.jsxs)("g",{fill:"current",fillRule:"evenodd",clipRule:"evenodd",children:[(0,r.jsx)("path",{d:"M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm-8 6a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"}),(0,r.jsx)("path",{d:"M14.293 14.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414Z"})]})});var c=l(85203),d=l.n(c);let o=e=>{let{toolbar:t}=e,[l,c]=(0,i.useState)("");return(0,r.jsx)("div",{className:"mt-4 w-full px-5",children:(0,r.jsx)(a.I,{columnsLg:6,children:(0,r.jsxs)("form",{action:"/cerca",method:"get",className:"flex flex-col gap-3 lg:col-span-4 lg:col-start-2 lg:flex-row",children:[(0,r.jsxs)("div",{className:d()("flex grow rounded-full bg-white",{"border border-gray-30":!t}),children:[(0,r.jsx)("span",{className:"flex w-auto items-center justify-end p-2 text-gray-50",children:(0,r.jsx)(n,{className:"fill-gray-50"})}),(0,r.jsx)("input",{className:"mr-4 w-full rounded italic outline-none",type:"text",name:"q",placeholder:"Cosa stai cercando?",onChange:e=>c(e.target.value),autoFocus:!0})]}),(0,r.jsx)(s.$,{type:"submit",variant:"secondary",className:"h-[40px] px-4",disabled:!l,children:"Cerca"})]})})})}},37816:(e,t,l)=>{l.d(t,{NavigationBar:()=>ew});var r=l(95155),s=l(85203),a=l.n(s);let i=e=>{let{className:t,children:l}=e;return(0,r.jsx)("span",{className:a()("flex h-5 w-5 items-center justify-center rounded-full bg-gray",t),children:l})};var n=l(49956),c=l(19740),d=l(36489),o=l(20063);let h=e=>{let{className:t}=e,l=(0,o.usePathname)();return(0,r.jsx)("button",{type:"button","aria-label":"Accedi",className:a()("flex items-center",t),onClick:()=>(0,d.signIn)("gdbpiu",{callbackUrl:l||"/"}),children:(0,r.jsx)(i,{className:"text-yellow",children:(0,r.jsx)(c.gc,{icon:n.X4,className:"text-[19px]"})})})};var u=l(70708),x=l(93026),m=l(88737),g=l(80937),f=l(30336);let v=e=>{let{className:t,areaRiservataUrl:l}=e,{data:s}=(0,d.useSession)(),a=(0,x.W)(),{isGdbPlusSubscriber:o}=(0,u.A)();return s?(0,r.jsxs)("div",{className:"dropdown dropdown-end",children:[(0,r.jsx)("div",{tabIndex:0,role:"button","aria-label":"Menu utente",className:t,children:(0,r.jsx)(i,{className:"text-white",children:o?(0,r.jsx)(c.gc,{icon:f.nW,className:"text-[17px]"}):(0,r.jsx)(c.gc,{icon:n.X4,className:"text-[19px]"})})}),(0,r.jsxs)("ul",{tabIndex:0,className:"menu dropdown-content rounded-box z-[1] mt-1 w-[180px] bg-base-100 p-2 shadow",children:[(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:l,children:[(0,r.jsx)(c.gc,{icon:m.mu,className:"me-1 text-gray-30"})," ","Area Personale"]})}),(0,r.jsx)("li",{className:"border-t border-base-200",children:(0,r.jsxs)("button",{onClick:a,className:"text-red-dark",children:[(0,r.jsx)(c.gc,{icon:g.yB,className:"me-1"})," ","Logout"]})})]})]}):(0,r.jsx)(h,{className:t})};var b=l(3988),j=l(63648);let w=e=>{let{className:t,href:l}=e;return(0,r.jsx)(b.z,{href:l,className:a()("text-label-xs",t),variant:"secondary",target:"_blank",onClick:()=>(0,j.eX)({type:"nav",id:"header_abbonati"}),children:"Abbonati"})};var p=l(54153);let A=e=>{let{className:t}=e;return(0,r.jsxs)(b.z,{variant:"plain",href:"https://edicola.giornaledibrescia.it/giornalebrescia/newsstand",target:"_blank",className:a()("lg:min-h-5 lg:rounded-full lg:border lg:border-black lg:p-2 lg:px-3 lg:py-0 lg:text-button-label lg:font-semibold lg:focus:ring lg:focus:ring-gray-20",t),children:[(0,r.jsx)("span",{className:"hidden lg:inline",children:"Leggi il GdB"}),(0,r.jsx)(c.gc,{icon:p.bG,className:"text-[20px]"})]})};var q=l(33865),N=l(36875);let T=e=>{let{toolbar:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q.g,{title:"Cerca sul Giornale di Brescia",as:"h1",className:"text-center"}),(0,r.jsx)(N.SearchForm,{toolbar:t})]})};var k=l(47650);let y=e=>{let{...t}=e,l=document.getElementById("main-content");return l?(0,k.createPortal)((0,r.jsx)("div",{...t,className:"fixed inset-0 backdrop-blur-sm"}),l):null};var C=l(69891);let Z=e=>{let{onClose:t}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"absolute left-0 right-0 z-30 grid place-items-center bg-yellow py-5 shadow-md",children:[(0,r.jsx)(y,{onClick:t}),(0,r.jsx)("button",{type:"button",onClick:t,className:"mx-5 place-self-end",children:(0,r.jsx)(C.b,{})}),(0,r.jsx)(T,{toolbar:!0})]})})},E=e=>e?"":void 0;var M=l(3482),S=l(12115);let B=e=>{let{shopUrl:t,areaRiservataUrl:l,showMenu:s}=e,[a,i]=(0,S.useState)(!1),n=(0,S.useCallback)(()=>i(e=>!e),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-none items-center gap-2 pe-3",inert:E(s),children:[(0,r.jsx)("button",{type:"button",onClick:n,className:"flex items-center","aria-label":"Cerca",children:(0,r.jsx)(c.gc,{icon:M.$U,className:"text-[20px]"})}),(0,r.jsx)(A,{}),(0,r.jsx)(w,{href:t||""}),(0,r.jsx)(v,{areaRiservataUrl:l})]}),a&&(0,r.jsx)(Z,{onClose:n})]})};var L=l(75186);let R=e=>{let{label:t,href:l,active:s}=e;return(0,r.jsx)("div",{className:a()("flex items-center px-3 text-label-xs hover:underline",{"bg-yellow-bright":s}),children:(0,r.jsx)(L.default,{className:a()("uppercase",{underline:s}),href:l,children:t})})},H=e=>{let t,l,{item:s}=e;switch(s.__typename){case"Link":t=s.label,l=s.url;break;case"MenuGroup":t=s.title,l=s.url;break;case"Section":t=s.title,l=s.path}let a=(0,o.usePathname)();return t&&l&&(0,r.jsx)(R,{active:a.startsWith(l),label:t,href:l})},I=e=>{let{items:t,className:l,...s}=e;return(0,r.jsx)("div",{className:a()(l,"lg:flex"),...s,children:(0,r.jsx)("nav",{className:"flex","aria-label":"Sezioni principali",children:t.map((e,t)=>e&&(0,r.jsx)(H,{item:e},t))})})};var _=l(12168),O=l(17986),U=l(15239);let V=e=>{let{className:t}=e;return(0,r.jsx)(L.default,{href:"/",className:t,children:(0,r.jsx)(U.default,{src:O.default,alt:_.yy,className:"w-[58px]"})})},G=e=>{let{...t}=e;return(0,r.jsx)("div",{...t,className:"inset-0 z-20 bg-black/10 backdrop-blur-sm lg:fixed"})};var F=l(60852);let D=e=>{let{children:t,header:l}=e,[s,i]=(0,S.useState)(!1),n=(0,S.useId)(),c=!!t,d=(0,S.useCallback)(e=>{i(e=>!e),c&&e.stopPropagation()},[c]);return(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsxs)("button",{className:"relative flex w-full items-center justify-between border-b border-gray-30 bg-white p-3 font-bold text-black hover:underline dark:border-gray-90 dark:bg-gray-80 dark:text-gray-5",onClick:d,"aria-controls":n,children:[l,c&&(0,r.jsx)(F.c,{className:a()("transform transition-transform dark:fill-gray-5",{"rotate-90":!s,"-rotate-90":s})})]}),!c&&(0,r.jsx)("span",{className:"relative flex items-center justify-between border-b border-gray-30 bg-white p-3 font-bold text-black hover:underline dark:border-gray-90 dark:bg-gray-80 dark:text-gray-5",children:l}),c&&s&&(0,r.jsx)("div",{className:"bg-white dark:bg-gray",id:n,children:t})]})},W=e=>{let{label:t}=e;return(0,r.jsx)(r.Fragment,{children:t||""})};var P=l(42027);let X=e=>{let{title:t,children:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:t}),l]})},z=e=>{let{item:t}=e;return(0,r.jsx)(r.Fragment,{children:t.url?(0,r.jsx)(L.default,{href:t.url,className:"after:absolute after:inset-0",children:(0,r.jsx)(X,{title:t.title})}):(0,r.jsx)(X,{title:t.title,children:(0,r.jsx)(P.O,{label:"Missing link"})})})},Y=e=>{let{url:t,label:l}=e;return(0,r.jsx)(L.default,{href:t||"/",children:(0,r.jsx)("div",{className:"flex items-center justify-between border-b border-gray-30 bg-gray-10 p-3 font-normal text-black hover:underline dark:border-gray-80 dark:bg-gray-90 dark:text-gray-5",children:(0,r.jsxs)("span",{children:[(0,r.jsx)(P.O,{label:"Link"})," ",l]})})})},Q=e=>{let{path:t,title:l}=e;return(0,r.jsx)(L.default,{href:t,children:(0,r.jsx)("div",{className:"flex items-center justify-between border-b border-gray-30 bg-gray-10 p-3 font-normal text-black hover:underline dark:border-gray-80 dark:bg-gray-90 dark:text-gray-5",children:(0,r.jsxs)("span",{children:[(0,r.jsx)(P.O,{label:"Section"})," ",l]})})})},K=e=>{var t,l;let{item:s}=e;if(!(null==s||null==(t=s.children)?void 0:t.length))return(0,r.jsx)(D,{header:(0,r.jsx)(z,{item:s})});let a=(null==s?void 0:s.url)?[{url:s.url,label:"Home"}]:[];return(0,r.jsx)(D,{header:(0,r.jsx)(W,{label:null==s?void 0:s.title}),children:a.concat((null==s||null==(l=s.children)?void 0:l.map(e=>{let t,l;switch(null==e?void 0:e.__typename){case"Link":t=e.label,l=e.url;break;case"Section":t=e.title,l=e.path}return{label:t||"",url:l||""}}))||[]).map((e,t)=>e.path?(0,r.jsx)(Q,{path:e.path,title:e.title},t):(0,r.jsx)(Y,{url:e.url,label:e.label},t))})},J=e=>{let{items:t}=e;return(0,r.jsx)(r.Fragment,{children:t.map(e=>e?(0,r.jsx)(K,{item:e},e.id):null)})};var $=l(43616),ee=l(17765),et=l(51955);let el=()=>{let[e,t]=(0,S.useState)(!1),l=(0,S.useCallback)(e=>{e.stopPropagation(),t(e=>!e)},[]);return(0,r.jsxs)("div",{className:"flex flex-col divide-y divide-gray-30 dark:divide-gray-90",children:[(0,r.jsxs)("button",{className:"flex justify-between bg-blue-dark p-3 font-bold text-white hover:underline",onClick:l,children:["Dirette",(0,r.jsx)(F.c,{className:a()("transform fill-white transition-transform",{"rotate-90":!e,"-rotate-90":e})})]}),e&&(0,r.jsx)("div",{className:"flex flex-col divide-y divide-gray-30 dark:divide-gray-90",children:$.BL.map((e,t)=>(0,r.jsx)(L.default,{href:e.url,target:"_blank",children:(0,r.jsxs)("div",{className:"flex bg-blue-dark p-3 text-white hover:underline",children:["audio"===e.type&&(0,r.jsx)(ee.t,{className:"fill-white",width:20,height:20}),"video"===e.type&&(0,r.jsx)(et.j,{className:"fill-white",width:20,height:20}),e.name]})},t))})]})},er=e=>{let{className:t,extended:l=!0}=e;return(0,r.jsxs)("p",{className:a()("text-[10px]",t),children:["\xa9 Copyright Editoriale Bresciana S.p.A.",l&&" - Brescia - P.IVA 00272770173"]})};var es=l(93254),ea=l(98266),ei=l(87184),en=l(8497),ec=l(58490),ed=l(86650),eo=l(50847),eh=l(70705);let eu=[{href:es.L2,icon:ea.Kj,label:"Facebook"},{href:es.XG,icon:ei.QV,label:"Instagram"},{href:es.uN,icon:eo.NL,label:"X/Twitter"},{href:es.fS,icon:ed.EY,label:"Whatsapp"},{href:es._L,icon:eh.B4,label:"YouTube"},{href:es.Di,icon:ec.AI,label:"TikTok"},{href:es.P$,icon:en.B_,label:"LinkedIn"}],ex=e=>{let{className:t,variant:l="dark"}=e;return(0,r.jsx)("div",{className:a()("flex flex-wrap gap-3",t),children:eu.map(e=>{let{href:t,icon:s,label:i}=e;return(0,r.jsx)(L.default,{href:t,target:"_blank",rel:"nofollow noopener noreferrer",className:"flex items-center","aria-label":i,children:(0,r.jsx)(c.gc,{icon:s,className:a()("text-[20px]","light"===l&&"text-white")})},i)})})},em=()=>(0,r.jsxs)("div",{className:"bg-gray-10 p-4",children:[(0,r.jsxs)("div",{className:"rounded-lg bg-gray-5 p-3 text-center",children:[(0,r.jsx)("div",{className:"flex justify-center ",children:(0,r.jsx)(c.gc,{icon:ed.EY,className:"text-[32px] text-[#25D366]"})}),(0,r.jsxs)("div",{className:"mt-1 text-body-sm",children:["Resta sempre aggiornato con il canale ",(0,r.jsx)("strong",{children:"WhatsApp"})," del GdB"]}),(0,r.jsxs)(b.z,{href:es.fS,className:"w-100 mt-3",target:"_blank",children:["Iscriviti qui ",(0,r.jsx)(F.c,{})]})]}),(0,r.jsx)(ex,{className:"mt-5 justify-center"}),(0,r.jsx)(er,{className:"mt-5 text-center",extended:!1})]}),eg=e=>{let{onClose:t}=e;return(0,r.jsxs)("div",{className:"flex bg-yellow",children:[(0,r.jsx)("button",{onClick:t,className:"flex flex-none items-center p-3","aria-label":"Chiudi menu",children:(0,r.jsx)(C.b,{})}),(0,r.jsx)("div",{className:"flex grow items-center lg:hidden",children:(0,r.jsx)(V,{className:""})})]})},ef=e=>{let{items:t,onClose:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G,{onClick:l}),(0,r.jsxs)("div",{className:"fixed inset-0 z-20 flex flex-col lg:right-auto lg:min-h-screen lg:max-w-sm",onClick:l,children:[(0,r.jsx)(eg,{onClose:l}),(0,r.jsxs)("div",{className:"overflow-auto overscroll-none scrollbar-hide",children:[(0,r.jsxs)("nav",{"aria-label":"Menu di navigazione",children:[(0,r.jsx)(el,{}),(0,r.jsx)(J,{items:t})]}),(0,r.jsx)(em,{})]})]})]})};var ev=l(14185);let eb=e=>{let{className:t,...l}=e,s=(0,ev.A)("(prefers-color-scheme: dark)");return(0,r.jsx)("div",{className:a()({dark:s}),...l})},ej=e=>{let{navigationItems:t,megaMenuItems:l,showMenu:s,toggleMenu:a,closeMenu:i}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-grow items-stretch overflow-x-hidden",children:[(0,r.jsx)("div",{className:"flex flex-none items-center",children:(0,r.jsx)("button",{className:"p-3",onClick:a,"aria-label":s?"Chiudi menu":"Apri menu",children:s?(0,r.jsx)(C.b,{}):(0,r.jsx)(U.default,{src:"/icons/menu.svg",alt:"",width:24,height:24,"aria-hidden":!0})})}),(0,r.jsx)("div",{className:"flex flex-none items-center",inert:E(s),children:(0,r.jsx)(V,{className:"fill-black"})}),(0,r.jsx)(I,{items:t,className:"mx-3 hidden",inert:E(s)})]}),s&&(0,r.jsx)(eb,{children:(0,r.jsx)(ef,{items:l,onClose:i})})]})},ew=e=>{let{navigationItems:t=[],megaMenuItems:l=[],fullwidth:s=!1,shopUrl:i,areaRiservataUrl:n}=e,[c,d]=(0,S.useState)(!1),o=(0,S.useCallback)(()=>d(e=>!e),[]),h=(0,S.useCallback)(()=>d(!1),[]);return(0,r.jsx)("div",{className:"sticky top-0 z-20 bg-yellow",children:(0,r.jsx)("div",{className:a()("relative mx-auto",{container:!s}),children:(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsx)(ej,{navigationItems:t,megaMenuItems:l,showMenu:c,toggleMenu:o,closeMenu:h}),(0,r.jsx)(B,{shopUrl:i,areaRiservataUrl:n,showMenu:c})]})})})}},43616:(e,t,l)=>{l.d(t,{Dirette:()=>g,BL:()=>m});var r=l(95155),s=l(3988);let a=e=>{let{...t}=e;return(0,r.jsx)("div",{...t,className:"fixed inset-0"})};var i=l(60852),n=l(17765),c=l(51955),d=l(85203),o=l.n(d),h=l(12115);let u=()=>(0,r.jsx)("div",{className:"me-2",children:(0,r.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-blue-dark",children:(0,r.jsx)(c.j,{className:"fill-white"})})}),x=()=>(0,r.jsx)("div",{className:"me-2",children:(0,r.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-cool-grey-dark",children:(0,r.jsx)(n.t,{className:"fill-white",width:20,height:20})})}),m=[{type:"video",name:"Teletutto",url:"https://www.teletutto.it/in_diretta"},{type:"video",name:"Giornale Orario",url:"https://www.teletutto.it/tt-tg/12357.html"},{type:"audio",name:"Radio Bresciasette",url:"https://www.radiobresciasette.it/"},{type:"audio",name:"Giornale Radio",url:"https://www.radiobresciasette.it/"},{type:"audio",name:"Radio Classica Bresciana",url:"https://servizi.bresciaonline.it/radioclassica/index.php"}],g=()=>{let[e,t]=(0,h.useState)(!1);return(0,r.jsxs)("div",{className:o()("relative w-full border-y border-gray-20 py-4 text-center lg:border-none lg:py-0",{"pb-0":e}),children:[e&&(0,r.jsx)(a,{onClick:()=>t(!1)}),(0,r.jsx)("div",{className:"inline-block bg-white text-highlights-md font-medium italic tracking-tight text-black lg:px-3 lg:font-semibold lg:tracking-normal",children:"Segui le nostre dirette"}),(0,r.jsxs)("button",{onClick:()=>t(!e),className:o()("mt-3 flex w-full items-center justify-center px-3 font-semibold text-gray lg:hidden",{"h-[64px] bg-gray-5":!0===e,"h-[40px] rounded-full border border-black hover:text-black":!1===e}),children:[(0,r.jsx)(r.Fragment,{children:"Scegli il canale"}),(0,r.jsx)(i.c,{className:o()("rotate-90",{"-rotate-90":!0==e})})]}),(0,r.jsx)("div",{className:o()("absolute z-10 flex w-full flex-col items-center justify-between divide-y divide-gray-20 rounded-b-xl bg-white shadow-xl lg:static lg:-mt-2 lg:flex lg:flex-row lg:divide-none lg:overflow-x-auto lg:rounded-full lg:border lg:border-gray-20 lg:p-3 lg:shadow-none",{hidden:!e}),children:m.map((e,t)=>(0,r.jsxs)(s.z,{href:e.url,variant:"dirette",target:"_blank",children:["audio"===e.type&&(0,r.jsx)(x,{}),"video"===e.type&&(0,r.jsx)(u,{}),(0,r.jsx)("div",{className:"me-3 font-semibold",children:e.name})]},t))})]})}},45681:(e,t,l)=>{l.d(t,{AudiwebTrackerWatch:()=>a});var r=l(20063),s=l(12115);let a=()=>{let e=(0,r.usePathname)();return(0,s.useEffect)(()=>{let t,l=()=>{let l=window.nSdkInstance;if(!l)return;let r={assetid:e.split("").map(e=>e.charCodeAt(0).toString(36)).join(""),section:"Giornaledibrescia_BRW",type:"static"};l.ggPM("staticstart",r),t=()=>{l.ggPM("staticend",r)}};if(l(),!t){let e=()=>{l()};return window.addEventListener("audiweb-ready",e),()=>{window.removeEventListener("audiweb-ready",e),t&&t()}}return t},[e]),null}},51955:(e,t,l)=>{l.d(t,{j:()=>s});var r=l(95155);l(12115);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"current",fillRule:"evenodd",d:"M9.64 7.648v.001-.001Zm-.004.227v8.25l5.726-4.104a.13.13 0 0 0 0-.042L9.636 7.875Zm5.752 4.127Zm-5.748 4.35v-.001.001ZM8.697 6.257a1.345 1.345 0 0 1 1.589.006l6.026 4.32c.489.35.688.92.688 1.417s-.2 1.067-.688 1.417l-6.027 4.32a1.345 1.345 0 0 1-1.588.006C8.26 17.436 8 16.903 8 16.32V7.68c0-.583.26-1.116.697-1.423Z",clipRule:"evenodd"})})},59735:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});let r={src:"/_next/static/media/gdb-logo-multiline.900cc4d9.png",height:160,width:480,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAG1BMVEUiHh8iHh8iHh8iHiAiHh8iHh8jHR8jHx8iHh/26xWwAAAACXRSTlOLdGues156SMMOvUShAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nAXBhwEAMAjDMJMB/f/iSgCsetgviUULM9oPA7oASMwQVREAAAAASUVORK5CYII=",blurWidth:8,blurHeight:3}},60852:(e,t,l)=>{l.d(t,{c:()=>s});var r=l(95155);l(12115);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"current",fillRule:"evenodd",d:"M15.707 11.293a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L13.586 12 8.293 6.707a1 1 0 0 1 1.414-1.414l6 6Z",clipRule:"evenodd"})})},69891:(e,t,l)=>{l.d(t,{b:()=>s});var r=l(95155);l(12115);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 0 24 24",...e,children:(0,r.jsxs)("g",{fill:"current",fillRule:"evenodd",clipRule:"evenodd",children:[(0,r.jsx)("path",{d:"M16.95 7.05a1 1 0 0 1 0 1.414L8.464 16.95a1 1 0 1 1-1.414-1.414l8.486-8.486a1 1 0 0 1 1.414 0Z"}),(0,r.jsx)("path",{d:"M7.05 7.05a1 1 0 0 1 1.414 0l8.486 8.486a1 1 0 0 1-1.414 1.414L7.05 8.464a1 1 0 0 1 0-1.414Z"})]})})},70708:(e,t,l)=>{l.d(t,{A:()=>h});var r=l(93026),s=l(36489),a=l(12115),i=l(8696),n=l(46512);let c="/api/gdb/active-subscriptions",d=[],o=e=>fetch(e).then(e=>e.json()),h=()=>{let e=(0,s.useSession)(),{mutate:t}=(0,i.iX)(),{data:l,isLoading:h}=(0,n.Ay)(c,o),u=(0,r.W)();return(0,a.useEffect)(()=>{t(c)},[t,e]),(0,a.useEffect)(()=>{(null==l?void 0:l.shouldSignOut)&&u()},[l,u]),(0,a.useMemo)(()=>{let e=(null==l?void 0:l.codes)||d;return{codes:e,isGdbPlusSubscriber:e.includes("GDB+"),isBilanciSubscriber:e.includes("BILANCI"),isLoading:h}},[l,h])}},72013:(e,t,l)=>{l.d(t,{O:()=>a});var r=l(12115);let s="audiweb_optout",a=()=>{let[e,t]=(0,r.useState)(!1),[l,a]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{"true"===localStorage.getItem(s)&&t(!0),a(!1)},[]),{isOptedOut:e,isLoading:l,setOptout:(0,r.useCallback)(e=>{e?localStorage.setItem(s,"true"):localStorage.removeItem(s),t(e)},[])}}},73290:(e,t,l)=>{l.d(t,{default:()=>m});var r=l(95155),s=l(12115);let a=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M440-760v-160h80v160h-80Zm266 110-55-55 112-115 56 57-113 113Zm54 210v-80h160v80H760ZM440-40v-160h80v160h-80ZM254-652 140-763l57-56 113 113-56 54Zm508 512L651-255l54-54 114 110-57 59ZM40-440v-80h160v80H40Zm157 300-56-57 112-112 29 27 29 28-114 114Zm283-100q-100 0-170-70t-70-170q0-100 70-170t170-70q100 0 170 70t70 170q0 100-70 170t-170 70Zm0-80q66 0 113-47t47-113q0-66-47-113t-113-47q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-160Z"})}),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M260-160q-91 0-155.5-63T40-377q0-78 47-139t123-78q25-92 100-149t170-57q117 0 198.5 81.5T760-520q69 8 114.5 59.5T920-340q0 75-52.5 127.5T740-160H260Zm0-80h480q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-80q0-83-58.5-141.5T480-720q-83 0-141.5 58.5T280-520h-20q-58 0-99 41t-41 99q0 58 41 99t99 41Zm220-240Z"})}),n=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M720-200q-17 0-28.5-11.5T680-240q0-17 11.5-28.5T720-280q17 0 28.5 11.5T760-240q0 17-11.5 28.5T720-200ZM280-80q-17 0-28.5-11.5T240-120q0-17 11.5-28.5T280-160q17 0 28.5 11.5T320-120q0 17-11.5 28.5T280-80Zm-40-120q-17 0-28.5-11.5T200-240q0-17 11.5-28.5T240-280h360q17 0 28.5 11.5T640-240q0 17-11.5 28.5T600-200H240ZM400-80q-17 0-28.5-11.5T360-120q0-17 11.5-28.5T400-160h280q17 0 28.5 11.5T720-120q0 17-11.5 28.5T680-80H400ZM300-320q-91 0-155.5-64.5T80-540q0-83 55-145t136-73q32-57 87.5-89.5T480-880q90 0 156.5 57.5T717-679q69 6 116 57t47 122q0 75-52.5 127.5T700-320H300Zm0-80h400q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-40q0-66-47-113t-113-47q-48 0-87.5 26T333-704l-10 24h-25q-57 2-97.5 42.5T160-540q0 58 41 99t99 41Zm180-200Z"})}),c=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M440-760v-160h80v160h-80Zm266 110-56-56 113-114 56 57-113 113Zm54 210v-80h160v80H760Zm3 299L650-254l56-56 114 112-57 57ZM254-650 141-763l57-57 112 114-56 56Zm-14 450h180q25 0 42.5-17.5T480-260q0-25-17-42.5T421-320h-51l-20-48q-14-33-44-52.5T240-440q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0 80q-83 0-141.5-58.5T40-320q0-83 58.5-141.5T240-520q60 0 109.5 32.5T423-400q58 0 97.5 43T560-254q-2 57-42.5 95.5T420-120H240Zm320-134q-5-20-10-39t-10-39q45-19 72.5-59t27.5-89q0-66-47-113t-113-47q-60 0-105 39t-53 99q-20-5-41-9t-41-9q14-88 82.5-144T480-720q100 0 170 70t70 170q0 77-44 138.5T560-254Zm-79-226Z"})}),d=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M558-84q-15 8-30.5 2.5T504-102l-60-120q-8-15-2.5-30.5T462-276q15-8 30.5-2.5T516-258l60 120q8 15 2.5 30.5T558-84Zm240 0q-15 8-30.5 2.5T744-102l-60-120q-8-15-2.5-30.5T702-276q15-8 30.5-2.5T756-258l60 120q8 15 2.5 30.5T798-84Zm-480 0q-15 8-30.5 2.5T264-102l-60-120q-8-15-2.5-30.5T222-276q15-8 30.5-2.5T276-258l60 120q8 15 2.5 30.5T318-84Zm-18-236q-91 0-155.5-64.5T80-540q0-83 55-145t136-73q32-57 87.5-89.5T480-880q90 0 156.5 57.5T717-679q69 6 116 57t47 122q0 75-52.5 127.5T700-320H300Zm0-80h400q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-40q0-66-47-113t-113-47q-48 0-87.5 26T333-704l-10 24h-25q-57 2-97.5 42.5T160-540q0 58 41 99t99 41Zm180-200Z"})}),o=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"m462 0 94-107-80-40 116-133h106l-94 107 80 40L568 0H462ZM222 0l94-107-80-40 116-133h106l-94 107 80 40L328 0H222Zm78-320q-91 0-155.5-64.5T80-540q0-83 55-145t136-73q32-57 87.5-89.5T480-880q90 0 156.5 57.5T717-679q69 6 116 57t47 122q0 75-52.5 127.5T700-320H300Zm0-80h400q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-40q0-66-47-113t-113-47q-48 0-87.5 26T333-704l-10 24h-25q-57 2-97.5 42.5T160-540q0 58 41 99t99 41Zm180-200Z"})}),h=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M500-40q-25 0-42.5-17T440-99q0-12 4.5-23t13.5-19l42-39 42 39q9 8 13.5 19t4.5 23q0 25-17.5 42T500-40Zm-138-60-42-42 118-118 42 42-118 118Zm258-60-60-60 60-60 60 60-60 60Zm-360 0-60-60 60-60 60 60-60 60Zm40-160q-91 0-155.5-64.5T80-540q0-83 55-145t136-73q32-57 87.5-89.5T480-880q90 0 156.5 57.5T717-679q69 6 116 57t47 122q0 75-52.5 127.5T700-320H300Zm0-80h400q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-40q0-66-47-113t-113-47q-48 0-87.5 26T333-704l-10 24h-25q-57 2-97.5 42.5T160-540q0 58 41 99t99 41Zm180-200Z"})}),u=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#333",viewBox:"0 -960 960 960",...e,children:(0,r.jsx)("path",{fill:"current",d:"M260-200q-21 0-35.5-14.5T210-250q0-21 14.5-35.5T260-300q21 0 35.5 14.5T310-250q0 21-14.5 35.5T260-200ZM380-80q-21 0-35.5-14.5T330-130q0-21 14.5-35.5T380-180q21 0 35.5 14.5T430-130q0 21-14.5 35.5T380-80Zm120-120q-21 0-35.5-14.5T450-250q0-21 14.5-35.5T500-300q21 0 35.5 14.5T550-250q0 21-14.5 35.5T500-200Zm240 0q-21 0-35.5-14.5T690-250q0-21 14.5-35.5T740-300q21 0 35.5 14.5T790-250q0 21-14.5 35.5T740-200ZM620-80q-21 0-35.5-14.5T570-130q0-21 14.5-35.5T620-180q21 0 35.5 14.5T670-130q0 21-14.5 35.5T620-80ZM300-360q-91 0-155.5-64.5T80-580q0-83 55-145t136-73q32-57 87.5-89.5T480-920q90 0 156.5 57.5T717-719q69 6 116 57t47 122q0 75-52.5 127.5T700-360H300Zm0-80h400q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-40q0-66-47-113t-113-47q-48 0-87.5 26T333-744l-10 24h-25q-57 2-97.5 42.5T160-580q0 58 41 99t99 41Zm180-100Z"})}),x=e=>{let{weatherCode:t}=e;switch(t){case 0:return(0,r.jsx)(a,{});case 1:case 2:return(0,r.jsx)(c,{});case 3:return(0,r.jsx)(i,{});case 45:case 48:return(0,r.jsx)(n,{});case 51:case 53:case 55:case 61:case 63:case 65:case 80:case 81:case 82:return(0,r.jsx)(d,{});case 56:case 57:case 66:case 67:return(0,r.jsx)(h,{});case 71:case 73:case 75:case 77:case 85:case 86:return(0,r.jsx)(u,{});case 95:case 96:case 99:return(0,r.jsx)(o,{})}},m=()=>{let[e,t]=(0,s.useState)(null);return((0,s.useEffect)(()=>{fetch("/api/meteo/current").then(e=>e.ok?e.json():null).then(t).catch(()=>{})},[]),e)?(0,r.jsxs)("div",{className:"flex items-center justify-end",children:[(0,r.jsx)(x,{weatherCode:e.current.weather_code}),(0,r.jsxs)("span",{className:"ps-2 text-title-md",children:[e.current.temperature_2m,"\xb0C BRESCIA"]})]}):null}},73567:(e,t,l)=>{l.d(t,{default:()=>i});var r=l(72013),s=l(10439),a=l(12115);let i=e=>{let{appId:t}=e,{consentReady:l,measurementCookies:i}=(0,s.A)(),{isOptedOut:n,isLoading:c}=(0,r.O)(),d=(0,a.useRef)(!1),[o,h]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=setTimeout(()=>h(!0),3e3);return()=>clearTimeout(e)},[]),(0,a.useEffect)(()=>{if(c||!l&&!o)return;if(n)return void console.log("Audiweb: utente in opt-out, script non caricato");if(d.current)return;d.current=!0;let e=l&&i?"false":"true";console.log("Audiweb: caricamento script, optout:",e);let r=document.createElement("script");r.id="audiweb-script-loader",r.innerHTML='\n! function(t, n) {\n t[n] = t[n] || {\n nlsQ: function(e, o, c, r, s, i) {\n return s = t.document, r = s.createElement("script"), r.async = 1, r.src =\n ("http:" === t.location.protocol ? "http:" : "https:") + "//cdn-gl.imrworldwide.com/conf/" +\n e + ".js#name=" + o + "&ns=" + n, i = s.getElementsByTagName("script")[0],\n i.parentNode.insertBefore(r, i), t[n][o] = t[n][o] || {\n g: c || {},\n ggPM: function(e, c, r, s, i) {\n (t[n][o].q = t[n][o].q || []).push([e, c, r, s, i])\n }\n }, t[n][o]}}}\n(window, "NOLBUNDLE");\n\nwindow.nSdkInstance = NOLBUNDLE.nlsQ('.concat(JSON.stringify(t),', "nlsnInstance", ').concat(JSON.stringify({optout:e}),");\n\nwindow.dispatchEvent(new CustomEvent('audiweb-ready'));\n"),document.head.appendChild(r)},[l,o,c,n,i,t]),null}},93026:(e,t,l)=>{l.d(t,{W:()=>n});var r=l(30926);let s=(0,r.createServerReference)("00f79e253b74f4e0832be0769338a24195b2cedcdb",r.callServer,void 0,r.findSourceMapURL,"getLogoutUrl");var a=l(36489),i=l(12115);let n=()=>(0,i.useCallback)(async()=>{let e=await s(),t="".concat(window.location.origin,"/"),l="".concat(e,"/logout?redirect_uri=").concat(encodeURIComponent(t));await (0,a.signOut)({redirect:!1}),window.location.href=l},[])},93254:(e,t,l)=>{l.d(t,{Di:()=>i,L2:()=>r,P$:()=>a,XG:()=>s,_L:()=>d,fS:()=>c,uN:()=>n});let r="https://www.facebook.com/giornaledibrescia",s="https://www.instagram.com/giornaledibrescia/",a="https://www.linkedin.com/company/giornale-di-brescia/",i="https://www.tiktok.com/@giornaledibrescia",n="https://twitter.com/gdb_it",c="https://whatsapp.com/channel/0029VaCjau3BvvsbWtZsh102",d="https://www.youtube.com/@giornaledibrescia_official"}}]);