(window.webpackJsonp=window.webpackJsonp||[]).push([[28,376],{1092:function(e,o,n){"use strict";n.r(o);n(21),n(29),n(47);var t=n(0),c=n(363),r={name:"SocialShares",props:{article:{type:Object,default:function(){return{}}},gtmInfo:{type:String,default:""},hasActionTitles:{type:Boolean,default:!1},iconColor:{type:String,default:"white"}},computed:{configTitle:function(){return Object(t.a)(this,"$config.site.title","")},domain:function(){return Object(t.a)(this,"$config.site.domain","")},emailHref:function(){var summary=Object(t.a)(this,"article.summary","");return"mailto:?subject=".concat(this.urlReadyArticleTitle,"%20%7C%20").concat(this.configTitle,"&body=").concat(summary,"%0D%0A%0D%0ACheck%20it%20out:%20").concat(this.domain).concat(this.slug,"?utm_source=DesktopEmailShare%26utm_medium=email")},facebookHref:function(){return"http://www.facebook.com/share.php?u=".concat(this.domain).concat(this.slug,"&title=").concat(this.urlReadyArticleTitle,"%20%7C%20").concat(this.configTitle)},flipboardHref:function(){return"https://share.flipboard.com/bookmarklet/popout?v=2&title=".concat(this.urlReadyArticleTitle,"&url=").concat(this.domain).concat(this.slug,"&utm_campaign=tools&utm_medium=article-share&utm_source=").concat(this.domain)},googleHref:function(){return"https://plus.google.com/share?url=".concat(this.domaim).concat(this.slug)},iconsToShow:function(){return Object(t.a)(this,"$config.configurableArticle.socialShareIcons",["facebook","pintrest","email","twitter","google"])},pintrestHref:function(){var image=Object(t.a)(this,"article.image.url","");return"http://pinterest.com/pin/create/bookmarklet/?media=".concat(image,"&url=").concat(this.domain).concat(this.slug,"&is_video=false&description=").concat(this.urlReadyArticleTitle,"%20%7C%20").concat(this.configTitle)},twitterHref:function(){return"//twitter.com/share?url=".concat(this.domain).concat(this.slug,"&text=").concat(this.urlReadyArticleTitle)},slug:function(){return Object(t.a)(this,"article.slug","")},urlReadyArticleTitle:function(){return encodeURIComponent(Object(t.a)(this,"article.title",""))},getArticleId:function(){return Object(t.a)(this,"article.id","")},getIsLoggedIn:function(){return Object(t.a)(this,"$store.state.user.me.name","")},getFavoritedArticleIds:function(){return Object(t.a)(this,"$store.state.user.me.favoritedArticleIds",{})},getIsFavorited:function(){if(!1!==this.getFavoritedArticleIds)return this.getFavoritedArticleIds[this.getArticleId]},dataEvent:function(){return this.getIsFavorited?"article unsave":"article save attempt"}},methods:{pinterestHandler:function(){(new c.a)({src:"https://assets.pinterest.com/js/pinit_main.js"}).then((function(){window.PinUtils&&window.PinUtils.pinAny&&window.PinUtils.pinAny()}))},getUserToken:function(){return this.$cookie.get("token")},openSocialWindow:function(e){e.preventDefault();var o=Object(t.a)(e,"target.href","")||Object(t.a)(e,"target.parentElement.href","");window.open(o,o,"width=500,height=500")},favoriteClickHandler:function(){var e=this.getArticleId;if(this.getIsLoggedIn){var o=this.getUserToken();this.$store.dispatch("user/FAVORITE_ARTICLE",{token:o,articleId:e}).then(this.checkFavoritedArticle)}else document.querySelector("body").className+=" no-scroll",window.dataLayer.push({event:"sign up lightbox impression",prompt:"article save"}),this.$store.dispatch("UPDATE_TEMP_FAVORITED_ARTICLE_ID",{articleId:e}),this.$store.dispatch("OPEN_AUTH_MODAL",{form:"sign-up",GTMPrompt:"article save"})},orderStyles:function(e){return{order:this.iconsToShow.indexOf(e)}},showIcon:function(e){return this.iconsToShow.includes(e)}}},l=(n(973),n(37)),component=Object(l.a)(r,(function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"component-social-shares"},[n("ul",{staticClass:"social-share-icons clearfix"},[e.showIcon("facebook")?n("li",{staticClass:"social-share-icons__item social-share-icons__item--facebook",style:e.orderStyles("facebook"),on:{click:function(o){return e.openSocialWindow(o)}}},[n("a",{attrs:{href:e.facebookHref,"data-info":e.gtmInfo,"data-event":"Facebook",target:"_blank","aria-label":"Share on Facebook"}},[n("span",{staticClass:"svg svg--facebook",class:"facebook-"+e.iconColor})]),e._v(" "),e.hasActionTitles?n("span",{staticClass:"action"},[e._v("Share")]):e._e()]):e._e(),e._v(" "),e.showIcon("pinterest")&&e.article.image?n("li",{staticClass:"social-share-icons__item social-share-icons__item--pinterest",style:e.orderStyles("pinterest"),on:{click:function(o){return e.openSocialWindow(o)}}},[n("a",{attrs:{href:e.pintrestHref,"data-info":e.gtmInfo,"data-event":"Pinterest",target:"_blank","aria-label":"Share on Pinterest"}},[n("span",{staticClass:"svg svg--pinterest",class:"pinterest-"+e.iconColor})]),e._v(" "),e.hasActionTitles?n("span",{staticClass:"action"},[e._v("Pin")]):e._e()]):e._e(),e._v(" "),e.showIcon("twitter")&&e.article.image?n("li",{staticClass:"social-share-icons__item social-share-icons__item--twitter",style:e.orderStyles("twitter"),on:{click:function(o){return e.openSocialWindow(o)}}},[n("a",{attrs:{href:e.twitterHref,"data-event":"Twitter",target:"_blank","aria-label":"Share on Twitter"}},[n("span",{staticClass:"svg svg--twitter",class:"twitter-"+e.iconColor})]),e._v(" "),e.hasActionTitles?n("span",{staticClass:"action"},[e._v("Tweet")]):e._e()]):e._e(),e._v(" "),e.showIcon("email")?n("li",{staticClass:"social-share-icons__item social-share-icons__item--email",style:e.orderStyles("email")},[n("a",{attrs:{href:e.emailHref,"data-info":e.gtmInfo,"data-event":"Email",target:"_top","aria-label":"Share with Email"}},[n("span",{staticClass:"svg svg--envelope",class:"envelope-"+e.iconColor})]),e._v(" "),e.hasActionTitles?n("span",{staticClass:"action"},[e._v("Email")]):e._e()]):e._e(),e._v(" "),e.showIcon("flipboard")?n("li",{staticClass:"social-share-icons__item social-share-icons__item--flipboard",style:e.orderStyles("flipboard"),on:{click:function(o){return e.openSocialWindow(o)}}},[n("a",{attrs:{href:e.flipboardHref,target:"_blank","data-event":"Flipboard","data-info":e.gtmInfo,"aria-label":"Flipboard Social Share"}},[n("span",{staticClass:"svg svg--flipboard",class:"flipboard-"+e.iconColor})])]):e._e(),e._v(" "),e.showIcon("favorite")?n("li",{staticClass:"social-share-icons__item social-share-icons__item--favorite",class:{"social-share-icons__item--is-favorited":e.getIsFavorited},style:e.orderStyles("favorite"),on:{click:e.favoriteClickHandler}},[n("a",{attrs:{"data-event":e.dataEvent,"data-info":e.slug,"aria-label":"Favorite Save Social Share"}},[n("span",{staticClass:"favorite-save-copy"},[e._v(" SAVE ")]),e._v(" "),n("span",{staticClass:"svg svg--heart heart-yellow-filled"}),e._v(" "),n("span",{staticClass:"svg svg--heart heart-black-outline"}),e._v(" "),n("span",{staticClass:"svg svg--heart heart-white-filled"}),e._v(" "),n("span",{staticClass:"svg svg--heart heart-white-outline"})])]):e._e(),e._v(" "),e.showIcon("google")?n("li",{staticClass:"social-share-icons__item social-share-icons__item--google",style:e.orderStyles("google"),on:{click:function(o){return e.openSocialWindow(o)}}},[n("a",{attrs:{href:e.googleHref,"data-info":e.gtmInfo,"data-event":"Google",target:"_top","aria-label":"Share on Google Plus"}},[n("span",{staticClass:"svg svg--google",class:"google-"+e.iconColor})]),e._v(" "),e.hasActionTitles?n("span",{staticClass:"action"},[e._v("Share")]):e._e()]):e._e()])])}),[],!1,null,null,null);o.default=component.exports},1240:function(e,o,n){e.exports=n.p+"img/back-button.eaff293.png"},1241:function(e,o,n){var content=n(1421);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(72).default)("23f65b72",content,!0,{sourceMap:!1})},1420:function(e,o,n){"use strict";n(1241)},1421:function(e,o,n){var t=n(71),c=n(174),r=n(1240),l=t(!1),h=c(r);l.push([e.i,".component-social-share-mobile-icons {\n width: 100%;\n overflow: hidden;\n}\n.component-social-share-mobile-icons .social-share--wrapper {\n position: fixed;\n top: 0;\n left: 100%;\n z-index: 1000005;\n width: 100%;\n transition: transform 0.5s;\n background: #fff;\n display: flex;\n align-items: center;\n height: 50px;\n}\n@media (min-width: 768px) {\n.component-social-share-mobile-icons .social-share--wrapper {\n top: 4px;\n}\n}\n.component-social-share-mobile-icons .social-share--wrapper.sticky {\n transform: translateX(-100vw);\n}\n.component-social-share-mobile-icons .social-share--wrapper .back-arrow-container {\n position: absolute;\n width: 13px;\n height: 20px;\n z-index: 9999;\n top: 15px;\n left: 15px;\n}\n.component-social-share-mobile-icons .social-share--wrapper .back-arrow-container .back-arrow--link {\n display: block;\n}\n.component-social-share-mobile-icons .social-share--wrapper {\n top: 10px;\n z-index: 10003;\n transition: transform 1.5s;\n height: inherit;\n}\n.component-social-share-mobile-icons .social-share--wrapper .social-share-hidden {\n opacity: 0;\n transition: 0.25s ease-out;\n pointer-events: none;\n}\n.component-social-share-mobile-icons .social-share--wrapper .social-action {\n display: none;\n}\n.component-social-share-mobile-icons .social-share--wrapper .back-arrow-container {\n width: 40px;\n height: 40px;\n margin-right: 30px;\n position: relative;\n top: 0;\n left: 0;\n}\n.component-social-share-mobile-icons .social-share--wrapper .back-arrow-container .back-arrow__link {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n}\n.component-social-share-mobile-icons .social-share--wrapper .back-arrow-container .back-arrow__link .back-arrow__image {\n background-image: url("+h+");\n background-repeat: no-repeat;\n background-size: contain;\n width: 20px;\n height: 20px;\n}\n",""]),e.exports=l},1705:function(e,o,n){"use strict";n.r(o);n(20),n(24),n(19),n(4),n(39),n(14),n(40);var t=n(13),c=(n(148),n(0)),r=n(109),l=n(63);function h(object,e){var o=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),o.push.apply(o,n)}return o}function m(e){for(var i=1;ithis.threshold}}},d=(n(1420),n(37)),component=Object(d.a)(_,(function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"component-social-share-mobile-icons"},[n("div",{staticClass:"social-share--wrapper",class:{sticky:e.pastThreshold,"social-share-hidden":e.socialShareHidden}},[e._m(0),e._v(" "),n("span",{staticClass:"social-action"},[e._v("Share")]),e._v(" "),n("social-share-icons",{class:"is-sticky",attrs:{article:e.article}})],1)])}),[function(){var e=this.$createElement,o=this._self._c||e;return o("div",{staticClass:"back-arrow-container"},[o("a",{staticClass:"back-arrow__link",attrs:{href:"/","data-event":"back nav","aria-label":"back nav arrow"}},[o("div",{staticClass:"back-arrow__image"})])])}],!1,null,null,null);o.default=component.exports;installComponents(component,{SocialShareIcons:n(1092).default})},877:function(e,o,n){var content=n(974);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(72).default)("e006f098",content,!0,{sourceMap:!1})},973:function(e,o,n){"use strict";n(877)},974:function(e,o,n){var t=n(71)(!1);t.push([e.i,'.component-social-shares {\n width: 210px;\n}\n.component-social-shares.is-sticky {\n width: 275px;\n margin-right: 15px;\n}\n@media (min-width: 768px) {\n.component-social-shares.is-sticky {\n width: 315px;\n}\n}\n.component-social-shares.is-sticky .social-share-icons {\n text-align: right;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item {\n margin: 0 3px;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--facebook {\n background-color: #3B5897;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--pinterest {\n background-color: #CB1724;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--flipboard {\n background-color: #F52828;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--email {\n background-color: #B6B6B6;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite {\n width: 90px;\n background-color: #222;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited {\n width: 40px;\n margin-left: 3px;\n}\n@media (min-width: 768px) {\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited {\n width: 50px;\n margin-left: 0;\n}\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-yellow-filled,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-black-outline,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-white-outline {\n display: none;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-white-filled {\n display: block;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite .favorite-save-copy {\n top: 11px;\n color: #F8F8F8;\n opacity: 1;\n}\n@media (min-width: 768px) {\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item.social-share-icons__item--favorite .favorite-save-copy {\n top: 16px;\n}\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.facebook-white,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.pinterest-white,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.flipboard-white,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.envelope-white,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.heart-white-outline {\n display: inline-block;\n}\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.facebook-black,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.pinterest-black,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.flipboard-black,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.envelope-black,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.heart-yellow-filled,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.heart-black-outline,\n.component-social-shares.is-sticky .social-share-icons .social-share-icons__item .svg.heart-white-filled {\n display: none;\n}\n.component-social-shares .social-share-icons {\n margin: 0;\n padding: 0;\n text-align: center;\n list-style: none;\n opacity: 1;\n transition: opacity 0.2s;\n}\n.component-social-shares .social-share-icons .social-share-icons__item {\n float: left;\n width: 40px;\n height: 40px;\n margin: 0 8px;\n text-align: center;\n vertical-align: top;\n background-color: #F8F8F8;\n transition: background-color 0.5s;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item {\n width: 50px;\n height: 50px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item:hover {\n cursor: pointer;\n opacity: 0.9;\n}\n.component-social-shares .social-share-icons .social-share-icons__item:first-child {\n margin-left: 0;\n}\n.component-social-shares .social-share-icons .social-share-icons__item:last-child {\n margin-right: 0;\n}\n.component-social-shares .social-share-icons .social-share-icons__item a {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg {\n position: absolute;\n top: 13px;\n display: block;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item .svg {\n top: 15px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--facebook {\n right: 16px;\n width: 8px;\n height: 15px;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--facebook {\n right: 20px;\n width: 10px;\n height: 19px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--pinterest {\n right: 14px;\n width: 12px;\n height: 15px;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--pinterest {\n right: 16px;\n width: 17px;\n height: 22px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--flipboard {\n right: 14px;\n width: 12px;\n height: 15px;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--flipboard {\n right: 16px;\n width: 18px;\n height: 18px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--envelope {\n top: 15px;\n right: 12px;\n width: 16px;\n height: 11px;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--envelope {\n top: 18px;\n right: 15px;\n width: 20px;\n height: 14px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--heart {\n right: 11px;\n width: 18px;\n height: 15.75px;\n}\n@media (min-width: 768px) {\n.component-social-shares .social-share-icons .social-share-icons__item .svg.svg--heart {\n right: 13px;\n width: 24px;\n height: 21px;\n}\n}\n.component-social-shares .social-share-icons .social-share-icons__item .svg.facebook-white,\n.component-social-shares .social-share-icons .social-share-icons__item .svg.pinterest-white,\n.component-social-shares .social-share-icons .social-share-icons__item .svg.flipboard-white,\n.component-social-shares .social-share-icons .social-share-icons__item .svg.envelope-white,\n.component-social-shares .social-share-icons .social-share-icons__item .svg.heart-yellow-filled,\n.component-social-shares .social-share-icons .social-share-icons__item .svg.heart-white-filled,\n.component-social-shares .social-share-icons .social-share-icons__item .svg.heart-white-outline {\n display: none;\n}\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite {\n transition: width 0.5s, margin-left 0.5s;\n}\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .favorite-save-copy {\n opacity: 0;\n}\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-yellow-filled {\n display: block;\n}\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-black-outline,\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-white-filled,\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite.social-share-icons__item--is-favorited .svg.heart-white-outline {\n display: none;\n}\n.component-social-shares .social-share-icons .social-share-icons__item.social-share-icons__item--favorite .favorite-save-copy {\n position: absolute;\n top: 16px;\n left: 12px;\n color: #000;\n font-size: 14px;\n font-family: "ProximaNovaRegular", Arial, sans-serif;\n letter-spacing: 0.39px;\n opacity: 0;\n transition: opacity 0.5s;\n}\n',""]),e.exports=t}}]);