@qaecy/cue-ui 0.0.51 → 0.0.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaecy/cue-ui",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "QAECY UI Web Components",
5
5
  "keywords": [
6
6
  "web-components",
package/3910.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[3910],{3910(L,T,d){d.d(T,{IDBuilder:()=>Z});var C=d(7705),c=d(5802),U=d(5332);const m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,t=function a(r){if(!function $(r){return"string"==typeof r&&m.test(r)}(r))throw TypeError("Invalid UUID");var n,e=new Uint8Array(16);return e[0]=(n=parseInt(r.slice(0,8),16))>>>24,e[1]=n>>>16&255,e[2]=n>>>8&255,e[3]=255&n,e[4]=(n=parseInt(r.slice(9,13),16))>>>8,e[5]=255&n,e[6]=(n=parseInt(r.slice(14,18),16))>>>8,e[7]=255&n,e[8]=(n=parseInt(r.slice(19,23),16))>>>8,e[9]=255&n,e[10]=(n=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=n/4294967296&255,e[12]=n>>>24&255,e[13]=n>>>16&255,e[14]=n>>>8&255,e[15]=255&n,e};function G(r,n,e,f){switch(r){case 0:return n&e^~n&f;case 1:case 3:return n^e^f;case 2:return n&e^n&f^e&f}}function B(r,n){return r<<n|r>>>32-n}const Y=function P(r,n,e){function f(o,x,i,h){var v;if("string"==typeof o&&(o=function I(r){r=unescape(encodeURIComponent(r));for(var n=[],e=0;e<r.length;++e)n.push(r.charCodeAt(e));return n}(o)),"string"==typeof x&&(x=t(x)),16!==(null===(v=x)||void 0===v?void 0:v.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+o.length);if(s.set(x),s.set(o,x.length),(s=e(s))[6]=15&s[6]|n,s[8]=63&s[8]|128,i){h=h||0;for(var u=0;u<16;++u)i[h+u]=s[u];return i}return(0,U.k)(s)}try{f.name=r}catch{}return f.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",f.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",f}("v5",80,function H(r){var n=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var f=unescape(encodeURIComponent(r));r=[];for(var o=0;o<f.length;++o)r.push(f.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var i=Math.ceil((r.length/4+2)/16),h=new Array(i),v=0;v<i;++v){for(var s=new Uint32Array(16),u=0;u<16;++u)s[u]=r[64*v+4*u]<<24|r[64*v+4*u+1]<<16|r[64*v+4*u+2]<<8|r[64*v+4*u+3];h[v]=s}h[i-1][14]=8*(r.length-1)/Math.pow(2,32),h[i-1][14]=Math.floor(h[i-1][14]),h[i-1][15]=8*(r.length-1)&4294967295;for(var R=0;R<i;++R){for(var p=new Uint32Array(80),w=0;w<16;++w)p[w]=h[R][w];for(var g=16;g<80;++g)p[g]=B(p[g-3]^p[g-8]^p[g-14]^p[g-16],1);for(var A=e[0],y=e[1],E=e[2],b=e[3],M=e[4],D=0;D<80;++D){var S=Math.floor(D/20),j=B(A,5)+G(S,y,E,b)+M+n[S]+p[D]>>>0;M=b,b=E,E=B(y,30)>>>0,y=A,A=j}e[0]=e[0]+A>>>0,e[1]=e[1]+y>>>0,e[2]=e[2]+E>>>0,e[3]=e[3]+b>>>0,e[4]=e[4]+M>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,255&e[0],e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,255&e[1],e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,255&e[2],e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,255&e[3],e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,255&e[4]]}),F={\u00e4:"ae",a\u0308:"ae",\u00c4:"AE",\u00f6:"oe",\u00d6:"OE",\u00fc:"ue",u\u0308:"ue",\u00dc:"UE",U\u0308:"UE",\u00df:"ss",\u00e6:"ae",\u00c6:"AE",\u00f8:"oe",\u00d8:"OE",\u00e5:"aa",\u00c5:"AA",\u00e1:"a",\u00c1:"A",\u00f0:"d",\u00d0:"D",\u00e9:"e",\u00c9:"E",\u00ed:"i",\u00cd:"I",\u00f3:"o",\u00d3:"O",\u00fa:"u",\u00da:"U",\u00fd:"y",\u00dd:"Y",\u00fe:"th",\u00de:"Th"};var V=d(5559),X=d(5381),Q=d(2245),l=d(5547);let Z=(()=>{class r{size=(0,C.hFB)("l");id=(0,c.vPA)("");updateId(e){this.id.set(function N(r,n=!1){return r=function J(r,n=!1){let e=r;for(const f in F)e=e.replace(new RegExp(f,"g"),F[f]);return n&&e!==r&&console.info(`${r} -> ${e}`),e}(r,n),Y(r,"daca0510-72b5-48ba-9091-b918ca18136b")}(e))}static \u0275fac=function(f){return new(f||r)};static \u0275cmp=l.VBU({type:r,selectors:[["cue-id-builder"]],inputs:{size:[1,"size"]},decls:4,vars:3,consts:[["direction","column","align","center"],["placeholder","Text string...",2,"width","100%","text-align","start",3,"valueChange","showSubmitButton","size"]],template:function(f,o){1&f&&(l.j41(0,"cue-flexcontainer",0)(1,"cue-search-bar",1),l.bIt("valueChange",function(i){return o.updateId(i)}),l.k0s(),l.j41(2,"cue-typography"),l.EFF(3),l.k0s()()),2&f&&(l.R7$(),l.Y8G("showSubmitButton",!1)("size",o.size()),l.R7$(2),l.JRh(o.id()))},dependencies:[V.I,X.n,Q.Typography],encapsulation:2})}return r})()},5332(L,T,d){d.d(T,{k:()=>m});for(var c=[],U=0;U<256;++U)c.push((U+256).toString(16).slice(1));function m(a,t=0){return(c[a[t+0]]+c[a[t+1]]+c[a[t+2]]+c[a[t+3]]+"-"+c[a[t+4]]+c[a[t+5]]+"-"+c[a[t+6]]+c[a[t+7]]+"-"+c[a[t+8]]+c[a[t+9]]+"-"+c[a[t+10]]+c[a[t+11]]+c[a[t+12]]+c[a[t+13]]+c[a[t+14]]+c[a[t+15]]).toLowerCase()}}}]);
package/4031.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[4031,5187],{5448(E,y,r){r.d(y,{L:()=>b});var s=r(7705),u=r(2245),o=r(5547);const l=["*"];let b=(()=>{class d{fontSize=(0,s.hFB)("m");italic=(0,s.hFB)(!1);noWrap=(0,s.hFB)(!0);static \u0275fac=function(e){return new(e||d)};static \u0275cmp=o.VBU({type:d,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:l,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(e,_){1&e&&(o.NAR(),o.j41(0,"div")(1,"cue-typography",0),o.SdG(2),o.k0s()()),2&e&&(o.R7$(),o.Y8G("size",_.fontSize())("italic",_.italic())("noWrap",_.noWrap()))},dependencies:[u.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return d})()},2014(E,y,r){r.d(y,{z:()=>b});var s=r(7705),u=r(2271),o=r(5547);const l=["*"];let b=(()=>{class d{justify=(0,s.hFB)("start");size=(0,s.hFB)("l");widthStyle=(0,u.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(e){return new(e||d)};static \u0275cmp=o.VBU({type:d,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:l,decls:2,vars:4,template:function(e,_){1&e&&(o.NAR(),o.rj2(0,"div"),o.SdG(1),o.eux()),2&e&&o.xc7("justify-content",_.justify())("min-width",_.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return d})()},5187(E,y,r){r.d(y,{Card:()=>C});var s=r(7705),u=r(2271),o=r(5970),l=r(5547);const b=["*"];let C=(()=>{class h{style=(0,s.hFB)("");variant=(0,s.hFB)("default");shadow=(0,s.hFB)(!1);padded=(0,s.hFB)(!0);scrollable=(0,s.hFB)(!1);maxHeight=(0,s.hFB)(void 0);maxContentHeight=(0,s.hFB)(!1);isScrollable=(0,u.EW)(()=>this.scrollable()||void 0!==this.maxHeight());getClass=(0,u.EW)(()=>`variant-${this.variant()}`);getStyles=(0,u.EW)(()=>{const _="fade"===this.variant()?"neutral":this.variant(),m=[`\n color: var(--cue-${_}Contrast);\n --background-color: var(--cue-${_});\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()&&m.push(`\n background-image: linear-gradient(to bottom,var(--cue-${_}),var(--cue-main-background));\n `),m.push(this.style()),m.join("")});innerDisplay=(0,u.EW)(()=>this.isScrollable()?"block":"contents");onResize(_){if(!this.maxContentHeight())return;const m=Array.from(_.element.children).reduce((p,M)=>M.getBoundingClientRect().height+p,0);_.element.parentElement.style.maxHeight=`calc(${m}px + var(--cue-card-padding-y) * 2 + 2px)`}static \u0275fac=function(m){return new(m||h)};static \u0275cmp=l.VBU({type:h,selectors:[["cue-card"]],hostVars:8,hostBindings:function(m,p){2&m&&(l.Aen(p.getStyles()),l.HbH(p.getClass()),l.AVh("padded",p.padded())("shadow",p.shadow()))},inputs:{style:[1,"style"],variant:[1,"variant"],shadow:[1,"shadow"],padded:[1,"padded"],scrollable:[1,"scrollable"],maxHeight:[1,"maxHeight"],maxContentHeight:[1,"maxContentHeight"]},ngContentSelectors:b,decls:2,vars:2,consts:[["cueResized","",1,"inner",3,"resized"]],template:function(m,p){1&m&&(l.NAR(),l.j41(0,"div",0),l.bIt("resized",function(O){return p.onResize(O)}),l.SdG(1),l.k0s()),2&m&&l.xc7("display",p.innerDisplay())},dependencies:[o.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: rgba(255, 255, 255, .2);--cue-table-row-hover-bg: rgba(255, 255, 255, .1);--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);--cue-table-text-color: var(--cue-color-darkgray);--cue-table-secondary-text-color: var(--cue-color-darkmidgray);--cue-table-row-border-bottom-color: rgba(0, 0, 0, .15);--cue-table-row-hover-bg: rgba(0, 0, 0, .06)}.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);--cue-input-placeholder-color: rgba(255, 255, 255, .45)}[_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 h})()},5970(E,y,r){r.d(y,{C:()=>b});var s=r(7705),u=r(5547),o=r(5802);class l{newRect;oldRect;isFirst;element;constructor(C,h,e){this.newRect=C,this.oldRect=h,this.isFirst=null==h,this.element=e}}let b=(()=>{class d{element;zone;observer;oldRect;resized=(0,s.CGW)();windowResized=(0,s.CGW)();constructor(h,e){this.element=h,this.zone=e,this.observer=new ResizeObserver(_=>this.zone.run(()=>this.observe(_)))}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}onWindowResize(){this.zone.run(()=>{const h=this.getWindowRect(),e=new l(h,void 0,window.document.documentElement);this.windowResized.emit(e)})}observe(h){const e=h[0],_=new l(e.contentRect,this.oldRect,e.target);this.oldRect=e.contentRect,this.resized.emit(_)}getWindowRect(){return{x:0,y:0,width:window.innerWidth,height:window.innerHeight,top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,toJSON:()=>({})}}static \u0275fac=function(e){return new(e||d)(u.rXU(u.aKT),u.rXU(o.SKi))};static \u0275dir=u.FsC({type:d,selectors:[["","cueResized",""]],hostBindings:function(e,_){1&e&&u.bIt("resize",function(){return _.onWindowResize()},u.tSv)},outputs:{resized:"resized",windowResized:"windowResized"}})}return d})()},4031(E,y,r){r.d(y,{CueDocumentSearchBar:()=>Q});var s=r(467),u=r(7705),o=r(5802),l=r(2271),b=r(7427),d=r(9352),C=r(5187),h=r(5559),e=r(5547);const _=["*"];let m=(()=>{class i{variant=(0,u.hFB)("default");static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cue-search-bar-shadow"]],inputs:{variant:[1,"variant"]},ngContentSelectors:_,decls:2,vars:1,consts:[["variant","variant()",3,"shadow"]],template:function(n,a){1&n&&(e.NAR(),e.j41(0,"cue-card",0),e.SdG(1),e.k0s()),2&n&&e.Y8G("shadow",!0)},dependencies:[C.Card],styles:["[_nghost-%COMP%]{display:contents}cue-card[_ngcontent-%COMP%]{border:0;margin:calc(-1 * var(--cue-card-padding-y)) calc(-1 * var(--cue-card-padding-x))}"],changeDetection:0})}return i})();var p=r(5381),M=r(2245),O=r(2339),L=r(5971),N=r(5448),w=r(3319),B=r(2014),z=r(63);function T(i,v){1&i&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-typography",2),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()),2&i&&(e.R7$(2),e.JRh(e.bMT(3,1,"components.documentFilter.loading")))}function k(i,v){if(1&i){const t=e.RV6();e.j41(0,"cue-chip",7),e.nI1(1,"transloco"),e.bIt("removed",function(){const a=o.eBV(t).$index,c=e.XpG(2);return o.Njj(c._remove(a))}),e.j41(2,"span",8),e.EFF(3),e.k0s(),e.EFF(4),e.k0s()}if(2&i){const t=v.$implicit,n=e.XpG(2);e.Y8G("selected",!0)("passive",!0)("removable",!0)("removeLabel",e.bMT(1,6,"components.documentFilter.removeFilter")),e.R7$(3),e.SpI("",n._chipDim(t),":"),e.R7$(),e.SpI("",t.label," ")}}function A(i,v){if(1&i){const t=e.RV6();e.j41(0,"div",9)(1,"cue-select",13),e.nI1(2,"transloco"),e.bIt("valueChange",function(a){o.eBV(t);const c=e.XpG(3);return o.Njj(c._onValueSelect("mime",a))}),e.k0s()()}if(2&i){const t=e.XpG(3);e.R7$(),e.Y8G("placeholder",e.bMT(2,5,"components.documentFilter.selectMimePlaceholder"))("underline",!1)("showFilter",t._mimeOptions().length>8)("options",t._mimeOptions())("labelMap",t._mimeLabels())}}function j(i,v){if(1&i){const t=e.RV6();e.j41(0,"div",9)(1,"cue-select",13),e.nI1(2,"transloco"),e.bIt("valueChange",function(a){o.eBV(t);const c=e.XpG(3);return o.Njj(c._onValueSelect("content",a))}),e.k0s()()}if(2&i){const t=e.XpG(3);e.R7$(),e.Y8G("placeholder",e.bMT(2,5,"components.documentFilter.selectContentPlaceholder"))("underline",!1)("showFilter",t._contentOptions().length>8)("options",t._contentOptions())("labelMap",t._contentLabels())}}function V(i,v){if(1&i){const t=e.RV6();e.j41(0,"div",15)(1,"cue-select",16),e.nI1(2,"transloco"),e.bIt("valueChange",function(a){o.eBV(t);const c=e.XpG(4);return o.Njj(c._onEntityValueSelect(a))}),e.k0s()()}if(2&i){const t=e.XpG(4);e.R7$(),e.Y8G("placeholder",e.bMT(2,6,"components.documentFilter.selectEntityPlaceholder"))("underline",!1)("loading",t._entityLoading())("showFilter",!0)("options",t._entityValueOptions())("labelMap",t._entityValueLabels())}}function W(i,v){if(1&i){const t=e.RV6();e.j41(0,"div",9)(1,"cue-select",14),e.nI1(2,"transloco"),e.bIt("valueChange",function(a){o.eBV(t);const c=e.XpG(3);return o.Njj(c._onEntityCatSelect(a))}),e.k0s()(),e.nVh(3,V,3,8,"div",15)}if(2&i){let t;const n=e.XpG(3);e.R7$(),e.Y8G("placeholder",e.bMT(2,7,"components.documentFilter.selectEntityTypePlaceholder"))("underline",!1)("showFilter",n._entityCatOptions().length>8)("options",n._entityCatOptions())("labelMap",n._entityCatLabels())("value",(null==(t=n._draftEntityCat())?null:t.iri)??""),e.R7$(2),e.vxM(n._draftEntityCat()?3:-1)}}function $(i,v){if(1&i){const t=e.RV6();e.j41(0,"div",4)(1,"div",9)(2,"cue-select",10),e.nI1(3,"transloco"),e.bIt("valueChange",function(a){o.eBV(t);const c=e.XpG(2);return o.Njj(c._onDimSelect(a))}),e.k0s()(),e.nVh(4,A,3,7,"div",9),e.nVh(5,j,3,7,"div",9),e.nVh(6,W,4,9),e.j41(7,"cue-button",11),e.bIt("click",function(){o.eBV(t);const a=e.XpG(2);return o.Njj(a._cancelAdd())}),e.j41(8,"cue-button-label",12),e.EFF(9),e.nI1(10,"transloco"),e.k0s()()()}if(2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("placeholder",e.bMT(3,9,"components.documentFilter.filterByPlaceholder"))("underline",!1)("options",t._dimOptions())("labelMap",t._dimLabels())("value",t._draftDim()??""),e.R7$(2),e.vxM("mime"===t._draftDim()?4:-1),e.R7$(),e.vxM("content"===t._draftDim()?5:-1),e.R7$(),e.vxM("entity"===t._draftDim()?6:-1),e.R7$(3),e.JRh(e.bMT(10,11,"components.documentFilter.cancel"))}}function G(i,v){if(1&i){const t=e.RV6();e.j41(0,"cue-button",17),e.bIt("click",function(){o.eBV(t);const a=e.XpG(2);return o.Njj(a._startAdd())}),e.j41(1,"cue-button-padder"),e.nrm(2,"cue-button-icon",18),e.k0s(),e.j41(3,"cue-button-label",12),e.EFF(4),e.nI1(5,"transloco"),e.k0s()()}if(2&i){const t=e.XpG(2);e.Y8G("disabled",t._refreshing()||!t._hasAnyOption()),e.R7$(4),e.JRh(e.bMT(5,2,"components.documentFilter.addFilter"))}}function X(i,v){if(1&i){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){o.eBV(t);const a=e.XpG(2);return o.Njj(a._clearAll())}),e.j41(1,"cue-button-label",12),e.EFF(2),e.nI1(3,"transloco"),e.k0s()()}2&i&&(e.R7$(2),e.JRh(e.bMT(3,1,"components.documentFilter.clear")))}function U(i,v){1&i&&(e.j41(0,"cue-typography",2),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,"components.documentFilter.updating")))}function H(i,v){if(1&i&&(e.j41(0,"cue-flexcontainer",1),e.Z7z(1,k,5,8,"cue-chip",3,e.Vm6),e.nVh(3,$,11,13,"div",4)(4,G,6,4,"cue-button",5),e.nVh(5,X,4,3,"cue-button",6),e.nVh(6,U,3,3,"cue-typography",2),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Dyx(t._committed()),e.R7$(2),e.vxM(t._adding()?3:4),e.R7$(2),e.vxM(t._committed().length>0&&!t._adding()?5:-1),e.R7$(),e.vxM(t._refreshing()?6:-1)}}const S={mimes:[],contents:[],entityCategories:[]},K={mimes:[],contents:[],entityCategories:[],entities:[]},F="__ANY__",f="components.documentFilter";let Y=(()=>{class i{handlers=u.hFB.required();filtersChange=(0,u.CGW)();ANY=F;_dimMimeLabel=(0,d.Xx)(`${f}.dimMime`);_dimContentLabel=(0,d.Xx)(`${f}.dimContent`);_dimEntityLabel=(0,d.Xx)(`${f}.dimEntity`);_chipMimeLabel=(0,d.Xx)(`${f}.chipMime`);_chipContentLabel=(0,d.Xx)(`${f}.chipContent`);_anyLabel=(0,d.Xx)(`${f}.any`);_anyOfCategoryParams=(0,l.EW)(()=>({category:this._draftEntityCat()?.label??""}));_anyOfCategoryLabel=(0,d.Xx)(`${f}.anyOfCategory`,this._anyOfCategoryParams);_dimLabels=(0,l.EW)(()=>({mime:this._dimMimeLabel(),content:this._dimContentLabel(),entity:this._dimEntityLabel()}));_opts=(0,o.vPA)(S);_committed=(0,o.vPA)([]);_loading=(0,o.vPA)(!1);_refreshing=(0,o.vPA)(!1);_adding=(0,o.vPA)(!1);_draftDim=(0,o.vPA)(null);_draftEntityCat=(0,o.vPA)(null);_entityValues=(0,o.vPA)([]);_entityLoading=(0,o.vPA)(!1);_mimeChoices=(0,l.EW)(()=>this._available("mime",this._opts().mimes));_contentChoices=(0,l.EW)(()=>this._available("content",this._opts().contents));_entityCatChoices=(0,l.EW)(()=>this._opts().entityCategories);_hasAnyOption=(0,l.EW)(()=>this._mimeChoices().length>0||this._contentChoices().length>0||this._entityCatChoices().length>0);_dimOptions=(0,l.EW)(()=>{const t=[];return this._mimeChoices().length&&t.push("mime"),this._contentChoices().length&&t.push("content"),this._entityCatChoices().length&&t.push("entity"),t});_mimeOptions=(0,l.EW)(()=>this._mimeChoices().map(t=>t.iri));_mimeLabels=(0,l.EW)(()=>this._toLabelMap(this._mimeChoices()));_contentOptions=(0,l.EW)(()=>this._contentChoices().map(t=>t.iri));_contentLabels=(0,l.EW)(()=>this._toLabelMap(this._contentChoices()));_entityCatOptions=(0,l.EW)(()=>this._entityCatChoices().map(t=>t.iri));_entityCatLabels=(0,l.EW)(()=>this._toLabelMap(this._entityCatChoices()));_entityValueOptions=(0,l.EW)(()=>[F,...this._entityValues().map(t=>t.iri)]);_entityValueLabels=(0,l.EW)(()=>{const t=this._draftEntityCat(),n={[F]:t?this._anyOfCategoryLabel():this._anyLabel()};for(const a of this._entityValues())n[a.iri]=a.label;return n});constructor(){(0,o.QZP)(()=>{const t=this.handlers();this._reset(t)})}_startAdd(){this._resetDraft(),this._adding.set(!0)}_cancelAdd(){this._adding.set(!1),this._resetDraft()}_onDimSelect(t){this._draftEntityCat.set(null),this._entityValues.set([]),this._draftDim.set(t||null)}_onValueSelect(t,n){var a=this;return(0,s.A)(function*(){if(!n)return;const g=("mime"===t?a._opts().mimes:a._opts().contents).find(P=>P.iri===n)?.label??n;yield a._commit({dim:t,valueIri:n,label:g,isEntityInstance:!1})})()}_onEntityCatSelect(t){var n=this;return(0,s.A)(function*(){if(n._entityValues.set([]),!t)return void n._draftEntityCat.set(null);const a=n._opts().entityCategories.find(c=>c.iri===t)??{iri:t,label:t};n._draftEntityCat.set(a),n._entityLoading.set(!0);try{const c=yield n.handlers().requestAvailableEntities(t,n._applied());n._entityValues.set(c)}catch(c){console.error("[document-filter] Failed to load entities",c),n._entityValues.set([])}finally{n._entityLoading.set(!1)}})()}_onEntityValueSelect(t){var n=this;return(0,s.A)(function*(){if(!t)return;const a=n._draftEntityCat();if(a)if(t===F)yield n._commit({dim:"entity",valueIri:a.iri,label:n._anyLabel(),isEntityInstance:!1,categoryIri:a.iri,categoryLabel:a.label});else{const c=n._entityValues().find(g=>g.iri===t);yield n._commit({dim:"entity",valueIri:t,label:c?.label??t,isEntityInstance:!0,categoryIri:a.iri,categoryLabel:a.label})}})()}_remove(t){var n=this;return(0,s.A)(function*(){n._committed.update(a=>a.filter((c,g)=>g!==t)),yield n._refreshOptions(),n._emitFilters()})()}_clearAll(){var t=this;return(0,s.A)(function*(){t._committed.set([]),t._adding.set(!1),t._resetDraft(),yield t._refreshOptions(),t._emitFilters()})()}_chipDim(t){return"mime"===t.dim?this._chipMimeLabel():"content"===t.dim?this._chipContentLabel():t.categoryLabel??this._dimEntityLabel()}_commit(t){var n=this;return(0,s.A)(function*(){n._committed.update(a=>[...a,t]),n._adding.set(!1),n._resetDraft(),yield n._refreshOptions(),n._emitFilters()})()}_resetDraft(){this._draftDim.set(null),this._draftEntityCat.set(null),this._entityValues.set([]),this._entityLoading.set(!1)}_toLabelMap(t){const n={};for(const a of t)n[a.iri]=a.label;return n}_available(t,n){const a=new Set(this._committed().filter(c=>c.dim===t).map(c=>c.valueIri));return n.filter(c=>!a.has(c.iri))}_applied(){const t=this._committed();return{mimes:t.filter(n=>"mime"===n.dim).map(n=>n.valueIri),contents:t.filter(n=>"content"===n.dim).map(n=>n.valueIri),entityCategories:t.filter(n=>"entity"===n.dim&&!n.isEntityInstance).map(n=>n.valueIri),entities:t.filter(n=>"entity"===n.dim&&n.isEntityInstance).map(n=>n.valueIri)}}_reset(t){var n=this;return(0,s.A)(function*(){n._committed.set([]),n._opts.set(S),n._adding.set(!1),n._resetDraft(),n._loading.set(!0);try{n._opts.set(yield t.requestAvailableFilters(K))}catch(a){console.error("[document-filter] Failed to load available filters",a)}finally{n._loading.set(!1)}})()}_refreshOptions(){var t=this;return(0,s.A)(function*(){t._refreshing.set(!0);try{t._opts.set(yield t.handlers().requestAvailableFilters(t._applied()))}catch(n){console.error("[document-filter] Adaptive refresh failed",n)}finally{t._refreshing.set(!1)}})()}_emitFilters(){const t=this._committed().map(n=>({type:"mime"===n.dim?"mime":"content"===n.dim?"content":n.isEntityInstance?"entityInstance":"entity",included:[n.valueIri],excluded:[]}));this.filtersChange.emit(t)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cue-doc-filter"]],inputs:{handlers:[1,"handlers"]},outputs:{filtersChange:"filtersChange"},decls:2,vars:1,consts:[["align","center","gap","s"],["align","center","gap","s","wrap","wrap"],["size","s",1,"muted"],["size","xs","variant","primary",3,"selected","passive","removable","removeLabel"],[1,"draft"],["size","xs","variant","tertiary",3,"disabled"],["size","xs","variant","danger"],["size","xs","variant","primary",3,"removed","selected","passive","removable","removeLabel"],[1,"chip-dim"],[1,"filter-select"],["size","xs",3,"valueChange","placeholder","underline","options","labelMap","value"],["size","xs","variant","ghost",3,"click"],["fontSize","s"],["size","xs",3,"valueChange","placeholder","underline","showFilter","options","labelMap"],["size","xs",3,"valueChange","placeholder","underline","showFilter","options","labelMap","value"],[1,"filter-select","entity-value"],["size","xs",3,"valueChange","placeholder","underline","loading","showFilter","options","labelMap"],["size","xs","variant","tertiary",3,"click","disabled"],["icon","add"],["size","xs","variant","danger",3,"click"]],template:function(n,a){1&n&&e.nVh(0,T,4,3,"cue-flexcontainer",0)(1,H,7,3,"cue-flexcontainer",1),2&n&&e.vxM(a._loading()?0:1)},dependencies:[O.v,L.$,N.L,w.a,B.z,z.Select,p.n,M.Typography,d.Kj],styles:["[_nghost-%COMP%]{display:block}.filter-select[_ngcontent-%COMP%]{width:170px}.filter-select.entity-value[_ngcontent-%COMP%]{width:200px}.draft[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:2px 6px 2px 10px;border:1px dashed var(--cue-border-color);border-radius:10px}.chip-dim[_ngcontent-%COMP%]{font-weight:600;opacity:.72;margin-inline-end:4px}.muted[_ngcontent-%COMP%]{color:var(--cue-color-darkmidgray)}"],changeDetection:0})}return i})();const J=i=>({count:i});function Z(i,v){if(1&i&&(e.j41(0,"cue-typography",6),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",e.i5U(2,1,"sdkWrapped.documentSearchBar.activeFilters",e.eq3(4,J,t._filters().length))," ")}}let Q=(()=>{class i{projectId=u.hFB.required();sdkState=u.hFB.required();placeholder=(0,u.hFB)("");size=(0,u.hFB)("l");searchSubmit=(0,u.CGW)();_filters=(0,o.vPA)([]);_handlers=(0,l.EW)(()=>{var t=this;const n=this.sdkState(),a=this.projectId(),c=new b.NV(n.cue.api,a,n.graphType);let g=null;const P=()=>(g||(g=this._loadSchemaLabels(n,a)),g);return{requestAvailableFilters:(R=(0,s.A)(function*(D){const[x,I]=yield Promise.all([c.availableFilters(D),P()]);return t._withSchemaLabels(x,I)}),function(x){return R.apply(this,arguments)}),requestAvailableEntities:function(){var R=(0,s.A)(function*(D,x){return yield c.availableEntities(D,x)});return function(x,I){return R.apply(this,arguments)}}()};var R});onSubmit(t){this.searchSubmit.emit({query:t,filters:this._filters()})}_onFiltersChange(t){this._filters.set(t)}_loadSchemaLabels(t,n){return(0,s.A)(function*(){try{const a=new b.Ug(t.cue.api,n,t.cue.api.language,void 0,t.graphType);return yield a.ready,{content:new Map(a.availableContentCategories.get().map(c=>[c.iri,c.label])),entity:new Map(a.availableEntityCategories.get().map(c=>[c.iri,c.label]))}}catch(a){return console.error("[document-search-bar] Failed to load schema labels",a),{content:new Map,entity:new Map}}})()}_withSchemaLabels(t,n){return{mimes:t.mimes.map(a=>({iri:a.iri,label:a.label.replace(/FileContent$/,"")})),contents:t.contents.map(a=>({iri:a.iri,label:n.content.get(a.iri)??a.label})),entityCategories:t.entityCategories.map(a=>({iri:a.iri,label:n.entity.get(a.iri)??a.label}))}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cue-document-search-bar"]],inputs:{projectId:[1,"projectId"],sdkState:[1,"sdkState"],placeholder:[1,"placeholder"],size:[1,"size"]},outputs:{searchSubmit:"searchSubmit"},decls:9,vars:7,consts:[["direction","column","gap","s","align","start"],["variant","primary",2,"width","100%"],["direction","column"],["variant","default"],[3,"valueSubmit","placeholder","responsiveMode","size"],[3,"filtersChange","handlers"],["size","xs",1,"muted"]],template:function(n,a){1&n&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-card",1)(2,"cue-flexcontainer",2)(3,"cue-search-bar-shadow",3)(4,"cue-search-bar",4),e.nI1(5,"transloco"),e.bIt("valueSubmit",function(g){return a.onSubmit(g)}),e.k0s()(),e.nrm(6,"div"),e.j41(7,"cue-doc-filter",5),e.bIt("filtersChange",function(g){return a._onFiltersChange(g)}),e.k0s()()(),e.nVh(8,Z,3,6,"cue-typography",6),e.k0s()),2&n&&(e.R7$(4),e.Y8G("placeholder",a.placeholder()||e.bMT(5,5,"sdkWrapped.documentSearchBar.searchPlaceholder"))("responsiveMode",!0)("size",a.size()),e.R7$(3),e.Y8G("handlers",a._handlers()),e.R7$(),e.vxM(a._filters().length>0?8:-1))},dependencies:[C.Card,h.I,m,p.n,M.Typography,Y,d.Kj],styles:["[_nghost-%COMP%]{display:block}.muted[_ngcontent-%COMP%]{color:var(--cue-color-darkmidgray)}"],changeDetection:0})}return i})()}}]);
package/5041.js DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[5041,9695],{5448(A,B,g){"use strict";g.d(B,{L:()=>D});var h=g(7705),O=g(2245),a=g(5547);const e=["*"];let D=(()=>{class b{fontSize=(0,h.hFB)("m");italic=(0,h.hFB)(!1);noWrap=(0,h.hFB)(!0);static \u0275fac=function($){return new($||b)};static \u0275cmp=a.VBU({type:b,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:e,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function($,f){1&$&&(a.NAR(),a.j41(0,"div")(1,"cue-typography",0),a.SdG(2),a.k0s()()),2&$&&(a.R7$(),a.Y8G("size",f.fontSize())("italic",f.italic())("noWrap",f.noWrap()))},dependencies:[O.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return b})()},9695(A,B,g){"use strict";g.d(B,{Switch:()=>b});var h=g(7705),O=g(29),a=g(5547);function e(w,C){if(1&w&&a.nrm(0,"cue-svg-icon",2),2&w){const $=a.XpG();a.Y8G("name",$.iconChecked())}}function D(w,C){if(1&w&&a.nrm(0,"cue-svg-icon",2),2&w){const $=a.XpG();a.Y8G("name",$.icon())}}let b=(()=>{class w{size=(0,h.hFB)("m");icon=(0,h.hFB)(void 0);iconChecked=(0,h.hFB)(void 0);disabled=(0,h.hFB)(!1);checked=(0,h.geq)(!1);toggleChange=(0,h.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(f){return new(f||w)};static \u0275cmp=a.VBU({type:w,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(f,v){2&f&&(a.BMQ("size",v.size()),a.AVh("checked",v.checked())("disabled",v.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(f,v){1&f&&(a.j41(0,"input",0),a.bIt("click",function(){return v.toggle()}),a.k0s(),a.j41(1,"div",1),a.nVh(2,e,1,1,"cue-svg-icon",2)(3,D,1,1,"cue-svg-icon",2),a.k0s()),2&f&&(a.Y8G("checked",v.checked())("disabled",v.disabled()),a.R7$(2),a.vxM(v.checked()&&v.iconChecked()?2:v.icon()?3:-1))},dependencies:[O.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 w})()},5745(A,B,g){"use strict";g.d(B,{a:()=>I});var h=g(7705),O=g(5802),a=g(2271),e=g(5547);const D=["dialog"],b=["*",[["","modal-footer",""]]],w=["*","[modal-footer]"];function C(_,L){if(1&_&&(e.rj2(0,"h2",7),e.EFF(1),e.eux()),2&_){const u=e.XpG(3);e.R7$(),e.JRh(u.effectiveTitle())}}function $(_,L){if(1&_&&(e.rj2(0,"p",8),e.EFF(1),e.eux()),2&_){const u=e.XpG(3);e.R7$(),e.JRh(u.subtitle())}}function f(_,L){if(1&_){const u=e.RV6();e.rj2(0,"button",10),e.VwU("click",function(){O.eBV(u);const y=e.XpG(3);return O.Njj(y.onClose())}),O.qSk(),e.rj2(1,"svg",11),e.Hgh(2,"path",12),e.eux()()}}function v(_,L){if(1&_&&(e.rj2(0,"div",4)(1,"div",6),e.nVh(2,C,2,1,"h2",7),e.nVh(3,$,2,1,"p",8),e.eux(),e.nVh(4,f,3,0,"button",9),e.eux()),2&_){const u=e.XpG(2);e.R7$(2),e.vxM(u.effectiveTitle()?2:-1),e.R7$(),e.vxM(u.subtitle()?3:-1),e.R7$(),e.vxM(u.displayCloseBtn()?4:-1)}}function N(_,L){if(1&_&&(e.rj2(0,"div",3),e.VwU("click",function(P){return P.stopPropagation()}),e.nVh(1,v,5,3,"div",4),e.rj2(2,"div",5),e.SdG(3),e.eux(),e.SdG(4,1),e.eux()),2&_){const u=e.XpG();e.xc7("min-width",u.minWidth()),e.AVh("has-header",u.effectiveTitle()||u.displayCloseBtn()),e.R7$(),e.vxM(u.effectiveTitle()||u.displayCloseBtn()?1:-1)}}let I=(()=>{class _{visible=(0,h.geq)(!0);closeOnBackgroundClick=(0,h.hFB)(!0);displayCloseBtn=(0,h.hFB)(!0);label=(0,h.hFB)("");title=(0,h.hFB)("");subtitle=(0,h.hFB)("");minWidth=(0,h.hFB)();close=(0,h.CGW)();dialogRef=h.ebz.required("dialog");effectiveTitle=(0,a.EW)(()=>this.title()||this.label());constructor(){(0,O.QZP)(()=>{const u=this.dialogRef().nativeElement;this.visible()?u.open||u.showModal():u.open&&u.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(P){return new(P||_)};static \u0275cmp=e.VBU({type:_,selectors:[["cue-modal"]],viewQuery:function(P,y){1&P&&e.wEZ(y.dialogRef,D,5),2&P&&e.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],title:[1,"title"],subtitle:[1,"subtitle"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:w,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],[1,"panel",3,"has-header","minWidth"],[1,"panel",3,"click"],[1,"header"],[1,"body"],[1,"header-text"],[1,"modal-title"],[1,"modal-subtitle"],["type","button","aria-label","Close",1,"close-btn"],["type","button","aria-label","Close",1,"close-btn",3,"click"],["viewBox","0 0 256 256","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L61.34 72.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"]],template:function(P,y){1&P&&(e.NAR(b),e.rj2(0,"dialog",1,0),e.VwU("cancel",function(){return y.onClose()})("click",function(){return y.onBackdropClick()}),e.nVh(2,N,5,5,"div",2),e.eux()),2&P&&(e.R7$(2),e.vxM(y.visible()?2:-1))},styles:[".modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none;max-width:min(calc(100vw - 32px),80vw)}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(14, 24, 39, .55));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel[_ngcontent-%COMP%]{background:var(--cue-default);color:var(--cue-defaultContrast);border-radius:24px;border:1px solid var(--cue-border-color);box-shadow:0 12px 48px #00000047;max-height:88vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin}.header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:26px 26px 0;margin-bottom:20px}.header-text[_ngcontent-%COMP%]{flex:1}.modal-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;font-family:var(--cue-font-family);color:var(--cue-defaultContrast)}.modal-subtitle[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13px;color:var(--cue-color-midgray);letter-spacing:.02em;line-height:1.5}.close-btn[_ngcontent-%COMP%]{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--cue-color-midgray);padding:0;margin-top:-4px;transition:background .15s,color .15s}.close-btn[_ngcontent-%COMP%]:hover{background:var(--cue-main-background);color:var(--cue-main-foreground)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;display:block}.body[_ngcontent-%COMP%]{padding:26px}.has-header[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding-top:0}"]})}return _})()},7374(A){A.exports=function(){"use strict";var g=6e4,h=36e5,O="millisecond",a="second",e="minute",D="hour",b="day",w="week",C="month",$="quarter",f="year",v="date",N="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|YYYY|YY|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,L={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 i=["th","st","nd","rd"],t=c%100;return"["+c+(i[(t-20)%10]||i[t]||i[0])+"]"}},u=function(c,i,t){var o=String(c);return!o||o.length>=i?c:""+Array(i+1-o.length).join(t)+c},P={s:u,z:function(c){var i=-c.utcOffset(),t=Math.abs(i),o=Math.floor(t/60),n=t%60;return(i<=0?"+":"-")+u(o,2,"0")+":"+u(n,2,"0")},m:function c(i,t){if(i.date()<t.date())return-c(t,i);var o=12*(t.year()-i.year())+(t.month()-i.month()),n=i.clone().add(o,C),s=t-n<0,r=i.clone().add(o+(s?-1:1),C);return+(-(o+(t-n)/(s?n-r:r-n))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:C,y:f,w,d:b,D:v,h:D,m:e,s:a,ms:O,Q:$}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return void 0===c}},y="en",T={};T[y]=L;var H="$isDayjsObject",G=function(c){return c instanceof j||!(!c||!c[H])},U=function c(i,t,o){var n;if(!i)return y;if("string"==typeof i){var s=i.toLowerCase();T[s]&&(n=s),t&&(T[s]=t,n=s);var r=i.split("-");if(!n&&r.length>1)return c(r[0])}else{var d=i.name;T[d]=i,n=d}return!o&&n&&(y=n),n||!o&&y},M=function(c,i){if(G(c))return c.clone();var t="object"==typeof i?i:{};return t.date=c,t.args=arguments,new j(t)},l=P;l.l=U,l.i=G,l.w=function(c,i){return M(c,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var j=function(){function c(t){this.$L=U(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[H]=!0}var i=c.prototype;return i.parse=function(t){this.$d=function(o){var n=o.date,s=o.utc;if(null===n)return new Date(NaN);if(l.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(I);if(r){var d=r[2]-1||0,p=(r[7]||"0").substring(0,3);return s?new Date(Date.UTC(r[1],d,r[3]||1,r[4]||0,r[5]||0,r[6]||0,p)):new Date(r[1],d,r[3]||1,r[4]||0,r[5]||0,r[6]||0,p)}}return new Date(n)}(t),this.init()},i.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},i.$utils=function(){return l},i.isValid=function(){return this.$d.toString()!==N},i.isSame=function(t,o){var n=M(t);return this.startOf(o)<=n&&n<=this.endOf(o)},i.isAfter=function(t,o){return M(t)<this.startOf(o)},i.isBefore=function(t,o){return this.endOf(o)<M(t)},i.$g=function(t,o,n){return l.u(t)?this[o]:this.set(n,t)},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this.$d.getTime()},i.startOf=function(t,o){var n=this,s=!!l.u(o)||o,r=l.p(t),d=function(z,x){var E=l.w(n.$u?Date.UTC(n.$y,x,z):new Date(n.$y,x,z),n);return s?E:E.endOf(b)},p=function(z,x){return l.w(n.toDate()[z].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(x)),n)},m=this.$W,k=this.$M,S=this.$D,R="set"+(this.$u?"UTC":"");switch(r){case f:return s?d(1,0):d(31,11);case C:return s?d(1,k):d(0,k+1);case w:var W=this.$locale().weekStart||0,F=(m<W?m+7:m)-W;return d(s?S-F:S+(6-F),k);case b:case v:return p(R+"Hours",0);case D:return p(R+"Minutes",1);case e:return p(R+"Seconds",2);case a:return p(R+"Milliseconds",3);default:return this.clone()}},i.endOf=function(t){return this.startOf(t,!1)},i.$set=function(t,o){var n,s=l.p(t),r="set"+(this.$u?"UTC":""),d=(n={},n[b]=r+"Date",n[v]=r+"Date",n[C]=r+"Month",n[f]=r+"FullYear",n[D]=r+"Hours",n[e]=r+"Minutes",n[a]=r+"Seconds",n[O]=r+"Milliseconds",n)[s],p=s===b?this.$D+(o-this.$W):o;if(s===C||s===f){var m=this.clone().set(v,1);m.$d[d](p),m.init(),this.$d=m.set(v,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},i.set=function(t,o){return this.clone().$set(t,o)},i.get=function(t){return this[l.p(t)]()},i.add=function(t,o){var n,s=this;t=Number(t);var r=l.p(o),d=function(k){var S=M(s);return l.w(S.date(S.date()+Math.round(k*t)),s)};if(r===C)return this.set(C,this.$M+t);if(r===f)return this.set(f,this.$y+t);if(r===b)return d(1);if(r===w)return d(7);var p=(n={},n[e]=g,n[D]=h,n[a]=1e3,n)[r]||1,m=this.$d.getTime()+t*p;return l.w(m,this)},i.subtract=function(t,o){return this.add(-1*t,o)},i.format=function(t){var o=this,n=this.$locale();if(!this.isValid())return n.invalidDate||N;var s=t||"YYYY-MM-DDTHH:mm:ssZ",r=l.z(this),d=this.$H,p=this.$m,m=this.$M,k=n.weekdays,S=n.months,W=function(x,E,Y,V){return x&&(x[E]||x(o,s))||Y[E].slice(0,V)},F=function(x){return l.s(d%12||12,x,"0")},z=n.meridiem||function(x,E,Y){var V=x<12?"AM":"PM";return Y?V.toLowerCase():V};return s.replace(_,function(x,E){return E||function(Y){switch(Y){case"YY":return String(o.$y).slice(-2);case"YYYY":return l.s(o.$y,4,"0");case"M":return m+1;case"MM":return l.s(m+1,2,"0");case"MMM":return W(n.monthsShort,m,S,3);case"MMMM":return W(S,m);case"D":return o.$D;case"DD":return l.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(n.weekdaysMin,o.$W,k,2);case"ddd":return W(n.weekdaysShort,o.$W,k,3);case"dddd":return k[o.$W];case"H":return String(d);case"HH":return l.s(d,2,"0");case"h":return F(1);case"hh":return F(2);case"a":return z(d,p,!0);case"A":return z(d,p,!1);case"m":return String(p);case"mm":return l.s(p,2,"0");case"s":return String(o.$s);case"ss":return l.s(o.$s,2,"0");case"SSS":return l.s(o.$ms,3,"0");case"Z":return r}return null}(x)||r.replace(":","")})},i.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},i.diff=function(t,o,n){var s,r=this,d=l.p(o),p=M(t),m=(p.utcOffset()-this.utcOffset())*g,k=this-p,S=function(){return l.m(r,p)};switch(d){case f:s=S()/12;break;case C:s=S();break;case $:s=S()/3;break;case w:s=(k-m)/6048e5;break;case b:s=(k-m)/864e5;break;case D:s=k/h;break;case e:s=k/g;break;case a:s=k/1e3;break;default:s=k}return n?s:l.a(s)},i.daysInMonth=function(){return this.endOf(C).$D},i.$locale=function(){return T[this.$L]},i.locale=function(t,o){if(!t)return this.$L;var n=this.clone(),s=U(t,o,!0);return s&&(n.$L=s),n},i.clone=function(){return l.w(this.$d,this)},i.toDate=function(){return new Date(this.valueOf())},i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toISOString=function(){return this.$d.toISOString()},i.toString=function(){return this.$d.toUTCString()},c}(),K=j.prototype;return M.prototype=K,[["$ms",O],["$s",a],["$m",e],["$H",D],["$W",b],["$M",C],["$y",f],["$D",v]].forEach(function(c){K[c[1]]=function(i){return this.$g(i,c[0],c[1])}}),M.extend=function(c,i){return c.$i||(c(i,j,M),c.$i=!0),M},M.locale=U,M.isDayjs=G,M.unix=function(c){return M(1e3*c)},M.en=T[y],M.Ls=T,M.p={},M}()}}]);