@odigos/ui-kit 0.0.245 → 0.0.246

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/chunks/helpers-BFZzc68M.js +19 -0
  3. package/lib/chunks/index-BrSebk-Z.js +155 -0
  4. package/lib/chunks/source-instrument-form-context-n8N3zC_-.js +1 -0
  5. package/lib/chunks/{ui-components-CFTFbtTq.js → ui-components-DNrEjxrR.js} +242 -221
  6. package/lib/components/_v2/cards/section-card/index.d.ts +3 -1
  7. package/lib/components/_v2/table/styled.d.ts +7 -1
  8. package/lib/components/_v2/table/table-columns/index.d.ts +2 -0
  9. package/lib/components/_v2/table/table-rows/index.d.ts +2 -0
  10. package/lib/components/_v2/typography/index.d.ts +0 -4
  11. package/lib/components/styled.d.ts +4 -1
  12. package/lib/components/v2.js +1 -1
  13. package/lib/components.js +1 -1
  14. package/lib/constants/sampling/index.d.ts +5 -0
  15. package/lib/constants.js +1 -1
  16. package/lib/containers/_v2/_drawers/edit-source-drawer/{yaml-files → debug}/index.d.ts +2 -2
  17. package/lib/containers/_v2/central-connections/index.d.ts +1 -2
  18. package/lib/containers/_v2/overview/columns/index.d.ts +1 -2
  19. package/lib/containers/_v2/overview/drawers/index.d.ts +4 -1
  20. package/lib/containers/_v2/overview/index.d.ts +0 -2
  21. package/lib/containers/_v2/pipeline-collectors/index.d.ts +3 -3
  22. package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +2 -2
  23. package/lib/containers/_v2/sampling-rules/helpers.d.ts +2 -1
  24. package/lib/containers/_v2/sampling-rules/rules-table/index.d.ts +1 -2
  25. package/lib/containers/_v2/sampling-rules/types.d.ts +0 -2
  26. package/lib/containers/_v2/settings/index.d.ts +0 -1
  27. package/lib/containers/service-map/index.d.ts +0 -1
  28. package/lib/containers/v2.js +152 -139
  29. package/lib/containers.js +7 -4
  30. package/lib/contexts/rule-form-context.d.ts +13 -4
  31. package/lib/contexts.js +1 -1
  32. package/lib/functions/index.d.ts +1 -0
  33. package/lib/functions/instrumentation-rule-source-scopes/index.d.ts +76 -0
  34. package/lib/functions.js +1 -1
  35. package/lib/hooks/useInstrumentationRuleFormData.d.ts +2 -2
  36. package/lib/hooks.js +1 -1
  37. package/lib/snippets/_v2/index.d.ts +1 -0
  38. package/lib/snippets/_v2/instrumentation-rule-form-sections/index.d.ts +1 -0
  39. package/lib/snippets/_v2/instrumentation-rule-form-sections/instrumentation-preview.d.ts +10 -0
  40. package/lib/snippets/_v2/rich-title/index.d.ts +5 -1
  41. package/lib/snippets/_v2/sampling-rule-form-sections/source-scope.d.ts +18 -8
  42. package/lib/snippets/v2.js +1 -1
  43. package/lib/snippets.js +2 -2
  44. package/lib/store.js +1 -1
  45. package/lib/theme.js +1 -1
  46. package/lib/types/actions/index.d.ts +5 -2
  47. package/lib/types/instrumentation-rules/index.d.ts +14 -0
  48. package/lib/types.js +1 -1
  49. package/lib/visuals.js +1 -1
  50. package/package.json +1 -1
  51. package/lib/chunks/helpers-D-CznSVG.js +0 -19
  52. package/lib/chunks/index-CA2MiIDy.js +0 -149
  53. package/lib/chunks/source-instrument-form-context-C002ZZ9a.js +0 -1
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{VSquareIcon as l,XSquareIcon as c,ActionIcon as d,RenameAttributeIcon as u,PiiMaskingIcon as p,DeleteAttributeIcon as h,AddClusterInfoIcon as g,K8sLogo as m,ImageErrorIcon as f,KafkaLogo as b,RedisLogo as y,PostgresLogo as $,NginxLogo as v,MysqlLogo as x,ElixirLogo as S,SwiftLogo as E,RustLogo as w,RubyLogo as C,PhpLogo as T,CPlusPlusLogo as A,CSharpLogo as I,DotnetLogo as N,PythonLogo as k,NodejsLogo as D,GoLogo as R,JavaLogo as O,PyroscopeLogo as _,AwsXrayLogo as L,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as M,TingyunLogo as z,TempoLogo as U,TelemetryHubLogo as B,SumoLogicLogo as j,SplunkLogo as H,SignozLogo as G,SeqLogo as X,AwsS3Logo as W,QuickwitLogo as K,GigapipeLogo as V,QrynLogo as J,PrometheusLogo as q,OpenTelemetryLogo as Y,OracleLogo as Q,OpsVerseLogo as Z,OpenObserveLogo as ee,OneUptimeLogo as te,OdigosLogo as ne,ObserveLogo as oe,NewRelicLogo as re,MiddlewareLogo as ie,LumigoLogo as ae,LokiLogo as se,LogzioLogo as le,LightstepLogo as ce,Last9Logo as de,KloudmateLogo as ue,JaegerLogo as pe,InstanaLogo as he,HyperDxLogo as ge,HoneycombLogo as me,GroundcoverLogo as fe,GreptimeLogo as be,GrafanaLogo as ye,GoogleCloudPlatformLogo as $e,ElasticSearchLogo as ve,ElasticApmLogo as xe,DynatraceLogo as Se,DatadogLogo as Ee,Dash0Logo as we,CoralogixLogo as Ce,AwsCloudwatchLogo as Te,ClickhouseLogo as Ae,ChronosphereLogo as Ie,ChecklyLogo as Ne,CauselyLogo as ke,BonreeLogo as De,BetterStackLogo as Re,AzureMonitorLogo as Oe,AzureBlobLogo as _e,AxiomLogo as Le,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Me,SamplingIcon as ze,InstrumentationRuleIcon as Ue,DestinationIcon as Be,SourceIcon as je,NamespacesIcon as He,PayloadCollectionIcon as Ge,HeadersCollectionIcon as Xe,CustomInstrumentationIcon as We,CodeAttributesIcon as Ke,TracesIcon as Ve,MetricsIcon as Je,LogsIcon as qe,VmLogo as Ye,DotsHorizontalIcon as Qe,QuestionCircleIcon as Ze,ExclamationTriangleIcon as et,ExclamationCircleIcon as tt,ISquareIcon as nt,AwsLogo as ot,AwsSecretsManagerLogo as rt,AwsStepFunctionsLogo as it,AwsEventBridgeLogo as at,AwsBedrockLogo as st,AwsApiGatewayLogo as lt,AwsEc2Logo as ct,AwsKinesisLogo as dt,AwsLambdaLogo as ut,AwsSnsLogo as pt,AwsSqsLogo as ht,AwsDynamoDbLogo as gt,AwsStsLogo as mt,OpenTelemetryLogoStripped as ft,VIcon as bt,CopyIcon as yt,ListIcon as $t,CodeIcon as vt,XIcon as xt,EyeClosedIcon as St,EyeOpenIcon as Et,SearchIcon as wt,MinusIcon as Ct,ChevronUpIcon as Tt,ChevronDownIcon as At,ArrowIcon as It,DotsVerticalIcon as Nt,PlusIcon as kt,TrashIcon as Dt,DotIcon as Rt,FilterIcon as Ot}from"../icons.js";import{create as _t}from"zustand";import{forwardRef as Lt,Fragment as Pt,useState as Ft,useEffect as Mt,useMemo as zt,useCallback as Ut,useRef as Bt,useLayoutEffect as jt,createElement as Ht}from"react";import Gt from"javascript-time-ago";import{p as Xt,c as Wt,l as Kt,s as Vt}from"./vendor-Be0cOokr.js";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Qt,{createPortal as Zt}from"react-dom";import{VList as en}from"virtua";const tn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var nn,on,rn;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(nn||(nn={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(on||(on={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(rn||(rn={}));const an=new Set(Object.values(rn)),sn=(e,t)=>{if("string"!=typeof(n=t)||!an.has(n))return t;var n;switch(t){case rn.Primary:return e.v2.colors.white[500];case rn.Secondary:return e.v2.colors.silver[200];case rn.Tertiary:return e.v2.colors.black[500];case rn.Disable:return e.v2.colors.grey[400];case rn.Error:return e.v2.colors.red[500];case rn.Mandatory:return e.v2.colors.red[600];case rn.Link:return e.v2.colors.purple[400];case rn.Success:return e.v2.colors.green[400];default:return}},ln=o.p`
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{VSquareIcon as l,XSquareIcon as c,ActionIcon as d,RenameAttributeIcon as u,PiiMaskingIcon as p,DeleteAttributeIcon as h,AddClusterInfoIcon as g,K8sLogo as m,ImageErrorIcon as f,KafkaLogo as b,RedisLogo as y,PostgresLogo as $,NginxLogo as v,MysqlLogo as x,ElixirLogo as S,SwiftLogo as E,RustLogo as w,RubyLogo as C,PhpLogo as T,CPlusPlusLogo as A,CSharpLogo as I,DotnetLogo as k,PythonLogo as N,NodejsLogo as D,GoLogo as R,JavaLogo as O,PyroscopeLogo as _,AwsXrayLogo as L,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as M,TingyunLogo as z,TempoLogo as U,TelemetryHubLogo as B,SumoLogicLogo as j,SplunkLogo as H,SignozLogo as W,SeqLogo as G,AwsS3Logo as X,QuickwitLogo as K,GigapipeLogo as V,QrynLogo as J,PrometheusLogo as q,OpenTelemetryLogo as Y,OracleLogo as Q,OpsVerseLogo as Z,OpenObserveLogo as ee,OneUptimeLogo as te,OdigosLogo as ne,ObserveLogo as oe,NewRelicLogo as re,MiddlewareLogo as ie,LumigoLogo as ae,LokiLogo as se,LogzioLogo as le,LightstepLogo as ce,Last9Logo as de,KloudmateLogo as ue,JaegerLogo as pe,InstanaLogo as he,HyperDxLogo as ge,HoneycombLogo as me,GroundcoverLogo as fe,GreptimeLogo as be,GrafanaLogo as ye,GoogleCloudPlatformLogo as $e,ElasticSearchLogo as ve,ElasticApmLogo as xe,DynatraceLogo as Se,DatadogLogo as Ee,Dash0Logo as we,CoralogixLogo as Ce,AwsCloudwatchLogo as Te,ClickhouseLogo as Ae,ChronosphereLogo as Ie,ChecklyLogo as ke,CauselyLogo as Ne,BonreeLogo as De,BetterStackLogo as Re,AzureMonitorLogo as Oe,AzureBlobLogo as _e,AxiomLogo as Le,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Me,SamplingIcon as ze,InstrumentationRuleIcon as Ue,DestinationIcon as Be,SourceIcon as je,NamespacesIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as Ge,CustomInstrumentationIcon as Xe,CodeAttributesIcon as Ke,TracesIcon as Ve,MetricsIcon as Je,LogsIcon as qe,VmLogo as Ye,DotsHorizontalIcon as Qe,QuestionCircleIcon as Ze,ExclamationTriangleIcon as et,ExclamationCircleIcon as tt,ISquareIcon as nt,AwsLogo as ot,AwsSecretsManagerLogo as rt,AwsStepFunctionsLogo as it,AwsEventBridgeLogo as at,AwsBedrockLogo as st,AwsApiGatewayLogo as lt,AwsEc2Logo as ct,AwsKinesisLogo as dt,AwsLambdaLogo as ut,AwsSnsLogo as pt,AwsSqsLogo as ht,AwsDynamoDbLogo as gt,AwsStsLogo as mt,OpenTelemetryLogoStripped as ft,VIcon as bt,CopyIcon as yt,ListIcon as $t,CodeIcon as vt,XIcon as xt,EyeClosedIcon as St,EyeOpenIcon as Et,SearchIcon as wt,MinusIcon as Ct,ChevronUpIcon as Tt,ChevronDownIcon as At,ArrowIcon as It,DotsVerticalIcon as kt,PlusIcon as Nt,TrashIcon as Dt,DotIcon as Rt,FilterIcon as Ot}from"../icons.js";import{create as _t}from"zustand";import{forwardRef as Lt,Fragment as Pt,useState as Ft,useEffect as Mt,useMemo as zt,useCallback as Ut,useRef as Bt,useLayoutEffect as jt,createElement as Ht}from"react";import Wt from"javascript-time-ago";import{p as Gt,c as Xt,l as Kt,s as Vt}from"./vendor-Be0cOokr.js";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Qt,{createPortal as Zt}from"react-dom";import{VList as en}from"virtua";const tn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var nn,on,rn;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(nn||(nn={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(on||(on={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(rn||(rn={}));const an=new Set(Object.values(rn)),sn=(e,t)=>{if("string"!=typeof(n=t)||!an.has(n))return t;var n;switch(t){case rn.Primary:return e.v2.colors.white[500];case rn.Secondary:return e.v2.colors.silver[200];case rn.Tertiary:return e.v2.colors.black[500];case rn.Disable:return e.v2.colors.grey[400];case rn.Error:return e.v2.colors.red[500];case rn.Mandatory:return e.v2.colors.red[600];case rn.Link:return e.v2.colors.purple[400];case rn.Success:return e.v2.colors.green[400];default:return}},ln=o.p`
2
2
  margin: 0;
3
3
  color: ${({$color:e,theme:t})=>sn(t,e)||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -9,16 +9,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
9
9
  line-height: ${({theme:e,$lineHeight:t,$size:n})=>t||`${e.v2.text.size[n]+2}px`};
10
10
  opacity: ${({$opacity:e})=>e};
11
11
 
12
- ${({$nowrap:e})=>e&&r`
13
- text-wrap: nowrap;
14
- white-space: nowrap;
15
- overflow: hidden;
16
- text-overflow: ellipsis;
17
- `}
12
+ ${({$nowrap:e})=>e?r`
13
+ text-wrap: nowrap;
14
+ white-space: nowrap;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ `:r`
18
+ flex: 0 1 auto;
19
+ min-width: 0;
20
+ overflow-wrap: anywhere;
21
+ `}
18
22
 
19
- /* Multi-line clamp uses the legacy webkit-box mechanism because the
20
- standardized \`line-clamp\` shorthand still isn't supported everywhere;
21
- setting both keeps things working today and forward-compatible later. */
22
23
  ${({$maxLines:e})=>!!e&&e>0&&r`
23
24
  display: -webkit-box;
24
25
  -webkit-box-orient: vertical;
@@ -37,7 +38,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
37
38
  text-decoration: underline;
38
39
  }
39
40
  `}
40
- `,cn=Lt(({children:n,variant:o=nn.P,color:r,size:i=on.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},b)=>{const y=n?.toString().split("\n")||[];return e(ln,{ref:b,as:o,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:y.map((n,o)=>t(Pt,{children:[n,o!==y.length-1&&e("br",{})]},`typography-${o}-${n}`))})});cn.displayName="Typography";const dn="https://docs.odigos.io",un="default",pn="this-cluster",hn="This Cluster",gn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},mn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},fn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",INJECTIONS_AS_EXPECTED:"Injections as expected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",OPEN_IN_POD_TAB:"Open in 'Pod' tab",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",RESTART_POD_DESCRIPTION:"Deleting a pod removes it and lets Kubernetes controllers recreate a new one.\nThe new pod starts fresh with the latest instrumentation agent and configuration.\nRecommended for non-production clusters only.",DEBUG:"Debug"},bn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"};var yn,$n,vn,xn,Sn,En,wn,Cn,Tn,An,In,Nn,kn,Dn,Rn,On,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Hn,Gn,Xn,Wn,Kn,Vn,Jn,qn,Yn,Qn,Zn,eo,to,no,oo,ro,io,ao,so,lo;!function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"}(yn||(yn={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.Extractions="extractions"}($n||($n={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(vn||(vn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(xn||(xn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(Sn||(Sn={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(En||(En={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(wn||(wn={})),function(e){e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"}(Cn||(Cn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Tn||(Tn={})),function(e){e.Ascending="ascending",e.Descending="descending"}(An||(An={})),function(e){e.Community="community",e.Onprem="onprem"}(In||(In={})),function(e){e.K8s="k8s",e.Vm="vm"}(Nn||(Nn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(kn||(kn={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(Dn||(Dn={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Rn||(Rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(On||(On={})),function(e){e.DataStream="DataStream"}(_n||(_n={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Ln||(Ln={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Pn||(Pn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Fn||(Fn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Mn||(Mn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(zn||(zn={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Un||(Un={})),function(e){e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"}(Bn||(Bn={})),function(e){e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"}(jn||(jn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Hn||(Hn={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Gn||(Gn={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Xn||(Xn={})),function(e){e.Labeled="labeled"}(Wn||(Wn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Kn||(Kn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"}(Vn||(Vn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig",e.InstrumentationConfig="InstrumentationConfig"}(Jn||(Jn={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(qn||(qn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Yn||(Yn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Qn||(Qn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Zn||(Zn={})),function(e){e.HeaderKeys="headerKeys"}(eo||(eo={})),function(e){e.Java="java",e.Golang="golang"}(to||(to={}));class co{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class uo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(no||(no={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(oo||(oo={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(ro||(ro={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(io||(io={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ao||(ao={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(so||(so={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(lo||(lo={}));const po={[so.Logs]:lo.Logs,[so.Metrics]:lo.Metrics,[so.Traces]:lo.Traces,[so.Profiles]:lo.Profiles},ho={[lo.Logs]:so.Logs,[lo.Metrics]:so.Metrics,[lo.Traces]:so.Traces,[lo.Profiles]:so.Profiles};var go;!function(e){e.Equals="equals",e.NotEquals="notEquals",e.EndWith="endWith",e.StartWith="startWith"}(go||(go={}));const mo=(e,t)=>e===Fn.Success?fn.HEALTHY:e===Fn.Error?fn.NOT_HEALTHY:tn(t),fo=e=>{if(!e)return null;switch(e){case Yn.Irrelevant:return null;case Yn.Failure:case Yn.Error:return Fn.Error;case Yn.Notice:return Fn.Warning;case Yn.Pending:case Yn.Waiting:return zn.Loading;case Yn.Unsupported:case Yn.Disabled:return zn.Disabled;case Yn.Success:return Fn.Success;case Yn.Unknown:default:return Fn.Info}},bo=(e,t,n="reason",o)=>{const r=fo(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Fn.Success?l:c),label:o||("reason"===n?tn(e?.reasonEnum):mo(r,e?.reasonEnum)),tooltip:e?.message,textSize:on.XXXS,invertColors:!0,useSecondaryTone:!0}:null},yo=e=>e.charAt(0).toUpperCase()+e.slice(1),$o=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})};var vo;!function(e){e.SIGNALS="SIGNALS"}(vo||(vo={}));const xo=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===vo.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},So=e=>JSON.parse(JSON.stringify(e)),Eo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),wo=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},Co=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},To=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Ao=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Io=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(n=n.filter(e=>fo(e.workloadOdigosHealthStatus?.status)===Fn.Error)),n},No=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===un&&!e.dataStreamNames?.length):[],ko=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?ko(e,o,n):n[o]=e}):n[i]=r:ko(r,i,n)}return n},Do=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Ro=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},Oo=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},_o=e=>({[yn.K8sAttributes]:m,[yn.AddClusterInfo]:g,[yn.DeleteAttributes]:h,[yn.PiiMasking]:p,[yn.RenameAttributes]:u,[yn.ExtractAttribute]:d,[yn.URLTemplatization]:d}[e]||f),Lo=e=>{if(!e)return Po([]);if(Array.isArray(e))return Po(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=fo(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Po(t)},Po=e=>{const t=e?.filter(({status:e})=>e===Fn.Error),n=e?.filter(({status:e})=>e===Fn.Warning),o=e?.filter(({status:e})=>e===zn.Disabled),r=e?.filter(({status:e})=>e===zn.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?Fn.Error:a?Fn.Warning:s?Fn.Info:void 0}},Fo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Mo=e=>({[Dn.Java]:O,[Dn.Go]:R,[Dn.JavaScript]:D,[Dn.Python]:k,[Dn.DotNet]:N,[Dn.CSharp]:I,[Dn.CPlusPlus]:A,[Dn.Php]:T,[Dn.Ruby]:C,[Dn.Rust]:w,[Dn.Swift]:E,[Dn.Elixir]:S,[Dn.MySql]:x,[Dn.Nginx]:v,[Dn.Postgres]:$,[Dn.Redis]:y,[Dn.Kafka]:b,[Dn.Ignored]:f,[Dn.Unknown]:f,[Dn.Processing]:f,[Dn.NoContainers]:f,[Dn.NoRunningPods]:f}[e]||f),zo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Dn.Unknown:Dn.Unknown,Uo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Bo=e=>e?.map(e=>Mo(zo(e)))||[],jo=e=>e?.map(e=>Mo(e))||[],Ho=e=>e.runtimeInfo?.detectedLanguages?.length?jo(e.runtimeInfo?.detectedLanguages):Bo(e.containers),Go=(e,t)=>{const n={[Vn.Alauda]:Me,[Vn.AlibabaCloud]:Fe,[Vn.AppDynamics]:Pe,[Vn.Axiom]:Le,[Vn.AzureBlob]:_e,[Vn.AzureMonitor]:Oe,[Vn.BetterStack]:Re,[Vn.Bonree]:De,[Vn.Causely]:ke,[Vn.Checkly]:Ne,[Vn.Chronosphere]:Ie,[Vn.ClickHouse]:Ae,[Vn.CloudWatch]:Te,[Vn.Coralogix]:Ce,[Vn.Dash0]:we,[Vn.Datadog]:Ee,[Vn.Dynamic]:Y,[Vn.Dynatrace]:Se,[Vn.ElasticApm]:xe,[Vn.ElasticSearch]:ve,[Vn.GoogleCloud]:$e,[Vn.GoogleCloudOTLP]:$e,[Vn.GrafanaCloudLoki]:ye,[Vn.GrafanaCloudPrometheus]:ye,[Vn.GrafanaCloudTempo]:ye,[Vn.Greptime]:be,[Vn.Groundcover]:fe,[Vn.Honeycomb]:me,[Vn.HyperDX]:ge,[Vn.Instana]:he,[Vn.Jaeger]:pe,[Vn.Kafka]:b,[Vn.Kloudmate]:ue,[Vn.Last9]:de,[Vn.Lightstep]:ce,[Vn.LogzIo]:le,[Vn.Loki]:se,[Vn.Lumigo]:ae,[Vn.Middleware]:ie,[Vn.NewRelic]:re,[Vn.Observe]:oe,[Vn.Odigos]:ne,[Vn.OneUptime]:te,[Vn.OpenObserve]:ee,[Vn.Opsverse]:Z,[Vn.Oracle]:Q,[Vn.OTLP]:Y,[Vn.OTLPHttp]:Y,[Vn.Prometheus]:q,[Vn.Qryn]:J,[Vn.QrynOss]:V,[Vn.Quickwit]:K,[Vn.S3]:W,[Vn.Seq]:X,[Vn.Signalfx]:H,[Vn.Signoz]:G,[Vn.Splunk]:H,[Vn.SplunkSapm]:H,[Vn.SplunkOtlp]:H,[Vn.SumoLogic]:j,[Vn.TelemetryHub]:B,[Vn.Tempo]:U,[Vn.Tingyun]:z,[Vn.Traceloop]:M,[Vn.Uptrace]:F,[Vn.VictoriaMetrics]:P,[Vn.VictoriaMetricsCloud]:P,[Vn.XRay]:L,[Vn.Pyroscope]:_}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xo=e=>({[On.Namespace]:He,[On.Source]:je,[On.Destination]:Be,[On.Action]:d,[On.InstrumentationRule]:Ue,[On.SamplingRule]:ze}[e]),Wo=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,Ko=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Vo=e=>Ko(Wo(e)),Jo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case On.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case On.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case On.Action:const o=e;i=o.type,a=o.name||"";break;case On.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case On.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},qo=(e,t)=>{if(t===On.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Yo=e=>({[Qn.CodeAttributes]:Ke,[Qn.CustomInstrumentation]:We,[Qn.HeadersCollection]:Xe,[Qn.PayloadCollection]:Ge,[Qn.UnknownType]:f}[e]||f),Qo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Dn.Unknown,Zo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Dn.Processing:Dn.NoRunningPods;const o=n?.filter(e=>Qo(e)!==Dn.Ignored);if(!o.length)return Dn.NoContainers;const r=o.find(e=>Qo(e)!==Dn.Unknown);return r?Qo(r):Dn.Unknown},er=(e,t,n)=>(t===On.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},tr=e=>({[so.Logs]:qe,[so.Metrics]:Je,[so.Traces]:Ve,[so.Profiles]:ne}[e]),nr=e=>{if(!e)return ne;return{[Nn.K8s]:m,[Nn.Vm]:Ye}[e]},or=e=>{if(!e)return"Unknown";return{[Nn.K8s]:"Kubernetes Cluster",[Nn.Vm]:"Virtual Machine"}[e]},rr=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...rr(e,t,n)),r}):[]},ir=(e,t)=>{if(t===On.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},ar=(e,t,n)=>{switch(t){case Fn.Default:return e.v2.colors.purple[n];case Fn.Info:return e.v2.colors.blue[n];case Fn.Error:return e.v2.colors.red[n];case Fn.Warning:return e.v2.colors.yellow[n];case Fn.Success:return e.v2.colors.green[n];case zn.Loading:case Un.Disabled:case Un.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},sr=e=>{switch(e){case oo.Updating:case ro.Pending:case io.ContainerCreating:case ao.Waiting:return Fn.Info;case oo.Healthy:case ro.Succeeded:case ro.Running:case io.Running:case ao.Running:return Fn.Success;case oo.Degraded:return Fn.Warning;case oo.Failed:case ro.Failed:case io.Error:case io.CrashLoopBackOff:case io.CreateContainerError:case io.CreateContainerConfigError:case io.ErrImagePull:case io.ErrImageNeverPull:case io.ImagePullBackOff:case io.InvalidImageName:case io.RegistryUnavailable:case io.NetworkNotReady:case io.OOMKilled:case io.ContainerCannotRun:case ao.Terminated:case io.DeadlineExceeded:case io.StartError:return Fn.Error;case oo.Down:case io.Completed:return Un.Disabled;case oo.Unknown:case ro.Unknown:default:return Un.Unknown}},lr=o.div`
41
+ `,cn=Lt(({children:n,variant:o=nn.P,color:r,size:i=on.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},b)=>{const y=n?.toString().split("\n")||[];return e(ln,{ref:b,as:o,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:y.map((n,o)=>t(Pt,{children:[n,o!==y.length-1&&e("br",{})]},`typography-${o}-${n}`))})});cn.displayName="Typography";const dn="https://docs.odigos.io",un="default",pn="this-cluster",hn="This Cluster",gn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},mn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},fn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",INJECTIONS_AS_EXPECTED:"Injections as expected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",OPEN_IN_POD_TAB:"Open in 'Pod' tab",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",RESTART_POD_DESCRIPTION:"Deleting a pod removes it and lets Kubernetes controllers recreate a new one.\nThe new pod starts fresh with the latest instrumentation agent and configuration.\nRecommended for non-production clusters only.",DEBUG:"Debug"},bn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"};var yn,$n,vn,xn,Sn,En,wn,Cn,Tn,An,In,kn,Nn,Dn,Rn,On,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Hn,Wn,Gn,Xn,Kn,Vn,Jn,qn,Yn,Qn,Zn,eo,to,no,oo,ro,io,ao,so,lo;!function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"}(yn||(yn={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute"}($n||($n={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(vn||(vn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(xn||(xn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(Sn||(Sn={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(En||(En={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(wn||(wn={})),function(e){e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"}(Cn||(Cn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Tn||(Tn={})),function(e){e.Ascending="ascending",e.Descending="descending"}(An||(An={})),function(e){e.Community="community",e.Onprem="onprem"}(In||(In={})),function(e){e.K8s="k8s",e.Vm="vm"}(kn||(kn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Nn||(Nn={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(Dn||(Dn={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Rn||(Rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(On||(On={})),function(e){e.DataStream="DataStream"}(_n||(_n={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Ln||(Ln={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Pn||(Pn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Fn||(Fn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Mn||(Mn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(zn||(zn={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Un||(Un={})),function(e){e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"}(Bn||(Bn={})),function(e){e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"}(jn||(jn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Hn||(Hn={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Wn||(Wn={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Gn||(Gn={})),function(e){e.Labeled="labeled"}(Xn||(Xn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Kn||(Kn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"}(Vn||(Vn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig",e.InstrumentationConfig="InstrumentationConfig"}(Jn||(Jn={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(qn||(qn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Yn||(Yn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Qn||(Qn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Zn||(Zn={})),function(e){e.HeaderKeys="headerKeys"}(eo||(eo={})),function(e){e.Java="java",e.Golang="golang"}(to||(to={}));class co{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class uo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(no||(no={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(oo||(oo={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(ro||(ro={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(io||(io={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ao||(ao={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(so||(so={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(lo||(lo={}));const po={[so.Logs]:lo.Logs,[so.Metrics]:lo.Metrics,[so.Traces]:lo.Traces,[so.Profiles]:lo.Profiles},ho={[lo.Logs]:so.Logs,[lo.Metrics]:so.Metrics,[lo.Traces]:so.Traces,[lo.Profiles]:so.Profiles};var go;!function(e){e.Equals="equals",e.NotEquals="notEquals",e.EndWith="endWith",e.StartWith="startWith"}(go||(go={}));const mo=(e,t)=>e===Fn.Success?fn.HEALTHY:e===Fn.Error?fn.NOT_HEALTHY:tn(t),fo=e=>{if(!e)return null;switch(e){case Yn.Irrelevant:return null;case Yn.Failure:case Yn.Error:return Fn.Error;case Yn.Notice:return Fn.Warning;case Yn.Pending:case Yn.Waiting:return zn.Loading;case Yn.Unsupported:case Yn.Disabled:return zn.Disabled;case Yn.Success:return Fn.Success;case Yn.Unknown:default:return Fn.Info}},bo=(e,t,n="reason",o)=>{const r=fo(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Fn.Success?l:c),label:o||("reason"===n?tn(e?.reasonEnum):mo(r,e?.reasonEnum)),tooltip:e?.message,textSize:on.XXXS,invertColors:!0,useSecondaryTone:!0}:null},yo=e=>e.charAt(0).toUpperCase()+e.slice(1),$o=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})};var vo;!function(e){e.SIGNALS="SIGNALS"}(vo||(vo={}));const xo=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===vo.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},So=e=>JSON.parse(JSON.stringify(e)),Eo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),wo=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},Co=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},To=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Ao=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Io=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(n=n.filter(e=>fo(e.workloadOdigosHealthStatus?.status)===Fn.Error)),n},ko=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===un&&!e.dataStreamNames?.length):[],No=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?No(e,o,n):n[o]=e}):n[i]=r:No(r,i,n)}return n},Do=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Ro=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},Oo=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},_o=e=>({[yn.K8sAttributes]:m,[yn.AddClusterInfo]:g,[yn.DeleteAttributes]:h,[yn.PiiMasking]:p,[yn.RenameAttributes]:u,[yn.ExtractAttribute]:d,[yn.URLTemplatization]:d}[e]||f),Lo=e=>{if(!e)return Po([]);if(Array.isArray(e))return Po(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=fo(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Po(t)},Po=e=>{const t=e?.filter(({status:e})=>e===Fn.Error),n=e?.filter(({status:e})=>e===Fn.Warning),o=e?.filter(({status:e})=>e===zn.Disabled),r=e?.filter(({status:e})=>e===zn.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?Fn.Error:a?Fn.Warning:s?Fn.Info:void 0}},Fo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Mo=e=>({[Dn.Java]:O,[Dn.Go]:R,[Dn.JavaScript]:D,[Dn.Python]:N,[Dn.DotNet]:k,[Dn.CSharp]:I,[Dn.CPlusPlus]:A,[Dn.Php]:T,[Dn.Ruby]:C,[Dn.Rust]:w,[Dn.Swift]:E,[Dn.Elixir]:S,[Dn.MySql]:x,[Dn.Nginx]:v,[Dn.Postgres]:$,[Dn.Redis]:y,[Dn.Kafka]:b,[Dn.Ignored]:f,[Dn.Unknown]:f,[Dn.Processing]:f,[Dn.NoContainers]:f,[Dn.NoRunningPods]:f}[e]||f),zo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Dn.Unknown:Dn.Unknown,Uo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Bo=e=>e?.map(e=>Mo(zo(e)))||[],jo=e=>e?.map(e=>Mo(e))||[],Ho=e=>e.runtimeInfo?.detectedLanguages?.length?jo(e.runtimeInfo?.detectedLanguages):Bo(e.containers),Wo=(e,t)=>{const n={[Vn.Alauda]:Me,[Vn.AlibabaCloud]:Fe,[Vn.AppDynamics]:Pe,[Vn.Axiom]:Le,[Vn.AzureBlob]:_e,[Vn.AzureMonitor]:Oe,[Vn.BetterStack]:Re,[Vn.Bonree]:De,[Vn.Causely]:Ne,[Vn.Checkly]:ke,[Vn.Chronosphere]:Ie,[Vn.ClickHouse]:Ae,[Vn.CloudWatch]:Te,[Vn.Coralogix]:Ce,[Vn.Dash0]:we,[Vn.Datadog]:Ee,[Vn.Dynamic]:Y,[Vn.Dynatrace]:Se,[Vn.ElasticApm]:xe,[Vn.ElasticSearch]:ve,[Vn.GoogleCloud]:$e,[Vn.GoogleCloudOTLP]:$e,[Vn.GrafanaCloudLoki]:ye,[Vn.GrafanaCloudPrometheus]:ye,[Vn.GrafanaCloudTempo]:ye,[Vn.Greptime]:be,[Vn.Groundcover]:fe,[Vn.Honeycomb]:me,[Vn.HyperDX]:ge,[Vn.Instana]:he,[Vn.Jaeger]:pe,[Vn.Kafka]:b,[Vn.Kloudmate]:ue,[Vn.Last9]:de,[Vn.Lightstep]:ce,[Vn.LogzIo]:le,[Vn.Loki]:se,[Vn.Lumigo]:ae,[Vn.Middleware]:ie,[Vn.NewRelic]:re,[Vn.Observe]:oe,[Vn.Odigos]:ne,[Vn.OneUptime]:te,[Vn.OpenObserve]:ee,[Vn.Opsverse]:Z,[Vn.Oracle]:Q,[Vn.OTLP]:Y,[Vn.OTLPHttp]:Y,[Vn.Prometheus]:q,[Vn.Qryn]:J,[Vn.QrynOss]:V,[Vn.Quickwit]:K,[Vn.S3]:X,[Vn.Seq]:G,[Vn.Signalfx]:H,[Vn.Signoz]:W,[Vn.Splunk]:H,[Vn.SplunkSapm]:H,[Vn.SplunkOtlp]:H,[Vn.SumoLogic]:j,[Vn.TelemetryHub]:B,[Vn.Tempo]:U,[Vn.Tingyun]:z,[Vn.Traceloop]:M,[Vn.Uptrace]:F,[Vn.VictoriaMetrics]:P,[Vn.VictoriaMetricsCloud]:P,[Vn.XRay]:L,[Vn.Pyroscope]:_}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Go=e=>({[On.Namespace]:He,[On.Source]:je,[On.Destination]:Be,[On.Action]:d,[On.InstrumentationRule]:Ue,[On.SamplingRule]:ze}[e]),Xo=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,Ko=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Vo=e=>Ko(Xo(e)),Jo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case On.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case On.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case On.Action:const o=e;i=o.type,a=o.name||"";break;case On.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case On.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},qo=(e,t)=>{if(t===On.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Yo=e=>({[Qn.CodeAttributes]:Ke,[Qn.CustomInstrumentation]:Xe,[Qn.HeadersCollection]:Ge,[Qn.PayloadCollection]:We,[Qn.UnknownType]:f}[e]||f),Qo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Dn.Unknown,Zo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Dn.Processing:Dn.NoRunningPods;const o=n?.filter(e=>Qo(e)!==Dn.Ignored);if(!o.length)return Dn.NoContainers;const r=o.find(e=>Qo(e)!==Dn.Unknown);return r?Qo(r):Dn.Unknown},er=(e,t,n)=>(t===On.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},tr=e=>({[so.Logs]:qe,[so.Metrics]:Je,[so.Traces]:Ve,[so.Profiles]:ne}[e]),nr=e=>{if(!e)return ne;return{[kn.K8s]:m,[kn.Vm]:Ye}[e]},or=e=>{if(!e)return"Unknown";return{[kn.K8s]:"Kubernetes Cluster",[kn.Vm]:"Virtual Machine"}[e]},rr=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...rr(e,t,n)),r}):[]},ir=(e,t)=>{if(t===On.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},ar=(e,t,n)=>{switch(t){case Fn.Default:return e.v2.colors.purple[n];case Fn.Info:return e.v2.colors.blue[n];case Fn.Error:return e.v2.colors.red[n];case Fn.Warning:return e.v2.colors.yellow[n];case Fn.Success:return e.v2.colors.green[n];case zn.Loading:case Un.Disabled:case Un.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},sr=e=>{switch(e){case oo.Updating:case ro.Pending:case io.ContainerCreating:case ao.Waiting:return Fn.Info;case oo.Healthy:case ro.Succeeded:case ro.Running:case io.Running:case ao.Running:return Fn.Success;case oo.Degraded:return Fn.Warning;case oo.Failed:case ro.Failed:case io.Error:case io.CrashLoopBackOff:case io.CreateContainerError:case io.CreateContainerConfigError:case io.ErrImagePull:case io.ErrImageNeverPull:case io.ImagePullBackOff:case io.InvalidImageName:case io.RegistryUnavailable:case io.NetworkNotReady:case io.OOMKilled:case io.ContainerCannotRun:case ao.Terminated:case io.DeadlineExceeded:case io.StartError:return Fn.Error;case oo.Down:case io.Completed:return Un.Disabled;case oo.Unknown:case ro.Unknown:default:return Un.Unknown}},lr=o.div`
41
42
  border-radius: 100%;
42
43
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
43
44
  position: relative;
@@ -94,12 +95,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
94
95
  `,Cr=({scale:t=1,icon:n})=>{const o=i();return e(wr,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(wr,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(wr,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(wr,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(wr,{$size:39*t,$color:o.v2.colors.purple[500],children:e(n,{size:32*t,fill:o.v2.colors.white[500]})})})})})})},Tr=o.div`
95
96
  flex: 1;
96
97
  align-self: stretch;
98
+ min-height: 0;
97
99
  display: flex;
98
100
  flex-direction: column;
99
101
  gap: ${({$gap:e=24})=>e}px;
100
- overflow-x: scroll;
101
-
102
- max-height: calc(100vh - 24px - ${({$heightOffset:e})=>e||0}px);
102
+ overflow-y: auto;
103
+ overflow-x: auto;
103
104
  padding: 12px;
104
105
  `,Ar=o.div`
105
106
  position: relative;
@@ -107,13 +108,13 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
107
108
  // inherit all the properties of the parent (PageContent)
108
109
  flex: inherit;
109
110
  align-self: inherit;
111
+ min-height: inherit;
110
112
  display: inherit;
111
113
  flex-direction: inherit;
112
114
  gap: inherit;
113
- overflow-x: inherit;
114
115
  `,Ir=o.div`
115
116
  padding: ${({$padding:e})=>e||"12px"};
116
- `,Nr=o.div`
117
+ `,kr=o.div`
117
118
  display: flex;
118
119
  flex-direction: row;
119
120
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -124,7 +125,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
124
125
  height: ${({$height:e})=>e||"unset"};
125
126
  margin: ${({$margin:e="unset"})=>e};
126
127
  padding: ${({$padding:e="unset"})=>e};
127
- `,kr=o.div`
128
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
129
+ `,Nr=o.div`
128
130
  display: flex;
129
131
  flex-direction: column;
130
132
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -135,7 +137,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
135
137
  height: ${({$height:e})=>e||"unset"};
136
138
  margin: ${({$margin:e="unset"})=>e};
137
139
  padding: ${({$padding:e="unset"})=>e};
138
- `,Dr=o(kr)`
140
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
141
+ `,Dr=o(Nr)`
139
142
  width: ${({$width:e})=>e||"100%"};
140
143
  height: ${({$height:e})=>e||"unset"};
141
144
  padding: ${({$padding:e})=>e||"unset"};
@@ -164,10 +167,10 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
164
167
  margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
165
168
  padding: 0 2px;
166
169
  overflow-y: scroll;
167
- `,Lr=o(kr)`
170
+ `,Lr=o(Nr)`
168
171
  max-width: ${({$maxWidth:e})=>e||"unset"};
169
172
  width: 100%;
170
- `,Pr=o(Nr)`
173
+ `,Pr=o(kr)`
171
174
  gap: 16px;
172
175
  padding: 16px;
173
176
  `,Fr=o.div`
@@ -187,7 +190,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
187
190
  background-clip: text;
188
191
  color: transparent;
189
192
  animation: ${Mr} 1s reverse linear infinite;
190
- `,Ur=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),o=Math.floor(n/60),r=n%60;return`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Br=({icon:n,title:o,titleColor:r,titleSize:a=on.S,subTitle:s,subTitleColor:l,subTitleSize:c=on.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=Qe})=>{const $=i(),[v,x]=Ft(()=>d?Ur(d):"");Mt(()=>{if(!d)return;x(Ur(d));const e=setInterval(()=>x(Ur(d)),1e3);return()=>clearInterval(e)},[d]);const S=r||$.v2.colors.white[500],E=l||$.v2.colors.silver[200],w=p||$.v2.colors.black[500];return t(kr,{$gap:16,$alignItems:"center",children:[b?e(yr,{scale:1.7,icon:y}):h?e(ur,{percentage:f}):g?e(fr,{scale:m}):null,(o||s||d||n)&&t(kr,{$gap:8,$alignItems:"center",children:[t(Nr,{$gap:4,children:[n&&e(n,{}),u?e(zr,{align:"center",size:a,$titleColor:S,$gradientColor:w,children:o}):e(cn,{align:"center",size:a,color:S,children:o})]}),s?e(cn,{align:"center",size:c,color:E,children:s}):null,v?e(cn,{align:"center",size:c,color:S,children:v}):null]})]})},jr=(e,t)=>({[Fn.Default]:n=>ne({fill:ar(t,e,"300"),...n}),[Fn.Info]:n=>nt({fill:ar(t,e,"400"),...n}),[Fn.Error]:n=>tt({fill:ar(t,e,"500"),...n}),[Fn.Warning]:n=>et({fill:ar(t,e,"500"),...n}),[Fn.Success]:n=>l({fill:ar(t,e,"500"),...n}),[zn.Loading]:e=>Br({withSpinnerOld:!0,...e}),[Un.Disabled]:n=>c({fill:ar(t,e,"400"),...n}),[Un.Unknown]:n=>Ze({fill:ar(t,e,"300"),...n})}[e]),Hr=e=>{switch(e){case Yn.Success:return Fn.Success;case Yn.Error:case Yn.Failure:return Fn.Error;case Yn.Notice:return Fn.Warning;case Yn.Unsupported:case Yn.Unknown:return Fn.Info;case Yn.Irrelevant:case Yn.Disabled:return zn.Disabled;case Yn.Waiting:return zn.Loading;case Yn.Pending:default:return Fn.Default}},Gr=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Xr={redis:y,mysql:x,postgresql:$,postgres:$,kafka:b,elasticsearch:ve,clickhouse:Ae,oracle:Q,aws:ot},Wr={sts:mt,dynamodb:gt,s3:W,sqs:ht,sns:pt,lambda:ut,kinesis:dt,ec2:ct,apigateway:lt,apigatewayv2:lt,bedrock:st,bedrockruntime:st,eventbridge:at,sfn:it,stepfunctions:it,secretsmanager:rt,cloudwatch:Te},Kr=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Xr[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Xr[o.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Wr[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xr))if(i.includes(e))return t;return Be},Vr=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind};const{namespace:t,name:n,kind:o}=e;return{namespace:t,name:n,kind:o}};function Jr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const qr=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Jr(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},Yr=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Fn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},Qr=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Zr=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},ei=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ti=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ni=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ri=e=>oi.test(e),ii=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:tn(t),reason:n?tn(n):"",message:o}))||[],ai=(e,t)=>{const n=Jr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},si=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>ho[e]):[],li=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>ho[e]):[],ci=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},di=e=>e.replace(/[^\d]/g,""),ui=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},pi=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},hi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},gi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>gi(e)))}else if("object"==typeof o&&null!==o){const e=gi(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},mi=(e,t=2)=>JSON.stringify(e||{},null,t),fi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),bi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),yi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)},$i=o.div`
193
+ `,Ur=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),o=Math.floor(n/60),r=n%60;return`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Br=({icon:n,title:o,titleColor:r,titleSize:a=on.S,subTitle:s,subTitleColor:l,subTitleSize:c=on.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=Qe})=>{const $=i(),[v,x]=Ft(()=>d?Ur(d):"");Mt(()=>{if(!d)return;x(Ur(d));const e=setInterval(()=>x(Ur(d)),1e3);return()=>clearInterval(e)},[d]);const S=r||$.v2.colors.white[500],E=l||$.v2.colors.silver[200],w=p||$.v2.colors.black[500];return t(Nr,{$gap:16,$alignItems:"center",children:[b?e(yr,{scale:1.7,icon:y}):h?e(ur,{percentage:f}):g?e(fr,{scale:m}):null,(o||s||d||n)&&t(Nr,{$gap:8,$alignItems:"center",children:[t(kr,{$gap:4,children:[n&&e(n,{}),u?e(zr,{align:"center",size:a,$titleColor:S,$gradientColor:w,children:o}):e(cn,{align:"center",size:a,color:S,children:o})]}),s?e(cn,{align:"center",size:c,color:E,children:s}):null,v?e(cn,{align:"center",size:c,color:S,children:v}):null]})]})},jr=(e,t)=>({[Fn.Default]:n=>ne({fill:ar(t,e,"300"),...n}),[Fn.Info]:n=>nt({fill:ar(t,e,"400"),...n}),[Fn.Error]:n=>tt({fill:ar(t,e,"500"),...n}),[Fn.Warning]:n=>et({fill:ar(t,e,"500"),...n}),[Fn.Success]:n=>l({fill:ar(t,e,"500"),...n}),[zn.Loading]:e=>Br({withSpinnerOld:!0,...e}),[Un.Disabled]:n=>c({fill:ar(t,e,"400"),...n}),[Un.Unknown]:n=>Ze({fill:ar(t,e,"300"),...n})}[e]),Hr=e=>{switch(e){case Yn.Success:return Fn.Success;case Yn.Error:case Yn.Failure:return Fn.Error;case Yn.Notice:return Fn.Warning;case Yn.Unsupported:case Yn.Unknown:return Fn.Info;case Yn.Irrelevant:case Yn.Disabled:return zn.Disabled;case Yn.Waiting:return zn.Loading;case Yn.Pending:default:return Fn.Default}},Wr=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Gr={redis:y,mysql:x,postgresql:$,postgres:$,kafka:b,elasticsearch:ve,clickhouse:Ae,oracle:Q,aws:ot},Xr={sts:mt,dynamodb:gt,s3:X,sqs:ht,sns:pt,lambda:ut,kinesis:dt,ec2:ct,apigateway:lt,apigatewayv2:lt,bedrock:st,bedrockruntime:st,eventbridge:at,sfn:it,stepfunctions:it,secretsmanager:rt,cloudwatch:Te},Kr=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Gr[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Gr[o.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Xr[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Gr))if(i.includes(e))return t;return Be},Vr=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind};const{namespace:t,name:n,kind:o}=e;return{namespace:t,name:n,kind:o}};function Jr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const qr=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Jr(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},Yr=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Fn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Qr(e){if(!e||0===e.length)return null;const t=[],n=[],o=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",i=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&o.push(s)}return 0===t.length&&0===n.length&&0===o.length?null:{sources:t,namespaces:n,languages:o}}function Zr(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function ei(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Qr(t??null)}}function ti(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Zr(t??null)}}const ni=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),oi=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},ri=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ii=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ai=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,si=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,li=e=>si.test(e),ci=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:tn(t),reason:n?tn(n):"",message:o}))||[],di=(e,t)=>{const n=Jr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},ui=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>ho[e]):[],pi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>ho[e]):[],hi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},gi=e=>e.replace(/[^\d]/g,""),mi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},fi=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},bi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},yi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>yi(e)))}else if("object"==typeof o&&null!==o){const e=yi(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},$i=(e,t=2)=>JSON.stringify(e||{},null,t),vi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),xi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Si=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)},Ei=o.div`
191
194
  /* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
192
195
  position: ${({$asPortal:e})=>e?"fixed":"absolute"};
193
196
  ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
@@ -203,15 +206,15 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
203
206
  width: ${({$width:e})=>void 0!==e?e:"unset"};
204
207
 
205
208
  ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
206
- `,vi=o.div`
209
+ `,wi=o.div`
207
210
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
208
211
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
209
- `,xi=o.div`
212
+ `,Ci=o.div`
210
213
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
211
- `,Si=o.div`
214
+ `,Ti=o.div`
212
215
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
213
216
  border-top: 1px solid ${({theme:e})=>e.colors.border};
214
- `,Ei=Lt(({isOpen:n,asPortal:o,...r},i)=>{const a=zt(()=>{const{children:n,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:u,maxWidth:p,width:h,header:g,footer:m,withPointerEvents:f,...b}=r;return t($i,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:u,$maxWidth:p,$width:h,$asPortal:o,$withPointerEvents:f,...b,children:[g&&e(vi,{$padding:u,children:g}),e(xi,{$padding:u,children:n}),m&&e(Si,{$padding:u,children:m})]})},[i,r,o]);return n?o?Qt.createPortal(a,document.body):a:null});Ei.displayName=Ei.name;const wi=[{type:yn.K8sAttributes,icon:_o(yn.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:yn.AddClusterInfo,icon:_o(yn.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:yn.DeleteAttributes,icon:_o(yn.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:yn.RenameAttributes,icon:_o(yn.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:yn.PiiMasking,icon:_o(yn.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[so.Traces,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:yn.URLTemplatization,icon:_o(yn.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[so.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:yi("v1.21.0")},{type:yn.ExtractAttribute,icon:_o(yn.ExtractAttribute),label:"Extract Attribute",description:"Extract values from existing attributes and save them as new attributes using JSON, SQL, resource-path, or custom regex extraction.",allowedSignals:[so.Traces],docsEndpoint:"/pipeline/actions/attributes/extractattribute",docsDescription:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",minVersion:yi("v1.29.0")}];var Ci;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Ci||(Ci={}));const Ti={[Ci.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Ci.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Ci.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Ci.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Ci.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Ci.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Ai=[{type:Qn.CodeAttributes,icon:Yo(Qn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Dn.Go,Dn.Python]},{type:Qn.CustomInstrumentation,icon:Yo(Qn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[Dn.Go,Dn.Java]},{type:Qn.HeadersCollection,icon:Yo(Qn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Dn.Go,Dn.Java,Dn.JavaScript]},{type:Qn.PayloadCollection,icon:Yo(Qn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Dn.Go,Dn.JavaScript]}],Ii={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},Ni={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},ki={[Cn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[Cn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[Cn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Di="Cancel",Ri="Save",Oi="Edit rule",_i="Edit auto rule",Li="Create rule",Pi="Delete rule",Fi="Save",Mi="Create your first rule",zi="No Rules Exist",Ui="No Results",Bi=e=>`No rules match the search term "${e}"`,ji="Rule name",Hi="Rule type",Gi="Select the type of condition that makes a trace highly relevant.",Xi="Rule Enabled",Wi="Rule Disabled",Ki="Enabled",Vi="Disabled",Ji="Note",qi="HTTP route",Yi="Method",Qi="Keep Percentage",Zi="Keep traces with duration larger than",ea="Keep traces with errors",ta="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",na="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",oa="Custom percentage",ra="Disabled rule",ia="Sample",aa="Keep all",sa="Drop all",la="Operation type",ca="HTTP route prefix",da="Templated path",ua="Templated path prefix",pa="Kafka topic",ha="Custom duration (ms)",ga="No preview available",ma="Server address",fa="Drop at most this percentage of matching traces",ba="Unnamed rule",ya="Sampling Preview",$a="Source Scope",va="Unknown source",xa="Operation",Sa="Duration",Ea="Errors",wa="Keep Percentage",Ca="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Ta="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Aa="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Ia="Retain traces with errors from the selected services and operations.",Na="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",ka="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Da={highlyRelevant:Na,noisy:ka,costReduction:void 0},Ra="Type rule name",Oa="Add note here...",_a="Type here",La="Search source name",Pa="e.g. collector.my.vendor.com",Fa="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ma="Rule will apply to all sources in the cluster",za="If multiple source scopes are set, they must all match simultaneously.",Ua="All sources",Ba="-",ja="All",Ha="All operations",Ga="HTTP server endpoint",Xa="HTTP client endpoint",Wa="Kafka consumer",Ka="Kafka producer",Va="Sampling Rules",Ja='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',qa="Refresh",Ya="Create rule",Qa="Sampling docs",Za="75vw",es="Delete rule?",ts="Are you sure you want to delete this sampling rule?",ns="Delete",os="Cancel",rs="Kubernetes Health Probes",is="Keep All Error Traces",as="Drop Traces Cluster-Wide",ss="A rule with the same matching conditions already exists.",ls="Create 'Noisy Operation Kubernetes Health Probes' rule",cs="Edit 'Noisy Operation Kubernetes Health Probes' rule",ds="Automatically detect and sample health probe traces across the cluster.",us="Create 'Highly Relevant Operations' rule",ps="Edit 'Highly Relevant Operations' rule",hs="Automatically keep all error traces across the entire cluster.",gs="Create 'Cost Reduction' rule",ms="Edit 'Cost Reduction' rule",fs="Automatically drop a percentage of traces across the entire cluster.",bs="Skip setup",ys="Start setup",$s="Next",vs="Go to Sampling",xs="Read more",Ss="Welcome to Sampling",Es="Cut costs without losing what matters",ws="Odigos sampling works in three stages:",Cs="Filter noisy traffic",Ts="Remove non-actionable traces like health checks.",As="Guarantee highly relevance operations",Is="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ns="Reduce cost",ks="Sample routine traffic using percentages.",Ds="Sampling does not drop individual spans - it keeps or drops the entire trace.",Rs="Filter noisy operations",Os="Cut traces with little or no observability value (health-checks, metric scarping, etc)",_s="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",Ls="Preset Rules",Ps="Kubernetes Health Probes",Fs="Automatically ignore health checks",Ms="You can review, adjust, and add additional custom rules later.",zs="Choose your sampling strategy",Us="Pick the approach that best fits your balance of cost vs data-completeness",Bs="Keep List",js="Budget Friendly",Hs="Define which traces must be kept, while all others are sampled by default to minimize cost.",Gs="Cost-oriented - keeps only what you explicitly select.",Xs="Best for very large clusters with high volumes of traces and high costs.",Ws="Higher risk of missing important traces without ongoing review.",Ks="Drop List",Vs="Safe Choice",Js="Define which traces must be aggressively dropped, while all others are kept by default.",qs="Preserves most data unless explicitly filtered.",Ys="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Qs="Advanced",Zs="Maximum Flexibility",el="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",tl="'Keep List' profile",nl="Protect important traces",ol="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",rl="Traces with errors",il="Slow requests (duration above threshold)",al="Mission-Critical endpoints or services",sl="Services under test or evaluation",ll="New deployments",cl="You can review, adjust, and add rules once onboarding is complete.",dl="Common Rules",ul="Preset Rules",pl="Error collection - entire cluster",hl="Keep all traces with errors",gl="Ambient sampling percentage",ml="'Drop List' profile",fl="Reduce high-volume traffic",bl="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",yl="Advanced Configuration",$l="Configure sampling rules",vl="Advanced mode allows you to configure all sampling categories:",xl="Noise Filtering - remove non-actionable traces",Sl="Highly Relevance - guarantee important traces are kept",El='Cost Control - drop traces for "Normal" operations',wl="Rules can target:",Cl="Services",Tl="HTTP Endpoints",Al="DB Operations",Il="Errors",Nl="Latency and more...",kl="Sampling configured successfully!",Dl="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Rl="Odigos will now:",Ol="Filter noisy operations",_l="Guarantee important traces",Ll="Reduce cost using controlled sampling",Pl="Recommended",Fl={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},Ml={noisy:ls,highlyRelevant:us,costReduction:gs},zl={noisy:cs,highlyRelevant:ps,costReduction:ms},Ul={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Bl=[{id:so.Logs,value:"Logs"},{id:so.Metrics,value:"Metrics"},{id:so.Traces,value:"Traces"},{id:so.Profiles,value:"Profiles"}],jl={PID:"process.pid",VPID:"process.vpid"},Hl={[Dn.Go]:"Go",[Dn.Java]:"Java",[Dn.JavaScript]:"Node.js",[Dn.Python]:"Python",[Dn.DotNet]:".NET",[Dn.CSharp]:"C#",[Dn.CPlusPlus]:"C++",[Dn.Php]:"PHP",[Dn.Ruby]:"Ruby",[Dn.Rust]:"Rust",[Dn.Swift]:"Swift",[Dn.Elixir]:"Elixir",[Dn.MySql]:"MySQL",[Dn.Nginx]:"Nginx",[Dn.Postgres]:"PostgreSQL",[Dn.Redis]:"Redis",[Dn.Kafka]:"Kafka",[Dn.Ignored]:"Ignored",[Dn.Unknown]:"Unknown",[Dn.Processing]:"Processing",[Dn.NoContainers]:"No Containers",[Dn.NoRunningPods]:"No Running Pods"},Gl=[{id:Dn.Go,label:Hl[Dn.Go],icon:Mo(Dn.Go)},{id:Dn.Java,label:Hl[Dn.Java],icon:Mo(Dn.Java)},{id:Dn.JavaScript,label:Hl[Dn.JavaScript],icon:Mo(Dn.JavaScript)},{id:Dn.Python,label:Hl[Dn.Python],icon:Mo(Dn.Python)},{id:Dn.Php,label:Hl[Dn.Php],icon:Mo(Dn.Php)},{id:Dn.Ruby,label:Hl[Dn.Ruby],icon:Mo(Dn.Ruby)},{id:Dn.Rust,label:Hl[Dn.Rust],icon:Mo(Dn.Rust)},{id:Dn.DotNet,label:Hl[Dn.DotNet],icon:Mo(Dn.DotNet)},{id:Dn.CSharp,label:Hl[Dn.CSharp],icon:Mo(Dn.CSharp)},{id:Dn.CPlusPlus,label:Hl[Dn.CPlusPlus],icon:Mo(Dn.CPlusPlus)},{id:Dn.Swift,label:Hl[Dn.Swift],icon:Mo(Dn.Swift)},{id:Dn.Elixir,label:Hl[Dn.Elixir],icon:Mo(Dn.Elixir)}],Xl={id:qn.OpentelemetryEbpfInstrumentation,label:qn.OpentelemetryEbpfInstrumentation,icon:ft},Wl={[Dn.Go]:{community:[{id:qn.GolangCommunity,label:qn.GolangCommunity,icon:Mo(Dn.Go)},Xl],enterprise:[{id:qn.GolangEnterprise,label:qn.GolangEnterprise,icon:Mo(Dn.Go)}]},[Dn.JavaScript]:{community:[{id:qn.NodejsCommunity,label:qn.NodejsCommunity,icon:Mo(Dn.JavaScript)},Xl],enterprise:[{id:qn.NodejsEnterprise,label:qn.NodejsEnterprise,icon:Mo(Dn.JavaScript)}]},[Dn.Python]:{community:[{id:qn.PythonCommunity,label:qn.PythonCommunity,icon:Mo(Dn.Python)},Xl],enterprise:[{id:qn.PythonEnterprise,label:qn.PythonEnterprise,icon:Mo(Dn.Python)}]},[Dn.Java]:{community:[{id:qn.JavaCommunity,label:qn.JavaCommunity,icon:Mo(Dn.Java)},Xl],enterprise:[{id:qn.JavaEnterprise,label:qn.JavaEnterprise,icon:Mo(Dn.Java)},{id:qn.JavaEbpfInstrumentations,label:qn.JavaEbpfInstrumentations,icon:Mo(Dn.Java)}]},[Dn.DotNet]:{community:[{id:qn.DotNetCommunity,label:qn.DotNetCommunity,icon:Mo(Dn.DotNet)},Xl],enterprise:[{id:qn.DotNetEnterprise,label:qn.DotNetEnterprise,icon:Mo(Dn.DotNet)}]},[Dn.Ruby]:{community:[{id:qn.RubyCommunity,label:qn.RubyCommunity,icon:Mo(Dn.Ruby)},Xl],enterprise:[{id:qn.RubyEnterprise,label:qn.RubyEnterprise,icon:Mo(Dn.Ruby)}]},[Dn.Php]:{community:[{id:qn.PhpCommunity,label:qn.PhpCommunity,icon:Mo(Dn.Php)},Xl],enterprise:[]},[Dn.CSharp]:{community:[],enterprise:[{id:qn.CPlusPlusEnterprise,label:qn.CPlusPlusEnterprise,icon:Mo(Dn.CSharp)}]},[Dn.MySql]:{community:[],enterprise:[{id:qn.MySqlEnterprise,label:qn.MySqlEnterprise,icon:Mo(Dn.MySql)}]},[Dn.CPlusPlus]:{community:[Xl],enterprise:[]},[Dn.Rust]:{community:[Xl],enterprise:[]},[Dn.Swift]:{community:[Xl],enterprise:[]},[Dn.Elixir]:{community:[Xl],enterprise:[]},[Dn.Nginx]:{community:[Xl],enterprise:[]},[Dn.Postgres]:{community:[Xl],enterprise:[]},[Dn.Redis]:{community:[Xl],enterprise:[]},[Dn.Kafka]:{community:[Xl],enterprise:[]},[Dn.Ignored]:{community:[],enterprise:[]},[Dn.Unknown]:{community:[Xl],enterprise:[]},[Dn.Processing]:{community:[],enterprise:[]},[Dn.NoContainers]:{community:[],enterprise:[]},[Dn.NoRunningPods]:{community:[],enterprise:[]}},Kl=6048e5,Vl=_t(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Jl=_t()(Xt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:gn.DARK_MODE,storage:"undefined"!=typeof window?Wt(()=>localStorage):void 0})),ql={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:un},Yl=_t(e=>({...ql,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(ql)})),Ql=_t(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Zl=e=>[...e].sort((e,t)=>{const n=e.id.namespace.localeCompare(t.id.namespace);return 0!==n?n:e.id.name.localeCompare(t.id.name)}),ec=_t(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===On.Namespace?"namespacesLoading":t===On.Source?"sourcesLoading":t===On.Destination?"destinationsLoading":t===On.Action?"actionsLoading":t===On.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===On.Namespace?"namespaces":t===On.Source?"sources":t===On.Destination?"destinations":t===On.Action?"actions":t===On.InstrumentationRule?"instrumentationRules":"NONE";if("NONE"===o)return;const r="sources"===o?Zl(n):n;e({[o]:r})},addEntities:(t,n)=>{const o=t===On.Namespace?"namespaces":t===On.Source?"sources":t===On.Destination?"destinations":t===On.Action?"actions":t===On.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],r=new Map;t.forEach((e,t)=>{r.set(Vo(e),t)}),n.forEach(e=>{const n=Vo(e),o=r.get(n);void 0!==o?t[o]={...t[o],...e}:(r.set(n,t.length),t.push(e))});const i="sources"===o?Zl(t):t;return{[o]:i}})},removeEntities:(t,n)=>{const o=t===On.Namespace?"namespaces":t===On.Source?"sources":t===On.Destination?"destinations":t===On.Action?"actions":t===On.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(n.map(e=>Ko(e))),r=e[o].filter(e=>!t.has(Vo(e)));return{[o]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),tc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),nc=_t(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:tc})),oc=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),rc=_t((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,r=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:r,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var ic;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(ic||(ic={}));const ac=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),sc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),lc=_t((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=ac();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...r.progress,[n]:sc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=ac(n,i.progress);return a.current+=o,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[n]:sc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),cc=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),dc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},uc=(e,t)=>e.destinationType.type!==t.destinationType.type,pc=_t(e=>({...dc,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>uc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>uc(e,t))})),clearStore:()=>e(()=>({...dc}))})),hc=e=>{function t(){return void 0===e?{}:So(e)}const[n,o]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Ut((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[o,r]of Object.entries(e)){const e=o;if(Array.isArray(r)){const o=t[e];Array.isArray(o)&&r.length===o.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const o=l(r,t[e]);Object.keys(o).length>0&&(n[e]=o)}else r!==t[e]&&(n[e]=t[e])}for(const o of Object.keys(t))o in e||(n[o]=t[o]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=zt(()=>!c(a,n),[a,n]);Mt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Ut((e,t)=>Eo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?o(n=>({...n,[e]:t})):o(e=>{const n=So(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n}),i(e=>{const t=n,o=r[r.length-1],i=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[o],s})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const o=So(e);let r=o;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,o})}else n&&i({...n})},resetFormData:e=>{const n=e||t();o(n),s(n),i({})},getNestedValue:u}},gc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractions:null}},mc=()=>{const{addNotification:e}=rc(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=hc(gc),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:n,handleFormChange:o,resetFormData:i,validateForm:n=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Qr(t)&&(o[e]=mn.FIELD_IS_REQUIRED)}}),t.type===yn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=mn.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:Fn.Warning,title:n.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:s})=>{const l={...So(gc),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case $n.LabelsAttributes:case $n.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case $n.CollectContainerAttributes:case $n.CollectReplicaSetAttributes:case $n.CollectWorkloadId:case $n.CollectClusterId:case $n.ClusterAttributes:case $n.OverwriteExistingValues:case $n.AttributeNamesToDelete:case $n.Renames:case $n.PiiCategories:case $n.Extractions:case $n.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},fc=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},bc=()=>{const{setCurrentModal:e}=oc(),{setDrawerType:t,setDrawerEntityId:n}=Ql(),{setActiveNodeType:o,setActiveNodeId:r,activeNodeId:i}=Vl();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:u}}=s;switch(i===l?(o(null),r(null)):(o(c),r(l)),u){case On.Source:case On.Destination:case On.Action:case On.InstrumentationRule:t(u),n(d);break;case Kn.AddSource:e(On.Source);break;case Kn.AddDestination:e(On.Destination);break;case Kn.AddAction:e(On.Action);break;case Kn.AddRule:e(On.InstrumentationRule)}}}},yc=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Ql(),{markAsDismissed:n,markAsSeen:o}=rc();return{onClickNotification:(r,i)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=i||{};if(s&&l)switch(s){case On.InstrumentationRule:e(On.InstrumentationRule),t(qo(l,On.InstrumentationRule));break;case On.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(On.Source),t(qo(l,On.Source));break;case On.Action:e(On.Action),t(qo(l,On.Action));break;case On.Destination:case"Destination":e(On.Destination),t(qo(l,On.Destination))}o(a),c&&n(a)}}},$c=()=>{const e=Bt(null),[t,n]=Ft(0),[o,r]=Ft(0);return Mt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),r(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var vc;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(vc||(vc={}));const xc=o.div`
217
+ `,Ai=Lt(({isOpen:n,asPortal:o,...r},i)=>{const a=zt(()=>{const{children:n,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:u,maxWidth:p,width:h,header:g,footer:m,withPointerEvents:f,...b}=r;return t(Ei,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:u,$maxWidth:p,$width:h,$asPortal:o,$withPointerEvents:f,...b,children:[g&&e(wi,{$padding:u,children:g}),e(Ci,{$padding:u,children:n}),m&&e(Ti,{$padding:u,children:m})]})},[i,r,o]);return n?o?Qt.createPortal(a,document.body):a:null});Ai.displayName=Ai.name;const Ii=[{type:yn.K8sAttributes,icon:_o(yn.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:yn.AddClusterInfo,icon:_o(yn.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:yn.DeleteAttributes,icon:_o(yn.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:yn.RenameAttributes,icon:_o(yn.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[so.Traces,so.Metrics,so.Logs,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:yn.PiiMasking,icon:_o(yn.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[so.Traces,so.Profiles],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:yn.URLTemplatization,icon:_o(yn.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[so.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:Si("v1.21.0")},{type:yn.ExtractAttribute,icon:_o(yn.ExtractAttribute),label:"Extract Attribute",description:"Extract values from existing attributes and save them as new attributes using JSON, SQL, resource-path, or custom regex extraction.",allowedSignals:[so.Traces],docsEndpoint:"/pipeline/actions/attributes/extractattribute",docsDescription:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",minVersion:Si("v1.29.0")}];var ki;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(ki||(ki={}));const Ni={[ki.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[ki.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[ki.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[ki.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[ki.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[ki.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Di=[{type:Qn.CodeAttributes,icon:Yo(Qn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Dn.Go,Dn.Python,Dn.JavaScript]},{type:Qn.CustomInstrumentation,icon:Yo(Qn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[Dn.Go,Dn.Java]},{type:Qn.HeadersCollection,icon:Yo(Qn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Dn.Go,Dn.Java,Dn.JavaScript]},{type:Qn.PayloadCollection,icon:Yo(Qn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Dn.Go,Dn.JavaScript]}],Ri={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},Oi={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},_i={[Cn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[Cn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[Cn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Li="Cancel",Pi="Save",Fi="Edit rule",Mi="Edit auto rule",zi="Create rule",Ui="Delete rule",Bi="Save",ji="Create your first rule",Hi="No Rules Exist",Wi="No Results",Gi=e=>`No rules match the search term "${e}"`,Xi="Rule name",Ki="Rule type",Vi="Select the type of condition that makes a trace highly relevant.",Ji="Rule Enabled",qi="Rule Disabled",Yi="Enabled",Qi="Disabled",Zi="Note",ea="HTTP route",ta="Method",na="Keep Percentage",oa="Keep traces with duration larger than",ra="Keep traces with errors",ia="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",aa="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",sa="Custom percentage",la="Disabled rule",ca="Sample",da="Keep all",ua="Drop all",pa="Operation type",ha="HTTP route prefix",ga="Templated path",ma="Templated path prefix",fa="Kafka topic",ba="Custom duration (ms)",ya="No preview available",$a="Server address",va="Drop at most this percentage of matching traces",xa="Unnamed rule",Sa="Sampling Preview",Ea="Source Scope",wa="Unknown source",Ca="Operation",Ta="Duration",Aa="Errors",Ia="Keep Percentage",ka="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Na="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Da="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Ra="Retain traces with errors from the selected services and operations.",Oa="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",_a="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",La={highlyRelevant:Oa,noisy:_a,costReduction:void 0},Pa="Type rule name",Fa="Add note here...",Ma="Type here",za="Search source name",Ua="e.g. collector.my.vendor.com",Ba="Optional notes (not used by the system). Add any context or details for this sampling rule.",ja="Rule will apply to all sources in the cluster",Ha="If multiple source scopes are set, they must all match simultaneously.",Wa="All sources",Ga="-",Xa="All",Ka="Sources",Va="Namespaces",Ja="Languages",qa="any of",Ya="AND",Qa="All operations",Za="HTTP server endpoint",es="HTTP client endpoint",ts="Kafka consumer",ns="Kafka producer",os="Sampling Rules",rs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',is="Refresh",as="Create rule",ss="Sampling docs",ls="75vw",cs="Delete rule?",ds="Are you sure you want to delete this sampling rule?",us="Delete",ps="Cancel",hs="Kubernetes Health Probes",gs="Keep All Error Traces",ms="Drop Traces Cluster-Wide",fs="A rule with the same matching conditions already exists.",bs="Create 'Noisy Operation Kubernetes Health Probes' rule",ys="Edit 'Noisy Operation Kubernetes Health Probes' rule",$s="Automatically detect and sample health probe traces across the cluster.",vs="Create 'Highly Relevant Operations' rule",xs="Edit 'Highly Relevant Operations' rule",Ss="Automatically keep all error traces across the entire cluster.",Es="Create 'Cost Reduction' rule",ws="Edit 'Cost Reduction' rule",Cs="Automatically drop a percentage of traces across the entire cluster.",Ts="Skip setup",As="Start setup",Is="Next",ks="Go to Sampling",Ns="Read more",Ds="Welcome to Sampling",Rs="Cut costs without losing what matters",Os="Odigos sampling works in three stages:",_s="Filter noisy traffic",Ls="Remove non-actionable traces like health checks.",Ps="Guarantee highly relevance operations",Fs="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ms="Reduce cost",zs="Sample routine traffic using percentages.",Us="Sampling does not drop individual spans - it keeps or drops the entire trace.",Bs="Filter noisy operations",js="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Hs="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",Ws="Preset Rules",Gs="Kubernetes Health Probes",Xs="Automatically ignore health checks",Ks="You can review, adjust, and add additional custom rules later.",Vs="Choose your sampling strategy",Js="Pick the approach that best fits your balance of cost vs data-completeness",qs="Keep List",Ys="Budget Friendly",Qs="Define which traces must be kept, while all others are sampled by default to minimize cost.",Zs="Cost-oriented - keeps only what you explicitly select.",el="Best for very large clusters with high volumes of traces and high costs.",tl="Higher risk of missing important traces without ongoing review.",nl="Drop List",ol="Safe Choice",rl="Define which traces must be aggressively dropped, while all others are kept by default.",il="Preserves most data unless explicitly filtered.",al="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",sl="Advanced",ll="Maximum Flexibility",cl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",dl="'Keep List' profile",ul="Protect important traces",pl="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",hl="Traces with errors",gl="Slow requests (duration above threshold)",ml="Mission-Critical endpoints or services",fl="Services under test or evaluation",bl="New deployments",yl="You can review, adjust, and add rules once onboarding is complete.",$l="Common Rules",vl="Preset Rules",xl="Error collection - entire cluster",Sl="Keep all traces with errors",El="Ambient sampling percentage",wl="'Drop List' profile",Cl="Reduce high-volume traffic",Tl="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Al="Advanced Configuration",Il="Configure sampling rules",kl="Advanced mode allows you to configure all sampling categories:",Nl="Noise Filtering - remove non-actionable traces",Dl="Highly Relevance - guarantee important traces are kept",Rl='Cost Control - drop traces for "Normal" operations',Ol="Rules can target:",_l="Services",Ll="HTTP Endpoints",Pl="DB Operations",Fl="Errors",Ml="Latency and more...",zl="Sampling configured successfully!",Ul="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Bl="Odigos will now:",jl="Filter noisy operations",Hl="Guarantee important traces",Wl="Reduce cost using controlled sampling",Gl="Recommended",Xl={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},Kl={noisy:bs,highlyRelevant:vs,costReduction:Es},Vl={noisy:ys,highlyRelevant:xs,costReduction:ws},Jl={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ql=[{id:so.Logs,value:"Logs"},{id:so.Metrics,value:"Metrics"},{id:so.Traces,value:"Traces"},{id:so.Profiles,value:"Profiles"}],Yl={PID:"process.pid",VPID:"process.vpid"},Ql={[Dn.Go]:"Go",[Dn.Java]:"Java",[Dn.JavaScript]:"Node.js",[Dn.Python]:"Python",[Dn.DotNet]:".NET",[Dn.CSharp]:"C#",[Dn.CPlusPlus]:"C++",[Dn.Php]:"PHP",[Dn.Ruby]:"Ruby",[Dn.Rust]:"Rust",[Dn.Swift]:"Swift",[Dn.Elixir]:"Elixir",[Dn.MySql]:"MySQL",[Dn.Nginx]:"Nginx",[Dn.Postgres]:"PostgreSQL",[Dn.Redis]:"Redis",[Dn.Kafka]:"Kafka",[Dn.Ignored]:"Ignored",[Dn.Unknown]:"Unknown",[Dn.Processing]:"Processing",[Dn.NoContainers]:"No Containers",[Dn.NoRunningPods]:"No Running Pods"},Zl=[{id:Dn.Go,label:Ql[Dn.Go],icon:Mo(Dn.Go)},{id:Dn.Java,label:Ql[Dn.Java],icon:Mo(Dn.Java)},{id:Dn.JavaScript,label:Ql[Dn.JavaScript],icon:Mo(Dn.JavaScript)},{id:Dn.Python,label:Ql[Dn.Python],icon:Mo(Dn.Python)},{id:Dn.Php,label:Ql[Dn.Php],icon:Mo(Dn.Php)},{id:Dn.Ruby,label:Ql[Dn.Ruby],icon:Mo(Dn.Ruby)},{id:Dn.Rust,label:Ql[Dn.Rust],icon:Mo(Dn.Rust)},{id:Dn.DotNet,label:Ql[Dn.DotNet],icon:Mo(Dn.DotNet)},{id:Dn.CSharp,label:Ql[Dn.CSharp],icon:Mo(Dn.CSharp)},{id:Dn.CPlusPlus,label:Ql[Dn.CPlusPlus],icon:Mo(Dn.CPlusPlus)},{id:Dn.Swift,label:Ql[Dn.Swift],icon:Mo(Dn.Swift)},{id:Dn.Elixir,label:Ql[Dn.Elixir],icon:Mo(Dn.Elixir)}],ec={id:qn.OpentelemetryEbpfInstrumentation,label:qn.OpentelemetryEbpfInstrumentation,icon:ft},tc={[Dn.Go]:{community:[{id:qn.GolangCommunity,label:qn.GolangCommunity,icon:Mo(Dn.Go)},ec],enterprise:[{id:qn.GolangEnterprise,label:qn.GolangEnterprise,icon:Mo(Dn.Go)}]},[Dn.JavaScript]:{community:[{id:qn.NodejsCommunity,label:qn.NodejsCommunity,icon:Mo(Dn.JavaScript)},ec],enterprise:[{id:qn.NodejsEnterprise,label:qn.NodejsEnterprise,icon:Mo(Dn.JavaScript)}]},[Dn.Python]:{community:[{id:qn.PythonCommunity,label:qn.PythonCommunity,icon:Mo(Dn.Python)},ec],enterprise:[{id:qn.PythonEnterprise,label:qn.PythonEnterprise,icon:Mo(Dn.Python)}]},[Dn.Java]:{community:[{id:qn.JavaCommunity,label:qn.JavaCommunity,icon:Mo(Dn.Java)},ec],enterprise:[{id:qn.JavaEnterprise,label:qn.JavaEnterprise,icon:Mo(Dn.Java)},{id:qn.JavaEbpfInstrumentations,label:qn.JavaEbpfInstrumentations,icon:Mo(Dn.Java)}]},[Dn.DotNet]:{community:[{id:qn.DotNetCommunity,label:qn.DotNetCommunity,icon:Mo(Dn.DotNet)},ec],enterprise:[{id:qn.DotNetEnterprise,label:qn.DotNetEnterprise,icon:Mo(Dn.DotNet)}]},[Dn.Ruby]:{community:[{id:qn.RubyCommunity,label:qn.RubyCommunity,icon:Mo(Dn.Ruby)},ec],enterprise:[{id:qn.RubyEnterprise,label:qn.RubyEnterprise,icon:Mo(Dn.Ruby)}]},[Dn.Php]:{community:[{id:qn.PhpCommunity,label:qn.PhpCommunity,icon:Mo(Dn.Php)},ec],enterprise:[]},[Dn.CSharp]:{community:[],enterprise:[{id:qn.CPlusPlusEnterprise,label:qn.CPlusPlusEnterprise,icon:Mo(Dn.CSharp)}]},[Dn.MySql]:{community:[],enterprise:[{id:qn.MySqlEnterprise,label:qn.MySqlEnterprise,icon:Mo(Dn.MySql)}]},[Dn.CPlusPlus]:{community:[ec],enterprise:[]},[Dn.Rust]:{community:[ec],enterprise:[]},[Dn.Swift]:{community:[ec],enterprise:[]},[Dn.Elixir]:{community:[ec],enterprise:[]},[Dn.Nginx]:{community:[ec],enterprise:[]},[Dn.Postgres]:{community:[ec],enterprise:[]},[Dn.Redis]:{community:[ec],enterprise:[]},[Dn.Kafka]:{community:[ec],enterprise:[]},[Dn.Ignored]:{community:[],enterprise:[]},[Dn.Unknown]:{community:[ec],enterprise:[]},[Dn.Processing]:{community:[],enterprise:[]},[Dn.NoContainers]:{community:[],enterprise:[]},[Dn.NoRunningPods]:{community:[],enterprise:[]}},nc=6048e5,oc=_t(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),rc=_t()(Gt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:gn.DARK_MODE,storage:"undefined"!=typeof window?Xt(()=>localStorage):void 0})),ic={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:un},ac=_t(e=>({...ic,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(ic)})),sc=_t(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),lc=e=>[...e].sort((e,t)=>{const n=e.id.namespace.localeCompare(t.id.namespace);return 0!==n?n:e.id.name.localeCompare(t.id.name)}),cc=_t(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===On.Namespace?"namespacesLoading":t===On.Source?"sourcesLoading":t===On.Destination?"destinationsLoading":t===On.Action?"actionsLoading":t===On.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===On.Namespace?"namespaces":t===On.Source?"sources":t===On.Destination?"destinations":t===On.Action?"actions":t===On.InstrumentationRule?"instrumentationRules":"NONE";if("NONE"===o)return;const r="sources"===o?lc(n):n;e({[o]:r})},addEntities:(t,n)=>{const o=t===On.Namespace?"namespaces":t===On.Source?"sources":t===On.Destination?"destinations":t===On.Action?"actions":t===On.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],r=new Map;t.forEach((e,t)=>{r.set(Vo(e),t)}),n.forEach(e=>{const n=Vo(e),o=r.get(n);void 0!==o?t[o]={...t[o],...e}:(r.set(n,t.length),t.push(e))});const i="sources"===o?lc(t):t;return{[o]:i}})},removeEntities:(t,n)=>{const o=t===On.Namespace?"namespaces":t===On.Source?"sources":t===On.Destination?"destinations":t===On.Action?"actions":t===On.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(n.map(e=>Ko(e))),r=e[o].filter(e=>!t.has(Vo(e)));return{[o]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),dc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),uc=_t(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:dc})),pc=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),hc=_t((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,r=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:r,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var gc;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(gc||(gc={}));const mc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),fc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),bc=_t((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=mc();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...r.progress,[n]:fc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=mc(n,i.progress);return a.current+=o,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[n]:fc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),yc=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),$c={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},vc=(e,t)=>e.destinationType.type!==t.destinationType.type,xc=_t(e=>({...$c,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>vc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>vc(e,t))})),clearStore:()=>e(()=>({...$c}))})),Sc=e=>{function t(){return void 0===e?{}:So(e)}const[n,o]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Ut((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[o,r]of Object.entries(e)){const e=o;if(Array.isArray(r)){const o=t[e];Array.isArray(o)&&r.length===o.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const o=l(r,t[e]);Object.keys(o).length>0&&(n[e]=o)}else r!==t[e]&&(n[e]=t[e])}for(const o of Object.keys(t))o in e||(n[o]=t[o]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=zt(()=>!c(a,n),[a,n]);Mt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Ut((e,t)=>Eo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?o(n=>({...n,[e]:t})):o(e=>{const n=So(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n}),i(e=>{const t=n,o=r[r.length-1],i=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[o],s})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const o=So(e);let r=o;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,o})}else n&&i({...n})},resetFormData:e=>{const n=e||t();o(n),s(n),i({})},getNestedValue:u}},Ec={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},wc=()=>{const{addNotification:e}=hc(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Sc(Ec),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:n,handleFormChange:o,resetFormData:i,validateForm:n=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ni(t)&&(o[e]=mn.FIELD_IS_REQUIRED)}}),t.type===yn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=mn.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:Fn.Warning,title:n.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:s})=>{const l={...So(Ec),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case $n.LabelsAttributes:case $n.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case $n.CollectContainerAttributes:case $n.CollectReplicaSetAttributes:case $n.CollectWorkloadId:case $n.CollectClusterId:case $n.ClusterAttributes:case $n.OverwriteExistingValues:case $n.AttributeNamesToDelete:case $n.Renames:case $n.PiiCategories:case $n.ExtractAttribute:case $n.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},Cc=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Tc=()=>{const{setCurrentModal:e}=pc(),{setDrawerType:t,setDrawerEntityId:n}=sc(),{setActiveNodeType:o,setActiveNodeId:r,activeNodeId:i}=oc();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:u}}=s;switch(i===l?(o(null),r(null)):(o(c),r(l)),u){case On.Source:case On.Destination:case On.Action:case On.InstrumentationRule:t(u),n(d);break;case Kn.AddSource:e(On.Source);break;case Kn.AddDestination:e(On.Destination);break;case Kn.AddAction:e(On.Action);break;case Kn.AddRule:e(On.InstrumentationRule)}}}},Ac=()=>{const{setDrawerType:e,setDrawerEntityId:t}=sc(),{markAsDismissed:n,markAsSeen:o}=hc();return{onClickNotification:(r,i)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=i||{};if(s&&l)switch(s){case On.InstrumentationRule:e(On.InstrumentationRule),t(qo(l,On.InstrumentationRule));break;case On.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(On.Source),t(qo(l,On.Source));break;case On.Action:e(On.Action),t(qo(l,On.Action));break;case On.Destination:case"Destination":e(On.Destination),t(qo(l,On.Destination))}o(a),c&&n(a)}}},Ic=()=>{const e=Bt(null),[t,n]=Ft(0),[o,r]=Ft(0);return Mt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),r(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var kc;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(kc||(kc={}));const Nc=o.div`
215
218
  width: ${({$size:e})=>1.5*e}px;
216
219
  height: ${({$size:e})=>1.5*e}px;
217
220
  display: flex;
@@ -222,7 +225,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
222
225
  &:hover {
223
226
  background: ${({theme:e})=>e.v2.colors.silver[900]};
224
227
  }
225
- `,Sc=({"data-id":t,icon:n,size:o=vc.S,onClick:r,disabled:i})=>e(xc,{"data-id":t,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(n,{size:o})}),Ec=({onDone:t}={})=>{const[n,o]=Ft(!1),[r,i]=Ft(-1),a=Ut(async(e,r)=>{if(!n){if(o(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[n,t]);return{CopyButton:Ut(({value:t,size:o})=>e(Sc,{icon:n?bt:yt,size:o,onClick:()=>a(t)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},wc=e=>{const{addNotification:t}=rc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=hc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?Zr(n.name)?o.name=void 0:(r=!1,o.name=mn.ILLEGAL_K8S_LABEL):(r=!1,o.name=mn.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Fn.Warning,title:e.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),r},loadFormWithDrawerItem:({name:t})=>{const n={...So(e),name:t};o(void 0,void 0,n)}}},Cc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Tc=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=rc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=hc(Cc),[c,d]=Ft([]),[u,p]=Ft([]);Mt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:r,initialValue:i,renderCondition:a}=e;if(n===Ln.Dropdown){const e=Jr(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:r,value:i,renderCondition:a,...Jr(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Jr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),Mt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Mt(()=>{if(t&&0===si(r.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,r.exportedSignals]);return{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:o,required:r})=>{r&&!o&&(n=!1,t[e]=mn.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:Fn.Warning,title:e.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:r})=>{const i={...So(Cc),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Jr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Ac={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[no.HttpRequest]:null,[no.HttpResponse]:null,[no.DbQuery]:null,[no.Messaging]:null},codeAttributes:{[Zn.Column]:null,[Zn.FilePath]:null,[Zn.Function]:null,[Zn.LineNumber]:null,[Zn.Namespace]:null,[Zn.StackTrace]:null},headersCollection:null,customInstrumentations:{[to.Java]:null,[to.Golang]:null}},Ic=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=hc(Ac);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:r,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...So(Ac),ruleName:e,notes:t,disabled:o};r&&(l.payloadCollection={[no.HttpRequest]:r[no.HttpRequest]?{}:null,[no.HttpResponse]:r[no.HttpResponse]?{}:null,[no.DbQuery]:r[no.DbQuery]?{}:null,[no.Messaging]:r[no.Messaging]?{}:null}),i&&(l.codeAttributes={[Zn.Column]:i[Zn.Column]||null,[Zn.FilePath]:i[Zn.FilePath]||null,[Zn.Function]:i[Zn.Function]||null,[Zn.LineNumber]:i[Zn.LineNumber]||null,[Zn.Namespace]:i[Zn.Namespace]||null,[Zn.StackTrace]:i[Zn.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[to.Java]:s[to.Java]||null,[to.Golang]:s[to.Golang]||null}),n(void 0,void 0,l)}}},Nc=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:r,withMetaKey:i},a)=>(Mt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,r,i,a]),null),kc="data-ignore-outside-click",Dc=(e,t)=>{const n=Bt(t);n.current=t,Mt(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(kc))return!0;t=t.parentNode}return!1})(o)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Rc=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[o,r]=Ft(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(n)};return jt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),Mt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),o},Oc=(e,{behavior:t="smooth",block:n="center",inline:o,delayMs:r=50}={})=>{const i=Bt(null);return Mt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:o})},r);return()=>window.clearTimeout(a)},[e,t,n,o,r]),i},_c=({sectionNames:e,threshold:t=.4})=>{const[n,o]=Ft(e[0]||""),[r,i]=Ft(null),a=Bt({}),s=Bt(!1),l=Bt(!1),c=Ut((e,t)=>{a.current[e]=t},[]),d=Ut(e=>{i(e)},[]),u=Ut(e=>{l.current=!0,o(e)},[]);return Mt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),Mt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},Lc=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:o="local"}={})=>{const r=Bt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});Dc(r,()=>{i&&(a(!1),n?.())});return{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===o)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},Pc=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Jr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Fc={otelServiceName:"",currentStreamName:""},Mc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=hc(Fc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...So(Fc),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Gt.addDefaultLocale(Kt)}catch(e){}const zc=new Gt(Kt.locale),Uc=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Bc=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),jc=()=>{const[e,t]=Ft(0);Mt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]);return{formatTimeAgo:Ut(e=>{try{return zc.format(Bc(e))}catch(e){return"-"}},[e]),formatDurationAgo:Ut((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=Bc(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===n?"0s":o?"just now":"0 seconds";const a=[];for(const e of Uc){if(a.length===t)break;const o=Math.floor(i/e.ms);if(!(o<=0&&0===a.length)){if(o<=0)break;i-=o*e.ms,a.push("short"===n?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return o&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},Hc=o.div`
228
+ `,Dc=({"data-id":t,icon:n,size:o=kc.S,onClick:r,disabled:i})=>e(Nc,{"data-id":t,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(n,{size:o})}),Rc=({onDone:t}={})=>{const[n,o]=Ft(!1),[r,i]=Ft(-1),a=Ut(async(e,r)=>{if(!n){if(o(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[n,t]);return{CopyButton:Ut(({value:t,size:o})=>e(Dc,{icon:n?bt:yt,size:o,onClick:()=>a(t)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},Oc=e=>{const{addNotification:t}=hc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=Sc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?oi(n.name)?o.name=void 0:(r=!1,o.name=mn.ILLEGAL_K8S_LABEL):(r=!1,o.name=mn.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Fn.Warning,title:e.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),r},loadFormWithDrawerItem:({name:t})=>{const n={...So(e),name:t};o(void 0,void 0,n)}}},_c={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Lc=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=hc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Sc(_c),[c,d]=Ft([]),[u,p]=Ft([]);Mt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:r,initialValue:i,renderCondition:a}=e;if(n===Ln.Dropdown){const e=Jr(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:r,value:i,renderCondition:a,...Jr(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Jr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),Mt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Mt(()=>{if(t&&0===ui(r.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,r.exportedSignals]);return{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:o,required:r})=>{r&&!o&&(n=!1,t[e]=mn.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:Fn.Warning,title:e.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:r})=>{const i={...So(_c),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Jr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Pc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[no.HttpRequest]:null,[no.HttpResponse]:null,[no.DbQuery]:null,[no.Messaging]:null},codeAttributes:{[Zn.Column]:null,[Zn.FilePath]:null,[Zn.Function]:null,[Zn.LineNumber]:null,[Zn.Namespace]:null,[Zn.StackTrace]:null},headersCollection:null,customInstrumentations:{[to.Java]:null,[to.Golang]:null}},Fc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Sc(Pc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,sourceScopes:r,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>{const c={...So(Pc),ruleName:e,notes:t,disabled:o,sourceScopes:r??null};i&&(c.payloadCollection={[no.HttpRequest]:i[no.HttpRequest]?{}:null,[no.HttpResponse]:i[no.HttpResponse]?{}:null,[no.DbQuery]:i[no.DbQuery]?{}:null,[no.Messaging]:i[no.Messaging]?{}:null}),a&&(c.codeAttributes={[Zn.Column]:a[Zn.Column]||null,[Zn.FilePath]:a[Zn.FilePath]||null,[Zn.Function]:a[Zn.Function]||null,[Zn.LineNumber]:a[Zn.LineNumber]||null,[Zn.Namespace]:a[Zn.Namespace]||null,[Zn.StackTrace]:a[Zn.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[to.Java]:l[to.Java]||null,[to.Golang]:l[to.Golang]||null}),n(void 0,void 0,c)}}},Mc=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:r,withMetaKey:i},a)=>(Mt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,r,i,a]),null),zc="data-ignore-outside-click",Uc=(e,t)=>{const n=Bt(t);n.current=t,Mt(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(zc))return!0;t=t.parentNode}return!1})(o)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Bc=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[o,r]=Ft(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(n)};return jt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),Mt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),o},jc=(e,{behavior:t="smooth",block:n="center",inline:o,delayMs:r=50}={})=>{const i=Bt(null);return Mt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:o})},r);return()=>window.clearTimeout(a)},[e,t,n,o,r]),i},Hc=({sectionNames:e,threshold:t=.4})=>{const[n,o]=Ft(e[0]||""),[r,i]=Ft(null),a=Bt({}),s=Bt(!1),l=Bt(!1),c=Ut((e,t)=>{a.current[e]=t},[]),d=Ut(e=>{i(e)},[]),u=Ut(e=>{l.current=!0,o(e)},[]);return Mt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),Mt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},Wc=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:o="local"}={})=>{const r=Bt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});Uc(r,()=>{i&&(a(!1),n?.())});return{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===o)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},Gc=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Jr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Xc={otelServiceName:"",currentStreamName:""},Kc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Sc(Xc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...So(Xc),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Wt.addDefaultLocale(Kt)}catch(e){}const Vc=new Wt(Kt.locale),Jc=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],qc=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Yc=()=>{const[e,t]=Ft(0);Mt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]);return{formatTimeAgo:Ut(e=>{try{return Vc.format(qc(e))}catch(e){return"-"}},[e]),formatDurationAgo:Ut((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=qc(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===n?"0s":o?"just now":"0 seconds";const a=[];for(const e of Jc){if(a.length===t)break;const o=Math.floor(i/e.ms);if(!(o<=0&&0===a.length)){if(o<=0)break;i-=o*e.ms,a.push("short"===n?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return o&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},Qc=o.div`
226
229
  color: ${({$color:e,theme:t})=>e||t.text.secondary};
227
230
  font-size: ${({$size:e})=>void 0!==e?e:16}px;
228
231
  font-weight: ${({$weight:e})=>void 0!==e?e:300};
@@ -233,7 +236,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
233
236
  font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
234
237
  white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
235
238
  text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
236
- `,Gc=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})},Xc=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Wc=(n,o)=>{const r=Gc(n);r?.forEach((e,t)=>{n=n.replace(e.original,`LINK-${t}###`)});const i=Xc(n);i?.forEach((e,t)=>{n=n.replace(e.original,`STRONG-${t}###`)});return n.split(" ").map(n=>{if(n.includes("LINK-")){const[i,a]=n.split("###"),s=r?.[parseInt(i.replace("LINK-",""))];return t(Pt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},n)}if(n.includes("STRONG-")){const[o,r]=n.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(Pt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),r?`${r} `:" "]},n)}return n+" "})},Kc=({children:n,color:o,size:r,weight:a,align:s,family:l,opacity:c,decoration:d,transform:u,nowrap:p,...h})=>{const g=i(),m=zt(()=>(n?["string","number"].includes(typeof n)?n.toString():Array.isArray(n)?n.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[n]);return e(Hc,{$color:o,$size:r,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:u,$nowrap:p,...h,children:m.length?m.map((n,o)=>t(Pt,{children:[Wc(n,g),o!==m.length-1?e("br",{}):null]},`text-${o}-${n}`)):n})},Vc=o.div`
239
+ `,Zc=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})},ed=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},td=(n,o)=>{const r=Zc(n);r?.forEach((e,t)=>{n=n.replace(e.original,`LINK-${t}###`)});const i=ed(n);i?.forEach((e,t)=>{n=n.replace(e.original,`STRONG-${t}###`)});return n.split(" ").map(n=>{if(n.includes("LINK-")){const[i,a]=n.split("###"),s=r?.[parseInt(i.replace("LINK-",""))];return t(Pt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},n)}if(n.includes("STRONG-")){const[o,r]=n.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(Pt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),r?`${r} `:" "]},n)}return n+" "})},nd=({children:n,color:o,size:r,weight:a,align:s,family:l,opacity:c,decoration:d,transform:u,nowrap:p,...h})=>{const g=i(),m=zt(()=>(n?["string","number"].includes(typeof n)?n.toString():Array.isArray(n)?n.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[n]);return e(Qc,{$color:o,$size:r,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:u,$nowrap:p,...h,children:m.length?m.map((n,o)=>t(Pt,{children:[td(n,g),o!==m.length-1?e("br",{}):null]},`text-${o}-${n}`)):n})},od=o.div`
237
240
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
238
241
  position: relative;
239
242
  display: flex;
@@ -247,13 +250,13 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
247
250
  text-overflow: ellipsis;
248
251
  white-space: nowrap;
249
252
  `}
250
- `,Jc=o.div`
253
+ `,rd=o.div`
251
254
  display: flex;
252
255
  flex-direction: column;
253
256
  align-items: flex-start;
254
257
  gap: 8px;
255
258
  width: 100%;
256
- `,qc=o.div`
259
+ `,id=o.div`
257
260
  display: flex;
258
261
  width: 100%;
259
262
  flex-shrink: 0;
@@ -263,7 +266,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
263
266
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
264
267
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
265
268
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
266
- `,Yc=o.div`
269
+ `,ad=o.div`
267
270
  width: 0;
268
271
  height: 0;
269
272
  border-style: solid;
@@ -272,20 +275,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
272
275
  flex-shrink: 0;
273
276
 
274
277
  ${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
275
- `,Qc=o.div`
278
+ `,sd=o.div`
276
279
  display: flex;
277
280
  flex-direction: column;
278
281
  align-items: stretch;
279
282
  min-width: 0;
280
- `,Zc=o.div`
283
+ `,ld=o.div`
281
284
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
282
285
  border-radius: 4px;
283
286
  padding: 8px;
284
287
  box-sizing: border-box;
285
288
  min-width: 0;
286
- `,ed=({withIcon:o,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:u=!1,ellipsis:p=!1})=>{const h=i(),{popupRef:g,popupOpen:m,setPopupOpen:f,popupPosition:b,arrowPlacement:y,handlePosition:$}=Lc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=zt(()=>!!Gc(s||"")?.length,[s]),x=e=>{const{type:t,clientX:n,clientY:o}=e;v?$(b.left||n,b.top||o):$(n,o),f("mouseleave"!==t)};return s||u?t(Vc,{$fullWidth:d,$ellipsis:p,$hasText:!!s,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[c,o&&e(Ze,{fill:h.v2.colors.white[500]}),e(Ei,{ref:g,isOpen:m&&!!s,top:b.top,left:b.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(Qc,{children:["top"===y.edge&&e(qc,{$align:y.align,children:e(Yc,{$pointsUp:!0})}),e(Zc,{children:t(Jc,{children:[(!!r||!!a)&&t(Nr,{$gap:4,style:{alignItems:"center"},children:[r&&e(r,{size:16},"icon"),a&&e(cn,{size:on.XS,children:a},"title")]}),!!s&&e(cn,{size:on.XXXS,children:s}),!!l&&e(cn,{size:on.XXXS,color:rn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===y.edge&&e(qc,{$align:y.align,children:e(Yc,{$pointsUp:!1})})]})})]}):e(n,{children:c})},td=o(Nr)`
289
+ `,cd=({withIcon:o,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:u=!1,ellipsis:p=!1})=>{const h=i(),{popupRef:g,popupOpen:m,setPopupOpen:f,popupPosition:b,arrowPlacement:y,handlePosition:$}=Wc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=zt(()=>!!Zc(s||"")?.length,[s]),x=e=>{const{type:t,clientX:n,clientY:o}=e;v?$(b.left||n,b.top||o):$(n,o),f("mouseleave"!==t)};return s||u?t(od,{$fullWidth:d,$ellipsis:p,$hasText:!!s,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[c,o&&e(Ze,{fill:h.v2.colors.white[500]}),e(Ai,{ref:g,isOpen:m&&!!s,top:b.top,left:b.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(sd,{children:["top"===y.edge&&e(id,{$align:y.align,children:e(ad,{$pointsUp:!0})}),e(ld,{children:t(rd,{children:[(!!r||!!a)&&t(kr,{$gap:4,style:{alignItems:"center"},children:[r&&e(r,{size:16},"icon"),a&&e(cn,{size:on.XS,children:a},"title")]}),!!s&&e(cn,{size:on.XXXS,children:s}),!!l&&e(cn,{size:on.XXXS,color:rn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===y.edge&&e(id,{$align:y.align,children:e(ad,{$pointsUp:!1})})]})})]}):e(n,{children:c})},dd=o(kr)`
287
290
  gap: 0;
288
- `,nd=o.button`
291
+ `,ud=o.button`
289
292
  padding: 4px 8px;
290
293
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
291
294
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -297,22 +300,22 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
297
300
  &:hover {
298
301
  border: 1px solid ${({theme:e})=>e.colors.secondary};
299
302
  }
300
- `,od=({isPrettyMode:n,setIsPrettyMode:o})=>t(td,{children:[e(nd,{$position:"left",$selected:n,onClick:()=>o(!0),children:e($t,{})}),e(nd,{$position:"right",$selected:!n,onClick:()=>o(!1),children:e(vt,{})})]}),rd=o.table`
303
+ `,pd=({isPrettyMode:n,setIsPrettyMode:o})=>t(dd,{children:[e(ud,{$position:"left",$selected:n,onClick:()=>o(!0),children:e($t,{})}),e(ud,{$position:"right",$selected:!n,onClick:()=>o(!1),children:e(vt,{})})]}),hd=o.table`
301
304
  border-collapse: collapse;
302
305
  font-family: ${({theme:e})=>e.font_family.primary};
303
- `,id=o.tbody``,ad=o.tr`
306
+ `,gd=o.tbody``,md=o.tr`
304
307
  td:first-child {
305
308
  padding-left: 0 !important;
306
309
  }
307
310
  td:last-child {
308
311
  padding-right: 0 !important;
309
312
  }
310
- `,sd=o.td`
313
+ `,fd=o.td`
311
314
  vertical-align: top;
312
315
  padding: 4px 6px;
313
- `,ld=o(Kc)`
316
+ `,bd=o(nd)`
314
317
  white-space: nowrap;
315
- `,cd=o.span`
318
+ `,yd=o.span`
316
319
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
317
320
  overflow-wrap: break-word;
318
321
  word-break: break-word;
@@ -320,7 +323,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
320
323
  /* Fallback for older browsers */
321
324
  -ms-word-break: break-all;
322
325
  font-size: 12px;
323
- `,dd=({language:t,code:n,theme:o,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=o?qt[o]:s?qt.palenight:qt.vsLight;let c="";if("json"===t){const e=Jr(n,{}),t=gi(e);c=mi(r?ko(t):t)}else c=n;return a&&"json"===t?e(ud,{darkMode:s,str:c}):e(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:n,tokens:o})=>e("pre",{children:o.map((o,r)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(cd,{...n({token:t})},`line-${r}-token-${o}`))},`line-${r}`))})})},ud=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>t(ad,{...n,children:[e(sd,{}),e(sd,{})]}));return e(Pt,{children:i.map((t,n)=>e(t,{style:0===n?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${o}-${n}`))})};return e(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:o,children:({getLineProps:n,getTokenProps:o,tokens:i})=>e(rd,{children:e(id,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Pt,{children:[a(2,s),t(ad,{...c,children:[e(sd,{children:e(ld,{children:l[0].content})}),e(sd,{})]})]},`line-${s}`):2===l.length?e(ad,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((t,n)=>{const[o,...r]=t.split("@");return{text:o,components:r?.map((t,o)=>{if(!t.includes("="))return null;const[r,i]=t.split("=");switch(r){case"tooltip":return e(ed,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let t=jr(i,n);return t||(t=jr(Fn.Warning,n)),e(t,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),c=0===i;return e(sd,{children:t(Nr,{children:[e(Nr,{children:l}),e(cd,{$noWrap:c,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},pd={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},hd={v2:pd.v2,darkMode:!0,colors:{...pd.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:pd.font_family},gd={v2:pd.v2,darkMode:!1,colors:{...pd.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:pd.font_family},md=e=>e?hd:gd;var fd=Object.freeze({__proto__:null,baseTheme:pd,darkModeTheme:hd,getTheme:md,lightModeTheme:gd});Vt('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const bd=({children:t})=>{const{darkMode:n}=Jl();return e(s,{theme:md(n),children:t})},yd={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var $d=Object.freeze({__proto__:null,hex:yd});const vd={in:{left:a`
326
+ `,$d=({language:t,code:n,theme:o,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=o?qt[o]:s?qt.palenight:qt.vsLight;let c="";if("json"===t){const e=Jr(n,{}),t=yi(e);c=$i(r?No(t):t)}else c=n;return a&&"json"===t?e(vd,{darkMode:s,str:c}):e(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:n,tokens:o})=>e("pre",{children:o.map((o,r)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(yd,{...n({token:t})},`line-${r}-token-${o}`))},`line-${r}`))})})},vd=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>t(md,{...n,children:[e(fd,{}),e(fd,{})]}));return e(Pt,{children:i.map((t,n)=>e(t,{style:0===n?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${o}-${n}`))})};return e(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:o,children:({getLineProps:n,getTokenProps:o,tokens:i})=>e(hd,{children:e(gd,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Pt,{children:[a(2,s),t(md,{...c,children:[e(fd,{children:e(bd,{children:l[0].content})}),e(fd,{})]})]},`line-${s}`):2===l.length?e(md,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((t,n)=>{const[o,...r]=t.split("@");return{text:o,components:r?.map((t,o)=>{if(!t.includes("="))return null;const[r,i]=t.split("=");switch(r){case"tooltip":return e(cd,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let t=jr(i,n);return t||(t=jr(Fn.Warning,n)),e(t,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),c=0===i;return e(fd,{children:t(kr,{children:[e(kr,{children:l}),e(yd,{$noWrap:c,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},xd={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},Sd={v2:xd.v2,darkMode:!0,colors:{...xd.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:xd.font_family},Ed={v2:xd.v2,darkMode:!1,colors:{...xd.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:xd.font_family},wd=e=>e?Sd:Ed;var Cd=Object.freeze({__proto__:null,baseTheme:xd,darkModeTheme:Sd,getTheme:wd,lightModeTheme:Ed});Vt('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const Td=({children:t})=>{const{darkMode:n}=rc();return e(s,{theme:wd(n),children:t})},Ad={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var Id=Object.freeze({__proto__:null,hex:Ad});const kd={in:{left:a`
324
327
  from { transform: translateX(-100%); }
325
328
  to { transform: translateX(0); }
326
329
  `,right:a`
@@ -350,7 +353,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
350
353
  `,center:a`
351
354
  from { transform: translate(-50%, -50%); }
352
355
  to { transform: translate(-50%, 100%); }
353
- `}},xd={in:a`
356
+ `}},Nd={in:a`
354
357
  from {
355
358
  width: 0%;
356
359
  }
@@ -364,7 +367,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
364
367
  to {
365
368
  width: 0%;
366
369
  }
367
- `},Sd=a`
370
+ `},Dd=a`
368
371
  0% {
369
372
  transform: scale(1);
370
373
  opacity: 1;
@@ -373,14 +376,14 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
373
376
  transform: scale(2);
374
377
  opacity: 0;
375
378
  }
376
- `,Ed=a`
379
+ `,Rd=a`
377
380
  0% {
378
381
  background-position: -500px 0;
379
382
  }
380
383
  100% {
381
384
  background-position: 500px 0;
382
385
  }
383
- `,wd={in:a`
386
+ `,Od={in:a`
384
387
  from {
385
388
  opacity: 0;
386
389
  }
@@ -394,26 +397,26 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
394
397
  to {
395
398
  opacity: 0;
396
399
  }
397
- `};var Cd=Object.freeze({__proto__:null,fade:wd,ping:Sd,progress:xd,shimmer:Ed,slide:vd});const Td=o.div`
400
+ `};var _d=Object.freeze({__proto__:null,fade:Od,ping:Dd,progress:Nd,shimmer:Rd,slide:kd});const Ld=o.div`
398
401
  width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
399
402
  height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
400
403
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
401
- background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+yd["050"]};
404
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Ad["050"]};
402
405
  opacity: ${({$opacity:e})=>e||1};
403
- `,Ad=({orientation:t="horizontal",type:n,thickness:o=1,length:r,margin:i,opacity:a})=>e(Td,{$orientation:t,$type:n,$thickness:o,$length:r,$margin:i,$opacity:a}),Id={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Nd(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Id[o]?{value:t,unit:o}:{value:t,unit:"px"}}function kd(e){const t=Nd(e);return`${t.value}${t.unit}`}const Dd=((e,t,n)=>{const o=`react-spinners-${e}-${n}`;if("undefined"==typeof window||!window.document)return o;const r=document.createElement("style");document.head.appendChild(r);const i=r.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Rd=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=Nd(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},b=(e,t)=>({position:"absolute",width:kd(1.5),height:kd(4),borderRadius:kd(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Dd} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Od=a`
406
+ `,Pd=({orientation:t="horizontal",type:n,thickness:o=1,length:r,margin:i,opacity:a})=>e(Ld,{$orientation:t,$type:n,$thickness:o,$length:r,$margin:i,$opacity:a}),Fd={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Md(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Fd[o]?{value:t,unit:o}:{value:t,unit:"px"}}function zd(e){const t=Md(e);return`${t.value}${t.unit}`}const Ud=((e,t,n)=>{const o=`react-spinners-${e}-${n}`;if("undefined"==typeof window||!window.document)return o;const r=document.createElement("style");document.head.appendChild(r);const i=r.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Bd=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=Md(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},b=(e,t)=>({position:"absolute",width:zd(1.5),height:zd(4),borderRadius:zd(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Ud} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},jd=a`
404
407
  0% {
405
408
  background-position: 0% 50%;
406
409
  }
407
410
  100% {
408
411
  background-position: 100% 50%;
409
412
  }
410
- `,_d=o(Kc)`
413
+ `,Hd=o(nd)`
411
414
  background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
412
415
  background-size: 250% 100%; /* Expand background to allow movement */
413
416
  background-clip: text;
414
417
  color: transparent;
415
- animation: ${Od} 1s reverse linear infinite;
416
- `,Ld=({children:t="Loading...",textColor:n,stripColor:o,...r})=>{const a=i(),s=n||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(_d,{$textColor:s,$stripColor:l,...r,children:t})};var Pd,Fd;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Pd||(Pd={})),function(e){e.S="small",e.M="medium",e.L="large"}(Fd||(Fd={}));const Md=o.button`
418
+ animation: ${jd} 1s reverse linear infinite;
419
+ `,Wd=({children:t="Loading...",textColor:n,stripColor:o,...r})=>{const a=i(),s=n||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(Hd,{$textColor:s,$stripColor:l,...r,children:t})};var Gd,Xd;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Gd||(Gd={})),function(e){e.S="small",e.M="medium",e.L="large"}(Xd||(Xd={}));const Kd=o.button`
417
420
  display: flex;
418
421
  align-items: center;
419
422
  justify-content: center;
@@ -423,14 +426,14 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
423
426
  `}
424
427
  border: none;
425
428
  border-radius: 6px;
426
- ${({$size:e,$hasLabel:t})=>e===Fd.S?r`
429
+ ${({$size:e,$hasLabel:t})=>e===Xd.S?r`
427
430
  height: 32px;
428
431
  ${t?r`
429
432
  padding: 8px 16px;
430
433
  `:r`
431
434
  width: 32px;
432
435
  `}
433
- `:e===Fd.M?r`
436
+ `:e===Xd.M?r`
434
437
  height: 38px;
435
438
  ${t?r`
436
439
  padding: 8px 18px;
@@ -455,7 +458,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
455
458
  ${({$withShadow:e})=>e?r`
456
459
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
457
460
  `:""}
458
- ${({$variant:e})=>e===Pd.Primary?r`
461
+ ${({$variant:e})=>e===Gd.Primary?r`
459
462
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
460
463
  &:hover {
461
464
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -463,7 +466,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
463
466
  &:active {
464
467
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
465
468
  }
466
- `:e===Pd.Secondary?r`
469
+ `:e===Gd.Secondary?r`
467
470
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
468
471
  &:hover {
469
472
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -471,7 +474,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
471
474
  &:active {
472
475
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
473
476
  }
474
- `:e===Pd.Text?r`
477
+ `:e===Gd.Text?r`
475
478
  background-color: transparent;
476
479
  &:hover {
477
480
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -481,7 +484,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
481
484
  }
482
485
  `:""}
483
486
  }
484
- `,zd=Lt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Pd.Primary,size:u=Fd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:b,onClick:y,...$},v)=>{const x=i(),S=p||(u===Fd.L?18:16),E=u===Fd.L?on.S:on.XS,w=f||(b?x.v2.colors.grey[400]:x.v2.colors.white[500]),[C,T]=Ft(!1),A=Ut(async e=>{e.stopPropagation(),T(!0),await(y?.(e)),T(!1)},[y]);return e(Md,{ref:v,"data-id":o,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,disabled:b,onClick:h||C?void 0:A,...$,children:e(ed,{text:a,withIcon:!s,children:h||C?r?e(Ld,{size:x.v2.text.size[E],textColor:w}):e(Rd,{}):t(n,{children:[l&&e(l,{size:S,fill:w}),r?e(cn,{size:E,weight:500,color:w,nowrap:!0,children:r}):null,c&&e(c,{size:S,fill:w})]})})})});zd.displayName=zd.name;const Ud=({error:n})=>{const o=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:r.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:r.errorMessage,children:n?.message||"Unknown Error"}),t("details",{style:r.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:r.errorStack,children:n?.stack||"Unknown Stack"})]}),e("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),e(zd,{variant:Pd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Bd=({children:t})=>e(Yt,{FallbackComponent:({error:t,...n})=>e(bd,{children:e(Ud,{...n,error:t})}),children:t}),jd=o.button`
487
+ `,Vd=Lt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Gd.Primary,size:u=Xd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:b,onClick:y,...$},v)=>{const x=i(),S=p||(u===Xd.L?18:16),E=u===Xd.L?on.S:on.XS,w=f||(b?x.v2.colors.grey[400]:x.v2.colors.white[500]),[C,T]=Ft(!1),A=Ut(async e=>{e.stopPropagation(),T(!0),await(y?.(e)),T(!1)},[y]);return e(Kd,{ref:v,"data-id":o,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,disabled:b,onClick:h||C?void 0:A,...$,children:e(cd,{text:a,withIcon:!s,children:h||C?r?e(Wd,{size:x.v2.text.size[E],textColor:w}):e(Bd,{}):t(n,{children:[l&&e(l,{size:S,fill:w}),r?e(cn,{size:E,weight:500,color:w,nowrap:!0,children:r}):null,c&&e(c,{size:S,fill:w})]})})})});Vd.displayName=Vd.name;const Jd=({error:n})=>{const o=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:r.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:r.errorMessage,children:n?.message||"Unknown Error"}),t("details",{style:r.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:r.errorStack,children:n?.stack||"Unknown Stack"})]}),e("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),e(Vd,{variant:Gd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},qd=({children:t})=>e(Yt,{FallbackComponent:({error:t,...n})=>e(Td,{children:e(Jd,{...n,error:t})}),children:t}),Yd=o.button`
485
488
  position: relative;
486
489
  width: ${({$size:e})=>e}px;
487
490
  height: ${({$size:e})=>e}px;
@@ -493,9 +496,9 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
493
496
  justify-content: center;
494
497
  cursor: pointer;
495
498
  &:hover {
496
- background-color: ${({theme:e,$backgroundColor:t})=>t?t+yd["070"]:e.colors.dropdown_bg_2};
499
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+Ad["070"]:e.colors.dropdown_bg_2};
497
500
  }
498
- `,Hd=o.div`
501
+ `,Qd=o.div`
499
502
  position: absolute;
500
503
  top: ${({$size:e})=>e/5}px;
501
504
  right: ${({$size:e})=>e/5}px;
@@ -510,17 +513,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
510
513
  inset: 0;
511
514
  border-radius: 100%;
512
515
  background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
513
- animation: ${Sd} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
516
+ animation: ${Dd} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
514
517
  }
515
- `,Gd=({children:n,onClick:o,tooltip:r,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(ed,{text:r,children:t(jd,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(Hd,{$size:i,$color:s}),n]})}),Xd=({src:t="",alt:n="",size:o=16})=>{const[r,i]=Ft(!1);return t&&!r?e("img",{src:t,alt:n,width:o,height:o,onError:()=>i(!0)}):e(f,{size:o})},Wd=o.div`
518
+ `,Zd=({children:n,onClick:o,tooltip:r,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(cd,{text:r,children:t(Yd,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(Qd,{$size:i,$color:s}),n]})}),eu=({src:t="",alt:n="",size:o=16})=>{const[r,i]=Ft(!1);return t&&!r?e("img",{src:t,alt:n,width:o,height:o,onError:()=>i(!0)}):e(f,{size:o})},tu=o.div`
516
519
  display: flex;
517
520
  align-items: center;
518
521
  justify-content: center;
519
522
  width: ${({$size:e})=>e}px;
520
523
  height: ${({$size:e})=>e}px;
521
524
  border-radius: 8px;
522
- background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+yd["030"]} 100%)`}};
523
- `,Kd=({icon:t,src:n="",alt:o="",status:r,size:i=36})=>e(Wd,{$status:r,$size:i,children:n?e(Xd,{src:n,alt:o,size:i-12}):e(t||f,{size:i-12})}),Vd=o.div`
525
+ background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+Ad["030"]} 100%)`}};
526
+ `,nu=({icon:t,src:n="",alt:o="",status:r,size:i=36})=>e(tu,{$status:r,$size:i,children:n?e(eu,{src:n,alt:o,size:i-12}):e(t||f,{size:i-12})}),ou=o.div`
524
527
  position: relative;
525
528
  display: flex;
526
529
  flex-wrap: wrap;
@@ -528,7 +531,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
528
531
  justify-content: center;
529
532
  width: ${({$size:e})=>e}px;
530
533
  height: ${({$size:e})=>e}px;
531
- `,Jd=o.div`
534
+ `,ru=o.div`
532
535
  position: absolute;
533
536
  top: ${({$top:e})=>e}px;
534
537
  left: ${({$left:e})=>e}px;
@@ -539,17 +542,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
539
542
  width: ${({$size:e})=>e}px;
540
543
  height: ${({$size:e})=>e}px;
541
544
  border-radius: 100%;
542
- border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+yd["030"]};
543
- background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+yd["030"]} 100%)`}};
544
- `,qd=({icons:n=[],iconSrcs:o=[],status:r,size:a=36,id:s})=>{const l=i(),c=1===n.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(qd,{icons:o.map(t=>()=>e(Xd,{src:t,size:c})),status:r,size:a,id:s});if(1===n.length)return e(Kd,{icon:n[0],status:r,size:a});const d=e=>n.length<=2?.5*c:0===e||1===e?0:1.15*c,u=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(Vd,{$status:r,$size:a,children:n.map((o,i)=>i>2?null:e(Jd,{$status:r,$size:1.5*c,$top:d(i),$left:u(i),$zIndex:i+1,children:2===i&&n.length>3?t(Kc,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",n.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},Yd=o.div`
545
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Ad["030"]};
546
+ background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+Ad["030"]} 100%)`}};
547
+ `,iu=({icons:n=[],iconSrcs:o=[],status:r,size:a=36,id:s})=>{const l=i(),c=1===n.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(iu,{icons:o.map(t=>()=>e(eu,{src:t,size:c})),status:r,size:a,id:s});if(1===n.length)return e(nu,{icon:n[0],status:r,size:a});const d=e=>n.length<=2?.5*c:0===e||1===e?0:1.15*c,u=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(ou,{$status:r,$size:a,children:n.map((o,i)=>i>2?null:e(ru,{$status:r,$size:1.5*c,$top:d(i),$left:u(i),$zIndex:i+1,children:2===i&&n.length>3?t(nd,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",n.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},au=o.div`
545
548
  position: relative;
546
549
  &.animated {
547
550
  overflow: hidden;
548
551
  padding-bottom: 1px;
549
552
  border-radius: 32px;
550
- animation: ${({$isLeaving:e})=>e?vd.out.bottom:vd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
553
+ animation: ${({$isLeaving:e})=>e?kd.out.bottom:kd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
551
554
  }
552
- `,Qd=o.div`
555
+ `,su=o.div`
553
556
  position: absolute;
554
557
  bottom: -1px;
555
558
  left: 0;
@@ -558,8 +561,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
558
561
  height: 100%;
559
562
  border-radius: 32px;
560
563
  background-color: ${({$type:e,theme:t})=>t.text[e]};
561
- animation: ${xd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
562
- `,Zd=o.div`
564
+ animation: ${Nd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
565
+ `,lu=o.div`
563
566
  display: flex;
564
567
  align-items: center;
565
568
  flex: 1;
@@ -567,20 +570,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
567
570
  padding: 0 12px;
568
571
  border-radius: 32px;
569
572
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
570
- `,eu=o.div`
573
+ `,cu=o.div`
571
574
  display: flex;
572
575
  align-items: center;
573
576
  margin: 0 auto 0 0;
574
577
  padding: 8px 0;
575
578
  max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
576
579
  min-height: 12px;
577
- `,tu=o(Kc)`
580
+ `,du=o(nd)`
578
581
  font-size: 14px;
579
582
  color: ${({$type:e,theme:t})=>t.text[e]};
580
- `,nu=o(Kc)`
583
+ `,uu=o(nd)`
581
584
  color: ${({$type:e,theme:t})=>t.text[e]};
582
585
  font-size: 12px;
583
- `,ou=o(Nr)``,ru=o(Kc)`
586
+ `,pu=o(kr)``,hu=o(nd)`
584
587
  text-transform: uppercase;
585
588
  text-decoration: underline;
586
589
  font-size: 12px;
@@ -591,7 +594,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
591
594
  transform: scale(1.1);
592
595
  transition: transform 0.3s;
593
596
  }
594
- `,iu=({type:n,icon:o,title:r,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:u})=>{const p=i(),[h,g]=Ft(!1),m=Bt(null),f=Bt(null),b=e=>{l&&(g(!0),l({asSeen:e?.asSeen}))};Mt(()=>(m.current=setTimeout(()=>b({asSeen:!1}),c),()=>{m.current&&clearTimeout(m.current)}),[c]);const y=o||jr(n,p);return t(Yd,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{m.current&&clearTimeout(m.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;m.current=setTimeout(()=>b({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(Zd,{"data-id":"toast",$type:n,style:u,children:[e(y,{fill:p.text[n]}),t(eu,{$withAction:!!s,$overrideMaxWidth:d,children:[r&&e(tu,{$type:n,children:r}),r&&a&&e(Ad,{orientation:"vertical",type:n}),a&&e(nu,{$type:n,children:a})]}),(!!s||!!l)&&t(ou,{children:[s&&e(ru,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Gd,{"data-id":"toast-close",onClick:()=>b({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(Qd,{ref:f,$duration:c,$type:n})]})},au=o(Kc)`
597
+ `,gu=({type:n,icon:o,title:r,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:u})=>{const p=i(),[h,g]=Ft(!1),m=Bt(null),f=Bt(null),b=e=>{l&&(g(!0),l({asSeen:e?.asSeen}))};Mt(()=>(m.current=setTimeout(()=>b({asSeen:!1}),c),()=>{m.current&&clearTimeout(m.current)}),[c]);const y=o||jr(n,p);return t(au,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{m.current&&clearTimeout(m.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;m.current=setTimeout(()=>b({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(lu,{"data-id":"toast",$type:n,style:u,children:[e(y,{fill:p.text[n]}),t(cu,{$withAction:!!s,$overrideMaxWidth:d,children:[r&&e(du,{$type:n,children:r}),r&&a&&e(Pd,{orientation:"vertical",type:n}),a&&e(uu,{$type:n,children:a})]}),(!!s||!!l)&&t(pu,{children:[s&&e(hu,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Zd,{"data-id":"toast-close",onClick:()=>b({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(su,{ref:f,$duration:c,$type:n})]})},mu=o(nd)`
595
598
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
596
599
  white-space: nowrap;
597
600
  overflow-x: auto;
@@ -601,7 +604,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
601
604
  content: '';
602
605
  display: block;
603
606
  }
604
- `,su=({maxWidth:n,text:o,textSize:r=16,textColor:i})=>{const[a,s]=Ft(!1),l=Bt(null);return Mt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(n-r)&&e>.95*(n-r))}},[n,r,o]),t(Nr,{$gap:0,children:[o&&e(ed,{text:a?o:void 0,children:e(au,{ref:l,$maxWidth:n-r,size:r,color:i,children:o})}),a&&e(au,{$maxWidth:r,size:r,color:i,children:"..."})]})},lu=o.div`
607
+ `,fu=({maxWidth:n,text:o,textSize:r=16,textColor:i})=>{const[a,s]=Ft(!1),l=Bt(null);return Mt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(n-r)&&e>.95*(n-r))}},[n,r,o]),t(kr,{$gap:0,children:[o&&e(cd,{text:a?o:void 0,children:e(mu,{ref:l,$maxWidth:n-r,size:r,color:i,children:o})}),a&&e(mu,{$maxWidth:r,size:r,color:i,children:"..."})]})},bu=o.div`
605
608
  width: 100%;
606
609
  height: 100%;
607
610
 
@@ -609,33 +612,33 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
609
612
  animation: none !important;
610
613
  transition: none !important;
611
614
  }
612
- `,cu=({width:t="100%",height:n="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Bt(null),l=zt(()=>o?r.map((t,n)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${n}`)):r,[r,o]),c=Ut(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(en,{ref:s,style:{width:t,height:n},onScroll:a?c:void 0,children:l});return i?e(lu,{children:d}):d},du=o.div`
615
+ `,yu=({width:t="100%",height:n="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Bt(null),l=zt(()=>o?r.map((t,n)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${n}`)):r,[r,o]),c=Ut(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(en,{ref:s,style:{width:t,height:n},onScroll:a?c:void 0,children:l});return i?e(bu,{children:d}):d},$u=o.div`
613
616
  display: flex;
614
617
  flex-direction: column;
615
618
  gap: 16px;
616
619
  ${({$maxWidth:e})=>e&&`max-width: ${e};`}
617
- `,uu=o.div`
620
+ `,vu=o.div`
618
621
  display: flex;
619
622
  align-items: center;
620
623
  gap: 16px;
621
- `,pu=o.div`
624
+ `,xu=o.div`
622
625
  width: 50px;
623
626
  height: 50px;
624
627
  border-radius: 8px;
625
628
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
626
629
  background-size: 200% 100%;
627
- animation: ${Ed} 10s infinite linear;
628
- `,hu=o(kr)`
630
+ animation: ${Rd} 10s infinite linear;
631
+ `,Su=o(Nr)`
629
632
  flex: 1;
630
633
  gap: 12px;
631
- `,gu=o.div`
634
+ `,Eu=o.div`
632
635
  width: ${({$width:e})=>e};
633
636
  height: 16px;
634
637
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
635
638
  background-size: 200% 100%;
636
- animation: ${Ed} 1.5s infinite linear;
639
+ animation: ${Rd} 1.5s infinite linear;
637
640
  border-radius: 4px;
638
- `,mu=({size:n=5,maxWidth:o})=>e(du,{$maxWidth:o,children:[...Array(n)].map((n,o)=>t(uu,{children:[e(pu,{}),t(hu,{children:[e(gu,{$width:"80%"}),e(gu,{$width:"100%"})]})]},o))}),fu=o.div`
641
+ `,wu=({size:n=5,maxWidth:o})=>e($u,{$maxWidth:o,children:[...Array(n)].map((n,o)=>t(vu,{children:[e(xu,{}),t(Su,{children:[e(Eu,{$width:"80%"}),e(Eu,{$width:"100%"})]})]},o))}),Cu=o.div`
639
642
  display: flex;
640
643
  align-items: center;
641
644
  justify-content: center;
@@ -645,17 +648,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
645
648
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
646
649
  border-radius: 100px;
647
650
  background-color: ${({$backgroundColor:e})=>e};
648
- `,bu=({label:n,leftIcon:o,rightIcon:r,tooltip:a,status:s=Un.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),b=zn.Loading===s,y=s?[Un.Disabled,zn.Disabled,zn.Loading].includes(s)?ar(m,s,c?"400":"700"):[Un.Unknown].includes(s)?ar(m,s,"600"):ar(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],$=u||(c&&![Un.Unknown].includes(s)?y:[Un.Disabled,zn.Disabled,zn.Loading].includes(s)?m.v2.colors.grey[400]:[Fn.Error,Fn.Warning,Fn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),v=p||(c&&![Un.Unknown].includes(s)?[Un.Disabled,zn.Disabled,zn.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return e(ed,{text:a,fullWidth:g,children:t(fu,{$backgroundColor:v,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&o?o?e(o,{fill:$,size:d?m.v2.text.size[d]+2:14}):null:e(Br,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?e(Br,{withGradient:!0,title:f,titleSize:d||on.XXS}):e(cn,{color:$,size:d||on.XXS,nowrap:!0,children:f}):null,r&&e(r,{fill:$,size:d?m.v2.text.size[d]+2:14})]})})},yu=o.span`
651
+ `,Tu=({label:n,leftIcon:o,rightIcon:r,tooltip:a,status:s=Un.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),b=zn.Loading===s,y=s?[Un.Disabled,zn.Disabled,zn.Loading].includes(s)?ar(m,s,c?"400":"700"):[Un.Unknown].includes(s)?ar(m,s,"600"):ar(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],$=u||(c&&![Un.Unknown].includes(s)?y:[Un.Disabled,zn.Disabled,zn.Loading].includes(s)?m.v2.colors.grey[400]:[Fn.Error,Fn.Warning,Fn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),v=p||(c&&![Un.Unknown].includes(s)?[Un.Disabled,zn.Disabled,zn.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return e(cd,{text:a,fullWidth:g,children:t(Cu,{$backgroundColor:v,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&o?o?e(o,{fill:$,size:d?m.v2.text.size[d]+2:14}):null:e(Br,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?e(Br,{withGradient:!0,title:f,titleSize:d||on.XXS}):e(cn,{color:$,size:d||on.XXS,nowrap:!0,children:f}):null,r&&e(r,{fill:$,size:d?m.v2.text.size[d]+2:14})]})})},Au=o.span`
649
652
  font-family: ${({theme:e})=>e.font_family.primary};
650
653
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
651
654
  font-weight: 400;
652
655
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
653
- `,$u=o.span`
656
+ `,Iu=o.span`
654
657
  font-family: ${({theme:e})=>e.font_family.primary};
655
658
  font-size: 14px;
656
659
  font-weight: 400;
657
660
  color: ${({theme:e})=>e.v2.colors.red[500]};
658
- `,vu=({label:n,tooltip:o,required:r,badge:i,width:a,smallAndDark:s})=>n||o||r?t(Nr,{$width:a,$justifyContent:"space-between",children:[n&&e(yu,{$smallAndDark:s,children:n}),t(Nr,{$gap:4,children:[i&&e(bu,{...i,textSize:on.XXXS}),r&&e($u,{children:"*"}),o&&e(ed,{text:o,withIcon:!0})]})]}):null,xu=({errorMessage:n,warnMessage:o,helpMessage:r})=>{const a=i(),s=n?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return n||o||r?t(Nr,{$alignItems:"center",children:[l&&e(kr,{children:l}),e(cn,{size:on.XXXS,weight:400,color:s,children:n||o||r})]}):null},Su=o.div`
661
+ `,ku=({label:n,tooltip:o,required:r,badge:i,width:a,smallAndDark:s})=>n||o||r?t(kr,{$width:a,$justifyContent:"space-between",children:[n&&e(Au,{$smallAndDark:s,children:n}),t(kr,{$gap:4,children:[i&&e(Tu,{...i,textSize:on.XXXS}),r&&e(Iu,{children:"*"}),o&&e(cd,{text:o,withIcon:!0})]})]}):null,Nu=({errorMessage:n,warnMessage:o,helpMessage:r})=>{const a=i(),s=n?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return n||o||r?t(kr,{$alignItems:"center",children:[l&&e(Nr,{children:l}),e(cn,{size:on.XXXS,weight:400,color:s,children:n||o||r})]}):null},Du=o.div`
659
662
  padding: ${({$small:e})=>e?"4px":"6px 12px"};
660
663
 
661
664
  display: flex;
@@ -674,7 +677,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
674
677
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
675
678
  }
676
679
  `}
677
- `,Eu=o.input`
680
+ `,Ru=o.input`
678
681
  max-width: ${({$maxWidth:e})=>e||"unset"};
679
682
  width: ${({$width:e})=>e||"unset"};
680
683
 
@@ -706,12 +709,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
706
709
  pointer-events: none;
707
710
  user-select: none;
708
711
  }
709
- `,wu=o.div`
712
+ `,Ou=o.div`
710
713
  display: flex;
711
714
  align-items: center;
712
715
  justify-content: center;
713
716
  cursor: pointer;
714
- `,Cu=({label:n,required:o,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=Pn.Text,name:g,value:m,onChange:f,disabled:b,maxWidth:y,width:$,small:v=!1,onClick:x,...S})=>{const E=i(),w=h===Pn.Password,[C,T]=Ft(!1),[A,I]=Ft(null),N=c||!!d||!!A,k=m?E.v2.colors.white[500]:b?E.v2.colors.grey[400]:E.v2.colors.silver[200],D=v?14:18,R=Bt(null),O=Rc(R,{deps:[m]}),_=S.readOnly&&O&&null!=m&&""!==m?String(m):"";return t(kr,{$width:$,$gap:6,children:[e(vu,{label:n,tooltip:r,required:o,badge:a}),e(Su,{$small:v,$disabled:b,$error:N,$clickable:!!x&&!b,onClick:b?void 0:x,children:t(ed,{text:_,fullWidth:!0,keepAlive:!0,children:[s?e(s,{size:D,fill:k}):null,e(Eu,{"data-id":g,type:C||h===Pn.Number||h===Pn.Decimal?Pn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===Pn.Number||h===Pn.Decimal){const n=h===Pn.Number?di(t):ci(t),o=null!=S.min?Number(S.min):void 0,r=null!=S.max?Number(S.max):void 0,i=h===Pn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}if(e.target.value=a,t&&t!==n)I("Please enter a valid number");else if(s){I(`Value must be ${null!=o&&null!=r?`between ${o} and ${r}`:null!=r?`at most ${r}`:`at least ${o}`}`)}else I(null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:b,$maxWidth:y,$width:$,$small:v,...S,ref:R}),w?e(wu,{onClick:()=>T(e=>!e),children:e(C?St:Et,{size:D,fill:k})}):l?e(l,{size:D,fill:k}):null]})}),e(xu,{errorMessage:A||d,warnMessage:u,helpMessage:p})]})};var Tu,Au;!function(e){e.S="s",e.L="l"}(Tu||(Tu={})),function(e){e.Filled="filled",e.Underline="underline"}(Au||(Au={}));const Iu=o.div`
717
+ `,_u=({label:n,required:o,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=Pn.Text,name:g,value:m,onChange:f,disabled:b,maxWidth:y,width:$,small:v=!1,onClick:x,...S})=>{const E=i(),w=h===Pn.Password,[C,T]=Ft(!1),[A,I]=Ft(null),k=c||!!d||!!A,N=m?E.v2.colors.white[500]:b?E.v2.colors.grey[400]:E.v2.colors.silver[200],D=v?14:18,R=Bt(null),O=Bc(R,{deps:[m]}),_=S.readOnly&&O&&null!=m&&""!==m?String(m):"";return t(Nr,{$width:$,$gap:6,children:[e(ku,{label:n,tooltip:r,required:o,badge:a}),e(Du,{$small:v,$disabled:b,$error:k,$clickable:!!x&&!b,onClick:b?void 0:x,children:t(cd,{text:_,fullWidth:!0,keepAlive:!0,children:[s?e(s,{size:D,fill:N}):null,e(Ru,{"data-id":g,type:C||h===Pn.Number||h===Pn.Decimal?Pn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===Pn.Number||h===Pn.Decimal){const n=h===Pn.Number?gi(t):hi(t),o=null!=S.min?Number(S.min):void 0,r=null!=S.max?Number(S.max):void 0,i=h===Pn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}if(e.target.value=a,t&&t!==n)I("Please enter a valid number");else if(s){I(`Value must be ${null!=o&&null!=r?`between ${o} and ${r}`:null!=r?`at most ${r}`:`at least ${o}`}`)}else I(null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:b,$maxWidth:y,$width:$,$small:v,...S,ref:R}),w?e(Ou,{onClick:()=>T(e=>!e),children:e(C?St:Et,{size:D,fill:N})}):l?e(l,{size:D,fill:N}):null]})}),e(Nu,{errorMessage:A||d,warnMessage:u,helpMessage:p})]})};var Lu,Pu;!function(e){e.S="s",e.L="l"}(Lu||(Lu={})),function(e){e.Filled="filled",e.Underline="underline"}(Pu||(Pu={}));const Fu=o.div`
715
718
  display: flex;
716
719
  align-items: center;
717
720
  gap: 2px;
@@ -720,20 +723,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
720
723
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
721
724
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
722
725
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
723
- `,Nu=o.button`
726
+ `,Mu=o.button`
724
727
  flex: 1;
725
728
  display: flex;
726
729
  align-items: center;
727
730
  justify-content: center;
728
731
  gap: 8px;
729
- padding: ${({$size:e})=>e===Tu.S?"4px 8px":"8px 16px"};
732
+ padding: ${({$size:e})=>e===Lu.S?"4px 8px":"8px 16px"};
730
733
  border-radius: 6px;
731
734
  border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
732
735
  box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
733
736
 
734
737
  ${({$disabled:e,$isSelected:t,$selectedBgColor:n,theme:o})=>e?r`
735
738
  cursor: not-allowed;
736
- background-color: ${t?(n||o.v2.colors.black[500])+yd["040"]:"transparent"};
739
+ background-color: ${t?(n||o.v2.colors.black[500])+Ad["040"]:"transparent"};
737
740
  `:r`
738
741
  cursor: pointer;
739
742
  background-color: ${t?n||o.v2.colors.black[500]:"transparent"};
@@ -741,11 +744,11 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
741
744
  background-color: ${t?n||o.v2.colors.black[500]:o.v2.colors.silver[800]};
742
745
  }
743
746
  `}
744
- `,ku=o.div`
747
+ `,zu=o.div`
745
748
  display: flex;
746
749
  align-items: stretch;
747
750
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
748
- `,Du=o.button`
751
+ `,Uu=o.button`
749
752
  display: flex;
750
753
  height: 34px;
751
754
  padding: 8px 12px 8px 16px;
@@ -764,7 +767,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
764
767
  &:hover {
765
768
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
766
769
  }
767
- `,Ru=({"data-id":o,size:r=Tu.S,variant:a=Au.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Au.Underline,g=h?Du:Nu;return e(h?ku:Iu,{"data-id":o,$fullWidth:u,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:u,selectedBorderColor:m,disabled:f},b)=>{const y=l===o,$=f||d,v=$?p.v2.colors.grey[400]:h||y?p.v2.colors.white[500]:p.v2.colors.grey[300],x=r===Tu.S?on.XXS:on.XS,S=y?500:400,E=t(n,{children:[a&&e(a,{fill:v}),i&&e(cn,{size:x,weight:S,color:v,nowrap:!0,children:i})]});return e(g,{onClick:()=>!$&&c(o),$disabled:$,$isSelected:y,$size:r,...!h&&{$selectedBgColor:u,$selectedBorderColor:m},children:s?e(ed,{text:s,withIcon:!0,children:E}):E},`segment-${i||b}-${o}`)})})},Ou=o.div`
770
+ `,Bu=({"data-id":o,size:r=Lu.S,variant:a=Pu.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Pu.Underline,g=h?Uu:Mu;return e(h?zu:Fu,{"data-id":o,$fullWidth:u,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:u,selectedBorderColor:m,disabled:f},b)=>{const y=l===o,$=f||d,v=$?p.v2.colors.grey[400]:h||y?p.v2.colors.white[500]:p.v2.colors.grey[300],x=r===Lu.S?on.XXS:on.XS,S=y?500:400,E=t(n,{children:[a&&e(a,{fill:v}),i&&e(cn,{size:x,weight:S,color:v,nowrap:!0,children:i})]});return e(g,{onClick:()=>!$&&c(o),$disabled:$,$isSelected:y,$size:r,...!h&&{$selectedBgColor:u,$selectedBorderColor:m},children:s?e(cd,{text:s,withIcon:!0,children:E}):E},`segment-${i||b}-${o}`)})})},ju=o.div`
768
771
  box-sizing: border-box !important;
769
772
  width: ${({$width:e})=>e??"fit-content"};
770
773
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -778,7 +781,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
778
781
  border: none;
779
782
  border-radius: 6px;
780
783
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:n,$emphasizeBackgroundColor:o,theme:r})=>{const i=n??r.v2.colors.silver[800],a=o??r.v2.colors.silver[700];return e||t?a:i}};
781
- `,_u=o.input`
784
+ `,Hu=o.input`
782
785
  min-width: 0;
783
786
  flex: 1;
784
787
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -795,7 +798,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
795
798
  overflow: hidden;
796
799
  text-overflow: ellipsis;
797
800
  white-space: nowrap;
798
- `,Lu=({"data-id":n,value:o,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,b]=Ft(!1),[y,$]=Ft(!1),v=g?h.v2.colors.white[500]:h.v2.colors.silver[200],x=!!d?.options?.length,S=zt(()=>{if(x)return d?.options.find(e=>e.value===d.selected)?.label},[x,d?.options,d?.selected]),E=zt(()=>l||(x&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,x,S]);return t(Ou,{$width:c,$withSegment:x,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[e(wt,{size:18,fill:v}),e(_u,{"data-id":n??"search",name:"search",type:"text",placeholder:E,value:o,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:v}),x&&e("div",{style:{flexShrink:0},onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:e(Ru,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Pu=o.div`
801
+ `,Wu=({"data-id":n,value:o,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,b]=Ft(!1),[y,$]=Ft(!1),v=g?h.v2.colors.white[500]:h.v2.colors.silver[200],x=!!d?.options?.length,S=zt(()=>{if(x)return d?.options.find(e=>e.value===d.selected)?.label},[x,d?.options,d?.selected]),E=zt(()=>l||(x&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,x,S]);return t(ju,{$width:c,$withSegment:x,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[e(wt,{size:18,fill:v}),e(Hu,{"data-id":n??"search",name:"search",type:"text",placeholder:E,value:o,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:v}),x&&e("div",{style:{flexShrink:0},onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:e(Bu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Gu=o.div`
799
802
  display: flex;
800
803
  align-items: center;
801
804
  justify-content: center;
@@ -804,31 +807,31 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
804
807
  padding: 8px;
805
808
  border-radius: 100%;
806
809
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
807
- `,Fu=({icon:n=xt,hideIcon:o=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(kr,{$gap:12,$alignItems:"center",children:[!o&&e(Pu,{children:e(n,{size:32,fill:l})}),t(kr,{$gap:4,$alignItems:"center",children:[e(cn,{size:on.S,align:"center",children:r}),a&&e(cn,{size:on.XXS,align:"center",color:l,children:a})]}),s&&e(zd,{variant:Pd.Secondary,...s})]})};var Mu;!function(e){e.S="small",e.L="large"}(Mu||(Mu={}));const zu=o.div`
810
+ `,Xu=({icon:n=xt,hideIcon:o=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Nr,{$gap:12,$alignItems:"center",children:[!o&&e(Gu,{children:e(n,{size:32,fill:l})}),t(Nr,{$gap:4,$alignItems:"center",children:[e(cn,{size:on.S,align:"center",children:r}),a&&e(cn,{size:on.XXS,align:"center",color:l,children:a})]}),s&&e(Vd,{variant:Gd.Secondary,...s})]})};var Ku;!function(e){e.S="small",e.L="large"}(Ku||(Ku={}));const Vu=o.div`
808
811
  width: fit-content;
809
812
  display: flex;
810
813
  align-items: center;
811
814
  gap: 8px;
812
815
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
813
- `,Uu=o.div`
814
- width: ${({$size:e})=>e===Mu.S?"16px":"20px"};
815
- height: ${({$size:e})=>e===Mu.S?"16px":"20px"};
816
+ `,Ju=o.div`
817
+ width: ${({$size:e})=>e===Ku.S?"16px":"20px"};
818
+ height: ${({$size:e})=>e===Ku.S?"16px":"20px"};
816
819
  display: flex;
817
820
  align-items: center;
818
821
  justify-content: center;
819
822
  border-radius: 4px;
820
823
  border: 1px solid ${({$borderColor:e})=>e};
821
824
  background-color: ${({$backgroundColor:e})=>e};
822
- `,Bu=({name:n,label:o,tooltip:r,badge:a,size:s=Mu.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,b]=Ft(!1),y=c||d,$=s===Mu.S?12:16,v=l?m.v2.colors.grey[400]:m.v2.colors.white[500],x=y?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return t(kr,{$gap:4,children:[t(Nr,{$justifyContent:"space-between",children:[t(zu,{"data-id":n||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[e(Uu,{$size:s,$borderColor:x,$backgroundColor:S,children:c?e(Ct,{size:$,fill:v}):d?e(bt,{size:$,fill:v}):null}),o&&e(cn,{size:s===Mu.S?on.XXS:on.XS,nowrap:!0,children:o})]}),e(vu,{tooltip:r,badge:a})]}),e(xu,{errorMessage:p,warnMessage:h,helpMessage:g})]})},ju=o.div`
825
+ `,qu=({name:n,label:o,tooltip:r,badge:a,size:s=Ku.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,b]=Ft(!1),y=c||d,$=s===Ku.S?12:16,v=l?m.v2.colors.grey[400]:m.v2.colors.white[500],x=y?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return t(Nr,{$gap:4,children:[t(kr,{$justifyContent:"space-between",children:[t(Vu,{"data-id":n||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[e(Ju,{$size:s,$borderColor:x,$backgroundColor:S,children:c?e(Ct,{size:$,fill:v}):d?e(bt,{size:$,fill:v}):null}),o&&e(cn,{size:s===Ku.S?on.XXS:on.XS,nowrap:!0,children:o})]}),e(ku,{tooltip:r,badge:a})]}),e(Nu,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Yu=o.div`
823
826
  display: flex;
824
827
  flex-direction: ${({$direction:e})=>e===Tn.Horizontal?"row":"column"};
825
828
  gap: ${({$direction:e})=>e===Tn.Horizontal?16:8}px;
826
- `,Hu=({direction:n=Tn.Vertical,title:o,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===Mu.S?on.XXS:on.XS,u=zt(()=>s.every(e=>l[e.id]),[s,l]),p=zt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(n=>{const o={...n};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(ju,{$direction:n,children:[o&&a?e(Bu,{label:o,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):o&&!a?e(cn,{size:d,children:o}):null,s.map(t=>e(Bu,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:r},`${o}-checkbox-${t.id}`))]})};var Gu,Xu;!function(e){e.Left="left",e.Right="right"}(Gu||(Gu={})),function(e){e.Top="top",e.Bottom="bottom"}(Xu||(Xu={}));const Wu=o.div`
829
+ `,Qu=({direction:n=Tn.Vertical,title:o,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===Ku.S?on.XXS:on.XS,u=zt(()=>s.every(e=>l[e.id]),[s,l]),p=zt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(n=>{const o={...n};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(Yu,{$direction:n,children:[o&&a?e(qu,{label:o,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):o&&!a?e(cn,{size:d,children:o}):null,s.map(t=>e(qu,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:r},`${o}-checkbox-${t.id}`))]})};var Zu,ep;!function(e){e.Left="left",e.Right="right"}(Zu||(Zu={})),function(e){e.Top="top",e.Bottom="bottom"}(ep||(ep={}));const tp=o.div`
827
830
  position: relative;
828
831
  display: flex;
829
832
  flex-direction: column;
830
833
  gap: 4px;
831
- `,Ku=o.div`
834
+ `,np=o.div`
832
835
  position: fixed;
833
836
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
834
837
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -846,7 +849,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
846
849
  border-radius: 6px;
847
850
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
848
851
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
849
- `,Vu=o.div`
852
+ `,op=o.div`
850
853
  display: flex;
851
854
  flex-direction: column;
852
855
  gap: 0;
@@ -854,7 +857,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
854
857
  width: 100%;
855
858
  max-height: ${({$maxHeight:e})=>e||"230px"};
856
859
  overflow-y: auto;
857
- `,Ju=o.div`
860
+ `,rp=o.div`
858
861
  display: flex;
859
862
  align-items: center;
860
863
  gap: 8px;
@@ -870,7 +873,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
870
873
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
871
874
  }
872
875
  `}
873
- `,qu=({defaultOpen:n,open:o,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:b,isLoading:y,emptyMessage:$,children:v})=>{const x=i(),S=void 0!==o,E=!!f||!!b||!!v,[w,C]=Ft(n??!E),T=S?o:w,A=Ut(e=>{S||C(e),r?.(e)},[S,r]),[I,N]=Ft({x:a||Gu.Left,y:s||Xu.Bottom}),k=Bt(null);Dc(k,()=>A(!1));const[D,R]=Ft({}),O=Ut((e,t)=>{const n=k.current?.getBoundingClientRect();if(!n)return;const o=E?8:0;R({top:t===Xu.Bottom?E?n.bottom+o:n.top:void 0,bottom:t===Xu.Top?E?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===Gu.Left?n.left:void 0,right:e===Gu.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[E,g]),_=e=>{const t=!T;if(A(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?Gu.Right:Gu.Left),y:s||(e.clientY>window.innerHeight/2?Xu.Top:Xu.Bottom)};N(n),O(n.x,n.y)};jt(()=>{T&&O(I.x,I.y)},[T,I.x,I.y,O]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),E&&!p&&A(!1)},[P,F]=Ft(""),M=zt(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return t(Wu,{ref:k,children:[u&&e(vu,{label:u}),f&&e(zd,{...f,fullWidth:g,rightIcon:T?Tt:At,onClick:_}),b&&e(zd,{variant:Pd.Text,size:Fd.S,...b,onClick:_}),"function"==typeof v?v({ChevronIcon:T?Tt:At,handleClick:_}):v,T&&Zt(t(Ku,{$coords:D,"data-ignore-outside-click":"true",children:[h&&e(Lu,{value:P,onChange:F,width:"100%"}),y?e(Br,{withSpinner:!0,title:"Loading...",titleSize:on.XS}):M.length?e(Vu,{$maxHeight:m,children:M.map(n=>{if(!n)return null;const{id:o,label:r,icon:i,withCheckbox:a}=n,s=c.includes(o);return t(Ju,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>L(o),children:[a&&e(Bu,{value:s,onChange:()=>L(o)}),i&&e(i,{size:14,fill:n.color||x.v2.colors.white[500]}),e(cn,{size:on.XS,nowrap:!0,color:n.color||rn.Primary,children:r})]},o)})}):e(Ir,{$padding:"6px 0",children:e(Fu,{hideIcon:!0,title:"No results",subTitle:$})}),p&&!!M.length&&e(zd,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},Yu=t=>{const{"data-id":n,options:o,placeholder:r="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ft(""),[c,d]=Ft(!1),u=zt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),p=zt(()=>{if(a){const e=u.length;return e?1===e?o.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,u]),h=c?s:p,g=zt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),m=Ut(()=>{l(""),d(!0)},[]),f=Ut(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),b=Ut(e=>{d(e),e||l("")},[]),y=Ut(e=>{if(a)return void t.onSelect(e);const n=o.find(t=>t.id===e[0]);n&&(t.onSelect(n),l(""),d(!1))},[a,t,o]),$=c&&(i||g.length>0||s.length>0);return e(qu,{open:$,onOpenChange:b,items:g,selectedIds:u,setSelectedIds:y,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:Xu.Bottom,children:e(Cu,{name:n,leftIcon:wt,placeholder:r,value:h,onChange:f,onFocus:m})})},Qu=o.button`
876
+ `,ip=({defaultOpen:n,open:o,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:b,isLoading:y,emptyMessage:$,children:v})=>{const x=i(),S=void 0!==o,E=!!f||!!b||!!v,[w,C]=Ft(n??!E),T=S?o:w,A=Ut(e=>{S||C(e),r?.(e)},[S,r]),[I,k]=Ft({x:a||Zu.Left,y:s||ep.Bottom}),N=Bt(null);Uc(N,()=>A(!1));const[D,R]=Ft({}),O=Ut((e,t)=>{const n=N.current?.getBoundingClientRect();if(!n)return;const o=E?8:0;R({top:t===ep.Bottom?E?n.bottom+o:n.top:void 0,bottom:t===ep.Top?E?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===Zu.Left?n.left:void 0,right:e===Zu.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[E,g]),_=e=>{const t=!T;if(A(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?Zu.Right:Zu.Left),y:s||(e.clientY>window.innerHeight/2?ep.Top:ep.Bottom)};k(n),O(n.x,n.y)};jt(()=>{T&&O(I.x,I.y)},[T,I.x,I.y,O]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),E&&!p&&A(!1)},[P,F]=Ft(""),M=zt(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return t(tp,{ref:N,children:[u&&e(ku,{label:u}),f&&e(Vd,{...f,fullWidth:g,rightIcon:T?Tt:At,onClick:_}),b&&e(Vd,{variant:Gd.Text,size:Xd.S,...b,onClick:_}),"function"==typeof v?v({ChevronIcon:T?Tt:At,handleClick:_}):v,T&&Zt(t(np,{$coords:D,"data-ignore-outside-click":"true",children:[h&&e(Wu,{value:P,onChange:F,width:"100%"}),y?e(Br,{withSpinner:!0,title:"Loading...",titleSize:on.XS}):M.length?e(op,{$maxHeight:m,children:M.map(n=>{if(!n)return null;const{id:o,label:r,icon:i,withCheckbox:a}=n,s=c.includes(o);return t(rp,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>L(o),children:[a&&e(qu,{value:s,onChange:()=>L(o)}),i&&e(i,{size:14,fill:n.color||x.v2.colors.white[500]}),e(cn,{size:on.XS,nowrap:!0,color:n.color||rn.Primary,children:r})]},o)})}):e(Ir,{$padding:"6px 0",children:e(Xu,{hideIcon:!0,title:"No results",subTitle:$})}),p&&!!M.length&&e(Vd,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},ap=t=>{const{"data-id":n,options:o,placeholder:r="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ft(""),[c,d]=Ft(!1),u=zt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),p=zt(()=>{if(a){const e=u.length;return e?1===e?o.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,u]),h=c?s:p,g=zt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),m=Ut(()=>{l(""),d(!0)},[]),f=Ut(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),b=Ut(e=>{d(e),e||l("")},[]),y=Ut(e=>{if(a)return void t.onSelect(e);const n=o.find(t=>t.id===e[0]);n&&(t.onSelect(n),l(""),d(!1))},[a,t,o]),$=c&&(i||g.length>0||s.length>0);return e(ip,{open:$,onOpenChange:b,items:g,selectedIds:u,setSelectedIds:y,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:ep.Bottom,children:e(_u,{name:n,leftIcon:wt,placeholder:r,value:h,onChange:f,onFocus:m})})},sp=o.button`
874
877
  width: 100%;
875
878
  padding: 0;
876
879
  padding-right: 12px;
@@ -891,7 +894,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
891
894
  cursor: not-allowed;
892
895
  opacity: 0.5;
893
896
  }
894
- `,Zu=o.div`
897
+ `,lp=o.div`
895
898
  width: ${({$hasIcon:e})=>e?"56px":"0"};
896
899
  height: 56px;
897
900
  display: flex;
@@ -902,53 +905,55 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
902
905
  `:r`
903
906
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
904
907
  `}
905
- `,ep=o.div`
908
+ `,cp=o.div`
906
909
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
907
910
  display: flex;
908
911
  justify-content: space-between;
909
912
  align-items: center;
910
913
  gap: 8px;
911
- `,tp=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(Qu,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Zu,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(ep,{$hasIcon:!!o,children:[r?e(Ld,{size:16}):e(cn,{variant:nn.Span,align:"center",children:n}),e(It,{rotate:90,size:24})]})]})},np=({buttons:t})=>e(kr,{$gap:12,children:t.map(t=>e(tp,{...t},t.label))});var op;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(op||(op={}));const rp=({onAnyClick:t,actions:n})=>e(Nr,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case op.Button:return e(zd,{...n.buttonProps,onClick:e=>{n.buttonProps?.onClick?.(e),t?.()}},n.id);case op.ButtonDropData:return e(qu,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{n.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),ip=({children:t,fullText:n,...o})=>{const r=Bt(null),i=!!o.maxLines&&o.maxLines>0,a=Rc(r,{axis:i?"vertical":"horizontal",deps:[t]})?n??(null==t?"":String(t)):"";return e(ed,{text:a,fullWidth:!0,ellipsis:!i,keepAlive:!0,children:e(cn,{ref:r,...o,children:t})})},ap=o.div`
914
+ `,dp=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(sp,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(lp,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(cp,{$hasIcon:!!o,children:[r?e(Wd,{size:16}):e(cn,{variant:nn.Span,align:"center",children:n}),e(It,{rotate:90,size:24})]})]})},up=({buttons:t})=>e(Nr,{$gap:12,children:t.map(t=>e(dp,{...t},t.label))});var pp;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(pp||(pp={}));const hp=({onAnyClick:t,actions:n})=>e(kr,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case pp.Button:return e(Vd,{...n.buttonProps,onClick:e=>{n.buttonProps?.onClick?.(e),t?.()}},n.id);case pp.ButtonDropData:return e(ip,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{n.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),gp=({children:t,fullText:n,...o})=>{const r=Bt(null),i=!!o.maxLines&&o.maxLines>0,a=Bc(r,{axis:i?"vertical":"horizontal",deps:[t]})?n??(null==t?"":String(t)):"";return e(cd,{text:a,fullWidth:!0,ellipsis:!i,keepAlive:!0,children:e(cn,{ref:r,...o,children:t})})},mp=o.div`
912
915
  display: flex;
913
916
  align-items: center;
914
917
  justify-content: center;
915
918
  padding: 8px;
916
919
  border-radius: 8px;
917
- background-color: ${({theme:e})=>e.v2.colors.white[500]+yd["004"]};
918
- `,sp=({icon:n,iconWithWrapper:o=!1,title:r,titleSize:i=on.S,subTitle:a,subTitleSize:s=on.XXS,tooltip:l,withCopy:c,badge:d,gap:u,children:p})=>{const{CopyButton:h}=Ec();return t(Nr,{$gap:a?8:6,$alignItems:"center",children:[n&&(o||a?e(ap,{children:e(n,{size:24})}):e(n,{size:24})),r||d||a?t(kr,{children:[r||d?t(Nr,{$gap:6,$alignItems:"center",children:[r&&e(cn,{size:i,nowrap:!0,children:r}),c&&r&&e(h,{value:r,size:vc.XS}),l&&e(ed,{text:l,withIcon:!0}),d&&e(bu,{...d})]}):null,a&&e(cn,{size:s,color:rn.Secondary,nowrap:!0,children:a})]}):null,e(Nr,{$gap:u,$margin:`0 0 0 ${u??0}px`,$alignItems:"center",children:p})]})},lp=o.section`
920
+ background-color: ${({theme:e})=>e.v2.colors.white[500]+Ad["004"]};
921
+ `,fp=({icon:n,iconWithWrapper:o=!1,title:r,titleSize:i=on.S,titleColor:a=rn.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=on.XXS,subTitleColor:d=rn.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:b}=Rc();return t(kr,{$gap:l?8:6,$alignItems:"center",children:[n&&(o||l?e(mp,{children:e(n,{size:24})}):e(n,{size:24})),r||g||l?t(Nr,{children:[r||g?t(kr,{$gap:6,$alignItems:"center",children:[r&&e(cn,{size:i,color:a,nowrap:!s,children:r}),h&&r&&e(b,{value:r,size:kc.XS}),p&&e(cd,{text:p,withIcon:!0}),g&&e(Tu,{...g})]}):null,l&&e(cn,{size:c,color:d,nowrap:!u,children:l})]}):null,e(kr,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},bp=o.section`
919
922
  display: flex;
920
923
  flex-direction: column;
921
924
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
922
925
  width: ${({$width:e="100%",$moreSpacing:t})=>`calc(${e} - ${t?32:24}px)`};
923
926
  align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
927
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
924
928
  padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
925
929
  border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
926
930
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
927
- `,cp=o(Nr)`
931
+ `,yp=o(kr)`
928
932
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
929
933
  user-select: ${({$clickable:e})=>e?"none":"auto"};
930
- `,dp=o.div`
934
+ `,$p=o.div`
931
935
  display: flex;
932
936
  align-items: flex-end;
933
937
  flex-wrap: wrap;
934
938
  width: 100%;
935
- `,up=o.div`
939
+ `,vp=o.div`
936
940
  width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
937
941
  margin: 8px;
938
942
  display: flex;
939
943
  flex-direction: column;
940
944
  gap: 4px;
941
945
  min-width: 0;
942
- `,pp=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Ec(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?e("div",{style:{flex:1}}):t(up,{$cellsPerRow:o,children:[!!a&&e(ed,{text:s,children:e(ip,{size:on.XXXS,color:rn.Secondary,nowrap:!0,children:a})}),t(Nr,{$gap:4,children:[u&&e(bu,{...u}),l&&e(ed,{text:c,children:e(ip,{size:on.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:vc.XS})]})]})},hp=({bgTint:n="900",width:o,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,b]=Ft(l||!1),y=()=>b(e=>!e),$=!s||s&&f,v=!!d.length,x=!!u.length,S=!!c.length;return t(lp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(cp,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&y()},children:[a?e(sp,{...a}):e("div",{}),t(Nr,{$gap:12,children:[p,v&&$&&e(rp,{actions:d}),S&&e(Nr,{$gap:8,children:c.map(e=>Ht(bu,{...e,key:e.key||e.label}))}),(x||s)&&t(Nr,{$gap:2,children:[x&&e(qu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Nt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(zd,{variant:Pd.Text,size:Fd.S,leftIcon:f?Tt:At,onClick:y})]})]})]}),$&&g?e(dp,{children:g.map(t=>e(pp,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,$&&m]})};var gp;!function(e){e.S="small",e.M="medium"}(gp||(gp={}));const mp=o.div`
946
+ `,xp=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Rc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?e("div",{style:{flex:1}}):t(vp,{$cellsPerRow:o,children:[!!a&&e(cd,{text:s,children:e(gp,{size:on.XXXS,color:rn.Secondary,nowrap:!0,children:a})}),t(kr,{$gap:4,children:[u&&e(Tu,{...u}),l&&e(cd,{text:c,children:e(gp,{size:on.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:kc.XS})]})]})},Sp=({bgTint:n="900",width:o,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,b]=Ft(l||!1),y=()=>b(e=>!e),$=!s||s&&f,v=!!d.length,x=!!u.length,S=!!c.length;return t(bp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(yp,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&y()},children:[a?e(fp,{...a}):e("div",{}),t(kr,{$gap:12,children:[p,v&&$&&e(hp,{actions:d}),S&&e(kr,{$gap:8,children:c.map(e=>Ht(Tu,{...e,key:e.key||e.label}))}),(x||s)&&t(kr,{$gap:2,children:[x&&e(ip,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:kt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(Vd,{variant:Gd.Text,size:Xd.S,leftIcon:f?Tt:At,onClick:y})]})]})]}),$&&g?e($p,{children:g.map(t=>e(xp,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,$&&m]})};var Ep;!function(e){e.S="small",e.M="medium"}(Ep||(Ep={}));const wp=o.div`
943
947
  display: flex;
944
948
  flex-direction: column;
945
949
  gap: ${({$gap:e})=>e}px;
946
950
  width: ${({$padding:e})=>`calc(100% - ${2*e}px)`};
947
951
  align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
952
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
948
953
  padding: ${({$padding:e})=>e}px;
949
954
  border-radius: 16px;
950
- background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
951
- `,fp=Lt(({id:n,size:o=gp.M,fullHeight:r=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u},p)=>{const h=o===gp.S?4:16,g=o===gp.S?12:16,m=a??(i?e(sp,{...i}):null),f=l??(s?e(Lu,{...s}):null),b=!!m||!!f,y=!!d&&d.length>0;return t(mp,{ref:p,id:n,"data-section-name":n,$padding:g,$gap:h,$fullHeight:r,children:[b||y?t(Nr,{$gap:h,$justifyContent:"space-between",children:[b?t(Nr,{$gap:h,$alignItems:"center",children:[m,f,c]}):null,y&&e(rp,{actions:d??[]})]}):null,u]})});fp.displayName="SectionCard";const bp=o.div`
955
+ background-color: ${({theme:e,$backgroundColor:t})=>t??e.v2.colors.silver[1e3]};
956
+ `,Cp=Lt(({id:n,size:o=Ep.M,fullHeight:r=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h},g)=>{const m=o===Ep.S?4:16,f="number"==typeof h?h:o===Ep.S?12:16,b=a??(i?e(fp,{...i}):null),y=l??(s?e(Wu,{...s}):null),$=!!b||!!y,v=!!d&&d.length>0;return t(wp,{ref:g,id:n,"data-section-name":n,$padding:f,$gap:m,$fullHeight:r,$backgroundColor:p,children:[$||v?t(kr,{$gap:m,$justifyContent:"space-between",children:[$?t(kr,{$gap:m,$alignItems:"center",children:[b,y,c]}):null,v&&e(hp,{actions:d??[]})]}):null,u]})});Cp.displayName="SectionCard";const Tp=o.div`
952
957
  flex: 1;
953
958
  align-self: stretch;
954
959
  display: flex;
@@ -957,7 +962,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
957
962
  padding: 16px;
958
963
  border-radius: 12px;
959
964
  background-color: ${({theme:e,$status:t})=>ar(e,t,t===Un.Unknown?"750":"500")};
960
- `,yp=o.div`
965
+ `,Ap=o.div`
961
966
  display: flex;
962
967
  align-items: center;
963
968
  justify-content: center;
@@ -965,8 +970,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
965
970
  height: fit-content;
966
971
  padding: 8px;
967
972
  border-radius: 12px;
968
- background-color: ${({theme:e,$status:t})=>t===Un.Unknown?ar(e,t,"800"):ar(e,t,"900")+yd["015"]};
969
- `,$p=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??jr(n,s),c=[Fn.Default,Fn.Info,Un.Disabled,Un.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(bp,{$status:n,children:[e(yp,{$status:n,children:e(l,{size:32,fill:c})}),t(kr,{$gap:2,$justifyContent:"center",children:[e(cn,{size:on.M,weight:500,color:c,nowrap:!0,children:r}),e(cn,{size:on.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},vp=o.div`
973
+ background-color: ${({theme:e,$status:t})=>t===Un.Unknown?ar(e,t,"800"):ar(e,t,"900")+Ad["015"]};
974
+ `,Ip=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??jr(n,s),c=[Fn.Default,Fn.Info,Un.Disabled,Un.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Tp,{$status:n,children:[e(Ap,{$status:n,children:e(l,{size:32,fill:c})}),t(Nr,{$gap:2,$justifyContent:"center",children:[e(cn,{size:on.M,weight:500,color:c,nowrap:!0,children:r}),e(cn,{size:on.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},kp=o.div`
970
975
  flex: 0.5;
971
976
  display: flex;
972
977
  flex-direction: column;
@@ -974,25 +979,25 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
974
979
  padding: 12px;
975
980
  border-radius: 12px;
976
981
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
977
- `,xp=["-","N/A","undefined","null","undefined/undefined","null/null"],Sp=({title:n,cells:o})=>{const r=i();return t(vp,{children:[e(cn,{size:on.XXS,color:r.v2.colors.grey[150],children:n}),e(Nr,{$gap:32,children:o.map(o=>t(kr,{$gap:2,children:[!o.isLoading||o.value&&!xp.includes(o.value)?e(cn,{size:o.label?on.M:on.L,children:o.value}):e(Rd,{scale:.9}),o.label&&e(cn,{size:on.XXS,children:o.label})]},`${n}-${o.label}-${o.value}`))})]})};var Ep;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Ep||(Ep={}));const wp=o.div`
982
+ `,Np=["-","N/A","undefined","null","undefined/undefined","null/null"],Dp=({title:n,cells:o})=>{const r=i();return t(kp,{children:[e(cn,{size:on.XXS,color:r.v2.colors.grey[150],children:n}),e(kr,{$gap:32,children:o.map(o=>t(Nr,{$gap:2,children:[!o.isLoading||o.value&&!Np.includes(o.value)?e(cn,{size:o.label?on.M:on.L,children:o.value}):e(Bd,{scale:.9}),o.label&&e(cn,{size:on.XXS,children:o.label})]},`${n}-${o.label}-${o.value}`))})]})};var Rp;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Rp||(Rp={}));const Op=o.div`
978
983
  display: flex;
979
984
  align-items: flex-end;
980
985
  justify-content: space-between;
981
986
  gap: 24px;
982
987
  width: fit-content;
983
- `,Cp=o.div`
988
+ `,_p=o.div`
984
989
  position: relative;
985
990
  display: flex;
986
991
  flex-direction: column;
987
992
  align-items: center;
988
993
  width: ${({$width:e})=>e??150}px;
989
994
  flex-shrink: 0;
990
- `,Tp=o.svg`
995
+ `,Lp=o.svg`
991
996
  display: block;
992
997
  width: 100%;
993
998
  height: auto;
994
999
  overflow: visible;
995
- `,Ap=o(kr)`
1000
+ `,Pp=o(Nr)`
996
1001
  position: absolute;
997
1002
  left: 0;
998
1003
  right: 0;
@@ -1000,14 +1005,14 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1000
1005
  align-items: center;
1001
1006
  gap: 2px;
1002
1007
  pointer-events: none;
1003
- `,Ip=o.span`
1008
+ `,Fp=o.span`
1004
1009
  display: inline-block;
1005
1010
  flex-shrink: 0;
1006
1011
  width: 9px;
1007
1012
  height: 9px;
1008
1013
  border-radius: 50%;
1009
1014
  background-color: ${({$color:e})=>e};
1010
- `,Np=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},kp=10,Dp=(e,t,n,o)=>{const r=o*Math.PI/180;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}},Rp=(e,t,n,o,r)=>{const i=Dp(e,t,n,o),a=Dp(e,t,n,r),s=o>r?1:0,l=Math.abs(o-r)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},Op=({variant:n=Ep.CurrentOfMax,gaugeWidth:o,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Np(a),{number:g}=Np(s),{number:m,prefix:f,suffix:b}=Np(l),y=i(),$=((e,t,n)=>Math.min(Math.max(e,t),n))((m-h)/Math.max(g-h,1),0,1),v=180-180*$,x=$>0?Rp(60,60,55,180,v):null,S=$<1?Rp(60,60,55,v,0):null,E=Dp(60,60,55,180),w=Dp(60,60,55,0),C=d??(n===Ep.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(n===Ep.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[A,I]=Ft(null),N=e=>`${f}${e}${b}`,k=n===Ep.GoodAgainstBad?Math.max(g-m,0):g,D="primary"===A?c:"secondary"===A?u:"",R="primary"===A?N(m):"secondary"===A?N(k):"",O=()=>I("primary"),_=()=>I("secondary"),L=()=>I(null);return t(wp,{children:[t(Cp,{$width:o,children:[e(ed,{keepAlive:!0,fullWidth:!0,title:D,text:R,children:t(Tp,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[x&&e("path",{d:x,fill:"none",stroke:C,strokeWidth:kp,strokeLinecap:1===$?"round":"butt",onMouseEnter:O,onMouseLeave:L}),S&&e("path",{d:S,fill:"none",stroke:T,strokeWidth:kp,strokeLinecap:0===$?"round":"butt",onMouseEnter:_,onMouseLeave:L}),$>0&&e("circle",{cx:E.x,cy:E.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:L}),$<1&&e("circle",{cx:w.x,cy:w.y,r:5,fill:T,onMouseEnter:_,onMouseLeave:L})]})}),r&&t(Ap,{children:[e(cn,{size:on.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),e(cn,{size:on.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),t(kr,{$gap:7,children:[t(Nr,{$gap:8,$alignItems:"center",children:[e(Ip,{$color:C}),e(cn,{size:on.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Nr,{$gap:8,$alignItems:"center",children:[e(Ip,{$color:T}),e(cn,{size:on.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},_p=o(Nr)`
1015
+ `,Mp=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},zp=10,Up=(e,t,n,o)=>{const r=o*Math.PI/180;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}},Bp=(e,t,n,o,r)=>{const i=Up(e,t,n,o),a=Up(e,t,n,r),s=o>r?1:0,l=Math.abs(o-r)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},jp=({variant:n=Rp.CurrentOfMax,gaugeWidth:o,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Mp(a),{number:g}=Mp(s),{number:m,prefix:f,suffix:b}=Mp(l),y=i(),$=((e,t,n)=>Math.min(Math.max(e,t),n))((m-h)/Math.max(g-h,1),0,1),v=180-180*$,x=$>0?Bp(60,60,55,180,v):null,S=$<1?Bp(60,60,55,v,0):null,E=Up(60,60,55,180),w=Up(60,60,55,0),C=d??(n===Rp.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(n===Rp.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[A,I]=Ft(null),k=e=>`${f}${e}${b}`,N=n===Rp.GoodAgainstBad?Math.max(g-m,0):g,D="primary"===A?c:"secondary"===A?u:"",R="primary"===A?k(m):"secondary"===A?k(N):"",O=()=>I("primary"),_=()=>I("secondary"),L=()=>I(null);return t(Op,{children:[t(_p,{$width:o,children:[e(cd,{keepAlive:!0,fullWidth:!0,title:D,text:R,children:t(Lp,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[x&&e("path",{d:x,fill:"none",stroke:C,strokeWidth:zp,strokeLinecap:1===$?"round":"butt",onMouseEnter:O,onMouseLeave:L}),S&&e("path",{d:S,fill:"none",stroke:T,strokeWidth:zp,strokeLinecap:0===$?"round":"butt",onMouseEnter:_,onMouseLeave:L}),$>0&&e("circle",{cx:E.x,cy:E.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:L}),$<1&&e("circle",{cx:w.x,cy:w.y,r:5,fill:T,onMouseEnter:_,onMouseLeave:L})]})}),r&&t(Pp,{children:[e(cn,{size:on.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),e(cn,{size:on.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),t(Nr,{$gap:7,children:[t(kr,{$gap:8,$alignItems:"center",children:[e(Fp,{$color:C}),e(cn,{size:on.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:c})]}),t(kr,{$gap:8,$alignItems:"center",children:[e(Fp,{$color:T}),e(cn,{size:on.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Hp=o(kr)`
1011
1016
  width: calc(100% - 20px);
1012
1017
  padding: 8px 12px;
1013
1018
  border-radius: 6px;
@@ -1016,24 +1021,24 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1016
1021
  align-items: center;
1017
1022
  justify-content: space-between;
1018
1023
  gap: 12px;
1019
- `,Lp=o.div`
1024
+ `,Wp=o.div`
1020
1025
  position: relative;
1021
1026
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
1022
1027
  display: flex;
1023
1028
  align-items: center;
1024
1029
  gap: 4px;
1025
- `,Pp=o.pre`
1030
+ `,Gp=o.pre`
1026
1031
  flex: 1;
1027
1032
  margin: 0;
1028
1033
  padding: 0;
1029
1034
  font-size: 12px;
1030
1035
  color: #5ffb98; // TODO: add to theme
1031
1036
  overflow-x: auto;
1032
- `,Fp=o.span`
1037
+ `,Xp=o.span`
1033
1038
  flex-shrink: 0;
1034
1039
  font-size: 14px;
1035
1040
  color: #5ffb98; // TODO: add to theme
1036
- `,Mp=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Ec({onDone:a}),l=Bt(null),[c,d]=Ft(!1);return Mt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),t(kr,{$gap:4,children:[o&&e(cn,{size:on.XXXS,color:rn.Secondary,children:o}),t(_p,{$bgTint:n,children:[t(Lp,{$hideCopy:i,children:[e(Pp,{ref:l,children:r}),c&&e(Fp,{children:"..."})]}),!i&&e(s,{value:r,size:vc.XS})]})]})},zp=o.div`
1041
+ `,Kp=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Rc({onDone:a}),l=Bt(null),[c,d]=Ft(!1);return Mt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),t(Nr,{$gap:4,children:[o&&e(cn,{size:on.XXXS,color:rn.Secondary,children:o}),t(Hp,{$bgTint:n,children:[t(Wp,{$hideCopy:i,children:[e(Gp,{ref:l,children:r.toLowerCase()}),c&&e(Xp,{children:"..."})]}),!i&&e(s,{value:r.toLowerCase(),size:kc.XS})]})]})},Vp=o.div`
1037
1042
  display: flex;
1038
1043
  align-items: center;
1039
1044
  gap: 8px;
@@ -1049,7 +1054,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1049
1054
  background-color: ${t?"transparent":n};
1050
1055
  }
1051
1056
  `}
1052
- `,Up=o.div`
1057
+ `,Jp=o.div`
1053
1058
  display: flex;
1054
1059
  align-items: center;
1055
1060
  justify-content: center;
@@ -1067,44 +1072,44 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1067
1072
  transform: scale(1.2);
1068
1073
  }
1069
1074
  `}
1070
- `,Bp=o(kr)`
1075
+ `,qp=o(Nr)`
1071
1076
  flex: 1;
1072
1077
  min-width: 0;
1073
- `,jp=o.div`
1078
+ `,Yp=o.div`
1074
1079
  display: flex;
1075
1080
  align-items: center;
1076
1081
  justify-content: center;
1077
1082
  flex-shrink: 0;
1078
1083
  width: 24px;
1079
1084
  height: 24px;
1080
- `,Hp=({status:n,title:o,subTitle:r,badgeLabel:a,loading:s,action:l,isExtended:c=!1,toggleExtended:d,invertColors:u=!1,hideIcon:p=!1,hideBackground:h=!1,width:g,slim:m=!1})=>{const f=i(),b=jr(n,f),y=d?c?Tt:At:void 0,$=n===Un.Unknown,v=n===Un.Disabled,x=n===zn.Loading||s,S=[Fn.Error,Fn.Warning,Fn.Success].includes(n),E=ar(f,n,v?u?"400":"700":$?"600":u?"300":"500"),w=v?f.v2.colors.grey[400]:u?f.v2.colors.white[500]:S?f.v2.colors.black[500]:f.v2.colors.white[500],C=u&&!$?E:w,T=!u||$||v?"rgba(0, 0, 0, 0.13)":ar(f,n,"800"),A=v?f.v2.colors.grey[900]:u||$?f.v2.colors.silver[800]:E,I=v?f.v2.colors.grey[800]:u||$?f.v2.colors.silver[700]:ar(f,n,"600");return t(zp,{$width:g,$withHover:!!d,$isExtended:c,$hideBackground:h,$backgroundColor:A,$hoverBackgroundColor:I,$slim:m,onClick:d,children:[!p&&e(Up,{$backgroundColor:T,$slim:m,children:x?e(Br,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(b,{size:32,fill:C})}),t(Bp,{$gap:4,$justifyContent:"center",children:[t(Nr,{$gap:10,$alignItems:"center",children:[e(cn,{size:m?on.XS:on.S,weight:500,color:C,children:o}),a&&e(bu,{label:a,backgroundColor:f.v2.colors.silver[600],textColor:f.v2.colors.white[500],textSize:on.XXXS})]}),r&&e(cn,{size:on.XXXS,color:w,children:r})]}),l&&e(Up,{"data-id":l["data-id"],$backgroundColor:f.v2.colors.silver[750],$slim:m,$withClick:!!l.onClick,onClick:l.onClick,children:e(ed,{text:l.tooltip,children:e(l.icon,{size:32,fill:w})})}),y&&e(jp,{children:e(y,{size:24,fill:w})})]})},Gp=o.div`
1085
+ `,Qp=({status:n,title:o,subTitle:r,badgeLabel:a,loading:s,action:l,isExtended:c=!1,toggleExtended:d,invertColors:u=!1,hideIcon:p=!1,hideBackground:h=!1,width:g,slim:m=!1})=>{const f=i(),b=jr(n,f),y=d?c?Tt:At:void 0,$=n===Un.Unknown,v=n===Un.Disabled,x=n===zn.Loading||s,S=[Fn.Error,Fn.Warning,Fn.Success].includes(n),E=ar(f,n,v?u?"400":"700":$?"600":u?"300":"500"),w=v?f.v2.colors.grey[400]:u?f.v2.colors.white[500]:S?f.v2.colors.black[500]:f.v2.colors.white[500],C=u&&!$?E:w,T=!u||$||v?"rgba(0, 0, 0, 0.13)":ar(f,n,"800"),A=v?f.v2.colors.grey[900]:u||$?f.v2.colors.silver[800]:E,I=v?f.v2.colors.grey[800]:u||$?f.v2.colors.silver[700]:ar(f,n,"600");return t(Vp,{$width:g,$withHover:!!d,$isExtended:c,$hideBackground:h,$backgroundColor:A,$hoverBackgroundColor:I,$slim:m,onClick:d,children:[!p&&e(Jp,{$backgroundColor:T,$slim:m,children:x?e(Br,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(b,{size:32,fill:C})}),t(qp,{$gap:4,$justifyContent:"center",children:[t(kr,{$gap:10,$alignItems:"center",children:[e(cn,{size:m?on.XS:on.S,weight:500,color:C,children:o}),a&&e(Tu,{label:a,backgroundColor:f.v2.colors.silver[600],textColor:f.v2.colors.white[500],textSize:on.XXXS})]}),r&&e(cn,{size:on.XXXS,color:w,children:r})]}),l&&e(Jp,{"data-id":l["data-id"],$backgroundColor:f.v2.colors.silver[750],$slim:m,$withClick:!!l.onClick,onClick:l.onClick,children:e(cd,{text:l.tooltip,children:e(l.icon,{size:32,fill:w})})}),y&&e(Yp,{children:e(y,{size:24,fill:w})})]})},Zp=o.div`
1081
1086
  display: flex;
1082
1087
  flex-direction: column;
1083
1088
  width: 100%;
1084
1089
  border-radius: 12px;
1085
1090
  overflow: hidden;
1086
- `,Xp=o.div`
1091
+ `,eh=o.div`
1087
1092
  display: flex;
1088
1093
  flex-direction: column;
1089
1094
  gap: 8px;
1090
1095
  padding: 8px 12px 16px 12px;
1091
1096
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1092
- `,Wp=o.div`
1097
+ `,th=o.div`
1093
1098
  display: flex;
1094
1099
  align-items: center;
1095
1100
  gap: 8px;
1096
- `,Kp=o.div`
1101
+ `,nh=o.div`
1097
1102
  display: flex;
1098
1103
  align-items: center;
1099
1104
  justify-content: center;
1100
1105
  flex-shrink: 0;
1101
1106
  width: 18px;
1102
1107
  height: 18px;
1103
- `,Vp=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Ut(()=>l(e=>!e),[]),d=zt(()=>ii(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=zt(()=>Lo(d),[d]);Mt(()=>{l(p||g||m)},[p,g,m]);const b=zt(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),y=zt(()=>p?Fn.Error:g?Fn.Warning:m?Fn.Info:Fn.Success,[p,g,m]),$=zt(()=>o||(1===d.length?tn(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:o})=>{const r="Something isn't right";return e?"Something Failed":t||n?r:o?"Loading...":"Everything Successful"})({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[o,d,p,g,m,b]),v=zt(()=>r||1===d.length&&d[0].message||void 0,[r,d]),x=zt(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return t(Gp,{children:[e(Hp,{status:y,invertColors:!0,title:$,subTitle:v,badgeLabel:x,loading:b,isExtended:s,toggleExtended:c}),s&&e(Xp,{children:d.map(({status:n,type:o,reason:r,message:i},s)=>{const l=n===zn.Loading,c=n===zn.Disabled?Fn.Info:n,d=l?null:jr(c,a),u=n===Fn.Error?ar(a,Fn.Error,"500"):n===Fn.Warning?ar(a,Fn.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return t(Wp,{children:[e(Kp,{children:l||!d?e(Br,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(cn,{size:on.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})};var Jp,qp,Yp;!function(e){e.Default="default",e.SuccessError="successError"}(Jp||(Jp={})),function(e){e.S="small",e.L="large"}(qp||(qp={})),function(e){e.Left="left",e.Right="right"}(Yp||(Yp={}));const Qp=o.div`
1108
+ `,oh=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Ut(()=>l(e=>!e),[]),d=zt(()=>ci(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=zt(()=>Lo(d),[d]);Mt(()=>{l(p||g||m)},[p,g,m]);const b=zt(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),y=zt(()=>p?Fn.Error:g?Fn.Warning:m?Fn.Info:Fn.Success,[p,g,m]),$=zt(()=>o||(1===d.length?tn(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:o})=>{const r="Something isn't right";return e?"Something Failed":t||n?r:o?"Loading...":"Everything Successful"})({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[o,d,p,g,m,b]),v=zt(()=>r||1===d.length&&d[0].message||void 0,[r,d]),x=zt(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return t(Zp,{children:[e(Qp,{status:y,invertColors:!0,title:$,subTitle:v,badgeLabel:x,loading:b,isExtended:s,toggleExtended:c}),s&&e(eh,{children:d.map(({status:n,type:o,reason:r,message:i},s)=>{const l=n===zn.Loading,c=n===zn.Disabled?Fn.Info:n,d=l?null:jr(c,a),u=n===Fn.Error?ar(a,Fn.Error,"500"):n===Fn.Warning?ar(a,Fn.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return t(th,{children:[e(nh,{children:l||!d?e(Br,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(cn,{size:on.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})};var rh,ih,ah;!function(e){e.Default="default",e.SuccessError="successError"}(rh||(rh={})),function(e){e.S="small",e.L="large"}(ih||(ih={})),function(e){e.Left="left",e.Right="right"}(ah||(ah={}));const sh=o.div`
1104
1109
  display: flex;
1105
1110
  align-items: center;
1106
1111
  gap: ${({$gap:e})=>e}px;
1107
- `,Zp=o.div`
1112
+ `,lh=o.div`
1108
1113
  position: relative;
1109
1114
  display: flex;
1110
1115
  align-items: center;
@@ -1114,11 +1119,11 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1114
1119
  height: ${({$size:e})=>e}px;
1115
1120
  padding: ${4}px;
1116
1121
  border-radius: ${({$size:e})=>2*e}px;
1117
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:o,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(n&&!r)return n;switch(o){case Jp.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case Jp.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
1122
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:o,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(n&&!r)return n;switch(o){case rh.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case rh.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
1118
1123
 
1119
1124
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
1120
1125
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1121
- `,eh=o.div`
1126
+ `,ch=o.div`
1122
1127
  position: absolute;
1123
1128
  top: 50%;
1124
1129
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -1128,17 +1133,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1128
1133
  border-radius: 100%;
1129
1134
  background-color: ${({$color:e})=>e};
1130
1135
  box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
1131
- `,th=({variant:o=Jp.Default,size:r=qp.L,name:a,label:s,labelAlign:l=Yp.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=bt,offIcon:b=xt,onBgColor:y,offBgColor:$,errorMessage:v,warnMessage:x,helpMessage:S})=>{const E=i(),w=g?E.v2.colors.grey[400]:E.v2.colors.white[500],C=r===qp.S?10:16,T=c||E.v2.colors.silver[200],A=r===qp.S?on.XXXS:on.XS,I=r===qp.S?8:12;return t(kr,{$gap:4,children:[t(Nr,{$justifyContent:"space-between",children:[t(Qp,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:I,children:[s&&l===Yp.Left&&e(cn,{color:T,size:A,nowrap:!0,children:s}),t(Zp,{$onBgColor:y,$offBgColor:$,$variant:o,$size:C,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[e(eh,{$color:w,$size:C,$value:p,$disabled:g}),m&&t(n,{children:[e(f,{size:C,fill:w}),e(b,{size:C,fill:w})]})]}),s&&l===Yp.Right&&e(cn,{color:T,size:A,nowrap:!0,children:s})]}),e(vu,{tooltip:d,badge:u})]}),e(xu,{errorMessage:v,warnMessage:x,helpMessage:S})]})},nh=o.div`
1136
+ `,dh=({variant:o=rh.Default,size:r=ih.L,name:a,label:s,labelAlign:l=ah.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=bt,offIcon:b=xt,onBgColor:y,offBgColor:$,errorMessage:v,warnMessage:x,helpMessage:S})=>{const E=i(),w=g?E.v2.colors.grey[400]:E.v2.colors.white[500],C=r===ih.S?10:16,T=c||E.v2.colors.silver[200],A=r===ih.S?on.XXXS:on.XS,I=r===ih.S?8:12;return t(Nr,{$gap:4,children:[t(kr,{$justifyContent:"space-between",children:[t(sh,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:I,children:[s&&l===ah.Left&&e(cn,{color:T,size:A,nowrap:!0,children:s}),t(lh,{$onBgColor:y,$offBgColor:$,$variant:o,$size:C,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[e(ch,{$color:w,$size:C,$value:p,$disabled:g}),m&&t(n,{children:[e(f,{size:C,fill:w}),e(b,{size:C,fill:w})]})]}),s&&l===ah.Right&&e(cn,{color:T,size:A,nowrap:!0,children:s})]}),e(ku,{tooltip:d,badge:u})]}),e(Nu,{errorMessage:v,warnMessage:x,helpMessage:S})]})},uh=o.div`
1132
1137
  display: flex;
1133
1138
  flex-direction: ${({$direction:e})=>e===Tn.Horizontal?"row":"column"};
1134
1139
  gap: ${({$direction:e})=>e===Tn.Horizontal?16:8}px;
1135
- `,oh=({direction:n=Tn.Vertical,title:o,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===qp.S?on.XS:on.S;return t(nh,{$direction:n,children:[o&&e(cn,{size:c,children:o}),a.map(t=>e(th,{...t,labelAlign:Yp.Right,value:s[t.id],onChange:e=>{return n=t.id,o=e,void l(e=>{const t={...e};return n?t[n]=o:a.forEach(e=>t[e.id]=o),t});var n,o},disabled:i,size:r},`${o}-toggle-${t.id}`))]})},rh=o.div`
1140
+ `,ph=({direction:n=Tn.Vertical,title:o,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===ih.S?on.XS:on.S;return t(uh,{$direction:n,children:[o&&e(cn,{size:c,children:o}),a.map(t=>e(dh,{...t,labelAlign:ah.Right,value:s[t.id],onChange:e=>{return n=t.id,o=e,void l(e=>{const t={...e};return n?t[n]=o:a.forEach(e=>t[e.id]=o),t});var n,o},disabled:i,size:r},`${o}-toggle-${t.id}`))]})},hh=o.div`
1136
1141
  display: flex;
1137
1142
  align-items: center;
1138
1143
  justify-content: space-between;
1139
1144
  width: 100%;
1140
1145
  overflow: hidden;
1141
- `,ih=o.div`
1146
+ `,gh=o.div`
1142
1147
  display: flex;
1143
1148
  align-items: center;
1144
1149
  gap: 16px;
@@ -1146,7 +1151,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1146
1151
  min-width: 0;
1147
1152
  flex: 1;
1148
1153
  overflow: hidden;
1149
- `,ah=o.div`
1154
+ `,mh=o.div`
1150
1155
  display: flex;
1151
1156
  align-items: center;
1152
1157
  justify-content: center;
@@ -1155,23 +1160,23 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1155
1160
  height: 36px;
1156
1161
  border-radius: 8px;
1157
1162
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1158
- `,sh=o.img`
1163
+ `,fh=o.img`
1159
1164
  width: 24px;
1160
1165
  height: 24px;
1161
- `,lh=o.div`
1166
+ `,bh=o.div`
1162
1167
  display: flex;
1163
1168
  align-items: center;
1164
1169
  gap: 16px;
1165
1170
  flex-shrink: 0;
1166
- `,ch=({icon:n,iconSrc:o,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>t(rh,{children:[t(ih,{children:[n?e(ah,{children:e(n,{size:24})}):o?e(ah,{children:e(sh,{src:o,alt:r||"icon"})}):null,(r||i?.length||a)&&t(kr,{$gap:6,children:[(r||i?.length)&&t(Nr,{$gap:16,children:[r&&e(cn,{size:on.S,weight:500,children:r}),i?.length&&e(Nr,{$gap:4,children:i?.map(t=>e(bu,{...t},t.label))})]}),a&&e(cn,{size:on.XXS,children:a})]})]}),t(lh,{children:[s&&e(th,{...s}),l?.length?e(qu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Nt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&e(Sc,{"data-id":"drawer-close",icon:xt,size:vc.M,onClick:c,disabled:d})]})]}),dh=o.div`
1171
+ `,yh=({icon:n,iconSrc:o,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>t(hh,{children:[t(gh,{children:[n?e(mh,{children:e(n,{size:24})}):o?e(mh,{children:e(fh,{src:o,alt:r||"icon"})}):null,(r||i?.length||a)&&t(Nr,{$gap:6,children:[(r||i?.length)&&t(kr,{$gap:16,children:[r&&e(cn,{size:on.S,weight:500,children:r}),i?.length&&e(kr,{$gap:4,children:i?.map(t=>e(Tu,{...t},t.label))})]}),a&&e(cn,{size:on.XXS,children:a})]})]}),t(bh,{children:[s&&e(dh,{...s}),l?.length?e(ip,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:kt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&e(Dc,{"data-id":"drawer-close",icon:xt,size:kc.M,onClick:c,disabled:d})]})]}),$h=o.div`
1167
1172
  position: relative;
1168
1173
  &.animated {
1169
1174
  overflow: hidden;
1170
1175
  padding-bottom: 1px;
1171
1176
  border-radius: 8px;
1172
- animation: ${({$isLeaving:e})=>e?vd.out.bottom:vd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1177
+ animation: ${({$isLeaving:e})=>e?kd.out.bottom:kd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1173
1178
  }
1174
- `,uh=o.div`
1179
+ `,vh=o.div`
1175
1180
  position: absolute;
1176
1181
  bottom: -1px;
1177
1182
  left: 0;
@@ -1180,8 +1185,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1180
1185
  height: 100%;
1181
1186
  border-radius: 8px;
1182
1187
  background-color: ${({theme:e,$status:t})=>ar(e,t,t===Fn.Default?"300":t===Fn.Info?"400":"500")};
1183
- animation: ${xd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1184
- `,ph=o.div`
1188
+ animation: ${Nd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1189
+ `,xh=o.div`
1185
1190
  display: flex;
1186
1191
  align-items: center;
1187
1192
  gap: 10px;
@@ -1191,7 +1196,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1191
1196
  padding: 4px 12px 4px 4px;
1192
1197
  border-radius: 8px;
1193
1198
  background-color: ${({theme:e,$status:t})=>ar(e,t,[Fn.Info,Fn.Warning].includes(t)?"1000":"900")};
1194
- `,hh=o.div`
1199
+ `,Sh=o.div`
1195
1200
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
1196
1201
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
1197
1202
  display: flex;
@@ -1199,27 +1204,27 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1199
1204
  justify-content: center;
1200
1205
  border-radius: 6px;
1201
1206
  background-color: ${({theme:e,$status:t})=>ar(e,t,[Fn.Info].includes(t)?"900":"800")};
1202
- `,gh=o.div`
1207
+ `,Eh=o.div`
1203
1208
  margin-left: auto;
1204
1209
  display: flex;
1205
1210
  align-items: center;
1206
1211
  gap: 4px;
1207
- `,mh=o.div`
1212
+ `,wh=o.div`
1208
1213
  margin-right: 8px;
1209
1214
  cursor: pointer;
1210
1215
  &:hover {
1211
1216
  transform: scale(1.2);
1212
1217
  }
1213
- `,fh=({status:n,message:o,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=jr(n,u),h=ar(u,n,n===Fn.Default?"300":n===Fn.Info?"400":"500"),[g,m]=Ft(!1),f=Bt(null),b=Bt(null),y=c/10,$=c-y,v=e=>{l&&(f.current&&clearTimeout(f.current),m(!0),setTimeout(()=>l({asSeen:e?.asSeen}),y))};Mt(()=>{if(l)return f.current=setTimeout(()=>v({asSeen:!1}),$),()=>{f.current&&clearTimeout(f.current)}},[c]);return t(dh,{className:l?"animated":"",$duration:c,$isLeaving:g,onMouseEnter:()=>{l&&(f.current&&clearTimeout(f.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(l&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*$;f.current=setTimeout(()=>v({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:d},children:[t(ph,{$status:n,$fullWidth:a,children:[e("div",{children:e(hh,{$status:n,$smallIcon:s,children:e(p,{size:s?18:24})})}),e(cn,{color:h,size:on.XXXS,weight:400,children:o}),(r||l)&&t(gh,{children:[r&&e(mh,{"data-id":r["data-id"],onClick:r.onClick,children:e(cn,{color:h,size:on.XXS,weight:500,underline:!0,children:r.label})}),l&&e(Sc,{"data-id":"note-close",icon:xt,size:vc.XS,onClick:()=>v({asSeen:!0})})]})]}),l&&e(uh,{ref:b,$status:n,$duration:c})]})},bh=o.div`
1218
+ `,Ch=({status:n,message:o,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=jr(n,u),h=ar(u,n,n===Fn.Default?"300":n===Fn.Info?"400":"500"),[g,m]=Ft(!1),f=Bt(null),b=Bt(null),y=c/10,$=c-y,v=e=>{l&&(f.current&&clearTimeout(f.current),m(!0),setTimeout(()=>l({asSeen:e?.asSeen}),y))};Mt(()=>{if(l)return f.current=setTimeout(()=>v({asSeen:!1}),$),()=>{f.current&&clearTimeout(f.current)}},[c]);return t($h,{className:l?"animated":"",$duration:c,$isLeaving:g,onMouseEnter:()=>{l&&(f.current&&clearTimeout(f.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(l&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*$;f.current=setTimeout(()=>v({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:d},children:[t(xh,{$status:n,$fullWidth:a,children:[e("div",{children:e(Sh,{$status:n,$smallIcon:s,children:e(p,{size:s?18:24})})}),e(cn,{color:h,size:on.XXXS,weight:400,children:o}),(r||l)&&t(Eh,{children:[r&&e(wh,{"data-id":r["data-id"],onClick:r.onClick,children:e(cn,{color:h,size:on.XXS,weight:500,underline:!0,children:r.label})}),l&&e(Dc,{"data-id":"note-close",icon:xt,size:kc.XS,onClick:()=>v({asSeen:!0})})]})]}),l&&e(vh,{ref:b,$status:n,$duration:c})]})},Th=o.div`
1214
1219
  display: flex;
1215
1220
  align-items: center;
1216
1221
  gap: 8px;
1217
1222
  padding: 4px 12px;
1218
- `,yh=o.div`
1223
+ `,Ah=o.div`
1219
1224
  flex: 1;
1220
- `,$h=o.div`
1225
+ `,Ih=o.div`
1221
1226
  width: 150px;
1222
- `,vh=({note:n,actions:o,children:r})=>r?e(bh,{children:r}):t(bh,{children:[n&&e(fh,{...n}),e(yh,{}),o?.map((t,n)=>e($h,{children:e(zd,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${n}`))]}),xh=o.div`
1227
+ `,kh=({note:n,actions:o,children:r})=>r?e(Th,{children:r}):t(Th,{children:[n&&e(Ch,{...n}),e(Ah,{}),o?.map((t,n)=>e(Ih,{children:e(Vd,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${n}`))]}),Nh=o.div`
1223
1228
  position: fixed;
1224
1229
  top: 0;
1225
1230
  bottom: 0;
@@ -1238,16 +1243,16 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1238
1243
  overflow: hidden;
1239
1244
 
1240
1245
  ${({$disableAnimation:e,$position:t})=>!e&&r`
1241
- animation-name: ${vd.in[t]};
1246
+ animation-name: ${kd.in[t]};
1242
1247
  `}
1243
- `,Sh=o.div`
1248
+ `,Dh=o.div`
1244
1249
  display: flex;
1245
1250
  flex-direction: column;
1246
1251
  gap: 12px;
1247
1252
 
1248
1253
  height: calc(100% - ${56}px);
1249
1254
  overflow-y: auto;
1250
- `,Eh=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(fc(o),o?Zt(t(n,{children:[!r&&e(Or,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(xh,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(ch,{...l}),e(Sh,{children:d}),c&&e(vh,{...c})]})]}),document.body):null),wh=({options:t,values:n,setValues:o,withMultiSelect:r,withSearch:i,...a})=>{const s=zt(()=>t.filter(e=>n.includes(e.id)),[t,n]),l=zt(()=>s.map(e=>e.label).join(", "),[s]);return e(qu,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:Gu.Left,items:t,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:t,handleClick:n})=>e(Cu,{placeholder:"Select options...",width:"100%",...a,rightIcon:t,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},Ch=o.header`
1255
+ `,Rh=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(Cc(o),o?Zt(t(n,{children:[!r&&e(Or,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(Nh,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(yh,{...l}),e(Dh,{children:d}),c&&e(kh,{...c})]})]}),document.body):null),Oh=({options:t,values:n,setValues:o,withMultiSelect:r,withSearch:i,...a})=>{const s=zt(()=>t.filter(e=>n.includes(e.id)),[t,n]),l=zt(()=>s.map(e=>e.label).join(", "),[s]);return e(ip,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:Zu.Left,items:t,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:t,handleClick:n})=>e(_u,{placeholder:"Select options...",width:"100%",...a,rightIcon:t,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},_h=o.header`
1251
1256
  position: relative;
1252
1257
  width: calc(100% - 36px);
1253
1258
  padding: 12px 18px;
@@ -1255,12 +1260,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1255
1260
  display: flex;
1256
1261
  align-items: center;
1257
1262
  justify-content: space-between;
1258
- `,Th=o(Nr)`
1263
+ `,Lh=o(kr)`
1259
1264
  position: absolute;
1260
1265
  left: 50%;
1261
1266
  transform: translateX(-50%);
1262
1267
  gap: 16px;
1263
- `,Ah=({left:n=[],center:o=[],right:r=[]})=>t(Ch,{children:[e(Nr,{$gap:16,children:n}),e(Th,{children:o}),e(Nr,{$gap:16,children:r})]}),Ih=o.div`
1268
+ `,Ph=({left:n=[],center:o=[],right:r=[]})=>t(_h,{children:[e(kr,{$gap:16,children:n}),e(Lh,{children:o}),e(kr,{$gap:16,children:r})]}),Fh=o.div`
1264
1269
  display: flex;
1265
1270
  align-items: center;
1266
1271
  gap: 2px;
@@ -1275,7 +1280,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1275
1280
  left: ${({$left:e})=>e||"unset"};
1276
1281
  top: 50%;
1277
1282
  transform: translateY(-50%);
1278
- `,Nh=({isOpen:t,actions:n,positionRight:o,positionLeft:r})=>t?e(Ih,{$right:o,$left:r,children:n.map(t=>{if(!t)return null;const{tooltip:n,...o}=t;return e(ed,{text:n||"",children:e(zd,{...o,variant:Pd.Secondary,size:Fd.S})},o.id)})}):null,kh=o.div`
1283
+ `,Mh=({isOpen:t,actions:n,positionRight:o,positionLeft:r})=>t?e(Fh,{$right:o,$left:r,children:n.map(t=>{if(!t)return null;const{tooltip:n,...o}=t;return e(cd,{text:n||"",children:e(Vd,{...o,variant:Gd.Secondary,size:Xd.S})},o.id)})}):null,zh=o.div`
1279
1284
  display: flex;
1280
1285
  align-items: center;
1281
1286
  justify-content: center;
@@ -1284,36 +1289,36 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1284
1289
  aspect-ratio: 1 / 1;
1285
1290
  padding: 2px;
1286
1291
  border-radius: 8px;
1287
- background-color: ${({theme:e,$noBackground:t})=>t?"transparent":e.v2.colors.silver[750]+yd["050"]};
1288
- `,Dh=o.div`
1292
+ background-color: ${({theme:e,$noBackground:t})=>t?"transparent":e.v2.colors.silver[750]+Ad["050"]};
1293
+ `,Uh=o.div`
1289
1294
  display: flex;
1290
1295
  align-items: center;
1291
1296
  justify-content: center;
1292
1297
  padding: 2px;
1293
1298
  border-radius: 4px;
1294
- background-color: ${({theme:e})=>e.v2.colors.silver[750]+yd["050"]};
1295
- `,Rh=({icons:n,icon:o,iconSrc:r,smallIconSize:i=12,largeIconSize:a=22})=>{if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,a=o.slice(0,2),s=o.slice(2),l=s.length>0;return e("div",{style:{width:"fit-content"},children:e(kh,{$noBackground:!0,children:t(kr,{$gap:1,children:[e(Nr,{$gap:1,$justifyContent:"space-between",children:a.map((t,n)=>e(Dh,{children:e(t,{size:i})},`top-${n}`))}),l&&t(Nr,{$gap:1,$justifyContent:"space-between",children:[s.map((t,n)=>e(Dh,{children:e(t,{size:i})},`bottom-${n}`)),r>0&&e(Dh,{children:e(cn,{size:on.XXXS,weight:500,children:`+${r}`})})]})]})})})}const s=n?.[0]||o;return e("div",{style:{width:"fit-content"},children:e(kh,{children:s?e(s,{size:a}):e("img",{src:r,alt:"icon",width:a,height:a})})})},Oh=o.div`
1299
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]+Ad["050"]};
1300
+ `,Bh=({icons:n,icon:o,iconSrc:r,smallIconSize:i=12,largeIconSize:a=22})=>{if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,a=o.slice(0,2),s=o.slice(2),l=s.length>0;return e("div",{style:{width:"fit-content"},children:e(zh,{$noBackground:!0,children:t(Nr,{$gap:1,children:[e(kr,{$gap:1,$justifyContent:"space-between",children:a.map((t,n)=>e(Uh,{children:e(t,{size:i})},`top-${n}`))}),l&&t(kr,{$gap:1,$justifyContent:"space-between",children:[s.map((t,n)=>e(Uh,{children:e(t,{size:i})},`bottom-${n}`)),r>0&&e(Uh,{children:e(cn,{size:on.XXXS,weight:500,children:`+${r}`})})]})]})})})}const s=n?.[0]||o;return e("div",{style:{width:"fit-content"},children:e(zh,{children:s?e(s,{size:a}):e("img",{src:r,alt:"icon",width:a,height:a})})})},jh=o.div`
1296
1301
  width: calc(100% - 16px);
1297
1302
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1298
1303
  border-radius: 8px;
1299
1304
  padding: 4px 8px;
1300
- `,_h=({values:n,setValues:o,name:r,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g})=>{const m=i(),f=n.length<=1,b=g,y=g||f&&b,$=n.length?n:[""];return e(Oh,{children:t(kr,{"data-id":r,$gap:6,children:[e(vu,{label:a,tooltip:s,required:c,badge:l}),e(kr,{$gap:8,children:$.map((r,i)=>{const a=i===$.length-1;return t(Nr,{$gap:8,$alignItems:"center",children:[e(Cu,{width:"100%",autoFocus:Qr(r)&&!f&&a,value:r,onChange:e=>((e,t)=>{const r=[...n||[]];r[t]=e,o(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&e(zd,{leftIcon:kt,variant:Pd.Secondary,size:Fd.S,disabled:b,onClick:()=>(()=>{const e=n.length?So(n):[So("")];e.push(""),o(e)})()}),e(zd,{leftIcon:y?Dt:()=>e(Dt,{fill:m.v2.colors.red[500]}),variant:Pd.Secondary,size:Fd.S,disabled:y,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(xu,{errorMessage:d,warnMessage:u,helpMessage:p})]})})},Lh=({col:t,colIdx:n,row:o,rowIdx:r,rowsLength:i,handleChange:a,errorMessage:s,disabled:l,hideLabel:c})=>{const{keyName:d,componentType:u,inputType:p,label:h,placeholder:g,options:m,renderCondition:f,helpMessage:b,min:y,max:$}=t,v=o[d];if(f&&!f(o))return null;const x=c?void 0:h||void 0,S=g;switch(u){case Ln.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===u,n=Array.isArray(v)?v:null!=v&&""!==v?[String(v)]:[],o=m?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return e(wh,{name:d,label:x,placeholder:S,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(d,t?e:e[0]??"",r),disabled:l,hasError:!!s},d)}default:const t=i>1&&0===r&&0===n&&Qr(v);return e(Cu,{name:d,label:x,placeholder:S,autoFocus:t,type:p,min:y,max:$,value:v,onChange:({target:{value:e}})=>a(d,e,r),disabled:l,hasError:!!s,helpMessage:b})}},Ph=o.div`
1305
+ `,Hh=({values:n,setValues:o,name:r,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g})=>{const m=i(),f=n.length<=1,b=g,y=g||f&&b,$=n.length?n:[""];return e(jh,{children:t(Nr,{"data-id":r,$gap:6,children:[e(ku,{label:a,tooltip:s,required:c,badge:l}),e(Nr,{$gap:8,children:$.map((r,i)=>{const a=i===$.length-1;return t(kr,{$gap:8,$alignItems:"center",children:[e(_u,{width:"100%",autoFocus:ni(r)&&!f&&a,value:r,onChange:e=>((e,t)=>{const r=[...n||[]];r[t]=e,o(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&e(Vd,{leftIcon:Nt,variant:Gd.Secondary,size:Xd.S,disabled:b,onClick:()=>(()=>{const e=n.length?So(n):[So("")];e.push(""),o(e)})()}),e(Vd,{leftIcon:y?Dt:()=>e(Dt,{fill:m.v2.colors.red[500]}),variant:Gd.Secondary,size:Xd.S,disabled:y,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(Nu,{errorMessage:d,warnMessage:u,helpMessage:p})]})})},Wh=({col:t,colIdx:n,row:o,rowIdx:r,rowsLength:i,handleChange:a,errorMessage:s,disabled:l,hideLabel:c})=>{const{keyName:d,componentType:u,inputType:p,label:h,placeholder:g,options:m,renderCondition:f,helpMessage:b,min:y,max:$}=t,v=o[d];if(f&&!f(o))return null;const x=c?void 0:h||void 0,S=g;switch(u){case Ln.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===u,n=Array.isArray(v)?v:null!=v&&""!==v?[String(v)]:[],o=m?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return e(Oh,{name:d,label:x,placeholder:S,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(d,t?e:e[0]??"",r),disabled:l,hasError:!!s},d)}default:const t=i>1&&0===r&&0===n&&ni(v);return e(_u,{name:d,label:x,placeholder:S,autoFocus:t,type:p,min:y,max:$,value:v,onChange:({target:{value:e}})=>a(d,e,r),disabled:l,hasError:!!s,helpMessage:b})}},Gh=o.div`
1301
1306
  width: calc(100% - 16px);
1302
1307
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1303
1308
  border-radius: 8px;
1304
1309
  padding: 4px 8px;
1305
- `,Fh=o.table`
1310
+ `,Xh=o.table`
1306
1311
  width: 100%;
1307
1312
  border-collapse: separate;
1308
1313
  border-spacing: 0 8px;
1309
- `,Mh=o.td`
1314
+ `,Kh=o.td`
1310
1315
  padding: 0 8px 0 0;
1311
1316
  vertical-align: top;
1312
- `,zh=o.td`
1317
+ `,Vh=o.td`
1313
1318
  width: 72px;
1314
1319
  vertical-align: top;
1315
1320
  padding-top: ${({$topOffset:e})=>e}px;
1316
- `,Uh=({columns:n,values:o,setValues:r,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m})=>{const f=i(),b=zt(()=>{const e={};return n.forEach(({keyName:t})=>e[t]=""),e},[n]),y=(e,t,n)=>{const i=o.length?So(o):[So(b)];i[n][e]=t,r(i)},$=zt(()=>{if(m){const e=[];for(let t=0;;t+=m){const o=n.slice(t,t+m);if(!o.length)break;e.push(o)}return e}return[n]},[m,n]),v=zt(()=>$.map(e=>e.some(e=>!!e.label)),[$]),x=o.length?o:[b];return e(Ph,{children:t(kr,{"data-id":a,$gap:0,children:[e(vu,{label:s,tooltip:l,required:d,badge:c}),e(Fh,{children:e("tbody",{children:x.map((n,i)=>{const a=i===x.length-1;return t(Pt,{children:[m&&i>0?e("tr",{children:e(Mh,{colSpan:$.length})}):null,$.map((s,l)=>{const c=v[l],d=c?22:0;return t("tr",{children:[s.map((o,r)=>o.renderCondition&&!o.renderCondition(n)?null:e(Mh,{children:t(kr,{$gap:6,children:[c&&(o.label?e(vu,{label:o.label,tooltip:o.tooltip}):e(vu,{label:"\\u00A0"})),e(Lh,{col:o,colIdx:r,row:n,rowIdx:i,rowsLength:x.length,handleChange:y,disabled:u,errorMessage:p,hideLabel:c})]})},`input-table-row-${i}-col-${l}-${r}`)),0===l&&e(zh,{$topOffset:d,children:t(Nr,{$gap:8,$justifyContent:"flex-end",children:[a&&e(zd,{leftIcon:kt,variant:Pd.Secondary,size:Fd.S,disabled:u,onClick:()=>(()=>{const e=o.length?So(o):[So(b)];e.push(So(b)),r(e)})()}),e(zd,{leftIcon:u?Dt:()=>e(Dt,{fill:f.v2.colors.red[500]}),variant:Pd.Secondary,size:Fd.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push(So(b)),r(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`)})]},`input-table-row-${i}`)})})}),e(xu,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Bh=o.div`
1321
+ `,Jh=({columns:n,values:o,setValues:r,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m})=>{const f=i(),b=zt(()=>{const e={};return n.forEach(({keyName:t})=>e[t]=""),e},[n]),y=(e,t,n)=>{const i=o.length?So(o):[So(b)];i[n][e]=t,r(i)},$=zt(()=>{if(m){const e=[];for(let t=0;;t+=m){const o=n.slice(t,t+m);if(!o.length)break;e.push(o)}return e}return[n]},[m,n]),v=zt(()=>$.map(e=>e.some(e=>!!e.label)),[$]),x=o.length?o:[b];return e(Gh,{children:t(Nr,{"data-id":a,$gap:0,children:[e(ku,{label:s,tooltip:l,required:d,badge:c}),e(Xh,{children:e("tbody",{children:x.map((n,i)=>{const a=i===x.length-1;return t(Pt,{children:[m&&i>0?e("tr",{children:e(Kh,{colSpan:$.length})}):null,$.map((s,l)=>{const c=v[l],d=c?22:0;return t("tr",{children:[s.map((o,r)=>o.renderCondition&&!o.renderCondition(n)?null:e(Kh,{children:t(Nr,{$gap:6,children:[c&&(o.label?e(ku,{label:o.label,tooltip:o.tooltip}):e(ku,{label:"\\u00A0"})),e(Wh,{col:o,colIdx:r,row:n,rowIdx:i,rowsLength:x.length,handleChange:y,disabled:u,errorMessage:p,hideLabel:c})]})},`input-table-row-${i}-col-${l}-${r}`)),0===l&&e(Vh,{$topOffset:d,children:t(kr,{$gap:8,$justifyContent:"flex-end",children:[a&&e(Vd,{leftIcon:Nt,variant:Gd.Secondary,size:Xd.S,disabled:u,onClick:()=>(()=>{const e=o.length?So(o):[So(b)];e.push(So(b)),r(e)})()}),e(Vd,{leftIcon:u?Dt:()=>e(Dt,{fill:f.v2.colors.red[500]}),variant:Gd.Secondary,size:Xd.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push(So(b)),r(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`)})]},`input-table-row-${i}`)})})}),e(Nu,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},qh=o.div`
1317
1322
  display: flex;
1318
1323
  align-items: center;
1319
1324
  justify-content: space-between;
@@ -1321,15 +1326,15 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1321
1326
 
1322
1327
  padding: 18px 16px;
1323
1328
  border-radius: 18px;
1324
- background-color: ${({theme:e})=>e.v2.colors.black[500]+yd["095"]};
1329
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Ad["095"]};
1325
1330
  box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
1326
1331
 
1327
1332
  position: fixed;
1328
1333
  bottom: 0;
1329
1334
  left: 50%;
1330
1335
  z-index: ${({theme:e})=>e.v2.zIndex.island};
1331
- animation-name: ${vd.in.center};
1332
- `,jh=({isOpen:n,onClose:o,richTitle:r,actions:i})=>n?t(Bh,{children:[e(sp,{...r}),e(rp,{onAnyClick:o,actions:i})]}):null,Hh=o.div`
1336
+ animation-name: ${kd.in.center};
1337
+ `,Yh=({isOpen:n,onClose:o,richTitle:r,actions:i})=>n?t(qh,{children:[e(fp,{...r}),e(hp,{onAnyClick:o,actions:i})]}):null,Qh=o.div`
1333
1338
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
1334
1339
  top: 50%;
1335
1340
  left: 50%;
@@ -1348,7 +1353,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1348
1353
  will-change: transform;
1349
1354
  contain: layout paint;
1350
1355
 
1351
- animation-name: ${({$closing:e})=>e?vd.out.center:vd.in.center};
1356
+ animation-name: ${({$closing:e})=>e?kd.out.center:kd.in.center};
1352
1357
  /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
1353
1358
  the global 300ms default which pairs with the fade-in for a soft entrance. */
1354
1359
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
@@ -1357,9 +1362,9 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1357
1362
  /* Block hover/click work on form children mid-close so their transitions
1358
1363
  don't compete with the slide-out. */
1359
1364
  ${({$closing:e})=>e&&"pointer-events: none;"}
1360
- `,Gh=o(Or)`
1365
+ `,Zh=o(Or)`
1361
1366
  will-change: opacity;
1362
- animation-name: ${({$closing:e})=>e?wd.out:wd.in};
1367
+ animation-name: ${({$closing:e})=>e?Od.out:Od.in};
1363
1368
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1364
1369
 
1365
1370
  /* The blurred backdrop is the most expensive thing on screen during the close
@@ -1367,18 +1372,18 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1367
1372
  recomposite per frame. Drop the blur while closing; visually identical
1368
1373
  because the overlay is fading to 0. */
1369
1374
  ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
1370
- `,Xh=o.div`
1375
+ `,eg=o.div`
1371
1376
  position: relative;
1372
- `,Wh=o.div`
1377
+ `,tg=o.div`
1373
1378
  position: absolute;
1374
1379
  top: 16px;
1375
1380
  left: 16px;
1376
- `,Kh=({isOpen:o,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(o),[p,h]=Ft(!1);if(Mt(()=>{o?(u(!0),h(!1)):d&&h(!0)},[o]),fc(d),!d)return null;const g=t(n,{children:[!r&&e(Gh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),e(Hh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:t(Xh,{children:[a&&e(Wh,{children:e(Sc,{icon:t=>e(It,{rotate:-90,...t}),size:vc.L,onClick:a})}),c]})})]});return i?g:Zt(g,document.body)},Vh=o.div`
1381
+ `,ng=({isOpen:o,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(o),[p,h]=Ft(!1);if(Mt(()=>{o?(u(!0),h(!1)):d&&h(!0)},[o]),Cc(d),!d)return null;const g=t(n,{children:[!r&&e(Zh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),e(Qh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:t(eg,{children:[a&&e(tg,{children:e(Dc,{icon:t=>e(It,{rotate:-90,...t}),size:kc.L,onClick:a})}),c]})})]});return i?g:Zt(g,document.body)},og=o.div`
1377
1382
  position: relative;
1378
1383
  width: ${64}px;
1379
1384
  height: ${({$height:e})=>e};
1380
1385
  flex-shrink: 0;
1381
- `,Jh=o.aside`
1386
+ `,rg=o.aside`
1382
1387
  position: absolute;
1383
1388
  top: 0;
1384
1389
  left: 0;
@@ -1396,7 +1401,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1396
1401
  transition:
1397
1402
  width 200ms ease,
1398
1403
  padding 200ms ease;
1399
- `,qh=o.button`
1404
+ `,ig=o.button`
1400
1405
  display: flex;
1401
1406
  align-items: center;
1402
1407
  width: 100%;
@@ -1416,61 +1421,61 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1416
1421
  &:active {
1417
1422
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
1418
1423
  }
1419
- `,Yh=o.div`
1424
+ `,ag=o.div`
1420
1425
  width: ${40}px;
1421
1426
  height: ${40}px;
1422
1427
  display: flex;
1423
1428
  align-items: center;
1424
1429
  justify-content: center;
1425
1430
  flex-shrink: 0;
1426
- `,Qh=o.div`
1431
+ `,sg=o.div`
1427
1432
  flex: 1 1 0;
1428
1433
  min-width: 0;
1429
1434
  overflow: hidden;
1430
1435
  padding-right: 12px;
1431
1436
  pointer-events: none;
1432
- `,Zh=({height:n,icons:o})=>{const r=i(),[a,s]=Ft(!1);return e(Vh,{$height:n,children:e(Jh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:n,label:o,selected:i,icon:s,onClick:l})=>t(qh,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(Yh,{children:e(s,{size:24,fill:r.v2.colors.white[500]})}),a&&e(Qh,{children:e(cn,{size:on.S,weight:500,color:rn.Primary,nowrap:!0,children:o})})]},n))})})};var eg;!function(e){e.S="small",e.L="large"}(eg||(eg={}));const tg=o.div`
1437
+ `,lg=({height:n,icons:o})=>{const r=i(),[a,s]=Ft(!1);return e(og,{$height:n,children:e(rg,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:n,label:o,selected:i,icon:s,onClick:l})=>t(ig,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(ag,{children:e(s,{size:24,fill:r.v2.colors.white[500]})}),a&&e(sg,{children:e(cn,{size:on.S,weight:500,color:rn.Primary,nowrap:!0,children:o})})]},n))})})};var cg;!function(e){e.S="small",e.L="large"}(cg||(cg={}));const dg=o.div`
1433
1438
  width: fit-content;
1434
1439
  display: flex;
1435
1440
  align-items: center;
1436
1441
  gap: 8px;
1437
1442
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1438
- `,ng=o.div`
1439
- width: ${({$size:e})=>e===eg.S?"16px":"20px"};
1440
- height: ${({$size:e})=>e===eg.S?"16px":"20px"};
1443
+ `,ug=o.div`
1444
+ width: ${({$size:e})=>e===cg.S?"16px":"20px"};
1445
+ height: ${({$size:e})=>e===cg.S?"16px":"20px"};
1441
1446
  display: flex;
1442
1447
  align-items: center;
1443
1448
  justify-content: center;
1444
1449
  border-radius: 100%;
1445
1450
  border: 1px solid ${({$borderColor:e})=>e};
1446
1451
  background-color: ${({$backgroundColor:e})=>e};
1447
- `,og=({"data-id":n,label:o,value:r,onChange:a,disabled:s,size:l=eg.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===eg.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(tg,{"data-id":n??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e(ng,{$size:l,$borderColor:m,$backgroundColor:f,children:r?e(Rt,{size:h,fill:g}):null}),o&&e(cn,{size:l===eg.S?on.XXS:on.XS,children:o})]})},rg=o.div`
1452
+ `,pg=({"data-id":n,label:o,value:r,onChange:a,disabled:s,size:l=cg.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===cg.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(dg,{"data-id":n??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e(ug,{$size:l,$borderColor:m,$backgroundColor:f,children:r?e(Rt,{size:h,fill:g}):null}),o&&e(cn,{size:l===cg.S?on.XXS:on.XS,children:o})]})},hg=o.div`
1448
1453
  display: flex;
1449
1454
  flex-direction: ${({$flexDirection:e})=>e};
1450
1455
  gap: ${({$gap:e})=>e}px;
1451
- `,ig=({label:n,direction:o,disabled:r,size:i,options:a,values:s,setValues:l})=>t(rg,{$flexDirection:o===Tn.Horizontal?"row":"column",$gap:o===Tn.Horizontal?16:8,children:[n&&e(cn,{children:n}),a.map(t=>e(og,{...t,value:s[t.id],onChange:e=>{return n=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=o,t});var n,o},disabled:r,size:i},`${n}-radio-${t.id}`))]}),ag=({currentStep:n,data:o,gap:r=12})=>e(kr,{$gap:r,children:o.map(o=>{const r=o.step<n,i=o.step===n;return t(Nr,{$gap:8,children:[r||o.forceDoneBadge?e(bu,{status:Fn.Success,label:"",leftIcon:bt}):e(bu,{status:Fn.Default,label:o.step.toString()}),e(cn,{size:i?on.M:on.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var sg;!function(e){e.Data="data",e.Pretty="pretty"}(sg||(sg={}));const lg=o.div`
1452
- height: ${({$maxHeight:e})=>e};
1456
+ `,gg=({label:n,direction:o,disabled:r,size:i,options:a,values:s,setValues:l})=>t(hg,{$flexDirection:o===Tn.Horizontal?"row":"column",$gap:o===Tn.Horizontal?16:8,children:[n&&e(cn,{children:n}),a.map(t=>e(pg,{...t,value:s[t.id],onChange:e=>{return n=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=o,t});var n,o},disabled:r,size:i},`${n}-radio-${t.id}`))]}),mg=({currentStep:n,data:o,gap:r=12})=>e(Nr,{$gap:r,children:o.map(o=>{const r=o.step<n,i=o.step===n;return t(kr,{$gap:8,children:[r||o.forceDoneBadge?e(Tu,{status:Fn.Success,label:"",leftIcon:bt}):e(Tu,{status:Fn.Default,label:o.step.toString()}),e(cn,{size:i?on.M:on.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var fg;!function(e){e.Data="data",e.Pretty="pretty"}(fg||(fg={}));const bg=o.div`
1457
+ ${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
1453
1458
  width: 100%;
1454
1459
  display: flex;
1455
1460
  flex-direction: column;
1456
1461
  overflow: hidden;
1457
- `,cg=o.div`
1462
+ `,yg=o.div`
1458
1463
  width: 100%;
1459
1464
  flex: 1;
1460
1465
  display: flex;
1461
1466
  flex-direction: column;
1462
- `,dg=o.div`
1467
+ `,$g=o.div`
1463
1468
  flex-shrink: 0;
1464
1469
  position: relative;
1465
1470
  z-index: 2;
1466
- `,ug=o.div`
1471
+ `,vg=o.div`
1467
1472
  position: relative;
1468
1473
  display: flex;
1469
1474
  width: 100%;
1470
- `,pg=o.div`
1475
+ `,xg=o.div`
1471
1476
  position: relative;
1472
1477
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1473
- flex: ${({$flex:e})=>e??1};
1478
+ flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
1474
1479
  padding: 18px 24px;
1475
1480
  border: none;
1476
1481
  border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
@@ -1478,12 +1483,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1478
1483
 
1479
1484
  ${({$variant:e,$backgroundColor:t})=>{if(t)return r`
1480
1485
  background-color: ${t};
1481
- `;switch(e){case sg.Data:return r`
1486
+ `;switch(e){case fg.Data:return r`
1482
1487
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1483
- `;case sg.Pretty:return r`
1488
+ `;case fg.Pretty:return r`
1484
1489
  background-color: transparent;
1485
1490
  `;default:return""}}}
1486
- `,hg=o.div`
1491
+ `,Sg=o.div`
1487
1492
  position: absolute;
1488
1493
  top: 50%;
1489
1494
  right: 0;
@@ -1491,10 +1496,10 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1491
1496
  width: 1px;
1492
1497
  height: 18px;
1493
1498
  background: ${({theme:e})=>e.v2.colors.silver[500]};
1494
- `,gg=o.div`
1499
+ `,Eg=o.div`
1495
1500
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1496
- flex: ${({$flex:e})=>e??1};
1497
- overflow: hidden;
1501
+ flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
1502
+ overflow: ${({$autoWidth:e})=>e?"visible":"hidden"};
1498
1503
  display: flex;
1499
1504
  align-items: center;
1500
1505
 
@@ -1502,23 +1507,39 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1502
1507
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
1503
1508
  box-sizing: border-box;
1504
1509
 
1505
- ${({$variant:e,$selected:t,$hovered:n,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case sg.Data:return r`
1510
+ ${({$variant:e,$selected:t,$hovered:n,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case fg.Data:return r`
1506
1511
  border-bottom: ${({theme:e})=>o?"none":`1px solid ${e.v2.colors.silver[500]}`};
1507
1512
  border-radius: ${o?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
1508
1513
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
1509
- `;case sg.Pretty:return r`
1514
+ `;case fg.Pretty:return r`
1510
1515
  border: none;
1511
1516
  border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
1512
1517
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1513
1518
  `;default:return""}}}
1514
- `,mg=o.div`
1519
+ `,wg=o.div`
1520
+ position: absolute;
1521
+ top: 0;
1522
+ left: 0;
1523
+ visibility: hidden;
1524
+ pointer-events: none;
1525
+ height: 0;
1526
+ overflow: hidden;
1527
+ white-space: nowrap;
1528
+ `,Cg=o.div`
1529
+ display: inline-flex;
1530
+ align-items: center;
1531
+ padding: 18px 24px;
1532
+ box-sizing: border-box;
1533
+ white-space: nowrap;
1534
+ `,Tg=o.div`
1515
1535
  width: 100%;
1536
+ height: 100%;
1516
1537
  display: flex;
1517
1538
  align-items: center;
1518
1539
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
1519
1540
  gap: 4px;
1520
1541
  text-align: ${({$textAlign:e})=>e||"left"};
1521
- `,fg=({variant:n,columns:o,rows:r,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Ft(null),u=zt(()=>r.map((u,p)=>{const{cells:h,onClick:g,isSelected:m=!1,onSelect:f,onDeselect:b,hideCheckbox:y}=u,$=c===p,v=i(u),x=(e,t)=>({$isLastRow:p===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:m,$withClick:!!g,onClick:()=>g?.(),$hovered:!!g&&$,onMouseEnter:()=>d(p),onMouseLeave:()=>d(null)});return t(ug,{children:[l&&e(gg,{$variant:n,style:{flex:"0 0 68px"},...x(!0,!1),children:!y&&e(Bu,{value:m,onChange:()=>m?b?.():f?.()})},"checkbox-column"),o.map(({key:r,withTooltip:i,textAlign:c,flex:d,minWidth:u},g)=>{const m=h.find(e=>e.key===r),f=0===g&&!l,b=g===o.length-1,y=v.length&&(a&&b||s&&f||!a&&!s&&b),S=e(Nr,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:m?.component?e(m.component,{}):e(cn,{size:on.XS,children:m?.rawValue||"-"})});return t(gg,{$variant:n,$flex:d,$minWidth:u,...x(f,b),children:[i?e(ed,{text:m?.rawValue?.toString()||"",ellipsis:!0,children:S}):S,y?e(Nh,{isOpen:$,actions:v,positionRight:a,positionLeft:s}):null]},`row-${p}-cell-${g}`)})]},`row-${p}`)}),[r,c,i,a,s,l,o]);return e(cu,{gap:n===sg.Pretty?8:0,elements:u})},bg=({columnKey:t,sortDirection:n,sortByKey:o,onSort:r})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===An.Ascending?0:180;return e(Sc,{icon:t=>e(It,{fill:s,rotate:l,...t}),onClick:()=>r(t)})},yg=({columnKey:t,filters:n,onFilter:o,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=n[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=zt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(r.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[r,t,a]);return e(qu,{items:c,withMultiSelect:!0,selectedIds:n[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{leftIcon:t=>e(Ot,{fill:l,...t})}})},$g=({variant:n,backgroundColor:o,columns:r,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:u,partiallySelected:p,allSelected:h,onSelectAll:g})=>t(ug,{children:[u&&e(pg,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(Bu,{partiallyChecked:p&&!h,value:h||!1,onChange:g})},"checkbox-column"),r.map(({key:p,label:h,withTooltip:g,tooltip:m,noSort:f,noFilter:b,filterOverride:y,flex:$,minWidth:v,textAlign:x},S)=>{const E=0===S&&!u,w=S===r.length-1,C=e(cn,{size:on.XS,align:x,children:h});return t(pg,{$variant:n,$backgroundColor:o,$flex:$,$minWidth:v,$isFirst:E,$isLast:w,children:[t(mg,{$textAlign:x,children:[m||g?e(ed,{text:m||h,children:C}):C,!f&&e(bg,{columnKey:p,sortDirection:a,sortByKey:s,onSort:l}),!b&&e(yg,{columnKey:p,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:y})]}),!w&&n===sg.Data&&e(hg,{})]},`column-${p}`)})]}),vg=({variant:n,maxHeight:o="256px",headerBackgroundColor:r,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m})=>{const[f,b]=Ft(An.Ascending),[y,$]=Ft(""),[v,x]=Ft({}),S=g??v,E=Ut(e=>{$(e),b(e=>e===An.Ascending?An.Descending:An.Ascending)},[]),w=Ut((e,t)=>{const n={...S,[e]:t};m&&m(n),void 0===g&&x(n)},[S,m,g]),C=zt(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(y?[...c].sort((t,n)=>{const o=e(t,y),r=e(n,y);return(f===An.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,r)}):c).filter(t=>{for(const[n,o]of Object.entries(S)){if(!o.length)continue;const r=l.find(e=>e.key===n)?.filterOverride;if(r){if(!r.filterRow(t,o))return!1}else if(!o.includes(e(t,n)))return!1}return!0})},[c,y,f,S,l]),{partiallySelected:T,allSelected:A}=zt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]);return e(lg,{$maxHeight:o,children:t(cg,{$variant:n,children:[!i&&e(dg,{children:e($g,{variant:n,backgroundColor:r,columns:l,rowsUnfiltered:c,sortDirection:f,sortByKey:y,onSort:E,filters:S,onFilter:w,withCheckboxes:h,partiallySelected:T,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(fg,{variant:n,columns:l,rows:C,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h}):e(Dr,{style:{height:o},children:a?e(Br,{withSpinner:!0}):e(Fu,{...s})})]})})};var xg;!function(e){e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"}(xg||(xg={}));const Sg=(e,t,n)=>{switch(t){case xg.Purple:return e.v2.colors.purple[n?"300":"900"];case xg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case xg.Blue:return e.v2.colors.blue[n?"300":"1000"];case xg.Pink:return e.v2.colors.red[n?"300":"1000"];case xg.Green:return e.v2.colors.green[n?"300":"900"];case xg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Eg=o.div`
1542
+ `,Ag=({variant:n,columns:o,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d})=>{const[u,p]=Ft(null),h=zt(()=>r.map((h,g)=>{const{cells:m,onClick:f,isSelected:b=!1,onSelect:y,onDeselect:$,hideCheckbox:v}=h,x=u===g,S=s(h),E=(e,t)=>({$isLastRow:g===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$withClick:!!f,onClick:()=>f?.(),$hovered:!!f&&x,onMouseEnter:()=>p(g),onMouseLeave:()=>p(null)});return t(vg,{children:[d&&e(Eg,{$variant:n,style:{flex:"0 0 68px"},...E(!0,!1),children:!v&&e(qu,{value:b,onChange:()=>b?$?.():y?.()})},"checkbox-column"),o.map(({key:r,withTooltip:s,textAlign:u,flex:p,minWidth:h},f)=>{const b=m.find(e=>e.key===r),y=0===f&&!d,$=f===o.length-1,v=S.length&&(l&&$||c&&y||!l&&!c&&$),w=e(kr,{$width:"100%",$justifyContent:"right"===u?"flex-end":"center"===u?"center":"flex-start",children:b?.component?e(b.component,{}):e(cn,{size:on.XS,children:b?.rawValue||"-"})});return t(Eg,{$variant:n,$flex:p,$minWidth:h,$autoWidth:i.has(r),$resolvedWidth:a[r],...E(y,$),children:[s?e(cd,{text:b?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,v?e(Mh,{isOpen:x,actions:S,positionRight:l,positionLeft:c}):null]},`row-${g}-cell-${f}`)})]},`row-${g}`)}),[r,u,s,l,c,d,o,i,a]);return e(yu,{gap:n===fg.Pretty?8:0,elements:h})},Ig=({columnKey:t,sortDirection:n,sortByKey:o,onSort:r})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===An.Ascending?0:180;return e(Dc,{icon:t=>e(It,{fill:s,rotate:l,...t}),onClick:()=>r(t)})},kg=({columnKey:t,filters:n,onFilter:o,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=n[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=zt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(r.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[r,t,a]);return e(ip,{items:c,withMultiSelect:!0,selectedIds:n[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{leftIcon:t=>e(Ot,{fill:l,...t})}})},Ng=({variant:n,backgroundColor:o,columns:r,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>t(vg,{children:[h&&e(xg,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(qu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:b,noSort:y,noFilter:$,filterOverride:v,flex:x,minWidth:S,textAlign:E},w)=>{const C=0===w&&!h,T=w===r.length-1,A=e(cn,{size:on.XS,align:E,children:m});return t(xg,{$variant:n,$backgroundColor:o,$flex:x,$minWidth:S,$isFirst:C,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[t(Tg,{$textAlign:E,children:[b||f?e(cd,{text:b||m,children:A}):A,!y&&e(Ig,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!$&&e(kg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:v})]}),!T&&n===fg.Data&&e(Sg,{})]},`column-${g}`)})]}),Dg=({variant:n,maxHeight:o,headerBackgroundColor:r,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m})=>{const[f,b]=Ft(An.Ascending),[y,$]=Ft(""),[v,x]=Ft({}),S=g??v,E=Ut(e=>{$(e),b(e=>e===An.Ascending?An.Descending:An.Ascending)},[]),w=Ut((e,t)=>{const n={...S,[e]:t};m&&m(n),void 0===g&&x(n)},[S,m,g]),C=zt(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(y?[...c].sort((t,n)=>{const o=e(t,y),r=e(n,y);return(f===An.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,r)}):c).filter(t=>{for(const[n,o]of Object.entries(S)){if(!o.length)continue;const r=l.find(e=>e.key===n)?.filterOverride;if(r){if(!r.filterRow(t,o))return!1}else if(!o.includes(e(t,n)))return!1}return!0})},[c,y,f,S,l]),{partiallySelected:T,allSelected:A}=zt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]),I=zt(()=>{const e=new Set;for(const t of c)for(const n of t.cells)n.component&&e.add(n.key);return e},[c]),k=Bt(null),[N,D]=Ft({}),R=zt(()=>0===I.size?[]:l.filter(e=>I.has(e.key)).map(t=>{const n=[e(cn,{size:on.XS,align:t.textAlign,children:t.label},`mw-${t.key}-header`)];return c.forEach((o,r)=>{const i=o.cells.find(e=>e.key===t.key);i&&n.push(i.component?e(i.component,{},`mw-${t.key}-${r}`):e(cn,{size:on.XS,children:i.rawValue||"-"},`mw-${t.key}-${r}`))}),{key:t.key,nodes:n}}),[l,c,I]);return jt(()=>{if(!k.current||0===I.size)return void D(e=>0===Object.keys(e).length?e:{});const e={};k.current.querySelectorAll("[data-mw-key]").forEach(t=>{const n=t.dataset.mwKey;if(!n)return;const o=Math.ceil(t.getBoundingClientRect().width);(!e[n]||o>e[n])&&(e[n]=o)}),D(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[R,I]),t(bg,{$maxHeight:o,children:[R.length>0&&e(wg,{ref:k,"aria-hidden":!0,children:R.flatMap(({key:t,nodes:n})=>n.map((n,o)=>e(Cg,{"data-mw-key":t,children:n},`mw-${t}-${o}`)))}),t(yg,{$variant:n,children:[!i&&e($g,{children:e(Ng,{variant:n,backgroundColor:r,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:I,resolvedColumnWidths:N,sortDirection:f,sortByKey:y,onSort:E,filters:S,onFilter:w,withCheckboxes:h,partiallySelected:T,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(Ag,{variant:n,columns:l,rows:C,autoWidthColumnKeys:I,resolvedColumnWidths:N,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h}):e(Dr,{$height:o,$fullHeight:!o,children:a?e(Br,{withSpinner:!0}):e(Xu,{...s})})]})]})};var Rg;!function(e){e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"}(Rg||(Rg={}));const Og=(e,t,n)=>{switch(t){case Rg.Purple:return e.v2.colors.purple[n?"300":"900"];case Rg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Rg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Rg.Pink:return e.v2.colors.red[n?"300":"1000"];case Rg.Green:return e.v2.colors.green[n?"300":"900"];case Rg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},_g=o.div`
1522
1543
  display: flex;
1523
1544
  align-items: center;
1524
1545
  justify-content: center;
@@ -1537,16 +1558,16 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1537
1558
  background-color: ${({theme:e})=>e.v2.colors.grey[800]};
1538
1559
  cursor: not-allowed;
1539
1560
  `:r`
1540
- background-color: ${({theme:e})=>Sg(e,t)};
1561
+ background-color: ${({theme:e})=>Og(e,t)};
1541
1562
  ${n&&r`
1542
1563
  cursor: pointer;
1543
1564
  &:hover,
1544
1565
  &:active {
1545
- border: 1px solid ${({theme:e})=>Sg(e,t,!0)};
1566
+ border: 1px solid ${({theme:e})=>Og(e,t,!0)};
1546
1567
  }
1547
1568
  `}
1548
1569
  `}
1549
- `,wg=({variant:n=xg.Default,label:o,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===xg.Default?d.v2.colors.white[500]:Sg(d,n,!0),p=n===xg.Loader;return t(Eg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&e(r,{fill:u,size:16}),p?e(Br,{withGradient:!0,title:o,titleSize:on.XXS}):e(cn,{color:u,size:on.XXS,nowrap:!0,children:o}),a&&e(a,{fill:u,size:16})]})},Cg=o.div`
1570
+ `,Lg=({variant:n=Rg.Default,label:o,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Rg.Default?d.v2.colors.white[500]:Og(d,n,!0),p=n===Rg.Loader;return t(_g,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&e(r,{fill:u,size:16}),p?e(Br,{withGradient:!0,title:o,titleSize:on.XXS}):e(cn,{color:u,size:on.XXS,nowrap:!0,children:o}),a&&e(a,{fill:u,size:16})]})},Pg=o.div`
1550
1571
  padding: 6px 12px;
1551
1572
 
1552
1573
  display: flex;
@@ -1564,7 +1585,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1564
1585
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1565
1586
  }
1566
1587
  `}
1567
- `,Tg=o.textarea`
1588
+ `,Fg=o.textarea`
1568
1589
  max-width: ${({$maxWidth:e})=>e||"unset"};
1569
1590
  min-height: ${({$minHeight:e})=>e||"50px"};
1570
1591
  flex: 1;
@@ -1589,26 +1610,26 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1589
1610
  color: ${({theme:e})=>e.v2.colors.grey[400]};
1590
1611
  }
1591
1612
  }
1592
- `,Ag=({label:n,required:o,tooltip:r,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Bt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(kr,{$gap:6,children:[e(vu,{label:n,tooltip:r,required:o,badge:i}),e(Cg,{$disabled:p,$error:!!a,children:e(Tg,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),e(xu,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Ig=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Ng=o.div`
1613
+ `,Mg=({label:n,required:o,tooltip:r,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Bt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(Nr,{$gap:6,children:[e(ku,{label:n,tooltip:r,required:o,badge:i}),e(Pg,{$disabled:p,$error:!!a,children:e(Fg,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),e(Nu,{errorMessage:a,warnMessage:s,helpMessage:l})]})},zg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Ug=o.div`
1593
1614
  flex: 1;
1594
1615
  min-width: 0;
1595
- `,kg=o.div`
1616
+ `,Bg=o.div`
1596
1617
  flex: 0 0 auto;
1597
1618
  min-width: 140px;
1598
- `,Dg=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=Ig,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=zt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:$,unit:v}=zt(()=>((e,t,n)=>{if(null==e||""===e)return{num:"",unit:n};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(r);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:n}:{num:"",unit:n}})(c,u,y),[c,u,y]),x=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(kr,{$width:b,$gap:6,children:[e(vu,{label:o,tooltip:r,required:s,badge:i}),t(Nr,{$gap:8,$alignItems:"center",children:[e(Ng,{children:e(Cu,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:$,onChange:e=>x(di(e.target.value),v)})}),e(kg,{children:e(wh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[v],setValues:e=>x($,e[0]||v)})})]}),e(xu,{errorMessage:h,warnMessage:g,helpMessage:m})]})},Rg=o.div`
1619
+ `,jg=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=zg,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=zt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:$,unit:v}=zt(()=>((e,t,n)=>{if(null==e||""===e)return{num:"",unit:n};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(r);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:n}:{num:"",unit:n}})(c,u,y),[c,u,y]),x=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(Nr,{$width:b,$gap:6,children:[e(ku,{label:o,tooltip:r,required:s,badge:i}),t(kr,{$gap:8,$alignItems:"center",children:[e(Ug,{children:e(_u,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:$,onChange:e=>x(gi(e.target.value),v)})}),e(Bg,{children:e(Oh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[v],setValues:e=>x($,e[0]||v)})})]}),e(Nu,{errorMessage:h,warnMessage:g,helpMessage:m})]})},Hg=o.div`
1599
1620
  min-width: 500px;
1600
- `,Og=o.div`
1621
+ `,Wg=o.div`
1601
1622
  display: flex;
1602
1623
  flex-direction: column;
1603
1624
  align-items: center;
1604
1625
  gap: 16px;
1605
1626
  padding: 24px;
1606
1627
  width: calc(100% - 48px);
1607
- `,_g=o.div`
1628
+ `,Gg=o.div`
1608
1629
  display: flex;
1609
1630
  justify-content: center;
1610
1631
  gap: 16px;
1611
1632
  padding: 16px 24px;
1612
1633
  width: calc(100% - 48px);
1613
1634
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1614
- `,Lg=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(Kh,{isOpen:i,onClose:a,...d,children:t(Rg,{children:[t(Og,{children:[n&&e(n,{}),e(cn,{size:on.M,weight:500,color:rn.Primary,children:o}),e(kr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(cn,{size:on.XS,weight:400,color:rn.Secondary,children:t},t))}),c]}),(s||l)&&t(_g,{children:[s&&e(zd,{"data-id":"deny",...s}),l&&e(zd,{"data-id":"approve",...l})]})]})});export{_h as $,wi as A,so as B,Jr as C,fn as D,On as E,Nr as F,si as G,Ln as H,Ai as I,eo as J,to as K,uo as L,co as M,Xn as N,Qn as O,Nn as P,Jn as Q,kr as R,Fn as S,In as T,vu as U,Bu as V,xu as W,Uh as X,vn as Y,th as Z,Yp as _,Ei as a,jc as a$,Ii as a0,rn as a1,zd as a2,Fd as a3,Pd as a4,Ru as a5,Ni as a6,Cn as a7,og as a8,ki as a9,yd as aA,Dr as aB,wh as aC,Sc as aD,vc as aE,Br as aF,Ti as aG,Go as aH,Un as aI,qp as aJ,nn as aK,lc as aL,ic as aM,hn as aN,pn as aO,Wo as aP,bn as aQ,Ir as aR,hp as aS,Vp as aT,_o as aU,ai as aV,Ao as aW,qr as aX,tn as aY,wg as aZ,Yo as a_,eg as aa,Cu as ab,Fu as ac,ip as ad,Tu as ae,dn as af,Ag as ag,xo as ah,hi as ai,Zn as aj,ed as ak,no as al,bu as am,Hl as an,Mo as ao,Lg as ap,is as aq,fa as ar,wa as as,as as at,ka as au,rs as av,Ki as aw,Vi as ax,fp as ay,oa as az,cn as b,Ps as b$,Oc as b0,bo as b1,Yn as b2,Hp as b3,fo as b4,jl as b5,zo as b6,zn as b7,xg as b8,Mp as b9,zl as bA,ba as bB,Li as bC,Ml as bD,hs as bE,ps as bF,fs as bG,ms as bH,ds as bI,cs as bJ,Ri as bK,Za as bL,Nc as bM,ei as bN,qu as bO,Xu as bP,Gu as bQ,Oo as bR,oc as bS,Kh as bT,Pl as bU,$s as bV,Rs as bW,Os as bX,_s as bY,Ls as bZ,Fs as b_,op as ba,Lu as bb,cu as bc,Ql as bd,Vr as be,Rh as bf,Do as bg,Ec as bh,mo as bi,Hr as bj,Dc as bk,Wl as bl,Gl as bm,ri as bn,Uo as bo,mu as bp,Au as bq,Dn as br,vg as bs,sg as bt,Bo as bu,Di as bv,Fi as bw,Oi as bx,Pi as by,Fl as bz,on as c,sl as c$,Ms as c0,Cr as c1,kl as c2,Dl as c3,Rl as c4,Ol as c5,_l as c6,Ll as c7,vs as c8,Ss as c9,Qs as cA,xs as cB,xl as cC,Sl as cD,El as cE,vl as cF,Cl as cG,Tl as cH,Al as cI,Il as cJ,Nl as cK,wl as cL,yl as cM,$l as cN,cl as cO,ml as cP,fl as cQ,bl as cR,ul as cS,hl as cT,pl as cU,tl as cV,nl as cW,ol as cX,rl as cY,il as cZ,al as c_,Es as ca,ws as cb,Ts as cc,Cs as cd,Is as ce,As as cf,ks as cg,Ns as ch,Ds as ci,bs as cj,ys as ck,zs as cl,Us as cm,Ws as cn,Gs as co,Xs as cp,js as cq,Hs as cr,Bs as cs,qs as ct,Ys as cu,Vs as cv,Js as cw,Ks as cx,Zs as cy,el as cz,Ho as d,ma as d$,ll as d0,dl as d1,gl as d2,Tr as d3,jh as d4,ag as d5,nc as d6,No as d7,gn as d8,Bl as d9,Ui as dA,Mi as dB,zi as dC,Bi as dD,ss as dE,Qa as dF,qa as dG,Ya as dH,Ja as dI,Va as dJ,ns as dK,os as dL,ts as dM,es as dN,_c as dO,Dg as dP,Pn as dQ,Ea as dR,ea as dS,Sa as dT,Zi as dU,Ia as dV,Aa as dW,ha as dX,xa as dY,Ta as dZ,Pa as d_,Pc as da,bc as db,Jo as dc,Xo as dd,Mu as de,cc as df,jr as dg,Vo as dh,Ko as di,$c as dj,Io as dk,To as dl,Co as dm,pc as dn,un as dp,sp as dq,rp as dr,sr as ds,oo as dt,$p as du,Op as dv,Sp as dw,Ar as dx,ra as dy,ja as dz,Lo as e,lo as e$,_a as e0,da as e1,qi as e2,ua as e3,ca as e4,Yi as e5,pa as e6,Ga as e7,la as e8,Ba as e9,za as eA,Yu as eB,La as eC,yr as eD,dd as eE,qd as eF,Kn as eG,Hn as eH,En as eI,Bn as eJ,Rn as eK,Vn as eL,Wn as eM,kn as eN,Mn as eO,wn as eP,go as eQ,Tn as eR,Sn as eS,qn as eT,_n as eU,ao as eV,io as eW,ro as eX,Gn as eY,ho as eZ,po as e_,Xa as ea,Ha as eb,Wa as ec,Ka as ed,Da as ee,Qi as ef,ta as eg,na as eh,ia as ei,sa as ej,aa as ek,ji as el,Hi as em,Ji as en,Ra as eo,Oa as ep,Fa as eq,Ul as er,Gi as es,_i as et,ya as eu,ga as ev,$a as ew,Ma as ex,va as ey,Ca as ez,Eh as f,Ld as f$,An as f0,xn as f1,jn as f2,vr as f3,$r as f4,Er as f5,yo as f6,$o as f7,ci as f8,ko as f9,Ua as fA,gs as fB,us as fC,ls as fD,Na as fE,Wi as fF,Xi as fG,Xl as fH,Kl as fI,Jl as fJ,kc as fK,mc as fL,fc as fM,wc as fN,Tc as fO,Ic as fP,Rc as fQ,Mc as fR,bd as fS,Cd as fT,$d as fU,fd as fV,Bd as fW,Rd as fX,Gd as fY,Kd as fZ,Xd as f_,Ro as fa,Fo as fb,Eo as fc,jo as fd,qo as fe,Zo as ff,er as fg,tr as fh,nr as fi,or as fj,rr as fk,ir as fl,ar as fm,Gr as fn,Yr as fo,ti as fp,ni as fq,ii as fr,di as fs,ui as ft,pi as fu,gi as fv,mi as fw,wo as fx,fi as fy,bi as fz,Kr as g,_r as g0,iu as g1,Or as g2,su as g3,Lr as g4,Pr as g5,Fr as g6,od as g7,Rr as g8,Gc as g9,Xc as ga,Wc as gb,tp as gc,np as gd,Hu as ge,Ig as gf,Ep as gg,Ah as gh,Nh as gi,Zh as gj,ig as gk,gp as gl,oh as gm,Jp as gn,sn as go,Kc as h,Ad as i,ec as j,Vl as k,rc as l,yc as m,fh as n,hc as o,So as p,$n as q,yn as r,Qr as s,yi as t,Lc as u,mn as v,Yl as w,Zr as x,Ci as y,li as z};
1635
+ `,Xg=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(ng,{isOpen:i,onClose:a,...d,children:t(Hg,{children:[t(Wg,{children:[n&&e(n,{}),e(cn,{size:on.M,weight:500,color:rn.Primary,children:o}),e(Nr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(cn,{size:on.XS,weight:400,color:rn.Secondary,children:t},t))}),c]}),(s||l)&&t(Gg,{children:[s&&e(Vd,{"data-id":"deny",...s}),l&&e(Vd,{"data-id":"approve",...l})]})]})});export{Hh as $,Ii as A,so as B,Jr as C,fn as D,On as E,kr as F,ui as G,Ln as H,Di as I,eo as J,to as K,uo as L,co as M,Gn as N,Qn as O,kn as P,Jn as Q,Nr as R,Fn as S,In as T,ku as U,qu as V,Nu as W,Jh as X,vn as Y,dh as Z,ah as _,Ai as a,Yc as a$,Ri as a0,rn as a1,Vd as a2,Xd as a3,Gd as a4,Bu as a5,Oi as a6,Cn as a7,pg as a8,_i as a9,Ad as aA,Dr as aB,Oh as aC,Dc as aD,kc as aE,Br as aF,Ni as aG,Wo as aH,Un as aI,ih as aJ,nn as aK,bc as aL,gc as aM,hn as aN,pn as aO,Xo as aP,bn as aQ,Ir as aR,Sp as aS,oh as aT,_o as aU,di as aV,Ao as aW,qr as aX,tn as aY,Lg as aZ,Yo as a_,cg as aa,_u as ab,Xu as ac,gp as ad,Lu as ae,dn as af,Mg as ag,xo as ah,bi as ai,Zn as aj,cd as ak,no as al,Tu as am,Ql as an,Mo as ao,Xg as ap,gs as aq,va as ar,Ia as as,ms as at,_a as au,hs as av,Yi as aw,Qi as ax,Cp as ay,sa as az,cn as b,Gs as b$,jc as b0,bo as b1,Yn as b2,Qp as b3,fo as b4,Yl as b5,zo as b6,zn as b7,Rg as b8,Kp as b9,Vl as bA,xa as bB,zi as bC,Kl as bD,Ss as bE,xs as bF,Cs as bG,ws as bH,$s as bI,ys as bJ,Pi as bK,ls as bL,Mc as bM,ri as bN,ip as bO,ep as bP,Zu as bQ,Oo as bR,pc as bS,ng as bT,Gl as bU,Is as bV,Bs as bW,js as bX,Hs as bY,Ws as bZ,Xs as b_,pp as ba,Wu as bb,yu as bc,sc as bd,Vr as be,Bh as bf,wu as bg,Do as bh,Rc as bi,mo as bj,Hr as bk,Uc as bl,tc as bm,Zl as bn,li as bo,Uo as bp,Pu as bq,Dn as br,Dg as bs,fg as bt,Bo as bu,Li as bv,Bi as bw,Fi as bx,Ui as by,Xl as bz,on as c,fl as c$,Ks as c0,Cr as c1,zl as c2,Ul as c3,Bl as c4,jl as c5,Hl as c6,Wl as c7,ks as c8,Ds as c9,sl as cA,Ns as cB,Nl as cC,Dl as cD,Rl as cE,kl as cF,_l as cG,Ll as cH,Pl as cI,Fl as cJ,Ml as cK,Ol as cL,Al as cM,Il as cN,yl as cO,wl as cP,Cl as cQ,Tl as cR,vl as cS,Sl as cT,xl as cU,dl as cV,ul as cW,pl as cX,hl as cY,gl as cZ,ml as c_,Rs as ca,Os as cb,Ls as cc,_s as cd,Fs as ce,Ps as cf,zs as cg,Ms as ch,Us as ci,Ts as cj,As as ck,Vs as cl,Js as cm,tl as cn,Zs as co,el as cp,Ys as cq,Qs as cr,qs as cs,il as ct,al as cu,ol as cv,rl as cw,nl as cx,ll as cy,cl as cz,Ho as d,Na as d$,bl as d0,$l as d1,El as d2,Tr as d3,Yh as d4,mg as d5,uc as d6,ko as d7,gn as d8,ql as d9,Wi as dA,ji as dB,Hi as dC,Gi as dD,fs as dE,ss as dF,is as dG,as as dH,rs as dI,os as dJ,us as dK,ps as dL,ds as dM,cs as dN,Hc as dO,jg as dP,Pn as dQ,Mi as dR,ya as dS,Aa as dT,ra as dU,Ta as dV,oa as dW,Ra as dX,Da as dY,ba as dZ,Ca as d_,Gc as da,Tc as db,Jo as dc,Go as dd,Ku as de,yc as df,jr as dg,Vo as dh,Ko as di,Ic as dj,Io as dk,To as dl,Co as dm,xc as dn,un as dp,fp as dq,hp as dr,sr as ds,oo as dt,Ip as du,jp as dv,Dp as dw,Ar as dx,la as dy,Xa as dz,Lo as e,io as e$,Ua as e0,$a as e1,Ma as e2,ga as e3,ea as e4,ma as e5,ha as e6,ta as e7,fa as e8,Za as e9,Ja as eA,Ha as eB,ka as eC,ap as eD,za as eE,qa as eF,Ya as eG,Ea as eH,yr as eI,$d as eJ,iu as eK,Kn as eL,Hn as eM,En as eN,Bn as eO,Rn as eP,Vn as eQ,Xn as eR,Nn as eS,Mn as eT,wn as eU,go as eV,Tn as eW,Sn as eX,qn as eY,_n as eZ,ao as e_,pa as ea,Ga as eb,es as ec,Qa as ed,ts as ee,ns as ef,La as eg,na as eh,ia as ei,aa as ej,ca as ek,ua as el,da as em,Xi as en,Ki as eo,Zi as ep,Pa as eq,Fa as er,Ba as es,Jl as et,Vi as eu,Sa as ev,ja as ew,Ka as ex,wa as ey,Va as ez,Rh as f,Td as f$,ro as f0,Wn as f1,ho as f2,po as f3,lo as f4,An as f5,xn as f6,jn as f7,vr as f8,$r as f9,ci as fA,gi as fB,mi as fC,fi as fD,yi as fE,$i as fF,wo as fG,vi as fH,xi as fI,Wa as fJ,Es as fK,vs as fL,bs as fM,Oa as fN,qi as fO,Ji as fP,ec as fQ,nc as fR,rc as fS,zc as fT,wc as fU,Cc as fV,Oc as fW,Lc as fX,Fc as fY,Bc as fZ,Kc as f_,Er as fa,ei as fb,ti as fc,yo as fd,$o as fe,hi as ff,No as fg,Ro as fh,Fo as fi,Eo as fj,jo as fk,qo as fl,Zo as fm,er as fn,tr as fo,nr as fp,or as fq,rr as fr,ir as fs,ar as ft,Wr as fu,Yr as fv,Qr as fw,Zr as fx,ii as fy,ai as fz,Kr as g,_d as g0,Id as g1,Cd as g2,qd as g3,Bd as g4,Zd as g5,nu as g6,eu as g7,Wd as g8,_r as g9,gu as ga,Or as gb,fu as gc,Lr as gd,Pr as ge,Fr as gf,pd as gg,Rr as gh,Zc as gi,ed as gj,td as gk,dp as gl,up as gm,Qu as gn,zg as go,Rp as gp,Ph as gq,Mh as gr,lg as gs,gg as gt,Ep as gu,ph as gv,rh as gw,sn as gx,nd as h,Pd as i,cc as j,oc as k,hc as l,Ac as m,Ch as n,Sc as o,So as p,$n as q,yn as r,ni as s,Si as t,Wc as u,mn as v,ac as w,oi as x,ki as y,pi as z};