(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1720],{73566:function(e,n,s){Promise.resolve().then(s.bind(s,7039)),Promise.resolve().then(s.bind(s,67734)),Promise.resolve().then(s.bind(s,56793)),Promise.resolve().then(s.bind(s,85524)),Promise.resolve().then(s.bind(s,68451)),Promise.resolve().then(s.bind(s,29774)),Promise.resolve().then(s.bind(s,15029)),Promise.resolve().then(s.bind(s,81759)),Promise.resolve().then(s.bind(s,62405)),Promise.resolve().then(s.bind(s,66603)),Promise.resolve().then(s.bind(s,3034)),Promise.resolve().then(s.bind(s,34739)),Promise.resolve().then(s.bind(s,41991)),Promise.resolve().then(s.bind(s,58547)),Promise.resolve().then(s.bind(s,69340)),Promise.resolve().then(s.bind(s,44346)),Promise.resolve().then(s.bind(s,67538)),Promise.resolve().then(s.bind(s,3929)),Promise.resolve().then(s.bind(s,62934)),Promise.resolve().then(s.bind(s,5648)),Promise.resolve().then(s.bind(s,3862)),Promise.resolve().then(s.bind(s,8149)),Promise.resolve().then(s.bind(s,44469)),Promise.resolve().then(s.t.bind(s,65878,23))},85524:function(e,n,s){"use strict";s.r(n),s.d(n,{BodyHistoryBlock:function(){return r}});var t=s(57437);let l=(0,s(30166).default)(()=>Promise.all([s.e(493),s.e(9678)]).then(s.bind(s,29774)),{loadableGenerated:{webpack:()=>[29774]}}),r=e=>{let{content:n}=e;return(0,t.jsx)(l,{value:n})}},15029:function(e,n,s){"use strict";s.d(n,{default:function(){return d}});var t=s(57437),l=s(30166),r=s(2265);let i=(0,t.jsx)("p",{children:"chargement…"}),a=(0,l.default)(()=>Promise.all([s.e(8667),s.e(6966)]).then(s.bind(s,96966)),{loadableGenerated:{webpack:()=>[96966]},loading:()=>i});function d(){let[e,n]=(0,r.useState)(!1),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(s.current){let e=async()=>{let e=new IntersectionObserver(s=>{s[0].isIntersecting&&(n(!0),e.disconnect(),console.log("Video bulletin will be loaded."))},{threshold:.1});return s.current&&e.observe(s.current),()=>{s.current&&e.unobserve(s.current)}};setTimeout(()=>{window.requestIdleCallback?window.requestIdleCallback(function(){e()}):e()},3e3)}},[]),(0,t.jsx)("div",{ref:s,children:e?(0,t.jsx)(a,{}):i})}},34739:function(e,n,s){"use strict";s.d(n,{default:function(){return w}});var t=s(57437),l=s(86390),r=s(62669),i=s(59578),a=s(30166),d=s(79713),c=s(48446),o=s(19344),m=s(43287),u=s(93971),h=s(15846);let f=(0,a.default)(()=>s.e(2398).then(s.bind(s,62398)),{loadableGenerated:{webpack:()=>[62398]}}),p=(0,a.default)(()=>s.e(2589).then(s.bind(s,72589)),{loadableGenerated:{webpack:()=>[72589]},loading:()=>(0,t.jsx)("div",{className:"h-[66px]"})}),x=(0,a.default)(()=>Promise.all([s.e(2756),s.e(9811)]).then(s.bind(s,77352)),{loadableGenerated:{webpack:()=>[77352]},loading:()=>(0,t.jsx)("span",{className:"h-14 w-14"})}),b=(0,a.default)(()=>s.e(6350).then(s.bind(s,36350)),{loadableGenerated:{webpack:()=>[36350]},loading:()=>(0,t.jsx)("span",{className:"h-6 w-6"})}),C=(0,a.default)(()=>s.e(5084).then(s.bind(s,95084)),{loadableGenerated:{webpack:()=>[95084]},loading:()=>(0,t.jsx)("span",{className:"h-6 w-6"})}),g=(0,a.default)(()=>s.e(9424).then(s.bind(s,9424)),{loadableGenerated:{webpack:()=>[9424]},loading:()=>(0,t.jsx)("span",{className:"h-6 w-6"})}),v={0:{fr:"Matin",en:"Morning"},1:{fr:"Apr\xe8s-midi",en:"Afternoon"},2:{fr:"Soir",en:"Evening"},3:{fr:"Nuit",en:"Night"}},j={0:"",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function w(e){let{siteId:n,todayForecast:s,yesterdayForecast:a,report:w,pollution:N,showRealtime:P=!1,vertical:Z=!1,siteInfos:k=null,textFull:y=!1,showDate:G=!1,lastWeekend:H=!1,dictionary:L=null,locale:M="fr"}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[G&&(0,t.jsx)("h2",{className:"text-lg font-semibold capitalize text-center lg:text-start",children:(0,c.default)(s.day,"long-no-time","UTC",M)}),(0,t.jsx)("div",{className:"hidden md:block md:mb-2",children:(0,t.jsx)(f,{today:s})})]}),(0,t.jsxs)("div",{className:(0,r.Z)("grid-cols-1 gap-6",!Z&&"lg:grid-cols-2",y?"flex flex-col grow":"grid"),children:[(0,t.jsxs)("div",{children:[P&&(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(p,{locale:M,dictionary:L,siteId:n,report:w,pollution:N})}),(0,t.jsx)("div",{className:(0,r.Z)("grid gap-4",j[s.steps.length]),children:s.steps.map((e,n)=>{let l="middle";return 0===n&&(l="left"),n===s.steps.length-1&&(l="right"),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 px-6",children:[(0,t.jsx)("span",{className:"whitespace-nowrap",children:v[n][M]}),(0,t.jsx)(x,{id:e.picto,tooltipPosition:l,className:"h-14 w-14",locale:M}),(0,t.jsx)("span",{className:(0,r.Z)("flex items-center justify-center h-9 w-9 md:h-12 md:w-12 text-base rounded-full",(0,d.Z)(e.temp)),children:e.temp}),a&&a.steps[n]&&(0,t.jsxs)("span",{className:"whitespace-nowrap text-typography-inverse/70 text-xs text-light",children:[H?"".concat((0,c.default)(a.day,"short","UTC",M),": "):"".concat(L?L["day-before"]:""," "),a.steps[n].temp,"\xb0C"]})]},n)})})]}),(0,t.jsx)("div",{className:(0,r.Z)("flex flex-col rounded bg-white text-sm font-light overflow-hidden forecast-content",y&&"grow"),children:(0,t.jsxs)("div",{className:"flex-1 flex flex-col p-4 text-primary gap-y-4",children:[(0,t.jsx)("div",{className:"flex-1 text-center flex items-center lg:text-base",children:(0,t.jsx)("p",{children:s.dayLegend})}),(0,t.jsxs)("div",{className:"flex gap-2 text-primary",children:[(null==k?void 0:k.snow)&&(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-1 md:gap-2 p-1 lg:p-1.5 bg-background rounded",children:[(0,t.jsxs)("span",{className:"text-xs leading-tight",children:[L?L.snow:""," ",(0,t.jsx)("span",{className:"md:block",children:L?L.fresh:""})]}),(0,t.jsx)("span",{className:"font-semibold",children:(0,o.ZP)(Number(s.snow24))})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 p-1 lg:p-1.5 bg-background rounded",children:[(0,t.jsx)("div",{children:"VR"===s.windDirection?(0,t.jsx)(g,{className:"h-6 w-6 text-green-600"}):(0,t.jsx)(C,{className:(0,r.Z)("h-6 w-6",l.K[s.windDirection].rotate,(0,i.Z)((0,m.Z)(s.windSpeed)))})}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-center md:gap-1",children:[(0,t.jsx)("span",{children:l.K[s.windDirection][M]}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-1",children:[(0,t.jsxs)("span",{className:"font-semibold",children:[(0,m.Z)(s.windSpeed),"km/h"]}),(0,m.Z)(s.gustSpeed)>=50&&(0,m.Z)(s.gustSpeed)>=s.windSpeed+5?(0,t.jsx)("span",{className:(0,r.Z)((0,h.Z)((0,m.Z)(s.gustSpeed)),"text-center text-xs font-semibold rounded px-1 py-1"),children:"Raf. ".concat((0,m.Z)(s.gustSpeed))}):""]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 p-1 lg:p-1.5 bg-background rounded",children:[(0,t.jsx)(b,{rainProbability:s.rainProbability,className:"h-6 w-6 rotate-12"}),(0,t.jsxs)("span",{className:"font-semibold",children:[s.rainProbability,"%"]})]}),13!==Number(n)?(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-center gap-1 md:gap-2 p-1 lg:p-1.5 bg-background rounded",children:[(0,t.jsxs)("span",{className:"text-xs leading-tight",children:[L?L.gap:""," ",(0,t.jsx)("span",{className:"md:block",children:L?L.season:""})]}),(0,t.jsxs)("span",{className:(0,r.Z)("p-0.5 lg:p-1 rounded font-semibold",(0,u.Z)(s.tempGap)),children:[s.tempGap>0?"+"+s.tempGap:s.tempGap,"\xb0C"]})]}):""]})]})})]})]})}},44346:function(e,n,s){"use strict";s.d(n,{default:function(){return l}});var t=s(57437);function l(e){let{className:n}=e;return(0,t.jsx)("svg",{fill:"none",viewBox:"0 0 24 22",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 12.12C0 11.84 0.0999999 11.62 0.3 11.44C0.47 11.26 0.7 11.18 0.98 11.18H3.29C3.56 11.18 3.78 11.27 3.96 11.45C4.13 11.63 4.22 11.85 4.22 12.12C4.22 12.4 4.13 12.64 3.95 12.83C3.77 13.02 3.55 13.12 3.29 13.12H0.99C0.72 13.12 0.49 13.02 0.3 12.82C0.0999999 12.62 0 12.39 0 12.12ZM3.29 4.26C3.29 3.98 3.37 3.75 3.54 3.58C3.74 3.38 3.97 3.28 4.24 3.28C4.53 3.28 4.75 3.38 4.92 3.58L6.54 5.21C7 5.65 7 6.1 6.54 6.56C6.35 6.75 6.14 6.84 5.89 6.84C5.67 6.84 5.45 6.75 5.21 6.56L3.55 4.94C3.38 4.76 3.29 4.53 3.29 4.26ZM5.26 17.54C5.26 17.28 5.36 17.05 5.56 16.85C5.74 16.67 5.97 16.58 6.24 16.58H9.46C9.57 16.58 9.66 16.6 9.74 16.66L12.09 18.88L14.48 16.65C14.55 16.6 14.65 16.57 14.77 16.57H18.07C18.34 16.57 18.57 16.66 18.76 16.85C18.95 17.04 19.05 17.27 19.05 17.53C19.05 17.8 18.95 18.03 18.76 18.22C18.57 18.41 18.34 18.51 18.07 18.51H15.39L12.25 21.35C12.13 21.44 12.02 21.44 11.92 21.35L8.84 18.51H6.24C5.97 18.51 5.74 18.41 5.55 18.22C5.36 18.04 5.26 17.81 5.26 17.54ZM6.2 12.12C6.2 13.11 6.39 13.99 6.78 14.74C6.84 14.85 6.93 14.9 7.05 14.9H8.92C9 14.9 9.05 14.88 9.07 14.83C9.09 14.78 9.06 14.72 9 14.65C8.41 13.91 8.11 13.06 8.11 12.12C8.11 11.02 8.5 10.08 9.29 9.31C10.08 8.54 11.03 8.15 12.14 8.15C13.24 8.15 14.18 8.54 14.97 9.31C15.75 10.09 16.15 11.02 16.15 12.11C16.15 13.05 15.85 13.9 15.26 14.64C15.19 14.71 15.17 14.77 15.19 14.82C15.21 14.87 15.26 14.89 15.34 14.89H17.22C17.35 14.89 17.43 14.84 17.46 14.73C17.87 13.95 18.08 13.07 18.08 12.11C18.08 11.32 17.92 10.55 17.61 9.82C17.3 9.09 16.87 8.45 16.34 7.92C15.81 7.39 15.18 6.97 14.45 6.65C13.72 6.33 12.95 6.18 12.15 6.18C11.35 6.18 10.58 6.34 9.85 6.65C9.12 6.97 8.49 7.39 7.96 7.92C7.43 8.45 7.01 9.08 6.69 9.82C6.37 10.56 6.2 11.33 6.2 12.12ZM11.16 3.31V0.98C11.16 0.71 11.26 0.48 11.45 0.29C11.64 0.1 11.87 0 12.14 0C12.41 0 12.64 0.1 12.83 0.29C13.02 0.48 13.12 0.71 13.12 0.98V3.3C13.12 3.57 13.02 3.8 12.83 3.99C12.64 4.18 12.41 4.28 12.14 4.28C11.87 4.28 11.64 4.18 11.45 3.99C11.25 3.8 11.16 3.58 11.16 3.31ZM17.43 5.89C17.43 5.61 17.52 5.38 17.69 5.22L19.32 3.59C19.48 3.39 19.71 3.29 20 3.29C20.27 3.29 20.5 3.39 20.68 3.58C20.86 3.77 20.95 4 20.95 4.27C20.95 4.55 20.87 4.78 20.7 4.95L19.04 6.58C18.81 6.77 18.58 6.86 18.35 6.86C18.09 6.86 17.87 6.77 17.69 6.58C17.52 6.39 17.43 6.16 17.43 5.89ZM20.02 12.12C20.02 11.85 20.11 11.63 20.28 11.45C20.45 11.27 20.68 11.18 20.95 11.18H23.27C23.54 11.18 23.77 11.27 23.96 11.45C24.15 11.63 24.25 11.85 24.25 12.12C24.25 12.39 24.15 12.62 23.96 12.82C23.77 13.02 23.54 13.12 23.27 13.12H20.95C20.69 13.12 20.47 13.02 20.29 12.83C20.11 12.64 20.02 12.4 20.02 12.12Z"})})}},67538:function(e,n,s){"use strict";s.d(n,{default:function(){return r}});var t=s(57437),l=s(33145);function r(e){let{map:n}=e;return(0,t.jsxs)("div",{className:"aspect-w-1 aspect-h-1",children:[(0,t.jsx)(l.default,{src:n.mapPath,alt:"Carte des temp\xe9ratures actuelles",fill:!0,unoptimized:!0}),n.mapCities.map((e,n)=>(0,t.jsx)("a",{href:e.site.url,className:"absolute block h-[5%] w-[8%] -translate-x-1/2 -translate-y-1/2",title:e.name,style:{top:"".concat(100*e.yPercent,"%"),left:"".concat(100*e.xPercent,"%")},children:(0,t.jsx)("span",{className:"sr-only",children:e.name})},n))]})}},19344:function(e,n,s){"use strict";s.d(n,{Bm:function(){return o},Ch:function(){return c},FX:function(){return m},Xv:function(){return p},ZP:function(){return b},_O:function(){return f},oc:function(){return u},pI:function(){return h},s0:function(){return t},s1:function(){return l},s2:function(){return r},s3:function(){return i},s4:function(){return a},s5:function(){return d}});let t=0,l=1,r=2,i=3,a=4,d=5,c=6,o=7,m=9,u=10,h=11,f=12,p=13,x={0:"0 cm",1:"1 cm",2:"2 cm",3:"3 cm",4:"4 cm",5:"5 cm",6:"10 cm",7:"15 cm",9:"20 cm",10:"25 cm",11:"30 cm",12:"35 cm",13:"+ de 35 cm"};function b(e){let n=x[e];return n||(n="Unknown type (".concat(e,")")),n}}},function(e){e.O(0,[4506,5878,493,1451,6728,7639,7325,2971,2117,1744],function(){return e(e.s=73566)}),_N_E=e.O()}]);