@genesislcap/foundation-rapid-cdn 14.485.0 → 14.486.0
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.
|
@@ -95,7 +95,7 @@ function mz(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o
|
|
|
95
95
|
Save Data </a>`)}<a href="#" class="reload-window-button" @click="${e=>e.onReloadWindow()}">
|
|
96
96
|
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=>wi(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>${He(e=>e.status.username,W`<div class="username"><dt>Username</dt><dd>${e=>e.status.username}</dd></div>`)}<div class="platform-type"><dt>Platform Type</dt><dd>${e=>{var t;return wi(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd></div><div class="os-name"><dt>OS Name</dt><dd>${e=>{var t;return wi(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd></div><div class="os-version"><dt>OS Version</dt><dd>${e=>{var t;return null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.version}}</dd></div></div><div class="attributes"><div class="browser-name"><dt>Browser Name</dt><dd>${e=>{var t;return wi(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd></div><div class="browser-version"><dt>Browser Version</dt><dd>${e=>{var t;return null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.version}}</dd></div><div class="first-updated"><dt>First updated</dt><dd>${e=>Zf(e.status.firstUpdated)}</dd></div><div class="last-updated"><dt>Last updated</dt><dd>${e=>Zf(e.status.lastUpdated)}</dd></div>${He(e=>!e.status.socket.reconnectionLimitReached,W`<div class="next-update"><dt>Next update</dt><dd>${e=>Zf(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=>CJ.getCheckmarkTemplate(e.status.isOnline)}</div></div></dl></section><section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section"><h2>WebSocket ${e=>wi(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=>CJ.getCheckmarkTemplate(e.isSocketHealthy)}</div></div></dl></section><section class="resource-section ${e=>e.resourcesAllConnectedClassNames}" part="resource-section"><h2>Resources ${e=>wi(e.resourcesAllConnectedClassNames)}</h2><dl class="resource-list">${qe(e=>e.resourceList,W`<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=>Zf(e.lastUpdated)}</dd></div><div class="subscriptions"><dt>Subscriptions</dt><dd>${e=>{var t;return null===(t=e.sourceRef)||void 0===t?void 0:t.length}}</dd></div><div class="source-refs"><dt>Source Refs</dt><dd>${e=>e.sourceRef}</dd></div></div><div class="controls">${e=>CJ.getCheckmarkTemplate(e.isConnected)}</div></div>`)}</dl></section></div></template>`,MJ=(e,t)=>Ce` :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)}`,wJ=void 0,kJ={};CJ.compose(Object.assign({baseName:"system-health-overlay",template:LJ,styles:MJ,shadowOptions:wJ},kJ));var SJ="top",$J="bottom",EJ="right",NJ="left",AJ="auto",TJ=[SJ,$J,EJ,NJ],OJ="start",RJ="end",IJ="viewport",DJ="popper",FJ=TJ.reduce(function(e,t){return e.concat([t+"-"+OJ,t+"-"+RJ])},[]),_J=[].concat(TJ,[AJ]).reduce(function(e,t){return e.concat([t,t+"-"+OJ,t+"-"+RJ])},[]),HJ=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function PJ(e){return e?(e.nodeName||"").toLowerCase():null}function VJ(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function BJ(e){return e instanceof VJ(e).Element||e instanceof Element}function UJ(e){return e instanceof VJ(e).HTMLElement||e instanceof HTMLElement}function jJ(e){return"undefined"!=typeof ShadowRoot&&(e instanceof VJ(e).ShadowRoot||e instanceof ShadowRoot)}var qJ={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},o=t.attributes[e]||{},c=t.elements[e];UJ(c)&&PJ(c)&&(Object.assign(c.style,i),Object.keys(o).forEach(function(e){var t=o[e];!1===t?c.removeAttribute(e):c.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],c=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});UJ(o)&&PJ(o)&&(Object.assign(o.style,s),Object.keys(c).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function GJ(e){return e.split("-")[0]}var WJ=Math.max,YJ=Math.min,KJ=Math.round;function ZJ(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function QJ(){return!/^((?!chrome|android).)*safari/i.test(ZJ())}function XJ(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var o=e.getBoundingClientRect(),c=1,s=1;t&&UJ(e)&&(c=e.offsetWidth>0&&KJ(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&KJ(o.height)/e.offsetHeight||1);var a=(BJ(e)?VJ(e):window).visualViewport,n=!QJ()&&i,r=(o.left+(n&&a?a.offsetLeft:0))/c,l=(o.top+(n&&a?a.offsetTop:0))/s,d=o.width/c,h=o.height/s;return{width:d,height:h,top:l,right:r+d,bottom:l+h,left:r,x:r,y:l}}function JJ(e){var t=XJ(e),i=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:o}}function e1(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&jJ(i)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function t1(e){return VJ(e).getComputedStyle(e)}function i1(e){return["table","td","th"].indexOf(PJ(e))>=0}function o1(e){return((BJ(e)?e.ownerDocument:e.document)||window.document).documentElement}function c1(e){return"html"===PJ(e)?e:e.assignedSlot||e.parentNode||(jJ(e)?e.host:null)||o1(e)}function s1(e){return UJ(e)&&"fixed"!==t1(e).position?e.offsetParent:null}function a1(e){for(var t=VJ(e),i=s1(e);i&&i1(i)&&"static"===t1(i).position;)i=s1(i);return i&&("html"===PJ(i)||"body"===PJ(i)&&"static"===t1(i).position)?t:i||function(e){var t=/firefox/i.test(ZJ());if(/Trident/i.test(ZJ())&&UJ(e)&&"fixed"===t1(e).position)return null;var i=c1(e);for(jJ(i)&&(i=i.host);UJ(i)&&["html","body"].indexOf(PJ(i))<0;){var o=t1(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}(e)||t}function n1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function r1(e,t,i){return WJ(e,YJ(t,i))}function l1(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function d1(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}var h1={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,o=e.name,c=e.options,s=i.elements.arrow,a=i.modifiersData.popperOffsets,n=GJ(i.placement),r=n1(n),l=[NJ,EJ].indexOf(n)>=0?"height":"width";if(s&&a){var d=function(e,t){return l1("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:d1(e,TJ))}(c.padding,i),h=JJ(s),u="y"===r?SJ:NJ,f="y"===r?$J:EJ,p=i.rects.reference[l]+i.rects.reference[r]-a[r]-i.rects.popper[l],m=a[r]-i.rects.reference[r],g=a1(s),v=g?"y"===r?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,y=d[u],z=v-h[l]-d[f],x=v/2-h[l]/2+b,C=r1(y,x,z),L=r;i.modifiersData[o]=((t={})[L]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,i=e.options.element,o=void 0===i?"[data-popper-arrow]":i;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&e1(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function u1(e){return e.split("-")[1]}var f1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p1(e){var t,i=e.popper,o=e.popperRect,c=e.placement,s=e.variation,a=e.offsets,n=e.position,r=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=a.x,f=void 0===u?0:u,p=a.y,m=void 0===p?0:p,g="function"==typeof d?d({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=NJ,z=SJ,x=window;if(l){var C=a1(i),L="clientHeight",M="clientWidth";if(C===VJ(i)&&"static"!==t1(C=o1(i)).position&&"absolute"===n&&(L="scrollHeight",M="scrollWidth"),c===SJ||(c===NJ||c===EJ)&&s===RJ)z=$J,m-=(h&&C===x&&x.visualViewport?x.visualViewport.height:C[L])-o.height,m*=r?1:-1;if(c===NJ||(c===SJ||c===$J)&&s===RJ)y=EJ,f-=(h&&C===x&&x.visualViewport?x.visualViewport.width:C[M])-o.width,f*=r?1:-1}var w,k=Object.assign({position:n},l&&f1),S=!0===d?function(e,t){var i=e.x,o=e.y,c=t.devicePixelRatio||1;return{x:KJ(i*c)/c||0,y:KJ(o*c)/c||0}}({x:f,y:m},VJ(i)):{x:f,y:m};return f=S.x,m=S.y,r?Object.assign({},k,((w={})[z]=b?"0":"",w[y]=v?"0":"",w.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",w)):Object.assign({},k,((t={})[z]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var m1={passive:!0};var g1={left:"right",right:"left",bottom:"top",top:"bottom"};function v1(e){return e.replace(/left|right|bottom|top/g,function(e){return g1[e]})}var b1={start:"end",end:"start"};function y1(e){return e.replace(/start|end/g,function(e){return b1[e]})}function z1(e){var t=VJ(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x1(e){return XJ(o1(e)).left+z1(e).scrollLeft}function C1(e){var t=t1(e),i=t.overflow,o=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+c+o)}function L1(e){return["html","body","#document"].indexOf(PJ(e))>=0?e.ownerDocument.body:UJ(e)&&C1(e)?e:L1(c1(e))}function M1(e,t){var i;void 0===t&&(t=[]);var o=L1(e),c=o===(null==(i=e.ownerDocument)?void 0:i.body),s=VJ(o),a=c?[s].concat(s.visualViewport||[],C1(o)?o:[]):o,n=t.concat(a);return c?n:n.concat(M1(c1(a)))}function w1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k1(e,t,i){return t===IJ?w1(function(e,t){var i=VJ(e),o=o1(e),c=i.visualViewport,s=o.clientWidth,a=o.clientHeight,n=0,r=0;if(c){s=c.width,a=c.height;var l=QJ();(l||!l&&"fixed"===t)&&(n=c.offsetLeft,r=c.offsetTop)}return{width:s,height:a,x:n+x1(e),y:r}}(e,i)):BJ(t)?function(e,t){var i=XJ(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):w1(function(e){var t,i=o1(e),o=z1(e),c=null==(t=e.ownerDocument)?void 0:t.body,s=WJ(i.scrollWidth,i.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),a=WJ(i.scrollHeight,i.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),n=-o.scrollLeft+x1(e),r=-o.scrollTop;return"rtl"===t1(c||i).direction&&(n+=WJ(i.clientWidth,c?c.clientWidth:0)-s),{width:s,height:a,x:n,y:r}}(o1(e)))}function S1(e,t,i,o){var c="clippingParents"===t?function(e){var t=M1(c1(e)),i=["absolute","fixed"].indexOf(t1(e).position)>=0&&UJ(e)?a1(e):e;return BJ(i)?t.filter(function(e){return BJ(e)&&e1(e,i)&&"body"!==PJ(e)}):[]}(e):[].concat(t),s=[].concat(c,[i]),a=s[0],n=s.reduce(function(t,i){var c=k1(e,i,o);return t.top=WJ(c.top,t.top),t.right=YJ(c.right,t.right),t.bottom=YJ(c.bottom,t.bottom),t.left=WJ(c.left,t.left),t},k1(e,a,o));return n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function $1(e){var t,i=e.reference,o=e.element,c=e.placement,s=c?GJ(c):null,a=c?u1(c):null,n=i.x+i.width/2-o.width/2,r=i.y+i.height/2-o.height/2;switch(s){case SJ:t={x:n,y:i.y-o.height};break;case $J:t={x:n,y:i.y+i.height};break;case EJ:t={x:i.x+i.width,y:r};break;case NJ:t={x:i.x-o.width,y:r};break;default:t={x:i.x,y:i.y}}var l=s?n1(s):null;if(null!=l){var d="y"===l?"height":"width";switch(a){case OJ:t[l]=t[l]-(i[d]/2-o[d]/2);break;case RJ:t[l]=t[l]+(i[d]/2-o[d]/2)}}return t}function E1(e,t){void 0===t&&(t={});var i=t,o=i.placement,c=void 0===o?e.placement:o,s=i.strategy,a=void 0===s?e.strategy:s,n=i.boundary,r=void 0===n?"clippingParents":n,l=i.rootBoundary,d=void 0===l?IJ:l,h=i.elementContext,u=void 0===h?DJ:h,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,v=l1("number"!=typeof g?g:d1(g,TJ)),b=u===DJ?"reference":DJ,y=e.rects.popper,z=e.elements[p?b:u],x=S1(BJ(z)?z:z.contextElement||o1(e.elements.popper),r,d,a),C=XJ(e.elements.reference),L=$1({reference:C,element:y,strategy:"absolute",placement:c}),M=w1(Object.assign({},y,L)),w=u===DJ?M:C,k={top:x.top-w.top+v.top,bottom:w.bottom-x.bottom+v.bottom,left:x.left-w.left+v.left,right:w.right-x.right+v.right},S=e.modifiersData.offset;if(u===DJ&&S){var $=S[c];Object.keys(k).forEach(function(e){var t=[EJ,$J].indexOf(e)>=0?1:-1,i=[SJ,$J].indexOf(e)>=0?"y":"x";k[e]+=$[i]*t})}return k}function N1(e,t){void 0===t&&(t={});var i=t,o=i.placement,c=i.boundary,s=i.rootBoundary,a=i.padding,n=i.flipVariations,r=i.allowedAutoPlacements,l=void 0===r?_J:r,d=u1(o),h=d?n?FJ:FJ.filter(function(e){return u1(e)===d}):TJ,u=h.filter(function(e){return l.indexOf(e)>=0});0===u.length&&(u=h);var f=u.reduce(function(t,i){return t[i]=E1(e,{placement:i,boundary:c,rootBoundary:s,padding:a})[GJ(i)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var A1={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var c=i.mainAxis,s=void 0===c||c,a=i.altAxis,n=void 0===a||a,r=i.fallbackPlacements,l=i.padding,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,v=GJ(g),b=r||(v===g||!p?[v1(g)]:function(e){if(GJ(e)===AJ)return[];var t=v1(e);return[y1(e),t,y1(t)]}(g)),y=[g].concat(b).reduce(function(e,i){return e.concat(GJ(i)===AJ?N1(t,{placement:i,boundary:d,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:m}):i)},[]),z=t.rects.reference,x=t.rects.popper,C=new Map,L=!0,M=y[0],w=0;w<y.length;w++){var k=y[w],S=GJ(k),$=u1(k)===OJ,E=[SJ,$J].indexOf(S)>=0,N=E?"width":"height",A=E1(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:l}),T=E?$?EJ:NJ:$?$J:SJ;z[N]>x[N]&&(T=v1(T));var O=v1(T),R=[];if(s&&R.push(A[S]<=0),n&&R.push(A[T]<=0,A[O]<=0),R.every(function(e){return e})){M=k,L=!1;break}C.set(k,R)}if(L)for(var I=function(e){var t=y.find(function(t){var i=C.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return M=t,"break"},D=p?3:1;D>0;D--){if("break"===I(D))break}t.placement!==M&&(t.modifiersData[o]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function T1(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function O1(e){return[SJ,EJ,$J,NJ].some(function(t){return e[t]>=0})}var R1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,o=e.name,c=i.offset,s=void 0===c?[0,0]:c,a=_J.reduce(function(e,i){return e[i]=function(e,t,i){var o=GJ(e),c=[NJ,SJ].indexOf(o)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=s[0],n=s[1];return a=a||0,n=(n||0)*c,[NJ,EJ].indexOf(o)>=0?{x:n,y:a}:{x:a,y:n}}(i,t.rects,s),e},{}),n=a[t.placement],r=n.x,l=n.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=r,t.modifiersData.popperOffsets.y+=l),t.modifiersData[o]=a}};var I1={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,o=e.name,c=i.mainAxis,s=void 0===c||c,a=i.altAxis,n=void 0!==a&&a,r=i.boundary,l=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=E1(t,{boundary:r,rootBoundary:l,padding:h,altBoundary:d}),v=GJ(t.placement),b=u1(t.placement),y=!b,z=n1(v),x="x"===z?"y":"x",C=t.modifiersData.popperOffsets,L=t.rects.reference,M=t.rects.popper,w="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(C){if(s){var E,N="y"===z?SJ:NJ,A="y"===z?$J:EJ,T="y"===z?"height":"width",O=C[z],R=O+g[N],I=O-g[A],D=f?-M[T]/2:0,F=b===OJ?L[T]:M[T],_=b===OJ?-M[T]:-L[T],H=t.elements.arrow,P=f&&H?JJ(H):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=V[N],U=V[A],j=r1(0,L[T],P[T]),q=y?L[T]/2-D-j-B-k.mainAxis:F-j-B-k.mainAxis,G=y?-L[T]/2+D+j+U+k.mainAxis:_+j+U+k.mainAxis,W=t.elements.arrow&&a1(t.elements.arrow),Y=W?"y"===z?W.clientTop||0:W.clientLeft||0:0,K=null!=(E=null==S?void 0:S[z])?E:0,Z=O+G-K,Q=r1(f?YJ(R,O+q-K-Y):R,O,f?WJ(I,Z):I);C[z]=Q,$[z]=Q-O}if(n){var X,J="x"===z?SJ:NJ,ee="x"===z?$J:EJ,te=C[x],ie="y"===x?"height":"width",oe=te+g[J],ce=te-g[ee],se=-1!==[SJ,NJ].indexOf(v),ae=null!=(X=null==S?void 0:S[x])?X:0,ne=se?oe:te-L[ie]-M[ie]-ae+k.altAxis,re=se?te+L[ie]+M[ie]-ae-k.altAxis:ce,le=f&&se?function(e,t,i){var o=r1(e,t,i);return o>i?i:o}(ne,te,re):r1(f?ne:oe,te,f?re:ce);C[x]=le,$[x]=le-te}t.modifiersData[o]=$}},requiresIfExists:["offset"]};function D1(e,t,i){void 0===i&&(i=!1);var o,c,s=UJ(t),a=UJ(t)&&function(e){var t=e.getBoundingClientRect(),i=KJ(t.width)/e.offsetWidth||1,o=KJ(t.height)/e.offsetHeight||1;return 1!==i||1!==o}(t),n=o1(t),r=XJ(e,a,i),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!i)&&(("body"!==PJ(t)||C1(n))&&(l=(o=t)!==VJ(o)&&UJ(o)?{scrollLeft:(c=o).scrollLeft,scrollTop:c.scrollTop}:z1(o)),UJ(t)?((d=XJ(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):n&&(d.x=x1(n))),{x:r.left+l.scrollLeft-d.x,y:r.top+l.scrollTop-d.y,width:r.width,height:r.height}}function F1(e){var t=new Map,i=new Set,o=[];function c(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var o=t.get(e);o&&c(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||c(e)}),o}var _1={placement:"bottom",modifiers:[],strategy:"absolute"};function H1(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function P1(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,o=void 0===i?[]:i,c=t.defaultOptions,s=void 0===c?_1:c;return function(e,t,i){void 0===i&&(i=s);var c,a,n={placement:"bottom",orderedModifiers:[],options:Object.assign({},_1,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},r=[],l=!1,d={state:n,setOptions:function(i){var c="function"==typeof i?i(n.options):i;h(),n.options=Object.assign({},s,n.options,c),n.scrollParents={reference:BJ(e)?M1(e):e.contextElement?M1(e.contextElement):[],popper:M1(t)};var a,l,u=function(e){var t=F1(e);return HJ.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}((a=[].concat(o,n.options.modifiers),l=a.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return n.orderedModifiers=u.filter(function(e){return e.enabled}),n.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,o=void 0===i?{}:i,c=e.effect;if("function"==typeof c){var s=c({state:n,name:t,instance:d,options:o}),a=function(){};r.push(s||a)}}),d.update()},forceUpdate:function(){if(!l){var e=n.elements,t=e.reference,i=e.popper;if(H1(t,i)){n.rects={reference:D1(t,a1(i),"fixed"===n.options.strategy),popper:JJ(i)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var o=0;o<n.orderedModifiers.length;o++)if(!0!==n.reset){var c=n.orderedModifiers[o],s=c.fn,a=c.options,r=void 0===a?{}:a,h=c.name;"function"==typeof s&&(n=s({state:n,options:r,name:h,instance:d})||n)}else n.reset=!1,o=-1}}},update:(c=function(){return new Promise(function(e){d.forceUpdate(),e(n)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(c())})})),a}),destroy:function(){h(),l=!0}};if(!H1(e,t))return d;function h(){r.forEach(function(e){return e()}),r=[]}return d.setOptions(i).then(function(e){!l&&i.onFirstUpdate&&i.onFirstUpdate(e)}),d}}var V1=P1({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,o=e.options,c=o.scroll,s=void 0===c||c,a=o.resize,n=void 0===a||a,r=VJ(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(e){e.addEventListener("scroll",i.update,m1)}),n&&r.addEventListener("resize",i.update,m1),function(){s&&l.forEach(function(e){e.removeEventListener("scroll",i.update,m1)}),n&&r.removeEventListener("resize",i.update,m1)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=$1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,o=i.gpuAcceleration,c=void 0===o||o,s=i.adaptive,a=void 0===s||s,n=i.roundOffsets,r=void 0===n||n,l={placement:GJ(t.placement),variation:u1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p1(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:r})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p1(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:r})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},qJ,R1,A1,I1,h1,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,o=t.rects.reference,c=t.rects.popper,s=t.modifiersData.preventOverflow,a=E1(t,{elementContext:"reference"}),n=E1(t,{altBoundary:!0}),r=T1(a,o),l=T1(n,c,s),d=O1(r),h=O1(l);t.modifiersData[i]={referenceClippingOffsets:r,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});const B1={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class U1 extends qt{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=V1(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)}}Nu([re],U1.prototype,"selector",void 0),Nu([re({mode:"boolean"})],U1.prototype,"show",void 0),Nu([re],U1.prototype,"event",void 0),Nu([re],U1.prototype,"placement",void 0),Nu([re({converter:B1})],U1.prototype,"offset",void 0),Nu([re({mode:"boolean"})],U1.prototype,"flip",void 0);const j1=Ce` :host{display: none;inset: unset !important;transform: unset !important}:host([show]){display: block}`,q1=W`<template><slot></slot></template>`;U1.compose({baseName:"popper",styles:j1,template:q1});const G1=(e,t)=>ks(0,t),W1=(e,t)=>Ce` ${Dh()}`;class Y1 extends Ss{}const K1=void 0,Z1={indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n '};Y1.compose(Object.assign({baseName:"progress-ring",template:G1,styles:W1,shadowOptions:K1},Z1));const Q1=(e,t)=>As(0,t),X1=(e,t)=>Ce` ${Hh()}`;class J1 extends Rs{}const e2=void 0,t2={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '};J1.compose(Object.assign({baseName:"radio",template:Q1,styles:X1,shadowOptions:e2},t2));const i2=(e,t)=>Es(),o2=(e,t)=>Ce` ${_h()}`;class c2 extends Ns{}const s2=void 0,a2={};c2.compose(Object.assign({baseName:"radio-group",template:i2,styles:o2,shadowOptions:s2},a2));const n2=Ce` /* Host */ :host{display: flex;flex-direction: column;width: 100%}`,r2=e=>W`<template><${e}-scheduler-timezone :timezone=${Nf(e=>e.timezone)}@change=${(e,t)=>e.handleChange(t.event,"timezone")}></${e}-scheduler-timezone><${e}-scheduler-cron-builder :cron=${Nf(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>`,l2=W` ${e=>r2(wx(e))} `;class d2 extends qt{constructor(){super(...arguments),this.disableTooltips=!1,this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:i}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:i}),this.$emit("change",this.cronConfig)}}Nu([re({attribute:"min-minute-interval"})],d2.prototype,"minMinuteInterval",void 0),Nu([re({mode:"boolean",attribute:"disable-tooltips"})],d2.prototype,"disableTooltips",void 0),Nu([g],d2.prototype,"timezone",void 0),Nu([g],d2.prototype,"cron",void 0),Nu([g],d2.prototype,"cronConfig",void 0);const h2=void 0,u2={};var f2,p2,m2;d2.compose(Object.assign({baseName:"scheduler",styles:n2,template:l2,shadowOptions:h2},u2)),function(e){e.MINUTES="Minutes",e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(f2||(f2={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(p2||(p2={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(m2||(m2={}));const g2=[{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"}],v2=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],b2=[{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 y2;!function(e){e.updateCronConfig="update-cron-config"}(y2||(y2={}));const z2=e=>Number(e)>1?`/${e}`:"";const x2=(e,t,i)=>{const o=Number(e);return!isNaN(o)&&o<=i&&o>=t};function C2(e,t,i,o=!1,c=x2){if("*"===e)return!0;if(o&&("?"===e||"L"===e))return!0;if(o&&e.endsWith("L"))return c(e.slice(0,-1),t,i);if(e.startsWith("*/"))return c(e.substring(2),1,i);if(e.startsWith("0/"))return c(e.substring(2),1,i);if(o&&e.includes("#")){const[o,s]=e.split("#");return c(o,t,i)&&c(s,1,4)}if(c(e,t,i))return!0;if(e.includes("-")){const[o,s]=e.split("-");return c(o,t,i)&&c(s,t,i)}return!!e.includes(",")&&e.split(",").every(e=>C2(e,t,i,o,c))}function L2(e,t){return{type:f2.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?p2.WEEK:p2.WORK_WEEK}}function M2(e){const t=e.includes("/");return{type:f2.HOURLY,frequency:t?e.split("/")[1]:"1",during:t?"every_hour":"specific_hours",hours:t?void 0:e}}function w2(e,t="*"){const i="*"!==t&&"0/1"!==t;return{type:f2.MINUTES,frequency:e.includes("/")?e.split("/")[1]:"1",during:i?"specific_hours":"every_hour",hours:i?t:void 0}}function k2(e){return{type:f2.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const S2=(e,t,i,o)=>{let c;return c="?"===t?{type:m2.DAY_OF_MONTH,day:o.split(/[L#]/)[0],weekNumber:o.includes("#")?o.split("#")[1]:"-1"}:{type:m2.DATE,dayDate:t},e===f2.YEARLY&&(c.month=i),c};function $2(e,t,i,o=S2){return{type:f2.YEARLY,frequency:2===i.split("/").length?i.split("/")[1]:"1",dateOrDay:o(f2.YEARLY,e,t,i.split("/")[0])}}function E2(e,t,i,o=S2){return{type:f2.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:o(f2.MONTHLY,e,t,i.split("/")[0])}}const N2=Ce` .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}`,A2=Ce` ${N2} /* 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}`,T2=(...e)=>{let[t,i,o]=e,c=i;var s;if(((null==(s=i)?void 0:s.hasOwnProperty("bubbles"))||(null==s?void 0:s.hasOwnProperty("cancelable"))||(null==s?void 0:s.hasOwnProperty("composed"))||(null==s?void 0:s.hasOwnProperty("broadcast")))&&(o=i,c=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,c,o]};class O2{emit(...e){const[t,...i]=e,[o,c,s]=T2(...i);return t.$emit(o,c,s)}}ft.createInterface(e=>e.singleton(O2));const R2=e=>class extends e{$emit(...e){const[t,i,o]=T2(...e);if(null==o?void 0:o.broadcast){const e=new CustomEvent(t,Object.assign({detail:i,bubbles:!0,composed:!0,cancelable:!0},o));return e.broadcast=!0,this.dispatchEvent(e)}return super.$emit(t,i,o)}};cf("foundation-events");const I2=Ce` ${N2}`,D2="\n <p>Select one or more hours.</p>\n",F2=W` ${e=>(e=>W`<template><div class="input-container"><label class="label">Of ${t=>t.disableTooltips?"":_x("\n <p>Controls the daily frequency:</p>\n <ul>\n <li><strong>Week:</strong> allows you to configure the frequency of repeating days, including both weekdays and weekends.</li>\n <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>\n </ul>\n",e)}</label><${e}-select data-test-id="select-week-type" :value=${Nf(e=>e.weekType)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${p2.WEEK}">${p2.WEEK}</${e}-option><${e}-option data-test-id="${p2.WORK_WEEK}">${p2.WORK_WEEK}</${e}-option></${e}-select></div></template>`)(e.prefix)} `;let _2=class extends(R2(qt)){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||p2.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(y2.updateCronConfig,this.config)}};Nu([re({mode:"boolean",attribute:"disable-tooltips"})],_2.prototype,"disableTooltips",void 0),Nu([g],_2.prototype,"prefix",void 0),Nu([g],_2.prototype,"config",void 0),Nu([g],_2.prototype,"weekType",void 0),_2=Nu([ye({name:"daily-recurrence",template:F2,styles:I2})],_2);const H2=Ce` ${N2} :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%}`,P2=e=>W`<div class="input-container"><label class="label">Month</label><${e}-select data-test-id="month-dropdown" :value=${Nf(e=>e.selectedMonth)}@change="${e=>e.updateCronConfig()}">${qe(()=>b2,W`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div>`,V2=e=>W` ${(e=>W`<div class="input-container"><label class="label">On</label><${e}-select data-test-id="select-day-or-date" :value=${Nf(e=>e.dayOrDate)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${m2.DATE}">${m2.DATE}</${e}-option><${e}-option data-test-id="${m2.DAY_OF_MONTH}">${m2.DAY_OF_MONTH}</${e}-option></${e}-select></div>`)(e)} ${Af(e=>e.dayOrDate===m2.DATE,(e=>W`<div class="row">${He(e=>e.config.type===f2.YEARLY,W` ${P2(e)} `)}<div class="input-container"><label class="label">${e=>e.config.type===f2.MONTHLY?"Day date":"Day"}</label><${e}-select data-test-id="day-date-dropdown" :value=${Nf(e=>e.dayDate)}@change="${e=>e.updateCronConfig()}">${qe(()=>Array.from({length:31},(e,t)=>t+1),W`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-select></div></div>`)(e),(e=>W`<div class="day-of-month-row">${He(e=>e.config.type===f2.YEARLY,W` ${P2(e)} `)}<div class="input-container"><label class="label">Day of Month</label><${e}-select data-test-id="select-week-number" :value=${Nf(e=>e.weekNumber)}@change="${e=>e.updateCronConfig()}">${qe(()=>v2,W`<${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=${Nf(e=>e.day)}@change="${e=>e.updateCronConfig()}">${qe(()=>g2,W`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div></div>`)(e))} `,B2=W` ${e=>V2(e.prefix)} `;let U2=class extends(R2(qt)){constructor(){super(...arguments),this.prefix="",this.dayOrDate=m2.DATE,this.weekNumber="1",this.day="1",this.selectedMonth="1"}configChanged(){this.config.type!==f2.YEARLY&&this.config.type!==f2.MONTHLY||(this.dayOrDate=this.config.dateOrDay.type||m2.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===f2.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===m2.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===m2.DATE?{type:m2.DATE,dayDate:this.dayDate||"1"}:{type:m2.DAY_OF_MONTH,day:this.day||"1",weekNumber:this.weekNumber||"1"},e}updateCronConfig(){this.config.type===f2.MONTHLY?this.config=Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):this.config=Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||"1"})}),this.$emit(y2.updateCronConfig,this.config)}};Nu([g],U2.prototype,"prefix",void 0),Nu([g],U2.prototype,"config",void 0),Nu([g],U2.prototype,"dayOrDate",void 0),Nu([g],U2.prototype,"dayDate",void 0),Nu([g],U2.prototype,"weekNumber",void 0),Nu([g],U2.prototype,"day",void 0),Nu([g],U2.prototype,"selectedMonth",void 0),U2=Nu([ye({name:"monthly-yearly-recurrence",template:B2,styles:H2})],U2);const j2=Ce` ${N2} .weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px);flex-wrap: wrap}`,q2=W` ${e=>(e=>W`<template><div class="input-container"><label class="label">
|
|
97
97
|
On ${t=>t.disableTooltips?"":_x("\n <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>\n <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>\n",e)}</label><div class="weekdays-row">${qe(()=>g2,W`<${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>`)(e.prefix)} `;let G2=class extends(R2(qt)){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix="",this.selectedDays=new Set}configChanged(){var e;this.selectedDays=(null===(e=this.config)||void 0===e?void 0:e.selectedDays)?new Set(this.config.selectedDays):new Set}isDisabled(e){return 1===this.selectedDays.size&&this.selectedDays.has(e)}checkboxChangeHandler(e){const{checked:t,value:i}=e.target;t?this.selectedDays.add(i):this.selectedDays.size>1&&this.selectedDays.delete(i),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(y2.updateCronConfig,this.config)}};Nu([re({mode:"boolean",attribute:"disable-tooltips"})],G2.prototype,"disableTooltips",void 0),Nu([g],G2.prototype,"prefix",void 0),Nu([g],G2.prototype,"config",void 0),Nu([g],G2.prototype,"selectedDays",void 0),G2=Nu([ye({name:"weekly-recurrence",template:q2,styles:j2})],G2),((...e)=>{var t;null==(t=()=>{e.forEach(e=>{})})||t()})(_2,G2,U2);const W2=(e,t)=>W`<monthly-yearly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}></monthly-yearly-recurrence>`,Y2=(e,t,i)=>W`<div class="input-container">${He(()=>i,W`<label class="label">${i}</label>`)}<${e}-select class="frequency-select" ?disabled=${()=>t.isDailyFrequencyDisabled}data-test-id="frequency-dropdown" :value=${Nf(()=>t.frequency)}@change="${()=>t.handleChange("frequency")}">${qe(()=>t.frequencyList,W`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">${()=>t.frequencySuffix}</div></${e}-select></div>`,K2=(e,t,i,o)=>W`<div class="input-container"><label class="label">Time </label><div class="flex-row">${He(()=>i,W`<${e}-select class="time-select" data-test-id="hours-dropdown" :value=${Nf(()=>t.hours)}@change="${()=>t.handleChange("hours")}">${qe(()=>Array.from({length:24},(e,t)=>t),W`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">hr</div></${e}-select>`)} ${He(()=>o,W`<${e}-select class="time-select" data-test-id="mins-dropdown" :value=${Nf(()=>t.minutes)}@change="${()=>t.handleChange("minutes")}">${qe(()=>Array.from({length:60},(e,t)=>t),W`<${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=${Nf(()=>t.seconds)}@change="${()=>t.handleChange("seconds")}">${qe(()=>Array.from({length:60},(e,t)=>t),W`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">sec</div></${e}-select></div></div>`,Z2=(e,t,i)=>{switch(e){case f2.MINUTES:return W`<div class="minutes-options-row"><div class="input-container"><label class="label">During ${()=>i.disableTooltips?"":_x("\n <p>Which hours in the day to run this schedule for:</p>\n <ul>\n <li><strong>Every hour:</strong> runs the minute schedule during every hour of the day.</li>\n <li><strong>Specific hours:</strong> specify which hours the minute schedule runs for. For example, just trading hours. Selecting every hour will configure the schedule as <strong>Every hour</strong>.</li>\n </ul>\n",t)}</label><${t}-select data-test-id="during-select" :value=${Nf(()=>i.during)}@change="${()=>i.handleDuringChange()}">${qe(()=>i.duringOptions,W`<${t}-option value="${e=>e.value}" ?selected=${e=>i.during===e.value}>${e=>e.label}</${t}-option>`)}</${t}-select></div>${He(()=>i.isSpecificHours,W`<div class="input-container"><label class="label">Hours ${_x(D2,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>i.hourOptions}:selectedOptions=${()=>i.selectedHours}@selectionChange="${(e,t)=>i.handleHoursChange(t.event)}" :all=${()=>!1}></${t}-multiselect></div>`)}</div><div class="row">${Y2(t,i,"Every")} ${K2(t,i,!1,!1)}</div>`;case f2.HOURLY:return W`<div class="row"><div class="input-container"><label class="label">Mode ${()=>i.disableTooltips?"":_x("\n <p>Select the type of hourly recurrence:</p>\n <ul>\n <li><strong>Interval:</strong> runs at a repeating interval of hours (e.g. every 2 hours).</li>\n <li><strong>Selected Hours:</strong> allows you to choose specific hours of the day (e.g. 9, 10, and 14).</li>\n </ul>\n",t)}</label><${t}-select data-test-id="hourly-during-select" :value=${Nf(()=>i.during)}@change="${()=>i.handleDuringChange()}"><${t}-option value="every_hour">Interval</${t}-option><${t}-option value="specific_hours">Selected Hours</${t}-option></${t}-select></div>${He(()=>"every_hour"===i.during,Y2(t,i,"Every"))} ${He(()=>i.isSpecificHours,W`<div class="break"></div><div class="input-container"><label class="label">
|
|
98
|
-
Hours ${_x(D2,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>i.hourOptions}:selectedOptions=${()=>i.selectedHours}@selectionChange="${(e,t)=>i.handleHoursChange(t.event)}"></${t}-multiselect></div>`)} ${K2(t,i,!1,!0)}</div>`;case f2.DAILY:return W` ${((e,t)=>W`<daily-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></daily-recurrence>`)(t,i)}<div class="row">${Y2(t,i,"Every")} ${K2(t,i,!0,!0)}</div>`;case f2.WEEKLY:return W`<div class="row">${((e,t)=>W`<weekly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></weekly-recurrence>`)(t,i)} ${K2(t,i,!0,!0)}</div>`;case f2.MONTHLY:return W`<div class="row">${Y2(t,i,"Every")} ${K2(t,i,!0,!0)}</div>${W2(t,i)} `;case f2.YEARLY:return W`<div class="row">${K2(t,i,!0,!0)}</div>${W2(t,i)} `;default:return W``}},Q2=e=>W`<template><div class="container"><div class="input-container"><label class="label">Recurrence ${He(e=>!e.disableTooltips,W` ${t=>_x(`\n <p>Select how often the event should occur:</p>\n <ul>\n${!t.minMinuteInterval||t.minMinuteInterval<30?"<li><strong>Minutes:</strong> Runs at every interval of minutes from the hour. Can be for every or specific hours.</li>":""}\n <li><strong>Hourly:</strong> Runs at a specific time in the hour, for one or more hours in the day.</li>\n <li><strong>Daily:</strong> Runs at a specific time of day, for a frequency interval of days per week (or work week).</li>\n <li><strong>Weekly:</strong> Runs at a specific time of day, for specific days of the week.</li>\n <li><strong>Monthly:</strong> Runs at a specific time of day in monthly intervals, on a specific date or day of month .</li>\n <li><strong>Yearly:</strong> Runs at a specific time, every year on a specific date or day of month.</li>\n </ul>\n`,e)} `)}</label><${e}-select data-test-id="select-recurrence" :value=${Nf(e=>e.recurrence)}@change="${e=>e.handleRecurrenceChange()}">${He(e=>e.isMinutesRecurrenceEnabled,W`<${e}-option data-test-id="${f2.MINUTES}">${f2.MINUTES}</${e}-option>`)}<${e}-option data-test-id="${f2.HOURLY}">${f2.HOURLY}</${e}-option><${e}-option data-test-id="${f2.DAILY}">${f2.DAILY}</${e}-option><${e}-option data-test-id="${f2.WEEKLY}">${f2.WEEKLY}</${e}-option><${e}-option data-test-id="${f2.MONTHLY}">${f2.MONTHLY}</${e}-option><${e}-option data-test-id="${f2.YEARLY}">${f2.YEARLY}</${e}-option></${e}-select></div>${qe(e=>[`${e.recurrence}-${e.during}`],W` ${(t,i)=>Z2(i.parent.recurrence,e,i.parent)} `,{recycle:!1})}</div></template>`,X2=W` ${e=>Q2(wx(e))} `;class J2 extends qt{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:w2,buildConfigForHourlyRecurrence:M2,buildConfigForDailyRecurrence:L2,buildConfigForWeeklyRecurrence:k2,buildConfigForMonthlyRecurrence:E2,buildConfigForYearlyRecurrence:$2},this.recurrence=f2.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:f2.DAILY,weekType:p2.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(!((e,t=C2)=>{const i=e.trim().split(" ");if(6!=i.length)return!1;const[o,c,s,a,n,r]=i;return t(o,0,59)&&t(c,0,59)&&t(s,0,23)&&t(a,1,31,!0)&&t(n,1,12)&&t(r,0,7,!0)})(this.cron))return void LC({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},wx(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void LC({title:"Cron Scheduler",body:e,toast:{type:"critical"}},wx(this))}}get duringOptions(){return[{label:"Every hour",value:"every_hour"},{label:"Specific hours",value:"specific_hours"}]}get frequencySuffix(){switch(this.cronConfig.type){case f2.MINUTES:return"Minute(s)";case f2.HOURLY:return"Hour(s)";case f2.DAILY:return"Day(s)";case f2.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case f2.MINUTES:const 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 f2.HOURLY:return Array.from({length:23},(e,t)=>t+1);case f2.DAILY:return Array.from({length:31},(e,t)=>t+1);case f2.MONTHLY:case f2.YEARLY:return Array.from({length:12},(e,t)=>t+1);case f2.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&&"0"!==this.hours?this.hours.split(","):"*"===this.hours?this.hourOptions.map(e=>e.value):[this.hours]}handleHoursChange(e){const t=e.detail;24===t.length?(this.hours="*",this.frequency="1",this.cronConfig.frequency="1"):t&&0!==t.length?this.hours=t.sort((e,t)=>Number(e)-Number(t)).join(","):this.hours="0",this.handleChange("hours")}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return"specific_hours"===this.during}get isDailyFrequencyDisabled(){return this.cronConfig.type===f2.DAILY&&this.cronConfig.weekType===p2.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(y2.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(y2.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case f2.MINUTES:const e=Eu(this.getBaseConfigFields(),["minutes"]);this.during="every_hour",this.hours="*";const t=[1,2,3,4,5,6,10,12,15,20,30],i=this.minMinuteInterval?Number(this.minMinuteInterval):1,o=t.find(e=>e>=i)||1;this.cronConfig=Object.assign(Object.assign({type:f2.MINUTES},e),{frequency:o.toString(),during:"every_hour",hours:"*"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.HOURLY:const c=Eu(this.getBaseConfigFields(),["hours"]);this.during="every_hour",this.hours="0",this.cronConfig=Object.assign(Object.assign({type:f2.HOURLY},c),{frequency:"1",during:"every_hour",hours:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.DAILY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:p2.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.WEEKLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set(["2"])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.MONTHLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:m2.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.YEARLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:m2.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:LC({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},wx(this))}}handleChange(e){if("frequency"===e&&0===Number(this.frequency))throw new Error("Frequency must be greater than 0");this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){"every_hour"===this.during?this.hours="*":"*"===this.hours&&(this.hours="0"),this.cronConfig.type!==f2.MINUTES&&this.cronConfig.type!==f2.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 f2.MINUTES:this.cron=function(e){const t="specific_hours"===e.during&&e.hours?e.hours:"*";return`${e.seconds} 0/${e.frequency} ${t} ? * *`}(e);break;case f2.HOURLY:this.cron=function(e){return"specific_hours"===e.during&&e.hours&&"*"!==e.hours?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case f2.DAILY:this.cron=function(e,t=z2){const i=e.weekType===p2.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${i} * ${e.weekType===p2.WORK_WEEK?"2-6":"?"}`}(e,z2);break;case f2.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case f2.MONTHLY:this.cron=function(e,t=z2){const{dateOrDay:i,minutes:o,hours:c,seconds:s,frequency:a}=e,n=t(a);return i.type===m2.DATE?`${s} ${o} ${c} ${i.dayDate} *${n} ?`:"-1"===i.weekNumber?`${s} ${o} ${c} ? *${n} ${i.day}L`:`${e.seconds} ${o} ${c} ? *${n} ${i.day}#${i.weekNumber}`}(e,z2);break;case f2.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:i,seconds:o,hours:c}=e;return t.type===m2.DATE?`${o} ${i} ${c} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${o} ${i} ${c} ? ${t.month} ${t.day}L`:`${o} ${i} ${c} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:LC({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},wx(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const i=e.split(" "),[o,c,s,a,n,r]=i;if("?"!==r&&"?"!==a)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(c))return Object.assign({seconds:o},t.buildConfigForMinutesRecurrence(c,s));if(/^(0|\*)\/\d+$/.test(s))return Object.assign({minutes:c,seconds:o},t.buildConfigForHourlyRecurrence(s));if("?"===a&&"*"===r)return Object.assign({minutes:c,seconds:o},t.buildConfigForHourlyRecurrence(s));if("2-6"===r||"?"===r&&("*"===a||a.startsWith("*")))return Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForDailyRecurrence(a,r));if(/^([1-7](,[1-7])*)$/.test(r)||"*"===r)return Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForWeeklyRecurrence(r));if(r.includes("L")||r.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(a)&&"?"===r)return"*"==n||n.startsWith("*/")?Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForMonthlyRecurrence(a,n,r)):Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForYearlyRecurrence(a,n,r));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;const e=this.cronConfig;"minutes"in e&&(this.minutes=e.minutes),e.type!==f2.MINUTES&&e.type!==f2.HOURLY||(this.during=e.during||"every_hour",e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==f2.HOURLY&&e.type!==f2.MINUTES&&(this.hours=e.hours)}}Nu([g],J2.prototype,"recurrence",void 0),Nu([g],J2.prototype,"cron",void 0),Nu([g],J2.prototype,"cronConfig",void 0),Nu([g],J2.prototype,"frequency",void 0),Nu([g],J2.prototype,"during",void 0),Nu([v],J2.prototype,"duringOptions",null),Nu([g],J2.prototype,"hours",void 0),Nu([g],J2.prototype,"minutes",void 0),Nu([g],J2.prototype,"seconds",void 0),Nu([v],J2.prototype,"frequencySuffix",null),Nu([v],J2.prototype,"frequencyList",null),Nu([v],J2.prototype,"hourOptions",null),Nu([v],J2.prototype,"selectedHours",null),Nu([re({attribute:"min-minute-interval"})],J2.prototype,"minMinuteInterval",void 0),Nu([re({mode:"boolean",attribute:"disable-tooltips"})],J2.prototype,"disableTooltips",void 0),Nu([v],J2.prototype,"isMinutesRecurrenceEnabled",null),Nu([v],J2.prototype,"isSpecificHours",null),Nu([v],J2.prototype,"isDailyFrequencyDisabled",null),Nu([re],J2.prototype,"timezone",void 0);const e3=void 0,t3={};J2.compose(Object.assign({baseName:"scheduler-cron-builder",styles:A2,template:X2,shadowOptions:e3},t3));const i3=Ce` /* 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}`,o3=e=>W`<template><div class="container"><label class="label">Time Zone</label><${e}-combobox data-test-id="cron-scheduler-timezone" autocomplete="both" class="timezone-combobox" value="${Nf(e=>e.timezone)}">${qe(e=>e.timeZones,W`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-combobox></div></template>`,c3=W` ${e=>o3(wx(e))} `;class s3 extends qt{constructor(){super(...arguments),this.timezone="",this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit("change")}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return Tu(this,void 0,void 0,function*(){const e=["Europe/London","America/New_York"];try{const t=yield this.connect.request("VALID_TIME_ZONE",{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw new Error("Invalid data returned for Timezones");this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,i)=>e.includes(t)&&!e.includes(i)?-1:!e.includes(t)&&e.includes(i)?1:t.localeCompare(i))}catch(e){LC({title:"Cron Scheduler",body:"Unable to fetch timezones data.",toast:{type:"critical"}},"rapid"),sf.error(e)}})}}Nu([g],s3.prototype,"timezone",void 0),Nu([fz],s3.prototype,"connect",void 0),Nu([g],s3.prototype,"timeZones",void 0);const a3=void 0,n3={};s3.compose(Object.assign({baseName:"scheduler-timezone",styles:i3,template:c3,shadowOptions:a3},n3));const r3=Ce` .search-bar-combobox{width: 100%;min-width: auto}.padding{padding-left: calc(${hr} * 1px)}.selected-options{display: flex;align-items: center;overflow: hidden;gap: calc(${hr} * 1px);padding-right: calc(${hr} * 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(${hr} * 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)}`,l3=e=>W`<label part="label" for="control" data-test-id="label" class=${e=>{var t;return Jt("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}><slot ${Ke({property:"defaultSlottedNodes",filter:Fs})}></slot></label><${e}-search-bar-combobox ${Ie("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 ${Ie("selectedOptionsDiv")}slot="selectedOptions" class="selected-options ${e=>e.selectedOptions.length>0?"selected-options-divider":null}">${qe(e=>e.selectedOptions,W`<${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>${qe(e=>e.filteredOptions,W`<${e}-option value="${e=>e.field}" :disabled=${(e,t)=>!t.parent.isOptionEnabled(e)}>${(e,t)=>e.label(t.parent.searchTerm)}</${e}-option>`)} ${He(e=>e.showClearAffordance,W`<${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>`,d3=W` ${e=>l3(wx(e))} `;class h3 extends qt{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=3,this.position=AL.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,i)=>(null==t?void 0:t.length)>0?e.replace(t,i):e.concat(i)}clear(){this.selectedOptions=[],this.searchTerm="",this.combobox&&(this.combobox.currentValue="",this.combobox.value=""),this.$emit("selectionChange",[])}clearSearch(){this.clear()}get showClearAffordance(){var e,t,i;if(!this.clearButton)return!1;const o=(null!==(i=null!==(e=this.searchTerm)&&void 0!==e?e:null===(t=this.combobox)||void 0===t?void 0:t.value)&&void 0!==i?i:"").trim();return this.selectedOptions.length>0||o.length>0}get allSearchFieldsUsed(){var e;return!!(null===(e=this.options)||void 0===e?void 0:e.length)&&this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field))}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(){const e=[];this.combobox.selectedOptions.forEach(t=>{var i,o,c;const s=t.value,a=this.searchTerm.trim();e.push({field:s,term:a,label:(null===(i=this.options.find(e=>e.field===s))||void 0===i?void 0:i.label(a))||t.text,createCriteria:null===(o=this.options.find(e=>e.field===s))||void 0===o?void 0:o.createCriteria,resourceType:null===(c=this.options.find(e=>e.field===s))||void 0===c?void 0:c.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,i)=>t===i.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),u.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},10)})}pasteHandler(e){var t;if(this.allSearchFieldsUsed)return void e.preventDefault();this.loading=!0;const i=e.clipboardData.getData("text/plain"),o=this.normalizeDelimiter(i),c=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),s=this.addOrReplaceSelectedText(this.combobox.value,c,o);(null==s?void 0:s.length)>=this.minlength&&(this.combobox.value=s,this.searchTerm=s,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(i=>i.term===e&&i.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return Tu(this,void 0,void 0,function*(){this.allSearchFieldsUsed?this.applySearchInputLock():(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(i=>i.field===t.field&&i.term.trim()===e.trim()))}}Nu([g],h3.prototype,"defaultSlottedNodes",void 0),Nu([g],h3.prototype,"options",void 0),Nu([g],h3.prototype,"searchTerm",void 0),Nu([re],h3.prototype,"appearance",void 0),Nu([re],h3.prototype,"minlength",void 0),Nu([re],h3.prototype,"position",void 0),Nu([re],h3.prototype,"placeholder",void 0),Nu([re],h3.prototype,"disabled",void 0),Nu([re({attribute:"clear-button",mode:"boolean"})],h3.prototype,"clearButton",void 0),Nu([g],h3.prototype,"loading",void 0),Nu([g],h3.prototype,"selectedOptions",void 0),Nu([g],h3.prototype,"filteredOptions",void 0);const u3=void 0,f3={};h3.compose(Object.assign({baseName:"search-bar",template:d3,styles:r3,shadowOptions:u3},f3));const p3=(e,t)=>Ce` ${iM(e)} .control{width: auto;padding-left: calc(${hr} * 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}`,m3=(e,t)=>W`<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)}" ${Ie("control")}data-test-id="selected-value" /></slot></div>${Je(0,t)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>!e.open}" ${Ie("listbox")}data-test-id="listbox"><slot ${Ke({filter:Bo.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,g3=new Set(["Backspace","Delete","Tab","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);class v3 extends uh{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){const 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=this.previousLength-1;break;case"Enter":if(this.open&&-1!==this.selectedIndex){const 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){const t=e.key;if(this.inputLocked){const i=e.ctrlKey||e.metaKey||e.altKey;if(!(g3.has(t)||i))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-1!==this.selectedIndex&&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)return this.control.value="",this.value="",this.open=!1,void e.stopImmediatePropagation();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)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}}Nu([re],v3.prototype,"minlength",void 0),Nu([g],v3.prototype,"inputLocked",void 0);const b3={delegatesFocus:!0,mode:"open"},y3={};v3.compose(Object.assign({baseName:"search-bar-combobox",template:m3,styles:p3,shadowOptions:b3},y3));const z3=Ce` :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-y: auto;overflow-x: hidden;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)}`,x3=W` ${e=>(e=>W`<template><div class="section-navigator-container" part="section-navigator-container" ${Ie("sectionNavigatorContainer")}><nav class="section-navigation" part="section-navigator-navigation">${qe(e=>e.sectionItems,W`<${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} ${qe(e=>e.states||[],W`<${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" ${Ie("sectionContent")}>${qe(e=>e.sectionItems,W`<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>`)(wx(e))} `,C3=cf("SectionNavigator"),L3="section-navigator",M3={setState:`${L3}-set-state`,setStates:`${L3}-set-states`,clearState:`${L3}-clear-state`,clearAllStates:`${L3}-clear-all-states`},w3={active:"Active",inactive:"Inactive",pending:"Pending",disabled:"Disabled",error:"Error",completed:"Completed"},k3={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"}};class S3 extends qt{constructor(){super(...arguments),this.sections=[],this.scrollBehavior="top",this.stateTooltips=w3,this.stateIcons=k3,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))return C3.warn("Sections must be an array"),void(this.sectionItems=[]);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){if(null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0,"top"===this.scrollBehavior)try{const e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(".content-section:last-child");if(t){const i=t.offsetHeight,o=20,c=Math.max(0,e-i-o);this.spacerElement=document.createElement("div"),this.spacerElement.className="scroll-spacer",this.spacerElement.style.height=`${c}px`,this.spacerElement.style.pointerEvents="none",this.sectionContent.appendChild(this.spacerElement)}}catch(e){C3.error("Error updating spacer:",e)}}else C3.warn("Section content element not found")}scrollToSection(e){if(this.sectionContent)try{const t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t)return void C3.warn(`Section "${e}" not found`);const i=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:i,behavior:"smooth"}),this.setupScrollEndDetection()}catch(e){C3.error("Error scrolling to section:",e)}else C3.warn("Section content not available")}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(this.sectionContent)try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},S3.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener("scroll",this.scrollCheckHandler,{passive:!0});const e=()=>{this.isUserScrolling=!0},t=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};let i;this.sectionContent.addEventListener("wheel",e,{passive:!0}),this.sectionContent.addEventListener("touchstart",e,{passive:!0}),this.sectionContent.addEventListener("mousedown",e,{passive:!0}),this.sectionContent.addEventListener("scrollend",t,{passive:!0}),this.sectionContent.addEventListener("scroll",()=>{clearTimeout(i),i=window.setTimeout(t,S3.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){C3.error("Error setting up scroll detection:",e)}else C3.warn("Section content not available for scroll detection")}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;const e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2;let t=null,i=1/0;this.sectionItems.forEach(o=>{const c=this.sectionContent.querySelector(`[data-section="${o.name}"]`);if(c){const s=c.offsetTop+c.clientHeight/2,a=Math.abs(s-e);a<i&&(i=a,t=o.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(){this.sectionContent?(this.handleSetStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.addState(t,i)}catch(e){C3.error("Error handling set-state event:",e)}},this.handleSetStatesRef=e=>{try{const{sectionName:t,stateNames:i}=e.detail;this.addStates(t,i)}catch(e){C3.error("Error handling set-states event:",e)}},this.handleClearStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.clearState(t,i)}catch(e){C3.error("Error handling clear-state event:",e)}},this.handleClearAllStatesRef=e=>{try{const{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){C3.error("Error handling clear-all-states event:",e)}},this.handleGenericStateEventRef=e=>{try{const t=e.type,i=e.detail;if(null==i?void 0:i.sectionName)return;const o=e.target.closest("[data-section]");let c=null==o?void 0:o.getAttribute("data-section");if(!c){const t=e.target.closest("[slot]");c=(null==t?void 0:t.getAttribute("slot"))||this.activeSection}c||(c=this.activeSection),e.stopPropagation(),e.preventDefault();const s=Object.assign(Object.assign({},i),{sectionName:c}),a=new CustomEvent(t,{detail:s,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){C3.error("Error handling generic state event:",e)}},this.addEventListener(M3.setState,this.handleSetStateRef),this.addEventListener(M3.setStates,this.handleSetStatesRef),this.addEventListener(M3.clearState,this.handleClearStateRef),this.addEventListener(M3.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(M3.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(M3.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(M3.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(M3.clearAllStates,this.handleGenericStateEventRef,!0)):C3.warn("Section content not available for event listeners")}updateSectionStates(e,t){const i=this.sectionItems.findIndex(t=>t.name===e);if(-1!==i){const e=Object.assign(Object.assign({},this.sectionItems[i]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,i),e,...this.sectionItems.slice(i+1)]}}addState(e,t){if(!e||!t)return void C3.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void C3.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[];if(!o.includes(t)){const i=[...o,t];this.updateSectionStates(e,i)}}addStates(e,t){if(!e||!Array.isArray(t))return void C3.warn("Section name and state names array are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void C3.warn(`Section "${e}" not found`);const o=[...this.sectionItems[i].states||[]];t.forEach(e=>{o.includes(e)||o.push(e)}),this.updateSectionStates(e,o)}clearState(e,t){if(!e||!t)return void C3.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void C3.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[],c=o.indexOf(t);if(c>-1){const t=o.filter((e,t)=>t!==c);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e)return void C3.warn("Section name is required");-1!==this.sectionItems.findIndex(t=>t.name===e)?this.updateSectionStates(e,[]):C3.warn(`Section "${e}" not found`)}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||"":(C3.warn("State name is required"),"")}getSectionStateClass(e){if(!e)return C3.warn("Section is required"),"state-none";const t=e.states||[];if(0===t.length)return"state-none";if(t.length>1)return"state-multiple";return`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||k3[e]:(C3.warn("State name is required"),k3.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(M3.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(M3.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(M3.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(M3.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(M3.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(M3.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(M3.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(M3.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0}}S3.SCROLL_END_TIMEOUT=150,S3.SCROLL_DEBOUNCE_TIMEOUT=100,Nu([g],S3.prototype,"sections",void 0),Nu([re({attribute:"scroll-behavior"})],S3.prototype,"scrollBehavior",void 0),Nu([re({attribute:"state-tooltips"})],S3.prototype,"stateTooltips",void 0),Nu([re({attribute:"state-icons"})],S3.prototype,"stateIcons",void 0),Nu([re({attribute:"disable-auto-scroll-detection",mode:"boolean"})],S3.prototype,"disableAutoScrollDetection",void 0),Nu([g],S3.prototype,"sectionItems",void 0),Nu([g],S3.prototype,"activeSection",void 0);const $3={mode:"open"},E3={};S3.compose(Object.assign({baseName:"foundation-section-navigator",template:x3,styles:z3,shadowOptions:$3},E3));const N3=(e,t)=>Es(),A3=(e,t)=>Ce` ${_h()} ::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}`;class T3 extends Ns{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}}T3.compose(Object.assign({baseName:"segmented-control",template:N3,styles:A3,shadowOptions:void 0},{}));const O3=(e,t)=>W`<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>`,R3=(e,t)=>Ce` ${Hh()} :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 Rs{}).compose(Object.assign({baseName:"segmented-item",template:O3,styles:R3,shadowOptions:void 0},{}));const I3=(e,t)=>Gs(0,t),D3=(e,t)=>Ce` ${dh(e)} :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}`;class F3 extends Uh{slottedOptionsChanged(e,t){const i=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;const o=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{const t=e.nodeName.toLowerCase();if(t.endsWith("-optgroup")){const t=Array.from(e.children).filter(e=>{const t=e.nodeName.toLowerCase();return"option"===e.getAttribute("role")||t.endsWith("-option")});o.push(...t)}else("option"===e.getAttribute("role")||t.endsWith("-option"))&&o.push(e)}),this.options=o,i&&(this.value=i),-1===this.selectedIndex&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&null!==e&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void u.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}keydownHandler(e){switch(e.key){case"ArrowDown":case"ArrowUp":if(this.open){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView({block:"center",behavior:"auto"})}else this.open=!0}return super.keydownHandler(e)}}const _3=void 0,H3={indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '};F3.compose(Object.assign({baseName:"select",template:I3,styles:D3,shadowOptions:_3},H3));const P3=(e,t)=>Ws(),V3=(e,t)=>Ce` ${jh()}`;class B3 extends Ys{}const U3=void 0,j3={};B3.compose(Object.assign({baseName:"skeleton",template:P3,styles:V3,shadowOptions:U3},j3));const q3=(e,t)=>W`<template role="slider" class="${e=>e.readOnly?"readonly":""} ${e=>e.orientation||Qt}" 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||void 0}" aria-readonly="${e=>!!e.readOnly||void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${Ie("track")}part="track-container" class="track"><div class="track-progress" style="${e=>{const t=1-xi(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),i=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${i}%;`:`height: calc(var(--track-width) * 1px); width: ${i}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${i}%;`:`width: calc(var(--track-width) * 1px); height: ${i}%; transition: all 0.2s ease;`}}"></div></div><slot></slot><div ${Ie("thumb")}part="thumb-container" class="thumb-container" style="${e=>e.position}"><slot name="thumb">${t.thumb||""}</slot></div></div></template>`,G3=(e,t)=>Ce` ${Qh()} .track-progress{background-color: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;class W3 extends ia{}const Y3=void 0,K3={thumb:'\n <div class="thumb-cursor"></div>\n '};W3.compose(Object.assign({baseName:"slider",template:q3,styles:G3,shadowOptions:Y3},K3));const Z3=(e,t)=>Ks(),Q3=(e,t)=>Ce` ${Wh()}`;class X3 extends Yh{}const J3=void 0,e4={};X3.compose(Object.assign({baseName:"slider-label",template:Z3,styles:Q3,shadowOptions:J3},e4));const t4="default",i4="dismiss",o4="autoDismiss",c4=Ce` @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}`,s4=e=>W`<div role="alert" aria-live="polite" part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${Ie("snackbar")}><div part="content" class="content"><slot name="content">${e=>{var t,i;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(i=e.notification)||void 0===i?void 0:i.body)||"Place holder for error message"}}</slot></div>${He(e=>{var t,i,o,c,s,a,n,r;return(null===(c=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||void 0===c?void 0:c.length)||(null===(r=null===(n=null===(a=null===(s=e.notification)||void 0===s?void 0:s.config)||void 0===a?void 0:a.snackbar)||void 0===n?void 0:n.confirmingActions)||void 0===r?void 0:r.length)},W`<div part="action" class="action"><slot name="action">${qe(e=>{var t,i,o,c,s,a;return(null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||(null===(a=null===(s=null===(c=e.notification)||void 0===c?void 0:c.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.confirmingActions)},W`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var i;null==e||e.action(),null===(i=t.parent)||void 0===i||i.dismiss()}}>${e=>e.label}</${e}-button>`)}</slot></div>`)}</div>`,a4=W` ${e=>s4(wx(e))} `,n4={mode:"open",delegatesFocus:!0};class r4 extends qt{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=t4,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(i4,this.dismissEventListener)}errorChanged(e,t){var i,o,c;this.type=null!==(c=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==c?c:t4}notificationChanged(e,t){var i,o,c,s,a,n,r,l,d;this.type=null!==(c=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==c?c:t4,this.autoClose=null===(n=null===(a=null===(s=null==t?void 0:t.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.autoClose)||void 0===n||n,this.closeTimeout=null!==(d=null===(l=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.snackbar)||void 0===l?void 0:l.closeTimeout)&&void 0!==d?d:1e4}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(o4,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(i4,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}Nu([g],r4.prototype,"error",void 0),Nu([g],r4.prototype,"notification",void 0),Nu([g],r4.prototype,"deleteAnimation",void 0),Nu([re({attribute:"identifier"})],r4.prototype,"identifier",void 0),Nu([re({attribute:"close-timeout"})],r4.prototype,"closeTimeout",void 0),Nu([re({attribute:"auto-close",mode:"boolean"})],r4.prototype,"autoClose",void 0),Nu([re({attribute:"type"})],r4.prototype,"type",void 0),r4.compose({baseName:"snackbar",styles:c4,template:a4,shadowOptions:n4});const l4=(e,t)=>Ce` ${jK()} .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}`,d4=W`<span class=${e=>`fa-stack fa-${e.size}`}style=${e=>`vertical-align: ${e["vertical-align"]};`}><slot></slot></span>`;class h4 extends qt{constructor(){super(...arguments),this.size="1x",this["vertical-align"]="baseline"}}Nu([re],h4.prototype,"size",void 0),Nu([re],h4.prototype,"vertical-align",void 0),h4.compose({baseName:"stacking-icons",template:d4,styles:l4});const u4=Ce` .status-pill{font-size: var(--ag-data-font-size);display: inline-flex;align-items: center;gap: 5px;border-radius: 4px;height: 20px;background: grey;color: var(--neutral-foreground-rest);padding: 2px 8px;line-height: 1}.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}`,f4=W` ${e=>(e=>W` ${He(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),W`<div data-test-id="status-pill" part="status-pill" class="status-pill" style="color:${e=>e.textColor||""}; background:${e=>e.backgroundColor||""};">${He(e=>e.iconName,W`<${e}-icon name="${e=>e.iconName}" size="${e=>e.iconSize}"></${e}-icon>`)} ${He(e=>e.iconSrc,W`<img alt="${e=>e.iconSrc}" class="status-pill-image" src="${e=>e.iconSrc}" />`)} ${He(e=>e.iconInitial,W`<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>${He(e=>e.countdown,W`<span data-test-id="status-pill-countdown">${e=>e.countdown}</span>`)}</div>`)} `)(wx(e))} `;class p4 extends qt{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)return void this.clearCountdownTimer();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)))xx.warn("invalid date-countdown value passed. Must be a number");else{e=parseInt(e);const t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),1e3)}}updateCountdown(e){const t=(new Date).getTime(),i=Math.floor(e.getTime()-t),o=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0!==o&&!isNaN(o)&&t<o)return this.isCountdownVisible=!1,this.countdown=null,void(this.isCountdownExpired=!1);this.isCountdownVisible=!0,i<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=((e,t="second")=>{let i=e/1e3;const o=Math.floor(i/86400);i%=86400;const c=Math.floor(i/3600);i%=3600;const s=Math.floor(i/60),a=Math.floor(i%60),n=[];switch(o&&n.push(`${o}d`),t){case"minute":c&&n.push(`${c}h`),s&&n.push(`${s}m`),!s&&a&&n.push("< 1m");break;case"hour":c&&n.push(`${c}h`),c||!s&&!a||n.push("< 1h");break;default:c&&n.push(`${c}h`),s&&n.push(`${s}m`),a&&n.push(`${a}s`)}return n.length?n.join(" "):"0s"})(i,this.dateCountdownUnit)}updateVisibilityFromStartTime(){const e=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0===e||isNaN(e))this.isCountdownVisible=!0;else{const t=Date.now();this.isCountdownVisible=t>=e}}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}}Nu([re({attribute:"background-color"})],p4.prototype,"backgroundColor",void 0),Nu([re({attribute:"icon-name"})],p4.prototype,"iconName",void 0),Nu([re({attribute:"icon-src"})],p4.prototype,"iconSrc",void 0),Nu([re({attribute:"icon-initial"})],p4.prototype,"iconInitial",void 0),Nu([re({attribute:"icon-initial-background-color"})],p4.prototype,"iconInitialBackgroundColor",void 0),Nu([re({attribute:"icon-size"})],p4.prototype,"iconSize",void 0),Nu([re({attribute:"text-color"})],p4.prototype,"textColor",void 0),Nu([re],p4.prototype,"text",void 0),Nu([re({attribute:"date-countdown"})],p4.prototype,"dateCountdown",void 0),Nu([re({attribute:"date-countdown-completed-message"})],p4.prototype,"dateCountdownCompletedMessage",void 0),Nu([re({attribute:"date-countdown-unit"})],p4.prototype,"dateCountdownUnit",void 0),Nu([re({attribute:"date-countdown-visible-after"})],p4.prototype,"dateCountdownVisibleAfter",void 0),Nu([re({mode:"boolean",attribute:"hide-when-countdown-completed"})],p4.prototype,"hideWhenCountdownCompleted",void 0),Nu([g],p4.prototype,"countdown",void 0),Nu([g],p4.prototype,"isCountdownExpired",void 0),Nu([g],p4.prototype,"isCountdownVisible",void 0),p4.compose({baseName:"status-pill",styles:u4,template:f4});const m4=e=>W` ${Af(e=>e.orientation===ua,W`<${e}-tree-item ${Ie("treeItem")}class=${e=>Jt("tree-item",["cursor-pointer",e.showCursorPointer])}@click="${(e,t)=>e.$emit("tab-clicked",e.tabPosition-1)}">${He(e=>e.completed,W`<${e}-icon name="check-circle" variant="regular" size="lg" class="stepper-icon completed-icon"></${e}-icon>`)} ${He(e=>e.error,W`<${e}-icon name="times-circle" variant="regular" size="lg" class="stepper-icon error-icon"></${e}-icon>`)}<slot></slot></${e}-tree-item>`,W`<div class=${e=>Jt("step-container",["selected",e.selected])}><div class=${e=>Jt("step-number-container",["cursor-pointer",e.showCursorPointer])}@click="${e=>e.$emit("tab-clicked",e.tabPosition-1)}">${He(e=>!e.hideStepNumber,W`<span class="step-number">${e=>e.tabPosition}</span>`)}<slot class="step-title"></slot></div>${He(e=>!e.isLast,W`<${e}-icon class="stepper-icon angle-icon" name="angle-right" variant="solid" size="lg"></${e}-icon>`)}</div>`)} `,g4=W` ${e=>m4(wx(e))} `,v4=(e,t)=>Ce` .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 */}`;class b4 extends qt{constructor(){super(...arguments),this.slot="tab",this.orientation=ua}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}}Nu([re],b4.prototype,"slot",void 0),Nu([re({mode:"boolean"})],b4.prototype,"selected",void 0),Nu([re({mode:"boolean"})],b4.prototype,"completed",void 0),Nu([re({mode:"boolean"})],b4.prototype,"error",void 0),Nu([re({mode:"boolean"})],b4.prototype,"isLast",void 0),Nu([re({mode:"boolean"})],b4.prototype,"hideStepNumber",void 0),Nu([re({mode:"boolean"})],b4.prototype,"showCursorPointer",void 0),Nu([re({attribute:"tab-position"})],b4.prototype,"tabPosition",void 0),Nu([re],b4.prototype,"orientation",void 0);const y4=void 0,z4={};b4.compose(Object.assign({baseName:"stepper-tab",template:g4,styles:v4,shadowOptions:y4},z4));const x4=()=>W`<template slot="tab-panel" role="stepper-tab-panel"><slot></slot></template>`;class C4 extends qt{}const L4=void 0,M4={};C4.compose(Object.assign({baseName:"stepper-tab-panel",template:x4,shadowOptions:L4},M4));const w4=(e,t)=>oa(0,t),k4=(e,t)=>Ce` ${Xh()} .checked-indicator{transform: scale(1.3)}.switch{border-radius: calc(var(--control-corner-radius) * 3px)}.checked-indicator{border-radius: calc(var(--control-corner-radius) * 2px)}`;class S4 extends aa{}const $4=void 0,E4={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};S4.compose(Object.assign({baseName:"switch",template:w4,styles:k4,shadowOptions:$4},E4));const N4=(e,t)=>la(),A4=(e,t)=>Ce` ${eu()} :host{user-select: none}`;class T4 extends da{}const O4=void 0,R4={};T4.compose(Object.assign({baseName:"tab",template:N4,styles:A4,shadowOptions:O4},R4));const I4=(e,t)=>na(),D4=(e,t)=>Ce` ${tu()} :host{height: 100%;padding: 0}`;class F4 extends ra{}const _4=void 0,H4={};F4.compose(Object.assign({baseName:"tab-panel",template:I4,styles:D4,shadowOptions:_4},H4));const P4=(e,t)=>ha(0,t),V4=(e,t)=>Ce` ${Jh()} :host{height: 100%;width: 100%}:host([scrollable]) [part='tablist']{overflow-x: auto;overflow-y: hidden;white-space: nowrap}:host([scrollable]) ::slotted([role='tab']){flex: 0 0 auto}`;class B4 extends pa{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}}Nu([re({mode:"boolean"})],B4.prototype,"scrollable",void 0);const U4=void 0,j4={};B4.compose(Object.assign({baseName:"tabs",template:P4,styles:V4,shadowOptions:U4},j4));const q4=(e,t)=>ya(),G4=(e,t)=>Ce` ${iu()} :host .control{padding: calc(var(--design-unit) * 3px)}`;class W4 extends ou{}const Y4=void 0,K4={};W4.compose(Object.assign({baseName:"text-area",template:q4,styles:G4,shadowOptions:Y4},K4));const Z4=(e,t)=>W`<template class="${e=>Jt(["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 ${Ke({property:"defaultSlottedNodes",filter:Fs})}></slot></label><div class="root" part="root">${et(0,t)}<div class="control-field">${He(e=>e.prefix,W`<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}" ${Ie("control")}/>${He(e=>e.suffix,W`<span class="suffix" part="suffix" id="${e=>`${e.id||"control"}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${Je(0,t)}</div></template>`,Q4=(e,t)=>Ce` ${cu()} /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */ ${rQ} input{color-scheme: ${kv}}`;class X4 extends(aQ(su)){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)}}Nu([re],X4.prototype,"autocomplete",void 0),Nu([re],X4.prototype,"autocapitalize",void 0),Nu([re],X4.prototype,"step",void 0);const J4={mode:"open",delegatesFocus:!0},e0={};X4.compose(Object.assign({baseName:"text-field",template:Z4,styles:Q4,shadowOptions:J4},e0));const t0=Ce` @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}`,i0=(e="zero")=>W`<div role="alert" part="root" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${Ie("toast")}><div class="content-wrapper"><div part="top" class="top">${He(e=>e.notificationIcon,W`<${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()}>${((e="zero")=>W`<${e}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`)(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>`,o0=W` ${e=>i0(wx(e))} `,c0={mode:"open",delegatesFocus:!0},s0={};class a0 extends qt{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()}}Nu([g],a0.prototype,"deleteAnimation",void 0),Nu([re({attribute:"close-timeout"})],a0.prototype,"closeTimeout",void 0),Nu([re({attribute:"auto-close"})],a0.prototype,"autoClose",void 0),Nu([re({attribute:"notification-icon"})],a0.prototype,"notificationIcon",void 0),a0.compose(Object.assign({baseName:"toast",styles:t0,template:o0,shadowOptions:c0},s0));const n0=(e,t)=>za(0,t),r0=(e,t)=>Ce` ${au()}`;class l0 extends nu{}const d0=void 0,h0={};l0.compose(Object.assign({baseName:"toolbar",template:n0,styles:r0,shadowOptions:d0},h0));const u0=(e,t)=>Ma(e),f0=(e,t)=>Ce` ${ru(e)}`;class p0 extends Ha{}const m0=void 0,g0={};p0.compose(Object.assign({baseName:"tooltip",template:u0,styles:f0,shadowOptions:m0},g0));const v0=(e,t)=>Pa(0,t),b0=(e,t)=>Ce` ${pu(e)} :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)}`;class y0 extends Ba{}const z0=void 0,x0={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <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>\n </svg>'};y0.compose(Object.assign({baseName:"tree-item",template:v0,styles:b0,shadowOptions:z0},x0));const C0=(e,t)=>Ua(),L0=(e,t)=>Ce` ${mu()}`;class M0 extends ja{}const w0=void 0,k0={};M0.compose(Object.assign({baseName:"tree-view",template:C0,styles:L0,shadowOptions:w0},k0));const S0=(e,t)=>Ce` .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}`,$0=e=>W`<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)=>{var i;return e.readOnly?"":e.saveUrl(null===(i=t.event)||void 0===i?void 0:i.target.value)}}@focus=${e=>e.focus()}:readOnly=${e=>e.readOnly}></${e}-text-field>${He(e=>e.readOnly||!e.focused,W`<a class="url-input-link" href=${e=>e.value}target="_blank">${e=>e.value}</a>`)}</div>`,E0=W` ${e=>$0(wx(e))} `,N0=void 0,A0={};class T0 extends su{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}Nu([g],T0.prototype,"value",void 0),Nu([g],T0.prototype,"focused",void 0),T0.compose(Object.assign({baseName:"url-input",template:E0,styles:S0,shadowOptions:N0},A0));let O0=class extends Cx{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return Tu(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){const t=null==e?void 0:e.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name});return t}clearData(){xx.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),i=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=i,this.dataGrid.rowsData=t}handleStreamInserts(e){xx.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){xx.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){xx.debug("handleStreamUpdates - Method not implemented.")}};O0=Nu([ye({name:"data-grid-datasource"})],O0);const R0={type:"NULL",maxRules:1,invisible:!0};var I0,D0;var F0=function(){if(D0)return I0;function e(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}return D0=1,I0=function(t){if((t=t||{}).circles)return function(t){const i=[],o=[],c=new Map;if(c.set(Date,e=>new Date(e)),c.set(Map,(e,t)=>new Map(a(Array.from(e),t))),c.set(Set,(e,t)=>new Set(a(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)c.set(e[0],e[1]);let s=null;return t.proto?r:n;function a(t,a){const n=Object.keys(t),r=new Array(n.length);for(let l=0;l<n.length;l++){const d=n[l],h=t[d];if("object"!=typeof h||null===h)r[d]=h;else if(h.constructor!==Object&&(s=c.get(h.constructor)))r[d]=s(h,a);else if(ArrayBuffer.isView(h))r[d]=e(h);else{const e=i.indexOf(h);r[d]=-1!==e?o[e]:a(h)}}return r}function n(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,n);if(t.constructor!==Object&&(s=c.get(t.constructor)))return s(t,n);const r={};i.push(t),o.push(r);for(const a in t){if(!1===Object.hasOwnProperty.call(t,a))continue;const l=t[a];if("object"!=typeof l||null===l)r[a]=l;else if(l.constructor!==Object&&(s=c.get(l.constructor)))r[a]=s(l,n);else if(ArrayBuffer.isView(l))r[a]=e(l);else{const e=i.indexOf(l);r[a]=-1!==e?o[e]:n(l)}}return i.pop(),o.pop(),r}function r(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,r);if(t.constructor!==Object&&(s=c.get(t.constructor)))return s(t,r);const n={};i.push(t),o.push(n);for(const a in t){const l=t[a];if("object"!=typeof l||null===l)n[a]=l;else if(l.constructor!==Object&&(s=c.get(l.constructor)))n[a]=s(l,r);else if(ArrayBuffer.isView(l))n[a]=e(l);else{const e=i.indexOf(l);n[a]=-1!==e?o[e]:r(l)}}return i.pop(),o.pop(),n}}(t);const i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(c(Array.from(e),t))),i.set(Set,(e,t)=>new Set(c(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)i.set(e[0],e[1]);let o=null;return t.proto?function t(s){if("object"!=typeof s||null===s)return s;if(Array.isArray(s))return c(s,t);if(s.constructor!==Object&&(o=i.get(s.constructor)))return o(s,t);const a={};for(const c in s){const n=s[c];"object"!=typeof n||null===n?a[c]=n:n.constructor!==Object&&(o=i.get(n.constructor))?a[c]=o(n,t):ArrayBuffer.isView(n)?a[c]=e(n):a[c]=t(n)}return a}:function t(s){if("object"!=typeof s||null===s)return s;if(Array.isArray(s))return c(s,t);if(s.constructor!==Object&&(o=i.get(s.constructor)))return o(s,t);const a={};for(const c in s){if(!1===Object.hasOwnProperty.call(s,c))continue;const n=s[c];"object"!=typeof n||null===n?a[c]=n:n.constructor!==Object&&(o=i.get(n.constructor))?a[c]=o(n,t):ArrayBuffer.isView(n)?a[c]=e(n):a[c]=t(n)}return a};function c(t,c){const s=Object.keys(t),a=new Array(s.length);for(let n=0;n<s.length;n++){const r=s[n],l=t[r];"object"!=typeof l||null===l?a[r]=l:l.constructor!==Object&&(o=i.get(l.constructor))?a[r]=o(l,c):ArrayBuffer.isView(l)?a[r]=e(l):a[r]=c(l)}return a}},I0}();const _0=ip(F0)();function H0(e,t,i){const o=function e(o){const c=_0(o);if(c.groupId===t)return c.children=i(c.children),c;const s=[];let a=!1;for(const t of c.children)if("children"in t){const i=e(t);i?(s.push(i),a=!0):s.push(t)}else s.push(t);return c.children=s,a?c:null}(e);if(!o)throw new Error(`Unable to find group with groupId ${t}`);return o}function P0(e,t,i){return function e(o){for(const c of o.children){if(i(c,t))return o;if("children"in c){const t=e(c);if(t)return t}}return null}(e)}function V0(e,t){const i=P0(e,t,(e,t)=>"children"in e&&e.groupId===t);if(!i)throw new Error(`No parent group found for group with ID ${t}`);return i}function B0(e,t){const i=P0(e,t,(e,t)=>"ruleId"in e&&e.ruleId===t);if(!i)throw new Error(`No parent group found for rule with ID ${t}`);return i}function U0(e,t,i){return H0(e,t,e=>[...e,i])}const j0="group-root";function q0(e,t){const i=(e,o)=>"children"in e?function(e,o){return Object.assign(Object.assign({},e),{level:o,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>i(e,o+1))})}(e,o):function(e){return Object.assign(Object.assign({},e),{ruleId:t.getRuleId(),config:t.getConfig()})}(e);return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:j0,children:e.children.map(e=>i(e,2))})}function G0(e){const t=e.children.map(e=>"children"in e?G0(e):function(e){const{operator:t,field:i,value:o}=e;return{operator:t,field:i,value:o}}(e));return{combinator:e.combinator,children:t}}const W0=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,Y0=e=>`${W0(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,K0=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.input)&&void 0!==o?o:e.field.input},Z0=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type},Q0=e=>{const t={},i=[],o=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){const i=e.optgroup;t[i]||(t[i]=[]),t[i].push(e)}else i.push(e)});const c=[];return Object.keys(t).sort().forEach(e=>{c.push({optgroup:e,xs:o(t[e])})}),[...c,...o(i)]};function X0(e,t,i){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const o=t.customStyles[i];if(o){const t=document.createElement("style");t.textContent=o,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var J0;!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"}(J0||(J0={}));const e6=Ce` :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}`,t6=Ce` .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}`,i6=W` ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.radio,{radioTag:c,radioGroupTag:s}=o?{radioTag:o.input,radioGroupTag:o.group}:{radioTag:"input",radioGroupTag:"div"};return W`<div class="btn-group group-conditions">${Fb(e=>"input"!==c,W`<${s}class="radio-group-container" name="combinator" @change="${(e,t)=>e.handleCombinatorChange(t.event)}" value="${e=>{var t,i;return null===(i=null===(t=e.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type}}">${qe(e=>{var t,i;return null!==(i=null===(t=e.config)||void 0===t?void 0:t.combinators)&&void 0!==i?i:[]},W` ${He(e=>!e.invisible,W`<${c}value="${e=>e.type}" ?checked=${(e,t)=>{var i,o;return(null===(o=null===(i=t.parent.model)||void 0===i?void 0:i.combinator)||void 0===o?void 0:o.type)===e.type}}>${e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.type}}</${c}>`)} `)}</${s}>`,W`<div class="radio-group-container">${qe(e=>e.config.combinators,W` ${He(e=>!e.invisible,W`<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)=>{var i,o;return(null===(o=null===(i=t.parent.model)||void 0===i?void 0:i.combinator)||void 0===o?void 0:o.type)===e.type}}/>${e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.type}}</label>`)} `)}</div>`)}</div>`}} `,o6=W` ${e=>{var t,i,o,c,s,a,n,r;const l=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button",d=`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. ${null===(s=null===(c=null===(o=e.config)||void 0===o?void 0:o.combinators)||void 0===c?void 0:c[0])||void 0===s?void 0:s.type})`,h=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${null===(r=null===(n=null===(a=e.config)||void 0===a?void 0:a.combinators)||void 0===n?void 0:n[0])||void 0===r?void 0:r.type})`;return W`<div class="btn-group float-end group-actions">${He(e=>e.allowAddRule,W`<${l}type="button" class="btn btn-sm btn-success" data-add="rule" @click="${(e,t)=>e.dispatchAddRule(t.event)}" title=${e=>d}>
|
|
98
|
+
Hours ${_x(D2,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>i.hourOptions}:selectedOptions=${()=>i.selectedHours}@selectionChange="${(e,t)=>i.handleHoursChange(t.event)}"></${t}-multiselect></div>`)} ${K2(t,i,!1,!0)}</div>`;case f2.DAILY:return W` ${((e,t)=>W`<daily-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></daily-recurrence>`)(t,i)}<div class="row">${Y2(t,i,"Every")} ${K2(t,i,!0,!0)}</div>`;case f2.WEEKLY:return W`<div class="row">${((e,t)=>W`<weekly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></weekly-recurrence>`)(t,i)} ${K2(t,i,!0,!0)}</div>`;case f2.MONTHLY:return W`<div class="row">${Y2(t,i,"Every")} ${K2(t,i,!0,!0)}</div>${W2(t,i)} `;case f2.YEARLY:return W`<div class="row">${K2(t,i,!0,!0)}</div>${W2(t,i)} `;default:return W``}},Q2=e=>W`<template><div class="container"><div class="input-container"><label class="label">Recurrence ${He(e=>!e.disableTooltips,W` ${t=>_x(`\n <p>Select how often the event should occur:</p>\n <ul>\n${!t.minMinuteInterval||t.minMinuteInterval<30?"<li><strong>Minutes:</strong> Runs at every interval of minutes from the hour. Can be for every or specific hours.</li>":""}\n <li><strong>Hourly:</strong> Runs at a specific time in the hour, for one or more hours in the day.</li>\n <li><strong>Daily:</strong> Runs at a specific time of day, for a frequency interval of days per week (or work week).</li>\n <li><strong>Weekly:</strong> Runs at a specific time of day, for specific days of the week.</li>\n <li><strong>Monthly:</strong> Runs at a specific time of day in monthly intervals, on a specific date or day of month .</li>\n <li><strong>Yearly:</strong> Runs at a specific time, every year on a specific date or day of month.</li>\n </ul>\n`,e)} `)}</label><${e}-select data-test-id="select-recurrence" :value=${Nf(e=>e.recurrence)}@change="${e=>e.handleRecurrenceChange()}">${He(e=>e.isMinutesRecurrenceEnabled,W`<${e}-option data-test-id="${f2.MINUTES}">${f2.MINUTES}</${e}-option>`)}<${e}-option data-test-id="${f2.HOURLY}">${f2.HOURLY}</${e}-option><${e}-option data-test-id="${f2.DAILY}">${f2.DAILY}</${e}-option><${e}-option data-test-id="${f2.WEEKLY}">${f2.WEEKLY}</${e}-option><${e}-option data-test-id="${f2.MONTHLY}">${f2.MONTHLY}</${e}-option><${e}-option data-test-id="${f2.YEARLY}">${f2.YEARLY}</${e}-option></${e}-select></div>${qe(e=>[`${e.recurrence}-${e.during}`],W` ${(t,i)=>Z2(i.parent.recurrence,e,i.parent)} `,{recycle:!1})}</div></template>`,X2=W` ${e=>Q2(wx(e))} `;class J2 extends qt{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:w2,buildConfigForHourlyRecurrence:M2,buildConfigForDailyRecurrence:L2,buildConfigForWeeklyRecurrence:k2,buildConfigForMonthlyRecurrence:E2,buildConfigForYearlyRecurrence:$2},this.recurrence=f2.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:f2.DAILY,weekType:p2.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(!((e,t=C2)=>{const i=e.trim().split(" ");if(6!=i.length)return!1;const[o,c,s,a,n,r]=i;return t(o,0,59)&&t(c,0,59)&&t(s,0,23)&&t(a,1,31,!0)&&t(n,1,12)&&t(r,0,7,!0)})(this.cron))return void LC({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},wx(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void LC({title:"Cron Scheduler",body:e,toast:{type:"critical"}},wx(this))}}get duringOptions(){return[{label:"Every hour",value:"every_hour"},{label:"Specific hours",value:"specific_hours"}]}get frequencySuffix(){switch(this.cronConfig.type){case f2.MINUTES:return"Minute(s)";case f2.HOURLY:return"Hour(s)";case f2.DAILY:return"Day(s)";case f2.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case f2.MINUTES:const 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 f2.HOURLY:return Array.from({length:23},(e,t)=>t+1);case f2.DAILY:return Array.from({length:31},(e,t)=>t+1);case f2.MONTHLY:case f2.YEARLY:return Array.from({length:12},(e,t)=>t+1);case f2.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&&"0"!==this.hours?this.hours.split(","):"*"===this.hours?this.hourOptions.map(e=>e.value):[this.hours]}handleHoursChange(e){const t=e.detail;24===t.length?(this.hours="*",this.frequency="1",this.cronConfig.frequency="1"):t&&0!==t.length?this.hours=t.sort((e,t)=>Number(e)-Number(t)).join(","):this.hours="0",this.handleChange("hours")}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return"specific_hours"===this.during}get isDailyFrequencyDisabled(){return this.cronConfig.type===f2.DAILY&&this.cronConfig.weekType===p2.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(y2.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(y2.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case f2.MINUTES:const e=Eu(this.getBaseConfigFields(),["minutes"]);this.during="every_hour",this.hours="*";const t=[1,2,3,4,5,6,10,12,15,20,30],i=this.minMinuteInterval?Number(this.minMinuteInterval):1,o=t.find(e=>e>=i)||1;this.cronConfig=Object.assign(Object.assign({type:f2.MINUTES},e),{frequency:o.toString(),during:"every_hour",hours:"*"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.HOURLY:const c=Eu(this.getBaseConfigFields(),["hours"]);this.during="every_hour",this.hours="0",this.cronConfig=Object.assign(Object.assign({type:f2.HOURLY},c),{frequency:"1",during:"every_hour",hours:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.DAILY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:p2.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.WEEKLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set(["2"])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.MONTHLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:m2.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case f2.YEARLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:f2.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:m2.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:LC({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},wx(this))}}handleChange(e){if("frequency"===e&&0===Number(this.frequency))throw new Error("Frequency must be greater than 0");this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){"every_hour"===this.during?this.hours="*":"*"===this.hours&&(this.hours="0"),this.cronConfig.type!==f2.MINUTES&&this.cronConfig.type!==f2.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 f2.MINUTES:this.cron=function(e){const t="specific_hours"===e.during&&e.hours?e.hours:"*";return`${e.seconds} 0/${e.frequency} ${t} ? * *`}(e);break;case f2.HOURLY:this.cron=function(e){return"specific_hours"===e.during&&e.hours&&"*"!==e.hours?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case f2.DAILY:this.cron=function(e,t=z2){const i=e.weekType===p2.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${i} * ${e.weekType===p2.WORK_WEEK?"2-6":"?"}`}(e,z2);break;case f2.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case f2.MONTHLY:this.cron=function(e,t=z2){const{dateOrDay:i,minutes:o,hours:c,seconds:s,frequency:a}=e,n=t(a);return i.type===m2.DATE?`${s} ${o} ${c} ${i.dayDate} *${n} ?`:"-1"===i.weekNumber?`${s} ${o} ${c} ? *${n} ${i.day}L`:`${e.seconds} ${o} ${c} ? *${n} ${i.day}#${i.weekNumber}`}(e,z2);break;case f2.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:i,seconds:o,hours:c}=e;return t.type===m2.DATE?`${o} ${i} ${c} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${o} ${i} ${c} ? ${t.month} ${t.day}L`:`${o} ${i} ${c} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:LC({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},wx(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const i=e.split(" "),[o,c,s,a,n,r]=i;if("?"!==r&&"?"!==a)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(c))return Object.assign({seconds:o},t.buildConfigForMinutesRecurrence(c,s));if(/^(0|\*)\/\d+$/.test(s))return Object.assign({minutes:c,seconds:o},t.buildConfigForHourlyRecurrence(s));if("?"===a&&"*"===r)return Object.assign({minutes:c,seconds:o},t.buildConfigForHourlyRecurrence(s));if("2-6"===r||"?"===r&&("*"===a||a.startsWith("*")))return Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForDailyRecurrence(a,r));if(/^([1-7](,[1-7])*)$/.test(r)||"*"===r)return Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForWeeklyRecurrence(r));if(r.includes("L")||r.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(a)&&"?"===r)return"*"==n||n.startsWith("*/")?Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForMonthlyRecurrence(a,n,r)):Object.assign({hours:s,minutes:c,seconds:o},t.buildConfigForYearlyRecurrence(a,n,r));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;const e=this.cronConfig;"minutes"in e&&(this.minutes=e.minutes),e.type!==f2.MINUTES&&e.type!==f2.HOURLY||(this.during=e.during||"every_hour",e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==f2.HOURLY&&e.type!==f2.MINUTES&&(this.hours=e.hours)}}Nu([g],J2.prototype,"recurrence",void 0),Nu([g],J2.prototype,"cron",void 0),Nu([g],J2.prototype,"cronConfig",void 0),Nu([g],J2.prototype,"frequency",void 0),Nu([g],J2.prototype,"during",void 0),Nu([v],J2.prototype,"duringOptions",null),Nu([g],J2.prototype,"hours",void 0),Nu([g],J2.prototype,"minutes",void 0),Nu([g],J2.prototype,"seconds",void 0),Nu([v],J2.prototype,"frequencySuffix",null),Nu([v],J2.prototype,"frequencyList",null),Nu([v],J2.prototype,"hourOptions",null),Nu([v],J2.prototype,"selectedHours",null),Nu([re({attribute:"min-minute-interval"})],J2.prototype,"minMinuteInterval",void 0),Nu([re({mode:"boolean",attribute:"disable-tooltips"})],J2.prototype,"disableTooltips",void 0),Nu([v],J2.prototype,"isMinutesRecurrenceEnabled",null),Nu([v],J2.prototype,"isSpecificHours",null),Nu([v],J2.prototype,"isDailyFrequencyDisabled",null),Nu([re],J2.prototype,"timezone",void 0);const e3=void 0,t3={};J2.compose(Object.assign({baseName:"scheduler-cron-builder",styles:A2,template:X2,shadowOptions:e3},t3));const i3=Ce` /* 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}`,o3=e=>W`<template><div class="container"><label class="label">Time Zone</label><${e}-combobox data-test-id="cron-scheduler-timezone" autocomplete="both" class="timezone-combobox" value="${Nf(e=>e.timezone)}">${qe(e=>e.timeZones,W`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-combobox></div></template>`,c3=W` ${e=>o3(wx(e))} `;class s3 extends qt{constructor(){super(...arguments),this.timezone="",this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit("change")}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return Tu(this,void 0,void 0,function*(){const e=["Europe/London","America/New_York"];try{const t=yield this.connect.request("VALID_TIME_ZONE",{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw new Error("Invalid data returned for Timezones");this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,i)=>e.includes(t)&&!e.includes(i)?-1:!e.includes(t)&&e.includes(i)?1:t.localeCompare(i))}catch(e){LC({title:"Cron Scheduler",body:"Unable to fetch timezones data.",toast:{type:"critical"}},"rapid"),sf.error(e)}})}}Nu([g],s3.prototype,"timezone",void 0),Nu([fz],s3.prototype,"connect",void 0),Nu([g],s3.prototype,"timeZones",void 0);const a3=void 0,n3={};s3.compose(Object.assign({baseName:"scheduler-timezone",styles:i3,template:c3,shadowOptions:a3},n3));const r3=Ce` .search-bar-combobox{width: 100%;min-width: auto}.padding{padding-left: calc(${hr} * 1px)}.selected-options{display: flex;align-items: center;overflow: hidden;gap: calc(${hr} * 1px);padding-right: calc(${hr} * 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(${hr} * 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)}`,l3=e=>W`<label part="label" for="control" data-test-id="label" class=${e=>{var t;return Jt("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}><slot ${Ke({property:"defaultSlottedNodes",filter:Fs})}></slot></label><${e}-search-bar-combobox ${Ie("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 ${Ie("selectedOptionsDiv")}slot="selectedOptions" class="selected-options ${e=>e.selectedOptions.length>0?"selected-options-divider":null}">${qe(e=>e.selectedOptions,W`<${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>${qe(e=>e.filteredOptions,W`<${e}-option value="${e=>e.field}" :disabled=${(e,t)=>!t.parent.isOptionEnabled(e)}>${(e,t)=>e.label(t.parent.searchTerm)}</${e}-option>`)} ${He(e=>e.showClearAffordance,W`<${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>`,d3=W` ${e=>l3(wx(e))} `;class h3 extends qt{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=3,this.position=AL.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,i)=>(null==t?void 0:t.length)>0?e.replace(t,i):e.concat(i)}clear(){this.selectedOptions=[],this.searchTerm="",this.combobox&&(this.combobox.currentValue="",this.combobox.value=""),this.$emit("selectionChange",[])}clearSearch(){this.clear()}get showClearAffordance(){var e,t,i;if(!this.clearButton)return!1;const o=(null!==(i=null!==(e=this.searchTerm)&&void 0!==e?e:null===(t=this.combobox)||void 0===t?void 0:t.value)&&void 0!==i?i:"").trim();return this.selectedOptions.length>0||o.length>0}get allSearchFieldsUsed(){var e;return!!(null===(e=this.options)||void 0===e?void 0:e.length)&&this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field))}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(){const e=[];this.combobox.selectedOptions.forEach(t=>{var i,o,c;const s=t.value,a=this.searchTerm.trim();e.push({field:s,term:a,label:(null===(i=this.options.find(e=>e.field===s))||void 0===i?void 0:i.label(a))||t.text,createCriteria:null===(o=this.options.find(e=>e.field===s))||void 0===o?void 0:o.createCriteria,resourceType:null===(c=this.options.find(e=>e.field===s))||void 0===c?void 0:c.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,i)=>t===i.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),u.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},10)})}pasteHandler(e){var t;if(this.allSearchFieldsUsed)return void e.preventDefault();this.loading=!0;const i=e.clipboardData.getData("text/plain"),o=this.normalizeDelimiter(i),c=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),s=this.addOrReplaceSelectedText(this.combobox.value,c,o);(null==s?void 0:s.length)>=this.minlength&&(this.combobox.value=s,this.searchTerm=s,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(i=>i.term===e&&i.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return Tu(this,void 0,void 0,function*(){this.allSearchFieldsUsed?this.applySearchInputLock():(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(i=>i.field===t.field&&i.term.trim()===e.trim()))}}Nu([g],h3.prototype,"defaultSlottedNodes",void 0),Nu([g],h3.prototype,"options",void 0),Nu([g],h3.prototype,"searchTerm",void 0),Nu([re],h3.prototype,"appearance",void 0),Nu([re],h3.prototype,"minlength",void 0),Nu([re],h3.prototype,"position",void 0),Nu([re],h3.prototype,"placeholder",void 0),Nu([re],h3.prototype,"disabled",void 0),Nu([re({attribute:"clear-button",mode:"boolean"})],h3.prototype,"clearButton",void 0),Nu([g],h3.prototype,"loading",void 0),Nu([g],h3.prototype,"selectedOptions",void 0),Nu([g],h3.prototype,"filteredOptions",void 0);const u3=void 0,f3={};h3.compose(Object.assign({baseName:"search-bar",template:d3,styles:r3,shadowOptions:u3},f3));const p3=(e,t)=>Ce` ${iM(e)} .control{width: auto;padding-left: calc(${hr} * 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}`,m3=(e,t)=>W`<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)}" ${Ie("control")}data-test-id="selected-value" /></slot></div>${Je(0,t)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>!e.open}" ${Ie("listbox")}data-test-id="listbox"><slot ${Ke({filter:Bo.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,g3=new Set(["Backspace","Delete","Tab","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);class v3 extends uh{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){const 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=this.previousLength-1;break;case"Enter":if(this.open&&-1!==this.selectedIndex){const 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){const t=e.key;if(this.inputLocked){const i=e.ctrlKey||e.metaKey||e.altKey;if(!(g3.has(t)||i))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-1!==this.selectedIndex&&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)return this.control.value="",this.value="",this.open=!1,void e.stopImmediatePropagation();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)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}}Nu([re],v3.prototype,"minlength",void 0),Nu([g],v3.prototype,"inputLocked",void 0);const b3={delegatesFocus:!0,mode:"open"},y3={};v3.compose(Object.assign({baseName:"search-bar-combobox",template:m3,styles:p3,shadowOptions:b3},y3));const z3=Ce` :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-y: auto;overflow-x: hidden;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)}`,x3=W` ${e=>(e=>W`<template><div class="section-navigator-container" part="section-navigator-container" ${Ie("sectionNavigatorContainer")}><nav class="section-navigation" part="section-navigator-navigation">${qe(e=>e.sectionItems,W`<${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} ${qe(e=>e.states||[],W`<${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" ${Ie("sectionContent")}>${qe(e=>e.sectionItems,W`<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>`)(wx(e))} `,C3=cf("SectionNavigator"),L3="section-navigator",M3={setState:`${L3}-set-state`,setStates:`${L3}-set-states`,clearState:`${L3}-clear-state`,clearAllStates:`${L3}-clear-all-states`},w3={active:"Active",inactive:"Inactive",pending:"Pending",disabled:"Disabled",error:"Error",completed:"Completed"},k3={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"}};class S3 extends qt{constructor(){super(...arguments),this.sections=[],this.scrollBehavior="top",this.stateTooltips=w3,this.stateIcons=k3,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))return C3.warn("Sections must be an array"),void(this.sectionItems=[]);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){if(null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0,"top"===this.scrollBehavior)try{const e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(".content-section:last-child");if(t){const i=t.offsetHeight,o=20,c=Math.max(0,e-i-o);this.spacerElement=document.createElement("div"),this.spacerElement.className="scroll-spacer",this.spacerElement.style.height=`${c}px`,this.spacerElement.style.pointerEvents="none",this.sectionContent.appendChild(this.spacerElement)}}catch(e){C3.error("Error updating spacer:",e)}}else C3.warn("Section content element not found")}scrollToSection(e){if(this.sectionContent)try{const t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t)return void C3.warn(`Section "${e}" not found`);const i=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:i,behavior:"smooth"}),this.setupScrollEndDetection()}catch(e){C3.error("Error scrolling to section:",e)}else C3.warn("Section content not available")}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(this.sectionContent)try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},S3.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener("scroll",this.scrollCheckHandler,{passive:!0});const e=()=>{this.isUserScrolling=!0},t=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};let i;this.sectionContent.addEventListener("wheel",e,{passive:!0}),this.sectionContent.addEventListener("touchstart",e,{passive:!0}),this.sectionContent.addEventListener("mousedown",e,{passive:!0}),this.sectionContent.addEventListener("scrollend",t,{passive:!0}),this.sectionContent.addEventListener("scroll",()=>{clearTimeout(i),i=window.setTimeout(t,S3.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){C3.error("Error setting up scroll detection:",e)}else C3.warn("Section content not available for scroll detection")}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;const e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2;let t=null,i=1/0;this.sectionItems.forEach(o=>{const c=this.sectionContent.querySelector(`[data-section="${o.name}"]`);if(c){const s=c.offsetTop+c.clientHeight/2,a=Math.abs(s-e);a<i&&(i=a,t=o.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(){this.sectionContent?(this.handleSetStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.addState(t,i)}catch(e){C3.error("Error handling set-state event:",e)}},this.handleSetStatesRef=e=>{try{const{sectionName:t,stateNames:i}=e.detail;this.addStates(t,i)}catch(e){C3.error("Error handling set-states event:",e)}},this.handleClearStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.clearState(t,i)}catch(e){C3.error("Error handling clear-state event:",e)}},this.handleClearAllStatesRef=e=>{try{const{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){C3.error("Error handling clear-all-states event:",e)}},this.handleGenericStateEventRef=e=>{try{const t=e.type,i=e.detail;if(null==i?void 0:i.sectionName)return;const o=e.target.closest("[data-section]");let c=null==o?void 0:o.getAttribute("data-section");if(!c){const t=e.target.closest("[slot]");c=(null==t?void 0:t.getAttribute("slot"))||this.activeSection}c||(c=this.activeSection),e.stopPropagation(),e.preventDefault();const s=Object.assign(Object.assign({},i),{sectionName:c}),a=new CustomEvent(t,{detail:s,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){C3.error("Error handling generic state event:",e)}},this.addEventListener(M3.setState,this.handleSetStateRef),this.addEventListener(M3.setStates,this.handleSetStatesRef),this.addEventListener(M3.clearState,this.handleClearStateRef),this.addEventListener(M3.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(M3.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(M3.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(M3.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(M3.clearAllStates,this.handleGenericStateEventRef,!0)):C3.warn("Section content not available for event listeners")}updateSectionStates(e,t){const i=this.sectionItems.findIndex(t=>t.name===e);if(-1!==i){const e=Object.assign(Object.assign({},this.sectionItems[i]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,i),e,...this.sectionItems.slice(i+1)]}}addState(e,t){if(!e||!t)return void C3.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void C3.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[];if(!o.includes(t)){const i=[...o,t];this.updateSectionStates(e,i)}}addStates(e,t){if(!e||!Array.isArray(t))return void C3.warn("Section name and state names array are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void C3.warn(`Section "${e}" not found`);const o=[...this.sectionItems[i].states||[]];t.forEach(e=>{o.includes(e)||o.push(e)}),this.updateSectionStates(e,o)}clearState(e,t){if(!e||!t)return void C3.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void C3.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[],c=o.indexOf(t);if(c>-1){const t=o.filter((e,t)=>t!==c);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e)return void C3.warn("Section name is required");-1!==this.sectionItems.findIndex(t=>t.name===e)?this.updateSectionStates(e,[]):C3.warn(`Section "${e}" not found`)}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||"":(C3.warn("State name is required"),"")}getSectionStateClass(e){if(!e)return C3.warn("Section is required"),"state-none";const t=e.states||[];if(0===t.length)return"state-none";if(t.length>1)return"state-multiple";return`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||k3[e]:(C3.warn("State name is required"),k3.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(M3.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(M3.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(M3.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(M3.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(M3.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(M3.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(M3.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(M3.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0}}S3.SCROLL_END_TIMEOUT=150,S3.SCROLL_DEBOUNCE_TIMEOUT=100,Nu([g],S3.prototype,"sections",void 0),Nu([re({attribute:"scroll-behavior"})],S3.prototype,"scrollBehavior",void 0),Nu([re({attribute:"state-tooltips"})],S3.prototype,"stateTooltips",void 0),Nu([re({attribute:"state-icons"})],S3.prototype,"stateIcons",void 0),Nu([re({attribute:"disable-auto-scroll-detection",mode:"boolean"})],S3.prototype,"disableAutoScrollDetection",void 0),Nu([g],S3.prototype,"sectionItems",void 0),Nu([g],S3.prototype,"activeSection",void 0);const $3={mode:"open"},E3={};S3.compose(Object.assign({baseName:"foundation-section-navigator",template:x3,styles:z3,shadowOptions:$3},E3));const N3=(e,t)=>Es(),A3=(e,t)=>Ce` ${_h()} ::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}`;class T3 extends Ns{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}}T3.compose(Object.assign({baseName:"segmented-control",template:N3,styles:A3,shadowOptions:void 0},{}));const O3=(e,t)=>W`<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>`,R3=(e,t)=>Ce` ${Hh()} :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 Rs{}).compose(Object.assign({baseName:"segmented-item",template:O3,styles:R3,shadowOptions:void 0},{}));const I3=(e,t)=>Gs(0,t),D3=(e,t)=>Ce` ${dh(e)} :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}`;class F3 extends Uh{slottedOptionsChanged(e,t){const i=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;const o=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{const t=e.nodeName.toLowerCase();if(t.endsWith("-optgroup")){const t=Array.from(e.children).filter(e=>{const t=e.nodeName.toLowerCase();return"option"===e.getAttribute("role")||t.endsWith("-option")});o.push(...t)}else("option"===e.getAttribute("role")||t.endsWith("-option"))&&o.push(e)}),this.options=o,i&&(this.value=i),-1===this.selectedIndex&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&null!==e&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void u.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}keydownHandler(e){switch(e.key){case"ArrowDown":case"ArrowUp":if(this.open){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView({block:"center",behavior:"auto"})}else this.open=!0}return super.keydownHandler(e)}}const _3=void 0,H3={indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '};F3.compose(Object.assign({baseName:"select",template:I3,styles:D3,shadowOptions:_3},H3));const P3=(e,t)=>Ws(),V3=(e,t)=>Ce` ${jh()}`;class B3 extends Ys{}const U3=void 0,j3={};B3.compose(Object.assign({baseName:"skeleton",template:P3,styles:V3,shadowOptions:U3},j3));const q3=(e,t)=>W`<template role="slider" class="${e=>e.readOnly?"readonly":""} ${e=>e.orientation||Qt}" 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||void 0}" aria-readonly="${e=>!!e.readOnly||void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${Ie("track")}part="track-container" class="track"><div class="track-progress" style="${e=>{const t=1-xi(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),i=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${i}%;`:`height: calc(var(--track-width) * 1px); width: ${i}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${i}%;`:`width: calc(var(--track-width) * 1px); height: ${i}%; transition: all 0.2s ease;`}}"></div></div><slot></slot><div ${Ie("thumb")}part="thumb-container" class="thumb-container" style="${e=>e.position}"><slot name="thumb">${t.thumb||""}</slot></div></div></template>`,G3=(e,t)=>Ce` ${Qh()} .track-progress{background-color: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;class W3 extends ia{}const Y3=void 0,K3={thumb:'\n <div class="thumb-cursor"></div>\n '};W3.compose(Object.assign({baseName:"slider",template:q3,styles:G3,shadowOptions:Y3},K3));const Z3=(e,t)=>Ks(),Q3=(e,t)=>Ce` ${Wh()}`;class X3 extends Yh{}const J3=void 0,e4={};X3.compose(Object.assign({baseName:"slider-label",template:Z3,styles:Q3,shadowOptions:J3},e4));const t4="default",i4="dismiss",o4="autoDismiss",c4=Ce` @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}`,s4=e=>W`<div role="alert" aria-live="polite" part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${Ie("snackbar")}><div part="content" class="content"><slot name="content">${e=>{var t,i;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(i=e.notification)||void 0===i?void 0:i.body)||"Place holder for error message"}}</slot></div>${He(e=>{var t,i,o,c,s,a,n,r;return(null===(c=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||void 0===c?void 0:c.length)||(null===(r=null===(n=null===(a=null===(s=e.notification)||void 0===s?void 0:s.config)||void 0===a?void 0:a.snackbar)||void 0===n?void 0:n.confirmingActions)||void 0===r?void 0:r.length)},W`<div part="action" class="action"><slot name="action">${qe(e=>{var t,i,o,c,s,a;return(null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||(null===(a=null===(s=null===(c=e.notification)||void 0===c?void 0:c.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.confirmingActions)},W`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var i;null==e||e.action(),null===(i=t.parent)||void 0===i||i.dismiss()}}>${e=>e.label}</${e}-button>`)}</slot></div>`)}</div>`,a4=W` ${e=>s4(wx(e))} `,n4={mode:"open",delegatesFocus:!0};class r4 extends qt{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!0,this.type=t4,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(i4,this.dismissEventListener)}errorChanged(e,t){var i,o,c;this.type=null!==(c=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==c?c:t4}notificationChanged(e,t){var i,o,c,s,a,n,r,l,d;this.type=null!==(c=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==c?c:t4,this.autoClose=null===(n=null===(a=null===(s=null==t?void 0:t.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.autoClose)||void 0===n||n,this.closeTimeout=null!==(d=null===(l=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.snackbar)||void 0===l?void 0:l.closeTimeout)&&void 0!==d?d:1e4}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(o4,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(i4,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}Nu([g],r4.prototype,"error",void 0),Nu([g],r4.prototype,"notification",void 0),Nu([g],r4.prototype,"deleteAnimation",void 0),Nu([re({attribute:"identifier"})],r4.prototype,"identifier",void 0),Nu([re({attribute:"close-timeout"})],r4.prototype,"closeTimeout",void 0),Nu([re({attribute:"auto-close",mode:"boolean"})],r4.prototype,"autoClose",void 0),Nu([re({attribute:"type"})],r4.prototype,"type",void 0),r4.compose({baseName:"snackbar",styles:c4,template:a4,shadowOptions:n4});const l4=(e,t)=>Ce` ${jK()} .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}`,d4=W`<span class=${e=>`fa-stack fa-${e.size}`}style=${e=>`vertical-align: ${e["vertical-align"]};`}><slot></slot></span>`;class h4 extends qt{constructor(){super(...arguments),this.size="1x",this["vertical-align"]="baseline"}}Nu([re],h4.prototype,"size",void 0),Nu([re],h4.prototype,"vertical-align",void 0),h4.compose({baseName:"stacking-icons",template:d4,styles:l4});const u4=Ce` .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}`,f4=W` ${e=>(e=>W` ${He(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),W`<div data-test-id="status-pill" part="status-pill" class="status-pill" style="color:${e=>e.textColor||""}; background:${e=>e.backgroundColor||""};">${He(e=>e.iconName,W`<${e}-icon name="${e=>e.iconName}" size="${e=>e.iconSize}"></${e}-icon>`)} ${He(e=>e.iconSrc,W`<img alt="${e=>e.iconSrc}" class="status-pill-image" src="${e=>e.iconSrc}" />`)} ${He(e=>e.iconInitial,W`<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>${He(e=>e.countdown,W`<span data-test-id="status-pill-countdown">${e=>e.countdown}</span>`)}</div>`)} `)(wx(e))} `;class p4 extends qt{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)return void this.clearCountdownTimer();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)))xx.warn("invalid date-countdown value passed. Must be a number");else{e=parseInt(e);const t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),1e3)}}updateCountdown(e){const t=(new Date).getTime(),i=Math.floor(e.getTime()-t),o=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0!==o&&!isNaN(o)&&t<o)return this.isCountdownVisible=!1,this.countdown=null,void(this.isCountdownExpired=!1);this.isCountdownVisible=!0,i<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=((e,t="second")=>{let i=e/1e3;const o=Math.floor(i/86400);i%=86400;const c=Math.floor(i/3600);i%=3600;const s=Math.floor(i/60),a=Math.floor(i%60),n=[];switch(o&&n.push(`${o}d`),t){case"minute":c&&n.push(`${c}h`),s&&n.push(`${s}m`),!s&&a&&n.push("< 1m");break;case"hour":c&&n.push(`${c}h`),c||!s&&!a||n.push("< 1h");break;default:c&&n.push(`${c}h`),s&&n.push(`${s}m`),a&&n.push(`${a}s`)}return n.length?n.join(" "):"0s"})(i,this.dateCountdownUnit)}updateVisibilityFromStartTime(){const e=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0===e||isNaN(e))this.isCountdownVisible=!0;else{const t=Date.now();this.isCountdownVisible=t>=e}}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}}Nu([re({attribute:"background-color"})],p4.prototype,"backgroundColor",void 0),Nu([re({attribute:"icon-name"})],p4.prototype,"iconName",void 0),Nu([re({attribute:"icon-src"})],p4.prototype,"iconSrc",void 0),Nu([re({attribute:"icon-initial"})],p4.prototype,"iconInitial",void 0),Nu([re({attribute:"icon-initial-background-color"})],p4.prototype,"iconInitialBackgroundColor",void 0),Nu([re({attribute:"icon-size"})],p4.prototype,"iconSize",void 0),Nu([re({attribute:"text-color"})],p4.prototype,"textColor",void 0),Nu([re],p4.prototype,"text",void 0),Nu([re({attribute:"date-countdown"})],p4.prototype,"dateCountdown",void 0),Nu([re({attribute:"date-countdown-completed-message"})],p4.prototype,"dateCountdownCompletedMessage",void 0),Nu([re({attribute:"date-countdown-unit"})],p4.prototype,"dateCountdownUnit",void 0),Nu([re({attribute:"date-countdown-visible-after"})],p4.prototype,"dateCountdownVisibleAfter",void 0),Nu([re({mode:"boolean",attribute:"hide-when-countdown-completed"})],p4.prototype,"hideWhenCountdownCompleted",void 0),Nu([g],p4.prototype,"countdown",void 0),Nu([g],p4.prototype,"isCountdownExpired",void 0),Nu([g],p4.prototype,"isCountdownVisible",void 0),p4.compose({baseName:"status-pill",styles:u4,template:f4});const m4=e=>W` ${Af(e=>e.orientation===ua,W`<${e}-tree-item ${Ie("treeItem")}class=${e=>Jt("tree-item",["cursor-pointer",e.showCursorPointer])}@click="${(e,t)=>e.$emit("tab-clicked",e.tabPosition-1)}">${He(e=>e.completed,W`<${e}-icon name="check-circle" variant="regular" size="lg" class="stepper-icon completed-icon"></${e}-icon>`)} ${He(e=>e.error,W`<${e}-icon name="times-circle" variant="regular" size="lg" class="stepper-icon error-icon"></${e}-icon>`)}<slot></slot></${e}-tree-item>`,W`<div class=${e=>Jt("step-container",["selected",e.selected])}><div class=${e=>Jt("step-number-container",["cursor-pointer",e.showCursorPointer])}@click="${e=>e.$emit("tab-clicked",e.tabPosition-1)}">${He(e=>!e.hideStepNumber,W`<span class="step-number">${e=>e.tabPosition}</span>`)}<slot class="step-title"></slot></div>${He(e=>!e.isLast,W`<${e}-icon class="stepper-icon angle-icon" name="angle-right" variant="solid" size="lg"></${e}-icon>`)}</div>`)} `,g4=W` ${e=>m4(wx(e))} `,v4=(e,t)=>Ce` .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 */}`;class b4 extends qt{constructor(){super(...arguments),this.slot="tab",this.orientation=ua}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}}Nu([re],b4.prototype,"slot",void 0),Nu([re({mode:"boolean"})],b4.prototype,"selected",void 0),Nu([re({mode:"boolean"})],b4.prototype,"completed",void 0),Nu([re({mode:"boolean"})],b4.prototype,"error",void 0),Nu([re({mode:"boolean"})],b4.prototype,"isLast",void 0),Nu([re({mode:"boolean"})],b4.prototype,"hideStepNumber",void 0),Nu([re({mode:"boolean"})],b4.prototype,"showCursorPointer",void 0),Nu([re({attribute:"tab-position"})],b4.prototype,"tabPosition",void 0),Nu([re],b4.prototype,"orientation",void 0);const y4=void 0,z4={};b4.compose(Object.assign({baseName:"stepper-tab",template:g4,styles:v4,shadowOptions:y4},z4));const x4=()=>W`<template slot="tab-panel" role="stepper-tab-panel"><slot></slot></template>`;class C4 extends qt{}const L4=void 0,M4={};C4.compose(Object.assign({baseName:"stepper-tab-panel",template:x4,shadowOptions:L4},M4));const w4=(e,t)=>oa(0,t),k4=(e,t)=>Ce` ${Xh()} .checked-indicator{transform: scale(1.3)}.switch{border-radius: calc(var(--control-corner-radius) * 3px)}.checked-indicator{border-radius: calc(var(--control-corner-radius) * 2px)}`;class S4 extends aa{}const $4=void 0,E4={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};S4.compose(Object.assign({baseName:"switch",template:w4,styles:k4,shadowOptions:$4},E4));const N4=(e,t)=>la(),A4=(e,t)=>Ce` ${eu()} :host{user-select: none}`;class T4 extends da{}const O4=void 0,R4={};T4.compose(Object.assign({baseName:"tab",template:N4,styles:A4,shadowOptions:O4},R4));const I4=(e,t)=>na(),D4=(e,t)=>Ce` ${tu()} :host{height: 100%;padding: 0}`;class F4 extends ra{}const _4=void 0,H4={};F4.compose(Object.assign({baseName:"tab-panel",template:I4,styles:D4,shadowOptions:_4},H4));const P4=(e,t)=>ha(0,t),V4=(e,t)=>Ce` ${Jh()} :host{height: 100%;width: 100%}:host([scrollable]) [part='tablist']{overflow-x: auto;overflow-y: hidden;white-space: nowrap}:host([scrollable]) ::slotted([role='tab']){flex: 0 0 auto}`;class B4 extends pa{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}}Nu([re({mode:"boolean"})],B4.prototype,"scrollable",void 0);const U4=void 0,j4={};B4.compose(Object.assign({baseName:"tabs",template:P4,styles:V4,shadowOptions:U4},j4));const q4=(e,t)=>ya(),G4=(e,t)=>Ce` ${iu()} :host .control{padding: calc(var(--design-unit) * 3px)}`;class W4 extends ou{}const Y4=void 0,K4={};W4.compose(Object.assign({baseName:"text-area",template:q4,styles:G4,shadowOptions:Y4},K4));const Z4=(e,t)=>W`<template class="${e=>Jt(["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 ${Ke({property:"defaultSlottedNodes",filter:Fs})}></slot></label><div class="root" part="root">${et(0,t)}<div class="control-field">${He(e=>e.prefix,W`<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}" ${Ie("control")}/>${He(e=>e.suffix,W`<span class="suffix" part="suffix" id="${e=>`${e.id||"control"}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${Je(0,t)}</div></template>`,Q4=(e,t)=>Ce` ${cu()} /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */ ${rQ} input{color-scheme: ${kv}}`;class X4 extends(aQ(su)){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)}}Nu([re],X4.prototype,"autocomplete",void 0),Nu([re],X4.prototype,"autocapitalize",void 0),Nu([re],X4.prototype,"step",void 0);const J4={mode:"open",delegatesFocus:!0},e0={};X4.compose(Object.assign({baseName:"text-field",template:Z4,styles:Q4,shadowOptions:J4},e0));const t0=Ce` @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}`,i0=(e="zero")=>W`<div role="alert" part="root" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${Ie("toast")}><div class="content-wrapper"><div part="top" class="top">${He(e=>e.notificationIcon,W`<${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()}>${((e="zero")=>W`<${e}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`)(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>`,o0=W` ${e=>i0(wx(e))} `,c0={mode:"open",delegatesFocus:!0},s0={};class a0 extends qt{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()}}Nu([g],a0.prototype,"deleteAnimation",void 0),Nu([re({attribute:"close-timeout"})],a0.prototype,"closeTimeout",void 0),Nu([re({attribute:"auto-close"})],a0.prototype,"autoClose",void 0),Nu([re({attribute:"notification-icon"})],a0.prototype,"notificationIcon",void 0),a0.compose(Object.assign({baseName:"toast",styles:t0,template:o0,shadowOptions:c0},s0));const n0=(e,t)=>za(0,t),r0=(e,t)=>Ce` ${au()}`;class l0 extends nu{}const d0=void 0,h0={};l0.compose(Object.assign({baseName:"toolbar",template:n0,styles:r0,shadowOptions:d0},h0));const u0=(e,t)=>Ma(e),f0=(e,t)=>Ce` ${ru(e)}`;class p0 extends Ha{}const m0=void 0,g0={};p0.compose(Object.assign({baseName:"tooltip",template:u0,styles:f0,shadowOptions:m0},g0));const v0=(e,t)=>Pa(0,t),b0=(e,t)=>Ce` ${pu(e)} :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)}`;class y0 extends Ba{}const z0=void 0,x0={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <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>\n </svg>'};y0.compose(Object.assign({baseName:"tree-item",template:v0,styles:b0,shadowOptions:z0},x0));const C0=(e,t)=>Ua(),L0=(e,t)=>Ce` ${mu()}`;class M0 extends ja{}const w0=void 0,k0={};M0.compose(Object.assign({baseName:"tree-view",template:C0,styles:L0,shadowOptions:w0},k0));const S0=(e,t)=>Ce` .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}`,$0=e=>W`<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)=>{var i;return e.readOnly?"":e.saveUrl(null===(i=t.event)||void 0===i?void 0:i.target.value)}}@focus=${e=>e.focus()}:readOnly=${e=>e.readOnly}></${e}-text-field>${He(e=>e.readOnly||!e.focused,W`<a class="url-input-link" href=${e=>e.value}target="_blank">${e=>e.value}</a>`)}</div>`,E0=W` ${e=>$0(wx(e))} `,N0=void 0,A0={};class T0 extends su{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}Nu([g],T0.prototype,"value",void 0),Nu([g],T0.prototype,"focused",void 0),T0.compose(Object.assign({baseName:"url-input",template:E0,styles:S0,shadowOptions:N0},A0));let O0=class extends Cx{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return Tu(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){const t=null==e?void 0:e.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name});return t}clearData(){xx.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),i=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=i,this.dataGrid.rowsData=t}handleStreamInserts(e){xx.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){xx.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){xx.debug("handleStreamUpdates - Method not implemented.")}};O0=Nu([ye({name:"data-grid-datasource"})],O0);const R0={type:"NULL",maxRules:1,invisible:!0};var I0,D0;var F0=function(){if(D0)return I0;function e(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}return D0=1,I0=function(t){if((t=t||{}).circles)return function(t){const i=[],o=[],c=new Map;if(c.set(Date,e=>new Date(e)),c.set(Map,(e,t)=>new Map(a(Array.from(e),t))),c.set(Set,(e,t)=>new Set(a(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)c.set(e[0],e[1]);let s=null;return t.proto?r:n;function a(t,a){const n=Object.keys(t),r=new Array(n.length);for(let l=0;l<n.length;l++){const d=n[l],h=t[d];if("object"!=typeof h||null===h)r[d]=h;else if(h.constructor!==Object&&(s=c.get(h.constructor)))r[d]=s(h,a);else if(ArrayBuffer.isView(h))r[d]=e(h);else{const e=i.indexOf(h);r[d]=-1!==e?o[e]:a(h)}}return r}function n(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,n);if(t.constructor!==Object&&(s=c.get(t.constructor)))return s(t,n);const r={};i.push(t),o.push(r);for(const a in t){if(!1===Object.hasOwnProperty.call(t,a))continue;const l=t[a];if("object"!=typeof l||null===l)r[a]=l;else if(l.constructor!==Object&&(s=c.get(l.constructor)))r[a]=s(l,n);else if(ArrayBuffer.isView(l))r[a]=e(l);else{const e=i.indexOf(l);r[a]=-1!==e?o[e]:n(l)}}return i.pop(),o.pop(),r}function r(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,r);if(t.constructor!==Object&&(s=c.get(t.constructor)))return s(t,r);const n={};i.push(t),o.push(n);for(const a in t){const l=t[a];if("object"!=typeof l||null===l)n[a]=l;else if(l.constructor!==Object&&(s=c.get(l.constructor)))n[a]=s(l,r);else if(ArrayBuffer.isView(l))n[a]=e(l);else{const e=i.indexOf(l);n[a]=-1!==e?o[e]:r(l)}}return i.pop(),o.pop(),n}}(t);const i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(c(Array.from(e),t))),i.set(Set,(e,t)=>new Set(c(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)i.set(e[0],e[1]);let o=null;return t.proto?function t(s){if("object"!=typeof s||null===s)return s;if(Array.isArray(s))return c(s,t);if(s.constructor!==Object&&(o=i.get(s.constructor)))return o(s,t);const a={};for(const c in s){const n=s[c];"object"!=typeof n||null===n?a[c]=n:n.constructor!==Object&&(o=i.get(n.constructor))?a[c]=o(n,t):ArrayBuffer.isView(n)?a[c]=e(n):a[c]=t(n)}return a}:function t(s){if("object"!=typeof s||null===s)return s;if(Array.isArray(s))return c(s,t);if(s.constructor!==Object&&(o=i.get(s.constructor)))return o(s,t);const a={};for(const c in s){if(!1===Object.hasOwnProperty.call(s,c))continue;const n=s[c];"object"!=typeof n||null===n?a[c]=n:n.constructor!==Object&&(o=i.get(n.constructor))?a[c]=o(n,t):ArrayBuffer.isView(n)?a[c]=e(n):a[c]=t(n)}return a};function c(t,c){const s=Object.keys(t),a=new Array(s.length);for(let n=0;n<s.length;n++){const r=s[n],l=t[r];"object"!=typeof l||null===l?a[r]=l:l.constructor!==Object&&(o=i.get(l.constructor))?a[r]=o(l,c):ArrayBuffer.isView(l)?a[r]=e(l):a[r]=c(l)}return a}},I0}();const _0=ip(F0)();function H0(e,t,i){const o=function e(o){const c=_0(o);if(c.groupId===t)return c.children=i(c.children),c;const s=[];let a=!1;for(const t of c.children)if("children"in t){const i=e(t);i?(s.push(i),a=!0):s.push(t)}else s.push(t);return c.children=s,a?c:null}(e);if(!o)throw new Error(`Unable to find group with groupId ${t}`);return o}function P0(e,t,i){return function e(o){for(const c of o.children){if(i(c,t))return o;if("children"in c){const t=e(c);if(t)return t}}return null}(e)}function V0(e,t){const i=P0(e,t,(e,t)=>"children"in e&&e.groupId===t);if(!i)throw new Error(`No parent group found for group with ID ${t}`);return i}function B0(e,t){const i=P0(e,t,(e,t)=>"ruleId"in e&&e.ruleId===t);if(!i)throw new Error(`No parent group found for rule with ID ${t}`);return i}function U0(e,t,i){return H0(e,t,e=>[...e,i])}const j0="group-root";function q0(e,t){const i=(e,o)=>"children"in e?function(e,o){return Object.assign(Object.assign({},e),{level:o,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>i(e,o+1))})}(e,o):function(e){return Object.assign(Object.assign({},e),{ruleId:t.getRuleId(),config:t.getConfig()})}(e);return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:j0,children:e.children.map(e=>i(e,2))})}function G0(e){const t=e.children.map(e=>"children"in e?G0(e):function(e){const{operator:t,field:i,value:o}=e;return{operator:t,field:i,value:o}}(e));return{combinator:e.combinator,children:t}}const W0=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,Y0=e=>`${W0(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,K0=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.input)&&void 0!==o?o:e.field.input},Z0=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type},Q0=e=>{const t={},i=[],o=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){const i=e.optgroup;t[i]||(t[i]=[]),t[i].push(e)}else i.push(e)});const c=[];return Object.keys(t).sort().forEach(e=>{c.push({optgroup:e,xs:o(t[e])})}),[...c,...o(i)]};function X0(e,t,i){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const o=t.customStyles[i];if(o){const t=document.createElement("style");t.textContent=o,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var J0;!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"}(J0||(J0={}));const e6=Ce` :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}`,t6=Ce` .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}`,i6=W` ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.radio,{radioTag:c,radioGroupTag:s}=o?{radioTag:o.input,radioGroupTag:o.group}:{radioTag:"input",radioGroupTag:"div"};return W`<div class="btn-group group-conditions">${Fb(e=>"input"!==c,W`<${s}class="radio-group-container" name="combinator" @change="${(e,t)=>e.handleCombinatorChange(t.event)}" value="${e=>{var t,i;return null===(i=null===(t=e.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type}}">${qe(e=>{var t,i;return null!==(i=null===(t=e.config)||void 0===t?void 0:t.combinators)&&void 0!==i?i:[]},W` ${He(e=>!e.invisible,W`<${c}value="${e=>e.type}" ?checked=${(e,t)=>{var i,o;return(null===(o=null===(i=t.parent.model)||void 0===i?void 0:i.combinator)||void 0===o?void 0:o.type)===e.type}}>${e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.type}}</${c}>`)} `)}</${s}>`,W`<div class="radio-group-container">${qe(e=>e.config.combinators,W` ${He(e=>!e.invisible,W`<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)=>{var i,o;return(null===(o=null===(i=t.parent.model)||void 0===i?void 0:i.combinator)||void 0===o?void 0:o.type)===e.type}}/>${e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.type}}</label>`)} `)}</div>`)}</div>`}} `,o6=W` ${e=>{var t,i,o,c,s,a,n,r;const l=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button",d=`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. ${null===(s=null===(c=null===(o=e.config)||void 0===o?void 0:o.combinators)||void 0===c?void 0:c[0])||void 0===s?void 0:s.type})`,h=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${null===(r=null===(n=null===(a=e.config)||void 0===a?void 0:a.combinators)||void 0===n?void 0:n[0])||void 0===r?void 0:r.type})`;return W`<div class="btn-group float-end group-actions">${He(e=>e.allowAddRule,W`<${l}type="button" class="btn btn-sm btn-success" data-add="rule" @click="${(e,t)=>e.dispatchAddRule(t.event)}" title=${e=>d}>
|
|
99
99
|
Add Rule </${l}>`)} ${He(e=>e.allowAddGroup,W`<${l}type="button" class="btn btn-sm btn-success" data-add="group" @click="${(e,t)=>e.dispatchAddGroup(t.event)}" title="${e=>h}">
|
|
100
100
|
Add Group </${l}>`)} ${He(e=>"number"==typeof e.index,W`<${l}type="button" class="btn btn-sm btn-danger" data-delete="group" @click="${(e,t)=>e.dispatchDeleteGroup(t.event)}">
|
|
101
101
|
Delete Group </${l}>`)}</div>`}} `,c6=W`<div class="rules-group-container"><div class="rules-group-header">${o6} ${i6}</div><div class="rules-group-body"><div class="rules-list">${qe(e=>{var t,i;return null!==(i=null===(t=e.model)||void 0===t?void 0:t.children)&&void 0!==i?i:[]},W` ${Fb(e=>"children"in e,W`<expression-group :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-group>`,W`<expression-rule :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-rule>`)} ${He((e,t)=>!t.isLast,W`<p class="group-combinator-link">${(e,t)=>t.parent.model.combinator.type}</p>`)} `,{recycle:!1,positioning:!0})}</div></div></div>`;let s6=class extends be{connectedCallback(){super.connectedCallback(),X0(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(J0.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(J0.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(J0.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const i=e.target.getAttribute("value");if(!i)throw new Error("No value found in the custom radio group event target");this.updateCombinator(i)}updateCombinator(e){var t,i;const o=this.config.combinators.find(({type:t})=>t===e);if(!o)throw new Error(`Cannot find selected combinator ${e}`);(null===(i=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type)!==o.type&&this.dispatchGroupDataUpdated(o)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(J0.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};Nu([g],s6.prototype,"config",void 0),Nu([g],s6.prototype,"styles",void 0),Nu([g],s6.prototype,"model",void 0),Nu([g],s6.prototype,"index",void 0),Nu([v],s6.prototype,"allowAddRule",null),Nu([v],s6.prototype,"allowAddGroup",null),s6=Nu([ye({name:"expression-group",template:c6,styles:t6,shadowOptions:{delegatesFocus:!0}})],s6);const a6=W`<div class="query-builder">${He(e=>null!==e.model,W`<expression-group :model=${e=>e.model}:config=${e=>e.config}:styles=${e=>e.styles}></expression-group>`)}</div>`,n6=W` ${e=>{var t,i,o,c,s,a;const n=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",r=(null===(c=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===c?void 0:c.option)||"option",l=(null===(a=null===(s=e.styles)||void 0===s?void 0:s.customElements)||void 0===a?void 0:a.optgroup)||"optgroup";return W`<${n}class="form-select" @change=${(e,t)=>e.dispatchFieldsChanged(t.event)}value=${e=>{var t;return null===(t=e.field)||void 0===t?void 0:t.fieldId}}><${r}value="">Select a field</${r}>${qe(e=>e.groupedFieldss,W` ${e=>"xs"in e?W`<${l}label="${e=>e.optgroup}">${qe(e=>e.xs,W`<${r}value="${e=>e.fieldId}" ?selected=${(e,t)=>{var i,o;return e.fieldId===(null===(o=null===(i=t.parentContext.parent)||void 0===i?void 0:i.field)||void 0===o?void 0:o.fieldId)}}>${e=>e.label}</${r}>`)}</${l}>`:W`<${r}value="${e=>e.fieldId}" ?selected=${(e,t)=>{var i,o;return e.fieldId===(null===(o=null===(i=t.parent)||void 0===i?void 0:i.field)||void 0===o?void 0:o.fieldId)}}>${e=>e.label}</${r}>`} `)}</${n}>`}} `;let r6=class extends be{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),X0(this,this.styles,"field")}get groupedFieldss(){return Q0(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();const t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(J0.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};Nu([g],r6.prototype,"fields",void 0),Nu([g],r6.prototype,"field",void 0),Nu([g],r6.prototype,"config",void 0),Nu([g],r6.prototype,"styles",void 0),Nu([v],r6.prototype,"groupedFieldss",null),r6=Nu([ye({name:"expression-rule-field",template:n6})],r6);const l6=W` ${e=>{var t,i,o,c,s,a;const n=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",r=(null===(c=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===c?void 0:c.option)||"option",l=(null===(a=null===(s=e.styles)||void 0===s?void 0:s.customElements)||void 0===a?void 0:a.optgroup)||"optgroup";return W`<${n}class="form-select" @change=${(e,t)=>e.handleOperatorChange(t.event)}value=${e=>{var t;return null===(t=e.operator)||void 0===t?void 0:t.type}}><${r}value="">Select an operator</${r}>${qe(e=>e.groupedOperators,W` ${e=>"xs"in e?W`<${l}label="${e.optgroup}">${qe(e=>e.xs,W`<${r}value="${e=>e.type}" ?selected=${(e,t)=>{var i;return e.type===(null===(i=t.parentContext.parent.operator)||void 0===i?void 0:i.type)}}title=${e=>e.tooltip}>${e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.type}}</${r}>`)}</${l}>`:W`<${r}value="${e=>e.type}" ?selected=${(e,t)=>{var i;return(null===(i=t.parent.operator)||void 0===i?void 0:i.type)===e.type}}title=${e=>e.tooltip}>${e=>{var t;return null!==(t=e.label)&&void 0!==t?t:e.type}}</${r}>`} `)}</${n}>`}} `;let d6=class extends be{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),X0(this,this.styles,"operator")}get allowedOperators(){const e=e=>{var t,i,o;return null===(o=null===(i=null===(t=this.field)||void 0===t?void 0:t.operators)||void 0===i?void 0:i.includes(e.type))||void 0===o||o},t=e=>{var t,i,o,c;return null===(c=null===(i=null===(t=null==e?void 0:e.applyTo)||void 0===t?void 0:t.includes)||void 0===i?void 0:i.call(t,null===(o=this.field)||void 0===o?void 0:o.type))||void 0===c||c};return this.operators.filter(i=>e(i)&&t(i))}get groupedOperators(){return Q0(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();const t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(J0.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};Nu([g],d6.prototype,"operators",void 0),Nu([g],d6.prototype,"operator",void 0),Nu([g],d6.prototype,"field",void 0),Nu([g],d6.prototype,"config",void 0),Nu([g],d6.prototype,"styles",void 0),Nu([v],d6.prototype,"allowedOperators",null),Nu([v],d6.prototype,"groupedOperators",null),d6=Nu([ye({name:"expression-rule-operator",template:l6})],d6);const h6=e=>["short","int","long"].includes(e),u6=e=>["double","bigdecimal"].includes(e),f6=(e,t)=>{var i,o;return null===(o=null===(i=(e=>h6(e)?/^[+-]?[0-9]+$/:u6(e)?/[+-]?([0-9]*[.])?[0-9]+/:null)(e))||void 0===i?void 0:i.test(t))||void 0===o||o?null:"Invalid number format"},p6=Ce` .text-input.error{color: red}div.value-and-validation{display: inline-grid;align-items: center}`,m6=W` ${e=>{var t,i;const o=K0(e),c="datetime-local"===o?"datetimeLocal":o;return W`<${(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i[c])||"input"}type="${o}" class="text-input ${e=>Jt(["error",e.validationError])}" value=${e=>e.value}@blur=${(e,t)=>e.handleInputChange(t.event)}/>`}} `,g6=W` ${e=>{var t,i,o,c;const s=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",a=(null===(c=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===c?void 0:c.option)||"option";return W`<${s}class="form-select" @change=${(e,t)=>e.handleInputChange(t.event)}value=${e=>e.value}>${qe(e=>{var t,i,o,c;const s="enum"===(null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&(null===(c=null===(o=null==e?void 0:e.operator)||void 0===o?void 0:o.valueType)||void 0===c?void 0:c.values)?e.operator.valueType.values:"enum"===e.field.type&&e.field.values?e.field.values:{};return Object.entries(s)},()=>W`<${a}value="${e=>e[0]}" ?selected=${(e,t)=>e[0]===t.parent.value}title="${e=>"object"==typeof e[1]?e[1].tooltip:""}">${e=>"object"==typeof e[1]?e[1].label:e[1]}</${a}>`)}</${s}>`}} `,v6=W` ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.checkbox;return W`<label><${o||"input"} ${o?"":'type="checkbox"'}?checked=${e=>!!e.value}@change=${(e,t)=>e.handleInputChange(t.event)}role="checkbox" />
|
|
@@ -105,4 +105,4 @@ function mz(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o
|
|
|
105
105
|
+
|
|
106
106
|
</${o}>`)}</div><div class="rule-header"><div class="btn-group rule-actions"><${o}type="button" class="btn btn-sm btn-danger" data-delete="rule" @click="${(e,t)=>e.dispatchDeleteRule(t.event)}">
|
|
107
107
|
Delete Rule </${o}></div></div></div>`}} `;let E6=class extends be{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),X0(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==Z0(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(k6)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,i;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(i=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==i?i:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,C6(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(J0.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const i={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,i)=>i!==t)}};this.dispatchEvent(new CustomEvent(J0.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(J0.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:i}=e.detail,o=null!==(t=this.config.fields.find(e=>e.fieldId===i))&&void 0!==t?t:null,c={ruleId:this.model.ruleId,newData:{field:o,value:null,operator:null}};this.dispatchEvent(new CustomEvent(J0.UpdateRule,{detail:c,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,o={ruleId:this.model.ruleId,newData:w6(this.model,t,i)};this.dispatchEvent(new CustomEvent(J0.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:i}=e.detail;if(!i)return;const o=null!==(t=this.config.operators.find(e=>e.type===i))&&void 0!==t?t:null;if(!o)throw new Error(`Unable to find operator of type ${i}`);this.dispatchEvent(new CustomEvent(J0.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:M6(o,this.model)},bubbles:!0,composed:!0}))}};Nu([g],E6.prototype,"config",void 0),Nu([g],E6.prototype,"styles",void 0),Nu([g],E6.prototype,"model",void 0),Nu([g],E6.prototype,"index",void 0),Nu([re({mode:"boolean"})],E6.prototype,"error",void 0),Nu([v],E6.prototype,"operandIterator",null),E6=Nu([ye({name:"expression-rule",template:$6,styles:S6,shadowOptions:{delegatesFocus:!0}})],E6);let N6=class extends be{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){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=q0(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const i=G0(t);this.dispatchChangeEvent(i)}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(J0.AddGroup,this.handleAddGroup),this.addEventListener(J0.DelGroup,this.handleDeleteGroup),this.addEventListener(J0.AddRule,this.handleAddRule),this.addEventListener(J0.DelRule,this.handleDeleteRule),this.addEventListener(J0.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(J0.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(J0.AddGroup,this.handleAddGroup),this.removeEventListener(J0.DelGroup,this.handleDeleteGroup),this.removeEventListener(J0.AddRule,this.handleAddRule),this.removeEventListener(J0.DelRule,this.handleDeleteRule),this.removeEventListener(J0.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(J0.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,i,o;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(i=e.operators)||void 0===i?void 0:i.length)&&(null===(o=e.fields)||void 0===o?void 0:o.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:j0,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:i}=e.detail,o={groupId:this.getGroupId(),level:i.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=U0(this.model,t,o)}_handleAddRule(e){const{parentGroupId:t}=e.detail,i={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=U0(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,o;this.model=H0(i=this.model,V0(i,o=t).groupId,e=>e.filter(e=>!("groupId"in e)||e.groupId!==o))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var i,o;this.model=H0(i=this.model,B0(i,o=t).groupId,e=>e.filter(e=>!("ruleId"in e)||e.ruleId!==o))}_handleUpdateGroupData(e){const{groupId:t,newData:i}=e.detail;this.model=function(e,t,i){return t===j0?Object.assign(Object.assign({},e),i):H0(e,V0(e,t).groupId,e=>e.map(e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}_handleUpdateRuleData(e){const{ruleId:t,newData:i}=e.detail;this.model=function(e,t,i){return H0(e,B0(e,t).groupId,e=>e.map(e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}};Nu([g],N6.prototype,"config",void 0),Nu([g],N6.prototype,"styles",void 0),Nu([g],N6.prototype,"model",void 0),N6=Nu([ye({name:"expression-builder",template:a6,styles:e6})],N6);let A6=class extends N6{};A6=Nu([ye({name:"foundation-expression-builder",styles:e6,template:a6})],A6);const T6=["int","short","long"],O6=["double","bigdecimal"],R6=[...T6,...O6],I6=["date","date-time"],D6=["string","enum"],F6=["boolean"],_6=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type};function H6(e){switch(_6(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 P6(e,t,i){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:i,VALUE:e.value}}:null}function V6(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function B6(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}function U6(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=_6(e);if(D6.includes(i))return t;if(R6.includes(i))return t.toString();if(F6.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(I6.includes(i))return new Date(t).getTime().toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function j6(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?j6(e,t):t(e)).filter(Boolean)}}function q6(e,t){const i=e.operator.nbInputs;if("many"===i||2===i)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===i?{}:{value:(t=>{const i=_6(e);if(D6.includes(i))return t;if(T6.includes(i))return parseInt(t);if(O6.includes(i))return parseFloat(t);if(F6.includes(i))return t;if(I6.includes(i)){const e=new Date(parseInt(t));return"date"===i?W0(e):Y0(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const G6={template:a6,styles:e6};var W6;!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"})}(W6||(W6={}));const Y6=[{type:W6.logicalOperations.AND,maxRules:"many"},{type:W6.logicalOperations.OR,maxRules:"many"}],K6={EQUALS:W6.operations.EQUALS,NOT_EQUALS:W6.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:W6.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:W6.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:W6.operations.LESS_THAN,LESS_THAN_OR_EQUAL:W6.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:W6.operations.IS_CURRENT,IS_PREVIOUS:W6.operations.IS_PREVIOUS},Z6=e=>({type:"enum",input:"select",values:e}),Q6=Z6({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."}}),X6=Z6({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."}}),J6=[{type:K6.EQUALS,label:"Equals",nbInputs:1,applyTo:[...D6,...F6,...R6,...I6],tooltip:"Check the equality of the field compared to a set value"},{type:K6.NOT_EQUALS,label:"Not equals",nbInputs:1,applyTo:[...D6,...F6,...R6,...I6],tooltip:"Check that the field is different from a set value"},{type:K6.IS_NULL,label:"Is null",nbInputs:0,applyTo:["enum",...F6,...R6,...I6],tooltip:"Check if the field value is null"},{type:K6.NOT_NULL,label:"Not null",nbInputs:0,applyTo:["enum",...F6,...R6,...I6],tooltip:"Check if the field value is not null"},{type:K6.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:K6.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:K6.CONTAINS,label:"Contains",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:K6.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:K6.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:K6.GREATER_THAN,label:"Greater than",nbInputs:1,applyTo:[...R6],tooltip:"Check if the field value is greater than a specified number"},{type:K6.GREATER_THAN_OR_EQUAL,label:"Greater than or equal to",nbInputs:1,applyTo:[...R6],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:K6.LESS_THAN,label:"Less than",nbInputs:1,applyTo:[...R6],tooltip:"Check if the field value is less than a specified number"},{type:K6.LESS_THAN_OR_EQUAL,label:"Less than or equal to",nbInputs:1,applyTo:[...R6],tooltip:"Check if the field value is less than or equal to a specified number"},{type:K6.IS_BEFORE,label:"Is before",nbInputs:1,applyTo:[...I6],tooltip:"Check if the field is before a specified date/time"},{type:K6.IS_AFTER,label:"Is after",nbInputs:1,applyTo:[...I6],tooltip:"Check if the field is after a specified date/time"},{type:K6.ON_OR_BEFORE,label:"On or before",nbInputs:1,applyTo:[...I6],tooltip:"Check if the field is on or before a specified date/time"},{type:K6.ON_OR_AFTER,label:"On or after",nbInputs:1,applyTo:[...I6],tooltip:"Check if the field is on or after a specified date/time"},{type:K6.IS_CURRENT,label:"Is current",nbInputs:1,applyTo:[...I6],tooltip:"Check whether the current date/time matches the current hour/day/work day/week/month/year.",valueType:X6,optgroup:"Relative Period"},{type:K6.IS_PREVIOUS,label:"Is previous",nbInputs:1,applyTo:[...I6],tooltip:"Check whether the current date/time matches the previous hour/day/work day/week/month/year",valueType:Q6,optgroup:"Relative Period"}];function e8(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=U6(e),c=H6(o),s=function(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}}(o.operator.type);switch(s){case K6.EQUALS:case K6.NOT_EQUALS:case K6.GREATER_THAN:case K6.GREATER_THAN_OR_EQUAL:case K6.LESS_THAN:case K6.LESS_THAN_OR_EQUAL:return P6(o,s,c);case K6.IS_NULL:return V6(o,W6.operations.EQUALS,{TYPE:"NULL"});case K6.NOT_NULL:return V6(o,W6.operations.NOT_EQUALS,{TYPE:"NULL"});case K6.IS_NULL_OR_BLANK:case K6.NOT_NULL_OR_BLANK:case K6.CONTAINS:case K6.CONTAINS_WORDS_STARTING_WITH:case K6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case K6.IS_CURRENT:case K6.IS_PREVIOUS:return function(e,t){switch(t){case K6.IS_NULL_OR_BLANK:return B6(e,W6.methodCall.IS_NULL_OR_BLANK,[]);case K6.NOT_NULL_OR_BLANK:return B6(e,W6.methodCall.NOT_NULL_OR_BLANK,[]);case K6.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return B6(e,W6.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case K6.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return B6(e,W6.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case K6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return B6(e,W6.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case K6.IS_CURRENT:case K6.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return B6(e,W6.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===K6.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}(o,s);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function t8(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return q6(function(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?K6[K6.IS_NULL]:K6[K6.NOT_NULL];return J6.find(t=>t.type===e)}const i=function(e,t){if("date"!==t.field.type&&"date-time"!==t.field.type)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}}(t.OPERATION,e);return J6.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function i8(e,t){return{combinator:Y6.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return i8(e,t);if("BINARY_EXPRESSION"===t.TYPE)return t8(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[K6[K6.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[K6[K6.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[K6[K6.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[K6[K6.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&3===t.PARAMETERS.length:return[K6[K6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===W6.methodCall.DATE_TIME_IS_IN_RANGE&&3===t.PARAMETERS.length&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[K6["CURRENT"===t.PARAMETERS[2].VALUE?K6.IS_CURRENT:K6.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:J6.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let o8=class extends N6{ruleConfigChanged(e,t){this.config=Object.assign({combinators:Y6,operators:J6,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:i8(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new 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){const t=j6(e,e8);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};Nu([g],o8.prototype,"ruleConfig",void 0),o8=Nu([ye({name:"foundation-rule-expression-builder",styles:e6,template:a6})],o8);const c8={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},s8=[{type:c8.PLUS,label:"Add (+)",applyTo:[...R6],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:c8.MINUS,label:"Subtract (-)",applyTo:[...R6],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:c8.MULTIPLY,label:"Multiply (*)",applyTo:[...R6],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:c8.DIVIDE,label:"Divide (/)",applyTo:[...R6],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:c8.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:c8.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 a8(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=U6(e),c=H6(o),s=o.operator.type;switch(s){case c8.TRIM:case c8.CONVERT_TO_DATE:case c8.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case c8.TRIM:return B6(e,W6.methodCall.TRIM,[]);case c8.CONVERT_TO_DATE:return B6(e,W6.methodCall.LONG_TO_DATE,[]);case c8.CONVERT_TO_DATE_TIME:return B6(e,W6.methodCall.LONG_TO_DATE_TIME,[])}}(o,s);case c8.PLUS:case c8.MINUS:case c8.DIVIDE:case c8.MULTIPLY:return P6(o,s,c);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function n8(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return q6(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return s8.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function r8(e,t){return{combinator:R0,children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return r8(e,t);if("BINARY_EXPRESSION"===t.TYPE)return n8(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[c8[c8.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[c8[c8.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[c8[c8.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:s8.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let l8=class extends N6{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},o=r8(t.fields,i);this.config={combinators:[R0],operators:s8,fields:t.fields,model:o,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new 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 new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:a8(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};Nu([g],l8.prototype,"valueConfig",void 0),l8=Nu([ye({name:"foundation-value-expression-builder",styles:e6,template:a6})],l8);const d8=W`<template ${Ie("notificationListener")}><slot></slot></template>`;class h8 extends qt{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return Tu(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.addEventListener(EC.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),$C(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>Tu(this,void 0,void 0,function*(){e&&(yield this.handleReconnection())}))})}handleReconnection(){return Tu(this,void 0,void 0,function*(){var e;this.resourceName&&(null===(e=this.dataSub)||void 0===e||e.unsubscribe(),this.dataSub=void 0,yield this.initializeDatasource(),this.setupDataSubscription())})}initializeDatasource(){return Tu(this,void 0,void 0,function*(){var e;(null===(e=this.datasource)||void 0===e?void 0:e.initialized)&&this.datasource.destroy();if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))throw new Error(`Failed to initialize datasource for ${this.resourceName}`)})}setupDataSubscription(){this.datasource.stream?this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate(Dz(e))}):xx.warn(`No stream available for ${this.resourceName}`)}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.connectionSub)||void 0===t||t.unsubscribe(),delete this.connectionSub,null===(i=this.datasource)||void 0===i||i.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e)})}showNotificationToast(e){const{HEADER:t,MESSAGE:i,NOTIFY_SEVERITY:o}=e,c=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let a=[];this.toastButtons&&this.toastButtons.length>0&&(a=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));const n={title:t,body:i,createdAt:c,toast:{details:e,type:null==o?void 0:o.toLowerCase(),buttons:a,autoClose:void 0!==s?!!s:!!this.closeTimeout,closeTimeout:null!=s?s:this.closeTimeout,position:this.toastPosition}};LC(n,this.tagName)}}Nu([g],h8.prototype,"notificationListener",void 0),Nu([fz],h8.prototype,"connect",void 0),Nu([re({attribute:"resource-name"})],h8.prototype,"resourceName",void 0),Nu([re({attribute:"close-timeout",converter:ae})],h8.prototype,"closeTimeout",void 0),Nu([g],h8.prototype,"toastButtons",void 0),Nu([re({attribute:"toast-position"})],h8.prototype,"toastPosition",void 0),Nu([Wz],h8.prototype,"datasource",void 0),h8.compose({baseName:"notification-listener",template:d8,shadowOptions:{mode:"open",delegatesFocus:!0}});const u8=cf("foundation-router"),f8="$router",p8=Object.freeze({getOrCreateFor:e=>{const t=e[f8];return void 0!==t?t:e[f8]=new m8(e)},find:e=>by.find(e),from:e=>by.from(e)});class m8 extends yy{}const g8=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function v8(e){return g8.test(e)}function b8(e){return e.config instanceof Py?e:p8.find(e)}const y8=Object.freeze({path:Object.freeze({get current(){return Bb.path.current},generateRoute:(e,t,...i)=>Tu(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=b8(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t=!0)=>{e&&v8(e)?location.href=e:(history.pushState({},document.title,e),t&&y8.path.trigger(e))},replace:(e,t=!0)=>{e&&v8(e)?location.href=e:(history.replaceState({},document.title,e),t&&y8.path.trigger(e))},trigger:e=>{Bb.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...i)=>Tu(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=b8(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t,...i)=>Tu(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const c=yield y8.name.generateRoute(e,t,i);null!==c&&y8.path.push(c,o)}),replace:(e,t,...i)=>Tu(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const c=yield y8.name.generateRoute(e,t,i);null!==c&&y8.path.replace(c,o)}),trigger:(e,t,...i)=>Tu(void 0,[e,t,...i],void 0,function*(e,t,i={}){const o=yield y8.name.generateRoute(e,t,i);null!==o&&y8.path.trigger(o)})})}),z8=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId;class x8 extends py{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,o=t.basename;i&&(""!==o&&"/"!==o)&&(u8.debug("Route paths remap required due to detected sub-path deployment"),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(o))return u8.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${o}${t}${e.path}`;return u8.debug(`'${e.path}' path modified to '${i}'`),Object.assign(Object.assign({},e),{path:i})})),this.definitions=[...e,...this.definitions],super.map(...e)}}Nu([g],x8.prototype,"definitions",void 0);class C8 extends Py{constructor(){super(),this.logger=u8,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new x8(this),this.basename=Ff,this.routes=new x8(this)}getNavItems(e=z8){return function(e,t=z8,i=10){const o=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,c)=>{e.navItems.filter(t).map((t,o)=>{var s,a,n,r;const l=null!==(s=t.placementIndex)&&void 0!==s?s:c*i+o;return Object.assign(Object.assign({},t),{navId:null!==(a=t.navId)&&void 0!==a?a:"header",placementIndex:l,routePath:null!==(n=t.routePath)&&void 0!==n?n:e.path,routeName:null!==(r=t.routeName)&&void 0!==r?r:e.name})}).forEach(e=>o.push(e))}),o.sort((e,t)=>e.placementIndex-t.placementIndex)}(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>Tu(this,void 0,void 0,function*(){this.analytics.trackEvent(nf.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>Tu(this,void 0,void 0,function*(){var t;const{settings:i}=e.route;!1===(null===(t=null==i?void 0:i.isPermitted)||void 0===t?void 0:t.call(i))&&e.cancel(()=>{var t,o;if(this.user.isAuthenticated){const c=null!==(o=null===(t=i.notPermittedPath)||void 0===t?void 0:t.call(i))&&void 0!==o?o:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${c}.`),y8.name.replace(e.router,c)}else this.user.trackPath(),y8.name.replace(e.router,this.loginPath)})})})}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(),y8.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){const i=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return Tu(this,void 0,void 0,function*(){const o=yield i.generateRouteFromName.call(this,e,t);return o?this.generateNavigationPath(o):null})}navigateTo(e){return Tu(this,void 0,void 0,function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield y8.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&y8.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),o=Kb.build(t);let c=i&&!e.startsWith(i)?function(e,t="/",i=!1){const o=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!i&&o.endsWith(t)?o.slice(0,-1):o}([i,e]):e;return c=o?`${c}?${o}`:c,c}getNavigationPathBasename(){var e,t;const i=this.parent,o=null===(t=null===(e=null==i?void 0:i.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return o?o.replace(`/*${dy}`,""):this.basename?this.basename:""}construct(e){return this.container.get(e)}}Nu([pt],C8.prototype,"container",void 0),Nu([lf],C8.prototype,"analytics",void 0),Nu([Jv],C8.prototype,"user",void 0),Nu([xb],C8.prototype,"_session",void 0);const L8="navigate-to",M8="generate-navigation-path";let w8=class extends(p8.from(be)){constructor(){super(...arguments),this.logger=u8,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:i,callback:o}=e.detail;if(!o)return;o(this.config.generateNavigationPath(t,i))}}get router(){return this[f8]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),u.queueUpdate(()=>Tu(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(L8,this.onNavigateTo),this.addEventListener(M8,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(L8,this.onNavigateTo),this.removeEventListener(M8,this.onGenerateNavigationPath)}};w8=Nu([ye({name:"foundation-router"})],w8);const k8=e=>W`<${e}-card class=${e=>Jt("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=>Jt("stepper-tab-menu",["stepper-tab-menu-hidden",e.hideTabs])}part="stepper-tab-menu"><slot name="tab" ${Ke("tabs")}></slot></div>${He(e=>e.orientation===ua,W`<div class="stepper-tab-progress" part="stepper-tab-progress"><${e}-progress-ring class="progress-ring" part="progress-ring" value=${e=>e.progressValue}></${e}-progress-ring><label>You have completed ${e=>e.progressValue}% of the fields required to create a project</label></div>`)}</${e}-card>${He(e=>!e.indicatorOnly,W`<${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" ${Ke("tabpanels")}></slot></div>${He(e=>!e.hideAllButtons,W`<div class="action-buttons-container" part="action-buttons-container"><slot name="action-buttons"><${e}-button @click=${e=>e.previousStep()}?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>${He(e=>e.isLastStep&&!e.hideSubmitButton,W`<${e}-button @click=${e=>e._submit()}?disabled=${e=>e.islastStepValid}data-test-id="submit-button">
|
|
108
|
-
Submit </${e}-button>`)} ${He(e=>!e.isLastStep,W`<${e}-button @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,S8=W` ${e=>k8(wx(e))} `,$8=Ce` :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}`;class E8 extends qt{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=ua,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("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,c=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",c),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),s&&e.setAttribute("aria-controls",s),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(o)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=c)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const 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)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("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 void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return xx.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(xx.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 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${Mi()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${Mi()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}Nu([re({attribute:"hide-submit-button",mode:"boolean"})],E8.prototype,"hideSubmitButton",void 0),Nu([re({attribute:"hide-step-number",mode:"boolean"})],E8.prototype,"hideStepNumber",void 0),Nu([re({attribute:"allow-backward-jumps",mode:"boolean"})],E8.prototype,"allowBackwardJumps",void 0),Nu([re({attribute:"allow-forward-jumps",mode:"boolean"})],E8.prototype,"allowForwardJumps",void 0),Nu([re({attribute:"hide-all-buttons",mode:"boolean"})],E8.prototype,"hideAllButtons",void 0),Nu([re({attribute:"hide-tabs",mode:"boolean"})],E8.prototype,"hideTabs",void 0),Nu([re({attribute:"indicator-only",mode:"boolean"})],E8.prototype,"indicatorOnly",void 0),Nu([re],E8.prototype,"orientation",void 0),Nu([re],E8.prototype,"activeid",void 0),Nu([g],E8.prototype,"tabs",void 0),Nu([g],E8.prototype,"tabpanels",void 0),Nu([g],E8.prototype,"validation",void 0),Nu([g],E8.prototype,"progressValue",void 0),Nu([g],E8.prototype,"activeTabIndex",void 0),Nu([v],E8.prototype,"disabledPreviousStep",null),Nu([v],E8.prototype,"isLastStep",null),Nu([v],E8.prototype,"islastStepValid",null);const N8=void 0,A8={};E8.compose(Object.assign({baseName:"stepper",template:S8,styles:$8,shadowOptions:N8},A8));const T8=class extends vu{}.compose(Object.assign({baseName:"accordion",template:(e,t)=>Xa(),styles:(e,t)=>Ce` ${gu()} :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:bu},yu));const O8=class extends Cu{}.compose(Object.assign({baseName:"accordion-item",template:(e,t)=>zu(0,t),styles:(e,t)=>Ce` ${xu()} :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:Lu},Mu));const R8=class extends Vx{}.compose({baseName:"actions-menu",styles:(e,t)=>Ce` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${wu()} 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}.actions-vertical .actions-menu{padding: 0}.actions-vertical .menu-item{margin: 0;padding: calc(var(--design-unit) * 4px);border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}.actions-vertical .menu-item:last-child{border-bottom: none}.actions-vertical .menu-item:focus{border: calc(var(--stroke-width) * 1px) solid var(--accent-foreground-focus)}`,template:Px}),I8=Ce` ${Yx}`;const D8=class extends AC{}.compose(Object.assign({baseName:"ai-criteria-search",template:(e,t)=>Kx,styles:I8,shadowOptions:TC},OC));const F8=class extends DC{}.compose({baseName:"ai-indicator",template:IC,styles:(e,t)=>Ce` ${RC()} :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 _8(e,t){return new Ya("appearance",e,t)}const H8=["baseClass","baseName","shadowOptions","styles","template"],P8=e=>{const{definition:t}=e(),{shadowOptions:i,styles:o,template:c}=t,s=((e,t=H8)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}))(t);return{shadowOptions:i,styles:o,template:c,defaultConfig:s}},V8=Ce` :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%}`,B8=Ce` :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%}`,U8=Ce` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: 0;color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: var(--neutral-fill-hover)}:host([appearance='neutral']:active){background: var(--neutral-fill-active)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%}`,j8=Ce` :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%}`,q8=Ce` :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%}`,G8=Ce` :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%}`,W8=Ce` :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%}`,Y8=Ce` :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%}`,K8=Ce` :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%}`,Z8=Ce` :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%}`,Q8=Ce` :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%}`,X8=(e,t)=>Ce` ${vL()} ${Ce` :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))}`} `.withBehaviors(_8("primary",V8),_8("secondary",B8),_8("tertiary",W8),_8("neutral",U8),_8("danger",j8),_8("success",q8),_8("warning",G8),_8("primary-outline",Y8),_8("secondary-outline",K8),_8("neutral-outline",Z8),_8("link",Q8));const J8=class extends HC{}.compose(Object.assign({baseName:"anchor",template:(e,t)=>FC(0,t),styles:(e,t)=>Ce` ${_C()} ${X8()} `.withBehaviors(...X8().behaviors),shadowOptions:PC},VC));const e5=class extends jC{}.compose(Object.assign({baseName:"anchored-region",template:(e,t)=>BC(),styles:(e,t)=>Ce` ${UC()}`,shadowOptions:qC},GC));const t5=class extends ZC{}.compose(Object.assign({baseName:"avatar",template:(e,t)=>WC(0,t),styles:(e,t)=>Ce` ${KC(e)}`,shadowOptions:QC},XC));const i5=class extends tL{}.compose(Object.assign({baseName:"badge",template:(e,t)=>JC(),styles:(e,t)=>Ce` ${eL()} :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(${hr} * 1px) calc(${hr} * 2px);border: none}`,shadowOptions:iL},oL)),o5=Ce` ${cL} :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)}`,c5=aL;const s5=class extends nL{}.compose({baseName:"banner",shadowOptions:c5,styles:o5,template:sL});const a5=class extends dL{}.compose(Object.assign({baseName:"breadcrumb",template:(e,t)=>rL(),styles:(e,t)=>Ce` ${lL()}`,shadowOptions:void 0},{}));const n5=class extends fL{}.compose(Object.assign({baseName:"breadcrumb-item",template:(e,t)=>hL(0,t),styles:(e,t)=>Ce` ${uL()} .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:pL},mL));const r5=class extends bL{}.compose(Object.assign({baseName:"button",template:(e,t)=>gL(0,t),styles:X8,shadowOptions:yL},zL));const l5=class extends LL{}.compose(Object.assign({baseName:"calendar",template:(e,t)=>CL(e,t),styles:()=>Ce` ${xL()}`,shadowOptions:ML},wL));const d5=class extends $L{}.compose(Object.assign({baseName:"card",template:(e,t)=>kL(),styles:(e,t)=>Ce` ${SL()} :host{background: var(--neutral-layer-card-container);color: ${wd};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));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:EL},NL)),h5=Ce` ${qL} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,u5=W` ${GL("rapid")} `;const f5=KL,p5=YL,m5=class extends ZL{}.compose(Object.assign({baseName:"categorized-multiselect",template:u5,styles:h5,shadowOptions:p5},f5));const g5=class extends JL{}.compose(Object.assign({baseName:"checkbox",template:(e,t)=>QL(0,t),styles:(e,t)=>Ce` ${XL()} :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.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)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:eM},tM));const v5=class extends aM{}.compose(Object.assign({baseName:"combobox",template:(e,t)=>oM(0,t),styles:(e,t)=>Ce` ${iM(e)} :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(${hr} * 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:nM},rM));const b5=class extends hM{}.compose({baseName:"connection-indicator",template:dM,styles:(e,t)=>Ce` ${lM()} :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)}`});P8(uM);P8(fM);P8(pM);const y5=W` ${vM("rapid")} `;const z5=class extends YM{}.compose(Object.assign({baseName:"date-picker",template:y5,styles:()=>Ce` ${mM} :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)}`,shadowOptions:void 0},{}));var x5;!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"}(x5||(x5={}));const{create:C5}=vc,L5=Fn(x5.error),M5=Vn.create(L5.r,L5.g,L5.b),w5=C5("error-color").withDefault(M5),k5=Fn(x5.success),S5=Vn.create(k5.r,k5.g,k5.b),$5=C5("success-color").withDefault(S5),E5=Fn(x5.warning),N5=Vn.create(E5.r,E5.g,E5.b),A5=C5("warning-color").withDefault(N5),T5=Fn(x5.buy),O5=Vn.create(T5.r,T5.g,T5.b),R5=C5("buy-color").withDefault(O5),I5=Fn(x5.sell),D5=Vn.create(I5.r,I5.g,I5.b),F5=C5("sell-color").withDefault(D5),_5=Fn(x5.info),H5=Vn.create(_5.r,_5.g,_5.b),P5=C5("info-color").withDefault(H5),V5=Fn(x5.error),B5=Vn.create(V5.r,V5.g,V5.b),U5=C5("serious-notify-color").withDefault(B5),{create:j5}=vc,q5=e=>vc.create({name:e,cssCustomPropertyName:null}),G5=Vn.create(1,1,1),W5=Vn.create(0,0,0);function Y5(e,t){const i=e,o=q5(`${i}-palette`).withDefault(e=>Wn.from(t.getValueFor(e))),c=q5(`${i}-fill-rest-delta`).withDefault(0),s=q5(`${i}-fill-hover-delta`).withDefault(4),a=q5(`${i}-fill-active-delta`).withDefault(-5),n=q5(`${i}-fill-focus-delta`).withDefault(0),r=q5(`${i}-foreground-rest-delta`).withDefault(0),l=q5(`${i}-foreground-hover-delta`).withDefault(6),d=q5(`${i}-foreground-active-delta`).withDefault(-4),h=q5(`${i}-foreground-focus-delta`).withDefault(0),u=q5(`${i}-fill-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,o,c,s,a,n,r){const l=e.source,d=t.closestIndexOf(i)>=Math.max(a,n,r)?-1:1,h=e.closestIndexOf(l),u=h+-1*d*o,f=u+d*c,p=u+d*s;return{rest:e.get(u),hover:e.get(h),active:e.get(f),focus:e.get(p)}}(o.getValueFor(e),hl.getValueFor(e),null!=t?t:kl.getValueFor(e),s.getValueFor(e),a.getValueFor(e),n.getValueFor(e),Br.getValueFor(e),Ur.getValueFor(e),jr.getValueFor(e))}),f=j5(`${i}-fill-rest`).withDefault(e=>u.getValueFor(e).evaluate(e).rest),p=j5(`${i}-fill-hover`).withDefault(e=>u.getValueFor(e).evaluate(e).hover),m=j5(`${i}-fill-active`).withDefault(e=>u.getValueFor(e).evaluate(e).active),g=j5(`${i}-fill-focus`).withDefault(e=>u.getValueFor(e).evaluate(e).focus),v=e=>(t,i)=>function(e,t){return e.contrast(G5)>=t?G5:W5}(null!=i?i:f.getValueFor(t),e),b=q5(`foreground-on-${i}-recipe`).withDefault({evaluate:(e,t)=>v(4.5)(e,t)}),y=j5(`foreground-on-${i}-rest`).withDefault(e=>b.getValueFor(e).evaluate(e,f.getValueFor(e))),z=j5(`foreground-on-${i}-hover`).withDefault(e=>b.getValueFor(e).evaluate(e,p.getValueFor(e))),x=j5(`foreground-on-${i}-active`).withDefault(e=>b.getValueFor(e).evaluate(e,m.getValueFor(e))),C=j5(`foreground-on-${i}-focus`).withDefault(e=>b.getValueFor(e).evaluate(e,g.getValueFor(e))),L=q5(`foreground-on-${i}-large-recipe`).withDefault({evaluate:(e,t)=>v(7)(e,t)}),M=j5(`foreground-on-${i}-rest-large`).withDefault(e=>L.getValueFor(e).evaluate(e,f.getValueFor(e))),w=j5(`foreground-on-${i}-hover-large`).withDefault(e=>L.getValueFor(e).evaluate(e,p.getValueFor(e))),k=j5(`foreground-on-${i}-active-large`).withDefault(e=>L.getValueFor(e).evaluate(e,m.getValueFor(e))),S=j5(`foreground-on-${i}-focus-large`).withDefault(e=>L.getValueFor(e).evaluate(e,g.getValueFor(e))),$=q5(`${i}-foreground-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,o,c,s,a){const n=e.source,r=e.closestIndexOf(n),l=qn(t)?-1:1,d=r+(1===l?Math.min(o,c):Math.max(l*o,l*c)),h=e.colorContrast(t,i,d,l),u=e.closestIndexOf(h),f=u+l*Math.abs(o-c),p=1===l?o<c:l*o>l*c,m=p?u:f,g=p?f:u;return{rest:e.get(m),hover:e.get(g),active:e.get(m+l*s),focus:e.get(m+l*a)}}(o.getValueFor(e),null!=t?t:kl.getValueFor(e),4.5,r.getValueFor(e),l.getValueFor(e),d.getValueFor(e),h.getValueFor(e))}),E=j5(`${i}-foreground-rest`).withDefault(e=>$.getValueFor(e).evaluate(e).rest),N=j5(`${i}-foreground-hover`).withDefault(e=>$.getValueFor(e).evaluate(e).hover),A=j5(`${i}-foreground-active`).withDefault(e=>$.getValueFor(e).evaluate(e).active),T=j5(`${i}-foreground-focus`).withDefault(e=>$.getValueFor(e).evaluate(e).focus);return{palette:o,fillRestDelta:c,fillHoverDelta:s,fillActiveDelta:a,fillFocusDelta:n,foregroundRestDelta:r,foregroundHoverDelta:l,foregroundActiveDelta:d,foregroundFocusDelta:h,fillRecipe:u,fillRest:f,fillHover:p,fillActive:m,fillFocus:g,foregroundOnRecipe:b,foregroundOnRest:y,foregroundOnHover:z,foregroundOnActive:x,foregroundOnFocus:C,foregroundOnLargeRecipe:L,foregroundOnRestLarge:M,foregroundOnHoverLarge:w,foregroundOnActiveLarge:k,foregroundOnFocusLarge:S,foregroundRecipe:$,foregroundRest:E,foregroundHover:N,foregroundActive:A,foregroundFocus:T}}const K5=Fn(x5.green),Z5=Vn.create(K5.r,K5.g,K5.b),Q5=vc.create("secondary-color").withDefault(Z5),{palette:X5,fillRestDelta:J5,fillHoverDelta:e7,fillActiveDelta:t7,fillFocusDelta:i7,foregroundRestDelta:o7,foregroundHoverDelta:c7,foregroundActiveDelta:s7,foregroundFocusDelta:a7,fillRecipe:n7,fillRest:r7,fillHover:l7,fillActive:d7,fillFocus:h7,foregroundOnRecipe:u7,foregroundOnRest:f7,foregroundOnHover:p7,foregroundOnActive:m7,foregroundOnFocus:g7,foregroundOnLargeRecipe:v7,foregroundOnRestLarge:b7,foregroundOnHoverLarge:y7,foregroundOnActiveLarge:z7,foregroundOnFocusLarge:x7,foregroundRecipe:C7,foregroundRest:L7,foregroundHover:M7,foregroundActive:w7,foregroundFocus:k7}=Y5("secondary",Q5),S7=Fn(x5.tertiary),$7=Vn.create(S7.r,S7.g,S7.b),E7=vc.create("tertiary-color").withDefault($7),{palette:N7,fillRestDelta:A7,fillHoverDelta:T7,fillActiveDelta:O7,fillFocusDelta:R7,foregroundRestDelta:I7,foregroundHoverDelta:D7,foregroundActiveDelta:F7,foregroundFocusDelta:_7,fillRecipe:H7,fillRest:P7,fillHover:V7,fillActive:B7,fillFocus:U7,foregroundOnRecipe:j7,foregroundOnRest:q7,foregroundOnHover:G7,foregroundOnActive:W7,foregroundOnFocus:Y7,foregroundOnLargeRecipe:K7,foregroundOnRestLarge:Z7,foregroundOnHoverLarge:Q7,foregroundOnActiveLarge:X7,foregroundOnFocusLarge:J7,foregroundRecipe:e9,foregroundRest:t9,foregroundHover:i9,foregroundActive:o9,foregroundFocus:c9}=Y5("tertiary",E7),{palette:s9,fillRestDelta:a9,fillHoverDelta:n9,fillActiveDelta:r9,fillFocusDelta:l9,foregroundRestDelta:d9,foregroundHoverDelta:h9,foregroundActiveDelta:u9,foregroundFocusDelta:f9,fillRecipe:p9,fillRest:m9,fillHover:g9,fillActive:v9,fillFocus:b9,foregroundOnRecipe:y9,foregroundOnRest:z9,foregroundOnHover:x9,foregroundOnActive:C9,foregroundOnFocus:L9,foregroundOnLargeRecipe:M9,foregroundOnRestLarge:w9,foregroundOnHoverLarge:k9,foregroundOnActiveLarge:S9,foregroundOnFocusLarge:$9,foregroundRecipe:E9,foregroundRest:N9,foregroundHover:A9,foregroundActive:T9,foregroundFocus:O9}=Y5("error",w5),{palette:R9,fillRestDelta:I9,fillHoverDelta:D9,fillActiveDelta:F9,fillFocusDelta:_9,foregroundRestDelta:H9,foregroundHoverDelta:P9,foregroundActiveDelta:V9,foregroundFocusDelta:B9,fillRecipe:U9,fillRest:j9,fillHover:q9,fillActive:G9,fillFocus:W9,foregroundOnRecipe:Y9,foregroundOnRest:K9,foregroundOnHover:Z9,foregroundOnActive:Q9,foregroundOnFocus:X9,foregroundOnLargeRecipe:J9,foregroundOnRestLarge:eee,foregroundOnHoverLarge:tee,foregroundOnActiveLarge:iee,foregroundOnFocusLarge:oee,foregroundRecipe:cee,foregroundRest:see,foregroundHover:aee,foregroundActive:nee,foregroundFocus:ree}=Y5("success",$5),{palette:lee,fillRestDelta:dee,fillHoverDelta:hee,fillActiveDelta:uee,fillFocusDelta:fee,foregroundRestDelta:pee,foregroundHoverDelta:mee,foregroundActiveDelta:gee,foregroundFocusDelta:vee,fillRecipe:bee,fillRest:yee,fillHover:zee,fillActive:xee,fillFocus:Cee,foregroundOnRecipe:Lee,foregroundOnRest:Mee,foregroundOnHover:wee,foregroundOnActive:kee,foregroundOnFocus:See,foregroundOnLargeRecipe:$ee,foregroundOnRestLarge:Eee,foregroundOnHoverLarge:Nee,foregroundOnActiveLarge:Aee,foregroundOnFocusLarge:Tee,foregroundRecipe:Oee,foregroundRest:Ree,foregroundHover:Iee,foregroundActive:Dee,foregroundFocus:Fee}=Y5("warning",A5);var _ee=Object.freeze({__proto__:null,accentFillActive:Al,accentFillActiveDelta:Dr,accentFillFocus:Tl,accentFillFocusDelta:Fr,accentFillHover:Nl,accentFillHoverDelta:Ir,accentFillRest:El,accentFillRestDelta:Rr,accentForegroundActive:Yl,accentForegroundActiveDelta:Pr,accentForegroundFocus:Kl,accentForegroundFocusDelta:Vr,accentForegroundHover:Wl,accentForegroundHoverDelta:Hr,accentForegroundRest:Gl,accentForegroundRestDelta:_r,accentPalette:fl,baseHeightMultiplier:ar,baseLayerLuminance:rr,bodyFont:sr,controlCornerRadius:lr,density:dr,designUnit:hr,direction:ur,disabledOpacity:fr,fillColor:kl,focusStrokeInner:xd,focusStrokeOuter:yd,focusStrokeWidth:mr,foregroundOnAccentActive:Fl,foregroundOnAccentActiveLarge:Bl,foregroundOnAccentFocus:_l,foregroundOnAccentFocusLarge:Ul,foregroundOnAccentHover:Dl,foregroundOnAccentHoverLarge:Vl,foregroundOnAccentRest:Il,foregroundOnAccentRestLarge:Pl,neutralFillActive:Jl,neutralFillActiveDelta:jr,neutralFillFocus:ed,neutralFillFocusDelta:qr,neutralFillHover:Xl,neutralFillHoverDelta:Ur,neutralFillInputActive:cd,neutralFillInputActiveDelta:Yr,neutralFillInputFocus:sd,neutralFillInputFocusDelta:Kr,neutralFillInputHover:od,neutralFillInputHoverDelta:Wr,neutralFillInputRest:id,neutralFillInputRestDelta:Gr,neutralFillLayerRest:vd,neutralFillLayerRestDelta:cl,neutralFillRest:Ql,neutralFillRestDelta:Br,neutralFillStealthActive:ld,neutralFillStealthActiveDelta:Xr,neutralFillStealthFocus:dd,neutralFillStealthFocusDelta:Jr,neutralFillStealthHover:rd,neutralFillStealthHoverDelta:Qr,neutralFillStealthRest:nd,neutralFillStealthRestDelta:Zr,neutralFillStrongActive:pd,neutralFillStrongActiveDelta:il,neutralFillStrongFocus:md,neutralFillStrongFocusDelta:ol,neutralFillStrongHover:fd,neutralFillStrongHoverDelta:tl,neutralFillStrongRest:ud,neutralFillStrongRestDelta:el,neutralForegroundHint:Ld,neutralForegroundRest:wd,neutralLayer1:yl,neutralLayer2:xl,neutralLayer3:Ll,neutralLayer4:wl,neutralLayerCardContainer:ml,neutralLayerFloating:vl,neutralPalette:hl,neutralStrokeActive:Ed,neutralStrokeActiveDelta:nl,neutralStrokeDividerRest:Td,neutralStrokeDividerRestDelta:ll,neutralStrokeFocus:Nd,neutralStrokeFocusDelta:rl,neutralStrokeHover:$d,neutralStrokeHoverDelta:al,neutralStrokeRest:Sd,neutralStrokeRestDelta:sl,strokeWidth:pr,typeRampBaseFontSize:gr,typeRampBaseLineHeight:vr,typeRampMinus1FontSize:br,typeRampMinus1LineHeight:yr,typeRampMinus2FontSize:zr,typeRampMinus2LineHeight:xr,typeRampPlus1FontSize:Cr,typeRampPlus1LineHeight:Lr,typeRampPlus2FontSize:Mr,typeRampPlus2LineHeight:wr,typeRampPlus3FontSize:kr,typeRampPlus3LineHeight:Sr,typeRampPlus4FontSize:$r,typeRampPlus4LineHeight:Er,typeRampPlus5FontSize:Nr,typeRampPlus5LineHeight:Ar,typeRampPlus6FontSize:Tr,typeRampPlus6LineHeight:Or,defaultErrorColor:M5,errorColor:w5,defaultSuccessColor:S5,successColor:$5,defaultWarningColor:N5,warningColor:A5,defaultBuyColor:O5,buyColor:R5,defaultSellColor:D5,sellColor:F5,defaultInfoColor:H5,infoColor:P5,defaultSeriousNotifyColor:B5,seriousNotifyColor:U5,defaultSecondaryColor:Z5,secondaryColor:Q5,secondaryPalette:X5,secondaryFillRestDelta:J5,secondaryFillHoverDelta:e7,secondaryFillActiveDelta:t7,secondaryFillFocusDelta:i7,secondaryForegroundRestDelta:o7,secondaryForegroundHoverDelta:c7,secondaryForegroundActiveDelta:s7,secondaryForegroundFocusDelta:a7,secondaryFillRecipe:n7,secondaryFillRest:r7,secondaryFillHover:l7,secondaryFillActive:d7,secondaryFillFocus:h7,foregroundOnSecondaryRecipe:u7,foregroundOnSecondaryRest:f7,foregroundOnSecondaryHover:p7,foregroundOnSecondaryActive:m7,foregroundOnSecondaryFocus:g7,foregroundOnSecondaryLargeRecipe:v7,foregroundOnSecondaryRestLarge:b7,foregroundOnSecondaryHoverLarge:y7,foregroundOnSecondaryActiveLarge:z7,foregroundOnSecondaryFocusLarge:x7,secondaryForegroundRecipe:C7,secondaryForegroundRest:L7,secondaryForegroundHover:M7,secondaryForegroundActive:w7,secondaryForegroundFocus:k7,defaultTertiaryColor:$7,tertiaryColor:E7,tertiaryPalette:N7,tertiaryFillRestDelta:A7,tertiaryFillHoverDelta:T7,tertiaryFillActiveDelta:O7,tertiaryFillFocusDelta:R7,tertiaryForegroundRestDelta:I7,tertiaryForegroundHoverDelta:D7,tertiaryForegroundActiveDelta:F7,tertiaryForegroundFocusDelta:_7,tertiaryFillRecipe:H7,tertiaryFillRest:P7,tertiaryFillHover:V7,tertiaryFillActive:B7,tertiaryFillFocus:U7,foregroundOnTertiaryRecipe:j7,foregroundOnTertiaryRest:q7,foregroundOnTertiaryHover:G7,foregroundOnTertiaryActive:W7,foregroundOnTertiaryFocus:Y7,foregroundOnTertiaryLargeRecipe:K7,foregroundOnTertiaryRestLarge:Z7,foregroundOnTertiaryHoverLarge:Q7,foregroundOnTertiaryActiveLarge:X7,foregroundOnTertiaryFocusLarge:J7,tertiaryForegroundRecipe:e9,tertiaryForegroundRest:t9,tertiaryForegroundHover:i9,tertiaryForegroundActive:o9,tertiaryForegroundFocus:c9,errorPalette:s9,errorFillRestDelta:a9,errorFillHoverDelta:n9,errorFillActiveDelta:r9,errorFillFocusDelta:l9,errorForegroundRestDelta:d9,errorForegroundHoverDelta:h9,errorForegroundActiveDelta:u9,errorForegroundFocusDelta:f9,errorFillRecipe:p9,errorFillRest:m9,errorFillHover:g9,errorFillActive:v9,errorFillFocus:b9,foregroundOnErrorRecipe:y9,foregroundOnErrorRest:z9,foregroundOnErrorHover:x9,foregroundOnErrorActive:C9,foregroundOnErrorFocus:L9,foregroundOnErrorLargeRecipe:M9,foregroundOnErrorRestLarge:w9,foregroundOnErrorHoverLarge:k9,foregroundOnErrorActiveLarge:S9,foregroundOnErrorFocusLarge:$9,errorForegroundRecipe:E9,errorForegroundRest:N9,errorForegroundHover:A9,errorForegroundActive:T9,errorForegroundFocus:O9,successPalette:R9,successFillRestDelta:I9,successFillHoverDelta:D9,successFillActiveDelta:F9,successFillFocusDelta:_9,successForegroundRestDelta:H9,successForegroundHoverDelta:P9,successForegroundActiveDelta:V9,successForegroundFocusDelta:B9,successFillRecipe:U9,successFillRest:j9,successFillHover:q9,successFillActive:G9,successFillFocus:W9,foregroundOnSuccessRecipe:Y9,foregroundOnSuccessRest:K9,foregroundOnSuccessHover:Z9,foregroundOnSuccessActive:Q9,foregroundOnSuccessFocus:X9,foregroundOnSuccessLargeRecipe:J9,foregroundOnSuccessRestLarge:eee,foregroundOnSuccessHoverLarge:tee,foregroundOnSuccessActiveLarge:iee,foregroundOnSuccessFocusLarge:oee,successForegroundRecipe:cee,successForegroundRest:see,successForegroundHover:aee,successForegroundActive:nee,successForegroundFocus:ree,warningPalette:lee,warningFillRestDelta:dee,warningFillHoverDelta:hee,warningFillActiveDelta:uee,warningFillFocusDelta:fee,warningForegroundRestDelta:pee,warningForegroundHoverDelta:mee,warningForegroundActiveDelta:gee,warningForegroundFocusDelta:vee,warningFillRecipe:bee,warningFillRest:yee,warningFillHover:zee,warningFillActive:xee,warningFillFocus:Cee,foregroundOnWarningRecipe:Lee,foregroundOnWarningRest:Mee,foregroundOnWarningHover:wee,foregroundOnWarningActive:kee,foregroundOnWarningFocus:See,foregroundOnWarningLargeRecipe:$ee,foregroundOnWarningRestLarge:Eee,foregroundOnWarningHoverLarge:Nee,foregroundOnWarningActiveLarge:Aee,foregroundOnWarningFocusLarge:Tee,warningForegroundRecipe:Oee,warningForegroundRest:Ree,warningForegroundHover:Iee,warningForegroundActive:Dee,warningForegroundFocus:Fee});const Hee=JM(x5.primary),Pee=JM(x5.neutral),Vee=JM(x5.green),Bee=JM(x5.tertiary),Uee=JM(x5.error),jee=JM(x5.success),qee=JM(x5.warning),Gee=tr,Wee=zi.ltr,Yee='"Segoe UI", Arial, Helvetica, sans-serif',Kee="14px",Zee="20px",Qee={design_tokens:{color:{accent:{$value:Hee.source.toColorString(),$type:"color"},neutral:{$value:Pee.source.toColorString(),$type:"color"},secondary:{$value:Vee.source.toColorString(),$type:"color"},tertiary:{$value:Bee.source.toColorString(),$type:"color"},error:{$value:Uee.source.toColorString(),$type:"color"},success:{$value:jee.source.toColorString(),$type:"color"},warning:{$value:qee.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Yee,$type:"fontFamily"}},typography:{baseFontSize:{$value:Kee,$type:"dimension"},baseLineHeight:{$value:Zee,$type:"dimension"}},mode:{luminance:{$value:Gee,$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 Xee=Object.freeze({__proto__:null,accentPaletteValue:Hee,neutralPaletteValue:Pee,secondaryPaletteValue:Vee,tertiaryPaletteValue:Bee,errorPaletteValue:Uee,successPaletteValue:jee,warningPaletteValue:qee,baseLayerLuminanceValue:Gee,accentFillRestDeltaValue:0,accentFillHoverDeltaValue:4,accentFillActiveDeltaValue:-5,accentFillFocusDeltaValue:0,accentForegroundRestDeltaValue:0,accentForegroundHoverDeltaValue:6,accentForegroundActiveDeltaValue:-4,accentForegroundFocusDeltaValue:0,neutralFillRestDeltaValue:7,neutralFillHoverDeltaValue:10,neutralFillActiveDeltaValue:5,neutralFillFocusDeltaValue:0,neutralFillInputRestDeltaValue:0,neutralFillInputHoverDeltaValue:5,neutralFillInputActiveDeltaValue:0,neutralFillInputFocusDeltaValue:10,neutralFillStealthRestDeltaValue:0,neutralFillStealthHoverDeltaValue:5,neutralFillStealthActiveDeltaValue:3,neutralFillStealthFocusDeltaValue:0,neutralFillStrongRestDeltaValue:0,neutralFillStrongHoverDeltaValue:8,neutralFillStrongActiveDeltaValue:-5,neutralFillStrongFocusDeltaValue:0,neutralFillLayerRestDeltaValue:3,neutralStrokeRestDeltaValue:25,neutralStrokeHoverDeltaValue:40,neutralStrokeActiveDeltaValue:16,neutralStrokeFocusDeltaValue:25,neutralStrokeDividerRestDeltaValue:8,designTokens:Qee,prefix:"rapid",directionValue:Wee,disabledOpacityValue:.3,strokeWidthValue:1,focusStrokeWidthValue:2,baseHeightMultiplierValue:10,controlCornerRadiusValue:4,densityValue:0,designUnitValue:4,bodyFontValue:Yee,typeRampBaseFontSizeValue:Kee,typeRampBaseLineHeightValue:Zee,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"});const Jee=class extends yh{constructor(){super(),ZM(_ee,Xee,this)}}.compose({baseName:"design-system-provider",template:W`<slot></slot>`}),ete=Ce` ${KK} :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: ${wd}}::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)}}`,tte=gZ,ite=QK,ote=mZ;const cte=class extends bZ{}.compose(Object.assign({baseName:"dialog",shadowOptions:ote,styles:ete,template:ite},tte));const ste=class extends xZ{}.compose(Object.assign({baseName:"disclosure",template:(e,t)=>yZ(),styles:(e,t)=>Ce` ${zZ()} :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:mZ},CZ));const ate=class extends wZ{}.compose(Object.assign({baseName:"divider",template:(e,t)=>LZ(),styles:(e,t)=>Ce` ${MZ()}`,shadowOptions:kZ},SZ));const nte=class extends AZ{}.compose({baseName:"dropdown-menu",styles:(e,t)=>Ce` ${$Z("rapid")} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px) 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) calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:NZ}),rte=Ce` ${TZ}`;const lte=class extends VZ{}.compose({baseName:"environment-indicator",styles:rte,template:OZ});P8(iQ);const dte=lQ,hte=hQ.compose({baseName:"file-reader",styles:dte,template:dQ}),ute=Ce` ${uQ} ::-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)}`,fte=W` ${fQ("rapid")} `,pte=xQ,mte=zQ;const gte=class extends yQ{}.compose(Object.assign({baseName:"file-upload",shadowOptions:mte,styles:ute,template:fte},pte)),vte=W` ${SQ("rapid")} `;const bte=class extends NQ{}.compose({baseName:"filter",template:vte,styles:(e,t)=>Ce` ${CQ} .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}`}),yte=W` ${OQ("rapid")} `;const zte=class extends IQ{}.compose({baseName:"filter-bar",template:yte,styles:(e,t)=>Ce` ${AQ()} .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)}`});P8(PQ);const xte=class extends UQ{}.compose(Object.assign({baseName:"flipper",template:(e,t)=>VQ(0,t),styles:(e,t)=>Ce` ${BQ()} :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:jQ},qQ)),Cte=Ce` ${GQ} 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)}`,Lte=W` ${WQ("rapid")} `,Mte=QQ,wte=ZQ;const kte=class extends KQ{}.compose(Object.assign({baseName:"flyout",shadowOptions:wte,styles:Cte,template:Lte},Mte));P8(cX);P8(nX);const Ste={nextFlipper:W`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:W`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`},$te=class extends dX{}.compose(Object.assign({baseName:"horizontal-scroll",template:(e,t)=>rX(e,t),styles:(e,t)=>Ce` ${lX()}`,shadowOptions:hX},Ste)),Ete=W` ${pX("rapid")} `;const Nte=vX,Ate=gX,Tte=class extends yX{}.compose(Object.assign({baseName:"icon",template:Ete,styles:(e,t)=>Ce` ${fX()}`,shadowOptions:Ate},Nte));const Ote=class extends CX{}.compose(Object.assign({baseName:"listbox",template:(e,t)=>zX(),styles:(e,t)=>Ce` ${xX(e)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:LX},MX));const Rte=class extends SX{}.compose(Object.assign({baseName:"option",template:(e,t)=>wX(0,t),styles:(e,t)=>Ce` ${kX()} :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:$X},EX));const Ite=class extends TX{}.compose(Object.assign({baseName:"menu",template:(e,t)=>NX(),styles:(e,t)=>Ce` ${AX()} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${rd}, transparent 15%);padding: 0}`,shadowOptions:OX},RX)),Dte=_X;const Fte=class extends FX{}.compose(Object.assign({baseName:"menu-item",template:(e,t)=>IX(e,t),styles:(e,t)=>Ce` ${DX()} :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, ${rd}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${rd}, 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: ${rd} color: ${wd} */`,shadowOptions:Dte},HX)),_te=Ce` ${ete}`,Hte=UX,Pte=VX,Vte=BX;const Bte=class extends jX{}.compose(Object.assign({baseName:"modal",shadowOptions:Vte,styles:_te,template:Pte},Hte)),Ute=Ce` ${DL} .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}`,jte=W` ${PL("rapid")} `;const qte=UL,Gte=BL,Wte=class extends jL{}.compose(Object.assign({baseName:"multiselect",template:jte,styles:Ute,shadowOptions:Gte},qte));const Yte=class extends h8{}.compose({baseName:"notification-listener",template:d8,shadowOptions:{mode:"open",delegatesFocus:!0}});const Kte=lJ,Zte=qX,Qte=rJ,Xte=class extends nJ{}.compose(Object.assign({baseName:"number-field",template:Zte,styles:(e,t)=>Ce` :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%}${rQ}`,shadowOptions:Qte},Kte));const Jte=class extends uJ{}.compose({baseName:"optgroup",template:(e,t)=>hJ(),styles:(e,t)=>Ce` ${dJ()}`});const eie=class extends CJ{}.compose(Object.assign({baseName:"system-health-overlay",template:LJ,styles:MJ,shadowOptions:wJ},kJ));const tie=class extends mJ{}.compose(Object.assign({baseName:"progress",template:(e,t)=>fJ(0,t),styles:(e,t)=>Ce` ${pJ()}`,shadowOptions:gJ},vJ));const iie=class extends Y1{}.compose(Object.assign({baseName:"progress-ring",template:(e,t)=>G1(0,t),styles:(e,t)=>Ce` ${W1()}`,shadowOptions:K1},Z1));const oie=class extends J1{}.compose(Object.assign({baseName:"radio",template:(e,t)=>Q1(0,t),styles:(e,t)=>Ce` ${X1()} :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:e2},t2));const cie=class extends c2{}.compose(Object.assign({baseName:"radio-group",template:(e,t)=>i2(),styles:(e,t)=>Ce` ${o2()}`,shadowOptions:s2},a2)),sie=Ce` ${n2} :host{font-family: var(--body-font)}`,aie=W` ${r2("rapid")} `;const nie=class extends d2{}.compose(Object.assign({baseName:"scheduler",template:aie,styles:sie,shadowOptions:h2},u2)),rie=Ce` ${A2} :host{font-family: var(--body-font)}`,lie=W` ${Q2("rapid")} `;const die=class extends J2{}.compose(Object.assign({baseName:"scheduler-cron-builder",template:lie,styles:rie,shadowOptions:e3},t3)),hie=Ce` ${i3} :host{font-family: var(--body-font)}`,uie=W` ${o3("rapid")} `;const fie=class extends s3{}.compose(Object.assign({baseName:"scheduler-timezone",template:uie,styles:hie,shadowOptions:a3},n3)),pie=Ce` ${r3}`,mie=W` ${l3("rapid")} `;const gie=class extends h3{}.compose(Object.assign({baseName:"search-bar",template:mie,styles:pie,shadowOptions:u3},f3));const vie=class extends v3{}.compose(Object.assign({baseName:"search-bar-combobox",template:(e,t)=>m3(0,t),styles:(e,t)=>Ce` ${p3(e)} :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(${hr} * 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:b3},y3));const bie=class extends S3{}.compose(Object.assign({baseName:"section-navigator",template:x3,styles:(e,t)=>z3,shadowOptions:$3},E3));const yie=class extends T3{}.compose(Object.assign({baseName:"segmented-control",template:(e,t)=>N3(),styles:(e,t)=>Ce` ${A3()} :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},{}));const zie=class extends J1{}.compose(Object.assign({baseName:"segmented-item",template:(e,t)=>O3(),styles:(e,t)=>Ce` ${R3()} :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},{}));const xie=class extends F3{}.compose(Object.assign({baseName:"select",template:(e,t)=>I3(0,t),styles:(e,t)=>Ce` ${D3(e)} :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(${hr} * 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:_3},H3));const Cie=class extends B3{}.compose(Object.assign({baseName:"skeleton",template:(e,t)=>P3(),styles:(e,t)=>Ce` ${V3()} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:U3},j3));const Lie=class extends W3{}.compose(Object.assign({baseName:"slider",template:(e,t)=>q3(0,t),styles:(e,t)=>Ce` ${G3()} .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, ${El}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${El}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${El}, 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:Y3},K3));const Mie=class extends X3{}.compose(Object.assign({baseName:"slider-label",template:(e,t)=>Z3(),styles:(e,t)=>Ce` ${Q3()} .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:J3},e4)),wie=Ce` ${c4} .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)}`,kie=W` ${s4("rapid")} `,Sie=n4;const $ie=class extends r4{}.compose({baseName:"snackbar",shadowOptions:Sie,styles:wie,template:kie});const Eie=class extends h4{}.compose({baseName:"stacking-icons",template:d4,styles:(e,t)=>Ce` ${l4()}`});const Nie=class extends p4{}.compose({baseName:"status-pill",template:f4,styles:u4}),Aie=Ce` ${$8} :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)}`,Tie=W` ${k8("rapid")} `;const Oie=class extends E8{}.compose(Object.assign({baseName:"stepper",template:Tie,styles:Aie,shadowOptions:N8},A8)),Rie=W` ${m4("rapid")} `;const Iie=class extends b4{}.compose(Object.assign({baseName:"stepper-tab",template:Rie,styles:(e,t)=>Ce` ${v4()} 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)}`,shadowOptions:y4},z4));const Die=class extends C4{}.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,t)=>x4(),shadowOptions:L4},M4)),Fie={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};const _ie=class extends S4{}.compose(Object.assign({baseName:"switch",template:(e,t)=>w4(0,t),styles:(e,t)=>Ce` ${k4()} :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:$4},Fie));const Hie=class extends T4{}.compose(Object.assign({baseName:"tab",template:(e,t)=>N4(),styles:(e,t)=>Ce` ${A4()} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px) 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)}`,shadowOptions:O4},R4));const Pie=class extends F4{}.compose(Object.assign({baseName:"tab-panel",template:(e,t)=>I4(),styles:(e,t)=>Ce` ${D4()} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 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:_4},H4));const Vie=class extends B4{}.compose(Object.assign({baseName:"tabs",template:(e,t)=>P4(0,t),styles:(e,t)=>Ce` ${V4()} :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:U4},j4));const Bie=class extends W4{}.compose(Object.assign({baseName:"text-area",template:(e,t)=>q4(),styles:(e,t)=>Ce` ${G4()} :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:Y4},K4));const Uie=class extends X4{}.compose(Object.assign({baseName:"text-field",template:(e,t)=>Z4(0,t),styles:(e,t)=>Ce` ${Q4()} :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:J4},e0)),jie=Ce` ${t0} .toast{background-color: ${yl};border-radius: calc(var(--control-corner-radius) * 2px) 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)}`,qie=s0,Gie=c0;const Wie=class extends a0{}.compose(Object.assign({baseName:"toast",shadowOptions:Gie,styles:jie,template:o0},qie));const Yie=class extends l0{}.compose(Object.assign({baseName:"toolbar",template:(e,t)=>n0(0,t),styles:(e,t)=>Ce` ${r0()} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:d0},h0));const Kie=class extends p0{}.compose(Object.assign({baseName:"tooltip",template:(e,t)=>u0(e),styles:(e,t)=>Ce` ${f0(e)} :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:m0},g0));const Zie={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>\n </svg>'},Qie=class extends y0{}.compose(Object.assign({baseName:"tree-item",template:(e,t)=>v0(0,t),styles:(e,t)=>Ce` ${b0(e)} :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:z0},Zie));const Xie=class extends M0{}.compose(Object.assign({baseName:"tree-view",template:(e,t)=>C0(),styles:(e,t)=>Ce` ${L0()}`,shadowOptions:w0},k0)),Jie=W` ${$0("rapid")} `;const eoe={designSystemProvider:Jee,rapidAccordion:T8,rapidAccordionItem:O8,rapidAiCriteriaSearch:D8,rapidAiIndicator:F8,rapidActionsMenu:R8,rapidAnchor:J8,rapidSectionNavigator:bie,rapidAnchoredRegion:e5,rapidAvatar:t5,rapidBadge:i5,rapidBanner:s5,rapidBreadcrumb:a5,rapidBreadcrumbItem:n5,rapidButton:r5,rapidCalendar:l5,rapidCard:d5,rapidCategorizedMultiselect:m5,rapidCheckbox:g5,rapidCombobox:v5,rapidConnectionIndicator:b5,rapidDataGrid:()=>uM(),rapidDataGridCell:()=>fM(),rapidDataGridRow:()=>pM(),rapidDatePicker:z5,rapidDialog:cte,rapidDisclosure:ste,rapidDivider:ate,rapidDropdownMenu:nte,rapidEnvironmentIndicator:lte,rapidErrorBoundary:()=>iQ(),rapidFileReader:hte,rapidFileUpload:gte,rapidFilter:bte,rapidFilterBar:zte,rapidFlexLayout:()=>PQ(),rapidFlipper:xte,rapidFlyout:kte,rapidGridLayout:()=>cX(),rapidGridLayoutItem:()=>nX(),rapidHorizontalScroll:$te,rapidIcon:Tte,rapidListbox:Ote,rapidListboxOption:Rte,rapidMenu:Ite,rapidMenuItem:Fte,rapidModal:Bte,rapidMultiselect:Wte,rapidNotificationListener:Yte,rapidNumberField:Xte,rapidOptgroup:Jte,rapidProgress:tie,rapidProgressRing:iie,rapidRadio:oie,rapidRadioGroup:cie,rapidScheduler:nie,rapidSchedulerCronBuilder:die,rapidSchedulerTimezone:fie,rapidSearchBar:gie,rapidSearchBarCombobox:vie,rapidSegmentedControl:yie,rapidSegmentedItem:zie,rapidSelect:xie,rapidSkeleton:Cie,rapidSlider:Lie,rapidSliderLabel:Mie,rapidSnackbar:$ie,rapidStackingIcons:Eie,rapidStatusPill:Nie,rapidStepper:Oie,rapidStepperTab:Iie,rapidStepperTabPanel:Die,rapidSwitch:_ie,rapidSystemHealthOverlay:eie,rapidTab:Hie,rapidTabPanel:Pie,rapidTabs:Vie,rapidTextArea:Bie,rapidTextField:Uie,rapidToast:Wie,rapidToolbar:Yie,rapidTooltip:Kie,rapidTreeItem:Qie,rapidTreeView:Xie,rapidUrlInput:class extends T0{}.compose(Object.assign({baseName:"url-input",template:Jie,styles:(e,t)=>Ce` ${S0()} 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)}`,shadowOptions:N0},A0)),register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}},toe=(e,t="rapid")=>yJ(e,t,Xee,_ee),ioe=Fn("#585858");Vn.create(ioe.r,ioe.g,ioe.b);const ooe=Fn("#202126"),coe=Vn.create(ooe.r,ooe.g,ooe.b);function soe(e,...t){let i="";return e.forEach((e,o)=>{i+=e,o<t.length&&(i+=t[o])}),i}Wn.from(coe);const aoe={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"}},noe=soe` 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}`,roe=soe` 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);`,loe={value:soe` ${noe} 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:soe` ${noe} div.rule-container{${roe}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:soe` ${noe} rapid-select{min-width: 350px}`,field:soe` ${noe} rapid-select{min-width: 350px}`,group:soe` ${noe} div.rules-group-container{${roe}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`};let doe=class extends A6{constructor(){super(...arguments),this.styles={customElements:aoe,customStyles:loe}}};Nu([g],doe.prototype,"styles",void 0),doe=Nu([ye({name:"rapid-expression-builder",styles:G6.styles,template:G6.template})],doe);let hoe=class extends o8{constructor(){super(...arguments),this.styles={customElements:aoe,customStyles:loe}}};Nu([g],hoe.prototype,"styles",void 0),hoe=Nu([ye({name:"rapid-rule-expression-builder",styles:G6.styles,template:G6.template})],hoe);let uoe=class extends l8{constructor(){super(...arguments),this.styles={customElements:aoe,customStyles:loe}}};Nu([g],uoe.prototype,"styles",void 0),uoe=Nu([ye({name:"rapid-value-expression-builder",styles:G6.styles,template:G6.template})],uoe);Ce` ${"/* ============================================================================\n * flexlayout-react base theme — VENDORED from flexlayout-react@0.8.19 (style/dark.css).\n * ========================================================================== */\n.flexlayout__layout {\n --color-text: #eeeeee;\n --color-background: black;\n --color-base: black;\n --color-1: rgb(17.85, 17.85, 17.85);\n --color-2: rgb(25.5, 25.5, 25.5);\n --color-3: rgb(38.25, 38.25, 38.25);\n --color-4: #333333;\n --color-5: rgb(63.75, 63.75, 63.75);\n --color-6: rgb(76.5, 76.5, 76.5);\n --color-drag1: rgb(207, 232, 255);\n --color-drag2: rgb(183, 209, 181);\n --color-drag1-background: rgba(128, 128, 128, 0.15);\n --color-drag2-background: rgba(128, 128, 128, 0.15);\n --font-size: medium;\n --font-family: Roboto, Arial, sans-serif;\n --color-overflow: gray;\n --color-icon: gray;\n --color-tabset-background: var(--color-1);\n --color-tabset-background-selected: var(--color-1);\n --color-tabset-background-maximized: var(--color-6);\n --color-tabset-divider-line: var(--color-4);\n --color-tabset-header-background: var(--color-1);\n --color-tabset-header: var(--color-text);\n --color-border-tab-content: var(--color-background);\n --color-border-background: var(--color-1);\n --color-border-divider-line: var(--color-4);\n --color-tab-content: var(--color-background);\n --color-tab-selected: var(--color-text);\n --color-tab-selected-background: var(--color-4);\n --color-tab-unselected: gray;\n --color-tab-unselected-background: transparent;\n --color-tab-textbox: var(--color-text);\n --color-tab-textbox-background: var(--color-3);\n --color-border-tab-selected: var(--color-text);\n --color-border-tab-selected-background: var(--color-4);\n --color-border-tab-unselected: gray;\n --color-border-tab-unselected-background: var(--color-2);\n --color-splitter: var(--color-2);\n --color-splitter-hover: var(--color-4);\n --color-splitter-drag: var(--color-5);\n --color-drag-rect-border: var(--color-4);\n --color-drag-rect-background: var(--color-1);\n --color-drag-rect: var(--color-text);\n --color-popup-border: var(--color-6);\n --color-popup-unselected: var(--color-text);\n --color-popup-unselected-background: var(--color-background);\n --color-popup-selected: var(--color-text);\n --color-popup-selected-background: var(--color-4);\n --color-edge-marker: gray;\n --color-edge-icon: #eee;\n --color-mini-scroll-indicator: rgba(128, 128, 128, 0.5);\n --color-mini-scroll-indicator-hovered: rgba(128, 128, 128, 0.8);\n --size-mini-scroll-indicator: 3px;\n --color-toolbar-button-hover: var(--color-4);\n}\n\n/*\n base classes\n*/\n.flexlayout__layout {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n overflow: hidden;\n background-color: var(--color-background);\n}\n.flexlayout__layout_overlay {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n z-index: 1000;\n}\n.flexlayout__layout_tab_stamps {\n position: absolute;\n top: -10000px;\n z-index: 100;\n display: flex;\n flex-direction: column;\n align-items: start;\n}\n.flexlayout__layout_moveables {\n visibility: hidden;\n position: absolute;\n width: 100px;\n height: 100px;\n top: -20000px;\n}\n.flexlayout__layout_main {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n position: relative;\n}\n.flexlayout__layout_border_container {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n}\n.flexlayout__layout_border_container_inner {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n}\n.flexlayout__splitter {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--color-splitter);\n touch-action: none;\n z-index: 10;\n}\n@media (hover: hover) {\n .flexlayout__splitter:hover {\n background-color: var(--color-splitter-hover);\n transition: background-color ease-in 0.1s;\n transition-delay: 0.05s;\n border-radius: 5px;\n }\n}\n.flexlayout__splitter_drag {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n border-radius: 5px;\n background-color: var(--color-splitter-drag);\n}\n.flexlayout__splitter_handle {\n background-color: #ccc;\n border-radius: 3px;\n}\n.flexlayout__splitter_handle_horz {\n width: 3px;\n height: 30px;\n}\n.flexlayout__splitter_handle_vert {\n width: 30px;\n height: 3px;\n}\n.flexlayout__splitter_extra {\n touch-action: none;\n background-color: transparent;\n}\n.flexlayout__outline_rect {\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n border: 2px solid var(--color-drag1);\n background: var(--color-drag1-background);\n border-radius: 5px;\n z-index: 1000;\n}\n.flexlayout__outline_rect_edge {\n pointer-events: none;\n border: 2px solid var(--color-drag2);\n background: var(--color-drag2-background);\n border-radius: 5px;\n z-index: 1000;\n box-sizing: border-box;\n}\n.flexlayout__edge_rect {\n position: absolute;\n z-index: 1000;\n background-color: var(--color-edge-marker);\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.flexlayout__drag_rect {\n color: var(--color-drag-rect);\n background-color: var(--color-drag-rect-background);\n border: 2px solid var(--color-drag-rect-border);\n border-radius: 5px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n flex-direction: column;\n overflow: hidden;\n padding: 0.3em 0.8em;\n word-wrap: break-word;\n font-size: var(--font-size);\n font-family: var(--font-family);\n}\n.flexlayout__row {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flexlayout__tabset {\n display: flex;\n flex-direction: column;\n position: relative;\n background-color: var(--color-tabset-background);\n box-sizing: border-box;\n font-family: var(--font-family);\n overflow: hidden;\n flex-grow: 1;\n}\n.flexlayout__tabset_container {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-direction: column;\n overflow: hidden;\n flex-grow: 1;\n}\n.flexlayout__tabset_tab_divider {\n width: 4px;\n}\n.flexlayout__tabset_content {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n box-sizing: border-box;\n position: relative;\n}\n.flexlayout__tabset_leading {\n display: flex;\n}\n.flexlayout__tabset_header {\n display: flex;\n align-items: center;\n padding: 3px 3px 3px 5px;\n box-sizing: border-box;\n border-bottom: 1px solid var(--color-tabset-divider-line);\n color: var(--color-tabset-header);\n background-color: var(--color-tabset-header-background);\n font-size: var(--font-size);\n}\n.flexlayout__tabset_header_content {\n flex-grow: 1;\n}\n.flexlayout__tabset_tabbar_outer {\n box-sizing: border-box;\n background-color: var(--color-tabset-background);\n overflow: hidden;\n display: flex;\n font-size: var(--font-size);\n}\n.flexlayout__tabset_tabbar_outer_top {\n padding: 0px 2px 0px 2px;\n border-bottom: 1px solid var(--color-tabset-divider-line);\n}\n.flexlayout__tabset_tabbar_outer_bottom {\n padding: 0px 2px 0px 2px;\n border-top: 1px solid var(--color-tabset-divider-line);\n}\n.flexlayout__tabset_tabbar_inner {\n position: relative;\n box-sizing: border-box;\n display: flex;\n flex-grow: 1;\n scrollbar-width: none;\n}\n.flexlayout__tabset_tabbar_inner::-webkit-scrollbar {\n display: none;\n}\n.flexlayout__tabset_tabbar_inner_tab_container {\n position: relative;\n display: flex;\n padding-left: 4px;\n padding-right: 4px;\n box-sizing: border-box;\n white-space: nowrap;\n}\n.flexlayout__tabset_tabbar_inner_tab_container_top {\n border-top: 2px solid transparent;\n}\n.flexlayout__tabset_tabbar_inner_tab_container_bottom {\n border-bottom: 2px solid transparent;\n}\n.flexlayout__tabset-selected {\n background-color: var(--color-tabset-background-selected);\n}\n.flexlayout__tabset-maximized {\n background-color: var(--color-tabset-background-maximized);\n}\n.flexlayout__tab_button_stamp {\n display: inline-flex;\n align-items: center;\n gap: 0.3em;\n white-space: nowrap;\n box-sizing: border-box;\n}\n.flexlayout__tab {\n overflow: hidden;\n box-sizing: border-box;\n background-color: var(--color-tab-content);\n color: var(--color-text);\n position: relative;\n}\n.flexlayout__tab_moveable {\n position: relative;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n overflow: auto;\n box-sizing: border-box;\n}\n.flexlayout__tab_overlay {\n z-index: 20;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.2392156863);\n}\n.flexlayout__tab_button {\n display: flex;\n gap: 0.3em;\n align-items: center;\n box-sizing: border-box;\n padding: 3px 0.5em;\n cursor: pointer;\n}\n.flexlayout__tab_button_stretch {\n background-color: transparent;\n color: var(--color-tab-selected);\n width: 100%;\n padding: 3px 0em;\n text-wrap: nowrap;\n display: flex;\n gap: 0.3em;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n}\n@media (hover: hover) {\n .flexlayout__tab_button_stretch:hover {\n color: var(--color-tab-selected);\n }\n}\n.flexlayout__tab_button--selected {\n background-color: var(--color-tab-selected-background);\n color: var(--color-tab-selected);\n}\n@media (hover: hover) {\n .flexlayout__tab_button:hover {\n color: var(--color-tab-selected);\n }\n}\n.flexlayout__tab_button--unselected {\n background-color: var(--color-tab-unselected-background);\n color: var(--color-tab-unselected);\n}\n.flexlayout__tab_button_leading {\n display: flex;\n}\n.flexlayout__tab_button_content {\n display: flex;\n text-wrap: nowrap;\n}\n.flexlayout__tab_button_textbox {\n border: none;\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--color-tab-textbox);\n background-color: var(--color-tab-textbox-background);\n border: 1px inset var(--color-1);\n border-radius: 3px;\n width: 10em;\n}\n.flexlayout__tab_button_textbox:focus {\n outline: none;\n}\n.flexlayout__tab_button_trailing {\n display: flex;\n visibility: hidden;\n border-radius: 4px;\n}\n.flexlayout__tab_button_trailing:hover {\n background-color: var(--color-toolbar-button-hover);\n}\n@media (hover: hover) {\n .flexlayout__tab_button:hover .flexlayout__tab_button_trailing {\n visibility: visible;\n }\n}\n.flexlayout__tab_button--selected .flexlayout__tab_button_trailing {\n visibility: visible;\n}\n.flexlayout__tab_button_overflow {\n display: flex;\n align-items: center;\n border: none;\n color: var(--color-overflow);\n font-size: inherit;\n background-color: transparent;\n width: 2em;\n overflow: hidden;\n}\n.flexlayout__tab_toolbar {\n display: flex;\n align-items: center;\n gap: 0.3em;\n padding-left: 0.5em;\n padding-right: 0.3em;\n}\n.flexlayout__tab_toolbar_icon {\n border: none;\n outline: none;\n font-size: inherit;\n margin: 0px;\n background-color: transparent;\n padding: 1px;\n}\n.flexlayout__tab_toolbar_button {\n border: none;\n outline: none;\n font-size: inherit;\n margin: 0px;\n background-color: transparent;\n border-radius: 4px;\n padding: 1px;\n}\n@media (hover: hover) {\n .flexlayout__tab_toolbar_button:hover {\n background-color: var(--color-toolbar-button-hover);\n }\n}\n.flexlayout__tab_toolbar_sticky_buttons_container {\n display: flex;\n gap: 0.3em;\n padding-left: 5px;\n align-items: center;\n}\n.flexlayout__border {\n box-sizing: border-box;\n overflow: hidden;\n display: flex;\n font-size: var(--font-size);\n font-family: var(--font-family);\n color: var(--color-border);\n background-color: var(--color-border-background);\n}\n.flexlayout__border_tab_contents {\n box-sizing: border-box;\n overflow: hidden;\n background-color: var(--color-border-tab-content);\n}\n.flexlayout__border_leading {\n display: flex;\n}\n.flexlayout__border_top {\n border-bottom: 1px solid var(--color-border-divider-line);\n align-items: center;\n}\n.flexlayout__border_bottom {\n border-top: 1px solid var(--color-border-divider-line);\n align-items: center;\n}\n.flexlayout__border_left {\n border-right: 1px solid var(--color-border-divider-line);\n align-content: center;\n flex-direction: column;\n}\n.flexlayout__border_right {\n border-left: 1px solid var(--color-border-divider-line);\n align-content: center;\n flex-direction: column;\n}\n.flexlayout__border_inner {\n position: relative;\n box-sizing: border-box;\n align-items: center;\n display: flex;\n flex-grow: 1;\n scrollbar-width: none;\n}\n.flexlayout__border_inner::-webkit-scrollbar {\n display: none;\n}\n.flexlayout__border_inner_tab_container {\n white-space: nowrap;\n display: flex;\n padding-left: 2px;\n padding-right: 2px;\n box-sizing: border-box;\n position: absolute;\n}\n.flexlayout__border_inner_tab_container_right {\n transform-origin: top left;\n transform: rotate(90deg);\n}\n.flexlayout__border_inner_tab_container_left {\n flex-direction: row-reverse;\n transform-origin: top right;\n transform: rotate(-90deg);\n}\n.flexlayout__border_tab_divider {\n width: 4px;\n}\n.flexlayout__border_button {\n display: flex;\n gap: 0.3em;\n align-items: center;\n cursor: pointer;\n padding: 3px 0.5em;\n margin: 2px 0px;\n box-sizing: border-box;\n white-space: nowrap;\n}\n.flexlayout__border_button--selected {\n background-color: var(--color-border-tab-selected-background);\n color: var(--color-border-tab-selected);\n}\n@media (hover: hover) {\n .flexlayout__border_button:hover {\n color: var(--color-border-tab-selected);\n }\n}\n.flexlayout__border_button--unselected {\n background-color: var(--color-border-tab-unselected-background);\n color: var(--color-border-tab-unselected);\n}\n.flexlayout__border_button_leading {\n display: flex;\n}\n.flexlayout__border_button_content {\n display: flex;\n}\n.flexlayout__border_button_trailing {\n display: flex;\n border-radius: 4px;\n visibility: hidden;\n}\n@media (hover: hover) {\n .flexlayout__border_button:hover .flexlayout__border_button_trailing {\n visibility: visible;\n }\n}\n.flexlayout__border_button--selected .flexlayout__border_button_trailing {\n visibility: visible;\n}\n.flexlayout__border_toolbar {\n display: flex;\n gap: 0.3em;\n align-items: center;\n}\n.flexlayout__border_toolbar_left, .flexlayout__border_toolbar_right {\n flex-direction: column;\n padding-top: 0.5em;\n padding-bottom: 0.3em;\n}\n.flexlayout__border_toolbar_top, .flexlayout__border_toolbar_bottom {\n padding-left: 0.5em;\n padding-right: 0.3em;\n}\n.flexlayout__border_toolbar_button {\n border: none;\n outline: none;\n font-size: inherit;\n background-color: transparent;\n border-radius: 4px;\n padding: 1px;\n}\n@media (hover: hover) {\n .flexlayout__border_toolbar_button:hover {\n background-color: var(--color-toolbar-button-hover);\n }\n}\n.flexlayout__border_toolbar_button_overflow {\n display: flex;\n align-items: center;\n border: none;\n color: var(--color-overflow);\n font-size: inherit;\n background-color: transparent;\n width: 1.5em;\n}\n.flexlayout__popup_menu {\n font-size: var(--font-size);\n font-family: var(--font-family);\n}\n.flexlayout__popup_menu_item {\n padding: 2px 0.5em;\n white-space: nowrap;\n cursor: pointer;\n border-radius: 2px;\n}\n.flexlayout__popup_menu_item--selected {\n font-weight: 500;\n background-color: var(--color-tab-selected-background);\n color: var(--color-tab-selected);\n}\n@media (hover: hover) {\n .flexlayout__popup_menu_item:hover {\n background-color: var(--color-6);\n }\n}\n.flexlayout__popup_menu_container {\n box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);\n border: 1px solid var(--color-popup-border);\n color: var(--color-popup-unselected);\n background: var(--color-popup-unselected-background);\n border-radius: 3px;\n position: absolute;\n z-index: 1000;\n max-height: 50%;\n min-width: 100px;\n overflow: auto;\n padding: 2px;\n}\n.flexlayout__floating_window _body {\n height: 100%;\n}\n.flexlayout__floating_window_content {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n}\n.flexlayout__error_boundary_container {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n justify-content: center;\n}\n.flexlayout__error_boundary_content {\n display: flex;\n align-items: center;\n}\n.flexlayout__border_sizer {\n position: absolute;\n top: -30000px;\n padding-top: 6px;\n padding-bottom: 5px;\n font-size: var(--font-size);\n font-family: var(--font-family);\n}\n.flexlayout__mini_scrollbar {\n position: absolute;\n background-color: var(--color-mini-scroll-indicator);\n border-radius: 5px;\n width: var(--size-mini-scroll-indicator);\n height: var(--size-mini-scroll-indicator);\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;\n}\n.flexlayout__mini_scrollbar:hover {\n background-color: var(--color-mini-scroll-indicator-hovered);\n transition: background-color 0.3s ease-in-out;\n}\n.flexlayout__mini_scrollbar_container {\n position: relative;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n}\n@media (hover: hover) {\n .flexlayout__mini_scrollbar_container:hover .flexlayout__mini_scrollbar {\n opacity: 1;\n visibility: visible;\n }\n}\n\n/* ======================== End of Base Classes =========================== */\n/* \n dark theme overrides \n*/\n.flexlayout__tabset_header {\n box-shadow: inset 0 0 3px 0 rgba(136, 136, 136, 0.54);\n}\n.flexlayout__tabset-selected {\n background-image: linear-gradient(var(--color-background), var(--color-4));\n}\n.flexlayout__tabset-maximized {\n background-image: linear-gradient(var(--color-6), var(--color-2));\n}\n.flexlayout__tab_top {\n box-shadow: inset -2px 0px 5px rgba(0, 0, 0, 0.1);\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.flexlayout__tab_bottom {\n box-shadow: inset -2px 0px 5px rgba(0, 0, 0, 0.1);\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.flexlayout__border_button {\n box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n}\n\n/* ============================================================================\n * Rapid Design System overrides (flexlayout-react.overrides.css) — applied last.\n * ========================================================================== */\n/*\n * flexlayout-react.overrides.css — Rapid Design System theme overrides for flexlayout-react.\n *\n * THIS IS THE SINGLE SOURCE OF TRUTH for how flexlayout-react looks across every app that\n * consumes Foundation. Do NOT copy these rules into apps — import the compiled theme from\n * `@genesislcap/rapid-design-system` instead (see flexlayout-react-theme.ts).\n *\n * Build pipeline: `scripts/generate-flexlayout-theme.mjs` concatenates the vendored\n * flexlayout-react base theme (structural CSS + dark palette) FIRST, then this file LAST,\n * into `flexlayout-react-theme.generated.ts`. Equal specificity means the later sheet wins,\n * so every rule here overrides the vendored default. Run `pnpm flexlayout:generate` after\n * editing (the package build does this automatically).\n *\n * The flexlayout theme is almost entirely driven by CSS custom properties declared on\n * `.flexlayout__layout` (see the full list at the top of the vendored base theme). The\n * easiest way to re-skin is to remap those variables to rapid design-system tokens, as\n * below. For anything the variables don't cover, target the `.flexlayout__*` classes\n * directly (examples at the bottom).\n *\n * Tokens resolve from the nearest design-system provider ancestor (CSS custom properties\n * inherit across shadow boundaries), so flexlayout-react must render under a\n * `<rapid-design-system-provider>` for these to take effect.\n */\n\n/* --- Variable remap: flexlayout palette -> rapid design tokens ----------------- */\n.flexlayout__layout {\n --font-family: var(--body-font, Roboto, Arial, sans-serif);\n --font-size: var(--type-ramp-base-font-size);\n\n --color-text: var(--neutral-foreground-rest);\n --color-background: var(--fill-color);\n\n /* Greyscale ramp used across tabsets, borders and toolbars. */\n --color-1: var(--neutral-layer-1);\n --color-2: var(--neutral-layer-2);\n --color-3: var(--neutral-layer-3);\n --color-4: var(--neutral-layer-4);\n\n /* Selected tab + active splitter pick up the accent colour. */\n --color-tab-selected: var(--accent-foreground-rest);\n --color-tab-unselected: var(--neutral-foreground-hint);\n --color-tab-selected-background: var(--accent-fill-rest);\n --color-splitter-drag: var(--accent-fill-rest);\n --color-splitter-hover: var(--accent-fill-hover);\n}\n\n.flexlayout__tabset-selected,\n.flexlayout__tabset-maximized {\n background-image: none !important;\n}\n\n.flexlayout__tab_button_content {\n font-weight: 400;\n font-size: var(--type-ramp-minus-1-font-size);\n}\n\n.flexlayout__tab_button--unselected:hover {\n color: var(--neutral-foreground-rest, #e0e0e0) !important;\n background-color: var(--neutral-fill-stealth-active, rgba(255, 255, 255, 0.06)) !important;\n}\n\n.flexlayout__tab_top,\n.flexlayout__tab_bottom {\n border-radius: 0 !important;\n box-shadow: none !important;\n}\n\n.flexlayout__tab_toolbar_button-max,\n.flexlayout__tab_toolbar_button-min {\n order: 100;\n}\n\n.flexlayout__tab_button_textbox {\n box-sizing: border-box;\n width: auto;\n min-width: 8em;\n max-width: 100%;\n margin: 0;\n padding: 0 calc(var(--design-unit, 4) * 1px);\n font-family: var(--body-font);\n font-size: var(--type-ramp-base-font-size, var(--font-size));\n font-weight: 500;\n line-height: var(--type-ramp-base-line-height, normal);\n color: var(--neutral-foreground-rest);\n background-color: var(--neutral-fill-input-rest);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius, 2) * 1px);\n\n &:focus {\n outline: none;\n color: var(--neutral-foreground-rest);\n background-color: var(--neutral-fill-input-focus, var(--neutral-fill-input-rest));\n border-color: var(--accent-fill-rest);\n }\n}\n\n.flexlayout__tabset {\n border: var(--card-border, 1px solid var(--neutral-stroke-rest));\n border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n background-color: var(--rapid-layout-item-background, var(--neutral-layer-3));\n}\n\n.flexlayout__tabset_content {\n margin-top: -1px;\n}\n\n.flexlayout__tabset_tabbar_outer_top {\n border: 0;\n height: var(\n --foundation-tab-height,\n calc((((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px)\n );\n background: none;\n z-index: 1;\n}\n\n.flexlayout__tabset_container {\n border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n}\n\n.flexlayout__tabset_tabbar_inner_tab_container_top {\n border-top: 0;\n}\n\n.flexlayout__tab_button {\n border-right-style: solid;\n border-right-width: var(--tab-rest-border-width, 1px);\n border-right-color: var(--tab-rest-border-color, var(--neutral-stroke-rest));\n padding: 0 calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);\n gap: 8px;\n\n &:first-child {\n border-left-style: solid;\n border-left-width: var(--tab-rest-border-width, 1px);\n border-left-color: var(--tab-rest-border-color, var(--neutral-stroke-rest));\n }\n}\n\n.flexlayout__tab_button--selected {\n position: relative;\n color: var(--accent-foreground-rest) !important;\n background: var(--tab-active-background-color, var(--neutral-layer-card-container));\n border-style: solid;\n border-width: var(--tab-active-border-width, 0 1px 0 0);\n border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));\n .flexlayout__tab_button_content {\n font-weight: 700;\n }\n}\n\n.flexlayout__tab {\n border-radius: calc(var(--control-corner-radius) * 1.5px)\n calc(var(--control-corner-radius) * 1.5px)\n var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px))\n var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n border-top: var(--card-border, 1px solid var(--neutral-stroke-rest));\n background: var(--neutral-layer-card-container);\n\n rapid-card {\n display: flex;\n flex-direction: column;\n border: 0;\n border-radius: 0 0 var(--card-corner-radius) var(--card-corner-radius);\n grid-register {\n display: block;\n height: 100%;\n }\n }\n}\n\n.flexlayout__tabset_tab_divider {\n width: 0;\n}\n\n.flexlayout__tab_button_trailing {\n rapid-icon {\n color: var(--accent-foreground-rest);\n\n &:hover {\n color: var(--accent-foreground-hover);\n }\n }\n}\n\n.flexlayout__popup_menu_container {\n box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);\n padding: 0;\n border: 1px solid var(--neutral-stroke-rest);\n}\n\n.flexlayout__popup_menu_item {\n padding: calc((8 + var(--design-unit) * 2 * var(--density)) * 1px);\n border-bottom: 1px solid var(--neutral-stroke-divider-rest);\n\n &:hover {\n background-color: var(--neutral-fill-rest);\n color: contrast-color(var(--neutral-fill-rest));\n }\n\n &:last-child {\n border-bottom: 0;\n }\n}\n\n.flexlayout__popup_menu_item--selected {\n background-color: var(--neutral-fill-rest);\n color: contrast-color(var(--neutral-fill-rest));\n}\n\n.flexlayout__tab_toolbar_button {\n padding: 0;\n height: unset;\n width: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n > svg {\n height: 16px !important;\n width: 16px !important;\n padding: 4px;\n fill: var(--neutral-foreground-hint);\n }\n}\n\n.flexlayout__splitter_vert {\n background-color: var(--neutral-foreground-rest);\n mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDI0IEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNNDE2IDI1NmEzMiAzMiAwIDEgMSAtNjQgMCAzMiAzMiAwIDEgMSA2NCAwem0tMTYwIDBhMzIgMzIgMCAxIDEgLTY0IDAgMzIgMzIgMCAxIDEgNjQgMHpNNjQgMjg4YTMyIDMyIDAgMSAxIDAtNjQgMzIgMzIgMCAxIDEgMCA2NHoiLz48L3N2Zz4=);\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 12px;\n &:hover {\n mask-image: none;\n }\n}\n\n.flexlayout__splitter_horz {\n background-color: var(--neutral-foreground-rest);\n mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDI0IEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNNjQgMzg0YTMyIDMyIDAgMSAwIDAgNjQgMzIgMzIgMCAxIDAgMC02NHptMC0xNjBhMzIgMzIgMCAxIDAgMCA2NCAzMiAzMiAwIDEgMCAwLTY0ek05NiA5NkEzMiAzMiAwIDEgMCAzMiA5NmEzMiAzMiAwIDEgMCA2NCAweiIvPjwvc3ZnPg==);\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 4px;\n &:hover {\n mask-image: none;\n }\n}\n\n.flexlayout__layout {\n top: 8px;\n bottom: 8px;\n left: 8px;\n right: 8px;\n}"}`;const foe=()=>toe().register(eoe),poe={LightMode:1,DarkMode:.23},moe={baseLayerLuminance:rr,fillColor:kl,accentPalette:fl,neutralPalette:hl,errorColor:w5,successColor:$5,warningColor:A5,infoColor:P5,buyColor:R5,sellColor:F5,seriousNotifyColor:U5,designUnit:hr,baseHeightMultiplier:ar,density:dr,controlCornerRadius:lr,bodyFont:sr},goe="rapid-design-system-provider",voe=()=>{foe(),(()=>{if(document.querySelector(goe))return;const e=document.createElement(goe);e.setAttribute("with-defaults",""),e.style.display="block";const t=document.createDocumentFragment();for(;document.body.firstChild;)t.appendChild(document.body.firstChild);e.appendChild(t),document.body.appendChild(e)})()};if("undefined"!=typeof document){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",voe,{once:!0}):voe();const e=window;e.rapid=Object.assign(e.rapid||{},{provideDesignSystem:toe,baseComponents:eoe,registerRapidDesignSystem:foe,tokens:moe,StandardLuminance:poe,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."})}e.baseComponents=eoe,e.provideDesignSystem=toe,e.registerRapidDesignSystem=foe,Object.defineProperty(e,"__esModule",{value:!0})}({});
|
|
108
|
+
Submit </${e}-button>`)} ${He(e=>!e.isLastStep,W`<${e}-button @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,S8=W` ${e=>k8(wx(e))} `,$8=Ce` :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}`;class E8 extends qt{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=ua,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("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,c=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",c),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),s&&e.setAttribute("aria-controls",s),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(o)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=c)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const 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)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("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 void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return xx.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(xx.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 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${Mi()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${Mi()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}Nu([re({attribute:"hide-submit-button",mode:"boolean"})],E8.prototype,"hideSubmitButton",void 0),Nu([re({attribute:"hide-step-number",mode:"boolean"})],E8.prototype,"hideStepNumber",void 0),Nu([re({attribute:"allow-backward-jumps",mode:"boolean"})],E8.prototype,"allowBackwardJumps",void 0),Nu([re({attribute:"allow-forward-jumps",mode:"boolean"})],E8.prototype,"allowForwardJumps",void 0),Nu([re({attribute:"hide-all-buttons",mode:"boolean"})],E8.prototype,"hideAllButtons",void 0),Nu([re({attribute:"hide-tabs",mode:"boolean"})],E8.prototype,"hideTabs",void 0),Nu([re({attribute:"indicator-only",mode:"boolean"})],E8.prototype,"indicatorOnly",void 0),Nu([re],E8.prototype,"orientation",void 0),Nu([re],E8.prototype,"activeid",void 0),Nu([g],E8.prototype,"tabs",void 0),Nu([g],E8.prototype,"tabpanels",void 0),Nu([g],E8.prototype,"validation",void 0),Nu([g],E8.prototype,"progressValue",void 0),Nu([g],E8.prototype,"activeTabIndex",void 0),Nu([v],E8.prototype,"disabledPreviousStep",null),Nu([v],E8.prototype,"isLastStep",null),Nu([v],E8.prototype,"islastStepValid",null);const N8=void 0,A8={};E8.compose(Object.assign({baseName:"stepper",template:S8,styles:$8,shadowOptions:N8},A8));const T8=class extends vu{}.compose(Object.assign({baseName:"accordion",template:(e,t)=>Xa(),styles:(e,t)=>Ce` ${gu()} :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:bu},yu));const O8=class extends Cu{}.compose(Object.assign({baseName:"accordion-item",template:(e,t)=>zu(0,t),styles:(e,t)=>Ce` ${xu()} :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:Lu},Mu));const R8=class extends Vx{}.compose({baseName:"actions-menu",styles:(e,t)=>Ce` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${wu()} 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}.actions-vertical .actions-menu{padding: 0}.actions-vertical .menu-item{margin: 0;padding: calc(var(--design-unit) * 4px);border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}.actions-vertical .menu-item:last-child{border-bottom: none}.actions-vertical .menu-item:focus{border: calc(var(--stroke-width) * 1px) solid var(--accent-foreground-focus)}`,template:Px}),I8=Ce` ${Yx}`;const D8=class extends AC{}.compose(Object.assign({baseName:"ai-criteria-search",template:(e,t)=>Kx,styles:I8,shadowOptions:TC},OC));const F8=class extends DC{}.compose({baseName:"ai-indicator",template:IC,styles:(e,t)=>Ce` ${RC()} :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 _8(e,t){return new Ya("appearance",e,t)}const H8=["baseClass","baseName","shadowOptions","styles","template"],P8=e=>{const{definition:t}=e(),{shadowOptions:i,styles:o,template:c}=t,s=((e,t=H8)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}))(t);return{shadowOptions:i,styles:o,template:c,defaultConfig:s}},V8=Ce` :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%}`,B8=Ce` :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%}`,U8=Ce` :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)}`,j8=Ce` :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%}`,q8=Ce` :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%}`,G8=Ce` :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%}`,W8=Ce` :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%}`,Y8=Ce` :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%}`,K8=Ce` :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%}`,Z8=Ce` :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%}`,Q8=Ce` :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%}`,X8=(e,t)=>Ce` ${vL()} ${Ce` :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))}`} `.withBehaviors(_8("primary",V8),_8("secondary",B8),_8("tertiary",W8),_8("neutral",U8),_8("danger",j8),_8("success",q8),_8("warning",G8),_8("primary-outline",Y8),_8("secondary-outline",K8),_8("neutral-outline",Z8),_8("link",Q8));const J8=class extends HC{}.compose(Object.assign({baseName:"anchor",template:(e,t)=>FC(0,t),styles:(e,t)=>Ce` ${_C()} ${X8()} `.withBehaviors(...X8().behaviors),shadowOptions:PC},VC));const e5=class extends jC{}.compose(Object.assign({baseName:"anchored-region",template:(e,t)=>BC(),styles:(e,t)=>Ce` ${UC()}`,shadowOptions:qC},GC));const t5=class extends ZC{}.compose(Object.assign({baseName:"avatar",template:(e,t)=>WC(0,t),styles:(e,t)=>Ce` ${KC(e)}`,shadowOptions:QC},XC));const i5=class extends tL{}.compose(Object.assign({baseName:"badge",template:(e,t)=>JC(),styles:(e,t)=>Ce` ${eL()} :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(${hr} * 1px) calc(${hr} * 2px);border: none}`,shadowOptions:iL},oL)),o5=Ce` ${cL} :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)}`,c5=aL;const s5=class extends nL{}.compose({baseName:"banner",shadowOptions:c5,styles:o5,template:sL});const a5=class extends dL{}.compose(Object.assign({baseName:"breadcrumb",template:(e,t)=>rL(),styles:(e,t)=>Ce` ${lL()}`,shadowOptions:void 0},{}));const n5=class extends fL{}.compose(Object.assign({baseName:"breadcrumb-item",template:(e,t)=>hL(0,t),styles:(e,t)=>Ce` ${uL()} .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:pL},mL));const r5=class extends bL{}.compose(Object.assign({baseName:"button",template:(e,t)=>gL(0,t),styles:X8,shadowOptions:yL},zL));const l5=class extends LL{}.compose(Object.assign({baseName:"calendar",template:(e,t)=>CL(e,t),styles:()=>Ce` ${xL()}`,shadowOptions:ML},wL));const d5=class extends $L{}.compose(Object.assign({baseName:"card",template:(e,t)=>kL(),styles:(e,t)=>Ce` ${SL()} :host{background: var(--neutral-layer-card-container);color: ${wd};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:EL},NL)),h5=Ce` ${qL} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,u5=W` ${GL("rapid")} `;const f5=KL,p5=YL,m5=class extends ZL{}.compose(Object.assign({baseName:"categorized-multiselect",template:u5,styles:h5,shadowOptions:p5},f5));const g5=class extends JL{}.compose(Object.assign({baseName:"checkbox",template:(e,t)=>QL(0,t),styles:(e,t)=>Ce` ${XL()} :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.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)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:eM},tM));const v5=class extends aM{}.compose(Object.assign({baseName:"combobox",template:(e,t)=>oM(0,t),styles:(e,t)=>Ce` ${iM(e)} :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(${hr} * 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:nM},rM));const b5=class extends hM{}.compose({baseName:"connection-indicator",template:dM,styles:(e,t)=>Ce` ${lM()} :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)}`});P8(uM);P8(fM);P8(pM);const y5=W` ${vM("rapid")} `;const z5=class extends YM{}.compose(Object.assign({baseName:"date-picker",template:y5,styles:()=>Ce` ${mM} :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)}`,shadowOptions:void 0},{}));var x5;!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"}(x5||(x5={}));const{create:C5}=vc,L5=Fn(x5.error),M5=Vn.create(L5.r,L5.g,L5.b),w5=C5("error-color").withDefault(M5),k5=Fn(x5.success),S5=Vn.create(k5.r,k5.g,k5.b),$5=C5("success-color").withDefault(S5),E5=Fn(x5.warning),N5=Vn.create(E5.r,E5.g,E5.b),A5=C5("warning-color").withDefault(N5),T5=Fn(x5.buy),O5=Vn.create(T5.r,T5.g,T5.b),R5=C5("buy-color").withDefault(O5),I5=Fn(x5.sell),D5=Vn.create(I5.r,I5.g,I5.b),F5=C5("sell-color").withDefault(D5),_5=Fn(x5.info),H5=Vn.create(_5.r,_5.g,_5.b),P5=C5("info-color").withDefault(H5),V5=Fn(x5.error),B5=Vn.create(V5.r,V5.g,V5.b),U5=C5("serious-notify-color").withDefault(B5),{create:j5}=vc,q5=e=>vc.create({name:e,cssCustomPropertyName:null}),G5=Vn.create(1,1,1),W5=Vn.create(0,0,0);function Y5(e,t){const i=e,o=q5(`${i}-palette`).withDefault(e=>Wn.from(t.getValueFor(e))),c=q5(`${i}-fill-rest-delta`).withDefault(0),s=q5(`${i}-fill-hover-delta`).withDefault(4),a=q5(`${i}-fill-active-delta`).withDefault(-5),n=q5(`${i}-fill-focus-delta`).withDefault(0),r=q5(`${i}-foreground-rest-delta`).withDefault(0),l=q5(`${i}-foreground-hover-delta`).withDefault(6),d=q5(`${i}-foreground-active-delta`).withDefault(-4),h=q5(`${i}-foreground-focus-delta`).withDefault(0),u=q5(`${i}-fill-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,o,c,s,a,n,r){const l=e.source,d=t.closestIndexOf(i)>=Math.max(a,n,r)?-1:1,h=e.closestIndexOf(l),u=h+-1*d*o,f=u+d*c,p=u+d*s;return{rest:e.get(u),hover:e.get(h),active:e.get(f),focus:e.get(p)}}(o.getValueFor(e),hl.getValueFor(e),null!=t?t:kl.getValueFor(e),s.getValueFor(e),a.getValueFor(e),n.getValueFor(e),Br.getValueFor(e),Ur.getValueFor(e),jr.getValueFor(e))}),f=j5(`${i}-fill-rest`).withDefault(e=>u.getValueFor(e).evaluate(e).rest),p=j5(`${i}-fill-hover`).withDefault(e=>u.getValueFor(e).evaluate(e).hover),m=j5(`${i}-fill-active`).withDefault(e=>u.getValueFor(e).evaluate(e).active),g=j5(`${i}-fill-focus`).withDefault(e=>u.getValueFor(e).evaluate(e).focus),v=e=>(t,i)=>function(e,t){return e.contrast(G5)>=t?G5:W5}(null!=i?i:f.getValueFor(t),e),b=q5(`foreground-on-${i}-recipe`).withDefault({evaluate:(e,t)=>v(4.5)(e,t)}),y=j5(`foreground-on-${i}-rest`).withDefault(e=>b.getValueFor(e).evaluate(e,f.getValueFor(e))),z=j5(`foreground-on-${i}-hover`).withDefault(e=>b.getValueFor(e).evaluate(e,p.getValueFor(e))),x=j5(`foreground-on-${i}-active`).withDefault(e=>b.getValueFor(e).evaluate(e,m.getValueFor(e))),C=j5(`foreground-on-${i}-focus`).withDefault(e=>b.getValueFor(e).evaluate(e,g.getValueFor(e))),L=q5(`foreground-on-${i}-large-recipe`).withDefault({evaluate:(e,t)=>v(7)(e,t)}),M=j5(`foreground-on-${i}-rest-large`).withDefault(e=>L.getValueFor(e).evaluate(e,f.getValueFor(e))),w=j5(`foreground-on-${i}-hover-large`).withDefault(e=>L.getValueFor(e).evaluate(e,p.getValueFor(e))),k=j5(`foreground-on-${i}-active-large`).withDefault(e=>L.getValueFor(e).evaluate(e,m.getValueFor(e))),S=j5(`foreground-on-${i}-focus-large`).withDefault(e=>L.getValueFor(e).evaluate(e,g.getValueFor(e))),$=q5(`${i}-foreground-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,o,c,s,a){const n=e.source,r=e.closestIndexOf(n),l=qn(t)?-1:1,d=r+(1===l?Math.min(o,c):Math.max(l*o,l*c)),h=e.colorContrast(t,i,d,l),u=e.closestIndexOf(h),f=u+l*Math.abs(o-c),p=1===l?o<c:l*o>l*c,m=p?u:f,g=p?f:u;return{rest:e.get(m),hover:e.get(g),active:e.get(m+l*s),focus:e.get(m+l*a)}}(o.getValueFor(e),null!=t?t:kl.getValueFor(e),4.5,r.getValueFor(e),l.getValueFor(e),d.getValueFor(e),h.getValueFor(e))}),E=j5(`${i}-foreground-rest`).withDefault(e=>$.getValueFor(e).evaluate(e).rest),N=j5(`${i}-foreground-hover`).withDefault(e=>$.getValueFor(e).evaluate(e).hover),A=j5(`${i}-foreground-active`).withDefault(e=>$.getValueFor(e).evaluate(e).active),T=j5(`${i}-foreground-focus`).withDefault(e=>$.getValueFor(e).evaluate(e).focus);return{palette:o,fillRestDelta:c,fillHoverDelta:s,fillActiveDelta:a,fillFocusDelta:n,foregroundRestDelta:r,foregroundHoverDelta:l,foregroundActiveDelta:d,foregroundFocusDelta:h,fillRecipe:u,fillRest:f,fillHover:p,fillActive:m,fillFocus:g,foregroundOnRecipe:b,foregroundOnRest:y,foregroundOnHover:z,foregroundOnActive:x,foregroundOnFocus:C,foregroundOnLargeRecipe:L,foregroundOnRestLarge:M,foregroundOnHoverLarge:w,foregroundOnActiveLarge:k,foregroundOnFocusLarge:S,foregroundRecipe:$,foregroundRest:E,foregroundHover:N,foregroundActive:A,foregroundFocus:T}}const K5=Fn(x5.green),Z5=Vn.create(K5.r,K5.g,K5.b),Q5=vc.create("secondary-color").withDefault(Z5),{palette:X5,fillRestDelta:J5,fillHoverDelta:e7,fillActiveDelta:t7,fillFocusDelta:i7,foregroundRestDelta:o7,foregroundHoverDelta:c7,foregroundActiveDelta:s7,foregroundFocusDelta:a7,fillRecipe:n7,fillRest:r7,fillHover:l7,fillActive:d7,fillFocus:h7,foregroundOnRecipe:u7,foregroundOnRest:f7,foregroundOnHover:p7,foregroundOnActive:m7,foregroundOnFocus:g7,foregroundOnLargeRecipe:v7,foregroundOnRestLarge:b7,foregroundOnHoverLarge:y7,foregroundOnActiveLarge:z7,foregroundOnFocusLarge:x7,foregroundRecipe:C7,foregroundRest:L7,foregroundHover:M7,foregroundActive:w7,foregroundFocus:k7}=Y5("secondary",Q5),S7=Fn(x5.tertiary),$7=Vn.create(S7.r,S7.g,S7.b),E7=vc.create("tertiary-color").withDefault($7),{palette:N7,fillRestDelta:A7,fillHoverDelta:T7,fillActiveDelta:O7,fillFocusDelta:R7,foregroundRestDelta:I7,foregroundHoverDelta:D7,foregroundActiveDelta:F7,foregroundFocusDelta:_7,fillRecipe:H7,fillRest:P7,fillHover:V7,fillActive:B7,fillFocus:U7,foregroundOnRecipe:j7,foregroundOnRest:q7,foregroundOnHover:G7,foregroundOnActive:W7,foregroundOnFocus:Y7,foregroundOnLargeRecipe:K7,foregroundOnRestLarge:Z7,foregroundOnHoverLarge:Q7,foregroundOnActiveLarge:X7,foregroundOnFocusLarge:J7,foregroundRecipe:e9,foregroundRest:t9,foregroundHover:i9,foregroundActive:o9,foregroundFocus:c9}=Y5("tertiary",E7),{palette:s9,fillRestDelta:a9,fillHoverDelta:n9,fillActiveDelta:r9,fillFocusDelta:l9,foregroundRestDelta:d9,foregroundHoverDelta:h9,foregroundActiveDelta:u9,foregroundFocusDelta:f9,fillRecipe:p9,fillRest:m9,fillHover:g9,fillActive:v9,fillFocus:b9,foregroundOnRecipe:y9,foregroundOnRest:z9,foregroundOnHover:x9,foregroundOnActive:C9,foregroundOnFocus:L9,foregroundOnLargeRecipe:M9,foregroundOnRestLarge:w9,foregroundOnHoverLarge:k9,foregroundOnActiveLarge:S9,foregroundOnFocusLarge:$9,foregroundRecipe:E9,foregroundRest:N9,foregroundHover:A9,foregroundActive:T9,foregroundFocus:O9}=Y5("error",w5),{palette:R9,fillRestDelta:I9,fillHoverDelta:D9,fillActiveDelta:F9,fillFocusDelta:_9,foregroundRestDelta:H9,foregroundHoverDelta:P9,foregroundActiveDelta:V9,foregroundFocusDelta:B9,fillRecipe:U9,fillRest:j9,fillHover:q9,fillActive:G9,fillFocus:W9,foregroundOnRecipe:Y9,foregroundOnRest:K9,foregroundOnHover:Z9,foregroundOnActive:Q9,foregroundOnFocus:X9,foregroundOnLargeRecipe:J9,foregroundOnRestLarge:eee,foregroundOnHoverLarge:tee,foregroundOnActiveLarge:iee,foregroundOnFocusLarge:oee,foregroundRecipe:cee,foregroundRest:see,foregroundHover:aee,foregroundActive:nee,foregroundFocus:ree}=Y5("success",$5),{palette:lee,fillRestDelta:dee,fillHoverDelta:hee,fillActiveDelta:uee,fillFocusDelta:fee,foregroundRestDelta:pee,foregroundHoverDelta:mee,foregroundActiveDelta:gee,foregroundFocusDelta:vee,fillRecipe:bee,fillRest:yee,fillHover:zee,fillActive:xee,fillFocus:Cee,foregroundOnRecipe:Lee,foregroundOnRest:Mee,foregroundOnHover:wee,foregroundOnActive:kee,foregroundOnFocus:See,foregroundOnLargeRecipe:$ee,foregroundOnRestLarge:Eee,foregroundOnHoverLarge:Nee,foregroundOnActiveLarge:Aee,foregroundOnFocusLarge:Tee,foregroundRecipe:Oee,foregroundRest:Ree,foregroundHover:Iee,foregroundActive:Dee,foregroundFocus:Fee}=Y5("warning",A5);var _ee=Object.freeze({__proto__:null,accentFillActive:Al,accentFillActiveDelta:Dr,accentFillFocus:Tl,accentFillFocusDelta:Fr,accentFillHover:Nl,accentFillHoverDelta:Ir,accentFillRest:El,accentFillRestDelta:Rr,accentForegroundActive:Yl,accentForegroundActiveDelta:Pr,accentForegroundFocus:Kl,accentForegroundFocusDelta:Vr,accentForegroundHover:Wl,accentForegroundHoverDelta:Hr,accentForegroundRest:Gl,accentForegroundRestDelta:_r,accentPalette:fl,baseHeightMultiplier:ar,baseLayerLuminance:rr,bodyFont:sr,controlCornerRadius:lr,density:dr,designUnit:hr,direction:ur,disabledOpacity:fr,fillColor:kl,focusStrokeInner:xd,focusStrokeOuter:yd,focusStrokeWidth:mr,foregroundOnAccentActive:Fl,foregroundOnAccentActiveLarge:Bl,foregroundOnAccentFocus:_l,foregroundOnAccentFocusLarge:Ul,foregroundOnAccentHover:Dl,foregroundOnAccentHoverLarge:Vl,foregroundOnAccentRest:Il,foregroundOnAccentRestLarge:Pl,neutralFillActive:Jl,neutralFillActiveDelta:jr,neutralFillFocus:ed,neutralFillFocusDelta:qr,neutralFillHover:Xl,neutralFillHoverDelta:Ur,neutralFillInputActive:cd,neutralFillInputActiveDelta:Yr,neutralFillInputFocus:sd,neutralFillInputFocusDelta:Kr,neutralFillInputHover:od,neutralFillInputHoverDelta:Wr,neutralFillInputRest:id,neutralFillInputRestDelta:Gr,neutralFillLayerRest:vd,neutralFillLayerRestDelta:cl,neutralFillRest:Ql,neutralFillRestDelta:Br,neutralFillStealthActive:ld,neutralFillStealthActiveDelta:Xr,neutralFillStealthFocus:dd,neutralFillStealthFocusDelta:Jr,neutralFillStealthHover:rd,neutralFillStealthHoverDelta:Qr,neutralFillStealthRest:nd,neutralFillStealthRestDelta:Zr,neutralFillStrongActive:pd,neutralFillStrongActiveDelta:il,neutralFillStrongFocus:md,neutralFillStrongFocusDelta:ol,neutralFillStrongHover:fd,neutralFillStrongHoverDelta:tl,neutralFillStrongRest:ud,neutralFillStrongRestDelta:el,neutralForegroundHint:Ld,neutralForegroundRest:wd,neutralLayer1:yl,neutralLayer2:xl,neutralLayer3:Ll,neutralLayer4:wl,neutralLayerCardContainer:ml,neutralLayerFloating:vl,neutralPalette:hl,neutralStrokeActive:Ed,neutralStrokeActiveDelta:nl,neutralStrokeDividerRest:Td,neutralStrokeDividerRestDelta:ll,neutralStrokeFocus:Nd,neutralStrokeFocusDelta:rl,neutralStrokeHover:$d,neutralStrokeHoverDelta:al,neutralStrokeRest:Sd,neutralStrokeRestDelta:sl,strokeWidth:pr,typeRampBaseFontSize:gr,typeRampBaseLineHeight:vr,typeRampMinus1FontSize:br,typeRampMinus1LineHeight:yr,typeRampMinus2FontSize:zr,typeRampMinus2LineHeight:xr,typeRampPlus1FontSize:Cr,typeRampPlus1LineHeight:Lr,typeRampPlus2FontSize:Mr,typeRampPlus2LineHeight:wr,typeRampPlus3FontSize:kr,typeRampPlus3LineHeight:Sr,typeRampPlus4FontSize:$r,typeRampPlus4LineHeight:Er,typeRampPlus5FontSize:Nr,typeRampPlus5LineHeight:Ar,typeRampPlus6FontSize:Tr,typeRampPlus6LineHeight:Or,defaultErrorColor:M5,errorColor:w5,defaultSuccessColor:S5,successColor:$5,defaultWarningColor:N5,warningColor:A5,defaultBuyColor:O5,buyColor:R5,defaultSellColor:D5,sellColor:F5,defaultInfoColor:H5,infoColor:P5,defaultSeriousNotifyColor:B5,seriousNotifyColor:U5,defaultSecondaryColor:Z5,secondaryColor:Q5,secondaryPalette:X5,secondaryFillRestDelta:J5,secondaryFillHoverDelta:e7,secondaryFillActiveDelta:t7,secondaryFillFocusDelta:i7,secondaryForegroundRestDelta:o7,secondaryForegroundHoverDelta:c7,secondaryForegroundActiveDelta:s7,secondaryForegroundFocusDelta:a7,secondaryFillRecipe:n7,secondaryFillRest:r7,secondaryFillHover:l7,secondaryFillActive:d7,secondaryFillFocus:h7,foregroundOnSecondaryRecipe:u7,foregroundOnSecondaryRest:f7,foregroundOnSecondaryHover:p7,foregroundOnSecondaryActive:m7,foregroundOnSecondaryFocus:g7,foregroundOnSecondaryLargeRecipe:v7,foregroundOnSecondaryRestLarge:b7,foregroundOnSecondaryHoverLarge:y7,foregroundOnSecondaryActiveLarge:z7,foregroundOnSecondaryFocusLarge:x7,secondaryForegroundRecipe:C7,secondaryForegroundRest:L7,secondaryForegroundHover:M7,secondaryForegroundActive:w7,secondaryForegroundFocus:k7,defaultTertiaryColor:$7,tertiaryColor:E7,tertiaryPalette:N7,tertiaryFillRestDelta:A7,tertiaryFillHoverDelta:T7,tertiaryFillActiveDelta:O7,tertiaryFillFocusDelta:R7,tertiaryForegroundRestDelta:I7,tertiaryForegroundHoverDelta:D7,tertiaryForegroundActiveDelta:F7,tertiaryForegroundFocusDelta:_7,tertiaryFillRecipe:H7,tertiaryFillRest:P7,tertiaryFillHover:V7,tertiaryFillActive:B7,tertiaryFillFocus:U7,foregroundOnTertiaryRecipe:j7,foregroundOnTertiaryRest:q7,foregroundOnTertiaryHover:G7,foregroundOnTertiaryActive:W7,foregroundOnTertiaryFocus:Y7,foregroundOnTertiaryLargeRecipe:K7,foregroundOnTertiaryRestLarge:Z7,foregroundOnTertiaryHoverLarge:Q7,foregroundOnTertiaryActiveLarge:X7,foregroundOnTertiaryFocusLarge:J7,tertiaryForegroundRecipe:e9,tertiaryForegroundRest:t9,tertiaryForegroundHover:i9,tertiaryForegroundActive:o9,tertiaryForegroundFocus:c9,errorPalette:s9,errorFillRestDelta:a9,errorFillHoverDelta:n9,errorFillActiveDelta:r9,errorFillFocusDelta:l9,errorForegroundRestDelta:d9,errorForegroundHoverDelta:h9,errorForegroundActiveDelta:u9,errorForegroundFocusDelta:f9,errorFillRecipe:p9,errorFillRest:m9,errorFillHover:g9,errorFillActive:v9,errorFillFocus:b9,foregroundOnErrorRecipe:y9,foregroundOnErrorRest:z9,foregroundOnErrorHover:x9,foregroundOnErrorActive:C9,foregroundOnErrorFocus:L9,foregroundOnErrorLargeRecipe:M9,foregroundOnErrorRestLarge:w9,foregroundOnErrorHoverLarge:k9,foregroundOnErrorActiveLarge:S9,foregroundOnErrorFocusLarge:$9,errorForegroundRecipe:E9,errorForegroundRest:N9,errorForegroundHover:A9,errorForegroundActive:T9,errorForegroundFocus:O9,successPalette:R9,successFillRestDelta:I9,successFillHoverDelta:D9,successFillActiveDelta:F9,successFillFocusDelta:_9,successForegroundRestDelta:H9,successForegroundHoverDelta:P9,successForegroundActiveDelta:V9,successForegroundFocusDelta:B9,successFillRecipe:U9,successFillRest:j9,successFillHover:q9,successFillActive:G9,successFillFocus:W9,foregroundOnSuccessRecipe:Y9,foregroundOnSuccessRest:K9,foregroundOnSuccessHover:Z9,foregroundOnSuccessActive:Q9,foregroundOnSuccessFocus:X9,foregroundOnSuccessLargeRecipe:J9,foregroundOnSuccessRestLarge:eee,foregroundOnSuccessHoverLarge:tee,foregroundOnSuccessActiveLarge:iee,foregroundOnSuccessFocusLarge:oee,successForegroundRecipe:cee,successForegroundRest:see,successForegroundHover:aee,successForegroundActive:nee,successForegroundFocus:ree,warningPalette:lee,warningFillRestDelta:dee,warningFillHoverDelta:hee,warningFillActiveDelta:uee,warningFillFocusDelta:fee,warningForegroundRestDelta:pee,warningForegroundHoverDelta:mee,warningForegroundActiveDelta:gee,warningForegroundFocusDelta:vee,warningFillRecipe:bee,warningFillRest:yee,warningFillHover:zee,warningFillActive:xee,warningFillFocus:Cee,foregroundOnWarningRecipe:Lee,foregroundOnWarningRest:Mee,foregroundOnWarningHover:wee,foregroundOnWarningActive:kee,foregroundOnWarningFocus:See,foregroundOnWarningLargeRecipe:$ee,foregroundOnWarningRestLarge:Eee,foregroundOnWarningHoverLarge:Nee,foregroundOnWarningActiveLarge:Aee,foregroundOnWarningFocusLarge:Tee,warningForegroundRecipe:Oee,warningForegroundRest:Ree,warningForegroundHover:Iee,warningForegroundActive:Dee,warningForegroundFocus:Fee});const Hee=JM(x5.primary),Pee=JM(x5.neutral),Vee=JM(x5.green),Bee=JM(x5.tertiary),Uee=JM(x5.error),jee=JM(x5.success),qee=JM(x5.warning),Gee=tr,Wee=zi.ltr,Yee='"Segoe UI", Arial, Helvetica, sans-serif',Kee="14px",Zee="20px",Qee={design_tokens:{color:{accent:{$value:Hee.source.toColorString(),$type:"color"},neutral:{$value:Pee.source.toColorString(),$type:"color"},secondary:{$value:Vee.source.toColorString(),$type:"color"},tertiary:{$value:Bee.source.toColorString(),$type:"color"},error:{$value:Uee.source.toColorString(),$type:"color"},success:{$value:jee.source.toColorString(),$type:"color"},warning:{$value:qee.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:Yee,$type:"fontFamily"}},typography:{baseFontSize:{$value:Kee,$type:"dimension"},baseLineHeight:{$value:Zee,$type:"dimension"}},mode:{luminance:{$value:Gee,$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 Xee=Object.freeze({__proto__:null,accentPaletteValue:Hee,neutralPaletteValue:Pee,secondaryPaletteValue:Vee,tertiaryPaletteValue:Bee,errorPaletteValue:Uee,successPaletteValue:jee,warningPaletteValue:qee,baseLayerLuminanceValue:Gee,accentFillRestDeltaValue:0,accentFillHoverDeltaValue:4,accentFillActiveDeltaValue:-5,accentFillFocusDeltaValue:0,accentForegroundRestDeltaValue:0,accentForegroundHoverDeltaValue:6,accentForegroundActiveDeltaValue:-4,accentForegroundFocusDeltaValue:0,neutralFillRestDeltaValue:7,neutralFillHoverDeltaValue:10,neutralFillActiveDeltaValue:5,neutralFillFocusDeltaValue:0,neutralFillInputRestDeltaValue:0,neutralFillInputHoverDeltaValue:5,neutralFillInputActiveDeltaValue:0,neutralFillInputFocusDeltaValue:10,neutralFillStealthRestDeltaValue:0,neutralFillStealthHoverDeltaValue:5,neutralFillStealthActiveDeltaValue:3,neutralFillStealthFocusDeltaValue:0,neutralFillStrongRestDeltaValue:0,neutralFillStrongHoverDeltaValue:8,neutralFillStrongActiveDeltaValue:-5,neutralFillStrongFocusDeltaValue:0,neutralFillLayerRestDeltaValue:3,neutralStrokeRestDeltaValue:25,neutralStrokeHoverDeltaValue:40,neutralStrokeActiveDeltaValue:16,neutralStrokeFocusDeltaValue:25,neutralStrokeDividerRestDeltaValue:8,designTokens:Qee,prefix:"rapid",directionValue:Wee,disabledOpacityValue:.3,strokeWidthValue:1,focusStrokeWidthValue:2,baseHeightMultiplierValue:10,controlCornerRadiusValue:4,densityValue:0,designUnitValue:4,bodyFontValue:Yee,typeRampBaseFontSizeValue:Kee,typeRampBaseLineHeightValue:Zee,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"});const Jee=class extends yh{constructor(){super(),ZM(_ee,Xee,this)}}.compose({baseName:"design-system-provider",template:W`<slot></slot>`}),ete=Ce` ${KK} :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: ${wd}}::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)}}`,tte=gZ,ite=QK,ote=mZ;const cte=class extends bZ{}.compose(Object.assign({baseName:"dialog",shadowOptions:ote,styles:ete,template:ite},tte));const ste=class extends xZ{}.compose(Object.assign({baseName:"disclosure",template:(e,t)=>yZ(),styles:(e,t)=>Ce` ${zZ()} :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:mZ},CZ));const ate=class extends wZ{}.compose(Object.assign({baseName:"divider",template:(e,t)=>LZ(),styles:(e,t)=>Ce` ${MZ()}`,shadowOptions:kZ},SZ));const nte=class extends AZ{}.compose({baseName:"dropdown-menu",styles:(e,t)=>Ce` ${$Z("rapid")} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px) 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) calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:NZ}),rte=Ce` ${TZ}`;const lte=class extends VZ{}.compose({baseName:"environment-indicator",styles:rte,template:OZ});P8(iQ);const dte=lQ,hte=hQ.compose({baseName:"file-reader",styles:dte,template:dQ}),ute=Ce` ${uQ} ::-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)}`,fte=W` ${fQ("rapid")} `,pte=xQ,mte=zQ;const gte=class extends yQ{}.compose(Object.assign({baseName:"file-upload",shadowOptions:mte,styles:ute,template:fte},pte)),vte=W` ${SQ("rapid")} `;const bte=class extends NQ{}.compose({baseName:"filter",template:vte,styles:(e,t)=>Ce` ${CQ} .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}`}),yte=W` ${OQ("rapid")} `;const zte=class extends IQ{}.compose({baseName:"filter-bar",template:yte,styles:(e,t)=>Ce` ${AQ()} .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)}`});P8(PQ);const xte=class extends UQ{}.compose(Object.assign({baseName:"flipper",template:(e,t)=>VQ(0,t),styles:(e,t)=>Ce` ${BQ()} :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:jQ},qQ)),Cte=Ce` ${GQ} 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)}`,Lte=W` ${WQ("rapid")} `,Mte=QQ,wte=ZQ;const kte=class extends KQ{}.compose(Object.assign({baseName:"flyout",shadowOptions:wte,styles:Cte,template:Lte},Mte));P8(cX);P8(nX);const Ste={nextFlipper:W`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:W`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`},$te=class extends dX{}.compose(Object.assign({baseName:"horizontal-scroll",template:(e,t)=>rX(e,t),styles:(e,t)=>Ce` ${lX()}`,shadowOptions:hX},Ste)),Ete=W` ${pX("rapid")} `;const Nte=vX,Ate=gX,Tte=class extends yX{}.compose(Object.assign({baseName:"icon",template:Ete,styles:(e,t)=>Ce` ${fX()}`,shadowOptions:Ate},Nte));const Ote=class extends CX{}.compose(Object.assign({baseName:"listbox",template:(e,t)=>zX(),styles:(e,t)=>Ce` ${xX(e)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:LX},MX));const Rte=class extends SX{}.compose(Object.assign({baseName:"option",template:(e,t)=>wX(0,t),styles:(e,t)=>Ce` ${kX()} :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:$X},EX));const Ite=class extends TX{}.compose(Object.assign({baseName:"menu",template:(e,t)=>NX(),styles:(e,t)=>Ce` ${AX()} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${rd}, transparent 15%);padding: 0}`,shadowOptions:OX},RX)),Dte=_X;const Fte=class extends FX{}.compose(Object.assign({baseName:"menu-item",template:(e,t)=>IX(e,t),styles:(e,t)=>Ce` ${DX()} :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, ${rd}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${rd}, 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: ${rd} color: ${wd} */`,shadowOptions:Dte},HX)),_te=Ce` ${ete}`,Hte=UX,Pte=VX,Vte=BX;const Bte=class extends jX{}.compose(Object.assign({baseName:"modal",shadowOptions:Vte,styles:_te,template:Pte},Hte)),Ute=Ce` ${DL} .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}`,jte=W` ${PL("rapid")} `;const qte=UL,Gte=BL,Wte=class extends jL{}.compose(Object.assign({baseName:"multiselect",template:jte,styles:Ute,shadowOptions:Gte},qte));const Yte=class extends h8{}.compose({baseName:"notification-listener",template:d8,shadowOptions:{mode:"open",delegatesFocus:!0}});const Kte=lJ,Zte=qX,Qte=rJ,Xte=class extends nJ{}.compose(Object.assign({baseName:"number-field",template:Zte,styles:(e,t)=>Ce` :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%}${rQ}`,shadowOptions:Qte},Kte));const Jte=class extends uJ{}.compose({baseName:"optgroup",template:(e,t)=>hJ(),styles:(e,t)=>Ce` ${dJ()}`});const eie=class extends CJ{}.compose(Object.assign({baseName:"system-health-overlay",template:LJ,styles:MJ,shadowOptions:wJ},kJ));const tie=class extends mJ{}.compose(Object.assign({baseName:"progress",template:(e,t)=>fJ(0,t),styles:(e,t)=>Ce` ${pJ()}`,shadowOptions:gJ},vJ));const iie=class extends Y1{}.compose(Object.assign({baseName:"progress-ring",template:(e,t)=>G1(0,t),styles:(e,t)=>Ce` ${W1()}`,shadowOptions:K1},Z1));const oie=class extends J1{}.compose(Object.assign({baseName:"radio",template:(e,t)=>Q1(0,t),styles:(e,t)=>Ce` ${X1()} :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:e2},t2));const cie=class extends c2{}.compose(Object.assign({baseName:"radio-group",template:(e,t)=>i2(),styles:(e,t)=>Ce` ${o2()}`,shadowOptions:s2},a2)),sie=Ce` ${n2} :host{font-family: var(--body-font)}`,aie=W` ${r2("rapid")} `;const nie=class extends d2{}.compose(Object.assign({baseName:"scheduler",template:aie,styles:sie,shadowOptions:h2},u2)),rie=Ce` ${A2} :host{font-family: var(--body-font)}`,lie=W` ${Q2("rapid")} `;const die=class extends J2{}.compose(Object.assign({baseName:"scheduler-cron-builder",template:lie,styles:rie,shadowOptions:e3},t3)),hie=Ce` ${i3} :host{font-family: var(--body-font)}`,uie=W` ${o3("rapid")} `;const fie=class extends s3{}.compose(Object.assign({baseName:"scheduler-timezone",template:uie,styles:hie,shadowOptions:a3},n3)),pie=Ce` ${r3}`,mie=W` ${l3("rapid")} `;const gie=class extends h3{}.compose(Object.assign({baseName:"search-bar",template:mie,styles:pie,shadowOptions:u3},f3));const vie=class extends v3{}.compose(Object.assign({baseName:"search-bar-combobox",template:(e,t)=>m3(0,t),styles:(e,t)=>Ce` ${p3(e)} :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(${hr} * 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:b3},y3));const bie=class extends S3{}.compose(Object.assign({baseName:"section-navigator",template:x3,styles:(e,t)=>z3,shadowOptions:$3},E3));const yie=class extends T3{}.compose(Object.assign({baseName:"segmented-control",template:(e,t)=>N3(),styles:(e,t)=>Ce` ${A3()} :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},{}));const zie=class extends J1{}.compose(Object.assign({baseName:"segmented-item",template:(e,t)=>O3(),styles:(e,t)=>Ce` ${R3()} :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},{}));const xie=class extends F3{}.compose(Object.assign({baseName:"select",template:(e,t)=>I3(0,t),styles:(e,t)=>Ce` ${D3(e)} :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(${hr} * 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:_3},H3));const Cie=class extends B3{}.compose(Object.assign({baseName:"skeleton",template:(e,t)=>P3(),styles:(e,t)=>Ce` ${V3()} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:U3},j3));const Lie=class extends W3{}.compose(Object.assign({baseName:"slider",template:(e,t)=>q3(0,t),styles:(e,t)=>Ce` ${G3()} .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, ${El}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${El}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${El}, 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:Y3},K3));const Mie=class extends X3{}.compose(Object.assign({baseName:"slider-label",template:(e,t)=>Z3(),styles:(e,t)=>Ce` ${Q3()} .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:J3},e4)),wie=Ce` ${c4} .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)}`,kie=W` ${s4("rapid")} `,Sie=n4;const $ie=class extends r4{}.compose({baseName:"snackbar",shadowOptions:Sie,styles:wie,template:kie});const Eie=class extends h4{}.compose({baseName:"stacking-icons",template:d4,styles:(e,t)=>Ce` ${l4()}`});const Nie=class extends p4{}.compose({baseName:"status-pill",template:f4,styles:u4}),Aie=Ce` ${$8} :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)}`,Tie=W` ${k8("rapid")} `;const Oie=class extends E8{}.compose(Object.assign({baseName:"stepper",template:Tie,styles:Aie,shadowOptions:N8},A8)),Rie=W` ${m4("rapid")} `;const Iie=class extends b4{}.compose(Object.assign({baseName:"stepper-tab",template:Rie,styles:(e,t)=>Ce` ${v4()} 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)}`,shadowOptions:y4},z4));const Die=class extends C4{}.compose(Object.assign({baseName:"stepper-tab-panel",template:(e,t)=>x4(),shadowOptions:L4},M4)),Fie={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};const _ie=class extends S4{}.compose(Object.assign({baseName:"switch",template:(e,t)=>w4(0,t),styles:(e,t)=>Ce` ${k4()} :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:$4},Fie));const Hie=class extends T4{}.compose(Object.assign({baseName:"tab",template:(e,t)=>N4(),styles:(e,t)=>Ce` ${A4()} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px) 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}`,shadowOptions:O4},R4));const Pie=class extends F4{}.compose(Object.assign({baseName:"tab-panel",template:(e,t)=>I4(),styles:(e,t)=>Ce` ${D4()} :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:_4},H4));const Vie=class extends B4{}.compose(Object.assign({baseName:"tabs",template:(e,t)=>P4(0,t),styles:(e,t)=>Ce` ${V4()} :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:U4},j4));const Bie=class extends W4{}.compose(Object.assign({baseName:"text-area",template:(e,t)=>q4(),styles:(e,t)=>Ce` ${G4()} :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:Y4},K4));const Uie=class extends X4{}.compose(Object.assign({baseName:"text-field",template:(e,t)=>Z4(0,t),styles:(e,t)=>Ce` ${Q4()} :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:J4},e0)),jie=Ce` ${t0} .toast{background-color: ${yl};border-radius: calc(var(--control-corner-radius) * 2px) 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)}`,qie=s0,Gie=c0;const Wie=class extends a0{}.compose(Object.assign({baseName:"toast",shadowOptions:Gie,styles:jie,template:o0},qie));const Yie=class extends l0{}.compose(Object.assign({baseName:"toolbar",template:(e,t)=>n0(0,t),styles:(e,t)=>Ce` ${r0()} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:d0},h0));const Kie=class extends p0{}.compose(Object.assign({baseName:"tooltip",template:(e,t)=>u0(e),styles:(e,t)=>Ce` ${f0(e)} :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:m0},g0));const Zie={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>\n </svg>'},Qie=class extends y0{}.compose(Object.assign({baseName:"tree-item",template:(e,t)=>v0(0,t),styles:(e,t)=>Ce` ${b0(e)} :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:z0},Zie));const Xie=class extends M0{}.compose(Object.assign({baseName:"tree-view",template:(e,t)=>C0(),styles:(e,t)=>Ce` ${L0()}`,shadowOptions:w0},k0)),Jie=W` ${$0("rapid")} `;const eoe={designSystemProvider:Jee,rapidAccordion:T8,rapidAccordionItem:O8,rapidAiCriteriaSearch:D8,rapidAiIndicator:F8,rapidActionsMenu:R8,rapidAnchor:J8,rapidSectionNavigator:bie,rapidAnchoredRegion:e5,rapidAvatar:t5,rapidBadge:i5,rapidBanner:s5,rapidBreadcrumb:a5,rapidBreadcrumbItem:n5,rapidButton:r5,rapidCalendar:l5,rapidCard:d5,rapidCategorizedMultiselect:m5,rapidCheckbox:g5,rapidCombobox:v5,rapidConnectionIndicator:b5,rapidDataGrid:()=>uM(),rapidDataGridCell:()=>fM(),rapidDataGridRow:()=>pM(),rapidDatePicker:z5,rapidDialog:cte,rapidDisclosure:ste,rapidDivider:ate,rapidDropdownMenu:nte,rapidEnvironmentIndicator:lte,rapidErrorBoundary:()=>iQ(),rapidFileReader:hte,rapidFileUpload:gte,rapidFilter:bte,rapidFilterBar:zte,rapidFlexLayout:()=>PQ(),rapidFlipper:xte,rapidFlyout:kte,rapidGridLayout:()=>cX(),rapidGridLayoutItem:()=>nX(),rapidHorizontalScroll:$te,rapidIcon:Tte,rapidListbox:Ote,rapidListboxOption:Rte,rapidMenu:Ite,rapidMenuItem:Fte,rapidModal:Bte,rapidMultiselect:Wte,rapidNotificationListener:Yte,rapidNumberField:Xte,rapidOptgroup:Jte,rapidProgress:tie,rapidProgressRing:iie,rapidRadio:oie,rapidRadioGroup:cie,rapidScheduler:nie,rapidSchedulerCronBuilder:die,rapidSchedulerTimezone:fie,rapidSearchBar:gie,rapidSearchBarCombobox:vie,rapidSegmentedControl:yie,rapidSegmentedItem:zie,rapidSelect:xie,rapidSkeleton:Cie,rapidSlider:Lie,rapidSliderLabel:Mie,rapidSnackbar:$ie,rapidStackingIcons:Eie,rapidStatusPill:Nie,rapidStepper:Oie,rapidStepperTab:Iie,rapidStepperTabPanel:Die,rapidSwitch:_ie,rapidSystemHealthOverlay:eie,rapidTab:Hie,rapidTabPanel:Pie,rapidTabs:Vie,rapidTextArea:Bie,rapidTextField:Uie,rapidToast:Wie,rapidToolbar:Yie,rapidTooltip:Kie,rapidTreeItem:Qie,rapidTreeView:Xie,rapidUrlInput:class extends T0{}.compose(Object.assign({baseName:"url-input",template:Jie,styles:(e,t)=>Ce` ${S0()} 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)}`,shadowOptions:N0},A0)),register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}},toe=(e,t="rapid")=>yJ(e,t,Xee,_ee),ioe=Fn("#585858");Vn.create(ioe.r,ioe.g,ioe.b);const ooe=Fn("#202126"),coe=Vn.create(ooe.r,ooe.g,ooe.b);function soe(e,...t){let i="";return e.forEach((e,o)=>{i+=e,o<t.length&&(i+=t[o])}),i}Wn.from(coe);const aoe={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"}},noe=soe` 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}`,roe=soe` 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);`,loe={value:soe` ${noe} 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:soe` ${noe} div.rule-container{${roe}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:soe` ${noe} rapid-select{min-width: 350px}`,field:soe` ${noe} rapid-select{min-width: 350px}`,group:soe` ${noe} div.rules-group-container{${roe}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`};let doe=class extends A6{constructor(){super(...arguments),this.styles={customElements:aoe,customStyles:loe}}};Nu([g],doe.prototype,"styles",void 0),doe=Nu([ye({name:"rapid-expression-builder",styles:G6.styles,template:G6.template})],doe);let hoe=class extends o8{constructor(){super(...arguments),this.styles={customElements:aoe,customStyles:loe}}};Nu([g],hoe.prototype,"styles",void 0),hoe=Nu([ye({name:"rapid-rule-expression-builder",styles:G6.styles,template:G6.template})],hoe);let uoe=class extends l8{constructor(){super(...arguments),this.styles={customElements:aoe,customStyles:loe}}};Nu([g],uoe.prototype,"styles",void 0),uoe=Nu([ye({name:"rapid-value-expression-builder",styles:G6.styles,template:G6.template})],uoe);Ce` ${"/* ============================================================================\n * flexlayout-react base theme — VENDORED from flexlayout-react@0.8.19 (style/dark.css).\n * ========================================================================== */\n.flexlayout__layout {\n --color-text: #eeeeee;\n --color-background: black;\n --color-base: black;\n --color-1: rgb(17.85, 17.85, 17.85);\n --color-2: rgb(25.5, 25.5, 25.5);\n --color-3: rgb(38.25, 38.25, 38.25);\n --color-4: #333333;\n --color-5: rgb(63.75, 63.75, 63.75);\n --color-6: rgb(76.5, 76.5, 76.5);\n --color-drag1: rgb(207, 232, 255);\n --color-drag2: rgb(183, 209, 181);\n --color-drag1-background: rgba(128, 128, 128, 0.15);\n --color-drag2-background: rgba(128, 128, 128, 0.15);\n --font-size: medium;\n --font-family: Roboto, Arial, sans-serif;\n --color-overflow: gray;\n --color-icon: gray;\n --color-tabset-background: var(--color-1);\n --color-tabset-background-selected: var(--color-1);\n --color-tabset-background-maximized: var(--color-6);\n --color-tabset-divider-line: var(--color-4);\n --color-tabset-header-background: var(--color-1);\n --color-tabset-header: var(--color-text);\n --color-border-tab-content: var(--color-background);\n --color-border-background: var(--color-1);\n --color-border-divider-line: var(--color-4);\n --color-tab-content: var(--color-background);\n --color-tab-selected: var(--color-text);\n --color-tab-selected-background: var(--color-4);\n --color-tab-unselected: gray;\n --color-tab-unselected-background: transparent;\n --color-tab-textbox: var(--color-text);\n --color-tab-textbox-background: var(--color-3);\n --color-border-tab-selected: var(--color-text);\n --color-border-tab-selected-background: var(--color-4);\n --color-border-tab-unselected: gray;\n --color-border-tab-unselected-background: var(--color-2);\n --color-splitter: var(--color-2);\n --color-splitter-hover: var(--color-4);\n --color-splitter-drag: var(--color-5);\n --color-drag-rect-border: var(--color-4);\n --color-drag-rect-background: var(--color-1);\n --color-drag-rect: var(--color-text);\n --color-popup-border: var(--color-6);\n --color-popup-unselected: var(--color-text);\n --color-popup-unselected-background: var(--color-background);\n --color-popup-selected: var(--color-text);\n --color-popup-selected-background: var(--color-4);\n --color-edge-marker: gray;\n --color-edge-icon: #eee;\n --color-mini-scroll-indicator: rgba(128, 128, 128, 0.5);\n --color-mini-scroll-indicator-hovered: rgba(128, 128, 128, 0.8);\n --size-mini-scroll-indicator: 3px;\n --color-toolbar-button-hover: var(--color-4);\n}\n\n/*\n base classes\n*/\n.flexlayout__layout {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n overflow: hidden;\n background-color: var(--color-background);\n}\n.flexlayout__layout_overlay {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n z-index: 1000;\n}\n.flexlayout__layout_tab_stamps {\n position: absolute;\n top: -10000px;\n z-index: 100;\n display: flex;\n flex-direction: column;\n align-items: start;\n}\n.flexlayout__layout_moveables {\n visibility: hidden;\n position: absolute;\n width: 100px;\n height: 100px;\n top: -20000px;\n}\n.flexlayout__layout_main {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n position: relative;\n}\n.flexlayout__layout_border_container {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n}\n.flexlayout__layout_border_container_inner {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n}\n.flexlayout__splitter {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--color-splitter);\n touch-action: none;\n z-index: 10;\n}\n@media (hover: hover) {\n .flexlayout__splitter:hover {\n background-color: var(--color-splitter-hover);\n transition: background-color ease-in 0.1s;\n transition-delay: 0.05s;\n border-radius: 5px;\n }\n}\n.flexlayout__splitter_drag {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n border-radius: 5px;\n background-color: var(--color-splitter-drag);\n}\n.flexlayout__splitter_handle {\n background-color: #ccc;\n border-radius: 3px;\n}\n.flexlayout__splitter_handle_horz {\n width: 3px;\n height: 30px;\n}\n.flexlayout__splitter_handle_vert {\n width: 30px;\n height: 3px;\n}\n.flexlayout__splitter_extra {\n touch-action: none;\n background-color: transparent;\n}\n.flexlayout__outline_rect {\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n border: 2px solid var(--color-drag1);\n background: var(--color-drag1-background);\n border-radius: 5px;\n z-index: 1000;\n}\n.flexlayout__outline_rect_edge {\n pointer-events: none;\n border: 2px solid var(--color-drag2);\n background: var(--color-drag2-background);\n border-radius: 5px;\n z-index: 1000;\n box-sizing: border-box;\n}\n.flexlayout__edge_rect {\n position: absolute;\n z-index: 1000;\n background-color: var(--color-edge-marker);\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.flexlayout__drag_rect {\n color: var(--color-drag-rect);\n background-color: var(--color-drag-rect-background);\n border: 2px solid var(--color-drag-rect-border);\n border-radius: 5px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n flex-direction: column;\n overflow: hidden;\n padding: 0.3em 0.8em;\n word-wrap: break-word;\n font-size: var(--font-size);\n font-family: var(--font-family);\n}\n.flexlayout__row {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flexlayout__tabset {\n display: flex;\n flex-direction: column;\n position: relative;\n background-color: var(--color-tabset-background);\n box-sizing: border-box;\n font-family: var(--font-family);\n overflow: hidden;\n flex-grow: 1;\n}\n.flexlayout__tabset_container {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-direction: column;\n overflow: hidden;\n flex-grow: 1;\n}\n.flexlayout__tabset_tab_divider {\n width: 4px;\n}\n.flexlayout__tabset_content {\n display: flex;\n flex-basis: 0px;\n min-width: 0;\n min-height: 0;\n flex-grow: 1;\n box-sizing: border-box;\n position: relative;\n}\n.flexlayout__tabset_leading {\n display: flex;\n}\n.flexlayout__tabset_header {\n display: flex;\n align-items: center;\n padding: 3px 3px 3px 5px;\n box-sizing: border-box;\n border-bottom: 1px solid var(--color-tabset-divider-line);\n color: var(--color-tabset-header);\n background-color: var(--color-tabset-header-background);\n font-size: var(--font-size);\n}\n.flexlayout__tabset_header_content {\n flex-grow: 1;\n}\n.flexlayout__tabset_tabbar_outer {\n box-sizing: border-box;\n background-color: var(--color-tabset-background);\n overflow: hidden;\n display: flex;\n font-size: var(--font-size);\n}\n.flexlayout__tabset_tabbar_outer_top {\n padding: 0px 2px 0px 2px;\n border-bottom: 1px solid var(--color-tabset-divider-line);\n}\n.flexlayout__tabset_tabbar_outer_bottom {\n padding: 0px 2px 0px 2px;\n border-top: 1px solid var(--color-tabset-divider-line);\n}\n.flexlayout__tabset_tabbar_inner {\n position: relative;\n box-sizing: border-box;\n display: flex;\n flex-grow: 1;\n scrollbar-width: none;\n}\n.flexlayout__tabset_tabbar_inner::-webkit-scrollbar {\n display: none;\n}\n.flexlayout__tabset_tabbar_inner_tab_container {\n position: relative;\n display: flex;\n padding-left: 4px;\n padding-right: 4px;\n box-sizing: border-box;\n white-space: nowrap;\n}\n.flexlayout__tabset_tabbar_inner_tab_container_top {\n border-top: 2px solid transparent;\n}\n.flexlayout__tabset_tabbar_inner_tab_container_bottom {\n border-bottom: 2px solid transparent;\n}\n.flexlayout__tabset-selected {\n background-color: var(--color-tabset-background-selected);\n}\n.flexlayout__tabset-maximized {\n background-color: var(--color-tabset-background-maximized);\n}\n.flexlayout__tab_button_stamp {\n display: inline-flex;\n align-items: center;\n gap: 0.3em;\n white-space: nowrap;\n box-sizing: border-box;\n}\n.flexlayout__tab {\n overflow: hidden;\n box-sizing: border-box;\n background-color: var(--color-tab-content);\n color: var(--color-text);\n position: relative;\n}\n.flexlayout__tab_moveable {\n position: relative;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n overflow: auto;\n box-sizing: border-box;\n}\n.flexlayout__tab_overlay {\n z-index: 20;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.2392156863);\n}\n.flexlayout__tab_button {\n display: flex;\n gap: 0.3em;\n align-items: center;\n box-sizing: border-box;\n padding: 3px 0.5em;\n cursor: pointer;\n}\n.flexlayout__tab_button_stretch {\n background-color: transparent;\n color: var(--color-tab-selected);\n width: 100%;\n padding: 3px 0em;\n text-wrap: nowrap;\n display: flex;\n gap: 0.3em;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n}\n@media (hover: hover) {\n .flexlayout__tab_button_stretch:hover {\n color: var(--color-tab-selected);\n }\n}\n.flexlayout__tab_button--selected {\n background-color: var(--color-tab-selected-background);\n color: var(--color-tab-selected);\n}\n@media (hover: hover) {\n .flexlayout__tab_button:hover {\n color: var(--color-tab-selected);\n }\n}\n.flexlayout__tab_button--unselected {\n background-color: var(--color-tab-unselected-background);\n color: var(--color-tab-unselected);\n}\n.flexlayout__tab_button_leading {\n display: flex;\n}\n.flexlayout__tab_button_content {\n display: flex;\n text-wrap: nowrap;\n}\n.flexlayout__tab_button_textbox {\n border: none;\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--color-tab-textbox);\n background-color: var(--color-tab-textbox-background);\n border: 1px inset var(--color-1);\n border-radius: 3px;\n width: 10em;\n}\n.flexlayout__tab_button_textbox:focus {\n outline: none;\n}\n.flexlayout__tab_button_trailing {\n display: flex;\n visibility: hidden;\n border-radius: 4px;\n}\n.flexlayout__tab_button_trailing:hover {\n background-color: var(--color-toolbar-button-hover);\n}\n@media (hover: hover) {\n .flexlayout__tab_button:hover .flexlayout__tab_button_trailing {\n visibility: visible;\n }\n}\n.flexlayout__tab_button--selected .flexlayout__tab_button_trailing {\n visibility: visible;\n}\n.flexlayout__tab_button_overflow {\n display: flex;\n align-items: center;\n border: none;\n color: var(--color-overflow);\n font-size: inherit;\n background-color: transparent;\n width: 2em;\n overflow: hidden;\n}\n.flexlayout__tab_toolbar {\n display: flex;\n align-items: center;\n gap: 0.3em;\n padding-left: 0.5em;\n padding-right: 0.3em;\n}\n.flexlayout__tab_toolbar_icon {\n border: none;\n outline: none;\n font-size: inherit;\n margin: 0px;\n background-color: transparent;\n padding: 1px;\n}\n.flexlayout__tab_toolbar_button {\n border: none;\n outline: none;\n font-size: inherit;\n margin: 0px;\n background-color: transparent;\n border-radius: 4px;\n padding: 1px;\n}\n@media (hover: hover) {\n .flexlayout__tab_toolbar_button:hover {\n background-color: var(--color-toolbar-button-hover);\n }\n}\n.flexlayout__tab_toolbar_sticky_buttons_container {\n display: flex;\n gap: 0.3em;\n padding-left: 5px;\n align-items: center;\n}\n.flexlayout__border {\n box-sizing: border-box;\n overflow: hidden;\n display: flex;\n font-size: var(--font-size);\n font-family: var(--font-family);\n color: var(--color-border);\n background-color: var(--color-border-background);\n}\n.flexlayout__border_tab_contents {\n box-sizing: border-box;\n overflow: hidden;\n background-color: var(--color-border-tab-content);\n}\n.flexlayout__border_leading {\n display: flex;\n}\n.flexlayout__border_top {\n border-bottom: 1px solid var(--color-border-divider-line);\n align-items: center;\n}\n.flexlayout__border_bottom {\n border-top: 1px solid var(--color-border-divider-line);\n align-items: center;\n}\n.flexlayout__border_left {\n border-right: 1px solid var(--color-border-divider-line);\n align-content: center;\n flex-direction: column;\n}\n.flexlayout__border_right {\n border-left: 1px solid var(--color-border-divider-line);\n align-content: center;\n flex-direction: column;\n}\n.flexlayout__border_inner {\n position: relative;\n box-sizing: border-box;\n align-items: center;\n display: flex;\n flex-grow: 1;\n scrollbar-width: none;\n}\n.flexlayout__border_inner::-webkit-scrollbar {\n display: none;\n}\n.flexlayout__border_inner_tab_container {\n white-space: nowrap;\n display: flex;\n padding-left: 2px;\n padding-right: 2px;\n box-sizing: border-box;\n position: absolute;\n}\n.flexlayout__border_inner_tab_container_right {\n transform-origin: top left;\n transform: rotate(90deg);\n}\n.flexlayout__border_inner_tab_container_left {\n flex-direction: row-reverse;\n transform-origin: top right;\n transform: rotate(-90deg);\n}\n.flexlayout__border_tab_divider {\n width: 4px;\n}\n.flexlayout__border_button {\n display: flex;\n gap: 0.3em;\n align-items: center;\n cursor: pointer;\n padding: 3px 0.5em;\n margin: 2px 0px;\n box-sizing: border-box;\n white-space: nowrap;\n}\n.flexlayout__border_button--selected {\n background-color: var(--color-border-tab-selected-background);\n color: var(--color-border-tab-selected);\n}\n@media (hover: hover) {\n .flexlayout__border_button:hover {\n color: var(--color-border-tab-selected);\n }\n}\n.flexlayout__border_button--unselected {\n background-color: var(--color-border-tab-unselected-background);\n color: var(--color-border-tab-unselected);\n}\n.flexlayout__border_button_leading {\n display: flex;\n}\n.flexlayout__border_button_content {\n display: flex;\n}\n.flexlayout__border_button_trailing {\n display: flex;\n border-radius: 4px;\n visibility: hidden;\n}\n@media (hover: hover) {\n .flexlayout__border_button:hover .flexlayout__border_button_trailing {\n visibility: visible;\n }\n}\n.flexlayout__border_button--selected .flexlayout__border_button_trailing {\n visibility: visible;\n}\n.flexlayout__border_toolbar {\n display: flex;\n gap: 0.3em;\n align-items: center;\n}\n.flexlayout__border_toolbar_left, .flexlayout__border_toolbar_right {\n flex-direction: column;\n padding-top: 0.5em;\n padding-bottom: 0.3em;\n}\n.flexlayout__border_toolbar_top, .flexlayout__border_toolbar_bottom {\n padding-left: 0.5em;\n padding-right: 0.3em;\n}\n.flexlayout__border_toolbar_button {\n border: none;\n outline: none;\n font-size: inherit;\n background-color: transparent;\n border-radius: 4px;\n padding: 1px;\n}\n@media (hover: hover) {\n .flexlayout__border_toolbar_button:hover {\n background-color: var(--color-toolbar-button-hover);\n }\n}\n.flexlayout__border_toolbar_button_overflow {\n display: flex;\n align-items: center;\n border: none;\n color: var(--color-overflow);\n font-size: inherit;\n background-color: transparent;\n width: 1.5em;\n}\n.flexlayout__popup_menu {\n font-size: var(--font-size);\n font-family: var(--font-family);\n}\n.flexlayout__popup_menu_item {\n padding: 2px 0.5em;\n white-space: nowrap;\n cursor: pointer;\n border-radius: 2px;\n}\n.flexlayout__popup_menu_item--selected {\n font-weight: 500;\n background-color: var(--color-tab-selected-background);\n color: var(--color-tab-selected);\n}\n@media (hover: hover) {\n .flexlayout__popup_menu_item:hover {\n background-color: var(--color-6);\n }\n}\n.flexlayout__popup_menu_container {\n box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);\n border: 1px solid var(--color-popup-border);\n color: var(--color-popup-unselected);\n background: var(--color-popup-unselected-background);\n border-radius: 3px;\n position: absolute;\n z-index: 1000;\n max-height: 50%;\n min-width: 100px;\n overflow: auto;\n padding: 2px;\n}\n.flexlayout__floating_window _body {\n height: 100%;\n}\n.flexlayout__floating_window_content {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n}\n.flexlayout__error_boundary_container {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n justify-content: center;\n}\n.flexlayout__error_boundary_content {\n display: flex;\n align-items: center;\n}\n.flexlayout__border_sizer {\n position: absolute;\n top: -30000px;\n padding-top: 6px;\n padding-bottom: 5px;\n font-size: var(--font-size);\n font-family: var(--font-family);\n}\n.flexlayout__mini_scrollbar {\n position: absolute;\n background-color: var(--color-mini-scroll-indicator);\n border-radius: 5px;\n width: var(--size-mini-scroll-indicator);\n height: var(--size-mini-scroll-indicator);\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;\n}\n.flexlayout__mini_scrollbar:hover {\n background-color: var(--color-mini-scroll-indicator-hovered);\n transition: background-color 0.3s ease-in-out;\n}\n.flexlayout__mini_scrollbar_container {\n position: relative;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n}\n@media (hover: hover) {\n .flexlayout__mini_scrollbar_container:hover .flexlayout__mini_scrollbar {\n opacity: 1;\n visibility: visible;\n }\n}\n\n/* ======================== End of Base Classes =========================== */\n/* \n dark theme overrides \n*/\n.flexlayout__tabset_header {\n box-shadow: inset 0 0 3px 0 rgba(136, 136, 136, 0.54);\n}\n.flexlayout__tabset-selected {\n background-image: linear-gradient(var(--color-background), var(--color-4));\n}\n.flexlayout__tabset-maximized {\n background-image: linear-gradient(var(--color-6), var(--color-2));\n}\n.flexlayout__tab_top {\n box-shadow: inset -2px 0px 5px rgba(0, 0, 0, 0.1);\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n.flexlayout__tab_bottom {\n box-shadow: inset -2px 0px 5px rgba(0, 0, 0, 0.1);\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n.flexlayout__border_button {\n box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n}\n\n/* ============================================================================\n * Rapid Design System overrides (flexlayout-react.overrides.css) — applied last.\n * ========================================================================== */\n/*\n * flexlayout-react.overrides.css — Rapid Design System theme overrides for flexlayout-react.\n *\n * THIS IS THE SINGLE SOURCE OF TRUTH for how flexlayout-react looks across every app that\n * consumes Foundation. Do NOT copy these rules into apps — import the compiled theme from\n * `@genesislcap/rapid-design-system` instead (see flexlayout-react-theme.ts).\n *\n * Build pipeline: `scripts/generate-flexlayout-theme.mjs` concatenates the vendored\n * flexlayout-react base theme (structural CSS + dark palette) FIRST, then this file LAST,\n * into `flexlayout-react-theme.generated.ts`. Equal specificity means the later sheet wins,\n * so every rule here overrides the vendored default. Run `pnpm flexlayout:generate` after\n * editing (the package build does this automatically).\n *\n * The flexlayout theme is almost entirely driven by CSS custom properties declared on\n * `.flexlayout__layout` (see the full list at the top of the vendored base theme). The\n * easiest way to re-skin is to remap those variables to rapid design-system tokens, as\n * below. For anything the variables don't cover, target the `.flexlayout__*` classes\n * directly (examples at the bottom).\n *\n * Tokens resolve from the nearest design-system provider ancestor (CSS custom properties\n * inherit across shadow boundaries), so flexlayout-react must render under a\n * `<rapid-design-system-provider>` for these to take effect.\n */\n\n/* --- Variable remap: flexlayout palette -> rapid design tokens ----------------- */\n.flexlayout__layout {\n --font-family: var(--body-font, Roboto, Arial, sans-serif);\n --font-size: var(--type-ramp-base-font-size);\n\n --color-text: var(--neutral-foreground-rest);\n --color-background: var(--fill-color);\n\n /* Greyscale ramp used across tabsets, borders and toolbars. */\n --color-1: var(--neutral-layer-1);\n --color-2: var(--neutral-layer-2);\n --color-3: var(--neutral-layer-3);\n --color-4: var(--neutral-layer-4);\n\n /* Selected tab + active splitter pick up the accent colour. */\n --color-tab-selected: var(--accent-foreground-rest);\n --color-tab-unselected: var(--neutral-foreground-hint);\n --color-tab-selected-background: var(--accent-fill-rest);\n --color-splitter-drag: var(--accent-fill-rest);\n --color-splitter-hover: var(--accent-fill-hover);\n}\n\n.flexlayout__tabset-selected,\n.flexlayout__tabset-maximized {\n background-image: none !important;\n}\n\n.flexlayout__tab_button_content {\n font-weight: 400;\n font-size: var(--type-ramp-minus-1-font-size);\n}\n\n.flexlayout__tab_button--unselected:hover {\n color: var(--neutral-foreground-rest, #e0e0e0) !important;\n background-color: var(--neutral-fill-stealth-active, rgba(255, 255, 255, 0.06)) !important;\n}\n\n.flexlayout__tab_top,\n.flexlayout__tab_bottom {\n border-radius: 0 !important;\n box-shadow: none !important;\n}\n\n.flexlayout__tab_toolbar_button-max,\n.flexlayout__tab_toolbar_button-min {\n order: 100;\n}\n\n.flexlayout__tab_button_textbox {\n box-sizing: border-box;\n width: auto;\n min-width: 8em;\n max-width: 100%;\n margin: 0;\n padding: 0 calc(var(--design-unit, 4) * 1px);\n font-family: var(--body-font);\n font-size: var(--type-ramp-base-font-size, var(--font-size));\n font-weight: 500;\n line-height: var(--type-ramp-base-line-height, normal);\n color: var(--neutral-foreground-rest);\n background-color: var(--neutral-fill-input-rest);\n border: 1px solid var(--neutral-stroke-rest);\n border-radius: calc(var(--control-corner-radius, 2) * 1px);\n\n &:focus {\n outline: none;\n color: var(--neutral-foreground-rest);\n background-color: var(--neutral-fill-input-focus, var(--neutral-fill-input-rest));\n border-color: var(--accent-fill-rest);\n }\n}\n\n.flexlayout__tabset {\n border: var(--card-border, 1px solid var(--neutral-stroke-rest));\n border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n background-color: var(--rapid-layout-item-background, var(--neutral-layer-3));\n}\n\n.flexlayout__tabset_content {\n margin-top: -1px;\n}\n\n.flexlayout__tabset_tabbar_outer_top {\n border: 0;\n height: var(\n --foundation-tab-height,\n calc((((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px)\n );\n background: none;\n z-index: 1;\n}\n\n.flexlayout__tabset_container {\n border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n}\n\n.flexlayout__tabset_tabbar_inner_tab_container_top {\n border-top: 0;\n}\n\n.flexlayout__tab_button {\n border-right-style: solid;\n border-right-width: var(--tab-rest-border-width, 1px);\n border-right-color: var(--tab-rest-border-color, var(--neutral-stroke-rest));\n padding: 0 calc((12 + var(--design-unit) * 2 * var(--density)) * 1px);\n gap: 8px;\n\n &:first-child {\n border-left-style: solid;\n border-left-width: var(--tab-rest-border-width, 1px);\n border-left-color: var(--tab-rest-border-color, var(--neutral-stroke-rest));\n }\n}\n\n.flexlayout__tab_button--selected {\n position: relative;\n color: var(--accent-foreground-rest) !important;\n background: var(--tab-active-background-color, var(--neutral-layer-card-container));\n border-style: solid;\n border-width: var(--tab-active-border-width, 0 1px 0 0);\n border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));\n .flexlayout__tab_button_content {\n font-weight: 700;\n }\n}\n\n.flexlayout__tab {\n border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px))\n var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));\n border-top: var(--card-border, 1px solid var(--neutral-stroke-rest));\n background: var(--neutral-layer-card-container);\n\n rapid-card {\n display: flex;\n flex-direction: column;\n border: 0;\n border-radius: 0 0 var(--card-corner-radius) var(--card-corner-radius);\n grid-register {\n display: block;\n height: 100%;\n }\n }\n}\n\n.flexlayout__tabset_tab_divider {\n width: 0;\n}\n\n.flexlayout__tab_button_trailing {\n rapid-icon {\n color: var(--accent-foreground-rest);\n\n &:hover {\n color: var(--accent-foreground-hover);\n }\n }\n}\n\n.flexlayout__popup_menu_container {\n box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);\n padding: 0;\n border: 1px solid var(--neutral-stroke-rest);\n}\n\n.flexlayout__popup_menu_item {\n padding: calc((8 + var(--design-unit) * 2 * var(--density)) * 1px);\n border-bottom: 1px solid var(--neutral-stroke-divider-rest);\n\n &:hover {\n background-color: var(--neutral-fill-rest);\n color: contrast-color(var(--neutral-fill-rest));\n }\n\n &:last-child {\n border-bottom: 0;\n }\n}\n\n.flexlayout__popup_menu_item--selected {\n background-color: var(--neutral-fill-rest);\n color: contrast-color(var(--neutral-fill-rest));\n}\n\n.flexlayout__tab_toolbar_button {\n padding: 0;\n height: unset;\n width: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n > svg {\n height: 16px !important;\n width: 16px !important;\n padding: 4px;\n fill: var(--neutral-foreground-hint);\n }\n}\n\n.flexlayout__splitter_vert {\n background-color: var(--neutral-foreground-rest);\n mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDI0IEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNNDE2IDI1NmEzMiAzMiAwIDEgMSAtNjQgMCAzMiAzMiAwIDEgMSA2NCAwem0tMTYwIDBhMzIgMzIgMCAxIDEgLTY0IDAgMzIgMzIgMCAxIDEgNjQgMHpNNjQgMjg4YTMyIDMyIDAgMSAxIDAtNjQgMzIgMzIgMCAxIDEgMCA2NHoiLz48L3N2Zz4=);\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 12px;\n &:hover {\n mask-image: none;\n }\n}\n\n.flexlayout__splitter_horz {\n background-color: var(--neutral-foreground-rest);\n mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggNTEyIj48IS0tISBGb250IEF3ZXNvbWUgUHJvIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlIChDb21tZXJjaWFsIExpY2Vuc2UpIENvcHlyaWdodCAyMDI0IEZvbnRpY29ucywgSW5jLiAtLT48cGF0aCBkPSJNNjQgMzg0YTMyIDMyIDAgMSAwIDAgNjQgMzIgMzIgMCAxIDAgMC02NHptMC0xNjBhMzIgMzIgMCAxIDAgMCA2NCAzMiAzMiAwIDEgMCAwLTY0ek05NiA5NkEzMiAzMiAwIDEgMCAzMiA5NmEzMiAzMiAwIDEgMCA2NCAweiIvPjwvc3ZnPg==);\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 4px;\n &:hover {\n mask-image: none;\n }\n}\n\n.flexlayout__layout {\n top: 8px;\n bottom: 8px;\n left: 8px;\n right: 8px;\n}"}`;const foe=()=>toe().register(eoe),poe={LightMode:1,DarkMode:.23},moe={baseLayerLuminance:rr,fillColor:kl,accentPalette:fl,neutralPalette:hl,errorColor:w5,successColor:$5,warningColor:A5,infoColor:P5,buyColor:R5,sellColor:F5,seriousNotifyColor:U5,designUnit:hr,baseHeightMultiplier:ar,density:dr,controlCornerRadius:lr,bodyFont:sr},goe="rapid-design-system-provider",voe=()=>{foe(),(()=>{if(document.querySelector(goe))return;const e=document.createElement(goe);e.setAttribute("with-defaults",""),e.style.display="block";const t=document.createDocumentFragment();for(;document.body.firstChild;)t.appendChild(document.body.firstChild);e.appendChild(t),document.body.appendChild(e)})()};if("undefined"!=typeof document){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",voe,{once:!0}):voe();const e=window;e.rapid=Object.assign(e.rapid||{},{provideDesignSystem:toe,baseComponents:eoe,registerRapidDesignSystem:foe,tokens:moe,StandardLuminance:poe,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."})}e.baseComponents=eoe,e.provideDesignSystem=toe,e.registerRapidDesignSystem=foe,Object.defineProperty(e,"__esModule",{value:!0})}({});
|