PageSourceSearch

https://app.healthplexus.net/js/ChannelPage-vue.eef28e1c.js

js healthplexus.net collected 2026-10-02 06:21:48 UTC 25,230 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunklumenii"]=self["webpackChunklumenii"]||[]).push([[226],{86920:function(t,e,s){s.r(e),s.d(e,{default:function(){return pt}});var n=s(21503),i=s(41828),a=s(36984),r=function(){var t=this,e=t._self._c;return e(i.A,{directives:[{def:a.A,name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],ref:"page",staticClass:"c-channel-page",attrs:{color:"background"}},[t.isChannelLoading?e("CircularProgress",{attrs:{message:t.$t("message.fetchingChannel")}}):[t.isChannelFound?[e("ChannelHeader",{attrs:{channel:t.channel,favourite:t.isFavourite,subscribed:t.isSubscribed},on:{comments:function(e){t.showComments=!t.showComments},subscribe:function(e){return t.subscribe()},unsubscribe:function(e){return t.unsubscribe()},"toggle:favourite":function(e){return t.toggleFavourite()},close:function(e){return t.onClose()}}}),t.showAds?e("AdSpot",{staticClass:"c-leaderboard",attrs:{carousel:"",optimize:"",max:3,zone:"leaderboard"},model:{value:t.showAds,callback:function(e){t.showAds=e},expression:"showAds"}}):t._e(),t.isContentLoading?e("div",{staticClass:"d-flex justify-center align-center mt-4"},[e(n.A,{attrs:{color:"primary",indeterminate:"",size:80,width:6}})],1):e("SectionPanels",{attrs:{depth:5,expand:!0,top:0}},[t.showFeaturedItems?e("CardPanel",{attrs:{items:t.featuredItems,dense:t.isViewportMedium,loading:!1,filters:t.panelFilters,layouts:t.featuredLayouts,"min-card-height":550,sorts:t.panelSortOptions,title:t.featuredItemsTitle,"tree-attribute":t.treeAttribute},scopedSlots:t._u([{key:"card",fn:function(s){return["content"===s.item.cardType?e("ContentCard",{attrs:{item:s.item},on:{"view:item":function(e){return t.viewItem(s.item)},"view:parent":function(e){return t.viewItem(s.item.parent)},share:function(e){return t.shareItem(s.item)}}}):t._e(),"post"===s.item.cardType?e("PostCard",{attrs:{post:s.item},on:{"view:post":function(e){return t.viewPost(s.item)},share:function(e){return t.sharePost(s.item)}}}):t._e()]}}],null,!1,997610763)}):t._e(),t._l(t.channel.postSeries,function(s){return e("PostPanel",{key:s.id,staticClass:"c-panel",attrs:{dense:t.isViewportMedium,layouts:t.postLayouts,loading:t.arePostsLoading,posts:t.postsBySeries[s.id]||[],title:s.title},on:{share:function(e){return t.sharePost(e)},"view:post":function(e){return t.viewPost(e)}}})}),t.showPodcasts?e("PostPanel",{staticClass:"c-panel",attrs:{dense:t.isViewportMedium,layouts:t.postLayouts,loading:t.arePostsLoading,posts:t.podcasts,title:t.$t("channel.podcasts")},on:{share:function(e){return t.sharePost(e)},"view:post":function(e){return t.viewPost(e)}}}):t._e(),t.showBlogPosts?e("PostPanel",{staticClass:"c-panel",attrs:{dense:t.isViewportMedium,layouts:t.postLayouts,loading:t.arePostsLoading,posts:t.blogPosts,title:t.$t("channel.blogPosts")},on:{share:function(e){return t.sharePost(e)},"view:post":function(e){return t.viewPost(e)}}}):t._e(),t._l(t.channel.contentSeries,function(s){return e("ContentPanel",{key:s.id,staticClass:"c-panel",attrs:{dense:t.isViewportMedium,items:t.itemsBySeries[s.id]||[],loading:t.areItemsLoading,title:s.title,"tree-attribute":t.treeAttribute},on:{share:function(e){return t.shareItem(e)},"view:item":function(e){return t.viewItem(e)},"view:parent":function(e){return t.viewParent(e)}}})}),t.showItemsByAuthor?e("ContentPanel",{staticClass:"c-panel",attrs:{dense:t.isViewportMedium,items:t.itemsByAuthor,loading:t.areItemsLoading,title:t.$t("channel.authorItems"),"tree-attribute":t.treeAttribute},on:{share:function(e){return t.shareItem(e)},"view:item":function(e){return t.viewItem(e)},"view:parent":function(e){return t.viewParent(e)}}}):t._e(),t.showItemsBySponsor?e("ContentPanel",{staticClass:"c-panel",attrs:{dense:t.isViewportMedium,items:t.itemsBySponsor,loading:t.areItemsLoading,title:t.sponsoredCollectionTitle,"tree-attribute":t.treeAttribute},on:{share:function(e){return t.shareItem(e)},"view:item":function(e){return t.viewItem(e)},"view:parent":function(e){return t.viewParent(e)}}}):t._e(),t._l(t.channel.collections,function(s){return e("ContentPanel",{key:s.id,staticClass:"c-panel",attrs:{dense:t.isViewportMedium,items:t.itemsByCollection[s.id]||[],loading:t.areCollectionItemsLoading,title:s.title[t.locale]||s.title["en"],"tree-attribute":t.treeAttribute},on:{share:function(e){return t.shareItem(e)},"view:item":function(e){return t.viewItem(e)},"view:parent":function(e){return t.viewParent(e)}}})}),t.showCuratedItems?e("ContentPanel",{staticClass:"c-panel",attrs:{dense:t.isViewportMedium,items:t.curatedItems,loading:t.areCuratedItemsLoading,title:t.curatedCollectionTitle,"tree-attribute":t.treeAttribute},on:{share:function(e){return t.shareItem(e)},"view:item":function(e){return t.viewItem(e)},"view:parent":function(e){return t.viewParent(e)}}}):t._e(),e("ChannelPanel",{directives:[{name:"show",rawName:"v-show",value:t.showRelatedChannels,expression:"showRelatedChannels"}],staticClass:"c-panel",attrs:{dense:t.isViewportMedium,channels:t.relatedChannels,draggable:"",layouts:["grid","carousel"],loading:t.areChannelsLoading,title:t.$t("channel.relatedChannels")},on:{share:function(e){return t.shareChannel(e)},"view:channel":function(e){return t.viewChannel(e)}}})],2),e("CommentDrawer",{attrs:{"data-title":t.$t("tour.comments.drawer.title"),"data-intro":t.$t("tour.comments.drawer.intro"),comments:t.comments,"target-id":t.channel.i
1d},model:{value:t.showComments,callback:function(e){t.showComments=e},expression:"showComments"}})]:e("ErrorMessage",{attrs:{title:t.$t("error.ChannelNotFoundError.title"),message:t.$t("error.ChannelNotFoundError.message")}})],t.showPostModal?e("PostModal",{attrs:{post:t.activePost},model:{value:t.showPostModal,callback:function(e){t.showPostModal=e},expression:"showPostModal"}}):t._e(),t.showContentModal?e("ContentModal",{attrs:{item:t.activeItem},model:{value:t.showContentModal,callback:function(e){t.showContentModal=e},expression:"showContentModal"}}):t._e(),t.showSharingModal?e("ShareModal",{attrs:{entity:t.sharedEntity},model:{value:t.showSharingModal,callback:function(e){t.showSharingModal=e},expression:"showSharingModal"}}):t._e()],2)},o=[],l=(s(74423),s(44114),s(18111),s(22489),s(61701),s(18237),s(95353)),h=s(27856),c=s(1032),u=s(87419),d=s(3378),m=s(65872),p=s(34512),g=s(80146),f=function(){var t=this,e=t._self._c;return e(u.A,{staticClass:"d-flex flex-column",attrs:{flat:"",tile:""}},[e(p.A,{staticClass:"white--text",style:{backgroundColor:t.bannerBackgroundColour},attrs:{"aspect-ratio":t.bannerRatio,contain:t.bannerContain,gradient:t.bannerGradient,src:t.bannerImage}},[e("div",{staticClass:"c-overlay d-flex pa-3"},[e("div",{staticClass:"c-titles"},[t.showTitle?e("div",{staticClass:"c-title mb-2"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.showAbstract?e("div",{staticClass:"c-abstract"},[t._v(" "+t._s(t.abstract)+" ")]):t._e()]),e(g.A),e(c.A,{staticClass:"c-close-button",attrs:{color:"rgba(0, 0, 0, 0.25)","data-title":t.$t("tour.channelPage.exit.title"),"data-intro":t.$t("tour.channelPage.exit.intro"),fab:"",small:""},on:{click:function(e){return t.$emit("close")}}},[e(m.A,[t._v(" mdi-close ")])],1)],1)]),e("div",{staticClass:"c-channel-details pa-2"},[t.showOverview?e(d.OQ,{staticClass:"d-flex justify-start align-center flex-wrap pa-0"},[t.hasAuthor?e("PersonBanner",{staticClass:"c-author-header ml-2",attrs:{person:t.author}}):t._e(),t.hasSponsor?e("CompanyAvatar",{staticClass:"c-sponsor-header ml-2",attrs:{company:t.sponsor}}):t._e(),t.hasOverview?e("ClampedPortableText",{staticClass:"c-overview px-4",attrs:{blocks:t.overview}}):t._e()],1):t._e(),e(d.SL,{staticClass:"my-2 px-4"},[e("ChannelActions",{attrs:{channel:t.channel,favourite:t.favourite,subscribed:t.subscribed},on:{close:function(e){return t.$emit("close")},comments:function(e){return t.$emit("comments")},subscribe:function(e){return t.$emit("subscribe")},unsubscribe:function(e){return t.$emit("unsubscribe")},"toggle:favourite":function(e){return t.$emit("toggle:favourite")}}})],1)],1),t.hasHosts?e("div",{staticClass:"d-flex flex-wrap justify-start align-center"},[e("SectionPanels",{attrs:{depth:1,expand:!0,initial:[0],top:0}},[e("SectionPanel",{attrs:{count:t.hosts.length,title:t.channel.hostsSectionTitle||t.$t("channel.hosts")}},[e(u.A,{staticClass:"c-hosts d-flex flex-wrap justify-start align-center px-2"},t._l(t.hosts,function(t){return e("PersonBanner",{key:t.id,staticClass:"c-author-header c-host ml-2 mt-2",attrs:{person:t,headline:""}})}),1)],1)],1)],1):t._e()],1)},C=[],b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-channel-actions d-flex justify-left align-center"},[t.subscribed?e(c.A,{attrs:{color:"success",rounded:""},on:{click:function(e){return t.$emit("unsubscribe")}}},[t._v(" "+t._s(t.$t("channel.subscribed"))+" "),e(m.A,{attrs:{right:""}},[t._v(" mdi-bell-ring ")])],1):e("ModalSingleton",{attrs:{name:"channelSubscribe",title:t.$t("feature.channelSubscriptions.title"),text:t.$t("feature.channelSubscriptions.description")}},[e(c.A,{attrs:{color:"primary",rounded:""},on:{click:function(e){return t.$emit("subscribe")}}},[t._v(" "+t._s(t.$t("channel.subscribe"))+" "),e(m.A,{attrs:{right:""}},[t._v(" mdi-bell-off ")])],1)],1),e(c.A,{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("tooltip.channelHeader.favourite"),expression:"$t('tooltip.channelHeader.favourite')"}],staticClass:"ml-2",attrs:{"data-title":t.$t("tour.channelPage.favourite.title"),"data-intro":t.$t("tour.channelPage.favourite.intro"),icon:"",large:""},on:{click:function(e){return t.$emit("toggle:favourite")}}},[e(m.A,{staticClass:"red--text"},[t._v(" "+t._s(t.favourite?"mdi-heart":"mdi-heart-outline")+" ")])],1),e(c.A,{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("tooltip.channelHeader.comments"),expression:"$t('tooltip.channelHeader.comments')"}],attrs:{color:"accent","data-title":t.$t("tour.comments.open.title"),"data-intro":t.$t("tour.comments.open.intro"),"data-click-forward":"",icon:"",large:""},on:{click:function(e){return t.$emit("comments")}}},[e(m.A,[t._v(" mdi-comment-outline ")])],1)],1)},w=[],v=function(){var t=this,e=t._self._c;return e("VDropdown",{attrs:{"auto-hide":!1,delay:500,shown:t.isOpen,placement:t.placement,theme:"dialog",triggers:[]},scopedSlots:t._u([{key:"popper",fn:function(){return[e(u.A,{staticClass:"v-application",attrs:{elevation:"2","max-width":"350"}},[e(d.ri,[e(m.A,{staticClass:"mr-2",attrs:{color:"success",large:""}},[t._v(" mdi-alert-decagram ")]),t._v(" "+t._s(t.title)+" ")],1),e(d.OQ,{staticClass:"text-body-1 py-0"},[t._v(t._s(t.text))]),e(d.SL,{staticClass:"d-flex align-center justify-center py-4"},[e(c.A,{attrs:{color:"primary",outlined:""},on:{click:t.onClose}},[t._v(" "+t._s(t.$t("feature.hide"))+" ")])],1)],1)]},proxy:!0}])},[t._t("default",function(){return[t._v("Missing")]})],2)},y=[],I=s(68315),A={name:"ModalSingleton",components:{},props:{name:{type:String,required:!0},title:{type:String,required:!1,default:""},text:{type:String,required:!1,default:""},placement:{type:String,required:!1,default:"auto"}},data:function(){return{isOpen:!1,itemName:`${I.ai}:f_${this.name}`}},created:function(){const t=localStorage.getItem(this.itemName);this.isOpen=!t},methods:{onClose(){localStorage.setItem(this.itemName,!0),this.isOpen=!1}}},P=A,S=s(81656),_=(0,S.A)(P,v,y,!1,null,"9b65a878",null),x=_.exports,$={name:"ChannelActions",components:{ModalSingleton:x},props:{channel:{type:Object,required:!0},favourite:{type:Boolean,required:!1,default:!1},subscribed:{type:Boolean,required:!1,default:!1}},data:function(){return{}},computed:{}},M=$,L=(0,S.A)(M,b,w,!1,null,"0c39e502",null),B=L.exports,k=s(11283),O=s(20444),T=s(76068),E=s(47642),V=s(63135),F=s(10653),j=s(46896),N={name:"ChannelHeader",components:{ChannelActions:B,ClampedPortableText:k.A,CompanyAvatar:O.A,PersonBanner:T.A,SectionPanels:E.A,SectionPanel:V.A},mixins:[F.A],props:{channel:{type:Object,required:!0},favourite:{type:Boolean,required:!1,default:!1},subscribed:{type:Boolean,required:!1,default:!1}},data:function(){return{}},computed:{isDark(){return this.$store.state.userStore.isDark},orientation(){return this.mobileMixin_orientation},isViewportSmall(){return this.mobileMixin_isViewportSmall},isViewportMedium(){return"md"===this.$vuetify.breakpoint.name},abstract(){return this.channel.abstract||""},author(){return this.channel.author},hosts(){return this.channel.hosts||[]},overview(){return this.channel.overview},sponsor(){return this.channel.sponsor},title(){return this.channel.title},hasAbstract(){return this.channel.abstract?.length>0},hasAuthor(){return!!this.channel.author},hasBanner(){return!!this.channel.mainImage?.obj},hasHosts(){return this.channel.hosts?.length>0},hasOverview(){return this.channel.overview?.length>0},hasSponsor(){return!!this.channel.sponsor}
1,showAbstract(){return this.hasAbstract&&this.showTitle&&this.$vuetify.breakpoint.mdAndUp},showOverview(){return!this.channel.hideOverview},showTitle(){return!this.channel.hideTitle},bannerImage(){return this.optimizedImage[0]},bannerBackgroundColour(){return this.channel.mainImage?.backgroundColour||"black"},bannerContain(){const t=this.isViewportSmall&&this.mobilePortraitImage||this.isViewportMedium&&this.mobileLandscapeImage;return!!t||this.asisImage},bannerRatio(){return this.optimizedImage[1]},bannerGradient(){return this.hasBanner&&this.showTitle?this.showAbstract?"to top, rgba(0,0,0,0.5), rgba(0,0,0,0.3)":"to top, rgba(20,20,20,0.1), rgba(20,20,20,0.6)":""},mainImage(){return this.channel.mainImage?.url},mainImageObject(){return this.channel.mainImage?.obj},mainImage4x1(){return(0,j.Q)(this.mainImageObject)?.width(800).height(200).url()},mainImage6x1(){return(0,j.Q)(this.mainImageObject)?.width(1200).height(200).url()},mainImage8x1(){return(0,j.Q)(this.mainImageObject)?.width(1600).height(200).url()},mobilePortraitImage(){return this.channel.mobilePortraitImage?.url},mobileLandscapeImage(){return this.channel.mobileLandscapeImage?.url},asisImage(){return this.channel.mainImage?.asis},optimizedImage(){return this.isViewportSmall?"portrait"===this.orientation?this.mobilePortraitImage?[this.mobilePortraitImage,void 0]:this.asisImage?[this.mainImage,void 0]:[this.mainImage4x1,4]:this.mobileLandscapeImage?[this.mobileLandscapeImage,void 0]:this.asisImage?[this.mainImage,void 0]:[this.mainImage6x1,6]:this.isViewportMedium?"portrait"===this.orientation?this.mobileLandscapeImage?[this.mobileLandscapeImage,void 0]:this.asisImage?[this.mainImage,void 0]:[this.mainImage6x1,6]:this.mobileLandscapeImage?[this.mobileLandscapeImage,void 0]:this.asisImage?[this.mainImage,void 0]:[this.mainImage8x1,8]:this.asisImage?[this.mainImage,void 0]:[this.mainImage8x1,8]}}},D=N,q=(0,S.A)(D,f,C,!1,null,"caa9a74c",null),R=q.exports,z=s(65157),H=s(77259),Q=s(47636),U=s(20960),K=s(11115),W=s(9326),G=s(97313),J=s(44673),X=s(56113),Y=s(96301),Z=s(85524),tt=s(93610),et=s(78046),st=s(55175),nt={computed:{panelMixin_locale(){return this.$store.state.userStore.locale},panelMixin_filters(){return[{field:"topics",label:this.$store.state.contentStore.taxonomyTitles?.topic?.[this.panelMixin_locale]||this.$t("content.topic"),isMultiValued:!0,requiresTranslation:!0}]},panelMixin_sorts(){return[{text:this.$t("post.sortOptions.sortByPublishDateDesc"),value:"sortByPublishDateDesc",default:!0},{text:this.$t("post.sortOptions.sortByPublishDateAsc"),value:"sortByPublishDateAsc"},{text:this.$t("post.sortOptions.sortByTitleAsc"),value:"sortByTitleAsc"},{text:this.$t("post.sortOptions.sortByTitleDesc"),value:"sortByTitleDesc"}]}}},it=s(88772),at=s(15944),rt=s(99372),ot=s(50969),lt=s(1116),ht=s(96763);class ct extends Error{constructor(t){super(t),this.name="ParameterError"}}var ut={name:"ChannelPage",components:{AdSpot:h.A,ChannelHeader:R,CommentDrawer:z.A,ContentCard:H.A,ContentModal:Q.A,ContentPanel:U.A,PostCard:K.A,PostModal:W.A,PostPanel:G.A,ChannelPanel:J.A,CardPanel:X.A,CircularProgress:Y.A,ErrorMessage:Z.A,SectionPanels:E.A,ShareModal:tt.A},mixins:[et.A,st.A,F.A,nt,it.A,at.A,rt.A],beforeRouteEnter:function(t,e,s){s(t=>t.from=e)},beforeRouteUpdate(t,e,s){this.from=e,s()},props:{slug:{type:String,required:!0}},data:function(){return{channel:null,channelSlug:null,isFavourite:!1,isSubscribed:!1,isChannelLoading:!0,isChannelFound:!1,from:null,drawerOpens:0,showComments:!1,sharedEntity:{},showSharingModal:!1,pageWidth:0,depth:0,areAdsLoaded:!1,showAds:!1,activeItem:null,channelItems:[],itemsByCollection:{},areItemsLoading:!0,areCollectionItemsLoading:!0,areCuratedItemsLoading:!0,showContentModal:!1,activePost:null,arePostsLoading:!0,showPostModal:!1,activeChannel:null,areChannelsLoading:!0,showChannelModal:!1}},computed:{...(0,l.L8)("commentStore",["getComments"]),...(0,l.L8)("contentStore",["getItemsByCollection","libraryItems"]),...(0,l.L8)("channelStore",["getChannel"]),isViewportMedium(){return this.mobileMixin_isViewportMedium},locale(){return this.$store.state.userStore.locale},orgName(){return this.$store.state.orgStore.orgName},portalKey(){return this.$store.state.tenantStore.portalKey},isContentLoading(){return this.areItemsLoading||this.arePostsLoading||this.areCuratedItemsLoading||this.areCollectionItemsLoading}
1,comments(){return this.getComments(this.channel.id)},channelContentSeriesIds(){return this.channel?.contentSeries?.map(t=>t.id)||[]},channelPostSeriesIds(){return this.channel?.postSeries?.map(t=>t.id)||[]},treeAttribute(){return this.channel?.treeAttribute||"topic"},panelFilters(){return this.panelMixin_filters},panelSortOptions(){return this.panelMixin_sorts},featuredItems(){return this.channel?.featuredItems||[]},featuredItemsTitle(){return this.channel?.featuredItemsTitle||this.$t("channel.featuredItems")},showFeaturedItems(){return this.featuredItems.length>0},posts(){return this.$store.state.postStore.posts},postsBySeries(){const t=this.posts.filter(t=>this.channelPostSeriesIds.includes(t.series?.id)),e=t.reduce((t,e)=>{const s=e.series?.id;return t[s]||(t[s]=[]),t[s].push(e),t},{});return e},postsByAuthor(){return this.posts.filter(t=>t.author?.slug===this.channel?.author?.slug&&!this.channelPostSeriesIds.includes(t.series?.id))},blogPosts(){return this.postsByAuthor.filter(t=>"blog"===t.genre)},podcasts(){return this.postsByAuthor.filter(t=>"podcast"===t.genre||"vcast"===t.genre)},showBlogPosts(){return!this.channel.isCuratedOnly&&this.blogPosts.length>0},showPodcasts(){return!this.channel.isCuratedOnly&&this.podcasts.length>0},items(){return this.channelItems.filter(t=>t.locale===this.locale)||[]},itemsBySeries(){const t=this.items.filter(t=>this.channelContentSeriesIds.includes(t.series?.id)),e=t.reduce((t,e)=>{const s=e.series?.id;return t[s]||(t[s]=[]),t[s].push(e),t},{});return e},itemsByAuthor(){return this.channel?.author?.slug?this.items.filter(t=>{const e=t.authors?.map(t=>t.slug)||[];return e.includes(this.channel?.author?.slug)&&!this.channelContentSeriesIds.includes(t.series?.id)}):[]},showItemsByAuthor(){return!this.channel.isCuratedOnly&&this.itemsByAuthor.length>0},sponsoredCollectionTitle(){return this.$t("channel.sponsorItems",{sponsor:this.channel?.sponsor?.name})},itemsBySponsor(){return this.channel?.sponsor?this.items.filter(t=>t.sponsor?.name===this.channel?.sponsor?.name):[]},showItemsBySponsor(){return!this.channel.isCuratedOnly&&this.itemsBySponsor.length>0},curatedCollectionTitle(){return this.channel?.curatedCollectionTitle||this.$t("channel.curatedItems",{org:this.orgName})},curatedItems(){return this.channel?.collection?.key?this.getItemsByCollection(this.channel.collection.key).filter(t=>this.channel.isCuratedOnly||!(this.matchesAuthor(t)||this.matchesSponsor(t))).filter(t=>t.locale===this.locale):[]},showCuratedItems(){return this.curatedItems.length>0},relatedChannels(){return this.channel.relatedChannels||[]},showRelatedChannels(){return this.relatedChannels.length>0},featuredLayouts(){return["grid","carousel"]},postLayouts(){return["grid","carousel"]},contentLayouts(){return this.mobileMixin_isReallyMobile?["grid","carousel"]:["grid","tree"]},eventProperties(){return{channel_id:this.channel.id,channel_slug:this.channel.slug,channel_title:this.channel.title}},metaTags(){const t=this.channel?.title||"Lumenii",e=this.channel?.abstract||"",s=this.item?.cardImage?.obj,n=s?this.metaMixin_getThumbnail(s):"";return{loaded:!this.isChannelLoading,docTitle:`${t} | ${this.orgName}`,meta:[{property:"og:title",content:t},{property:"og:image",content:n},{property:"og:description",content:e},{property:"og:site_name",content:this.orgName},{property:"og:type",content:"website"},{property:"og:url",content:window.location.href},{itemprop:"name",content:t},{itemprop:"image",content:n},{itemprop:"description",content:e}]}}},watch:{slug:{immediate:!0,handler:function(t,e){const s=null,n=this.shareMixin_extractId(t);this.fetchAll({id:s,slug:n})}},showComments:{immediate:!1,handler:function(t,e){t&&this.drawerOpens++,this.drawerOpens>1&&this.channel?.id&&(this.drawerOpens=0,this.fetchComments({targetId:this.channel.id,refresh:!0}))}},$route:{immediate:!1,handler:function(t,e){this.from=e}}},methods:{...(0,l.i0)("adStore",["clearAds","fetchAds"]),...(0,l.i0)("channelStore",["fetchChannel","fetchChannels"]),...(0,l.i0)("commentStore",["fetchComments"]),...(0,l.i0)("contentStore",["fetchChannelItems","fetchCollectionItems"]),...(0,l.i0)("postStore",["fetchPosts"]),...(0,l.i0)("userStore",["addToChannels","removeFromChannels"]),matchesAuthor(t){if(this.channel.author?.slug){const e=t.authors?.map(t=>t.slug)||[];return e.includes(this.channel.author.slug)}return!1},matchesSponsor(t){return this.channel.sponsor?.name&&t.sponsor?.name===this.channel.sponsor?.name},async fetchAll(t){let{id:e,slug:s}=t;try{if(this.arePostsLoading=!0,this.areItemsLoading=!0,this.areCollectionItemsLoading=!0,this.areCuratedItemsLoading=!0,this.areChannelsLoading=!1,this.channel=await this.retrieveChannel({id:e,slug:s}),this.channel){if(this.isFavourite=!!(this.$store.state.userStore.channels.indexOf(this.channel?.id)>-1),lt.b.isSubscribed({slug:this.channel.slug,title:this.channel.title,email:this.$auth.getUserEmail()}).then(t=>this.isSubscribed=t),this.showAds=this.channel.showAds,!this.channel.isCuratedOnly){this.fetchPosts().finally(()=>{this.arePostsLoading=!1});const t=s;this.fetchChannelItems({channelSlug:t}).then(t=>this.channelItems=t).finally(()=>this.areItemsLoading=!1)}if(this.fetchCuratedCollectionItems().finally(()=>{this.areCuratedItemsLoading=!1}),this.channel.collections?.length>0){const t=[];for(const e of this.channel.collections){const s=this.fetchCollectionItems({key:e.key}).then(t=>{this.itemsByCollection=Object.assign({},this.itemsByCollection,{[e.id]:t})});t.push(s)}Promise.all(t).finally(()=>{this.areCollectionItemsLoading=!1})}else this.areCollectionItemsLoading=!1;this.channel.showAds&&this.fetchChannelAds(this.channel),this.fetchComments({targetId:this.channel.i
1d,refresh:!0}),this.$emit("loaded")}}catch(n){throw ht.error(`[ChannelPage]: Error fetching for channel '${s}'.`,n),n}},async retrieveChannel(t){let{slug:e}=t;try{if(this.isChannelLoading=!0,this.isChannelFound=!1,e)return this.channel=await this.fetchChannel({slug:e}),this.isChannelFound=!0,ot.E.capture("channel_view",this.eventProperties),this.channel;throw new ct(`Error: Channel '${e}' not found.`)}catch(s){throw ht.error(`[ChannelPage]: Error retrieving channel '${e}'.`,s),s}finally{this.isChannelLoading=!1}},async fetchChannelAds(t){try{if(this.areAdsLoaded=!1,this.clearAds(),t.showAds){const e=t.adWords||[],s=t.topicKeywords||[],n=[this.portalKey],i=t.hasExclusiveAds?[...e,"__exclusive__"]:[...e,...s,...n];await this.fetchAds({locale:this.locale,keywords:i}),this.areAdsLoaded=!0}}catch(e){ht.error("[ChannelPage]: Error loading ads.",e)}},async fetchCuratedCollectionItems(){const t=this.channel?.collection;return t?.key?this.fetchCollectionItems({key:t.key}):[]},async shareItem(t){this.activeItem=t,this.sharedEntity=await this.shareMixin_shareItem(t),this.showSharingModal=!!this.sharedEntity},async sharePost(t){this.activePost=t,this.sharedEntity=await this.shareMixin_sharePost(t),this.showSharingModal=!!this.sharedEntity},async shareChannel(t){this.activeChannel=t,this.sharedEntity=await this.shareMixin_shareChannel(t),this.showSharingModal=!!this.sharedEntity},toggleFavourite(){this.isFavourite=!this.isFavourite,this.isFavourite?(this.addToChannels({id:this.channel.id}),this.$emit("add:favourite")):(this.removeFromChannels({id:this.channel.id}),this.$emit("remove:favourite"))},async subscribe(){this.isSubscribed=await lt.b.subscribe({slug:this.channel.slug,title:this.channel.title,email:this.$auth.getUserEmail()}),ht.debug("Subscribed?",this.isSubscribed)},async unsubscribe(){this.isSubscribed=await lt.b.unsubscribe({slug:this.channel.slug,title:this.channel.title,email:this.$auth.getUserEmail()}),ht.debug("Subscribed?",this.isSubscribed)},viewItem(t){this.viewMixin_viewItem(t)},viewParent(t){this.viewMixin_viewReference(t)},viewPost(t){this.viewMixin_viewPost(t)},viewChannel(t){this.viewMixin_viewChannel(t)},onClose(){ot.E.capture("channel_close",this.eventProperties),this.exitMixin_close({from:this.from,to:null})},onResize(){this.pageWidth=this.$refs.page.$el.clientWidth}}},dt=ut,mt=(0,S.A)(dt,r,o,!1,null,"58da3e8c",null),pt=mt.exports}}]);
2//# sourceMappingURL=ChannelPage-vue.eef28e1c.js.map

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.