@odigos/ui-kit 0.0.293 → 0.0.294
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.
- package/CHANGELOG.md +9 -0
- package/lib/chunks/{helpers-DbT32OSr.js → helpers-BbLwXwCP.js} +1 -1
- package/lib/chunks/{index-MwonXqI1.js → index-DrntqYmU.js} +1 -1
- package/lib/chunks/{source-instrument-form-context-CmMX5vdq.js → source-instrument-form-context-TaNVlKMt.js} +1 -1
- package/lib/chunks/{ui-components-Bhz7WgBl.js → ui-components-CnvJIMbW.js} +321 -323
- package/lib/components/table/styled.d.ts +2 -4
- package/lib/components/table/types.d.ts +1 -3
- package/lib/components/tag/index.d.ts +8 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/components.js +1 -1
- package/lib/constants/insights/system.d.ts +3 -1
- package/lib/constants.js +1 -1
- package/lib/containers/insights/findings/helpers.d.ts +2 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/helpers.d.ts +2 -2
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/index.d.ts +2 -2
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/map.d.ts +2 -2
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/types.d.ts +4 -4
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/index.d.ts +1 -1
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/libraries/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/libraries/types.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/helpers.d.ts +21 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/map.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/node.d.ts +6 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/types.d.ts +25 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/helpers.d.ts +20 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/map.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/node.d.ts +6 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/types.d.ts +23 -0
- package/lib/containers.js +611 -530
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +7 -7
- /package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/node.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 C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,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 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 Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,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 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,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,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 zt,{forwardRef as Bt,Fragment as jt,useState as Ht,useEffect as Wt,useCallback as Xt,useMemo as Gt,useRef as Vt,useLayoutEffect as Kt,createElement as Yt}from"react";import Jt from"javascript-time-ago";import qt from"javascript-time-ago/locale/en";import Qt,{createPortal as Zt}from"react-dom";import{Highlight as ei,themes as ti}from"prism-react-renderer";import{ErrorBoundary as ii}from"react-error-boundary";import{VList as ni}from"virtua";const ri=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 oi,ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ci,Ei,Ti,Oi,Ni,Ai,ki,Ii,Di,_i,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki;(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"})(oi||(oi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ai||(ai={})),(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"})(si||(si={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(li||(li={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(di||(di={})),(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"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(ui||(ui={})),(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"})(pi||(pi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hi||(hi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gi||(gi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mi||(mi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fi||(fi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yi||(yi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vi||(vi={})),(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"})(wi||(wi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Si||(Si={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(xi||(xi={})),(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"})(Ei||(Ei={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ti||(Ti={})),(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"})(Oi||(Oi={})),(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"})(Ai||(Ai={})),(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"})(ki||(ki={})),(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"})(Ii||(Ii={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Di||(Di={})),(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"})(_i||(_i={})),(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"})(Ri||(Ri={})),(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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Mi||(Mi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fi||(Fi={})),(e=>{e.HeaderKeys="headerKeys"})(zi||(zi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bi||(Bi={}));class Yi{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 Ji{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"})(ji||(ji={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hi||(Hi={})),(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"})(Xi||(Xi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gi||(Gi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vi||(Vi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ki||(Ki={}));const Qi={[Vi.Logs]:Ki.Logs,[Vi.Metrics]:Ki.Metrics,[Vi.Traces]:Ki.Traces,[Vi.Profiles]:Ki.Profiles},Zi={[Ki.Logs]:Vi.Logs,[Ki.Metrics]:Vi.Metrics,[Ki.Traces]:Vi.Traces,[Ki.Profiles]:Vi.Profiles};var en,tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(en||(en={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(tn||(tn={})),(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"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(rn||(rn={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(on||(on={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(an||(an={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(sn||(sn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(cn||(cn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(pn||(pn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(hn||(hn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(gn||(gn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(mn||(mn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(fn||(fn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(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"})(Cn||(Cn={}));const En={[ai.Enrichment]:{TITLE:"Enrichment",ICON:c},[ai.Normalization]:{TITLE:"Normalization",ICON:d},[ai.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[oi.AddClusterInfo]:ai.Enrichment,[oi.K8sAttributes]:ai.Enrichment,[oi.ExtractAttribute]:ai.Enrichment,[oi.InferDbAttributes]:ai.Enrichment,[oi.DbQueryTemplatization]:ai.Normalization,[oi.URLTemplatization]:ai.Normalization,[oi.RenameAttributes]:ai.Normalization,[oi.PiiMasking]:ai.Privacy,[oi.DeleteAttributes]:ai.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:oi.K8sAttributes,icon:On(oi.K8sAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yi.K8s]},{type:oi.AddClusterInfo,icon:On(oi.AddClusterInfo),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yi.K8s]},{type:oi.DeleteAttributes,icon:On(oi.DeleteAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yi.K8s]},{type:oi.RenameAttributes,icon:On(oi.RenameAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yi.K8s]},{type:oi.PiiMasking,icon:On(oi.PiiMasking),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yi.K8s]},{type:oi.URLTemplatization,icon:On(oi.URLTemplatization),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yi.K8s]:ri("v1.21.0")},supportedPlatforms:[yi.K8s,yi.Vm]},{type:oi.ExtractAttribute,icon:On(oi.ExtractAttribute),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yi.K8s]:ri("v1.29.0")},supportedPlatforms:[yi.K8s]}],An=ri("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ri(i)>=n},Dn=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==yi.K8s||ri(i)>=An?e:e.allowedSignals?.includes(Vi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vi.Profiles)}:e)(i,e,t)),_n=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})):[]},Rn="Coming soon",Ln="We are working on this feature and it will be available soon.";var Pn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Pn||(Pn={}));const Un={[Pn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Pn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Pn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Pn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Pn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Pn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Mn="Save Changes",Fn="Discard changes",zn="Default Policy",Bn="Overrides",jn="No default policy yet",Hn="No overrides yet",Wn="Choose override scope",Xn="Global",Gn="Choose Override type",Vn="Select Service",Kn="Select Transaction",Yn="Service",Jn="Transaction",qn="Select service…",Qn="Select transaction…",Zn="Anomaly Detection Policies",er="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",tr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",nr="Create override policy",rr="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",ar="Name",sr="Trigger when risk level is",lr="Customize signal weights (advanced)",dr="Base weight",cr="Risk points",ur="Dangerous sub-cases - added on top of the base when detected:",pr="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.",hr="Low",gr="Medium",mr="High",fr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,yr="Guardrails",vr="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",wr="No guardrails yet",Sr="Create a guardrail to declare allowed service communication.",xr="Inspect a service",Cr="Edit guardrail",Er="Namespace",Tr="Service",Or="Callers",Nr="Who may call this service (inbound) — any seen service",Ar="Additional callers",kr="Add any service name not yet seen",Ir="No other services seen",Dr="Insights has not seen any other services to allow as callers",_r="Callees",Rr="Internal services it may call (outbound) — any seen service",Lr="Additional callees",Pr="Add any service name not yet seen",Ur="No other services seen",Mr="Insights has not seen any other services to allow as callees",Fr="checkout-service",zr="Egress",Br="Observed external destinations it may reach",jr="Additional egress hosts",Hr="Add any host or host:port not yet observed",Wr="api.example.com:443",Xr="No egress detected",Gr="No egress found for this selection",Vr="Transactions",Kr="Operations this service may expose",Yr="No Transactions detected",Jr="No transactions found for this selection",qr="Adopt as enforce",Qr="Alert on violation",Zr="Adopt as suggest",eo="Observe only",to="Select a guardrail",io="Create guardrail",no="Delete guardrail",ro="Enforce",oo="Suggest",ao="auto",so="allowed_callers",lo="allowed_callees",co="allowed_egress",uo="allowed_transactions",po="auto_transaction_guardrail",ho="Learning Policies",go="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",mo="Add a default policy to set the global learning settings.",fo="Add overrides to adjust learning for specific services.",bo="Add override policy",yo="Add override",vo="Add selection",$o="Add condition",wo="Delete override",So="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xo="Select a policy",Co="Combine",Eo="Currently:",To="Promotes when",Oo="Min matches",No="A policy with no conditions falls back to the count-only default.",Ao="Select Deviation class",ko="Select deviation class…",Io="Any",Do="All",_o="K of",Ro="Any (OR)",Lo="All (AND)",Po="K of N",Uo="Stable for N observations",Mo="Stable for a duration",Fo="Min observations",zo="Min duration",Bo="Minutes",jo="Hours",Ho="Days",Wo={[nn.D1_call_edges]:"D1 call edges",[nn.D2_egress]:"D2 egress",[nn.D3_latency]:"D3 latency",[nn.D4_args_returns]:"D4 args/returns",[nn.D5_libraries]:"D5 libraries",[nn.D6_attr_relations]:"D6 attr relations",[nn.D7_db_access]:"D7 db access",[nn.D8_payload_size]:"D8 payload size"},Xo={[hn.Any]:"Any",[hn.All]:"All",[hn.KOf]:_o},Go=[{id:hn.Any,label:Ro},{id:hn.All,label:Lo},{id:hn.KOf,label:Po}],Vo=[{id:mn.StableObservations,label:Uo},{id:mn.StableDuration,label:Mo},{id:mn.MinObservations,label:Fo},{id:mn.MinDuration,label:zo}],Ko=e=>e===mn.StableDuration||e===mn.MinDuration,Yo=e=>e===mn.StableObservations||e===mn.MinObservations,Jo="Learning examples",qo="Retention",Qo="Memory limits",Zo="Database writeback",ea="Transaction guardrails",ta="Transaction identity dimensions",ia="Maximum example traces",na="Maximum number of example traces collected per transaction.",ra="traces",oa="Minimum sampling interval",aa="Minimum time between collected examples.",sa="seconds",la="Sample trace retention",da="Stored sample traces are deleted after this period.",ca="days",ua="Default: 120 · Maximum: 120",pa="Maximum transactions in memory",ha="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ga="transactions",ma="Maximum members per baseline",fa="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",ya="Flush interval",va="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",wa="Auto-enable transaction guardrail when a service is promoted",Sa="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.",xa="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.",Ca="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Ea="No dimensions configured — transactions use the entry span name only.",Ta="Add dimension",Oa="e.g. http.response.status_code",Na="On",Aa="Identity dimensions changed",ka="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.",Ia="Reset all transactions",Da="Keep existing transactions",_a="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Ra="Save settings",La="System settings are not available.",Pa=5,Ua=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Ma=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Fa,za,Ba;(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"})(Fa||(Fa={})),(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"})(za||(za={})),(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"})(Ba||(Ba={}));const ja=new Set(Object.values(Ba)),Ha=(e,t)=>{if("string"!=typeof(i=t)||!ja.has(i))return t;var i;switch(t){case Ba.Primary:return e.v2.colors.white[500];case Ba.Secondary:return e.v2.colors.silver[200];case Ba.Tertiary:return e.v2.colors.black[500];case Ba.Disable:return e.v2.colors.grey[400];case Ba.Error:return e.v2.colors.red[500];case Ba.Mandatory:return e.v2.colors.red[600];case Ba.Link:return e.v2.colors.purple[400];case Ba.Success:return e.v2.colors.green[400];default:return}},Wa=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 b,NginxLogo as y,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as k,JavaLogo as I,PyroscopeLogo as _,AwsXrayLogo as D,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 be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as _e,AxiomLogo as De,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 bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as kt,XIcon as It,PlusIcon as _t,TrashIcon as Dt,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 zt,{forwardRef as Bt,Fragment as jt,useState as Ht,useEffect as Xt,useCallback as Wt,useMemo as Gt,useRef as Vt,useLayoutEffect as Kt,createElement as Yt}from"react";import Jt from"javascript-time-ago";import qt from"javascript-time-ago/locale/en";import Qt,{createPortal as Zt}from"react-dom";import{Highlight as ei,themes as ti}from"prism-react-renderer";import{ErrorBoundary as ii}from"react-error-boundary";import{VList as ni}from"virtua";const ri=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 oi,ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ci,Ei,Ti,Oi,Ni,Ai,ki,Ii,_i,Di,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Xi,Wi,Gi,Vi,Ki;(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"})(oi||(oi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ai||(ai={})),(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"})(si||(si={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(li||(li={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(di||(di={})),(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"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(ui||(ui={})),(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"})(pi||(pi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hi||(hi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gi||(gi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mi||(mi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fi||(fi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yi||(yi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vi||(vi={})),(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"})(wi||(wi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Si||(Si={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(xi||(xi={})),(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"})(Ei||(Ei={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ti||(Ti={})),(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"})(Oi||(Oi={})),(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"})(Ai||(Ai={})),(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"})(ki||(ki={})),(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"})(Ii||(Ii={})),(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"})(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"})(Ri||(Ri={})),(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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Mi||(Mi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fi||(Fi={})),(e=>{e.HeaderKeys="headerKeys"})(zi||(zi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bi||(Bi={}));class Yi{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 Ji{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"})(ji||(ji={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hi||(Hi={})),(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"})(Wi||(Wi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gi||(Gi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vi||(Vi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ki||(Ki={}));const Qi={[Vi.Logs]:Ki.Logs,[Vi.Metrics]:Ki.Metrics,[Vi.Traces]:Ki.Traces,[Vi.Profiles]:Ki.Profiles},Zi={[Ki.Logs]:Vi.Logs,[Ki.Metrics]:Vi.Metrics,[Ki.Traces]:Vi.Traces,[Ki.Profiles]:Vi.Profiles};var en,tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(en||(en={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(tn||(tn={})),(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"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(rn||(rn={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(on||(on={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(an||(an={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(sn||(sn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(cn||(cn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(pn||(pn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(hn||(hn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(gn||(gn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(mn||(mn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(fn||(fn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(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"})(Cn||(Cn={}));const En={[ai.Enrichment]:{TITLE:"Enrichment",ICON:c},[ai.Normalization]:{TITLE:"Normalization",ICON:d},[ai.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[oi.AddClusterInfo]:ai.Enrichment,[oi.K8sAttributes]:ai.Enrichment,[oi.ExtractAttribute]:ai.Enrichment,[oi.InferDbAttributes]:ai.Enrichment,[oi.DbQueryTemplatization]:ai.Normalization,[oi.URLTemplatization]:ai.Normalization,[oi.RenameAttributes]:ai.Normalization,[oi.PiiMasking]:ai.Privacy,[oi.DeleteAttributes]:ai.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:oi.K8sAttributes,icon:On(oi.K8sAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yi.K8s]},{type:oi.AddClusterInfo,icon:On(oi.AddClusterInfo),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yi.K8s]},{type:oi.DeleteAttributes,icon:On(oi.DeleteAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yi.K8s]},{type:oi.RenameAttributes,icon:On(oi.RenameAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yi.K8s]},{type:oi.PiiMasking,icon:On(oi.PiiMasking),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yi.K8s]},{type:oi.URLTemplatization,icon:On(oi.URLTemplatization),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yi.K8s]:ri("v1.21.0")},supportedPlatforms:[yi.K8s,yi.Vm]},{type:oi.ExtractAttribute,icon:On(oi.ExtractAttribute),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yi.K8s]:ri("v1.29.0")},supportedPlatforms:[yi.K8s]}],An=ri("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ri(i)>=n},_n=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==yi.K8s||ri(i)>=An?e:e.allowedSignals?.includes(Vi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vi.Profiles)}:e)(i,e,t)),Dn=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})):[]},Rn="Coming soon",Ln="We are working on this feature and it will be available soon.";var Pn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Pn||(Pn={}));const Un={[Pn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Pn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Pn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Pn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Pn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Pn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Mn="Save Changes",Fn="Discard changes",zn="Default Policy",Bn="Overrides",jn="No default policy yet",Hn="No overrides yet",Xn="Choose override scope",Wn="Global",Gn="Choose Override type",Vn="Select Service",Kn="Select Transaction",Yn="Service",Jn="Transaction",qn="Select service…",Qn="Select transaction…",Zn="Anomaly Detection Policies",er="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",tr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",nr="Create override policy",rr="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",ar="Name",sr="Trigger when risk level is",lr="Customize signal weights (advanced)",dr="Base weight",cr="Risk points",ur="Dangerous sub-cases - added on top of the base when detected:",pr="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.",hr="Low",gr="Medium",mr="High",fr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,yr="Guardrails",vr="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",wr="No guardrails yet",Sr="Create a guardrail to declare allowed service communication.",xr="Inspect a service",Cr="Edit guardrail",Er="Namespace",Tr="Service",Or="Callers",Nr="Who may call this service (inbound) — any seen service",Ar="Additional callers",kr="Add any service name not yet seen",Ir="No other services seen",_r="Insights has not seen any other services to allow as callers",Dr="Callees",Rr="Internal services it may call (outbound) — any seen service",Lr="Additional callees",Pr="Add any service name not yet seen",Ur="No other services seen",Mr="Insights has not seen any other services to allow as callees",Fr="checkout-service",zr="Egress",Br="Observed external destinations it may reach",jr="Additional egress hosts",Hr="Add any host or host:port not yet observed",Xr="api.example.com:443",Wr="No egress detected",Gr="No egress found for this selection",Vr="Transactions",Kr="Operations this service may expose",Yr="No Transactions detected",Jr="No transactions found for this selection",qr="Adopt as enforce",Qr="Alert on violation",Zr="Adopt as suggest",eo="Observe only",to="Select a guardrail",io="Create guardrail",no="Delete guardrail",ro="Enforce",oo="Suggest",ao="auto",so="allowed_callers",lo="allowed_callees",co="allowed_egress",uo="allowed_transactions",po="auto_transaction_guardrail",ho="Learning Policies",go="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",mo="Add a default policy to set the global learning settings.",fo="Add overrides to adjust learning for specific services.",bo="Add override policy",yo="Add override",vo="Add selection",$o="Add condition",wo="Delete override",So="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xo="Select a policy",Co="Combine",Eo="Currently:",To="Promotes when",Oo="Min matches",No="A policy with no conditions falls back to the count-only default.",Ao="Select Deviation class",ko="Select deviation class…",Io="Any",_o="All",Do="K of",Ro="Any (OR)",Lo="All (AND)",Po="K of N",Uo="Stable for N observations",Mo="Stable for a duration",Fo="Min observations",zo="Min duration",Bo="Minutes",jo="Hours",Ho="Days",Xo={[nn.D1_call_edges]:"D1 call edges",[nn.D2_egress]:"D2 egress",[nn.D3_latency]:"D3 latency",[nn.D4_args_returns]:"D4 args/returns",[nn.D5_libraries]:"D5 libraries",[nn.D6_attr_relations]:"D6 attr relations",[nn.D7_db_access]:"D7 db access",[nn.D8_payload_size]:"D8 payload size"},Wo={[hn.Any]:"Any",[hn.All]:"All",[hn.KOf]:Do},Go=[{id:hn.Any,label:Ro},{id:hn.All,label:Lo},{id:hn.KOf,label:Po}],Vo=[{id:mn.StableObservations,label:Uo},{id:mn.StableDuration,label:Mo},{id:mn.MinObservations,label:Fo},{id:mn.MinDuration,label:zo}],Ko=e=>e===mn.StableDuration||e===mn.MinDuration,Yo=e=>e===mn.StableObservations||e===mn.MinObservations,Jo="Learning examples",qo="Retention",Qo="Memory limits",Zo="Database writeback",ea="Transaction guardrails",ta="Transaction identity dimensions",ia="Maximum example traces",na="Maximum number of example traces collected per transaction.",ra="traces",oa="Minimum sampling interval",aa="Minimum time between collected examples.",sa="seconds",la="Sample trace retention",da="Stored sample traces are deleted after this period.",ca="days",ua="Default: 120 · Maximum: 120",pa="Maximum transactions in memory",ha="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ga="transactions",ma="Maximum members per baseline",fa="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",ya="Flush interval",va="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",wa="Auto-enable transaction guardrail when a service is promoted",Sa="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.",xa="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Ca=["http.response.status_code","rpc.grpc.status_code"],Ea=["user.id","URLs","request ids"],Ta="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Oa="No dimensions configured — transactions use the entry span name only.",Na="Add dimension",Aa="e.g. http.response.status_code",ka="On",Ia="Identity dimensions changed",_a="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",Ra="Keep existing transactions",La="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Pa="Save settings",Ua="System settings are not available.",Ma=5,Fa=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],za=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Ba,ja,Ha;(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"})(Ba||(Ba={})),(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"})(ja||(ja={})),(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"})(Ha||(Ha={}));const Xa=new Set(Object.values(Ha)),Wa=(e,t)=>{if("string"!=typeof(i=t)||!Xa.has(i))return t;var i;switch(t){case Ha.Primary:return e.v2.colors.white[500];case Ha.Secondary:return e.v2.colors.silver[200];case Ha.Tertiary:return e.v2.colors.black[500];case Ha.Disable:return e.v2.colors.grey[400];case Ha.Error:return e.v2.colors.red[500];case Ha.Mandatory:return e.v2.colors.red[600];case Ha.Link:return e.v2.colors.purple[400];case Ha.Success:return e.v2.colors.green[400];default:return}},Ga=n.p`
|
|
2
2
|
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>
|
|
3
|
+
color: ${({$color:e,theme:t})=>Wa(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e,$fontFamily:t="primary"})=>e.font_family[t]};
|
|
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
|
-
`,Xa=Bt(({children:i,variant:n=Fa.P,color:r,size:o=za.S,fontFamily:a,weight:s=400,opacity:l=1,align:d="left",lineHeight:c,transform:u,nowrap:p,underline:h,onClick:g,disabled:m,maxLines:f,...b},y)=>{const v="string"==typeof i?i.split("\n").map((i,n,r)=>e(jt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Wa,{ref:y,as:n,$color:r,$size:o,$fontFamily:a,$weight:s,$opacity:l,$align:d,$lineHeight:c,$transform:u,$nowrap:p,$underline:h,$maxLines:f,$withClick:!!g&&!m,onClick:m?void 0:g,...b,children:v})});Xa.displayName="Typography";const Ga="https://docs.odigos.io",Va="default",Ka="this-cluster",Ya="This Cluster",Ja={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},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."},Qa={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"},Za={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"},es=(e,t)=>e===Oi.Success?Qa.HEALTHY:e===Oi.Error?Qa.NOT_HEALTHY:Ma(t),ts=e=>{if(!e)return null;switch(e){case Ui.Irrelevant:return null;case Ui.Failure:case Ui.Error:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Pending:case Ui.Waiting:return Oi.Loading;case Ui.Unsupported:case Ui.Disabled:return Oi.Disabled;case Ui.Success:return Oi.Success;case Ui.Unknown:default:return Oi.Info}},is=(e,t,i="reason",n)=>{const r=ts(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Oi.Success?p:h),label:n||("reason"===i?Ma(e?.reasonEnum):es(r,e?.reasonEnum)),tooltip:e?.message,textSize:za.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ns=e=>e.charAt(0).toUpperCase()+e.slice(1);var rs;(e=>{e.SIGNALS="SIGNALS"})(rs||(rs={}));const os=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===rs.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 as(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ss=e=>({status:e?Oi.Success:Oi.Unknown,label:e?"True":"False",invertColors:!0}),ls=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ds=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)},cs=e=>"string"==typeof e?{id:e,label:e}:e??{},us=(e,t)=>e.label||e.displayName||t,ps=(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?us(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?us(n,i):ds(t)},hs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ls(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}},gs=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(...gs(e.segments))):t.push(...e.items)}),t},ms=(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&&!os(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=as(t.componentProperties,{});switch(t.componentType){case Ei.Toggle:case Ei.Checkbox:return void s.push({id:u,title:c,badge:ss(!!p)});case Ei.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(cs).find(t=>String(t.id??"")===e);return i?us(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=cs(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:us(n,r),badge:ss(!0===e[r])})});const i=ls(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=cs(e),n=String(t.id??"");return n&&i[n]?us(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 Ei.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ls(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ls(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 Ei.KeyValuePair:return l(),ls(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=ls(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 Ei.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ls(p)?p[e]:p)?e&&ls(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(cs):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=ls(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||ns(Ma(e.keyName))||e.keyName,label:ps(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:ds(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 Ei.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(hs).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=ls(o)?o:{},d=t.length?ms(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:ds(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:ds(p)})}var g}),l(),n},fs=(e,t,i={})=>gs(ms(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},{})},ys=e=>JSON.parse(JSON.stringify(e)),vs=(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},ws=(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},Ss=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},xs=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Cs=(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=>ts(e.workloadOdigosHealthStatus?.status)===Oi.Error)),i},Es=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Va&&!e.dataStreamNames?.length):[],Ts=(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?Ts(e,n,i):i[n]=e}):i[o]=r:Ts(r,o,i)}return i},Os=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`}},As=()=>{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)})},ks=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ts(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Is=e=>Array.isArray(e?.statuses)?ks(e.statuses):e?.conditions??[],Ds=e=>e?Array.isArray(e)?_s(e):_s(ks(Object.values(e))):_s([]),_s=e=>{const t=e?.filter(({status:e})=>e===Oi.Error),i=e?.filter(({status:e})=>e===Oi.Warning),n=e?.filter(({status:e})=>e===Oi.Disabled),r=e?.filter(({status:e})=>e===Oi.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?Oi.Error:a?Oi.Warning:s?Oi.Info:void 0}},Rs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ls=e=>({[wi.Java]:I,[wi.Go]:k,[wi.JavaScript]:A,[wi.Python]:N,[wi.DotNet]:O,[wi.CSharp]:T,[wi.CPlusPlus]:E,[wi.Php]:C,[wi.Ruby]:x,[wi.Rust]:S,[wi.Swift]:w,[wi.Elixir]:$,[wi.MySql]:v,[wi.Nginx]:y,[wi.Postgres]:b,[wi.Redis]:f,[wi.Kafka]:m,[wi.Ignored]:g,[wi.Unknown]:g,[wi.Processing]:g,[wi.NoContainers]:g,[wi.NoRunningPods]:g}[e]||g),Ps=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,Us=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Ms=e=>e?.map(e=>Ls(Ps(e)))||[],Fs=e=>e?.map(e=>Ls(e))||[],zs=e=>e.runtimeInfo?.detectedLanguages?.length?Fs(e.runtimeInfo?.detectedLanguages):Ms(e.containers),Bs=(e,t)=>{const i={[Ri.Alauda]:Pe,[Ri.AlibabaCloud]:Le,[Ri.AppDynamics]:Re,[Ri.Axiom]:_e,[Ri.AzureBlob]:De,[Ri.AzureMonitor]:Ie,[Ri.BetterStack]:ke,[Ri.Bonree]:Ae,[Ri.Causely]:Ne,[Ri.Checkly]:Oe,[Ri.Chronosphere]:Te,[Ri.ClickHouse]:Ee,[Ri.CloudWatch]:Ce,[Ri.Coralogix]:xe,[Ri.Dash0]:Se,[Ri.Datadog]:we,[Ri.Dynamic]:Y,[Ri.Dynatrace]:$e,[Ri.ElasticApm]:ve,[Ri.ElasticSearch]:ye,[Ri.GoogleCloud]:be,[Ri.GoogleCloudOTLP]:be,[Ri.GrafanaCloudLoki]:fe,[Ri.GrafanaCloudPrometheus]:fe,[Ri.GrafanaCloudTempo]:fe,[Ri.Greptime]:me,[Ri.Groundcover]:ge,[Ri.Honeycomb]:he,[Ri.HyperDX]:pe,[Ri.Instana]:ue,[Ri.Jaeger]:ce,[Ri.Kafka]:m,[Ri.Kloudmate]:de,[Ri.Last9]:le,[Ri.Lightstep]:se,[Ri.LogzIo]:ae,[Ri.Loki]:oe,[Ri.Lumigo]:re,[Ri.Middleware]:ne,[Ri.NewRelic]:ie,[Ri.Observe]:te,[Ri.Odigos]:ee,[Ri.OdigosProfileDiagnostic]:ee,[Ri.OneUptime]:Z,[Ri.OpenObserve]:Q,[Ri.Opsverse]:q,[Ri.Oracle]:J,[Ri.OTLP]:Y,[Ri.OTLPHttp]:Y,[Ri.Prometheus]:K,[Ri.Qryn]:V,[Ri.QrynOss]:G,[Ri.Quickwit]:X,[Ri.S3]:W,[Ri.Seq]:H,[Ri.Signalfx]:B,[Ri.Signoz]:j,[Ri.Splunk]:B,[Ri.SplunkSapm]:B,[Ri.SplunkOtlp]:B,[Ri.SumoLogic]:z,[Ri.TelemetryHub]:F,[Ri.Tempo]:M,[Ri.Tingyun]:U,[Ri.Traceloop]:P,[Ri.Uptrace]:L,[Ri.VictoriaMetrics]:R,[Ri.VictoriaMetricsCloud]:R,[Ri.XRay]:_,[Ri.Pyroscope]:D}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},js=e=>({[xi.Namespace]:je,[xi.Source]:Be,[xi.Destination]:ze,[xi.Action]:u,[xi.InstrumentationRule]:Fe,[xi.SamplingRule]:Me,[xi.Recommendation]:Ue}[e]),Hs=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},Xs=e=>Ws(Hs(e)),Gs=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case xi.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case xi.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case xi.Action:const n=e;o=n.type,a=n.name||"";break;case xi.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case xi.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Vs=(e,t)=>{if(t===xi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Ks=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:Xe,[Mi.PayloadCollection]:We,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),Ys=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Js=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>Ys(e)!==wi.Ignored);if(!n.length)return wi.NoContainers;const r=n.find(e=>Ys(e)!==wi.Unknown);return r?Ys(r):wi.Unknown},qs=(e,t,i)=>(t===xi.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},Qs=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),Zs=(e,t)=>Object.values(za).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),el=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,tl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",il=(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(...il(e,t,i)),r}):[]},nl={"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"},rl=e=>{if(!e)return"";if(nl[e])return nl[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ol=(e,t)=>{if(t===xi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},al=(e,t,i)=>{switch(i=i??"500",t){case Oi.Default:return e.v2.colors.purple[i];case Oi.Info:return e.v2.colors.blue[i];case Oi.Error:return e.v2.colors.red[i];case Oi.Warning:return e.v2.colors.yellow[i];case Oi.Success:return e.v2.colors.green[i];case Oi.Loading:case Oi.Disabled:case Oi.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},sl=e=>{switch(e){case Hi.Updating:case Wi.Pending:case Xi.ContainerCreating:case Gi.Waiting:return Oi.Info;case Hi.Healthy:case Wi.Succeeded:case Wi.Running:case Xi.Running:case Gi.Running:return Oi.Success;case Hi.Degraded:return Oi.Warning;case Hi.Failed:case Wi.Failed:case Xi.Error:case Xi.CrashLoopBackOff:case Xi.CreateContainerError:case Xi.CreateContainerConfigError:case Xi.ErrImagePull:case Xi.ErrImageNeverPull:case Xi.ImagePullBackOff:case Xi.InvalidImageName:case Xi.RegistryUnavailable:case Xi.NetworkNotReady:case Xi.OOMKilled:case Xi.ContainerCannotRun:case Gi.Terminated:case Xi.DeadlineExceeded:case Xi.StartError:return Oi.Error;case Hi.Down:case Xi.Completed:return Oi.Disabled;case Hi.Unknown:case Wi.Unknown:default:return Oi.Unknown}},ll=n.div`
|
|
41
|
+
`,Va=Bt(({children:i,variant:n=Ba.P,color:r,size:o=ja.S,fontFamily:a,weight:s=400,opacity:l=1,align:d="left",lineHeight:c,transform:u,nowrap:p,underline:h,onClick:g,disabled:m,maxLines:f,...b},y)=>{const v="string"==typeof i?i.split("\n").map((i,n,r)=>e(jt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Ga,{ref:y,as:n,$color:r,$size:o,$fontFamily:a,$weight:s,$opacity:l,$align:d,$lineHeight:c,$transform:u,$nowrap:p,$underline:h,$maxLines:f,$withClick:!!g&&!m,onClick:m?void 0:g,...b,children:v})});Va.displayName="Typography";const Ka="https://docs.odigos.io",Ya="default",Ja="this-cluster",qa="This Cluster",Qa={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},Za={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."},es={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"},ts={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"},is=(e,t)=>e===Oi.Success?es.HEALTHY:e===Oi.Error?es.NOT_HEALTHY:za(t),ns=e=>{if(!e)return null;switch(e){case Ui.Irrelevant:return null;case Ui.Failure:case Ui.Error:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Pending:case Ui.Waiting:return Oi.Loading;case Ui.Unsupported:case Ui.Disabled:return Oi.Disabled;case Ui.Success:return Oi.Success;case Ui.Unknown:default:return Oi.Info}},rs=(e,t,i="reason",n)=>{const r=ns(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Oi.Success?p:h),label:n||("reason"===i?za(e?.reasonEnum):is(r,e?.reasonEnum)),tooltip:e?.message,textSize:ja.XXXS,invertColors:!0,useSecondaryTone:!0}:null},os=e=>e.charAt(0).toUpperCase()+e.slice(1);var as;(e=>{e.SIGNALS="SIGNALS"})(as||(as={}));const ss=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===as.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 ls(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ds=e=>({status:e?Oi.Success:Oi.Unknown,label:e?"True":"False",invertColors:!0}),cs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),us=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)},ps=e=>"string"==typeof e?{id:e,label:e}:e??{},hs=(e,t)=>e.label||e.displayName||t,gs=(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?hs(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?hs(n,i):us(t)},ms=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=cs(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}},fs=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(...fs(e.segments))):t.push(...e.items)}),t},bs=(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&&!ss(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ls(t.componentProperties,{});switch(t.componentType){case Ei.Toggle:case Ei.Checkbox:return void s.push({id:u,title:c,badge:ds(!!p)});case Ei.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(ps).find(t=>String(t.id??"")===e);return i?hs(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=ps(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:hs(n,r),badge:ds(!0===e[r])})});const i=cs(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=ps(e),n=String(t.id??"");return n&&i[n]?hs(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 Ei.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&cs(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&cs(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 Ei.KeyValuePair:return l(),cs(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=cs(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 Ei.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&cs(p)?p[e]:p)?e&&cs(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(ps):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=cs(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||os(za(e.keyName))||e.keyName,label:gs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:us(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 Ei.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ms).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=cs(o)?o:{},d=t.length?bs(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:us(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:us(p)})}var g}),l(),n},ys=(e,t,i={})=>fs(bs(e,t,i)),vs=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},{})},$s=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Ss=(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},xs=(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},Cs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Es=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ts=(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=>ns(e.workloadOdigosHealthStatus?.status)===Oi.Error)),i},Os=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ya&&!e.dataStreamNames?.length):[],Ns=(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?Ns(e,n,i):i[n]=e}):i[o]=r:Ns(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]}`},ks=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`}},Is=()=>{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)})},_s=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ns(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)?_s(e.statuses):e?.conditions??[],Rs=e=>e?Array.isArray(e)?Ls(e):Ls(_s(Object.values(e))):Ls([]),Ls=e=>{const t=e?.filter(({status:e})=>e===Oi.Error),i=e?.filter(({status:e})=>e===Oi.Warning),n=e?.filter(({status:e})=>e===Oi.Disabled),r=e?.filter(({status:e})=>e===Oi.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?Oi.Error:a?Oi.Warning:s?Oi.Info:void 0}},Ps=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Us=e=>({[wi.Java]:I,[wi.Go]:k,[wi.JavaScript]:A,[wi.Python]:N,[wi.DotNet]:O,[wi.CSharp]:T,[wi.CPlusPlus]:E,[wi.Php]:C,[wi.Ruby]:x,[wi.Rust]:S,[wi.Swift]:w,[wi.Elixir]:$,[wi.MySql]:v,[wi.Nginx]:y,[wi.Postgres]:b,[wi.Redis]:f,[wi.Kafka]:m,[wi.Ignored]:g,[wi.Unknown]:g,[wi.Processing]:g,[wi.NoContainers]:g,[wi.NoRunningPods]:g}[e]||g),Ms=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,Fs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,zs=e=>e?.map(e=>Us(Ms(e)))||[],Bs=e=>e?.map(e=>Us(e))||[],js=e=>e.runtimeInfo?.detectedLanguages?.length?Bs(e.runtimeInfo?.detectedLanguages):zs(e.containers),Hs=(e,t)=>{const i={[Ri.Alauda]:Pe,[Ri.AlibabaCloud]:Le,[Ri.AppDynamics]:Re,[Ri.Axiom]:De,[Ri.AzureBlob]:_e,[Ri.AzureMonitor]:Ie,[Ri.BetterStack]:ke,[Ri.Bonree]:Ae,[Ri.Causely]:Ne,[Ri.Checkly]:Oe,[Ri.Chronosphere]:Te,[Ri.ClickHouse]:Ee,[Ri.CloudWatch]:Ce,[Ri.Coralogix]:xe,[Ri.Dash0]:Se,[Ri.Datadog]:we,[Ri.Dynamic]:Y,[Ri.Dynatrace]:$e,[Ri.ElasticApm]:ve,[Ri.ElasticSearch]:ye,[Ri.GoogleCloud]:be,[Ri.GoogleCloudOTLP]:be,[Ri.GrafanaCloudLoki]:fe,[Ri.GrafanaCloudPrometheus]:fe,[Ri.GrafanaCloudTempo]:fe,[Ri.Greptime]:me,[Ri.Groundcover]:ge,[Ri.Honeycomb]:he,[Ri.HyperDX]:pe,[Ri.Instana]:ue,[Ri.Jaeger]:ce,[Ri.Kafka]:m,[Ri.Kloudmate]:de,[Ri.Last9]:le,[Ri.Lightstep]:se,[Ri.LogzIo]:ae,[Ri.Loki]:oe,[Ri.Lumigo]:re,[Ri.Middleware]:ne,[Ri.NewRelic]:ie,[Ri.Observe]:te,[Ri.Odigos]:ee,[Ri.OdigosProfileDiagnostic]:ee,[Ri.OneUptime]:Z,[Ri.OpenObserve]:Q,[Ri.Opsverse]:q,[Ri.Oracle]:J,[Ri.OTLP]:Y,[Ri.OTLPHttp]:Y,[Ri.Prometheus]:K,[Ri.Qryn]:V,[Ri.QrynOss]:G,[Ri.Quickwit]:W,[Ri.S3]:X,[Ri.Seq]:H,[Ri.Signalfx]:B,[Ri.Signoz]:j,[Ri.Splunk]:B,[Ri.SplunkSapm]:B,[Ri.SplunkOtlp]:B,[Ri.SumoLogic]:z,[Ri.TelemetryHub]:F,[Ri.Tempo]:M,[Ri.Tingyun]:U,[Ri.Traceloop]:P,[Ri.Uptrace]:L,[Ri.VictoriaMetrics]:R,[Ri.VictoriaMetricsCloud]:R,[Ri.XRay]:D,[Ri.Pyroscope]:_}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xs=e=>({[xi.Namespace]:je,[xi.Source]:Be,[xi.Destination]:ze,[xi.Action]:u,[xi.InstrumentationRule]:Fe,[xi.SamplingRule]:Me,[xi.Recommendation]:Ue}[e]),Ws=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,Gs=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},Vs=e=>Gs(Ws(e)),Ks=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case xi.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case xi.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case xi.Action:const n=e;o=n.type,a=n.name||"";break;case xi.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case xi.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Ys=(e,t)=>{if(t===xi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Js=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:We,[Mi.PayloadCollection]:Xe,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),qs=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Qs=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>qs(e)!==wi.Ignored);if(!n.length)return wi.NoContainers;const r=n.find(e=>qs(e)!==wi.Unknown);return r?qs(r):wi.Unknown},Zs=(e,t,i)=>(t===xi.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},el=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),tl=(e,t)=>Object.values(ja).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),il=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,nl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",rl=(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(...rl(e,t,i)),r}):[]},ol={"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"},al=e=>{if(!e)return"";if(ol[e])return ol[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},sl=(e,t)=>{if(t===xi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},ll=(e,t,i)=>{switch(i=i??"500",t){case Oi.Default:return e.v2.colors.purple[i];case Oi.Info:return e.v2.colors.blue[i];case Oi.Error:return e.v2.colors.red[i];case Oi.Warning:return e.v2.colors.yellow[i];case Oi.Success:return e.v2.colors.green[i];case Oi.Loading:case Oi.Disabled:case Oi.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},dl=e=>{switch(e){case Hi.Updating:case Xi.Pending:case Wi.ContainerCreating:case Gi.Waiting:return Oi.Info;case Hi.Healthy:case Xi.Succeeded:case Xi.Running:case Wi.Running:case Gi.Running:return Oi.Success;case Hi.Degraded:return Oi.Warning;case Hi.Failed:case Xi.Failed:case Wi.Error:case Wi.CrashLoopBackOff:case Wi.CreateContainerError:case Wi.CreateContainerConfigError:case Wi.ErrImagePull:case Wi.ErrImageNeverPull:case Wi.ImagePullBackOff:case Wi.InvalidImageName:case Wi.RegistryUnavailable:case Wi.NetworkNotReady:case Wi.OOMKilled:case Wi.ContainerCannotRun:case Gi.Terminated:case Wi.DeadlineExceeded:case Wi.StartError:return Oi.Error;case Hi.Down:case Wi.Completed:return Oi.Disabled;case Hi.Unknown:case Xi.Unknown:default:return Oi.Unknown}},cl=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,ul=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
|
-
`,
|
|
59
|
+
`,pl=n(Va)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,hl=({percentage:i})=>e(cl,{children:[t(ul,{}),"number"==typeof i?t(pl,{size:ja.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),gl={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 ml(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 gl[n]?{value:t,unit:n}:{value:t,unit:"px"}}function fl(e){const t=ml(e);return`${t.value}${t.unit}`}const bl=(()=>{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}=ml(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:fl(1.5),height:fl(4),borderRadius:fl(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${bl} ${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)`}})]})},vl=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
|
-
|
|
72
|
+
`,$l=({scale:e,icon:i})=>{const n=o();return t(vl,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(vl,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(vl,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(vl,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(vl,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},wl=434,Sl=635,xl=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
|
-
`,
|
|
82
|
+
`,Cl=n.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,El=()=>e(xl,{children:[t(Cl,{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(Cl,{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(Cl,{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(Cl,{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(Cl,{children:t(ee,{size:112})})]}),Tl=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
|
-
`,
|
|
95
|
+
`,Ol=({scale:e=1,icon:i})=>{const n=o();return t(Tl,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Tl,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Tl,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Tl,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Tl,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Nl=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
|
-
`,
|
|
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
|
-
`,
|
|
115
|
+
`,kl=n.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,Il=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
|
-
`,
|
|
129
|
+
`,_l=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
|
-
`,
|
|
141
|
+
`,Dl=n(_l)`
|
|
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
|
-
`,
|
|
148
|
+
`,Rl=n.div`
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
padding: 12px;
|
|
152
152
|
overflow-y: scroll;
|
|
153
|
-
`,
|
|
153
|
+
`,Ll=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
|
-
`,
|
|
166
|
+
`,Pl=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
|
-
`,
|
|
173
|
+
`,Ul=n(_l)`
|
|
174
174
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
175
175
|
width: 100%;
|
|
176
|
-
`,
|
|
176
|
+
`,Ml=n(Il)`
|
|
177
177
|
gap: 16px;
|
|
178
178
|
padding: 16px;
|
|
179
|
-
`,
|
|
179
|
+
`,Fl=n.div`
|
|
180
180
|
width: 100%;
|
|
181
181
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
182
182
|
overflow-y: auto;
|
|
183
|
-
`,
|
|
183
|
+
`,zl=a`
|
|
184
184
|
0% {
|
|
185
185
|
background-position: 0% 50%;
|
|
186
186
|
}
|
|
187
187
|
100% {
|
|
188
188
|
background-position: 100% 50%;
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Bl=n(Va)`
|
|
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: ${
|
|
196
|
-
`,zl=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")}`},Bl=({icon:i,title:n,titleColor:r,titleSize:a=za.S,subTitle:s,subTitleColor:l,subTitleSize:d=za.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]=Ht(()=>c?zl(c):"");Wt(()=>{if(!c)return;w(zl(c));const e=setInterval(()=>w(zl(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(kl,{$gap:16,$alignItems:"center",children:[b?t(yl,{scale:1.7,icon:y}):h?t(ul,{percentage:f}):g?t(fl,{scale:m}):null,(n||s||c||i||u)&&e(kl,{$gap:8,$alignItems:"center",children:[e(Al,{$gap:4,children:[i&&t(i,{}),u?t(Fl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Xa,{align:"center",size:a,color:S,children:n}):null]}),s?t(Xa,{align:"center",size:d,color:x,children:s}):null,$?t(Xa,{align:"center",size:d,color:S,children:$}):null]})]})},jl=(e,t)=>({[Oi.Default]:i=>ee({fill:al(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:al(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:al(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:al(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:al(t,e,"500"),...i}),[Oi.Loading]:e=>Bl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:al(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:al(t,e,"300"),...i})}[e]),Hl=e=>{switch(e){case Ui.Success:return Oi.Success;case Ui.Error:case Ui.Failure:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Unsupported:case Ui.Unknown:return Oi.Info;case Ui.Irrelevant:case Ui.Disabled:return Oi.Disabled;case Ui.Waiting:return Oi.Loading;case Ui.Pending:default:return Oi.Default}},Wl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Xl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Gl={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:Ce},Vl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Xl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Xl[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=Gl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xl))if(o.includes(e))return t;return ze},Kl=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}},Yl=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=as(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},Jl=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Oi.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 Ql(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 Zl(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:ql(t??null)}}function ed(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:Ql(t??null)}}const td=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),id=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),nd=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},rd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},od=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ad=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,sd=e=>ad.test(e),ld=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:Ma(t),reason:i?Ma(i):"",message:n}))||[],dd=(e,t)=>{const i=as(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}))},cd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],ud=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],pd=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},hd=e=>e.replace(/[^\d]/g,""),gd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},md=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},fd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},bd={0:"",1:"OK",2:"ERROR"};class yd{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 yd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const vd=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=wd(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=vd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},wd=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},Sd=(e,t)=>{const i=e.readMessage();if(!i)return;const n=wd(i);void 0===n.key&&void 0===n.value||t.push(n)},xd=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},Cd=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?Sd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Ed=(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=vd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=vd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=vd(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?Sd(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Cd(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=xd(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Td=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=wd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Od=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=Od(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Ed(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Ad=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=Td(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},kd=e=>({key:e.key??null,value:e.value??null}),Id=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(kd);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(kd)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?fd[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)})},Dd=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 yd(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(...Ad(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Id(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"}}},_d=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}},Rd=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=>Rd(e)))}else if("object"==typeof n&&null!==n){const e=Rd(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Ld=(e,t=2)=>JSON.stringify(e||{},null,t),Pd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ud=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Md=ri("v1.33"),Fd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],zd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<Md},Bd=ri("v1.20"),jd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Bd},Hd=e=>e?Fd.map(t=>e[t]??null):[],Wd={PID:"process.pid",VPID:"process.vpid"},Xd={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Gd=[{id:wi.Go,label:Xd[wi.Go],icon:Ls(wi.Go)},{id:wi.Java,label:Xd[wi.Java],icon:Ls(wi.Java)},{id:wi.JavaScript,label:Xd[wi.JavaScript],icon:Ls(wi.JavaScript)},{id:wi.Python,label:Xd[wi.Python],icon:Ls(wi.Python)},{id:wi.Php,label:Xd[wi.Php],icon:Ls(wi.Php)},{id:wi.Ruby,label:Xd[wi.Ruby],icon:Ls(wi.Ruby)},{id:wi.Rust,label:Xd[wi.Rust],icon:Ls(wi.Rust)},{id:wi.DotNet,label:Xd[wi.DotNet],icon:Ls(wi.DotNet)},{id:wi.CSharp,label:Xd[wi.CSharp],icon:Ls(wi.CSharp)},{id:wi.CPlusPlus,label:Xd[wi.CPlusPlus],icon:Ls(wi.CPlusPlus)},{id:wi.Swift,label:Xd[wi.Swift],icon:Ls(wi.Swift)},{id:wi.Elixir,label:Xd[wi.Elixir],icon:Ls(wi.Elixir)}],Vd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},Kd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Ls(wi.Go)},Vd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Ls(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Ls(wi.JavaScript)},Vd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Ls(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Ls(wi.Python)},Vd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Ls(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Ls(wi.Java)},Vd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Ls(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Ls(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Ls(wi.DotNet)},Vd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Ls(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Ls(wi.Ruby)},Vd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Ls(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Ls(wi.Php)},Vd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Ls(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Ls(wi.MySql)}]},[wi.CPlusPlus]:{community:[Vd],enterprise:[]},[wi.Rust]:{community:[Vd],enterprise:[]},[wi.Swift]:{community:[Vd],enterprise:[]},[wi.Elixir]:{community:[Vd],enterprise:[]},[wi.Nginx]:{community:[Vd],enterprise:[]},[wi.Postgres]:{community:[Vd],enterprise:[]},[wi.Redis]:{community:[Vd],enterprise:[]},[wi.Kafka]:{community:[Vd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Vd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},Yd="*",Jd=e=>!!e?.includes(Yd),qd=e=>e?.length?Jd(e)?[Yd]:e:[],Qd=e=>{if(e?.length&&!Jd(e))return e.filter(e=>e!==Yd)},Zd=e=>e===Yd?"All languages":Xd[e]??e,ec=e=>e===Yd?vt:Ls(e),tc=ri("v1.26"),ic=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=tc},nc=[Mi.NetworkMetrics],rc=e=>!nc.includes(e),oc=[{type:Mi.CodeAttributes,icon:Ks(Mi.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:[wi.Go,wi.Python,wi.JavaScript]},{type:Mi.CustomInstrumentation,icon:Ks(Mi.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:[wi.Go,wi.Java,wi.Php]},{type:Mi.HeadersCollection,icon:Ks(Mi.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:[wi.Go,wi.Java,wi.JavaScript]},{type:Mi.PayloadCollection,icon:Ks(Mi.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:[wi.Go,wi.JavaScript]}],ac=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Ks(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},sc="Recommendations",lc="Optimize your observability setup with actionable recommendations.",dc="Recommended",cc="Applied",uc="Dismissed",pc="Not applicable",hc={[wn.Recommended]:dc,[wn.Applied]:cc,[wn.Dismissed]:uc,[wn.NotApplicable]:pc},gc="Accept",mc="Dismiss",fc="Restore",bc="Docs",yc="Benefits",vc="Considerations",$c="Apply Recommendation",wc="Apply via UI",Sc="Apply via GitOps",xc="Via UI",Cc="Via GitOps",Ec="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Tc="There are 2 ways to apply this recommendation.",Oc="Odigos applies the selected change immediately.",Nc="Commit the configuration to your repository and let your GitOps controller apply it.",Ac="UI changes apply only to this cluster and will not carry over if you re-install odigos.",kc="No recommendations",Ic="There are no recommendations for this cluster right now.",Dc="This recommendation does not currently apply to your cluster.",_c="Recommendation dismissed",Rc="Recommendation restored",Lc="Recommendation applied successfully",Pc="Failed to apply recommendation",Uc={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.'},Mc={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."},Fc={[hi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},zc="Cancel",Bc="Save",jc="Edit rule",Hc="Edit auto rule",Wc="Create rule",Xc="Delete rule",Gc="Save",Vc="Create your first rule",Kc="No Rules Exist",Yc="No Results",Jc=e=>`No rules match the search term "${e}"`,qc="Rule name",Qc="Rule type",Zc="Select the type of condition that makes a trace highly relevant.",eu="Rule Enabled",tu="Rule Disabled",iu="Enabled",nu="Disabled",ru="Note",ou="HTTP route",au="Method",su="Keep Percentage",lu="Keep traces with duration larger than",du="Keep traces with errors",cu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",uu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",pu="Custom percentage",hu="Disabled rule",gu="Sample",mu="Keep all",fu="Drop all",bu="Operation type",yu="HTTP route prefix",vu="Templated path",$u="Templated path prefix",wu="Kafka topic",Su="Custom duration (ms)",xu="No preview available",Cu="Server address",Eu="Drop at most this percentage of matching traces",Tu="Unnamed rule",Ou="Sampling Preview",Nu="Source Scope",Au="Unknown source",ku="Operation",Iu="Duration",Du="Errors",_u="Keep Percentage",Ru="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Lu="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.",Pu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Uu="Retain traces with errors from the selected services and operations.",Mu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Fu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",zu={highlyRelevant:Mu,noisy:Fu,costReduction:void 0},Bu="Type rule name",ju="Add note here...",Hu="Type here",Wu="Search source name",Xu="e.g. collector.my.vendor.com",Gu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Vu="Rule will apply to all sources in the cluster",Ku="If multiple source scopes are set, they must all match simultaneously.",Yu="All sources",Ju="-",qu="All",Qu="Sources",Zu="Namespaces",ep="Languages",tp="any of",ip="AND",np="All operations",rp="HTTP server endpoint",op="HTTP client endpoint",ap="Kafka consumer",sp="Kafka producer",lp="Sampling Rules",dp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',cp="Refresh",up="Create rule",pp="Sampling docs",hp="75vw",gp="Delete rule?",mp="Are you sure you want to delete this sampling rule?",fp="Delete",bp="Cancel",yp="Kubernetes Health Probes",vp="Keep All Error Traces",$p="Drop Traces Cluster-Wide",wp="A rule with the same matching conditions already exists.",Sp="Create this rule as-is?",xp="This rule still uses the default configuration.\nDo you want to create it anyway?",Cp="Rule preview",Ep="Continue editing",Tp="Create 'Noisy Operation Kubernetes Health Probes' rule",Op="Edit 'Noisy Operation Kubernetes Health Probes' rule",Np="Automatically detect and sample health probe traces across the cluster.",Ap="Create 'Highly Relevant Operations' rule",kp="Edit 'Highly Relevant Operations' rule",Ip="Automatically keep all error traces across the entire cluster.",Dp="Create 'Cost Reduction' rule",_p="Edit 'Cost Reduction' rule",Rp="Automatically drop a percentage of traces across the entire cluster.",Lp="Skip setup",Pp="Start setup",Up="Next",Mp="Go to Sampling",Fp="Read more",zp="Welcome to Sampling",Bp="Cut costs without losing what matters",jp="Odigos sampling works in three stages:",Hp="Filter noisy traffic",Wp="Remove non-actionable traces like health checks.",Xp="Guarantee highly relevance operations",Gp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Vp="Reduce cost",Kp="Sample routine traffic using percentages.",Yp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Jp="Filter noisy operations",qp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Qp="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.",Zp="Preset Rules",eh="Kubernetes Health Probes",th="Automatically ignore health checks",ih="You can review, adjust, and add additional custom rules later.",nh="Choose your sampling strategy",rh="Pick the approach that best fits your balance of cost vs data-completeness",oh="Keep List",ah="Budget Friendly",sh="Define which traces must be kept, while all others are sampled by default to minimize cost.",lh="Cost-oriented - keeps only what you explicitly select.",dh="Best for very large clusters with high volumes of traces and high costs.",ch="Higher risk of missing important traces without ongoing review.",uh="Drop List",ph="Safe Choice",hh="Define which traces must be aggressively dropped, while all others are kept by default.",gh="Preserves most data unless explicitly filtered.",mh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",fh="Advanced",bh="Maximum Flexibility",yh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",vh="'Keep List' profile",$h="Protect important traces",wh="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:",Sh="Traces with errors",xh="Slow requests (duration above threshold)",Ch="Mission-Critical endpoints or services",Eh="Services under test or evaluation",Th="New deployments",Oh="You can review, adjust, and add rules once onboarding is complete.",Nh="Common Rules",Ah="Preset Rules",kh="Error collection - entire cluster",Ih="Keep all traces with errors",Dh="Ambient sampling percentage",_h="'Drop List' profile",Rh="Reduce high-volume traffic",Lh="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.",Ph="Advanced Configuration",Uh="Configure sampling rules",Mh="Advanced mode allows you to configure all sampling categories:",Fh="Noise Filtering - remove non-actionable traces",zh="Highly Relevance - guarantee important traces are kept",Bh='Cost Control - drop traces for "Normal" operations',jh="Rules can target:",Hh="Services",Wh="HTTP Endpoints",Xh="DB Operations",Gh="Errors",Vh="Latency and more...",Kh="Sampling configured successfully!",Yh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Jh="Odigos will now:",qh="Filter noisy operations",Qh="Guarantee important traces",Zh="Reduce cost using controlled sampling",eg="Recommended",tg={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."},ig={noisy:Tp,highlyRelevant:Ap,costReduction:Dp},ng={noisy:Op,highlyRelevant:kp,costReduction:_p},rg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},og=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],ag=6048e5,sg="URL templatization",lg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",dg="Default templatization",cg="Custom and default URL templatization scopes across URL templatization actions.",ug="Default templatization is not enabled",pg="Automatically detect and templatize dynamic URL segments when no custom template matches.",hg="Enable for entire cluster",gg="Custom URL templates",mg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",fg="View by:",bg="Groups",yg="Tree",vg="List",$g="Create templating scope",wg="Edit scoped templates",Sg="Edit",xg="Add template",Cg="Add templatization rules",Eg="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Tg="Add templatization rule",Og="Choose how to templatize dynamic URLs",Ng="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Ag="Before",kg="After",Ig="/users/123/orders/456",Dg="/users/{id}/orders/{orderId}",_g="Automatic templatization",Rg="Recommended",Lg="Detect and templatize dynamic URL segments when no custom rule matches.",Pg="Applies to: Entire cluster",Ug="Reversible at any time",Mg="Enabled",Fg="Need more control?",zg="Create a custom rule for specific URL patterns.",Bg="Create custom rule",jg="Learn how it works",Hg="Docs",Wg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Xg="Default templatization is enabled — editor coming next.",Gg="746px",Vg="Add default templatization rule",Kg="Edit default templatization rule",Yg="Disable for a scope",Jg="UI template rules",qg="Source Scope",Qg="Scope",Zg="Choose which sources this template rule applies to.",em="Sources where this template is tested and applied.",tm="This rule will apply to all sources in the cluster.",im="Default templatization",nm="Automatically templatize dynamic URL segments when no custom template matches.",rm="Enable automatic URL templatization for this scope",om=["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."],am="default templatization for this scope",sm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",lm="Disable",dm="Skip policy",cm="Advanced",um=["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."],pm=um.join(" "),hm="Skip default templatization for all non-2xx responses",gm="Skip default templatization for specific HTTP status codes",mm="Example: 404, 401",fm="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.",ym="This rule will take effect in the cluster immediately after it is saved.",vm="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.`:vm}const wm="Add rule",Sm="Save",xm="Cancel",Cm="Cancel without saving",Em="Delete",Tm="templating scope";function Om(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.",Am="Create custom template",km="Create new scoped template",Im="Add URL templates",Dm="UI template rules",_m=e=>`To ${e}`,Rm=e=>`Applies to ${e} source${1===e?"":"s"}`,Lm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Pm=e=>`Applies to ${e} language${1===e?"":"s"}`,Um="Applies to entire cluster",Mm=e=>`Applies to ${e} scope${1===e?"":"s"}`,Fm="Where should this rule apply?",zm=Fm,Bm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",jm="Specific scope",Hm="Entire cluster",Wm="Apply the rule only where it is needed.",Xm="Apply to every source in this cluster.",Gm="Quick start",Vm="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Km="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Ym="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Jm="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.",Qm="Add to existing template group",Zm="Create new template group",ef="Add here",tf="Create New",nf="Existing templating scope",rf="Templating scopes",of="Select where to add the new template",af="A template group already uses this scope",sf="Choose where to add the new templates.",lf="Add to existing template group",df="Create a separate template group",cf="Use different settings or behavior for the same scope.",uf="View action settings",pf="Default settings",hf=e=>nf,gf=e=>1===e?"1 template":`${e} templates`,mf="Templating scope",ff=(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.",yf="Select action",vf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",$f="Advanced settings",wf="Default UI-managed action · Recommended",Sf="Create a new action",xf="Select action",Cf="Default UI-managed action",Ef="Add this template group to the default UI-managed action.",Tf="Select action",Of="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)",Af="Selected Template group:",kf="URL templatization action",If="Create new action",Df="__odigos_create_new_url_templatization_action__",_f=Of,Rf="New action name",Lf="New action group",Pf="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.",Uf="Create new template group",Mf="Next",Ff="Back",zf="Action name",Bf="Action",jf="UI template rules",Hf="__odigos_default_url_templatization_action__",Wf="UI-owned",Xf="Externally synced",Gf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Vf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Kf=Wf,Yf="Templates",Jf="Other templates in this group",qf="Additional templates that share the same source scope and Action as this rule.",Qf="e.g. /api/users/{id}",Zf="Language",eb="Namespace",tb="Source",ib="AND",nb="Entire cluster",rb="Unset",ob="Enabled globally",ab="Default templating disabled",sb="Enabled",lb="Default templatization is unset. No default rules are configured on an enabled action.",db="Default templatization is enabled globally.",cb="Default templatization is disabled for the entire cluster.";function ub(e){return e<=0?db:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const pb="Disabled for these scopes",hb="Disable for a scope",gb="Delete",mb="disabled scope",fb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",bb="Automatic templatization",yb="Active",vb="Custom and default URL templatization scopes across URL templatization actions.",$b="Custom templates take precedence over automatic templatization.",wb="Scope",Sb="Status codes",xb="Disabled",Cb="Entire cluster",Eb="All",Tb="None",Ob="Disabled",Nb="No disabled scope configured",Ab="Add disabled",kb="Disabled scopes",Ib="Advanced",Db=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,_b="Automatic templatization off for matching traffic.",Rb="Disable for a scope",Lb="Scope",Pb="Effective behavior",Ub="Status",Mb="Automatic templatization off",Fb="Covered by broader exception",zb="Disabled",Bb="Redundant",jb="No disabled scope configured",Hb="Disable automatic templatization for specific scopes when needed.",Wb=(e,t)=>`${e} configured • ${t} effective`,Xb=e=>1===e?"1 scope":`${e} scopes`,Gb="Default templatization is enabled for all HTTP status codes.";function Vb(e){return e<=0?Gb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Kb="HTTP status code policies",Yb="No skip policy configured",Jb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",qb="Add skip policy for a scope",Qb="Add skip policy for a scope",Zb="Skip default templatization on HTTP errors",ey="Delete",ty="skip policy",iy="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",ny="Template details",ry="Template",oy="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",ay="Created via",sy="Action name",ly="Kubernetes name",dy="Odigos Action (Kubernetes resource) where this template is managed.",cy="Try a URL",uy="/users/12/orders/345685335358",py="Test URL",hy="Close",gy="Result",my="Templated URL path",fy="Match found",by="This URL matches the template.",yy="No match",vy="This URL doesn't match the template.",$y="Check the URL structure and parameter positions, then try again.",wy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Va},Sy=Ft(e=>({...wy,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(wy)}));var xy;(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"})(xy||(xy={}));const Cy=e=>`add-${Ma(e).replaceAll(" ","-").toLowerCase()}`,Ey=e=>`edit-${Ma(e).replaceAll(" ","-").toLowerCase()}`,Ty=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Oy=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Ny=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:Oy})),Ay=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 ky;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(ky||(ky={}));const Iy=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Dy=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),_y=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Iy();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]:Dy(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Iy(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]:Dy(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ry=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ly={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Py=(e,t)=>e.destinationType.type!==t.destinationType.type,Uy=Ft(e=>({...Ly,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=>Py(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=>Py(e,t))})),clearStore:()=>e(()=>({...Ly}))})),My=e=>{function t(){return void 0===e?{}:ys(e)}const[i,n]=Ht(t()),[r,o]=Ht({}),[a,s]=Ht(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=Gt(()=>!d(a,i),[a,i]);Wt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Xt((e,t)=>vs("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=ys(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=ys(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}},Fy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},zy=()=>{const{addNotification:e}=Ay(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=My(Fy);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":td(t)&&(n[e]=qa.FIELD_IS_REQUIRED)}}),t.type===oi.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:Oi.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={...ys(Fy),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case si.LabelsAttributes:case si.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 si.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 si.CollectContainerAttributes:case si.CollectReplicaSetAttributes:case si.CollectWorkloadId:case si.CollectClusterId:case si.ClusterAttributes:case si.OverwriteExistingValues:case si.AttributeNamesToDelete:case si.Renames:case si.PiiCategories:case si.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},By=e=>{Wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},jy=()=>{const e=Vt(null),[t,i]=Ht(0),[n,r]=Ht(0);return Wt(()=>{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}},Hy="data-ignore-outside-click",Wy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Hy))return!0;t=t.parentNode}return!1},Xy=(e,t)=>{const i=Vt(t);i.current=t,Wt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Wy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Gy=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Vt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return Xy(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})}}},Vy=n.div`
|
|
195
|
+
animation: ${zl} 1s reverse linear infinite;
|
|
196
|
+
`,jl=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")}`},Hl=({icon:i,title:n,titleColor:r,titleSize:a=ja.S,subTitle:s,subTitleColor:l,subTitleSize:d=ja.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]=Ht(()=>c?jl(c):"");Xt(()=>{if(!c)return;w(jl(c));const e=setInterval(()=>w(jl(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(_l,{$gap:16,$alignItems:"center",children:[b?t($l,{scale:1.7,icon:y}):h?t(hl,{percentage:f}):g?t(yl,{scale:m}):null,(n||s||c||i||u)&&e(_l,{$gap:8,$alignItems:"center",children:[e(Il,{$gap:4,children:[i&&t(i,{}),u?t(Bl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Va,{align:"center",size:a,color:S,children:n}):null]}),s?t(Va,{align:"center",size:d,color:x,children:s}):null,$?t(Va,{align:"center",size:d,color:S,children:$}):null]})]})},Xl=(e,t)=>({[Oi.Default]:i=>ee({fill:ll(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:ll(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:ll(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:ll(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:ll(t,e,"500"),...i}),[Oi.Loading]:e=>Hl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:ll(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:ll(t,e,"300"),...i})}[e]),Wl=e=>{switch(e){case Ui.Success:return Oi.Success;case Ui.Error:case Ui.Failure:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Unsupported:case Ui.Unknown:return Oi.Info;case Ui.Irrelevant:case Ui.Disabled:return Oi.Disabled;case Ui.Waiting:return Oi.Loading;case Ui.Pending:default:return Oi.Default}},Gl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Vl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Kl={sts:bt,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},Yl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Vl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Vl[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=Kl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Vl))if(o.includes(e))return t;return ze},Jl=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}},ql=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ls(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!==Oi.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Zl(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 ed(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 td(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:Zl(t??null)}}function id(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:ed(t??null)}}const nd=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),rd=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),od=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},ad=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},sd=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ld=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,dd=e=>ld.test(e),cd=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:za(t),reason:i?za(i):"",message:n}))||[],ud=(e,t)=>{const i=ls(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}))},pd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],hd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],gd=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},md=e=>e.replace(/[^\d]/g,""),fd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},bd=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"},vd={0:"",1:"OK",2:"ERROR"};class $d{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 $d(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},Sd=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(Sd(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=xd(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},xd=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?Sd(i):void 0}else e.skip(i.wire)}return t},Cd=(e,t)=>{const i=e.readMessage();if(!i)return;const n=xd(i);void 0===n.key&&void 0===n.value||t.push(n)},Ed=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},Td=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?Cd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Od=(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?Cd(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Td(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Ed(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Nd=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=xd(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},kd=(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(Od(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Id=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=Nd(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...kd(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},_d=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?vd[e.statusCode]??null:null,u=(e.attrs??[]).map(_d);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(_d)}});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)})},Rd=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 $d(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(...Id(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"}}},Ld=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}},Pd=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=>Pd(e)))}else if("object"==typeof n&&null!==n){const e=Pd(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Ud=(e,t=2)=>JSON.stringify(e||{},null,t),Md=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Fd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),zd=ri("v1.33"),Bd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],jd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<zd},Hd=ri("v1.20"),Xd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Hd},Wd=e=>e?Bd.map(t=>e[t]??null):[],Gd={PID:"process.pid",VPID:"process.vpid"},Vd={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Kd=[{id:wi.Go,label:Vd[wi.Go],icon:Us(wi.Go)},{id:wi.Java,label:Vd[wi.Java],icon:Us(wi.Java)},{id:wi.JavaScript,label:Vd[wi.JavaScript],icon:Us(wi.JavaScript)},{id:wi.Python,label:Vd[wi.Python],icon:Us(wi.Python)},{id:wi.Php,label:Vd[wi.Php],icon:Us(wi.Php)},{id:wi.Ruby,label:Vd[wi.Ruby],icon:Us(wi.Ruby)},{id:wi.Rust,label:Vd[wi.Rust],icon:Us(wi.Rust)},{id:wi.DotNet,label:Vd[wi.DotNet],icon:Us(wi.DotNet)},{id:wi.CSharp,label:Vd[wi.CSharp],icon:Us(wi.CSharp)},{id:wi.CPlusPlus,label:Vd[wi.CPlusPlus],icon:Us(wi.CPlusPlus)},{id:wi.Swift,label:Vd[wi.Swift],icon:Us(wi.Swift)},{id:wi.Elixir,label:Vd[wi.Elixir],icon:Us(wi.Elixir)}],Yd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},Jd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Us(wi.Go)},Yd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Us(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Us(wi.JavaScript)},Yd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Us(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Us(wi.Python)},Yd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Us(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Us(wi.Java)},Yd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Us(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Us(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Us(wi.DotNet)},Yd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Us(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Us(wi.Ruby)},Yd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Us(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Us(wi.Php)},Yd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Us(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Us(wi.MySql)}]},[wi.CPlusPlus]:{community:[Yd],enterprise:[]},[wi.Rust]:{community:[Yd],enterprise:[]},[wi.Swift]:{community:[Yd],enterprise:[]},[wi.Elixir]:{community:[Yd],enterprise:[]},[wi.Nginx]:{community:[Yd],enterprise:[]},[wi.Postgres]:{community:[Yd],enterprise:[]},[wi.Redis]:{community:[Yd],enterprise:[]},[wi.Kafka]:{community:[Yd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Yd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},qd="*",Qd=e=>!!e?.includes(qd),Zd=e=>e?.length?Qd(e)?[qd]:e:[],ec=e=>{if(e?.length&&!Qd(e))return e.filter(e=>e!==qd)},tc=e=>e===qd?"All languages":Vd[e]??e,ic=e=>e===qd?vt:Us(e),nc=ri("v1.26"),rc=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=nc},oc=[Mi.NetworkMetrics],ac=e=>!oc.includes(e),sc=[{type:Mi.CodeAttributes,icon:Js(Mi.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:[wi.Go,wi.Python,wi.JavaScript]},{type:Mi.CustomInstrumentation,icon:Js(Mi.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:[wi.Go,wi.Java,wi.Php]},{type:Mi.HeadersCollection,icon:Js(Mi.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:[wi.Go,wi.Java,wi.JavaScript]},{type:Mi.PayloadCollection,icon:Js(Mi.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:[wi.Go,wi.JavaScript]}],lc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Js(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},dc="Recommendations",cc="Optimize your observability setup with actionable recommendations.",uc="Recommended",pc="Applied",hc="Dismissed",gc="Not applicable",mc={[wn.Recommended]:uc,[wn.Applied]:pc,[wn.Dismissed]:hc,[wn.NotApplicable]:gc},fc="Accept",bc="Dismiss",yc="Restore",vc="Docs",$c="Benefits",wc="Considerations",Sc="Apply Recommendation",xc="Apply via UI",Cc="Apply via GitOps",Ec="Via UI",Tc="Via GitOps",Oc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Nc="There are 2 ways to apply this recommendation.",Ac="Odigos applies the selected change immediately.",kc="Commit the configuration to your repository and let your GitOps controller apply it.",Ic="UI changes apply only to this cluster and will not carry over if you re-install odigos.",_c="No recommendations",Dc="There are no recommendations for this cluster right now.",Rc="This recommendation does not currently apply to your cluster.",Lc="Recommendation dismissed",Pc="Recommendation restored",Uc="Recommendation applied successfully",Mc="Failed to apply recommendation",Fc={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.'},zc={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."},Bc={[hi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},jc="Cancel",Hc="Save",Xc="Edit rule",Wc="Edit auto rule",Gc="Create rule",Vc="Delete rule",Kc="Save",Yc="Create your first rule",Jc="No Rules Exist",qc="No Results",Qc=e=>`No rules match the search term "${e}"`,Zc="Rule name",eu="Rule type",tu="Select the type of condition that makes a trace highly relevant.",iu="Rule Enabled",nu="Rule Disabled",ru="Enabled",ou="Disabled",au="Note",su="HTTP route",lu="Method",du="Keep Percentage",cu="Keep traces with duration larger than",uu="Keep traces with errors",pu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",hu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",gu="Custom percentage",mu="Disabled rule",fu="Sample",bu="Keep all",yu="Drop all",vu="Operation type",$u="HTTP route prefix",wu="Templated path",Su="Templated path prefix",xu="Kafka topic",Cu="Custom duration (ms)",Eu="No preview available",Tu="Server address",Ou="Drop at most this percentage of matching traces",Nu="Unnamed rule",Au="Sampling Preview",ku="Source Scope",Iu="Unknown source",_u="Operation",Du="Duration",Ru="Errors",Lu="Keep Percentage",Pu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Uu="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.",Mu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Fu="Retain traces with errors from the selected services and operations.",zu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Bu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",ju={highlyRelevant:zu,noisy:Bu,costReduction:void 0},Hu="Type rule name",Xu="Add note here...",Wu="Type here",Gu="Search source name",Vu="e.g. collector.my.vendor.com",Ku="Optional notes (not used by the system). Add any context or details for this sampling rule.",Yu="Rule will apply to all sources in the cluster",Ju="If multiple source scopes are set, they must all match simultaneously.",qu="All sources",Qu="-",Zu="All",ep="Sources",tp="Namespaces",ip="Languages",np="any of",rp="AND",op="All operations",ap="HTTP server endpoint",sp="HTTP client endpoint",lp="Kafka consumer",dp="Kafka producer",cp="Sampling Rules",up='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',pp="Refresh",hp="Create rule",gp="Sampling docs",mp="75vw",fp="Delete rule?",bp="Are you sure you want to delete this sampling rule?",yp="Delete",vp="Cancel",$p="Kubernetes Health Probes",wp="Keep All Error Traces",Sp="Drop Traces Cluster-Wide",xp="A rule with the same matching conditions already exists.",Cp="Create this rule as-is?",Ep="This rule still uses the default configuration.\nDo you want to create it anyway?",Tp="Rule preview",Op="Continue editing",Np="Create 'Noisy Operation Kubernetes Health Probes' rule",Ap="Edit 'Noisy Operation Kubernetes Health Probes' rule",kp="Automatically detect and sample health probe traces across the cluster.",Ip="Create 'Highly Relevant Operations' rule",_p="Edit 'Highly Relevant Operations' rule",Dp="Automatically keep all error traces across the entire cluster.",Rp="Create 'Cost Reduction' rule",Lp="Edit 'Cost Reduction' rule",Pp="Automatically drop a percentage of traces across the entire cluster.",Up="Skip setup",Mp="Start setup",Fp="Next",zp="Go to Sampling",Bp="Read more",jp="Welcome to Sampling",Hp="Cut costs without losing what matters",Xp="Odigos sampling works in three stages:",Wp="Filter noisy traffic",Gp="Remove non-actionable traces like health checks.",Vp="Guarantee highly relevance operations",Kp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Yp="Reduce cost",Jp="Sample routine traffic using percentages.",qp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Qp="Filter noisy operations",Zp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",eh="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.",th="Preset Rules",ih="Kubernetes Health Probes",nh="Automatically ignore health checks",rh="You can review, adjust, and add additional custom rules later.",oh="Choose your sampling strategy",ah="Pick the approach that best fits your balance of cost vs data-completeness",sh="Keep List",lh="Budget Friendly",dh="Define which traces must be kept, while all others are sampled by default to minimize cost.",ch="Cost-oriented - keeps only what you explicitly select.",uh="Best for very large clusters with high volumes of traces and high costs.",ph="Higher risk of missing important traces without ongoing review.",hh="Drop List",gh="Safe Choice",mh="Define which traces must be aggressively dropped, while all others are kept by default.",fh="Preserves most data unless explicitly filtered.",bh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",yh="Advanced",vh="Maximum Flexibility",$h="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",wh="'Keep List' profile",Sh="Protect important traces",xh="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:",Ch="Traces with errors",Eh="Slow requests (duration above threshold)",Th="Mission-Critical endpoints or services",Oh="Services under test or evaluation",Nh="New deployments",Ah="You can review, adjust, and add rules once onboarding is complete.",kh="Common Rules",Ih="Preset Rules",_h="Error collection - entire cluster",Dh="Keep all traces with errors",Rh="Ambient sampling percentage",Lh="'Drop List' profile",Ph="Reduce high-volume traffic",Uh="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.",Mh="Advanced Configuration",Fh="Configure sampling rules",zh="Advanced mode allows you to configure all sampling categories:",Bh="Noise Filtering - remove non-actionable traces",jh="Highly Relevance - guarantee important traces are kept",Hh='Cost Control - drop traces for "Normal" operations',Xh="Rules can target:",Wh="Services",Gh="HTTP Endpoints",Vh="DB Operations",Kh="Errors",Yh="Latency and more...",Jh="Sampling configured successfully!",qh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Qh="Odigos will now:",Zh="Filter noisy operations",eg="Guarantee important traces",tg="Reduce cost using controlled sampling",ig="Recommended",ng={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."},rg={noisy:Np,highlyRelevant:Ip,costReduction:Rp},og={noisy:Ap,highlyRelevant:_p,costReduction:Lp},ag={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},sg=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],lg=6048e5,dg="URL templatization",cg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",ug="Default templatization",pg="Custom and default URL templatization scopes across URL templatization actions.",hg="Default templatization is not enabled",gg="Automatically detect and templatize dynamic URL segments when no custom template matches.",mg="Enable for entire cluster",fg="Custom URL templates",bg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",yg="View by:",vg="Groups",$g="Tree",wg="List",Sg="Create templating scope",xg="Edit scoped templates",Cg="Edit",Eg="Add template",Tg="Add templatization rules",Og="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Ng="Add templatization rule",Ag="Choose how to templatize dynamic URLs",kg="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Ig="Before",_g="After",Dg="/users/123/orders/456",Rg="/users/{id}/orders/{orderId}",Lg="Automatic templatization",Pg="Recommended",Ug="Detect and templatize dynamic URL segments when no custom rule matches.",Mg="Applies to: Entire cluster",Fg="Reversible at any time",zg="Enabled",Bg="Need more control?",jg="Create a custom rule for specific URL patterns.",Hg="Create custom rule",Xg="Learn how it works",Wg="Docs",Gg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Vg="Default templatization is enabled — editor coming next.",Kg="746px",Yg="Add default templatization rule",Jg="Edit default templatization rule",qg="Disable for a scope",Qg="UI template rules",Zg="Source Scope",em="Scope",tm="Choose which sources this template rule applies to.",im="Sources where this template is tested and applied.",nm="This rule will apply to all sources in the cluster.",rm="Default templatization",om="Automatically templatize dynamic URL segments when no custom template matches.",am="Enable automatic URL templatization for this scope",sm=["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."],lm="default templatization for this scope",dm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",cm="Disable",um="Skip policy",pm="Advanced",hm=["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."],gm=hm.join(" "),mm="Skip default templatization for all non-2xx responses",fm="Skip default templatization for specific HTTP status codes",bm="Example: 404, 401",ym="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",vm="This rule will take effect in the cluster immediately after it is added.",$m="This rule will take effect in the cluster immediately after it is saved.",wm="No template changes. Save will keep the current templates.";function Sm(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 xm="Add rule",Cm="Save",Em="Cancel",Tm="Cancel without saving",Om="Delete",Nm="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 km="Enter valid HTTP status codes between 100 and 599, separated by commas.",Im="Create custom template",_m="Create new scoped template",Dm="Add URL templates",Rm="UI template rules",Lm=e=>`To ${e}`,Pm=e=>`Applies to ${e} source${1===e?"":"s"}`,Um=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Mm=e=>`Applies to ${e} language${1===e?"":"s"}`,Fm="Applies to entire cluster",zm=e=>`Applies to ${e} scope${1===e?"":"s"}`,Bm="Where should this rule apply?",jm=Bm,Hm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Xm="Specific scope",Wm="Entire cluster",Gm="Apply the rule only where it is needed.",Vm="Apply to every source in this cluster.",Km="Quick start",Ym="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Jm="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",qm="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.",Zm="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.",ef="Add to existing template group",tf="Create new template group",nf="Add here",rf="Create New",of="Existing templating scope",af="Templating scopes",sf="Select where to add the new template",lf="A template group already uses this scope",df="Choose where to add the new templates.",cf="Add to existing template group",uf="Create a separate template group",pf="Use different settings or behavior for the same scope.",hf="View action settings",gf="Default settings",mf=e=>of,ff=e=>1===e?"1 template":`${e} templates`,bf="Templating scope",yf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,vf="Template group will be added to the default action. Expand Select action to choose a different one.",$f="Select action",wf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",Sf="Advanced settings",xf="Default UI-managed action · Recommended",Cf="Create a new action",Ef="Select action",Tf="Default UI-managed action",Of="Add this template group to the default UI-managed action.",Nf="Select action",Af="Choose an existing action or create a new one for this template group.",kf="Search template group by type action name or scope (languages, namespaces, sources)",If="Selected Template group:",_f="URL templatization action",Df="Create new action",Rf="__odigos_create_new_url_templatization_action__",Lf=Af,Pf="New action name",Uf="New action group",Mf="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.",Ff="Create new template group",zf="Next",Bf="Back",jf="Action name",Hf="Action",Xf="UI template rules",Wf="__odigos_default_url_templatization_action__",Gf="UI-owned",Vf="Externally synced",Kf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Yf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Jf=Gf,qf="Templates",Qf="Other templates in this group",Zf="Additional templates that share the same source scope and Action as this rule.",eb="e.g. /api/users/{id}",tb="Language",ib="Namespace",nb="Source",rb="AND",ob="Entire cluster",ab="Unset",sb="Enabled globally",lb="Default templating disabled",db="Enabled",cb="Default templatization is unset. No default rules are configured on an enabled action.",ub="Default templatization is enabled globally.",pb="Default templatization is disabled for the entire cluster.";function hb(e){return e<=0?ub:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const gb="Disabled for these scopes",mb="Disable for a scope",fb="Delete",bb="disabled scope",yb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",vb="Automatic templatization",$b="Active",wb="Custom and default URL templatization scopes across URL templatization actions.",Sb="Custom templates take precedence over automatic templatization.",xb="Scope",Cb="Status codes",Eb="Disabled",Tb="Entire cluster",Ob="All",Nb="None",Ab="Disabled",kb="No disabled scope configured",Ib="Add disabled",_b="Disabled scopes",Db="Advanced",Rb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Lb="Automatic templatization off for matching traffic.",Pb="Disable for a scope",Ub="Scope",Mb="Effective behavior",Fb="Status",zb="Automatic templatization off",Bb="Covered by broader exception",jb="Disabled",Hb="Redundant",Xb="No disabled scope configured",Wb="Disable automatic templatization for specific scopes when needed.",Gb=(e,t)=>`${e} configured • ${t} effective`,Vb=e=>1===e?"1 scope":`${e} scopes`,Kb="Default templatization is enabled for all HTTP status codes.";function Yb(e){return e<=0?Kb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Jb="HTTP status code policies",qb="No skip policy configured",Qb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Zb="Add skip policy for a scope",ey="Add skip policy for a scope",ty="Skip default templatization on HTTP errors",iy="Delete",ny="skip policy",ry="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",oy="Template details",ay="Template",sy="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",ly="Created via",dy="Action name",cy="Kubernetes name",uy="Odigos Action (Kubernetes resource) where this template is managed.",py="Try a URL",hy="/users/12/orders/345685335358",gy="Test URL",my="Close",fy="Result",by="Templated URL path",yy="Match found",vy="This URL matches the template.",$y="No match",wy="This URL doesn't match the template.",Sy="Check the URL structure and parameter positions, then try again.",xy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ya},Cy=Ft(e=>({...xy,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(xy)}));var Ey;(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"})(Ey||(Ey={}));const Ty=e=>`add-${za(e).replaceAll(" ","-").toLowerCase()}`,Oy=e=>`edit-${za(e).replaceAll(" ","-").toLowerCase()}`,Ny=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Ay=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),ky=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:Ay})),Iy=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 _y;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(_y||(_y={}));const Dy=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ry=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Ly=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Dy();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]:Ry(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Dy(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]:Ry(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Py=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Uy={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},My=(e,t)=>e.destinationType.type!==t.destinationType.type,Fy=Ft(e=>({...Uy,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=>My(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=>My(e,t))})),clearStore:()=>e(()=>({...Uy}))})),zy=e=>{function t(){return void 0===e?{}:$s(e)}const[i,n]=Ht(t()),[r,o]=Ht({}),[a,s]=Ht(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=Gt(()=>!d(a,i),[a,i]);Xt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Wt((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=$s(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=$s(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}},By={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},jy=()=>{const{addNotification:e}=Iy(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=zy(By);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":nd(t)&&(n[e]=Za.FIELD_IS_REQUIRED)}}),t.type===oi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Za.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Oi.Warning,title:i.alertTitle,message:Za.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={...$s(By),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case si.LabelsAttributes:case si.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 si.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 si.CollectContainerAttributes:case si.CollectReplicaSetAttributes:case si.CollectWorkloadId:case si.CollectClusterId:case si.ClusterAttributes:case si.OverwriteExistingValues:case si.AttributeNamesToDelete:case si.Renames:case si.PiiCategories:case si.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Hy=e=>{Xt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xy=()=>{const e=Vt(null),[t,i]=Ht(0),[n,r]=Ht(0);return Xt(()=>{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}},Wy="data-ignore-outside-click",Gy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Wy))return!0;t=t.parentNode}return!1},Vy=(e,t)=>{const i=Vt(t);i.current=t,Xt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Gy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Ky=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Vt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return Vy(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})}}},Yy=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
|
-
`,
|
|
208
|
+
`,Jy=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
|
-
`,
|
|
220
|
+
`,qy=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
|
-
`,
|
|
227
|
+
`,Qy=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
|
-
`,
|
|
234
|
+
`,Zy=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
|
-
`,
|
|
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
|
-
`,
|
|
253
|
+
`,tv=({typographyProps:n,withIcon:r,titleIcon:a,title:s,text:l,timestamp:d,children:c,fullWidth:u=!1,inline:p=!1,maxWidth:h="270px",keepAlive:g=!1,ellipsis:m=!1})=>{const f=o(),b=Gt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(l),[l]),y=b.join(" "),{popupRef:v,popupOpen:$,setPopupOpen:w,popupPosition:S,arrowPlacement:x,handlePosition:C}=Ky({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),E=Gt(()=>b.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),[b]),T=e=>{const{type:t,clientX:i,clientY:n}=e;E?C(S.left||i,S.top||n):C(i,n),w("mouseleave"!==t)};if(!b.length&&!g)return t(i,{children:c});const O=$&&b.length>0;return e(Yy,{$fullWidth:u,$ellipsis:m,$inline:p,onMouseEnter:T,onMouseMove:T,onMouseLeave:T,children:[t(Va,{...n,children:c}),r&&t(tt,{fill:f.v2.colors.white[500]}),O&&Qt.createPortal(e(Jy,{ref:v,$top:S.top,$left:S.left,$withPointerEvents:E,onMouseEnter:E?T:void 0,children:["top"===x.edge&&t(Zy,{$align:x.align,children:t(ev,{$pointsUp:!0})}),t(qy,{$maxWidth:h,children:e(Qy,{children:[(!!a||!!s)&&e(Il,{$gap:4,style:{alignItems:"center"},children:[a&&t(a,{size:16},"icon"),s&&t(Va,{size:ja.XS,children:s},"title")]}),b.map((e,i)=>t(Va,{size:ja.XXXS,children:e},i)),!!d&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:new Date(d).toLocaleString()})]})}),"bottom"===x.edge&&t(Zy,{$align:x.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===
|
|
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===
|
|
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===
|
|
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===
|
|
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===
|
|
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,15 +318,16 @@ 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
|
-
`,nv=Bt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=ev.Primary,size:u=tv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===tv.L?18:16),E=u===tv.L?za.S:za.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),k=!(!v&&!A),I=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(iv,{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(Zy,{text:a,withIcon:!s,children:A?t(Bl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Il,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Xa,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Il,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});nv.displayName=nv.name;const rv=({onDone:e}={})=>{const[i,n]=Ht(!1),[r,o]=Ht(-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(nv,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:ev.Secondary,size:tv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},ov=e=>{const{addNotification:t}=Ay(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=My(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?id(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:Oi.Warning,title:e.alertTitle,message:qa.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...ys(e),name:t};n(void 0,void 0,i)}}},av={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},sv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Ay(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=My(av),[d,c]=Ht([]),[u,p]=Ht([]);return Wt(()=>{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===Ei.Dropdown){const e=as(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,...as(n,{})}})).map(e=>{if(i){const t="string"==typeof i?as(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Wt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Wt(()=>{if(t&&0===cd(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:Oi.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={...ys(av),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(as(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},lv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Fi.Column]:null,[Fi.FilePath]:null,[Fi.Function]:null,[Fi.LineNumber]:null,[Fi.Namespace]:null,[Fi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bi.Java]:null,[Bi.Golang]:null,[Bi.Php]:null},networkMetrics:null},dv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=My(lv);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={...ys(lv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),a&&(c.codeAttributes={[Fi.Column]:a[Fi.Column]||null,[Fi.FilePath]:a[Fi.FilePath]||null,[Fi.Function]:a[Fi.Function]||null,[Fi.LineNumber]:a[Fi.LineNumber]||null,[Fi.Namespace]:a[Fi.Namespace]||null,[Fi.StackTrace]:a[Fi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bi.Java]:l[Bi.Java]||null,[Bi.Golang]:l[Bi.Golang]||null,[Bi.Php]:l[Bi.Php]||null}),i(void 0,void 0,c)}}},cv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Wt(()=>{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),uv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Ht(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Kt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Wt(()=>{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},pv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Vt(null);return Wt(()=>{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},hv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Ht(e[0]||""),[r,o]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return Wt(()=>{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]),Wt(()=>{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 gv,mv;(e=>{e.Left="left",e.Right="right"})(gv||(gv={})),(e=>{e.Top="top",e.Bottom="bottom"})(mv||(mv={}));const fv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Xt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Ht({x:n||gv.Left,y:r||mv.Bottom}),g=Vt(null),m=Vt(!1);Wt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Wy(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]=Ht({}),y=Xt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===mv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===mv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===gv.Left?i.left:void 0,right:e===gv.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?gv.Right:gv.Left),y:r||(e.clientY>window.innerHeight/2?mv.Top:mv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Xt(e=>{e.stopPropagation()},[]);return Kt(()=>{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:$}},bv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?as(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),yv={otelServiceName:"",currentStreamName:""},vv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=My(yv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...ys(yv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const $v=new Jt(qt.locale),wv=[{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"}],Sv=(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 wv){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},xv=(e,t)=>Sv(6e4*Math.max(0,e),t),Cv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Ev=()=>{const[e,t]=Ht(0);return Wt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return $v.format(Cv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Cv(e);return Sv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Tv;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Tv||(Tv={}));const Ov=(e,t,i)=>{switch(t){case Tv.Purple:return e.v2.colors.purple[i?"300":"900"];case Tv.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Tv.Blue:return e.v2.colors.blue[i?"300":"1000"];case Tv.Pink:return e.v2.colors.red[i?"300":"1000"];case Tv.Green:return e.v2.colors.green[i?"300":"900"];case Tv.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Nv=n.div`
|
|
321
|
+
`,ov=Bt(({"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:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===nv.L?18:16),E=u===nv.L?ja.S:ja.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),k=!(!v&&!A),I=Wt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(rv,{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(tv,{text:a,withIcon:!s,children:A?t(Hl,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(Va,{size:E,weight:500,color:T,nowrap:!0,align:y,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]=Ht(!1),[r,o]=Ht(-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(ov,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:iv.Secondary,size:nv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},sv=e=>{const{addNotification:t}=Iy(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=zy(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?rd(i.name)?n.name=void 0:(r=!1,n.name=Za.ILLEGAL_K8S_LABEL):(r=!1,n.name=Za.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Oi.Warning,title:e.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...$s(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}=Iy(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=zy(lv),[d,c]=Ht([]),[u,p]=Ht([]);return Xt(()=>{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===Ei.Dropdown){const e=ls(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,...ls(n,{})}})).map(e=>{if(i){const t="string"==typeof i?ls(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Xt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Xt(()=>{if(t&&0===pd(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]=Za.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Oi.Warning,title:e.alertTitle,message:Za.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={...$s(lv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(ls(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:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Fi.Column]:null,[Fi.FilePath]:null,[Fi.Function]:null,[Fi.LineNumber]:null,[Fi.Namespace]:null,[Fi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bi.Java]:null,[Bi.Golang]:null,[Bi.Php]:null},networkMetrics:null},uv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zy(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={...$s(cv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),a&&(c.codeAttributes={[Fi.Column]:a[Fi.Column]||null,[Fi.FilePath]:a[Fi.FilePath]||null,[Fi.Function]:a[Fi.Function]||null,[Fi.LineNumber]:a[Fi.LineNumber]||null,[Fi.Namespace]:a[Fi.Namespace]||null,[Fi.StackTrace]:a[Fi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bi.Java]:l[Bi.Java]||null,[Bi.Golang]:l[Bi.Golang]||null,[Bi.Php]:l[Bi.Php]||null}),i(void 0,void 0,c)}}},pv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Xt(()=>{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]=Ht(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Kt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Xt(()=>{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=Vt(null);return Xt(()=>{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]=Ht(e[0]||""),[r,o]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),d=Wt((e,t)=>{a.current[e]=t},[]),c=Wt(e=>{o(e)},[]),u=Wt(e=>{l.current=!0,n(e)},[]);return Xt(()=>{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]),Xt(()=>{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,bv;(e=>{e.Left="left",e.Right="right"})(fv||(fv={})),(e=>{e.Top="top",e.Bottom="bottom"})(bv||(bv={}));const yv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Wt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Ht({x:n||fv.Left,y:r||bv.Bottom}),g=Vt(null),m=Vt(!1);Xt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Gy(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]=Ht({}),y=Wt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===bv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===bv.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=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?fv.Right:fv.Left),y:r||(e.clientY>window.innerHeight/2?bv.Top:bv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Wt(e=>{e.stopPropagation()},[]);return Kt(()=>{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:$}},vv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ls(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),$v={otelServiceName:"",currentStreamName:""},wv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zy($v);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...$s($v),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const Sv=new Jt(qt.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]=Ht(0);return Xt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Wt(e=>{try{return Sv.format(Tv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Wt((e,t)=>{try{const i=Tv(e);return Cv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Nv,Av;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Red="red",e.Green="green",e.Loader="loader"})(Nv||(Nv={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(Av||(Av={}));const kv=(e,t,i)=>{switch(t){case Nv.Purple:return e.v2.colors.purple[i?"300":"900"];case Nv.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Nv.Blue:return e.v2.colors.blue[i?"300":"1000"];case Nv.Pink:return e.v2.colors.pink[i?"500":"1000"];case Nv.Red:return e.v2.colors.red[i?"300":"900"];case Nv.Green:return e.v2.colors.green[i?"300":"900"];case Nv.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Iv=n.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: center;
|
|
325
|
-
gap:
|
|
326
|
-
padding: 4px 8px;
|
|
327
|
-
border-radius:
|
|
325
|
+
gap: ${({$size:e})=>e===Av.Small?2:e===Av.Medium?4:8}px;
|
|
326
|
+
padding: ${({$size:e})=>e===Av.Small?"2px 4px":e===Av.Medium?"4px 6px":"4px 8px"};
|
|
327
|
+
border-radius: ${({$size:e})=>e===Av.Small?4:6}px;
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
|
|
330
|
+
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
330
331
|
${({$flex:e})=>e?r`
|
|
331
332
|
flex: ${e};
|
|
332
333
|
`:r`
|
|
@@ -336,16 +337,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
336
337
|
${({$disabled:e,$variant:t,$withClick:i})=>e?r`
|
|
337
338
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
338
339
|
`:r`
|
|
339
|
-
background-color: ${({theme:e})=>
|
|
340
|
+
background-color: ${({theme:e})=>kv(e,t)};
|
|
340
341
|
${i&&r`
|
|
341
342
|
cursor: pointer;
|
|
342
343
|
&:hover,
|
|
343
344
|
&:active {
|
|
344
|
-
border: 1px solid ${({theme:e})=>
|
|
345
|
+
border: 1px solid ${({theme:e})=>kv(e,t,!0)};
|
|
345
346
|
}
|
|
346
347
|
`}
|
|
347
348
|
`}
|
|
348
|
-
`,
|
|
349
|
+
`,_v=({variant:i=Nv.Default,size:n=Av.Medium,label:r,leftIcon:a,rightIcon:s,onClick:l,disabled:d,flex:c,minWidth:u})=>{const p=o(),h=d?p.v2.colors.grey[400]:i===Nv.Default?p.v2.colors.white[500]:kv(p,i,!0),g=n===Av.Small?ja.XXXS:n===Av.Medium?ja.XXS:ja.S,m=n===Av.Small?10:n===Av.Medium?12:16,f=i===Nv.Loader;return e(Iv,{$variant:i,$size:n,$disabled:d,$withClick:!!l,onClick:()=>!d&&l?.(),$flex:c,$minWidth:u,children:[a&&t(a,{fill:h,size:m}),f?t(Hl,{withGradient:!0,title:r,titleSize:g}):t(Va,{color:h,size:g,nowrap:!0,children:r}),s&&t(s,{fill:h,size:m})]})},Dv=n.div`
|
|
349
350
|
display: flex;
|
|
350
351
|
align-items: center;
|
|
351
352
|
justify-content: center;
|
|
@@ -355,9 +356,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
355
356
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
356
357
|
border-radius: 100px;
|
|
357
358
|
background-color: ${({$backgroundColor:e})=>e};
|
|
358
|
-
`,
|
|
359
|
+
`,Rv=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Oi.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=Oi.Loading===s,y=s?[Oi.Disabled,Oi.Loading].includes(s)?ll(m,s,d?"400":"700"):[Oi.Unknown].includes(s)?ll(m,s,"600"):ll(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Oi.Unknown].includes(s)?y:[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[400]:[Oi.Error,Oi.Warning,Oi.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Oi.Unknown].includes(s)?[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(tv,{text:a,fullWidth:g,children:e(Dv,{$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(Hl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(Hl,{withGradient:!0,title:f,titleSize:c||ja.XXS}):t(Va,{color:v,size:c||ja.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Lv=n.div`
|
|
359
360
|
position: relative;
|
|
360
|
-
`,
|
|
361
|
+
`,Pv=n.div`
|
|
361
362
|
position: fixed;
|
|
362
363
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
363
364
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -375,7 +376,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
375
376
|
border-radius: 6px;
|
|
376
377
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
377
378
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
378
|
-
`,
|
|
379
|
+
`,Uv=({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}=yv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(Lv,{ref:h,onMouseDown:m,children:[t(ov,{label:"Open",variant:iv.Secondary,size:nv.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Zt(t(Pv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Mv={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"}},Fv={v2:Mv.v2,darkMode:!0,colors:{...Mv.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:Mv.font_family},zv={v2:Mv.v2,darkMode:!1,colors:{...Mv.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:Mv.font_family},Bv=e=>e?Fv:zv,jv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Mv,darkModeTheme:Fv,getTheme:Bv,lightModeTheme:zv},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 Hv=({children:e})=>t(s,{theme:Bv(!0),children:e}),Xv={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"},Wv=Object.freeze(Object.defineProperty({__proto__:null,hex:Xv},Symbol.toStringTag,{value:"Module"})),Gv={in:{left:a`
|
|
379
380
|
from { transform: translateX(-100%); }
|
|
380
381
|
to { transform: translateX(0); }
|
|
381
382
|
`,right:a`
|
|
@@ -405,7 +406,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
405
406
|
`,center:a`
|
|
406
407
|
from { transform: translate(-50%, -50%); }
|
|
407
408
|
to { transform: translate(-50%, 100%); }
|
|
408
|
-
`}},
|
|
409
|
+
`}},Vv={in:a`
|
|
409
410
|
from {
|
|
410
411
|
width: 0%;
|
|
411
412
|
}
|
|
@@ -419,7 +420,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
419
420
|
to {
|
|
420
421
|
width: 0%;
|
|
421
422
|
}
|
|
422
|
-
`},
|
|
423
|
+
`},Kv=a`
|
|
423
424
|
0% {
|
|
424
425
|
transform: scale(1);
|
|
425
426
|
opacity: 1;
|
|
@@ -428,14 +429,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
428
429
|
transform: scale(2);
|
|
429
430
|
opacity: 0;
|
|
430
431
|
}
|
|
431
|
-
`,
|
|
432
|
+
`,Yv=a`
|
|
432
433
|
0% {
|
|
433
434
|
background-position: -500px 0;
|
|
434
435
|
}
|
|
435
436
|
100% {
|
|
436
437
|
background-position: 500px 0;
|
|
437
438
|
}
|
|
438
|
-
`,
|
|
439
|
+
`,Jv={in:a`
|
|
439
440
|
from {
|
|
440
441
|
opacity: 0;
|
|
441
442
|
}
|
|
@@ -449,7 +450,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
449
450
|
to {
|
|
450
451
|
opacity: 0;
|
|
451
452
|
}
|
|
452
|
-
`},
|
|
453
|
+
`},qv=Object.freeze(Object.defineProperty({__proto__:null,fade:Jv,ping:Kv,progress:Vv,shimmer:Yv,slide:Gv},Symbol.toStringTag,{value:"Module"}));var Qv,Zv;(e=>{e.S="s",e.L="l"})(Qv||(Qv={})),(e=>{e.Filled="filled",e.Underline="underline"})(Zv||(Zv={}));const e$=n.div`
|
|
453
454
|
display: flex;
|
|
454
455
|
align-items: center;
|
|
455
456
|
gap: 2px;
|
|
@@ -457,19 +458,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
457
458
|
border-radius: 6px;
|
|
458
459
|
border: none;
|
|
459
460
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
460
|
-
`,
|
|
461
|
+
`,t$=n.button`
|
|
461
462
|
flex: 1;
|
|
462
463
|
display: flex;
|
|
463
464
|
align-items: center;
|
|
464
465
|
justify-content: center;
|
|
465
|
-
gap: ${({$size:e})=>e===
|
|
466
|
-
padding: ${({$size:e})=>e===
|
|
466
|
+
gap: ${({$size:e})=>e===Qv.S?"4px":"8px"};
|
|
467
|
+
padding: ${({$size:e})=>e===Qv.S?"4px 6px":"8px 12px"};
|
|
467
468
|
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
468
469
|
border: 1px solid transparent;
|
|
469
470
|
|
|
470
471
|
${({$disabled:e,$isSelected:t,$selectedBgColor:i,$selectedBorderColor:n,theme:o})=>e?r`
|
|
471
472
|
cursor: not-allowed;
|
|
472
|
-
background-color: ${t?(i||o.v2.colors.purple[900])+
|
|
473
|
+
background-color: ${t?(i||o.v2.colors.purple[900])+Xv["050"]:"transparent"};
|
|
473
474
|
`:t?r`
|
|
474
475
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
475
476
|
border: 1px solid ${n||o.v2.colors.purple[400]};
|
|
@@ -484,11 +485,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
484
485
|
background-color: ${o.v2.colors.silver[600]};
|
|
485
486
|
}
|
|
486
487
|
`}
|
|
487
|
-
`,
|
|
488
|
+
`,i$=n.div`
|
|
488
489
|
display: flex;
|
|
489
490
|
align-items: stretch;
|
|
490
491
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
491
|
-
`,
|
|
492
|
+
`,n$=n.button`
|
|
492
493
|
display: flex;
|
|
493
494
|
height: 34px;
|
|
494
495
|
padding: 8px 12px 8px 16px;
|
|
@@ -507,7 +508,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
507
508
|
&:hover {
|
|
508
509
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
509
510
|
}
|
|
510
|
-
`,
|
|
511
|
+
`,r$=({"data-id":n,size:r=Qv.S,variant:a=Zv.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===Zv.Underline,g=h?n$:t$;return t(h?i$:e$,{"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,C=v||c,E=C?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===Qv.S?ja.XXS:ja.XS,O=x?500:400,N=e(i,{children:[a&&t(a,{fill:E}),o&&t(Va,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(Rv,{...u})]});return t(g,{onClick:e=>{C||(e.preventDefault(),d(n))},$isFirstOption:w,$isLastOption:S,$isFirstAndLastOption:w&&S,disabled:C,$disabled:C,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(tv,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},o$=n.div`
|
|
511
512
|
box-sizing: border-box !important;
|
|
512
513
|
width: ${({$width:e})=>e??"fit-content"};
|
|
513
514
|
flex-shrink: ${({$width:e})=>e?0:1};
|
|
@@ -523,7 +524,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
523
524
|
border: none;
|
|
524
525
|
border-radius: 6px;
|
|
525
526
|
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
|
-
`,
|
|
527
|
+
`,a$=n.input`
|
|
527
528
|
min-width: 0;
|
|
528
529
|
flex: 1;
|
|
529
530
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -540,7 +541,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
540
541
|
overflow: hidden;
|
|
541
542
|
text-overflow: ellipsis;
|
|
542
543
|
white-space: nowrap;
|
|
543
|
-
`,
|
|
544
|
+
`,s$=({"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]=Ht(!1),[f,b]=Ht(!1),[y,v]=Ht(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Gt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Gt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(o$,{$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(a$,{"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(r$,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},l$=n.div`
|
|
544
545
|
display: flex;
|
|
545
546
|
align-items: center;
|
|
546
547
|
justify-content: center;
|
|
@@ -549,41 +550,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
549
550
|
padding: 8px;
|
|
550
551
|
border-radius: 100%;
|
|
551
552
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
552
|
-
`,
|
|
553
|
+
`,d$=({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(_l,{$gap:12,$alignItems:"center",children:[e(_l,{$gap:4,$alignItems:"center",children:[!n&&t(l$,{children:t(i,{size:24,fill:d})}),t(Va,{size:ja.XXS,color:Ha.Secondary,align:"center",children:r}),a&&t(Va,{size:ja.XXXS,color:Ha.Disable,align:"center",children:a})]}),s&&t(ov,{variant:iv.Secondary,...s}),l]})},c$=n.span`
|
|
553
554
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
554
555
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
555
556
|
font-weight: 400;
|
|
556
557
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
557
|
-
`,
|
|
558
|
+
`,u$=n.span`
|
|
558
559
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
559
560
|
font-size: 14px;
|
|
560
561
|
font-weight: 400;
|
|
561
562
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
562
|
-
`,
|
|
563
|
+
`,p$=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(Il,{$width:a,$justifyContent:"space-between",children:[i&&t(c$,{$smallAndDark:s,children:i}),e(Il,{$gap:4,children:[o&&t(Rv,{...o,textSize:ja.XXXS}),r&&t(u$,{children:"*"}),n&&t(tv,{text:n,withIcon:!0})]})]}):null,h$=({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(Il,{$alignItems:"center",children:[l&&t(_l,{children:l}),t(Va,{size:ja.XXXS,weight:400,color:s,children:i||n||r})]}):null};var g$;(e=>{e.S="small",e.L="large"})(g$||(g$={}));const m$=n.div`
|
|
563
564
|
width: fit-content;
|
|
564
565
|
display: flex;
|
|
565
566
|
align-items: center;
|
|
566
567
|
gap: 8px;
|
|
567
568
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
568
|
-
`,
|
|
569
|
-
width: ${({$size:e})=>e===
|
|
570
|
-
height: ${({$size:e})=>e===
|
|
569
|
+
`,f$=n.div`
|
|
570
|
+
width: ${({$size:e})=>e===g$.S?"16px":"20px"};
|
|
571
|
+
height: ${({$size:e})=>e===g$.S?"16px":"20px"};
|
|
571
572
|
display: flex;
|
|
572
573
|
align-items: center;
|
|
573
574
|
justify-content: center;
|
|
574
575
|
border-radius: 4px;
|
|
575
576
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
576
577
|
background-color: ${({$backgroundColor:e})=>e};
|
|
577
|
-
`,
|
|
578
|
+
`,b$=({name:i,label:n,tooltip:r,badge:a,size:s=g$.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=Ht(!1),y=d||c,v=s===g$.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(_l,{$gap:4,children:[e(Il,{$justifyContent:"space-between",children:[e(m$,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(f$,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(xt,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(Va,{size:s===g$.S?ja.XXS:ja.XS,nowrap:!0,children:n})]}),t(p$,{tooltip:r,badge:a})]}),t(h$,{errorMessage:p,warnMessage:h,helpMessage:g})]})},y$=n.div`
|
|
578
579
|
display: flex;
|
|
579
580
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
580
581
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
581
|
-
`,
|
|
582
|
+
`,v$=({direction:i=mi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===g$.S?ja.XXS:ja.XS,u=Gt(()=>s.every(e=>l[e.id]),[s,l]),p=Gt(()=>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(y$,{$direction:i,children:[n&&a?t(b$,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Va,{size:c,children:n}):null,s.map(e=>t(b$,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},$$=n.div`
|
|
582
583
|
position: relative;
|
|
583
584
|
display: flex;
|
|
584
585
|
flex-direction: column;
|
|
585
586
|
gap: 4px;
|
|
586
|
-
`,
|
|
587
|
+
`,w$=n.div`
|
|
587
588
|
position: fixed;
|
|
588
589
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
589
590
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -601,7 +602,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
601
602
|
border-radius: 6px;
|
|
602
603
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
603
604
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
604
|
-
`,
|
|
605
|
+
`,S$=n.div`
|
|
605
606
|
display: flex;
|
|
606
607
|
flex-direction: column;
|
|
607
608
|
gap: 0;
|
|
@@ -609,7 +610,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
609
610
|
width: 100%;
|
|
610
611
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
611
612
|
overflow-y: auto;
|
|
612
|
-
|
|
613
|
+
`,x$=n.div`
|
|
613
614
|
display: flex;
|
|
614
615
|
align-items: center;
|
|
615
616
|
gap: 8px;
|
|
@@ -625,19 +626,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
625
626
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
626
627
|
}
|
|
627
628
|
`}
|
|
628
|
-
`,
|
|
629
|
+
`,C$=n.div`
|
|
629
630
|
display: flex;
|
|
630
631
|
align-items: center;
|
|
631
632
|
gap: 8px;
|
|
632
633
|
flex: 1;
|
|
633
634
|
min-width: 0;
|
|
634
|
-
`,
|
|
635
|
+
`,E$=n.div`
|
|
635
636
|
flex: 0 1 auto;
|
|
636
637
|
min-width: 0;
|
|
637
638
|
overflow: hidden;
|
|
638
639
|
text-overflow: ellipsis;
|
|
639
640
|
white-space: nowrap;
|
|
640
|
-
`,
|
|
641
|
+
`,T$=n.span`
|
|
641
642
|
flex-shrink: 0;
|
|
642
643
|
width: 88px;
|
|
643
644
|
display: inline-flex;
|
|
@@ -646,26 +647,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
646
647
|
border-radius: 4px;
|
|
647
648
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
648
649
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
649
|
-
`,
|
|
650
|
+
`,O$=n.div`
|
|
650
651
|
flex-shrink: 0;
|
|
651
652
|
display: inline-flex;
|
|
652
653
|
align-items: center;
|
|
653
654
|
gap: 4px;
|
|
654
|
-
`,
|
|
655
|
+
`,N$=({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:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=yv({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&&C(!1)},[k,I]=Ht(""),_=Gt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:D,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e($$,{ref:T,onMouseDown:N,children:[u&&t(p$,{label:u}),f&&t(ov,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(ov,{variant:iv.Text,size:nv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Et,handleClick:O}):$,x&&Zt(e(w$,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(s$,{value:k,onChange:I,width:"100%"}),y?t(Hl,{withSpinner:!0,title:"Loading...",titleSize:ja.XS}):_.length?t(S$,{$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(x$,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(b$,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(T$,{children:t(Va,{size:ja.XXS,nowrap:!0,color:Ha.Secondary,children:s})}),e(C$,{children:[t(E$,{children:t(Va,{size:ja.XS,nowrap:!0,color:i.color||Ha.Primary,children:r})}),l&&e(O$,{children:[t(je,{size:12,fill:w.v2.colors.silver[200]}),t(Va,{size:ja.XS,nowrap:!0,color:Ha.Secondary,children:l})]})]})]},n)})}):t(kl,{$padding:"6px 0",children:t(d$,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!_.length&&t(ov,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var A$;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(A$||(A$={}));const k$=({onAnyClick:e,actions:i})=>t(Il,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case A$.Button:return t(ov,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case A$.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(N$,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case A$.PopupButton:return t(Uv,{buttonProps:{label:"Open",variant:iv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),I$=n(Il)`
|
|
655
656
|
min-width: 0;
|
|
656
|
-
`,
|
|
657
|
+
`,_$=n.div`
|
|
657
658
|
display: flex;
|
|
658
659
|
flex-shrink: 0;
|
|
659
660
|
align-items: center;
|
|
660
661
|
justify-content: center;
|
|
661
662
|
padding: 8px;
|
|
662
663
|
border-radius: 8px;
|
|
663
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
664
|
-
`,
|
|
664
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+Xv["004"]};
|
|
665
|
+
`,D$=n(_l)`
|
|
665
666
|
flex: 1;
|
|
666
667
|
min-width: 0;
|
|
667
668
|
overflow: hidden;
|
|
668
|
-
`,
|
|
669
|
+
`,R$=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=ja.S,titleColor:a=Ha.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=ja.XXS,subTitleColor:u=Ha.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=av();return e(I$,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(_$,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(D$,{$gap:b,children:[r||m?e(Il,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Va,{size:o,color:a,nowrap:!s,children:r}),l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:l}),g&&r&&t($,{value:r}),h&&t(tv,{text:h,withIcon:!0}),m&&t(Rv,{...m})]}):null,d&&t(Va,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(Il,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},L$=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Vt(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(Va,{ref:o,...r,children:e})})},P$=n.section`
|
|
669
670
|
display: flex;
|
|
670
671
|
flex-direction: column;
|
|
671
672
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -693,38 +694,38 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
693
694
|
${({$overflow:e})=>e&&r`
|
|
694
695
|
overflow: ${e};
|
|
695
696
|
`}
|
|
696
|
-
`,
|
|
697
|
+
`,U$=n(Il)`
|
|
697
698
|
width: 100%;
|
|
698
699
|
min-width: 0;
|
|
699
700
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
700
701
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
701
|
-
`,
|
|
702
|
+
`,M$=n(Il)`
|
|
702
703
|
flex-shrink: 0;
|
|
703
|
-
`,
|
|
704
|
+
`,F$=n.div`
|
|
704
705
|
display: flex;
|
|
705
706
|
align-items: flex-start;
|
|
706
707
|
flex-wrap: wrap;
|
|
707
708
|
width: 100%;
|
|
708
|
-
`,
|
|
709
|
+
`,z$=n.div`
|
|
709
710
|
${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
|
|
710
711
|
margin: 8px;
|
|
711
712
|
display: flex;
|
|
712
713
|
flex-direction: column;
|
|
713
714
|
gap: 4px;
|
|
714
715
|
min-width: 0;
|
|
715
|
-
`,
|
|
716
|
+
`,B$=({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(z$,{$cellsPerRow:n,children:[!!a&&t(tv,{text:s,children:t(L$,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:a})}),e(Il,{$gap:4,children:[u&&t(Rv,{...u}),p&&t(_v,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(tv,{text:d,children:t(L$,{size:ja.XS,nowrap:!0,children:l})})]})]})},j$=({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,$]=Ht(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(P$,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(U$,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:()=>{l&&w()},children:[s?t(R$,{...s}):t("div",{}),e(M$,{$gap:12,onClick:e=>{e.stopPropagation()},children:[h,x&&S&&t(k$,{actions:u}),E&&t(Il,{$gap:8,children:c.map((e,t)=>Yt(Rv,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(Il,{$gap:2,children:[C&&t(N$,{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:w})]})]})]}),S&&m?t(F$,{children:m.map(e=>t(B$,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var H$;(e=>{e.S="small",e.M="medium"})(H$||(H$={}));const X$=n(Il)`
|
|
716
717
|
flex: 1;
|
|
717
718
|
min-width: 0;
|
|
718
719
|
align-items: center;
|
|
719
|
-
`,
|
|
720
|
+
`,W$=n.div`
|
|
720
721
|
flex-shrink: 1;
|
|
721
722
|
min-width: 0;
|
|
722
723
|
overflow: hidden;
|
|
723
|
-
`,
|
|
724
|
+
`,G$=n.div`
|
|
724
725
|
display: flex;
|
|
725
726
|
flex-direction: column;
|
|
726
727
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
727
|
-
`,
|
|
728
|
+
`,V$=n.div`
|
|
728
729
|
display: flex;
|
|
729
730
|
flex-direction: column;
|
|
730
731
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -735,7 +736,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
735
736
|
border-radius: 16px;
|
|
736
737
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
|
|
737
738
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
738
|
-
`,
|
|
739
|
+
`,K$=Bt(({id:i,size:n=H$.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===H$.S?4:16,b="number"==typeof h?h:n===H$.S?12:16,y=a??(o?t(R$,{...o}):null),v=l??(s?t(s$,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(V$,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(Il,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(X$,{$gap:f,children:[y?t(W$,{children:y}):null,v,d]}):null,w&&t(k$,{actions:c??[]})]}):null,t(G$,{$fullHeight:r,children:u})]})});K$.displayName="SectionCard";const Y$=n.div`
|
|
739
740
|
flex: 1;
|
|
740
741
|
align-self: stretch;
|
|
741
742
|
display: flex;
|
|
@@ -743,8 +744,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
743
744
|
gap: 8px;
|
|
744
745
|
padding: 16px;
|
|
745
746
|
border-radius: 12px;
|
|
746
|
-
background-color: ${({theme:e,$status:t})=>
|
|
747
|
-
`,
|
|
747
|
+
background-color: ${({theme:e,$status:t})=>ll(e,t,t===Oi.Unknown?"750":"500")};
|
|
748
|
+
`,J$=n.div`
|
|
748
749
|
display: flex;
|
|
749
750
|
align-items: center;
|
|
750
751
|
justify-content: center;
|
|
@@ -752,8 +753,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
752
753
|
height: fit-content;
|
|
753
754
|
padding: 8px;
|
|
754
755
|
border-radius: 12px;
|
|
755
|
-
background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?
|
|
756
|
-
`,
|
|
756
|
+
background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?ll(e,t,"800"):ll(e,t,"900")+Xv["015"]};
|
|
757
|
+
`,q$=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Xl(i,s),d=[Oi.Default,Oi.Info,Oi.Disabled,Oi.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Y$,{$status:i,children:[t(J$,{$status:i,children:t(l,{size:32,fill:d})}),e(_l,{$gap:2,$justifyContent:"center",children:[t(Va,{size:ja.M,weight:500,color:d,nowrap:!0,children:r}),t(Va,{size:ja.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},Q$=n.div`
|
|
757
758
|
flex: 0.5;
|
|
758
759
|
display: flex;
|
|
759
760
|
flex-direction: column;
|
|
@@ -761,7 +762,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
761
762
|
padding: 12px;
|
|
762
763
|
border-radius: 12px;
|
|
763
764
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
764
|
-
`,
|
|
765
|
+
`,Z$=["-","N/A","undefined","null","undefined/undefined","null/null"],ew=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(Q$,{$bgTint:a,children:[t(tv,{text:n,children:t(Va,{nowrap:!0,size:ja.XXS,color:s.v2.colors.grey[150],children:i})}),t(Il,{$gap:32,children:r.map((n,r)=>e(_l,{$gap:2,children:[!n.isLoading||n.value&&!Z$.includes(n.value)?t(Va,{nowrap:!0,size:n.label?ja.M:ja.L,children:n.value}):t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Va,{nowrap:!0,size:ja.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},tw=n.div`
|
|
765
766
|
padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
|
|
766
767
|
|
|
767
768
|
display: flex;
|
|
@@ -792,25 +793,25 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
792
793
|
outline-offset: 1px;
|
|
793
794
|
}
|
|
794
795
|
`}
|
|
795
|
-
`,
|
|
796
|
+
`,iw=n.div`
|
|
796
797
|
flex: 1;
|
|
797
798
|
min-width: 0;
|
|
798
799
|
display: flex;
|
|
799
800
|
align-items: center;
|
|
800
801
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
801
|
-
`,
|
|
802
|
+
`,nw=n.span`
|
|
802
803
|
flex-shrink: 0;
|
|
803
804
|
width: 1px;
|
|
804
805
|
align-self: stretch;
|
|
805
806
|
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
|
-
`,
|
|
807
|
+
`,rw=n.span`
|
|
807
808
|
flex-shrink: 0;
|
|
808
809
|
display: flex;
|
|
809
810
|
align-items: center;
|
|
810
811
|
justify-content: flex-start;
|
|
811
812
|
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
812
813
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
813
|
-
`,
|
|
814
|
+
`,ow=n.input`
|
|
814
815
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
815
816
|
width: ${({$width:e})=>e||"unset"};
|
|
816
817
|
|
|
@@ -848,12 +849,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
848
849
|
pointer-events: none;
|
|
849
850
|
user-select: none;
|
|
850
851
|
}
|
|
851
|
-
`,
|
|
852
|
+
`,aw=n.div`
|
|
852
853
|
display: flex;
|
|
853
854
|
align-items: center;
|
|
854
855
|
justify-content: center;
|
|
855
856
|
cursor: pointer;
|
|
856
|
-
`,
|
|
857
|
+
`,sw=({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=Ti.Text,name:b,value:y,onChange:v,disabled:$,maxWidth:w,width:S,small:x=!1,onClick:C,...E})=>{const T=o(),O=f===Ti.Password,N=f===Ti.Number||f===Ti.Decimal,[A,k]=Ht(!1),[I,_]=Ht(null),D=e=>{e.stopPropagation();const t=e.target.value;if(f===Ti.Number||f===Ti.Decimal){const i=f===Ti.Number?md(t):gd(t),n=null!=E.min?Number(E.min):void 0,r=null!=E.max?Number(E.max):void 0,o=f===Ti.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)},R=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=Vt(null),F=hv(M,{deps:[y]}),z=E.readOnly&&F&&null!=y&&""!==y?String(y):"",B=!!c&&!O;return e(_l,{$width:S,$gap:6,children:[t(p$,{label:n,tooltip:a,required:r,badge:s}),t(tw,{$small:x,$disabled:$,$readOnly:!!E.readOnly,$error:L,$clickable:!!C&&!$,$hasSuffix:B,$hideFocusOutline:p,onClick:$||!C&&!B?void 0:e=>{$||(B&&!E.readOnly&&M.current?.focus(),C?.(e))},children:B?e(i,{children:[t(iw,{$small:x,children:t(tv,{text:z,fullWidth:!0,keepAlive:!0,children:t(ow,{"data-id":b,type:N?Ti.Text:f,name:b,value:y,onChange:D,onKeyDown:R,disabled:$,$maxWidth:w,$width:"100%",$small:x,$tabular:N,...E,ref:M})})}),t(nw,{$disabled:$,$error:L}),t(rw,{$small:x,"aria-hidden":"true",children:t(Va,{size:ja.XXXS,color:$?Ha.Disable:Ha.Secondary,nowrap:!0,children:c})})]}):e(tv,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(ow,{"data-id":b,type:A||N?Ti.Text:f,name:b,value:y,onChange:D,onKeyDown:R,disabled:$,$maxWidth:w,$width:S,$small:x,$tabular:N,...E,ref:M}),O?t(aw,{onClick:()=>k(e=>!e),children:t(A?Ot:Nt,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(h$,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},lw=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Ht(""),[c,u]=Ht(!1),p=Gt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Gt(()=>{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=Gt(()=>{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(N$,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:bv.Bottom,children:t(sw,{name:i,leftIcon:St,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},dw=n.button`
|
|
857
858
|
width: 100%;
|
|
858
859
|
padding: 0;
|
|
859
860
|
padding-right: 12px;
|
|
@@ -874,7 +875,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
874
875
|
cursor: not-allowed;
|
|
875
876
|
opacity: 0.5;
|
|
876
877
|
}
|
|
877
|
-
`,
|
|
878
|
+
`,cw=n.div`
|
|
878
879
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
879
880
|
height: 56px;
|
|
880
881
|
display: flex;
|
|
@@ -885,28 +886,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
885
886
|
`:r`
|
|
886
887
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
887
888
|
`}
|
|
888
|
-
`,
|
|
889
|
+
`,uw=n.div`
|
|
889
890
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
890
891
|
display: flex;
|
|
891
892
|
justify-content: space-between;
|
|
892
893
|
align-items: center;
|
|
893
894
|
gap: 8px;
|
|
894
|
-
`,
|
|
895
|
+
`,pw=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(dw,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(cw,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(uw,{$hasIcon:!!n,children:[r?t(Hl,{withGradient:!0,titleSize:ja.S}):t(Va,{variant:Ba.Span,align:"center",children:i}),t(At,{rotate:90,size:24})]})]})},hw=({buttons:e})=>t(_l,{$gap:12,children:e.map((e,i)=>t(pw,{...e},`${e.label}-${i}`))}),gw=[1,.75,.5,.25,0],mw=n.div`
|
|
895
896
|
display: flex;
|
|
896
897
|
flex-direction: column;
|
|
897
898
|
gap: 32px;
|
|
898
899
|
width: 100%;
|
|
899
900
|
min-width: 0;
|
|
900
|
-
`,
|
|
901
|
+
`,fw=n(Il)`
|
|
901
902
|
align-items: center;
|
|
902
903
|
gap: 4px;
|
|
903
|
-
`,
|
|
904
|
+
`,bw=n.div`
|
|
904
905
|
display: flex;
|
|
905
906
|
align-items: flex-start;
|
|
906
907
|
gap: 4px;
|
|
907
908
|
width: 100%;
|
|
908
909
|
min-width: 0;
|
|
909
|
-
`,
|
|
910
|
+
`,yw=n.div`
|
|
910
911
|
display: flex;
|
|
911
912
|
flex-direction: column;
|
|
912
913
|
justify-content: space-between;
|
|
@@ -914,19 +915,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
914
915
|
flex-shrink: 0;
|
|
915
916
|
height: ${({$plotHeight:e})=>e}px;
|
|
916
917
|
padding-bottom: 0;
|
|
917
|
-
`,
|
|
918
|
+
`,vw=n.div`
|
|
918
919
|
display: flex;
|
|
919
920
|
flex-direction: column;
|
|
920
921
|
flex: 1;
|
|
921
922
|
min-width: 0;
|
|
922
|
-
|
|
923
|
+
`,$w=n.div`
|
|
923
924
|
position: relative;
|
|
924
925
|
display: flex;
|
|
925
926
|
align-items: flex-end;
|
|
926
927
|
width: 100%;
|
|
927
928
|
height: ${({$height:e})=>e}px;
|
|
928
929
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
929
|
-
`,
|
|
930
|
+
`,ww=n.div`
|
|
930
931
|
position: absolute;
|
|
931
932
|
inset: 0;
|
|
932
933
|
display: flex;
|
|
@@ -934,11 +935,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
934
935
|
justify-content: space-between;
|
|
935
936
|
pointer-events: none;
|
|
936
937
|
z-index: 0;
|
|
937
|
-
`,
|
|
938
|
+
`,Sw=n.div`
|
|
938
939
|
width: 100%;
|
|
939
940
|
height: 0;
|
|
940
941
|
border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
941
|
-
|
|
942
|
+
`,xw=n.div`
|
|
942
943
|
position: relative;
|
|
943
944
|
z-index: 1;
|
|
944
945
|
display: flex;
|
|
@@ -946,7 +947,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
946
947
|
width: 100%;
|
|
947
948
|
height: 100%;
|
|
948
949
|
padding: 0 8px;
|
|
949
|
-
`,
|
|
950
|
+
`,Cw=n.div`
|
|
950
951
|
display: flex;
|
|
951
952
|
flex: 1;
|
|
952
953
|
align-items: flex-end;
|
|
@@ -963,63 +964,63 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
963
964
|
height: 100%;
|
|
964
965
|
max-width: 124px;
|
|
965
966
|
}
|
|
966
|
-
`,
|
|
967
|
+
`,Ew=n.div`
|
|
967
968
|
width: 100%;
|
|
968
969
|
height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
|
|
969
970
|
border-radius: 6px 6px 0 0;
|
|
970
971
|
background-color: ${({$color:e})=>e};
|
|
971
972
|
min-height: ${({$pct:e})=>e>0?"2px":"0"};
|
|
972
|
-
`,
|
|
973
|
+
`,Tw=n.div`
|
|
973
974
|
display: flex;
|
|
974
975
|
flex-direction: column;
|
|
975
976
|
gap: 4px;
|
|
976
977
|
width: 100%;
|
|
977
978
|
height: ${29}px;
|
|
978
979
|
padding: 0 8px;
|
|
979
|
-
`,
|
|
980
|
+
`,Ow=n.div`
|
|
980
981
|
display: flex;
|
|
981
982
|
height: 8px;
|
|
982
983
|
width: 100%;
|
|
983
|
-
`,
|
|
984
|
+
`,Nw=n.div`
|
|
984
985
|
display: flex;
|
|
985
986
|
flex: 1;
|
|
986
987
|
align-items: center;
|
|
987
988
|
justify-content: center;
|
|
988
989
|
min-width: 0;
|
|
989
|
-
`,
|
|
990
|
+
`,Aw=n.div`
|
|
990
991
|
width: 0;
|
|
991
992
|
height: 100%;
|
|
992
993
|
border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
993
|
-
`,
|
|
994
|
+
`,kw=n.div`
|
|
994
995
|
display: flex;
|
|
995
996
|
width: 100%;
|
|
996
997
|
height: 17px;
|
|
997
|
-
`,
|
|
998
|
+
`,Iw=n.div`
|
|
998
999
|
display: flex;
|
|
999
1000
|
flex: 1;
|
|
1000
1001
|
align-items: center;
|
|
1001
1002
|
justify-content: center;
|
|
1002
1003
|
min-width: 0;
|
|
1003
1004
|
overflow: hidden;
|
|
1004
|
-
`,
|
|
1005
|
+
`,_w=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Gt(()=>[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=Gt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Gt(()=>gw.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(mw,{children:[!!i&&e(fw,{children:[t(Va,{size:ja.S,weight:500,children:i}),!!n&&t(tv,{text:n,withIcon:!0})]}),e(bw,{children:[t(yw,{$plotHeight:a,children:c.map((e,i)=>t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e},gw[i]))}),e(vw,{children:[e($w,{$height:a,children:[t(ww,{children:gw.map(e=>t(Sw,{},e))}),t(xw,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(Cw,{children:t(tv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(Ew,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(Tw,{children:[t(Ow,{children:r.map((e,i)=>t(Nw,{children:t(Aw,{})},`tick-${e.label}-${i}`))}),t(kw,{children:r.map((e,i)=>t(Iw,{children:t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var Dw;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Dw||(Dw={}));const Rw=n.div`
|
|
1005
1006
|
display: flex;
|
|
1006
1007
|
align-items: flex-end;
|
|
1007
1008
|
justify-content: space-between;
|
|
1008
1009
|
gap: 24px;
|
|
1009
1010
|
width: fit-content;
|
|
1010
|
-
`,
|
|
1011
|
+
`,Lw=n.div`
|
|
1011
1012
|
position: relative;
|
|
1012
1013
|
display: flex;
|
|
1013
1014
|
flex-direction: column;
|
|
1014
1015
|
align-items: center;
|
|
1015
1016
|
width: ${({$width:e})=>e??150}px;
|
|
1016
1017
|
flex-shrink: 0;
|
|
1017
|
-
`,
|
|
1018
|
+
`,Pw=n.svg`
|
|
1018
1019
|
display: block;
|
|
1019
1020
|
width: 100%;
|
|
1020
1021
|
height: auto;
|
|
1021
1022
|
overflow: visible;
|
|
1022
|
-
`,
|
|
1023
|
+
`,Uw=n(_l)`
|
|
1023
1024
|
position: absolute;
|
|
1024
1025
|
left: 0;
|
|
1025
1026
|
right: 0;
|
|
@@ -1027,14 +1028,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1027
1028
|
align-items: center;
|
|
1028
1029
|
gap: 2px;
|
|
1029
1030
|
pointer-events: none;
|
|
1030
|
-
`,
|
|
1031
|
+
`,Mw=n.span`
|
|
1031
1032
|
display: inline-block;
|
|
1032
1033
|
flex-shrink: 0;
|
|
1033
1034
|
width: 9px;
|
|
1034
1035
|
height: 9px;
|
|
1035
1036
|
border-radius: 50%;
|
|
1036
1037
|
background-color: ${({$color:e})=>e};
|
|
1037
|
-
`,
|
|
1038
|
+
`,Fw=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:""}},zw=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},Bw=(e,t,i,n,r)=>{const o=zw(e,t,i,n),a=zw(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}`},jw=({variant:i=Dw.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Fw(a),{number:g}=Fw(s),{number:m,prefix:f,suffix:b}=Fw(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?Bw(60,60,55,180,$):null,S=v<1?Bw(60,60,55,$,0):null,x=zw(60,60,55,180),C=zw(60,60,55,0),E=c??(i===Dw.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===Dw.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,k=i===Dw.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",_="primary"===O?A(m):"secondary"===O?A(k):"",D=()=>N("primary"),R=()=>N("secondary"),L=()=>N(null);var P;return e(Rw,{children:[e(Lw,{$width:n,children:[t(tv,{keepAlive:!0,fullWidth:!0,title:I,text:_,children:e(Pw,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[w&&t("path",{d:w,fill:"none",stroke:E,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,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:D,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:L})]})}),r&&e(Uw,{children:[t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),t(Va,{size:ja.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(_l,{$gap:7,children:[e(Il,{$gap:8,$alignItems:"center",children:[t(Mw,{$color:E}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(Il,{$gap:8,$alignItems:"center",children:[t(Mw,{$color:T}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Hw=n(Il)`
|
|
1038
1039
|
width: 100%;
|
|
1039
1040
|
padding: 8px 12px;
|
|
1040
1041
|
border-radius: 6px;
|
|
@@ -1043,26 +1044,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1043
1044
|
align-items: center;
|
|
1044
1045
|
justify-content: space-between;
|
|
1045
1046
|
gap: 12px;
|
|
1046
|
-
`,
|
|
1047
|
+
`,Xw=n.div`
|
|
1047
1048
|
position: relative;
|
|
1048
1049
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1049
1050
|
display: flex;
|
|
1050
1051
|
align-items: center;
|
|
1051
1052
|
gap: 4px;
|
|
1052
|
-
`,
|
|
1053
|
+
`,Ww=n.pre`
|
|
1053
1054
|
flex: 1;
|
|
1054
1055
|
margin: 0;
|
|
1055
1056
|
padding: 0;
|
|
1056
1057
|
font-size: 12px;
|
|
1057
1058
|
color: #5ffb98; // TODO: add to theme
|
|
1058
1059
|
overflow-x: auto;
|
|
1059
|
-
`,
|
|
1060
|
+
`,Gw=n.span`
|
|
1060
1061
|
flex-shrink: 0;
|
|
1061
1062
|
font-size: 14px;
|
|
1062
1063
|
color: #5ffb98; // TODO: add to theme
|
|
1063
|
-
`,
|
|
1064
|
+
`,Vw=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=av({onDone:a}),l=Vt(null),[d,c]=Ht(!1);return Xt(()=>{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(_l,{$gap:4,children:[n&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:n}),e(Hw,{$bgTint:i,children:[e(Xw,{$hideCopy:o,children:[t(Ww,{ref:l,children:r}),d&&t(Gw,{children:"..."})]}),!o&&t(s,{value:r})]})]})},Kw=n(Il)`
|
|
1064
1065
|
gap: 0;
|
|
1065
|
-
`,
|
|
1066
|
+
`,Yw=n.button`
|
|
1066
1067
|
padding: 4px 8px;
|
|
1067
1068
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
1068
1069
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -1074,20 +1075,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1074
1075
|
&:hover {
|
|
1075
1076
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1076
1077
|
}
|
|
1077
|
-
`,
|
|
1078
|
+
`,Jw=({isPrettyMode:i,setIsPrettyMode:n})=>e(Kw,{children:[t(Yw,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(Yw,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),qw=n.table`
|
|
1078
1079
|
border-collapse: collapse;
|
|
1079
1080
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1080
|
-
`,
|
|
1081
|
+
`,Qw=n.tbody``,Zw=n.tr`
|
|
1081
1082
|
td:first-child {
|
|
1082
1083
|
padding-left: 0 !important;
|
|
1083
1084
|
}
|
|
1084
1085
|
td:last-child {
|
|
1085
1086
|
padding-right: 0 !important;
|
|
1086
1087
|
}
|
|
1087
|
-
`,
|
|
1088
|
+
`,eS=n.td`
|
|
1088
1089
|
vertical-align: top;
|
|
1089
1090
|
padding: 4px 6px;
|
|
1090
|
-
`,
|
|
1091
|
+
`,tS=n.span`
|
|
1091
1092
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
1092
1093
|
overflow-wrap: break-word;
|
|
1093
1094
|
word-break: break-word;
|
|
@@ -1095,7 +1096,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1095
1096
|
/* Fallback for older browsers */
|
|
1096
1097
|
-ms-word-break: break-all;
|
|
1097
1098
|
font-size: 12px;
|
|
1098
|
-
`,
|
|
1099
|
+
`,iS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ti[n]:s?ti.palenight:ti.vsLight;let d="";if("json"===e){const e=ls(i,{}),t=Pd(e);d=Ud(r?Ns(t):t)}else d=i;return a&&"json"===e?t(nS,{darkMode:s,str:d}):t(ei,{theme:l||(s?ti.palenight:ti.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(tS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},nS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(Zw,{...i,children:[t(eS,{}),t(eS,{})]}));return t(jt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(ei,{theme:i?ti.palenight:ti.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(qw,{children:t(Qw,{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(jt,{children:[a(2,s),e(Zw,{...d,children:[t(eS,{children:t(Va,{nowrap:!0,children:l[0].content})}),t(eS,{})]})]},`line-${s}`):2===l.length?t(Zw,{...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=Xl(o,i);return e||(e=Xl(Oi.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(eS,{children:e(Il,{children:[t(Il,{children:l}),t(tS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},rS=n.div`
|
|
1099
1100
|
display: flex;
|
|
1100
1101
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1101
1102
|
gap: 8px;
|
|
@@ -1111,7 +1112,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1111
1112
|
background-color: ${t?"transparent":i};
|
|
1112
1113
|
}
|
|
1113
1114
|
`}
|
|
1114
|
-
`,
|
|
1115
|
+
`,oS=n.div`
|
|
1115
1116
|
display: flex;
|
|
1116
1117
|
align-items: center;
|
|
1117
1118
|
justify-content: center;
|
|
@@ -1130,54 +1131,54 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1130
1131
|
transform: scale(1.2);
|
|
1131
1132
|
}
|
|
1132
1133
|
`}
|
|
1133
|
-
`,
|
|
1134
|
+
`,aS=n(_l)`
|
|
1134
1135
|
flex: 1;
|
|
1135
1136
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1136
1137
|
min-width: 0;
|
|
1137
|
-
`,
|
|
1138
|
+
`,sS=n(_l)`
|
|
1138
1139
|
align-self: stretch;
|
|
1139
1140
|
flex-shrink: 0;
|
|
1140
|
-
`,
|
|
1141
|
+
`,lS=n.div`
|
|
1141
1142
|
display: flex;
|
|
1142
1143
|
align-items: center;
|
|
1143
1144
|
justify-content: center;
|
|
1144
1145
|
flex-shrink: 0;
|
|
1145
1146
|
width: 24px;
|
|
1146
1147
|
height: 24px;
|
|
1147
|
-
`,
|
|
1148
|
+
`,dS=({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=Xl(i,y),$=p?u?Ct:Et:void 0,w=i===Oi.Unknown,S=i===Oi.Disabled,x=i===Oi.Loading||d,C=[Oi.Error,Oi.Warning,Oi.Success].includes(i),E=ll(y,i,S?h?"400":"700":w?"600":h?"300":"500"),T=S?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:C?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!w?E:T,N=!h||w||S?"rgba(0, 0, 0, 0.13)":ll(y,i,"800"),A=S?y.v2.colors.grey[900]:h||w?y.v2.colors.silver[800]:E,k=S?y.v2.colors.grey[800]:h||w?y.v2.colors.silver[700]:ll(y,i,"600");return e(rS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(oS,{$backgroundColor:N,$slim:b,children:x?t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(aS,{$gap:4,$justifyContent:"center",$slim:b,children:[e(Il,{$gap:10,$alignItems:"center",children:[t(Va,{size:b?ja.XS:ja.S,weight:500,color:O,children:n}),l&&t(Rv,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:ja.XXXS})]}),r&&t(Va,{size:ja.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(sS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(Il,{$gap:8,children:c.map(e=>t(ov,{...e,variant:iv.Secondary,size:nv.S},e["data-id"]??e.label))}),s]}),$&&t(lS,{children:t($,{size:24,fill:T})})]})},cS=n.div`
|
|
1148
1149
|
display: flex;
|
|
1149
1150
|
flex-direction: column;
|
|
1150
1151
|
width: 100%;
|
|
1151
1152
|
border-radius: 12px;
|
|
1152
1153
|
overflow: hidden;
|
|
1153
|
-
`,
|
|
1154
|
+
`,uS=n.div`
|
|
1154
1155
|
display: flex;
|
|
1155
1156
|
flex-direction: column;
|
|
1156
1157
|
gap: 8px;
|
|
1157
1158
|
padding: 8px 12px 16px 12px;
|
|
1158
1159
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1159
|
-
`,
|
|
1160
|
+
`,pS=n.div`
|
|
1160
1161
|
display: flex;
|
|
1161
1162
|
align-items: center;
|
|
1162
1163
|
gap: 8px;
|
|
1163
|
-
`,
|
|
1164
|
+
`,hS=n.div`
|
|
1164
1165
|
display: flex;
|
|
1165
1166
|
align-items: center;
|
|
1166
1167
|
justify-content: center;
|
|
1167
1168
|
flex-shrink: 0;
|
|
1168
1169
|
width: 18px;
|
|
1169
1170
|
height: 18px;
|
|
1170
|
-
`,
|
|
1171
|
+
`,gS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=Ht(!1),d=Wt(()=>l(e=>!e),[]),c=Gt(()=>cd(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Gt(()=>Rs(c),[c]);Xt(()=>{l(p||g||m)},[p,g,m]);const b=Gt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Gt(()=>p?Oi.Error:g?Oi.Warning:m?Oi.Info:Oi.Success,[p,g,m]),v=Gt(()=>n||(1===c.length?za(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]),$=Gt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),w=Gt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(cS,{children:[t(dS,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(uS,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Oi.Loading,d=i===Oi.Disabled?Oi.Info:i,c=l?null:Xl(d,a),u=i===Oi.Error?ll(a,Oi.Error,"500"):i===Oi.Warning?ll(a,Oi.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(pS,{children:[t(hS,{children:l||!c?t(Hl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Va,{size:ja.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},mS=n.div`
|
|
1171
1172
|
width: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Vertical?`${t}px`:i||"100%"};
|
|
1172
1173
|
height: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Horizontal?`${t}px`:i||"100%"};
|
|
1173
1174
|
margin: ${({$orientation:e,$margin:t})=>t||(e===mi.Horizontal?"8px 0":"0 8px")};
|
|
1174
|
-
background-color: ${({$type:e,theme:t})=>e?
|
|
1175
|
+
background-color: ${({$type:e,theme:t})=>e?ll(t,e):t.v2.colors.silver[500]};
|
|
1175
1176
|
opacity: ${({$opacity:e})=>e||1};
|
|
1176
|
-
`,
|
|
1177
|
+
`,fS=({orientation:e=mi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(mS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var bS,yS,vS;(e=>{e.Default="default",e.SuccessError="successError"})(bS||(bS={})),(e=>{e.S="small",e.L="large"})(yS||(yS={})),(e=>{e.Left="left",e.Right="right"})(vS||(vS={}));const $S=n.div`
|
|
1177
1178
|
display: flex;
|
|
1178
1179
|
align-items: center;
|
|
1179
1180
|
gap: ${({$gap:e})=>e}px;
|
|
1180
|
-
`,
|
|
1181
|
+
`,wS=n.div`
|
|
1181
1182
|
position: relative;
|
|
1182
1183
|
display: flex;
|
|
1183
1184
|
align-items: center;
|
|
@@ -1188,11 +1189,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1188
1189
|
height: ${({$size:e})=>e}px;
|
|
1189
1190
|
padding: ${4}px;
|
|
1190
1191
|
border-radius: ${({$size:e})=>2*e}px;
|
|
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
|
|
1192
|
+
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 bS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case bS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
|
|
1192
1193
|
|
|
1193
1194
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1194
1195
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1195
|
-
`,
|
|
1196
|
+
`,SS=n.div`
|
|
1196
1197
|
position: absolute;
|
|
1197
1198
|
top: 50%;
|
|
1198
1199
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -1202,11 +1203,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1202
1203
|
border-radius: 100%;
|
|
1203
1204
|
background-color: ${({$color:e})=>e};
|
|
1204
1205
|
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)"};
|
|
1205
|
-
|
|
1206
|
+
`,xS=({variant:n=bS.Default,size:r=yS.L,name:a,label:s,labelAlign:l=vS.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=It,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:w,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?ja.XXXS:ja.XS,N=r===yS.S?8:12;return e(_l,{$gap:4,children:[e(Il,{$justifyContent:"space-between",children:[e($S,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===vS.Left&&t(Va,{color:T,size:O,nowrap:!0,children:s}),e(wS,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(SS,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:E,fill:C}),t(b,{size:E,fill:C})]})]}),s&&l===vS.Right&&t(Va,{color:T,size:O,nowrap:!0,children:s})]}),t(p$,{tooltip:c,badge:u})]}),t(h$,{errorMessage:$,warnMessage:w,helpMessage:S})]})},CS=n.div`
|
|
1206
1207
|
display: flex;
|
|
1207
1208
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
1208
1209
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
1209
|
-
`,
|
|
1210
|
+
`,ES=({direction:i=mi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===yS.S?ja.XS:ja.S;return e(CS,{$direction:i,children:[n&&t(Va,{size:d,children:n}),a.map(e=>t(xS,{...e,labelAlign:vS.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 TS;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(TS||(TS={}));const OS=n.div`
|
|
1210
1211
|
width: ${({$size:e})=>1.5*e}px;
|
|
1211
1212
|
height: ${({$size:e})=>1.5*e}px;
|
|
1212
1213
|
display: flex;
|
|
@@ -1217,13 +1218,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1217
1218
|
&:hover {
|
|
1218
1219
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1219
1220
|
}
|
|
1220
|
-
`,
|
|
1221
|
+
`,NS=({"data-id":e,icon:i,size:n=TS.S,onClick:r,disabled:o})=>t(OS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),AS=n.div`
|
|
1221
1222
|
display: flex;
|
|
1222
1223
|
align-items: center;
|
|
1223
1224
|
justify-content: space-between;
|
|
1224
1225
|
width: 100%;
|
|
1225
1226
|
overflow: hidden;
|
|
1226
|
-
`,
|
|
1227
|
+
`,kS=n.div`
|
|
1227
1228
|
display: flex;
|
|
1228
1229
|
align-items: center;
|
|
1229
1230
|
gap: 16px;
|
|
@@ -1231,7 +1232,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1231
1232
|
min-width: 0;
|
|
1232
1233
|
flex: 1;
|
|
1233
1234
|
overflow: hidden;
|
|
1234
|
-
`,
|
|
1235
|
+
`,IS=n.div`
|
|
1235
1236
|
display: flex;
|
|
1236
1237
|
align-items: center;
|
|
1237
1238
|
justify-content: center;
|
|
@@ -1240,23 +1241,23 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1240
1241
|
height: 36px;
|
|
1241
1242
|
border-radius: 8px;
|
|
1242
1243
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1243
|
-
`,
|
|
1244
|
+
`,_S=n.img`
|
|
1244
1245
|
width: 24px;
|
|
1245
1246
|
height: 24px;
|
|
1246
|
-
`,
|
|
1247
|
+
`,DS=n.div`
|
|
1247
1248
|
display: flex;
|
|
1248
1249
|
align-items: center;
|
|
1249
1250
|
gap: 16px;
|
|
1250
1251
|
flex-shrink: 0;
|
|
1251
|
-
`,
|
|
1252
|
+
`,RS=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(AS,{children:[e(kS,{children:[i?t(IS,{children:t(i,{size:24})}):n?t(IS,{children:t(_S,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(_l,{$gap:6,children:[(r||o?.length)&&e(Il,{$gap:16,children:[r&&t(Va,{size:ja.S,weight:500,children:r}),o?.length&&t(Il,{$gap:4,children:o?.map((e,i)=>t(Rv,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(Il,{$gap:16,children:[a&&t(Va,{color:Ha.Secondary,size:ja.XXS,children:a}),s?.length&&t(Il,{$gap:4,children:s?.map((e,i)=>t(_v,{...e},`${e.label}-${i}`))})]})]})]}),e(DS,{children:[l&&t(xS,{...l}),d?.length?t(N$,{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(NS,{"data-id":"drawer-close",icon:It,size:TS.M,onClick:c,disabled:u})]})]}),LS=n.div`
|
|
1252
1253
|
position: relative;
|
|
1253
1254
|
&.animated {
|
|
1254
1255
|
overflow: hidden;
|
|
1255
1256
|
padding-bottom: 1px;
|
|
1256
1257
|
border-radius: 8px;
|
|
1257
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1258
|
+
animation: ${({$isLeaving:e})=>e?Gv.out.bottom:Gv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1258
1259
|
}
|
|
1259
|
-
`,
|
|
1260
|
+
`,PS=n.div`
|
|
1260
1261
|
position: absolute;
|
|
1261
1262
|
bottom: -1px;
|
|
1262
1263
|
left: 0;
|
|
@@ -1264,9 +1265,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1264
1265
|
width: 100%;
|
|
1265
1266
|
height: 100%;
|
|
1266
1267
|
border-radius: 8px;
|
|
1267
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1268
|
-
animation: ${
|
|
1269
|
-
`,
|
|
1268
|
+
background-color: ${({theme:e,$status:t})=>ll(e,t,t===Oi.Default?"300":t===Oi.Info?"400":"500")};
|
|
1269
|
+
animation: ${Vv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1270
|
+
`,US=n.div`
|
|
1270
1271
|
display: flex;
|
|
1271
1272
|
align-items: center;
|
|
1272
1273
|
gap: 10px;
|
|
@@ -1275,37 +1276,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1275
1276
|
`}
|
|
1276
1277
|
padding: 8px 12px 8px 8px;
|
|
1277
1278
|
border-radius: 8px;
|
|
1278
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1279
|
-
`,
|
|
1279
|
+
background-color: ${({theme:e,$status:t})=>ll(e,t,[Oi.Info,Oi.Warning].includes(t)?"1000":"900")};
|
|
1280
|
+
`,MS=n.div`
|
|
1280
1281
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1281
1282
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1282
1283
|
display: flex;
|
|
1283
1284
|
align-items: center;
|
|
1284
1285
|
justify-content: center;
|
|
1285
1286
|
border-radius: 6px;
|
|
1286
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1287
|
-
`,
|
|
1287
|
+
background-color: ${({theme:e,$status:t})=>ll(e,t,[Oi.Info].includes(t)?"900":"800")};
|
|
1288
|
+
`,FS=n.div`
|
|
1288
1289
|
margin-left: auto;
|
|
1289
1290
|
display: flex;
|
|
1290
1291
|
align-items: center;
|
|
1291
1292
|
gap: 4px;
|
|
1292
|
-
`,
|
|
1293
|
+
`,zS=n.div`
|
|
1293
1294
|
margin-right: 8px;
|
|
1294
1295
|
cursor: pointer;
|
|
1295
1296
|
&:hover {
|
|
1296
1297
|
transform: scale(1.2);
|
|
1297
1298
|
}
|
|
1298
|
-
`,
|
|
1299
|
+
`,BS=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Xl(i,p),g=ll(p,i,i===Oi.Default?"300":i===Oi.Info?"400":"500"),[m,f]=Ht(!1),b=Vt(null),y=Vt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Xt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(LS,{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(US,{$status:i,$fullWidth:a,children:[t("div",{children:t(MS,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Va,{color:g,size:ja.XXXS,weight:400,children:n}),(r||d)&&e(FS,{children:[r&&t(zS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Va,{color:g,size:ja.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(NS,{"data-id":"note-close",icon:It,size:TS.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(PS,{ref:y,$status:i,$duration:c})]})},jS=n.div`
|
|
1299
1300
|
display: flex;
|
|
1300
1301
|
align-items: center;
|
|
1301
1302
|
gap: 8px;
|
|
1302
1303
|
padding: 4px 12px;
|
|
1303
|
-
`,
|
|
1304
|
+
`,HS=n.div`
|
|
1304
1305
|
flex: 1;
|
|
1305
|
-
`,
|
|
1306
|
+
`,XS=n.div`
|
|
1306
1307
|
min-width: 150px;
|
|
1307
1308
|
width: fit-content;
|
|
1308
|
-
`,
|
|
1309
|
+
`,WS=({note:i,actions:n,children:r})=>r?t(jS,{children:r}):e(jS,{children:[i&&t(BS,{...i}),t(HS,{}),n?.map((e,i)=>t(XS,{children:t(ov,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),GS=n.div`
|
|
1309
1310
|
position: fixed;
|
|
1310
1311
|
top: 0;
|
|
1311
1312
|
bottom: 0;
|
|
@@ -1325,16 +1326,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1325
1326
|
overflow: hidden;
|
|
1326
1327
|
|
|
1327
1328
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1328
|
-
animation-name: ${
|
|
1329
|
+
animation-name: ${Gv.in[t]};
|
|
1329
1330
|
`}
|
|
1330
|
-
`,
|
|
1331
|
+
`,VS=n.div`
|
|
1331
1332
|
display: flex;
|
|
1332
1333
|
flex-direction: column;
|
|
1333
1334
|
gap: 12px;
|
|
1334
1335
|
|
|
1335
1336
|
height: calc(100% - ${56}px);
|
|
1336
1337
|
overflow-y: auto;
|
|
1337
|
-
`,
|
|
1338
|
+
`,KS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Hy(n),n?Zt(e(i,{children:[!r&&t(Ll,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(GS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(RS,{...d}),t(VS,{children:u}),c&&t(WS,{...c})]})]}),document.body):null),YS=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Gt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Gt(()=>s.map(e=>e.label).join(", "),[s]);return t(N$,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:fv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(sw,{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})})},JS=({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"})]})},qS=({children:e})=>t(ii,{FallbackComponent:({error:e,...i})=>t(Hv,{children:t(JS,{...i,error:e})}),children:e}),QS=n.header`
|
|
1338
1339
|
position: relative;
|
|
1339
1340
|
width: 100%;
|
|
1340
1341
|
padding: 12px 18px;
|
|
@@ -1342,12 +1343,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1342
1343
|
display: flex;
|
|
1343
1344
|
align-items: center;
|
|
1344
1345
|
justify-content: space-between;
|
|
1345
|
-
`,
|
|
1346
|
+
`,ZS=n(Il)`
|
|
1346
1347
|
position: absolute;
|
|
1347
1348
|
left: 50%;
|
|
1348
1349
|
transform: translateX(-50%);
|
|
1349
1350
|
gap: 16px;
|
|
1350
|
-
`,
|
|
1351
|
+
`,ex=({left:i=[],center:n=[],right:r=[]})=>e(QS,{children:[t(Il,{$gap:16,children:i}),t(ZS,{children:n}),t(Il,{$gap:16,children:r})]}),tx=n.div`
|
|
1351
1352
|
display: flex;
|
|
1352
1353
|
align-items: center;
|
|
1353
1354
|
gap: 4px;
|
|
@@ -1358,11 +1359,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1358
1359
|
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1359
1360
|
|
|
1360
1361
|
position: absolute;
|
|
1362
|
+
z-index: 1;
|
|
1361
1363
|
right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
|
|
1362
1364
|
left: ${({$left:e})=>e||"unset"};
|
|
1363
1365
|
top: 50%;
|
|
1364
1366
|
transform: translateY(-50%);
|
|
1365
|
-
`,
|
|
1367
|
+
`,ix=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(tx,{$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,nx=n.div`
|
|
1366
1368
|
display: flex;
|
|
1367
1369
|
align-items: center;
|
|
1368
1370
|
justify-content: center;
|
|
@@ -1370,8 +1372,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1370
1372
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1371
1373
|
aspect-ratio: 1 / 1;
|
|
1372
1374
|
border-radius: 8px;
|
|
1373
|
-
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?
|
|
1374
|
-
`,
|
|
1375
|
+
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?ll(e,i,i===Oi.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1376
|
+
`,rx=({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=tl(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(nx,{$size:s,$padding:l,$status:a,children:e(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Il,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(Il,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Va,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(nx,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},ox=30,ax=n.div`
|
|
1375
1377
|
display: flex;
|
|
1376
1378
|
align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
|
|
1377
1379
|
gap: 8px;
|
|
@@ -1382,40 +1384,40 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1382
1384
|
&:hover {
|
|
1383
1385
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1384
1386
|
}
|
|
1385
|
-
`,
|
|
1387
|
+
`,sx=n(Va)`
|
|
1386
1388
|
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1387
|
-
`,
|
|
1389
|
+
`,lx=n(Va)`
|
|
1388
1390
|
flex: 1 1 auto;
|
|
1389
1391
|
min-width: 0;
|
|
1390
|
-
`,
|
|
1392
|
+
`,dx=n(Il)`
|
|
1391
1393
|
flex: 1 1 auto;
|
|
1392
1394
|
justify-content: flex-end;
|
|
1393
1395
|
min-width: 0;
|
|
1394
|
-
`,
|
|
1396
|
+
`,cx=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(ax,{$withHealthBadge:s,children:[t(sx,{size:ja.XXS,color:Ha.Secondary,$withHealthBadge:s,children:i}),n?t(lx,{size:ja.XXS,color:Ha.Primary,align:"right",children:n}):null,(r||s)&&e(dx,{children:[r?t(Rv,{status:Oi.Info,label:es.STANDARD,textSize:ja.XXXS,invertColors:!0}):null,s?e(Il,{$gap:4,children:[a?t(lx,{size:ja.XXXS,color:Ha.Error,align:"right",children:a}):null,t(Rv,{status:o?Oi.Success:Oi.Error,label:o?es.HEALTHY:es.NOT_HEALTHY,leftIcon:ee,textSize:ja.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},ux=n.div`
|
|
1395
1397
|
width: 100%;
|
|
1396
1398
|
border-radius: 8px;
|
|
1397
1399
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1398
1400
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1399
|
-
`,
|
|
1401
|
+
`,px=({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(ux,{$plain:f,children:e(_l,{"data-id":r,$gap:6,children:[t(p$,{label:a,tooltip:s,required:d,badge:l}),t(_l,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(Il,{$gap:8,$alignItems:"center",children:[t(sw,{width:"100%",autoFocus:m&&nd(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(ov,{leftIcon:_t,variant:iv.Secondary,size:nv.S,disabled:v,onClick:()=>(()=>{const e=i.length?$s(i):[$s("")];e.push(""),n(e)})()}),t(ov,{leftIcon:$?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(h$,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var hx;(e=>{e.S="small",e.L="large"})(hx||(hx={}));const gx=n.div`
|
|
1400
1402
|
width: fit-content;
|
|
1401
1403
|
display: flex;
|
|
1402
1404
|
align-items: center;
|
|
1403
1405
|
gap: 8px;
|
|
1404
1406
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1405
|
-
`,
|
|
1406
|
-
width: ${({$size:e})=>e===
|
|
1407
|
-
height: ${({$size:e})=>e===
|
|
1407
|
+
`,mx=n.div`
|
|
1408
|
+
width: ${({$size:e})=>e===hx.S?"16px":"20px"};
|
|
1409
|
+
height: ${({$size:e})=>e===hx.S?"16px":"20px"};
|
|
1408
1410
|
display: flex;
|
|
1409
1411
|
align-items: center;
|
|
1410
1412
|
justify-content: center;
|
|
1411
1413
|
border-radius: 100%;
|
|
1412
1414
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1413
1415
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1414
|
-
`,
|
|
1416
|
+
`,fx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=hx.L})=>{const d=o(),[c,u]=Ht(!1),p=r,h=l===hx.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(gx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(mx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Va,{size:l===hx.S?ja.XXS:ja.XS,children:n})]})},bx=n.div`
|
|
1415
1417
|
display: flex;
|
|
1416
1418
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1417
1419
|
gap: ${({$gap:e})=>e}px;
|
|
1418
|
-
`,
|
|
1420
|
+
`,yx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(bx,{$flexDirection:n===mi.Horizontal?"row":"column",$gap:n===mi.Horizontal?16:8,children:[i&&t(Va,{children:i}),a.map(e=>t(fx,{...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}`))]}),vx=({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,C=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",i=Object.fromEntries((b||[]).map(t=>[t.id,t.id===e]));return t(yx,{direction:mi.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 Ei.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(YS,{name:p,label:x,placeholder:C,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&&nd(S),c=t(sw,{name:p,label:x,placeholder:C,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(Il,{$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}},$x=n.div`
|
|
1419
1421
|
width: 100%;
|
|
1420
1422
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1421
1423
|
border-radius: 8px;
|
|
@@ -1423,28 +1425,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1423
1425
|
display: flex;
|
|
1424
1426
|
flex-direction: column;
|
|
1425
1427
|
gap: 8px;
|
|
1426
|
-
`,
|
|
1428
|
+
`,wx=n.div`
|
|
1427
1429
|
flex: 1;
|
|
1428
1430
|
min-width: 0;
|
|
1429
|
-
`,
|
|
1431
|
+
`,Sx=n.div`
|
|
1430
1432
|
padding-top: 24px;
|
|
1431
|
-
|
|
1433
|
+
`,xx=({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)]),C=b.find(e=>e.id===w);return e(_l,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(p$,{label:s,tooltip:l,required:d}),m&&t(r$,{"data-id":`${a}-mode`,size:Qv.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(_l,{$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),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})(b,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e($x,{"data-id":`${a}-card-${o}`,children:[e(Il,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(_l,{$gap:10,children:[T&&t(p$,{label:T}),m.map(e=>t(Il,{$gap:24,children:(e.options??[]).map(i=>t(fx,{size:hx.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(Il,{$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?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(ov,{"data-id":`${a}-card-${o}-add`,leftIcon:_t,variant:iv.Secondary,size:nv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(Il,{$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(jt,{children:["arrow"===i.separator&&r>0&&t(Sx,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(wx,{children:t(sw,{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(h$,{errorMessage:u})]})]})},Cx=n.div`
|
|
1432
1434
|
width: 100%;
|
|
1433
1435
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1434
1436
|
border-radius: 8px;
|
|
1435
1437
|
padding: 4px 8px;
|
|
1436
|
-
`,
|
|
1438
|
+
`,Ex=n.table`
|
|
1437
1439
|
width: 100%;
|
|
1438
1440
|
border-collapse: separate;
|
|
1439
1441
|
border-spacing: 0 8px;
|
|
1440
|
-
`,
|
|
1442
|
+
`,Tx=n.td`
|
|
1441
1443
|
padding: 0 8px 0 0;
|
|
1442
1444
|
vertical-align: top;
|
|
1443
|
-
`,
|
|
1445
|
+
`,Ox=n.td`
|
|
1444
1446
|
width: 72px;
|
|
1445
1447
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1446
1448
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1447
|
-
`,
|
|
1449
|
+
`,Nx=({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=Gt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?$s(n):[$s(y)];o[i][e]=t,r(o)},$=n.length?n:[y];return t(Cx,{children:e(_l,{"data-id":a,$gap:0,children:[t(p$,{label:s,tooltip:l,required:c,badge:d}),t(Ex,{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(jt,{children:[l.length>1&&a>0?t("tr",{children:t(Tx,{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(Tx,{colSpan:s>1?s:void 0,children:e(_l,{$gap:6,children:[m&&(i.label?t(p$,{label:i.label,tooltip:i.tooltip}):t(p$,{label:"\\u00A0"})),t(vx,{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(Ox,{$topOffset:w,$center:h,children:e(Il,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(ov,{leftIcon:_t,variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(()=>{const e=n.length?$s(n):[$s(y)],t=$s(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]=$s(o[e.keyName]))}),e.push(t),r(e)})()}),t(ov,{leftIcon:u?Dt:()=>t(Dt,{fill:b.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($s(y)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(h$,{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 kx=n.div`
|
|
1448
1450
|
display: flex;
|
|
1449
1451
|
align-items: center;
|
|
1450
1452
|
justify-content: space-between;
|
|
@@ -1452,38 +1454,38 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1452
1454
|
|
|
1453
1455
|
padding: 18px 16px;
|
|
1454
1456
|
border-radius: 18px;
|
|
1455
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1457
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+Xv["095"]};
|
|
1456
1458
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1457
1459
|
|
|
1458
1460
|
position: fixed;
|
|
1459
1461
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1460
1462
|
|
|
1461
|
-
${({$position:e})=>{switch(e){case
|
|
1463
|
+
${({$position:e})=>{switch(e){case Ax.BottomCenter:return r`
|
|
1462
1464
|
bottom: 0;
|
|
1463
1465
|
left: 50%;
|
|
1464
|
-
animation-name: ${
|
|
1465
|
-
`;case
|
|
1466
|
+
animation-name: ${Gv.in.center};
|
|
1467
|
+
`;case Ax.BottomRight:return r`
|
|
1466
1468
|
bottom: 0;
|
|
1467
1469
|
right: 0;
|
|
1468
|
-
animation-name: ${
|
|
1469
|
-
`;case
|
|
1470
|
+
animation-name: ${Gv.in.right};
|
|
1471
|
+
`;case Ax.BottomLeft:return r`
|
|
1470
1472
|
bottom: 0;
|
|
1471
1473
|
left: 0;
|
|
1472
|
-
animation-name: ${
|
|
1473
|
-
`;case
|
|
1474
|
+
animation-name: ${Gv.in.left};
|
|
1475
|
+
`;case Ax.TopCenter:return r`
|
|
1474
1476
|
top: 0;
|
|
1475
1477
|
left: 50%;
|
|
1476
|
-
animation-name: ${
|
|
1477
|
-
`;case
|
|
1478
|
+
animation-name: ${Gv.in.center};
|
|
1479
|
+
`;case Ax.TopRight:return r`
|
|
1478
1480
|
top: 0;
|
|
1479
1481
|
right: 0;
|
|
1480
|
-
animation-name: ${
|
|
1481
|
-
`;case
|
|
1482
|
+
animation-name: ${Gv.in.right};
|
|
1483
|
+
`;case Ax.TopLeft:return r`
|
|
1482
1484
|
top: 0;
|
|
1483
1485
|
left: 0;
|
|
1484
|
-
animation-name: ${
|
|
1486
|
+
animation-name: ${Gv.in.left};
|
|
1485
1487
|
`;default:return null}}}
|
|
1486
|
-
`,
|
|
1488
|
+
`,Ix=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=Ax.BottomCenter})=>i?e(kx,{$position:a,children:[r&&t(R$,{...r}),t(k$,{onAnyClick:n,actions:o})]}):null,_x=n.div`
|
|
1487
1489
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1488
1490
|
top: 50%;
|
|
1489
1491
|
left: 50%;
|
|
@@ -1504,7 +1506,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1504
1506
|
will-change: transform;
|
|
1505
1507
|
contain: layout paint;
|
|
1506
1508
|
|
|
1507
|
-
animation-name: ${({$closing:e})=>e?
|
|
1509
|
+
animation-name: ${({$closing:e})=>e?Gv.out.center:Gv.in.center};
|
|
1508
1510
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1509
1511
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1510
1512
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1513,9 +1515,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1513
1515
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1514
1516
|
don't compete with the slide-out. */
|
|
1515
1517
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1516
|
-
`,
|
|
1518
|
+
`,Dx=n(Ll)`
|
|
1517
1519
|
will-change: opacity;
|
|
1518
|
-
animation-name: ${({$closing:e})=>e?
|
|
1520
|
+
animation-name: ${({$closing:e})=>e?Jv.out:Jv.in};
|
|
1519
1521
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1520
1522
|
|
|
1521
1523
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1523,18 +1525,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1523
1525
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1524
1526
|
because the overlay is fading to 0. */
|
|
1525
1527
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1526
|
-
`,
|
|
1528
|
+
`,Rx=n.div`
|
|
1527
1529
|
position: relative;
|
|
1528
|
-
`,
|
|
1530
|
+
`,Lx=n.div`
|
|
1529
1531
|
position: absolute;
|
|
1530
1532
|
top: 16px;
|
|
1531
1533
|
left: 16px;
|
|
1532
|
-
`,
|
|
1534
|
+
`,Px=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(Xt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Hy(c),!c)return null;const g=e(i,{children:[!r&&t(Dx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(_x,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Rx,{children:[a&&t(Lx,{children:t(NS,{icon:e=>t(At,{rotate:-90,...e}),size:TS.L,onClick:a})}),d]})})]});return o?g:Zt(g,document.body)},Ux=n.div`
|
|
1533
1535
|
position: relative;
|
|
1534
1536
|
width: ${64}px;
|
|
1535
1537
|
height: ${({$height:e})=>e};
|
|
1536
1538
|
flex-shrink: 0;
|
|
1537
|
-
`,
|
|
1539
|
+
`,Mx=n.aside`
|
|
1538
1540
|
position: absolute;
|
|
1539
1541
|
top: 0;
|
|
1540
1542
|
left: 0;
|
|
@@ -1554,7 +1556,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1554
1556
|
transition:
|
|
1555
1557
|
width 200ms ease,
|
|
1556
1558
|
padding 200ms ease;
|
|
1557
|
-
`,
|
|
1559
|
+
`,Fx=n.button`
|
|
1558
1560
|
display: flex;
|
|
1559
1561
|
align-items: center;
|
|
1560
1562
|
width: 100%;
|
|
@@ -1574,27 +1576,27 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1574
1576
|
&:active {
|
|
1575
1577
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1576
1578
|
}
|
|
1577
|
-
`,
|
|
1579
|
+
`,zx=n.div`
|
|
1578
1580
|
width: ${40}px;
|
|
1579
1581
|
height: ${40}px;
|
|
1580
1582
|
display: flex;
|
|
1581
1583
|
align-items: center;
|
|
1582
1584
|
justify-content: center;
|
|
1583
1585
|
flex-shrink: 0;
|
|
1584
|
-
`,
|
|
1586
|
+
`,Bx=n.div`
|
|
1585
1587
|
flex: 1 1 0;
|
|
1586
1588
|
min-width: 0;
|
|
1587
1589
|
overflow: hidden;
|
|
1588
1590
|
padding-right: 12px;
|
|
1589
1591
|
pointer-events: none;
|
|
1590
|
-
`,
|
|
1592
|
+
`,jx=({height:i,icons:n})=>{const r=o(),[a,s]=Ht(!1);return t(Ux,{$height:i,children:t(Mx,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(Fx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(zx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(Bx,{children:t(Va,{size:ja.S,weight:500,color:Ha.Primary,nowrap:!0,children:n})})]},i))})})},Hx=n.div`
|
|
1591
1593
|
position: relative;
|
|
1592
1594
|
display: flex;
|
|
1593
1595
|
align-items: center;
|
|
1594
1596
|
justify-content: center;
|
|
1595
1597
|
width: 12px;
|
|
1596
1598
|
height: 12px;
|
|
1597
|
-
`,
|
|
1599
|
+
`,Xx=n.div`
|
|
1598
1600
|
position: absolute;
|
|
1599
1601
|
width: 6px;
|
|
1600
1602
|
height: 6px;
|
|
@@ -1607,9 +1609,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1607
1609
|
inset: 0;
|
|
1608
1610
|
border-radius: 100%;
|
|
1609
1611
|
background-color: ${({theme:e,$color:t=e.v2.colors.purple[500]})=>t};
|
|
1610
|
-
animation: ${
|
|
1612
|
+
animation: ${Kv} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
1611
1613
|
}
|
|
1612
|
-
`,
|
|
1614
|
+
`,Wx=({color:e})=>{const i=o(),n=e||i.v2.colors.purple[500];return t(Hx,{children:t(Xx,{$color:n})})},Gx=n.div`
|
|
1613
1615
|
display: flex;
|
|
1614
1616
|
flex-direction: column;
|
|
1615
1617
|
gap: 16px;
|
|
@@ -1633,26 +1635,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1633
1635
|
}
|
|
1634
1636
|
`}
|
|
1635
1637
|
`}
|
|
1636
|
-
`,
|
|
1638
|
+
`,Vx=n.div`
|
|
1637
1639
|
display: flex;
|
|
1638
1640
|
align-items: center;
|
|
1639
1641
|
gap: 16px;
|
|
1640
1642
|
width: 100%;
|
|
1641
|
-
`,
|
|
1643
|
+
`,Kx=n.div`
|
|
1642
1644
|
display: flex;
|
|
1643
1645
|
flex-direction: column;
|
|
1644
1646
|
gap: 4px;
|
|
1645
1647
|
flex: 1;
|
|
1646
1648
|
min-width: 0;
|
|
1647
|
-
`,
|
|
1649
|
+
`,Yx=n.div`
|
|
1648
1650
|
display: flex;
|
|
1649
1651
|
align-items: center;
|
|
1650
1652
|
gap: 8px;
|
|
1651
1653
|
flex-wrap: wrap;
|
|
1652
1654
|
min-width: 0;
|
|
1653
|
-
`,
|
|
1655
|
+
`,Jx=n.div`
|
|
1654
1656
|
width: 100%;
|
|
1655
|
-
`,
|
|
1657
|
+
`,qx=({"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(Gx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Vx,{children:[t(fx,{"data-id":`${g}-radio`,value:c,onChange:m,size:hx.L,disabled:p}),e(Kx,{children:[e(Yx,{children:[t(Va,{size:ja.S,weight:500,lineHeight:"24px",color:Ha.Primary,children:n}),r]}),a&&("string"==typeof a?t(Va,{size:ja.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:Ha.Secondary,children:a}):a)]}),s]}),l&&t(Jx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(Jx,{onClick:e=>e.stopPropagation(),children:d})]})},Qx=n.div`
|
|
1656
1658
|
width: 100%;
|
|
1657
1659
|
height: 100%;
|
|
1658
1660
|
|
|
@@ -1660,7 +1662,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1660
1662
|
animation: none !important;
|
|
1661
1663
|
transition: none !important;
|
|
1662
1664
|
}
|
|
1663
|
-
`,
|
|
1665
|
+
`,Zx=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Vt(null),c=Gt(()=>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]);Xt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ni,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(Qx,{children:p}):p},eC=[{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}],tC=eC[1].value,iC=eC[eC.length-1].value,nC=e=>({label:e?eC.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:iv.Secondary,size:nv.S}),rC=n.input`
|
|
1664
1666
|
width: 100px;
|
|
1665
1667
|
padding: 2px 12px;
|
|
1666
1668
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
@@ -1690,7 +1692,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1690
1692
|
opacity: 0.4;
|
|
1691
1693
|
}
|
|
1692
1694
|
`}
|
|
1693
|
-
`,
|
|
1695
|
+
`,oC=()=>(new Date).toISOString().split("T")[0],aC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},sC=({options:i=eC,maxAllowedValue:n=iC,defaultValue:r=tC,onApply:o,onClose:a})=>{const[s]=Ht(oC),[l,d]=Ht(r),[c,u]=Ht(()=>aC(s,r)),[p,h]=Ht(void 0),g=Gt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Gt(()=>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(aC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(_l,{$gap:24,children:[e(_l,{children:[m,t(fS,{}),e(_l,{$gap:12,$padding:"0 12px",children:[t(Va,{size:ja.XXS,color:Ha.Secondary,nowrap:!0,children:"Custom range"}),e(Il,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"From"}),t(rC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(Il,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"To"}),t(rC,{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(h$,{errorMessage:p}),e(Va,{size:ja.XXXS,color:Ha.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?.())}})]})},lC=n.div`
|
|
1694
1696
|
display: flex;
|
|
1695
1697
|
flex-direction: column;
|
|
1696
1698
|
gap: 16px;
|
|
@@ -1699,75 +1701,70 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1699
1701
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1700
1702
|
width: 100%;
|
|
1701
1703
|
height: 100%;
|
|
1702
|
-
`,
|
|
1704
|
+
`,dC=n.div`
|
|
1703
1705
|
display: flex;
|
|
1704
1706
|
align-items: center;
|
|
1705
1707
|
gap: 16px;
|
|
1706
|
-
`,
|
|
1708
|
+
`,cC=n.div`
|
|
1707
1709
|
width: 50px;
|
|
1708
1710
|
height: 50px;
|
|
1709
1711
|
border-radius: 8px;
|
|
1710
1712
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1711
1713
|
background-size: 200% 100%;
|
|
1712
|
-
animation: ${
|
|
1713
|
-
`,
|
|
1714
|
+
animation: ${Yv} 10s infinite linear;
|
|
1715
|
+
`,uC=n(_l)`
|
|
1714
1716
|
flex: 1;
|
|
1715
1717
|
gap: 12px;
|
|
1716
|
-
`,
|
|
1718
|
+
`,pC=n.div`
|
|
1717
1719
|
width: ${({$width:e})=>e};
|
|
1718
1720
|
height: 16px;
|
|
1719
1721
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1720
1722
|
background-size: 200% 100%;
|
|
1721
|
-
animation: ${
|
|
1723
|
+
animation: ${Yv} 1.5s infinite linear;
|
|
1722
1724
|
border-radius: 4px;
|
|
1723
|
-
`,
|
|
1724
|
-
${({$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 "}
|
|
1725
|
+
`,hC=({size:i=5,maxWidth:n,maxHeight:r})=>t(lC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(dC,{children:[t(cC,{}),e(uC,{children:[t(pC,{$width:"80%"}),t(pC,{$width:"100%"})]})]},n))}),gC=({currentStep:i,data:n,gap:r=12})=>t(_l,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(Il,{$gap:8,children:[r||n.forceDoneBadge?t(Rv,{status:Oi.Success,label:"",leftIcon:$t}):t(Rv,{status:Oi.Default,label:n.step.toString()}),t(Va,{size:o?ja.M:ja.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var mC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(mC||(mC={}));const fC=n.div`
|
|
1726
|
+
${({$maxHeight:e,$fitContent:t,$virtualize:i})=>t&&e&&i?`\n flex: 0 0 auto;\n height: ${e};\n overflow-x: auto;\n overflow-y: 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-x: auto;\n overflow-y: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n "}
|
|
1725
1727
|
width: 100%;
|
|
1726
1728
|
display: flex;
|
|
1727
1729
|
flex-direction: column;
|
|
1728
|
-
`,
|
|
1730
|
+
`,bC=n.div`
|
|
1729
1731
|
width: 100%;
|
|
1730
1732
|
flex: 1;
|
|
1731
1733
|
min-height: 0;
|
|
1732
1734
|
display: flex;
|
|
1733
1735
|
flex-direction: column;
|
|
1734
|
-
`,
|
|
1736
|
+
`,yC=n.div`
|
|
1735
1737
|
flex-shrink: 0;
|
|
1736
1738
|
position: relative;
|
|
1737
1739
|
z-index: 2;
|
|
1738
|
-
`,
|
|
1740
|
+
`,vC=n.div`
|
|
1739
1741
|
flex: 1;
|
|
1740
1742
|
min-height: 0;
|
|
1741
1743
|
overflow: hidden;
|
|
1742
|
-
|
|
1744
|
+
`,$C=n.div`
|
|
1743
1745
|
position: relative;
|
|
1744
1746
|
display: flex;
|
|
1745
1747
|
width: 100%;
|
|
1746
|
-
|
|
1748
|
+
min-width: 100%;
|
|
1749
|
+
`,wC=n.div`
|
|
1747
1750
|
display: flex;
|
|
1748
1751
|
flex-direction: column;
|
|
1749
1752
|
flex-shrink: 0;
|
|
1750
1753
|
width: 100%;
|
|
1751
|
-
|
|
1754
|
+
min-width: 100%;
|
|
1755
|
+
`,SC=n.div`
|
|
1752
1756
|
width: 100%;
|
|
1753
1757
|
flex-shrink: 0;
|
|
1754
1758
|
${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
|
|
1755
|
-
|
|
1759
|
+
`,xC=n.div`
|
|
1756
1760
|
position: relative;
|
|
1757
|
-
/*
|
|
1758
|
-
*
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:i})=>null!=i?`0 0 ${i}px`:e??(t?"0 0 auto":1)};
|
|
1765
|
-
|
|
1766
|
-
/* See the matching rule on Td below for the full explanation.
|
|
1767
|
-
*
|
|
1768
|
-
* LAST_COLUMN_STRETCH: only the last data column grows into leftover row
|
|
1769
|
-
* width. Non-last columns are content-sized (auto-width) and stay put.
|
|
1770
|
-
* Revert grow rule to: !$autoWidth && $resolvedWidth == null */
|
|
1761
|
+
/* Measured columns: pin to content width. Last column omits max so it can
|
|
1762
|
+
* stretch past the measured minimum (LAST_COLUMN_STRETCH). */
|
|
1763
|
+
min-width: ${({$resolvedWidth:e})=>null!=e?`${e}px`:"auto"};
|
|
1764
|
+
max-width: ${({$resolvedWidth:e,$isLast:t})=>null==e||t?void 0:`${e}px`};
|
|
1765
|
+
flex: ${({$autoWidth:e,$resolvedWidth:t,$isLast:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
|
|
1766
|
+
|
|
1767
|
+
/* LAST_COLUMN_STRETCH: last data column always grows into leftover width. */
|
|
1771
1768
|
${({$isLast:e})=>e&&r`
|
|
1772
1769
|
flex-grow: 1;
|
|
1773
1770
|
`}
|
|
@@ -1779,15 +1776,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1779
1776
|
|
|
1780
1777
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1781
1778
|
background-color: ${t};
|
|
1782
|
-
`;switch(e){case
|
|
1779
|
+
`;switch(e){case mC.Data:return r`
|
|
1783
1780
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1784
|
-
`;case
|
|
1781
|
+
`;case mC.DataSecondary:return r`
|
|
1785
1782
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1786
1783
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1787
|
-
`;case
|
|
1784
|
+
`;case mC.Pretty:return r`
|
|
1788
1785
|
background-color: transparent;
|
|
1789
1786
|
`;default:return""}}}
|
|
1790
|
-
`,
|
|
1787
|
+
`,CC=n.div`
|
|
1791
1788
|
position: absolute;
|
|
1792
1789
|
top: 50%;
|
|
1793
1790
|
right: 0;
|
|
@@ -1795,31 +1792,21 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1795
1792
|
width: 1px;
|
|
1796
1793
|
height: 18px;
|
|
1797
1794
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1798
|
-
`,
|
|
1799
|
-
/* See Th —
|
|
1800
|
-
min-width: ${({$
|
|
1801
|
-
max-width: ${({$resolvedWidth:e})=>null
|
|
1802
|
-
flex: ${({$
|
|
1803
|
-
|
|
1804
|
-
/* LAST_COLUMN_STRETCH: only the last data column grows into leftover
|
|
1805
|
-
* row width so the table fills its parent. Non-last columns are measured
|
|
1806
|
-
* to content (see autoWidthColumnKeys in index.tsx) and keep a fixed
|
|
1807
|
-
* pixel width — short columns like "Duration" no longer share equal flex
|
|
1808
|
-
* with wide ones like "Trace ID".
|
|
1809
|
-
*
|
|
1810
|
-
* The last column uses flex: 1 (not auto-width); this longhand ensures
|
|
1811
|
-
* grow even if a future change puts a resolvedWidth on it. Checkbox
|
|
1812
|
-
* column stays pinned via inline style. Explicit column.flex on a
|
|
1813
|
-
* non-last column is honoured as written (no forced grow).
|
|
1814
|
-
*
|
|
1815
|
-
* Prior behaviour forced flex-grow on every non-autoWidth column (so
|
|
1816
|
-
* text columns shared leftover equally). Revert to:
|
|
1817
|
-
* !$autoWidth && $resolvedWidth == null */
|
|
1795
|
+
`,EC=n.div`
|
|
1796
|
+
/* See Th — measured content width; last stretches. */
|
|
1797
|
+
min-width: ${({$resolvedWidth:e})=>null!=e?`${e}px`:"auto"};
|
|
1798
|
+
max-width: ${({$resolvedWidth:e,$isLastCell:t})=>null==e||t?void 0:`${e}px`};
|
|
1799
|
+
flex: ${({$autoWidth:e,$resolvedWidth:t,$isLastCell:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
|
|
1800
|
+
|
|
1801
|
+
/* LAST_COLUMN_STRETCH: only the last data column grows into leftover row width. */
|
|
1818
1802
|
${({$isLastCell:e})=>e&&r`
|
|
1819
1803
|
flex-grow: 1;
|
|
1820
1804
|
`}
|
|
1821
1805
|
|
|
1822
|
-
overflow
|
|
1806
|
+
/* Visible while measuring; then overflow-x auto as fallback when content still
|
|
1807
|
+
* exceeds the allocated width. */
|
|
1808
|
+
overflow-x: ${({$autoWidth:e,$resolvedWidth:t})=>e&&null==t?"visible":"auto"};
|
|
1809
|
+
overflow-y: hidden;
|
|
1823
1810
|
display: flex;
|
|
1824
1811
|
align-items: center;
|
|
1825
1812
|
|
|
@@ -1827,40 +1814,50 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1827
1814
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1828
1815
|
box-sizing: border-box;
|
|
1829
1816
|
|
|
1830
|
-
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case
|
|
1817
|
+
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case mC.Data:return r`
|
|
1831
1818
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1832
1819
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1833
1820
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1834
|
-
`;case
|
|
1821
|
+
`;case mC.DataSecondary:return r`
|
|
1835
1822
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1836
1823
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1837
1824
|
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]};
|
|
1838
|
-
`;case
|
|
1825
|
+
`;case mC.Pretty:return r`
|
|
1839
1826
|
border: none;
|
|
1840
1827
|
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1841
1828
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1842
1829
|
`;default:return""}}}
|
|
1843
|
-
`,
|
|
1844
|
-
|
|
1830
|
+
`,TC=n.div`
|
|
1831
|
+
/* Off-screen — must not contribute to Container scrollWidth. */
|
|
1832
|
+
position: fixed;
|
|
1845
1833
|
top: 0;
|
|
1846
|
-
left:
|
|
1834
|
+
left: -10000px;
|
|
1847
1835
|
visibility: hidden;
|
|
1848
1836
|
pointer-events: none;
|
|
1849
|
-
|
|
1850
|
-
|
|
1837
|
+
z-index: -1;
|
|
1838
|
+
display: flex;
|
|
1839
|
+
flex-direction: column;
|
|
1840
|
+
align-items: flex-start;
|
|
1841
|
+
width: max-content;
|
|
1851
1842
|
white-space: nowrap;
|
|
1852
|
-
`,
|
|
1843
|
+
`,OC=n.div`
|
|
1853
1844
|
display: inline-flex;
|
|
1854
1845
|
align-items: center;
|
|
1855
1846
|
padding: 18px 24px;
|
|
1847
|
+
border: 1px solid transparent;
|
|
1856
1848
|
box-sizing: border-box;
|
|
1857
1849
|
white-space: nowrap;
|
|
1858
|
-
`,
|
|
1850
|
+
`,NC=n.div`
|
|
1859
1851
|
display: inline-flex;
|
|
1860
1852
|
align-items: center;
|
|
1861
1853
|
gap: 4px;
|
|
1862
1854
|
white-space: nowrap;
|
|
1863
|
-
`,
|
|
1855
|
+
`,AC=n.div`
|
|
1856
|
+
display: inline-flex;
|
|
1857
|
+
align-items: center;
|
|
1858
|
+
flex-shrink: 0;
|
|
1859
|
+
gap: 4px;
|
|
1860
|
+
`,kC=n.div`
|
|
1864
1861
|
width: 100%;
|
|
1865
1862
|
height: 100%;
|
|
1866
1863
|
display: flex;
|
|
@@ -1868,7 +1865,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1868
1865
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1869
1866
|
gap: 4px;
|
|
1870
1867
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1871
|
-
|
|
1868
|
+
min-width: 0;
|
|
1869
|
+
`,IC=({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]=Ht(!1),{cells:$,onClick:w,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),k=null!=N,I=k&&m===A,_=null!=g&&o.id===g,D=c(o),R=a===s-1,L=k||!!w,P=()=>{k&&f?.(A),w?.()},U=(e,t)=>({$isLastRow:R&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:_,$withClick:L,onClick:P,$hovered:L&&y}),M=I&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=D.length>0?t(ix,{isOpen:y,actions:D,positionRight:u,positionLeft:p}):null,z=e(i,{children:[h&&t(EC,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(tv,{text:O,children:t(b$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(b$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),r.map(({key:i,textAlign:o},s)=>{const c=$.find(e=>e.key===i),u=0===s&&!h,p=s===r.length-1,g=0===s,m="right"===o?"flex-end":"center"===o?"center":"flex-start",f=c?.component?c.component():t(L$,{size:ja.XXS,align:o,nowrap:!0,fullWidth:!1,children:c?.rawValue||"-"}),b=e(Il,{$width:"100%",$gap:k&&g?8:0,$justifyContent:m,children:[k&&g?t(I?Et:Ut,{}):null,f]});return t(EC,{$variant:n,$index:a,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(u,p),children:b},`row-${a}-cell-${s}`)})]}),B={onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)};return k?e(wC,{"data-table-row-index":a,children:[e($C,{...B,children:[z,F]}),null!=M&&e(i,{children:[t(SC,{$maxHeight:b,children:M}),!R&&t(fS,{margin:"0"})]})]}):e($C,{"data-table-row-index":a,...B,children:[z,F]})},_C=({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=Gt(()=>r.map((i,p)=>t(IC,{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(Zx,{gap:e===mC.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},DC=({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===fi.Ascending?0:180;return t(ov,{variant:iv.Text,size:nv.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},RC=({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=Gt(()=>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(N$,{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})}})},LC=({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($C,{children:[h&&t(xC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(b$,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,tooltip:f,noSort:b,noFilter:y,filterOverride:v,textAlign:$},w)=>{const S=0===w&&!h,x=w===r.length-1,C=f?t(Va,{size:ja.XS,align:$,nowrap:!0,children:m}):t(L$,{size:ja.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return e(xC,{$variant:i,$backgroundColor:n,$isFirst:S,$isLast:x,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(kC,{$textAlign:$,children:[f?t(tv,{text:f,children:C}):C,(!b||!y)&&e(AC,{children:[!b&&t(DC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!y&&t(RC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:v})]})]}),!x&&i===mC.Data&&t(CC,{})]},`column-${g}`)})]}),PC=()=>{},UC={},MC=[],FC=e=>[],zC=({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]=Ht(fi.Ascending),[x,C]=Ht(""),[E,T]=Ht({}),[O,N]=Ht(null),A=m??E,k=void 0!==v,I=k?v:O,_=Wt(e=>{C(e),S(e=>e===fi.Ascending?fi.Descending:fi.Ascending)},[]),D=Wt((e,t)=>{const i={...A,[e]:t};f&&f(i),void 0===m&&T(i)},[A,f,m]),R=Gt(()=>{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(w===fi.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(A)){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,w,A,d]),L=Gt(()=>null==b?-1:R.findIndex(e=>e.id===b),[R,b]),{partiallySelected:P,allSelected:U}=Gt(()=>{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=Gt(()=>{const e=new Set,t=d[d.length-1]?.key;for(const i of d)i.key!==t&&e.add(i.key);return e},[d]),F=Vt(null),[z,B]=Ht({}),j=Gt(()=>{if(0===M.size)return[];const i=d[0]?.key,n=c.some(e=>null!=e.expandedContent);return d.filter(e=>M.has(e.key)).map(r=>{const o=[e(NC,{children:[t(Va,{size:ja.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(AC,{children:[!r.noSort&&t(DC,{columnKey:r.key,sortDirection:fi.Ascending,sortByKey:"",onSort:PC}),!r.noFilter&&t(RC,{columnKey:r.key,filters:UC,onFilter:PC,rowsUnfiltered:MC,filterOverride:r.filterOverride})]})]},`mw-${r.key}-header`)],a=n&&r.key===i;return c.forEach((i,n)=>{const s=i.cells.find(e=>e.key===r.key);if(!s)return;const l=s.component?s.component():t(Va,{size:ja.XS,children:s.rawValue||"-"});o.push(a?e(Il,{$gap:8,children:[t(Ut,{}),l]},`mw-${r.key}-${n}`):t(zt.Fragment,{children:l},`mw-${r.key}-${n}`))}),{key:r.key,nodes:o}})},[d,c,M]);Kt(()=>{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(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!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=Vt(null),[X,W]=Ht(0),G=R.some(e=>null!=e.expandedContent);Kt(()=>{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=Wt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),K=G&&X>0?`${X}px`:void 0,Y=r&&null!=n&&R.length>=100,J=!r||Y;return e(fC,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(TC,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(OC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(bC,{$variant:i,children:[!a&&t(yC,{children:t(LC,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:w,sortByKey:x,onSort:_,filters:A,onFilter:D,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(vC,{ref:H,children:t(_C,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||FC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(_C,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||FC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:J,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(Dl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(hC,{size:3,maxHeight:n}):t(d$,{...l})})]})]})},BC=n.div`
|
|
1872
1870
|
padding: 6px 12px;
|
|
1873
1871
|
|
|
1874
1872
|
display: flex;
|
|
@@ -1886,7 +1884,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1886
1884
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1887
1885
|
}
|
|
1888
1886
|
`}
|
|
1889
|
-
`,
|
|
1887
|
+
`,jC=n.textarea`
|
|
1890
1888
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1891
1889
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1892
1890
|
flex: 1;
|
|
@@ -1911,19 +1909,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1911
1909
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1912
1910
|
}
|
|
1913
1911
|
}
|
|
1914
|
-
`,
|
|
1912
|
+
`,HC=({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=Vt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(_l,{$gap:6,children:[t(p$,{label:i,tooltip:r,required:n,badge:o}),t(BC,{$disabled:p,$error:!!a,children:t(jC,{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(h$,{errorMessage:a,warnMessage:s,helpMessage:l})]})},XC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],WC=n.div`
|
|
1915
1913
|
flex: 1;
|
|
1916
1914
|
min-width: 0;
|
|
1917
|
-
`,
|
|
1915
|
+
`,GC=n.div`
|
|
1918
1916
|
flex: 0 0 auto;
|
|
1919
1917
|
min-width: 140px;
|
|
1920
|
-
`,
|
|
1918
|
+
`,VC=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=XC,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Gt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Gt(()=>((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(_l,{$width:b,$gap:6,children:[t(p$,{label:n,tooltip:r,required:s,badge:o}),e(Il,{$gap:8,$alignItems:"center",children:[t(WC,{children:t(sw,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(md(e.target.value),$)})}),t(GC,{children:t(YS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(h$,{errorMessage:h,warnMessage:g,helpMessage:m})]})},KC=n.div`
|
|
1921
1919
|
display: flex;
|
|
1922
1920
|
flex-direction: column;
|
|
1923
1921
|
min-width: 0;
|
|
1924
1922
|
width: 100%;
|
|
1925
1923
|
flex: 1;
|
|
1926
|
-
`,
|
|
1924
|
+
`,YC=n.div`
|
|
1927
1925
|
display: flex;
|
|
1928
1926
|
flex-wrap: wrap;
|
|
1929
1927
|
align-items: center;
|
|
@@ -1940,19 +1938,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1940
1938
|
border-top-left-radius: 12px;
|
|
1941
1939
|
border-top-right-radius: 12px;
|
|
1942
1940
|
`;default:return r``}}}
|
|
1943
|
-
`,
|
|
1941
|
+
`,JC=n.div`
|
|
1944
1942
|
display: flex;
|
|
1945
1943
|
align-items: center;
|
|
1946
1944
|
gap: 4px;
|
|
1947
1945
|
min-width: 0;
|
|
1948
|
-
`,
|
|
1946
|
+
`,qC=n.div`
|
|
1949
1947
|
display: flex;
|
|
1950
1948
|
align-items: center;
|
|
1951
1949
|
justify-content: center;
|
|
1952
1950
|
padding: 4px;
|
|
1953
1951
|
border-radius: 4px;
|
|
1954
1952
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1955
|
-
`,
|
|
1953
|
+
`,QC=n.div`
|
|
1956
1954
|
display: flex;
|
|
1957
1955
|
flex-direction: column;
|
|
1958
1956
|
width: 100%;
|
|
@@ -1980,7 +1978,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1980
1978
|
border-bottom-left-radius: 8px;
|
|
1981
1979
|
border-bottom-right-radius: 8px;
|
|
1982
1980
|
`;default:return r``}}}
|
|
1983
|
-
`,
|
|
1981
|
+
`,ZC=r`
|
|
1984
1982
|
${({theme:e,$variant:t})=>{switch(t){case"timing":return r`
|
|
1985
1983
|
background-color: ${e.v2.colors.yellow[1e3]};
|
|
1986
1984
|
border-left: 2px solid ${e.v2.colors.yellow[500]};
|
|
@@ -1998,7 +1996,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1998
1996
|
${({$selected:e,$variant:t,theme:i})=>e&&"default"===t&&r`
|
|
1999
1997
|
border-left-color: ${i.v2.colors.silver[500]};
|
|
2000
1998
|
`}
|
|
2001
|
-
`,
|
|
1999
|
+
`,eE=n.button`
|
|
2002
2000
|
display: flex;
|
|
2003
2001
|
flex-direction: column;
|
|
2004
2002
|
align-items: stretch;
|
|
@@ -2012,12 +2010,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2012
2010
|
color: inherit;
|
|
2013
2011
|
font: inherit;
|
|
2014
2012
|
cursor: ${({$interactive:e})=>e?"pointer":"default"};
|
|
2015
|
-
${
|
|
2013
|
+
${ZC}
|
|
2016
2014
|
|
|
2017
2015
|
&:last-child {
|
|
2018
2016
|
box-shadow: none;
|
|
2019
2017
|
}
|
|
2020
|
-
`,
|
|
2018
|
+
`,tE=n.div`
|
|
2021
2019
|
display: flex;
|
|
2022
2020
|
align-items: center;
|
|
2023
2021
|
gap: 8px;
|
|
@@ -2026,16 +2024,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2026
2024
|
padding: 0 8px;
|
|
2027
2025
|
padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
|
|
2028
2026
|
box-sizing: border-box;
|
|
2029
|
-
`,
|
|
2027
|
+
`,iE=n(Va)`
|
|
2030
2028
|
flex-shrink: 0;
|
|
2031
2029
|
min-width: 10px;
|
|
2032
|
-
`,
|
|
2030
|
+
`,nE=n.div`
|
|
2033
2031
|
display: flex;
|
|
2034
2032
|
flex: 1;
|
|
2035
2033
|
align-items: center;
|
|
2036
2034
|
gap: 4px;
|
|
2037
2035
|
min-width: 0;
|
|
2038
|
-
`,
|
|
2036
|
+
`,rE=n.div`
|
|
2039
2037
|
display: flex;
|
|
2040
2038
|
flex-shrink: 0;
|
|
2041
2039
|
align-items: center;
|
|
@@ -2045,22 +2043,22 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2045
2043
|
overflow: hidden;
|
|
2046
2044
|
border-radius: 4px;
|
|
2047
2045
|
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
2048
|
-
`,
|
|
2046
|
+
`,oE=n(Va)`
|
|
2049
2047
|
width: 100%;
|
|
2050
2048
|
overflow: hidden;
|
|
2051
2049
|
font-family: ${({theme:e})=>e.font_family.code};
|
|
2052
2050
|
line-height: 16px;
|
|
2053
2051
|
text-overflow: ellipsis;
|
|
2054
2052
|
white-space: nowrap;
|
|
2055
|
-
`,
|
|
2053
|
+
`,aE=n.div`
|
|
2056
2054
|
display: flex;
|
|
2057
2055
|
flex: 1;
|
|
2058
2056
|
align-items: center;
|
|
2059
2057
|
gap: 8px;
|
|
2060
2058
|
min-width: 0;
|
|
2061
|
-
`,
|
|
2059
|
+
`,sE=n(Va)`
|
|
2062
2060
|
flex-shrink: 0;
|
|
2063
|
-
`,
|
|
2061
|
+
`,lE=n.div`
|
|
2064
2062
|
display: flex;
|
|
2065
2063
|
flex-shrink: 0;
|
|
2066
2064
|
align-items: center;
|
|
@@ -2079,18 +2077,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2079
2077
|
background-color: ${e.v2.colors.green[900]};
|
|
2080
2078
|
color: ${e.v2.colors.green[300]};
|
|
2081
2079
|
`}}}
|
|
2082
|
-
`,
|
|
2080
|
+
`,dE=n.div`
|
|
2083
2081
|
display: flex;
|
|
2084
2082
|
flex: 1;
|
|
2085
2083
|
align-items: center;
|
|
2086
2084
|
gap: 4px;
|
|
2087
2085
|
min-width: 0;
|
|
2088
|
-
`,
|
|
2086
|
+
`,cE=n.div`
|
|
2089
2087
|
display: flex;
|
|
2090
2088
|
flex-direction: column;
|
|
2091
2089
|
width: 100%;
|
|
2092
2090
|
box-sizing: border-box;
|
|
2093
|
-
`,
|
|
2091
|
+
`,uE=n.div`
|
|
2094
2092
|
display: flex;
|
|
2095
2093
|
align-items: center;
|
|
2096
2094
|
width: 100%;
|
|
@@ -2099,20 +2097,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2099
2097
|
box-sizing: border-box;
|
|
2100
2098
|
background-color: ${({theme:e})=>e.v2.colors.green[900]};
|
|
2101
2099
|
border-left: 2px solid ${({theme:e})=>e.v2.colors.green[500]};
|
|
2102
|
-
`,
|
|
2100
|
+
`,pE=(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]}},hE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(cE,{children:e(_l,{$gap:0,children:[i.scopePlaceholder?t(uE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})}):r?t(cx,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(uE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(cx,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},gE=({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(eE,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(tE,{$depth:d,children:t(dE,{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(eE,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(tE,{$depth:d,children:[t(iE,{size:ja.XXXS,color:Ha.Disable,nowrap:!0,children:i.index??""}),e(nE,{children:[i.service?t(rE,{title:i.service,children:t(oE,{size:ja.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(aE,{children:[t(Va,{size:ja.XXXS,color:n||"default"!==s?Ha.Primary:Ha.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(lE,{$tone:p,children:[t(Va,{size:ja.XXXS,color:pE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:pE(a,p)}):null]}):null]}),i.durationLabel?t(sE,{size:ja.XXXS,color:h??Ha.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(hE,{row:i}):null]})},mE=({title:i,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Gt(()=>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(KC,{children:[g&&e(YC,{$corner:c??"both",children:[(n||i)&&e(JC,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),i&&t(Va,{size:ja.XS,color:Ha.Primary,nowrap:!0,children:i})]}),r?.label?t(Rv,{label:r.label,backgroundColor:m,textColor:f,textSize:ja.XXXS}):null,a?.map(e=>t(qC,{children:t(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(QC,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(gE,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(Il,{$justifyContent:"center",style:{padding:16},children:t(Va,{size:ja.XXXS,color:Ha.Secondary,children:"No spans"})})})]})},fE=n.div`
|
|
2103
2101
|
min-width: 500px;
|
|
2104
|
-
`,
|
|
2102
|
+
`,bE=n.div`
|
|
2105
2103
|
display: flex;
|
|
2106
2104
|
flex-direction: column;
|
|
2107
2105
|
align-items: center;
|
|
2108
2106
|
gap: 16px;
|
|
2109
2107
|
padding: 24px;
|
|
2110
2108
|
width: 100%;
|
|
2111
|
-
`,
|
|
2109
|
+
`,yE=n.div`
|
|
2112
2110
|
display: flex;
|
|
2113
2111
|
justify-content: center;
|
|
2114
2112
|
gap: 16px;
|
|
2115
2113
|
padding: 16px 24px;
|
|
2116
2114
|
width: 100%;
|
|
2117
2115
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2118
|
-
`,
|
|
2116
|
+
`,vE=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Px,{isOpen:o,onClose:a,...c,children:e(fE,{children:[e(bE,{children:[i&&t(i,{}),t(Va,{size:ja.M,weight:500,color:Ha.Primary,children:n}),t(_l,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Va,{size:ja.XS,weight:400,color:Ha.Secondary,children:e},e))}),d]}),(s||l)&&e(yE,{children:[s&&t(ov,{"data-id":"deny",...s}),l&&t(ov,{"data-id":"approve",...l})]})]})});export{lw as $,A$ as A,ov as B,Dl as C,KS as D,j$ as E,_l as F,BS as G,Yu as H,Nx as I,ep as J,_v as K,tp as L,ip as M,d$ as N,Ju as O,yi as P,wi as Q,R$ as R,Oi as S,tv as T,Iu as U,$l as V,vE as W,Us as X,K$ as Y,Pu as Z,r$ as _,k$ as a,$s as a$,Gu as a0,g$ as a1,np as a2,rp as a3,ku as a4,ss as a5,fS as a6,xx as a7,Qv as a8,Wc as a9,N$ as aA,lu as aB,xu as aC,ap as aD,vu as aE,Qu as aF,sp as aG,op as aH,lp as aI,dp as aJ,ju as aK,du as aL,pu as aM,hu as aN,fu as aO,yu as aP,bu as aQ,Nu as aR,Zc as aS,eu as aT,au as aU,Hu as aV,Xu as aW,Ku as aX,ag as aY,tu as aZ,Au as a_,Eu as aa,Mi as ab,Bi as ac,Yi as ad,Ji as ae,qi as af,zi as ag,ji as ah,Fi as ai,za as aj,Ru as ak,uu as al,Du as am,cu as an,Mu as ao,Cu as ap,_u as aq,Uu as ar,Vu as as,Tu as at,fx as au,Wu as av,wu as aw,su as ax,Su as ay,$u as az,bi as b,hC as b$,sg as b0,Zx as b1,Hl as b2,s$ as b3,av as b4,Is as b5,iS as b6,Iy as b7,Za as b8,sl as b9,Vi as bA,pd as bB,Nv as bC,hr as bD,gr as bE,mr as bF,fr as bG,br as bH,cn as bI,so as bJ,lo as bK,co as bL,uo as bM,po as bN,on as bO,nn as bP,Do as bQ,mn as bR,Ko as bS,hn as bT,Xo as bU,Fa as bV,Ma as bW,sc as bX,Li as bY,Xv as bZ,kl as b_,Si as ba,xi as bb,Cy as bc,Ly as bd,Fy as be,_y as bf,Ys as bg,Ja as bh,Dn as bi,en as bj,Ws as bk,Mc as bl,Uc as bm,Lc as bn,Pc as bo,id as bp,lc as bq,td as br,zy as bs,Nn as bt,si as bu,oi as bv,nd as bw,rd as bx,Pn as by,hd as bz,Fc as c,jo as c$,En as c0,Rv as c1,li as c2,zc as c3,hi as c4,Bc as c5,hx as c6,L$ as c7,Ka as c8,Ld as c9,Fr as cA,kr as cB,Ar as cC,Mr as cD,Ur as cE,Rr as cF,Dr as cG,Pr as cH,Lr as cI,Gr as cJ,Wr as cK,Br as cL,zr as cM,Xr as cN,Hr as cO,jr as cP,Jr as cQ,Yr as cR,Kr as cS,Vr as cT,Ix as cU,no as cV,Fn as cW,Mn as cX,io as cY,Ax as cZ,Bo as c_,rc as ca,Zd as cb,ec as cc,ic as cd,tc as ce,wp as cf,Ou as cg,Lu as ch,Sp as ci,Bu as cj,$p as ck,ru as cl,ou as cm,gu as cn,Cr as co,xr as cp,Er as cq,Tr as cr,qr as cs,Qr as ct,Zr as cu,eo as cv,_r as cw,Ir as cx,Nr as cy,Or as cz,p$ as d,Ta as d$,Ho as d0,Go as d1,Yn as d2,Jn as d3,Wn as d4,Wo as d5,Eo as d6,Co as d7,fv as d8,Oo as d9,ca as dA,ua as dB,da as dC,la as dD,Qo as dE,ga as dF,ha as dG,pa as dH,ba as dI,fa as dJ,ma as dK,Zo as dL,$a as dM,va as dN,ya as dO,ea as dP,Sa as dQ,wa as dR,ta as dS,xa as dT,Av as dU,Ca as dV,Ea as dW,Oa as dX,ka as dY,Aa as dZ,Na as d_,Vo as da,To as db,$o as dc,rr as dd,No as de,Xn as df,So as dg,Ao as dh,ko as di,Gn as dj,Vn as dk,Kn as dl,qn as dm,Qn as dn,vo as dp,Ua as dq,La as dr,Jo as ds,ra as dt,na as du,ia as dv,sa as dw,aa as dx,oa as dy,qo as dz,Va as e,Wd as e$,Pa as e0,Da as e1,Ra as e2,_a as e3,Ia as e4,an as e5,pr as e6,dr as e7,ur as e8,cr as e9,Xd as eA,gv as eB,rs as eC,Ui as eD,ns as eE,Gd as eF,cx as eG,Ms as eH,Vw as eI,Ny as eJ,Jl as eK,Yl as eL,js as eM,rx as eN,Oy as eO,al as eP,As as eQ,Wl as eR,Vy as eS,Jd as eT,Kd as eU,dd as eV,ll as eW,Xl as eX,Fs as eY,Ai as eZ,jd as e_,ar as ea,sr as eb,lr as ec,or as ed,nr as ee,_n as ef,ai as eg,NS as eh,TS as ei,Un as ej,Hs as ek,ac as el,Ba as em,qa as en,gi as eo,qx as ep,_s as eq,dS as er,bs as es,gS as et,On as eu,ud as ev,Es as ew,ql as ex,Js as ey,Ov as ez,Ha as f,em as f$,Zv as f0,zC as f1,mC as f2,mu as f3,Gc as f4,il as f5,zs as f6,wn as f7,Sn as f8,xn as f9,ng as fA,og as fB,rg as fC,Op as fD,Ep as fE,Cp as fF,Tp as fG,Dp as fH,_p as fI,Pp as fJ,Lp as fK,kp as fL,Ap as fM,Hc as fN,mp as fO,Xf as fP,Df as fQ,Rf as fR,Cf as fS,Ef as fT,Bm as fU,Gm as fV,Xm as fW,Vm as fX,Wm as fY,Km as fZ,tm as f_,Cc as fa,kc as fb,xc as fc,Ac as fd,Ic as fe,Sc as ff,Oc as fg,fc as fh,bc as fi,Nc as fj,Ec as fk,Tc as fl,Rc as fm,mc as fn,$c as fo,wc as fp,vc as fq,yc as fr,cc as fs,dc as ft,Dc as fu,_c as fv,jc as fw,Kc as fx,Xc as fy,Vc as fz,ja as g,hm as g$,df as g0,lf as g1,cf as g2,ff as g3,Pg as g4,pf as g5,uf as g6,Pf as g7,Uf as g8,xf as g9,Zm as gA,qf as gB,eb as gC,Nm as gD,Am as gE,py as gF,hy as gG,by as gH,$y as gI,km as gJ,xm as gK,$m as gL,vm as gM,ty as gN,Qg as gO,qg as gP,ey as gQ,Jg as gR,Yg as gS,om as gT,rm as gU,lb as gV,sm as gW,bS as gX,am as gY,pm as gZ,um as g_,Sf as ga,Of as gb,Tf as gc,Af as gd,Nf as ge,Hf as gf,Kf as gg,Yf as gh,Gf as gi,Vf as gj,Fm as gk,zm as gl,Pm as gm,Um as gn,Mm as go,Rm as gp,Dm as gq,Im as gr,Lm as gs,Om as gt,Bf as gu,Tm as gv,Cm as gw,Em as gx,zf as gy,Kg as gz,Il as h,fh as h$,mm as h0,fm as h1,ym as h2,bm as h3,cm as h4,dm as h5,lm as h6,my as h7,Cg as h8,oy as h9,Jh as hA,qh as hB,Qh as hC,Zh as hD,eg as hE,tg as hF,zp as hG,jp as hH,Hp as hI,Xp as hJ,Gp as hK,Wp as hL,Kp as hM,Vp as hN,Jp as hO,Yp as hP,qp as hQ,Up as hR,Mp as hS,oh as hT,ah as hU,ph as hV,ch as hW,uh as hX,lh as hY,dh as hZ,sh as h_,sy as ha,ay as hb,im as hc,ly as hd,dy as he,cy as hf,uy as hg,_f as hh,xg as hi,Zf as hj,Qf as hk,pv as hl,od as hm,bv as hn,Px as ho,Ey as hp,ig as hq,Fp as hr,Qp as hs,Zp as ht,eh as hu,th as hv,nh as hw,ih as hx,rh as hy,Ol as hz,nv as i,mo as i$,bh as i0,gh as i1,mh as i2,hh as i3,vh as i4,$h as i5,yh as i6,Bp as i7,Bh as i8,jh as i9,Nh as iA,kh as iB,Rh as iC,nl as iD,Nl as iE,ew as iF,dn as iG,ln as iH,sn as iI,pn as iJ,un as iK,gn as iL,Ev as iM,tC as iN,sC as iO,nC as iP,ks as iQ,mE as iR,Rd as iS,Ln as iT,Rn as iU,_w as iV,Wx as iW,rn as iX,er as iY,vr as iZ,go as i_,Hh as ia,zh as ib,Wh as ic,Gh as id,Vh as ie,Kh as ig,Yh as ih,Xh as ii,Mh as ij,Fh as ik,Ah as il,Lh as im,Ph as io,Uh as ip,Ih as iq,Dh as ir,_h as is,wh as it,Sh as iu,xh as iv,Ch as iw,Eh as ix,Th as iy,Oh as iz,iv as j,ib as j$,jn as j0,zn as j1,fo as j2,Hn as j3,bo as j4,Bn as j5,xo as j6,ho as j7,tr as j8,ir as j9,Xs as jA,Xy as jB,Ts as jC,Cs as jD,xs as jE,Ya as jF,dl as jG,Hi as jH,q$ as jI,qc as jJ,Yc as jK,Jc as jL,Qc as jM,Zu as jN,xp as jO,gp as jP,pp as jQ,hp as jR,up as jS,cp as jT,yp as jU,vp as jV,bp as jW,fp as jX,mv as jY,ob as jZ,tb as j_,Zn as ja,ro as jb,oo as jc,ao as jd,Sr as je,wr as jf,$r as jg,to as jh,yr as ji,jw as jj,Dw as jk,bn as jl,Al as jm,gC as jn,ky as jo,Os as jp,Qa as jq,Vd as jr,vv as js,Ty as jt,Py as ju,Vs as jv,Ds as jw,Rs as jx,Ks as jy,Gs as jz,h$ as k,Ci as k$,rb as k0,nb as k1,mb as k2,_b as k3,hb as k4,fb as k5,yb as k6,bb as k7,Zb as k8,Jb as k9,kg as kA,Ig as kB,_g as kC,Xg as kD,Dg as kE,Rg as kF,Gg as kG,Wg as kH,Ng as kI,cg as kJ,dg as kK,_i as kL,ui as kM,ki as kN,Ri as kO,vn as kP,yn as kQ,fn as kR,tn as kS,vi as kT,$i as kU,Ni as kV,pi as kW,Cn as kX,mi as kY,ci as kZ,Pi as k_,Yb as ka,iy as kb,ry as kc,ny as kd,vb as ke,$b as kf,wb as kg,Db as kh,Rb as ki,Lg as kj,Ug as kk,Mg as kl,Fg as km,zg as kn,fg as ko,yg as kp,vg as kq,$g as kr,wg as ks,yf as kt,Sg as ku,af as kv,Bg as kw,jg as kx,Hg as ky,Ag as kz,ts as l,iu as l$,Gi as l0,Wi as l1,Xi as l2,Di as l3,$n as l4,Zi as l5,Qi as l6,Ki as l7,fi as l8,di as l9,fd as lA,bd as lB,Pd as lC,Ud as lD,Ss as lE,Md as lF,Fd as lG,Tn as lH,qd as lI,qu as lJ,yo as lK,wo as lL,Rp as lM,Ip as lN,Np as lO,Fu as lP,zu as lQ,zo as lR,Fo as lS,Mo as lT,Uo as lU,_o as lV,Lo as lW,Io as lX,Ro as lY,Po as lZ,nu as l_,Ii as la,Sl as lb,wl as lc,El as ld,ys as le,os as lf,vs as lg,gd as lh,Ns as li,Ps as lj,ws as lk,Bs as ll,is as lm,Qs as ln,Zs as lo,el as lp,tl as lq,rl as lr,Gl as ls,Ql as lt,Zl as lu,ed as lv,ad as lw,sd as lx,cd as ly,md as lz,es as m,Hb as m$,Yd as m0,pc as m1,hc as m2,gc as m3,uc as m4,lg as m5,jf as m6,ef as m7,tf as m8,nf as m9,Vg as mA,gb as mB,gg as mC,hg as mD,pg as mE,gf as mF,db as mG,sb as mH,pb as mI,ub as mJ,cb as mK,ab as mL,gm as mM,Qm as mN,Jm as mO,qm as mP,Ym as mQ,Bb as mR,zb as mS,Pb as mT,Mb as mU,Ub as mV,Fb as mW,Vb as mX,Wb as mY,Xb as mZ,jb as m_,$f as ma,wf as mb,Ib as mc,kb as md,Ab as me,Sb as mf,Eb as mg,Nb as mh,xb as mi,Tb as mj,Cb as mk,Ob as ml,Jf as mm,Eg as mn,Ff as mo,mg as mp,gy as mq,jm as mr,Hm as ms,rf as mt,Lf as mu,_m as mv,Og as mw,Tg as mx,bg as my,Wf as mz,Ei as n,Rl as n$,Lb as n0,Gb as n1,of as n2,wm as n3,mf as n4,yy as n5,vy as n6,Mf as n7,vf as n8,nm as n9,uv as nA,hv as nB,Ky as nC,wv as nD,Hv as nE,qv as nF,Wv as nG,jv as nH,pw as nI,hw as nJ,v$ as nK,XC as nL,qS as nM,ex as nN,ix as nO,ox as nP,Pl as nQ,jx as nR,Ll as nS,Uv as nT,yx as nU,H$ as nV,Ul as nW,Ml as nX,Fl as nY,Jw as nZ,ES as n_,Sy as na,wy as nb,fy as nc,kf as nd,ug as ne,Zg as nf,If as ng,sf as nh,Qb as ni,qb as nj,Kb as nk,bf as nl,hf as nm,Sm as nn,kn as no,In as np,Yo as nq,Qd as nr,Wy as ns,Cv as nt,Gy as nu,jy as nv,yv as nw,Hy as nx,sv as ny,dv as nz,xS as o,Wa as o0,vS as p,yS as q,VC as r,b$ as s,ri as t,YS as u,HC as v,ls as w,px as x,sw as y,Ti as z};
|