1(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1011:function(t,e,n){"use strict";n(16),n(31),n(72),n(41),n(36),n(27),n(17),n(65),n(54),n(48),n(38),n(58),n(64),n(118);var i=n(2),a=n.n(i),s=(n(52),n(4)),r=n.n(s),o=n(14),c=n.n(o),d=n(835),l=n(836),u=n(833),h=n(837),f=n(77),p=n(793),g=n(859),m=n(847),v=n(1),b=n(19),w=n(7),C=n(0),_=n(809),y=["MCRadioEvent","MCRadioSurvey","MCRadioPhotoGallery","MCRadioSocial"],S={name:"ListContents",components:{MCRadioSurveyStream:h.a,MCRadioSocialStream:d.a,MCRadioEventStream:l.a,MCRadioPhotoGalleryStream:u.a,AdUnit:f.a,SpinnerDash:p.a,DropdownFilterFeed:g.a,FeaturedContent:m.a},props:{subPage:{default:null},limit:{default:10}},mixins:[_.a],data:function(){return{types:y,stations:[],contents:[],contentsFeatured:[],filtering:!1,outbrain:!0,page:0,bottom:!1,disable:!1,isLoading:!1}},watch:{"shared.stations":function(){this.getAllContents()},"shared.meta":function(){this.getAllContents()},$route:function(t,e){t.path!==e.path&&(this.stations=[],this.getAllContents("clear"))},bottom:function(t){t&&!this.disable&&(this.page++,this.getContentStream(),C.a.$emit("fireDtm",this.page))}},computed:{featuredShowed:function(){return this.contentsFeatured&&this.contentsFeatured.length},selectedStations:function(){var t=Object(v.k)(this.shared,"setting.melistenStationContentID","");if(this.subPage)return Array.isArray(t)&&(t=t[0]),"melisten"===this.subPage?t:Object(v.k)(this.stations,"[0].id");Array.isArray(t)&&(t=c()(t));var e=this.shared.filterFeedStations||this.stations.map((function(t){return t.id}));return[].concat(c()(e),[t])},selectedTypes:function(){var t=this.subPage?this.types:this.shared.filterFeedTypes||this.types;return(t=t.length?t:y).sort(),t},handleNoResults:function(){return!(this.subPage||this.filtering||!this.shared.filteredFeed||this.isLoading||!this.contents||this.contents.length||this.contentsFeatured.length)}},methods:{getAllContents:function(){var t=arguments,e=this;return r()(a.a.mark((function n(){var i;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],navigator.onLine){n.next=3;break}return n.abrupt("return");case 3:return e.isLoading=!0,n.next=6,e.waitFor(e.shared,"meta");case 6:e.getFeaturedData(i),e.getContentStream(i);case 8:case"end":return n.stop()}}),n)})))()},getStations:function(){if(this.$route.params&&(this.$route.params.subPage||this.$route.params.radioname)){var t=Object(v.k)(this.$route,"params.subPage")||Object(v.k)(this.$route,"params.radioname")||"";this.stations=this.shared.stations.filter((function(e){return e.link.split("/").pop()==t}))}else this.stations=this.shared.stationsFollowed||this.shared.stations.filter((function(t){return t.streamURLLow}))},getFeaturedData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isFetchingFeatured&&this.shared.stations){e&&(this.contentsFeatured=[]),this.getStations(),this._isFetchingFeatured=!0;var n={q:"",navigationId:this.selectedStations,contentType:this.selectedTypes,limit:10,page:0,pinnedPost:1,sortBy:"posteddate desc",web:1},i=new URLSearchParams(n).toString(),a="/api/mcapi/search?".concat(i);this.fetch(a).then((function(e){var n=(e||[]).filter((function(e){return!(t.contents||[]).find((function(t){return t.id==e.id}))})).filter((function(t){return t.pinnedPost}));t.contentsFeatured=n,t.fetchLikes(n.filter((function(e){return!t.shared.likes[e.uuid]})).map((function(t){return"".concat(t.uuid)}))),t.filtering=!1,t._isFetchingFeatured=!1,setTimeout((function(){t.scrollToContent(n)}),500)})).catch((function(e){t.contentsFeatured=[],t.filtering=!1,t._isFetchingFeatured=!1}))}},getContentStream:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isFetching&&this.shared.stations){e&&this.clearContent(),this.getStations(),w.a&&w.a.start(),this._isFetching=!0;var n=this.$route.params.index||0,i=10*Math.ceil((n+1)/10)||this.limit,a={q:"",navigationId:this.selectedStations,contentType:this.selectedTypes,limit:i,page:this.page,pinnedPost:0,sortBy:"posteddate desc",web:1},s=new URLSearchParams(a).toString(),r="/api/mcapi/search?".concat(s);this.fetch(r).then((function(e){var n,i=(t.$route.params.submenu||"").match(/-(\d+)$/),a=i&&parseInt(i[1]),s=[];(s=(e||[]).filter((function(e){return e.id!==a&&!(t.contents||[]).find((function(t){return t.id==e.id}))})).filter((function(t){return!t.pinnedPost})),t.contents)?(n=t.contents).push.apply(n,c()(s)):t.contents=s;t.fetchLikes(s.filter((function(e){return!t.shared.likes[e.uuid]})).map((function(t){return"".concat(t.uuid)}))),t.loadOBR(),w.a&&w.a.finish(),t.filtering=!1,t._isFetching=!1,t.disable=e.length<t.limit,t.isLoading=!1,setTimeout((function(){t.scrollToContent(s)}),500)})).catch((function(e){t.contents=[],t.filtering=!1,t._isFetching=!1,t.isLoading=!1}))}},scrollToContent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.$route.params.id||null,n=t.find((function(t){return t.id===e}));if(e&&n){var i=document.getElementById("content-".concat(this.$route.params.id)),a=144,s=i.getBoundingClientRect().top,r=s+window.pageYOffset-a;window.scrollTo({top:r})}},getComponent:function(t){var e=t+"Stream";return/MCRadioSocialStream|MCRadioEventStream|MCRadioPhotoGalleryStream|MCRadioSurveyStream/.test(e)?e:null},clearContent:function(){this.contents=null,this.page=0},submitFilter:function(t,e){this.filtering=!0,this.$store.setFilterFeedTypes(t),this.$store.setFilterFeedStations(e),this.filtering&&this.getAllContents("clear")},filterAgain:function(){var t=this.$refs.filter;t&&t.toggleDropdown()},bottomVisible:function(){var t=window.pageYOffset,e=document.documentElement.clientHeight,n=document.documentElement.scrollHeight;return Math.floor(n-e-t)<500},scrollHandler:function(){var t=this;this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((function(){t.bottom=t.bottomVisible()}),50)},detailLink:function(t){var e=this.shared.currentRequest,n=e.host.match(/[^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$/),i="".concat(e.scheme,"://").concat(n?n[0]:"melisten.sg"),a=this.getLink(t);
1return"".concat(i).concat(a)},loadOBR:function(){var t,e=this,n=!1!==(null===(t=this.shared.setting)||void 0===t?void 0:t.outbrain);this.outbrain=n,n&&(document.getElementById("obr")||this.load("https://widgets.outbrain.com/outbrain.js","obr"),setTimeout((function(){e.waitObject(window,"OBR").then((function(){OBR.extern.researchWidget()}))}),1e3))}},mounted:function(){var t=this;C.a.$on("fireDtmContentFromPhoto",this.handleSendOnClick),C.a.$on("submit-filter",(function(e){var n=e.typeSelected,i=e.stationSelected,a=e.filtered;t.$store.setFilteredFeed(a),t.submitFilter(n,i);var s=t.$refs.filter;s&&s.close(s)})),Object(b.c)("scroll",this.scrollHandler),this.$nextTick((function(){return t.getAllContents()})),window.addEventListener("online",this.getAllContents)},updated:function(){this.triggerLazyLoad()},beforeDestroy:function(){C.a.$off("fireDtmContentFromPhoto",this.handleSendOnClick),Object(b.c)("scroll",this.scrollHandler,!1),this._isFetchingFeatured=!1,this._isFetching=!1,this.bottom=!1,this.disable=!1,window.removeEventListener("online",this.getAllContents)}},T=(n(903),n(3)),F=Object(T.a)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"happenings-wrapper"},[n("DropdownFilterFeed",{directives:[{name:"show",rawName:"v-show",value:!t.subPage,expression:"!subPage"}],ref:"filter",attrs:{filtered:t.shared.filteredFeed}}),t._v(" "),t.featuredShowed&&!t.subPage?n("FeaturedContent",{attrs:{contents:t.contentsFeatured,title:"Featured Posts",happenings:!0}}):t._e(),t._v(" "),t.contentsFeatured&&t.subPage?t._l(t.contentsFeatured,(function(e,i){return n("div",{key:"featured-"+i,staticClass:"happenings-content",attrs:{id:"content-"+e.id}},[n(t.getComponent(e.type),{tag:"Component",attrs:{content:e,feed:t.subPage,index:i}})],1)})):t._e(),t._v(" "),t.contents&&t.contents.length?t._l(t.contents,(function(e,i){return n("div",{key:i,staticClass:"happenings-content",attrs:{id:"content-"+e.id}},[n(t.getComponent(e.type),{tag:"Component",attrs:{content:e,feed:t.subPage,noLazy:0===i,index:i}}),t._v(" "),0==i&&t.md?n("AdUnit",{attrs:{adunit5:"imu1",sizes:[[300,250],[300,600]],adcls:"w-100"}}):t._e(),t._v(" "),i%3==2&&t.outbrain?n("div",{staticClass:"OUTBRAIN px-4",attrs:{"data-src":t.detailLink(e),"data-widget-id":"AR_1","data-ob-template":"MeRadio"}}):t._e(),t._v(" "),!t.disable&&t.bottom&&t.contents.length-1===i?n("div",{staticClass:"py-5 position-relative text-center"},[n("SpinnerDash")],1):t._e()],1)})):t._e(),t._v(" "),t.handleNoResults?n("div",{staticClass:"no-happenings-content"},[n("h3",{staticClass:"font-weight-bold"},[t._v("No Results Found")]),t._v(" "),n("h4",{staticClass:"font-weight-light"},[t._v("Please try another filter.")]),t._v(" "),n("button",{attrs:{id:"filterAgain"},on:{click:t.filterAgain}},[t._v("FILTER AGAIN")])]):t._e()],2)}),[],!1,null,"21d00ac2",null);e.a=F.exports},1127:function(t,e,n){"use strict";var i=n(968);n.n(i).a},1128:function(t,e,n){"use strict";var i=n(969);n.n(i).a},1129:function(t,e,n){"use strict";var i=n(970);n.n(i).a},1202:function(t,e,n){"use strict";n.r(e);n(16),n(72),n(91),n(59),n(78),n(17),n(34),n(38),n(58);var i=n(77),a=n(301),s=n(302),r=n(303),o=n(306),c=n(792),d=n(1011),l=n(2),u=n.n(l),h=(n(52),n(4)),f=n.n(h),p={name:"ListTraffic",props:{traffic:{default:{}}}},g=(n(1127),n(3)),m=Object(g.a)(p,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"media"},[e("div",{staticClass:"media-body"},[e("div",{staticClass:"media-content"},[e("div",{staticClass:"d-flex justify-content-between mb-1"},[e("h6",{staticClass:"traffic-smalltitle mb-0"},[this._v(this._s(this.traffic.Type||""))])]),this._v(" "),e("h5",{staticClass:"traffic-title mb-0"},[this._v(this._s(this.traffic.Message||""))])])])])}),[],!1,null,"bdaf21f6",null).exports,v=n(7),b={name:"FeaturedTraffic",components:{ListTraffic:m},data:function(){return{trafficData:null,isFetching:!1}},methods:{getTrafficData:function(){var t=this;return f()(u.a.mark((function e(){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.onLine&&!t.isFetching){e.next=2;break}return e.abrupt("return");case 2:return v.a&&v.a.start(),t.isFetching=!0,e.prev=4,e.next=7,t.fetch("/api/sso/traffic");case 7:n=e.sent,t.trafficData=n.value||[],e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log("error get traffic",e.t0);case 14:return e.prev=14,t.isFetching=!1,v.a&&v.a.finish(),e.finish(14);case 18:case"end":return e.stop()}}),e,null,[[4,11,14,18]])})))()}},mounted:function(){this.getTrafficData(),window.addEventListener("online",this.getTrafficData)},beforeDestroy:function(){window.removeEventListener("online",this.getTrafficData)}},w=(n(1128),Object(g.a)(b,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"happenings-wrapper"},[e("div",{staticClass:"happenings-traffic"},[this._l(this.trafficData,(function(t,n){return[e("ListTraffic",{key:n,attrs:{traffic:t}})]}))],2)])}
1),[],!1,null,"370a0349",null).exports),C=n(0),_=n(119),y=n(798),S=(n(66),n(1)),T=n(9),F={name:"Happenings",components:{AdUnit:i.a,Sidebar:a.a,SidebarRight:s.a,Bottombar:r.a,HeaderPage:o.a,Breadcrumb:c.a,Feed:d.a,TrafficUpdates:w},mixins:[_.a,y.a],asyncData:function(t){var e=t.store,n=(t.route,t.request);return e.setLiveRadio(!1),e.setCurrentRequest(n),Object(S.n)(e)},mcDataLayer:function(){var t="undefined"!=typeof window&&this.isMobileTablet()?"mobileweb":"online",e=this.shared.currentRequest?this.shared.currentRequest:"undefined"!=typeof window?window.currentRequest:null,n=(e&&e.host||T.a.HOST,T.a.TITLE),i=n.toLowerCase(),a="".concat(n," Happenings");return{pagename:"sg:".concat(i,":").concat(t,":feed"),channel:"sg:".concat(i,":").concat(t),language:"en",contentid:"NA",contentname:a,contentpublishdate:"NA",contentlength:"NA",loggedinstatus:"false",contenttitle:a,doctype:"NA"}},meta:function(){this.shared.currentRequest&&"undefined"!=typeof window&&(window.currentRequest=this.shared.currentRequest);var t=this.shared.currentRequest?this.shared.currentRequest:"undefined"!=typeof window?window.currentRequest:null,e=t&&t.scheme||T.a.PROTO,n=t&&t.host||T.a.HOST,i=JSON.stringify(this.generateMcDataLayer()),a=T.a.TITLE,s="".concat(a," - Listen to Mediacorp's 12 Radio Stations, Music & Podcasts"),r="Listen to Singapore's best radio stations online with melisten. Official streams from Mediacorp's 11 radio stations. Free Radio, Music & Podcasts",o="".concat(e,"://").concat(n).concat(this.$route.fullPath),c=o.replace(/\?.*/,""),d={title:s,description:r,"og:title":s,"og:type":"website","og:description":r,"og:image":"".concat(e,"://").concat(n,"/static/melisten-image-2023.jpg"),"og:url":o,"twitter:description":r,canonical:c,mcdatalayer:"<script>window.mcDataLayer=".concat(i,";<\/script>")};return d},data:function(){return{tabs:[{id:"feed",name:"FEED"},{id:"traffic-updates",name:"TRAFFIC UPDATES"}],currentTab:"feed",trafficTab:!1}},watch:{$route:{immediate:!0,handler:function(t,e){var n,i=t.params.subPage||"feed",a=(null==e||null===(n=e.params)||void 0===n?void 0:n.subPage)||"feed";this.$route.meta.title="traffic-updates"===i?"Traffic Updates":"Happenings",this.$route.meta.fromtab="traffic-updates"===a?"Traffic Updates":"Happenings",this.$route.meta.pagetype=t.params.subPage?"Detail Page":"Section Page",this.currentTab=i}}},computed:{getBreadcrumb:function(){return this.individualStation?[{title:"Happenings",link:"/happenings"},{title:this.individualStation||"Unknown Station",link:""}]:[]},individualStation:function(){var t=this.$route.params&&this.$route.params.subPage;if("feed"!==t&&"traffic-updates"!==t){var e=(this.shared.stations||[]).find((function(e){return e.link.split("/").pop()===t}));return e?e.title:t}return!1}},methods:{changeTab:function(t){this.currentTab=t,"traffic-updates"===t?this.$router.push("/happenings/".concat(t)):"/happenings"!==this.$route.path&&this.$router.push("/happenings")},explicitFire:function(t){var e=this.generateMcDataLayer();e&&(e.pagename=e.pagename.split(":").slice(0,4).join(":")+":page".concat(t),window.mcDataLayer=e,this.fireDtm())},fireContentPv:function(t){Object.assign({},window.mcDataLayer);window.mcDataLayer=Object.assign({},t),this.fireDtm()}},beforeMount:function(){this.$nextTick(this.getSettingEvent)},mounted:function(){var t,e=this;C.a.$on("fireDtm",this.explicitFire),C.a.$on("fireDtmContent",this.fireContentPv),this.trafficTab=(null===(t=this.shared.setting)||void 0===t?void 0:t.trafficWatch)||!1,this.$nextTick((function(){var t=e.$route.params;t.subPage&&"traffic-updates"===t.subPage?e.currentTab="traffic-updates":t.subPage||(e.currentTab="feed"),e.authSessionSharing(),e.loadOneTap()}))},beforeRouteLeave:function(t,e,n){void 0!==window._pvobserver&&setTimeout((function(){window._pvobserver.disconnect(),delete window._pvobserver}),200),n()},beforeDestroy:function(){C.a.$off("fireDtm",this.explicitFire),C.a.$off("fireDtmContent",this.fireContentPv),this.unloadOneTap()}},R=(n(1129),Object(g.a)(F,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row",attrs:{id:"body-row"}},[n("Sidebar"),t._v(" "),n("Bottombar",{staticClass:"hidden-md-down"}),t._v(" "),n("div",{staticClass:"container happenings"},[n("div",{staticClass:"container-fluid px-0"},[t.trafficTab?n("HeaderPage",{attrs:{page:"happenings",title:"Happenings",tabs:t.tabs,currentTab:t.currentTab,trafficTab:t.trafficTab,subPage:t.individualStation},on:{"change-tab":t.changeTab}}):n("HeaderPage",{attrs:{page:"happenings",title:"Happenings",subPage:t.individualStation}}),t._v(" "),t.individualStation?n("Breadcrumb",{attrs:{contents:t.getBreadcrumb}}):t._e(),t._v(" "),n("div",{staticClass:"happenings-page bottom-sp
1ace"},["traffic-updates"===t.currentTab?n("TrafficUpdates"):n("Feed",{class:{individual:!!t.individualStation},attrs:{subPage:t.individualStation}})],1)],1)]),t._v(" "),n("SidebarRight")],1)}),[],!1,null,"d0183846",null));e.default=R.exports},793:function(t,e,n){"use strict";var i={name:"SpinnerDash"},a=n(3),s=Object(a.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{"xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.0",width:"24px",height:"24px",viewBox:"0 0 128 128","xml:space":"preserve"}},[n("g",[n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#0076cc","fill-opacity":"1"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#cce4f5","fill-opacity":"0.2",transform:"rotate(30 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#cce4f5","fill-opacity":"0.2",transform:"rotate(60 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#cce4f5","fill-opacity":"0.2",transform:"rotate(90 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#cce4f5","fill-opacity":"0.2",transform:"rotate(120 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#b2d6f0","fill-opacity":"0.3",transform:"rotate(150 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#99c8eb","fill-opacity":"0.4",transform:"rotate(180 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#7fbae5","fill-opacity":"0.5",transform:"rotate(210 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#66ade0","fill-opacity":"0.6",transform:"rotate(240 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#4c9fdb","fill-opacity":"0.7",transform:"rotate(270 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#3391d6","fill-opacity":"0.8",transform:"rotate(300 64 64)"}}),t._v(" "),n("path",{attrs:{d:"M59.6 0h8v40h-8V0z",fill:"#1983d1","fill-opacity":"0.9",transform:"rotate(330 64 64)"}}),t._v(" "),n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 64 64;30 64 64;60 64 64;90 64 64;120 64 64;150 64 64;180 64 64;210 64 64;240 64 64;270 64 64;300 64 64;330 64 64",calcMode:"discrete",dur:"1080ms",repeatCount:"indefinite"}})],1)])}),[],!1,null,null,null);e.a=s.exports},798:function(t,e,n){"use strict";e.a={data:function(){return{adSizes:[[728,90],[320,50]],adStyle:""}},methods:{handleWindowResize:function(t){var e=this;"undefined"!=typeof window&&(window._adsResizeTimer&&clearTimeout(window._adsResizeTimer),window._adsResizeTimer=setTimeout((function(){var t=document.querySelector(".main")||document.querySelector(".happenings-wrapper");if(t){var n=t.offsetWidth;e.adSizes=n>970?[[970,250],[970,90],[728,90]]:n<=970&&n>=728?[[728,90]]:[[320,50]]}else e.adSizes=[[970,250],[970,90],[728,90]];window._adsResizeTimer=0}),100))}}}},800:function(t,e,n){},809:function(t,e,n){"use strict";n(16),n(72),n(47),n(17),n(34),n(38),n(58),n(50);var i=n(0),a=n(9);e.a={methods:{sendPageview:function(t){if(void 0!==this.contents){var e=(this.contents||[]).find((function(e){return e.id==t}))||(this.contentsFeatured||[]).find((function(e){return e.id==t}));if(e){var n=e.stations&&e.stations.length>0&&e.stations[0].link.split("/").pop(),s=this.isMobileTablet()?"mobileweb":"online",r=this.shared.currentRequest?this.shared.currentRequest:"undefined"!=typeof window?window.currentRequest:null,o=(r&&r.host,a.a.TITLE.toLowerCase()),c=e.publicationDate?":"+e.publicationDate.substring(0,10).replace(/-/g,""):e.modificationDate?":"+e.modificationDate.substring(0,10).replace(/-/g,""):"",d=(this.shared.currentRadio?this.shared.currentRadio.link.split("/").pop():n||"home")+"".concat(c,":").concat(e.id,"_").concat(e.title),l="MCRadioPhotoGallery"==e.type?"Photo":"Article",u={pagename:"sg:".concat(o,":").concat(s,":").concat(d),channel:"sg:".concat(o,":").concat(s),language:"en",contentid:e.id,contentname:e.title,contentpublishdate:e.publicationDate?e.publicationDate.substring(0,10):e.modificationDate?e.modificationDate.substring(0,10):"NA",contentlength:e.contentLength||"NA",loggedinstatus:"false",contenttitle:e.title,doctype:l,posttype:!0};i.a.$emit("fireDtmContent",u)}}},handleSendOnClick:function(t){if(t){var e=document.querySelector('[data-id="'.concat(t,'"]'));e.classList.contains("tracking")||e.classList.contains("tracked")||(e.classList.add("tracked"),this.sendPageview(t))}},onIntersection:function(t,e){var n=this;t.forEach((function(t){var i=t.target,a=i.getAttribute("data-id");t.intersectionRatio>=.4&&!i.classList.contains("tracked")?(i.classList.add("tracking"),setTimeout((function(){i.classList.contains("tracking")&&(i.classList.remove("tracking"),i.classList.add("tracked"),e.unobserve(i),n.sendPageview(a))}),2e3)):i.classList.contains("tracking")&&i.classList.remove("tracking")}))},intersectionObserver:function(){return void 0===window._pvobserver&&(window._pvobserver=new window.IntersectionObserver(this.onIntersection,{rootMargin:"0px",threshold:[0,.25,.5]})),window._pvobserver}},updated:function(){var t=this;this._updateTimer&&clearTimeout(this._updateTimer),this._updateTimer=setTimeout((function(){var e=t.intersectionObserver();document.querySelectorAll(".news-item.untracked").forEach((function(t){t.classList.remove("untracked"),e.observe(t)})),t._updateTimer=0}),100)}}},822:function(t,e,n){},840:function(t,e,n){"use strict";var i=n(800);n.n(i).a},847:function(t,e,n){"use strict";n(135);var i=n(835),a=n(836),s=n(833),r=n(837),o=n(809),c=n(0),d=null,l=null,u={name:"FeaturedContent",components:{MCRadioSocialStream
1:i.a,MCRadioEventStream:a.a,MCRadioPhotoGalleryStream:s.a,MCRadioSurveyStream:r.a},props:{contents:{default:[]},title:{default:null},happenings:{default:!1}},mixins:[o.a],data:function(){return{currentIndex:this.getIndex()}},methods:{getIndex:function(){var t=this.$route.params;return t.id?this.contents.findIndex((function(e){return e.id===t.id}))+1:t.index||1},getComponent:function(t){var e="".concat(t,"Stream");return/MCRadioSocialStream|MCRadioEventStream|MCRadioPhotoGalleryStream|MCRadioSurveyStream/.test(e)?e:null},slideLeft:function(){this.currentIndex<=1?this.currentIndex=this.contents.length:this.currentIndex--},slideRight:function(){this.currentIndex>=this.contents.length?this.currentIndex=1:this.currentIndex++},swipeStart:function(t){d=t.changedTouches[0].clientX,l=t.changedTouches[0].clientY},swipeEnd:function(t){if(d&&l){var e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,i=d-e,a=l-n;Math.abs(i)>Math.abs(a)&&(i>0?this.slideRight():this.slideLeft(),d=null,l=null)}}},mounted:function(){c.a.$on("fireDtmContentFromPhoto",this.handleSendOnClick)},beforeDestroy:function(){c.a.$off("fireDtmContentFromPhoto",this.handleSendOnClick)}},h=(n(840),n(3)),f=Object(h.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"featured-wrapper"},[t.title?n("h6",{staticClass:"featured-title"},[t._v(t._s(t.title))]):t._e(),t._v(" "),t.contents.length>1?n("div",{staticClass:"featured-indicator"},[t._l(t.contents.length,(function(e){return[n("button",{key:e,class:{"is-active":t.currentIndex===e},attrs:{"aria-label":"Switch Bar"},on:{click:function(n){t.currentIndex=e}}},[n("span")])]}))],2):t._e(),t._v(" "),n("transition",{attrs:{name:"fade-fast"}},[t._l(t.contents,(function(e,i){return[t.currentIndex===i+1?n("div",{key:i,staticClass:"featured-content",on:{touchstart:t.swipeStart,touchend:t.swipeEnd}},[n(t.getComponent(e.type),{tag:"Component",attrs:{content:e,index:i,featured:!0,noLazy:!0}}),t._v(" "),t.mdRes?t._e():[n("button",{ref:"railArrowPrev",refInFor:!0,staticClass:"rail-arrow rail-arrow-prev",attrs:{title:"Prev",disabled:0===i},on:{click:t.slideLeft}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"13",viewBox:"0 0 8 13","svg-inline":"",role:"presentation",focusable:"false",tabindex:"-1"}},[n("path",{attrs:{fill:"#002661",d:"M.53 6.353c0-.21.08-.422.24-.582L5.83.712a.824.824 0 111.165 1.165L2.518 6.353l4.476 4.476a.824.824 0 01-1.165 1.165L.77 6.935a.821.821 0 01-.24-.582z"}})])]),t._v(" "),n("button",{ref:"railArrowNext",refInFor:!0,staticClass:"rail-arrow rail-arrow-next",attrs:{title:"Next",disabled:t.contents.length-1===i},on:{click:t.slideRight}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"13",viewBox:"0 0 8 13","svg-inline":"",role:"presentation",focusable:"false",tabindex:"-1"}},[n("path",{attrs:{fill:"#002661",d:"M7.235 6.353a.82.82 0 00-.241-.582L1.936.712A.824.824 0 10.77 1.877l4.476 4.476-4.475 4.476a.824.824 0 001.165 1.165l5.058-5.059a.821.821 0 00.241-.582z"}})])])]],2):t._e()]}))],2)],1)}),[],!1,null,"22620f2b",null);e.a=f.exports},903:function(t,e,n){"use strict";var i=n(822);n.n(i).a},968:function(t,e,n){},969:function(t,e,n){},970:function(t,e,n){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.