(window.webpackJsonp=window.webpackJsonp||[]).push([[213,101,108],{1348:function(e,t,o){var content=o(1784);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(243).default)("4cd70e3e",content,!0,{sourceMap:!1})},1783:function(e,t,o){"use strict";o(1348)},1784:function(e,t,o){var r=o(242)((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:1px solid #dadada;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},2389:function(e,t,o){"use strict";o.r(t);var r=o(6),n=(o(3),o(17),o(5),o(133),o(10)),l=o(177),d=o(338),c=o(8),h=o(21),m=o(72),v=o(835),y=o(18),f=o(51);function O(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function j(e){for(var i=1;iPromise.all([o.e(13),o.e(18),o.e(66)]).then(o.bind(null,2279)).then((e=>e.default)),x=()=>o.e(234).then(o.bind(null,2399)).then((e=>e.default));var w=Object(n.defineComponent)({name:"ShortcodeVideo",components:{CnetAvLazyStickyVideo:I,VideoWNRManager:x,GlobalImage:v.default},props:{api:{default:"",type:String},float:{default:"",type:String},showHeroVideo:{default:!1,type:Boolean},isLeftRailTemplateReview:{default:!1,type:Boolean},index:{default:null,type:String},size:{default:"",type:String},suppressAutoplay:{default:!1,type:Boolean},uuid:{default:"",type:String}},data:()=>({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(":")},getPlaying(){var e,t,o,r,n,l,d=this.playerComponent,c=this.$store.getters["video/playerState"].player,h=this.$video.getPlayer(c);return!(null===(t=null===(e=null==d?void 0:d.$children)||void 0===e?void 0:e[0])||void 0===t?void 0:t.isPaused)&&(null===(r=null===(o=null==d?void 0:d.$children)||void 0===o?void 0:o[0])||void 0===r?void 0:r.playbackStarted)||(null===(n=this.getVideo)||void 0===n?void 0:n.id)===(null===(l=this.$store.getters["video/data"])||void 0===l?void 0:l.id)&&(null==h?void 0:h.getCurrentPlaybackState().playbackState)===m.d.PLAYING},getTheme(){return this.isLeftRailTemplateReview?"alignLeftCol":""},getVideo(){var video=null;try{video=h.a.deserializeObject(JSON.parse(this.api),f.a)}catch(e){P.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.r.forEach((t=>{e.addCriteria(t)})),e.meets()&&!this.isCenterJustified&&!this.suppressAutoplay},videoJson(){return this.api?JSON.parse(this.api):{}},videoTitle(){var e;return null===(e=this.getVideo)||void 0===e?void 0:e.headline}}),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){var t;if(this.autoplayWNR||this.showHeroVideo)P.log("Inline video click: ",this.getVideo.id),this.$store.dispatch("video/toggleInlineClick",this.getVideo.id);else{var o=this.playerComponent,r=this.getPlayer(),n=(null===(t=null==r?void 0:r.getCurrentPlaybackState())||void 0===t?void 0:t.playbackState)===m.d.PAUSED;P.log("Inline video click: ",o,r,n),o&&(o.shouldAutoPlay=!0,o.sticky=!0,o.active=!0,o.closePlayers(),e&&!n&&o.$refs.avVideo.pauseVideo(),e||n||o.$refs.avVideo.playVideo(),(e&&n||!e&&n)&&window.uvpjs.getVideoManager().currActiveVCI.playVideo())}},getPlayer(){return this.$video.getPlayer(this.playerId)}}}),_=(o(1783),o(117)),component=Object(_.a)(w,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.showHeroVideo?t("div",[t("client-only",[t("VideoWNRManager",{key:e.getVideo.id,attrs:{"is-hero":!0,"hero-video":e.getVideo,"autoplay-hero":!0}})],1)],1):t("div",[t("div",[e.showInline&&e.getVideo?t("div",{staticClass:"c-shortcodeVideoInline g-outer-spacing-bottom-large g-text-xxsmall",class:[{"c-shortcodeVideoInline_play":!e.getPlaying,"c-shortcodeVideoInline_pause":e.getPlaying}],on:{click:function(t){return e.playVideo(e.getPlaying)}}},[t("div",{staticClass:"c-shortcodeVideoInline_img"},[t("svg",{staticClass:"c-shortcodeVideoInline_icon-play"},[e.getPlaying?t("use",{attrs:{"xlink:href":"#pause"}}):t("use",{attrs:{"xlink:href":"#play"}})]),e._v(" "),t("GlobalImage",{attrs:{image:e.getVideo.image,"aspect-ratio":"9/16","lazy-load":!0,size:"sc_medium"}})],1),e._v(" "),t("div",{staticClass:"c-shortcodeVideoInline_txt g-text-xxsmall"},[e.getPlaying?t("strong",[e._v("Now Playing:")]):t("strong",[e._v("Watch this:")]),e._v(" "+e._s(e.getVideo.headline)+"\n ")]),e._v(" "),t("time",{staticClass:"c-shortcodeVideoInline_time"},[t("svg",{staticClass:"c-shortcodeVideoInline_icon-play"},[t("use",{attrs:{"xlink:href":"#play"}})]),e._v(" "),t("span",{staticClass:"g-text-xxxsmall"},[e._v(e._s(e.displayDuration))])])]):e._e(),e._v(" "),!e.autoplayWNR&&e.showInline?t("div",{staticClass:"c-shortcodeVideoInline_container"},[t("client-only",[e.$services.isFeatureEnabled("video")?t("CnetAvLazyStickyVideo",{ref:"ctpPlayer",staticClass:"g-outer-spacing-bottom-xlarge g-outer-spacing-top-xlarge",attrs:{video:e.getVideo,"allowed-devices":["desktop"],"is-contextual":!0,theme:"alignCol8"}}):e._e()],1)],1):e._e()]),e._v(" "),t("client-only",[!e.$services.isFeatureEnabled("video")||!e.getVideo||e.isDesktop&&e.showInline?e._e():t("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"}},[t("CnetAvLazyStickyVideo",{key:e.getVideo.id,staticClass:"c-shortcodeVideo",class:{"c-shortcodeVideoInline_player":e.showInline},attrs:{autoplay:e.isFirstOnPage&&e.autoplayWNR&&!e.disableAutoplay,"allowed-devices":["desktop","tablet","mobile"],"is-contextual":!0,size:e.size,"sticky-on-page-load":e.isFirstOnPage&&e.autoplayWNR&&!e.disableAutoplay,theme:e.getTheme,uuid:e.uuid,video:e.getVideo}})],1)])],1)])}),[],!1,null,null,null);t.default=component.exports},773:function(e,t,o){"use strict";o.r(t);var r=o(6),n=(o(3),o(5),o(508),o(143),o(22),o(27),o(24),o(78),o(0)),l=o(769),d=o(777),c=class extends l.Vue{get imageHtml(){return'').concat(this.alt,'')}};Object(n.c)([Object(l.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],c.prototype,"src",void 0),Object(n.c)([Object(l.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],c.prototype,"alt",void 0),Object(n.c)([Object(l.Prop)({default:null,type:[Number,String]}),Object(n.f)("design:type",Object)],c.prototype,"height",void 0),Object(n.c)([Object(l.Prop)({default:null,type:[Number,String]}),Object(n.f)("design:type",Object)],c.prototype,"width",void 0);var h=c=Object(n.c)([Object(l.Component)({})],c),m=o(117),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(200);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function O(e){for(var i=1;i{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?void 0:e.height)&&(null===(t=this.image)||void 0===t?void 0: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 imageAltText(){return this.altText||this.image.alt}get imageConfig(){return y.a.sizes[this.imageSize]}get imageConfigHeight(){var e,t,o;return(null===(e=this.imageConfig)||void 0===e?void 0:e.height)||(null===(o=null===(t=this.imageConfig)||void 0===t?void 0:t.params)||void 0===o?void 0:o.height)}get imageConfigWidth(){var e,t,o;return(null===(e=this.imageConfig)||void 0===e?void 0:e.width)||(null===(o=null===(t=this.imageConfig)||void 0===t?void 0:t.params)||void 0===o?void 0:o.width)}get imageSize(){return this.size||(this.sizes?this.sizes.large||this.sizes.medium||this.sizes.small:void 0)}onImgLoad(){this.isLoaded=!0}created(){this.lazyEnabled=this.lazyLoad}imageUrl(image,e){return this.$image(O(O({},image),{size:e}))}validImage(image){return this.$isValidImage(image)}};Object(n.c)([Object(l.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],j.prototype,"altText",void 0),Object(n.c)([Object(l.Prop)({default:null,type:Object}),Object(n.f)("design:type",Object)],j.prototype,"image",void 0),Object(n.c)([Object(l.Prop)({default:!1,type:Boolean}),Object(n.f)("design:type",Boolean)],j.prototype,"lazyLoad",void 0),Object(n.c)([Object(l.Prop)({default:null,type:Object}),Object(n.f)("design:type",Object)],j.prototype,"mobileImage",void 0),Object(n.c)([Object(l.Prop)({default:!1,type:[Boolean,String]}),Object(n.f)("design:type",Object)],j.prototype,"preload",void 0),Object(n.c)([Object(l.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],j.prototype,"size",void 0),Object(n.c)([Object(l.Prop)({default:null,type:Object}),Object(n.f)("design:type",Object)],j.prototype,"sizes",void 0),Object(n.c)([Object(l.Prop)({default:null,type:Boolean}),Object(n.f)("design:type",Boolean)],j.prototype,"hasBorderRadius",void 0);var I=j=Object(n.c)([Object(l.Component)({components:{NoscriptImage:v}})],j),x=(o(779),Object(m.a)(I,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"c-cmsImage"},[e.validImage(e.image)&&e.isGifv?t("div",{staticClass:"c-cmsImage_video"},[t("video",{attrs:{src:e.shouldLoad?e.baseImageUrl:"",poster:e.gifvPosterUrl,width:e.imageWidth,height:e.imageHeight,autoplay:"",loop:"",muted:"",playsinline:"",disableRemotePlayback:""},domProps:{muted:!0}})]):e.validImage(e.image)?[t("picture",{staticClass:"c-cmsImage_image",class:{"c-cmsImage-loaded":e.isLoaded||!e.lazyLoad}},[e._l(e.imageSources,(function(source,o){return t("source",{key:o,attrs:{media:source.mediaquery,srcset:source.url,alt:e.imageAltText}})})),e._v(" "),t("img",{class:e.imageRadius,attrs:{src:e.shouldLoad?e.baseImageUrl:"",alt:e.imageAltText,height:e.imageHeight,width:e.imageWidth,loading:e.lazyLoad?"lazy":void 0},on:{load:e.onImgLoad}}),e._v(" "),e.lazyLoad&&e.baseImageUrl?t("NoscriptImage",{attrs:{src:e.baseImageUrl,alt:e.imageAltText,height:e.imageHeight,width:e.imageWidth}}):e._e()],2)]:e._e()],2)}),[],!1,null,null,null));t.default=x.exports},774:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o(31);var r=new(o(8).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,l,d=!0,data=(null==e?void 0:e.data)||{};if(Array.isArray(this.el)){var c=this.el.findIndex((e=>e===(null==o?void 0:o.target))),h=null===(n=this.lastTriggerPosition)||void 0===n?void 0:n[c];d=void 0===h||h>o.boundingClientRect.y,this.lastTriggerPosition[c]=o.boundingClientRect.y,data=(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l[c])||{}}else d=void 0===this.lastTriggerPosition||this.lastTriggerPosition>o.boundingClientRect.y,this.lastTriggerPosition=o.boundingClientRect.y;var m=d?"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())}}},775:function(e,t,o){var content=o(780);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(243).default)("3c8bc705",content,!0,{sourceMap:!1})},777:function(e,t,o){"use strict";var r=o(7),n=(o(3),o(5),o(0)),l=o(769),d=o(8),c=o(774),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.c)([l.Component],m),t.a=m},779:function(e,t,o){"use strict";o(775)},780:function(e,t,o){var r=o(242)((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},797:function(e,t,o){var content=o(829);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(243).default)("08dc28ce",content,!0,{sourceMap:!1})},828:function(e,t,o){"use strict";o(797)},829:function(e,t,o){var r=o(242)((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, #f9f9f9);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},835:function(e,t,o){"use strict";o.r(t);var r=o(0),n=o(769),l=o(773),d=class extends n.Vue{get styleAspectRatio(){return"padding-bottom: calc("+this.aspectRatio+"* 100%)"}};Object(r.c)([Object(n.Prop)({default:""}),Object(r.f)("design:type",String)],d.prototype,"theme",void 0),Object(r.c)([Object(n.Prop)({default:null}),Object(r.f)("design:type",Object)],d.prototype,"image",void 0),Object(r.c)([Object(n.Prop)({default:null}),Object(r.f)("design:type",String)],d.prototype,"size",void 0),Object(r.c)([Object(n.Prop)({default:null,type:Object}),Object(r.f)("design:type",Object)],d.prototype,"sizes",void 0),Object(r.c)([Object(n.Prop)({default:"9/16"}),Object(r.f)("design:type",String)],d.prototype,"aspectRatio",void 0),Object(r.c)([Object(n.Prop)({default:!1,type:Boolean}),Object(r.f)("design:type",Boolean)],d.prototype,"preload",void 0),Object(r.c)([Object(n.Prop)({default:!1,type:Boolean}),Object(r.f)("design:type",Boolean)],d.prototype,"lazyLoad",void 0),Object(r.c)([Object(n.Prop)({default:!1}),Object(r.f)("design:type",Boolean)],d.prototype,"showCredits",void 0);var c=d=Object(r.c)([Object(n.Component)({components:{CmsImage:l.default}})],d),h=(o(828),o(117)),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._e()],1)}),[],!1,null,null,null);t.default=component.exports}}]); //# sourceMappingURL=00105d6.modern.js.map