(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{"6GBr":function(t,e,i){"use strict";i.d(e,"c",function(){return s}),i.d(e,"b",function(){return c}),i.d(e,"a",function(){return l});var o=i("ijCd"),n=i.n(o),r=i("E+oP"),a=i.n(r);function s(t){return n()(t,"super")}function c(t){return n()(t,"opinion")}function l(t){return t&&!a()(t)?t[0]:null}},"90S6":function(t,e,i){},"9BQm":function(module,exports){module.exports={render:function(){with(this)return _c("svg",{attrs:{width:"480",height:"70",xmlns:"http://www.w3.org/2000/svg"}},[_c("rect",{attrs:{fill:"none",height:"72",width:"100%",y:"-1",x:"-1"}}),_c("g",{attrs:{fill:"#ecebeb"}},[_c("rect",{attrs:{opacity:".8",rx:"3",height:"10",width:"10%",y:"10",x:"10"}}),_c("rect",{attrs:{opacity:".8",rx:"3",height:"10",width:"30%",y:"30",x:"10"}}),_c("rect",{attrs:{opacity:".8",rx:"3",height:"10",width:"20%",y:"50",x:"10"}})])])}}},AKiD:function(t,e){},BNeR:function(t,e,i){},CobG:function(t,e,i){},TXvv:function(t,e,i){},gBVj:function(module,exports){module.exports={render:function(){with(this)return _c("svg",{attrs:{viewBox:"0 0 336 372",xmlns:"http://www.w3.org/2000/svg"}},[_c("path",{attrs:{d:"M0 0h336v20H0V0zm0 32h300v20H0V32zm0 32h300v20H0V64zm0 64h336v20H0v-20zm0 32h200v20H0v-20zm0 64h336v20H0v-20zm0 32h320v20H0v-20zm0 32h336v20H0v-20zm0 32h310v20H0v-20zm0 32h240v20H0v-20z",fill:"#E7E7E7","fill-rule":"evenodd"}})])}}},x6L3:function(module,exports){module.exports={render:function(){with(this)return _c("svg",{attrs:{viewBox:"0 0 618 372",xmlns:"http://www.w3.org/2000/svg"}},[_c("path",{attrs:{d:"M0 0h618v20H0V0zm0 32h551.786v20H0V32zm0 32h551.786v20H0V64zm0 64h618v20H0v-20zm0 32h367.857v20H0v-20zm0 64h618v20H0v-20zm0 32h588.571v20H0v-20zm0 32h618v20H0v-20zm0 32h570.179v20H0v-20zm0 32h441.429v20H0v-20z",fill:"#E7E7E7","fill-rule":"evenodd"}})])}}},"yx+B":function(t,e,i){"use strict";i.r(e);var o,n=i("J2m7"),r=i.n(n),a=i("mwIZ"),s=i.n(a),c=i("3WF5"),l=i.n(c),p=i("DzJC"),u=i.n(p),d=i("qPyV"),f=i.n(d),g=i("YKMj"),h=i("grO+"),y=i("Ip9y"),v=i.n(y),b=i("qKJZ"),m=i.n(b),O=i("mxgF"),_=i.n(O),C=i("APcw"),w=i("uM7l"),S=i.n(w),A=i("afOK"),j=i.n(A),I=i("E+oP"),P=i.n(I),T=i("jv2b"),D=i("A2rA"),x=i("E22q"),k=i("b1+b"),E=i("ZZ7T"),L=i("paen"),z=i("96Gb"),N=i("wKLE"),R=i.n(N),H=i("iEWT"),U=i("AKiD"),B=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),F=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},M=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},V=function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(4),i.e(6),i.e(15),i.e(91)]).then(i.bind(null,"A9PJ"))},W=function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(4),i.e(36),i.e(6),i.e(15),i.e(83)]).then(i.bind(null,"mhf1"))},$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.topicDetailsToggleState=!1,e.topicFollowedCount=1400,e}return B(e,t),e.prototype.toggleDetailsState=function(){this.topicDetailsToggleState=!this.topicDetailsToggleState},e.prototype.convertCountNumber=function(t){return t>999?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t},Object.defineProperty(e.prototype,"showSponsor",{get:function(){return!P()(this.sponsor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showImage",{get:function(){return!P()(this.mainImage)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isShowDesc",{get:function(){return this.description.length>0?this.description:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getImageUrl",{get:function(){return s()(this.mainImage,"size_118x118.url",h.L)},enumerable:!0,configurable:!0}),F([Object(g.c)({default:""}),M("design:type",String)],e.prototype,"entityId",void 0),F([Object(g.c)(),M("design:type",String)],e.prototype,"headline",void 0),F([Object(g.c)(),M("design:type","function"==typeof(i=void 0!==U.SponsorType&&U.SponsorType)&&i||Object)],e.prototype,"sponsor",void 0),F([Object(g.c)({}),M("design:type","function"==typeof(o=void 0!==H.ContentImage&&H.ContentImage)&&o||Object)],e.prototype,"mainImage",void 0),F([Object(g.c)({default:""}),M("design:type",String)],e.prototype,"description",void 0),e=F([Object(g.a)({components:{"following-button":k.a,"svg-icon-close":R.a,"body-parser":V,Sponsor:W}})],e);var i,o}(g.d),q=i("JFUb");var Z=function(t){i("90S6")},J=Object(q.a)($,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:t.topicDetailsToggleState,expression:"topicDetailsToggleState"}],staticClass:"topic-tips"},[i("div",{staticClass:"topic-tips-background",on:{click:function(e){return t.toggleDetailsState()}}}),i("div",{staticClass:"topic-tips-box"},[i("div",{staticClass:"tips-top"},[i("div",{staticClass:"top-left"},[t._v(t._s(t.headline))]),i("div",{staticClass:"top-right"},[i("div",{staticClass:"close-button",on:{click:function(e){return t.toggleDetailsState()}}},[i("svg-icon-close")],1)])]),i("div",{staticClass:"tips-desc"},[t.isShowDesc?t._l(t.description,function(e,o){return i("div",{key:o},[i("body-parser",{key:o,attrs:{entityId:t.entityId,body:e,index:o,type:"topic__desc"}})],1)}):t._e()],2)])]),i("div",{staticClass:"topic-card"},[i("div",{staticClass:"topic-card-left"},[i("div",{staticClass:"title-headline"},[t._v(t._s(t.headline)+"\n        "),t.isShowDesc?i("span",{staticClass:"topic-detail-info",on:{click:function(e){return t.toggleDetailsState()}}},[t._v("i")]):t._e()]),i("div",{staticClass:"topic-follow-container"},[i("p",{staticClass:"follow-number-count"},[t._v("\n          Followed by "),i("span",{staticClass:"count-number"},[t._v(t._s(this.convertCountNumber(t.topicFollowedCount)))]),t._v(" people ")]),i("div",{staticClass:"follow-button"},[i("following-button",[t._v("+ FOLLOW")])],1)])]),i("div",{staticClass:"topic-card-right"},[t.showImage?i("div",{staticClass:"topic-logo"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.getImageUrl,expression:"getImageUrl"}],staticClass:"logo-image",attrs:{src:"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAAEElEQVR42mN8+p8BCBghFAAiEQPLD3901QAAAABJRU5ErkJggg==",alt:t.mainImage.title}})]):t._e()])]),i("div",{staticClass:"sponsored--mobile"},[t.showSponsor?i("sponsor",{attrs:{sponsorData:t.sponsor,type:"vertical"}}):t._e()],1)])},[],!1,Z,"data-v-44ed46dc",null).exports,Q=i("pRu2"),K=i("rWDI"),G=i("fpBe"),X=i("kBXg"),Y=i("zQm3"),tt=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),et=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},it=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},ot=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},nt=function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(4),i.e(6),i.e(15),i.e(91)]).then(i.bind(null,"A9PJ"))},rt=function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(4),i.e(36),i.e(6),i.e(15),i.e(83)]).then(i.bind(null,"mhf1"))},at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.topicDetailsToggleState=!1,e.topicFollowedCount=1400,e.edition=null,e.swiperOption={slidesPerView:"auto",spaceBetween:20,centeredSlides:!0,preventClicksPropagation:!1,preventClicks:!1,on:{resize:function(){e.calcSwiperNewPosition(e.getShortcutSwiper(),100)},init:function(){e.calcSwiperNewPosition(e.getShortcutSwiper(),100)}}},e}return tt(e,t),Object.defineProperty(e.prototype,"newsletterSetting",{get:function(){var t=j()(this.relatedNewsletters);return t?{entityId:t.entityId,entityLabel:t.name}:Object(X.a)(this.edition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showAdvanceLayout",{get:function(){return this.isOpinionTopic||this.showSponsor||this.coverImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showArticle",{get:function(){return!P()(this.latestContents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OpinionTopArticleLevel10Props",{get:function(){return this.latestOpinions.map(function(t){return t?Object(Q.b)(t):{}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstArticle",{get:function(){var t=et({},this.latestContents[0],{summary:s()(this.latestContents,"[0].subHeadline",[])});return Object(Q.h)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topArticle",{get:function(){var t=S()(this.latestContents);return t.shift(),t.splice(2,t.length-2),l()(t,function(t){return Object(Q.g)(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomArticle",{get:function(){var t=S()(this.latestContents);t.shift();var e=t.splice(2,t.length-2);return l()(e,function(t){return Object(Q.g)(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topicAdvertZone",{get:function(){return this.advertZone||"default"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adInfo",{get:function(){return{zone:this.topicAdvertZone+h.b.AD_SLOT_H4,size:[[300,250],"fluid"],name:"island-1",targeting:{sctid:this.entityId,adslot:h.a.AD_SLOT_H4}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skyScaperAdInfo",{get:function(){return{zone:this.topicAdvertZone+"/d_sky1a",size:[[120,600],[160,600],"fluid"],name:"skyscraper-1",targeting:{sctid:this.entityId,adslot:"Sky1b"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"oopAdInfo1",{get:function(){return{zone:this.topicAdvertZone+h.b.AD_SLOT_H2,oop:!0,name:"oop-1",targeting:{sctid:this.entityId,pos:1}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSponsor",{get:function(){return!P()(this.sponsor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showRelatedLink",{get:function(){return!P()(this.relatedLink)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideOpinion",{get:function(){return this.showSponsor||P()(this.latestOpinions)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showImage",{get:function(){return!P()(this.coverImage)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isShowDesc",{get:function(){return this.description.length>0?this.description:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getHeadCoverImageUrl",{get:function(){var t="breakout_sponsor"===this.coverImage.type?"size_1560x218.url":"size_2000x792.url";return s()(this.coverImage,t,h.L)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"externalLinkProp",{get:function(){return Object(K.c)()},enumerable:!0,configurable:!0}),e.prototype.calcSwiperNewPosition=function(t,e){if(window&&t&&t.$wrapperEl[0].children.length>0){var i="-"+(t.$wrapperEl[0].clientWidth/2-t.$wrapperEl[0].children[0].getBoundingClientRect().width/2)+"px";t.wrapperEl.style.marginLeft=i}},e.prototype.getShortcutSwiper=function(){return s()(this.$refs,"topicShortCutSwiper.swiper",null)},e.prototype.toggleDetailsState=function(){this.topicDetailsToggleState=!this.topicDetailsToggleState},e.prototype.convertCountNumber=function(t){return t>999?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t},it([Object(g.c)({default:!1}),ot("design:type",Boolean)],e.prototype,"isSuperTopic",void 0),it([Object(g.c)({default:""}),ot("design:type",String)],e.prototype,"entityId",void 0),it([Object(g.c)({default:""}),ot("design:type",String)],e.prototype,"headline",void 0),it([Object(g.c)({default:function(){return[]}}),ot("design:type",Array)],e.prototype,"description",void 0),it([Object(g.c)({default:[]}),ot("design:type",Array)],e.prototype,"relatedLink",void 0),it([Object(g.c)(),ot("design:type",Array)],e.prototype,"latestContents",void 0),it([Object(g.c)(),ot("design:type",Array)],e.prototype,"latestOpinions",void 0),it([Object(g.c)(),ot("design:type","function"==typeof(o=void 0!==U.SponsorType&&U.SponsorType)&&o||Object)],e.prototype,"sponsor",void 0),it([Object(g.c)(),ot("design:type",Boolean)],e.prototype,"isOpinionTopic",void 0),it([Object(g.c)(),ot("design:type",String)],e.prototype,"advertZone",void 0),it([Object(g.c)({}),ot("design:type","function"==typeof(n=void 0!==H.ContentImage&&H.ContentImage)&&n||Object)],e.prototype,"mobileImage",void 0),it([Object(g.c)({}),ot("design:type","function"==typeof(r=void 0!==H.ContentImage&&H.ContentImage)&&r||Object)],e.prototype,"coverImage",void 0),it([Object(g.c)(),ot("design:type",Boolean)],e.prototype,"activeSlide",void 0),it([Object(g.c)({default:[]}),ot("design:type",Array)],e.prototype,"relatedNewsletters",void 0),it([Object(g.c)(),ot("design:type",Number)],e.prototype,"loading",void 0),e=it([Object(g.a)({mixins:[Y.a],components:{"article-level-three":T.a,"article-level-five":D.a,"article-level-ten":x.a,"following-button":k.a,"global-menu":function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(30),i.e(58)]).then(i.bind(null,"ORiT"))},"nav-footer":function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(6),i.e(89)]).then(i.bind(null,"tHfN"))},Sponsor:rt,Subscription:z.default,AdSlot:C.a,TopicCard:J,"body-parser":nt,Lazyload:E.a,Loading:L.a},apollo:{appSetting:{query:_.a,result:function(t){var e=t.data;this.appSetting=Object(G.a)(this.appSetting,e.appSetting)},manual:!0},edition:{query:_.a,result:function(t){var e=t.data;this.edition=Object(G.a)(this.edition,e.appSetting.edition)},manual:!0,prefetch:!1}}})],e);var o,n,r}(g.d);var st=function(t){i("CobG")},ct=Object(q.a)(at,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"topic-view"},[i("no-ssr",[t.activeSlide?i("ad-slot",{staticClass:"page-container__oop-ad-slot-1 oop-ad-slot-1",attrs:{adInfo:t.oopAdInfo1,entityId:t.entityId}}):t._e()],1),i("div",{staticClass:"topic-content",attrs:{id:"topic-detail"}},[i("div",{staticClass:"topic-wrapper"},[i("div",{staticClass:"content-box"},[t._m(0),i("div",{staticClass:"topic-card-container"},[i("topic-card",{staticClass:"topics-card-item",attrs:{headline:t.headline,sponsor:t.sponsor,description:t.description,mainImage:t.mobileImage}}),t.showRelatedLink?i("div",{directives:[{name:"swiper",rawName:"v-swiper:mySwipere",value:t.swiperOption,expression:"swiperOption",arg:"mySwipere"}],ref:"topicShortCutSwiper",staticClass:"swiper-container topic-shortchut-list"},[i("div",{staticClass:"swiper-wrapper shortcut-menu"},t._l(t.relatedLink,function(e,o){return i("div",{key:o,staticClass:"swiper-slide shortcut-menu-item"},[i("a",{staticClass:"menu-item",attrs:{href:e.url}},[t._v(t._s(e.title))])])}),0)]):t._e()],1),i("div",{staticClass:"topic-head"},[i("div",{staticClass:"cover-container"},[t.showAdvanceLayout&&t.showImage?i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.getHeadCoverImageUrl,expression:"getHeadCoverImageUrl"}],staticClass:"cover-image",attrs:{src:"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAAEElEQVR42mN8+p8BCBghFAAiEQPLD3901QAAAABJRU5ErkJggg==",alt:t.coverImage.title}}):t._e(),i("div",{staticClass:"topic-info",class:[t.showAdvanceLayout?"topic-info-super":"",t.isShowDesc?"topic-info-showDesc":""]},[i("p",{staticClass:"topic-label"},[t._v("TOPIC")]),i("div",{staticClass:"topic-title"},[i("div",{staticClass:"title-headline",class:t.isShowDesc?"":"title-headline--no-desc"},[t._v(t._s(t.headline))]),t._e()]),i("div",{staticClass:"other-info"},[i("div",{staticClass:"topic-details"},[t.isShowDesc?i("div",{staticClass:"topic-desc"},[t.isShowDesc?t._l(t.description,function(e,o){return i("div",{key:o},[i("body-parser",{key:o,attrs:{entityId:t.entityId,body:e,index:o,type:t.showAdvanceLayout?"topic-super__desc":"topic__desc"}})],1)}):t._e()],2):t._e(),t.showSponsor?i("div",{staticClass:"sponsored-container"},[i("sponsor",{attrs:{sponsorData:t.sponsor,type:"vertical"}})],1):t._e(),!t.showAdvanceLayout&&t.showRelatedLink?i("div",{staticClass:"topic-shortchut-list"},[t._l(t.relatedLink,function(e,o){return[i("a",t._b({key:o,staticClass:"shortcut-item",attrs:{href:e.url}},"a",t.externalLinkProp,!1),[t._v(t._s(e.title))])]})],2):t._e()])])])])]),t.showAdvanceLayout?i("div",{staticClass:"other-related-topic"},[i("div",{staticClass:"related-topic"},[t._l(t.relatedLink,function(e,o){return[i("a",{key:o,staticClass:"topic-item",attrs:{href:e.url}},[t._v(t._s(e.title))])]})],2)]):t._e(),i("div",{staticClass:"topic-article-container"},[i("div",{staticClass:"faq-area"},[i("div",{staticClass:"faq-area__skyscraper-ad-container"},[i("no-ssr",[t.activeSlide&&t.isMediumDesktopUpUI?i("ad-slot",{staticClass:"faq-area__skyscraper-ad",attrs:{adInfo:t.skyScaperAdInfo,entityId:t.entityId}}):t._e()],1)],1)]),i("div",{staticClass:"article-area",class:t.hideOpinion?"article-area--hide-opinion":""},[t.showArticle?[i("article-level-five",t._b({staticClass:"article-area__main-content main-content",attrs:{flow:"responsive",imageStyleSizeName:"size_1200x800",progressiveImageStyleName:"size_120x80",imageWidth:"1200",imageHeight:"800"}},"article-level-five",t.firstArticle,!1)),t._l(t.topArticle,function(e,o){return[e?i("article-level-three",t._b({key:e.entityUuid,staticClass:"article-area__content content",class:["content--item-"]+(o+1),attrs:{thumb:"large",imageStyleSizeName:"size_540x360"}},"article-level-three",e,!1)):t._e()]})]:t._e(),i("div",{staticClass:"middle-diff-area"},[i("div",{staticClass:"subscription-area"},[i("subscription",{staticClass:"item",attrs:{newsletterId:t.newsletterSetting.entityId,newsletterName:t.newsletterSetting.entityLabel,sector:"topic",message:"SIGN UP"}})],1),i("div",{staticClass:"ad-area"},[i("div",{staticClass:"ad-area__ad-container"},[i("no-ssr",[t.activeSlide?i("ad-slot",{staticClass:"ad-area__ad-slot",attrs:{adInfo:t.adInfo,entityId:t.entityId,withLabel:"",padded:"",fixedHeight:"250"}}):t._e()],1)],1)])]),t.showArticle?[t._l(t.bottomArticle,function(e,o){return[e?i("article-level-three",t._b({key:e.entityUuid,staticClass:"article-area__content content",class:["content--item-"]+(o+1),attrs:{thumb:"large",imageStyleSizeName:"size_540x360"}},"article-level-three",e,!1)):t._e()]})]:t._e(),t.loading?i("Loading",{attrs:{type:"gray"}}):t._e()],2),t.isOpinionTopic?t._e():i("div",{staticClass:"opinion-area",class:t.hideOpinion?"opinion-area--hide":""},[t._l(t.OpinionTopArticleLevel10Props,function(e){return[i("article-level-ten",t._b({key:e.entityUuid,staticClass:"opinion-item",attrs:{align:"bottom",imageStyleSizeName:"size_118x118"}},"article-level-ten",e,!1))]})],2)])])]),i("div",{ref:"loadMoreAnchor",staticClass:"topic-content__load-more-anchor"}),i("lazyload",[i("template",{slot:"content"},[i("nav-footer",{staticClass:"topic-content__footer",attrs:{id:"footer"}})],1)],2)],1)],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"topic-header-wrapper"},[e("p",{staticClass:"topic-header-label"},[this._v("Topic")])])}],!1,st,"data-v-727c3159",null).exports,lt=i("gN9n"),pt=i("wbY3"),ut=i("6GBr"),dt=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ft=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},gt=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},ht=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},yt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.topicData=null,e.appSetting=null,e.currentIndex=e.getInitialSlideIndexFromRoute(),e.loadMoreAnchor=null,e.observer=null,e.perpetualScrollEventHandler=void 0,e.pageOffset=0,e.loading=0,e.superTopicContents=[],e.isTopAdsHidden=!1,e.topAdsToggleVisibilityOffsetValue=120,e.throttleUpdateTargetScrollNum=null,e}return dt(e,t),Object.defineProperty(e.prototype,"getMetaInfo",{get:function(){var t=this.topicData;if(t){var e=void 0;return e="string"==typeof t.metaDescription?t.metaDescription:Object(lt.d)(t.description),{title:t.name+" | ",link:Object(lt.b)(ft({},t)).slice(),meta:Object(lt.j)(e).concat(Object(lt.k)(t.name),Object(lt.a)(),Object(lt.c)(ft({},t),h.Kb.TOPIC),Object(lt.o)(ft({},t,{socialHeadline:t.name,description:e})),Object(lt.r)(t.name))}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"entityUuid",{get:function(){return this.idFromRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topicEntityId",{get:function(){return s()(this.topicData,"entityId")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpinionTopic",{get:function(){return Object(ut.b)(s()(this.topicData,"types",[]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topicFrontprops",{get:function(){var t=this.topicData,e=s()(t,"coverImages",{}),i=r()(e,{type:"breakout"}),o=r()(e,{type:"breakout_sponsor"}),n=s()(t,"latestOpinions",[]);return{entityId:s()(t,"entityId",""),advertZone:s()(t,"advertZone",""),headline:s()(t,"name",""),description:s()(t,"description",""),urlAlias:s()(t,"urlAlias",""),isSuperTopic:Object(ut.c)(s()(t,"types",[])),isOpinionTopic:this.isOpinionTopic,latestContents:this.isOpinionTopic?n:this.contentsItems,latestOpinions:this.isOpinionTopic?n:n.slice(0,10),mobileImage:s()(t,"mobileImage",{}),coverImage:o||i,sponsor:s()(t,"sponsor",{}),topics:s()(t,"name",""),topicID:s()(t,"entityId",""),relatedLink:t&&t.relatedLink?l()(t.relatedLink,function(t){return{title:t.title?t.title:"",url:t.url?t.url:""}}):null,relatedNewsletters:s()(t,"relatedNewsletters",""),loading:this.loading}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentsItems",{get:function(){var t=this.topicData,e=[],i=s()(t,"latestContentsWithCursor.items",[]);return t&&Object(ut.c)(t.types)&&(e=this.superTopicContents.slice()),e=f()(e.concat(i),"entityId")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasNextpage",{get:function(){return!this.isOpinionTopic&&s()(this.topicData,"latestContentsWithCursor.pageInfo.hasNextPage",!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageInfo",{get:function(){return s()(this.topicData,"latestContentsWithCursor.pageInfo",{})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextCursor",{get:function(){return s()(this.pageInfo,"endCursor","").toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeFrontHeaderTopAdInfo",{get:function(){return{zone:s()(this.topicData,"advertZone","")+h.b.AD_BANNER_3,size:[[300,100],[320,100],"fluid"],name:"header-top-1",targeting:{adslot:h.a.AD_M_LEADERBOARD_3,sctid:this.topicEntityId}}},enumerable:!0,configurable:!0}),e.prototype.getInitialSlideIndexFromRoute=function(){var t=this.$route.path;return t.endsWith("/opinion")?1:t.endsWith("/explore")?2:0},Object.defineProperty(e.prototype,"pageTracker",{get:function(){var t=this.topicData;return t&&t.urlAlias&&t.entityId?t.urlAlias:null},enumerable:!0,configurable:!0}),e.prototype.onPageTrackerChanged=function(t,e){t&&this.triggerSetDataState()},e.prototype.onEntityIdChange=function(){var t=s()(this.$refs,"topic-content");t&&t.scrollTo({top:0,left:0,behavior:"auto"})},e.prototype.triggerSetDataState=function(){var t=this,e=this.topicData;setTimeout(function(){Object(pt.f)(t.$apollo,{entityId:s()(e,"entityId"),entityUuid:s()(e,"entityUuid"),page:"Topic",pageTitle:t.$metaInfo.title?Object(lt.h)(t.$metaInfo.title):"",contentType:"Topic",path:s()(e,"urlAlias"),topics:s()(e,"name"),topicID:s()(e,"entityId"),sponsor:s()(e,"sponsor.name",null)},!0)},h.Db)},e.prototype.loadMoreContents=function(){this.loading||this.hasNextpage&&this.nextCursor&&(this.pageOffset++,this.$apollo.queries.topicData.fetchMore({variables:{latestContentsLimit:30,after:this.nextCursor},updateQuery:function(t,e){var i=e.fetchMoreResult,o=s()(t,"topic.latestContentsWithCursor.items",[]),n=s()(i,"topic.latestContentsWithCursor.items",[]),r=s()(i,"topic.latestContentsWithCursor.pageInfo",{});return{topic:ft({},t.topic,{latestContentsWithCursor:ft({},t.topic.latestContentsWithCursor,{items:o.concat(n),pageInfo:ft({},t.topic.latestContentsWithCursor.pageInfo,r)})})}}}))},e.prototype.initPerpetualScroll=function(){this.loadMoreAnchor=document.querySelector(".topic-content__load-more-anchor"),this.loadMoreAnchor&&"function"==typeof window.IntersectionObserver&&(this.observer=new IntersectionObserver(this.intersectionCallback,{rootMargin:"-100px",threshold:[1]}),this.observer.observe(this.loadMoreAnchor))},e.prototype.intersectionCallback=function(t){var e=this;t.forEach(function(t){t.intersectionRatio>=1&&e.loadMoreContents()})},e.prototype.getCurrentSlideContainer=function(){return this.$refs["topic-content"]},e.prototype.updateTargetScrollNum=function(){this.getCurrentSlideContainer().scrollTop>this.topAdsToggleVisibilityOffsetValue?this.isTopAdsHidden||(this.isTopAdsHidden=!0):this.isTopAdsHidden&&(this.isTopAdsHidden=!1)},e.prototype.removePageScrollEvent=function(){var t=this.getCurrentSlideContainer();t&&this.throttleUpdateTargetScrollNum&&t.removeEventListener("scroll",this.throttleUpdateTargetScrollNum,!0)},e.prototype.activePageScrollEvent=function(){var t=this.getCurrentSlideContainer();this.updateTargetScrollNum(),this.removePageScrollEvent(),this.throttleUpdateTargetScrollNum=u()(this.updateTargetScrollNum,100),t.addEventListener("scroll",this.throttleUpdateTargetScrollNum,{passive:!0})},e.prototype.mounted=function(){this.initPerpetualScroll(),this.activePageScrollEvent()},e.prototype.beforeDestroy=function(){this.observer&&this.observer.disconnect(),this.removePageScrollEvent()},gt([Object(g.c)({default:"0"}),ht("design:type",String)],e.prototype,"idFromRoute",void 0),gt([Object(g.c)({default:null}),ht("design:type",Object)],e.prototype,"types",void 0),gt([Object(g.e)("pageTracker"),ht("design:type",Function),ht("design:paramtypes",[Object,Object]),ht("design:returntype",void 0)],e.prototype,"onPageTrackerChanged",null),gt([Object(g.e)("topicEntityId"),ht("design:type",Function),ht("design:paramtypes",[]),ht("design:returntype",void 0)],e.prototype,"onEntityIdChange",null),e=gt([Object(g.a)({apollo:{appSetting:{query:_.a,result:function(t){var e=t.data;this.appSetting=Object(G.a)(this.appSetting,e.appSetting)},manual:!0},topicData:{client:h.hb,query:m.a,result:function(t){var e=t.data;this.topicData=Object(G.a)(this.topicData,e.topic?e.topic:{})},manual:!0,variables:function(){return{entityUuid:this.entityUuid,articleTypeId:h.k.OPINION,applicationIds:[h.r.SCMP],latestContentsLimit:30,latestOpinionsLimit:30}},prefetch:function(t){return{entityUuid:t.route.matched[0].props.default.idFromRoute,articleTypeId:h.k.OPINION,applicationIds:[h.r.SCMP],latestContentsLimit:30,latestOpinionsLimit:30}},loadingKey:"loading"},superTopicContents:{client:h.hb,query:v.a,result:function(t){var e=t.data;this.superTopicContents=Object(G.a)(this.superTopicContents,e.queue?e.queue.items:[])},manual:!0,variables:function(){return{name:"topic_super_topic_"+this.topicEntityId,itemLimit:10}},prefetch:function(t){return{name:"topic_super_topic_"+t.route.matched[0].props.default.entityIdFromRoute,itemLimit:10}},skip:function(){return!(!this.types||!Array.isArray(this.types))&&!Object(ut.c)(this.types)}}},components:{TopicFront:ct,AdSlot:C.a,"global-menu":function(){return Promise.all([i.e(2),i.e(0),i.e(1),i.e(30),i.e(58)]).then(i.bind(null,"ORiT"))}},mixins:[Y.a],metaInfo:function(){return this.getMetaInfo}})],e)}(g.d);var vt=function(t){i("BNeR"),i("TXvv")},bt=Object(q.a)(yt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"topic-page page",class:[t.isTopAdsHidden?"page--slide-up":""]},[i("no-ssr",[i("div",{staticClass:"page__top-ad top-ad",class:[t.isTopAdsHidden?"top-ad--hidden":""]},[i("div",{staticClass:"top-ad__outer"},[i("div",{staticClass:"top-ad__inner"},[t.isMobileUI?i("ad-slot",{staticClass:"top-ad__ad-slot",attrs:{adInfo:t.homeFrontHeaderTopAdInfo,entityId:t.topicEntityId,fixedHeight:"100"}}):t._e()],1)])])]),i("div",{staticClass:"topic-page__header-menu"},[i("div",{staticClass:"topic-page__header-item"},[i("global-menu")],1)]),i("div",{ref:"topic-content",staticClass:"page__topic-content topic-content",attrs:{id:"topic-page-1"}},[i("topic-front",t._b({attrs:{activeSlide:0===t.currentIndex}},"topic-front",t.topicFrontprops,!1))],1)],1)},[],!1,vt,"data-v-782d9c01",null);e.default=bt.exports}}]);