@qaecy/cue-ui 0.0.1 → 0.0.4

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.
Files changed (44) hide show
  1. package/README.md +93 -2
  2. package/card/3rdpartylicenses.txt +443 -0
  3. package/card/index.html +40 -0
  4. package/card/main.js +1 -0
  5. package/card/polyfills.js +1 -0
  6. package/card/poppins-latin-400-normal.woff +0 -0
  7. package/card/poppins-latin-400-normal.woff2 +0 -0
  8. package/card/poppins-latin-ext-400-normal.woff +0 -0
  9. package/card/poppins-latin-ext-400-normal.woff2 +0 -0
  10. package/card/runtime.js +1 -0
  11. package/card/styles.css +1 -0
  12. package/document-list/3rdpartylicenses.txt +723 -0
  13. package/document-list/index.html +549 -0
  14. package/document-list/main.js +1 -0
  15. package/document-list/polyfills.js +1 -0
  16. package/document-list/poppins-latin-400-normal.woff +0 -0
  17. package/document-list/poppins-latin-400-normal.woff2 +0 -0
  18. package/document-list/poppins-latin-ext-400-normal.woff +0 -0
  19. package/document-list/poppins-latin-ext-400-normal.woff2 +0 -0
  20. package/document-list/runtime.js +1 -0
  21. package/document-list/styles.css +1 -0
  22. package/document-viewer/236.js +1 -0
  23. package/document-viewer/336.js +1 -0
  24. package/document-viewer/3rdpartylicenses.txt +50 -68
  25. package/document-viewer/560.js +1 -1
  26. package/document-viewer/741.js +1 -0
  27. package/document-viewer/{160.js → 781.js} +1 -1
  28. package/document-viewer/83.js +1 -1
  29. package/document-viewer/885.js +1 -0
  30. package/document-viewer/common.js +1 -1
  31. package/document-viewer/index.html +595 -29
  32. package/document-viewer/main.js +1 -1
  33. package/logo/index.html +87 -2
  34. package/logo/main.js +1 -1
  35. package/package.json +10 -2
  36. package/project-documents/main.js +1 -1
  37. package/document-viewer/130.js +0 -1
  38. package/document-viewer/241.js +0 -1
  39. package/document-viewer/266.js +0 -1
  40. package/document-viewer/315.js +0 -1
  41. package/document-viewer/734.js +0 -1
  42. package/document-viewer/829.js +0 -1
  43. package/document-viewer/843.js +0 -1
  44. package/document-viewer/888.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[843],{6117(q,N,y){y.d(N,{W:()=>M});var r=y(7705),b=y(7023),v=y(5547);const Y=["contextMenuDirective"],K=[[["","trigger",""]],[["","menu",""]],[["","menu",""]]],F=["[trigger]","[menu]","[menu]"];function k(O,I){1&O&&v.SdG(0,1)}function C(O,I){1&O&&v.SdG(0,2)}let M=(()=>{class O{contextMenuData=(0,r.hFB)({});trigger=(0,r.hFB)("leftclick");positioning=(0,r.hFB)(void 0);contextEnabled=(0,r.hFB)(!0);menuClosed=(0,r.CGW)();contextMenuDirective=(0,r.ebz)("contextMenuDirective",{read:b.Q});onMenuClose(){this.menuClosed.emit()}closeMenu(){const L=this.contextMenuDirective();L&&L.closeContextMenu()}static \u0275fac=function(R){return new(R||O)};static \u0275cmp=v.VBU({type:O,selectors:[["cue-menu"]],viewQuery:function(R,x){1&R&&v.wEZ(x.contextMenuDirective,Y,5,b.Q),2&R&&v.NyB()},inputs:{contextMenuData:[1,"contextMenuData"],trigger:[1,"trigger"],positioning:[1,"positioning"],contextEnabled:[1,"contextEnabled"]},outputs:{menuClosed:"menuClosed"},ngContentSelectors:F,decls:7,vars:5,consts:[["contextMenuDirective",""],["menuTemplate",""],[3,"contextMenuClose","cueContextMenu","contextMenuData","cueContextEnabled","trigger","positioning"]],template:function(R,x){if(1&R&&(v.NAR(K),v.j41(0,"div",2,0),v.bIt("contextMenuClose",function(){return x.onMenuClose()}),v.SdG(2),v.k0s(),v.DNE(3,k,1,0,"ng-template",null,1,v.C5r)(5,C,1,0,"ng-template",null,1,v.C5r)),2&R){const T=v.sdS(4);v.Y8G("cueContextMenu",T)("contextMenuData",x.contextMenuData)("cueContextEnabled",x.contextEnabled())("trigger",x.trigger())("positioning",x.positioning())}},dependencies:[b.Q],styles:["[_nghost-%COMP%]{display:block}"]})}return O})()},63(q,N,y){y.d(N,{hJ:()=>dt,z_:()=>Vt});var r=y(5802),b=y(5547),v=y(1413),Y=y(6494);function F(o,t){return o?t?o.endsWith("/")?t.startsWith("/")?o+t.slice(1):o+t:t.startsWith("/")?o+t:`${o}/${t}`:o:t}function k(o){const t=o.search(/#|\?|$/);return"/"===o[t-1]?o.slice(0,t-1)+o.slice(t):o}function C(o){return o&&"?"!==o[0]?`?${o}`:o}let M=(()=>{class o{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:()=>(0,r.WQX)(I),providedIn:"root"})}return o})();const O=new r.nKC("");let I=(()=>{class o extends M{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??(0,r.WQX)(r.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return F(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+C(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${i}${n}`:i}pushState(e,i,n,s){const l=this.prepareExternalUrl(n+C(s));this._platformLocation.pushState(e,i,l)}replaceState(e,i,n,s){const l=this.prepareExternalUrl(n+C(s));this._platformLocation.replaceState(e,i,l)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||o)(r.KVO(Y.Vw),r.KVO(O,8))};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),T=(()=>{class o{_subject=new v.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function Q(o){if(new RegExp("^(https?:)?//").test(o)){const[,e]=o.split(/\/\/[^\/]+/);return e}return o}(k(V(i))),this._locationStrategy.onPopState(n=>{this._subject.next({url:this.path(!0),pop:!0,state:n.state,type:n.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+C(i))}normalize(e){return o.stripTrailingSlash(function H(o,t){if(!o||!t.startsWith(o))return t;const e=t.substring(o.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,V(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",n=null){this._locationStrategy.pushState(n,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+C(i)),n)}replaceState(e,i="",n=null){this._locationStrategy.replaceState(n,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+C(i)),n)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(n=>n(e,i))}subscribe(e,i,n){return this._subject.subscribe({next:e,error:i??void 0,complete:n??void 0})}static normalizeQueryParams=C;static joinWithSlash=F;static stripTrailingSlash=k;static \u0275fac=function(i){return new(i||o)(r.KVO(M))};static \u0275prov=r.jDH({token:o,factory:()=>function X(){return new T((0,r.KVO)(M))}(),providedIn:"root"})}return o})();function V(o){return o.replace(/\/index.html$/,"")}var W=y(7421),j=y(9867);function z(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Z=y(3293),U=y(8359);function f(o){return null==o?"":"string"==typeof o?o:`${o}px`}var a=y(7523),c=y(6535),u=y(6939);let A;function ft(){if(null==A){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return A=!1,A;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)A=!0;else{const o=Element.prototype.scrollTo;A=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return A}var ut=y(5964),gt=y(3531),_t=y(9752),yt=y(8203);const tt=ft();class mt{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(t,e){this._viewportRuler=t,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=f(-this._previousScrollPosition.left),t.style.top=f(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,n=this._document.body.style,s=i.scrollBehavior||"",l=n.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),tt&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tt&&(i.scrollBehavior=s,n.scrollBehavior=l)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Ct{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe((0,ut.p)(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class G{enable(){}disable(){}attach(){}}function $(o,t){return t.some(e=>o.bottom<e.top||o.top>e.bottom||o.right<e.left||o.left>e.right)}function et(o,t){return t.some(e=>o.top<e.top||o.bottom>e.bottom||o.left<e.left||o.right>e.right)}class wt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();$(e,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let St=(()=>{class o{_injector=(0,r.WQX)(r.zZn);constructor(){}noop=()=>new G;close=e=>function bt(o,t){return new Ct(o.get(c.R),o.get(r.SKi),o.get(c.Xj),t)}(this._injector,e);block=()=>function vt(o){return new mt(o.get(c.Xj),o.get(r.qQL))}(this._injector);reposition=e=>function it(o,t){return new wt(o.get(c.R),o.get(c.Xj),o.get(r.SKi),t)}(this._injector,e);static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();class Pt{positionStrategy;scrollStrategy=new G;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(t){if(t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Ot{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let ot=(()=>{class o{_attachedOverlays=[];_document=(0,r.WQX)(r.qQL);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}canReceiveEvent(e,i,n){return!(n.observers.length<1)&&(!e.eventPredicate||e.eventPredicate(i))}static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),kt=(()=>{class o extends ot{_ngZone=(0,r.WQX)(r.SKi);_renderer=(0,r.WQX)(b._9s).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{const i=this._attachedOverlays;for(let n=i.length-1;n>-1;n--){const s=i[n];if(this.canReceiveEvent(s,e,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=b.xGo(o)))(n||o)}})();static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Et=(()=>{class o extends ot{_platform=(0,r.WQX)(W.O);_ngZone=(0,r.WQX)(r.SKi);_renderer=(0,r.WQX)(b._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){const i=this._document.body,n={capture:!0},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(i,"pointerdown",this._pointerDownListener,n),s.listen(i,"click",this._clickListener,n),s.listen(i,"auxclick",this._clickListener,n),s.listen(i,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=(0,j.Fb)(e)};_clickListener=e=>{const i=(0,j.Fb)(e),n="click"===e.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const s=this._attachedOverlays.slice();for(let l=s.length-1;l>-1;l--){const h=s[l],p=h._outsidePointerEvents;if(h.hasAttached()&&this.canReceiveEvent(h,e,p)){if(nt(h.overlayElement,i)||nt(h.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>p.next(e)):p.next(e)}}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=b.xGo(o)))(n||o)}})();static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function nt(o,t){const e=typeof ShadowRoot<"u"&&ShadowRoot;let i=t;for(;i;){if(i===o)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let st=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=b.VBU({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}\n"],encapsulation:2,changeDetection:0})}return o})(),rt=(()=>{class o{_platform=(0,r.WQX)(W.O);_containerElement;_document=(0,r.WQX)(r.qQL);_styleLoader=(0,r.WQX)(Z.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||z()){const n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<n.length;s++)n[s].remove()}const i=this._document.createElement("div");i.classList.add(e),z()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(st)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();class Rt{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(t,e,i,n){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",n)}detach(){this._ngZone.runOutsideAngular(()=>{const 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()}}function J(o){return o&&1===o.nodeType}class xt{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new v.B;_attachments=new v.B;_detachments=new v.B;_positionStrategy;_scrollStrategy;_locationChanges=U.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new v.B;_outsidePointerEvents=new v.B;_afterNextRenderRef;constructor(t,e,i,n,s,l,h,p,_,d=!1,g,w){this._portalOutlet=t,this._host=e,this._pane=i,this._config=n,this._ngZone=s,this._keyboardDispatcher=l,this._document=h,this._location=p,this._outsideClickDispatcher=_,this._animationsDisabled=d,this._injector=g,this._renderer=w,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(t){if(this._disposed)return null;this._attachHost();const e=this._portalOutlet.attach(t);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,b.mal)(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&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();const t=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){if(this._disposed)return;const 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._completeDetachContent(),this._disposed=!0}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={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...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(){const t=this._config.direction;return t?"string"==typeof t?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;const t=this._pane.style;t.width=f(this._config.width),t.height=f(this._config.height),t.minWidth=f(this._config.minWidth),t.minHeight=f(this._config.minHeight),t.maxWidth=f(this._config.maxWidth),t.maxHeight=f(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachHost(){if(!this._host.parentElement){const t=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;J(t)?t.after(this._host):"parent"===t?.type?t.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch{}}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Rt(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._config.usePopover?this._host.prepend(this._backdropRef.element):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._config.usePopover&&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){const n=(0,a.F)(e||[]).filter(s=>!!s);n.length&&(i?t.classList.add(...n):t.classList.remove(...n))}_detachContentWhenEmpty(){let t=!1;try{this._detachContentAfterRenderRef=(0,b.mal)(()=>{t=!0,this._detachContent()},{injector:this._injector})}catch(e){if(t)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||0===this._pane.children.length)&&(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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){const t=this._scrollStrategy;t?.disable(),t?.detach?.()}}const at="cdk-overlay-connected-position-bounding-box",Dt=/([A-Za-z%]+)$/;class Lt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_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=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new v.B;_resizeSubscription=U.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(at),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)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=this._containerRect,s=[];let l;for(let h of this._preferredPositions){let p=this._getOriginPoint(t,n,h),_=this._getOverlayPoint(p,e,h),d=this._getOverlayFit(_,e,i,h);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(h,p);this._canFitWithFlexibleDimensions(d,_,i)?s.push({position:h,origin:p,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(p,h)}):(!l||l.overlayFit.visibleArea<d.visibleArea)&&(l={overlayFit:d,overlayPoint:_,originPoint:p,position:h,overlayRect:e})}if(s.length){let h=null,p=-1;for(const _ of s){const d=_.boundingBoxRect.width*_.boundingBoxRect.height*(_.position.weight||1);d>p&&(p=d,h=_)}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(l.position,l.originPoint);this._applyPosition(l.position,l.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&B(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(at),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;t?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(t,this._getOriginPoint(this._originRect,this._containerRect,t))):this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(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}withPopoverLocation(t){return this._popoverLocation=t,this}getPopoverInsertionPoint(){return"global"===this._popoverLocation?null:"inline"!==this._popoverLocation?this._popoverLocation:this._origin instanceof b.aKT?this._origin.nativeElement:J(this._origin)?this._origin:null}_getOriginPoint(t,e,i){let n,s;if("center"==i.originX)n=t.left+t.width/2;else{const l=this._isRtl()?t.right:t.left,h=this._isRtl()?t.left:t.right;n="start"==i.originX?l:h}return e.left<0&&(n-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:n,y:s}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=ht(e);let{x:l,y:h}=t,p=this._getOffset(n,"x"),_=this._getOffset(n,"y");p&&(l+=p),_&&(h+=_);let w=0-h,P=h+s.height-i.height,S=this._subtractOverflows(s.width,0-l,l+s.width-i.width),E=this._subtractOverflows(s.height,w,P),pt=S*E;return{visibleArea:pt,isCompletelyWithinViewport:s.width*s.height===pt,fitsInViewportVertically:E===s.height,fitsInViewportHorizontally:S==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,l=lt(this._overlayRef.getConfig().minHeight),h=lt(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=l&&l<=n)&&(t.fitsInViewportHorizontally||null!=h&&h<=s)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=ht(e),s=this._viewportRect,l=Math.max(t.x+n.width-s.width,0),h=Math.max(t.y+n.height-s.height,0),p=Math.max(s.top-i.top-t.y,0),_=Math.max(s.left-i.left-t.x,0);let d=0,g=0;return d=n.width<=s.width?_||-l:t.x<this._getViewportMarginStart()?s.left-i.left-t.x:0,g=n.height<=s.height?p||-h:t.y<this._getViewportMarginTop()?s.top-i.top-t.y:0,this._previousPushAmount={x:d,y:g},{x:t.x+d,y:t.y+g}}_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){const i=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!function At(o,t){return o===t||o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}(this._lastScrollVisibility,i)){const n=new Ot(t,i);this._positionChanges.next(n)}this._lastScrollVisibility=i}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,n=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${n}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,n=this._isRtl();let s,l,h;if("top"===e.overlayY)l=t.y,s=i.height-l+this._getViewportMarginBottom();else if("bottom"===e.overlayY)h=i.height-t.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=i.height-h+this._getViewportMarginTop();else{const P=Math.min(i.bottom-t.y+i.top,t.y),S=this._lastBoundingBoxSize.height;s=2*P,l=t.y-P,s>S&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.y-S/2)}const p="start"===e.overlayX&&!n||"end"===e.overlayX&&n;let d,g,w;if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)w=i.width-t.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),d=t.x-this._getViewportMarginStart();else if(p)g=t.x,d=i.right-t.x-this._getViewportMarginEnd();else{const P=Math.min(i.right-t.x+i.left,t.x),S=this._lastBoundingBoxSize.width;d=2*P,g=t.x-P,d>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=t.x-S/2)}return{top:l,left:g,bottom:h,right:w,width:d,height:s}}_setBoundingBoxStyles(t,e){const 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));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right="auto",n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;n.width=f(i.width),n.height=f(i.height),n.top=f(i.top)||"auto",n.bottom=f(i.bottom)||"auto",n.left=f(i.left)||"auto",n.right=f(i.right)||"auto",n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(n.maxHeight=f(s)),l&&(n.maxWidth=f(l))}this._lastBoundingBoxSize=i,B(this._boundingBox.style,n)}_resetBoundingBoxStyles(){B(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){B(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,l=this._overlayRef.getConfig();if(n){const d=this._viewportRuler.getViewportScrollPosition();B(i,this._getExactOverlayY(e,t,d)),B(i,this._getExactOverlayX(e,t,d))}else i.position="static";let h="",p=this._getOffset(e,"x"),_=this._getOffset(e,"y");p&&(h+=`translateX(${p}px) `),_&&(h+=`translateY(${_}px)`),i.transform=h.trim(),l.maxHeight&&(n?i.maxHeight=f(l.maxHeight):s&&(i.maxHeight="")),l.maxWidth&&(n?i.maxWidth=f(l.maxWidth):s&&(i.maxWidth="")),B(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=f(s.y),n}_getExactOverlayX(t,e,i){let l,n={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),l=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===l?n.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":n.left=f(s.x),n}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(t,i),isOriginOutsideView:$(t,i),isOverlayClipped:et(e,i),isOverlayOutsideView:$(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,n)=>i-Math.max(n,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+t-this._getViewportMarginEnd(),bottom:i.top+e-this._getViewportMarginBottom(),width:t-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,a.F)(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){const t=this._origin;if(t instanceof b.aKT)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const 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}}_getContainerRect(){const t=this._overlayRef.getConfig().usePopover&&"global"!==this._popoverLocation,e=this._overlayContainer.getContainerElement();t&&(e.style.display="block");const i=e.getBoundingClientRect();return t&&(e.style.display=""),i}}function B(o,t){for(let e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o}function lt(o){if("number"!=typeof o&&null!=o){const[t,e]=o.split(Dt);return e&&"px"!==e?null:parseFloat(t)}return o||null}function ht(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const ct="cdk-global-overlay-wrapper";class Tt{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){const 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(ct),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;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:l,maxHeight:h}=i,p=!("100%"!==n&&"100vw"!==n||l&&"100%"!==l&&"100vw"!==l),_=!("100%"!==s&&"100vh"!==s||h&&"100%"!==h&&"100vh"!==h),d=this._xPosition,g=this._xOffset,w="rtl"===this._overlayRef.getConfig().direction;let P="",S="",E="";p?E="flex-start":"center"===d?(E="center",w?S=g:P=g):w?"left"===d||"end"===d?(E="flex-end",P=g):("right"===d||"start"===d)&&(E="flex-start",S=g):"left"===d||"start"===d?(E="flex-start",P=g):("right"===d||"end"===d)&&(E="flex-end",S=g),t.position=this._cssPosition,t.marginLeft=p?"0":P,t.marginTop=_?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=p?"0":S,e.justifyContent=E,e.alignItems=_?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(ct),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Nt=(()=>{class o{_injector=(0,r.WQX)(r.zZn);constructor(){}global(){return function Bt(){return new Tt}()}flexibleConnectedTo(e){return function Mt(o,t){return new Lt(t,o.get(c.Xj),o.get(r.qQL),o.get(W.O),o.get(rt))}(this._injector,e)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();const Ft=new r.nKC("OVERLAY_DEFAULT_CONFIG");let dt=(()=>{class o{scrollStrategies=(0,r.WQX)(St);_positionBuilder=(0,r.WQX)(Nt);_injector=(0,r.WQX)(r.zZn);constructor(){}create(e){return function Xt(o,t){o.get(Z.l).load(st);const e=o.get(rt),i=o.get(r.qQL),n=o.get(gt.g),s=o.get(b.o8S),l=o.get(_t.dS),h=o.get(b.sFG,null,{optional:!0})||o.get(b._9s).createRenderer(null,null),p=new Pt(t),_=o.get(Ft,null,{optional:!0})?.usePopover??!0;p.direction=p.direction||l.value,p.usePopover="showPopover"in i.body&&(t?.usePopover??_);const d=i.createElement("div"),g=i.createElement("div");d.id=n.getId("cdk-overlay-"),d.classList.add("cdk-overlay-pane"),g.appendChild(d),p.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));const w=p.usePopover?p.positionStrategy?.getPopoverInsertionPoint?.():null;return J(w)?w.after(g):"parent"===w?.type?w.element.appendChild(g):e.getContainerElement().appendChild(g),new xt(new u.aI(d,s,o),g,d,p,o.get(r.SKi),o.get(kt),i,o.get(T),o.get(Et),t?.disableAnimations??"NoopAnimations"===o.get(b.bc$,null,{optional:!0}),o.get(r.uvJ),h)}(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Vt=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=b.$C({type:o});static \u0275inj=r.G2t({providers:[dt],imports:[yt.jI,u.jc,c.E9,c.E9]})}return o})()},6939(q,N,y){y.d(N,{A8:()=>H,aI:()=>j,bV:()=>z,jc:()=>U});var k=y(5802),C=y(5547),M=y(7705);class X{_attachedHost=null;attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class H extends X{component;viewContainerRef;injector;projectableNodes;bindings;constructor(a,c,u,m,D){super(),this.component=a,this.viewContainerRef=c,this.injector=u,this.projectableNodes=m,this.bindings=D||null}}class V extends X{templateRef;viewContainerRef;context;injector;constructor(a,c,u,m){super(),this.templateRef=a,this.viewContainerRef=c,this.context=u,this.injector=m}get origin(){return this.templateRef.elementRef}attach(a,c=this.context){return this.context=c,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class Q extends X{element;constructor(a){super(),this.element=a instanceof C.aKT?a.nativeElement:a}}class W{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof H?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof V?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof Q?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class j extends W{outletElement;_appRef;_defaultInjector;constructor(a,c,u){super(),this.outletElement=a,this._appRef=c,this._defaultInjector=u}attachComponentPortal(a){let c;if(a.viewContainerRef){const u=a.injector||a.viewContainerRef.injector,m=u.get(C.Ab1,null,{optional:!0})||void 0;c=a.viewContainerRef.createComponent(a.component,{index:a.viewContainerRef.length,injector:u,ngModuleRef:m,projectableNodes:a.projectableNodes||void 0,bindings:a.bindings||void 0}),this.setDisposeFn(()=>c.destroy())}else{const u=this._appRef,m=a.injector||this._defaultInjector||k.zZn.NULL,D=m.get(k.uvJ,u.injector);c=(0,M.a0P)(a.component,{elementInjector:m,environmentInjector:D,projectableNodes:a.projectableNodes||void 0,bindings:a.bindings||void 0}),u.attachView(c.hostView),this.setDisposeFn(()=>{u.viewCount>0&&u.detachView(c.hostView),c.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(c)),this._attachedPortal=a,c}attachTemplatePortal(a){let c=a.viewContainerRef,u=c.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return u.rootNodes.forEach(m=>this.outletElement.appendChild(m)),u.detectChanges(),this.setDisposeFn(()=>{let m=c.indexOf(u);-1!==m&&c.remove(m)}),this._attachedPortal=a,u}attachDomPortal=a=>{const c=a.element,u=this.outletElement.ownerDocument.createComment("dom-portal");c.parentNode.insertBefore(u,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(c,u)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let z=(()=>{class f extends V{constructor(){super((0,k.WQX)(C.C4Q),(0,k.WQX)(C.c1b))}static \u0275fac=function(u){return new(u||f)};static \u0275dir=C.FsC({type:f,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[C.Vt3]})}return f})(),U=(()=>{class f{static \u0275fac=function(u){return new(u||f)};static \u0275mod=C.$C({type:f});static \u0275inj=k.G2t({})}return f})()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[888],{7888(I,v,u){u.d(v,{l:()=>V});var i=u(7705),g=u(2271),s=u(5802),_=u(4015),b=u(9417),m=u(2245),M=u(5381),h=u(29),e=u(5547);const C=["inputField"];function P(l,r){1&l&&e.EFF(0,"*")}function O(l,r){if(1&l&&(e.j41(0,"span",4),e.nrm(1,"cue-svg-icon",7),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.Y8G("name",t.icon())}}function z(l,r){if(1&l&&(e.j41(0,"cue-typography",6),e.EFF(1),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.JRh(t.error())}}let d=(()=>{class l{value=(0,i.geq)("");info=(0,i.hFB)("");label=(0,i.hFB)("");placeholder=(0,i.hFB)("");error=(0,i.hFB)(void 0);required=(0,i.hFB)(!1);icon=(0,i.hFB)();type=(0,i.hFB)("text");size=(0,i.hFB)("m");isFocused=!1;disabled=!1;inputField;onValueChange=(0,s.QZP)(()=>this.valueChange.emit(this.value()));valueChange=(0,i.CGW)();onChange=t=>{};onTouched=()=>{};writeValue(t){this.value.set(t||"")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}emitValue(t){const o=t.target.value;this.value.set(o),this.onChange(o)}focus(){this.isFocused=!0,this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1,this.onTouched()}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=e.VBU({type:l,selectors:[["cue-input"]],viewQuery:function(o,n){if(1&o&&e.GBs(C,5),2&o){let a;e.mGM(a=e.lsd())&&(n.inputField=a.first)}},inputs:{value:[1,"value"],info:[1,"info"],label:[1,"label"],placeholder:[1,"placeholder"],error:[1,"error"],required:[1,"required"],icon:[1,"icon"],type:[1,"type"],size:[1,"size"]},outputs:{value:"valueChange",valueChange:"valueChange"},features:[e.Jv_([{provide:b.kq,useExisting:(0,s.Rfq)(()=>l),multi:!0}])],decls:9,vars:13,consts:[["inputField",""],[1,"form-field"],["size","s",1,"label",3,"click","info"],["align","center","gap","s"],[2,"height","12px"],[1,"input",3,"keyup","input","focus","blur","type","value","placeholder","disabled"],["size","s",1,"error-text"],[3,"name"]],template:function(o,n){if(1&o){const a=e.RV6();e.j41(0,"div",1)(1,"cue-typography",2),e.bIt("click",function(){s.eBV(a);const c=e.sdS(7);return s.Njj(c.focus())}),e.EFF(2),e.nVh(3,P,1,0),e.k0s(),e.j41(4,"cue-flexcontainer",3),e.nVh(5,O,2,1,"span",4),e.j41(6,"input",5,0),e.bIt("keyup",function(c){return n.emitValue(c)})("input",function(c){return n.emitValue(c)})("focus",function(){return n.isFocused=!0})("blur",function(){return n.onBlur()}),e.k0s()(),e.nVh(8,z,2,1,"cue-typography",6),e.k0s()}2&o&&(e.HbH("size-"+n.size()),e.AVh("focused",n.isFocused||n.value()||n.placeholder()),e.R7$(),e.Y8G("info",n.info()),e.R7$(),e.SpI(" ",n.label()," "),e.R7$(),e.vxM(n.required()?3:-1),e.R7$(2),e.vxM(n.icon()?5:-1),e.R7$(),e.Y8G("type",n.type())("value",n.value())("placeholder",n.placeholder())("disabled",n.disabled),e.R7$(2),e.vxM(n.error()?8:-1))},dependencies:[m.o,M.n,h.A],styles:['.form-field[_ngcontent-%COMP%]{position:relative}.input[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;border-bottom:1px solid var(--cue-input-border-bottom-color);background:none;outline:none;font-family:var(--cue-font-family)}.size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.input[_ngcontent-%COMP%]::placeholder{color:var(--cue-input-placeholder-color);font-family:var(--cue-font-family);opacity:.5}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:hover, .input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0px 1000px transparent inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;-webkit-text-fill-color:var(--cue-input-value-color)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;transition:all .2s ease;cursor:text}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}.underline[_ngcontent-%COMP%]{content:"";position:absolute;bottom:0;left:0;height:1px;width:0;background-color:var(--cue-input-border-bottom-color);transition:width .3s ease}.form-field.focused[_ngcontent-%COMP%] .underline[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}'],changeDetection:0})}return l})();var f=u(6117),F=u(356),y=u(6279);function w(l,r){if(1&l){const t=e.RV6();e.j41(0,"cue-typography",11),e.bIt("click",function(){s.eBV(t);const n=e.XpG();return s.Njj(!n.disabled()&&n.openMenu())}),e.EFF(1),e.k0s()}if(2&l){const t=e.XpG();e.Y8G("info",t.info()),e.R7$(),e.JRh(t.label())}}function x(l,r){if(1&l&&e.nrm(0,"cue-svg-icon",12),2&l){const t=e.XpG();e.xc7("--cue-icon-width",t.iconSize()),e.Y8G("name",r)}}function k(l,r){if(1&l){const t=e.RV6();e.j41(0,"cue-input",13),e.nI1(1,"transloco"),e.bIt("valueChange",function(n){s.eBV(t);const a=e.XpG();return s.Njj(a.onFilterValueChange(n))}),e.k0s(),e.nrm(2,"div",14)}if(2&l){const t=e.XpG();e.Y8G("value",t.filterValue())("placeholder",e.bMT(1,2,"components.input.select.placeholderFilter"))}}function D(l,r){1&l&&e.nrm(0,"cue-svg-icon",16),2&l&&e.Y8G("name",r)}function N(l,r){if(1&l){const t=e.RV6();e.j41(0,"cue-menu-item",15),e.bIt("click",function(n){const a=s.eBV(t).$implicit,p=e.XpG();return s.Njj(p.handleSelect(n,a.value))})("mousedown",function(n){s.eBV(t);const a=e.XpG();return s.Njj(a.preventEventBubbling(n))}),e.nVh(1,D,1,1,"cue-svg-icon",16),e.EFF(2),e.k0s()}if(2&l){let t;const o=r.$implicit,n=e.XpG();e.Y8G("size",n.size())("selected",o.value===n.value()),e.R7$(),e.vxM((t=n.icon(o.value))?1:-1,t),e.R7$(),e.SpI(" ",o.label," ")}}function S(l,r){if(1&l&&(e.j41(0,"cue-typography",10),e.EFF(1),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.JRh(t.error())}}let V=(()=>{class l{label=(0,i.hFB)("");info=(0,i.hFB)("");placeholder=(0,i.hFB)(void 0);menuPosition=(0,i.hFB)(void 0);options=(0,i.hFB)();labelMap=(0,i.hFB)({});iconMap=(0,i.hFB)({});value=(0,i.geq)();valueChange=(0,i.CGW)();size=(0,i.hFB)("m");disabled=(0,i.hFB)(!1);showFilter=(0,i.hFB)(!1);filterChange=(0,i.CGW)();remoteFilter=(0,i.hFB)(!1);underline=(0,i.hFB)(!0);error=(0,i.hFB)(void 0);maxHeight=(0,i.hFB)(void 0);optionLabels=(0,g.EW)(()=>{const t=this.labelMap();return(this.options()??[]).map(n=>t[n]?t[n]:n.toString())});_defaultPlaceholder=(0,_.Xx)("components.input.select.placeholderSelect");_placeholder=(0,g.EW)(()=>this.placeholder()??this._defaultPlaceholder());valueLabel=(0,g.EW)(()=>{const t=this.labelMap(),o=this.value();return void 0===o?"":t[o]?t[o]:o.toString()});menuIsOpen=(0,s.vPA)(void 0);filterInputEl=(0,i.ebz)(d);menuEl=(0,i.ebz)(f.W);filterValue=(0,s.vPA)("");_filterDebounce;optionsFiltered=(0,g.EW)(()=>{if(this.remoteFilter()){const t=this.labelMap();return(this.options()??[]).map(o=>({value:o,label:t[o]??o.toString()}))}return this._appendFilter(this.options()??[],this.filterValue(),this.labelMap())});iconSize=(0,g.EW)(()=>`var(--cue-input-${this.size()}-font-size)`);handleSelect(t,o){const a=t.target.closest("cue-select");if(null!==a?.closest(".ag-filter-wrapper")||null!==a?.closest(".ag-popup")||null!==a?.closest(".ag-filter-apply-panel")||null!==a?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper")){t.stopPropagation();const c=this.menuEl();c&&c.closeMenu()}this.value.set(o),this.valueChange.emit(o)}preventEventBubbling(t){const n=t.target.closest("cue-select");(null!==n?.closest(".ag-filter-wrapper")||null!==n?.closest(".ag-popup")||null!==n?.closest(".ag-filter-apply-panel")||null!==n?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper"))&&(t.stopPropagation(),t.stopImmediatePropagation())}onMenuClosed(){this.menuIsOpen.set(!1)}openMenu(){this.menuIsOpen.set(!0),this.filterValue.set(""),this.showFilter()&&(clearTimeout(this._filterDebounce),this.filterChange.emit(""))}onFilterValueChange(t){this.filterValue.set(t),this.showFilter()&&(clearTimeout(this._filterDebounce),""===t?this.filterChange.emit(""):this._filterDebounce=setTimeout(()=>this.filterChange.emit(t),300))}handleSpace(t){t.preventDefault(),this.openMenu()}constructor(){(0,s.QZP)(()=>{this.showFilter()&&this.menuIsOpen()&&setTimeout(()=>this.filterInputEl()?.focus(),20)})}icon(t){if(void 0!==t)return this.iconMap()[t]}_appendFilter(t,o,n){const a=o.toLowerCase();return(""===o?t:t.filter(c=>(n[c]?n[c].toLowerCase():c.toString().toLowerCase()).startsWith(a))).map(c=>({value:c,label:n[c]?n[c]:c.toString()}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=e.VBU({type:l,selectors:[["cue-select"]],viewQuery:function(o,n){1&o&&e.wEZ(n.filterInputEl,d,5)(n.menuEl,f.W,5),2&o&&e.NyB(2)},inputs:{label:[1,"label"],info:[1,"info"],placeholder:[1,"placeholder"],menuPosition:[1,"menuPosition"],options:[1,"options"],labelMap:[1,"labelMap"],iconMap:[1,"iconMap"],value:[1,"value"],size:[1,"size"],disabled:[1,"disabled"],showFilter:[1,"showFilter"],remoteFilter:[1,"remoteFilter"],underline:[1,"underline"],error:[1,"error"],maxHeight:[1,"maxHeight"]},outputs:{value:"valueChange",valueChange:"valueChange",filterChange:"filterChange"},decls:14,vars:20,consts:[["trigger",""],[1,"form-field"],["size","s",1,"label",3,"info"],[3,"menuClosed","positioning","contextEnabled"],["trigger","","tabindex","0",1,"select-trigger",3,"click","keydown.enter","keydown.space"],["align","center","gap","s",1,"select-value"],[3,"--cue-icon-width","name"],["name","arrow-dropdown",1,"select-arrow"],["menu","",1,"menu",3,"maxHeight"],[3,"size","selected"],["size","s",1,"error-text"],["size","s",1,"label",3,"click","info"],[3,"name"],[3,"valueChange","value","placeholder"],[2,"height","6px"],[3,"click","mousedown","size","selected"],["before","",3,"name"]],template:function(o,n){if(1&o&&(e.j41(0,"div",1),e.nVh(1,w,2,2,"cue-typography",2),e.j41(2,"cue-menu",3),e.bIt("menuClosed",function(){return n.onMenuClosed()}),e.j41(3,"div",4,0),e.bIt("click",function(){return!n.disabled()&&n.openMenu()})("keydown.enter",function(){return!n.disabled()&&n.openMenu()})("keydown.space",function(p){return!n.disabled()&&n.handleSpace(p)}),e.j41(5,"cue-flexcontainer",5),e.nVh(6,x,1,3,"cue-svg-icon",6),e.EFF(7),e.k0s(),e.nrm(8,"cue-svg-icon",7),e.k0s(),e.j41(9,"cue-menu-wrap",8),e.nVh(10,k,3,4),e.Z7z(11,N,3,4,"cue-menu-item",9,e.Vm6),e.k0s()(),e.nVh(13,S,2,1,"cue-typography",10),e.k0s()),2&o){let a;e.HbH("size-"+n.size()),e.AVh("focused",!!n.value()||""!==n.placeholder())("menu-open",n.menuIsOpen())("underline",n.underline())("no-label",!n.label()),e.R7$(),e.vxM(n.label()?1:-1),e.R7$(),e.Y8G("positioning",n.menuPosition())("contextEnabled",!n.disabled()),e.R7$(),e.AVh("disabled",n.disabled()),e.R7$(3),e.vxM((a=n.icon(n.value()))?6:-1,a),e.R7$(),e.SpI(" ",n.value()?n.valueLabel():n._placeholder()),e.R7$(2),e.Y8G("maxHeight",n.maxHeight()),e.R7$(),e.vxM(n.showFilter()?10:-1),e.R7$(),e.Dyx(n.optionsFiltered()),e.R7$(2),e.vxM(n.error()?13:-1)}},dependencies:[f.W,F.M,y.D,m.o,d,h.A,M.n,_.Kj],styles:["[_nghost-%COMP%]{display:block;width:100%}.form-field[_ngcontent-%COMP%]{position:relative;width:100%}.select-trigger[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;background:none;outline:none;font-family:var(--cue-font-family);display:flex;justify-content:space-between;align-items:center;cursor:pointer;box-sizing:border-box}.form-field.underline[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{border-bottom:1px solid var(--cue-input-border-bottom-color)}.form-field[_ngcontent-%COMP%]:not(.underline) .select-trigger[_ngcontent-%COMP%]{align-items:center;padding-top:2px;padding-bottom:1px}.select-trigger.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}.select-trigger[_ngcontent-%COMP%]:focus{outline:none}.size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.form-field.no-label.size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding-top:0}.select-value[_ngcontent-%COMP%]{color:var(--cue-input-value-color);font-family:var(--cue-font-family);flex:1;text-align:left}.form-field[_ngcontent-%COMP%]:not(.focused) .select-value[_ngcontent-%COMP%]{color:var(--cue-input-placeholder-color)}.select-arrow[_ngcontent-%COMP%]{color:var(--cue-input-value-color);margin-left:8px;display:inline-block;transition:transform .2s ease}.form-field.menu-open[_ngcontent-%COMP%] .select-arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;transition:all .2s ease;cursor:pointer}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}cue-menu[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}"],changeDetection:0})}return l})()}}]);