PageSourceSearch

https://www.altmetric.com/explorer/vite/assets/DepartmentHierarchy-CHfU4A_S.js

js altmetric.com collected 2026-09-24 08:38:40 UTC 2,162 bytes, 2 lines download raw bytes

1import{r as s,N as i}from"./accessibility-9Lc5i0Xh.js";import{a9 as r}from"./highstock-HnTuo9Ck.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7084e442-ed63-4118-a257-b11246c4d61f",t._sentryDebugIdIdentifier="sentry-dbid-7084e442-ed63-4118-a257-b11246c4d61f")}catch{}})();class h extends r.PureComponent{render(){return s.jsx("div",{className:"department-hierarchy-wrapper",children:s.jsx("ol",{children:this.props.roots.map(e=>s.jsx(n,{isRoot:!0,node:e,baseURL:this.props.baseURL},e.id))})})}}class n extends r.PureComponent{constructor(e){super(e),this.state={expanded:!1,jumpURL:e.baseURL+"?department_id="+e.node.id}}render(){return s.jsxs("li",{children:[s.jsxs("div",{className:this.className,children:[s.jsxs("div",{className:"title",role:this.hasChildren?"button":void 0,tabIndex:this.hasChildren?0:void 0,onClick:this.hasChildren?this.toggleExpand:void 0,onKeyDown:this.hasChildren?e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.toggleExpand())}:void 0,children:[s.jsx("span",{className:"name",children:this.props.node.name}),s.jsx("span",{className:"count",children:I18n.htmlSafe("my_institution.mentioned_count_html",{count:i.formatNumberWithDelimiter(this.props.node.mentioned_count)})})]}),s.jsx("a",{className:"jump-link",href:this.state.jumpURL,children:s.jsx("span",{className:"cta",children:I18n.t("my_institution.cta")})})]}),this.renderChildren]})}get renderChildren(){if(this.hasChildren)return s.jsx("ol",{children:this.props.node.children.map(e=>s.jsx(n,{node:e,baseURL:this.props.baseURL},e.id))})}toggleExpand=()=>{Analytics.trackEvent("toggleDepartment",{departmentID:this.props.node.id}),this.setState({expanded:!this.state.expanded})};get hasChildren(){return this.props.node.children.length>0}get className(){const e=["department"];return this.props.isRoot&&e.push("root"),this.state.expanded&&e.push("expanded"),e.push(this.hasChildren?"branch":"leaf"),e.join(" ")}}export{h as default};
2//# sourceMappingURL=DepartmentHierarchy-CHfU4A_S.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.