@qaecy/cue-ui 0.0.49 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/1138.js +1 -0
  2. package/1153.js +1 -0
  3. package/{247.js → 1247.js} +1 -1
  4. package/1338.js +1 -0
  5. package/1359.js +1 -0
  6. package/1573.js +1 -0
  7. package/1931.js +1 -0
  8. package/1985.js +1 -0
  9. package/2245.js +1 -0
  10. package/2269.js +1 -0
  11. package/2312.js +1 -0
  12. package/2399.js +1 -0
  13. package/2724.js +1 -0
  14. package/2839.js +1 -0
  15. package/29.js +1 -0
  16. package/3036.js +1 -0
  17. package/3039.js +1 -0
  18. package/{418.js → 3418.js} +1 -1
  19. package/3523.js +1 -0
  20. package/3910.js +1 -0
  21. package/4031.js +1 -0
  22. package/4283.js +1 -0
  23. package/4284.js +1 -0
  24. package/4311.js +1 -0
  25. package/4613.js +1 -0
  26. package/4687.js +1 -0
  27. package/4879.js +1 -0
  28. package/503.js +1 -0
  29. package/5041.js +1 -0
  30. package/5137.js +1 -0
  31. package/5187.js +1 -0
  32. package/5559.js +1 -0
  33. package/5740.js +1 -0
  34. package/5872.js +1 -0
  35. package/617.js +1 -0
  36. package/63.js +1 -0
  37. package/6376.js +1 -0
  38. package/6419.js +1 -0
  39. package/6423.js +1 -0
  40. package/6586.js +1 -0
  41. package/6911.js +1 -0
  42. package/7056.js +1 -0
  43. package/7247.js +1 -0
  44. package/7284.js +1 -0
  45. package/7427.js +1 -0
  46. package/7598.js +1 -0
  47. package/7719.js +1 -0
  48. package/8336.js +1 -0
  49. package/836.js +1 -1
  50. package/8560.js +1 -0
  51. package/8791.js +1 -0
  52. package/8855.js +1 -0
  53. package/8957.js +1 -0
  54. package/9004.js +1 -0
  55. package/906.js +1 -0
  56. package/928.js +1 -1
  57. package/9396.js +1 -0
  58. package/9417.js +1 -0
  59. package/9443.js +1 -0
  60. package/9495.js +1 -0
  61. package/9695.js +1 -0
  62. package/9769.js +1 -0
  63. package/README.md +135 -0
  64. package/common.js +1 -1
  65. package/index.js +1 -1
  66. package/main.js +1 -1
  67. package/package.json +1 -1
  68. package/runtime.js +1 -1
  69. package/149.js +0 -1
  70. package/153.js +0 -1
  71. package/245.js +0 -1
  72. package/269.js +0 -1
  73. package/284.js +0 -1
  74. package/311.js +0 -1
  75. package/336.js +0 -1
  76. package/36.js +0 -1
  77. package/376.js +0 -1
  78. package/393.js +0 -1
  79. package/396.js +0 -1
  80. package/399.js +0 -1
  81. package/4.js +0 -1
  82. package/41.js +0 -1
  83. package/419.js +0 -1
  84. package/423.js +0 -1
  85. package/494.js +0 -1
  86. package/523.js +0 -1
  87. package/560.js +0 -1
  88. package/586.js +0 -1
  89. package/598.js +0 -1
  90. package/613.js +0 -1
  91. package/628.js +0 -1
  92. package/7.js +0 -1
  93. package/719.js +0 -1
  94. package/724.js +0 -1
  95. package/740.js +0 -1
  96. package/773.js +0 -1
  97. package/791.js +0 -1
  98. package/799.js +0 -1
  99. package/802.js +0 -1
  100. package/839.js +0 -1
  101. package/855.js +0 -1
  102. package/872.js +0 -1
  103. package/879.js +0 -1
  104. package/903.js +0 -1
  105. package/911.js +0 -1
  106. package/931.js +0 -1
package/1985.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1985],{1985(E,p,s){s.d(p,{InputMultiline:()=>O});var r=s(7705),l=s(5802),m=s(9417),t=s(5547),d=s(1413),g=s(7421),_=s(3293),h=s(7384),v=s(3798);let x=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=t.VBU({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:["textarea.cdk-textarea-autosize {\n resize: none;\n}\n\ntextarea.cdk-textarea-autosize-measuring {\n padding: 2px 0 !important;\n box-sizing: content-box !important;\n height: auto !important;\n overflow: hidden !important;\n}\n\ntextarea.cdk-textarea-autosize-measuring-firefox {\n padding: 2px 0 !important;\n box-sizing: content-box !important;\n height: 0 !important;\n}\n\n@keyframes cdk-text-field-autofill-start { /*!*/ }\n@keyframes cdk-text-field-autofill-end { /*!*/ }\n.cdk-text-field-autofill-monitored:-webkit-autofill {\n animation: cdk-text-field-autofill-start 0s 1ms;\n}\n\n.cdk-text-field-autofill-monitored:not(:-webkit-autofill) {\n animation: cdk-text-field-autofill-end 0s 1ms;\n}\n"],encapsulation:2,changeDetection:0})}return i})(),M=(()=>{class i{_elementRef=(0,l.WQX)(t.aKT);_platform=(0,l.WQX)(g.O);_ngZone=(0,l.WQX)(l.SKi);_renderer=(0,l.WQX)(t.sFG);_resizeEvents=new d.B;_previousValue;_initialHeight;_destroyed=new d.B;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=(0,h.OE)(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=(0,h.OE)(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,l.WQX)(l.qQL);_hasFocus=!1;_isViewInited=!1;constructor(){(0,l.WQX)(_.l).load(x),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe((0,v.Z)(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;const e=this._textareaElement.cloneNode(!1),n=e.style;e.rows=1,n.position="absolute",n.visibility="hidden",n.border="none",n.padding="0",n.height="",n.minHeight="",n.maxHeight="",n.top=n.bottom=n.left=n.right="auto",n.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,n=e.style.marginBottom||"",a=this._hasFocus,u=this._platform.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(u);const f=e.scrollHeight-4;return e.classList.remove(u),a&&(e.style.marginBottom=n),f}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus="focus"===e.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const n=this._elementRef.nativeElement,o=n.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const a=this._measureScrollHeight(),u=Math.max(a,this._cachedPlaceholderHeight||0);n.style.height=`${u}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(n)):setTimeout(()=>this._scrollToCaretPosition(n))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){const{selectionStart:n,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(n,o)}static \u0275fac=function(n){return new(n||i)};static \u0275dir=t.FsC({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(n,o){1&n&&t.bIt("input",function(){return o._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",r.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return i})(),b=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=t.$C({type:i});static \u0275inj=l.G2t({})}return i})();var y=s(2245),C=s(5381),z=s(29);const k=["inputField"];function F(i,c){1&i&&t.EFF(0," * ")}function P(i,c){if(1&i&&(t.j41(0,"span",5),t.nrm(1,"cue-svg-icon",8),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("name",e.icon())}}function w(i,c){if(1&i&&(t.j41(0,"cue-typography",7),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.error())}}let O=(()=>{class i{value=(0,r.geq)("");_displayValue=(0,l.vPA)("");label=(0,r.hFB)("");info=(0,r.hFB)("");placeholder=(0,r.hFB)("");error=(0,r.hFB)(void 0);required=(0,r.hFB)(!1);icon=(0,r.hFB)(void 0);size=(0,r.hFB)("m");isFocused=!1;disabled=!1;inputField;valueChange=(0,r.CGW)();_syncDisplay=(0,l.QZP)(()=>{const e=this.value()||"";!this.isFocused&&e!==this._displayValue()&&this._displayValue.set(e)});onChange=e=>{};onTouched=()=>{};writeValue(e){const n=e||"";this.value.set(n),this.isFocused||this._displayValue.set(n)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}emitValue(e){const n=e.target.value;this.valueChange.emit(n),this.onChange(n)}focus(){this.isFocused=!0,this._displayValue.set(this.value()||""),this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1;const e=this.inputField?.nativeElement.value??this._displayValue();this._displayValue.set(e),this.onTouched()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=t.VBU({type:i,selectors:[["cue-input-multiline"]],viewQuery:function(n,o){if(1&n&&t.GBs(k,5),2&n){let a;t.mGM(a=t.lsd())&&(o.inputField=a.first)}},inputs:{value:[1,"value"],label:[1,"label"],info:[1,"info"],placeholder:[1,"placeholder"],error:[1,"error"],required:[1,"required"],icon:[1,"icon"],size:[1,"size"]},outputs:{value:"valueChange",valueChange:"valueChange"},features:[t.Jv_([{provide:m.kq,useExisting:(0,l.Rfq)(()=>i),multi:!0}])],decls:10,vars:14,consts:[["inputField",""],[1,"form-field"],["size","s",1,"label",3,"info"],[1,"input-container"],["align","center","gap","s"],[2,"height","12px"],["cdkTextareaAutosize","",1,"input","textarea",2,"resize","none","overflow","hidden",3,"input","focus","blur","cdkAutosizeMinRows","cdkAutosizeMaxRows","placeholder","value","disabled"],["size","s",1,"error-text"],[3,"name"]],template:function(n,o){1&n&&(t.j41(0,"div",1)(1,"cue-typography",2),t.EFF(2),t.nVh(3,F,1,0),t.k0s(),t.j41(4,"div",3)(5,"cue-flexcontainer",4),t.nVh(6,P,2,1,"span",5),t.j41(7,"textarea",6,0),t.bIt("input",function(u){return o.emitValue(u)})("focus",function(){return o.isFocused=!0})("blur",function(){return o.onBlur()}),t.k0s()()(),t.nVh(9,w,2,1,"cue-typography",7),t.k0s()),2&n&&(t.HbH("size-"+o.size()),t.AVh("focused",o.isFocused||o._displayValue()),t.R7$(),t.Y8G("info",o.info()),t.R7$(),t.SpI(" ",o.label()," "),t.R7$(),t.vxM(o.required()?3:-1),t.R7$(3),t.vxM(o.icon()?6:-1),t.R7$(),t.Y8G("cdkAutosizeMinRows",1)("cdkAutosizeMaxRows",8)("placeholder",o.placeholder())("value",o._displayValue())("disabled",o.disabled),t.R7$(2),t.vxM(o.error()?9:-1))},dependencies:[y.Typography,C.n,z.A,b,M],styles:[".form-field[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column}.input-container[_ngcontent-%COMP%]{position:relative;z-index:2}.input.textarea[_ngcontent-%COMP%]{width:100%;min-height:32px;border:none;border-bottom:1px solid var(--cue-input-border-bottom-color);background:none;outline:none;font-family:var(--cue-font-family);resize:none;overflow:hidden;color:var(--cue-input-value-color);position:relative;z-index:2;padding-bottom:8px}.size-xs[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .input.textarea[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.input.textarea[_ngcontent-%COMP%]::placeholder{color:var(--cue-input-placeholder-color);font-family:var(--cue-font-family)}.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:none;transition:all .2s ease;z-index:1;padding:0 4px;left:0}.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%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .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%]{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%]{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%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}.form-field[_ngcontent-%COMP%]:not(.focused) .input-container[_ngcontent-%COMP%]{margin-top:24px}.form-field.focused[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-top:12px}"],changeDetection:0})}return i})()}}]);
package/2245.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2245,9495],{9495(Nt,Re,V){V.d(Re,{InlineInput:()=>ue});var W=V(7705),Oe=V(5802),G=V(5547);const z=["inputEl"];let ue=(()=>{class F{value=(0,W.geq)("");placeholder=(0,W.hFB)("");autofocus=(0,W.hFB)(!1);valueChange=(0,W.CGW)();save=(0,W.CGW)();cancel=(0,W.CGW)();inputEl;constructor(){(0,Oe.QZP)(()=>{const A=this.value(),H=this.inputEl?.nativeElement;H&&H.innerText.replace(/\n$/,"")!==A&&(H.innerText=A)})}ngAfterViewInit(){const A=this.inputEl?.nativeElement;A&&(A.innerText=this.value()),this.autofocus()&&A&&A.focus()}onInput(A){const $=A.target.innerText.replace(/\n$/,"");this.value.set($),this.valueChange.emit($)}onEnter(A){A.preventDefault(),this.save.emit()}onEscape(A){A.preventDefault(),this.cancel.emit()}onBlur(){this.save.emit()}static \u0275fac=function(H){return new(H||F)};static \u0275cmp=G.VBU({type:F,selectors:[["cue-inline-input"]],viewQuery:function(H,$){if(1&H&&G.GBs(z,5),2&H){let ie;G.mGM(ie=G.lsd())&&($.inputEl=ie.first)}},inputs:{value:[1,"value"],placeholder:[1,"placeholder"],autofocus:[1,"autofocus"]},outputs:{value:"valueChange",valueChange:"valueChange",save:"save",cancel:"cancel"},decls:2,vars:1,consts:[["inputEl",""],["contenteditable","true","role","textbox","aria-multiline","true",3,"input","keydown.enter","keydown.escape","blur"]],template:function(H,$){1&H&&(G.rj2(0,"span",1,0),G.VwU("input",function(le){return $.onInput(le)})("keydown.enter",function(le){return $.onEnter(le)})("keydown.escape",function(le){return $.onEscape(le)})("blur",function(){return $.onBlur()}),G.eux()),2&H&&G.BMQ("data-placeholder",$.placeholder())},styles:["[_nghost-%COMP%]{display:inline}span[contenteditable][_ngcontent-%COMP%]{outline:none;-webkit-text-decoration:underline dashed;text-decoration:underline dashed;text-underline-offset:3px;white-space:pre-wrap;word-break:break-word;cursor:text}span[contenteditable][_ngcontent-%COMP%]:empty:before{content:attr(data-placeholder);color:var(--cue-input-placeholder-color, currentColor);opacity:.5;pointer-events:none}"],changeDetection:0})}return F})()},2245(Nt,Re,V){V.r(Re),V.d(Re,{Typography:()=>xe});var W=V(7705),Oe=V(2271),G=V(7089),z=V(5381),ue=V(29),F=V(9495),C=V(5547),A=V(5802);const H=["*"];function $(X,nt){if(1&X){const B=C.RV6();C.j41(0,"div",2),C.bIt("input",function(U){A.eBV(B);const ne=C.XpG();return A.Njj(ne.onInput(U))})("blur",function(U){A.eBV(B);const ne=C.XpG();return A.Njj(ne.onInput(U))}),C.k0s()}if(2&X){const B=C.XpG();C.Aen(B.getStyles()),C.xc7("font-style",B.italic()?"italic":"normal"),C.Y8G("innerHTML",B.innerHTML(),C.npT)("contentEditable",B.editable())}}function ie(X,nt){if(1&X&&C.nrm(0,"cue-svg-icon",5),2&X){const B=C.XpG(2);C.xc7("--cue-icon-width",B.infoSize()+"px"),C.Y8G("cueTooltip",B.info())}}function le(X,nt){if(1&X){const B=C.RV6();C.j41(0,"div",3),C.bIt("input",function(U){A.eBV(B);const ne=C.XpG();return A.Njj(ne.onInput(U))})("blur",function(U){A.eBV(B);const ne=C.XpG();return A.Njj(ne.onInput(U))}),C.SdG(1),C.k0s(),C.nVh(2,ie,1,3,"cue-svg-icon",4)}if(2&X){const B=C.XpG();C.Aen(B.getStyles()),C.xc7("font-style",B.italic()?"italic":"normal"),C.Y8G("contentEditable",B.editable()),C.R7$(2),C.vxM(B.info()?2:-1)}}let xe=(()=>{class X{_inlineInput=(0,W.sbv)(F.InlineInput);hasInlineInput=(0,Oe.EW)(()=>!!this._inlineInput());as=(0,W.hFB)("div");size=(0,W.hFB)("m");weight=(0,W.hFB)("regular");align=(0,W.hFB)("start");noWrap=(0,W.hFB)(!1);italic=(0,W.hFB)(!1);innerHTML=(0,W.hFB)(null);info=(0,W.hFB)("");editable=(0,W.hFB)(!1);change=(0,W.CGW)();onInput(B){this.editable()&&this.change.emit(B.target.innerText)}getStyles=(0,Oe.EW)(()=>`\n font-family: var(--cue-font-family);\n font-size: var(--cue-font-${this.size()}-size);\n line-height: var(--cue-font-${this.size()}-line-height);\n letter-spacing: var(--cue-font-${this.size()}-letter-spacing);\n font-weight: var(--cue-font-weight-${this.weight()});\n text-align: ${this.align()};\n ${this.noWrap()?"white-space: nowrap; overflow: hidden; text-overflow: ellipsis;":""}\n `);infoSize=(0,Oe.EW)(()=>{switch(this.size()){case"xs":return 10;case"s":return 12;case"m":default:return 14;case"l":return 16;case"xl":return 18}});static \u0275fac=function(N){return new(N||X)};static \u0275cmp=C.VBU({type:X,selectors:[["cue-typography"]],contentQueries:function(N,U,ne){1&N&&C.C6U(ne,U._inlineInput,F.InlineInput,5),2&N&&C.NyB()},inputs:{as:[1,"as"],size:[1,"size"],weight:[1,"weight"],align:[1,"align"],noWrap:[1,"noWrap"],italic:[1,"italic"],innerHTML:[1,"innerHTML"],info:[1,"info"],editable:[1,"editable"]},outputs:{change:"change"},ngContentSelectors:H,decls:3,vars:2,consts:[["justify","start","align","center",3,"noGap"],[3,"style","font-style","innerHTML","contentEditable"],[3,"input","blur","innerHTML","contentEditable"],[3,"input","blur","contentEditable"],["name","info",2,"margin-left","4px","vertical-align","super","cursor","pointer",3,"cueTooltip","--cue-icon-width"],["name","info",2,"margin-left","4px","vertical-align","super","cursor","pointer",3,"cueTooltip"]],template:function(N,U){1&N&&(C.NAR(),C.j41(0,"cue-flexcontainer",0),C.nVh(1,$,1,6,"div",1)(2,le,3,6),C.k0s()),2&N&&(C.Y8G("noGap",!0),C.R7$(),C.vxM(U.innerHTML()?1:2))},dependencies:[ue.A,G.d,z.n],encapsulation:2})}return X})()},7089(Nt,Re,V){V.d(Re,{d:()=>si});var W=V(5802),Oe=V(5547),G=V(7705);function z(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ue(e){return e instanceof z(e).Element||e instanceof Element}function F(e){return e instanceof z(e).HTMLElement||e instanceof HTMLElement}function C(e){return!(typeof ShadowRoot>"u")&&(e instanceof z(e).ShadowRoot||e instanceof ShadowRoot)}var A=Math.max,H=Math.min,$=Math.round;function ie(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function le(){return!/^((?!chrome|android).)*safari/i.test(ie())}function xe(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,a=1;t&&F(e)&&(o=e.offsetWidth>0&&$(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&$(i.height)/e.offsetHeight||1);var u=(ue(e)?z(e):window).visualViewport,f=!le()&&n,p=(i.left+(f&&u?u.offsetLeft:0))/o,c=(i.top+(f&&u?u.offsetTop:0))/a,E=i.width/o,O=i.height/a;return{width:E,height:O,top:c,right:p+E,bottom:c+O,left:p,x:p,y:c}}function X(e){var t=z(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){return((ue(e)?e.ownerDocument:e.document)||window.document).documentElement}function ne(e){return xe(U(e)).left+X(e).scrollLeft}function he(e){return z(e).getComputedStyle(e)}function xt(e){var t=he(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function In(e,t,n){void 0===n&&(n=!1);var i=F(t),o=F(t)&&function Pn(e){var t=e.getBoundingClientRect(),n=$(t.width)/e.offsetWidth||1,i=$(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=U(t),s=xe(e,o,n),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&(("body"!==N(t)||xt(a))&&(u=function B(e){return e!==z(e)&&F(e)?function nt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):X(e)}(t)),F(t)?((f=xe(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=ne(a))),{x:s.left+u.scrollLeft-f.x,y:s.top+u.scrollTop-f.y,width:s.width,height:s.height}}function Et(e){var t=xe(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function rt(e){return"html"===N(e)?e:e.assignedSlot||e.parentNode||(C(e)?e.host:null)||U(e)}function kt(e){return["html","body","#document"].indexOf(N(e))>=0?e.ownerDocument.body:F(e)&&xt(e)?e:kt(rt(e))}function Ue(e,t){var n;void 0===t&&(t=[]);var i=kt(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=z(i),s=o?[a].concat(a.visualViewport||[],xt(i)?i:[]):i,u=t.concat(s);return o?u:u.concat(Ue(rt(s)))}function Ln(e){return["table","td","th"].indexOf(N(e))>=0}function Wt(e){return F(e)&&"fixed"!==he(e).position?e.offsetParent:null}function He(e){for(var t=z(e),n=Wt(e);n&&Ln(n)&&"static"===he(n).position;)n=Wt(n);return n&&("html"===N(n)||"body"===N(n)&&"static"===he(n).position)?t:n||function Rn(e){var t=/firefox/i.test(ie());if(/Trident/i.test(ie())&&F(e)&&"fixed"===he(e).position)return null;var o=rt(e);for(C(o)&&(o=o.host);F(o)&&["html","body"].indexOf(N(o))<0;){var a=he(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}(e)||t}var J="top",oe="bottom",ae="right",ee="left",Tt="auto",$e=[J,oe,ae,ee],Se="start",ze="end",Vt="viewport",Xe="popper",Ft=$e.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+ze])},[]),Ut=[].concat($e,[Tt]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+ze])},[]),zn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xn(e){var t=new Map,n=new Set,i=[];function o(a){n.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&o(f)}}),i.push(a)}return e.forEach(function(a){t.set(a.name,a)}),e.forEach(function(a){n.has(a.name)||o(a)}),i}function Gn(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Ht={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function Qn(e){void 0===e&&(e={});var n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,a=void 0===o?Ht:o;return function(u,f,p){void 0===p&&(p=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ht,a),modifiersData:{},elements:{reference:u,popper:f},attributes:{},styles:{}},E=[],O=!1,y={state:c,setOptions:function(d){var x="function"==typeof d?d(c.options):d;h(),c.options=Object.assign({},a,c.options,x),c.scrollParents={reference:ue(u)?Ue(u):u.contextElement?Ue(u.contextElement):[],popper:Ue(f)};var _=function Yn(e){var t=Xn(e);return zn.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}(function Kn(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}([].concat(i,c.options.modifiers)));return c.orderedModifiers=_.filter(function(r){return r.enabled}),function w(){c.orderedModifiers.forEach(function(m){var x=m.options,r=m.effect;if("function"==typeof r){var g=r({state:c,name:m.name,instance:y,options:void 0===x?{}:x});E.push(g||function(){})}})}(),y.update()},forceUpdate:function(){if(!O){var d=c.elements,x=d.reference,_=d.popper;if($t(x,_)){c.rects={reference:In(x,He(_),"fixed"===c.options.strategy),popper:Et(_)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var g=c.orderedModifiers[r],v=g.fn,D=g.options;"function"==typeof v&&(c=v({state:c,options:void 0===D?{}:D,name:g.name,instance:y})||c)}else c.reset=!1,r=-1}}},update:Gn(function(){return new Promise(function(m){y.forceUpdate(),m(c)})}),destroy:function(){h(),O=!0}};if(!$t(u,f))return y;function h(){E.forEach(function(m){return m()}),E=[]}return y.setOptions(p).then(function(m){!O&&p.onFirstUpdate&&p.onFirstUpdate(m)}),y}}var it={passive:!0};function ce(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zt(e){var f,t=e.reference,n=e.element,i=e.placement,o=i?ce(i):null,a=i?Be(i):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2;switch(o){case J:f={x:s,y:t.y-n.height};break;case oe:f={x:s,y:t.y+t.height};break;case ae:f={x:t.x+t.width,y:u};break;case ee:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var p=o?Ct(o):null;if(null!=p){var c="y"===p?"height":"width";switch(a){case Se:f[p]=f[p]-(t[c]/2-n[c]/2);break;case ze:f[p]=f[p]+(t[c]/2-n[c]/2)}}return f}var tr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xt(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,u=e.position,f=e.gpuAcceleration,p=e.adaptive,c=e.roundOffsets,E=e.isFixed,O=s.x,y=void 0===O?0:O,w=s.y,h=void 0===w?0:w,m="function"==typeof c?c({x:y,y:h}):{x:y,y:h};y=m.x,h=m.y;var d=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),_=ee,r=J,g=window;if(p){var v=He(n),D="clientHeight",P="clientWidth";v===z(n)&&"static"!==he(v=U(n)).position&&"absolute"===u&&(D="scrollHeight",P="scrollWidth"),(o===J||(o===ee||o===ae)&&a===ze)&&(r=oe,h-=(E&&v===g&&g.visualViewport?g.visualViewport.height:v[D])-i.height,h*=f?1:-1),o!==ee&&(o!==J&&o!==oe||a!==ze)||(_=ae,y-=(E&&v===g&&g.visualViewport?g.visualViewport.width:v[P])-i.width,y*=f?1:-1)}var S,k=Object.assign({position:u},p&&tr),j=!0===c?function nr(e,t){var i=e.y,o=t.devicePixelRatio||1;return{x:$(e.x*o)/o||0,y:$(i*o)/o||0}}({x:y,y:h},z(n)):{x:y,y:h};return y=j.x,h=j.y,Object.assign({},k,f?((S={})[r]=x?"0":"",S[_]=d?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",S):((t={})[r]=x?h+"px":"",t[_]=d?y+"px":"",t.transform="",t))}const Yt={name:"applyStyles",enabled:!0,phase:"write",fn:function or(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!F(a)||!N(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(s){var u=o[s];!1===u?a.removeAttribute(s):a.setAttribute(s,!0===u?"":u)}))})},effect:function ar(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]).reduce(function(f,p){return f[p]="",f},{});!F(o)||!N(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(f){o.removeAttribute(f)}))})}},requires:["computeStyles"]};var lr={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e){return e.replace(/left|right|bottom|top/g,function(t){return lr[t]})}var cr={start:"end",end:"start"};function Gt(e){return e.replace(/start|end/g,function(t){return cr[t]})}function Kt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&C(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qt(e,t,n){return t===Vt?_t(function pr(e,t){var n=z(e),i=U(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,u=0,f=0;if(o){a=o.width,s=o.height;var p=le();(p||!p&&"fixed"===t)&&(u=o.offsetLeft,f=o.offsetTop)}return{width:a,height:s,x:u+ne(e),y:f}}(e,n)):ue(t)?function vr(e,t){var n=xe(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):_t(function dr(e){var t,n=U(e),i=X(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=A(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=A(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-i.scrollLeft+ne(e),f=-i.scrollTop;return"rtl"===he(o||n).direction&&(u+=A(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:u,y:f}}(U(e)))}function Zt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Jt(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}function Ye(e,t){void 0===t&&(t={});var i=t.placement,o=void 0===i?e.placement:i,a=t.strategy,s=void 0===a?e.strategy:a,u=t.boundary,f=void 0===u?"clippingParents":u,p=t.rootBoundary,c=void 0===p?Vt:p,E=t.elementContext,O=void 0===E?Xe:E,y=t.altBoundary,w=void 0!==y&&y,h=t.padding,m=void 0===h?0:h,d=Zt("number"!=typeof m?m:Jt(m,$e)),_=e.rects.popper,r=e.elements[w?O===Xe?"reference":Xe:O],g=function hr(e,t,n,i){var o="clippingParents"===t?function mr(e){var t=Ue(rt(e)),i=["absolute","fixed"].indexOf(he(e).position)>=0&&F(e)?He(e):e;return ue(i)?t.filter(function(o){return ue(o)&&Kt(o,i)&&"body"!==N(o)}):[]}(e):[].concat(t),a=[].concat(o,[n]),u=a.reduce(function(f,p){var c=Qt(e,p,i);return f.top=A(c.top,f.top),f.right=H(c.right,f.right),f.bottom=H(c.bottom,f.bottom),f.left=A(c.left,f.left),f},Qt(e,a[0],i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}(ue(r)?r:r.contextElement||U(e.elements.popper),f,c,s),v=xe(e.elements.reference),D=zt({reference:v,element:_,strategy:"absolute",placement:o}),P=_t(Object.assign({},_,D)),L=O===Xe?P:v,R={top:g.top-L.top+d.top,bottom:L.bottom-g.bottom+d.bottom,left:g.left-L.left+d.left,right:L.right-g.right+d.right},k=e.modifiersData.offset;if(O===Xe&&k){var j=k[o];Object.keys(R).forEach(function(S){var K=[ae,oe].indexOf(S)>=0?1:-1,re=[J,oe].indexOf(S)>=0?"y":"x";R[S]+=j[re]*K})}return R}function Ge(e,t,n){return A(e,H(t,n))}function en(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tn(e){return[J,ae,oe,ee].some(function(t){return e[t]>=0})}var Ir=Qn({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function qn(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,u=void 0===s||s,f=z(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(c){c.addEventListener("scroll",n.update,it)}),u&&f.addEventListener("resize",n.update,it),function(){a&&p.forEach(function(c){c.removeEventListener("scroll",n.update,it)}),u&&f.removeEventListener("resize",n.update,it)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function Jn(e){var t=e.state;t.modifiersData[e.name]=zt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function rr(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,a=n.adaptive,s=void 0===a||a,u=n.roundOffsets,f=void 0===u||u,p={placement:ce(t.placement),variation:Be(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Xt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Yt,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function ur(e){var t=e.state,i=e.name,o=e.options.offset,a=void 0===o?[0,0]:o,s=Ut.reduce(function(c,E){return c[E]=function sr(e,t,n){var i=ce(e),o=[ee,J].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],u=a[1];return s=s||0,u=(u||0)*o,[ee,ae].indexOf(i)>=0?{x:u,y:s}:{x:s,y:u}}(E,t.rects,a),c},{}),u=s[t.placement],p=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u.x,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function br(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=void 0===o||o,s=n.altAxis,u=void 0===s||s,f=n.fallbackPlacements,p=n.padding,c=n.boundary,E=n.rootBoundary,O=n.altBoundary,y=n.flipVariations,w=void 0===y||y,h=n.allowedAutoPlacements,m=t.options.placement,d=ce(m),_=f||(d!==m&&w?function yr(e){if(ce(e)===Tt)return[];var t=ot(e);return[Gt(e),t,Gt(t)]}(m):[ot(m)]),r=[m].concat(_).reduce(function(ge,fe){return ge.concat(ce(fe)===Tt?function gr(e,t){void 0===t&&(t={});var o=t.boundary,a=t.rootBoundary,s=t.padding,u=t.flipVariations,f=t.allowedAutoPlacements,p=void 0===f?Ut:f,c=Be(t.placement),E=c?u?Ft:Ft.filter(function(w){return Be(w)===c}):$e,O=E.filter(function(w){return p.indexOf(w)>=0});0===O.length&&(O=E);var y=O.reduce(function(w,h){return w[h]=Ye(e,{placement:h,boundary:o,rootBoundary:a,padding:s})[ce(h)],w},{});return Object.keys(y).sort(function(w,h){return y[w]-y[h]})}(t,{placement:fe,boundary:c,rootBoundary:E,padding:p,flipVariations:w,allowedAutoPlacements:h}):fe)},[]),g=t.rects.reference,v=t.rects.popper,D=new Map,P=!0,L=r[0],R=0;R<r.length;R++){var k=r[R],j=ce(k),S=Be(k)===Se,K=[J,oe].indexOf(j)>=0,re=K?"width":"height",Q=Ye(t,{placement:k,boundary:c,rootBoundary:E,altBoundary:O,padding:p}),q=K?S?ae:ee:S?oe:J;g[re]>v[re]&&(q=ot(q));var Y=ot(q),de=[];if(a&&de.push(Q[j]<=0),u&&de.push(Q[q]<=0,Q[Y]<=0),de.every(function(ge){return ge})){L=k,P=!1;break}D.set(k,de)}if(P)for(var Me=function(fe){var ye=r.find(function(Ne){var be=D.get(Ne);if(be)return be.slice(0,fe).every(function(ke){return ke})});if(ye)return L=ye,"break"},me=w?3:1;me>0&&"break"!==Me(me);me--);t.placement!==L&&(t.modifiersData[i]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function Er(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=void 0===o||o,s=n.altAxis,u=void 0!==s&&s,O=n.tether,y=void 0===O||O,w=n.tetherOffset,h=void 0===w?0:w,m=Ye(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),d=ce(t.placement),x=Be(t.placement),_=!x,r=Ct(d),g=function Or(e){return"x"===e?"y":"x"}(r),v=t.modifiersData.popperOffsets,D=t.rects.reference,P=t.rects.popper,L="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,R="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(v){if(a){var S,K="y"===r?J:ee,re="y"===r?oe:ae,Q="y"===r?"height":"width",q=v[r],Y=q+m[K],de=q-m[re],ve=y?-P[Q]/2:0,Me=x===Se?D[Q]:P[Q],me=x===Se?-P[Q]:-D[Q],Pe=t.elements.arrow,ge=y&&Pe?Et(Pe):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ye=fe[K],Ne=fe[re],be=Ge(0,D[Q],ge[Q]),ke=_?D[Q]/2-ve-be-ye-R.mainAxis:Me-be-ye-R.mainAxis,_e=_?-D[Q]/2+ve+be+Ne+R.mainAxis:me+be+Ne+R.mainAxis,We=t.elements.arrow&&He(t.elements.arrow),ct=We?"y"===r?We.clientTop||0:We.clientLeft||0:0,qe=null!=(S=k?.[r])?S:0,dt=q+_e-qe,Ze=Ge(y?H(Y,q+ke-qe-ct):Y,q,y?A(de,dt):de);v[r]=Ze,j[r]=Ze-q}if(u){var Je,we=v[g],De="y"===g?"height":"width",et=we+m["x"===r?J:ee],Ie=we-m["x"===r?oe:ae],tt=-1!==[J,ee].indexOf(d),ht=null!=(Je=k?.[g])?Je:0,gt=tt?et:we-D[De]-P[De]-ht+R.altAxis,yt=tt?we+D[De]+P[De]-ht-R.altAxis:Ie,bt=y&&tt?function xr(e,t,n){var i=Ge(e,t,n);return i>n?n:i}(gt,we,yt):Ge(y?gt:et,we,y?yt:Ie);v[g]=bt,j[g]=bt-we}t.modifiersData[i]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function _r(e){var t,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,u=ce(n.placement),f=Ct(u),c=[ee,ae].indexOf(u)>=0?"height":"width";if(a&&s){var E=function(t,n){return Zt("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:Jt(t,$e))}(o.padding,n),O=Et(a),y="y"===f?J:ee,w="y"===f?oe:ae,h=n.rects.reference[c]+n.rects.reference[f]-s[f]-n.rects.popper[c],m=s[f]-n.rects.reference[f],d=He(a),x=d?"y"===f?d.clientHeight||0:d.clientWidth||0:0,v=x/2-O[c]/2+(h/2-m/2),D=Ge(E[y],v,x-O[c]-E[w]);n.modifiersData[i]=((t={})[f]=D,t.centerOffset=D-v,t)}},effect:function Dr(e){var t=e.state,i=e.options.element,o=void 0===i?"[data-popper-arrow]":i;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||Kt(t.elements.popper,o)&&(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Mr(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ye(t,{elementContext:"reference"}),u=Ye(t,{altBoundary:!0}),f=en(s,i),p=en(u,o,a),c=tn(f),E=tn(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:E},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":E})}}]}),nn="tippy-content",on="tippy-arrow",an="tippy-svg-arrow",Ee={passive:!0,capture:!0},sn=function(){return document.body};function Dt(e,t,n){return Array.isArray(e)?e[t]??(Array.isArray(n)?n[t]:n):e}function At(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function un(e,t){return"function"==typeof e?e.apply(void 0,t):e}function fn(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function Te(e){return[].concat(e)}function ln(e,t){-1===e.indexOf(t)&&e.push(t)}function je(e){return[].slice.call(e)}function pn(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Ae(){return document.createElement("div")}function at(e){return["Element","Fragment"].some(function(t){return At(e,t)})}function It(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Ke(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Lt(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[i](o,n)})}function mn(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var pe={isTouch:!1},hn=0;function Wr(){pe.isTouch||(pe.isTouch=!0,window.performance&&document.addEventListener("mousemove",gn))}function gn(){var e=performance.now();e-hn<20&&(pe.isTouch=!1,document.removeEventListener("mousemove",gn)),hn=e}function Vr(){var e=document.activeElement;(function dn(e){return!(!e||!e._tippy||e._tippy.reference!==e)})(e)&&e.blur&&!e._tippy.state.isVisible&&e.blur()}var Hr=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,te=Object.assign({appendTo:sn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Yr=Object.keys(te);function xn(e){var n=(e.plugins||[]).reduce(function(i,o){var u,a=o.name;return a&&(i[a]=void 0!==e[a]?e[a]:null!=(u=te[a])?u:o.defaultValue),i},{});return Object.assign({},e,n)}function En(e,t){var n=Object.assign({},t,{content:un(t.content,[e])},t.ignoreAttributes?{}:function Kr(e,t){return(t?Object.keys(xn(Object.assign({},te,{plugins:t}))):Yr).reduce(function(o,a){var s=(e.getAttribute("data-tippy-"+a)||"").trim();if(!s)return o;if("content"===a)o[a]=s;else try{o[a]=JSON.parse(s)}catch{o[a]=s}return o},{})}(e,t.plugins));return n.aria=Object.assign({},te.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Rt(e,t){e.innerHTML=t}function Tn(e){var t=Ae();return!0===e?t.className=on:(t.className=an,at(e)?t.appendChild(e):Rt(t,e)),t}function Cn(e,t){at(t.content)?(Rt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Rt(e,t.content):e.textContent=t.content)}function st(e){var t=e.firstElementChild,n=je(t.children);return{box:t,content:n.find(function(i){return i.classList.contains(nn)}),arrow:n.find(function(i){return i.classList.contains(on)||i.classList.contains(an)}),backdrop:n.find(function(i){return i.classList.contains("tippy-backdrop")})}}function _n(e){var t=Ae(),n=Ae();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Ae();function o(a,s){var u=st(t),f=u.box,p=u.content,c=u.arrow;s.theme?f.setAttribute("data-theme",s.theme):f.removeAttribute("data-theme"),"string"==typeof s.animation?f.setAttribute("data-animation",s.animation):f.removeAttribute("data-animation"),s.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?f.setAttribute("role",s.role):f.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&Cn(p,e.props),s.arrow?c?a.arrow!==s.arrow&&(f.removeChild(c),f.appendChild(Tn(s.arrow))):f.appendChild(Tn(s.arrow)):c&&f.removeChild(c)}return i.className=nn,i.setAttribute("data-state","hidden"),Cn(i,e.props),t.appendChild(n),n.appendChild(i),o(e.props,e.props),{popper:t,onUpdate:o}}_n.$$tippy=!0;var qr=1,ut=[],ft=[];function Zr(e,t){var i,o,a,c,E,O,h,n=En(e,Object.assign({},te,xn(pn(t)))),s=!1,u=!1,f=!1,p=!1,y=[],w=fn(pt,n.interactiveDebounce),m=qr++,x=function Br(e){return e.filter(function(t,n){return e.indexOf(t)===n})}(n.plugins),r={id:m,reference:e,popper:Ae(),popperInstance:null,props:n,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:x,clearDelayTimeouts:function gt(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(a)},setProps:function yt(l){if(!r.state.isDestroyed){Y("onBeforeUpdate",[r,l]),ct();var b=r.props,T=En(e,Object.assign({},b,pn(l),{ignoreAttributes:!0}));r.props=T,We(),b.interactiveDebounce!==T.interactiveDebounce&&(Me(),w=fn(pt,T.interactiveDebounce)),b.triggerTarget&&!T.triggerTarget?Te(b.triggerTarget).forEach(function(I){I.removeAttribute("aria-expanded")}):T.triggerTarget&&e.removeAttribute("aria-expanded"),ve(),q(),D&&D(b,T),r.popperInstance&&(vt(),De().forEach(function(I){requestAnimationFrame(I._tippy.popperInstance.forceUpdate)})),Y("onAfterUpdate",[r,l])}},setContent:function bt(l){r.setProps({content:l})},show:function ui(){var l=r.state.isVisible,b=r.state.isDestroyed,T=!r.state.isEnabled,I=pe.isTouch&&!r.props.touch,M=Dt(r.props.duration,0,te.duration);if(!(l||b||T||I||S().hasAttribute("disabled")||(Y("onShow",[r],!1),!1===r.props.onShow(r)))){if(r.state.isVisible=!0,j()&&(v.style.visibility="visible"),q(),fe(),r.state.isMounted||(v.style.transition="none"),j()){var Z=re();It([Z.box,Z.content],0)}O=function(){var Le;if(r.state.isVisible&&!p){if(p=!0,v.style.transition=r.props.moveTransition,j()&&r.props.animation){var Bt=re(),wt=Bt.box,Fe=Bt.content;It([wt,Fe],M),Ke([wt,Fe],"visible")}de(),ve(),ln(ft,r),null==(Le=r.popperInstance)||Le.forceUpdate(),Y("onMount",[r]),r.props.animation&&j()&&function be(l,b){ke(l,b)}(M,function(){r.state.isShown=!0,Y("onShown",[r])})}},function we(){var b,l=r.props.appendTo,T=S();(b=r.props.interactive&&l===sn||"parent"===l?T.parentNode:un(l,[T])).contains(v)||b.appendChild(v),r.state.isMounted=!0,vt()}()}},hide:function fi(){var l=!r.state.isVisible,b=r.state.isDestroyed,T=!r.state.isEnabled,I=Dt(r.props.duration,1,te.duration);if(!(l||b||T)&&(Y("onHide",[r],!1),!1!==r.props.onHide(r))){if(r.state.isVisible=!1,r.state.isShown=!1,p=!1,s=!1,j()&&(v.style.visibility="hidden"),Me(),ye(),q(!0),j()){var M=re(),Z=M.box,se=M.content;r.props.animation&&(It([Z,se],I),Ke([Z,se],"hidden"))}de(),ve(),r.props.animation?j()&&function Ne(l,b){ke(l,function(){!r.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&b()})}(I,r.unmount):r.unmount()}},hideWithInteractivity:function li(l){K().addEventListener("mousemove",w),ln(ut,w),w(l)},enable:function tt(){r.state.isEnabled=!0},disable:function ht(){r.hide(),r.state.isEnabled=!1},unmount:function ci(){r.state.isVisible&&r.hide(),r.state.isMounted&&(mt(),De().forEach(function(l){l._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v),ft=ft.filter(function(l){return l!==r}),r.state.isMounted=!1,Y("onHidden",[r]))},destroy:function pi(){r.state.isDestroyed||(r.clearDelayTimeouts(),r.unmount(),ct(),delete e._tippy,r.state.isDestroyed=!0,Y("onDestroy",[r]))}};if(!n.render)return r;var g=n.render(r),v=g.popper,D=g.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+r.id,r.popper=v,e._tippy=r,v._tippy=r;var P=x.map(function(l){return l.fn(r)}),L=e.hasAttribute("aria-expanded");return We(),ve(),q(),Y("onCreate",[r]),n.showOnCreate&&et(),v.addEventListener("mouseenter",function(){r.props.interactive&&r.state.isVisible&&r.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){r.props.interactive&&r.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",w)}),r;function R(){var l=r.props.touch;return Array.isArray(l)?l:[l,0]}function k(){return"hold"===R()[0]}function j(){var l;return!(null==(l=r.props.render)||!l.$$tippy)}function S(){return h||e}function K(){var l=S().parentNode;return l?function vn(e){var t,i=Te(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(l):document}function re(){return st(v)}function Q(l){return r.state.isMounted&&!r.state.isVisible||pe.isTouch||c&&"focus"===c.type?0:Dt(r.props.delay,l?0:1,te.delay)}function q(l){void 0===l&&(l=!1),v.style.pointerEvents=r.props.interactive&&!l?"":"none",v.style.zIndex=""+r.props.zIndex}function Y(l,b,T){var I;void 0===T&&(T=!0),P.forEach(function(M){M[l]&&M[l].apply(M,b)}),T&&(I=r.props)[l].apply(I,b)}function de(){var l=r.props.aria;if(l.content){var b="aria-"+l.content,T=v.id;Te(r.props.triggerTarget||e).forEach(function(M){var Z=M.getAttribute(b);if(r.state.isVisible)M.setAttribute(b,Z?Z+" "+T:T);else{var se=Z&&Z.replace(T,"").trim();se?M.setAttribute(b,se):M.removeAttribute(b)}})}}function ve(){!L&&r.props.aria.expanded&&Te(r.props.triggerTarget||e).forEach(function(b){r.props.interactive?b.setAttribute("aria-expanded",r.state.isVisible&&b===S()?"true":"false"):b.removeAttribute("aria-expanded")})}function Me(){K().removeEventListener("mousemove",w),ut=ut.filter(function(l){return l!==w})}function me(l){if(!pe.isTouch||!f&&"mousedown"!==l.type){var b=l.composedPath&&l.composedPath()[0]||l.target;if(!r.props.interactive||!mn(v,b)){if(Te(r.props.triggerTarget||e).some(function(T){return mn(T,b)})){if(pe.isTouch||r.state.isVisible&&r.props.trigger.indexOf("click")>=0)return}else Y("onClickOutside",[r,l]);!0===r.props.hideOnClick&&(r.clearDelayTimeouts(),r.hide(),u=!0,setTimeout(function(){u=!1}),r.state.isMounted||ye())}}}function Pe(){f=!0}function ge(){f=!1}function fe(){var l=K();l.addEventListener("mousedown",me,!0),l.addEventListener("touchend",me,Ee),l.addEventListener("touchstart",ge,Ee),l.addEventListener("touchmove",Pe,Ee)}function ye(){var l=K();l.removeEventListener("mousedown",me,!0),l.removeEventListener("touchend",me,Ee),l.removeEventListener("touchstart",ge,Ee),l.removeEventListener("touchmove",Pe,Ee)}function ke(l,b){var T=re().box;function I(M){M.target===T&&(Lt(T,"remove",I),b())}if(0===l)return b();Lt(T,"remove",E),Lt(T,"add",I),E=I}function _e(l,b,T){void 0===T&&(T=!1),Te(r.props.triggerTarget||e).forEach(function(M){M.addEventListener(l,b,T),y.push({node:M,eventType:l,handler:b,options:T})})}function We(){k()&&(_e("touchstart",qe,{passive:!0}),_e("touchend",dt,{passive:!0})),function Sr(e){return e.split(/\s+/).filter(Boolean)}(r.props.trigger).forEach(function(l){if("manual"!==l)switch(_e(l,qe),l){case"mouseenter":_e("mouseleave",dt);break;case"focus":_e(Hr?"focusout":"blur",Ze);break;case"focusin":_e("focusout",Ze)}})}function ct(){y.forEach(function(l){l.node.removeEventListener(l.eventType,l.handler,l.options)}),y=[]}function qe(l){var b,T=!1;if(r.state.isEnabled&&!Je(l)&&!u){var I="focus"===(null==(b=c)?void 0:b.type);c=l,h=l.currentTarget,ve(),!r.state.isVisible&&function Pt(e){return At(e,"MouseEvent")}(l)&&ut.forEach(function(M){return M(l)}),"click"===l.type&&(r.props.trigger.indexOf("mouseenter")<0||s)&&!1!==r.props.hideOnClick&&r.state.isVisible?T=!0:et(l),"click"===l.type&&(s=!T),T&&!I&&Ie(l)}}function pt(l){var b=l.target,T=S().contains(b)||v.contains(b);"mousemove"===l.type&&T||function kr(e,t){var n=t.clientX,i=t.clientY;return e.every(function(o){var a=o.popperRect,s=o.popperState,f=o.props.interactiveBorder,p=function cn(e){return e.split("-")[0]}(s.placement),c=s.modifiersData.offset;return!c||a.top-i+("bottom"===p?c.top.y:0)>f||i-a.bottom-("top"===p?c.bottom.y:0)>f||a.left-n+("right"===p?c.left.x:0)>f||n-a.right-("left"===p?c.right.x:0)>f})}(De().concat(v).map(function(M){var Z,Ve=null==(Z=M._tippy.popperInstance)?void 0:Z.state;return Ve?{popperRect:M.getBoundingClientRect(),popperState:Ve,props:n}:null}).filter(Boolean),l)&&(Me(),Ie(l))}function dt(l){if(!(Je(l)||r.props.trigger.indexOf("click")>=0&&s)){if(r.props.interactive)return void r.hideWithInteractivity(l);Ie(l)}}function Ze(l){r.props.trigger.indexOf("focusin")<0&&l.target!==S()||r.props.interactive&&l.relatedTarget&&v.contains(l.relatedTarget)||Ie(l)}function Je(l){return!!pe.isTouch&&k()!==l.type.indexOf("touch")>=0}function vt(){mt();var l=r.props,b=l.popperOptions,T=l.placement,I=l.offset,M=l.getReferenceClientRect,Z=l.moveTransition,se=j()?st(v).arrow:null,Ve=M?{getBoundingClientRect:M,contextElement:M.contextElement||S()}:e,Le=[{name:"offset",options:{offset:I}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Z}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(wt){var Fe=wt.state;if(j()){var jt=re().box;["placement","reference-hidden","escaped"].forEach(function(Ot){"placement"===Ot?jt.setAttribute("data-placement",Fe.placement):Fe.attributes.popper["data-popper-"+Ot]?jt.setAttribute("data-"+Ot,""):jt.removeAttribute("data-"+Ot)}),Fe.attributes.popper={}}}}];j()&&se&&Le.push({name:"arrow",options:{element:se,padding:3}}),Le.push.apply(Le,b?.modifiers||[]),r.popperInstance=Ir(Ve,v,Object.assign({},b,{placement:T,onFirstUpdate:O,modifiers:Le}))}function mt(){r.popperInstance&&(r.popperInstance.destroy(),r.popperInstance=null)}function De(){return je(v.querySelectorAll("[data-tippy-root]"))}function et(l){r.clearDelayTimeouts(),l&&Y("onTrigger",[r,l]),fe();var b=Q(!0),T=R(),M=T[1];pe.isTouch&&"hold"===T[0]&&M&&(b=M),b?i=setTimeout(function(){r.show()},b):r.show()}function Ie(l){if(r.clearDelayTimeouts(),Y("onUntrigger",[r,l]),r.state.isVisible){if(!(r.props.trigger.indexOf("mouseenter")>=0&&r.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(l.type)>=0&&s)){var b=Q(!1);b?o=setTimeout(function(){r.state.isVisible&&r.hide()},b):a=requestAnimationFrame(function(){r.hide()})}}else ye()}}function Ce(e,t){void 0===t&&(t={});var n=te.plugins.concat(t.plugins||[]);!function Fr(){document.addEventListener("touchstart",Wr,Ee),window.addEventListener("blur",Vr)}();var i=Object.assign({},t,{plugins:n}),u=function Nr(e){return at(e)?[e]:function jr(e){return At(e,"NodeList")}(e)?je(e):Array.isArray(e)?e:je(document.querySelectorAll(e))}(e).reduce(function(f,p){var c=p&&Zr(p,i);return c&&f.push(c),f},[]);return at(e)?u[0]:u}Ce.defaultProps=te,Ce.setDefaultProps=function(t){Object.keys(t).forEach(function(i){te[i]=t[i]})},Ce.currentInput=pe,Object.assign({},Yt,{effect:function(t){var n=t.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}}),Ce.setDefaultProps({render:_n});const ai=Ce;let si=(()=>{class e{_el=(0,W.WQX)(Oe.aKT);cueTooltip=G.hFB.required();tooltipPlacement=(0,G.hFB)(void 0);tooltipFlip=(0,G.hFB)(!0);tooltipColor=(0,G.hFB)("primary");tooltipSize=(0,G.hFB)("medium");static _styleAppended=!1;_tippyInstance;constructor(){(0,W.QZP)(()=>{const n=this.cueTooltip(),i=this.tooltipPlacement(),o=this.tooltipFlip();this._tippyInstance&&(this._tippyInstance.destroy(),this._tippyInstance=void 0),n&&(this._tippyInstance=ai(this._el.nativeElement,{content:n,placement:i,animation:"shift-away",theme:"cue",appendTo:()=>this._el.nativeElement.closest("dialog")||document.body,popperOptions:o?{}:{modifiers:[{name:"flip",enabled:!1}]}}))})}ngOnDestroy(){this._tippyInstance&&this._tippyInstance.destroy()}static \u0275fac=function(i){return new(i||e)};static \u0275dir=Oe.FsC({type:e,selectors:[["","cueTooltip",""]],inputs:{cueTooltip:[1,"cueTooltip"],tooltipPlacement:[1,"tooltipPlacement"],tooltipFlip:[1,"tooltipFlip"],tooltipColor:[1,"tooltipColor"],tooltipSize:[1,"tooltipSize"]}})}return e})()}}]);
package/2269.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2269],{8173(Jt,ce,te){te.d(ce,{FX:()=>Ie,If:()=>_,K2:()=>De,PZ:()=>Fe,hZ:()=>lt,i0:()=>fe,iF:()=>ke,kY:()=>Ce,kp:()=>m,sf:()=>Me});var _=function(p){return p[p.State=0]="State",p[p.Transition=1]="Transition",p[p.Sequence=2]="Sequence",p[p.Group=3]="Group",p[p.Animate=4]="Animate",p[p.Keyframes=5]="Keyframes",p[p.Style=6]="Style",p[p.Trigger=7]="Trigger",p[p.Reference=8]="Reference",p[p.AnimateChild=9]="AnimateChild",p[p.AnimateRef=10]="AnimateRef",p[p.Query=11]="Query",p[p.Stagger=12]="Stagger",p}(_||{});const m="*";function lt(p,h){return{type:_.Trigger,name:p,definitions:h,options:{}}}function fe(p,h=null){return{type:_.Animate,styles:h,timings:p}}function De(p,h=null){return{type:_.Sequence,steps:p,options:h}}function ke(p){return{type:_.Style,styles:p,offset:null}}function Ce(p,h,A=null){return{type:_.Transition,expr:p,animation:h,options:A}}class Me{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(h=0,A=0){this.totalTime=h+A}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}onStart(h){this._originalOnStartFns.push(h),this._onStartFns.push(h)}onDone(h){this._originalOnDoneFns.push(h),this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(h=>h()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(h){this._position=this.totalTime?h*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(h){const A="start"==h?this._onStartFns:this._onDoneFns;A.forEach(R=>R()),A.length=0}}class Fe{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(h){this.players=h;let A=0,R=0,se=0;const ne=this.players.length;0==ne?queueMicrotask(()=>this._onFinish()):this.players.forEach(H=>{H.onDone(()=>{++A==ne&&this._onFinish()}),H.onDestroy(()=>{++R==ne&&this._onDestroy()}),H.onStart(()=>{++se==ne&&this._onStart()})}),this.totalTime=this.players.reduce((H,Re)=>Math.max(H,Re.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this.players.forEach(h=>h.init())}onStart(h){this._onStartFns.push(h)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(h=>h()),this._onStartFns=[])}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(h=>h.play())}pause(){this.players.forEach(h=>h.pause())}restart(){this.players.forEach(h=>h.restart())}finish(){this._onFinish(),this.players.forEach(h=>h.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(h=>h.destroy()),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}reset(){this.players.forEach(h=>h.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(h){const A=h*this.totalTime;this.players.forEach(R=>{const se=R.totalTime?Math.min(1,A/R.totalTime):1;R.setPosition(se)})}getPosition(){const h=this.players.reduce((A,R)=>null===A||R.totalTime>A.totalTime?R:A,null);return null!=h?h.getPosition():0}beforeDestroy(){this.players.forEach(h=>{h.beforeDestroy&&h.beforeDestroy()})}triggerCallback(h){const A="start"==h?this._onStartFns:this._onDoneFns;A.forEach(R=>R()),A.length=0}}const Ie="!"},4650(Jt,ce,te){te.r(ce),te.d(ce,{AnimationDriver:()=>vs,NoopAnimationDriver:()=>We,\u0275Animation:()=>pn,\u0275AnimationEngine:()=>st,\u0275AnimationRenderer:()=>Gt,\u0275AnimationRendererFactory:()=>_n,\u0275AnimationStyleNormalizer:()=>Nt,\u0275BaseAnimationRenderer:()=>rt,\u0275ENTER_CLASSNAME:()=>me,\u0275LEAVE_CLASSNAME:()=>ae,\u0275NoopAnimationStyleNormalizer:()=>Dt,\u0275TransitionAnimationPlayer:()=>we,\u0275WebAnimationsDriver:()=>Wt,\u0275WebAnimationsPlayer:()=>it,\u0275WebAnimationsStyleNormalizer:()=>kt,\u0275allowPreviousPlayerStylesMerge:()=>Pt,\u0275camelCaseToDashCase:()=>Ts,\u0275containsElement:()=>Ke,\u0275createEngine:()=>mn,\u0275getParentElement:()=>de,\u0275invokeQuery:()=>Be,\u0275normalizeKeyframes:()=>vt,\u0275validateStyleProperty:()=>Et,\u0275validateWebAnimatableStyleProperty:()=>ds});var _=te(5802),m=te(8173);function fe(i){return new _.buA(3e3,!1)}function pt(i){return new _.buA(3002,!1)}const hs=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function j(i){switch(i.length){case 0:return new m.sf;case 1:return i[0];default:return new m.PZ(i)}}function yt(i,e,t=new Map,s=new Map){const n=[],r=[];let o=-1,a=null;if(e.forEach(l=>{const u=l.get("offset"),c=u==o,f=c&&a||new Map;l.forEach((b,T)=>{let g=T,E=b;if("offset"!==T)switch(g=i.normalizePropertyName(g,n),E){case m.FX:E=t.get(T);break;case m.kp:E=s.get(T);break;default:E=i.normalizeStyleValue(T,g,E,n)}f.set(g,E)}),c||r.push(f),a=f,o=u}),n.length)throw function xt(){return new _.buA(3502,!1)}();return r}function Oe(i,e,t,s){switch(e){case"start":i.onStart(()=>s(t&&Le(t,"start",i)));break;case"done":i.onDone(()=>s(t&&Le(t,"done",i)));break;case"destroy":i.onDestroy(()=>s(t&&Le(t,"destroy",i)))}}function Le(i,e,t){const r=ze(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t.totalTime??i.totalTime,!!t.disabled),o=i._data;return null!=o&&(r._data=o),r}function ze(i,e,t,s,n="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function L(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function _t(i){const e=i.indexOf(":");return[i.substring(1,e),i.slice(e+1)]}const cs=typeof document>"u"?null:document.documentElement;function de(i){const e=i.parentNode||i.host||null;return e===cs?null:e}let X=null,St=!1;function Et(i){X||(X=function ms(){return typeof document<"u"?document.body:null}()||{},St=!!X.style&&"WebkitAppearance"in X.style);let e=!0;return X.style&&!function fs(i){return"ebkit"==i.substring(1,6)}(i)&&(e=i in X.style,!e&&St&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in X.style)),e}function ds(i){return hs.has(i)}function Ke(i,e){for(;e;){if(e===i)return!0;e=de(e)}return!1}function Be(i,e,t){if(t)return Array.from(i.querySelectorAll(e));const s=i.querySelector(e);return s?[s]:[]}const me="ng-enter",ae="ng-leave",pe="ng-trigger",ge=".ng-trigger",bt="ng-animating",qe=".ng-animating";function W(i){if("number"==typeof i)return i;const e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Qe(parseFloat(e[1]),e[2])}function Qe(i,e){return"s"===e?1e3*i:i}function ye(i,e,t){return i.hasOwnProperty("duration")?i:function _s(i,e,t){let s,n=0,r="";if("string"==typeof i){const o=i.match(ys);if(null===o)return e.push(fe()),{duration:0,delay:0,easing:""};s=Qe(parseFloat(o[1]),o[2]);const a=o[3];null!=a&&(n=Qe(parseFloat(a),o[4]));const l=o[5];l&&(r=l)}else s=i;if(!t){let o=!1,a=e.length;s<0&&(e.push(function ut(){return new _.buA(3100,!1)}()),o=!0),n<0&&(e.push(function De(){return new _.buA(3101,!1)}()),o=!0),o&&e.splice(a,0,fe())}return{duration:s,delay:n,easing:r}}(i,e,t)}const ys=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function vt(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function wt(i){return Array.isArray(i)?new Map(...i):new Map(i)}function V(i,e,t){e.forEach((s,n)=>{const r=$e(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s})}function Y(i,e){e.forEach((t,s)=>{const n=$e(s);i.style[n]=""})}function le(i){return Array.isArray(i)?1==i.length?i[0]:(0,m.K2)(i):i}const Ve=new RegExp("{{\\s*(.+?)\\s*}}","g");function At(i){let e=[];if("string"==typeof i){let t;for(;t=Ve.exec(i);)e.push(t[1]);Ve.lastIndex=0}return e}function ue(i,e,t){const s=`${i}`,n=s.replace(Ve,(r,o)=>{let a=e[o];return null==a&&(t.push(function ht(){return new _.buA(3003,!1)}()),a=""),a.toString()});return n==s?i:n}const Es=/-+([a-z0-9])/g;function $e(i){return i.replace(Es,(...e)=>e[1].toUpperCase())}function Ts(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pt(i,e){return 0===i||0===e}function z(i,e,t){switch(e.type){case m.If.Trigger:return i.visitTrigger(e,t);case m.If.State:return i.visitState(e,t);case m.If.Transition:return i.visitTransition(e,t);case m.If.Sequence:return i.visitSequence(e,t);case m.If.Group:return i.visitGroup(e,t);case m.If.Animate:return i.visitAnimate(e,t);case m.If.Keyframes:return i.visitKeyframes(e,t);case m.If.Style:return i.visitStyle(e,t);case m.If.Reference:return i.visitReference(e,t);case m.If.AnimateChild:return i.visitAnimateChild(e,t);case m.If.AnimateRef:return i.visitAnimateRef(e,t);case m.If.Query:return i.visitQuery(e,t);case m.If.Stagger:return i.visitStagger(e,t);default:throw function ct(){return new _.buA(3004,!1)}()}}function Ue(i,e){return window.getComputedStyle(i)[e]}let We=(()=>{class i{validateStyleProperty(t){return Et(t)}containsElement(t,s){return Ke(t,s)}getParentElement(t){return de(t)}query(t,s,n){return Be(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new m.sf(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=_.jDH({token:i,factory:i.\u0275fac})}return i})();class vs{static NOOP=new We}class Nt{}class Dt{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}}const ws=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class kt extends Nt{normalizePropertyName(e,t){return $e(e)}normalizeStyleValue(e,t,s,n){let r="";const o=s.toString().trim();if(ws.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)r="px";else{const a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&n.push(function Ce(){return new _.buA(3005,!1)}())}return o+r}}const Se=new Set(["true","1"]),Ee=new Set(["false","0"]);function Ct(i,e){const t=Se.has(i)||Ee.has(i),s=Se.has(e)||Ee.has(e);return(n,r)=>{let o="*"==i||i==n,a="*"==e||e==r;return!o&&t&&"boolean"==typeof n&&(o=n?Se.has(i):Ee.has(i)),!a&&s&&"boolean"==typeof r&&(a=r?Se.has(e):Ee.has(e)),o&&a}}const Ds=new RegExp("s*:selfs*,?","g");function Ge(i,e,t,s){return new ks(i).build(e,t,s)}class ks{_driver;constructor(e){this._driver=e}build(e,t,s){const n=new Fs(t);return this._resetContextStyleTimingState(n),z(this,le(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0;const r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function ft(){return new _.buA(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==m.If.State){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=u}else if(a.type==m.If.Transition){const l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l)}else t.errors.push(function dt(){return new _.buA(3007,!1)}())}),{type:m.If.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){const r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{At(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(function mt(){return new _.buA(3008,!1)}(0,r.values()))}return{type:m.If.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=z(this,le(e.animation),t),n=function As(i,e){const t=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(s=>function Ps(i,e,t){if(":"==i[0]){const l=function Ns(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(function se(){return new _.buA(3016,!1)}()),"* => *"}}(i,t);if("function"==typeof l)return void e.push(l);i=l}const s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return t.push(function R(){return new _.buA(3015,!1)}()),e;const n=s[1],r=s[2],o=s[3];e.push(Ct(n,o)),"<"==r[0]&&("*"!=n||"*"!=o)&&e.push(Ct(o,n))}(s,t,e)):t.push(i),t}(e.expr,t.errors);return{type:m.If.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Z(e.options)}}visitSequence(e,t){return{type:m.If.Sequence,steps:e.steps.map(s=>z(this,s,t)),options:Z(e.options)}}visitGroup(e,t){const s=t.currentTime;let n=0;const r=e.steps.map(o=>{t.currentTime=s;const a=z(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:m.If.Group,steps:r,options:Z(e.options)}}visitAnimate(e,t){const s=function Rs(i,e){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return He(ye(i,e).duration,0,"");const t=i;if(t.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=He(0,0,"");return r.dynamic=!0,r.strValue=t,r}const n=ye(t,e);return He(n.duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:(0,m.iF)({});if(r.type==m.If.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;const u={};s.easing&&(u.easing=s.easing),o=(0,m.iF)(u)}t.currentTime+=s.duration+s.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:m.If.Animate,timings:s,style:n,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)"string"==typeof a?a===m.kp?s.push(a):t.errors.push(pt()):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:m.If.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l);let f=!0;c&&(r!=n&&r>=c.startTime&&n<=c.endTime&&(t.errors.push(function gt(){return new _.buA(3010,!1)}()),f=!1),r=c.startTime),f&&u.set(l,{startTime:r,endTime:n}),t.options&&function Ss(i,e,t){const s=e.params||{},n=At(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(function ke(){return new _.buA(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const s={type:m.If.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Me(){return new _.buA(3011,!1)}()),s;let r=0;const o=[];let a=!1,l=!1,u=0;const c=e.steps.map(N=>{const D=this._makeStyleAst(N,t);let F=null!=D.offset?D.offset:function Is(i){if("string"==typeof i)return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){const s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(D.styles),C=0;return null!=F&&(r++,C=D.offset=F),l=l||C<0||C>1,a=a||C<u,u=C,o.push(C),D});l&&t.errors.push(function Fe(){return new _.buA(3012,!1)}()),a&&t.errors.push(function Ie(){return new _.buA(3200,!1)}());const f=e.steps.length;let b=0;r>0&&r<f?t.errors.push(function p(){return new _.buA(3202,!1)}()):0==r&&(b=1/(f-1));const T=f-1,g=t.currentTime,E=t.currentAnimateTimings,w=E.duration;return c.forEach((N,D)=>{const F=b>0?D==T?1:b*D:o[D],C=F*w;t.currentTime=g+E.delay+C,E.duration=C,this._validateStyleAst(N,t),N.offset=F,s.styles.push(N)}),s}visitReference(e,t){return{type:m.If.Reference,animation:z(this,le(e.animation),t),options:Z(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:m.If.AnimateChild,options:Z(e.options)}}visitAnimateRef(e,t){return{type:m.If.AnimateRef,animation:this.visitReference(e.animation,t),options:Z(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;const[r,o]=function Cs(i){const e=!!i.split(/\s*,\s*/).find(t=>":self"==t);return e&&(i=i.replace(Ds,"")),i=i.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,qe),[i,e]}(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);const a=z(this,le(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:m.If.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Z(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function h(){return new _.buA(3013,!1)}());const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:m.If.Stagger,animation:z(this,le(e.animation),t),timings:s,options:null}}}class Fs{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}}function Z(i){return i?(i={...i}).params&&(i.params=function Ms(i){return i?{...i}:null}(i.params)):i={},i}function He(i,e,t){return{duration:i,delay:e,easing:t}}function Xe(i,e,t,s,n,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}class Te{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const zs=new RegExp(":enter","g"),Bs=new RegExp(":leave","g");function Ye(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return(new qs).buildKeyframes(i,e,t,s,n,r,o,a,l,u)}class qs{buildKeyframes(e,t,s,n,r,o,a,l,u,c=[]){u=u||new Te;const f=new Ze(e,t,u,n,r,c,[]);f.options=l;const b=l.delay?W(l.delay):0;f.currentTimeline.delayNextStep(b),f.currentTimeline.setStyles([o],null,f.errors,l),z(this,s,f);const T=f.timelines.filter(g=>g.containsAnimation());if(T.length&&a.size){let g;for(let E=T.length-1;E>=0;E--){const w=T[E];if(w.element===t){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,f.errors,l)}return T.length?T.map(g=>g.buildKeyframes()):[Xe(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(const n of e){const r=n?.delay;if(r){const o="number"==typeof r?r:W(ue(r,n?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime;const o=null!=s.duration?W(s.duration):null,a=null!=s.delay?W(s.delay):null;return 0!==o&&e.forEach(l=>{const u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),z(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let n=t;const r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),null!=r.delay)){n.previousNode.type==m.If.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=be);const o=W(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>z(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let n=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?W(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);r&&a.delayNextStep(r),z(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return ye(t.params?ue(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());const r=e.style;r.type==m.If.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();const r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?W(n.delay):0;r&&(t.previousNode.type===m.If.Style||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=be);let o=s;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{t.currentQueryIndex=c;const f=t.createSubContext(e.options,u);r&&f.delayNextStep(r),u===t.element&&(l=f.currentTimeline),z(this,e.animation,f),f.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,f.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime}const c=t.currentTimeline;l&&c.delayNextStep(l);const f=c.currentTime;z(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-f+(n.startTime-s.currentTimeline.startTime)}}const be={};class Ze{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=be;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new ve(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let n=this.options;null!=s.duration&&(n.duration=W(s.duration)),null!=s.delay&&(n.delay=W(s.delay));const r=s.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ue(r[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n]})}}return e}createSubContext(e=null,t,s){const n=t||this.element,r=new Ze(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=be,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Qs(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=(e=e.replace(zs,"."+this._enterClassName)).replace(Bs,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=s);0!==s&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u)}return!r&&0==a.length&&o.push(function A(){return new _.buA(3014,!1)}()),a}}class ve{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ve(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||m.kp),this._currentKeyframe.set(t,m.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);const r=n&&n.params||{},o=function Vs(i,e){const t=new Map;let s;return i.forEach(n=>{if("*"===n){s??=e.keys();for(let r of s)t.set(r,m.kp)}else for(let[r,o]of n)t.set(r,o)}),t}(e,this._globalTimelineStyles);for(let[a,l]of o){const u=ue(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??m.kp),this._updateStyle(a,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{const n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((a,l)=>{const u=new Map([...this._backFill,...a]);u.forEach((c,f)=>{c===m.FX?e.add(f):c===m.kp&&t.add(f)}),s||u.set("offset",l/this.duration),n.push(u)});const r=[...e.values()],o=[...t.values()];if(s){const a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return Xe(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}}class Qs extends ve{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);const u=new Map(e[0]);u.set("offset",It(a)),r.push(u);const c=e.length-1;for(let f=1;f<=c;f++){let b=new Map(e[f]);const T=b.get("offset");b.set("offset",It((t+T*s)/o)),r.push(b)}s=o,t=0,n="",e=r}return Xe(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}}function It(i,e=3){const t=Math.pow(10,e-1);return Math.round(i*t)/t}function Rt(i,e,t,s,n,r,o,a,l,u,c,f,b){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:f,errors:b}}const Je={};class Ot{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return function $s(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return void 0!==e&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,c){const f=[],b=this.ast.options&&this.ast.options.params||Je,g=this.buildStyles(s,a&&a.params||Je,f),E=l&&l.params||Je,w=this.buildStyles(n,E,f),N=new Set,D=new Map,F=new Map,C="void"===n,re={params:Lt(E,b),delay:this.ast.options?.delay},$=c?[]:Ye(e,t,this.ast.animation,r,o,g,w,re,u,f);let I=0;return $.forEach(O=>{I=Math.max(O.duration+O.delay,I)}),f.length?Rt(t,this._triggerName,s,n,C,g,w,[],[],D,F,I,f):($.forEach(O=>{const J=O.element,oe=L(D,J,new Set);O.preStyleProps.forEach(x=>oe.add(x));const Ht=L(F,J,new Set);O.postStyleProps.forEach(x=>Ht.add(x)),J!==t&&N.add(J)}),Rt(t,this._triggerName,s,n,C,g,w,$,[...N.values()],D,F,I))}}function Lt(i,e){const t={...e};return Object.entries(i).forEach(([s,n])=>{null!=n&&(t[s]=n)}),t}class Us{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,n=Lt(e,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((o,a)=>{o&&(o=ue(o,n,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}}class js{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{this.states.set(n.name,new Us(n.style,n.options&&n.options.params||{},s))}),zt(this.states,"true","1"),zt(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Ot(e,n,this.states))}),this.fallbackTransition=function Gs(i,e){return new Ot(i,{type:m.If.Transition,animation:{type:m.If.Sequence,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function zt(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}const Hs=new Te;class Xs{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){const s=[],r=Ge(this._driver,t,s,[]);if(s.length)throw function es(){return new _.buA(3503,!1)}();this._animations.set(e,r)}_buildPlayer(e,t,s){const n=e.element,r=yt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const n=[],r=this._animations.get(e);let o;const a=new Map;if(r?(o=Ye(this._driver,t,r,me,ae,new Map,new Map,s,Hs,n),o.forEach(c=>{const f=L(a,c.element,new Map);c.postStyleProps.forEach(b=>f.set(b,null))})):(n.push(function ts(){return new _.buA(3300,!1)}()),o=[]),n.length)throw function ss(){return new _.buA(3504,!1)}();a.forEach((c,f)=>{c.forEach((b,T)=>{c.set(T,this._driver.computeStyle(f,T,m.kp))})});const u=j(o.map(c=>{const f=a.get(c.element);return this._buildPlayer(c,new Map,f)}));return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function ns(){return new _.buA(3301,!1)}();return t}listen(e,t,s,n){const r=ze(t,"","","");return Oe(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if("register"==s)return void this.register(e,n[0]);if("create"==s)return void this.create(e,t,n[0]||{});const r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}}const Kt="ng-animate-queued",xe="ng-animate-disabled",en=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed";class et{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value");if(this.value=function on(i){return i??null}(s?e.value:e),s){const{value:r,...o}=e;this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const s=this.options.params;Object.keys(t).forEach(n=>{null==s[n]&&(s[n]=t[n])})}}}const he="void",tt=new et(he);class sn{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,B(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw function is(){return new _.buA(3302,!1)}();if(null==s||0==s.length)throw function rs(){return new _.buA(3303,!1)}();if(!function an(i){return"start"==i||"done"==i}(s))throw function os(){return new _.buA(3400,!1)}();const r=L(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);const a=L(this._engine.statesByElement,e,new Map);return a.has(t)||(B(e,pe),B(e,pe+"-"+t),a.set(t,tt)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function as(){return new _.buA(3401,!1)}();return t}trigger(e,t,s,n=!0){const r=this._getTrigger(t),o=new we(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(B(e,pe),B(e,pe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const u=new et(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=tt),u.value!==he&&l.value===u.value){if(!function hn(i,e){const t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return!1;for(let n=0;n<t.length;n++){const r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}(l.params,u.params)){const E=[],w=r.matchStyles(l.value,l.params,E),N=r.matchStyles(u.value,u.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{Y(e,w),V(e,N)})}return}const b=L(this._engine.playersByElement,e,[]);b.forEach(E=>{E.namespaceId==this.id&&E.triggerName==t&&E.queued&&E.destroy()});let T=r.matchTransition(l.value,u.value,e,u.params),g=!1;if(!T){if(!n)return;T=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:T,fromState:l,toState:u,player:o,isFallbackTransition:g}),g||(B(e,Kt),o.onStart(()=>{ie(e,Kt)})),o.onDone(()=>{let E=this.players.indexOf(o);E>=0&&this.players.splice(E,1);const w=this._engine.playersByElement.get(e);if(w){let N=w.indexOf(o);N>=0&&w.splice(N,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,ge,!0);s.forEach(n=>{if(n[Q])return;const r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,s,n){const r=this._engine.statesByElement.get(e),o=new Map;if(r){const a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){const c=this.trigger(e,u,he,n);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const n=new Set;t.forEach(r=>{const o=r.name;if(n.has(o))return;n.add(o);const l=this._triggers.get(o).fallbackTransition,u=s.get(o)||tt,c=new et(he),f=new we(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:f,isFallbackTransition:!0})})}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){const r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{const r=e[Q];(!r||r===Bt)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){B(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(s=>{const n=s.player;if(n.destroyed)return;const r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){const l=ze(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Oe(s.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(s)}),this._queue=[],t.sort((s,n)=>{const r=s.transition.ast.depCount,o=n.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class nn{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){const s=new sn(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const l=n.get(a);if(l){const u=s.indexOf(l);s.splice(u+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let n of s.values())if(n.namespaceId){const r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}return t}trigger(e,t,s,n){if(Ae(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!Ae(t))return;const r=t[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),B(e,xe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ie(e,xe))}removeNode(e,t,s){if(Ae(t)){const n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[Q]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,n,r){return Ae(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,qe,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[Q];if(t&&t.setForRemoval){if(e[Q]=Bt,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(xe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++)B(this.collectedEnterElements[s],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let n=0;n<s.length;n++)s[n]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++)this.processLeaveNode(this.collectedLeaveElements[s]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){const s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n())}):s.forEach(n=>n())}}reportError(e){throw function ls(){return new _.buA(3402,!1)}()}_flushAnimations(e,t){const s=new Te,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(d=>{c.add(d);const y=this.driver.query(d,".ng-animate-queued",!0);for(let S=0;S<y.length;S++)c.add(y[S])});const f=this.bodyNode,b=Array.from(this.statesByElement.keys()),T=Vt(b,this.collectedEnterElements),g=new Map;let E=0;T.forEach((d,y)=>{const S=me+E++;g.set(y,S),d.forEach(v=>B(v,S))});const w=[],N=new Set,D=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){const y=this.collectedLeaveElements[d],S=y[Q];S&&S.setForRemoval&&(w.push(y),N.add(y),S.hasAnimation?this.driver.query(y,".ng-star-inserted",!0).forEach(v=>N.add(v)):D.add(y))}const F=new Map,C=Vt(b,Array.from(N));C.forEach((d,y)=>{const S=ae+E++;F.set(y,S),d.forEach(v=>B(v,S))}),e.push(()=>{T.forEach((d,y)=>{const S=g.get(y);d.forEach(v=>ie(v,S))}),C.forEach((d,y)=>{const S=F.get(y);d.forEach(v=>ie(v,S))}),w.forEach(d=>{this.processLeaveNode(d)})});const re=[],$=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(S=>{const v=S.player,k=S.element;if(re.push(v),this.collectedEnterElements.length){const M=k[Q];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(S.triggerName)){const ee=M.previousTriggersValues.get(S.triggerName),q=this.statesByElement.get(S.element);if(q&&q.has(S.triggerName)){const Ne=q.get(S.triggerName);Ne.value=ee,q.set(S.triggerName,Ne)}}return void v.destroy()}}const U=!f||!this.driver.containsElement(f,k),K=F.get(k),G=g.get(k),P=this._buildInstruction(S,s,G,K,U);if(P.errors&&P.errors.length)return void $.push(P);if(U)return v.onStart(()=>Y(k,P.fromStyles)),v.onDestroy(()=>V(k,P.toStyles)),void n.push(v);if(S.isFallbackTransition)return v.onStart(()=>Y(k,P.fromStyles)),v.onDestroy(()=>V(k,P.toStyles)),void n.push(v);const Zt=[];P.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||Zt.push(M)}),P.timelines=Zt,s.append(k,P.timelines),o.push({instruction:P,player:v,element:k}),P.queriedElements.forEach(M=>L(a,M,[]).push(v)),P.preStyleProps.forEach((M,ee)=>{if(M.size){let q=l.get(ee);q||l.set(ee,q=new Set),M.forEach((Ne,at)=>q.add(at))}}),P.postStyleProps.forEach((M,ee)=>{let q=u.get(ee);q||u.set(ee,q=new Set),M.forEach((Ne,at)=>q.add(at))})});if($.length){const d=[];$.forEach(y=>{d.push(function us(){return new _.buA(3505,!1)}())}),re.forEach(y=>y.destroy()),this.reportError(d)}const I=new Map,O=new Map;o.forEach(d=>{const y=d.element;s.has(y)&&(O.set(y,y),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,I))}),n.forEach(d=>{const y=d.element;this._getPreviousPlayers(y,!1,d.namespaceId,d.triggerName,null).forEach(v=>{L(I,y,[]).push(v),v.destroy()})});const J=w.filter(d=>Ut(d,l,u)),oe=new Map;Qt(oe,this.driver,D,u,m.kp).forEach(d=>{Ut(d,l,u)&&J.push(d)});const x=new Map;T.forEach((d,y)=>{Qt(x,this.driver,new Set(d),l,m.FX)}),J.forEach(d=>{const y=oe.get(d),S=x.get(d);oe.set(d,new Map([...y?.entries()??[],...S?.entries()??[]]))});const ot=[],Xt=[],Yt={};o.forEach(d=>{const{element:y,player:S,instruction:v}=d;if(s.has(y)){if(c.has(y))return S.onDestroy(()=>V(y,v.toStyles)),S.disabled=!0,S.overrideTotalTime(v.totalTime),void n.push(S);let k=Yt;if(O.size>1){let K=y;const G=[];for(;K=K.parentNode;){const P=O.get(K);if(P){k=P;break}G.push(K)}G.forEach(P=>O.set(P,k))}const U=this._buildAnimation(S.namespaceId,v,I,r,x,oe);if(S.setRealPlayer(U),k===Yt)ot.push(S);else{const K=this.playersByElement.get(k);K&&K.length&&(S.parentPlayer=j(K)),n.push(S)}}else Y(y,v.fromStyles),S.onDestroy(()=>V(y,v.toStyles)),Xt.push(S),c.has(y)&&n.push(S)}),Xt.forEach(d=>{const y=r.get(d.element);if(y&&y.length){const S=j(y);d.setRealPlayer(S)}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<w.length;d++){const y=w[d],S=y[Q];if(ie(y,ae),S&&S.hasAnimation)continue;let v=[];if(a.size){let U=a.get(y);U&&U.length&&v.push(...U);let K=this.driver.query(y,qe,!0);for(let G=0;G<K.length;G++){let P=a.get(K[G]);P&&P.length&&v.push(...P)}}const k=v.filter(U=>!U.destroyed);k.length?ln(this,y,k):this.processLeaveNode(y)}return w.length=0,ot.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();const y=this.players.indexOf(d);this.players.splice(y,1)}),d.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,r){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!r||r==he;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u)})}}return(s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){const r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const u=l.element,c=u!==r,f=L(s,u,[]);this._getPreviousPlayers(u,c,o,a,t.toState).forEach(T=>{const g=T.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),T.destroy(),f.push(T)})}Y(r,t.fromStyles)}_buildAnimation(e,t,s,n,r,o){const a=t.triggerName,l=t.element,u=[],c=new Set,f=new Set,b=t.timelines.map(g=>{const E=g.element;c.add(E);const w=E[Q];if(w&&w.removedBeforeQueried)return new m.sf(g.duration,g.delay);const N=E!==l,D=function un(i){const e=[];return $t(i,e),e}((s.get(E)||en).map(I=>I.getRealPlayer())).filter(I=>!!I.element&&I.element===E),F=r.get(E),C=o.get(E),re=yt(this._normalizer,g.keyframes,F,C),$=this._buildPlayer(g,re,D);if(g.subTimeline&&n&&f.add(E),N){const I=new we(e,a,E);I.setRealPlayer($),u.push(I)}return $});u.forEach(g=>{L(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function rn(i,e,t){let s=i.get(e);if(s){if(s.length){const n=s.indexOf(t);s.splice(n,1)}0==s.length&&i.delete(e)}return s}(this.playersByQueriedElement,g.element,g))}),c.forEach(g=>B(g,bt));const T=j(b);return T.onDestroy(()=>{c.forEach(g=>ie(g,bt)),V(l,t.toStyles)}),f.forEach(g=>{L(n,g,[]).push(T)}),T}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new m.sf(e.duration,e.delay)}}class we{namespaceId;triggerName;element;_player=new m.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Oe(e,s,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Ae(i){return i&&1===i.nodeType}function qt(i,e){const t=i.style.display;return i.style.display=e??"none",t}function Qt(i,e,t,s,n){const r=[];t.forEach(l=>r.push(qt(l)));const o=[];s.forEach((l,u)=>{const c=new Map;l.forEach(f=>{const b=e.computeStyle(u,f,n);c.set(f,b),(!b||0==b.length)&&(u[Q]=tn,o.push(u))}),i.set(u,c)});let a=0;return t.forEach(l=>qt(l,r[a++])),o}function Vt(i,e){const t=new Map;if(i.forEach(a=>t.set(a,[])),0==e.length)return t;const n=new Set(e),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const u=a.parentNode;return l=t.has(u)?u:n.has(u)?1:o(u),r.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function B(i,e){i.classList?.add(e)}function ie(i,e){i.classList?.remove(e)}function ln(i,e,t){j(t).onDone(()=>i.processLeaveNode(e))}function $t(i,e){for(let t=0;t<i.length;t++){const s=i[t];s instanceof m.PZ?$t(s.players,e):e.push(s)}}function Ut(i,e,t){const s=t.get(i);if(!s)return!1;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),!0}class st{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new nn(e.body,t,s),this._timelineEngine=new Xs(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,s,n,r){const o=e+"-"+n;let a=this._triggerCache[o];if(!a){const l=[],c=Ge(this._driver,r,l,[]);if(l.length)throw function Re(){return new _.buA(3404,!1)}();a=function Ws(i,e,t){return new js(i,e,t)}(n,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if("@"==s.charAt(0)){const[r,o]=_t(s);this._timelineEngine.command(r,t,o,n)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,r){if("@"==s.charAt(0)){const[o,a]=_t(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}let fn=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}}return i})();function nt(i){let e=null;return i.forEach((t,s)=>{(function dn(i){return"display"===i||"position"===i})(s)&&(e=e||new Map,e.set(s,t))}),e}class it{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;const e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;const s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){const n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}catch{return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){const e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{"offset"!==n&&e.set(n,this._finished?s:Ue(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}}class Wt{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ke(e,t)}getParentElement(e){return de(e)}query(e,t,s){return Be(e,t,s)}computeStyle(e,t,s){return Ue(e,t)}animate(e,t,s,n,r,o=[]){const l={duration:s,delay:n,fill:0==n?"both":"forwards"};r&&(l.easing=r);const u=new Map,c=o.filter(T=>T instanceof it);Pt(s,n)&&c.forEach(T=>{T.currentSnapshot.forEach((g,E)=>u.set(E,g))});let f=vt(t).map(T=>new Map(T));f=function bs(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r)}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Ue(i,a)))}}return e}(e,f,u);const b=function cn(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=nt(e[0]),e.length>1&&(s=nt(e[e.length-1]))):e instanceof Map&&(t=nt(e)),t||s?new fn(i,t,s):null}(e,f);return new it(e,f,l,b)}}function mn(i,e){return"noop"===i?new st(e,new We,new Dt):new st(e,new Wt,new kt)}class pn{_driver;_animationAst;constructor(e,t){this._driver=e;const s=[],r=Ge(e,t,s,[]);if(s.length)throw function ne(){return new _.buA(3500,!1)}();this._animationAst=r}buildTimelines(e,t,s,n,r){const o=Array.isArray(t)?wt(t):t,a=Array.isArray(s)?wt(s):s,l=[];r=r||new Te;const u=Ye(this._driver,e,this._animationAst,me,ae,o,a,n,r,l);if(l.length)throw function H(){return new _.buA(3501,!1)}();return u}}const jt="@.disabled";class rt{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s,n){n?this.delegate.removeChild(e,t,s,n):this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){"@"==t.charAt(0)&&t==jt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Gt extends rt{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){"@"==t.charAt(0)?"."==t.charAt(1)&&t==jt?this.disableAnimations(e,s=void 0===s||!!s):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,n){if("@"==t.charAt(0)){const r=function gn(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(e);let o=t.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function yn(i){const e=i.indexOf(".");return[i.substring(0,e),i.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{this.factory.scheduleListenerCallback(l._data||-1,s,l)})}return this.delegate.listen(e,t,s,n)}}class _n{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const u=this._rendererCache;let c=u.get(n);return c||(c=new rt("",n,this.engine,()=>u.delete(n)),u.set(n,c)),c}const r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u)};return t.data.animation.forEach(a),new Gt(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId)return void this._zone.run(()=>t(s));const n=this._animationCallbacksBuffer;0==n.length&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,s])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}}}}]);
package/2312.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2312],{5794(F,h,s){s.d(h,{L:()=>Q});var u=s(7705),l=s(5802),g=s(2271),b=s(4853),y=s(9495),o=s(467),v=s(9352),V=s(5745),f=s(5381),x=s(5971),C=s(2245),E=s(9421),D=s(8957),R=s(5448),M=s(63),r=s(617),m=s(9695),d=s(1985),p=s(3039),e=s(5547);const N=["*"],G=()=>[],T=()=>({});function I(n,_){if(1&n&&(e.j41(0,"cue-typography"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.config().message)}}function w(n,_){if(1&n&&(e.nrm(0,"cue-key-val",4),e.nI1(1,"transloco")),2&n){const t=e.XpG(2);e.Y8G("key",e.mNQ(e.bMT(1,3,"components.modals.rdfEdit.labelExistingValue")))("val",t.existingValue())}}function k(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-input",15),e.nI1(1,"transloco"),e.mxI("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return e.DH7(c.newValue,i)||(c.newValue=i),l.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,4,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("error",t.valueError())}}function B(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-input",16),e.nI1(1,"transloco"),e.mxI("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return e.DH7(c.newValue,i)||(c.newValue=i),l.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,4,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("error",t.valueError())}}function P(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-input-date",17),e.nI1(1,"transloco"),e.mxI("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return e.DH7(c.newValue,i)||(c.newValue=i),l.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,4,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("error",t.valueError())}}function O(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-flexcontainer",8)(1,"cue-typography"),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"cue-input-switch",18),e.bIt("checkedChange",function(i){l.eBV(t);const c=e.XpG(2);return l.Njj(c.onBooleanChange(i))}),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"components.modals.rdfEdit.labelSetNewValue")),e.R7$(2),e.Y8G("checked","true"===t.newValue())}}function X(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-select",19),e.nI1(1,"transloco"),e.mxI("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return e.DH7(c.newValue,i)||(c.newValue=i),l.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,7,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("options",t.config().options||e.lJ4(9,G))("labelMap",t.config().optionLabelMap||e.lJ4(10,T))("showFilter",t.optionsCount()>5)("error",t.valueError())}}function Y(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-multi-select",19),e.nI1(1,"transloco"),e.mxI("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return e.DH7(c.newValue,i)||(c.newValue=i),l.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,7,"components.modals.rdfEdit.labelNewValue"))),e.R50("value",t.newValue),e.Y8G("options",t.config().options||e.lJ4(9,G))("labelMap",t.config().optionLabelMap||e.lJ4(10,T))("showFilter",t.optionsCount()>5)("error",t.valueError())}}function $(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-input-multiline",20),e.nI1(1,"transloco"),e.mxI("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return e.DH7(c.comment,i)||(c.comment=i),l.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("label",e.mNQ(e.bMT(1,3,"components.modals.rdfEdit.labelComment"))),e.R50("value",t.comment)}}function z(n,_){if(1&n&&(e.j41(0,"cue-typography",11),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.error())}}function K(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-modal",1),e.bIt("close",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.onClose())}),e.j41(1,"cue-flexcontainer",2),e.SdG(2),e.nVh(3,I,2,1,"cue-typography"),e.j41(4,"cue-flexcontainer",3),e.nVh(5,w,2,5,"cue-key-val",4),e.nVh(6,k,2,6,"cue-input",5),e.nVh(7,B,2,6,"cue-input",6),e.nVh(8,P,2,6,"cue-input-date",7),e.nVh(9,O,5,4,"cue-flexcontainer",8),e.nVh(10,X,2,11,"cue-select",9),e.nVh(11,Y,2,11,"cue-multi-select",9),e.k0s(),e.nVh(12,$,2,5,"cue-input-multiline",10),e.nVh(13,z,2,1,"cue-typography",11),e.j41(14,"cue-flexcontainer",12)(15,"cue-button",13),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.onClose())}),e.j41(16,"cue-button-label"),e.EFF(17),e.nI1(18,"transloco"),e.k0s()(),e.j41(19,"cue-button",14),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.onSave())}),e.j41(20,"cue-button-label"),e.EFF(21),e.nI1(22,"transloco"),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("displayCloseBtn",!1)("closeOnBackgroundClick",!1),e.R7$(3),e.vxM(t.config().message?3:-1),e.R7$(2),e.vxM("boolean"!==t.config().dataType?5:-1),e.R7$(),e.vxM("string"===t.config().dataType?6:-1),e.R7$(),e.vxM("number"===t.config().dataType?7:-1),e.R7$(),e.vxM("date"===t.config().dataType?8:-1),e.R7$(),e.vxM("boolean"===t.config().dataType?9:-1),e.R7$(),e.vxM("select"===t.config().dataType?10:-1),e.R7$(),e.vxM("multiselect"===t.config().dataType?11:-1),e.R7$(),e.vxM(t.identical()?-1:12),e.R7$(),e.vxM(t.error()?13:-1),e.R7$(2),e.Y8G("disabled",t.saving()),e.R7$(2),e.JRh(e.bMT(18,17,"components.modals.rdfEdit.buttonCancel")),e.R7$(2),e.Y8G("disabled",t.saving()||t.identical())("loading",t.saving()),e.R7$(2),e.JRh(e.bMT(22,19,"components.modals.rdfEdit.buttonSave"))}}let S=(()=>{class n{visible=(0,u.geq)(!0);config=u.hFB.required();close=(0,u.CGW)();existingValue=(0,g.EW)(()=>{let t="";return t=Array.isArray(this.config().existingValue)?this.config().existingValue.map(i=>this._getLabel(i)).join(", "):this._getLabel(this.config().existingValue),t});newValue=(0,g.uu)(()=>this.config().existingValue);comment=(0,l.vPA)("");errorID=(0,u.geq)("");error=(0,v.Xx)(this.errorID);saving=(0,l.vPA)(!1);pristine=(0,l.vPA)(!0);identical=(0,g.EW)(()=>!this.config().hasExternalChanges&&this.newValue()===this.config().existingValue);valueErrorID=(0,g.EW)(()=>this.pristine()?"":this.identical()?"components.modals.rdfEdit.errorIdenticalValue":"");valueError=(0,v.Xx)(this.valueErrorID);optionsCount=(0,g.EW)(()=>this.config().options?.length||0);constructor(){(0,l.QZP)(()=>{this.pristine()&&this.newValue()!==this.config().existingValue&&this.pristine.set(!1)})}onSave(){var t=this;return(0,o.A)(function*(){t.saving.set(!0),t.errorID.set("");try{const a=t.config();yield a.requestSave({newValue:t.newValue(),comment:t.comment(),previousValue:a.existingValue}),t.visible.set(!1),t.close.emit(t.newValue())}catch(a){console.error("Error saving RDF edit:",a),t.errorID.set("components.modals.rdfEdit.errorSaving")}t.saving.set(!1)})()}onClose(){this.visible.set(!1),this.close.emit(null)}onBooleanChange(t){this.newValue.set(t?"true":"false")}_getLabel(t){const a=this.config().optionLabelMap;return void 0!==a&&a[t]||t}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["cue-modal-rdf-edit"]],inputs:{visible:[1,"visible"],config:[1,"config"],errorID:[1,"errorID"]},outputs:{visible:"visibleChange",close:"close",errorID:"errorIDChange"},ngContentSelectors:N,decls:1,vars:1,consts:[[3,"displayCloseBtn","closeOnBackgroundClick"],[3,"close","displayCloseBtn","closeOnBackgroundClick"],["direction","column","align","center"],["direction","column","gap","m"],[3,"key","val"],["type","text",3,"label","value","error"],["type","number",3,"label","value","error"],[3,"label","value","error"],["direction","row","align","center","justify","space-between","gap","l"],[3,"value","options","labelMap","label","showFilter","error"],[2,"width","100%",3,"label","value"],[2,"color","var(--cue-error)"],["direction","row","justify","center",2,"width","100%"],[3,"click","disabled"],["variant","secondary",3,"click","disabled","loading"],["type","text",3,"valueChange","label","value","error"],["type","number",3,"valueChange","label","value","error"],[3,"valueChange","label","value","error"],[3,"checkedChange","checked"],[3,"valueChange","value","options","labelMap","label","showFilter","error"],[2,"width","100%",3,"valueChange","label","value"]],template:function(a,i){1&a&&(e.NAR(),e.nVh(0,K,23,21,"cue-modal",0)),2&a&&e.vxM(i.visible()?0:-1)},dependencies:[V.a,f.n,x.$,C.Typography,E.F,D.Input,R.L,M.Select,p.MultiSelect,r.InputDate,m.Switch,d.InputMultiline,v.Kj],styles:[".col[_ngcontent-%COMP%]{flex:1;min-width:0;height:100%}"]})}return n})();var j=s(7335);function A(n,_){1&n&&(e.j41(0,"span",7),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&n&&(e.R7$(),e.SpI("(",e.bMT(2,1,"components.keyVal.edited"),")"))}function L(n,_){if(1&n){const t=e.RV6();e.j41(0,"span",5),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.onReadClick())}),e.j41(1,"span",6),e.EFF(2),e.k0s(),e.nVh(3,A,3,3,"span",7),e.k0s()}if(2&n){const t=e.XpG();e.AVh("interactive",!t.editDisabled()),e.Y8G("menuItems",t.hoverMenu()),e.R7$(2),e.Lme("",t.valueFormatted()," ",t.suffix()),e.R7$(),e.vxM(t.isDirty()?3:-1)}}function W(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-select",10),e.bIt("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return l.Njj(c.selectionChange(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("value",t.newValue())("options",t.options())}}function H(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-inline-input",11),e.bIt("valueChange",function(i){l.eBV(t);const c=e.XpG(2);return l.Njj(c.inputChange(i))}),e.k0s(),e.EFF(1)}if(2&n){const t=e.XpG(2);e.Y8G("value",t.valueFormatted()),e.R7$(),e.SpI(" ",t.suffix()," ")}}function U(n,_){if(1&n&&(e.j41(0,"cue-flexcontainer",3),e.nVh(1,W,1,2,"cue-select",8)(2,H,2,2),e.nrm(3,"cue-entity-menu",9),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.vxM(void 0!==t.options()&&t.options().length?1:2),e.R7$(2),e.Y8G("items",t.saveCancelMenu())}}function J(n,_){if(1&n){const t=e.RV6();e.j41(0,"cue-modal-rdf-edit",12),e.mxI("visibleChange",function(i){l.eBV(t);const c=e.XpG();return e.DH7(c.rdfModalVisible,i)||(c.rdfModalVisible=i),l.Njj(i)}),e.bIt("close",function(i){l.eBV(t);const c=e.XpG();return l.Njj(c.onRdfModalClose(i))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("config",_),e.R50("visible",t.rdfModalVisible)}}let Q=(()=>{class n{entityMenuDirective;size=(0,u.hFB)("m");key=u.hFB.required();val=u.geq.required();originalValue=(0,u.hFB)(void 0);options=(0,u.hFB)([]);suffix=(0,u.hFB)("");rdfConfig=(0,u.hFB)();editDisabled=(0,u.hFB)(!1);valueChange=(0,u.CGW)();editModeEnabled=(0,l.vPA)(!1);isDirty=(0,g.EW)(()=>{const t=this.originalValue();return void 0!==t&&this.val()!==t});valueChanged=(0,g.EW)(()=>this.val()!==this.newValue());newValue=(0,g.uu)(()=>this.val());rdfModalVisible=(0,l.vPA)(!1);valueFormatted=(0,g.EW)(()=>this._idToString(this.val()));hoverMenu=(0,g.EW)(()=>{if(this.editModeEnabled()||this.editDisabled())return[];const t=[{icon:"edit",label:"Edit",action:()=>this.onReadClick()}];return this.isDirty()&&t.push({icon:"close",label:"Revert to original",action:()=>this._revert()}),t});onReadClick(){this.editDisabled()||(this.rdfConfig()?this.rdfModalVisible.set(!0):this.editModeEnabled.set(!0),this.entityMenuDirective?.removeOverlayMenu())}labelSize=(0,g.EW)(()=>{switch(this.size()){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l"}});onKeyPress(t){this.editModeEnabled()&&("Escape"===t.key?(this._reset(),t.stopPropagation()):"Enter"===t.key&&this._emitChange())}saveCancelMenu=(0,g.EW)(()=>{const t=[{icon:"close",label:"Cancel",action:()=>this._reset()}];return this.valueChanged()&&t.push({icon:"save",label:"Save",action:()=>this._emitChange()}),t});selectionChange(t){this.newValue.set(t?.toString()??"")}inputChange(t){this.newValue.set(t)}_emitChange(){this.valueChange.emit(this.newValue()),this.val.set(this.newValue()),this.editModeEnabled.set(!1)}_reset(){this.newValue.set(this.val()),this.editModeEnabled.set(!1)}_revert(){const t=this.originalValue();void 0!==t&&(this.val.set(t),this.newValue.set(t),this.valueChange.emit(t),this.entityMenuDirective?.removeOverlayMenu())}_idToString(t){const a=this.rdfConfig()?.optionLabelMap;return a?a[t]??t:t}onRdfModalClose(t){if(this.rdfModalVisible.set(!1),null===t)return;const a=Array.isArray(t)?t.join(", "):t;this.val.set(a)}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=e.VBU({type:n,selectors:[["cue-key-val-editable"]],viewQuery:function(a,i){if(1&a&&e.GBs(j.e,5),2&a){let c;e.mGM(c=e.lsd())&&(i.entityMenuDirective=c.first)}},hostBindings:function(a,i){1&a&&e.bIt("keydown",function(Z){return i.onKeyPress(Z)},e.EBC)},inputs:{size:[1,"size"],key:[1,"key"],val:[1,"val"],originalValue:[1,"originalValue"],options:[1,"options"],suffix:[1,"suffix"],rdfConfig:[1,"rdfConfig"],editDisabled:[1,"editDisabled"]},outputs:{val:"valChange",valueChange:"valueChange"},decls:9,vars:5,consts:[[1,"key-val-container"],[3,"size"],["cueEntityMenu","",1,"read-mode-container",3,"interactive","menuItems"],["direction","row","align","center"],[3,"config","visible"],["cueEntityMenu","",1,"read-mode-container",3,"click","menuItems"],[1,"value-content"],[1,"dirty-indicator"],[3,"value","options"],[3,"items"],[3,"valueChange","value","options"],[3,"valueChange","value"],[3,"visibleChange","close","config","visible"]],template:function(a,i){if(1&a&&(e.j41(0,"dl",0)(1,"dt")(2,"cue-typography",1),e.EFF(3),e.k0s()(),e.j41(4,"dd")(5,"cue-typography",1),e.nVh(6,L,4,6,"span",2)(7,U,4,2,"cue-flexcontainer",3),e.k0s()()(),e.nVh(8,J,1,2,"cue-modal-rdf-edit",4)),2&a){let c;e.R7$(2),e.Y8G("size",i.labelSize()),e.R7$(),e.JRh(i.key()),e.R7$(2),e.Y8G("size",i.size()),e.R7$(),e.vxM(i.editModeEnabled()?i.rdfConfig()?-1:7:6),e.R7$(2),e.vxM((c=i.rdfConfig())?8:-1,c)}},dependencies:[C.Typography,j.e,M.Select,b.H,f.n,y.InlineInput,S,v.Kj],styles:[".key-val-container[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:var(--cue-grid-gap-s, 8px)}dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{margin:0}.read-mode-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;position:relative}.read-mode-container.interactive[_ngcontent-%COMP%]:hover{cursor:pointer}.value-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]{color:var(--cue-typography-text-color, inherit)}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], .value-content[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}[_ngcontent-%COMP%]:deep(cue-svg-icon), [_ngcontent-%COMP%]:deep(cue-entity-menu cue-svg-icon){color:var(--cue-icon-color, inherit)!important}.dirty-indicator[_ngcontent-%COMP%]{opacity:.8;margin-left:4px;color:var(--cue-typography-text-color, inherit)!important;font-weight:700;font-size:.4em;transform:translateY(-1em)}"]})}return n})()},8547(F,h,s){s.d(h,{T:()=>M});var u=s(7705),l=s(29),g=s(6117),b=s(6279),y=s(356),o=s(5547),v=s(5802);const V=(r,m)=>m.label;function f(r,m){if(1&r&&o.nrm(0,"cue-svg-icon",4),2&r){const d=o.XpG(2).$implicit;o.Y8G("name",d.icon)}}function x(r,m){if(1&r&&o.nrm(0,"cue-menu-nested",6),2&r){const d=o.XpG(2).$implicit,p=o.XpG();o.Y8G("items",d.children)("size",p.size())}}function C(r,m){if(1&r&&(o.j41(0,"cue-menu",1)(1,"cue-menu-item",3),o.nVh(2,f,1,1,"cue-svg-icon",4),o.EFF(3),o.nrm(4,"cue-svg-icon",5),o.k0s(),o.nVh(5,x,1,2,"cue-menu-nested",6),o.k0s()),2&r){const d=o.XpG().$implicit,p=o.XpG();o.Y8G("size",p.size()),o.R7$(),o.Y8G("title",d.tooltip),o.R7$(),o.vxM(d.icon?2:-1),o.R7$(),o.SpI(" ",d.label," "),o.R7$(2),o.vxM(d.children?5:-1)}}function E(r,m){if(1&r&&o.nrm(0,"cue-svg-icon",4),2&r){const d=o.XpG(2).$implicit;o.Y8G("name",d.icon)}}function D(r,m){if(1&r){const d=o.RV6();o.j41(0,"cue-menu-item",7),o.bIt("click",function(){v.eBV(d);const e=o.XpG().$implicit;return v.Njj(null==e.action?null:e.action())}),o.nVh(1,E,1,1,"cue-svg-icon",4),o.EFF(2),o.k0s()}if(2&r){const d=o.XpG().$implicit;o.Y8G("title",d.tooltip),o.R7$(),o.vxM(d.icon?1:-1),o.R7$(),o.SpI(" ",d.label," ")}}function R(r,m){if(1&r&&o.nVh(0,C,6,5,"cue-menu",1)(1,D,3,3,"cue-menu-item",2),2&r){const d=m.$implicit;o.vxM(null!=d.children&&d.children.length?0:1)}}let M=(()=>{class r{items=u.hFB.required();size=(0,u.hFB)("m");static \u0275fac=function(p){return new(p||r)};static \u0275cmp=o.VBU({type:r,selectors:[["cue-menu-nested"]],inputs:{items:[1,"items"],size:[1,"size"]},decls:3,vars:1,consts:[[3,"size"],["trigger","hover",3,"size"],[3,"title"],["trigger","",3,"title"],["before","",3,"name"],["after","","name","paginator-next"],["menu","",3,"items","size"],[3,"click","title"]],template:function(p,e){1&p&&(o.j41(0,"cue-menu-wrap",0),o.Z7z(1,R,2,1,null,null,V),o.k0s()),2&p&&(o.Y8G("size",e.size()),o.R7$(),o.Dyx(e.items()))},dependencies:[r,g.W,b.D,y.M,l.A],encapsulation:2})}return r})()},7573(F,h,s){s.d(h,{E:()=>u});const u={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);
package/2399.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2399],{4853(O,w,l){l.d(w,{H:()=>j});var _=l(7705),c=l(5802),p=l(7089),u=l(7023),e=l(5381),h=l(5971),v=l(3319),g=l(356),E=l(6279),r=l(5547);const C=()=>({position:"bottomleft"}),y=(M,I)=>I.label||M;function P(M,I){if(1&M){const b=r.RV6();r.j41(0,"cue-menu-item",4),r.bIt("click",function(){const D=c.eBV(b).$implicit;return c.Njj(D.action())}),r.EFF(1),r.k0s()}if(2&M){const b=I.$implicit;r.Y8G("selected",b.selected),r.R7$(),r.JRh(b.label)}}function R(M,I){if(1&M&&(r.j41(0,"cue-menu-wrap"),r.Z7z(1,P,2,2,"cue-menu-item",3,y),r.k0s()),2&M){const b=r.XpG();r.R7$(),r.Dyx(b.contextMenuItems())}}function V(M,I){if(1&M){const b=r.RV6();r.j41(0,"cue-button",5),r.bIt("click",function(D){const A=c.eBV(b).$implicit,k=r.XpG();return c.Njj(k.handleClick(D,A))}),r.nrm(1,"cue-button-icon",6),r.k0s()}if(2&M){const b=I.$implicit,x=r.XpG(),D=r.sdS(1);r.Y8G("cueTooltip",b.label)("variant",b.variant?b.variant:x.variant())("size",x.size())("cueContextMenu",D)("contextMenuData",r.lJ4(7,C))("cueContextEnabled",void 0!==b.contextMenuItems&&b.contextMenuItems.length>0),r.R7$(),r.Y8G("icon",b.icon)}}let j=(()=>{class M{items=_.hFB.required();noGap=(0,_.hFB)(!0);direction=(0,_.hFB)("row");size=(0,_.hFB)("xs");variant=(0,_.hFB)("tertiary");mouseEnter=(0,_.CGW)();mouseLeave=(0,_.CGW)();contextMenuItems=(0,c.vPA)([]);handleClick(b,x){b.stopPropagation(),x.contextMenuItems&&x.contextMenuItems.length>0?this.contextMenuItems.set(x.contextMenuItems):x.action&&(this.contextMenuItems.set([]),x.action())}static \u0275fac=function(x){return new(x||M)};static \u0275cmp=r.VBU({type:M,selectors:[["cue-entity-menu"]],inputs:{items:[1,"items"],noGap:[1,"noGap"],direction:[1,"direction"],size:[1,"size"],variant:[1,"variant"]},outputs:{mouseEnter:"mouseEnter",mouseLeave:"mouseLeave"},decls:5,vars:2,consts:[["contextMenu",""],["gap","s","justify","end",2,"width","100%",3,"mouseenter","mouseleave","direction","noGap"],["trigger","leftclick",3,"cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"selected"],[3,"click","selected"],["trigger","leftclick",3,"click","cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"icon"]],template:function(x,D){1&x&&(r.DNE(0,R,3,0,"ng-template",null,0,r.C5r),r.j41(2,"cue-flexcontainer",1),r.bIt("mouseenter",function(){return D.mouseEnter.emit()})("mouseleave",function(){return D.mouseLeave.emit()}),r.Z7z(3,V,2,8,"cue-button",2,y),r.k0s()),2&x&&(r.R7$(2),r.Y8G("direction",D.direction())("noGap",D.noGap()),r.R7$(),r.Dyx(D.items()))},dependencies:[e.n,h.$,p.d,v.a,u.Q,g.M,E.D],encapsulation:2,changeDetection:0})}return M})()},1024(O,w,l){l.d(w,{p:()=>p});var _=l(5547);const c=["*"];let p=(()=>{class u{static \u0275fac=function(v){return new(v||u)};static \u0275cmp=_.VBU({type:u,selectors:[["cue-key-val-list"]],ngContentSelectors:c,decls:2,vars:0,consts:[[1,"key-val-list"]],template:function(v,g){1&v&&(_.NAR(),_.rj2(0,"div",0),_.SdG(1),_.eux())},styles:[".key-val-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--cue-grid-gap-s)}"]})}return u})()},9421(O,w,l){l.d(w,{F:()=>v});var _=l(7705),c=l(5802),p=l(2271),u=l(7335),e=l(2245),h=l(5547);let v=(()=>{class g{entityMenuDirective;size=(0,_.hFB)("m");key=_.hFB.required();val=_.geq.required();options=(0,_.hFB)([]);suffix=(0,_.hFB)("");valueChange=(0,_.CGW)();editModeEnabled=(0,c.vPA)(!1);valueChanged=(0,p.EW)(()=>this.val()!==this.newValue());newValue=(0,p.uu)(()=>this.val());labelSize=(0,p.EW)(()=>{switch(this.size()){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l"}});onKeyPress(r){this.editModeEnabled()&&("Escape"===r.key?(this._reset(),r.stopPropagation()):"Enter"===r.key&&this._emitChange())}saveCancelMenu=(0,p.EW)(()=>{const r=[{icon:"close",label:"Cancel",action:()=>this._reset()}];return this.valueChanged()&&r.push({icon:"save",label:"Save",action:()=>this._emitChange()}),r});selectionChange(r){this.newValue.set(r?.toString()??"")}inputChange(r){this.newValue.set(r)}_emitChange(){this.valueChange.emit(this.newValue()),this.val.set(this.newValue()),this.editModeEnabled.set(!1)}_reset(){this.newValue.set(this.val()),this.editModeEnabled.set(!1)}static \u0275fac=function(C){return new(C||g)};static \u0275cmp=h.VBU({type:g,selectors:[["cue-key-val"]],viewQuery:function(C,y){if(1&C&&h.GBs(u.e,5),2&C){let P;h.mGM(P=h.lsd())&&(y.entityMenuDirective=P.first)}},hostBindings:function(C,y){1&C&&h.bIt("keydown",function(R){return y.onKeyPress(R)},h.EBC)},inputs:{size:[1,"size"],key:[1,"key"],val:[1,"val"],options:[1,"options"],suffix:[1,"suffix"]},outputs:{val:"valChange",valueChange:"valueChange"},decls:8,vars:5,consts:[[1,"key-val-container"],[3,"size"],[1,"value-content"]],template:function(C,y){1&C&&(h.j41(0,"dl",0)(1,"dt")(2,"cue-typography",1),h.EFF(3),h.k0s()(),h.j41(4,"dd")(5,"cue-typography",1)(6,"span",2),h.EFF(7),h.k0s()()()()),2&C&&(h.R7$(2),h.Y8G("size",y.labelSize()),h.R7$(),h.JRh(y.key()),h.R7$(2),h.Y8G("size",y.size()),h.R7$(2),h.Lme("",y.val()," ",y.suffix()))},dependencies:[e.Typography],styles:[".key-val-container[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:var(--cue-grid-gap-s, 8px)}dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{margin:0}.read-mode-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;position:relative}.read-mode-container.interactive[_ngcontent-%COMP%]:hover{cursor:pointer}.value-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]{color:var(--cue-typography-text-color, inherit)}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], .value-content[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}[_ngcontent-%COMP%]:deep(cue-svg-icon), [_ngcontent-%COMP%]:deep(cue-entity-menu cue-svg-icon){color:var(--cue-icon-color, inherit)!important}.dirty-indicator[_ngcontent-%COMP%]{opacity:.8;margin-left:4px;color:var(--cue-typography-text-color, inherit)!important;font-weight:700;font-size:.4em;transform:translateY(-1em)}"]})}return g})()},7335(O,w,l){l.d(w,{e:()=>g});var _=l(7705),c=l(5547),p=l(5802),u=l(8359),e=l(6939),h=l(2444),v=l(4853);let g=(()=>{class E{_targetEl=(0,p.WQX)(c.aKT);_overlay=(0,p.WQX)(h.hJ);_overlayRef;_isOverlayHovered=!1;_subscriptions;display=(0,_.hFB)("on-hover");menuItems=_.hFB.required();menuEnabled=(0,_.hFB)(!0);onMouseEnter(){if("on-hover"===this.display()){if(!this.menuItems().length)return void this.removeOverlayMenu();this.appendOverlayMenu()}}onMouseLeave(){this._checkShouldRemoveOverlay()}appendOverlayMenu(){if(!this.menuItems().length||this._overlayRef)return;const C=this._overlay.create({positionStrategy:this._overlay.position().flexibleConnectedTo(this._targetEl).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:2,offsetY:0}])});this._overlayRef=C;const y=window.getComputedStyle(this._targetEl.nativeElement).color;C.overlayElement.style.color=y;const P=new e.A8(v.H),R=C.attach(P);R.instance.items=this.menuItems,this._subscriptions&&this._subscriptions.unsubscribe(),this._subscriptions=new u.yU,this._subscriptions.add(R.instance.mouseEnter.subscribe(()=>{this._isOverlayHovered=!0})),this._subscriptions.add(R.instance.mouseLeave.subscribe(()=>{this._isOverlayHovered=!1,this._checkShouldRemoveOverlay()}))}removeOverlayMenu(){this._overlayRef&&(this._subscriptions&&(this._subscriptions.unsubscribe(),this._subscriptions=void 0),this._overlayRef.detach(),this._overlayRef.dispose(),this._overlayRef=void 0)}_checkShouldRemoveOverlay(){setTimeout(()=>{this._isOverlayHovered||this.removeOverlayMenu()},300)}static \u0275fac=function(y){return new(y||E)};static \u0275dir=c.FsC({type:E,selectors:[["","cueEntityMenu",""]],hostBindings:function(y,P){1&y&&c.bIt("mouseenter",function(){return P.onMouseEnter()})("mouseleave",function(){return P.onMouseLeave()})},inputs:{display:[1,"display"],menuItems:[1,"menuItems"],menuEnabled:[1,"menuEnabled"]}})}return E})()},2399(O,w,l){l.d(w,{CueDocumentViewer:()=>Oe});var _=l(467),c=l(7705),p=l(2271),u=l(5802),e=l(5547),h=l(9769),v=l(5381),g=l(2245),E=l(1024),r=l(9421),C=l(5794),y=l(9352),P=l(6117),R=l(8547),V=l(3319),j=l(5971),M=l(7573);const I=(o,m)=>t=>t.isHighlight;function b(o,m){if(1&o&&(e.j41(0,"span",3),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(t.highlight.label)}}function x(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-button",5),e.bIt("click",function(i){u.eBV(t);const a=e.XpG(2).$implicit,s=e.XpG();return u.Njj(s.onDeleteHighlight(i,a.highlight))}),e.nrm(1,"cue-button-icon",6),e.k0s()}}function D(o,m){if(1&o){const t=e.RV6();e.j41(0,"span",2),e.bIt("click",function(){u.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return u.Njj(a.onHighlightClick(i.highlight))}),e.nVh(1,b,2,1,"span",3),e.EFF(2),e.nVh(3,x,2,0,"cue-button",4),e.k0s()}if(2&o){const t=e.XpG().$implicit,n=e.XpG();e.BMQ("data-segment-start",t.segmentStart),e.R7$(),e.vxM(t.highlight.label?1:-1),e.R7$(),e.SpI(" ",t.text," "),e.R7$(),e.vxM(n.allowDelete()?3:-1)}}function A(o,m){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.BMQ("data-segment-start",t.segmentStart),e.R7$(),e.JRh(t.text)}}function k(o,m){if(1&o&&e.nVh(0,D,4,4,"span",1)(1,A,2,2,"span"),2&o){const t=m.$implicit;e.vxM(t.isHighlight&&t.highlight?0:1)}}let W=(()=>{class o{path=c.hFB.required();highlights=(0,c.hFB)([]);allowDelete=(0,c.hFB)(!1);allowAdd=(0,c.hFB)(!1);size=(0,c.hFB)("m");highlightClick=(0,c.CGW)();deleteHighlight=(0,c.CGW)();textSelected=(0,c.CGW)();segments=(0,p.EW)(()=>this.parseSegments(this.path(),this.highlights()));parseSegments(t,n){const i=n.filter(f=>f.path===t);if(0===i.length)return[{text:t,isHighlight:!1,segmentStart:0}];const a=[...i].sort((f,T)=>f.start-T.start),s=[];let d=0;for(const f of a)f.start>d&&s.push({text:t.substring(d,f.start),isHighlight:!1,segmentStart:d}),s.push({text:t.substring(f.start,f.end),isHighlight:!0,highlight:f,segmentStart:f.start}),d=f.end;return d<t.length&&s.push({text:t.substring(d),isHighlight:!1,segmentStart:d}),s}onHighlightClick(t){const n=this.path().substring(t.start,t.end);this.highlightClick.emit({path:this.path(),highlight:t,text:n})}onDeleteHighlight(t,n){t.stopPropagation(),this.deleteHighlight.emit({path:this.path(),highlight:n})}onMouseUp(t){if(!this.allowAdd())return;const n=window.getSelection();if(!n||n.isCollapsed||!n.rangeCount||!n.toString().trim())return;const a=n.getRangeAt(0),s=t.currentTarget,d=this.getAbsoluteOffset(s,a.startContainer,a.startOffset),f=this.getAbsoluteOffset(s,a.endContainer,a.endOffset);n.removeAllRanges(),f>d&&this.textSelected.emit({path:this.path(),start:d,end:f,text:this.path().substring(d,f)})}getAbsoluteOffset(t,n,i){let a=n.nodeType===Node.TEXT_NODE?n.parentElement:n;for(;a&&a!==t;){if(a instanceof HTMLElement&&a.hasAttribute("data-segment-start")){const T=parseInt(a.getAttribute("data-segment-start"),10);let F=0;const B=document.createTreeWalker(a,NodeFilter.SHOW_TEXT);let L=B.nextNode();for(;L&&L!==n;)F+=L.textContent?.length??0,L=B.nextNode();return T+F+i}a=a.parentElement}const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let d=0,f=s.nextNode();for(;f&&f!==n;)d+=f.textContent?.length??0,f=s.nextNode();return d+i}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-path-viewer"]],inputs:{path:[1,"path"],highlights:[1,"highlights"],allowDelete:[1,"allowDelete"],allowAdd:[1,"allowAdd"],size:[1,"size"]},outputs:{highlightClick:"highlightClick",deleteHighlight:"deleteHighlight",textSelected:"textSelected"},decls:3,vars:7,consts:[[1,"path-content",3,"mouseup"],[1,"highlight-segment"],[1,"highlight-segment",3,"click"],[1,"highlight-label"],["size","xs","aria-label","Remove highlight",1,"delete-button"],["size","xs","aria-label","Remove highlight",1,"delete-button",3,"click"],["icon","close"]],template:function(n,i){1&n&&(e.j41(0,"div",0),e.bIt("mouseup",function(s){return i.onMouseUp(s)}),e.Z7z(1,k,2,1,null,null,e.Vm6),e.k0s()),2&n&&(e.AVh("size-s","s"===i.size())("allow-add",i.allowAdd())("has-highlights",i.segments().some(e._m7(6,I,i))),e.R7$(),e.Dyx(i.segments()))},dependencies:[h.MD,j.$,V.a],styles:["[_nghost-%COMP%]{display:contents}.path-content[_ngcontent-%COMP%]{display:block;flex:1;min-width:0;word-break:break-all;text-align:start;font-family:var(--cue-font-family);font-size:var(--cue-font-m-size);line-height:var(--cue-font-m-line-height);letter-spacing:var(--cue-font-m-letter-spacing);font-weight:var(--cue-font-weight-regular)}.path-content.size-s[_ngcontent-%COMP%]{font-size:var(--cue-font-s-size);line-height:var(--cue-font-s-line-height);letter-spacing:var(--cue-font-s-letter-spacing)}.path-content.allow-add[_ngcontent-%COMP%]{cursor:text;-webkit-user-select:text;user-select:text}.path-content.has-highlights[_ngcontent-%COMP%]{padding-top:.8rem;line-height:2.3rem}.highlight-segment[_ngcontent-%COMP%]{display:inline-block;vertical-align:text-bottom;position:relative;line-height:normal;font-weight:var(--cue-font-weight-medium);cursor:pointer;padding:0 .2rem;border-radius:3px;border:1px solid currentColor;transition:all .2s ease}.highlight-segment[_ngcontent-%COMP%] .highlight-label[_ngcontent-%COMP%]{font-family:var(--cue-font-family);position:absolute;bottom:100%;left:0;font-size:.5rem;line-height:1;opacity:.7;margin-bottom:.15rem;white-space:nowrap;pointer-events:none}.highlight-segment[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px;z-index:10;opacity:0;transition:opacity .2s ease;pointer-events:none}.highlight-segment[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,currentColor 12%,transparent)}.highlight-segment[_ngcontent-%COMP%]:hover .delete-button[_ngcontent-%COMP%]{opacity:1;pointer-events:all}"],changeDetection:0})}return o})();var z=l(5745),X=l(63),H=l(9695),K=l(5448),Y=l(2611);const G=o=>({count:o}),J=(o,m)=>t=>t.iri;function Q(o,m){1&o&&(e.j41(0,"cue-typography",11),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"components.documentInfo.infoLoadingFilePaths")))}function Z(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-ag-grid",16),e.bIt("selectedRows",function(i){u.eBV(t);const a=e.XpG(4);return u.Njj(a.onMatchedPathsSelectionChange(i))}),e.k0s()}if(2&o){const t=e.XpG(4);e.Y8G("rowData",t._matchTableRowData())("columnDefs",t._matchTableColDefs())("rowSelection",t._matchTableRowSelection)}}function q(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",12)(1,"cue-button",13),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.Njj(i._matchTableExpanded.set(!i._matchTableExpanded()))}),e.nrm(2,"cue-button-icon",14),e.j41(3,"cue-button-label"),e.EFF(4),e.nI1(5,"transloco"),e.k0s()(),e.nVh(6,Z,1,3,"cue-ag-grid",15),e.k0s(),e.j41(7,"cue-typography",11),e.EFF(8),e.nI1(9,"transloco"),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("icon",t._matchTableExpanded()?"arrow-up":"arrow-dropdown"),e.R7$(2),e.JRh(e.i5U(5,4,1===t._matchCount()?"components.documentInfo.filePathMatched":"components.documentInfo.filePathsMatched",e.eq3(10,G,t._matchCount()))),e.R7$(2),e.vxM(t._matchTableExpanded()?6:-1),e.R7$(2),e.JRh(e.i5U(9,7,"components.documentInfo.applyToNPaths",e.eq3(12,G,t._selectedPaths().length)))}}function ee(o,m){if(1&o&&e.nVh(0,Q,3,3,"cue-typography",11)(1,q,10,14),2&o){const t=e.XpG(2);e.vxM(t._fileLocationsLoading()?0:null!==t._fileLocations()?1:-1)}}function te(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",9)(1,"cue-input-switch",10),e.bIt("toggleChange",function(i){u.eBV(t);const a=e.XpG();return u.Njj(a.onApplyToAllChange(i))}),e.k0s(),e.j41(2,"cue-typography",11),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.nVh(5,ee,2,1)}if(2&o){const t=e.XpG();e.R7$(),e.Y8G("checked",t._applyToAllFiles()),e.R7$(2),e.JRh(e.bMT(4,3,"components.documentInfo.applyToAllFiles")),e.R7$(2),e.vxM(t._applyToAllFiles()?5:-1)}}function ne(o,m){if(1&o&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Lme("",e.bMT(2,2,"components.documentInfo.errorSavingEntityMention"),": ",t._saveError())}}let ie=(()=>{class o{selection=c.hFB.required();availableEntityCategories=(0,c.hFB)([]);fileLocations=(0,c.hFB)([]);requestFileLocations=(0,c.hFB)(void 0);requestFilePathEntityAdd=(0,c.hFB)(void 0);confirm=(0,c.CGW)();cancel=(0,c.CGW)();_selectedEntityCategory=(0,u.vPA)("");_applyToAllFiles=(0,u.vPA)(!1);_fileLocations=(0,u.vPA)(null);_fileLocationsLoading=(0,u.vPA)(!1);_matchTableExpanded=(0,u.vPA)(!1);_selectedPaths=(0,u.vPA)([]);_saving=(0,u.vPA)(!1);_saveError=(0,u.vPA)(null);_dirPrefix=(0,p.EW)(()=>{const t=this.selection();return t.path.substring(0,t.end)});_matchedLocations=(0,p.EW)(()=>{const t=this._fileLocations();if(!t)return[];const n=this._dirPrefix();return t.filter(i=>i.path.startsWith(n))});_matchCount=(0,p.EW)(()=>this._matchedLocations().length);_matchTableRowData=(0,p.EW)(()=>this._matchedLocations().map(t=>({iri:t.iri,path:t.path,providerId:t.providerId})));_entityCategoryLabelMap=(0,p.EW)(()=>this.availableEntityCategories().reduce((t,n)=>(t[n.iri]=n.label,t),{}));_matchTableRowSelection={mode:"multiRow",selectAll:"filtered"};_filePathLabel=(0,y.Xx)("components.contentBlocks.documentViewer.labelFilePath");_matchTableColDefs=(0,p.EW)(()=>[{headerName:this._filePathLabel(),field:"path",flex:1,filter:!0,sortable:!0}]);onEntityCategoryChange(t){this._selectedEntityCategory.set("string"==typeof t?t:String(t??""))}onApplyToAllChange(t){var n=this;return(0,_.A)(function*(){if(n._applyToAllFiles.set(t),n._matchTableExpanded.set(!1),!t)return n._fileLocations.set(null),void n._selectedPaths.set([]);const i=n.requestFileLocations();if(i){n._fileLocationsLoading.set(!0);try{const a=yield i();n._fileLocations.set(a);const s=n._dirPrefix();n._selectedPaths.set(a.filter(d=>d.path.startsWith(s)))}finally{n._fileLocationsLoading.set(!1)}}})()}onMatchedPathsSelectionChange(t){const n=this._fileLocations()??[];this._selectedPaths.set(t.map(i=>n.find(a=>a.path===i.path)??{iri:"",path:i.path}))}onConfirm(){var t=this;return(0,_.A)(function*(){const n=t._selectedEntityCategory();if(!n)return;const i=t.selection().path,a=t._fileLocations()?.find(f=>f.path===i)??t.fileLocations().find(f=>f.path===i)??{iri:"",path:i},s=t._applyToAllFiles()&&t._selectedPaths().length>0?t._selectedPaths():[a],d=t.requestFilePathEntityAdd();if(d){t._saving.set(!0),t._saveError.set(null);try{yield d(n,s)}catch(f){return console.error("[EntityMentionModal] Failed to save entity mention:",f),t._saveError.set(f instanceof Error?f.message:String(f)),void t._saving.set(!1)}t._saving.set(!1)}t.confirm.emit({entityCategory:n,paths:s})})()}onCancel(){this.cancel.emit()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-entity-mention-modal"]],inputs:{selection:[1,"selection"],availableEntityCategories:[1,"availableEntityCategories"],fileLocations:[1,"fileLocations"],requestFileLocations:[1,"requestFileLocations"],requestFilePathEntityAdd:[1,"requestFilePathEntityAdd"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:18,vars:24,consts:[[3,"close","displayCloseBtn","closeOnBackgroundClick"],[1,"modal-content"],["direction","column","gap","m"],[3,"key","val"],[3,"valueChange","value","options","labelMap","label","showFilter"],["direction","row","justify","center"],[3,"click","disabled"],["variant","secondary",3,"click","disabled"],["size","s",2,"color","var(--cue-error)"],["direction","row","gap","s","align","center"],[3,"toggleChange","checked"],["size","s"],["direction","column","gap","xs"],["variant","ghost","size","xs",3,"click"],[3,"icon"],["size","s","height","220px",3,"rowData","columnDefs","rowSelection"],["size","s","height","220px",3,"selectedRows","rowData","columnDefs","rowSelection"]],template:function(n,i){1&n&&(e.j41(0,"cue-modal",0),e.bIt("close",function(){return i.onCancel()}),e.j41(1,"div",1)(2,"cue-flexcontainer",2),e.nrm(3,"cue-key-val",3),e.nI1(4,"transloco"),e.j41(5,"cue-select",4),e.nI1(6,"transloco"),e.bIt("valueChange",function(s){return i.onEntityCategoryChange(s)}),e.k0s(),e.nVh(7,te,6,5),e.j41(8,"cue-flexcontainer",5)(9,"cue-button",6),e.bIt("click",function(){return i.onCancel()}),e.j41(10,"cue-button-label"),e.EFF(11),e.nI1(12,"transloco"),e.k0s()(),e.j41(13,"cue-button",7),e.bIt("click",function(){return i.onConfirm()}),e.j41(14,"cue-button-label"),e.EFF(15),e.nI1(16,"transloco"),e.k0s()()(),e.nVh(17,ne,3,4,"cue-typography",8),e.k0s()()()),2&n&&(e.Y8G("displayCloseBtn",!1)("closeOnBackgroundClick",!1),e.R7$(3),e.Y8G("key",e.bMT(4,15,"components.documentInfo.labelSelectedText"))("val",i.selection().text),e.R7$(2),e.Y8G("value",i._selectedEntityCategory())("options",i.availableEntityCategories().map(e._m7(17,J,i)))("labelMap",i._entityCategoryLabelMap())("label",e.bMT(6,18,"components.entityInfo.labelEntityCategory"))("showFilter",i.availableEntityCategories().length>5),e.R7$(2),e.vxM(i.requestFileLocations()?7:-1),e.R7$(2),e.Y8G("disabled",i._saving()),e.R7$(2),e.JRh(e.bMT(12,20,"components.modals.rdfEdit.buttonCancel")),e.R7$(2),e.Y8G("disabled",!i._selectedEntityCategory()||i._saving()),e.R7$(2),e.JRh(e.bMT(16,22,"components.modals.rdfEdit.buttonSave")),e.R7$(2),e.vxM(i._saveError()?17:-1))},dependencies:[v.n,r.F,V.a,j.$,K.L,g.Typography,z.a,X.Select,H.Switch,Y.R,y.Kj],styles:[".modal-content[_ngcontent-%COMP%]{width:640px;max-width:calc(100vw - 32px)}"],changeDetection:0})}return o})();const oe=()=>[];function ae(o,m){if(1&o&&(e.nrm(0,"cue-key-val",6),e.nI1(1,"transloco")),2&o){const t=e.XpG(2);e.Y8G("key",e.bMT(1,2,"components.contentBlocks.documentViewer.labelSubject"))("val",t.subject())}}function se(o,m){if(1&o&&(e.j41(0,"cue-key-val-list"),e.nVh(1,ae,2,4,"cue-key-val",6),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.subject()?1:-1)}}function le(o,m){if(1&o&&(e.j41(0,"cue-flexcontainer",4)(1,"cue-menu",7)(2,"cue-button",8,0),e.nrm(4,"cue-button-icon",9),e.k0s(),e.nrm(5,"cue-menu-nested",10),e.k0s()()),2&o){const t=e.XpG();e.R7$(5),e.Y8G("items",t.menuItems())}}function re(o,m){if(1&o&&(e.nrm(0,"cue-key-val-editable",11),e.nI1(1,"transloco"),e.nI1(2,"transloco")),2&o){const t=e.XpG(2);e.Y8G("key",1===t.contentCategories().length?e.bMT(1,4,"components.contentBlocks.documentViewer.labelContentCategory"):e.bMT(2,6,"components.contentBlocks.documentViewer.labelContentCategories"))("val",t.contentCategoriesString())("rdfConfig",t.rdfEditConfig())("editDisabled",!t.contentCategoriesEditable())}}function ce(o,m){if(1&o&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Lme("(",t.currentFilePathIndex()+1,"/",t.fileLocations().length,")")}}function de(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.Njj(i.prevFilePath())}),e.nrm(1,"cue-button-icon",20),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("disabled",0===t.currentFilePathIndex())}}function ue(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.Njj(i.nextFilePath())}),e.nrm(1,"cue-button-icon",21),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("disabled",t.currentFilePathIndex()===t.fileLocations().length-1)}}function he(o,m){if(1&o){const t=e.RV6();e.j41(0,"dl",12)(1,"dt",13)(2,"cue-typography",14),e.EFF(3),e.nI1(4,"transloco"),e.nVh(5,ce,2,2,"span",15),e.k0s()(),e.j41(6,"dd",16),e.nVh(7,de,2,1,"cue-button",17),e.j41(8,"cue-file-path-viewer",18),e.bIt("textSelected",function(i){u.eBV(t);const a=e.XpG(2);return u.Njj(a.onTextSelected(i))}),e.k0s(),e.nVh(9,ue,2,1,"cue-button",17),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,8,"components.contentBlocks.documentViewer.labelFilePath")," "),e.R7$(2),e.vxM(t.fileLocations().length>1?5:-1),e.R7$(2),e.vxM(t.fileLocations().length>1?7:-1),e.R7$(),e.Y8G("path",t.fileLocations()[t.currentFilePathIndex()].path)("highlights",t.filePathEntitiesVisible()?t.filePathHighlights():e.lJ4(10,oe))("allowDelete",t.filePathEntitiesEditable())("allowAdd",t.filePathEntitiesEditable()),e.R7$(),e.vxM(t.fileLocations().length>1?9:-1)}}function ge(o,m){if(1&o&&(e.j41(0,"cue-key-val-list"),e.nrm(1,"hr"),e.nVh(2,re,3,8,"cue-key-val-editable",11),e.nVh(3,he,10,11,"dl",12),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.vxM(t.contentCategories()&&t.contentCategories().length>0?2:-1),e.R7$(),e.vxM(t.fileLocations().length>0?3:-1)}}function _e(o,m){if(1&o){const t=e.RV6();e.j41(0,"cue-entity-mention-modal",22),e.bIt("confirm",function(i){u.eBV(t);const a=e.XpG();return u.Njj(a.onEntityMentionConfirm(i))})("cancel",function(){u.eBV(t);const i=e.XpG();return u.Njj(i.onEntityMentionCancel())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("selection",t._pendingSelection())("availableEntityCategories",t.availableEntityCategories())("fileLocations",t.fileLocations())("requestFileLocations",t._fileLocationsProvider())("requestFilePathEntityAdd",t._requestFilePathEntityAdd())}}let me=(()=>{class o{subject=c.hFB.required();handlers=c.hFB.required();dataChanged=(0,c.CGW)();filePathEntityAdded=(0,c.CGW)();fileLocations=(0,c.hFB)([]);_fileLocationsProvider=(0,p.EW)(()=>{const t=this.handlers().requestFileLocations;if(t)return t;const n=this.fileLocations();return n.length?()=>Promise.resolve(n):void 0});filePathEntities=(0,c.geq)([]);contentCategories=(0,c.hFB)([]);contentCategoriesEditable=(0,c.hFB)(!1);filePathEntitiesVisible=(0,c.hFB)(!1);filePathEntitiesEditable=(0,c.hFB)(!1);menuItems=(0,c.hFB)([]);availableContentCategories=(0,c.hFB)([]);availableEntityCategories=(0,c.hFB)([]);collapsed=(0,c.hFB)(!1);hasDocInfo=(0,p.EW)(()=>{const t=""!==this.subject(),n=this.fileLocations().length>0;return t||n});currentFilePathIndex=(0,u.vPA)(0);_entityCategoryModalVisible=(0,u.vPA)(!1);_pendingSelection=(0,u.vPA)(null);_requestFilePathEntityAdd=(0,p.EW)(()=>{var t=this;const n=this.handlers().requestFilePathEntityAdd;if(n)return function(){var i=(0,_.A)(function*(a,s){const d=t._pendingSelection();d&&(yield n({paths:s,start:d.start,end:d.end,text:d.text,entityCategory:a,folderPath:d.path.substring(0,d.end)}))});return function(a,s){return i.apply(this,arguments)}}()});prevFilePath(){this.currentFilePathIndex()>0&&this.currentFilePathIndex.update(t=>t-1)}nextFilePath(){this.currentFilePathIndex()<this.fileLocations().length-1&&this.currentFilePathIndex.update(t=>t+1)}filePathHighlights=(0,p.EW)(()=>this.filePathEntities().map(t=>({path:t.path,start:t.startIndex,end:t.endIndex,label:this.availableEntityCategories().find(n=>n.iri===t.entityCategory)?.label??t.entityCategory.split("/").pop()??t.entityCategory})));entityCategoryLabelMap=(0,p.EW)(()=>this.availableEntityCategories().reduce((t,n)=>(t[n.iri]=n.label,t),{}));onTextSelected(t){this._pendingSelection.set(t),this._entityCategoryModalVisible.set(!0)}onEntityMentionConfirm(t){const n=this._pendingSelection();n&&(this.filePathEntities.update(i=>[...i,...t.paths.map(a=>({path:a.path,entityCategory:t.entityCategory,startIndex:n.start,endIndex:n.end}))]),this.filePathEntityAdded.emit({paths:t.paths,start:n.start,end:n.end,text:n.text,entityCategory:t.entityCategory,folderPath:n.path.substring(0,n.end)}),this._entityCategoryModalVisible.set(!1),this._pendingSelection.set(null))}onEntityMentionCancel(){this._entityCategoryModalVisible.set(!1),this._pendingSelection.set(null)}_contentCategories=(0,p.uu)(()=>this.contentCategories());contentCategoriesString=(0,p.EW)(()=>this._contentCategories().map(t=>this._iriToString(t)).sort().join(", "));_iriToString(t){const n=this.availableContentCategories()?.find(i=>i.iri===t);return n?n.label:t}infoChangeContentCategory=(0,y.Xx)("components.documentInfo.infoChangeContentCategory");rdfEditConfig=(0,p.EW)(()=>{var t=this;const n=this.handlers()?.requestRDFChange;var i;if(void 0!==n)return{message:this.infoChangeContentCategory(),existingValue:this._contentCategories(),dataType:"multiselect",options:this.availableContentCategories()?.map(i=>i.iri),optionLabelMap:this.availableContentCategories()?.reduce((i,a)=>(i[a.iri]=a.label,i),{}),requestSave:(i=(0,_.A)(function*(a){console.log(a);const s={subject:t.subject(),predicate:`${M.E.qcy}contentCategory`,objects:t._contentCategories(),newObjects:a.newValue,type:"contentCategory",comment:a.comment};yield n(s),t._contentCategories.set(a.newValue),t.dataChanged.emit({contentCategories:a.newValue})}),function(s){return i.apply(this,arguments)})};console.warn("No RDF change request handler defined")});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-document-info"]],inputs:{subject:[1,"subject"],handlers:[1,"handlers"],fileLocations:[1,"fileLocations"],filePathEntities:[1,"filePathEntities"],contentCategories:[1,"contentCategories"],contentCategoriesEditable:[1,"contentCategoriesEditable"],filePathEntitiesVisible:[1,"filePathEntitiesVisible"],filePathEntitiesEditable:[1,"filePathEntitiesEditable"],menuItems:[1,"menuItems"],availableContentCategories:[1,"availableContentCategories"],availableEntityCategories:[1,"availableEntityCategories"],collapsed:[1,"collapsed"]},outputs:{dataChanged:"dataChanged",filePathEntityAdded:"filePathEntityAdded",filePathEntities:"filePathEntitiesChange"},decls:7,vars:4,consts:[["trigger",""],["direction","column",2,"min-height","50px"],["direction","row"],["direction","column",2,"flex","1 1"],["direction","column",2,"width","50px"],[3,"selection","availableEntityCategories","fileLocations","requestFileLocations","requestFilePathEntityAdd"],["size","l",3,"key","val"],["positioning","bottomleft"],["trigger","","variant","tertiary"],["icon","more-vert"],["menu","",3,"items"],["size","s",3,"key","val","rdfConfig","editDisabled"],[1,"file-path-nav-container"],[1,"file-path-label"],["size","xs"],[1,"path-counter"],[1,"file-path-row"],["variant","tertiary","size","xs",3,"disabled"],["size","s",3,"textSelected","path","highlights","allowDelete","allowAdd"],["variant","tertiary","size","xs",3,"click","disabled"],["icon","paginator-back"],["icon","paginator-next"],[3,"confirm","cancel","selection","availableEntityCategories","fileLocations","requestFileLocations","requestFilePathEntityAdd"]],template:function(n,i){1&n&&(e.j41(0,"cue-flexcontainer",1)(1,"cue-flexcontainer",2)(2,"cue-flexcontainer",3),e.nVh(3,se,2,1,"cue-key-val-list"),e.k0s(),e.nVh(4,le,6,1,"cue-flexcontainer",4),e.k0s(),e.nVh(5,ge,4,2,"cue-key-val-list"),e.k0s(),e.nVh(6,_e,1,5,"cue-entity-mention-modal",5)),2&n&&(e.R7$(3),e.vxM(i.fileLocations().length>0||i.subject()?3:-1),e.R7$(),e.vxM(i.menuItems().length>0?4:-1),e.R7$(),e.vxM(!i.collapsed()&&i.hasDocInfo()?5:-1),e.R7$(),e.vxM(i._entityCategoryModalVisible()&&i._pendingSelection()?6:-1))},dependencies:[v.n,E.p,r.F,C.L,P.W,R.T,V.a,j.$,W,g.Typography,ie,y.Kj],styles:[".file-path-nav-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.file-path-label[_ngcontent-%COMP%]{display:block;margin:0}.file-path-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin:0;overflow:visible;padding:1px}.file-path-row[_ngcontent-%COMP%] cue-file-path-viewer[_ngcontent-%COMP%]{flex:1;overflow:visible;min-width:0}.path-counter[_ngcontent-%COMP%]{opacity:.6}"],changeDetection:0})}return o})();class fe{requestRDFChange;requestFileLocations;requestFilePathEntityAdd}var pe=l(2065),ve=l(5187),ye=l(7293);const be=["viewerHost"];function Ce(o,m){if(1&o&&e.nrm(0,"cue-document-info",4),2&o){const t=e.XpG(2);e.Y8G("subject",t._docSubject())("handlers",t._docInfoHandlers)("menuItems",t._menuItems())}}function Me(o,m){1&o&&(e.j41(0,"cue-flexcontainer",5)(1,"cue-typography"),e.EFF(2,"Loading\u2026"),e.k0s()())}function xe(o,m){if(1&o&&(e.j41(0,"cue-flexcontainer",5)(1,"cue-typography",8),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.JRh(t.errorMessage())}}function Ee(o,m){if(1&o&&e.nrm(0,"cue-logo-link",7),2&o){const t=e.XpG(2);e.Y8G("projectId",t.projectId())("resourceId",t._uuidOnly())}}function De(o,m){if(1&o&&(e.j41(0,"div",3),e.nVh(1,Ce,1,3,"cue-document-info",4),e.nVh(2,Me,3,0,"cue-flexcontainer",5)(3,xe,3,1,"cue-flexcontainer",5),e.j41(4,"div",6),e.eu8(5,null,1),e.k0s(),e.nVh(7,Ee,1,2,"cue-logo-link",7),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.showDocumentInfo()&&"ready"===t.state()?1:-1),e.R7$(),e.vxM("loading"===t.state()?2:"error"===t.state()?3:-1),e.R7$(5),e.vxM(t.showLogo()?7:-1)}}function Pe(o,m){1&o&&e.eu8(0)}function we(o,m){if(1&o&&(e.j41(0,"cue-card",2),e.DNE(1,Pe,1,0,"ng-container",9),e.k0s()),2&o){const t=e.XpG(),n=e.sdS(1);e.Y8G("variant",t._cardVariant())("padded",!0),e.R7$(),e.Y8G("ngTemplateOutlet",n)}}function Re(o,m){1&o&&e.eu8(0)}function Fe(o,m){if(1&o&&e.DNE(0,Re,1,0,"ng-container",9),2&o){e.XpG();const t=e.sdS(1);e.Y8G("ngTemplateOutlet",t)}}const Ie=[".fragments",".dxf",".pdf",".png",".jpg",".jpeg",".svg",".gif",".webp",".bmp",".avif",".apng",".xlsx",".xls",".csv",".json",".jsonld",".xml",".css",".js",".html",".htm",".sh",".txt",".rst",".md"];let Oe=(()=>{class o{set _viewerHostRef(t){if(this._viewerHost=t,t&&this._lastRenderArgs){const{url:n,suffix:i,page:a,viewerTypeOverride:s}=this._lastRenderArgs;this._renderViewer(n,i,a,s)}}_viewerHost;_lastRenderArgs;currentViewerRef;cue=(0,c.hFB)(void 0);uuid=(0,c.hFB)(void 0);projectId=(0,c.hFB)(void 0);showDocumentInfo=(0,c.hFB)(!0,{transform:c.L39});showLogo=(0,c.hFB)(!1,{transform:c.L39});_uuidOnly=(0,p.EW)(()=>{const t=this.uuid();return t?t.split("?")[0].trim():void 0});extraMenuItems=(0,c.hFB)([]);portalBaseURL=(0,c.hFB)("https://cue.qaecy.com");variant=(0,c.hFB)("none");_cardVariant=(0,p.EW)(()=>this.variant());state=(0,u.vPA)("idle");errorMessage=(0,u.vPA)(null);resolvedUrl=(0,u.vPA)(null);resolvedSuffix=(0,u.vPA)(null);_docSubject=(0,u.vPA)("");_alternatives=(0,u.vPA)([]);_originalUuid=(0,u.vPA)(null);_originalDocSuffix=(0,u.vPA)(null);_cueSnapshot=null;_projectIdSnapshot=null;_inputWarningTimer;_blobUrls=new Set;_docInfoHandlers=new fe;_menuItems=(0,p.EW)(()=>{const t=[],n=this._originalUuid(),i=this._originalDocSuffix();n&&i&&t.push({icon:"download",label:"Download file",action:()=>this._downloadOriginal()});const a=this._alternatives();if(a.length>1){const s=this.resolvedSuffix();t.push({icon:"document",label:"Alternative representation",children:a.map(d=>({label:d.original?`Original (${d.suffix.replace(".","").toUpperCase()})`:d.suffix.replace(".","").toUpperCase(),tooltip:s===d.suffix?"Currently shown":void 0,action:()=>this._switchToAlternative(d)}))})}return t.push(...this.extraMenuItems()),t});constructor(){this._inputWarningTimer=setTimeout(()=>{this.cue()||console.warn('[cue-document-viewer] Required input "cue" is not set. Pass an authenticated Cue SDK instance.'),this.uuid()||console.warn('[cue-document-viewer] Required input "uuid" is not set. Pass the document UUID to display.'),this.projectId()||console.warn('[cue-document-viewer] Required input "projectId" is not set. Pass the Cue project ID the document belongs to.')},3e3),(0,u.QZP)(()=>{const t=this.cue(),n=this.uuid(),i=this.projectId();t&&n&&i?this._load(t,n,i):this.state.set("idle")})}ngOnDestroy(){clearTimeout(this._inputWarningTimer),this._blobUrls.forEach(t=>URL.revokeObjectURL(t))}_load(t,n,i){var a=this;return(0,_.A)(function*(){if(t&&n&&i){a.state.set("loading"),a.resolvedUrl.set(null),a.resolvedSuffix.set(null),a.errorMessage.set(null),a._docSubject.set(""),a._originalUuid.set(null),a._originalDocSuffix.set(null),a._alternatives.set([]),a._viewerHost?.clear(),a.currentViewerRef?.destroy(),a.currentViewerRef=void 0,a._lastRenderArgs=void 0;try{a._cueSnapshot=t,a._projectIdSnapshot=i;const{uuid:s,page:d}=function Te(o){const[m,t]=o.split("?"),n=m.trim();let i=null;if(t){const s=new URLSearchParams(t).get("page");if(null!==s){const d=parseInt(s,10);!isNaN(d)&&d>0&&(i=d)}}return{uuid:n,page:i}}(n),f=t.createProjectDocuments(i),F=(yield f.fetchDocumentData([s]))[s];if(!F)throw new Error(`Document '${s}' not found in project '${i}'.`);a._docSubject.set(F.subject??""),a._originalUuid.set(s),a._originalDocSuffix.set(F.suffix);const B=yield f.fetchAlternativeRepresentations(s);a._alternatives.set([{uuid:s,suffix:F.suffix,original:!0},...B.filter(N=>N.id!==s).map(N=>({uuid:N.id,suffix:N.suffix,original:!1,remoteRelativePath:N.remoteRelativePath}))]);const{uuid:L,suffix:S,remoteRelativePath:U}=function Le(o,m){const t=[o,...m];let n,i=1/0;for(const a of t){const s=Ie.indexOf(a.suffix);-1!==s&&s<i&&(i=s,n=a)}return n?{uuid:n.id,suffix:n.suffix,remoteRelativePath:n.remoteRelativePath}:{uuid:o.id,suffix:o.suffix}}(F,B),$=U?yield a._toBlobUrl(t,t.storage.getAltRepDownloadUrl(U),i):yield a._toBlobUrl(t,t.storage.getDownloadUrl(i,L,S),i);a.resolvedUrl.set($),a.resolvedSuffix.set(S);const Ve=[".eml",".msg",".emlx",".mbx"].includes(F.suffix)&&".json"===S?"email":void 0;yield a._renderViewer($,S,d,Ve),a.state.set("ready")}catch(s){const d=s instanceof Error?s.message:String(s);console.error("[CueDocumentViewerWC] Failed to load document:",d),a.errorMessage.set(d),a.state.set("error")}}else a.state.set("idle")})()}_toBlobUrl(t,n,i){var a=this;return(0,_.A)(function*(){const s=yield t.auth.authenticatedFetch(n,{headers:{"cue-project-id":i}});if(!s.ok)throw new Error(`Failed to fetch document: ${s.status} ${s.statusText}`);const d=URL.createObjectURL(yield s.blob());return a._blobUrls.add(d),d})()}_renderViewer(t,n,i,a){var s=this;return(0,_.A)(function*(){try{const{DocumentViewer:d}=yield Promise.all([l.e(3418),l.e(3036)]).then(l.bind(l,3036)),{DocumentViewerSettings:f}=yield l.e(3418).then(l.bind(l,3418));s._viewerHost?.clear(),s.currentViewerRef?.destroy();const T=new f;if(null!==i&&(T.pdf.page=String(i)),!s._viewerHost)throw new Error("viewerHost is not yet available \u2014 view has not been initialized.");s._lastRenderArgs={url:t,suffix:n,page:i,viewerTypeOverride:a},s.currentViewerRef=s._viewerHost.createComponent(d),s.currentViewerRef.setInput("url",t),s.currentViewerRef.setInput("suffix",n),s.currentViewerRef.setInput("settings",T),a&&s.currentViewerRef.setInput("viewerTypeOverride",a)}catch(d){throw new Error(`Failed to load viewer component: ${d instanceof Error?d.message:String(d)}`)}})()}_switchToAlternative(t){var n=this;return(0,_.A)(function*(){const i=n._cueSnapshot,a=n._projectIdSnapshot;if(i&&a)try{const s=t.remoteRelativePath?yield n._toBlobUrl(i,i.storage.getAltRepDownloadUrl(t.remoteRelativePath),a):yield n._toBlobUrl(i,i.storage.getDownloadUrl(a,t.uuid,t.suffix),a);n.resolvedUrl.set(s),n.resolvedSuffix.set(t.suffix),yield n._renderViewer(s,t.suffix,null)}catch(s){console.error("[CueDocumentViewerWC] Failed to switch to alternative:",s)}})()}_downloadOriginal(){var t=this;return(0,_.A)(function*(){const n=t._cueSnapshot,i=t._projectIdSnapshot,a=t._originalUuid(),s=t._originalDocSuffix();if(n&&i&&a&&s)try{const d=yield n.storage.downloadBlob(i,a,s);(0,pe.KE)(d,`${a}${s}`)}catch(d){console.error("[CueDocumentViewerWC] Failed to download original:",d)}})()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-document-viewer-wc"]],viewQuery:function(n,i){if(1&n&&e.GBs(be,5,e.c1b),2&n){let a;e.mGM(a=e.lsd())&&(i._viewerHostRef=a.first)}},inputs:{cue:[1,"cue"],uuid:[1,"uuid"],projectId:[1,"projectId"],showDocumentInfo:[1,"showDocumentInfo"],showLogo:[1,"showLogo"],extraMenuItems:[1,"extraMenuItems"],portalBaseURL:[1,"portalBaseURL"],variant:[1,"variant"]},decls:4,vars:1,consts:[["body",""],["viewerHost",""],[2,"height","100%","width","100%",3,"variant","padded"],[2,"display","flex","flex-direction","column","height","100%","width","100%","position","relative"],[3,"subject","handlers","menuItems"],["direction","column","align","center","justify","center",2,"flex","1","width","100%"],[2,"flex","1","min-height","0","overflow","hidden"],[2,"position","absolute","bottom","12px","right","12px","z-index","5",3,"projectId","resourceId"],[2,"color","#c44","font-size","13px"],[4,"ngTemplateOutlet"]],template:function(n,i){1&n&&(e.DNE(0,De,8,3,"ng-template",null,0,e.C5r),e.nVh(2,we,2,3,"cue-card",2)(3,Fe,1,1,"ng-container")),2&n&&(e.R7$(2),e.vxM("none"!==i.variant()?2:3))},dependencies:[h.MD,h.T3,v.n,g.Typography,me,ve.Card,ye.x],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return o})()},2065(O,w,l){function p(h,v,g="text/plain"){return function _(h,v="data.zip"){const g=document.createElement("a"),E=URL.createObjectURL(h);g.href=E,g.download=v,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(E)}(new Blob([h],{type:g}),v)}function u(h,v){const g=document.createElement("a");g.style.display="hidden",g.setAttribute("href",window.URL.createObjectURL(h)),g.setAttribute("download",v),document.body.appendChild(g),g.click(),g.remove()}l.d(w,{KE:()=>u,YN:()=>p})}}]);