(window.webpackJsonp=window.webpackJsonp||[]).push([[346,154],{1613:function(e,t,o){var content=o(2279);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(217).default)("260c4e50",content,!0,{sourceMap:!1})},2278:function(e,t,o){"use strict";o(1613)},2279:function(e,t,o){var r=o(216)((function(i){return i[1]}));r.push([e.i,".c-shortcodeVideo_wrap{height:0;padding-bottom:56.25%}@media print{.c-shortcodeVideo{page-break-inside:avoid}}.c-shortcodeVideo .c-avPluginsTitlePanel_title{margin-bottom:.5rem}@media(max-width: 767px){.c-shortcodeVideo .c-avPluginsTitlePanel_title span{font-size:1.25rem;line-height:1.2}}.c-shortcodeVideoInline{display:grid;grid-template-columns:150px 1fr 90px;border:.125rem dotted #ddddde;align-items:center;cursor:pointer;border-radius:.25rem}@media(max-width: 1023px){.c-shortcodeVideoInline{display:none}}.c-shortcodeVideoInline_txt{margin:0 20px}.c-shortcodeVideoInline_container{height:0;overflow:hidden}.c-shortcodeVideoInline_player{display:none}@media(max-width: 1023px){.c-shortcodeVideoInline_player{display:block}}.c-shortcodeVideoInline_img{position:relative}.c-shortcodeVideoInline_img svg{z-index:2;position:absolute;fill:#fff;width:150px;height:49px;top:50%;transform:translateY(-50%)}.c-shortcodeVideoInline_icon-pause{display:none}.c-shortcodeVideoInline_time{letter-spacing:2px;display:inline-flex;align-items:center;white-space:nowrap;justify-content:flex-end;margin-right:20px}.c-shortcodeVideoInline_time svg{flex:0 0 9px;height:9px;margin:0 8px 0 0}",""]),r.locals={},e.exports=r},2988:function(e,t,o){"use strict";o.r(t);var r=o(6),n=(o(4),o(190),o(19),o(5),o(12)),l=o(192),d=o(360),c=o(10),h=o(23),m=o(78),v=o(994),y=o(8),f=o(58);function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function j(e){for(var t=1;tPromise.all([o.e(24),o.e(23),o.e(105)]).then(o.bind(null,2865)).then((e=>e.default)),x=()=>o.e(375).then(o.bind(null,1893)).then((e=>e.default));var _=Object(n.defineComponent)({name:"ShortcodeVideo",components:{CnetAvLazyStickyVideo:I,VideoWNRManager:x,GlobalImage:v.default},inheritAttrs:!1,props:{api:{default:"",type:String},float:{default:"",type:String},showHeroVideo:{default:!1,type:Boolean},isLeftRailTemplateReview:{default:!1,type:Boolean},isEditorsChoice:{default:!1,type:Boolean},index:{default:null,type:String},size:{default:"",type:String},suppressAutoplay:{default:!1,type:Boolean},uuid:{default:"",type:String}},data:()=>({getPlaying:!1,playerComponent:null,playerId:null}),computed:j(j({},Object(l.c)(["isDesktop"])),{},{autoplayWNR(){var e=this.$di.getInstance(d.a);return y.a.forEach((t=>{e.addCriteria(t)})),e.meets()&&!this.suppressAutoplay&&!this.showHeroVideo},displayDuration(){var e=this.getVideo.duration,t=e=>"0".concat(Math.floor(e)).slice(-2),o=e/3600,r=e%3600/60;return o>1?[o,r,e%60].map(t).join(":"):[r,e%60].map(t).join(":")},getPlayer(){var e=this.$store.getters["video/playerState"].player;return this.$video.getPlayer(e)},getTheme(){var e="";return this.isLeftRailTemplateReview?e="alignLeftCol":this.isCenterJustified?e="centeredArticle":this.isEditorsChoice&&(e="editorsChoice"),e},getVideo(){var video=null;try{video=h.a.deserializeObject(JSON.parse(this.api),f.a)}catch(e){w.log("Failed to parse video.",e)}return video},isCenterJustified(){return this.$store.getters.isCenterJustified},isFirstOnPage(){return 1===parseInt(this.index)&&!this.showHeroVideo},disableAutoplay(){return this.$services.isFeatureEnabled("isSolar")||this.$services.isFeatureEnabled("isBroadbandHomeInternetDemand")},showInline(){var e=this.$di.getInstance(d.a);return y.u.forEach((t=>{e.addCriteria(t)})),e.meets()&&!this.isCenterJustified&&!this.isEditorsChoice&&!this.suppressAutoplay},videoJson(){try{return JSON.parse(this.api)}catch(e){return{}}},videoState(){return this.$store.getters["video/playerState"].videoState},videoTitle(){var e;return null===(e=this.getVideo)||void 0===e?void 0:e.headline}}),watch:{videoState(){var e,t,o=(null===(e=this.getVideo)||void 0===e?void 0:e.id)===(null===(t=this.$store.getters["video/data"])||void 0===t?void 0:t.id),r=this.videoState===m.d.PLAYING;this.getPlaying=o&&r}},created(){this.getVideo&&(this.$store.dispatch("video/addVideoToPlaylist",this.getVideo),this.$store.dispatch("tracking/setPageComponents",{vo01:!0}))},updated(){this.$nextTick((()=>{var e;this.$refs.ctpPlayer&&!this.playerComponent&&(this.playerComponent=this.$refs.ctpPlayer,this.playerId=null===(e=this.playerComponent.$children[0])||void 0===e?void 0:e.containerId,this.playerComponent.disabled=!0)}))},methods:{playVideo(e){if(this.autoplayWNR||this.showHeroVideo){var t;this.$store.dispatch("video/toggleInlineClick",null===(t=this.getVideo)||void 0===t?void 0:t.id)}else{var o=this.playerComponent,r=this.getPlayer(),n=null==r?void 0:r.paused();o&&(o.shouldAutoPlay=!0,o.sticky=!0,o.active=!0,o.closePlayers(),e&&!n&&o.$refs.avVideo.pauseVideo(),e||n||o.$refs.avVideo.playVideo())}}}}),P=(o(2278),o(127)),component=Object(P.a)(_,(function(){var e,t,o=this,r=o._self._c;o._self._setupProxy;return o.showHeroVideo?r("client-only",[r("VideoWNRManager",{key:null===(e=o.getVideo)||void 0===e?void 0:e.id,attrs:{"is-hero":!0,"hero-video":o.getVideo,"autoplay-hero":!0}})],1):r("div",[r("div",[o.showInline&&o.getVideo?r("div",{staticClass:"c-shortcodeVideoInline g-outer-spacing-bottom-large g-text-xxsmall",class:[{"c-shortcodeVideoInline_play":!o.getPlaying,"c-shortcodeVideoInline_pause":o.getPlaying}],on:{click:function(e){return o.playVideo(o.getPlaying)}}},[r("div",{staticClass:"c-shortcodeVideoInline_img"},[r("svg",{staticClass:"c-shortcodeVideoInline_icon-play"},[o.getPlaying?r("use",{attrs:{"xlink:href":"#pause"}}):r("use",{attrs:{"xlink:href":"#play"}})]),o._v(" "),r("GlobalImage",{attrs:{image:o.getVideo.image,"aspect-ratio":"9/16","lazy-load":!0,size:"sc_medium"}})],1),o._v(" "),r("div",{staticClass:"c-shortcodeVideoInline_txt g-text-xxsmall"},[o.getPlaying?r("strong",[o._v("Now Playing:")]):r("strong",[o._v("Watch this:")]),o._v(" "+o._s(o.getVideo.headline)+"\n ")]),o._v(" "),r("time",{staticClass:"c-shortcodeVideoInline_time"},[r("svg",{staticClass:"c-shortcodeVideoInline_icon-play"},[r("use",{attrs:{"xlink:href":"#play"}})]),o._v(" "),r("span",{staticClass:"g-text-xxxsmall"},[o._v(o._s(o.displayDuration))])])]):o._e(),o._v(" "),!o.autoplayWNR&&o.showInline?r("div",{staticClass:"c-shortcodeVideoInline_container"},[r("client-only",[o.$services.isFeatureEnabled("video")?r("CnetAvLazyStickyVideo",{ref:"ctpPlayer",staticClass:"g-outer-spacing-bottom-xlarge g-outer-spacing-top-xlarge",attrs:{video:o.getVideo,"allowed-devices":["desktop"],"is-contextual":!0,theme:"alignCol8"}}):o._e()],1)],1):o._e()]),o._v(" "),r("client-only",[!o.$services.isFeatureEnabled("video")||!o.getVideo||o.isDesktop&&o.showInline?o._e():r("div",{staticClass:"c-shortcodeVideo_wrap g-outer-spacing-top-xlarge g-outer-spacing-bottom-xlarge",attrs:{"data-video-location":"CONTENTBLOCK","data-video-article-placement":"RV Embed"}},[r("CnetAvLazyStickyVideo",{key:null===(t=o.getVideo)||void 0===t?void 0:t.id,staticClass:"c-shortcodeVideo",class:{"c-shortcodeVideoInline_player":o.showInline},attrs:{autoplay:o.isFirstOnPage&&o.autoplayWNR&&!o.disableAutoplay,"allowed-devices":["desktop","tablet","mobile"],"is-contextual":!0,size:o.size,"sticky-on-page-load":o.isFirstOnPage&&o.autoplayWNR&&!o.disableAutoplay,theme:o.getTheme,uuid:o.uuid,video:o.getVideo}})],1)])],1)}),[],!1,null,null,null);t.default=component.exports},832:function(e,t,o){"use strict";var r=o(6),n=(o(21),o(4),o(533),o(128),o(26),o(24),o(74),o(5),o(0)),l=o(829),d=o(837),c=class extends l.Vue{get imageHtml(){return'').concat(this.alt,'')}};Object(n.a)([Object(l.Prop)({default:"",type:String}),Object(n.b)("design:type",String)],c.prototype,"src",void 0),Object(n.a)([Object(l.Prop)({default:"",type:String}),Object(n.b)("design:type",String)],c.prototype,"alt",void 0),Object(n.a)([Object(l.Prop)({default:null,type:[Number,String]}),Object(n.b)("design:type",Object)],c.prototype,"height",void 0),Object(n.a)([Object(l.Prop)({default:null,type:[Number,String]}),Object(n.b)("design:type",Object)],c.prototype,"width",void 0);var h=c=Object(n.a)([Object(l.Component)({})],c),m=o(127),v=Object(m.a)(h,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("noscript",{domProps:{innerHTML:e._s(e.imageHtml)}})}),[],!1,null,null,null).exports,y=o(218);function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function O(e){for(var t=1;t{var image="small"===t&&this.hasMobileImage?this.mobileImage:this.image;this.validImage(image)&&e.push({maxwidth:"".concat(this.$device.breakpointForSize(t).max,"w"),mediaquery:"(max-width: ".concat(this.$device.breakpointForSize(t).max,"px)"),url:this.imageUrl(image,this.sizes[t])})})),e}get baseImageUrl(){var e=this.imageSize;return this.image?this.imageUrl(this.image,e):null}get gifvPosterUrl(){return this.$image(O(O({},this.image),{},{size:this.imageSize}),{frame:"1"})}get imageHeight(){var e,t,o;return this.imageConfigHeight>0?this.imageConfigHeight:this.imageConfigWidth&&null!==(e=this.image)&&void 0!==e&&e.height&&null!==(t=this.image)&&void 0!==t&&t.width?this.imageConfigWidth*(this.image.height/this.image.width):(null===(o=this.image)||void 0===o?void 0:o.height)||306}get imageRadius(){return this.hasBorderRadius?"c-cmsImage_hasBorderRadius":null}get imageWidth(){var e;return this.imageConfigWidth?this.imageConfigWidth:(null===(e=this.image)||void 0===e?void 0:e.width)||456}get isGifv(){var e;return this.$services.isFeatureEnabled("gifv")&&this.validImage(this.image)&&(null===(e=this.baseImageUrl)||void 0===e?void 0:e.includes(".gif"))}get imageConfig(){return y.a.sizes[this.imageSize]}get imageConfigHeight(){var e,t;return(null===(e=this.imageConfig)||void 0===e?void 0:e.height)||(null===(t=this.imageConfig)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.height)}get imageConfigWidth(){var e,t;return(null===(e=this.imageConfig)||void 0===e?void 0:e.width)||(null===(t=this.imageConfig)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.width)}get imageSize(){return this.size||(this.sizes?this.sizes.large||this.sizes.medium||this.sizes.small:void 0)}onImgLoad(){this.isLoaded=!0}loadDefaultImage(e){e.target.src=this.defaultImageUrl}created(){this.lazyEnabled=this.lazyLoad}imageUrl(image,e){return this.$image(O(O({},image),{size:e}))}validImage(image){return this.$isValidImage(image)}};Object(n.a)([Object(l.Prop)({default:"",type:String}),Object(n.b)("design:type",String)],j.prototype,"altText",void 0),Object(n.a)([Object(l.Prop)({default:null,type:Object}),Object(n.b)("design:type",Object)],j.prototype,"image",void 0),Object(n.a)([Object(l.Prop)({default:!1,type:Boolean}),Object(n.b)("design:type",Boolean)],j.prototype,"lazyLoad",void 0),Object(n.a)([Object(l.Prop)({default:null,type:Object}),Object(n.b)("design:type",Object)],j.prototype,"mobileImage",void 0),Object(n.a)([Object(l.Prop)({default:!1,type:[Boolean,String]}),Object(n.b)("design:type",Object)],j.prototype,"preload",void 0),Object(n.a)([Object(l.Prop)({default:"",type:String}),Object(n.b)("design:type",String)],j.prototype,"size",void 0),Object(n.a)([Object(l.Prop)({default:null,type:Object}),Object(n.b)("design:type",Object)],j.prototype,"sizes",void 0),Object(n.a)([Object(l.Prop)({default:null,type:Boolean}),Object(n.b)("design:type",Boolean)],j.prototype,"hasBorderRadius",void 0);var I=j=Object(n.a)([Object(l.Component)({components:{NoscriptImage:v}})],j),x=(o(838),Object(m.a)(I,(function(){var e,t=this,o=t._self._c;t._self._setupProxy;return o("div",{staticClass:"c-cmsImage"},[t.validImage(t.image)&&t.isGifv?o("div",{staticClass:"c-cmsImage_video"},[o("video",{attrs:{src:t.shouldLoad?t.baseImageUrl:"",poster:t.gifvPosterUrl,width:t.imageWidth,height:t.imageHeight,autoplay:"",loop:"",muted:"",playsinline:"",disableRemotePlayback:""},domProps:{muted:!0}})]):t.validImage(t.image)?[o("picture",{staticClass:"c-cmsImage_image",class:{"c-cmsImage-loaded":t.isLoaded||!t.lazyLoad}},[t._l(t.imageSources,(function(source,e){var r;return o("source",{key:source.url+"_"+e,attrs:{media:source.mediaquery,srcset:source.url,alt:null!==(r=t.altText)&&void 0!==r?r:t.image.alt}})})),t._v(" "),o("img",{class:t.imageRadius,attrs:{src:t.shouldLoad?t.baseImageUrl:"",alt:null!==(e=t.altText)&&void 0!==e?e:t.image.alt,height:t.imageHeight,width:t.imageWidth,loading:t.lazyLoad?"lazy":void 0},on:{load:t.onImgLoad,error:t.loadDefaultImage}})],2)]:t._e()],2)}),[],!1,null,null,null));t.a=x.exports},833:function(e,t,o){var content=o(839);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(217).default)("c5c3e0b2",content,!0,{sourceMap:!1})},835:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o(35);var r=new(o(10).a)("observer");class n{constructor(e,t){if(!window.IntersectionObserver)return r.warn("This browser does not support IntersectionObserver"),this;e.rootMargin=e.rootMargin||"0px",e.singleIntersection=!!e.singleIntersection&&e.singleIntersection,e.triggerOn=e.triggerOn?e.triggerOn:"top";try{return this.create(e,t)}catch(t){return r.error("Failed to construct IntersectionObserver: ".concat(t.toString()),e),this}}create(e,t){if(r.log("create options",e),this.el=e.el,t)return Array.isArray(this.el)&&(this.lastTriggerPosition=[]),this.observer=new IntersectionObserver(((o,n)=>{o.forEach((o=>{var n=!0,data=(null==e?void 0:e.data)||{};if(Array.isArray(this.el)){var l,d,c=this.el.findIndex((e=>e===(null==o?void 0:o.target))),h=null===(l=this.lastTriggerPosition)||void 0===l?void 0:l[c];n=void 0===h||h>o.boundingClientRect.y,this.lastTriggerPosition[c]=o.boundingClientRect.y,data=(null==e||null===(d=e.data)||void 0===d?void 0:d[c])||{}}else n=void 0===this.lastTriggerPosition||this.lastTriggerPosition>o.boundingClientRect.y,this.lastTriggerPosition=o.boundingClientRect.y;var m=n?"down":"up",v=!1;if(r.log(m,o),e.singleIntersection?"top"===e.triggerOn?"down"===m&&o.isIntersecting?v=!0:"up"!==m||o.isIntersecting||(v=!0):"bottom"===e.triggerOn&&("down"!==m||o.isIntersecting?"up"===m&&o.isIntersecting&&(v=!0):v=!0):o.isIntersecting&&(v=!0),v){var y={direction:m,data:data,observer:this,entry:o};r.log(m,o,this),t(y)}}))}),e),this.enable(),this;r.warn("No handler specified on Intersection Observer")}enable(){this.observer&&this.el&&(Array.isArray(this.el)?this.el.forEach((e=>{this.observer.observe(e)})):this.observer.observe(this.el))}disable(){this.observer&&this.el&&(Array.isArray(this.el)?this.el.forEach((e=>{this.observer.unobserve(e)})):this.observer.unobserve(this.el))}destroy(){this.observer&&this.el&&(this.disable(),this.observer.disconnect(),this.observer=null,this.el=null)}refresh(){this.observer&&this.el&&(this.disable(),this.enable())}}},837:function(e,t,o){"use strict";var r=o(7),n=(o(4),o(5),o(0)),l=o(829),d=o(10),c=o(835),h=new d.a("lazyLoad"),m=class extends l.Vue{constructor(){super(...arguments),this.lazyEnabled=!0,this.lazyLoaded=!1,this.rootMargin="50% 0px"}mounted(){var e=this;return Object(r.a)((function*(){yield l.Vue.nextTick(),"undefined"!=typeof window&&e.lazyEnabled&&(e.lazyObserver=new c.a({rootMargin:e.rootMargin,el:e.$el,threshold:0},(data=>{h.log(e.$el,data),data.direction&&(e.lazyLoaded=!0,e.lazyObserver.destroy())})))}))()}beforeDestroy(){this.lazyObserver&&this.lazyObserver.destroy()}};m=Object(n.a)([l.Component],m),t.a=m},838:function(e,t,o){"use strict";o(833)},839:function(e,t,o){var r=o(216)((function(i){return i[1]}));r.push([e.i,".c-cmsImage,.c-cmsImage img{display:block;width:100%;height:auto;max-width:100%}.c-cmsImage_image{opacity:0}.c-cmsImage_video video{width:100%;height:100%}.c-cmsImage-loaded{opacity:1}.c-cmsImage_hasBorderRadius{border-radius:.25rem}",""]),r.locals={},e.exports=r},917:function(e,t,o){var content=o(976);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(217).default)("68585460",content,!0,{sourceMap:!1})},975:function(e,t,o){"use strict";o(917)},976:function(e,t,o){var r=o(216)((function(i){return i[1]}));r.push([e.i,".c-globalImage{margin:unset}.c-globalImage_cmsImage{height:1px;overflow:hidden;position:relative;background:var(--global-image-background, #f9f9fa);background-size:cover;background-position:50%;background-repeat:no-repeat;display:block;padding-bottom:56.25%;contain:content}.c-globalImage_cmsImage picture{height:100%;width:100%;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto 0}.c-globalImage_cmsImage picture img{object-fit:cover;width:100%;height:100%}",""]),r.locals={},e.exports=r},994:function(e,t,o){"use strict";o.r(t);var r=o(0),n=o(829),l=o(832),d=class extends n.Vue{get styleAspectRatio(){return"padding-bottom: calc("+this.aspectRatio+"* 100%)"}};Object(r.a)([Object(n.Prop)({default:""}),Object(r.b)("design:type",String)],d.prototype,"theme",void 0),Object(r.a)([Object(n.Prop)({default:null}),Object(r.b)("design:type",Object)],d.prototype,"image",void 0),Object(r.a)([Object(n.Prop)({default:null}),Object(r.b)("design:type",String)],d.prototype,"size",void 0),Object(r.a)([Object(n.Prop)({default:null,type:Object}),Object(r.b)("design:type",Object)],d.prototype,"sizes",void 0),Object(r.a)([Object(n.Prop)({default:"9/16"}),Object(r.b)("design:type",String)],d.prototype,"aspectRatio",void 0),Object(r.a)([Object(n.Prop)({default:!1,type:Boolean}),Object(r.b)("design:type",Boolean)],d.prototype,"preload",void 0),Object(r.a)([Object(n.Prop)({default:!1,type:Boolean}),Object(r.b)("design:type",Boolean)],d.prototype,"lazyLoad",void 0),Object(r.a)([Object(n.Prop)({default:!1}),Object(r.b)("design:type",Boolean)],d.prototype,"showCredits",void 0);var c=d=Object(r.a)([Object(n.Component)({components:{CmsImage:l.a}})],d),h=(o(975),o(127)),component=Object(h.a)(c,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("figure",{staticClass:"c-globalImage",class:"".concat(e.theme)},[e.image?t("CmsImage",{staticClass:"c-globalImage_cmsImage",style:e.styleAspectRatio,attrs:{image:e.image,size:e.size,sizes:e.sizes,preload:e.preload,"lazy-load":!e.preload&&e.lazyLoad}}):e._e(),e._v(" "),e.showCredits&&e.image.credits?t("figcaption",{staticClass:"u-text-right"},[t("span",{staticClass:"g-outer-spacing-top-xsmall g-color-text-meta g-text-xxxsmall",domProps:{innerHTML:e._s(e.image.credits)}})]):e.showCredits&&!e.image.credits&&e.image.caption?t("figcaption",{staticClass:"u-text-right"},[t("span",{staticClass:"g-outer-spacing-top-xsmall g-color-text-meta g-text-xxxsmall"},[e._v(e._s(e.image.caption))])]):e._e()],1)}),[],!1,null,null,null);t.default=component.exports}}]);