@odigos/ui-kit 0.0.290 → 0.0.292

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 (96) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/chunks/{helpers-esDVvrTt.js → helpers-BGOJ3YRA.js} +1 -1
  3. package/lib/chunks/index-BIET8cd3.js +338 -0
  4. package/lib/chunks/source-instrument-form-context-BmNrVjHW.js +5 -0
  5. package/lib/chunks/{ui-components-DvoeDBMI.js → ui-components-DLJJffgA.js} +385 -252
  6. package/lib/components/_cards/text-card/index.d.ts +1 -0
  7. package/lib/components/charts/bar-chart/index.d.ts +14 -0
  8. package/lib/components/charts/index.d.ts +1 -0
  9. package/lib/components/island/index.d.ts +10 -1
  10. package/lib/components.js +1 -1
  11. package/lib/constants/common.d.ts +2 -0
  12. package/lib/constants/index.d.ts +2 -0
  13. package/lib/constants/insights/common.d.ts +15 -0
  14. package/lib/constants/insights/detection.d.ts +19 -0
  15. package/lib/{containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts → constants/insights/guardrails.d.ts} +22 -13
  16. package/lib/constants/insights/index.d.ts +5 -0
  17. package/lib/{containers/insights/settings-and-configurations/panels/learning/constants.d.ts → constants/insights/learning.d.ts} +4 -27
  18. package/lib/{containers/insights/settings-and-configurations/panels/system/constants.d.ts → constants/insights/system.d.ts} +2 -6
  19. package/lib/constants.js +1 -1
  20. package/lib/containers/_drawers/index.d.ts +1 -0
  21. package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/default-catalog.d.ts +1 -1
  22. package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/helpers.d.ts +2 -2
  23. package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/index.d.ts +3 -3
  24. package/lib/containers/_forms/index.d.ts +1 -0
  25. package/lib/containers/_forms/insights/detection-policy-form/index.d.ts +12 -0
  26. package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/mappers.d.ts +1 -1
  27. package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/signal-weights-panel.d.ts +1 -1
  28. package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/signal-weights.d.ts +2 -2
  29. package/lib/containers/_forms/insights/guardrail-form/extra-section.d.ts +15 -0
  30. package/lib/containers/{insights/settings-and-configurations/panels/guardrails → _forms/insights/guardrail-form}/facet-section.d.ts +1 -1
  31. package/lib/containers/_forms/insights/guardrail-form/index.d.ts +23 -0
  32. package/lib/containers/{insights/settings-and-configurations/panels/guardrails → _forms/insights/guardrail-form}/mappers.d.ts +3 -1
  33. package/lib/containers/_forms/insights/guardrail-form/types.d.ts +17 -0
  34. package/lib/containers/_forms/insights/index.d.ts +4 -0
  35. package/lib/containers/_forms/insights/learning-policy-form/index.d.ts +12 -0
  36. package/lib/containers/{insights/settings-and-configurations/panels/learning → _forms/insights/learning-policy-form}/mappers.d.ts +3 -3
  37. package/lib/containers/_forms/insights/learning-policy-form/options.d.ts +11 -0
  38. package/lib/containers/{insights/settings-and-configurations/panels/learning → _forms/insights/learning-policy-form}/types.d.ts +1 -1
  39. package/lib/containers/_forms/insights/system-settings-form/index.d.ts +9 -0
  40. package/lib/containers/_forms/insights/system-settings-form/mappers.d.ts +11 -0
  41. package/lib/containers/_forms/insights/system-settings-form/types.d.ts +11 -0
  42. package/lib/containers/insights/findings/drawer/helpers.d.ts +3 -9
  43. package/lib/containers/insights/findings/helpers.d.ts +19 -2
  44. package/lib/containers/insights/insights-context.d.ts +0 -20
  45. package/lib/containers/insights/settings-and-configurations/panels/detection/helpers.d.ts +28 -0
  46. package/lib/containers/insights/settings-and-configurations/panels/guardrails/helpers.d.ts +30 -0
  47. package/lib/containers/insights/settings-and-configurations/panels/learning/helpers.d.ts +46 -0
  48. package/lib/containers/insights/settings-and-configurations/panels/panel.d.ts +44 -0
  49. package/lib/containers/insights/transactions/drawer/baselines/data-drawer/index.d.ts +8 -0
  50. package/lib/containers/insights/transactions/drawer/baselines/helpers.d.ts +4 -0
  51. package/lib/containers/insights/transactions/drawer/observations/data-drawer/index.d.ts +8 -0
  52. package/lib/containers.js +1834 -2146
  53. package/lib/contexts/index.d.ts +1 -0
  54. package/lib/contexts/insights/detection-override-form-context.d.ts +44 -0
  55. package/lib/contexts/insights/detection-policy-form-context.d.ts +29 -0
  56. package/lib/contexts/insights/guardrail-form-context.d.ts +67 -0
  57. package/lib/contexts/insights/index.d.ts +6 -0
  58. package/lib/contexts/insights/learning-override-form-context.d.ts +45 -0
  59. package/lib/contexts/insights/learning-policy-form-context.d.ts +34 -0
  60. package/lib/contexts/insights/system-settings-form-context.d.ts +28 -0
  61. package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +6 -1
  62. package/lib/contexts/odigos-api/types.d.ts +2 -1
  63. package/lib/contexts.js +1 -1
  64. package/lib/functions.js +1 -1
  65. package/lib/hooks.js +1 -1
  66. package/lib/snippets/index.d.ts +0 -1
  67. package/lib/snippets.js +1 -1
  68. package/lib/store.js +1 -1
  69. package/lib/theme.js +1 -1
  70. package/lib/types/insights/index.d.ts +43 -2
  71. package/lib/types.js +1 -1
  72. package/lib/visuals.js +1 -1
  73. package/package.json +1 -1
  74. package/lib/chunks/index-lV6RFSE-.js +0 -351
  75. package/lib/chunks/source-instrument-form-context-B9BHhgvw.js +0 -5
  76. package/lib/containers/insights/settings-and-configurations/content-panel/index.d.ts +0 -11
  77. package/lib/containers/insights/settings-and-configurations/panels/detection/constants.d.ts +0 -40
  78. package/lib/containers/insights/settings-and-configurations/panels/detection/create-override-panel.d.ts +0 -14
  79. package/lib/containers/insights/settings-and-configurations/panels/detection/mock.d.ts +0 -4
  80. package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts +0 -10
  81. package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts +0 -8
  82. package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts +0 -8
  83. package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +0 -13
  84. package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts +0 -10
  85. package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrail-list-item.d.ts +0 -8
  86. package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts +0 -9
  87. package/lib/containers/insights/settings-and-configurations/panels/guardrails/types.d.ts +0 -10
  88. package/lib/containers/insights/settings-and-configurations/panels/learning/create-override-panel.d.ts +0 -21
  89. package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts +0 -10
  90. package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts +0 -9
  91. package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts +0 -8
  92. package/lib/snippets/code-modal/index.d.ts +0 -9
  93. package/lib/snippets/trace-modal/index.d.ts +0 -8
  94. /package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/constants.d.ts +0 -0
  95. /package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/risk-levels.d.ts +0 -0
  96. /package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/types.d.ts +0 -0
@@ -1,6 +1,6 @@
1
- import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as r,useTheme as o,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as b,NginxLogo as y,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as E,CPlusPlusLogo as C,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as k,JavaLogo as I,PyroscopeLogo as _,AwsXrayLogo as R,VictoriaMetricsLogo as D,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as W,QuickwitLogo as X,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ee,ClickhouseLogo as Ce,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as _e,AxiomLogo as Re,AppDynamicsLogo as De,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as Xe,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,XIcon as xt,MinusIcon as Et,ChevronUpIcon as Ct,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as kt,ListIcon as It,PlusIcon as _t,TrashIcon as Rt,DotIcon as Dt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as jt,useEffect as Ht,useCallback as Wt,useMemo as Xt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as ei}from"prism-react-renderer";import{persist as ti,createJSONStorage as ii}from"zustand/middleware";import{ErrorBoundary as ni}from"react-error-boundary";import{VList as ri}from"virtua";const oi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ei,Ci,Ti,Oi,Ni,Ai,ki,Ii,_i,Ri,Di,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki,Yi;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute",e.DbQueryTemplatization="DbQueryTemplatization",e.InferDbAttributes="InferDbAttributes"})(ai||(ai={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(si||(si={})),(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.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(li||(li={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(di||(di={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ci||(ci={})),(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"})(ui||(ui={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(pi||(pi={})),(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"})(hi||(hi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(gi||(gi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(mi||(mi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(fi||(fi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(bi||(bi={})),(e=>{e.Community="community",e.Onprem="onprem"})(yi||(yi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(vi||(vi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})($i||($i={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(wi||(wi={})),(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"})(Si||(Si={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(xi||(xi={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Ei||(Ei={})),(e=>{e.DataStream="DataStream"})(Ci||(Ci={})),(e=>{e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup",e.SourceScopes="sourceScopes"})(Ti||(Ti={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Oi||(Oi={})),(e=>{e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"})(Ni||(Ni={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ai||(Ai={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(ki||(ki={})),(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"})(Ii||(Ii={})),(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"})(_i||(_i={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Ri||(Ri={})),(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"})(Di||(Di={})),(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.OdigosProfileDiagnostic="odigos_profile_diagnostic",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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(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"})(Mi||(Mi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Fi||(Fi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(zi||(zi={})),(e=>{e.HeaderKeys="headerKeys"})(Bi||(Bi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(ji||(ji={}));class Ji{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 qi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}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]"}}class Qi{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(Hi||(Hi={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Wi||(Wi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Xi||(Xi={})),(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"})(Gi||(Gi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Vi||(Vi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Ki||(Ki={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Yi||(Yi={}));const Zi={[Ki.Logs]:Yi.Logs,[Ki.Metrics]:Yi.Metrics,[Ki.Traces]:Yi.Traces,[Ki.Profiles]:Yi.Profiles},en={[Yi.Logs]:Ki.Logs,[Yi.Metrics]:Ki.Metrics,[Yi.Traces]:Ki.Traces,[Yi.Profiles]:Ki.Profiles};var tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,En;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(tn||(tn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(nn||(nn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(rn||(rn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(on||(on={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(an||(an={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(sn||(sn={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ln||(ln={})),(e=>{e.Open="open",e.Baselined="baselined",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Open="open",e.Allowed="allowed",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hn||(hn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gn||(gn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mn||(mn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fn||(fn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(bn||(bn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(yn||(yn={})),(e=>{e.Structural="structural",e.Metric="metric"})(vn||(vn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(wn||(wn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Sn||(Sn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(xn||(xn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(En||(En={}));const Cn={[si.Enrichment]:{TITLE:"Enrichment",ICON:c},[si.Normalization]:{TITLE:"Normalization",ICON:d},[si.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[ai.AddClusterInfo]:si.Enrichment,[ai.K8sAttributes]:si.Enrichment,[ai.ExtractAttribute]:si.Enrichment,[ai.InferDbAttributes]:si.Enrichment,[ai.DbQueryTemplatization]:si.Normalization,[ai.URLTemplatization]:si.Normalization,[ai.RenameAttributes]:si.Normalization,[ai.PiiMasking]:si.Privacy,[ai.DeleteAttributes]:si.Privacy},On=e=>{const t=Tn[e];return t?Cn[t].ICON:u},Nn=[{type:ai.K8sAttributes,icon:On(ai.K8sAttributes),category:Tn[ai.K8sAttributes],label:"Kubernetes Attributes",subtitle:"Add dynamic k8s resource attributes to your data.",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[vi.K8s]},{type:ai.AddClusterInfo,icon:On(ai.AddClusterInfo),category:Tn[ai.AddClusterInfo],label:"Add Cluster Info",subtitle:"Add static cluster-scoped attributes to your data.",description:"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.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[vi.K8s]},{type:ai.DeleteAttributes,icon:On(ai.DeleteAttributes),category:Tn[ai.DeleteAttributes],label:"Delete Attribute",subtitle:"Delete attributes from logs, metrics, and traces.",description:"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.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[vi.K8s]},{type:ai.RenameAttributes,icon:On(ai.RenameAttributes),category:Tn[ai.RenameAttributes],label:"Rename Attribute",subtitle:"Rename attributes in logs, metrics, and traces.",description:"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.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[vi.K8s]},{type:ai.PiiMasking,icon:On(ai.PiiMasking),category:Tn[ai.PiiMasking],label:"PII Masking",subtitle:"Mask PII data in your traces.",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[vi.K8s]},{type:ai.URLTemplatization,icon:On(ai.URLTemplatization),category:Tn[ai.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Templatizes 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.",allowedSignals:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[vi.K8s]:oi("v1.21.0")},supportedPlatforms:[vi.K8s,vi.Vm]},{type:ai.ExtractAttribute,icon:On(ai.ExtractAttribute),category:Tn[ai.ExtractAttribute],label:"Extract Attribute",subtitle:"Extract values from existing attributes into new ones.",description:"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.",allowedSignals:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[vi.K8s]:oi("v1.29.0")},supportedPlatforms:[vi.K8s]}],An=oi("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||oi(i)>=n},_n=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==vi.K8s||oi(i)>=An?e:e.allowedSignals?.includes(Ki.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Ki.Profiles)}:e)(i,e,t)),Rn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:On(e.type),category:e.category||Tn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var Dn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Dn||(Dn={}));const Ln={[Dn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Dn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Dn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Dn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Dn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Dn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Pn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Un,Mn,Fn;(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"})(Un||(Un={})),(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"})(Mn||(Mn={})),(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"})(Fn||(Fn={}));const zn=new Set(Object.values(Fn)),Bn=(e,t)=>{if("string"!=typeof(i=t)||!zn.has(i))return t;var i;switch(t){case Fn.Primary:return e.v2.colors.white[500];case Fn.Secondary:return e.v2.colors.silver[200];case Fn.Tertiary:return e.v2.colors.black[500];case Fn.Disable:return e.v2.colors.grey[400];case Fn.Error:return e.v2.colors.red[500];case Fn.Mandatory:return e.v2.colors.red[600];case Fn.Link:return e.v2.colors.purple[400];case Fn.Success:return e.v2.colors.green[400];default:return}},jn=n.p`
1
+ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as r,useTheme as o,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as w,SwiftLogo as $,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as A,NodejsLogo as N,GoLogo as k,JavaLogo as I,PyroscopeLogo as D,AwsXrayLogo as _,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as X,QuickwitLogo as W,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as we,DatadogLogo as $e,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ae,BonreeLogo as Ne,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as De,AxiomLogo as _e,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as Xe,HeadersCollectionIcon as We,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as yt,OpenTelemetryLogoStripped as bt,CodeIcon as vt,VIcon as wt,CopyIcon as $t,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as At,ArrowIcon as Nt,ListIcon as kt,XIcon as It,PlusIcon as Dt,TrashIcon as _t,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as jt,useEffect as Ht,useCallback as Xt,useMemo as Wt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as ei}from"prism-react-renderer";import{persist as ti,createJSONStorage as ii}from"zustand/middleware";import{ErrorBoundary as ni}from"react-error-boundary";import{VList as ri}from"virtua";const oi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,yi,bi,vi,wi,$i,Si,xi,Ci,Ei,Ti,Oi,Ai,Ni,ki,Ii,Di,_i,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Xi,Wi,Gi,Vi,Ki,Yi;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute",e.DbQueryTemplatization="DbQueryTemplatization",e.InferDbAttributes="InferDbAttributes"})(ai||(ai={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(si||(si={})),(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.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(li||(li={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(di||(di={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ci||(ci={})),(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"})(ui||(ui={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(pi||(pi={})),(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"})(hi||(hi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(gi||(gi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(mi||(mi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(fi||(fi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(yi||(yi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(vi||(vi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(wi||(wi={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})($i||($i={})),(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"})(Si||(Si={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(xi||(xi={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Ci||(Ci={})),(e=>{e.DataStream="DataStream"})(Ei||(Ei={})),(e=>{e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup",e.SourceScopes="sourceScopes"})(Ti||(Ti={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Oi||(Oi={})),(e=>{e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"})(Ai||(Ai={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ni||(Ni={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(ki||(ki={})),(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"})(Ii||(Ii={})),(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"})(Di||(Di={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_i||(_i={})),(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"})(Ri||(Ri={})),(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.OdigosProfileDiagnostic="odigos_profile_diagnostic",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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(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"})(Mi||(Mi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Fi||(Fi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(zi||(zi={})),(e=>{e.HeaderKeys="headerKeys"})(Bi||(Bi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(ji||(ji={}));class Ji{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 qi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}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]"}}class Qi{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(Hi||(Hi={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Xi||(Xi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wi||(Wi={})),(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"})(Gi||(Gi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Vi||(Vi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Ki||(Ki={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Yi||(Yi={}));const Zi={[Ki.Logs]:Yi.Logs,[Ki.Metrics]:Yi.Metrics,[Ki.Traces]:Yi.Traces,[Ki.Profiles]:Yi.Profiles},en={[Yi.Logs]:Ki.Logs,[Yi.Metrics]:Ki.Metrics,[Yi.Traces]:Ki.Traces,[Yi.Profiles]:Ki.Profiles};var tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,yn,bn,vn,wn,$n,Sn,xn,Cn,En;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(tn||(tn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(nn||(nn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(rn||(rn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(on||(on={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(an||(an={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(sn||(sn={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hn||(hn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gn||(gn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mn||(mn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fn||(fn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(yn||(yn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(vn||(vn={})),(e=>{e.Structural="structural",e.Metric="metric"})(wn||(wn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(Sn||(Sn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(xn||(xn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(Cn||(Cn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(En||(En={}));const Tn={[si.Enrichment]:{TITLE:"Enrichment",ICON:c},[si.Normalization]:{TITLE:"Normalization",ICON:d},[si.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},On={[ai.AddClusterInfo]:si.Enrichment,[ai.K8sAttributes]:si.Enrichment,[ai.ExtractAttribute]:si.Enrichment,[ai.InferDbAttributes]:si.Enrichment,[ai.DbQueryTemplatization]:si.Normalization,[ai.URLTemplatization]:si.Normalization,[ai.RenameAttributes]:si.Normalization,[ai.PiiMasking]:si.Privacy,[ai.DeleteAttributes]:si.Privacy},An=e=>{const t=On[e];return t?Tn[t].ICON:u},Nn=[{type:ai.K8sAttributes,icon:An(ai.K8sAttributes),category:On[ai.K8sAttributes],label:"Kubernetes Attributes",subtitle:"Add dynamic k8s resource attributes to your data.",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[vi.K8s]},{type:ai.AddClusterInfo,icon:An(ai.AddClusterInfo),category:On[ai.AddClusterInfo],label:"Add Cluster Info",subtitle:"Add static cluster-scoped attributes to your data.",description:"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.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[vi.K8s]},{type:ai.DeleteAttributes,icon:An(ai.DeleteAttributes),category:On[ai.DeleteAttributes],label:"Delete Attribute",subtitle:"Delete attributes from logs, metrics, and traces.",description:"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.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[vi.K8s]},{type:ai.RenameAttributes,icon:An(ai.RenameAttributes),category:On[ai.RenameAttributes],label:"Rename Attribute",subtitle:"Rename attributes in logs, metrics, and traces.",description:"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.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[vi.K8s]},{type:ai.PiiMasking,icon:An(ai.PiiMasking),category:On[ai.PiiMasking],label:"PII Masking",subtitle:"Mask PII data in your traces.",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[vi.K8s]},{type:ai.URLTemplatization,icon:An(ai.URLTemplatization),category:On[ai.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Templatizes 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.",allowedSignals:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[vi.K8s]:oi("v1.21.0")},supportedPlatforms:[vi.K8s,vi.Vm]},{type:ai.ExtractAttribute,icon:An(ai.ExtractAttribute),category:On[ai.ExtractAttribute],label:"Extract Attribute",subtitle:"Extract values from existing attributes into new ones.",description:"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.",allowedSignals:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[vi.K8s]:oi("v1.29.0")},supportedPlatforms:[vi.K8s]}],kn=oi("v1.26"),In=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),Dn=(e,t,i)=>{const n=e.minVersion?.[t];return!n||oi(i)>=n},_n=(e,t)=>Nn.filter(i=>In(i,e)&&Dn(i,e,t)).map(i=>((e,t,i)=>t!==vi.K8s||oi(i)>=kn?e:e.allowedSignals?.includes(Ki.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Ki.Profiles)}:e)(i,e,t)),Rn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:An(e.type),category:e.category||On[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Ln="Coming soon",Pn="We are working on this feature and it will be available soon.";var Un;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Un||(Un={}));const Mn={[Un.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Un.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Un.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Un.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Un.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Un.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Fn="Save Changes",zn="Discard changes",Bn="Default Policy",jn="Overrides",Hn="No default policy yet",Xn="No overrides yet",Wn="Choose override scope",Gn="Global",Vn="Choose Override type",Kn="Select Service",Yn="Select Transaction",Jn="Service",qn="Transaction",Qn="Select service…",Zn="Select transaction…",er="Anomaly Detection Policies",tr="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",ir="Add a default policy to set the global detection settings.",nr="Add overrides to adjust detection sensitivity for specific services.",rr="Create override policy",or="Delete policy",ar="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",sr="Name",lr="Trigger when risk level is",dr="Customize signal weights (advanced)",cr="Base weight",ur="Risk points",pr="Dangerous sub-cases - added on top of the base when detected:",hr="Every detected signal adds its weight (points) to a 0–100 risk score; the policy fires when the total reaches the threshold above. Sub-cases add on top of the base. Set any weight to 0 to mute that signal for this scope.",gr="Low",mr="Medium",fr="High",yr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,vr="Guardrails",wr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",Sr="No guardrails yet",xr="Create a guardrail to declare allowed service communication.",Cr="Inspect a service",Er="Edit guardrail",Tr="Namespace",Or="Service",Ar="Callers",Nr="Who may call this service (inbound) — any seen service",kr="Additional callers",Ir="Add any service name not yet seen",Dr="No other services seen",_r="Insights has not seen any other services to allow as callers",Rr="Callees",Lr="Internal services it may call (outbound) — any seen service",Pr="Additional callees",Ur="Add any service name not yet seen",Mr="No other services seen",Fr="Insights has not seen any other services to allow as callees",zr="checkout-service",Br="Egress",jr="Observed external destinations it may reach",Hr="Additional egress hosts",Xr="Add any host or host:port not yet observed",Wr="api.example.com:443",Gr="No egress detected",Vr="No egress found for this selection",Kr="Transactions",Yr="Operations this service may expose",Jr="No Transactions detected",qr="No transactions found for this selection",Qr="Adopt as enforce",Zr="Alert on violation",eo="Adopt as suggest",to="Observe only",io="Select a guardrail",no="Create guardrail",ro="Delete guardrail",oo="Enforce",ao="Suggest",so="auto",lo="allowed_callers",co="allowed_callees",uo="allowed_egress",po="allowed_transactions",ho="auto_transaction_guardrail",go="Learning Policies",mo="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",fo="Add a default policy to set the global learning settings.",yo="Add overrides to adjust learning for specific services.",bo="Add override policy",vo="Add override",wo="Add selection",$o="Add condition",So="Delete override",xo="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",Co="Select a policy",Eo="Combine",To="Currently:",Oo="Promotes when",Ao="Min matches",No="A policy with no conditions falls back to the count-only default.",ko="Select Deviation class",Io="Select deviation class…",Do="Any",_o="All",Ro="K of",Lo="Any (OR)",Po="All (AND)",Uo="K of N",Mo="Stable for N observations",Fo="Stable for a duration",zo="Min observations",Bo="Min duration",jo="Minutes",Ho="Hours",Xo="Days",Wo={[rn.D1_call_edges]:"D1 call edges",[rn.D2_egress]:"D2 egress",[rn.D3_latency]:"D3 latency",[rn.D4_args_returns]:"D4 args/returns",[rn.D5_libraries]:"D5 libraries",[rn.D6_attr_relations]:"D6 attr relations",[rn.D7_db_access]:"D7 db access",[rn.D8_payload_size]:"D8 payload size"},Go={[gn.Any]:"Any",[gn.All]:"All",[gn.KOf]:Ro},Vo=[{id:gn.Any,label:Lo},{id:gn.All,label:Po},{id:gn.KOf,label:Uo}],Ko=[{id:fn.StableObservations,label:Mo},{id:fn.StableDuration,label:Fo},{id:fn.MinObservations,label:zo},{id:fn.MinDuration,label:Bo}],Yo=e=>e===fn.StableDuration||e===fn.MinDuration,Jo=e=>e===fn.StableObservations||e===fn.MinObservations,qo="Learning examples",Qo="Retention",Zo="Memory limits",ea="Database writeback",ta="Transaction guardrails",ia="Transaction identity dimensions",na="Maximum example traces",ra="Maximum number of example traces collected per transaction.",oa="traces",aa="Minimum sampling interval",sa="Minimum time between collected examples.",la="seconds",da="Sample trace retention",ca="Stored sample traces are deleted after this period.",ua="days",pa="Default: 120 · Maximum: 120",ha="Maximum transactions in memory",ga="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ma="transactions",fa="Maximum members per baseline",ya="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",va="Flush interval",wa="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",Sa="Auto-enable transaction guardrail when a service is promoted",xa="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",Ca="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows. Good: http.response.status_code, rpc.grpc.status_code. Bad: user.id, URLs, request ids. Values come from the entry span only.",Ea="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Ta="No dimensions configured — transactions use the entry span name only.",Oa="Add dimension",Aa="e.g. http.response.status_code",Na="On",ka="Identity dimensions changed",Ia="New traffic will mint new transaction identities. Existing transactions stop receiving volume and become stale.\nReset deletes every transaction and related baselines/samples/findings, then relearns from new traffic. Keep only saves the new dimension config.",Da="Reset all transactions",_a="Keep existing transactions",Ra="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",La="Save settings",Pa="System settings are not available.",Ua=5,Ma=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Fa=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var za,Ba,ja;(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"})(za||(za={})),(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"})(Ba||(Ba={})),(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"})(ja||(ja={}));const Ha=new Set(Object.values(ja)),Xa=(e,t)=>{if("string"!=typeof(i=t)||!Ha.has(i))return t;var i;switch(t){case ja.Primary:return e.v2.colors.white[500];case ja.Secondary:return e.v2.colors.silver[200];case ja.Tertiary:return e.v2.colors.black[500];case ja.Disable:return e.v2.colors.grey[400];case ja.Error:return e.v2.colors.red[500];case ja.Mandatory:return e.v2.colors.red[600];case ja.Link:return e.v2.colors.purple[400];case ja.Success:return e.v2.colors.green[400];default:return}},Wa=n.p`
2
2
  margin: 0;
3
- color: ${({$color:e,theme:t})=>Bn(t,e)||t.v2.colors.grey[50]};
3
+ color: ${({$color:e,theme:t})=>Xa(t,e)||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e})=>e.font_family.primary};
5
5
  font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
6
6
  font-weight: ${({$weight:e})=>e};
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
38
38
  text-decoration: underline;
39
39
  }
40
40
  `}
41
- `,Hn=zt(({children:i,variant:n=Un.P,color:r,size:o=Mn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},b)=>{const y="string"==typeof i?i.split("\n").map((i,n,r)=>e(Bt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(jn,{ref:b,as:n,$color:r,$size:o,$weight:a,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:y})});Hn.displayName="Typography";const Wn="https://docs.odigos.io",Xn="default",Gn="this-cluster",Vn="This Cluster",Kn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Yn={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 start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},Jn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_CREDENTIALS_SHOW_ADVANCED:"Show advanced fields",CLOUD_CONNECTOR_CREDENTIALS_HIDE_ADVANCED:"Hide advanced fields",INSTRUMENTATION_INSTRUCTIONS_TITLE:"How to instrument this workload",INSTRUMENTATION_INSTRUCTIONS_MANUAL_SUBTITLE:"Odigos does not change this workload. Apply this in your own deployment definition and Odigos will pick it up.",INSTRUMENTATION_INSTRUCTIONS_AUTOMATIC_SUBTITLE:"What Odigos applies to this workload, shown so you can review or reproduce it.",INSTRUMENTATION_INSTRUCTIONS_STEPS_HEADING:"Follow these steps:",INSTRUMENTATION_INSTRUCTIONS_INPUTS_HEADING:"Values you still need to fill in",INSTRUMENTATION_INSTRUCTIONS_NOTES_HEADING:"Before you deploy",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",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",ADD_SOURCES:"Add Sources",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",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",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",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",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"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",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",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",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect 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",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",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",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},qn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Qn=(e,t)=>e===Ni.Success?Jn.HEALTHY:e===Ni.Error?Jn.NOT_HEALTHY:Pn(t),Zn=e=>{if(!e)return null;switch(e){case Mi.Irrelevant:return null;case Mi.Failure:case Mi.Error:return Ni.Error;case Mi.Notice:return Ni.Warning;case Mi.Pending:case Mi.Waiting:return Ni.Loading;case Mi.Unsupported:case Mi.Disabled:return Ni.Disabled;case Mi.Success:return Ni.Success;case Mi.Unknown:default:return Ni.Info}},er=(e,t,i="reason",n)=>{const r=Zn(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Ni.Success?p:h),label:n||("reason"===i?Pn(e?.reasonEnum):Qn(r,e?.reasonEnum)),tooltip:e?.message,textSize:Mn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},tr=e=>e.charAt(0).toUpperCase()+e.slice(1);var ir;(e=>{e.SIGNALS="SIGNALS"})(ir||(ir={}));const nr=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===ir.SIGNALS)switch(r){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===o;case"!==":case"!=":return s!==o;case">":return Number(s)>Number(o);case"<":return Number(s)<Number(o);case">=":return Number(s)>=Number(o);case"<=":return Number(s)<=Number(o);default:return!0}};function rr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const or=e=>({status:e?Ni.Success:Ni.Unknown,label:e?"True":"False",invertColors:!0}),ar=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),sr=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},lr=e=>"string"==typeof e?{id:e,label:e}:e??{},dr=(e,t)=>e.label||e.displayName||t,cr=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const n=e.options?.find(e=>String(e.id??"")===i);return n?dr(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?dr(n,i):sr(t)},ur=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ar(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:i?JSON.stringify(i):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},pr=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...pr(e.segments))):t.push(...e.items)}),t},hr=(e,t,i={})=>{const n=[],r=i.signals||[],o=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||o.has(t.componentType))return;if(t.renderCondition?.length&&!nr(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=rr(t.componentProperties,{});switch(t.componentType){case Ti.Toggle:case Ti.Checkbox:return void s.push({id:u,title:c,badge:or(!!p)});case Ti.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],i=e.map(e=>{const i=t.map(lr).find(t=>String(t.id??"")===e);return i?dr(i,e):e});return l(),void n.push({kind:"list",id:u,title:c,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const n=lr(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:dr(n,r),badge:or(!0===e[r])})});const i=ar(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=lr(e),n=String(t.id??"");return n&&i[n]?dr(t,n):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),l(),void n.push({kind:"list",id:u,title:c,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ti.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ar(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ar(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void n.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ti.KeyValuePair:return l(),ar(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],i)=>({id:`${u}-${i}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void n.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const i=ar(e)?e:{};return{id:`${u}-${t}`,title:String(i.key??""),label:String(i.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Ti.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ar(p)?p[e]:p)?e&&ar(p)?p[e]:p:[],i=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,n=Array.isArray(i)?i.map(lr):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:n,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,r)=>{const o=t.length>1?`${c} #${r+1}`:c,a=[],s=ar(e)?{...e}:{};null!=s.method&&""!==s.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,n,r]=t,o=null==e?.[i]?"":String(e[i]);switch(n){case"=":case"==":case"===":return o===r;case"!=":case"!==":return o!==r;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${r}-${e.keyName}`,title:e.label||tr(Pn(e.keyName))||e.keyName,label:cr(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:sr(t)})}),n.push({kind:"group",id:`${u}-${r}`,title:o,items:a.length?a:[{id:`${u}-${r}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Ti.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ur).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${r} ${a+1}`:r,l=ar(o)?o:{},d=t.length?hr(l,t,i):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],i)=>({id:`${u}-${a}-${i}-${e}`,title:e,label:sr(t)}))}];n.push({kind:"group",id:`${u}-${a}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:sr(p)})}var g}),l(),n},gr=(e,t,i={})=>pr(hr(e,t,i)),mr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const o=JSON.parse(r);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(i(o)):r}catch(o){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(i(r)):e[n]=r}return e},{})},fr=e=>JSON.parse(JSON.stringify(e)),br=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),yr=(e,t,i)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=i},vr=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},$r=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},wr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Sr=(e,t)=>{let i=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));i=i.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));i=i.filter(({runtimeInfo:t,containers:i})=>t?.detectedLanguages?.some(t=>e.has(t))||i?.some(t=>{const i=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!i&&e.has(i)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));i=i.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));i=i.filter(({instrumentationReport:t})=>{const i=t?.state||t?.progressStage;return!!i&&e.has(i)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));i=i.filter(t=>{const i=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(i)})}return t.onlyErrors&&(i=i.filter(e=>Zn(e.workloadOdigosHealthStatus?.status)===Ni.Error)),i},xr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Xn&&!e.dataStreamNames?.length):[],Er=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],o=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Er(e,n,i):i[n]=e}):i[o]=r:Er(r,o,i)}return i},Cr=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]}`},Tr=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`}},Or=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},Nr=e=>e?e.reduce((e,t)=>{if(null!=t){const i=Zn(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ar=e=>Array.isArray(e?.statuses)?Nr(e.statuses):e?.conditions??[],kr=e=>e?Array.isArray(e)?Ir(e):Ir(Nr(Object.values(e))):Ir([]),Ir=e=>{const t=e?.filter(({status:e})=>e===Ni.Error),i=e?.filter(({status:e})=>e===Ni.Warning),n=e?.filter(({status:e})=>e===Ni.Disabled),r=e?.filter(({status:e})=>e===Ni.Loading),o=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:o?Ni.Error:a?Ni.Warning:s?Ni.Info:void 0}},_r=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Rr=e=>({[Si.Java]:I,[Si.Go]:k,[Si.JavaScript]:A,[Si.Python]:N,[Si.DotNet]:O,[Si.CSharp]:T,[Si.CPlusPlus]:C,[Si.Php]:E,[Si.Ruby]:x,[Si.Rust]:S,[Si.Swift]:w,[Si.Elixir]:$,[Si.MySql]:v,[Si.Nginx]:y,[Si.Postgres]:b,[Si.Redis]:f,[Si.Kafka]:m,[Si.Ignored]:g,[Si.Unknown]:g,[Si.Processing]:g,[Si.NoContainers]:g,[Si.NoRunningPods]:g}[e]||g),Dr=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Si.Unknown:Si.Unknown,Lr=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Pr=e=>e?.map(e=>Rr(Dr(e)))||[],Ur=e=>e?.map(e=>Rr(e))||[],Mr=e=>e.runtimeInfo?.detectedLanguages?.length?Ur(e.runtimeInfo?.detectedLanguages):Pr(e.containers),Fr=(e,t)=>{const i={[Li.Alauda]:Pe,[Li.AlibabaCloud]:Le,[Li.AppDynamics]:De,[Li.Axiom]:Re,[Li.AzureBlob]:_e,[Li.AzureMonitor]:Ie,[Li.BetterStack]:ke,[Li.Bonree]:Ae,[Li.Causely]:Ne,[Li.Checkly]:Oe,[Li.Chronosphere]:Te,[Li.ClickHouse]:Ce,[Li.CloudWatch]:Ee,[Li.Coralogix]:xe,[Li.Dash0]:Se,[Li.Datadog]:we,[Li.Dynamic]:Y,[Li.Dynatrace]:$e,[Li.ElasticApm]:ve,[Li.ElasticSearch]:ye,[Li.GoogleCloud]:be,[Li.GoogleCloudOTLP]:be,[Li.GrafanaCloudLoki]:fe,[Li.GrafanaCloudPrometheus]:fe,[Li.GrafanaCloudTempo]:fe,[Li.Greptime]:me,[Li.Groundcover]:ge,[Li.Honeycomb]:he,[Li.HyperDX]:pe,[Li.Instana]:ue,[Li.Jaeger]:ce,[Li.Kafka]:m,[Li.Kloudmate]:de,[Li.Last9]:le,[Li.Lightstep]:se,[Li.LogzIo]:ae,[Li.Loki]:oe,[Li.Lumigo]:re,[Li.Middleware]:ne,[Li.NewRelic]:ie,[Li.Observe]:te,[Li.Odigos]:ee,[Li.OdigosProfileDiagnostic]:ee,[Li.OneUptime]:Z,[Li.OpenObserve]:Q,[Li.Opsverse]:q,[Li.Oracle]:J,[Li.OTLP]:Y,[Li.OTLPHttp]:Y,[Li.Prometheus]:K,[Li.Qryn]:V,[Li.QrynOss]:G,[Li.Quickwit]:X,[Li.S3]:W,[Li.Seq]:H,[Li.Signalfx]:B,[Li.Signoz]:j,[Li.Splunk]:B,[Li.SplunkSapm]:B,[Li.SplunkOtlp]:B,[Li.SumoLogic]:z,[Li.TelemetryHub]:F,[Li.Tempo]:M,[Li.Tingyun]:U,[Li.Traceloop]:P,[Li.Uptrace]:L,[Li.VictoriaMetrics]:D,[Li.VictoriaMetricsCloud]:D,[Li.XRay]:R,[Li.Pyroscope]:_}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},zr=e=>({[Ei.Namespace]:je,[Ei.Source]:Be,[Ei.Destination]:ze,[Ei.Action]:u,[Ei.InstrumentationRule]:Fe,[Ei.SamplingRule]:Me,[Ei.Recommendation]:Ue}[e]),Br=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,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,jr=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},Hr=e=>jr(Br(e)),Wr=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case Ei.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Ei.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case Ei.Action:const n=e;o=n.type,a=n.name||"";break;case Ei.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case Ei.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Xr=(e,t)=>{if(t===Ei.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Gr=e=>({[Fi.CodeAttributes]:Ve,[Fi.CustomInstrumentation]:Ge,[Fi.HeadersCollection]:Xe,[Fi.PayloadCollection]:We,[Fi.NetworkMetrics]:He,[Fi.UnknownType]:g}[e]||g),Vr=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Si.Unknown,Kr=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?Si.Processing:Si.NoRunningPods;const n=i?.filter(e=>Vr(e)!==Si.Ignored);if(!n.length)return Si.NoContainers;const r=n.find(e=>Vr(e)!==Si.Unknown);return r?Vr(r):Si.Unknown},Yr=(e,t,i)=>(t===Ei.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Jr=e=>({[Ki.Logs]:Ye,[Ki.Metrics]:He,[Ki.Traces]:Ke,[Ki.Profiles]:ee}[e]),qr=(e,t)=>Object.values(Mn).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),Qr=e=>e&&{[vi.K8s]:Ze,[vi.Vm]:Qe,[vi.Connector]:qe,[vi.AwsEcs]:Je}[e]||ee,Zr=e=>e?{[vi.K8s]:"Kubernetes Cluster",[vi.Vm]:"Virtual Machine",[vi.Connector]:"Cloud Connector",[vi.AwsEcs]:"AWS ECS"}[e]:"Unknown",eo=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...eo(e,t,i)),r}):[]},to={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},io=e=>{if(!e)return"";if(to[e])return to[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},no=(e,t)=>{if(t===Ei.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},ro=(e,t,i)=>{switch(i=i??"500",t){case Ni.Default:return e.v2.colors.purple[i];case Ni.Info:return e.v2.colors.blue[i];case Ni.Error:return e.v2.colors.red[i];case Ni.Warning:return e.v2.colors.yellow[i];case Ni.Success:return e.v2.colors.green[i];case Ni.Loading:case Ni.Disabled:case Ni.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},oo=e=>{switch(e){case Wi.Updating:case Xi.Pending:case Gi.ContainerCreating:case Vi.Waiting:return Ni.Info;case Wi.Healthy:case Xi.Succeeded:case Xi.Running:case Gi.Running:case Vi.Running:return Ni.Success;case Wi.Degraded:return Ni.Warning;case Wi.Failed:case Xi.Failed:case Gi.Error:case Gi.CrashLoopBackOff:case Gi.CreateContainerError:case Gi.CreateContainerConfigError:case Gi.ErrImagePull:case Gi.ErrImageNeverPull:case Gi.ImagePullBackOff:case Gi.InvalidImageName:case Gi.RegistryUnavailable:case Gi.NetworkNotReady:case Gi.OOMKilled:case Gi.ContainerCannotRun:case Vi.Terminated:case Gi.DeadlineExceeded:case Gi.StartError:return Ni.Error;case Wi.Down:case Gi.Completed:return Ni.Disabled;case Wi.Unknown:case Xi.Unknown:default:return Ni.Unknown}},ao=n.div`
41
+ `,Ga=zt(({children:i,variant:n=za.P,color:r,size:o=Ba.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof i?i.split("\n").map((i,n,r)=>e(Bt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Wa,{ref:y,as:n,$color:r,$size:o,$weight:a,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});Ga.displayName="Typography";const Va="https://docs.odigos.io",Ka="default",Ya="this-cluster",Ja="This Cluster",qa={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Qa={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 start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},Za={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_CREDENTIALS_SHOW_ADVANCED:"Show advanced fields",CLOUD_CONNECTOR_CREDENTIALS_HIDE_ADVANCED:"Hide advanced fields",INSTRUMENTATION_INSTRUCTIONS_TITLE:"How to instrument this workload",INSTRUMENTATION_INSTRUCTIONS_MANUAL_SUBTITLE:"Odigos does not change this workload. Apply this in your own deployment definition and Odigos will pick it up.",INSTRUMENTATION_INSTRUCTIONS_AUTOMATIC_SUBTITLE:"What Odigos applies to this workload, shown so you can review or reproduce it.",INSTRUMENTATION_INSTRUCTIONS_STEPS_HEADING:"Follow these steps:",INSTRUMENTATION_INSTRUCTIONS_INPUTS_HEADING:"Values you still need to fill in",INSTRUMENTATION_INSTRUCTIONS_NOTES_HEADING:"Before you deploy",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",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",ADD_SOURCES:"Add Sources",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",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",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",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",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"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",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",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",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect 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",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",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",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},es={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},ts=(e,t)=>e===Ai.Success?Za.HEALTHY:e===Ai.Error?Za.NOT_HEALTHY:Fa(t),is=e=>{if(!e)return null;switch(e){case Mi.Irrelevant:return null;case Mi.Failure:case Mi.Error:return Ai.Error;case Mi.Notice:return Ai.Warning;case Mi.Pending:case Mi.Waiting:return Ai.Loading;case Mi.Unsupported:case Mi.Disabled:return Ai.Disabled;case Mi.Success:return Ai.Success;case Mi.Unknown:default:return Ai.Info}},ns=(e,t,i="reason",n)=>{const r=is(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Ai.Success?p:h),label:n||("reason"===i?Fa(e?.reasonEnum):ts(r,e?.reasonEnum)),tooltip:e?.message,textSize:Ba.XXXS,invertColors:!0,useSecondaryTone:!0}:null},rs=e=>e.charAt(0).toUpperCase()+e.slice(1);var os;(e=>{e.SIGNALS="SIGNALS"})(os||(os={}));const as=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===os.SIGNALS)switch(r){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===o;case"!==":case"!=":return s!==o;case">":return Number(s)>Number(o);case"<":return Number(s)<Number(o);case">=":return Number(s)>=Number(o);case"<=":return Number(s)<=Number(o);default:return!0}};function ss(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ls=e=>({status:e?Ai.Success:Ai.Unknown,label:e?"True":"False",invertColors:!0}),ds=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),cs=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},us=e=>"string"==typeof e?{id:e,label:e}:e??{},ps=(e,t)=>e.label||e.displayName||t,hs=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const n=e.options?.find(e=>String(e.id??"")===i);return n?ps(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?ps(n,i):cs(t)},gs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ds(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:i?JSON.stringify(i):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},ms=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...ms(e.segments))):t.push(...e.items)}),t},fs=(e,t,i={})=>{const n=[],r=i.signals||[],o=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||o.has(t.componentType))return;if(t.renderCondition?.length&&!as(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ss(t.componentProperties,{});switch(t.componentType){case Ti.Toggle:case Ti.Checkbox:return void s.push({id:u,title:c,badge:ls(!!p)});case Ti.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],i=e.map(e=>{const i=t.map(us).find(t=>String(t.id??"")===e);return i?ps(i,e):e});return l(),void n.push({kind:"list",id:u,title:c,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const n=us(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:ps(n,r),badge:ls(!0===e[r])})});const i=ds(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=us(e),n=String(t.id??"");return n&&i[n]?ps(t,n):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),l(),void n.push({kind:"list",id:u,title:c,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ti.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ds(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ds(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void n.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ti.KeyValuePair:return l(),ds(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],i)=>({id:`${u}-${i}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void n.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const i=ds(e)?e:{};return{id:`${u}-${t}`,title:String(i.key??""),label:String(i.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Ti.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ds(p)?p[e]:p)?e&&ds(p)?p[e]:p:[],i=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,n=Array.isArray(i)?i.map(us):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:n,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,r)=>{const o=t.length>1?`${c} #${r+1}`:c,a=[],s=ds(e)?{...e}:{};null!=s.method&&""!==s.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,n,r]=t,o=null==e?.[i]?"":String(e[i]);switch(n){case"=":case"==":case"===":return o===r;case"!=":case"!==":return o!==r;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${r}-${e.keyName}`,title:e.label||rs(Fa(e.keyName))||e.keyName,label:hs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:cs(t)})}),n.push({kind:"group",id:`${u}-${r}`,title:o,items:a.length?a:[{id:`${u}-${r}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Ti.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(gs).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${r} ${a+1}`:r,l=ds(o)?o:{},d=t.length?fs(l,t,i):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],i)=>({id:`${u}-${a}-${i}-${e}`,title:e,label:cs(t)}))}];n.push({kind:"group",id:`${u}-${a}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:cs(p)})}var g}),l(),n},ys=(e,t,i={})=>ms(fs(e,t,i)),bs=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const o=JSON.parse(r);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(i(o)):r}catch(o){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(i(r)):e[n]=r}return e},{})},vs=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),$s=(e,t,i)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=i},Ss=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},xs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Cs=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Es=(e,t)=>{let i=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));i=i.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));i=i.filter(({runtimeInfo:t,containers:i})=>t?.detectedLanguages?.some(t=>e.has(t))||i?.some(t=>{const i=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!i&&e.has(i)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));i=i.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));i=i.filter(({instrumentationReport:t})=>{const i=t?.state||t?.progressStage;return!!i&&e.has(i)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));i=i.filter(t=>{const i=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(i)})}return t.onlyErrors&&(i=i.filter(e=>is(e.workloadOdigosHealthStatus?.status)===Ai.Error)),i},Ts=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ka&&!e.dataStreamNames?.length):[],Os=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],o=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Os(e,n,i):i[n]=e}):i[o]=r:Os(r,o,i)}return i},As=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]}`},Ns=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`}},ks=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},Is=e=>e?e.reduce((e,t)=>{if(null!=t){const i=is(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ds=e=>Array.isArray(e?.statuses)?Is(e.statuses):e?.conditions??[],_s=e=>e?Array.isArray(e)?Rs(e):Rs(Is(Object.values(e))):Rs([]),Rs=e=>{const t=e?.filter(({status:e})=>e===Ai.Error),i=e?.filter(({status:e})=>e===Ai.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),r=e?.filter(({status:e})=>e===Ai.Loading),o=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:o?Ai.Error:a?Ai.Warning:s?Ai.Info:void 0}},Ls=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ps=e=>({[Si.Java]:I,[Si.Go]:k,[Si.JavaScript]:N,[Si.Python]:A,[Si.DotNet]:O,[Si.CSharp]:T,[Si.CPlusPlus]:E,[Si.Php]:C,[Si.Ruby]:x,[Si.Rust]:S,[Si.Swift]:$,[Si.Elixir]:w,[Si.MySql]:v,[Si.Nginx]:b,[Si.Postgres]:y,[Si.Redis]:f,[Si.Kafka]:m,[Si.Ignored]:g,[Si.Unknown]:g,[Si.Processing]:g,[Si.NoContainers]:g,[Si.NoRunningPods]:g}[e]||g),Us=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Si.Unknown:Si.Unknown,Ms=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Fs=e=>e?.map(e=>Ps(Us(e)))||[],zs=e=>e?.map(e=>Ps(e))||[],Bs=e=>e.runtimeInfo?.detectedLanguages?.length?zs(e.runtimeInfo?.detectedLanguages):Fs(e.containers),js=(e,t)=>{const i={[Li.Alauda]:Pe,[Li.AlibabaCloud]:Le,[Li.AppDynamics]:Re,[Li.Axiom]:_e,[Li.AzureBlob]:De,[Li.AzureMonitor]:Ie,[Li.BetterStack]:ke,[Li.Bonree]:Ne,[Li.Causely]:Ae,[Li.Checkly]:Oe,[Li.Chronosphere]:Te,[Li.ClickHouse]:Ee,[Li.CloudWatch]:Ce,[Li.Coralogix]:xe,[Li.Dash0]:Se,[Li.Datadog]:$e,[Li.Dynamic]:Y,[Li.Dynatrace]:we,[Li.ElasticApm]:ve,[Li.ElasticSearch]:be,[Li.GoogleCloud]:ye,[Li.GoogleCloudOTLP]:ye,[Li.GrafanaCloudLoki]:fe,[Li.GrafanaCloudPrometheus]:fe,[Li.GrafanaCloudTempo]:fe,[Li.Greptime]:me,[Li.Groundcover]:ge,[Li.Honeycomb]:he,[Li.HyperDX]:pe,[Li.Instana]:ue,[Li.Jaeger]:ce,[Li.Kafka]:m,[Li.Kloudmate]:de,[Li.Last9]:le,[Li.Lightstep]:se,[Li.LogzIo]:ae,[Li.Loki]:oe,[Li.Lumigo]:re,[Li.Middleware]:ne,[Li.NewRelic]:ie,[Li.Observe]:te,[Li.Odigos]:ee,[Li.OdigosProfileDiagnostic]:ee,[Li.OneUptime]:Z,[Li.OpenObserve]:Q,[Li.Opsverse]:q,[Li.Oracle]:J,[Li.OTLP]:Y,[Li.OTLPHttp]:Y,[Li.Prometheus]:K,[Li.Qryn]:V,[Li.QrynOss]:G,[Li.Quickwit]:W,[Li.S3]:X,[Li.Seq]:H,[Li.Signalfx]:B,[Li.Signoz]:j,[Li.Splunk]:B,[Li.SplunkSapm]:B,[Li.SplunkOtlp]:B,[Li.SumoLogic]:z,[Li.TelemetryHub]:F,[Li.Tempo]:M,[Li.Tingyun]:U,[Li.Traceloop]:P,[Li.Uptrace]:L,[Li.VictoriaMetrics]:R,[Li.VictoriaMetricsCloud]:R,[Li.XRay]:_,[Li.Pyroscope]:D}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Hs=e=>({[Ci.Namespace]:je,[Ci.Source]:Be,[Ci.Destination]:ze,[Ci.Action]:u,[Ci.InstrumentationRule]:Fe,[Ci.SamplingRule]:Me,[Ci.Recommendation]:Ue}[e]),Xs=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,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Ws=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},Gs=e=>Ws(Xs(e)),Vs=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case Ci.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Ci.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case Ci.Action:const n=e;o=n.type,a=n.name||"";break;case Ci.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case Ci.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Ks=(e,t)=>{if(t===Ci.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Ys=e=>({[Fi.CodeAttributes]:Ve,[Fi.CustomInstrumentation]:Ge,[Fi.HeadersCollection]:We,[Fi.PayloadCollection]:Xe,[Fi.NetworkMetrics]:He,[Fi.UnknownType]:g}[e]||g),Js=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Si.Unknown,qs=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?Si.Processing:Si.NoRunningPods;const n=i?.filter(e=>Js(e)!==Si.Ignored);if(!n.length)return Si.NoContainers;const r=n.find(e=>Js(e)!==Si.Unknown);return r?Js(r):Si.Unknown},Qs=(e,t,i)=>(t===Ci.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Zs=e=>({[Ki.Logs]:Ye,[Ki.Metrics]:He,[Ki.Traces]:Ke,[Ki.Profiles]:ee}[e]),el=(e,t)=>Object.values(Ba).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),tl=e=>e&&{[vi.K8s]:Ze,[vi.Vm]:Qe,[vi.Connector]:qe,[vi.AwsEcs]:Je}[e]||ee,il=e=>e?{[vi.K8s]:"Kubernetes Cluster",[vi.Vm]:"Virtual Machine",[vi.Connector]:"Cloud Connector",[vi.AwsEcs]:"AWS ECS"}[e]:"Unknown",nl=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...nl(e,t,i)),r}):[]},rl={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},ol=e=>{if(!e)return"";if(rl[e])return rl[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},al=(e,t)=>{if(t===Ci.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},sl=(e,t,i)=>{switch(i=i??"500",t){case Ai.Default:return e.v2.colors.purple[i];case Ai.Info:return e.v2.colors.blue[i];case Ai.Error:return e.v2.colors.red[i];case Ai.Warning:return e.v2.colors.yellow[i];case Ai.Success:return e.v2.colors.green[i];case Ai.Loading:case Ai.Disabled:case Ai.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},ll=e=>{switch(e){case Xi.Updating:case Wi.Pending:case Gi.ContainerCreating:case Vi.Waiting:return Ai.Info;case Xi.Healthy:case Wi.Succeeded:case Wi.Running:case Gi.Running:case Vi.Running:return Ai.Success;case Xi.Degraded:return Ai.Warning;case Xi.Failed:case Wi.Failed:case Gi.Error:case Gi.CrashLoopBackOff:case Gi.CreateContainerError:case Gi.CreateContainerConfigError:case Gi.ErrImagePull:case Gi.ErrImageNeverPull:case Gi.ImagePullBackOff:case Gi.InvalidImageName:case Gi.RegistryUnavailable:case Gi.NetworkNotReady:case Gi.OOMKilled:case Gi.ContainerCannotRun:case Vi.Terminated:case Gi.DeadlineExceeded:case Gi.StartError:return Ai.Error;case Xi.Down:case Gi.Completed:return Ai.Disabled;case Xi.Unknown:case Wi.Unknown:default:return Ai.Unknown}},dl=n.div`
42
42
  border-radius: 100%;
43
43
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
44
44
  position: relative;
45
- `,so=n.div`
45
+ `,cl=n.div`
46
46
  width: 80px;
47
47
  height: 80px;
48
48
  border-radius: 100%;
@@ -56,12 +56,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
56
56
  transform: rotate(360deg);
57
57
  }
58
58
  }
59
- `,lo=n(Hn)`
59
+ `,ul=n(Ga)`
60
60
  position: absolute;
61
61
  top: 50%;
62
62
  left: 50%;
63
63
  transform: translate(-50%, -50%);
64
- `,co=({percentage:i})=>e(ao,{children:[t(so,{}),"number"==typeof i?t(lo,{size:Mn.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),uo={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 po(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return uo[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ho(e){const t=po(e);return`${t.value}${t.unit}`}const go=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),mo=({loading:i=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!i)return null;const{value:p}=po(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:ho(1.5),height:ho(4),borderRadius:ho(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${go} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,children:[t("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},fo=n.div`
64
+ `,pl=({percentage:i})=>e(dl,{children:[t(cl,{}),"number"==typeof i?t(ul,{size:Ba.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),hl={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 gl(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return hl[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ml(e){const t=gl(e);return`${t.value}${t.unit}`}const fl=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),yl=({loading:i=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!i)return null;const{value:p}=gl(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},y=(e,t)=>({position:"absolute",width:ml(1.5),height:ml(4),borderRadius:ml(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${fl} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,children:[t("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},bl=n.div`
65
65
  width: ${({$size:e})=>e}px;
66
66
  height: ${({$size:e})=>e}px;
67
67
  border-radius: 100%;
@@ -69,7 +69,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
69
69
  display: flex;
70
70
  align-items: center;
71
71
  justify-content: center;
72
- `,bo=({scale:e,icon:i})=>{const n=o();return t(fo,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(fo,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(fo,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(fo,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(fo,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},yo=434,vo=635,$o=n.div`
72
+ `,vl=({scale:e,icon:i})=>{const n=o();return t(bl,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(bl,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(bl,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(bl,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(bl,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},wl=434,$l=635,Sl=n.div`
73
73
  width: ${434}px;
74
74
  height: ${635}px;
75
75
  display: flex;
@@ -79,12 +79,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
79
79
  padding: 16px;
80
80
  background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
81
81
  position: relative;
82
- `,wo=n.div`
82
+ `,xl=n.div`
83
83
  position: absolute;
84
84
  top: 50%;
85
85
  left: 50%;
86
86
  transform: translate(-50%, -50%);
87
- `,So=()=>e($o,{children:[t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(wo,{children:t(ee,{size:112})})]}),xo=n.div`
87
+ `,Cl=()=>e(Sl,{children:[t(xl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(xl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(xl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(xl,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(xl,{children:t(ee,{size:112})})]}),El=n.div`
88
88
  width: ${({$size:e})=>e}px;
89
89
  height: ${({$size:e})=>e}px;
90
90
  border-radius: 100%;
@@ -92,7 +92,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
92
92
  display: flex;
93
93
  align-items: center;
94
94
  justify-content: center;
95
- `,Eo=({scale:e=1,icon:i})=>{const n=o();return t(xo,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(xo,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(xo,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(xo,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(xo,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Co=n.div`
95
+ `,Tl=({scale:e=1,icon:i})=>{const n=o();return t(El,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(El,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(El,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(El,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(El,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Ol=n.div`
96
96
  flex: 1;
97
97
  align-self: stretch;
98
98
  min-height: 0;
@@ -102,7 +102,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
102
102
  overflow-y: auto;
103
103
  overflow-x: auto;
104
104
  padding: 12px;
105
- `,To=n.div`
105
+ `,Al=n.div`
106
106
  position: relative;
107
107
 
108
108
  // inherit all the properties of the parent (PageContent)
@@ -112,9 +112,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
112
112
  display: inherit;
113
113
  flex-direction: inherit;
114
114
  gap: inherit;
115
- `,Oo=n.div`
115
+ `,Nl=n.div`
116
116
  padding: ${({$padding:e})=>e||"12px"};
117
- `,No=n.div`
117
+ `,kl=n.div`
118
118
  display: flex;
119
119
  flex-direction: row;
120
120
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -126,7 +126,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
126
126
  margin: ${({$margin:e="unset"})=>e};
127
127
  padding: ${({$padding:e="unset"})=>e};
128
128
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
129
- `,Ao=n.div`
129
+ `,Il=n.div`
130
130
  display: flex;
131
131
  flex-direction: column;
132
132
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -138,19 +138,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
138
138
  margin: ${({$margin:e="unset"})=>e};
139
139
  padding: ${({$padding:e="unset"})=>e};
140
140
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
141
- `,ko=n(Ao)`
141
+ `,Dl=n(Il)`
142
142
  width: ${({$width:e})=>e||"100%"};
143
143
  height: ${({$height:e})=>e||"unset"};
144
144
  padding: ${({$padding:e})=>e||"unset"};
145
145
  align-items: center;
146
146
  justify-content: center;
147
147
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
148
- `,Io=n.div`
148
+ `,_l=n.div`
149
149
  display: flex;
150
150
  flex-direction: column;
151
151
  padding: 12px;
152
152
  overflow-y: scroll;
153
- `,_o=n.div`
153
+ `,Rl=n.div`
154
154
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
155
155
  top: 0;
156
156
  left: 0;
@@ -163,37 +163,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
163
163
  z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
164
164
  background: rgba(0, 0, 0, 0.6);
165
165
  backdrop-filter: blur(2px);
166
- `,Ro=n.div`
166
+ `,Ll=n.div`
167
167
  width: 800px;
168
168
  min-height: ${({$minHeight:e})=>e||"unset"};
169
169
  height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
170
170
  margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
171
171
  padding: 0 2px;
172
172
  overflow-y: scroll;
173
- `,Do=n(Ao)`
173
+ `,Pl=n(Il)`
174
174
  max-width: ${({$maxWidth:e})=>e||"unset"};
175
175
  width: 100%;
176
- `,Lo=n(No)`
176
+ `,Ul=n(kl)`
177
177
  gap: 16px;
178
178
  padding: 16px;
179
- `,Po=n.div`
179
+ `,Ml=n.div`
180
180
  width: 100%;
181
181
  max-height: ${({$maxHeight:e})=>e||"unset"};
182
182
  overflow-y: auto;
183
- `,Uo=a`
183
+ `,Fl=a`
184
184
  0% {
185
185
  background-position: 0% 50%;
186
186
  }
187
187
  100% {
188
188
  background-position: 100% 50%;
189
189
  }
190
- `,Mo=n(Hn)`
190
+ `,zl=n(Ga)`
191
191
  background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
192
192
  background-size: 250% 100%; /* Expand background to allow movement */
193
193
  background-clip: text;
194
194
  color: transparent;
195
- animation: ${Uo} 1s reverse linear infinite;
196
- `,Fo=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),r=i%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},zo=({icon:i,title:n,titleColor:r,titleSize:a=Mn.S,subTitle:s,subTitleColor:l,subTitleSize:d=Mn.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,w]=jt(()=>c?Fo(c):"");Ht(()=>{if(!c)return;w(Fo(c));const e=setInterval(()=>w(Fo(c)),1e3);return()=>clearInterval(e)},[c]);const S=r||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],E=p||v.v2.colors.black[500];return e(Ao,{$gap:16,$alignItems:"center",children:[b?t(bo,{scale:1.7,icon:y}):h?t(co,{percentage:f}):g?t(mo,{scale:m}):null,(n||s||c||i||u)&&e(Ao,{$gap:8,$alignItems:"center",children:[e(No,{$gap:4,children:[i&&t(i,{}),u?t(Mo,{align:"center",size:a,$titleColor:S,$gradientColor:E,nowrap:!0,children:n||"Loading..."}):n?t(Hn,{align:"center",size:a,color:S,children:n}):null]}),s?t(Hn,{align:"center",size:d,color:x,children:s}):null,$?t(Hn,{align:"center",size:d,color:S,children:$}):null]})]})},Bo=(e,t)=>({[Ni.Default]:i=>ee({fill:ro(t,e,"300"),...i}),[Ni.Info]:i=>rt({fill:ro(t,e,"400"),...i}),[Ni.Error]:i=>nt({fill:ro(t,e,"500"),...i}),[Ni.Warning]:i=>it({fill:ro(t,e,"500"),...i}),[Ni.Success]:i=>p({fill:ro(t,e,"500"),...i}),[Ni.Loading]:e=>zo({withSpinnerOld:!0,...e}),[Ni.Disabled]:i=>h({fill:ro(t,e,"400"),...i}),[Ni.Unknown]:i=>tt({fill:ro(t,e,"300"),...i})}[e]),jo=e=>{switch(e){case Mi.Success:return Ni.Success;case Mi.Error:case Mi.Failure:return Ni.Error;case Mi.Notice:return Ni.Warning;case Mi.Unsupported:case Mi.Unknown:return Ni.Info;case Mi.Irrelevant:case Mi.Disabled:return Ni.Disabled;case Mi.Waiting:return Ni.Loading;case Mi.Pending:default:return Ni.Default}},Ho=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Wo={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ce,oracle:J,aws:ot},Xo={sts:bt,dynamodb:ft,s3:W,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ee},Go=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Wo[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Wo[n.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=Xo[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Wo))if(o.includes(e))return t;return ze},Vo=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,region:e.id.region||void 0};const{namespace:t,name:i,kind:n,region:r}=e;return{namespace:t,name:i,kind:n,region:r||void 0}},Ko=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=rr(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&i.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Yo=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Ni.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Jo(e){if(!e||0===e.length)return null;const t=[],i=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",o=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&i.push(a),s&&n.push(s)}return 0===t.length&&0===i.length&&0===n.length?null:{sources:t,namespaces:i,languages:n}}function qo(e){if(!e)return null;const t=[];for(const i of e.sources??[])t.push({workloadName:i.name||null,workloadKind:i.kind||null,workloadNamespace:i.namespace||null});for(const i of e.namespaces??[])t.push({workloadNamespace:i});for(const i of e.languages??[])t.push({workloadLanguage:i});return t.length?t:null}function Qo(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:Jo(t??null)}}function Zo(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:qo(t??null)}}const ea=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ta=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ia=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},na=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ra=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oa=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,aa=e=>oa.test(e),sa=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:Pn(t),reason:i?Pn(i):"",message:n}))||[],la=(e,t)=>{const i=rr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},da=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>en[e]):[],ca=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>en[e]):[],ua=e=>{let t=e.replace(/[^\d.]/g,"");const i=t.indexOf(".");return-1!==i&&(t=t.slice(0,i+1)+t.slice(i+1).replace(/\./g,"")),t},pa=e=>e.replace(/[^\d]/g,""),ha=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ga=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},ma={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},fa={0:"",1:"OK",2:"ERROR"};class ba{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const i=this.buf[this.offset++];if(e|=BigInt(127&i)<<t,!(128&i))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new ba(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const ya=e=>{if(!e||0===e.length)return;let t="";for(let i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t},va=e=>{let t="";for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:if(2!==i.wire){e.skip(i.wire);break}t=e.readString()??"";break;case 2:if(0!==i.wire){e.skip(i.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==i.wire){e.skip(i.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&r.push(va(e))}else n.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=$a(e);t.key&&r.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${r.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readBytes();if(!n)break;const r=ya(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},$a=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire)t.key=e.readString()??void 0;else if(2===i.field&&2===i.wire){const i=e.readMessage();t.value=i?va(i):void 0}else e.skip(i.wire)}return t},wa=(e,t)=>{const i=e.readMessage();if(!i)return;const n=$a(i);void 0===n.key&&void 0===n.value||t.push(n)},Sa=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;2===i.field&&2===i.wire?t.message=e.readString()??void 0:3===i.field&&0===i.wire?t.code=e.readVarintNumber()??void 0:e.skip(i.wire)}return t},xa=e=>{const t={attrs:[]};for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:1===i.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(i.wire);break;case 2:2===i.wire?t.name=e.readString()??void 0:e.skip(i.wire);break;case 3:2===i.wire?wa(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Ea=(e,t,i)=>{const n={attrs:[],events:[],service:t,scope:i};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=ya(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=ya(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=ya(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?n.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?n.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?n.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?n.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?wa(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(xa(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Sa(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ca=e=>{let t;for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const i=e.readMessage();if(!i)continue;const n=$a(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Ta=e=>{let t,i;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?i=e.readString()??void 0:e.skip(n.wire)}if(t)return i?`${t}@${i}`:t},Oa=(e,t)=>{let i;const n=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(i=Ta(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Ea(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Na=e=>{let t;const i=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const i=e.readMessage();i&&(t=Ca(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Oa(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Aa=e=>({key:e.key??null,value:e.value??null}),ka=e=>{if(!e.length)return[];const t=new Map;for(const i of e)i.spanId&&t.set(i.spanId,i);const i=new Map,n=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(r),i.set(e,t)}else n.push(r)}n.sort((e,t)=>{const i=e.startUnixNano??0n,n=t.startUnixNano??0n;return i<n?-1:i>n?1:0});const r=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>r?n-r:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?fa[e.statusCode]??null:null,u=(e.attrs??[]).map(Aa);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,i=t>r?t-r:0n;return{name:e.name??null,offsetMs:Number(i)/1e6,attrs:(e.attrs??[]).map(Aa)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?ma[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const n of i.get(e.spanId??"")??[])a(n,t+1)};for(const t of n.length?n:e)a(t,0);const s=new Set;return o.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},Ia=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const i=(e=>{const t=new ba(e),i=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&i.push(...Na(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:ka(i),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},_a=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const n=(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}}})(i);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Ra=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Ra(e)))}else if("object"==typeof n&&null!==n){const e=Ra(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Da=(e,t=2)=>JSON.stringify(e||{},null,t),La=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Pa=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Ua=oi("v1.33"),Ma=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Fa=(e,t)=>{if(e!==vi.K8s)return!1;const i=oi(t);return i>0&&i<Ua},za=oi("v1.20"),Ba=(e,t)=>{if(e!==vi.K8s)return!0;const i=oi(t);return!(i>0)||i>=za},ja=e=>e?Ma.map(t=>e[t]??null):[],Ha={PID:"process.pid",VPID:"process.vpid"},Wa={[Si.Go]:"Go",[Si.Java]:"Java",[Si.JavaScript]:"Node.js",[Si.Python]:"Python",[Si.DotNet]:".NET",[Si.CSharp]:"C#",[Si.CPlusPlus]:"C++",[Si.Php]:"PHP",[Si.Ruby]:"Ruby",[Si.Rust]:"Rust",[Si.Swift]:"Swift",[Si.Elixir]:"Elixir",[Si.MySql]:"MySQL",[Si.Nginx]:"Nginx",[Si.Postgres]:"PostgreSQL",[Si.Redis]:"Redis",[Si.Kafka]:"Kafka",[Si.Ignored]:"Ignored",[Si.Unknown]:"Unknown",[Si.Processing]:"Processing",[Si.NoContainers]:"No Containers",[Si.NoRunningPods]:"No Running Pods"},Xa=[{id:Si.Go,label:Wa[Si.Go],icon:Rr(Si.Go)},{id:Si.Java,label:Wa[Si.Java],icon:Rr(Si.Java)},{id:Si.JavaScript,label:Wa[Si.JavaScript],icon:Rr(Si.JavaScript)},{id:Si.Python,label:Wa[Si.Python],icon:Rr(Si.Python)},{id:Si.Php,label:Wa[Si.Php],icon:Rr(Si.Php)},{id:Si.Ruby,label:Wa[Si.Ruby],icon:Rr(Si.Ruby)},{id:Si.Rust,label:Wa[Si.Rust],icon:Rr(Si.Rust)},{id:Si.DotNet,label:Wa[Si.DotNet],icon:Rr(Si.DotNet)},{id:Si.CSharp,label:Wa[Si.CSharp],icon:Rr(Si.CSharp)},{id:Si.CPlusPlus,label:Wa[Si.CPlusPlus],icon:Rr(Si.CPlusPlus)},{id:Si.Swift,label:Wa[Si.Swift],icon:Rr(Si.Swift)},{id:Si.Elixir,label:Wa[Si.Elixir],icon:Rr(Si.Elixir)}],Ga={id:Ui.OpentelemetryEbpfInstrumentation,label:Ui.OpentelemetryEbpfInstrumentation,icon:yt},Va={[Si.Go]:{community:[{id:Ui.GolangCommunity,label:Ui.GolangCommunity,icon:Rr(Si.Go)},Ga],enterprise:[{id:Ui.GolangEnterprise,label:Ui.GolangEnterprise,icon:Rr(Si.Go)}]},[Si.JavaScript]:{community:[{id:Ui.NodejsCommunity,label:Ui.NodejsCommunity,icon:Rr(Si.JavaScript)},Ga],enterprise:[{id:Ui.NodejsEnterprise,label:Ui.NodejsEnterprise,icon:Rr(Si.JavaScript)}]},[Si.Python]:{community:[{id:Ui.PythonCommunity,label:Ui.PythonCommunity,icon:Rr(Si.Python)},Ga],enterprise:[{id:Ui.PythonEnterprise,label:Ui.PythonEnterprise,icon:Rr(Si.Python)}]},[Si.Java]:{community:[{id:Ui.JavaCommunity,label:Ui.JavaCommunity,icon:Rr(Si.Java)},Ga],enterprise:[{id:Ui.JavaEnterprise,label:Ui.JavaEnterprise,icon:Rr(Si.Java)},{id:Ui.JavaEbpfInstrumentations,label:Ui.JavaEbpfInstrumentations,icon:Rr(Si.Java)}]},[Si.DotNet]:{community:[{id:Ui.DotNetCommunity,label:Ui.DotNetCommunity,icon:Rr(Si.DotNet)},Ga],enterprise:[{id:Ui.DotNetEnterprise,label:Ui.DotNetEnterprise,icon:Rr(Si.DotNet)}]},[Si.Ruby]:{community:[{id:Ui.RubyCommunity,label:Ui.RubyCommunity,icon:Rr(Si.Ruby)},Ga],enterprise:[{id:Ui.RubyEnterprise,label:Ui.RubyEnterprise,icon:Rr(Si.Ruby)}]},[Si.Php]:{community:[{id:Ui.PhpCommunity,label:Ui.PhpCommunity,icon:Rr(Si.Php)},Ga],enterprise:[]},[Si.CSharp]:{community:[],enterprise:[{id:Ui.CPlusPlusEnterprise,label:Ui.CPlusPlusEnterprise,icon:Rr(Si.CSharp)}]},[Si.MySql]:{community:[],enterprise:[{id:Ui.MySqlEnterprise,label:Ui.MySqlEnterprise,icon:Rr(Si.MySql)}]},[Si.CPlusPlus]:{community:[Ga],enterprise:[]},[Si.Rust]:{community:[Ga],enterprise:[]},[Si.Swift]:{community:[Ga],enterprise:[]},[Si.Elixir]:{community:[Ga],enterprise:[]},[Si.Nginx]:{community:[Ga],enterprise:[]},[Si.Postgres]:{community:[Ga],enterprise:[]},[Si.Redis]:{community:[Ga],enterprise:[]},[Si.Kafka]:{community:[Ga],enterprise:[]},[Si.Ignored]:{community:[],enterprise:[]},[Si.Unknown]:{community:[Ga],enterprise:[]},[Si.Processing]:{community:[],enterprise:[]},[Si.NoContainers]:{community:[],enterprise:[]},[Si.NoRunningPods]:{community:[],enterprise:[]}},Ka="*",Ya=e=>!!e?.includes(Ka),Ja=e=>e?.length?Ya(e)?[Ka]:e:[],qa=e=>{if(e?.length&&!Ya(e))return e.filter(e=>e!==Ka)},Qa=e=>e===Ka?"All languages":Wa[e]??e,Za=e=>e===Ka?vt:Rr(e),es=oi("v1.26"),ts=(e,t)=>{if(e!==vi.K8s)return!1;const i=oi(t);return!(i>0)||i>=es},is=[Fi.NetworkMetrics],ns=e=>!is.includes(e),rs=[{type:Fi.CodeAttributes,icon:Gr(Fi.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[Si.Go,Si.Python,Si.JavaScript]},{type:Fi.CustomInstrumentation,icon:Gr(Fi.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[Si.Go,Si.Java,Si.Php]},{type:Fi.HeadersCollection,icon:Gr(Fi.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[Si.Go,Si.Java,Si.JavaScript]},{type:Fi.PayloadCollection,icon:Gr(Fi.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[Si.Go,Si.JavaScript]}],os=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Gr(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},as="Recommendations",ss="Optimize your observability setup with actionable recommendations.",ls="Recommended",ds="Applied",cs="Dismissed",us="Not applicable",ps={[wn.Recommended]:ls,[wn.Applied]:ds,[wn.Dismissed]:cs,[wn.NotApplicable]:us},hs="Accept",gs="Dismiss",ms="Restore",fs="Docs",bs="Benefits",ys="Considerations",vs="Apply Recommendation",$s="Apply via UI",ws="Apply via GitOps",Ss="Via UI",xs="Via GitOps",Es="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Cs="There are 2 ways to apply this recommendation.",Ts="Odigos applies the selected change immediately.",Os="Commit the configuration to your repository and let your GitOps controller apply it.",Ns="UI changes apply only to this cluster and will not carry over if you re-install odigos.",As="No recommendations",ks="There are no recommendations for this cluster right now.",Is="This recommendation does not currently apply to your cluster.",_s="Recommendation dismissed",Rs="Recommendation restored",Ds="Recommendation applied successfully",Ls="Failed to apply recommendation",Ps={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.'},Us={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."},Ms={[gi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[gi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[gi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Fs="Cancel",zs="Save",Bs="Edit rule",js="Edit auto rule",Hs="Create rule",Ws="Delete rule",Xs="Save",Gs="Create your first rule",Vs="No Rules Exist",Ks="No Results",Ys=e=>`No rules match the search term "${e}"`,Js="Rule name",qs="Rule type",Qs="Select the type of condition that makes a trace highly relevant.",Zs="Rule Enabled",el="Rule Disabled",tl="Enabled",il="Disabled",nl="Note",rl="HTTP route",ol="Method",al="Keep Percentage",sl="Keep traces with duration larger than",ll="Keep traces with errors",dl="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",cl="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",ul="Custom percentage",pl="Disabled rule",hl="Sample",gl="Keep all",ml="Drop all",fl="Operation type",bl="HTTP route prefix",yl="Templated path",vl="Templated path prefix",$l="Kafka topic",wl="Custom duration (ms)",Sl="No preview available",xl="Server address",El="Drop at most this percentage of matching traces",Cl="Unnamed rule",Tl="Sampling Preview",Ol="Source Scope",Nl="Unknown source",Al="Operation",kl="Duration",Il="Errors",_l="Keep Percentage",Rl="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Dl="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.",Ll="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Pl="Retain traces with errors from the selected services and operations.",Ul="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Ml="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Fl={highlyRelevant:Ul,noisy:Ml,costReduction:void 0},zl="Type rule name",Bl="Add note here...",jl="Type here",Hl="Search source name",Wl="e.g. collector.my.vendor.com",Xl="Optional notes (not used by the system). Add any context or details for this sampling rule.",Gl="Rule will apply to all sources in the cluster",Vl="If multiple source scopes are set, they must all match simultaneously.",Kl="All sources",Yl="-",Jl="All",ql="Sources",Ql="Namespaces",Zl="Languages",ed="any of",td="AND",id="All operations",nd="HTTP server endpoint",rd="HTTP client endpoint",od="Kafka consumer",ad="Kafka producer",sd="Sampling Rules",ld='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',dd="Refresh",cd="Create rule",ud="Sampling docs",pd="75vw",hd="Delete rule?",gd="Are you sure you want to delete this sampling rule?",md="Delete",fd="Cancel",bd="Kubernetes Health Probes",yd="Keep All Error Traces",vd="Drop Traces Cluster-Wide",$d="A rule with the same matching conditions already exists.",wd="Create this rule as-is?",Sd="This rule still uses the default configuration.\nDo you want to create it anyway?",xd="Rule preview",Ed="Continue editing",Cd="Create 'Noisy Operation Kubernetes Health Probes' rule",Td="Edit 'Noisy Operation Kubernetes Health Probes' rule",Od="Automatically detect and sample health probe traces across the cluster.",Nd="Create 'Highly Relevant Operations' rule",Ad="Edit 'Highly Relevant Operations' rule",kd="Automatically keep all error traces across the entire cluster.",Id="Create 'Cost Reduction' rule",_d="Edit 'Cost Reduction' rule",Rd="Automatically drop a percentage of traces across the entire cluster.",Dd="Skip setup",Ld="Start setup",Pd="Next",Ud="Go to Sampling",Md="Read more",Fd="Welcome to Sampling",zd="Cut costs without losing what matters",Bd="Odigos sampling works in three stages:",jd="Filter noisy traffic",Hd="Remove non-actionable traces like health checks.",Wd="Guarantee highly relevance operations",Xd="Keep traces with errors, high latency, or mission-critical endpoints/services.",Gd="Reduce cost",Vd="Sample routine traffic using percentages.",Kd="Sampling does not drop individual spans - it keeps or drops the entire trace.",Yd="Filter noisy operations",Jd="Cut traces with little or no observability value (health-checks, metric scarping, etc)",qd="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.",Qd="Preset Rules",Zd="Kubernetes Health Probes",ec="Automatically ignore health checks",tc="You can review, adjust, and add additional custom rules later.",ic="Choose your sampling strategy",nc="Pick the approach that best fits your balance of cost vs data-completeness",rc="Keep List",oc="Budget Friendly",ac="Define which traces must be kept, while all others are sampled by default to minimize cost.",sc="Cost-oriented - keeps only what you explicitly select.",lc="Best for very large clusters with high volumes of traces and high costs.",dc="Higher risk of missing important traces without ongoing review.",cc="Drop List",uc="Safe Choice",pc="Define which traces must be aggressively dropped, while all others are kept by default.",hc="Preserves most data unless explicitly filtered.",gc="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",mc="Advanced",fc="Maximum Flexibility",bc="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",yc="'Keep List' profile",vc="Protect important traces",$c="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:",wc="Traces with errors",Sc="Slow requests (duration above threshold)",xc="Mission-Critical endpoints or services",Ec="Services under test or evaluation",Cc="New deployments",Tc="You can review, adjust, and add rules once onboarding is complete.",Oc="Common Rules",Nc="Preset Rules",Ac="Error collection - entire cluster",kc="Keep all traces with errors",Ic="Ambient sampling percentage",_c="'Drop List' profile",Rc="Reduce high-volume traffic",Dc="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.",Lc="Advanced Configuration",Pc="Configure sampling rules",Uc="Advanced mode allows you to configure all sampling categories:",Mc="Noise Filtering - remove non-actionable traces",Fc="Highly Relevance - guarantee important traces are kept",zc='Cost Control - drop traces for "Normal" operations',Bc="Rules can target:",jc="Services",Hc="HTTP Endpoints",Wc="DB Operations",Xc="Errors",Gc="Latency and more...",Vc="Sampling configured successfully!",Kc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Yc="Odigos will now:",Jc="Filter noisy operations",qc="Guarantee important traces",Qc="Reduce cost using controlled sampling",Zc="Recommended",eu={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."},tu={noisy:Cd,highlyRelevant:Nd,costReduction:Id},iu={noisy:Td,highlyRelevant:Ad,costReduction:_d},nu={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ru=[{id:Ki.Logs,value:"Logs"},{id:Ki.Metrics,value:"Metrics"},{id:Ki.Traces,value:"Traces"},{id:Ki.Profiles,value:"Profiles"}],ou=6048e5,au="URL templatization",su="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",lu="Default templatization",du="Custom and default URL templatization scopes across URL templatization actions.",cu="Default templatization is not enabled",uu="Automatically detect and templatize dynamic URL segments when no custom template matches.",pu="Enable for entire cluster",hu="Custom URL templates",gu="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",mu="View by:",fu="Groups",bu="Tree",yu="List",vu="Create templating scope",$u="Edit scoped templates",wu="Edit",Su="Add template",xu="Add templatization rules",Eu="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Cu="Add templatization rule",Tu="Choose how to templatize dynamic URLs",Ou="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Nu="Before",Au="After",ku="/users/123/orders/456",Iu="/users/{id}/orders/{orderId}",_u="Automatic templatization",Ru="Recommended",Du="Detect and templatize dynamic URL segments when no custom rule matches.",Lu="Applies to: Entire cluster",Pu="Reversible at any time",Uu="Enabled",Mu="Need more control?",Fu="Create a custom rule for specific URL patterns.",zu="Create custom rule",Bu="Learn how it works",ju="Docs",Hu="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Wu="Default templatization is enabled — editor coming next.",Xu="746px",Gu="Add default templatization rule",Vu="Edit default templatization rule",Ku="Disable for a scope",Yu="UI template rules",Ju="Source Scope",qu="Scope",Qu="Choose which sources this template rule applies to.",Zu="Sources where this template is tested and applied.",ep="This rule will apply to all sources in the cluster.",tp="Default templatization",ip="Automatically templatize dynamic URL segments when no custom template matches.",np="Enable automatic URL templatization for this scope",rp=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],op="default templatization for this scope",ap="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",sp="Disable",lp="Skip policy",dp="Advanced",cp=["On public-facing services, bots and scanners often probe random paths that return errors such as 404. Applying default templatization to those paths can create high-cardinality routes.","Custom templates still match first. Skip policy only affects the default heuristic when no custom rule matched.","Choose either all non-2xx responses or specific status codes — not both."],up=cp.join(" "),pp="Skip default templatization for all non-2xx responses",hp="Skip default templatization for specific HTTP status codes",gp="Example: 404, 401",mp="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",fp="This rule will take effect in the cluster immediately after it is added.",bp="This rule will take effect in the cluster immediately after it is saved.",yp="No template changes. Save will keep the current templates.";function vp(e,t){const i=[];return e>0&&i.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&i.push(1===t?"1 template will be removed":`${t} templates will be removed`),i.length?`On Save, ${i.join(" and ")}. Changes take effect immediately.`:yp}const $p="Add rule",wp="Save",Sp="Cancel",xp="Cancel without saving",Ep="Delete",Cp="templating scope";function Tp(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const Op="Enter valid HTTP status codes between 100 and 599, separated by commas.",Np="Create custom template",Ap="Create new scoped template",kp="Add URL templates",Ip="UI template rules",_p=e=>`To ${e}`,Rp=e=>`Applies to ${e} source${1===e?"":"s"}`,Dp=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Lp=e=>`Applies to ${e} language${1===e?"":"s"}`,Pp="Applies to entire cluster",Up=e=>`Applies to ${e} scope${1===e?"":"s"}`,Mp="Where should this rule apply?",Fp=Mp,zp="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Bp="Specific scope",jp="Entire cluster",Hp="Apply the rule only where it is needed.",Wp="Apply to every source in this cluster.",Xp="Quick start",Gp="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Vp="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Kp="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Yp="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",Jp="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",qp="Add to existing template group",Qp="Create new template group",Zp="Add here",eh="Create New",th="Existing templating scope",ih="Templating scopes",nh="Select where to add the new template",rh="A template group already uses this scope",oh="Choose where to add the new templates.",ah="Add to existing template group",sh="Create a separate template group",lh="Use different settings or behavior for the same scope.",dh="View action settings",ch="Default settings",uh=e=>th,ph=e=>1===e?"1 template":`${e} templates`,hh="Templating scope",gh=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,mh="Template group will be added to the default action. Expand Select action to choose a different one.",fh="Select action",bh="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",yh="Advanced settings",vh="Default UI-managed action · Recommended",$h="Create a new action",wh="Select action",Sh="Default UI-managed action",xh="Add this template group to the default UI-managed action.",Eh="Select action",Ch="Choose an existing action or create a new one for this template group.",Th="Search template group by type action name or scope (languages, namespaces, sources)",Oh="Selected Template group:",Nh="URL templatization action",Ah="Create new action",kh="__odigos_create_new_url_templatization_action__",Ih=Ch,_h="New action name",Rh="New action group",Dh="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",Lh="Create new template group",Ph="Next",Uh="Back",Mh="Action name",Fh="Action",zh="UI template rules",Bh="__odigos_default_url_templatization_action__",jh="UI-owned",Hh="Externally synced",Wh=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Xh=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Gh=jh,Vh="Templates",Kh="Other templates in this group",Yh="Additional templates that share the same source scope and Action as this rule.",Jh="e.g. /api/users/{id}",qh="Language",Qh="Namespace",Zh="Source",eg="AND",tg="Entire cluster",ig="Unset",ng="Enabled globally",rg="Default templating disabled",og="Enabled",ag="Default templatization is unset. No default rules are configured on an enabled action.",sg="Default templatization is enabled globally.",lg="Default templatization is disabled for the entire cluster.";function dg(e){return e<=0?sg:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const cg="Disabled for these scopes",ug="Disable for a scope",pg="Delete",hg="disabled scope",gg="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",mg="Automatic templatization",fg="Active",bg="Custom and default URL templatization scopes across URL templatization actions.",yg="Custom templates take precedence over automatic templatization.",vg="Scope",$g="Status codes",wg="Disabled",Sg="Entire cluster",xg="All",Eg="None",Cg="Disabled",Tg="No disabled scope configured",Og="Add disabled",Ng="Disabled scopes",Ag="Advanced",kg=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Ig="Automatic templatization off for matching traffic.",_g="Disable for a scope",Rg="Scope",Dg="Effective behavior",Lg="Status",Pg="Automatic templatization off",Ug="Covered by broader exception",Mg="Disabled",Fg="Redundant",zg="No disabled scope configured",Bg="Disable automatic templatization for specific scopes when needed.",jg=(e,t)=>`${e} configured • ${t} effective`,Hg=e=>1===e?"1 scope":`${e} scopes`,Wg="Default templatization is enabled for all HTTP status codes.";function Xg(e){return e<=0?Wg:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Gg="HTTP status code policies",Vg="No skip policy configured",Kg="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Yg="Add skip policy for a scope",Jg="Add skip policy for a scope",qg="Skip default templatization on HTTP errors",Qg="Delete",Zg="skip policy",em="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",tm="Template details",im="Template",nm="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",rm="Created via",om="Action name",am="Kubernetes name",sm="Odigos Action (Kubernetes resource) where this template is managed.",lm="Try a URL",dm="/users/12/orders/345685335358",cm="Test URL",um="Close",pm="Result",hm="Templated URL path",gm="Match found",mm="This URL matches the template.",fm="No match",bm="This URL doesn't match the template.",ym="Check the URL structure and parameter positions, then try again.",vm=Ft()(ti(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Kn.DARK_MODE,storage:"undefined"!=typeof window?ii(()=>localStorage):void 0})),$m={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Xn},wm=Ft(e=>({...$m,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e($m)}));var Sm;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Sm||(Sm={}));const xm=e=>`add-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Em=e=>`edit-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Cm=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Tm=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Om=Ft(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}),regions:[],setRegions:t=>e({regions: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}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Tm})),Nm=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Am;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Am||(Am={}));const km=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Im=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),_m=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=km();return"number"==typeof n.total&&(o.total=n.total),"number"==typeof n.current&&(o.current=n.current),Array.isArray(n.list)&&(o.list=n.list),e({progress:{...r.progress,[i]:Im(o)}})},addProgress:(i,n,r)=>{const o=t(),a=km(i,o.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...o.progress,[i]:Im(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Rm=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Dm={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Lm=(e,t)=>e.destinationType.type!==t.destinationType.type,Pm=Ft(e=>({...Dm,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=>Lm(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Lm(e,t))})),clearStore:()=>e(()=>({...Dm}))})),Um=e=>{function t(){return void 0===e?{}:fr(e)}const[i,n]=jt(t()),[r,o]=jt({}),[a,s]=jt(t()),l=Wt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Xt(()=>!d(a,i),[a,i]);Ht(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Wt((e,t)=>br("formData"===e?i:r,t.toString()),[i,r]);return{formData:i,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),r=i.split(".");1===r.length?n(i=>({...i,[e]:t})):n(e=>{const i=fr(e);let n=i;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,i}),o(e=>{const t=i,n=r[r.length-1],o=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!o&&!a)return e;const s={...e};return o&&delete s[t],a&&delete s[n],s})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?o(i=>({...i,[e]:t})):o(e=>{const n=fr(e);let r=n;for(let e=0;e<i.length-1;e++){const t=i[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[i[i.length-1]]=t,n})}else i&&o({...i})},resetFormData:e=>{const i=e||t();n(i),s(i),o({})},getNestedValue:u}},Mm={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Fm=()=>{const{addNotification:e}=Nm(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=Um(Mm);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:o,validateForm:i=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ea(t)&&(n[e]=Yn.FIELD_IS_REQUIRED)}}),t.type===ai.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Yn.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Ni.Warning,title:i.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:r,disabled:o,fields:a})=>{const s={...fr(Mm),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case li.LabelsAttributes:case li.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case li.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(n=t,n?.length?n.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):n);break;case li.CollectContainerAttributes:case li.CollectReplicaSetAttributes:case li.CollectWorkloadId:case li.CollectClusterId:case li.ClusterAttributes:case li.OverwriteExistingValues:case li.AttributeNamesToDelete:case li.Renames:case li.PiiCategories:case li.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},zm=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Bm=()=>{const e=Gt(null),[t,i]=jt(0),[n,r]=jt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},jm="data-ignore-outside-click",Hm=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(jm))return!0;t=t.parentNode}return!1},Wm=(e,t)=>{const i=Gt(t);i.current=t,Ht(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Hm(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Xm=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Gt(null),[o,a]=jt(!1),[s,l]=jt({top:0,left:0}),[d,c]=jt({edge:"top",align:"left"});return Wm(r,()=>{o&&(a(!1),i?.())}),{popupRef:r,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(i,o)=>{if("local"===n)return void l({top:o,left:i});const{innerWidth:a,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=i;if(g>=s/2&&(g+=-u),"center"===h){m=i-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=i-d);l({top:g,left:m})}}},Gm=n.div`
195
+ animation: ${Fl} 1s reverse linear infinite;
196
+ `,Bl=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),r=i%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},jl=({icon:i,title:n,titleColor:r,titleSize:a=Ba.S,subTitle:s,subTitleColor:l,subTitleSize:d=Ba.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=et})=>{const v=o(),[w,$]=jt(()=>c?Bl(c):"");Ht(()=>{if(!c)return;$(Bl(c));const e=setInterval(()=>$(Bl(c)),1e3);return()=>clearInterval(e)},[c]);const S=r||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(Il,{$gap:16,$alignItems:"center",children:[y?t(vl,{scale:1.7,icon:b}):h?t(pl,{percentage:f}):g?t(yl,{scale:m}):null,(n||s||c||i||u)&&e(Il,{$gap:8,$alignItems:"center",children:[e(kl,{$gap:4,children:[i&&t(i,{}),u?t(zl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Ga,{align:"center",size:a,color:S,children:n}):null]}),s?t(Ga,{align:"center",size:d,color:x,children:s}):null,w?t(Ga,{align:"center",size:d,color:S,children:w}):null]})]})},Hl=(e,t)=>({[Ai.Default]:i=>ee({fill:sl(t,e,"300"),...i}),[Ai.Info]:i=>rt({fill:sl(t,e,"400"),...i}),[Ai.Error]:i=>nt({fill:sl(t,e,"500"),...i}),[Ai.Warning]:i=>it({fill:sl(t,e,"500"),...i}),[Ai.Success]:i=>p({fill:sl(t,e,"500"),...i}),[Ai.Loading]:e=>jl({withSpinnerOld:!0,...e}),[Ai.Disabled]:i=>h({fill:sl(t,e,"400"),...i}),[Ai.Unknown]:i=>tt({fill:sl(t,e,"300"),...i})}[e]),Xl=e=>{switch(e){case Mi.Success:return Ai.Success;case Mi.Error:case Mi.Failure:return Ai.Error;case Mi.Notice:return Ai.Warning;case Mi.Unsupported:case Mi.Unknown:return Ai.Info;case Mi.Irrelevant:case Mi.Disabled:return Ai.Disabled;case Mi.Waiting:return Ai.Loading;case Mi.Pending:default:return Ai.Default}},Wl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Gl={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:Ee,oracle:J,aws:ot},Vl={sts:yt,dynamodb:ft,s3:X,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Kl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Gl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Gl[n.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=Vl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Gl))if(o.includes(e))return t;return ze},Yl=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,region:e.id.region||void 0};const{namespace:t,name:i,kind:n,region:r}=e;return{namespace:t,name:i,kind:n,region:r||void 0}},Jl=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ss(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&i.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},ql=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Ai.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Ql(e){if(!e||0===e.length)return null;const t=[],i=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",o=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&i.push(a),s&&n.push(s)}return 0===t.length&&0===i.length&&0===n.length?null:{sources:t,namespaces:i,languages:n}}function Zl(e){if(!e)return null;const t=[];for(const i of e.sources??[])t.push({workloadName:i.name||null,workloadKind:i.kind||null,workloadNamespace:i.namespace||null});for(const i of e.namespaces??[])t.push({workloadNamespace:i});for(const i of e.languages??[])t.push({workloadLanguage:i});return t.length?t:null}function ed(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:Ql(t??null)}}function td(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:Zl(t??null)}}const id=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),nd=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),rd=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},od=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ad=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,sd=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,ld=e=>sd.test(e),dd=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:Fa(t),reason:i?Fa(i):"",message:n}))||[],cd=(e,t)=>{const i=ss(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},ud=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>en[e]):[],pd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>en[e]):[],hd=e=>{let t=e.replace(/[^\d.]/g,"");const i=t.indexOf(".");return-1!==i&&(t=t.slice(0,i+1)+t.slice(i+1).replace(/\./g,"")),t},gd=e=>e.replace(/[^\d]/g,""),md=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},fd=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},yd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},bd={0:"",1:"OK",2:"ERROR"};class vd{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const i=this.buf[this.offset++];if(e|=BigInt(127&i)<<t,!(128&i))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new vd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const wd=e=>{if(!e||0===e.length)return;let t="";for(let i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t},$d=e=>{let t="";for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:if(2!==i.wire){e.skip(i.wire);break}t=e.readString()??"";break;case 2:if(0!==i.wire){e.skip(i.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==i.wire){e.skip(i.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&r.push($d(e))}else n.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=Sd(e);t.key&&r.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${r.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readBytes();if(!n)break;const r=wd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Sd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire)t.key=e.readString()??void 0;else if(2===i.field&&2===i.wire){const i=e.readMessage();t.value=i?$d(i):void 0}else e.skip(i.wire)}return t},xd=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Sd(i);void 0===n.key&&void 0===n.value||t.push(n)},Cd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;2===i.field&&2===i.wire?t.message=e.readString()??void 0:3===i.field&&0===i.wire?t.code=e.readVarintNumber()??void 0:e.skip(i.wire)}return t},Ed=e=>{const t={attrs:[]};for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:1===i.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(i.wire);break;case 2:2===i.wire?t.name=e.readString()??void 0:e.skip(i.wire);break;case 3:2===i.wire?xd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Td=(e,t,i)=>{const n={attrs:[],events:[],service:t,scope:i};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=wd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=wd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=wd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?n.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?n.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?n.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?n.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?xd(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Ed(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Cd(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Od=e=>{let t;for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const i=e.readMessage();if(!i)continue;const n=Sd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Ad=e=>{let t,i;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?i=e.readString()??void 0:e.skip(n.wire)}if(t)return i?`${t}@${i}`:t},Nd=(e,t)=>{let i;const n=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(i=Ad(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Td(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},kd=e=>{let t;const i=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const i=e.readMessage();i&&(t=Od(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Nd(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Id=e=>({key:e.key??null,value:e.value??null}),Dd=e=>{if(!e.length)return[];const t=new Map;for(const i of e)i.spanId&&t.set(i.spanId,i);const i=new Map,n=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(r),i.set(e,t)}else n.push(r)}n.sort((e,t)=>{const i=e.startUnixNano??0n,n=t.startUnixNano??0n;return i<n?-1:i>n?1:0});const r=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>r?n-r:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?bd[e.statusCode]??null:null,u=(e.attrs??[]).map(Id);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,i=t>r?t-r:0n;return{name:e.name??null,offsetMs:Number(i)/1e6,attrs:(e.attrs??[]).map(Id)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?yd[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const n of i.get(e.spanId??"")??[])a(n,t+1)};for(const t of n.length?n:e)a(t,0);const s=new Set;return o.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},_d=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const i=(e=>{const t=new vd(e),i=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&i.push(...kd(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Dd(i),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Rd=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const n=(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}}})(i);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Ld=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Ld(e)))}else if("object"==typeof n&&null!==n){const e=Ld(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Pd=(e,t=2)=>JSON.stringify(e||{},null,t),Ud=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Md=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Fd=oi("v1.33"),zd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Bd=(e,t)=>{if(e!==vi.K8s)return!1;const i=oi(t);return i>0&&i<Fd},jd=oi("v1.20"),Hd=(e,t)=>{if(e!==vi.K8s)return!0;const i=oi(t);return!(i>0)||i>=jd},Xd=e=>e?zd.map(t=>e[t]??null):[],Wd={PID:"process.pid",VPID:"process.vpid"},Gd={[Si.Go]:"Go",[Si.Java]:"Java",[Si.JavaScript]:"Node.js",[Si.Python]:"Python",[Si.DotNet]:".NET",[Si.CSharp]:"C#",[Si.CPlusPlus]:"C++",[Si.Php]:"PHP",[Si.Ruby]:"Ruby",[Si.Rust]:"Rust",[Si.Swift]:"Swift",[Si.Elixir]:"Elixir",[Si.MySql]:"MySQL",[Si.Nginx]:"Nginx",[Si.Postgres]:"PostgreSQL",[Si.Redis]:"Redis",[Si.Kafka]:"Kafka",[Si.Ignored]:"Ignored",[Si.Unknown]:"Unknown",[Si.Processing]:"Processing",[Si.NoContainers]:"No Containers",[Si.NoRunningPods]:"No Running Pods"},Vd=[{id:Si.Go,label:Gd[Si.Go],icon:Ps(Si.Go)},{id:Si.Java,label:Gd[Si.Java],icon:Ps(Si.Java)},{id:Si.JavaScript,label:Gd[Si.JavaScript],icon:Ps(Si.JavaScript)},{id:Si.Python,label:Gd[Si.Python],icon:Ps(Si.Python)},{id:Si.Php,label:Gd[Si.Php],icon:Ps(Si.Php)},{id:Si.Ruby,label:Gd[Si.Ruby],icon:Ps(Si.Ruby)},{id:Si.Rust,label:Gd[Si.Rust],icon:Ps(Si.Rust)},{id:Si.DotNet,label:Gd[Si.DotNet],icon:Ps(Si.DotNet)},{id:Si.CSharp,label:Gd[Si.CSharp],icon:Ps(Si.CSharp)},{id:Si.CPlusPlus,label:Gd[Si.CPlusPlus],icon:Ps(Si.CPlusPlus)},{id:Si.Swift,label:Gd[Si.Swift],icon:Ps(Si.Swift)},{id:Si.Elixir,label:Gd[Si.Elixir],icon:Ps(Si.Elixir)}],Kd={id:Ui.OpentelemetryEbpfInstrumentation,label:Ui.OpentelemetryEbpfInstrumentation,icon:bt},Yd={[Si.Go]:{community:[{id:Ui.GolangCommunity,label:Ui.GolangCommunity,icon:Ps(Si.Go)},Kd],enterprise:[{id:Ui.GolangEnterprise,label:Ui.GolangEnterprise,icon:Ps(Si.Go)}]},[Si.JavaScript]:{community:[{id:Ui.NodejsCommunity,label:Ui.NodejsCommunity,icon:Ps(Si.JavaScript)},Kd],enterprise:[{id:Ui.NodejsEnterprise,label:Ui.NodejsEnterprise,icon:Ps(Si.JavaScript)}]},[Si.Python]:{community:[{id:Ui.PythonCommunity,label:Ui.PythonCommunity,icon:Ps(Si.Python)},Kd],enterprise:[{id:Ui.PythonEnterprise,label:Ui.PythonEnterprise,icon:Ps(Si.Python)}]},[Si.Java]:{community:[{id:Ui.JavaCommunity,label:Ui.JavaCommunity,icon:Ps(Si.Java)},Kd],enterprise:[{id:Ui.JavaEnterprise,label:Ui.JavaEnterprise,icon:Ps(Si.Java)},{id:Ui.JavaEbpfInstrumentations,label:Ui.JavaEbpfInstrumentations,icon:Ps(Si.Java)}]},[Si.DotNet]:{community:[{id:Ui.DotNetCommunity,label:Ui.DotNetCommunity,icon:Ps(Si.DotNet)},Kd],enterprise:[{id:Ui.DotNetEnterprise,label:Ui.DotNetEnterprise,icon:Ps(Si.DotNet)}]},[Si.Ruby]:{community:[{id:Ui.RubyCommunity,label:Ui.RubyCommunity,icon:Ps(Si.Ruby)},Kd],enterprise:[{id:Ui.RubyEnterprise,label:Ui.RubyEnterprise,icon:Ps(Si.Ruby)}]},[Si.Php]:{community:[{id:Ui.PhpCommunity,label:Ui.PhpCommunity,icon:Ps(Si.Php)},Kd],enterprise:[]},[Si.CSharp]:{community:[],enterprise:[{id:Ui.CPlusPlusEnterprise,label:Ui.CPlusPlusEnterprise,icon:Ps(Si.CSharp)}]},[Si.MySql]:{community:[],enterprise:[{id:Ui.MySqlEnterprise,label:Ui.MySqlEnterprise,icon:Ps(Si.MySql)}]},[Si.CPlusPlus]:{community:[Kd],enterprise:[]},[Si.Rust]:{community:[Kd],enterprise:[]},[Si.Swift]:{community:[Kd],enterprise:[]},[Si.Elixir]:{community:[Kd],enterprise:[]},[Si.Nginx]:{community:[Kd],enterprise:[]},[Si.Postgres]:{community:[Kd],enterprise:[]},[Si.Redis]:{community:[Kd],enterprise:[]},[Si.Kafka]:{community:[Kd],enterprise:[]},[Si.Ignored]:{community:[],enterprise:[]},[Si.Unknown]:{community:[Kd],enterprise:[]},[Si.Processing]:{community:[],enterprise:[]},[Si.NoContainers]:{community:[],enterprise:[]},[Si.NoRunningPods]:{community:[],enterprise:[]}},Jd="*",qd=e=>!!e?.includes(Jd),Qd=e=>e?.length?qd(e)?[Jd]:e:[],Zd=e=>{if(e?.length&&!qd(e))return e.filter(e=>e!==Jd)},ec=e=>e===Jd?"All languages":Gd[e]??e,tc=e=>e===Jd?vt:Ps(e),ic=oi("v1.26"),nc=(e,t)=>{if(e!==vi.K8s)return!1;const i=oi(t);return!(i>0)||i>=ic},rc=[Fi.NetworkMetrics],oc=e=>!rc.includes(e),ac=[{type:Fi.CodeAttributes,icon:Ys(Fi.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[Si.Go,Si.Python,Si.JavaScript]},{type:Fi.CustomInstrumentation,icon:Ys(Fi.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[Si.Go,Si.Java,Si.Php]},{type:Fi.HeadersCollection,icon:Ys(Fi.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[Si.Go,Si.Java,Si.JavaScript]},{type:Fi.PayloadCollection,icon:Ys(Fi.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[Si.Go,Si.JavaScript]}],sc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Ys(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},lc="Recommendations",dc="Optimize your observability setup with actionable recommendations.",cc="Recommended",uc="Applied",pc="Dismissed",hc="Not applicable",gc={[Sn.Recommended]:cc,[Sn.Applied]:uc,[Sn.Dismissed]:pc,[Sn.NotApplicable]:hc},mc="Accept",fc="Dismiss",yc="Restore",bc="Docs",vc="Benefits",wc="Considerations",$c="Apply Recommendation",Sc="Apply via UI",xc="Apply via GitOps",Cc="Via UI",Ec="Via GitOps",Tc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Oc="There are 2 ways to apply this recommendation.",Ac="Odigos applies the selected change immediately.",Nc="Commit the configuration to your repository and let your GitOps controller apply it.",kc="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Ic="No recommendations",Dc="There are no recommendations for this cluster right now.",_c="This recommendation does not currently apply to your cluster.",Rc="Recommendation dismissed",Lc="Recommendation restored",Pc="Recommendation applied successfully",Uc="Failed to apply recommendation",Mc={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.'},Fc={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."},zc={[gi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[gi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[gi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Bc="Cancel",jc="Save",Hc="Edit rule",Xc="Edit auto rule",Wc="Create rule",Gc="Delete rule",Vc="Save",Kc="Create your first rule",Yc="No Rules Exist",Jc="No Results",qc=e=>`No rules match the search term "${e}"`,Qc="Rule name",Zc="Rule type",eu="Select the type of condition that makes a trace highly relevant.",tu="Rule Enabled",iu="Rule Disabled",nu="Enabled",ru="Disabled",ou="Note",au="HTTP route",su="Method",lu="Keep Percentage",du="Keep traces with duration larger than",cu="Keep traces with errors",uu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",pu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",hu="Custom percentage",gu="Disabled rule",mu="Sample",fu="Keep all",yu="Drop all",bu="Operation type",vu="HTTP route prefix",wu="Templated path",$u="Templated path prefix",Su="Kafka topic",xu="Custom duration (ms)",Cu="No preview available",Eu="Server address",Tu="Drop at most this percentage of matching traces",Ou="Unnamed rule",Au="Sampling Preview",Nu="Source Scope",ku="Unknown source",Iu="Operation",Du="Duration",_u="Errors",Ru="Keep Percentage",Lu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Pu="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.",Uu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Mu="Retain traces with errors from the selected services and operations.",Fu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",zu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Bu={highlyRelevant:Fu,noisy:zu,costReduction:void 0},ju="Type rule name",Hu="Add note here...",Xu="Type here",Wu="Search source name",Gu="e.g. collector.my.vendor.com",Vu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ku="Rule will apply to all sources in the cluster",Yu="If multiple source scopes are set, they must all match simultaneously.",Ju="All sources",qu="-",Qu="All",Zu="Sources",ep="Namespaces",tp="Languages",ip="any of",np="AND",rp="All operations",op="HTTP server endpoint",ap="HTTP client endpoint",sp="Kafka consumer",lp="Kafka producer",dp="Sampling Rules",cp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',up="Refresh",pp="Create rule",hp="Sampling docs",gp="75vw",mp="Delete rule?",fp="Are you sure you want to delete this sampling rule?",yp="Delete",bp="Cancel",vp="Kubernetes Health Probes",wp="Keep All Error Traces",$p="Drop Traces Cluster-Wide",Sp="A rule with the same matching conditions already exists.",xp="Create this rule as-is?",Cp="This rule still uses the default configuration.\nDo you want to create it anyway?",Ep="Rule preview",Tp="Continue editing",Op="Create 'Noisy Operation Kubernetes Health Probes' rule",Ap="Edit 'Noisy Operation Kubernetes Health Probes' rule",Np="Automatically detect and sample health probe traces across the cluster.",kp="Create 'Highly Relevant Operations' rule",Ip="Edit 'Highly Relevant Operations' rule",Dp="Automatically keep all error traces across the entire cluster.",_p="Create 'Cost Reduction' rule",Rp="Edit 'Cost Reduction' rule",Lp="Automatically drop a percentage of traces across the entire cluster.",Pp="Skip setup",Up="Start setup",Mp="Next",Fp="Go to Sampling",zp="Read more",Bp="Welcome to Sampling",jp="Cut costs without losing what matters",Hp="Odigos sampling works in three stages:",Xp="Filter noisy traffic",Wp="Remove non-actionable traces like health checks.",Gp="Guarantee highly relevance operations",Vp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Kp="Reduce cost",Yp="Sample routine traffic using percentages.",Jp="Sampling does not drop individual spans - it keeps or drops the entire trace.",qp="Filter noisy operations",Qp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Zp="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.",eh="Preset Rules",th="Kubernetes Health Probes",ih="Automatically ignore health checks",nh="You can review, adjust, and add additional custom rules later.",rh="Choose your sampling strategy",oh="Pick the approach that best fits your balance of cost vs data-completeness",ah="Keep List",sh="Budget Friendly",lh="Define which traces must be kept, while all others are sampled by default to minimize cost.",dh="Cost-oriented - keeps only what you explicitly select.",ch="Best for very large clusters with high volumes of traces and high costs.",uh="Higher risk of missing important traces without ongoing review.",ph="Drop List",hh="Safe Choice",gh="Define which traces must be aggressively dropped, while all others are kept by default.",mh="Preserves most data unless explicitly filtered.",fh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",yh="Advanced",bh="Maximum Flexibility",vh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",wh="'Keep List' profile",$h="Protect important traces",Sh="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:",xh="Traces with errors",Ch="Slow requests (duration above threshold)",Eh="Mission-Critical endpoints or services",Th="Services under test or evaluation",Oh="New deployments",Ah="You can review, adjust, and add rules once onboarding is complete.",Nh="Common Rules",kh="Preset Rules",Ih="Error collection - entire cluster",Dh="Keep all traces with errors",_h="Ambient sampling percentage",Rh="'Drop List' profile",Lh="Reduce high-volume traffic",Ph="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.",Uh="Advanced Configuration",Mh="Configure sampling rules",Fh="Advanced mode allows you to configure all sampling categories:",zh="Noise Filtering - remove non-actionable traces",Bh="Highly Relevance - guarantee important traces are kept",jh='Cost Control - drop traces for "Normal" operations',Hh="Rules can target:",Xh="Services",Wh="HTTP Endpoints",Gh="DB Operations",Vh="Errors",Kh="Latency and more...",Yh="Sampling configured successfully!",Jh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",qh="Odigos will now:",Qh="Filter noisy operations",Zh="Guarantee important traces",eg="Reduce cost using controlled sampling",tg="Recommended",ig={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."},ng={noisy:Op,highlyRelevant:kp,costReduction:_p},rg={noisy:Ap,highlyRelevant:Ip,costReduction:Rp},og={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ag=[{id:Ki.Logs,value:"Logs"},{id:Ki.Metrics,value:"Metrics"},{id:Ki.Traces,value:"Traces"},{id:Ki.Profiles,value:"Profiles"}],sg=6048e5,lg="URL templatization",dg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",cg="Default templatization",ug="Custom and default URL templatization scopes across URL templatization actions.",pg="Default templatization is not enabled",hg="Automatically detect and templatize dynamic URL segments when no custom template matches.",gg="Enable for entire cluster",mg="Custom URL templates",fg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",yg="View by:",bg="Groups",vg="Tree",wg="List",$g="Create templating scope",Sg="Edit scoped templates",xg="Edit",Cg="Add template",Eg="Add templatization rules",Tg="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Og="Add templatization rule",Ag="Choose how to templatize dynamic URLs",Ng="Reduce route cardinality by replacing changing path segments with reusable placeholders.",kg="Before",Ig="After",Dg="/users/123/orders/456",_g="/users/{id}/orders/{orderId}",Rg="Automatic templatization",Lg="Recommended",Pg="Detect and templatize dynamic URL segments when no custom rule matches.",Ug="Applies to: Entire cluster",Mg="Reversible at any time",Fg="Enabled",zg="Need more control?",Bg="Create a custom rule for specific URL patterns.",jg="Create custom rule",Hg="Learn how it works",Xg="Docs",Wg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Gg="Default templatization is enabled — editor coming next.",Vg="746px",Kg="Add default templatization rule",Yg="Edit default templatization rule",Jg="Disable for a scope",qg="UI template rules",Qg="Source Scope",Zg="Scope",em="Choose which sources this template rule applies to.",tm="Sources where this template is tested and applied.",im="This rule will apply to all sources in the cluster.",nm="Default templatization",rm="Automatically templatize dynamic URL segments when no custom template matches.",om="Enable automatic URL templatization for this scope",am=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],sm="default templatization for this scope",lm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",dm="Disable",cm="Skip policy",um="Advanced",pm=["On public-facing services, bots and scanners often probe random paths that return errors such as 404. Applying default templatization to those paths can create high-cardinality routes.","Custom templates still match first. Skip policy only affects the default heuristic when no custom rule matched.","Choose either all non-2xx responses or specific status codes — not both."],hm=pm.join(" "),gm="Skip default templatization for all non-2xx responses",mm="Skip default templatization for specific HTTP status codes",fm="Example: 404, 401",ym="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",bm="This rule will take effect in the cluster immediately after it is added.",vm="This rule will take effect in the cluster immediately after it is saved.",wm="No template changes. Save will keep the current templates.";function $m(e,t){const i=[];return e>0&&i.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&i.push(1===t?"1 template will be removed":`${t} templates will be removed`),i.length?`On Save, ${i.join(" and ")}. Changes take effect immediately.`:wm}const Sm="Add rule",xm="Save",Cm="Cancel",Em="Cancel without saving",Tm="Delete",Om="templating scope";function Am(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const Nm="Enter valid HTTP status codes between 100 and 599, separated by commas.",km="Create custom template",Im="Create new scoped template",Dm="Add URL templates",_m="UI template rules",Rm=e=>`To ${e}`,Lm=e=>`Applies to ${e} source${1===e?"":"s"}`,Pm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Um=e=>`Applies to ${e} language${1===e?"":"s"}`,Mm="Applies to entire cluster",Fm=e=>`Applies to ${e} scope${1===e?"":"s"}`,zm="Where should this rule apply?",Bm=zm,jm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Hm="Specific scope",Xm="Entire cluster",Wm="Apply the rule only where it is needed.",Gm="Apply to every source in this cluster.",Vm="Quick start",Km="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Ym="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Jm="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",qm="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",Qm="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",Zm="Add to existing template group",ef="Create new template group",tf="Add here",nf="Create New",rf="Existing templating scope",of="Templating scopes",af="Select where to add the new template",sf="A template group already uses this scope",lf="Choose where to add the new templates.",df="Add to existing template group",cf="Create a separate template group",uf="Use different settings or behavior for the same scope.",pf="View action settings",hf="Default settings",gf=e=>rf,mf=e=>1===e?"1 template":`${e} templates`,ff="Templating scope",yf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,bf="Template group will be added to the default action. Expand Select action to choose a different one.",vf="Select action",wf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",$f="Advanced settings",Sf="Default UI-managed action · Recommended",xf="Create a new action",Cf="Select action",Ef="Default UI-managed action",Tf="Add this template group to the default UI-managed action.",Of="Select action",Af="Choose an existing action or create a new one for this template group.",Nf="Search template group by type action name or scope (languages, namespaces, sources)",kf="Selected Template group:",If="URL templatization action",Df="Create new action",_f="__odigos_create_new_url_templatization_action__",Rf=Af,Lf="New action name",Pf="New action group",Uf="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",Mf="Create new template group",Ff="Next",zf="Back",Bf="Action name",jf="Action",Hf="UI template rules",Xf="__odigos_default_url_templatization_action__",Wf="UI-owned",Gf="Externally synced",Vf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Kf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Yf=Wf,Jf="Templates",qf="Other templates in this group",Qf="Additional templates that share the same source scope and Action as this rule.",Zf="e.g. /api/users/{id}",ey="Language",ty="Namespace",iy="Source",ny="AND",ry="Entire cluster",oy="Unset",ay="Enabled globally",sy="Default templating disabled",ly="Enabled",dy="Default templatization is unset. No default rules are configured on an enabled action.",cy="Default templatization is enabled globally.",uy="Default templatization is disabled for the entire cluster.";function py(e){return e<=0?cy:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const hy="Disabled for these scopes",gy="Disable for a scope",my="Delete",fy="disabled scope",yy="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",by="Automatic templatization",vy="Active",wy="Custom and default URL templatization scopes across URL templatization actions.",$y="Custom templates take precedence over automatic templatization.",Sy="Scope",xy="Status codes",Cy="Disabled",Ey="Entire cluster",Ty="All",Oy="None",Ay="Disabled",Ny="No disabled scope configured",ky="Add disabled",Iy="Disabled scopes",Dy="Advanced",_y=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Ry="Automatic templatization off for matching traffic.",Ly="Disable for a scope",Py="Scope",Uy="Effective behavior",My="Status",Fy="Automatic templatization off",zy="Covered by broader exception",By="Disabled",jy="Redundant",Hy="No disabled scope configured",Xy="Disable automatic templatization for specific scopes when needed.",Wy=(e,t)=>`${e} configured • ${t} effective`,Gy=e=>1===e?"1 scope":`${e} scopes`,Vy="Default templatization is enabled for all HTTP status codes.";function Ky(e){return e<=0?Vy:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Yy="HTTP status code policies",Jy="No skip policy configured",qy="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Qy="Add skip policy for a scope",Zy="Add skip policy for a scope",eb="Skip default templatization on HTTP errors",tb="Delete",ib="skip policy",nb="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",rb="Template details",ob="Template",ab="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",sb="Created via",lb="Action name",db="Kubernetes name",cb="Odigos Action (Kubernetes resource) where this template is managed.",ub="Try a URL",pb="/users/12/orders/345685335358",hb="Test URL",gb="Close",mb="Result",fb="Templated URL path",yb="Match found",bb="This URL matches the template.",vb="No match",wb="This URL doesn't match the template.",$b="Check the URL structure and parameter positions, then try again.",Sb=Ft()(ti(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:qa.DARK_MODE,storage:"undefined"!=typeof window?ii(()=>localStorage):void 0})),xb={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ka},Cb=Ft(e=>({...xb,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(xb)}));var Eb;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Eb||(Eb={}));const Tb=e=>`add-${Fa(e).replaceAll(" ","-").toLowerCase()}`,Ob=e=>`edit-${Fa(e).replaceAll(" ","-").toLowerCase()}`,Ab=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Nb=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),kb=Ft(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}),regions:[],setRegions:t=>e({regions: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}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Nb})),Ib=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Db;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Db||(Db={}));const _b=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Rb=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Lb=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=_b();return"number"==typeof n.total&&(o.total=n.total),"number"==typeof n.current&&(o.current=n.current),Array.isArray(n.list)&&(o.list=n.list),e({progress:{...r.progress,[i]:Rb(o)}})},addProgress:(i,n,r)=>{const o=t(),a=_b(i,o.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...o.progress,[i]:Rb(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Pb=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ub={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Mb=(e,t)=>e.destinationType.type!==t.destinationType.type,Fb=Ft(e=>({...Ub,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=>Mb(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Mb(e,t))})),clearStore:()=>e(()=>({...Ub}))})),zb=e=>{function t(){return void 0===e?{}:vs(e)}const[i,n]=jt(t()),[r,o]=jt({}),[a,s]=jt(t()),l=Xt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Wt(()=>!d(a,i),[a,i]);Ht(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Xt((e,t)=>ws("formData"===e?i:r,t.toString()),[i,r]);return{formData:i,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),r=i.split(".");1===r.length?n(i=>({...i,[e]:t})):n(e=>{const i=vs(e);let n=i;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,i}),o(e=>{const t=i,n=r[r.length-1],o=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!o&&!a)return e;const s={...e};return o&&delete s[t],a&&delete s[n],s})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?o(i=>({...i,[e]:t})):o(e=>{const n=vs(e);let r=n;for(let e=0;e<i.length-1;e++){const t=i[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[i[i.length-1]]=t,n})}else i&&o({...i})},resetFormData:e=>{const i=e||t();n(i),s(i),o({})},getNestedValue:u}},Bb={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},jb=()=>{const{addNotification:e}=Ib(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=zb(Bb);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:o,validateForm:i=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":id(t)&&(n[e]=Qa.FIELD_IS_REQUIRED)}}),t.type===ai.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Qa.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Ai.Warning,title:i.alertTitle,message:Qa.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:r,disabled:o,fields:a})=>{const s={...vs(Bb),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case li.LabelsAttributes:case li.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case li.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(n=t,n?.length?n.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):n);break;case li.CollectContainerAttributes:case li.CollectReplicaSetAttributes:case li.CollectWorkloadId:case li.CollectClusterId:case li.ClusterAttributes:case li.OverwriteExistingValues:case li.AttributeNamesToDelete:case li.Renames:case li.PiiCategories:case li.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Hb=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xb=()=>{const e=Gt(null),[t,i]=jt(0),[n,r]=jt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},Wb="data-ignore-outside-click",Gb=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Wb))return!0;t=t.parentNode}return!1},Vb=(e,t)=>{const i=Gt(t);i.current=t,Ht(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Gb(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Kb=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Gt(null),[o,a]=jt(!1),[s,l]=jt({top:0,left:0}),[d,c]=jt({edge:"top",align:"left"});return Vb(r,()=>{o&&(a(!1),i?.())}),{popupRef:r,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(i,o)=>{if("local"===n)return void l({top:o,left:i});const{innerWidth:a,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=i;if(g>=s/2&&(g+=-u),"center"===h){m=i-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=i-d);l({top:g,left:m})}}},Yb=n.div`
197
197
  width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
198
198
  position: relative;
199
199
  display: ${({$inline:e})=>e?"inline":"flex"};
@@ -205,7 +205,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
205
205
  text-overflow: ellipsis;
206
206
  white-space: nowrap;
207
207
  `}
208
- `,Vm=n.div`
208
+ `,Jb=n.div`
209
209
  position: fixed;
210
210
  top: ${({$top:e})=>e}px;
211
211
  left: ${({$left:e})=>e}px;
@@ -217,21 +217,21 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
217
217
  min-width: 0;
218
218
 
219
219
  ${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
220
- `,Km=n.div`
220
+ `,qb=n.div`
221
221
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
222
222
  border-radius: 4px;
223
223
  padding: 8px;
224
224
  max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
225
225
  box-sizing: border-box;
226
226
  min-width: 0;
227
- `,Ym=n.div`
227
+ `,Qb=n.div`
228
228
  display: flex;
229
229
  flex-direction: column;
230
230
  align-items: flex-start;
231
231
  gap: 8px;
232
232
  width: 100%;
233
233
  min-width: 0;
234
- `,Jm=n.div`
234
+ `,Zb=n.div`
235
235
  display: flex;
236
236
  width: 100%;
237
237
  flex-shrink: 0;
@@ -241,7 +241,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
241
241
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
242
242
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
243
243
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
244
- `,qm=n.div`
244
+ `,ev=n.div`
245
245
  width: 0;
246
246
  height: 0;
247
247
  border-style: solid;
@@ -250,7 +250,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
250
250
  flex-shrink: 0;
251
251
 
252
252
  ${({$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 `}
253
- `,Qm=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:d,fullWidth:c=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=o(),f=Xt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),b=f.join(" "),{popupRef:y,popupOpen:v,setPopupOpen:$,popupPosition:w,arrowPlacement:S,handlePosition:x}=Xm({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),E=Xt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),C=e=>{const{type:t,clientX:i,clientY:n}=e;E?x(w.left||i,w.top||n):x(i,n),$("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:d});const T=v&&f.length>0;return e(Gm,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:C,onMouseMove:C,onMouseLeave:C,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&qt.createPortal(e(Vm,{ref:y,$top:w.top,$left:w.left,$withPointerEvents:E,onMouseEnter:E?C:void 0,children:["top"===S.edge&&t(Jm,{$align:S.align,children:t(qm,{$pointsUp:!0})}),t(Km,{$maxWidth:p,children:e(Ym,{children:[(!!r||!!a)&&e(No,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Hn,{size:Mn.XS,children:a},"title")]}),f.map((e,i)=>t(Hn,{size:Mn.XXXS,children:e},i)),!!l&&t(Hn,{size:Mn.XXXS,color:Fn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(Jm,{$align:S.align,children:t(qm,{$pointsUp:!1})})]}),document.body)]})};var Zm,ef;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Zm||(Zm={})),(e=>{e.S="small",e.M="medium",e.L="large"})(ef||(ef={}));const tf=n.button`
253
+ `,tv=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:d,fullWidth:c=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=o(),f=Wt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:w,popupPosition:$,arrowPlacement:S,handlePosition:x}=Kb({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),C=Wt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),E=e=>{const{type:t,clientX:i,clientY:n}=e;C?x($.left||i,$.top||n):x(i,n),w("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:d});const T=v&&f.length>0;return e(Yb,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&qt.createPortal(e(Jb,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(Zb,{$align:S.align,children:t(ev,{$pointsUp:!0})}),t(qb,{$maxWidth:p,children:e(Qb,{children:[(!!r||!!a)&&e(kl,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Ga,{size:Ba.XS,children:a},"title")]}),f.map((e,i)=>t(Ga,{size:Ba.XXXS,children:e},i)),!!l&&t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(Zb,{$align:S.align,children:t(ev,{$pointsUp:!1})})]}),document.body)]})};var iv,nv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(iv||(iv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(nv||(nv={}));const rv=n.button`
254
254
  display: flex;
255
255
  align-items: center;
256
256
  justify-content: ${({$align:e})=>e};
@@ -260,14 +260,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
260
260
  `}
261
261
  border: none;
262
262
  border-radius: 6px;
263
- ${({$size:e,$hasLabel:t})=>e===ef.S?r`
263
+ ${({$size:e,$hasLabel:t})=>e===nv.S?r`
264
264
  height: 32px;
265
265
  ${t?r`
266
266
  padding: 8px 16px;
267
267
  `:r`
268
268
  width: 32px;
269
269
  `}
270
- `:e===ef.M?r`
270
+ `:e===nv.M?r`
271
271
  height: 38px;
272
272
  ${t?r`
273
273
  padding: 8px 18px;
@@ -292,7 +292,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
292
292
  ${({$withShadow:e})=>e?r`
293
293
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
294
294
  `:""}
295
- ${({$variant:e,$isSelected:t})=>e===Zm.Primary?r`
295
+ ${({$variant:e,$isSelected:t})=>e===iv.Primary?r`
296
296
  background-color: ${({theme:e})=>t?e.v2.colors.purple[600]:e.v2.colors.purple[500]};
297
297
  &:hover {
298
298
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -300,7 +300,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
300
300
  &:active {
301
301
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
302
302
  }
303
- `:e===Zm.Secondary?r`
303
+ `:e===iv.Secondary?r`
304
304
  background-color: ${({theme:e})=>t?e.v2.colors.silver[600]:e.v2.colors.silver[750]};
305
305
  &:hover {
306
306
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -308,7 +308,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
308
308
  &:active {
309
309
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
310
310
  }
311
- `:e===Zm.Text?r`
311
+ `:e===iv.Text?r`
312
312
  background-color: ${({theme:e})=>t?e.v2.colors.grey[700]:"transparent"};
313
313
  &:hover {
314
314
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
@@ -318,7 +318,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
318
318
  }
319
319
  `:""}
320
320
  }
321
- `,nf=zt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=Zm.Primary,size:u=ef.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),E=h||(u===ef.L?18:16),C=u===ef.L?Mn.S:Mn.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=jt(!1),A=!(!g&&!O),k=!(!v&&!A),I=Wt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(tf,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:y,...w,disabled:k,onClick:k?void 0:I,children:t(Qm,{text:a,withIcon:!s,children:A?t(zo,r?{withGradient:!0,titleColor:T,titleSize:C}:{withSpinnerOld:!0}):e(i,{children:[l&&t(ko,{$width:"fit-content",children:t(l,{size:E,fill:T})}),r?t(Hn,{size:C,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(ko,{$width:"fit-content",children:t(d,{size:E,fill:T})})]})})})});nf.displayName=nf.name;const rf=({onDone:e}={})=>{const[i,n]=jt(!1),[r,o]=jt(-1),a=Wt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Wt(({value:e,...n})=>t(nf,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:Zm.Secondary,size:ef.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},of=e=>{const{addNotification:t}=Nm(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=Um(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?ta(i.name)?n.name=void 0:(r=!1,n.name=Yn.ILLEGAL_K8S_LABEL):(r=!1,n.name=Yn.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Ni.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...fr(e),name:t};n(void 0,void 0,i)}}},af={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},sf=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Nm(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Um(af),[d,c]=jt([]),[u,p]=jt([]);return Ht(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:r,initialValue:o,renderCondition:a}=e;if(i===Ti.Dropdown){const e=rr(n,{}),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:i,title:r,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:r,value:o,renderCondition:a,...rr(n,{})}})).map(e=>{if(i){const t="string"==typeof i?rr(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Ht(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Ht(()=>{if(t&&0===da(r.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(i=!1,t[e]=Yn.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Ni.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:r})=>{const o={...fr(af),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(rr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},lf={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Hi.HttpRequest]:null,[Hi.HttpResponse]:null,[Hi.DbQuery]:null,[Hi.Messaging]:null},codeAttributes:{[zi.Column]:null,[zi.FilePath]:null,[zi.Function]:null,[zi.LineNumber]:null,[zi.Namespace]:null,[zi.StackTrace]:null},headersCollection:null,customInstrumentations:{[ji.Java]:null,[ji.Golang]:null,[ji.Php]:null},networkMetrics:null},df=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=Um(lf);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...fr(lf),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[Hi.HttpRequest]:o[Hi.HttpRequest]?{}:null,[Hi.HttpResponse]:o[Hi.HttpResponse]?{}:null,[Hi.DbQuery]:o[Hi.DbQuery]?{}:null,[Hi.Messaging]:o[Hi.Messaging]?{}:null}),a&&(c.codeAttributes={[zi.Column]:a[zi.Column]||null,[zi.FilePath]:a[zi.FilePath]||null,[zi.Function]:a[zi.Function]||null,[zi.LineNumber]:a[zi.LineNumber]||null,[zi.Namespace]:a[zi.Namespace]||null,[zi.StackTrace]:a[zi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[ji.Java]:l[ji.Java]||null,[ji.Golang]:l[ji.Golang]||null,[ji.Php]:l[ji.Php]||null}),i(void 0,void 0,c)}}},cf=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,r,o,a]),null),uf=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=jt(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Vt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&o(i)}),()=>{t=!0}},[t,...i]),n},pf=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Gt(null);return Ht(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:i,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,i,n,r]),o},hf=({sectionNames:e,threshold:t=.4})=>{const[i,n]=jt(e[0]||""),[r,o]=jt(null),a=Gt({}),s=Gt(!1),l=Gt(!1),d=Wt((e,t)=>{a.current[e]=t},[]),c=Wt(e=>{o(e)},[]),u=Wt(e=>{l.current=!0,n(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=a.current[i];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[i]),Ht(()=>{const i=a.current,o=e.map(e=>i[e]).filter(Boolean);if(!o.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&&n(e);break}},{threshold:t,root:r});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:i,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var gf,mf;(e=>{e.Left="left",e.Right="right"})(gf||(gf={})),(e=>{e.Top="top",e.Bottom="bottom"})(mf||(mf={}));const ff=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=jt(e),c=s?t:l,u=Wt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=jt({x:n||gf.Left,y:r||mf.Bottom}),g=Gt(null),m=Gt(!1);Ht(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Hm(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,b]=jt({}),y=Wt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===mf.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===mf.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===gf.Left?i.left:void 0,right:e===gf.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Wt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?gf.Right:gf.Left),y:r||(e.clientY>window.innerHeight/2?mf.Top:mf.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Wt(e=>{e.stopPropagation()},[]);return Vt(()=>{c&&y(p.x,p.y)},[c,p.x,p.y,y]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:$}},bf=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?rr(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),yf={otelServiceName:"",currentStreamName:""},vf=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=Um(yf);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...fr(yf),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const $f=new Yt(Jt.locale),wf=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{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"}],Sf=(e,{units:t=2,style:i="long",suffix:n=!0}={})=>{let r=Math.max(0,e);if(r<1e3)return"short"===i?"0s":n?"just now":"0 seconds";const o=[];for(const e of wf){if(o.length===t)break;const n=Math.floor(r/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;r-=n*e.ms,o.push("short"===i?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===i?o.join(""):o.join(" ");return n&&"long"===i?`${a} ago`:a},xf=(e,t)=>Sf(6e4*Math.max(0,e),t),Ef=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Cf=()=>{const[e,t]=jt(0);return Ht(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Wt(e=>{try{return $f.format(Ef(e))}catch(e){return"-"}},[e]),formatDurationAgo:Wt((e,t)=>{try{const i=Ef(e);return Sf(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Tf;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Tf||(Tf={}));const Of=(e,t,i)=>{switch(t){case Tf.Purple:return e.v2.colors.purple[i?"300":"900"];case Tf.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Tf.Blue:return e.v2.colors.blue[i?"300":"1000"];case Tf.Pink:return e.v2.colors.red[i?"300":"1000"];case Tf.Green:return e.v2.colors.green[i?"300":"900"];case Tf.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Nf=n.div`
321
+ `,ov=zt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=iv.Primary,size:u=nv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:y,textAlign:b="center",disabled:v,onClick:w,...$},S)=>{const x=o(),C=h||(u===nv.L?18:16),E=u===nv.L?Ba.S:Ba.XS,T=y||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,A]=jt(!1),N=!(!g&&!O),k=!(!v&&!N),I=Xt(async e=>{e.stopPropagation(),A(!0);try{await(w?.(e))}finally{A(!1)}},[w]);return t(rv,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:b,...$,disabled:k,onClick:k?void 0:I,children:t(tv,{text:a,withIcon:!s,children:N?t(jl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Dl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Ga,{size:E,weight:500,color:T,nowrap:!0,align:b,children:r}):null,d&&t(Dl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});ov.displayName=ov.name;const av=({onDone:e}={})=>{const[i,n]=jt(!1),[r,o]=jt(-1),a=Xt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Xt(({value:e,...n})=>t(ov,{leftIcon:i?wt:$t,onClick:()=>a(e),variant:iv.Secondary,size:nv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},sv=e=>{const{addNotification:t}=Ib(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=zb(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?nd(i.name)?n.name=void 0:(r=!1,n.name=Qa.ILLEGAL_K8S_LABEL):(r=!1,n.name=Qa.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Ai.Warning,title:e.alertTitle,message:Qa.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...vs(e),name:t};n(void 0,void 0,i)}}},lv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},dv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Ib(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=zb(lv),[d,c]=jt([]),[u,p]=jt([]);return Ht(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:r,initialValue:o,renderCondition:a}=e;if(i===Ti.Dropdown){const e=ss(n,{}),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:i,title:r,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:r,value:o,renderCondition:a,...ss(n,{})}})).map(e=>{if(i){const t="string"==typeof i?ss(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Ht(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Ht(()=>{if(t&&0===ud(r.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(i=!1,t[e]=Qa.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Ai.Warning,title:e.alertTitle,message:Qa.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:r})=>{const o={...vs(lv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(ss(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},cv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Hi.HttpRequest]:null,[Hi.HttpResponse]:null,[Hi.DbQuery]:null,[Hi.Messaging]:null},codeAttributes:{[zi.Column]:null,[zi.FilePath]:null,[zi.Function]:null,[zi.LineNumber]:null,[zi.Namespace]:null,[zi.StackTrace]:null},headersCollection:null,customInstrumentations:{[ji.Java]:null,[ji.Golang]:null,[ji.Php]:null},networkMetrics:null},uv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zb(cv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...vs(cv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[Hi.HttpRequest]:o[Hi.HttpRequest]?{}:null,[Hi.HttpResponse]:o[Hi.HttpResponse]?{}:null,[Hi.DbQuery]:o[Hi.DbQuery]?{}:null,[Hi.Messaging]:o[Hi.Messaging]?{}:null}),a&&(c.codeAttributes={[zi.Column]:a[zi.Column]||null,[zi.FilePath]:a[zi.FilePath]||null,[zi.Function]:a[zi.Function]||null,[zi.LineNumber]:a[zi.LineNumber]||null,[zi.Namespace]:a[zi.Namespace]||null,[zi.StackTrace]:a[zi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[ji.Java]:l[ji.Java]||null,[ji.Golang]:l[ji.Golang]||null,[ji.Php]:l[ji.Php]||null}),i(void 0,void 0,c)}}},pv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,r,o,a]),null),hv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=jt(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Vt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&o(i)}),()=>{t=!0}},[t,...i]),n},gv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Gt(null);return Ht(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:i,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,i,n,r]),o},mv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=jt(e[0]||""),[r,o]=jt(null),a=Gt({}),s=Gt(!1),l=Gt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=a.current[i];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[i]),Ht(()=>{const i=a.current,o=e.map(e=>i[e]).filter(Boolean);if(!o.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&&n(e);break}},{threshold:t,root:r});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:i,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var fv,yv;(e=>{e.Left="left",e.Right="right"})(fv||(fv={})),(e=>{e.Top="top",e.Bottom="bottom"})(yv||(yv={}));const bv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=jt(e),c=s?t:l,u=Xt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=jt({x:n||fv.Left,y:r||yv.Bottom}),g=Gt(null),m=Gt(!1);Ht(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Gb(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,y]=jt({}),b=Xt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;y({top:t===yv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===yv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===fv.Left?i.left:void 0,right:e===fv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Xt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?fv.Right:fv.Left),y:r||(e.clientY>window.innerHeight/2?yv.Top:yv.Bottom)};h(i),b(i.x,i.y)},[c,u,n,r,b]),w=Xt(e=>{e.stopPropagation()},[]);return Vt(()=>{c&&b(p.x,p.y)},[c,p.x,p.y,b]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:w}},vv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ss(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),wv={otelServiceName:"",currentStreamName:""},$v=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zb(wv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...vs(wv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const Sv=new Yt(Jt.locale),xv=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{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"}],Cv=(e,{units:t=2,style:i="long",suffix:n=!0}={})=>{let r=Math.max(0,e);if(r<1e3)return"short"===i?"0s":n?"just now":"0 seconds";const o=[];for(const e of xv){if(o.length===t)break;const n=Math.floor(r/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;r-=n*e.ms,o.push("short"===i?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===i?o.join(""):o.join(" ");return n&&"long"===i?`${a} ago`:a},Ev=(e,t)=>Cv(6e4*Math.max(0,e),t),Tv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Ov=()=>{const[e,t]=jt(0);return Ht(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return Sv.format(Tv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Tv(e);return Cv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Av;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Av||(Av={}));const Nv=(e,t,i)=>{switch(t){case Av.Purple:return e.v2.colors.purple[i?"300":"900"];case Av.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Av.Blue:return e.v2.colors.blue[i?"300":"1000"];case Av.Pink:return e.v2.colors.red[i?"300":"1000"];case Av.Green:return e.v2.colors.green[i?"300":"900"];case Av.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},kv=n.div`
322
322
  display: flex;
323
323
  align-items: center;
324
324
  justify-content: center;
@@ -336,16 +336,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
336
336
  ${({$disabled:e,$variant:t,$withClick:i})=>e?r`
337
337
  background-color: ${({theme:e})=>e.v2.colors.grey[800]};
338
338
  `:r`
339
- background-color: ${({theme:e})=>Of(e,t)};
339
+ background-color: ${({theme:e})=>Nv(e,t)};
340
340
  ${i&&r`
341
341
  cursor: pointer;
342
342
  &:hover,
343
343
  &:active {
344
- border: 1px solid ${({theme:e})=>Of(e,t,!0)};
344
+ border: 1px solid ${({theme:e})=>Nv(e,t,!0)};
345
345
  }
346
346
  `}
347
347
  `}
348
- `,Af=({variant:i=Tf.Default,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:d})=>{const c=o(),u=l?c.v2.colors.grey[400]:i===Tf.Default?c.v2.colors.white[500]:Of(c,i,!0),p=i===Tf.Loader;return e(Nf,{$variant:i,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,children:[r&&t(r,{fill:u,size:16}),p?t(zo,{withGradient:!0,title:n,titleSize:Mn.XXS}):t(Hn,{color:u,size:Mn.XXS,nowrap:!0,children:n}),a&&t(a,{fill:u,size:16})]})},kf=n.div`
348
+ `,Iv=({variant:i=Av.Default,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:d})=>{const c=o(),u=l?c.v2.colors.grey[400]:i===Av.Default?c.v2.colors.white[500]:Nv(c,i,!0),p=i===Av.Loader;return e(kv,{$variant:i,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,children:[r&&t(r,{fill:u,size:16}),p?t(jl,{withGradient:!0,title:n,titleSize:Ba.XXS}):t(Ga,{color:u,size:Ba.XXS,nowrap:!0,children:n}),a&&t(a,{fill:u,size:16})]})},Dv=n.div`
349
349
  display: flex;
350
350
  align-items: center;
351
351
  justify-content: center;
@@ -355,9 +355,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
355
355
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
356
356
  border-radius: 100px;
357
357
  background-color: ${({$backgroundColor:e})=>e};
358
- `,If=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Ni.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=i?.toString(),b=Ni.Loading===s,y=s?[Ni.Disabled,Ni.Loading].includes(s)?ro(m,s,d?"400":"700"):[Ni.Unknown].includes(s)?ro(m,s,"600"):ro(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Ni.Unknown].includes(s)?y:[Ni.Disabled,Ni.Loading].includes(s)?m.v2.colors.grey[400]:[Ni.Error,Ni.Warning,Ni.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Ni.Unknown].includes(s)?[Ni.Disabled,Ni.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(Qm,{text:a,fullWidth:g,children:e(kf,{$backgroundColor:$,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(zo,{withGradient:!0,title:f,titleSize:c||Mn.XXS}):t(Hn,{color:v,size:c||Mn.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},_f=n.div`
358
+ `,_v=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Ai.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=i?.toString(),y=Ai.Loading===s,b=s?[Ai.Disabled,Ai.Loading].includes(s)?sl(m,s,d?"400":"700"):[Ai.Unknown].includes(s)?sl(m,s,"600"):sl(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Ai.Unknown].includes(s)?b:[Ai.Disabled,Ai.Loading].includes(s)?m.v2.colors.grey[400]:[Ai.Error,Ai.Warning,Ai.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),w=p||(d&&![Ai.Unknown].includes(s)?[Ai.Disabled,Ai.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return t(tv,{text:a,fullWidth:g,children:e(Dv,{$backgroundColor:w,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(jl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(jl,{withGradient:!0,title:f,titleSize:c||Ba.XXS}):t(Ga,{color:v,size:c||Ba.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Rv=n.div`
359
359
  position: relative;
360
- `,Rf=n.div`
360
+ `,Lv=n.div`
361
361
  position: fixed;
362
362
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
363
363
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -375,7 +375,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
375
375
  border-radius: 6px;
376
376
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
377
377
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
378
- `,Df=({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=ff({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(_f,{ref:h,onMouseDown:m,children:[t(nf,{label:"Open",variant:Zm.Secondary,size:ef.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Qt(t(Rf,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Lf={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",1e3:"#0C2F2C"},mint:{500:"#4CD1F2",1e3:"#062A31"},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:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142",1e3:"#381D07"}},zIndex:{base:1,island:100,sidebar:500,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"}},Pf={v2:Lf.v2,darkMode:!0,colors:{...Lf.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:Lf.font_family},Uf={v2:Lf.v2,darkMode:!1,colors:{...Lf.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:Lf.font_family},Mf=e=>e?Pf:Uf,Ff=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Lf,darkModeTheme:Pf,getTheme:Mf,lightModeTheme:Uf},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@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");*,:after,:before{box-sizing:border-box}*{-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 zf=({children:e})=>{const{darkMode:i}=vm();return t(s,{theme:Mf(i),children:e})},Bf={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"},jf=Object.freeze(Object.defineProperty({__proto__:null,hex:Bf},Symbol.toStringTag,{value:"Module"})),Hf={in:{left:a`
378
+ `,Pv=({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=bv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...y}=s??{};return e(Rv,{ref:h,onMouseDown:m,children:[t(ov,{label:"Open",variant:iv.Secondary,size:nv.S,...y,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Qt(t(Lv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Uv={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",1e3:"#0C2F2C"},mint:{500:"#4CD1F2",1e3:"#062A31"},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:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142",1e3:"#381D07"}},zIndex:{base:1,island:100,sidebar:500,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"}},Mv={v2:Uv.v2,darkMode:!0,colors:{...Uv.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:Uv.font_family},Fv={v2:Uv.v2,darkMode:!1,colors:{...Uv.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:Uv.font_family},zv=e=>e?Mv:Fv,Bv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Uv,darkModeTheme:Mv,getTheme:zv,lightModeTheme:Fv},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@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");*,:after,:before{box-sizing:border-box}*{-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 jv=({children:e})=>{const{darkMode:i}=Sb();return t(s,{theme:zv(i),children:e})},Hv={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"},Xv=Object.freeze(Object.defineProperty({__proto__:null,hex:Hv},Symbol.toStringTag,{value:"Module"})),Wv={in:{left:a`
379
379
  from { transform: translateX(-100%); }
380
380
  to { transform: translateX(0); }
381
381
  `,right:a`
@@ -405,7 +405,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
405
405
  `,center:a`
406
406
  from { transform: translate(-50%, -50%); }
407
407
  to { transform: translate(-50%, 100%); }
408
- `}},Wf={in:a`
408
+ `}},Gv={in:a`
409
409
  from {
410
410
  width: 0%;
411
411
  }
@@ -419,7 +419,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
419
419
  to {
420
420
  width: 0%;
421
421
  }
422
- `},Xf=a`
422
+ `},Vv=a`
423
423
  0% {
424
424
  transform: scale(1);
425
425
  opacity: 1;
@@ -428,14 +428,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
428
428
  transform: scale(2);
429
429
  opacity: 0;
430
430
  }
431
- `,Gf=a`
431
+ `,Kv=a`
432
432
  0% {
433
433
  background-position: -500px 0;
434
434
  }
435
435
  100% {
436
436
  background-position: 500px 0;
437
437
  }
438
- `,Vf={in:a`
438
+ `,Yv={in:a`
439
439
  from {
440
440
  opacity: 0;
441
441
  }
@@ -449,7 +449,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
449
449
  to {
450
450
  opacity: 0;
451
451
  }
452
- `},Kf=Object.freeze(Object.defineProperty({__proto__:null,fade:Vf,ping:Xf,progress:Wf,shimmer:Gf,slide:Hf},Symbol.toStringTag,{value:"Module"}));var Yf,Jf;(e=>{e.S="s",e.L="l"})(Yf||(Yf={})),(e=>{e.Filled="filled",e.Underline="underline"})(Jf||(Jf={}));const qf=n.div`
452
+ `},Jv=Object.freeze(Object.defineProperty({__proto__:null,fade:Yv,ping:Vv,progress:Gv,shimmer:Kv,slide:Wv},Symbol.toStringTag,{value:"Module"}));var qv,Qv;(e=>{e.S="s",e.L="l"})(qv||(qv={})),(e=>{e.Filled="filled",e.Underline="underline"})(Qv||(Qv={}));const Zv=n.div`
453
453
  display: flex;
454
454
  align-items: center;
455
455
  gap: 2px;
@@ -457,19 +457,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
457
457
  border-radius: 6px;
458
458
  border: none;
459
459
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
460
- `,Qf=n.button`
460
+ `,ew=n.button`
461
461
  flex: 1;
462
462
  display: flex;
463
463
  align-items: center;
464
464
  justify-content: center;
465
- gap: ${({$size:e})=>e===Yf.S?"4px":"8px"};
466
- padding: ${({$size:e})=>e===Yf.S?"4px 6px":"8px 12px"};
465
+ gap: ${({$size:e})=>e===qv.S?"4px":"8px"};
466
+ padding: ${({$size:e})=>e===qv.S?"4px 6px":"8px 12px"};
467
467
  border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
468
468
  border: 1px solid transparent;
469
469
 
470
470
  ${({$disabled:e,$isSelected:t,$selectedBgColor:i,$selectedBorderColor:n,theme:o})=>e?r`
471
471
  cursor: not-allowed;
472
- background-color: ${t?(i||o.v2.colors.purple[900])+Bf["050"]:"transparent"};
472
+ background-color: ${t?(i||o.v2.colors.purple[900])+Hv["050"]:"transparent"};
473
473
  `:t?r`
474
474
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
475
475
  border: 1px solid ${n||o.v2.colors.purple[400]};
@@ -484,11 +484,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
484
484
  background-color: ${o.v2.colors.silver[600]};
485
485
  }
486
486
  `}
487
- `,Zf=n.div`
487
+ `,tw=n.div`
488
488
  display: flex;
489
489
  align-items: stretch;
490
490
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
491
- `,eb=n.button`
491
+ `,iw=n.button`
492
492
  display: flex;
493
493
  height: 34px;
494
494
  padding: 8px 12px 8px 16px;
@@ -507,7 +507,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
507
507
  &:hover {
508
508
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
509
509
  }
510
- `,tb=({"data-id":n,size:r=Yf.S,variant:a=Jf.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===Jf.Underline,g=h?eb:Qf;return t(h?Zf:qf,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:b,selectedTextColor:y,disabled:v},$)=>{const w=0===$,S=$===s.length-1,x=l===n,E=v||c,C=E?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?y||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===Yf.S?Mn.XXS:Mn.XS,O=x?500:400,N=e(i,{children:[a&&t(a,{fill:C}),o&&t(Hn,{size:T,weight:O,color:C,nowrap:!0,children:o}),u&&t(If,{...u})]});return t(g,{onClick:()=>!E&&d(n),$isFirstOption:w,$isLastOption:S,$isFirstAndLastOption:w&&S,$disabled:E,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(Qm,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},ib=n.div`
510
+ `,nw=({"data-id":n,size:r=qv.S,variant:a=Qv.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===Qv.Underline,g=h?iw:ew;return t(h?tw:Zv,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:y,selectedTextColor:b,disabled:v},w)=>{const $=0===w,S=w===s.length-1,x=l===n,C=v||c,E=C?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?b||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===qv.S?Ba.XXS:Ba.XS,O=x?500:400,A=e(i,{children:[a&&t(a,{fill:E}),o&&t(Ga,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(_v,{...u})]});return t(g,{onClick:()=>!C&&d(n),$isFirstOption:$,$isLastOption:S,$isFirstAndLastOption:$&&S,$disabled:C,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:y},children:m?t(tv,{text:m,withIcon:!0,children:A}):A},`segment-${w}-${o}-${n}`)})})},rw=n.div`
511
511
  box-sizing: border-box !important;
512
512
  width: ${({$width:e})=>e??"fit-content"};
513
513
  flex-shrink: ${({$width:e})=>e?0:1};
@@ -523,7 +523,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
523
523
  border: none;
524
524
  border-radius: 6px;
525
525
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:i,$emphasizeBackgroundColor:n,theme:r})=>{const o=i??r.v2.colors.silver[800],a=n??r.v2.colors.silver[700];return e||t?a:o}};
526
- `,nb=n.input`
526
+ `,ow=n.input`
527
527
  min-width: 0;
528
528
  flex: 1;
529
529
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -540,7 +540,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
540
540
  overflow: hidden;
541
541
  text-overflow: ellipsis;
542
542
  white-space: nowrap;
543
- `,rb=({"data-id":i,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=o(),[g,m]=jt(!1),[f,b]=jt(!1),[y,v]=jt(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Xt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Xt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(ib,{$width:d,$withSegment:w,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:$}),t(nb,{"data-id":i??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:$}),w&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(tb,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},ob=n.div`
543
+ `,aw=({"data-id":i,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=o(),[g,m]=jt(!1),[f,y]=jt(!1),[b,v]=jt(!1),w=g?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!c?.options?.length,S=Wt(()=>{if($)return c?.options.find(e=>e.value===c.selected)?.label},[$,c?.options,c?.selected]),x=Wt(()=>l||($&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,$,S]);return e(rw,{$width:d,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:w}),t(ow,{"data-id":i??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:w}),$&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(nw,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},sw=n.div`
544
544
  display: flex;
545
545
  align-items: center;
546
546
  justify-content: center;
@@ -549,41 +549,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
549
549
  padding: 8px;
550
550
  border-radius: 100%;
551
551
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
552
- `,ab=({icon:i=xt,hideIcon:n=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Ao,{$gap:12,$alignItems:"center",children:[!n&&t(ob,{children:t(i,{size:32,fill:d})}),e(Ao,{$gap:4,$alignItems:"center",children:[t(Hn,{size:Mn.S,align:"center",children:r}),a&&t(Hn,{size:Mn.XXS,align:"center",color:d,children:a})]}),s&&t(nf,{variant:Zm.Secondary,...s}),l]})},sb=n.span`
552
+ `,lw=({icon:i=g,hideIcon:n=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Il,{$gap:12,$alignItems:"center",children:[e(Il,{$gap:4,$alignItems:"center",children:[!n&&t(sw,{children:t(i,{size:24,fill:d})}),t(Ga,{size:Ba.XXS,color:ja.Secondary,align:"center",children:r}),a&&t(Ga,{size:Ba.XXXS,color:ja.Disable,align:"center",children:a})]}),s&&t(ov,{variant:iv.Secondary,...s}),l]})},dw=n.span`
553
553
  font-family: ${({theme:e})=>e.font_family.primary};
554
554
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
555
555
  font-weight: 400;
556
556
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
557
- `,lb=n.span`
557
+ `,cw=n.span`
558
558
  font-family: ${({theme:e})=>e.font_family.primary};
559
559
  font-size: 14px;
560
560
  font-weight: 400;
561
561
  color: ${({theme:e})=>e.v2.colors.red[500]};
562
- `,db=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(No,{$width:a,$justifyContent:"space-between",children:[i&&t(sb,{$smallAndDark:s,children:i}),e(No,{$gap:4,children:[o&&t(If,{...o,textSize:Mn.XXXS}),r&&t(lb,{children:"*"}),n&&t(Qm,{text:n,withIcon:!0})]})]}):null,cb=({errorMessage:i,warnMessage:n,helpMessage:r})=>{const a=o(),s=i?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return i||n||r?e(No,{$alignItems:"center",children:[l&&t(Ao,{children:l}),t(Hn,{size:Mn.XXXS,weight:400,color:s,children:i||n||r})]}):null};var ub;(e=>{e.S="small",e.L="large"})(ub||(ub={}));const pb=n.div`
562
+ `,uw=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(kl,{$width:a,$justifyContent:"space-between",children:[i&&t(dw,{$smallAndDark:s,children:i}),e(kl,{$gap:4,children:[o&&t(_v,{...o,textSize:Ba.XXXS}),r&&t(cw,{children:"*"}),n&&t(tv,{text:n,withIcon:!0})]})]}):null,pw=({errorMessage:i,warnMessage:n,helpMessage:r})=>{const a=o(),s=i?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return i||n||r?e(kl,{$alignItems:"center",children:[l&&t(Il,{children:l}),t(Ga,{size:Ba.XXXS,weight:400,color:s,children:i||n||r})]}):null};var hw;(e=>{e.S="small",e.L="large"})(hw||(hw={}));const gw=n.div`
563
563
  width: fit-content;
564
564
  display: flex;
565
565
  align-items: center;
566
566
  gap: 8px;
567
567
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
568
- `,hb=n.div`
569
- width: ${({$size:e})=>e===ub.S?"16px":"20px"};
570
- height: ${({$size:e})=>e===ub.S?"16px":"20px"};
568
+ `,mw=n.div`
569
+ width: ${({$size:e})=>e===hw.S?"16px":"20px"};
570
+ height: ${({$size:e})=>e===hw.S?"16px":"20px"};
571
571
  display: flex;
572
572
  align-items: center;
573
573
  justify-content: center;
574
574
  border-radius: 4px;
575
575
  border: 1px solid ${({$borderColor:e})=>e};
576
576
  background-color: ${({$backgroundColor:e})=>e};
577
- `,gb=({name:i,label:n,tooltip:r,badge:a,size:s=ub.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=jt(!1),y=d||c,v=s===ub.S?12:16,$=l?m.v2.colors.grey[400]:m.v2.colors.white[500],w=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 e(Ao,{$gap:4,children:[e(No,{$justifyContent:"space-between",children:[e(pb,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(hb,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(Et,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(Hn,{size:s===ub.S?Mn.XXS:Mn.XS,nowrap:!0,children:n})]}),t(db,{tooltip:r,badge:a})]}),t(cb,{errorMessage:p,warnMessage:h,helpMessage:g})]})},mb=n.div`
577
+ `,fw=({name:i,label:n,tooltip:r,badge:a,size:s=hw.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,y]=jt(!1),b=d||c,v=s===hw.S?12:16,w=l?m.v2.colors.grey[400]:m.v2.colors.white[500],$=b?"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]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Il,{$gap:4,children:[e(kl,{$justifyContent:"space-between",children:[e(gw,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(mw,{$size:s,$borderColor:$,$backgroundColor:S,children:d?t(xt,{size:v,fill:w}):c?t(wt,{size:v,fill:w}):null}),n&&t(Ga,{size:s===hw.S?Ba.XXS:Ba.XS,nowrap:!0,children:n})]}),t(uw,{tooltip:r,badge:a})]}),t(pw,{errorMessage:p,warnMessage:h,helpMessage:g})]})},yw=n.div`
578
578
  display: flex;
579
579
  flex-direction: ${({$direction:e})=>e===fi.Horizontal?"row":"column"};
580
580
  gap: ${({$direction:e})=>e===fi.Horizontal?16:8}px;
581
- `,fb=({direction:i=fi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===ub.S?Mn.XXS:Mn.XS,u=Xt(()=>s.every(e=>l[e.id]),[s,l]),p=Xt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(i=>{const n={...i};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(mb,{$direction:i,children:[n&&a?t(gb,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Hn,{size:c,children:n}):null,s.map(e=>t(gb,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},bb=n.div`
581
+ `,bw=({direction:i=fi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===hw.S?Ba.XXS:Ba.XS,u=Wt(()=>s.every(e=>l[e.id]),[s,l]),p=Wt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(i=>{const n={...i};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(yw,{$direction:i,children:[n&&a?t(fw,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Ga,{size:c,children:n}):null,s.map(e=>t(fw,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},vw=n.div`
582
582
  position: relative;
583
583
  display: flex;
584
584
  flex-direction: column;
585
585
  gap: 4px;
586
- `,yb=n.div`
586
+ `,ww=n.div`
587
587
  position: fixed;
588
588
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
589
589
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -601,7 +601,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
601
601
  border-radius: 6px;
602
602
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
603
603
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
604
- `,vb=n.div`
604
+ `,$w=n.div`
605
605
  display: flex;
606
606
  flex-direction: column;
607
607
  gap: 0;
@@ -609,7 +609,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
609
609
  width: 100%;
610
610
  max-height: ${({$maxHeight:e})=>e||"230px"};
611
611
  overflow-y: auto;
612
- `,$b=n.div`
612
+ `,Sw=n.div`
613
613
  display: flex;
614
614
  align-items: center;
615
615
  gap: 8px;
@@ -625,19 +625,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
625
625
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
626
626
  }
627
627
  `}
628
- `,wb=n.div`
628
+ `,xw=n.div`
629
629
  display: flex;
630
630
  align-items: center;
631
631
  gap: 8px;
632
632
  flex: 1;
633
633
  min-width: 0;
634
- `,Sb=n.div`
634
+ `,Cw=n.div`
635
635
  flex: 0 1 auto;
636
636
  min-width: 0;
637
637
  overflow: hidden;
638
638
  text-overflow: ellipsis;
639
639
  white-space: nowrap;
640
- `,xb=n.span`
640
+ `,Ew=n.span`
641
641
  flex-shrink: 0;
642
642
  width: 88px;
643
643
  display: inline-flex;
@@ -646,26 +646,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
646
646
  border-radius: 4px;
647
647
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
648
648
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
649
- `,Eb=n.div`
649
+ `,Tw=n.div`
650
650
  flex-shrink: 0;
651
651
  display: inline-flex;
652
652
  align-items: center;
653
653
  gap: 4px;
654
- `,Cb=({defaultOpen:i,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:b,isLoading:y,emptyMessage:v,children:$})=>{const w=o(),S=!!f||!!b||!!$,{isOpen:x,setIsOpen:E,coords:C,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=ff({defaultOpen:i??!S,open:n,onOpenChange:r,alignX:a,alignY:s,withOffset:S,fullWidth:g}),A=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&E(!1)},[k,I]=jt(""),_=Xt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:R,onMouseDown:D,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e(bb,{ref:T,onMouseDown:N,children:[u&&t(db,{label:u}),f&&t(nf,{...L,fullWidth:g,rightIcon:x?Ct:Tt,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(nf,{variant:Zm.Text,size:ef.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Tt,handleClick:O}):$,x&&Qt(e(yb,{$coords:C,"data-ignore-outside-click":"true",children:[h&&t(rb,{value:k,onChange:I,width:"100%"}),y?t(zo,{withSpinner:!0,title:"Loading...",titleSize:Mn.XS}):_.length?t(vb,{$maxHeight:m,children:_.map(i=>{if(!i)return null;const{id:n,label:r,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(n);return e($b,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(gb,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(xb,{children:t(Hn,{size:Mn.XXS,nowrap:!0,color:Fn.Secondary,children:s})}),e(wb,{children:[t(Sb,{children:t(Hn,{size:Mn.XS,nowrap:!0,color:i.color||Fn.Primary,children:r})}),l&&e(Eb,{children:[t(je,{size:12,fill:w.v2.colors.silver[200]}),t(Hn,{size:Mn.XS,nowrap:!0,color:Fn.Secondary,children:l})]})]})]},n)})}):t(Oo,{$padding:"6px 0",children:t(ab,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!_.length&&t(nf,{label:"Done",onClick:()=>E(!1)})]}),document.body)]})};var Tb;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Tb||(Tb={}));const Ob=({onAnyClick:e,actions:i})=>t(No,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case Tb.Button:return t(nf,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case Tb.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(Cb,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case Tb.PopupButton:return t(Df,{buttonProps:{label:"Open",variant:Zm.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),Nb=n(No)`
654
+ `,Ow=({defaultOpen:i,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:w})=>{const $=o(),S=!!f||!!y||!!w,{isOpen:x,setIsOpen:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:A}=bv({defaultOpen:i??!S,open:n,onOpenChange:r,alignX:a,alignY:s,withOffset:S,fullWidth:g}),N=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&C(!1)},[k,I]=jt(""),D=Wt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:_,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=y??{};return e(vw,{ref:T,onMouseDown:A,children:[u&&t(uw,{label:u}),f&&t(ov,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),y&&t(ov,{variant:iv.Text,size:nv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof w?w({ChevronIcon:x?Ct:Et,handleClick:O}):w,x&&Qt(e(ww,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(aw,{value:k,onChange:I,width:"100%"}),b?t(jl,{withSpinner:!0,title:"Loading...",titleSize:Ba.XS}):D.length?t($w,{$maxHeight:m,children:D.map(i=>{if(!i)return null;const{id:n,label:r,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(n);return e(Sw,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>N(n),title:l?`${r} — ${l}`:r,children:[a&&t(fw,{value:c,onChange:()=>N(n)}),o&&t(o,{size:14,fill:i.color||$.v2.colors.white[500]}),s&&t(Ew,{children:t(Ga,{size:Ba.XXS,nowrap:!0,color:ja.Secondary,children:s})}),e(xw,{children:[t(Cw,{children:t(Ga,{size:Ba.XS,nowrap:!0,color:i.color||ja.Primary,children:r})}),l&&e(Tw,{children:[t(je,{size:12,fill:$.v2.colors.silver[200]}),t(Ga,{size:Ba.XS,nowrap:!0,color:ja.Secondary,children:l})]})]})]},n)})}):t(Nl,{$padding:"6px 0",children:t(lw,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!D.length&&t(ov,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var Aw;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Aw||(Aw={}));const Nw=({onAnyClick:e,actions:i})=>t(kl,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case Aw.Button:return t(ov,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case Aw.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(Ow,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case Aw.PopupButton:return t(Pv,{buttonProps:{label:"Open",variant:iv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),kw=n(kl)`
655
655
  min-width: 0;
656
- `,Ab=n.div`
656
+ `,Iw=n.div`
657
657
  display: flex;
658
658
  flex-shrink: 0;
659
659
  align-items: center;
660
660
  justify-content: center;
661
661
  padding: 8px;
662
662
  border-radius: 8px;
663
- background-color: ${({theme:e})=>e.v2.colors.white[500]+Bf["004"]};
664
- `,kb=n(Ao)`
663
+ background-color: ${({theme:e})=>e.v2.colors.white[500]+Hv["004"]};
664
+ `,Dw=n(Il)`
665
665
  flex: 1;
666
666
  min-width: 0;
667
667
  overflow: hidden;
668
- `,Ib=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=Mn.S,titleColor:a=Fn.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Mn.XXS,subTitleColor:u=Fn.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=rf();return e(Nb,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(Ab,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(kb,{$gap:b,children:[r||m?e(No,{$gap:6,$alignItems:"center",$wrap:"wrap",$width:"100%",children:[r&&t(Hn,{size:o,color:a,nowrap:!s,children:r}),l&&t(Hn,{size:Mn.XXXS,color:Fn.Secondary,children:l}),g&&r&&t($,{value:r}),h&&t(Qm,{text:h,withIcon:!0}),m&&t(If,{...m})]}):null,d&&t(Hn,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(No,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},_b=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Gt(null),a=!!r.maxLines&&r.maxLines>0,s=uf(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(Qm,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Hn,{ref:o,...r,children:e})})},Rb=n.section`
668
+ `,_w=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=Ba.S,titleColor:a=ja.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Ba.XXS,subTitleColor:u=ja.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:y,alignItems:b="center",children:v})=>{const{CopyButton:w}=av();return e(kw,{$gap:d?8:6,$alignItems:b,children:[i&&(n||d?t(Iw,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(Dw,{$gap:y,children:[r||m?e(kl,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Ga,{size:o,color:a,nowrap:!s,children:r}),l&&t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:l}),g&&r&&t(w,{value:r}),h&&t(tv,{text:h,withIcon:!0}),m&&t(_v,{...m})]}):null,d&&t(Ga,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(kl,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},Rw=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Gt(null),a=!!r.maxLines&&r.maxLines>0,s=hv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(tv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Ga,{ref:o,...r,children:e})})},Lw=n.section`
669
669
  display: flex;
670
670
  flex-direction: column;
671
671
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
@@ -693,38 +693,38 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
693
693
  ${({$overflow:e})=>e&&r`
694
694
  overflow: ${e};
695
695
  `}
696
- `,Db=n(No)`
696
+ `,Pw=n(kl)`
697
697
  width: 100%;
698
698
  min-width: 0;
699
699
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
700
700
  user-select: ${({$clickable:e})=>e?"none":"auto"};
701
- `,Lb=n(No)`
701
+ `,Uw=n(kl)`
702
702
  flex-shrink: 0;
703
- `,Pb=n.div`
703
+ `,Mw=n.div`
704
704
  display: flex;
705
705
  align-items: flex-start;
706
706
  flex-wrap: wrap;
707
707
  width: 100%;
708
- `,Ub=n.div`
708
+ `,Fw=n.div`
709
709
  ${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
710
710
  margin: 8px;
711
711
  display: flex;
712
712
  flex-direction: column;
713
713
  gap: 4px;
714
714
  min-width: 0;
715
- `,Mb=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=rf(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(Ub,{$cellsPerRow:n,children:[!!a&&t(Qm,{text:s,children:t(_b,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:a})}),e(No,{$gap:4,children:[u&&t(If,{...u}),p&&t(Af,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(Qm,{text:d,children:t(_b,{size:Mn.XS,nowrap:!0,children:l})})]})]})},Fb=({bgTint:i="900",width:n,fullHeight:r=!1,moreSpacing:o=!1,overflow:a,richTitle:s,withCollapse:l,collapseIsDefaultOpen:d,badges:c=[],actions:u=[],dropDataActions:p=[],renderOnRightSide:h,cellsPerRow:g,items:m,children:f,onClick:b,clickStylesRemainActive:y=!1})=>{const[v,$]=jt(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,E=!!p.length,C=!!c.length;return e(Rb,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||C||l)&&e(Db,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:e=>{l&&e.target.closest("section")&&w()},children:[s?t(Ib,{...s}):t("div",{}),e(Lb,{$gap:12,children:[h,x&&S&&t(Ob,{actions:u}),C&&t(No,{$gap:8,children:c.map((e,t)=>Kt(If,{...e,key:e.key||`${e.label}-${t}`}))}),(E||l)&&e(No,{$gap:2,children:[E&&t(Cb,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(nf,{variant:Zm.Text,size:ef.S,leftIcon:v?Ct:Tt,onClick:w})]})]})]}),S&&m?t(Pb,{children:m.map(e=>t(Mb,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var zb;(e=>{e.S="small",e.M="medium"})(zb||(zb={}));const Bb=n(No)`
715
+ `,zw=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=av(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(Fw,{$cellsPerRow:n,children:[!!a&&t(tv,{text:s,children:t(Rw,{size:Ba.XXXS,color:ja.Secondary,nowrap:!0,children:a})}),e(kl,{$gap:4,children:[u&&t(_v,{...u}),p&&t(Iv,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(tv,{text:d,children:t(Rw,{size:Ba.XS,nowrap:!0,children:l})})]})]})},Bw=({bgTint:i="900",width:n,fullHeight:r=!1,moreSpacing:o=!1,overflow:a,richTitle:s,withCollapse:l,collapseIsDefaultOpen:d,badges:c=[],actions:u=[],dropDataActions:p=[],renderOnRightSide:h,cellsPerRow:g,items:m,children:f,onClick:y,clickStylesRemainActive:b=!1})=>{const[v,w]=jt(d||!1),$=()=>w(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(Lw,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:y,$withClick:!!y,$clickStylesRemainActive:b,$overflow:a,children:[(s||x||E||l)&&e(Pw,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:e=>{l&&e.target.closest("section")&&$()},children:[s?t(_w,{...s}):t("div",{}),e(Uw,{$gap:12,children:[h,x&&S&&t(Nw,{actions:u}),E&&t(kl,{$gap:8,children:c.map((e,t)=>Kt(_v,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(kl,{$gap:2,children:[C&&t(Ow,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(ov,{variant:iv.Text,size:nv.S,leftIcon:v?Ct:Et,onClick:$})]})]})]}),S&&m?t(Mw,{children:m.map(e=>t(zw,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var jw;(e=>{e.S="small",e.M="medium"})(jw||(jw={}));const Hw=n(kl)`
716
716
  flex: 1;
717
717
  min-width: 0;
718
718
  align-items: center;
719
- `,jb=n.div`
719
+ `,Xw=n.div`
720
720
  flex-shrink: 1;
721
721
  min-width: 0;
722
722
  overflow: hidden;
723
- `,Hb=n.div`
723
+ `,Ww=n.div`
724
724
  display: flex;
725
725
  flex-direction: column;
726
726
  ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
727
- `,Wb=n.div`
727
+ `,Gw=n.div`
728
728
  display: flex;
729
729
  flex-direction: column;
730
730
  gap: ${({$gap:e})=>e}px;
@@ -735,7 +735,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
735
735
  border-radius: 16px;
736
736
  background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
737
737
  ${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
738
- `,Xb=zt(({id:i,size:n=zb.M,fullHeight:r=!1,richTitle:o,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===zb.S?4:16,b="number"==typeof h?h:n===zb.S?12:16,y=a??(o?t(Ib,{...o}):null),v=l??(s?t(rb,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(Wb,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(No,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(Bb,{$gap:f,children:[y?t(jb,{children:y}):null,v,d]}):null,w&&t(Ob,{actions:c??[]})]}):null,t(Hb,{$fullHeight:r,children:u})]})});Xb.displayName="SectionCard";const Gb=n.div`
738
+ `,Vw=zt(({id:i,size:n=jw.M,fullHeight:r=!1,richTitle:o,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===jw.S?4:16,y="number"==typeof h?h:n===jw.S?12:16,b=a??(o?t(_w,{...o}):null),v=l??(s?t(aw,{...s}):null),w=!!v||!!d,$=!!c&&c.length>0;return e(Gw,{ref:m,id:i,"data-section-name":i,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[b||w||$?e(kl,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[b||w?e(Hw,{$gap:f,children:[b?t(Xw,{children:b}):null,v,d]}):null,$&&t(Nw,{actions:c??[]})]}):null,t(Ww,{$fullHeight:r,children:u})]})});Vw.displayName="SectionCard";const Kw=n.div`
739
739
  flex: 1;
740
740
  align-self: stretch;
741
741
  display: flex;
@@ -743,8 +743,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
743
743
  gap: 8px;
744
744
  padding: 16px;
745
745
  border-radius: 12px;
746
- background-color: ${({theme:e,$status:t})=>ro(e,t,t===Ni.Unknown?"750":"500")};
747
- `,Vb=n.div`
746
+ background-color: ${({theme:e,$status:t})=>sl(e,t,t===Ai.Unknown?"750":"500")};
747
+ `,Yw=n.div`
748
748
  display: flex;
749
749
  align-items: center;
750
750
  justify-content: center;
@@ -752,8 +752,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
752
752
  height: fit-content;
753
753
  padding: 8px;
754
754
  border-radius: 12px;
755
- background-color: ${({theme:e,$status:t})=>t===Ni.Unknown?ro(e,t,"800"):ro(e,t,"900")+Bf["015"]};
756
- `,Kb=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Bo(i,s),d=[Ni.Default,Ni.Info,Ni.Disabled,Ni.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Gb,{$status:i,children:[t(Vb,{$status:i,children:t(l,{size:32,fill:d})}),e(Ao,{$gap:2,$justifyContent:"center",children:[t(Hn,{size:Mn.M,weight:500,color:d,nowrap:!0,children:r}),t(Hn,{size:Mn.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},Yb=n.div`
755
+ background-color: ${({theme:e,$status:t})=>t===Ai.Unknown?sl(e,t,"800"):sl(e,t,"900")+Hv["015"]};
756
+ `,Jw=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Hl(i,s),d=[Ai.Default,Ai.Info,Ai.Disabled,Ai.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Kw,{$status:i,children:[t(Yw,{$status:i,children:t(l,{size:32,fill:d})}),e(Il,{$gap:2,$justifyContent:"center",children:[t(Ga,{size:Ba.M,weight:500,color:d,nowrap:!0,children:r}),t(Ga,{size:Ba.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},qw=n.div`
757
757
  flex: 0.5;
758
758
  display: flex;
759
759
  flex-direction: column;
@@ -761,7 +761,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
761
761
  padding: 12px;
762
762
  border-radius: 12px;
763
763
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
764
- `,Jb=["-","N/A","undefined","null","undefined/undefined","null/null"],qb=({title:i,cells:n,bgTint:r="800"})=>{const a=o();return e(Yb,{$bgTint:r,children:[t(Hn,{nowrap:!0,size:Mn.XXS,color:a.v2.colors.grey[150],children:i}),t(No,{$gap:32,children:n.map((n,r)=>e(Ao,{$gap:2,children:[!n.isLoading||n.value&&!Jb.includes(n.value)?t(Hn,{nowrap:!0,size:n.label?Mn.M:Mn.L,children:n.value}):t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Hn,{nowrap:!0,size:Mn.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},Qb=n.div`
764
+ `,Qw=["-","N/A","undefined","null","undefined/undefined","null/null"],Zw=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(qw,{$bgTint:a,children:[t(tv,{text:n,children:t(Ga,{nowrap:!0,size:Ba.XXS,color:s.v2.colors.grey[150],children:i})}),t(kl,{$gap:32,children:r.map((n,r)=>e(Il,{$gap:2,children:[!n.isLoading||n.value&&!Qw.includes(n.value)?t(Ga,{nowrap:!0,size:n.label?Ba.M:Ba.L,children:n.value}):t(jl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Ga,{nowrap:!0,size:Ba.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},e$=n.div`
765
765
  padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
766
766
 
767
767
  display: flex;
@@ -792,25 +792,25 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
792
792
  outline-offset: 1px;
793
793
  }
794
794
  `}
795
- `,Zb=n.div`
795
+ `,t$=n.div`
796
796
  flex: 1;
797
797
  min-width: 0;
798
798
  display: flex;
799
799
  align-items: center;
800
800
  padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
801
- `,ey=n.span`
801
+ `,i$=n.span`
802
802
  flex-shrink: 0;
803
803
  width: 1px;
804
804
  align-self: stretch;
805
805
  background: ${({theme:e,$disabled:t,$error:i})=>i?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
806
- `,ty=n.span`
806
+ `,n$=n.span`
807
807
  flex-shrink: 0;
808
808
  display: flex;
809
809
  align-items: center;
810
810
  justify-content: flex-start;
811
811
  min-width: ${({$small:e})=>e?"unset":"12ch"};
812
812
  padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
813
- `,iy=n.input`
813
+ `,r$=n.input`
814
814
  max-width: ${({$maxWidth:e})=>e||"unset"};
815
815
  width: ${({$width:e})=>e||"unset"};
816
816
 
@@ -848,12 +848,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
848
848
  pointer-events: none;
849
849
  user-select: none;
850
850
  }
851
- `,ny=n.div`
851
+ `,o$=n.div`
852
852
  display: flex;
853
853
  align-items: center;
854
854
  justify-content: center;
855
855
  cursor: pointer;
856
- `,ry=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,hideFocusOutline:p=!1,errorMessage:h,warnMessage:g,helpMessage:m,type:f=Oi.Text,name:b,value:y,onChange:v,disabled:$,maxWidth:w,width:S,small:x=!1,onClick:E,...C})=>{const T=o(),O=f===Oi.Password,N=f===Oi.Number||f===Oi.Decimal,[A,k]=jt(!1),[I,_]=jt(null),R=e=>{e.stopPropagation();const t=e.target.value;if(f===Oi.Number||f===Oi.Decimal){const i=f===Oi.Number?pa(t):ua(t),n=null!=C.min?Number(C.min):void 0,r=null!=C.max?Number(C.max):void 0,o=f===Oi.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!o){const e=parseFloat(i);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,_(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}v?.(e)},D=e=>{["Enter"].includes(e.key)||e.stopPropagation()},L=u||!!h||!!I,P=y?T.v2.colors.white[500]:$?T.v2.colors.grey[400]:T.v2.colors.silver[200],U=x?14:18,M=Gt(null),F=uf(M,{deps:[y]}),z=C.readOnly&&F&&null!=y&&""!==y?String(y):"",B=!!c&&!O;return e(Ao,{$width:S,$gap:6,children:[t(db,{label:n,tooltip:a,required:r,badge:s}),t(Qb,{$small:x,$disabled:$,$readOnly:!!C.readOnly,$error:L,$clickable:!!E&&!$,$hasSuffix:B,$hideFocusOutline:p,onClick:$||!E&&!B?void 0:e=>{$||(B&&!C.readOnly&&M.current?.focus(),E?.(e))},children:B?e(i,{children:[t(Zb,{$small:x,children:t(Qm,{text:z,fullWidth:!0,keepAlive:!0,children:t(iy,{"data-id":b,type:N?Oi.Text:f,name:b,value:y,onChange:R,onKeyDown:D,disabled:$,$maxWidth:w,$width:"100%",$small:x,$tabular:N,...C,ref:M})})}),t(ey,{$disabled:$,$error:L}),t(ty,{$small:x,"aria-hidden":"true",children:t(Hn,{size:Mn.XXXS,color:$?Fn.Disable:Fn.Secondary,nowrap:!0,children:c})})]}):e(Qm,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(iy,{"data-id":b,type:A||N?Oi.Text:f,name:b,value:y,onChange:R,onKeyDown:D,disabled:$,$maxWidth:w,$width:S,$small:x,$tabular:N,...C,ref:M}),O?t(ny,{onClick:()=>k(e=>!e),children:t(A?Nt:At,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(cb,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},oy=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=jt(""),[c,u]=jt(!1),p=Xt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Xt(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=c?l:h,m=Xt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Wt(()=>{d(""),u(!0)},[]),b=Wt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Wt(e=>{u(e),e||d("")},[]),v=Wt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(Cb,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:mf.Bottom,children:t(ry,{name:i,leftIcon:St,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},ay=n.button`
856
+ `,a$=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,hideFocusOutline:p=!1,errorMessage:h,warnMessage:g,helpMessage:m,type:f=Oi.Text,name:y,value:b,onChange:v,disabled:w,maxWidth:$,width:S,small:x=!1,onClick:C,...E})=>{const T=o(),O=f===Oi.Password,A=f===Oi.Number||f===Oi.Decimal,[N,k]=jt(!1),[I,D]=jt(null),_=e=>{e.stopPropagation();const t=e.target.value;if(f===Oi.Number||f===Oi.Decimal){const i=f===Oi.Number?gd(t):hd(t),n=null!=E.min?Number(E.min):void 0,r=null!=E.max?Number(E.max):void 0,o=f===Oi.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!o){const e=parseFloat(i);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,D(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}v?.(e)},R=e=>{["Enter"].includes(e.key)||e.stopPropagation()},L=u||!!h||!!I,P=b?T.v2.colors.white[500]:w?T.v2.colors.grey[400]:T.v2.colors.silver[200],U=x?14:18,M=Gt(null),F=hv(M,{deps:[b]}),z=E.readOnly&&F&&null!=b&&""!==b?String(b):"",B=!!c&&!O;return e(Il,{$width:S,$gap:6,children:[t(uw,{label:n,tooltip:a,required:r,badge:s}),t(e$,{$small:x,$disabled:w,$readOnly:!!E.readOnly,$error:L,$clickable:!!C&&!w,$hasSuffix:B,$hideFocusOutline:p,onClick:w||!C&&!B?void 0:e=>{w||(B&&!E.readOnly&&M.current?.focus(),C?.(e))},children:B?e(i,{children:[t(t$,{$small:x,children:t(tv,{text:z,fullWidth:!0,keepAlive:!0,children:t(r$,{"data-id":y,type:A?Oi.Text:f,name:y,value:b,onChange:_,onKeyDown:R,disabled:w,$maxWidth:$,$width:"100%",$small:x,$tabular:A,...E,ref:M})})}),t(i$,{$disabled:w,$error:L}),t(n$,{$small:x,"aria-hidden":"true",children:t(Ga,{size:Ba.XXXS,color:w?ja.Disable:ja.Secondary,nowrap:!0,children:c})})]}):e(tv,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(r$,{"data-id":y,type:N||A?Oi.Text:f,name:y,value:b,onChange:_,onKeyDown:R,disabled:w,$maxWidth:$,$width:S,$small:x,$tabular:A,...E,ref:M}),O?t(o$,{onClick:()=>k(e=>!e),children:t(N?Ot:At,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(pw,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},s$=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=jt(""),[c,u]=jt(!1),p=Wt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Wt(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=c?l:h,m=Wt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Xt(()=>{d(""),u(!0)},[]),y=Xt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),b=Xt(e=>{u(e),e||d("")},[]),v=Xt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),w=c&&(o||m.length>0||l.length>0);return t(Ow,{open:w,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:yv.Bottom,children:t(a$,{name:i,leftIcon:St,placeholder:r,value:g,onChange:y,onFocus:f,disabled:a})})},l$=n.button`
857
857
  width: 100%;
858
858
  padding: 0;
859
859
  padding-right: 12px;
@@ -874,7 +874,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
874
874
  cursor: not-allowed;
875
875
  opacity: 0.5;
876
876
  }
877
- `,sy=n.div`
877
+ `,d$=n.div`
878
878
  width: ${({$hasIcon:e})=>e?"56px":"0"};
879
879
  height: 56px;
880
880
  display: flex;
@@ -885,31 +885,141 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
885
885
  `:r`
886
886
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
887
887
  `}
888
- `,ly=n.div`
888
+ `,c$=n.div`
889
889
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
890
890
  display: flex;
891
891
  justify-content: space-between;
892
892
  align-items: center;
893
893
  gap: 8px;
894
- `,dy=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=jt(!1);return e(ay,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(sy,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(ly,{$hasIcon:!!n,children:[r?t(zo,{withGradient:!0,titleSize:Mn.S}):t(Hn,{variant:Un.Span,align:"center",children:i}),t(kt,{rotate:90,size:24})]})]})},cy=({buttons:e})=>t(Ao,{$gap:12,children:e.map((e,i)=>t(dy,{...e},`${e.label}-${i}`))});var uy;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(uy||(uy={}));const py=n.div`
894
+ `,u$=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=jt(!1);return e(l$,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(d$,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(c$,{$hasIcon:!!n,children:[r?t(jl,{withGradient:!0,titleSize:Ba.S}):t(Ga,{variant:za.Span,align:"center",children:i}),t(Nt,{rotate:90,size:24})]})]})},p$=({buttons:e})=>t(Il,{$gap:12,children:e.map((e,i)=>t(u$,{...e},`${e.label}-${i}`))}),h$=[1,.75,.5,.25,0],g$=n.div`
895
+ display: flex;
896
+ flex-direction: column;
897
+ gap: 32px;
898
+ width: 100%;
899
+ min-width: 0;
900
+ `,m$=n(kl)`
901
+ align-items: center;
902
+ gap: 4px;
903
+ `,f$=n.div`
904
+ display: flex;
905
+ align-items: flex-start;
906
+ gap: 4px;
907
+ width: 100%;
908
+ min-width: 0;
909
+ `,y$=n.div`
910
+ display: flex;
911
+ flex-direction: column;
912
+ justify-content: space-between;
913
+ align-items: flex-end;
914
+ flex-shrink: 0;
915
+ height: ${({$plotHeight:e})=>e}px;
916
+ padding-bottom: 0;
917
+ `,b$=n.div`
918
+ display: flex;
919
+ flex-direction: column;
920
+ flex: 1;
921
+ min-width: 0;
922
+ `,v$=n.div`
923
+ position: relative;
924
+ display: flex;
925
+ align-items: flex-end;
926
+ width: 100%;
927
+ height: ${({$height:e})=>e}px;
928
+ border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
929
+ `,w$=n.div`
930
+ position: absolute;
931
+ inset: 0;
932
+ display: flex;
933
+ flex-direction: column;
934
+ justify-content: space-between;
935
+ pointer-events: none;
936
+ z-index: 0;
937
+ `,$$=n.div`
938
+ width: 100%;
939
+ height: 0;
940
+ border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
941
+ `,S$=n.div`
942
+ position: relative;
943
+ z-index: 1;
944
+ display: flex;
945
+ align-items: flex-end;
946
+ width: 100%;
947
+ height: 100%;
948
+ padding: 0 8px;
949
+ `,x$=n.div`
950
+ display: flex;
951
+ flex: 1;
952
+ align-items: flex-end;
953
+ justify-content: center;
954
+ height: 100%;
955
+ min-width: 0;
956
+ padding: 0 4px;
957
+
958
+ /* Tooltip wrapper must fill the slot so % bar height resolves against plot height. */
959
+ & > * {
960
+ display: flex;
961
+ align-items: flex-end;
962
+ width: 100%;
963
+ height: 100%;
964
+ max-width: 124px;
965
+ }
966
+ `,C$=n.div`
967
+ width: 100%;
968
+ height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
969
+ border-radius: 6px 6px 0 0;
970
+ background-color: ${({$color:e})=>e};
971
+ min-height: ${({$pct:e})=>e>0?"2px":"0"};
972
+ `,E$=n.div`
973
+ display: flex;
974
+ flex-direction: column;
975
+ gap: 4px;
976
+ width: 100%;
977
+ height: ${29}px;
978
+ padding: 0 8px;
979
+ `,T$=n.div`
980
+ display: flex;
981
+ height: 8px;
982
+ width: 100%;
983
+ `,O$=n.div`
984
+ display: flex;
985
+ flex: 1;
986
+ align-items: center;
987
+ justify-content: center;
988
+ min-width: 0;
989
+ `,A$=n.div`
990
+ width: 0;
991
+ height: 100%;
992
+ border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
993
+ `,N$=n.div`
994
+ display: flex;
995
+ width: 100%;
996
+ height: 17px;
997
+ `,k$=n.div`
998
+ display: flex;
999
+ flex: 1;
1000
+ align-items: center;
1001
+ justify-content: center;
1002
+ min-width: 0;
1003
+ overflow: hidden;
1004
+ `,I$=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Wt(()=>[s.v2.colors.purple[400],s.v2.colors.pink[500],s.v2.colors.red[500],s.v2.colors.orange[500],s.v2.colors.yellow[500],s.v2.colors.green[400],s.v2.colors.mint[500],s.v2.colors.blue[600]],[s]),d=Wt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Wt(()=>h$.map(e=>{return t=d*e,Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:1}):"0";var t}),[d]);return e(g$,{children:[!!i&&e(m$,{children:[t(Ga,{size:Ba.S,weight:500,children:i}),!!n&&t(tv,{text:n,withIcon:!0})]}),e(f$,{children:[t(y$,{$plotHeight:a,children:c.map((e,i)=>t(Ga,{size:Ba.XXS,color:ja.Primary,nowrap:!0,children:e},h$[i]))}),e(b$,{children:[e(v$,{$height:a,children:[t(w$,{children:h$.map(e=>t($$,{},e))}),t(S$,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(x$,{children:t(tv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(C$,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(E$,{children:[t(T$,{children:r.map((e,i)=>t(O$,{children:t(A$,{})},`tick-${e.label}-${i}`))}),t(N$,{children:r.map((e,i)=>t(k$,{children:t(Ga,{size:Ba.XXS,color:ja.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var D$;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(D$||(D$={}));const _$=n.div`
895
1005
  display: flex;
896
1006
  align-items: flex-end;
897
1007
  justify-content: space-between;
898
1008
  gap: 24px;
899
1009
  width: fit-content;
900
- `,hy=n.div`
1010
+ `,R$=n.div`
901
1011
  position: relative;
902
1012
  display: flex;
903
1013
  flex-direction: column;
904
1014
  align-items: center;
905
1015
  width: ${({$width:e})=>e??150}px;
906
1016
  flex-shrink: 0;
907
- `,gy=n.svg`
1017
+ `,L$=n.svg`
908
1018
  display: block;
909
1019
  width: 100%;
910
1020
  height: auto;
911
1021
  overflow: visible;
912
- `,my=n(Ao)`
1022
+ `,P$=n(Il)`
913
1023
  position: absolute;
914
1024
  left: 0;
915
1025
  right: 0;
@@ -917,14 +1027,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
917
1027
  align-items: center;
918
1028
  gap: 2px;
919
1029
  pointer-events: none;
920
- `,fy=n.span`
1030
+ `,U$=n.span`
921
1031
  display: inline-block;
922
1032
  flex-shrink: 0;
923
1033
  width: 9px;
924
1034
  height: 9px;
925
1035
  border-radius: 50%;
926
1036
  background-color: ${({$color:e})=>e};
927
- `,by=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:""}},yy=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},vy=(e,t,i,n,r)=>{const o=yy(e,t,i,n),a=yy(e,t,i,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${o.x} ${o.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},$y=({variant:i=uy.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=by(a),{number:g}=by(s),{number:m,prefix:f,suffix:b}=by(l),y=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),$=180-180*v,w=v>0?vy(60,60,55,180,$):null,S=v<1?vy(60,60,55,$,0):null,x=yy(60,60,55,180),E=yy(60,60,55,0),C=c??(i===uy.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===uy.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=jt(null),A=e=>`${f}${e}${b}`,k=i===uy.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",_="primary"===O?A(m):"secondary"===O?A(k):"",R=()=>N("primary"),D=()=>N("secondary"),L=()=>N(null);var P;return e(py,{children:[e(hy,{$width:n,children:[t(Qm,{keepAlive:!0,fullWidth:!0,title:I,text:_,children:e(gy,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[w&&t("path",{d:w,fill:"none",stroke:C,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:R,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:C,onMouseEnter:R,onMouseLeave:L}),v<1&&t("circle",{cx:E.x,cy:E.y,r:5,fill:T,onMouseEnter:D,onMouseLeave:L})]})}),r&&e(my,{children:[t(Hn,{size:Mn.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),t(Hn,{size:Mn.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(Ao,{$gap:7,children:[e(No,{$gap:8,$alignItems:"center",children:[t(fy,{$color:C}),t(Hn,{size:Mn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(No,{$gap:8,$alignItems:"center",children:[t(fy,{$color:T}),t(Hn,{size:Mn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},wy=n(No)`
1037
+ `,M$=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:""}},F$=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},z$=(e,t,i,n,r)=>{const o=F$(e,t,i,n),a=F$(e,t,i,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${o.x} ${o.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},B$=({variant:i=D$.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=M$(a),{number:g}=M$(s),{number:m,prefix:f,suffix:y}=M$(l),b=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),w=180-180*v,$=v>0?z$(60,60,55,180,w):null,S=v<1?z$(60,60,55,w,0):null,x=F$(60,60,55,180),C=F$(60,60,55,0),E=c??(i===D$.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(i===D$.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,A]=jt(null),N=e=>`${f}${e}${y}`,k=i===D$.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",D="primary"===O?N(m):"secondary"===O?N(k):"",_=()=>A("primary"),R=()=>A("secondary"),L=()=>A(null);var P;return e(_$,{children:[e(R$,{$width:n,children:[t(tv,{keepAlive:!0,fullWidth:!0,title:I,text:D,children:e(L$,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[$&&t("path",{d:$,fill:"none",stroke:E,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:_,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:R,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:L})]})}),r&&e(P$,{children:[t(Ga,{size:Ba.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),t(Ga,{size:Ba.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(Il,{$gap:7,children:[e(kl,{$gap:8,$alignItems:"center",children:[t(U$,{$color:E}),t(Ga,{size:Ba.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:d})]}),e(kl,{$gap:8,$alignItems:"center",children:[t(U$,{$color:T}),t(Ga,{size:Ba.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},j$=n(kl)`
928
1038
  width: 100%;
929
1039
  padding: 8px 12px;
930
1040
  border-radius: 6px;
@@ -933,26 +1043,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
933
1043
  align-items: center;
934
1044
  justify-content: space-between;
935
1045
  gap: 12px;
936
- `,Sy=n.div`
1046
+ `,H$=n.div`
937
1047
  position: relative;
938
1048
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
939
1049
  display: flex;
940
1050
  align-items: center;
941
1051
  gap: 4px;
942
- `,xy=n.pre`
1052
+ `,X$=n.pre`
943
1053
  flex: 1;
944
1054
  margin: 0;
945
1055
  padding: 0;
946
1056
  font-size: 12px;
947
1057
  color: #5ffb98; // TODO: add to theme
948
1058
  overflow-x: auto;
949
- `,Ey=n.span`
1059
+ `,W$=n.span`
950
1060
  flex-shrink: 0;
951
1061
  font-size: 14px;
952
1062
  color: #5ffb98; // TODO: add to theme
953
- `,Cy=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=rf({onDone:a}),l=Gt(null),[d,c]=jt(!1);return Ht(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;c(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),e(Ao,{$gap:4,children:[n&&t(Hn,{size:Mn.XXXS,color:Fn.Secondary,children:n}),e(wy,{$bgTint:i,children:[e(Sy,{$hideCopy:o,children:[t(xy,{ref:l,children:r}),d&&t(Ey,{children:"..."})]}),!o&&t(s,{value:r})]})]})},Ty=n(No)`
1063
+ `,G$=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=av({onDone:a}),l=Gt(null),[d,c]=jt(!1);return Ht(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;c(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),e(Il,{$gap:4,children:[n&&t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:n}),e(j$,{$bgTint:i,children:[e(H$,{$hideCopy:o,children:[t(X$,{ref:l,children:r}),d&&t(W$,{children:"..."})]}),!o&&t(s,{value:r})]})]})},V$=n(kl)`
954
1064
  gap: 0;
955
- `,Oy=n.button`
1065
+ `,K$=n.button`
956
1066
  padding: 4px 8px;
957
1067
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
958
1068
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -964,20 +1074,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
964
1074
  &:hover {
965
1075
  border: 1px solid ${({theme:e})=>e.colors.secondary};
966
1076
  }
967
- `,Ny=({isPrettyMode:i,setIsPrettyMode:n})=>e(Ty,{children:[t(Oy,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(It,{})}),t(Oy,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),Ay=n.table`
1077
+ `,Y$=({isPrettyMode:i,setIsPrettyMode:n})=>e(V$,{children:[t(K$,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(K$,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),J$=n.table`
968
1078
  border-collapse: collapse;
969
1079
  font-family: ${({theme:e})=>e.font_family.primary};
970
- `,ky=n.tbody``,Iy=n.tr`
1080
+ `,q$=n.tbody``,Q$=n.tr`
971
1081
  td:first-child {
972
1082
  padding-left: 0 !important;
973
1083
  }
974
1084
  td:last-child {
975
1085
  padding-right: 0 !important;
976
1086
  }
977
- `,_y=n.td`
1087
+ `,Z$=n.td`
978
1088
  vertical-align: top;
979
1089
  padding: 4px 6px;
980
- `,Ry=n.span`
1090
+ `,eS=n.span`
981
1091
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
982
1092
  overflow-wrap: break-word;
983
1093
  word-break: break-word;
@@ -985,7 +1095,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
985
1095
  /* Fallback for older browsers */
986
1096
  -ms-word-break: break-all;
987
1097
  font-size: 12px;
988
- `,Dy=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ei[n]:s?ei.palenight:ei.vsLight;let d="";if("json"===e){const e=rr(i,{}),t=Ra(e);d=Da(r?Er(t):t)}else d=i;return a&&"json"===e?t(Ly,{darkMode:s,str:d}):t(Zt,{theme:l||(s?ei.palenight:ei.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:i,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(Ry,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},Ly=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(Iy,{...i,children:[t(_y,{}),t(_y,{})]}));return t(Bt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(Zt,{theme:i?ei.palenight:ei.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(Ay,{children:t(ky,{children:o.map((o,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),d=i({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Bt,{children:[a(2,s),e(Iy,{...d,children:[t(_y,{children:t(Hn,{nowrap:!0,children:l[0].content})}),t(_y,{})]})]},`line-${s}`):2===l.length?t(Iy,{...d,children:l.map((i,o)=>{const{text:a,components:l}=((e,i)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,o]=e.split("=");switch(r){case"tooltip":return t(Qm,{withIcon:!0,text:o},`${r}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${r}-${o}-${n}`);let e=Bo(o,i);return e||(e=Bo(Ni.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(_y,{children:e(No,{children:[t(No,{children:l}),t(Ry,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},Py=n.div`
1098
+ `,tS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ei[n]:s?ei.palenight:ei.vsLight;let d="";if("json"===e){const e=ss(i,{}),t=Ld(e);d=Pd(r?Os(t):t)}else d=i;return a&&"json"===e?t(iS,{darkMode:s,str:d}):t(Zt,{theme:l||(s?ei.palenight:ei.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:i,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(eS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},iS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(Q$,{...i,children:[t(Z$,{}),t(Z$,{})]}));return t(Bt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(Zt,{theme:i?ei.palenight:ei.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(J$,{children:t(q$,{children:o.map((o,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),d=i({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Bt,{children:[a(2,s),e(Q$,{...d,children:[t(Z$,{children:t(Ga,{nowrap:!0,children:l[0].content})}),t(Z$,{})]})]},`line-${s}`):2===l.length?t(Q$,{...d,children:l.map((i,o)=>{const{text:a,components:l}=((e,i)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,o]=e.split("=");switch(r){case"tooltip":return t(tv,{withIcon:!0,text:o},`${r}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${r}-${o}-${n}`);let e=Hl(o,i);return e||(e=Hl(Ai.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(Z$,{children:e(kl,{children:[t(kl,{children:l}),t(eS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},nS=n.div`
989
1099
  display: flex;
990
1100
  align-items: ${({$slim:e})=>e?"flex-start":"center"};
991
1101
  gap: 8px;
@@ -1001,7 +1111,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1001
1111
  background-color: ${t?"transparent":i};
1002
1112
  }
1003
1113
  `}
1004
- `,Uy=n.div`
1114
+ `,rS=n.div`
1005
1115
  display: flex;
1006
1116
  align-items: center;
1007
1117
  justify-content: center;
@@ -1020,54 +1130,54 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1020
1130
  transform: scale(1.2);
1021
1131
  }
1022
1132
  `}
1023
- `,My=n(Ao)`
1133
+ `,oS=n(Il)`
1024
1134
  flex: 1;
1025
1135
  align-self: ${({$slim:e})=>e?"flex-start":"center"};
1026
1136
  min-width: 0;
1027
- `,Fy=n(Ao)`
1137
+ `,aS=n(Il)`
1028
1138
  align-self: stretch;
1029
1139
  flex-shrink: 0;
1030
- `,zy=n.div`
1140
+ `,sS=n.div`
1031
1141
  display: flex;
1032
1142
  align-items: center;
1033
1143
  justify-content: center;
1034
1144
  flex-shrink: 0;
1035
1145
  width: 24px;
1036
1146
  height: 24px;
1037
- `,By=({status:i,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:d,actionButtons:c,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:b=!1})=>{const y=o(),v=Bo(i,y),$=p?u?Ct:Tt:void 0,w=i===Ni.Unknown,S=i===Ni.Disabled,x=i===Ni.Loading||d,E=[Ni.Error,Ni.Warning,Ni.Success].includes(i),C=ro(y,i,S?h?"400":"700":w?"600":h?"300":"500"),T=S?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:E?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!w?C:T,N=!h||w||S?"rgba(0, 0, 0, 0.13)":ro(y,i,"800"),A=S?y.v2.colors.grey[900]:h||w?y.v2.colors.silver[800]:C,k=S?y.v2.colors.grey[800]:h||w?y.v2.colors.silver[700]:ro(y,i,"600");return e(Py,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(Uy,{$backgroundColor:N,$slim:b,children:x?t(zo,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(My,{$gap:4,$justifyContent:"center",$slim:b,children:[e(No,{$gap:10,$alignItems:"center",children:[t(Hn,{size:b?Mn.XS:Mn.S,weight:500,color:O,children:n}),l&&t(If,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:Mn.XXXS})]}),r&&t(Hn,{size:Mn.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(Fy,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(No,{$gap:8,children:c.map(e=>t(nf,{...e,variant:Zm.Secondary,size:ef.S},e["data-id"]??e.label))}),s]}),$&&t(zy,{children:t($,{size:24,fill:T})})]})},jy=n.div`
1147
+ `,lS=({status:i,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:d,actionButtons:c,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:y=!1})=>{const b=o(),v=Hl(i,b),w=p?u?Ct:Et:void 0,$=i===Ai.Unknown,S=i===Ai.Disabled,x=i===Ai.Loading||d,C=[Ai.Error,Ai.Warning,Ai.Success].includes(i),E=sl(b,i,S?h?"400":"700":$?"600":h?"300":"500"),T=S?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:C?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!$?E:T,A=!h||$||S?"rgba(0, 0, 0, 0.13)":sl(b,i,"800"),N=S?b.v2.colors.grey[900]:h||$?b.v2.colors.silver[800]:E,k=S?b.v2.colors.grey[800]:h||$?b.v2.colors.silver[700]:sl(b,i,"600");return e(nS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:N,$hoverBackgroundColor:k,$slim:y,onClick:p,children:[!g&&t(rS,{$backgroundColor:A,$slim:y,children:x?t(jl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(oS,{$gap:4,$justifyContent:"center",$slim:y,children:[e(kl,{$gap:10,$alignItems:"center",children:[t(Ga,{size:y?Ba.XS:Ba.S,weight:500,color:O,children:n}),l&&t(_v,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:Ba.XXXS})]}),r&&t(Ga,{size:Ba.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(aS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(kl,{$gap:8,children:c.map(e=>t(ov,{...e,variant:iv.Secondary,size:nv.S},e["data-id"]??e.label))}),s]}),w&&t(sS,{children:t(w,{size:24,fill:T})})]})},dS=n.div`
1038
1148
  display: flex;
1039
1149
  flex-direction: column;
1040
1150
  width: 100%;
1041
1151
  border-radius: 12px;
1042
1152
  overflow: hidden;
1043
- `,Hy=n.div`
1153
+ `,cS=n.div`
1044
1154
  display: flex;
1045
1155
  flex-direction: column;
1046
1156
  gap: 8px;
1047
1157
  padding: 8px 12px 16px 12px;
1048
1158
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1049
- `,Wy=n.div`
1159
+ `,uS=n.div`
1050
1160
  display: flex;
1051
1161
  align-items: center;
1052
1162
  gap: 8px;
1053
- `,Xy=n.div`
1163
+ `,pS=n.div`
1054
1164
  display: flex;
1055
1165
  align-items: center;
1056
1166
  justify-content: center;
1057
1167
  flex-shrink: 0;
1058
1168
  width: 18px;
1059
1169
  height: 18px;
1060
- `,Gy=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=jt(!1),d=Wt(()=>l(e=>!e),[]),c=Xt(()=>sa(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Xt(()=>kr(c),[c]);Ht(()=>{l(p||g||m)},[p,g,m]);const b=Xt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Xt(()=>p?Ni.Error:g?Ni.Warning:m?Ni.Info:Ni.Success,[p,g,m]),v=Xt(()=>n||(1===c.length?Pn(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:i,loading:n})=>e?"Something Failed":t||i?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[n,c,p,g,m,b]),$=Xt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),w=Xt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(jy,{children:[t(By,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(Hy,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Ni.Loading,d=i===Ni.Disabled?Ni.Info:i,c=l?null:Bo(d,a),u=i===Ni.Error?ro(a,Ni.Error,"500"):i===Ni.Warning?ro(a,Ni.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(Wy,{children:[t(Xy,{children:l||!c?t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Hn,{size:Mn.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},Vy=n.div`
1170
+ `,hS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=jt(!1),d=Xt(()=>l(e=>!e),[]),c=Wt(()=>dd(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Wt(()=>_s(c),[c]);Ht(()=>{l(p||g||m)},[p,g,m]);const y=Wt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),b=Wt(()=>p?Ai.Error:g?Ai.Warning:m?Ai.Info:Ai.Success,[p,g,m]),v=Wt(()=>n||(1===c.length?Fa(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:i,loading:n})=>e?"Something Failed":t||i?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[n,c,p,g,m,y]),w=Wt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),$=Wt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(dS,{children:[t(lS,{status:b,invertColors:!0,title:v,subTitle:w,badgeLabel:$,loading:y,isExtended:s,toggleExtended:d}),s&&t(cS,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Ai.Loading,d=i===Ai.Disabled?Ai.Info:i,c=l?null:Hl(d,a),u=i===Ai.Error?sl(a,Ai.Error,"500"):i===Ai.Warning?sl(a,Ai.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(uS,{children:[t(pS,{children:l||!c?t(jl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Ga,{size:Ba.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},gS=n.div`
1061
1171
  width: ${({$orientation:e,$thickness:t,$length:i})=>e===fi.Vertical?`${t}px`:i||"100%"};
1062
1172
  height: ${({$orientation:e,$thickness:t,$length:i})=>e===fi.Horizontal?`${t}px`:i||"100%"};
1063
1173
  margin: ${({$orientation:e,$margin:t})=>t||(e===fi.Horizontal?"8px 0":"0 8px")};
1064
- background-color: ${({$type:e,theme:t})=>e?ro(t,e):t.v2.colors.silver[500]};
1174
+ background-color: ${({$type:e,theme:t})=>e?sl(t,e):t.v2.colors.silver[500]};
1065
1175
  opacity: ${({$opacity:e})=>e||1};
1066
- `,Ky=({orientation:e=fi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(Vy,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var Yy,Jy,qy;(e=>{e.Default="default",e.SuccessError="successError"})(Yy||(Yy={})),(e=>{e.S="small",e.L="large"})(Jy||(Jy={})),(e=>{e.Left="left",e.Right="right"})(qy||(qy={}));const Qy=n.div`
1176
+ `,mS=({orientation:e=fi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(gS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var fS,yS,bS;(e=>{e.Default="default",e.SuccessError="successError"})(fS||(fS={})),(e=>{e.S="small",e.L="large"})(yS||(yS={})),(e=>{e.Left="left",e.Right="right"})(bS||(bS={}));const vS=n.div`
1067
1177
  display: flex;
1068
1178
  align-items: center;
1069
1179
  gap: ${({$gap:e})=>e}px;
1070
- `,Zy=n.div`
1180
+ `,wS=n.div`
1071
1181
  position: relative;
1072
1182
  display: flex;
1073
1183
  align-items: center;
@@ -1078,11 +1188,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1078
1188
  height: ${({$size:e})=>e}px;
1079
1189
  padding: ${4}px;
1080
1190
  border-radius: ${({$size:e})=>2*e}px;
1081
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:r,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&r)return t;if(i&&!r)return i;switch(n){case Yy.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case Yy.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
1191
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:r,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&r)return t;if(i&&!r)return i;switch(n){case fS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case fS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
1082
1192
 
1083
1193
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
1084
1194
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1085
- `,ev=n.div`
1195
+ `,$S=n.div`
1086
1196
  position: absolute;
1087
1197
  top: 50%;
1088
1198
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -1092,11 +1202,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1092
1202
  border-radius: 100%;
1093
1203
  background-color: ${({$color:e})=>e};
1094
1204
  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)"};
1095
- `,tv=({variant:n=Yy.Default,size:r=Jy.L,name:a,label:s,labelAlign:l=qy.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=xt,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:w,helpMessage:S})=>{const x=o(),E=g?x.v2.colors.grey[400]:x.v2.colors.white[500],C=r===Jy.S?10:16,T=d||x.v2.colors.silver[200],O=r===Jy.S?Mn.XXXS:Mn.XS,N=r===Jy.S?8:12;return e(Ao,{$gap:4,children:[e(No,{$justifyContent:"space-between",children:[e(Qy,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===qy.Left&&t(Hn,{color:T,size:O,nowrap:!0,children:s}),e(Zy,{$onBgColor:y,$offBgColor:v,$variant:n,$size:C,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(ev,{$color:E,$size:C,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:C,fill:E}),t(b,{size:C,fill:E})]})]}),s&&l===qy.Right&&t(Hn,{color:T,size:O,nowrap:!0,children:s})]}),t(db,{tooltip:c,badge:u})]}),t(cb,{errorMessage:$,warnMessage:w,helpMessage:S})]})},iv=n.div`
1205
+ `,SS=({variant:n=fS.Default,size:r=yS.L,name:a,label:s,labelAlign:l=bS.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=wt,offIcon:y=It,onBgColor:b,offBgColor:v,errorMessage:w,warnMessage:$,helpMessage:S})=>{const x=o(),C=g?x.v2.colors.grey[400]:x.v2.colors.white[500],E=r===yS.S?10:16,T=d||x.v2.colors.silver[200],O=r===yS.S?Ba.XXXS:Ba.XS,A=r===yS.S?8:12;return e(Il,{$gap:4,children:[e(kl,{$justifyContent:"space-between",children:[e(vS,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:A,children:[s&&l===bS.Left&&t(Ga,{color:T,size:O,nowrap:!0,children:s}),e(wS,{$onBgColor:b,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t($S,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:E,fill:C}),t(y,{size:E,fill:C})]})]}),s&&l===bS.Right&&t(Ga,{color:T,size:O,nowrap:!0,children:s})]}),t(uw,{tooltip:c,badge:u})]}),t(pw,{errorMessage:w,warnMessage:$,helpMessage:S})]})},xS=n.div`
1096
1206
  display: flex;
1097
1207
  flex-direction: ${({$direction:e})=>e===fi.Horizontal?"row":"column"};
1098
1208
  gap: ${({$direction:e})=>e===fi.Horizontal?16:8}px;
1099
- `,nv=({direction:i=fi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===Jy.S?Mn.XS:Mn.S;return e(iv,{$direction:i,children:[n&&t(Hn,{size:d,children:n}),a.map(e=>t(tv,{...e,labelAlign:qy.Right,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return i?t[i]=n:a.forEach(e=>t[e.id]=n),t});var i,n},disabled:o,size:r},`${n}-toggle-${e.id}`))]})};var rv;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(rv||(rv={}));const ov=n.div`
1209
+ `,CS=({direction:i=fi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===yS.S?Ba.XS:Ba.S;return e(xS,{$direction:i,children:[n&&t(Ga,{size:d,children:n}),a.map(e=>t(SS,{...e,labelAlign:bS.Right,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return i?t[i]=n:a.forEach(e=>t[e.id]=n),t});var i,n},disabled:o,size:r},`${n}-toggle-${e.id}`))]})};var ES;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(ES||(ES={}));const TS=n.div`
1100
1210
  width: ${({$size:e})=>1.5*e}px;
1101
1211
  height: ${({$size:e})=>1.5*e}px;
1102
1212
  display: flex;
@@ -1107,13 +1217,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1107
1217
  &:hover {
1108
1218
  background: ${({theme:e})=>e.v2.colors.silver[900]};
1109
1219
  }
1110
- `,av=({"data-id":e,icon:i,size:n=rv.S,onClick:r,disabled:o})=>t(ov,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),sv=n.div`
1220
+ `,OS=({"data-id":e,icon:i,size:n=ES.S,onClick:r,disabled:o})=>t(TS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),AS=n.div`
1111
1221
  display: flex;
1112
1222
  align-items: center;
1113
1223
  justify-content: space-between;
1114
1224
  width: 100%;
1115
1225
  overflow: hidden;
1116
- `,lv=n.div`
1226
+ `,NS=n.div`
1117
1227
  display: flex;
1118
1228
  align-items: center;
1119
1229
  gap: 16px;
@@ -1121,7 +1231,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1121
1231
  min-width: 0;
1122
1232
  flex: 1;
1123
1233
  overflow: hidden;
1124
- `,dv=n.div`
1234
+ `,kS=n.div`
1125
1235
  display: flex;
1126
1236
  align-items: center;
1127
1237
  justify-content: center;
@@ -1130,23 +1240,23 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1130
1240
  height: 36px;
1131
1241
  border-radius: 8px;
1132
1242
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1133
- `,cv=n.img`
1243
+ `,IS=n.img`
1134
1244
  width: 24px;
1135
1245
  height: 24px;
1136
- `,uv=n.div`
1246
+ `,DS=n.div`
1137
1247
  display: flex;
1138
1248
  align-items: center;
1139
1249
  gap: 16px;
1140
1250
  flex-shrink: 0;
1141
- `,pv=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(sv,{children:[e(lv,{children:[i?t(dv,{children:t(i,{size:24})}):n?t(dv,{children:t(cv,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Ao,{$gap:6,children:[(r||o?.length)&&e(No,{$gap:16,children:[r&&t(Hn,{size:Mn.S,weight:500,children:r}),o?.length&&t(No,{$gap:4,children:o?.map((e,i)=>t(If,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(No,{$gap:16,children:[a&&t(Hn,{size:Mn.XXS,children:a}),s?.length&&t(No,{$gap:4,children:s?.map((e,i)=>t(Af,{...e},`${e.label}-${i}`))})]})]})]}),e(uv,{children:[l&&t(tv,{...l}),d?.length?t(Cb,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(av,{"data-id":"drawer-close",icon:xt,size:rv.M,onClick:c,disabled:u})]})]}),hv=n.div`
1251
+ `,_S=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(AS,{children:[e(NS,{children:[i?t(kS,{children:t(i,{size:24})}):n?t(kS,{children:t(IS,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Il,{$gap:6,children:[(r||o?.length)&&e(kl,{$gap:16,children:[r&&t(Ga,{size:Ba.S,weight:500,children:r}),o?.length&&t(kl,{$gap:4,children:o?.map((e,i)=>t(_v,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(kl,{$gap:16,children:[a&&t(Ga,{color:ja.Secondary,size:Ba.XXS,children:a}),s?.length&&t(kl,{$gap:4,children:s?.map((e,i)=>t(Iv,{...e},`${e.label}-${i}`))})]})]})]}),e(DS,{children:[l&&t(SS,{...l}),d?.length?t(Ow,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(OS,{"data-id":"drawer-close",icon:It,size:ES.M,onClick:c,disabled:u})]})]}),RS=n.div`
1142
1252
  position: relative;
1143
1253
  &.animated {
1144
1254
  overflow: hidden;
1145
1255
  padding-bottom: 1px;
1146
1256
  border-radius: 8px;
1147
- animation: ${({$isLeaving:e})=>e?Hf.out.bottom:Hf.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1257
+ animation: ${({$isLeaving:e})=>e?Wv.out.bottom:Wv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1148
1258
  }
1149
- `,gv=n.div`
1259
+ `,LS=n.div`
1150
1260
  position: absolute;
1151
1261
  bottom: -1px;
1152
1262
  left: 0;
@@ -1154,9 +1264,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1154
1264
  width: 100%;
1155
1265
  height: 100%;
1156
1266
  border-radius: 8px;
1157
- background-color: ${({theme:e,$status:t})=>ro(e,t,t===Ni.Default?"300":t===Ni.Info?"400":"500")};
1158
- animation: ${Wf.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1159
- `,mv=n.div`
1267
+ background-color: ${({theme:e,$status:t})=>sl(e,t,t===Ai.Default?"300":t===Ai.Info?"400":"500")};
1268
+ animation: ${Gv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1269
+ `,PS=n.div`
1160
1270
  display: flex;
1161
1271
  align-items: center;
1162
1272
  gap: 10px;
@@ -1165,37 +1275,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1165
1275
  `}
1166
1276
  padding: 8px 12px 8px 8px;
1167
1277
  border-radius: 8px;
1168
- background-color: ${({theme:e,$status:t})=>ro(e,t,[Ni.Info,Ni.Warning].includes(t)?"1000":"900")};
1169
- `,fv=n.div`
1278
+ background-color: ${({theme:e,$status:t})=>sl(e,t,[Ai.Info,Ai.Warning].includes(t)?"1000":"900")};
1279
+ `,US=n.div`
1170
1280
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
1171
1281
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
1172
1282
  display: flex;
1173
1283
  align-items: center;
1174
1284
  justify-content: center;
1175
1285
  border-radius: 6px;
1176
- background-color: ${({theme:e,$status:t})=>ro(e,t,[Ni.Info].includes(t)?"900":"800")};
1177
- `,bv=n.div`
1286
+ background-color: ${({theme:e,$status:t})=>sl(e,t,[Ai.Info].includes(t)?"900":"800")};
1287
+ `,MS=n.div`
1178
1288
  margin-left: auto;
1179
1289
  display: flex;
1180
1290
  align-items: center;
1181
1291
  gap: 4px;
1182
- `,yv=n.div`
1292
+ `,FS=n.div`
1183
1293
  margin-right: 8px;
1184
1294
  cursor: pointer;
1185
1295
  &:hover {
1186
1296
  transform: scale(1.2);
1187
1297
  }
1188
- `,vv=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Bo(i,p),g=ro(p,i,i===Ni.Default?"300":i===Ni.Info?"400":"500"),[m,f]=jt(!1),b=Gt(null),y=Gt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Ht(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(hv,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(b.current&&clearTimeout(b.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;b.current=setTimeout(()=>w({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(mv,{$status:i,$fullWidth:a,children:[t("div",{children:t(fv,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Hn,{color:g,size:Mn.XXXS,weight:400,children:n}),(r||d)&&e(bv,{children:[r&&t(yv,{"data-id":r["data-id"],onClick:r.onClick,children:t(Hn,{color:g,size:Mn.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(av,{"data-id":"note-close",icon:xt,size:rv.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(gv,{ref:y,$status:i,$duration:c})]})},$v=n.div`
1298
+ `,zS=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Hl(i,p),g=sl(p,i,i===Ai.Default?"300":i===Ai.Info?"400":"500"),[m,f]=jt(!1),y=Gt(null),b=Gt(null),v=c/10,w=c-v,$=e=>{d&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Ht(()=>{if(d)return y.current=setTimeout(()=>$({asSeen:!1}),w),()=>{y.current&&clearTimeout(y.current)}},[c]),e(RS,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(y.current&&clearTimeout(y.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*w;y.current=setTimeout(()=>$({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(PS,{$status:i,$fullWidth:a,children:[t("div",{children:t(US,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Ga,{color:g,size:Ba.XXXS,weight:400,children:n}),(r||d)&&e(MS,{children:[r&&t(FS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Ga,{color:g,size:Ba.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(OS,{"data-id":"note-close",icon:It,size:ES.XS,onClick:()=>$({asSeen:!0})})]})]}),d&&t(LS,{ref:b,$status:i,$duration:c})]})},BS=n.div`
1189
1299
  display: flex;
1190
1300
  align-items: center;
1191
1301
  gap: 8px;
1192
1302
  padding: 4px 12px;
1193
- `,wv=n.div`
1303
+ `,jS=n.div`
1194
1304
  flex: 1;
1195
- `,Sv=n.div`
1305
+ `,HS=n.div`
1196
1306
  min-width: 150px;
1197
1307
  width: fit-content;
1198
- `,xv=({note:i,actions:n,children:r})=>r?t($v,{children:r}):e($v,{children:[i&&t(vv,{...i}),t(wv,{}),n?.map((e,i)=>t(Sv,{children:t(nf,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),Ev=n.div`
1308
+ `,XS=({note:i,actions:n,children:r})=>r?t(BS,{children:r}):e(BS,{children:[i&&t(zS,{...i}),t(jS,{}),n?.map((e,i)=>t(HS,{children:t(ov,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),WS=n.div`
1199
1309
  position: fixed;
1200
1310
  top: 0;
1201
1311
  bottom: 0;
@@ -1215,16 +1325,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1215
1325
  overflow: hidden;
1216
1326
 
1217
1327
  ${({$disableAnimation:e,$position:t})=>!e&&r`
1218
- animation-name: ${Hf.in[t]};
1328
+ animation-name: ${Wv.in[t]};
1219
1329
  `}
1220
- `,Cv=n.div`
1330
+ `,GS=n.div`
1221
1331
  display: flex;
1222
1332
  flex-direction: column;
1223
1333
  gap: 12px;
1224
1334
 
1225
1335
  height: calc(100% - ${56}px);
1226
1336
  overflow-y: auto;
1227
- `,Tv=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(zm(n),n?Qt(e(i,{children:[!r&&t(_o,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(Ev,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(pv,{...d}),t(Cv,{children:u}),c&&t(xv,{...c})]})]}),document.body):null),Ov=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Xt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Xt(()=>s.map(e=>e.label).join(", "),[s]);return t(Cb,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:gf.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(ry,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:i,readOnly:!0,tabIndex:-1})})},Nv=({error:i})=>{const n=o(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:i?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:i?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(nf,{variant:Zm.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Av=({children:e})=>t(ni,{FallbackComponent:({error:e,...i})=>t(zf,{children:t(Nv,{...i,error:e})}),children:e}),kv=n.header`
1337
+ `,VS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Hb(n),n?Qt(e(i,{children:[!r&&t(Rl,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(WS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(_S,{...d}),t(GS,{children:u}),c&&t(XS,{...c})]})]}),document.body):null),KS=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Wt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Wt(()=>s.map(e=>e.label).join(", "),[s]);return t(Ow,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:fv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(a$,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:i,readOnly:!0,tabIndex:-1})})},YS=({error:i})=>{const n=o(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:i?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:i?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(ov,{variant:iv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},JS=({children:e})=>t(ni,{FallbackComponent:({error:e,...i})=>t(jv,{children:t(YS,{...i,error:e})}),children:e}),qS=n.header`
1228
1338
  position: relative;
1229
1339
  width: 100%;
1230
1340
  padding: 12px 18px;
@@ -1232,12 +1342,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1232
1342
  display: flex;
1233
1343
  align-items: center;
1234
1344
  justify-content: space-between;
1235
- `,Iv=n(No)`
1345
+ `,QS=n(kl)`
1236
1346
  position: absolute;
1237
1347
  left: 50%;
1238
1348
  transform: translateX(-50%);
1239
1349
  gap: 16px;
1240
- `,_v=({left:i=[],center:n=[],right:r=[]})=>e(kv,{children:[t(No,{$gap:16,children:i}),t(Iv,{children:n}),t(No,{$gap:16,children:r})]}),Rv=n.div`
1350
+ `,ZS=({left:i=[],center:n=[],right:r=[]})=>e(qS,{children:[t(kl,{$gap:16,children:i}),t(QS,{children:n}),t(kl,{$gap:16,children:r})]}),ex=n.div`
1241
1351
  display: flex;
1242
1352
  align-items: center;
1243
1353
  gap: 4px;
@@ -1252,7 +1362,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1252
1362
  left: ${({$left:e})=>e||"unset"};
1253
1363
  top: 50%;
1254
1364
  transform: translateY(-50%);
1255
- `,Dv=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(Rv,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(Qm,{text:i||"",children:t(nf,{...n,variant:n.variant||Zm.Secondary,size:ef.S})},n.id)})}):null,Lv=n.div`
1365
+ `,tx=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(ex,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(tv,{text:i||"",children:t(ov,{...n,variant:n.variant||iv.Secondary,size:nv.S})},n.id)})}):null,ix=n.div`
1256
1366
  display: flex;
1257
1367
  align-items: center;
1258
1368
  justify-content: center;
@@ -1260,8 +1370,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1260
1370
  height: ${({$size:e,$padding:t})=>e+t}px;
1261
1371
  aspect-ratio: 1 / 1;
1262
1372
  border-radius: 8px;
1263
- background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?ro(e,i,i===Ni.Warning?"1000":"900"):e.v2.colors.silver[800]};
1264
- `,Pv=({icons:i,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const d=o(),c=s/2.7,u=s/1.3,p=qr(c,d.v2.text.size);if(i&&i.length>1){const n=i.slice(0,3),r=i.length-n.length,o=n.slice(0,2),d=n.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(Lv,{$size:s,$padding:l,$status:a,children:e(Ao,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(No,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(No,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Hn,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(Lv,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},Uv=30,Mv=n.div`
1373
+ background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?sl(e,i,i===Ai.Warning?"1000":"900"):e.v2.colors.silver[800]};
1374
+ `,nx=({icons:i,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const d=o(),c=s/2.7,u=s/1.3,p=el(c,d.v2.text.size);if(i&&i.length>1){const n=i.slice(0,3),r=i.length-n.length,o=n.slice(0,2),d=n.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(ix,{$size:s,$padding:l,$status:a,children:e(Il,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(kl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(kl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Ga,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(ix,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},rx=30,ox=n.div`
1265
1375
  display: flex;
1266
1376
  align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
1267
1377
  gap: 8px;
@@ -1272,40 +1382,40 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1272
1382
  &:hover {
1273
1383
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1274
1384
  }
1275
- `,Fv=n(Hn)`
1385
+ `,ax=n(Ga)`
1276
1386
  flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
1277
- `,zv=n(Hn)`
1387
+ `,sx=n(Ga)`
1278
1388
  flex: 1 1 auto;
1279
1389
  min-width: 0;
1280
- `,Bv=n(No)`
1390
+ `,lx=n(kl)`
1281
1391
  flex: 1 1 auto;
1282
1392
  justify-content: flex-end;
1283
1393
  min-width: 0;
1284
- `,jv=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(Mv,{$withHealthBadge:s,children:[t(Fv,{size:Mn.XXS,color:Fn.Secondary,$withHealthBadge:s,children:i}),n?t(zv,{size:Mn.XXS,color:Fn.Primary,align:"right",children:n}):null,(r||s)&&e(Bv,{children:[r?t(If,{status:Ni.Info,label:Jn.STANDARD,textSize:Mn.XXXS,invertColors:!0}):null,s?e(No,{$gap:4,children:[a?t(zv,{size:Mn.XXXS,color:Fn.Error,align:"right",children:a}):null,t(If,{status:o?Ni.Success:Ni.Error,label:o?Jn.HEALTHY:Jn.NOT_HEALTHY,leftIcon:ee,textSize:Mn.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},Hv=n.div`
1394
+ `,dx=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(ox,{$withHealthBadge:s,children:[t(ax,{size:Ba.XXS,color:ja.Secondary,$withHealthBadge:s,children:i}),n?t(sx,{size:Ba.XXS,color:ja.Primary,align:"right",children:n}):null,(r||s)&&e(lx,{children:[r?t(_v,{status:Ai.Info,label:Za.STANDARD,textSize:Ba.XXXS,invertColors:!0}):null,s?e(kl,{$gap:4,children:[a?t(sx,{size:Ba.XXXS,color:ja.Error,align:"right",children:a}):null,t(_v,{status:o?Ai.Success:Ai.Error,label:o?Za.HEALTHY:Za.NOT_HEALTHY,leftIcon:ee,textSize:Ba.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},cx=n.div`
1285
1395
  width: 100%;
1286
1396
  border-radius: 8px;
1287
1397
  padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
1288
1398
  background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
1289
- `,Wv=({values:i,setValues:n,name:r,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,autoFocusNewRows:m=!0,plain:f})=>{const b=o(),y=i.length<=1,v=g,$=g||y&&v,w=i.length?i:[""];return t(Hv,{$plain:f,children:e(Ao,{"data-id":r,$gap:6,children:[t(db,{label:a,tooltip:s,required:d,badge:l}),t(Ao,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(No,{$gap:8,$alignItems:"center",children:[t(ry,{width:"100%",autoFocus:m&&ea(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...i||[]];r[t]=e,n(r)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(nf,{leftIcon:_t,variant:Zm.Secondary,size:ef.S,disabled:v,onClick:()=>(()=>{const e=i.length?fr(i):[fr("")];e.push(""),n(e)})()}),t(nf,{leftIcon:$?Rt:()=>t(Rt,{fill:b.v2.colors.red[500]}),variant:Zm.Secondary,size:ef.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(cb,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var Xv;(e=>{e.S="small",e.L="large"})(Xv||(Xv={}));const Gv=n.div`
1399
+ `,ux=({values:i,setValues:n,name:r,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,autoFocusNewRows:m=!0,plain:f})=>{const y=o(),b=i.length<=1,v=g,w=g||b&&v,$=i.length?i:[""];return t(cx,{$plain:f,children:e(Il,{"data-id":r,$gap:6,children:[t(uw,{label:a,tooltip:s,required:d,badge:l}),t(Il,{$gap:8,children:$.map((r,o)=>{const a=o===$.length-1;return e(kl,{$gap:8,$alignItems:"center",children:[t(a$,{width:"100%",autoFocus:m&&id(r)&&!b&&a,value:r,onChange:e=>((e,t)=>{const r=[...i||[]];r[t]=e,n(r)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(ov,{leftIcon:Dt,variant:iv.Secondary,size:nv.S,disabled:v,onClick:()=>(()=>{const e=i.length?vs(i):[vs("")];e.push(""),n(e)})()}),t(ov,{leftIcon:w?_t:()=>t(_t,{fill:y.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:w,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(pw,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var px;(e=>{e.S="small",e.L="large"})(px||(px={}));const hx=n.div`
1290
1400
  width: fit-content;
1291
1401
  display: flex;
1292
1402
  align-items: center;
1293
1403
  gap: 8px;
1294
1404
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1295
- `,Vv=n.div`
1296
- width: ${({$size:e})=>e===Xv.S?"16px":"20px"};
1297
- height: ${({$size:e})=>e===Xv.S?"16px":"20px"};
1405
+ `,gx=n.div`
1406
+ width: ${({$size:e})=>e===px.S?"16px":"20px"};
1407
+ height: ${({$size:e})=>e===px.S?"16px":"20px"};
1298
1408
  display: flex;
1299
1409
  align-items: center;
1300
1410
  justify-content: center;
1301
1411
  border-radius: 100%;
1302
1412
  border: 1px solid ${({$borderColor:e})=>e};
1303
1413
  background-color: ${({$backgroundColor:e})=>e};
1304
- `,Kv=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=Xv.L})=>{const d=o(),[c,u]=jt(!1),p=r,h=l===Xv.S?6:8,g=s?d.v2.colors.grey[400]:d.v2.colors.white[500],m=p?"transparent":s?d.v2.colors.grey[700]:c?d.v2.colors.silver[400]:d.v2.colors.silver[600],f=s?d.v2.colors.grey[600]:p?d.v2.colors.purple[500]:d.v2.colors.silver[900];return e(Gv,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Vv,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Dt,{size:h,fill:g}):null}),n&&t(Hn,{size:l===Xv.S?Mn.XXS:Mn.XS,children:n})]})},Yv=n.div`
1414
+ `,mx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=px.L})=>{const d=o(),[c,u]=jt(!1),p=r,h=l===px.S?6:8,g=s?d.v2.colors.grey[400]:d.v2.colors.white[500],m=p?"transparent":s?d.v2.colors.grey[700]:c?d.v2.colors.silver[400]:d.v2.colors.silver[600],f=s?d.v2.colors.grey[600]:p?d.v2.colors.purple[500]:d.v2.colors.silver[900];return e(hx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(gx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Ga,{size:l===px.S?Ba.XXS:Ba.XS,children:n})]})},fx=n.div`
1305
1415
  display: flex;
1306
1416
  flex-direction: ${({$flexDirection:e})=>e};
1307
1417
  gap: ${({$gap:e})=>e}px;
1308
- `,Jv=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(Yv,{$flexDirection:n===fi.Horizontal?"row":"column",$gap:n===fi.Horizontal?16:8,children:[i&&t(Hn,{children:i}),a.map(e=>t(Kv,{...e,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:r,size:o},`${i}-radio-${e.id}`))]}),qv=({col:i,colIdx:n,row:r,rowIdx:o,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:b,renderCondition:y,helpMessage:v,min:$,max:w}=i,S=r[p];if(y&&!y(r))return null;const x=c?void 0:m||void 0,E=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",i=Object.fromEntries((b||[]).map(t=>[t.id,t.id===e]));return t(Jv,{direction:fi.Horizontal,options:(b||[]).map(e=>({id:e.id,label:e.label})),values:i,setValues:e=>{const t="function"==typeof e?e(i):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Ti.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,i=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=b?.filter(e=>i.includes(e.id)).map(e=>e.id)||[];return t(Ov,{name:p,label:x,placeholder:E,options:b||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const r=a>1&&0===o&&0===n&&ea(S),c=t(ry,{name:p,label:x,placeholder:E,autoFocus:r,type:g,min:$,max:w,value:S??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:i.withRegexTester?"100%":void 0});return i.withRegexTester?e(No,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(nf,{variant:Zm.Secondary,size:ef.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},Qv=n.div`
1418
+ `,yx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(fx,{$flexDirection:n===fi.Horizontal?"row":"column",$gap:n===fi.Horizontal?16:8,children:[i&&t(Ga,{children:i}),a.map(e=>t(mx,{...e,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:r,size:o},`${i}-radio-${e.id}`))]}),bx=({col:i,colIdx:n,row:r,rowIdx:o,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:w,max:$}=i,S=r[p];if(b&&!b(r))return null;const x=c?void 0:m||void 0,C=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",i=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(yx,{direction:fi.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:i,setValues:e=>{const t="function"==typeof e?e(i):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Ti.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,i=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=y?.filter(e=>i.includes(e.id)).map(e=>e.id)||[];return t(KS,{name:p,label:x,placeholder:C,options:y||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const r=a>1&&0===o&&0===n&&id(S),c=t(a$,{name:p,label:x,placeholder:C,autoFocus:r,type:g,min:w,max:$,value:S??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:i.withRegexTester?"100%":void 0});return i.withRegexTester?e(kl,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(ov,{variant:iv.Secondary,size:nv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},vx=n.div`
1309
1419
  width: 100%;
1310
1420
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1311
1421
  border-radius: 8px;
@@ -1313,28 +1423,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1313
1423
  display: flex;
1314
1424
  flex-direction: column;
1315
1425
  gap: 8px;
1316
- `,Zv=n.div`
1426
+ `,wx=n.div`
1317
1427
  flex: 1;
1318
1428
  min-width: 0;
1319
- `,e$=n.div`
1429
+ `,$x=n.div`
1320
1430
  padding-top: 24px;
1321
- `,t$=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=i.find(e=>"segment"===e.componentType),f=m?.keyName,b=m?.options??[],y=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},v=m?.defaultValue||b[0]?.id||"",$=n.length?n:[y(v)],w=(f?$[0]?.[f]:"")||v,S=(e,t,i)=>{r($.map((n,r)=>r===e?{...n,[t]:i}:n))},x=()=>r([...$,y(w)]),E=b.find(e=>e.id===w);return e(Ao,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(db,{label:s,tooltip:l,required:d}),m&&t(tb,{"data-id":`${a}-mode`,size:Yf.S,fullWidth:!0,options:b.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:w,setSelected:e=>!c&&(e=>r([y(e)]))(String(e))}),e(Ao,{$gap:8,$width:"100%",children:[$.map((n,o)=>{const s=o===$.length-1,l=f?{...n,[f]:w}:n,d=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),b=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),C=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(b,h),T=E?.rowTitle?`${E.rowTitle} ${o+1}`:void 0;return e(Qv,{"data-id":`${a}-card-${o}`,children:[e(No,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Ao,{$gap:10,children:[T&&t(db,{label:T}),m.map(e=>t(No,{$gap:24,children:(e.options??[]).map(i=>t(Kv,{size:Xv.L,label:i.label,value:String(n[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&S(o,e.keyName,i.id)},`${a}-card-${o}-${e.keyName}-${i.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(No,{$gap:4,$alignItems:"center",children:[v&&t(nf,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:Zm.Secondary,size:ef.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(nf,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Zm.Secondary,size:ef.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(nf,{"data-id":`${a}-card-${o}-add`,leftIcon:_t,variant:Zm.Secondary,size:ef.S,disabled:c,onClick:x})]})]}),C.map((i,r)=>t(No,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,r)=>{const s=((e,t)=>{let{label:i,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(i=o.label??i,n=o.placeholder??n,r=o.helpMessage??r)}return{label:i,placeholder:n,helpMessage:r}})(i,n);return e(Bt,{children:["arrow"===i.separator&&r>0&&t(e$,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(Zv,{children:t(ry,{name:`${a}-card-${o}-${i.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:n[i.keyName]??"",disabled:c,hasError:!!u,onChange:e=>S(o,i.keyName,e.target.value)})})]},`${a}-card-${o}-${i.keyName}`)})},`${a}-card-${o}-row-${r}`))]},`${a}-card-${o}`)}),t(cb,{errorMessage:u})]})]})},i$=n.div`
1431
+ `,Sx=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=i.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",w=n.length?n:[b(v)],$=(f?w[0]?.[f]:"")||v,S=(e,t,i)=>{r(w.map((n,r)=>r===e?{...n,[t]:i}:n))},x=()=>r([...w,b($)]),C=y.find(e=>e.id===$);return e(Il,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(uw,{label:s,tooltip:l,required:d}),m&&t(nw,{"data-id":`${a}-mode`,size:qv.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:$,setSelected:e=>!c&&(e=>r([b(e)]))(String(e))}),e(Il,{$gap:8,$width:"100%",children:[w.map((n,o)=>{const s=o===w.length-1,l=f?{...n,[f]:$}:n,d=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),y=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),E=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(y,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e(vx,{"data-id":`${a}-card-${o}`,children:[e(kl,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Il,{$gap:10,children:[T&&t(uw,{label:T}),m.map(e=>t(kl,{$gap:24,children:(e.options??[]).map(i=>t(mx,{size:px.L,label:i.label,value:String(n[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&S(o,e.keyName,i.id)},`${a}-card-${o}-${e.keyName}-${i.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(kl,{$gap:4,$alignItems:"center",children:[v&&t(ov,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:iv.Secondary,size:nv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(ov,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?_t:()=>t(_t,{fill:g.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:c,onClick:()=>(e=>{const t=w.filter((t,i)=>i!==e);r(t.length?t:[b($)])})(o)}),s&&t(ov,{"data-id":`${a}-card-${o}-add`,leftIcon:Dt,variant:iv.Secondary,size:nv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(kl,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,r)=>{const s=((e,t)=>{let{label:i,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(i=o.label??i,n=o.placeholder??n,r=o.helpMessage??r)}return{label:i,placeholder:n,helpMessage:r}})(i,n);return e(Bt,{children:["arrow"===i.separator&&r>0&&t($x,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(wx,{children:t(a$,{name:`${a}-card-${o}-${i.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:n[i.keyName]??"",disabled:c,hasError:!!u,onChange:e=>S(o,i.keyName,e.target.value)})})]},`${a}-card-${o}-${i.keyName}`)})},`${a}-card-${o}-row-${r}`))]},`${a}-card-${o}`)}),t(pw,{errorMessage:u})]})]})},xx=n.div`
1322
1432
  width: 100%;
1323
1433
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1324
1434
  border-radius: 8px;
1325
1435
  padding: 4px 8px;
1326
- `,n$=n.table`
1436
+ `,Cx=n.table`
1327
1437
  width: 100%;
1328
1438
  border-collapse: separate;
1329
1439
  border-spacing: 0 8px;
1330
- `,r$=n.td`
1440
+ `,Ex=n.td`
1331
1441
  padding: 0 8px 0 0;
1332
1442
  vertical-align: top;
1333
- `,o$=n.td`
1443
+ `,Tx=n.td`
1334
1444
  width: 72px;
1335
1445
  vertical-align: ${({$center:e})=>e?"middle":"top"};
1336
1446
  padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
1337
- `,a$=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const b=o(),y=Xt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?fr(n):[fr(y)];o[i][e]=t,r(o)},$=n.length?n:[y];return t(i$,{children:e(Ao,{"data-id":a,$gap:0,children:[t(db,{label:s,tooltip:l,required:c,badge:d}),t(n$,{children:t("tbody",{children:$.map((o,a)=>{const s=a===$.length-1,l=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(i.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Bt,{children:[l.length>1&&a>0?t("tr",{children:t(r$,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],w=m?22:0;return e("tr",{children:[l.map((i,n)=>{if(i.renderCondition&&!i.renderCondition(o))return null;const r=n===l.length-1,s=0===g&&r?c-l.length+1:1;return t(r$,{colSpan:s>1?s:void 0,children:e(Ao,{$gap:6,children:[m&&(i.label?t(db,{label:i.label,tooltip:i.tooltip}):t(db,{label:"\\u00A0"})),t(qv,{col:i,colIdx:n,row:o,rowIdx:a,rowsLength:$.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(o$,{$topOffset:w,$center:h,children:e(No,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(nf,{leftIcon:_t,variant:Zm.Secondary,size:ef.S,disabled:u,onClick:()=>(()=>{const e=n.length?fr(n):[fr(y)],t=fr(y),o=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=o?.[e.keyName]&&""!==o[e.keyName]&&(t[e.keyName]=fr(o[e.keyName]))}),e.push(t),r(e)})()}),t(nf,{leftIcon:u?Rt:()=>t(Rt,{fill:b.v2.colors.red[500]}),variant:Zm.Secondary,size:ef.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push(fr(y)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(cb,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},s$=n.div`
1447
+ `,Ox=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=o(),b=Wt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?vs(n):[vs(b)];o[i][e]=t,r(o)},w=n.length?n:[b];return t(xx,{children:e(Il,{"data-id":a,$gap:0,children:[t(uw,{label:s,tooltip:l,required:c,badge:d}),t(Cx,{children:t("tbody",{children:w.map((o,a)=>{const s=a===w.length-1,l=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(i.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Bt,{children:[l.length>1&&a>0?t("tr",{children:t(Ex,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],$=m?22:0;return e("tr",{children:[l.map((i,n)=>{if(i.renderCondition&&!i.renderCondition(o))return null;const r=n===l.length-1,s=0===g&&r?c-l.length+1:1;return t(Ex,{colSpan:s>1?s:void 0,children:e(Il,{$gap:6,children:[m&&(i.label?t(uw,{label:i.label,tooltip:i.tooltip}):t(uw,{label:"\\u00A0"})),t(bx,{col:i,colIdx:n,row:o,rowIdx:a,rowsLength:w.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(Tx,{$topOffset:$,$center:h,children:e(kl,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(ov,{leftIcon:Dt,variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(()=>{const e=n.length?vs(n):[vs(b)],t=vs(b),o=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=o?.[e.keyName]&&""!==o[e.keyName]&&(t[e.keyName]=vs(o[e.keyName]))}),e.push(t),r(e)})()}),t(ov,{leftIcon:u?_t:()=>t(_t,{fill:y.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push(vs(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(pw,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var Ax;(e=>{e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right"})(Ax||(Ax={}));const Nx=n.div`
1338
1448
  display: flex;
1339
1449
  align-items: center;
1340
1450
  justify-content: space-between;
@@ -1342,15 +1452,38 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1342
1452
 
1343
1453
  padding: 18px 16px;
1344
1454
  border-radius: 18px;
1345
- background-color: ${({theme:e})=>e.v2.colors.black[500]+Bf["095"]};
1455
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Hv["095"]};
1346
1456
  box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
1347
1457
 
1348
1458
  position: fixed;
1349
- bottom: 0;
1350
- left: 50%;
1351
1459
  z-index: ${({theme:e})=>e.v2.zIndex.island};
1352
- animation-name: ${Hf.in.center};
1353
- `,l$=({isOpen:i,onClose:n,richTitle:r,actions:o})=>i?e(s$,{children:[t(Ib,{...r}),t(Ob,{onAnyClick:n,actions:o})]}):null,d$=n.div`
1460
+
1461
+ ${({$position:e})=>{switch(e){case Ax.BottomCenter:return r`
1462
+ bottom: 0;
1463
+ left: 50%;
1464
+ animation-name: ${Wv.in.center};
1465
+ `;case Ax.BottomRight:return r`
1466
+ bottom: 0;
1467
+ right: 0;
1468
+ animation-name: ${Wv.in.right};
1469
+ `;case Ax.BottomLeft:return r`
1470
+ bottom: 0;
1471
+ left: 0;
1472
+ animation-name: ${Wv.in.left};
1473
+ `;case Ax.TopCenter:return r`
1474
+ top: 0;
1475
+ left: 50%;
1476
+ animation-name: ${Wv.in.center};
1477
+ `;case Ax.TopRight:return r`
1478
+ top: 0;
1479
+ right: 0;
1480
+ animation-name: ${Wv.in.right};
1481
+ `;case Ax.TopLeft:return r`
1482
+ top: 0;
1483
+ left: 0;
1484
+ animation-name: ${Wv.in.left};
1485
+ `;default:return null}}}
1486
+ `,kx=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=Ax.BottomCenter})=>i?e(Nx,{$position:a,children:[r&&t(_w,{...r}),t(Nw,{onAnyClick:n,actions:o})]}):null,Ix=n.div`
1354
1487
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
1355
1488
  top: 50%;
1356
1489
  left: 50%;
@@ -1371,7 +1504,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1371
1504
  will-change: transform;
1372
1505
  contain: layout paint;
1373
1506
 
1374
- animation-name: ${({$closing:e})=>e?Hf.out.center:Hf.in.center};
1507
+ animation-name: ${({$closing:e})=>e?Wv.out.center:Wv.in.center};
1375
1508
  /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
1376
1509
  the global 300ms default which pairs with the fade-in for a soft entrance. */
1377
1510
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
@@ -1380,9 +1513,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1380
1513
  /* Block hover/click work on form children mid-close so their transitions
1381
1514
  don't compete with the slide-out. */
1382
1515
  ${({$closing:e})=>e&&"pointer-events: none;"}
1383
- `,c$=n(_o)`
1516
+ `,Dx=n(Rl)`
1384
1517
  will-change: opacity;
1385
- animation-name: ${({$closing:e})=>e?Vf.out:Vf.in};
1518
+ animation-name: ${({$closing:e})=>e?Yv.out:Yv.in};
1386
1519
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1387
1520
 
1388
1521
  /* The blurred backdrop is the most expensive thing on screen during the close
@@ -1390,18 +1523,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1390
1523
  recomposite per frame. Drop the blur while closing; visually identical
1391
1524
  because the overlay is fading to 0. */
1392
1525
  ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
1393
- `,u$=n.div`
1526
+ `,_x=n.div`
1394
1527
  position: relative;
1395
- `,p$=n.div`
1528
+ `,Rx=n.div`
1396
1529
  position: absolute;
1397
1530
  top: 16px;
1398
1531
  left: 16px;
1399
- `,h$=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=jt(n),[p,h]=jt(!1);if(Ht(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),zm(c),!c)return null;const g=e(i,{children:[!r&&t(c$,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(d$,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(u$,{children:[a&&t(p$,{children:t(av,{icon:e=>t(kt,{rotate:-90,...e}),size:rv.L,onClick:a})}),d]})})]});return o?g:Qt(g,document.body)},g$=n.div`
1532
+ `,Lx=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=jt(n),[p,h]=jt(!1);if(Ht(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Hb(c),!c)return null;const g=e(i,{children:[!r&&t(Dx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Ix,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(_x,{children:[a&&t(Rx,{children:t(OS,{icon:e=>t(Nt,{rotate:-90,...e}),size:ES.L,onClick:a})}),d]})})]});return o?g:Qt(g,document.body)},Px=n.div`
1400
1533
  position: relative;
1401
1534
  width: ${64}px;
1402
1535
  height: ${({$height:e})=>e};
1403
1536
  flex-shrink: 0;
1404
- `,m$=n.aside`
1537
+ `,Ux=n.aside`
1405
1538
  position: absolute;
1406
1539
  top: 0;
1407
1540
  left: 0;
@@ -1421,7 +1554,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1421
1554
  transition:
1422
1555
  width 200ms ease,
1423
1556
  padding 200ms ease;
1424
- `,f$=n.button`
1557
+ `,Mx=n.button`
1425
1558
  display: flex;
1426
1559
  align-items: center;
1427
1560
  width: 100%;
@@ -1441,20 +1574,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1441
1574
  &:active {
1442
1575
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
1443
1576
  }
1444
- `,b$=n.div`
1577
+ `,Fx=n.div`
1445
1578
  width: ${40}px;
1446
1579
  height: ${40}px;
1447
1580
  display: flex;
1448
1581
  align-items: center;
1449
1582
  justify-content: center;
1450
1583
  flex-shrink: 0;
1451
- `,y$=n.div`
1584
+ `,zx=n.div`
1452
1585
  flex: 1 1 0;
1453
1586
  min-width: 0;
1454
1587
  overflow: hidden;
1455
1588
  padding-right: 12px;
1456
1589
  pointer-events: none;
1457
- `,v$=({height:i,icons:n})=>{const r=o(),[a,s]=jt(!1);return t(g$,{$height:i,children:t(m$,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(f$,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(b$,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(y$,{children:t(Hn,{size:Mn.S,weight:500,color:Fn.Primary,nowrap:!0,children:n})})]},i))})})},$$=n.div`
1590
+ `,Bx=({height:i,icons:n})=>{const r=o(),[a,s]=jt(!1);return t(Px,{$height:i,children:t(Ux,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(Mx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(Fx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(zx,{children:t(Ga,{size:Ba.S,weight:500,color:ja.Primary,nowrap:!0,children:n})})]},i))})})},jx=n.div`
1458
1591
  display: flex;
1459
1592
  flex-direction: column;
1460
1593
  gap: 16px;
@@ -1478,26 +1611,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1478
1611
  }
1479
1612
  `}
1480
1613
  `}
1481
- `,w$=n.div`
1614
+ `,Hx=n.div`
1482
1615
  display: flex;
1483
1616
  align-items: center;
1484
1617
  gap: 16px;
1485
1618
  width: 100%;
1486
- `,S$=n.div`
1619
+ `,Xx=n.div`
1487
1620
  display: flex;
1488
1621
  flex-direction: column;
1489
1622
  gap: 4px;
1490
1623
  flex: 1;
1491
1624
  min-width: 0;
1492
- `,x$=n.div`
1625
+ `,Wx=n.div`
1493
1626
  display: flex;
1494
1627
  align-items: center;
1495
1628
  gap: 8px;
1496
1629
  flex-wrap: wrap;
1497
1630
  min-width: 0;
1498
- `,E$=n.div`
1631
+ `,Gx=n.div`
1499
1632
  width: 100%;
1500
- `,C$=({"data-id":i,title:n,badge:r,description:a,trailing:s,body:l,footerNote:d,checked:c,onChange:u,disabled:p})=>{const h=o(),g=i??`radio-card-${n}`,m=()=>{p||c||u(!0)};return e($$,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(w$,{children:[t(Kv,{"data-id":`${g}-radio`,value:c,onChange:m,size:Xv.L,disabled:p}),e(S$,{children:[e(x$,{children:[t(Hn,{size:Mn.S,weight:500,lineHeight:"24px",color:Fn.Primary,children:n}),r]}),a&&("string"==typeof a?t(Hn,{size:Mn.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:Fn.Secondary,children:a}):a)]}),s]}),l&&t(E$,{onClick:e=>e.stopPropagation(),children:l}),d&&t(E$,{onClick:e=>e.stopPropagation(),children:d})]})},T$=n.div`
1633
+ `,Vx=({"data-id":i,title:n,badge:r,description:a,trailing:s,body:l,footerNote:d,checked:c,onChange:u,disabled:p})=>{const h=o(),g=i??`radio-card-${n}`,m=()=>{p||c||u(!0)};return e(jx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Hx,{children:[t(mx,{"data-id":`${g}-radio`,value:c,onChange:m,size:px.L,disabled:p}),e(Xx,{children:[e(Wx,{children:[t(Ga,{size:Ba.S,weight:500,lineHeight:"24px",color:ja.Primary,children:n}),r]}),a&&("string"==typeof a?t(Ga,{size:Ba.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:ja.Secondary,children:a}):a)]}),s]}),l&&t(Gx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(Gx,{onClick:e=>e.stopPropagation(),children:d})]})},Kx=n.div`
1501
1634
  width: 100%;
1502
1635
  height: 100%;
1503
1636
 
@@ -1505,7 +1638,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1505
1638
  animation: none !important;
1506
1639
  transition: none !important;
1507
1640
  }
1508
- `,O$=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Gt(null),c=Xt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Wt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Ht(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ri,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(T$,{children:p}):p},N$=[{label:"Last 24 hours",value:24},{label:"Last 7 days",value:168},{label:"Last 30 days",value:720},{label:"Last 60 days",value:1440},{label:"Last 90 days",value:2160},{label:"Last 120 days",value:2880}],A$=N$[1].value,k$=N$[N$.length-1].value,I$=e=>({label:e?N$.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:Zm.Secondary,size:ef.S}),_$=n.input`
1641
+ `,Yx=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Gt(null),c=Wt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Xt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Ht(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ri,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(Kx,{children:p}):p},Jx=[{label:"Last 24 hours",value:24},{label:"Last 7 days",value:168},{label:"Last 30 days",value:720},{label:"Last 60 days",value:1440},{label:"Last 90 days",value:2160},{label:"Last 120 days",value:2880}],qx=Jx[1].value,Qx=Jx[Jx.length-1].value,Zx=e=>({label:e?Jx.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:iv.Secondary,size:nv.S}),eC=n.input`
1509
1642
  width: 100px;
1510
1643
  padding: 2px 12px;
1511
1644
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
@@ -1535,7 +1668,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1535
1668
  opacity: 0.4;
1536
1669
  }
1537
1670
  `}
1538
- `,R$=()=>(new Date).toISOString().split("T")[0],D$=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},L$=({options:i=N$,maxAllowedValue:n=k$,defaultValue:r=A$,onApply:o,onClose:a})=>{const[s]=jt(R$),[l,d]=jt(r),[c,u]=jt(()=>D$(s,r)),[p,h]=jt(void 0),g=Xt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Xt(()=>i.map(({label:e,value:i})=>t(nf,{label:e,variant:Zm.Text,size:ef.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(D$(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Ao,{$gap:24,children:[e(Ao,{children:[m,t(Ky,{}),e(Ao,{$gap:12,$padding:"0 12px",children:[t(Hn,{size:Mn.XXS,color:Fn.Secondary,nowrap:!0,children:"Custom range"}),e(No,{$gap:18,$justifyContent:"space-between",children:[t(Hn,{size:Mn.XXS,nowrap:!0,children:"From"}),t(_$,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(No,{$gap:18,$justifyContent:"space-between",children:[t(Hn,{size:Mn.XXS,nowrap:!0,children:"To"}),t(_$,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const i=new Date(e).getTime(),n=new Date(t).getTime(),r=Math.floor((n-i)/1e3/60/60);return r<0?Math.abs(r):r})(s,t));var t}})]}),p&&t(cb,{errorMessage:p}),e(Hn,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(nf,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},P$=n.div`
1671
+ `,tC=()=>(new Date).toISOString().split("T")[0],iC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},nC=({options:i=Jx,maxAllowedValue:n=Qx,defaultValue:r=qx,onApply:o,onClose:a})=>{const[s]=jt(tC),[l,d]=jt(r),[c,u]=jt(()=>iC(s,r)),[p,h]=jt(void 0),g=Wt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Wt(()=>i.map(({label:e,value:i})=>t(ov,{label:e,variant:iv.Text,size:nv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(iC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Il,{$gap:24,children:[e(Il,{children:[m,t(mS,{}),e(Il,{$gap:12,$padding:"0 12px",children:[t(Ga,{size:Ba.XXS,color:ja.Secondary,nowrap:!0,children:"Custom range"}),e(kl,{$gap:18,$justifyContent:"space-between",children:[t(Ga,{size:Ba.XXS,nowrap:!0,children:"From"}),t(eC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(kl,{$gap:18,$justifyContent:"space-between",children:[t(Ga,{size:Ba.XXS,nowrap:!0,children:"To"}),t(eC,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const i=new Date(e).getTime(),n=new Date(t).getTime(),r=Math.floor((n-i)/1e3/60/60);return r<0?Math.abs(r):r})(s,t));var t}})]}),p&&t(pw,{errorMessage:p}),e(Ga,{size:Ba.XXXS,color:ja.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(ov,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},rC=n.div`
1539
1672
  display: flex;
1540
1673
  flex-direction: column;
1541
1674
  gap: 16px;
@@ -1544,60 +1677,60 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1544
1677
  ${({$maxHeight:e})=>e&&`max-height: ${e};`}
1545
1678
  width: 100%;
1546
1679
  height: 100%;
1547
- `,U$=n.div`
1680
+ `,oC=n.div`
1548
1681
  display: flex;
1549
1682
  align-items: center;
1550
1683
  gap: 16px;
1551
- `,M$=n.div`
1684
+ `,aC=n.div`
1552
1685
  width: 50px;
1553
1686
  height: 50px;
1554
1687
  border-radius: 8px;
1555
1688
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1556
1689
  background-size: 200% 100%;
1557
- animation: ${Gf} 10s infinite linear;
1558
- `,F$=n(Ao)`
1690
+ animation: ${Kv} 10s infinite linear;
1691
+ `,sC=n(Il)`
1559
1692
  flex: 1;
1560
1693
  gap: 12px;
1561
- `,z$=n.div`
1694
+ `,lC=n.div`
1562
1695
  width: ${({$width:e})=>e};
1563
1696
  height: 16px;
1564
1697
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1565
1698
  background-size: 200% 100%;
1566
- animation: ${Gf} 1.5s infinite linear;
1699
+ animation: ${Kv} 1.5s infinite linear;
1567
1700
  border-radius: 4px;
1568
- `,B$=({size:i=5,maxWidth:n,maxHeight:r})=>t(P$,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(U$,{children:[t(M$,{}),e(F$,{children:[t(z$,{$width:"80%"}),t(z$,{$width:"100%"})]})]},n))}),j$=({currentStep:i,data:n,gap:r=12})=>t(Ao,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(No,{$gap:8,children:[r||n.forceDoneBadge?t(If,{status:Ni.Success,label:"",leftIcon:$t}):t(If,{status:Ni.Default,label:n.step.toString()}),t(Hn,{size:o?Mn.M:Mn.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var H$;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(H$||(H$={}));const W$=n.div`
1701
+ `,dC=({size:i=5,maxWidth:n,maxHeight:r})=>t(rC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(oC,{children:[t(aC,{}),e(sC,{children:[t(lC,{$width:"80%"}),t(lC,{$width:"100%"})]})]},n))}),cC=({currentStep:i,data:n,gap:r=12})=>t(Il,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(kl,{$gap:8,children:[r||n.forceDoneBadge?t(_v,{status:Ai.Success,label:"",leftIcon:wt}):t(_v,{status:Ai.Default,label:n.step.toString()}),t(Ga,{size:o?Ba.M:Ba.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var uC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(uC||(uC={}));const pC=n.div`
1569
1702
  ${({$maxHeight:e,$fitContent:t,$virtualize:i})=>t&&e&&i?`\n flex: 0 0 auto;\n height: ${e};\n overflow: hidden;\n `:t&&e?`\n flex: 0 0 auto;\n height: fit-content;\n max-height: ${e};\n overflow: auto;\n `:t?"\n flex: 0 0 auto;\n height: fit-content;\n overflow: auto;\n ":e?`\n height: ${e};\n flex: 0 0 auto;\n overflow: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow: hidden;\n "}
1570
1703
  width: 100%;
1571
1704
  display: flex;
1572
1705
  flex-direction: column;
1573
- `,X$=n.div`
1706
+ `,hC=n.div`
1574
1707
  width: 100%;
1575
1708
  flex: 1;
1576
1709
  min-height: 0;
1577
1710
  display: flex;
1578
1711
  flex-direction: column;
1579
- `,G$=n.div`
1712
+ `,gC=n.div`
1580
1713
  flex-shrink: 0;
1581
1714
  position: relative;
1582
1715
  z-index: 2;
1583
- `,V$=n.div`
1716
+ `,mC=n.div`
1584
1717
  flex: 1;
1585
1718
  min-height: 0;
1586
1719
  overflow: hidden;
1587
- `,K$=n.div`
1720
+ `,fC=n.div`
1588
1721
  position: relative;
1589
1722
  display: flex;
1590
1723
  width: 100%;
1591
- `,Y$=n.div`
1724
+ `,yC=n.div`
1592
1725
  display: flex;
1593
1726
  flex-direction: column;
1594
1727
  flex-shrink: 0;
1595
1728
  width: 100%;
1596
- `,J$=n.div`
1729
+ `,bC=n.div`
1597
1730
  width: 100%;
1598
1731
  flex-shrink: 0;
1599
1732
  ${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
1600
- `,q$=n.div`
1733
+ `,vC=n.div`
1601
1734
  position: relative;
1602
1735
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1603
1736
  flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:i})=>null!=i?`0 0 ${i}px`:e??(t?"0 0 auto":1)};
@@ -1616,15 +1749,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1616
1749
 
1617
1750
  ${({$variant:e,$backgroundColor:t})=>{if(t)return r`
1618
1751
  background-color: ${t};
1619
- `;switch(e){case H$.Data:return r`
1752
+ `;switch(e){case uC.Data:return r`
1620
1753
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1621
- `;case H$.DataSecondary:return r`
1754
+ `;case uC.DataSecondary:return r`
1622
1755
  border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
1623
1756
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1624
- `;case H$.Pretty:return r`
1757
+ `;case uC.Pretty:return r`
1625
1758
  background-color: transparent;
1626
1759
  `;default:return""}}}
1627
- `,Q$=n.div`
1760
+ `,wC=n.div`
1628
1761
  position: absolute;
1629
1762
  top: 50%;
1630
1763
  right: 0;
@@ -1632,7 +1765,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1632
1765
  width: 1px;
1633
1766
  height: 18px;
1634
1767
  background: ${({theme:e})=>e.v2.colors.silver[500]};
1635
- `,Z$=n.div`
1768
+ `,$C=n.div`
1636
1769
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1637
1770
  flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:i})=>null!=i?`0 0 ${i}px`:e??(t?"0 0 auto":1)};
1638
1771
 
@@ -1667,20 +1800,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1667
1800
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
1668
1801
  box-sizing: border-box;
1669
1802
 
1670
- ${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case H$.Data:return r`
1803
+ ${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case uC.Data:return r`
1671
1804
  border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
1672
1805
  border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
1673
1806
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
1674
- `;case H$.DataSecondary:return r`
1807
+ `;case uC.DataSecondary:return r`
1675
1808
  border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
1676
1809
  border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
1677
1810
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:"number"==typeof t&&t%2==0?e.v2.colors.silver[800]:e.v2.colors.silver[900]};
1678
- `;case H$.Pretty:return r`
1811
+ `;case uC.Pretty:return r`
1679
1812
  border: none;
1680
1813
  border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
1681
1814
  background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1682
1815
  `;default:return""}}}
1683
- `,ew=n.div`
1816
+ `,SC=n.div`
1684
1817
  position: absolute;
1685
1818
  top: 0;
1686
1819
  left: 0;
@@ -1689,18 +1822,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1689
1822
  height: 0;
1690
1823
  overflow: hidden;
1691
1824
  white-space: nowrap;
1692
- `,tw=n.div`
1825
+ `,xC=n.div`
1693
1826
  display: inline-flex;
1694
1827
  align-items: center;
1695
1828
  padding: 18px 24px;
1696
1829
  box-sizing: border-box;
1697
1830
  white-space: nowrap;
1698
- `,iw=n.div`
1831
+ `,CC=n.div`
1699
1832
  display: inline-flex;
1700
1833
  align-items: center;
1701
1834
  gap: 4px;
1702
1835
  white-space: nowrap;
1703
- `,nw=n.div`
1836
+ `,EC=n.div`
1704
1837
  width: 100%;
1705
1838
  height: 100%;
1706
1839
  display: flex;
@@ -1708,7 +1841,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1708
1841
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
1709
1842
  gap: 4px;
1710
1843
  text-align: ${({$textAlign:e})=>e||"left"};
1711
- `,rw=({variant:n,columns:r,row:o,rowIdx:a,rowCount:s,autoWidthColumnKeys:l,resolvedColumnWidths:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:g,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const[y,v]=jt(!1),{cells:$,onClick:w,isSelected:S=!1,onSelect:x,onDeselect:E,hideCheckbox:C,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),k=null!=N,I=k&&m===A,_=null!=g&&o.id===g,R=c(o),D=a===s-1,L=k||!!w,P=()=>{k&&f?.(A),w?.()},U=(e,t)=>({$isLastRow:D&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:_,$withClick:L,onClick:P,$hovered:L&&y,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}),M=I&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=e(i,{children:[h&&t(Z$,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!C&&(O?t(Qm,{text:O,children:t(gb,{value:S,disabled:T,onChange:()=>S?E?.():x?.()})}):t(gb,{value:S,disabled:T,onChange:()=>S?E?.():x?.()}))},"checkbox-column"),r.map(({key:i,withTooltip:o,textAlign:s,flex:c,minWidth:g},m)=>{const f=$.find(e=>e.key===i),b=0===m&&!h,v=m===r.length-1,w=0===m,S=!!R.length&&(!!u&&v||!!p&&b||!u&&!p&&v),x="right"===s?"flex-end":"center"===s?"center":"flex-start",E=f?.component?f.component():o?t(Hn,{size:Mn.XS,align:s,nowrap:!0,children:f?.rawValue||"-"}):t(_b,{size:Mn.XS,align:s,nowrap:!0,fullWidth:!1,children:f?.rawValue||"-"}),C=e(No,{$width:"100%",$gap:k&&w?8:0,$justifyContent:x,children:[k&&w?t(I?Tt:Ut,{}):null,E]});return e(Z$,{$variant:n,$index:a,$flex:c,$minWidth:g,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(b,v),children:[o?t(Qm,{text:f?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,S?t(Dv,{isOpen:y,actions:R,positionRight:u,positionLeft:p}):null]},`row-${a}-cell-${m}`)})]});return k?e(Y$,{"data-table-row-index":a,children:[t(K$,{children:F}),null!=M&&e(i,{children:[t(J$,{$maxHeight:b,children:M}),!D&&t(Ky,{margin:"0"})]})]}):t(K$,{"data-table-row-index":a,children:F})},ow=({variant:e,columns:n,rows:r,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h,useVirtua:g=!0,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const y=Xt(()=>r.map((i,p)=>t(rw,{variant:e,columns:n,row:i,rowIdx:p,rowCount:r.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b},`row-${p}`)),[r,u,s,l,d,c,n,o,a,m,f,b,e]);return g?t(O$,{gap:e===H$.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},aw=({columnKey:e,sortDirection:i,sortByKey:n,onSort:r})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=i===bi.Ascending?0:180;return t(nf,{variant:Zm.Text,size:ef.S,leftIcon:()=>t(kt,{fill:s,rotate:l}),onClick:()=>r(e)})},sw=({columnKey:e,filters:i,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=o(),l=i[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Xt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t(Cb,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},lw=({variant:i,backgroundColor:n,columns:r,rowsUnfiltered:o,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(K$,{children:[h&&t(q$,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(gb,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:b,noSort:y,noFilter:v,filterOverride:$,flex:w,minWidth:S,textAlign:x},E)=>{const C=0===E&&!h,T=E===r.length-1,O=!(!b&&!f),N=O?t(Hn,{size:Mn.XS,align:x,nowrap:!0,children:m}):t(_b,{size:Mn.XS,align:x,nowrap:!0,fullWidth:!1,children:m});return e(q$,{$variant:i,$backgroundColor:n,$flex:w,$minWidth:S,$isFirst:C,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(nw,{$textAlign:x,children:[O?t(Qm,{text:b||m,children:N}):N,!y&&t(aw,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!v&&t(sw,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:$})]}),!T&&i===H$.Data&&t(Q$,{})]},`column-${g}`)})]}),dw=()=>{},cw={},uw=[],pw=e=>[],hw=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:o,hideHeader:a=!1,isLoading:s,noDataProps:l,columns:d,rows:c,getRowActions:u,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,filters:m,onFiltersChange:f,activeRowId:b,scrollSignal:y,expandedRowId:v,onExpandedRowIdChange:$})=>{const[w,S]=jt(bi.Ascending),[x,E]=jt(""),[C,T]=jt({}),[O,N]=jt(null),A=m??C,k=void 0!==v,I=k?v:O,_=Wt(e=>{E(e),S(e=>e===bi.Ascending?bi.Descending:bi.Ascending)},[]),R=Wt((e,t)=>{const i={...A,[e]:t};f&&f(i),void 0===m&&T(i)},[A,f,m]),D=Xt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i&&(i.rawValue?.toString()||i.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,i)=>{const n=e(t,x),r=e(i,x);return(w===bi.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)))(n,r)}):c).filter(t=>{for(const[i,n]of Object.entries(A)){if(!n.length)continue;const r=d.find(e=>e.key===i)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1}else if(!n.includes(e(t,i)))return!1}return!0})},[c,x,w,A,d]),L=Xt(()=>null==b?-1:D.findIndex(e=>e.id===b),[D,b]),{partiallySelected:P,allSelected:U}=Xt(()=>{const e=D.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[D]),M=Xt(()=>{const e=new Set;for(const t of d)null!=t.flex&&e.add(t.key);const t=new Set;for(const i of c)for(const n of i.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,d]),F=Gt(null),[z,B]=jt({}),j=Xt(()=>0===M.size?[]:d.filter(e=>M.has(e.key)).map(i=>{const n=[e(iw,{children:[t(Hn,{size:Mn.XS,align:i.textAlign,children:i.label}),!i.noSort&&t(aw,{columnKey:i.key,sortDirection:bi.Ascending,sortByKey:"",onSort:dw}),!i.noFilter&&t(sw,{columnKey:i.key,filters:cw,onFilter:dw,rowsUnfiltered:uw,filterOverride:i.filterOverride})]},`mw-${i.key}-header`)];return c.forEach((e,r)=>{const o=e.cells.find(e=>e.key===i.key);o&&n.push(o.component?t(o.component,{},`mw-${i.key}-${r}`):t(Hn,{size:Mn.XS,children:o.rawValue||"-"},`mw-${i.key}-${r}`))}),{key:i.key,nodes:n}}),[d,c,M]);Vt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[i]||n>e[i])&&(e[i]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[j,M]);const H=Gt(null),[W,X]=jt(0),G=D.some(e=>null!=e.expandedContent);Vt(()=>{if(!G)return void X(0);const e=H.current;if(!e)return;const t=()=>{const t=e.clientHeight;X(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[G,D.length]);const V=Wt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),K=G&&W>0?`${W}px`:void 0,Y=r&&null!=n&&D.length>=100,J=!r||Y;return e(W$,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(ew,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(tw,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(X$,{$variant:i,children:[!a&&t(G$,{children:t(lw,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:w,sortByKey:x,onSort:_,filters:A,onFilter:R,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?D.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):D.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),D.length?G&&!r?t(V$,{ref:H,children:t(ow,{variant:i,columns:d,rows:D,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||pw,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(ow,{variant:i,columns:d,rows:D,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||pw,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:J,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(ko,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(B$,{size:3,maxHeight:n}):t(ab,{...l})})]})]})},gw=n.div`
1844
+ `,TC=({variant:n,columns:r,row:o,rowIdx:a,rowCount:s,autoWidthColumnKeys:l,resolvedColumnWidths:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:g,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:y})=>{const[b,v]=jt(!1),{cells:w,onClick:$,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:A}=o,N=o.id??String(a),k=null!=A,I=k&&m===N,D=null!=g&&o.id===g,_=c(o),R=a===s-1,L=k||!!$,P=()=>{k&&f?.(N),$?.()},U=(e,t)=>({$isLastRow:R&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:D,$withClick:L,onClick:P,$hovered:L&&b,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}),M=I&&null!=A?"function"==typeof A?A({maxHeight:y}):A:null,F=e(i,{children:[h&&t($C,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(tv,{text:O,children:t(fw,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(fw,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),r.map(({key:i,withTooltip:o,textAlign:s,flex:c,minWidth:g},m)=>{const f=w.find(e=>e.key===i),y=0===m&&!h,v=m===r.length-1,$=0===m,S=!!_.length&&(!!u&&v||!!p&&y||!u&&!p&&v),x="right"===s?"flex-end":"center"===s?"center":"flex-start",C=f?.component?f.component():o?t(Ga,{size:Ba.XS,align:s,nowrap:!0,children:f?.rawValue||"-"}):t(Rw,{size:Ba.XS,align:s,nowrap:!0,fullWidth:!1,children:f?.rawValue||"-"}),E=e(kl,{$width:"100%",$gap:k&&$?8:0,$justifyContent:x,children:[k&&$?t(I?Et:Ut,{}):null,C]});return e($C,{$variant:n,$index:a,$flex:c,$minWidth:g,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(y,v),children:[o?t(tv,{text:f?.rawValue?.toString()||"",ellipsis:!0,children:E}):E,S?t(tx,{isOpen:b,actions:_,positionRight:u,positionLeft:p}):null]},`row-${a}-cell-${m}`)})]});return k?e(yC,{"data-table-row-index":a,children:[t(fC,{children:F}),null!=M&&e(i,{children:[t(bC,{$maxHeight:y,children:M}),!R&&t(mS,{margin:"0"})]})]}):t(fC,{"data-table-row-index":a,children:F})},OC=({variant:e,columns:n,rows:r,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h,useVirtua:g=!0,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:y})=>{const b=Wt(()=>r.map((i,p)=>t(TC,{variant:e,columns:n,row:i,rowIdx:p,rowCount:r.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:y},`row-${p}`)),[r,u,s,l,d,c,n,o,a,m,f,y,e]);return g?t(Yx,{gap:e===uC.Pretty?8:0,elements:b,scrollToIndex:p,scrollSignal:h}):t(i,{children:b})},AC=({columnKey:e,sortDirection:i,sortByKey:n,onSort:r})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=i===yi.Ascending?0:180;return t(ov,{variant:iv.Text,size:nv.S,leftIcon:()=>t(Nt,{fill:s,rotate:l}),onClick:()=>r(e)})},NC=({columnKey:e,filters:i,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=o(),l=i[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Wt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t(Ow,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},kC=({variant:i,backgroundColor:n,columns:r,rowsUnfiltered:o,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(fC,{children:[h&&t(vC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(fw,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:w,flex:$,minWidth:S,textAlign:x},C)=>{const E=0===C&&!h,T=C===r.length-1,O=!(!y&&!f),A=O?t(Ga,{size:Ba.XS,align:x,nowrap:!0,children:m}):t(Rw,{size:Ba.XS,align:x,nowrap:!0,fullWidth:!1,children:m});return e(vC,{$variant:i,$backgroundColor:n,$flex:$,$minWidth:S,$isFirst:E,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(EC,{$textAlign:x,children:[O?t(tv,{text:y||m,children:A}):A,!b&&t(AC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!v&&t(NC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:w})]}),!T&&i===uC.Data&&t(wC,{})]},`column-${g}`)})]}),IC=()=>{},DC={},_C=[],RC=e=>[],LC=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:o,hideHeader:a=!1,isLoading:s,noDataProps:l,columns:d,rows:c,getRowActions:u,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,filters:m,onFiltersChange:f,activeRowId:y,scrollSignal:b,expandedRowId:v,onExpandedRowIdChange:w})=>{const[$,S]=jt(yi.Ascending),[x,C]=jt(""),[E,T]=jt({}),[O,A]=jt(null),N=m??E,k=void 0!==v,I=k?v:O,D=Xt(e=>{C(e),S(e=>e===yi.Ascending?yi.Descending:yi.Ascending)},[]),_=Xt((e,t)=>{const i={...N,[e]:t};f&&f(i),void 0===m&&T(i)},[N,f,m]),R=Wt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i?""!==i.rawValue&&null!=i.rawValue?i.rawValue:i.component?.({})?.props?.children?.toString()||"":""},t=/^-?\d+(\.\d+)?$/,i=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e){const i=e.trim();return t.test(i)?Number(i):e}return String(e??"")};return(x?[...c].sort((t,n)=>{const r=i(e(t,x)),o=i(e(n,x));return($===yi.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:String(e).localeCompare(String(t)))(r,o)}):c).filter(t=>{for(const[i,n]of Object.entries(N)){if(!n.length)continue;const r=d.find(e=>e.key===i)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1;continue}const o=String(e(t,i)??"");if(!n.map(String).includes(o))return!1}return!0})},[c,x,$,N,d]),L=Wt(()=>null==y?-1:R.findIndex(e=>e.id===y),[R,y]),{partiallySelected:P,allSelected:U}=Wt(()=>{const e=R.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[R]),M=Wt(()=>{const e=new Set;for(const t of d)null!=t.flex&&e.add(t.key);const t=new Set;for(const i of c)for(const n of i.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,d]),F=Gt(null),[z,B]=jt({}),j=Wt(()=>0===M.size?[]:d.filter(e=>M.has(e.key)).map(i=>{const n=[e(CC,{children:[t(Ga,{size:Ba.XS,align:i.textAlign,children:i.label}),!i.noSort&&t(AC,{columnKey:i.key,sortDirection:yi.Ascending,sortByKey:"",onSort:IC}),!i.noFilter&&t(NC,{columnKey:i.key,filters:DC,onFilter:IC,rowsUnfiltered:_C,filterOverride:i.filterOverride})]},`mw-${i.key}-header`)];return c.forEach((e,r)=>{const o=e.cells.find(e=>e.key===i.key);o&&n.push(o.component?t(o.component,{},`mw-${i.key}-${r}`):t(Ga,{size:Ba.XS,children:o.rawValue||"-"},`mw-${i.key}-${r}`))}),{key:i.key,nodes:n}}),[d,c,M]);Vt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[i]||n>e[i])&&(e[i]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[j,M]);const H=Gt(null),[X,W]=jt(0),G=R.some(e=>null!=e.expandedContent);Vt(()=>{if(!G)return void W(0);const e=H.current;if(!e)return;const t=()=>{const t=e.clientHeight;W(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[G,R.length]);const V=Xt(e=>{const t=I===e?null:e;k||A(t),w?.(t)},[I,k,w]),K=G&&X>0?`${X}px`:void 0,Y=r&&null!=n&&R.length>=100,J=!r||Y;return e(pC,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(SC,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(xC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(hC,{$variant:i,children:[!a&&t(gC,{children:t(kC,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:$,sortByKey:x,onSort:D,filters:N,onFilter:_,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),R.length?G&&!r?t(mC,{ref:H,children:t(OC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||RC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:y,scrollToIndex:L,scrollSignal:b,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(OC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||RC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:y,scrollToIndex:L,scrollSignal:b,useVirtua:J,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(Dl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(dC,{size:3,maxHeight:n}):t(lw,{...l})})]})]})},PC=n.div`
1712
1845
  padding: 6px 12px;
1713
1846
 
1714
1847
  display: flex;
@@ -1726,7 +1859,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1726
1859
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1727
1860
  }
1728
1861
  `}
1729
- `,mw=n.textarea`
1862
+ `,UC=n.textarea`
1730
1863
  max-width: ${({$maxWidth:e})=>e||"unset"};
1731
1864
  min-height: ${({$minHeight:e})=>e||"50px"};
1732
1865
  flex: 1;
@@ -1751,19 +1884,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1751
1884
  color: ${({theme:e})=>e.v2.colors.grey[400]};
1752
1885
  }
1753
1886
  }
1754
- `,fw=({label:i,required:n,tooltip:r,badge:o,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Gt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Ao,{$gap:6,children:[t(db,{label:i,tooltip:r,required:n,badge:o}),t(gw,{$disabled:p,$error:!!a,children:t(mw,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(cb,{errorMessage:a,warnMessage:s,helpMessage:l})]})},bw=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],yw=n.div`
1887
+ `,MC=({label:i,required:n,tooltip:r,badge:o,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Gt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Il,{$gap:6,children:[t(uw,{label:i,tooltip:r,required:n,badge:o}),t(PC,{$disabled:p,$error:!!a,children:t(UC,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(pw,{errorMessage:a,warnMessage:s,helpMessage:l})]})},FC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],zC=n.div`
1755
1888
  flex: 1;
1756
1889
  min-width: 0;
1757
- `,vw=n.div`
1890
+ `,BC=n.div`
1758
1891
  flex: 0 0 auto;
1759
1892
  min-width: 140px;
1760
- `,$w=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=bw,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Xt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Xt(()=>((e,t,i)=>{if(null==e||""===e)return{num:"",unit:i};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(r);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:i}:{num:"",unit:i}})(d,u,y),[d,u,y]),w=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Ao,{$width:b,$gap:6,children:[t(db,{label:n,tooltip:r,required:s,badge:o}),e(No,{$gap:8,$alignItems:"center",children:[t(yw,{children:t(ry,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(pa(e.target.value),$)})}),t(vw,{children:t(Ov,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(cb,{errorMessage:h,warnMessage:g,helpMessage:m})]})},ww=n.div`
1893
+ `,jC=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=FC,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Wt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:w}=Wt(()=>((e,t,i)=>{if(null==e||""===e)return{num:"",unit:i};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(r);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:i}:{num:"",unit:i}})(d,u,b),[d,u,b]),$=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Il,{$width:y,$gap:6,children:[t(uw,{label:n,tooltip:r,required:s,badge:o}),e(kl,{$gap:8,$alignItems:"center",children:[t(zC,{children:t(a$,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>$(gd(e.target.value),w)})}),t(BC,{children:t(KS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[w],setValues:e=>$(v,e[0]||w)})})]}),t(pw,{errorMessage:h,warnMessage:g,helpMessage:m})]})},HC=n.div`
1761
1894
  display: flex;
1762
1895
  flex-direction: column;
1763
1896
  min-width: 0;
1764
1897
  width: 100%;
1765
1898
  flex: 1;
1766
- `,Sw=n.div`
1899
+ `,XC=n.div`
1767
1900
  display: flex;
1768
1901
  flex-wrap: wrap;
1769
1902
  align-items: center;
@@ -1780,19 +1913,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1780
1913
  border-top-left-radius: 12px;
1781
1914
  border-top-right-radius: 12px;
1782
1915
  `;default:return r``}}}
1783
- `,xw=n.div`
1916
+ `,WC=n.div`
1784
1917
  display: flex;
1785
1918
  align-items: center;
1786
1919
  gap: 4px;
1787
1920
  min-width: 0;
1788
- `,Ew=n.div`
1921
+ `,GC=n.div`
1789
1922
  display: flex;
1790
1923
  align-items: center;
1791
1924
  justify-content: center;
1792
1925
  padding: 4px;
1793
1926
  border-radius: 4px;
1794
1927
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1795
- `,Cw=n.div`
1928
+ `,VC=n.div`
1796
1929
  display: flex;
1797
1930
  flex-direction: column;
1798
1931
  width: 100%;
@@ -1820,7 +1953,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1820
1953
  border-bottom-left-radius: 8px;
1821
1954
  border-bottom-right-radius: 8px;
1822
1955
  `;default:return r``}}}
1823
- `,Tw=r`
1956
+ `,KC=r`
1824
1957
  ${({theme:e,$variant:t})=>{switch(t){case"timing":return r`
1825
1958
  background-color: ${e.v2.colors.yellow[1e3]};
1826
1959
  border-left: 2px solid ${e.v2.colors.yellow[500]};
@@ -1838,7 +1971,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1838
1971
  ${({$selected:e,$variant:t,theme:i})=>e&&"default"===t&&r`
1839
1972
  border-left-color: ${i.v2.colors.silver[500]};
1840
1973
  `}
1841
- `,Ow=n.button`
1974
+ `,YC=n.button`
1842
1975
  display: flex;
1843
1976
  flex-direction: column;
1844
1977
  align-items: stretch;
@@ -1852,12 +1985,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1852
1985
  color: inherit;
1853
1986
  font: inherit;
1854
1987
  cursor: ${({$interactive:e})=>e?"pointer":"default"};
1855
- ${Tw}
1988
+ ${KC}
1856
1989
 
1857
1990
  &:last-child {
1858
1991
  box-shadow: none;
1859
1992
  }
1860
- `,Nw=n.div`
1993
+ `,JC=n.div`
1861
1994
  display: flex;
1862
1995
  align-items: center;
1863
1996
  gap: 8px;
@@ -1866,16 +1999,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1866
1999
  padding: 0 8px;
1867
2000
  padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
1868
2001
  box-sizing: border-box;
1869
- `,Aw=n(Hn)`
2002
+ `,qC=n(Ga)`
1870
2003
  flex-shrink: 0;
1871
2004
  min-width: 10px;
1872
- `,kw=n.div`
2005
+ `,QC=n.div`
1873
2006
  display: flex;
1874
2007
  flex: 1;
1875
2008
  align-items: center;
1876
2009
  gap: 4px;
1877
2010
  min-width: 0;
1878
- `,Iw=n.div`
2011
+ `,ZC=n.div`
1879
2012
  display: flex;
1880
2013
  flex-shrink: 0;
1881
2014
  align-items: center;
@@ -1885,22 +2018,22 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1885
2018
  overflow: hidden;
1886
2019
  border-radius: 4px;
1887
2020
  background-color: ${({theme:e})=>e.v2.colors.purple[900]};
1888
- `,_w=n(Hn)`
2021
+ `,eE=n(Ga)`
1889
2022
  width: 100%;
1890
2023
  overflow: hidden;
1891
2024
  font-family: ${({theme:e})=>e.font_family.code};
1892
2025
  line-height: 16px;
1893
2026
  text-overflow: ellipsis;
1894
2027
  white-space: nowrap;
1895
- `,Rw=n.div`
2028
+ `,tE=n.div`
1896
2029
  display: flex;
1897
2030
  flex: 1;
1898
2031
  align-items: center;
1899
2032
  gap: 8px;
1900
2033
  min-width: 0;
1901
- `,Dw=n(Hn)`
2034
+ `,iE=n(Ga)`
1902
2035
  flex-shrink: 0;
1903
- `,Lw=n.div`
2036
+ `,nE=n.div`
1904
2037
  display: flex;
1905
2038
  flex-shrink: 0;
1906
2039
  align-items: center;
@@ -1919,18 +2052,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1919
2052
  background-color: ${e.v2.colors.green[900]};
1920
2053
  color: ${e.v2.colors.green[300]};
1921
2054
  `}}}
1922
- `,Pw=n.div`
2055
+ `,rE=n.div`
1923
2056
  display: flex;
1924
2057
  flex: 1;
1925
2058
  align-items: center;
1926
2059
  gap: 4px;
1927
2060
  min-width: 0;
1928
- `,Uw=n.div`
2061
+ `,oE=n.div`
1929
2062
  display: flex;
1930
2063
  flex-direction: column;
1931
2064
  width: 100%;
1932
2065
  box-sizing: border-box;
1933
- `,Mw=n.div`
2066
+ `,aE=n.div`
1934
2067
  display: flex;
1935
2068
  align-items: center;
1936
2069
  width: 100%;
@@ -1939,20 +2072,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
1939
2072
  box-sizing: border-box;
1940
2073
  background-color: ${({theme:e})=>e.v2.colors.green[900]};
1941
2074
  border-left: 2px solid ${({theme:e})=>e.v2.colors.green[500]};
1942
- `,Fw=(e,t)=>{switch(t){case"warning":return e.v2.colors.yellow[400];case"danger":return e.v2.colors.red[300];case"success":return e.v2.colors.green[300]}},zw=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(Uw,{children:e(Ao,{$gap:0,children:[i.scopePlaceholder?t(Mw,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})}):r?t(jv,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(Mw,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(jv,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},Bw=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l="placeholder"!==s,d=i.depth??0,c=Wt(()=>{l&&r(i.id)},[l,r,i.id]);if("placeholder"===s)return t(Ow,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(Nw,{$depth:d,children:t(Pw,{children:i.badge?.icon?t(i.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=i.badge?.icon??void 0,p=i.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(Ow,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(Nw,{$depth:d,children:[t(Aw,{size:Mn.XXXS,color:Fn.Disable,nowrap:!0,children:i.index??""}),e(kw,{children:[i.service?t(Iw,{title:i.service,children:t(_w,{size:Mn.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(Rw,{children:[t(Hn,{size:Mn.XXXS,color:n||"default"!==s?Fn.Primary:Fn.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(Lw,{$tone:p,children:[t(Hn,{size:Mn.XXXS,color:Fw(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:Fw(a,p)}):null]}):null]}),i.durationLabel?t(Dw,{size:Mn.XXXS,color:h??Fn.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(zw,{row:i}):null]})},jw=({title:i,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Xt(()=>new Set(l??[]),[l]),h=Wt(e=>{d?.(e)},[d]),g=!!(n||i||r?.label||a?.length),m="success"===r?.tone?u.v2.colors.green[500]:"danger"===r?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===r?.tone?u.v2.colors.black[500]:"danger"===r?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(ww,{children:[g&&e(Sw,{$corner:c??"both",children:[(n||i)&&e(xw,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),i&&t(Hn,{size:Mn.XS,color:Fn.Primary,nowrap:!0,children:i})]}),r?.label?t(If,{label:r.label,backgroundColor:m,textColor:f,textSize:Mn.XXXS}):null,a?.map(e=>t(Ew,{children:t(Hn,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(Cw,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(Bw,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(No,{$justifyContent:"center",style:{padding:16},children:t(Hn,{size:Mn.XXXS,color:Fn.Secondary,children:"No spans"})})})]})},Hw=n.div`
2075
+ `,sE=(e,t)=>{switch(t){case"warning":return e.v2.colors.yellow[400];case"danger":return e.v2.colors.red[300];case"success":return e.v2.colors.green[300]}},lE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(oE,{children:e(Il,{$gap:0,children:[i.scopePlaceholder?t(aE,{children:t(Dt,{size:12,fill:n.v2.colors.green[500]})}):r?t(dx,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(aE,{children:t(Dt,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(dx,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},dE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l="placeholder"!==s,d=i.depth??0,c=Xt(()=>{l&&r(i.id)},[l,r,i.id]);if("placeholder"===s)return t(YC,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(JC,{$depth:d,children:t(rE,{children:i.badge?.icon?t(i.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=i.badge?.icon??void 0,p=i.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(YC,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(JC,{$depth:d,children:[t(qC,{size:Ba.XXXS,color:ja.Disable,nowrap:!0,children:i.index??""}),e(QC,{children:[i.service?t(ZC,{title:i.service,children:t(eE,{size:Ba.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(tE,{children:[t(Ga,{size:Ba.XXXS,color:n||"default"!==s?ja.Primary:ja.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(nE,{$tone:p,children:[t(Ga,{size:Ba.XXXS,color:sE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:sE(a,p)}):null]}):null]}),i.durationLabel?t(iE,{size:Ba.XXXS,color:h??ja.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(lE,{row:i}):null]})},cE=({title:i,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Wt(()=>new Set(l??[]),[l]),h=Xt(e=>{d?.(e)},[d]),g=!!(n||i||r?.label||a?.length),m="success"===r?.tone?u.v2.colors.green[500]:"danger"===r?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===r?.tone?u.v2.colors.black[500]:"danger"===r?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(HC,{children:[g&&e(XC,{$corner:c??"both",children:[(n||i)&&e(WC,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),i&&t(Ga,{size:Ba.XS,color:ja.Primary,nowrap:!0,children:i})]}),r?.label?t(_v,{label:r.label,backgroundColor:m,textColor:f,textSize:Ba.XXXS}):null,a?.map(e=>t(GC,{children:t(Ga,{size:Ba.XXXS,color:ja.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(VC,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(dE,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(kl,{$justifyContent:"center",style:{padding:16},children:t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:"No spans"})})})]})},uE=n.div`
1943
2076
  min-width: 500px;
1944
- `,Ww=n.div`
2077
+ `,pE=n.div`
1945
2078
  display: flex;
1946
2079
  flex-direction: column;
1947
2080
  align-items: center;
1948
2081
  gap: 16px;
1949
2082
  padding: 24px;
1950
2083
  width: 100%;
1951
- `,Xw=n.div`
2084
+ `,hE=n.div`
1952
2085
  display: flex;
1953
2086
  justify-content: center;
1954
2087
  gap: 16px;
1955
2088
  padding: 16px 24px;
1956
2089
  width: 100%;
1957
2090
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1958
- `,Gw=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(h$,{isOpen:o,onClose:a,...c,children:e(Hw,{children:[e(Ww,{children:[i&&t(i,{}),t(Hn,{size:Mn.M,weight:500,color:Fn.Primary,children:n}),t(Ao,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Hn,{size:Mn.XS,weight:400,color:Fn.Secondary,children:e},e))}),d]}),(s||l)&&e(Xw,{children:[s&&t(nf,{"data-id":"deny",...s}),l&&t(nf,{"data-id":"approve",...l})]})]})});export{Si as $,Tb as A,nf as B,ko as C,Tv as D,a$ as E,Ao as F,rr as G,Wv as H,av as I,ry as J,Oi as K,vv as L,h$ as M,ab as N,Gl as O,vi as P,ql as Q,Ib as R,Ni as S,Qm as T,Af as U,bo as V,Gw as W,Nl as X,Ql as Y,Zl as Z,Vl as _,Ob as a,Bl as a$,Rr as a0,Xb as a1,Rl as a2,tb as a3,oy as a4,Hl as a5,ub as a6,ed as a7,td as a8,Ol as a9,jl as aA,yl as aB,rl as aC,vl as aD,bl as aE,Cb as aF,ol as aG,$l as aH,nd as aI,fl as aJ,Yl as aK,rd as aL,id as aM,od as aN,ad as aO,Fl as aP,al as aQ,dl as aR,cl as aS,hl as aT,ml as aU,gl as aV,Cl as aW,Js as aX,qs as aY,nl as aZ,zl as a_,nr as aa,Ky as ab,t$ as ac,Yf as ad,js as ae,Sl as af,Fi as ag,ji as ah,Ji as ai,qi as aj,Qi as ak,Bi as al,Hi as am,zi as an,Pn as ao,Il as ap,ll as aq,kl as ar,sl as as,Ll as at,wl as au,Al as av,Dl as aw,Wl as ax,xl as ay,Kv as az,yi as b,_l as b$,Xl as b0,nu as b1,Qs as b2,Tl as b3,fr as b4,ru as b5,O$ as b6,zo as b7,rb as b8,Or as b9,ta as bA,Dn as bB,ca as bC,Ki as bD,da as bE,rs as bF,Pi as bG,Bf as bH,Oo as bI,B$ as bJ,Cn as bK,If as bL,di as bM,Us as bN,gi as bO,Ms as bP,Xv as bQ,_b as bR,Wn as bS,_a as bT,ts as bU,Ja as bV,qa as bW,Za as bX,Qa as bY,yd as bZ,El as b_,Nm as ba,Yn as bb,no as bc,xi as bd,Ei as be,wm as bf,_m as bg,Pm as bh,Am as bi,Xr as bj,Gn as bk,Rn as bl,tn as bm,Br as bn,Ls as bo,Ds as bp,_s as bq,Rs as br,Zo as bs,os as bt,Qo as bu,Um as bv,Nn as bw,li as bx,ai as by,ea as bz,Ps as c,Sn as c$,vd as c0,Ml as c1,bd as c2,tl as c3,il as c4,ul as c5,_n as c6,si as c7,Ln as c8,Fr as c9,Vo as cA,Go as cB,Mr as cC,Pv as cD,Em as cE,io as cF,Cr as cG,jo as cH,Wm as cI,Va as cJ,Xa as cK,aa as cL,ro as cM,Bo as cN,Lr as cO,ki as cP,Fa as cQ,ja as cR,Jf as cS,hw as cT,H$ as cU,l$ as cV,pl as cW,Hs as cX,Qr as cY,Pr as cZ,wn as c_,ns as ca,Un as cb,Vn as cc,mi as cd,C$ as ce,Nr as cf,By as cg,hr as ch,Gy as ci,On as cj,la as ck,wr as cl,Ko as cm,Gr as cn,Cf as co,Ba as cp,pf as cq,er as cr,Mi as cs,Zn as ct,Ha as cu,jv as cv,Dr as cw,Tf as cx,Cy as cy,Cm as cz,db as d,_h as d$,xn as d0,ws as d1,Os as d2,$s as d3,Ts as d4,Ns as d5,vs as d6,Es as d7,hs as d8,gs as d9,Ad as dA,Rd as dB,_d as dC,Od as dD,Td as dE,zs as dF,pd as dG,zh as dH,Ah as dI,kh as dJ,$h as dK,wh as dL,Mp as dM,Hp as dN,Bp as dO,Wp as dP,jp as dQ,Xp as dR,Qu as dS,qu as dT,oh as dU,rh as dV,ah as dW,ph as dX,Ru as dY,lh as dZ,sh as d_,Cs as da,Ss as db,xs as dc,Is as dd,ps as de,bs as df,ys as dg,fs as dh,ms as di,ss as dj,as as dk,ks as dl,As as dm,Fs as dn,Xs as dp,Bs as dq,Ws as dr,eu as ds,iu as dt,tu as du,Ed as dv,Sd as dw,wd as dx,xd as dy,kd as dz,Hn as e,um as e$,Rh as e0,vh as e1,yh as e2,xh as e3,Sh as e4,Ch as e5,Eh as e6,Fh as e7,Wh as e8,Xh as e9,fm as eA,Op as eB,$p as eC,bp as eD,fp as eE,qg as eF,Yu as eG,Ku as eH,Jg as eI,Vu as eJ,Gu as eK,ip as eL,tp as eM,rg as eN,rp as eO,Yy as eP,np as eQ,dp as eR,lp as eS,cp as eT,pp as eU,hp as eV,mp as eW,gp as eX,sp as eY,ap as eZ,op as e_,jh as ea,Hh as eb,Pp as ec,Up as ed,Rp as ee,Dp as ef,Lp as eg,Ip as eh,kp as ei,Np as ej,_p as ek,Ep as el,Uh as em,xp as en,wp as eo,Sp as ep,Ph as eq,Xu as er,Jp as es,Vh as et,Jh as eu,Cp as ev,Tp as ew,lm as ex,dm as ey,hm as ez,Fn as f,Md as f$,wu as f0,tm as f1,nm as f2,im as f3,Zu as f4,rm as f5,om as f6,am as f7,sm as f8,Nh as f9,zd as fA,Bd as fB,Hd as fC,jd as fD,Xd as fE,Wd as fF,Vd as fG,Gd as fH,Kd as fI,Dd as fJ,Ld as fK,ic as fL,nc as fM,dc as fN,sc as fO,lc as fP,oc as fQ,ac as fR,rc as fS,hc as fT,gc as fU,uc as fV,pc as fW,cc as fX,fc as fY,bc as fZ,mc as f_,$u as fa,Yh as fb,Kh as fc,cf as fd,ia as fe,mf as ff,gf as fg,Sm as fh,Zc as fi,Pd as fj,Yd as fk,Jd as fl,qd as fm,Qd as fn,ec as fo,Zd as fp,tc as fq,Eo as fr,Vc as fs,Kc as ft,Yc as fu,Jc as fv,qc as fw,Qc as fx,Ud as fy,Fd as fz,Mn as g,Rm as g$,Mc as g0,Fc as g1,zc as g2,Uc as g3,jc as g4,Hc as g5,Wc as g6,Xc as g7,Gc as g8,Bc as g9,hn as gA,pn as gB,A$ as gC,L$ as gD,I$ as gE,un as gF,Tr as gG,jw as gH,rn as gI,Ia as gJ,mn as gK,xf as gL,on as gM,an as gN,gn as gO,fn as gP,$y as gQ,uy as gR,yn as gS,To as gT,j$ as gU,Om as gV,xr as gW,Kn as gX,Wa as gY,bf as gZ,xm as g_,Lc as ga,Pc as gb,Tc as gc,_c as gd,Rc as ge,Dc as gf,Nc as gg,kc as gh,Ac as gi,yc as gj,vc as gk,$c as gl,wc as gm,Sc as gn,xc as go,Ec as gp,Cc as gq,Oc as gr,Ic as gs,Zr as gt,Co as gu,qb as gv,cn as gw,dn as gx,ln as gy,sn as gz,No as h,vu as h$,Hr as h0,Ar as h1,kr as h2,Wr as h3,jr as h4,zr as h5,Bm as h6,Sr as h7,$r as h8,vr as h9,Ng as hA,dg as hB,pg as hC,gg as hD,hg as hE,Yg as hF,Gg as hG,Xg as hH,Qg as hI,em as hJ,Zg as hK,mg as hL,fg as hM,bg as hN,Ag as hO,kg as hP,_u as hQ,Du as hR,Lu as hS,Pu as hT,Uu as hU,hu as hV,mu as hW,fu as hX,bu as hY,yu as hZ,gh as h_,Xn as ha,oo as hb,Wi as hc,Kb as hd,Ks as he,Gs as hf,Vs as hg,Ys as hh,Jl as hi,$d as hj,ud as hk,dd as hl,cd as hm,ld as hn,sd as ho,md as hp,fd as hq,gd as hr,hd as hs,hf as ht,tg as hu,qh as hv,Qh as hw,eg as hx,Zh as hy,ug as hz,ef as i,Yo as i$,ih as i0,Mu as i1,Fu as i2,zu as i3,Tu as i4,Ou as i5,Nu as i6,Au as i7,Bu as i8,ku as i9,Xi as iA,Di as iB,$n as iC,en as iD,Zi as iE,Yi as iF,bi as iG,ci as iH,_i as iI,vo as iJ,yo as iK,So as iL,gr as iM,tr as iN,mr as iO,ua as iP,Er as iQ,_r as iR,br as iS,Ur as iT,Qn as iU,Kr as iV,Yr as iW,Jr as iX,qr as iY,eo as iZ,Ho as i_,Iu as ia,Hu as ib,ju as ic,Cu as id,su as ie,au as ig,Ri as ih,pi as ii,Ii as ij,Li as ik,vn as il,bn as im,nn as io,$i as ip,wi as iq,Ai as ir,hi as is,En as it,fi as iu,ui as iv,Ui as iw,Ci as ix,Vi as iy,Gi as iz,Zm as j,du as j$,Jo as j0,qo as j1,na as j2,ra as j3,sa as j4,pa as j5,ha as j6,ga as j7,Ra as j8,Da as j9,Tg as jA,Cg as jB,yg as jC,wg as jD,Eg as jE,vg as jF,Sg as jG,$g as jH,xg as jI,Gh as jJ,Su as jK,Lh as jL,pu as jM,cm as jN,Fp as jO,zp as jP,eh as jQ,Ih as jR,Ap as jS,Eu as jT,xu as jU,gu as jV,Bh as jW,Wu as jX,cg as jY,uu as jZ,cu as j_,yr as ja,La as jb,Pa as jc,Tn as jd,Ka as je,Kl as jf,Id as jg,Nd as jh,Cd as ji,Pl as jj,Ul as jk,el as jl,Zs as jm,Ga as jn,ds as jo,cs as jp,us as jq,ls as jr,ou as js,Mh as jt,qp as ju,Qp as jv,Zp as jw,fh as jx,bh as jy,Og as jz,cb as k,zf as k$,ch as k0,og as k1,ng as k2,lg as k3,sg as k4,ag as k5,ig as k6,up as k7,Yp as k8,Vp as k9,Th as kA,lu as kB,Ju as kC,Oh as kD,nh as kE,Kg as kF,Vg as kG,Wg as kH,hh as kI,dh as kJ,vp as kK,kn as kL,In as kM,Ya as kN,vm as kO,jm as kP,Sf as kQ,Hm as kR,Fm as kS,ff as kT,zm as kU,of as kV,sf as kW,df as kX,uf as kY,Xm as kZ,vf as k_,Kp as ka,Gp as kb,Ug as kc,Pg as kd,_g as ke,Dg as kf,Rg as kg,Lg as kh,Hg as ki,Bg as kj,zg as kk,Mg as kl,Fg as km,Ig as kn,jg as ko,th as kp,yp as kq,uh as kr,gm as ks,mm as kt,Dh as ku,mh as kv,ep as kw,ym as kx,bm as ky,pm as kz,rv as l,Kf as l0,jf as l1,Ff as l2,dy as l3,cy as l4,fb as l5,bw as l6,Av as l7,_v as l8,Dv as l9,Uv as la,Ro as lb,v$ as lc,_o as ld,Df as le,Jv as lf,zb as lg,Do as lh,Lo as li,Po as lj,Ny as lk,nv as ll,Io as lm,Bn as ln,Fb as m,Dy as n,qn as o,Jn as p,Ti as q,tv as r,qy as s,oi as t,rf as u,Jy as v,$w as w,gb as x,Ov as y,fw as z};
2091
+ `,gE=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Lx,{isOpen:o,onClose:a,...c,children:e(uE,{children:[e(pE,{children:[i&&t(i,{}),t(Ga,{size:Ba.M,weight:500,color:ja.Primary,children:n}),t(Il,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Ga,{size:Ba.XS,weight:400,color:ja.Secondary,children:e},e))}),d]}),(s||l)&&e(hE,{children:[s&&t(ov,{"data-id":"deny",...s}),l&&t(ov,{"data-id":"approve",...l})]})]})});export{s$ as $,Aw as A,ov as B,Dl as C,VS as D,Bw as E,Il as F,zS as G,Ku as H,Ox as I,Zu as J,Iv as K,ep as L,tp as M,lw as N,Yu as O,vi as P,Si as Q,_w as R,Ai as S,tv as T,ku as U,vl as V,gE as W,Ps as X,Vw as Y,Lu as Z,nw as _,Nw as a,vs as a$,Wu as a0,hw as a1,ip as a2,np as a3,Nu as a4,as as a5,mS as a6,Sx as a7,qv as a8,Xc as a9,Ow as aA,su as aB,Su as aC,op as aD,bu as aE,qu as aF,ap as aG,rp as aH,sp as aI,lp as aJ,Bu as aK,lu as aL,uu as aM,pu as aN,mu as aO,yu as aP,fu as aQ,Ou as aR,Qc as aS,Zc as aT,ou as aU,ju as aV,Hu as aW,Vu as aX,og as aY,eu as aZ,Au as a_,Cu as aa,Fi as ab,ji as ac,Ji as ad,qi as ae,Qi as af,Bi as ag,Hi as ah,zi as ai,Fa as aj,_u as ak,cu as al,Du as am,du as an,Uu as ao,xu as ap,Iu as aq,Pu as ar,Gu as as,Eu as at,mx as au,Xu as av,wu as aw,au as ax,$u as ay,vu as az,bi as b,dC as b$,ag as b0,Yx as b1,jl as b2,aw as b3,av as b4,ks as b5,tS as b6,Ib as b7,Qa as b8,al as b9,Ki as bA,ud as bB,Av as bC,gr as bD,mr as bE,fr as bF,yr as bG,br as bH,un as bI,lo as bJ,co as bK,uo as bL,po as bM,ho as bN,an as bO,rn as bP,Ro as bQ,fn as bR,Yo as bS,gn as bT,Wo as bU,Ma as bV,Ua as bW,ac as bX,Pi as bY,Hv as bZ,Nl as b_,xi as ba,Ci as bb,Cb as bc,Lb as bd,Fb as be,Db as bf,Ks as bg,Ya as bh,Rn as bi,tn as bj,Xs as bk,Uc as bl,Pc as bm,Rc as bn,Lc as bo,td as bp,sc as bq,ed as br,zb as bs,Nn as bt,li as bu,ai as bv,id as bw,nd as bx,Un as by,pd as bz,Mc as c,Ho as c$,Tn as c0,_v as c1,di as c2,Fc as c3,gi as c4,zc as c5,px as c6,Rw as c7,Va as c8,Rd as c9,zr as cA,Ir as cB,kr as cC,Fr as cD,Mr as cE,Lr as cF,Rr as cG,Ur as cH,Pr as cI,Vr as cJ,Gr as cK,jr as cL,Br as cM,Wr as cN,Xr as cO,Hr as cP,qr as cQ,Jr as cR,Yr as cS,Kr as cT,kx as cU,ro as cV,zn as cW,Fn as cX,no as cY,Ax as cZ,jo as c_,nc as ca,Qd as cb,Zd as cc,tc as cd,ec as ce,wp as cf,Tu as cg,Ru as ch,$p as ci,zu as cj,vp as ck,nu as cl,ru as cm,hu as cn,Er as co,Cr as cp,Tr as cq,Or as cr,Qr as cs,Zr as ct,eo as cu,to as cv,_r as cw,Dr as cx,Nr as cy,Ar as cz,uw as d,_a as d$,Xo as d0,Vo as d1,Jn as d2,qn as d3,Gn as d4,Go as d5,To as d6,Eo as d7,fv as d8,Ao as d9,ua as dA,pa as dB,ca as dC,da as dD,Zo as dE,ma as dF,ga as dG,ha as dH,ba as dI,ya as dJ,fa as dK,ea as dL,$a as dM,wa as dN,va as dO,ta as dP,xa as dQ,Sa as dR,ia as dS,Ca as dT,Ta as dU,Na as dV,Aa as dW,Oa as dX,Ea as dY,La as dZ,Da as d_,Ko as da,Oo as db,$o as dc,or as dd,No as de,Wn as df,xo as dg,ko as dh,Io as di,Vn as dj,Kn as dk,Yn as dl,Qn as dm,Zn as dn,wo as dp,Pa as dq,Ra as dr,qo as ds,oa as dt,ra as du,na as dv,la as dw,sa as dx,aa as dy,Qo as dz,Ga as e,uC as e$,Ia as e0,ka as e1,sn as e2,hr as e3,cr as e4,pr as e5,ur as e6,sr as e7,lr as e8,dr as e9,Mi as eA,is as eB,Wd as eC,dx as eD,Us as eE,G$ as eF,Ab as eG,Yl as eH,Kl as eI,Bs as eJ,nx as eK,Ob as eL,ol as eM,As as eN,Xl as eO,Vb as eP,Yd as eQ,Vd as eR,ld as eS,sl as eT,Hl as eU,Ms as eV,ki as eW,Bd as eX,Xd as eY,Qv as eZ,LC as e_,ar as ea,rr as eb,_n as ec,si as ed,OS as ee,ES as ef,Mn as eg,js as eh,oc as ei,za as ej,Ja as ek,mi as el,Vx as em,Is as en,lS as eo,fs as ep,hS as eq,An as er,cd as es,Cs as et,Jl as eu,Ys as ev,Ov as ew,Hd as ex,gv as ey,ns as ez,ja as f,df as f$,gu as f0,Wc as f1,tl as f2,Fs as f3,Sn as f4,xn as f5,Cn as f6,xc as f7,Nc as f8,Sc as f9,Tp as fA,Cp as fB,xp as fC,Ep as fD,Dp as fE,Ip as fF,Lp as fG,Rp as fH,Np as fI,Ap as fJ,jc as fK,gp as fL,Hf as fM,Df as fN,_f as fO,xf as fP,Cf as fQ,zm as fR,Wm as fS,Hm as fT,Gm as fU,Xm as fV,Vm as fW,em as fX,Zg as fY,lf as fZ,sf as f_,Ac as fa,kc as fb,$c as fc,Tc as fd,mc as fe,fc as ff,Oc as fg,Cc as fh,Ec as fi,_c as fj,gc as fk,vc as fl,wc as fm,bc as fn,yc as fo,dc as fp,lc as fq,Dc as fr,Ic as fs,Bc as ft,Vc as fu,Hc as fv,Gc as fw,ig as fx,rg as fy,ng as fz,Ba as g,ym as g$,mf as g0,Lg as g1,uf as g2,cf as g3,Lf as g4,Pf as g5,Sf as g6,$f as g7,Tf as g8,Ef as g9,Om as gA,Am as gB,ub as gC,pb as gD,fb as gE,vb as gF,Nm as gG,Sm as gH,vm as gI,bm as gJ,eb as gK,qg as gL,Jg as gM,Zy as gN,Yg as gO,Kg as gP,rm as gQ,nm as gR,sy as gS,am as gT,fS as gU,om as gV,um as gW,cm as gX,pm as gY,gm as gZ,mm as g_,Af as ga,Of as gb,jf as gc,Vf as gd,Kf as ge,Wf as gf,Gf as gg,Mm as gh,Fm as gi,Lm as gj,Pm as gk,Um as gl,_m as gm,Dm as gn,km as go,Rm as gp,Tm as gq,zf as gr,Em as gs,xm as gt,Cm as gu,Ff as gv,Vg as gw,Qm as gx,Jf as gy,Zf as gz,kl as h,gh as h$,fm as h0,dm as h1,lm as h2,sm as h3,gb as h4,xg as h5,rb as h6,ab as h7,ob as h8,tm as h9,Qh as hA,Zh as hB,eg as hC,Fp as hD,Bp as hE,jp as hF,Hp as hG,Wp as hH,Xp as hI,Vp as hJ,Gp as hK,Yp as hL,Kp as hM,Jp as hN,Pp as hO,Up as hP,rh as hQ,oh as hR,uh as hS,dh as hT,ch as hU,sh as hV,lh as hW,ah as hX,mh as hY,fh as hZ,hh as h_,sb as ha,lb as hb,db as hc,cb as hd,If as he,Sg as hf,Qf as hg,qf as hh,pv as hi,rd as hj,yv as hk,Lx as hl,Eb as hm,tg as hn,Mp as ho,qp as hp,Qp as hq,Zp as hr,eh as hs,ih as ht,th as hu,nh as hv,Tl as hw,Yh as hx,Jh as hy,qh as hz,nv as i,Xn as i$,ph as i0,bh as i1,vh as i2,yh as i3,zp as i4,zh as i5,Bh as i6,jh as i7,Fh as i8,Xh as i9,il as iA,Ol as iB,Zw as iC,cn as iD,dn as iE,ln as iF,hn as iG,pn as iH,mn as iI,Ev as iJ,qx as iK,nC as iL,Zx as iM,Ns as iN,cE as iO,_d as iP,Pn as iQ,Ln as iR,I$ as iS,on as iT,tr as iU,wr as iV,mo as iW,fo as iX,Hn as iY,Bn as iZ,yo as i_,Wh as ia,Gh as ib,Vh as ic,Kh as id,Hh as ie,Uh as ig,Mh as ih,Ah as ii,Rh as ij,Lh as ik,Ph as il,kh as im,Dh as io,Ih as ip,wh as iq,$h as ir,Sh as is,xh as it,Ch as iu,Eh as iv,Th as iw,Oh as ix,Nh as iy,_h as iz,iv as j,Iy as j$,bo as j0,jn as j1,Co as j2,go as j3,ir as j4,nr as j5,er as j6,oo as j7,ao as j8,so as j9,Ss as jA,Ka as jB,ll as jC,Xi as jD,Jw as jE,Jc as jF,Kc as jG,Yc as jH,qc as jI,Qu as jJ,Sp as jK,hp as jL,up as jM,pp as jN,cp as jO,dp as jP,yp as jQ,bp as jR,fp as jS,mp as jT,mv as jU,ry as jV,ey as jW,ty as jX,ny as jY,iy as jZ,gy as j_,xr as ja,Sr as jb,$r as jc,io as jd,vr as je,B$ as jf,D$ as jg,bn as jh,Al as ji,cC as jj,kb as jk,Ts as jl,qa as jm,Gd as jn,vv as jo,Tb as jp,Pb as jq,Gs as jr,Ds as js,_s as jt,Vs as ju,Ws as jv,Hs as jw,Xb as jx,Es as jy,xs as jz,pw as k,Ri as k$,py as k0,my as k1,yy as k2,fy as k3,Qy as k4,Yy as k5,Ky as k6,tb as k7,nb as k8,ib as k9,Dg as kA,_g as kB,Wg as kC,Xg as kD,Og as kE,dg as kF,lg as kG,_i as kH,pi as kI,Ii as kJ,Li as kK,wn as kL,vn as kM,yn as kN,nn as kO,wi as kP,$i as kQ,Ni as kR,hi as kS,En as kT,fi as kU,ui as kV,Ui as kW,Ei as kX,Vi as kY,Gi as kZ,Wi as k_,by as ka,vy as kb,wy as kc,Dy as kd,_y as ke,Rg as kf,Pg as kg,Ug as kh,Mg as ki,Fg as kj,mg as kk,yg as kl,bg as km,vg as kn,wg as ko,yf as kp,$g as kq,of as kr,zg as ks,Bg as kt,jg as ku,Ag as kv,Ng as kw,kg as kx,Ig as ky,Hg as kz,es as l,hc as l$,$n as l0,en as l1,Zi as l2,Yi as l3,yi as l4,ci as l5,Di as l6,$l as l7,wl as l8,Cl as l9,$s as lA,Ud as lB,Md as lC,On as lD,Jd as lE,Ju as lF,vo as lG,So as lH,_p as lI,kp as lJ,Op as lK,Mu as lL,Fu as lM,Bo as lN,zo as lO,Fo as lP,Mo as lQ,_o as lR,Po as lS,Do as lT,Lo as lU,Uo as lV,iu as lW,tu as lX,Kd as lY,uc as lZ,pc as l_,ys as la,rs as lb,bs as lc,hd as ld,Os as le,Ls as lf,ws as lg,zs as lh,ts as li,qs as lj,Qs as lk,Zs as ll,el as lm,nl as ln,Wl as lo,ql as lp,Ql as lq,Zl as lr,od as ls,ad as lt,dd as lu,gd as lv,md as lw,fd as lx,Ld as ly,Pd as lz,Za as m,wm as m$,cc as m0,sg as m1,Bf as m2,Zm as m3,ef as m4,tf as m5,vf as m6,wf as m7,ky as m8,Ny as m9,ug as mA,hf as mB,ly as mC,ay as mD,uy as mE,cy as mF,dy as mG,oy as mH,hm as mI,qm as mJ,Ym as mK,Jm as mL,Km as mM,zy as mN,Fy as mO,Ly as mP,Uy as mQ,Py as mR,My as mS,Gy as mT,Xy as mU,Hy as mV,By as mW,jy as mX,Ry as mY,Wy as mZ,rf as m_,Ay as ma,$y as mb,Cy as mc,Oy as md,Sy as me,Ey as mf,xy as mg,Ty as mh,Yf as mi,Cg as mj,Mf as mk,gg as ml,hb as mm,Bm as mn,jm as mo,nf as mp,Rf as mq,Im as mr,Tg as ms,Eg as mt,fg as mu,Xf as mv,Gg as mw,hy as mx,hg as my,pg as mz,Ti as n,gf as n0,yb as n1,bb as n2,Uf as n3,bf as n4,im as n5,$b as n6,wb as n7,mb as n8,Nf as n9,$v as nA,jv as nB,Jv as nC,Xv as nD,Bv as nE,u$ as nF,p$ as nG,bw as nH,FC as nI,JS as nJ,ZS as nK,tx as nL,rx as nM,Ll as nN,Bx as nO,Rl as nP,Pv as nQ,yx as nR,jw as nS,Pl as nT,Ul as nU,Ml as nV,Y$ as nW,CS as nX,_l as nY,Xa as nZ,cg as na,Qg as nb,kf as nc,af as nd,qy as ne,Jy as nf,Vy as ng,ff as nh,pf as ni,$m as nj,In as nk,Dn as nl,Jo as nm,qd as nn,Sb as no,Wb as np,Cv as nq,Gb as nr,jb as ns,bv as nt,Hb as nu,sv as nv,dv as nw,uv as nx,hv as ny,Kb as nz,SS as o,bS as p,yS as q,jC as r,fw as s,oi as t,KS as u,MC as v,ss as w,ux as x,a$ as y,Oi as z};