(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b1d8c46"],{"13b3":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("details",[t._t("default",(function(){return[a("summary")]}))],2)},r=[],i=(a("0643"),a("fffc"),a("fd1f")),n={name:"WetDetails",mounted(){window.wb.isReady&&!1===window.Modernizr.details?setTimeout(()=>{const t=window.jQuery(this.$el);t.find("summary").trigger("wb-init.wb-details"),t.on("toggle",t=>{this.$emit("toggle",t)})},i["w"]):this.$el.addEventListener("toggle",t=>{this.$emit("toggle",t)})}},o=n,l=a("2877"),c=Object(l["a"])(o,s,r,!1,null,null,null);e["a"]=c.exports},"584c":function(t,e,a){t.exports=a.p+"img/metnotes.png"},a844:function(t,e,a){"use strict";a("fdfa")},b92e:function(t,e,a){var s=a("24fb");e=s(!1),e.push([t.i,".blackfont{color:#333!important}",""]),t.exports=e},bbb9:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return!t.locationData.default||t.ready?a("section",[a("h1",{attrs:{id:"wb-cont",property:"name"}},[a("translate",[t._v("Hourly Forecast")]),t._v(" - "+t._s(t.title)+" ")],1),a("alert-banner",{key:t.latLonKey+"-location-hourlyforecast-top",attrs:{alerts:t.locationData.alerts,"meso-zone-codes":t.mesoZoneCodes,name:t.latLonKey+"-location-hourlyforecast-top","banner-view":""}}),a("hour-forecast",{attrs:{hourly:t.locationData.hourly,timezone:t.locationData.timezone,metnotes:t.locationData.metNotes}})],1):t._e()},r=[],i=a("0a13"),n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"table-responsive"},[s("table",{staticClass:"table table-striped table-hover table-condensed wxo-media"},[s("colgroup",t._l(t.tableColNum,(function(t,e){return s("col",{key:e})})),0),s("thead",[s("tr",[s("th",{staticClass:"wxo-tb-head",attrs:{id:"header1",scope:"col"}},[s("translate",[t._v("Date/Time")]),t.timezoneAlias?[s("br"),t._v(" ("),s("abbr",{attrs:{title:t.TIMEZONE_ABBR_TO_NAME[t.timezoneAlias]}},[t._v(t._s(t.timezoneAlias))]),t._v(") ")]:t._e()],2),s("th",{staticClass:"wxo-tb-head",attrs:{id:"header2",scope:"col"}},[s("abbr",{attrs:{title:t._f("translate")("Temperature")}},[s("translate",[t._v("Temp.")])],1),s("br"),t._v(" ("),s("abbr",{attrs:{title:t._f("translate")("degrees Celsius")}},[t._v("°C")]),t._v(") ")]),s("th",{staticClass:"wxo-tb-head",attrs:{id:"header3",scope:"col"}},[s("translate",[t._v("Weather Conditions")])],1),s("th",{staticClass:"wxo-tb-head",attrs:{id:"header4",scope:"col"}},[s("abbr",{staticClass:"pre-wrap",attrs:{title:t._f("translate")("Likelihood of precipitation")}},[t._v(t._s(t.precipHead))]),t._v(" ("),s("abbr",{attrs:{title:t._f("translate")("percent")}},[t._v("%")]),t._v(") ")]),t.hasUV?s("th",{staticClass:"wxo-tb-head",attrs:{id:"header5",scope:"col"}},[s("abbr",{attrs:{title:t._f("translate")("Ultraviolet")}},[s("translate",[t._v("UV index")])],1)]):t._e(),s("th",{staticClass:"wxo-tb-head",attrs:{id:"header6",scope:"col"}},[s("translate",[t._v("Wind")]),s("br"),t._v(" ("),s("abbr",{attrs:{title:t._f("translate")("kilometres per hour")}},[t._v("km/h")]),t._v(") ")],1),t.hasHumidex?s("th",{staticClass:"wxo-tb-head",attrs:{id:"header7",scope:"col"}},[s("a",{attrs:{href:t.links["canada.ca"].humidex,hreflang:t.$language.current,rel:"external"}},[s("translate",[t._v("Humidex")])],1)]):t._e(),t.hasWindChill?s("th",{staticClass:"wxo-tb-head",attrs:{id:"header8",scope:"col"}},[s("a",{attrs:{href:t.links["canada.ca"].wind_chill,hreflang:t.$language.current,rel:"external",title:t.getWindchillLinkTitle()}},[s("translate",{attrs:{"translate-context":"wind-chill-abbr"}},[t._v("Wind Chill")])],1)]):t._e()])]),s("tbody",[t._l(t.hourly,(function(e,r){return[t.computedFcsts[r].dateline?s("tr",{key:t.computedFcsts[r].key+"-dateline"},[s("th",{staticClass:"wxo-th-bkg",attrs:{colspan:t.tableColNum}},[t._v(t._s(e.date))])]):t._e(),0===r&&0!==t.filteredMet.length?s("tr",{key:"metnote-"+r},[s("td",{staticStyle:{padding:"0"},attrs:{colspan:t.tableColNum}},[s("wet-details",{staticClass:"met-hover mrgn-bttm-0",staticStyle:{padding:"0"},on:{toggle:t.isMetnoteOpen}},[s("summary",{staticClass:"blackfont met-focus",class:t.googleAnalyticsCss,staticStyle:{"border-bottom":"0"}},[s("img",{staticClass:"mrgn-rght-sm met-note-icon",class:t.googleAnalyticsCss,attrs:{alt:t.$gettext("MetNotes Icon"),src:a("584c"),height:"25",width:"25"}}),s("strong",{class:t.googleAnalyticsCss},[t._v(t._s(t.metNoteText))])]),t._l(t.filteredMet,(function(e,a){return s("p",{key:"metnote-hourly-"+a,staticClass:"mrgn-bttm-lg mrgn-tp-md"},[s("strong",[s("translate",[t._v("Valid:")]),t._v(" "+t._s(t.getMetnoteDate(e.start,e.end,t.computedFcsts[0].luxonDate,t.$language.current))+" ")],1),s("span",{staticClass:"mrgn-lft-lg",staticStyle:{display:"block"}},[t._v(t._s(e.message))])])}))],2)],1)]):t._e(),s("tr",{key:t.computedFcsts[r].key},[s("td",{staticClass:"text-center",attrs:{headers:"header1"}},[t._v(" "+t._s(t.computedFcsts[r].date)+" ")]),s("td",{staticClass:"text-center",attrs:{headers:"header2"}},[t._v(" "+t._s(e.temperature.metric)+" ")]),s("td",{staticClass:"media",attrs:{headers:"header3"}},[s("span",{staticClass:"pull-left"},[s("img",{staticClass:"media-object",attrs:{height:"35",width:"35",src:t.links.baseUrl+"weathericons/small/"+e.iconCode+".png",alt:e.condition}})]),s("div",{staticClass:"media-body"},[s("p",[t._v(t._s(e.condition))])])]),s("td",{staticClass:"text-center",attrs:{headers:"header4"}},[e.precip?[t._v(t._s(e.precip))]:s("translate",[t._v("n/a")])],2),t.hasUV?s("td",{staticClass:"text-center",attrs:{headers:"header5"}},[e.uv&&e.uv.index?[t._v(t._s(e.uv.index))]:s("abbr",{attrs:{title:t._f("translate")("Value not significant")}},[t._v("*")])],2):t._e(),s("td",{staticClass:"text-center",attrs:{headers:"header6"}},[t.showWindDirection(e.windDir,e.windSpeed)&&t.windDirText[e.windDir]?s("abbr",{attrs:{title:t.windDirText[e.windDir]}},[t._v(t._s(e.windDir))]):t._e(),t._v(" "+t._s(e.windSpeed.metric)+" "),s("br"),e.windGust.metric?[s("translate",[t._v("gusts")]),t._v(" "+t._s(e.windGust.metric)+" ")]:t._e()],2),t.hasHumidex?s("td",{staticClass:"text-center",attrs:{headers:"header7"}},[e.humidex.metric?s("span",[t._v(t._s(e.humidex.metric))]):s("abbr",{attrs:{title:t._f("translate")("Value not significant")}},[t._v("*")])]):t._e(),t.hasWindChill?s("td",{staticClass:"text-center",attrs:{headers:"header8"}},[e.windChill.metric?s("span",[t._v(t._s(e.windChill.metric))]):s("abbr",{attrs:{title:t._f("translate")("Value not significant")}},[t._v("*")])]):t._e()])]}))],2)])]),s("p",{staticClass:"mrgn-lft-sm mrgn-tp-md"},[t._v(" * "),s("translate",[t._v("Value not significant")])],1),s("ul",{staticClass:"list-inline mrgn-lft-sm"},[s("li",[s("a",{attrs:{rel:"external",href:t.links["canada.ca"].bulletins+"#c8",hreflang:t.$language.current}},[s("translate",[t._v("How to Use")])],1)])])])},o=[],l=(a("0643"),a("2382"),a("a573"),a("9a9a"),a("4df1")),c=a("13b3"),d=a("1315"),h=a("fd1f"),u=a("d8ef"),m={name:"HourForecast",components:{WetDetails:c["a"]},props:{hourly:{type:Array,required:!0},timezone:{type:String,default:""},metnotes:{type:Array,required:!0}},data(){return{precipHead:this.$pgettext("hourlyforecast","Likelihood of\nprecip"),windDirText:Object(u["F"])(),links:l[this.$language.current],TIMEZONE_ABBR_TO_NAME:h["x"],metnoteOpen:!1}},computed:{googleAnalyticsCss(){return this.metnoteOpen?"ga-hourly-metnote-closed":"ga-hourly-metnote-open"},metNoteText(){const t=this.$gettext("MetNotes (${total}): A message from your forecaster"),e=this.filteredMet.length;return t.replace("${total}",e)},filteredMet(){const t=this.computedFcsts[0].luxonDate,e=this.computedFcsts[this.computedFcsts.length-1].luxonDate;return this.metnotes.filter(a=>Object(u["q"])(a.start,a.end,t,e))},computedFcsts(){return this.hourly.map((t,e)=>{let a,s,r=0===e;try{a=d["DateTime"].fromSeconds(t.epochTime,{zone:this.timezone}),s=a.toFormat("HH:mm"),r=r||0===a.hour}catch(i){0}return{luxonDate:a,key:`${t.epochTime}-${t.periodID}`,dateline:r,date:s||""}})},timezoneAlias(){const t=this.$language.current;if(this.computedFcsts.length){const e=this.computedFcsts[0].luxonDate;if(e)return Object(u["n"])(e.zoneName,e.offset,t)}return""},hasUV(){return this.hourly.some(t=>{var e;return null===t||void 0===t||null===(e=t.uv)||void 0===e?void 0:e.index})},hasHumidex(){return this.hourly.some(({humidex:t})=>t.metric)},hasWindChill(){return this.hourly.some(({windChill:t})=>t.metric)},tableColNum(){return 5+this.hasHumidex+this.hasWindChill+this.hasUV}},methods:{getWindchillLinkTitle(){return"fr"==this.$language.current?this.$gettext("Wind Chill"):""},showWindDirection:u["z"],getMetnoteDate:u["k"],isMetnoteOpen(t){this.metnoteOpen=t.target.hasAttribute("open")}}},p=m,_=(a("a844"),a("2877")),f=Object(_["a"])(p,n,o,!1,null,null,null),g=f.exports,b=a("f123"),v={name:"HourlyForecastView",components:{AlertBanner:i["a"],HourForecast:g},props:{lat:{type:Number,required:!0},lon:{type:Number,required:!0},refreshId:{type:Number,default:0}},data(){return{ready:!1}},computed:{locationData(){return this.$store.getters["location/getLocation"](this.lat,this.lon)},latLonKey(){return Object(b["generateCoordinateKey"])(this.lat,this.lon)},mesoZoneCodes(){const t=this.locationData;return{public:t.wxoPubZoneCode,air_quality:t.wxoAqZoneCode,coastal_flooding:t.wxoCfZoneCode,tsunami:t.wxoTsunamiZoneCode}},title(){const{displayName:t}=this.locationData;return t}},watch:{refreshId(){this.refresh()}},created(){this.refresh()},methods:{refresh(){this.$store.commit("setUpdateTime"),this.ready=!0}},metaInfo(){const t=this.title+" - "+this.$gettext("Hourly Forecast");return{title:t,meta:[{name:"description",vmid:"description",content:this.$gettext("Detailed forecast for the next 24 hours – temperature, weather conditions, likelihood of precipitation and winds")},{name:"dcterms.title",vmid:"dcterms.title",content:t}]}}},y=v,x=Object(_["a"])(y,s,r,!1,null,null,null);e["default"]=x.exports},fdfa:function(t,e,a){var s=a("b92e");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var r=a("499e").default;r("0b4e5e27",s,!0,{sourceMap:!1,shadowMode:!1})}}]);

AltStyle によって変換されたページ (->オリジナル) /