1import{a as e,R as t,P as a,i as s}from"./index.BRp5kj-w.js";import{a as r,c as n,g as i,cv as c,a$ as o,b0 as m,at as l,x as p,Z as u}from"./main.BuRnQBwN.js";import{c as g,P as d}from"./connect.CPvX1Tel.js";import{T as b}from"./index.BaK0ipWe.js";import{T as y,a as S,b as _}from"./Tabs.CTIUPrik.js";import"./staticTextEn.D6WYEa6V.js";import"./staticTextEs.Dnr1pprf.js";import"./staticTextDe.D946bWlw.js";import"./staticTextFr.Dw7JJU6I.js";const h=["portals-page__sherpa"];let E=class extends t.Component{componentDidMount(){const{props:e}=this,{getPmScreen:t,user:a}=e;t({screenType:"community-portals",language:a.getIn(["data","language",0],"en")})}componentDidUpdate(e){const{props:t}=this,{user:a}=t,{user:s}=e,r=a.getIn(["data","language",0],"en");s.getIn(["data","language",0],"en")!==r&&t.getPmScreen("portals",r)}renderSection(a){const{props:s}=this,{pmSection:r,touchable:n,community:i}=s,l=c({sectionId:a,pmSection:r}).get(0),p=l?l.get("tabContent",e.List()):e.List();if(i.size&&p.size){const s=p.reduce((e,t)=>{const a=i.find(e=>e.get("id")===t.get("uuid"));return a?e.push(a):e},e.List());return t.createElement("section",{className:"portals-page__community",key:a},t.createElement("ul",{className:"portals-page__list"},s.map(e=>{const a=e.get("id");return t.createElement(b,{subscriberCount:e.get("subscribers"),title:e.get("title"),desc:e.get("tagline"),hero:e.get("image"),tags:e.get("tags"),hoverable:!n,url:e.get("url"),key:a,asListItem:!0})})))}return t.createElement(o,{className:h,type:m,key:a})}renderCombinedSections(){const{props:e}=this,{community:a,staticText:s,touchable:r}=e;return t.createElement(y,{key:0,label:s.get("all")},t.createElement("section",{className:"portals-page__community",key:0},t.createElement("ul",{className:"portals-page__list"},a.reduce((e,a)=>e.concat(t.createElement(b,{subscriberCount:a.get("subscribers"),title:a.get("title"),desc:a.get("tagline"),hero:a.get("image"),tags:a.get("tags"),hoverable:!r,url:a.get("url"),key:a.get("id"),asListItem:!0})),[]))))}render(){const{props:a}=this,{pmScreen:s,pmSection:r,user:n,staticText:i}=a,c=l(n.getIn(["data","language"],"en")),o=s.getIn(["community-portals",c,"data","sectionIds"],e.List());return t.createElement("div",{className:"portals-page"},t.createElement("div",{className:"portals-page__container"},t.createElement("div",{className:"portals-page__text"},t.createElement(p,null,i.get("explore"))),t.createElement("div",{className:"portals-page__grid"},t.createElement(S,{type:_.VERTICAL,activeTab:0},o.map(a=>{const s=r.getIn([a,"data"],e.Map()).getIn(["data","content",0,"label"],null);return t.createElement(y,{key:a,label:s},this.renderSection(a))}).unshift(this.renderCombinedSections())))))}};E.propTypes={staticText:u.map.isRequired,pmSection:u.map.isRequired,community:u.map.isRequired,pmScreen:u.map.isRequired,user:u.map.isRequired,getPmScreen:a.func.isRequired,touchable:a.bool.isRequired};const T=r(g({seoType:d}),n(t=>({staticText:t.staticText.getIn(["data","portal","data"],e.Map()),touchable:t.app.getIn(["viewport","touchable"],!1),community:t.portal.get("community",e.Map()),pmSection:t.pmSection,pmScreen:t.pmScreen,user:t.user}),e=>({getPmScreen:i(e).pmScreen.getPmScreen})))(E),x=s(Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})));export{x as default}; 2//# sourceMappingURL=index.BMibZUf9.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.