1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8906],{3454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(7663)},6404:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/podcast",function(){return r(4510)}])},5921:function(e,t,r){"use strict";var n=r(5893),i=r(7294);let o=(0,i.forwardRef)((e,t)=>(0,n.jsx)("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,...e}));o.displayName="BaseIcon",t.Z=o},3129:function(e,t,r){"use strict";r.r(t);var n=r(5893),i=r(5921);let o=e=>{let t=["h-6","w-6","icon","calendar__icon",e.className];return(0,n.jsx)(i.Z,{...e,className:t.join(" "),children:(0,n.jsx)("path",{d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"})})};t.default=o},6005:function(e,t,r){"use strict";r.d(t,{Z:function(){return N}});var n=r(5893),i=r(259),o=r(2053),s=r(8567),a=r(4833);class l extends s.Z{constructor(e){super(e),this.actions=e.actions,this.type=a.Z.MODAL,this.preventScroll=void 0===e.preventScroll||e.preventScroll,this.backdrop=!("backdrop"in e)||e.backdrop,this.autoClose="autoClose"in e&&e.autoClose}}var c=r(7294);let u=async e=>{let t=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await t.json();return r},d=async e=>{let t=await fetch("/api/auth/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await t.json();return r};var p=r(1224),h=r(465),m=r(132),f=r(1662),g=r(1773),v=r(6364),x=r(3688),y=r(2007),b=r(727),w=r(9663),j=r(876);let I=e=>{let{onLogin:t,onSignUp:r}=e,[o,s]=(0,c.useState)(!0),[a,l]=(0,c.useState)(g.Y),{executeRecaptcha:I}=(0,i.xX)(),S=(0,c.useContext)(j.Z),E=(0,c.useContext)(w.Z),N=(0,m.Z)(),T={...e},C=["flex","flex-col","gap-10","mb-10",T.className],{submitting:_}=a,A=o?"Accesso avvenuto correttamente.":"Registrazione avvenuta correttamente!";_&&C.push("loading"),delete T.onLogin,delete T.onSignUp;let{value:P,isValid:k,isEmpty:O,hasError:Z,inputChangeHandler:D,inputBlurHandler:M,inputSubmit:L,inputReset:R}=(0,h.Z)(o?f.UE:f.vV),{value:U,isValid:$,isEmpty:F,hasError:B,inputChangeHandler:H,inputBlurHandler:z,inputSubmit:V,inputReset:G}=(0,h.Z)(o?f.UE:f.OU),W=null,q=null,Y=null;a.hasError&&a.feedback?W=(0,n.jsx)("p",{className:"my-2 error text-red-600",children:a.feedback}):!a.hasError&&a.submitted&&(W=(0,n.jsx)("p",{className:"my-2 text-green-600",children:a.feedback})),Z&&!O&&(q="Inserisci un indirizzo mail valido."),Z&&O&&(q=o?"Inserisci il tuo username o la tua mail":"Inserisci l'indirizzo mail"),o||$||F||(Y="Inserisci una password pi\xf9 sicura."),B&&F&&(Y="Inserisci la tua password"),(0,c.useEffect)(()=>
1{l(e=>({...g.Y,submitted:e.submitted,feedback:e.feedback}))},[o]);let X=async e=>{if(e.preventDefault(),void 0===I){l(e=>({...e,hasError:!0,feedback:"Impossibile verificare il reCaptcha. Per favore, riprova pi\xf9 tardi."}));return}if(L(),V(),O||!k||F||!$){l({submitted:!1,submitting:!1,hasError:!0});return}l(e=>({...e,submitted:!1,submitting:!0,feedback:null}));let n=await I(o?"userLogin":"userSignUp"),i=null;try{let a={email:P,password:U,gReCaptchaToken:n};if(!(null==(i=o?await u(a):await d(a))?void 0:i.ok)){var c;switch(null==i?void 0:null===(c=i.error)||void 0===c?void 0:c.code){case p.Ad.EMPTY_EMAIL:throw Error("Per favore, inserisci il tuo indirizzo email.");case p.Ad.EXISTING_NAME:case p.Ad.EXISTING_EMAIL:throw Error("Questa mail \xe8 gi\xe0 registrata.");case p.Ad.WRONG_EMAIL:throw Error("Non esiste alcun account con l'username o la mail inserita.");case p.Ad.EMPTY_PASSWORD:throw Error("Per favore, inserisci la tua password.");case p.Ad.WRONG_PASSWORD:throw Error("Password errata.");default:throw Error("Si \xe8 verificato un errore. Per favore, riprova pi\xf9 tardi.")}}}catch(m){let h=m.message||"Si \xe8 verificato un errore durante l'invio del modulo.";return l({submitted:!1,submitting:!1,hasError:!0,feedback:h})}if(l({submitted:!0,submitting:!1,hasError:!1,feedback:A}),!o)return N("User sign up"),"function"==typeof r&&r(),s(!0);if(i.message.login.authToken){let f=new Date(new Date().getTime()+3e5);S.logIn(i.message.login.authToken,f.toISOString()),N("User login")}"function"==typeof t&&t(),E.hidePopUp()};return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("h5",{className:"my-5 mb-10 text-2xl",children:o?"Accedi":"Registrati"}),(0,n.jsxs)("form",{...T,className:C.join(" "),onSubmit:X,children:[(0,n.jsx)(v.Z,{id:"userLogin",label:"Email",hiddenLabel:!0,error:q,attr:{type:o?"text":"email",placeholder:o?"Username o email":"La tua email",required:!0,value:P,onChange:D,onBlur:M}}),(0,n.jsx)(v.Z,{id:"userPassword",label:"Password",hiddenLabel:!0,error:Y,attr:{type:"password",placeholder:"La tua password",required:!0,value:U,onChange:H,onBlur:z},feedback:o?void 0:"Inserisci una password sicura. ( almeno 10 caratteri )"}),(0,n.jsx)(x.Z,{disabled:_,children:o?"Accedi":"Registrati"}),W]}),(0,n.jsxs)("p",{className:"text-center",children:[o&&(0,n.jsxs)(n.Fragment,{children:["Non hai ancora un account? ",(0,n.jsx)("button",{onClick:()=>s(!1),children:"Registrati"})]}),!o&&(0,n.jsxs)(n.Fragment,{children:["Hai gi\xe0 un account? ",(0,n.jsx)("button",{onClick:()=>s(!0),children:"Accedi"})]})]}),_&&(0,n.jsx)(y.Z,{children:(0,n.jsx)(b.Z,{className:"w-10 h-10 text-secondaryColor-600 fill-accentColor-500"})})]})},S=(0,n.jsx)(n.Fragment,{children:o.i.reCaptcha.siteKey?(0,n.jsx)(i.pm,{reCaptchaKey:o.i.reCaptcha.siteKey,scriptProps:{async:!1,defer:!0,appendTo:"head",nonce:void 0},children:(0,n.jsx)(I,{})}):(0,n.jsx)(I,{})}),E=new l({message:S,className:"text-center",position:{mobile:"bottom"}});var N=E}
1,6909:function(e,t,r){"use strict";r.d(t,{n:function(){return u}});let n=location,i=n.protocol?n.protocol+"//":"",o=n.pathname||"/",s=i+n.hostname,a="".concat(s).concat(o),l="https://retesport.it".replace(/\/+$/,""),c={title:"Retesport 104.2 FM",description:"\xc8 sport solo su Rete Sport 104.2 FM",titleSeparator:"-",appColor:"#8E1F2F",url:s,canonical:a,location:n,logo:"/retesport-logo.png",shareImg:"/share-screen.jpg",shareImgPath:"",shareImgUrl:"",shareImgSize:{width:1200,height:630},publicUrl:l,paths:{images:"/images"},portals:{overlaysId:"overlays"}};c.shareImgPath=c.paths.images+c.shareImg,c.shareImgUrl=c.publicUrl+c.shareImgPath;let u=c.paths;t.Z=c},6299:function(e,t,r){"use strict";r.d(t,{f:function(){return l},i:function(){return a}});var n=r(7297),i=r(8806);function o(){let e=(0,n.Z)(['\n query retrievePodcasts(\n $first: Int = 12,\n $last: Int = 0,\n $after: String = "",\n $before: String = "",\n $search: String = ""\n $orderByField: PostObjectsConnectionOrderbyEnum = DATE\n $order: OrderEnum = DESC\n ) {\n posts: allPodcast(\n first: $first,\n last: $last,\n after: $after,\n before: $before,\n where: {\n search: $search,\n orderby: {\n field: $orderByField,\n order: $order\n }\n }\n ) {\n pageInfo {\n endCursor\n startCursor\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n slug\n title\n date\n contentTypeName\n metagenerics {\n restricted\n }\n featuredImage {\n node {\n sourceUrl\n }\n }\n }\n }\n }\n }\n']);return o=function(){return e},e}function s(){let e=(0,n.Z)(['\n query retrievePodcastBySlug( $slug: String = "" ) {\n post: podcastBy( slug: $slug ) {\n slug\n title\n content\n date\n contentTypeName\n featuredImage {\n node {\n sourceUrl\n }\n }\n metagenerics {\n restricted\n }\n podcastACF {\n framePodcast\n }\n seo {\n fullHead\n }\n }\n }\n']);return s=function(){return e},e}let a=(0,i.Ps)(o()),l=(0,i.Ps)(s())},1662:function(e,t,r){"use strict";var n,i;r.d(t,{p6:function(){return o},i3:function(){return u},kJ:function(){return a},xf:function(){return s},UE:function(){return p},OU:function(){return m},vV:function(){return h},kI:function(){return d},df:function(){return c},zf:function(){return l}}),(i=n||(n={}))[i._1M=60]="_1M",i[i._10M=600]="_10M",i[i._30M=1800]="_30M",i[i._1Hour=3600]="_1Hour",i[i._1Day=86400]="_1Day",i[i._1Week=604800]="_1Week",i[i._1Month=2592e3]="_1Month",i[i._1Year=31536e3]="_1Year";let o=(e,t,r)=>{let n=e||new Date,i=n.toLocaleString(t,r);return{date:n,localeString:i}},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return!!r&&("string"==typeof r[1]&&r[1].length>0&&r[1].toLowerCase()!==t.protocol||"string"==typeof r[2]&&r[2].length>0&&r[2].replace(RegExp(":("+({"http:":80,"https:":443})[t.protocol]+")?$"),"")!==t.host)},a=e=>!!e&&e.constructor===Array,l=e=>e.charAt(0).toUpperCase()+e.slice(1),c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"DESC",n="Date"!==e.constructor.name?new Date(e):e,i="Date"!==t.constructor.name?new Date(t):t,o=n.getTime(),s=i.getTime();return isNaN(o)||isNaN(s)?0:"DESC"===r?s-o:o-s},u=e=>{let t=[];e.setDate(e.getDate()-e.getDay()+1);for(let r=0;r<7;r++)t.push(new Date(e)),e.setDate(e.getDate()+1);return t},d=(e,t)=>{if(t){let r=e.getBoundingClientRect();window.scrollTo({top:window.pageYOffset+r.top-t,behavior:"smooth"});return}e.scrollIntoView({behavior:"smooth"})},p=e=>e.trim().length>0,h=e=>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e),m=e=>e.trim().length>10},8383:function(e,t,r){"use strict";var n=r(5893),i=r(7294),o=r(5935),s=r(6909);let a=e=>{if(!e)return null;let t=(0,o.ZP)(e),r=Array.isArray(t)?t:[t],a=e=>{var t;return null===(t=r.find(t=>(0,i.isValidElement)(t)&&"meta"===t.type&&"property"in t.props&&t.props.property===e))||void 0===t?void 0:t.props.content},l=a("og:description"),c=a("og:image")?[]:[(0,n.jsx)("meta",{property:"og:image",content:s.Z.shareImgUrl},"og:image"),(0,n.jsx)("meta",{property:"og:image:width",content:"".concat(s.Z.shareImgSize.width)},"og:image:width"),(0,n.jsx)("meta",{property:"og:image:height",content:"".concat(s.Z.shareImgSize.height)},"og:image:height"),(0,n.jsx)("meta",{property:"og:image:type",content:"image/jpeg"},"og:image:type")];return r.map(e=>{if((0,i.isValidElement)(e)){let t=e.props;if(!l&&"script"===e.type&&"type"in t&&"application/ld+json"===t.type&&"dangerouslySetInnerHTML"in t&&"__html"in t.dangerouslySetInnerHTML)try{let r=JSON.parse(t.dangerouslySetInnerHTML.__html);if("@graph"in r&&Array.isArray(r["@graph"])){var o;let a=null===(o=r["@graph"])||void 0===o?void 0:o.reverse().find(e=>"description"in e&&!!e.description);return[e,(0,n.jsx)("meta",{name:"description",content:(null==a?void 0:a.description)||s.Z.description},"description")]}}catch(c){console.error("Couldn't parse application/ld+json \xaf\\_(ã)_/\xaf")}}return[e,(0,n.jsx)("meta",{name:"description",content:l||s.Z.description},"description")]}
1).filter(Boolean).concat(c)};t.Z=a},8567:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n,i,o=r(4833);(n=i||(i={})).INFO="info",n.PENDING="pending",n.SUCCESS="success",n.WARNING="warning",n.ERROR="error";class s extends o.C{constructor(e){super(e),this.title=e.title,this.message=e.message,this.status=e.status,this.type=o.Z.NOTIFICATION,this.preventScroll=!1}}t.Z=s},4833:function(e,t,r){"use strict";var n,i;r.d(t,{Z:function(){return n}}),(i=n||(n={})).NOTIFICATION="notification",i.MODAL="modal",i.POPOVER="popover",i.SIDEBAR="sidebar",t.C=class{constructor(e){this.id=Math.random().toString(),this.autoClose=e.autoClose,this.dismissible=e.dismissible,this.children=e.children,this.type=e.type||n.NOTIFICATION,this.preventScroll=void 0===e.preventScroll||e.preventScroll,this.position=e.position,this.dismissText=e.dismissText||"Dismiss",this.className=e.className,this.animationDuration=void 0!==e.animationDuration?e.animationDuration:300}}},4510:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return b},default:function(){return w}});var n=r(5893),i=r(5152),o=r.n(i),s=r(6299),a=r(9008),l=r.n(a),c=r(5675),u=r.n(c),d=r(7294),p=r(6909),h=r(1662),m=r(9663),f=r(3129);r(6005),r(223);let g=e=>{let{image:t,title:r,url:i,excerpt:o,categories:s,publishDate:a,isRestricted:l}=e,c=((0,d.useContext)(m.Z),p.Z.paths.images+"/retesport-logo.png"),g=s&&s[0],v=!!a&&"".concat((0,h.p6)(a,"it",{day:"2-digit",month:"long",year:"numeric"}).localeString,", ").concat((0,h.p6)(a,"it",{hour:"2-digit",minute:"2-digit"}).localeString);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"relative",children:[!1,(0,n.jsx)("a",{href:i||"#",title:r,children:t?(0,n.jsx)(u(),{src:t,width:400,height:400,alt:r,className:"object-cover rounded-xl w-full h-[300px] mb-5"}):(0,n.jsx)(u(),{src:c,width:400,height:400,alt:r,className:"object-contain rounded-xl w-full h-[300px] mb-5 bg-[#0000000d] p-[70px]"})})]}),g&&(0,n.jsx)("a",{href:g.slug,title:g.name,children:g.name}),(0,n.jsxs)("a",{href:i||"#",title:r,children:[(0,n.jsx)("div",{className:"font-bold text-xl mb-3",children:r}),o&&(0,n.jsx)("p",{children:o}),v&&(0,n.jsxs)("span",{className:"flex items-center gap-2 text-sm",children:[(0,n.jsx)(f.default,{})," ",v]})]})]})};var v=r(8383);let x=o()(()=>Promise.all([r.e(6312),r.e(6785),r.e(4429)]).then(r.bind(r,4429)),{loadableGenerated:{webpack:()=>[4429]}}),y=e=>{var t,r,i,o,a;let{page:c,posts:u}=e,d=null===(t=null==c?void 0:c.edges[0])||void 0===t?void 0:t.node.title,p=null===(r=null===(i=null==c?void 0:c.edges[0])||void 0===i?void 0:i.node.featuredImage)||void 0===r?void 0:r.node.sourceUrl,h=null===(o=null===(a=null==c?void 0:c.edges[0])||void 0===a?void 0:a.node.seo)||void 0===o?void 0:o.fullHead;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{children:(0,v.Z)(h)}),(0,n.jsx)(x,{title:d,image:p,posts:u,query:s.i,showFilters:{terms:!1},postRender:g,banners:e.banners,sidebarPosts:e.sidebarPosts})]})};var b=!0,w=y},876:function(e,t,r){"use strict";var n=r(7294);let i=(0,n.createContext)({isLoggedIn:!1,logIn(e,t){},logOut(){}});t.Z=i},9663:function(e,t,r){"use strict";var n=r(7294);let i=(0,n.createContext)({popup:null,showPopUp(e){},hidePopUp(){}});t.Z=i},223:function(e){e.exports={requiresAuthOverlay:"PostCard_requiresAuthOverlay__sInMv"}},7663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(n){r=s}}();var l=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?l=n.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(n=l,l=[];++u<t;)n&&n[u].run();u=-1,t=l.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()}},function(e){e.O(0,[5675,6421,9089,6271,9774,2888,179],function(){return e(e.s=6404)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.