@vendure/admin-ui-plugin 3.7.1-master-202607110305 → 3.7.1
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/lib/admin-ui/browser/{chunk-4TKAVPN5.js → chunk-2T7CWO2X.js} +2 -2
- package/lib/admin-ui/browser/{chunk-V42AB3BP.js → chunk-5MNYOKGR.js} +2 -2
- package/lib/admin-ui/browser/{chunk-ZYUP5A2J.js → chunk-AOVFD4U4.js} +2 -2
- package/lib/admin-ui/browser/{chunk-OG25EFQT.js → chunk-B5Z5EXJO.js} +2 -2
- package/lib/admin-ui/browser/{chunk-LZWITMYP.js → chunk-E277ZVWY.js} +2 -2
- package/lib/admin-ui/browser/{chunk-C2TGTT6X.js → chunk-IXECB573.js} +3 -3
- package/lib/admin-ui/browser/{chunk-C2TGTT6X.js.map → chunk-IXECB573.js.map} +1 -1
- package/lib/admin-ui/browser/{chunk-O57K7LXJ.js → chunk-K76LJDPG.js} +2 -2
- package/lib/admin-ui/browser/{chunk-ET6WOVC5.js → chunk-MBGRILMP.js} +2 -2
- package/lib/admin-ui/browser/{chunk-5RLCCAGL.js → chunk-RKF6D5VQ.js} +2 -2
- package/lib/admin-ui/browser/{chunk-HW7UOWNU.js → chunk-YMZKUYBS.js} +2 -2
- package/lib/admin-ui/browser/index.html +1 -1
- package/lib/admin-ui/browser/main-TYKK4TPR.js +2 -0
- package/package.json +4 -4
- package/lib/admin-ui/browser/main-PH7FZPIQ.js +0 -2
- /package/lib/admin-ui/browser/{chunk-4TKAVPN5.js.map → chunk-2T7CWO2X.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-V42AB3BP.js.map → chunk-5MNYOKGR.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-ZYUP5A2J.js.map → chunk-AOVFD4U4.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-OG25EFQT.js.map → chunk-B5Z5EXJO.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-LZWITMYP.js.map → chunk-E277ZVWY.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-O57K7LXJ.js.map → chunk-K76LJDPG.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-ET6WOVC5.js.map → chunk-MBGRILMP.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-5RLCCAGL.js.map → chunk-RKF6D5VQ.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-HW7UOWNU.js.map → chunk-YMZKUYBS.js.map} +0 -0
- /package/lib/admin-ui/browser/{main-PH7FZPIQ.js.map → main-TYKK4TPR.js.map} +0 -0
|
@@ -5822,10 +5822,10 @@ JavaScript: document.querySelector('${d}').${l} = '...';
|
|
|
5822
5822
|
`],encapsulation:2,changeDetection:0})}return n})(),sse=(()=>{class n{_platform=Q(us);_containerElement;_document=Q(bn);_styleLoader=Q(F0);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||vV()){let a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<a.length;r++)a[r].remove()}let i=this._document.createElement("div");i.classList.add(e),vV()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(lse)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),CV=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(t,e,i,a){this._renderer=e,this._ngZone=i,this.element=t.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",a)}detach(){this._ngZone.runOutsideAngular(()=>{let t=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(t,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),t.style.pointerEvents="none",t.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},L6=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Ce;_attachments=new Ce;_detachments=new Ce;_positionStrategy;_scrollStrategy;_locationChanges=Oi.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new Ce;_outsidePointerEvents=new Ce;_renders=new Ce;_afterRenderRef;_afterNextRenderRef;constructor(t,e,i,a,r,o,l,s,d,u=!1,p,h){this._portalOutlet=t,this._host=e,this._pane=i,this._config=a,this._ngZone=r,this._keyboardDispatcher=o,this._document=l,this._location=s,this._outsideClickDispatcher=d,this._animationsDisabled=u,this._injector=p,this._renderer=h,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy,this._afterRenderRef=_l(()=>OI(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=mc(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=q(q({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Ue(q({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=cr(this._config.width),t.height=cr(this._config.height),t.minWidth=cr(this._config.minWidth),t.minHeight=cr(this._config.minHeight),t.maxWidth=cr(this._config.maxWidth),t.maxHeight=cr(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new CV(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(t))}):this._backdropRef.element.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(t,e,i){let a=xp(e||[]).filter(r=>!!r);a.length&&(i?t.classList.add(...a):t.classList.remove(...a))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe($t(ji(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t?.disable(),t?.detach?.()}},Xle="cdk-overlay-connected-position-bounding-box",p7e=/([A-Za-z%]+)$/,R6=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Ce;_resizeSubscription=Oi.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,e,i,a,r){this._viewportRuler=e,this._document=i,this._platform=a,this._overlayContainer=r,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Xle),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,a=this._containerRect,r=[],o;for(let l of this._preferredPositions){let s=this._getOriginPoint(t,a,l),d=this._getOverlayPoint(s,e,l),u=this._getOverlayFit(d,e,i,l);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,s);return}if(this._canFitWithFlexibleDimensions(u,d,i)){r.push({position:l,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,l)});continue}(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:d,originPoint:s,position:l,overlayRect:e})}if(r.length){let l=null,s=-1;for(let d of r){let u=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);u>s&&(s=u,l=d)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&P0(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Xle),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let a;if(i.originX=="center")a=t.left+t.width/2;else{let o=this._isRtl()?t.right:t.left,l=this._isRtl()?t.left:t.right;a=i.originX=="start"?o:l}e.left<0&&(a-=e.left);let r;return i.originY=="center"?r=t.top+t.height/2:r=i.originY=="top"?t.top:t.bottom,e.top<0&&(r-=e.top),{x:a,y:r}}_getOverlayPoint(t,e,i){let a;i.overlayX=="center"?a=-e.width/2:i.overlayX==="start"?a=this._isRtl()?-e.width:0:a=this._isRtl()?0:-e.width;let r;return i.overlayY=="center"?r=-e.height/2:r=i.overlayY=="top"?0:-e.height,{x:t.x+a,y:t.y+r}}_getOverlayFit(t,e,i,a){let r=tse(e),{x:o,y:l}=t,s=this._getOffset(a,"x"),d=this._getOffset(a,"y");s&&(o+=s),d&&(l+=d);let u=0-o,p=o+r.width-i.width,h=0-l,g=l+r.height-i.height,C=this._subtractOverflows(r.width,u,p),w=this._subtractOverflows(r.height,h,g),M=C*w;return{visibleArea:M,isCompletelyWithinViewport:r.width*r.height===M,fitsInViewportVertically:w===r.height,fitsInViewportHorizontally:C==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let a=i.bottom-e.y,r=i.right-e.x,o=ese(this._overlayRef.getConfig().minHeight),l=ese(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportVertically||o!=null&&o<=a,d=t.fitsInViewportHorizontally||l!=null&&l<=r;return s&&d}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let a=tse(e),r=this._viewportRect,o=Math.max(t.x+a.width-r.width,0),l=Math.max(t.y+a.height-r.height,0),s=Math.max(r.top-i.top-t.y,0),d=Math.max(r.left-i.left-t.x,0),u=0,p=0;return a.width<=r.width?u=d||-o:u=t.x<this._viewportMargin?r.left-i.left-t.x:0,a.height<=r.height?p=s||-l:p=t.y<this._viewportMargin?r.top-i.top-t.y:0,this._previousPushAmount={x:u,y:p},{x:t.x+u,y:t.y+p}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!h7e(this._lastScrollVisibility,i)){let a=new P6(t,i);this._positionChanges.next(a)}this._lastScrollVisibility=i}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,a=t.overlayY;t.overlayX==="center"?i="center":this._isRtl()?i=t.overlayX==="start"?"right":"left":i=t.overlayX==="start"?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${a}`}_calculateBoundingBoxRect(t,e){let i=this._viewportRect,a=this._isRtl(),r,o,l;if(e.overlayY==="top")o=t.y,r=i.height-o+this._viewportMargin;else if(e.overlayY==="bottom")l=i.height-t.y+this._viewportMargin*2,r=i.height-l+this._viewportMargin;else{let g=Math.min(i.bottom-t.y+i.top,t.y),C=this._lastBoundingBoxSize.height;r=g*2,o=t.y-g,r>C&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-C/2)}let s=e.overlayX==="start"&&!a||e.overlayX==="end"&&a,d=e.overlayX==="end"&&!a||e.overlayX==="start"&&a,u,p,h;if(d)h=i.width-t.x+this._viewportMargin*2,u=t.x-this._viewportMargin;else if(s)p=t.x,u=i.right-t.x;else{let g=Math.min(i.right-t.x+i.left,t.x),C=this._lastBoundingBoxSize.width;u=g*2,p=t.x-g,u>C&&!this._isInitialRender&&!this._growAfterOpen&&(p=t.x-C/2)}return{top:o,left:p,bottom:l,right:h,width:u,height:r}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;a.height=cr(i.height),a.top=cr(i.top),a.bottom=cr(i.bottom),a.width=cr(i.width),a.left=cr(i.left),a.right=cr(i.right),e.overlayX==="center"?a.alignItems="center":a.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?a.justifyContent="center":a.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(a.maxHeight=cr(r)),o&&(a.maxWidth=cr(o))}this._lastBoundingBoxSize=i,P0(this._boundingBox.style,a)}_resetBoundingBoxStyles(){P0(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){P0(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let i={},a=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(a){let u=this._viewportRuler.getViewportScrollPosition();P0(i,this._getExactOverlayY(e,t,u)),P0(i,this._getExactOverlayX(e,t,u))}else i.position="static";let l="",s=this._getOffset(e,"x"),d=this._getOffset(e,"y");s&&(l+=`translateX(${s}px) `),d&&(l+=`translateY(${d}px)`),i.transform=l.trim(),o.maxHeight&&(a?i.maxHeight=cr(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(a?i.maxWidth=cr(o.maxWidth):r&&(i.maxWidth="")),P0(this._pane.style,i)}_getExactOverlayY(t,e,i){let a={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),t.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;a.bottom=`${o-(r.y+this._overlayRect.height)}px`}else a.top=cr(r.y);return a}_getExactOverlayX(t,e,i){let a={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let o;if(this._isRtl()?o=t.overlayX==="end"?"left":"right":o=t.overlayX==="end"?"right":"left",o==="right"){let l=this._document.documentElement.clientWidth;a.right=`${l-(r.x+this._overlayRect.width)}px`}else a.left=cr(r.x);return a}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Kle(t,i),isOriginOutsideView:yV(t,i),isOverlayClipped:Kle(e,i),isOverlayOutsideView:yV(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,a)=>i-Math.max(a,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&xp(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof Bt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}};function P0(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function ese(n){if(typeof n!="number"&&n!=null){let[t,e]=n.split(p7e);return!e||e==="px"?parseFloat(t):null}return n||null}function tse(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function h7e(n,t){return n===t?!0:n.isOriginClipped===t.isOriginClipped&&n.isOriginOutsideView===t.isOriginOutsideView&&n.isOverlayClipped===t.isOverlayClipped&&n.isOverlayOutsideView===t.isOverlayOutsideView}var nse="cdk-global-overlay-wrapper",H6=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(nse),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:a,height:r,maxWidth:o,maxHeight:l}=i,s=(a==="100%"||a==="100vw")&&(!o||o==="100%"||o==="100vw"),d=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),u=this._xPosition,p=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",g="",C="",w="";s?w="flex-start":u==="center"?(w="center",h?C=p:g=p):h?u==="left"||u==="end"?(w="flex-end",g=p):(u==="right"||u==="start")&&(w="flex-start",C=p):u==="left"||u==="start"?(w="flex-start",g=p):(u==="right"||u==="end")&&(w="flex-end",C=p),t.position=this._cssPosition,t.marginLeft=s?"0":g,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=s?"0":C,e.justifyContent=w,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(nse),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},dse=(()=>{class n{_viewportRuler=Q(dy);_document=Q(bn);_platform=Q(us);_overlayContainer=Q(sse);constructor(){}global(){return new H6}flexibleConnectedTo(e){return new R6(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Pp=(()=>{class n{scrollStrategies=Q(ise);_overlayContainer=Q(sse);_positionBuilder=Q(dse);_keyboardDispatcher=Q(rse);_injector=Q(Wt);_ngZone=Q(cn);_document=Q(bn);_directionality=Q(w0);_location=Q(Ms);_outsideClickDispatcher=Q(ose);_animationsModuleType=Q(zv,{optional:!0});_idGenerator=Q(p6);_renderer=Q(Cr).createRenderer(null,null);_appRef;_styleLoader=Q(F0);constructor(){}create(e){this._styleLoader.load(lse);let i=this._createHostElement(),a=this._createPaneElement(i),r=this._createPortalOutlet(a),o=new V6(e);return o.direction=o.direction||this._directionality.value,new L6(r,i,a,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Oa),this._renderer)}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Xl)),new _y(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var f7e=new Ye("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=Q(Pp);return()=>n.scrollStrategies.reposition()}});function g7e(n){return()=>n.scrollStrategies.reposition()}var v7e={provide:f7e,deps:[Pp],useFactory:g7e},B6=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=at({type:n});static \u0275inj=it({providers:[Pp,v7e],imports:[sy,kV,IO,IO]})}return n})();var k7e=["wrapper"],y7e=(n,t,e,i,a)=>({visible:n,info:t,success:e,error:i,warning:a}),cse=(()=>{class n{constructor(e){this.localizationService=e,this.offsetTop=0,this.message="",this.translationVars={},this.type="info",this.isVisible=!0,this.onClickFn=()=>{}}ngOnInit(){this.direction$=this.localizationService.direction$}registerOnClickFn(e){this.onClickFn=e}onClick(){this.isVisible&&this.onClickFn()}fadeOut(){return this.isVisible=!1,new Promise(e=>setTimeout(e,1e3))}getHeight(){return this.wrapper?this.wrapper.nativeElement.getBoundingClientRect().height:0}getIcon(){switch(this.type){case"info":return"info-circle";case"success":return"check-circle";case"error":return"exclamation-circle";case"warning":return"exclamation-triangle"}}stringifyMessage(e){return typeof e=="string"?e:JSON.stringify(e,null,2)}static{this.\u0275fac=function(i){return new(i||n)(x(Cp))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-notification"]],viewQuery:function(i,a){if(i&1&&At(k7e,7),i&2){let r;Ae(r=xe())&&(a.wrapper=r.first)}},hostBindings:function(i,a){i&1&&Z("click",function(){return a.onClick()})},standalone:!1,decls:6,vars:17,consts:[["wrapper",""],[1,"notification-wrapper",3,"dir","ngClass"],["size","24"]],template:function(i,a){i&1&&(S(0,"div",1,0),T(2,"async"),H(3,"clr-icon",2),E(4),T(5,"translate"),_()),i&2&&(la("top",a.offsetTop,"px"),y("dir",O(2,6,a.direction$))("ngClass",IQ(11,y7e,a.isVisible,a.type==="info",a.type==="success",a.type==="error",a.type==="warning")),f(3),Mt("shape",a.getIcon()),f(),ie(" ",nt(5,8,a.stringifyMessage(a.message),a.translationVars),`
|
|
5823
5823
|
`))},dependencies:[xi,We,ms,vt,Ee],styles:[`@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:.95}}[_nghost-%COMP%]{position:relative;z-index:1050}[_nghost-%COMP%] > .notification-wrapper[_ngcontent-%COMP%]{display:block;position:fixed;z-index:1001;top:0;right:10px;border-radius:3px;max-width:98vw;word-wrap:break-word;padding:10px;background-color:var(--color-grey-500);color:#fff;transition:opacity 1s,top .3s;opacity:0;white-space:pre-line}[_nghost-%COMP%] > .notification-wrapper.success[_ngcontent-%COMP%]{background-color:var(--color-success-800)}[_nghost-%COMP%] > .notification-wrapper.error[_ngcontent-%COMP%]{background-color:var(--color-error-800)}[_nghost-%COMP%] > .notification-wrapper.warning[_ngcontent-%COMP%]{background-color:var(--color-warning-800)}[_nghost-%COMP%] > .notification-wrapper.info[_ngcontent-%COMP%]{background-color:var(--color-weight-500)}[_nghost-%COMP%] > .notification-wrapper.visible[_ngcontent-%COMP%]{opacity:.95;animation:_ngcontent-%COMP%_fadeIn .3s .3s backwards}
|
|
5824
5824
|
/*# sourceMappingURL=notification.component-QGPVJFTH.css.map */`]})}}return n})();var C7e=3e3,ur=(()=>{class n{get hostView(){return this.overlayHostService.getHostView()}constructor(e,i,a){this.i18nService=e,this.resolver=i,this.overlayHostService=a,this.openToastRefs=[]}success(e,i){this.notify({message:e,translationVars:i,type:"success"})}info(e,i){this.notify({message:e,translationVars:i,type:"info"})}warning(e,i){this.notify({message:e,translationVars:i,type:"warning"})}error(e,i){this.notify({message:e,translationVars:i,type:"error",duration:2e4})}notify(e){this.createToast(e)}createToast(e){return Ho(this,null,function*(){let i=this.resolver.resolveComponentFactory(cse),r=(yield this.hostView).createComponent(i),o=r.instance,l=this.createDismissFunction(r);o.type=e.type||"info",o.message=e.message,o.translationVars=this.translateTranslationVars(e.translationVars||{}),o.registerOnClickFn(l);let s;(!e.duration||0<e.duration)&&(s=setTimeout(l,e.duration||C7e)),this.openToastRefs.unshift({ref:r,timerId:s}),setTimeout(()=>this.calculatePositions())})}createDismissFunction(e){return()=>{let i=e.instance,a=this.openToastRefs.map(r=>r.ref).indexOf(e);this.openToastRefs[a]&&clearTimeout(this.openToastRefs[a].timerId),i.fadeOut().then(()=>{e.destroy(),this.openToastRefs.splice(a,1),this.calculatePositions()})}}calculatePositions(){let e=10;this.openToastRefs.forEach(i=>{let a=i.ref.instance;a.offsetTop=e,e+=a.getHeight()+6})}translateTranslationVars(e){for(let[i,a]of Object.entries(e))typeof a=="string"&&(e[i]=this.i18nService.translate(a));return e}static{this.\u0275fac=function(i){return new(i||n)(me(wo),me(pc),me(S2))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var SV=(()=>{class n{constructor(e){this.viewContainerRef=e,this.create=new De}ngOnInit(){let e=this.viewContainerRef.createComponent(this.component);this.create.emit(e.instance)}static{this.\u0275fac=function(i){return new(i||n)(x(vn))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-dialog-component-outlet"]],inputs:{component:"component"},outputs:{create:"create"},standalone:!1,decls:0,vars:0,template:function(i,a){},encapsulation:2})}}return n})();function _7e(n,t){n&1&&bi(0)}function b7e(n,t){n&1&&bi(0)}var H0=(()=>{class n{constructor(e){this.localizationService=e,this.titleTemplateRef$=new Ce,this.buttonsTemplateRef$=new Ce}ngOnInit(){this.direction$=this.localizationService.direction$}onCreate(e){if(e.resolveWith=i=>{this.closeModal(i)},this.options&&this.options.locals)for(let i in this.options.locals)e[i]=this.options.locals[i]}registerTitleTemplate(e){this.titleTemplateRef$.next(e)}registerButtonsTemplate(e){this.buttonsTemplateRef$.next(e)}modalOpenChange(e){e===!1&&this.closeModal()}static{this.\u0275fac=function(i){return new(i||n)(x(Cp))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-modal-dialog"]],standalone:!1,decls:11,vars:14,consts:[[3,"dir"],[3,"clrModalOpenChange","clrModalOpen","clrModalClosable","clrModalSize","ngClass"],[1,"modal-title"],[4,"ngTemplateOutlet"],[1,"modal-body"],[3,"create","component"],[1,"modal-footer"]],template:function(i,a){i&1&&(S(0,"div",0),T(1,"async"),S(2,"clr-modal",1),Z("clrModalOpenChange",function(o){return a.modalOpenChange(o)}),S(3,"h3",2),P(4,_7e,1,0,"ng-container",3),T(5,"async"),_(),S(6,"div",4)(7,"vdr-dialog-component-outlet",5),Z("create",function(o){return a.onCreate(o)}),_()(),S(8,"div",6),P(9,b7e,1,0,"ng-container",3),T(10,"async"),_()()()),i&2&&(y("dir",O(1,8,a.direction$)),f(2),y("clrModalOpen",!0)("clrModalClosable",a.options==null?null:a.options.closable)("clrModalSize",a.options==null?null:a.options.size)("ngClass","modal-valign-"+((a.options==null?null:a.options.verticalAlign)||"center")),f(2),y("ngTemplateOutlet",O(5,10,a.titleTemplateRef$)),f(3),y("component",a.childComponentType),f(2),y("ngTemplateOutlet",O(10,12,a.buttonsTemplateRef$)))},dependencies:[qle,Qle,xi,Qa,ms,SV,vt],styles:[`clr-modal.modal-valign-top .modal{justify-content:flex-start} clr-modal.modal-valign-bottom .modal{justify-content:flex-end} clr-modal .modal-dialog{display:flex} clr-modal .modal-content-wrapper{flex:1;display:flex} clr-modal .modal-dialog .modal-content{flex:1;display:flex;flex-direction:column}@media screen and (max-height: 700px){ clr-modal .modal-dialog .modal-content{padding:.8rem} clr-modal .modal-header, clr-modal .modal-header--accessible{padding-bottom:.8rem} clr-modal .modal-footer{padding-top:.8rem}}[data-theme=dark][_nghost-%COMP%] clr-modal .modal-dialog, [data-theme=dark] [_nghost-%COMP%] clr-modal .modal-dialog{background-color:var(--color-weight-150);color:var(--color-text-100);border:1px solid var(--color-component-border-100);box-shadow:0 0 0 1px var(--color-component-border-200),0 4px 12px #0009}[data-theme=dark][_nghost-%COMP%] clr-modal .modal-title, [data-theme=dark] [_nghost-%COMP%] clr-modal .modal-title, [data-theme=dark][_nghost-%COMP%] clr-modal .modal-body, [data-theme=dark] [_nghost-%COMP%] clr-modal .modal-body, [data-theme=dark][_nghost-%COMP%] clr-modal .modal-footer, [data-theme=dark] [_nghost-%COMP%] clr-modal .modal-footer{color:var(--color-text-100)}[data-theme=dark][_nghost-%COMP%] clr-modal button, [data-theme=dark] [_nghost-%COMP%] clr-modal button{color:var(--color-button-small-text)}.modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;container-type:inline-size}
|
|
5825
|
-
/*# sourceMappingURL=modal-dialog.component-Y4MYBRQC.css.map */`]})}}return n})();var Aa=(()=>{class n{constructor(e,i){this.modal=e,this.templateRef=i}ngOnInit(){setTimeout(()=>this.modal.registerButtonsTemplate(this.templateRef))}static{this.\u0275fac=function(i){return new(i||n)(x(H0),x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","vdrDialogButtons",""]],standalone:!1})}}return n})();var Za=(()=>{class n{constructor(e,i){this.modal=e,this.templateRef=i}ngOnInit(){setTimeout(()=>this.modal.registerTitleTemplate(this.templateRef))}static{this.\u0275fac=function(i){return new(i||n)(x(H0),x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","vdrDialogTitle",""]],standalone:!1})}}return n})();var N7e=()=>({});function F7e(n,t){if(n&1&&(E(0),T(1,"translate")),n&2){let e=A();te(nt(1,1,e.title,e.translationVars))}}function D7e(n,t){if(n&1){let e=de();Be(0),S(1,"button",4),Z("click",function(){let a=G(e).$implicit,r=A(2);return W(r.resolveWith(a.returnValue))}),E(2),T(3,"translate"),_(),je()}if(n&2){let e=t.$implicit;f(),ve("primary",e.type==="primary")("danger",e.type==="danger"),f(),ie(" ",nt(3,5,e.label,e.translationVars||_r(8,N7e))," ")}}function w7e(n,t){if(n&1&&P(0,D7e,4,9,"ng-container",3),n&2){let e=A();y("ngForOf",e.buttons)}}var _V=(()=>{class n{constructor(){this.title="",this.body="",this.translationVars={},this.buttons=[]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-simple-dialog"]],standalone:!1,decls:5,vars:4,consts:[["vdrDialogTitle",""],[2,"white-space","pre-wrap"],["vdrDialogButtons",""],[4,"ngFor","ngForOf"],[1,"button","ml-2",3,"click"]],template:function(i,a){i&1&&(P(0,F7e,2,4,"ng-template",0),S(1,"div",1),E(2),T(3,"translate"),_(),P(4,w7e,1,1,"ng-template",2)),i&2&&(f(2),te(nt(3,1,a.body,a.translationVars)))},dependencies:[It,Aa,Za,Ee],encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{class n{constructor(e){this.overlayHostService=e}fromComponent(e,i){return Un(this.overlayHostService.getHostView()).pipe(Hi(a=>{let r=a.createComponent(H0),o=r.instance;return o.childComponentType=e,o.options=i,new dn(l=>{o.closeModal=s=>{r.destroy(),l.next(s),l.complete()}})}))}dialog(e){return this.fromComponent(_V,{locals:e,size:e.size})}static{this.\u0275fac=function(i){return new(i||n)(me(S2))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var bV=class{constructor(t,e){this.config=t,this.context=e,this.hasRun$=new en(!1),this.data$=new en(void 0),this.config.recheck&&(this.subscription=this.config.recheck(this.context).subscribe(()=>this.runCheck())),this.activeAlert$=Kn([this.data$,this.hasRun$]).pipe(ae(([i,a])=>{if(!(!i||!this.config.isAlert(i,this.context)))return{id:this.config.id,runAction:()=>{a||(this.config.action(i,this.context),this.hasRun$.next(!0))},hasRun:a,label:this.config.label(i,this.context)}}))}get id(){return this.config.id}runCheck(){let t=this.config.check(this.context);t instanceof Promise?t.then(e=>this.data$.next(e)):ko(t)?t.pipe(Jn(1)).subscribe(e=>this.data$.next(e)):this.data$.next(t),this.hasRun$.next(!1)}destroy(){this.subscription&&this.subscription.unsubscribe()}},B0=(()=>{class n{constructor(e,i,a,r,o){this.permissionsService=e,this.injector=i,this.dataService=a,this.notificationService=r,this.modalService=o,this.alertsMap=new Map,this.configUpdated=new Ce;let l=this.configUpdated.pipe(ae(()=>[...this.alertsMap.values()]),Tn([...this.alertsMap.values()]));this.activeAlerts$=l.pipe(lt(()=>{let d=[...this.alertsMap.values()].map(u=>u.activeAlert$);return Kn(d)}),ae(s=>s.filter(mse.notNullOrUndefined)))}configureAlert(e){this.hasSufficientPermissions(e.requiredPermissions).pipe(Jl()).subscribe(i=>{i&&(this.alertsMap.set(e.id,new bV(e,this.createContext())),this.configUpdated.next())})}hasSufficientPermissions(e){return!e||e.length===0?Me(!0):this.permissionsService.currentUserPermissions$.pipe(Cn(i=>i.length>0),ae(()=>this.permissionsService.userHasPermissions(e)))}refresh(e){e?this.alertsMap.get(e)?.runCheck():this.alertsMap.forEach(i=>i.runCheck())}clearAlerts(){this.alertsMap.forEach(e=>e.destroy()),this.alertsMap.clear(),this.configUpdated.next()}createContext(){return{injector:this.injector,dataService:this.dataService,notificationService:this.notificationService,modalService:this.modalService}}static{this.\u0275fac=function(i){return new(i||n)(me(Il),me(Wt),me(He),me(ur),me(ci))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var I7e=["*"],kn=(()=>{class n{constructor(){this.isOpen=!1,this.onOpenChangeCallbacks=[],this.manualToggle=!1}onClick(){this.manualToggle||this.toggleOpen()}toggleOpen(){this.isOpen=!this.isOpen,this.onOpenChangeCallbacks.forEach(e=>e(this.isOpen))}onOpenChange(e){this.onOpenChangeCallbacks.push(e)}setTriggerElement(e){this.trigger=e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-dropdown"]],inputs:{manualToggle:"manualToggle"},standalone:!1,ngContentSelectors:I7e,decls:1,vars:0,template:function(i,a){i&1&&(wt(),dt(0))},encapsulation:2,changeDetection:0})}}return n})();var A7e=["menu"],x7e=["*"];function T7e(n,t){if(n&1&&(S(0,"div",1),T(1,"async"),S(2,"div",2)(3,"div",3)(4,"div",4),dt(5),_()()()()),n&2){let e=A();y("dir",O(1,6,e.direction$)),f(3),la("max-height",e.maxHeight,"px"),y("ngClass",e.customClasses),f(),y("cdkTrapFocus",!0)("cdkTrapFocusAutoCapture",!0)}}var jn=(()=>{class n{onEscapeKeydown(e){this.dropdown.isOpen&&this.overlayRef.overlayElement.contains(document.activeElement)&&this.dropdown.toggleOpen()}onArrowKey(e){if(this.dropdown.isOpen&&document.activeElement instanceof HTMLElement&&(e.key==="ArrowDown"||e.key==="ArrowUp")){let i=Array.from(this.overlayRef.overlayElement.querySelectorAll(".dropdown-item")),a=i.indexOf(document.activeElement);if(a===-1)return;e.key==="ArrowDown"&&i[(a+1)%i.length].focus(),e.key==="ArrowUp"&&i[(a-1+i.length)%i.length].focus()}}constructor(e,i,a,r,o){this.overlay=e,this.viewContainerRef=i,this.dropdown=a,this.localizationService=r,this.changeDetector=o,this.position="bottom-left",this.resizeObserver=new ResizeObserver(l=>{for(let d of l){let u=d.target.querySelector(".dropdown-content-wrapper");if(u){let{bottom:p,top:h}=u
|
|
5825
|
+
/*# sourceMappingURL=modal-dialog.component-Y4MYBRQC.css.map */`]})}}return n})();var Aa=(()=>{class n{constructor(e,i){this.modal=e,this.templateRef=i}ngOnInit(){setTimeout(()=>this.modal.registerButtonsTemplate(this.templateRef))}static{this.\u0275fac=function(i){return new(i||n)(x(H0),x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","vdrDialogButtons",""]],standalone:!1})}}return n})();var Za=(()=>{class n{constructor(e,i){this.modal=e,this.templateRef=i}ngOnInit(){setTimeout(()=>this.modal.registerTitleTemplate(this.templateRef))}static{this.\u0275fac=function(i){return new(i||n)(x(H0),x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","vdrDialogTitle",""]],standalone:!1})}}return n})();var N7e=()=>({});function F7e(n,t){if(n&1&&(E(0),T(1,"translate")),n&2){let e=A();te(nt(1,1,e.title,e.translationVars))}}function D7e(n,t){if(n&1){let e=de();Be(0),S(1,"button",4),Z("click",function(){let a=G(e).$implicit,r=A(2);return W(r.resolveWith(a.returnValue))}),E(2),T(3,"translate"),_(),je()}if(n&2){let e=t.$implicit;f(),ve("primary",e.type==="primary")("danger",e.type==="danger"),f(),ie(" ",nt(3,5,e.label,e.translationVars||_r(8,N7e))," ")}}function w7e(n,t){if(n&1&&P(0,D7e,4,9,"ng-container",3),n&2){let e=A();y("ngForOf",e.buttons)}}var _V=(()=>{class n{constructor(){this.title="",this.body="",this.translationVars={},this.buttons=[]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-simple-dialog"]],standalone:!1,decls:5,vars:4,consts:[["vdrDialogTitle",""],[2,"white-space","pre-wrap"],["vdrDialogButtons",""],[4,"ngFor","ngForOf"],[1,"button","ml-2",3,"click"]],template:function(i,a){i&1&&(P(0,F7e,2,4,"ng-template",0),S(1,"div",1),E(2),T(3,"translate"),_(),P(4,w7e,1,1,"ng-template",2)),i&2&&(f(2),te(nt(3,1,a.body,a.translationVars)))},dependencies:[It,Aa,Za,Ee],encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{class n{constructor(e){this.overlayHostService=e}fromComponent(e,i){return Un(this.overlayHostService.getHostView()).pipe(Hi(a=>{let r=a.createComponent(H0),o=r.instance;return o.childComponentType=e,o.options=i,new dn(l=>{o.closeModal=s=>{r.destroy(),l.next(s),l.complete()}})}))}dialog(e){return this.fromComponent(_V,{locals:e,size:e.size})}static{this.\u0275fac=function(i){return new(i||n)(me(S2))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var bV=class{constructor(t,e){this.config=t,this.context=e,this.hasRun$=new en(!1),this.data$=new en(void 0),this.config.recheck&&(this.subscription=this.config.recheck(this.context).subscribe(()=>this.runCheck())),this.activeAlert$=Kn([this.data$,this.hasRun$]).pipe(ae(([i,a])=>{if(!(!i||!this.config.isAlert(i,this.context)))return{id:this.config.id,runAction:()=>{a||(this.config.action(i,this.context),this.hasRun$.next(!0))},hasRun:a,label:this.config.label(i,this.context)}}))}get id(){return this.config.id}runCheck(){let t=this.config.check(this.context);t instanceof Promise?t.then(e=>this.data$.next(e)):ko(t)?t.pipe(Jn(1)).subscribe(e=>this.data$.next(e)):this.data$.next(t),this.hasRun$.next(!1)}destroy(){this.subscription&&this.subscription.unsubscribe()}},B0=(()=>{class n{constructor(e,i,a,r,o){this.permissionsService=e,this.injector=i,this.dataService=a,this.notificationService=r,this.modalService=o,this.alertsMap=new Map,this.configUpdated=new Ce;let l=this.configUpdated.pipe(ae(()=>[...this.alertsMap.values()]),Tn([...this.alertsMap.values()]));this.activeAlerts$=l.pipe(lt(()=>{let d=[...this.alertsMap.values()].map(u=>u.activeAlert$);return Kn(d)}),ae(s=>s.filter(mse.notNullOrUndefined)))}configureAlert(e){this.hasSufficientPermissions(e.requiredPermissions).pipe(Jl()).subscribe(i=>{i&&(this.alertsMap.set(e.id,new bV(e,this.createContext())),this.configUpdated.next())})}hasSufficientPermissions(e){return!e||e.length===0?Me(!0):this.permissionsService.currentUserPermissions$.pipe(Cn(i=>i.length>0),ae(()=>this.permissionsService.userHasPermissions(e)))}refresh(e){e?this.alertsMap.get(e)?.runCheck():this.alertsMap.forEach(i=>i.runCheck())}clearAlerts(){this.alertsMap.forEach(e=>e.destroy()),this.alertsMap.clear(),this.configUpdated.next()}createContext(){return{injector:this.injector,dataService:this.dataService,notificationService:this.notificationService,modalService:this.modalService}}static{this.\u0275fac=function(i){return new(i||n)(me(Il),me(Wt),me(He),me(ur),me(ci))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var I7e=["*"],kn=(()=>{class n{constructor(){this.isOpen=!1,this.onOpenChangeCallbacks=[],this.manualToggle=!1}onClick(){this.manualToggle||this.toggleOpen()}toggleOpen(){this.isOpen=!this.isOpen,this.onOpenChangeCallbacks.forEach(e=>e(this.isOpen))}onOpenChange(e){this.onOpenChangeCallbacks.push(e)}setTriggerElement(e){this.trigger=e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-dropdown"]],inputs:{manualToggle:"manualToggle"},standalone:!1,ngContentSelectors:I7e,decls:1,vars:0,template:function(i,a){i&1&&(wt(),dt(0))},encapsulation:2,changeDetection:0})}}return n})();var A7e=["menu"],x7e=["*"];function T7e(n,t){if(n&1&&(S(0,"div",1),T(1,"async"),S(2,"div",2)(3,"div",3)(4,"div",4),dt(5),_()()()()),n&2){let e=A();y("dir",O(1,6,e.direction$)),f(3),la("max-height",e.maxHeight,"px"),y("ngClass",e.customClasses),f(),y("cdkTrapFocus",!0)("cdkTrapFocusAutoCapture",!0)}}var jn=(()=>{class n{onEscapeKeydown(e){this.dropdown.isOpen&&this.overlayRef.overlayElement.contains(document.activeElement)&&this.dropdown.toggleOpen()}onArrowKey(e){if(this.dropdown.isOpen&&document.activeElement instanceof HTMLElement&&(e.key==="ArrowDown"||e.key==="ArrowUp")){let i=Array.from(this.overlayRef.overlayElement.querySelectorAll(".dropdown-item")),a=i.indexOf(document.activeElement);if(a===-1)return;e.key==="ArrowDown"&&i[(a+1)%i.length].focus(),e.key==="ArrowUp"&&i[(a-1+i.length)%i.length].focus()}}constructor(e,i,a,r,o){this.overlay=e,this.viewContainerRef=i,this.dropdown=a,this.localizationService=r,this.changeDetector=o,this.position="bottom-left",this.resizeObserver=new ResizeObserver(l=>{for(let d of l){let u=d.target.querySelector(".dropdown-content-wrapper");if(u){let{bottom:p,top:h}=u.getBoundingClientRect();p>window.innerHeight-12&&(this.maxHeight=window.innerHeight-h-12,this.changeDetector.markForCheck()),h<12&&(this.maxHeight=p-12,this.changeDetector.markForCheck())}}})}ngOnInit(){this.direction$=this.localizationService.direction$,this.dropdown.onOpenChange(e=>{e?(this.overlayRef.attach(this.menuPortal),this.resizeObserver.observe(this.overlayRef.overlayElement)):(this.overlayRef.detach(),this.resizeObserver.unobserve(this.overlayRef.overlayElement),this.maxHeight=void 0)})}ngAfterViewInit(){this.overlayRef=this.overlay.create({hasBackdrop:!0,backdropClass:"clear-backdrop",positionStrategy:this.getPositionStrategy(),maxHeight:"70vh"}),this.menuPortal=new zu(this.menuTemplate,this.viewContainerRef),this.backdropClickSub=this.overlayRef.backdropClick().subscribe(()=>{this.dropdown.toggleOpen()})}ngOnDestroy(){this.overlayRef&&this.overlayRef.dispose(),this.backdropClickSub&&this.backdropClickSub.unsubscribe()}getPositionStrategy(){let i={"top-left":{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},"top-right":{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},"bottom-left":{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},"bottom-right":{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}}[this.position];return this.overlay.position().flexibleConnectedTo(this.dropdown.trigger).withPositions([i,this.invertPosition(i)]).withViewportMargin(12).withPush(!0)}invertPosition(e){let i=q({},e);return i.originY=e.originY==="top"?"bottom":"top",i.overlayY=e.overlayY==="top"?"bottom":"top",i}static{this.\u0275fac=function(i){return new(i||n)(x(Pp),x(vn),x(kn),x(Cp),x(ct))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-dropdown-menu"]],viewQuery:function(i,a){if(i&1&&At(A7e,7),i&2){let r;Ae(r=xe())&&(a.menuTemplate=r.first)}},hostBindings:function(i,a){i&1&&Z("keydown.escape",function(o){return a.onEscapeKeydown(o)},!1,Lm)("keydown",function(o){return a.onArrowKey(o)},!1,Lm)},inputs:{position:[0,"vdrPosition","position"],customClasses:"customClasses"},standalone:!1,ngContentSelectors:x7e,decls:2,vars:0,consts:[["menu",""],[3,"dir"],[1,"dropdown","open"],[1,"dropdown-menu",3,"ngClass"],[1,"dropdown-content-wrapper",3,"cdkTrapFocus","cdkTrapFocusAutoCapture"]],template:function(i,a){i&1&&(wt(),P(0,T7e,6,8,"ng-template",null,0,nn))},dependencies:[xi,ms,Bu,vt],styles:[`.clear-backdrop[_ngcontent-%COMP%]{background-color:#ff69b4} .dropdown-menu{max-width:initial} .dropdown-menu .dropdown-item{display:flex;align-items:center;padding:3px 24px} .dropdown-menu .dropdown-item clr-icon{margin-inline-end:3px} .dropdown-menu .dropdown-item:focus{outline:var(--color-dropdown-item-focus-outline) solid 1px;outline-offset:1px 0}.dropdown.open[_ngcontent-%COMP%] > .dropdown-menu[_ngcontent-%COMP%]{position:relative;top:0;height:100%;overflow-y:auto}[_nghost-%COMP%]{opacity:1;transition:opacity .3s}
|
|
5826
5826
|
/*# sourceMappingURL=dropdown-menu.component-CDLNXERI.css.map */`],changeDetection:0})}}return n})();var Zn=(()=>{class n{constructor(e,i){this.dropdown=e,this.elementRef=i,e.setTriggerElement(this.elementRef)}onDropdownTriggerClick(e){this.dropdown.toggleOpen()}static{this.\u0275fac=function(i){return new(i||n)(x(kn),x(Bt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","vdrDropdownTrigger",""]],hostBindings:function(i,a){i&1&&Z("click",function(o){return a.onDropdownTriggerClick(o)})},standalone:!1})}}return n})();var Da=(()=>{class n{constructor(e){this.dropdown=e}onDropdownItemClick(){return Ho(this,null,function*(){(yield this.dropdown).onClick()})}static{this.\u0275fac=function(i){return new(i||n)(x(kn))}}static{this.\u0275dir=Fe({type:n,selectors:[["","vdrDropdownItem",""]],hostVars:2,hostBindings:function(i,a){i&1&&Z("click",function(o){return a.onDropdownItemClick(o)}),i&2&&ve("dropdown-item",!0)},standalone:!1})}}return n})();var q2=(()=>{class n{constructor(){this.type="info"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-status-badge"]],inputs:{type:"type"},standalone:!1,decls:1,vars:2,consts:[[1,"status-badge"]],template:function(i,a){i&1&&H(0,"div",0),i&2&&oA(a.type)},styles:[`[_nghost-%COMP%]{display:block;position:absolute}.status-badge[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;border:1px solid var(--color-component-border-100)}.status-badge.info[_ngcontent-%COMP%]{background-color:var(--color-primary-600)}.status-badge.success[_ngcontent-%COMP%]{background-color:var(--color-success-600)}.status-badge.warning[_ngcontent-%COMP%]{background-color:var(--color-warning-600)}.status-badge.error[_ngcontent-%COMP%]{background-color:var(--color-error-600)}
|
|
5827
5827
|
/*# sourceMappingURL=status-badge.component-VYJ2QQ5W.css.map */`],changeDetection:0})}}return n})();function E7e(n,t){n&1&&H(0,"vdr-status-badge",7),n&2&&y("type","warning")}function M7e(n,t){n&1&&H(0,"clr-icon",12)}function O7e(n,t){if(n&1){let e=de();S(0,"button",10),Z("click",function(){let a=G(e).$implicit;return W(a.runAction())}),P(1,M7e,1,0,"clr-icon",11),E(2),T(3,"translate"),_()}if(n&2){let e=t.$implicit;y("disabled",e.hasRun),f(),y("ngIf",e.hasRun),f(),ie(" ",nt(3,3,e.label.text,e.label.translationVars)," ")}}function V7e(n,t){if(n&1&&(Be(0),P(1,O7e,4,6,"button",9),je()),n&2){let e=A().ngIf;f(),y("ngForOf",e)}}function P7e(n,t){if(n&1&&(Be(0),P(1,V7e,2,1,"ng-container",8),je()),n&2){let e=t.ngIf;A();let i=Pt(10);f(),y("ngIf",e.length)("ngIfElse",i)}}function L7e(n,t){n&1&&(S(0,"div",13),H(1,"clr-icon",14),S(2,"span"),E(3),T(4,"translate"),_()()),n&2&&(f(3),te(O(4,1,"common.no-alerts")))}var pse=(()=>{class n{constructor(e){this.alertsService=e,this.hasAlerts$=e.activeAlerts$.pipe(ae(i=>i.filter(a=>!a.hasRun).length>0)),this.activeAlerts$=e.activeAlerts$}static{this.\u0275fac=function(i){return new(i||n)(x(B0))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-alerts"]],standalone:!1,decls:11,vars:6,consts:[["noAlerts",""],["vdrDropdownTrigger","",1,"alerts-button"],[3,"type",4,"ngIf"],[1,"user-circle"],["shape","bell","size","16"],["vdrPosition","bottom-right"],[4,"ngIf"],[3,"type"],[4,"ngIf","ngIfElse"],["vdrDropdownItem","",3,"disabled","click",4,"ngFor","ngForOf"],["vdrDropdownItem","",3,"click","disabled"],["shape","check is-success",4,"ngIf"],["shape","check is-success"],[1,"no-alerts"],["shape","check",1,"mr-1"]],template:function(i,a){i&1&&(S(0,"vdr-dropdown")(1,"button",1),P(2,E7e,1,1,"vdr-status-badge",2),T(3,"async"),S(4,"div",3),H(5,"clr-icon",4),_()(),S(6,"vdr-dropdown-menu",5),P(7,P7e,2,2,"ng-container",6),T(8,"async"),P(9,L7e,5,3,"ng-template",null,0,nn),_()()),i&2&&(f(2),y("ngIf",O(3,2,a.hasAlerts$)),f(5),y("ngIf",O(8,4,a.activeAlerts$)))},dependencies:[It,be,We,kn,jn,Zn,Da,q2,vt,Ee],styles:[`.alerts-button[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:space-between;border:none;font-size:var(--font-size-sm);width:100%;line-height:100%;height:40px;color:var(--color-text-100);background-color:var(--color-page-header-item-bg);border-radius:var(--border-radius-lg);cursor:pointer;padding:calc(var(--space-unit) * 1.5)}.alerts-button[_ngcontent-%COMP%]:hover{color:var(--color-text-200)}vdr-status-badge[_ngcontent-%COMP%]{position:absolute;top:9px;right:9px}.no-alerts[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:var(--color-text-300);font-size:var(--font-size-sm);padding:0 calc(var(--space-unit) * 1.5)}
|
|
5828
|
-
/*# sourceMappingURL=alerts.component-NCUAH4F6.css.map */`],changeDetection:0})}}return n})();var hse="3.7.1-master-202607110305";var H7e=["content"],B7e=["scroll"],j7e=["padding"],vse=["*"],Fy=n=>({searchTerm:n});function Z7e(n,t){if(n&1&&(S(0,"div",3),bi(1,6),_()),n&2){let e=A();f(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",xn(2,Fy,e.filterValue))}}function $7e(n,t){if(n&1&&(S(0,"div",5),bi(1,6),_()),n&2){let e=A();f(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",xn(2,Fy,e.filterValue))}}var U7e=["searchInput"],z7e=["clearButton"],G7e=(n,t,e)=>({item:n,clear:t,label:e}),W7e=(n,t)=>({items:n,clear:t}),q7e=(n,t,e,i)=>({item:n,item$:t,index:e,searchTerm:i});function Q7e(n,t){if(n&1&&(S(0,"div",20),E(1),_()),n&2){let e=A(2);f(),te(e.placeholder)}}function Y7e(n,t){}function K7e(n,t){if(n&1&&P(0,Q7e,2,1,"ng-template",null,1,nn)(2,Y7e,0,0,"ng-template",19),n&2){let e=Pt(1),i=A();f(2),y("ngTemplateOutlet",i.placeholderTemplate||e)}}function J7e(n,t){if(n&1){let e=de();S(0,"span",23),Z("click",function(){G(e);let a=A().$implicit,r=A(2);return W(r.unselect(a))}),E(1,"\xD7"),_(),H(2,"span",24)}if(n&2){let e=A().$implicit,i=A(2);f(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function X7e(n,t){}function eFe(n,t){if(n&1&&(S(0,"div",22),P(1,J7e,3,2,"ng-template",null,2,nn)(3,X7e,0,0,"ng-template",12),_()),n&2){let e=t.$implicit,i=Pt(2),a=A(2);ve("ng-value-disabled",e.disabled),f(3),y("ngTemplateOutlet",a.labelTemplate||i)("ngTemplateOutletContext",P_(4,G7e,e.value,a.clearItem,e.label))}}function tFe(n,t){if(n&1&&sA(0,eFe,4,8,"div",21,lA().trackByOption,!0),n&2){let e=A();dA(e.selectedItems)}}function nFe(n,t){}function iFe(n,t){if(n&1&&P(0,nFe,0,0,"ng-template",12),n&2){let e=A();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",bd(2,W7e,e.selectedValues,e.clearItem))}}function aFe(n,t){n&1&&H(0,"div",25)}function rFe(n,t){}function oFe(n,t){if(n&1&&P(0,aFe,1,0,"ng-template",null,3,nn)(2,rFe,0,0,"ng-template",19),n&2){let e=Pt(1),i=A();f(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate||e)}}function lFe(n,t){if(n&1&&bi(0,19),n&2){let e=A(2);y("ngTemplateOutlet",e.clearButtonTemplate)}}function sFe(n,t){if(n&1&&(S(0,"span",26,4)(2,"span",27),E(3,"\xD7"),_()()),n&2){let e=A(2);cA("title",e.clearAllText),Mt("tabindex",e.tabFocusOnClearButton()?0:-1)}}function dFe(n,t){if(n&1&&P(0,lFe,1,1,"ng-container",19)(1,sFe,4,2,"span",26),n&2){let e=A();Zo(e.clearButtonTemplate?0:1)}}function cFe(n,t){if(n&1&&H(0,"span",32),n&2){let e=A().$implicit,i=A(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function uFe(n,t){}function mFe(n,t){if(n&1){let e=de();S(0,"div",31),Z("click",function(){let a=G(e).$implicit,r=A(2);return W(r.toggleItem(a))})("mouseover",function(){let a=G(e).$implicit,r=A(2);return W(r.onItemHover(a))}),P(1,cFe,1,2,"ng-template",null,5,nn)(3,uFe,0,0,"ng-template",12),_()}if(n&2){let e=t.$implicit,i=Pt(2),a=A(2);ve("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===a.itemsList.markedItem),Mt("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",a.itemsList.filteredItems.length)("aria-posinset",e.index+1),f(3),y("ngTemplateOutlet",e.children?a.optgroupTemplate||i:a.optionTemplate||i)("ngTemplateOutletContext",L_(19,q7e,e.value,e,e.index,a.searchTerm))}}function pFe(n,t){if(n&1&&(S(0,"span")(1,"span",34),E(2),_(),E(3),_()),n&2){let e=A(3);f(2),te(e.addTagText),f(),ie('"',e.searchTerm,'"')}}function hFe(n,t){}function fFe(n,t){if(n&1){let e=de();S(0,"div",33),Z("mouseover",function(){G(e);let a=A(2);return W(a.itemsList.unmarkItem())})("click",function(){G(e);let a=A(2);return W(a.selectTag())}),P(1,pFe,4,2,"ng-template",null,6,nn)(3,hFe,0,0,"ng-template",12),_()}if(n&2){let e=Pt(2),i=A(2);ve("ng-option-marked",!i.itemsList.markedItem),f(3),y("ngTemplateOutlet",i.tagTemplate||e)("ngTemplateOutletContext",xn(4,Fy,i.searchTerm))}}function gFe(n,t){if(n&1&&(S(0,"div",35),E(1),_()),n&2){let e=A(3);f(),te(e.notFoundText)}}function vFe(n,t){}function kFe(n,t){if(n&1&&P(0,gFe,2,1,"ng-template",null,7,nn)(2,vFe,0,0,"ng-template",12),n&2){let e=Pt(1),i=A(2);f(2),y("ngTemplateOutlet",i.notFoundTemplate||e)("ngTemplateOutletContext",xn(2,Fy,i.searchTerm))}}function yFe(n,t){if(n&1&&(S(0,"div",35),E(1),_()),n&2){let e=A(3);f(),te(e.typeToSearchText)}}function CFe(n,t){}function SFe(n,t){if(n&1&&P(0,yFe,2,1,"ng-template",null,8,nn)(2,CFe,0,0,"ng-template",19),n&2){let e=Pt(1),i=A(2);f(2),y("ngTemplateOutlet",i.typeToSearchTemplate||e)}}function _Fe(n,t){if(n&1&&(S(0,"div",35),E(1),_()),n&2){let e=A(3);f(),te(e.loadingText)}}function bFe(n,t){}function NFe(n,t){if(n&1&&P(0,_Fe,2,1,"ng-template",null,9,nn)(2,bFe,0,0,"ng-template",12),n&2){let e=Pt(1),i=A(2);f(2),y("ngTemplateOutlet",i.loadingTextTemplate||e)("ngTemplateOutletContext",xn(2,Fy,i.searchTerm))}}function FFe(n,t){if(n&1){let e=de();S(0,"ng-dropdown-panel",28),Z("update",function(a){G(e);let r=A();return W(r.viewPortItems=a)})("scroll",function(a){G(e);let r=A();return W(r.scroll.emit(a))})("scrollToEnd",function(a){G(e);let r=A();return W(r.scrollToEnd.emit(a))})("outsideClick",function(){G(e);let a=A();return W(a.close())}),Be(1),sA(2,mFe,4,24,"div",29,lA().trackByOption,!0),P(4,fFe,4,6,"div",30),je(),P(5,kFe,3,4)(6,SFe,3,1)(7,NFe,3,4),_()}if(n&2){let e=A();ve("ng-select-multiple",e.multiple),y("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown),f(2),dA(e.viewPortItems),f(2),Zo(e.showAddTag?4:-1),f(),Zo(e.showNoItemsFound()?5:-1),f(),Zo(e.showTypeToSearch()?6:-1),f(),Zo(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}function DFe(n,t){if(n&1&&E(0),n&2){let e=A();ie(" ",e.notFoundText," ")}}var kse=/[&<>"']/g,wFe=RegExp(kse.source),IFe={"&":"&","<":"<",">":">",'"':""","'":"'"};function AFe(n){return n&&wFe.test(n)?n.replace(kse,t=>IFe[t]):n}function $a(n){return n!=null}function Ny(n){return typeof n=="object"&&$a(n)}function xFe(n){return n instanceof Promise}function Z6(n){return n instanceof Function}var TFe=(()=>{class n{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?AFe(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(i){return new(i||n)(x(Bt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[Fn]})}}return n})(),Ua=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-option-tmp",""]]})}}return n})(),EFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-optgroup-tmp",""]]})}}return n})(),Lr=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-label-tmp",""]]})}}return n})(),MFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-multi-label-tmp",""]]})}}return n})(),Dy=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-header-tmp",""]]})}}return n})(),OFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-footer-tmp",""]]})}}return n})(),VFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-notfound-tmp",""]]})}}return n})(),PFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-placeholder-tmp",""]]})}}return n})(),LFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-typetosearch-tmp",""]]})}}return n})(),RFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-loadingtext-tmp",""]]})}}return n})(),HFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-tag-tmp",""]]})}}return n})(),BFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-loadingspinner-tmp",""]]})}}return n})(),jFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-clearbutton-tmp",""]]})}}return n})();function yse(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var ZFe={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function j6(n){let t=e=>ZFe[e]||e;return n.replace(/[^\u0000-\u007E]/g,t)}var DV=class{constructor(t,e){this._ngSelect=t,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let e=this.selectedItems[t];if(!e.disabled)return e}return null}setItems(t){this._items=t.map((e,i)=>this.mapItem(e,i)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(t,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&$a(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let e;return this._ngSelect.compareWith?e=i=>this._ngSelect.compareWith(i.value,t):this._ngSelect.bindValue?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue)===t:e=i=>i.value===t||!i.children&&i.label&&i.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(i=>e(i))}addItem(t){let e=this.mapItem(t,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(e=>{e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=j6(t).toLocaleLowerCase(),this.filteredItems.find(e=>j6(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:j6(t).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected;for(let a of Array.from(this._groups.keys())){let r=[];for(let o of this._groups.get(a)){if(i&&(o.parent&&o.parent.selected||o.selected))continue;let l=this._ngSelect.searchFn?o.value:o;e(t,l)&&r.push(o)}if(r.length>0){let[o]=r.slice(-1);if(o.parent){let l=this._items.find(s=>s===o.parent);this._filteredItems.push(l)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=t?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(t,e){if(!Ny(t))return t;if(e.indexOf(".")===-1)return t[e];{let i=e.split("."),a=t;for(let r=0,o=i.length;r<o;++r){if(a==null)return null;a=a[i[r]]}return a}}mapItem(t,e){let i=$a(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),a=$a(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:e,label:$a(i)?i.toString():"",value:a,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let t=this._ngSelect.multiple;for(let e of this.selectedItems){let i=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,a=$a(i)?this.findItem(i):null;this._selectionModel.unselect(e,t),this._selectionModel.select(a||e,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let e=t.parent;this._filteredItems.find(a=>a===e)||this._filteredItems.push(e)}else if(t.children)for(let e of t.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(e=>e!==t),t.parent?t.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return j6(e.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,e){let i=new Map;if(t.length===0)return i;if(Array.isArray(t[0].value[e])){for(let o of t){let l=(o.value[e]||[]).map((s,d)=>this.mapItem(s,d));i.set(o,l)}return i}let a=Z6(this._ngSelect.groupBy),r=o=>{let l=a?e(o.value):o.value[e];return $a(l)?l:void 0};for(let o of t){let l=r(o),s=i.get(l);s?s.push(o):i.set(l,[o])}return i}_flatten(t){let e=Z6(this._ngSelect.groupBy),i=[];for(let a of Array.from(t.keys())){let r=i.length;if(a===void 0){let p=t.get(void 0)||[];i.push(...p.map(h=>(h.index=r++,h)));continue}let o=Ny(a),l={label:o?"":String(a),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:yse()},s=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,d=this._ngSelect.groupValue||(()=>o?a.value:{[s]:a}),u=t.get(a).map(p=>(p.parent=l,p.children=void 0,p.index=r++,p));l.children=u,l.value=d(a,u.map(p=>p.value)),i.push(l),i.push(...u)}return i}},Cse=(()=>{class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,a){let r=this._dimensions,o=r.itemHeight*i,s=Math.max(0,e)/o*i,d=Math.min(i,Math.ceil(s)+(r.itemsPerViewport+1)),p=Math.max(0,d-r.itemsPerViewport),h=Math.min(p,Math.floor(s)),g=r.itemHeight*Math.ceil(h)-r.itemHeight*Math.min(h,a);return g=isNaN(g)?0:g,h=isNaN(h)?-1:h,d=isNaN(d)?-1:d,h-=a,h=Math.max(0,h),d+=a,d=Math.min(i,d),{topPadding:g,scrollHeight:o,start:h,end:d}}setDimensions(e,i){let a=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:a}}getScrollTo(e,i,a){let{panelHeight:r}=this.dimensions,o=e+i,l=a,s=l+r;return r>=o&&a===e?null:o>s?l+o-s:e<=l?e:null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})(),fse=["top","right","bottom","left"],$Fe=typeof requestAnimationFrame<"u"?Wh:r4,gse=(()=>{class n{constructor(e,i,a,r,o){this._renderer=e,this._zone=i,this._panelService=a,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.ariaLabelDropdown=$v(null),this.update=new De,this.scroll=new De,this.scrollToEnd=new De,this.outsideClick=new De,this._destroy$=new Ce,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,a=this.markedItem.index*e;return i>a?0:a}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let a=this.items.indexOf(e);if(a<0||a>=this.itemsLength)return;let r;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(a*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),l=i?o.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,l)}$a(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fse.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){fse.forEach(a=>{let r=`ng-select-${a}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{Tr(this.scrollElementRef.nativeElement,"scroll").pipe($t(this._destroy$),Jh(0,$Fe)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let a=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(a)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{ji(Tr(this._document,"touchstart",{capture:!0}),Tr(this._document,"click",{capture:!0})).pipe($t(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),$a(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let a=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${a*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(a,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,r=i.top+window.pageYOffset,o=i.height,l=e.getBoundingClientRect().height;return r+o+l>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo):document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.left-i.left;this._dropdown.style.left=a+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.height;if(this._currentPosition==="top"){let r=i.bottom-e.bottom;this._dropdown.style.bottom=r+a+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-i.top;this._dropdown.style.top=r+a+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Tr(this._dropdown,"mousedown").pipe($t(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(i){return new(i||n)(x(ia),x(cn),x(Cse),x(Bt),x(bn,8))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,a){if(i&1&&(At(H7e,7,Bt),At(B7e,7,Bt),At(j7e,7,Bt)),i&2){let r;Ae(r=xe())&&(a.contentElementRef=r.first),Ae(r=xe())&&(a.scrollElementRef=r.first),Ae(r=xe())&&(a.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",si],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue",ariaLabelDropdown:[1,"ariaLabelDropdown"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Fn],ngContentSelectors:vse,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,a){i&1&&(wt(),P(0,Z7e,2,4,"div",3),S(1,"div",4,0),H(3,"div",null,1),S(5,"div",null,2),dt(7),_()(),P(8,$7e,2,4,"div",5)),i&2&&(Zo(a.headerTemplate?0:-1),f(),Mt("aria-label",a.ariaLabelDropdown()),f(2),ve("total-padding",a.virtualScroll),f(2),ve("scrollable-content",a.virtualScroll&&a.items.length),f(3),Zo(a.footerTemplate?8:-1))},dependencies:[Qa],encapsulation:2,changeDetection:0})}}return n})(),wy=(()=>{class n{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new Ce}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(i){return new(i||n)(x(Bt))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",si]},features:[Fn],ngContentSelectors:vse,decls:1,vars:0,template:function(i,a){i&1&&(wt(),dt(0))},encapsulation:2,changeDetection:0})}}return n})(),Tc=function(n){return n.Tab="Tab",n.Enter="Enter",n.Esc="Escape",n.Space=" ",n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.Backspace="Backspace",n}(Tc||{});function Sse(){return new wV}var wV=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,e,i){if(t.selected=!0,(!t.children||!e&&i)&&this._selected.push(t),e)if(t.parent){let a=t.parent.children.length,r=t.parent.children.filter(o=>o.selected).length;t.parent.selected=a===r}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),i&&this._activeChildren(t)?this._selected=[...this._selected.filter(a=>a.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(a=>!a.disabled)])}unselect(t,e){if(this._selected=this._selected.filter(i=>i!==t),t.selected=!1,e)if(t.parent&&t.parent.selected){let i=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...i.filter(a=>a!==t&&!a.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(t,e){for(let i of t)i.disabled||(i.selected=e)}_removeChildren(t){this._selected=[...this._selected.filter(e=>e.parent!==t),...t.children.filter(e=>e.parent===t&&e.disabled&&e.selected)]}_removeParent(t){this._selected=this._selected.filter(e=>e!==t)}_activeChildren(t){return t.children.every(e=>!e.disabled||e.selected)}},UFe=(()=>{class n{constructor(){this.fixedPlaceholder=!1,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),zFe=(()=>{class n{warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Q2=new Ye("ng-select-selection-model"),Wi=(()=>{class n{constructor(e,i,a,r,o,l,s){this.classes=e,this.autoFocus=i,this.config=a,this._cd=l,this._console=s,this.ariaLabelDropdown="Options List",this.markFirst=!0,this.fixedPlaceholder=!1,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.tabFocusOnClearButton=$v(!0,{transform:si}),this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new De,this.focusEvent=new De,this.changeEvent=new De,this.openEvent=new De,this.closeEvent=new De,this.searchEvent=new De,this.clearEvent=new De,this.addEvent=new De,this.removeEvent=new De,this.scroll=new De,this.scrollToEnd=new De,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=yse(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Ce,this._keyPress$=new Ce,this._items=[],this.keyDownFn=d=>!0,this.clearItem=d=>{let u=this.selectedItems.find(p=>p.value===d);this.unselect(u)},this.trackByOption=(d,u)=>this.trackByFn?this.trackByFn(u.value):u,this._onChange=d=>{},this._onTouched=()=>{},this._mergeGlobalConfig(a),this.itemsList=new DV(this,r?r():Sse()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!Z6(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return $a(this._clearSearchOnAdd)?this._clearSearchOnAdd:$a(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return $a(this._deselectOnClick)?this._deselectOnClick:$a(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm?.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=$a(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items])),e.inputAttrs&&this._setInputAttributes()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),$a(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){let i=e.key;if(Object.values(Tc).includes(i)){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else i&&i.length===1&&this._keyPress$.next(i.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case Tc.ArrowDown:this._handleArrowDown(e);break;case Tc.ArrowUp:this._handleArrowUp(e);break;case Tc.Space:this._handleSpace(e);break;case Tc.Enter:this._handleEnter(e);break;case Tc.Tab:this._handleTab(e);break;case Tc.Esc:this.close(),e.preventDefault();break;case Tc.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.key){case Tc.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;Z6(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=a=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(a,null):this.itemsList.addItem(a);xFe(e)?e.then(a=>this.select(i(a))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems?.[0];this.searchTerm=e?.label??null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=$a(i)?!Ny(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&$a(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=a=>{this.items=a.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let a=ji(this.ngOptions.changes,this._destroy$);ji(...this.ngOptions.map(r=>r.stateChange$)).pipe($t(a)).subscribe(r=>{let o=this.itemsList.findItem(r.value);o.disabled=r.disabled,o.label=r.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Tn(this.ngOptions),$t(this._destroy$)).subscribe(a=>{this.bindLabel=this._defaultLabel,e(a),i()})}_isValidWriteValue(e){if(!$a(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=a=>!$a(this.compareWith)&&Ny(a)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(a)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(a=>i(a)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=a=>{let r=this.itemsList.findItem(a);if(r)this.itemsList.select(r);else{let o=Ny(a),l=!o&&!this.bindValue;o||l?this.itemsList.select(this.itemsList.mapItem(a,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:a},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(a=>i(a)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe($t(this._destroy$),Ht(e=>this._pressedKeys.push(e)),oa(200),Cn(()=>this._pressedKeys.length>0),ae(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=q({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs);for(let a of Object.keys(i))e.setAttribute(a,i[a])}_updateNgModel(){let e=[];for(let a of this.selectedItems)if(this.bindValue){let r=null;if(a.children){let o=this.groupValue?this.bindValue:this.groupBy;r=a.value[o||this.groupBy]}else r=this.itemsList.resolveNested(a.value,this.bindValue);e.push(r)}else e.push(a.value);let i=this.selectedItems.map(a=>a.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange($a(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClearButton())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=this.getVirtualScroll(e),this.openOnEnter=$a(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}getVirtualScroll(e){return $a(this.virtualScroll)?this.virtualScroll:this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return $a(e.disableVirtualScroll)?!e.disableVirtualScroll:!1}static{this.\u0275fac=function(i){return new(i||n)(Pm("class"),Pm("autofocus"),x(UFe),x(Q2,8),x(Bt),x(ct),x(zFe))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-select"]],contentQueries:function(i,a,r){if(i&1&&(Jt(r,Ua,5,Tt),Jt(r,EFe,5,Tt),Jt(r,Lr,5,Tt),Jt(r,MFe,5,Tt),Jt(r,Dy,5,Tt),Jt(r,OFe,5,Tt),Jt(r,VFe,5,Tt),Jt(r,PFe,5,Tt),Jt(r,LFe,5,Tt),Jt(r,RFe,5,Tt),Jt(r,HFe,5,Tt),Jt(r,BFe,5,Tt),Jt(r,jFe,5,Tt),Jt(r,wy,5)),i&2){let o;Ae(o=xe())&&(a.optionTemplate=o.first),Ae(o=xe())&&(a.optgroupTemplate=o.first),Ae(o=xe())&&(a.labelTemplate=o.first),Ae(o=xe())&&(a.multiLabelTemplate=o.first),Ae(o=xe())&&(a.headerTemplate=o.first),Ae(o=xe())&&(a.footerTemplate=o.first),Ae(o=xe())&&(a.notFoundTemplate=o.first),Ae(o=xe())&&(a.placeholderTemplate=o.first),Ae(o=xe())&&(a.typeToSearchTemplate=o.first),Ae(o=xe())&&(a.loadingTextTemplate=o.first),Ae(o=xe())&&(a.tagTemplate=o.first),Ae(o=xe())&&(a.loadingSpinnerTemplate=o.first),Ae(o=xe())&&(a.clearButtonTemplate=o.first),Ae(o=xe())&&(a.ngOptions=o)}},viewQuery:function(i,a){if(i&1&&(At(gse,5),At(U7e,7),At(z7e,5)),i&2){let r;Ae(r=xe())&&(a.dropdownPanel=r.first),Ae(r=xe())&&(a.searchInput=r.first),Ae(r=xe())&&(a.clearButton=r.first)}},hostVars:20,hostBindings:function(i,a){i&1&&Z("keydown",function(o){return a.handleKeyDown(o)}),i&2&&ve("ng-select-typeahead",a.typeahead)("ng-select-multiple",a.multiple)("ng-select-taggable",a.addTag)("ng-select-searchable",a.searchable)("ng-select-clearable",a.clearable)("ng-select-opened",a.isOpen)("ng-select",a.useDefaultClass)("ng-select-filtered",a.filtered)("ng-select-single",a.single)("ng-select-disabled",a.disabled)},inputs:{ariaLabelDropdown:"ariaLabelDropdown",bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",si],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",si],closeOnSelect:[2,"closeOnSelect","closeOnSelect",si],hideSelected:[2,"hideSelected","hideSelected",si],selectOnTab:[2,"selectOnTab","selectOnTab",si],openOnEnter:[2,"openOnEnter","openOnEnter",si],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Bm],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Bm],virtualScroll:[2,"virtualScroll","virtualScroll",si],selectableGroup:[2,"selectableGroup","selectableGroup",si],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",si],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",si],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Bm],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],readonly:[2,"readonly","readonly",si],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",si],minTermLength:[2,"minTermLength","minTermLength",Bm],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",si],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",si],addTag:"addTag",searchable:[2,"searchable","searchable",si],clearable:[2,"clearable","clearable",si],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Et([{provide:Pi,useExisting:ta(()=>n),multi:!0},Cse]),Fn],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,a){if(i&1){let r=de();S(0,"div",10),Z("mousedown",function(l){return G(r),W(a.handleMousedown(l))}),S(1,"div",11),P(2,K7e,3,1)(3,tFe,2,0)(4,iFe,1,5,null,12),S(5,"div",13)(6,"input",14,0),Z("blur",function(l){return G(r),W(a.onInputBlur(l))})("change",function(l){return G(r),W(l.stopPropagation())})("compositionend",function(){G(r);let l=Pt(7);return W(a.onCompositionEnd(l.value))})("compositionstart",function(){return G(r),W(a.onCompositionStart())})("focus",function(l){return G(r),W(a.onInputFocus(l))})("input",function(){G(r);let l=Pt(7);return W(a.filter(l.value))}),_()()(),P(8,oFe,3,1)(9,dFe,2,1),S(10,"span",15),H(11,"span",16),_()(),P(12,FFe,8,18,"ng-dropdown-panel",17),S(13,"div",18),P(14,DFe,1,1),_()}if(i&2){let r;ve("ng-appearance-outline",a.appearance==="outline")("ng-has-value",a.hasValue),f(2),Zo(a.selectedItems.length===0&&!a.searchTerm||a.fixedPlaceholder?2:-1),f(),Zo((!a.multiLabelTemplate||!a.multiple)&&a.selectedItems.length>0?3:-1),f(),Zo(a.multiple&&a.multiLabelTemplate&&a.selectedValues.length>0?4:-1),f(2),y("disabled",a.disabled)("readOnly",!a.searchable||a.itemsList.maxItemsSelected)("value",(r=a.searchTerm)!==null&&r!==void 0?r:""),Mt("aria-activedescendant",a.isOpen?a.itemsList==null||a.itemsList.markedItem==null?null:a.itemsList.markedItem.htmlId:null)("aria-controls",a.isOpen?a.dropdownId:null)("aria-expanded",a.isOpen)("aria-label",a.ariaLabel)("id",a.labelForId)("tabindex",a.tabIndex),f(2),Zo(a.loading?8:-1),f(),Zo(a.showClear()?9:-1),f(3),Zo(a.isOpen?12:-1),f(2),Zo(a.isOpen&&a.showNoItemsFound()?14:-1)}},dependencies:[Qa,TFe,gse,xi],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap}
|
|
5828
|
+
/*# sourceMappingURL=alerts.component-NCUAH4F6.css.map */`],changeDetection:0})}}return n})();var hse="3.7.1";var H7e=["content"],B7e=["scroll"],j7e=["padding"],vse=["*"],Fy=n=>({searchTerm:n});function Z7e(n,t){if(n&1&&(S(0,"div",3),bi(1,6),_()),n&2){let e=A();f(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",xn(2,Fy,e.filterValue))}}function $7e(n,t){if(n&1&&(S(0,"div",5),bi(1,6),_()),n&2){let e=A();f(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",xn(2,Fy,e.filterValue))}}var U7e=["searchInput"],z7e=["clearButton"],G7e=(n,t,e)=>({item:n,clear:t,label:e}),W7e=(n,t)=>({items:n,clear:t}),q7e=(n,t,e,i)=>({item:n,item$:t,index:e,searchTerm:i});function Q7e(n,t){if(n&1&&(S(0,"div",20),E(1),_()),n&2){let e=A(2);f(),te(e.placeholder)}}function Y7e(n,t){}function K7e(n,t){if(n&1&&P(0,Q7e,2,1,"ng-template",null,1,nn)(2,Y7e,0,0,"ng-template",19),n&2){let e=Pt(1),i=A();f(2),y("ngTemplateOutlet",i.placeholderTemplate||e)}}function J7e(n,t){if(n&1){let e=de();S(0,"span",23),Z("click",function(){G(e);let a=A().$implicit,r=A(2);return W(r.unselect(a))}),E(1,"\xD7"),_(),H(2,"span",24)}if(n&2){let e=A().$implicit,i=A(2);f(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function X7e(n,t){}function eFe(n,t){if(n&1&&(S(0,"div",22),P(1,J7e,3,2,"ng-template",null,2,nn)(3,X7e,0,0,"ng-template",12),_()),n&2){let e=t.$implicit,i=Pt(2),a=A(2);ve("ng-value-disabled",e.disabled),f(3),y("ngTemplateOutlet",a.labelTemplate||i)("ngTemplateOutletContext",P_(4,G7e,e.value,a.clearItem,e.label))}}function tFe(n,t){if(n&1&&sA(0,eFe,4,8,"div",21,lA().trackByOption,!0),n&2){let e=A();dA(e.selectedItems)}}function nFe(n,t){}function iFe(n,t){if(n&1&&P(0,nFe,0,0,"ng-template",12),n&2){let e=A();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",bd(2,W7e,e.selectedValues,e.clearItem))}}function aFe(n,t){n&1&&H(0,"div",25)}function rFe(n,t){}function oFe(n,t){if(n&1&&P(0,aFe,1,0,"ng-template",null,3,nn)(2,rFe,0,0,"ng-template",19),n&2){let e=Pt(1),i=A();f(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate||e)}}function lFe(n,t){if(n&1&&bi(0,19),n&2){let e=A(2);y("ngTemplateOutlet",e.clearButtonTemplate)}}function sFe(n,t){if(n&1&&(S(0,"span",26,4)(2,"span",27),E(3,"\xD7"),_()()),n&2){let e=A(2);cA("title",e.clearAllText),Mt("tabindex",e.tabFocusOnClearButton()?0:-1)}}function dFe(n,t){if(n&1&&P(0,lFe,1,1,"ng-container",19)(1,sFe,4,2,"span",26),n&2){let e=A();Zo(e.clearButtonTemplate?0:1)}}function cFe(n,t){if(n&1&&H(0,"span",32),n&2){let e=A().$implicit,i=A(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function uFe(n,t){}function mFe(n,t){if(n&1){let e=de();S(0,"div",31),Z("click",function(){let a=G(e).$implicit,r=A(2);return W(r.toggleItem(a))})("mouseover",function(){let a=G(e).$implicit,r=A(2);return W(r.onItemHover(a))}),P(1,cFe,1,2,"ng-template",null,5,nn)(3,uFe,0,0,"ng-template",12),_()}if(n&2){let e=t.$implicit,i=Pt(2),a=A(2);ve("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===a.itemsList.markedItem),Mt("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",a.itemsList.filteredItems.length)("aria-posinset",e.index+1),f(3),y("ngTemplateOutlet",e.children?a.optgroupTemplate||i:a.optionTemplate||i)("ngTemplateOutletContext",L_(19,q7e,e.value,e,e.index,a.searchTerm))}}function pFe(n,t){if(n&1&&(S(0,"span")(1,"span",34),E(2),_(),E(3),_()),n&2){let e=A(3);f(2),te(e.addTagText),f(),ie('"',e.searchTerm,'"')}}function hFe(n,t){}function fFe(n,t){if(n&1){let e=de();S(0,"div",33),Z("mouseover",function(){G(e);let a=A(2);return W(a.itemsList.unmarkItem())})("click",function(){G(e);let a=A(2);return W(a.selectTag())}),P(1,pFe,4,2,"ng-template",null,6,nn)(3,hFe,0,0,"ng-template",12),_()}if(n&2){let e=Pt(2),i=A(2);ve("ng-option-marked",!i.itemsList.markedItem),f(3),y("ngTemplateOutlet",i.tagTemplate||e)("ngTemplateOutletContext",xn(4,Fy,i.searchTerm))}}function gFe(n,t){if(n&1&&(S(0,"div",35),E(1),_()),n&2){let e=A(3);f(),te(e.notFoundText)}}function vFe(n,t){}function kFe(n,t){if(n&1&&P(0,gFe,2,1,"ng-template",null,7,nn)(2,vFe,0,0,"ng-template",12),n&2){let e=Pt(1),i=A(2);f(2),y("ngTemplateOutlet",i.notFoundTemplate||e)("ngTemplateOutletContext",xn(2,Fy,i.searchTerm))}}function yFe(n,t){if(n&1&&(S(0,"div",35),E(1),_()),n&2){let e=A(3);f(),te(e.typeToSearchText)}}function CFe(n,t){}function SFe(n,t){if(n&1&&P(0,yFe,2,1,"ng-template",null,8,nn)(2,CFe,0,0,"ng-template",19),n&2){let e=Pt(1),i=A(2);f(2),y("ngTemplateOutlet",i.typeToSearchTemplate||e)}}function _Fe(n,t){if(n&1&&(S(0,"div",35),E(1),_()),n&2){let e=A(3);f(),te(e.loadingText)}}function bFe(n,t){}function NFe(n,t){if(n&1&&P(0,_Fe,2,1,"ng-template",null,9,nn)(2,bFe,0,0,"ng-template",12),n&2){let e=Pt(1),i=A(2);f(2),y("ngTemplateOutlet",i.loadingTextTemplate||e)("ngTemplateOutletContext",xn(2,Fy,i.searchTerm))}}function FFe(n,t){if(n&1){let e=de();S(0,"ng-dropdown-panel",28),Z("update",function(a){G(e);let r=A();return W(r.viewPortItems=a)})("scroll",function(a){G(e);let r=A();return W(r.scroll.emit(a))})("scrollToEnd",function(a){G(e);let r=A();return W(r.scrollToEnd.emit(a))})("outsideClick",function(){G(e);let a=A();return W(a.close())}),Be(1),sA(2,mFe,4,24,"div",29,lA().trackByOption,!0),P(4,fFe,4,6,"div",30),je(),P(5,kFe,3,4)(6,SFe,3,1)(7,NFe,3,4),_()}if(n&2){let e=A();ve("ng-select-multiple",e.multiple),y("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown),f(2),dA(e.viewPortItems),f(2),Zo(e.showAddTag?4:-1),f(),Zo(e.showNoItemsFound()?5:-1),f(),Zo(e.showTypeToSearch()?6:-1),f(),Zo(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}function DFe(n,t){if(n&1&&E(0),n&2){let e=A();ie(" ",e.notFoundText," ")}}var kse=/[&<>"']/g,wFe=RegExp(kse.source),IFe={"&":"&","<":"<",">":">",'"':""","'":"'"};function AFe(n){return n&&wFe.test(n)?n.replace(kse,t=>IFe[t]):n}function $a(n){return n!=null}function Ny(n){return typeof n=="object"&&$a(n)}function xFe(n){return n instanceof Promise}function Z6(n){return n instanceof Function}var TFe=(()=>{class n{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?AFe(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(i){return new(i||n)(x(Bt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[Fn]})}}return n})(),Ua=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-option-tmp",""]]})}}return n})(),EFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-optgroup-tmp",""]]})}}return n})(),Lr=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-label-tmp",""]]})}}return n})(),MFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-multi-label-tmp",""]]})}}return n})(),Dy=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-header-tmp",""]]})}}return n})(),OFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-footer-tmp",""]]})}}return n})(),VFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-notfound-tmp",""]]})}}return n})(),PFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-placeholder-tmp",""]]})}}return n})(),LFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-typetosearch-tmp",""]]})}}return n})(),RFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-loadingtext-tmp",""]]})}}return n})(),HFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-tag-tmp",""]]})}}return n})(),BFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-loadingspinner-tmp",""]]})}}return n})(),jFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Fe({type:n,selectors:[["","ng-clearbutton-tmp",""]]})}}return n})();function yse(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var ZFe={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function j6(n){let t=e=>ZFe[e]||e;return n.replace(/[^\u0000-\u007E]/g,t)}var DV=class{constructor(t,e){this._ngSelect=t,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let e=this.selectedItems[t];if(!e.disabled)return e}return null}setItems(t){this._items=t.map((e,i)=>this.mapItem(e,i)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(t,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&$a(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let e;return this._ngSelect.compareWith?e=i=>this._ngSelect.compareWith(i.value,t):this._ngSelect.bindValue?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue)===t:e=i=>i.value===t||!i.children&&i.label&&i.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(i=>e(i))}addItem(t){let e=this.mapItem(t,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(e=>{e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=j6(t).toLocaleLowerCase(),this.filteredItems.find(e=>j6(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:j6(t).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected;for(let a of Array.from(this._groups.keys())){let r=[];for(let o of this._groups.get(a)){if(i&&(o.parent&&o.parent.selected||o.selected))continue;let l=this._ngSelect.searchFn?o.value:o;e(t,l)&&r.push(o)}if(r.length>0){let[o]=r.slice(-1);if(o.parent){let l=this._items.find(s=>s===o.parent);this._filteredItems.push(l)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=t?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(t,e){if(!Ny(t))return t;if(e.indexOf(".")===-1)return t[e];{let i=e.split("."),a=t;for(let r=0,o=i.length;r<o;++r){if(a==null)return null;a=a[i[r]]}return a}}mapItem(t,e){let i=$a(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),a=$a(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:e,label:$a(i)?i.toString():"",value:a,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let t=this._ngSelect.multiple;for(let e of this.selectedItems){let i=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,a=$a(i)?this.findItem(i):null;this._selectionModel.unselect(e,t),this._selectionModel.select(a||e,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let e=t.parent;this._filteredItems.find(a=>a===e)||this._filteredItems.push(e)}else if(t.children)for(let e of t.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(e=>e!==t),t.parent?t.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return j6(e.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,e){let i=new Map;if(t.length===0)return i;if(Array.isArray(t[0].value[e])){for(let o of t){let l=(o.value[e]||[]).map((s,d)=>this.mapItem(s,d));i.set(o,l)}return i}let a=Z6(this._ngSelect.groupBy),r=o=>{let l=a?e(o.value):o.value[e];return $a(l)?l:void 0};for(let o of t){let l=r(o),s=i.get(l);s?s.push(o):i.set(l,[o])}return i}_flatten(t){let e=Z6(this._ngSelect.groupBy),i=[];for(let a of Array.from(t.keys())){let r=i.length;if(a===void 0){let p=t.get(void 0)||[];i.push(...p.map(h=>(h.index=r++,h)));continue}let o=Ny(a),l={label:o?"":String(a),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:yse()},s=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,d=this._ngSelect.groupValue||(()=>o?a.value:{[s]:a}),u=t.get(a).map(p=>(p.parent=l,p.children=void 0,p.index=r++,p));l.children=u,l.value=d(a,u.map(p=>p.value)),i.push(l),i.push(...u)}return i}},Cse=(()=>{class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,a){let r=this._dimensions,o=r.itemHeight*i,s=Math.max(0,e)/o*i,d=Math.min(i,Math.ceil(s)+(r.itemsPerViewport+1)),p=Math.max(0,d-r.itemsPerViewport),h=Math.min(p,Math.floor(s)),g=r.itemHeight*Math.ceil(h)-r.itemHeight*Math.min(h,a);return g=isNaN(g)?0:g,h=isNaN(h)?-1:h,d=isNaN(d)?-1:d,h-=a,h=Math.max(0,h),d+=a,d=Math.min(i,d),{topPadding:g,scrollHeight:o,start:h,end:d}}setDimensions(e,i){let a=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:a}}getScrollTo(e,i,a){let{panelHeight:r}=this.dimensions,o=e+i,l=a,s=l+r;return r>=o&&a===e?null:o>s?l+o-s:e<=l?e:null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})(),fse=["top","right","bottom","left"],$Fe=typeof requestAnimationFrame<"u"?Wh:r4,gse=(()=>{class n{constructor(e,i,a,r,o){this._renderer=e,this._zone=i,this._panelService=a,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.ariaLabelDropdown=$v(null),this.update=new De,this.scroll=new De,this.scrollToEnd=new De,this.outsideClick=new De,this._destroy$=new Ce,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,a=this.markedItem.index*e;return i>a?0:a}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let a=this.items.indexOf(e);if(a<0||a>=this.itemsLength)return;let r;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(a*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),l=i?o.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,l)}$a(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fse.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){fse.forEach(a=>{let r=`ng-select-${a}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{Tr(this.scrollElementRef.nativeElement,"scroll").pipe($t(this._destroy$),Jh(0,$Fe)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let a=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(a)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{ji(Tr(this._document,"touchstart",{capture:!0}),Tr(this._document,"click",{capture:!0})).pipe($t(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),$a(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let a=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${a*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(a,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,r=i.top+window.pageYOffset,o=i.height,l=e.getBoundingClientRect().height;return r+o+l>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo):document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.left-i.left;this._dropdown.style.left=a+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.height;if(this._currentPosition==="top"){let r=i.bottom-e.bottom;this._dropdown.style.bottom=r+a+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-i.top;this._dropdown.style.top=r+a+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Tr(this._dropdown,"mousedown").pipe($t(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(i){return new(i||n)(x(ia),x(cn),x(Cse),x(Bt),x(bn,8))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,a){if(i&1&&(At(H7e,7,Bt),At(B7e,7,Bt),At(j7e,7,Bt)),i&2){let r;Ae(r=xe())&&(a.contentElementRef=r.first),Ae(r=xe())&&(a.scrollElementRef=r.first),Ae(r=xe())&&(a.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",si],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue",ariaLabelDropdown:[1,"ariaLabelDropdown"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Fn],ngContentSelectors:vse,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,a){i&1&&(wt(),P(0,Z7e,2,4,"div",3),S(1,"div",4,0),H(3,"div",null,1),S(5,"div",null,2),dt(7),_()(),P(8,$7e,2,4,"div",5)),i&2&&(Zo(a.headerTemplate?0:-1),f(),Mt("aria-label",a.ariaLabelDropdown()),f(2),ve("total-padding",a.virtualScroll),f(2),ve("scrollable-content",a.virtualScroll&&a.items.length),f(3),Zo(a.footerTemplate?8:-1))},dependencies:[Qa],encapsulation:2,changeDetection:0})}}return n})(),wy=(()=>{class n{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new Ce}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(i){return new(i||n)(x(Bt))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",si]},features:[Fn],ngContentSelectors:vse,decls:1,vars:0,template:function(i,a){i&1&&(wt(),dt(0))},encapsulation:2,changeDetection:0})}}return n})(),Tc=function(n){return n.Tab="Tab",n.Enter="Enter",n.Esc="Escape",n.Space=" ",n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.Backspace="Backspace",n}(Tc||{});function Sse(){return new wV}var wV=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,e,i){if(t.selected=!0,(!t.children||!e&&i)&&this._selected.push(t),e)if(t.parent){let a=t.parent.children.length,r=t.parent.children.filter(o=>o.selected).length;t.parent.selected=a===r}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),i&&this._activeChildren(t)?this._selected=[...this._selected.filter(a=>a.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(a=>!a.disabled)])}unselect(t,e){if(this._selected=this._selected.filter(i=>i!==t),t.selected=!1,e)if(t.parent&&t.parent.selected){let i=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...i.filter(a=>a!==t&&!a.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(t,e){for(let i of t)i.disabled||(i.selected=e)}_removeChildren(t){this._selected=[...this._selected.filter(e=>e.parent!==t),...t.children.filter(e=>e.parent===t&&e.disabled&&e.selected)]}_removeParent(t){this._selected=this._selected.filter(e=>e!==t)}_activeChildren(t){return t.children.every(e=>!e.disabled||e.selected)}},UFe=(()=>{class n{constructor(){this.fixedPlaceholder=!1,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),zFe=(()=>{class n{warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Q2=new Ye("ng-select-selection-model"),Wi=(()=>{class n{constructor(e,i,a,r,o,l,s){this.classes=e,this.autoFocus=i,this.config=a,this._cd=l,this._console=s,this.ariaLabelDropdown="Options List",this.markFirst=!0,this.fixedPlaceholder=!1,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.tabFocusOnClearButton=$v(!0,{transform:si}),this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new De,this.focusEvent=new De,this.changeEvent=new De,this.openEvent=new De,this.closeEvent=new De,this.searchEvent=new De,this.clearEvent=new De,this.addEvent=new De,this.removeEvent=new De,this.scroll=new De,this.scrollToEnd=new De,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=yse(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Ce,this._keyPress$=new Ce,this._items=[],this.keyDownFn=d=>!0,this.clearItem=d=>{let u=this.selectedItems.find(p=>p.value===d);this.unselect(u)},this.trackByOption=(d,u)=>this.trackByFn?this.trackByFn(u.value):u,this._onChange=d=>{},this._onTouched=()=>{},this._mergeGlobalConfig(a),this.itemsList=new DV(this,r?r():Sse()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!Z6(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return $a(this._clearSearchOnAdd)?this._clearSearchOnAdd:$a(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return $a(this._deselectOnClick)?this._deselectOnClick:$a(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm?.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=$a(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items])),e.inputAttrs&&this._setInputAttributes()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),$a(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){let i=e.key;if(Object.values(Tc).includes(i)){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else i&&i.length===1&&this._keyPress$.next(i.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case Tc.ArrowDown:this._handleArrowDown(e);break;case Tc.ArrowUp:this._handleArrowUp(e);break;case Tc.Space:this._handleSpace(e);break;case Tc.Enter:this._handleEnter(e);break;case Tc.Tab:this._handleTab(e);break;case Tc.Esc:this.close(),e.preventDefault();break;case Tc.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.key){case Tc.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;Z6(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=a=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(a,null):this.itemsList.addItem(a);xFe(e)?e.then(a=>this.select(i(a))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems?.[0];this.searchTerm=e?.label??null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=$a(i)?!Ny(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&$a(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=a=>{this.items=a.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let a=ji(this.ngOptions.changes,this._destroy$);ji(...this.ngOptions.map(r=>r.stateChange$)).pipe($t(a)).subscribe(r=>{let o=this.itemsList.findItem(r.value);o.disabled=r.disabled,o.label=r.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Tn(this.ngOptions),$t(this._destroy$)).subscribe(a=>{this.bindLabel=this._defaultLabel,e(a),i()})}_isValidWriteValue(e){if(!$a(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=a=>!$a(this.compareWith)&&Ny(a)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(a)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(a=>i(a)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=a=>{let r=this.itemsList.findItem(a);if(r)this.itemsList.select(r);else{let o=Ny(a),l=!o&&!this.bindValue;o||l?this.itemsList.select(this.itemsList.mapItem(a,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:a},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(a=>i(a)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe($t(this._destroy$),Ht(e=>this._pressedKeys.push(e)),oa(200),Cn(()=>this._pressedKeys.length>0),ae(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=q({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs);for(let a of Object.keys(i))e.setAttribute(a,i[a])}_updateNgModel(){let e=[];for(let a of this.selectedItems)if(this.bindValue){let r=null;if(a.children){let o=this.groupValue?this.bindValue:this.groupBy;r=a.value[o||this.groupBy]}else r=this.itemsList.resolveNested(a.value,this.bindValue);e.push(r)}else e.push(a.value);let i=this.selectedItems.map(a=>a.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange($a(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClearButton())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=this.getVirtualScroll(e),this.openOnEnter=$a(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}getVirtualScroll(e){return $a(this.virtualScroll)?this.virtualScroll:this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return $a(e.disableVirtualScroll)?!e.disableVirtualScroll:!1}static{this.\u0275fac=function(i){return new(i||n)(Pm("class"),Pm("autofocus"),x(UFe),x(Q2,8),x(Bt),x(ct),x(zFe))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-select"]],contentQueries:function(i,a,r){if(i&1&&(Jt(r,Ua,5,Tt),Jt(r,EFe,5,Tt),Jt(r,Lr,5,Tt),Jt(r,MFe,5,Tt),Jt(r,Dy,5,Tt),Jt(r,OFe,5,Tt),Jt(r,VFe,5,Tt),Jt(r,PFe,5,Tt),Jt(r,LFe,5,Tt),Jt(r,RFe,5,Tt),Jt(r,HFe,5,Tt),Jt(r,BFe,5,Tt),Jt(r,jFe,5,Tt),Jt(r,wy,5)),i&2){let o;Ae(o=xe())&&(a.optionTemplate=o.first),Ae(o=xe())&&(a.optgroupTemplate=o.first),Ae(o=xe())&&(a.labelTemplate=o.first),Ae(o=xe())&&(a.multiLabelTemplate=o.first),Ae(o=xe())&&(a.headerTemplate=o.first),Ae(o=xe())&&(a.footerTemplate=o.first),Ae(o=xe())&&(a.notFoundTemplate=o.first),Ae(o=xe())&&(a.placeholderTemplate=o.first),Ae(o=xe())&&(a.typeToSearchTemplate=o.first),Ae(o=xe())&&(a.loadingTextTemplate=o.first),Ae(o=xe())&&(a.tagTemplate=o.first),Ae(o=xe())&&(a.loadingSpinnerTemplate=o.first),Ae(o=xe())&&(a.clearButtonTemplate=o.first),Ae(o=xe())&&(a.ngOptions=o)}},viewQuery:function(i,a){if(i&1&&(At(gse,5),At(U7e,7),At(z7e,5)),i&2){let r;Ae(r=xe())&&(a.dropdownPanel=r.first),Ae(r=xe())&&(a.searchInput=r.first),Ae(r=xe())&&(a.clearButton=r.first)}},hostVars:20,hostBindings:function(i,a){i&1&&Z("keydown",function(o){return a.handleKeyDown(o)}),i&2&&ve("ng-select-typeahead",a.typeahead)("ng-select-multiple",a.multiple)("ng-select-taggable",a.addTag)("ng-select-searchable",a.searchable)("ng-select-clearable",a.clearable)("ng-select-opened",a.isOpen)("ng-select",a.useDefaultClass)("ng-select-filtered",a.filtered)("ng-select-single",a.single)("ng-select-disabled",a.disabled)},inputs:{ariaLabelDropdown:"ariaLabelDropdown",bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",si],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",si],closeOnSelect:[2,"closeOnSelect","closeOnSelect",si],hideSelected:[2,"hideSelected","hideSelected",si],selectOnTab:[2,"selectOnTab","selectOnTab",si],openOnEnter:[2,"openOnEnter","openOnEnter",si],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Bm],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Bm],virtualScroll:[2,"virtualScroll","virtualScroll",si],selectableGroup:[2,"selectableGroup","selectableGroup",si],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",si],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",si],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Bm],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],readonly:[2,"readonly","readonly",si],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",si],minTermLength:[2,"minTermLength","minTermLength",Bm],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",si],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",si],addTag:"addTag",searchable:[2,"searchable","searchable",si],clearable:[2,"clearable","clearable",si],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Et([{provide:Pi,useExisting:ta(()=>n),multi:!0},Cse]),Fn],decls:15,vars:20,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","ariaLabelDropdown"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","ariaLabelDropdown"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,a){if(i&1){let r=de();S(0,"div",10),Z("mousedown",function(l){return G(r),W(a.handleMousedown(l))}),S(1,"div",11),P(2,K7e,3,1)(3,tFe,2,0)(4,iFe,1,5,null,12),S(5,"div",13)(6,"input",14,0),Z("blur",function(l){return G(r),W(a.onInputBlur(l))})("change",function(l){return G(r),W(l.stopPropagation())})("compositionend",function(){G(r);let l=Pt(7);return W(a.onCompositionEnd(l.value))})("compositionstart",function(){return G(r),W(a.onCompositionStart())})("focus",function(l){return G(r),W(a.onInputFocus(l))})("input",function(){G(r);let l=Pt(7);return W(a.filter(l.value))}),_()()(),P(8,oFe,3,1)(9,dFe,2,1),S(10,"span",15),H(11,"span",16),_()(),P(12,FFe,8,18,"ng-dropdown-panel",17),S(13,"div",18),P(14,DFe,1,1),_()}if(i&2){let r;ve("ng-appearance-outline",a.appearance==="outline")("ng-has-value",a.hasValue),f(2),Zo(a.selectedItems.length===0&&!a.searchTerm||a.fixedPlaceholder?2:-1),f(),Zo((!a.multiLabelTemplate||!a.multiple)&&a.selectedItems.length>0?3:-1),f(),Zo(a.multiple&&a.multiLabelTemplate&&a.selectedValues.length>0?4:-1),f(2),y("disabled",a.disabled)("readOnly",!a.searchable||a.itemsList.maxItemsSelected)("value",(r=a.searchTerm)!==null&&r!==void 0?r:""),Mt("aria-activedescendant",a.isOpen?a.itemsList==null||a.itemsList.markedItem==null?null:a.itemsList.markedItem.htmlId:null)("aria-controls",a.isOpen?a.dropdownId:null)("aria-expanded",a.isOpen)("aria-label",a.ariaLabel)("id",a.labelForId)("tabindex",a.tabIndex),f(2),Zo(a.loading?8:-1),f(),Zo(a.showClear()?9:-1),f(3),Zo(a.isOpen?12:-1),f(2),Zo(a.isOpen&&a.showNoItemsFound()?14:-1)}},dependencies:[Qa,TFe,gse,xi],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap}
|
|
5829
5829
|
`],encapsulation:2,changeDetection:0})}}return n})(),IV=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=at({type:n})}static{this.\u0275inj=it({providers:[{provide:Q2,useValue:Sse}]})}}return n})();var Xt=(()=>{class n{constructor(e,i){this.elementRef=e,this.formControlName=i}get valid(){return!!this.formControlName&&!!this.formControlName.valid}get touched(){return!!this.formControlName&&!!this.formControlName.touched}setReadOnly(e){let i=this.elementRef.nativeElement;GFe(i)?i.disabled=e:i.readOnly=e}static{this.\u0275fac=function(i){return new(i||n)(x(Bt),x(lo,8))}}static{this.\u0275dir=Fe({type:n,selectors:[["input"],["textarea"],["select"],["vdr-currency-input"]],standalone:!1})}}return n})();function GFe(n){return n.hasOwnProperty("selectedIndex")}var WFe=["*"];function qFe(n,t){if(n&1&&(S(0,"label",6),E(1),_()),n&2){let e=A();y("for",e.for),f(),ie(" ",e.label," ")}}function QFe(n,t){if(n&1&&(S(0,"div",7),E(1),_()),n&2){let e=A();f(),ie(" ",e.tooltip," ")}}function YFe(n,t){if(n&1){let e=de();S(0,"button",8),T(1,"translate"),Z("click",function(){G(e);let a=A();return W(a.setReadOnly(!a.isReadOnly))}),H(2,"clr-icon",9),_()}if(n&2){let e=A();ve("enabled",!e.isReadOnly),y("title",O(1,3,"common.edit-field"))}}function KFe(n,t){if(n&1&&(S(0,"div",10),E(1),_()),n&2){let e=A();f(),te(e.getErrorMessage())}}var uo=(()=>{class n{constructor(){this.errors={},this.readOnlyToggle=!1,this.readOnlyToggleChange=new De,this.isReadOnly=!1}ngOnInit(){this.readOnlyToggle&&(this.isReadOnly=!0,this.setReadOnly(!0)),this.isReadOnly=this.readOnlyToggle}setReadOnly(e){this.formFieldControl.setReadOnly(e),this.isReadOnly=e,this.readOnlyToggleChange.emit(e)}getErrorMessage(){if(!this.formFieldControl||!this.formFieldControl.formControlName)return;let e=this.formFieldControl.formControlName.dirty&&this.formFieldControl.formControlName.errors;if(e){for(let i of Object.keys(e))if(this.errors[i])return this.errors[i]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-form-field"]],contentQueries:function(i,a,r){if(i&1&&Jt(r,Xt,7),i&2){let o;Ae(o=xe())&&(a.formFieldControl=o.first)}},inputs:{label:"label",for:"for",tooltip:"tooltip",errors:"errors",readOnlyToggle:"readOnlyToggle"},outputs:{readOnlyToggleChange:"readOnlyToggleChange"},standalone:!1,ngContentSelectors:WFe,decls:7,vars:14,consts:[[1,"form-group"],["class","",3,"for",4,"ngIf"],["class","tooltip-text",4,"ngIf"],[1,"input-row"],["type","button","class","btn edit-button",3,"title","enabled","click",4,"ngIf"],["class","error-message",4,"ngIf"],[1,"",3,"for"],[1,"tooltip-text"],["type","button",1,"btn","edit-button",3,"click","title"],["shape","edit"],[1,"error-message"]],template:function(i,a){i&1&&(wt(),S(0,"div",0),P(1,qFe,2,2,"label",1)(2,QFe,2,1,"div",2),S(3,"div",3),dt(4),P(5,YFe,3,5,"button",4),_(),P(6,KFe,2,1,"div",5),_()),i&2&&(ve("no-label",!a.label)("clr-error",a.formFieldControl==null||a.formFieldControl.formControlName==null?null:a.formFieldControl.formControlName.invalid),f(),y("ngIf",a.label),f(),y("ngIf",a.tooltip),f(),ve("has-toggle",a.readOnlyToggle)("readonly",a.isReadOnly)("invalid",(a.formFieldControl==null?null:a.formFieldControl.touched)&&!(a.formFieldControl!=null&&a.formFieldControl.valid)),f(2),y("ngIf",a.readOnlyToggle),f(),y("ngIf",a.getErrorMessage()))},dependencies:[We,Gi,be,Ee],styles:[`[_nghost-%COMP%]{display:block}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:var(--font-size-sm);color:var(--color-weight-800);margin-bottom:4px;display:inline-block}.tooltip-text[_ngcontent-%COMP%]{font-size:var(--font-size-xs);line-height:var(--font-size-sm);margin-bottom:4px}.input-row[_ngcontent-%COMP%]{display:flex} .input-row input:not([type=checkbox]), .input-row select, .input-row textarea, .input-row ng-select, .input-row vdr-zone-selector, .input-row vdr-facet-value-selector, .input-row vdr-option-value-input, .input-row vdr-affixed-input, .input-row vdr-currency-input, .input-row vdr-rich-text-editor{width:100%} .input-row.readonly input:not([type=checkbox])[readonly], .input-row.readonly select[readonly], .input-row.readonly textarea[readonly], .input-row.readonly ng-select[readonly], .input-row.readonly vdr-zone-selector[readonly], .input-row.readonly vdr-facet-value-selector[readonly], .input-row.readonly vdr-option-value-input[readonly], .input-row.readonly vdr-affixed-input[readonly], .input-row.readonly vdr-currency-input[readonly], .input-row.readonly vdr-rich-text-editor[readonly]{cursor:not-allowed}.input-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not([type=checkbox]), .input-row[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .input-row[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%} .input-row.has-toggle input:not([type=checkbox]):not([type=radio]){border-start-end-radius:0!important;border-end-end-radius:0!important}.edit-button[_ngcontent-%COMP%]{border:1px solid var(--color-weight-200);border-radius:var(--border-radius-input);border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0}.edit-button.enabled[_ngcontent-%COMP%]{color:var(--color-primary-700);background-color:var(--color-primary-100)}
|
|
5830
5830
|
/*# sourceMappingURL=form-field.component-D2TPZYPL.css.map */`]})}}return n})();var JFe=["*"],Gu=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-labeled-data"]],inputs:{label:"label"},standalone:!1,ngContentSelectors:JFe,decls:4,vars:1,consts:[[1,"label-title"],[1,"content"]],template:function(i,a){i&1&&(wt(),S(0,"div",0),E(1),_(),S(2,"div",1),dt(3),_()),i&2&&(f(),te(a.label))},styles:[`[_nghost-%COMP%]{display:block;margin-bottom:6px}.label-title[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-300);line-height:12px;margin-bottom:-4px}.content[_ngcontent-%COMP%]{display:inline-block;line-height:var(--font-size-sm);margin-top:6px}
|
|
5831
5831
|
/*# sourceMappingURL=labeled-data.component-RPBCSXP2.css.map */`],changeDetection:0})}}return n})();var Ec=(()=>{class n{constructor(e,i){e&&i&&(this.subscription=e.client.uiState().mapStream(a=>a.uiState).subscribe(({language:a,locale:r})=>{this.locale=a.replace(/_/g,"-"),r&&!this.locale.includes("-")&&(this.locale+=`-${r}`),i.markForCheck()}))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}getActiveLocale(e){let a=(typeof e=="string"?e:this.locale??"en")?.replace(/_/g,"-"),r=a?.match(/^([a-zA-Z_-]+)(-[A-Z][A-Z])(-[A-Z][A-Z])$/);return r?.length?r[1]+r[3]:a}static{this.\u0275fac=function(i){return new(i||n)(me(He),me(ct))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})();var j0=(()=>{class n extends Ec{constructor(e,i){super(e,i)}transform(e,i="full",a){if(e==null||e==="")return"";if(typeof e!="string")return`Invalid currencyCode "${e}"`;let r="",o="",l=this.getActiveLocale(a);return(i==="full"||i==="name")&&(r=new Intl.DisplayNames([l],{type:"currency"}).of(e)??""),(i==="full"||i==="symbol")&&(o=new Intl.NumberFormat(l,{style:"currency",currency:e,currencyDisplay:"symbol"}).formatToParts().find(d=>d.type==="currency")?.value||e),i==="full"?`${r} (${o})`:i==="name"?r:o}static{this.\u0275fac=function(i){return new(i||n)(x(He,24),x(ct,24))}}static{this.\u0275pipe=An({name:"localeCurrencyName",type:n,pure:!1,standalone:!1})}}return n})();var xV=(()=>{class n{transform(e,i){return e.slice().sort((a,r)=>{let o=i?a[i]:a,l=i?r[i]:r;return o===l?0:o==null?1:l==null?-1:o>l?1:-1})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=An({name:"sort",type:n,pure:!0,standalone:!1})}}return n})();var tl=(()=>{class n extends Ec{constructor(e,i){super(e,i)}transform(e,...i){let[a,r]=i;if(this.locale||typeof r=="string"){let o=this.getActiveLocale(r),l=e instanceof Date?e:typeof e=="string"?new Date(e):void 0;if(l){let s=this.getOptionsForFormat(typeof a=="string"?a:"medium");return new Intl.DateTimeFormat(o,s).format(l)}}}getOptionsForFormat(e){switch(e){case"medium":return{month:"short",year:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};case"mediumTime":return{hour:"numeric",minute:"numeric",second:"numeric"};case"longDate":return{year:"numeric",month:"long",day:"numeric"};case"shortDate":return{day:"numeric",month:"numeric",year:"2-digit"};case"short":return{day:"numeric",month:"numeric",year:"2-digit",hour:"numeric",minute:"numeric"};default:return}}static{this.\u0275fac=function(i){return new(i||n)(x(He,24),x(ct,24))}}static{this.\u0275pipe=An({name:"localeDate",type:n,pure:!1,standalone:!1})}}return n})();var Rp=(()=>{class n{constructor(e){this.precision=e.serverConfig.moneyStrategyPrecision,this.precisionFactor=Math.pow(10,this.precision)}toMajorUnits(e){return e/this.precisionFactor}static{this.\u0275fac=function(i){return new(i||n)(me(oo))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Iy=(()=>{class n extends Ec{constructor(e,i,a){super(i,a),this.currencyService=e}transform(e,...i){let[a,r]=i;if(typeof e=="number"){let o=this.getActiveLocale(r),l=this.currencyService.toMajorUnits(e);try{return new Intl.NumberFormat(o,{style:"currency",currency:a,minimumFractionDigits:this.currencyService.precision,maximumFractionDigits:this.currencyService.precision}).format(l)}catch{return l.toFixed(this.currencyService.precision)}}return e}static{this.\u0275fac=function(i){return new(i||n)(x(Rp,16),x(He,24),x(ct,24))}}static{this.\u0275pipe=An({name:"localeCurrency",type:n,pure:!1,standalone:!1})}}return n})();var Wu=(()=>{class n extends Ec{constructor(e,i){super(e,i)}transform(e,i){if(e==null||e==="")return"";if(typeof e!="string")return`Invalid language code "${e}"`;let a=this.getActiveLocale(i),r=Intl.DisplayNames;try{return new r([a.replace("_","-")],{type:"language"}).of(e.replace("_","-"))}catch{return e}}static{this.\u0275fac=function(i){return new(i||n)(x(He,24),x(ct,24))}}static{this.\u0275pipe=An({name:"localeLanguageName",type:n,pure:!1,standalone:!1})}}return n})();var TV=(()=>{class n extends Ec{constructor(e,i){super(e,i)}transform(e,i){if(e==null||e==="")return"";if(typeof e!="string")return`Invalid region code "${e}"`;let a=this.getActiveLocale(i),r=Intl.DisplayNames;try{return new r([a.replace("_","-")],{type:"region"}).of(e.replace("_","-"))}catch{return e}}static{this.\u0275fac=function(i){return new(i||n)(x(He,24),x(ct,24))}}static{this.\u0275pipe=An({name:"localeRegionName",type:n,pure:!1,standalone:!1})}}return n})();function tDe(n,t){n&1&&(E(0),T(1,"translate")),n&2&&te(O(1,1,"common.select-display-language"))}function nDe(n,t){n&1&&(Be(0),H(1,"div",3),je())}function iDe(n,t){if(n&1&&(S(0,"option",19),E(1),T(2,"uppercase"),T(3,"localeLanguageName"),_()),n&2){let e=t.$implicit;y("value",e),f(),$i(" ",O(2,3,e)," (",O(3,5,e),") ")}}function aDe(n,t){if(n&1&&(E(0),T(1,"localeRegionName")),n&2){let e=t.item;$i(" ",e," (",O(1,2,e),") ")}}function rDe(n,t){if(n&1&&(E(0),T(1,"localeRegionName")),n&2){let e=t.item;$i(" ",e," (",O(1,2,e),") ")}}function oDe(n,t){if(n&1&&(S(0,"option",19),E(1),T(2,"uppercase"),T(3,"localeCurrencyName"),_()),n&2){let e=t.$implicit,i=A(2);y("value",e),f(),$i(" ",O(2,3,e)," (",Hm(3,5,e,"full",i.previewLocale),") ")}}function lDe(n,t){if(n&1){let e=de();Be(0),S(1,"div",4)(2,"div",5)(3,"vdr-form-field",6),T(4,"translate"),S(5,"select",7),or("ngModelChange",function(a){G(e);let r=A();return Sr(r.currentLanguage,a)||(r.currentLanguage=a),W(a)}),Z("ngModelChange",function(){G(e);let a=A();return W(a.updatePreviewLocale())}),P(6,iDe,4,7,"option",8),T(7,"sort"),_()(),S(8,"vdr-form-field",9),T(9,"translate"),S(10,"ng-select",10),T(11,"translate"),or("ngModelChange",function(a){G(e);let r=A();return Sr(r.currentLocale,a)||(r.currentLocale=a),W(a)}),Z("ngModelChange",function(){G(e);let a=A();return W(a.updatePreviewLocale())}),P(12,aDe,2,4,"ng-template",11)(13,rDe,2,4,"ng-template",12),_()()()(),S(14,"div",13)(15,"div",14)(16,"span",15),E(17),T(18,"translate"),_(),S(19,"strong"),E(20),T(21,"localeLanguageName"),_()(),S(22,"div",16)(23,"div",4)(24,"div",17)(25,"vdr-labeled-data",9),T(26,"translate"),E(27),T(28,"localeDate"),_(),S(29,"vdr-labeled-data",9),T(30,"translate"),E(31),T(32,"localeDate"),_()(),S(33,"div",17)(34,"select",18),or("ngModelChange",function(a){G(e);let r=A();return Sr(r.selectedCurrencyCode,a)||(r.selectedCurrencyCode=a),W(a)}),P(35,oDe,4,9,"option",8),T(36,"sort"),_()(),S(37,"div",17)(38,"vdr-labeled-data",9),T(39,"translate"),E(40),T(41,"localeCurrency"),_()()()()(),je()}if(n&2){let e=A();f(3),y("label",O(4,17,"common.language")),f(2),rr("ngModel",e.currentLanguage),f(),y("ngForOf",O(7,19,e.availableLanguages)),f(2),y("label",O(9,21,"common.locale")),f(2),y("items",e.availableLocales),rr("ngModel",e.currentLocale),y("placeholder",O(11,23,"common.browser-default")),f(7),ie("",O(18,25,"common.sample-formatting"),":"),f(3),te(nt(21,27,e.previewLocale,e.previewLocale)),f(5),y("label",O(26,30,"common.medium-date")),f(2),ie(" ",Hm(28,32,e.now,"medium",e.previewLocale)," "),f(2),y("label",O(30,36,"common.short-date")),f(2),ie(" ",Hm(32,38,e.now,"short",e.previewLocale)," "),f(3),rr("ngModel",e.selectedCurrencyCode),f(),y("ngForOf",O(36,42,e.availableCurrencyCodes)),f(3),y("label",O(39,44,"common.price")),f(2),ie(" ",Hm(41,46,12345,e.selectedCurrencyCode,e.previewLocale)," ")}}function sDe(n,t){if(n&1){let e=de();S(0,"button",20),Z("click",function(){G(e);let a=A();return W(a.cancel())}),E(1),T(2,"translate"),_(),S(3,"button",21),Z("click",function(){G(e);let a=A();return W(a.setLanguage())}),E(4),T(5,"translate"),_()}n&2&&(f(),te(O(2,2,"common.cancel")),f(3),ie(" ",O(5,4,"common.set-language")," "))}var bse=(()=>{class n{constructor(e,i){this.dataService=e,this.changeDetector=i,this.isLoading=!0,this.destroy$=new Ce,this.availableLanguages=[],this.availableLocales=[],this.availableCurrencyCodes=Object.values(Yk),this.now=new Date().toISOString();let a=navigator.language.split("-");this.browserDefaultLocale=a.length===1?void 0:a[1]}ngOnInit(){this.updatePreviewLocale(),this.dataService.settings.getActiveChannel().mapStream(e=>e.activeChannel.defaultCurrencyCode).pipe(Jn(1),$t(this.destroy$),yo(()=>{this.isLoading=!1,this.changeDetector.markForCheck()})).subscribe(e=>{this.selectedCurrencyCode=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updatePreviewLocale(){(!this.currentLocale||this.currentLocale.length===0||this.currentLocale.length===2)&&(this.previewLocale=this.createLocaleString(this.currentLanguage,this.currentLocale))}setLanguage(){this.resolveWith([this.currentLanguage,this.currentLocale?.toUpperCase()])}cancel(){this.resolveWith()}createLocaleString(e,i){return i?[e,i.toUpperCase()].join("-"):e}static{this.\u0275fac=function(i){return new(i||n)(x(He),x(ct))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-ui-language-switcher"]],standalone:!1,decls:4,vars:2,consts:[["vdrDialogTitle",""],[4,"ngIf"],["vdrDialogButtons",""],[1,"progress","loop"],[1,"clr-row"],[1,"flex","pl-2","mb-2"],[1,"mr-2",3,"label"],["name","options",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"label"],["appendTo","body",3,"ngModelChange","items","ngModel","placeholder"],["ng-label-tmp",""],["ng-option-tmp",""],[1,"card"],[1,"card-header"],[1,"pr-1"],[1,"card-block"],[1,"clr-col-sm-4"],["name","currency",1,"currency",3,"ngModelChange","ngModel"],[3,"value"],["type","button",1,"btn",3,"click"],["type","submit",1,"btn","btn-primary",3,"click"]],template:function(i,a){i&1&&P(0,tDe,2,3,"ng-template",0)(1,nDe,2,0,"ng-container",1)(2,lDe,42,50,"ng-container",1)(3,sDe,6,6,"ng-template",2),i&2&&(f(),y("ngIf",a.isLoading),f(),y("ngIf",!a.isLoading))},dependencies:[It,be,Vr,Pr,dr,Ot,zi,Wi,Ua,Lr,uo,Xt,Aa,Za,Gu,lk,Ee,j0,xV,tl,Iy,Wu,TV],styles:[`select.currency[_ngcontent-%COMP%]{max-width:200px}input.locale[_ngcontent-%COMP%]{text-transform:uppercase}
|
|
@@ -6109,4 +6109,4 @@ Using (${s}) instead.`),r=s}return r}buildLayout(e){let i=[],a=[];for(let{id:r,c
|
|
|
6109
6109
|
}
|
|
6110
6110
|
${ro}
|
|
6111
6111
|
`;function tPt(n){let t=n.unicode?n:new RegExp(n,"u");return e=>t.test(e.value)?null:{pattern:{value:e.value}}}export{q as a,Ue as b,v1 as c,ud as d,yn as e,Ho as f,Ce as g,en as h,ka as i,Un as j,Me as k,Yh as l,kd as m,ae as n,Kn as o,Hi as p,eo as q,cu as r,Kl as s,ji as t,Cn as u,Bo as v,pl as w,oa as x,Jn as y,hl as z,N4 as A,_i as B,yo as C,h0e as D,f0e as E,Zi as F,tf as G,Tn as H,lt as I,g0e as J,$t as K,Ht as L,v0e as M,ta as N,ne as O,it as P,me as Q,Q as R,Fn as S,G as T,W as U,Ai as V,De as W,Bt as X,IYe as Y,na as Z,f as _,Tt as $,x as aa,vn as ba,$ as ca,at as da,Fe as ea,An as fa,tn as ga,P as ha,Mt as ia,y as ja,la as ka,ve as la,S as ma,_ as na,H as oa,Be as pa,je as qa,bi as ra,de as sa,Z as ta,A as ua,wt as va,dt as wa,Jt as xa,At as ya,Ae as za,xe as Aa,Pt as Ba,E as Ca,te as Da,ie as Ea,$i as Fa,DQ as Ga,rr as Ha,Sr as Ia,or as Ja,Et as Ka,_r as La,xn as Ma,bd as Na,P_ as Oa,L_ as Pa,T as Qa,O as Ra,nt as Sa,Hm as Ta,nn as Ua,ct as Va,xi as Wa,DA as Xa,It as Ya,be as Za,hc as _a,jm as $a,rk as ab,ok as bb,Qa as cb,vt as db,Uke as eb,lk as fb,sk as gb,zke as hb,Gke as ib,Q_ as jb,un as kb,v3e as lb,Um as mb,z as nb,m5 as ob,Qk as pb,bSe as qb,f5 as rb,NSe as sb,FSe as tb,Vu as ub,t0 as vb,Kk as wb,DSe as xb,wSe as yb,rn as zb,Jk as Ab,Odt as Bb,Vdt as Cb,Pdt as Db,Ldt as Eb,Rdt as Fb,Hdt as Gb,Bdt as Hb,jdt as Ib,Zdt as Jb,$dt as Kb,Udt as Lb,zdt as Mb,Gdt as Nb,Wdt as Ob,qdt as Pb,Qdt as Qb,Ydt as Rb,Kdt as Sb,Jdt as Tb,Xdt as Ub,ect as Vb,tct as Wb,nct as Xb,ict as Yb,act as Zb,rct as _b,oct as $b,lct as ac,sct as bc,dct as cc,cct as dc,uct as ec,mct as fc,pct as gc,hct as hc,fct as ic,gct as jc,vct as kc,kct as lc,yct as mc,Cct as nc,Sct as oc,_ct as pc,bct as qc,Nct as rc,Fct as sc,Dct as tc,wct as uc,Ict as vc,Act as wc,xct as xc,Tct as yc,Ect as zc,Mct as Ac,Oct as Bc,Vct as Cc,Pct as Dc,Lct as Ec,Rct as Fc,Hct as Gc,Bct as Hc,jct as Ic,n0 as Jc,ro as Kc,Os as Lc,Jct as Mc,vT as Nc,kT as Oc,CT as Pc,hee as Qc,a2 as Rc,gut as Sc,Do as Tc,NT as Uc,FT as Vc,Zte as Wc,S5 as Xc,rne as Yc,Sne as Zc,wne as _c,Ca as $c,ET as ad,jne as bd,oo as cd,He as dd,Ur as ed,Ji as fd,y2 as gd,ga as hd,Ui as id,C2 as jd,Spt as kd,Ee as ld,sXe as md,La as nd,H3 as od,Il as pd,wo as qd,Cp as rd,Pi as sd,Ip as td,Ei as ud,Fp as vd,Ot as wd,Ao as xd,Xo as yd,b0 as zd,P2 as Ad,Ti as Bd,Ja as Cd,zi as Dd,Hs as Ed,L2 as Fd,_oe as Gd,Ci as Hd,so as Id,oy as Jd,boe as Kd,co as Ld,dr as Md,Vr as Nd,Pr as Od,yO as Pd,ly as Qd,r8e as Rd,l8e as Sd,Ioe as Td,CO as Ud,Svt as Vd,ms as Wd,Ep as Xd,H2 as Yd,Ac as Zd,cle as _d,Mp as $d,We as ae,Ale as be,Gi as ce,V0 as de,$s as ee,dV as fe,Sy as ge,G2 as he,uV as ie,Zle as je,mV as ke,hV as le,fV as me,$le as ne,GNe as oe,ryt as pe,dyt as qe,cyt as re,uyt as se,ur as te,Aa as ue,Za as ve,ci as we,kn as xe,jn as ye,Zn as ze,Da as Ae,hse as Be,Ua as Ce,Lr as De,wy as Ee,Wi as Fe,Xt as Ge,uo as He,Gu as Ie,j0 as Je,xV as Ke,tl as Le,Iy as Me,Wu as Ne,qu as Oe,Y2 as Pe,OV as Qe,Tse as Re,W6 as Se,zs as Te,Vse as Ue,U0 as Ve,xy as We,Ty as Xe,F4t as Ye,t9e as Ze,Ey as _e,QV as $e,rde as af,lde as bf,sde as cf,ubt as df,YV as ef,Oy as ff,Hp as gf,Vy as hf,mr as if,aN as jf,Ly as kf,Ry as lf,rP as mf,oP as nf,Bp as of,jp as pf,ig as qf,Zp as rf,G0 as sf,pr as tf,fP as uf,vP as vf,kP as wf,Hd as xf,_P as yf,By as zf,NP as Af,FP as Bf,DP as Cf,Fde as Df,Zy as Ef,Uy as Ff,wP as Gf,IP as Hf,AP as If,Gy as Jf,lR as Kf,mR as Lf,gh as Mf,VVe as Nf,wpe as Of,Ipe as Pf,RVe as Qf,jVe as Rf,ePe as Sf,SR as Tf,_R as Uf,NR as Vf,FR as Wf,NPe as Xf,IPe as Yf,wC as Zf,IC as _f,wR as $f,r7 as ag,TR as bg,ER as cg,OR as dg,VR as eg,BRe as fg,WRe as gg,aHe as hg,oHe as ig,dHe as jg,PR as kg,cHe as lg,gHe as mg,kHe as ng,o7 as og,l7 as pg,d7 as qg,jpe as rg,c7 as sg,u7 as tg,m7 as ug,AHe as vg,LR as wg,OHe as xg,RR as yg,p7 as zg,HHe as Ag,ZHe as Bg,$He as Cg,UHe as Dg,zHe as Eg,GHe as Fg,bBe as Gg,DBe as Hg,ABe as Ig,RBe as Jg,WBe as Kg,e1 as Lg,o1e as Mg,IMt as Ng,XR as Og,l1e as Pg,LMt as Qg,$Mt as Rg,d1e as Sg,KBe as Tg,kOt as Ug,_Ot as Vg,JBe as Wg,TOt as Xg,EOt as Yg,MOt as Zg,OOt as _g,VOt as $g,k1e as ah,ROt as bh,$Ot as ch,eje as dh,tje as eh,PVt as fh,tPt as gh};
|
|
6112
|
-
//# sourceMappingURL=chunk-
|
|
6112
|
+
//# sourceMappingURL=chunk-IXECB573.js.map
|