@qaecy/cue-ui 0.0.15 → 0.0.17
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/236.js +1 -0
- package/269.js +1 -1
- package/284.js +1 -0
- package/371.js +1 -0
- package/418.js +1 -1
- package/{160.js → 419.js} +1 -1
- package/443.js +1 -0
- package/560.js +1 -1
- package/570.js +1 -0
- package/598.js +1 -1
- package/60.js +1 -0
- package/710.js +1 -1
- package/741.js +1 -1
- package/774.js +1 -0
- package/83.js +1 -0
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -0
- package/141.js +0 -1
- package/21.js +0 -1
- package/266.js +0 -1
- package/28.js +0 -1
- package/280.js +0 -1
- package/378.js +0 -1
- package/63.js +0 -1
- package/734.js +0 -1
- package/754.js +0 -1
- package/769.js +0 -1
- package/927.js +0 -1
- package/941.js +0 -1
package/378.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[378],{5448(G,B,_){_.d(B,{L:()=>X});var r=_(7705),m=_(2245),g=_(5547);const F=["*"];let X=(()=>{class k{fontSize=(0,r.hFB)("m");italic=(0,r.hFB)(!1);noWrap=(0,r.hFB)(!0);static \u0275fac=function(O){return new(O||k)};static \u0275cmp=g.VBU({type:k,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:F,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(O,w){1&O&&(g.NAR(),g.j41(0,"div")(1,"cue-typography",0),g.SdG(2),g.k0s()()),2&O&&(g.R7$(),g.Y8G("size",w.fontSize())("italic",w.italic())("noWrap",w.noWrap()))},dependencies:[m.o],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return k})()},6117(G,B,_){_.d(B,{W:()=>O});var r=_(7705),m=_(7023),g=_(5547);const F=["contextMenuDirective"],X=[[["","trigger",""]],[["","menu",""]],[["","menu",""]]],k=["[trigger]","[menu]","[menu]"];function R(w,H){1&w&&g.SdG(0,1)}function C(w,H){1&w&&g.SdG(0,2)}let O=(()=>{class w{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:m.Q});onMenuClose(){this.menuClosed.emit()}closeMenu(){const A=this.contextMenuDirective();A&&A.closeContextMenu()}static \u0275fac=function(D){return new(D||w)};static \u0275cmp=g.VBU({type:w,selectors:[["cue-menu"]],viewQuery:function(D,M){1&D&&g.wEZ(M.contextMenuDirective,F,5,m.Q),2&D&&g.NyB()},inputs:{contextMenuData:[1,"contextMenuData"],trigger:[1,"trigger"],positioning:[1,"positioning"],contextEnabled:[1,"contextEnabled"]},outputs:{menuClosed:"menuClosed"},ngContentSelectors:k,decls:7,vars:5,consts:[["contextMenuDirective",""],["menuTemplate",""],[3,"contextMenuClose","cueContextMenu","contextMenuData","cueContextEnabled","trigger","positioning"]],template:function(D,M){if(1&D&&(g.NAR(X),g.j41(0,"div",2,0),g.bIt("contextMenuClose",function(){return M.onMenuClose()}),g.SdG(2),g.k0s(),g.DNE(3,R,1,0,"ng-template",null,1,g.C5r)(5,C,1,0,"ng-template",null,1,g.C5r)),2&D){const V=g.sdS(4);g.Y8G("cueContextMenu",V)("contextMenuData",M.contextMenuData)("cueContextEnabled",M.contextEnabled())("trigger",M.trigger())("positioning",M.positioning())}},dependencies:[m.Q],styles:["[_nghost-%COMP%]{display:block}"]})}return w})()},63(G,B,_){_.d(B,{hJ:()=>dt,z_:()=>Xt});var r=_(5802),m=_(5547),g=_(1413),F=_(6494);function k(o,t){return o?t?o.endsWith("/")?t.startsWith("/")?o+t.slice(1):o+t:t.startsWith("/")?o+t:`${o}/${t}`:o:t}function R(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 O=(()=>{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)(H),providedIn:"root"})}return o})();const w=new r.nKC("");let H=(()=>{class o extends O{_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 k(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(F.Vw),r.KVO(w,8))};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),V=(()=>{class o{_subject=new g.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}(R(I(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 j(o,t){if(!o||!t.startsWith(o))return t;const e=t.substring(o.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,I(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=k;static stripTrailingSlash=R;static \u0275fac=function(i){return new(i||o)(r.KVO(O))};static \u0275prov=r.jDH({token:o,factory:()=>function W(){return new V((0,r.KVO)(O))}(),providedIn:"root"})}return o})();function I(o){return o.replace(/\/index.html$/,"")}var Y=_(7421),z=_(9867);function U(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Z=_(3293),K=_(8359);function f(o){return null==o?"":"string"==typeof o?o:`${o}px`}var a=_(7523),c=_(6535),u=_(6939);let T;function ft(){if(null==T){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return T=!1,T;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)T=!0;else{const o=Element.prototype.scrollTo;T=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return T}var ut=_(5964),gt=_(3531),_t=_(9752),yt=_(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 ${enable(){}disable(){}attach(){}}function J(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();J(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 $;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 $;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})(),Et=(()=>{class o extends ot{_ngZone=(0,r.WQX)(r.SKi);_renderer=(0,r.WQX)(m._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=m.xGo(o)))(n||o)}})();static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),kt=(()=>{class o extends ot{_platform=(0,r.WQX)(Y.O);_ngZone=(0,r.WQX)(r.SKi);_renderer=(0,r.WQX)(m._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,z.Fb)(e)};_clickListener=e=>{const i=(0,z.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=m.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=m.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)(Y.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||U()){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),U()?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 q(o){return o&&1===o.nodeType}class xt{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new g.B;_attachments=new g.B;_detachments=new g.B;_positionStrategy;_scrollStrategy;_locationChanges=K.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new g.B;_outsidePointerEvents=new g.B;_afterNextRenderRef;constructor(t,e,i,n,s,l,h,p,v,d=!1,y,S){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=v,this._animationsDisabled=d,this._injector=y,this._renderer=S,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,m.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;q(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,m.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 g.B;_resizeSubscription=K.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),v=this._getOverlayPoint(p,e,h),d=this._getOverlayFit(v,e,i,h);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(h,p);this._canFitWithFlexibleDimensions(d,v,i)?s.push({position:h,origin:p,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(p,h)}):(!l||l.overlayFit.visibleArea<d.visibleArea)&&(l={overlayFit:d,overlayPoint:v,originPoint:p,position:h,overlayRect:e})}if(s.length){let h=null,p=-1;for(const v of s){const d=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);d>p&&(p=d,h=v)}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&&N(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 m.aKT?this._origin.nativeElement:q(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"),v=this._getOffset(n,"y");p&&(l+=p),v&&(h+=v);let S=0-h,E=h+s.height-i.height,P=this._subtractOverflows(s.width,0-l,l+s.width-i.width),x=this._subtractOverflows(s.height,S,E),pt=P*x;return{visibleArea:pt,isCompletelyWithinViewport:s.width*s.height===pt,fitsInViewportVertically:x===s.height,fitsInViewportHorizontally:P==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),v=Math.max(s.left-i.left-t.x,0);let d=0,y=0;return d=n.width<=s.width?v||-l:t.x<this._getViewportMarginStart()?s.left-i.left-t.x:0,y=n.height<=s.height?p||-h:t.y<this._getViewportMarginTop()?s.top-i.top-t.y:0,this._previousPushAmount={x:d,y},{x:t.x+d,y:t.y+y}}_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 Bt(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 E=Math.min(i.bottom-t.y+i.top,t.y),P=this._lastBoundingBoxSize.height;s=2*E,l=t.y-E,s>P&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.y-P/2)}const p="start"===e.overlayX&&!n||"end"===e.overlayX&&n;let d,y,S;if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)S=i.width-t.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),d=t.x-this._getViewportMarginStart();else if(p)y=t.x,d=i.right-t.x-this._getViewportMarginEnd();else{const E=Math.min(i.right-t.x+i.left,t.x),P=this._lastBoundingBoxSize.width;d=2*E,y=t.x-E,d>P&&!this._isInitialRender&&!this._growAfterOpen&&(y=t.x-P/2)}return{top:l,left:y,bottom:h,right:S,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,N(this._boundingBox.style,n)}_resetBoundingBoxStyles(){N(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){N(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();N(i,this._getExactOverlayY(e,t,d)),N(i,this._getExactOverlayX(e,t,d))}else i.position="static";let h="",p=this._getOffset(e,"x"),v=this._getOffset(e,"y");p&&(h+=`translateX(${p}px) `),v&&(h+=`translateY(${v}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="")),N(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:J(t,i),isOverlayClipped:et(e,i),isOverlayOutsideView:J(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 m.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 N(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),v=!("100%"!==s&&"100vh"!==s||h&&"100%"!==h&&"100vh"!==h),d=this._xPosition,y=this._xOffset,S="rtl"===this._overlayRef.getConfig().direction;let E="",P="",x="";p?x="flex-start":"center"===d?(x="center",S?P=y:E=y):S?"left"===d||"end"===d?(x="flex-end",E=y):("right"===d||"start"===d)&&(x="flex-start",P=y):"left"===d||"start"===d?(x="flex-start",E=y):("right"===d||"end"===d)&&(x="flex-end",P=y),t.position=this._cssPosition,t.marginLeft=p?"0":E,t.marginTop=v?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=p?"0":P,e.justifyContent=x,e.alignItems=v?"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 At(){return new Tt}()}flexibleConnectedTo(e){return function Mt(o,t){return new Lt(t,o.get(c.Xj),o.get(r.qQL),o.get(Y.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 Vt(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(m.o8S),l=o.get(_t.dS),h=o.get(m.sFG,null,{optional:!0})||o.get(m._9s).createRenderer(null,null),p=new Pt(t),v=o.get(Ft,null,{optional:!0})?.usePopover??!0;p.direction=p.direction||l.value,p.usePopover="showPopover"in i.body&&(t?.usePopover??v);const d=i.createElement("div"),y=i.createElement("div");d.id=n.getId("cdk-overlay-"),d.classList.add("cdk-overlay-pane"),y.appendChild(d),p.usePopover&&(y.setAttribute("popover","manual"),y.classList.add("cdk-overlay-popover"));const S=p.usePopover?p.positionStrategy?.getPopoverInsertionPoint?.():null;return q(S)?S.after(y):"parent"===S?.type?S.element.appendChild(y):e.getContainerElement().appendChild(y),new xt(new u.aI(d,s,o),y,d,p,o.get(r.SKi),o.get(Et),i,o.get(V),o.get(kt),t?.disableAnimations??"NoopAnimations"===o.get(m.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})(),Xt=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=m.$C({type:o});static \u0275inj=r.G2t({providers:[dt],imports:[yt.jI,u.jc,c.E9,c.E9]})}return o})()},6939(G,B,_){_.d(B,{A8:()=>j,aI:()=>z,bV:()=>U,jc:()=>K});var R=_(5802),C=_(5547),O=_(7705);class W{_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 j extends W{component;viewContainerRef;injector;projectableNodes;bindings;constructor(a,c,u,b,L){super(),this.component=a,this.viewContainerRef=c,this.injector=u,this.projectableNodes=b,this.bindings=L||null}}class I extends W{templateRef;viewContainerRef;context;injector;constructor(a,c,u,b){super(),this.templateRef=a,this.viewContainerRef=c,this.context=u,this.injector=b}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 W{element;constructor(a){super(),this.element=a instanceof C.aKT?a.nativeElement:a}}class Y{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof j?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof I?(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 z extends Y{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,b=u.get(C.Ab1,null,{optional:!0})||void 0;c=a.viewContainerRef.createComponent(a.component,{index:a.viewContainerRef.length,injector:u,ngModuleRef:b,projectableNodes:a.projectableNodes||void 0,bindings:a.bindings||void 0}),this.setDisposeFn(()=>c.destroy())}else{const u=this._appRef,b=a.injector||this._defaultInjector||R.zZn.NULL,L=b.get(R.uvJ,u.injector);c=(0,O.a0P)(a.component,{elementInjector:b,environmentInjector:L,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(b=>this.outletElement.appendChild(b)),u.detectChanges(),this.setDisposeFn(()=>{let b=c.indexOf(u);-1!==b&&c.remove(b)}),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 U=(()=>{class f extends I{constructor(){super((0,R.WQX)(C.C4Q),(0,R.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})(),K=(()=>{class f{static \u0275fac=function(u){return new(u||f)};static \u0275mod=C.$C({type:f});static \u0275inj=R.G2t({})}return f})()}}]);
|
package/63.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[63],{8957(I,z,c){c.d(z,{p:()=>e});var i=c(7705),p=c(5802),M=c(9417),b=c(2245),C=c(5381),h=c(29),t=c(5547);const E=["inputField"];function D(g,O){1&g&&t.EFF(0,"*")}function F(g,O){if(1&g&&(t.j41(0,"span",4),t.nrm(1,"cue-svg-icon",7),t.k0s()),2&g){const r=t.XpG();t.R7$(),t.Y8G("name",r.icon())}}function y(g,O){if(1&g&&(t.j41(0,"cue-typography",6),t.EFF(1),t.k0s()),2&g){const r=t.XpG();t.R7$(),t.JRh(r.error())}}let e=(()=>{class g{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,p.QZP)(()=>this.valueChange.emit(this.value()));valueChange=(0,i.CGW)();onChange=r=>{};onTouched=()=>{};writeValue(r){this.value.set(r||"")}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.disabled=r}emitValue(r){const _=r.target.value;this.value.set(_),this.onChange(_)}focus(){this.isFocused=!0,this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1,this.onTouched()}static \u0275fac=function(_){return new(_||g)};static \u0275cmp=t.VBU({type:g,selectors:[["cue-input"]],viewQuery:function(_,s){if(1&_&&t.GBs(E,5),2&_){let m;t.mGM(m=t.lsd())&&(s.inputField=m.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:[t.Jv_([{provide:M.kq,useExisting:(0,p.Rfq)(()=>g),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(_,s){if(1&_){const m=t.RV6();t.j41(0,"div",1)(1,"cue-typography",2),t.bIt("click",function(){p.eBV(m);const a=t.sdS(7);return p.Njj(a.focus())}),t.EFF(2),t.nVh(3,D,1,0),t.k0s(),t.j41(4,"cue-flexcontainer",3),t.nVh(5,F,2,1,"span",4),t.j41(6,"input",5,0),t.bIt("keyup",function(a){return s.emitValue(a)})("input",function(a){return s.emitValue(a)})("focus",function(){return s.isFocused=!0})("blur",function(){return s.onBlur()}),t.k0s()(),t.nVh(8,y,2,1,"cue-typography",6),t.k0s()}2&_&&(t.HbH("size-"+s.size()),t.AVh("focused",s.isFocused||s.value()||s.placeholder()),t.R7$(),t.Y8G("info",s.info()),t.R7$(),t.SpI(" ",s.label()," "),t.R7$(),t.vxM(s.required()?3:-1),t.R7$(2),t.vxM(s.icon()?5:-1),t.R7$(),t.Y8G("type",s.type())("value",s.value())("placeholder",s.placeholder())("disabled",s.disabled),t.R7$(2),t.vxM(s.error()?8:-1))},dependencies:[b.o,C.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 g})()},2444(I,z,c){c.d(z,{l:()=>v});var i=c(7705),p=c(5802),M=c(2271),b=c(4015),C=c(8957),h=c(6117),t=c(356),E=c(6279),D=c(2245),F=c(29),y=c(5381),e=c(5547);function g(a,f){if(1&a){const o=e.RV6();e.j41(0,"cue-typography",11),e.bIt("click",function(){p.eBV(o);const n=e.XpG();return p.Njj(!n.disabled()&&n.openMenu())}),e.EFF(1),e.k0s()}if(2&a){const o=e.XpG();e.Y8G("info",o.info()),e.R7$(),e.JRh(o.label())}}function O(a,f){if(1&a&&e.nrm(0,"cue-svg-icon",12),2&a){const o=e.XpG();e.xc7("--cue-icon-width",o.iconSize()),e.Y8G("name",f)}}function r(a,f){if(1&a){const o=e.RV6();e.j41(0,"cue-input",13),e.nI1(1,"transloco"),e.bIt("valueChange",function(n){p.eBV(o);const u=e.XpG();return p.Njj(u.onFilterValueChange(n))}),e.k0s(),e.nrm(2,"div",14)}if(2&a){const o=e.XpG();e.Y8G("value",o.filterValue())("placeholder",e.bMT(1,2,"components.input.select.placeholderFilter"))}}function _(a,f){1&a&&e.nrm(0,"cue-svg-icon",16),2&a&&e.Y8G("name",f)}function s(a,f){if(1&a){const o=e.RV6();e.j41(0,"cue-menu-item",15),e.bIt("click",function(n){const u=p.eBV(o).$implicit,P=e.XpG();return p.Njj(P.handleSelect(n,u.value))})("mousedown",function(n){p.eBV(o);const u=e.XpG();return p.Njj(u.preventEventBubbling(n))}),e.nVh(1,_,1,1,"cue-svg-icon",16),e.EFF(2),e.k0s()}if(2&a){let o;const l=f.$implicit,n=e.XpG();e.Y8G("size",n.size())("selected",l.value===n.value()),e.R7$(),e.vxM((o=n.icon(l.value))?1:-1,o),e.R7$(),e.SpI(" ",l.label," ")}}function m(a,f){if(1&a&&(e.j41(0,"cue-typography",10),e.EFF(1),e.k0s()),2&a){const o=e.XpG();e.R7$(),e.JRh(o.error())}}let v=(()=>{class a{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,M.EW)(()=>{const o=this.labelMap();return(this.options()??[]).map(n=>o[n]?o[n]:n.toString())});_defaultPlaceholder=(0,b.Xx)("components.input.select.placeholderSelect");_placeholder=(0,M.EW)(()=>this.placeholder()??this._defaultPlaceholder());valueLabel=(0,M.EW)(()=>{const o=this.labelMap(),l=this.value();return void 0===l?"":o[l]?o[l]:l.toString()});menuIsOpen=(0,p.vPA)(void 0);filterInputEl=(0,i.ebz)(C.p);menuEl=(0,i.ebz)(h.W);filterValue=(0,p.vPA)("");_filterDebounce;optionsFiltered=(0,M.EW)(()=>{if(this.remoteFilter()){const o=this.labelMap();return(this.options()??[]).map(l=>({value:l,label:o[l]??l.toString()}))}return this._appendFilter(this.options()??[],this.filterValue(),this.labelMap())});iconSize=(0,M.EW)(()=>`var(--cue-input-${this.size()}-font-size)`);handleSelect(o,l){const u=o.target.closest("cue-select");if(null!==u?.closest(".ag-filter-wrapper")||null!==u?.closest(".ag-popup")||null!==u?.closest(".ag-filter-apply-panel")||null!==u?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper")){o.stopPropagation();const d=this.menuEl();d&&d.closeMenu()}this.value.set(l),this.valueChange.emit(l)}preventEventBubbling(o){const n=o.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"))&&(o.stopPropagation(),o.stopImmediatePropagation())}onMenuClosed(){this.menuIsOpen.set(!1)}openMenu(){this.menuIsOpen.set(!0),this.filterValue.set(""),this.showFilter()&&(clearTimeout(this._filterDebounce),this.filterChange.emit(""))}onFilterValueChange(o){this.filterValue.set(o),this.showFilter()&&(clearTimeout(this._filterDebounce),""===o?this.filterChange.emit(""):this._filterDebounce=setTimeout(()=>this.filterChange.emit(o),300))}handleSpace(o){o.preventDefault(),this.openMenu()}constructor(){(0,p.QZP)(()=>{this.showFilter()&&this.menuIsOpen()&&setTimeout(()=>this.filterInputEl()?.focus(),20)})}icon(o){if(void 0!==o)return this.iconMap()[o]}_appendFilter(o,l,n){const u=l.toLowerCase();return(""===l?o:o.filter(d=>(n[d]?n[d].toLowerCase():d.toString().toLowerCase()).startsWith(u))).map(d=>({value:d,label:n[d]?n[d]:d.toString()}))}static \u0275fac=function(l){return new(l||a)};static \u0275cmp=e.VBU({type:a,selectors:[["cue-select"]],viewQuery:function(l,n){1&l&&e.wEZ(n.filterInputEl,C.p,5)(n.menuEl,h.W,5),2&l&&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(l,n){if(1&l&&(e.j41(0,"div",1),e.nVh(1,g,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,O,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,r,3,4),e.Z7z(11,s,3,4,"cue-menu-item",9,e.Vm6),e.k0s()(),e.nVh(13,m,2,1,"cue-typography",10),e.k0s()),2&l){let u;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((u=n.icon(n.value()))?6:-1,u),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:[h.W,t.M,E.D,D.o,C.p,F.A,y.n,b.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 a})()}}]);
|
package/734.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[734],{536(x,m,l){l.d(m,{X:()=>S});var a=l(6780),f=l(8359);const _={schedule(d){let n=requestAnimationFrame,u=cancelAnimationFrame;const{delegate:g}=_;g&&(n=g.requestAnimationFrame,u=g.cancelAnimationFrame);const C=n(E=>{u=void 0,d(E)});return new f.yU(()=>u?.(C))},requestAnimationFrame(...d){const{delegate:n}=_;return(n?.requestAnimationFrame||requestAnimationFrame)(...d)},cancelAnimationFrame(...d){const{delegate:n}=_;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...d)},delegate:void 0};var p=l(9687);const S=new class s extends p.q{flush(n){let u;this._active=!0,n?u=n.id:(u=this._scheduled,this._scheduled=void 0);const{actions:g}=this;let C;n=n||g.shift();do{if(C=n.execute(n.state,n.delay))break}while((n=g[0])&&n.id===u&&g.shift());if(this._active=!1,C){for(;(n=g[0])&&n.id===u&&g.shift();)n.unsubscribe();throw C}}}(class h extends a.R{constructor(n,u){super(n,u),this.scheduler=n,this.work=u}requestAsyncId(n,u,g=0){return null!==g&&g>0?super.requestAsyncId(n,u,g):(n.actions.push(this),n._scheduled||(n._scheduled=_.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,u,g=0){var C;if(null!=g?g>0:this.delay>0)return super.recycleAsyncId(n,u,g);const{actions:E}=n;null!=u&&u===n._scheduled&&(null===(C=E[E.length-1])||void 0===C?void 0:C.id)!==u&&(_.cancelAnimationFrame(u),n._scheduled=void 0)}})},7523(x,m,l){function a(f){return Array.isArray(f)?f:[f]}l.d(m,{F:()=>a})},9752(x,m,l){l.d(m,{dS:()=>p});var a=l(5802);const f=new a.nKC("cdk-dir-doc",{providedIn:"root",factory:()=>(0,a.WQX)(a.qQL)}),_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let p=(()=>{class s{get value(){return this.valueSignal()}valueSignal=(0,a.vPA)("ltr");change=new a.bkB;constructor(){const w=(0,a.WQX)(f,{optional:!0});w&&this.valueSignal.set(function h(s){const S=s?.toLowerCase()||"";return"auto"===S&&typeof navigator<"u"&&navigator?.language?_.test(navigator.language)?"rtl":"ltr":"rtl"===S?"rtl":"ltr"}((w.body?w.body.dir:null)||(w.documentElement?w.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(d){return new(d||s)};static \u0275prov=a.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},7384(x,m,l){l.d(m,{OE:()=>f,i8:()=>h});var a=l(5547);function f(p,s=0){return function _(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}(p)?Number(p):2===arguments.length?s:0}function h(p){return p instanceof a.aKT?p.nativeElement:p}},3531(x,m,l){l.d(m,{g:()=>h});var a=l(5802),f=l(5547);const _={};class h{_appId=(0,a.WQX)(f.sZ2);static _infix=`a${Math.floor(1e5*Math.random()).toString()}`;getId(s,S=!1){return"ng"!==this._appId&&(s+=this._appId),_.hasOwnProperty(s)||(_[s]=0),`${s}${S?h._infix+"-":""}${_[s]++}`}static \u0275fac=function(S){return new(S||h)};static \u0275prov=a.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}},7421(x,m,l){l.d(m,{O:()=>p});var a=l(5802),f=l(5547),_=l(177);let h;try{h=typeof Intl<"u"&&Intl.v8BreakIterator}catch{h=!1}let p=(()=>{class s{_platformId=(0,a.WQX)(f.Agw);isBrowser=this._platformId?(0,_.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!h)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(d){return new(d||s)};static \u0275prov=a.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},9867(x,m,l){let a;function _(s){if(function f(){if(null==a){const s=typeof document<"u"?document.head:null;a=!(!s||!s.createShadowRoot&&!s.attachShadow)}return a}()){const S=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&S instanceof ShadowRoot)return S}return null}function p(s){return s.composedPath?s.composedPath()[0]:s.target}l.d(m,{Fb:()=>p,KT:()=>_})},3293(x,m,l){l.d(m,{l:()=>p});var a=l(5802),f=l(7705),_=l(5547);const h=new WeakMap;let p=(()=>{class s{_appRef;_injector=(0,a.WQX)(a.zZn);_environmentInjector=(0,a.WQX)(a.uvJ);load(w){const d=this._appRef=this._appRef||this._injector.get(_.o8S);let n=h.get(d);n||(n={loaders:new Set,refs:[]},h.set(d,n),d.onDestroy(()=>{h.get(d)?.refs.forEach(u=>u.destroy()),h.delete(d)})),n.loaders.has(w)||(n.loaders.add(w),n.refs.push((0,f.a0P)(w,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(d){return new(d||s)};static \u0275prov=a.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},8203(x,m,l){l.d(m,{jI:()=>d});var s=l(5802),S=l(5547);let d=(()=>{class n{static \u0275fac=function(C){return new(C||n)};static \u0275mod=S.$C({type:n});static \u0275inj=s.G2t({})}return n})()},6535(x,m,l){l.d(m,{R:()=>Q,E9:()=>Y,Xj:()=>$});var a=l(5802),f=l(5547),_=l(1413),h=l(7673),p=l(4226),S=(l(536),l(6780));let d,w=1;const n={};function u(o){return o in n&&(delete n[o],!0)}const g={setImmediate(o){const r=w++;return n[r]=!0,d||(d=Promise.resolve()),d.then(()=>u(r)&&o()),r},clearImmediate(o){u(o)}},{setImmediate:E,clearImmediate:A}=g,b={setImmediate(...o){const{delegate:r}=b;return(r?.setImmediate||E)(...o)},clearImmediate(o){const{delegate:r}=b;return(r?.clearImmediate||A)(o)},delegate:void 0};var L=l(9687);new class z extends L.q{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let i;r=r||t.shift();do{if(i=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,i){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw i}}}(class F extends S.R{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=b.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){var i;if(null!=t?t>0:this.delay>0)return super.recycleAsyncId(r,e,t);const{actions:c}=r;null!=e&&(null===(i=c[c.length-1])||void 0===i?void 0:i.id)!==e&&(b.clearImmediate(e),r._scheduled===e&&(r._scheduled=void 0))}});var B=l(3236),P=l(9974),N=l(8750),k=l(4360),j=l(1584);function T(o,r=B.E){return function W(o){return(0,P.N)((r,e)=>{let t=!1,i=null,c=null,v=!1;const D=()=>{if(c?.unsubscribe(),c=null,t){t=!1;const y=i;i=null,e.next(y)}v&&e.complete()},R=()=>{c=null,v&&e.complete()};r.subscribe((0,k._)(e,y=>{t=!0,i=y,c||(0,N.Tg)(o(y)).subscribe(c=(0,k._)(e,D,R))},()=>{v=!0,(!t||!c||c.closed)&&e.complete()}))})}(()=>(0,j.O)(o,r))}var U=l(5964),H=l(7384),O=l(7421),V=l(8203);let Q=(()=>{class o{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(O.O);_renderer=(0,a.WQX)(f._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new _.B;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new p.c(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const i=e>0?this._scrolled.pipe(T(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,h.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,U.p)(c=>!c||i.indexOf(c)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((i,c)=>{this._scrollableContainsElement(c,e)&&t.push(c)}),t}_scrollableContainsElement(e,t){let i=(0,H.i8)(t),c=e.getElementRef().nativeElement;do{if(i==c)return!0}while(i=i.parentElement);return!1}static \u0275fac=function(t){return new(t||o)};static \u0275prov=a.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),$=(()=>{class o{_platform=(0,a.WQX)(O.O);_listeners;_viewportSize=null;_change=new _.B;_document=(0,a.WQX)(a.qQL);constructor(){const e=(0,a.WQX)(a.SKi),t=(0,a.WQX)(f._9s).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){const i=c=>this._change.next(c);this._listeners=[t.listen("window","resize",i),t.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+t,height:i,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),i=e.documentElement,c=i.getBoundingClientRect();return{top:-c.top||e.body?.scrollTop||t.scrollY||i.scrollTop||0,left:-c.left||e.body?.scrollLeft||t.scrollX||i.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(T(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=a.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),I=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=f.$C({type:o});static \u0275inj=a.G2t({})}return o})(),Y=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=f.$C({type:o});static \u0275inj=a.G2t({imports:[V.jI,I,V.jI,I]})}return o})()}}]);
|
package/754.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[754],{7754(O,h,i){i.d(h,{CueDocumentViewer:()=>V});var g=i(467),f=i(7705),a=i(5802),r=i(5547),M=i(9769),P=i(5381),y=i(2245);const E=["viewerHost"];function w(u,d){1&u&&(r.j41(0,"cue-flexcontainer",1)(1,"cue-typography"),r.EFF(2,"Loading\u2026"),r.k0s()())}function x(u,d){if(1&u&&(r.j41(0,"cue-flexcontainer",1)(1,"cue-typography",2),r.EFF(2),r.k0s()()),2&u){const n=r.XpG();r.R7$(2),r.SpI(" ",n.errorMessage()," ")}}const _=new Set([".dxf",".fragments",".pdf",".png",".jpg",".jpeg",".md",".txt",".csv",".xlsx",".xls"]);let V=(()=>{class u{viewerHost;currentViewerRef;cue=(0,f.hFB)(void 0);uuid=(0,f.hFB)(void 0);projectId=(0,f.hFB)(void 0);state=(0,a.vPA)("idle");errorMessage=(0,a.vPA)(null);resolvedUrl=(0,a.vPA)(null);resolvedSuffix=(0,a.vPA)(null);constructor(){(0,a.QZP)(()=>{const n=this.cue(),t=this.uuid(),o=this.projectId();n&&t&&o?this._load(n,t,o):this.state.set("idle")})}_load(n,t,o){var e=this;return(0,g.A)(function*(){if(n&&t&&o){e.state.set("loading"),e.resolvedUrl.set(null),e.resolvedSuffix.set(null),e.errorMessage.set(null),e.viewerHost.clear(),e.currentViewerRef?.destroy(),e.currentViewerRef=void 0;try{const{uuid:s,page:c}=function R(u){const[d,n]=u.split("?"),t=d.trim();let o=null;if(n){const s=new URLSearchParams(n).get("page");if(null!==s){const c=parseInt(s,10);!isNaN(c)&&c>0&&(o=c)}}return{uuid:t,page:o}}(t),l=n.createProjectDocuments(o),p=(yield l.fetchDocumentData([s]))[s];if(!p)throw new Error(`Document '${s}' not found in project '${o}'.`);const U=yield l.fetchAlternativeRepresentations(s),{uuid:I,suffix:m,remoteRelativePath:v}=function C(u,d){const n=[u,...d];for(const t of n)if(_.has(t.suffix))return{uuid:t.id,suffix:t.suffix,remoteRelativePath:t.remoteRelativePath};return{uuid:u.id,suffix:u.suffix}}(p,U),D=v?yield n.storage.getAltRepDownloadUrl(v):yield n.storage.getDownloadUrl(o,I,m);e.resolvedUrl.set(D),e.resolvedSuffix.set(m),yield e._renderViewer(D,m,c),e.state.set("ready")}catch(s){const c=s instanceof Error?s.message:String(s);console.error("[CueDocumentViewerWC] Failed to load document:",c),e.errorMessage.set(c),e.state.set("error")}}else e.state.set("idle")})()}_renderViewer(n,t,o){var e=this;return(0,g.A)(function*(){try{const{DocumentViewer:s}=yield Promise.all([i.e(418),i.e(76),i.e(741)]).then(i.bind(i,1741)),{DocumentViewerSettings:c}=yield i.e(418).then(i.bind(i,3418));e.viewerHost.clear(),e.currentViewerRef?.destroy();const l=new c;null!==o&&(l.pdf.page=String(o)),e.currentViewerRef=e.viewerHost.createComponent(s),e.currentViewerRef.setInput("url",n),e.currentViewerRef.setInput("suffix",t),e.currentViewerRef.setInput("settings",l)}catch(s){throw new Error(`Failed to load viewer component: ${s instanceof Error?s.message:String(s)}`)}})()}static \u0275fac=function(t){return new(t||u)};static \u0275cmp=r.VBU({type:u,selectors:[["cue-document-viewer-wc"]],viewQuery:function(t,o){if(1&t&&r.GBs(E,7,r.c1b),2&t){let e;r.mGM(e=r.lsd())&&(o.viewerHost=e.first)}},inputs:{cue:[1,"cue"],uuid:[1,"uuid"],projectId:[1,"projectId"]},decls:4,vars:1,consts:[["viewerHost",""],["direction","column","align","center","justify","center",2,"height","100%","width","100%"],[2,"color","#c44","font-size","13px"]],template:function(t,o){1&t&&(r.nVh(0,w,3,0,"cue-flexcontainer",1)(1,x,3,1,"cue-flexcontainer",1),r.eu8(2,null,0)),2&t&&r.vxM("loading"===o.state()?0:"error"===o.state()?1:-1)},dependencies:[M.MD,P.n,y.o],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return u})()}}]);
|
package/769.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[769],{9769(jt,Oe,T){T.d(Oe,{B3:()=>Be,MD:()=>Kt,T3:()=>we});var P=T(7705),c=T(5802),i=T(5547);T(2271);let Be=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){const[r,s]=t.split("."),o=-1===r.indexOf("-")?void 0:i.czy.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(i.rXU(i.aKT),i.rXU(P.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),we=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=(0,c.WQX)(c.zZn);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this._getInjector()})}}_getInjector(){return"outlet"===this.ngTemplateOutletInjector?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,n,r),get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return e})(),Kt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=i.$C({type:e});static \u0275inj=c.G2t({})}return e})()}}]);
|
package/927.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[927],{5187(E,N,m){"use strict";m.d(N,{Card:()=>k});var D=m(7705),l=m(2271),r=m(5970),d=m(5547);const g=["*"];let k=(()=>{class F{style=(0,D.hFB)("");variant=(0,D.hFB)("default");shadow=(0,D.hFB)(!1);padded=(0,D.hFB)(!0);scrollable=(0,D.hFB)(!1);maxHeight=(0,D.hFB)(void 0);maxContentHeight=(0,D.hFB)(!1);isScrollable=(0,l.EW)(()=>this.scrollable()||void 0!==this.maxHeight());getClass=(0,l.EW)(()=>`variant-${this.variant()}`);getStyles=(0,l.EW)(()=>{const T="fade"===this.variant()?"neutral":this.variant(),P=[`\n color: var(--cue-${T}Contrast);\n --background-color: var(--cue-${T});\n background-color: var(--background-color);\n max-height: ${this.maxHeight()??"none"};\n position: ${this.isScrollable()?"relative":void 0};\n min-height: ${this.isScrollable()?void 0:"fit-content"};\n `];return"fade"===this.variant()&&P.push(`\n background-image: linear-gradient(to bottom,var(--cue-${T}),var(--cue-main-background));\n `),P.push(this.style()),P.join("")});innerDisplay=(0,l.EW)(()=>this.isScrollable()?"block":"contents");onResize(T){if(!this.maxContentHeight())return;const P=Array.from(T.element.children).reduce((e,U)=>U.getBoundingClientRect().height+e,0);T.element.parentElement.style.maxHeight=`calc(${P}px + var(--cue-card-padding-y) * 2 + 2px)`}static \u0275fac=function(P){return new(P||F)};static \u0275cmp=d.VBU({type:F,selectors:[["cue-card"]],hostVars:8,hostBindings:function(P,e){2&P&&(d.Aen(e.getStyles()),d.HbH(e.getClass()),d.AVh("padded",e.padded())("shadow",e.shadow()))},inputs:{style:[1,"style"],variant:[1,"variant"],shadow:[1,"shadow"],padded:[1,"padded"],scrollable:[1,"scrollable"],maxHeight:[1,"maxHeight"],maxContentHeight:[1,"maxContentHeight"]},ngContentSelectors:g,decls:2,vars:2,consts:[["cueResized","",1,"inner",3,"resized"]],template:function(P,e){1&P&&(d.NAR(),d.j41(0,"div",0),d.bIt("resized",function(Z){return e.onResize(Z)}),d.SdG(1),d.k0s()),2&P&&d.xc7("display",e.innerDisplay())},dependencies:[r.C],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);box-sizing:border-box;overflow:hidden;--cue-scrollbar-thumb-color: var(--cue-color-lightgray)}.padded[_nghost-%COMP%]{padding:var(--cue-card-padding-y) var(--cue-card-padding-x)}.shadow[_nghost-%COMP%]{box-shadow:var(--cue-card-box-shadow)}.variant-default[_nghost-%COMP%]{--cue-paginator-text-color: var(--cue-paginator-text-color);--cue-input-border-bottom-color: var(--cue-main-foreground);--cue-input-placeholder-color: var(--cue-color-darkmidgray);--cue-input-label-color: var(--cue-main-foreground);--cue-input-value-color: var(--cue-main-foreground);--cue-stepper-border-color: var(--cue-main-foreground);--cue-stepper-fill-color: var(--cue-main-foreground);--cue-stepper-connector-color: var(--cue-main-foreground)}body.dark .variant-default[_nghost-%COMP%]{--cue-scrollbar-thumb-color: var(--cue-color-midgray);--cue-paginator-text-color: var(--cue-color-midgray)}.variant-secondary[_nghost-%COMP%], .variant-primary[_nghost-%COMP%]{--cue-button-primary-focus-color: var(--cue-color-ultralightgray);--cue-button-primary-foreground: var(--cue-color-blue);--cue-button-primary-border-color: var(--cue-color-ultralightgray);--cue-button-primary-background: var(--cue-color-ultralightgray);--cue-button-primary-disabled-foreground: var(--cue-color-midgray);--cue-button-primary-disabled-background: var(--cue-color-lightgray);--cue-button-primary-disabled-border-color: var(--cue-color-lightgray);--cue-button-secondary-disabled-foreground: var(--cue-color-midgray);--cue-button-secondary-disabled-border-color: var(--cue-color-midgray);--cue-input-value-color: var(--cue-color-ultralightgray);--cue-input-label-color: var(--cue-color-ultralightgray);--cue-input-placeholder-color: var(--cue-color-lightgray);--cue-input-border-bottom-color: var(--cue-color-ultralightgray);--cue-input-switch-background: rgba(255, 255, 255, .25);--cue-input-switch-checked-background: var(--cue-color-green);--cue-input-switch-checked-indicator-background: var(--cue-color-darkgray);--cue-stepper-border-color: var(--cue-color-ultralightgray);--cue-stepper-fill-color: var(--cue-color-ultralightgray);--cue-stepper-connector-color: var(--cue-color-ultralightgray);--cue-table-text-color: var(--cue-color-ultralightgray);--cue-table-secondary-text-color: var(--cue-color-lightgray);--cue-table-row-border-bottom-color: var(--cue-color-ultralightgray);--cue-chart-text-color: var(--cue-color-ultralightgray);--cue-paginator-text-color: var(--cue-color-ultralightgray)}:is(.variant-secondary[_nghost-%COMP%], .variant-primary[_nghost-%COMP%]) .ag-cell{--cue-input-value-color: var(--cue-table-text-color);--cue-input-placeholder-color: var(--cue-table-secondary-text-color)}.variant-secondary[_nghost-%COMP%]{--cue-input-switch-checked-background: var(--cue-color-blue);--cue-chart-border-background-color: var(--cue-secondary)}.variant-accent[_nghost-%COMP%]{--cue-chart-border-background-color: var(--cue-accent);--cue-chart-text-color: var(--cue-color-darkgray);--cue-chart-text-color-select: var(--cue-color-darkmidgray);--cue-input-value-color: var(--cue-color-darkgray);--cue-input-label-color: var(--cue-color-darkgray);--cue-input-placeholder-color: var(--cue-color-darkmidgray);--cue-input-border-bottom-color: var(--cue-color-darkgray);--cue-input-border-color: var(--cue-color-darkgray);--cue-stepper-border-color: var(--cue-color-darkgray);--cue-stepper-fill-color: var(--cue-color-darkgray);--cue-stepper-connector-color: var(--cue-color-darkgray)}.variant-primary[_nghost-%COMP%]{--cue-chart-border-background-color: var(--cue-primary);--cue-chart-text-color: var(--cue-color-ultralightgray);--cue-chart-text-color-select: var(--cue-color-lightgray)}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]{position:absolute;inset:var(--cue-card-padding-y) 0 0 var(--cue-card-padding-x);overflow:auto;padding-right:var(--cue-card-padding-x);padding-bottom:var(--cue-card-padding-y);scrollbar-width:thin;scrollbar-color:var(--cue-scrollbar-thumb-color) transparent}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--cue-scrollbar-thumb-color);border-radius:2px}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}"]})}return F})()},2927(E,N,m){"use strict";m.d(N,{CueDocumentList:()=>Qt});var D=m(467),l=m(7705),r=m(5802),d=m(2271),g=m(9769),w=m(2065),k=m(7284),F=m.n(k);var e=m(5547);let ee=(()=>{class o{get calculatedWidth(){let t=this.localConfig().width||this.width()||1;return this.el.nativeElement.parentNode.offsetWidth>0&&t<=1&&t>0&&(t*=this.el.nativeElement.parentNode.offsetWidth),t}get calculatedHeight(){let t=this.localConfig().height||this.height()||400;return this.el.nativeElement.parentNode.offsetHeight>0&&t<=1&&t>0&&(t*=this.el.nativeElement.parentNode.offsetHeight),t}onResize(t){this.logMessage("debug","rezisze triggered"),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.options.realignOnResize&&this.reDraw()},200)}constructor(){this.data=(0,l.hFB)([]),this.width=(0,l.hFB)(),this.height=(0,l.hFB)(),this.step=(0,l.hFB)(),this.overflow=(0,l.hFB)(),this.strict=(0,l.hFB)(),this.zoomOnHover=(0,l.hFB)(),this.realignOnResize=(0,l.hFB)(),this.randomizeAngle=(0,l.hFB)(),this.background=(0,l.hFB)(),this.font=(0,l.hFB)(),this.delay=(0,l.hFB)(),this.config=(0,l.hFB)({}),this.log=(0,l.hFB)(),this.clicked=(0,l.CGW)(),this.afterInit=(0,l.CGW)(),this.afterChecked=(0,l.CGW)(),this.localConfig=(0,d.EW)(()=>{const n=this.config();return{...n,width:this.width()||n.width||500,height:this.height()||n.height||300,overflow:this.overflow()??(n.overflow||!0),strict:this.strict()??(n.strict||!1),zoomOnHover:this.zoomOnHover()||n.zoomOnHover||{transitionTime:0,scale:1,delay:0},realignOnResize:this.realignOnResize()??(n.realignOnResize||!1),randomizeAngle:this.randomizeAngle()??(n.randomizeAngle||!1),step:this.step()||n.step||2,log:this.log()||n.log||!1,delay:this.delay()||n.delay,background:this.background()||n.background,font:this.font()||n.font}}),this.cloudDataHtmlElements=[],this.dataArr=[],this.el=(0,r.WQX)(e.aKT),this.r2=(0,r.WQX)(e.sFG);const t=this.el.nativeElement;(0,r.QZP)(()=>{const n=this.localConfig();this.logMessage("warn","cloud configuration",n),n.font&&this.r2.setStyle(t,"font",n.font),n.background&&this.r2.setStyle(t,"background",n.background),this.reDraw()})}reDraw(){this.afterChecked?.emit(),this.logMessage("debug","dataChanges emitted"),this.cloudDataHtmlElements=[],this.data()?(this.el.nativeElement.innerHTML="",this.data()&&(this.dataArr=this.data()),this.options={...this.localConfig(),aspectRatio:this.calculatedWidth/this.calculatedHeight,width:this.calculatedWidth,height:this.calculatedHeight,center:{x:this.calculatedWidth/2,y:this.calculatedHeight/2}},this.r2.setStyle(this.el.nativeElement,"width",this.options.width+"px"),this.r2.setStyle(this.el.nativeElement,"height",this.options.height+"px"),this.drawWordCloud(),this.logMessage("debug","reDraw finished")):console.error("angular-tag-cloud: No data passed. Please pass an Array of CloudData")}descriptiveEntry(t){let n=t.text;return n+=t.color?`-${t.color}`:"",n+=t.external?`-${t.external}`:"",n+=t.link?`-${t.link}`:"",n+=t.rotate?`-${t.rotate}`:"",n}drawWordCloud(){this.dataArr.sort((i,s)=>this.descriptiveEntry(i).localeCompare(this.descriptiveEntry(s))),this.dataArr.sort((i,s)=>s.weight-i.weight);const t=this.dataArr.filter(i=>i.position),n=this.dataArr.filter(i=>!i.position);t.forEach((i,s)=>{this.drawWord(s,i)}),n.forEach((i,s)=>{this.drawWord(s,i)})}hitTest(t){for(const n of this.cloudDataHtmlElements)if(this.overlapping(t,n))return!0;return!1}overlapping(t,n){const{offsetLeft:i,offsetTop:s,offsetWidth:u,offsetHeight:f}=n;return!(t.right<i||t.left>i+u||t.bottom<s||t.top>s+f)}getWeightForWord(t){let n=5;return this.dataArr[0].weight>this.dataArr[this.dataArr.length-1].weight&&(this.options.strict?t.weight>10?(n=10,this.logMessage("warn",`[TagCloud strict] Weight property ${t.weight} > 10. Fallback to 10 as you are using strict mode`,t)):t.weight<1?(n=1,this.logMessage("warn",`[TagCloud strict] Given weight property ${t.weight} < 1. Fallback to 1 as you are using strict mode`,t)):t.weight%1!=0?(n=Math.round(t.weight),this.logMessage("warn",`[TagCloud strict] Given weight property ${t.weight} is not an integer. Rounded value to ${n}`,t)):n=t.weight:n=Math.round((t.weight-this.dataArr[this.dataArr.length-1].weight)/(this.dataArr[0].weight-this.dataArr[this.dataArr.length-1].weight)*9)+1),n}setWordColor(t,n){this.r2.setStyle(t,"color",n)}setTooltip(t,n){this.r2.addClass(t,"tooltip");const i=this.r2.createElement("span");i.className="tooltiptext";const s=this.r2.createText(n);i.appendChild(s),t.appendChild(i)}setWordRotation(t,n){const i=n?`rotate(${n}deg)`:"";return this.r2.setStyle(t,"transform",i),i}wrapNodeIntoAnchorElement(t,n){const i=this.r2.createElement("a");return i.href=n.link||"",void 0!==n.external&&n.external&&(i.target="_blank"),i.appendChild(t),i}applyZoomStyle(t,n,i,s){this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&(this.options.zoomOnHover.transitionTime||(this.options.zoomOnHover.transitionTime=0),this.options.zoomOnHover.scale||(this.options.zoomOnHover.scale=1),n.onmouseover=()=>{this.options.zoomOnHover?.transitionTime&&this.r2.setStyle(n,"transition",`transform ${this.options.zoomOnHover.transitionTime}s`),this.options.zoomOnHover?.scale&&this.r2.setStyle(n,"transform",`scale(${this.options.zoomOnHover.scale}) ${s}`),this.options.zoomOnHover?.delay&&this.r2.setStyle(n,"transition-delay",`${this.options.zoomOnHover.delay}s`),this.options.zoomOnHover?.color&&this.r2.setStyle(i?t:n,"color",this.options.zoomOnHover.color)},n.onmouseout=()=>{this.r2.setStyle(n,"transform",`none ${s}`),this.options.zoomOnHover?.color&&this.r2.removeStyle(i?t:n,"color")})}setPosition(t,n,i){let s=this.options.randomizeAngle?6.28*Math.random():0,u=0;const f=t.style;f.position="absolute";const v=!!(n.position&&n.position.left&&n.position.top),b=t.offsetWidth,y=t.offsetHeight;let A=v&&n.position?.left?n.position.left:this.options.center.x-b/2,z=v&&n.position?.top?n.position.top:this.options.center.y-y/2;if(f.left=A+"px",f.top=z+"px",this.options.delay&&(t.classList.add("tag-animation-delay"),f.setProperty("--tag-animation-delay",this.options.delay*i+"ms")),!v)if(0===i)f.left=A+2*(Math.random()-.5)*(this.calculatedWidth/5)+"px",f.top=z+2*(Math.random()-.5)*(this.calculatedHeight/5)+"30px";else{for(;this.options.width&&this.options.height&&t.offsetHeight&&t.offsetWidth&&this.hitTest(new DOMRect(A,z,t.offsetWidth,t.offsetHeight));)u+=this.options.step||1,s+=(i%2==0?1:-1)*(this.options.step||1),A=this.options.center.x-b/2+u*Math.cos(s)*this.options.aspectRatio,z=this.options.center.y+u*Math.sin(s)-y/2;f.left=A+"px",f.top=z+"px"}if(!this.options.overflow&&(A<0||z<0||A+b>this.calculatedWidth||z+y>this.calculatedHeight))return this.logMessage("warn","Word did not fit into the cloud and overflow is set to 'false'. The element will be removed",t),void t.remove()}drawWord(t,n){let i;const s=this.getWeightForWord(n);i=this.r2.createElement("span"),i.className=`w${s}`,i.onclick=()=>{this.clicked?.emit(n)},i.onmouseenter=()=>{i.style.zIndex="2"},i.onmouseleave=()=>{i.style.zIndex="1"};let u=this.r2.createText(n.text);n.color&&this.setWordColor(i,n.color);const f=this.setWordRotation(i,n.rotate);n.link&&(u=this.wrapNodeIntoAnchorElement(u,n)),this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&this.applyZoomStyle(u,i,n.link,f),i.appendChild(u),this.r2.appendChild(this.el.nativeElement,i),n.tooltip&&this.setTooltip(i,n.tooltip),i.id=`angular-tag-cloud-item-${t}`,this.setPosition(i,n,t),this.logMessage("debug","Adds new word <span>",i),this.cloudDataHtmlElements.push(i),this.logMessage("debug","Placed words",this.cloudDataHtmlElements)}logMessage(t,...n){this.localConfig()&&("debug"===this.localConfig().log?console.log(`[AngularTagCloudModule ${t}]`,...n):"warn"===this.localConfig().log&&"warn"===t&&console.warn(`[AngularTagCloudModule ${t}]`,...n))}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["angular-tag-cloud"],["ng-tag-cloud"],["ngtc"]],hostBindings:function(n,i){1&n&&e.bIt("resize",function(u){return i.onResize(u)},e.tSv)},inputs:{data:[1,"data"],width:[1,"width"],height:[1,"height"],step:[1,"step"],overflow:[1,"overflow"],strict:[1,"strict"],zoomOnHover:[1,"zoomOnHover"],realignOnResize:[1,"realignOnResize"],randomizeAngle:[1,"randomizeAngle"],background:[1,"background"],font:[1,"font"],delay:[1,"delay"],config:[1,"config"],log:[1,"log"]},outputs:{clicked:"clicked",afterInit:"afterInit",afterChecked:"afterChecked"},decls:0,vars:0,template:function(n,i){},styles:['[_nghost-%COMP%]{font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:normal;color:#09f;overflow:hidden;position:relative;display:block}.tag-animation-delay[_ngcontent-%COMP%]{--tag-animation-delay: .5s;animation:_ngcontent-%COMP%_fadeIn .5s;opacity:0;animation-fill-mode:forwards;animation-delay:var(--tag-animation-delay)}span[_ngcontent-%COMP%]{padding:0}span.w10[_ngcontent-%COMP%]{font-size:550%}span.w9[_ngcontent-%COMP%]{font-size:500%}span.w8[_ngcontent-%COMP%]{font-size:450%}span.w7[_ngcontent-%COMP%]{font-size:400%}span.w6[_ngcontent-%COMP%]{font-size:350%}span.w5[_ngcontent-%COMP%]{font-size:300%}span.w4[_ngcontent-%COMP%]{font-size:250%}span.w3[_ngcontent-%COMP%]{font-size:200%}span.w2[_ngcontent-%COMP%]{font-size:150%}span.w1[_ngcontent-%COMP%]{font-size:100%}a[_ngcontent-%COMP%]:hover{color:#0df}a[_ngcontent-%COMP%]:hover, span.w10[_ngcontent-%COMP%], span.w9[_ngcontent-%COMP%], span.w8[_ngcontent-%COMP%]{color:#0cf}span.w7[_ngcontent-%COMP%]{color:#39d}span.w6[_ngcontent-%COMP%]{color:#90c5f0}span.w5[_ngcontent-%COMP%]{color:#90a0dd}span.w4[_ngcontent-%COMP%]{color:#90c5f0}span.w3[_ngcontent-%COMP%]{color:#a0ddff}span.w2[_ngcontent-%COMP%]{color:#9ce}span.w1[_ngcontent-%COMP%]{color:#aab5f0}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;width:inherit;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;bottom:100%;left:0;opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}'],changeDetection:0})}}return o})();var te=m(5970);const B=["wordCloudContainer"];function V(o,a){if(1&o){const t=e.RV6();e.j41(0,"angular-tag-cloud",3),e.bIt("clicked",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.handleClicked(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("data",t.data())("zoomOnHover",t.zoomOnHoverOptions())("width",t.containerSize().width)("height",t.containerSize().height)("overflow",t.overflow())("realignOnResize",!0)}}let oe=(()=>{class o{words=(0,l.hFB)();entries=(0,l.hFB)();caseSensitive=(0,l.hFB)(!1);clickable=(0,l.hFB)(!1);multiSelect=(0,l.hFB)(!1);highlightSelection=(0,l.hFB)(!1);minWeight=(0,l.hFB)(1);maxWeight=(0,l.hFB)(5);maxWords=(0,l.hFB)(50);colorScheme=(0,l.hFB)(["var(--cue-chart-text-color)","var(--cue-chart-text-color-select)"]);overflow=(0,l.hFB)(!1);clickedWord=(0,l.CGW)();selectionChanged=(0,l.CGW)();wordCloudContainer;containerSize=(0,r.vPA)({width:0,height:0});selection=(0,r.vPA)([]);data=(0,d.EW)(()=>{const t=this.words(),n=this.entries();return n?.length||t?.length?n?.length?n:t?.length?this._buildEntriesFromWords(t):[]:[]});ngAfterViewInit(){const t=new MutationObserver(()=>{this._applySelectionStyles()});this.wordCloudContainer?.nativeElement&&t.observe(this.wordCloudContainer.nativeElement,{childList:!0,subtree:!0})}handleResize(t){0!==t.newRect.height&&this.containerSize.set({width:t.newRect.width,height:t.newRect.height})}styleSelection=(0,r.QZP)(()=>{this.selection(),this._applySelectionStyles()});zoomOnHoverOptions=(0,d.EW)(()=>({scale:1.1,transitionTime:this.clickable()?1.2:0,delay:.05}));_buildEntriesFromWords(t){const n=new Map;for(const b of t){const y=this.caseSensitive()?b:b.toLowerCase();n.set(y,(n.get(y)||0)+1)}const i=Array.from(n.entries());if(0===i.length)return[];const s=i.map(([,b])=>b),u=Math.min(...s),f=Math.max(...s);return f===u?i.map(([b])=>({text:b,weight:this.maxWeight()})):i.sort(([,b],[,y])=>y-b).slice(0,this.maxWords()).map(([b,y])=>({text:b,weight:this.minWeight()+(y-u)*(this.maxWeight()-this.minWeight())/(f-u),color:this.colorScheme()[Math.floor(Math.random()*this.colorScheme().length)]}))}_applySelectionStyles(){if(!this.highlightSelection())return;const t=this.wordCloudContainer?.nativeElement;void 0!==t&&t.querySelectorAll("span").forEach(i=>{i.textContent&&(this.selection().includes(i.textContent.trim())?i.classList.add("selected"):i.classList.remove("selected"))})}handleClicked(t){this.clickable()&&(this.clickedWord.emit(t.text),this.highlightSelection()&&(this.selection().includes(t.text)?this.selection.update(n=>n.filter(i=>i!==t.text)):this.multiSelect()?this.selection.update(n=>[...n,t.text]):this.selection.update(()=>[t.text])),this.selectionChanged.emit(this.selection()))}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-word-cloud"]],viewQuery:function(n,i){if(1&n&&e.GBs(B,5),2&n){let s;e.mGM(s=e.lsd())&&(i.wordCloudContainer=s.first)}},inputs:{words:[1,"words"],entries:[1,"entries"],caseSensitive:[1,"caseSensitive"],clickable:[1,"clickable"],multiSelect:[1,"multiSelect"],highlightSelection:[1,"highlightSelection"],minWeight:[1,"minWeight"],maxWeight:[1,"maxWeight"],maxWords:[1,"maxWords"],colorScheme:[1,"colorScheme"],overflow:[1,"overflow"]},outputs:{clickedWord:"clickedWord",selectionChanged:"selectionChanged"},decls:3,vars:5,consts:[["wordCloudContainer",""],["cueResized","",1,"wordcloud-container",3,"resized"],[3,"data","zoomOnHover","width","height","overflow","realignOnResize"],[3,"clicked","data","zoomOnHover","width","height","overflow","realignOnResize"]],template:function(n,i){1&n&&(e.j41(0,"div",1,0),e.bIt("resized",function(u){return i.handleResize(u)}),e.nVh(2,V,1,6,"angular-tag-cloud",2),e.k0s()),2&n&&(e.xc7("display",i.data().length?"block":"none"),e.AVh("clickable",i.clickable()),e.R7$(2),e.vxM(i.data().length?2:-1))},dependencies:[ee,te.C],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;min-height:200px}.wordcloud-container[_ngcontent-%COMP%]{width:100%;height:100%} .wordcloud-container.clickable angular-tag-cloud span{cursor:pointer} .selected{text-decoration:underline}"],changeDetection:0})}return o})();var Q=m(1696),le=m(5448),R=m(3319);const se=o=>{const a=o.split("/");return a[a.length-1]};var ue=m(6950),C=m(7598),p=m(2245),h=m(5381),_=m(7089),c=m(4015),M=m(2444),x=m(29);function O(o,a){if(1&o&&e.nrm(0,"cue-svg-icon",2),2&o){const t=e.XpG();e.Y8G("name",t.iconChecked())}}function I(o,a){if(1&o&&e.nrm(0,"cue-svg-icon",2),2&o){const t=e.XpG();e.Y8G("name",t.icon())}}let G=(()=>{class o{size=(0,l.hFB)("m");icon=(0,l.hFB)(void 0);iconChecked=(0,l.hFB)(void 0);disabled=(0,l.hFB)(!1);checked=(0,l.geq)(!1);toggleChange=(0,l.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(n,i){2&n&&(e.BMQ("size",i.size()),e.AVh("checked",i.checked())("disabled",i.disabled()))},inputs:{size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:3,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(n,i){1&n&&(e.j41(0,"input",0),e.bIt("click",function(){return i.toggle()}),e.k0s(),e.j41(1,"div",1),e.nVh(2,O,1,1,"cue-svg-icon",2)(3,I,1,1,"cue-svg-icon",2),e.k0s()),2&n&&(e.Y8G("checked",i.checked())("disabled",i.disabled()),e.R7$(2),e.vxM(i.checked()&&i.iconChecked()?2:i.icon()?3:-1))},dependencies:[x.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var(--cue-input-switch-indicator-width));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return o})();var $=m(5187);const H=["dialog"],ae=["*"];function ne(o,a){if(1&o&&(e.j41(0,"cue-typography",4),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.JRh(t.label())}}function re(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-svg-icon",7),e.bIt("click",function(){r.eBV(t);const i=e.XpG(2);return r.Njj(i.onClose())}),e.k0s()}}function ie(o,a){if(1&o&&(e.j41(0,"cue-flexcontainer",3),e.bIt("click",function(n){return n.stopPropagation()}),e.nVh(1,ne,2,1,"cue-typography",4),e.j41(2,"cue-card",5),e.bIt("click",function(n){return n.stopPropagation()}),e.nVh(3,re,1,0,"cue-svg-icon",6),e.j41(4,"cue-flexcontainer"),e.SdG(5),e.k0s()()()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.label()?1:-1),e.R7$(),e.Aen(t.minWidth()?"position: relative; min-width: min("+t.minWidth()+", 80vw)":"position: relative"),e.R7$(),e.vxM(t.displayCloseBtn()?3:-1),e.R7$(),e.Aen("width: 100%; margin-top: "+(t.displayCloseBtn()?"16px":"0"))}}let W=(()=>{class o{visible=(0,l.geq)(!0);closeOnBackgroundClick=(0,l.hFB)(!0);displayCloseBtn=(0,l.hFB)(!0);label=(0,l.hFB)("");minWidth=(0,l.hFB)();close=(0,l.CGW)();dialogRef=l.ebz.required("dialog");constructor(){(0,r.QZP)(()=>{const t=this.dialogRef().nativeElement;this.visible()?t.open||t.showModal():t.open&&t.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-modal"]],viewQuery:function(n,i){1&n&&e.wEZ(i.dialogRef,H,5),2&n&&e.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:ae,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],["direction","column","gap","s","align","center",2,"max-width","80vw"],["direction","column","gap","s","align","center",2,"max-width","80vw",3,"click"],["weight","medium"],[3,"click"],["name","close",1,"close-btn"],["name","close",1,"close-btn",3,"click"]],template:function(n,i){1&n&&(e.NAR(),e.j41(0,"dialog",1,0),e.bIt("cancel",function(){return i.onClose()})("click",function(){return i.onBackdropClick()}),e.nVh(2,ie,6,6,"cue-flexcontainer",2),e.k0s()),2&n&&(e.R7$(2),e.vxM(i.visible()?2:-1))},dependencies:[$.Card,h.n,x.A,p.o],styles:[".close-btn[_ngcontent-%COMP%]{position:absolute;right:8px;top:8px;cursor:pointer}.modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(0, 0, 0, .5))}"]})}return o})();var J=m(8957);let K=(()=>{class o{value="";lineHeight="1.5";agInit(t){this.value=t.value||"",this.lineHeight=t.colDef&&t.colDef.cellRendererParams&&t.colDef.cellRendererParams.lineHeight||t.context&&t.context.lineHeight||"1.5"}refresh(t){return this.value=t.value||"",!0}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(n,i){1&n&&(e.rj2(0,"div",0),e.EFF(1),e.eux()),2&n&&(e.xc7("line-height",i.lineHeight),e.R7$(),e.JRh(i.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return o})(),ce=(()=>{class o{_value=(0,r.vPA)("");_options=(0,r.vPA)([]);_disabled=(0,r.vPA)(!1);_disabledTooltip=(0,r.vPA)("");_canChange=(0,r.vPA)(void 0);_optionValues=(0,d.EW)(()=>this._options().map(t=>t.value));_labelMap=(0,d.EW)(()=>Object.fromEntries(this._options().map(t=>[t.value,t.label])));_params;agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}onValueChange(t){if(void 0===t)return;const n=String(t),i=this._canChange();i&&!i(n)||(this._value.set(n),this._params.setValue?.(n))}_apply(t){this._params=t,this._value.set(t.value??"");const n="function"==typeof t.colDef?.cellRendererParams?t.colDef.cellRendererParams(t):t.colDef?.cellRendererParams??{};this._options.set(n.options??[]),this._disabled.set(n.disabled??!1),this._disabledTooltip.set(n.disabledTooltip??""),this._canChange.set(n.canChange??void 0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(n,i){1&n&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(u){return i.onValueChange(u)}),e.k0s()),2&n&&e.Y8G("options",i._optionValues())("labelMap",i._labelMap())("value",i._value())("underline",!1)("menuPosition","bottomleft")("disabled",i._disabled())("cueTooltip",i._disabled()?i._disabledTooltip():"")},dependencies:[M.l,_.d],styles:["[_nghost-%COMP%]{display:block;width:100%;overflow:visible;--cue-input-value-color: currentColor}[_nghost-%COMP%] .select-trigger{font-size:var(--ag-font-size, inherit)}"],changeDetection:0})}return o})();var Se=m(7374),he=m.n(Se),ke=m(4955),Te=m.n(ke),Fe=m(5164),Oe=m.n(Fe);m(9785),m(2269),m(1409),m(4230),m(2494),m(9531),he().extend(Te()),he().extend(Oe());let Pe=(()=>{class o{_transloco=(0,r.WQX)(c.JO);transform(t,n="dateTime"){if(!t)return"";const i=this._transloco.getActiveLang(),s=he()(t).locale(i);return"timeAgo"===n?s.fromNow():s.format("date"===n?"LL":"shortDate"===n?"L":"LLL")}static \u0275fac=function(n){return new(n||o)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:o,pure:!0})}return o})(),de=(()=>{class o{_value=(0,r.vPA)("");_format=(0,r.vPA)("dateTime");agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}_apply(t){this._value.set(t.value??""),this._format.set(t.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(n,i){1&n&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&n&&e.JRh(e.i5U(1,1,i._value(),i._format()))},dependencies:[Pe],encapsulation:2,changeDetection:0})}return o})();const Ne=["*"];function Re(o,a){1&o&&e.SdG(0)}let Ie=(()=>{class o{label=l.hFB.required();expanded=(0,l.geq)(!1);size=(0,l.hFB)("m");info=(0,l.hFB)("");expandToggled=(0,l.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:Ne,decls:8,vars:9,consts:[["direction","column","gap","xs",2,"width","100%"],["justify","space-between","align","center",1,"expansion-header",3,"click"],[3,"size","info"],["variant","ghost",3,"size"],["icon","arrow-dropdown"]],template:function(n,i){1&n&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return i.toggle()}),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s(),e.j41(4,"cue-button",3)(5,"span"),e.nrm(6,"cue-button-icon",4),e.k0s()()(),e.nVh(7,Re,1,0),e.k0s()),2&n&&(e.R7$(2),e.Y8G("size",i.size())("info",i.info()),e.R7$(),e.JRh(i.label()),e.R7$(),e.Y8G("size",i.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",i.expanded()),e.R7$(2),e.vxM(i.expanded()?7:-1))},dependencies:[p.o,h.n,Q.$,R.a],styles:[".expansion-header[_ngcontent-%COMP%]{cursor:pointer}.expansion-content[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1)}.rotate[_ngcontent-%COMP%]{transition:transform .3s cubic-bezier(.4,0,.2,1);display:inline-block}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0})}return o})();function ge(o){if(o)return o.replace(/([A-Z])/g," $1").replace(/^./,a=>a.toUpperCase())}var Ae=m(9417),Le=m(1359);const Ge=(o,a)=>a.value;function Ee(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",6),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG();return s.searchText=i,r.Njj(s.onSearchChange())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.searchText)}}function $e(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-checkbox",7),e.bIt("checkedChange",function(i){const s=r.eBV(t).$implicit,u=e.XpG();return s.selected=i,r.Njj(u.onSelectionChange())}),e.k0s()}if(2&o){const t=a.$implicit;e.Y8G("label",t.value||"(blank)")("checked",t.selected)}}function je(o,a){1&o&&(e.j41(0,"cue-typography",5),e.EFF(1,"No results"),e.k0s())}let fe=(()=>{class o{_cdr=(0,r.WQX)(l.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(t){this._params=t}afterGuiAttached(t){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(t=>!t.selected)}doesFilterPass(t){const n=new Set(this.options.filter(f=>f.selected).map(f=>f.value)),i=this._params.getValue(t.node),s=null==i?"":String(i);return"..."===s||"Loading..."===s||(""===s?n.has(""):s.split(", ").map(f=>f.trim()).some(f=>n.has(f)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(t=>t.selected).map(t=>t.value)}:null}setModel(t){if(t){const n=new Set(t.selectedValues);this.options.forEach(i=>i.selected=n.has(i.value))}else this.options.forEach(n=>n.selected=!0);this._applySearch(),this._cdr.markForCheck()}onSelectionChange(){this._params.filterChangedCallback(),this._cdr.markForCheck()}onSearchChange(){this._applySearch(),this._cdr.markForCheck()}get allSelected(){return this.options.length>0&&this.options.every(t=>t.selected)}toggleAll(t){this.options.forEach(n=>n.selected=t),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const t=new Set;this._params.api.forEachNode(i=>{const s=this._params.getValue(i);if(null==s||""===s)t.add("");else{const u=String(s);if("..."===u||"Loading..."===u)return;const f=u.split(", ").map(v=>v.trim());for(const v of f)t.add(v)}});const n=new Map(this.options.map(i=>[i.value,i.selected]));this.options=Array.from(t).sort((i,s)=>i.localeCompare(s)).map(i=>({value:i,selected:n.get(i)??!0})),this._applySearch()}_applySearch(){const t=this.searchText.toLowerCase().trim();this.filteredOptions=t?this.options.filter(n=>n.value.toLowerCase().includes(t)):this.options}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-multi-select-filter"]],decls:7,vars:3,consts:[["direction","column","gap","s"],["placeholder","Search...","size","s",3,"value"],["size","s","label","Select all",3,"checkedChange","checked"],[1,"msf-list"],["size","s",3,"label","checked"],["size","s"],["placeholder","Search...","size","s",3,"valueChange","value"],["size","s",3,"checkedChange","label","checked"]],template:function(n,i){1&n&&(e.j41(0,"cue-flexcontainer",0),e.nVh(1,Ee,1,1,"cue-input",1),e.j41(2,"cue-checkbox",2),e.bIt("checkedChange",function(u){return i.toggleAll(u)}),e.k0s(),e.j41(3,"div",3),e.Z7z(4,$e,1,2,"cue-checkbox",4,Ge),e.nVh(6,je,2,0,"cue-typography",5),e.k0s()()),2&n&&(e.R7$(),e.vxM(i.options.length>10?1:-1),e.R7$(),e.Y8G("checked",i.allSelected),e.R7$(2),e.Dyx(i.filteredOptions),e.R7$(2),e.vxM(0===i.filteredOptions.length?6:-1))},dependencies:[Ae.YN,Le.S,J.p,p.o,h.n],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:200px;max-width:300px;box-sizing:border-box}.msf-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow-y:auto}"],changeDetection:0})}return o})();function ze(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",4),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.onValueChange(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.filterText)}}function Be(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-typography",5),e.bIt("click",function(){r.eBV(t);const i=e.XpG();return r.Njj(i.clear())}),e.EFF(1,"Clear"),e.k0s()}}let _e=(()=>{class o{_cdr=(0,r.WQX)(l.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,c.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,c.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,c.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,c.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,c.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,c.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,c.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,c.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,d.EW)(()=>({contains:this._labelContains(),notContains:this._labelNotContains(),equals:this._labelEquals(),notEqual:this._labelNotEqual(),startsWith:this._labelStartsWith(),endsWith:this._labelEndsWith(),blank:this._labelBlank(),notBlank:this._labelNotBlank()}));showTextInput=(0,d.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(t){this._params=t}afterGuiAttached(t){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(t){const n=this._params.getValue(t.node),i=null==n?"":String(n),s=this.filterText.toLowerCase().trim(),u=i.toLowerCase();switch(this.filterType){case"contains":default:return u.includes(s);case"notContains":return!u.includes(s);case"equals":return u===s;case"notEqual":return u!==s;case"startsWith":return u.startsWith(s);case"endsWith":return u.endsWith(s);case"blank":return""===i;case"notBlank":return""!==i}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(t){this.filterText=t?.filter??"",this.filterType=t?.type??"contains",this._cdr.markForCheck()}onValueChange(t){this.filterText=t,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(t){this.filterType=String(t||"contains"),["blank","notBlank"].includes(this.filterType)&&(this.filterText=""),this._params.filterChangedCallback(),this._cdr.markForCheck()}clear(){this.filterText="",this.filterType="contains",this._params.filterChangedCallback(),this._cdr.markForCheck()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-text-filter"]],decls:4,vars:5,consts:[["direction","column","gap","s"],["size","s",3,"valueChange","value","options","labelMap"],["placeholder","Filter...","size","s",3,"value"],["size","s",2,"cursor","pointer","text-align","right"],["placeholder","Filter...","size","s",3,"valueChange","value"],["size","s",2,"cursor","pointer","text-align","right",3,"click"]],template:function(n,i){1&n&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),e.bIt("valueChange",function(u){return i.onFilterTypeChange(u)}),e.k0s(),e.nVh(2,ze,1,1,"cue-input",2),e.nVh(3,Be,2,0,"cue-typography",3),e.k0s()),2&n&&(e.R7$(),e.Y8G("value",i.filterType)("options",i.filterTypeOptions)("labelMap",i.filterTypeLabelMap()),e.R7$(),e.vxM(i.showTextInput()?2:-1),e.R7$(),e.vxM(i.filterText||"contains"!==i.filterType?3:-1))},dependencies:[J.p,M.l,p.o,h.n],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:180px;max-width:280px;box-sizing:border-box}"],changeDetection:0})}return o})();const We=[{name:"ROUND",signature:"ROUND(?val, decimals)",description:"Round to N decimal places"},{name:"FLOOR",signature:"FLOOR(?val)",description:"Round down to nearest integer"},{name:"CEIL",signature:"CEIL(?val)",description:"Round up to nearest integer"},{name:"ABS",signature:"ABS(?val)",description:"Absolute value"},{name:"SQRT",signature:"SQRT(?val)",description:"Square root"},{name:"MIN",signature:"MIN(a, b)",description:"Smaller of two numbers"},{name:"MAX",signature:"MAX(a, b)",description:"Larger of two numbers"},{name:"CONCAT",signature:"CONCAT(a, b, ...)",description:"Concatenate strings"},{name:"PREFIX",signature:'PREFIX(?val, "text")',description:"Prepend text (skipped if value is empty)"},{name:"SUFFIX",signature:'SUFFIX(?val, "text")',description:"Append text (skipped if value is empty)"},{name:"TRIM",signature:"TRIM(?val)",description:"Remove leading/trailing whitespace"},{name:"UPPER",signature:"UPPER(?val)",description:"Convert to uppercase"},{name:"LOWER",signature:"LOWER(?val)",description:"Convert to lowercase"},{name:"LEN",signature:"LEN(?val)",description:"String length"},{name:"REPLACE",signature:'REPLACE(?val, "a", "b")',description:'Replace all occurrences of "a" with "b"'},{name:"NUM",signature:"NUM(?val)",description:"Parse as number"},{name:"STR",signature:"STR(?val)",description:"Convert to string"},{name:"IF",signature:"IF(condition, then, else)",description:"Conditional expression"},{name:"AFTER_LAST",signature:'AFTER_LAST(?val, "sep")',description:"Substring after the last occurrence of sep"},{name:"AFTER_FIRST",signature:'AFTER_FIRST(?val, "sep")',description:"Substring after the first occurrence of sep"},{name:"BEFORE_LAST",signature:'BEFORE_LAST(?val, "sep")',description:"Substring before the last occurrence of sep"},{name:"BEFORE_FIRST",signature:'BEFORE_FIRST(?val, "sep")',description:"Substring before the first occurrence of sep"},{name:"SEGMENT",signature:'SEGMENT(?val, "sep", n)',description:"Get the Nth segment (0-based) when splitting ?val by sep"}];function be(o){const a=[];let t=0;for(;t<o.length;){if(/\s/.test(o[t])){t++;continue}if('"'===o[t]||"'"===o[t]){const i=o[t++];let s="";for(;t<o.length&&o[t]!==i;)s+="\\"===o[t]?o[++t]:o[t],t++;if(o[t]!==i)throw new Error("Unterminated string literal");t++,a.push({kind:"str",val:s});continue}const n=o.slice(t).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(n)a.push({kind:"num",val:n[0]}),t+=n[0].length;else{if("?"===o[t]){let i="?";for(t++;t<o.length&&/\w/.test(o[t]);)i+=o[t++];a.push({kind:"var",val:i});continue}if(/[A-Za-z_]/.test(o[t])){let i="";for(;t<o.length&&/\w/.test(o[t]);)i+=o[t++];a.push({kind:"ident",val:i.toUpperCase()});continue}if("**"!==o.slice(t,t+2)){if(!"+-*/%(),".includes(o[t]))throw new Error(`Unexpected character "${o[t]}" at position ${t}`);a.push({kind:"op",val:o[t++]})}else a.push({kind:"op",val:"**"}),t+=2}}return a.push({kind:"eof",val:""}),a}class Ce{tokens;vars;pos=0;constructor(a,t){this.tokens=a,this.vars=t}parse(){const a=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return a}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(a){if(this.peek().val!==a)throw new Error(`Expected "${a}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let a=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const t=this.next().val,n=this.multiplicative();a="+"===t?"string"==typeof a||"string"==typeof n?String(a)+String(n):a+n:L(a)-L(n)}return a}multiplicative(){let a=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const t=this.next().val,n=this.power();if("*"===t)a=L(a)*L(n);else if("/"===t){const i=L(n);a=0!==i?L(a)/i:0}else a=L(a)%L(n)}return a}power(){const a=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(L(a),L(this.power()))):a}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-L(this.primary())):this.primary()}primary(){const a=this.peek();if("num"===a.kind)return this.next(),Number(a.val);if("str"===a.kind)return this.next(),a.val;if("var"===a.kind)return this.next(),this.vars[a.val]??"";if("ident"===a.kind)return this.funcCall();if("op"===a.kind&&"("===a.val){this.next();const t=this.expr();return this.eat(")"),t}throw new Error(`Unexpected token: "${a.val}"`)}funcCall(){const a=this.next().val;this.eat("(");const t=[];if(")"!==this.peek().val)for(t.push(this.expr());","===this.peek().val;)this.next(),t.push(this.expr());return this.eat(")"),function Ye(o,a){const t=n=>a[n]??"";switch(o){case"ROUND":return Number(L(t(0)).toFixed(Math.max(0,L(t(1)))));case"FLOOR":return Math.floor(L(t(0)));case"CEIL":return Math.ceil(L(t(0)));case"ABS":return Math.abs(L(t(0)));case"SQRT":return Math.sqrt(L(t(0)));case"MIN":return Math.min(...a.map(L));case"MAX":return Math.max(...a.map(L));case"CONCAT":return a.map(n=>String(n)).join("");case"TRIM":return String(t(0)).trim();case"UPPER":return String(t(0)).toUpperCase();case"LOWER":return String(t(0)).toLowerCase();case"LEN":return String(t(0)).length;case"REPLACE":return String(t(0)).replaceAll(String(t(1)),String(t(2)));case"NUM":return L(t(0));case"STR":return String(t(0));case"PREFIX":return String(t(0))?String(t(1))+String(t(0)):String(t(0));case"SUFFIX":return String(t(0))?String(t(0))+String(t(1)):String(t(0));case"IF":return 0!==L(t(0))&&""!==t(0)&&"false"!==t(0)?t(1):t(2);case"AFTER_LAST":{const n=String(t(0)),i=String(t(1)),s=n.lastIndexOf(i);return-1===s?n:n.slice(s+i.length)}case"AFTER_FIRST":{const n=String(t(0)),i=String(t(1)),s=n.indexOf(i);return-1===s?n:n.slice(s+i.length)}case"BEFORE_LAST":{const n=String(t(0)),i=String(t(1)),s=n.lastIndexOf(i);return-1===s?n:n.slice(0,s)}case"BEFORE_FIRST":{const n=String(t(0)),i=String(t(1)),s=n.indexOf(i);return-1===s?n:n.slice(0,s)}case"SEGMENT":return String(t(0)).split(String(t(1)))[L(t(2))]??"";default:throw new Error(`Unknown function: "${o}"`)}}(a,t)}}function L(o){if("number"==typeof o)return o;const a=Number(o);return isNaN(a)?0:a}const Xe=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],Ue=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],Qe=(o,a)=>a.name;function Je(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG(2);return r.Njj(s.setLabel(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",t.label())}}function Ze(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const i=r.eBV(t).$implicit,s=e.XpG(3);return r.Njj(s.setTextAlign(i))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&o){const t=a.$implicit,n=e.XpG(3);e.Y8G("selected",n.textAlign()===t),e.R7$(),e.Y8G("icon",n.ALIGN_ICON[t])}}function qe(o,a){if(1&o&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,Ze,2,2,"cue-button",10,e.Vm6),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(t.alignOptions)}}function Ke(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",13),e.nI1(2,"transloco"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"cue-input-switch",14),e.bIt("checkedChange",function(i){r.eBV(t);const s=e.XpG(2);return r.Njj(s.setMultiline(i))}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(),e.Y8G("cueTooltip",e.bMT(2,3,"components.agGridColumnSelect.tooltipMultiline")),e.R7$(2),e.JRh(e.bMT(4,5,"components.agGridColumnSelect.labelMultiline")),e.R7$(2),e.Y8G("checked",t.multiline())}}function et(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,Je,2,4,"cue-input",5),e.nVh(4,qe,6,3),e.nVh(5,Ke,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(t.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(t.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(t.settings().allowSettingMultiline?5:-1)}}function tt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG(2);return r.Njj(s.setFilterType(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",t.filterType())("options",t.filterTypeOptions)("labelMap",t.filterTypeLabelMap())}}function nt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG(2);return r.Njj(s.setEnumValues(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",t.enumValuesText())}}function it(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG(3);return r.Njj(s.setDateFormat(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("label",t._labelDateFormat())("value",t.dateFormat())("options",t.dateFormatOptions)("labelMap",t.dateFormatLabelMap())}}function ot(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG(2);return r.Njj(s.setDataType(i))}),e.k0s(),e.nVh(1,it,1,4,"cue-select",15)}if(2&o){const t=e.XpG(2);e.Y8G("label",t._labelDataType())("value",t.dataType())("options",t.dataTypeOptions)("labelMap",t.dataTypeLabelMap()),e.R7$(),e.vxM("date"===t.dataType()?1:-1)}}function st(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,tt,2,6,"cue-select",15),e.nVh(4,nt,2,4,"cue-input",5),e.nVh(5,ot,2,5),e.SdG(6,2),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(t.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(t.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(t.settings().allowSettingDataType?5:-1)}}function at(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4)(3,"cue-flexcontainer",6)(4,"cue-typography",13),e.nI1(5,"transloco"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"cue-input-switch",14),e.bIt("checkedChange",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.setEditable(i))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupBehavior")),e.R7$(4),e.Y8G("cueTooltip",e.bMT(5,6,"components.agGridColumnSelect.tooltipAllowEditing")),e.R7$(2),e.JRh(e.bMT(7,8,"components.agGridColumnSelect.labelEditable")),e.R7$(2),e.Y8G("checked",t.editable())}}function rt(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",t.extraPanelLabel())("expanded",t.extraPanelExpanded())}}function lt(o,a){if(1&o&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(t.postProcessFormulaPreview())}}function ct(o,a){if(1&o&&(e.j41(0,"cue-flexcontainer",21)(1,"cue-typography",22),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",23),e.EFF(4),e.k0s()()),2&o){const t=a.$implicit;e.R7$(2),e.JRh(t.signature),e.R7$(2),e.JRh(t.description)}}function ut(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",17)(3,"cue-input",18),e.nI1(4,"transloco"),e.nI1(5,"transloco"),e.nI1(6,"transloco"),e.bIt("valueChange",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.setPostProcessFormula(i))}),e.k0s(),e.nVh(7,lt,5,4,"cue-typography",19),e.j41(8,"cue-expansion-panel",20),e.nI1(9,"transloco"),e.j41(10,"cue-flexcontainer",17),e.Z7z(11,ct,5,2,"cue-flexcontainer",21,Qe),e.k0s()()()()}if(2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,9,"components.agGridColumnSelect.groupPostProcess")),e.R7$(3),e.Y8G("label",e.bMT(4,11,"components.agGridColumnSelect.labelPostProcessFormula"))("info",e.bMT(5,13,"components.agGridColumnSelect.tooltipPostProcessFormula"))("placeholder",e.bMT(6,15,"components.agGridColumnSelect.placeholderPostProcessFormula"))("value",t.postProcessFormula())("error",t.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(t.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(t.formulaFunctions)}}class Me{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const dt={Text:_e,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:fe,None:!1,Auto:!0},ht={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let mt=(()=>{class o{columnDef=l.geq.required();columnIndex=(0,l.hFB)();updateColumn=(0,l.CGW)();close=(0,l.CGW)();settings=l.hFB.required();extraPanelLabel=(0,l.hFB)();extraPanelExpanded=(0,l.hFB)(!0);minWidth=(0,l.hFB)("600px");alignOptions=["left","center","right"];filterTypeOptions=["Text","Number","Date","Select","None","Auto"];dateFormatOptions=["dateTime","date","shortDate","timeAgo"];dataTypeOptions=["text","number","date","boolean"];_labelDataType=(0,c.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,c.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,c.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,c.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,c.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,c.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,c.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,c.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,c.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,c.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,d.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,d.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,c.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,c.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,c.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,c.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,c.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,c.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,d.EW)(()=>({Text:this._labelText(),Number:this._labelNumber(),Date:this._labelDate(),Select:this._labelSelect(),None:this._labelNone(),Auto:this._labelAuto()}));ALIGN_ICON={center:"text-align-center",left:"text-align-left",right:"text-align-right"};dataType=(0,d.EW)(()=>{const t=this.columnDef().cellRenderer;return t===de||"DateCellRenderer"===t?"date":"text"});dateFormat=(0,d.EW)(()=>{const t=this.columnDef().cellRenderer;return t===de||"DateCellRenderer"===t?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,d.EW)(()=>!0===this.columnDef().editable);multiline=(0,d.EW)(()=>{const t=this.columnDef().cellRenderer;return t===K||"MultilineCellRenderer"===t});_ALIGN_TO_FLEX={left:"flex-start",right:"flex-end",center:"center"};_FLEX_TO_ALIGN={"flex-start":"left","flex-end":"right",center:"center",left:"left",right:"right"};textAlign=(0,d.uu)(()=>{const t=this.columnDef().cellStyle;return t?.textAlign||this._FLEX_TO_ALIGN[t?.justifyContent]||"left"});filterType=(0,d.EW)(()=>{const t=this.columnDef().filter;return t===fe?"Select":t===_e?"Text":ht[t]||"Auto"});enumValuesText=(0,d.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(n=>n.value).join(", "));label=(0,d.EW)(()=>this.columnDef().headerName||ge(this.columnDef().field)||"Unknown");setEditable(t){const n=this.columnDef().cellRendererParams;this.updateColumn.emit(n?.options?.length?{editable:t,cellRendererParams:{...n,disabled:!t}}:{editable:t})}setMultiline(t){this.updateColumn.emit({cellRenderer:t?K:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(t){this.updateColumn.emit({headerName:t})}setTextAlign(t){const n=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...n,display:"flex",justifyContent:this._ALIGN_TO_FLEX[t]??t,textAlign:t},headerClass:`header-align-${t}`}),this.textAlign.set(t)}setFilterType(t){this.updateColumn.emit({filter:dt[t]??!0})}setEnumValues(t){const n=t.split(",").map(i=>i.trim()).filter(i=>i.length>0);if(0===n.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const i=n.map(s=>({value:s,label:s}));this.updateColumn.emit({cellRenderer:ce,cellRendererParams:{options:i,disabled:!this.editable()}})}}setDateFormat(t){t&&this.updateColumn.emit({cellRenderer:de,cellRendererParams:{dateFormat:t}})}setDataType(t){this.updateColumn.emit("date"===t?{cellRenderer:de,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=We;postProcessFormula=(0,d.EW)(()=>function Ve(o){return o&&"none"!==o.type?"round"===o.type?`ROUND(?val, ${o.decimals})`:"prefix"===o.type?`PREFIX(?val, "${o.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===o.type?`SUFFIX(?val, "${o.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===o.type?o.expression:"":""}(this.columnDef().postProcess));postProcessFormulaError=(0,d.EW)(()=>function He(o){if(!o||!o.trim())return null;try{const a=be(o);return new Ce(a,{"?val":"42"}).parse(),null}catch(a){return a?.message??"Invalid formula"}}(this.postProcessFormula()));postProcessFormulaPreview=(0,d.EW)(()=>{const t=this.postProcessFormula();return!t||this.postProcessFormulaError()?"":function ve(o,a){if(!o||!o.trim())return a;try{const t=be(o),n=new Ce(t,{"?val":a}).parse();return null==n?"":String(n)}catch{return a}}(t,"42")});setPostProcessFormula(t){const n=t.trim();this.updateColumn.emit({postProcess:n?{type:"formula",expression:n}:void 0})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],columnIndex:[1,"columnIndex"],settings:[1,"settings"],extraPanelLabel:[1,"extraPanelLabel"],extraPanelExpanded:[1,"extraPanelExpanded"],minWidth:[1,"minWidth"]},outputs:{columnDef:"columnDefChange",updateColumn:"updateColumn",close:"close"},ngContentSelectors:Ue,decls:9,vars:9,consts:[[3,"close","label","minWidth"],["direction","column","gap","s",2,"overflow-y","auto","max-height","70vh","min-height","0","width","100%"],[3,"label","expanded"],[3,"label"],["direction","column"],[3,"label","value"],["direction","row","gap","l","justify","space-between","align","center"],[3,"valueChange","label","value"],["size","s"],["direction","row"],["variant","tertiary","size","s",3,"selected"],["variant","tertiary","size","s",3,"click","selected"],[3,"icon"],["size","m",3,"cueTooltip"],["size","m",3,"checkedChange","checked"],[3,"label","value","options","labelMap"],[3,"valueChange","label","value","options","labelMap"],["direction","column","gap","xs"],[3,"valueChange","label","info","placeholder","value","error"],["size","xs",2,"opacity","0.65"],["size","s",3,"label","expanded"],["direction","row","gap","s","align","start"],["size","xs",2,"font-family","monospace","min-width","210px","flex-shrink","0"],["size","xs",2,"opacity","0.7"]],template:function(n,i){1&n&&(e.NAR(Xe),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return i.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,et,7,7,"cue-expansion-panel",2),e.nVh(4,st,7,6,"cue-expansion-panel",3),e.nVh(5,at,10,10,"cue-expansion-panel",3),e.nVh(6,rt,3,2,"cue-expansion-panel",2),e.nVh(7,ut,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&n&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",i.minWidth()),e.R7$(3),e.vxM(i.settings().allowSettingLabel||i.settings().allowSettingTextAlign||i.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(i.settings().allowSettingFilterType||i.settings().allowSettingEnumValues||i.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(i.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(i.extraPanelLabel()?6:-1),e.R7$(),e.vxM(i.settings().allowSettingPostProcess?7:-1))},dependencies:[W,h.n,p.o,M.l,G,_.d,J.p,Q.$,R.a,Ie,c.Kj],encapsulation:2,changeDetection:0})}return o})();const xe=o=>[o],pt=(o,a)=>({$implicit:o,index:a});function gt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-settings-modal",9),e.bIt("updateColumn",function(i){const s=r.eBV(t),u=e.XpG();return r.Njj(u.updateColumnDef(s.index,i))})("close",function(){r.eBV(t);const i=e.XpG();return r.Njj(i.handleModalClose())}),e.k0s()}if(2&o){const t=a,n=e.XpG();e.Y8G("columnDef",t.col)("columnIndex",t.index)("settings",n.settings())}}function ft(o,a){1&o&&e.eu8(0)}function _t(o,a){if(1&o&&e.DNE(0,ft,1,0,"ng-container",13),2&o){const t=e.XpG(),n=t.$implicit,i=t.$index;e.Y8G("ngTemplateOutlet",a.templateRef)("ngTemplateOutletContext",e.l_i(2,pt,n,i))}}function vt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-button",14),e.nI1(1,"transloco"),e.bIt("click",function(){r.eBV(t);const i=e.XpG(),s=i.$implicit,u=i.$index,f=e.XpG();return r.Njj(f.showColumnSettings(s,u))}),e.nrm(2,"cue-button-icon",15),e.k0s()}2&o&&e.Y8G("cueTooltip",e.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function bt(o,a){if(1&o&&(e.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),e.EFF(3),e.k0s(),e.nrm(4,"span",11),e.nVh(5,_t,1,5,"ng-container"),e.nVh(6,vt,3,3,"cue-button",12),e.k0s()()),2&o){let t;const n=a.$implicit,i=e.XpG();e.R7$(3),e.JRh(i.getLabel(n)),e.R7$(2),e.vxM((t=i.columnItemTpl())?5:-1,t),e.R7$(),e.vxM(i.settings().allowEditing?6:-1)}}function Ct(o,a){1&o&&e.eu8(0)}function Mt(o,a){1&o&&e.DNE(0,Ct,1,0,"ng-container",16),2&o&&e.Y8G("ngTemplateOutlet",a.templateRef)}function xt(o,a){if(1&o&&(e.j41(0,"div",8)(1,"cue-typography"),e.EFF(2),e.k0s()()),2&o){const t=a.$implicit,n=e.XpG();e.R7$(2),e.JRh(n.getLabel(t))}}let De=(()=>{class o{templateRef=(0,r.WQX)(e.C4Q);static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueColumnItem",""]]})}return o})(),ye=(()=>{class o{templateRef=(0,r.WQX)(e.C4Q);static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueColumnListFooter",""]]})}return o})(),Dt=(()=>{class o{columnDefs=l.geq.required();columnDefsGross=(0,l.geq)([]);settings=(0,l.hFB)(new Me);shown=(0,l.CGW)();columnItemTpl=(0,l.sbv)(De);columnListFooterTpl=(0,l.sbv)(ye);shownColumns=(0,r.vPA)([]);hiddenColumns=(0,r.vPA)([]);displayColumnSettings=(0,r.vPA)(void 0);onNoColumnDefsGross=(0,r.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,r.QZP)(()=>{const t=this.columnDefs().map(i=>i.field),n=this.columnDefsGross().filter(i=>!t.includes(i.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...n])});drop(t){t.previousContainer===t.container?(0,C.HD)(t.container.data,t.previousIndex,t.currentIndex):(0,C.eg)(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex);const n=this.shownColumns();this.columnDefs.update(()=>[...n]),this.shown.emit(n)}showColumnSettings(t,n){this.displayColumnSettings.set({col:t,index:n})}updateColumnDef(t,n){const i=this.columnDefs().map((s,u)=>u===t?{...s,...n}:s);this.columnDefs.set(i),this.shown.emit(i),this.shownColumns.set(i)}getLabel(t){return t.headerName||ge(t.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(n,i,s){1&n&&e.C6U(s,i.columnItemTpl,De,5)(s,i.columnListFooterTpl,ye,5),2&n&&e.NyB(2)},inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:22,vars:19,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","columnIndex","settings"],["size","xs","color","muted",2,"display","block","margin-bottom","8px"],["direction","row",2,"align-items","stretch"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"updateColumn","close","columnDef","columnIndex","settings"],["front","","justify","space-between","align","center",2,"width","100%"],[2,"display","flex","flex","1"],["variant","tertiary","size","s",3,"cueTooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["variant","tertiary","size","s",3,"click","cueTooltip"],["icon","settings"],[4,"ngTemplateOutlet"]],template:function(n,i){if(1&n&&(e.nVh(0,gt,1,3,"cue-table-column-settings-modal",2),e.j41(1,"cue-typography",3),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"div",7,0),e.bIt("cdkDropListDropped",function(u){return i.drop(u)}),e.Z7z(11,bt,7,3,"div",8,e.Vm6),e.nVh(13,Mt,1,1,"ng-container"),e.k0s()(),e.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.j41(18,"div",7,1),e.bIt("cdkDropListDropped",function(u){return i.drop(u)}),e.Z7z(20,xt,3,1,"div",8,e.Vm6),e.k0s()()()),2&n){let s,u;const f=e.sdS(10),v=e.sdS(19);e.vxM((s=i.displayColumnSettings())?0:-1,s),e.R7$(2),e.JRh(e.bMT(3,9,"components.agGridColumnSelect.dragHint")),e.R7$(5),e.JRh(e.bMT(8,11,"components.agGridColumnSelect.titleShown"));const b=i.shownColumns();e.R7$(2),e.Y8G("cdkDropListData",b)("cdkDropListConnectedTo",e.eq3(15,xe,v)),e.R7$(2),e.Dyx(b),e.R7$(2),e.vxM((u=i.columnListFooterTpl())?13:-1,u),e.R7$(3),e.JRh(e.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const y=i.hiddenColumns();e.R7$(2),e.Y8G("cdkDropListData",y)("cdkDropListConnectedTo",e.eq3(17,xe,f)),e.R7$(2),e.Dyx(y)}},dependencies:[C.O7,C.T1,p.o,h.n,Q.$,R.a,_.d,mt,g.T3,c.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{border:solid 1px #ccc;min-height:60px;flex:1;background:#fff;border-radius:4px;overflow:hidden;display:block}.box[_ngcontent-%COMP%]{padding:20px 10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:#fff;font-size:14px}.draggable[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return o})();function yt(o,a){if(1&o&&(r.qSk(),e.j41(0,"svg",0),e.nrm(1,"path",3)(2,"path",4),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.BMQ("fill",t.colorDark()),e.R7$(),e.BMQ("fill",t.color())}}function wt(o,a){if(1&o&&(r.qSk(),e.j41(0,"svg",1),e.nrm(1,"path",5)(2,"path",6)(3,"path",7),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.BMQ("fill",t.color())}}const X_blue="#175EBB",St={".dwg":X_blue,".dxf":X_blue,".doc":X_blue,".docx":X_blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":X_blue,".pptx":X_blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let kt=(()=>{class o{suffix=l.hFB.required();size=(0,l.hFB)("m");color=(0,d.EW)(()=>St[this.suffix()]??"#9D9998");label=(0,d.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,d.EW)(()=>`size-${this.size()}`);colorDark=(0,d.EW)(()=>{const t=this.color(),n=parseInt(t.slice(1),16),s=n>>8&255,u=255&n;return`#${(Math.floor(.8*(n>>16&255))<<16|Math.floor(.8*s)<<8|Math.floor(.8*u)).toString(16).padStart(6,"0")}`});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(n,i){2&n&&e.HbH(i.className())},inputs:{suffix:[1,"suffix"],size:[1,"size"]},decls:4,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 48 48"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 30"],["size","xs","align","center","weight","semibold"],["d","M40 12H22l-4-4H8c-2.2 0-4 1.8-4 4v8h40v-4c0-2.2-1.8-4-4-4"],["d","M40 12H8c-2.2 0-4 1.8-4 4v20c0 2.2 1.8 4 4 4h32c2.2 0 4-1.8 4-4V16c0-2.2-1.8-4-4-4"],["fill","var(--cue-border-color)","d","M16.2.5H4.1C2.1.5.5 2.1.5 4.1v22.3c0 1.7 1.4 3.1 3.1 3.1h16.8c1.7 0 3.1-1.4 3.1-3.1V7.8h-.1c0-.1-7-7.1-7-7.1h-.1l-.1-.2Z"],["d","M4.1 1C2.4 1 1 2.4 1 4.1v22.3C1 27.8 2.2 29 3.6 29h16.8c1.4 0 2.6-1.2 2.6-2.6V8l-7-7H4.1Z"],["fill","#fff","d","M16 6c0 1.1.9 2 2 2h5l-7-7v5Z","opacity",".3"]],template:function(n,i){1&n&&(e.nVh(0,yt,3,2,":svg:svg",0)(1,wt,4,1,":svg:svg",1),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s()),2&n&&(e.vxM("folder"===i.suffix()?0:1),e.R7$(3),e.JRh(i.label()))},dependencies:[p.o],styles:["[_nghost-%COMP%]{display:block;position:relative;aspect-ratio:30 / 24;width:var(--cue-dim-elem-m)}.size-xs[_nghost-%COMP%]{width:var(--cue-dim-elem-xs)}.size-s[_nghost-%COMP%]{width:var(--cue-dim-elem-s)}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;width:100%;height:auto}[_nghost-%COMP%] cue-typography[_ngcontent-%COMP%]{color:#fff;text-transform:uppercase;position:absolute;left:50%;bottom:24%;transform:translate(-50%)}"]})}return o})(),Tt=(()=>{class o{suffix=(0,r.vPA)("");iconSize=(0,r.vPA)("xs");agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}_apply(t){this.suffix.set(t.value||"folder"),this.iconSize.set({xs:"xs",s:"xs",m:"xs",l:"s",xl:"m"}[t.colDef?.cellRendererParams?.iconSize??t.iconSize??"xs"]??"xs")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-icon-cell-renderer"]],decls:1,vars:2,consts:[[3,"suffix","size"]],template:function(n,i){1&n&&e.nrm(0,"cue-file-icon",0),2&n&&e.Y8G("suffix",i.suffix())("size",i.iconSize())},dependencies:[kt],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%}"],changeDetection:0})}return o})();var Ft=m(6117),Ot=m(1951),Pt=m(1493),Nt=m(356),Rt=m(6279);let It=(()=>{class o{cueFlip=(0,l.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(n,i){2&n&&e.AVh("flipped",i.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return o})();const At=(o,a)=>a.id;function Lt(o,a){if(1&o){const t=e.RV6();e.j41(0,"li",7),e.bIt("click",function(){const i=r.eBV(t).$implicit,s=e.XpG(3);return r.Njj(s.handleSimpleRowClick(i))}),e.j41(1,"cue-typography",8),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",9),e.EFF(4),e.k0s()()}if(2&o){const t=a.$implicit,n=e.XpG(3);e.AVh("active",n.selectedSimpleDocumentId()===t.id),e.R7$(),e.Y8G("noWrap",!0)("title",t.name),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.SpI(" ",(t.suffix||"").replace(".","").toUpperCase()," ")}}function Gt(o,a){if(1&o&&(e.j41(0,"ul",3),e.Z7z(1,Lt,5,6,"li",6,At),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.Dyx(t.simpleDocumentsInt())}}function Et(o,a){if(1&o&&(e.j41(0,"cue-flexcontainer",4)(1,"cue-typography",10),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.SpI(" ",0===t.documentRefs().length&&0===t.documents().length&&t.handlers()?"No documents":t.infoLoading()," ")}}function $t(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",5)(1,"cue-typography",11),e.EFF(2),e.k0s(),e.j41(3,"cue-flexcontainer",12)(4,"cue-button",13),e.bIt("click",function(){r.eBV(t);const i=e.XpG(2);return r.Njj(i.previousSimplePage())}),e.nrm(5,"cue-button-icon",14),e.k0s(),e.j41(6,"cue-button",13),e.bIt("click",function(){r.eBV(t);const i=e.XpG(2);return r.Njj(i.nextSimplePage())}),e.nrm(7,"cue-button-icon",15),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.E5c(" ",t.simpleDisplayStart(),"-",t.simpleDisplayEnd()," / ",t.documentsInt().length," "),e.R7$(2),e.Y8G("disabled",!t.simpleHasPreviousPage()),e.R7$(2),e.Y8G("disabled",!t.simpleHasNextPage())}}function jt(o,a){if(1&o&&(e.j41(0,"div",1),e.nVh(1,Gt,3,0,"ul",3)(2,Et,3,1,"cue-flexcontainer",4),e.nVh(3,$t,8,5,"cue-flexcontainer",5),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.simpleDocumentsInt().length>0?1:2),e.R7$(2),e.vxM(t.documentsInt().length>0?3:-1)}}function zt(o,a){if(1&o&&e.nrm(0,"cue-svg-icon",36),2&o){const t=e.XpG().$implicit;e.Y8G("name",t.icon)}}function Bt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-menu-item",35),e.bIt("click",function(){const i=r.eBV(t).$implicit;return r.Njj(null==i?null:i.action())}),e.nVh(1,zt,1,1,"cue-svg-icon",36),e.EFF(2),e.k0s()}if(2&o){const t=a.$implicit;e.R7$(),e.vxM(t.icon?1:-1),e.R7$(),e.SpI(" ",t.label)}}function Vt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",37),e.bIt("click",function(){r.eBV(t);const i=e.XpG(2);return r.Njj(i.applyTagFilter())}),e.j41(1,"cue-button",38)(2,"cue-button-label"),e.EFF(3,"Apply"),e.k0s()()()}}function Wt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",16),e.mxI("cueFlipChange",function(i){r.eBV(t);const s=e.XpG();return e.DH7(s.flipped,i)||(s.flipped=i),r.Njj(i)}),e.j41(1,"div",17)(2,"cue-card",18)(3,"cue-flexcontainer",19)(4,"cue-menu",20)(5,"cue-button",21,0),e.nrm(7,"cue-button-icon",22),e.k0s(),e.j41(8,"cue-menu-wrap",23),e.Z7z(9,Bt,3,2,"cue-menu-item",null,e.Vm6),e.k0s()(),e.j41(11,"cue-button",24),e.nI1(12,"transloco"),e.bIt("click",function(){r.eBV(t);const i=e.XpG();return r.Njj(i.flipped.set(!0))}),e.nrm(13,"cue-button-icon",25),e.k0s()(),e.j41(14,"div",26)(15,"cue-ag-grid",27),e.bIt("gridApiReady",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.onGridReady(i))})("selectedRows",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.clickedDocument.emit(i[0]))}),e.k0s()()(),e.j41(16,"cue-card",28)(17,"cue-flexcontainer",19)(18,"cue-button",29),e.bIt("click",function(){r.eBV(t);const i=e.XpG();return r.Njj(i.showFront())}),e.nrm(19,"cue-button-icon",30),e.k0s()(),e.j41(20,"cue-flexcontainer",31)(21,"cue-word-cloud",32),e.bIt("selectionChanged",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.tagSelection.set(i))}),e.k0s(),e.nVh(22,Vt,4,0,"cue-flexcontainer",33),e.k0s(),e.j41(23,"cue-ag-grid-column-select",34),e.mxI("columnDefsChange",function(i){r.eBV(t);const s=e.XpG();return e.DH7(s.columnDefs,i)||(s.columnDefs=i),r.Njj(i)}),e.k0s()()()()}if(2&o){const t=e.XpG();e.R50("cueFlip",t.flipped),e.R7$(9),e.Dyx(t.tableMenu()),e.R7$(2),e.Y8G("cueTooltip",e.bMT(12,23,"components.documentList.tooltipColumnSettings")),e.R7$(4),e.AVh("hidden",t.tableHidden()),e.Y8G("paginationPageSize",t.pageSize())("rowSelection",t.rowSelection)("rowData",t.documentsInt())("columnDefs",t.columnDefs())("overlaySettings",t.overlaySettings)("overlayActions",t.overlayActions()),e.R7$(5),e.AVh("hidden",!t.showTagFilterCloud()),e.R7$(),e.Y8G("words",t.tags())("clickable",!0)("overflow",!0)("multiSelect",!0)("highlightSelection",!0),e.R7$(),e.vxM(t.filterToBeApplied()?22:-1),e.R7$(),e.AVh("hidden",t.showTagFilterCloud()),e.Y8G("settings",t.columnSelectSettings),e.R50("columnDefs",t.columnDefs),e.Y8G("columnDefsGross",t.columnDefsGross())}}let Ht=(()=>{class o{documents=(0,l.hFB)([]);availableContentCategories=(0,l.hFB)(void 0);detailedView=(0,l.hFB)(!1);simple=(0,l.hFB)(!1);pageSize=(0,l.hFB)(10);prefetchPages=(0,l.hFB)(3);privileges=(0,l.hFB)();showOpenInDocumentViewerAction=(0,l.hFB)(!0);showOpenInFileManagerAction=(0,l.hFB)(!0);customOverlayActions=(0,l.hFB)([]);documentRefs=(0,l.hFB)([]);handlers=(0,l.hFB)(void 0);documentData=(0,l.hFB)({});clickedDocument=(0,l.CGW)();clickedDownloadDocument=(0,l.CGW)();clickedOpenInDir=(0,l.CGW)();clickedOpen=(0,l.CGW)();flipped=(0,r.vPA)(!1);simplePageIndex=(0,r.vPA)(0);selectedSimpleDocumentId=(0,r.vPA)(null);_simpleBufferedUntilIndex=(0,r.vPA)(0);_tableBufferedUntilIndex=(0,r.vPA)(0);_lastDocumentRefsKey="";_gridApi=null;_requestedIds=new Set;_isSorted=!1;_viewportCheckTimerId=null;_lazyMode=(0,d.EW)(()=>this.documentRefs().length>0);_leafContentCategoryIris=(0,d.EW)(()=>{const t=this.availableContentCategories();if(!t)return null;const n=new Set(t.map(i=>i.parent).filter(i=>!!i));return new Set(t.filter(i=>!n.has(i.iri)).map(i=>i.iri))});labelDownload=(0,c.Xx)("components.documentList.labelDownload");labelName=(0,c.Xx)("components.documentList.labelName");labelOpenInFileManager=(0,c.Xx)("components.documentList.labelOpenInFileManager");labelOpenInDocumentViewer=(0,c.Xx)("components.documentList.labelOpenInDocumentViewer");labelSubject=(0,c.Xx)("components.documentList.labelSubject");labelSummary=(0,c.Xx)("components.documentList.labelSummary");labelPages=(0,c.Xx)("components.documentList.labelPages");labelSize=(0,c.Xx)("components.documentList.labelSize");labelCategories=(0,c.Xx)("components.documentList.labelCategories");labelType=(0,c.Xx)("components.documentList.labelType");buttonShowCloudFilter=(0,c.Xx)("components.documentList.buttonShowCloudFilter");buttonHideCloudFilter=(0,c.Xx)("components.documentList.buttonHideCloudFilter");buttonDownloadCSV=(0,c.Xx)("components.documentList.buttonDownloadCSV");infoLoading=(0,c.Xx)("components.documentList.infoLoading");overlaySettings={...new Ot.K,mode:"row"};overlayActions=(0,d.EW)(()=>{const t=[{label:this.labelDownload(),icon:"download",action:n=>{this.handlers()?.requestDownload?.(n.rowData),this.clickedDownloadDocument.emit(n.rowData)}}];return this.showOpenInDocumentViewerAction()&&t.push({label:this.labelOpenInDocumentViewer(),icon:"document",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpen?.(i,n.rowData),this.clickedOpen.emit(n.rowData)}}),this.showOpenInFileManagerAction()&&t.push({label:this.labelOpenInFileManager(),icon:"folder",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpenInDir?.(i,n.rowData),this.clickedOpenInDir.emit(n.rowData)}}),[...t,...this.customOverlayActions()||[]]});documentsInt=(0,d.EW)(()=>{let t;if(this._lazyMode()){const n=this.documentRefs(),i=this.documentData()||{};t=n.map(s=>{const u=i[s.id];return u?{...u,pages:s.pages??u.pages,...void 0!==s.sources?{sources:s.sources}:{},...void 0!==s.relevance?{relevance:s.relevance}:{},name:se(u.path),loading:!1}:{id:s.id,path:s.id,suffix:"",size:0,contentIRI:s.id,tags:[],summary:"",categories:[],relevance:s.relevance??0,pages:s.pages,sources:s.sources,name:this.infoLoading(),loading:!0}})}else t=(this.documents()||[]).map(n=>({...n,name:se(n.path),loading:!1}));return this.tagFilter().length?t.filter(n=>n.tags?.some(i=>this.tagFilter().some(s=>s.toLowerCase()===i.toLowerCase()))):t});simplePageCount=(0,d.EW)(()=>Math.max(1,Math.ceil(this.documentsInt().length/Math.max(1,this.pageSize()))));simpleStartIndex=(0,d.EW)(()=>this.simplePageIndex()*Math.max(1,this.pageSize()));simpleEndIndex=(0,d.EW)(()=>this.simpleStartIndex()+Math.max(1,this.pageSize()));simpleDocumentsInt=(0,d.EW)(()=>this.documentsInt().slice(this.simpleStartIndex(),this.simpleEndIndex()));simpleHasPreviousPage=(0,d.EW)(()=>this.simplePageIndex()>0);simpleHasNextPage=(0,d.EW)(()=>this.simplePageIndex()<this.simplePageCount()-1);simpleDisplayStart=(0,d.EW)(()=>this.documentsInt().length?this.simpleStartIndex()+1:0);simpleDisplayEnd=(0,d.EW)(()=>Math.min(this.simpleEndIndex(),this.documentsInt().length));tags=(0,d.EW)(()=>{const t=this.documentsInt(),n=[];return t.forEach(i=>{i.tags?.forEach(s=>n.push(s))}),n});showPageColumn=(0,d.EW)(()=>this.documentsInt().some(t=>void 0!==t.pages));hasSubjects=(0,d.EW)(()=>this.documentsInt().some(t=>void 0!==t.subject&&""!==t.subject));columnSelectSettings=new Me;columnDefs=(0,r.vPA)([]);columnDefsGross=(0,r.vPA)([]);tagSelection=(0,r.vPA)([]);tagFilter=(0,r.vPA)([]);showTagFilterCloud=(0,r.vPA)(!1);filterToBeApplied=(0,d.EW)(()=>{const t=this.tagSelection(),n=this.tagFilter();return JSON.stringify(t.sort())!==JSON.stringify(n.sort())});tableMenu=(0,d.EW)(()=>{const t=[];return this.showTagFilterCloud()?t.push({icon:"cloud-funnel",label:this.buttonHideCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!1),this.showTagFilterCloud.set(!1)}}):t.push({icon:"cloud-funnel",label:this.buttonShowCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!0),this.showTagFilterCloud.set(!0)}}),t.push({icon:"download",label:this.buttonDownloadCSV(),action:()=>function P(o,a,t="table.csv"){const n=function T(o,a){const t=function Y(o,a){return o.map(t=>{const n={};return"id"in t&&(n.id=t.id),"key"in t&&(n.key=t.key),a.forEach(i=>{let s;"function"==typeof i.valueGetter?s=i.valueGetter({data:t,colDef:i,getValue:f=>t[f],node:void 0,column:void 0,api:void 0,context:void 0}):i.field&&(s=t[i.field]),"function"==typeof i.valueFormatter&&(s=i.valueFormatter({value:s,data:t,colDef:i,node:void 0,column:void 0,api:void 0,context:void 0}));const u=i.headerName||i.colId||i.field;void 0!==u&&(n[u]=s)}),n})}(o,a);if(0===t.length)return"";const n=t.some(u=>"id"in u),i=[];n&&i.push("id"),a.forEach(u=>{const f=u.headerName||u.colId||u.field;f&&"id"!==f&&!i.includes(f)&&i.push(f)});const s=t.map(u=>{const f={};return i.forEach(v=>{f[v]=u[v]}),f});return F().unparse(s,{columns:i})}(o,a);(0,w.YN)(n,t,"text/csv")}(this.documentsInt(),this.columnDefs())}),t});hideCloud(){this.flipped.set(!0),this.showTagFilterCloud.set(!0)}tableHidden=(0,d.EW)(()=>this.showTagFilterCloud()||this.flipped());rowSelection={mode:"singleRow",checkboxes:!1,enableClickSelection:!0};whenTableDataKnown=(0,r.QZP)(()=>{this.simple()||this._buildInitialColumnDefs(this.detailedView())});whenSimpleDataChanges=(0,r.QZP)(()=>{const t=this.documentsInt().length,n=Math.max(1,this.pageSize()),i=Math.max(0,Math.ceil(t/n)-1);this.simplePageIndex()>i&&this.simplePageIndex.set(i)});whenRefsChange=(0,r.QZP)(()=>{const n=this.documentRefs().map(i=>i.id).join("|");n!==this._lastDocumentRefsKey&&(this._lastDocumentRefsKey=n,this._requestedIds.clear(),this._simpleBufferedUntilIndex.set(0),this._tableBufferedUntilIndex.set(0),this.simplePageIndex.set(0))});whenSimpleLazyDataNeeded=(0,r.QZP)(()=>{if(!this.simple()||!this._lazyMode()||!this.handlers())return;const t=this.documentRefs();if(!t.length)return;const n=Math.max(1,this.pageSize()),s=n*Math.max(1,this.prefetchPages()),u=t.length,f=this.simpleStartIndex(),v=Math.min(u,f+n),b=this._simpleBufferedUntilIndex();let y=null;if(0===b?y=0:(f>=Math.max(0,b-n)||v>b)&&(y=b),null===y||y>=u)return;const A=Math.min(u,y+s),z=t.slice(y,A).map(j=>j.id).filter(j=>!this._requestedIds.has(j));this._simpleBufferedUntilIndex.set(Math.max(b,A)),z.length&&(z.forEach(j=>this._requestedIds.add(j)),setTimeout(()=>this.handlers()?.requestData(z)))});previousSimplePage(){this.simpleHasPreviousPage()&&this.simplePageIndex.update(t=>Math.max(0,t-1))}nextSimplePage(){this.simpleHasNextPage()&&this.simplePageIndex.update(t=>Math.min(this.simplePageCount()-1,t+1))}handleSimpleRowClick(t){this.selectedSimpleDocumentId.set(t.id),this.handleRowClick(t)}handleRowClick(t){var n=this;return(0,D.A)(function*(){n.clickedDocument.emit(t),window.cueDetachCellOverlay&&window.cueDetachCellOverlay(),n.overlayVisible&&"function"==typeof n.overlayVisible.set&&n.overlayVisible.set(!1)})()}showFront(){this.flipped.set(!1),this.showTagFilterCloud.set(!1)}applyTagFilter(){this.tagFilter.set(this.tagSelection()),this.flipped.set(!1),this.showTagFilterCloud.set(!1)}ngOnDestroy(){null!==this._viewportCheckTimerId&&(clearTimeout(this._viewportCheckTimerId),this._viewportCheckTimerId=null),this._gridApi=null}onGridReady(t){this._gridApi=t,t.addEventListener("viewportChanged",()=>this._checkViewport()),t.addEventListener("modelUpdated",()=>this._checkViewport()),t.addEventListener("paginationChanged",()=>this._checkViewport()),t.addEventListener("sortChanged",()=>{const n=t.getColumnState();this._isSorted=n.some(i=>null!=i.sort),this._isSorted&&this._requestAllUnloaded()}),this._viewportCheckTimerId=setTimeout(()=>{this._viewportCheckTimerId=null,this._checkViewport()},100)}_checkViewport(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;if(this._isSorted)return void this._requestAllUnloaded();const t=this.documentRefs(),n=t.length;if(!n)return;const i=Math.max(1,this._gridApi.paginationGetPageSize?.()??10),u=Math.max(0,this._gridApi.paginationGetCurrentPage?.()??0)*i,f=Math.min(n,u+i),v=this._tableBufferedUntilIndex();let b=null;if(0===v?b=0:(u>=Math.max(0,v-i)||f>v)&&(b=v),null===b||b>=n)return;const y=i*Math.max(1,this.prefetchPages()),A=Math.min(n,b+y),z=t.slice(b,A).map(j=>j.id).filter(j=>!this._requestedIds.has(j));this._tableBufferedUntilIndex.set(Math.max(v,A)),z.length&&(z.forEach(j=>this._requestedIds.add(j)),setTimeout(()=>this.handlers()?.requestData(z)))}_requestAllUnloaded(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;const t=[];if(this._gridApi.forEachNode(n=>{const i=n.data;i?.loading&&!this._requestedIds.has(i.contentIRI)&&t.push(i.contentIRI)}),t.length>0){const n=Array.from(new Set(t));n.forEach(i=>this._requestedIds.add(i)),setTimeout(()=>this.handlers()?.requestData(n))}}_buildInitialColumnDefs(t){const n=[],i=[];n.push({field:"name",headerName:this.labelName(),width:t?250:120,filter:!0,valueGetter:v=>!v.data?.name&&v.data?.loading?"Loading...":v.data?.name||v.data?.contentIRI}),this.hasSubjects()&&n.push({field:"subject",headerName:this.labelSubject(),flex:1,filter:!0,cellRenderer:K,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0});const s={field:"summary",headerName:this.labelSummary(),flex:1,filter:!0,cellRenderer:K,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0};this.detailedView()||(s.tooltipField="summary"),t?n.push(s):i.push(s),this.showPageColumn()&&n.push({field:"pages",headerName:this.labelPages(),width:100,filter:!0,valueGetter:v=>Array.isArray(v.data?.pages)?v.data.pages.map(b=>b.page).join(", "):""});const u={field:"size",headerName:this.labelSize(),width:100,filter:!0,valueGetter:v=>(0,Pt.b)(v.data?.size||0)};t?n.push(u):i.push(u);const f={field:"categories",headerName:this.labelCategories(),width:120,filter:!0,valueGetter:v=>{const b=v.data?.categories||[],y=this._leafContentCategoryIris(),A=y?b.filter(j=>y.has(j)):b,z=A.slice(0,3).map(j=>this._getContentCategoryLabel(j)).join(", ");return A.length>3?`${z}...`:z}};t?n.push(f):i.push(f),n.push({field:"suffix",headerName:this.labelType(),width:80,filter:!0,headerClass:"header-align-right",cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:Tt}),this.columnDefs.update(()=>[...n]),this.columnDefsGross.update(()=>[...n,...i])}_getContentCategoryLabel(t){const n=this.availableContentCategories();if(void 0!==n){const i=n.find(s=>s.iri===t);if(i)return i.label;console.warn(`No label found for content category IRI: ${t}`)}else console.warn("No availableContentCategories provided to DocumentList component");return(o=>{const a=o.split("#").pop()??o,t={AgreementDocument:"Agreement",ArchitecturalDesignDocument:"Architectural Design",AsBuiltDocument:"As-Built",BudgetEstimateDocument:"Budget Estimate",CertificationDocument:"Certification",ComplianceDocument:"Compliance",CorrespondenceDocument:"Correspondence",ConstructionContract:"Construction Contract",ConstructionProcessDocument:"Construction Process",ContractCondition:"Contract Condition",ContractRole:"Contract Role",ContractualDocument:"Contract",CostControlDocument:"Cost Control",DesignDocument:"Design Document",EmailAddress:"Email Address",EngineeringDesignDocument:"Engineering Design",FinancialAdministrativeDocument:"Financial/Administrative",FunctionalRequirementsDocument:"Functional Requirements",InspectionDocument:"Inspection",InsuranceBondDocument:"Insurance/Bond",InteriorDesignDocument:"Interior Design",MarketingCloseoutDocument:"Marketing Closeout",MiscDocument:"Miscellaneous",OperationManual:"Operation Manual",OperationsMaintenanceDocument:"Operations & Maintenance",OperationsManualDocument:"Operations Manual",OtherDocument:"Other",OtherContent:"Other Content",ProgressStatusReport:"Progress Status Report",QualityAssuranceDocument:"Quality Assurance",QualityControlDocument:"Quality Control",RegulatoryComplianceDocument:"Regulatory Compliance",SafetyDocument:"Safety",ScheduleDocument:"Schedule",SiteAssessmentDocument:"Site Assessment",TechnicalRequirementsDocument:"Technical Requirements",TechnicalSpecificationDocument:"Technical Specification",TenderingDocument:"Tendering Document",TermsAndConditionsDocument:"Terms & Conditions"};return void 0===t[a]&&console.log(`No pretty label for category: ${a}`),t[a]??a})(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-doc-list"]],inputs:{documents:[1,"documents"],availableContentCategories:[1,"availableContentCategories"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],prefetchPages:[1,"prefetchPages"],privileges:[1,"privileges"],showOpenInDocumentViewerAction:[1,"showOpenInDocumentViewerAction"],showOpenInFileManagerAction:[1,"showOpenInFileManagerAction"],customOverlayActions:[1,"customOverlayActions"],documentRefs:[1,"documentRefs"],handlers:[1,"handlers"],documentData:[1,"documentData"]},outputs:{clickedDocument:"clickedDocument",clickedDownloadDocument:"clickedDownloadDocument",clickedOpenInDir:"clickedOpenInDir",clickedOpen:"clickedOpen"},decls:2,vars:1,consts:[["trigger",""],[1,"simple-container",2,"width","100%","height","auto"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlip"],[1,"simple-list"],["justify","center",1,"simple-empty"],["direction","row","justify","space-between","align","center",2,"padding","4px 8px"],[1,"simple-item",3,"active"],[1,"simple-item",3,"click"],["size","s",1,"simple-item-name",3,"noWrap","title"],["size","xs",1,"simple-item-meta"],["size","s"],["size","xs"],["direction","row","gap","s"],["size","xs","variant","tertiary",3,"click","disabled"],["icon","paginator-back"],["icon","paginator-next"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlipChange","cueFlip"],[1,"flip-content"],[1,"card-face","front",2,"width","100%","height","auto"],["direction","row","justify","end",2,"padding","2px"],["positioning","bottomleft"],["trigger","","variant","tertiary","size","s"],["icon","more-vert"],["menu",""],["variant","accent","size","s",3,"click","cueTooltip"],["icon","settings"],[2,"position","relative"],[3,"gridApiReady","selectedRows","paginationPageSize","rowSelection","rowData","columnDefs","overlaySettings","overlayActions"],[1,"card-face","back",2,"width","100%","height","auto"],["variant","accent","size","s","cueTooltip","Back to table",3,"click"],["icon","arrow-back"],["justify","center",2,"height","350px"],[2,"height","100%","width","100%",3,"selectionChanged","words","clickable","overflow","multiSelect","highlightSelection"],["justify","center",1,"word-cloud-actions"],[3,"columnDefsChange","settings","columnDefs","columnDefsGross"],[3,"click"],["before","",3,"name"],["justify","center",1,"word-cloud-actions",3,"click"],["variant","primary"]],template:function(n,i){1&n&&e.nVh(0,jt,4,2,"div",1)(1,Wt,24,25,"div",2),2&n&&e.vxM(i.simple()?0:1)},dependencies:[h.n,oe,Q.$,le.L,It,$.Card,R.a,ue.R,Dt,Nt.M,Rt.D,Ft.W,x.A,_.d,p.o,c.Kj],styles:[".hidden[_ngcontent-%COMP%]{display:none}.word-cloud-actions[_ngcontent-%COMP%]{position:absolute;z-index:10;right:0;left:0;bottom:10px;pointer-events:none}.word-cloud-actions[_ngcontent-%COMP%] cue-button[_ngcontent-%COMP%]{pointer-events:auto}.simple-container[_ngcontent-%COMP%]{width:100%}.simple-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:4px;max-height:420px;overflow-y:auto}.simple-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:6px;cursor:pointer;transition:background .1s}.simple-item[_ngcontent-%COMP%]:hover{background:var(--cue-color-ultralightgray)}.simple-item.active[_ngcontent-%COMP%]{background:var(--cue-color-lightgray)}.simple-item-name[_ngcontent-%COMP%]{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.simple-item-meta[_ngcontent-%COMP%]{font-size:11px;color:var(--cue-color-midgray)}.simple-empty[_ngcontent-%COMP%]{padding:12px}"],changeDetection:0})}return o})();function Yt(o,a){if(1&o&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-typography",2),e.EFF(2),e.k0s()()),2&o){const t=e.XpG();e.R7$(2),e.SpI(" ",t.errorMessage()," ")}}function Xt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-doc-list",3),e.bIt("clickedDocument",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.clickedDocument.emit(i))})("clickedDownloadDocument",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.clickedDownloadDocument.emit(i))})("clickedOpenInDir",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.clickedOpenInDir.emit(i))})("clickedOpen",function(i){r.eBV(t);const s=e.XpG();return r.Njj(s.clickedOpen.emit(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("documentRefs",t.documentRefs())("documentData",t.documentData())("handlers",t.handlers())("availableContentCategories",t.availableContentCategories())("detailedView",t.detailedView())("simple",t.simple())("pageSize",t.pageSize())("prefetchPages",t.prefetchPages())("showOpenInDocumentViewerAction",t.showOpenInDocumentViewerAction())("showOpenInFileManagerAction",t.showOpenInFileManagerAction())("customOverlayActions",t.customOverlayActions())}}function we(o){return o.split("?")[0].trim()}let Qt=(()=>{class o{projectId=(0,l.hFB)(void 0);uuids=(0,l.hFB)([]);sdkState=(0,l.hFB)(void 0);detailedView=(0,l.hFB)(!1);simple=(0,l.hFB)(!1);pageSize=(0,l.hFB)(10);prefetchPages=(0,l.hFB)(3);showOpenInDocumentViewerAction=(0,l.hFB)(!1);showOpenInFileManagerAction=(0,l.hFB)(!1);customMenuItems=(0,l.hFB)([]);clickedDocument=(0,l.CGW)();clickedDownloadDocument=(0,l.CGW)();clickedOpenInDir=(0,l.CGW)();clickedOpen=(0,l.CGW)();state=(0,r.vPA)("idle");errorMessage=(0,r.vPA)(null);documentData=(0,r.vPA)({});availableContentCategories=(0,r.vPA)(void 0);documentRefs=(0,d.EW)(()=>{const t=new Set;return(this.uuids()??[]).map(we).filter(n=>!!n).filter(n=>!t.has(n)&&(t.add(n),!0)).map(n=>({id:n}))});customOverlayActions=(0,d.EW)(()=>(this.customMenuItems()||[]).map(n=>({label:n.label,icon:n.icon,action:i=>{n.action(i.rowData,i)}})));handlers=(0,d.EW)(()=>{var t=this;const n=this._docs();if(n)return{requestData:(i=(0,D.A)(function*(s){const u=s.map(we).filter(v=>!!v),f=u.filter(v=>!t.documentData()[v]);if(console.debug("[CueDocumentListWC] requestData",{requestedCount:u.length,missingCount:f.length,missing:f}),f.length)try{const v=n,b=t.simple()&&v.fetchDocumentDataSimple?yield v.fetchDocumentDataSimple(f):yield n.fetchDocumentData(f);console.debug("[CueDocumentListWC] fetchDocumentData resolved",{fetchedCount:Object.keys(b).length,ids:Object.keys(b)});const y={};Object.values(b).forEach(A=>{y[A.id]=function Ut(o){return{id:o.id,path:o.path,suffix:o.suffix,size:o.size,contentIRI:o.contentIRI,providerId:o.providerId,tags:o.tags??[],summary:o.summary??"",categories:o.categories??[],subject:o.subject,relevance:0}}(A)}),Object.keys(y).length>0&&t.documentData.update(A=>({...A,...y}))}catch(v){console.error("[CueDocumentListWC] Failed to fetch document data:",v),t.errorMessage.set(v instanceof Error?v.message:String(v)),t.state.set("error")}}),function(u){return i.apply(this,arguments)}),requestDownload:function(){var i=(0,D.A)(function*(s){const u=t._cue(),f=t.projectId();if(u&&f)try{const v=yield u.storage.getDownloadUrl(f,s.id,s.suffix,"raw"),b=yield fetch(v);if(!b.ok)throw new Error(`Download failed: ${b.status} ${b.statusText}`);const y=yield b.blob(),A=se(s.path)||`${s.id}${s.suffix||""}`;(0,w.KE)(y,A)}catch(v){console.error("[CueDocumentListWC] Failed to download document:",v)}});return function(u){return i.apply(this,arguments)}}(),requestOpen:(i,s)=>{console.log("[CueDocumentListWC] requestOpen",{documentUUID:i,document:s})},requestOpenInDir:(i,s)=>{console.log("[CueDocumentListWC] requestOpenInDir",{documentUUID:i,document:s})}};var i});_cue=(0,r.vPA)(void 0);_docs=(0,r.vPA)(void 0);_ownedView;_unsubscribeCategories;_lastSetupSignature;constructor(){(0,r.QZP)(()=>{const t=this.projectId(),n=this.sdkState(),i=n?.language??"en";if(console.debug("[CueDocumentListWC] input state changed",{projectId:t,uuids:this.uuids().length,hasSdkState:!!n,hasCue:!!n?.cue,hasView:!!n?.view,hasDocuments:!!n?.documents}),!t||!n)return this._clearRuntimeState(),void this.state.set("idle");const s={projectId:t,cue:n.cue,view:n.view,documents:n.documents,language:i,simple:this.simple()};if(this._isSameSetupSignature(s))return this.state.set("ready"),void this.errorMessage.set(null);this._setupFromSdkState(t,n),this._lastSetupSignature=s,this.state.set("ready"),this.errorMessage.set(null)}),(0,r.QZP)(()=>{const t=new Set(this.documentRefs().map(n=>n.id));this.documentData.update(n=>Object.fromEntries(Object.entries(n).filter(([s])=>t.has(s))))})}ngOnDestroy(){this._cleanupOwnedView(),this._unsubscribeCategories?.(),this._unsubscribeCategories=void 0}_setupFromSdkState(t,n){const i=n.language??"en";if(this.documentData.set({}),this._cleanupOwnedView(),this._unsubscribeCategories?.(),this._unsubscribeCategories=void 0,this.availableContentCategories.set(n.availableContentCategories?n.availableContentCategories:void 0),n.documents)return n.documents.setLanguage(i),this._docs.set(n.documents),void this._cue.set(n.cue);if(n.view)return n.view.setLanguage(i),this._docs.set(n.view.documents),this._cue.set(n.cue),void(this.simple()||this._bindCategoriesFromView(n.view));if(n.cue){if(this.simple())return this._docs.set(n.cue.createProjectDocuments(t)),this._cue.set(n.cue),void this.availableContentCategories.set(void 0);const s=n.cue.createProjectView(t,{language:i});return this._ownedView=s,this._docs.set(s.documents),this._cue.set(n.cue),void this._bindCategoriesFromView(s)}this._docs.set(void 0),this._cue.set(void 0),this.errorMessage.set("sdkState must include cue, view, or documents to load data."),this.state.set("error")}_bindCategoriesFromView(t){const n=()=>{this.availableContentCategories.set(t.availableContentCategories.get())};n(),this._unsubscribeCategories=t.availableContentCategories.subscribe(n)}_clearRuntimeState(){this._cleanupOwnedView(),this._unsubscribeCategories?.(),this._unsubscribeCategories=void 0,this._docs.set(void 0),this._cue.set(void 0),this.documentData.set({}),this.availableContentCategories.set(void 0),this.errorMessage.set(null),this._lastSetupSignature=void 0}_cleanupOwnedView(){this._ownedView&&(this._ownedView.destroy(),this._ownedView=void 0)}_isSameSetupSignature(t){const n=this._lastSetupSignature;return!!n&&n.projectId===t.projectId&&n.cue===t.cue&&n.view===t.view&&n.documents===t.documents&&n.language===t.language&&n.simple===t.simple}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-document-list"]],inputs:{projectId:[1,"projectId"],uuids:[1,"uuids"],sdkState:[1,"sdkState"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],prefetchPages:[1,"prefetchPages"],showOpenInDocumentViewerAction:[1,"showOpenInDocumentViewerAction"],showOpenInFileManagerAction:[1,"showOpenInFileManagerAction"],customMenuItems:[1,"customMenuItems"]},outputs:{clickedDocument:"clickedDocument",clickedDownloadDocument:"clickedDownloadDocument",clickedOpenInDir:"clickedOpenInDir",clickedOpen:"clickedOpen"},decls:2,vars:1,consts:[["direction","column","align","center","justify","center",2,"height","100%","width","100%","padding","8px"],[3,"documentRefs","documentData","handlers","availableContentCategories","detailedView","simple","pageSize","prefetchPages","showOpenInDocumentViewerAction","showOpenInFileManagerAction","customOverlayActions"],[2,"color","#c44","font-size","13px"],[3,"clickedDocument","clickedDownloadDocument","clickedOpenInDir","clickedOpen","documentRefs","documentData","handlers","availableContentCategories","detailedView","simple","pageSize","prefetchPages","showOpenInDocumentViewerAction","showOpenInFileManagerAction","customOverlayActions"]],template:function(n,i){1&n&&e.nVh(0,Yt,3,1,"cue-flexcontainer",0)(1,Xt,1,11,"cue-doc-list",1),2&n&&e.vxM("error"===i.state()?0:1)},dependencies:[g.MD,Ht,h.n,p.o],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return o})()},7374(E){E.exports=function(){"use strict";var m=6e4,D=36e5,l="millisecond",r="second",d="minute",g="hour",w="day",k="week",F="month",Y="quarter",T="year",P="date",e="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var p=["th","st","nd","rd"],h=C%100;return"["+C+(p[(h-20)%10]||p[h]||p[0])+"]"}},ee=function(C,p,h){var _=String(C);return!_||_.length>=p?C:""+Array(p+1-_.length).join(h)+C},te={s:ee,z:function(C){var p=-C.utcOffset(),h=Math.abs(p),_=Math.floor(h/60),c=h%60;return(p<=0?"+":"-")+ee(_,2,"0")+":"+ee(c,2,"0")},m:function C(p,h){if(p.date()<h.date())return-C(h,p);var _=12*(h.year()-p.year())+(h.month()-p.month()),c=p.clone().add(_,F),M=h-c<0,x=p.clone().add(_+(M?-1:1),F);return+(-(_+(h-c)/(M?c-x:x-c))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:F,y:T,w:k,d:w,D:P,h:g,m:d,s:r,ms:l,Q:Y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return void 0===C}},B="en",V={};V[B]=q;var oe="$isDayjsObject",Q=function(C){return C instanceof se||!(!C||!C[oe])},le=function C(p,h,_){var c;if(!p)return B;if("string"==typeof p){var M=p.toLowerCase();V[M]&&(c=M),h&&(V[M]=h,c=M);var x=p.split("-");if(!c&&x.length>1)return C(x[0])}else{var O=p.name;V[O]=p,c=O}return!_&&c&&(B=c),c||!_&&B},R=function(C,p){if(Q(C))return C.clone();var h="object"==typeof p?p:{};return h.date=C,h.args=arguments,new se(h)},S=te;S.l=le,S.i=Q,S.w=function(C,p){return R(C,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var se=function(){function C(h){this.$L=le(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[oe]=!0}var p=C.prototype;return p.parse=function(h){this.$d=function(_){var c=_.date,M=_.utc;if(null===c)return new Date(NaN);if(S.u(c))return new Date;if(c instanceof Date)return new Date(c);if("string"==typeof c&&!/Z$/i.test(c)){var x=c.match(U);if(x){var O=x[2]-1||0,I=(x[7]||"0").substring(0,3);return M?new Date(Date.UTC(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,I)):new Date(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,I)}}return new Date(c)}(h),this.init()},p.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},p.$utils=function(){return S},p.isValid=function(){return this.$d.toString()!==e},p.isSame=function(h,_){var c=R(h);return this.startOf(_)<=c&&c<=this.endOf(_)},p.isAfter=function(h,_){return R(h)<this.startOf(_)},p.isBefore=function(h,_){return this.endOf(_)<R(h)},p.$g=function(h,_,c){return S.u(h)?this[_]:this.set(c,h)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(h,_){var c=this,M=!!S.u(_)||_,x=S.p(h),O=function(ie,W){var J=S.w(c.$u?Date.UTC(c.$y,W,ie):new Date(c.$y,W,ie),c);return M?J:J.endOf(w)},I=function(ie,W){return S.w(c.toDate()[ie].apply(c.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(W)),c)},G=this.$W,$=this.$M,H=this.$D,ae="set"+(this.$u?"UTC":"");switch(x){case T:return M?O(1,0):O(31,11);case F:return M?O(1,$):O(0,$+1);case k:var ne=this.$locale().weekStart||0,re=(G<ne?G+7:G)-ne;return O(M?H-re:H+(6-re),$);case w:case P:return I(ae+"Hours",0);case g:return I(ae+"Minutes",1);case d:return I(ae+"Seconds",2);case r:return I(ae+"Milliseconds",3);default:return this.clone()}},p.endOf=function(h){return this.startOf(h,!1)},p.$set=function(h,_){var c,M=S.p(h),x="set"+(this.$u?"UTC":""),O=(c={},c[w]=x+"Date",c[P]=x+"Date",c[F]=x+"Month",c[T]=x+"FullYear",c[g]=x+"Hours",c[d]=x+"Minutes",c[r]=x+"Seconds",c[l]=x+"Milliseconds",c)[M],I=M===w?this.$D+(_-this.$W):_;if(M===F||M===T){var G=this.clone().set(P,1);G.$d[O](I),G.init(),this.$d=G.set(P,Math.min(this.$D,G.daysInMonth())).$d}else O&&this.$d[O](I);return this.init(),this},p.set=function(h,_){return this.clone().$set(h,_)},p.get=function(h){return this[S.p(h)]()},p.add=function(h,_){var c,M=this;h=Number(h);var x=S.p(_),O=function($){var H=R(M);return S.w(H.date(H.date()+Math.round($*h)),M)};if(x===F)return this.set(F,this.$M+h);if(x===T)return this.set(T,this.$y+h);if(x===w)return O(1);if(x===k)return O(7);var I=(c={},c[d]=m,c[g]=D,c[r]=1e3,c)[x]||1,G=this.$d.getTime()+h*I;return S.w(G,this)},p.subtract=function(h,_){return this.add(-1*h,_)},p.format=function(h){var _=this,c=this.$locale();if(!this.isValid())return c.invalidDate||e;var M=h||"YYYY-MM-DDTHH:mm:ssZ",x=S.z(this),O=this.$H,I=this.$m,G=this.$M,$=c.weekdays,H=c.months,ne=function(W,J,K,ce){return W&&(W[J]||W(_,M))||K[J].slice(0,ce)},re=function(W){return S.s(O%12||12,W,"0")},ie=c.meridiem||function(W,J,K){var ce=W<12?"AM":"PM";return K?ce.toLowerCase():ce};return M.replace(Z,function(W,J){return J||function(K){switch(K){case"YY":return String(_.$y).slice(-2);case"YYYY":return S.s(_.$y,4,"0");case"M":return G+1;case"MM":return S.s(G+1,2,"0");case"MMM":return ne(c.monthsShort,G,H,3);case"MMMM":return ne(H,G);case"D":return _.$D;case"DD":return S.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return ne(c.weekdaysMin,_.$W,$,2);case"ddd":return ne(c.weekdaysShort,_.$W,$,3);case"dddd":return $[_.$W];case"H":return String(O);case"HH":return S.s(O,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ie(O,I,!0);case"A":return ie(O,I,!1);case"m":return String(I);case"mm":return S.s(I,2,"0");case"s":return String(_.$s);case"ss":return S.s(_.$s,2,"0");case"SSS":return S.s(_.$ms,3,"0");case"Z":return x}return null}(W)||x.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(h,_,c){var M,x=this,O=S.p(_),I=R(h),G=(I.utcOffset()-this.utcOffset())*m,$=this-I,H=function(){return S.m(x,I)};switch(O){case T:M=H()/12;break;case F:M=H();break;case Y:M=H()/3;break;case k:M=($-G)/6048e5;break;case w:M=($-G)/864e5;break;case g:M=$/D;break;case d:M=$/m;break;case r:M=$/1e3;break;default:M=$}return c?M:S.a(M)},p.daysInMonth=function(){return this.endOf(F).$D},p.$locale=function(){return V[this.$L]},p.locale=function(h,_){if(!h)return this.$L;var c=this.clone(),M=le(h,_,!0);return M&&(c.$L=M),c},p.clone=function(){return S.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},C}(),ue=se.prototype;return R.prototype=ue,[["$ms",l],["$s",r],["$m",d],["$H",g],["$W",w],["$M",F],["$y",T],["$D",P]].forEach(function(C){ue[C[1]]=function(p){return this.$g(p,C[0],C[1])}}),R.extend=function(C,p){return C.$i||(C(p,se,R),C.$i=!0),R},R.locale=le,R.isDayjs=Q,R.unix=function(C){return R(1e3*C)},R.en=V[B],R.Ls=V,R.p={},R}()},2269(E,N,m){E.exports=function(D){"use strict";var r=function l(g){return g&&"object"==typeof g&&"default"in g?g:{default:g}}(D),d={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(g){return g+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return r.default.locale(d,null,!0),d}(m(7374))},1409(E,N,m){E.exports=function(D){"use strict";var r=function l(k){return k&&"object"==typeof k&&"default"in k?k:{default:k}}(D),d={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function g(k,F,Y){var T=d[Y];return Array.isArray(T)&&(T=T[F?0:1]),T.replace("%d",k)}var w={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(k){return k+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g}};return r.default.locale(w,null,!0),w}(m(7374))},9785(E){E.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var m=["th","st","nd","rd"],D=N%100;return"["+N+(m[(D-20)%10]||m[D]||m[0])+"]"}}}()},2494(E,N,m){E.exports=function(D){"use strict";var r=function l(g){return g&&"object"==typeof g&&"default"in g?g:{default:g}}(D),d={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(g){return g+"\xba"}};return r.default.locale(d,null,!0),d}(m(7374))},4230(E,N,m){E.exports=function(D){"use strict";var r=function l(g){return g&&"object"==typeof g&&"default"in g?g:{default:g}}(D),d={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(g){return g+(1===g?"er":"")}};return r.default.locale(d,null,!0),d}(m(7374))},9531(E,N,m){E.exports=function(D){"use strict";var r=function l(g){return g&&"object"==typeof g&&"default"in g?g:{default:g}}(D),d={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(g){return g+"\xba"}};return r.default.locale(d,null,!0),d}(m(7374))},4955(E){E.exports=function(){"use strict";var N={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(m,D,l){var r=D.prototype,d=r.format;l.en.formats=N,r.format=function(g){void 0===g&&(g="YYYY-MM-DDTHH:mm:ssZ");var Y,w=this.$locale().formats,k=(Y=void 0===w?{}:w,g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,P,e){var U=e&&e.toUpperCase();return P||Y[e]||N[e]||Y[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,q,ee){return q||ee.slice(1)})}));return d.call(this,k)}}}()},5164(E){E.exports=function(){"use strict";return function(N,m,D){N=N||{};var l=m.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function d(w,k,F,Y){return l.fromToBase(w,k,F,Y)}D.en.relativeTime=r,l.fromToBase=function(w,k,F,Y,T){for(var P,e,U,Z=F.$locale().relativeTime||r,q=N.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ee=q.length,te=0;te<ee;te+=1){var B=q[te];B.d&&(P=Y?D(w).diff(F,B.d,!0):F.diff(w,B.d,!0));var V=(N.rounding||Math.round)(Math.abs(P));if(U=P>0,V<=B.r||!B.r){V<=1&&te>0&&(B=q[te-1]);var oe=Z[B.l];T&&(V=T(""+V)),e="string"==typeof oe?oe.replace("%d",V):oe(V,k,B.l,U);break}}if(k)return e;var Q=U?Z.future:Z.past;return"function"==typeof Q?Q(e):Q.replace("%s",e)},l.to=function(w,k){return d(w,k,this,!0)},l.from=function(w,k){return d(w,k,this)};var g=function(w){return w.$u?D.utc():D()};l.toNow=function(w){return this.to(g(this),w)},l.fromNow=function(w){return this.from(g(this),w)}}}()}}]);
|