@whoz-oss/coday-client 3.17.0 → 3.19.0
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.
- package/browser/chunk-2H_m7V_L.js +1 -0
- package/browser/{chunk-BXkvjekT.js → chunk-3m_nS8Y5.js} +2 -2
- package/browser/chunk-4tOVGgPj.js +1 -0
- package/browser/{chunk-BPfJALqU.js → chunk-82BMsVX3.js} +1 -1
- package/browser/{chunk-CxUcyBb9.js → chunk-B3NyUUXq.js} +1 -1
- package/browser/chunk-B55TXBfo.js +1 -0
- package/browser/{chunk-CI760KmO.js → chunk-B9NYLAhC.js} +1 -1
- package/browser/chunk-BEaYQhbI.js +508 -0
- package/browser/chunk-BI4kHPfc.js +1 -0
- package/browser/chunk-BID9NaLj.js +1 -0
- package/browser/{chunk-Ci9l-k84.js → chunk-BOpm3F5F.js} +1 -1
- package/browser/{chunk-CpZK7G-Q.js → chunk-BWLCegs8.js} +2 -2
- package/browser/{chunk-DjoW6kqa.js → chunk-BWZcAdUl.js} +5 -5
- package/browser/{chunk-DqC8XT4v.js → chunk-BXsNw_60.js} +1 -1
- package/browser/chunk-BZ-rNYX5.js +1 -0
- package/browser/{chunk-BHvLB-pV.js → chunk-B_5qWQZJ.js} +1 -1
- package/browser/{chunk-DMtXGu5h.js → chunk-BcHHkjC4.js} +1 -1
- package/browser/{chunk-CI7wYBKk.js → chunk-BhD8uvAV.js} +1 -1
- package/browser/{chunk-DpHEu7EG.js → chunk-Bha8h69K.js} +1 -1
- package/browser/chunk-BhdMedPO.js +37 -0
- package/browser/chunk-BiwhEkuA.js +1 -0
- package/browser/{chunk-ClSDInQq.js → chunk-Bkwb10Tz.js} +1 -1
- package/browser/chunk-BlO8XEX7.js +1 -0
- package/browser/{chunk-b6g-uBR5.js → chunk-BmiWFhjp.js} +1 -1
- package/browser/{chunk-BVAD9f9s.js → chunk-BnDz6aYG.js} +1 -1
- package/browser/chunk-BqH7Wffn.js +5 -0
- package/browser/{chunk-LVItL87L.js → chunk-BrZnGAfk.js} +1 -1
- package/browser/{chunk-D202v_ff.js → chunk-Bu2KbiEO.js} +1 -1
- package/browser/{chunk-B6BZBDSv.js → chunk-C3kED08r.js} +5 -5
- package/browser/{chunk-Bu5Xq3QT.js → chunk-C4bnTLvT.js} +1 -1
- package/browser/{chunk-EBW8PloQ.js → chunk-C5I2MlRU.js} +1 -1
- package/browser/{chunk-ClEmA_ih.js → chunk-C9j9HPDY.js} +1 -1
- package/browser/{chunk-B626-rya.js → chunk-CEeAV-bb.js} +1 -1
- package/browser/{chunk-Brx_KbnM.js → chunk-CNQEET68.js} +1 -1
- package/browser/chunk-CNfTQeDy.js +1 -0
- package/browser/{chunk-DFQuWS_F.js → chunk-CR2xcumM.js} +1 -1
- package/browser/{chunk-BkN5jb4J.js → chunk-CUeRU4T-.js} +1 -1
- package/browser/chunk-Cno6SC-J.js +2 -0
- package/browser/{chunk-bfpuueWC.js → chunk-CorOD5-V.js} +3 -3
- package/browser/{chunk-B1OTuTxt.js → chunk-CvEqqOCm.js} +1 -1
- package/browser/{chunk-DQtoh8wv.js → chunk-Cwpn9dPE.js} +1 -1
- package/browser/{chunk-B7kKWG4P.js → chunk-Cx3RQESQ.js} +1 -1
- package/browser/{chunk-DO3lSvop.js → chunk-CxKynLjd.js} +1 -1
- package/browser/chunk-D8Bz7q-C.js +675 -0
- package/browser/{chunk-DCwEaE_b.js → chunk-DAyHNJOx.js} +1 -1
- package/browser/chunk-DBfSV0o-.js +2 -0
- package/browser/chunk-DEAo8Gsm.js +190 -0
- package/browser/{chunk-DKllQ3Ve.js → chunk-DHF4GvxN.js} +1 -1
- package/browser/chunk-DIhIuMRR.js +9 -0
- package/browser/chunk-DK7la0Zv.js +1 -0
- package/browser/{chunk-Bgd8Jkga.js → chunk-DKUyWR_o.js} +1 -1
- package/browser/chunk-DP1Oiy0T.js +1 -0
- package/browser/chunk-DSgmn8Nl.js +276 -0
- package/browser/{chunk-CUz5MHdA.js → chunk-DVVwrDwV.js} +1 -1
- package/browser/chunk-DWlwteaE.js +55 -0
- package/browser/{chunk-DxrynR3o.js → chunk-DXAodgYO.js} +1 -1
- package/browser/chunk-Ddy7zzYX.js +1 -0
- package/browser/{chunk-C5WD0UQE.js → chunk-DrITgtaw.js} +3 -3
- package/browser/{chunk-mrKeqPKc.js → chunk-Drt7fOvo.js} +1 -1
- package/browser/chunk-Dw8nvU1v.js +2 -0
- package/browser/{chunk-C2VdQfMJ.js → chunk-HERnQhug.js} +1 -1
- package/browser/{chunk-CKhGzoqa.js → chunk-RlCcRMQy.js} +1 -1
- package/browser/chunk-iwYQP1W9.js +1 -0
- package/browser/chunk-kXODoW4J.js +1 -0
- package/browser/{chunk-CXTwGKdl.js → chunk-nbZfjdVD.js} +1 -1
- package/browser/{chunk-DHb3-uKf.js → chunk-t5r49PeM.js} +1 -1
- package/browser/{chunk-B3-4EW3s.js → chunk-vG5Um99w.js} +1 -1
- package/browser/{chunk-BtEXE3Xz.js → chunk-vse5stCO.js} +1 -1
- package/browser/chunk-wricEDWB.js +1 -0
- package/browser/index.html +1 -1
- package/browser/main-K6RKSHKK.js +1811 -0
- package/package.json +1 -1
- package/browser/chunk-0njD_aMa.js +0 -2
- package/browser/chunk-6WIaUDav.js +0 -1
- package/browser/chunk-B7yga-a4.js +0 -1
- package/browser/chunk-BAWubWk8.js +0 -1
- package/browser/chunk-BDaTUrH4.js +0 -1
- package/browser/chunk-BJ5G7Y-a.js +0 -276
- package/browser/chunk-BTX631I3.js +0 -5
- package/browser/chunk-BYyTBqh4.js +0 -37
- package/browser/chunk-B_49KV6W.js +0 -1
- package/browser/chunk-BaO2vi_O.js +0 -675
- package/browser/chunk-BcT0wYqu.js +0 -2
- package/browser/chunk-BdJzYh5V.js +0 -190
- package/browser/chunk-BwDJA6_r.js +0 -55
- package/browser/chunk-C49BBPGm.js +0 -1
- package/browser/chunk-CNAj5Eon.js +0 -1
- package/browser/chunk-D-jBfPIO.js +0 -1
- package/browser/chunk-DMRb150M.js +0 -2
- package/browser/chunk-DjMtxVWg.js +0 -508
- package/browser/chunk-DqioJb1X.js +0 -1
- package/browser/chunk-DrzvCb86.js +0 -1
- package/browser/chunk-DwFGK2iu.js +0 -1
- package/browser/chunk-DxvmpOv5.js +0 -1
- package/browser/chunk-P8B5rz7L.js +0 -1
- package/browser/chunk-R-GmZrHu.js +0 -9
- package/browser/main-LBRSRTYI.js +0 -1811
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import {ct as vi,j as jw,S as Sg,w as zg,aL as wo,aM as Zn,bE as vt,aO as wt,cZ as fn,cT as qp,c_ as he$1,cV as Eg,bA as bC,k as Cs,bB as SC,m as hl,b5 as lT,ad as $g,o as aC,u as cC,t as sI,aW as C,bv as Lg,y as MC,N as NC,g,az as Xt$1,c$ as kn,bw as St,bG as p,aP as G,aR as Ps,aU as Ue,aV as U,W as Wi,an as ue,al as vt$1,ae as kt,r as re$1,d0 as Ia,bL as pe,bs as bl,ap as zy,bu as Ve$1,c2 as PE,aA as an,x as jg,bt as Qn,aS as K,cO as ls,bN as F,bR as Sd,cL as Cd,bP as Jy,a9 as vC,n as kg,ac as CC,bV as tv,aN as Nn,bD as ge,aQ as $a,bM as mr,d1 as lt,d2 as wt$1,d3 as I,b_ as xt,bX as Pt,a as P,aZ as Bs,aw as gl,cJ as Fg,J as JC,ax as ml,b$ as UC,a8 as Kg,c3 as kt$1,cD as Te,cz as to,aa as Cf,ab as Tf}from'./main-K6RKSHKK.js';var Xt=["tooltip"],Ut=20;var qt=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=g(pe);return ()=>kt$1(n,{scrollThrottle:Ut})}}),$t=new C("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var Ht="tooltip-panel",Kt={passive:true},Jt=8,te=8,ee=24,ie=200,ne=(()=>{class n{_elementRef=g(Xt$1);_ngZone=g(G);_platform=g(p);_ariaDescriber=g($a);_focusMonitor=g(St);_dir=g(Qn);_injector=g(pe);_viewContainerRef=g(mr);_mediaMatcher=g(lt);_document=g(U);_renderer=g(Ps);_animationsDisabled=K();_defaultOptions=g($t,{optional:true});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=false;_disabled=false;_tooltipClass;_viewInitialized=false;_pointerExitEventsInitialized=false;_tooltipComponent=Gt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=false;_dirSubscribed=false;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=vi(t),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled}set disabled(t){let e=vi(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=fn(t);}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=fn(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e);}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new ue;_isDestroyed=false;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=Jt;}ngAfterViewInit(){this._viewInitialized=true,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(zy(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=true,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t);}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new wt$1(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(zy(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(t);}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()));}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t);}_isTooltipVisible(){return !!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof Xt$1)return this._overlayRef;this._detach();}let e=this._injector.get(I).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${Ht}`,r=xt(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return r.positionChanges.pipe(zy(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=Pt(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(qt)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(zy(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(zy(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(zy(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=true,this._dir.change.pipe(zy(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),r=this._getOverlayPosition();e.withPositions([this._addOffset(P(P({},i.main),r.main)),this._addOffset(P(P({},i.fallback),r.fallback))]);}_addOffset(t){let e=te,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(i.originX,i.originY);return {main:i,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(i.overlayX,i.overlayY);return {main:i,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),PE(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck());}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:r}=t,a;if(e==="center"?this._dir&&this._dir.value==="rtl"?a=i==="end"?"left":"right":a=i==="start"?"left":"right":a=e==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let A=this._overlayRef;if(A){let ut=`${this._cssClassPrefix}-${Ht}-`;A.removePanelClass(ut+this._currentPosition),A.addPanelClass(ut+a);}this._currentPosition=a;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i);},this._defaultOptions?.touchLongPressShowDelay??r);})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e);}));}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=true,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide();}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide();}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};this._addListener("touchend",t),this._addListener("touchcancel",t);}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,Kt));}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?true:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:false}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent";}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=true,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||PE({write:()=>{this._ariaDescriptionPending=false,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}_overlayEventPredicate=t=>t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!Ve$1(t):true;static \u0275fac=function(e){return new(e||n)};static \u0275dir=Bs({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&zg("mat-mdc-tooltip-disabled",i.disabled);},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),Gt=(()=>{class n{_changeDetectorRef=g(bl);_elementRef=g(Xt$1);_isMultiline=false;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=K();_tooltip;_closeOnInteraction=false;_isVisible=false;_onHide=new ue;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(true),this._showTimeoutId=void 0;},t);}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(false),this._hideTimeoutId=void 0;},t);}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null;}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0);}_markForCheck(){this._changeDetectorRef.markForCheck();}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(false));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>ee&&t.width>=ie}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(t){t?this._closeOnInteraction=true:this.isVisible()||this._onHide.next();}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,r=this._hideAnimation;if(e.classList.remove(t?r:i),e.classList.add(t?i:r),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(e);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=true);}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t));}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=jw({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&jg(Xt,7),e&2){let r;MC(r=NC())&&(i._tooltip=r.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&kg("mouseleave",function(a){return i._handleMouseLeave(a)});},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){e&1&&(gl(0,"div",1,0),Fg("animationend",function(a){return i._handleAnimationEnd(a)}),gl(2,"div",2),JC(3),ml()()),e&2&&(UC(i.tooltipClass),zg("mdc-tooltip--multiline",i._isMultiline),sI(3),Kg(i.message));},styles:[`.mat-mdc-tooltip {
|
|
2
|
+
position: relative;
|
|
3
|
+
transform: scale(0);
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
.mat-mdc-tooltip::before {
|
|
7
|
+
content: "";
|
|
8
|
+
top: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
z-index: -1;
|
|
13
|
+
position: absolute;
|
|
14
|
+
}
|
|
15
|
+
.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before {
|
|
16
|
+
top: -8px;
|
|
17
|
+
}
|
|
18
|
+
.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before {
|
|
19
|
+
bottom: -8px;
|
|
20
|
+
}
|
|
21
|
+
.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before {
|
|
22
|
+
left: -8px;
|
|
23
|
+
}
|
|
24
|
+
.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before {
|
|
25
|
+
right: -8px;
|
|
26
|
+
}
|
|
27
|
+
.mat-mdc-tooltip._mat-animation-noopable {
|
|
28
|
+
animation: none;
|
|
29
|
+
transform: scale(1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mat-mdc-tooltip-surface {
|
|
33
|
+
word-break: normal;
|
|
34
|
+
overflow-wrap: anywhere;
|
|
35
|
+
padding: 4px 8px;
|
|
36
|
+
min-width: 40px;
|
|
37
|
+
max-width: 200px;
|
|
38
|
+
min-height: 24px;
|
|
39
|
+
max-height: 40vh;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
text-align: center;
|
|
43
|
+
will-change: transform, opacity;
|
|
44
|
+
background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));
|
|
45
|
+
color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));
|
|
46
|
+
border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));
|
|
47
|
+
font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));
|
|
48
|
+
font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));
|
|
49
|
+
font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));
|
|
50
|
+
line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));
|
|
51
|
+
letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking));
|
|
52
|
+
}
|
|
53
|
+
.mat-mdc-tooltip-surface::before {
|
|
54
|
+
position: absolute;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
top: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
border: 1px solid transparent;
|
|
61
|
+
border-radius: inherit;
|
|
62
|
+
content: "";
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
}
|
|
65
|
+
.mdc-tooltip--multiline .mat-mdc-tooltip-surface {
|
|
66
|
+
text-align: left;
|
|
67
|
+
}
|
|
68
|
+
[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface {
|
|
69
|
+
text-align: right;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.mat-mdc-tooltip-panel {
|
|
73
|
+
line-height: normal;
|
|
74
|
+
}
|
|
75
|
+
.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive {
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes mat-mdc-tooltip-show {
|
|
80
|
+
0% {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
transform: scale(0.8);
|
|
83
|
+
}
|
|
84
|
+
100% {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
transform: scale(1);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
@keyframes mat-mdc-tooltip-hide {
|
|
90
|
+
0% {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
transform: scale(1);
|
|
93
|
+
}
|
|
94
|
+
100% {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transform: scale(0.8);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.mat-mdc-tooltip-show {
|
|
100
|
+
animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mat-mdc-tooltip-hide {
|
|
104
|
+
animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
105
|
+
}
|
|
106
|
+
`],encapsulation:2})}return n})();var Ve=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=wo({type:n});static \u0275inj=Zn({imports:[Nn,ge,wt,vt]})}return n})();var Ne=(()=>{class n{get vertical(){return this._vertical}set vertical(t){this._vertical=vi(t);}_vertical=false;get inset(){return this._inset}set inset(t){this._inset=vi(t);}_inset=false;static \u0275fac=function(e){return new(e||n)};static \u0275cmp=jw({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){e&2&&(Sg("aria-orientation",i.vertical?"vertical":"horizontal"),zg("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset));},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[`.mat-divider {
|
|
107
|
+
display: block;
|
|
108
|
+
margin: 0;
|
|
109
|
+
border-top-style: solid;
|
|
110
|
+
border-top-color: var(--mat-divider-color, var(--mat-sys-outline-variant));
|
|
111
|
+
border-top-width: var(--mat-divider-width, 1px);
|
|
112
|
+
}
|
|
113
|
+
.mat-divider.mat-divider-vertical {
|
|
114
|
+
border-top: 0;
|
|
115
|
+
border-right-style: solid;
|
|
116
|
+
border-right-color: var(--mat-divider-color, var(--mat-sys-outline-variant));
|
|
117
|
+
border-right-width: var(--mat-divider-width, 1px);
|
|
118
|
+
}
|
|
119
|
+
.mat-divider.mat-divider-inset {
|
|
120
|
+
margin-left: 80px;
|
|
121
|
+
}
|
|
122
|
+
[dir=rtl] .mat-divider.mat-divider-inset {
|
|
123
|
+
margin-left: auto;
|
|
124
|
+
margin-right: 80px;
|
|
125
|
+
}
|
|
126
|
+
`],encapsulation:2})}return n})(),He=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=wo({type:n});static \u0275inj=Zn({imports:[wt]})}return n})();var re=["*"],Qe=(()=>{class n{labelPosition="after";static \u0275fac=function(e){return new(e||n)};static \u0275cmp=jw({type:n,selectors:[["","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(e,i){e&2&&zg("mdc-form-field--align-end",i.labelPosition==="before");},inputs:{labelPosition:"labelPosition"},ngContentSelectors:re,decls:1,vars:0,template:function(e,i){e&1&&(bC(),SC(0));},styles:[`.mat-internal-form-field {
|
|
127
|
+
-moz-osx-font-smoothing: grayscale;
|
|
128
|
+
-webkit-font-smoothing: antialiased;
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
vertical-align: middle;
|
|
132
|
+
}
|
|
133
|
+
.mat-internal-form-field > label, .mat-internal-form-field > .mat-internal-form-field-label {
|
|
134
|
+
margin-left: 0;
|
|
135
|
+
margin-right: auto;
|
|
136
|
+
padding-left: 4px;
|
|
137
|
+
padding-right: 0;
|
|
138
|
+
order: 0;
|
|
139
|
+
}
|
|
140
|
+
[dir=rtl] .mat-internal-form-field > label, [dir=rtl] .mat-internal-form-field > .mat-internal-form-field-label {
|
|
141
|
+
margin-left: auto;
|
|
142
|
+
margin-right: 0;
|
|
143
|
+
padding-left: 0;
|
|
144
|
+
padding-right: 4px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.mdc-form-field--align-end > label, .mdc-form-field--align-end > .mat-internal-form-field-label {
|
|
148
|
+
margin-left: auto;
|
|
149
|
+
margin-right: 0;
|
|
150
|
+
padding-left: 0;
|
|
151
|
+
padding-right: 4px;
|
|
152
|
+
order: -1;
|
|
153
|
+
}
|
|
154
|
+
[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label, [dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end .mat-internal-form-field-label {
|
|
155
|
+
margin-left: 0;
|
|
156
|
+
margin-right: auto;
|
|
157
|
+
padding-left: 4px;
|
|
158
|
+
padding-right: 0;
|
|
159
|
+
}
|
|
160
|
+
`],encapsulation:2})}return n})();var We=(()=>{class n{isErrorState(t,e){return !!(t&&t.invalid&&(t.touched||e&&e.submitted))}isSignalErrorState(t){if(!t)return false;let e=t().invalid(),i=t().touched();return e&&i}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Te({token:n,factory:n.\u0275fac})}return n})();var Qt=class{_defaultMatcher;_parentFormGroup;_parentForm;_stateChanges;errorState=false;matcher;ngControl;formField;constructor(m,t,e,i,r){this._defaultMatcher=m,this._parentFormGroup=e,this._parentForm=i,this._stateChanges=r,t?to(t.field)&&!t.updateValueAndValidity?(this.formField=t,this.ngControl=null):(this.formField=null,this.ngControl=t):this.ngControl=this.formField=null;}updateErrorState(){let m=this.errorState,t=this._getCurrentErrorState(this.matcher||this._defaultMatcher);t!==m&&(this.errorState=t,this._stateChanges.next());}_getCurrentErrorState(m){if(this.formField&&m?.isSignalErrorState)return m.isSignalErrorState(this.formField.field())??false;let t=this._parentFormGroup||this._parentForm,e=this.ngControl?this.ngControl.control:null;return m?.isErrorState(e,t)??false}};var et=["*"],oe=["content"],Wt=[[["mat-drawer"],["mat-sidenav"]],[["mat-drawer-content"],["mat-sidenav-content"]],"*"],Zt=["mat-drawer, mat-sidenav","mat-drawer-content, mat-sidenav-content","*"];function ae(n,m){if(n&1){let t=vC();Cs(0,"div",1),kg("click",function(){Cf(t);let i=CC();return Tf(i._onBackdropClicked())}),hl();}if(n&2){let t=CC();zg("mat-drawer-shown",t._isShowingBackdrop());}}function se(n,m){n&1&&(Cs(0,"mat-drawer-content"),SC(1,2),hl());}function de(n,m){if(n&1){let t=vC();Cs(0,"div",1),kg("click",function(){Cf(t);let i=CC();return Tf(i._onBackdropClicked())}),hl();}if(n&2){let t=CC();zg("mat-drawer-shown",t._isShowingBackdrop());}}function le(n,m){n&1&&(Cs(0,"mat-sidenav-content"),SC(1,2),hl());}var ce=`.mat-drawer-container {
|
|
161
|
+
position: relative;
|
|
162
|
+
z-index: 1;
|
|
163
|
+
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
164
|
+
background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background));
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
display: block;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
.mat-drawer-container[fullscreen] {
|
|
170
|
+
top: 0;
|
|
171
|
+
left: 0;
|
|
172
|
+
right: 0;
|
|
173
|
+
bottom: 0;
|
|
174
|
+
position: absolute;
|
|
175
|
+
}
|
|
176
|
+
.mat-drawer-container[fullscreen].mat-drawer-container-has-open {
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
}
|
|
179
|
+
.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side {
|
|
180
|
+
z-index: 3;
|
|
181
|
+
}
|
|
182
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,
|
|
183
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,
|
|
184
|
+
.ng-animate-disabled .mat-drawer-container .mat-drawer-content {
|
|
185
|
+
transition: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.mat-drawer-backdrop {
|
|
189
|
+
top: 0;
|
|
190
|
+
left: 0;
|
|
191
|
+
right: 0;
|
|
192
|
+
bottom: 0;
|
|
193
|
+
position: absolute;
|
|
194
|
+
display: block;
|
|
195
|
+
z-index: 3;
|
|
196
|
+
visibility: hidden;
|
|
197
|
+
}
|
|
198
|
+
.mat-drawer-backdrop.mat-drawer-shown {
|
|
199
|
+
visibility: visible;
|
|
200
|
+
background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent));
|
|
201
|
+
}
|
|
202
|
+
.mat-drawer-transition .mat-drawer-backdrop {
|
|
203
|
+
transition-duration: 400ms;
|
|
204
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
205
|
+
transition-property: background-color, visibility;
|
|
206
|
+
}
|
|
207
|
+
@media (forced-colors: active) {
|
|
208
|
+
.mat-drawer-backdrop {
|
|
209
|
+
opacity: 0.5;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.mat-drawer-content {
|
|
214
|
+
position: relative;
|
|
215
|
+
z-index: 1;
|
|
216
|
+
display: block;
|
|
217
|
+
height: 100%;
|
|
218
|
+
overflow: auto;
|
|
219
|
+
}
|
|
220
|
+
.mat-drawer-content.mat-drawer-content-hidden {
|
|
221
|
+
opacity: 0;
|
|
222
|
+
}
|
|
223
|
+
.mat-drawer-transition .mat-drawer-content {
|
|
224
|
+
transition-duration: 400ms;
|
|
225
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
226
|
+
transition-property: transform, margin-left, margin-right;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.mat-drawer {
|
|
230
|
+
position: relative;
|
|
231
|
+
z-index: 4;
|
|
232
|
+
color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));
|
|
233
|
+
box-shadow: var(--mat-sidenav-container-elevation-shadow, none);
|
|
234
|
+
background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface));
|
|
235
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
236
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
237
|
+
width: var(--mat-sidenav-container-width, 360px);
|
|
238
|
+
display: block;
|
|
239
|
+
position: absolute;
|
|
240
|
+
top: 0;
|
|
241
|
+
bottom: 0;
|
|
242
|
+
z-index: 3;
|
|
243
|
+
outline: 0;
|
|
244
|
+
box-sizing: border-box;
|
|
245
|
+
overflow-y: auto;
|
|
246
|
+
transform: translate3d(-100%, 0, 0);
|
|
247
|
+
}
|
|
248
|
+
@media (forced-colors: active) {
|
|
249
|
+
.mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end {
|
|
250
|
+
border-right: solid 1px currentColor;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
@media (forced-colors: active) {
|
|
254
|
+
[dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end {
|
|
255
|
+
border-left: solid 1px currentColor;
|
|
256
|
+
border-right: none;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
.mat-drawer.mat-drawer-side {
|
|
260
|
+
z-index: 2;
|
|
261
|
+
}
|
|
262
|
+
.mat-drawer.mat-drawer-end {
|
|
263
|
+
right: 0;
|
|
264
|
+
transform: translate3d(100%, 0, 0);
|
|
265
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
266
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
267
|
+
border-top-right-radius: 0;
|
|
268
|
+
border-bottom-right-radius: 0;
|
|
269
|
+
}
|
|
270
|
+
[dir=rtl] .mat-drawer {
|
|
271
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
272
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
273
|
+
border-top-right-radius: 0;
|
|
274
|
+
border-bottom-right-radius: 0;
|
|
275
|
+
transform: translate3d(100%, 0, 0);
|
|
276
|
+
}
|
|
277
|
+
[dir=rtl] .mat-drawer.mat-drawer-end {
|
|
278
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
279
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
280
|
+
border-top-left-radius: 0;
|
|
281
|
+
border-bottom-left-radius: 0;
|
|
282
|
+
left: 0;
|
|
283
|
+
right: auto;
|
|
284
|
+
transform: translate3d(-100%, 0, 0);
|
|
285
|
+
}
|
|
286
|
+
.mat-drawer-transition .mat-drawer {
|
|
287
|
+
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
288
|
+
}
|
|
289
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) {
|
|
290
|
+
visibility: hidden;
|
|
291
|
+
box-shadow: none;
|
|
292
|
+
}
|
|
293
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container {
|
|
294
|
+
display: none;
|
|
295
|
+
}
|
|
296
|
+
.mat-drawer.mat-drawer-opened.mat-drawer-opened {
|
|
297
|
+
transform: none;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.mat-drawer-side {
|
|
301
|
+
box-shadow: none;
|
|
302
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
303
|
+
border-right-width: 1px;
|
|
304
|
+
border-right-style: solid;
|
|
305
|
+
}
|
|
306
|
+
.mat-drawer-side.mat-drawer-end {
|
|
307
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
308
|
+
border-left-width: 1px;
|
|
309
|
+
border-left-style: solid;
|
|
310
|
+
border-right: none;
|
|
311
|
+
}
|
|
312
|
+
[dir=rtl] .mat-drawer-side {
|
|
313
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
314
|
+
border-left-width: 1px;
|
|
315
|
+
border-left-style: solid;
|
|
316
|
+
border-right: none;
|
|
317
|
+
}
|
|
318
|
+
[dir=rtl] .mat-drawer-side.mat-drawer-end {
|
|
319
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
320
|
+
border-right-width: 1px;
|
|
321
|
+
border-right-style: solid;
|
|
322
|
+
border-left: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.mat-drawer-inner-container {
|
|
326
|
+
width: 100%;
|
|
327
|
+
height: 100%;
|
|
328
|
+
overflow: auto;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.mat-sidenav-fixed {
|
|
332
|
+
position: fixed;
|
|
333
|
+
}
|
|
334
|
+
`;var he=new C("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>false}),ft=new C("MAT_DRAWER_CONTAINER"),Z=(()=>{class n extends he$1{_platform=g(p);_changeDetectorRef=g(bl);_element=g(Xt$1);_ngZone=g(G);_isInert=false;_container=g(pt);ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>this._changeDetectorRef.markForCheck());}_drawerToggled(t){t.opened?this._ngZone.runOutsideAngular(()=>{t._animationEnd.pipe(tv(50),an(1)).subscribe(()=>this._updateInert());}):this._updateInert();}_drawerModeChanged(){this._updateInert();}_updateInert(){let t=this._container._isShowingBackdrop();if(t!==this._isInert){let e=this._element.nativeElement;this._isInert=t,t?e.setAttribute("inert","true"):e.removeAttribute("inert");}}_shouldBeHidden(){if(this._platform.isBrowser)return false;let{start:t,end:e}=this._container;return t!=null&&t.mode!=="over"&&t.opened||e!=null&&e.mode!=="over"&&e.opened}static \u0275fac=(()=>{let t;return function(i){return (t||(t=qp(n)))(i||n)}})();static \u0275cmp=jw({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(e,i){e&2&&($g("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px"),zg("mat-drawer-content-hidden",i._shouldBeHidden()));},features:[lT([{provide:he$1,useExisting:n}]),Eg],ngContentSelectors:et,decls:1,vars:0,template:function(e,i){e&1&&(bC(),SC(0));},encapsulation:2})}return n})(),mt=(()=>{class n{_elementRef=g(Xt$1);_focusTrapFactory=g(kn);_focusMonitor=g(St);_platform=g(p);_ngZone=g(G);_renderer=g(Ps);_interactivityChecker=g(Ue);_doc=g(U);_container=g(ft,{optional:true});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=false;_anchor=null;get position(){return this._position}set position(t){t=t==="end"?"end":"start",t!==this._position&&(this._isAttached&&this._updatePositionInParent(t),this._position=t,this.onPositionChanged.emit());}_position="start";get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next(),this._getContent()?._drawerModeChanged();}_mode="over";get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=vi(t);}_disableClose=false;get autoFocus(){let t=this._autoFocus;return t??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(t){(t==="true"||t==="false"||t==null)&&(t=vi(t)),this._autoFocus=t;}_autoFocus;get opened(){return this._opened()}set opened(t){this.toggle(vi(t));}_opened=Wi(false);_openedVia=null;_animationStarted=new ue;_animationEnd=new ue;openedChange=new vt$1(true);_openedStream=this.openedChange.pipe(kt(t=>t),re$1(()=>{}));openedStart=this._animationStarted.pipe(kt(()=>this.opened),Ia(void 0));_closedStream=this.openedChange.pipe(kt(t=>!t),re$1(()=>{}));closedStart=this._animationStarted.pipe(kt(()=>!this.opened),Ia(void 0));_destroyed=new ue;onPositionChanged=new vt$1;_content;_modeChanged=new ue;_injector=g(pe);_changeDetectorRef=g(bl);constructor(){this.openedChange.pipe(zy(this._destroyed)).subscribe(t=>{t?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program");}),this._eventCleanups=this._ngZone.runOutsideAngular(()=>{let t=this._renderer,e=this._elementRef.nativeElement;return [t.listen(e,"keydown",i=>{i.keyCode===27&&!this.disableClose&&!Ve$1(i)&&this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault();});}),t.listen(e,"transitionend",this._handleTransitionEvent),t.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened);});}_focusByCssSelector(t,e){let i=this._elementRef.nativeElement.querySelector(t);i&&(this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{a(),A(),i.removeAttribute("tabindex");},a=this._renderer.listen(i,"blur",r),A=this._renderer.listen(i,"mousedown",r);})),i.focus(e));}_takeFocus(){if(!this._focusTrap)return;let t=this._elementRef.nativeElement;switch(this.autoFocus){case false:case "dialog":return;case true:case "first-tabbable":PE(()=>{!this._focusTrap.focusInitialElement()&&typeof t.focus=="function"&&t.focus();},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(t){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,t):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null);}_isFocusWithinDrawer(){let t=this._doc.activeElement;return !!t&&this._elementRef.nativeElement.contains(t)}ngAfterViewInit(){this._isAttached=true,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState());}ngOnDestroy(){this._eventCleanups.forEach(t=>t()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete();}open(t){return this.toggle(true,t)}close(){return this.toggle(false)}_closeViaBackdropClick(){return this._setOpen(false,true,"mouse")}toggle(t=!this.opened,e){t&&e&&(this._openedVia=e);let i=this._setOpen(t,!t&&this._isFocusWithinDrawer(),this._openedVia||"program");return t||(this._openedVia=null),i}_setOpen(t,e,i){return t===this.opened?Promise.resolve(t?"open":"close"):(this._opened.set(t),this._getContent()?._drawerToggled(this),this._container?._transitionsEnabled?(this._setIsAnimating(true),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next();}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",t),!t&&e&&this._restoreFocus(i),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(an(1)).subscribe(a=>r(a?"open":"close"));}))}_getContent(){return this._container?._content||this._container?._userContent}_setIsAnimating(t){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",t);}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&!!this._container?._isShowingBackdrop());}_updatePositionInParent(t){if(!this._platform.isBrowser)return;let e=this._elementRef.nativeElement,i=e.parentNode;t==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,e)),i.appendChild(e)):this._anchor&&this._anchor.parentNode.insertBefore(e,this._anchor);}_handleTransitionEvent=t=>{let e=this._elementRef.nativeElement;t.target===e&&this._ngZone.run(()=>{t.type==="transitionend"&&this._setIsAnimating(false),this._animationEnd.next(t);});};static \u0275fac=function(e){return new(e||n)};static \u0275cmp=jw({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(e&1&&jg(oe,5),e&2){let r;MC(r=NC())&&(i._content=r.first);}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){e&2&&(Sg("align",null)("tabIndex",i.mode!=="side"?"-1":null),$g("visibility",!i._container&&!i.opened?"hidden":null),zg("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side"));},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:et,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){e&1&&(bC(),Cs(0,"div",1,0),SC(2),hl());},dependencies:[he$1],encapsulation:2})}return n})(),pt=(()=>{class n{_dir=g(Qn,{optional:true});_element=g(Xt$1);_ngZone=g(G);_changeDetectorRef=g(bl);_animationDisabled=K();_transitionsEnabled=false;_allDrawers;_drawers=new ls;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=vi(t);}_autosize=g(he);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(t){this._backdropOverride=t==null?null:vi(t);}_backdropOverride=null;backdropClick=new vt$1;_start=null;_end=null;_left=null;_right=null;_destroyed=new ue;_doCheckSubject=new ue;_contentMargins={left:null,right:null};_contentMarginChanges=new ue;get scrollable(){return this._userContent||this._content}_injector=g(pe);constructor(){let t=g(p),e=g(F);this._dir?.change.pipe(zy(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins();}),e.change().pipe(zy(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&t.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=true;},200);});}ngAfterContentInit(){this._allDrawers.changes.pipe(Sd(this._allDrawers),zy(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(e=>!e._container||e._container===this)),this._drawers.notifyOnChanges();}),this._drawers.changes.pipe(Sd(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t);}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Cd(10),zy(this._destroyed)).subscribe(()=>this.updateContentMargins());});}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete();}open(){this._drawers.forEach(t=>t.open());}close(){this._drawers.forEach(t=>t.close());}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened){if(this._left.mode=="side")t+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();t+=i,e-=i;}}if(this._right&&this._right.opened){if(this._right.mode=="side")e+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();e+=i,t-=i;}}t=t||null,e=e||null,(t!==this._contentMargins.left||e!==this._contentMargins.right)&&(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)));}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next());}_watchDrawerToggle(t){t._animationStarted.pipe(zy(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();}),t.mode!=="side"&&t.openedChange.pipe(zy(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened));}_watchDrawerPosition(t){t.onPositionChanged.pipe(zy(this._drawers.changes)).subscribe(()=>{PE({read:()=>this._validateDrawers()},{injector:this._injector});});}_watchDrawerMode(t){t._modeChanged.pipe(zy(Jy(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck();});}_setContainerClass(t){let e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i);}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{t.position=="end"?(this._end!=null,this._end=t):(this._start!=null,this._start=t);}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end);}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop();}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._drawerHasBackdrop(t)).forEach(t=>t._closeViaBackdropClick());}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(t){return t!=null&&t.opened}_drawerHasBackdrop(t){return this._backdropOverride==null?!!t&&t.mode!=="side":this._backdropOverride}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=jw({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(e&1&&Lg(r,Z,5)(r,mt,5),e&2){let a;MC(a=NC())&&(i._content=a.first),MC(a=NC())&&(i._allDrawers=a);}},viewQuery:function(e,i){if(e&1&&jg(Z,5),e&2){let r;MC(r=NC())&&(i._userContent=r.first);}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){e&2&&zg("mat-drawer-container-explicit-backdrop",i._backdropOverride);},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[lT([{provide:ft,useExisting:n}])],ngContentSelectors:Zt,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){e&1&&(bC(Wt),aC(0,ae,1,2,"div",0),SC(1),SC(2,1),aC(3,se,2,0,"mat-drawer-content")),e&2&&(cC(i.hasBackdrop?0:-1),sI(3),cC(i._content?-1:3));},dependencies:[Z],styles:[`.mat-drawer-container {
|
|
335
|
+
position: relative;
|
|
336
|
+
z-index: 1;
|
|
337
|
+
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
338
|
+
background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background));
|
|
339
|
+
box-sizing: border-box;
|
|
340
|
+
display: block;
|
|
341
|
+
overflow: hidden;
|
|
342
|
+
}
|
|
343
|
+
.mat-drawer-container[fullscreen] {
|
|
344
|
+
top: 0;
|
|
345
|
+
left: 0;
|
|
346
|
+
right: 0;
|
|
347
|
+
bottom: 0;
|
|
348
|
+
position: absolute;
|
|
349
|
+
}
|
|
350
|
+
.mat-drawer-container[fullscreen].mat-drawer-container-has-open {
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
}
|
|
353
|
+
.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side {
|
|
354
|
+
z-index: 3;
|
|
355
|
+
}
|
|
356
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,
|
|
357
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,
|
|
358
|
+
.ng-animate-disabled .mat-drawer-container .mat-drawer-content {
|
|
359
|
+
transition: none;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.mat-drawer-backdrop {
|
|
363
|
+
top: 0;
|
|
364
|
+
left: 0;
|
|
365
|
+
right: 0;
|
|
366
|
+
bottom: 0;
|
|
367
|
+
position: absolute;
|
|
368
|
+
display: block;
|
|
369
|
+
z-index: 3;
|
|
370
|
+
visibility: hidden;
|
|
371
|
+
}
|
|
372
|
+
.mat-drawer-backdrop.mat-drawer-shown {
|
|
373
|
+
visibility: visible;
|
|
374
|
+
background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent));
|
|
375
|
+
}
|
|
376
|
+
.mat-drawer-transition .mat-drawer-backdrop {
|
|
377
|
+
transition-duration: 400ms;
|
|
378
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
379
|
+
transition-property: background-color, visibility;
|
|
380
|
+
}
|
|
381
|
+
@media (forced-colors: active) {
|
|
382
|
+
.mat-drawer-backdrop {
|
|
383
|
+
opacity: 0.5;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.mat-drawer-content {
|
|
388
|
+
position: relative;
|
|
389
|
+
z-index: 1;
|
|
390
|
+
display: block;
|
|
391
|
+
height: 100%;
|
|
392
|
+
overflow: auto;
|
|
393
|
+
}
|
|
394
|
+
.mat-drawer-content.mat-drawer-content-hidden {
|
|
395
|
+
opacity: 0;
|
|
396
|
+
}
|
|
397
|
+
.mat-drawer-transition .mat-drawer-content {
|
|
398
|
+
transition-duration: 400ms;
|
|
399
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
400
|
+
transition-property: transform, margin-left, margin-right;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.mat-drawer {
|
|
404
|
+
position: relative;
|
|
405
|
+
z-index: 4;
|
|
406
|
+
color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));
|
|
407
|
+
box-shadow: var(--mat-sidenav-container-elevation-shadow, none);
|
|
408
|
+
background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface));
|
|
409
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
410
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
411
|
+
width: var(--mat-sidenav-container-width, 360px);
|
|
412
|
+
display: block;
|
|
413
|
+
position: absolute;
|
|
414
|
+
top: 0;
|
|
415
|
+
bottom: 0;
|
|
416
|
+
z-index: 3;
|
|
417
|
+
outline: 0;
|
|
418
|
+
box-sizing: border-box;
|
|
419
|
+
overflow-y: auto;
|
|
420
|
+
transform: translate3d(-100%, 0, 0);
|
|
421
|
+
}
|
|
422
|
+
@media (forced-colors: active) {
|
|
423
|
+
.mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end {
|
|
424
|
+
border-right: solid 1px currentColor;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
@media (forced-colors: active) {
|
|
428
|
+
[dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end {
|
|
429
|
+
border-left: solid 1px currentColor;
|
|
430
|
+
border-right: none;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
.mat-drawer.mat-drawer-side {
|
|
434
|
+
z-index: 2;
|
|
435
|
+
}
|
|
436
|
+
.mat-drawer.mat-drawer-end {
|
|
437
|
+
right: 0;
|
|
438
|
+
transform: translate3d(100%, 0, 0);
|
|
439
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
440
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
441
|
+
border-top-right-radius: 0;
|
|
442
|
+
border-bottom-right-radius: 0;
|
|
443
|
+
}
|
|
444
|
+
[dir=rtl] .mat-drawer {
|
|
445
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
446
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
447
|
+
border-top-right-radius: 0;
|
|
448
|
+
border-bottom-right-radius: 0;
|
|
449
|
+
transform: translate3d(100%, 0, 0);
|
|
450
|
+
}
|
|
451
|
+
[dir=rtl] .mat-drawer.mat-drawer-end {
|
|
452
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
453
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
454
|
+
border-top-left-radius: 0;
|
|
455
|
+
border-bottom-left-radius: 0;
|
|
456
|
+
left: 0;
|
|
457
|
+
right: auto;
|
|
458
|
+
transform: translate3d(-100%, 0, 0);
|
|
459
|
+
}
|
|
460
|
+
.mat-drawer-transition .mat-drawer {
|
|
461
|
+
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
462
|
+
}
|
|
463
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) {
|
|
464
|
+
visibility: hidden;
|
|
465
|
+
box-shadow: none;
|
|
466
|
+
}
|
|
467
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container {
|
|
468
|
+
display: none;
|
|
469
|
+
}
|
|
470
|
+
.mat-drawer.mat-drawer-opened.mat-drawer-opened {
|
|
471
|
+
transform: none;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.mat-drawer-side {
|
|
475
|
+
box-shadow: none;
|
|
476
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
477
|
+
border-right-width: 1px;
|
|
478
|
+
border-right-style: solid;
|
|
479
|
+
}
|
|
480
|
+
.mat-drawer-side.mat-drawer-end {
|
|
481
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
482
|
+
border-left-width: 1px;
|
|
483
|
+
border-left-style: solid;
|
|
484
|
+
border-right: none;
|
|
485
|
+
}
|
|
486
|
+
[dir=rtl] .mat-drawer-side {
|
|
487
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
488
|
+
border-left-width: 1px;
|
|
489
|
+
border-left-style: solid;
|
|
490
|
+
border-right: none;
|
|
491
|
+
}
|
|
492
|
+
[dir=rtl] .mat-drawer-side.mat-drawer-end {
|
|
493
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
494
|
+
border-right-width: 1px;
|
|
495
|
+
border-right-style: solid;
|
|
496
|
+
border-left: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.mat-drawer-inner-container {
|
|
500
|
+
width: 100%;
|
|
501
|
+
height: 100%;
|
|
502
|
+
overflow: auto;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.mat-sidenav-fixed {
|
|
506
|
+
position: fixed;
|
|
507
|
+
}
|
|
508
|
+
`],encapsulation:2})}return n})(),Yt=(()=>{class n extends Z{static \u0275fac=(()=>{let t;return function(i){return (t||(t=qp(n)))(i||n)}})();static \u0275cmp=jw({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[lT([{provide:he$1,useExisting:n},{provide:Z,useExisting:n}]),Eg],ngContentSelectors:et,decls:1,vars:0,template:function(e,i){e&1&&(bC(),SC(0));},encapsulation:2})}return n})(),me=(()=>{class n extends mt{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=vi(t);}_fixedInViewport=false;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=fn(t);}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=fn(t);}_fixedBottomGap=0;static \u0275fac=(()=>{let t;return function(i){return (t||(t=qp(n)))(i||n)}})();static \u0275cmp=jw({type:n,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(e,i){e&2&&(Sg("tabIndex",i.mode!=="side"?"-1":null)("align",null),$g("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),zg("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side")("mat-sidenav-fixed",i.fixedInViewport));},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[lT([{provide:mt,useExisting:n}]),Eg],ngContentSelectors:et,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){e&1&&(bC(),Cs(0,"div",1,0),SC(2),hl());},dependencies:[he$1],encapsulation:2})}return n})(),fi=(()=>{class n extends pt{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let t;return function(i){return (t||(t=qp(n)))(i||n)}})();static \u0275cmp=jw({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,r){if(e&1&&Lg(r,Yt,5)(r,me,5),e&2){let a;MC(a=NC())&&(i._content=a.first),MC(a=NC())&&(i._allDrawers=a);}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){e&2&&zg("mat-drawer-container-explicit-backdrop",i._backdropOverride);},exportAs:["matSidenavContainer"],features:[lT([{provide:ft,useExisting:n},{provide:pt,useExisting:n}]),Eg],ngContentSelectors:Zt,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){e&1&&(bC(Wt),aC(0,de,1,2,"div",0),SC(1),SC(2,1),aC(3,le,2,0,"mat-sidenav-content")),e&2&&(cC(i.hasBackdrop?0:-1),sI(3),cC(i._content?-1:3));},dependencies:[Yt],styles:[ce],encapsulation:2})}return n})(),ui=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=wo({type:n});static \u0275inj=Zn({imports:[vt,wt,vt]})}return n})();export{He as H,Ne as N,Qt as Q,Ve as V,We as W,Yt as Y,Z,me as a,Qe as b,fi as f,mt as m,ne as n,pt as p,ui as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {l}from'./chunk-DIhIuMRR.js';import {g,C as Ce,ao as V,G,d5 as N,W as Wi,b as U,j as jw,k as Cs,n as kg,c9 as Pf,M as Mg,m as hl,J as JC,ck as Lf,o as aC,a3 as ZI,t as sI,u as cC,_ as _g,a6 as QI,d6 as ue$1,bU as Fd,K as x,ac as CC,a5 as Dl,a9 as vC,a8 as Kg,w as zg,d7 as Pn,aa as Cf,ab as Tf,q as dC,v as fC}from'./main-K6RKSHKK.js';import {o as z,k as _t,b as _e$1,n as ni,J as Jn,Q as Qn,e as ei,Y as Ye,A as At,Z as Zn,l as Xn,E as En,p as An}from'./chunk-BhdMedPO.js';import'./chunk-Bkwb10Tz.js';import'./chunk-D8Bz7q-C.js';import'./chunk-BEaYQhbI.js';var M=class e{api=g(ue$1);isLoading=Wi(false);result=Wi(null);errorMessage=Wi(null);invoke(t,o,a,s){return this.isLoading.set(true),this.result.set(null),this.errorMessage.set(null),this.api.invoke({namespaceId:t,userId:o||void 0,toolName:a,payload:s||void 0}).pipe(Fd({next:f=>{this.result.set(f),this.isLoading.set(false);},error:f=>{this.errorMessage.set(ne(f)),this.isLoading.set(false);}}))}reset(){this.result.set(null),this.errorMessage.set(null);}static \u0275fac=function(o){return new(o||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})};function ne(e){if(e instanceof Pn){let t=e.error;return t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:typeof t=="string"&&t.trim().length>0?t:e.statusText||`HTTP ${e.status}`}return e instanceof Error?e.message:"Unknown error"}var ie=(e,t)=>t.id;function re(e,t){e&1&&JC(0," Execute any registered tool directly \u2014 bypasses the normal agent-run pipeline. Restricted to super-admins. ");}function ae(e,t){e&1&&JC(0," Execute a registered tool directly in this namespace \u2014 bypasses the normal agent-run pipeline. ");}function le(e,t){e&1&&(Cs(0,"p",17),JC(1,"Loading namespaces\u2026"),hl());}function se(e,t){if(e&1&&(Cs(0,"option",27),JC(1),hl()),e&2){let o=t.$implicit;_g("value",o.id),sI(),Kg(o.name);}}function ce(e,t){if(e&1&&(Cs(0,"select",25)(1,"option",26),JC(2,"Select a namespace"),hl(),dC(3,se,2,2,"option",27,ie),hl(),ZI()),e&2){let o=CC(2);QI(),sI(3),fC(o.namespaces());}}function de(e,t){if(e&1&&aC(0,le,2,0,"p",17)(1,ce,5,0,"select",25),e&2){let o=CC();cC(o.namespacesLoading()?0:1);}}function me(e,t){if(e&1&&(Cs(0,"p",11),JC(1),hl()),e&2){let o=CC();sI(),Dl(" ",o.namespaceName()??o.namespaceId," ");}}function pe(e,t){e&1&&JC(0," Running\u2026 ");}function _e(e,t){e&1&&JC(0," Run tool ");}function ue(e,t){if(e&1){let o=vC();Cs(0,"button",28),kg("click",function(){Cf(o);let s=CC();return Tf(s.reset())}),JC(1,"Clear result"),hl();}}function fe(e,t){e&1&&(Cs(0,"section",23)(1,"h2",29),JC(2,"Error"),hl(),Cs(3,"pre",30),JC(4),hl()()),e&2&&(sI(4),Kg(t));}function ve(e,t){e&1&&(Cs(0,"h3",34),JC(1,"Metadata"),hl(),Cs(2,"pre",30),JC(3),hl()),e&2&&(sI(3),Kg(t));}function ge(e,t){if(e&1&&(Cs(0,"dt",36),JC(1,"Type"),hl(),Cs(2,"dd",37),JC(3),hl()),e&2){let o=CC(2);sI(3),Kg(o.errorType);}}function ke(e,t){if(e&1&&(Cs(0,"dt",36),JC(1,"Message"),hl(),Cs(2,"dd",38),JC(3),hl()),e&2){let o=CC(2);sI(3),Kg(o.errorMessage);}}function be(e,t){if(e&1&&(Cs(0,"h3",34),JC(1,"Tool error details"),hl(),Cs(2,"dl",35),aC(3,ge,4,1),aC(4,ke,4,1),hl()),e&2){let o=CC();sI(3),cC(o.errorType?3:-1),sI(),cC(o.errorMessage?4:-1);}}function xe(e,t){if(e&1&&(Cs(0,"section",31)(1,"header",32)(2,"h2",29),JC(3),hl(),Cs(4,"span",33),JC(5),hl()(),Cs(6,"h3",34),JC(7,"Output"),hl(),Cs(8,"pre",30),JC(9),hl(),aC(10,ve,4,1),aC(11,be,5,2),hl()),e&2){let o,a=t,s=CC();zg("tool-invoke__result--failure",!a.success),sI(3),Dl("Result \u2014 ",a.toolName),sI(),zg("tool-invoke__badge--success",a.success)("tool-invoke__badge--failure",!a.success),sI(),Dl(" ",a.success?"Success":"Tool error"," "),sI(4),Kg(a.output),sI(),cC((o=s.formatMetadata(a.metadata))?10:-1,o),sI(),cC(a.errorType||a.errorMessage?11:-1);}}var te=class e{destroyRef=g(Ce);route=g(V);router=g(G);namespaceController=g(N);userState=g(l);state=g(M);namespaceId=this.route.snapshot.params.namespaceId;isPlatformMode=!this.namespaceId;namespaces=Wi([]);namespacesLoading=Wi(true);namespaceName=Wi(null);form=new z({namespaceId:new _t("",{nonNullable:true,validators:[_e$1.required]}),userId:new _t("",{nonNullable:true}),toolName:new _t("",{nonNullable:true,validators:[_e$1.required]}),payload:new _t("",{nonNullable:true})});ngOnInit(){let t=this.userState.currentUser()?.id;t?this.form.controls.userId.patchValue(t):this.userState.loadMe().pipe(U(this.destroyRef)).subscribe({next:o=>{o.id&&this.form.controls.userId.patchValue(o.id);}}),this.isPlatformMode?this.namespaceController.listAllNamespace().pipe(U(this.destroyRef)).subscribe({next:o=>{this.namespaces.set(o.map(a=>({id:a.id,name:a.name}))),this.namespacesLoading.set(false);},error:()=>this.namespacesLoading.set(false)}):(this.form.controls.namespaceId.patchValue(this.namespaceId),this.namespacesLoading.set(false),this.namespaceController.getByIdNamespace(this.namespaceId).pipe(U(this.destroyRef)).subscribe({next:o=>this.namespaceName.set(o.name),error:()=>this.namespaceName.set(this.namespaceId)}));}submit(){if(this.form.invalid||this.state.isLoading())return;let{namespaceId:t,userId:o,toolName:a,payload:s}=this.form.getRawValue();this.state.invoke(t,o.trim()||void 0,a.trim(),s.trim()||void 0).pipe(U(this.destroyRef)).subscribe();}reset(){this.state.reset();}formatMetadata(t){return !t||Object.keys(t).length===0?null:JSON.stringify(t,null,2)}back(){this.isPlatformMode?this.router.navigate(["/agentos","admin"]):this.router.navigate(["/agentos",this.namespaceId,"agent-configs"]);}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=jw({type:e,selectors:[["agentos-tool-invoke"]],decls:46,vars:8,consts:[[1,"tool-invoke"],[1,"tool-invoke__header"],["type","button",1,"tool-invoke__back",3,"click"],["width","16","height","16","viewBox","0 0 24 24","fill","none","aria-hidden","true"],["d","M15 18l-6-6 6-6","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"tool-invoke__title"],[1,"tool-invoke__subtitle"],[1,"tool-invoke__form",3,"ngSubmit","formGroup"],[1,"tool-invoke__field"],["for","ti-namespace",1,"tool-invoke__label"],[1,"tool-invoke__required"],["id","ti-namespace",1,"tool-invoke__namespace-static"],["for","ti-user",1,"tool-invoke__label"],[1,"tool-invoke__optional"],["id","ti-user","type","text","formControlName","userId","placeholder","UUID of the user \u2014 adds user-scoped overlay layers","autocomplete","off",1,"tool-invoke__input"],["for","ti-tool",1,"tool-invoke__label"],["id","ti-tool","type","text","formControlName","toolName","placeholder","e.g. MY_FILES__listFiles","autocomplete","off","spellcheck","false",1,"tool-invoke__input","tool-invoke__input--mono"],[1,"tool-invoke__hint"],["for","ti-payload",1,"tool-invoke__label"],["id","ti-payload","formControlName","payload","rows","6","placeholder",'JSON arguments for the tool, e.g. {"path": "/some/dir"}\\nLeave empty for tools with no input.',"spellcheck","false",1,"tool-invoke__textarea","tool-invoke__input--mono"],[1,"tool-invoke__actions"],["type","submit",1,"tool-invoke__submit",3,"disabled"],["type","button",1,"tool-invoke__reset"],[1,"tool-invoke__result","tool-invoke__result--error"],[1,"tool-invoke__result",3,"tool-invoke__result--failure"],["id","ti-namespace","formControlName","namespaceId",1,"tool-invoke__select"],["value","","disabled",""],[3,"value"],["type","button",1,"tool-invoke__reset",3,"click"],[1,"tool-invoke__result-title"],[1,"tool-invoke__output"],[1,"tool-invoke__result"],[1,"tool-invoke__result-header"],[1,"tool-invoke__badge"],[1,"tool-invoke__section-label"],[1,"tool-invoke__dl"],[1,"tool-invoke__dt"],[1,"tool-invoke__dd","tool-invoke__dd--mono"],[1,"tool-invoke__dd"]],template:function(o,a){if(o&1&&(Cs(0,"div",0)(1,"header",1)(2,"button",2),kg("click",function(){return a.back()}),Pf(),Cs(3,"svg",3),Mg(4,"path",4),hl(),JC(5," Back "),hl(),Lf(),Cs(6,"h1",5),JC(7,"Tool invoke"),hl(),Cs(8,"p",6),aC(9,re,1,0)(10,ae,1,0),hl()(),Cs(11,"form",7),kg("ngSubmit",function(){return a.submit()}),Cs(12,"div",8)(13,"label",9),JC(14,"Namespace "),Cs(15,"span",10),JC(16,"*"),hl()(),aC(17,de,2,1)(18,me,2,1,"p",11),hl(),Cs(19,"div",8)(20,"label",12),JC(21,"User ID "),Cs(22,"span",13),JC(23,"(optional)"),hl()(),Mg(24,"input",14),ZI(),hl(),Cs(25,"div",8)(26,"label",15),JC(27,"Tool name "),Cs(28,"span",10),JC(29,"*"),hl()(),Mg(30,"input",16),ZI(),Cs(31,"p",17),JC(32," Exact tool name as returned by the agent definition inspect page. When not found, the error response lists all available tools for the selected namespace. "),hl()(),Cs(33,"div",8)(34,"label",18),JC(35,"Payload "),Cs(36,"span",13),JC(37,"(optional)"),hl()(),Mg(38,"textarea",19),ZI(),hl(),Cs(39,"div",20)(40,"button",21),aC(41,pe,1,0)(42,_e,1,0),hl(),aC(43,ue,2,0,"button",22),hl()(),aC(44,fe,5,1,"section",23),aC(45,xe,12,11,"section",24),hl()),o&2){let s,f;sI(9),cC(a.isPlatformMode?9:10),sI(2),_g("formGroup",a.form),sI(6),cC(a.isPlatformMode?17:18),sI(7),QI(),sI(6),QI(),sI(8),QI(),sI(2),_g("disabled",a.form.invalid||a.state.isLoading()),sI(),cC(a.state.isLoading()?41:42),sI(2),cC(a.state.result()||a.state.errorMessage()?43:-1),sI(),cC((s=a.state.errorMessage())?44:-1,s),sI(),cC((f=a.state.result())?45:-1,f);}},dependencies:[ni,Jn,Qn,ei,Ye,At,Zn,Xn,En,An],styles:[".tool-invoke[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;max-width:720px;margin:0 auto;padding:2rem 1rem}.tool-invoke__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.tool-invoke__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;padding:0;border:none;background:transparent;color:var(--color-text-secondary, #6e6e73);font-size:.875rem;font-family:inherit;cursor:pointer;align-self:flex-start}.tool-invoke__back[_ngcontent-%COMP%]:hover{color:var(--color-text, #1d1d1f)}.tool-invoke__namespace-static[_ngcontent-%COMP%]{margin:0;padding:.5rem .75rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .12));background:var(--color-surface-muted, rgba(0, 0, 0, .04));color:var(--color-text, #1d1d1f);font-size:.9375rem}.tool-invoke__title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:600;color:var(--color-text, #1d1d1f);letter-spacing:-.02em}.tool-invoke__subtitle[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--color-text-secondary, #6e6e73);line-height:1.5}.tool-invoke__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem;padding:1.5rem;border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:12px}.tool-invoke__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem}.tool-invoke__label[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:500;color:var(--color-text-secondary, #6e6e73)}.tool-invoke__required[_ngcontent-%COMP%]{color:var(--color-error, #ff3b30);margin-left:.1em}.tool-invoke__optional[_ngcontent-%COMP%]{font-weight:400;color:var(--color-text-secondary, #6e6e73);font-size:.75rem}.tool-invoke__hint[_ngcontent-%COMP%]{margin:0;font-size:.75rem;color:var(--color-text-secondary, #6e6e73);line-height:1.4}.tool-invoke__input[_ngcontent-%COMP%], .tool-invoke__select[_ngcontent-%COMP%], .tool-invoke__textarea[_ngcontent-%COMP%]{padding:.5rem .75rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .12));background:var(--color-surface, #fff);color:var(--color-text, #1d1d1f);font-size:.9375rem;font-family:inherit;transition:border-color .15s ease}.tool-invoke__input[_ngcontent-%COMP%]:focus, .tool-invoke__select[_ngcontent-%COMP%]:focus, .tool-invoke__textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--color-primary, #007aff)}.tool-invoke__input--mono[_ngcontent-%COMP%], .tool-invoke__select--mono[_ngcontent-%COMP%], .tool-invoke__textarea--mono[_ngcontent-%COMP%]{font-family:monospace;font-size:.875rem}.tool-invoke__textarea[_ngcontent-%COMP%]{resize:vertical;min-height:120px}.tool-invoke__select[_ngcontent-%COMP%]{cursor:pointer}.tool-invoke__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding-top:.25rem}.tool-invoke__submit[_ngcontent-%COMP%]{padding:.55rem 1.25rem;border-radius:8px;border:none;background:var(--color-primary, #007aff);color:#fff;font-size:.9375rem;font-weight:500;font-family:inherit;cursor:pointer;transition:opacity .15s ease}.tool-invoke__submit[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.tool-invoke__submit[_ngcontent-%COMP%]:not(:disabled):hover{opacity:.88}.tool-invoke__reset[_ngcontent-%COMP%]{padding:.55rem 1rem;border-radius:8px;border:1px solid var(--color-border, rgba(0, 0, 0, .12));background:transparent;color:var(--color-text-secondary, #6e6e73);font-size:.875rem;font-family:inherit;cursor:pointer}.tool-invoke__reset[_ngcontent-%COMP%]:hover{background:var(--color-surface-hover, rgba(0, 0, 0, .04))}.tool-invoke__result[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;border:1px solid var(--color-border, rgba(0, 0, 0, .1));border-radius:12px}.tool-invoke__result--error[_ngcontent-%COMP%]{border-color:var(--color-error, #ff3b30);background:var(--color-error-bg, #fff5f5)}.tool-invoke__result--failure[_ngcontent-%COMP%]{border-color:var(--color-warning, #ff9500);background:var(--color-warning-bg, #fffaf0)}.tool-invoke__result-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.tool-invoke__result-title[_ngcontent-%COMP%]{margin:0;font-size:.9375rem;font-weight:600;color:var(--color-text, #1d1d1f)}.tool-invoke__badge[_ngcontent-%COMP%]{display:inline-block;padding:.2em .6em;border-radius:4px;font-size:.75rem;font-weight:500}.tool-invoke__badge--success[_ngcontent-%COMP%]{background:var(--color-success-bg, #e3f5e1);color:var(--color-success, #34c759)}.tool-invoke__badge--failure[_ngcontent-%COMP%]{background:var(--color-warning-bg, #fff3cd);color:var(--color-warning, #ff9500)}.tool-invoke__section-label[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.8125rem;font-weight:500;color:var(--color-text-secondary, #6e6e73);text-transform:uppercase;letter-spacing:.04em}.tool-invoke__output[_ngcontent-%COMP%]{margin:0;padding:.875rem 1rem;border-radius:6px;background:var(--color-surface-muted, rgba(0, 0, 0, .04));font-size:.875rem;font-family:monospace;color:var(--color-text, #1d1d1f);white-space:pre-wrap;word-break:break-word;line-height:1.6;max-height:500px;overflow-y:auto}.tool-invoke__dl[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;gap:.4rem 1rem;margin:0}.tool-invoke__dt[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:500;color:var(--color-text-secondary, #6e6e73);align-self:start}.tool-invoke__dd[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--color-text, #1d1d1f);word-break:break-word}.tool-invoke__dd--mono[_ngcontent-%COMP%]{font-family:monospace}"]})};export{te as ToolInvokeComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {O}from'./chunk-DHF4GvxN.js';import {R}from'./chunk-BiwhEkuA.js';import {g,G,C as Ce,aJ as Tr,W as Wi,bS as Da,r as re,b as U,j as jw,aK as Lb,k as Cs,bf as gT,n as kg,J as JC,m as hl,af as wg,A as AC,_ as _g,bg as yT,ah as dT,o as aC,ac as CC,u as cC,a9 as vC,aa as Cf,ab as Tf,ag as ET}from'./main-K6RKSHKK.js';import'./chunk-DIhIuMRR.js';import {W as Wn}from'./chunk-D8Bz7q-C.js';import'./chunk-BEaYQhbI.js';import'./chunk-BhdMedPO.js';import'./chunk-B55TXBfo.js';import'./chunk-Bkwb10Tz.js';var k=()=>[];function V(i,t){if(i&1){let e=vC();Cs(0,"agentos-auth-setting-item",4),kg("editRequested",function(n){Cf(e);let p=CC(2);return Tf(p.onEdit(n))})("deleteRequested",function(n){Cf(e);let p=CC(2);return Tf(p.onDelete(n))}),hl();}i&2&&_g("config",t)("showBadge",false);}function F(i,t){if(i&1&&aC(0,V,1,2,"agentos-auth-setting-item",3),i&2){let e,o=t.$implicit,n=CC();cC((e=n.resolveSetting(o.id))?0:-1,e);}}var M=class i{router=g(G);destroyRef=g(Ce);state=g(R);refresh$=new Tr(void 0);isLoading=Wi(true);settings$=this.refresh$.pipe(Da(()=>(this.isLoading.set(true),this.state.loadPlatformSettings())));settingItems$=this.settings$.pipe(re(t=>t.map(e=>({id:e.id??"",name:e.name,description:e.authType}))));settingsById=new Map;constructor(){this.settings$.pipe(U(this.destroyRef)).subscribe({next:t=>{this.settingsById=new Map(t.map(e=>[e.id??"",e])),this.isLoading.set(false);},error:()=>this.isLoading.set(false)});}goBack(){this.router.navigate(["/agentos","admin"]);}openCreateForm(){this.router.navigate(["/agentos","admin","auth-settings","new"]);}onEdit(t){t.id&&this.router.navigate(["/agentos","admin","auth-settings",t.id,"edit"]);}onDelete(t){t.id&&this.state.delete(t.id,"platform").pipe(U(this.destroyRef)).subscribe(()=>this.refresh$.next());}resolveSetting(t){return this.settingsById.get(t)??null}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=jw({type:i,selectors:[["agentos-platform-auth-settings"]],decls:6,vars:7,consts:[["authSettingItemTpl",""],["title","Platform Auth Settings","emptyMessage","No platform auth settings defined yet. Add one above.","cardMinWidth","400px",3,"createRequested","items","loading","showCreate","itemTemplate"],["toolbar-start","","type","button",1,"platform-auth-settings__back",3,"click"],["scope","namespace",3,"config","showBadge"],["scope","namespace",3,"editRequested","deleteRequested","config","showBadge"]],template:function(e,o){if(e&1&&(Cs(0,"ds-entity-list",1),gT(1,"async"),kg("createRequested",function(){return o.openCreateForm()}),Cs(2,"button",2),kg("click",function(){return o.goBack()}),JC(3,"\u2190 Admin"),hl()(),wg(4,F,1,1,"ng-template",null,0,ET)),e&2){let n=AC(5);_g("items",yT(1,4,o.settingItems$)??dT(6,k))("loading",o.isLoading())("showCreate",true)("itemTemplate",n);}},dependencies:[Wn,O,Lb],encapsulation:2})};export{M as PlatformAuthSettingsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {K as Kn,Z as Zn,S as Se}from'./chunk-
|
|
1
|
+
import {K as Kn,Z as Zn,S as Se}from'./chunk-D8Bz7q-C.js';import {cb as JB,cc as XB,W as Wi,j as jw,k as Cs,J as JC,m as hl,o as aC,t as sI,a8 as Kg,a5 as Dl,u as cC,a9 as vC,n as kg,ac as CC,_ as _g,aa as Cf,ab as Tf}from'./main-K6RKSHKK.js';function A(o,a){if(o&1){let e=vC();Cs(0,"span",7),JC(1,"Delete?"),hl(),Cs(2,"ds-icon-button",8),kg("action",function(){Cf(e);let l=CC();return Tf(l.onDeleteConfirmed())}),hl(),Cs(3,"ds-icon-button",9),kg("action",function(){Cf(e);let l=CC();return Tf(l.onDeleteCancelled())}),hl();}}function P(o,a){if(o&1){let e=vC();Cs(0,"ds-kebab-menu",10),kg("itemSelected",function(l){Cf(e);let O=CC();return Tf(O.onMenuAction(l))}),hl();}if(o&2){let e=CC();_g("items",e.menuItems);}}var I=class o{model=JB.required();namespaceId=JB(void 0);readOnly=JB(false);deleteRequested=XB();editRequested=XB();pendingDelete=Wi(false);menuItems=[{key:"edit",label:"Edit model",icon:"edit"},{key:"delete",label:"Delete model",icon:"delete",variant:"danger"}];get displayTitle(){return this.model().alias??this.model().apiModelName}onMenuAction(a){switch(a){case "edit":this.editRequested.emit(this.model());break;case "delete":this.pendingDelete.set(true);break}}onDeleteConfirmed(){this.pendingDelete.set(false),this.deleteRequested.emit(this.model());}onDeleteCancelled(){this.pendingDelete.set(false);}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=jw({type:o,selectors:[["agentos-ai-model-item"]],inputs:{model:[1,"model"],namespaceId:[1,"namespaceId"],readOnly:[1,"readOnly"]},outputs:{deleteRequested:"deleteRequested",editRequested:"editRequested"},decls:12,vars:4,consts:[["role","listitem","dsBlueprint","",1,"ai-model-item"],[1,"ai-model-item__body"],[1,"ai-model-item__name"],[1,"ai-model-item__api-name"],[1,"ai-model-item__params"],[1,"ai-model-item__actions"],[3,"items"],[1,"ai-model-item__confirm-label"],["icon","check","variant","danger","title","Confirm deletion",3,"action"],["icon","close","title","Cancel deletion",3,"action"],[3,"itemSelected","items"]],template:function(e,i){e&1&&(Cs(0,"div",0)(1,"div",1)(2,"span",2),JC(3),hl(),Cs(4,"span",3),JC(5),hl(),Cs(6,"span",4)(7,"span"),JC(8),hl()()(),Cs(9,"div",5),aC(10,A,4,0)(11,P,1,1,"ds-kebab-menu",6),hl()()),e&2&&(sI(3),Kg(i.displayTitle),sI(2),Kg(i.model().apiModelName),sI(3),Dl("priority: ",i.model().priority),sI(2),cC(i.pendingDelete()?10:i.readOnly()?-1:11));},dependencies:[Kn,Zn,Se],styles:[".ai-model-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:14px 16px;position:relative;border-radius:0;border:1px solid var(--color-divider);background:var(--color-bg);box-shadow:var(--shadow-sm);overflow:visible;transition:border-color .15s ease}.ai-model-item[_ngcontent-%COMP%]:hover{border-color:var(--color-accent)}.ai-model-item__body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.2rem;min-width:0}.ai-model-item__name[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:var(--color-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-model-item__api-name[_ngcontent-%COMP%]{font-size:13px;color:var(--color-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-model-item__params[_ngcontent-%COMP%]{display:flex;gap:.75rem;font-size:13px;color:var(--color-text-secondary)}.ai-model-item__actions[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;gap:.125rem;opacity:0;transition:opacity .15s ease}.ai-model-item[_ngcontent-%COMP%]:hover .ai-model-item__actions[_ngcontent-%COMP%], .ai-model-item[_ngcontent-%COMP%]:focus-within .ai-model-item__actions[_ngcontent-%COMP%]{opacity:1}.ai-model-item__confirm-label[_ngcontent-%COMP%]{font-family:var(--font-heading);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--red-deep);margin-right:.25rem;white-space:nowrap}"]})};export{I};
|