/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../../chunks/_rollupPluginBabelHelpers","../../../chunks/tslib.es6","../../../core/maybe","../../../core/accessorSupport/decorators/property","../../../core/arrayUtils","../../../core/has","../../../core/accessorSupport/ensureType","../../../core/accessorSupport/decorators/subclass","../../Widget","./BuildingDisciplinesNode","../../support/widgetUtils","../../support/jsxFactory"],(function(e,s,i,r,t,o,l,p,c,n,a,u){"use strict";const d={expand:"expand",collapse:"collapse",hideSublayer:"hideSublayer",showSublayer:"showSublayer"},g={base:`${"esri-building-disciplines-tree"}`};let y=function(s){function r(e){var i;return(i=s.call(this,e)||this).toggleSiblingsVisibility=!1,i}return e._inheritsLoose(r,s),r.prototype.render=function(){const{vm:e}=this,s=this.toggleSiblingsVisibility,r=i.unwrapOr(this.messages,d);return u.tsx("div",{role:"tree",class:g.base},e.root.children.toArray().reverse().map((e=>u.tsx(n,{node:e,messages:r,toggleSiblingsVisibility:s}))))},r}(c);s.__decorate([r.property()],y.prototype,"vm",void 0),s.__decorate([r.property()],y.prototype,"messages",void 0),s.__decorate([r.property()],y.prototype,"toggleSiblingsVisibility",void 0),y=s.__decorate([p.subclass("esri.widgets.BuildingExplorer.BuildingDisciplinesTree.BuildingDisciplinesTree")],y);return y}));
