bimplus-webcomponents 0.0.119 → 0.0.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9 16C12.9 16 16 12.9 16 9C16 5.1 12.9 2 9 2C5.1 2 2 5.1 2 9C2 12.9 5.1 16 9 16ZM9 18C4 18 0 14 0 9C0 4 4 0 9 0C14 0 18 4 18 9C18 14 14 18 9 18Z" fill="#F89090"/>
3
+ <path d="M8 10.5H10V4H8V10.5ZM8 14H10V12H8V14Z" fill="#F89090"/>
4
+ </svg>
@@ -32,6 +32,6 @@ ${e.map((i,o)=>`${o+1}) ${i.toString()}`).join(`
32
32
  `],encapsulation:3})}}return t})();var $u;try{$u=typeof Intl<"u"&&Intl.v8BreakIterator}catch{$u=!1}var Ot=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Oh(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||$u)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(z(zn))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jr;function RE(){if(jr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>jr=!0}))}finally{jr=jr||!1}return jr}function Oo(t){return RE()?t:!!t.capture}var Hu;function jE(){if(Hu==null){let t=typeof document<"u"?document.head:null;Hu=!!(t&&(t.createShadowRoot||t.attachShadow))}return Hu}function s_(t){if(jE()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Mn(t){return t.composedPath?t.composedPath()[0]:t.target}function a_(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ki(t){return ft(t)?t:Me(t)}function Uu(t){return Array.isArray(t)?t:[t]}function Di(t){return t instanceof $?t.nativeElement:t}var l_=new Set,Ii,LE=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BE}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&VE(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(z(Ot),z(dr,8))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function VE(t,n){if(!l_.has(t))try{Ii||(Ii=document.createElement("style"),n&&Ii.setAttribute("nonce",n),Ii.setAttribute("type","text/css"),document.head.appendChild(Ii)),Ii.sheet&&(Ii.sheet.insertRule(`@media ${t} {body{ }}`,0),l_.add(t))}catch(e){console.error(e)}}function BE(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var d_=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new he}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return c_(Uu(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=c_(Uu(e)).map(s=>this._registerQuery(s).observable),r=ii(o);return r=Pt(r.pipe(rt(1)),r.pipe(Uo(1),oi(0))),r.pipe(be(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),r={observable:new ge(s=>{let a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Tn(i),be(({matches:s})=>({query:e,matches:s})),tt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(z(LE),z(ke))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function c_(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var HE=200,Gu=class{constructor(n,e){this._letterKeyStream=new he,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new he,this.selectedItem=this._selectedItem;let i=typeof e?.debounceInterval=="number"?e.debounceInterval:HE;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Jt(e=>this._pressedLetters.push(e)),oi(n),On(()=>this._pressedLetters.length>0),be(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let o=(this._selectedItemIndex+i)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var qu=class{_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let n=0;for(let i=0;i<this._items.length;i++)if(!this._skipPredicateFn(this._items[i])&&!this._isItemDisabled(this._items[i])){n=i;break}let e=this._items[n];e.makeFocusable?(this._activeItem?.unfocus(),this._activeItemIndex=n,this._activeItem=e,this._typeahead?.setCurrentSelectedItemIndex(n),e.makeFocusable()):this.focusItem(n),this._hasInitialFocused=!0}constructor(n,e){this._activeItemIndex=-1,this._activeItem=null,this._shouldActivationFollowFocus=!1,this._horizontalOrientation="ltr",this._skipPredicateFn=i=>!1,this._trackByFn=i=>i,this._items=[],this._typeaheadSubscription=ze.EMPTY,this._hasInitialFocused=!1,this.change=new he,n instanceof er?(this._items=n.toArray(),n.changes.subscribe(i=>{this._items=i.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):ft(n)?n.subscribe(i=>{this._items=i,this._typeahead?.setItems(i),this._updateActiveItemIndex(i),this._initializeFocus()}):(this._items=n,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(n){switch(n.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(n.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(n,e={}){e.emitChangeEvent??=!0;let i=typeof n=="number"?n:this._items.findIndex(s=>this._trackByFn(s)===this._trackByFn(n));if(i<0||i>=this._items.length)return;let o=this._items[i];if(this._activeItem!==null&&this._trackByFn(o)===this._trackByFn(this._activeItem))return;let r=this._activeItem;this._activeItem=o??null,this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i),this._activeItem?.focus(),r?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(n){let e=this._activeItem;if(!e)return;let i=n.findIndex(o=>this._trackByFn(o)===this._trackByFn(e));i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}_setTypeAhead(n){this._typeahead=new Gu(this._items,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(n){for(let e=n+1;e<this._items.length;e++)if(!this._skipPredicateFn(this._items[e]))return e;return n}_findPreviousAvailableItemIndex(n){for(let e=n-1;e>=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return n}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let n=this._activeItem.getParent();if(!n||this._skipPredicateFn(n))return;this.focusItem(n)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?ki(this._activeItem.getChildren()).pipe(rt(1)).subscribe(n=>{let e=n.find(i=>!this._skipPredicateFn(i));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(n){return typeof n.isDisabled=="boolean"?n.isDisabled:n.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let n=this._activeItem.getParent(),e;n?e=ki(n.getChildren()):e=Me(this._items.filter(i=>i.getParent()===null)),e.pipe(rt(1)).subscribe(i=>{for(let o of i)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function $E(){return(t,n)=>new qu(t,n)}var m_=new W("tree-key-manager",{providedIn:"root",factory:$E});function Zu(t){return t.buttons===0||t.detail===0}function Yu(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var UE=new W("cdk-input-modality-detector-options"),WE={ignoreKeys:[18,17,224,91,16]},f_=650,To=Oo({passive:!0,capture:!0}),GE=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new xe(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Mn(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<f_||(this._modality.next(Zu(s)?"keyboard":"mouse"),this._mostRecentTarget=Mn(s))},this._onTouchstart=s=>{if(Yu(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Mn(s)},this._options=re(re({},WE),r),this.modalityDetected=this._modality.pipe(Uo(1)),this.modalityChanged=this.modalityDetected.pipe($o()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,To),o.addEventListener("mousedown",this._onMousedown,To),o.addEventListener("touchstart",this._onTouchstart,To)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,To),document.removeEventListener("mousedown",this._onMousedown,To),document.removeEventListener("touchstart",this._onTouchstart,To))}static{this.\u0275fac=function(i){return new(i||t)(z(Ot),z(ke),z(ot),z(UE,8))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vl=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(vl||{}),qE=new W("cdk-focus-monitor-default-options"),_l=Oo({passive:!0,capture:!0}),g_=(()=>{class t{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new he,this._rootNodeFocusAndBlurListener=a=>{let l=Mn(a);for(let c=l;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=s?.detectionMode||vl.IMMEDIATE}monitor(e,i=!1){let o=Di(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=s_(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;let a={checkChildren:i,subject:new he,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let i=Di(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){let r=Di(e),s=this._getDocument().activeElement;r===s?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===vl.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===vl.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?f_:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,i){let o=this._elementInfo.get(i),r=Mn(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,_l),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,_l)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(tt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_l),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_l),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let s=0;s<r.length;s++)if(r[s].contains(i))return!0}return!1}static{this.\u0275fac=function(i){return new(i||t)(z(ke),z(Ot),z(GE),z(ot,8),z(qE,8))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ei=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Ei||{}),u_="cdk-high-contrast-black-on-white",p_="cdk-high-contrast-white-on-black",Wu="cdk-high-contrast-active",h_=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=K(d_).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ei.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ei.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ei.BLACK_ON_WHITE}return Ei.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Wu,u_,p_),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Ei.BLACK_ON_WHITE?e.add(Wu,u_):i===Ei.WHITE_ON_BLACK&&e.add(Wu,p_)}}static{this.\u0275fac=function(i){return new(i||t)(z(Ot),z(ot))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var YE=new W("cdk-dir-doc",{providedIn:"root",factory:KE});function KE(){return K(ot)}var QE=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function XE(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?QE.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var yl=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new x,e){let i=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.value=XE(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(z(YE,8))}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ku=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({})}}return t})();function eS(){return!0}var tS=new W("mat-sanity-checks",{providedIn:"root",factory:eS}),Qt=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return a_()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||t)(z(h_),z(tS,8),z(ot))}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({imports:[Ku,Ku]})}}return t})();var Bt=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Bt||{}),Ju=class{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=Bt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},b_=Oo({passive:!0,capture:!0}),ep=class{constructor(){this._events=new Map,this._delegateEventHandler=n=>{let e=Mn(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){let r=this._events.get(e);if(r){let s=r.get(i);s?s.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,b_)})}removeHandler(n,e,i){let o=this._events.get(n);if(!o)return;let r=o.get(e);r&&(r.delete(i),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,b_)))}},__={enterDuration:225,exitDuration:150},nS=800,v_=Oo({passive:!0,capture:!0}),y_=["mousedown","touchstart"],C_=["mouseup","mouseleave","touchend","touchcancel"],tp=class t{static{this._eventManager=new ep}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Di(i))}fadeInRipple(n,e,i={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=re(re({},__),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);let s=i.radius||iS(n,e,o),a=n-o.left,l=e-o.top,c=r.enterDuration,m=document.createElement("div");m.classList.add("mat-ripple-element"),m.style.left=`${a-s}px`,m.style.top=`${l-s}px`,m.style.height=`${s*2}px`,m.style.width=`${s*2}px`,i.color!=null&&(m.style.backgroundColor=i.color),m.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(m);let h=window.getComputedStyle(m),w=h.transitionProperty,C=h.transitionDuration,E=w==="none"||C==="0s"||C==="0s, 0s"||o.width===0&&o.height===0,A=new Ju(this,m,i,E);m.style.transform="scale3d(1, 1, 1)",A.state=Bt.FADING_IN,i.persistent||(this._mostRecentTransientRipple=A);let G=null;return!E&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let V=()=>{G&&(G.fallbackTimer=null),clearTimeout(Ze),this._finishRippleTransition(A)},Y=()=>this._destroyRipple(A),Ze=setTimeout(Y,c+100);m.addEventListener("transitionend",V),m.addEventListener("transitioncancel",Y),G={onTransitionEnd:V,onTransitionCancel:Y,fallbackTimer:Ze}}),this._activeRipples.set(A,G),(E||!c)&&this._finishRippleTransition(A),A}fadeOutRipple(n){if(n.state===Bt.FADING_OUT||n.state===Bt.HIDDEN)return;let e=n.element,i=re(re({},__),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Bt.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Di(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,y_.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{C_.forEach(e=>{this._triggerElement.addEventListener(e,this,v_)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Bt.FADING_IN?this._startFadeOutTransition(n):n.state===Bt.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Bt.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Bt.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=Zu(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+nS;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!Yu(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{let e=n.state===Bt.VISIBLE||n.config.terminateOnPointerUp&&n.state===Bt.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(y_.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(C_.forEach(e=>n.removeEventListener(e,this,v_)),this._pointerUpEventsRegistered=!1))}};function iS(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}var k_=new W("mat-ripple-global-options"),oS=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new tp(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:re(re(re({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,re(re({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,re(re({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||t)(v($),v(ke),v(Ot),v(k_,8),v(cr,8))}}static{this.\u0275dir=q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&Z("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),D_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({imports:[Qt,Qt]})}}return t})();var w_={capture:!0},x_=["focus","mousedown","mouseenter","touchstart"],Qu="mat-ripple-loader-uninitialized",Xu="mat-ripple-loader-class-name",M_="mat-ripple-loader-centered",Cl="mat-ripple-loader-disabled",I_=(()=>{class t{constructor(){this._document=K(ot,{optional:!0}),this._animationMode=K(cr,{optional:!0}),this._globalRippleOptions=K(k_,{optional:!0}),this._platform=K(Ot),this._ngZone=K(ke),this._hosts=new Map,this._onInteraction=e=>{let i=Mn(e);if(i instanceof HTMLElement){let o=i.closest(`[${Qu}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let e of x_)this._document?.addEventListener(e,this._onInteraction,w_)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of x_)this._document?.removeEventListener(i,this._onInteraction,w_)}configureRipple(e,i){e.setAttribute(Qu,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Xu))&&e.setAttribute(Xu,i.className||""),i.centered&&e.setAttribute(M_,""),i.disabled&&e.setAttribute(Cl,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let o=this._hosts.get(e);if(o){o.disabled=i;return}i?e.setAttribute(Cl,""):e.removeAttribute(Cl)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(Xu)),e.append(o);let r=new oS(new $(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(M_),r.disabled=e.hasAttribute(Cl),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(Qu),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({imports:[Qt,Qt]})}}return t})();var rS=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var sS=["mat-icon-button",""],aS=["*"];var lS=new W("MAT_BUTTON_CONFIG");var cS=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],dS=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,o,r){this._elementRef=e,this._platform=i,this._ngZone=o,this._animationMode=r,this._focusMonitor=K(g_),this._rippleLoader=K(I_),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=K(lS,{optional:!0}),a=e.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:c,mdcClasses:m}of cS)a.hasAttribute(c)&&l.add(...m)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){Tg()}}static{this.\u0275dir=q({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",k],disabled:[2,"disabled","disabled",k],ariaDisabled:[2,"aria-disabled","ariaDisabled",k],disabledInteractive:[2,"disabledInteractive","disabledInteractive",k]},features:[ue]})}}return t})();var S_=(()=>{class t extends dS{constructor(e,i,o,r){super(e,i,o,r),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(i){return new(i||t)(v($),v(Ot),v(ke),v(cr,8))}}static{this.\u0275cmp=S({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),hr(o.color?"mat-"+o.color:""),Z("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[U,O],attrs:sS,ngContentSelectors:aS,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(Le(),I(0,"span",0),Ee(1),I(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',rS],encapsulation:2,changeDetection:0})}}return t})();var O_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({imports:[Qt,D_,Qt]})}}return t})();var wl=class{};function T_(t){return t&&typeof t.connect=="function"&&!(t instanceof jo)}var Kn=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new he,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(this._getConcreteValue(r,i))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}else return n}};var np=class{constructor(){this.expansionModel=new Kn(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}},xl=class extends np{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){let e=this.dataNodes.indexOf(n),i=[];for(let o=e+1;o<this.dataNodes.length&&this.getLevel(n)<this.getLevel(this.dataNodes[o]);o++)i.push(this.dataNodes[o]);return i}expandAll(){this.expansionModel.select(...this.dataNodes.map(n=>this._trackByValue(n)))}};var A_=new W("CDK_TREE_NODE_OUTLET_NODE"),ip=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}static{this.\u0275fac=function(i){return new(i||t)(v(cn),v(A_,8))}}static{this.\u0275dir=q({type:t,selectors:[["","cdkTreeNodeOutlet",""]],standalone:!0})}}return t})(),op=class{constructor(n){this.$implicit=n}},Ml=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(v(ye))}}static{this.\u0275dir=q({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]},standalone:!0})}}return t})();function P_(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var Po=(()=>{class t{get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}constructor(e,i){this._differs=e,this._changeDetectorRef=i,this._dir=K(yl),this._onDestroy=new he,this._levels=new Map,this._parents=new Map,this._ariaSets=new Map,this.viewChange=new xe({start:0,end:Number.MAX_VALUE}),this._flattenedNodes=new xe([]),this._nodeType=new xe(null),this._nodes=new xe(new Map),this._keyManagerNodes=new xe([]),this._keyManagerFactory=K(m_),this._viewInit=!1}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){let e=this._nodeDefs.filter(i=>!i.when);e.length>1,this._defaultNodeDef=e[0]}_setNodeTypeIfUnset(e){this._nodeType.value===null&&this._nodeType.next(e)}_switchDataSource(e){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new Kn(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;T_(this._dataSource)?e=this._dataSource.connect(this):ft(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Me(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(tt(this._onDestroy)).subscribe(i=>{this._renderDataChanges(i)}))}_getRenderData(e){let i=this._getExpansionModel();return ii([e,this._nodeType,i.changed.pipe(Tn(null),Jt(o=>{this._emitExpansionChanges(o)}))]).pipe(Ut(([o,r])=>r===null?Me({renderNodes:o,flattenedNodes:null,nodeType:r}):this._computeRenderingData(o,r).pipe(be(s=>Be(re({},s),{nodeType:r})))))}_renderDataChanges(e){if(e.nodeType===null){this.renderNodeChanges(e.renderNodes);return}this._updateCachedData(e.flattenedNodes),this.renderNodeChanges(e.renderNodes),this._updateKeyManagerItems(e.flattenedNodes)}_emitExpansionChanges(e){if(!e)return;let i=this._nodes.value;for(let o of e.added)i.get(o)?._emitExpansionState(!0);for(let o of e.removed)i.get(o)?._emitExpansionState(!1)}_initializeKeyManager(){let e=ii([this._keyManagerNodes,this._nodes]).pipe(be(([o,r])=>o.reduce((s,a)=>{let l=r.get(this._getExpansionKey(a));return l&&s.push(l),s},[]))),i={trackBy:o=>this._getExpansionKey(o.data),skipPredicate:o=>!!o.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(e,i)}_initializeDataDiffer(){let e=this.trackBy??((i,o)=>this._getExpansionKey(o));this._dataDiffer=this._differs.find([]).create(e)}_checkTreeControlUsage(){}renderNodeChanges(e,i=this._dataDiffer,o=this._nodeOutlet.viewContainer,r){let s=i.diff(e);!s&&!this._viewInit||(s?.forEachOperation((a,l,c)=>{if(a.previousIndex==null)this.insertNode(e[c],c,o,r);else if(c==null)o.remove(l);else{let m=o.get(l);o.move(m,c)}}),s?.forEachIdentityChange(a=>{let l=a.item;if(a.currentIndex!=null){let c=o.get(a.currentIndex);c.context.$implicit=l}}),r?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){if(this._nodeDefs.length===1)return this._nodeDefs.first;let o=this._nodeDefs.find(r=>r.when&&r.when(i,e))||this._defaultNodeDef;return o}insertNode(e,i,o,r){let s=this._getLevelAccessor(),a=this._getNodeDef(e,i),l=this._getExpansionKey(e),c=new op(e);r??=this._parents.get(l)??void 0,s?c.level=s(e):r!==void 0&&this._levels.has(this._getExpansionKey(r))?c.level=this._levels.get(this._getExpansionKey(r))+1:c.level=0,this._levels.set(l,c.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,c,i),Si.mostRecentTreeNode&&(Si.mostRecentTreeNode.data=e)}isExpanded(e){return!!(this.treeControl?.isExpanded(e)||this._expansionModel?.isSelected(this._getExpansionKey(e)))}toggle(e){this.treeControl?this.treeControl.toggle(e):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(e))}expand(e){this.treeControl?this.treeControl.expand(e):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(e))}collapse(e){this.treeControl?this.treeControl.collapse(e):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(e))}toggleDescendants(e){this.treeControl?this.treeControl.toggleDescendants(e):this._expansionModel&&(this.isExpanded(e)?this.collapseDescendants(e):this.expandDescendants(e))}expandDescendants(e){if(this.treeControl)this.treeControl.expandDescendants(e);else if(this._expansionModel){let i=this._expansionModel;i.select(this._getExpansionKey(e)),this._getDescendants(e).pipe(rt(1),tt(this._onDestroy)).subscribe(o=>{i.select(...o.map(r=>this._getExpansionKey(r)))})}}collapseDescendants(e){if(this.treeControl)this.treeControl.collapseDescendants(e);else if(this._expansionModel){let i=this._expansionModel;i.deselect(this._getExpansionKey(e)),this._getDescendants(e).pipe(rt(1),tt(this._onDestroy)).subscribe(o=>{i.deselect(...o.map(r=>this._getExpansionKey(r)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._expansionModel.select(...this._flattenedNodes.value.map(i=>this._getExpansionKey(i)))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._expansionModel.deselect(...this._flattenedNodes.value.map(i=>this._getExpansionKey(i)))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(e){let i=this._getLevelAccessor(),o=this._expansionModel??this.treeControl?.expansionModel;if(!o)return Me([]);let r=this._getExpansionKey(e),s=o.changed.pipe(Ut(l=>l.added.includes(r)?Me(!0):l.removed.includes(r)?Me(!1):ti),Tn(this.isExpanded(e)));if(i)return ii([s,this._flattenedNodes]).pipe(be(([l,c])=>l?this._findChildrenByLevel(i,c,e,1):[]));let a=this._getChildrenAccessor();if(a)return ki(a(e)??[]);throw P_()}_findChildrenByLevel(e,i,o,r){let s=this._getExpansionKey(o),a=i.findIndex(h=>this._getExpansionKey(h)===s),l=e(o),c=l+r,m=[];for(let h=a+1;h<i.length;h++){let w=e(i[h]);if(w<=l)break;w<=c&&m.push(i[h])}return m}_registerNode(e){this._nodes.value.set(this._getExpansionKey(e.data),e),this._nodes.next(this._nodes.value)}_unregisterNode(e){this._nodes.value.delete(this._getExpansionKey(e.data)),this._nodes.next(this._nodes.value)}_getLevel(e){return this._levels.get(this._getExpansionKey(e))}_getSetSize(e){return this._getAriaSet(e).length}_getPositionInSet(e){let i=this._getAriaSet(e),o=this._getExpansionKey(e);return i.findIndex(r=>this._getExpansionKey(r)===o)+1}_getNodeParent(e){let i=this._parents.get(this._getExpansionKey(e.data));return i&&this._nodes.value.get(this._getExpansionKey(i))}_getNodeChildren(e){return this._getDirectChildren(e.data).pipe(be(i=>i.reduce((o,r)=>{let s=this._nodes.value.get(this._getExpansionKey(r));return s&&o.push(s),o},[])))}_sendKeydownToKeyManager(e){this._keyManager.onKeydown(e)}_getDescendants(e){if(this.treeControl)return Me(this.treeControl.getDescendants(e));if(this.levelAccessor){let i=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,e,1/0);return Me(i)}if(this.childrenAccessor)return this._getAllChildrenRecursively(e).pipe(vs((i,o)=>(i.push(...o),i),[]));throw P_()}_getAllChildrenRecursively(e){return this.childrenAccessor?ki(this.childrenAccessor(e)).pipe(rt(1),Ut(i=>{for(let o of i)this._parents.set(this._getExpansionKey(o),e);return Me(...i).pipe($t(o=>Pt(Me([o]),this._getAllChildrenRecursively(o))))})):Me([])}_getExpansionKey(e){return this.expansionKey?.(e)??e}_getAriaSet(e){let i=this._getExpansionKey(e),o=this._parents.get(i),r=o?this._getExpansionKey(o):null;return this._ariaSets.get(r)??[e]}_findParentForNode(e,i,o){if(!o.length)return null;let r=this._levels.get(this._getExpansionKey(e))??0;for(let s=i-1;s>=0;s--){let a=o[s];if((this._levels.get(this._getExpansionKey(a))??0)<r)return a}return null}_flattenNestedNodesWithExpansion(e,i=0){let o=this._getChildrenAccessor();return o?Me(...e).pipe($t(r=>{let s=this._getExpansionKey(r);this._parents.has(s)||this._parents.set(s,null),this._levels.set(s,i);let a=ki(o(r));return Pt(Me([r]),a.pipe(rt(1),Jt(l=>{this._ariaSets.set(s,[...l??[]]);for(let c of l??[]){let m=this._getExpansionKey(c);this._parents.set(m,r),this._levels.set(m,i+1)}}),Ut(l=>l?this._flattenNestedNodesWithExpansion(l,i+1).pipe(be(c=>this.isExpanded(r)?c:[])):Me([]))))}),vs((r,s)=>(r.push(...s),r),[])):Me([...e])}_computeRenderingData(e,i){if(this.childrenAccessor&&i==="flat")return this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(be(o=>({renderNodes:o,flattenedNodes:o})));if(this.levelAccessor&&i==="nested"){let o=this.levelAccessor;return Me(e.filter(r=>o(r)===0)).pipe(be(r=>({renderNodes:r,flattenedNodes:e})),Jt(({flattenedNodes:r})=>{this._calculateParents(r)}))}else return i==="flat"?Me({renderNodes:e,flattenedNodes:e}).pipe(Jt(({flattenedNodes:o})=>{this._calculateParents(o)})):(this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(be(o=>({renderNodes:e,flattenedNodes:o}))))}_updateCachedData(e){this._flattenedNodes.next(e)}_updateKeyManagerItems(e){this._keyManagerNodes.next(e)}_calculateParents(e){let i=this._getLevelAccessor();if(i){this._parents.clear(),this._ariaSets.clear();for(let o=0;o<e.length;o++){let r=e[o],s=this._getExpansionKey(r);this._levels.set(s,i(r));let a=this._findParentForNode(r,o,e);this._parents.set(s,a);let l=a?this._getExpansionKey(a):null,c=this._ariaSets.get(l)??[];c.splice(o,0,r),this._ariaSets.set(l,c)}}}static{this.\u0275fac=function(i){return new(i||t)(v(po),v(Ge))}}static{this.\u0275cmp=S({type:t,selectors:[["cdk-tree"]],contentQueries:function(i,o,r){if(i&1&&bt(r,Ml,5),i&2){let s;Se(s=Oe())&&(o._nodeDefs=s)}},viewQuery:function(i,o){if(i&1&&pt(ip,7),i&2){let r;Se(r=Oe())&&(o._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(i,o){i&1&&y("keydown",function(s){return o._sendKeydownToKeyManager(s)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],standalone:!0,features:[O],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(i,o){i&1&&st(0,0)},dependencies:[ip],encapsulation:2})}}return t})(),Si=(()=>{class t{get role(){return"treeitem"}set role(e){}get isExpandable(){return this._isExpandable()}set isExpandable(e){this._inputIsExpandable=e,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===!1&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(e){this._inputIsExpanded=e,e?this.expand():this.collapse()}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}static{this.mostRecentTreeNode=null}get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._dataChanges.next())}get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?!0:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}constructor(e,i){this._elementRef=e,this._tree=i,this._tabindex=-1,this.activation=new x,this.expandedChange=new x,this._destroyed=new he,this._dataChanges=new he,this._inputIsExpandable=!1,this._inputIsExpanded=void 0,this._shouldFocus=!0,this._changeDetectorRef=K(Ge),t.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=pS(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(be(()=>this.isExpanded),$o()).subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._tree._setNodeTypeIfUnset("flat"),this._tree._registerNode(this)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(e){this.expandedChange.emit(e)}static{this.\u0275fac=function(i){return new(i||t)(v($),v(Po))}}static{this.\u0275dir=q({type:t,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(i,o){i&1&&y("click",function(){return o._setActiveItem()})("focus",function(){return o._focusItem()}),i&2&&(_r("tabindex",o._tabindex),Q("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",k],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",k],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"],standalone:!0,features:[ue]})}}return t})();function pS(t){let n=t.parentElement;for(;n&&!mS(n);)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?St(n.getAttribute("aria-level")):0:-1}function mS(t){let n=t.classList;return!!(n?.contains("cdk-nested-tree-node")||n?.contains("cdk-tree"))}var fS=/([A-Za-z%]+)$/,rp=(()=>{class t{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}constructor(e,i,o,r){this._treeNode=e,this._tree=i,this._element=o,this._dir=r,this._destroyed=new he,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(tt(this._destroyed)).subscribe(()=>this._setPadding(!0)),e._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){let e=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,i=this._level==null?e:this._level;return typeof i=="number"?`${i*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){let i=this._paddingIndent();if(i!==this._currentPadding||e){let o=this._element.nativeElement,r=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",s=r==="paddingLeft"?"paddingRight":"paddingLeft";o.style[r]=i||"",o.style[s]="",this._currentPadding=i}}_setLevelInput(e){this._level=isNaN(e)?null:e,this._setPadding()}_setIndentInput(e){let i=e,o="px";if(typeof e=="string"){let r=e.split(fS);i=r[0],o=r[1]||o}this.indentUnits=o,this._indent=St(i),this._setPadding()}static{this.\u0275fac=function(i){return new(i||t)(v(Si),v(Po),v($),v(yl,8))}}static{this.\u0275dir=q({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",St],indent:[0,"cdkTreeNodePaddingIndent","indent"]},standalone:!0,features:[ue]})}}return t})(),sp=(()=>{class t{constructor(e,i){this._tree=e,this._treeNode=i,this.recursive=!1}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static{this.\u0275fac=function(i){return new(i||t)(v(Po),v(Si))}}static{this.\u0275dir=q({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(i,o){i&1&&y("click",function(s){return o._toggle(),s.stopPropagation()})("keydown.Enter",function(s){return o._toggle(),s.preventDefault()})("keydown.Space",function(s){return o._toggle(),s.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",k]},standalone:!0,features:[ue]})}}return t})();var kl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({})}}return t})();var N_=(()=>{class t extends Ml{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Rt(t)))(o||t)}})()}static{this.\u0275dir=q({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},standalone:!0,features:[ne([{provide:Ml,useExisting:t}]),U]})}}return t})();var F_=(()=>{class t extends rp{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Rt(t)))(o||t)}})()}static{this.\u0275dir=q({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",St],indent:[0,"matTreeNodePaddingIndent","indent"]},standalone:!0,features:[ne([{provide:rp,useExisting:t}]),ue,U]})}}return t})();var R_=(()=>{class t extends sp{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Rt(t)))(o||t)}})()}static{this.\u0275dir=q({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},standalone:!0,features:[ne([{provide:sp,useExisting:t}]),U]})}}return t})();var j_=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Fe({type:t})}static{this.\u0275inj=Ne({imports:[kl,Qt,Qt]})}}return t})(),Dl=class{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){let r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){let s=this.getChildren(n);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,o):s.pipe(rt(1)).subscribe(a=>{this._flattenChildren(a,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,s)=>{let a=o.slice();a.push(s!=n.length-1),this._flattenNode(r,e+1,i,a)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let s=!0;for(let a=0;a<=this.getLevel(r);a++)s=s&&o[a];s&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}},Il=class extends wl{get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new xe([]),this._expandedData=new xe([]),this._data=new xe([]),i&&(this.data=i)}connect(n){return gn(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(be(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}};var El=(()=>{class t{constructor(e){this.elementRef=e,this.clickOutside=new x}onClick(e){this.elementRef.nativeElement.contains(e)||this.clickOutside.emit()}static{this.\u0275fac=function(i){return new(i||t)(v($))}}static{this.\u0275dir=q({type:t,selectors:[["","libClickOutside",""]],hostBindings:function(i,o){i&1&&y("click",function(s){return o.onClick(s.target)},!1,Hn)},outputs:{clickOutside:"clickOutside"},standalone:!0})}}return t})();var bS=(t,n)=>({"top.px":t,"left.px":n});function _S(t,n){if(t&1&&I(0,"div",10),t&2){let e=u(2).$implicit;Ke("background-image","url("+e.icon+")")}}function vS(t,n){if(t&1){let e=P();p(0,"li",7),y("click",function(){b(e);let o=u().$implicit,r=u(2);return _(r._actionClick(o))})("keypress",function(){b(e);let o=u().$implicit,r=u(2);return _(r._actionClick(o))}),M(1,_S,1,2,"div",8),p(2,"div",9),D(3),f()()}if(t&2){let e=u().$implicit,i=u(2);Z("basic-context-menu__item--disabled",i._disabled(e)),d(),g("ngIf",i.showIcons),d(),Ce("title",e.tooltip?e.tooltip:e.title),d(),B(" ",e.title," ")}}function yS(t,n){t&1&&I(0,"div",11)}function CS(t,n){if(t&1&&(nt(0),M(1,vS,4,5,"li",5)(2,yS,1,0,"div",6),it()),t&2){let e=n.$implicit;d(),g("ngIf",e.id!=="separator"),d(),g("ngIf",e.id==="separator")}}function wS(t,n){if(t&1&&(p(0,"ul",3),M(1,CS,3,2,"ng-container",4),f()),t&2){let e=u();g("ngStyle",mt(2,bS,e._position.posY,e._position.posX)),d(),g("ngForOf",e._items)}}var Qn=(()=>{class t{get items(){return this._items}set items(e){e&&(this._items=e)}constructor(e){this.el=e,this.triggerSelected=new x,this.showIcons=!0,this.triggerTitle="",this._showDropdown=!1,this._items=new Array,this._data=void 0,this._position={posX:-2e3,posY:-2e3},this._element=this.el.nativeElement.shadowRoot}get data(){return this._data}set data(e){this._data=e}_clickOutside(){this._stopTriggerPositionTracking(),this._showDropdown=!1}_actionClick(e){if(this._showDropdown=!1,typeof e.disabled=="function"){if(e.disabled?.(this._data))return;e.action?.(this._data);return}e.disabled||e.action?.(this._data)}_disabled(e){return e.disabled?typeof e.disabled=="function"?e.disabled?.(this._data):e.disabled:!1}_calculateContextMenuPosition(){let e=this._element.querySelector(".context-menu-trigger");if(!e)return;let i=e.getBoundingClientRect();this._position.posX=i.right,this._position.posY=i.top}_stopTriggerPositionTracking(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}_startTriggerPositionTracking(){this._interval||(this._interval=setInterval(()=>{this._calculateContextMenuPosition()},50))}_toggleDropdown(e){this._showDropdown=!this._showDropdown,this._calculateContextMenuPosition(),this._startTriggerPositionTracking(),oe(this,"triggerSelected"),e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||t)(v($))}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-context-menu"]],inputs:{showIcons:[2,"showIcons","showIcons",k],triggerTitle:"triggerTitle",items:"items",data:"data"},outputs:{triggerSelected:"triggerSelected"},standalone:!0,features:[ue,O],decls:3,vars:2,consts:[["libClickOutside","",1,"basic-context-menu",3,"clickOutside"],[1,"context-menu-trigger",3,"click","keypress","title"],["class","basic-context-menu__list",3,"ngStyle",4,"ngIf"],[1,"basic-context-menu__list",3,"ngStyle"],[4,"ngFor","ngForOf"],["class","basic-context-menu__item",3,"basic-context-menu__item--disabled","click","keypress",4,"ngIf"],["class","basic-context-menu__item__separator",4,"ngIf"],[1,"basic-context-menu__item",3,"click","keypress"],["class","basic-context-menu__item__icon",3,"background-image",4,"ngIf"],[1,"basic-context-menu__item__label",3,"title"],[1,"basic-context-menu__item__icon"],[1,"basic-context-menu__item__separator"]],template:function(i,o){i&1&&(p(0,"div",0),y("clickOutside",function(){return o._clickOutside()}),p(1,"div",1),y("click",function(s){return o._toggleDropdown(s)})("keypress",function(s){return o._toggleDropdown(s)}),f(),M(2,wS,2,5,"ul",2),f()),i&2&&(d(),Ce("title",o.triggerTitle),d(),g("ngIf",o._showDropdown))},dependencies:[we,We,fo,El],styles:[`.text-selected{color:var(--text-highlight-text-color-enabled)}.ui-icon22px{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}.no-transition{-moz-transition:none;-webkit-transition:none;-o-transition:color 0 ease-in;transition:none}.ml-1{margin-left:1rem}.mr-1{margin-right:1rem}.h-full{height:100%}.fixed{position:fixed}.basic-context-menu{display:block;font-family:var(--context-menu-font-family, "Source Sans Pro", Helvetica, Arial, tahoma, sans-serif);font-size:var(--context-menu-font-size, 1.4rem)}.basic-context-menu>.context-menu-trigger{min-width:var(--context-menu-trigger-width, 2.5rem);max-width:var(--context-menu-trigger-width, 2.5rem);min-height:var(--context-menu-trigger-height, 2.5rem);max-height:var(--context-menu-trigger-height, 2.5rem);background-repeat:no-repeat;background-position:center;background-image:url("./media/3_dots.svg");background-color:var(--context-menu-trigger-bkg-color, transparent)}.basic-context-menu>.context-menu-trigger:hover{background-image:url("./media/3_dots_active.svg")}.basic-context-menu>.basic-context-menu__list{z-index:1;margin:0;position:fixed;top:-2000;left:-2000;translate:var(--context-menu-translate-x, 0) var(--context-menu-translate-y, 0);border:thin solid var(--context-menu-list-border-color-enabled);border-top-width:0;padding-top:.8rem;padding-bottom:.8rem;padding-left:0;padding-right:0;border-bottom-left-radius:var(--context-menu-border-radius, .6rem);border-bottom-right-radius:var(--context-menu-border-radius, .6rem);border-top-left-radius:var(--context-menu-border-radius, .6rem);border-top-right-radius:var(--context-menu-border-radius, .6rem);-webkit-box-shadow:0 .2rem .6rem var(--context-menu-list-box-shadow-color-enabled);-moz-box-shadow:0 .2rem .6rem var(--context-menu-list-box-shadow-color-enabled);box-shadow:0 .2rem .6rem var(--context-menu-list-box-shadow-color-enabled);width:fit-content;min-width:var(--context-menu-min-width, 10rem);max-width:var(--context-menu-max-width, 30rem);background-color:var(--context-menu-list-background-color)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item{display:flex;flex-direction:row;cursor:pointer;line-height:var(--context-menu-item-line-height, 3.2rem);list-style-type:none;padding-left:1.2rem;padding-right:2.1rem}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item>.basic-context-menu__item__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--context-menu-font-weight, 700);color:var(--context-menu-item-label-text-color-enabled)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item>.basic-context-menu__item__icon{height:var(--context-menu-item-line-height, 3.2rem);width:var(--context-menu-item-line-height, 3.2rem);min-width:var(--context-menu-item-line-height, 3.2rem);background-repeat:no-repeat;background-size:var(--context-menu-item-icon-size, 1.8rem);margin-right:.6rem;background-position:center;background-image:url("./media/bimplus_Components_Info_Active.svg")}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item:hover{background-color:var(--context-menu-item-background-color-hovered)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item__separator{border-top:solid .2rem var(--context-menu-item-seperator-border-color-enabled)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item--disabled{background-color:transparent;cursor:default}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item--disabled>*{opacity:var(--context-menu-item-disabled-opacity, .3)}.basic-context-menu>.basic-context-menu__list>.basic-context-menu__item--disabled:hover{cursor:default;background-color:var(--context-menu-item-background-color-disabled)}
33
33
  `],encapsulation:3})}}return t})();var L_=t=>({node:t});function xS(t,n){if(t&1&&(p(0,"div",5),D(1),f()),t&2){let e=u();d(),ae(e.treeTitle)}}function MS(t,n){if(t&1&&st(0,8),t&2){let e=u().$implicit,i=u();g("ngTemplateOutlet",i.customNodeTemplate)("ngTemplateOutletContext",De(2,L_,e))}}function kS(t,n){t&1&&I(0,"div",13)}function DS(t,n){t&1&&I(0,"div",14)}function IS(t,n){if(t&1&&(M(0,kS,1,0,"div",10),p(1,"span",11),M(2,DS,1,0,"div",12),p(3,"div"),D(4),f()()),t&2){let e=u().$implicit,i=u();g("ngIf",i.showObjectsIcons),d(),Z("selected-node",i._isSelected(e)),d(3),B(" ",e.name," ")}}function ES(t,n){if(t&1){let e=P();p(0,"lib-bimplus-context-menu",15),y("triggerSelected",function(o){b(e);let r=u().$implicit,s=u();return _(s._toggleNode(o,r))}),f()}if(t&2){let e=u().$implicit,i=u();g("items",i.contextMenus==null?null:i.contextMenus.objectContextMenuitems)("data",e)}}function SS(t,n){if(t&1){let e=P();p(0,"cdk-tree-node",6),y("click",function(o){let r=b(e).$implicit,s=u();return _(s._toggleNode(o,r))})("keypress",function(o){let r=b(e).$implicit,s=u();return _(s._toggleNode(o,r))}),I(1,"button",7),M(2,MS,1,4,"ng-container",8)(3,IS,5,4)(4,ES,1,2,"lib-bimplus-context-menu",9),f()}if(t&2){let e=n.$implicit,i=u();Z("dragable-node",i.enableDragAndDrop&&e.level>0)("selected-node",i._isSelected(e)),g("matTreeNodePaddingIndent",i.paddingIndent)("title",e.name),Q("data-test",i.dataTestPrefix+e.id)("node-id",e.id),d(2),R(i.customNodeTemplate&&i._isCustomNodeType(e)?2:3),d(2),g("ngIf",i.contextMenus==null||i.contextMenus.objectContextMenuitems==null?null:i.contextMenus.objectContextMenuitems.length)}}function OS(t,n){if(t&1&&st(0,8),t&2){let e=u().$implicit,i=u();g("ngTemplateOutlet",i.customNodeTemplate)("ngTemplateOutletContext",De(2,L_,e))}}function TS(t,n){t&1&&I(0,"div",20)}function PS(t,n){t&1&&I(0,"div",14)}function AS(t,n){if(t&1&&(M(0,TS,1,0,"div",19),p(1,"span",11),M(2,PS,1,0,"div",12),p(3,"div",11),D(4),f()()),t&2){let e=u().$implicit,i=u();g("ngIf",i.showFoldersIcons),d(),Z("selected-node",i._isSelected(e))("selected-all-descendants-nodes",i._descendantsAllSelected(e)&&i._isSelected(e)&&i.enableParentHighlighting)("selected-partially-descendants-nodes",i._descendantsPartiallySelected(e)&&i.enableParentHighlighting),d(3),B(" ",e.name," ")}}function NS(t,n){if(t&1){let e=P();p(0,"lib-bimplus-context-menu",15),y("triggerSelected",function(o){b(e);let r=u().$implicit,s=u();return _(s._toggleNode(o,r))}),f()}if(t&2){let e=u().$implicit,i=u();g("items",i.contextMenus==null?null:i.contextMenus.folderContextMenuitems)("data",e)}}function FS(t,n){if(t&1){let e=P();p(0,"cdk-tree-node",16),y("click",function(o){let r=b(e).$implicit,s=u();return _(s._toggleNode(o,r))})("keypress",function(o){let r=b(e).$implicit,s=u();return _(s._toggleNode(o,r))}),p(1,"button",17),I(2,"div",18),f(),M(3,OS,1,4,"ng-container",8)(4,AS,5,8)(5,NS,1,2,"lib-bimplus-context-menu",9),f()}if(t&2){let e=n.$implicit,i=u();Z("dragable-node",i.enableDragAndDrop&&e.level>0)("selected-node",i._isSelected(e)),g("matTreeNodePaddingIndent",i.paddingIndent)("title",e.name),Q("data-test",i.dataTestPrefix+e.id)("node-id",e.id),d(),Q("aria-label","Toggle "+e.name),d(),Z("expand-more-icon",i._hasChildren(e)&&!i._treeControl.isExpanded(e))("collapse-icon",i._hasChildren(e)&&i._treeControl.isExpanded(e)),d(),R(i.customNodeTemplate&&i._isCustomNodeType(e)?3:4),d(2),g("ngIf",i.contextMenus==null||i.contextMenus.folderContextMenuitems==null?null:i.contextMenus.folderContextMenuitems.length)}}var Tt=(()=>{class t{constructor(e){this.el=e,this.treeDataStringified=null,this.treeTitle="",this.paddingIndent="2.8rem",this.multiSelect=!1,this.oneLevelMultiSelect=!1,this.showFoldersIcons=!1,this.showObjectsIcons=!1,this.enableSelect=!0,this.enableParentHighlighting=!0,this.enableDragAndDrop=!1,this.dataTestPrefix="",this.contextMenus=null,this.customNodeTemplate=null,this.selectedNodes=new x,this._selectionList=void 0,this._transformer=(i,o)=>({expandable:i.children!==void 0,children_count:i.children?.length,name:i.name,id:i.id,level:o,parent:i.parent,nodeType:i.nodeType}),this._treeControl=new xl(i=>i.level,i=>i.expandable),this._treeFlattener=new Dl(this._transformer,i=>i.level,i=>i.expandable,i=>i.children),this._dataSource=new Il(this._treeControl,this._treeFlattener),this._isExpendable=(i,o)=>o.expandable}get treeData(){return this._dataSource.data}set treeData(e){this.treeDataStringified=null,this._dataSource.data=e}ngOnInit(){let e=this.el.nativeElement;e&&(e.get_node=this.get_node.bind(this),e.select_node=this.select_node.bind(this)),this._selectionList=new Kn(this.multiSelect||this.oneLevelMultiSelect),this.treeDataStringified&&this._setNewData(this.treeDataStringified)}expandTree(){this._treeControl.expandAll()}_getNode(e,i){for(let o of i){if(o.id===e)return o;if(o.children){let r=this._getNode(e,o.children);if(r)return r}}return null}get_node(e,i=!1){return typeof e=="string"?this._getNode(e,this._dataSource.data):i?this.el.nativeElement.querySelector(`[node-id='${e.id}']`):this._getNode(e.id,this._dataSource.data)}select_node(e,i=!1){let o=this._treeControl.dataNodes.find(r=>r.id===e);if(o&&this._selectionList&&(this.oneLevelMultiSelect&&this._selectionList.selected.length>0&&this._selectionList.selected[0].parent!==o.parent&&this._selectionList.clear(),!this._selectionList.isSelected(o))){if(this._selectionList.select(o),!this.multiSelect&&!this.oneLevelMultiSelect&&!i){oe(this,"selectedNodes",this._selectionList.selected);return}this.oneLevelMultiSelect||this._toggleDescendantsNodes(o),this.enableParentHighlighting&&this._updateParentSelections(o),i||oe(this,"selectedNodes",this._selectionList.selected)}}reset_selection(){this._selectionList?.clear()}expand_node(e){let i=this._treeControl.dataNodes.find(o=>o.id===e);i&&this._treeControl.expand(i)}is_expanded(e){let i=this._treeControl.dataNodes.find(o=>o.id===e);return i?this._treeControl.isExpanded(i):!1}is_selected(e){if(!this._selectionList)return;let i=this._treeControl.dataNodes.find(o=>o.id===e);return i?this._selectionList?.isSelected(i):!1}_setNewData(e){let i=JSON.parse(e);this._dataSource.data=i??[]}_changedTreeData(e){this._setNewData(e.currentValue)}ngOnChanges(e){(e.multiSelect||e.oneLevelMultiSelect)&&(this._selectionList=new Kn(this.multiSelect||this.oneLevelMultiSelect)),e.treeDataStringified&&this._changedTreeData(e.treeDataStringified)}_isCustomNodeType(e){return e.nodeType!=null&&e.nodeType!=""}_hasChildren(e){return!e.expandable||e.children_count===void 0?!1:e.children_count>0}_descendantsAllSelected(e){if(!this._selectionList)return!1;let i=this._selectionList,o=this._treeControl.getDescendants(e);return o.length===0?!0:o.length>0&&o.every(s=>i.isSelected(s))}_descendantsPartiallySelected(e){if(!this._selectionList)return!1;let i=this._selectionList;return this._treeControl.getDescendants(e).some(s=>i.isSelected(s))&&!this._descendantsAllSelected(e)}_toggleDescendantsNodes(e){if(!this._selectionList)return;this._selectionList.isSelected(e)?this._selectionList.select(...this._treeControl.getDescendants(e)):this._selectionList.deselect(...this._treeControl.getDescendants(e))}_updateParentSelections(e){if(!this._selectionList)return;let i=e.parent,o=this._treeControl.dataNodes.find(r=>r.id===i);for(;o;)this._descendantsAllSelected(o)?this._selectionList.select(o):this._selectionList.deselect(o),i=o.parent,o=this._treeControl.dataNodes.find(r=>r.id===i)}_toggleNode(e,i){if(!i||!this.enableSelect||!this._selectionList)return;if(e!=null&&e instanceof MouseEvent&&!e?.ctrlKey&&this._selectionList.clear(),this.oneLevelMultiSelect&&this._selectionList.selected.length>0&&this._selectionList.selected[0].parent!==i.parent&&this._selectionList.clear(),this._selectionList.toggle(i),!this.multiSelect&&!this.oneLevelMultiSelect){oe(this,"selectedNodes",this._selectionList.selected);return}this.oneLevelMultiSelect||this._toggleDescendantsNodes(i),this.enableParentHighlighting&&this._updateParentSelections(i),oe(this,"selectedNodes",this._selectionList.selected)}_isSelected(e){return this._selectionList?this._selectionList?.isSelected(e):!1}static{this.\u0275fac=function(i){return new(i||t)(v($))}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-flat-tree"]],inputs:{treeDataStringified:"treeDataStringified",treeTitle:"treeTitle",paddingIndent:"paddingIndent",multiSelect:[2,"multiSelect","multiSelect",k],oneLevelMultiSelect:[2,"oneLevelMultiSelect","oneLevelMultiSelect",k],showFoldersIcons:[2,"showFoldersIcons","showFoldersIcons",k],showObjectsIcons:[2,"showObjectsIcons","showObjectsIcons",k],enableSelect:[2,"enableSelect","enableSelect",k],enableParentHighlighting:[2,"enableParentHighlighting","enableParentHighlighting",k],enableDragAndDrop:[2,"enableDragAndDrop","enableDragAndDrop",k],dataTestPrefix:"dataTestPrefix",contextMenus:"contextMenus",treeData:"treeData",customNodeTemplate:"customNodeTemplate"},outputs:{selectedNodes:"selectedNodes"},standalone:!0,features:[ue,je,O],decls:5,vars:4,consts:[[1,"tree-container"],["class","tree-title",4,"ngIf"],[3,"dataSource","treeControl"],["matTreeNodePadding","","class","object-node",3,"matTreeNodePaddingIndent","dragable-node","selected-node","title","click","keypress",4,"matTreeNodeDef"],["matTreeNodePadding","","class","folder-node",3,"matTreeNodePaddingIndent","dragable-node","selected-node","title","click","keypress",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"tree-title"],["matTreeNodePadding","",1,"object-node",3,"click","keypress","matTreeNodePaddingIndent","title"],["mat-icon-button","","disabled",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","data","triggerSelected",4,"ngIf"],["class","icon object-icon",4,"ngIf"],[1,"node-label"],["class","custom-drag-placeholder",4,"cdkDragPlaceholder"],[1,"icon","object-icon"],[1,"custom-drag-placeholder"],[3,"triggerSelected","items","data"],["matTreeNodePadding","",1,"folder-node",3,"click","keypress","matTreeNodePaddingIndent","title"],["mat-icon-button","","matTreeNodeToggle",""],[1,"icon","expand-collapse-icon"],["class","icon folder-icon",4,"ngIf"],[1,"icon","folder-icon"]],template:function(i,o){i&1&&(p(0,"div",0),M(1,xS,2,1,"div",1),p(2,"cdk-tree",2),M(3,SS,5,10,"cdk-tree-node",3)(4,FS,6,15,"cdk-tree-node",4),f()()),i&2&&(d(),g("ngIf",o.treeTitle),d(),g("dataSource",o._dataSource)("treeControl",o._treeControl),d(2),g("matTreeNodeDefWhen",o._isExpendable))},dependencies:[j_,N_,F_,R_,O_,S_,E_,kl,Po,Si,Qn,j,We,xn],styles:['.text-selected[_ngcontent-%COMP%]{color:var(--text-highlight-text-color-enabled)}.ui-icon22px[_ngcontent-%COMP%]{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu[_ngcontent-%COMP%]{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu[_ngcontent-%COMP%]{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important[_ngcontent-%COMP%]{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}.tree-container[_ngcontent-%COMP%]{background-color:var(--flat-tree-container-background-color-enabled);width:calc(100% - 2 * var(--flat-tree-node-indent, 1rem));padding:var(--flat-tree-node-indent, 1rem);font-family:var(--flat-tree-font-family, "Source Sans Pro", Helvetica, Arial, tahoma, sans-serif);font-size:var(--flat-tree-font-size, 1.3rem);font-weight:var(--flat-tree-font-weight, 700);color:var(--flat-tree-container-text-color-enabled)}.tree-container[_ngcontent-%COMP%] > .tree-title[_ngcontent-%COMP%]{background-color:transparent;font-size:var(--flat-tree-title-font-size, 1.6rem);margin-bottom:1rem}.cdk-tree[_ngcontent-%COMP%]{background-color:transparent;width:100%}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: none;background-color:transparent;display:flex;align-items:center;cursor:pointer;line-height:var(--flat-tree-node-line-height, 2.4rem)}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node.folder-node[_ngcontent-%COMP%]{font-weight:var(--flat-tree-folder-font-weight, 700)}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node.object-node[_ngcontent-%COMP%]{font-weight:var(--flat-tree-object-font-weight, 400)}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%] > span.node-label[_ngcontent-%COMP%]{overflow:hidden;flex:1}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%] > span.node-label[_ngcontent-%COMP%] > div.node-label[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%] lib-bimplus-context-menu[_ngcontent-%COMP%]{--context-menu-trigger-width: 2.4rem;--context-menu-trigger-height: var(--flat-tree-node-line-height, 2.4rem);--context-menu-trigger-bkg-color: transparent;--context-menu-translate-x: 1rem}.cdk-tree[_ngcontent-%COMP%] > .cdk-tree-node[_ngcontent-%COMP%]:not(.selected-node):not(:hover) lib-bimplus-context-menu[_ngcontent-%COMP%]{display:none}.cdk-tree-node.dragable-node[_ngcontent-%COMP%]:hover{background-color:var(--flat-tree-draggable-node-background-color-hovered);background-image:url("./media/6_dots_gray.svg");background-repeat:no-repeat;background-size:var(--flat-tree-node-icon-size, 1.8rem);background-position:left center}.mat-mdc-icon-button[_ngcontent-%COMP%]{padding:.2rem;width:var(--flat-tree-node-line-height, 2.4rem);height:var(--flat-tree-node-line-height, 2.4rem)}.selected-node[_ngcontent-%COMP%]{color:var(--flat-tree-selected-node-text-color-enabled);font-weight:var(--flat-tree-selected-node-font-weight, 700)!important}.selected-all-descendants-nodes[_ngcontent-%COMP%]{color:var(--flat-tree-selected-node-text-color-enabled)}.selected-partially-descendants-nodes[_ngcontent-%COMP%]{color:var(--flat-tree-partially-selected-nodes-text-color-enabled)}.custom-drag-placeholder[_ngcontent-%COMP%]{height:0px}.icon[_ngcontent-%COMP%]{width:var(--flat-tree-node-icon-size, 1.8rem);height:var(--flat-tree-node-icon-size, 1.8rem);margin-right:.4rem;background-position:center;background-size:var(--flat-tree-node-icon-size, 1.8rem)}.icon.folder-icon[_ngcontent-%COMP%]{background:var(--flat-tree-folder-icon, url("./media/bimplus_Components_Projects_Folder.svg") no-repeat);background-size:var(--flat-tree-folder-icon-size, 1.6rem);background-position:center}.icon.object-icon[_ngcontent-%COMP%]{background:var(--flat-tree-object-icon, url("./media/bimplus_Components_Documents.svg") no-repeat);background-size:var(--flat-tree-object-icon-size, 1.6rem);background-position:center}.icon.expand-collapse-icon.expand-more-icon[_ngcontent-%COMP%]{background:var(--flat-tree-node-expand-icon, url("./media/collapsed_18_small.svg") no-repeat);background-size:var(--flat-tree-expand-collapse-icon-size, 1.8rem);background-position:center}.icon.expand-collapse-icon.collapse-icon[_ngcontent-%COMP%]{background:var(--flat-tree-node-collapse-icon, url("./media/expanded_18_small.svg") no-repeat);background-size:var(--flat-tree-expand-collapse-icon-size, 1.8rem);background-position:center}']})}}return t})();var Ao=function(t){return t[t.None=0]="None",t[t.SelectObjectProperties=1]="SelectObjectProperties",t[t.SelectAttributes=2]="SelectAttributes",t}(Ao||{}),Lr=5;function RS(t,n){if(t&1&&(p(0,"span",1),D(1),f()),t&2){let e=u();d(),Kt("",e.criterium.name," \xA0(",e.criterium.value,")")}}function jS(t,n){if(t&1&&(p(0,"span",1),D(1),f()),t&2){let e=u();d(),ae(e.criterium.name)}}var V_=(()=>{class t{constructor(){this.criterium={name:"",subString:""},this.indent=0,this.deleteCriterium=new x}clickedDelete(){this.deleteCriterium.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-filter-criterium"]],hostVars:2,hostBindings:function(i,o){i&2&&Ke("margin-left",o.indent,"em")},inputs:{criterium:"criterium",indent:"indent"},outputs:{deleteCriterium:"deleteCriterium"},standalone:!0,features:[O],decls:4,vars:1,consts:[[1,"filter-criterium-row"],[1,"filter-criterium-item"],[1,"filter-criterium-icon-delete",3,"click","keypress"]],template:function(i,o){i&1&&(p(0,"div",0),M(1,RS,2,2,"span",1)(2,jS,2,1,"span",1),p(3,"div",2),y("click",function(){return o.clickedDelete()})("keypress",function(){return o.clickedDelete()}),f()()),i&2&&(d(),R(o.criterium.value?1:2))},styles:['.filter-criterium-icon-delete[_ngcontent-%COMP%]{background:url("./media/bimplus_WebIcons_Cross.svg") no-repeat center;background-size:1.8rem;height:1.8rem;width:1.8rem;cursor:pointer}.filter-criterium-item[_ngcontent-%COMP%]{flex-grow:1}.filter-criterium-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;height:2.4rem}']})}}return t})();var B_=(()=>{class t{constructor(){this._objectStructure={id:"",name:"",parent:""},this.treeComponent=null,this._treeData=[],this.nodeSelected=new x}set objectStructure(e){this._objectStructure=e,this._updateTreeData()}_convertObjectStructureNodeToTreeNode(e){let i={name:e.name,id:e.id,parent:e.parent};if(e.children){i.children=[];for(let o of e.children){let r=this._convertObjectStructureNodeToTreeNode(o);i.children.push(r)}}return i}_updateTreeData(){if(!this._objectStructure)return;let e=this._convertObjectStructureNodeToTreeNode(this._objectStructure);e&&(this._treeData=[],this._treeData=[e])}get treeData(){return this._treeData}_findNode(e,i){if(i.id==e)return i;if(i.children)for(let o of i.children){let r=this._findNode(e,o);if(r)return r}return null}handleSelectedNodes(e){if(e.length===1){let i=this._findNode(e[0].id,this._objectStructure);i&&this.nodeSelected.emit(i)}}expandTree(){this.treeComponent?.expandTree()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-object-structure"]],viewQuery:function(i,o){if(i&1&&pt(Tt,5),i&2){let r;Se(r=Oe())&&(o.treeComponent=r.first)}},inputs:{objectStructure:"objectStructure"},outputs:{nodeSelected:"nodeSelected"},standalone:!0,features:[O],decls:1,vars:1,consts:[["paddingIndent","1.4rem","enableParentHighlighting","false","dataTestPrefix","object-structure-tree-",3,"selectedNodes","treeData"]],template:function(i,o){i&1&&(p(0,"lib-bimplus-flat-tree",0),y("selectedNodes",function(s){return o.handleSelectedNodes(s)}),f()),i&2&&g("treeData",o.treeData)},dependencies:[Tt],styles:["lib-bimplus-flat-tree[_ngcontent-%COMP%]{--flat-tree-node-indent: 0;--flat-tree-folder-font-weight: 400}"]})}}return t})();var z_=(()=>{class t{constructor(){this._complexProperties={id:"",name:"",parent:""},this.treeComponent=null,this._treeData=[],this.nodeSelected=new x}set complexProperties(e){this._complexProperties=e,this._updateTreeData()}_convertObjectStructureNodeToTreeNode(e){let i={name:e.name,id:e.id,parent:e.parent};if(e.children){i.children=[];for(let o of e.children){let r=this._convertObjectStructureNodeToTreeNode(o);i.children.push(r)}}return i}_updateTreeData(){if(!this._complexProperties)return;let e=this._convertObjectStructureNodeToTreeNode(this._complexProperties);e&&(this._treeData=[],this._treeData=[e])}get treeData(){return this._treeData}_findNode(e,i){if(i.id==e)return i;if(i.children)for(let o of i.children){let r=this._findNode(e,o);if(r)return r}return null}handleSelectedNodes(e){if(e.length===1){let i=this._findNode(e[0].id,this._complexProperties);i&&this.nodeSelected.emit(i)}}expandTree(){this.treeComponent?.expandTree()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-object-complex-properties"]],viewQuery:function(i,o){if(i&1&&pt(Tt,5),i&2){let r;Se(r=Oe())&&(o.treeComponent=r.first)}},inputs:{complexProperties:"complexProperties"},outputs:{nodeSelected:"nodeSelected"},standalone:!0,features:[O],decls:1,vars:1,consts:[["paddingIndent","1.4rem","enableParentHighlighting","false","dataTestPrefix","object-complex-properties-tree-",3,"selectedNodes","treeData"]],template:function(i,o){i&1&&(p(0,"lib-bimplus-flat-tree",0),y("selectedNodes",function(s){return o.handleSelectedNodes(s)}),f()),i&2&&g("treeData",o.treeData)},dependencies:[Tt],styles:["lib-bimplus-flat-tree[_ngcontent-%COMP%]{--flat-tree-node-indent: 0;--flat-tree-folder-font-weight: 400}"]})}}return t})();var Sl=class t{static createFromResponse(n){let e={id:n.id,name:n.name?`${n.type}(${n.name})`:n.type,parent:n.parent};if(n.children){e.children=[];for(let i of n.children)e.children.push(t.createFromResponse(i))}return e}};var Ol=class t{static createFromResponse(n){let e={id:n.id,name:n.type?n.type:n.name,parent:n.parent};if(n.children){e.children=[];for(let i of n.children)e.children.push(t.createFromResponse(i))}return e}};function LS(t,n){if(t&1){let e=P();p(0,"lib-bimplus-object-structure",2),y("nodeSelected",function(o){b(e);let r=u();return _(r.handleObjectStructureNodeSelected(o))}),f()}if(t&2){let e=u();g("objectStructure",e.objectStructure)}}function VS(t,n){if(t&1){let e=P();p(0,"lib-expansion-panel")(1,"lib-expansion-panel-header")(2,"span",0),D(3),N(4,"translate"),f()(),p(5,"lib-bimplus-object-complex-properties",3),y("nodeSelected",function(o){b(e);let r=u();return _(r.handleComplexPropertyNodeSelected(o))}),f()()}if(t&2){let e=u();d(3),B(" ",F(4,2,"_Object multiproperties tree"),""),d(2),g("complexProperties",e.complexProperties)}}function BS(t,n){if(t&1&&(p(0,"div",11),D(1),f()),t&2){let e=u().$implicit;d(),ae(e.value)}}function zS(t,n){t&1&&(p(0,"div",11),D(1,"..."),f())}function HS(t,n){if(t&1){let e=P();p(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9)(4,"input",10),y("click",function(){let o=b(e).$implicit,r=u(3);return _(r.toggleAttribute(o))})("keypress",function(){let o=b(e).$implicit,r=u(3);return _(r.toggleAttribute(o))}),f(),I(5,"span"),f(),p(6,"div",11),D(7),f()(),p(8,"div",8)(9,"label",9)(10,"input",10),y("click",function(){let o=b(e).$implicit,r=u(3);return _(r.toggleAttributeValue(o))})("keypress",function(){let o=b(e).$implicit,r=u(3);return _(r.toggleAttributeValue(o))}),f(),I(11,"span"),f(),M(12,BS,2,1,"div",11)(13,zS,2,0,"div",11),f()()()}if(t&2){let e=n.$implicit,i=u(3);d(4),g("checked",e.checked)("disabled",i.filterCriteria.length===i.MaxFilterCriteria&&!e.checked),d(3),ae(e.name),d(3),g("checked",e.valueChecked)("disabled",i.filterCriteria.length===i.MaxFilterCriteria&&!e.checked),d(2),R(e.value?12:13)}}function $S(t,n){if(t&1&&(p(0,"lib-expansion-panel",4)(1,"lib-expansion-panel-header")(2,"span",5),D(3),f()(),p(4,"div"),Zt(5,HS,14,6,"div",6,br),f()()),t&2){let e=n.$implicit;g("expanded",e.expanded),d(3),B(" ",e.name,""),d(2),Yt(e.attributes)}}function US(t,n){if(t&1&&(p(0,"lib-expansion-panel")(1,"lib-expansion-panel-header")(2,"span",0),D(3),N(4,"translate"),f()(),Zt(5,$S,7,2,"lib-expansion-panel",4,br),f()),t&2){let e=u();d(3),B(" ",F(4,1,"_Object properties"),""),d(2),Yt(e.objectAttributeGroups)}}var H_=(()=>{class t extends le{constructor(e){super(e),this.api=null,this.revision=void 0,this._currentObjectId$=new xe(""),this._currentPropertiesObjectId$=new xe(""),this.objectAttributeGroups=[],this.MaxFilterCriteria=Lr,this._rootObjectId="",this.filterCriteriaChange=new x,this._filterCriteria=[],this._objectStructure=null,this._complexProperties=null}ngOnInit(){this._currentPropertiesObjectId$.subscribe({next:e=>{e&&this._createObjectProperties(e,this.revision)}}),this._currentObjectId$.subscribe({next:e=>{this._currentPropertiesObjectId$.next(e),this._createComplexPropertiestructure(e,this.revision)}})}set rootObjectId(e){this._currentObjectId$.next(e),this._createObjectStructure(e,this.revision),this._rootObjectId=e}get rootObjectId(){return this._rootObjectId}set filterCriteria(e){this._filterCriteria=e,this._syncAttributeStatesFromCriteria()}get filterCriteria(){return this._filterCriteria}get objectStructure(){return this._objectStructure}get complexProperties(){return this._complexProperties}toggleAttribute(e){e.checked=!e.checked,e.checked===!1&&(e.valueChecked=!1),this.handleFilterCriteriumAttributeStateChange(e)}toggleAttributeValue(e){e.valueChecked=!e.valueChecked,e.checked=e.valueChecked,this.handleFilterCriteriumAttributeStateChange(e)}handleFilterCriteriumAttributeStateChange(e){let i=this.filterCriteria.findIndex(o=>o.id===e.id);if(i>=0)(e.checked===!1||e.valueChecked===!1)&&(this.filterCriteria.splice(i,1),this.filterCriteriaChange.emit(this.filterCriteria));else if(this.filterCriteria.length<Lr){let o=`[I][${e.id}].Value`;e.valueChecked&&(o+=`[F][0]=${e.value}`),this.filterCriteria.push({name:e.name,value:e.valueChecked?e.value:void 0,id:e.id,subString:o}),this.filterCriteriaChange.emit(this.filterCriteria)}}handleObjectStructureNodeSelected(e){this._currentObjectId$.next(e.id)}handleComplexPropertyNodeSelected(e){this._currentPropertiesObjectId$.next(e.id)}_createObjectProperties(e,i){this._loadObjectProperties(e,i)?.subscribe({next:o=>{this.objectAttributeGroups=this._createAttributeGroupsFromResponse(o),this._syncAttributeStatesFromCriteria()},error:()=>{this.objectAttributeGroups=[]}})}_createAttributeGroupsFromResponse(e){let i=[],o=null;if(e.localizedAttributeGroups&&(o=e.localizedAttributeGroups),!e.attributes)return i;let r=e.attributes;for(let[s,a]of Object.entries(r)){let l={name:s,expanded:!1,attributes:[]};if(o?.[s]&&(l.name=o[s]),!!a){for(let c of Object.values(a)){let m={id:c.id,name:c.name,description:c.description,value:c.value,checked:!1,valueChecked:!1,group:c.group};l.attributes.push(m)}i.push(l)}}return i}_syncAttributeStatesFromCriteria(){this.objectAttributeGroups.forEach(e=>{e.attributes.forEach(i=>{let o=this._filterCriteria.find(r=>r.id==i.id);o?(i.checked=!0,i.valueChecked=o.value!==void 0):(i.checked=!1,i.valueChecked=!1)})})}_loadObjectProperties(e,i){if(this.api)return He(this.api.objects.get(e,i,"8",void 0,!1,void 0))}_loadObjectStructure(e,i){if(this.api)return He(this.api.objects.getTopology(e,i,!1,!1,void 0))}_loadObjectComplexPropertiesStructure(e,i){if(this.api)return He(this.api.objects.getComplexPropertiesTopology(e,i))}_createComplexPropertiestructure(e,i){this._loadObjectComplexPropertiesStructure(e,i)?.subscribe({next:o=>{if(o){let r=Ol.createFromResponse(o);r?.children?.length?this._complexProperties=r:this._complexProperties=null}}})}_createObjectStructure(e,i){this._loadObjectStructure(e,i)?.subscribe({next:o=>{o&&(this._objectStructure=Sl.createFromResponse(o))}})}static{this.\u0275fac=function(i){return new(i||t)(v(T))}}static{this.\u0275cmp=S({type:t,selectors:[["lib-criteria-select-object-properties"]],inputs:{api:"api",rootObjectId:"rootObjectId",revision:"revision",filterCriteria:"filterCriteria"},outputs:{filterCriteriaChange:"filterCriteriaChange"},standalone:!0,features:[U,O],decls:8,vars:6,consts:[[1,"criteria-select-object-properties-header"],[3,"objectStructure"],[3,"nodeSelected","objectStructure"],[3,"nodeSelected","complexProperties"],[3,"expanded"],[1,"criteria-select-object-properties-group-header"],[1,"criteria-select-object-properties-attrib-row"],[1,"criteria-select-object-properties-attrib-row-content"],[1,"criteria-select-object-properties-attrib-row-cell","criteria-select-checkbox"],[1,"criteria-select-object-properties-attrib-row-cell-label"],["type","checkbox",3,"click","keypress","checked","disabled"],[1,"criteria-select-object-properties-attrib-row-cell-text"]],template:function(i,o){i&1&&(p(0,"lib-expansion-panel")(1,"lib-expansion-panel-header")(2,"span",0),D(3),N(4,"translate"),f()(),M(5,LS,1,1,"lib-bimplus-object-structure",1),f(),M(6,VS,6,4,"lib-expansion-panel")(7,US,7,3,"lib-expansion-panel")),i&2&&(d(3),B(" ",F(4,4,"_Object structure"),""),d(2),R(o.objectStructure?5:-1),d(),R(o.complexProperties?6:-1),d(),R(o.objectAttributeGroups.length>0?7:-1))},dependencies:[Wn,Un,J,me,B_,z_],styles:['.criteria-select-object-properties-header[_ngcontent-%COMP%]{font-weight:700;text-transform:uppercase;font-size:1.4rem}.criteria-select-object-properties-group-header[_ngcontent-%COMP%]{line-height:2.4rem}.criteria-select-object-properties-attrib-row[_ngcontent-%COMP%]{display:flex;width:calc(100% - 2rem);flex-direction:row;flex-wrap:nowrap;overflow:hidden;padding-left:2rem}.criteria-select-object-properties-attrib-row[_ngcontent-%COMP%]:hover{background-color:var(--object-navigator-criteria-select-object-properties-attribute-row-background-color-hovered)}.criteria-select-object-properties-attrib-row-content[_ngcontent-%COMP%]{display:inline-flex;width:100%}.criteria-select-object-properties-attrib-row-cell[_ngcontent-%COMP%]{flex-basis:50%;display:flex;overflow:hidden;text-overflow:ellipsis}.criteria-select-object-properties-attrib-row-cell-label[_ngcontent-%COMP%]{display:inline-flex}.criteria-select-object-properties-attrib-row-cell-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.criteria-select-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.criteria-select-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]{background-image:url("./media/checkbox_on.svg")}.criteria-select-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:hover{background-image:url("./media/checkbox_on_hovered.svg")}.criteria-select-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked:disabled + span[_ngcontent-%COMP%]{background-image:url("./media/checkbox_on_disabled.svg")}.criteria-select-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled + span[_ngcontent-%COMP%]{background-image:url("./media/checkbox_off_disabled.svg")}.criteria-select-checkbox[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-image:url("./media/checkbox_off.svg");width:1.8rem;height:1.8rem;margin-top:.1rem;vertical-align:middle;border:0;background-color:transparent;background-position:-.3rem center;background-size:100% 100%;background-repeat:no-repeat}.criteria-select-checkbox[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{background-image:url("./media/checkbox_off_hovered.svg")}']})}}return t})();function WS(t,n){if(t&1&&(p(0,"div",2),D(1),f()),t&2){let e=u().node,i=u();d(),Kt(" ",e.name," \xA0( ",i.getNodeObjectCounter(e.id)," )")}}function GS(t,n){if(t&1&&(p(0,"div",3),D(1),f()),t&2){let e=u().node,i=u();d(),Kt(" ",e.name," \xA0( ",i.getNodeObjectCounter(e.id)," )")}}function qS(t,n){if(t&1){let e=P();p(0,"span",3)(1,"div",4),y("dblclick",function(){b(e);let o=u().node,r=u();return _(r.dblClickedObjectNode(o))})("mouseenter",function(){b(e);let o=u().node,r=u();return _(r.mouseEnterObjectNode(o))})("mouseleave",function(){b(e);let o=u().node,r=u();return _(r.mouseLeaveObjectNode(o))}),D(2),f()()}if(t&2){let e=u().node;d(2),B(" ",e.name," ")}}function ZS(t,n){if(t&1&&M(0,WS,2,2,"div",2)(1,GS,2,2,"div",3)(2,qS,3,1,"span",3),t&2){let e,i=n.node;R((e=i.nodeType)==="rootNode"?0:e==="structureNode"?1:e==="objectNode"?2:-1)}}var $_=(()=>{class t{constructor(){this.treeComponent=null,this.nodeSelectionChanged=new x,this.nodeDoubleClicked=new x,this.nodeMouseEntered=new x,this.nodeMouseLeft=new x,this._filterResult=null,this._treeData=[],this._treeNodesLookup={},this._treeNodeObjectCounts={},this._selectedObjects=[]}set filterResult(e){this._filterResult=e,this._updateTreeData()}set selectedObjects(e){this._selectedObjects=e,this._syncSelectedObjects()}get treeData(){return this._treeData}ngAfterViewInit(){this._treeData&&this._treeData.length>0&&this._expandToObjectLevel(this._treeData[0])}handleSelectedNodes(e){this.nodeSelectionChanged.emit(e.map(i=>i.id))}getNodeObjectCounter(e){return this._treeNodeObjectCounts[e]}dblClickedObjectNode(e){this.nodeDoubleClicked.emit(e.id)}mouseEnterObjectNode(e){this.nodeMouseEntered.emit(e.id)}mouseLeaveObjectNode(e){this.nodeMouseLeft.emit(e.id)}expandToObjectLevel(){this.treeData.length!==0&&this._expandToObjectLevel(this._treeData[0])}_syncSelectedObjects(){let e=[];for(let i of this._selectedObjects){let o=this._treeNodesLookup[i];o&&e.push(o)}this.treeComponent?.reset_selection();for(let i of e)this.treeComponent?.select_node(i.id)}_updateObjectCounters(){this._treeNodeObjectCounts={},this._countObjects(this.treeData[0])}_countObjects(e){if(e.nodeType&&e.nodeType==="objectNode")return 1;let i=0;if(!e.children)return 0;for(let o of e.children)o&&(i+=this._countObjects(o));return this._treeNodeObjectCounts[e.id]=i,i}_updateTreeData(){this._filterResult&&(this._treeNodesLookup={},this._treeData=[this._convertFilterResultToTreeNode(this._filterResult.structure,this._treeNodesLookup)],this._updateObjectCounters())}_convertFilterResultToTreeNode(e,i=void 0){let o={name:e.name,id:e.id,parent:e.parent};if(e.children){o.children=[];for(let r of e.children){let s=this._convertFilterResultToTreeNode(r,i);o.children.push(s)}}return o.parent?e.type==="Structure"?o.nodeType="structureNode":o.nodeType="objectNode":o.nodeType="rootNode",i&&(i[o.id]=o),o}_expandToObjectLevel(e){if(e.children)for(let i of e.children){if(i.nodeType&&i.nodeType==="objectNode")return;this._expandToObjectLevel(i)}this.treeComponent?.expand_node(e.id)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["lib-object-filter-result"]],viewQuery:function(i,o){if(i&1&&pt(Tt,5),i&2){let r;Se(r=Oe())&&(o.treeComponent=r.first)}},inputs:{filterResult:"filterResult",selectedObjects:"selectedObjects"},outputs:{nodeSelectionChanged:"nodeSelectionChanged",nodeDoubleClicked:"nodeDoubleClicked",nodeMouseEntered:"nodeMouseEntered",nodeMouseLeft:"nodeMouseLeft"},standalone:!0,features:[O],decls:3,vars:2,consts:[["objFilterResultNode",""],["paddingIndent","1.4rem","enableParentHighlighting","false","oneLevelMultiSelect","false","multiSelect","true","dataTestPrefix","object-filter-result-tree-",3,"selectedNodes","treeData","customNodeTemplate"],[1,"object-navigator-filter-result-root-node","noselect"],[1,"noselect"],[1,"noselect",3,"dblclick","mouseenter","mouseleave"]],template:function(i,o){if(i&1){let r=P();p(0,"lib-bimplus-flat-tree",1),y("selectedNodes",function(a){return b(r),_(o.handleSelectedNodes(a))}),f(),M(1,ZS,3,1,"ng-template",null,0,_t)}if(i&2){let r=Qe(2);g("treeData",o.treeData)("customNodeTemplate",r)}},dependencies:[Tt],styles:[".noselect[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}lib-bimplus-flat-tree[_ngcontent-%COMP%]{--flat-tree-node-indent: 0;--flat-tree-folder-font-weight: 400;--flat-tree-selected-node-font-weight: 700}.object-navigator-filter-result-root-node[_ngcontent-%COMP%]{display:inline-block;text-transform:uppercase;line-height:2.4rem;font-weight:700;font-size:.9375em;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}"]})}}return t})();var U_="tabAttribElement.DivisionID",Oi=class{constructor(n="",e=5){this._filterString="",this._maxFilterCriteria=5,this._filterString=n,this._maxFilterCriteria=e}get filterString(){return this._filterString}fromFilterCriteria(n){this._filterString=`[I]${U_}`;for(let e of n)this._filterString+=e.subString;return this._filterString}getReadableValuesFromFilterCriteria(n){let e={};for(let i of n)i.id&&i.name&&(e[i.id]=i.name);return e}toFilterCriteria(n=void 0){let e=[],i=!1,o=this._filterString.split("[I]");for(let r of o)if(r.length!==0){if(r.includes(U_)&&!i){i=!0;continue}if(e.push(this._parseFilterSubstring(r,n)),e.length===this._maxFilterCriteria)break}return e}_parseFilterSubstring(n,e=void 0){let i=n,o,r=n.indexOf("["),s=n.indexOf("]");if(r>=0&&s>=0&&s>r){let a=n.slice(r+1,s);if(o=a,a&&e){let l=e[a];l&&(i=l)}}else if(n.includes(".")){let a=n.split(".");i=a[a.length-1]}return{name:i,subString:"[I]"+n,id:o}}};var Tl=class{static fetchObjectFilterStructureFromSelection(n,e,i,o){let r=!e.id,s=e.id?e.id:"",a=null;return r?a=He(o.objectFilters.post(JSON.stringify(e),n)).pipe($t(l=>{if(!l?.id)throw new Error("Failed to create temporary filter object");return s=l.id,He(o.exportService.createExportSelection(n,JSON.stringify(i)))}),$t(l=>{if(!l?.id)throw new Error("Failed to create selection object");return He(o.objectFilters.getSelectionFilteredObjects(l.id,s,void 0,void 0)).pipe(be(c=>(o.objectFilters.delete(s),c)))})):a=He(o.exportService.createExportSelection(n,JSON.stringify(i))).pipe($t(l=>{if(!l?.id)throw new Error("Failed to create selection object");return He(o.objectFilters.getSelectionFilteredObjects(l.id,s,void 0,void 0))})),a}};var YS=t=>({disabled:t});function KS(t,n){if(t&1&&(p(0,"ng-option",18),D(1),f()),t&2){let e=n.$implicit;g("value",e),d(),ae(e.name)}}function QS(t,n){if(t&1&&(p(0,"ng-option",18),D(1),f()),t&2){let e=n.$implicit;g("value",e),d(),ae(e.name)}}function XS(t,n){if(t&1&&I(0,"lib-bimplus-context-menu",9),t&2){let e=u(3);g("items",e.filterContextMenu)}}function JS(t,n){if(t&1&&M(0,XS,1,1,"lib-bimplus-context-menu",19),t&2){let e=u(2);g("ngIf",e.filterContextMenu==null?null:e.filterContextMenu.length)}}function eO(t,n){if(t&1){let e=P();p(0,"app-filter-criterium",20),y("deleteCriterium",function(){let o=b(e).$index,r=u(2);return _(r.deleteFilterCriterium(o))}),f()}if(t&2){let e=n.$implicit,i=n.$index;g("criterium",e)("indent",i*.8)}}function tO(t,n){t&1&&(p(0,"p",21),D(1),N(2,"translate"),f()),t&2&&(d(),ae(F(2,1,"_NoObjectSelected")))}function nO(t,n){if(t&1){let e=P();p(0,"div",22)(1,"lib-bimplus-scrollable-container")(2,"lib-criteria-select-object-properties",23),yi("filterCriteriaChange",function(o){b(e);let r=u(3);return uo(r.filterCriteria,o)||(r.filterCriteria=o),_(o)}),y("filterCriteriaChange",function(){b(e);let o=u(3);return _(o.activateModifiedCustomFilter())}),f()()()}if(t&2){let e=u(3);d(2),g("api",e.api)("selectedLanguage",e.selectedLanguage)("localizedStrings",e.localizedStrings),vi("filterCriteria",e.filterCriteria),g("rootObjectId",e.selectedObjectId)}}function iO(t,n){if(t&1&&M(0,tO,3,3,"p",21)(1,nO,3,5,"div",22),t&2){let e=u(2);R(e.selectedObjectId?1:0)}}function oO(t,n){}function rO(t,n){if(t&1){let e=P();p(0,"div",22)(1,"lib-bimplus-scrollable-container")(2,"lib-object-filter-result",24),y("nodeSelectionChanged",function(o){b(e);let r=u(3);return _(r.handleFilterResultSelectionChanged(o))})("nodeDoubleClicked",function(o){b(e);let r=u(3);return _(r.handleFilterResulObjectDoubleClicked(o))})("nodeMouseEntered",function(o){b(e);let r=u(3);return _(r.handleFilterResulObjectMouseEntered(o))})("nodeMouseLeft",function(o){b(e);let r=u(3);return _(r.handleFilterResulObjectMouseLeft(o))}),f()()()}if(t&2){let e=u(3);d(2),g("filterResult",e.filterResult)("selectedObjects",e.selectedObjects)}}function sO(t,n){if(t&1&&M(0,rO,3,2,"div",22),t&2){let e=u(2);R(e.filterResult?0:-1)}}function aO(t,n){if(t&1){let e=P();p(0,"div",3),D(1),N(2,"translate"),f(),p(3,"div",4)(4,"ng-select",5),yi("ngModelChange",function(o){b(e);let r=u();return uo(r.activeFilterType,o)||(r.activeFilterType=o),_(o)}),M(5,KS,2,2,"ng-option",6),f()(),p(6,"div",7)(7,"ng-select",8),yi("ngModelChange",function(o){b(e);let r=u();return uo(r.activeFilter,o)||(r.activeFilter=o),_(o)}),M(8,QS,2,2,"ng-option",6),f(),M(9,JS,1,1,"lib-bimplus-context-menu",9),f(),p(10,"lib-expansion-panel",10)(11,"lib-expansion-panel-header")(12,"span",11),D(13),N(14,"translate"),f(),p(15,"lib-expansion-panel-header-actions")(16,"div",12),N(17,"translate"),y("click",function(){b(e);let o=u();return _(o.setFilterCriteriaSelectionMode(o.FilterCriteriaSelectionMode.SelectObjectProperties))})("keypress",function(){b(e);let o=u();return _(o.setFilterCriteriaSelectionMode(o.FilterCriteriaSelectionMode.SelectObjectProperties))}),f()()(),p(18,"div",13),Zt(19,eO,1,2,"app-filter-criterium",14,br),f()(),p(21,"div",15)(22,"button",16),y("click",function(){b(e);let o=u();return _(o.applyFilter())}),D(23),N(24,"translate"),f()(),I(25,"div",17),M(26,iO,2,1)(27,oO,0,0)(28,sO,1,1)}if(t&2){let e,i=u();d(),B(" ",F(2,19,"_Select_an_object_using_Object_Picker")," "),d(3),vi("ngModel",i.activeFilterType),g("clearable",!1)("searchable",!1),d(),g("ngForOf",i.filterTypes),d(2),vi("ngModel",i.activeFilter),g("clearable",!1)("disabled",!i.filters)("searchable",!1),d(),g("ngForOf",i.filters),d(),R(i.hideFilterContextMenu?-1:9),d(4),Kt(" ",F(14,21,"_Assign_Objects_Selection_Mode")," (",i.filterCriteria.length,") "),d(3),g("ngClass",i.filterCriteriaSelectionMode$.getValue()===i.FilterCriteriaSelectionMode.SelectObjectProperties?"active":"")("title",F(17,23,"_Object_Picker")),d(3),Yt(i.filterCriteria),d(3),g("ngClass",De(27,YS,i.filterCriteria.length===0))("disabled",i.filterCriteria.length===0),d(),B(" ",F(24,25,"_Apply filter")," "),d(3),R((e=i.filterCriteriaSelectionMode$.getValue())===i.FilterCriteriaSelectionMode.SelectObjectProperties?26:e===i.FilterCriteriaSelectionMode.SelectAttributes?27:28)}}function lO(t,n){t&1&&(p(0,"div",2),D(1),N(2,"translate"),f()),t&2&&(d(),B(" ",F(2,1,"_No_visible_models_found")," "))}var W_=(()=>{class t extends le{constructor(e){super(e),this.hideFilterContextMenu=!1,this.filterContextMenu=[],this.activeFilterTypeSubject$=new xe(null),this.activeFilterSubject$=new xe(null),this.filters=null,this.filterCriteria=[],this.api=null,this.projectId="",this.objNavClassClass=!0,this.filterCriteriaSelectionMode$=new xe(Ao.None),this.filterCriteriaSelectionModeChanged=new x,this.selectedObjectId=null,this.selectedObjects=[],this.selectionObject=null,this.filterResultObjectSelectionChanged=new x,this.filterResultObjectDoubleClicked=new x,this.filterResultObjectMouseEntered=new x,this.filterResultObjectMouseLeft=new x,this.FilterCriteriaSelectionMode=Ao,this.isLoadingResults=!1,this._filterResult=null,this._filterTypes=[]}set filterTypes(e){this._filterTypes=e,this._filterTypes.length>0&&(this.activeFilterType=this._filterTypes[0])}get filterTypes(){return this._filterTypes}set activeFilterType(e){this.activeFilterTypeSubject$.next(e)}get activeFilterType(){return this.activeFilterTypeSubject$.getValue()}set activeFilter(e){e&&!e.id&&this._setDefaultCustomFilterString(e),this.activeFilterSubject$.next(e)}get activeFilter(){return this.activeFilterSubject$.getValue()}get filterResult(){return this._filterResult}ngOnInit(){this.activeFilterTypeSubject$.subscribe({next:e=>{!this.projectId||!this.api||!e||(this.activeFilter=null,this.loadCurrentLayerFilters(this.projectId,e.id)?.subscribe({next:i=>{this.filters=[this._createDefaultCustomFilter(e.id),...i],this.activeFilter=this.filters[0]},error:i=>{throw new Error(i)}}))}}),this.activeFilterSubject$.subscribe({next:e=>{e&&(this.filterCriteria=this.parseFilterString(e))}}),this.filterCriteriaSelectionMode$.subscribe({next:e=>{this.filterCriteriaSelectionModeChanged.emit(e)}}),this.filterTypes.length>0&&(this.activeFilterType=this.filterTypes[0])}loadCurrentLayerFilters(e,i){if(this.api)return He(this.api.objectFilters.get(i,e))}parseFilterString(e){return new Oi(e.filterString,Lr).toFilterCriteria(e.readableValues)}deleteFilterCriterium(e){this.filterCriteria.splice(e,1),this.filterCriteria=[...this.filterCriteria],this.activateModifiedCustomFilter()}setFilterCriteriaSelectionMode(e){if(this.filterCriteriaSelectionMode$.getValue()==e){this.filterCriteriaSelectionMode$.next(Ao.None);return}this.filterCriteriaSelectionMode$.next(e)}applyFilter(){this.filterCriteriaSelectionMode$.next(Ao.None),this._filterResult=null,this.activeFilter&&!this.activeFilter.id&&(this.activeFilter.filterString=new Oi().fromFilterCriteria(this.filterCriteria)),this.selectionObject&&this._applySelectionObjectFilter(this.activeFilter)}handleFilterResultSelectionChanged(e){this.filterResultObjectSelectionChanged.emit(e)}handleFilterResulObjectDoubleClicked(e){this.filterResultObjectDoubleClicked.emit(e)}handleFilterResulObjectMouseEntered(e){this.filterResultObjectMouseEntered.emit(e)}handleFilterResulObjectMouseLeft(e){this.filterResultObjectMouseLeft.emit(e)}activateModifiedCustomFilter(){this.activeFilter?.id&&this.filters&&(this.filters[0].filterString=new Oi().fromFilterCriteria(this.filterCriteria),this.filters[0].readableValues=new Oi().getReadableValuesFromFilterCriteria(this.filterCriteria),this.activeFilterSubject$.next(this.filters[0]))}_applySelectionObjectFilter(e){!this.api||!this.selectionObject||!e||(this.selectionObject.singleUse=!0,this.selectionObject.selection.singleuse=!0,this.isLoadingResults=!0,Tl.fetchObjectFilterStructureFromSelection(this.projectId,e,this.selectionObject,this.api).subscribe({next:i=>{this._filterResult=i,this.isLoadingResults=!1}}))}_setDefaultCustomFilterString(e){let i="a0e8ae2c-c869-4ec3-9019-25d3704be707";e.filterString=`[I][${i}].Value`,e.readableValues={},e.readableValues[i]="Type"}_createDefaultCustomFilter(e){let i={module:"00000000-0000-0000-0000-000000000000",category:"",disciplineID:e,name:"Custom filter",filterString:"",isDefault:!1,disableSortByModels:!1};return this._setDefaultCustomFilterString(i),i}static{this.\u0275fac=function(i){return new(i||t)(v(T))}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-object-navigator"]],hostVars:2,hostBindings:function(i,o){i&2&&Z("object-navigator",o.objNavClassClass)},inputs:{hideFilterContextMenu:"hideFilterContextMenu",filterContextMenu:"filterContextMenu",filterTypes:"filterTypes",filters:"filters",api:"api",projectId:"projectId",selectedObjectId:"selectedObjectId",selectedObjects:"selectedObjects",selectionObject:"selectionObject"},outputs:{filterCriteriaSelectionModeChanged:"filterCriteriaSelectionModeChanged",filterResultObjectSelectionChanged:"filterResultObjectSelectionChanged",filterResultObjectDoubleClicked:"filterResultObjectDoubleClicked",filterResultObjectMouseEntered:"filterResultObjectMouseEntered",filterResultObjectMouseLeft:"filterResultObjectMouseLeft"},standalone:!0,features:[U,O],decls:6,vars:8,consts:[[3,"header","isLoading","loadingSpinnerText"],[1,"object-navigator-content-container"],["data-test","object-navigator-no-filter-types-message",1,"object-navigator-no-filter-types"],[1,"description"],[1,"object-navigator-filters-type"],["data-test","object-navigator-filter-types-dropdown",1,"object-navigator-dropdown",3,"ngModelChange","ngModel","clearable","searchable"],[3,"value",4,"ngFor","ngForOf"],[1,"object-navigator-filters-name"],["data-test","object-navigator-filters-name-dropdown",1,"object-navigator-dropdown",3,"ngModelChange","ngModel","clearable","disabled","searchable"],[1,"object-navigator-filters-name-context-menu",3,"items"],[1,"object-navigator-filter-criteria-panel"],[1,"object-navigator-filter-criteria-header"],[1,"object-navigator-pick-object-button",3,"click","keypress","ngClass","title"],[1,"filter-criteria-container"],[3,"criterium","indent"],[1,"object-navigator-apply-button-row"],[1,"primary-button",3,"click","ngClass","disabled"],[1,"object-navigator-separator"],[3,"value"],["class","object-navigator-filters-name-context-menu",3,"items",4,"ngIf"],[3,"deleteCriterium","criterium","indent"],["id","NoObjectSelected"],[1,"scrollable-content-container"],[3,"filterCriteriaChange","api","selectedLanguage","localizedStrings","filterCriteria","rootObjectId"],[3,"nodeSelectionChanged","nodeDoubleClicked","nodeMouseEntered","nodeMouseLeft","filterResult","selectedObjects"]],template:function(i,o){i&1&&(p(0,"lib-bimplus-sidenav-drawer-content",0),N(1,"translate"),N(2,"translate"),p(3,"div",1),M(4,aO,29,29)(5,lO,3,3,"div",2),f()()),i&2&&(g("header",F(1,4,"_Object navigator"))("isLoading",o.isLoadingResults)("loadingSpinnerText",F(2,6,"_Loading_Filter_Results")),d(4),R(o.filterTypes.length>0?4:5))},dependencies:[j,ie,we,We,qa,Wa,Sr,Qa,Ka,Pr,V_,Un,Wn,wo,Co,J,me,H_,Qn,$_,Lt],styles:[`.ng-select.ng-select-opened>.ng-select-container{background:var(--select-container-open-background-color-enabled);border-color:var(--select-container-open-border-color-enabled)}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent var(--select-container-open-arrow-border-color-enabled);border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent var(--select-container-open-arrow-border-color-hovered)}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-disabled>.ng-select-container{background-color:var(--select-container-background-color-disabled)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:var(--select-container-text-color-enabled);background-color:var(--select-container-background-color-enabled);border-radius:0;border:1px solid var(--select-container-border-color-enabled);min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px 0 var(--select-container-box-shadow-color-hovered);background-color:var(--select-container-background-color-hovered)}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:var(--select-container-placeholder-text-color-enabled)}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:var(--select-multiple-disabled-container-value-background-color-enabled);border:1px solid var(--select-multiple-disabled-container-value-border-color-enabled)}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:var(--select-multiple-container-value-text-color-enabled);background-color:var(--select-multiple-container-value-background-color-enabled);border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:var(--select-multiple-container-value-background-color-disabled)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--select-multiple-container-value-icon-background-color-hovered)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid var(--select-multiple-container-value-icon-left-border-color-enbabled)}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid var(--select-multiple-container-value-icon-left-border-color-enbabled);border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid var(--select-multiple-container-value-icon-right-border-color-enbabled)}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid var(--select-multiple-container-value-icon-right-border-color-enbabled)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:var(--select-multiple-container-value-input-text-color-enabled)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:var(--select-clear-wrapper-text-color-enabled)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--select-clear-wrapper-text-color-hovered)}.ng-select .ng-clear-wrapper:focus .ng-clear{color:var(--select-clear-wrapper-text-color-focused)}.ng-select .ng-clear-wrapper:focus{outline:none}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:var(--select-arrow-wrapper-border-color-hovored)}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:var(--select-arrow-wrapper-border-color-enabled) transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:var(--dropdown-panel-background-color-enabled);border:1px solid var(--dropdown-panel-border-color-enabled);box-shadow:0 1px 0 var(--dropdown-panel-box-shadow-color-enabled);left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:var(--dropdown-panel-select-top-border-color-enabled);margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:var(--dropdown-panel-select-right-border-color-enabled);margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-color:var(--dropdown-panel-select-bottom-border-color-enabled);margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:var(--dropdown-panel-select-left-border-color-enabled);margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--dropdown-panel-header-border-color-enabled);padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--dropdown-panel-footer-border-color-enabled);padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:var(--dropdown-panel-items-text-color-enabled);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--dropdown-panel-items-marked-background-color-enabled)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:var(--dropdown-panel-items-option-selected-text-color-enabled);background-color:var(--dropdown-panel-items-option-selected-background-color-enabled);font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:var(--dropdown-panel-items-option-background-color-enabled);color:var(--dropdown-panel-items-option-text-color-enabled);padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:var(--dropdown-panel-items-option-selected2-text-color-enabled);background-color:var(--dropdown-panel-items-option-selected2-background-color-enabled)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--dropdown-panel-items-marked-background-color-enabled);color:var(--dropdown-panel-items-marked-text-color-enabled)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--dropdown-panel-items-text-color-disabled)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}.primary-button{text-transform:uppercase;font: 700 1rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;display:inline-block;margin-left:.8rem;height:2.4rem;white-space:nowrap;border-radius:.2rem;vertical-align:middle;font-size:1.2rem;border:solid .2rem var(--primary-button-border-color-enabled);color:var(--primary-button-text-color-enabled);background-color:var(--primary-button-background-color-enabled);cursor:pointer}.primary-button:hover{border:solid .2rem var(--primary-button-border-color-hovered);color:var(--primary-button-text-color-hovered);background-color:var(--primary-button-background-color-hovered);outline:0}.primary-button:focus{border:solid .2rem var(--primary-button-border-color-focused);color:var(--primary-button-text-color-focused);background-color:var(--primary-button-background-color-focused);outline:0}.primary-button:disabled,.primary-button:disabled:active,.primary-button.disabled{border:solid .2rem var(--primary-button-border-color-disabled);color:var(--primary-button-text-color-disabled);background-color:var(--primary-button-background-color-disabled);cursor:default}.primary-button:active{border:solid .2rem var(--primary-button-border-color-pressed);color:var(--primary-button-text-color-pressed);background-color:var(--primary-button-background-color-pressed);cursor:default}:host{display:flex}lib-bimplus-sidenav-drawer-content{width:100%;max-height:100%;display:flex;flex:1}lib-bimplus-sidenav-drawer-content .object-navigator-content-container{display:flex;flex-direction:column;width:100%;max-height:100%;flex:1}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.description{margin-bottom:.8rem;font-size:1.2rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-no-filter-types{font-size:1.2rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filters-type{flex:0;margin-top:.1rem;margin-bottom:.1rem;height:2.4rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filters-type>.object-navigator-dropdown .ng-select-container{height:2.4rem;min-height:2.4rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filters-name{flex:0;margin-top:.1rem;margin-bottom:.1rem;height:2.4rem;display:flex;flex-direction:row}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filters-name>.object-navigator-dropdown{flex:1}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filters-name>.object-navigator-dropdown .ng-select-container{height:2.4rem;min-height:2.4rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filters-name>.object-navigator-filters-name-context-menu{--context-menu-trigger-width: 2.4rem;--context-menu-trigger-height: 2.4rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-filter-criteria-panel{flex:0;padding-top:.8rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-apply-button-row{flex:0;display:flex;margin-top:.8rem;margin-bottom:.8rem;justify-content:flex-end}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.object-navigator-separator{flex:0;border-top:solid .078125em var(--object-navigator-separator-border-color-enabled);padding-bottom:.8rem}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.scrollable-content-container{position:relative;flex:1;width:100%;display:flex;flex-direction:column}lib-bimplus-sidenav-drawer-content .object-navigator-content-container>.scrollable-content-container>lib-bimplus-scrollable-container{position:absolute;top:0;bottom:0;flex:1;width:100%}.filter-criteria-container{display:flex;flex-direction:column;width:calc(100% - 2.4rem);padding-left:2.4rem;height:14.4rem}:host(.object-navigator){height:100%;width:100%}.object-navigator-filter-action-buttons{width:2.4rem;height:2.4rem;display:inline-block;background-position:center center;background-repeat:no-repeat;cursor:pointer;background-size:1.8rem 1.8rem;color:var(--object-navigator-filter-action-buttons-text-color);margin-left:.4rem}.object-navigator-select-attributes-button{background-image:url("./media/Properties_18_gray.svg");width:2.4rem;height:2.4rem;display:inline-block;background-position:center center;background-repeat:no-repeat;cursor:pointer;background-size:1.8rem 1.8rem;color:var(--object-navigator-filter-action-buttons-text-color);margin-left:.4rem}.object-navigator-select-attributes-button.active{background-image:url("./media/Properties_18_maincolor.svg")}.object-navigator-pick-object-button{background-image:url("./media/Pipette_18_gray.svg");width:2.4rem;height:2.4rem;display:inline-block;background-position:center center;background-repeat:no-repeat;cursor:pointer;background-size:1.8rem 1.8rem;color:var(--object-navigator-filter-action-buttons-text-color);margin-left:.4rem}.object-navigator-pick-object-button.active{background-image:url("./media/Pipette_18_maincolor.svg")}.object-navigator-filter-criteria-header{display:inline-block;text-transform:uppercase;line-height:2.4rem;font-weight:700;font-size:.9375em;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}
34
34
  `],encapsulation:3})}}return t})();var cO=[[["",8,"tooltip-message-title-content"]],[["",8,"tooltip-message-messages-content"]],[["",8,"tooltip-message-footer-content"]]],dO=[".tooltip-message-title-content",".tooltip-message-messages-content",".tooltip-message-footer-content"],uO=(t,n)=>({"top.px":t,"left.px":n});function pO(t,n){if(t&1&&(p(0,"div",5),D(1),f()),t&2){let e=u(2);d(),B(" ",e.messageData.title," ")}}function mO(t,n){t&1&&(nt(0),I(1,"div",12),it())}function fO(t,n){if(t&1&&(p(0,"span",13),D(1),f()),t&2){let e=u().$implicit;Z("failed",e.type==="failed")("success",e.type==="success"),d(),B(" ",e.label," ")}}function gO(t,n){t&1&&(nt(0),D(1,":"),it())}function hO(t,n){if(t&1&&(p(0,"span",14),M(1,gO,2,0,"ng-container",8),D(2),f()),t&2){let e=u().$implicit;d(),g("ngIf",e.label),d(),B(" ",e.value," ")}}function bO(t,n){if(t&1&&(nt(0),M(1,mO,2,0,"ng-container",8),p(2,"div",9),M(3,fO,2,5,"span",10)(4,hO,3,2,"span",11),f(),it()),t&2){let e=n.$implicit;d(),g("ngIf",e.separatingLine),d(2),g("ngIf",e.label),d(),g("ngIf",e.value)}}function _O(t,n){if(t&1&&(p(0,"div",6),M(1,bO,5,3,"ng-container",7),f()),t&2){let e=u(2);d(),g("ngForOf",e.messageData.messages)}}function vO(t,n){if(t&1&&(p(0,"div",15),D(1),f()),t&2){let e=u(2);d(),B(" ",e.messageData.footer," ")}}function yO(t,n){if(t&1){let e=P();p(0,"div",1),y("clickOutside",function(){b(e);let o=u();return _(o._clickOutside())}),Ee(1),M(2,pO,2,1,"div",2),Ee(3,1),M(4,_O,2,1,"div",3),Ee(5,2),M(6,vO,2,1,"div",4),f()}if(t&2){let e=u();g("ngStyle",mt(4,uO,e.messagePosition.posY,e.messagePosition.posX)),d(2),g("ngIf",e.messageData&&e.messageData.title),d(2),g("ngIf",e.messageData&&e.messageData.messages),d(2),g("ngIf",e.messageData&&e.messageData.footer)}}var G_=(()=>{class t{constructor(e){this.el=e,this.messagePosition={posX:0,posY:0},this.messageData={},this.messageVisibility=!1,this.messageVisibilityChange=new x,this._parentWidth=0,this._parentHeight=0,this._element=this.el.nativeElement.shadowRoot}get element(){return this._element}_clickOutside(){this.messageVisibility=!1,this.messageVisibilityChange.emit(this.messageVisibility)}get messageParent(){return this._messageParentElement}set messageParent(e){this._messageParentElement=e,this._messageParentElement&&(this._resizeObserver=new ResizeObserver(i=>{for(let o of i){let{width:r,height:s}=o.contentRect;this._parentWidth=r,this._parentHeight=s}}),this._resizeObserver.observe(this._messageParentElement.nativeElement))}tooltipRectangleIsOutOfParentRectangleX(e,i){return e.x+e.width-i.x-i.width>0}tooltipRectangleIsOutOfParentRectangleY(e,i){return e.y+e.height-i.y-i.height>0}correctTooltipPositionX(e,i,o,r){if(!this._messageParentElement)return;let s=this._element.querySelector(".tooltip-message");if(!s)return;let a=s.getBoundingClientRect(),l=this._messageParentElement.nativeElement.getBoundingClientRect();Math.abs(a.x+a.width-e-l.left)>3?(this.messagePosition.posX=this.messagePosition.posX+e-(a.x+a.width),setTimeout(()=>{this.correctTooltipPositionX(e,i,o,r)},0)):r&&Math.abs(a.y+a.height-o-l.top)>3?setTimeout(()=>{this.correctTooltipPositionY(e,i,o,r)},0):this.tooltipRectangleIsOutOfParentRectangleY(a,l)&&(this.messagePosition.posY=this.messagePosition.posY-a.height,setTimeout(()=>{this.correctTooltipPositionY(e,i,o,!0)},0))}correctTooltipPositionY(e,i,o,r){if(!this._messageParentElement)return;let s=this._element.querySelector(".tooltip-message");if(!s)return;let a=s.getBoundingClientRect(),l=this._messageParentElement.nativeElement.getBoundingClientRect();Math.abs(a.y+a.height-o-l.top)>3?(this.messagePosition.posY=this.messagePosition.posY+o-(a.y+a.height),setTimeout(()=>{this.correctTooltipPositionY(e,i,o,r)},0)):i&&Math.abs(a.x+a.width-e-l.left)>3?setTimeout(()=>{this.correctTooltipPositionX(e,i,o,r)},0):this.tooltipRectangleIsOutOfParentRectangleX(a,l)&&(this.messagePosition.posX=this.messagePosition.posX-a.width,setTimeout(()=>{this.correctTooltipPositionX(e,!0,o,r)},0))}ngOnChanges(e){if(e.messageVisibility){if(!e.messageVisibility.currentValue)return;setTimeout(()=>{if(!this._messageParentElement)return;let i=this.messagePosition.posX,o=this.messagePosition.posY,r=this._element.querySelector(".tooltip-message");if(!r)return;let s=r.getBoundingClientRect(),a=this._messageParentElement.nativeElement.getBoundingClientRect();this.tooltipRectangleIsOutOfParentRectangleX(s,a)?(this.messagePosition.posX=this.messagePosition.posX-s.width,setTimeout(()=>{this.correctTooltipPositionX(i,!0,o,!1)},0)):this.tooltipRectangleIsOutOfParentRectangleY(s,a)&&(this.messagePosition.posY=this.messagePosition.posY-s.height,setTimeout(()=>{this.correctTooltipPositionY(i,!1,o,!0)},0))},0)}}static{this.\u0275fac=function(i){return new(i||t)(v($))}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-tooltip-message"]],inputs:{messagePosition:"messagePosition",messageData:"messageData",messageVisibility:"messageVisibility",messageParent:"messageParent"},outputs:{messageVisibilityChange:"messageVisibilityChange"},standalone:!0,features:[je,O],ngContentSelectors:dO,decls:1,vars:1,consts:[["class","tooltip-message","libClickOutside","",3,"ngStyle","clickOutside",4,"ngIf"],["libClickOutside","",1,"tooltip-message",3,"clickOutside","ngStyle"],["class","tooltip-message-title",4,"ngIf"],["class","tooltip-message-messages",4,"ngIf"],["class","tooltip-message-footer",4,"ngIf"],[1,"tooltip-message-title"],[1,"tooltip-message-messages"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"tooltip-message-message"],["class","label",3,"failed","success",4,"ngIf"],["class","value",4,"ngIf"],[1,"separating-line"],[1,"label"],[1,"value"],[1,"tooltip-message-footer"]],template:function(i,o){i&1&&(Le(cO),M(0,yO,7,7,"div",0)),i&2&&g("ngIf",o.messageVisibility)},dependencies:[j,we,We,fo,El],styles:[`.text-selected{color:var(--text-highlight-text-color-enabled)}.ui-icon22px{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}.tooltip-message{border-style:solid;border-width:var(--tooltip-message-border-width, .1rem);border-color:var(--tooltip-message-border-color-enabled);position:absolute;min-width:var(--tooltip-message-min-width, 10rem);max-width:var(--tooltip-message-max-width, 30rem);left:0;top:0;cursor:default;background-color:var(--tooltip-message-background-color-enabled);display:flex;flex-direction:column}.tooltip-message>.tooltip-message-title{font-family:var(--tooltip-message-title-font-family, "Source Sans Pro", Helvetica, Arial, tahoma, sans-serif);font-size:var(--tooltip-message-title-font-size, 1.4rem);font-weight:var(--tooltip-message-title-font-weight, 700);background-color:var(--tooltip-message-title-background-color-enabled);padding:var(--tooltip-message-title-padding, .5rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tooltip-message>.tooltip-message-messages{display:flex;flex-direction:column;padding:var(--tooltip-message-body-padding, .5rem)}.tooltip-message>.tooltip-message-messages>.tooltip-message-message{padding-top:.25rem;padding-bottom:.25rem}.tooltip-message>.tooltip-message-messages>.tooltip-message-message>.label.success{color:var(--tooltip-message-text-color-success);font-weight:var(--success-message-font-weight, 700)}.tooltip-message>.tooltip-message-messages>.tooltip-message-message>.label.failed{color:var(--tooltip-message-text-color-error);font-weight:var(--error-message-font-weight, 700)}.tooltip-message>.tooltip-message-messages>.separating-line{width:100%;border-top:var(--tooltip-message-separating-line-width, .1rem) solid var(--tooltip-message-separator-border-color-enabled)}.tooltip-message>.tooltip-message-footer{font-family:var(--tooltip-message-footer-font-family, "Source Sans Pro", Helvetica, Arial, tahoma, sans-serif);font-size:var(--tooltip-message-footer-font-size, 1.4rem);font-weight:var(--tooltip-message-footer-font-weight, 700);background-color:var(--tooltip-message-footer-background-color-enabled);padding:var(--tooltip-message-footer-padding, .5rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
35
- `],encapsulation:3})}}return t})();var q_=(()=>{class t{constructor(){this.defaultLang="en",this.currentLanguage$=new xe(this.defaultLang),this.currentLanguageStrings$=new xe({}),this._languageFilesUri="/assets"}set languageFilesUri(e){this._languageFilesUri=e}get currentLanguage(){return this.currentLanguage$.getValue()}set currentLanguageStrings(e){this.currentLanguageStrings$.next(e)}get currentLanguageStrings(){return this.currentLanguageStrings$.getValue()}setCurrentLanguage(e){return Pi(this,null,function*(){this.currentLanguage$.next(e),yield this.fetchLanguageStrings(e)})}extractLocalizedStrings(e){let i={};for(let[o,r]of Object.entries(this.currentLanguageStrings))typeof r=="string"&&e.find(s=>s===o)&&(i[o]=r);return i}fetchLanguageStrings(e){return Pi(this,null,function*(){let o=yield(yield fetch(`${this._languageFilesUri}/strings_${e}.json`)).json();if(e!==this.defaultLang){let s=yield(yield fetch(`${this._languageFilesUri}/strings_en.json`))?.json?.(),a=s&&Object.keys(s);if(a?.length)for(let l in a){let c=a[l];o[c]||(o[c]=s[c])}}this.currentLanguageStrings$.next(o)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function CO(t,n){if(t&1){let e=P();p(0,"div",2)(1,"div",3),I(2,"div",4),p(3,"div",5),D(4),f(),p(5,"div",6),y("click",function(){b(e);let o=u(2);return _(o.close())})("keypress",function(){b(e);let o=u(2);return _(o.close())}),f()(),I(6,"div",7),p(7,"div",8)(8,"div",9),D(9),f(),p(10,"button",10),y("click",function(){b(e);let o=u(2);return _(o.close())}),D(11),N(12,"translate"),f()()()}if(t&2){let e=u(2);d(4),B(" ",e.title," "),d(5),B(" ",e.message," "),d(2),ae(F(12,3,"_Ok"))}}function wO(t,n){if(t&1&&(nt(0),M(1,CO,13,5,"div",1),it()),t&2){let e=u();d(),g("ngIf",e.title.length>0&&e.message.length>0)}}var Z_=(()=>{class t{get title(){return this._title}set title(e){this._title=e}get message(){return this._message}set message(e){this._message=e}get showDialog(){return this._showDialog}set showDialog(e){this._showDialog=e}constructor(){this._title="",this._message="",this._showDialog=!1,this.showDialogChange=new x}close(){this.showDialog=!1,this.showDialogChange.emit(this.showDialog)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-overlay-dialog-warning"]],inputs:{title:"title",message:"message",showDialog:"showDialog"},outputs:{showDialogChange:"showDialogChange"},standalone:!0,features:[O],decls:1,vars:1,consts:[[4,"ngIf"],["class","overlay-dialog-container",4,"ngIf"],[1,"overlay-dialog-container"],[1,"overlay-dialog-container_title"],[1,"overlay-dialog-container_title_icon"],[1,"overlay-dialog-container_title_msg"],[1,"overlay-dialog-container_title_close",3,"click","keypress"],[1,"overlay-dialog-container_line"],[1,"overlay-dialog-container_content"],[1,"overlay-dialog-container_content_msg"],[1,"overlay-dialog-container_content_btn",3,"click"]],template:function(i,o){i&1&&M(0,wO,2,1,"ng-container",0),i&2&&g("ngIf",o.showDialog)},dependencies:[j,We,J,me],styles:[`.overlay-dialog-container{width:90%;max-width:70rem;display:inline-flex;flex-direction:column;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.overlay-dialog-container .overlay-dialog-container_title{background-color:var(--color-help-popup-title-background);padding:1.2em 0;display:inline-flex;align-items:center}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_icon{width:1.8em;height:1.8em;background:url("./media/bimplus_Components_Warning_Message_Info_White.svg") no-repeat center center;padding:0 1.6em}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_msg{color:var(--main-menu-text-default);font:700 1.3rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_close{width:1.8em;height:1.8em;background:url("./media/bimplus_Components_Overlay_Dialog_Cross_White.svg") no-repeat center center;cursor:default;margin:0 0 0 auto;padding-right:1.6em}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_close:hover{cursor:pointer}.overlay-dialog-container .overlay-dialog-container_line{background-color:var(--workflow-background-six-color);height:.2em;width:100%}.overlay-dialog-container .overlay-dialog-container_content{background-color:var(--main-menu-text-default)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_msg{color:var(--color-help-popup-title-background);font:400 1.3rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;padding-top:1.1em;padding-left:1.6em}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn{background-color:var(--primary-button-background-color-enabled);color:var(--main-menu-text-default);font:700 1.3rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;float:right;margin:0 1.6em .8em 0;width:4.1em;height:2.4em;padding:.3em 1.2em .4em;gap:.8em;border-radius:.2em 0 0;border:.1em solid var(--primary-button-border-color)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:hover{border:.1em solid var(--primary-button-background-color-hovered);background-color:var(--primary-button-background-color-hovered)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:active{border:.1em solid var(--primary-button-background-color-active);background-color:var(--primary-button-background-color-active)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:focus{border:.1em solid var(--tasks-overview-dot-closed-background-color);background-color:var(--tasks-overview-dot-closed-background-color)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:disabled{background-color:var(--primary-button-background-color-disabled);color:var(--primary-button-text-color-disabled)}
35
+ `],encapsulation:3})}}return t})();var q_=(()=>{class t{constructor(){this.defaultLang="en",this.currentLanguage$=new xe(this.defaultLang),this.currentLanguageStrings$=new xe({}),this._languageFilesUri="/assets"}set languageFilesUri(e){this._languageFilesUri=e}get currentLanguage(){return this.currentLanguage$.getValue()}set currentLanguageStrings(e){this.currentLanguageStrings$.next(e)}get currentLanguageStrings(){return this.currentLanguageStrings$.getValue()}setCurrentLanguage(e){return Pi(this,null,function*(){this.currentLanguage$.next(e),yield this.fetchLanguageStrings(e)})}extractLocalizedStrings(e){let i={};for(let[o,r]of Object.entries(this.currentLanguageStrings))typeof r=="string"&&e.find(s=>s===o)&&(i[o]=r);return i}fetchLanguageStrings(e){return Pi(this,null,function*(){let o=yield(yield fetch(`${this._languageFilesUri}/strings_${e}.json`)).json();if(e!==this.defaultLang){let s=yield(yield fetch(`${this._languageFilesUri}/strings_en.json`))?.json?.(),a=s&&Object.keys(s);if(a?.length)for(let l in a){let c=a[l];o[c]||(o[c]=s[c])}}this.currentLanguageStrings$.next(o)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function CO(t,n){if(t&1){let e=P();p(0,"div",2)(1,"div",3),I(2,"div",4),p(3,"div",5),D(4),f(),p(5,"div",6),y("click",function(){b(e);let o=u(2);return _(o.close())})("keypress",function(){b(e);let o=u(2);return _(o.close())}),f()(),p(6,"div",7)(7,"div",8),D(8),f(),p(9,"button",9),y("click",function(){b(e);let o=u(2);return _(o.close())}),D(10),N(11,"translate"),f()()()}if(t&2){let e=u(2);d(4),B(" ",e.title," "),d(4),B(" ",e.message," "),d(2),ae(F(11,3,"_Ok"))}}function wO(t,n){if(t&1&&(nt(0),M(1,CO,12,5,"div",1),it()),t&2){let e=u();d(),g("ngIf",e.title.length>0&&e.message.length>0)}}var Z_=(()=>{class t{get title(){return this._title}set title(e){this._title=e}get message(){return this._message}set message(e){this._message=e}get showDialog(){return this._showDialog}set showDialog(e){this._showDialog=e}constructor(){this._title="",this._message="",this._showDialog=!1,this.showDialogChange=new x}close(){this.showDialog=!1,this.showDialogChange.emit(this.showDialog)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["lib-bimplus-overlay-dialog-warning"]],inputs:{title:"title",message:"message",showDialog:"showDialog"},outputs:{showDialogChange:"showDialogChange"},standalone:!0,features:[O],decls:1,vars:1,consts:[[4,"ngIf"],["class","overlay-dialog-container",4,"ngIf"],[1,"overlay-dialog-container"],[1,"overlay-dialog-container_title"],[1,"overlay-dialog-container_title_icon"],[1,"overlay-dialog-container_title_msg"],[1,"overlay-dialog-container_title_close",3,"click","keypress"],[1,"overlay-dialog-container_content"],[1,"overlay-dialog-container_content_msg"],[1,"overlay-dialog-container_content_btn",3,"click"]],template:function(i,o){i&1&&M(0,wO,2,1,"ng-container",0),i&2&&g("ngIf",o.showDialog)},dependencies:[j,We,J,me],styles:[`.overlay-dialog-container{height:12.8rem;width:37.6rem;display:inline-flex;flex-direction:column;box-shadow:0 .4rem .8rem 0 var(--card-box-shadow-color),0 .6rem 2rem 0 var(--card-box-shadow-color)}.overlay-dialog-container .overlay-dialog-container_title{background-color:var(--color-help-popup-title-background);height:4rem;display:inline-flex;align-items:center}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_icon{width:1.8rem;height:1.8rem;background:url("./media/bimplus_Components_Overlay_Dialog_Error_Title.svg") no-repeat center center;padding:0 1.6rem}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_msg{color:var(--main-menu-text-default);font:700 1.3rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_close{width:1.8rem;height:1.8rem;background:url("./media/bimplus_Components_Overlay_Dialog_Cross_White.svg") no-repeat center center;cursor:default;margin:0 0 0 auto;padding-right:1.6rem}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_close:hover{cursor:pointer}.overlay-dialog-container .overlay-dialog-container_content{background-color:var(--main-menu-text-default);height:8.8rem}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_msg{color:var(--color-help-popup-title-background);font:400 1.3rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;padding-top:1.1rem;padding-left:1.6rem}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn{background-color:var(--primary-button-background-color-enabled);color:var(--main-menu-text-default);font:700 1.3rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;float:right;margin:0 1.6rem .8rem 0;width:4.1rem;height:2.4rem;padding:.3rem 1.2rem .4rem;gap:.8rem;border-radius:.2rem;border:.1rem solid var(--primary-button-border-color)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:hover{border:.1rem solid var(--primary-button-background-color-hovered);background-color:var(--primary-button-background-color-hovered)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:active{border:.1rem solid var(--primary-button-background-color-active);background-color:var(--primary-button-background-color-active)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:focus{border:.1rem solid var(--tasks-overview-dot-closed-background-color);background-color:var(--tasks-overview-dot-closed-background-color)}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_btn:disabled{background-color:var(--primary-button-background-color-disabled);color:var(--primary-button-text-color-disabled)}
36
36
  `],encapsulation:3})}}return t})();function Pl(t){t||(vf(Pl),t=K(_a));let n=new ge(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(tt(n))}function xO(t,n){if(t&1){let e=P();p(0,"lib-bimplus-main-menu",20),y("bimplusMainMenuClicked",function(o){b(e);let r=u();return _(r.bimplusMainMenuClicked(o))})("bimplusMainMenuOverlayClicked",function(){b(e);let o=u();return _(o.bimplusMainMenuOverlayClicked())}),f()}if(t&2){let e=u();g("selectedLanguage",e.languageStringsService.currentLanguage)("localizedStrings",e.languageStringsService.currentLanguageStrings)("isTouch",e.isTouch)("showHorizontalMenuIcons",e.isTouch)("appsWithInfo",e.appsWithInfo)("appsOrder",e.appsOrder)("menuItemsOrder",e.menuItemsOrder)}}var Y_=(()=>{class t{constructor(e,i){this.translateService=e,this.languageStringsService=i,this.isTouch=!1,this.isBimplusMainMenuVisible=!0,this.isNavbarMenuActive=!0,this.selectedZoom="100",this.messages="",this.contextMenuItems=[],this.contextMenuData=[],this.treeData=[],this.treeDataStringified=null,this.treeDataContextMenu=null,this.appsWithInfo=["portalSelectProjectBtn","portalBimUsers","portalBimModels"],this.appsOrder=["portalBimUsers","portalBimModels","portalBimDocuments","portalBimProjectSettings","portalBimProcesses","dividerprojectmanagement","portalBimViewerBtn","portalCloudViewerBtn","portalConnexisBtn","portalBimAutoconverterBtn","dividerapps","portalTeamManagementBtn","portalPropertyManagerBtn"],this.menuItemsOrder=["portalBimUsers","portalBimModels","portalBimDocuments","portalBimProjectSettings","portalBimProcesses"],this.showDialog=!1,this.languageStringsService.currentLanguage$.pipe(Pl()).subscribe({next:o=>{this.translateService.use(o)}}),this.languageStringsService.currentLanguageStrings$.pipe(Pl()).subscribe({next:o=>{this.translateService.setTranslation(this.languageStringsService.currentLanguage,o)}})}log(e,i,o,r){let s=`EVENT : ${e}. `+(o?`INDEX: ${i?.detail?.index} ACTION: ${i?.detail?.action}`:`VALUE: ${i?.detail}`);(r?()=>window.alert(s):()=>console.log(s))()}ngOnInit(){this.initLanguage(),window.BimPlus={bimplusNavbarClicked:e=>{this.log("Navbar clicked",e),e?.detail==="menu"&&(this.isNavbarMenuActive=!this.isNavbarMenuActive)}},this.initMessages(),this.initContextMenu()}bimplusLanguageSelected(e){this.log("bimplusLanguageSelected",{detail:e}),this._switchLanguage(e)}_switchLanguage(e){e&&this.languageStringsService.setCurrentLanguage(e)}bimplusUserMenuClicked(e){this.log("bimplusUserMenuClicked",e,!0)}bimplusTouchModeSelected(e){this.log("bimplusTouchModeSelected",{detail:e}),this.isTouch=e==="touch"}bimplusMainMenuClicked(e){this.log("bimplusUserMenuClicked",{detail:e},!0,!0)}bimplusMainMenuOverlayClicked(){this.log("bimplusMainMenuOverlayClicked",{detail:""},!1,!0)}bimplusStorageInfoClicked(e){this.log("bimplusStorageInfoClicked",{detail:e},!1,!0)}bimplusContactClicked(e){this.log("bimplusContactClicked",{detail:e},!1,!0)}bimplusZoomSelected(e){this.log("bimplusZoomSelected",{detail:e}),this.selectedZoom=e;let i=62.5*(Number(e)/100),o=document.querySelector("html");o&&(o.style.fontSize=i+"%")}bimplusNotifyDeleteMessage(e){let i=JSON.parse(e),o=this.messages&&JSON.parse(this.messages)?.messages?.filter?.(r=>r.id!==i.id);this.messages=o&&JSON.stringify({messages:o})||""}bimplusNotifyDeleteAllMessages(){this.messages=""}bimplusNotifyMessageAction(e){this.log("This is notify message action handler",{detail:e},!1,!0)}selectedNodes(e){this.log("selectedNodes",{detail:JSON.stringify(e)})}initLanguage(){this.languageStringsService.languageFilesUri="/assets/languages",this._switchLanguage("en")}initMessages(){this.messages=JSON.stringify({messages:[{id:"ALFA",type:"info",title:"Import successful",text:"kolizia.ifc has been imported",linkText:"Click here to open the project",link:"#/"},{id:"BETA",type:"info",title:"Clash detection done",text:"Clash detection on the project House1 with preset has been done.",linkText:"Click here to open the project"},{id:"OMEGA",type:"info",title:"Model export finished",text:"",linkText:"Click here to download `00 EMPTY__revision_comparison1.ifc` model."},{id:"OMEGA1",type:"info",title:"Model export finished",text:"Structural model included. Reinforcement of Hospital.ifc has been imported.",linkText:["Click here to download `XXXX` model.","Click here to download `YYYYY` model."],links:["#/1","#/2"]},{id:"TEST3",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."},{id:"TEST4",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."},{id:"TEST5",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."},{id:"TEST6",type:"info",title:"Clash detection done",text:"Clash detection on the project Bridge with preset has been done."}]})}initContextMenu(){this.contextMenuItems=[{id:"openFile",title:"Open file",icon:"./favicon.ico",tooltip:"Open file tooltip",disabled:()=>!0},{id:"separator"},{id:"closeFile",title:"Close file",icon:"./favicon.ico",disabled:()=>!0},{id:"deleteFile",title:"Delete file",icon:"./favicon.ico"},{id:"separator"},{id:"renameFile",title:"Rename file",icon:"./favicon.ico",action:e=>{console.log(e)},tooltip:"Rename file tooltip"},{id:"renameFile",title:"Looooooooooooooooooooooooooooooooooooooooooooooooooooong item name",icon:"./favicon.ico",action:e=>{console.log(e)},tooltip:"Looooooooooooooooooooooooooooooooooooooooooooooooooooong item name"}],this.contextMenuData=[{name:"Folder 5",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-24",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"}]}]}setupTreeData(e){let i=[];switch(e){case"Folders3":i.push({name:"Folders3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",children:[{name:"Folder 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"Folder 1 - 1 very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong name",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[{name:"File 1 - 1 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-03",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-04",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-05",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"}]},{name:"File 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-06",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01"},{name:"File 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-07",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01"}]},{name:"Folder 4",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-22",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[]},{name:"Folder 5",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-24",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"},{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-25",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"}]}]});break;case"Folders2":i.push({name:"Folders2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",children:[{name:"Folder 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"Folder 1 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[{name:"File 1 - 1 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-03",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-04",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"},{name:"File 1 - 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-05",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-02"}]},{name:"Folder 1 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-06",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[]},{name:"Folder 1 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-07",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-01",children:[]}]},{name:"Folder 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 2 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-09",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08"},{name:"Folder 2 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08",children:[{name:"File 2 - 2 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-11",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10"},{name:"File 2 - 2 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-12",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10"},{name:"File 2 - 2 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-13",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-10"}]},{name:"File 2 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-14",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-08"}]},{name:"Folder 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-16",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15"},{name:"File 3 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-17",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15"},{name:"Folder 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-15",children:[{name:"File 3 - 3 - 1",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-19",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18"},{name:"File 3 - 3 - 2",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-20",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18"},{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-21",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-18"}]}]},{name:"Folder 4",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-22",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[]},{name:"Folder 5",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-00",children:[{name:"File 3 - 3 - 3",id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-24",parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"}]}]});break;default:i.push({id:"dbc08cd2-9f50-465b-9b54-da29c4988d07",children:[{id:"78b8109a-aac3-4307-8ddb-745a64710d36",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",name:"General folder",type:"DocumentFolder",number:1,level:1,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"123756a8-c06f-4954-8851-93f95b1629c1",children:[{id:"36a92f23-98e7-42db-b150-b0dae491d355",children:[{id:"2bbfbce5-beb8-49b1-bbef-430b061318c9",structureElementId:"86b65d1e-0490-45f2-abd6-402a176bc219",parent:"36a92f23-98e7-42db-b150-b0dae491d355",name:"Allplan_QTO-QTO-2024-02-16-08-27-15.xlsx",type:"Attachment",number:0,level:3},{id:"9eb72c59-f019-4679-9bf4-07f8055388d4",structureElementId:"cc9c8694-4d70-4066-9475-d4375e67d7a0",parent:"36a92f23-98e7-42db-b150-b0dae491d355",name:"Allplan_QTO-QTO-2024-02-16-08-24-49.xlsx",type:"Attachment",number:0,level:3}],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"ELEMENTS",type:"DocumentFolder",number:1,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"73ad9d94-3ace-4124-b533-b4e2cbe07ab1",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"IFC",type:"DocumentFolder",number:2,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"0378d1be-7b77-4705-a347-adda0ec04674",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"LOG",type:"DocumentFolder",number:3,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"abfd2209-225b-452d-91c9-d33269e47334",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"ISSUES",type:"DocumentFolder",number:4,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"094c8e91-7023-4c1e-8afb-6480d34cd4d1",children:[],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"SLIDESHOWS",type:"DocumentFolder",number:5,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}},{id:"d5d9ea2f-0337-4321-8917-3d485a76247a",children:[],color:4285988983,folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"123756a8-c06f-4954-8851-93f95b1629c1",name:"OTHER MODELS",type:"DocumentFolder",number:6,level:2,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}}],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,restricted:1,parent:"dbc08cd2-9f50-465b-9b54-da29c4988d07",name:"MY DOCUMENTS",type:"DocumentFolder",number:2,level:1,createdAt:"2023-01-19T05:40:37.3",creator:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"},changed:"2023-01-19T05:40:37.3",changedBy:{id:"9edf8528-b21f-b332-4785-6d5cc0b96e1f",email:"jgaba@allplan.com",firstname:"J\xE1n",lastname:"G\xE1ba"}}],folderRole:{id:"a124a637-55a4-4e4e-ab24-777d96b320a0",name:"Folder_Admin"},roleSetByUser:!1,parent:"d71d6daf-1114-42c4-84ad-5807837cac7b",name:"Folders1",type:"DocumentFolder",number:0,level:0});break}e==="Folders3"?(this.treeData=i,this.treeDataStringified=null,this.treeDataContextMenu={objectContextMenuitems:[{id:"openFile",title:"Open file",icon:"./favicon.ico",tooltip:"Open file tooltip"},{id:"separator"},{id:"closeFile",title:"Close file",icon:"./favicon.ico",disabled:()=>!0},{id:"deleteFile",title:"Delete file",icon:"./favicon.ico",disabled:()=>!1},{id:"separator"},{id:"renameFile",title:"Rename file",icon:"./favicon.ico",action:o=>{console.log(o)},tooltip:"Rename file tooltip"}],folderContextMenuitems:[{id:"renameFolder",title:"Rename folder",icon:"./favicon.ico",tooltip:"Rename folder tooltip"},{id:"deletFolder",title:"Delete folder",tooltip:"Delete folder tooltip"}]}):(this.treeData=[],this.treeDataStringified=JSON.stringify(i),this.treeDataContextMenu=null)}getNode(){let i=document.querySelector("lib-bimplus-flat-tree")?.get_node?.({id:"dbc08cd2-9f50-465b-9b54-da29c4988d07-23"},!1);console.log(i)}selectNode(){document.querySelector("lib-bimplus-flat-tree")?.select_node?.("dbc08cd2-9f50-465b-9b54-da29c4988d07-24")}static{this.\u0275fac=function(i){return new(i||t)(v(T),v(q_))}}static{this.\u0275cmp=S({type:t,selectors:[["app-root"]],standalone:!0,features:[O],decls:26,vars:26,consts:[[1,"bimplus-components-navbar","visible"],["isNavbarMessageVisible","false","teamInfo","test_team","projectInfo","00 Quickstart project and some very very long text","teamInfoOffset","0.9rem","isDev","true","isStage","true","isNavbarInfoVisible","true",3,"isNavbarMenuVisible","isNavbarMenuActive","isTouch"],["showIcons","true","triggerTitle","File context menu",3,"items","data"],[3,"bimplusNotifyMessageAction","bimplusNotifyDeleteMessage","bimplusNotifyDeleteAllMessages","selectedLanguage","localizedStrings","messages"],[3,"bimplusStorageInfoClicked","selectedLanguage","localizedStrings","usedStorage"],[3,"bimplusContactClicked"],[3,"bimplusZoomSelected","selectedZoom"],[3,"bimplusTouchModeSelected","selectedMode","selectedLanguage","localizedStrings"],[3,"bimplusLanguageSelected","selectedLanguage"],["userName","Test User","userPhotoUrl","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMS36RRWYaTysG471mlormL1bYN3-QIabbo30rDitKRoaDs3EA&s","buttonTitle","testuser@allplan.com","allowRcaItem","true",3,"bimplusLanguageSelected","bimplusUserMenuClicked","selectedLanguage","localizedStrings","isTouch"],["projectName","00 Quickstart project and some very very long text","projectImageUrl","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMS36RRWYaTysG471mlormL1bYN3-QIabbo30rDitKRoaDs3EA&s","isDev","true","isStage","true","teammembersSubscribed","true","propertymanagerSubscribed","true","projectActiveItem","projectlist","menuActiveItem","projectmembers",3,"selectedLanguage","localizedStrings","isTouch","showHorizontalMenuIcons","appsWithInfo","appsOrder","menuItemsOrder"],[1,"floating-panels-wrapper"],[3,"selectedLanguage","localizedStrings","noModelsMessage"],[1,"tree-data","tree-data-1",3,"click","keypress"],[1,"tree-data","tree-data-2",3,"click","keypress"],[1,"tree-data","tree-data-3",3,"click","keypress"],[1,"tree-data","tree-data-3","get-node",3,"click","keypress"],[1,"tree-data","tree-data-3","select-node",3,"click","keypress"],[1,"tree"],["enableSelect","true","enableParentHighlighting","true","multiSelect","true","oneLevelMultiSelect","false","showFoldersIcons","true","showObjectsIcons","true","enableDragAndDrop","true","treeTitle","FLAT TREE","paddingIndent","2.8rem",1,"flat-tree",3,"selectedNodes","treeData","treeDataStringified","contextMenus"],["projectName","00 Quickstart project and some very very long text","projectImageUrl","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMS36RRWYaTysG471mlormL1bYN3-QIabbo30rDitKRoaDs3EA&s","isDev","true","isStage","true","teammembersSubscribed","true","propertymanagerSubscribed","true","projectActiveItem","projectlist","menuActiveItem","projectmembers",3,"bimplusMainMenuClicked","bimplusMainMenuOverlayClicked","selectedLanguage","localizedStrings","isTouch","showHorizontalMenuIcons","appsWithInfo","appsOrder","menuItemsOrder"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"lib-bimplus-navbar",1),I(2,"lib-bimplus-context-menu",2),p(3,"lib-bimplus-notify",3),y("bimplusNotifyMessageAction",function(s){return o.bimplusNotifyMessageAction(s)})("bimplusNotifyDeleteMessage",function(s){return o.bimplusNotifyDeleteMessage(s)})("bimplusNotifyDeleteAllMessages",function(){return o.bimplusNotifyDeleteAllMessages()}),f(),p(4,"lib-bimplus-storage-info",4),y("bimplusStorageInfoClicked",function(s){return o.bimplusStorageInfoClicked(s)}),f(),p(5,"lib-bimplus-contact",5),y("bimplusContactClicked",function(s){return o.bimplusContactClicked(s)}),f(),p(6,"lib-bimplus-zoom",6),y("bimplusZoomSelected",function(s){return o.bimplusZoomSelected(s)}),f(),p(7,"lib-bimplus-touch-menu",7),y("bimplusTouchModeSelected",function(s){return o.bimplusTouchModeSelected(s)}),f(),p(8,"lib-bimplus-language-menu",8),y("bimplusLanguageSelected",function(s){return o.bimplusLanguageSelected(s)}),f(),p(9,"lib-bimplus-user-menu",9),y("bimplusLanguageSelected",function(s){return o.bimplusLanguageSelected(s)})("bimplusUserMenuClicked",function(s){return o.bimplusUserMenuClicked(s)}),f()()(),M(10,xO,1,7,"lib-bimplus-main-menu",10),p(11,"div",11),I(12,"lib-bimplus-floating-bar-project-navigator",12),f(),p(13,"div",13),y("click",function(){return o.setupTreeData("Folders1")})("keypress",function(){return o.setupTreeData("Folders1")}),D(14,"Folders1"),f(),p(15,"div",14),y("click",function(){return o.setupTreeData("Folders2")})("keypress",function(){return o.setupTreeData("Folders2")}),D(16,"Folders2"),f(),p(17,"div",15),y("click",function(){return o.setupTreeData("Folders3")})("keypress",function(){return o.setupTreeData("Folders3")}),D(18,"Folders3"),f(),p(19,"div",16),y("click",function(){return o.getNode()})("keypress",function(){return o.getNode()}),D(20,"get_node (from Folders3)"),f(),p(21,"div",17),y("click",function(){return o.selectNode()})("keypress",function(){return o.selectNode()}),D(22,"select_node (from Folders3)"),f(),p(23,"div",18)(24,"lib-bimplus-scrollable-container")(25,"lib-bimplus-flat-tree",19),y("selectedNodes",function(s){return o.selectedNodes(s)}),f()()()),i&2&&(d(),g("isNavbarMenuVisible",o.isBimplusMainMenuVisible)("isNavbarMenuActive",o.isNavbarMenuActive)("isTouch",o.isTouch),d(),g("items",o.contextMenuItems)("data",o.contextMenuData),d(),g("selectedLanguage",o.languageStringsService.currentLanguage)("localizedStrings",o.languageStringsService.currentLanguageStrings)("messages",o.messages),d(),g("selectedLanguage",o.languageStringsService.currentLanguage)("localizedStrings",o.languageStringsService.currentLanguageStrings)("usedStorage",90),d(2),g("selectedZoom",o.selectedZoom),d(),g("selectedMode",o.isTouch?"touch":"desktop")("selectedLanguage",o.languageStringsService.currentLanguage)("localizedStrings",o.languageStringsService.currentLanguageStrings),d(),g("selectedLanguage",o.languageStringsService.currentLanguage),d(),g("selectedLanguage",o.languageStringsService.currentLanguage)("localizedStrings",o.languageStringsService.currentLanguageStrings)("isTouch",o.isTouch),d(),R(o.isNavbarMenuActive?10:-1),d(2),g("selectedLanguage",o.languageStringsService.currentLanguage)("localizedStrings",o.languageStringsService.currentLanguageStrings)("noModelsMessage","_Loading project details"),d(13),g("treeData",o.treeData)("treeDataStringified",o.treeDataStringified)("contextMenus",o.treeDataContextMenu))},dependencies:[rl,sl,al,cl,dl,pl,ml,gl,hl,Tt,Qn,Lt,fl,j],styles:[`*,html{font-size:100%;margin:0;padding:0}html{font-size:62.5%}body{background-color:gray}.hidden{display:none}bimplus-main-menu{height:50vh}lib-bimplus-floating-bar-project-navigator{position:absolute}.floating-panels-wrapper{position:relative}.tree-data{background-color:#fff;font-size:1.5rem;width:fit-content;padding:.5rem;border-style:solid;border-width:.2rem;border-radius:.5rem;margin:.5rem;cursor:pointer}.tree{width:20%;height:250px}
37
37
  `],encapsulation:2})}}return t})();var ap=class{handle(n){return console.warn("Missing translation string "+n.key),n.key}};Pi(void 0,null,function*(){let t=yield Lh({providers:[xd(J.forRoot({missingTranslationHandler:{provide:wi,useClass:ap},isolate:!0,defaultLanguage:"en"}))]}),n=Ae(zb,{injector:t.injector});customElements.define("bimplus-connection-designer",n);let e=Ae(Bb,{injector:t.injector});customElements.define("bimplus-connection-designer-result",e);let i=Ae(rl,{injector:t.injector});customElements.define("bimplus-contact",i);let o=Ae(Ub,{injector:t.injector});customElements.define("bimplus-floating-bar-hide-objects",o);let r=Ae(Wb,{injector:t.injector});customElements.define("bimplus-floating-bar-isolation-objects",r);let s=Ae(sl,{injector:t.injector});customElements.define("bimplus-floating-bar-project-navigator",s);let a=Ae(al,{injector:t.injector});customElements.define("bimplus-language-menu",a);let l=Ae(cl,{injector:t.injector});customElements.define("bimplus-main-menu",l);let c=Ae(dl,{injector:t.injector});customElements.define("bimplus-navbar",c);let m=Ae(pl,{injector:t.injector});customElements.define("bimplus-notify",m);let h=Ae(ll,{injector:t.injector});customElements.define("bimplus-project-menu",h);let w=Ae(t_,{injector:t.injector});customElements.define("bimplus-sidenav",w);let C=Ae(Co,{injector:t.injector});customElements.define("bimplus-sidenav-drawer-content",C);let E=Ae(ml,{injector:t.injector});customElements.define("bimplus-storage-info",E);let A=Ae(r_,{injector:t.injector});customElements.define("bimplus-tool-hub",A);let G=Ae(fl,{injector:t.injector});customElements.define("bimplus-touch-menu",G);let V=Ae(gl,{injector:t.injector});customElements.define("bimplus-user-menu",V);let Y=Ae(hl,{injector:t.injector});customElements.define("bimplus-zoom",Y);let Ze=Ae(W_,{injector:t.injector});customElements.define("bimplus-object-navigator",Ze);let Xe=Ae(Tt,{injector:t.injector});customElements.define("bimplus-flat-tree",Xe);let at=Ae(Qn,{injector:t.injector});customElements.define("bimplus-context-menu",at);let ce=Ae(el,{injector:t.injector});customElements.define("loading-spinner",ce);let Ye=Ae(G_,{injector:t.injector});customElements.define("bimplus-tooltip-message-element",Ye);let lt=Ae(Lt,{injector:t.injector});customElements.define("bimplus-scrollable-container-element",lt);let Ti=Ae(Y_,{injector:t.injector});customElements.define("bimplus-app-wrapper-internal-element",Ti);let K_=Ae(Z_,{injector:t.injector});customElements.define("bimplus-overlay-dialog-warning",K_)});export{ap as BimplusMissingTranslationHandler};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimplus-webcomponents",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "license": "MIT",
5
5
  "author": "",
6
6
  "description": "bim+ webcomponents library",
@@ -1,11 +0,0 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_1027_165)">
3
- <path d="M9 16C12.9 16 16 12.9 16 9C16 5.1 12.9 2 9 2C5.1 2 2 5.1 2 9C2 12.9 5.1 16 9 16ZM9 18C4 18 0 14 0 9C0 4 4 0 9 0C14 0 18 4 18 9C18 14 14 18 9 18Z" fill="white"/>
4
- <path d="M8 10.5H10V4H8V10.5ZM8 14H10V12H8V14Z" fill="white"/>
5
- </g>
6
- <defs>
7
- <clipPath id="clip0_1027_165">
8
- <rect width="18" height="18" fill="white" transform="matrix(1 0 0 -1 0 18)"/>
9
- </clipPath>
10
- </defs>
11
- </svg>