https://www.theweathernetwork.com/my-account-app-assets/_next/static/chunks/2945-14edeb3c575ca4be.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2945],{2785:()=>{},4952:(e,t,r)=>{"use strict";r(85465),r(56493),r(43495),r(91884)},15233:(e,t,r)=>{"use strict";r.d(t,{SiteChrome:()=>ea,Fq:()=>g,cP:()=>f});var l=r(85465);r(2785);var a=r(37235),i=r(56493),n=r(29569),s=r(10100),d=r(95596),o=r(25512),c=r(72743);let h={"en-CA":{navBarLabel:"Site",weather:{label:"Weather",linkUrl:"/",highlightUrlPattern:/(^\/en\/[a-z-]+\/[a-z]{2}\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+)|(^\/[a-z]{2}\/(forecasts|weather|hourly-weather-forecast|36-hour-weather-forecast|14-day-weather-trend|historical)\/)/i},maps:{label:"Maps",linkUrl:"/en/maps/radar",highlightUrlPattern:/^\/en\/maps\//i},news:{label:"News",linkUrl:"/en/news",highlightUrlPattern:/^\/en\/news/i},video:{label:"Video",linkUrl:"/en/video",highlightUrlPattern:/^\/en\/video/i},vacation:{label:"Vacation",linkUrl:"/en/vacation",highlightUrlPattern:/^\/en\/vacation/i}},"fr-CA":{navBarLabel:"Site web",weather:{label:"M\xe9t\xe9o",linkUrl:"/",highlightUrlPattern:/(^\/fr\/[a-z-]+\/[a-z]{2}\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+)|(^\/[a-z]{2}\/(previsions|meteo|previsions-meteo-horaires|previsions-meteo-36-heures|tendance-meteo-14-jours|historique)\/)/i},maps:{label:"Cartes",linkUrl:"/fr/cartes/radar",highlightUrlPattern:/^\/fr\/cartes\//i},news:{label:"Nouvelles",linkUrl:"/fr/nouvelles",highlightUrlPattern:/^\/fr\/nouvelles/i},video:{label:"Vid\xe9os",linkUrl:"/fr/video",highlightUrlPattern:/^\/fr\/video/i},vacation:{label:"Vacances",linkUrl:"/fr/vacances",highlightUrlPattern:/^\/fr\/vacances/i}}};var m=r(92617);let u="1.71875rem",x="3.95rem",f="50px",g="90px",p=({children:e})=>(0,l.jsx)("ul",{className:(0,m.cn)("w-full flex md:justify-end xl:justify-between md:gap-2 md:pr-4","max-md:justify-between max-md:items-center max-md:list-none","max-md:[background-color:var(--theme-prop-primary-nav-background-color)]",`max-md:h-[${x}] max-md:border-t max-md:border-t-[rgba(0,0,0,0.2)]`,"max-md:px-4 max-md:py-0 max-md:ml-[1.2rem]"),children:e});var b=r(68799);let v=({isHighlighted:e=!1,showIconInHorizontalNav:t=!1,children:r})=>(0,l.jsx)("div",{"data-highlighted":e?"true":void 0,className:(0,m.cn)("flex flex-col items-center text-xs font-normal max-md:p-[0.5em]","text-nav-text-light fill-nav-text-light dark:text-nav-text-dark dark:fill-nav-text-dark","md:block md:w-fit md:uppercase md:box-content md:text-base","md:[&_span]:px-1.5","md:relative md:inline-block","md:[font-variation-settings:'wght'_400]","md:transition-[font-variation-settings,font-weight]","md:[transition-duration:450ms] md:[transition-timing-function:cubic-bezier(0.19,1,0.22,1)]","md:after:content-[''] md:after:absolute md:after:block","md:after:left-0 md:after:top-full md:after:mt-[0.67rem]","md:after:h-1.5 md:after:bg-[#F6DA07]",{"max-md:text-night-blue max-md:fill-night-blue":e,"dark:max-md:text-brand-yellow dark:max-md:fill-brand-yellow":e,"md:[&_i]:hidden md:[&_svg]:hidden":!t},e?"md:[font-variation-settings:'wght'_600] md:font-bold md:after:w-full":"md:after:w-0 md:after:transition-[width] md:after:[transition-duration:450ms] md:after:[transition-timing-function:cubic-bezier(0.19,1,0.22,1)] md:hover:[font-variation-settings:'wght'_600] md:hover:font-bold md:hover:after:w-full"),children:r}),w=({highlightUrlPattern:e,showIconInHorizontalNav:t,children:r})=>{let[a,n]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{n(!!window.location.pathname.match(e))},[e]),(0,l.jsx)(v,{isHighlighted:a,showIconInHorizontalNav:t,children:r})};var j=r(523),y=r(41210),k=r(86454),N=r(54951);let A=({linkUrl:e,highlightUrlPattern:t,children:r,dataTestId:i,disabled:n,showIconInHorizontalNav:s,moduleSubProduct:d})=>{let{viewPortSize:o}=(0,N.wo)();if(n)return null;let c=o===a.iL.SMALL?k.Oe.NavigationTabBar:k.Oe.NavigationTopNav;return(0,l.jsx)(y.W,{href:e,"data-testid":i,className:(0,m.cn)("inline-block h-full rounded-sm","keyboard-focus-link"),children:(0,l.jsx)(j.xM,{ga4ModuleParameters:{[k.L8.ModuleName]:c,[k.L8.ModuleSubProduct]:d},children:(0,l.jsx)(w,{highlightUrlPattern:t,showIconInHorizontalNav:s,children:r})})})};var U=r(63686),P=r(59522);let S=({locale:e})=>{let t=h[e].weather,[r,a]=(0,i.useState)(t.linkUrl),n=(0,U._U)();return(0,i.useEffect)(()=>{a(n?.path??t.linkUrl)},[n]),(0,l.jsxs)(A,{linkUrl:r,highlightUrlPattern:t.highlightUrlPattern,dataTestId:"header-nav-item-weather",disabled:t.disabled,moduleSubProduct:P.Yt.Current,children:[(0,l.jsx)(b.ES,{size:u}),(0,l.jsx)("span",{children:t.label})]})},_=({locale:e})=>{let[t,r]=(0,i.useState)(new URLSearchParams),a=(0,U._U)(),n=h[e].maps;(0,i.useEffect)(()=>
1{if(a){let e=new URLSearchParams;e.set("lat",`${a.lat}`),e.set("lng",`${a.long}`),r(e)}},[a?.lat,a?.long]);let s=t.toString()?`?${t.toString()}`:"",d=`${n.linkUrl}${s}`;return(0,l.jsxs)(A,{linkUrl:d,highlightUrlPattern:n.highlightUrlPattern,dataTestId:"header-nav-item-maps",disabled:n.disabled,moduleSubProduct:P.Yt.Maps,children:[(0,l.jsx)(b.MC,{size:u}),(0,l.jsx)("span",{children:n.label})]})},L=({locale:e})=>{let t=h[e].news;return(0,l.jsxs)(A,{linkUrl:t.linkUrl,highlightUrlPattern:t.highlightUrlPattern,dataTestId:"header-nav-item-news",disabled:t.disabled,moduleSubProduct:P.Yt.News,children:[(0,l.jsx)(b.LE,{size:u}),(0,l.jsx)("span",{children:t.label})]})},z=({locale:e})=>{let t=h[e].video;return(0,l.jsxs)(A,{linkUrl:t.linkUrl,highlightUrlPattern:t.highlightUrlPattern,dataTestId:"header-nav-item-videos",disabled:t.disabled,moduleSubProduct:P.Yt.Videos,children:[(0,l.jsx)(b.np,{size:u}),(0,l.jsx)("span",{children:t.label})]})},E=()=>(0,l.jsx)(A,{linkUrl:"/en/gta-live",highlightUrlPattern:/^\/en\/gta-live/i,dataTestId:"header-nav-item-watch-live",moduleSubProduct:"watchLive",showIconInHorizontalNav:!0,children:(0,l.jsxs)("div",{className:"flex items-center flex-row-reverse w-max sm:flex-col",children:[(0,l.jsx)(b.sY,{size:u,className:"md:hidden"}),(0,l.jsx)("span",{children:"Watch Live"})]})});var C=r(85113);let T=({locale:e})=>{let t=(0,C.Br)("watch-live","not_in_experiment"),[r,a]=(0,i.useState)(!1);(0,i.useEffect)(()=>{a("live_stream_with_sign_in"===t||"live_stream_without_sign_in"===t)},[t]);let n=h[e];return(0,l.jsx)("nav",{className:"w-full","aria-label":n.navBarLabel,"data-testid":"header-navigation-bar",children:(0,l.jsxs)(p,{children:[(0,l.jsx)("li",{children:(0,l.jsx)(S,{locale:e})}),(0,l.jsx)("li",{children:(0,l.jsx)(_,{locale:e})}),(0,l.jsx)("li",{children:(0,l.jsx)(L,{locale:e})}),(0,l.jsx)("li",{children:(0,l.jsx)(z,{locale:e})}),r&&(0,l.jsx)("li",{children:(0,l.jsx)(E,{locale:e})})]})})},I=({children:e,dataTestId:t})=>(0,l.jsx)("div",{"data-testid":t,className:(0,m.cn)("z-[100] fixed bottom-0 w-full","md:static md:self-end md:top-[27.5px]","md:w-[87%] lg:w-[87%]"),children:e}),M=({children:e})=>(0,l.jsx)("div",{className:"flex flex-row items-center gap-4 justify-end md:gap-1 xl:gap-4 md:w-[70%] xl:w-1/2",children:e}),B=({children:e})=>(0,l.jsx)("div",{className:"w-[7.5rem] md:w-[10.5rem]",children:e}),R={"en-CA":{welcome:"Welcome"},"fr-CA":{welcome:"Bienvenue"}};var H=r(57337),W=r(13159);let O=({locale:e,firebaseOptions:t})=>{let{user:r,loading:a}=(0,H.t)({locale:e,firebaseOptions:t});return(0,l.jsx)(s.W,{href:W.XF[e].signInPath,"data-testid":"account-button",children:(0,l.jsxs)("div",{className:`flex items-center ${r&&!a?"text-night-blue":""}`,children:[(0,l.jsx)(b.ny,{size:29}),(0,l.jsx)("span",{className:(0,m.cn)("max-w-[5.375rem] overflow-hidden text-ellipsis whitespace-nowrap text-body-sm font-normal","md:max-w-[3.875rem]","xl:max-w-[7.875rem]"),children:r&&!a?r.displayName:R[e].welcome})]})})},$=({children:e,className:t=""})=>(0,l.jsx)("div",{className:(0,m.cn)("w-full shadow-header dark:shadow-none -mt-[1px]","bg-white dark:bg-near-black","text-nav-text-light dark:text-nav-text-dark","[&_a]:text-nav-text-light dark:[&_a]:text-nav-text-dark",t),children:e}),Y=({children:e,className:t=""})=>(0,l.jsx)("div",{className:(0,m.cn)("flex items-center justify-between w-full h-[2.375rem]","md:h-[3.875rem]",t),children:e}),V=({locale:e,searchBaseUrl:t,hideHeaderAndNavigation:r,headerText:a,disableSearch:i,disableAccount:n,firebaseOptions:h})=>(0,l.jsx)($,{children:(0,l.jsxs)(d.ResponsiveContainer,{children:[!r&&(0,l.jsxs)(Y,{children:[(0,l.jsx)(B,{children:(0,l.jsx)(s.W,{href:"/",className:(0,m.cn)("inline-block rounded-sm","keyboard-focus-link"),children:(0,l.jsx)(o.P,{size:"100%",locale:e})})}),(0,l.jsxs)(M,{children:[(0,l.jsx)(I,{dataTestId:"navigation-container",children:(0,l.jsx)(T,{locale:e})}),(0,l.jsxs)("div",{className:"flex items-center gap-2 xl:gap-4",children:[!i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.t,{locale:e,searchBaseUrl:t})," |"]}),!n&&(0,l.jsx)(O,{firebaseOptions:h,locale:e})]})]})]}),a&&(0,l.jsx)("div",{className:"py-4",children:(0,l.jsx)("h1",{className:"text-xl font-bold",children:a})})]})}),F=i.forwardRef(({disableSticky:e,className:t,children:r,...a},i)=>(0,l.jsx)("div",{ref:i,className:(0,m.cn)(!e&&"sticky top-0 z-[100]",t),...a,children:r}));F.displayName="StickyItem";let Z=i.forwardRef(({disableSticky:e,className:t,children:r,...a},i)=>(0,l.jsx)("div",{ref:i,className:(0,m.cn)({"site-chrome-header-sticky-item sticky z-[100]":!e,"top-[var(--header-sticky-top)]":!e},t),...a,children:r}));Z.displayName="HeaderStickyItem";var q=r(52148);let D=({children:e,isAdPushedDownRef:t,adWrapperRef:r})=>(0,l.jsx)("div",{ref:r,className:(0,m.cn)("bg-white dark:bg-near-black","empty:min-h-[90px] [&_div:empty]:min-h-[90px]","max-md:empty:min-h-[50px] max-md:empty:h-[50px]","max-md:[&_div:empty]:min-h-[50px] max-md:[&_div:empty]:h-[50px]",{"bg-transparent":t.current}),"data-testid":"header-ad-content",children:e}
1),G={"en-CA":{siteName:"The Weather Network",installApp:"Install App",closeBanner:"Close banner"},"fr-CA":{siteName:"M\xe9t\xe9oM\xe9dia",installApp:"Installer l'application",closeBanner:"Fermer la banni\xe8re"}};var J=r(59420);let X=({children:e})=>(0,l.jsx)("div",{"data-testid":"app-install-banner",className:"w-full pb-2 text-body-md font-[sans-serif] bg-background font-normal",children:(0,l.jsx)("div",{className:"flex flex-col gap-2 px-4 py-2 border-b border-[#9a9a9a]",children:e})});var K=r(21154);let Q=({locale:e,setBeforeInstallEvent:t})=>(0,l.jsx)("div",{className:"w-full flex justify-end pb-2",children:(0,l.jsx)("button",{type:"button",className:(0,m.cn)("m-0 inline-flex items-center justify-center border-0","bg-transparent p-0"),"aria-label":G[e].closeBanner,onClick:()=>{t(null),(0,q.Sp)(q.AZ.APP_INSTALL_BANNER_SEEN,"true",{path:"/","max-age":30*q.N_})},children:(0,l.jsx)(K.U,{size:20,stroke:"currentColor"})})}),ee=({locale:e})=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(b.mZ,{styling:"tailwind",size:"2rem"}),(0,l.jsx)("div",{children:G[e].siteName})]}),et=({onClick:e,label:t})=>(0,l.jsx)("button",{className:"bg-[#13A31A] text-white px-4 py-2 m-0",onClick:e,children:t}),er=({locale:e,beforeInstallEvent:t,setBeforeInstallEvent:r})=>{let a={[k.L8.ModuleName]:k.Oe.Smartbanner};return(0,l.jsx)(J.SW,{ga4ModuleParameters:a,children:(0,l.jsxs)(X,{children:[(0,l.jsx)(J.xM,{ga4ModuleParameters:{...a,[k.L8.ModuleSubProduct]:k.kO.Close},children:(0,l.jsx)(Q,{locale:e,setBeforeInstallEvent:r})}),(0,l.jsxs)("div",{className:"w-full flex justify-between",children:[(0,l.jsx)(ee,{locale:e}),(0,l.jsx)(J.xM,{ga4ModuleParameters:{...a,[k.L8.ModuleSubProduct]:k.kO.Install},children:(0,l.jsx)(et,{label:G[e].installApp,onClick:()=>{t.prompt(),t.userChoice.then(e=>{(0,q.Sp)(q.AZ.APP_INSTALL_BANNER_SEEN,"true",{path:"/","max-age":30*q.N_}),r(null),"accepted"===e.outcome&&J.Ay.sendClickEvent({...a,[k.L8.ModuleSubProduct]:k.kO.InstallModal})})}})})]})]})})};var el=r(9440);let ea=({locale:e,searchBaseUrl:t,firebaseOptions:r,isTopBannerBelowHeader:s,hideHeaderAndNavigation:d,showPostHeaderContent:o,stickinessDurationInMs:c=7e3,isPostHeaderAdContentSticky:h,headerText:u,disableSticky:f,disableTopBanner:g,disableSearch:p,disableAccount:b,disableWatchLiveBanner:v,postHeaderContent:w,adContent:j,children:y})=>{let k=(0,i.useRef)(null),A=(0,i.useRef)(null),U=(0,i.useRef)(null),{hasTakeover:P}=(0,n.pu)(),{beforeInstallEvent:S,setBeforeInstallEvent:_}=(0,N.AJ)(),L=s||P,z=(0,i.useRef)(L);z.current=L;let[E,C]=(0,i.useState)(!1);(0,i.useLayoutEffect)(()=>{if(!k.current)return;let e=new ResizeObserver(()=>{U.current&&k.current&&!E&&!z.current&&(U.current.style.top=`${k.current.clientHeight}px`)});return e.observe(k.current),()=>e.disconnect()},[k.current]),(0,i.useLayoutEffect)(()=>{U.current&&g&&(U.current.style.top="0")},[U.current,g]),(0,i.useEffect)(()=>{if(!E)return;let e=0;k.current&&!z.current&&(e+=k.current.clientHeight),U.current&&(e+=U.current.clientHeight),k.current&&!z.current&&(k.current.style.transition="top 0.5s",k.current.style.top=`-${e+1}px`),U.current&&(U.current.style.transition="top 0.5s",U.current.style.top=`-${e+1}px`)},[E]),(0,i.useLayoutEffect)(()=>{let e=setTimeout(()=>C(!0),c);return()=>{clearTimeout(e)}},[c]);let{viewPortSize:T}=(0,N.wo)();(0,i.useEffect)(()=>{let e;if(!T)return;let t=t=>{t.slot.getSlotElementId()===n.tS.TOP_BANNER&&(e=setTimeout(()=>C(!0),T===a.iL.SMALL?2e3:500))};return globalThis.window.googletag=globalThis.window.googletag||{cmd:[]},globalThis.window.googletag.cmd.push(()=>{globalThis.window.googletag.pubads().addEventListener("impressionViewable",t)}
1),()=>{globalThis.window.googletag.cmd.push(()=>{globalThis.window.googletag.pubads().removeEventListener("impressionViewable",t)}),clearTimeout(e)}},[T]),(0,i.useLayoutEffect)(()=>{if(!E)return;let e=setTimeout(()=>{k.current&&(k.current.style.position="static"),U.current&&(U.current.style.position="static")},500);return()=>{clearTimeout(e)}},[E]),(0,i.useLayoutEffect)(()=>{z.current&&k.current&&A.current&&U.current&&(k.current.style.order="1",A.current.style.backgroundColor="transparent",U.current.style.top="0")},[z.current]);let I=f||z.current&&!h;return(0,l.jsxs)("div",{className:(0,m.cn)("min-h-full","flex flex-col","font-sans","[&_input]:font-sans"),"data-testid":"site-chrome",children:[(0,l.jsxs)("header",{className:"contents",children:[S&&!(0,q.Ri)(q.AZ.APP_INSTALL_BANNER_SEEN)&&(0,l.jsx)(er,{locale:e,beforeInstallEvent:S,setBeforeInstallEvent:_}),!g&&j&&(0,l.jsx)(F,{ref:k,disableSticky:I,"data-testid":"ad-content-wrapper",className:I?"":"z-[101]",children:(0,l.jsx)(D,{isAdPushedDownRef:z,adWrapperRef:A,children:j})}),(0,l.jsxs)(Z,{ref:U,disableSticky:f,"data-testid":"site-chrome-header",children:[(0,l.jsx)(V,{firebaseOptions:r,locale:e,searchBaseUrl:t,hideHeaderAndNavigation:d,headerText:u,disableSearch:p,disableAccount:b}),(!d||o)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Bd,{disable:v}),(0,l.jsx)(F,{children:(0,l.jsx)("div",{className:"w-full shadow-header dark:shadow-none",children:w})})]})]})]}),(0,l.jsx)("div",{className:(0,m.cn)("h-full order-2",d?"pb-0":`pb-[${x}] md:pb-0`),children:y})]})}},25512:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});var l=r(85465);r(56493);var a=r(14659);let i={"en-CA":{siteTitle:"The Weather Network"},"fr-CA":{siteTitle:"M\xe9t\xe9oM\xe9dia"}},n=({size:e,locale:t})=>{let r="fr-CA"===t?a.Wh:a.TI;return(0,l.jsx)("div",{className:"[fill:var(--theme-prop-title-color-secondary)] [color:var(--theme-prop-title-color-secondary)]",children:(0,l.jsx)(r,{styling:"tailwind",titleId:"tw-site-logo-with-text",size:e,title:i[t].siteTitle})})}},41210:(e,t,r)=>{"use strict";r.d(t,{W:()=>l.W});var l=r(10100)},46478:(e,t,r)=>{"use strict";r.d(t,{Sm:()=>s,XC:()=>i,z2:()=>n});var l=r(37235),a=r(63600);let i=(0,a.AH)(["border-bottom:0.4rem solid ",";padding-bottom:5px;width:fit-content;@media ","{border-bottom:0.5rem solid ",";padding-bottom:unset;}"],l.AA.primaryYellow,l.jO[l.iL.LARGE],l.AA.primaryYellow),n=(e=l.AA.primaryYellow)=>(0,a.AH)(['position:relative;&:after{content:"";position:absolute;display:block;width:100%;height:0.25rem;background-color:',";}"],e),s=(0,a.AH)([""," &:after{height:",";margin-top:",";}"],({theme:e})=>n(e.newsSubcategoryColor),"0.375rem","0.8rem");(0,a.AH)([""," &:after{height:0.5rem;}"],({theme:e})=>n(e.newsSubcategoryColor))},72743:(e,t,r)=>{"use strict";r.d(t,{t:()=>c});var l=r(85465),a=r(41997),i=r(14659),n=r(68799);r(56493);let s=({children:e})=>(0,l.jsx)("div",{className:"pt-4 pl-[1.15rem] font-semibold",children:e});var d=r(9440);let o={"en-CA":{title:"Search",heading:"Search for your weather"},"fr-CA":{title:"Rechercher",heading:"Rechercher votre pr\xe9vision m\xe9t\xe9o"}},c=({locale:e,searchBaseUrl:t,overrideTriggerElement:r,profileTypes:c,hideRecentLocations:h,overlayTitle:m})=>(0,l.jsxs)(i.gy,{locale:e,triggerElement:r??(0,l.jsx)(a.J,{"aria-label":o[e].title,"data-testid":"search-overlay-default-trigger-element",children:(0,l.jsx)(n.WI,{size:20})}),children:[(0,l.jsx)(s,{children:m??o[e].heading}),(0,l.jsx)(d.uZ,{locale:e,searchBaseUrl:t,profileTypes:c,hideRecentLocations:h})]})},83101:(e,t,r)=>{"use strict";r(85465),r(523),r(19553),r(29002),r(90426),r(86846)},86846:(e,t,r)=>{"use strict";var l=r(54320),a=r(63600);a.Ay.div.withConfig({componentId:"sc-1ccd643c-0"})(["display:flex;width:fit-content;flex-direction:column;gap:",";width:100%;height:100%;"],l.B.moduleHeaderBodyGap),a.Ay.div.withConfig({componentId:"sc-1ccd643c-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;min-height:",";"],l.B.moduleHeaderHeight)}}]);
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.