/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as i,subclass as s}from"../../../core/accessorSupport/decorators.js";import t from"../../Widget.js";import o from"./BuildingDisciplinesNode.js";import{loadCalciteComponents as r}from"../../support/componentsUtils.js";import{tsx as l}from"../../support/widget.js";const n={expand:"expand",collapse:"collapse",hideSublayer:"hideSublayer",showSublayer:"showSublayer"},p={base:"esri-building-disciplines-tree"};let c=class extends t{constructor(e){super(e),this.toggleSiblingsVisibility=!1}loadDependencies(){return Promise.allSettled([r({tree:()=>import("@esri/calcite-components/dist/components/calcite-tree")}),o.loadDependencies()])}static{this.vnodeSelector="calcite-tree"}render(){const{vm:e}=this,i=this.toggleSiblingsVisibility,s=this.messages??n;return l("calcite-tree",{class:p.base,lines:!0,selectionMode:"none"},e.root.children.toArray().filter(e=>!e.isDiscipline||e.hasChildren).reverse().map(e=>l(o,{messages:s,node:e,toggleSiblingsVisibility:i})))}};e([i()],c.prototype,"vm",void 0),e([i()],c.prototype,"messages",void 0),e([i()],c.prototype,"toggleSiblingsVisibility",void 0),c=e([s("esri.widgets.BuildingExplorer.BuildingDisciplinesTree.BuildingDisciplinesTree")],c);const d=c;export{d as default};
