@genesislcap/foundation-rapid-cdn 15.111.0 → 15.111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -864,7 +864,7 @@ let HI={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
|
|
|
864
864
|
font-family: ${us};
|
|
865
865
|
font-style: ${e};
|
|
866
866
|
font-weight: ${t};
|
|
867
|
-
`,ePe=O` ${io(`flex`)} :host{flex: 1}`,tPe=O` :host{background-color: ${DT}}`.withBehaviors(to(O` :host{background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.CanvasText};color: ${F.ButtonText}}`)),M1=(e,t)=>O` ${e.name} ${`h`+t}{margin: 0}`,nPe=e=>O` ${M1(e,`1`)} ${M1(e,`2`)} ${M1(e,`3`)} ${M1(e,`4`)} ${M1(e,`5`)} ${M1(e,`6`)}`,rPe=e=>{let t=nPe(e);return t.addStylesTo(document),O` ${ePe} ${tPe} ${t} :host *{${$Ne()}}`};var N1=class extends K{constructor(){super(),this.luminancePersistence=new hT(this),_T(jT,MT,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],N1.prototype,`persistLuminance`,void 0),q([D({attribute:`card-fill-color`,converter:yT}),vT(OT)],N1.prototype,`cardFillColor`,void 0),q([D({attribute:`card-foreground-color`,converter:yT}),vT(AT)],N1.prototype,`cardForegroundColor`,void 0),N1.compose({baseName:`design-system-provider`,template:T`<slot></slot>`,styles:rPe});let P1=O` :host{--dialog-close-icon-display: flex;--dialog-min-width: 358px;--notification-details-min-height: 40px}dialog[type='error'], dialog[type='alert'], dialog[type='success']{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px) calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px)}dialog[type='error']::before, dialog[type='alert']::before, dialog[type='success']::before{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: calc(var(--design-unit) * 3px - 2px);height: calc(100% - (var(--design-unit) * 4px));width: 4px;border-radius: 2px}dialog[type='error']::before{background-color: var(--error-color)}dialog[type='alert']::before{background-color: var(--warning-color)}dialog[type='success']::before{background-color: var(--success-color)}.header-controls{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}:host([draggable])::part(top){cursor: move}.close-icon{display: var(--dialog-close-icon-display)}.reset-size-icon{display: flex}dialog{background-color: var(--dialog-background, var(--fill-color));padding: calc(var(--design-unit) * 3px);outline: none;overflow: inherit;/* The inner element is position:fixed, so it is never CLIPPED — but an 'auto' default leaves it in the normal paint tree at its tree position, where any later-in-DOM sibling paints over it (e.g. a non-modal dialog inside one FlexLayout tile disappears under the tiles below). 1001 clears app headers (999) and FlexLayout's drag chrome (1000) while staying under Flyout (2000/2001). Modal is unaffected: showModal() puts it in the top layer, above all of this. */ z-index: var(--dialog-z-index, 1001)}:host([position='left']) dialog{margin-left: 0}:host([position='right']) dialog{margin-right: 0}.top{display: flex;justify-content: space-between;align-items: center;gap: calc(var(--design-unit) * 2px)}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--notification-details-min-height);white-space: pre-line}.content-container{box-sizing: border-box}:host([resizable]) dialog{position: relative;box-sizing: border-box;max-width: 100%;max-height: 100%}:host([resizable]) dialog[open]{display: flex;flex-direction: column}/* Override design system max-width constraints for resizable dialogs */ :host([resizable]) dialog .content-wrapper{position: relative;height: 100%;width: 100%;max-height: 100%;min-width: 100%;max-width: 100%;resize: none;box-sizing: border-box;display: flex;flex-direction: column;overflow: hidden}:host([resizable]) .content-container{flex: 1 1 auto;overflow: auto;min-height: 0;box-sizing: border-box}:host([resizable]) .top, :host([resizable]) .bottom{flex: 0 0 auto}:host([position='right']) dialog .content-wrapper, :host([position='left']) dialog .content-wrapper, :host([position='left']) dialog, :host([position='right']) dialog{height: 100%}/* Resize handles */ .resize-handle{position: absolute;z-index: 10}/* Edge handles */ .resize-handle-n, .resize-handle-s{left: 0;right: 0;height: 8px;cursor: ns-resize}.resize-handle-n{top: 0}.resize-handle-s{bottom: 0}.resize-handle-e, .resize-handle-w{top: 0;bottom: 0;width: 8px;cursor: ew-resize}.resize-handle-e{right: 0}.resize-handle-w{left: 0}/* Corner handles */ .resize-handle-ne, .resize-handle-nw, .resize-handle-se, .resize-handle-sw{width: 16px;height: 16px}.resize-handle-ne{top: 0;right: 0;cursor: nesw-resize}.resize-handle-nw{top: 0;left: 0;cursor: nwse-resize}.resize-handle-se{bottom: 0;right: 0;cursor: nwse-resize}.resize-handle-sw{bottom: 0;left: 0;cursor: nesw-resize}/* Visual indicator for corner handles */ .resize-handle-se::after, .resize-handle-sw::after, .resize-handle-ne::after, .resize-handle-nw::after{content: '';position: absolute;width: 8px;height: 8px;border-style: solid;border-color: var(--neutral-stroke-divider-rest);opacity: 50%;transition: opacity 0.2s;margin: 2px}.resize-handle-se::after{bottom: 2px;right: 2px;border-width: 0 3px 3px 0}.resize-handle-sw::after{bottom: 2px;left: 2px;border-width: 0 0 3px 3px}.resize-handle-ne::after{top: 2px;right: 2px;border-width: 3px 3px 0 0}.resize-handle-nw::after{top: 2px;left: 2px;border-width: 3px 0 0 3px}/* Hover effect */ .resize-handle:hover::after{opacity: 100%}/* Resizing state */ dialog.resizing{user-select: none;pointer-events: auto}/* Fixed positioning support for resizable dialogs */ dialog[style*='position: fixed']{margin: 0}`,F1=T`<slot>${A(e=>e.notification,T`<div class="details">${e=>e.notification?.body||`Place holder for notification message`}</div>`)}</slot>`,iPe=e=>T`<dialog ${k(`mainElement`)}part="dialog" type=${e=>e.type}><div class="content-wrapper" part="content"><div part="top" class="top" ${k(`topElement`)}><slot name="top" ${k(`topElementSlot`)}><h2 slot="top" class="title">${e=>e.notification?.title}</h2></slot><div class="header-controls">${A(e=>e.resizable,T`<${e}-button class="reset-size-icon" part="reset-size-icon" aria-label="reset size" appearance="stealth" @click=${e=>e.resetSize()}><${e}-icon name="${e=>e.resizeIconName}"></${e}-icon></${e}-button>`)} ${A(e=>e.showCloseIcon,T`<${e}-button class="close-icon" part="close-icon" aria-label="close" appearance="stealth" @click=${e=>e.close()}><${e}-icon name="times" size="lg"></${e}-icon></${e}-button>`)}</div></div>${uf(e=>e.resizable,T`<div class="content-container" part="content-container">${F1}</div>`,F1)}<div part="bottom" class="bottom"><slot name="bottom">${A(e=>e.notification,T`<${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>`)} ${j(e=>(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</slot></div></div>${A(e=>e.resizable,T`<div class="resize-handle resize-handle-n" data-direction="n"></div><div class="resize-handle resize-handle-s" data-direction="s"></div><div class="resize-handle resize-handle-e" data-direction="e"></div><div class="resize-handle resize-handle-w" data-direction="w"></div><div class="resize-handle resize-handle-ne" data-direction="ne"></div><div class="resize-handle resize-handle-nw" data-direction="nw"></div><div class="resize-handle resize-handle-se" data-direction="se"></div><div class="resize-handle resize-handle-sw" data-direction="sw"></div>`)}</dialog>`,I1=T` ${e=>iPe(gb(e))} `;var L1=window.CustomEvent;(!L1||typeof L1==`object`)&&(L1=function(e,t){t=t||{};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n},L1.prototype=window.Event.prototype);function R1(e,t){var n=`on`+t.type.toLowerCase();return typeof e[n]==`function`&&e[n](t),e.dispatchEvent(t)}function aPe(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return t[e]!==void 0&&t[e]!==n};if(t.opacity<1||n(`zIndex`,`auto`)||n(`transform`,`none`)||n(`mixBlendMode`,`normal`)||n(`filter`,`none`)||n(`perspective`,`none`)||t.isolation===`isolate`||t.position===`fixed`||t.webkitOverflowScrolling===`touch`)return!0;e=e.parentElement}return!1}function z1(e){for(;e;){if(e.localName===`dialog`)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function B1(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function oPe(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function V1(e){return!e||!e.hasAttribute(`method`)?!1:e.getAttribute(`method`).toLowerCase()===`dialog`}function H1(e){var t=[`button`,`input`,`keygen`,`select`,`textarea`].map(function(e){return e+`:not([disabled])`});t.push(`[tabindex]:not([disabled]):not([tabindex=""])`);var n=e.querySelector(t.join(`, `));if(!n&&`attachShadow`in Element.prototype)for(var r=e.querySelectorAll(`*`),i=0;i<r.length&&!(r[i].tagName&&r[i].shadowRoot&&(n=H1(r[i].shadowRoot),n));i++);return n}function U1(e){return e.isConnected||document.body.contains(e)}function W1(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var n=K1.formSubmitter;if(!n){var r=e.target;n=(`getRootNode`in r&&r.getRootNode()||document).activeElement}return!n||n.form!==t?null:n}function sPe(e){if(!e.defaultPrevented){var t=e.target,n=K1.imagemapUseValue,r=W1(e);n===null&&r&&(n=r.value);var i=z1(t);i&&(r&&r.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&(e.preventDefault(),n==null?i.close():i.close(n))}}function G1(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute(`role`)||e.setAttribute(`role`,`dialog`),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener(`submit`,sPe,!1),`returnValue`in e||(e.returnValue=``),`MutationObserver`in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:[`open`]});else{var t=!1,n=function(){t?this.downgradeModal():this.maybeHideModal(),t=!1}.bind(this),r,i=function(i){if(i.target===e){var a=`DOMNodeRemoved`;t|=i.type.substr(0,a.length)===a,window.clearTimeout(r),r=window.setTimeout(n,0)}};[`DOMAttrModified`,`DOMNodeRemoved`,`DOMNodeRemovedFromDocument`].forEach(function(t){e.addEventListener(t,i)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,`open`)}),this.backdrop_=document.createElement(`div`),this.backdrop_.className=`backdrop`,this.backdrop_.addEventListener(`mouseup`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`mousedown`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`click`,this.backdropMouseEvent_.bind(this))}G1.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute(`open`)&&U1(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex=``,this.replacedStyleTop_&&(this.dialog_.style.top=``,this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),K1.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute(`open`)||this.dialog_.setAttribute(`open`,``):(this.dialog_.removeAttribute(`open`),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute(`tabindex`))this.dialog_.focus();else{var t=document.createElement(`div`);this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent(`MouseEvents`);n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector(`[autofocus]:not([disabled])`);!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=H1(this.dialog_)),B1(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw Error(`dialogZ should never be < backdropZ`);this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.`);if(!U1(this.dialog_))throw Error(`Failed to execute 'showModal' on dialog: The element is not in a Document.`);if(!K1.dm.pushDialog(this))throw Error(`Failed to execute 'showModal' on dialog: There are too many open modal dialogs.`);aPe(this.dialog_.parentElement)&&console.warn(`A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context`),this.setOpen(!0),this.openAsModal_=!0,K1.needsCentering(this.dialog_)?(K1.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.`);this.setOpen(!1),e!==void 0&&(this.dialog_.returnValue=e);var t=new L1(`close`,{bubbles:!1,cancelable:!1});R1(this.dialog_,t)}};var K1={};if(K1.reposition=function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+`px`},K1.isInlinePositionSetByStylesheet=function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch{}if(r)for(var i=0;i<r.length;++i){var a=r[i],o=null;try{o=document.querySelectorAll(a.selectorText)}catch{}if(o&&oPe(o,e)){var s=a.style.getPropertyValue(`top`),c=a.style.getPropertyValue(`bottom`);if(s&&s!==`auto`||c&&c!==`auto`)return!0}}}return!1},K1.needsCentering=function(e){return window.getComputedStyle(e).position!==`absolute`||e.style.top!==`auto`&&e.style.top!==``||e.style.bottom!==`auto`&&e.style.bottom!==``?!1:!K1.isInlinePositionSetByStylesheet(e)},K1.forceRegisterDialog=function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn(`This browser already supports <dialog>, the polyfill may not work correctly`,e),e.localName!==`dialog`)throw Error(`Failed to register dialog: The element is not a dialog.`);new G1(e)},K1.registerDialog=function(e){e.showModal||K1.forceRegisterDialog(e)},K1.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement(`div`),this.overlay.className=`_dialog_overlay`,this.overlay.addEventListener(`click`,function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,`MutationObserver`in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t=0,r;r=e.removedNodes[t];++t){if(r instanceof Element)r.localName===`dialog`&&n.push(r);else continue;n=n.concat(r.querySelectorAll(`dialog`))}}),n.length&&e(n)}))},K1.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener(`focus`,this.handleFocus_,!0),document.addEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},K1.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener(`focus`,this.handleFocus_,!0),document.removeEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.disconnect()},K1.DialogManager.prototype.updateStacking=function(){for(var e=this.zIndexHigh_,t=0,n;n=this.pendingDialogStack[t];++t)n.updateZIndex(--e,--e),t===0&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},K1.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=z1(e);){for(var t=0,n;n=this.pendingDialogStack[t];++t)if(n.dialog===e)return t===0;e=e.parentElement}return!1},K1.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),B1(t),this.forwardTab_!==void 0)){var n=this.pendingDialogStack[0];return n.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?n.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},K1.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,e.keyCode===27){e.preventDefault(),e.stopPropagation();var t=new L1(`cancel`,{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&R1(n.dialog,t)&&n.dialog.close()}else e.keyCode===9&&(this.forwardTab_=!e.shiftKey)},K1.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){e.indexOf(t.dialog)===-1?t.maybeHideModal():t.downgradeModal()})},K1.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(e)===1&&this.blockDocument(),this.updateStacking(),!0)},K1.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},K1.dm=new K1.DialogManager,K1.formSubmitter=null,K1.imagemapUseValue=null,window.HTMLDialogElement===void 0){var q1=document.createElement(`form`);if(q1.setAttribute(`method`,`dialog`),q1.method!==`dialog`){var J1=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,`method`);if(J1){var cPe=J1.get;J1.get=function(){return V1(this)?`dialog`:cPe.call(this)};var lPe=J1.set;J1.set=function(e){return typeof e==`string`&&e.toLowerCase()===`dialog`?this.setAttribute(`method`,e):lPe.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",J1)}}document.addEventListener(`click`,function(e){if(K1.formSubmitter=null,K1.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if(`composedPath`in e&&(t=e.composedPath().shift()||t),t&&V1(t.form)){if(!(t.type===`submit`&&[`button`,`input`].indexOf(t.localName)>-1)){if(t.localName!==`input`||t.type!==`image`)return;K1.imagemapUseValue=e.offsetX+`,`+e.offsetY}z1(t)&&(K1.formSubmitter=t)}}},!1),document.addEventListener(`submit`,function(e){var t=e.target;if(!z1(t)){var n=W1(e);(n&&n.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&e.preventDefault()}});var uPe=HTMLFormElement.prototype.submit,dPe=function(){if(!V1(this))return uPe.call(this);var e=z1(this);e&&e.close()};HTMLFormElement.prototype.submit=dPe}let Y1={mode:`open`,delegatesFocus:!0},X1={};var Z1=class extends P{constructor(){super(...arguments),this.type=`default`,this.position=`center`,this.showCloseIcon=!0,this.resizable=!1,this.draggable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth=``,this.originalHeight=``,this.originalPosition=``,this.originalLeft=``,this.originalTop=``,this.originalMargin=``,this.isMaximized=!1,this.hasBeenResized=!1,this.isDragging=!1,this.dragOffsetX=0,this.dragOffsetY=0,this.dragDialogWidth=0,this.dragDialogHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}draggableChanged(e,t){t?this.attachDragMouseDown():(this.detachDragMouseDown(),this.removeDraggableEventListeners())}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||K1.registerDialog(this.mainElement),this.mainElement.addEventListener(`close`,()=>{this.resetDraggableStyle(),this.onCloseCallback&&this.onCloseCallback(),this.$emit(`close`)}),this.hasAttribute(`open`)&&this.shadowRoot.querySelector(`dialog`).setAttribute(`open`,``),this.setupResizeHandlers(),this.attachDragMouseDown()}disconnectedCallback(){super.disconnectedCallback(),this.removeResizeHandlers(),this.detachDragMouseDown(),this.removeDraggableEventListeners()}setupResizeHandlers(){if(!this.resizable)return;let e=window.innerWidth,t=window.innerHeight,n=this.minWidth,r=this.minHeight;this.initialWidth!==void 0&&(n=Math.max(this.minWidth,Math.min(this.initialWidth,e))),this.initialHeight!==void 0&&(r=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${n}px`,this.originalHeight=this.mainElement.style.height||`${r}px`,this.originalPosition=this.mainElement.style.position||``,this.originalLeft=this.mainElement.style.left||``,this.originalTop=this.mainElement.style.top||``,this.originalMargin=this.mainElement.style.margin||``,this.mainElement.style.height=`${r}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${n}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height,this.shadowRoot.querySelectorAll(`.resize-handle`).forEach(e=>{e.addEventListener(`mousedown`,this.handleResizeStart.bind(this)),e.addEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),(this.shadowRoot?.querySelectorAll(`.resize-handle`))?.forEach(e=>{e.removeEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();let t=e.target.dataset.direction;if(![`n`,`s`,`e`,`w`].includes(t))return;let n=this.mainElement.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight;switch(this.mainElement.style.position=`fixed`,this.mainElement.style.margin=`0`,t){case`n`:this.mainElement.style.height=`${n.bottom}px`,this.mainElement.style.top=`0px`;break;case`s`:this.mainElement.style.height=`${i-n.top}px`;break;case`e`:this.mainElement.style.width=`${r-n.left}px`;break;case`w`:this.mainElement.style.width=`${n.right}px`,this.mainElement.style.left=`0px`}this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;let t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;let n=this.mainElement.getBoundingClientRect();switch(this.startWidth=n.width,this.startHeight=n.height,this.startLeft=n.left,this.startTop=n.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case`n`:this.resizeOffsetY=e.clientY-n.top;break;case`s`:this.resizeOffsetY=e.clientY-n.bottom;break;case`e`:this.resizeOffsetX=e.clientX-n.right;break;case`w`:this.resizeOffsetX=e.clientX-n.left;break;case`ne`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.top;break;case`nw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.top;break;case`se`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.bottom;break;case`sw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.bottom}this.mainElement.style.position=`fixed`,this.mainElement.style.left=`${n.left}px`,this.mainElement.style.top=`${n.top}px`,this.mainElement.style.margin=`0`,document.addEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.addEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.add(`resizing`)}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();let t=e.clientX-this.startX-this.resizeOffsetX,n=e.clientY-this.startY-this.resizeOffsetY,r=this.startWidth,i=this.startHeight,a=this.startLeft,o=this.startTop,s=!1;switch(this.currentResizeHandle){case`se`:r=this.startWidth+t,i=this.startHeight+n;break;case`sw`:r=this.startWidth-t,i=this.startHeight+n,a=this.startLeft+t,s=!0;break;case`ne`:r=this.startWidth+t,i=this.startHeight-n,o=this.startTop+n,s=!0;break;case`nw`:r=this.startWidth-t,i=this.startHeight-n,a=this.startLeft+t,o=this.startTop+n,s=!0;break;case`e`:r=this.startWidth+t;break;case`w`:r=this.startWidth-t,a=this.startLeft+t,s=!0;break;case`s`:i=this.startHeight+n;break;case`n`:i=this.startHeight-n,o=this.startTop+n,s=!0}let c=window.innerWidth,l=window.innerHeight;if(this.resizable){if(r<this.minWidth){let e=this.minWidth-r;r=this.minWidth,this.currentResizeHandle.includes(`w`)&&(a-=e)}if(i<this.minHeight){let e=this.minHeight-i;i=this.minHeight,this.currentResizeHandle.includes(`n`)&&(o-=e)}if(this.currentResizeHandle.includes(`e`)){let e=c-this.startLeft;r>e&&(r=e)}if(this.currentResizeHandle.includes(`s`)){let e=l-this.startTop;i>e&&(i=e)}if(this.currentResizeHandle.includes(`w`)){a<0&&(r+=a,a=0);let e=c-a;r>e&&(r=e)}if(this.currentResizeHandle.includes(`n`)){o<0&&(i+=o,o=0);let e=l-o;i>e&&(i=e)}}this.mainElement.style.width=`${r}px`,this.mainElement.style.height=`${i}px`,s&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${o}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.remove(`resizing`);let t=this.mainElement.style.width,n=this.mainElement.style.height;(t!==this.originalWidth||n!==this.originalHeight)&&(this.hasBeenResized=!0),this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute(`open`)}get resizeIconName(){return this.hasBeenResized||this.isMaximized?`compress`:`expand`}close(){this.mainElement.close()}dismiss(){this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){fb.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position=`fixed`,this.mainElement.style.left=`0px`,this.mainElement.style.top=`0px`,this.mainElement.style.margin=`0`,this.mainElement.style.width=`100vw`,this.mainElement.style.height=`100vh`,this.isMaximized=!0,this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){if(this.resizable&&this.mainElement){if(!this.hasBeenResized&&!this.isMaximized){this.maximize();return}this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}}attachDragMouseDown(){this.draggable&&this.mainElement&&(this.onMouseDownBound||(this.onMouseDownBound=this.onMouseDown.bind(this)),this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.mainElement.addEventListener(`mousedown`,this.onMouseDownBound))}detachDragMouseDown(){this.onMouseDownBound&&this.mainElement&&(this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){return this.topElement?.contains(e.target)||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){return this.topElementSlot?this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e)):!1}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;let t=this.mainElement.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.dragDialogWidth=t.width,this.dragDialogHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener(`mousemove`,this.onMouseMoveBound),document.addEventListener(`mouseup`,this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;let t=window.innerWidth,n=window.innerHeight,r=e.clientX-this.dragOffsetX,i=e.clientY-this.dragOffsetY;r=Math.max(0,Math.min(t-this.dragDialogWidth,r)),i=Math.max(0,Math.min(n-this.dragDialogHeight,i)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:`absolute`,left:`${r}px`,top:`${i}px`,margin:`0`})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener(`mousemove`,this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener(`mouseup`,this.onMouseUpBound),this.onMouseUpBound=null)}resetDraggableStyle(){this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:``,left:``,top:``,margin:``})}};q([C],Z1.prototype,`notification`,void 0),q([D({attribute:`type`})],Z1.prototype,`type`,void 0),q([D],Z1.prototype,`position`,void 0),q([D({mode:`boolean`,attribute:`show-close-icon`})],Z1.prototype,`showCloseIcon`,void 0),q([D({mode:`boolean`,attribute:`resizable`})],Z1.prototype,`resizable`,void 0),q([D({mode:`boolean`})],Z1.prototype,`draggable`,void 0),q([D({attribute:`min-width`})],Z1.prototype,`minWidth`,void 0),q([D({attribute:`min-height`})],Z1.prototype,`minHeight`,void 0),q([D({attribute:`initial-width`})],Z1.prototype,`initialWidth`,void 0),q([D({attribute:`initial-height`})],Z1.prototype,`initialHeight`,void 0),q([C],Z1.prototype,`onShowCallback`,void 0),q([C],Z1.prototype,`onCloseCallback`,void 0),q([C],Z1.prototype,`isMaximized`,void 0),q([C],Z1.prototype,`hasBeenResized`,void 0),q([w],Z1.prototype,`open`,null),q([w],Z1.prototype,`resizeIconName`,null);var Q1=class extends Z1{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}};Q1.compose(Object.assign({baseName:`dialog`,styles:P1,template:I1,shadowOptions:Y1},X1));let $1=(e,t)=>Ri(e,t),e0=(e,t)=>O` ${au(e,t)}`;var t0=class extends zi{};let n0={};t0.compose(Object.assign({baseName:`disclosure`,template:$1,styles:e0,shadowOptions:void 0},n0));let r0=(e,t)=>Bi(e,t),i0=(e,t)=>O` ${su(e,t)}`;var a0=class extends Vi{};let o0={};a0.compose(Object.assign({baseName:`divider`,template:r0,styles:i0,shadowOptions:void 0},o0));let s0=(e,t,n)=>O` :host{--dropdown-opener-height-multiplier: 0.7px;--menu-item-height-multiplier: 0.7px}.actions-menu{display: inline-flex;flex-direction: column;max-height: calc( var(--max-height) - ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px) );position: absolute;z-index: 1;gap: calc(var(--design-unit) * 1px)}.hidden{display: none}.actions-opener{display: flex;justify-content: center;height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--dropdown-opener-height-multiplier) );max-width: 120px}${e}-menu-item{display: flex;user-select: none}${e}-menu-item::part(content){margin-inline: 5px}${e}-menu-item::part(expand-collapse-glyph-container){margin-inline-end: 5px}${e}-menu-item::part(expand-collapse){margin-inline-start: 5px}${e}-menu-item[disabled]{pointer-events: none}${e}-icon{padding-left: 5px}.menu-item{max-height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--menu-item-height-multiplier) )}`,fPe=(e,t)=>O` ${s0(`foundation`,e,t)}`,c0=(e,t)=>T` ${j(()=>e,T` ${A(e=>e.isDisabled&&e.isDisabled(),T`<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>`)} ${A(e=>!e.isDisabled||!e.isDisabled(),T`<${t}-menu-item class="menu-item" @click=${e=>e.submenu?``:e.callback()}style="${e=>e.color?`color: ${e.color};`:``}">${A(e=>e.icon,T`<${t}-icon name=${e=>e.icon.name}size=${e=>e.icon.size}variant=${e=>e.icon.variant}slot="start"></${t}-icon>`)} ${e=>e.name} ${A(e=>e.submenu,T`<${t}-menu>${e=>c0(e.submenu,t)}</${t}-menu>`)}</${t}-menu-item>`)} `)} `,pPe=e=>T`<div class="actions-container" part="actions-container"><${e}-button id="actiosnMenuTrigger" class="actions-opener" appearance="${e=>e.buttonAppearance}" part="actions-opener" @click=${e=>e.toggleDropdownMenuVisibility()}:disabled=${e=>e.disabled}><slot>${e=>e.name}</slot></${e}-button><${e}-menu ${k(`dropdownMenu`)}class="actions-menu ${e=>e.classNames}" part="actions-menu">${t=>c0(t.allItems,e)}</${e}-menu></div>`,l0=T` ${e=>pPe(gb(e))} `;var u0=class extends P{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name=`Dropdown Menu`,this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener(`onMenuClick`,this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`mousedown`,this.clickOutside)}handleClickOutside(e){mb(e,this)&&(this.open=!1)}openChanged(){this.classNames=pn([`hidden`,!this.open]),this.open?document.addEventListener(`mousedown`,this.clickOutside):document.removeEventListener(`mousedown`,this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}};q([C],u0.prototype,`items`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],u0.prototype,`autoClose`,void 0),q([D({attribute:`disable-button`,mode:`boolean`})],u0.prototype,`disabled`,void 0),q([C],u0.prototype,`classNames`,void 0),q([D],u0.prototype,`name`,void 0),q([D({attribute:`open`,mode:`boolean`})],u0.prototype,`open`,void 0),q([D],u0.prototype,`buttonAppearance`,void 0),u0.compose({baseName:`dropdown-menu`,styles:fPe,template:l0});let d0=O` .environment-indicator{font-size: 12px;display: inline-flex;align-items: center;gap: calc(var(--design-unit) * 1.4px);border-radius: calc(var(--design-unit) * 1px);height: calc(var(--design-unit) * 6px);padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);line-height: 1;font-weight: 600;text-transform: uppercase}.environment-indicator.lg{border-radius: calc(var(--design-unit) * 4px);padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 3.5px);font-size: calc(var(--design-unit) * 4px)}.environment-indicator .icon{font-size: calc(var(--design-unit) * 3px)}.environment-indicator.lg .icon{font-size: calc(var(--design-unit) * 3.5px)}`,mPe=e=>T` ${A(e=>e.config,T`<div data-test-id="environment-indicator" part="environment-indicator" class="environment-indicator ${({config:e})=>e.size}" style="${({config:e})=>`color: ${e.textColor}; background: ${e.backgroundColor}`}" aria-label="Environment indicator:${({config:e})=>e.label}" title="Environment:${({config:e})=>e.label}">${A(({config:e})=>e.showIcon&&e.icon,T`<${e}-icon name="${({config:e})=>e.icon}" size="${({config:e})=>e.iconSize}" aria-hidden="true" class="icon"></${e}-icon>`)}<span data-test-id="environment-indicator-text" aria-label="Environment label">${({config:e})=>e.label}</span></div>`)} `,f0=T` ${e=>mPe(gb(e))} `,p0=`default`,m0={level:p0,showIcon:!1,iconSize:`sm`,backgroundColor:`#2222ff`,textColor:`#ffffff`,label:`DEFAULT`},hPe=[m0,{level:`dev`,showIcon:!1,icon:`code`,backgroundColor:`#ff6b35`,label:`DEV`},{level:`prod`,showIcon:!1,icon:`check-circle`,backgroundColor:`#28a745`,label:`PROD`}],h0=Fd(),gPe=N.createInterface(e=>e.instance(h0),e=>e.instance(h0)),_Pe=N.createInterface(`EnvironmentIndicatorConfig`);function vPe(){try{let e=N.getOrCreateDOMContainer().get(_Pe);if(e)return e}catch{return}}let g0=Ad(`EnvironmentIndicator`);var _0=class extends P{constructor(){super(...arguments),this.size=`sm`,this.textColor=`#ffffff`,this.icon=`check-circle`,this.iconSize=`sm`,this.useDefaultConfig=!1,this.config=m0,this.envConfigs=hPe}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){let e=N.getOrCreateDOMContainer().get(gPe);e&&typeof e.subscribe==`function`?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):g0.error(`Observer not found or invalid in DI container`)}connectedCallback(){super.connectedCallback(),this.diConfig=vPe(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){let e={};return[`label`,`size`,`showIcon`,`icon`,`iconSize`,`backgroundColor`,`textColor`].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{let{currentLevel:e}=this.diConfig;if(e)return e}catch(e){g0.error(e)}if(Ef!=="default")return Ef;if(this.useDefaultConfig)return p0}getEnvConfigByLevel(){let e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?m0:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},m0),{level:t}),e);if(this.diConfig){let{configs:n}=this.diConfig;if(n&&n.length>0){let r=n.find(({level:e})=>e===t);if(r)return Object.assign(Object.assign({},r),e)}}let n=this.envConfigs.find(({level:e})=>e===t);if(n)return Object.assign(Object.assign({},n),e)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),[`level`,`label`,`show-icon`,`icon-size`,`size`,`background-color`,`text-color`,`icon`].includes(e)&&t!==n&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}};q([D],_0.prototype,`level`,void 0),q([D],_0.prototype,`label`,void 0),q([D({mode:`boolean`,attribute:`show-icon`})],_0.prototype,`showIcon`,void 0),q([D],_0.prototype,`size`,void 0),q([D({attribute:`background-color`})],_0.prototype,`backgroundColor`,void 0),q([D({attribute:`text-color`})],_0.prototype,`textColor`,void 0),q([D],_0.prototype,`icon`,void 0),q([D({attribute:`icon-size`})],_0.prototype,`iconSize`,void 0),q([D({mode:`boolean`,attribute:`use-default-config`})],_0.prototype,`useDefaultConfig`,void 0),q([C],_0.prototype,`config`,void 0),q([C],_0.prototype,`envConfigs`,void 0),q([C],_0.prototype,`diConfig`,void 0),_0.compose({baseName:`environment-indicator`,template:f0,styles:d0});let yPe=e=>T`<${e}-banner ${k(`banner`)}><div slot="content"><div>${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div></div><${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>${e=>e.error?.config?.banner?.dismissingAction?.label||e.notification?.config?.banner?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.banner.confirmingActions||(e.notification?.config)?.banner.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</${e}-banner>`,bPe=T` ${e=>yPe(gb(e))} `,xPe={mode:`open`,delegatesFocus:!0};var v0=class extends P{connectedCallback(){super.connectedCallback(),fb.deprecated(`ErrorBanner`,"Use `${prefix}-banner` instead.")}dismiss(){return J(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){fb.error(e)}})}};q([C],v0.prototype,`error`,void 0),q([C],v0.prototype,`notification`,void 0),v0.compose({baseName:`error-banner`,template:bPe,shadowOptions:xPe});let SPe=T`<template ${k(`errorBoundary`)}><slot></slot></template>`;var y0;(function(e){e.ERROR_BOUNDARY_EVENT=`error-boundary-event`})(y0||(y0={}));var CPe=class{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw Error(`Title is required`);if(!this.errorDetails)throw Error(`Missing required param 'errorDetails'`);let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel!=null&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}};let wPe=()=>new CPe;var TPe=class{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}};let EPe=()=>new TPe,b0=e=>`${e?.title??`Error`}: ${e?.errorDetails??`Something went wrong`}`,DPe=e=>e?.logLevel||e?.config?.logLevel||vd.error,x0=(e,t)=>{let n=t.split(`-`)[0],r=document.querySelector(`#${e}`);if(!r){r=document.createElement(`div`),r.setAttribute(`id`,e);let t=document.createElement(`${n}-design-system-provider`);t.appendChild(r),document.body.appendChild(t)}return r},OPe=e=>{for(;e&&!(e instanceof ShadowRoot);){let t=(e?.getRootNode())?.getElementById(`error-banner-anchor`);if(t)return t.style.position=`relative`,t;e=e?.getRootNode()?.host}return kPe()},kPe=()=>{let e=document.createElement(`div`);return e.setAttribute(`id`,`error-banner-anchor`),e.style.position=`relative`,document.body.insertBefore(e,document.body.firstChild),e},APe=(e,t)=>{var n,r;let i=t.split(`-`)[0],a=x0(`notify-container`,t);if(a)switch(a.style.position=`fixed`,e?.config?.notification?.position){case`top-left`:a.style.top=`0`,a.style.left=`0`;break;case`bottom-left`:a.style.bottom=`0`,a.style.left=`0`;break;case`bottom-right`:a.style.bottom=`0`,a.style.right=`0`;break;default:a.style.top=`0`,a.style.right=`0`}let o=document.createElement(`${i}-toast`),s=document.createElement(`div`);s.setAttribute(`slot`,`top`),s.textContent=e.title??`Error`;let c=document.createElement(`div`);c.setAttribute(`slot`,`content`),c.textContent=e?.errorDetails||``;let l=document.createElement(`div`);l.setAttribute(`slot`,`date`),l.textContent=(/* @__PURE__ */ new Date()).toLocaleTimeString(),o.setAttribute(`notify`,e?.config?.notification?.type||``),(n=e?.config?.notification)!=null&&n.autoClose&&o.setAttribute(`auto-close`,`${e?.config?.notification?.autoClose}`),(r=e?.config?.notification)!=null&&r.closeTimeout&&o.setAttribute(`close-timeout`,`${e?.config?.notification?.closeTimeout}`),o.appendChild(s),o.appendChild(c),o.appendChild(l),a.appendChild(o)},jPe=(e,t,n)=>{let r=t.split(`-`)[0],i=document.createElement(`${r}-error-banner`),a=OPe(n);a?.children?.length>0&&(i.style.position=`absolute`,i.style.top=`0`,i.style.left=`0`,i.style.width=`100%`),a.appendChild(i),i.error=e},MPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-error-dialog`);x0(`dialog-container`,t).appendChild(r),r.error=e,r.show()},NPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-snackbar`);x0(`snack-container`,t).appendChild(r),r.error=e},PPe=Ad(`foundation-error`),S0={alert:e=>{alert(b0(e))},notification:APe,dialog:MPe,snackbar:NPe,banner:jPe},C0=(e,t,n)=>{PPe.log({message:b0(e),level:DPe(e)}),Object.keys(e?.config||{}).forEach(r=>{S0[r]&&S0[r](e,t,n)})},FPe={mode:`open`,delegatesFocus:!0};var w0=class extends P{constructor(){super(...arguments),this.logger=Ad(`error-boundary`),this.closeTimeout=0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){if(e.connectedCallback.call(this),this.addEventListener(y0.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),C0(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0))){fb.debug(`Genesis Datasource init failed for ${this.resourceName}`);return}this.dataSub=this.datasource.stream?.subscribe(e=>{if(!e.ROW)return;let t=e?.ROW[0];if(e.SEQUENCE_ID>1){let e=t.HEADER,n=t?.BODY,r=t.NOTIFY_SEVERITY;C0(wPe().withTitle(e).withErrorDetails(n).withNotification(EPe().withType(r).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})}})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.datasource)==null||t.destroy(),delete this.datasource}};q([C],w0.prototype,`errorBoundary`,void 0),q([D({attribute:`resource-name`})],w0.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],w0.prototype,`closeTimeout`,void 0),q([Hy],w0.prototype,`datasource`,void 0);let T0=w0.compose({baseName:`error-boundary`,template:SPe,shadowOptions:FPe}),IPe=e=>T`<${e}-dialog show-close-icon="false" ${k(`dialog`)}><h2 slot="top" class="title">${e=>e.error?.title}</h2><div class="details">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div><${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.error?.config?.dialog?.dismissingAction?.label||e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.dialog.confirmingActions||(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button slot="bottom" appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</${e}-dialog>`,LPe=T` ${e=>IPe(gb(e))} `,RPe=O` :host{--design-unit: 3;--dialog-max-width: 358px;--dialog-min-width: 358px;--dialog-max-height: 128px;--error-details-min-height: 40px}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--error-details-min-height)}`,zPe={mode:`open`,delegatesFocus:!0};var E0=class extends P{connectedCallback(){super.connectedCallback(),fb.deprecated(`ErrorDialog`,"Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){this.error?.config?.dialog?.dismissingAction?.action&&this.error.config.dialog.dismissingAction.action(),this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){fb.error(e)}}};q([C],E0.prototype,`error`,void 0),q([C],E0.prototype,`notification`,void 0),E0.compose({baseName:`error-dialog`,template:LPe,styles:RPe,shadowOptions:zPe});function D0(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){let e=this.ariaDescribedby?.trim(),t=[];if(e&&t.push(...e.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){let e=this.id||`control`;this.prefix&&t.push(`${e}-prefix`),this.suffix&&t.push(`${e}-suffix`)}let n=/* @__PURE__ */ new Set,r=[];for(let e of t)n.has(e)||(n.add(e),r.push(e));return r.join(` `)||void 0}}return q([D],t.prototype,`prefix`,void 0),q([D],t.prototype,`suffix`,void 0),q([D({attribute:`hide-affix-from-screen-reader`,mode:`boolean`})],t.prototype,`hideAffixFromScreenReader`,void 0),t}let O0=`--alert-flash-t`,k0=`alert-flash-clock`,A0=!1;function BPe(){if(!(A0||typeof document>`u`)){A0=!0;try{CSS.registerProperty({name:O0,syntax:`<number>`,inherits:!0,initialValue:`0`});let e=new CSSStyleSheet;e.replaceSync(`
|
|
867
|
+
`,ePe=O` ${io(`flex`)} :host{flex: 1}`,tPe=O` :host{background-color: ${DT}}`.withBehaviors(to(O` :host{background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.CanvasText};color: ${F.ButtonText}}`)),M1=(e,t)=>O` ${e.name} ${`h`+t}{margin: 0}`,nPe=e=>O` ${M1(e,`1`)} ${M1(e,`2`)} ${M1(e,`3`)} ${M1(e,`4`)} ${M1(e,`5`)} ${M1(e,`6`)}`,rPe=e=>{let t=nPe(e);return t.addStylesTo(document),O` ${ePe} ${tPe} ${t} :host *{${$Ne()}}`};var N1=class extends K{constructor(){super(),this.luminancePersistence=new hT(this),_T(jT,MT,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],N1.prototype,`persistLuminance`,void 0),q([D({attribute:`card-fill-color`,converter:yT}),vT(OT)],N1.prototype,`cardFillColor`,void 0),q([D({attribute:`card-foreground-color`,converter:yT}),vT(AT)],N1.prototype,`cardForegroundColor`,void 0),N1.compose({baseName:`design-system-provider`,template:T`<slot></slot>`,styles:rPe});let P1=O` :host{--dialog-close-icon-display: flex;--dialog-min-width: 358px;--notification-details-min-height: 40px}dialog[type='error'], dialog[type='alert'], dialog[type='success']{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px) calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px)}dialog[type='error']::before, dialog[type='alert']::before, dialog[type='success']::before{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: calc(var(--design-unit) * 3px - 2px);height: calc(100% - (var(--design-unit) * 4px));width: 4px;border-radius: 2px}dialog[type='error']::before{background-color: var(--error-color)}dialog[type='alert']::before{background-color: var(--warning-color)}dialog[type='success']::before{background-color: var(--success-color)}.header-controls{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}:host([draggable])::part(top){cursor: move}.close-icon{display: var(--dialog-close-icon-display)}.reset-size-icon{display: flex}dialog{background-color: var(--dialog-background, var(--fill-color));padding: calc(var(--design-unit) * 3px);outline: none;overflow: inherit;/* The inner element is position:fixed, so it is never CLIPPED — but an 'auto' default leaves it in the normal paint tree at its tree position, where any later-in-DOM sibling paints over it (e.g. a non-modal dialog inside one FlexLayout tile disappears under the tiles below). 1001 clears app headers (999) and FlexLayout's drag chrome (1000) while staying under Flyout (2000/2001). Modal is unaffected: showModal() puts it in the top layer, above all of this. */ z-index: var(--dialog-z-index, 1001)}:host([position='left']) dialog{margin-left: 0}:host([position='right']) dialog{margin-right: 0}.top{display: flex;justify-content: space-between;align-items: center;gap: calc(var(--design-unit) * 2px)}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--notification-details-min-height);white-space: pre-line}.content-container{box-sizing: border-box}/* Non-resizable: keep the dialog inside the UA modal max-height clamp and scroll the default slot */ :host(:not([resizable])) dialog[open]{display: flex;flex-direction: column}:host(:not([resizable])) dialog .content-wrapper{display: flex;flex-direction: column;max-height: var(--dialog-max-height, 100%);min-height: var(--dialog-min-height, 0)}/* Slotted content keeps the flex-item layout it had as a direct child of .content-wrapper */ :host(:not([resizable])) .content-container{flex: 1 1 auto;display: flex;flex-direction: column;justify-content: inherit;align-items: inherit;gap: inherit;min-height: 0}:host(:not([resizable])) .content-container ::slotted(*){flex-shrink: 0}/* Scroll only when needed: a scroll container clips absolutely positioned popups (select listboxes) */ :host(:not([resizable])) .content-container.overflowing{overflow: auto}:host(:not([resizable])) .top, :host(:not([resizable])) .bottom{flex: 0 0 auto}:host([resizable]) dialog{position: relative;box-sizing: border-box;max-width: 100%;max-height: 100%}:host([resizable]) dialog[open]{display: flex;flex-direction: column}/* Override design system max-width constraints for resizable dialogs */ :host([resizable]) dialog .content-wrapper{position: relative;height: 100%;width: 100%;max-height: 100%;min-width: 100%;max-width: 100%;resize: none;box-sizing: border-box;display: flex;flex-direction: column;overflow: hidden}:host([resizable]) .content-container{flex: 1 1 auto;overflow: auto;min-height: 0;box-sizing: border-box}:host([resizable]) .top, :host([resizable]) .bottom{flex: 0 0 auto}:host([position='right']) dialog .content-wrapper, :host([position='left']) dialog .content-wrapper, :host([position='left']) dialog, :host([position='right']) dialog{height: 100%}/* Resize handles */ .resize-handle{position: absolute;z-index: 10}/* Edge handles */ .resize-handle-n, .resize-handle-s{left: 0;right: 0;height: 8px;cursor: ns-resize}.resize-handle-n{top: 0}.resize-handle-s{bottom: 0}.resize-handle-e, .resize-handle-w{top: 0;bottom: 0;width: 8px;cursor: ew-resize}.resize-handle-e{right: 0}.resize-handle-w{left: 0}/* Corner handles */ .resize-handle-ne, .resize-handle-nw, .resize-handle-se, .resize-handle-sw{width: 16px;height: 16px}.resize-handle-ne{top: 0;right: 0;cursor: nesw-resize}.resize-handle-nw{top: 0;left: 0;cursor: nwse-resize}.resize-handle-se{bottom: 0;right: 0;cursor: nwse-resize}.resize-handle-sw{bottom: 0;left: 0;cursor: nesw-resize}/* Visual indicator for corner handles */ .resize-handle-se::after, .resize-handle-sw::after, .resize-handle-ne::after, .resize-handle-nw::after{content: '';position: absolute;width: 8px;height: 8px;border-style: solid;border-color: var(--neutral-stroke-divider-rest);opacity: 50%;transition: opacity 0.2s;margin: 2px}.resize-handle-se::after{bottom: 2px;right: 2px;border-width: 0 3px 3px 0}.resize-handle-sw::after{bottom: 2px;left: 2px;border-width: 0 0 3px 3px}.resize-handle-ne::after{top: 2px;right: 2px;border-width: 3px 3px 0 0}.resize-handle-nw::after{top: 2px;left: 2px;border-width: 3px 0 0 3px}/* Hover effect */ .resize-handle:hover::after{opacity: 100%}/* Resizing state */ dialog.resizing{user-select: none;pointer-events: auto}/* Fixed positioning support for resizable dialogs */ dialog[style*='position: fixed']{margin: 0}`,iPe=T`<slot ${k(`contentSlot`)}>${A(e=>e.notification,T`<div class="details">${e=>e.notification?.body||`Place holder for notification message`}</div>`)}</slot>`,aPe=e=>T`<dialog ${k(`mainElement`)}part="dialog" type=${e=>e.type}><div class="content-wrapper" part="content"><div part="top" class="top" ${k(`topElement`)}><slot name="top" ${k(`topElementSlot`)}><h2 slot="top" class="title">${e=>e.notification?.title}</h2></slot><div class="header-controls">${A(e=>e.resizable,T`<${e}-button class="reset-size-icon" part="reset-size-icon" aria-label="reset size" appearance="stealth" @click=${e=>e.resetSize()}><${e}-icon name="${e=>e.resizeIconName}"></${e}-icon></${e}-button>`)} ${A(e=>e.showCloseIcon,T`<${e}-button class="close-icon" part="close-icon" aria-label="close" appearance="stealth" @click=${e=>e.close()}><${e}-icon name="times" size="lg"></${e}-icon></${e}-button>`)}</div></div><div class="content-container" part="content-container" ${k(`contentContainer`)}>${iPe}</div><div part="bottom" class="bottom"><slot name="bottom">${A(e=>e.notification,T`<${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>`)} ${j(e=>(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</slot></div></div>${A(e=>e.resizable,T`<div class="resize-handle resize-handle-n" data-direction="n"></div><div class="resize-handle resize-handle-s" data-direction="s"></div><div class="resize-handle resize-handle-e" data-direction="e"></div><div class="resize-handle resize-handle-w" data-direction="w"></div><div class="resize-handle resize-handle-ne" data-direction="ne"></div><div class="resize-handle resize-handle-nw" data-direction="nw"></div><div class="resize-handle resize-handle-se" data-direction="se"></div><div class="resize-handle resize-handle-sw" data-direction="sw"></div>`)}</dialog>`,F1=T` ${e=>aPe(gb(e))} `;var I1=window.CustomEvent;(!I1||typeof I1==`object`)&&(I1=function(e,t){t=t||{};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n},I1.prototype=window.Event.prototype);function L1(e,t){var n=`on`+t.type.toLowerCase();return typeof e[n]==`function`&&e[n](t),e.dispatchEvent(t)}function oPe(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return t[e]!==void 0&&t[e]!==n};if(t.opacity<1||n(`zIndex`,`auto`)||n(`transform`,`none`)||n(`mixBlendMode`,`normal`)||n(`filter`,`none`)||n(`perspective`,`none`)||t.isolation===`isolate`||t.position===`fixed`||t.webkitOverflowScrolling===`touch`)return!0;e=e.parentElement}return!1}function R1(e){for(;e;){if(e.localName===`dialog`)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function z1(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function sPe(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function B1(e){return!e||!e.hasAttribute(`method`)?!1:e.getAttribute(`method`).toLowerCase()===`dialog`}function V1(e){var t=[`button`,`input`,`keygen`,`select`,`textarea`].map(function(e){return e+`:not([disabled])`});t.push(`[tabindex]:not([disabled]):not([tabindex=""])`);var n=e.querySelector(t.join(`, `));if(!n&&`attachShadow`in Element.prototype)for(var r=e.querySelectorAll(`*`),i=0;i<r.length&&!(r[i].tagName&&r[i].shadowRoot&&(n=V1(r[i].shadowRoot),n));i++);return n}function H1(e){return e.isConnected||document.body.contains(e)}function U1(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var n=G1.formSubmitter;if(!n){var r=e.target;n=(`getRootNode`in r&&r.getRootNode()||document).activeElement}return!n||n.form!==t?null:n}function cPe(e){if(!e.defaultPrevented){var t=e.target,n=G1.imagemapUseValue,r=U1(e);n===null&&r&&(n=r.value);var i=R1(t);i&&(r&&r.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&(e.preventDefault(),n==null?i.close():i.close(n))}}function W1(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute(`role`)||e.setAttribute(`role`,`dialog`),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener(`submit`,cPe,!1),`returnValue`in e||(e.returnValue=``),`MutationObserver`in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:[`open`]});else{var t=!1,n=function(){t?this.downgradeModal():this.maybeHideModal(),t=!1}.bind(this),r,i=function(i){if(i.target===e){var a=`DOMNodeRemoved`;t|=i.type.substr(0,a.length)===a,window.clearTimeout(r),r=window.setTimeout(n,0)}};[`DOMAttrModified`,`DOMNodeRemoved`,`DOMNodeRemovedFromDocument`].forEach(function(t){e.addEventListener(t,i)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,`open`)}),this.backdrop_=document.createElement(`div`),this.backdrop_.className=`backdrop`,this.backdrop_.addEventListener(`mouseup`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`mousedown`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`click`,this.backdropMouseEvent_.bind(this))}W1.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute(`open`)&&H1(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex=``,this.replacedStyleTop_&&(this.dialog_.style.top=``,this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),G1.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute(`open`)||this.dialog_.setAttribute(`open`,``):(this.dialog_.removeAttribute(`open`),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute(`tabindex`))this.dialog_.focus();else{var t=document.createElement(`div`);this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent(`MouseEvents`);n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector(`[autofocus]:not([disabled])`);!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=V1(this.dialog_)),z1(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw Error(`dialogZ should never be < backdropZ`);this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.`);if(!H1(this.dialog_))throw Error(`Failed to execute 'showModal' on dialog: The element is not in a Document.`);if(!G1.dm.pushDialog(this))throw Error(`Failed to execute 'showModal' on dialog: There are too many open modal dialogs.`);oPe(this.dialog_.parentElement)&&console.warn(`A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context`),this.setOpen(!0),this.openAsModal_=!0,G1.needsCentering(this.dialog_)?(G1.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.`);this.setOpen(!1),e!==void 0&&(this.dialog_.returnValue=e);var t=new I1(`close`,{bubbles:!1,cancelable:!1});L1(this.dialog_,t)}};var G1={};if(G1.reposition=function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+`px`},G1.isInlinePositionSetByStylesheet=function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch{}if(r)for(var i=0;i<r.length;++i){var a=r[i],o=null;try{o=document.querySelectorAll(a.selectorText)}catch{}if(o&&sPe(o,e)){var s=a.style.getPropertyValue(`top`),c=a.style.getPropertyValue(`bottom`);if(s&&s!==`auto`||c&&c!==`auto`)return!0}}}return!1},G1.needsCentering=function(e){return window.getComputedStyle(e).position!==`absolute`||e.style.top!==`auto`&&e.style.top!==``||e.style.bottom!==`auto`&&e.style.bottom!==``?!1:!G1.isInlinePositionSetByStylesheet(e)},G1.forceRegisterDialog=function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn(`This browser already supports <dialog>, the polyfill may not work correctly`,e),e.localName!==`dialog`)throw Error(`Failed to register dialog: The element is not a dialog.`);new W1(e)},G1.registerDialog=function(e){e.showModal||G1.forceRegisterDialog(e)},G1.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement(`div`),this.overlay.className=`_dialog_overlay`,this.overlay.addEventListener(`click`,function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,`MutationObserver`in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t=0,r;r=e.removedNodes[t];++t){if(r instanceof Element)r.localName===`dialog`&&n.push(r);else continue;n=n.concat(r.querySelectorAll(`dialog`))}}),n.length&&e(n)}))},G1.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener(`focus`,this.handleFocus_,!0),document.addEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},G1.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener(`focus`,this.handleFocus_,!0),document.removeEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.disconnect()},G1.DialogManager.prototype.updateStacking=function(){for(var e=this.zIndexHigh_,t=0,n;n=this.pendingDialogStack[t];++t)n.updateZIndex(--e,--e),t===0&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},G1.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=R1(e);){for(var t=0,n;n=this.pendingDialogStack[t];++t)if(n.dialog===e)return t===0;e=e.parentElement}return!1},G1.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),z1(t),this.forwardTab_!==void 0)){var n=this.pendingDialogStack[0];return n.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?n.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},G1.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,e.keyCode===27){e.preventDefault(),e.stopPropagation();var t=new I1(`cancel`,{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&L1(n.dialog,t)&&n.dialog.close()}else e.keyCode===9&&(this.forwardTab_=!e.shiftKey)},G1.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){e.indexOf(t.dialog)===-1?t.maybeHideModal():t.downgradeModal()})},G1.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(e)===1&&this.blockDocument(),this.updateStacking(),!0)},G1.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},G1.dm=new G1.DialogManager,G1.formSubmitter=null,G1.imagemapUseValue=null,window.HTMLDialogElement===void 0){var K1=document.createElement(`form`);if(K1.setAttribute(`method`,`dialog`),K1.method!==`dialog`){var q1=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,`method`);if(q1){var lPe=q1.get;q1.get=function(){return B1(this)?`dialog`:lPe.call(this)};var uPe=q1.set;q1.set=function(e){return typeof e==`string`&&e.toLowerCase()===`dialog`?this.setAttribute(`method`,e):uPe.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",q1)}}document.addEventListener(`click`,function(e){if(G1.formSubmitter=null,G1.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if(`composedPath`in e&&(t=e.composedPath().shift()||t),t&&B1(t.form)){if(!(t.type===`submit`&&[`button`,`input`].indexOf(t.localName)>-1)){if(t.localName!==`input`||t.type!==`image`)return;G1.imagemapUseValue=e.offsetX+`,`+e.offsetY}R1(t)&&(G1.formSubmitter=t)}}},!1),document.addEventListener(`submit`,function(e){var t=e.target;if(!R1(t)){var n=U1(e);(n&&n.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&e.preventDefault()}});var dPe=HTMLFormElement.prototype.submit,fPe=function(){if(!B1(this))return dPe.call(this);var e=R1(this);e&&e.close()};HTMLFormElement.prototype.submit=fPe}let J1=e=>e.nodeType===e.ELEMENT_NODE,pPe=e=>{if(J1(e))return e.getBoundingClientRect().bottom;if(e.nodeType!==e.TEXT_NODE||!e.textContent?.trim())return-1/0;let t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect().bottom},Y1={mode:`open`,delegatesFocus:!0},X1={};var Z1=class extends P{constructor(){super(...arguments),this.type=`default`,this.position=`center`,this.showCloseIcon=!0,this.resizable=!1,this.draggable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth=``,this.originalHeight=``,this.originalPosition=``,this.originalLeft=``,this.originalTop=``,this.originalMargin=``,this.isMaximized=!1,this.hasBeenResized=!1,this.isDragging=!1,this.dragOffsetX=0,this.dragOffsetY=0,this.dragDialogWidth=0,this.dragDialogHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null,this.contentResizeObserver=null,this.contentTextObserver=null,this.contentOverflowFrame=null,this.onContentSlotChange=()=>{var e,t;(e=this.contentResizeObserver)==null||e.disconnect(),(t=this.contentTextObserver)==null||t.disconnect(),this.observeContentNodes()}}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}draggableChanged(e,t){t?this.attachDragMouseDown():(this.detachDragMouseDown(),this.removeDraggableEventListeners())}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||G1.registerDialog(this.mainElement),this.mainElement.addEventListener(`close`,()=>{this.resetDraggableStyle(),this.onCloseCallback&&this.onCloseCallback(),this.$emit(`close`)}),this.hasAttribute(`open`)&&this.shadowRoot.querySelector(`dialog`).setAttribute(`open`,``),this.setupResizeHandlers(),this.attachDragMouseDown(),this.observeContentOverflow()}disconnectedCallback(){super.disconnectedCallback(),this.unobserveContentOverflow(),this.removeResizeHandlers(),this.detachDragMouseDown(),this.removeDraggableEventListeners()}observeContentOverflow(){typeof ResizeObserver<`u`&&this.contentContainer&&this.contentSlot&&(this.contentResizeObserver=new ResizeObserver(()=>this.scheduleContentOverflowCheck()),typeof MutationObserver<`u`&&(this.contentTextObserver=new MutationObserver(()=>this.scheduleContentOverflowCheck())),this.observeContentNodes(),this.contentSlot.addEventListener(`slotchange`,this.onContentSlotChange))}unobserveContentOverflow(){var e,t,n;(e=this.contentSlot)==null||e.removeEventListener(`slotchange`,this.onContentSlotChange),(t=this.contentResizeObserver)==null||t.disconnect(),this.contentResizeObserver=null,(n=this.contentTextObserver)==null||n.disconnect(),this.contentTextObserver=null,this.contentOverflowFrame!==null&&cancelAnimationFrame(this.contentOverflowFrame),this.contentOverflowFrame=null}observeContentNodes(){this.contentResizeObserver.observe(this.contentContainer),this.contentSlot.assignedNodes({flatten:!0}).forEach(e=>{var t;J1(e)?this.contentResizeObserver.observe(e):e.nodeType===e.TEXT_NODE&&((t=this.contentTextObserver)==null||t.observe(e,{characterData:!0}))})}scheduleContentOverflowCheck(){this.resizable||this.contentOverflowFrame!==null||(this.contentOverflowFrame=requestAnimationFrame(()=>{this.contentOverflowFrame=null,this.contentContainer.classList.toggle(`overflowing`,this.isContentOverflowing())}))}isContentOverflowing(){let e=this.contentContainer,t=e.getBoundingClientRect().top-e.scrollTop;return Math.max(t,...this.contentSlot.assignedNodes({flatten:!0}).map(pPe))-t>e.clientHeight+1}setupResizeHandlers(){if(!this.resizable)return;let e=window.innerWidth,t=window.innerHeight,n=this.minWidth,r=this.minHeight;this.initialWidth!==void 0&&(n=Math.max(this.minWidth,Math.min(this.initialWidth,e))),this.initialHeight!==void 0&&(r=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${n}px`,this.originalHeight=this.mainElement.style.height||`${r}px`,this.originalPosition=this.mainElement.style.position||``,this.originalLeft=this.mainElement.style.left||``,this.originalTop=this.mainElement.style.top||``,this.originalMargin=this.mainElement.style.margin||``,this.mainElement.style.height=`${r}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${n}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height,this.shadowRoot.querySelectorAll(`.resize-handle`).forEach(e=>{e.addEventListener(`mousedown`,this.handleResizeStart.bind(this)),e.addEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),(this.shadowRoot?.querySelectorAll(`.resize-handle`))?.forEach(e=>{e.removeEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();let t=e.target.dataset.direction;if(![`n`,`s`,`e`,`w`].includes(t))return;let n=this.mainElement.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight;switch(this.mainElement.style.position=`fixed`,this.mainElement.style.margin=`0`,t){case`n`:this.mainElement.style.height=`${n.bottom}px`,this.mainElement.style.top=`0px`;break;case`s`:this.mainElement.style.height=`${i-n.top}px`;break;case`e`:this.mainElement.style.width=`${r-n.left}px`;break;case`w`:this.mainElement.style.width=`${n.right}px`,this.mainElement.style.left=`0px`}this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;let t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;let n=this.mainElement.getBoundingClientRect();switch(this.startWidth=n.width,this.startHeight=n.height,this.startLeft=n.left,this.startTop=n.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case`n`:this.resizeOffsetY=e.clientY-n.top;break;case`s`:this.resizeOffsetY=e.clientY-n.bottom;break;case`e`:this.resizeOffsetX=e.clientX-n.right;break;case`w`:this.resizeOffsetX=e.clientX-n.left;break;case`ne`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.top;break;case`nw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.top;break;case`se`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.bottom;break;case`sw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.bottom}this.mainElement.style.position=`fixed`,this.mainElement.style.left=`${n.left}px`,this.mainElement.style.top=`${n.top}px`,this.mainElement.style.margin=`0`,document.addEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.addEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.add(`resizing`)}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();let t=e.clientX-this.startX-this.resizeOffsetX,n=e.clientY-this.startY-this.resizeOffsetY,r=this.startWidth,i=this.startHeight,a=this.startLeft,o=this.startTop,s=!1;switch(this.currentResizeHandle){case`se`:r=this.startWidth+t,i=this.startHeight+n;break;case`sw`:r=this.startWidth-t,i=this.startHeight+n,a=this.startLeft+t,s=!0;break;case`ne`:r=this.startWidth+t,i=this.startHeight-n,o=this.startTop+n,s=!0;break;case`nw`:r=this.startWidth-t,i=this.startHeight-n,a=this.startLeft+t,o=this.startTop+n,s=!0;break;case`e`:r=this.startWidth+t;break;case`w`:r=this.startWidth-t,a=this.startLeft+t,s=!0;break;case`s`:i=this.startHeight+n;break;case`n`:i=this.startHeight-n,o=this.startTop+n,s=!0}let c=window.innerWidth,l=window.innerHeight;if(this.resizable){if(r<this.minWidth){let e=this.minWidth-r;r=this.minWidth,this.currentResizeHandle.includes(`w`)&&(a-=e)}if(i<this.minHeight){let e=this.minHeight-i;i=this.minHeight,this.currentResizeHandle.includes(`n`)&&(o-=e)}if(this.currentResizeHandle.includes(`e`)){let e=c-this.startLeft;r>e&&(r=e)}if(this.currentResizeHandle.includes(`s`)){let e=l-this.startTop;i>e&&(i=e)}if(this.currentResizeHandle.includes(`w`)){a<0&&(r+=a,a=0);let e=c-a;r>e&&(r=e)}if(this.currentResizeHandle.includes(`n`)){o<0&&(i+=o,o=0);let e=l-o;i>e&&(i=e)}}this.mainElement.style.width=`${r}px`,this.mainElement.style.height=`${i}px`,s&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${o}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.remove(`resizing`);let t=this.mainElement.style.width,n=this.mainElement.style.height;(t!==this.originalWidth||n!==this.originalHeight)&&(this.hasBeenResized=!0),this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute(`open`)}get resizeIconName(){return this.hasBeenResized||this.isMaximized?`compress`:`expand`}close(){this.mainElement.close()}dismiss(){this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){fb.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position=`fixed`,this.mainElement.style.left=`0px`,this.mainElement.style.top=`0px`,this.mainElement.style.margin=`0`,this.mainElement.style.width=`100vw`,this.mainElement.style.height=`100vh`,this.isMaximized=!0,this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){if(this.resizable&&this.mainElement){if(!this.hasBeenResized&&!this.isMaximized){this.maximize();return}this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}}attachDragMouseDown(){this.draggable&&this.mainElement&&(this.onMouseDownBound||(this.onMouseDownBound=this.onMouseDown.bind(this)),this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.mainElement.addEventListener(`mousedown`,this.onMouseDownBound))}detachDragMouseDown(){this.onMouseDownBound&&this.mainElement&&(this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){return this.topElement?.contains(e.target)||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){return this.topElementSlot?this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e)):!1}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;let t=this.mainElement.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.dragDialogWidth=t.width,this.dragDialogHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener(`mousemove`,this.onMouseMoveBound),document.addEventListener(`mouseup`,this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;let t=window.innerWidth,n=window.innerHeight,r=e.clientX-this.dragOffsetX,i=e.clientY-this.dragOffsetY;r=Math.max(0,Math.min(t-this.dragDialogWidth,r)),i=Math.max(0,Math.min(n-this.dragDialogHeight,i)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:`absolute`,left:`${r}px`,top:`${i}px`,margin:`0`})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener(`mousemove`,this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener(`mouseup`,this.onMouseUpBound),this.onMouseUpBound=null)}resetDraggableStyle(){this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:``,left:``,top:``,margin:``})}};q([C],Z1.prototype,`notification`,void 0),q([D({attribute:`type`})],Z1.prototype,`type`,void 0),q([D],Z1.prototype,`position`,void 0),q([D({mode:`boolean`,attribute:`show-close-icon`})],Z1.prototype,`showCloseIcon`,void 0),q([D({mode:`boolean`,attribute:`resizable`})],Z1.prototype,`resizable`,void 0),q([D({mode:`boolean`})],Z1.prototype,`draggable`,void 0),q([D({attribute:`min-width`})],Z1.prototype,`minWidth`,void 0),q([D({attribute:`min-height`})],Z1.prototype,`minHeight`,void 0),q([D({attribute:`initial-width`})],Z1.prototype,`initialWidth`,void 0),q([D({attribute:`initial-height`})],Z1.prototype,`initialHeight`,void 0),q([C],Z1.prototype,`onShowCallback`,void 0),q([C],Z1.prototype,`onCloseCallback`,void 0),q([C],Z1.prototype,`isMaximized`,void 0),q([C],Z1.prototype,`hasBeenResized`,void 0),q([w],Z1.prototype,`open`,null),q([w],Z1.prototype,`resizeIconName`,null);var Q1=class extends Z1{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}};Q1.compose(Object.assign({baseName:`dialog`,styles:P1,template:F1,shadowOptions:Y1},X1));let $1=(e,t)=>Ri(e,t),e0=(e,t)=>O` ${au(e,t)}`;var t0=class extends zi{};let n0={};t0.compose(Object.assign({baseName:`disclosure`,template:$1,styles:e0,shadowOptions:void 0},n0));let r0=(e,t)=>Bi(e,t),i0=(e,t)=>O` ${su(e,t)}`;var a0=class extends Vi{};let o0={};a0.compose(Object.assign({baseName:`divider`,template:r0,styles:i0,shadowOptions:void 0},o0));let s0=(e,t,n)=>O` :host{--dropdown-opener-height-multiplier: 0.7px;--menu-item-height-multiplier: 0.7px}.actions-menu{display: inline-flex;flex-direction: column;max-height: calc( var(--max-height) - ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px) );position: absolute;z-index: 1;gap: calc(var(--design-unit) * 1px)}.hidden{display: none}.actions-opener{display: flex;justify-content: center;height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--dropdown-opener-height-multiplier) );max-width: 120px}${e}-menu-item{display: flex;user-select: none}${e}-menu-item::part(content){margin-inline: 5px}${e}-menu-item::part(expand-collapse-glyph-container){margin-inline-end: 5px}${e}-menu-item::part(expand-collapse){margin-inline-start: 5px}${e}-menu-item[disabled]{pointer-events: none}${e}-icon{padding-left: 5px}.menu-item{max-height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--menu-item-height-multiplier) )}`,mPe=(e,t)=>O` ${s0(`foundation`,e,t)}`,c0=(e,t)=>T` ${j(()=>e,T` ${A(e=>e.isDisabled&&e.isDisabled(),T`<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>`)} ${A(e=>!e.isDisabled||!e.isDisabled(),T`<${t}-menu-item class="menu-item" @click=${e=>e.submenu?``:e.callback()}style="${e=>e.color?`color: ${e.color};`:``}">${A(e=>e.icon,T`<${t}-icon name=${e=>e.icon.name}size=${e=>e.icon.size}variant=${e=>e.icon.variant}slot="start"></${t}-icon>`)} ${e=>e.name} ${A(e=>e.submenu,T`<${t}-menu>${e=>c0(e.submenu,t)}</${t}-menu>`)}</${t}-menu-item>`)} `)} `,hPe=e=>T`<div class="actions-container" part="actions-container"><${e}-button id="actiosnMenuTrigger" class="actions-opener" appearance="${e=>e.buttonAppearance}" part="actions-opener" @click=${e=>e.toggleDropdownMenuVisibility()}:disabled=${e=>e.disabled}><slot>${e=>e.name}</slot></${e}-button><${e}-menu ${k(`dropdownMenu`)}class="actions-menu ${e=>e.classNames}" part="actions-menu">${t=>c0(t.allItems,e)}</${e}-menu></div>`,l0=T` ${e=>hPe(gb(e))} `;var u0=class extends P{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name=`Dropdown Menu`,this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener(`onMenuClick`,this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`mousedown`,this.clickOutside)}handleClickOutside(e){mb(e,this)&&(this.open=!1)}openChanged(){this.classNames=pn([`hidden`,!this.open]),this.open?document.addEventListener(`mousedown`,this.clickOutside):document.removeEventListener(`mousedown`,this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}};q([C],u0.prototype,`items`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],u0.prototype,`autoClose`,void 0),q([D({attribute:`disable-button`,mode:`boolean`})],u0.prototype,`disabled`,void 0),q([C],u0.prototype,`classNames`,void 0),q([D],u0.prototype,`name`,void 0),q([D({attribute:`open`,mode:`boolean`})],u0.prototype,`open`,void 0),q([D],u0.prototype,`buttonAppearance`,void 0),u0.compose({baseName:`dropdown-menu`,styles:mPe,template:l0});let d0=O` .environment-indicator{font-size: 12px;display: inline-flex;align-items: center;gap: calc(var(--design-unit) * 1.4px);border-radius: calc(var(--design-unit) * 1px);height: calc(var(--design-unit) * 6px);padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);line-height: 1;font-weight: 600;text-transform: uppercase}.environment-indicator.lg{border-radius: calc(var(--design-unit) * 4px);padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 3.5px);font-size: calc(var(--design-unit) * 4px)}.environment-indicator .icon{font-size: calc(var(--design-unit) * 3px)}.environment-indicator.lg .icon{font-size: calc(var(--design-unit) * 3.5px)}`,gPe=e=>T` ${A(e=>e.config,T`<div data-test-id="environment-indicator" part="environment-indicator" class="environment-indicator ${({config:e})=>e.size}" style="${({config:e})=>`color: ${e.textColor}; background: ${e.backgroundColor}`}" aria-label="Environment indicator:${({config:e})=>e.label}" title="Environment:${({config:e})=>e.label}">${A(({config:e})=>e.showIcon&&e.icon,T`<${e}-icon name="${({config:e})=>e.icon}" size="${({config:e})=>e.iconSize}" aria-hidden="true" class="icon"></${e}-icon>`)}<span data-test-id="environment-indicator-text" aria-label="Environment label">${({config:e})=>e.label}</span></div>`)} `,f0=T` ${e=>gPe(gb(e))} `,p0=`default`,m0={level:p0,showIcon:!1,iconSize:`sm`,backgroundColor:`#2222ff`,textColor:`#ffffff`,label:`DEFAULT`},_Pe=[m0,{level:`dev`,showIcon:!1,icon:`code`,backgroundColor:`#ff6b35`,label:`DEV`},{level:`prod`,showIcon:!1,icon:`check-circle`,backgroundColor:`#28a745`,label:`PROD`}],h0=Fd(),vPe=N.createInterface(e=>e.instance(h0),e=>e.instance(h0)),yPe=N.createInterface(`EnvironmentIndicatorConfig`);function bPe(){try{let e=N.getOrCreateDOMContainer().get(yPe);if(e)return e}catch{return}}let g0=Ad(`EnvironmentIndicator`);var _0=class extends P{constructor(){super(...arguments),this.size=`sm`,this.textColor=`#ffffff`,this.icon=`check-circle`,this.iconSize=`sm`,this.useDefaultConfig=!1,this.config=m0,this.envConfigs=_Pe}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){let e=N.getOrCreateDOMContainer().get(vPe);e&&typeof e.subscribe==`function`?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):g0.error(`Observer not found or invalid in DI container`)}connectedCallback(){super.connectedCallback(),this.diConfig=bPe(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){let e={};return[`label`,`size`,`showIcon`,`icon`,`iconSize`,`backgroundColor`,`textColor`].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{let{currentLevel:e}=this.diConfig;if(e)return e}catch(e){g0.error(e)}if(Ef!=="default")return Ef;if(this.useDefaultConfig)return p0}getEnvConfigByLevel(){let e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?m0:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},m0),{level:t}),e);if(this.diConfig){let{configs:n}=this.diConfig;if(n&&n.length>0){let r=n.find(({level:e})=>e===t);if(r)return Object.assign(Object.assign({},r),e)}}let n=this.envConfigs.find(({level:e})=>e===t);if(n)return Object.assign(Object.assign({},n),e)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),[`level`,`label`,`show-icon`,`icon-size`,`size`,`background-color`,`text-color`,`icon`].includes(e)&&t!==n&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}};q([D],_0.prototype,`level`,void 0),q([D],_0.prototype,`label`,void 0),q([D({mode:`boolean`,attribute:`show-icon`})],_0.prototype,`showIcon`,void 0),q([D],_0.prototype,`size`,void 0),q([D({attribute:`background-color`})],_0.prototype,`backgroundColor`,void 0),q([D({attribute:`text-color`})],_0.prototype,`textColor`,void 0),q([D],_0.prototype,`icon`,void 0),q([D({attribute:`icon-size`})],_0.prototype,`iconSize`,void 0),q([D({mode:`boolean`,attribute:`use-default-config`})],_0.prototype,`useDefaultConfig`,void 0),q([C],_0.prototype,`config`,void 0),q([C],_0.prototype,`envConfigs`,void 0),q([C],_0.prototype,`diConfig`,void 0),_0.compose({baseName:`environment-indicator`,template:f0,styles:d0});let xPe=e=>T`<${e}-banner ${k(`banner`)}><div slot="content"><div>${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div></div><${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>${e=>e.error?.config?.banner?.dismissingAction?.label||e.notification?.config?.banner?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.banner.confirmingActions||(e.notification?.config)?.banner.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</${e}-banner>`,SPe=T` ${e=>xPe(gb(e))} `,CPe={mode:`open`,delegatesFocus:!0};var v0=class extends P{connectedCallback(){super.connectedCallback(),fb.deprecated(`ErrorBanner`,"Use `${prefix}-banner` instead.")}dismiss(){return J(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){fb.error(e)}})}};q([C],v0.prototype,`error`,void 0),q([C],v0.prototype,`notification`,void 0),v0.compose({baseName:`error-banner`,template:SPe,shadowOptions:CPe});let wPe=T`<template ${k(`errorBoundary`)}><slot></slot></template>`;var y0;(function(e){e.ERROR_BOUNDARY_EVENT=`error-boundary-event`})(y0||(y0={}));var TPe=class{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw Error(`Title is required`);if(!this.errorDetails)throw Error(`Missing required param 'errorDetails'`);let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel!=null&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}};let EPe=()=>new TPe;var DPe=class{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}};let OPe=()=>new DPe,b0=e=>`${e?.title??`Error`}: ${e?.errorDetails??`Something went wrong`}`,kPe=e=>e?.logLevel||e?.config?.logLevel||vd.error,x0=(e,t)=>{let n=t.split(`-`)[0],r=document.querySelector(`#${e}`);if(!r){r=document.createElement(`div`),r.setAttribute(`id`,e);let t=document.createElement(`${n}-design-system-provider`);t.appendChild(r),document.body.appendChild(t)}return r},APe=e=>{for(;e&&!(e instanceof ShadowRoot);){let t=(e?.getRootNode())?.getElementById(`error-banner-anchor`);if(t)return t.style.position=`relative`,t;e=e?.getRootNode()?.host}return jPe()},jPe=()=>{let e=document.createElement(`div`);return e.setAttribute(`id`,`error-banner-anchor`),e.style.position=`relative`,document.body.insertBefore(e,document.body.firstChild),e},MPe=(e,t)=>{var n,r;let i=t.split(`-`)[0],a=x0(`notify-container`,t);if(a)switch(a.style.position=`fixed`,e?.config?.notification?.position){case`top-left`:a.style.top=`0`,a.style.left=`0`;break;case`bottom-left`:a.style.bottom=`0`,a.style.left=`0`;break;case`bottom-right`:a.style.bottom=`0`,a.style.right=`0`;break;default:a.style.top=`0`,a.style.right=`0`}let o=document.createElement(`${i}-toast`),s=document.createElement(`div`);s.setAttribute(`slot`,`top`),s.textContent=e.title??`Error`;let c=document.createElement(`div`);c.setAttribute(`slot`,`content`),c.textContent=e?.errorDetails||``;let l=document.createElement(`div`);l.setAttribute(`slot`,`date`),l.textContent=(/* @__PURE__ */ new Date()).toLocaleTimeString(),o.setAttribute(`notify`,e?.config?.notification?.type||``),(n=e?.config?.notification)!=null&&n.autoClose&&o.setAttribute(`auto-close`,`${e?.config?.notification?.autoClose}`),(r=e?.config?.notification)!=null&&r.closeTimeout&&o.setAttribute(`close-timeout`,`${e?.config?.notification?.closeTimeout}`),o.appendChild(s),o.appendChild(c),o.appendChild(l),a.appendChild(o)},NPe=(e,t,n)=>{let r=t.split(`-`)[0],i=document.createElement(`${r}-error-banner`),a=APe(n);a?.children?.length>0&&(i.style.position=`absolute`,i.style.top=`0`,i.style.left=`0`,i.style.width=`100%`),a.appendChild(i),i.error=e},PPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-error-dialog`);x0(`dialog-container`,t).appendChild(r),r.error=e,r.show()},FPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-snackbar`);x0(`snack-container`,t).appendChild(r),r.error=e},IPe=Ad(`foundation-error`),S0={alert:e=>{alert(b0(e))},notification:MPe,dialog:PPe,snackbar:FPe,banner:NPe},C0=(e,t,n)=>{IPe.log({message:b0(e),level:kPe(e)}),Object.keys(e?.config||{}).forEach(r=>{S0[r]&&S0[r](e,t,n)})},LPe={mode:`open`,delegatesFocus:!0};var w0=class extends P{constructor(){super(...arguments),this.logger=Ad(`error-boundary`),this.closeTimeout=0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){if(e.connectedCallback.call(this),this.addEventListener(y0.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),C0(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0))){fb.debug(`Genesis Datasource init failed for ${this.resourceName}`);return}this.dataSub=this.datasource.stream?.subscribe(e=>{if(!e.ROW)return;let t=e?.ROW[0];if(e.SEQUENCE_ID>1){let e=t.HEADER,n=t?.BODY,r=t.NOTIFY_SEVERITY;C0(EPe().withTitle(e).withErrorDetails(n).withNotification(OPe().withType(r).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})}})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.datasource)==null||t.destroy(),delete this.datasource}};q([C],w0.prototype,`errorBoundary`,void 0),q([D({attribute:`resource-name`})],w0.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],w0.prototype,`closeTimeout`,void 0),q([Hy],w0.prototype,`datasource`,void 0);let T0=w0.compose({baseName:`error-boundary`,template:wPe,shadowOptions:LPe}),RPe=e=>T`<${e}-dialog show-close-icon="false" ${k(`dialog`)}><h2 slot="top" class="title">${e=>e.error?.title}</h2><div class="details">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div><${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.error?.config?.dialog?.dismissingAction?.label||e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.dialog.confirmingActions||(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button slot="bottom" appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</${e}-dialog>`,zPe=T` ${e=>RPe(gb(e))} `,BPe=O` :host{--design-unit: 3;--dialog-max-width: 358px;--dialog-min-width: 358px;--dialog-max-height: 128px;--error-details-min-height: 40px}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--error-details-min-height)}`,VPe={mode:`open`,delegatesFocus:!0};var E0=class extends P{connectedCallback(){super.connectedCallback(),fb.deprecated(`ErrorDialog`,"Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){this.error?.config?.dialog?.dismissingAction?.action&&this.error.config.dialog.dismissingAction.action(),this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){fb.error(e)}}};q([C],E0.prototype,`error`,void 0),q([C],E0.prototype,`notification`,void 0),E0.compose({baseName:`error-dialog`,template:zPe,styles:BPe,shadowOptions:VPe});function D0(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){let e=this.ariaDescribedby?.trim(),t=[];if(e&&t.push(...e.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){let e=this.id||`control`;this.prefix&&t.push(`${e}-prefix`),this.suffix&&t.push(`${e}-suffix`)}let n=/* @__PURE__ */ new Set,r=[];for(let e of t)n.has(e)||(n.add(e),r.push(e));return r.join(` `)||void 0}}return q([D],t.prototype,`prefix`,void 0),q([D],t.prototype,`suffix`,void 0),q([D({attribute:`hide-affix-from-screen-reader`,mode:`boolean`})],t.prototype,`hideAffixFromScreenReader`,void 0),t}let O0=`--alert-flash-t`,k0=`alert-flash-clock`,A0=!1;function HPe(){if(!(A0||typeof document>`u`)){A0=!0;try{CSS.registerProperty({name:O0,syntax:`<number>`,inherits:!0,initialValue:`0`});let e=new CSSStyleSheet;e.replaceSync(`
|
|
868
868
|
@keyframes ${k0} {
|
|
869
869
|
0%, 100% { ${O0}: 0; }
|
|
870
870
|
50% { ${O0}: 1; }
|
|
@@ -880,15 +880,15 @@ let HI={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
|
|
|
880
880
|
animation: none;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
`),document.adoptedStyleSheets=[...document.adoptedStyleSheets??[],e]}catch{}}}var j0=class extends P{constructor(){super(...arguments),this.selectedFile=null,this.accept=``,this.fileSizeLimitBytes=10485760,this.fileName=``,this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){let t=e?.target,n=Array.from(t?.files??[]),r=n.find(e=>e.size>this.fileSizeLimitBytes);if(r){let e=`File "${r.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;this.showError(`File Size Error`,e),this.$emit(`error`,Error(e));return}this.onFileSelected(n)}clearSelection(){this.fileName=``,this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=``),this.onFileCleared(),this.$emit(`clear`)}getSelectedFile(){return this.selectedFile}showError(e,t){CC({title:e,body:t,config:{toast:{type:`warning`,autoClose:!0,closeTimeout:5e3}}},this.tagName)}};q([D],j0.prototype,`label`,void 0),q([D],j0.prototype,`accept`,void 0),q([D({attribute:`file-size-limit-bytes`})],j0.prototype,`fileSizeLimitBytes`,void 0),q([C],j0.prototype,`fileName`,void 0),q([C],j0.prototype,`isProcessing`,void 0);let M0=O` .label-hidden{margin: 0}.control-field{display: flex;flex: 1 1 0%;min-width: 0;align-self: stretch;align-items: stretch}.control-field .control{flex: 1 1 auto;min-width: 0;width: auto}.prefix, .suffix{display: flex;align-items: center;flex-shrink: 0;box-sizing: border-box;padding: 0 calc(var(--design-unit) * 2px);user-select: none;white-space: nowrap;background-color: var(--neutral-fill-rest);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-base-font-size);font-family: inherit;line-height: 1}.prefix{border-right: 1px solid var(--neutral-stroke-divider-rest);border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}.suffix{border-left: 1px solid var(--neutral-stroke-divider-rest);border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-prefix:not(.has-suffix)) .control-field .control{border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-suffix:not(.has-prefix)) .control-field .control{border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}:host(.has-prefix.has-suffix) .control-field .control{border-radius: 0}`,
|
|
883
|
+
`),document.adoptedStyleSheets=[...document.adoptedStyleSheets??[],e]}catch{}}}var j0=class extends P{constructor(){super(...arguments),this.selectedFile=null,this.accept=``,this.fileSizeLimitBytes=10485760,this.fileName=``,this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){let t=e?.target,n=Array.from(t?.files??[]),r=n.find(e=>e.size>this.fileSizeLimitBytes);if(r){let e=`File "${r.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;this.showError(`File Size Error`,e),this.$emit(`error`,Error(e));return}this.onFileSelected(n)}clearSelection(){this.fileName=``,this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=``),this.onFileCleared(),this.$emit(`clear`)}getSelectedFile(){return this.selectedFile}showError(e,t){CC({title:e,body:t,config:{toast:{type:`warning`,autoClose:!0,closeTimeout:5e3}}},this.tagName)}};q([D],j0.prototype,`label`,void 0),q([D],j0.prototype,`accept`,void 0),q([D({attribute:`file-size-limit-bytes`})],j0.prototype,`fileSizeLimitBytes`,void 0),q([C],j0.prototype,`fileName`,void 0),q([C],j0.prototype,`isProcessing`,void 0);let M0=O` .label-hidden{margin: 0}.control-field{display: flex;flex: 1 1 0%;min-width: 0;align-self: stretch;align-items: stretch}.control-field .control{flex: 1 1 auto;min-width: 0;width: auto}.prefix, .suffix{display: flex;align-items: center;flex-shrink: 0;box-sizing: border-box;padding: 0 calc(var(--design-unit) * 2px);user-select: none;white-space: nowrap;background-color: var(--neutral-fill-rest);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-base-font-size);font-family: inherit;line-height: 1}.prefix{border-right: 1px solid var(--neutral-stroke-divider-rest);border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}.suffix{border-left: 1px solid var(--neutral-stroke-divider-rest);border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-prefix:not(.has-suffix)) .control-field .control{border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-suffix:not(.has-prefix)) .control-field .control{border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}:host(.has-prefix.has-suffix) .control-field .control{border-radius: 0}`,UPe=(e=`start`,t=`#879ba6`)=>`
|
|
884
884
|
<svg class="svg-icon" slot="${e}" width="16px" height="16px">
|
|
885
885
|
<g transform="matrix(1 0 0 1 -1865 -3576 )">
|
|
886
886
|
<path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />
|
|
887
887
|
</g>
|
|
888
888
|
</svg>
|
|
889
|
-
`,
|
|
890
|
-
Browse </${e}-button>${A(e=>e.fileName&&!e.autoProcess,T`<${e}-button @click=${e=>e.handleFileProcessing()}part="process-file-button" :disabled="${e=>!e.fileName}">Process file</${e}-button>`)}</div></template>`,P0=T` ${e=>
|
|
891
|
-
DOWNLOAD </${e}-button></div></template>`}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split(`_`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `),type:e.TYPE,cellTemplate:ZPe}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){let t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0){for(let e of t)if(!(this.accept.split(`,`).includes(`.msg`)&&e.name&&e.name.endsWith(`msg`))&&!this.acceptedFormats.includes(e.type)){this.showError(`File Type Error`,`Not a valid file type. Accepted Formats are ${this.accept}`);return}}this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join(),this.$emit(`file-selected`,{files:this.selectedFiles})}onFileCleared(){this.fileName=``,this.selectedFiles=[]}handleFileUpload(){return J(this,void 0,void 0,function*(){try{let e=GPe(this.selectedFiles);e.append(this.uploadKey,this.entityId);let t=yield KPe(this.uploadEventName,e,this.session.getItem(`authToken`,`session`),this.http);if(t.ERROR){Y.error(t.ERROR),this.$emit(`errorOut`,t.ERROR);return}Y.info(t),this.$emit(`success`,t),this.clearSelection()}catch(e){this.$emit(`errorOut`,e),Y.error(e)}})}handleFileDownload(e){let t=this.tagName.toLowerCase().split(`-`)[0];qPe(this.downloadEventName(e),e.FILE_NAME,this.session.getItem(`authToken`,`session`),`GET`,!0,void 0,t)}};q([C],R0.prototype,`gridCriteria`,void 0),q([Yv],R0.prototype,`connect`,void 0),q([Dg],R0.prototype,`http`,void 0),q([Cg],R0.prototype,`session`,void 0),q([D({attribute:`uploaded-files-resource-name`})],R0.prototype,`uploadedFilesResourceName`,void 0),q([D({attribute:`upload-event-name`})],R0.prototype,`uploadEventName`,void 0),q([D({attribute:`field-name`})],R0.prototype,`fieldName`,void 0),q([D({attribute:`entity-id`})],R0.prototype,`entityId`,void 0),q([D({attribute:`upload-key`})],R0.prototype,`uploadKey`,void 0),q([D({attribute:`grid-fields`})],R0.prototype,`gridFields`,void 0),q([C],R0.prototype,`fileName`,void 0),q([C],R0.prototype,`uploadedFilesList`,void 0),q([C],R0.prototype,`filesGridColumnDefinitions`,void 0);let z0={};R0.compose(Object.assign({baseName:`file-upload`,styles:I0,template:WPe,shadowOptions:void 0},z0));let B0=O` .filter-wrapper{border: 1px solid gray;border-radius: calc(var(--design-unit) * 2px);padding: calc(var(--design-unit) * 1px)}.close-icon{display: flex;place-content: center;align-items: center;flex-direction: column;margin: calc(var(--design-unit) * 1px);padding: calc(var(--design-unit) * 1px);border: 1px solid transparent;border-radius: calc(var(--design-unit) * 2px);cursor: pointer}.close-icon, .cloase-icon svg path{transition-property: all;transition-timing-function: linear;transition-duration: 300ms}.close-icon:hover{border-color: red;background: rgb(255 0 0 / 25%)}.close-icon:hover svg path{fill: red}.flex-row{display: flex;flex-direction: row;place-content: center space-between;align-items: center}.flex-row foundation-text-field, .flex-row foundation-select{flex: 1}`,V0=T`<div class="close-icon" @click=${e=>e.clear()}>${VPe()}</div>`,QPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-text-field ${k(`textFilterField`)}type="text" :value=${lf(e=>e.textFilter)}/></div>`,$Pe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-text-field ${k(`numFilterFieldMin`)}type="number" :value=${lf(e=>e.numFilterMin)}placeholder="min"></${e}-text-field><${e}-text-field ${k(`numFilterFieldMax`)}type="number" :value=${lf(e=>e.numFilterMax)}placeholder="max"></${e}-text-field></div>`,eFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-text-field ${k(`dateFilterFieldMin`)}type="date" :value=${lf(e=>e.dateFilterMin)}></${e}-text-field><${e}-text-field ${k(`dateFilterFieldMax`)}type="date" :value=${lf(e=>e.dateFilterMax)}></${e}-text-field></div>`;function H0(e){return e?.event?.target?.value??`all`}let tFe=[{name:`All`,value:`all`,selected:!0},{name:`True`,value:`true`},{name:`False`,value:`false`},{name:`N/A`,value:`null`}],nFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(H0(t))}}">${j(()=>tFe,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,rFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onEnumFilterSelection(H0(t))}}">${j(e=>e.enumFilterOptions,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,iFe=(e,t)=>{switch(e.type){case`number`:return $Pe(t);case`date`:return eFe(t);case`boolean`:return nFe(t);case`enum`:return rFe(t);default:return QPe(t)}},U0=e=>T`<div class="filter-wrapper">${t=>iFe(t,e)}</div>`,aFe=T` ${e=>U0(gb(e))}</div>`;var W0;(function(e){e.change=`filter-changed`,e.clear=`filter-cleared`})(W0||(W0={}));var G0=class extends P{constructor(){super(...arguments),this.type=`text`,this.textFilter=``,this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0}]}textFilterChanged(e,t){if(!t?.length){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}let n=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(W0.change,{fieldName:this.fieldName,filter:n,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}let n=`${this.fieldName} >= ${e}`,r=`${this.fieldName} <= ${t}`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(W0.change,{fieldName:this.fieldName,filter:i,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,``).replace(`T`,`-`)}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(W0.clear,{fieldName:this.fieldName});return}let n=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,r=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(W0.change,{fieldName:this.fieldName,filter:i,target:this.target})}connectedCallback(){if(super.connectedCallback(),this.enumOptions?.length){let e=this.enumOptions.includes(`|`)?`|`:`,`,t=this.enumOptions.split(e).map(e=>({name:e,value:e}));this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0},...t]}}clear(){switch(this.type){case`number`:this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case`date`:this.dateFilterFieldMin.value=``,this.dateFilterFieldMax.value=``,this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case`text`:this.textFilterField.value=``}this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){if(!e||e===`all`){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(W0.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target})}onEnumFilterSelection(e){if(!e||e===`all`){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(W0.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target})}};q([D],G0.prototype,`fieldName`,void 0),q([D],G0.prototype,`type`,void 0),q([D],G0.prototype,`label`,void 0),q([D],G0.prototype,`target`,void 0),q([C],G0.prototype,`textFilter`,void 0),q([C],G0.prototype,`numFilterMin`,void 0),q([C],G0.prototype,`numFilterMax`,void 0),q([C],G0.prototype,`dateFilterMin`,void 0),q([C],G0.prototype,`dateFilterMax`,void 0),q([D],G0.prototype,`enumOptions`,void 0),q([C],G0.prototype,`enumFilterOptions`,void 0),G0.compose({baseName:`filter`,template:aFe,styles:B0});let K0=(e,t)=>O` .filter-bar{background-color: #2c2f33;padding: calc(var(--design-unit) * 2px);transition: all 0.5s ease-out}.filter-grid{display: grid;grid-template-columns: repeat(3, 1fr);grid-auto-rows: minmax(64px, auto);gap: calc(var(--design-unit) * 1px);place-items: end stretch}.toggle{display: flex;justify-content: center;min-height: 20px;cursor: pointer;border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0 0;border-top: 2px solid;color: #f44378}.collapsed{max-height: 0;padding: 0;overflow: hidden}.toggle-collapsed{color: #48ed9c}`,oFe=e=>{switch(e){case`INT`:case`DOUBLE`:case`LONG`:return`number`;case`DATETIME`:return`date`;case`BOOLEAN`:return`boolean`;case`ENUM`:return`enum`;default:return`text`}},sFe=T`<p>Fetching metadata for ${e=>e.resource}...</p>`,cFe=e=>T` ${A(e=>e.collapsed,T`<${e}-icon name="chevron-up"></${e}-icon>`)} ${A(e=>!e.collapsed,T`<${e}-icon name="chevron-down"></${e}-icon>`)} `,q0=e=>T`<div class=${e=>pn([`toggle`,!0],[`toggle-collapsed`,e.collapsed])}@click="${e=>e.toggle()}">${cFe(e)}</div><div class=${e=>pn([`filter-bar`,!0],[`collapsed`,e.collapsed])}><div class="filter-grid" ${k(`filterGrid`)}>${j(e=>e.fields,T`<${e}-filter label="${e=>e.UI_LABEL}" target="${(e,t)=>t.parent?.target}" type="${e=>oFe(e.TYPE)}" fieldName="${e=>e.NAME}" enumOptions="${e=>e.VALID_VALUES}"></${e}-filter>`)}</div></div>`,lFe=T` ${e=>e.ready?q0(gb(e)):sFe} `;var J0=class extends P{constructor(){super(...arguments),this.columns=5,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){let e=!1,t=[];(this===null||this===void 0?void 0:this.labels)?.length&&(t=this.labels.split(`,`)?.map(e=>e.trim()),e=this.fields?.length===t?.length);for(let n=0;n<(this.fields?.length||0);n+=1){let r=e?t[n]:this.camelCasePreserveWhitespace(this.fields[n].NAME.replace(/_/g,` `));this.fields[n].UI_LABEL=r}}camelCasePreserveWhitespace(e){return e.split(` `).map(e=>zn(e)).join(` `)}resourceChanged(e,t){e!==t&&e?.length&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then(e=>{if(this.fields=e.FIELD,this.only?.length){let e=this.only.split(`,`).map(e=>e.trim()),t=(t,n)=>e.indexOf(t.NAME)>e.indexOf(n.NAME)?1:-1;this.fields=this.fields?.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>fb.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style[`grid-template-columns`]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}};q([D],J0.prototype,`resource`,void 0),q([D],J0.prototype,`only`,void 0),q([D],J0.prototype,`labels`,void 0),q([D],J0.prototype,`target`,void 0),q([D],J0.prototype,`columns`,void 0),q([C],J0.prototype,`ready`,void 0),q([C],J0.prototype,`fields`,void 0),q([Yv],J0.prototype,`connect`,void 0),q([C],J0.prototype,`collapsed`,void 0),J0.compose({baseName:`filter-bar`,template:lFe,styles:K0});let uFe=T`<template><slot></slot></template>`;var Y0;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(Y0||(Y0={}));let X0=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${Y0[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flex${t}-column) slot{flex-direction: column}:host(.flex${t}-column-reverse) slot{flex-direction: column-reverse}:host(.flex${t}-row) slot{flex-direction: row}:host(.flex${t}-row-reverse) slot{flex-direction: row-reverse}:host(.flex${t}-wrap) slot{flex-wrap: wrap}:host(.flex${t}-wrap-reverse) slot{flex-wrap: wrap-reverse}:host(.justify${t}-start) slot{justify-content: flex-start}:host(.justify${t}-end) slot{justify-content: flex-end}:host(.justify${t}-center) slot{justify-content: center}:host(.justify${t}-between) slot{justify-content: space-between}:host(.justify${t}-around) slot{justify-content: space-around}:host(.justify${t}-evenly) slot{justify-content: space-evenly}:host(.items${t}-start) slot{align-items: flex-start}:host(.items${t}-end) slot{align-items: flex-end}:host(.items${t}-center) slot{align-items: center}:host(.items${t}-stretch) slot{align-items: stretch}:host(.items${t}-baseline) slot{align-items: baseline}:host(.content${t}-start) slot{align-content: flex-start}:host(.content${t}-end) slot{align-content: flex-end}:host(.content${t}-center) slot{align-content: center}:host(.content${t}-between) slot{align-content: space-between}:host(.content${t}-around) slot{align-content: space-around}:host(.content${t}-evenly) slot{align-content: space-evenly}${t&&`}`} `},dFe=O` :host{width: 100%;height: 100%}slot{width: 100%;height: 100%;display: flex}${X0()} ${X0(`lg`)} ${X0(`md`)} ${X0(`sm`)}`,Z0=class extends P{}.compose(Object.assign({baseName:`flex-layout`,styles:dFe,template:uFe,shadowOptions:void 0},{})),Q0=(e,t)=>Ui(e,t),$0=(e,t)=>O` ${cu(e,t)}`;var e2=class extends Wi{};let t2={next:`
|
|
889
|
+
`,WPe=(e,t,n)=>O` /* Host */ :host{display: flex;flex-direction: column;width: 100%;height: 100%;position: relative}.file-reader{display: flex;align-items: end;justify-content: start;position: relative}.file-reader > *:not(.processing-overlay){margin: 0}.file-reader > *:not(.processing-overlay):not(:last-child){margin-right: calc(var(--design-unit) * 2px)}input[type='file']{display: none}.file-name-input{flex: 1}.clear-icon{cursor: pointer}.processing-overlay{position: absolute;inset: 0;background-color: rgba(0 0 0 / 20%);display: flex;flex-direction: column;align-items: center;justify-content: center;z-index: 2}`,N0=(e,t)=>O` ${WPe(`foundation`,e,t)}`,GPe=e=>T`<template><div class="file-reader">${A(e=>e.isProcessing,T`<div class="processing-overlay" part="processing-overlay"><${e}-progress-ring class="processing-spinner"></${e}-progress-ring></div>`)}<input type="file" ${k(`fileInput`)}@change=${(e,t)=>e.onInputChange(t.event)}:accept="${e=>e.accept}"/><${e}-text-field readOnly type="text" id="fileName" class="file-name-input" :value="${e=>e.fileName}" part="file-name-input">${e=>e.label} ${A(e=>e.fileName,T`<${e}-icon slot="end" class="clear-icon" name="xmark" part="clear-icon" @click=${e=>e.clearSelection()}></${e}-icon>`)}</${e}-text-field><${e}-button @click=${e=>e.handleClick()}part="select-file-button">
|
|
890
|
+
Browse </${e}-button>${A(e=>e.fileName&&!e.autoProcess,T`<${e}-button @click=${e=>e.handleFileProcessing()}part="process-file-button" :disabled="${e=>!e.fileName}">Process file</${e}-button>`)}</div></template>`,P0=T` ${e=>GPe(gb(e))} `;var F0=class extends j0{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=`.json,application/json`}onFileSelected(e){let t=e[0];if(t&&this.accept.includes(`json`)&&!((t?.name)?.toLowerCase())?.endsWith(`.json`)){let e=`Selected file is not a JSON file`;this.showError(`File Type Error`,e),this.$emit(`error`,/* @__PURE__ */ Error(e));return}this.selectedFile=t,this.fileName=t.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return J(this,void 0,void 0,function*(){var e;if(!this.getSelectedFile()){this.showError(`No File Selected`,`Please select a file to process`);return}this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{let t=yield this.getSelectedFile().text(),n;try{n=JSON.parse(t)}catch(e){this.showError(`Invalid JSON Format`,`The selected file contains invalid JSON`),this.$emit(`error`,e);return}this.fileContent=n,this.$emit(`file-read`,{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),(e=this.onFileRead)==null||e.call(this,this.fileContent)}catch(e){this.showError(`File Processing Error`,`An error occurred while processing the file`),this.$emit(`error`,e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}};q([D({attribute:`auto-process`,mode:`boolean`})],F0.prototype,`autoProcess`,void 0),q([D({attribute:`processing-delay-ms`})],F0.prototype,`processingDelayMs`,void 0),q([C],F0.prototype,`fileContent`,void 0),q([C],F0.prototype,`onFileRead`,void 0),F0.compose({baseName:`file-reader`,styles:N0,template:P0});let I0=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%;height: 100%}.file-selection{display: flex;align-items: end;justify-content: start;padding-bottom: 10px}.file-selection :nth-last-child(-n + 2){margin: 0;margin-left: 10px}input[type='file']{display: none}.clear-icon{cursor: pointer}.uploader-grid{overflow-y: auto}.file-name-input{flex: 1}.download-button-container{display: flex}.download-button{height: 22px}fast-data-grid-row{align-items: center}`,L0=e=>T`<template><div class="file-selection"><input type="file" multiple ${k(`fileInput`)}@change=${(e,t)=>e.onInputChange(t.event)}:accept="${e=>e.accept}"/><${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input" :label="${e=>e.label}" :value="${e=>e.fileName}">${e=>e.label} ${A(e=>e.fileName,T`<${e}-icon slot="end" class="clear-icon" name="xmark" @click=${e=>e.clearSelection()}></${e}-icon>`)}</${e}-text-field><${e}-button @click=${e=>e.handleClick()}part="select-file-button">Browse</${e}-button><${e}-button @click=${e=>e.handleFileUpload()}part="upload-file-button" :disabled="${e=>!e.fileName}">Upload</${e}-button></div><div class="uploader-grid"><${e}-data-grid generate-header="sticky" part="uploaded-files-grid" :rowsData="${e=>e.uploadedFilesList}" :columnDefinitions="${e=>e.filesGridColumnDefinitions}"></${e}-data-grid></div></template>`,KPe=T` ${e=>L0(gb(e))} `,qPe=e=>{let t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},JPe=(e,t,n,r)=>{let i=new Headers;return i.append(`SESSION_AUTH_TOKEN`,n),r.post(e,{body:t,headers:i})},YPe=(e,t,n,r=`GET`,i,a,o=`rapid`)=>{let s=new Headers;s.append(`SESSION_AUTH_TOKEN`,n),fetch(e,{method:r,body:a,headers:s,credentials:`include`}).then(e=>J(void 0,void 0,void 0,function*(){if(e.ok)return e.blob();{let t=yield e.json();i&&CC({title:t?.MESSAGE_TYPE,body:t?.DETAILS?.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:`warning`}}},o),fb.error(t||`An error occurred while downloading the file.`)}})).then(e=>{if(e){let n=window.URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),i&&CC({title:`Success`,body:`File downloaded successfully`,config:{toast:{autoClose:!0,closeTimeout:5e3,type:`success`}}},o),fb.info(`File downloaded successfully`)}}).catch(e=>{fb.error(e)})},XPe=[`image/png`,`image/bmp`,`image/gif`,`image/jpeg`,`image/jpg`],ZPe=[`text/plain`,`text/csv`],QPe=[`application/vnd.ms-excel`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`application/vnd.ms-powerpoint`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`,`application/msword`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,`application/pdf`],$Pe=T` ${A(e=>e.rowData,T` ${e=>e.columnDefinition.type===`DATETIME`?kf(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]} `)} `;var R0=class extends j0{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],this.uploadedFilesResourceName=`ALL_FILE_ATTACHMENTS`,this.uploadEventName=`gwf/attachment-handler/upload`,this.gridFields=``,this.fileName=``,this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(`,`).forEach(t=>{t===`image/*`?e=[...e,...XPe]:t===`office/*`?e=[...e,...QPe]:t===`text/*`?e=[...e,...ZPe]:e.push(t)}),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.filesGridColumnDefinitions?.length||this.setColumnDefs()})}setupGrid(){this.entityId!==void 0&&this.fieldName!==void 0&&(this.gridCriteria=new jb().withExpression(new Mb().withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(let n of e.ROW)if(n.DETAILS)switch(n.DETAILS.OPERATION){case`INSERT`:this.uploadedFilesList.unshift(n);break;case`MODIFY`:t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===n.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,n);break;case`DELETE`:t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===n.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:Y.error(`Unsupported operation type: ${n.DETAILS.OPERATION}`)}}setRowData(){return J(this,void 0,void 0,function*(){yield this.connect.stream(this.uploadedFilesResourceName,e=>{e.SEQUENCE_ID===1?this.uploadedFilesList=e.ROW??[]:this.handleStreamRowOperation(e)},e=>{Y.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return J(this,void 0,void 0,function*(){var e;let t=yield this.connect.getMetadata(this.uploadedFilesResourceName),n=[];this.gridFields.length>0?this.gridFields.split(` `).forEach(e=>{let r=t.FIELD?.find(t=>t.NAME===e);r?n.push(this.getColumnObject(r)):e===`DOWNLOAD`&&this.downloadEventName&&n.push(this.getDownloadColumn())}):((e=t.FIELD)==null||e.forEach(e=>{n.push(this.getColumnObject(e))}),this.downloadEventName&&n.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=n})}getDownloadColumn(){let e=this.tagName.toLowerCase().split(`-`)[0];return{columnDataKey:`FILE_NAME`,title:`File`,cellTemplate:T`<template><div class="download-button-container"><${e}-button class="download-button" @click="${e=>this.handleFileDownload(e.rowData)}">
|
|
891
|
+
DOWNLOAD </${e}-button></div></template>`}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split(`_`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `),type:e.TYPE,cellTemplate:$Pe}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){let t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0){for(let e of t)if(!(this.accept.split(`,`).includes(`.msg`)&&e.name&&e.name.endsWith(`msg`))&&!this.acceptedFormats.includes(e.type)){this.showError(`File Type Error`,`Not a valid file type. Accepted Formats are ${this.accept}`);return}}this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join(),this.$emit(`file-selected`,{files:this.selectedFiles})}onFileCleared(){this.fileName=``,this.selectedFiles=[]}handleFileUpload(){return J(this,void 0,void 0,function*(){try{let e=qPe(this.selectedFiles);e.append(this.uploadKey,this.entityId);let t=yield JPe(this.uploadEventName,e,this.session.getItem(`authToken`,`session`),this.http);if(t.ERROR){Y.error(t.ERROR),this.$emit(`errorOut`,t.ERROR);return}Y.info(t),this.$emit(`success`,t),this.clearSelection()}catch(e){this.$emit(`errorOut`,e),Y.error(e)}})}handleFileDownload(e){let t=this.tagName.toLowerCase().split(`-`)[0];YPe(this.downloadEventName(e),e.FILE_NAME,this.session.getItem(`authToken`,`session`),`GET`,!0,void 0,t)}};q([C],R0.prototype,`gridCriteria`,void 0),q([Yv],R0.prototype,`connect`,void 0),q([Dg],R0.prototype,`http`,void 0),q([Cg],R0.prototype,`session`,void 0),q([D({attribute:`uploaded-files-resource-name`})],R0.prototype,`uploadedFilesResourceName`,void 0),q([D({attribute:`upload-event-name`})],R0.prototype,`uploadEventName`,void 0),q([D({attribute:`field-name`})],R0.prototype,`fieldName`,void 0),q([D({attribute:`entity-id`})],R0.prototype,`entityId`,void 0),q([D({attribute:`upload-key`})],R0.prototype,`uploadKey`,void 0),q([D({attribute:`grid-fields`})],R0.prototype,`gridFields`,void 0),q([C],R0.prototype,`fileName`,void 0),q([C],R0.prototype,`uploadedFilesList`,void 0),q([C],R0.prototype,`filesGridColumnDefinitions`,void 0);let z0={};R0.compose(Object.assign({baseName:`file-upload`,styles:I0,template:KPe,shadowOptions:void 0},z0));let B0=O` .filter-wrapper{border: 1px solid gray;border-radius: calc(var(--design-unit) * 2px);padding: calc(var(--design-unit) * 1px)}.close-icon{display: flex;place-content: center;align-items: center;flex-direction: column;margin: calc(var(--design-unit) * 1px);padding: calc(var(--design-unit) * 1px);border: 1px solid transparent;border-radius: calc(var(--design-unit) * 2px);cursor: pointer}.close-icon, .cloase-icon svg path{transition-property: all;transition-timing-function: linear;transition-duration: 300ms}.close-icon:hover{border-color: red;background: rgb(255 0 0 / 25%)}.close-icon:hover svg path{fill: red}.flex-row{display: flex;flex-direction: row;place-content: center space-between;align-items: center}.flex-row foundation-text-field, .flex-row foundation-select{flex: 1}`,V0=T`<div class="close-icon" @click=${e=>e.clear()}>${UPe()}</div>`,eFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-text-field ${k(`textFilterField`)}type="text" :value=${lf(e=>e.textFilter)}/></div>`,tFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-text-field ${k(`numFilterFieldMin`)}type="number" :value=${lf(e=>e.numFilterMin)}placeholder="min"></${e}-text-field><${e}-text-field ${k(`numFilterFieldMax`)}type="number" :value=${lf(e=>e.numFilterMax)}placeholder="max"></${e}-text-field></div>`,nFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-text-field ${k(`dateFilterFieldMin`)}type="date" :value=${lf(e=>e.dateFilterMin)}></${e}-text-field><${e}-text-field ${k(`dateFilterFieldMax`)}type="date" :value=${lf(e=>e.dateFilterMax)}></${e}-text-field></div>`;function H0(e){return e?.event?.target?.value??`all`}let rFe=[{name:`All`,value:`all`,selected:!0},{name:`True`,value:`true`},{name:`False`,value:`false`},{name:`N/A`,value:`null`}],iFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(H0(t))}}">${j(()=>rFe,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,aFe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${V0}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onEnumFilterSelection(H0(t))}}">${j(e=>e.enumFilterOptions,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,oFe=(e,t)=>{switch(e.type){case`number`:return tFe(t);case`date`:return nFe(t);case`boolean`:return iFe(t);case`enum`:return aFe(t);default:return eFe(t)}},U0=e=>T`<div class="filter-wrapper">${t=>oFe(t,e)}</div>`,sFe=T` ${e=>U0(gb(e))}</div>`;var W0;(function(e){e.change=`filter-changed`,e.clear=`filter-cleared`})(W0||(W0={}));var G0=class extends P{constructor(){super(...arguments),this.type=`text`,this.textFilter=``,this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0}]}textFilterChanged(e,t){if(!t?.length){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}let n=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(W0.change,{fieldName:this.fieldName,filter:n,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}let n=`${this.fieldName} >= ${e}`,r=`${this.fieldName} <= ${t}`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(W0.change,{fieldName:this.fieldName,filter:i,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,``).replace(`T`,`-`)}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(W0.clear,{fieldName:this.fieldName});return}let n=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,r=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(W0.change,{fieldName:this.fieldName,filter:i,target:this.target})}connectedCallback(){if(super.connectedCallback(),this.enumOptions?.length){let e=this.enumOptions.includes(`|`)?`|`:`,`,t=this.enumOptions.split(e).map(e=>({name:e,value:e}));this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0},...t]}}clear(){switch(this.type){case`number`:this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case`date`:this.dateFilterFieldMin.value=``,this.dateFilterFieldMax.value=``,this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case`text`:this.textFilterField.value=``}this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){if(!e||e===`all`){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(W0.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target})}onEnumFilterSelection(e){if(!e||e===`all`){this.$emit(W0.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(W0.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target})}};q([D],G0.prototype,`fieldName`,void 0),q([D],G0.prototype,`type`,void 0),q([D],G0.prototype,`label`,void 0),q([D],G0.prototype,`target`,void 0),q([C],G0.prototype,`textFilter`,void 0),q([C],G0.prototype,`numFilterMin`,void 0),q([C],G0.prototype,`numFilterMax`,void 0),q([C],G0.prototype,`dateFilterMin`,void 0),q([C],G0.prototype,`dateFilterMax`,void 0),q([D],G0.prototype,`enumOptions`,void 0),q([C],G0.prototype,`enumFilterOptions`,void 0),G0.compose({baseName:`filter`,template:sFe,styles:B0});let K0=(e,t)=>O` .filter-bar{background-color: #2c2f33;padding: calc(var(--design-unit) * 2px);transition: all 0.5s ease-out}.filter-grid{display: grid;grid-template-columns: repeat(3, 1fr);grid-auto-rows: minmax(64px, auto);gap: calc(var(--design-unit) * 1px);place-items: end stretch}.toggle{display: flex;justify-content: center;min-height: 20px;cursor: pointer;border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0 0;border-top: 2px solid;color: #f44378}.collapsed{max-height: 0;padding: 0;overflow: hidden}.toggle-collapsed{color: #48ed9c}`,cFe=e=>{switch(e){case`INT`:case`DOUBLE`:case`LONG`:return`number`;case`DATETIME`:return`date`;case`BOOLEAN`:return`boolean`;case`ENUM`:return`enum`;default:return`text`}},lFe=T`<p>Fetching metadata for ${e=>e.resource}...</p>`,uFe=e=>T` ${A(e=>e.collapsed,T`<${e}-icon name="chevron-up"></${e}-icon>`)} ${A(e=>!e.collapsed,T`<${e}-icon name="chevron-down"></${e}-icon>`)} `,q0=e=>T`<div class=${e=>pn([`toggle`,!0],[`toggle-collapsed`,e.collapsed])}@click="${e=>e.toggle()}">${uFe(e)}</div><div class=${e=>pn([`filter-bar`,!0],[`collapsed`,e.collapsed])}><div class="filter-grid" ${k(`filterGrid`)}>${j(e=>e.fields,T`<${e}-filter label="${e=>e.UI_LABEL}" target="${(e,t)=>t.parent?.target}" type="${e=>cFe(e.TYPE)}" fieldName="${e=>e.NAME}" enumOptions="${e=>e.VALID_VALUES}"></${e}-filter>`)}</div></div>`,dFe=T` ${e=>e.ready?q0(gb(e)):lFe} `;var J0=class extends P{constructor(){super(...arguments),this.columns=5,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){let e=!1,t=[];(this===null||this===void 0?void 0:this.labels)?.length&&(t=this.labels.split(`,`)?.map(e=>e.trim()),e=this.fields?.length===t?.length);for(let n=0;n<(this.fields?.length||0);n+=1){let r=e?t[n]:this.camelCasePreserveWhitespace(this.fields[n].NAME.replace(/_/g,` `));this.fields[n].UI_LABEL=r}}camelCasePreserveWhitespace(e){return e.split(` `).map(e=>zn(e)).join(` `)}resourceChanged(e,t){e!==t&&e?.length&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then(e=>{if(this.fields=e.FIELD,this.only?.length){let e=this.only.split(`,`).map(e=>e.trim()),t=(t,n)=>e.indexOf(t.NAME)>e.indexOf(n.NAME)?1:-1;this.fields=this.fields?.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>fb.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style[`grid-template-columns`]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}};q([D],J0.prototype,`resource`,void 0),q([D],J0.prototype,`only`,void 0),q([D],J0.prototype,`labels`,void 0),q([D],J0.prototype,`target`,void 0),q([D],J0.prototype,`columns`,void 0),q([C],J0.prototype,`ready`,void 0),q([C],J0.prototype,`fields`,void 0),q([Yv],J0.prototype,`connect`,void 0),q([C],J0.prototype,`collapsed`,void 0),J0.compose({baseName:`filter-bar`,template:dFe,styles:K0});let fFe=T`<template><slot></slot></template>`;var Y0;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(Y0||(Y0={}));let X0=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${Y0[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flex${t}-column) slot{flex-direction: column}:host(.flex${t}-column-reverse) slot{flex-direction: column-reverse}:host(.flex${t}-row) slot{flex-direction: row}:host(.flex${t}-row-reverse) slot{flex-direction: row-reverse}:host(.flex${t}-wrap) slot{flex-wrap: wrap}:host(.flex${t}-wrap-reverse) slot{flex-wrap: wrap-reverse}:host(.justify${t}-start) slot{justify-content: flex-start}:host(.justify${t}-end) slot{justify-content: flex-end}:host(.justify${t}-center) slot{justify-content: center}:host(.justify${t}-between) slot{justify-content: space-between}:host(.justify${t}-around) slot{justify-content: space-around}:host(.justify${t}-evenly) slot{justify-content: space-evenly}:host(.items${t}-start) slot{align-items: flex-start}:host(.items${t}-end) slot{align-items: flex-end}:host(.items${t}-center) slot{align-items: center}:host(.items${t}-stretch) slot{align-items: stretch}:host(.items${t}-baseline) slot{align-items: baseline}:host(.content${t}-start) slot{align-content: flex-start}:host(.content${t}-end) slot{align-content: flex-end}:host(.content${t}-center) slot{align-content: center}:host(.content${t}-between) slot{align-content: space-between}:host(.content${t}-around) slot{align-content: space-around}:host(.content${t}-evenly) slot{align-content: space-evenly}${t&&`}`} `},pFe=O` :host{width: 100%;height: 100%}slot{width: 100%;height: 100%;display: flex}${X0()} ${X0(`lg`)} ${X0(`md`)} ${X0(`sm`)}`,Z0=class extends P{}.compose(Object.assign({baseName:`flex-layout`,styles:pFe,template:fFe,shadowOptions:void 0},{})),Q0=(e,t)=>Ui(e,t),$0=(e,t)=>O` ${cu(e,t)}`;var e2=class extends Wi{};let t2={next:`
|
|
892
892
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
893
893
|
<path
|
|
894
894
|
d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"
|
|
@@ -900,7 +900,7 @@ let HI={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
|
|
|
900
900
|
d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"
|
|
901
901
|
/>
|
|
902
902
|
</svg>
|
|
903
|
-
`};e2.compose(Object.assign({baseName:`flipper`,template:Q0,styles:$0,shadowOptions:void 0},t2));let n2=O` /* Host */ :host{display: inline-block;height: 100vh;position: absolute;width: 100vw}:host([closed]){display: none}div.container{height: 100%;width: 100%}/* flyout */ div.flyout{background-color: white;color: black;height: 100%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: transform ${`225`}ms ease-in, width ${`225`}ms ease-in-out;width: var(--flyout-width, 20%);z-index: 2001}:host([position='left']) div.flyout{left: 0;transform: translateX(0%)}:host([position='right']) div.flyout{right: 0;transform: translateX(0%)}:host([visuallyhidden][position='left']) div.flyout{left: 0;transform: translateX(-100%)}:host([visuallyhidden][position='right']) div.flyout{right: 0;transform: translateX(100%)}div.header{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-hint);font-weight: 500;padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}div.title{flex-grow: 1}div.footer{bottom: 0;position: absolute;width: 100%}/* Background */ div.background{background-color: black;height: 100%;opacity: 50%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: opacity ${`225`}ms linear;width: 100%;z-index: 2000}:host([visuallyhidden]) div.background{opacity: 0%}`,r2=e=>T`<div ?closed=${e=>e.closed}?visuallyhidden=${e=>e.visuallyhidden}><div class="container"><div class="background" part="background" @click=${e=>e.closeFlyout()}></div><div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>${A(e=>e.displayHeader,T`<div class="header" part="header"><div class="title" part="title"><slot name="title"></slot></div><${e}-button class="exit" part="exit" aria-label="exit" ${k(`exit`)}appearance="stealth" @click=${e=>e.closeFlyout()}><${e}-icon name="times"></${e}-icon></${e}-button></div>`)}<div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div></div></div></div>`,
|
|
903
|
+
`};e2.compose(Object.assign({baseName:`flipper`,template:Q0,styles:$0,shadowOptions:void 0},t2));let n2=O` /* Host */ :host{display: inline-block;height: 100vh;position: absolute;width: 100vw}:host([closed]){display: none}div.container{height: 100%;width: 100%}/* flyout */ div.flyout{background-color: white;color: black;height: 100%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: transform ${`225`}ms ease-in, width ${`225`}ms ease-in-out;width: var(--flyout-width, 20%);z-index: 2001}:host([position='left']) div.flyout{left: 0;transform: translateX(0%)}:host([position='right']) div.flyout{right: 0;transform: translateX(0%)}:host([visuallyhidden][position='left']) div.flyout{left: 0;transform: translateX(-100%)}:host([visuallyhidden][position='right']) div.flyout{right: 0;transform: translateX(100%)}div.header{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-hint);font-weight: 500;padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}div.title{flex-grow: 1}div.footer{bottom: 0;position: absolute;width: 100%}/* Background */ div.background{background-color: black;height: 100%;opacity: 50%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: opacity ${`225`}ms linear;width: 100%;z-index: 2000}:host([visuallyhidden]) div.background{opacity: 0%}`,r2=e=>T`<div ?closed=${e=>e.closed}?visuallyhidden=${e=>e.visuallyhidden}><div class="container"><div class="background" part="background" @click=${e=>e.closeFlyout()}></div><div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>${A(e=>e.displayHeader,T`<div class="header" part="header"><div class="title" part="title"><slot name="title"></slot></div><${e}-button class="exit" part="exit" aria-label="exit" ${k(`exit`)}appearance="stealth" @click=${e=>e.closeFlyout()}><${e}-icon name="times"></${e}-icon></${e}-button></div>`)}<div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div></div></div></div>`,mFe=T` ${e=>r2(gb(e))} `;var i2=class extends P{constructor(){super(...arguments),this.position=`right`,this.flyoutWidth=`20%`,this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}flyoutWidthChanged(){this.isConnected&&this.flyoutWidth!=null&&this.style.setProperty(`--flyout-width`,this.flyoutWidth)}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}connectedCallback(){super.connectedCallback(),this.flyoutWidth!=null&&this.style.setProperty(`--flyout-width`,this.flyoutWidth)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit(`closed`))}focusExit(){this.exit.focus()}};q([D],i2.prototype,`position`,void 0),q([D({attribute:`flyout-width`})],i2.prototype,`flyoutWidth`,void 0),q([D({mode:`boolean`})],i2.prototype,`displayHeader`,void 0),q([D({mode:`boolean`})],i2.prototype,`closed`,void 0),q([D({mode:`boolean`})],i2.prototype,`visuallyhidden`,void 0);let a2={};i2.compose(Object.assign({baseName:`flyout`,styles:n2,template:mFe,shadowOptions:void 0},a2));let hFe=T`<template><slot></slot></template>`;var o2;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(o2||(o2={}));let s2=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${o2[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flow${t}-row) slot{grid-auto-flow: row}:host(.flow${t}-column) slot{grid-auto-flow: column}:host(.flow${t}-row-dense) slot{grid-auto-flow: row dense}:host(.flow${t}-column-dense) slot{grid-auto-flow: column dense}:host(.content${t}-center) slot{place-content: center}:host(.content${t}-start) slot{place-content: start}:host(.content${t}-end) slot{place-content: end}:host(.content${t}-between) slot{place-content: space-between}:host(.content${t}-around) slot{place-content: space-around}:host(.content${t}-evenly) slot{place-content: space-evenly}:host(.content${t}-stretch) slot{place-content: stretch}:host(.place${t}-items-start) slot{place-items: start}:host(.place${t}-items-end) slot{place-items: end}:host(.place${t}-items-center) slot{place-items: center}:host(.place${t}-items-stretch) slot{place-items: stretch}${t&&`}`} `},gFe=O` slot{width: 100%;height: 100%;display: grid}${s2()} ${s2(`lg`)} ${s2(`md`)} ${s2(`sm`)}`,_Fe={};var vFe=class{constructor(e,t,n,r=`1fr`,i=`1fr`){this.listenerCache=/* @__PURE__ */ new WeakMap,this.query=window.matchMedia(e);let a=t&&rt`grid-template-columns: repeat(${t}, ${r});`,o=n&&rt`grid-template-rows: repeat(${n}, ${i});`;this.styles=O` slot{${o||``} ${a||``}}`}bind(e){let t=!1,n=n=>{let{matches:r}=n;r&&!t?(e.$fastController.addStyles(this.styles),t=!0):!r&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};n({matches:this.query.matches}),this.query.addEventListener(`change`,n),this.listenerCache.set(e,n)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeEventListener(`change`,t),this.listenerCache.delete(e)),this.styles&&e.$fastController.removeStyles(this.styles)}},c2=class extends P{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(o2).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new vFe(o2[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])}).filter(e=>!!e);let e=this[`row-count`]&&rt`grid-template-rows: repeat(${this[`row-count`]}, ${this[`row-height`]||`1fr`});`,t=this[`col-count`]&&rt`grid-template-columns: repeat(${this[`col-count`]}, ${this[`col-width`]||`1fr`});`;this.baseStyles=O` slot{${e||``} ${t||``}}`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}};q([D],c2.prototype,`col-count`,void 0),q([D],c2.prototype,`col-width`,void 0),q([D],c2.prototype,`col-lg-count`,void 0),q([D],c2.prototype,`col-lg-width`,void 0),q([D],c2.prototype,`col-md-count`,void 0),q([D],c2.prototype,`col-md-width`,void 0),q([D],c2.prototype,`col-sm-count`,void 0),q([D],c2.prototype,`col-sm-width`,void 0),q([D],c2.prototype,`row-count`,void 0),q([D],c2.prototype,`row-height`,void 0),q([D],c2.prototype,`row-lg-count`,void 0),q([D],c2.prototype,`row-lg-height`,void 0),q([D],c2.prototype,`row-md-count`,void 0),q([D],c2.prototype,`row-md-height`,void 0),q([D],c2.prototype,`row-sm-count`,void 0),q([D],c2.prototype,`row-sm-height`,void 0);let l2=c2.compose(Object.assign({baseName:`grid-layout`,styles:gFe,template:hFe,shadowOptions:void 0},_Fe)),yFe=T`<template><style>
|
|
904
904
|
:host {
|
|
905
905
|
width: 100%;
|
|
906
906
|
height: 100%;${e=>e.setGridItemProperties(e.colNumber,e.rowNumber,e.width,e.height)}}
|
|
@@ -913,7 +913,7 @@ let HI={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
|
|
|
913
913
|
@media only screen and (max-width: 640px) {
|
|
914
914
|
:host {${e=>e.setGridItemProperties(e.colSmNumber,e.rowSmNumber,e.widthSm,e.heightSm)}}
|
|
915
915
|
}
|
|
916
|
-
</style><slot></slot></template>`,
|
|
916
|
+
</style><slot></slot></template>`,bFe={};var u2=class extends P{setGridItemProperties(e,t,n,r){if(t&&e&&n&&r)return`grid-row: ${t===0||r===0?`auto`:`${t} / ${Number(t)+Number(r)}`}; grid-column: ${e===0||n===0?`auto`:`${e} / ${Number(e)+Number(n)}`}`}};q([D({attribute:`col-number`})],u2.prototype,`colNumber`,void 0),q([D({attribute:`col-sm-number`})],u2.prototype,`colSmNumber`,void 0),q([D({attribute:`col-md-number`})],u2.prototype,`colMdNumber`,void 0),q([D({attribute:`col-lg-number`})],u2.prototype,`colLgNumber`,void 0),q([D({attribute:`row-number`})],u2.prototype,`rowNumber`,void 0),q([D({attribute:`row-sm-number`})],u2.prototype,`rowSmNumber`,void 0),q([D({attribute:`row-md-number`})],u2.prototype,`rowMdNumber`,void 0),q([D({attribute:`row-lg-number`})],u2.prototype,`rowLgNumber`,void 0),q([D({attribute:`width`})],u2.prototype,`width`,void 0),q([D({attribute:`width-sm`})],u2.prototype,`widthSm`,void 0),q([D({attribute:`width-md`})],u2.prototype,`widthMd`,void 0),q([D({attribute:`width-lg`})],u2.prototype,`widthLg`,void 0),q([D({attribute:`height`})],u2.prototype,`height`,void 0),q([D({attribute:`height-sm`})],u2.prototype,`heightSm`,void 0),q([D({attribute:`height-md`})],u2.prototype,`heightMd`,void 0),q([D({attribute:`height-lg`})],u2.prototype,`heightLg`,void 0);let d2=u2.compose(Object.assign({baseName:`grid-layout-item`,template:yFe,shadowOptions:void 0},bFe)),f2=(e,t)=>ha(e,t),p2=(e,t)=>O` ${lu(e,t)}`;var m2=class extends uu{};let h2={delegatesFocus:!0,mode:`open`},xFe={nextFlipper:T`<foundation-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`,previousFlipper:T`<foundation-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`};m2.compose(Object.assign({baseName:`horizontal-scroll`,template:f2,styles:p2,shadowOptions:h2},xFe));let g2=(e,t)=>O` ${j1()} .fa-stack-1x{font-size: 1em}.fa-stack-2x{font-size: 2em}.tooltip-icon{color: var(--accent-foreground-rest)}.error-tooltip{color: var(--error-color)}.tooltip-element{/* Shown as a top-layer popover (see Icon.showTooltip): the top layer escapes ancestor stacking contexts, transforms and overflow clipping, so virtualized grid rows cannot paint over the bubble and no z-index is needed. Placement is inline top/left from the anchor rect, so the UA popover box (inset/margin/border/padding/background) is reset to leave the visible box to ::part(tooltip). No display rule here: the UA sheet hides the popover while closed (an author display rule would override that), and position: fixed blockifies the host while open. */ position: fixed;inset: unset;margin: 0;border: none;padding: 0;background: transparent;color: inherit;overflow: visible;width: 300px;contain: unset;/* The top layer changes painting, not style inheritance: the bubble still inherits text properties from its host context (e.g. AG Grid cells set white-space: nowrap), so reset the ones that would break a multi-line bubble. */ white-space: normal;text-overflow: clip}.tooltip-element::part(tooltip){padding: calc(var(--design-unit) * 4px);background-color: color-mix(in srgb, var(--neutral-layer-4), #000 10%);border: 1px solid var(--neutral-layer-3);text-align: left;color: var(--neutral-foreground-hint);box-shadow: 0 4px 10px rgb(0 0 0 / 35%);font-size: var(--type-ramp-minus-1-font-size)}.tooltip-title{color: var(--neutral-fill-strong-hover);margin: 0}.tooltip-description{margin-top: calc(var(--design-unit) * 2px);margin-bottom: 0;font-size: var(--type-ramp-base-font-size)}.tooltip-second-title-margin{margin-top: calc(var(--design-unit) * 2px)}.tooltip-list-padding{margin: 0;padding: 0 0 0 calc(var(--design-unit) * 4px)}a, a:active, a:visited{color: var(--accent-foreground-rest);text-decoration: none}.warning{background: var(--warning-color);color: #000}.info{margin-top: calc(var(--design-unit) * 2px);padding: 20px;margin-bottom: 20px;height: auto;box-sizing: border-box}`,_2=e=>T`<template><i ${k(`iElement`)}id="${e=>e.tooltipId}" class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${pn([`error-tooltip`,!!(e.isError&&e.tooltip)],[`tooltip-icon`,!(e.isError||!e.tooltip)])}`}part=${e=>`icon-${e.name}-${e.size}-${e.variant} i-icon`}><slot></slot></i>${A(e=>e.tooltip,T`<${e}-tooltip ${k(`tooltipElement`)}part="tooltip" class="tooltip-element" popover="manual" delay="0" anchor="${e=>e.tooltipId}">${e=>T` ${e.tooltip} `}</${e}-tooltip>`)}</template>`,SFe=T` ${e=>_2(gb(e))} `,v2={mode:`open`,delegatesFocus:!0},y2={};var b2;(function(e){e.solid=`fas`,e.regular=`far`,e.brand=`fab`})(b2||(b2={}));var x2=class extends P{constructor(){super(...arguments),this.isError=!1,this.tooltipShowTimer=null,this.size=`sm`,this.variant=`solid`,this.showTooltip=()=>{let e=this.tooltipElement;e&&this.tooltipShowTimer===null&&!e.matches(`:popover-open`)&&(this.tooltipShowTimer=window.setTimeout(()=>{this.tooltipShowTimer=null;let e=this.tooltipElement;e?.isConnected&&(e.showPopover(),this.positionTooltip(e))},300))},this.hideTooltip=()=>{this.tooltipShowTimer!==null&&(window.clearTimeout(this.tooltipShowTimer),this.tooltipShowTimer=null),this.tooltipElement?.matches(`:popover-open`)&&this.tooltipElement.hidePopover()}}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){var e,t,n,r;super.connectedCallback(),this.loadIcon(),(e=this.iElement)==null||e.addEventListener(`mouseover`,this.showTooltip,{passive:!0}),(t=this.iElement)==null||t.addEventListener(`focusin`,this.showTooltip,{passive:!0}),(n=this.iElement)==null||n.addEventListener(`mouseout`,this.hideTooltip,{passive:!0}),(r=this.iElement)==null||r.addEventListener(`focusout`,this.hideTooltip,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren(),this.iElement.removeEventListener(`mouseover`,this.showTooltip),this.iElement.removeEventListener(`focusin`,this.showTooltip),this.iElement.removeEventListener(`mouseout`,this.hideTooltip),this.iElement.removeEventListener(`focusout`,this.hideTooltip),this.hideTooltip()}positionTooltip(e){let t=this.iElement.getBoundingClientRect(),n=e.getBoundingClientRect(),r=Math.max(n.width,e.scrollWidth),i=Math.max(n.height,e.scrollHeight),a=t.right;a+r>window.innerWidth-8&&(a=Math.max(8,t.left-r));let o=Math.max(8,window.innerHeight-i-8),s=Math.min(Math.max(t.top,8),o);e.style.top=`${s}px`,e.style.left=`${a}px`}getDefaultTooltipConfig(){this.name||(this.name=`question-circle`,this.size=`1x`,this.variant=`regular`)}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());let e=sue({prefix:b2[this.variant],iconName:this.name}),t=cue(e);t&&t.node&&(this.iElement.innerHTML=``,Array.from(t.node).map(e=>this.iElement.appendChild(e)))}};q([C],x2.prototype,`iElement`,void 0),q([Xh],x2.prototype,`uuid`,void 0),q([D({attribute:`tooltip-id`})],x2.prototype,`tooltipId`,void 0),q([D],x2.prototype,`tooltip`,void 0),q([D({attribute:`error`,mode:`boolean`})],x2.prototype,`isError`,void 0),q([D],x2.prototype,`name`,void 0),q([D],x2.prototype,`size`,void 0),q([D],x2.prototype,`variant`,void 0),x2.compose(Object.assign({baseName:`icon`,template:SFe,styles:g2,shadowOptions:v2},y2));let S2=(e,t)=>qi(e,t),C2=(e,t)=>O` ${Xl(e,t)} :host{display: flex;flex-direction: column;max-width: fit-content;padding: calc(var(--design-unit) * 1px) 0;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;var w2=class extends fu{};let T2={};w2.compose(Object.assign({baseName:`listbox`,template:S2,styles:C2,shadowOptions:void 0},T2));let E2=(e,t)=>Gi(e,t),D2=(e,t)=>O` ${du(e,t)}`;var O2=class extends Lr{};let k2={};O2.compose(Object.assign({baseName:`option`,template:E2,styles:D2,shadowOptions:void 0},k2));let A2=(e,t)=>na(e,t),j2=(e,t)=>O` ${mu(e,t)}`;var M2=class extends hu{};let N2={};M2.compose(Object.assign({baseName:`menu`,template:A2,styles:j2,shadowOptions:void 0},N2));let P2=(e,t)=>ta(e,t),F2=(e,t)=>O` ${pu(e,t)} :host, :host(.indent-0[aria-haspopup='menu']){align-content: center;min-height: calc(var(--design-unit) * 8px)}.expand-collapse-glyph{max-height: calc(var(--design-unit) * 4px);max-width: calc(var(--design-unit) * 4px);height: auto;width: auto}`;var I2=class extends ea{connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,()=>this.$emit(`onMenuClick`))}};let L2={expandCollapseGlyph:`
|
|
917
917
|
<svg
|
|
918
918
|
class="expand-collapse-glyph"
|
|
919
919
|
part="expand-collapse-glyph"
|
|
@@ -923,7 +923,7 @@ let HI={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
|
|
|
923
923
|
d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"
|
|
924
924
|
/>
|
|
925
925
|
</svg>
|
|
926
|
-
`};I2.compose(Object.assign({baseName:`menu-item`,template:P2,styles:F2,shadowOptions:void 0},L2));let xFe=O` ${P1}`,R2=T` ${I1} `,z2={mode:`open`,delegatesFocus:!0},B2={};var V2=class extends Z1{show(){var e,t;(e=this.onShowCallback)==null||e.call(this),(t=this.mainElement)==null||t.showModal()}};V2.compose(Object.assign({baseName:`modal`,template:R2,styles:xFe,shadowOptions:z2},B2));let H2=(e,t)=>T`<template class="${e=>[e.readOnly?`readonly`:``,e.prefix?`has-prefix`:``,e.suffix?`has-suffix`:``].filter(Boolean).join(` `)}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${xt(`defaultSlottedNodes`)}></slot></label><div class="root" part="root">${Tt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input class="control" part="control" name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" id="${e=>e.id?e.id:`control`}" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${A(e=>!e.hideStep&&!e.readOnly&&!e.disabled,T`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||``}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||``}</slot></div></div>`)} ${wt(e,t)}</div></template>`,SFe=(e,t)=>O` ${gu(e,t)} ::part(label){color: var(--neutral-foreground-rest)}fast-text-field{display: unset}.controls{margin-bottom: auto;margin-inline-end: 5px;margin-top: auto}.step-down, .step-up{display: block;fill: var(--neutral-foreground-rest)}.step-down-glyph, .step-up-glyph{padding: unset}::part(end){margin-inline-end: unset}${M0}`,U2=/* @__PURE__ */ new Map,W2=e=>{let t=U2.get(e);if(t)return t;let n=new Intl.NumberFormat(e).formatToParts(12345.6),r=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)],i={decimalSeparator:n.find(e=>e.type===`decimal`)?.value||`.`,groupSeparator:n.find(e=>e.type===`group`)?.value||``,digits:/* @__PURE__ */ new Set([...`0123456789`,...r]),zeroDigits:/* @__PURE__ */ new Set([`0`,r[r.length-1]])};return U2.set(e,i),i},G2=(e,t)=>{let{decimalSeparator:n,groupSeparator:r}=W2(t);return{decimalSeparator:n,groupSeparator:r}},CFe=/[kmb]\s*$/i,K2=(e,t)=>{let{decimalSeparator:n,digits:r,zeroDigits:i}=W2(t),a=!0;return t=>{let o=e[t];return o===n?(a=!1,!0):o===`-`||o===`−`?!0:!r.has(o)||a&&i.has(o)?!1:(a=!1,!0)}},q2=(e,t,n,r)=>{let i=Math.min(Math.max(n,0),e.length),a=e.length-t.length;if(a>0&&a<=i&&e.slice(0,i-a)+e.slice(i)===t)return i-a;if(i===e.length&&CFe.test(e))return t.length;let o=K2(e,r),s=0;for(let e=0;e<i;e+=1)o(e)&&(s+=1);let c=K2(t,r);if(s===0){for(let e=0;e<t.length;e+=1)if(c(e))return e;return i===e.length?t.length:0}let l=0;for(let e=0;e<t.length;e+=1)if(c(e)&&(l+=1,l===s))return e+1;return t.length},J2=(e,t)=>{let{groupSeparator:n,decimalSeparator:r}=W2(t),i=e.trim();return n&&(i=i.split(n).join(``)),r!==`.`&&(i=i.replace(r,`.`)),i},Y2=(e,t)=>{let{decimalSeparator:n}=W2(t),r=0;for(let t of e)t===n&&(r+=1);return r},X2=(e,t)=>Y2(e,t)>1,wFe=(e,t,n)=>{let r=J2(String(e??``),t);return!r||!/^-?\d+$/.test(r)?!1:r.replace(/^-/,``).length>=n},Z2=(e,t,n,r)=>wFe(e,n,r)&&Y2(t,n)>0,TFe=(e,t)=>{let n=e.startsWith(`-`),r=n?e.slice(1):e,i=W2(t).groupSeparator||`,`,a=[],o=r;for(;o.length>3;)a.unshift(o.slice(-3)),o=o.slice(0,-3);a.unshift(o);let s=a.join(i);return n?`-${s}`:s},EFe=e=>{let t=e.replace(/^-/,``),n=t.indexOf(`.`);return(n===-1?t:t.slice(0,n)).length>15},DFe=(e,t,n)=>{let r=e.startsWith(`-`),i=r?e.slice(1):e,a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a),s=a===-1?``:i.slice(a+1),c=n.minimumFractionDigits,l=n.maximumFractionDigits;l!==void 0&&s.length>l&&(s=s.slice(0,l)),c!==void 0&&s.length<c&&(s=s.padEnd(c,`0`));let u=r?`-${o}`:o,d=TFe(u,t),{decimalSeparator:f}=G2(e,t);return a===-1?c!==void 0&&c>0?`${d}${f}${`0`.repeat(c)}`:d:l===0?d:`${d}${f}${s}`},OFe=(e,t,n)=>{let r=BigInt(e);if(n!==void 0&&!Number.isNaN(n)){let e=BigInt(Math.trunc(n));r>e&&(r=e)}if(t!==void 0&&!Number.isNaN(t)){let e=BigInt(Math.trunc(t));r<e&&(r=e)}return r.toString()},Q2=(e,t)=>{let{decimalSeparator:n}=G2(e,t);return n===`.`?e:e.replace(/\./g,n)},kFe=(e,t)=>{let n=J2(String(e),t),r=n.replace(/^-/,``).replace(`.`,``).length;return/^-?\d+(\.\d+)?$/.test(n)&&r>15?n:String(new Nf(t).parse(String(e)))},$2=(e,t,n)=>e===``?``:EFe(e)&&/^-?\d+(\.\d*)?$/.test(e)?DFe(e,t,n):Intl.NumberFormat(t,n).format(Number(e)),e4=(e,t)=>{if(!e||e===``)return e;let n=Number(e);if(isNaN(n))return e;let r=e.indexOf(`.`),i=r!==-1,a=i?e.length-r-1:0,o=t.minimumFractionDigits,s=t.maximumFractionDigits;if(a>=o&&a<=s)return e;let c=e;if(a<o){i||(c=e+`.`);let t=o-a;c+=`0`.repeat(t)}if(a>s){let t=i?e.substring(0,r):e,n=(i?e.substring(r+1):``).substring(0,s);c=s===0?t:`${t}.${n}`}return c},AFe=(e,t,n)=>{let{decimalSeparator:r}=G2(e,n),i=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),a=RegExp(`${i}(\\d*?)(0+)$`),o=e.match(a);if(o){let e=o[1],n=o[2],r=String(t);if(!isNaN(Number(t))){if(r.includes(`.`)){let t=r.split(`.`)[1],i=Math.max(0,n.length-(t.length-e.length));return r+`0`.repeat(i)}return r+`.`+e+n}}return String(t)},t4=(e,t,n=!0,r)=>{if(e==null||e===``)return``;let i=typeof e==`number`?e.toString():e,a=r??12;if(X2(i,t))return``;let o;if(n)o=kFe(i,t);else{let{decimalSeparator:e}=G2(i,t);if(e!==`.`){o=i.replace(RegExp(`\\${e}`,`g`),`.`);let t=o.indexOf(`.`);t!==-1&&(o=o.substring(0,t))}else o=i}if(o=String(o),!/^-?\d*\.?\d+$/.test(o))return``;if(a!==void 0&&o.replace(`.`,``).replace(/^0+/,``).length>a){let e=o.indexOf(`.`);if(e!==-1){let t=o.substring(0,e),n=t.length;if(n>=a)return o.substring(0,a);{let r=a-n;return`${t}.${o.substring(e+1).substring(0,r)}`}}return o.substring(0,a)}return o},jFe=(e,t,n,r)=>{if(n!==void 0&&Y2(e,t)>0){let i=J2(e,t),a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a);if(Z2(r===void 0?o:r,e,t,n))return``}let i=t4(e,t,!0,n);return AFe(e,i,t)},n4=(e,t,n=!0,r,i,a)=>{let o=t4(e,t,n,a);if(!o)return``;let s=o.replace(/^-/,``).replace(`.`,``).length;if(/^-?\d+$/.test(o)&&s>15)try{return OFe(o,r,i)}catch{return o}let c=parseFloat(o);return isNaN(c)?c=``:(c=Math.min(c,i??c),c=Math.max(c,r??c)),String(c)},MFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)+t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))+1;if(o<=9){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))+t;r<=9?(e=r+e,t=0):(e=`0`+e,t=1)}return t===1?parseInt(n.substring(0,r))+1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)+t).toString()}},NFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)-t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))-1;if(o>=0){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))-t;r>=0?(e=r+e,t=0):(e=`9`+e,t=1)}return t===1?parseInt(n.substring(0,r))-1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)-t).toString()}},r4=e=>{try{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}catch{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}};var i4=class extends D0(_u){constructor(){super(...arguments),this.autocomplete=`off`,this.hideStep=!1,this.value=``,this.withFormatting=!1,this.locale=`en-US`,this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?r4(this.value):this.step;let t=MFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=n4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?r4(this.value):this.step;let t=NFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=n4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return/* @__PURE__ */ RegExp(`[.]$`)}writeControlValue(e){let t=this.control,n=t.value;if(n===e)return;let{selectionStart:r,selectionEnd:i}=t;if(t.value=e,r===null||t.getRootNode().activeElement!==t)return;let a=q2(n,e,r,this.locale),o=i===null||i===r?a:q2(n,e,i,this.locale);t.setSelectionRange(a,o)}restoreControlToCommittedValue(){if(!this.control)return;let e=this.value;this.writeControlValue(e?this.withFormatting?$2(e,this.locale,this.options):Q2(String(e),this.locale):``),this.isUserInput=!1}skipGroupSeparator(e){if(!this.withFormatting||e.ctrlKey||e.metaKey||e.altKey)return;let{value:t,selectionStart:n,selectionEnd:r}=this.control;if(n===null||n!==r)return;let{groupSeparator:i}=G2(t,this.locale);i&&(e.key===`Backspace`&&t[n-1]===i?this.control.setSelectionRange(n-1,n-1):e.key===`Delete`&&t[n]===i&&this.control.setSelectionRange(n+1,n+1))}handleKeyDown(e){return e.key===`Enter`&&(this.isUserInput=!1),this.control&&(e.key===`Backspace`||e.key===`Delete`)&&this.skipGroupSeparator(e),super.handleKeyDown(e)}handleTextInput(){if(this.control&&this.control.value!==`-`&&this.control.value!==`-0`){if(X2(this.control.value,this.locale)){this.restoreControlToCommittedValue();return}if(Z2(this.value,this.control.value,this.locale,this.maximumInputPrecision)){this.restoreControlToCommittedValue();return}this.isUserInput=!0,this.withFormatting&&!new Nf(this.locale).hasSeparator(this.control.value)?x.queueUpdate(()=>{let e=this.value,t=jFe(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(!t&&e&&this.control.value!==``){this.restoreControlToCommittedValue();return}if(this.control){let e=this.withFormatting&&t!==``?$2(t,this.locale,this.options):Q2(t,this.locale);this.writeControlValue(e4(e,this.options))}this.value=e4(t,this.options),this.$emit(`input`)}):!this.withFormatting&&!this.hasSeparatorWithoutDecimals().test(this.control.value)&&x.queueUpdate(()=>{this.control&&this.writeControlValue(this.control.value.replace(/[^0-9.-]/g,``).replace(/(?!^)-/g,``)),this.value=this.control?.value||``,this.$emit(`input`)})}}valueChanged(e,t){if(t==null&&this.control){this.control.value=``;return}if(t!=null&&t!==e){if(!this.isUserInput){this.value=n4(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),x.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?$2(this.value,this.locale,this.options):this.value)});return}return}}handleBlur(){if(!this.control)return;this.isUserInput=!1;let e=n4(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?e4(e,this.options):e),this.control.value=this.withFormatting&&this.value?$2(this.value,this.locale,this.options):this.value,this.$emit(`input`)}};q([D],i4.prototype,`autocomplete`,void 0),q([D({mode:`boolean`})],i4.prototype,`hideStep`,void 0),q([D({converter:{fromView:e=>e==null?``:String(e),toView:e=>e}})],i4.prototype,`value`,void 0),q([D({mode:`boolean`})],i4.prototype,`withFormatting`,void 0),q([D],i4.prototype,`locale`,void 0),q([D({mode:`boolean`})],i4.prototype,`autoStepPrecision`,void 0),q([D],i4.prototype,`maximumInputPrecision`,void 0);let a4={delegatesFocus:!0,mode:`open`},o4={stepDownGlyph:`
|
|
926
|
+
`};I2.compose(Object.assign({baseName:`menu-item`,template:P2,styles:F2,shadowOptions:void 0},L2));let CFe=O` ${P1}`,R2=T` ${F1} `,z2={mode:`open`,delegatesFocus:!0},B2={};var V2=class extends Z1{show(){var e,t;(e=this.onShowCallback)==null||e.call(this),(t=this.mainElement)==null||t.showModal()}};V2.compose(Object.assign({baseName:`modal`,template:R2,styles:CFe,shadowOptions:z2},B2));let H2=(e,t)=>T`<template class="${e=>[e.readOnly?`readonly`:``,e.prefix?`has-prefix`:``,e.suffix?`has-suffix`:``].filter(Boolean).join(` `)}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${xt(`defaultSlottedNodes`)}></slot></label><div class="root" part="root">${Tt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input class="control" part="control" name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" id="${e=>e.id?e.id:`control`}" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${A(e=>!e.hideStep&&!e.readOnly&&!e.disabled,T`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||``}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||``}</slot></div></div>`)} ${wt(e,t)}</div></template>`,wFe=(e,t)=>O` ${gu(e,t)} ::part(label){color: var(--neutral-foreground-rest)}fast-text-field{display: unset}.controls{margin-bottom: auto;margin-inline-end: 5px;margin-top: auto}.step-down, .step-up{display: block;fill: var(--neutral-foreground-rest)}.step-down-glyph, .step-up-glyph{padding: unset}::part(end){margin-inline-end: unset}${M0}`,U2=/* @__PURE__ */ new Map,W2=e=>{let t=U2.get(e);if(t)return t;let n=new Intl.NumberFormat(e).formatToParts(12345.6),r=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)],i={decimalSeparator:n.find(e=>e.type===`decimal`)?.value||`.`,groupSeparator:n.find(e=>e.type===`group`)?.value||``,digits:/* @__PURE__ */ new Set([...`0123456789`,...r]),zeroDigits:/* @__PURE__ */ new Set([`0`,r[r.length-1]])};return U2.set(e,i),i},G2=(e,t)=>{let{decimalSeparator:n,groupSeparator:r}=W2(t);return{decimalSeparator:n,groupSeparator:r}},TFe=/[kmb]\s*$/i,K2=(e,t)=>{let{decimalSeparator:n,digits:r,zeroDigits:i}=W2(t),a=!0;return t=>{let o=e[t];return o===n?(a=!1,!0):o===`-`||o===`−`?!0:!r.has(o)||a&&i.has(o)?!1:(a=!1,!0)}},q2=(e,t,n,r)=>{let i=Math.min(Math.max(n,0),e.length),a=e.length-t.length;if(a>0&&a<=i&&e.slice(0,i-a)+e.slice(i)===t)return i-a;if(i===e.length&&TFe.test(e))return t.length;let o=K2(e,r),s=0;for(let e=0;e<i;e+=1)o(e)&&(s+=1);let c=K2(t,r);if(s===0){for(let e=0;e<t.length;e+=1)if(c(e))return e;return i===e.length?t.length:0}let l=0;for(let e=0;e<t.length;e+=1)if(c(e)&&(l+=1,l===s))return e+1;return t.length},J2=(e,t)=>{let{groupSeparator:n,decimalSeparator:r}=W2(t),i=e.trim();return n&&(i=i.split(n).join(``)),r!==`.`&&(i=i.replace(r,`.`)),i},Y2=(e,t)=>{let{decimalSeparator:n}=W2(t),r=0;for(let t of e)t===n&&(r+=1);return r},X2=(e,t)=>Y2(e,t)>1,EFe=(e,t,n)=>{let r=J2(String(e??``),t);return!r||!/^-?\d+$/.test(r)?!1:r.replace(/^-/,``).length>=n},Z2=(e,t,n,r)=>EFe(e,n,r)&&Y2(t,n)>0,DFe=(e,t)=>{let n=e.startsWith(`-`),r=n?e.slice(1):e,i=W2(t).groupSeparator||`,`,a=[],o=r;for(;o.length>3;)a.unshift(o.slice(-3)),o=o.slice(0,-3);a.unshift(o);let s=a.join(i);return n?`-${s}`:s},OFe=e=>{let t=e.replace(/^-/,``),n=t.indexOf(`.`);return(n===-1?t:t.slice(0,n)).length>15},kFe=(e,t,n)=>{let r=e.startsWith(`-`),i=r?e.slice(1):e,a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a),s=a===-1?``:i.slice(a+1),c=n.minimumFractionDigits,l=n.maximumFractionDigits;l!==void 0&&s.length>l&&(s=s.slice(0,l)),c!==void 0&&s.length<c&&(s=s.padEnd(c,`0`));let u=r?`-${o}`:o,d=DFe(u,t),{decimalSeparator:f}=G2(e,t);return a===-1?c!==void 0&&c>0?`${d}${f}${`0`.repeat(c)}`:d:l===0?d:`${d}${f}${s}`},AFe=(e,t,n)=>{let r=BigInt(e);if(n!==void 0&&!Number.isNaN(n)){let e=BigInt(Math.trunc(n));r>e&&(r=e)}if(t!==void 0&&!Number.isNaN(t)){let e=BigInt(Math.trunc(t));r<e&&(r=e)}return r.toString()},Q2=(e,t)=>{let{decimalSeparator:n}=G2(e,t);return n===`.`?e:e.replace(/\./g,n)},jFe=(e,t)=>{let n=J2(String(e),t),r=n.replace(/^-/,``).replace(`.`,``).length;return/^-?\d+(\.\d+)?$/.test(n)&&r>15?n:String(new Nf(t).parse(String(e)))},$2=(e,t,n)=>e===``?``:OFe(e)&&/^-?\d+(\.\d*)?$/.test(e)?kFe(e,t,n):Intl.NumberFormat(t,n).format(Number(e)),e4=(e,t)=>{if(!e||e===``)return e;let n=Number(e);if(isNaN(n))return e;let r=e.indexOf(`.`),i=r!==-1,a=i?e.length-r-1:0,o=t.minimumFractionDigits,s=t.maximumFractionDigits;if(a>=o&&a<=s)return e;let c=e;if(a<o){i||(c=e+`.`);let t=o-a;c+=`0`.repeat(t)}if(a>s){let t=i?e.substring(0,r):e,n=(i?e.substring(r+1):``).substring(0,s);c=s===0?t:`${t}.${n}`}return c},MFe=(e,t,n)=>{let{decimalSeparator:r}=G2(e,n),i=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),a=RegExp(`${i}(\\d*?)(0+)$`),o=e.match(a);if(o){let e=o[1],n=o[2],r=String(t);if(!isNaN(Number(t))){if(r.includes(`.`)){let t=r.split(`.`)[1],i=Math.max(0,n.length-(t.length-e.length));return r+`0`.repeat(i)}return r+`.`+e+n}}return String(t)},t4=(e,t,n=!0,r)=>{if(e==null||e===``)return``;let i=typeof e==`number`?e.toString():e,a=r??12;if(X2(i,t))return``;let o;if(n)o=jFe(i,t);else{let{decimalSeparator:e}=G2(i,t);if(e!==`.`){o=i.replace(RegExp(`\\${e}`,`g`),`.`);let t=o.indexOf(`.`);t!==-1&&(o=o.substring(0,t))}else o=i}if(o=String(o),!/^-?\d*\.?\d+$/.test(o))return``;if(a!==void 0&&o.replace(`.`,``).replace(/^0+/,``).length>a){let e=o.indexOf(`.`);if(e!==-1){let t=o.substring(0,e),n=t.length;if(n>=a)return o.substring(0,a);{let r=a-n;return`${t}.${o.substring(e+1).substring(0,r)}`}}return o.substring(0,a)}return o},NFe=(e,t,n,r)=>{if(n!==void 0&&Y2(e,t)>0){let i=J2(e,t),a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a);if(Z2(r===void 0?o:r,e,t,n))return``}let i=t4(e,t,!0,n);return MFe(e,i,t)},n4=(e,t,n=!0,r,i,a)=>{let o=t4(e,t,n,a);if(!o)return``;let s=o.replace(/^-/,``).replace(`.`,``).length;if(/^-?\d+$/.test(o)&&s>15)try{return AFe(o,r,i)}catch{return o}let c=parseFloat(o);return isNaN(c)?c=``:(c=Math.min(c,i??c),c=Math.max(c,r??c)),String(c)},PFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)+t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))+1;if(o<=9){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))+t;r<=9?(e=r+e,t=0):(e=`0`+e,t=1)}return t===1?parseInt(n.substring(0,r))+1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)+t).toString()}},FFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)-t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))-1;if(o>=0){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))-t;r>=0?(e=r+e,t=0):(e=`9`+e,t=1)}return t===1?parseInt(n.substring(0,r))-1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)-t).toString()}},r4=e=>{try{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}catch{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}};var i4=class extends D0(_u){constructor(){super(...arguments),this.autocomplete=`off`,this.hideStep=!1,this.value=``,this.withFormatting=!1,this.locale=`en-US`,this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?r4(this.value):this.step;let t=PFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=n4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?r4(this.value):this.step;let t=FFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=n4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return/* @__PURE__ */ RegExp(`[.]$`)}writeControlValue(e){let t=this.control,n=t.value;if(n===e)return;let{selectionStart:r,selectionEnd:i}=t;if(t.value=e,r===null||t.getRootNode().activeElement!==t)return;let a=q2(n,e,r,this.locale),o=i===null||i===r?a:q2(n,e,i,this.locale);t.setSelectionRange(a,o)}restoreControlToCommittedValue(){if(!this.control)return;let e=this.value;this.writeControlValue(e?this.withFormatting?$2(e,this.locale,this.options):Q2(String(e),this.locale):``),this.isUserInput=!1}skipGroupSeparator(e){if(!this.withFormatting||e.ctrlKey||e.metaKey||e.altKey)return;let{value:t,selectionStart:n,selectionEnd:r}=this.control;if(n===null||n!==r)return;let{groupSeparator:i}=G2(t,this.locale);i&&(e.key===`Backspace`&&t[n-1]===i?this.control.setSelectionRange(n-1,n-1):e.key===`Delete`&&t[n]===i&&this.control.setSelectionRange(n+1,n+1))}handleKeyDown(e){return e.key===`Enter`&&(this.isUserInput=!1),this.control&&(e.key===`Backspace`||e.key===`Delete`)&&this.skipGroupSeparator(e),super.handleKeyDown(e)}handleTextInput(){if(this.control&&this.control.value!==`-`&&this.control.value!==`-0`){if(X2(this.control.value,this.locale)){this.restoreControlToCommittedValue();return}if(Z2(this.value,this.control.value,this.locale,this.maximumInputPrecision)){this.restoreControlToCommittedValue();return}this.isUserInput=!0,this.withFormatting&&!new Nf(this.locale).hasSeparator(this.control.value)?x.queueUpdate(()=>{let e=this.value,t=NFe(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(!t&&e&&this.control.value!==``){this.restoreControlToCommittedValue();return}if(this.control){let e=this.withFormatting&&t!==``?$2(t,this.locale,this.options):Q2(t,this.locale);this.writeControlValue(e4(e,this.options))}this.value=e4(t,this.options),this.$emit(`input`)}):!this.withFormatting&&!this.hasSeparatorWithoutDecimals().test(this.control.value)&&x.queueUpdate(()=>{this.control&&this.writeControlValue(this.control.value.replace(/[^0-9.-]/g,``).replace(/(?!^)-/g,``)),this.value=this.control?.value||``,this.$emit(`input`)})}}valueChanged(e,t){if(t==null&&this.control){this.control.value=``;return}if(t!=null&&t!==e){if(!this.isUserInput){this.value=n4(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),x.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?$2(this.value,this.locale,this.options):this.value)});return}return}}handleBlur(){if(!this.control)return;this.isUserInput=!1;let e=n4(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?e4(e,this.options):e),this.control.value=this.withFormatting&&this.value?$2(this.value,this.locale,this.options):this.value,this.$emit(`input`)}};q([D],i4.prototype,`autocomplete`,void 0),q([D({mode:`boolean`})],i4.prototype,`hideStep`,void 0),q([D({converter:{fromView:e=>e==null?``:String(e),toView:e=>e}})],i4.prototype,`value`,void 0),q([D({mode:`boolean`})],i4.prototype,`withFormatting`,void 0),q([D],i4.prototype,`locale`,void 0),q([D({mode:`boolean`})],i4.prototype,`autoStepPrecision`,void 0),q([D],i4.prototype,`maximumInputPrecision`,void 0);let a4={delegatesFocus:!0,mode:`open`},o4={stepDownGlyph:`
|
|
927
927
|
<svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">
|
|
928
928
|
<path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>
|
|
929
929
|
</svg>
|
|
@@ -931,18 +931,18 @@ let HI={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
|
|
|
931
931
|
<svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">
|
|
932
932
|
<path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>
|
|
933
933
|
</svg>
|
|
934
|
-
`};i4.compose(Object.assign({baseName:`number-field`,template:H2,styles:
|
|
934
|
+
`};i4.compose(Object.assign({baseName:`number-field`,template:H2,styles:wFe,shadowOptions:a4},o4));let s4=(e,t)=>O` :host{display: block}.label{display: flex;align-items: center;padding: 0 10px;height: 32px;font-weight: bold;user-select: none}.items{display: flex;flex-direction: column}/* Indent options inside the group */ ::slotted(*){padding-left: 20px}`,c4=(e,t)=>T`<template role="option"><div class="label" part="label" role="presentation">${e=>e.groupLabel}</div><div class="items" part="items" role="group" aria-label="${e=>e.groupLabel}"><slot></slot></div></template>`;var l4=class extends Lr{connectedCallback(){super.connectedCallback(),this.disabled=!0}};q([D({attribute:`label`})],l4.prototype,`groupLabel`,void 0),l4.compose({baseName:`optgroup`,template:c4,styles:s4});let u4=(e,t)=>la(e,t),d4=(e,t)=>O` ${yu(e,t)} :host{height: calc(var(--design-unit) * 2px)}`;var f4=class extends ca{};let p4={indeterminateIndicator1:`<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>`,indeterminateIndicator2:`<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>`},IFe=f4.compose(Object.assign({baseName:`progress`,template:u4,styles:d4,shadowOptions:void 0},p4));function LFe(e){return new Proxy(e,{get:(e,t,...n)=>{if([`withPrefix`,`withShadowRootMode`,`withElementDisambiguation`].includes(t))throw Error(`Modification of the Design System is not allowed.`);return Reflect.get(e,t,...n)}})}let m4=(e,t=`foundation`,n,r)=>(e&&_T(n??jT,r??MT,e),LFe(li.getOrCreate(e).withPrefix(t))),h4={app:`app`,component:`component`};m4().register(IFe({prefix:`next-update`}));var g4=class extends P{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=h4.app,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{if(this.isDismissed||this.status.isHealthy){this.onClose();return}this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Pn.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case Pn.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case Mn:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===h4.component&&fb.warn(`SystemHealthOverlay has support for app overlays only right now.`)}logLevelChanged(){Qy.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(t?.isHealthy===!1&&!this.isOpen&&this.onOpen(),t?.isHealthy===!0&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=pn([`healthy`,this.status.isOnline],[`unhealthy`,!this.status.isOnline]),this.isHealthyClassNames=pn([`healthy`,this.status.isHealthy],[`unhealthy`,!this.status.isHealthy]),this.isSocketHealthyClassNames=pn([`healthy`,this.isSocketHealthy],[`unhealthy`,!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=pn([`healthy`,this.status.resourcesAllConnected],[`unhealthy`,!this.status.resourcesAllConnected],[`hidden`,!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=pn([`open`,this.isOpen],[`dismissed`,this.isDismissed]),this.containerClassNames=pn(this.isHealthyClassNames,[`open`,this.isOpen],[`dismissed`,this.isDismissed])}startTimeTillNextUpdateCountdown(){let e=1e3,t=this.status.nextUpdate-Date.now(),n=t,r=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:t,remainMs:n,remainPercent:r},this.timeTillNextUpdateInterval=setInterval(()=>{n-=e,r=Math.floor(n/t*100),this.timeTillNextUpdate={totalMs:t,remainMs:n,remainPercent:r},n<0&&clearInterval(this.timeTillNextUpdateInterval)},e)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){return this.resourceList?.length>0}eventBridge(){return this.config.eventEmitter??document}addEventListeners(){this.eventBridge().addEventListener(Gy,this.onSystemHealthChanged,!0),document.addEventListener(`keydown`,this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(Gy,this.onSystemHealthChanged,!0),document.removeEventListener(`keydown`,this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?T`<span class="checkmark">✔</span>`:T`<span class="checkmark">✘</span>`}};q([qy],g4.prototype,`config`,void 0),q([rb],g4.prototype,`networkMonitor`,void 0),q([C],g4.prototype,`resourceList`,void 0),q([C],g4.prototype,`isOpen`,void 0),q([C],g4.prototype,`wasOpenedByUser`,void 0),q([C],g4.prototype,`isDismissed`,void 0),q([C],g4.prototype,`templateClassNames`,void 0),q([C],g4.prototype,`containerClassNames`,void 0),q([C],g4.prototype,`isOnlineClassNames`,void 0),q([C],g4.prototype,`isHealthyClassNames`,void 0),q([C],g4.prototype,`isSocketHealthyClassNames`,void 0),q([C],g4.prototype,`resourcesAllConnectedClassNames`,void 0),q([C],g4.prototype,`timeTillNextUpdate`,void 0),q([C],g4.prototype,`saveDataCallback`,void 0),q([D],g4.prototype,`mode`,void 0),q([D({attribute:`log-level`,converter:E})],g4.prototype,`logLevel`,void 0),q([C],g4.prototype,`status`,void 0);let _4=(e,t)=>T`<template class="${e=>e.templateClassNames}"><header class="${e=>e.isHealthyClassNames}" part="header"><h1>System ${e=>zn(e.isHealthyClassNames)}</h1>${A(e=>!e.status.isHealthy,T`<span class="data-warning">Data Validity Unknown</span>`)}<div class="controls">${A(e=>e.isDismissed,T`<a href="#" class="open-button" @click="${e=>e.onOpen(!0)}">View Status</a>`)} ${A(e=>!e.isDismissed,T`<a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
|
|
935
935
|
Update Status </a><a href="#" class="report-status-button" @click="${e=>e.onReportStatus()}">
|
|
936
936
|
Report Status </a>`)} ${A(e=>!e.status.isHealthy&&e.saveDataCallback,T`<a href="#" class="save-data-button" @click="${e=>e.saveDataCallback()}">
|
|
937
937
|
Save Data </a>`)}<a href="#" class="reload-window-button" @click="${e=>e.onReloadWindow()}">
|
|
938
|
-
Reload Window </a><a href="#" class="dismiss-button" @click="${e=>e.onDismiss()}">Dismiss (Esc)</a></div></header><div class="container ${e=>e.containerClassNames}" part="container"><section class="network-section ${e=>e.isOnlineClassNames}" part="network-section"><h2>Network ${e=>zn(e.status.isOnline?`online`:`offline`)}</h2><dl class="resource-list"><div class="resource ${e=>e.isOnlineClassNames}"><div class="attributes"><div class="online"><dt>Online</dt><dd>${e=>e.status.isOnline}</dd></div><div class="authenticated"><dt>Authenticated</dt><dd>${e=>e.status.isAuthenticated}</dd></div>${A(e=>e.status.username,T`<div class="username"><dt>Username</dt><dd>${e=>e.status.username}</dd></div>`)}<div class="platform-type"><dt>Platform Type</dt><dd>${e=>zn(e.status.browserInformation.platform?.type)}</dd></div><div class="os-name"><dt>OS Name</dt><dd>${e=>zn(e.status.browserInformation.os?.name)}</dd></div><div class="os-version"><dt>OS Version</dt><dd>${e=>e.status.browserInformation.os?.version}</dd></div></div><div class="attributes"><div class="browser-name"><dt>Browser Name</dt><dd>${e=>zn(e.status.browserInformation.browser?.name)}</dd></div><div class="browser-version"><dt>Browser Version</dt><dd>${e=>e.status.browserInformation.browser?.version}</dd></div><div class="first-updated"><dt>First updated</dt><dd>${e=>kf(e.status.firstUpdated)}</dd></div><div class="last-updated"><dt>Last updated</dt><dd>${e=>kf(e.status.lastUpdated)}</dd></div>${A(e=>!e.status.socket.reconnectionLimitReached,T`<div class="next-update"><dt>Next update</dt><dd>${e=>kf(e.status.nextUpdate)}</dd></div><div class="next-update-progress"><dt></dt><dd><next-update-progress value="${e=>e.timeTillNextUpdate.remainPercent}"></next-update-progress></dd></div>`)}</div><div class="controls">${e=>g4.getCheckmarkTemplate(e.status.isOnline)}</div></div></dl></section><section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section"><h2>WebSocket ${e=>zn(e.isSocketHealthyClassNames)}</h2><dl class="resource-list"><div class="resource ${e=>e.isSocketHealthyClassNames}"><div class="attributes"><div class="configured"><dt>Configured</dt><dd>${e=>e.status.socket.isConfigured}</dd></div><div class="connected"><dt>Connected</dt><dd>${e=>e.status.socket.isConnected}</dd></div><div class="reconnecting"><dt>Reconnecting</dt><dd>${e=>e.status.socket.isReconnecting}</dd></div><div class="reconnection-exhausted"><dt>Reconnection exhausted</dt><dd>${e=>e.status.socket.reconnectionLimitReached}</dd></div></div><div class="attributes"><div class="disconnected-by-server"><dt>Disconnected by server</dt><dd>${e=>e.status.socket.isDisconnectedByServer}</dd></div><div class="closed-clean"><dt>Closed clean</dt><dd>${e=>e.status.socket.closedClean}</dd></div><div class="closed-code"><dt>Closed code</dt><dd>${e=>e.status.socket.closedCode}</dd></div><div class="closed-reason"><dt>Closed reason</dt><dd>${e=>e.status.socket.closedReason}</dd></div></div><div class="controls">${e=>g4.getCheckmarkTemplate(e.isSocketHealthy)}</div></div></dl></section><section class="resource-section ${e=>e.resourcesAllConnectedClassNames}" part="resource-section"><h2>Resources ${e=>zn(e.resourcesAllConnectedClassNames)}</h2><dl class="resource-list">${j(e=>e.resourceList,T`<div class="resource ${e=>e.isConnected?`healthy`:`unhealthy`}"><div class="attributes"><div class="name"><dt>Name</dt><dd>${e=>e.name}</dd></div><div class="status"><dt>Status</dt><dd>${e=>e.isConnected?`Healthy`:`Unhealthy`}</dd></div><div class="last-checked"><dt>Checked</dt><dd>${e=>kf(e.lastUpdated)}</dd></div><div class="subscriptions"><dt>Subscriptions</dt><dd>${e=>e.sourceRef?.length}</dd></div><div class="source-refs"><dt>Source Refs</dt><dd>${e=>e.sourceRef}</dd></div></div><div class="controls">${e=>g4.getCheckmarkTemplate(e.isConnected)}</div></div>`)}</dl></section></div></template>`,v4=(e,t)=>O` :host{--font-family: Menlo, Consolas, monospace;--color-background: black;--color-healthy: green;--color-unhealthy: red;--opacity-low-percent: 10%;--opacity-med-percent: 50%;--opacity-high-percent: 90%;--color-background-opacity-high: rgba(0, 0, 0, 0.9);--color-healthy-opacity-low: rgba(0, 128, 0, 0.1);--color-healthy-opacity-20: rgba(0, 128, 0, 0.2);--color-healthy-opacity-med: rgba(0, 128, 0, 0.5);--color-unhealthy-opacity-low: rgba(255, 0, 0, 0.1);--color-unhealthy-opacity-20: rgba(255, 0, 0, 0.2);--color-unhealthy-opacity-med: rgba(255, 0, 0, 0.5);display: none;position: fixed;inset: 0;width: 100vw;height: 100vh;border: none;z-index: 2147483647;box-sizing: border-box;padding: 2rem 2rem 4rem;overflow: auto;background-color: var(--color-background-opacity-high);line-height: 1.5;font-size: 1rem;font-family: var(--font-family, Menlo, Consolas, monospace) !important}@supports (color: color-mix(in srgb, black, black)){:host{--color-background-opacity-high: color-mix( in srgb, var(--color-background) var(--opacity-high-percent), transparent );--color-healthy-opacity-low: color-mix( in srgb, var(--color-healthy) var(--opacity-low-percent), transparent );--color-healthy-opacity-20: color-mix(in srgb, var(--color-healthy) 20%, transparent);--color-healthy-opacity-med: color-mix( in srgb, var(--color-healthy) var(--opacity-med-percent), transparent );--color-unhealthy-opacity-low: color-mix( in srgb, var(--color-unhealthy) var(--opacity-low-percent), transparent );--color-unhealthy-opacity-20: color-mix(in srgb, var(--color-unhealthy) 20%, transparent);--color-unhealthy-opacity-med: color-mix( in srgb, var(--color-unhealthy) var(--opacity-med-percent), transparent )}}:host(.open.dismissed){display: block;overflow: hidden;padding: 0;height: fit-content;min-height: 45px;background-color: var(--color-unhealthy-opacity-low);inset: unset;position: fixed;bottom: 0}:host(.open.dismissed) header{padding: 0 1em}:host(.open){display: block;height: 100vh}.container{padding: 0 1rem 1.5rem}.container.healthy{background-color: var(--color-healthy-opacity-low)}.container.unhealthy{background-color: var(--color-unhealthy-opacity-low)}.container.open.dismissed{display: none}header{display: flex;justify-content: space-between;align-items: baseline;margin-bottom: 1px;padding: 0.5em 1em;flex-wrap: wrap;flex-direction: row}header h1{font-size: 1em;font-weight: normal}header .controls a{font-size: small;padding: 0 1em 0 0}header.healthy{color: var(--color-healthy);background-color: var(--color-healthy-opacity-low)}header.unhealthy{color: var(--color-unhealthy);background-color: var(--color-unhealthy-opacity-low)}section{padding-top: 1.5em;font-size: x-small}section h2{font-size: 1.3em;margin: 0 0 1em 0;text-align: center;color: var(--color-unhealthy)}section.unhealthy h2{color: var(--color-unhealthy)}section.healthy h2{color: var(--color-healthy)}.hidden{display: none}.resource-list{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));gap: 1rem}.resource{padding: 0.5em 1em;display: grid;grid-template-columns: 3fr 1fr;border-radius: calc(var(--control-corner-radius) * 1px)}.resource.healthy{border: var(--color-healthy-opacity-med) 1px solid;color: var(--color-healthy)}.resource.unhealthy{border: var(--color-unhealthy-opacity-med) 1px solid;color: var(--color-unhealthy)}.resource .attributes > div{display: grid;grid-template-columns: 1fr 2fr}.resource dt{color: inherit;opacity: 0.7}.resource dt:not(:empty)::after{content: ': '}.resource dd{margin: 0 0 0 0.1em}.resource .controls{display: grid;justify-content: center;align-items: center;border-left: 1px var(--color-background-opacity-high) solid}.controls a{display: inline-block;color: inherit;text-underline-offset: 0.2em}.controls .checkmark{font-size: large}.resource.healthy .controls{border-left: 1px var(--color-healthy-opacity-20) solid}.resource.unhealthy .controls{border-left: 1px var(--color-unhealthy-opacity-20) solid}.network-section .resource-list, .socket-section .resource-list{display: grid;grid-template-columns: 1fr}.network-section .resource, .socket-section .resource{grid-template-columns: 2fr 2fr 1fr}next-update-progress{height: 1px;margin: 0 1em 0 0}.resource.healthy next-update-progress::part(determinate){background-color: var(--color-healthy)}.resource.healthy next-update-progress::part(progress){background-color: var(--color-healthy-opacity-20)}.resource.unhealthy next-update-progress::part(determinate){background-color: var(--color-unhealthy)}.resource.unhealthy next-update-progress::part(progress){background-color: var(--color-unhealthy-opacity-20)}.data-warning{font-size: small;margin: 0 0.5em;padding: 0.2em 0.5em;background-color: var(--color-unhealthy-opacity-20)}`,y4={};g4.compose(Object.assign({baseName:`system-health-overlay`,template:_4,styles:v4,shadowOptions:void 0},y4));let b4=O` :host{--pill-fill: var(--neutral-fill-rest, #e5e5e5);--pill-fill-hover: var(--neutral-fill-hover, #d9d9d9);--pill-foreground: var(--neutral-foreground-rest, #1a1a1a);--pill-border-radius: 12px;display: inline-flex}.pill{display: inline-flex;align-items: center;gap: 4px;height: 24px;padding: 0 4px 0 10px;border-radius: var(--pill-border-radius);background: var(--pill-fill);color: var(--pill-foreground);font-size: 12px;line-height: 1}.pill[disabled]{opacity: 50%}.pill-body{display: inline-flex;align-items: center;gap: 4px;border: none;background: transparent;color: inherit;font: inherit;padding: 0;cursor: pointer}.pill-body:disabled{cursor: not-allowed}.pill-body:hover:not(:disabled){background: var(--pill-fill-hover);border-radius: var(--pill-border-radius)}.pill-label{font-weight: 600;white-space: nowrap}.pill-value{white-space: nowrap}.pill-remove{display: inline-flex;align-items: center;justify-content: center;width: 16px;height: 16px;border: none;border-radius: 50%;background: transparent;color: inherit;cursor: pointer;padding: 0}.pill-remove:disabled{cursor: not-allowed}.pill-remove:hover:not(:disabled){background: var(--pill-fill-hover)}`,IFe=e=>{let t=[e.label,e.value].filter(Boolean).join(`: `);return t?`Remove ${t}`:`Remove`},LFe=e=>T`<div class="pill" part="pill" ?disabled=${e=>e.disabled}><button class="pill-body" part="pill-body" type="button" data-test-id="pill-body" ?disabled=${e=>e.disabled}@click=${e=>e.handleBodyClick()}><span class="pill-label" part="pill-label" data-test-id="pill-label">${e=>e.label}${e=>e.value?`:`:``}</span>${A(e=>e.value,T`<span class="pill-value" part="pill-value" data-test-id="pill-value">${e=>e.value}</span>`)}<slot></slot></button>${A(e=>e.removable,T`<button class="pill-remove" part="pill-remove" type="button" data-test-id="pill-remove" aria-label="${e=>IFe(e)}" ?disabled=${e=>e.disabled}@click=${(e,t)=>e.handleRemoveClick(t.event)}><${e}-icon name="xmark" size="2xs"></${e}-icon></button>`)}</div>`,x4=T` ${e=>LFe(gb(e))} `,S4={};var C4=class extends P{constructor(){super(...arguments),this.removable=!0,this.disabled=!1}handleBodyClick(){this.disabled||this.$emit(`pill-click`)}handleRemoveClick(e){e?.stopPropagation(),!this.disabled&&this.$emit(`remove`)}};q([D],C4.prototype,`label`,void 0),q([D],C4.prototype,`value`,void 0),q([D({mode:`boolean`})],C4.prototype,`removable`,void 0),q([D({mode:`boolean`})],C4.prototype,`disabled`,void 0),C4.compose(Object.assign({baseName:`pill`,template:x4,styles:b4,shadowOptions:void 0},S4));var w4=`bottom`,T4=`right`,E4=`left`,RFe=`auto`,D4=[`top`,w4,T4,E4],O4=`start`,zFe=`clippingParents`,BFe=`viewport`,k4=`popper`,VFe=`reference`,A4=/*#__PURE__*/ D4.reduce(function(e,t){return e.concat([t+`-`+O4,t+`-end`])},[]),j4=/*#__PURE__*/ [].concat(D4,[RFe]).reduce(function(e,t){return e.concat([t,t+`-`+O4,t+`-end`])},[]),HFe=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function M4(e){return e?(e.nodeName||``).toLowerCase():null}function N4(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function P4(e){return e instanceof N4(e).Element||e instanceof Element}function F4(e){return e instanceof N4(e).HTMLElement||e instanceof HTMLElement}function I4(e){return typeof ShadowRoot>`u`?!1:e instanceof N4(e).ShadowRoot||e instanceof ShadowRoot}function UFe(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];F4(i)&&M4(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function WFe(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(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});F4(r)&&M4(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var GFe={name:`applyStyles`,enabled:!0,phase:`write`,fn:UFe,effect:WFe,requires:[`computeStyles`]};function L4(e){return e.split(`-`)[0]}var R4=Math.max,z4=Math.min,B4=Math.round;function V4(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function H4(){return!/^((?!chrome|android).)*safari/i.test(V4())}function U4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&F4(e)&&(i=e.offsetWidth>0&&B4(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&B4(r.height)/e.offsetHeight||1);var o=(P4(e)?N4(e):window).visualViewport,s=!H4()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function W4(e){var t=U4(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function G4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&I4(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K4(e){return N4(e).getComputedStyle(e)}function KFe(e){return[`table`,`td`,`th`].indexOf(M4(e))>=0}function q4(e){return((P4(e)?e.ownerDocument:e.document)||window.document).documentElement}function J4(e){return M4(e)===`html`?e:e.assignedSlot||e.parentNode||(I4(e)?e.host:null)||q4(e)}function Y4(e){return!F4(e)||K4(e).position===`fixed`?null:e.offsetParent}function qFe(e){var t=/firefox/i.test(V4());if(/Trident/i.test(V4())&&F4(e)&&K4(e).position===`fixed`)return null;var n=J4(e);for(I4(n)&&(n=n.host);F4(n)&&[`html`,`body`].indexOf(M4(n))<0;){var r=K4(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function X4(e){for(var t=N4(e),n=Y4(e);n&&KFe(n)&&K4(n).position===`static`;)n=Y4(n);return n&&(M4(n)===`html`||M4(n)===`body`&&K4(n).position===`static`)?t:n||qFe(e)||t}function Z4(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Q4(e,t,n){return R4(e,z4(t,n))}function JFe(e,t,n){var r=Q4(e,t,n);return r>n?n:r}function $4(){return{top:0,right:0,bottom:0,left:0}}function e3(e){return Object.assign({},$4(),e)}function t3(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var YFe=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,e3(typeof e==`number`?t3(e,D4):e)};function XFe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=L4(n.placement),c=Z4(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=YFe(i.padding,n),d=W4(a),f=c===`y`?`top`:E4,p=c===`y`?w4:T4,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=X4(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],ee=_/2-d[l]/2+v,x=Q4(y,ee,b),te=c;n.modifiersData[r]=(t={},t[te]=x,t.centerOffset=x-ee,t)}}function ZFe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||G4(t.elements.popper,r)&&(t.elements.arrow=r))}var QFe={name:`arrow`,enabled:!0,phase:`main`,fn:XFe,effect:ZFe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function n3(e){return e.split(`-`)[1]}var $Fe={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function eIe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:B4(n*i)/i||0,y:B4(r*i)/i||0}}function r3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=E4,b=`top`,ee=window;if(l){var x=X4(n),te=`clientHeight`,ne=`clientWidth`;if(x===N4(n)&&(x=q4(n),K4(x).position!==`static`&&s===`absolute`&&(te=`scrollHeight`,ne=`scrollWidth`)),x=x,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=w4;var S=d&&x===ee&&ee.visualViewport?ee.visualViewport.height:x[te];h-=S-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=T4;var C=d&&x===ee&&ee.visualViewport?ee.visualViewport.width:x[ne];p-=C-r.width,p*=c?1:-1}}var w=Object.assign({position:s},l&&$Fe),re=u===!0?eIe({x:p,y:h},N4(n)):{x:p,y:h};if(p=re.x,h=re.y,c){var ie;return Object.assign({},w,(ie={},ie[b]=v?`0`:``,ie[y]=_?`0`:``,ie.transform=(ee.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ie))}return Object.assign({},w,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function tIe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:L4(t.placement),variation:n3(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,r3(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,r3(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var nIe={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:tIe,data:{}},i3={passive:!0};function rIe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=N4(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,i3)}),s&&c.addEventListener(`resize`,n.update,i3),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,i3)}),s&&c.removeEventListener(`resize`,n.update,i3)}}var iIe={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:rIe,data:{}},aIe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function a3(e){return e.replace(/left|right|bottom|top/g,function(e){return aIe[e]})}var oIe={start:`end`,end:`start`};function o3(e){return e.replace(/start|end/g,function(e){return oIe[e]})}function s3(e){var t=N4(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function c3(e){return U4(q4(e)).left+s3(e).scrollLeft}function sIe(e,t){var n=N4(e),r=q4(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=H4();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+c3(e),y:c}}function cIe(e){var t=q4(e),n=s3(e),r=e.ownerDocument?.body,i=R4(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=R4(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+c3(e),s=-n.scrollTop;return K4(r||t).direction===`rtl`&&(o+=R4(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function l3(e){var t=K4(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function u3(e){return[`html`,`body`,`#document`].indexOf(M4(e))>=0?e.ownerDocument.body:F4(e)&&l3(e)?e:u3(J4(e))}function d3(e,t){t===void 0&&(t=[]);var n=u3(e),r=n===e.ownerDocument?.body,i=N4(n),a=r?[i].concat(i.visualViewport||[],l3(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(d3(J4(a)))}function f3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lIe(e,t){var n=U4(e,!1,t===`fixed`);return n.top+=e.clientTop,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}function p3(e,t,n){return t===`viewport`?f3(sIe(e,n)):P4(t)?lIe(t,n):f3(cIe(q4(e)))}function uIe(e){var t=d3(J4(e)),n=[`absolute`,`fixed`].indexOf(K4(e).position)>=0&&F4(e)?X4(e):e;return P4(n)?t.filter(function(e){return P4(e)&&G4(e,n)&&M4(e)!==`body`}):[]}function dIe(e,t,n,r){var i=t===`clippingParents`?uIe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=p3(e,n,r);return t.top=R4(i.top,t.top),t.right=z4(i.right,t.right),t.bottom=z4(i.bottom,t.bottom),t.left=R4(i.left,t.left),t},p3(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function m3(e){var t=e.reference,n=e.element,r=e.placement,i=r?L4(r):null,a=r?n3(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case w4:c={x:o,y:t.y+t.height};break;case T4:c={x:t.x+t.width,y:s};break;case E4:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Z4(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case O4:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function h3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?zFe:s,l=n.rootBoundary,u=l===void 0?BFe:l,d=n.elementContext,f=d===void 0?k4:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=e3(typeof g==`number`?t3(g,D4):g),v=f===`popper`?VFe:k4,y=e.rects.popper,b=e.elements[m?v:f],ee=dIe(P4(b)?b:b.contextElement||q4(e.elements.popper),c,u,o),x=U4(e.elements.reference),te=m3({reference:x,element:y,strategy:`absolute`,placement:i}),ne=f3(Object.assign({},y,te)),S=f===`popper`?ne:x,C={top:ee.top-S.top+_.top,bottom:S.bottom-ee.bottom+_.bottom,left:ee.left-S.left+_.left,right:S.right-ee.right+_.right},w=e.modifiersData.offset;if(f===`popper`&&w){var re=w[i];Object.keys(C).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;C[e]+=re[n]*t})}return C}function fIe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?j4:c,u=n3(r),d=u?s?A4:A4.filter(function(e){return n3(e)===u}):D4,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=h3(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[L4(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function pIe(e){if(L4(e)===`auto`)return[];var t=a3(e);return[o3(e),t,o3(t)]}function mIe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=L4(g)===g,v=c||(_||!m?[a3(g)]:pIe(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(L4(n)===`auto`?fIe(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,ee=t.rects.popper,x=/* @__PURE__ */ new Map,te=!0,ne=y[0],S=0;S<y.length;S++){var C=y[S],w=L4(C),re=n3(C)===O4,ie=[`top`,w4].indexOf(w)>=0,ae=ie?`width`:`height`,oe=h3(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),se=ie?re?T4:E4:re?w4:`top`;b[ae]>ee[ae]&&(se=a3(se));var ce=a3(se),le=[];if(a&&le.push(oe[w]<=0),s&&le.push(oe[se]<=0,oe[ce]<=0),le.every(function(e){return e})){ne=C,te=!1;break}x.set(C,le)}if(te)for(var ue=m?3:1,de=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return ne=t,`break`},fe=ue;fe>0&&de(fe)!==`break`;fe--);t.placement!==ne&&(t.modifiersData[r]._skip=!0,t.placement=ne,t.reset=!0)}}var hIe={name:`flip`,enabled:!0,phase:`main`,fn:mIe,requiresIfExists:[`offset`],data:{_skip:!1}};function g3(e,t,n){return n===void 0&&(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 _3(e){return[`top`,T4,w4,E4].some(function(t){return e[t]>=0})}function gIe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=h3(t,{elementContext:`reference`}),s=h3(t,{altBoundary:!0}),c=g3(o,r),l=g3(s,i,a),u=_3(c),d=_3(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var _Ie={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:gIe};function vIe(e,t,n){var r=L4(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function yIe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=j4.reduce(function(e,n){return e[n]=vIe(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var bIe={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:yIe};function xIe(e){var t=e.state,n=e.name;t.modifiersData[n]=m3({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var SIe={name:`popperOffsets`,enabled:!0,phase:`read`,fn:xIe,data:{}};function CIe(e){return e===`x`?`y`:`x`}function wIe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=h3(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=L4(t.placement),v=n3(t.placement),y=!v,b=Z4(_),ee=CIe(b),x=t.modifiersData.popperOffsets,te=t.rects.reference,ne=t.rects.popper,S=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,C=typeof S==`number`?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,re={x:0,y:0};if(x){if(a){var ie=b===`y`?`top`:E4,ae=b===`y`?w4:T4,oe=b===`y`?`height`:`width`,se=x[b],ce=se+g[ie],le=se-g[ae],ue=p?-ne[oe]/2:0,de=v===`start`?te[oe]:ne[oe],fe=v===`start`?-ne[oe]:-te[oe],pe=t.elements.arrow,me=p&&pe?W4(pe):{width:0,height:0},he=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:$4(),ge=he[ie],_e=he[ae],ve=Q4(0,te[oe],me[oe]),ye=y?te[oe]/2-ue-ve-ge-C.mainAxis:de-ve-ge-C.mainAxis,be=y?-te[oe]/2+ue+ve+_e+C.mainAxis:fe+ve+_e+C.mainAxis,xe=t.elements.arrow&&X4(t.elements.arrow),Se=xe?b===`y`?xe.clientTop||0:xe.clientLeft||0:0,Ce=w?.[b]??0,we=se+ye-Ce-Se,Te=se+be-Ce,Ee=Q4(p?z4(ce,we):ce,se,p?R4(le,Te):le);x[b]=Ee,re[b]=Ee-se}if(s){var De=b===`x`?`top`:E4,Oe=b===`x`?w4:T4,ke=x[ee],Ae=ee===`y`?`height`:`width`,je=ke+g[De],Me=ke-g[Oe],T=[`top`,E4].indexOf(_)!==-1,Ne=w?.[ee]??0,Pe=T?je:ke-te[Ae]-ne[Ae]-Ne+C.altAxis,Fe=T?ke+te[Ae]+ne[Ae]-Ne-C.altAxis:Me,Ie=p&&T?JFe(Pe,ke,Fe):Q4(p?Pe:je,ke,p?Fe:Me);x[ee]=Ie,re[ee]=Ie-ke}t.modifiersData[r]=re}}var TIe={name:`preventOverflow`,enabled:!0,phase:`main`,fn:wIe,requiresIfExists:[`offset`]};function EIe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DIe(e){return e===N4(e)||!F4(e)?s3(e):EIe(e)}function OIe(e){var t=e.getBoundingClientRect(),n=B4(t.width)/e.offsetWidth||1,r=B4(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kIe(e,t,n){n===void 0&&(n=!1);var r=F4(t),i=F4(t)&&OIe(t),a=q4(t),o=U4(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((M4(t)!==`body`||l3(a))&&(s=DIe(t)),F4(t)?(c=U4(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=c3(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function AIe(e){var t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function jIe(e){var t=AIe(e);return HFe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function MIe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function NIe(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var v3={placement:`bottom`,modifiers:[],strategy:`absolute`};function y3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function PIe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?v3:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},v3,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:P4(e)?d3(e):e.contextElement?d3(e.contextElement):[],popper:d3(t)};var s=jIe(NIe([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(y3(t,n)){i.rects={reference:kIe(t,X4(n),i.options.strategy===`fixed`),popper:W4(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:MIe(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!y3(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var FIe=/*#__PURE__*/ PIe({defaultModifiers:[iIe,SIe,nIe,GFe,bIe,hIe,TIe,QFe,_Ie]});let IIe={toView(e){return JSON.stringify(e)},fromView(e){return e==null?e:JSON.parse(e)}};var b3=class extends P{constructor(){super(...arguments),this.show=!1,this.event=`click`,this.placement=`bottom`,this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=FIe(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:`offset`,options:{offset:this.offset||[0,0]}},{name:`flip`,enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}};q([D],b3.prototype,`selector`,void 0),q([D({mode:`boolean`})],b3.prototype,`show`,void 0),q([D],b3.prototype,`event`,void 0),q([D],b3.prototype,`placement`,void 0),q([D({converter:IIe})],b3.prototype,`offset`,void 0),q([D({mode:`boolean`})],b3.prototype,`flip`,void 0);let LIe=O` :host{display: none;inset: unset !important;transform: unset !important}:host([show]){display: block}`,RIe=T`<template><slot></slot></template>`;b3.compose({baseName:`popper`,styles:LIe,template:RIe});let x3=(e,t)=>sa(e,t),S3=(e,t)=>O` ${vu(e,t)}`;var C3=class extends ca{};let w3={indeterminateIndicator:`
|
|
938
|
+
Reload Window </a><a href="#" class="dismiss-button" @click="${e=>e.onDismiss()}">Dismiss (Esc)</a></div></header><div class="container ${e=>e.containerClassNames}" part="container"><section class="network-section ${e=>e.isOnlineClassNames}" part="network-section"><h2>Network ${e=>zn(e.status.isOnline?`online`:`offline`)}</h2><dl class="resource-list"><div class="resource ${e=>e.isOnlineClassNames}"><div class="attributes"><div class="online"><dt>Online</dt><dd>${e=>e.status.isOnline}</dd></div><div class="authenticated"><dt>Authenticated</dt><dd>${e=>e.status.isAuthenticated}</dd></div>${A(e=>e.status.username,T`<div class="username"><dt>Username</dt><dd>${e=>e.status.username}</dd></div>`)}<div class="platform-type"><dt>Platform Type</dt><dd>${e=>zn(e.status.browserInformation.platform?.type)}</dd></div><div class="os-name"><dt>OS Name</dt><dd>${e=>zn(e.status.browserInformation.os?.name)}</dd></div><div class="os-version"><dt>OS Version</dt><dd>${e=>e.status.browserInformation.os?.version}</dd></div></div><div class="attributes"><div class="browser-name"><dt>Browser Name</dt><dd>${e=>zn(e.status.browserInformation.browser?.name)}</dd></div><div class="browser-version"><dt>Browser Version</dt><dd>${e=>e.status.browserInformation.browser?.version}</dd></div><div class="first-updated"><dt>First updated</dt><dd>${e=>kf(e.status.firstUpdated)}</dd></div><div class="last-updated"><dt>Last updated</dt><dd>${e=>kf(e.status.lastUpdated)}</dd></div>${A(e=>!e.status.socket.reconnectionLimitReached,T`<div class="next-update"><dt>Next update</dt><dd>${e=>kf(e.status.nextUpdate)}</dd></div><div class="next-update-progress"><dt></dt><dd><next-update-progress value="${e=>e.timeTillNextUpdate.remainPercent}"></next-update-progress></dd></div>`)}</div><div class="controls">${e=>g4.getCheckmarkTemplate(e.status.isOnline)}</div></div></dl></section><section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section"><h2>WebSocket ${e=>zn(e.isSocketHealthyClassNames)}</h2><dl class="resource-list"><div class="resource ${e=>e.isSocketHealthyClassNames}"><div class="attributes"><div class="configured"><dt>Configured</dt><dd>${e=>e.status.socket.isConfigured}</dd></div><div class="connected"><dt>Connected</dt><dd>${e=>e.status.socket.isConnected}</dd></div><div class="reconnecting"><dt>Reconnecting</dt><dd>${e=>e.status.socket.isReconnecting}</dd></div><div class="reconnection-exhausted"><dt>Reconnection exhausted</dt><dd>${e=>e.status.socket.reconnectionLimitReached}</dd></div></div><div class="attributes"><div class="disconnected-by-server"><dt>Disconnected by server</dt><dd>${e=>e.status.socket.isDisconnectedByServer}</dd></div><div class="closed-clean"><dt>Closed clean</dt><dd>${e=>e.status.socket.closedClean}</dd></div><div class="closed-code"><dt>Closed code</dt><dd>${e=>e.status.socket.closedCode}</dd></div><div class="closed-reason"><dt>Closed reason</dt><dd>${e=>e.status.socket.closedReason}</dd></div></div><div class="controls">${e=>g4.getCheckmarkTemplate(e.isSocketHealthy)}</div></div></dl></section><section class="resource-section ${e=>e.resourcesAllConnectedClassNames}" part="resource-section"><h2>Resources ${e=>zn(e.resourcesAllConnectedClassNames)}</h2><dl class="resource-list">${j(e=>e.resourceList,T`<div class="resource ${e=>e.isConnected?`healthy`:`unhealthy`}"><div class="attributes"><div class="name"><dt>Name</dt><dd>${e=>e.name}</dd></div><div class="status"><dt>Status</dt><dd>${e=>e.isConnected?`Healthy`:`Unhealthy`}</dd></div><div class="last-checked"><dt>Checked</dt><dd>${e=>kf(e.lastUpdated)}</dd></div><div class="subscriptions"><dt>Subscriptions</dt><dd>${e=>e.sourceRef?.length}</dd></div><div class="source-refs"><dt>Source Refs</dt><dd>${e=>e.sourceRef}</dd></div></div><div class="controls">${e=>g4.getCheckmarkTemplate(e.isConnected)}</div></div>`)}</dl></section></div></template>`,v4=(e,t)=>O` :host{--font-family: Menlo, Consolas, monospace;--color-background: black;--color-healthy: green;--color-unhealthy: red;--opacity-low-percent: 10%;--opacity-med-percent: 50%;--opacity-high-percent: 90%;--color-background-opacity-high: rgba(0, 0, 0, 0.9);--color-healthy-opacity-low: rgba(0, 128, 0, 0.1);--color-healthy-opacity-20: rgba(0, 128, 0, 0.2);--color-healthy-opacity-med: rgba(0, 128, 0, 0.5);--color-unhealthy-opacity-low: rgba(255, 0, 0, 0.1);--color-unhealthy-opacity-20: rgba(255, 0, 0, 0.2);--color-unhealthy-opacity-med: rgba(255, 0, 0, 0.5);display: none;position: fixed;inset: 0;width: 100vw;height: 100vh;border: none;z-index: 2147483647;box-sizing: border-box;padding: 2rem 2rem 4rem;overflow: auto;background-color: var(--color-background-opacity-high);line-height: 1.5;font-size: 1rem;font-family: var(--font-family, Menlo, Consolas, monospace) !important}@supports (color: color-mix(in srgb, black, black)){:host{--color-background-opacity-high: color-mix( in srgb, var(--color-background) var(--opacity-high-percent), transparent );--color-healthy-opacity-low: color-mix( in srgb, var(--color-healthy) var(--opacity-low-percent), transparent );--color-healthy-opacity-20: color-mix(in srgb, var(--color-healthy) 20%, transparent);--color-healthy-opacity-med: color-mix( in srgb, var(--color-healthy) var(--opacity-med-percent), transparent );--color-unhealthy-opacity-low: color-mix( in srgb, var(--color-unhealthy) var(--opacity-low-percent), transparent );--color-unhealthy-opacity-20: color-mix(in srgb, var(--color-unhealthy) 20%, transparent);--color-unhealthy-opacity-med: color-mix( in srgb, var(--color-unhealthy) var(--opacity-med-percent), transparent )}}:host(.open.dismissed){display: block;overflow: hidden;padding: 0;height: fit-content;min-height: 45px;background-color: var(--color-unhealthy-opacity-low);inset: unset;position: fixed;bottom: 0}:host(.open.dismissed) header{padding: 0 1em}:host(.open){display: block;height: 100vh}.container{padding: 0 1rem 1.5rem}.container.healthy{background-color: var(--color-healthy-opacity-low)}.container.unhealthy{background-color: var(--color-unhealthy-opacity-low)}.container.open.dismissed{display: none}header{display: flex;justify-content: space-between;align-items: baseline;margin-bottom: 1px;padding: 0.5em 1em;flex-wrap: wrap;flex-direction: row}header h1{font-size: 1em;font-weight: normal}header .controls a{font-size: small;padding: 0 1em 0 0}header.healthy{color: var(--color-healthy);background-color: var(--color-healthy-opacity-low)}header.unhealthy{color: var(--color-unhealthy);background-color: var(--color-unhealthy-opacity-low)}section{padding-top: 1.5em;font-size: x-small}section h2{font-size: 1.3em;margin: 0 0 1em 0;text-align: center;color: var(--color-unhealthy)}section.unhealthy h2{color: var(--color-unhealthy)}section.healthy h2{color: var(--color-healthy)}.hidden{display: none}.resource-list{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));gap: 1rem}.resource{padding: 0.5em 1em;display: grid;grid-template-columns: 3fr 1fr;border-radius: calc(var(--control-corner-radius) * 1px)}.resource.healthy{border: var(--color-healthy-opacity-med) 1px solid;color: var(--color-healthy)}.resource.unhealthy{border: var(--color-unhealthy-opacity-med) 1px solid;color: var(--color-unhealthy)}.resource .attributes > div{display: grid;grid-template-columns: 1fr 2fr}.resource dt{color: inherit;opacity: 0.7}.resource dt:not(:empty)::after{content: ': '}.resource dd{margin: 0 0 0 0.1em}.resource .controls{display: grid;justify-content: center;align-items: center;border-left: 1px var(--color-background-opacity-high) solid}.controls a{display: inline-block;color: inherit;text-underline-offset: 0.2em}.controls .checkmark{font-size: large}.resource.healthy .controls{border-left: 1px var(--color-healthy-opacity-20) solid}.resource.unhealthy .controls{border-left: 1px var(--color-unhealthy-opacity-20) solid}.network-section .resource-list, .socket-section .resource-list{display: grid;grid-template-columns: 1fr}.network-section .resource, .socket-section .resource{grid-template-columns: 2fr 2fr 1fr}next-update-progress{height: 1px;margin: 0 1em 0 0}.resource.healthy next-update-progress::part(determinate){background-color: var(--color-healthy)}.resource.healthy next-update-progress::part(progress){background-color: var(--color-healthy-opacity-20)}.resource.unhealthy next-update-progress::part(determinate){background-color: var(--color-unhealthy)}.resource.unhealthy next-update-progress::part(progress){background-color: var(--color-unhealthy-opacity-20)}.data-warning{font-size: small;margin: 0 0.5em;padding: 0.2em 0.5em;background-color: var(--color-unhealthy-opacity-20)}`,y4={};g4.compose(Object.assign({baseName:`system-health-overlay`,template:_4,styles:v4,shadowOptions:void 0},y4));let b4=O` :host{--pill-fill: var(--neutral-fill-rest, #e5e5e5);--pill-fill-hover: var(--neutral-fill-hover, #d9d9d9);--pill-foreground: var(--neutral-foreground-rest, #1a1a1a);--pill-border-radius: 12px;display: inline-flex}.pill{display: inline-flex;align-items: center;gap: 4px;height: 24px;padding: 0 4px 0 10px;border-radius: var(--pill-border-radius);background: var(--pill-fill);color: var(--pill-foreground);font-size: 12px;line-height: 1}.pill[disabled]{opacity: 50%}.pill-body{display: inline-flex;align-items: center;gap: 4px;border: none;background: transparent;color: inherit;font: inherit;padding: 0;cursor: pointer}.pill-body:disabled{cursor: not-allowed}.pill-body:hover:not(:disabled){background: var(--pill-fill-hover);border-radius: var(--pill-border-radius)}.pill-label{font-weight: 600;white-space: nowrap}.pill-value{white-space: nowrap}.pill-remove{display: inline-flex;align-items: center;justify-content: center;width: 16px;height: 16px;border: none;border-radius: 50%;background: transparent;color: inherit;cursor: pointer;padding: 0}.pill-remove:disabled{cursor: not-allowed}.pill-remove:hover:not(:disabled){background: var(--pill-fill-hover)}`,RFe=e=>{let t=[e.label,e.value].filter(Boolean).join(`: `);return t?`Remove ${t}`:`Remove`},zFe=e=>T`<div class="pill" part="pill" ?disabled=${e=>e.disabled}><button class="pill-body" part="pill-body" type="button" data-test-id="pill-body" ?disabled=${e=>e.disabled}@click=${e=>e.handleBodyClick()}><span class="pill-label" part="pill-label" data-test-id="pill-label">${e=>e.label}${e=>e.value?`:`:``}</span>${A(e=>e.value,T`<span class="pill-value" part="pill-value" data-test-id="pill-value">${e=>e.value}</span>`)}<slot></slot></button>${A(e=>e.removable,T`<button class="pill-remove" part="pill-remove" type="button" data-test-id="pill-remove" aria-label="${e=>RFe(e)}" ?disabled=${e=>e.disabled}@click=${(e,t)=>e.handleRemoveClick(t.event)}><${e}-icon name="xmark" size="2xs"></${e}-icon></button>`)}</div>`,x4=T` ${e=>zFe(gb(e))} `,S4={};var C4=class extends P{constructor(){super(...arguments),this.removable=!0,this.disabled=!1}handleBodyClick(){this.disabled||this.$emit(`pill-click`)}handleRemoveClick(e){e?.stopPropagation(),!this.disabled&&this.$emit(`remove`)}};q([D],C4.prototype,`label`,void 0),q([D],C4.prototype,`value`,void 0),q([D({mode:`boolean`})],C4.prototype,`removable`,void 0),q([D({mode:`boolean`})],C4.prototype,`disabled`,void 0),C4.compose(Object.assign({baseName:`pill`,template:x4,styles:b4,shadowOptions:void 0},S4));var w4=`bottom`,T4=`right`,E4=`left`,BFe=`auto`,D4=[`top`,w4,T4,E4],O4=`start`,VFe=`clippingParents`,HFe=`viewport`,k4=`popper`,UFe=`reference`,A4=/*#__PURE__*/ D4.reduce(function(e,t){return e.concat([t+`-`+O4,t+`-end`])},[]),j4=/*#__PURE__*/ [].concat(D4,[BFe]).reduce(function(e,t){return e.concat([t,t+`-`+O4,t+`-end`])},[]),WFe=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function M4(e){return e?(e.nodeName||``).toLowerCase():null}function N4(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function P4(e){return e instanceof N4(e).Element||e instanceof Element}function F4(e){return e instanceof N4(e).HTMLElement||e instanceof HTMLElement}function I4(e){return typeof ShadowRoot>`u`?!1:e instanceof N4(e).ShadowRoot||e instanceof ShadowRoot}function GFe(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];F4(i)&&M4(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function KFe(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(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});F4(r)&&M4(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var qFe={name:`applyStyles`,enabled:!0,phase:`write`,fn:GFe,effect:KFe,requires:[`computeStyles`]};function L4(e){return e.split(`-`)[0]}var R4=Math.max,z4=Math.min,B4=Math.round;function V4(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function H4(){return!/^((?!chrome|android).)*safari/i.test(V4())}function U4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&F4(e)&&(i=e.offsetWidth>0&&B4(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&B4(r.height)/e.offsetHeight||1);var o=(P4(e)?N4(e):window).visualViewport,s=!H4()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function W4(e){var t=U4(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function G4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&I4(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K4(e){return N4(e).getComputedStyle(e)}function JFe(e){return[`table`,`td`,`th`].indexOf(M4(e))>=0}function q4(e){return((P4(e)?e.ownerDocument:e.document)||window.document).documentElement}function J4(e){return M4(e)===`html`?e:e.assignedSlot||e.parentNode||(I4(e)?e.host:null)||q4(e)}function Y4(e){return!F4(e)||K4(e).position===`fixed`?null:e.offsetParent}function YFe(e){var t=/firefox/i.test(V4());if(/Trident/i.test(V4())&&F4(e)&&K4(e).position===`fixed`)return null;var n=J4(e);for(I4(n)&&(n=n.host);F4(n)&&[`html`,`body`].indexOf(M4(n))<0;){var r=K4(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function X4(e){for(var t=N4(e),n=Y4(e);n&&JFe(n)&&K4(n).position===`static`;)n=Y4(n);return n&&(M4(n)===`html`||M4(n)===`body`&&K4(n).position===`static`)?t:n||YFe(e)||t}function Z4(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Q4(e,t,n){return R4(e,z4(t,n))}function XFe(e,t,n){var r=Q4(e,t,n);return r>n?n:r}function $4(){return{top:0,right:0,bottom:0,left:0}}function e3(e){return Object.assign({},$4(),e)}function t3(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ZFe=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,e3(typeof e==`number`?t3(e,D4):e)};function QFe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=L4(n.placement),c=Z4(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=ZFe(i.padding,n),d=W4(a),f=c===`y`?`top`:E4,p=c===`y`?w4:T4,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=X4(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],ee=_/2-d[l]/2+v,x=Q4(y,ee,b),te=c;n.modifiersData[r]=(t={},t[te]=x,t.centerOffset=x-ee,t)}}function $Fe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||G4(t.elements.popper,r)&&(t.elements.arrow=r))}var eIe={name:`arrow`,enabled:!0,phase:`main`,fn:QFe,effect:$Fe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function n3(e){return e.split(`-`)[1]}var tIe={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function nIe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:B4(n*i)/i||0,y:B4(r*i)/i||0}}function r3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=E4,b=`top`,ee=window;if(l){var x=X4(n),te=`clientHeight`,ne=`clientWidth`;if(x===N4(n)&&(x=q4(n),K4(x).position!==`static`&&s===`absolute`&&(te=`scrollHeight`,ne=`scrollWidth`)),x=x,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=w4;var S=d&&x===ee&&ee.visualViewport?ee.visualViewport.height:x[te];h-=S-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=T4;var C=d&&x===ee&&ee.visualViewport?ee.visualViewport.width:x[ne];p-=C-r.width,p*=c?1:-1}}var w=Object.assign({position:s},l&&tIe),re=u===!0?nIe({x:p,y:h},N4(n)):{x:p,y:h};if(p=re.x,h=re.y,c){var ie;return Object.assign({},w,(ie={},ie[b]=v?`0`:``,ie[y]=_?`0`:``,ie.transform=(ee.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ie))}return Object.assign({},w,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function rIe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:L4(t.placement),variation:n3(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,r3(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,r3(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var iIe={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:rIe,data:{}},i3={passive:!0};function aIe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=N4(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,i3)}),s&&c.addEventListener(`resize`,n.update,i3),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,i3)}),s&&c.removeEventListener(`resize`,n.update,i3)}}var oIe={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:aIe,data:{}},sIe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function a3(e){return e.replace(/left|right|bottom|top/g,function(e){return sIe[e]})}var cIe={start:`end`,end:`start`};function o3(e){return e.replace(/start|end/g,function(e){return cIe[e]})}function s3(e){var t=N4(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function c3(e){return U4(q4(e)).left+s3(e).scrollLeft}function lIe(e,t){var n=N4(e),r=q4(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=H4();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+c3(e),y:c}}function uIe(e){var t=q4(e),n=s3(e),r=e.ownerDocument?.body,i=R4(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=R4(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+c3(e),s=-n.scrollTop;return K4(r||t).direction===`rtl`&&(o+=R4(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function l3(e){var t=K4(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function u3(e){return[`html`,`body`,`#document`].indexOf(M4(e))>=0?e.ownerDocument.body:F4(e)&&l3(e)?e:u3(J4(e))}function d3(e,t){t===void 0&&(t=[]);var n=u3(e),r=n===e.ownerDocument?.body,i=N4(n),a=r?[i].concat(i.visualViewport||[],l3(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(d3(J4(a)))}function f3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dIe(e,t){var n=U4(e,!1,t===`fixed`);return n.top+=e.clientTop,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}function p3(e,t,n){return t===`viewport`?f3(lIe(e,n)):P4(t)?dIe(t,n):f3(uIe(q4(e)))}function fIe(e){var t=d3(J4(e)),n=[`absolute`,`fixed`].indexOf(K4(e).position)>=0&&F4(e)?X4(e):e;return P4(n)?t.filter(function(e){return P4(e)&&G4(e,n)&&M4(e)!==`body`}):[]}function pIe(e,t,n,r){var i=t===`clippingParents`?fIe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=p3(e,n,r);return t.top=R4(i.top,t.top),t.right=z4(i.right,t.right),t.bottom=z4(i.bottom,t.bottom),t.left=R4(i.left,t.left),t},p3(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function m3(e){var t=e.reference,n=e.element,r=e.placement,i=r?L4(r):null,a=r?n3(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case w4:c={x:o,y:t.y+t.height};break;case T4:c={x:t.x+t.width,y:s};break;case E4:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Z4(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case O4:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function h3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?VFe:s,l=n.rootBoundary,u=l===void 0?HFe:l,d=n.elementContext,f=d===void 0?k4:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=e3(typeof g==`number`?t3(g,D4):g),v=f===`popper`?UFe:k4,y=e.rects.popper,b=e.elements[m?v:f],ee=pIe(P4(b)?b:b.contextElement||q4(e.elements.popper),c,u,o),x=U4(e.elements.reference),te=m3({reference:x,element:y,strategy:`absolute`,placement:i}),ne=f3(Object.assign({},y,te)),S=f===`popper`?ne:x,C={top:ee.top-S.top+_.top,bottom:S.bottom-ee.bottom+_.bottom,left:ee.left-S.left+_.left,right:S.right-ee.right+_.right},w=e.modifiersData.offset;if(f===`popper`&&w){var re=w[i];Object.keys(C).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;C[e]+=re[n]*t})}return C}function mIe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?j4:c,u=n3(r),d=u?s?A4:A4.filter(function(e){return n3(e)===u}):D4,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=h3(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[L4(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function hIe(e){if(L4(e)===`auto`)return[];var t=a3(e);return[o3(e),t,o3(t)]}function gIe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=L4(g)===g,v=c||(_||!m?[a3(g)]:hIe(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(L4(n)===`auto`?mIe(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,ee=t.rects.popper,x=/* @__PURE__ */ new Map,te=!0,ne=y[0],S=0;S<y.length;S++){var C=y[S],w=L4(C),re=n3(C)===O4,ie=[`top`,w4].indexOf(w)>=0,ae=ie?`width`:`height`,oe=h3(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),se=ie?re?T4:E4:re?w4:`top`;b[ae]>ee[ae]&&(se=a3(se));var ce=a3(se),le=[];if(a&&le.push(oe[w]<=0),s&&le.push(oe[se]<=0,oe[ce]<=0),le.every(function(e){return e})){ne=C,te=!1;break}x.set(C,le)}if(te)for(var ue=m?3:1,de=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return ne=t,`break`},fe=ue;fe>0&&de(fe)!==`break`;fe--);t.placement!==ne&&(t.modifiersData[r]._skip=!0,t.placement=ne,t.reset=!0)}}var _Ie={name:`flip`,enabled:!0,phase:`main`,fn:gIe,requiresIfExists:[`offset`],data:{_skip:!1}};function g3(e,t,n){return n===void 0&&(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 _3(e){return[`top`,T4,w4,E4].some(function(t){return e[t]>=0})}function vIe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=h3(t,{elementContext:`reference`}),s=h3(t,{altBoundary:!0}),c=g3(o,r),l=g3(s,i,a),u=_3(c),d=_3(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var yIe={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:vIe};function bIe(e,t,n){var r=L4(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function xIe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=j4.reduce(function(e,n){return e[n]=bIe(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var SIe={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:xIe};function CIe(e){var t=e.state,n=e.name;t.modifiersData[n]=m3({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var wIe={name:`popperOffsets`,enabled:!0,phase:`read`,fn:CIe,data:{}};function TIe(e){return e===`x`?`y`:`x`}function EIe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=h3(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=L4(t.placement),v=n3(t.placement),y=!v,b=Z4(_),ee=TIe(b),x=t.modifiersData.popperOffsets,te=t.rects.reference,ne=t.rects.popper,S=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,C=typeof S==`number`?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,re={x:0,y:0};if(x){if(a){var ie=b===`y`?`top`:E4,ae=b===`y`?w4:T4,oe=b===`y`?`height`:`width`,se=x[b],ce=se+g[ie],le=se-g[ae],ue=p?-ne[oe]/2:0,de=v===`start`?te[oe]:ne[oe],fe=v===`start`?-ne[oe]:-te[oe],pe=t.elements.arrow,me=p&&pe?W4(pe):{width:0,height:0},he=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:$4(),ge=he[ie],_e=he[ae],ve=Q4(0,te[oe],me[oe]),ye=y?te[oe]/2-ue-ve-ge-C.mainAxis:de-ve-ge-C.mainAxis,be=y?-te[oe]/2+ue+ve+_e+C.mainAxis:fe+ve+_e+C.mainAxis,xe=t.elements.arrow&&X4(t.elements.arrow),Se=xe?b===`y`?xe.clientTop||0:xe.clientLeft||0:0,Ce=w?.[b]??0,we=se+ye-Ce-Se,Te=se+be-Ce,Ee=Q4(p?z4(ce,we):ce,se,p?R4(le,Te):le);x[b]=Ee,re[b]=Ee-se}if(s){var De=b===`x`?`top`:E4,Oe=b===`x`?w4:T4,ke=x[ee],Ae=ee===`y`?`height`:`width`,je=ke+g[De],Me=ke-g[Oe],T=[`top`,E4].indexOf(_)!==-1,Ne=w?.[ee]??0,Pe=T?je:ke-te[Ae]-ne[Ae]-Ne+C.altAxis,Fe=T?ke+te[Ae]+ne[Ae]-Ne-C.altAxis:Me,Ie=p&&T?XFe(Pe,ke,Fe):Q4(p?Pe:je,ke,p?Fe:Me);x[ee]=Ie,re[ee]=Ie-ke}t.modifiersData[r]=re}}var DIe={name:`preventOverflow`,enabled:!0,phase:`main`,fn:EIe,requiresIfExists:[`offset`]};function OIe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kIe(e){return e===N4(e)||!F4(e)?s3(e):OIe(e)}function AIe(e){var t=e.getBoundingClientRect(),n=B4(t.width)/e.offsetWidth||1,r=B4(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jIe(e,t,n){n===void 0&&(n=!1);var r=F4(t),i=F4(t)&&AIe(t),a=q4(t),o=U4(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((M4(t)!==`body`||l3(a))&&(s=kIe(t)),F4(t)?(c=U4(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=c3(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function MIe(e){var t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function NIe(e){var t=MIe(e);return WFe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function PIe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function FIe(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var v3={placement:`bottom`,modifiers:[],strategy:`absolute`};function y3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function IIe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?v3:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},v3,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:P4(e)?d3(e):e.contextElement?d3(e.contextElement):[],popper:d3(t)};var s=NIe(FIe([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(y3(t,n)){i.rects={reference:jIe(t,X4(n),i.options.strategy===`fixed`),popper:W4(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:PIe(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!y3(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var LIe=/*#__PURE__*/ IIe({defaultModifiers:[oIe,wIe,iIe,qFe,SIe,_Ie,DIe,eIe,yIe]});let RIe={toView(e){return JSON.stringify(e)},fromView(e){return e==null?e:JSON.parse(e)}};var b3=class extends P{constructor(){super(...arguments),this.show=!1,this.event=`click`,this.placement=`bottom`,this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=LIe(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:`offset`,options:{offset:this.offset||[0,0]}},{name:`flip`,enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}};q([D],b3.prototype,`selector`,void 0),q([D({mode:`boolean`})],b3.prototype,`show`,void 0),q([D],b3.prototype,`event`,void 0),q([D],b3.prototype,`placement`,void 0),q([D({converter:RIe})],b3.prototype,`offset`,void 0),q([D({mode:`boolean`})],b3.prototype,`flip`,void 0);let zIe=O` :host{display: none;inset: unset !important;transform: unset !important}:host([show]){display: block}`,BIe=T`<template><slot></slot></template>`;b3.compose({baseName:`popper`,styles:zIe,template:BIe});let x3=(e,t)=>sa(e,t),S3=(e,t)=>O` ${vu(e,t)}`;var C3=class extends ca{};let w3={indeterminateIndicator:`
|
|
939
939
|
<svg class="progress" part="progress" viewBox="0 0 16 16">
|
|
940
940
|
<circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>
|
|
941
941
|
<circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>
|
|
942
942
|
</svg>
|
|
943
943
|
`};C3.compose(Object.assign({baseName:`progress-ring`,template:x3,styles:S3,shadowOptions:void 0},w3));let T3=(e,t)=>fa(e,t),E3=(e,t)=>O` ${xu(e,t)}`;var D3=class extends pa{};let O3={checkedIndicator:`
|
|
944
944
|
<div part="checked-indicator" class="checked-indicator"></div>
|
|
945
|
-
`};D3.compose(Object.assign({baseName:`radio`,template:T3,styles:E3,shadowOptions:void 0},O3));let k3=(e,t)=>ua(e,t),A3=(e,t)=>O` ${bu(e,t)}`;var j3=class extends da{};let M3={};j3.compose(Object.assign({baseName:`radio-group`,template:k3,styles:A3,shadowOptions:void 0},M3));let N3=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}`,P3=e=>T`<template><${e}-scheduler-timezone :timezone=${lf(e=>e.timezone)}@change=${(e,t)=>e.handleChange(t.event,`timezone`)}></${e}-scheduler-timezone><${e}-scheduler-cron-builder :cron=${lf(e=>e.cron)}@change=${(e,t)=>e.handleChange(t.event,`cronExpression`)}min-minute-interval=${e=>e.minMinuteInterval}?disable-tooltips=${e=>e.disableTooltips}></${e}-scheduler-cron-builder></template>`,
|
|
945
|
+
`};D3.compose(Object.assign({baseName:`radio`,template:T3,styles:E3,shadowOptions:void 0},O3));let k3=(e,t)=>ua(e,t),A3=(e,t)=>O` ${bu(e,t)}`;var j3=class extends da{};let M3={};j3.compose(Object.assign({baseName:`radio-group`,template:k3,styles:A3,shadowOptions:void 0},M3));let N3=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}`,P3=e=>T`<template><${e}-scheduler-timezone :timezone=${lf(e=>e.timezone)}@change=${(e,t)=>e.handleChange(t.event,`timezone`)}></${e}-scheduler-timezone><${e}-scheduler-cron-builder :cron=${lf(e=>e.cron)}@change=${(e,t)=>e.handleChange(t.event,`cronExpression`)}min-minute-interval=${e=>e.minMinuteInterval}?disable-tooltips=${e=>e.disableTooltips}></${e}-scheduler-cron-builder></template>`,VIe=T` ${e=>P3(gb(e))} `;var F3=class extends P{constructor(){super(...arguments),this.disableTooltips=!1,this.timezone=``,this.cron=``}cronConfigChanged(){this.timezone=this.cronConfig?.timezone||``,this.cron=this.cronConfig?.cronExpression||``}handleChange(e,t){e.stopPropagation();let{value:n}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:n}),this.$emit(`change`,this.cronConfig)}};q([D({attribute:`min-minute-interval`})],F3.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],F3.prototype,`disableTooltips`,void 0),q([C],F3.prototype,`timezone`,void 0),q([C],F3.prototype,`cron`,void 0),q([C],F3.prototype,`cronConfig`,void 0);let I3={};F3.compose(Object.assign({baseName:`scheduler`,styles:N3,template:VIe,shadowOptions:void 0},I3));var Q;(function(e){e.MINUTES=`Minutes`,e.HOURLY=`Hourly`,e.DAILY=`Daily`,e.WEEKLY=`Weekly`,e.MONTHLY=`Monthly`,e.YEARLY=`Yearly`})(Q||(Q={}));var L3;(function(e){e.WEEK=`Week`,e.WORK_WEEK=`Work week`})(L3||(L3={}));var R3;(function(e){e.DATE=`Date`,e.DAY_OF_MONTH=`Day of month`})(R3||(R3={}));let z3=[{value:`2`,label:`Monday`},{value:`3`,label:`Tuesday`},{value:`4`,label:`Wednesday`},{value:`5`,label:`Thursday`},{value:`6`,label:`Friday`},{value:`7`,label:`Saturday`},{value:`1`,label:`Sunday`}],HIe=[{value:`1`,label:`First`},{value:`2`,label:`Second`},{value:`3`,label:`Third`},{value:`4`,label:`Fourth`},{value:`-1`,label:`Last`}],UIe=[{value:`1`,label:`January`},{value:`2`,label:`February`},{value:`3`,label:`March`},{value:`4`,label:`April`},{value:`5`,label:`May`},{value:`6`,label:`June`},{value:`7`,label:`July`},{value:`8`,label:`August`},{value:`9`,label:`September`},{value:`10`,label:`October`},{value:`11`,label:`November`},{value:`12`,label:`December`}];var B3;(function(e){e.updateCronConfig=`update-cron-config`})(B3||(B3={}));let V3=e=>Number(e)>1?`/${e}`:``;function WIe(e){return e.during===`specific_hours`&&e.hours&&e.hours!==`*`?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}function GIe(e){let t=e.during===`specific_hours`&&e.hours?e.hours:`*`;return`${e.seconds} 0/${e.frequency} ${t} ? * *`}function KIe(e,t=V3){let n=e.weekType===L3.WORK_WEEK?`?`:`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${n} * ${e.weekType===L3.WORK_WEEK?`2-6`:`?`}`}function qIe(e){let t=[...e.selectedDays].join(`,`)||`*`;return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}function JIe(e,t=V3){let{dateOrDay:n,minutes:r,hours:i,seconds:a,frequency:o}=e,s=t(o);return n.type===R3.DATE?`${a} ${r} ${i} ${n.dayDate} *${s} ?`:n.weekNumber===`-1`?`${a} ${r} ${i} ? *${s} ${n.day}L`:`${e.seconds} ${r} ${i} ? *${s} ${n.day}#${n.weekNumber}`}function YIe(e){let{dateOrDay:t,minutes:n,seconds:r,hours:i}=e;return t.type===R3.DATE?`${r} ${n} ${i} ${t.dayDate} ${t.month} ?`:t.weekNumber===`-1`?`${r} ${n} ${i} ? ${t.month} ${t.day}L`:`${r} ${n} ${i} ? ${t.month} ${t.day}#${t.weekNumber}`}let XIe=(e,t,n)=>{let r=Number(e);return!isNaN(r)&&r<=n&&r>=t};function H3(e,t,n,r=!1,i=XIe){if(e===`*`||r&&(e===`?`||e===`L`))return!0;if(r&&e.endsWith(`L`))return i(e.slice(0,-1),t,n);if(e.startsWith(`*/`)||e.startsWith(`0/`))return i(e.substring(2),1,n);if(r&&e.includes(`#`)){let[r,a]=e.split(`#`);return i(r,t,n)&&i(a,1,4)}if(i(e,t,n))return!0;if(e.includes(`-`)){let[r,a]=e.split(`-`);return i(r,t,n)&&i(a,t,n)}return e.includes(`,`)?e.split(`,`).every(e=>H3(e,t,n,r,i)):!1}let ZIe=(e,t=H3)=>{let n=e.trim().split(` `);if(n.length!=6)return!1;let[r,i,a,o,s,c]=n;return t(r,0,59)&&t(i,0,59)&&t(a,0,23)&&t(o,1,31,!0)&&t(s,1,12)&&t(c,0,7,!0)};function QIe(e,t){return{type:Q.DAILY,frequency:e.startsWith(`*/`)?e.split(`*/`)[1]:`1`,weekType:t===`?`?L3.WEEK:L3.WORK_WEEK}}function $Ie(e){let t=e.includes(`/`);return{type:Q.HOURLY,frequency:t?e.split(`/`)[1]:`1`,during:t?`every_hour`:`specific_hours`,hours:t?void 0:e}}function eLe(e,t=`*`){let n=t!==`*`&&t!==`0/1`;return{type:Q.MINUTES,frequency:e.includes(`/`)?e.split(`/`)[1]:`1`,during:n?`specific_hours`:`every_hour`,hours:n?t:void 0}}function tLe(e){return{type:Q.WEEKLY,selectedDays:e===`*`?/* @__PURE__ */ new Set:new Set(e.split(`,`))}}let U3=(e,t,n,r)=>{let i;return i=t===`?`?{type:R3.DAY_OF_MONTH,day:r.split(/[L#]/)[0],weekNumber:r.includes(`#`)?r.split(`#`)[1]:`-1`}:{type:R3.DATE,dayDate:t},e===Q.YEARLY&&(i.month=n),i};function nLe(e,t,n,r=U3){return{type:Q.YEARLY,frequency:n.split(`/`).length===2?n.split(`/`)[1]:`1`,dateOrDay:r(Q.YEARLY,e,t,n.split(`/`)[0])}}function rLe(e,t,n,r=U3){return{type:Q.MONTHLY,frequency:t.startsWith(`*/`)?t.split(`*/`)[1]:`1`,dateOrDay:r(Q.MONTHLY,e,t,n.split(`/`)[0])}}function iLe(e,t){if(!e)return;let[n,r,i,a,o,s]=e.split(` `);if(s!==`?`&&a!==`?`)throw Error(`Support for specifying both a day-of-week AND a day-of-month parameter is not implemented`);if(/^(0|\*)\/\d+$/.test(r))return Object.assign({seconds:n},t.buildConfigForMinutesRecurrence(r,i));if(/^(0|\*)\/\d+$/.test(i)||a===`?`&&s===`*`)return Object.assign({minutes:r,seconds:n},t.buildConfigForHourlyRecurrence(i));if(s===`2-6`||s===`?`&&(a===`*`||a.startsWith(`*`)))return Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForDailyRecurrence(a,s));if(/^([1-7](,[1-7])*)$/.test(s)||s===`*`)return Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForWeeklyRecurrence(s));if(s.includes(`L`)||s.includes(`#`)||/^([1-9]|[12]\d|3[01])$/.test(a)&&s===`?`)return o!=`*`&&!o.startsWith(`*/`)?Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForYearlyRecurrence(a,o,s)):Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForMonthlyRecurrence(a,o,s));throw Error(`Invalid Cron Expression`)}let W3=O` .input-container{display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.row{display: flex;width: 100%;flex-wrap: wrap;align-items: flex-start;gap: calc(var(--design-unit) * 4px)}.minutes-options-row{width: 100%;display: flex;flex-wrap: wrap;align-items: flex-start;gap: calc(var(--design-unit) * 4px)}.break{width: 100%;height: 0}`,G3=O` ${W3} /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 4px)}.flex-row{display: flex;align-items: center;gap: calc(var(--design-unit) * 4px)}.time-select{min-width: 110px;position: relative}[data-test-id='hours-multiselect']{min-width: 400px}[data-test-id='hours-multiselect']::part(options-ol){display: grid;grid-template-columns: repeat(6, 1fr)}.frequency-select{position: relative}.frequency-select::part(end), .time-select::part(end){min-width: 0;width: 0}.frequency-select::part(listbox), .time-select::part(listbox){max-height: 20vh}.suffix-label{position: absolute;right: 35px;/* Move it before the icon */ top: 50%;transform: translateY(-50%);padding: 0 calc(var(--design-unit) * 1px);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-minus-1-font-size);white-space: nowrap}`,aLe=e=>e?.hasOwnProperty(`bubbles`)||e?.hasOwnProperty(`cancelable`)||e?.hasOwnProperty(`composed`)||e?.hasOwnProperty(`broadcast`),K3=(...e)=>{let[t,n,r]=e,i=n;if(aLe(n)&&(r=n,i=void 0),typeof t!=`string`)throw Error(`$emit event types must be typeof string.`);return[t,i,r]};var oLe=class{emit(...e){let[t,...n]=e,[r,i,a]=K3(...n);return t.$emit(r,i,a)}};N.createInterface(e=>e.singleton(oLe));let q3=e=>{class t extends e{$emit(...e){let[t,n,r]=K3(...e);if(r?.broadcast){let e=new CustomEvent(t,Object.assign({detail:n,bubbles:!0,composed:!0,cancelable:!0},r));return e.broadcast=!0,this.dispatchEvent(e)}return super.$emit(t,n,r)}}return t};Ad(`foundation-events`);let sLe=O` ${W3}`,cLe=e=>`
|
|
946
946
|
<p>Select how often the event should occur:</p>
|
|
947
947
|
<ul>
|
|
948
948
|
${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the hour. Can be for every or specific hours.</li>`:``}
|
|
@@ -954,17 +954,17 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
|
|
|
954
954
|
</ul>
|
|
955
955
|
`,J3=`
|
|
956
956
|
<p>Select one or more hours.</p>
|
|
957
|
-
`,
|
|
957
|
+
`,lLe=e=>T`<template><div class="input-container"><label class="label">Of ${t=>t.disableTooltips?``:Lb(`
|
|
958
958
|
<p>Controls the daily frequency:</p>
|
|
959
959
|
<ul>
|
|
960
960
|
<li><strong>Week:</strong> allows you to configure the frequency of repeating days, including both weekdays and weekends.</li>
|
|
961
961
|
<li><strong>Work week:</strong> runs the schedule at the specified time on every weekday (Monday - Friday). When this option is selected you cannot change the day frequency, it's every weekday.</li>
|
|
962
962
|
</ul>
|
|
963
|
-
`,e)}</label><${e}-select data-test-id="select-week-type" :value=${lf(e=>e.weekType)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${L3.WEEK}">${L3.WEEK}</${e}-option><${e}-option data-test-id="${L3.WORK_WEEK}">${L3.WORK_WEEK}</${e}-option></${e}-select></div></template>`,
|
|
963
|
+
`,e)}</label><${e}-select data-test-id="select-week-type" :value=${lf(e=>e.weekType)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${L3.WEEK}">${L3.WEEK}</${e}-option><${e}-option data-test-id="${L3.WORK_WEEK}">${L3.WORK_WEEK}</${e}-option></${e}-select></div></template>`,uLe=T` ${e=>lLe(e.prefix)} `,Y3=class extends q3(P){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=``}configChanged(){this.weekType=this.config?.weekType||L3.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(B3.updateCronConfig,this.config)}};q([D({mode:`boolean`,attribute:`disable-tooltips`})],Y3.prototype,`disableTooltips`,void 0),q([C],Y3.prototype,`prefix`,void 0),q([C],Y3.prototype,`config`,void 0),q([C],Y3.prototype,`weekType`,void 0),Y3=q([$e({name:`daily-recurrence`,template:uLe,styles:sLe})],Y3);let dLe=O` ${W3} :host{display: flex;flex-direction: column;gap: calc(var(--design-unit) * 4px)}.weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px)}.day-of-month-row{display: flex;gap: calc(var(--design-unit) * 4px);width: 100%}.day-date-number-field::part(root){width: 40%}`,fLe=e=>T`<div class="input-container"><label class="label">On</label><${e}-select data-test-id="select-day-or-date" :value=${lf(e=>e.dayOrDate)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${R3.DATE}">${R3.DATE}</${e}-option><${e}-option data-test-id="${R3.DAY_OF_MONTH}">${R3.DAY_OF_MONTH}</${e}-option></${e}-select></div>`,X3=e=>T`<div class="input-container"><label class="label">Month</label><${e}-select data-test-id="month-dropdown" :value=${lf(e=>e.selectedMonth)}@change="${e=>e.updateCronConfig()}">${j(()=>UIe,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div>`,pLe=e=>T`<div class="row">${A(e=>e.config.type===Q.YEARLY,T` ${X3(e)} `)}<div class="input-container"><label class="label">${e=>e.config.type===Q.MONTHLY?`Day date`:`Day`}</label><${e}-select data-test-id="day-date-dropdown" :value=${lf(e=>e.dayDate)}@change="${e=>e.updateCronConfig()}">${j(()=>Array.from({length:31},(e,t)=>t+1),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-select></div></div>`,mLe=e=>T`<div class="day-of-month-row">${A(e=>e.config.type===Q.YEARLY,T` ${X3(e)} `)}<div class="input-container"><label class="label">Day of Month</label><${e}-select data-test-id="select-week-number" :value=${lf(e=>e.weekNumber)}@change="${e=>e.updateCronConfig()}">${j(()=>HIe,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div><div class="input-container"><label class="label">Day</label><${e}-select data-test-id="select-week-day" :value=${lf(e=>e.day)}@change="${e=>e.updateCronConfig()}">${j(()=>z3,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div></div>`,hLe=e=>T` ${fLe(e)} ${uf(e=>e.dayOrDate===R3.DATE,pLe(e),mLe(e))} `,gLe=T` ${e=>hLe(e.prefix)} `,Z3=class extends q3(P){constructor(){super(...arguments),this.prefix=``,this.dayOrDate=R3.DATE,this.weekNumber=`1`,this.day=`1`,this.selectedMonth=`1`}configChanged(){(this.config.type===Q.YEARLY||this.config.type===Q.MONTHLY)&&(this.dayOrDate=this.config.dateOrDay.type||R3.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===Q.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===R3.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||`1`,this.day=this.config.dateOrDay.day||`1`):this.dayDate=this.config.dateOrDay.dayDate||`1`}getDayOrDateConfig(){let e;return e=this.dayOrDate===R3.DATE?{type:R3.DATE,dayDate:this.dayDate||`1`}:{type:R3.DAY_OF_MONTH,day:this.day||`1`,weekNumber:this.weekNumber||`1`},e}updateCronConfig(){this.config=this.config.type===Q.MONTHLY?Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||`1`})}),this.$emit(B3.updateCronConfig,this.config)}};q([C],Z3.prototype,`prefix`,void 0),q([C],Z3.prototype,`config`,void 0),q([C],Z3.prototype,`dayOrDate`,void 0),q([C],Z3.prototype,`dayDate`,void 0),q([C],Z3.prototype,`weekNumber`,void 0),q([C],Z3.prototype,`day`,void 0),q([C],Z3.prototype,`selectedMonth`,void 0),Z3=q([$e({name:`monthly-yearly-recurrence`,template:gLe,styles:dLe})],Z3);let _Le=O` ${W3} .weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px);flex-wrap: wrap}`,vLe=e=>T`<template><div class="input-container"><label class="label">
|
|
964
964
|
On ${t=>t.disableTooltips?``:Lb(`
|
|
965
965
|
<p>Select which days to run this recurrence on. It's not valid to select no days, so if there is only a single day selected then its checkbox is disabled. </p>
|
|
966
966
|
<p>If you need to change the day you can enable other days which will allow you to disable days until you only have a single day selected again.</p>
|
|
967
|
-
`,e)}</label><div class="weekdays-row">${j(()=>z3,T`<${e}-checkbox part="weekdays-checkbox" class="weekdays-checkbox" :value=${e=>e.value}?checked=${(e,t)=>t.parent.selectedDays.has(e.value)}?disabled=${(e,t)=>t.parent.isDisabled(e.value)}@change=${(e,t)=>t.parent.checkboxChangeHandler(t.event)}>${e=>e.label}</${e}-checkbox>`)}</div></div></template>`,
|
|
967
|
+
`,e)}</label><div class="weekdays-row">${j(()=>z3,T`<${e}-checkbox part="weekdays-checkbox" class="weekdays-checkbox" :value=${e=>e.value}?checked=${(e,t)=>t.parent.selectedDays.has(e.value)}?disabled=${(e,t)=>t.parent.isDisabled(e.value)}@change=${(e,t)=>t.parent.checkboxChangeHandler(t.event)}>${e=>e.label}</${e}-checkbox>`)}</div></div></template>`,yLe=T` ${e=>vLe(e.prefix)} `,Q3=class extends q3(P){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=``,this.selectedDays=/* @__PURE__ */ new Set}configChanged(){this.selectedDays=this.config?.selectedDays?new Set(this.config.selectedDays):/* @__PURE__ */ new Set}isDisabled(e){return this.selectedDays.size===1&&this.selectedDays.has(e)}checkboxChangeHandler(e){let{checked:t,value:n}=e.target;t?this.selectedDays.add(n):this.selectedDays.size>1&&this.selectedDays.delete(n),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(B3.updateCronConfig,this.config)}};q([D({mode:`boolean`,attribute:`disable-tooltips`})],Q3.prototype,`disableTooltips`,void 0),q([C],Q3.prototype,`prefix`,void 0),q([C],Q3.prototype,`config`,void 0),q([C],Q3.prototype,`selectedDays`,void 0),Q3=q([$e({name:`weekly-recurrence`,template:yLe,styles:_Le})],Q3),zd(Y3,Q3,Z3);let bLe=(e,t)=>T`<daily-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></daily-recurrence>`,xLe=(e,t)=>T`<weekly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></weekly-recurrence>`,$3=(e,t)=>T`<monthly-yearly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}></monthly-yearly-recurrence>`,e6=(e,t,n)=>T`<div class="input-container">${A(()=>n,T`<label class="label">${n}</label>`)}<${e}-select class="frequency-select" ?disabled=${()=>t.isDailyFrequencyDisabled}data-test-id="frequency-dropdown" :value=${lf(()=>t.frequency)}@change="${()=>t.handleChange(`frequency`)}">${j(()=>t.frequencyList,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">${()=>t.frequencySuffix}</div></${e}-select></div>`,t6=(e,t,n,r)=>T`<div class="input-container"><label class="label">Time </label><div class="flex-row">${A(()=>n,T`<${e}-select class="time-select" data-test-id="hours-dropdown" :value=${lf(()=>t.hours)}@change="${()=>t.handleChange(`hours`)}">${j(()=>Array.from({length:24},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">hr</div></${e}-select>`)} ${A(()=>r,T`<${e}-select class="time-select" data-test-id="mins-dropdown" :value=${lf(()=>t.minutes)}@change="${()=>t.handleChange(`minutes`)}">${j(()=>Array.from({length:60},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">min</div></${e}-select>`)}<${e}-select class="time-select" data-test-id="seconds-dropdown" :value=${lf(()=>t.seconds)}@change="${()=>t.handleChange(`seconds`)}">${j(()=>Array.from({length:60},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">sec</div></${e}-select></div></div>`,SLe=(e,t,n)=>{switch(e){case Q.MINUTES:return T`<div class="minutes-options-row"><div class="input-container"><label class="label">During ${()=>n.disableTooltips?``:Lb(`
|
|
968
968
|
<p>Which hours in the day to run this schedule for:</p>
|
|
969
969
|
<ul>
|
|
970
970
|
<li><strong>Every hour:</strong> runs the minute schedule during every hour of the day.</li>
|
|
@@ -977,7 +977,7 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
|
|
|
977
977
|
<li><strong>Selected Hours:</strong> allows you to choose specific hours of the day (e.g. 9, 10, and 14).</li>
|
|
978
978
|
</ul>
|
|
979
979
|
`,t)}</label><${t}-select data-test-id="hourly-during-select" :value=${lf(()=>n.during)}@change="${()=>n.handleDuringChange()}"><${t}-option value="every_hour">Interval</${t}-option><${t}-option value="specific_hours">Selected Hours</${t}-option></${t}-select></div>${A(()=>n.during===`every_hour`,e6(t,n,`Every`))} ${A(()=>n.isSpecificHours,T`<div class="break"></div><div class="input-container"><label class="label">
|
|
980
|
-
Hours ${Lb(J3,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>n.hourOptions}:selectedOptions=${()=>n.selectedHours}@selectionChange="${(e,t)=>n.handleHoursChange(t.event)}"></${t}-multiselect></div>`)} ${t6(t,n,!1,!0)}</div>`;case Q.DAILY:return T` ${vLe(t,n)}<div class="row">${e6(t,n,`Every`)} ${t6(t,n,!0,!0)}</div>`;case Q.WEEKLY:return T`<div class="row">${yLe(t,n)} ${t6(t,n,!0,!0)}</div>`;case Q.MONTHLY:return T`<div class="row">${e6(t,n,`Every`)} ${t6(t,n,!0,!0)}</div>${$3(t,n)} `;case Q.YEARLY:return T`<div class="row">${t6(t,n,!0,!0)}</div>${$3(t,n)} `;default:return T``}},n6=e=>T`<template><div class="container"><div class="input-container"><label class="label">Recurrence ${A(e=>!e.disableTooltips,T` ${t=>Lb(oLe(!t.minMinuteInterval||t.minMinuteInterval<30),e)} `)}</label><${e}-select data-test-id="select-recurrence" :value=${lf(e=>e.recurrence)}@change="${e=>e.handleRecurrenceChange()}">${A(e=>e.isMinutesRecurrenceEnabled,T`<${e}-option data-test-id="${Q.MINUTES}">${Q.MINUTES}</${e}-option>`)}<${e}-option data-test-id="${Q.HOURLY}">${Q.HOURLY}</${e}-option><${e}-option data-test-id="${Q.DAILY}">${Q.DAILY}</${e}-option><${e}-option data-test-id="${Q.WEEKLY}">${Q.WEEKLY}</${e}-option><${e}-option data-test-id="${Q.MONTHLY}">${Q.MONTHLY}</${e}-option><${e}-option data-test-id="${Q.YEARLY}">${Q.YEARLY}</${e}-option></${e}-select></div>${j(e=>[`${e.recurrence}-${e.during}`],T` ${(t,n)=>bLe(n.parent.recurrence,e,n.parent)} `,{recycle:!1})}</div></template>`,xLe=T` ${e=>n6(gb(e))} `;var r6=class extends P{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:QIe,buildConfigForHourlyRecurrence:ZIe,buildConfigForDailyRecurrence:XIe,buildConfigForWeeklyRecurrence:$Ie,buildConfigForMonthlyRecurrence:tLe,buildConfigForYearlyRecurrence:eLe},this.recurrence=Q.DAILY,this.cron=``,this.value=this.cron,this.cronConfig={type:Q.DAILY,weekType:L3.WEEK,hours:`0`,minutes:`0`,seconds:`0`},this.frequency=`1`,this.during=`every_hour`,this.hours=`0`,this.minutes=`0`,this.seconds=`0`,this.disableTooltips=!1,this.timezone=``}cronChanged(){if(this.cron)try{if(!YIe(this.cron)){bC({title:`Cron Scheduler`,body:`Invalid Cron Expression`,toast:{type:`critical`}},gb(this));return}this.setsFieldsFromCronEx()}catch(e){console.error(`Error:`,e),bC({title:`Cron Scheduler`,body:e,toast:{type:`critical`}},gb(this));return}}get duringOptions(){return[{label:`Every hour`,value:`every_hour`},{label:`Specific hours`,value:`specific_hours`}]}get frequencySuffix(){switch(this.cronConfig.type){case Q.MINUTES:return`Minute(s)`;case Q.HOURLY:return`Hour(s)`;case Q.DAILY:return`Day(s)`;case Q.MONTHLY:return`Month(s)`;default:return``}}get frequencyList(){switch(this.cronConfig.type){case Q.MINUTES:let e=[1,2,3,4,5,6,10,12,15,20,30],t=this.minMinuteInterval?Number(this.minMinuteInterval):1;return e.filter(e=>e>=t);case Q.HOURLY:return Array.from({length:23},(e,t)=>t+1);case Q.DAILY:return Array.from({length:31},(e,t)=>t+1);case Q.MONTHLY:return Array.from({length:12},(e,t)=>t+1);case Q.YEARLY:return Array.from({length:12},(e,t)=>t+1);case Q.WEEKLY:return[1];default:return[]}}get hourOptions(){return Array.from({length:24},(e,t)=>({label:t.toString(),value:t.toString()}))}get selectedHours(){return!this.hours||this.hours===`*`||this.hours===`0`?this.hours===`*`?this.hourOptions.map(e=>e.value):[this.hours]:this.hours.split(`,`)}handleHoursChange(e){let t=e.detail;t.length===24?(this.hours=`*`,this.frequency=`1`,this.cronConfig.frequency=`1`):this.hours=!t||t.length===0?`0`:t.sort((e,t)=>Number(e)-Number(t)).join(`,`),this.handleChange(`hours`)}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return this.during===`specific_hours`}get isDailyFrequencyDisabled(){return this.cronConfig.type===Q.DAILY&&this.cronConfig.weekType===L3.WORK_WEEK}minMinuteIntervalChanged(){this.minMinuteInterval>=60&&console.warn(`Minimum minute interval has no effect on schedules with an hourly or longer recurrance`)}connectedCallback(){super.connectedCallback(),this.addEventListener(B3.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(B3.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Q.MINUTES:let e=this.getBaseConfigFields(),{minutes:t}=e,n=rd(e,[`minutes`]);this.during=`every_hour`,this.hours=`*`;let r=[1,2,3,4,5,6,10,12,15,20,30],i=this.minMinuteInterval?Number(this.minMinuteInterval):1,a=r.find(e=>e>=i)||1;this.cronConfig=Object.assign(Object.assign({type:Q.MINUTES},n),{frequency:a.toString(),during:`every_hour`,hours:`*`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.HOURLY:let o=this.getBaseConfigFields(),{hours:s}=o,c=rd(o,[`hours`]);this.during=`every_hour`,this.hours=`0`,this.cronConfig=Object.assign(Object.assign({type:Q.HOURLY},c),{frequency:`1`,during:`every_hour`,hours:`0`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.DAILY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.DAILY},this.getBaseConfigFields()),{frequency:`1`,weekType:L3.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.WEEKLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.WEEKLY},this.getBaseConfigFields()),{frequency:`1`,selectedDays:/* @__PURE__ */ new Set([`2`])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.MONTHLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.MONTHLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:R3.DATE,dayDate:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.YEARLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.YEARLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:R3.DATE,dayDate:`1`,month:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:bC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},gb(this))}}handleChange(e){if(e===`frequency`&&Number(this.frequency)===0)throw Error(`Frequency must be greater than 0`);this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){this.during===`every_hour`?this.hours=`*`:this.hours===`*`&&(this.hours=`0`),(this.cronConfig.type===Q.MINUTES||this.cronConfig.type===Q.HOURLY)&&(this.cronConfig.during=this.during,this.cronConfig.hours=this.hours),this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Q.MINUTES:this.cron=UIe(e);break;case Q.HOURLY:this.cron=HIe(e);break;case Q.DAILY:this.cron=WIe(e,V3);break;case Q.WEEKLY:this.cron=GIe(e);break;case Q.MONTHLY:this.cron=KIe(e,V3);break;case Q.YEARLY:this.cron=qIe(e);break;default:bC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},gb(this))}this.value=this.cron,this.$emit(`change`)}setsFieldsFromCronEx(){this.cronConfig=nLe(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;let e=this.cronConfig;`minutes`in e&&(this.minutes=e.minutes),(e.type===Q.MINUTES||e.type===Q.HOURLY)&&(this.during=e.during||`every_hour`,e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==Q.HOURLY&&e.type!==Q.MINUTES&&(this.hours=e.hours)}};q([C],r6.prototype,`recurrence`,void 0),q([C],r6.prototype,`cron`,void 0),q([C],r6.prototype,`cronConfig`,void 0),q([C],r6.prototype,`frequency`,void 0),q([C],r6.prototype,`during`,void 0),q([w],r6.prototype,`duringOptions`,null),q([C],r6.prototype,`hours`,void 0),q([C],r6.prototype,`minutes`,void 0),q([C],r6.prototype,`seconds`,void 0),q([w],r6.prototype,`frequencySuffix`,null),q([w],r6.prototype,`frequencyList`,null),q([w],r6.prototype,`hourOptions`,null),q([w],r6.prototype,`selectedHours`,null),q([D({attribute:`min-minute-interval`})],r6.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],r6.prototype,`disableTooltips`,void 0),q([w],r6.prototype,`isMinutesRecurrenceEnabled`,null),q([w],r6.prototype,`isSpecificHours`,null),q([w],r6.prototype,`isDailyFrequencyDisabled`,null),q([D],r6.prototype,`timezone`,void 0);let i6={};r6.compose(Object.assign({baseName:`scheduler-cron-builder`,styles:G3,template:xLe,shadowOptions:void 0},i6));let a6=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.timezone-combobox::part(listbox){max-height: 20vh}`,o6=e=>T`<template><div class="container"><label class="label">Time Zone</label><${e}-combobox data-test-id="cron-scheduler-timezone" autocomplete="both" class="timezone-combobox" value="${lf(e=>e.timezone)}">${j(e=>e.timeZones,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-combobox></div></template>`,SLe=T` ${e=>o6(gb(e))} `;var s6=class extends P{constructor(){super(...arguments),this.timezone=``,this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit(`change`)}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return J(this,void 0,void 0,function*(){let e=[`Europe/London`,`America/New_York`];try{let t=yield this.connect.request(`VALID_TIME_ZONE`,{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw Error(`Invalid data returned for Timezones`);this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,n)=>e.includes(t)&&!e.includes(n)?-1:!e.includes(t)&&e.includes(n)?1:t.localeCompare(n))}catch(e){bC({title:`Cron Scheduler`,body:`Unable to fetch timezones data.`,toast:{type:`critical`}},`rapid`),Y.error(e)}})}};q([C],s6.prototype,`timezone`,void 0),q([Yv],s6.prototype,`connect`,void 0),q([C],s6.prototype,`timeZones`,void 0);let c6={};s6.compose(Object.assign({baseName:`scheduler-timezone`,styles:a6,template:SLe,shadowOptions:void 0},c6));let l6=O` .search-bar-combobox{width: 100%;min-width: auto}.padding{padding-left: calc(${B} * 1px)}.selected-options{display: flex;align-items: center;overflow: hidden;gap: calc(${B} * 1px);padding-right: calc(${B} * 1px)}.selected-options:hover{overflow-x: overlay}.selected-options::-webkit-scrollbar{height: 7px}.selected-options::-webkit-scrollbar-thumb{border-radius: 10px;box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);background-color: #484848;border: 1px solid #7e7e7e}.selected-options-divider{border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}.options-button{height: fit-content;min-width: fit-content}.label{display: block;font-size: var(--type-ramp-base-font-size);margin: calc(${B} * 2px) 2px}.label-hidden{display: none}.search-clear-button{min-width: 28px;min-height: 28px;height: 28px;margin: 0}.search-clear-button svg{rotate: 45deg}.search-clear-button::part(control){padding: 0}.search-clear-button .svg-container{display: flex;align-items: center;justify-content: center}.close-icon{color: var(--accent-fill-rest)}`,u6=e=>T`<label part="label" for="control" data-test-id="label" class=${e=>pn(`label`,[`label-hidden`,!e.defaultSlottedNodes?.length])}><slot ${xt({property:`defaultSlottedNodes`,filter:ga})}></slot></label><${e}-search-bar-combobox ${k(`combobox`)}position="${e=>e.position}" placeholder=${e=>e.placeholder}disabled=${e=>e.disabled}:inputLocked="${e=>e.allSearchFieldsUsed}" autocomplete="none" minlength=${e=>e.minlength}@inputdeleted=${e=>e.inputdeleted()}@change=${e=>e.changeHandler()}@input=${e=>e.inputHandler()}@paste=${(e,t)=>e.pasteHandler(t.event)}class="search-bar-combobox ${e=>e.selectedOptions.length>0?`padding`:null}" data-test-id="search-bar"><div ${k(`selectedOptionsDiv`)}slot="selectedOptions" class="selected-options ${e=>e.selectedOptions.length>0?`selected-options-divider`:null}">${j(e=>e.selectedOptions,T`<${e}-button class="options-button" appearance=${(e,t)=>t.parent.appearance}disabled=${(e,t)=>t.parent.disabled}@click=${(e,t)=>t.parent.unselectOption(e)}>${e=>e.label}<${e}-icon class="close-icon" slot="end" name="circle-xmark" variant="regular"></${e}-icon></${e}-button>`)}</div>${j(e=>e.filteredOptions,T`<${e}-option value="${e=>e.field}" :disabled=${(e,t)=>!t.parent.isOptionEnabled(e)}>${(e,t)=>e.label(t.parent.searchTerm)}</${e}-option>`)} ${A(e=>e.showClearAffordance,T`<${e}-button class="search-clear-button" @click=${e=>e.clearSearch()}slot="end" data-test-id="clear-search" aria-label="Clear search terms" title="Clear search terms"><div class="svg-container"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="26px" height="26px" class="bi bi-plus" viewBox="0 0 16 16"><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" /></svg></div></${e}-button>`)}</${e}-search-bar-combobox>`,CLe=T` ${e=>u6(gb(e))} `;var d6=class extends P{constructor(){super(...arguments),this.searchTerm=``,this.appearance=`neutral`,this.minlength=3,this.position=bw.BELOW,this.placeholder=`Start typing to search`,this.clearButton=!0,this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g,` `),this.addOrReplaceSelectedText=(e,t,n)=>t?.length>0?e.replace(t,n):e.concat(n)}clear(){this.selectedOptions=[],this.searchTerm=``,this.combobox&&(this.combobox.currentValue=``,this.combobox.value=``),this.$emit(`selectionChange`,[])}clearSearch(){this.clear()}get showClearAffordance(){if(!this.clearButton)return!1;let e=(this.searchTerm??this.combobox?.value??``).trim();return this.selectedOptions.length>0||e.length>0}get allSearchFieldsUsed(){return this.options?.length?this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field)):!1}isOptionEnabled(e){return e.isEnabled?e.isEnabled(this.searchTerm,this.selectedOptions,this.minlength):this.searchTerm.length>=this.minlength&&!this.selectedOptions.some(t=>t.field===e.field)}selectedOptionsChanged(){this.applySearchInputLock()}optionsChanged(){this.applySearchInputLock()}applySearchInputLock(){this.combobox&&this.allSearchFieldsUsed&&(this.searchTerm=``,this.combobox.value=``,this.combobox.currentValue=``,this.combobox.open=!1,this.filteredOptions=[])}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){let e=[];this.combobox.selectedOptions.forEach(t=>{let n=t.value,r=this.searchTerm.trim();e.push({field:n,term:r,label:this.options.find(e=>e.field===n)?.label(r)||t.text,createCriteria:this.options.find(e=>e.field===n)?.createCriteria,resourceType:this.options.find(e=>e.field===n)?.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,n)=>t===n.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value=``,this.combobox.open=!1,this.$emit(`selectionChange`,this.selectedOptions),x.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},10)})}pasteHandler(e){if(this.allSearchFieldsUsed){e.preventDefault();return}this.loading=!0;let t=e.clipboardData.getData(`text/plain`),n=this.normalizeDelimiter(t),r=window.getSelection()?.toString(),i=this.addOrReplaceSelectedText(this.combobox.value,r,n);i?.length>=this.minlength&&(this.combobox.value=i,this.searchTerm=i,this.options&&this.filterSelectedOptions(i),this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(n=>n.term===e&&n.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit(`selectionChange`,this.selectedOptions)}inputHandler(){return J(this,void 0,void 0,function*(){if(this.allSearchFieldsUsed){this.applySearchInputLock();return}this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1})}filterSelectedOptions(e){this.filteredOptions=this.options.filter(t=>!this.selectedOptions.find(n=>n.field===t.field&&n.term.trim()===e.trim()))}};q([C],d6.prototype,`defaultSlottedNodes`,void 0),q([C],d6.prototype,`options`,void 0),q([C],d6.prototype,`searchTerm`,void 0),q([D],d6.prototype,`appearance`,void 0),q([D],d6.prototype,`minlength`,void 0),q([D],d6.prototype,`position`,void 0),q([D],d6.prototype,`placeholder`,void 0),q([D],d6.prototype,`disabled`,void 0),q([D({attribute:`clear-button`,mode:`boolean`})],d6.prototype,`clearButton`,void 0),q([C],d6.prototype,`loading`,void 0),q([C],d6.prototype,`selectedOptions`,void 0),q([C],d6.prototype,`filteredOptions`,void 0);let f6={};d6.compose(Object.assign({baseName:`search-bar`,template:CLe,styles:l6,shadowOptions:void 0},f6));let p6=(e,t)=>O` ${Lw(e,t)} .control{width: auto;padding-left: calc(${B} * 1px);padding-right: 0}.end{height: 100%;min-width: 36px;max-width: 36px;padding-right: 2px;display: flex;justify-content: flex-end;align-items: center}.selected-value{min-width: 150px;max-width: 169px}.input-locked .control, :host(.input-locked) .control{width: 0;min-width: 0;padding: 0;margin: 0;overflow: hidden;flex: 0}.input-locked .selected-value, :host(.input-locked) .selected-value{display: none}`,m6=(e,t)=>T`<template aria-disabled="${e=>e.ariaDisabled}" autocomplete="${e=>e.autocomplete}" class="${e=>e.open?`open`:``} ${e=>e.disabled?`disabled`:``} ${e=>e.position} ${e=>e.inputLocked?`input-locked`:``}body" ?open="${e=>e.open}" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" data-test-id="combobox"><slot name="selectedOptions" data-test-id="options"></slot><div class="control" part="control"><slot name="control"><input aria-activedescendant="${e=>e.open?e.ariaActiveDescendant:null}" aria-autocomplete="${e=>e.ariaAutoComplete}" aria-controls="${e=>e.ariaControls}" aria-disabled="${e=>e.ariaDisabled}" aria-expanded="${e=>e.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${e=>e.placeholder}" role="combobox" type="text" ?disabled="${e=>e.disabled}" :value="${e=>e.value}" @input="${(e,t)=>e.inputHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}" ${k(`control`)}data-test-id="selected-value" /></slot></div>${wt(e,t)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>!e.open}" ${k(`listbox`)}data-test-id="listbox"><slot ${xt({filter:zr.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></div></template>`,wLe=/* @__PURE__ */ new Set([`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);var h6=class extends $l{constructor(){super(...arguments),this.minlength=1,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener(`change`,this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`change`,this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest(`option,[role=option]`);if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit(`change`)}this.control.focus()}}keyupHandler(e){switch(e.key){case`Backspace`:case`Delete`:this.previousLength<0?this.$emit(`inputdeleted`):--this.previousLength;break;case`Enter`:if(this.open&&this.selectedIndex!==-1){let e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit(`change`)}}super.keyupHandler(e)}keydownHandler(e){let t=e.key;if(this.inputLocked){let n=e.ctrlKey||e.metaKey||e.altKey;if(!(wLe.has(t)||n))return e.preventDefault(),!1}switch(t){case`ArrowUp`:case`ArrowDown`:return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case`Enter`:return this.selectedIndex!==-1&&super.keydownHandler(e);case`Tab`:if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){if(this.inputLocked){this.control.value=``,this.value=``,this.open=!1,e.stopImmediatePropagation();return}this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView();return}this.ariaControls=``,this.ariaExpanded=`false`}};q([D],h6.prototype,`minlength`,void 0),q([C],h6.prototype,`inputLocked`,void 0);let g6={delegatesFocus:!0,mode:`open`},_6={};h6.compose(Object.assign({baseName:`search-bar-combobox`,template:m6,styles:p6,shadowOptions:g6},_6));let v6=O` :host{display: block;width: 100%;height: 100%;min-height: 400px;/* Section link marker CSS variables to allow customization of the marker */ --section-link-marker-width: 2px;--section-link-marker-height: 100%;--section-link-marker-left: 0;--section-link-marker-top: 0;--section-link-marker-transition: background-color 0.2s ease;--section-link-marker-background-color: transparent;--section-link-marker-background-color-hover: var(--neutral-layer-hover);--section-link-marker-background-color-active: var(--accent-fill-rest);/* Section link CSS variables to allow customization of the link */ --section-link-text-align: left;--section-link-text-white-space: initial}.section-navigator-container{display: flex;height: 100%;max-height: 100%;width: 100%}.section-navigation{background-color: var(--neutral-layer-2);border-right: 1px solid var(--neutral-stroke-divider);overflow-y: auto;height: 100%;min-width: 20%}.section-link{position: relative;display: block;width: 100%;color: var(--neutral-foreground-rest);text-decoration: none;border: none;background: none;text-align: left;transition: all 0.2s ease;cursor: pointer;font-family: inherit;font-size: inherit;margin: 0;border-radius: 0;vertical-align: top}.section-link.active:hover{color: var(--neutral-foreground-rest)}.section-link:hover{color: var(--accent-foreground-rest)}.section-link::part(control){vertical-align: top;white-space: inherit}.section-link::before{content: '';position: absolute;top: var(--section-link-marker-top);left: var(--section-link-marker-left);width: var(--section-link-marker-width);height: var(--section-link-marker-height);background-color: var(--section-link-marker-background-color);transition: var(--section-link-marker-transition);z-index: 1}.section-link:hover::before{background-color: var(--section-link-marker-background-color-hover)}.section-link.active::before{background-color: var(--section-link-marker-background-color-active)}.section-link::part(content){padding: 0;text-align: var(--section-link-text-align);white-space: var(--section-link-text-white-space)}.section-content-wrapper{flex: 1;height: 100%;overflow: hidden;display: flex;flex-direction: column}.section-content{flex: 1;overflow: hidden auto;padding: calc(var(--design-unit) * 4px);background-color: var(--neutral-layer-1);min-height: 0}.section-content::-webkit-scrollbar{width: var(--scrollbar-width)}.section-content::-webkit-scrollbar-track{background: var(--neutral-layer-4)}.section-content::-webkit-scrollbar-thumb{width: var(--scrollbar-thumb-width);/* 8px */ border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-layer-2);border: 3px solid var(--neutral-layer-4)}.content-section{background-color: var(--neutral-layer-1)}.state-icon{margin-left: calc(var(--design-unit) * 1px);width: 12px;height: 12px}.state-icon[data-state='active']{color: var(--accent-fill-rest)}.state-icon[data-state='inactive']{color: var(--neutral-foreground-rest)}.state-icon[data-state='pending']{color: var(--warning-fill-rest)}.state-icon[data-state='disabled']{color: var(--neutral-foreground-disabled)}.state-icon[data-state='error']{color: var(--error-fill-rest)}.state-icon[data-state='completed']{color: var(--success-fill-rest)}/* Section button state colors */ .section-link.state-active{color: var(--accent-foreground-rest)}.section-link.state-inactive{color: var(--neutral-foreground-hint)}.section-link.state-pending{color: var(--warning-color)}.section-link.state-disabled{color: var(--neutral-foreground-disabled)}.section-link.state-error{color: var(--error-color)}.section-link.state-completed{color: var(--success-color)}.section-link.state-multiple{color: var(--accent-foreground-rest)}.section-link.state-none{color: var(--neutral-foreground-rest)}`,TLe=e=>T`<template><div class="section-navigator-container" part="section-navigator-container" ${k(`sectionNavigatorContainer`)}><nav class="section-navigation" part="section-navigator-navigation">${j(e=>e.sectionItems,T`<${e}-button class="section-link ${(e,t)=>t.parent.activeSection===e.name?`active`:``} ${(e,t)=>t.parent.getSectionStateClass(e)}" part="section-navigator-section-link ${(e,t)=>t.parent.getSectionStateClass(e)}" @click="${(e,t)=>t.parent.handleSectionClick(e.name)}">${e=>e.label} ${j(e=>e.states||[],T`<${e}-icon class="state-icon" part="section-navigator-state-icon" title="${(e,t)=>t.parentContext.parent.getStateTooltip(e)}" data-state="${e=>e}" name="${(e,t)=>t.parentContext.parent.getStateIcon(e).name}" variant="${(e,t)=>t.parentContext.parent.getStateIcon(e).variant}"></${e}-icon>`)}</${e}-button>`)}</nav><div class="section-content-wrapper" part="section-navigator-content-wrapper"><section class="section-content" part="section-navigator-content" ${k(`sectionContent`)}>${j(e=>e.sectionItems,T`<div class="content-section" part="section-navigator-content-section" data-section="${e=>e.name}"><slot name="${e=>e.name}"></slot></div>`)}</section></div></div></template>`,y6=T` ${e=>TLe(gb(e))} `,b6=Ad(`SectionNavigator`),x6=`section-navigator`,S6={setState:`${x6}-set-state`,setStates:`${x6}-set-states`,clearState:`${x6}-clear-state`,clearAllStates:`${x6}-clear-all-states`},ELe={active:`Active`,inactive:`Inactive`,pending:`Pending`,disabled:`Disabled`,error:`Error`,completed:`Completed`},C6={active:{name:`circle-dot`,variant:`solid`},inactive:{name:`times-circle`,variant:`regular`},pending:{name:`clock`,variant:`solid`},disabled:{name:`ban`,variant:`solid`},error:{name:`times`,variant:`solid`},completed:{name:`check`,variant:`solid`}};var w6=class e extends P{constructor(){super(...arguments),this.sections=[],this.scrollBehavior=`top`,this.stateTooltips=ELe,this.stateIcons=C6,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=``}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections)){b6.warn(`Sections must be an array`),this.sectionItems=[];return}this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(!this.sectionContent){b6.warn(`Section content element not found`);return}if((e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0,this.scrollBehavior===`top`)try{let e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(`.content-section:last-child`);if(t){let n=t.offsetHeight,r=Math.max(0,e-n-20);this.spacerElement=document.createElement(`div`),this.spacerElement.className=`scroll-spacer`,this.spacerElement.style.height=`${r}px`,this.spacerElement.style.pointerEvents=`none`,this.sectionContent.appendChild(this.spacerElement)}}catch(e){b6.error(`Error updating spacer:`,e)}}scrollToSection(e){if(!this.sectionContent){b6.warn(`Section content not available`);return}try{let t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t){b6.warn(`Section "${e}" not found`);return}let n=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:n,behavior:`smooth`}),this.setupScrollEndDetection()}catch(e){b6.error(`Error scrolling to section:`,e)}}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(!this.sectionContent){b6.warn(`Section content not available for scroll detection`);return}try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},e.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener(`scroll`,this.scrollCheckHandler,{passive:!0});let t=()=>{this.isUserScrolling=!0},n=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};this.sectionContent.addEventListener(`wheel`,t,{passive:!0}),this.sectionContent.addEventListener(`touchstart`,t,{passive:!0}),this.sectionContent.addEventListener(`mousedown`,t,{passive:!0}),this.sectionContent.addEventListener(`scrollend`,n,{passive:!0});let r;this.sectionContent.addEventListener(`scroll`,()=>{clearTimeout(r),r=window.setTimeout(n,e.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){b6.error(`Error setting up scroll detection:`,e)}}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;let e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2,t=null,n=1/0;this.sectionItems.forEach(r=>{let i=this.sectionContent.querySelector(`[data-section="${r.name}"]`);if(i){let a=i.offsetTop+i.clientHeight/2,o=Math.abs(a-e);o<n&&(n=o,t=r.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener(`scroll`,this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){if(!this.sectionContent){b6.warn(`Section content not available for event listeners`);return}this.handleSetStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.addState(t,n)}catch(e){b6.error(`Error handling set-state event:`,e)}},this.handleSetStatesRef=e=>{try{let{sectionName:t,stateNames:n}=e.detail;this.addStates(t,n)}catch(e){b6.error(`Error handling set-states event:`,e)}},this.handleClearStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.clearState(t,n)}catch(e){b6.error(`Error handling clear-state event:`,e)}},this.handleClearAllStatesRef=e=>{try{let{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){b6.error(`Error handling clear-all-states event:`,e)}},this.handleGenericStateEventRef=e=>{try{let t=e.type,n=e.detail;if(n?.sectionName)return;let r=e.target.closest(`[data-section]`)?.getAttribute(`data-section`);r||(r=e.target.closest(`[slot]`)?.getAttribute(`slot`)||this.activeSection),r||(r=this.activeSection),e.stopPropagation(),e.preventDefault();let i=Object.assign(Object.assign({},n),{sectionName:r}),a=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){b6.error(`Error handling generic state event:`,e)}},this.addEventListener(S6.setState,this.handleSetStateRef),this.addEventListener(S6.setStates,this.handleSetStatesRef),this.addEventListener(S6.clearState,this.handleClearStateRef),this.addEventListener(S6.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(S6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(S6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(S6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(S6.clearAllStates,this.handleGenericStateEventRef,!0)}updateSectionStates(e,t){let n=this.sectionItems.findIndex(t=>t.name===e);if(n!==-1){let e=Object.assign(Object.assign({},this.sectionItems[n]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,n),e,...this.sectionItems.slice(n+1)]}}addState(e,t){if(!e||!t){b6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){b6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[];if(!r.includes(t)){let n=[...r,t];this.updateSectionStates(e,n)}}addStates(e,t){if(!e||!Array.isArray(t)){b6.warn(`Section name and state names array are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){b6.warn(`Section "${e}" not found`);return}let r=[...this.sectionItems[n].states||[]];t.forEach(e=>{r.includes(e)||r.push(e)}),this.updateSectionStates(e,r)}clearState(e,t){if(!e||!t){b6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){b6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[],i=r.indexOf(t);if(i>-1){let t=r.filter((e,t)=>t!==i);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e){b6.warn(`Section name is required`);return}if(this.sectionItems.findIndex(t=>t.name===e)===-1){b6.warn(`Section "${e}" not found`);return}this.updateSectionStates(e,[])}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||``:(b6.warn(`State name is required`),``)}getSectionStateClass(e){if(!e)return b6.warn(`Section is required`),`state-none`;let t=e.states||[];return t.length===0?`state-none`:t.length>1?`state-multiple`:`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||C6[e]:(b6.warn(`State name is required`),C6.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(S6.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(S6.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(S6.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(S6.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(S6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(S6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(S6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(S6.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),(e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0}};w6.SCROLL_END_TIMEOUT=150,w6.SCROLL_DEBOUNCE_TIMEOUT=100,q([C],w6.prototype,`sections`,void 0),q([D({attribute:`scroll-behavior`})],w6.prototype,`scrollBehavior`,void 0),q([D({attribute:`state-tooltips`})],w6.prototype,`stateTooltips`,void 0),q([D({attribute:`state-icons`})],w6.prototype,`stateIcons`,void 0),q([D({attribute:`disable-auto-scroll-detection`,mode:`boolean`})],w6.prototype,`disableAutoScrollDetection`,void 0),q([C],w6.prototype,`sectionItems`,void 0),q([C],w6.prototype,`activeSection`,void 0);let T6={mode:`open`},E6={};w6.compose(Object.assign({baseName:`foundation-section-navigator`,template:y6,styles:v6,shadowOptions:T6},E6));let D6=(e,t)=>ua(e,t),O6=(e,t)=>O` ${bu(e,t)} ::slotted(foundation-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}::slotted(foundation-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}`;var k6=class extends da{valueChanged(){this.value===void 0&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}};k6.compose(Object.assign({baseName:`segmented-control`,template:D6,styles:O6,shadowOptions:void 0},{}));let A6=(e,t)=>T`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><span><slot></slot></span></template>`,j6=(e,t)=>O` ${xu(e,t)} :host{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);cursor: pointer}:host([aria-checked='true']){background: var(--accent-foreground-rest)}`;(class extends pa{}).compose(Object.assign({baseName:`segmented-item`,template:A6,styles:j6,shadowOptions:void 0},{}));let M6=(e,t)=>xa(e,t),N6=(e,t)=>O` ${Zl(e,t)} :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible), .control:focus-visible{box-shadow: none;outline: none}`;var P6=class extends Cu{get scrollableListbox(){return this.listbox??this.shadowRoot?.querySelector(`.listbox`)}slottedOptionsChanged(e,t){let n=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;let r=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{let t=e.nodeName.toLowerCase();if(t.endsWith(`-optgroup`)){let t=Array.from(e.children).filter(e=>{let t=e.nodeName.toLowerCase();return e.getAttribute(`role`)===`option`||t.endsWith(`-option`)});r.push(...t)}else(e.getAttribute(`role`)===`option`||t.endsWith(`-option`))&&r.push(e)}),this.options=r,n&&(this.value=n),this.selectedIndex===-1&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(_b(this))&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:`nearest`})}))}openChanged(e,t){if(this.collapsible){if(this.$emit(`open-change`,{open:this.open}),this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,x.queueUpdate(()=>this.focus());return}this.ariaControls=``,this.ariaExpanded=`false`}}keydownHandler(e){switch(e.key){case`ArrowDown`:case`ArrowUp`:this.open?this.options[this.selectedIndex]?.scrollIntoView({block:`center`,behavior:`auto`}):this.open=!0}return super.keydownHandler(e)}};let F6={indicator:`
|
|
980
|
+
Hours ${Lb(J3,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>n.hourOptions}:selectedOptions=${()=>n.selectedHours}@selectionChange="${(e,t)=>n.handleHoursChange(t.event)}"></${t}-multiselect></div>`)} ${t6(t,n,!1,!0)}</div>`;case Q.DAILY:return T` ${bLe(t,n)}<div class="row">${e6(t,n,`Every`)} ${t6(t,n,!0,!0)}</div>`;case Q.WEEKLY:return T`<div class="row">${xLe(t,n)} ${t6(t,n,!0,!0)}</div>`;case Q.MONTHLY:return T`<div class="row">${e6(t,n,`Every`)} ${t6(t,n,!0,!0)}</div>${$3(t,n)} `;case Q.YEARLY:return T`<div class="row">${t6(t,n,!0,!0)}</div>${$3(t,n)} `;default:return T``}},n6=e=>T`<template><div class="container"><div class="input-container"><label class="label">Recurrence ${A(e=>!e.disableTooltips,T` ${t=>Lb(cLe(!t.minMinuteInterval||t.minMinuteInterval<30),e)} `)}</label><${e}-select data-test-id="select-recurrence" :value=${lf(e=>e.recurrence)}@change="${e=>e.handleRecurrenceChange()}">${A(e=>e.isMinutesRecurrenceEnabled,T`<${e}-option data-test-id="${Q.MINUTES}">${Q.MINUTES}</${e}-option>`)}<${e}-option data-test-id="${Q.HOURLY}">${Q.HOURLY}</${e}-option><${e}-option data-test-id="${Q.DAILY}">${Q.DAILY}</${e}-option><${e}-option data-test-id="${Q.WEEKLY}">${Q.WEEKLY}</${e}-option><${e}-option data-test-id="${Q.MONTHLY}">${Q.MONTHLY}</${e}-option><${e}-option data-test-id="${Q.YEARLY}">${Q.YEARLY}</${e}-option></${e}-select></div>${j(e=>[`${e.recurrence}-${e.during}`],T` ${(t,n)=>SLe(n.parent.recurrence,e,n.parent)} `,{recycle:!1})}</div></template>`,CLe=T` ${e=>n6(gb(e))} `;var r6=class extends P{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:eLe,buildConfigForHourlyRecurrence:$Ie,buildConfigForDailyRecurrence:QIe,buildConfigForWeeklyRecurrence:tLe,buildConfigForMonthlyRecurrence:rLe,buildConfigForYearlyRecurrence:nLe},this.recurrence=Q.DAILY,this.cron=``,this.value=this.cron,this.cronConfig={type:Q.DAILY,weekType:L3.WEEK,hours:`0`,minutes:`0`,seconds:`0`},this.frequency=`1`,this.during=`every_hour`,this.hours=`0`,this.minutes=`0`,this.seconds=`0`,this.disableTooltips=!1,this.timezone=``}cronChanged(){if(this.cron)try{if(!ZIe(this.cron)){bC({title:`Cron Scheduler`,body:`Invalid Cron Expression`,toast:{type:`critical`}},gb(this));return}this.setsFieldsFromCronEx()}catch(e){console.error(`Error:`,e),bC({title:`Cron Scheduler`,body:e,toast:{type:`critical`}},gb(this));return}}get duringOptions(){return[{label:`Every hour`,value:`every_hour`},{label:`Specific hours`,value:`specific_hours`}]}get frequencySuffix(){switch(this.cronConfig.type){case Q.MINUTES:return`Minute(s)`;case Q.HOURLY:return`Hour(s)`;case Q.DAILY:return`Day(s)`;case Q.MONTHLY:return`Month(s)`;default:return``}}get frequencyList(){switch(this.cronConfig.type){case Q.MINUTES:let e=[1,2,3,4,5,6,10,12,15,20,30],t=this.minMinuteInterval?Number(this.minMinuteInterval):1;return e.filter(e=>e>=t);case Q.HOURLY:return Array.from({length:23},(e,t)=>t+1);case Q.DAILY:return Array.from({length:31},(e,t)=>t+1);case Q.MONTHLY:return Array.from({length:12},(e,t)=>t+1);case Q.YEARLY:return Array.from({length:12},(e,t)=>t+1);case Q.WEEKLY:return[1];default:return[]}}get hourOptions(){return Array.from({length:24},(e,t)=>({label:t.toString(),value:t.toString()}))}get selectedHours(){return!this.hours||this.hours===`*`||this.hours===`0`?this.hours===`*`?this.hourOptions.map(e=>e.value):[this.hours]:this.hours.split(`,`)}handleHoursChange(e){let t=e.detail;t.length===24?(this.hours=`*`,this.frequency=`1`,this.cronConfig.frequency=`1`):this.hours=!t||t.length===0?`0`:t.sort((e,t)=>Number(e)-Number(t)).join(`,`),this.handleChange(`hours`)}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return this.during===`specific_hours`}get isDailyFrequencyDisabled(){return this.cronConfig.type===Q.DAILY&&this.cronConfig.weekType===L3.WORK_WEEK}minMinuteIntervalChanged(){this.minMinuteInterval>=60&&console.warn(`Minimum minute interval has no effect on schedules with an hourly or longer recurrance`)}connectedCallback(){super.connectedCallback(),this.addEventListener(B3.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(B3.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Q.MINUTES:let e=this.getBaseConfigFields(),{minutes:t}=e,n=rd(e,[`minutes`]);this.during=`every_hour`,this.hours=`*`;let r=[1,2,3,4,5,6,10,12,15,20,30],i=this.minMinuteInterval?Number(this.minMinuteInterval):1,a=r.find(e=>e>=i)||1;this.cronConfig=Object.assign(Object.assign({type:Q.MINUTES},n),{frequency:a.toString(),during:`every_hour`,hours:`*`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.HOURLY:let o=this.getBaseConfigFields(),{hours:s}=o,c=rd(o,[`hours`]);this.during=`every_hour`,this.hours=`0`,this.cronConfig=Object.assign(Object.assign({type:Q.HOURLY},c),{frequency:`1`,during:`every_hour`,hours:`0`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.DAILY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.DAILY},this.getBaseConfigFields()),{frequency:`1`,weekType:L3.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.WEEKLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.WEEKLY},this.getBaseConfigFields()),{frequency:`1`,selectedDays:/* @__PURE__ */ new Set([`2`])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.MONTHLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.MONTHLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:R3.DATE,dayDate:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.YEARLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.YEARLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:R3.DATE,dayDate:`1`,month:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:bC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},gb(this))}}handleChange(e){if(e===`frequency`&&Number(this.frequency)===0)throw Error(`Frequency must be greater than 0`);this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){this.during===`every_hour`?this.hours=`*`:this.hours===`*`&&(this.hours=`0`),(this.cronConfig.type===Q.MINUTES||this.cronConfig.type===Q.HOURLY)&&(this.cronConfig.during=this.during,this.cronConfig.hours=this.hours),this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Q.MINUTES:this.cron=GIe(e);break;case Q.HOURLY:this.cron=WIe(e);break;case Q.DAILY:this.cron=KIe(e,V3);break;case Q.WEEKLY:this.cron=qIe(e);break;case Q.MONTHLY:this.cron=JIe(e,V3);break;case Q.YEARLY:this.cron=YIe(e);break;default:bC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},gb(this))}this.value=this.cron,this.$emit(`change`)}setsFieldsFromCronEx(){this.cronConfig=iLe(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;let e=this.cronConfig;`minutes`in e&&(this.minutes=e.minutes),(e.type===Q.MINUTES||e.type===Q.HOURLY)&&(this.during=e.during||`every_hour`,e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==Q.HOURLY&&e.type!==Q.MINUTES&&(this.hours=e.hours)}};q([C],r6.prototype,`recurrence`,void 0),q([C],r6.prototype,`cron`,void 0),q([C],r6.prototype,`cronConfig`,void 0),q([C],r6.prototype,`frequency`,void 0),q([C],r6.prototype,`during`,void 0),q([w],r6.prototype,`duringOptions`,null),q([C],r6.prototype,`hours`,void 0),q([C],r6.prototype,`minutes`,void 0),q([C],r6.prototype,`seconds`,void 0),q([w],r6.prototype,`frequencySuffix`,null),q([w],r6.prototype,`frequencyList`,null),q([w],r6.prototype,`hourOptions`,null),q([w],r6.prototype,`selectedHours`,null),q([D({attribute:`min-minute-interval`})],r6.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],r6.prototype,`disableTooltips`,void 0),q([w],r6.prototype,`isMinutesRecurrenceEnabled`,null),q([w],r6.prototype,`isSpecificHours`,null),q([w],r6.prototype,`isDailyFrequencyDisabled`,null),q([D],r6.prototype,`timezone`,void 0);let i6={};r6.compose(Object.assign({baseName:`scheduler-cron-builder`,styles:G3,template:CLe,shadowOptions:void 0},i6));let a6=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.timezone-combobox::part(listbox){max-height: 20vh}`,o6=e=>T`<template><div class="container"><label class="label">Time Zone</label><${e}-combobox data-test-id="cron-scheduler-timezone" autocomplete="both" class="timezone-combobox" value="${lf(e=>e.timezone)}">${j(e=>e.timeZones,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-combobox></div></template>`,wLe=T` ${e=>o6(gb(e))} `;var s6=class extends P{constructor(){super(...arguments),this.timezone=``,this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit(`change`)}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return J(this,void 0,void 0,function*(){let e=[`Europe/London`,`America/New_York`];try{let t=yield this.connect.request(`VALID_TIME_ZONE`,{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw Error(`Invalid data returned for Timezones`);this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,n)=>e.includes(t)&&!e.includes(n)?-1:!e.includes(t)&&e.includes(n)?1:t.localeCompare(n))}catch(e){bC({title:`Cron Scheduler`,body:`Unable to fetch timezones data.`,toast:{type:`critical`}},`rapid`),Y.error(e)}})}};q([C],s6.prototype,`timezone`,void 0),q([Yv],s6.prototype,`connect`,void 0),q([C],s6.prototype,`timeZones`,void 0);let c6={};s6.compose(Object.assign({baseName:`scheduler-timezone`,styles:a6,template:wLe,shadowOptions:void 0},c6));let l6=O` .search-bar-combobox{width: 100%;min-width: auto}.padding{padding-left: calc(${B} * 1px)}.selected-options{display: flex;align-items: center;overflow: hidden;gap: calc(${B} * 1px);padding-right: calc(${B} * 1px)}.selected-options:hover{overflow-x: overlay}.selected-options::-webkit-scrollbar{height: 7px}.selected-options::-webkit-scrollbar-thumb{border-radius: 10px;box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);background-color: #484848;border: 1px solid #7e7e7e}.selected-options-divider{border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}.options-button{height: fit-content;min-width: fit-content}.label{display: block;font-size: var(--type-ramp-base-font-size);margin: calc(${B} * 2px) 2px}.label-hidden{display: none}.search-clear-button{min-width: 28px;min-height: 28px;height: 28px;margin: 0}.search-clear-button svg{rotate: 45deg}.search-clear-button::part(control){padding: 0}.search-clear-button .svg-container{display: flex;align-items: center;justify-content: center}.close-icon{color: var(--accent-fill-rest)}`,u6=e=>T`<label part="label" for="control" data-test-id="label" class=${e=>pn(`label`,[`label-hidden`,!e.defaultSlottedNodes?.length])}><slot ${xt({property:`defaultSlottedNodes`,filter:ga})}></slot></label><${e}-search-bar-combobox ${k(`combobox`)}position="${e=>e.position}" placeholder=${e=>e.placeholder}disabled=${e=>e.disabled}:inputLocked="${e=>e.allSearchFieldsUsed}" autocomplete="none" minlength=${e=>e.minlength}@inputdeleted=${e=>e.inputdeleted()}@change=${e=>e.changeHandler()}@input=${e=>e.inputHandler()}@paste=${(e,t)=>e.pasteHandler(t.event)}class="search-bar-combobox ${e=>e.selectedOptions.length>0?`padding`:null}" data-test-id="search-bar"><div ${k(`selectedOptionsDiv`)}slot="selectedOptions" class="selected-options ${e=>e.selectedOptions.length>0?`selected-options-divider`:null}">${j(e=>e.selectedOptions,T`<${e}-button class="options-button" appearance=${(e,t)=>t.parent.appearance}disabled=${(e,t)=>t.parent.disabled}@click=${(e,t)=>t.parent.unselectOption(e)}>${e=>e.label}<${e}-icon class="close-icon" slot="end" name="circle-xmark" variant="regular"></${e}-icon></${e}-button>`)}</div>${j(e=>e.filteredOptions,T`<${e}-option value="${e=>e.field}" :disabled=${(e,t)=>!t.parent.isOptionEnabled(e)}>${(e,t)=>e.label(t.parent.searchTerm)}</${e}-option>`)} ${A(e=>e.showClearAffordance,T`<${e}-button class="search-clear-button" @click=${e=>e.clearSearch()}slot="end" data-test-id="clear-search" aria-label="Clear search terms" title="Clear search terms"><div class="svg-container"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="26px" height="26px" class="bi bi-plus" viewBox="0 0 16 16"><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" /></svg></div></${e}-button>`)}</${e}-search-bar-combobox>`,TLe=T` ${e=>u6(gb(e))} `;var d6=class extends P{constructor(){super(...arguments),this.searchTerm=``,this.appearance=`neutral`,this.minlength=3,this.position=bw.BELOW,this.placeholder=`Start typing to search`,this.clearButton=!0,this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g,` `),this.addOrReplaceSelectedText=(e,t,n)=>t?.length>0?e.replace(t,n):e.concat(n)}clear(){this.selectedOptions=[],this.searchTerm=``,this.combobox&&(this.combobox.currentValue=``,this.combobox.value=``),this.$emit(`selectionChange`,[])}clearSearch(){this.clear()}get showClearAffordance(){if(!this.clearButton)return!1;let e=(this.searchTerm??this.combobox?.value??``).trim();return this.selectedOptions.length>0||e.length>0}get allSearchFieldsUsed(){return this.options?.length?this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field)):!1}isOptionEnabled(e){return e.isEnabled?e.isEnabled(this.searchTerm,this.selectedOptions,this.minlength):this.searchTerm.length>=this.minlength&&!this.selectedOptions.some(t=>t.field===e.field)}selectedOptionsChanged(){this.applySearchInputLock()}optionsChanged(){this.applySearchInputLock()}applySearchInputLock(){this.combobox&&this.allSearchFieldsUsed&&(this.searchTerm=``,this.combobox.value=``,this.combobox.currentValue=``,this.combobox.open=!1,this.filteredOptions=[])}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){let e=[];this.combobox.selectedOptions.forEach(t=>{let n=t.value,r=this.searchTerm.trim();e.push({field:n,term:r,label:this.options.find(e=>e.field===n)?.label(r)||t.text,createCriteria:this.options.find(e=>e.field===n)?.createCriteria,resourceType:this.options.find(e=>e.field===n)?.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,n)=>t===n.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value=``,this.combobox.open=!1,this.$emit(`selectionChange`,this.selectedOptions),x.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},10)})}pasteHandler(e){if(this.allSearchFieldsUsed){e.preventDefault();return}this.loading=!0;let t=e.clipboardData.getData(`text/plain`),n=this.normalizeDelimiter(t),r=window.getSelection()?.toString(),i=this.addOrReplaceSelectedText(this.combobox.value,r,n);i?.length>=this.minlength&&(this.combobox.value=i,this.searchTerm=i,this.options&&this.filterSelectedOptions(i),this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(n=>n.term===e&&n.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit(`selectionChange`,this.selectedOptions)}inputHandler(){return J(this,void 0,void 0,function*(){if(this.allSearchFieldsUsed){this.applySearchInputLock();return}this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1})}filterSelectedOptions(e){this.filteredOptions=this.options.filter(t=>!this.selectedOptions.find(n=>n.field===t.field&&n.term.trim()===e.trim()))}};q([C],d6.prototype,`defaultSlottedNodes`,void 0),q([C],d6.prototype,`options`,void 0),q([C],d6.prototype,`searchTerm`,void 0),q([D],d6.prototype,`appearance`,void 0),q([D],d6.prototype,`minlength`,void 0),q([D],d6.prototype,`position`,void 0),q([D],d6.prototype,`placeholder`,void 0),q([D],d6.prototype,`disabled`,void 0),q([D({attribute:`clear-button`,mode:`boolean`})],d6.prototype,`clearButton`,void 0),q([C],d6.prototype,`loading`,void 0),q([C],d6.prototype,`selectedOptions`,void 0),q([C],d6.prototype,`filteredOptions`,void 0);let f6={};d6.compose(Object.assign({baseName:`search-bar`,template:TLe,styles:l6,shadowOptions:void 0},f6));let p6=(e,t)=>O` ${Lw(e,t)} .control{width: auto;padding-left: calc(${B} * 1px);padding-right: 0}.end{height: 100%;min-width: 36px;max-width: 36px;padding-right: 2px;display: flex;justify-content: flex-end;align-items: center}.selected-value{min-width: 150px;max-width: 169px}.input-locked .control, :host(.input-locked) .control{width: 0;min-width: 0;padding: 0;margin: 0;overflow: hidden;flex: 0}.input-locked .selected-value, :host(.input-locked) .selected-value{display: none}`,m6=(e,t)=>T`<template aria-disabled="${e=>e.ariaDisabled}" autocomplete="${e=>e.autocomplete}" class="${e=>e.open?`open`:``} ${e=>e.disabled?`disabled`:``} ${e=>e.position} ${e=>e.inputLocked?`input-locked`:``}body" ?open="${e=>e.open}" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" data-test-id="combobox"><slot name="selectedOptions" data-test-id="options"></slot><div class="control" part="control"><slot name="control"><input aria-activedescendant="${e=>e.open?e.ariaActiveDescendant:null}" aria-autocomplete="${e=>e.ariaAutoComplete}" aria-controls="${e=>e.ariaControls}" aria-disabled="${e=>e.ariaDisabled}" aria-expanded="${e=>e.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${e=>e.placeholder}" role="combobox" type="text" ?disabled="${e=>e.disabled}" :value="${e=>e.value}" @input="${(e,t)=>e.inputHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}" ${k(`control`)}data-test-id="selected-value" /></slot></div>${wt(e,t)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>!e.open}" ${k(`listbox`)}data-test-id="listbox"><slot ${xt({filter:zr.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></div></template>`,ELe=/* @__PURE__ */ new Set([`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);var h6=class extends $l{constructor(){super(...arguments),this.minlength=1,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener(`change`,this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`change`,this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest(`option,[role=option]`);if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit(`change`)}this.control.focus()}}keyupHandler(e){switch(e.key){case`Backspace`:case`Delete`:this.previousLength<0?this.$emit(`inputdeleted`):--this.previousLength;break;case`Enter`:if(this.open&&this.selectedIndex!==-1){let e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit(`change`)}}super.keyupHandler(e)}keydownHandler(e){let t=e.key;if(this.inputLocked){let n=e.ctrlKey||e.metaKey||e.altKey;if(!(ELe.has(t)||n))return e.preventDefault(),!1}switch(t){case`ArrowUp`:case`ArrowDown`:return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case`Enter`:return this.selectedIndex!==-1&&super.keydownHandler(e);case`Tab`:if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){if(this.inputLocked){this.control.value=``,this.value=``,this.open=!1,e.stopImmediatePropagation();return}this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView();return}this.ariaControls=``,this.ariaExpanded=`false`}};q([D],h6.prototype,`minlength`,void 0),q([C],h6.prototype,`inputLocked`,void 0);let g6={delegatesFocus:!0,mode:`open`},_6={};h6.compose(Object.assign({baseName:`search-bar-combobox`,template:m6,styles:p6,shadowOptions:g6},_6));let v6=O` :host{display: block;width: 100%;height: 100%;min-height: 400px;/* Section link marker CSS variables to allow customization of the marker */ --section-link-marker-width: 2px;--section-link-marker-height: 100%;--section-link-marker-left: 0;--section-link-marker-top: 0;--section-link-marker-transition: background-color 0.2s ease;--section-link-marker-background-color: transparent;--section-link-marker-background-color-hover: var(--neutral-layer-hover);--section-link-marker-background-color-active: var(--accent-fill-rest);/* Section link CSS variables to allow customization of the link */ --section-link-text-align: left;--section-link-text-white-space: initial}.section-navigator-container{display: flex;height: 100%;max-height: 100%;width: 100%}.section-navigation{background-color: var(--neutral-layer-2);border-right: 1px solid var(--neutral-stroke-divider);overflow-y: auto;height: 100%;min-width: 20%}.section-link{position: relative;display: block;width: 100%;color: var(--neutral-foreground-rest);text-decoration: none;border: none;background: none;text-align: left;transition: all 0.2s ease;cursor: pointer;font-family: inherit;font-size: inherit;margin: 0;border-radius: 0;vertical-align: top}.section-link.active:hover{color: var(--neutral-foreground-rest)}.section-link:hover{color: var(--accent-foreground-rest)}.section-link::part(control){vertical-align: top;white-space: inherit}.section-link::before{content: '';position: absolute;top: var(--section-link-marker-top);left: var(--section-link-marker-left);width: var(--section-link-marker-width);height: var(--section-link-marker-height);background-color: var(--section-link-marker-background-color);transition: var(--section-link-marker-transition);z-index: 1}.section-link:hover::before{background-color: var(--section-link-marker-background-color-hover)}.section-link.active::before{background-color: var(--section-link-marker-background-color-active)}.section-link::part(content){padding: 0;text-align: var(--section-link-text-align);white-space: var(--section-link-text-white-space)}.section-content-wrapper{flex: 1;height: 100%;overflow: hidden;display: flex;flex-direction: column}.section-content{flex: 1;overflow: hidden auto;padding: calc(var(--design-unit) * 4px);background-color: var(--neutral-layer-1);min-height: 0}.section-content::-webkit-scrollbar{width: var(--scrollbar-width)}.section-content::-webkit-scrollbar-track{background: var(--neutral-layer-4)}.section-content::-webkit-scrollbar-thumb{width: var(--scrollbar-thumb-width);/* 8px */ border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-layer-2);border: 3px solid var(--neutral-layer-4)}.content-section{background-color: var(--neutral-layer-1)}.state-icon{margin-left: calc(var(--design-unit) * 1px);width: 12px;height: 12px}.state-icon[data-state='active']{color: var(--accent-fill-rest)}.state-icon[data-state='inactive']{color: var(--neutral-foreground-rest)}.state-icon[data-state='pending']{color: var(--warning-fill-rest)}.state-icon[data-state='disabled']{color: var(--neutral-foreground-disabled)}.state-icon[data-state='error']{color: var(--error-fill-rest)}.state-icon[data-state='completed']{color: var(--success-fill-rest)}/* Section button state colors */ .section-link.state-active{color: var(--accent-foreground-rest)}.section-link.state-inactive{color: var(--neutral-foreground-hint)}.section-link.state-pending{color: var(--warning-color)}.section-link.state-disabled{color: var(--neutral-foreground-disabled)}.section-link.state-error{color: var(--error-color)}.section-link.state-completed{color: var(--success-color)}.section-link.state-multiple{color: var(--accent-foreground-rest)}.section-link.state-none{color: var(--neutral-foreground-rest)}`,DLe=e=>T`<template><div class="section-navigator-container" part="section-navigator-container" ${k(`sectionNavigatorContainer`)}><nav class="section-navigation" part="section-navigator-navigation">${j(e=>e.sectionItems,T`<${e}-button class="section-link ${(e,t)=>t.parent.activeSection===e.name?`active`:``} ${(e,t)=>t.parent.getSectionStateClass(e)}" part="section-navigator-section-link ${(e,t)=>t.parent.getSectionStateClass(e)}" @click="${(e,t)=>t.parent.handleSectionClick(e.name)}">${e=>e.label} ${j(e=>e.states||[],T`<${e}-icon class="state-icon" part="section-navigator-state-icon" title="${(e,t)=>t.parentContext.parent.getStateTooltip(e)}" data-state="${e=>e}" name="${(e,t)=>t.parentContext.parent.getStateIcon(e).name}" variant="${(e,t)=>t.parentContext.parent.getStateIcon(e).variant}"></${e}-icon>`)}</${e}-button>`)}</nav><div class="section-content-wrapper" part="section-navigator-content-wrapper"><section class="section-content" part="section-navigator-content" ${k(`sectionContent`)}>${j(e=>e.sectionItems,T`<div class="content-section" part="section-navigator-content-section" data-section="${e=>e.name}"><slot name="${e=>e.name}"></slot></div>`)}</section></div></div></template>`,y6=T` ${e=>DLe(gb(e))} `,b6=Ad(`SectionNavigator`),x6=`section-navigator`,S6={setState:`${x6}-set-state`,setStates:`${x6}-set-states`,clearState:`${x6}-clear-state`,clearAllStates:`${x6}-clear-all-states`},OLe={active:`Active`,inactive:`Inactive`,pending:`Pending`,disabled:`Disabled`,error:`Error`,completed:`Completed`},C6={active:{name:`circle-dot`,variant:`solid`},inactive:{name:`times-circle`,variant:`regular`},pending:{name:`clock`,variant:`solid`},disabled:{name:`ban`,variant:`solid`},error:{name:`times`,variant:`solid`},completed:{name:`check`,variant:`solid`}};var w6=class e extends P{constructor(){super(...arguments),this.sections=[],this.scrollBehavior=`top`,this.stateTooltips=OLe,this.stateIcons=C6,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=``}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections)){b6.warn(`Sections must be an array`),this.sectionItems=[];return}this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(!this.sectionContent){b6.warn(`Section content element not found`);return}if((e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0,this.scrollBehavior===`top`)try{let e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(`.content-section:last-child`);if(t){let n=t.offsetHeight,r=Math.max(0,e-n-20);this.spacerElement=document.createElement(`div`),this.spacerElement.className=`scroll-spacer`,this.spacerElement.style.height=`${r}px`,this.spacerElement.style.pointerEvents=`none`,this.sectionContent.appendChild(this.spacerElement)}}catch(e){b6.error(`Error updating spacer:`,e)}}scrollToSection(e){if(!this.sectionContent){b6.warn(`Section content not available`);return}try{let t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t){b6.warn(`Section "${e}" not found`);return}let n=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:n,behavior:`smooth`}),this.setupScrollEndDetection()}catch(e){b6.error(`Error scrolling to section:`,e)}}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(!this.sectionContent){b6.warn(`Section content not available for scroll detection`);return}try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},e.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener(`scroll`,this.scrollCheckHandler,{passive:!0});let t=()=>{this.isUserScrolling=!0},n=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};this.sectionContent.addEventListener(`wheel`,t,{passive:!0}),this.sectionContent.addEventListener(`touchstart`,t,{passive:!0}),this.sectionContent.addEventListener(`mousedown`,t,{passive:!0}),this.sectionContent.addEventListener(`scrollend`,n,{passive:!0});let r;this.sectionContent.addEventListener(`scroll`,()=>{clearTimeout(r),r=window.setTimeout(n,e.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){b6.error(`Error setting up scroll detection:`,e)}}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;let e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2,t=null,n=1/0;this.sectionItems.forEach(r=>{let i=this.sectionContent.querySelector(`[data-section="${r.name}"]`);if(i){let a=i.offsetTop+i.clientHeight/2,o=Math.abs(a-e);o<n&&(n=o,t=r.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener(`scroll`,this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){if(!this.sectionContent){b6.warn(`Section content not available for event listeners`);return}this.handleSetStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.addState(t,n)}catch(e){b6.error(`Error handling set-state event:`,e)}},this.handleSetStatesRef=e=>{try{let{sectionName:t,stateNames:n}=e.detail;this.addStates(t,n)}catch(e){b6.error(`Error handling set-states event:`,e)}},this.handleClearStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.clearState(t,n)}catch(e){b6.error(`Error handling clear-state event:`,e)}},this.handleClearAllStatesRef=e=>{try{let{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){b6.error(`Error handling clear-all-states event:`,e)}},this.handleGenericStateEventRef=e=>{try{let t=e.type,n=e.detail;if(n?.sectionName)return;let r=e.target.closest(`[data-section]`)?.getAttribute(`data-section`);r||(r=e.target.closest(`[slot]`)?.getAttribute(`slot`)||this.activeSection),r||(r=this.activeSection),e.stopPropagation(),e.preventDefault();let i=Object.assign(Object.assign({},n),{sectionName:r}),a=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){b6.error(`Error handling generic state event:`,e)}},this.addEventListener(S6.setState,this.handleSetStateRef),this.addEventListener(S6.setStates,this.handleSetStatesRef),this.addEventListener(S6.clearState,this.handleClearStateRef),this.addEventListener(S6.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(S6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(S6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(S6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(S6.clearAllStates,this.handleGenericStateEventRef,!0)}updateSectionStates(e,t){let n=this.sectionItems.findIndex(t=>t.name===e);if(n!==-1){let e=Object.assign(Object.assign({},this.sectionItems[n]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,n),e,...this.sectionItems.slice(n+1)]}}addState(e,t){if(!e||!t){b6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){b6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[];if(!r.includes(t)){let n=[...r,t];this.updateSectionStates(e,n)}}addStates(e,t){if(!e||!Array.isArray(t)){b6.warn(`Section name and state names array are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){b6.warn(`Section "${e}" not found`);return}let r=[...this.sectionItems[n].states||[]];t.forEach(e=>{r.includes(e)||r.push(e)}),this.updateSectionStates(e,r)}clearState(e,t){if(!e||!t){b6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){b6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[],i=r.indexOf(t);if(i>-1){let t=r.filter((e,t)=>t!==i);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e){b6.warn(`Section name is required`);return}if(this.sectionItems.findIndex(t=>t.name===e)===-1){b6.warn(`Section "${e}" not found`);return}this.updateSectionStates(e,[])}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||``:(b6.warn(`State name is required`),``)}getSectionStateClass(e){if(!e)return b6.warn(`Section is required`),`state-none`;let t=e.states||[];return t.length===0?`state-none`:t.length>1?`state-multiple`:`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||C6[e]:(b6.warn(`State name is required`),C6.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(S6.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(S6.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(S6.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(S6.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(S6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(S6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(S6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(S6.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),(e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0}};w6.SCROLL_END_TIMEOUT=150,w6.SCROLL_DEBOUNCE_TIMEOUT=100,q([C],w6.prototype,`sections`,void 0),q([D({attribute:`scroll-behavior`})],w6.prototype,`scrollBehavior`,void 0),q([D({attribute:`state-tooltips`})],w6.prototype,`stateTooltips`,void 0),q([D({attribute:`state-icons`})],w6.prototype,`stateIcons`,void 0),q([D({attribute:`disable-auto-scroll-detection`,mode:`boolean`})],w6.prototype,`disableAutoScrollDetection`,void 0),q([C],w6.prototype,`sectionItems`,void 0),q([C],w6.prototype,`activeSection`,void 0);let T6={mode:`open`},E6={};w6.compose(Object.assign({baseName:`foundation-section-navigator`,template:y6,styles:v6,shadowOptions:T6},E6));let D6=(e,t)=>ua(e,t),O6=(e,t)=>O` ${bu(e,t)} ::slotted(foundation-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}::slotted(foundation-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}`;var k6=class extends da{valueChanged(){this.value===void 0&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}};k6.compose(Object.assign({baseName:`segmented-control`,template:D6,styles:O6,shadowOptions:void 0},{}));let A6=(e,t)=>T`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><span><slot></slot></span></template>`,j6=(e,t)=>O` ${xu(e,t)} :host{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);cursor: pointer}:host([aria-checked='true']){background: var(--accent-foreground-rest)}`;(class extends pa{}).compose(Object.assign({baseName:`segmented-item`,template:A6,styles:j6,shadowOptions:void 0},{}));let M6=(e,t)=>xa(e,t),N6=(e,t)=>O` ${Zl(e,t)} :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible), .control:focus-visible{box-shadow: none;outline: none}`;var P6=class extends Cu{get scrollableListbox(){return this.listbox??this.shadowRoot?.querySelector(`.listbox`)}slottedOptionsChanged(e,t){let n=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;let r=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{let t=e.nodeName.toLowerCase();if(t.endsWith(`-optgroup`)){let t=Array.from(e.children).filter(e=>{let t=e.nodeName.toLowerCase();return e.getAttribute(`role`)===`option`||t.endsWith(`-option`)});r.push(...t)}else(e.getAttribute(`role`)===`option`||t.endsWith(`-option`))&&r.push(e)}),this.options=r,n&&(this.value=n),this.selectedIndex===-1&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(_b(this))&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:`nearest`})}))}openChanged(e,t){if(this.collapsible){if(this.$emit(`open-change`,{open:this.open}),this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,x.queueUpdate(()=>this.focus());return}this.ariaControls=``,this.ariaExpanded=`false`}}keydownHandler(e){switch(e.key){case`ArrowDown`:case`ArrowUp`:this.open?this.options[this.selectedIndex]?.scrollIntoView({block:`center`,behavior:`auto`}):this.open=!0}return super.keydownHandler(e)}};let F6={indicator:`
|
|
981
981
|
<svg
|
|
982
982
|
class="select-indicator"
|
|
983
983
|
part="select-indicator"
|
|
@@ -990,23 +990,23 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
|
|
|
990
990
|
</svg>
|
|
991
991
|
`};P6.compose(Object.assign({baseName:`select`,template:M6,styles:N6,shadowOptions:void 0},F6));let I6=(e,t)=>Sa(e,t),L6=(e,t)=>O` ${wu(e,t)}`;var R6=class extends Ca{};let z6={};R6.compose(Object.assign({baseName:`skeleton`,template:I6,styles:L6,shadowOptions:void 0},z6));let B6=(e,t)=>T`<template role="slider" class="${e=>e.readOnly?`readonly`:``} ${e=>e.orientation||dn.horizontal}" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${k(`track`)}part="track-container" class="track"><div class="track-progress" style="${e=>{let t=1-In(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),n=Math.round((1-t)*100);return e.orientation===`horizontal`?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${n}%;`:`height: calc(var(--track-width) * 1px); width: ${n}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${n}%;`:`width: calc(var(--track-width) * 1px); height: ${n}%; transition: all 0.2s ease;`}}"></div></div><slot></slot><div ${k(`thumb`)}part="thumb-container" class="thumb-container" style="${e=>e.position}"><slot name="thumb">${t.thumb||``}</slot></div></div></template>`,V6=(e,t)=>O` ${ku(e,t)} .track-progress{background-color: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;var H6=class extends Oa{};let U6={thumb:`
|
|
992
992
|
<div class="thumb-cursor"></div>
|
|
993
|
-
`};H6.compose(Object.assign({baseName:`slider`,template:B6,styles:V6,shadowOptions:void 0},U6));let W6=(e,t)=>wa(e,t),G6=(e,t)=>O` ${Du(e,t)}`;var K6=class extends Ou{};let q6={};K6.compose(Object.assign({baseName:`slider-label`,template:W6,styles:G6,shadowOptions:void 0},q6));let J6=`default`,Y6=1e4,X6={DISMISS:`dismiss`,AUTO_DISMISS:`autoDismiss`},Z6=O` @keyframes append-from-left-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-from-left-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}@keyframes append-from-top-animate{from{transform: translateY(-100%);opacity: 0%}to{transform: translateY(0%);opacity: 100%}}@keyframes delete-from-top-animate{from{transform: translateY(0%);opacity: 100%}to{transform: translateY(-100%);opacity: 0%}}@keyframes delete-fade-animate{from{opacity: 100%}to{opacity: 0%}}:host{--snackbar-min-width: 356px;--snackbar-min-height: 55px;--snackbar-max-width: 496px;--snackbar-max-height: auto;--snackbar-animation-name: append-from-left-animate;--snackbar-animation-delete-name: delete-from-left-animate}.snackbar{animation: var(--snackbar-animation-name) 0.3s linear;max-width: var(--snackbar-max-width);min-width: var(--snackbar-min-width);min-height: var(--snackbar-min-height);max-height: var(--snackbar-max-height);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-fill-rest);box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);box-sizing: border-box;display: flex;position: relative;bottom: 5px;flex-direction: row;padding: 2px 16px}.snackbar-delete{animation: var(--snackbar-animation-delete-name) 0.3s linear;opacity: 0%}.snackbar::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 0;height: calc(100% - 2px);width: 2px;border-radius: 2px}.content{display: flex;align-items: center;flex: 2;font-size: 12px;overflow: hidden;overflow-wrap: anywhere;white-space: pre-line}.action{display: flex;flex-direction: row-reverse;align-items: center;gap: 10px;flex: 1;overflow: hidden}`,Q6=e=>T`<div role="alert" aria-live="polite" part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${k(`snackbar`)}><div part="content" class="content"><slot name="content">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</slot></div>${A(e=>e.error?.config?.snackbar?.confirmingActions?.length||e.notification?.config?.snackbar?.confirmingActions?.length,T`<div part="action" class="action"><slot name="action">${j(e=>e.error?.config?.snackbar?.confirmingActions||e.notification?.config?.snackbar?.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</slot></div>`)}</div>`,DLe=T` ${e=>Q6(gb(e))} `,$6={mode:`open`,delegatesFocus:!0};var e8=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=Y6,this.autoClose=!0,this.type=J6,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout(()=>{this.handleDissmis(!0)},this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(X6.DISMISS,this.dismissEventListener)}errorChanged(e,t){this.type=t?.config?.snackbar?.type??J6}notificationChanged(e,t){this.type=t?.config?.snackbar?.type??J6,this.autoClose=t?.config?.snackbar?.autoClose??!0,this.closeTimeout=t?.config?.snackbar?.closeTimeout??Y6}handleDissmis(e=!1){this.deleteAnimation=`snackbar-delete`,this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(X6.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(X6.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}};q([C],e8.prototype,`error`,void 0),q([C],e8.prototype,`notification`,void 0),q([C],e8.prototype,`deleteAnimation`,void 0),q([D({attribute:`identifier`})],e8.prototype,`identifier`,void 0),q([D({attribute:`close-timeout`})],e8.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],e8.prototype,`autoClose`,void 0),q([D({attribute:`type`})],e8.prototype,`type`,void 0),e8.compose({baseName:`snackbar`,styles:Z6,template:DLe,shadowOptions:$6});let t8=(e,t)=>O` ${j1()} .fa-stack{display: inline-block;text-align: center;line-height: 2em;height: 2em;position: relative;width: 2em}.fa-stack-1x, .fa-stack-2x{left: 50%;position: absolute;transform: translateX(-50%)}.fa-stack-2x{font-size: 2em}.fa-stack-1x{z-index: 1}`,n8=T`<span class=${e=>`fa-stack fa-${e.size}`}style=${e=>`vertical-align: ${e[`vertical-align`]};`}><slot></slot></span>`;var r8=class extends P{constructor(){super(...arguments),this.size=`1x`,this[`vertical-align`]=`baseline`}};q([D],r8.prototype,`size`,void 0),q([D],r8.prototype,`vertical-align`,void 0),r8.compose({baseName:`stacking-icons`,template:n8,styles:t8});let i8=O` .status-pill{font-size: var(--ag-data-font-size);display: inline-flex;align-items: center;gap: 5px;border-radius: 30px;height: 16px;background: grey;color: var(--neutral-foreground-rest);padding: 2px 8px;line-height: 1;font-weight: 500}.status-pill.lg{height: 32px;border-radius: 16px;padding: 2px 12px}.status-pill-initial{height: 14px;width: 14px;border-radius: 7px;font-weight: bold;font-size: 12px;display: flex;justify-content: center;align-items: center}.status-pill-image{height: 14px}`,OLe=e=>T` ${A(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),T`<div data-test-id="status-pill" part="status-pill" class="status-pill" style="color:${e=>e.textColor||``}; background:${e=>e.backgroundColor||``};">${A(e=>e.iconName,T`<${e}-icon name="${e=>e.iconName}" size="${e=>e.iconSize}"></${e}-icon>`)} ${A(e=>e.iconSrc,T`<img alt="${e=>e.iconSrc}" class="status-pill-image" src="${e=>e.iconSrc}" />`)} ${A(e=>e.iconInitial,T`<div data-test-id="status-pill-initial" class="status-pill-initial" style="color:${e=>e.textColor}; background-color:${e=>e.iconInitialBackgroundColor}">${e=>e.iconInitial.substring(0,1)}</div>`)}<span data-test-id="status-pill-text">${e=>e.text}</span>${A(e=>e.countdown,T`<span data-test-id="status-pill-countdown">${e=>e.countdown}</span>`)}</div>`)} `,a8=T` ${e=>OLe(gb(e))} `,o8=1e3,s8=86400,c8=3600,kLe=(e,t=`second`)=>{let n=e/o8,r=Math.floor(n/s8);n%=s8;let i=Math.floor(n/c8);n%=c8;let a=Math.floor(n/60),o=Math.floor(n%60),s=[];switch(r&&s.push(`${r}d`),t){case`minute`:i&&s.push(`${i}h`),a&&s.push(`${a}m`),!a&&o&&s.push(`< 1m`);break;case`hour`:i&&s.push(`${i}h`),!i&&(a||o)&&s.push(`< 1h`);break;default:i&&s.push(`${i}h`),a&&s.push(`${a}m`),o&&s.push(`${o}s`)}return s.length?s.join(` `):`0s`};var l8=class extends P{constructor(){super(...arguments),this.iconSize=`sm`,this.dateCountdownCompletedMessage=`Expired`,this.dateCountdownUnit=`second`,this.hideWhenCountdownCompleted=!1,this.isCountdownExpired=!1,this.isCountdownVisible=!0}dateCountdownChanged(e,t){if(e!==t){if(!t){this.clearCountdownTimer();return}this.isCountdownExpired=!1,this.setUpDateCountdown(t)}}dateCountdownVisibleAfterChanged(e,t){e!==t&&this.updateVisibilityFromStartTime()}connectedCallback(){this.updateVisibilityFromStartTime(),super.connectedCallback()}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))fb.warn(`invalid date-countdown value passed. Must be a number`);else{e=parseInt(e);let t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),o8)}}updateCountdown(e){let t=(/* @__PURE__ */ new Date()).getTime(),n=Math.floor(e.getTime()-t),r=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(r!==void 0&&!isNaN(r)&&t<r){this.isCountdownVisible=!1,this.countdown=null,this.isCountdownExpired=!1;return}this.isCountdownVisible=!0,n<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=kLe(n,this.dateCountdownUnit)}updateVisibilityFromStartTime(){let e=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(e!==void 0&&!isNaN(e)){let t=Date.now();this.isCountdownVisible=t>=e}else this.isCountdownVisible=!0}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}};q([D({attribute:`background-color`})],l8.prototype,`backgroundColor`,void 0),q([D({attribute:`icon-name`})],l8.prototype,`iconName`,void 0),q([D({attribute:`icon-src`})],l8.prototype,`iconSrc`,void 0),q([D({attribute:`icon-initial`})],l8.prototype,`iconInitial`,void 0),q([D({attribute:`icon-initial-background-color`})],l8.prototype,`iconInitialBackgroundColor`,void 0),q([D({attribute:`icon-size`})],l8.prototype,`iconSize`,void 0),q([D({attribute:`text-color`})],l8.prototype,`textColor`,void 0),q([D],l8.prototype,`text`,void 0),q([D({attribute:`date-countdown`})],l8.prototype,`dateCountdown`,void 0),q([D({attribute:`date-countdown-completed-message`})],l8.prototype,`dateCountdownCompletedMessage`,void 0),q([D({attribute:`date-countdown-unit`})],l8.prototype,`dateCountdownUnit`,void 0),q([D({attribute:`date-countdown-visible-after`})],l8.prototype,`dateCountdownVisibleAfter`,void 0),q([D({mode:`boolean`,attribute:`hide-when-countdown-completed`})],l8.prototype,`hideWhenCountdownCompleted`,void 0),q([C],l8.prototype,`countdown`,void 0),q([C],l8.prototype,`isCountdownExpired`,void 0),q([C],l8.prototype,`isCountdownVisible`,void 0),l8.compose({baseName:`status-pill`,styles:i8,template:a8});let u8=(e,t)=>{let n=[`step`,`step-${t}`];return e.selected&&n.push(`step-selected`),e.completed&&n.push(`step-completed`),e.error&&n.push(`step-error`),n.join(` `)},ALe=[`positioning-region: step-positioning-region`,`content-region: step-content-region`,`expand-collapse-button: step-expand-collapse-button`,`items: step-items`].join(`, `),d8=e=>T` ${uf(e=>e.orientation===Ia.vertical,T`<${e}-tree-item ${k(`treeItem`)}class=${e=>pn(`tree-item`,[`cursor-pointer`,e.showCursorPointer])}part="${e=>u8(e,`vertical`)}" exportparts="${ALe}" @click="${(e,t)=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>e.completed,T`<${e}-icon name="check-circle" variant="regular" size="lg" class="stepper-icon completed-icon" part="step-icon step-icon-completed"></${e}-icon>`)} ${A(e=>e.error,T`<${e}-icon name="times-circle" variant="regular" size="lg" class="stepper-icon error-icon" part="step-icon step-icon-error"></${e}-icon>`)}<slot></slot></${e}-tree-item>`,T`<div class=${e=>pn(`step-container`,[`selected`,e.selected])}part="${e=>u8(e,`horizontal`)}"><div class=${e=>pn(`step-number-container`,[`cursor-pointer`,e.showCursorPointer])}part="step-number-container" @click="${e=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>!e.hideStepNumber,T`<span class="step-number" part="step-number">${e=>e.tabPosition}</span>`)}<slot class="step-title"></slot></div>${A(e=>!e.isLast,T`<${e}-icon class="stepper-icon angle-icon" part="step-icon step-icon-angle" name="angle-right" variant="solid" size="lg"></${e}-icon>`)}</div>`)} `,jLe=T` ${e=>d8(gb(e))} `,f8=(e,t)=>O` .tree-item{cursor: default}.tree-item::part(content-region){margin-inline-start: 0}.tree-item[selected]::part(positioning-region):hover{background: var(--neutral-fill-rest)}.tree-item::part(positioning-region):hover{background: var(--neutral-fill-stealth-rest)}.stepper-icon{margin-right: 5px}.completed-icon{color: #69cd70}.error-icon{color: #f14376}.step-number{display: flex;justify-content: center;align-items: center;margin: 0 5px 0 0;width: 24px;height: 24px;font-size: var(--type-ramp-minus-1-font-size);font-weight: 500;color: var(--focus-stroke-outer);background-color: var(--neutral-fill-input-rest);border-radius: 50%;border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-number-container{display: flex;flex-direction: row;align-items: center;justify-content: center;width: 75%}.angle-icon{color: var(--neutral-fill-input-rest);margin: 0 calc(var(--design-unit) * 4px)}.step-title{font-size: var(--type-ramp-base-font-size);color: var(--focus-stroke-outer);font-weight: 600}:host([completed]) .step-number{border-color: #69cd70;color: white;background-color: #69cd70}:host([completed]) .step-title{color: #69cd70}:host([error]) .step-number{border-color: #f14376;color: white;background-color: #f14376}:host([error]) .step-title{color: #f14376}:host([orientation='horizontal']){flex: 1 1 0;height: 100%}.cursor-pointer{cursor: pointer}.step-container{position: relative;display: flex;align-items: center;justify-content: space-between;height: 100%}.step-container.selected::after{content: '';position: absolute;bottom: 0;left: calc(var(--design-unit) * -3px);/* This matches the left padding */ right: 28px;/* This matches the icon width + right margin */ height: 2px;width: calc(100% - 28px);background-color: var(--accent-fill-rest);/* Choose a color */}`;var p8=class extends P{constructor(){super(...arguments),this.slot=`tab`,this.orientation=Ia.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}};q([D],p8.prototype,`slot`,void 0),q([D({mode:`boolean`})],p8.prototype,`selected`,void 0),q([D({mode:`boolean`})],p8.prototype,`completed`,void 0),q([D({mode:`boolean`})],p8.prototype,`error`,void 0),q([D({mode:`boolean`})],p8.prototype,`isLast`,void 0),q([D({mode:`boolean`})],p8.prototype,`hideStepNumber`,void 0),q([D({mode:`boolean`})],p8.prototype,`showCursorPointer`,void 0),q([D({attribute:`tab-position`})],p8.prototype,`tabPosition`,void 0),q([D],p8.prototype,`orientation`,void 0);let m8={};p8.compose(Object.assign({baseName:`stepper-tab`,template:jLe,styles:f8,shadowOptions:void 0},m8));let h8=()=>T`<template slot="tab-panel" role="stepper-tab-panel"><slot></slot></template>`;var g8=class extends P{};let _8={};g8.compose(Object.assign({baseName:`stepper-tab-panel`,template:h8,shadowOptions:void 0},_8));let v8=(e,t)=>ka(e,t),y8=(e,t)=>O` ${Au(e,t)} .checked-indicator{transform: scale(1.3);border-radius: calc(var(--control-corner-radius) * 2px)}.switch{border-radius: calc(var(--control-corner-radius) * 3px)}`;var b8=class extends Aa{};b8.compose(Object.assign({baseName:`switch`,template:v8,styles:y8,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`}));let x8=(e,t)=>Na(e,t),S8=(e,t)=>O` ${Mu(e,t)} :host{user-select: none}`;var C8=class extends Pa{constructor(){super(...arguments),this.alert=!1}alertChanged(){this.alert&&BPe()}};q([D({mode:`boolean`})],C8.prototype,`alert`,void 0);let w8={};C8.compose(Object.assign({baseName:`tab`,template:x8,styles:S8,shadowOptions:void 0},w8));let T8=(e,t)=>ja(e,t),E8=(e,t)=>O` ${Nu(e,t)} :host{height: 100%;padding: 0}`;var D8=class extends Ma{};let O8={};D8.compose(Object.assign({baseName:`tab-panel`,template:T8,styles:E8,shadowOptions:void 0},O8));let k8=(e,t)=>Fa(e,t),A8=(e,t)=>O` ${ju(e,t)} :host{height: 100%;width: 100%}:host([scrollable]) [part='tablist']{overflow: auto hidden;white-space: nowrap}:host([scrollable]) ::slotted([role='tab']){flex: 0 0 auto}`;var j8=class extends La{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}};q([D({mode:`boolean`})],j8.prototype,`scrollable`,void 0);let M8={};j8.compose(Object.assign({baseName:`tabs`,template:k8,styles:A8,shadowOptions:void 0},M8));let N8=(e,t)=>Ba(e,t),P8=(e,t)=>O` ${Pu(e,t)} :host .control{padding: calc(var(--design-unit) * 3px)}`;var F8=class extends Fu{};let I8={};F8.compose(Object.assign({baseName:`text-area`,template:N8,styles:P8,shadowOptions:void 0},I8));let L8=(e,t)=>T`<template class="${e=>pn([`readonly`,e.readOnly],[`has-prefix`,!!e.prefix],[`has-suffix`,!!e.suffix])}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${xt({property:`defaultSlottedNodes`,filter:ga})}></slot></label><div class="root" part="root">${Tt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" autocapitalize="${e=>e.autocapitalize}" id="${e=>e.id?e.id:`control`}" class="control" part="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" step="${e=>e.step}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${wt(e,t)}</div></template>`,R8=(e,t)=>O` ${Iu(e,t)} /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */ ${M0} input{color-scheme: ${jh}}`;var z8=class extends D0(Lu){constructor(){super(...arguments),this.autocomplete=`off`,this.autocapitalize=`off`}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}};q([D],z8.prototype,`autocomplete`,void 0),q([D],z8.prototype,`autocapitalize`,void 0),q([D],z8.prototype,`step`,void 0);let B8={mode:`open`,delegatesFocus:!0},V8={};z8.compose(Object.assign({baseName:`text-field`,template:L8,styles:R8,shadowOptions:B8},V8));let H8=O` @keyframes append-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}:host{--toast-min-width: 356px;--toast-min-height: 128px;--toast-max-width: 356px;--toast-max-height: 272px}.toast{animation: append-animate 0.3s linear;max-width: var(--toast-max-width);min-width: var(--toast-min-width);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-stroke-rest);box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);display: flex;position: relative;flex-direction: row;padding: 8px 8px 8px 15px;margin: 5px}.toast-delete{animation: delete-animate 0.3s linear;opacity: 0%}.toast::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 5px;height: calc(100% - 10px);width: 4px;border-radius: 2px;background-color: red}.content-wrapper{height: fit-content;width: 100%;display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.bottom{width: 70%}.top{width: 100%;display: flex;flex-direction: row;justify-content: space-between;align-items: center}.content{width: 85%;font-size: 12px;overflow-wrap: break-word}::slotted(*){white-space: pre-line}.date{color: var(--neutral-foreground-hint);font-size: 12px;margin: 0 0 5px}.notification-icon{margin-right: 6px}.close-icon{cursor: pointer;margin-left: auto;color: #879ba6}`,MLe=(e=`rapid`)=>T`<${e}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`,NLe=(e=`rapid`)=>T`<div role="alert" part="root" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${k(`toast`)}><div class="content-wrapper"><div part="top" class="top">${A(e=>e.notificationIcon,T`<${e}-icon class="notification-icon" name="${e=>e.notificationIcon}" size="lg"></prefix-icon>`)}<slot name="top"></slot><div class="close-icon" @click=${e=>e.close()}>${MLe(e)}</div></div><div part="content" class="content"><slot name="content"></slot></div><div part="date" class="date"><slot name="date"></slot></div><div part="bottom" class="bottom"><slot name="bottom"></slot></div></div></div>`,U8=T` ${e=>NLe(gb(e))} `,W8={mode:`open`,delegatesFocus:!0},G8={};var K8=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=1e4,this.autoClose=!1,this.closeTimer=null}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.closeTimer=setTimeout(()=>{this.deleteAnimation=`toast-delete`,this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.closeTimer),this.closeTimer=null}close(){this.remove()}};q([C],K8.prototype,`deleteAnimation`,void 0),q([D({attribute:`close-timeout`})],K8.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`})],K8.prototype,`autoClose`,void 0),q([D({attribute:`notification-icon`})],K8.prototype,`notificationIcon`,void 0),K8.compose(Object.assign({baseName:`toast`,styles:H8,template:U8,shadowOptions:W8},G8));let q8=(e,t)=>Va(e,t),J8=(e,t)=>O` ${Ru(e,t)}`;var Y8=class extends zu{};let X8={};Y8.compose(Object.assign({baseName:`toolbar`,template:q8,styles:J8,shadowOptions:void 0},X8));let Z8=(e,t)=>Ga(e,t),Q8=(e,t)=>O` ${Bu(e,t)}`;var $8=class extends qa{};let e5={};$8.compose(Object.assign({baseName:`tooltip`,template:Z8,styles:Q8,shadowOptions:void 0},e5));let t5=(e,t)=>Ja(e,t),n5=(e,t)=>O` ${Hu(e,t)} :host{--focus-stroke-width: 0;--tree-item-nested-width: 1em}:host([selected])::after{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);width: 5px;top: 0;border-radius: 0}.positioning-region{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px)}`;var r5=class extends Xa{};r5.compose(Object.assign({baseName:`tree-item`,template:t5,styles:n5,shadowOptions:void 0},{expandCollapseGlyph:`
|
|
993
|
+
`};H6.compose(Object.assign({baseName:`slider`,template:B6,styles:V6,shadowOptions:void 0},U6));let W6=(e,t)=>wa(e,t),G6=(e,t)=>O` ${Du(e,t)}`;var K6=class extends Ou{};let q6={};K6.compose(Object.assign({baseName:`slider-label`,template:W6,styles:G6,shadowOptions:void 0},q6));let J6=`default`,Y6=1e4,X6={DISMISS:`dismiss`,AUTO_DISMISS:`autoDismiss`},Z6=O` @keyframes append-from-left-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-from-left-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}@keyframes append-from-top-animate{from{transform: translateY(-100%);opacity: 0%}to{transform: translateY(0%);opacity: 100%}}@keyframes delete-from-top-animate{from{transform: translateY(0%);opacity: 100%}to{transform: translateY(-100%);opacity: 0%}}@keyframes delete-fade-animate{from{opacity: 100%}to{opacity: 0%}}:host{--snackbar-min-width: 356px;--snackbar-min-height: 55px;--snackbar-max-width: 496px;--snackbar-max-height: auto;--snackbar-animation-name: append-from-left-animate;--snackbar-animation-delete-name: delete-from-left-animate}.snackbar{animation: var(--snackbar-animation-name) 0.3s linear;max-width: var(--snackbar-max-width);min-width: var(--snackbar-min-width);min-height: var(--snackbar-min-height);max-height: var(--snackbar-max-height);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-fill-rest);box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);box-sizing: border-box;display: flex;position: relative;bottom: 5px;flex-direction: row;padding: 2px 16px}.snackbar-delete{animation: var(--snackbar-animation-delete-name) 0.3s linear;opacity: 0%}.snackbar::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 0;height: calc(100% - 2px);width: 2px;border-radius: 2px}.content{display: flex;align-items: center;flex: 2;font-size: 12px;overflow: hidden;overflow-wrap: anywhere;white-space: pre-line}.action{display: flex;flex-direction: row-reverse;align-items: center;gap: 10px;flex: 1;overflow: hidden}`,Q6=e=>T`<div role="alert" aria-live="polite" part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${k(`snackbar`)}><div part="content" class="content"><slot name="content">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</slot></div>${A(e=>e.error?.config?.snackbar?.confirmingActions?.length||e.notification?.config?.snackbar?.confirmingActions?.length,T`<div part="action" class="action"><slot name="action">${j(e=>e.error?.config?.snackbar?.confirmingActions||e.notification?.config?.snackbar?.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</slot></div>`)}</div>`,kLe=T` ${e=>Q6(gb(e))} `,$6={mode:`open`,delegatesFocus:!0};var e8=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=Y6,this.autoClose=!0,this.type=J6,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout(()=>{this.handleDissmis(!0)},this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(X6.DISMISS,this.dismissEventListener)}errorChanged(e,t){this.type=t?.config?.snackbar?.type??J6}notificationChanged(e,t){this.type=t?.config?.snackbar?.type??J6,this.autoClose=t?.config?.snackbar?.autoClose??!0,this.closeTimeout=t?.config?.snackbar?.closeTimeout??Y6}handleDissmis(e=!1){this.deleteAnimation=`snackbar-delete`,this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(X6.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(X6.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}};q([C],e8.prototype,`error`,void 0),q([C],e8.prototype,`notification`,void 0),q([C],e8.prototype,`deleteAnimation`,void 0),q([D({attribute:`identifier`})],e8.prototype,`identifier`,void 0),q([D({attribute:`close-timeout`})],e8.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],e8.prototype,`autoClose`,void 0),q([D({attribute:`type`})],e8.prototype,`type`,void 0),e8.compose({baseName:`snackbar`,styles:Z6,template:kLe,shadowOptions:$6});let t8=(e,t)=>O` ${j1()} .fa-stack{display: inline-block;text-align: center;line-height: 2em;height: 2em;position: relative;width: 2em}.fa-stack-1x, .fa-stack-2x{left: 50%;position: absolute;transform: translateX(-50%)}.fa-stack-2x{font-size: 2em}.fa-stack-1x{z-index: 1}`,n8=T`<span class=${e=>`fa-stack fa-${e.size}`}style=${e=>`vertical-align: ${e[`vertical-align`]};`}><slot></slot></span>`;var r8=class extends P{constructor(){super(...arguments),this.size=`1x`,this[`vertical-align`]=`baseline`}};q([D],r8.prototype,`size`,void 0),q([D],r8.prototype,`vertical-align`,void 0),r8.compose({baseName:`stacking-icons`,template:n8,styles:t8});let i8=O` .status-pill{font-size: var(--ag-data-font-size);display: inline-flex;align-items: center;gap: 5px;border-radius: 30px;height: 16px;background: grey;color: var(--neutral-foreground-rest);padding: 2px 8px;line-height: 1;font-weight: 500}.status-pill.lg{height: 32px;border-radius: 16px;padding: 2px 12px}.status-pill-initial{height: 14px;width: 14px;border-radius: 7px;font-weight: bold;font-size: 12px;display: flex;justify-content: center;align-items: center}.status-pill-image{height: 14px}`,ALe=e=>T` ${A(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),T`<div data-test-id="status-pill" part="status-pill" class="status-pill" style="color:${e=>e.textColor||``}; background:${e=>e.backgroundColor||``};">${A(e=>e.iconName,T`<${e}-icon name="${e=>e.iconName}" size="${e=>e.iconSize}"></${e}-icon>`)} ${A(e=>e.iconSrc,T`<img alt="${e=>e.iconSrc}" class="status-pill-image" src="${e=>e.iconSrc}" />`)} ${A(e=>e.iconInitial,T`<div data-test-id="status-pill-initial" class="status-pill-initial" style="color:${e=>e.textColor}; background-color:${e=>e.iconInitialBackgroundColor}">${e=>e.iconInitial.substring(0,1)}</div>`)}<span data-test-id="status-pill-text">${e=>e.text}</span>${A(e=>e.countdown,T`<span data-test-id="status-pill-countdown">${e=>e.countdown}</span>`)}</div>`)} `,a8=T` ${e=>ALe(gb(e))} `,o8=1e3,s8=86400,c8=3600,jLe=(e,t=`second`)=>{let n=e/o8,r=Math.floor(n/s8);n%=s8;let i=Math.floor(n/c8);n%=c8;let a=Math.floor(n/60),o=Math.floor(n%60),s=[];switch(r&&s.push(`${r}d`),t){case`minute`:i&&s.push(`${i}h`),a&&s.push(`${a}m`),!a&&o&&s.push(`< 1m`);break;case`hour`:i&&s.push(`${i}h`),!i&&(a||o)&&s.push(`< 1h`);break;default:i&&s.push(`${i}h`),a&&s.push(`${a}m`),o&&s.push(`${o}s`)}return s.length?s.join(` `):`0s`};var l8=class extends P{constructor(){super(...arguments),this.iconSize=`sm`,this.dateCountdownCompletedMessage=`Expired`,this.dateCountdownUnit=`second`,this.hideWhenCountdownCompleted=!1,this.isCountdownExpired=!1,this.isCountdownVisible=!0}dateCountdownChanged(e,t){if(e!==t){if(!t){this.clearCountdownTimer();return}this.isCountdownExpired=!1,this.setUpDateCountdown(t)}}dateCountdownVisibleAfterChanged(e,t){e!==t&&this.updateVisibilityFromStartTime()}connectedCallback(){this.updateVisibilityFromStartTime(),super.connectedCallback()}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))fb.warn(`invalid date-countdown value passed. Must be a number`);else{e=parseInt(e);let t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),o8)}}updateCountdown(e){let t=(/* @__PURE__ */ new Date()).getTime(),n=Math.floor(e.getTime()-t),r=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(r!==void 0&&!isNaN(r)&&t<r){this.isCountdownVisible=!1,this.countdown=null,this.isCountdownExpired=!1;return}this.isCountdownVisible=!0,n<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=jLe(n,this.dateCountdownUnit)}updateVisibilityFromStartTime(){let e=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(e!==void 0&&!isNaN(e)){let t=Date.now();this.isCountdownVisible=t>=e}else this.isCountdownVisible=!0}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}};q([D({attribute:`background-color`})],l8.prototype,`backgroundColor`,void 0),q([D({attribute:`icon-name`})],l8.prototype,`iconName`,void 0),q([D({attribute:`icon-src`})],l8.prototype,`iconSrc`,void 0),q([D({attribute:`icon-initial`})],l8.prototype,`iconInitial`,void 0),q([D({attribute:`icon-initial-background-color`})],l8.prototype,`iconInitialBackgroundColor`,void 0),q([D({attribute:`icon-size`})],l8.prototype,`iconSize`,void 0),q([D({attribute:`text-color`})],l8.prototype,`textColor`,void 0),q([D],l8.prototype,`text`,void 0),q([D({attribute:`date-countdown`})],l8.prototype,`dateCountdown`,void 0),q([D({attribute:`date-countdown-completed-message`})],l8.prototype,`dateCountdownCompletedMessage`,void 0),q([D({attribute:`date-countdown-unit`})],l8.prototype,`dateCountdownUnit`,void 0),q([D({attribute:`date-countdown-visible-after`})],l8.prototype,`dateCountdownVisibleAfter`,void 0),q([D({mode:`boolean`,attribute:`hide-when-countdown-completed`})],l8.prototype,`hideWhenCountdownCompleted`,void 0),q([C],l8.prototype,`countdown`,void 0),q([C],l8.prototype,`isCountdownExpired`,void 0),q([C],l8.prototype,`isCountdownVisible`,void 0),l8.compose({baseName:`status-pill`,styles:i8,template:a8});let u8=(e,t)=>{let n=[`step`,`step-${t}`];return e.selected&&n.push(`step-selected`),e.completed&&n.push(`step-completed`),e.error&&n.push(`step-error`),n.join(` `)},MLe=[`positioning-region: step-positioning-region`,`content-region: step-content-region`,`expand-collapse-button: step-expand-collapse-button`,`items: step-items`].join(`, `),d8=e=>T` ${uf(e=>e.orientation===Ia.vertical,T`<${e}-tree-item ${k(`treeItem`)}class=${e=>pn(`tree-item`,[`cursor-pointer`,e.showCursorPointer])}part="${e=>u8(e,`vertical`)}" exportparts="${MLe}" @click="${(e,t)=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>e.completed,T`<${e}-icon name="check-circle" variant="regular" size="lg" class="stepper-icon completed-icon" part="step-icon step-icon-completed"></${e}-icon>`)} ${A(e=>e.error,T`<${e}-icon name="times-circle" variant="regular" size="lg" class="stepper-icon error-icon" part="step-icon step-icon-error"></${e}-icon>`)}<slot></slot></${e}-tree-item>`,T`<div class=${e=>pn(`step-container`,[`selected`,e.selected])}part="${e=>u8(e,`horizontal`)}"><div class=${e=>pn(`step-number-container`,[`cursor-pointer`,e.showCursorPointer])}part="step-number-container" @click="${e=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>!e.hideStepNumber,T`<span class="step-number" part="step-number">${e=>e.tabPosition}</span>`)}<slot class="step-title"></slot></div>${A(e=>!e.isLast,T`<${e}-icon class="stepper-icon angle-icon" part="step-icon step-icon-angle" name="angle-right" variant="solid" size="lg"></${e}-icon>`)}</div>`)} `,NLe=T` ${e=>d8(gb(e))} `,f8=(e,t)=>O` .tree-item{cursor: default}.tree-item::part(content-region){margin-inline-start: 0}.tree-item[selected]::part(positioning-region):hover{background: var(--neutral-fill-rest)}.tree-item::part(positioning-region):hover{background: var(--neutral-fill-stealth-rest)}.stepper-icon{margin-right: 5px}.completed-icon{color: #69cd70}.error-icon{color: #f14376}.step-number{display: flex;justify-content: center;align-items: center;margin: 0 5px 0 0;width: 24px;height: 24px;font-size: var(--type-ramp-minus-1-font-size);font-weight: 500;color: var(--focus-stroke-outer);background-color: var(--neutral-fill-input-rest);border-radius: 50%;border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-number-container{display: flex;flex-direction: row;align-items: center;justify-content: center;width: 75%}.angle-icon{color: var(--neutral-fill-input-rest);margin: 0 calc(var(--design-unit) * 4px)}.step-title{font-size: var(--type-ramp-base-font-size);color: var(--focus-stroke-outer);font-weight: 600}:host([completed]) .step-number{border-color: #69cd70;color: white;background-color: #69cd70}:host([completed]) .step-title{color: #69cd70}:host([error]) .step-number{border-color: #f14376;color: white;background-color: #f14376}:host([error]) .step-title{color: #f14376}:host([orientation='horizontal']){flex: 1 1 0;height: 100%}.cursor-pointer{cursor: pointer}.step-container{position: relative;display: flex;align-items: center;justify-content: space-between;height: 100%}.step-container.selected::after{content: '';position: absolute;bottom: 0;left: calc(var(--design-unit) * -3px);/* This matches the left padding */ right: 28px;/* This matches the icon width + right margin */ height: 2px;width: calc(100% - 28px);background-color: var(--accent-fill-rest);/* Choose a color */}`;var p8=class extends P{constructor(){super(...arguments),this.slot=`tab`,this.orientation=Ia.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}};q([D],p8.prototype,`slot`,void 0),q([D({mode:`boolean`})],p8.prototype,`selected`,void 0),q([D({mode:`boolean`})],p8.prototype,`completed`,void 0),q([D({mode:`boolean`})],p8.prototype,`error`,void 0),q([D({mode:`boolean`})],p8.prototype,`isLast`,void 0),q([D({mode:`boolean`})],p8.prototype,`hideStepNumber`,void 0),q([D({mode:`boolean`})],p8.prototype,`showCursorPointer`,void 0),q([D({attribute:`tab-position`})],p8.prototype,`tabPosition`,void 0),q([D],p8.prototype,`orientation`,void 0);let m8={};p8.compose(Object.assign({baseName:`stepper-tab`,template:NLe,styles:f8,shadowOptions:void 0},m8));let h8=()=>T`<template slot="tab-panel" role="stepper-tab-panel"><slot></slot></template>`;var g8=class extends P{};let _8={};g8.compose(Object.assign({baseName:`stepper-tab-panel`,template:h8,shadowOptions:void 0},_8));let v8=(e,t)=>ka(e,t),y8=(e,t)=>O` ${Au(e,t)} .checked-indicator{transform: scale(1.3);border-radius: calc(var(--control-corner-radius) * 2px)}.switch{border-radius: calc(var(--control-corner-radius) * 3px)}`;var b8=class extends Aa{};b8.compose(Object.assign({baseName:`switch`,template:v8,styles:y8,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`}));let x8=(e,t)=>Na(e,t),S8=(e,t)=>O` ${Mu(e,t)} :host{user-select: none}`;var C8=class extends Pa{constructor(){super(...arguments),this.alert=!1}alertChanged(){this.alert&&HPe()}};q([D({mode:`boolean`})],C8.prototype,`alert`,void 0);let w8={};C8.compose(Object.assign({baseName:`tab`,template:x8,styles:S8,shadowOptions:void 0},w8));let T8=(e,t)=>ja(e,t),E8=(e,t)=>O` ${Nu(e,t)} :host{height: 100%;padding: 0}`;var D8=class extends Ma{};let O8={};D8.compose(Object.assign({baseName:`tab-panel`,template:T8,styles:E8,shadowOptions:void 0},O8));let k8=(e,t)=>Fa(e,t),A8=(e,t)=>O` ${ju(e,t)} :host{height: 100%;width: 100%}:host([scrollable]) [part='tablist']{overflow: auto hidden;white-space: nowrap}:host([scrollable]) ::slotted([role='tab']){flex: 0 0 auto}`;var j8=class extends La{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}};q([D({mode:`boolean`})],j8.prototype,`scrollable`,void 0);let M8={};j8.compose(Object.assign({baseName:`tabs`,template:k8,styles:A8,shadowOptions:void 0},M8));let N8=(e,t)=>Ba(e,t),P8=(e,t)=>O` ${Pu(e,t)} :host .control{padding: calc(var(--design-unit) * 3px)}`;var F8=class extends Fu{};let I8={};F8.compose(Object.assign({baseName:`text-area`,template:N8,styles:P8,shadowOptions:void 0},I8));let L8=(e,t)=>T`<template class="${e=>pn([`readonly`,e.readOnly],[`has-prefix`,!!e.prefix],[`has-suffix`,!!e.suffix])}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${xt({property:`defaultSlottedNodes`,filter:ga})}></slot></label><div class="root" part="root">${Tt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" autocapitalize="${e=>e.autocapitalize}" id="${e=>e.id?e.id:`control`}" class="control" part="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" step="${e=>e.step}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${wt(e,t)}</div></template>`,R8=(e,t)=>O` ${Iu(e,t)} /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */ ${M0} input{color-scheme: ${jh}}`;var z8=class extends D0(Lu){constructor(){super(...arguments),this.autocomplete=`off`,this.autocapitalize=`off`}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}};q([D],z8.prototype,`autocomplete`,void 0),q([D],z8.prototype,`autocapitalize`,void 0),q([D],z8.prototype,`step`,void 0);let B8={mode:`open`,delegatesFocus:!0},V8={};z8.compose(Object.assign({baseName:`text-field`,template:L8,styles:R8,shadowOptions:B8},V8));let H8=O` @keyframes append-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}:host{--toast-min-width: 356px;--toast-min-height: 128px;--toast-max-width: 356px;--toast-max-height: 272px}.toast{animation: append-animate 0.3s linear;max-width: var(--toast-max-width);min-width: var(--toast-min-width);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-stroke-rest);box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);display: flex;position: relative;flex-direction: row;padding: 8px 8px 8px 15px;margin: 5px}.toast-delete{animation: delete-animate 0.3s linear;opacity: 0%}.toast::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 5px;height: calc(100% - 10px);width: 4px;border-radius: 2px;background-color: red}.content-wrapper{height: fit-content;width: 100%;display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.bottom{width: 70%}.top{width: 100%;display: flex;flex-direction: row;justify-content: space-between;align-items: center}.content{width: 85%;font-size: 12px;overflow-wrap: break-word}::slotted(*){white-space: pre-line}.date{color: var(--neutral-foreground-hint);font-size: 12px;margin: 0 0 5px}.notification-icon{margin-right: 6px}.close-icon{cursor: pointer;margin-left: auto;color: #879ba6}`,PLe=(e=`rapid`)=>T`<${e}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`,FLe=(e=`rapid`)=>T`<div role="alert" part="root" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${k(`toast`)}><div class="content-wrapper"><div part="top" class="top">${A(e=>e.notificationIcon,T`<${e}-icon class="notification-icon" name="${e=>e.notificationIcon}" size="lg"></prefix-icon>`)}<slot name="top"></slot><div class="close-icon" @click=${e=>e.close()}>${PLe(e)}</div></div><div part="content" class="content"><slot name="content"></slot></div><div part="date" class="date"><slot name="date"></slot></div><div part="bottom" class="bottom"><slot name="bottom"></slot></div></div></div>`,U8=T` ${e=>FLe(gb(e))} `,W8={mode:`open`,delegatesFocus:!0},G8={};var K8=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=1e4,this.autoClose=!1,this.closeTimer=null}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.closeTimer=setTimeout(()=>{this.deleteAnimation=`toast-delete`,this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.closeTimer),this.closeTimer=null}close(){this.remove()}};q([C],K8.prototype,`deleteAnimation`,void 0),q([D({attribute:`close-timeout`})],K8.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`})],K8.prototype,`autoClose`,void 0),q([D({attribute:`notification-icon`})],K8.prototype,`notificationIcon`,void 0),K8.compose(Object.assign({baseName:`toast`,styles:H8,template:U8,shadowOptions:W8},G8));let q8=(e,t)=>Va(e,t),J8=(e,t)=>O` ${Ru(e,t)}`;var Y8=class extends zu{};let X8={};Y8.compose(Object.assign({baseName:`toolbar`,template:q8,styles:J8,shadowOptions:void 0},X8));let Z8=(e,t)=>Ga(e,t),Q8=(e,t)=>O` ${Bu(e,t)}`;var $8=class extends qa{};let e5={};$8.compose(Object.assign({baseName:`tooltip`,template:Z8,styles:Q8,shadowOptions:void 0},e5));let t5=(e,t)=>Ja(e,t),n5=(e,t)=>O` ${Hu(e,t)} :host{--focus-stroke-width: 0;--tree-item-nested-width: 1em}:host([selected])::after{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);width: 5px;top: 0;border-radius: 0}.positioning-region{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px)}`;var r5=class extends Xa{};r5.compose(Object.assign({baseName:`tree-item`,template:t5,styles:n5,shadowOptions:void 0},{expandCollapseGlyph:`
|
|
994
994
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">
|
|
995
995
|
<path d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"></path>
|
|
996
|
-
</svg>`}));let i5=(e,t)=>Za(e,t),a5=(e,t)=>O` ${Uu(e,t)}`;var o5=class extends Qa{};let s5={};o5.compose(Object.assign({baseName:`tree-view`,template:i5,styles:a5,shadowOptions:void 0},s5));let c5=(e,t)=>O` .container{position: relative;width: 100%}.url-input{position: relative;width: 100%}.url-input-link{position: absolute;left: 10px;top: 24px;max-width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}`,l5=e=>T`<div class="container" value=${e=>e.value}><${e}-text-field class="url-input" required type="url" :value=${e=>e.focused&&!e.readOnly?e.value:``}@blur=${(e,t)=>e.readOnly?``:e.saveUrl(t.event?.target.value)}@focus=${e=>e.focus()}:readOnly=${e=>e.readOnly}></${e}-text-field>${A(e=>e.readOnly||!e.focused,T`<a class="url-input-link" href=${e=>e.value}target="_blank">${e=>e.value}</a>`)}</div>`,PLe=T` ${e=>l5(gb(e))} `,u5={};var d5=class extends Lu{constructor(){super(...arguments),this.value=``}saveUrl(e){this.value=e.startsWith(`http`)?e:`https://`+e,this.focused=!1}focus(){this.focused=!0}};q([C],d5.prototype,`value`,void 0),q([C],d5.prototype,`focused`,void 0),d5.compose(Object.assign({baseName:`url-input`,template:PLe,styles:c5,shadowOptions:void 0},u5));let f5=O` :host{display: block;font-family: var(--body-font);outline: none}.label{display: block;color: var(--neutral-foreground-rest);cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);margin-bottom: 4px}.label-hidden{display: none}:host([readonly]) .label{cursor: var(--disabled-cursor)}.container{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}.digit{display: inline-block;box-sizing: border-box;outline: none;min-width: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;align-items: center;color: var(--neutral-foreground-rest);background: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .control{appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;padding: 0 calc(var(--design-unit) * 2px + 1px);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);text-align: center;outline: none;color-scheme: ${jh}}.digit[appearance='filled'] .root{background: var(--neutral-fill-rest)}.digit.error .root{border-color: var(--error-fill-rest)}.digit.disabled{opacity: var(--disabled-opacity);cursor: var(--disabled-cursor)}.digit.disabled .control{cursor: var(--disabled-cursor)}.digit:hover:not(.disabled) .root{background: var(--neutral-fill-input-hover);border-color: var(--accent-fill-hover)}.digit:focus-within:not(.disabled) .root{border-color: var(--focus-stroke-outer);box-shadow: 0 0 0 calc(var(--focus-stroke-width) * 1px) var(--focus-stroke-outer) inset}.digit[appearance='filled']:hover:not(.disabled) .root{background: var(--neutral-fill-hover)}${M0}`,p5=T`<label part="label" id="${e=>e.labelId}" for="${e=>e.getControlId(0)}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${xt({property:`defaultSlottedNodes`,filter:ga})}></slot></label><div class="container" role="group" aria-labelledby="${e=>e.hasLabel?e.labelId:void 0}" aria-label="${e=>e.hasLabel?void 0:`Verification code`}">${j(e=>e.digitsIndexes,T`<div class="digit ${(e,t)=>t.parent.digitClassnames}" data-digit-index="${e=>e}" appearance="${(e,t)=>t.parent.appearance}"><div class="root" part="root"><div class="control-field"><input class="control" part="control" type="text" inputmode="numeric" pattern="[0-9]*" name="${(e,t)=>t.parent.getControlId(e)}" id="${(e,t)=>t.parent.getControlId(e)}" autocomplete="${e=>e===0?`one-time-code`:`off`}" data-test-id="${(e,t)=>t.parent.getControlId(e)}" title="Only numbers are allowed" maxlength="1" ?autofocus="${(e,t)=>t.parent.autofocus&&e===0}" ?readonly="${(e,t)=>t.parent.readOnly}" ?disabled="${(e,t)=>t.parent.disabled||t.parent.readOnly}" aria-required="${(e,t)=>t.parent.required}" aria-invalid="${(e,t)=>t.parent.error}" /></div></div></div>`)}</div>`,m5={mode:`open`,delegatesFocus:!0},h5={},g5=/^\d$/;var FLe=class extends P{},_5=class extends mr(FLe){constructor(){super(),this.values=[],this.controlListeners=/* @__PURE__ */ new Map,this.syncingFromDigits=!1,this.appearance=`outline`,this.digits=6,this.readOnly=!1,this.autofocus=!1,this.error=!1,this.proxy=document.createElement(`input`)}get digitsIndexes(){return Array.from({length:this.digits},(e,t)=>t)}get controlIdPrefix(){return this.id||`verification-code`}get labelId(){return`${this.controlIdPrefix}-label`}get hasLabel(){return!!this.defaultSlottedNodes?.length}getControlId(e){return`${this.controlIdPrefix}-${e}`}clear(){this.value=``,this.emitChange(),this.$fastController.isConnected&&this.focusDigit(0)}focus(){this.focusDigit(0)}valueChanged(e,t){let n=this.sanitizeCode(t);if(this.syncingFromDigits||this.syncDigitsFromValue(n),String(t??``)!==n){this.value=n;return}super.valueChanged(e,n)}validate(e){if(!(this.proxy instanceof HTMLElement))return;let t=e??this.getControlElement(0)??void 0;if(String(this.value??``).length>0&&!this.isComplete()){this.setValidity({patternMismatch:!0},`Please enter a ${this.digits}-digit code.`,t);return}if(this.required&&!this.isComplete()){this.setValidity({valueMissing:!0},`Please fill out this field.`,t);return}this.setValidity({},``,t)}connectedCallback(){super.connectedCallback(),this.proxy.type=`text`,this.proxy.inputMode=`numeric`,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners(),this.autofocus&&!this.readOnly&&this.focus()})}disconnectedCallback(){super.disconnectedCallback(),this.unbindControlListeners()}digitsChanged(){this.syncDigitsFromValue(this.sanitizeCode(this.value));let e=(this.values??[]).join(``);this.value===e?this.validate():this.value=e,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners()})}get digitClassnames(){return[this.error&&`error`,(this.disabled||this.readOnly)&&`disabled`].filter(Boolean).join(` `)}sanitizeCode(e){let t=Math.max(1,Number(this.digits)||6);return String(e??``).replace(/\D/g,``).slice(0,t)}bindControlListeners(){this.unbindControlListeners(),this.rootNode.querySelectorAll(`[data-digit-index] input.control`).forEach(e=>{let t=this.getIndexFromInput(e);if(t===null)return;let n={paste:e=>this.onPaste(e,t),keydown:e=>this.onKeyDown(e,t),input:e=>this.onInput(e,t)};e.addEventListener(`paste`,n.paste,!0),e.addEventListener(`keydown`,n.keydown),e.addEventListener(`input`,n.input),this.controlListeners.set(e,n)})}unbindControlListeners(){var e,t;(e=this.controlListeners)==null||e.forEach((e,t)=>{t.removeEventListener(`paste`,e.paste,!0),t.removeEventListener(`keydown`,e.keydown),t.removeEventListener(`input`,e.input)}),(t=this.controlListeners)==null||t.clear()}onKeyDown(e,t){if(!(this.readOnly||this.disabled)){if(g5.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){e.preventDefault(),this.updateDigit(t,e.key),this.focusDigit(t+1);return}switch(e.key){case`Backspace`:e.preventDefault(),this.handleBackspace(t);break;case`Delete`:e.preventDefault(),this.handleDelete(t);break;case`ArrowLeft`:e.preventDefault(),this.focusDigit(t-1);break;case`ArrowRight`:e.preventDefault(),this.focusDigit(t+1);break;case`Tab`:case`Home`:case`End`:break;default:this.isBlockedCharacter(e)&&e.preventDefault()}}}isBlockedCharacter(e){return e.ctrlKey||e.metaKey||e.altKey?!1:e.key.length===1&&!g5.test(e.key)}onInput(e,t){if(this.readOnly||this.disabled)return;let n=e.target,r=n.value.replace(/\D/g,``);if(r.length>1){this.applyDigits(r,t);return}let i=r.slice(-1);n.value!==i&&(n.value=i),i&&this.values[t]!==i?(this.updateDigit(t,i),this.focusDigit(t+1)):!i&&this.values[t]&&this.updateDigit(t,``)}onPaste(e,t){if(this.readOnly||this.disabled)return;e.preventDefault();let n=e.clipboardData?.getData(`text`)??``;n&&this.applyDigits(n,t)}handleBackspace(e){if(this.values[e]){this.updateDigit(e,``);return}e>0&&(this.updateDigit(e-1,``),this.focusDigit(e-1))}handleDelete(e){this.values[e]&&this.updateDigit(e,``)}getIndexFromInput(e){let t=Number(e.closest(`[data-digit-index]`)?.getAttribute(`data-digit-index`));return Number.isNaN(t)?null:t}syncDigitsFromValue(e){let t=Math.max(1,Number(this.digits)||6),n=Array.from({length:t},(t,n)=>e[n]??``),r=this.values??[];n.length===r.length&&n.every((e,t)=>e===r[t])||(this.values=n,this.$fastController?.isConnected&&this.syncFieldValues())}updateDigit(e,t){if(e<0||e>=this.digits)return;let n=[...this.values];n[e]=t,this.values=n,this.syncFieldValue(e),this.commitValues(n)}applyDigits(e,t){let n=e.replace(/\D/g,``).slice(0,this.digits-t);if(!n.length)return;let r=[...this.values];for(let e=0;e<n.length;e+=1)r[t+e]=n[e];this.values=r,this.syncFieldValues(),this.commitValues(r),this.focusDigit(this.isComplete()?this.digits-1:t+n.length)}commitValues(e){let t=e.join(``);this.syncingFromDigits=!0;try{this.value===t?this.validate():this.value=t}finally{this.syncingFromDigits=!1}this.emitChange(),this.isComplete()&&this.$emit(`complete`,{value:this.value})}syncFieldValues(){for(let e=0;e<this.digits;e+=1)this.syncFieldValue(e)}syncFieldValue(e){let t=this.getControlElement(e);t&&(t.value=this.values[e]??``)}focusDigit(e){var t;e<0||e>=this.digits||(t=this.getControlElement(e))==null||t.focus()}get rootNode(){return this.shadowRoot??this}getControlElement(e){return this.rootNode.querySelector(`[data-digit-index="${e}"] input.control`)}isComplete(){let e=this.values??[];return e.length===this.digits&&e.every(e=>g5.test(e))}emitChange(){this.$emit(`change`,{value:this.value})}};q([C],_5.prototype,`values`,void 0),q([C],_5.prototype,`defaultSlottedNodes`,void 0),q([D],_5.prototype,`id`,void 0),q([D],_5.prototype,`appearance`,void 0),q([D],_5.prototype,`digits`,void 0),q([D({attribute:`readonly`,mode:`boolean`})],_5.prototype,`readOnly`,void 0),q([D({mode:`boolean`})],_5.prototype,`autofocus`,void 0),q([D({mode:`boolean`})],_5.prototype,`error`,void 0),_5.compose(Object.assign({baseName:`verification-code-input`,template:p5,styles:f5,shadowOptions:m5},h5));let v5=class extends pb{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()})}getColumnDefs(e){return e?.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name})}clearData(){fb.debug(`clearData - Method not implemented.`)}syncComponentData(e){let t=e??Array.from(this.rowsSyncedWithStream.values()),n=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=n,this.dataGrid.rowsData=t}handleStreamInserts(e){fb.debug(`handleStreamInserts - Method not implemented.`)}handleStreamDeletes(e){fb.debug(`handleStreamDeletes - Method not implemented.`)}handleStreamUpdates(e){fb.debug(`handleStreamUpdates - Method not implemented.`)}};v5=q([$e({name:`data-grid-datasource`})],v5);let y5={type:`NULL`,maxRules:1,invisible:!0},ILe=[`enum`],b5=[`int`,`short`,`long`,`bigdecimal`,`double`],LLe=[`string`],x5=[`date`,`date-time`],RLe=[`boolean`],S5=[...ILe,...b5,...LLe,...x5,...RLe];[...b5,...x5],[...b5,...x5],[...S5].filter(e=>e!==`boolean`),[...S5].filter(e=>e!==`boolean`),[...b5,...x5],[...b5,...x5],[...S5],[...S5];let zLe=(0,(/* @__PURE__ */ u((/* @__PURE__ */ s(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e=e||{},e.circles)return i(e);let t=/* @__PURE__ */ new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];o[c]=typeof l!=`object`||!l?l:l.constructor!==Object&&(r=t.get(l.constructor))?r(l,i):ArrayBuffer.isView(l)?n(l):i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=/* @__PURE__ */ new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);c[u]=e===-1?o(d):r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);c[o]=e===-1?s(l):r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);s[o]=e===-1?c(l):r[e]}}return t.pop(),r.pop(),s}}})))())).default)();function C5(e,t,n){function r(e){let i=zLe(e);if(i.groupId===t)return i.children=n(i.children),i;let a=[],o=!1;for(let e of i.children)if(`children`in e){let t=r(e);t?(a.push(t),o=!0):a.push(e)}else a.push(e);return i.children=a,o?i:null}let i=r(e);if(!i)throw Error(`Unable to find group with groupId ${t}`);return i}function w5(e,t,n){function r(e){for(let i of e.children){if(n(i,t))return e;if(`children`in i){let e=r(i);if(e)return e}}return null}return r(e)}function T5(e,t){let n=w5(e,t,(e,t)=>`children`in e&&e.groupId===t);if(!n)throw Error(`No parent group found for group with ID ${t}`);return n}function E5(e,t){let n=w5(e,t,(e,t)=>`ruleId`in e&&e.ruleId===t);if(!n)throw Error(`No parent group found for rule with ID ${t}`);return n}function D5(e,t,n){return C5(e,t,e=>[...e,n])}function BLe(e,t){return C5(e,T5(e,t).groupId,e=>e.filter(e=>`groupId`in e?e.groupId!==t:!0))}function VLe(e,t){return C5(e,E5(e,t).groupId,e=>e.filter(e=>`ruleId`in e?e.ruleId!==t:!0))}let O5=`group-root`;function HLe(e,t,n){return t===`group-root`?Object.assign(Object.assign({},e),n):C5(e,T5(e,t).groupId,e=>e.map(e=>`groupId`in e&&e.groupId===t?Object.assign(Object.assign({},e),n):e))}function ULe(e,t,n){return C5(e,E5(e,t).groupId,e=>e.map(e=>`ruleId`in e&&e.ruleId===t?Object.assign(Object.assign({},e),n):e))}function WLe(e,t){let n=(e,t)=>`children`in e?r(e,t):i(e);function r(e,r){return Object.assign(Object.assign({},e),{level:r,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>n(e,r+1))})}function i(e){return Object.assign(Object.assign({},e),{ruleId:t.getRuleId(),config:t.getConfig()})}return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:O5,children:e.children.map(e=>n(e,2))})}function k5(e){let t=e.children.map(e=>`children`in e?k5(e):GLe(e));return{combinator:e.combinator,children:t}}function GLe(e){let{operator:t,field:n,value:r}=e;return{operator:t,field:n,value:r}}let A5=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,`0`)}-${String(e.getUTCDate()).padStart(2,`0`)}`,j5=e=>`${A5(e)}T${String(e.getUTCHours()).padStart(2,`0`)}:${String(e.getUTCMinutes()).padStart(2,`0`)}:${String(e.getUTCSeconds()).padStart(2,`0`)}`,M5=e=>e.operator?.valueType?.input??e.field.input,N5=e=>e.operator?.valueType?.type??e.field.type,P5=e=>{let t={},n=[],r=e=>[...e].sort((e,t)=>`fieldId`in e&&`fieldId`in t?e.fieldId.localeCompare(t.fieldId):`type`in e&&`type`in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){let n=e.optgroup;t[n]||(t[n]=[]),t[n].push(e)}else n.push(e)});let i=[];return Object.keys(t).sort().forEach(e=>{i.push({optgroup:e,xs:r(t[e])})}),[...i,...r(n)]};function F5(e,t,n){if(!e.shadowRoot||!t?.customStyles)return;let r=t.customStyles[n];if(r){let t=document.createElement(`style`);t.textContent=r,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var I5;(function(e){e.AddGroup=`add-group`,e.DelGroup=`del-group`,e.AddRule=`add-rule`,e.DelRule=`del-rule`,e.UpdateGroup=`update-group`,e.UpdateRule=`update-rule`,e.FieldSelected=`field-selected`,e.OperatorSelected=`operator-selected`,e.ValueUpdated=`value-updated`,e.RemoveVarArg=`remove-variadic-operand`})(I5||(I5={}));let L5=O` :host{--item-vertical-spacing: 4px;--item-border-radius: 5px;--group-background-color: rgb(250 240 210 / 50%);--group-border-color: #dcc896;--group-border: 1px solid var(--group-border-color);--group-padding: 10px;--rule-background-color: rgb(255 255 255 / 90%);--rule-border-color: #eee;--rule-border: 1px solid var(--rule-border-color);--rule-padding: 5px;--rule-value-separator: 1px solid #ddd;--error-icon-color: #f00;--error-border-color: #f99;--error-background-color: #fdd;--ticks-width: 2px;--ticks-color: #ccc}p.test{color: black}.query-builder{font-family: sans-serif}.rules-group-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--group-padding);border: var(--group-border);background: var(--group-background-color)}.rules-group-header{margin-bottom: var(--group-padding)}.group-conditions{display: inline-block}.group-conditions .btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;border: 1px solid #007bff;color: #007bff;background-color: transparent;cursor: pointer}.group-conditions .btn:hover{background-color: #007bff;color: #fff}.group-conditions .btn.active{background-color: #007bff;color: #fff}.group-actions{display: inline-block;float: right}.rules-list{list-style: none;padding: 0 0 0 20px;/* Adjusted ticks position */ margin: 0}.rule-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--rule-padding);border: var(--rule-border);background: var(--rule-background-color)}.rule-header{margin-bottom: 5px}.rule-actions{display: inline-block;float: right}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}.error-container{display: none;cursor: help;color: var(--error-icon-color);margin-left: 5px}.rule-container.has-error, .rules-group-container.has-error{background-color: var(--error-background-color);border-color: var(--error-border-color)}.rule-container.has-error .error-container, .rules-group-container.has-error .error-container{display: inline-block !important}/* Ticks */ .rules-list > *{position: relative}.rules-list > *::before, .rules-list > *::after{content: '';position: absolute;left: -10px;/* Adjusted ticks position */ width: 10px;/* Adjusted ticks position */ border-color: var(--ticks-color);border-style: solid}.rules-list > *::before{top: -2px;/* Adjusted ticks position */ height: calc(50% + var(--item-vertical-spacing));border-width: 0 0 var(--ticks-width) var(--ticks-width)}.rules-list > *::after{top: 50%;border-width: 0 0 0 var(--ticks-width);height: 50%}.rules-list > *:first-child::before{top: calc(-1 * var(--group-padding) - var(--ticks-width));height: calc(50% + var(--group-padding) + var(--item-vertical-spacing))}.rules-list > *:last-child::before{border-radius: 0 0 0 calc(2 * var(--ticks-width))}.rules-list > *:last-child::after{display: none}`,KLe=O` .rules-group-container{border: 1px solid #ccc;margin-bottom: 10px;padding: 10px}.rules-group-header{margin-bottom: 5px}.btn-group{margin-right: 5px}.btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;cursor: pointer}.btn-success{color: #fff;background-color: #28a745;border-color: #28a745}.btn-danger{color: #fff;background-color: #dc3545;border-color: #dc3545}.radio-group-container{display: flex}.rules-list{list-style: none;padding-left: 0}`,qLe=T` ${e=>{let t=e.styles?.customElements?.radio,{radioTag:n,radioGroupTag:r}=t?{radioTag:t.input,radioGroupTag:t.group}:{radioTag:`input`,radioGroupTag:`div`};return T`<div class="btn-group group-conditions">${d_(e=>n!==`input`,T`<${r}class="radio-group-container" name="combinator" @change="${(e,t)=>e.handleCombinatorChange(t.event)}" value="${e=>e.model?.combinator?.type}">${j(e=>e.config?.combinators??[],T` ${A(e=>!e.invisible,T`<${n}value="${e=>e.type}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}>${e=>e.label??e.type}</${n}>`)} `)}</${r}>`,T`<div class="radio-group-container">${j(e=>e.config.combinators,T` ${A(e=>!e.invisible,T`<label class="btn btn-sm btn-primary"><input type="radio" name="combinator" value="${e=>e.type}" @change="${(e,t)=>t.parent.handleCombinatorChange(t.event)}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}/>${e=>e.label??e.type}</label>`)} `)}</div>`)}</div>`}} `,JLe=T`<div class="rules-group-container"><div class="rules-group-header">${T` ${e=>{let t=e.styles?.customElements?.button||`button`,n=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${e.config?.combinators?.[0]?.type})`,r=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${e.config?.combinators?.[0]?.type})`;return T`<div class="btn-group float-end group-actions">${A(e=>e.allowAddRule,T`<${t}type="button" class="btn btn-sm btn-success" data-add="rule" @click="${(e,t)=>e.dispatchAddRule(t.event)}" title=${e=>n}>
|
|
996
|
+
</svg>`}));let i5=(e,t)=>Za(e,t),a5=(e,t)=>O` ${Uu(e,t)}`;var o5=class extends Qa{};let s5={};o5.compose(Object.assign({baseName:`tree-view`,template:i5,styles:a5,shadowOptions:void 0},s5));let c5=(e,t)=>O` .container{position: relative;width: 100%}.url-input{position: relative;width: 100%}.url-input-link{position: absolute;left: 10px;top: 24px;max-width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}`,l5=e=>T`<div class="container" value=${e=>e.value}><${e}-text-field class="url-input" required type="url" :value=${e=>e.focused&&!e.readOnly?e.value:``}@blur=${(e,t)=>e.readOnly?``:e.saveUrl(t.event?.target.value)}@focus=${e=>e.focus()}:readOnly=${e=>e.readOnly}></${e}-text-field>${A(e=>e.readOnly||!e.focused,T`<a class="url-input-link" href=${e=>e.value}target="_blank">${e=>e.value}</a>`)}</div>`,ILe=T` ${e=>l5(gb(e))} `,u5={};var d5=class extends Lu{constructor(){super(...arguments),this.value=``}saveUrl(e){this.value=e.startsWith(`http`)?e:`https://`+e,this.focused=!1}focus(){this.focused=!0}};q([C],d5.prototype,`value`,void 0),q([C],d5.prototype,`focused`,void 0),d5.compose(Object.assign({baseName:`url-input`,template:ILe,styles:c5,shadowOptions:void 0},u5));let f5=O` :host{display: block;font-family: var(--body-font);outline: none}.label{display: block;color: var(--neutral-foreground-rest);cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);margin-bottom: 4px}.label-hidden{display: none}:host([readonly]) .label{cursor: var(--disabled-cursor)}.container{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}.digit{display: inline-block;box-sizing: border-box;outline: none;min-width: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;align-items: center;color: var(--neutral-foreground-rest);background: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .control{appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;padding: 0 calc(var(--design-unit) * 2px + 1px);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);text-align: center;outline: none;color-scheme: ${jh}}.digit[appearance='filled'] .root{background: var(--neutral-fill-rest)}.digit.error .root{border-color: var(--error-fill-rest)}.digit.disabled{opacity: var(--disabled-opacity);cursor: var(--disabled-cursor)}.digit.disabled .control{cursor: var(--disabled-cursor)}.digit:hover:not(.disabled) .root{background: var(--neutral-fill-input-hover);border-color: var(--accent-fill-hover)}.digit:focus-within:not(.disabled) .root{border-color: var(--focus-stroke-outer);box-shadow: 0 0 0 calc(var(--focus-stroke-width) * 1px) var(--focus-stroke-outer) inset}.digit[appearance='filled']:hover:not(.disabled) .root{background: var(--neutral-fill-hover)}${M0}`,p5=T`<label part="label" id="${e=>e.labelId}" for="${e=>e.getControlId(0)}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${xt({property:`defaultSlottedNodes`,filter:ga})}></slot></label><div class="container" role="group" aria-labelledby="${e=>e.hasLabel?e.labelId:void 0}" aria-label="${e=>e.hasLabel?void 0:`Verification code`}">${j(e=>e.digitsIndexes,T`<div class="digit ${(e,t)=>t.parent.digitClassnames}" data-digit-index="${e=>e}" appearance="${(e,t)=>t.parent.appearance}"><div class="root" part="root"><div class="control-field"><input class="control" part="control" type="text" inputmode="numeric" pattern="[0-9]*" name="${(e,t)=>t.parent.getControlId(e)}" id="${(e,t)=>t.parent.getControlId(e)}" autocomplete="${e=>e===0?`one-time-code`:`off`}" data-test-id="${(e,t)=>t.parent.getControlId(e)}" title="Only numbers are allowed" maxlength="1" ?autofocus="${(e,t)=>t.parent.autofocus&&e===0}" ?readonly="${(e,t)=>t.parent.readOnly}" ?disabled="${(e,t)=>t.parent.disabled||t.parent.readOnly}" aria-required="${(e,t)=>t.parent.required}" aria-invalid="${(e,t)=>t.parent.error}" /></div></div></div>`)}</div>`,m5={mode:`open`,delegatesFocus:!0},h5={},g5=/^\d$/;var LLe=class extends P{},_5=class extends mr(LLe){constructor(){super(),this.values=[],this.controlListeners=/* @__PURE__ */ new Map,this.syncingFromDigits=!1,this.appearance=`outline`,this.digits=6,this.readOnly=!1,this.autofocus=!1,this.error=!1,this.proxy=document.createElement(`input`)}get digitsIndexes(){return Array.from({length:this.digits},(e,t)=>t)}get controlIdPrefix(){return this.id||`verification-code`}get labelId(){return`${this.controlIdPrefix}-label`}get hasLabel(){return!!this.defaultSlottedNodes?.length}getControlId(e){return`${this.controlIdPrefix}-${e}`}clear(){this.value=``,this.emitChange(),this.$fastController.isConnected&&this.focusDigit(0)}focus(){this.focusDigit(0)}valueChanged(e,t){let n=this.sanitizeCode(t);if(this.syncingFromDigits||this.syncDigitsFromValue(n),String(t??``)!==n){this.value=n;return}super.valueChanged(e,n)}validate(e){if(!(this.proxy instanceof HTMLElement))return;let t=e??this.getControlElement(0)??void 0;if(String(this.value??``).length>0&&!this.isComplete()){this.setValidity({patternMismatch:!0},`Please enter a ${this.digits}-digit code.`,t);return}if(this.required&&!this.isComplete()){this.setValidity({valueMissing:!0},`Please fill out this field.`,t);return}this.setValidity({},``,t)}connectedCallback(){super.connectedCallback(),this.proxy.type=`text`,this.proxy.inputMode=`numeric`,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners(),this.autofocus&&!this.readOnly&&this.focus()})}disconnectedCallback(){super.disconnectedCallback(),this.unbindControlListeners()}digitsChanged(){this.syncDigitsFromValue(this.sanitizeCode(this.value));let e=(this.values??[]).join(``);this.value===e?this.validate():this.value=e,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners()})}get digitClassnames(){return[this.error&&`error`,(this.disabled||this.readOnly)&&`disabled`].filter(Boolean).join(` `)}sanitizeCode(e){let t=Math.max(1,Number(this.digits)||6);return String(e??``).replace(/\D/g,``).slice(0,t)}bindControlListeners(){this.unbindControlListeners(),this.rootNode.querySelectorAll(`[data-digit-index] input.control`).forEach(e=>{let t=this.getIndexFromInput(e);if(t===null)return;let n={paste:e=>this.onPaste(e,t),keydown:e=>this.onKeyDown(e,t),input:e=>this.onInput(e,t)};e.addEventListener(`paste`,n.paste,!0),e.addEventListener(`keydown`,n.keydown),e.addEventListener(`input`,n.input),this.controlListeners.set(e,n)})}unbindControlListeners(){var e,t;(e=this.controlListeners)==null||e.forEach((e,t)=>{t.removeEventListener(`paste`,e.paste,!0),t.removeEventListener(`keydown`,e.keydown),t.removeEventListener(`input`,e.input)}),(t=this.controlListeners)==null||t.clear()}onKeyDown(e,t){if(!(this.readOnly||this.disabled)){if(g5.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){e.preventDefault(),this.updateDigit(t,e.key),this.focusDigit(t+1);return}switch(e.key){case`Backspace`:e.preventDefault(),this.handleBackspace(t);break;case`Delete`:e.preventDefault(),this.handleDelete(t);break;case`ArrowLeft`:e.preventDefault(),this.focusDigit(t-1);break;case`ArrowRight`:e.preventDefault(),this.focusDigit(t+1);break;case`Tab`:case`Home`:case`End`:break;default:this.isBlockedCharacter(e)&&e.preventDefault()}}}isBlockedCharacter(e){return e.ctrlKey||e.metaKey||e.altKey?!1:e.key.length===1&&!g5.test(e.key)}onInput(e,t){if(this.readOnly||this.disabled)return;let n=e.target,r=n.value.replace(/\D/g,``);if(r.length>1){this.applyDigits(r,t);return}let i=r.slice(-1);n.value!==i&&(n.value=i),i&&this.values[t]!==i?(this.updateDigit(t,i),this.focusDigit(t+1)):!i&&this.values[t]&&this.updateDigit(t,``)}onPaste(e,t){if(this.readOnly||this.disabled)return;e.preventDefault();let n=e.clipboardData?.getData(`text`)??``;n&&this.applyDigits(n,t)}handleBackspace(e){if(this.values[e]){this.updateDigit(e,``);return}e>0&&(this.updateDigit(e-1,``),this.focusDigit(e-1))}handleDelete(e){this.values[e]&&this.updateDigit(e,``)}getIndexFromInput(e){let t=Number(e.closest(`[data-digit-index]`)?.getAttribute(`data-digit-index`));return Number.isNaN(t)?null:t}syncDigitsFromValue(e){let t=Math.max(1,Number(this.digits)||6),n=Array.from({length:t},(t,n)=>e[n]??``),r=this.values??[];n.length===r.length&&n.every((e,t)=>e===r[t])||(this.values=n,this.$fastController?.isConnected&&this.syncFieldValues())}updateDigit(e,t){if(e<0||e>=this.digits)return;let n=[...this.values];n[e]=t,this.values=n,this.syncFieldValue(e),this.commitValues(n)}applyDigits(e,t){let n=e.replace(/\D/g,``).slice(0,this.digits-t);if(!n.length)return;let r=[...this.values];for(let e=0;e<n.length;e+=1)r[t+e]=n[e];this.values=r,this.syncFieldValues(),this.commitValues(r),this.focusDigit(this.isComplete()?this.digits-1:t+n.length)}commitValues(e){let t=e.join(``);this.syncingFromDigits=!0;try{this.value===t?this.validate():this.value=t}finally{this.syncingFromDigits=!1}this.emitChange(),this.isComplete()&&this.$emit(`complete`,{value:this.value})}syncFieldValues(){for(let e=0;e<this.digits;e+=1)this.syncFieldValue(e)}syncFieldValue(e){let t=this.getControlElement(e);t&&(t.value=this.values[e]??``)}focusDigit(e){var t;e<0||e>=this.digits||(t=this.getControlElement(e))==null||t.focus()}get rootNode(){return this.shadowRoot??this}getControlElement(e){return this.rootNode.querySelector(`[data-digit-index="${e}"] input.control`)}isComplete(){let e=this.values??[];return e.length===this.digits&&e.every(e=>g5.test(e))}emitChange(){this.$emit(`change`,{value:this.value})}};q([C],_5.prototype,`values`,void 0),q([C],_5.prototype,`defaultSlottedNodes`,void 0),q([D],_5.prototype,`id`,void 0),q([D],_5.prototype,`appearance`,void 0),q([D],_5.prototype,`digits`,void 0),q([D({attribute:`readonly`,mode:`boolean`})],_5.prototype,`readOnly`,void 0),q([D({mode:`boolean`})],_5.prototype,`autofocus`,void 0),q([D({mode:`boolean`})],_5.prototype,`error`,void 0),_5.compose(Object.assign({baseName:`verification-code-input`,template:p5,styles:f5,shadowOptions:m5},h5));let v5=class extends pb{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()})}getColumnDefs(e){return e?.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name})}clearData(){fb.debug(`clearData - Method not implemented.`)}syncComponentData(e){let t=e??Array.from(this.rowsSyncedWithStream.values()),n=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=n,this.dataGrid.rowsData=t}handleStreamInserts(e){fb.debug(`handleStreamInserts - Method not implemented.`)}handleStreamDeletes(e){fb.debug(`handleStreamDeletes - Method not implemented.`)}handleStreamUpdates(e){fb.debug(`handleStreamUpdates - Method not implemented.`)}};v5=q([$e({name:`data-grid-datasource`})],v5);let y5={type:`NULL`,maxRules:1,invisible:!0},RLe=[`enum`],b5=[`int`,`short`,`long`,`bigdecimal`,`double`],zLe=[`string`],x5=[`date`,`date-time`],BLe=[`boolean`],S5=[...RLe,...b5,...zLe,...x5,...BLe];[...b5,...x5],[...b5,...x5],[...S5].filter(e=>e!==`boolean`),[...S5].filter(e=>e!==`boolean`),[...b5,...x5],[...b5,...x5],[...S5],[...S5];let VLe=(0,(/* @__PURE__ */ u((/* @__PURE__ */ s(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e=e||{},e.circles)return i(e);let t=/* @__PURE__ */ new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];o[c]=typeof l!=`object`||!l?l:l.constructor!==Object&&(r=t.get(l.constructor))?r(l,i):ArrayBuffer.isView(l)?n(l):i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=/* @__PURE__ */ new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);c[u]=e===-1?o(d):r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);c[o]=e===-1?s(l):r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);s[o]=e===-1?c(l):r[e]}}return t.pop(),r.pop(),s}}})))())).default)();function C5(e,t,n){function r(e){let i=VLe(e);if(i.groupId===t)return i.children=n(i.children),i;let a=[],o=!1;for(let e of i.children)if(`children`in e){let t=r(e);t?(a.push(t),o=!0):a.push(e)}else a.push(e);return i.children=a,o?i:null}let i=r(e);if(!i)throw Error(`Unable to find group with groupId ${t}`);return i}function w5(e,t,n){function r(e){for(let i of e.children){if(n(i,t))return e;if(`children`in i){let e=r(i);if(e)return e}}return null}return r(e)}function T5(e,t){let n=w5(e,t,(e,t)=>`children`in e&&e.groupId===t);if(!n)throw Error(`No parent group found for group with ID ${t}`);return n}function E5(e,t){let n=w5(e,t,(e,t)=>`ruleId`in e&&e.ruleId===t);if(!n)throw Error(`No parent group found for rule with ID ${t}`);return n}function D5(e,t,n){return C5(e,t,e=>[...e,n])}function HLe(e,t){return C5(e,T5(e,t).groupId,e=>e.filter(e=>`groupId`in e?e.groupId!==t:!0))}function ULe(e,t){return C5(e,E5(e,t).groupId,e=>e.filter(e=>`ruleId`in e?e.ruleId!==t:!0))}let O5=`group-root`;function WLe(e,t,n){return t===`group-root`?Object.assign(Object.assign({},e),n):C5(e,T5(e,t).groupId,e=>e.map(e=>`groupId`in e&&e.groupId===t?Object.assign(Object.assign({},e),n):e))}function GLe(e,t,n){return C5(e,E5(e,t).groupId,e=>e.map(e=>`ruleId`in e&&e.ruleId===t?Object.assign(Object.assign({},e),n):e))}function KLe(e,t){let n=(e,t)=>`children`in e?r(e,t):i(e);function r(e,r){return Object.assign(Object.assign({},e),{level:r,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>n(e,r+1))})}function i(e){return Object.assign(Object.assign({},e),{ruleId:t.getRuleId(),config:t.getConfig()})}return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:O5,children:e.children.map(e=>n(e,2))})}function k5(e){let t=e.children.map(e=>`children`in e?k5(e):qLe(e));return{combinator:e.combinator,children:t}}function qLe(e){let{operator:t,field:n,value:r}=e;return{operator:t,field:n,value:r}}let A5=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,`0`)}-${String(e.getUTCDate()).padStart(2,`0`)}`,j5=e=>`${A5(e)}T${String(e.getUTCHours()).padStart(2,`0`)}:${String(e.getUTCMinutes()).padStart(2,`0`)}:${String(e.getUTCSeconds()).padStart(2,`0`)}`,M5=e=>e.operator?.valueType?.input??e.field.input,N5=e=>e.operator?.valueType?.type??e.field.type,P5=e=>{let t={},n=[],r=e=>[...e].sort((e,t)=>`fieldId`in e&&`fieldId`in t?e.fieldId.localeCompare(t.fieldId):`type`in e&&`type`in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){let n=e.optgroup;t[n]||(t[n]=[]),t[n].push(e)}else n.push(e)});let i=[];return Object.keys(t).sort().forEach(e=>{i.push({optgroup:e,xs:r(t[e])})}),[...i,...r(n)]};function F5(e,t,n){if(!e.shadowRoot||!t?.customStyles)return;let r=t.customStyles[n];if(r){let t=document.createElement(`style`);t.textContent=r,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var I5;(function(e){e.AddGroup=`add-group`,e.DelGroup=`del-group`,e.AddRule=`add-rule`,e.DelRule=`del-rule`,e.UpdateGroup=`update-group`,e.UpdateRule=`update-rule`,e.FieldSelected=`field-selected`,e.OperatorSelected=`operator-selected`,e.ValueUpdated=`value-updated`,e.RemoveVarArg=`remove-variadic-operand`})(I5||(I5={}));let L5=O` :host{--item-vertical-spacing: 4px;--item-border-radius: 5px;--group-background-color: rgb(250 240 210 / 50%);--group-border-color: #dcc896;--group-border: 1px solid var(--group-border-color);--group-padding: 10px;--rule-background-color: rgb(255 255 255 / 90%);--rule-border-color: #eee;--rule-border: 1px solid var(--rule-border-color);--rule-padding: 5px;--rule-value-separator: 1px solid #ddd;--error-icon-color: #f00;--error-border-color: #f99;--error-background-color: #fdd;--ticks-width: 2px;--ticks-color: #ccc}p.test{color: black}.query-builder{font-family: sans-serif}.rules-group-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--group-padding);border: var(--group-border);background: var(--group-background-color)}.rules-group-header{margin-bottom: var(--group-padding)}.group-conditions{display: inline-block}.group-conditions .btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;border: 1px solid #007bff;color: #007bff;background-color: transparent;cursor: pointer}.group-conditions .btn:hover{background-color: #007bff;color: #fff}.group-conditions .btn.active{background-color: #007bff;color: #fff}.group-actions{display: inline-block;float: right}.rules-list{list-style: none;padding: 0 0 0 20px;/* Adjusted ticks position */ margin: 0}.rule-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--rule-padding);border: var(--rule-border);background: var(--rule-background-color)}.rule-header{margin-bottom: 5px}.rule-actions{display: inline-block;float: right}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}.error-container{display: none;cursor: help;color: var(--error-icon-color);margin-left: 5px}.rule-container.has-error, .rules-group-container.has-error{background-color: var(--error-background-color);border-color: var(--error-border-color)}.rule-container.has-error .error-container, .rules-group-container.has-error .error-container{display: inline-block !important}/* Ticks */ .rules-list > *{position: relative}.rules-list > *::before, .rules-list > *::after{content: '';position: absolute;left: -10px;/* Adjusted ticks position */ width: 10px;/* Adjusted ticks position */ border-color: var(--ticks-color);border-style: solid}.rules-list > *::before{top: -2px;/* Adjusted ticks position */ height: calc(50% + var(--item-vertical-spacing));border-width: 0 0 var(--ticks-width) var(--ticks-width)}.rules-list > *::after{top: 50%;border-width: 0 0 0 var(--ticks-width);height: 50%}.rules-list > *:first-child::before{top: calc(-1 * var(--group-padding) - var(--ticks-width));height: calc(50% + var(--group-padding) + var(--item-vertical-spacing))}.rules-list > *:last-child::before{border-radius: 0 0 0 calc(2 * var(--ticks-width))}.rules-list > *:last-child::after{display: none}`,JLe=O` .rules-group-container{border: 1px solid #ccc;margin-bottom: 10px;padding: 10px}.rules-group-header{margin-bottom: 5px}.btn-group{margin-right: 5px}.btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;cursor: pointer}.btn-success{color: #fff;background-color: #28a745;border-color: #28a745}.btn-danger{color: #fff;background-color: #dc3545;border-color: #dc3545}.radio-group-container{display: flex}.rules-list{list-style: none;padding-left: 0}`,YLe=T` ${e=>{let t=e.styles?.customElements?.radio,{radioTag:n,radioGroupTag:r}=t?{radioTag:t.input,radioGroupTag:t.group}:{radioTag:`input`,radioGroupTag:`div`};return T`<div class="btn-group group-conditions">${d_(e=>n!==`input`,T`<${r}class="radio-group-container" name="combinator" @change="${(e,t)=>e.handleCombinatorChange(t.event)}" value="${e=>e.model?.combinator?.type}">${j(e=>e.config?.combinators??[],T` ${A(e=>!e.invisible,T`<${n}value="${e=>e.type}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}>${e=>e.label??e.type}</${n}>`)} `)}</${r}>`,T`<div class="radio-group-container">${j(e=>e.config.combinators,T` ${A(e=>!e.invisible,T`<label class="btn btn-sm btn-primary"><input type="radio" name="combinator" value="${e=>e.type}" @change="${(e,t)=>t.parent.handleCombinatorChange(t.event)}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}/>${e=>e.label??e.type}</label>`)} `)}</div>`)}</div>`}} `,XLe=T`<div class="rules-group-container"><div class="rules-group-header">${T` ${e=>{let t=e.styles?.customElements?.button||`button`,n=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${e.config?.combinators?.[0]?.type})`,r=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${e.config?.combinators?.[0]?.type})`;return T`<div class="btn-group float-end group-actions">${A(e=>e.allowAddRule,T`<${t}type="button" class="btn btn-sm btn-success" data-add="rule" @click="${(e,t)=>e.dispatchAddRule(t.event)}" title=${e=>n}>
|
|
997
997
|
Add Rule </${t}>`)} ${A(e=>e.allowAddGroup,T`<${t}type="button" class="btn btn-sm btn-success" data-add="group" @click="${(e,t)=>e.dispatchAddGroup(t.event)}" title="${e=>r}">
|
|
998
998
|
Add Group </${t}>`)} ${A(e=>typeof e.index==`number`,T`<${t}type="button" class="btn btn-sm btn-danger" data-delete="group" @click="${(e,t)=>e.dispatchDeleteGroup(t.event)}">
|
|
999
|
-
Delete Group </${t}>`)}</div>`}} `} ${
|
|
1000
|
-
True </label>`}} `,
|
|
999
|
+
Delete Group </${t}>`)}</div>`}} `} ${YLe}</div><div class="rules-group-body"><div class="rules-list">${j(e=>e.model?.children??[],T` ${d_(e=>`children`in e,T`<expression-group :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-group>`,T`<expression-rule :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-rule>`)} ${A((e,t)=>!t.isLast,T`<p class="group-combinator-link">${(e,t)=>t.parent.model.combinator.type}</p>`)} `,{recycle:!1,positioning:!0})}</div></div></div>`,R5=class extends Qe{connectedCallback(){super.connectedCallback(),F5(this,this.styles,`group`)}get allowAddRule(){return this.model?this.model.combinator.maxRules===`many`||this.model.children.length<this.model.combinator.maxRules:!1}get allowAddGroup(){return!this.model||this.model.combinator.maxRules===1||this.model.combinator.maxRules===2&&this.model.children.length>=2?!1:!this.config?.maxNesting||this.config?.maxNesting<1||this.config.maxNesting>this.model.level}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw Error(`Cannot add extra rules to group`);let t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(I5.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw Error(`Cannot add further nested groups`);let t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(I5.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();let t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(I5.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();let t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){if(e.stopPropagation(),!this.model?.groupId||!e.target)return;let t=e.target.getAttribute(`value`);if(!t)throw Error(`No value found in the custom radio group event target`);this.updateCombinator(t)}updateCombinator(e){let t=this.config.combinators.find(({type:t})=>t===e);if(!t)throw Error(`Cannot find selected combinator ${e}`);this.model?.combinator?.type!==t.type&&this.dispatchGroupDataUpdated(t)}dispatchGroupDataUpdated(e){let t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(I5.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};q([C],R5.prototype,`config`,void 0),q([C],R5.prototype,`styles`,void 0),q([C],R5.prototype,`model`,void 0),q([C],R5.prototype,`index`,void 0),q([w],R5.prototype,`allowAddRule`,null),q([w],R5.prototype,`allowAddGroup`,null),R5=q([$e({name:`expression-group`,template:XLe,styles:JLe,shadowOptions:{delegatesFocus:!0}})],R5);let z5=T`<div class="query-builder">${A(e=>e.model!==null,T`<expression-group :model=${e=>e.model}:config=${e=>e.config}:styles=${e=>e.styles}></expression-group>`)}</div>`,ZLe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`,r=e.styles?.customElements?.optgroup||`optgroup`;return T`<${t}class="form-select" @change=${(e,t)=>e.dispatchFieldsChanged(t.event)}value=${e=>e.field?.fieldId}><${n}value="">Select a field</${n}>${j(e=>e.groupedFieldss,T` ${e=>`xs`in e?T`<${r}label="${e=>e.optgroup}">${j(e=>e.xs,T`<${n}value="${e=>e.fieldId}" ?selected=${(e,t)=>e.fieldId===t.parentContext.parent?.field?.fieldId}>${e=>e.label}</${n}>`)}</${r}>`:T`<${n}value="${e=>e.fieldId}" ?selected=${(e,t)=>e.fieldId===t.parent?.field?.fieldId}>${e=>e.label}</${n}>`} `)}</${t}>`}} `,B5=class extends Qe{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),F5(this,this.styles,`field`)}get groupedFieldss(){return P5(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();let t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(I5.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};q([C],B5.prototype,`fields`,void 0),q([C],B5.prototype,`field`,void 0),q([C],B5.prototype,`config`,void 0),q([C],B5.prototype,`styles`,void 0),q([w],B5.prototype,`groupedFieldss`,null),B5=q([$e({name:`expression-rule-field`,template:ZLe})],B5);let QLe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`,r=e.styles?.customElements?.optgroup||`optgroup`;return T`<${t}class="form-select" @change=${(e,t)=>e.handleOperatorChange(t.event)}value=${e=>e.operator?.type}><${n}value="">Select an operator</${n}>${j(e=>e.groupedOperators,T` ${e=>`xs`in e?T`<${r}label="${e.optgroup}">${j(e=>e.xs,T`<${n}value="${e=>e.type}" ?selected=${(e,t)=>e.type===t.parentContext.parent.operator?.type}title=${e=>e.tooltip}>${e=>e.label??e.type}</${n}>`)}</${r}>`:T`<${n}value="${e=>e.type}" ?selected=${(e,t)=>t.parent.operator?.type===e.type}title=${e=>e.tooltip}>${e=>e.label??e.type}</${n}>`} `)}</${t}>`}} `,V5=class extends Qe{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),F5(this,this.styles,`operator`)}get allowedOperators(){let e=e=>(this.field?.operators)?.includes(e.type)??!0,t=e=>{var t;return((t=e?.applyTo)?.includes)?.call(t,this.field?.type)??!0};return this.operators.filter(n=>e(n)&&t(n))}get groupedOperators(){return P5(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();let t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(I5.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};q([C],V5.prototype,`operators`,void 0),q([C],V5.prototype,`operator`,void 0),q([C],V5.prototype,`field`,void 0),q([C],V5.prototype,`config`,void 0),q([C],V5.prototype,`styles`,void 0),q([w],V5.prototype,`allowedOperators`,null),q([w],V5.prototype,`groupedOperators`,null),V5=q([$e({name:`expression-rule-operator`,template:QLe})],V5);let H5=e=>[`short`,`int`,`long`].includes(e),U5=e=>[`double`,`bigdecimal`].includes(e),$Le=e=>H5(e)?/^[+-]?[0-9]+$/:U5(e)?/[+-]?([0-9]*[.])?[0-9]+/:null,eRe=(e,t)=>$Le(e)?.test(t)??!0?null:`Invalid number format`,tRe=O` .text-input.error{color: red}div.value-and-validation{display: inline-grid;align-items: center}`,nRe=T` ${e=>{let t=M5(e),n=t===`datetime-local`?`datetimeLocal`:t;return T`<${e.styles?.customElements?.[n]||`input`}type="${t}" class="text-input ${e=>pn([`error`,e.validationError])}" value=${e=>e.value}@blur=${(e,t)=>e.handleInputChange(t.event)}/>`}} `,rRe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`;return T`<${t}class="form-select" @change=${(e,t)=>e.handleInputChange(t.event)}value=${e=>e.value}>${j(e=>{let t=e.operator?.valueType?.type===`enum`&&e?.operator?.valueType?.values?e.operator.valueType.values:e.field.type===`enum`&&e.field.values?e.field.values:{};return Object.entries(t)},()=>T`<${n}value="${e=>e[0]}" ?selected=${(e,t)=>e[0]===t.parent.value}title="${e=>typeof e[1]==`object`?e[1].tooltip:``}">${e=>typeof e[1]==`object`?e[1].label:e[1]}</${n}>`)}</${t}>`}} `,iRe=T` ${e=>{let t=e.styles?.customElements?.checkbox;return T`<label><${t||`input`} ${t?``:`type="checkbox"`}?checked=${e=>!!e.value}@change=${(e,t)=>e.handleInputChange(t.event)}role="checkbox" />
|
|
1000
|
+
True </label>`}} `,aRe=T`<div>Input type "${e=>M5(e)}" not yet supported.</div>`,oRe=T` ${d_(e=>e.field,T` ${e=>{let t=M5(e);return T`<div class="value-and-validation">${A(()=>[`text`,`number`,`date`,`datetime-local`].includes(t),nRe)} ${A(()=>t===`select`,rRe)} ${A(()=>t===`checkbox`,iRe)} ${A(()=>![`text`,`number`,`select`,`checkbox`,`date`,`datetime-local`].includes(t),aRe)} ${A(e=>e.validationMsg,T`<p class="validation-msg">${e=>e.validationMsg}</p>`)}</div>${A(e=>e.variadic&&e.valueIndex!==`0`,T` ${()=>{let t=e.styles?.customElements?.button||`button`;return T`<${t}type="button" class="btn btn-sm btn-remove" @click="${e=>e.handleRemoveVariadicOperand()}">
|
|
1001
1001
|
-
|
|
1002
|
-
</${t}>`}} `)} `}} `,T`<div>Select a field to set value</div>`)} `,W5=class extends Qe{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),F5(this,this.styles,`value`)}validateInput(e){return this.field&&[`validation`in this.field?this.field.validation(e):null,
|
|
1002
|
+
</${t}>`}} `)} `}} `,T`<div>Select a field to set value</div>`)} `,W5=class extends Qe{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),F5(this,this.styles,`value`)}validateInput(e){return this.field&&[`validation`in this.field?this.field.validation(e):null,eRe(N5(this),e)].filter(e=>!!e).join(`, `)||null}handleInputChange(e){e.stopPropagation();let t=e.target;if(t.type!==`checkbox`&&t.type!==`select-one`){let e=this.validateInput(t.value);if(e){this.validationError=!0,this.validationMsg=e;return}this.validationError=!1,this.validationMsg=null}let n;n=t.getAttribute(`role`)===`checkbox`?t.checked:t.type===`select-one`?e.target.value:this.field&&H5(N5(this))?parseInt(t.value):this.field&&U5(N5(this))?parseFloat(t.value):t.value,this.value=n;let r={value:n,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(I5.ValueUpdated,{detail:r,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw Error(`Cannot remove inputs for non-variadic operator`);let e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(I5.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};q([D({attribute:`value-index`})],W5.prototype,`valueIndex`,void 0),q([D({mode:`boolean`})],W5.prototype,`variadic`,void 0),q([D({mode:`boolean`,attribute:`validation-error`})],W5.prototype,`validationError`,void 0),q([D({attribute:`validation-msg`})],W5.prototype,`validationMsg`,void 0),q([C],W5.prototype,`field`,void 0),q([C],W5.prototype,`operator`,void 0),q([C],W5.prototype,`value`,void 0),q([C],W5.prototype,`config`,void 0),q([C],W5.prototype,`styles`,void 0),W5=q([$e({name:`expression-rule-value`,template:oRe,styles:tRe,shadowOptions:{delegatesFocus:!0}})],W5);let G5=(e,t)=>t.field.defaultValue===void 0?cRe(e,t):t.field.defaultValue,sRe=(e,t)=>n=>{if(e?.valueType?.type!==t.operator?.valueType?.type||!(`value`in t)||!t.value||!t.operator)return null;let r=t.operator.nbInputs===1?[t.value]:t.value;return n>=r.length?null:r[n]},cRe=(e,t)=>{switch(N5(Object.assign(Object.assign({},t),{operator:e}))){case`string`:return``;case`boolean`:return!1;case`date`:return A5(/* @__PURE__ */ new Date);case`date-time`:return j5(/* @__PURE__ */ new Date);case`double`:case`int`:case`bigdecimal`:case`short`:case`long`:return 0;case`enum`:{let n=e?.valueType?.type===`enum`?e?.valueType?.values:t.field.type===`enum`?t.field.values:{};if(Object.keys(n).length===0)throw Error(`Enums require configured values`);return Object.keys(n)[0]}}},lRe=(e,t)=>{let n=sRe(e,t);switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:n(0)??G5(e,t)};case 2:return{field:t.field,operator:e,value:[n(0)??G5(e,t),n(1)??G5(e,t)]};case`many`:return{field:t.field,operator:e,value:[n(0)??G5(e,t)]}}},uRe=(e,t,n)=>{switch(e.operator.nbInputs){case 0:throw Error(`Cannot set the value for a UniraryOperator`);case 1:return{field:e.field,operator:e.operator,value:t};case 2:case`many`:if(!(`value`in e)||!Array.isArray(e.value))throw Error(`Invalid value shape for rule`);return{field:e.field,operator:e.operator,value:e.value.map((e,r)=>r===n?t:e)}}},dRe=e=>!e&&e!==0,fRe=e=>{if(!e.field||!e.operator)return!0;if(e.operator.nbInputs===0)return!1;if(!(`value`in e))throw Error(`No value set as required for operator`);return N5(e)!==`boolean`&&!!(Array.isArray(e.value)?e.value:[e.value]).some(dRe)},pRe=O` .rule-container{border: 1px solid #eee;margin-bottom: 5px;padding: 5px;display: grid;grid-template-columns: auto 1fr}.rule-container.error{border-color: red}.margin{margin-left: calc(var(--design-unit) * 1px);margin-right: calc(var(--design-unit) * 1px)}.rule-header{margin-bottom: 5px;display: flex;justify-content: flex-end}.rule-actions{display: inline-block}.rule-content{display: flex;flex-wrap: wrap;align-items: center}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}expression-rule-value{display: flex}`,mRe=T` ${e=>{let t=e.styles?.customElements?.button||`button`;return T`<div class="rule-container ${e=>pn([`error`,e.error])}"><div class="rule-content"><expression-rule-field class="margin" :fields=${e=>e.config.fields}:field=${e=>e.model?.field}:config=${e=>e.config}:styles=${e=>e.styles}@field-selected=${(e,t)=>e.handleFieldSelected(t.event)}></expression-rule-field><expression-rule-operator class="margin" :operators=${e=>e.config.operators}:field=${e=>e.model.field}:operator=${e=>e.model?.operator}:config=${e=>e.config}:styles=${e=>e.styles}@operator-selected=${(e,t)=>e.handleOperatorSelected(t.event)}></expression-rule-operator>${j(e=>e.operandIterator,T`<expression-rule-value class="margin" :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:field=${(e,t)=>t.parent.model.field}:operator=${(e,t)=>t.parent.model.operator}:value=${(e,t)=>t.parent.operandValue(t.index)}value-index=${(e,t)=>t.index}?variadic=${(e,t)=>t.parent.model?.operator?.nbInputs===`many`}@value-updated=${(e,t)=>t.parent.handleValueChanged(t.event)}@remove-variadic-operand=${(e,t)=>t.parent.handleRemoveVarArg(t.event)}></expression-rule-value>`,{positioning:!0,recycle:!1})} ${A(e=>e.model?.operator?.nbInputs===`many`,T`<${t}type="button" class="btn btn-sm btn-accept" @click="${e=>e.dispatchAddVarArg()}">
|
|
1003
1003
|
+
|
|
1004
1004
|
</${t}>`)}</div><div class="rule-header"><div class="btn-group rule-actions"><${t}type="button" class="btn btn-sm btn-danger" data-delete="rule" @click="${(e,t)=>e.dispatchDeleteRule(t.event)}">
|
|
1005
|
-
Delete Rule </${t}></div></div></div>`}} `,K5=class extends Qe{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),F5(this,this.styles,`rule`),this.config.partialRuleValidationWarning&&(this.error=uRe(this.model))}variadicRule(e){return e.operator.nbInputs===`many`&&`value`in e&&Array.isArray(e.value)}get operandIterator(){if(this.model.operator?.nbInputs===`many`){if(!this.variadicRule(this.model))throw Error(`Varargs disabled for many nbInputs`);return Array(this.model.value.length).fill(!0)}return Array(this.model.operator?.nbInputs??0).fill(!0)}operandValue(e){if(this.model.operator){if(this.model.operator.nbInputs===1&&`value`in this.model)return this.model.value;if((this.model.operator.nbInputs===2||this.model.operator.nbInputs===`many`)&&`value`in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw Error(`Invalid operand lookup`)}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw Error(`Cannot add inputs for non-variadic operator, or invalid format`);let e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,G5(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){let{index:t}=e.detail;if(!this.variadicRule(this.model))throw Error(`Cannot remove inputs for non-variadic operator, or invalid format`);let n={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,n)=>n!==t)}};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();let t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(I5.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){e.stopPropagation();let{fieldId:t}=e.detail,n=this.config.fields.find(e=>e.fieldId===t)??null,r={ruleId:this.model.ruleId,newData:{field:n,value:null,operator:null}};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();let{value:t,index:n}=e.detail,r={ruleId:this.model.ruleId,newData:cRe(this.model,t,n)};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleOperatorSelected(e){e.stopPropagation();let{operatorId:t}=e.detail;if(!t)return;let n=this.config.operators.find(e=>e.type===t)??null;if(!n)throw Error(`Unable to find operator of type ${t}`);this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:sRe(n,this.model)},bubbles:!0,composed:!0}))}};q([C],K5.prototype,`config`,void 0),q([C],K5.prototype,`styles`,void 0),q([C],K5.prototype,`model`,void 0),q([C],K5.prototype,`index`,void 0),q([D({mode:`boolean`})],K5.prototype,`error`,void 0),q([w],K5.prototype,`operandIterator`,null),K5=q([$e({name:`expression-rule`,template:fRe,styles:dRe,shadowOptions:{delegatesFocus:!0}})],K5);let q5=class extends Qe{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){if(!this.isValidConfig(t)){console.warn(`Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);return}t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=WLe(t.model,this),this.userUpdatingModel=!1):this.model===null&&this.initBaseModel()}modelChanged(e,t){if(!t||this.userUpdatingModel)return;let n=k5(t);this.dispatchChangeEvent(n)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent(`change`,{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(I5.AddGroup,this.handleAddGroup),this.addEventListener(I5.DelGroup,this.handleDeleteGroup),this.addEventListener(I5.AddRule,this.handleAddRule),this.addEventListener(I5.DelRule,this.handleDeleteRule),this.addEventListener(I5.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(I5.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config)){this.config&&console.warn(`Config detected during connectedCallback but it isn't valid`),this.config=null;return}this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(I5.AddGroup,this.handleAddGroup),this.removeEventListener(I5.DelGroup,this.handleDeleteGroup),this.removeEventListener(I5.AddRule,this.handleAddRule),this.removeEventListener(I5.DelRule,this.handleDeleteRule),this.removeEventListener(I5.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(I5.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){return!!(e&&e.combinators?.length&&e.operators?.length&&e.fields?.length)}initBaseModel(){if(!this.isValidConfig(this.config))throw Error(`Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);this.model={children:[],level:1,groupId:O5,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){let{parentGroupId:t,newGroup:n}=e.detail,r={groupId:this.getGroupId(),level:n.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=D5(this.model,t,r)}_handleAddRule(e){let{parentGroupId:t}=e.detail,n={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=D5(this.model,t,n)}_handleDeleteGroup(e){let{groupId:t}=e.detail;this.model=BLe(this.model,t)}_handleDeleteRule(e){let{ruleId:t}=e.detail;this.model=VLe(this.model,t)}_handleUpdateGroupData(e){let{groupId:t,newData:n}=e.detail;this.model=HLe(this.model,t,n)}_handleUpdateRuleData(e){let{ruleId:t,newData:n}=e.detail;this.model=ULe(this.model,t,n)}};q([C],q5.prototype,`config`,void 0),q([C],q5.prototype,`styles`,void 0),q([C],q5.prototype,`model`,void 0),q5=q([$e({name:`expression-builder`,template:z5,styles:L5})],q5);let J5=class extends q5{};J5=q([$e({name:`foundation-expression-builder`,styles:L5,template:z5})],J5);let Y5=[`int`,`short`,`long`],X5=[`double`,`bigdecimal`],Z5=[...Y5,...X5],Q5=[`date`,`date-time`],$5=[`string`,`enum`],e7=[`boolean`],t7=e=>e.operator?.valueType?.type??e.field.type;function n7(e){switch(t7(e)){case`int`:case`long`:case`double`:case`bigdecimal`:case`date`:case`date-time`:case`short`:return`NUMBER`;case`string`:case`enum`:return`STRING`;case`boolean`:return`BOOLEAN`}}function r7(e,t,n){return`value`in e?{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:n,VALUE:e.value}}:null}function i7(e,t,n){return{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:n}}function a7(e,t,n=[]){return`value`in e?{TYPE:`METHOD_EXPRESSION`,PARAMETERS:[{TYPE:`FIELD`,NAME:e.field.fieldId},...n],METHOD:t}:null}function o7(e){let t=t=>{let n=t7(e);if($5.includes(n))return t;if(Z5.includes(n))return t.toString();if(e7.includes(n))return t;if(Array.isArray(t))throw Error(`Not implemented TernararyOperator or VariadicOperator args in rule value transformer`);if(Q5.includes(n))return new Date(t).getTime().toString();throw Error(`Unhandled transformRuleValue case`)},n=!(!(`value`in e)||e.value===void 0||e.value===null);return Object.assign(Object.assign({},e),n?{value:t(e.value)}:{})}function s7(e,t){return{TYPE:`PREDICATE_EXPRESSION`,OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>`children`in e?s7(e,t):t(e)).filter(Boolean)}}function c7(e,t){let n=t=>{let n=t7(e);if($5.includes(n))return t;if(Y5.includes(n))return parseInt(t);if(X5.includes(n))return parseFloat(t);if(e7.includes(n))return t;if(Q5.includes(n)){let e=new Date(parseInt(t));return n===`date`?A5(e):j5(e)}throw Error(`Unhandled rebuildRuleValue case`)},r=e.operator.nbInputs;if(r===`many`||r===2)throw Error(`Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue`);return Object.assign(Object.assign({},e),r===0?{}:{value:n(t.VALUE)})}let l7={template:z5,styles:L5};var u7;(function(e){e.methodCall={CONTAINS_IGNORE_CASE:`CONTAINS_IGNORE_CASE`,CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,TRIM:`TRIM`,LONG_TO_DATE:`LONG_TO_DATE`,LONG_TO_DATE_TIME:`LONG_TO_DATE_TIME`,DATE_TIME_IS_IN_RANGE:`DATE_TIME_IS_IN_RANGE`},e.logicalOperations={AND:`AND`,OR:`OR`},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:`GREATER_THAN`,LESS_THAN:`LESS_THAN`,GREATER_THAN_OR_EQUAL:`GREATER_THAN_OR_EQUAL`,LESS_THAN_OR_EQUAL:`LESS_THAN_OR_EQUAL`,EQUALS:`EQUALS`,NOT_EQUALS:`NOT_EQUALS`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,BITWISE_AND:`BITWISE_AND`,BITWISE_OR:`BITWISE_OR`,ASSIGNMENT:`ASSIGNMENT`,IS_CURRENT:`IS_CURRENT`,IS_PREVIOUS:`IS_PREVIOUS`})})(u7||(u7={}));let d7=[{type:u7.logicalOperations.AND,maxRules:`many`},{type:u7.logicalOperations.OR,maxRules:`many`}],$={EQUALS:u7.operations.EQUALS,NOT_EQUALS:u7.operations.NOT_EQUALS,IS_NULL:`IS_NULL`,NOT_NULL:`NOT_NULL`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,CONTAINS:`CONTAINS`,CONTAINS_WORDS_STARTING_WITH:`CONTAINS_WORDS_STARTING_WITH`,CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:`CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`,GREATER_THAN:u7.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:u7.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:u7.operations.LESS_THAN,LESS_THAN_OR_EQUAL:u7.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:`IS_BEFORE`,IS_AFTER:`IS_AFTER`,ON_OR_BEFORE:`ON_OR_BEFORE`,ON_OR_AFTER:`ON_OR_AFTER`,IS_CURRENT:u7.operations.IS_CURRENT,IS_PREVIOUS:u7.operations.IS_PREVIOUS},f7=e=>({type:`enum`,input:`select`,values:e}),pRe=f7({HOUR:{label:`Hour`,tooltip:`Beginning of the hour immediately preceding the current one to the current hour.`},DAY:{label:`Day`,tooltip:`Midnight on the day before today to midnight of the current day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the previous week to midnight on the Monday of the current week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the previous month to midnight on the 1st of the current month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year.`}}),mRe=f7({HOUR:{label:`Hour`,tooltip:`Beginning of the current hour to beginning of the next hour.`},DAY:{label:`Day`,tooltip:`Midnight on the current day day to midnight of the next day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the current week to midnight on the Monday of the next week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the current month to midnight on the 1st of the next month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year.`}}),p7=[{type:$.EQUALS,label:`Equals`,nbInputs:1,applyTo:[...$5,...e7,...Z5,...Q5],tooltip:`Check the equality of the field compared to a set value`},{type:$.NOT_EQUALS,label:`Not equals`,nbInputs:1,applyTo:[...$5,...e7,...Z5,...Q5],tooltip:`Check that the field is different from a set value`},{type:$.IS_NULL,label:`Is null`,nbInputs:0,applyTo:[`enum`,...e7,...Z5,...Q5],tooltip:`Check if the field value is null`},{type:$.NOT_NULL,label:`Not null`,nbInputs:0,applyTo:[`enum`,...e7,...Z5,...Q5],tooltip:`Check if the field value is not null`},{type:$.IS_NULL_OR_BLANK,label:`Is null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is null or an empty string`},{type:$.NOT_NULL_OR_BLANK,label:`Not null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is not null and not an empty string`},{type:$.CONTAINS,label:`Contains`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains the specified text (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_WITH,label:`Contains words starting with`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains words that start with the specified text, split by whitespace (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:`Contains words starting with (split)`,nbInputs:2,applyTo:[`string`],tooltip:`Check if field contains words starting with text, split by a delimiter (case insensitive)`},{type:$.GREATER_THAN,label:`Greater than`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is greater than a specified number`},{type:$.GREATER_THAN_OR_EQUAL,label:`Greater than or equal to`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is greater than or equal to a specified number`},{type:$.LESS_THAN,label:`Less than`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is less than a specified number`},{type:$.LESS_THAN_OR_EQUAL,label:`Less than or equal to`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is less than or equal to a specified number`},{type:$.IS_BEFORE,label:`Is before`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is before a specified date/time`},{type:$.IS_AFTER,label:`Is after`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is after a specified date/time`},{type:$.ON_OR_BEFORE,label:`On or before`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is on or before a specified date/time`},{type:$.ON_OR_AFTER,label:`On or after`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is on or after a specified date/time`},{type:$.IS_CURRENT,label:`Is current`,nbInputs:1,applyTo:[...Q5],tooltip:`Check whether the current date/time matches the current hour/day/work day/week/month/year.`,valueType:mRe,optgroup:`Relative Period`},{type:$.IS_PREVIOUS,label:`Is previous`,nbInputs:1,applyTo:[...Q5],tooltip:`Check whether the current date/time matches the previous hour/day/work day/week/month/year`,valueType:pRe,optgroup:`Relative Period`}];function hRe(e){switch(e){case`IS_BEFORE`:return`LESS_THAN`;case`IS_AFTER`:return`GREATER_THAN`;case`ON_OR_BEFORE`:return`LESS_THAN_OR_EQUAL`;case`ON_OR_AFTER`:return`GREATER_THAN_OR_EQUAL`;default:return e}}function gRe(e,t){switch(t){case $.IS_NULL_OR_BLANK:return a7(e,u7.methodCall.IS_NULL_OR_BLANK,[]);case $.NOT_NULL_OR_BLANK:return a7(e,u7.methodCall.NOT_NULL_OR_BLANK,[]);case $.CONTAINS:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS`);return a7(e,u7.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_WITH:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS_WORDS_STARTING_WITH`);return a7(e,u7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!(`value`in e)||!Array.isArray(e.value)||e.value.length!==2)throw Error(`Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`);return a7(e,u7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:`STRING`,VALUE:e})));case $.IS_CURRENT:case $.IS_PREVIOUS:if(!(`value`in e))throw Error(`Invalid shape for operator IS_CURRENT | IS_PREVIOUS`);return a7(e,u7.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:`STRING`,VALUE:e.value},{TYPE:`STRING`,VALUE:t===$.IS_CURRENT?`CURRENT`:`PREVIOUS`}]);default:throw Error(`Unreachable default case`)}}function _Re(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=o7(e),n=n7(t),r=hRe(t.operator.type);switch(r){case $.EQUALS:case $.NOT_EQUALS:case $.GREATER_THAN:case $.GREATER_THAN_OR_EQUAL:case $.LESS_THAN:case $.LESS_THAN_OR_EQUAL:return r7(t,r,n);case $.IS_NULL:return i7(t,u7.operations.EQUALS,{TYPE:`NULL`});case $.NOT_NULL:return i7(t,u7.operations.NOT_EQUALS,{TYPE:`NULL`});case $.IS_NULL_OR_BLANK:case $.NOT_NULL_OR_BLANK:case $.CONTAINS:case $.CONTAINS_WORDS_STARTING_WITH:case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case $.IS_CURRENT:case $.IS_PREVIOUS:return gRe(t,r);default:throw Error(`Unmatched case for operator name: ${r}`)}}function vRe(e,t){if(t.field.type!==`date`&&t.field.type!==`date-time`)return e;switch(e){case`LESS_THAN`:return`IS_BEFORE`;case`GREATER_THAN`:return`IS_AFTER`;case`LESS_THAN_OR_EQUAL`:return`ON_OR_BEFORE`;case`GREATER_THAN_OR_EQUAL`:return`ON_OR_AFTER`;default:return e}}function yRe(e,t){let n=(()=>{if(t.RIGHT.TYPE===`NULL`){let e=t.OPERATION===`EQUALS`?$[$.IS_NULL]:$[$.NOT_NULL];return p7.find(t=>t.type===e)}let n=vRe(t.OPERATION,e);return p7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function bRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return c7(yRe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function xRe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`IS_NULL_OR_BLANK`:return[$[$.IS_NULL_OR_BLANK],void 0];case t.METHOD===`NOT_NULL_OR_BLANK`:return[$[$.NOT_NULL_OR_BLANK],void 0];case t.METHOD===`CONTAINS_IGNORE_CASE`:return[$[$.CONTAINS],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===2:return[$[$.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===3:return[$[$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===u7.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===3&&t.PARAMETERS[2].TYPE===`STRING`&&(t.PARAMETERS[2].VALUE===`CURRENT`||t.PARAMETERS[2].VALUE===`PREVIOUS`):return[$[t.PARAMETERS[2].VALUE===`CURRENT`?$.IS_CURRENT:$.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:p7.find(e=>e.type===n),value:r}}function m7(e,t){return{combinator:d7.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return m7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return bRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return xRe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let h7=class extends q5{ruleConfigChanged(e,t){this.config=Object.assign({combinators:d7,operators:p7,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},t?.model?{model:m7(t.fields,t.model)}:{})}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){let t=s7(e,_Re);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],h7.prototype,`ruleConfig`,void 0),h7=q([$e({name:`foundation-rule-expression-builder`,styles:L5,template:z5})],h7);let g7={TRIM:`TRIM`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,CONVERT_TO_DATE:`CONVERT_TO_DATE`,CONVERT_TO_DATE_TIME:`CONVERT_TO_DATE_TIME`},_7=[{type:g7.PLUS,label:`Add (+)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE`},{type:g7.MINUS,label:`Subtract (-)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE`},{type:g7.MULTIPLY,label:`Multiply (*)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE`},{type:g7.DIVIDE,label:`Divide (/)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE`},{type:g7.CONVERT_TO_DATE,label:`Convert to date`,applyTo:[`date`],nbInputs:0,tooltip:`Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm`},{type:g7.CONVERT_TO_DATE_TIME,label:`Convert to date time`,applyTo:[`date-time`],nbInputs:0,tooltip:`Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss`}];function SRe(e){return e}function CRe(e,t){switch(t){case g7.TRIM:return a7(e,u7.methodCall.TRIM,[]);case g7.CONVERT_TO_DATE:return a7(e,u7.methodCall.LONG_TO_DATE,[]);case g7.CONVERT_TO_DATE_TIME:return a7(e,u7.methodCall.LONG_TO_DATE_TIME,[])}}function wRe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=o7(e),n=n7(t),r=SRe(t.operator.type);switch(r){case g7.TRIM:case g7.CONVERT_TO_DATE:case g7.CONVERT_TO_DATE_TIME:return CRe(t,r);case g7.PLUS:case g7.MINUS:case g7.DIVIDE:case g7.MULTIPLY:return r7(t,r,n);default:throw Error(`Unmatched case for operator name: ${r}`)}}function TRe(e,t){return t.field.type!==`date`&&t.field.type,e}function ERe(e,t){let n=(()=>{let n=TRe(t.OPERATION,e);return _7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function DRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return c7(ERe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function ORe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`TRIM`:return[g7[g7.TRIM],void 0];case t.METHOD===`LONG_TO_DATE`:return[g7[g7.CONVERT_TO_DATE],void 0];case t.METHOD===`LONG_TO_DATE_TIME`:return[g7[g7.CONVERT_TO_DATE_TIME],void 0];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:_7.find(e=>e.type===n),value:r}}function v7(e,t){return{combinator:y5,children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return v7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return DRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return ORe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let y7=class extends q5{valueConfigChanged(e,t){let n={TYPE:`PREDICATE_EXPRESSION`,OPERATION:`NULL`,EXPRESSIONS:t.model?[t.model]:[]},r=v7(t.fields,n);this.config={combinators:[y5],operators:_7,fields:t.fields,model:r,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){if(!(`children`in e))throw Error(`Invalid top level group hierarchy`);if(e.children.length>1)throw Error(`Value expressions should not have multiple rules`);if(e.children[0]&&`children`in e.children[0])throw Error(`Trying to convert group to rule`);let t=e.children.length===0?void 0:wRe(e.children[0]);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],y7.prototype,`valueConfig`,void 0),y7=q([$e({name:`foundation-value-expression-builder`,styles:L5,template:z5})],y7);let b7=T`<template ${k(`notificationListener`)}><slot></slot></template>`,kRe={mode:`open`,delegatesFocus:!0};var x7=class extends P{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[],this.desktopNotifications=!1,this.reconnections=0,this.reconnection=Promise.resolve(),this.reconnectionWaitMs=1e4}desktopNotificationsChanged(){this.desktopNotifications&&this.isConnected&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.boundVisibilityChange=this.handleVisibilityChange.bind(this),typeof document<`u`&&document.addEventListener(`visibilitychange`,this.boundVisibilityChange),this.addEventListener(hC.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),CC(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>{if(!e)return;let t=this.reconnections+=1;this.reconnection=ARe(this.reconnection,this.reconnectionWaitMs).then(()=>this.handleReconnection(t)).catch(e=>fb.error(e))})})}handleReconnection(e){return J(this,void 0,void 0,function*(){var t;let n=()=>e===this.reconnections&&this.isConnected;if(!this.resourceName||!n())return;(t=this.dataSub)==null||t.unsubscribe(),this.dataSub=void 0;let r=yield this.initializeDatasource();if(n()){if(!r)throw Error(`Failed to initialize datasource for ${this.resourceName}`);this.setupDataSubscription()}})}initializeDatasource(){return J(this,void 0,void 0,function*(){return this.datasource?.initialized&&this.datasource.destroy(),this.datasource.init({resourceName:this.resourceName},!0)})}setupDataSubscription(){if(!this.datasource.stream){fb.warn(`No stream available for ${this.resourceName}`);return}this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate(Ey(e))})}disconnectedCallback(){var e,t,n;super.disconnectedCallback(),typeof document<`u`&&this.boundVisibilityChange&&document.removeEventListener(`visibilitychange`,this.boundVisibilityChange),delete this.boundVisibilityChange,(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.connectionSub)==null||t.unsubscribe(),delete this.connectionSub,(n=this.datasource)==null||n.destroy(),delete this.datasource}handleVisibilityChange(){this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}clearDesktopNotifications(){this.postToServiceWorker({type:`genesis-clear-desktop-notifications`})}postToServiceWorker(e){typeof navigator<`u`&&navigator.serviceWorker&&(navigator.serviceWorker.controller?navigator.serviceWorker.controller.postMessage(e):navigator.serviceWorker.ready&&navigator.serviceWorker.ready.then(t=>{var n;(n=t?.active)==null||n.postMessage(e)}).catch(()=>{}))}handleStreamUpdate(e){let t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e),this.handleDesktopNotification(e)})}handleDesktopNotification(e){if(this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`hidden`&&typeof Notification<`u`&&Notification.permission===`granted`)try{let t=this.desktopNotificationFor(e);if(!t)return;this.postToServiceWorker({type:`genesis-desktop-notification`,notification:t})}catch(e){fb.error(e)}}desktopNotificationFor(e){return{title:e.HEADER,options:{body:e.MESSAGE,tag:`genesis-alert-${e.ALERT_ID??``}`,data:{alertId:e.ALERT_ID}}}}showNotificationToast(e){let{HEADER:t,MESSAGE:n,NOTIFY_SEVERITY:r}=e,i=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0,o=[];this.toastButtons&&this.toastButtons.length>0&&(o=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));let s={title:t,body:n,createdAt:i,toast:{details:e,type:r?.toLowerCase(),buttons:o,autoClose:a===void 0?!!this.closeTimeout:!!a,closeTimeout:a??this.closeTimeout,position:this.toastPosition}};bC(s,this.tagName)}};q([C],x7.prototype,`notificationListener`,void 0),q([Yv],x7.prototype,`connect`,void 0),q([D({attribute:`resource-name`})],x7.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],x7.prototype,`closeTimeout`,void 0),q([C],x7.prototype,`toastButtons`,void 0),q([D({attribute:`toast-position`})],x7.prototype,`toastPosition`,void 0),q([D({attribute:`desktop-notifications`,mode:`boolean`})],x7.prototype,`desktopNotifications`,void 0),q([Hy],x7.prototype,`datasource`,void 0);function ARe(e,t){return new Promise(n=>{let r=setTimeout(n,t);e.finally(()=>{clearTimeout(r),n()})})}x7.compose({baseName:`notification-listener`,template:b7,shadowOptions:kRe});let S7=Ad(`foundation-router`),C7=`$router`,w7=Object.freeze({getOrCreateFor:e=>{let t=e[C7];return t===void 0?e[C7]=new jRe(e):t},find:e=>I_.find(e),from:e=>I_.from(e)});var jRe=class extends R_{};let MRe=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function T7(e){return MRe.test(e)}function E7(e){return e.config instanceof av?e:w7.find(e)}function NRe(e,t=`/`,n=!1){let r=e.join(t).replace(RegExp(t+`{1,}`,`g`),t);return!n&&r.endsWith(t)?r.slice(0,-1):r}function PRe(e){return e.replace(`/*${O_}`,``)}function D7(){document.querySelector(`foundation-router, fast-router`)===null&&window.dispatchEvent(new PopStateEvent(`popstate`))}let O7=Object.freeze({path:Object.freeze({get current(){return g_.path.current},generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=E7(e);for(;r!==null;){let e=yield r.config.generateRouteFromPath(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t=!0)=>{if(e&&T7(e)){location.href=e;return}history.pushState({},document.title,e),D7(),t&&O7.path.trigger(e)},replace:(e,t=!0)=>{if(e&&T7(e)){location.href=e;return}history.replaceState({},document.title,e),D7(),t&&O7.path.trigger(e)},trigger:e=>{g_.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=E7(e);for(;r!==null;){let e=yield r.config.generateRouteFromName(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield O7.name.generateRoute(e,t,n);i!==null&&O7.path.push(i,r)}),replace:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield O7.name.generateRoute(e,t,n);i!==null&&O7.path.replace(i,r)}),trigger:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=yield O7.name.generateRoute(e,t,n);r!==null&&O7.path.trigger(r)})})}),k7=e=>!e.navId||e.navId===`header`||e.navId===`side-nav`;function FRe(e,t=k7,n=10){let r=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,i)=>{e.navItems.filter(t).map((t,r)=>{let a=t.placementIndex??i*n+r;return Object.assign(Object.assign({},t),{navId:t.navId??`header`,placementIndex:a,routePath:t.routePath??e.path,routeName:t.routeName??e.name})}).forEach(e=>r.push(e))}),r.sort((e,t)=>e.placementIndex-t.placementIndex)}var A7=class extends M_{constructor(){super(...arguments),this.definitions=[]}map(...e){let t=this.owner,n=!t.parent,r=t.basename;n&&r!==``&&r!==`/`&&(S7.debug(`Route paths remap required due to detected sub-path deployment`),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(r))return S7.debug(`'${e.path}' path okay as is`),e;let t=e.path.charAt(0)===`/`?``:`/`,n=`${r}${t}${e.path}`;return S7.debug(`'${e.path}' path modified to '${n}'`),Object.assign(Object.assign({},e),{path:n})})),this.definitions=[...e,...this.definitions],super.map(...e)}};q([C],A7.prototype,`definitions`,void 0);var j7=class extends av{constructor(){super(),this.logger=S7,this.loginPath=`login`,this.notFoundPath=`not-found`,this.notPermittedPath=`not-permitted`,this.routes=new A7(this),this.basename=vf,this.routes=new A7(this)}getNavItems(e=k7){return FRe(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){this.analytics.trackEvent(jd.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){let{settings:t}=e.route;(t?.isPermitted)?.call(t)===!1&&e.cancel(()=>{if(!this.user.isAuthenticated)this.user.trackPath(),O7.name.replace(e.router,this.loginPath);else{let n=t.notPermittedPath?.call(t)??this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),O7.name.replace(e.router,n)}})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),O7.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){let n=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return J(this,void 0,void 0,function*(){let r=yield n.generateRouteFromName.call(this,e,t);return r?this.generateNavigationPath(r):null})}navigateTo(e){return J(this,void 0,void 0,function*(){if(e.name){this.relativeTo||this.logger.error(`unable to navigate by name as the relativeTo router is not set`),yield O7.name.push(this.relativeTo,e.name,e.params,e.trigger);return}if(e.path){O7.path.push(this.generateNavigationPath(e.path,e.params),e.trigger);return}})}generateNavigationPath(e,t){let n=this.getNavigationPathBasename(),r=b_.build(t),i=n&&!e.startsWith(n)?NRe([n,e]):e;return i=r?`${i}?${r}`:i,i}getNavigationPathBasename(){let e=(this.parent?.relativeTo?.route)?.endpoint.route.path;return e?PRe(e):this.basename?this.basename:``}construct(e){return this.container.get(e)}};q([Nt],j7.prototype,`container`,void 0),q([Sre],j7.prototype,`analytics`,void 0),q([eg],j7.prototype,`user`,void 0),q([Cg],j7.prototype,`_session`,void 0);let M7=`navigate-to`,N7=`generate-navigation-path`,P7=class extends w7.from(Qe){constructor(){super(...arguments),this.logger=S7,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();let{path:t,params:n,callback:r}=e.detail;r&&r(this.config.generateNavigationPath(t,n))}}get router(){return this[C7]}connectedCallback(){var e;super.connectedCallback(),!this.config.isConfigured&&((e=this.config).relativeTo??(e.relativeTo=this.router),x.queueUpdate(()=>J(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(M7,this.onNavigateTo),this.addEventListener(N7,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(M7,this.onNavigateTo),this.removeEventListener(N7,this.onGenerateNavigationPath)}};P7=q([$e({name:`foundation-router`})],P7);let F7=e=>`control: ${e}-control, content: ${e}-content`,IRe=[`background: progress-ring-background`,`progress: progress-ring-progress`,`indeterminate-indicator-1: progress-ring-indeterminate`].join(`, `),I7=e=>T`<${e}-card class=${e=>pn(`stepper-tab`,[`stepper-tab-hidden`,e.hideTabs])}part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab"><div class=${e=>pn(`stepper-tab-menu`,[`stepper-tab-menu-hidden`,e.hideTabs])}part="stepper-tab-menu"><slot name="tab" ${xt(`tabs`)}></slot></div>${A(e=>e.orientation===Ia.vertical&&!e.hideProgress,T`<div class="stepper-tab-progress" part="stepper-tab-progress"><${e}-progress-ring class="progress-ring" part="progress-ring" exportparts="${IRe}" value=${e=>e.progressValue}></${e}-progress-ring><label part="progress-label">You have completed ${e=>e.progressValue}% of the fields required to create a project</label></div>`)}</${e}-card>${A(e=>!e.indicatorOnly,T`<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel"><div class="stepper-panel-container" part="stepper-panel-container"><slot name="tab-panel" ${xt(`tabpanels`)}></slot></div>${A(e=>!e.hideAllButtons,T`<div class="action-buttons-container" part="action-buttons-container"><slot name="action-buttons"><${e}-button part="back-button" exportparts="${F7(`back-button`)}" @click=${e=>e.previousStep()}?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>${A(e=>e.isLastStep&&!e.hideSubmitButton,T`<${e}-button part="submit-button" exportparts="${F7(`submit-button`)}" @click=${e=>e._submit()}?disabled=${e=>e.islastStepValid}data-test-id="submit-button">
|
|
1006
|
-
Submit </${e}-button>`)} ${A(e=>!e.isLastStep,T`<${e}-button part="next-button" exportparts="${F7(`next-button`)}" @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,LRe=T` ${e=>I7(gb(e))} `,L7=O` :host{display: flex;height: 100%;width: 100%}:host([orientation='horizontal']){flex-direction: column}.stepper-tab{display: flex;flex-direction: column;width: 100%;height: 100%;max-width: 280px;border-radius: 0}.action-buttons-container{width: 100%;display: flex;justify-content: flex-end}.stepper-panel-container{height: 100%;overflow: hidden;padding: 15px}.stepper-tab-menu{display: flex;flex-direction: column;width: 100%;margin-bottom: 30px}.stepper-tab-menu-hidden{display: none}.stepper-tab-progress{display: flex;flex-direction: column;align-items: center;justify-content: start;flex: 1}.stepper-tab-progress .progress-ring{--design-unit: 10;margin: 0}.stepper-tab-panel{display: flex;flex-direction: column;justify-content: space-between;width: 100%;min-width: 370px;border-radius: 0}label{padding: 0 10px;color: rgb(135 155 166);display: block;cursor: pointer;text-align: center;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal;margin: calc(var(--design-unit) * 2px) 0}:host([orientation='horizontal']) .stepper-tab-menu{height: 100%;width: 100%;display: flex;flex-direction: row;margin-bottom: 0;align-items: center;justify-content: center;gap: calc(var(--design-unit) * 4px);padding: 0 calc(var(--design-unit) * 4px)}:host([orientation='horizontal']) .stepper-tab-hidden{display: none}:host([orientation='horizontal']) .stepper-tab{max-width: 100%;max-height: 70px;height: 70px}`;var R7=class extends P{constructor(){super(...arguments),this.hideProgress=!1,this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=Ia.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot===`tab`){let n=this.activeTabIndex===t,r=t+1===this.tabIds.length,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute(`id`,i),e.setAttribute(`aria-selected`,n?`true`:`false`),e.setAttribute(`aria-disabled`,n?`false`:`true`),x.setBooleanAttribute(e,`selected`,n),e.setAttribute(`orientation`,this.orientation),a&&e.setAttribute(`aria-controls`,a),e.setAttribute(`tab-position`,String(t+1)),x.setBooleanAttribute(e,`isLast`,r),x.setBooleanAttribute(e,`hideStepNumber`,this.hideStepNumber===!0),e.setAttribute(`tabindex`,n?`0`:`-1`),x.setBooleanAttribute(e,`showCursorPointer`,t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps),n&&(this.activetab=e,this.activeid=i)}}),this.activeTabIndex===0&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});let t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute(`id`,r),e.setAttribute(`aria-labelledby`,n),this.activeTabIndex===t?e.removeAttribute(`hidden`):e.setAttribute(`hidden`,``)})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return this.activeid===void 0||this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}goToStep(e,t=!1){let n=e-1;if(e<1||e>this.tabs.length)return fb.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(n===this.activeTabIndex)return!1;if(t){if(n<this.activeTabIndex)return this.handleBackwardJump(n);if(n>this.activeTabIndex)return this.handleForwardJump(n)}return n<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(n):n>this.activeTabIndex&&this.allowForwardJumps?this.handleForwardJump(n):n===this.activeTabIndex+1?(this.nextStep(),!0):(fb.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit(`validation-failure`,{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return this.activeTabIndex===0}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){let e=this.tabs.length-1;return this.activeTabIndex===e&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs(),!1):(this.tabs[e].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit(`submit`)}nextStep(){if(!this.slotsInitialized){this.pendingNextStep=!0;return}if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid()){this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,this.getCompletedTabs();return}this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex+=1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit(`next-step`),this.$emit(`validation-success`));let e=this.tabs.length-1,t=this.activeTabIndex===e;this.hideSubmitButton&&t&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs()):(this.tabs[e].completed=!1,this.getCompletedTabs())}previousStep(){this.activeTabIndex!==0&&(this.tabs[this.activeTabIndex].completed=!1,--this.activeTabIndex,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>e.getAttribute(`id`)??`tab-${Rn()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute(`id`)??`panel-${Rn()}`)}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}};q([D({attribute:`hide-submit-button`,mode:`boolean`})],R7.prototype,`hideSubmitButton`,void 0),q([D({attribute:`hide-progress`,mode:`boolean`})],R7.prototype,`hideProgress`,void 0),q([D({attribute:`hide-step-number`,mode:`boolean`})],R7.prototype,`hideStepNumber`,void 0),q([D({attribute:`allow-backward-jumps`,mode:`boolean`})],R7.prototype,`allowBackwardJumps`,void 0),q([D({attribute:`allow-forward-jumps`,mode:`boolean`})],R7.prototype,`allowForwardJumps`,void 0),q([D({attribute:`hide-all-buttons`,mode:`boolean`})],R7.prototype,`hideAllButtons`,void 0),q([D({attribute:`hide-tabs`,mode:`boolean`})],R7.prototype,`hideTabs`,void 0),q([D({attribute:`indicator-only`,mode:`boolean`})],R7.prototype,`indicatorOnly`,void 0),q([D],R7.prototype,`orientation`,void 0),q([D],R7.prototype,`activeid`,void 0),q([C],R7.prototype,`tabs`,void 0),q([C],R7.prototype,`tabpanels`,void 0),q([C],R7.prototype,`validation`,void 0),q([C],R7.prototype,`progressValue`,void 0),q([C],R7.prototype,`activeTabIndex`,void 0),q([w],R7.prototype,`disabledPreviousStep`,null),q([w],R7.prototype,`isLastStep`,null),q([w],R7.prototype,`islastStepValid`,null);let z7={};R7.compose(Object.assign({baseName:`stepper`,template:LRe,styles:L7,shadowOptions:void 0},z7));let RRe=class extends Gu{}.compose(Object.assign({baseName:`accordion`,template:(e,t)=>ao(e,t),styles:(e,t)=>O` ${Wu(e,t)} :host{border-top: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)}.heading{height: calc(var(--base-height-multiplier) * 4px)}`,shadowOptions:Ku},qu)),zRe=class extends Xu{}.compose(Object.assign({baseName:`accordion-item`,template:(e,t)=>Ju(e,t),styles:(e,t)=>O` ${Yu(e,t)} :host{--icon-container-calculator: calc( (6 + (var(--design-unit) * 6)) * 1px );/* height of section - (padding top +padding-bottom) */ --icon-margin-calculation: calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px)}.region{padding: 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px);color: var(--accent-foreground-rest)}:host([expanded]) .region{color: var(--accent-foreground-rest)}slot[name='expanded-icon']{display: none;stroke: none}slot[name='collapsed-icon'] path.plus-sign, slot[name='expanded-icon'] path.minus-sign{stroke: white}slot[name='expanded-icon'], slot[name='collapsed-icon']{background: var(--neutral-fill-rest);fill: none;stroke: none;height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}svg:not(:root){height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}.icon{height: var( --icon-container-calculator );/* UX 30px* for now it's 30 on default design unit - 4/ */ width: var(--icon-container-calculator);/* UX 30px */ margin: var(--icon-margin-calculation) var(--icon-margin-calculation) var(--icon-margin-calculation) 0}.button{padding: 0 calc((8 + (var(--design-unit) * 2 * var(--density))) * 1px) 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px)}.heading{grid-template-columns: auto 1fr auto;align-items: center}`,shadowOptions:Zu},Qu)),BRe=class extends Gb{}.compose({baseName:`actions-menu`,styles:(e,t)=>O` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${$u(e,t)} rapid-menu-item{display: flex;user-select: none}rapid-menu-item::part(content){margin-inline: calc(var(--design-unit) * 3px)}rapid-menu-item[disabled]{pointer-events: none}`,template:Ub}),VRe=O` ${tC}`,HRe=class extends TC{}.compose(Object.assign({baseName:`ai-criteria-search`,template:(e,t)=>nC,styles:VRe,shadowOptions:void 0},EC)),URe=class extends kC{}.compose({baseName:`ai-indicator`,template:OC,styles:(e,t)=>O` ${DC(e,t)} :host{--green: var(--success-color);--trafic-light-green: var(--success-color);--red: var(--error-color);--trafic-light-red: var(--error-color);--amber: var(--warning-color);--trafic-light-amber: var(--warning-color)}`});function B7(e,t){return new no(`appearance`,e,t)}let WRe=[`baseClass`,`baseName`,`shadowOptions`,`styles`,`template`],GRe=(e,t=WRe)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}),V7=e=>{let{definition:t}=e(),{shadowOptions:n,styles:r,template:i}=t;return{shadowOptions:n,styles:r,template:i,defaultConfig:GRe(t)}},KRe=O` :host([appearance='primary']){background: var(--accent-fill-rest);color: var(--foreground-on-accent-rest)}:host([appearance='primary']:hover){background: var(--accent-fill-hover);color: var(--foreground-on-accent-hover)}:host([appearance='primary']:active){background: var(--accent-fill-active);color: var(--foreground-on-accent-active)}:host([appearance='primary'][disabled]), :host([appearance='primary'][disabled]):hover, :host([appearance='primary'][disabled]):active{opacity: 50%}`,qRe=O` :host([appearance='secondary']){background: var(--secondary-fill-rest);color: contrast-color(var(--secondary-fill-rest))}:host([appearance='secondary']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary'][disabled]), :host([appearance='secondary'][disabled]):hover, :host([appearance='secondary'][disabled]):active{opacity: 50%}`,JRe=O` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: var(--neutral-button-border, 0);color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-hover)), transparent 20% )}:host([appearance='neutral']:active){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-active)), transparent 30% )}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%;background: var(--neutral-button-fill, var(--neutral-fill-rest));color: var(--neutral-button-foreground, var(--neutral-foreground-rest));border: var(--neutral-button-border, 0)}`,YRe=O` :host([appearance='danger']){background: var(--error-fill-rest);color: contrast-color(var(--error-fill-rest));border: 0}:host([appearance='danger']:hover){background: var(--error-fill-hover);color: contrast-color(var(--error-fill-hover))}:host([appearance='danger']:active){background: var(--error-fill-active);color: contrast-color(var(--error-fill-active))}:host([appearance='danger'][disabled]), :host([appearance='danger'][disabled]):hover, :host([appearance='danger'][disabled]):active{opacity: 50%}`,XRe=O` :host([appearance='success']){background: var(--success-fill-rest);color: contrast-color(var(--success-fill-rest));border: 0}:host([appearance='success']:hover){background: var(--success-fill-hover);color: contrast-color(var(--success-fill-hover))}:host([appearance='success']:active){background: var(--success-fill-active);color: contrast-color(var(--success-fill-active))}:host([appearance='success'][disabled]), :host([appearance='success'][disabled]):hover, :host([appearance='success'][disabled]):active{opacity: 50%}`,ZRe=O` :host([appearance='warning']){background: var(--warning-fill-rest);color: contrast-color(var(--warning-fill-rest));border: 0}:host([appearance='warning']:hover){background: var(--warning-fill-hover);color: contrast-color(var(--warning-fill-hover))}:host([appearance='warning']:active){background: var(--warning-fill-active);color: contrast-color(var(--warning-fill-active))}:host([appearance='warning'][disabled]), :host([appearance='warning'][disabled]):hover, :host([appearance='warning'][disabled]):active{opacity: 50%}`,QRe=O` :host([appearance='tertiary']){background: var(--tertiary-fill-rest);color: contrast-color(var(--tertiary-fill-rest));border: 0}:host([appearance='tertiary']:hover){background: var(--tertiary-fill-hover);color: contrast-color(var(--tertiary-fill-hover))}:host([appearance='tertiary']:active){background: var(--tertiary-fill-active);color: contrast-color(var(--tertiary-fill-active))}:host([appearance='tertiary'][disabled]), :host([appearance='tertiary'][disabled]):hover, :host([appearance='tertiary'][disabled]):active{opacity: 50%}`,$Re=O` :host([appearance='primary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest)}:host([appearance='primary-outline']:hover){background: var(--accent-fill-hover);color: contrast-color(var(--accent-fill-hover))}:host([appearance='primary-outline']:active){background: var(--accent-fill-active);color: contrast-color(var(--accent-fill-active))}:host([appearance='primary-outline'][disabled]), :host([appearance='primary-outline'][disabled]):hover, :host([appearance='primary-outline'][disabled]):active{opacity: 50%}`,eze=O` :host([appearance='secondary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--secondary-fill-rest)}:host([appearance='secondary-outline']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary-outline']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary-outline'][disabled]), :host([appearance='secondary-outline'][disabled]):hover, :host([appearance='secondary-outline'][disabled]):active{opacity: 50%}`,tze=O` :host([appearance='neutral-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host([appearance='neutral-outline']:hover){background: var(--neutral-fill-hover);color: contrast-color(var(--neutral-fill-hover))}:host([appearance='neutral-outline']:active){background: var(--neutral-fill-active);color: contrast-color(var(--neutral-fill-active))}:host([appearance='neutral-outline'][disabled]), :host([appearance='neutral-outline'][disabled]):hover, :host([appearance='neutral-outline'][disabled]):active{opacity: 50%}`,nze=O` :host([appearance='link']){background: none;border: none;color: var(--accent-foreground-rest)}:host([appearance='link']) .control{padding: 0}:host([appearance='link']:hover){color: var(--accent-foreground-hover)}:host([appearance='link'][disabled]), :host([appearance='link'][disabled]):hover, :host([appearance='link'][disabled]):active{opacity: 50%}`,rze=(e,t)=>O` :host{font-weight: 500;color: var(--neutral-foreground-rest);box-sizing: border-box;font-size: var(--type-ramp-base-font-size);height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px)}.control{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px)}.start{margin-inline-end: calc(var(--design-unit) * 2px)}.end{margin-inline-start: calc(var(--design-unit) * 2px)}.control:has(.start){padding-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}.control:has(.end){padding-right: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}:host([appearance='neutral']){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral']:hover){background: var(--neutral-fill-rest)}:host([appearance='neutral']:active){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%));border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);opacity: 100%}:host([appearance='accent']){color: contrast-color(var(--accent-fill-rest))}`,H7=(e,t)=>O` ${sw(e,t)} ${rze(e,t)} `.withBehaviors(B7(`primary`,KRe),B7(`secondary`,qRe),B7(`tertiary`,QRe),B7(`neutral`,JRe),B7(`danger`,YRe),B7(`success`,XRe),B7(`warning`,ZRe),B7(`primary-outline`,$Re),B7(`secondary-outline`,eze),B7(`neutral-outline`,tze),B7(`link`,nze)),ize=class extends MC{}.compose(Object.assign({baseName:`anchor`,template:(e,t)=>AC(e,t),styles:(e,t)=>O` ${jC(e,t)} ${H7(e,t)} `.withBehaviors(...H7(e,t).behaviors),shadowOptions:NC},PC)),aze=class extends LC{}.compose(Object.assign({baseName:`anchored-region`,template:(e,t)=>FC(e,t),styles:(e,t)=>O` ${IC(e,t)}`,shadowOptions:RC},zC)),oze=class extends HC{}.compose(Object.assign({baseName:`avatar`,template:(e,t)=>BC(e,t),styles:(e,t)=>O` ${VC(e,t)}`,shadowOptions:UC},WC)),sze=class extends qC{}.compose(Object.assign({baseName:`badge`,template:(e,t)=>GC(e,t),styles:(e,t)=>O` ${KC(e,t)} :host{--badge-fill-primary: var(--accent-fill-rest);--badge-fill-neutral: var(--neutral-fill-rest);--badge-fill-success: var(--success-color);--badge-fill-danger: var(--error-color);--badge-fill-warning: var(--warning-color);--badge-fill-buy: var(--buy-color);--badge-fill-sell: var(--sell-color);--badge-color-text: var(--neutral-foreground-rest);font-size: var(--type-ramp-minus-2-font-size)}:host .control{padding: calc(${B} * 1px) calc(${B} * 2px);border: none}`,shadowOptions:void 0},JC)),cze=O` ${YC} :host{--banner-height: calc( ((var(--design-unit) + 2) * var(--base-height-multiplier)) + (var(--design-unit) * var(--design-unit)) * 1px )}.banner{background-color: var(--neutral-layer-1);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}.content{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}`,lze=ZC,uze=class extends QC{}.compose({baseName:`banner`,shadowOptions:lze,styles:cze,template:XC}),dze=class extends tw{}.compose(Object.assign({baseName:`breadcrumb`,template:(e,t)=>$C(e,t),styles:(e,t)=>O` ${ew(e,t)}`,shadowOptions:void 0},{})),fze=class extends iw{}.compose(Object.assign({baseName:`breadcrumb-item`,template:(e,t)=>nw(e,t),styles:(e,t)=>O` ${rw(e,t)} .listitem{color: var(--accent-foreground-rest)}.control{color: var(--neutral-foreground-rest)}.control:hover{color: var(--neutral-foreground-rest)}.separator{color: var(--neutral-stroke-rest);margin: 0 12px}.control:hover .content::before{background: var(--neutral-foreground-rest)}.control .start{width: calc(var(--base-height-multiplier) * 3px);height: calc(var(--base-height-multiplier) * 3px);display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);margin: 0 -4px 0 0}.control:hover .start{background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}`,shadowOptions:void 0},aw)),pze=class extends cw{}.compose(Object.assign({baseName:`button`,template:(e,t)=>ow(e,t),styles:H7,shadowOptions:lw},uw)),mze=class extends pw{}.compose(Object.assign({baseName:`calendar`,template:(e,t)=>fw(e,t),styles:()=>O` ${dw()}`,shadowOptions:mw},hw)),hze=class extends vw{}.compose(Object.assign({baseName:`card`,template:(e,t)=>gw(e,t),styles:(e,t)=>O` ${_w(e,t)} :host{background: var(--neutral-layer-card-container);color: ${H};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));box-shadow: var(--card-box-shadow, none);border: var( --card-border, 1px solid var(--neutral-stroke-rest) );/** uses a token instead of #2E3339 value available in ux docs */ /* box-shadow and border-radius are being calculated at host level by using design-tokens */}::slotted(rapid-card){background: var(--neutral-layer-3)}`,shadowOptions:void 0},yw)),gze=O` ${kw} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,_ze=T` ${Aw(`rapid`)} `;var vze=class extends Mw{};let yze=jw,bze=vze.compose(Object.assign({baseName:`categorized-multiselect`,template:_ze,styles:gze,shadowOptions:void 0},yze)),xze=class extends Fw{}.compose(Object.assign({baseName:`checkbox`,template:(e,t)=>Nw(e,t),styles:(e,t)=>O` ${Pw(e,t)} .checked-indicator{fill: contrast-color(var(--accent-fill-rest));box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;border-radius: calc(var(--control-corner-radius) * 1px)}:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:void 0},Iw)),Sze=class extends Vw{}.compose(Object.assign({baseName:`combobox`,template:(e,t)=>Rw(e,t),styles:(e,t)=>O` ${Lw(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-width: 0}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.combo-box-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s}.selected-value{height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .combo-box-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:Hw},Uw)),Cze=class extends Kw{}.compose({baseName:`connection-indicator`,template:Gw,styles:(e,t)=>O` ${Ww(e,t)} :host{--light-size: calc(var(--design-unit) * 3px);--red: var(--error-color);--trafic-light-red: color-mix(in srgb, var(--red), transparent 0%);--trafic-light-red-glow: color-mix(in srgb, var(--red), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--red), transparent 80%) 0 0 8px 8px;--green: var(--success-color);--trafic-light-green: color-mix(in srgb, var(--green), transparent 0%);--trafic-light-green-glow: color-mix(in srgb, var(--green), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--green), transparent 80%) 0 0 8px 8px}.light{margin: calc(var(--design-unit) * 4px)}.label{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);color: var(--neutral-stroke-rest)}`}),{defaultConfig:wze,shadowOptions:Tze,styles:Eze,template:Dze}=V7(qw),Oze=()=>qw(),{defaultConfig:kze,shadowOptions:Aze,styles:jze,template:Mze}=V7(Jw),Nze=()=>Jw(),{defaultConfig:Pze,shadowOptions:Fze,styles:Ize,template:Lze}=V7(Yw),Rze=()=>Yw(),zze=()=>O` ${Xw} :host{--primary-gradient-angle: -113.5deg;display: inline-block}.calendar-dropdown{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.input-icon-container{display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px)}.input-icon-container:hover{background-color: var(--neutral-fill-rest)}.date-toggle::part(end){margin-inline-end: calc(var(--design-unit) * 1px)}.date-toggle{margin-bottom: 0}.month-day{width: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px);height: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px)}.week-days span{font-size: var(--type-ramp-minus-2-font-size)}`,Bze=T` ${Qw(`rapid`)} `,Vze=class extends uT{}.compose(Object.assign({baseName:`date-picker`,template:Bze,styles:zze,shadowOptions:void 0},{}));var U7;(function(e){e.primary=`#11C9FC`,e.neutral=`#7C909B`,e.error=`#F9644D`,e.success=`#7ACC79`,e.warning=`#FFB660`,e.tertiary=`#7B2FBE`,e.info=`#11C9FC`,e.buy=`#7ACC79`,e.sell=`#F14376`,e.chartPink=`#fb8176`,e.longGreen=`#7acc79`,e.shortPink=`#f14376`,e.warningYellow=`#fcb35f`,e.green=`#44c14c`,e.lightGreen=`#69cd70`,e.red=`#ef4d28`,e.lightRed=`#ee6588`,e.dodgerBlue=`#33a9ff`,e.lightDodgerBlue=`#5cbaff`,e.violet=`#9b1e74`,e.lightViolet=`#b528af`,e.white=`#f9f9f9`,e.silver=`#c1c1c1`,e.salomie=`#ffdf94`,e.lightSalomie=`#ccb276`,e.melon=`#ffbbb2`,e.lightMelon=`#cc968e`,e.portage=`#8a99f5`,e.lightPortage=`#adb8f8`,e.ice=`#97f4eb`,e.lightIce=`#6befe2`})(U7||(U7={}));let{create:W7}=ri,G7=Yo(U7.error),K7=$o.create(G7.r,G7.g,G7.b),q7=W7(`error-color`).withDefault(K7),J7=Yo(U7.success),Y7=$o.create(J7.r,J7.g,J7.b),X7=W7(`success-color`).withDefault(Y7),Z7=Yo(U7.warning),Q7=$o.create(Z7.r,Z7.g,Z7.b),$7=W7(`warning-color`).withDefault(Q7),e9=Yo(U7.buy),t9=$o.create(e9.r,e9.g,e9.b),n9=W7(`buy-color`).withDefault(t9),r9=Yo(U7.sell),i9=$o.create(r9.r,r9.g,r9.b),a9=W7(`sell-color`).withDefault(i9),o9=Yo(U7.info),s9=$o.create(o9.r,o9.g,o9.b),c9=W7(`info-color`).withDefault(s9),l9=Yo(U7.error),u9=$o.create(l9.r,l9.g,l9.b),d9=W7(`serious-notify-color`).withDefault(u9),{create:f9}=ri,p9=e=>ri.create({name:e,cssCustomPropertyName:null}),m9=$o.create(1,1,1),Hze=$o.create(0,0,0),h9=4.5;function Uze(e,t,n,r,i,a,o,s,c){let l=e.source,u=t.closestIndexOf(n)>=Math.max(o,s,c)?-1:1,d=e.closestIndexOf(l),f=d+u*-1*r,p=f+u*i,m=f+u*a;return{rest:e.get(f),hover:e.get(d),active:e.get(p),focus:e.get(m)}}function Wze(e,t,n,r,i,a,o){let s=e.source,c=e.closestIndexOf(s),l=ns(t)?-1:1,u=c+(l===1?Math.min(r,i):Math.max(l*r,l*i)),d=e.colorContrast(t,n,u,l),f=e.closestIndexOf(d),p=f+l*Math.abs(r-i),m=l===1?r<i:l*r>l*i,h=m?f:p,g=m?p:f;return{rest:e.get(h),hover:e.get(g),active:e.get(h+l*a),focus:e.get(h+l*o)}}function Gze(e,t){return e.contrast(m9)>=t?m9:Hze}function g9(e,t){let n=e,r=p9(`${n}-palette`).withDefault(e=>is.from(t.getValueFor(e))),i=p9(`${n}-fill-rest-delta`).withDefault(0),a=p9(`${n}-fill-hover-delta`).withDefault(4),o=p9(`${n}-fill-active-delta`).withDefault(-5),s=p9(`${n}-fill-focus-delta`).withDefault(0),c=p9(`${n}-foreground-rest-delta`).withDefault(0),l=p9(`${n}-foreground-hover-delta`).withDefault(6),u=p9(`${n}-foreground-active-delta`).withDefault(-4),d=p9(`${n}-foreground-focus-delta`).withDefault(0),f=p9(`${n}-fill-recipe`).withDefault({evaluate:(e,t)=>Uze(r.getValueFor(e),fc.getValueFor(e),t??Cc.getValueFor(e),a.getValueFor(e),o.getValueFor(e),s.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),p=f9(`${n}-fill-rest`).withDefault(e=>f.getValueFor(e).evaluate(e).rest),m=f9(`${n}-fill-hover`).withDefault(e=>f.getValueFor(e).evaluate(e).hover),h=f9(`${n}-fill-active`).withDefault(e=>f.getValueFor(e).evaluate(e).active),g=f9(`${n}-fill-focus`).withDefault(e=>f.getValueFor(e).evaluate(e).focus),_=e=>(t,n)=>Gze(n??p.getValueFor(t),e),v=p9(`foreground-on-${n}-recipe`).withDefault({evaluate:(e,t)=>_(h9)(e,t)}),y=f9(`foreground-on-${n}-rest`).withDefault(e=>v.getValueFor(e).evaluate(e,p.getValueFor(e))),b=f9(`foreground-on-${n}-hover`).withDefault(e=>v.getValueFor(e).evaluate(e,m.getValueFor(e))),ee=f9(`foreground-on-${n}-active`).withDefault(e=>v.getValueFor(e).evaluate(e,h.getValueFor(e))),x=f9(`foreground-on-${n}-focus`).withDefault(e=>v.getValueFor(e).evaluate(e,g.getValueFor(e))),te=p9(`foreground-on-${n}-large-recipe`).withDefault({evaluate:(e,t)=>_(7)(e,t)}),ne=f9(`foreground-on-${n}-rest-large`).withDefault(e=>te.getValueFor(e).evaluate(e,p.getValueFor(e))),S=f9(`foreground-on-${n}-hover-large`).withDefault(e=>te.getValueFor(e).evaluate(e,m.getValueFor(e))),C=f9(`foreground-on-${n}-active-large`).withDefault(e=>te.getValueFor(e).evaluate(e,h.getValueFor(e))),w=f9(`foreground-on-${n}-focus-large`).withDefault(e=>te.getValueFor(e).evaluate(e,g.getValueFor(e))),re=p9(`${n}-foreground-recipe`).withDefault({evaluate:(e,t)=>Wze(r.getValueFor(e),t??Cc.getValueFor(e),h9,c.getValueFor(e),l.getValueFor(e),u.getValueFor(e),d.getValueFor(e))});return{palette:r,fillRestDelta:i,fillHoverDelta:a,fillActiveDelta:o,fillFocusDelta:s,foregroundRestDelta:c,foregroundHoverDelta:l,foregroundActiveDelta:u,foregroundFocusDelta:d,fillRecipe:f,fillRest:p,fillHover:m,fillActive:h,fillFocus:g,foregroundOnRecipe:v,foregroundOnRest:y,foregroundOnHover:b,foregroundOnActive:ee,foregroundOnFocus:x,foregroundOnLargeRecipe:te,foregroundOnRestLarge:ne,foregroundOnHoverLarge:S,foregroundOnActiveLarge:C,foregroundOnFocusLarge:w,foregroundRecipe:re,foregroundRest:f9(`${n}-foreground-rest`).withDefault(e=>re.getValueFor(e).evaluate(e).rest),foregroundHover:f9(`${n}-foreground-hover`).withDefault(e=>re.getValueFor(e).evaluate(e).hover),foregroundActive:f9(`${n}-foreground-active`).withDefault(e=>re.getValueFor(e).evaluate(e).active),foregroundFocus:f9(`${n}-foreground-focus`).withDefault(e=>re.getValueFor(e).evaluate(e).focus)}}let _9=Yo(U7.green),v9=$o.create(_9.r,_9.g,_9.b),y9=ri.create(`secondary-color`).withDefault(v9),{palette:Kze,fillRestDelta:qze,fillHoverDelta:Jze,fillActiveDelta:Yze,fillFocusDelta:Xze,foregroundRestDelta:Zze,foregroundHoverDelta:b9,foregroundActiveDelta:Qze,foregroundFocusDelta:$ze,fillRecipe:eBe,fillRest:tBe,fillHover:nBe,fillActive:rBe,fillFocus:iBe,foregroundOnRecipe:aBe,foregroundOnRest:oBe,foregroundOnHover:sBe,foregroundOnActive:cBe,foregroundOnFocus:lBe,foregroundOnLargeRecipe:uBe,foregroundOnRestLarge:dBe,foregroundOnHoverLarge:fBe,foregroundOnActiveLarge:pBe,foregroundOnFocusLarge:mBe,foregroundRecipe:hBe,foregroundRest:gBe,foregroundHover:_Be,foregroundActive:vBe,foregroundFocus:yBe}=g9(`secondary`,y9),x9=Yo(U7.tertiary),S9=$o.create(x9.r,x9.g,x9.b),C9=ri.create(`tertiary-color`).withDefault(S9),{palette:bBe,fillRestDelta:xBe,fillHoverDelta:SBe,fillActiveDelta:CBe,fillFocusDelta:wBe,foregroundRestDelta:TBe,foregroundHoverDelta:EBe,foregroundActiveDelta:DBe,foregroundFocusDelta:OBe,fillRecipe:kBe,fillRest:ABe,fillHover:jBe,fillActive:MBe,fillFocus:NBe,foregroundOnRecipe:PBe,foregroundOnRest:FBe,foregroundOnHover:IBe,foregroundOnActive:LBe,foregroundOnFocus:RBe,foregroundOnLargeRecipe:zBe,foregroundOnRestLarge:BBe,foregroundOnHoverLarge:VBe,foregroundOnActiveLarge:HBe,foregroundOnFocusLarge:UBe,foregroundRecipe:WBe,foregroundRest:GBe,foregroundHover:KBe,foregroundActive:qBe,foregroundFocus:JBe}=g9(`tertiary`,C9),{palette:YBe,fillRestDelta:XBe,fillHoverDelta:ZBe,fillActiveDelta:QBe,fillFocusDelta:$Be,foregroundRestDelta:eVe,foregroundHoverDelta:tVe,foregroundActiveDelta:nVe,foregroundFocusDelta:rVe,fillRecipe:iVe,fillRest:aVe,fillHover:oVe,fillActive:sVe,fillFocus:cVe,foregroundOnRecipe:lVe,foregroundOnRest:uVe,foregroundOnHover:dVe,foregroundOnActive:fVe,foregroundOnFocus:pVe,foregroundOnLargeRecipe:mVe,foregroundOnRestLarge:hVe,foregroundOnHoverLarge:gVe,foregroundOnActiveLarge:_Ve,foregroundOnFocusLarge:vVe,foregroundRecipe:yVe,foregroundRest:bVe,foregroundHover:xVe,foregroundActive:SVe,foregroundFocus:CVe}=g9(`error`,q7),{palette:wVe,fillRestDelta:TVe,fillHoverDelta:EVe,fillActiveDelta:DVe,fillFocusDelta:OVe,foregroundRestDelta:kVe,foregroundHoverDelta:AVe,foregroundActiveDelta:jVe,foregroundFocusDelta:MVe,fillRecipe:NVe,fillRest:PVe,fillHover:FVe,fillActive:IVe,fillFocus:LVe,foregroundOnRecipe:RVe,foregroundOnRest:zVe,foregroundOnHover:BVe,foregroundOnActive:VVe,foregroundOnFocus:HVe,foregroundOnLargeRecipe:UVe,foregroundOnRestLarge:WVe,foregroundOnHoverLarge:GVe,foregroundOnActiveLarge:KVe,foregroundOnFocusLarge:qVe,foregroundRecipe:JVe,foregroundRest:YVe,foregroundHover:XVe,foregroundActive:ZVe,foregroundFocus:QVe}=g9(`success`,X7),{palette:$Ve,fillRestDelta:eHe,fillHoverDelta:tHe,fillActiveDelta:nHe,fillFocusDelta:rHe,foregroundRestDelta:iHe,foregroundHoverDelta:aHe,foregroundActiveDelta:oHe,foregroundFocusDelta:sHe,fillRecipe:cHe,fillRest:lHe,fillHover:uHe,fillActive:dHe,fillFocus:fHe,foregroundOnRecipe:pHe,foregroundOnRest:mHe,foregroundOnHover:hHe,foregroundOnActive:gHe,foregroundOnFocus:_He,foregroundOnLargeRecipe:vHe,foregroundOnRestLarge:yHe,foregroundOnHoverLarge:bHe,foregroundOnActiveLarge:xHe,foregroundOnFocusLarge:SHe,foregroundRecipe:CHe,foregroundRest:wHe,foregroundHover:THe,foregroundActive:EHe,foregroundFocus:DHe}=g9(`warning`,$7);var w9=/* @__PURE__ */ c({accentFillActive:()=>Oc,accentFillActiveDelta:()=>Ls,accentFillFocus:()=>kc,accentFillFocusDelta:()=>Rs,accentFillHover:()=>Dc,accentFillHoverDelta:()=>Is,accentFillRest:()=>Ec,accentFillRestDelta:()=>Fs,accentForegroundActive:()=>Gc,accentForegroundActiveDelta:()=>Vs,accentForegroundFocus:()=>Kc,accentForegroundFocusDelta:()=>Hs,accentForegroundHover:()=>Wc,accentForegroundHoverDelta:()=>Bs,accentForegroundRest:()=>Uc,accentForegroundRestDelta:()=>zs,accentPalette:()=>mc,baseHeightMultiplier:()=>ds,baseLayerLuminance:()=>fs,bodyFont:()=>us,buyColor:()=>n9,controlCornerRadius:()=>z,defaultBuyColor:()=>t9,defaultErrorColor:()=>K7,defaultInfoColor:()=>s9,defaultSecondaryColor:()=>v9,defaultSellColor:()=>i9,defaultSeriousNotifyColor:()=>u9,defaultSuccessColor:()=>Y7,defaultTertiaryColor:()=>S9,defaultWarningColor:()=>Q7,density:()=>ps,designUnit:()=>B,direction:()=>ms,disabledOpacity:()=>hs,errorColor:()=>q7,errorFillActive:()=>sVe,errorFillActiveDelta:()=>QBe,errorFillFocus:()=>cVe,errorFillFocusDelta:()=>$Be,errorFillHover:()=>oVe,errorFillHoverDelta:()=>ZBe,errorFillRecipe:()=>iVe,errorFillRest:()=>aVe,errorFillRestDelta:()=>XBe,errorForegroundActive:()=>SVe,errorForegroundActiveDelta:()=>nVe,errorForegroundFocus:()=>CVe,errorForegroundFocusDelta:()=>rVe,errorForegroundHover:()=>xVe,errorForegroundHoverDelta:()=>tVe,errorForegroundRecipe:()=>yVe,errorForegroundRest:()=>bVe,errorForegroundRestDelta:()=>eVe,errorPalette:()=>YBe,fillColor:()=>Cc,focusStrokeInner:()=>_l,focusStrokeOuter:()=>gl,focusStrokeWidth:()=>gs,foregroundOnAccentActive:()=>Pc,foregroundOnAccentActiveLarge:()=>zc,foregroundOnAccentFocus:()=>Fc,foregroundOnAccentFocusLarge:()=>Bc,foregroundOnAccentHover:()=>Nc,foregroundOnAccentHoverLarge:()=>Rc,foregroundOnAccentRest:()=>Mc,foregroundOnAccentRestLarge:()=>Lc,foregroundOnErrorActive:()=>fVe,foregroundOnErrorActiveLarge:()=>_Ve,foregroundOnErrorFocus:()=>pVe,foregroundOnErrorFocusLarge:()=>vVe,foregroundOnErrorHover:()=>dVe,foregroundOnErrorHoverLarge:()=>gVe,foregroundOnErrorLargeRecipe:()=>mVe,foregroundOnErrorRecipe:()=>lVe,foregroundOnErrorRest:()=>uVe,foregroundOnErrorRestLarge:()=>hVe,foregroundOnSecondaryActive:()=>cBe,foregroundOnSecondaryActiveLarge:()=>pBe,foregroundOnSecondaryFocus:()=>lBe,foregroundOnSecondaryFocusLarge:()=>mBe,foregroundOnSecondaryHover:()=>sBe,foregroundOnSecondaryHoverLarge:()=>fBe,foregroundOnSecondaryLargeRecipe:()=>uBe,foregroundOnSecondaryRecipe:()=>aBe,foregroundOnSecondaryRest:()=>oBe,foregroundOnSecondaryRestLarge:()=>dBe,foregroundOnSuccessActive:()=>VVe,foregroundOnSuccessActiveLarge:()=>KVe,foregroundOnSuccessFocus:()=>HVe,foregroundOnSuccessFocusLarge:()=>qVe,foregroundOnSuccessHover:()=>BVe,foregroundOnSuccessHoverLarge:()=>GVe,foregroundOnSuccessLargeRecipe:()=>UVe,foregroundOnSuccessRecipe:()=>RVe,foregroundOnSuccessRest:()=>zVe,foregroundOnSuccessRestLarge:()=>WVe,foregroundOnTertiaryActive:()=>LBe,foregroundOnTertiaryActiveLarge:()=>HBe,foregroundOnTertiaryFocus:()=>RBe,foregroundOnTertiaryFocusLarge:()=>UBe,foregroundOnTertiaryHover:()=>IBe,foregroundOnTertiaryHoverLarge:()=>VBe,foregroundOnTertiaryLargeRecipe:()=>zBe,foregroundOnTertiaryRecipe:()=>PBe,foregroundOnTertiaryRest:()=>FBe,foregroundOnTertiaryRestLarge:()=>BBe,foregroundOnWarningActive:()=>gHe,foregroundOnWarningActiveLarge:()=>xHe,foregroundOnWarningFocus:()=>_He,foregroundOnWarningFocusLarge:()=>SHe,foregroundOnWarningHover:()=>hHe,foregroundOnWarningHoverLarge:()=>bHe,foregroundOnWarningLargeRecipe:()=>vHe,foregroundOnWarningRecipe:()=>pHe,foregroundOnWarningRest:()=>mHe,foregroundOnWarningRestLarge:()=>yHe,infoColor:()=>c9,neutralFillActive:()=>Xc,neutralFillActiveDelta:()=>Gs,neutralFillFocus:()=>Zc,neutralFillFocusDelta:()=>Ks,neutralFillHover:()=>Yc,neutralFillHoverDelta:()=>Ws,neutralFillInputActive:()=>tl,neutralFillInputActiveDelta:()=>Ys,neutralFillInputFocus:()=>nl,neutralFillInputFocusDelta:()=>Xs,neutralFillInputHover:()=>el,neutralFillInputHoverDelta:()=>Js,neutralFillInputRest:()=>$c,neutralFillInputRestDelta:()=>qs,neutralFillLayerRest:()=>ml,neutralFillLayerRestDelta:()=>ac,neutralFillRest:()=>Jc,neutralFillRestDelta:()=>Us,neutralFillStealthActive:()=>ol,neutralFillStealthActiveDelta:()=>$s,neutralFillStealthFocus:()=>sl,neutralFillStealthFocusDelta:()=>ec,neutralFillStealthHover:()=>al,neutralFillStealthHoverDelta:()=>Qs,neutralFillStealthRest:()=>il,neutralFillStealthRestDelta:()=>Zs,neutralFillStrongActive:()=>dl,neutralFillStrongActiveDelta:()=>rc,neutralFillStrongFocus:()=>fl,neutralFillStrongFocusDelta:()=>ic,neutralFillStrongHover:()=>ul,neutralFillStrongHoverDelta:()=>nc,neutralFillStrongRest:()=>ll,neutralFillStrongRestDelta:()=>tc,neutralForegroundHint:()=>vl,neutralForegroundRest:()=>H,neutralLayer1:()=>_c,neutralLayer2:()=>vc,neutralLayer3:()=>bc,neutralLayer4:()=>Sc,neutralLayerCardContainer:()=>hc,neutralLayerFloating:()=>gc,neutralPalette:()=>fc,neutralStrokeActive:()=>Sl,neutralStrokeActiveDelta:()=>cc,neutralStrokeDividerRest:()=>wl,neutralStrokeDividerRestDelta:()=>uc,neutralStrokeFocus:()=>Cl,neutralStrokeFocusDelta:()=>lc,neutralStrokeHover:()=>xl,neutralStrokeHoverDelta:()=>sc,neutralStrokeRest:()=>bl,neutralStrokeRestDelta:()=>oc,secondaryColor:()=>y9,secondaryFillActive:()=>rBe,secondaryFillActiveDelta:()=>Yze,secondaryFillFocus:()=>iBe,secondaryFillFocusDelta:()=>Xze,secondaryFillHover:()=>nBe,secondaryFillHoverDelta:()=>Jze,secondaryFillRecipe:()=>eBe,secondaryFillRest:()=>tBe,secondaryFillRestDelta:()=>qze,secondaryForegroundActive:()=>vBe,secondaryForegroundActiveDelta:()=>Qze,secondaryForegroundFocus:()=>yBe,secondaryForegroundFocusDelta:()=>$ze,secondaryForegroundHover:()=>_Be,secondaryForegroundHoverDelta:()=>b9,secondaryForegroundRecipe:()=>hBe,secondaryForegroundRest:()=>gBe,secondaryForegroundRestDelta:()=>Zze,secondaryPalette:()=>Kze,sellColor:()=>a9,seriousNotifyColor:()=>d9,strokeWidth:()=>V,successColor:()=>X7,successFillActive:()=>IVe,successFillActiveDelta:()=>DVe,successFillFocus:()=>LVe,successFillFocusDelta:()=>OVe,successFillHover:()=>FVe,successFillHoverDelta:()=>EVe,successFillRecipe:()=>NVe,successFillRest:()=>PVe,successFillRestDelta:()=>TVe,successForegroundActive:()=>ZVe,successForegroundActiveDelta:()=>jVe,successForegroundFocus:()=>QVe,successForegroundFocusDelta:()=>MVe,successForegroundHover:()=>XVe,successForegroundHoverDelta:()=>AVe,successForegroundRecipe:()=>JVe,successForegroundRest:()=>YVe,successForegroundRestDelta:()=>kVe,successPalette:()=>wVe,tertiaryColor:()=>C9,tertiaryFillActive:()=>MBe,tertiaryFillActiveDelta:()=>CBe,tertiaryFillFocus:()=>NBe,tertiaryFillFocusDelta:()=>wBe,tertiaryFillHover:()=>jBe,tertiaryFillHoverDelta:()=>SBe,tertiaryFillRecipe:()=>kBe,tertiaryFillRest:()=>ABe,tertiaryFillRestDelta:()=>xBe,tertiaryForegroundActive:()=>qBe,tertiaryForegroundActiveDelta:()=>DBe,tertiaryForegroundFocus:()=>JBe,tertiaryForegroundFocusDelta:()=>OBe,tertiaryForegroundHover:()=>KBe,tertiaryForegroundHoverDelta:()=>EBe,tertiaryForegroundRecipe:()=>WBe,tertiaryForegroundRest:()=>GBe,tertiaryForegroundRestDelta:()=>TBe,tertiaryPalette:()=>bBe,typeRampBaseFontSize:()=>_s,typeRampBaseLineHeight:()=>vs,typeRampMinus1FontSize:()=>ys,typeRampMinus1LineHeight:()=>bs,typeRampMinus2FontSize:()=>xs,typeRampMinus2LineHeight:()=>Ss,typeRampPlus1FontSize:()=>Cs,typeRampPlus1LineHeight:()=>ws,typeRampPlus2FontSize:()=>Ts,typeRampPlus2LineHeight:()=>Es,typeRampPlus3FontSize:()=>Ds,typeRampPlus3LineHeight:()=>Os,typeRampPlus4FontSize:()=>ks,typeRampPlus4LineHeight:()=>As,typeRampPlus5FontSize:()=>js,typeRampPlus5LineHeight:()=>Ms,typeRampPlus6FontSize:()=>Ns,typeRampPlus6LineHeight:()=>Ps,warningColor:()=>$7,warningFillActive:()=>dHe,warningFillActiveDelta:()=>nHe,warningFillFocus:()=>fHe,warningFillFocusDelta:()=>rHe,warningFillHover:()=>uHe,warningFillHoverDelta:()=>tHe,warningFillRecipe:()=>cHe,warningFillRest:()=>lHe,warningFillRestDelta:()=>eHe,warningForegroundActive:()=>EHe,warningForegroundActiveDelta:()=>oHe,warningForegroundFocus:()=>DHe,warningForegroundFocusDelta:()=>sHe,warningForegroundHover:()=>THe,warningForegroundHoverDelta:()=>aHe,warningForegroundRecipe:()=>CHe,warningForegroundRest:()=>wHe,warningForegroundRestDelta:()=>iHe,warningPalette:()=>$Ve});let T9=bT(U7.primary),E9=bT(U7.neutral),D9=bT(U7.green),O9=bT(U7.tertiary),k9=bT(U7.error),A9=bT(U7.success),j9=bT(U7.warning),M9=cs.DarkMode,OHe=Fn.ltr,N9=`"Segoe UI", Arial, Helvetica, sans-serif`,P9=`14px`,F9=`20px`,kHe={design_tokens:{color:{accent:{$value:T9.source.toColorString(),$type:`color`},neutral:{$value:E9.source.toColorString(),$type:`color`},secondary:{$value:D9.source.toColorString(),$type:`color`},tertiary:{$value:O9.source.toColorString(),$type:`color`},error:{$value:k9.source.toColorString(),$type:`color`},success:{$value:A9.source.toColorString(),$type:`color`},warning:{$value:j9.source.toColorString(),$type:`color`}},fontFamily:{bodyFont:{$value:N9,$type:`fontFamily`}},typography:{baseFontSize:{$value:P9,$type:`dimension`},baseLineHeight:{$value:F9,$type:`dimension`}},mode:{luminance:{$value:M9,$type:`number`}},style:{density:{$value:0,$type:`number`},baseHeightMultiplier:{$value:10,$type:`number`},borderRadius:{$value:4,$type:`number`},strokeWidth:{$value:1,$type:`number`}},space:{designUnit:{$value:4,$type:`number`}}}};var I9=/* @__PURE__ */ c({accentFillActiveDeltaValue:()=>-5,accentFillFocusDeltaValue:()=>0,accentFillHoverDeltaValue:()=>4,accentFillRestDeltaValue:()=>0,accentForegroundActiveDeltaValue:()=>-4,accentForegroundFocusDeltaValue:()=>0,accentForegroundHoverDeltaValue:()=>6,accentForegroundRestDeltaValue:()=>0,accentPaletteValue:()=>T9,baseHeightMultiplierValue:()=>10,baseLayerLuminanceValue:()=>M9,bodyFontValue:()=>N9,controlCornerRadiusValue:()=>4,densityValue:()=>0,designTokens:()=>kHe,designUnitValue:()=>4,directionValue:()=>OHe,disabledOpacityValue:()=>.3,errorPaletteValue:()=>k9,focusStrokeWidthValue:()=>2,neutralFillActiveDeltaValue:()=>5,neutralFillFocusDeltaValue:()=>0,neutralFillHoverDeltaValue:()=>10,neutralFillInputActiveDeltaValue:()=>0,neutralFillInputFocusDeltaValue:()=>10,neutralFillInputHoverDeltaValue:()=>5,neutralFillInputRestDeltaValue:()=>0,neutralFillLayerRestDeltaValue:()=>3,neutralFillRestDeltaValue:()=>7,neutralFillStealthActiveDeltaValue:()=>3,neutralFillStealthFocusDeltaValue:()=>0,neutralFillStealthHoverDeltaValue:()=>5,neutralFillStealthRestDeltaValue:()=>0,neutralFillStrongActiveDeltaValue:()=>-5,neutralFillStrongFocusDeltaValue:()=>0,neutralFillStrongHoverDeltaValue:()=>8,neutralFillStrongRestDeltaValue:()=>0,neutralPaletteValue:()=>E9,neutralStrokeActiveDeltaValue:()=>16,neutralStrokeDividerRestDeltaValue:()=>8,neutralStrokeFocusDeltaValue:()=>25,neutralStrokeHoverDeltaValue:()=>40,neutralStrokeRestDeltaValue:()=>25,prefix:()=>`rapid`,secondaryPaletteValue:()=>D9,strokeWidthValue:()=>1,successPaletteValue:()=>A9,tertiaryPaletteValue:()=>O9,typeRampBaseFontSizeValue:()=>P9,typeRampBaseLineHeightValue:()=>F9,typeRampMinus1FontSizeValue:()=>`13px`,typeRampMinus1LineHeightValue:()=>`19px`,typeRampMinus2FontSizeValue:()=>`12px`,typeRampMinus2LineHeightValue:()=>`18px`,typeRampPlus1FontSizeValue:()=>`15px`,typeRampPlus1LineHeightValue:()=>`21px`,typeRampPlus2FontSizeValue:()=>`16px`,typeRampPlus2LineHeightValue:()=>`22px`,typeRampPlus3FontSizeValue:()=>`17px`,typeRampPlus3LineHeightValue:()=>`23px`,typeRampPlus4FontSizeValue:()=>`18px`,typeRampPlus4LineHeightValue:()=>`24px`,typeRampPlus5FontSizeValue:()=>`19px`,typeRampPlus5LineHeightValue:()=>`25px`,typeRampPlus6FontSizeValue:()=>`20px`,typeRampPlus6LineHeightValue:()=>`26px`,warningPaletteValue:()=>j9}),L9=class extends K{constructor(){super(),this.luminancePersistence=new hT(this),_T(w9,I9,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],L9.prototype,`persistLuminance`,void 0);let AHe=L9.compose({baseName:`design-system-provider`,template:T`<slot></slot>`}),R9=O` ${P1} :host{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}dialog{position: var(--dialog-position, fixed);top: 0;bottom: 0;border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest));text-align: left;line-height: normal;box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);background-color: var(--dialog-background, var(--neutral-layer-1))}.top{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-rest);margin-bottom: calc(var(--design-unit) * 2px);font-weight: 500}.bottom{display: flex;flex-wrap: wrap;justify-content: flex-end;color: var(--neutral-foreground-rest);gap: calc(var(--design-unit) * 2px)}:host slot:first-of-type{color: ${H}}::slotted(rapid-button){margin-top: calc(var(--design-unit) * 4px - 1px)}slot[name='top']::slotted(*){margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-hint);font-weight: 700}.content-wrapper{min-width: var(--dialog-min-width);min-height: var(--dialog-min-height);height: fit-content;width: fit-content;max-width: var(--dialog-max-width);max-height: var(--dialog-max-height);display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.close-icon:hover svg{background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}.close-icon svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%)}.close-icon:hover svg g path{fill: var(--neutral-foreground-rest)}.close-icon:active svg{background-color: var(--neutral-layer-4)}.close-icon:active svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%)}.header-controls{rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}`,jHe=X1,MHe=I1,NHe=Y1,PHe=class extends Q1{}.compose(Object.assign({baseName:`dialog`,shadowOptions:NHe,styles:R9,template:MHe},jHe)),FHe=class extends t0{}.compose(Object.assign({baseName:`disclosure`,template:(e,t)=>$1(e,t),styles:(e,t)=>O` ${e0(e,t)} :host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}:host([appearance='accent']) .invoker{padding: calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px)}#disclosure-content{padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);text-align: center}`,shadowOptions:Y1},n0)),IHe=class extends a0{}.compose(Object.assign({baseName:`divider`,template:(e,t)=>r0(e,t),styles:(e,t)=>O` ${i0(e,t)}`,shadowOptions:void 0},o0)),LHe=class extends u0{}.compose({baseName:`dropdown-menu`,styles:(e,t)=>O` ${s0(`rapid`,e,t)} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);gap: 0;margin: calc(var(--design-unit) * 1px) 0}rapid-menu{margin: 0 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * -2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:l0}),RHe=O` ${d0}`,zHe=class extends _0{}.compose({baseName:`environment-indicator`,styles:RHe,template:f0}),{defaultConfig:BHe,shadowOptions:VHe,styles:HHe,template:UHe}=V7(T0),WHe=()=>T0(),GHe=N0,KHe=F0.compose({baseName:`file-reader`,styles:GHe,template:P0}),qHe=O` ${I0} ::-webkit-scrollbar{width: calc(var(--design-unit) * 3px)}::-webkit-scrollbar-track{background: rgb(31 33 38)}::-webkit-scrollbar-thumb{width: 8px;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 3px) solid var(--neutral-layer-4)}:host::part(select-file-button), :host::part(upload-file-button){margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px)}`,JHe=T` ${L0(`rapid`)} `,YHe=z0,XHe=class extends R0{}.compose(Object.assign({baseName:`file-upload`,shadowOptions:void 0,styles:qHe,template:JHe},YHe)),ZHe=(e,t)=>O` ${B0} .filter-wrapper{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.close-icon{border: calc(var(--stroke-width) * 1px) solid transparent}.close-icon:hover{border-color: var(--error-color);background: color-mix(in srgb, var(--error-color), transparent 75%)}.close-icon:hover svg path{fill: var(--error-color)}rapid-select{margin-bottom: calc(var(--design-unit) * 2px)}.flex-row rapid-text-field, .flex-row rapid-select{flex: 1}`,QHe=T` ${U0(`rapid`)} `,$He=class extends G0{}.compose({baseName:`filter`,template:QHe,styles:ZHe}),eUe=(e,t)=>O` ${K0(e,t)} .toggle, .toggle-collapsed{background: var(--neutral-layer-4);color: var(--neutral-foreground-hint)}.toggle{border-top: calc(var(--stroke-width) * 2px) solid}.toggle:hover, .toggle-collapsed:hover{color: var(--accent-foreground-rest)}.filter-bar{background: var(--neutral-layer-3)}`,tUe=T` ${q0(`rapid`)} `,nUe=class extends J0{}.compose({baseName:`filter-bar`,template:tUe,styles:eUe}),{defaultConfig:rUe,shadowOptions:iUe,styles:aUe,template:oUe}=V7(Z0),sUe=()=>Z0(),cUe=class extends e2{}.compose(Object.assign({baseName:`flipper`,template:(e,t)=>Q0(e,t),styles:(e,t)=>O` ${$0(e,t)} :host{color: var(--neutral-foreground-rest)}:host(:hover){color: var(--neutral-foreground-rest)}:host::before{background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);color: var(--neutral-foreground-rest)}:host(:hover)::before{background: var(--accent-fill-rest);color: var(--neutral-foreground-rest)}`,shadowOptions:void 0},t2)),lUe=O` ${n2} div.flyout{background-color: var(--neutral-layer-1);border-color: var(--neutral-stroke-rest);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}div.background{padding: calc(var(--design-unit) * 4px) 0}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}:host([position='left']) div.flyout{border-right-style: solid;border-right-width: calc(var(--stroke-width) * 1px)}:host([position='right']) div.flyout{border-left-style: solid;border-left-width: calc(var(--stroke-width) * 1px)}div.exit{cursor: pointer;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);display: flex;justify-content: center;align-items: center}div.content, div.footer{padding: 0 0 calc(var(--design-unit) * 2px)}div.exit:hover{background-color: var(--neutral-fill-hover);border-radius: calc(var(--stroke-width) * 3px)}`,uUe=T` ${r2(`rapid`)} `,dUe=a2,fUe=class extends i2{}.compose(Object.assign({baseName:`flyout`,shadowOptions:void 0,styles:lUe,template:uUe},dUe)),{defaultConfig:pUe,shadowOptions:mUe,styles:hUe,template:gUe}=V7(l2),_Ue=()=>l2(),{defaultConfig:vUe,shadowOptions:yUe,styles:bUe,template:xUe}=V7(d2),SUe=()=>d2(),CUe=(e,t)=>O` ${p2(e,t)}`,wUe=(e,t)=>f2(e,t);var TUe=class extends m2{};let EUe={nextFlipper:T`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:T`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`},DUe=TUe.compose(Object.assign({baseName:`horizontal-scroll`,template:wUe,styles:CUe,shadowOptions:h2},EUe)),OUe=(e,t)=>O` ${g2(e,t)}`,kUe=T` ${_2(`rapid`)} `;var AUe=class extends x2{};let jUe=y2,MUe=v2,NUe=AUe.compose(Object.assign({baseName:`icon`,template:kUe,styles:OUe,shadowOptions:MUe},jUe)),PUe=class extends w2{}.compose(Object.assign({baseName:`listbox`,template:(e,t)=>S2(e,t),styles:(e,t)=>O` ${C2(e,t)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:void 0},T2)),FUe=class extends O2{}.compose(Object.assign({baseName:`option`,template:(e,t)=>E2(e,t),styles:(e,t)=>O` ${D2(e,t)} :host{border-radius: 0;padding: 0 calc(var(--design-unit) * 4px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host(.selected), :host(:not([disabled])[aria-selected='true']:active), :host(:not([disabled])[aria-selected='true']:hover){background: var(--neutral-layer-2);color: var(--accent-fill-rest);font-weight: 500}`,shadowOptions:void 0},k2)),IUe=class extends M2{}.compose(Object.assign({baseName:`menu`,template:(e,t)=>A2(e,t),styles:(e,t)=>O` ${j2(e,t)} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${al}, transparent 15%);padding: 0}`,shadowOptions:void 0},N2)),LUe=class extends I2{}.compose(Object.assign({baseName:`menu-item`,template:(e,t)=>P2(e,t),styles:(e,t)=>O` ${F2(e,t)} :host{margin: 0;--control-corner-radius: 0;background: var(--neutral-fill-stealth-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:hover){background: color-mix(in srgb, ${al}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${al}, transparent 15%)}:host(:focus){background: var(--neutral-fill-stealth-hover)}:host(.indent-0){border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}/* UX team wants border: solid 1px #2E3339;background: #2E3339 */ /* tokens being used by fast background: ${al} color: ${H} */`,shadowOptions:void 0},L2)),RUe=O` ${R9}`,zUe=B2,BUe=R2,VUe=z2,HUe=class extends V2{}.compose(Object.assign({baseName:`modal`,shadowOptions:VUe,styles:RUe,template:BUe},zUe)),UUe=O` ${Sw} .root{min-width: 0}.control{height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-height: 0;outline: none;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-family: var(--body-font);box-sizing: border-box}:host(:focus-within:not([disabled])) .control{outline: none;border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}.control:hover:not(:focus):not([disabled]){outline: none;border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}#display-field{min-height: unset;padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px);font-family: var(--body-font), sans-serif;font-size: var(--type-ramp-base-font-size);background-color: transparent}#display-field:focus{outline: none;background: unset}#display-field:hover:not(:focus):not([disabled]){outline: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);left: calc( 100% - ((var(--base-height-multiplier) * (var(--design-unit) - 1)) + (var(--design-unit) - 2)) * 1px );background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}#arrow-icon{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);fill: var(--neutral-foreground-rest)}.label{color: var(--neutral-foreground-hint)}.options{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);overflow-x: hidden}rapid-checkbox{border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);padding: calc((var(--design-unit) + 1) * 1px) 0 calc((var(--design-unit) + 1) * 1px) calc((var(--design-unit) + 1) * 1px);margin: 0}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}rapid-checkbox::part(label){overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap}rapid-checkbox[disabled]{cursor: not-allowed}`,WUe=T` ${Ew(`rapid`)} `;var GUe=class extends Ow{};let KUe=Dw,qUe=GUe.compose(Object.assign({baseName:`multiselect`,template:WUe,styles:UUe,shadowOptions:void 0},KUe)),JUe=class extends x7{}.compose({baseName:`notification-listener`,template:b7,shadowOptions:{mode:`open`,delegatesFocus:!0}}),YUe=(e,t)=>O` :host{flex: 1 1 auto;box-sizing: border-box}:host([disabled]){opacity: var(--disabled-opacity);cursor: not-allowed}:host .control{height: 100%;width: 100%;border: none;background-color: transparent;padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);font-family: var(--body-font)}:host .root{display: flex;box-sizing: border-box;position: relative;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:focus-within:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{display: block;color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0;font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.label-hidden{margin: 0}.controls{position: absolute;right: 3px;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center;flex-direction: column;cursor: pointer}.step-down, .step-up{width: 1em;height: 1em;margin: -2px}.step-up-glyph, .step-down-glyph{fill: var(--neutral-foreground-hint)}.control:focus-visible{outline: none}:host .control-field .control{width: 100%}${M0}`;var XUe=class extends i4{};let ZUe=o4,QUe=H2,$Ue=a4,eWe=XUe.compose(Object.assign({baseName:`number-field`,template:QUe,styles:YUe,shadowOptions:$Ue},ZUe)),tWe=class extends l4{}.compose({baseName:`optgroup`,template:(e,t)=>c4(e,t),styles:(e,t)=>O` ${s4(e,t)}`}),nWe=class extends g4{}.compose(Object.assign({baseName:`system-health-overlay`,template:_4,styles:v4,shadowOptions:void 0},y4)),rWe=O` ${b4} :host{--pill-fill: ${Jc};--pill-fill-hover: ${Yc};--pill-foreground: ${H}}`,iWe=x4,aWe=class extends C4{}.compose(Object.assign({baseName:`pill`,template:iWe,styles:rWe,shadowOptions:void 0},S4)),oWe=class extends f4{}.compose(Object.assign({baseName:`progress`,template:(e,t)=>u4(e,t),styles:(e,t)=>O` ${d4(e,t)}`,shadowOptions:void 0},p4)),sWe=class extends C3{}.compose(Object.assign({baseName:`progress-ring`,template:(e,t)=>x3(e,t),styles:(e,t)=>O` ${S3(e,t)}`,shadowOptions:void 0},w3)),cWe=class extends D3{}.compose(Object.assign({baseName:`radio`,template:(e,t)=>T3(e,t),styles:(e,t)=>O` ${E3(e,t)} :host{margin: 0}:host .control{background: transparent}:host([aria-checked='true']) .control{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host .label{padding-inline-start: calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:hover{background: transparent}:host([aria-checked='true']:not([disabled])) .control:hover{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover)}.checked-indicator, :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},O3)),lWe=class extends j3{}.compose(Object.assign({baseName:`radio-group`,template:(e,t)=>k3(e,t),styles:(e,t)=>O` ${A3(e,t)}`,shadowOptions:void 0},M3)),uWe=O` ${N3} :host{font-family: var(--body-font)}`,dWe=T` ${P3(`rapid`)} `,fWe=class extends F3{}.compose(Object.assign({baseName:`scheduler`,template:dWe,styles:uWe,shadowOptions:void 0},I3)),pWe=O` ${G3} :host{font-family: var(--body-font)}`,mWe=T` ${n6(`rapid`)} `,hWe=class extends r6{}.compose(Object.assign({baseName:`scheduler-cron-builder`,template:mWe,styles:pWe,shadowOptions:void 0},i6)),gWe=O` ${a6} :host{font-family: var(--body-font)}`,_We=T` ${o6(`rapid`)} `,vWe=class extends s6{}.compose(Object.assign({baseName:`scheduler-timezone`,template:_We,styles:gWe,shadowOptions:void 0},c6)),yWe=O` ${l6}`,bWe=T` ${u6(`rapid`)} `,xWe=class extends d6{}.compose(Object.assign({baseName:`search-bar`,template:bWe,styles:yWe,shadowOptions:void 0},f6)),SWe=class extends h6{}.compose(Object.assign({baseName:`search-bar-combobox`,template:(e,t)=>m6(e,t),styles:(e,t)=>O` ${p6(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--neutral-stroke-rest));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}`,shadowOptions:g6},_6)),CWe=class extends w6{}.compose(Object.assign({baseName:`section-navigator`,template:y6,styles:(e,t)=>v6,shadowOptions:T6},E6)),wWe=class extends k6{}.compose(Object.assign({baseName:`segmented-control`,template:(e,t)=>D6(e,t),styles:(e,t)=>O` ${O6(e,t)} :host{font-family: var(--body-font);margin: 0}:host ::slotted(*){transition: color 0.4s ease 0s}:host ::slotted(label){color: var(--neutral-foreground-rest)}:host ::slotted(rapid-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}:host ::slotted(rapid-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}:host ::slotted(rapid-segmented-item:only-of-type){border-radius: calc(var(--control-corner-radius) * 1px);border-left-width: 1px;border-right-width: 1px}:host ::slotted(*[aria-checked='true']){background: var(--neutral-fill-rest);box-shadow: none;color: var(--neutral-foreground-rest)}:host([appearance='primary']) ::slotted(*[aria-checked='true']){background: var(--accent-fill-rest);border-color: transparent;box-shadow: none;color: var(--foreground-on-accent-rest)}`,shadowOptions:void 0},{})),TWe=class extends D3{}.compose(Object.assign({baseName:`segmented-item`,template:(e,t)=>A6(e,t),styles:(e,t)=>O` ${j6(e,t)} :host{color: var(--neutral-fill-strong-rest);font-size: var(--type-ramp-minus-2-font-size);font-weight: 500;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);box-sizing: border-box;height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin: 0}:host([aria-checked='true']){color: color-mix(in srgb, white, transparent 10%)}`,shadowOptions:void 0},{})),EWe=class extends P6{}.compose(Object.assign({baseName:`select`,template:(e,t)=>M6(e,t),styles:(e,t)=>O` ${N6(e,t)} :host{border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not(.open)){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.select-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s;min-width: unset;min-height: unset}.selected-value{display: flex;align-items: center;height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .select-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:void 0},F6)),DWe=class extends R6{}.compose(Object.assign({baseName:`skeleton`,template:(e,t)=>I6(e,t),styles:(e,t)=>O` ${L6(e,t)} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:void 0},z6)),OWe=class extends H6{}.compose(Object.assign({baseName:`slider`,template:(e,t)=>B6(e,t),styles:(e,t)=>O` ${V6(e,t)} .thumb-cursor{background: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 2px)}.thumb-cursor:hover, .thumb-cursor:focus, .thumb-cursor:active{background: var(--accent-fill-rest);border-radius: transparent}:host(:focus-visible) .thumb-cursor{box-shadow: 0 0 0 0}.thumb-cursor:hover::after, .thumb-cursor:focus::after, .thumb-cursor:active::after{content: '';height: calc(var(--thumb-size) * 2px);width: calc(var(--thumb-size) * 2px);border-radius: calc(var(--control-corner-radius) * 4px);position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: -1}.thumb-cursor:hover::after{background-color: color-mix(in srgb, ${Ec}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${Ec}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${Ec}, transparent 70%)}.track{background-color: var(--neutral-fill-rest)}:host([orientation='horizontal']) .track .track-progress{background-color: var(--neutral-stroke-rest);height: calc((var(--track-width) + 2) * 1px) !important}:host([orientation='vertical']) .track .track-progress{background-color: var(--neutral-stroke-rest);width: calc((var(--track-width) + 2) * 1px) !important}`,shadowOptions:void 0},U6)),kWe=class extends K6{}.compose(Object.assign({baseName:`slider-label`,template:(e,t)=>W6(e,t),styles:(e,t)=>O` ${G6(e,t)} .label{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-4);background-color: var(--neutral-fill-strong-hover);color: var(--neutral-layer-4);text-align: center;font-size: var(--type-ramp-minus-1-font-size, 12px)}`,shadowOptions:void 0},q6)),AWe=O` ${Z6} .snackbar{border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);background-color: var(--neutral-layer-1);padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 4px)}:host([type='error']) .snackbar::after{background-color: var(--error-color)}.content{font-family: var(--body-font);font-size: var(--type-ramp-minus-2-font-size);color: var(--neutral-foreground-rest)}.action{gap: calc(var(--design-unit) * 2px)}`,jWe=T` ${Q6(`rapid`)} `,MWe=$6,NWe=class extends e8{}.compose({baseName:`snackbar`,shadowOptions:MWe,styles:AWe,template:jWe}),PWe=class extends r8{}.compose({baseName:`stacking-icons`,template:n8,styles:(e,t)=>O` ${t8(e,t)}`}),FWe=class extends l8{}.compose({baseName:`status-pill`,template:a8,styles:i8}),IWe=O` ${L7} :host{font-family: var(--body-font)}:host([orientation='horizontal']){height: 100%}.stepper-tab-panel{border: none;height: auto}:host([orientation='horizontal']) .stepper-tab-panel{height: 100%}.stepper-tab{background-color: var(--neutral-layer-3);border: none}.stepper-panel-container{padding: calc(var(--design-unit) * 4px)}.action-buttons-container{padding: calc(var(--design-unit) * 2px);width: auto;gap: calc(var(--design-unit) * 2px)}.stepper-tab-menu{margin-bottom: calc(var(--design-unit) * 4px)}.stepper-tab-progress{padding: calc(var(--design-unit) * 4px) 0}label{padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-hint)}`,LWe=T` ${I7(`rapid`)} `,RWe=class extends R7{}.compose(Object.assign({baseName:`stepper`,template:LWe,styles:IWe,shadowOptions:void 0},z7)),zWe=(e,t)=>O` ${f8(e,t)} rapid-tree-item{--design-unit: 2.5;--neutral-fill-stealth-rest: var(--neutral-layer-3);--neutral-fill-stealth-hover: var(--fill-color);--neutral-fill-rest: var(--fill-color);--base-height-multiplier: 14.5;border-bottom: calc(var(--stroke-width) * 1px) solid var(--fill-color)}.completed-icon{color: var(--success-color)}.tree-item::part(positioning-region)::before{width: var(--tree-item-nested-width)}.stepper-icon{margin-right: calc(var(--design-unit) * 2px)}.error-icon{color: var(--error-color)}.step-number{font-size: var(--type-ramp-minus-1-font-size);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-title{font-size: var(--type-ramp-base-font-size)}.angle-icon{margin: 0 calc(var(--design-unit) * 4px)}:host([completed]) .step-number{border-color: var(--success-color);color: white;background-color: var(--success-color)}:host([completed]) .step-title{color: var(--success-color)}:host([error]) .step-number{border-color: var(--error-color);color: white;background-color: var(--error-color)}:host([error]) .step-title{color: var(--error-color)}`,BWe=T` ${d8(`rapid`)} `,VWe=class extends p8{}.compose(Object.assign({baseName:`stepper-tab`,template:BWe,styles:zWe,shadowOptions:void 0},m8)),HWe=class extends g8{}.compose(Object.assign({baseName:`stepper-tab-panel`,template:(e,t)=>h8(e,t),shadowOptions:void 0},_8)),UWe=class extends b8{}.compose(Object.assign({baseName:`switch`,template:(e,t)=>v8(e,t),styles:(e,t)=>O` ${y8(e,t)} :host{--primary-gradient-angle: -113.5deg}.switch{background: none;border-color: var(--neutral-stroke-rest)}.checked-indicator{background-color: var(--neutral-stroke-rest)}.switch:hover{border-color: var(--neutral-stroke-rest);background: none}:host([aria-checked='true']) .switch{background: none}:host([aria-checked='true']) .checked-indicator{background: var(--accent-fill-rest)}:host([aria-checked='true']:not([disabled])) .switch:hover, :host([aria-checked='true']:not([disabled])) .switch:active{background: none}:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator, :host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`})),WWe=class extends C8{}.compose(Object.assign({baseName:`tab`,template:(e,t)=>x8(e,t),styles:(e,t)=>O` ${S8(e,t)} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px);box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);margin-right: calc(var(--design-unit) * 5px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host([aria-selected='true']), :host([aria-selected='true']:hover){background-color: var(--neutral-layer-4);font-weight: 700}/* * Sustained alert, sampling the flash phase the platform animates on the document. Every * alerting surface reads that one value, so tabs and grid rows brighten and fade together * however long ago each of them started alerting. * * Mixing towards transparent and currentColor lets the tab fade back to its own resting * colours, so selected and unselected tabs each return to the right background. * * !important because a :host rule loses to any app stylesheet that colours tabs from the light * DOM, and an alert nobody can see is worse than no alert. */ :host([alert]){background-color: color-mix( in srgb, var(--tab-alert-color, var(--error-fill-rest)) calc(var(${O0}, 0) * 100%), transparent ) !important;color: color-mix( in srgb, contrast-color(var(--tab-alert-color, var(--error-fill-rest))) calc(var(${O0}, 0) * 100%), currentColor ) !important}/* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */ @media (prefers-reduced-motion: reduce){:host([alert]){background-color: var(--tab-alert-color, var(--error-fill-rest)) !important;color: contrast-color(var(--tab-alert-color, var(--error-fill-rest))) !important}}`,shadowOptions:void 0},w8)),GWe=class extends D8{}.compose(Object.assign({baseName:`tab-panel`,template:(e,t)=>T8(e,t),styles:(e,t)=>O` ${E8(e,t)} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px)) var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));border-style: solid;border-width: var(--tabs-border-width, 1px);border-color: var(--tabs-border-color, var(--neutral-stroke-rest))}`,shadowOptions:void 0},O8)),KWe=class extends j8{}.compose(Object.assign({baseName:`tabs`,template:(e,t)=>k8(e,t),styles:(e,t)=>O` ${A8(e,t)} :host{background: var(--neutral-layer-3);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:not([appearance='secondary'])){background: var(--rapid-layout-item-background, var(--neutral-layer-3));border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, 0)}:host([appearance='secondary']){background: transparent}:host .tablist{padding: 0;display: grid;width: max-content;margin-top: 0}:host .tabpanel{height: 100%;min-height: 0}:host([appearance='secondary']) .tablist{margin-bottom: 0}:host .end, :host .start{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);height: calc(100% - 1px);display: flex;align-items: center}::slotted([slot='tab']:hover){color: var(--neutral-foreground-rest);background: var(--neutral-layer-1)}::slotted([role='tab']){border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;background: var(--tab-rest-background-color, var(--neutral-layer-4));padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin-right: 2px;box-shadow: none;font-size: var(--type-ramp-minus-1-font-size);border-style: solid;border-width: var(--tab-rest-border-width, 1px);border-color: var(--tab-rest-border-color, transparent)}::slotted([role='tab'][aria-selected='true']:not([appearance='secondary'])){border-style: solid;border-width: var(--tab-active-border-width, 1px 1px 0 1px);border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));background: var(--tab-active-background-color, var(--neutral-layer-card-container))}::slotted([role='tab'][aria-selected='true']){color: var(--accent-foreground-rest);background: var(--neutral-layer-card-container)}/* stylelint-disable selector-class-pattern */ .activeIndicator{display: none}:host([appearance='secondary']) .tablist .activeIndicator{display: block;height: 1px;margin-top: unset}::slotted([role='tab'][aria-selected='true'][appearance='secondary']){background: none}::slotted([role='tab'][appearance='secondary']){margin-left: 0;box-shadow: none;background: none}:host([appearance='secondary']:hover){color: var(--neutral-foreground-rest);background: none}:host([appearance='secondary']) ::slotted([role='tabpanel']){border: 0}`,shadowOptions:void 0},M8)),qWe=class extends F8{}.compose(Object.assign({baseName:`text-area`,template:(e,t)=>N8(e,t),styles:(e,t)=>O` ${P8(e,t)} :host{display: grid;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);padding: calc(var(--design-unit) * 2px)}:host(:hover:not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}`,shadowOptions:void 0},I8)),JWe=class extends z8{}.compose(Object.assign({baseName:`text-field`,template:(e,t)=>L8(e,t),styles:(e,t)=>O` ${R8(e,t)} :host{display: block;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}:host .control-field .control{width: 100%}:host .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}:host input::placeholder{color: var(--neutral-foreground-hint);opacity: 75%}`,shadowOptions:B8},V8)),YWe=O` ${H8} .toast{background-color: ${_c};border-radius: calc(var(--control-corner-radius) * 2px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.top{align-items: flex-start}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}.content{font-size: var(--type-ramp-minus-1-font-size)}.date{margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}.content-wrapper{padding: calc(var(--design-unit) * 2px)}.toast::after{background-color: var(--accent-fill-rest);border-radius: 0;height: calc(100% - calc(var(--design-unit) * 5px));margin: calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}:host([notify='warning']) .toast::after{background-color: var(--warning-color)}:host([notify='success']) .toast::after{background-color: var(--success-color)}:host([notify='critical']) .toast::after, :host([notify='serious']) .toast::after, :host([notify='error']) .toast::after{background-color: var(--error-color)}`,XWe=G8,ZWe=W8,QWe=class extends K8{}.compose(Object.assign({baseName:`toast`,shadowOptions:ZWe,styles:YWe,template:U8},XWe)),$We=class extends Y8{}.compose(Object.assign({baseName:`toolbar`,template:(e,t)=>q8(e,t),styles:(e,t)=>O` ${J8(e,t)} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:void 0},X8)),eGe=class extends $8{}.compose(Object.assign({baseName:`tooltip`,template:(e,t)=>Z8(e,t),styles:(e,t)=>O` ${Q8(e,t)} :host{visibility: visible}.tooltip{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);text-align: center;white-space: inherit;font-weight: 400}rapid-anchored-region.bottom .tooltip{margin-top: calc(var(--design-unit) * 1px);margin-left: calc(var(--design-unit) * 2px)}rapid-anchored-region.top.right .tooltip, rapid-anchored-region.bottom.right .tooltip{margin-left: 0}`,shadowOptions:void 0},e5)),tGe=class extends r5{}.compose(Object.assign({baseName:`tree-item`,template:(e,t)=>t5(e,t),styles:(e,t)=>O` ${n5(e,t)} :host{font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest);background-color: transparent}:host(.nested) .expand-collapse-button{background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);width: calc(var(--design-unit) * 5px);height: calc(var(--design-unit) * 5px);margin-left: calc(var(--design-unit) * 2px)}:host([selected]) .positioning-region{background: var(--neutral-fill-stealth-active)}.positioning-region::before{width: calc(var(--design-unit) * 1px)}:host([selected])::after{background: var(--accent-fill-rest);background-origin: border-box;background-size: cover;background-repeat: no-repeat}:host([slot='item']) .content-region{margin-inline-start: calc(var(--design-unit) * 4px + var(--expand-collapse-button-size))}.expand-collapse-glyph{width: calc(var(--design-unit) * 3px);height: calc(var(--design-unit) * 3px)}`,shadowOptions:void 0},{expandCollapseGlyph:`
|
|
1005
|
+
Delete Rule </${t}></div></div></div>`}} `,K5=class extends Qe{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),F5(this,this.styles,`rule`),this.config.partialRuleValidationWarning&&(this.error=fRe(this.model))}variadicRule(e){return e.operator.nbInputs===`many`&&`value`in e&&Array.isArray(e.value)}get operandIterator(){if(this.model.operator?.nbInputs===`many`){if(!this.variadicRule(this.model))throw Error(`Varargs disabled for many nbInputs`);return Array(this.model.value.length).fill(!0)}return Array(this.model.operator?.nbInputs??0).fill(!0)}operandValue(e){if(this.model.operator){if(this.model.operator.nbInputs===1&&`value`in this.model)return this.model.value;if((this.model.operator.nbInputs===2||this.model.operator.nbInputs===`many`)&&`value`in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw Error(`Invalid operand lookup`)}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw Error(`Cannot add inputs for non-variadic operator, or invalid format`);let e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,G5(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){let{index:t}=e.detail;if(!this.variadicRule(this.model))throw Error(`Cannot remove inputs for non-variadic operator, or invalid format`);let n={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,n)=>n!==t)}};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();let t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(I5.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){e.stopPropagation();let{fieldId:t}=e.detail,n=this.config.fields.find(e=>e.fieldId===t)??null,r={ruleId:this.model.ruleId,newData:{field:n,value:null,operator:null}};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();let{value:t,index:n}=e.detail,r={ruleId:this.model.ruleId,newData:uRe(this.model,t,n)};this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleOperatorSelected(e){e.stopPropagation();let{operatorId:t}=e.detail;if(!t)return;let n=this.config.operators.find(e=>e.type===t)??null;if(!n)throw Error(`Unable to find operator of type ${t}`);this.dispatchEvent(new CustomEvent(I5.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:lRe(n,this.model)},bubbles:!0,composed:!0}))}};q([C],K5.prototype,`config`,void 0),q([C],K5.prototype,`styles`,void 0),q([C],K5.prototype,`model`,void 0),q([C],K5.prototype,`index`,void 0),q([D({mode:`boolean`})],K5.prototype,`error`,void 0),q([w],K5.prototype,`operandIterator`,null),K5=q([$e({name:`expression-rule`,template:mRe,styles:pRe,shadowOptions:{delegatesFocus:!0}})],K5);let q5=class extends Qe{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){if(!this.isValidConfig(t)){console.warn(`Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);return}t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=KLe(t.model,this),this.userUpdatingModel=!1):this.model===null&&this.initBaseModel()}modelChanged(e,t){if(!t||this.userUpdatingModel)return;let n=k5(t);this.dispatchChangeEvent(n)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent(`change`,{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(I5.AddGroup,this.handleAddGroup),this.addEventListener(I5.DelGroup,this.handleDeleteGroup),this.addEventListener(I5.AddRule,this.handleAddRule),this.addEventListener(I5.DelRule,this.handleDeleteRule),this.addEventListener(I5.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(I5.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config)){this.config&&console.warn(`Config detected during connectedCallback but it isn't valid`),this.config=null;return}this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(I5.AddGroup,this.handleAddGroup),this.removeEventListener(I5.DelGroup,this.handleDeleteGroup),this.removeEventListener(I5.AddRule,this.handleAddRule),this.removeEventListener(I5.DelRule,this.handleDeleteRule),this.removeEventListener(I5.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(I5.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){return!!(e&&e.combinators?.length&&e.operators?.length&&e.fields?.length)}initBaseModel(){if(!this.isValidConfig(this.config))throw Error(`Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);this.model={children:[],level:1,groupId:O5,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){let{parentGroupId:t,newGroup:n}=e.detail,r={groupId:this.getGroupId(),level:n.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=D5(this.model,t,r)}_handleAddRule(e){let{parentGroupId:t}=e.detail,n={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=D5(this.model,t,n)}_handleDeleteGroup(e){let{groupId:t}=e.detail;this.model=HLe(this.model,t)}_handleDeleteRule(e){let{ruleId:t}=e.detail;this.model=ULe(this.model,t)}_handleUpdateGroupData(e){let{groupId:t,newData:n}=e.detail;this.model=WLe(this.model,t,n)}_handleUpdateRuleData(e){let{ruleId:t,newData:n}=e.detail;this.model=GLe(this.model,t,n)}};q([C],q5.prototype,`config`,void 0),q([C],q5.prototype,`styles`,void 0),q([C],q5.prototype,`model`,void 0),q5=q([$e({name:`expression-builder`,template:z5,styles:L5})],q5);let J5=class extends q5{};J5=q([$e({name:`foundation-expression-builder`,styles:L5,template:z5})],J5);let Y5=[`int`,`short`,`long`],X5=[`double`,`bigdecimal`],Z5=[...Y5,...X5],Q5=[`date`,`date-time`],$5=[`string`,`enum`],e7=[`boolean`],t7=e=>e.operator?.valueType?.type??e.field.type;function n7(e){switch(t7(e)){case`int`:case`long`:case`double`:case`bigdecimal`:case`date`:case`date-time`:case`short`:return`NUMBER`;case`string`:case`enum`:return`STRING`;case`boolean`:return`BOOLEAN`}}function r7(e,t,n){return`value`in e?{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:n,VALUE:e.value}}:null}function i7(e,t,n){return{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:n}}function a7(e,t,n=[]){return`value`in e?{TYPE:`METHOD_EXPRESSION`,PARAMETERS:[{TYPE:`FIELD`,NAME:e.field.fieldId},...n],METHOD:t}:null}function o7(e){let t=t=>{let n=t7(e);if($5.includes(n))return t;if(Z5.includes(n))return t.toString();if(e7.includes(n))return t;if(Array.isArray(t))throw Error(`Not implemented TernararyOperator or VariadicOperator args in rule value transformer`);if(Q5.includes(n))return new Date(t).getTime().toString();throw Error(`Unhandled transformRuleValue case`)},n=!(!(`value`in e)||e.value===void 0||e.value===null);return Object.assign(Object.assign({},e),n?{value:t(e.value)}:{})}function s7(e,t){return{TYPE:`PREDICATE_EXPRESSION`,OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>`children`in e?s7(e,t):t(e)).filter(Boolean)}}function c7(e,t){let n=t=>{let n=t7(e);if($5.includes(n))return t;if(Y5.includes(n))return parseInt(t);if(X5.includes(n))return parseFloat(t);if(e7.includes(n))return t;if(Q5.includes(n)){let e=new Date(parseInt(t));return n===`date`?A5(e):j5(e)}throw Error(`Unhandled rebuildRuleValue case`)},r=e.operator.nbInputs;if(r===`many`||r===2)throw Error(`Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue`);return Object.assign(Object.assign({},e),r===0?{}:{value:n(t.VALUE)})}let l7={template:z5,styles:L5};var u7;(function(e){e.methodCall={CONTAINS_IGNORE_CASE:`CONTAINS_IGNORE_CASE`,CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,TRIM:`TRIM`,LONG_TO_DATE:`LONG_TO_DATE`,LONG_TO_DATE_TIME:`LONG_TO_DATE_TIME`,DATE_TIME_IS_IN_RANGE:`DATE_TIME_IS_IN_RANGE`},e.logicalOperations={AND:`AND`,OR:`OR`},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:`GREATER_THAN`,LESS_THAN:`LESS_THAN`,GREATER_THAN_OR_EQUAL:`GREATER_THAN_OR_EQUAL`,LESS_THAN_OR_EQUAL:`LESS_THAN_OR_EQUAL`,EQUALS:`EQUALS`,NOT_EQUALS:`NOT_EQUALS`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,BITWISE_AND:`BITWISE_AND`,BITWISE_OR:`BITWISE_OR`,ASSIGNMENT:`ASSIGNMENT`,IS_CURRENT:`IS_CURRENT`,IS_PREVIOUS:`IS_PREVIOUS`})})(u7||(u7={}));let d7=[{type:u7.logicalOperations.AND,maxRules:`many`},{type:u7.logicalOperations.OR,maxRules:`many`}],$={EQUALS:u7.operations.EQUALS,NOT_EQUALS:u7.operations.NOT_EQUALS,IS_NULL:`IS_NULL`,NOT_NULL:`NOT_NULL`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,CONTAINS:`CONTAINS`,CONTAINS_WORDS_STARTING_WITH:`CONTAINS_WORDS_STARTING_WITH`,CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:`CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`,GREATER_THAN:u7.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:u7.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:u7.operations.LESS_THAN,LESS_THAN_OR_EQUAL:u7.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:`IS_BEFORE`,IS_AFTER:`IS_AFTER`,ON_OR_BEFORE:`ON_OR_BEFORE`,ON_OR_AFTER:`ON_OR_AFTER`,IS_CURRENT:u7.operations.IS_CURRENT,IS_PREVIOUS:u7.operations.IS_PREVIOUS},f7=e=>({type:`enum`,input:`select`,values:e}),hRe=f7({HOUR:{label:`Hour`,tooltip:`Beginning of the hour immediately preceding the current one to the current hour.`},DAY:{label:`Day`,tooltip:`Midnight on the day before today to midnight of the current day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the previous week to midnight on the Monday of the current week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the previous month to midnight on the 1st of the current month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year.`}}),gRe=f7({HOUR:{label:`Hour`,tooltip:`Beginning of the current hour to beginning of the next hour.`},DAY:{label:`Day`,tooltip:`Midnight on the current day day to midnight of the next day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the current week to midnight on the Monday of the next week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the current month to midnight on the 1st of the next month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year.`}}),p7=[{type:$.EQUALS,label:`Equals`,nbInputs:1,applyTo:[...$5,...e7,...Z5,...Q5],tooltip:`Check the equality of the field compared to a set value`},{type:$.NOT_EQUALS,label:`Not equals`,nbInputs:1,applyTo:[...$5,...e7,...Z5,...Q5],tooltip:`Check that the field is different from a set value`},{type:$.IS_NULL,label:`Is null`,nbInputs:0,applyTo:[`enum`,...e7,...Z5,...Q5],tooltip:`Check if the field value is null`},{type:$.NOT_NULL,label:`Not null`,nbInputs:0,applyTo:[`enum`,...e7,...Z5,...Q5],tooltip:`Check if the field value is not null`},{type:$.IS_NULL_OR_BLANK,label:`Is null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is null or an empty string`},{type:$.NOT_NULL_OR_BLANK,label:`Not null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is not null and not an empty string`},{type:$.CONTAINS,label:`Contains`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains the specified text (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_WITH,label:`Contains words starting with`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains words that start with the specified text, split by whitespace (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:`Contains words starting with (split)`,nbInputs:2,applyTo:[`string`],tooltip:`Check if field contains words starting with text, split by a delimiter (case insensitive)`},{type:$.GREATER_THAN,label:`Greater than`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is greater than a specified number`},{type:$.GREATER_THAN_OR_EQUAL,label:`Greater than or equal to`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is greater than or equal to a specified number`},{type:$.LESS_THAN,label:`Less than`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is less than a specified number`},{type:$.LESS_THAN_OR_EQUAL,label:`Less than or equal to`,nbInputs:1,applyTo:[...Z5],tooltip:`Check if the field value is less than or equal to a specified number`},{type:$.IS_BEFORE,label:`Is before`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is before a specified date/time`},{type:$.IS_AFTER,label:`Is after`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is after a specified date/time`},{type:$.ON_OR_BEFORE,label:`On or before`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is on or before a specified date/time`},{type:$.ON_OR_AFTER,label:`On or after`,nbInputs:1,applyTo:[...Q5],tooltip:`Check if the field is on or after a specified date/time`},{type:$.IS_CURRENT,label:`Is current`,nbInputs:1,applyTo:[...Q5],tooltip:`Check whether the current date/time matches the current hour/day/work day/week/month/year.`,valueType:gRe,optgroup:`Relative Period`},{type:$.IS_PREVIOUS,label:`Is previous`,nbInputs:1,applyTo:[...Q5],tooltip:`Check whether the current date/time matches the previous hour/day/work day/week/month/year`,valueType:hRe,optgroup:`Relative Period`}];function _Re(e){switch(e){case`IS_BEFORE`:return`LESS_THAN`;case`IS_AFTER`:return`GREATER_THAN`;case`ON_OR_BEFORE`:return`LESS_THAN_OR_EQUAL`;case`ON_OR_AFTER`:return`GREATER_THAN_OR_EQUAL`;default:return e}}function vRe(e,t){switch(t){case $.IS_NULL_OR_BLANK:return a7(e,u7.methodCall.IS_NULL_OR_BLANK,[]);case $.NOT_NULL_OR_BLANK:return a7(e,u7.methodCall.NOT_NULL_OR_BLANK,[]);case $.CONTAINS:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS`);return a7(e,u7.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_WITH:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS_WORDS_STARTING_WITH`);return a7(e,u7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!(`value`in e)||!Array.isArray(e.value)||e.value.length!==2)throw Error(`Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`);return a7(e,u7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:`STRING`,VALUE:e})));case $.IS_CURRENT:case $.IS_PREVIOUS:if(!(`value`in e))throw Error(`Invalid shape for operator IS_CURRENT | IS_PREVIOUS`);return a7(e,u7.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:`STRING`,VALUE:e.value},{TYPE:`STRING`,VALUE:t===$.IS_CURRENT?`CURRENT`:`PREVIOUS`}]);default:throw Error(`Unreachable default case`)}}function yRe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=o7(e),n=n7(t),r=_Re(t.operator.type);switch(r){case $.EQUALS:case $.NOT_EQUALS:case $.GREATER_THAN:case $.GREATER_THAN_OR_EQUAL:case $.LESS_THAN:case $.LESS_THAN_OR_EQUAL:return r7(t,r,n);case $.IS_NULL:return i7(t,u7.operations.EQUALS,{TYPE:`NULL`});case $.NOT_NULL:return i7(t,u7.operations.NOT_EQUALS,{TYPE:`NULL`});case $.IS_NULL_OR_BLANK:case $.NOT_NULL_OR_BLANK:case $.CONTAINS:case $.CONTAINS_WORDS_STARTING_WITH:case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case $.IS_CURRENT:case $.IS_PREVIOUS:return vRe(t,r);default:throw Error(`Unmatched case for operator name: ${r}`)}}function bRe(e,t){if(t.field.type!==`date`&&t.field.type!==`date-time`)return e;switch(e){case`LESS_THAN`:return`IS_BEFORE`;case`GREATER_THAN`:return`IS_AFTER`;case`LESS_THAN_OR_EQUAL`:return`ON_OR_BEFORE`;case`GREATER_THAN_OR_EQUAL`:return`ON_OR_AFTER`;default:return e}}function xRe(e,t){let n=(()=>{if(t.RIGHT.TYPE===`NULL`){let e=t.OPERATION===`EQUALS`?$[$.IS_NULL]:$[$.NOT_NULL];return p7.find(t=>t.type===e)}let n=bRe(t.OPERATION,e);return p7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function SRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return c7(xRe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function CRe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`IS_NULL_OR_BLANK`:return[$[$.IS_NULL_OR_BLANK],void 0];case t.METHOD===`NOT_NULL_OR_BLANK`:return[$[$.NOT_NULL_OR_BLANK],void 0];case t.METHOD===`CONTAINS_IGNORE_CASE`:return[$[$.CONTAINS],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===2:return[$[$.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===3:return[$[$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===u7.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===3&&t.PARAMETERS[2].TYPE===`STRING`&&(t.PARAMETERS[2].VALUE===`CURRENT`||t.PARAMETERS[2].VALUE===`PREVIOUS`):return[$[t.PARAMETERS[2].VALUE===`CURRENT`?$.IS_CURRENT:$.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:p7.find(e=>e.type===n),value:r}}function m7(e,t){return{combinator:d7.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return m7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return SRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return CRe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let h7=class extends q5{ruleConfigChanged(e,t){this.config=Object.assign({combinators:d7,operators:p7,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},t?.model?{model:m7(t.fields,t.model)}:{})}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){let t=s7(e,yRe);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],h7.prototype,`ruleConfig`,void 0),h7=q([$e({name:`foundation-rule-expression-builder`,styles:L5,template:z5})],h7);let g7={TRIM:`TRIM`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,CONVERT_TO_DATE:`CONVERT_TO_DATE`,CONVERT_TO_DATE_TIME:`CONVERT_TO_DATE_TIME`},_7=[{type:g7.PLUS,label:`Add (+)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE`},{type:g7.MINUS,label:`Subtract (-)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE`},{type:g7.MULTIPLY,label:`Multiply (*)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE`},{type:g7.DIVIDE,label:`Divide (/)`,applyTo:[...Z5],nbInputs:1,tooltip:`Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE`},{type:g7.CONVERT_TO_DATE,label:`Convert to date`,applyTo:[`date`],nbInputs:0,tooltip:`Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm`},{type:g7.CONVERT_TO_DATE_TIME,label:`Convert to date time`,applyTo:[`date-time`],nbInputs:0,tooltip:`Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss`}];function wRe(e){return e}function TRe(e,t){switch(t){case g7.TRIM:return a7(e,u7.methodCall.TRIM,[]);case g7.CONVERT_TO_DATE:return a7(e,u7.methodCall.LONG_TO_DATE,[]);case g7.CONVERT_TO_DATE_TIME:return a7(e,u7.methodCall.LONG_TO_DATE_TIME,[])}}function ERe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=o7(e),n=n7(t),r=wRe(t.operator.type);switch(r){case g7.TRIM:case g7.CONVERT_TO_DATE:case g7.CONVERT_TO_DATE_TIME:return TRe(t,r);case g7.PLUS:case g7.MINUS:case g7.DIVIDE:case g7.MULTIPLY:return r7(t,r,n);default:throw Error(`Unmatched case for operator name: ${r}`)}}function DRe(e,t){return t.field.type!==`date`&&t.field.type,e}function ORe(e,t){let n=(()=>{let n=DRe(t.OPERATION,e);return _7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function kRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return c7(ORe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function ARe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`TRIM`:return[g7[g7.TRIM],void 0];case t.METHOD===`LONG_TO_DATE`:return[g7[g7.CONVERT_TO_DATE],void 0];case t.METHOD===`LONG_TO_DATE_TIME`:return[g7[g7.CONVERT_TO_DATE_TIME],void 0];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:_7.find(e=>e.type===n),value:r}}function v7(e,t){return{combinator:y5,children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return v7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return kRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return ARe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let y7=class extends q5{valueConfigChanged(e,t){let n={TYPE:`PREDICATE_EXPRESSION`,OPERATION:`NULL`,EXPRESSIONS:t.model?[t.model]:[]},r=v7(t.fields,n);this.config={combinators:[y5],operators:_7,fields:t.fields,model:r,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){if(!(`children`in e))throw Error(`Invalid top level group hierarchy`);if(e.children.length>1)throw Error(`Value expressions should not have multiple rules`);if(e.children[0]&&`children`in e.children[0])throw Error(`Trying to convert group to rule`);let t=e.children.length===0?void 0:ERe(e.children[0]);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],y7.prototype,`valueConfig`,void 0),y7=q([$e({name:`foundation-value-expression-builder`,styles:L5,template:z5})],y7);let b7=T`<template ${k(`notificationListener`)}><slot></slot></template>`,jRe={mode:`open`,delegatesFocus:!0};var x7=class extends P{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[],this.desktopNotifications=!1,this.reconnections=0,this.reconnection=Promise.resolve(),this.reconnectionWaitMs=1e4}desktopNotificationsChanged(){this.desktopNotifications&&this.isConnected&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.boundVisibilityChange=this.handleVisibilityChange.bind(this),typeof document<`u`&&document.addEventListener(`visibilitychange`,this.boundVisibilityChange),this.addEventListener(hC.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),CC(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>{if(!e)return;let t=this.reconnections+=1;this.reconnection=MRe(this.reconnection,this.reconnectionWaitMs).then(()=>this.handleReconnection(t)).catch(e=>fb.error(e))})})}handleReconnection(e){return J(this,void 0,void 0,function*(){var t;let n=()=>e===this.reconnections&&this.isConnected;if(!this.resourceName||!n())return;(t=this.dataSub)==null||t.unsubscribe(),this.dataSub=void 0;let r=yield this.initializeDatasource();if(n()){if(!r)throw Error(`Failed to initialize datasource for ${this.resourceName}`);this.setupDataSubscription()}})}initializeDatasource(){return J(this,void 0,void 0,function*(){return this.datasource?.initialized&&this.datasource.destroy(),this.datasource.init({resourceName:this.resourceName},!0)})}setupDataSubscription(){if(!this.datasource.stream){fb.warn(`No stream available for ${this.resourceName}`);return}this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate(Ey(e))})}disconnectedCallback(){var e,t,n;super.disconnectedCallback(),typeof document<`u`&&this.boundVisibilityChange&&document.removeEventListener(`visibilitychange`,this.boundVisibilityChange),delete this.boundVisibilityChange,(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.connectionSub)==null||t.unsubscribe(),delete this.connectionSub,(n=this.datasource)==null||n.destroy(),delete this.datasource}handleVisibilityChange(){this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}clearDesktopNotifications(){this.postToServiceWorker({type:`genesis-clear-desktop-notifications`})}postToServiceWorker(e){typeof navigator<`u`&&navigator.serviceWorker&&(navigator.serviceWorker.controller?navigator.serviceWorker.controller.postMessage(e):navigator.serviceWorker.ready&&navigator.serviceWorker.ready.then(t=>{var n;(n=t?.active)==null||n.postMessage(e)}).catch(()=>{}))}handleStreamUpdate(e){let t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e),this.handleDesktopNotification(e)})}handleDesktopNotification(e){if(this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`hidden`&&typeof Notification<`u`&&Notification.permission===`granted`)try{let t=this.desktopNotificationFor(e);if(!t)return;this.postToServiceWorker({type:`genesis-desktop-notification`,notification:t})}catch(e){fb.error(e)}}desktopNotificationFor(e){return{title:e.HEADER,options:{body:e.MESSAGE,tag:`genesis-alert-${e.ALERT_ID??``}`,data:{alertId:e.ALERT_ID}}}}showNotificationToast(e){let{HEADER:t,MESSAGE:n,NOTIFY_SEVERITY:r}=e,i=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0,o=[];this.toastButtons&&this.toastButtons.length>0&&(o=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));let s={title:t,body:n,createdAt:i,toast:{details:e,type:r?.toLowerCase(),buttons:o,autoClose:a===void 0?!!this.closeTimeout:!!a,closeTimeout:a??this.closeTimeout,position:this.toastPosition}};bC(s,this.tagName)}};q([C],x7.prototype,`notificationListener`,void 0),q([Yv],x7.prototype,`connect`,void 0),q([D({attribute:`resource-name`})],x7.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],x7.prototype,`closeTimeout`,void 0),q([C],x7.prototype,`toastButtons`,void 0),q([D({attribute:`toast-position`})],x7.prototype,`toastPosition`,void 0),q([D({attribute:`desktop-notifications`,mode:`boolean`})],x7.prototype,`desktopNotifications`,void 0),q([Hy],x7.prototype,`datasource`,void 0);function MRe(e,t){return new Promise(n=>{let r=setTimeout(n,t);e.finally(()=>{clearTimeout(r),n()})})}x7.compose({baseName:`notification-listener`,template:b7,shadowOptions:jRe});let S7=Ad(`foundation-router`),C7=`$router`,w7=Object.freeze({getOrCreateFor:e=>{let t=e[C7];return t===void 0?e[C7]=new NRe(e):t},find:e=>I_.find(e),from:e=>I_.from(e)});var NRe=class extends R_{};let PRe=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function T7(e){return PRe.test(e)}function E7(e){return e.config instanceof av?e:w7.find(e)}function FRe(e,t=`/`,n=!1){let r=e.join(t).replace(RegExp(t+`{1,}`,`g`),t);return!n&&r.endsWith(t)?r.slice(0,-1):r}function IRe(e){return e.replace(`/*${O_}`,``)}function D7(){document.querySelector(`foundation-router, fast-router`)===null&&window.dispatchEvent(new PopStateEvent(`popstate`))}let O7=Object.freeze({path:Object.freeze({get current(){return g_.path.current},generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=E7(e);for(;r!==null;){let e=yield r.config.generateRouteFromPath(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t=!0)=>{if(e&&T7(e)){location.href=e;return}history.pushState({},document.title,e),D7(),t&&O7.path.trigger(e)},replace:(e,t=!0)=>{if(e&&T7(e)){location.href=e;return}history.replaceState({},document.title,e),D7(),t&&O7.path.trigger(e)},trigger:e=>{g_.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=E7(e);for(;r!==null;){let e=yield r.config.generateRouteFromName(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield O7.name.generateRoute(e,t,n);i!==null&&O7.path.push(i,r)}),replace:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield O7.name.generateRoute(e,t,n);i!==null&&O7.path.replace(i,r)}),trigger:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=yield O7.name.generateRoute(e,t,n);r!==null&&O7.path.trigger(r)})})}),k7=e=>!e.navId||e.navId===`header`||e.navId===`side-nav`;function LRe(e,t=k7,n=10){let r=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,i)=>{e.navItems.filter(t).map((t,r)=>{let a=t.placementIndex??i*n+r;return Object.assign(Object.assign({},t),{navId:t.navId??`header`,placementIndex:a,routePath:t.routePath??e.path,routeName:t.routeName??e.name})}).forEach(e=>r.push(e))}),r.sort((e,t)=>e.placementIndex-t.placementIndex)}var A7=class extends M_{constructor(){super(...arguments),this.definitions=[]}map(...e){let t=this.owner,n=!t.parent,r=t.basename;n&&r!==``&&r!==`/`&&(S7.debug(`Route paths remap required due to detected sub-path deployment`),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(r))return S7.debug(`'${e.path}' path okay as is`),e;let t=e.path.charAt(0)===`/`?``:`/`,n=`${r}${t}${e.path}`;return S7.debug(`'${e.path}' path modified to '${n}'`),Object.assign(Object.assign({},e),{path:n})})),this.definitions=[...e,...this.definitions],super.map(...e)}};q([C],A7.prototype,`definitions`,void 0);var j7=class extends av{constructor(){super(),this.logger=S7,this.loginPath=`login`,this.notFoundPath=`not-found`,this.notPermittedPath=`not-permitted`,this.routes=new A7(this),this.basename=vf,this.routes=new A7(this)}getNavItems(e=k7){return LRe(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){this.analytics.trackEvent(jd.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){let{settings:t}=e.route;(t?.isPermitted)?.call(t)===!1&&e.cancel(()=>{if(!this.user.isAuthenticated)this.user.trackPath(),O7.name.replace(e.router,this.loginPath);else{let n=t.notPermittedPath?.call(t)??this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),O7.name.replace(e.router,n)}})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),O7.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){let n=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return J(this,void 0,void 0,function*(){let r=yield n.generateRouteFromName.call(this,e,t);return r?this.generateNavigationPath(r):null})}navigateTo(e){return J(this,void 0,void 0,function*(){if(e.name){this.relativeTo||this.logger.error(`unable to navigate by name as the relativeTo router is not set`),yield O7.name.push(this.relativeTo,e.name,e.params,e.trigger);return}if(e.path){O7.path.push(this.generateNavigationPath(e.path,e.params),e.trigger);return}})}generateNavigationPath(e,t){let n=this.getNavigationPathBasename(),r=b_.build(t),i=n&&!e.startsWith(n)?FRe([n,e]):e;return i=r?`${i}?${r}`:i,i}getNavigationPathBasename(){let e=(this.parent?.relativeTo?.route)?.endpoint.route.path;return e?IRe(e):this.basename?this.basename:``}construct(e){return this.container.get(e)}};q([Nt],j7.prototype,`container`,void 0),q([Sre],j7.prototype,`analytics`,void 0),q([eg],j7.prototype,`user`,void 0),q([Cg],j7.prototype,`_session`,void 0);let M7=`navigate-to`,N7=`generate-navigation-path`,P7=class extends w7.from(Qe){constructor(){super(...arguments),this.logger=S7,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();let{path:t,params:n,callback:r}=e.detail;r&&r(this.config.generateNavigationPath(t,n))}}get router(){return this[C7]}connectedCallback(){var e;super.connectedCallback(),!this.config.isConfigured&&((e=this.config).relativeTo??(e.relativeTo=this.router),x.queueUpdate(()=>J(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(M7,this.onNavigateTo),this.addEventListener(N7,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(M7,this.onNavigateTo),this.removeEventListener(N7,this.onGenerateNavigationPath)}};P7=q([$e({name:`foundation-router`})],P7);let F7=e=>`control: ${e}-control, content: ${e}-content`,RRe=[`background: progress-ring-background`,`progress: progress-ring-progress`,`indeterminate-indicator-1: progress-ring-indeterminate`].join(`, `),I7=e=>T`<${e}-card class=${e=>pn(`stepper-tab`,[`stepper-tab-hidden`,e.hideTabs])}part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab"><div class=${e=>pn(`stepper-tab-menu`,[`stepper-tab-menu-hidden`,e.hideTabs])}part="stepper-tab-menu"><slot name="tab" ${xt(`tabs`)}></slot></div>${A(e=>e.orientation===Ia.vertical&&!e.hideProgress,T`<div class="stepper-tab-progress" part="stepper-tab-progress"><${e}-progress-ring class="progress-ring" part="progress-ring" exportparts="${RRe}" value=${e=>e.progressValue}></${e}-progress-ring><label part="progress-label">You have completed ${e=>e.progressValue}% of the fields required to create a project</label></div>`)}</${e}-card>${A(e=>!e.indicatorOnly,T`<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel"><div class="stepper-panel-container" part="stepper-panel-container"><slot name="tab-panel" ${xt(`tabpanels`)}></slot></div>${A(e=>!e.hideAllButtons,T`<div class="action-buttons-container" part="action-buttons-container"><slot name="action-buttons"><${e}-button part="back-button" exportparts="${F7(`back-button`)}" @click=${e=>e.previousStep()}?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>${A(e=>e.isLastStep&&!e.hideSubmitButton,T`<${e}-button part="submit-button" exportparts="${F7(`submit-button`)}" @click=${e=>e._submit()}?disabled=${e=>e.islastStepValid}data-test-id="submit-button">
|
|
1006
|
+
Submit </${e}-button>`)} ${A(e=>!e.isLastStep,T`<${e}-button part="next-button" exportparts="${F7(`next-button`)}" @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,zRe=T` ${e=>I7(gb(e))} `,L7=O` :host{display: flex;height: 100%;width: 100%}:host([orientation='horizontal']){flex-direction: column}.stepper-tab{display: flex;flex-direction: column;width: 100%;height: 100%;max-width: 280px;border-radius: 0}.action-buttons-container{width: 100%;display: flex;justify-content: flex-end}.stepper-panel-container{height: 100%;overflow: hidden;padding: 15px}.stepper-tab-menu{display: flex;flex-direction: column;width: 100%;margin-bottom: 30px}.stepper-tab-menu-hidden{display: none}.stepper-tab-progress{display: flex;flex-direction: column;align-items: center;justify-content: start;flex: 1}.stepper-tab-progress .progress-ring{--design-unit: 10;margin: 0}.stepper-tab-panel{display: flex;flex-direction: column;justify-content: space-between;width: 100%;min-width: 370px;border-radius: 0}label{padding: 0 10px;color: rgb(135 155 166);display: block;cursor: pointer;text-align: center;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal;margin: calc(var(--design-unit) * 2px) 0}:host([orientation='horizontal']) .stepper-tab-menu{height: 100%;width: 100%;display: flex;flex-direction: row;margin-bottom: 0;align-items: center;justify-content: center;gap: calc(var(--design-unit) * 4px);padding: 0 calc(var(--design-unit) * 4px)}:host([orientation='horizontal']) .stepper-tab-hidden{display: none}:host([orientation='horizontal']) .stepper-tab{max-width: 100%;max-height: 70px;height: 70px}`;var R7=class extends P{constructor(){super(...arguments),this.hideProgress=!1,this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=Ia.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot===`tab`){let n=this.activeTabIndex===t,r=t+1===this.tabIds.length,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute(`id`,i),e.setAttribute(`aria-selected`,n?`true`:`false`),e.setAttribute(`aria-disabled`,n?`false`:`true`),x.setBooleanAttribute(e,`selected`,n),e.setAttribute(`orientation`,this.orientation),a&&e.setAttribute(`aria-controls`,a),e.setAttribute(`tab-position`,String(t+1)),x.setBooleanAttribute(e,`isLast`,r),x.setBooleanAttribute(e,`hideStepNumber`,this.hideStepNumber===!0),e.setAttribute(`tabindex`,n?`0`:`-1`),x.setBooleanAttribute(e,`showCursorPointer`,t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps),n&&(this.activetab=e,this.activeid=i)}}),this.activeTabIndex===0&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});let t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute(`id`,r),e.setAttribute(`aria-labelledby`,n),this.activeTabIndex===t?e.removeAttribute(`hidden`):e.setAttribute(`hidden`,``)})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return this.activeid===void 0||this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}goToStep(e,t=!1){let n=e-1;if(e<1||e>this.tabs.length)return fb.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(n===this.activeTabIndex)return!1;if(t){if(n<this.activeTabIndex)return this.handleBackwardJump(n);if(n>this.activeTabIndex)return this.handleForwardJump(n)}return n<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(n):n>this.activeTabIndex&&this.allowForwardJumps?this.handleForwardJump(n):n===this.activeTabIndex+1?(this.nextStep(),!0):(fb.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit(`validation-failure`,{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return this.activeTabIndex===0}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){let e=this.tabs.length-1;return this.activeTabIndex===e&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs(),!1):(this.tabs[e].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit(`submit`)}nextStep(){if(!this.slotsInitialized){this.pendingNextStep=!0;return}if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid()){this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,this.getCompletedTabs();return}this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex+=1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit(`next-step`),this.$emit(`validation-success`));let e=this.tabs.length-1,t=this.activeTabIndex===e;this.hideSubmitButton&&t&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs()):(this.tabs[e].completed=!1,this.getCompletedTabs())}previousStep(){this.activeTabIndex!==0&&(this.tabs[this.activeTabIndex].completed=!1,--this.activeTabIndex,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>e.getAttribute(`id`)??`tab-${Rn()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute(`id`)??`panel-${Rn()}`)}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}};q([D({attribute:`hide-submit-button`,mode:`boolean`})],R7.prototype,`hideSubmitButton`,void 0),q([D({attribute:`hide-progress`,mode:`boolean`})],R7.prototype,`hideProgress`,void 0),q([D({attribute:`hide-step-number`,mode:`boolean`})],R7.prototype,`hideStepNumber`,void 0),q([D({attribute:`allow-backward-jumps`,mode:`boolean`})],R7.prototype,`allowBackwardJumps`,void 0),q([D({attribute:`allow-forward-jumps`,mode:`boolean`})],R7.prototype,`allowForwardJumps`,void 0),q([D({attribute:`hide-all-buttons`,mode:`boolean`})],R7.prototype,`hideAllButtons`,void 0),q([D({attribute:`hide-tabs`,mode:`boolean`})],R7.prototype,`hideTabs`,void 0),q([D({attribute:`indicator-only`,mode:`boolean`})],R7.prototype,`indicatorOnly`,void 0),q([D],R7.prototype,`orientation`,void 0),q([D],R7.prototype,`activeid`,void 0),q([C],R7.prototype,`tabs`,void 0),q([C],R7.prototype,`tabpanels`,void 0),q([C],R7.prototype,`validation`,void 0),q([C],R7.prototype,`progressValue`,void 0),q([C],R7.prototype,`activeTabIndex`,void 0),q([w],R7.prototype,`disabledPreviousStep`,null),q([w],R7.prototype,`isLastStep`,null),q([w],R7.prototype,`islastStepValid`,null);let z7={};R7.compose(Object.assign({baseName:`stepper`,template:zRe,styles:L7,shadowOptions:void 0},z7));let BRe=class extends Gu{}.compose(Object.assign({baseName:`accordion`,template:(e,t)=>ao(e,t),styles:(e,t)=>O` ${Wu(e,t)} :host{border-top: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)}.heading{height: calc(var(--base-height-multiplier) * 4px)}`,shadowOptions:Ku},qu)),VRe=class extends Xu{}.compose(Object.assign({baseName:`accordion-item`,template:(e,t)=>Ju(e,t),styles:(e,t)=>O` ${Yu(e,t)} :host{--icon-container-calculator: calc( (6 + (var(--design-unit) * 6)) * 1px );/* height of section - (padding top +padding-bottom) */ --icon-margin-calculation: calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px)}.region{padding: 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px);color: var(--accent-foreground-rest)}:host([expanded]) .region{color: var(--accent-foreground-rest)}slot[name='expanded-icon']{display: none;stroke: none}slot[name='collapsed-icon'] path.plus-sign, slot[name='expanded-icon'] path.minus-sign{stroke: white}slot[name='expanded-icon'], slot[name='collapsed-icon']{background: var(--neutral-fill-rest);fill: none;stroke: none;height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}svg:not(:root){height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}.icon{height: var( --icon-container-calculator );/* UX 30px* for now it's 30 on default design unit - 4/ */ width: var(--icon-container-calculator);/* UX 30px */ margin: var(--icon-margin-calculation) var(--icon-margin-calculation) var(--icon-margin-calculation) 0}.button{padding: 0 calc((8 + (var(--design-unit) * 2 * var(--density))) * 1px) 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px)}.heading{grid-template-columns: auto 1fr auto;align-items: center}`,shadowOptions:Zu},Qu)),HRe=class extends Gb{}.compose({baseName:`actions-menu`,styles:(e,t)=>O` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${$u(e,t)} rapid-menu-item{display: flex;user-select: none}rapid-menu-item::part(content){margin-inline: calc(var(--design-unit) * 3px)}rapid-menu-item[disabled]{pointer-events: none}`,template:Ub}),URe=O` ${tC}`,WRe=class extends TC{}.compose(Object.assign({baseName:`ai-criteria-search`,template:(e,t)=>nC,styles:URe,shadowOptions:void 0},EC)),GRe=class extends kC{}.compose({baseName:`ai-indicator`,template:OC,styles:(e,t)=>O` ${DC(e,t)} :host{--green: var(--success-color);--trafic-light-green: var(--success-color);--red: var(--error-color);--trafic-light-red: var(--error-color);--amber: var(--warning-color);--trafic-light-amber: var(--warning-color)}`});function B7(e,t){return new no(`appearance`,e,t)}let KRe=[`baseClass`,`baseName`,`shadowOptions`,`styles`,`template`],qRe=(e,t=KRe)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}),V7=e=>{let{definition:t}=e(),{shadowOptions:n,styles:r,template:i}=t;return{shadowOptions:n,styles:r,template:i,defaultConfig:qRe(t)}},JRe=O` :host([appearance='primary']){background: var(--accent-fill-rest);color: var(--foreground-on-accent-rest)}:host([appearance='primary']:hover){background: var(--accent-fill-hover);color: var(--foreground-on-accent-hover)}:host([appearance='primary']:active){background: var(--accent-fill-active);color: var(--foreground-on-accent-active)}:host([appearance='primary'][disabled]), :host([appearance='primary'][disabled]):hover, :host([appearance='primary'][disabled]):active{opacity: 50%}`,YRe=O` :host([appearance='secondary']){background: var(--secondary-fill-rest);color: contrast-color(var(--secondary-fill-rest))}:host([appearance='secondary']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary'][disabled]), :host([appearance='secondary'][disabled]):hover, :host([appearance='secondary'][disabled]):active{opacity: 50%}`,XRe=O` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: var(--neutral-button-border, 0);color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-hover)), transparent 20% )}:host([appearance='neutral']:active){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-active)), transparent 30% )}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%;background: var(--neutral-button-fill, var(--neutral-fill-rest));color: var(--neutral-button-foreground, var(--neutral-foreground-rest));border: var(--neutral-button-border, 0)}`,ZRe=O` :host([appearance='danger']){background: var(--error-fill-rest);color: contrast-color(var(--error-fill-rest));border: 0}:host([appearance='danger']:hover){background: var(--error-fill-hover);color: contrast-color(var(--error-fill-hover))}:host([appearance='danger']:active){background: var(--error-fill-active);color: contrast-color(var(--error-fill-active))}:host([appearance='danger'][disabled]), :host([appearance='danger'][disabled]):hover, :host([appearance='danger'][disabled]):active{opacity: 50%}`,QRe=O` :host([appearance='success']){background: var(--success-fill-rest);color: contrast-color(var(--success-fill-rest));border: 0}:host([appearance='success']:hover){background: var(--success-fill-hover);color: contrast-color(var(--success-fill-hover))}:host([appearance='success']:active){background: var(--success-fill-active);color: contrast-color(var(--success-fill-active))}:host([appearance='success'][disabled]), :host([appearance='success'][disabled]):hover, :host([appearance='success'][disabled]):active{opacity: 50%}`,$Re=O` :host([appearance='warning']){background: var(--warning-fill-rest);color: contrast-color(var(--warning-fill-rest));border: 0}:host([appearance='warning']:hover){background: var(--warning-fill-hover);color: contrast-color(var(--warning-fill-hover))}:host([appearance='warning']:active){background: var(--warning-fill-active);color: contrast-color(var(--warning-fill-active))}:host([appearance='warning'][disabled]), :host([appearance='warning'][disabled]):hover, :host([appearance='warning'][disabled]):active{opacity: 50%}`,eze=O` :host([appearance='tertiary']){background: var(--tertiary-fill-rest);color: contrast-color(var(--tertiary-fill-rest));border: 0}:host([appearance='tertiary']:hover){background: var(--tertiary-fill-hover);color: contrast-color(var(--tertiary-fill-hover))}:host([appearance='tertiary']:active){background: var(--tertiary-fill-active);color: contrast-color(var(--tertiary-fill-active))}:host([appearance='tertiary'][disabled]), :host([appearance='tertiary'][disabled]):hover, :host([appearance='tertiary'][disabled]):active{opacity: 50%}`,tze=O` :host([appearance='primary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest)}:host([appearance='primary-outline']:hover){background: var(--accent-fill-hover);color: contrast-color(var(--accent-fill-hover))}:host([appearance='primary-outline']:active){background: var(--accent-fill-active);color: contrast-color(var(--accent-fill-active))}:host([appearance='primary-outline'][disabled]), :host([appearance='primary-outline'][disabled]):hover, :host([appearance='primary-outline'][disabled]):active{opacity: 50%}`,nze=O` :host([appearance='secondary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--secondary-fill-rest)}:host([appearance='secondary-outline']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary-outline']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary-outline'][disabled]), :host([appearance='secondary-outline'][disabled]):hover, :host([appearance='secondary-outline'][disabled]):active{opacity: 50%}`,rze=O` :host([appearance='neutral-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host([appearance='neutral-outline']:hover){background: var(--neutral-fill-hover);color: contrast-color(var(--neutral-fill-hover))}:host([appearance='neutral-outline']:active){background: var(--neutral-fill-active);color: contrast-color(var(--neutral-fill-active))}:host([appearance='neutral-outline'][disabled]), :host([appearance='neutral-outline'][disabled]):hover, :host([appearance='neutral-outline'][disabled]):active{opacity: 50%}`,ize=O` :host([appearance='link']){background: none;border: none;color: var(--accent-foreground-rest)}:host([appearance='link']) .control{padding: 0}:host([appearance='link']:hover){color: var(--accent-foreground-hover)}:host([appearance='link'][disabled]), :host([appearance='link'][disabled]):hover, :host([appearance='link'][disabled]):active{opacity: 50%}`,aze=(e,t)=>O` :host{font-weight: 500;color: var(--neutral-foreground-rest);box-sizing: border-box;font-size: var(--type-ramp-base-font-size);height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px)}.control{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px)}.start{margin-inline-end: calc(var(--design-unit) * 2px)}.end{margin-inline-start: calc(var(--design-unit) * 2px)}.control:has(.start){padding-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}.control:has(.end){padding-right: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}:host([appearance='neutral']){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral']:hover){background: var(--neutral-fill-rest)}:host([appearance='neutral']:active){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%));border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);opacity: 100%}:host([appearance='accent']){color: contrast-color(var(--accent-fill-rest))}`,H7=(e,t)=>O` ${sw(e,t)} ${aze(e,t)} `.withBehaviors(B7(`primary`,JRe),B7(`secondary`,YRe),B7(`tertiary`,eze),B7(`neutral`,XRe),B7(`danger`,ZRe),B7(`success`,QRe),B7(`warning`,$Re),B7(`primary-outline`,tze),B7(`secondary-outline`,nze),B7(`neutral-outline`,rze),B7(`link`,ize)),oze=class extends MC{}.compose(Object.assign({baseName:`anchor`,template:(e,t)=>AC(e,t),styles:(e,t)=>O` ${jC(e,t)} ${H7(e,t)} `.withBehaviors(...H7(e,t).behaviors),shadowOptions:NC},PC)),sze=class extends LC{}.compose(Object.assign({baseName:`anchored-region`,template:(e,t)=>FC(e,t),styles:(e,t)=>O` ${IC(e,t)}`,shadowOptions:RC},zC)),cze=class extends HC{}.compose(Object.assign({baseName:`avatar`,template:(e,t)=>BC(e,t),styles:(e,t)=>O` ${VC(e,t)}`,shadowOptions:UC},WC)),lze=class extends qC{}.compose(Object.assign({baseName:`badge`,template:(e,t)=>GC(e,t),styles:(e,t)=>O` ${KC(e,t)} :host{--badge-fill-primary: var(--accent-fill-rest);--badge-fill-neutral: var(--neutral-fill-rest);--badge-fill-success: var(--success-color);--badge-fill-danger: var(--error-color);--badge-fill-warning: var(--warning-color);--badge-fill-buy: var(--buy-color);--badge-fill-sell: var(--sell-color);--badge-color-text: var(--neutral-foreground-rest);font-size: var(--type-ramp-minus-2-font-size)}:host .control{padding: calc(${B} * 1px) calc(${B} * 2px);border: none}`,shadowOptions:void 0},JC)),uze=O` ${YC} :host{--banner-height: calc( ((var(--design-unit) + 2) * var(--base-height-multiplier)) + (var(--design-unit) * var(--design-unit)) * 1px )}.banner{background-color: var(--neutral-layer-1);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}.content{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}`,dze=ZC,fze=class extends QC{}.compose({baseName:`banner`,shadowOptions:dze,styles:uze,template:XC}),pze=class extends tw{}.compose(Object.assign({baseName:`breadcrumb`,template:(e,t)=>$C(e,t),styles:(e,t)=>O` ${ew(e,t)}`,shadowOptions:void 0},{})),mze=class extends iw{}.compose(Object.assign({baseName:`breadcrumb-item`,template:(e,t)=>nw(e,t),styles:(e,t)=>O` ${rw(e,t)} .listitem{color: var(--accent-foreground-rest)}.control{color: var(--neutral-foreground-rest)}.control:hover{color: var(--neutral-foreground-rest)}.separator{color: var(--neutral-stroke-rest);margin: 0 12px}.control:hover .content::before{background: var(--neutral-foreground-rest)}.control .start{width: calc(var(--base-height-multiplier) * 3px);height: calc(var(--base-height-multiplier) * 3px);display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);margin: 0 -4px 0 0}.control:hover .start{background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}`,shadowOptions:void 0},aw)),hze=class extends cw{}.compose(Object.assign({baseName:`button`,template:(e,t)=>ow(e,t),styles:H7,shadowOptions:lw},uw)),gze=class extends pw{}.compose(Object.assign({baseName:`calendar`,template:(e,t)=>fw(e,t),styles:()=>O` ${dw()}`,shadowOptions:mw},hw)),_ze=class extends vw{}.compose(Object.assign({baseName:`card`,template:(e,t)=>gw(e,t),styles:(e,t)=>O` ${_w(e,t)} :host{background: var(--neutral-layer-card-container);color: ${H};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));box-shadow: var(--card-box-shadow, none);border: var( --card-border, 1px solid var(--neutral-stroke-rest) );/** uses a token instead of #2E3339 value available in ux docs */ /* box-shadow and border-radius are being calculated at host level by using design-tokens */}::slotted(rapid-card){background: var(--neutral-layer-3)}`,shadowOptions:void 0},yw)),vze=O` ${kw} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,yze=T` ${Aw(`rapid`)} `;var bze=class extends Mw{};let xze=jw,Sze=bze.compose(Object.assign({baseName:`categorized-multiselect`,template:yze,styles:vze,shadowOptions:void 0},xze)),Cze=class extends Fw{}.compose(Object.assign({baseName:`checkbox`,template:(e,t)=>Nw(e,t),styles:(e,t)=>O` ${Pw(e,t)} .checked-indicator{fill: contrast-color(var(--accent-fill-rest));box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;border-radius: calc(var(--control-corner-radius) * 1px)}:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:void 0},Iw)),wze=class extends Vw{}.compose(Object.assign({baseName:`combobox`,template:(e,t)=>Rw(e,t),styles:(e,t)=>O` ${Lw(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-width: 0}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.combo-box-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s}.selected-value{height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .combo-box-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:Hw},Uw)),Tze=class extends Kw{}.compose({baseName:`connection-indicator`,template:Gw,styles:(e,t)=>O` ${Ww(e,t)} :host{--light-size: calc(var(--design-unit) * 3px);--red: var(--error-color);--trafic-light-red: color-mix(in srgb, var(--red), transparent 0%);--trafic-light-red-glow: color-mix(in srgb, var(--red), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--red), transparent 80%) 0 0 8px 8px;--green: var(--success-color);--trafic-light-green: color-mix(in srgb, var(--green), transparent 0%);--trafic-light-green-glow: color-mix(in srgb, var(--green), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--green), transparent 80%) 0 0 8px 8px}.light{margin: calc(var(--design-unit) * 4px)}.label{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);color: var(--neutral-stroke-rest)}`}),{defaultConfig:Eze,shadowOptions:Dze,styles:Oze,template:kze}=V7(qw),Aze=()=>qw(),{defaultConfig:jze,shadowOptions:Mze,styles:Nze,template:Pze}=V7(Jw),Fze=()=>Jw(),{defaultConfig:Ize,shadowOptions:Lze,styles:Rze,template:zze}=V7(Yw),Bze=()=>Yw(),Vze=()=>O` ${Xw} :host{--primary-gradient-angle: -113.5deg;display: inline-block}.calendar-dropdown{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.input-icon-container{display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px)}.input-icon-container:hover{background-color: var(--neutral-fill-rest)}.date-toggle::part(end){margin-inline-end: calc(var(--design-unit) * 1px)}.date-toggle{margin-bottom: 0}.month-day{width: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px);height: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px)}.week-days span{font-size: var(--type-ramp-minus-2-font-size)}`,Hze=T` ${Qw(`rapid`)} `,Uze=class extends uT{}.compose(Object.assign({baseName:`date-picker`,template:Hze,styles:Vze,shadowOptions:void 0},{}));var U7;(function(e){e.primary=`#11C9FC`,e.neutral=`#7C909B`,e.error=`#F9644D`,e.success=`#7ACC79`,e.warning=`#FFB660`,e.tertiary=`#7B2FBE`,e.info=`#11C9FC`,e.buy=`#7ACC79`,e.sell=`#F14376`,e.chartPink=`#fb8176`,e.longGreen=`#7acc79`,e.shortPink=`#f14376`,e.warningYellow=`#fcb35f`,e.green=`#44c14c`,e.lightGreen=`#69cd70`,e.red=`#ef4d28`,e.lightRed=`#ee6588`,e.dodgerBlue=`#33a9ff`,e.lightDodgerBlue=`#5cbaff`,e.violet=`#9b1e74`,e.lightViolet=`#b528af`,e.white=`#f9f9f9`,e.silver=`#c1c1c1`,e.salomie=`#ffdf94`,e.lightSalomie=`#ccb276`,e.melon=`#ffbbb2`,e.lightMelon=`#cc968e`,e.portage=`#8a99f5`,e.lightPortage=`#adb8f8`,e.ice=`#97f4eb`,e.lightIce=`#6befe2`})(U7||(U7={}));let{create:W7}=ri,G7=Yo(U7.error),K7=$o.create(G7.r,G7.g,G7.b),q7=W7(`error-color`).withDefault(K7),J7=Yo(U7.success),Y7=$o.create(J7.r,J7.g,J7.b),X7=W7(`success-color`).withDefault(Y7),Z7=Yo(U7.warning),Q7=$o.create(Z7.r,Z7.g,Z7.b),$7=W7(`warning-color`).withDefault(Q7),e9=Yo(U7.buy),t9=$o.create(e9.r,e9.g,e9.b),n9=W7(`buy-color`).withDefault(t9),r9=Yo(U7.sell),i9=$o.create(r9.r,r9.g,r9.b),a9=W7(`sell-color`).withDefault(i9),o9=Yo(U7.info),s9=$o.create(o9.r,o9.g,o9.b),c9=W7(`info-color`).withDefault(s9),l9=Yo(U7.error),u9=$o.create(l9.r,l9.g,l9.b),d9=W7(`serious-notify-color`).withDefault(u9),{create:f9}=ri,p9=e=>ri.create({name:e,cssCustomPropertyName:null}),m9=$o.create(1,1,1),Wze=$o.create(0,0,0),h9=4.5;function Gze(e,t,n,r,i,a,o,s,c){let l=e.source,u=t.closestIndexOf(n)>=Math.max(o,s,c)?-1:1,d=e.closestIndexOf(l),f=d+u*-1*r,p=f+u*i,m=f+u*a;return{rest:e.get(f),hover:e.get(d),active:e.get(p),focus:e.get(m)}}function Kze(e,t,n,r,i,a,o){let s=e.source,c=e.closestIndexOf(s),l=ns(t)?-1:1,u=c+(l===1?Math.min(r,i):Math.max(l*r,l*i)),d=e.colorContrast(t,n,u,l),f=e.closestIndexOf(d),p=f+l*Math.abs(r-i),m=l===1?r<i:l*r>l*i,h=m?f:p,g=m?p:f;return{rest:e.get(h),hover:e.get(g),active:e.get(h+l*a),focus:e.get(h+l*o)}}function qze(e,t){return e.contrast(m9)>=t?m9:Wze}function g9(e,t){let n=e,r=p9(`${n}-palette`).withDefault(e=>is.from(t.getValueFor(e))),i=p9(`${n}-fill-rest-delta`).withDefault(0),a=p9(`${n}-fill-hover-delta`).withDefault(4),o=p9(`${n}-fill-active-delta`).withDefault(-5),s=p9(`${n}-fill-focus-delta`).withDefault(0),c=p9(`${n}-foreground-rest-delta`).withDefault(0),l=p9(`${n}-foreground-hover-delta`).withDefault(6),u=p9(`${n}-foreground-active-delta`).withDefault(-4),d=p9(`${n}-foreground-focus-delta`).withDefault(0),f=p9(`${n}-fill-recipe`).withDefault({evaluate:(e,t)=>Gze(r.getValueFor(e),fc.getValueFor(e),t??Cc.getValueFor(e),a.getValueFor(e),o.getValueFor(e),s.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),p=f9(`${n}-fill-rest`).withDefault(e=>f.getValueFor(e).evaluate(e).rest),m=f9(`${n}-fill-hover`).withDefault(e=>f.getValueFor(e).evaluate(e).hover),h=f9(`${n}-fill-active`).withDefault(e=>f.getValueFor(e).evaluate(e).active),g=f9(`${n}-fill-focus`).withDefault(e=>f.getValueFor(e).evaluate(e).focus),_=e=>(t,n)=>qze(n??p.getValueFor(t),e),v=p9(`foreground-on-${n}-recipe`).withDefault({evaluate:(e,t)=>_(h9)(e,t)}),y=f9(`foreground-on-${n}-rest`).withDefault(e=>v.getValueFor(e).evaluate(e,p.getValueFor(e))),b=f9(`foreground-on-${n}-hover`).withDefault(e=>v.getValueFor(e).evaluate(e,m.getValueFor(e))),ee=f9(`foreground-on-${n}-active`).withDefault(e=>v.getValueFor(e).evaluate(e,h.getValueFor(e))),x=f9(`foreground-on-${n}-focus`).withDefault(e=>v.getValueFor(e).evaluate(e,g.getValueFor(e))),te=p9(`foreground-on-${n}-large-recipe`).withDefault({evaluate:(e,t)=>_(7)(e,t)}),ne=f9(`foreground-on-${n}-rest-large`).withDefault(e=>te.getValueFor(e).evaluate(e,p.getValueFor(e))),S=f9(`foreground-on-${n}-hover-large`).withDefault(e=>te.getValueFor(e).evaluate(e,m.getValueFor(e))),C=f9(`foreground-on-${n}-active-large`).withDefault(e=>te.getValueFor(e).evaluate(e,h.getValueFor(e))),w=f9(`foreground-on-${n}-focus-large`).withDefault(e=>te.getValueFor(e).evaluate(e,g.getValueFor(e))),re=p9(`${n}-foreground-recipe`).withDefault({evaluate:(e,t)=>Kze(r.getValueFor(e),t??Cc.getValueFor(e),h9,c.getValueFor(e),l.getValueFor(e),u.getValueFor(e),d.getValueFor(e))});return{palette:r,fillRestDelta:i,fillHoverDelta:a,fillActiveDelta:o,fillFocusDelta:s,foregroundRestDelta:c,foregroundHoverDelta:l,foregroundActiveDelta:u,foregroundFocusDelta:d,fillRecipe:f,fillRest:p,fillHover:m,fillActive:h,fillFocus:g,foregroundOnRecipe:v,foregroundOnRest:y,foregroundOnHover:b,foregroundOnActive:ee,foregroundOnFocus:x,foregroundOnLargeRecipe:te,foregroundOnRestLarge:ne,foregroundOnHoverLarge:S,foregroundOnActiveLarge:C,foregroundOnFocusLarge:w,foregroundRecipe:re,foregroundRest:f9(`${n}-foreground-rest`).withDefault(e=>re.getValueFor(e).evaluate(e).rest),foregroundHover:f9(`${n}-foreground-hover`).withDefault(e=>re.getValueFor(e).evaluate(e).hover),foregroundActive:f9(`${n}-foreground-active`).withDefault(e=>re.getValueFor(e).evaluate(e).active),foregroundFocus:f9(`${n}-foreground-focus`).withDefault(e=>re.getValueFor(e).evaluate(e).focus)}}let _9=Yo(U7.green),v9=$o.create(_9.r,_9.g,_9.b),y9=ri.create(`secondary-color`).withDefault(v9),{palette:Jze,fillRestDelta:Yze,fillHoverDelta:Xze,fillActiveDelta:Zze,fillFocusDelta:Qze,foregroundRestDelta:$ze,foregroundHoverDelta:eBe,foregroundActiveDelta:tBe,foregroundFocusDelta:nBe,fillRecipe:rBe,fillRest:iBe,fillHover:aBe,fillActive:oBe,fillFocus:sBe,foregroundOnRecipe:cBe,foregroundOnRest:lBe,foregroundOnHover:uBe,foregroundOnActive:dBe,foregroundOnFocus:fBe,foregroundOnLargeRecipe:pBe,foregroundOnRestLarge:mBe,foregroundOnHoverLarge:hBe,foregroundOnActiveLarge:gBe,foregroundOnFocusLarge:_Be,foregroundRecipe:vBe,foregroundRest:yBe,foregroundHover:bBe,foregroundActive:xBe,foregroundFocus:SBe}=g9(`secondary`,y9),b9=Yo(U7.tertiary),x9=$o.create(b9.r,b9.g,b9.b),S9=ri.create(`tertiary-color`).withDefault(x9),{palette:CBe,fillRestDelta:wBe,fillHoverDelta:TBe,fillActiveDelta:EBe,fillFocusDelta:DBe,foregroundRestDelta:OBe,foregroundHoverDelta:kBe,foregroundActiveDelta:ABe,foregroundFocusDelta:jBe,fillRecipe:MBe,fillRest:NBe,fillHover:PBe,fillActive:FBe,fillFocus:IBe,foregroundOnRecipe:LBe,foregroundOnRest:RBe,foregroundOnHover:zBe,foregroundOnActive:BBe,foregroundOnFocus:VBe,foregroundOnLargeRecipe:HBe,foregroundOnRestLarge:UBe,foregroundOnHoverLarge:WBe,foregroundOnActiveLarge:GBe,foregroundOnFocusLarge:KBe,foregroundRecipe:qBe,foregroundRest:JBe,foregroundHover:YBe,foregroundActive:XBe,foregroundFocus:ZBe}=g9(`tertiary`,S9),{palette:QBe,fillRestDelta:$Be,fillHoverDelta:eVe,fillActiveDelta:tVe,fillFocusDelta:nVe,foregroundRestDelta:rVe,foregroundHoverDelta:iVe,foregroundActiveDelta:aVe,foregroundFocusDelta:oVe,fillRecipe:sVe,fillRest:cVe,fillHover:lVe,fillActive:uVe,fillFocus:dVe,foregroundOnRecipe:fVe,foregroundOnRest:pVe,foregroundOnHover:mVe,foregroundOnActive:hVe,foregroundOnFocus:gVe,foregroundOnLargeRecipe:_Ve,foregroundOnRestLarge:vVe,foregroundOnHoverLarge:yVe,foregroundOnActiveLarge:bVe,foregroundOnFocusLarge:xVe,foregroundRecipe:SVe,foregroundRest:CVe,foregroundHover:wVe,foregroundActive:TVe,foregroundFocus:EVe}=g9(`error`,q7),{palette:DVe,fillRestDelta:OVe,fillHoverDelta:kVe,fillActiveDelta:AVe,fillFocusDelta:jVe,foregroundRestDelta:MVe,foregroundHoverDelta:NVe,foregroundActiveDelta:PVe,foregroundFocusDelta:FVe,fillRecipe:IVe,fillRest:LVe,fillHover:RVe,fillActive:zVe,fillFocus:BVe,foregroundOnRecipe:VVe,foregroundOnRest:HVe,foregroundOnHover:UVe,foregroundOnActive:WVe,foregroundOnFocus:GVe,foregroundOnLargeRecipe:KVe,foregroundOnRestLarge:qVe,foregroundOnHoverLarge:JVe,foregroundOnActiveLarge:YVe,foregroundOnFocusLarge:XVe,foregroundRecipe:ZVe,foregroundRest:QVe,foregroundHover:$Ve,foregroundActive:eHe,foregroundFocus:tHe}=g9(`success`,X7),{palette:nHe,fillRestDelta:rHe,fillHoverDelta:iHe,fillActiveDelta:aHe,fillFocusDelta:oHe,foregroundRestDelta:sHe,foregroundHoverDelta:cHe,foregroundActiveDelta:lHe,foregroundFocusDelta:uHe,fillRecipe:dHe,fillRest:fHe,fillHover:pHe,fillActive:mHe,fillFocus:hHe,foregroundOnRecipe:gHe,foregroundOnRest:_He,foregroundOnHover:vHe,foregroundOnActive:yHe,foregroundOnFocus:bHe,foregroundOnLargeRecipe:xHe,foregroundOnRestLarge:SHe,foregroundOnHoverLarge:CHe,foregroundOnActiveLarge:wHe,foregroundOnFocusLarge:THe,foregroundRecipe:EHe,foregroundRest:DHe,foregroundHover:OHe,foregroundActive:kHe,foregroundFocus:AHe}=g9(`warning`,$7);var C9=/* @__PURE__ */ c({accentFillActive:()=>Oc,accentFillActiveDelta:()=>Ls,accentFillFocus:()=>kc,accentFillFocusDelta:()=>Rs,accentFillHover:()=>Dc,accentFillHoverDelta:()=>Is,accentFillRest:()=>Ec,accentFillRestDelta:()=>Fs,accentForegroundActive:()=>Gc,accentForegroundActiveDelta:()=>Vs,accentForegroundFocus:()=>Kc,accentForegroundFocusDelta:()=>Hs,accentForegroundHover:()=>Wc,accentForegroundHoverDelta:()=>Bs,accentForegroundRest:()=>Uc,accentForegroundRestDelta:()=>zs,accentPalette:()=>mc,baseHeightMultiplier:()=>ds,baseLayerLuminance:()=>fs,bodyFont:()=>us,buyColor:()=>n9,controlCornerRadius:()=>z,defaultBuyColor:()=>t9,defaultErrorColor:()=>K7,defaultInfoColor:()=>s9,defaultSecondaryColor:()=>v9,defaultSellColor:()=>i9,defaultSeriousNotifyColor:()=>u9,defaultSuccessColor:()=>Y7,defaultTertiaryColor:()=>x9,defaultWarningColor:()=>Q7,density:()=>ps,designUnit:()=>B,direction:()=>ms,disabledOpacity:()=>hs,errorColor:()=>q7,errorFillActive:()=>uVe,errorFillActiveDelta:()=>tVe,errorFillFocus:()=>dVe,errorFillFocusDelta:()=>nVe,errorFillHover:()=>lVe,errorFillHoverDelta:()=>eVe,errorFillRecipe:()=>sVe,errorFillRest:()=>cVe,errorFillRestDelta:()=>$Be,errorForegroundActive:()=>TVe,errorForegroundActiveDelta:()=>aVe,errorForegroundFocus:()=>EVe,errorForegroundFocusDelta:()=>oVe,errorForegroundHover:()=>wVe,errorForegroundHoverDelta:()=>iVe,errorForegroundRecipe:()=>SVe,errorForegroundRest:()=>CVe,errorForegroundRestDelta:()=>rVe,errorPalette:()=>QBe,fillColor:()=>Cc,focusStrokeInner:()=>_l,focusStrokeOuter:()=>gl,focusStrokeWidth:()=>gs,foregroundOnAccentActive:()=>Pc,foregroundOnAccentActiveLarge:()=>zc,foregroundOnAccentFocus:()=>Fc,foregroundOnAccentFocusLarge:()=>Bc,foregroundOnAccentHover:()=>Nc,foregroundOnAccentHoverLarge:()=>Rc,foregroundOnAccentRest:()=>Mc,foregroundOnAccentRestLarge:()=>Lc,foregroundOnErrorActive:()=>hVe,foregroundOnErrorActiveLarge:()=>bVe,foregroundOnErrorFocus:()=>gVe,foregroundOnErrorFocusLarge:()=>xVe,foregroundOnErrorHover:()=>mVe,foregroundOnErrorHoverLarge:()=>yVe,foregroundOnErrorLargeRecipe:()=>_Ve,foregroundOnErrorRecipe:()=>fVe,foregroundOnErrorRest:()=>pVe,foregroundOnErrorRestLarge:()=>vVe,foregroundOnSecondaryActive:()=>dBe,foregroundOnSecondaryActiveLarge:()=>gBe,foregroundOnSecondaryFocus:()=>fBe,foregroundOnSecondaryFocusLarge:()=>_Be,foregroundOnSecondaryHover:()=>uBe,foregroundOnSecondaryHoverLarge:()=>hBe,foregroundOnSecondaryLargeRecipe:()=>pBe,foregroundOnSecondaryRecipe:()=>cBe,foregroundOnSecondaryRest:()=>lBe,foregroundOnSecondaryRestLarge:()=>mBe,foregroundOnSuccessActive:()=>WVe,foregroundOnSuccessActiveLarge:()=>YVe,foregroundOnSuccessFocus:()=>GVe,foregroundOnSuccessFocusLarge:()=>XVe,foregroundOnSuccessHover:()=>UVe,foregroundOnSuccessHoverLarge:()=>JVe,foregroundOnSuccessLargeRecipe:()=>KVe,foregroundOnSuccessRecipe:()=>VVe,foregroundOnSuccessRest:()=>HVe,foregroundOnSuccessRestLarge:()=>qVe,foregroundOnTertiaryActive:()=>BBe,foregroundOnTertiaryActiveLarge:()=>GBe,foregroundOnTertiaryFocus:()=>VBe,foregroundOnTertiaryFocusLarge:()=>KBe,foregroundOnTertiaryHover:()=>zBe,foregroundOnTertiaryHoverLarge:()=>WBe,foregroundOnTertiaryLargeRecipe:()=>HBe,foregroundOnTertiaryRecipe:()=>LBe,foregroundOnTertiaryRest:()=>RBe,foregroundOnTertiaryRestLarge:()=>UBe,foregroundOnWarningActive:()=>yHe,foregroundOnWarningActiveLarge:()=>wHe,foregroundOnWarningFocus:()=>bHe,foregroundOnWarningFocusLarge:()=>THe,foregroundOnWarningHover:()=>vHe,foregroundOnWarningHoverLarge:()=>CHe,foregroundOnWarningLargeRecipe:()=>xHe,foregroundOnWarningRecipe:()=>gHe,foregroundOnWarningRest:()=>_He,foregroundOnWarningRestLarge:()=>SHe,infoColor:()=>c9,neutralFillActive:()=>Xc,neutralFillActiveDelta:()=>Gs,neutralFillFocus:()=>Zc,neutralFillFocusDelta:()=>Ks,neutralFillHover:()=>Yc,neutralFillHoverDelta:()=>Ws,neutralFillInputActive:()=>tl,neutralFillInputActiveDelta:()=>Ys,neutralFillInputFocus:()=>nl,neutralFillInputFocusDelta:()=>Xs,neutralFillInputHover:()=>el,neutralFillInputHoverDelta:()=>Js,neutralFillInputRest:()=>$c,neutralFillInputRestDelta:()=>qs,neutralFillLayerRest:()=>ml,neutralFillLayerRestDelta:()=>ac,neutralFillRest:()=>Jc,neutralFillRestDelta:()=>Us,neutralFillStealthActive:()=>ol,neutralFillStealthActiveDelta:()=>$s,neutralFillStealthFocus:()=>sl,neutralFillStealthFocusDelta:()=>ec,neutralFillStealthHover:()=>al,neutralFillStealthHoverDelta:()=>Qs,neutralFillStealthRest:()=>il,neutralFillStealthRestDelta:()=>Zs,neutralFillStrongActive:()=>dl,neutralFillStrongActiveDelta:()=>rc,neutralFillStrongFocus:()=>fl,neutralFillStrongFocusDelta:()=>ic,neutralFillStrongHover:()=>ul,neutralFillStrongHoverDelta:()=>nc,neutralFillStrongRest:()=>ll,neutralFillStrongRestDelta:()=>tc,neutralForegroundHint:()=>vl,neutralForegroundRest:()=>H,neutralLayer1:()=>_c,neutralLayer2:()=>vc,neutralLayer3:()=>bc,neutralLayer4:()=>Sc,neutralLayerCardContainer:()=>hc,neutralLayerFloating:()=>gc,neutralPalette:()=>fc,neutralStrokeActive:()=>Sl,neutralStrokeActiveDelta:()=>cc,neutralStrokeDividerRest:()=>wl,neutralStrokeDividerRestDelta:()=>uc,neutralStrokeFocus:()=>Cl,neutralStrokeFocusDelta:()=>lc,neutralStrokeHover:()=>xl,neutralStrokeHoverDelta:()=>sc,neutralStrokeRest:()=>bl,neutralStrokeRestDelta:()=>oc,secondaryColor:()=>y9,secondaryFillActive:()=>oBe,secondaryFillActiveDelta:()=>Zze,secondaryFillFocus:()=>sBe,secondaryFillFocusDelta:()=>Qze,secondaryFillHover:()=>aBe,secondaryFillHoverDelta:()=>Xze,secondaryFillRecipe:()=>rBe,secondaryFillRest:()=>iBe,secondaryFillRestDelta:()=>Yze,secondaryForegroundActive:()=>xBe,secondaryForegroundActiveDelta:()=>tBe,secondaryForegroundFocus:()=>SBe,secondaryForegroundFocusDelta:()=>nBe,secondaryForegroundHover:()=>bBe,secondaryForegroundHoverDelta:()=>eBe,secondaryForegroundRecipe:()=>vBe,secondaryForegroundRest:()=>yBe,secondaryForegroundRestDelta:()=>$ze,secondaryPalette:()=>Jze,sellColor:()=>a9,seriousNotifyColor:()=>d9,strokeWidth:()=>V,successColor:()=>X7,successFillActive:()=>zVe,successFillActiveDelta:()=>AVe,successFillFocus:()=>BVe,successFillFocusDelta:()=>jVe,successFillHover:()=>RVe,successFillHoverDelta:()=>kVe,successFillRecipe:()=>IVe,successFillRest:()=>LVe,successFillRestDelta:()=>OVe,successForegroundActive:()=>eHe,successForegroundActiveDelta:()=>PVe,successForegroundFocus:()=>tHe,successForegroundFocusDelta:()=>FVe,successForegroundHover:()=>$Ve,successForegroundHoverDelta:()=>NVe,successForegroundRecipe:()=>ZVe,successForegroundRest:()=>QVe,successForegroundRestDelta:()=>MVe,successPalette:()=>DVe,tertiaryColor:()=>S9,tertiaryFillActive:()=>FBe,tertiaryFillActiveDelta:()=>EBe,tertiaryFillFocus:()=>IBe,tertiaryFillFocusDelta:()=>DBe,tertiaryFillHover:()=>PBe,tertiaryFillHoverDelta:()=>TBe,tertiaryFillRecipe:()=>MBe,tertiaryFillRest:()=>NBe,tertiaryFillRestDelta:()=>wBe,tertiaryForegroundActive:()=>XBe,tertiaryForegroundActiveDelta:()=>ABe,tertiaryForegroundFocus:()=>ZBe,tertiaryForegroundFocusDelta:()=>jBe,tertiaryForegroundHover:()=>YBe,tertiaryForegroundHoverDelta:()=>kBe,tertiaryForegroundRecipe:()=>qBe,tertiaryForegroundRest:()=>JBe,tertiaryForegroundRestDelta:()=>OBe,tertiaryPalette:()=>CBe,typeRampBaseFontSize:()=>_s,typeRampBaseLineHeight:()=>vs,typeRampMinus1FontSize:()=>ys,typeRampMinus1LineHeight:()=>bs,typeRampMinus2FontSize:()=>xs,typeRampMinus2LineHeight:()=>Ss,typeRampPlus1FontSize:()=>Cs,typeRampPlus1LineHeight:()=>ws,typeRampPlus2FontSize:()=>Ts,typeRampPlus2LineHeight:()=>Es,typeRampPlus3FontSize:()=>Ds,typeRampPlus3LineHeight:()=>Os,typeRampPlus4FontSize:()=>ks,typeRampPlus4LineHeight:()=>As,typeRampPlus5FontSize:()=>js,typeRampPlus5LineHeight:()=>Ms,typeRampPlus6FontSize:()=>Ns,typeRampPlus6LineHeight:()=>Ps,warningColor:()=>$7,warningFillActive:()=>mHe,warningFillActiveDelta:()=>aHe,warningFillFocus:()=>hHe,warningFillFocusDelta:()=>oHe,warningFillHover:()=>pHe,warningFillHoverDelta:()=>iHe,warningFillRecipe:()=>dHe,warningFillRest:()=>fHe,warningFillRestDelta:()=>rHe,warningForegroundActive:()=>kHe,warningForegroundActiveDelta:()=>lHe,warningForegroundFocus:()=>AHe,warningForegroundFocusDelta:()=>uHe,warningForegroundHover:()=>OHe,warningForegroundHoverDelta:()=>cHe,warningForegroundRecipe:()=>EHe,warningForegroundRest:()=>DHe,warningForegroundRestDelta:()=>sHe,warningPalette:()=>nHe});let w9=bT(U7.primary),T9=bT(U7.neutral),E9=bT(U7.green),D9=bT(U7.tertiary),O9=bT(U7.error),k9=bT(U7.success),A9=bT(U7.warning),j9=cs.DarkMode,jHe=Fn.ltr,M9=`"Segoe UI", Arial, Helvetica, sans-serif`,N9=`14px`,P9=`20px`,MHe={design_tokens:{color:{accent:{$value:w9.source.toColorString(),$type:`color`},neutral:{$value:T9.source.toColorString(),$type:`color`},secondary:{$value:E9.source.toColorString(),$type:`color`},tertiary:{$value:D9.source.toColorString(),$type:`color`},error:{$value:O9.source.toColorString(),$type:`color`},success:{$value:k9.source.toColorString(),$type:`color`},warning:{$value:A9.source.toColorString(),$type:`color`}},fontFamily:{bodyFont:{$value:M9,$type:`fontFamily`}},typography:{baseFontSize:{$value:N9,$type:`dimension`},baseLineHeight:{$value:P9,$type:`dimension`}},mode:{luminance:{$value:j9,$type:`number`}},style:{density:{$value:0,$type:`number`},baseHeightMultiplier:{$value:10,$type:`number`},borderRadius:{$value:4,$type:`number`},strokeWidth:{$value:1,$type:`number`}},space:{designUnit:{$value:4,$type:`number`}}}};var F9=/* @__PURE__ */ c({accentFillActiveDeltaValue:()=>-5,accentFillFocusDeltaValue:()=>0,accentFillHoverDeltaValue:()=>4,accentFillRestDeltaValue:()=>0,accentForegroundActiveDeltaValue:()=>-4,accentForegroundFocusDeltaValue:()=>0,accentForegroundHoverDeltaValue:()=>6,accentForegroundRestDeltaValue:()=>0,accentPaletteValue:()=>w9,baseHeightMultiplierValue:()=>10,baseLayerLuminanceValue:()=>j9,bodyFontValue:()=>M9,controlCornerRadiusValue:()=>4,densityValue:()=>0,designTokens:()=>MHe,designUnitValue:()=>4,directionValue:()=>jHe,disabledOpacityValue:()=>.3,errorPaletteValue:()=>O9,focusStrokeWidthValue:()=>2,neutralFillActiveDeltaValue:()=>5,neutralFillFocusDeltaValue:()=>0,neutralFillHoverDeltaValue:()=>10,neutralFillInputActiveDeltaValue:()=>0,neutralFillInputFocusDeltaValue:()=>10,neutralFillInputHoverDeltaValue:()=>5,neutralFillInputRestDeltaValue:()=>0,neutralFillLayerRestDeltaValue:()=>3,neutralFillRestDeltaValue:()=>7,neutralFillStealthActiveDeltaValue:()=>3,neutralFillStealthFocusDeltaValue:()=>0,neutralFillStealthHoverDeltaValue:()=>5,neutralFillStealthRestDeltaValue:()=>0,neutralFillStrongActiveDeltaValue:()=>-5,neutralFillStrongFocusDeltaValue:()=>0,neutralFillStrongHoverDeltaValue:()=>8,neutralFillStrongRestDeltaValue:()=>0,neutralPaletteValue:()=>T9,neutralStrokeActiveDeltaValue:()=>16,neutralStrokeDividerRestDeltaValue:()=>8,neutralStrokeFocusDeltaValue:()=>25,neutralStrokeHoverDeltaValue:()=>40,neutralStrokeRestDeltaValue:()=>25,prefix:()=>`rapid`,secondaryPaletteValue:()=>E9,strokeWidthValue:()=>1,successPaletteValue:()=>k9,tertiaryPaletteValue:()=>D9,typeRampBaseFontSizeValue:()=>N9,typeRampBaseLineHeightValue:()=>P9,typeRampMinus1FontSizeValue:()=>`13px`,typeRampMinus1LineHeightValue:()=>`19px`,typeRampMinus2FontSizeValue:()=>`12px`,typeRampMinus2LineHeightValue:()=>`18px`,typeRampPlus1FontSizeValue:()=>`15px`,typeRampPlus1LineHeightValue:()=>`21px`,typeRampPlus2FontSizeValue:()=>`16px`,typeRampPlus2LineHeightValue:()=>`22px`,typeRampPlus3FontSizeValue:()=>`17px`,typeRampPlus3LineHeightValue:()=>`23px`,typeRampPlus4FontSizeValue:()=>`18px`,typeRampPlus4LineHeightValue:()=>`24px`,typeRampPlus5FontSizeValue:()=>`19px`,typeRampPlus5LineHeightValue:()=>`25px`,typeRampPlus6FontSizeValue:()=>`20px`,typeRampPlus6LineHeightValue:()=>`26px`,warningPaletteValue:()=>A9}),I9=class extends K{constructor(){super(),this.luminancePersistence=new hT(this),_T(C9,F9,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],I9.prototype,`persistLuminance`,void 0);let NHe=I9.compose({baseName:`design-system-provider`,template:T`<slot></slot>`}),L9=O` ${P1} :host{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}dialog{position: var(--dialog-position, fixed);top: 0;bottom: 0;border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest));text-align: left;line-height: normal;box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);background-color: var(--dialog-background, var(--neutral-layer-1))}.top{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-rest);margin-bottom: calc(var(--design-unit) * 2px);font-weight: 500}.bottom{display: flex;flex-wrap: wrap;justify-content: flex-end;color: var(--neutral-foreground-rest);gap: calc(var(--design-unit) * 2px)}:host slot:first-of-type{color: ${H}}::slotted(rapid-button){margin-top: calc(var(--design-unit) * 4px - 1px)}slot[name='top']::slotted(*){margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-hint);font-weight: 700}.content-wrapper{min-width: var(--dialog-min-width);min-height: var(--dialog-min-height);height: fit-content;width: fit-content;max-width: var(--dialog-max-width);max-height: var(--dialog-max-height);display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.close-icon:hover svg{background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}.close-icon svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%)}.close-icon:hover svg g path{fill: var(--neutral-foreground-rest)}.close-icon:active svg{background-color: var(--neutral-layer-4)}.close-icon:active svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%)}.header-controls{rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}`,PHe=X1,FHe=F1,IHe=Y1,LHe=class extends Q1{}.compose(Object.assign({baseName:`dialog`,shadowOptions:IHe,styles:L9,template:FHe},PHe)),RHe=class extends t0{}.compose(Object.assign({baseName:`disclosure`,template:(e,t)=>$1(e,t),styles:(e,t)=>O` ${e0(e,t)} :host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}:host([appearance='accent']) .invoker{padding: calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px)}#disclosure-content{padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);text-align: center}`,shadowOptions:Y1},n0)),zHe=class extends a0{}.compose(Object.assign({baseName:`divider`,template:(e,t)=>r0(e,t),styles:(e,t)=>O` ${i0(e,t)}`,shadowOptions:void 0},o0)),BHe=class extends u0{}.compose({baseName:`dropdown-menu`,styles:(e,t)=>O` ${s0(`rapid`,e,t)} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);gap: 0;margin: calc(var(--design-unit) * 1px) 0}rapid-menu{margin: 0 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * -2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:l0}),VHe=O` ${d0}`,HHe=class extends _0{}.compose({baseName:`environment-indicator`,styles:VHe,template:f0}),{defaultConfig:UHe,shadowOptions:WHe,styles:GHe,template:KHe}=V7(T0),qHe=()=>T0(),JHe=N0,YHe=F0.compose({baseName:`file-reader`,styles:JHe,template:P0}),XHe=O` ${I0} ::-webkit-scrollbar{width: calc(var(--design-unit) * 3px)}::-webkit-scrollbar-track{background: rgb(31 33 38)}::-webkit-scrollbar-thumb{width: 8px;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 3px) solid var(--neutral-layer-4)}:host::part(select-file-button), :host::part(upload-file-button){margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px)}`,ZHe=T` ${L0(`rapid`)} `,QHe=z0,$He=class extends R0{}.compose(Object.assign({baseName:`file-upload`,shadowOptions:void 0,styles:XHe,template:ZHe},QHe)),eUe=(e,t)=>O` ${B0} .filter-wrapper{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.close-icon{border: calc(var(--stroke-width) * 1px) solid transparent}.close-icon:hover{border-color: var(--error-color);background: color-mix(in srgb, var(--error-color), transparent 75%)}.close-icon:hover svg path{fill: var(--error-color)}rapid-select{margin-bottom: calc(var(--design-unit) * 2px)}.flex-row rapid-text-field, .flex-row rapid-select{flex: 1}`,tUe=T` ${U0(`rapid`)} `,nUe=class extends G0{}.compose({baseName:`filter`,template:tUe,styles:eUe}),rUe=(e,t)=>O` ${K0(e,t)} .toggle, .toggle-collapsed{background: var(--neutral-layer-4);color: var(--neutral-foreground-hint)}.toggle{border-top: calc(var(--stroke-width) * 2px) solid}.toggle:hover, .toggle-collapsed:hover{color: var(--accent-foreground-rest)}.filter-bar{background: var(--neutral-layer-3)}`,iUe=T` ${q0(`rapid`)} `,aUe=class extends J0{}.compose({baseName:`filter-bar`,template:iUe,styles:rUe}),{defaultConfig:oUe,shadowOptions:sUe,styles:cUe,template:lUe}=V7(Z0),uUe=()=>Z0(),dUe=class extends e2{}.compose(Object.assign({baseName:`flipper`,template:(e,t)=>Q0(e,t),styles:(e,t)=>O` ${$0(e,t)} :host{color: var(--neutral-foreground-rest)}:host(:hover){color: var(--neutral-foreground-rest)}:host::before{background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);color: var(--neutral-foreground-rest)}:host(:hover)::before{background: var(--accent-fill-rest);color: var(--neutral-foreground-rest)}`,shadowOptions:void 0},t2)),fUe=O` ${n2} div.flyout{background-color: var(--neutral-layer-1);border-color: var(--neutral-stroke-rest);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}div.background{padding: calc(var(--design-unit) * 4px) 0}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}:host([position='left']) div.flyout{border-right-style: solid;border-right-width: calc(var(--stroke-width) * 1px)}:host([position='right']) div.flyout{border-left-style: solid;border-left-width: calc(var(--stroke-width) * 1px)}div.exit{cursor: pointer;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);display: flex;justify-content: center;align-items: center}div.content, div.footer{padding: 0 0 calc(var(--design-unit) * 2px)}div.exit:hover{background-color: var(--neutral-fill-hover);border-radius: calc(var(--stroke-width) * 3px)}`,pUe=T` ${r2(`rapid`)} `,mUe=a2,hUe=class extends i2{}.compose(Object.assign({baseName:`flyout`,shadowOptions:void 0,styles:fUe,template:pUe},mUe)),{defaultConfig:gUe,shadowOptions:_Ue,styles:vUe,template:yUe}=V7(l2),bUe=()=>l2(),{defaultConfig:xUe,shadowOptions:SUe,styles:CUe,template:wUe}=V7(d2),TUe=()=>d2(),EUe=(e,t)=>O` ${p2(e,t)}`,DUe=(e,t)=>f2(e,t);var OUe=class extends m2{};let kUe={nextFlipper:T`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:T`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`},AUe=OUe.compose(Object.assign({baseName:`horizontal-scroll`,template:DUe,styles:EUe,shadowOptions:h2},kUe)),jUe=(e,t)=>O` ${g2(e,t)}`,MUe=T` ${_2(`rapid`)} `;var NUe=class extends x2{};let PUe=y2,FUe=v2,IUe=NUe.compose(Object.assign({baseName:`icon`,template:MUe,styles:jUe,shadowOptions:FUe},PUe)),LUe=class extends w2{}.compose(Object.assign({baseName:`listbox`,template:(e,t)=>S2(e,t),styles:(e,t)=>O` ${C2(e,t)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:void 0},T2)),RUe=class extends O2{}.compose(Object.assign({baseName:`option`,template:(e,t)=>E2(e,t),styles:(e,t)=>O` ${D2(e,t)} :host{border-radius: 0;padding: 0 calc(var(--design-unit) * 4px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host(.selected), :host(:not([disabled])[aria-selected='true']:active), :host(:not([disabled])[aria-selected='true']:hover){background: var(--neutral-layer-2);color: var(--accent-fill-rest);font-weight: 500}`,shadowOptions:void 0},k2)),zUe=class extends M2{}.compose(Object.assign({baseName:`menu`,template:(e,t)=>A2(e,t),styles:(e,t)=>O` ${j2(e,t)} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${al}, transparent 15%);padding: 0}`,shadowOptions:void 0},N2)),BUe=class extends I2{}.compose(Object.assign({baseName:`menu-item`,template:(e,t)=>P2(e,t),styles:(e,t)=>O` ${F2(e,t)} :host{margin: 0;--control-corner-radius: 0;background: var(--neutral-fill-stealth-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:hover){background: color-mix(in srgb, ${al}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${al}, transparent 15%)}:host(:focus){background: var(--neutral-fill-stealth-hover)}:host(.indent-0){border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}/* UX team wants border: solid 1px #2E3339;background: #2E3339 */ /* tokens being used by fast background: ${al} color: ${H} */`,shadowOptions:void 0},L2)),VUe=O` ${L9}`,HUe=B2,UUe=R2,WUe=z2,GUe=class extends V2{}.compose(Object.assign({baseName:`modal`,shadowOptions:WUe,styles:VUe,template:UUe},HUe)),KUe=O` ${Sw} .root{min-width: 0}.control{height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-height: 0;outline: none;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-family: var(--body-font);box-sizing: border-box}:host(:focus-within:not([disabled])) .control{outline: none;border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}.control:hover:not(:focus):not([disabled]){outline: none;border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}#display-field{min-height: unset;padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px);font-family: var(--body-font), sans-serif;font-size: var(--type-ramp-base-font-size);background-color: transparent}#display-field:focus{outline: none;background: unset}#display-field:hover:not(:focus):not([disabled]){outline: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);left: calc( 100% - ((var(--base-height-multiplier) * (var(--design-unit) - 1)) + (var(--design-unit) - 2)) * 1px );background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}#arrow-icon{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);fill: var(--neutral-foreground-rest)}.label{color: var(--neutral-foreground-hint)}.options{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);overflow-x: hidden}rapid-checkbox{border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);padding: calc((var(--design-unit) + 1) * 1px) 0 calc((var(--design-unit) + 1) * 1px) calc((var(--design-unit) + 1) * 1px);margin: 0}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}rapid-checkbox::part(label){overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap}rapid-checkbox[disabled]{cursor: not-allowed}`,qUe=T` ${Ew(`rapid`)} `;var JUe=class extends Ow{};let YUe=Dw,XUe=JUe.compose(Object.assign({baseName:`multiselect`,template:qUe,styles:KUe,shadowOptions:void 0},YUe)),ZUe=class extends x7{}.compose({baseName:`notification-listener`,template:b7,shadowOptions:{mode:`open`,delegatesFocus:!0}}),QUe=(e,t)=>O` :host{flex: 1 1 auto;box-sizing: border-box}:host([disabled]){opacity: var(--disabled-opacity);cursor: not-allowed}:host .control{height: 100%;width: 100%;border: none;background-color: transparent;padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);font-family: var(--body-font)}:host .root{display: flex;box-sizing: border-box;position: relative;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:focus-within:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{display: block;color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0;font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.label-hidden{margin: 0}.controls{position: absolute;right: 3px;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center;flex-direction: column;cursor: pointer}.step-down, .step-up{width: 1em;height: 1em;margin: -2px}.step-up-glyph, .step-down-glyph{fill: var(--neutral-foreground-hint)}.control:focus-visible{outline: none}:host .control-field .control{width: 100%}${M0}`;var $Ue=class extends i4{};let eWe=o4,tWe=H2,nWe=a4,rWe=$Ue.compose(Object.assign({baseName:`number-field`,template:tWe,styles:QUe,shadowOptions:nWe},eWe)),iWe=class extends l4{}.compose({baseName:`optgroup`,template:(e,t)=>c4(e,t),styles:(e,t)=>O` ${s4(e,t)}`}),aWe=class extends g4{}.compose(Object.assign({baseName:`system-health-overlay`,template:_4,styles:v4,shadowOptions:void 0},y4)),oWe=O` ${b4} :host{--pill-fill: ${Jc};--pill-fill-hover: ${Yc};--pill-foreground: ${H}}`,sWe=x4,cWe=class extends C4{}.compose(Object.assign({baseName:`pill`,template:sWe,styles:oWe,shadowOptions:void 0},S4)),lWe=class extends f4{}.compose(Object.assign({baseName:`progress`,template:(e,t)=>u4(e,t),styles:(e,t)=>O` ${d4(e,t)}`,shadowOptions:void 0},p4)),uWe=class extends C3{}.compose(Object.assign({baseName:`progress-ring`,template:(e,t)=>x3(e,t),styles:(e,t)=>O` ${S3(e,t)}`,shadowOptions:void 0},w3)),dWe=class extends D3{}.compose(Object.assign({baseName:`radio`,template:(e,t)=>T3(e,t),styles:(e,t)=>O` ${E3(e,t)} :host{margin: 0}:host .control{background: transparent}:host([aria-checked='true']) .control{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host .label{padding-inline-start: calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:hover{background: transparent}:host([aria-checked='true']:not([disabled])) .control:hover{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover)}.checked-indicator, :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},O3)),fWe=class extends j3{}.compose(Object.assign({baseName:`radio-group`,template:(e,t)=>k3(e,t),styles:(e,t)=>O` ${A3(e,t)}`,shadowOptions:void 0},M3)),pWe=O` ${N3} :host{font-family: var(--body-font)}`,mWe=T` ${P3(`rapid`)} `,hWe=class extends F3{}.compose(Object.assign({baseName:`scheduler`,template:mWe,styles:pWe,shadowOptions:void 0},I3)),gWe=O` ${G3} :host{font-family: var(--body-font)}`,_We=T` ${n6(`rapid`)} `,vWe=class extends r6{}.compose(Object.assign({baseName:`scheduler-cron-builder`,template:_We,styles:gWe,shadowOptions:void 0},i6)),yWe=O` ${a6} :host{font-family: var(--body-font)}`,bWe=T` ${o6(`rapid`)} `,xWe=class extends s6{}.compose(Object.assign({baseName:`scheduler-timezone`,template:bWe,styles:yWe,shadowOptions:void 0},c6)),SWe=O` ${l6}`,CWe=T` ${u6(`rapid`)} `,wWe=class extends d6{}.compose(Object.assign({baseName:`search-bar`,template:CWe,styles:SWe,shadowOptions:void 0},f6)),TWe=class extends h6{}.compose(Object.assign({baseName:`search-bar-combobox`,template:(e,t)=>m6(e,t),styles:(e,t)=>O` ${p6(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--neutral-stroke-rest));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}`,shadowOptions:g6},_6)),EWe=class extends w6{}.compose(Object.assign({baseName:`section-navigator`,template:y6,styles:(e,t)=>v6,shadowOptions:T6},E6)),DWe=class extends k6{}.compose(Object.assign({baseName:`segmented-control`,template:(e,t)=>D6(e,t),styles:(e,t)=>O` ${O6(e,t)} :host{font-family: var(--body-font);margin: 0}:host ::slotted(*){transition: color 0.4s ease 0s}:host ::slotted(label){color: var(--neutral-foreground-rest)}:host ::slotted(rapid-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}:host ::slotted(rapid-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}:host ::slotted(rapid-segmented-item:only-of-type){border-radius: calc(var(--control-corner-radius) * 1px);border-left-width: 1px;border-right-width: 1px}:host ::slotted(*[aria-checked='true']){background: var(--neutral-fill-rest);box-shadow: none;color: var(--neutral-foreground-rest)}:host([appearance='primary']) ::slotted(*[aria-checked='true']){background: var(--accent-fill-rest);border-color: transparent;box-shadow: none;color: var(--foreground-on-accent-rest)}`,shadowOptions:void 0},{})),OWe=class extends D3{}.compose(Object.assign({baseName:`segmented-item`,template:(e,t)=>A6(e,t),styles:(e,t)=>O` ${j6(e,t)} :host{color: var(--neutral-fill-strong-rest);font-size: var(--type-ramp-minus-2-font-size);font-weight: 500;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);box-sizing: border-box;height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin: 0}:host([aria-checked='true']){color: color-mix(in srgb, white, transparent 10%)}`,shadowOptions:void 0},{})),kWe=class extends P6{}.compose(Object.assign({baseName:`select`,template:(e,t)=>M6(e,t),styles:(e,t)=>O` ${N6(e,t)} :host{border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not(.open)){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.select-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s;min-width: unset;min-height: unset}.selected-value{display: flex;align-items: center;height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .select-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:void 0},F6)),AWe=class extends R6{}.compose(Object.assign({baseName:`skeleton`,template:(e,t)=>I6(e,t),styles:(e,t)=>O` ${L6(e,t)} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:void 0},z6)),jWe=class extends H6{}.compose(Object.assign({baseName:`slider`,template:(e,t)=>B6(e,t),styles:(e,t)=>O` ${V6(e,t)} .thumb-cursor{background: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 2px)}.thumb-cursor:hover, .thumb-cursor:focus, .thumb-cursor:active{background: var(--accent-fill-rest);border-radius: transparent}:host(:focus-visible) .thumb-cursor{box-shadow: 0 0 0 0}.thumb-cursor:hover::after, .thumb-cursor:focus::after, .thumb-cursor:active::after{content: '';height: calc(var(--thumb-size) * 2px);width: calc(var(--thumb-size) * 2px);border-radius: calc(var(--control-corner-radius) * 4px);position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: -1}.thumb-cursor:hover::after{background-color: color-mix(in srgb, ${Ec}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${Ec}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${Ec}, transparent 70%)}.track{background-color: var(--neutral-fill-rest)}:host([orientation='horizontal']) .track .track-progress{background-color: var(--neutral-stroke-rest);height: calc((var(--track-width) + 2) * 1px) !important}:host([orientation='vertical']) .track .track-progress{background-color: var(--neutral-stroke-rest);width: calc((var(--track-width) + 2) * 1px) !important}`,shadowOptions:void 0},U6)),MWe=class extends K6{}.compose(Object.assign({baseName:`slider-label`,template:(e,t)=>W6(e,t),styles:(e,t)=>O` ${G6(e,t)} .label{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-4);background-color: var(--neutral-fill-strong-hover);color: var(--neutral-layer-4);text-align: center;font-size: var(--type-ramp-minus-1-font-size, 12px)}`,shadowOptions:void 0},q6)),NWe=O` ${Z6} .snackbar{border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);background-color: var(--neutral-layer-1);padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 4px)}:host([type='error']) .snackbar::after{background-color: var(--error-color)}.content{font-family: var(--body-font);font-size: var(--type-ramp-minus-2-font-size);color: var(--neutral-foreground-rest)}.action{gap: calc(var(--design-unit) * 2px)}`,PWe=T` ${Q6(`rapid`)} `,FWe=$6,IWe=class extends e8{}.compose({baseName:`snackbar`,shadowOptions:FWe,styles:NWe,template:PWe}),LWe=class extends r8{}.compose({baseName:`stacking-icons`,template:n8,styles:(e,t)=>O` ${t8(e,t)}`}),RWe=class extends l8{}.compose({baseName:`status-pill`,template:a8,styles:i8}),zWe=O` ${L7} :host{font-family: var(--body-font)}:host([orientation='horizontal']){height: 100%}.stepper-tab-panel{border: none;height: auto}:host([orientation='horizontal']) .stepper-tab-panel{height: 100%}.stepper-tab{background-color: var(--neutral-layer-3);border: none}.stepper-panel-container{padding: calc(var(--design-unit) * 4px)}.action-buttons-container{padding: calc(var(--design-unit) * 2px);width: auto;gap: calc(var(--design-unit) * 2px)}.stepper-tab-menu{margin-bottom: calc(var(--design-unit) * 4px)}.stepper-tab-progress{padding: calc(var(--design-unit) * 4px) 0}label{padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-hint)}`,R9=T` ${I7(`rapid`)} `,BWe=class extends R7{}.compose(Object.assign({baseName:`stepper`,template:R9,styles:zWe,shadowOptions:void 0},z7)),VWe=(e,t)=>O` ${f8(e,t)} rapid-tree-item{--design-unit: 2.5;--neutral-fill-stealth-rest: var(--neutral-layer-3);--neutral-fill-stealth-hover: var(--fill-color);--neutral-fill-rest: var(--fill-color);--base-height-multiplier: 14.5;border-bottom: calc(var(--stroke-width) * 1px) solid var(--fill-color)}.completed-icon{color: var(--success-color)}.tree-item::part(positioning-region)::before{width: var(--tree-item-nested-width)}.stepper-icon{margin-right: calc(var(--design-unit) * 2px)}.error-icon{color: var(--error-color)}.step-number{font-size: var(--type-ramp-minus-1-font-size);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-title{font-size: var(--type-ramp-base-font-size)}.angle-icon{margin: 0 calc(var(--design-unit) * 4px)}:host([completed]) .step-number{border-color: var(--success-color);color: white;background-color: var(--success-color)}:host([completed]) .step-title{color: var(--success-color)}:host([error]) .step-number{border-color: var(--error-color);color: white;background-color: var(--error-color)}:host([error]) .step-title{color: var(--error-color)}`,HWe=T` ${d8(`rapid`)} `,UWe=class extends p8{}.compose(Object.assign({baseName:`stepper-tab`,template:HWe,styles:VWe,shadowOptions:void 0},m8)),WWe=class extends g8{}.compose(Object.assign({baseName:`stepper-tab-panel`,template:(e,t)=>h8(e,t),shadowOptions:void 0},_8)),GWe=class extends b8{}.compose(Object.assign({baseName:`switch`,template:(e,t)=>v8(e,t),styles:(e,t)=>O` ${y8(e,t)} :host{--primary-gradient-angle: -113.5deg}.switch{background: none;border-color: var(--neutral-stroke-rest)}.checked-indicator{background-color: var(--neutral-stroke-rest)}.switch:hover{border-color: var(--neutral-stroke-rest);background: none}:host([aria-checked='true']) .switch{background: none}:host([aria-checked='true']) .checked-indicator{background: var(--accent-fill-rest)}:host([aria-checked='true']:not([disabled])) .switch:hover, :host([aria-checked='true']:not([disabled])) .switch:active{background: none}:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator, :host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`})),KWe=class extends C8{}.compose(Object.assign({baseName:`tab`,template:(e,t)=>x8(e,t),styles:(e,t)=>O` ${S8(e,t)} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px);box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);margin-right: calc(var(--design-unit) * 5px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host([aria-selected='true']), :host([aria-selected='true']:hover){background-color: var(--neutral-layer-4);font-weight: 700}/* * Sustained alert, sampling the flash phase the platform animates on the document. Every * alerting surface reads that one value, so tabs and grid rows brighten and fade together * however long ago each of them started alerting. * * Mixing towards transparent and currentColor lets the tab fade back to its own resting * colours, so selected and unselected tabs each return to the right background. * * !important because a :host rule loses to any app stylesheet that colours tabs from the light * DOM, and an alert nobody can see is worse than no alert. */ :host([alert]){background-color: color-mix( in srgb, var(--tab-alert-color, var(--error-fill-rest)) calc(var(${O0}, 0) * 100%), transparent ) !important;color: color-mix( in srgb, contrast-color(var(--tab-alert-color, var(--error-fill-rest))) calc(var(${O0}, 0) * 100%), currentColor ) !important}/* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */ @media (prefers-reduced-motion: reduce){:host([alert]){background-color: var(--tab-alert-color, var(--error-fill-rest)) !important;color: contrast-color(var(--tab-alert-color, var(--error-fill-rest))) !important}}`,shadowOptions:void 0},w8)),qWe=class extends D8{}.compose(Object.assign({baseName:`tab-panel`,template:(e,t)=>T8(e,t),styles:(e,t)=>O` ${E8(e,t)} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px)) var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));border-style: solid;border-width: var(--tabs-border-width, 1px);border-color: var(--tabs-border-color, var(--neutral-stroke-rest))}`,shadowOptions:void 0},O8)),JWe=class extends j8{}.compose(Object.assign({baseName:`tabs`,template:(e,t)=>k8(e,t),styles:(e,t)=>O` ${A8(e,t)} :host{background: var(--neutral-layer-3);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:not([appearance='secondary'])){background: var(--rapid-layout-item-background, var(--neutral-layer-3));border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, 0)}:host([appearance='secondary']){background: transparent}:host .tablist{padding: 0;display: grid;width: max-content;margin-top: 0}:host .tabpanel{height: 100%;min-height: 0}:host([appearance='secondary']) .tablist{margin-bottom: 0}:host .end, :host .start{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);height: calc(100% - 1px);display: flex;align-items: center}::slotted([slot='tab']:hover){color: var(--neutral-foreground-rest);background: var(--neutral-layer-1)}::slotted([role='tab']){border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;background: var(--tab-rest-background-color, var(--neutral-layer-4));padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin-right: 2px;box-shadow: none;font-size: var(--type-ramp-minus-1-font-size);border-style: solid;border-width: var(--tab-rest-border-width, 1px);border-color: var(--tab-rest-border-color, transparent)}::slotted([role='tab'][aria-selected='true']:not([appearance='secondary'])){border-style: solid;border-width: var(--tab-active-border-width, 1px 1px 0 1px);border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));background: var(--tab-active-background-color, var(--neutral-layer-card-container))}::slotted([role='tab'][aria-selected='true']){color: var(--accent-foreground-rest);background: var(--neutral-layer-card-container)}/* stylelint-disable selector-class-pattern */ .activeIndicator{display: none}:host([appearance='secondary']) .tablist .activeIndicator{display: block;height: 1px;margin-top: unset}::slotted([role='tab'][aria-selected='true'][appearance='secondary']){background: none}::slotted([role='tab'][appearance='secondary']){margin-left: 0;box-shadow: none;background: none}:host([appearance='secondary']:hover){color: var(--neutral-foreground-rest);background: none}:host([appearance='secondary']) ::slotted([role='tabpanel']){border: 0}`,shadowOptions:void 0},M8)),YWe=class extends F8{}.compose(Object.assign({baseName:`text-area`,template:(e,t)=>N8(e,t),styles:(e,t)=>O` ${P8(e,t)} :host{display: grid;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);padding: calc(var(--design-unit) * 2px)}:host(:hover:not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}`,shadowOptions:void 0},I8)),XWe=class extends z8{}.compose(Object.assign({baseName:`text-field`,template:(e,t)=>L8(e,t),styles:(e,t)=>O` ${R8(e,t)} :host{display: block;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}:host .control-field .control{width: 100%}:host .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}:host input::placeholder{color: var(--neutral-foreground-hint);opacity: 75%}`,shadowOptions:B8},V8)),ZWe=O` ${H8} .toast{background-color: ${_c};border-radius: calc(var(--control-corner-radius) * 2px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.top{align-items: flex-start}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}.content{font-size: var(--type-ramp-minus-1-font-size)}.date{margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}.content-wrapper{padding: calc(var(--design-unit) * 2px)}.toast::after{background-color: var(--accent-fill-rest);border-radius: 0;height: calc(100% - calc(var(--design-unit) * 5px));margin: calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}:host([notify='warning']) .toast::after{background-color: var(--warning-color)}:host([notify='success']) .toast::after{background-color: var(--success-color)}:host([notify='critical']) .toast::after, :host([notify='serious']) .toast::after, :host([notify='error']) .toast::after{background-color: var(--error-color)}`,QWe=G8,$We=W8,eGe=class extends K8{}.compose(Object.assign({baseName:`toast`,shadowOptions:$We,styles:ZWe,template:U8},QWe)),tGe=class extends Y8{}.compose(Object.assign({baseName:`toolbar`,template:(e,t)=>q8(e,t),styles:(e,t)=>O` ${J8(e,t)} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:void 0},X8)),nGe=class extends $8{}.compose(Object.assign({baseName:`tooltip`,template:(e,t)=>Z8(e,t),styles:(e,t)=>O` ${Q8(e,t)} :host{visibility: visible}.tooltip{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);text-align: center;white-space: inherit;font-weight: 400}rapid-anchored-region.bottom .tooltip{margin-top: calc(var(--design-unit) * 1px);margin-left: calc(var(--design-unit) * 2px)}rapid-anchored-region.top.right .tooltip, rapid-anchored-region.bottom.right .tooltip{margin-left: 0}`,shadowOptions:void 0},e5)),rGe=class extends r5{}.compose(Object.assign({baseName:`tree-item`,template:(e,t)=>t5(e,t),styles:(e,t)=>O` ${n5(e,t)} :host{font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest);background-color: transparent}:host(.nested) .expand-collapse-button{background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);width: calc(var(--design-unit) * 5px);height: calc(var(--design-unit) * 5px);margin-left: calc(var(--design-unit) * 2px)}:host([selected]) .positioning-region{background: var(--neutral-fill-stealth-active)}.positioning-region::before{width: calc(var(--design-unit) * 1px)}:host([selected])::after{background: var(--accent-fill-rest);background-origin: border-box;background-size: cover;background-repeat: no-repeat}:host([slot='item']) .content-region{margin-inline-start: calc(var(--design-unit) * 4px + var(--expand-collapse-button-size))}.expand-collapse-glyph{width: calc(var(--design-unit) * 3px);height: calc(var(--design-unit) * 3px)}`,shadowOptions:void 0},{expandCollapseGlyph:`
|
|
1007
1007
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">
|
|
1008
1008
|
<path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>
|
|
1009
|
-
</svg>`})),
|
|
1009
|
+
</svg>`})),iGe=class extends o5{}.compose(Object.assign({baseName:`tree-view`,template:(e,t)=>i5(e,t),styles:(e,t)=>O` ${a5(e,t)}`,shadowOptions:void 0},s5)),aGe=(e,t)=>O` ${c5(e,t)} a{color: var(--accent-fill-rest);opacity: 65%}a:hover{opacity: 100%}.url-input-link{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px)}`,oGe=T` ${l5(`rapid`)} `,sGe=class extends d5{}.compose(Object.assign({baseName:`url-input`,template:oGe,styles:aGe,shadowOptions:void 0},u5)),cGe=O` ${f5} .digit .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}.digit .control-field .control{width: 100%}.digit .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit:hover:not(.disabled) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}.digit:focus-within:not(.disabled) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}`,lGe=p5;var uGe=class extends _5{};let dGe=h5,fGe=m5,z9={designSystemProvider:NHe,rapidAccordion:BRe,rapidAccordionItem:VRe,rapidAiCriteriaSearch:WRe,rapidAiIndicator:GRe,rapidActionsMenu:HRe,rapidAnchor:oze,rapidSectionNavigator:EWe,rapidAnchoredRegion:sze,rapidAvatar:cze,rapidBadge:lze,rapidBanner:fze,rapidBreadcrumb:pze,rapidBreadcrumbItem:mze,rapidButton:hze,rapidCalendar:gze,rapidCard:_ze,rapidCategorizedMultiselect:Sze,rapidCheckbox:Cze,rapidCombobox:wze,rapidConnectionIndicator:Tze,rapidDataGrid:Aze,rapidDataGridCell:Fze,rapidDataGridRow:Bze,rapidDatePicker:Uze,rapidDialog:LHe,rapidDisclosure:RHe,rapidDivider:zHe,rapidDropdownMenu:BHe,rapidEnvironmentIndicator:HHe,rapidErrorBoundary:qHe,rapidFileReader:YHe,rapidFileUpload:$He,rapidFilter:nUe,rapidFilterBar:aUe,rapidFlexLayout:uUe,rapidFlipper:dUe,rapidFlyout:hUe,rapidGridLayout:bUe,rapidGridLayoutItem:TUe,rapidHorizontalScroll:AUe,rapidIcon:IUe,rapidListbox:LUe,rapidListboxOption:RUe,rapidMenu:zUe,rapidMenuItem:BUe,rapidModal:GUe,rapidMultiselect:XUe,rapidNotificationListener:ZUe,rapidNumberField:rWe,rapidOptgroup:iWe,rapidPill:cWe,rapidProgress:lWe,rapidProgressRing:uWe,rapidRadio:dWe,rapidRadioGroup:fWe,rapidScheduler:hWe,rapidSchedulerCronBuilder:vWe,rapidSchedulerTimezone:xWe,rapidSearchBar:wWe,rapidSearchBarCombobox:TWe,rapidSegmentedControl:DWe,rapidSegmentedItem:OWe,rapidSelect:kWe,rapidSkeleton:AWe,rapidSlider:jWe,rapidSliderLabel:MWe,rapidSnackbar:IWe,rapidStackingIcons:LWe,rapidStatusPill:RWe,rapidStepper:BWe,rapidStepperTab:UWe,rapidStepperTabPanel:WWe,rapidSwitch:GWe,rapidSystemHealthOverlay:aWe,rapidTab:KWe,rapidTabPanel:qWe,rapidTabs:JWe,rapidTextArea:YWe,rapidTextField:XWe,rapidToast:eGe,rapidToolbar:tGe,rapidTooltip:nGe,rapidTreeItem:rGe,rapidTreeView:iGe,rapidUrlInput:sGe,rapidVerificationCodeInput:uGe.compose(Object.assign({baseName:`verification-code-input`,template:lGe,styles:cGe,shadowOptions:fGe},dGe)),register(e,...t){if(e)for(let n in this)n!==`register`&&this[n]().register(e,...t)}},B9=(e,t=`rapid`)=>m4(e,t,F9,C9),V9=Yo(`#585858`);$o.create(V9.r,V9.g,V9.b);let H9=Yo(`#202126`),pGe=$o.create(H9.r,H9.g,H9.b);is.from(pGe);function U9(e,...t){let n=``;return e.forEach((e,r)=>{n+=e,r<t.length&&(n+=t[r])}),n}let W9={number:`rapid-number-field`,text:`rapid-text-field`,date:`rapid-text-field`,datetimeLocal:`rapid-text-field`,checkbox:`rapid-checkbox`,button:`rapid-button`,select:`rapid-select`,option:`rapid-option`,optgroup:`rapid-optgroup`,radio:{input:`rapid-radio`,group:`rapid-radio-group`}},G9=U9` rapid-select, rapid-text-field, rapid-number-field{min-width: 180px}rapid-button.btn{padding: 0}rapid-button.btn-success{background-color: var(--accent-fill-active);border-color: var(--accent-fill-active)}rapid-button.btn-danger{background-color: var(--error-color);border-color: var(--error-border-color)}rapid-select::part(listbox){max-height: 15vh}`,K9=U9` border: unset;border: 1px solid var(--focus-stroke-outer);padding: calc(var(--design-unit) * 2.5px);border-radius: 10px;margin: calc(var(--design-unit) * 1px);`,q9={value:U9` ${G9} rapid-number-field, rapid-text-field{margin-bottom: 0}rapid-number-field::part(label){display: none}p.validation-msg{color: var(--neutral-foreground-rest)}`,rule:U9` ${G9} div.rule-container{${K9}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:U9` ${G9} rapid-select{min-width: 350px}`,field:U9` ${G9} rapid-select{min-width: 350px}`,group:U9` ${G9} div.rules-group-container{${K9}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`},J9=class extends J5{constructor(){super(...arguments),this.styles={customElements:W9,customStyles:q9}}};q([C],J9.prototype,`styles`,void 0),J9=q([$e({name:`rapid-expression-builder`,styles:l7.styles,template:l7.template})],J9);let Y9=class extends h7{constructor(){super(...arguments),this.styles={customElements:W9,customStyles:q9}}};q([C],Y9.prototype,`styles`,void 0),Y9=q([$e({name:`rapid-rule-expression-builder`,styles:l7.styles,template:l7.template})],Y9);let X9=class extends y7{constructor(){super(...arguments),this.styles={customElements:W9,customStyles:q9}}};q([C],X9.prototype,`styles`,void 0),X9=q([$e({name:`rapid-value-expression-builder`,styles:l7.styles,template:l7.template})],X9),O` ${`/* ============================================================================
|
|
1010
1010
|
* flexlayout-react base theme — VENDORED from flexlayout-react@0.10.8 (style/dark.css).
|
|
1011
1011
|
* ========================================================================== */
|
|
1012
1012
|
@charset "UTF-8";
|
|
@@ -2363,4 +2363,4 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
|
|
|
2363
2363
|
&.flexlayout__tab_button--selected {
|
|
2364
2364
|
border: 0;
|
|
2365
2365
|
}
|
|
2366
|
-
}`}`;let Z9=()=>B9().register(z9),
|
|
2366
|
+
}`}`;let Z9=()=>B9().register(z9),mGe={LightMode:1,DarkMode:.23},hGe={baseLayerLuminance:fs,fillColor:Cc,accentPalette:mc,neutralPalette:fc,errorColor:q7,successColor:X7,warningColor:$7,infoColor:c9,buyColor:n9,sellColor:a9,seriousNotifyColor:d9,designUnit:B,baseHeightMultiplier:ds,density:ps,controlCornerRadius:z,bodyFont:us},Q9=`rapid-design-system-provider`,gGe=()=>{if(document.querySelector(Q9))return;let e=document.createElement(Q9);e.setAttribute(`with-defaults`,``),e.style.display=`block`;let t=document.createDocumentFragment();for(;document.body.firstChild;)t.appendChild(document.body.firstChild);e.appendChild(t),document.body.appendChild(e)},$9=()=>{Z9(),gGe()};if(typeof document<`u`){document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,$9,{once:!0}):$9();let e=window;e.rapid=Object.assign(e.rapid||{},{provideDesignSystem:B9,baseComponents:z9,registerRapidDesignSystem:Z9,tokens:hGe,StandardLuminance:mGe,docsUrl:`https://cdn.jsdelivr.net/npm/@genesislcap/foundation-rapid-cdn/components.md`,aiReference:`AI ASSISTANTS: When generating React code that uses Genesis Rapid Design System components, fetch https://cdn.jsdelivr.net/npm/@genesislcap/foundation-rapid-cdn/components.md for the component reference. In a normal app, import wrappers from @genesislcap/rapid-design-system/react (PascalCase: Button, TextField, …). In a Claude artifact, also load https://cdn.jsdelivr.net/npm/@genesislcap/foundation-rapid-cdn/dist/foundation-rapid-cdn.react.iife.min.js (after this main bundle and after React) — wrappers are exposed on window.rapid.react — destructure from there: const { Button, TextField } = window.rapid.react. Either way, do not emit raw <rapid-*> web component tags in JSX when wrappers are available.`})}return e.baseComponents=z9,e.provideDesignSystem=B9,e.registerRapidDesignSystem=Z9,e})({});
|