PageSourceSearch

https://multiplesclerosis.net/_nuxt/DBslH3zF.js

js multiplesclerosis.net collected 2026-09-24 21:24:34 UTC 3,750 bytes, 1 lines download raw bytes

1import{k as m,_ as p,v as _,r as f,o as r,c as a,e as c,F as n,Z as u,t as o,q as d,d as h,h as S,a as y,w as k,aj as w,N as b,bz as v}from"./DEsNGmzG.js";const I={computed:{hasChildSiteTeasers(){return m().siteHasFeature("Child Site Teasers")},link(){const e={page:"posts",post:"posts",cas:"",gallery:"images",graphic:"infographic",sponsored_article:"posts",quiz:"quizzes",story:"stories",recipe:"recipes"};let t="";return this.post.permalink?t=`/${this.post.permalink}`:t=`/${e[this.post.type]}/${this.post.slug}`.replace(/\/\//g,"/"),this.hasChildSiteTeasers&&this.post.siteName&&this.post.siteName!==this.$site.name?`https://${this.post.siteName.toLowerCase()}${t}`:(this.post.originalSite&&this.post.originalSite!==this.$site.prefix&&(t+=`?original_site=${this.post.originalSite}`),t)}}},N={name:"CrossPublishingIndicator",directives:{clickOutside:_.directive},props:{prefixes:{type:Array,required:!0},allowTooltip:{type:Boolean,default:!0},originalSite:{type:String,required:!0},postPath:{type:String,required:!0}},data:()=>({showOverflow:!1}),computed:{...b(v,["getSiteSummary"]),prefixesAlphabetizedBySiteName(){return this.prefixes.map(e=>this.getSiteSummary(e)).sort((e,t)=>e.name<t.name?-1:e.name>t.name?1:0).map(e=>e.prefix)},sortedPrefixes(){const e=[...this.prefixesAlphabetizedBySiteName],t=e.indexOf(this.$site.prefix);return{firstTwo:[e.splice(t,1)[0],e.shift()],overflow:e}}},methods:{siteName(e){return this.getSiteSummary(e)&&this.getSiteSummary(e).name||e},siteHost(e){return this.getSiteSummary(e)&&this.getSiteSummary(e).host},logoSrc(e){return`https://${this.siteHost(e)}/images/logo_avatar.svg`},linkForOtherSite(e){let t=`https://${this.siteHost(e)}/${this.postPath}`;return e!==this.originalSite&&(t+=`?original_site=${this.originalSite}`),t}}},x={class:"cross-publishing-indicator"},T={class:"cross-publishing-indicator__logos"},O=["src","alt"],C={key:0,class:"cross-publishing-indicator__logo"},B={class:"cross-publishing-indicator__details"},P=["href"],z={key:0,class:"cross-publishing-indicator__overflow-list"},q=["src","alt"];function F(e,t,l,A,D,s){const g=f("click-outside");return r(),a("div",x,[c("div",T,[(r(!0),a(n,null,u(s.sortedPrefixes.firstTwo,i=>(r(),a("img",{key:`${i}_logo`,src:s.logoSrc(i),alt:s.siteName(i),width:21,height:21,class:"cross-publishing-indicator__logo"},null,8,O))),128)),s.sortedPrefixes.overflow.length?(r(),a("div",C," +"+o(s.sortedPrefixes.overflow.length),1)):d("",!0)]),c("p",B,[t[1]||(t[1]=h(" Published on ",-1)),s.sortedPrefixes.overflow.length?l.allowTooltip?(r(),a("button",{key:2,class:"text-button text-button--link-style",onClick:t[0]||(t[0]=i=>e.showOverflow=!e.showOverflow)},o(l.prefixes.length)+" communities ",1)):(r(),a(n,{key:1},[h(o(l.prefixes.length)+" communities ",1)],64)):(r(),a(n,{key:0},[h(o(s.siteName(s.sortedPrefixes.firstTwo[0]))+" and ",1),c("a",{class:"cross-publishing-indicator__link",href:s.linkForOtherSite(s.sortedPrefixes.firstTwo[1]),target:"_blank"},o(s.siteName(s.sortedPrefixes.firstTwo[1])),9,P)],64))]),e.showOverflow?S((r(),a("ul",z,[(r(!0),a(n,null,u(s.prefixesAlphabetizedBySiteName,i=>(r(),a("li",{key:i,class:"cross-publishing-indicator__overflow-item"},[(r(),y(w(i!==e.$site.prefix?"a":"span"),{target:i!==e.$site.prefix?"_blank":null,class:"cross-publsihing-indicator__overflow-link",href:i!==e.$site.prefix?s.linkForOtherSite(i):null},{default:k(()=>[(r(),a("img",{key:`${i}_logo`,src:s.logoSrc(i),alt:s.siteName(i),width:21,height:21,class:"cross-publishing-indicator__logo"},null,8,q)),h(" "+o(s.siteName(i)),1)]),_:2},1032,["target","href"]))]))),128))])),[[g,()=>e.showOverflow=!1]]):d("",!0)])}const L=Object.assign(p(N,[["render",F],["__scopeId","data-v-ee5c9639"]]),{__name:"CrossPublishingIndicator"});export{L as _,I as p};

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.