1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9582a776-b3d0-4f6d-9c9b-3dda046580de",e._sentryDebugIdIdentifier="sentry-dbid-9582a776-b3d0-4f6d-9c9b-3dda046580de")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[540],{16076:function(e,t,a){a.d(t,{n:function(){return PreviewAlert}});var s=a(85893),r=a(67294),n=a(11163);function PreviewAlert(){let{isPreview:e}=(0,n.useRouter)(),[t,a]=r.useState(!1);return(r.useEffect(()=>{a(e&&window.top===window.self)},[e]),t)?(0,s.jsx)("div",{className:"sticky top-0 left-0 z-50 w-full px-2 py-1 text-center text-white bg-black",children:(0,s.jsxs)("p",{className:"mb-0",children:["This page is a preview."," ",(0,s.jsx)("a",{href:"/api/exit-preview",className:"text-white underline",children:"Click here"})," ","to exit preview mode."]})}):null}},93222:function(e,t,a){a.d(t,{$_:function(){return Footer},h4:function(){return Header},oy:function(){return Preheader}});var s=a(85893),r=a(41664),n=a.n(r),l=a(55968),i=a(5114),d=a(9663),o=a(77373),c=a(40770),u=a(89655),x=a(17688),m=a(67294),f=a(9820);let SocialLinkFb=e=>{let{iconClassName:t,iconColor:a,url:r,...i}=e;return(0,s.jsx)(n(),{href:r||"https://fr-fr.facebook.com/RadioRythmeBleu/",target:"_blank",...i,children:(0,s.jsx)(l.vf,{className:t,color:a})})},SocialLinkX=e=>{let{iconClassName:t,iconColor:a,url:r,...i}=e;return(0,s.jsx)(n(),{href:r||"https://twitter.com/RRB_NC",target:"_blank",...i,children:(0,s.jsx)(l.FR,{className:t,color:a})})},SocialLinkYt=e=>{let{iconClassName:t,iconColor:a,url:r,...i}=e;return(0,s.jsx)(n(),{href:r||"https://www.youtube.com/channel/UCpJBjs9gx9go13oJrXW4bzQ",target:"_blank",...i,children:(0,s.jsx)(l.gK,{className:t,color:a})})};var h=a(97239),p=a(6536),g=a(47189),v=a(83520),b=a(73981),j=a(88008),w=a(99355);let N=[(0,s.jsx)(h.Z,{},0),(0,s.jsx)(h.Z,{},1),(0,s.jsx)(h.Z,{},2),(0,s.jsx)(h.Z,{},3),(0,s.jsx)(h.Z,{},4),(0,s.jsx)(p.Z,{},5),(0,s.jsx)(g.Z,{},6),(0,s.jsx)(p.Z,{},7),(0,s.jsx)(v.Z,{},8),(0,s.jsx)(v.Z,{},9),(0,s.jsx)(b.Z,{},10),(0,s.jsx)(b.Z,{},11),(0,s.jsx)(b.Z,{},12),(0,s.jsx)(j.Z,{},13),(0,s.jsx)(j.Z,{},14),(0,s.jsx)(w.Z,{},15),(0,s.jsx)(w.Z,{},16),(0,s.jsx)(w.Z,{},17)];var meteo_MeteoWidget=()=>{let[e,t]=(0,m.useState)(null);(0,m.useEffect)(()=>{let init=async()=>{try{var e,a;let s=await fetch("/api/weather-forecast",{headers:{"Content-Type":"text/xml"}}).then(e=>e.text()),r=new window.DOMParser().parseFromString(s,"text/xml");t({temperature:null===(e=r.querySelector("parameter#t timerange value"))||void 0===e?void 0:e.textContent,weather:null===(a=r.querySelector("parameter#weather timerange value"))||void 0===a?void 0:a.textContent})}catch(e){t(null)}};init()},[]);let a=(null==e?void 0:e.weather)&&N[null==e?void 0:e.weather]?N[null==e?void 0:e.weather]:null;return(0,s.jsx)(s.Fragment,{children:e&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{children:a}),(0,s.jsxs)("span",{className:"uppercase lg:text-[10px]",children:[null==e?void 0:e.temperature,"\xb0C"]})]})})},y=a(11163),S=a(80469),k=a(33299);function Header(){let[e,t]=(0,m.useState)(!1),[a,r]=(0,m.useState)(!1),{status:h}=(0,k.useSession)(),{menuMainLinks:p}=(0,m.useContext)(S.Z),g=(0,y.useRouter)();(0,m.useEffect)(()=>{t(!1)},[g]),(0,m.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)");e.addEventListener("change",checkIfMobileMenu),checkIfMobileMenu(e)},[]);let toggleMenu=()=>{t(e=>!e)},checkIfMobileMenu=e=>{r(e.matches)};return(0,m.useEffect)(()=>{e?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[e]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"bg-white py-[10px] max-md:px-4 px-8 flex justify-between items-center border-b",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.z,{variant:"ghost",onClick:toggleMenu,className:"text-foreground-dark py-2 px-4",iconLeft:e?(0,s.jsx)(o.Z,{}):(0,s.jsx)(c.Z,{}),children:(0,s.jsx)("span",{className:"hidden lg:inline",children:"Menu"})}),(0,s.jsx)(n(),{href:"/",children:(0,s.jsx)(l.P7,{})}),(0,s.jsx)("span",{className:"text-sm text-brand-mer-700 max-md:hidden",children:"La fr\xe9quence aux couleurs de la France"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(x.Z,{className:"gap-3",children:(0,s.jsx)(i.f,{isOnAir:!0,children:"En direct"})}
1),"authenticated"===h&&(0,s.jsx)(d.z,{variant:"ghost",iconRight:(0,s.jsx)(u.Z,{size:"18"}),asChild:!0,children:(0,s.jsx)(n(),{href:"/mon-compte",children:(0,s.jsx)("p",{className:"max-md:hidden",children:"Mon compte"})})})]})]}),e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"absolute inset-0",onClick:toggleMenu}),(0,s.jsx)("div",{"data-state":e?"open":"closed",className:"relative w-full h-[calc(100vh-73px)] lg:h-[calc(100vh-105px)] bg-light duration-700 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",children:(0,s.jsxs)("div",{className:"flex flex-1 h-full flex-col justify-between max-md:pb-14 lg:flex-row",children:[(0,s.jsx)("div",{className:"p-6 lg:py-8 lg:px-[107px] flex flex-col gap-6 lg:gap-4 md:w-1/2 w-full overflow-auto",children:(null==p?void 0:p.length)&&p.map(e=>(0,s.jsx)(n(),{href:e.url,className:"text-xl lg:text-[40px] leading-tight lg:leading-normal text-foreground-dark hover:text-brand-mer-500 transition",children:e.title},e.id))}),a?(0,s.jsx)("div",{className:"w-1/2",children:(0,s.jsx)(f.Z,{})}):(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"px-6 py-8 border-t border-b border-neutral-300 bg-neutral-100 flex flex-col gap-6",children:(0,s.jsx)(meteo_MeteoWidget,{})}),(0,s.jsxs)("div",{className:"px-6 py-8 flex items-center gap-3",children:[(0,s.jsx)(SocialLinkFb,{className:"rounded-full transition-all bg-brand-mer-500 hover:bg-brand-mer-200 lg:hover:bg-brand-mer-500 lg:bg-neutral-400 w-11 h-11 lg:w-8 lg:h-8 grid place-items-center",iconClassName:"w-5 lg:w-4",iconColor:"white"}),(0,s.jsx)(SocialLinkX,{className:"rounded-full transition-all bg-brand-mer-500 hover:bg-brand-mer-200 lg:hover:bg-brand-mer-500 lg:bg-neutral-400 w-11 h-11 lg:w-8 lg:h-8 grid place-items-center",iconClassName:"w-5 lg:w-4",iconColor:"white"}),(0,s.jsx)(SocialLinkYt,{className:"rounded-full transition-all bg-brand-mer-500 hover:bg-brand-mer-200 lg:hover:bg-brand-mer-500 lg:bg-neutral-400 w-11 h-11 lg:w-8 lg:h-8 grid place-items-center",iconClassName:"w-5 lg:w-4",iconColor:"white"})]})]})]})})]})]})}var C=a(34976);function Preheader(){let{menuHeaderLinks:e}=(0,m.useContext)(S.Z);return(0,s.jsx)("div",{className:"bg-light text-light-foreground py-1 px-8 justify-end hidden lg:flex",children:(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[(null==e?void 0:e.length)&&e.map(e=>(0,s.jsx)(n(),{href:e.url,className:("menu_link_content:cfc800b3-a88e-4af6-beda-bbf9a8adaa07"===e.id&&(0,d.d)({size:"preheader"}))+" uppercase text-[10px]",children:e.title},e.id)),(0,s.jsx)(meteo_MeteoWidget,{}),(0,s.jsx)(C.Z,{orientation:"vertical"}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(SocialLinkFb,{}),(0,s.jsx)(SocialLinkX,{}),(0,s.jsx)(SocialLinkYt,{})]})]})})}var Z=a(75622);function Footer(){let{menuFooterLinks:e}=(0,m.useContext)(S.Z),{status:t}=(0,k.useSession)(),a=(0,y.useRouter)(),handleDisconnect=async()=>{"authenticated"===t?await (0,k.signOut)():a.push("/m-identifier")},handleClick=e=>{"authenticated"===t?a.push(e):a.push("/m-identifier")};return(0,s.jsx)("footer",{className:"bg-brand-mer-1000 pt-6 pb-[112px] lg:pt-12",children:(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsxs)("div",{className:"flex gap-x-8 gap-y-10 justify-between flex-col lg:flex-row",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex gap-6 flex-col lg:flex-row",children:[(0,s.jsx)("div",{className:"min-w-[248px]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-start md:w-[177px]",children:[(0,s.jsx)(l.r_,{}),(0,s.jsx)("span",{className:"text-white",children:"La fr\xe9quence aux couleurs de la France"})]})}),(0,s.jsx)("div",{className:"flex gap-4",children:(0,s.jsx)("div",{className:"flex flex-col flex-wrap gap-4 lg:max-h-[132px]",children:(null==e?void 0:e.length)&&e.map(e=>(0,s.jsx)(n(),{href:e.url,className:"text-white text-[14px]",children:e.title},e.id))})})]}),(0,s.jsx)(C.Z,{className:"bg-primary lg:hidden"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(SocialLinkFb,{className:"rounded-full transition-all bg-brand-mer-500 hover:bg-brand-mer-200 lg:hover:bg-brand-mer-500 lg:bg-neutral-400 w-11 h-11 lg:w-8 lg:h-8 grid place-items-center",iconClassName:"w-5 lg:w-4",iconColor:"var(--brand-mer-1000)"}),(0,s.jsx)(SocialLinkX,{className:"rounded-full transition-all bg-brand-mer-500 hover:bg-brand-mer-200 lg:hover:bg-brand-mer-500 lg:bg-neutral-400 w-11 h-11 lg:w-8 lg:h-8 grid place-items-center",iconClassName:"w-5 lg:w-4",iconColor:"var(--brand-mer-1000)"}),(0,s.jsx)(SocialLinkYt,{className:"rounded-full transition-all bg-brand-mer-500 hover:bg-brand-mer-200 lg:hover:bg-brand-mer-500 lg:bg-neutral-400 w-11 h-11 lg:w-8 lg:h-8 grid place-items-center",iconClassName:"w-5 lg:w-4",iconColor:"var(--brand-mer-1000)"})]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-3 md:min-w-[324px]",children:"authenticated"===t&&(0,s.jsxs)("div",{className:"p-4 bg-brand-mer-900 flex flex-col gap-4",children:[(0,s.jsx)(d.z,{className:"bg-[#0F73CF]",iconLeft:(0,s.jsx)(u.Z,{size:"18"}),onClick:handleDisconnect,children:(0,s.jsx)("p",{className:"max-md:hidden",children:"authenticated"===t?"Se d\xe9connecter":"Se connecter"})}),(0,s.jsx)(d.z,{className:"bg-transparent text-white",variant:"outline",onClick:()=>handleClick("/mon-compte/historique-commentaires"),iconLeft:"authenticated"!==t?(0,s.jsx)(Z.Z,{size:"20"}):(0,s.jsx)(l.WH,{color:"white",size:"18"}),children:(0,s.jsx)("span",{children:"Mes commentaires"})})]})})]})})})}},93378:function(e,t,a){var s=a(85893);a(67294);var r=a(98425);t.Z=e=>{let{className:t,children:a,...n}=e;return(0,s.jsx)("div",{className:(0,r.cn)("md:container px-4 mx-auto",t),...n,children:a})}},34976:function(e,t,a){a.d(t,{Z:function(){return i}});var s=a(85893),r=a(67294),n=a(12780),l=a(98425);let i=r.forwardRef((e,t)=>
1{let{className:a,orientation:r="horizontal",decorative:i=!0,...d}=e;return(0,s.jsx)(n.f,{ref:t,decorative:i,orientation:r,className:(0,l.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",a),...d})});i.displayName=n.f.displayName},10959:function(e,t,a){a.d(t,{x:function(){return Toaster}});var s=a(85893),r=a(67294),n=a(77373),l=a(67626),i=a(45139),d=a(98425);let o=l.zt,c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.l_,{ref:t,className:(0,d.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...r})});c.displayName=l.l_.displayName;let u=(0,i.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),x=r.forwardRef((e,t)=>{let{className:a,variant:r,...n}=e;return(0,s.jsx)(l.fC,{ref:t,className:(0,d.cn)(u({variant:r}),a),...n})});x.displayName=l.fC.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.aU,{ref:t,className:(0,d.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...r})});m.displayName=l.aU.displayName;let f=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.x8,{ref:t,className:(0,d.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...r,children:(0,s.jsx)(n.Z,{className:"h-4 w-4"})})});f.displayName=l.x8.displayName;let h=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.Dx,{ref:t,className:(0,d.cn)("text-sm font-semibold [&+div]:text-xs",a),...r})});h.displayName=l.Dx.displayName;let p=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.dk,{ref:t,className:(0,d.cn)("text-sm opacity-90",a),...r})});p.displayName=l.dk.displayName;var g=a(57816);function Toaster(){let{toasts:e}=(0,g.pm)();return(0,s.jsxs)(o,{children:[e.map(function(e){let{id:t,title:a,description:r,action:n,...l}=e;return(0,s.jsxs)(x,{...l,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[a&&(0,s.jsx)(h,{children:a}),r&&(0,s.jsx)(p,{children:r})]}),n,(0,s.jsx)(f,{})]},t)}),(0,s.jsx)(c,{})]})}},57816:function(e,t,a){a.d(t,{Am:function(){return toast},pm:function(){return useToast}});var s=a(67294);let r=0,n=new Map,addToRemoveQueue=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),dispatch({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},reducer=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?addToRemoveQueue(a):e.toasts.forEach(e=>{addToRemoveQueue(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],i={toasts:[]};
1function dispatch(e){i=reducer(i,e),l.forEach(e=>{e(i)})}function toast(e){let{...t}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),dismiss=()=>dispatch({type:"DISMISS_TOAST",toastId:a});return dispatch({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||dismiss()}}}),{id:a,dismiss,update:e=>dispatch({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function useToast(){let[e,t]=s.useState(i);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast,dismiss:e=>dispatch({type:"DISMISS_TOAST",toastId:e})}}}}]); 2//# sourceMappingURL=540-36ea907b5ae8410b.js.map
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.