(window.webpackJsonp=window.webpackJsonp||[]).push([[318],{1593:function(t,e,r){var content=r(2240);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(217).default)("686f0188",content,!0,{sourceMap:!1})},2239:function(t,e,r){"use strict";r(1593)},2240:function(t,e,r){var o=r(216)((function(i){return i[1]}));o.push([t.i,".c-shortcodeLink{color:#020203;box-shadow:0 3px 0 -1px #7a2af5;box-decoration-break:clone;-webkit-box-decoration-break:clone}.c-shortcodeLink:hover{color:#7a2af5;box-shadow:none}",""]),o.locals={},t.exports=o},2972:function(t,e,r){"use strict";r.r(e);var o=r(67),n=r(12),l=r(341),c=r(831),d=r(370),h=Object(n.defineComponent)({name:"ShortcodeLink",components:{GlobalLink:c.default},inheritAttrs:!1,props:{api:{default:"",type:String},assetType:{default:"",type:String},edition:{default:"us",type:String},href:{default:"",type:String},linkText:{default:"",type:String},slug:{default:"",type:String},uuid:{default:"",type:String}},data:()=>({viewCorrelationId:Object(o.v4)()}),computed:{extraData(){try{return this.api?JSON.parse(this.api):{}}catch(t){return{}}},actualEdition(){return this.edition||"us"},routeName(){return this.assetType?Object(d.b)("content_"+this.assetType):null}},methods:{trackClick(){this.$router.bypassExtensions=!0;var t=this.$router.resolve(this.$route).href||this.href;this.$router.bypassExtensions=!1,this.$track(l.a).with({view_correlation_id:this.viewCorrelationId,outbound_url:t,name:"trackClick",element_label:"shortcodeLink",type:"LINK",location:"BODY"}).fire()}}}),f=(r(2239),r(127)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("span",{attrs:{section:"shortcodeLink"}},[t.routeName?e("GlobalLink",{staticClass:"c-shortcodeLink",class:{"c-shortcodeLink-active":t.slug},attrs:{to:{name:t.routeName,params:{edition:t.actualEdition,slug:t.slug},_object:t.extraData}},nativeOn:{mousedown:function(e){return t.trackClick.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.linkText)}})]):t.href?e("a",{staticClass:"c-shortcodeLink c-shortcodeLink-active",attrs:{href:t.href},domProps:{innerHTML:t._s(t.linkText)},on:{mousedown:t.trackClick}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports},831:function(t,e,r){"use strict";r.r(e);r(21),r(24);var o=r(0),n=r(829),l=r(6),c=(r(4),r(190),r(5),r(10)),d=r(44),h=r(48),f=r(36),v=r(114),y=r(100),O=r(32);function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function m(t){for(var e=1;et.id===parseInt(e.id,10)));null!=n&&n.editions&&(r=n.editions[e.edition])}else r="object"==typeof o?o[e.edition]:o;"function"==typeof r&&(r=r(e))}catch(e){k.warn("Error encountered trying to generate a link to '".concat(t,"' - '").concat(e,"'"))}return"string"==typeof r?r:(k.warn("legacy route to '".concat(t,"' returned a non-string, returning default value."),e),"#")}absoluteHref(t,e){return O.a.liveUrl(this.relativeHref(t,e))}hasRoute(t){return!!this.getLegacyRoute(t)}constructParams(t){var e;return m({_object:t._object,edition:null!==(e=t.edition)&&void 0!==e?e:this.context.store.getters.edition},t.params)}getLegacyRoute(t){var e;return t=Object(y.b)(t),null===(e=this.legacyRoutes)||void 0===e?void 0:e[t]}};x=Object(o.a)([Object(d.a)(f.a.Request),Object(o.c)(0,h.a),Object(o.b)("design:paramtypes",[Object])],x);var _=r(343),w=class extends n.Vue{get useClientNavigation(){return!this.noClientNavigation&&!["article","category_door","homepage-2024","image_gallery","special_feature","topic_landing","author"].includes(this.$store.getters["tracking/pageType"])}get isMailTo(){var t;return"string"==typeof this.to&&(null===(t=this.to)||void 0===t?void 0:t.includes("mailto"))}render(t){var e,r,o,n=null,l=null,c=this.to;if("string"!=typeof c)null!==(o=c)&&void 0!==o&&o.name&&(Object(y.b)(c.name)===c.name&&(c.name=Object(y.a)(c.name,this.$i18n.locale)),this.$router.bypassExtensions=!0,c=this.$router.resolve(c).route,this.$router.bypassExtensions=!1);else if(this.useClientNavigation||!this.isMailTo){this.$router.bypassExtensions=!0;var d=this.$router.resolve(this.to);d.route.name&&(c=d.route),this.$router.bypassExtensions=!1}else if(!this.useClientNavigation||!this.isMailTo){var h;this.$di.getInstance(x).hasRoute(null===(h=c)||void 0===h?void 0:h.name)&&(n="a",l={attrs:{href:this.localePath(c)}})}if(!c||"string"==typeof c||this.isMailTo)n="a",l={attrs:{href:this.to}};else if(c.name)if(this.useClientNavigation)n="NuxtLink",l={props:{to:c}};else{var f;n="a",l={attrs:{href:null!==(f=c.fullPath)&&void 0!==f?f:c.path}}}else{var v,O,j,m=(null===(v=c._object)||void 0===v||null===(v=v.metaData)||void 0===v?void 0:v.linkUrl)||(null===(O=c._object)||void 0===O?void 0:O.linkUrl)||(null===(j=c._object)||void 0===j?void 0:j.href);m?(n="a",l={attrs:{href:m}}):(n="template",l={})}if(null!==(e=l)&&void 0!==e&&null!==(e=e.attrs)&&void 0!==e&&e.href){var k,w,L,P=null!==(k=null===(w=this.$store)||void 0===w||null===(w=w.getters["tracking/data"])||void 0===w?void 0:w.articleType)&&void 0!==k?k:"",$=Object(_.b)(null===(L=l)||void 0===L||null===(L=L.attrs)||void 0===L?void 0:L.href,P);($===_.a&&this.target||"trendingModule"===this.target)&&(l.attrs.target="_blank"),l.attrs.rel=$}else null!==(r=l)&&void 0!==r&&null!==(r=r.props)&&void 0!==r&&r.to&&this.target&&(l.attrs={target:"_blank"});if(n)return t(n,l,this.$slots.default)}};Object(o.a)([Object(n.Prop)({default:()=>null,type:[String,Object]}),Object(o.b)("design:type",Object)],w.prototype,"to",void 0),Object(o.a)([Object(n.Prop)({default:"",type:[Boolean,String]}),Object(o.b)("design:type",Object)],w.prototype,"target",void 0),Object(o.a)([Object(n.Prop)({default:!1,type:Boolean}),Object(o.b)("design:type",Boolean)],w.prototype,"noClientNavigation",void 0);var L=w=Object(o.a)([Object(n.Component)({})],w),P=r(127),component=Object(P.a)(L,undefined,undefined,!1,null,null,null);e.default=component.exports}}]);