@odigos/ui-kit 0.0.294 → 0.0.295
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 +17 -0
- package/lib/chunks/{helpers-BbLwXwCP.js → helpers-CVRjhvw4.js} +1 -1
- package/lib/chunks/index-B13xWqwt.js +342 -0
- package/lib/chunks/{source-instrument-form-context-TaNVlKMt.js → source-instrument-form-context-CgGshOFa.js} +1 -1
- package/lib/chunks/{ui-components-CnvJIMbW.js → ui-components-DwtaxXwl.js} +298 -294
- package/lib/components/table/types.d.ts +7 -0
- package/lib/components/tooltip/index.d.ts +0 -2
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/insights/service-with-language-icons.d.ts +12 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/db-access-view/helpers.d.ts +0 -4
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/db-access-view/map.d.ts +0 -1
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/helpers.d.ts +0 -4
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/map.d.ts +0 -1
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/helpers.d.ts +0 -4
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/map.d.ts +0 -1
- package/lib/containers/service-map/helpers/types.d.ts +2 -1
- package/lib/containers/service-map/react-flow/edges/animated-traffic-edge.d.ts +5 -1
- package/lib/containers/service-map/react-flow/edges/self-loop-edge.d.ts +6 -0
- package/lib/containers/service-map/service-map-context.d.ts +3 -0
- package/lib/containers.js +557 -622
- package/lib/contexts.js +1 -1
- package/lib/functions/find-source-by-service/index.d.ts +3 -0
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useCopy.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/common/self-loop-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/blast-radius/index.d.ts +0 -1
- package/lib/snippets/graph-flow/animated-edge.d.ts +12 -0
- package/lib/snippets/graph-flow/auto-fit-view.d.ts +14 -0
- package/lib/snippets/graph-flow/elk-layout.d.ts +6 -0
- package/lib/snippets/graph-flow/get-edge-path.d.ts +14 -0
- package/lib/snippets/graph-flow/graph-flow.d.ts +9 -0
- package/lib/snippets/graph-flow/index.d.ts +5 -0
- package/lib/snippets/graph-flow/types.d.ts +61 -0
- package/lib/snippets/index.d.ts +1 -0
- 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 +9 -9
- package/lib/chunks/index-DrntqYmU.js +0 -338
- package/lib/snippets/blast-radius/animated-edge.d.ts +0 -10
|
@@ -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 _,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`
|
|
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 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 _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 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 _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 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,_i,Di,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"})(_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"})(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},_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",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",_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",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",_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",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]: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 Wa=new Set(Object.values(Ha)),Xa=(e,t)=>{if("string"!=typeof(i=t)||!Wa.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})=>Xa(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
|
-
`,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`
|
|
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)=>{if(!t)return;const n=e.filter(e=>e.serviceName===t||e.id.name===t);if(n.length){if(i){const e=n.find(e=>e.id.namespace===i);if(e)return e}return n[0]}},As=(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?As(e,n,i):i[n]=e}):i[o]=r:As(r,o,i)}return i},ks=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]}`},Is=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`}},_s=()=>{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)})},Ds=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},[]):[],Rs=e=>Array.isArray(e?.statuses)?Ds(e.statuses):e?.conditions??[],Ls=e=>e?Array.isArray(e)?Ps(e):Ps(Ds(Object.values(e))):Ps([]),Ps=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}},Us=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ms=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),Fs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,zs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Bs=e=>e?.map(e=>Ms(Fs(e)))||[],js=e=>e?.map(e=>Ms(e))||[],Hs=e=>e.runtimeInfo?.detectedLanguages?.length?js(e.runtimeInfo?.detectedLanguages):Bs(e.containers),Ws=(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]: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]: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]),Gs=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,Vs=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},Ks=e=>Vs(Gs(e)),Ys=(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},Js=(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},qs=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:Xe,[Mi.PayloadCollection]:We,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),Qs=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Zs=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},el=(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},tl=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),il=(e,t)=>Object.values(ja).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),nl=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,rl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",ol=(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(...ol(e,t,i)),r}):[]},al={"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"},sl=e=>{if(!e)return"";if(al[e])return al[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ll=(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},dl=(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]}},cl=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}},ul=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,pl=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
|
+
`,hl=n(Va)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,gl=({percentage:i})=>e(ul,{children:[t(pl,{}),"number"==typeof i?t(hl,{size:ja.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),ml={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 fl(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 ml[n]?{value:t,unit:n}:{value:t,unit:"px"}}function bl(e){const t=fl(e);return`${t.value}${t.unit}`}const yl=(()=>{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})(),vl=({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}=fl(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:bl(1.5),height:bl(4),borderRadius:bl(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${yl} ${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)`}})]})},$l=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
|
+
`,wl=({scale:e,icon:i})=>{const n=o();return t($l,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t($l,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t($l,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t($l,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t($l,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},Sl=434,xl=635,Cl=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
|
+
`,El=n.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,Tl=()=>e(Cl,{children:[t(El,{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(El,{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(El,{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(El,{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(El,{children:t(ee,{size:112})})]}),Ol=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
|
+
`,Nl=({scale:e=1,icon:i})=>{const n=o();return t(Ol,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Ol,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Ol,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Ol,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Ol,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Al=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
|
+
`,kl=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
|
-
`,kl=n.div`
|
|
116
|
-
padding: ${({$padding:e})=>e||"12px"};
|
|
117
115
|
`,Il=n.div`
|
|
116
|
+
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
+
`,_l=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
|
+
`,Dl=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
|
+
`,Rl=n(Dl)`
|
|
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
|
+
`,Ll=n.div`
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
padding: 12px;
|
|
152
152
|
overflow-y: scroll;
|
|
153
|
-
`,
|
|
153
|
+
`,Pl=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
|
+
`,Ul=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
|
+
`,Ml=n(Dl)`
|
|
174
174
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
175
175
|
width: 100%;
|
|
176
|
-
`,
|
|
176
|
+
`,Fl=n(_l)`
|
|
177
177
|
gap: 16px;
|
|
178
178
|
padding: 16px;
|
|
179
|
-
`,
|
|
179
|
+
`,zl=n.div`
|
|
180
180
|
width: 100%;
|
|
181
181
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
182
182
|
overflow-y: auto;
|
|
183
|
-
`,
|
|
183
|
+
`,Bl=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
|
+
`,jl=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
|
-
`,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`
|
|
195
|
+
animation: ${Bl} 1s reverse linear infinite;
|
|
196
|
+
`,Hl=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")}`},Wl=({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?Hl(c):"");Wt(()=>{if(!c)return;w(Hl(c));const e=setInterval(()=>w(Hl(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(Dl,{$gap:16,$alignItems:"center",children:[b?t(wl,{scale:1.7,icon:y}):h?t(gl,{percentage:f}):g?t(vl,{scale:m}):null,(n||s||c||i||u)&&e(Dl,{$gap:8,$alignItems:"center",children:[e(_l,{$gap:4,children:[i&&t(i,{}),u?t(jl,{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:dl(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:dl(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:dl(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:dl(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:dl(t,e,"500"),...i}),[Oi.Loading]:e=>Wl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:dl(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:dl(t,e,"300"),...i})}[e]),Gl=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}},Vl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Kl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Yl={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},Jl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Kl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Kl[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=Yl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Kl))if(o.includes(e))return t;return ze},ql=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},Zl=(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 ed(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 td(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 id(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:ed(t??null)}}function nd(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:td(t??null)}}const rd=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),od=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ad=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},sd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ld=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,dd=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,cd=e=>dd.test(e),ud=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:za(t),reason:i?za(i):"",message:n}))||[],pd=(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}))},hd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],gd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],md=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},fd=e=>e.replace(/[^\d]/g,""),bd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},yd=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},vd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},$d={0:"",1:"OK",2:"ERROR"};class wd{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 wd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Sd=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},xd=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(xd(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=Cd(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=Sd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Cd=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?xd(i):void 0}else e.skip(i.wire)}return t},Ed=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Cd(i);void 0===n.key&&void 0===n.value||t.push(n)},Td=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},Od=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?Ed(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Nd=(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=Sd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=Sd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=Sd(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?Ed(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Od(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Td(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ad=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=Cd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},kd=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},Id=(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=kd(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Nd(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},_d=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=Ad(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Id(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Dd=e=>({key:e.key??null,value:e.value??null}),Rd=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?$d[e.statusCode]??null:null,u=(e.attrs??[]).map(Dd);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(Dd)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?vd[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)})},Ld=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 wd(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(..._d(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Rd(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"}}},Pd=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}},Ud=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=>Ud(e)))}else if("object"==typeof n&&null!==n){const e=Ud(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Md=(e,t=2)=>JSON.stringify(e||{},null,t),Fd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),zd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Bd=ri("v1.33"),jd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Hd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<Bd},Wd=ri("v1.20"),Xd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Wd},Gd=e=>e?jd.map(t=>e[t]??null):[],Vd={PID:"process.pid",VPID:"process.vpid"},Kd={[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"},Yd=[{id:wi.Go,label:Kd[wi.Go],icon:Ms(wi.Go)},{id:wi.Java,label:Kd[wi.Java],icon:Ms(wi.Java)},{id:wi.JavaScript,label:Kd[wi.JavaScript],icon:Ms(wi.JavaScript)},{id:wi.Python,label:Kd[wi.Python],icon:Ms(wi.Python)},{id:wi.Php,label:Kd[wi.Php],icon:Ms(wi.Php)},{id:wi.Ruby,label:Kd[wi.Ruby],icon:Ms(wi.Ruby)},{id:wi.Rust,label:Kd[wi.Rust],icon:Ms(wi.Rust)},{id:wi.DotNet,label:Kd[wi.DotNet],icon:Ms(wi.DotNet)},{id:wi.CSharp,label:Kd[wi.CSharp],icon:Ms(wi.CSharp)},{id:wi.CPlusPlus,label:Kd[wi.CPlusPlus],icon:Ms(wi.CPlusPlus)},{id:wi.Swift,label:Kd[wi.Swift],icon:Ms(wi.Swift)},{id:wi.Elixir,label:Kd[wi.Elixir],icon:Ms(wi.Elixir)}],Jd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},qd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Ms(wi.Go)},Jd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Ms(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Ms(wi.JavaScript)},Jd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Ms(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Ms(wi.Python)},Jd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Ms(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Ms(wi.Java)},Jd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Ms(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Ms(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Ms(wi.DotNet)},Jd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Ms(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Ms(wi.Ruby)},Jd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Ms(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Ms(wi.Php)},Jd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Ms(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Ms(wi.MySql)}]},[wi.CPlusPlus]:{community:[Jd],enterprise:[]},[wi.Rust]:{community:[Jd],enterprise:[]},[wi.Swift]:{community:[Jd],enterprise:[]},[wi.Elixir]:{community:[Jd],enterprise:[]},[wi.Nginx]:{community:[Jd],enterprise:[]},[wi.Postgres]:{community:[Jd],enterprise:[]},[wi.Redis]:{community:[Jd],enterprise:[]},[wi.Kafka]:{community:[Jd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Jd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},Qd="*",Zd=e=>!!e?.includes(Qd),ec=e=>e?.length?Zd(e)?[Qd]:e:[],tc=e=>{if(e?.length&&!Zd(e))return e.filter(e=>e!==Qd)},ic=e=>e===Qd?"All languages":Kd[e]??e,nc=e=>e===Qd?vt:Ms(e),rc=ri("v1.26"),oc=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=rc},ac=[Mi.NetworkMetrics],sc=e=>!ac.includes(e),lc=[{type:Mi.CodeAttributes,icon:qs(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:qs(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:qs(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:qs(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]}],dc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:qs(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},cc="Recommendations",uc="Optimize your observability setup with actionable recommendations.",pc="Recommended",hc="Applied",gc="Dismissed",mc="Not applicable",fc={[wn.Recommended]:pc,[wn.Applied]:hc,[wn.Dismissed]:gc,[wn.NotApplicable]:mc},bc="Accept",yc="Dismiss",vc="Restore",$c="Docs",wc="Benefits",Sc="Considerations",xc="Apply Recommendation",Cc="Apply via UI",Ec="Apply via GitOps",Tc="Via UI",Oc="Via GitOps",Nc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Ac="There are 2 ways to apply this recommendation.",kc="Odigos applies the selected change immediately.",Ic="Commit the configuration to your repository and let your GitOps controller apply it.",_c="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Dc="No recommendations",Rc="There are no recommendations for this cluster right now.",Lc="This recommendation does not currently apply to your cluster.",Pc="Recommendation dismissed",Uc="Recommendation restored",Mc="Recommendation applied successfully",Fc="Failed to apply recommendation",zc={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.'},Bc={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."},jc={[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."}},Hc="Cancel",Wc="Save",Xc="Edit rule",Gc="Edit auto rule",Vc="Create rule",Kc="Delete rule",Yc="Save",Jc="Create your first rule",qc="No Rules Exist",Qc="No Results",Zc=e=>`No rules match the search term "${e}"`,eu="Rule name",tu="Rule type",iu="Select the type of condition that makes a trace highly relevant.",nu="Rule Enabled",ru="Rule Disabled",ou="Enabled",au="Disabled",su="Note",lu="HTTP route",du="Method",cu="Keep Percentage",uu="Keep traces with duration larger than",pu="Keep traces with errors",hu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",gu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",mu="Custom percentage",fu="Disabled rule",bu="Sample",yu="Keep all",vu="Drop all",$u="Operation type",wu="HTTP route prefix",Su="Templated path",xu="Templated path prefix",Cu="Kafka topic",Eu="Custom duration (ms)",Tu="No preview available",Ou="Server address",Nu="Drop at most this percentage of matching traces",Au="Unnamed rule",ku="Sampling Preview",Iu="Source Scope",_u="Unknown source",Du="Operation",Ru="Duration",Lu="Errors",Pu="Keep Percentage",Uu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Mu="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.",Fu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",zu="Retain traces with errors from the selected services and operations.",Bu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",ju="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Hu={highlyRelevant:Bu,noisy:ju,costReduction:void 0},Wu="Type rule name",Xu="Add note here...",Gu="Type here",Vu="Search source name",Ku="e.g. collector.my.vendor.com",Yu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ju="Rule will apply to all sources in the cluster",qu="If multiple source scopes are set, they must all match simultaneously.",Qu="All sources",Zu="-",ep="All",tp="Sources",ip="Namespaces",np="Languages",rp="any of",op="AND",ap="All operations",sp="HTTP server endpoint",lp="HTTP client endpoint",dp="Kafka consumer",cp="Kafka producer",up="Sampling Rules",pp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',hp="Refresh",gp="Create rule",mp="Sampling docs",fp="75vw",bp="Delete rule?",yp="Are you sure you want to delete this sampling rule?",vp="Delete",$p="Cancel",wp="Kubernetes Health Probes",Sp="Keep All Error Traces",xp="Drop Traces Cluster-Wide",Cp="A rule with the same matching conditions already exists.",Ep="Create this rule as-is?",Tp="This rule still uses the default configuration.\nDo you want to create it anyway?",Op="Rule preview",Np="Continue editing",Ap="Create 'Noisy Operation Kubernetes Health Probes' rule",kp="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ip="Automatically detect and sample health probe traces across the cluster.",_p="Create 'Highly Relevant Operations' rule",Dp="Edit 'Highly Relevant Operations' rule",Rp="Automatically keep all error traces across the entire cluster.",Lp="Create 'Cost Reduction' rule",Pp="Edit 'Cost Reduction' rule",Up="Automatically drop a percentage of traces across the entire cluster.",Mp="Skip setup",Fp="Start setup",zp="Next",Bp="Go to Sampling",jp="Read more",Hp="Welcome to Sampling",Wp="Cut costs without losing what matters",Xp="Odigos sampling works in three stages:",Gp="Filter noisy traffic",Vp="Remove non-actionable traces like health checks.",Kp="Guarantee highly relevance operations",Yp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Jp="Reduce cost",qp="Sample routine traffic using percentages.",Qp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Zp="Filter noisy operations",eh="Cut traces with little or no observability value (health-checks, metric scarping, etc)",th="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.",ih="Preset Rules",nh="Kubernetes Health Probes",rh="Automatically ignore health checks",oh="You can review, adjust, and add additional custom rules later.",ah="Choose your sampling strategy",sh="Pick the approach that best fits your balance of cost vs data-completeness",lh="Keep List",dh="Budget Friendly",ch="Define which traces must be kept, while all others are sampled by default to minimize cost.",uh="Cost-oriented - keeps only what you explicitly select.",ph="Best for very large clusters with high volumes of traces and high costs.",hh="Higher risk of missing important traces without ongoing review.",gh="Drop List",mh="Safe Choice",fh="Define which traces must be aggressively dropped, while all others are kept by default.",bh="Preserves most data unless explicitly filtered.",yh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",vh="Advanced",$h="Maximum Flexibility",wh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Sh="'Keep List' profile",xh="Protect important traces",Ch="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:",Eh="Traces with errors",Th="Slow requests (duration above threshold)",Oh="Mission-Critical endpoints or services",Nh="Services under test or evaluation",Ah="New deployments",kh="You can review, adjust, and add rules once onboarding is complete.",Ih="Common Rules",_h="Preset Rules",Dh="Error collection - entire cluster",Rh="Keep all traces with errors",Lh="Ambient sampling percentage",Ph="'Drop List' profile",Uh="Reduce high-volume traffic",Mh="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.",Fh="Advanced Configuration",zh="Configure sampling rules",Bh="Advanced mode allows you to configure all sampling categories:",jh="Noise Filtering - remove non-actionable traces",Hh="Highly Relevance - guarantee important traces are kept",Wh='Cost Control - drop traces for "Normal" operations',Xh="Rules can target:",Gh="Services",Vh="HTTP Endpoints",Kh="DB Operations",Yh="Errors",Jh="Latency and more...",qh="Sampling configured successfully!",Qh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Zh="Odigos will now:",eg="Filter noisy operations",tg="Guarantee important traces",ig="Reduce cost using controlled sampling",ng="Recommended",rg={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."},og={noisy:Ap,highlyRelevant:_p,costReduction:Lp},ag={noisy:kp,highlyRelevant:Dp,costReduction:Pp},sg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},lg=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],dg=6048e5,cg="URL templatization",ug="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",pg="Default templatization",hg="Custom and default URL templatization scopes across URL templatization actions.",gg="Default templatization is not enabled",mg="Automatically detect and templatize dynamic URL segments when no custom template matches.",fg="Enable for entire cluster",bg="Custom URL templates",yg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",vg="View by:",$g="Groups",wg="Tree",Sg="List",xg="Create templating scope",Cg="Edit scoped templates",Eg="Edit",Tg="Add template",Og="Add templatization rules",Ng="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Ag="Add templatization rule",kg="Choose how to templatize dynamic URLs",Ig="Reduce route cardinality by replacing changing path segments with reusable placeholders.",_g="Before",Dg="After",Rg="/users/123/orders/456",Lg="/users/{id}/orders/{orderId}",Pg="Automatic templatization",Ug="Recommended",Mg="Detect and templatize dynamic URL segments when no custom rule matches.",Fg="Applies to: Entire cluster",zg="Reversible at any time",Bg="Enabled",jg="Need more control?",Hg="Create a custom rule for specific URL patterns.",Wg="Create custom rule",Xg="Learn how it works",Gg="Docs",Vg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Kg="Default templatization is enabled — editor coming next.",Yg="746px",Jg="Add default templatization rule",qg="Edit default templatization rule",Qg="Disable for a scope",Zg="UI template rules",em="Source Scope",tm="Scope",im="Choose which sources this template rule applies to.",nm="Sources where this template is tested and applied.",rm="This rule will apply to all sources in the cluster.",om="Default templatization",am="Automatically templatize dynamic URL segments when no custom template matches.",sm="Enable automatic URL templatization for this scope",lm=["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."],dm="default templatization for this scope",cm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",um="Disable",pm="Skip policy",hm="Advanced",gm=["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."],mm=gm.join(" "),fm="Skip default templatization for all non-2xx responses",bm="Skip default templatization for specific HTTP status codes",ym="Example: 404, 401",vm="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",$m="This rule will take effect in the cluster immediately after it is added.",wm="This rule will take effect in the cluster immediately after it is saved.",Sm="No template changes. Save will keep the current templates.";function xm(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.`:Sm}const Cm="Add rule",Em="Save",Tm="Cancel",Om="Cancel without saving",Nm="Delete",Am="templating scope";function km(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 Im="Enter valid HTTP status codes between 100 and 599, separated by commas.",_m="Create custom template",Dm="Create new scoped template",Rm="Add URL templates",Lm="UI template rules",Pm=e=>`To ${e}`,Um=e=>`Applies to ${e} source${1===e?"":"s"}`,Mm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Fm=e=>`Applies to ${e} language${1===e?"":"s"}`,zm="Applies to entire cluster",Bm=e=>`Applies to ${e} scope${1===e?"":"s"}`,jm="Where should this rule apply?",Hm=jm,Wm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Xm="Specific scope",Gm="Entire cluster",Vm="Apply the rule only where it is needed.",Km="Apply to every source in this cluster.",Ym="Quick start",Jm="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",qm="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.",Zm="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.",ef="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.",tf="Add to existing template group",nf="Create new template group",rf="Add here",of="Create New",af="Existing templating scope",sf="Templating scopes",lf="Select where to add the new template",df="A template group already uses this scope",cf="Choose where to add the new templates.",uf="Add to existing template group",pf="Create a separate template group",hf="Use different settings or behavior for the same scope.",gf="View action settings",mf="Default settings",ff=e=>af,bf=e=>1===e?"1 template":`${e} templates`,yf="Templating scope",vf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,$f="Template group will be added to the default action. Expand Select action to choose a different one.",wf="Select action",Sf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",xf="Advanced settings",Cf="Default UI-managed action · Recommended",Ef="Create a new action",Tf="Select action",Of="Default UI-managed action",Nf="Add this template group to the default UI-managed action.",Af="Select action",kf="Choose an existing action or create a new one for this template group.",If="Search template group by type action name or scope (languages, namespaces, sources)",_f="Selected Template group:",Df="URL templatization action",Rf="Create new action",Lf="__odigos_create_new_url_templatization_action__",Pf=kf,Uf="New action name",Mf="New action group",Ff="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.",zf="Create new template group",Bf="Next",jf="Back",Hf="Action name",Wf="Action",Xf="UI template rules",Gf="__odigos_default_url_templatization_action__",Vf="UI-owned",Kf="Externally synced",Yf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Jf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],qf=Vf,Qf="Templates",Zf="Other templates in this group",eb="Additional templates that share the same source scope and Action as this rule.",tb="e.g. /api/users/{id}",ib="Language",nb="Namespace",rb="Source",ob="AND",ab="Entire cluster",sb="Unset",lb="Enabled globally",db="Default templating disabled",cb="Enabled",ub="Default templatization is unset. No default rules are configured on an enabled action.",pb="Default templatization is enabled globally.",hb="Default templatization is disabled for the entire cluster.";function gb(e){return e<=0?pb:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const mb="Disabled for these scopes",fb="Disable for a scope",bb="Delete",yb="disabled scope",vb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",$b="Automatic templatization",wb="Active",Sb="Custom and default URL templatization scopes across URL templatization actions.",xb="Custom templates take precedence over automatic templatization.",Cb="Scope",Eb="Status codes",Tb="Disabled",Ob="Entire cluster",Nb="All",Ab="None",kb="Disabled",Ib="No disabled scope configured",_b="Add disabled",Db="Disabled scopes",Rb="Advanced",Lb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Pb="Automatic templatization off for matching traffic.",Ub="Disable for a scope",Mb="Scope",Fb="Effective behavior",zb="Status",Bb="Automatic templatization off",jb="Covered by broader exception",Hb="Disabled",Wb="Redundant",Xb="No disabled scope configured",Gb="Disable automatic templatization for specific scopes when needed.",Vb=(e,t)=>`${e} configured • ${t} effective`,Kb=e=>1===e?"1 scope":`${e} scopes`,Yb="Default templatization is enabled for all HTTP status codes.";function Jb(e){return e<=0?Yb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const qb="HTTP status code policies",Qb="No skip policy configured",Zb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",ey="Add skip policy for a scope",ty="Add skip policy for a scope",iy="Skip default templatization on HTTP errors",ny="Delete",ry="skip policy",oy="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",ay="Template details",sy="Template",ly="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",dy="Created via",cy="Action name",uy="Kubernetes name",py="Odigos Action (Kubernetes resource) where this template is managed.",hy="Try a URL",gy="/users/12/orders/345685335358",my="Test URL",fy="Close",by="Result",yy="Templated URL path",vy="Match found",$y="This URL matches the template.",wy="No match",Sy="This URL doesn't match the template.",xy="Check the URL structure and parameter positions, then try again.",Cy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ya},Ey=Ft(e=>({...Cy,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(Cy)}));var Ty;(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"})(Ty||(Ty={}));const Oy=e=>`add-${za(e).replaceAll(" ","-").toLowerCase()}`,Ny=e=>`edit-${za(e).replaceAll(" ","-").toLowerCase()}`,Ay=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),ky=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Iy=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:ky})),_y=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 Dy;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Dy||(Dy={}));const Ry=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ly=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Py=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Ry();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]:Ly(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Ry(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]:Ly(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Uy=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),My={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Fy=(e,t)=>e.destinationType.type!==t.destinationType.type,zy=Ft(e=>({...My,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=>Fy(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=>Fy(e,t))})),clearStore:()=>e(()=>({...My}))})),By=e=>{function t(){return void 0===e?{}:$s(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)=>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}},jy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Hy=()=>{const{addNotification:e}=_y(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=By(jy);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":rd(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(jy),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)}}},Wy=e=>{Wt(()=>{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 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}},Gy="data-ignore-outside-click",Vy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Gy))return!0;t=t.parentNode}return!1},Ky=(e,t)=>{const i=Vt(t);i.current=t,Wt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Vy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Yy=({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 Ky(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})}}},Jy=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
|
+
`,qy=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
|
+
`,Zy=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
|
+
`,ev=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
|
+
`,tv=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
|
+
`,iv=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:d,fullWidth:c=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=o(),f=Gt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),b=f.join(" "),{popupRef:y,popupOpen:v,setPopupOpen:$,popupPosition:w,arrowPlacement:S,handlePosition:x}=Yy({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),C=Gt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),E=e=>{const{type:t,clientX:i,clientY:n}=e;C?x(w.left||i,w.top||n):x(i,n),$("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:d});const T=v&&f.length>0;return e(Jy,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&Qt.createPortal(e(qy,{ref:y,$top:w.top,$left:w.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(ev,{$align:S.align,children:t(tv,{$pointsUp:!0})}),t(Qy,{$maxWidth:p,children:e(Zy,{children:[(!!r||!!a)&&e(_l,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Va,{size:ja.XS,children:a},"title")]}),f.map((e,i)=>t(Va,{size:ja.XXXS,children:e},i)),!!l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(ev,{$align:S.align,children:t(tv,{$pointsUp:!1})})]}),document.body)]})};var nv,rv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(nv||(nv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(rv||(rv={}));const ov=n.button`
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
justify-content: ${({$align:e})=>e};
|
|
@@ -260,26 +260,26 @@ 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===
|
|
264
|
-
height:
|
|
263
|
+
${({$size:e,$hasLabel:t})=>e===rv.S?r`
|
|
264
|
+
height: 24px;
|
|
265
265
|
${t?r`
|
|
266
266
|
padding: 8px 16px;
|
|
267
267
|
`:r`
|
|
268
|
-
width:
|
|
268
|
+
width: 24px;
|
|
269
269
|
`}
|
|
270
|
-
`:e===
|
|
271
|
-
height:
|
|
270
|
+
`:e===rv.M?r`
|
|
271
|
+
height: 32px;
|
|
272
272
|
${t?r`
|
|
273
273
|
padding: 8px 18px;
|
|
274
274
|
`:r`
|
|
275
|
-
width:
|
|
275
|
+
width: 32px;
|
|
276
276
|
`}
|
|
277
277
|
`:r`
|
|
278
|
-
height:
|
|
278
|
+
height: 42px;
|
|
279
279
|
${t?r`
|
|
280
280
|
padding: 8px 22px;
|
|
281
281
|
`:r`
|
|
282
|
-
width:
|
|
282
|
+
width: 42px;
|
|
283
283
|
`}
|
|
284
284
|
`}
|
|
285
285
|
|
|
@@ -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===nv.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===nv.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===nv.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,13 +318,13 @@ 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
|
-
`,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`
|
|
321
|
+
`,av=Bt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=nv.Primary,size:u=rv.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===rv.L?34:u===rv.M?24:16),E=u===rv.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=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(ov,{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(iv,{text:a,withIcon:!s,fullWidth:!0,children:A?t(Wl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Rl,{$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(Rl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});av.displayName=av.name;const sv=({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(av,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:nv.Secondary,size:rv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},lv=e=>{const{addNotification:t}=_y(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=By(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?od(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)}}},dv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},cv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=_y(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=By(dv),[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=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]),Wt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Wt(()=>{if(t&&0===hd(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(dv),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}},uv={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},pv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=By(uv);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(uv),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)}}},hv=({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),gv=(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},mv=(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},fv=({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 bv,yv;(e=>{e.Left="left",e.Right="right"})(bv||(bv={})),(e=>{e.Top="top",e.Bottom="bottom"})(yv||(yv={}));const vv=({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||bv.Left,y:r||yv.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)||Vy(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===yv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===yv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===bv.Left?i.left:void 0,right:e===bv.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?bv.Right:bv.Left),y:r||(e.clientY>window.innerHeight/2?yv.Top:yv.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:$}},$v=()=>({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)}}),wv={otelServiceName:"",currentStreamName:""},Sv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=By(wv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...$s(wv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const xv=new Jt(qt.locale),Cv=[{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"}],Ev=(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 Cv){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},Tv=(e,t)=>Ev(6e4*Math.max(0,e),t),Ov=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Nv=()=>{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 xv.format(Ov(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Ov(e);return Ev(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Av,kv;(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"})(Av||(Av={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(kv||(kv={}));const Iv=(e,t,i)=>{switch(t){case Av.Purple:return e.v2.colors.purple[i?"300":"900"];case Av.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Av.Blue:return e.v2.colors.blue[i?"300":"1000"];case Av.Pink:return e.v2.colors.pink[i?"500":"1000"];case Av.Red:return e.v2.colors.red[i?"300":"900"];case Av.Green:return e.v2.colors.green[i?"300":"900"];case Av.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},_v=n.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: center;
|
|
325
|
-
gap: ${({$size:e})=>e===
|
|
326
|
-
padding: ${({$size:e})=>e===
|
|
327
|
-
border-radius: ${({$size:e})=>e===
|
|
325
|
+
gap: ${({$size:e})=>e===kv.Small?2:e===kv.Medium?4:8}px;
|
|
326
|
+
padding: ${({$size:e})=>e===kv.Small?"2px 4px":e===kv.Medium?"4px 6px":"4px 8px"};
|
|
327
|
+
border-radius: ${({$size:e})=>e===kv.Small?4:6}px;
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
|
|
330
330
|
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
@@ -337,16 +337,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
337
337
|
${({$disabled:e,$variant:t,$withClick:i})=>e?r`
|
|
338
338
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
339
339
|
`:r`
|
|
340
|
-
background-color: ${({theme:e})=>
|
|
340
|
+
background-color: ${({theme:e})=>Iv(e,t)};
|
|
341
341
|
${i&&r`
|
|
342
342
|
cursor: pointer;
|
|
343
343
|
&:hover,
|
|
344
344
|
&:active {
|
|
345
|
-
border: 1px solid ${({theme:e})=>
|
|
345
|
+
border: 1px solid ${({theme:e})=>Iv(e,t,!0)};
|
|
346
346
|
}
|
|
347
347
|
`}
|
|
348
348
|
`}
|
|
349
|
-
`,
|
|
349
|
+
`,Dv=({variant:i=Av.Default,size:n=kv.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===Av.Default?p.v2.colors.white[500]:Iv(p,i,!0),g=n===kv.Small?ja.XXXS:n===kv.Medium?ja.XXS:ja.S,m=n===kv.Small?10:n===kv.Medium?12:16,f=i===Av.Loader;return e(_v,{$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(Wl,{withGradient:!0,title:r,titleSize:g}):t(Va,{color:h,size:g,nowrap:!0,children:r}),s&&t(s,{fill:h,size:m})]})},Rv=n.div`
|
|
350
350
|
display: flex;
|
|
351
351
|
align-items: center;
|
|
352
352
|
justify-content: center;
|
|
@@ -356,9 +356,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
356
356
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
357
357
|
border-radius: 100px;
|
|
358
358
|
background-color: ${({$backgroundColor:e})=>e};
|
|
359
|
-
`,
|
|
359
|
+
`,Lv=({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)?dl(m,s,d?"400":"700"):[Oi.Unknown].includes(s)?dl(m,s,"600"):dl(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(iv,{text:a,fullWidth:g,children:e(Rv,{$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(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(Wl,{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})]})})},Pv=n.div`
|
|
360
360
|
position: relative;
|
|
361
|
-
`,
|
|
361
|
+
`,Uv=n.div`
|
|
362
362
|
position: fixed;
|
|
363
363
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
364
364
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -376,7 +376,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
376
376
|
border-radius: 6px;
|
|
377
377
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
378
378
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
379
|
-
`,
|
|
379
|
+
`,Mv=({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}=vv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(Pv,{ref:h,onMouseDown:m,children:[t(av,{label:"Open",variant:nv.Secondary,size:rv.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Zt(t(Uv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Fv={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"}},zv={v2:Fv.v2,darkMode:!0,colors:{...Fv.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:Fv.font_family},Bv={v2:Fv.v2,darkMode:!1,colors:{...Fv.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:Fv.font_family},jv=e=>e?zv:Bv,Hv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Fv,darkModeTheme:zv,getTheme:jv,lightModeTheme:Bv},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 Wv=({children:e})=>t(s,{theme:jv(!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"},Gv=Object.freeze(Object.defineProperty({__proto__:null,hex:Xv},Symbol.toStringTag,{value:"Module"})),Vv={in:{left:a`
|
|
380
380
|
from { transform: translateX(-100%); }
|
|
381
381
|
to { transform: translateX(0); }
|
|
382
382
|
`,right:a`
|
|
@@ -406,7 +406,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
406
406
|
`,center:a`
|
|
407
407
|
from { transform: translate(-50%, -50%); }
|
|
408
408
|
to { transform: translate(-50%, 100%); }
|
|
409
|
-
`}},
|
|
409
|
+
`}},Kv={in:a`
|
|
410
410
|
from {
|
|
411
411
|
width: 0%;
|
|
412
412
|
}
|
|
@@ -420,7 +420,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
420
420
|
to {
|
|
421
421
|
width: 0%;
|
|
422
422
|
}
|
|
423
|
-
`},
|
|
423
|
+
`},Yv=a`
|
|
424
424
|
0% {
|
|
425
425
|
transform: scale(1);
|
|
426
426
|
opacity: 1;
|
|
@@ -429,14 +429,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
429
429
|
transform: scale(2);
|
|
430
430
|
opacity: 0;
|
|
431
431
|
}
|
|
432
|
-
`,
|
|
432
|
+
`,Jv=a`
|
|
433
433
|
0% {
|
|
434
434
|
background-position: -500px 0;
|
|
435
435
|
}
|
|
436
436
|
100% {
|
|
437
437
|
background-position: 500px 0;
|
|
438
438
|
}
|
|
439
|
-
`,
|
|
439
|
+
`,qv={in:a`
|
|
440
440
|
from {
|
|
441
441
|
opacity: 0;
|
|
442
442
|
}
|
|
@@ -450,7 +450,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
450
450
|
to {
|
|
451
451
|
opacity: 0;
|
|
452
452
|
}
|
|
453
|
-
`},
|
|
453
|
+
`},Qv=Object.freeze(Object.defineProperty({__proto__:null,fade:qv,ping:Yv,progress:Kv,shimmer:Jv,slide:Vv},Symbol.toStringTag,{value:"Module"}));var Zv,e$;(e=>{e.S="s",e.L="l"})(Zv||(Zv={})),(e=>{e.Filled="filled",e.Underline="underline"})(e$||(e$={}));const t$=n.div`
|
|
454
454
|
display: flex;
|
|
455
455
|
align-items: center;
|
|
456
456
|
gap: 2px;
|
|
@@ -458,13 +458,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
458
458
|
border-radius: 6px;
|
|
459
459
|
border: none;
|
|
460
460
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
461
|
-
`,
|
|
461
|
+
`,i$=n.button`
|
|
462
462
|
flex: 1;
|
|
463
463
|
display: flex;
|
|
464
464
|
align-items: center;
|
|
465
465
|
justify-content: center;
|
|
466
|
-
gap: ${({$size:e})=>e===
|
|
467
|
-
padding: ${({$size:e})=>e===
|
|
466
|
+
gap: ${({$size:e})=>e===Zv.S?"4px":"8px"};
|
|
467
|
+
padding: ${({$size:e})=>e===Zv.S?"4px 6px":"8px 12px"};
|
|
468
468
|
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
469
469
|
border: 1px solid transparent;
|
|
470
470
|
|
|
@@ -485,11 +485,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
485
485
|
background-color: ${o.v2.colors.silver[600]};
|
|
486
486
|
}
|
|
487
487
|
`}
|
|
488
|
-
`,
|
|
488
|
+
`,n$=n.div`
|
|
489
489
|
display: flex;
|
|
490
490
|
align-items: stretch;
|
|
491
491
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
492
|
-
`,
|
|
492
|
+
`,r$=n.button`
|
|
493
493
|
display: flex;
|
|
494
494
|
height: 34px;
|
|
495
495
|
padding: 8px 12px 8px 16px;
|
|
@@ -508,7 +508,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
508
508
|
&:hover {
|
|
509
509
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
510
510
|
}
|
|
511
|
-
`,
|
|
511
|
+
`,o$=({"data-id":n,size:r=Zv.S,variant:a=e$.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===e$.Underline,g=h?r$:i$;return t(h?n$:t$,{"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===Zv.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(Lv,{...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(iv,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},a$=n.div`
|
|
512
512
|
box-sizing: border-box !important;
|
|
513
513
|
width: ${({$width:e})=>e??"fit-content"};
|
|
514
514
|
flex-shrink: ${({$width:e})=>e?0:1};
|
|
@@ -524,7 +524,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
524
524
|
border: none;
|
|
525
525
|
border-radius: 6px;
|
|
526
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}};
|
|
527
|
-
`,
|
|
527
|
+
`,s$=n.input`
|
|
528
528
|
min-width: 0;
|
|
529
529
|
flex: 1;
|
|
530
530
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -541,7 +541,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
541
541
|
overflow: hidden;
|
|
542
542
|
text-overflow: ellipsis;
|
|
543
543
|
white-space: nowrap;
|
|
544
|
-
`,
|
|
544
|
+
`,l$=({"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(a$,{$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(s$,{"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(o$,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},d$=n.div`
|
|
545
545
|
display: flex;
|
|
546
546
|
align-items: center;
|
|
547
547
|
justify-content: center;
|
|
@@ -550,41 +550,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
550
550
|
padding: 8px;
|
|
551
551
|
border-radius: 100%;
|
|
552
552
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
553
|
-
`,
|
|
553
|
+
`,c$=({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(Dl,{$gap:12,$alignItems:"center",children:[e(Dl,{$gap:4,$alignItems:"center",children:[!n&&t(d$,{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(av,{variant:nv.Secondary,...s}),l]})},u$=n.span`
|
|
554
554
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
555
555
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
556
556
|
font-weight: 400;
|
|
557
557
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
558
|
-
`,
|
|
558
|
+
`,p$=n.span`
|
|
559
559
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
560
560
|
font-size: 14px;
|
|
561
561
|
font-weight: 400;
|
|
562
562
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
563
|
-
`,
|
|
563
|
+
`,h$=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(_l,{$width:a,$justifyContent:"space-between",children:[i&&t(u$,{$smallAndDark:s,children:i}),e(_l,{$gap:4,children:[o&&t(Lv,{...o,textSize:ja.XXXS}),r&&t(p$,{children:"*"}),n&&t(iv,{text:n,withIcon:!0})]})]}):null,g$=({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(_l,{$alignItems:"center",children:[l&&t(Dl,{children:l}),t(Va,{size:ja.XXXS,weight:400,color:s,children:i||n||r})]}):null};var m$;(e=>{e.S="small",e.L="large"})(m$||(m$={}));const f$=n.div`
|
|
564
564
|
width: fit-content;
|
|
565
565
|
display: flex;
|
|
566
566
|
align-items: center;
|
|
567
567
|
gap: 8px;
|
|
568
568
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
569
|
-
`,
|
|
570
|
-
width: ${({$size:e})=>e===
|
|
571
|
-
height: ${({$size:e})=>e===
|
|
569
|
+
`,b$=n.div`
|
|
570
|
+
width: ${({$size:e})=>e===m$.S?"16px":"20px"};
|
|
571
|
+
height: ${({$size:e})=>e===m$.S?"16px":"20px"};
|
|
572
572
|
display: flex;
|
|
573
573
|
align-items: center;
|
|
574
574
|
justify-content: center;
|
|
575
575
|
border-radius: 4px;
|
|
576
576
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
577
577
|
background-color: ${({$backgroundColor:e})=>e};
|
|
578
|
-
`,
|
|
578
|
+
`,y$=({name:i,label:n,tooltip:r,badge:a,size:s=m$.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===m$.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(Dl,{$gap:4,children:[e(_l,{$justifyContent:"space-between",children:[e(f$,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(b$,{$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===m$.S?ja.XXS:ja.XS,nowrap:!0,children:n})]}),t(h$,{tooltip:r,badge:a})]}),t(g$,{errorMessage:p,warnMessage:h,helpMessage:g})]})},v$=n.div`
|
|
579
579
|
display: flex;
|
|
580
580
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
581
581
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
582
|
-
|
|
582
|
+
`,$$=({direction:i=mi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===m$.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(v$,{$direction:i,children:[n&&a?t(y$,{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(y$,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},w$=n.div`
|
|
583
583
|
position: relative;
|
|
584
584
|
display: flex;
|
|
585
585
|
flex-direction: column;
|
|
586
586
|
gap: 4px;
|
|
587
|
-
`,
|
|
587
|
+
`,S$=n.div`
|
|
588
588
|
position: fixed;
|
|
589
589
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
590
590
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -602,7 +602,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
602
602
|
border-radius: 6px;
|
|
603
603
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
604
604
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
605
|
-
`,
|
|
605
|
+
`,x$=n.div`
|
|
606
606
|
display: flex;
|
|
607
607
|
flex-direction: column;
|
|
608
608
|
gap: 0;
|
|
@@ -610,7 +610,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
610
610
|
width: 100%;
|
|
611
611
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
612
612
|
overflow-y: auto;
|
|
613
|
-
`,
|
|
613
|
+
`,C$=n.div`
|
|
614
614
|
display: flex;
|
|
615
615
|
align-items: center;
|
|
616
616
|
gap: 8px;
|
|
@@ -626,19 +626,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
626
626
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
627
627
|
}
|
|
628
628
|
`}
|
|
629
|
-
`,
|
|
629
|
+
`,E$=n.div`
|
|
630
630
|
display: flex;
|
|
631
631
|
align-items: center;
|
|
632
632
|
gap: 8px;
|
|
633
633
|
flex: 1;
|
|
634
634
|
min-width: 0;
|
|
635
|
-
`,
|
|
635
|
+
`,T$=n.div`
|
|
636
636
|
flex: 0 1 auto;
|
|
637
637
|
min-width: 0;
|
|
638
638
|
overflow: hidden;
|
|
639
639
|
text-overflow: ellipsis;
|
|
640
640
|
white-space: nowrap;
|
|
641
|
-
`,
|
|
641
|
+
`,O$=n.span`
|
|
642
642
|
flex-shrink: 0;
|
|
643
643
|
width: 88px;
|
|
644
644
|
display: inline-flex;
|
|
@@ -647,14 +647,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
647
647
|
border-radius: 4px;
|
|
648
648
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
649
649
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
650
|
-
`,
|
|
650
|
+
`,N$=n.div`
|
|
651
651
|
flex-shrink: 0;
|
|
652
652
|
display: inline-flex;
|
|
653
653
|
align-items: center;
|
|
654
654
|
gap: 4px;
|
|
655
|
-
`,
|
|
655
|
+
`,A$=({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}=vv({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(w$,{ref:T,onMouseDown:N,children:[u&&t(h$,{label:u}),f&&t(av,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(av,{variant:nv.Text,size:rv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Et,handleClick:O}):$,x&&Zt(e(S$,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(l$,{value:k,onChange:I,width:"100%"}),y?t(Wl,{withSpinner:!0,title:"Loading...",titleSize:ja.XS}):_.length?t(x$,{$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(C$,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(y$,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(O$,{children:t(Va,{size:ja.XXS,nowrap:!0,color:Ha.Secondary,children:s})}),e(E$,{children:[t(T$,{children:t(Va,{size:ja.XS,nowrap:!0,color:i.color||Ha.Primary,children:r})}),l&&e(N$,{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(Il,{$padding:"6px 0",children:t(c$,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!_.length&&t(av,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var k$;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(k$||(k$={}));const I$=({onAnyClick:e,actions:i})=>t(_l,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case k$.Button:return t(av,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case k$.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(A$,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case k$.PopupButton:return t(Mv,{buttonProps:{label:"Open",variant:nv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),_$=n(_l)`
|
|
656
656
|
min-width: 0;
|
|
657
|
-
`,
|
|
657
|
+
`,D$=n.div`
|
|
658
658
|
display: flex;
|
|
659
659
|
flex-shrink: 0;
|
|
660
660
|
align-items: center;
|
|
@@ -662,11 +662,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
662
662
|
padding: 8px;
|
|
663
663
|
border-radius: 8px;
|
|
664
664
|
background-color: ${({theme:e})=>e.v2.colors.white[500]+Xv["004"]};
|
|
665
|
-
`,
|
|
665
|
+
`,R$=n(Dl)`
|
|
666
666
|
flex: 1;
|
|
667
667
|
min-width: 0;
|
|
668
668
|
overflow: hidden;
|
|
669
|
-
`,
|
|
669
|
+
`,L$=({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:$}=sv();return e(_$,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(D$,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(R$,{$gap:b,children:[r||m?e(_l,{$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(iv,{text:h,withIcon:!0}),m&&t(Lv,{...m})]}):null,d&&t(Va,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(_l,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},P$=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Vt(null),a=!!r.maxLines&&r.maxLines>0,s=gv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(iv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Va,{ref:o,...r,children:e})})},U$=n.section`
|
|
670
670
|
display: flex;
|
|
671
671
|
flex-direction: column;
|
|
672
672
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -694,38 +694,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
694
694
|
${({$overflow:e})=>e&&r`
|
|
695
695
|
overflow: ${e};
|
|
696
696
|
`}
|
|
697
|
-
`,
|
|
697
|
+
`,M$=n(_l)`
|
|
698
698
|
width: 100%;
|
|
699
699
|
min-width: 0;
|
|
700
700
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
701
701
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
702
|
-
`,
|
|
702
|
+
`,F$=n(_l)`
|
|
703
703
|
flex-shrink: 0;
|
|
704
|
-
`,
|
|
704
|
+
`,z$=n.div`
|
|
705
705
|
display: flex;
|
|
706
706
|
align-items: flex-start;
|
|
707
707
|
flex-wrap: wrap;
|
|
708
708
|
width: 100%;
|
|
709
|
-
`,
|
|
709
|
+
`,B$=n.div`
|
|
710
710
|
${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
|
|
711
711
|
margin: 8px;
|
|
712
712
|
display: flex;
|
|
713
713
|
flex-direction: column;
|
|
714
714
|
gap: 4px;
|
|
715
715
|
min-width: 0;
|
|
716
|
-
`,
|
|
716
|
+
`,j$=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=sv(),{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(B$,{$cellsPerRow:n,children:[!!a&&t(iv,{text:s,children:t(P$,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:a})}),e(_l,{$gap:4,children:[u&&t(Lv,{...u}),p&&t(Dv,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(iv,{text:d,children:t(P$,{size:ja.XS,nowrap:!0,children:l})})]})]})},H$=({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(U$,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(M$,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:()=>{l&&w()},children:[s?t(L$,{...s}):t("div",{}),e(F$,{$gap:12,onClick:e=>{e.stopPropagation()},children:[h,x&&S&&t(I$,{actions:u}),E&&t(_l,{$gap:8,children:c.map((e,t)=>Yt(Lv,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(_l,{$gap:2,children:[C&&t(A$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(av,{variant:nv.Text,size:rv.S,leftIcon:v?Ct:Et,onClick:w})]})]})]}),S&&m?t(z$,{children:m.map(e=>t(j$,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var W$;(e=>{e.S="small",e.M="medium"})(W$||(W$={}));const X$=n(_l)`
|
|
717
717
|
flex: 1;
|
|
718
718
|
min-width: 0;
|
|
719
719
|
align-items: center;
|
|
720
|
-
`,
|
|
720
|
+
`,G$=n.div`
|
|
721
721
|
flex-shrink: 1;
|
|
722
722
|
min-width: 0;
|
|
723
|
-
|
|
724
|
-
|
|
723
|
+
/* Clip static rich titles for ellipsis; leave custom titles unclipped so
|
|
724
|
+
dropdowns/popovers (e.g. DataStreamSelect) can escape the header row. */
|
|
725
|
+
overflow: ${({$clip:e})=>e?"hidden":"visible"};
|
|
726
|
+
`,V$=n.div`
|
|
725
727
|
display: flex;
|
|
726
728
|
flex-direction: column;
|
|
729
|
+
gap: 12px;
|
|
727
730
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
728
|
-
`,
|
|
731
|
+
`,K$=n.div`
|
|
729
732
|
display: flex;
|
|
730
733
|
flex-direction: column;
|
|
731
734
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -736,7 +739,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
736
739
|
border-radius: 16px;
|
|
737
740
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
|
|
738
741
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
739
|
-
`,
|
|
742
|
+
`,Y$=Bt(({id:i,size:n=W$.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===W$.S?4:16,b="number"==typeof h?h:n===W$.S?12:16,y=a??(o?t(L$,{...o}):null),v=l??(s?t(l$,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(K$,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(_l,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(X$,{$gap:f,children:[y?t(G$,{$clip:!a,children:y}):null,v,d]}):null,w&&t(I$,{actions:c??[]})]}):null,t(V$,{$fullHeight:r,children:u})]})});Y$.displayName="SectionCard";const J$=n.div`
|
|
740
743
|
flex: 1;
|
|
741
744
|
align-self: stretch;
|
|
742
745
|
display: flex;
|
|
@@ -744,8 +747,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
744
747
|
gap: 8px;
|
|
745
748
|
padding: 16px;
|
|
746
749
|
border-radius: 12px;
|
|
747
|
-
background-color: ${({theme:e,$status:t})=>
|
|
748
|
-
`,
|
|
750
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,t===Oi.Unknown?"750":"500")};
|
|
751
|
+
`,q$=n.div`
|
|
749
752
|
display: flex;
|
|
750
753
|
align-items: center;
|
|
751
754
|
justify-content: center;
|
|
@@ -753,8 +756,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
753
756
|
height: fit-content;
|
|
754
757
|
padding: 8px;
|
|
755
758
|
border-radius: 12px;
|
|
756
|
-
background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?
|
|
757
|
-
`,
|
|
759
|
+
background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?dl(e,t,"800"):dl(e,t,"900")+Xv["015"]};
|
|
760
|
+
`,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(J$,{$status:i,children:[t(q$,{$status:i,children:t(l,{size:32,fill:d})}),e(Dl,{$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})]})]})},Z$=n.div`
|
|
758
761
|
flex: 0.5;
|
|
759
762
|
display: flex;
|
|
760
763
|
flex-direction: column;
|
|
@@ -762,7 +765,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
762
765
|
padding: 12px;
|
|
763
766
|
border-radius: 12px;
|
|
764
767
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
765
|
-
`,
|
|
768
|
+
`,ew=["-","N/A","undefined","null","undefined/undefined","null/null"],tw=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(Z$,{$bgTint:a,children:[t(iv,{text:n,children:t(Va,{nowrap:!0,size:ja.XXS,color:s.v2.colors.grey[150],children:i})}),t(_l,{$gap:32,children:r.map((n,r)=>e(Dl,{$gap:2,children:[!n.isLoading||n.value&&!ew.includes(n.value)?t(Va,{nowrap:!0,size:n.label?ja.M:ja.L,children:n.value}):t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Va,{nowrap:!0,size:ja.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},iw=n.div`
|
|
766
769
|
padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
|
|
767
770
|
|
|
768
771
|
display: flex;
|
|
@@ -775,7 +778,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
775
778
|
width: 100%;
|
|
776
779
|
box-sizing: border-box;
|
|
777
780
|
`}
|
|
778
|
-
cursor: ${({$clickable:e,$disabled:t,$
|
|
781
|
+
cursor: ${({$clickable:e,$disabled:t,$readOnly:i})=>t?"not-allowed":i?e?"pointer":"default":"text"};
|
|
779
782
|
|
|
780
783
|
border: 1px solid
|
|
781
784
|
${({theme:e,$disabled:t,$error:i})=>t?e.v2.colors.grey[600]:i?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
@@ -793,25 +796,25 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
793
796
|
outline-offset: 1px;
|
|
794
797
|
}
|
|
795
798
|
`}
|
|
796
|
-
`,
|
|
799
|
+
`,nw=n.div`
|
|
797
800
|
flex: 1;
|
|
798
801
|
min-width: 0;
|
|
799
802
|
display: flex;
|
|
800
803
|
align-items: center;
|
|
801
804
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
802
|
-
`,
|
|
805
|
+
`,rw=n.span`
|
|
803
806
|
flex-shrink: 0;
|
|
804
807
|
width: 1px;
|
|
805
808
|
align-self: stretch;
|
|
806
809
|
background: ${({theme:e,$disabled:t,$error:i})=>i?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
|
|
807
|
-
`,
|
|
810
|
+
`,ow=n.span`
|
|
808
811
|
flex-shrink: 0;
|
|
809
812
|
display: flex;
|
|
810
813
|
align-items: center;
|
|
811
814
|
justify-content: flex-start;
|
|
812
815
|
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
813
816
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
814
|
-
`,
|
|
817
|
+
`,aw=n.input`
|
|
815
818
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
816
819
|
width: ${({$width:e})=>e||"unset"};
|
|
817
820
|
|
|
@@ -849,12 +852,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
849
852
|
pointer-events: none;
|
|
850
853
|
user-select: none;
|
|
851
854
|
}
|
|
852
|
-
`,
|
|
855
|
+
`,sw=n.div`
|
|
853
856
|
display: flex;
|
|
854
857
|
align-items: center;
|
|
855
858
|
justify-content: center;
|
|
856
859
|
cursor: pointer;
|
|
857
|
-
`,
|
|
860
|
+
`,lw=({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?fd(t):md(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=gv(M,{deps:[y]}),z=E.readOnly&&F&&null!=y&&""!==y?String(y):"",B=!!c&&!O;return e(Dl,{$width:S,$gap:6,children:[t(h$,{label:n,tooltip:a,required:r,badge:s}),t(iw,{$small:x,$disabled:$,$readOnly:!!E.readOnly,$error:L,$clickable:!!C&&!$,$hasSuffix:B,$hideFocusOutline:p,onClick:$?void 0:e=>{$||(E.readOnly||M.current?.focus(),C?.(e))},children:B?e(i,{children:[t(nw,{$small:x,children:t(iv,{text:z,fullWidth:!0,keepAlive:!0,children:t(aw,{"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(rw,{$disabled:$,$error:L}),t(ow,{$small:x,"aria-hidden":"true",children:t(Va,{size:ja.XXXS,color:$?Ha.Disable:Ha.Secondary,nowrap:!0,children:c})})]}):e(iv,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(aw,{"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(sw,{onClick:()=>k(e=>!e),children:t(A?Ot:Nt,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(g$,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},dw=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=Xt(()=>{d(""),u(!0)},[]),b=Xt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Xt(e=>{u(e),e||d("")},[]),v=Xt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(A$,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:yv.Bottom,children:t(lw,{name:i,leftIcon:St,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},cw=n.button`
|
|
858
861
|
width: 100%;
|
|
859
862
|
padding: 0;
|
|
860
863
|
padding-right: 12px;
|
|
@@ -875,7 +878,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
875
878
|
cursor: not-allowed;
|
|
876
879
|
opacity: 0.5;
|
|
877
880
|
}
|
|
878
|
-
`,
|
|
881
|
+
`,uw=n.div`
|
|
879
882
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
880
883
|
height: 56px;
|
|
881
884
|
display: flex;
|
|
@@ -886,28 +889,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
886
889
|
`:r`
|
|
887
890
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
888
891
|
`}
|
|
889
|
-
`,
|
|
892
|
+
`,pw=n.div`
|
|
890
893
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
891
894
|
display: flex;
|
|
892
895
|
justify-content: space-between;
|
|
893
896
|
align-items: center;
|
|
894
897
|
gap: 8px;
|
|
895
|
-
`,
|
|
898
|
+
`,hw=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(cw,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(uw,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(pw,{$hasIcon:!!n,children:[r?t(Wl,{withGradient:!0,titleSize:ja.S}):t(Va,{variant:Ba.Span,align:"center",children:i}),t(At,{rotate:90,size:24})]})]})},gw=({buttons:e})=>t(Dl,{$gap:12,children:e.map((e,i)=>t(hw,{...e},`${e.label}-${i}`))}),mw=[1,.75,.5,.25,0],fw=n.div`
|
|
896
899
|
display: flex;
|
|
897
900
|
flex-direction: column;
|
|
898
901
|
gap: 32px;
|
|
899
902
|
width: 100%;
|
|
900
903
|
min-width: 0;
|
|
901
|
-
`,
|
|
904
|
+
`,bw=n(_l)`
|
|
902
905
|
align-items: center;
|
|
903
906
|
gap: 4px;
|
|
904
|
-
`,
|
|
907
|
+
`,yw=n.div`
|
|
905
908
|
display: flex;
|
|
906
909
|
align-items: flex-start;
|
|
907
910
|
gap: 4px;
|
|
908
911
|
width: 100%;
|
|
909
912
|
min-width: 0;
|
|
910
|
-
`,
|
|
913
|
+
`,vw=n.div`
|
|
911
914
|
display: flex;
|
|
912
915
|
flex-direction: column;
|
|
913
916
|
justify-content: space-between;
|
|
@@ -915,19 +918,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
915
918
|
flex-shrink: 0;
|
|
916
919
|
height: ${({$plotHeight:e})=>e}px;
|
|
917
920
|
padding-bottom: 0;
|
|
918
|
-
|
|
921
|
+
`,$w=n.div`
|
|
919
922
|
display: flex;
|
|
920
923
|
flex-direction: column;
|
|
921
924
|
flex: 1;
|
|
922
925
|
min-width: 0;
|
|
923
|
-
|
|
926
|
+
`,ww=n.div`
|
|
924
927
|
position: relative;
|
|
925
928
|
display: flex;
|
|
926
929
|
align-items: flex-end;
|
|
927
930
|
width: 100%;
|
|
928
931
|
height: ${({$height:e})=>e}px;
|
|
929
932
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
930
|
-
`,
|
|
933
|
+
`,Sw=n.div`
|
|
931
934
|
position: absolute;
|
|
932
935
|
inset: 0;
|
|
933
936
|
display: flex;
|
|
@@ -935,11 +938,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
935
938
|
justify-content: space-between;
|
|
936
939
|
pointer-events: none;
|
|
937
940
|
z-index: 0;
|
|
938
|
-
`,
|
|
941
|
+
`,xw=n.div`
|
|
939
942
|
width: 100%;
|
|
940
943
|
height: 0;
|
|
941
944
|
border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
942
|
-
`,
|
|
945
|
+
`,Cw=n.div`
|
|
943
946
|
position: relative;
|
|
944
947
|
z-index: 1;
|
|
945
948
|
display: flex;
|
|
@@ -947,7 +950,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
947
950
|
width: 100%;
|
|
948
951
|
height: 100%;
|
|
949
952
|
padding: 0 8px;
|
|
950
|
-
`,
|
|
953
|
+
`,Ew=n.div`
|
|
951
954
|
display: flex;
|
|
952
955
|
flex: 1;
|
|
953
956
|
align-items: flex-end;
|
|
@@ -964,63 +967,63 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
964
967
|
height: 100%;
|
|
965
968
|
max-width: 124px;
|
|
966
969
|
}
|
|
967
|
-
`,
|
|
970
|
+
`,Tw=n.div`
|
|
968
971
|
width: 100%;
|
|
969
972
|
height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
|
|
970
973
|
border-radius: 6px 6px 0 0;
|
|
971
974
|
background-color: ${({$color:e})=>e};
|
|
972
975
|
min-height: ${({$pct:e})=>e>0?"2px":"0"};
|
|
973
|
-
`,
|
|
976
|
+
`,Ow=n.div`
|
|
974
977
|
display: flex;
|
|
975
978
|
flex-direction: column;
|
|
976
979
|
gap: 4px;
|
|
977
980
|
width: 100%;
|
|
978
981
|
height: ${29}px;
|
|
979
982
|
padding: 0 8px;
|
|
980
|
-
`,
|
|
983
|
+
`,Nw=n.div`
|
|
981
984
|
display: flex;
|
|
982
985
|
height: 8px;
|
|
983
986
|
width: 100%;
|
|
984
|
-
`,
|
|
987
|
+
`,Aw=n.div`
|
|
985
988
|
display: flex;
|
|
986
989
|
flex: 1;
|
|
987
990
|
align-items: center;
|
|
988
991
|
justify-content: center;
|
|
989
992
|
min-width: 0;
|
|
990
|
-
`,
|
|
993
|
+
`,kw=n.div`
|
|
991
994
|
width: 0;
|
|
992
995
|
height: 100%;
|
|
993
996
|
border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
994
|
-
`,
|
|
997
|
+
`,Iw=n.div`
|
|
995
998
|
display: flex;
|
|
996
999
|
width: 100%;
|
|
997
1000
|
height: 17px;
|
|
998
|
-
`,
|
|
1001
|
+
`,_w=n.div`
|
|
999
1002
|
display: flex;
|
|
1000
1003
|
flex: 1;
|
|
1001
1004
|
align-items: center;
|
|
1002
1005
|
justify-content: center;
|
|
1003
1006
|
min-width: 0;
|
|
1004
1007
|
overflow: hidden;
|
|
1005
|
-
`,
|
|
1008
|
+
`,Dw=({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(()=>mw.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(fw,{children:[!!i&&e(bw,{children:[t(Va,{size:ja.S,weight:500,children:i}),!!n&&t(iv,{text:n,withIcon:!0})]}),e(yw,{children:[t(vw,{$plotHeight:a,children:c.map((e,i)=>t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e},mw[i]))}),e($w,{children:[e(ww,{$height:a,children:[t(Sw,{children:mw.map(e=>t(xw,{},e))}),t(Cw,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(Ew,{children:t(iv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(Tw,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(Ow,{children:[t(Nw,{children:r.map((e,i)=>t(Aw,{children:t(kw,{})},`tick-${e.label}-${i}`))}),t(Iw,{children:r.map((e,i)=>t(_w,{children:t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var Rw;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Rw||(Rw={}));const Lw=n.div`
|
|
1006
1009
|
display: flex;
|
|
1007
1010
|
align-items: flex-end;
|
|
1008
1011
|
justify-content: space-between;
|
|
1009
1012
|
gap: 24px;
|
|
1010
1013
|
width: fit-content;
|
|
1011
|
-
`,
|
|
1014
|
+
`,Pw=n.div`
|
|
1012
1015
|
position: relative;
|
|
1013
1016
|
display: flex;
|
|
1014
1017
|
flex-direction: column;
|
|
1015
1018
|
align-items: center;
|
|
1016
1019
|
width: ${({$width:e})=>e??150}px;
|
|
1017
1020
|
flex-shrink: 0;
|
|
1018
|
-
`,
|
|
1021
|
+
`,Uw=n.svg`
|
|
1019
1022
|
display: block;
|
|
1020
1023
|
width: 100%;
|
|
1021
1024
|
height: auto;
|
|
1022
1025
|
overflow: visible;
|
|
1023
|
-
`,
|
|
1026
|
+
`,Mw=n(Dl)`
|
|
1024
1027
|
position: absolute;
|
|
1025
1028
|
left: 0;
|
|
1026
1029
|
right: 0;
|
|
@@ -1028,14 +1031,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1028
1031
|
align-items: center;
|
|
1029
1032
|
gap: 2px;
|
|
1030
1033
|
pointer-events: none;
|
|
1031
|
-
`,
|
|
1034
|
+
`,Fw=n.span`
|
|
1032
1035
|
display: inline-block;
|
|
1033
1036
|
flex-shrink: 0;
|
|
1034
1037
|
width: 9px;
|
|
1035
1038
|
height: 9px;
|
|
1036
1039
|
border-radius: 50%;
|
|
1037
1040
|
background-color: ${({$color:e})=>e};
|
|
1038
|
-
`,
|
|
1041
|
+
`,zw=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:""}},Bw=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},jw=(e,t,i,n,r)=>{const o=Bw(e,t,i,n),a=Bw(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}`},Hw=({variant:i=Rw.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=zw(a),{number:g}=zw(s),{number:m,prefix:f,suffix:b}=zw(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?jw(60,60,55,180,$):null,S=v<1?jw(60,60,55,$,0):null,x=Bw(60,60,55,180),C=Bw(60,60,55,0),E=c??(i===Rw.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===Rw.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,k=i===Rw.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(Lw,{children:[e(Pw,{$width:n,children:[t(iv,{keepAlive:!0,fullWidth:!0,title:I,text:_,children:e(Uw,{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(Mw,{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(Dl,{$gap:7,children:[e(_l,{$gap:8,$alignItems:"center",children:[t(Fw,{$color:E}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(_l,{$gap:8,$alignItems:"center",children:[t(Fw,{$color:T}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Ww=n(_l)`
|
|
1039
1042
|
width: 100%;
|
|
1040
1043
|
padding: 8px 12px;
|
|
1041
1044
|
border-radius: 6px;
|
|
@@ -1050,20 +1053,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1050
1053
|
display: flex;
|
|
1051
1054
|
align-items: center;
|
|
1052
1055
|
gap: 4px;
|
|
1053
|
-
`,
|
|
1056
|
+
`,Gw=n.pre`
|
|
1054
1057
|
flex: 1;
|
|
1055
1058
|
margin: 0;
|
|
1056
1059
|
padding: 0;
|
|
1057
1060
|
font-size: 12px;
|
|
1058
1061
|
color: #5ffb98; // TODO: add to theme
|
|
1059
1062
|
overflow-x: auto;
|
|
1060
|
-
`,
|
|
1063
|
+
`,Vw=n.span`
|
|
1061
1064
|
flex-shrink: 0;
|
|
1062
1065
|
font-size: 14px;
|
|
1063
1066
|
color: #5ffb98; // TODO: add to theme
|
|
1064
|
-
`,
|
|
1067
|
+
`,Kw=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=sv({onDone:a}),l=Vt(null),[d,c]=Ht(!1);return Wt(()=>{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(Dl,{$gap:4,children:[n&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:n}),e(Ww,{$bgTint:i,children:[e(Xw,{$hideCopy:o,children:[t(Gw,{ref:l,children:r}),d&&t(Vw,{children:"..."})]}),!o&&t(s,{value:r})]})]})},Yw=n(_l)`
|
|
1065
1068
|
gap: 0;
|
|
1066
|
-
`,
|
|
1069
|
+
`,Jw=n.button`
|
|
1067
1070
|
padding: 4px 8px;
|
|
1068
1071
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
1069
1072
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -1075,20 +1078,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1075
1078
|
&:hover {
|
|
1076
1079
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1077
1080
|
}
|
|
1078
|
-
`,
|
|
1081
|
+
`,qw=({isPrettyMode:i,setIsPrettyMode:n})=>e(Yw,{children:[t(Jw,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(Jw,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),Qw=n.table`
|
|
1079
1082
|
border-collapse: collapse;
|
|
1080
1083
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1081
|
-
`,
|
|
1084
|
+
`,Zw=n.tbody``,eS=n.tr`
|
|
1082
1085
|
td:first-child {
|
|
1083
1086
|
padding-left: 0 !important;
|
|
1084
1087
|
}
|
|
1085
1088
|
td:last-child {
|
|
1086
1089
|
padding-right: 0 !important;
|
|
1087
1090
|
}
|
|
1088
|
-
`,
|
|
1091
|
+
`,tS=n.td`
|
|
1089
1092
|
vertical-align: top;
|
|
1090
1093
|
padding: 4px 6px;
|
|
1091
|
-
`,
|
|
1094
|
+
`,iS=n.span`
|
|
1092
1095
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
1093
1096
|
overflow-wrap: break-word;
|
|
1094
1097
|
word-break: break-word;
|
|
@@ -1096,7 +1099,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1096
1099
|
/* Fallback for older browsers */
|
|
1097
1100
|
-ms-word-break: break-all;
|
|
1098
1101
|
font-size: 12px;
|
|
1099
|
-
`,
|
|
1102
|
+
`,nS=({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=Ud(e);d=Md(r?As(t):t)}else d=i;return a&&"json"===e?t(rS,{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(iS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},rS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(eS,{...i,children:[t(tS,{}),t(tS,{})]}));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(Zw,{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(eS,{...d,children:[t(tS,{children:t(Va,{nowrap:!0,children:l[0].content})}),t(tS,{})]})]},`line-${s}`):2===l.length?t(eS,{...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(iv,{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(tS,{children:e(_l,{children:[t(_l,{children:l}),t(iS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},oS=n.div`
|
|
1100
1103
|
display: flex;
|
|
1101
1104
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1102
1105
|
gap: 8px;
|
|
@@ -1112,7 +1115,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1112
1115
|
background-color: ${t?"transparent":i};
|
|
1113
1116
|
}
|
|
1114
1117
|
`}
|
|
1115
|
-
`,
|
|
1118
|
+
`,aS=n.div`
|
|
1116
1119
|
display: flex;
|
|
1117
1120
|
align-items: center;
|
|
1118
1121
|
justify-content: center;
|
|
@@ -1131,54 +1134,54 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1131
1134
|
transform: scale(1.2);
|
|
1132
1135
|
}
|
|
1133
1136
|
`}
|
|
1134
|
-
`,
|
|
1137
|
+
`,sS=n(Dl)`
|
|
1135
1138
|
flex: 1;
|
|
1136
1139
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1137
1140
|
min-width: 0;
|
|
1138
|
-
`,
|
|
1141
|
+
`,lS=n(Dl)`
|
|
1139
1142
|
align-self: stretch;
|
|
1140
1143
|
flex-shrink: 0;
|
|
1141
|
-
`,
|
|
1144
|
+
`,dS=n.div`
|
|
1142
1145
|
display: flex;
|
|
1143
1146
|
align-items: center;
|
|
1144
1147
|
justify-content: center;
|
|
1145
1148
|
flex-shrink: 0;
|
|
1146
1149
|
width: 24px;
|
|
1147
1150
|
height: 24px;
|
|
1148
|
-
`,
|
|
1151
|
+
`,cS=({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=dl(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)":dl(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]:dl(y,i,"600");return e(oS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(aS,{$backgroundColor:N,$slim:b,children:x?t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(sS,{$gap:4,$justifyContent:"center",$slim:b,children:[e(_l,{$gap:10,$alignItems:"center",children:[t(Va,{size:b?ja.XS:ja.S,weight:500,color:O,children:n}),l&&t(Lv,{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(lS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(_l,{$gap:8,children:c.map(e=>t(av,{...e,variant:nv.Secondary,size:rv.S},e["data-id"]??e.label))}),s]}),$&&t(dS,{children:t($,{size:24,fill:T})})]})},uS=n.div`
|
|
1149
1152
|
display: flex;
|
|
1150
1153
|
flex-direction: column;
|
|
1151
1154
|
width: 100%;
|
|
1152
1155
|
border-radius: 12px;
|
|
1153
1156
|
overflow: hidden;
|
|
1154
|
-
`,
|
|
1157
|
+
`,pS=n.div`
|
|
1155
1158
|
display: flex;
|
|
1156
1159
|
flex-direction: column;
|
|
1157
1160
|
gap: 8px;
|
|
1158
1161
|
padding: 8px 12px 16px 12px;
|
|
1159
1162
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1160
|
-
`,
|
|
1163
|
+
`,hS=n.div`
|
|
1161
1164
|
display: flex;
|
|
1162
1165
|
align-items: center;
|
|
1163
1166
|
gap: 8px;
|
|
1164
|
-
`,
|
|
1167
|
+
`,gS=n.div`
|
|
1165
1168
|
display: flex;
|
|
1166
1169
|
align-items: center;
|
|
1167
1170
|
justify-content: center;
|
|
1168
1171
|
flex-shrink: 0;
|
|
1169
1172
|
width: 18px;
|
|
1170
1173
|
height: 18px;
|
|
1171
|
-
`,
|
|
1174
|
+
`,mS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=Ht(!1),d=Xt(()=>l(e=>!e),[]),c=Gt(()=>ud(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Gt(()=>Ls(c),[c]);Wt(()=>{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(uS,{children:[t(cS,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(pS,{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?dl(a,Oi.Error,"500"):i===Oi.Warning?dl(a,Oi.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(hS,{children:[t(gS,{children:l||!c?t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Va,{size:ja.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},fS=n.div`
|
|
1172
1175
|
width: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Vertical?`${t}px`:i||"100%"};
|
|
1173
1176
|
height: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Horizontal?`${t}px`:i||"100%"};
|
|
1174
1177
|
margin: ${({$orientation:e,$margin:t})=>t||(e===mi.Horizontal?"8px 0":"0 8px")};
|
|
1175
|
-
background-color: ${({$type:e,theme:t})=>e?
|
|
1178
|
+
background-color: ${({$type:e,theme:t})=>e?dl(t,e):t.v2.colors.silver[500]};
|
|
1176
1179
|
opacity: ${({$opacity:e})=>e||1};
|
|
1177
|
-
`,
|
|
1180
|
+
`,bS=({orientation:e=mi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(fS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var yS,vS,$S;(e=>{e.Default="default",e.SuccessError="successError"})(yS||(yS={})),(e=>{e.S="small",e.L="large"})(vS||(vS={})),(e=>{e.Left="left",e.Right="right"})($S||($S={}));const wS=n.div`
|
|
1178
1181
|
display: flex;
|
|
1179
1182
|
align-items: center;
|
|
1180
1183
|
gap: ${({$gap:e})=>e}px;
|
|
1181
|
-
`,
|
|
1184
|
+
`,SS=n.div`
|
|
1182
1185
|
position: relative;
|
|
1183
1186
|
display: flex;
|
|
1184
1187
|
align-items: center;
|
|
@@ -1189,11 +1192,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1189
1192
|
height: ${({$size:e})=>e}px;
|
|
1190
1193
|
padding: ${4}px;
|
|
1191
1194
|
border-radius: ${({$size:e})=>2*e}px;
|
|
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
|
|
1195
|
+
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 yS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case yS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
|
|
1193
1196
|
|
|
1194
1197
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1195
1198
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1196
|
-
`,
|
|
1199
|
+
`,xS=n.div`
|
|
1197
1200
|
position: absolute;
|
|
1198
1201
|
top: 50%;
|
|
1199
1202
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -1203,11 +1206,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1203
1206
|
border-radius: 100%;
|
|
1204
1207
|
background-color: ${({$color:e})=>e};
|
|
1205
1208
|
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)"};
|
|
1206
|
-
`,
|
|
1209
|
+
`,CS=({variant:n=yS.Default,size:r=vS.L,name:a,label:s,labelAlign:l=$S.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===vS.S?10:16,T=d||x.v2.colors.silver[200],O=r===vS.S?ja.XXXS:ja.XS,N=r===vS.S?8:12;return e(Dl,{$gap:4,children:[e(_l,{$justifyContent:"space-between",children:[e(wS,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===$S.Left&&t(Va,{color:T,size:O,nowrap:!0,children:s}),e(SS,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(xS,{$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===$S.Right&&t(Va,{color:T,size:O,nowrap:!0,children:s})]}),t(h$,{tooltip:c,badge:u})]}),t(g$,{errorMessage:$,warnMessage:w,helpMessage:S})]})},ES=n.div`
|
|
1207
1210
|
display: flex;
|
|
1208
1211
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
1209
1212
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
1210
|
-
`,
|
|
1213
|
+
`,TS=({direction:i=mi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===vS.S?ja.XS:ja.S;return e(ES,{$direction:i,children:[n&&t(Va,{size:d,children:n}),a.map(e=>t(CS,{...e,labelAlign:$S.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 OS;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(OS||(OS={}));const NS=n.div`
|
|
1211
1214
|
width: ${({$size:e})=>1.5*e}px;
|
|
1212
1215
|
height: ${({$size:e})=>1.5*e}px;
|
|
1213
1216
|
display: flex;
|
|
@@ -1218,13 +1221,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1218
1221
|
&:hover {
|
|
1219
1222
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1220
1223
|
}
|
|
1221
|
-
`,
|
|
1224
|
+
`,AS=({"data-id":e,icon:i,size:n=OS.S,onClick:r,disabled:o})=>t(NS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),kS=n.div`
|
|
1222
1225
|
display: flex;
|
|
1223
1226
|
align-items: center;
|
|
1224
1227
|
justify-content: space-between;
|
|
1225
1228
|
width: 100%;
|
|
1226
1229
|
overflow: hidden;
|
|
1227
|
-
`,
|
|
1230
|
+
`,IS=n.div`
|
|
1228
1231
|
display: flex;
|
|
1229
1232
|
align-items: center;
|
|
1230
1233
|
gap: 16px;
|
|
@@ -1232,7 +1235,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1232
1235
|
min-width: 0;
|
|
1233
1236
|
flex: 1;
|
|
1234
1237
|
overflow: hidden;
|
|
1235
|
-
`,
|
|
1238
|
+
`,_S=n.div`
|
|
1236
1239
|
display: flex;
|
|
1237
1240
|
align-items: center;
|
|
1238
1241
|
justify-content: center;
|
|
@@ -1241,23 +1244,23 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1241
1244
|
height: 36px;
|
|
1242
1245
|
border-radius: 8px;
|
|
1243
1246
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1244
|
-
`,
|
|
1247
|
+
`,DS=n.img`
|
|
1245
1248
|
width: 24px;
|
|
1246
1249
|
height: 24px;
|
|
1247
|
-
`,
|
|
1250
|
+
`,RS=n.div`
|
|
1248
1251
|
display: flex;
|
|
1249
1252
|
align-items: center;
|
|
1250
1253
|
gap: 16px;
|
|
1251
1254
|
flex-shrink: 0;
|
|
1252
|
-
`,
|
|
1255
|
+
`,LS=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(kS,{children:[e(IS,{children:[i?t(_S,{children:t(i,{size:24})}):n?t(_S,{children:t(DS,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Dl,{$gap:6,children:[(r||o?.length)&&e(_l,{$gap:16,children:[r&&t(Va,{size:ja.S,weight:500,children:r}),o?.length&&t(_l,{$gap:4,children:o?.map((e,i)=>t(Lv,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(_l,{$gap:16,children:[a&&t(Va,{color:Ha.Secondary,size:ja.XXS,children:a}),s?.length&&t(_l,{$gap:4,children:s?.map((e,i)=>t(Dv,{...e},`${e.label}-${i}`))})]})]})]}),e(RS,{children:[l&&t(CS,{...l}),d?.length?t(A$,{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(AS,{"data-id":"drawer-close",icon:It,size:OS.M,onClick:c,disabled:u})]})]}),PS=n.div`
|
|
1253
1256
|
position: relative;
|
|
1254
1257
|
&.animated {
|
|
1255
1258
|
overflow: hidden;
|
|
1256
1259
|
padding-bottom: 1px;
|
|
1257
1260
|
border-radius: 8px;
|
|
1258
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1261
|
+
animation: ${({$isLeaving:e})=>e?Vv.out.bottom:Vv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1259
1262
|
}
|
|
1260
|
-
`,
|
|
1263
|
+
`,US=n.div`
|
|
1261
1264
|
position: absolute;
|
|
1262
1265
|
bottom: -1px;
|
|
1263
1266
|
left: 0;
|
|
@@ -1265,9 +1268,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1265
1268
|
width: 100%;
|
|
1266
1269
|
height: 100%;
|
|
1267
1270
|
border-radius: 8px;
|
|
1268
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1269
|
-
animation: ${
|
|
1270
|
-
`,
|
|
1271
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,t===Oi.Default?"300":t===Oi.Info?"400":"500")};
|
|
1272
|
+
animation: ${Kv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1273
|
+
`,MS=n.div`
|
|
1271
1274
|
display: flex;
|
|
1272
1275
|
align-items: center;
|
|
1273
1276
|
gap: 10px;
|
|
@@ -1276,37 +1279,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1276
1279
|
`}
|
|
1277
1280
|
padding: 8px 12px 8px 8px;
|
|
1278
1281
|
border-radius: 8px;
|
|
1279
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1280
|
-
`,
|
|
1282
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,[Oi.Info,Oi.Warning].includes(t)?"1000":"900")};
|
|
1283
|
+
`,FS=n.div`
|
|
1281
1284
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1282
1285
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1283
1286
|
display: flex;
|
|
1284
1287
|
align-items: center;
|
|
1285
1288
|
justify-content: center;
|
|
1286
1289
|
border-radius: 6px;
|
|
1287
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1288
|
-
`,
|
|
1290
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,[Oi.Info].includes(t)?"900":"800")};
|
|
1291
|
+
`,zS=n.div`
|
|
1289
1292
|
margin-left: auto;
|
|
1290
1293
|
display: flex;
|
|
1291
1294
|
align-items: center;
|
|
1292
1295
|
gap: 4px;
|
|
1293
|
-
`,
|
|
1296
|
+
`,BS=n.div`
|
|
1294
1297
|
margin-right: 8px;
|
|
1295
1298
|
cursor: pointer;
|
|
1296
1299
|
&:hover {
|
|
1297
1300
|
transform: scale(1.2);
|
|
1298
1301
|
}
|
|
1299
|
-
`,
|
|
1302
|
+
`,jS=({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=dl(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 Wt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(PS,{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(MS,{$status:i,$fullWidth:a,children:[t("div",{children:t(FS,{$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(zS,{children:[r&&t(BS,{"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(AS,{"data-id":"note-close",icon:It,size:OS.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(US,{ref:y,$status:i,$duration:c})]})},HS=n.div`
|
|
1300
1303
|
display: flex;
|
|
1301
1304
|
align-items: center;
|
|
1302
1305
|
gap: 8px;
|
|
1303
1306
|
padding: 4px 12px;
|
|
1304
|
-
`,
|
|
1307
|
+
`,WS=n.div`
|
|
1305
1308
|
flex: 1;
|
|
1306
1309
|
`,XS=n.div`
|
|
1307
1310
|
min-width: 150px;
|
|
1308
1311
|
width: fit-content;
|
|
1309
|
-
`,
|
|
1312
|
+
`,GS=({note:i,actions:n,children:r})=>r?t(HS,{children:r}):e(HS,{children:[i&&t(jS,{...i}),t(WS,{}),n?.map((e,i)=>t(XS,{children:t(av,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),VS=n.div`
|
|
1310
1313
|
position: fixed;
|
|
1311
1314
|
top: 0;
|
|
1312
1315
|
bottom: 0;
|
|
@@ -1326,16 +1329,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1326
1329
|
overflow: hidden;
|
|
1327
1330
|
|
|
1328
1331
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1329
|
-
animation-name: ${
|
|
1332
|
+
animation-name: ${Vv.in[t]};
|
|
1330
1333
|
`}
|
|
1331
|
-
`,
|
|
1334
|
+
`,KS=n.div`
|
|
1332
1335
|
display: flex;
|
|
1333
1336
|
flex-direction: column;
|
|
1334
1337
|
gap: 12px;
|
|
1335
1338
|
|
|
1336
1339
|
height: calc(100% - ${56}px);
|
|
1337
1340
|
overflow-y: auto;
|
|
1338
|
-
`,
|
|
1341
|
+
`,YS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Wy(n),n?Zt(e(i,{children:[!r&&t(Pl,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(VS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(LS,{...d}),t(KS,{children:u}),c&&t(GS,{...c})]})]}),document.body):null),JS=({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(A$,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:bv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(lw,{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})})},qS=({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(av,{variant:nv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},QS=({children:e})=>t(ii,{FallbackComponent:({error:e,...i})=>t(Wv,{children:t(qS,{...i,error:e})}),children:e}),ZS=n.header`
|
|
1339
1342
|
position: relative;
|
|
1340
1343
|
width: 100%;
|
|
1341
1344
|
padding: 12px 18px;
|
|
@@ -1343,12 +1346,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1343
1346
|
display: flex;
|
|
1344
1347
|
align-items: center;
|
|
1345
1348
|
justify-content: space-between;
|
|
1346
|
-
`,
|
|
1349
|
+
`,ex=n(_l)`
|
|
1347
1350
|
position: absolute;
|
|
1348
1351
|
left: 50%;
|
|
1349
1352
|
transform: translateX(-50%);
|
|
1350
1353
|
gap: 16px;
|
|
1351
|
-
`,
|
|
1354
|
+
`,tx=({left:i=[],center:n=[],right:r=[]})=>e(ZS,{children:[t(_l,{$gap:16,children:i}),t(ex,{children:n}),t(_l,{$gap:16,children:r})]}),ix=n.div`
|
|
1352
1355
|
display: flex;
|
|
1353
1356
|
align-items: center;
|
|
1354
1357
|
gap: 4px;
|
|
@@ -1364,7 +1367,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1364
1367
|
left: ${({$left:e})=>e||"unset"};
|
|
1365
1368
|
top: 50%;
|
|
1366
1369
|
transform: translateY(-50%);
|
|
1367
|
-
`,
|
|
1370
|
+
`,nx=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(ix,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(iv,{text:i||"",children:t(av,{...n,variant:n.variant||nv.Secondary,size:rv.S})},n.id)})}):null,rx=n.div`
|
|
1368
1371
|
display: flex;
|
|
1369
1372
|
align-items: center;
|
|
1370
1373
|
justify-content: center;
|
|
@@ -1372,8 +1375,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1372
1375
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1373
1376
|
aspect-ratio: 1 / 1;
|
|
1374
1377
|
border-radius: 8px;
|
|
1375
|
-
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?
|
|
1376
|
-
`,
|
|
1378
|
+
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?dl(e,i,i===Oi.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1379
|
+
`,ox=({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=il(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(rx,{$size:s,$padding:l,$status:a,children:e(Dl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(_l,{$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(rx,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},ax=30,sx=n.div`
|
|
1377
1380
|
display: flex;
|
|
1378
1381
|
align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
|
|
1379
1382
|
gap: 8px;
|
|
@@ -1384,40 +1387,40 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1384
1387
|
&:hover {
|
|
1385
1388
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1386
1389
|
}
|
|
1387
|
-
`,sx=n(Va)`
|
|
1388
|
-
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1389
1390
|
`,lx=n(Va)`
|
|
1391
|
+
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1392
|
+
`,dx=n(Va)`
|
|
1390
1393
|
flex: 1 1 auto;
|
|
1391
1394
|
min-width: 0;
|
|
1392
|
-
`,
|
|
1395
|
+
`,cx=n(_l)`
|
|
1393
1396
|
flex: 1 1 auto;
|
|
1394
1397
|
justify-content: flex-end;
|
|
1395
1398
|
min-width: 0;
|
|
1396
|
-
`,
|
|
1399
|
+
`,ux=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(sx,{$withHealthBadge:s,children:[t(lx,{size:ja.XXS,color:Ha.Secondary,$withHealthBadge:s,children:i}),n?t(dx,{size:ja.XXS,color:Ha.Primary,align:"right",children:n}):null,(r||s)&&e(cx,{children:[r?t(Lv,{status:Oi.Info,label:es.STANDARD,textSize:ja.XXXS,invertColors:!0}):null,s?e(_l,{$gap:4,children:[a?t(dx,{size:ja.XXXS,color:Ha.Error,align:"right",children:a}):null,t(Lv,{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]})]})},px=n.div`
|
|
1397
1400
|
width: 100%;
|
|
1398
1401
|
border-radius: 8px;
|
|
1399
1402
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1400
1403
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1401
|
-
`,
|
|
1404
|
+
`,hx=({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(px,{$plain:f,children:e(Dl,{"data-id":r,$gap:6,children:[t(h$,{label:a,tooltip:s,required:d,badge:l}),t(Dl,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(_l,{$gap:8,$alignItems:"center",children:[t(lw,{width:"100%",autoFocus:m&&rd(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(av,{leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:v,onClick:()=>(()=>{const e=i.length?$s(i):[$s("")];e.push(""),n(e)})()}),t(av,{leftIcon:$?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(g$,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var gx;(e=>{e.S="small",e.L="large"})(gx||(gx={}));const mx=n.div`
|
|
1402
1405
|
width: fit-content;
|
|
1403
1406
|
display: flex;
|
|
1404
1407
|
align-items: center;
|
|
1405
1408
|
gap: 8px;
|
|
1406
1409
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1407
|
-
`,
|
|
1408
|
-
width: ${({$size:e})=>e===
|
|
1409
|
-
height: ${({$size:e})=>e===
|
|
1410
|
+
`,fx=n.div`
|
|
1411
|
+
width: ${({$size:e})=>e===gx.S?"16px":"20px"};
|
|
1412
|
+
height: ${({$size:e})=>e===gx.S?"16px":"20px"};
|
|
1410
1413
|
display: flex;
|
|
1411
1414
|
align-items: center;
|
|
1412
1415
|
justify-content: center;
|
|
1413
1416
|
border-radius: 100%;
|
|
1414
1417
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1415
1418
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1416
|
-
`,
|
|
1419
|
+
`,bx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=gx.L})=>{const d=o(),[c,u]=Ht(!1),p=r,h=l===gx.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(mx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Va,{size:l===gx.S?ja.XXS:ja.XS,children:n})]})},yx=n.div`
|
|
1417
1420
|
display: flex;
|
|
1418
1421
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1419
1422
|
gap: ${({$gap:e})=>e}px;
|
|
1420
|
-
`,
|
|
1423
|
+
`,vx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(yx,{$flexDirection:n===mi.Horizontal?"row":"column",$gap:n===mi.Horizontal?16:8,children:[i&&t(Va,{children:i}),a.map(e=>t(bx,{...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}`))]}),$x=({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(vx,{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(JS,{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&&rd(S),c=t(lw,{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(_l,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(av,{variant:nv.Secondary,size:rv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},wx=n.div`
|
|
1421
1424
|
width: 100%;
|
|
1422
1425
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1423
1426
|
border-radius: 8px;
|
|
@@ -1425,28 +1428,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1425
1428
|
display: flex;
|
|
1426
1429
|
flex-direction: column;
|
|
1427
1430
|
gap: 8px;
|
|
1428
|
-
`,
|
|
1431
|
+
`,Sx=n.div`
|
|
1429
1432
|
flex: 1;
|
|
1430
1433
|
min-width: 0;
|
|
1431
|
-
`,
|
|
1434
|
+
`,xx=n.div`
|
|
1432
1435
|
padding-top: 24px;
|
|
1433
|
-
`,
|
|
1436
|
+
`,Cx=({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(Dl,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(h$,{label:s,tooltip:l,required:d}),m&&t(o$,{"data-id":`${a}-mode`,size:Zv.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(Dl,{$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(wx,{"data-id":`${a}-card-${o}`,children:[e(_l,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Dl,{$gap:10,children:[T&&t(h$,{label:T}),m.map(e=>t(_l,{$gap:24,children:(e.options??[]).map(i=>t(bx,{size:gx.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(_l,{$gap:4,$alignItems:"center",children:[v&&t(av,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:nv.Secondary,size:rv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(av,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(av,{"data-id":`${a}-card-${o}-add`,leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(_l,{$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(xx,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(Sx,{children:t(lw,{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(g$,{errorMessage:u})]})]})},Ex=n.div`
|
|
1434
1437
|
width: 100%;
|
|
1435
1438
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1436
1439
|
border-radius: 8px;
|
|
1437
1440
|
padding: 4px 8px;
|
|
1438
|
-
`,
|
|
1441
|
+
`,Tx=n.table`
|
|
1439
1442
|
width: 100%;
|
|
1440
1443
|
border-collapse: separate;
|
|
1441
1444
|
border-spacing: 0 8px;
|
|
1442
|
-
`,
|
|
1445
|
+
`,Ox=n.td`
|
|
1443
1446
|
padding: 0 8px 0 0;
|
|
1444
1447
|
vertical-align: top;
|
|
1445
|
-
`,
|
|
1448
|
+
`,Nx=n.td`
|
|
1446
1449
|
width: 72px;
|
|
1447
1450
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1448
1451
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1449
|
-
`,
|
|
1452
|
+
`,Ax=({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(Ex,{children:e(Dl,{"data-id":a,$gap:0,children:[t(h$,{label:s,tooltip:l,required:c,badge:d}),t(Tx,{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(Ox,{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(Ox,{colSpan:s>1?s:void 0,children:e(Dl,{$gap:6,children:[m&&(i.label?t(h$,{label:i.label,tooltip:i.tooltip}):t(h$,{label:"\\u00A0"})),t($x,{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(Nx,{$topOffset:w,$center:h,children:e(_l,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(av,{leftIcon:_t,variant:nv.Secondary,size:rv.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(av,{leftIcon:u?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:nv.Secondary,size:rv.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(g$,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var kx;(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"})(kx||(kx={}));const Ix=n.div`
|
|
1450
1453
|
display: flex;
|
|
1451
1454
|
align-items: center;
|
|
1452
1455
|
justify-content: space-between;
|
|
@@ -1460,32 +1463,32 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1460
1463
|
position: fixed;
|
|
1461
1464
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1462
1465
|
|
|
1463
|
-
${({$position:e})=>{switch(e){case
|
|
1466
|
+
${({$position:e})=>{switch(e){case kx.BottomCenter:return r`
|
|
1464
1467
|
bottom: 0;
|
|
1465
1468
|
left: 50%;
|
|
1466
|
-
animation-name: ${
|
|
1467
|
-
`;case
|
|
1469
|
+
animation-name: ${Vv.in.center};
|
|
1470
|
+
`;case kx.BottomRight:return r`
|
|
1468
1471
|
bottom: 0;
|
|
1469
1472
|
right: 0;
|
|
1470
|
-
animation-name: ${
|
|
1471
|
-
`;case
|
|
1473
|
+
animation-name: ${Vv.in.right};
|
|
1474
|
+
`;case kx.BottomLeft:return r`
|
|
1472
1475
|
bottom: 0;
|
|
1473
1476
|
left: 0;
|
|
1474
|
-
animation-name: ${
|
|
1475
|
-
`;case
|
|
1477
|
+
animation-name: ${Vv.in.left};
|
|
1478
|
+
`;case kx.TopCenter:return r`
|
|
1476
1479
|
top: 0;
|
|
1477
1480
|
left: 50%;
|
|
1478
|
-
animation-name: ${
|
|
1479
|
-
`;case
|
|
1481
|
+
animation-name: ${Vv.in.center};
|
|
1482
|
+
`;case kx.TopRight:return r`
|
|
1480
1483
|
top: 0;
|
|
1481
1484
|
right: 0;
|
|
1482
|
-
animation-name: ${
|
|
1483
|
-
`;case
|
|
1485
|
+
animation-name: ${Vv.in.right};
|
|
1486
|
+
`;case kx.TopLeft:return r`
|
|
1484
1487
|
top: 0;
|
|
1485
1488
|
left: 0;
|
|
1486
|
-
animation-name: ${
|
|
1489
|
+
animation-name: ${Vv.in.left};
|
|
1487
1490
|
`;default:return null}}}
|
|
1488
|
-
`,
|
|
1491
|
+
`,_x=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=kx.BottomCenter})=>i?e(Ix,{$position:a,children:[r&&t(L$,{...r}),t(I$,{onAnyClick:n,actions:o})]}):null,Dx=n.div`
|
|
1489
1492
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1490
1493
|
top: 50%;
|
|
1491
1494
|
left: 50%;
|
|
@@ -1506,7 +1509,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1506
1509
|
will-change: transform;
|
|
1507
1510
|
contain: layout paint;
|
|
1508
1511
|
|
|
1509
|
-
animation-name: ${({$closing:e})=>e?
|
|
1512
|
+
animation-name: ${({$closing:e})=>e?Vv.out.center:Vv.in.center};
|
|
1510
1513
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1511
1514
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1512
1515
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1515,9 +1518,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1515
1518
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1516
1519
|
don't compete with the slide-out. */
|
|
1517
1520
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1518
|
-
`,
|
|
1521
|
+
`,Rx=n(Pl)`
|
|
1519
1522
|
will-change: opacity;
|
|
1520
|
-
animation-name: ${({$closing:e})=>e?
|
|
1523
|
+
animation-name: ${({$closing:e})=>e?qv.out:qv.in};
|
|
1521
1524
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1522
1525
|
|
|
1523
1526
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1525,18 +1528,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1525
1528
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1526
1529
|
because the overlay is fading to 0. */
|
|
1527
1530
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1528
|
-
`,Rx=n.div`
|
|
1529
|
-
position: relative;
|
|
1530
1531
|
`,Lx=n.div`
|
|
1532
|
+
position: relative;
|
|
1533
|
+
`,Px=n.div`
|
|
1531
1534
|
position: absolute;
|
|
1532
1535
|
top: 16px;
|
|
1533
1536
|
left: 16px;
|
|
1534
|
-
`,
|
|
1537
|
+
`,Ux=({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(Wt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Wy(c),!c)return null;const g=e(i,{children:[!r&&t(Rx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Dx,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Lx,{children:[a&&t(Px,{children:t(AS,{icon:e=>t(At,{rotate:-90,...e}),size:OS.L,onClick:a})}),d]})})]});return o?g:Zt(g,document.body)},Mx=n.div`
|
|
1535
1538
|
position: relative;
|
|
1536
1539
|
width: ${64}px;
|
|
1537
1540
|
height: ${({$height:e})=>e};
|
|
1538
1541
|
flex-shrink: 0;
|
|
1539
|
-
`,
|
|
1542
|
+
`,Fx=n.aside`
|
|
1540
1543
|
position: absolute;
|
|
1541
1544
|
top: 0;
|
|
1542
1545
|
left: 0;
|
|
@@ -1556,7 +1559,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1556
1559
|
transition:
|
|
1557
1560
|
width 200ms ease,
|
|
1558
1561
|
padding 200ms ease;
|
|
1559
|
-
`,
|
|
1562
|
+
`,zx=n.button`
|
|
1560
1563
|
display: flex;
|
|
1561
1564
|
align-items: center;
|
|
1562
1565
|
width: 100%;
|
|
@@ -1576,20 +1579,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1576
1579
|
&:active {
|
|
1577
1580
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1578
1581
|
}
|
|
1579
|
-
`,
|
|
1582
|
+
`,Bx=n.div`
|
|
1580
1583
|
width: ${40}px;
|
|
1581
1584
|
height: ${40}px;
|
|
1582
1585
|
display: flex;
|
|
1583
1586
|
align-items: center;
|
|
1584
1587
|
justify-content: center;
|
|
1585
1588
|
flex-shrink: 0;
|
|
1586
|
-
`,
|
|
1589
|
+
`,jx=n.div`
|
|
1587
1590
|
flex: 1 1 0;
|
|
1588
1591
|
min-width: 0;
|
|
1589
1592
|
overflow: hidden;
|
|
1590
1593
|
padding-right: 12px;
|
|
1591
1594
|
pointer-events: none;
|
|
1592
|
-
`,
|
|
1595
|
+
`,Hx=({height:i,icons:n})=>{const r=o(),[a,s]=Ht(!1);return t(Mx,{$height:i,children:t(Fx,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(zx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(Bx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(jx,{children:t(Va,{size:ja.S,weight:500,color:Ha.Primary,nowrap:!0,children:n})})]},i))})})},Wx=n.div`
|
|
1593
1596
|
position: relative;
|
|
1594
1597
|
display: flex;
|
|
1595
1598
|
align-items: center;
|
|
@@ -1609,9 +1612,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1609
1612
|
inset: 0;
|
|
1610
1613
|
border-radius: 100%;
|
|
1611
1614
|
background-color: ${({theme:e,$color:t=e.v2.colors.purple[500]})=>t};
|
|
1612
|
-
animation: ${
|
|
1615
|
+
animation: ${Yv} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
1613
1616
|
}
|
|
1614
|
-
`,
|
|
1617
|
+
`,Gx=({color:e})=>{const i=o(),n=e||i.v2.colors.purple[500];return t(Wx,{children:t(Xx,{$color:n})})},Vx=n.div`
|
|
1615
1618
|
display: flex;
|
|
1616
1619
|
flex-direction: column;
|
|
1617
1620
|
gap: 16px;
|
|
@@ -1635,26 +1638,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1635
1638
|
}
|
|
1636
1639
|
`}
|
|
1637
1640
|
`}
|
|
1638
|
-
`,
|
|
1641
|
+
`,Kx=n.div`
|
|
1639
1642
|
display: flex;
|
|
1640
1643
|
align-items: center;
|
|
1641
1644
|
gap: 16px;
|
|
1642
1645
|
width: 100%;
|
|
1643
|
-
`,
|
|
1646
|
+
`,Yx=n.div`
|
|
1644
1647
|
display: flex;
|
|
1645
1648
|
flex-direction: column;
|
|
1646
1649
|
gap: 4px;
|
|
1647
1650
|
flex: 1;
|
|
1648
1651
|
min-width: 0;
|
|
1649
|
-
`,
|
|
1652
|
+
`,Jx=n.div`
|
|
1650
1653
|
display: flex;
|
|
1651
1654
|
align-items: center;
|
|
1652
1655
|
gap: 8px;
|
|
1653
1656
|
flex-wrap: wrap;
|
|
1654
1657
|
min-width: 0;
|
|
1655
|
-
`,
|
|
1658
|
+
`,qx=n.div`
|
|
1656
1659
|
width: 100%;
|
|
1657
|
-
`,
|
|
1660
|
+
`,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(Vx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Kx,{children:[t(bx,{"data-id":`${g}-radio`,value:c,onChange:m,size:gx.L,disabled:p}),e(Yx,{children:[e(Jx,{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(qx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(qx,{onClick:e=>e.stopPropagation(),children:d})]})},Zx=n.div`
|
|
1658
1661
|
width: 100%;
|
|
1659
1662
|
height: 100%;
|
|
1660
1663
|
|
|
@@ -1662,7 +1665,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1662
1665
|
animation: none !important;
|
|
1663
1666
|
transition: none !important;
|
|
1664
1667
|
}
|
|
1665
|
-
`,
|
|
1668
|
+
`,eC=({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=Xt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Wt(()=>{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(Zx,{children:p}):p},tC=[{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}],iC=tC[1].value,nC=tC[tC.length-1].value,rC=e=>({label:e?tC.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:nv.Secondary,size:rv.S}),oC=n.input`
|
|
1666
1669
|
width: 100px;
|
|
1667
1670
|
padding: 2px 12px;
|
|
1668
1671
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
@@ -1692,7 +1695,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1692
1695
|
opacity: 0.4;
|
|
1693
1696
|
}
|
|
1694
1697
|
`}
|
|
1695
|
-
`,
|
|
1698
|
+
`,aC=()=>(new Date).toISOString().split("T")[0],sC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},lC=({options:i=tC,maxAllowedValue:n=nC,defaultValue:r=iC,onApply:o,onClose:a})=>{const[s]=Ht(aC),[l,d]=Ht(r),[c,u]=Ht(()=>sC(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(av,{label:e,variant:nv.Text,size:rv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(sC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Dl,{$gap:24,children:[e(Dl,{children:[m,t(bS,{}),e(Dl,{$gap:12,$padding:"0 12px",children:[t(Va,{size:ja.XXS,color:Ha.Secondary,nowrap:!0,children:"Custom range"}),e(_l,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"From"}),t(oC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(_l,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"To"}),t(oC,{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(g$,{errorMessage:p}),e(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(av,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},dC=n.div`
|
|
1696
1699
|
display: flex;
|
|
1697
1700
|
flex-direction: column;
|
|
1698
1701
|
gap: 16px;
|
|
@@ -1701,66 +1704,67 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1701
1704
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1702
1705
|
width: 100%;
|
|
1703
1706
|
height: 100%;
|
|
1704
|
-
`,
|
|
1707
|
+
`,cC=n.div`
|
|
1705
1708
|
display: flex;
|
|
1706
1709
|
align-items: center;
|
|
1707
1710
|
gap: 16px;
|
|
1708
|
-
`,
|
|
1711
|
+
`,uC=n.div`
|
|
1709
1712
|
width: 50px;
|
|
1710
1713
|
height: 50px;
|
|
1711
1714
|
border-radius: 8px;
|
|
1712
1715
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1713
1716
|
background-size: 200% 100%;
|
|
1714
|
-
animation: ${
|
|
1715
|
-
`,
|
|
1717
|
+
animation: ${Jv} 10s infinite linear;
|
|
1718
|
+
`,pC=n(Dl)`
|
|
1716
1719
|
flex: 1;
|
|
1717
1720
|
gap: 12px;
|
|
1718
|
-
`,
|
|
1721
|
+
`,hC=n.div`
|
|
1719
1722
|
width: ${({$width:e})=>e};
|
|
1720
1723
|
height: 16px;
|
|
1721
1724
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1722
1725
|
background-size: 200% 100%;
|
|
1723
|
-
animation: ${
|
|
1726
|
+
animation: ${Jv} 1.5s infinite linear;
|
|
1724
1727
|
border-radius: 4px;
|
|
1725
|
-
`,
|
|
1728
|
+
`,gC=({size:i=5,maxWidth:n,maxHeight:r})=>t(dC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(cC,{children:[t(uC,{}),e(pC,{children:[t(hC,{$width:"80%"}),t(hC,{$width:"100%"})]})]},n))}),mC=({currentStep:i,data:n,gap:r=12})=>t(Dl,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(_l,{$gap:8,children:[r||n.forceDoneBadge?t(Lv,{status:Oi.Success,label:"",leftIcon:$t}):t(Lv,{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 fC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(fC||(fC={}));const bC=n.div`
|
|
1726
1729
|
${({$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 "}
|
|
1727
1730
|
width: 100%;
|
|
1728
1731
|
display: flex;
|
|
1729
1732
|
flex-direction: column;
|
|
1730
|
-
`,
|
|
1733
|
+
`,yC=n.div`
|
|
1731
1734
|
width: 100%;
|
|
1732
1735
|
flex: 1;
|
|
1733
1736
|
min-height: 0;
|
|
1734
1737
|
display: flex;
|
|
1735
1738
|
flex-direction: column;
|
|
1736
|
-
`,
|
|
1739
|
+
`,vC=n.div`
|
|
1737
1740
|
flex-shrink: 0;
|
|
1738
1741
|
position: relative;
|
|
1739
1742
|
z-index: 2;
|
|
1740
|
-
|
|
1743
|
+
`,$C=n.div`
|
|
1741
1744
|
flex: 1;
|
|
1742
1745
|
min-height: 0;
|
|
1743
1746
|
overflow: hidden;
|
|
1744
|
-
|
|
1747
|
+
`,wC=n.div`
|
|
1745
1748
|
position: relative;
|
|
1746
1749
|
display: flex;
|
|
1747
1750
|
width: 100%;
|
|
1748
1751
|
min-width: 100%;
|
|
1749
|
-
`,
|
|
1752
|
+
`,SC=n.div`
|
|
1750
1753
|
display: flex;
|
|
1751
1754
|
flex-direction: column;
|
|
1752
1755
|
flex-shrink: 0;
|
|
1753
1756
|
width: 100%;
|
|
1754
1757
|
min-width: 100%;
|
|
1755
|
-
`,
|
|
1758
|
+
`,xC=n.div`
|
|
1756
1759
|
width: 100%;
|
|
1757
1760
|
flex-shrink: 0;
|
|
1758
1761
|
${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
|
|
1759
|
-
`,
|
|
1762
|
+
`,CC=n.div`
|
|
1760
1763
|
position: relative;
|
|
1761
1764
|
/* Measured columns: pin to content width. Last column omits max so it can
|
|
1762
|
-
* stretch past the measured minimum (LAST_COLUMN_STRETCH).
|
|
1763
|
-
|
|
1765
|
+
* stretch past the measured minimum (LAST_COLUMN_STRETCH). Flex (non-measured)
|
|
1766
|
+
* columns use min-width: 0 so long labels can shrink/truncate inside the row. */
|
|
1767
|
+
min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
|
|
1764
1768
|
max-width: ${({$resolvedWidth:e,$isLast:t})=>null==e||t?void 0:`${e}px`};
|
|
1765
1769
|
flex: ${({$autoWidth:e,$resolvedWidth:t,$isLast:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
|
|
1766
1770
|
|
|
@@ -1776,15 +1780,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1776
1780
|
|
|
1777
1781
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1778
1782
|
background-color: ${t};
|
|
1779
|
-
`;switch(e){case
|
|
1783
|
+
`;switch(e){case fC.Data:return r`
|
|
1780
1784
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1781
|
-
`;case
|
|
1785
|
+
`;case fC.DataSecondary:return r`
|
|
1782
1786
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1783
1787
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1784
|
-
`;case
|
|
1788
|
+
`;case fC.Pretty:return r`
|
|
1785
1789
|
background-color: transparent;
|
|
1786
1790
|
`;default:return""}}}
|
|
1787
|
-
`,
|
|
1791
|
+
`,EC=n.div`
|
|
1788
1792
|
position: absolute;
|
|
1789
1793
|
top: 50%;
|
|
1790
1794
|
right: 0;
|
|
@@ -1792,9 +1796,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1792
1796
|
width: 1px;
|
|
1793
1797
|
height: 18px;
|
|
1794
1798
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1795
|
-
`,
|
|
1796
|
-
/* See Th — measured content width; last stretches. */
|
|
1797
|
-
min-width: ${({$resolvedWidth:e})=>null!=e?`${e}px`:"auto"};
|
|
1799
|
+
`,TC=n.div`
|
|
1800
|
+
/* See Th — measured content width; last stretches; flex columns shrink. */
|
|
1801
|
+
min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
|
|
1798
1802
|
max-width: ${({$resolvedWidth:e,$isLastCell:t})=>null==e||t?void 0:`${e}px`};
|
|
1799
1803
|
flex: ${({$autoWidth:e,$resolvedWidth:t,$isLastCell:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
|
|
1800
1804
|
|
|
@@ -1803,9 +1807,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1803
1807
|
flex-grow: 1;
|
|
1804
1808
|
`}
|
|
1805
1809
|
|
|
1806
|
-
/* Visible while measuring; then
|
|
1807
|
-
*
|
|
1808
|
-
overflow-x: ${({$autoWidth:e,$resolvedWidth:t})=>e&&null==t?"visible":"auto"};
|
|
1810
|
+
/* Visible while measuring; then clip/scroll when content exceeds the cell.
|
|
1811
|
+
* Flex (non-measured) columns use hidden so TruncatableTypography can ellipsis. */
|
|
1812
|
+
overflow-x: ${({$autoWidth:e,$resolvedWidth:t})=>e&&null==t?"visible":null!=t?"auto":"hidden"};
|
|
1809
1813
|
overflow-y: hidden;
|
|
1810
1814
|
display: flex;
|
|
1811
1815
|
align-items: center;
|
|
@@ -1814,20 +1818,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1814
1818
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1815
1819
|
box-sizing: border-box;
|
|
1816
1820
|
|
|
1817
|
-
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case
|
|
1821
|
+
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case fC.Data:return r`
|
|
1818
1822
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1819
1823
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1820
1824
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1821
|
-
`;case
|
|
1825
|
+
`;case fC.DataSecondary:return r`
|
|
1822
1826
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1823
1827
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1824
1828
|
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]};
|
|
1825
|
-
`;case
|
|
1829
|
+
`;case fC.Pretty:return r`
|
|
1826
1830
|
border: none;
|
|
1827
1831
|
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1828
1832
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1829
1833
|
`;default:return""}}}
|
|
1830
|
-
`,
|
|
1834
|
+
`,OC=n.div`
|
|
1831
1835
|
/* Off-screen — must not contribute to Container scrollWidth. */
|
|
1832
1836
|
position: fixed;
|
|
1833
1837
|
top: 0;
|
|
@@ -1840,24 +1844,24 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1840
1844
|
align-items: flex-start;
|
|
1841
1845
|
width: max-content;
|
|
1842
1846
|
white-space: nowrap;
|
|
1843
|
-
`,
|
|
1847
|
+
`,NC=n.div`
|
|
1844
1848
|
display: inline-flex;
|
|
1845
1849
|
align-items: center;
|
|
1846
1850
|
padding: 18px 24px;
|
|
1847
1851
|
border: 1px solid transparent;
|
|
1848
1852
|
box-sizing: border-box;
|
|
1849
1853
|
white-space: nowrap;
|
|
1850
|
-
`,
|
|
1854
|
+
`,AC=n.div`
|
|
1851
1855
|
display: inline-flex;
|
|
1852
1856
|
align-items: center;
|
|
1853
1857
|
gap: 4px;
|
|
1854
1858
|
white-space: nowrap;
|
|
1855
|
-
`,
|
|
1859
|
+
`,kC=n.div`
|
|
1856
1860
|
display: inline-flex;
|
|
1857
1861
|
align-items: center;
|
|
1858
1862
|
flex-shrink: 0;
|
|
1859
1863
|
gap: 4px;
|
|
1860
|
-
`,
|
|
1864
|
+
`,IC=n.div`
|
|
1861
1865
|
width: 100%;
|
|
1862
1866
|
height: 100%;
|
|
1863
1867
|
display: flex;
|
|
@@ -1866,7 +1870,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1866
1870
|
gap: 4px;
|
|
1867
1871
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1868
1872
|
min-width: 0;
|
|
1869
|
-
`,
|
|
1873
|
+
`,_C=({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(nx,{isOpen:y,actions:D,positionRight:u,positionLeft:p}):null,z=e(i,{children:[h&&t(TC,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(iv,{text:O,children:t(y$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(y$,{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=l.has(i),b=c?.component?c.component():t(P$,{size:ja.XXS,align:o,nowrap:!0,fullWidth:!f,children:c?.rawValue||"-"}),y=e(_l,{$width:"100%",$gap:k&&g?8:0,$justifyContent:m,style:{minWidth:0},children:[k&&g?t(I?Et:Ut,{}):null,b]});return t(TC,{$variant:n,$index:a,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(u,p),children:y},`row-${a}-cell-${s}`)})]}),B={onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)};return k?e(SC,{"data-table-row-index":a,children:[e(wC,{...B,children:[z,F]}),null!=M&&e(i,{children:[t(xC,{$maxHeight:b,children:M}),!R&&t(bS,{margin:"0"})]})]}):e(wC,{"data-table-row-index":a,...B,children:[z,F]})},DC=({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(_C,{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(eC,{gap:e===fC.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},RC=({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(av,{variant:nv.Text,size:rv.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},LC=({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(A$,{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})}})},PC=({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(wC,{children:[h&&t(CC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(y$,{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(P$,{size:ja.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return e(CC,{$variant:i,$backgroundColor:n,$isFirst:S,$isLast:x,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(IC,{$textAlign:$,children:[f?t(iv,{text:f,children:C}):C,(!b||!y)&&e(kC,{children:[!b&&t(RC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!y&&t(LC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:v})]})]}),!x&&i===fC.Data&&t(EC,{})]},`column-${g}`)})]}),UC=()=>{},MC={},FC=[],zC=e=>[],BC=({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,_=Xt(e=>{C(e),S(e=>e===fi.Ascending?fi.Descending:fi.Ascending)},[]),D=Xt((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&&!1!==i.autoWidth&&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(AC,{children:[t(Va,{size:ja.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(kC,{children:[!r.noSort&&t(RC,{columnKey:r.key,sortDirection:fi.Ascending,sortByKey:"",onSort:UC}),!r.noFilter&&t(LC,{columnKey:r.key,filters:MC,onFilter:UC,rowsUnfiltered:FC,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(_l,{$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),[W,X]=Ht(0),G=R.some(e=>null!=e.expandedContent);Kt(()=>{if(!G)return void X(0);const e=H.current;if(!e)return;const t=()=>{const t=e.clientHeight;X(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[G,R.length]);const V=Xt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),K=G&&W>0?`${W}px`:void 0,Y=r&&null!=n&&R.length>=100,J=!r||Y;return e(bC,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(OC,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(NC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(yC,{$variant:i,children:[!a&&t(vC,{children:t(PC,{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?J?t($C,{ref:G?H:void 0,children:t(DC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||zC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(DC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||zC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!1,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(Rl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(gC,{size:3,maxHeight:n}):t(c$,{...l})})]})]})},jC=n.div`
|
|
1870
1874
|
padding: 6px 12px;
|
|
1871
1875
|
|
|
1872
1876
|
display: flex;
|
|
@@ -1884,7 +1888,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1884
1888
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1885
1889
|
}
|
|
1886
1890
|
`}
|
|
1887
|
-
`,
|
|
1891
|
+
`,HC=n.textarea`
|
|
1888
1892
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1889
1893
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1890
1894
|
flex: 1;
|
|
@@ -1909,19 +1913,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1909
1913
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1910
1914
|
}
|
|
1911
1915
|
}
|
|
1912
|
-
`,
|
|
1916
|
+
`,WC=({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(Dl,{$gap:6,children:[t(h$,{label:i,tooltip:r,required:n,badge:o}),t(jC,{$disabled:p,$error:!!a,children:t(HC,{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(g$,{errorMessage:a,warnMessage:s,helpMessage:l})]})},XC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],GC=n.div`
|
|
1913
1917
|
flex: 1;
|
|
1914
1918
|
min-width: 0;
|
|
1915
|
-
`,
|
|
1919
|
+
`,VC=n.div`
|
|
1916
1920
|
flex: 0 0 auto;
|
|
1917
1921
|
min-width: 140px;
|
|
1918
|
-
`,
|
|
1922
|
+
`,KC=({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(Dl,{$width:b,$gap:6,children:[t(h$,{label:n,tooltip:r,required:s,badge:o}),e(_l,{$gap:8,$alignItems:"center",children:[t(GC,{children:t(lw,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(fd(e.target.value),$)})}),t(VC,{children:t(JS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(g$,{errorMessage:h,warnMessage:g,helpMessage:m})]})},YC=n.div`
|
|
1919
1923
|
display: flex;
|
|
1920
1924
|
flex-direction: column;
|
|
1921
1925
|
min-width: 0;
|
|
1922
1926
|
width: 100%;
|
|
1923
1927
|
flex: 1;
|
|
1924
|
-
`,
|
|
1928
|
+
`,JC=n.div`
|
|
1925
1929
|
display: flex;
|
|
1926
1930
|
flex-wrap: wrap;
|
|
1927
1931
|
align-items: center;
|
|
@@ -1938,19 +1942,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1938
1942
|
border-top-left-radius: 12px;
|
|
1939
1943
|
border-top-right-radius: 12px;
|
|
1940
1944
|
`;default:return r``}}}
|
|
1941
|
-
`,
|
|
1945
|
+
`,qC=n.div`
|
|
1942
1946
|
display: flex;
|
|
1943
1947
|
align-items: center;
|
|
1944
1948
|
gap: 4px;
|
|
1945
1949
|
min-width: 0;
|
|
1946
|
-
`,
|
|
1950
|
+
`,QC=n.div`
|
|
1947
1951
|
display: flex;
|
|
1948
1952
|
align-items: center;
|
|
1949
1953
|
justify-content: center;
|
|
1950
1954
|
padding: 4px;
|
|
1951
1955
|
border-radius: 4px;
|
|
1952
1956
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1953
|
-
`,
|
|
1957
|
+
`,ZC=n.div`
|
|
1954
1958
|
display: flex;
|
|
1955
1959
|
flex-direction: column;
|
|
1956
1960
|
width: 100%;
|
|
@@ -1978,7 +1982,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1978
1982
|
border-bottom-left-radius: 8px;
|
|
1979
1983
|
border-bottom-right-radius: 8px;
|
|
1980
1984
|
`;default:return r``}}}
|
|
1981
|
-
`,
|
|
1985
|
+
`,eE=r`
|
|
1982
1986
|
${({theme:e,$variant:t})=>{switch(t){case"timing":return r`
|
|
1983
1987
|
background-color: ${e.v2.colors.yellow[1e3]};
|
|
1984
1988
|
border-left: 2px solid ${e.v2.colors.yellow[500]};
|
|
@@ -1996,7 +2000,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1996
2000
|
${({$selected:e,$variant:t,theme:i})=>e&&"default"===t&&r`
|
|
1997
2001
|
border-left-color: ${i.v2.colors.silver[500]};
|
|
1998
2002
|
`}
|
|
1999
|
-
`,
|
|
2003
|
+
`,tE=n.button`
|
|
2000
2004
|
display: flex;
|
|
2001
2005
|
flex-direction: column;
|
|
2002
2006
|
align-items: stretch;
|
|
@@ -2010,12 +2014,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2010
2014
|
color: inherit;
|
|
2011
2015
|
font: inherit;
|
|
2012
2016
|
cursor: ${({$interactive:e})=>e?"pointer":"default"};
|
|
2013
|
-
${
|
|
2017
|
+
${eE}
|
|
2014
2018
|
|
|
2015
2019
|
&:last-child {
|
|
2016
2020
|
box-shadow: none;
|
|
2017
2021
|
}
|
|
2018
|
-
`,
|
|
2022
|
+
`,iE=n.div`
|
|
2019
2023
|
display: flex;
|
|
2020
2024
|
align-items: center;
|
|
2021
2025
|
gap: 8px;
|
|
@@ -2024,16 +2028,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2024
2028
|
padding: 0 8px;
|
|
2025
2029
|
padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
|
|
2026
2030
|
box-sizing: border-box;
|
|
2027
|
-
`,
|
|
2031
|
+
`,nE=n(Va)`
|
|
2028
2032
|
flex-shrink: 0;
|
|
2029
2033
|
min-width: 10px;
|
|
2030
|
-
`,
|
|
2034
|
+
`,rE=n.div`
|
|
2031
2035
|
display: flex;
|
|
2032
2036
|
flex: 1;
|
|
2033
2037
|
align-items: center;
|
|
2034
2038
|
gap: 4px;
|
|
2035
2039
|
min-width: 0;
|
|
2036
|
-
`,
|
|
2040
|
+
`,oE=n.div`
|
|
2037
2041
|
display: flex;
|
|
2038
2042
|
flex-shrink: 0;
|
|
2039
2043
|
align-items: center;
|
|
@@ -2043,22 +2047,22 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2043
2047
|
overflow: hidden;
|
|
2044
2048
|
border-radius: 4px;
|
|
2045
2049
|
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
2046
|
-
`,
|
|
2050
|
+
`,aE=n(Va)`
|
|
2047
2051
|
width: 100%;
|
|
2048
2052
|
overflow: hidden;
|
|
2049
2053
|
font-family: ${({theme:e})=>e.font_family.code};
|
|
2050
2054
|
line-height: 16px;
|
|
2051
2055
|
text-overflow: ellipsis;
|
|
2052
2056
|
white-space: nowrap;
|
|
2053
|
-
`,
|
|
2057
|
+
`,sE=n.div`
|
|
2054
2058
|
display: flex;
|
|
2055
2059
|
flex: 1;
|
|
2056
2060
|
align-items: center;
|
|
2057
2061
|
gap: 8px;
|
|
2058
2062
|
min-width: 0;
|
|
2059
|
-
`,
|
|
2063
|
+
`,lE=n(Va)`
|
|
2060
2064
|
flex-shrink: 0;
|
|
2061
|
-
`,
|
|
2065
|
+
`,dE=n.div`
|
|
2062
2066
|
display: flex;
|
|
2063
2067
|
flex-shrink: 0;
|
|
2064
2068
|
align-items: center;
|
|
@@ -2077,18 +2081,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2077
2081
|
background-color: ${e.v2.colors.green[900]};
|
|
2078
2082
|
color: ${e.v2.colors.green[300]};
|
|
2079
2083
|
`}}}
|
|
2080
|
-
`,
|
|
2084
|
+
`,cE=n.div`
|
|
2081
2085
|
display: flex;
|
|
2082
2086
|
flex: 1;
|
|
2083
2087
|
align-items: center;
|
|
2084
2088
|
gap: 4px;
|
|
2085
2089
|
min-width: 0;
|
|
2086
|
-
`,
|
|
2090
|
+
`,uE=n.div`
|
|
2087
2091
|
display: flex;
|
|
2088
2092
|
flex-direction: column;
|
|
2089
2093
|
width: 100%;
|
|
2090
2094
|
box-sizing: border-box;
|
|
2091
|
-
`,
|
|
2095
|
+
`,pE=n.div`
|
|
2092
2096
|
display: flex;
|
|
2093
2097
|
align-items: center;
|
|
2094
2098
|
width: 100%;
|
|
@@ -2097,20 +2101,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2097
2101
|
box-sizing: border-box;
|
|
2098
2102
|
background-color: ${({theme:e})=>e.v2.colors.green[900]};
|
|
2099
2103
|
border-left: 2px solid ${({theme:e})=>e.v2.colors.green[500]};
|
|
2100
|
-
`,
|
|
2104
|
+
`,hE=(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]}},gE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(uE,{children:e(Dl,{$gap:0,children:[i.scopePlaceholder?t(pE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})}):r?t(ux,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(pE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(ux,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},mE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l="placeholder"!==s,d=i.depth??0,c=Xt(()=>{l&&r(i.id)},[l,r,i.id]);if("placeholder"===s)return t(tE,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(iE,{$depth:d,children:t(cE,{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(tE,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(iE,{$depth:d,children:[t(nE,{size:ja.XXXS,color:Ha.Disable,nowrap:!0,children:i.index??""}),e(rE,{children:[i.service?t(oE,{title:i.service,children:t(aE,{size:ja.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(sE,{children:[t(Va,{size:ja.XXXS,color:n||"default"!==s?Ha.Primary:Ha.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(dE,{$tone:p,children:[t(Va,{size:ja.XXXS,color:hE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:hE(a,p)}):null]}):null]}),i.durationLabel?t(lE,{size:ja.XXXS,color:h??Ha.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(gE,{row:i}):null]})},fE=({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=Xt(e=>{d?.(e)},[d]),g=!!(n||i||r?.label||a?.length),m="success"===r?.tone?u.v2.colors.green[500]:"danger"===r?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===r?.tone?u.v2.colors.black[500]:"danger"===r?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(YC,{children:[g&&e(JC,{$corner:c??"both",children:[(n||i)&&e(qC,{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(Lv,{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(ZC,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(mE,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(_l,{$justifyContent:"center",style:{padding:16},children:t(Va,{size:ja.XXXS,color:Ha.Secondary,children:"No spans"})})})]})},bE=n.div`
|
|
2101
2105
|
min-width: 500px;
|
|
2102
|
-
`,
|
|
2106
|
+
`,yE=n.div`
|
|
2103
2107
|
display: flex;
|
|
2104
2108
|
flex-direction: column;
|
|
2105
2109
|
align-items: center;
|
|
2106
2110
|
gap: 16px;
|
|
2107
2111
|
padding: 24px;
|
|
2108
2112
|
width: 100%;
|
|
2109
|
-
`,
|
|
2113
|
+
`,vE=n.div`
|
|
2110
2114
|
display: flex;
|
|
2111
2115
|
justify-content: center;
|
|
2112
2116
|
gap: 16px;
|
|
2113
2117
|
padding: 16px 24px;
|
|
2114
2118
|
width: 100%;
|
|
2115
2119
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2116
|
-
|
|
2120
|
+
`,$E=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Ux,{isOpen:o,onClose:a,...c,children:e(bE,{children:[e(yE,{children:[i&&t(i,{}),t(Va,{size:ja.M,weight:500,color:Ha.Primary,children:n}),t(Dl,{$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(vE,{children:[s&&t(av,{"data-id":"deny",...s}),l&&t(av,{"data-id":"approve",...l})]})]})});export{dw as $,k$ as A,av as B,Rl as C,YS as D,H$ as E,Dl as F,jS as G,Ju as H,Ax as I,tp as J,Dv as K,ip as L,np as M,c$ as N,qu as O,yi as P,wi as Q,L$ as R,Oi as S,iv as T,_u as U,wl as V,$E as W,Ms as X,Y$ as Y,Uu as Z,o$ as _,I$ as a,$s as a$,Vu as a0,m$ as a1,rp as a2,op as a3,Iu as a4,ss as a5,bS as a6,Cx as a7,Zv as a8,Gc as a9,A$ as aA,du as aB,Cu as aC,sp as aD,$u as aE,Zu as aF,lp as aG,ap as aH,dp as aI,cp as aJ,Hu as aK,cu as aL,hu as aM,gu as aN,bu as aO,vu as aP,yu as aQ,Au as aR,eu as aS,tu as aT,su as aU,Wu as aV,Xu as aW,Yu as aX,sg as aY,iu as aZ,ku as a_,Tu 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,Lu as ak,pu as al,Ru as am,uu as an,Fu as ao,Eu as ap,Du as aq,Mu as ar,Ku as as,Ou as at,bx as au,Gu as av,Su as aw,lu as ax,xu as ay,wu as az,bi as b,gC as b$,lg as b0,eC as b1,Wl as b2,l$ as b3,sv as b4,_s as b5,nS as b6,_y as b7,Za as b8,ll as b9,Vi as bA,hd as bB,Av 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,Wo as bU,Fa as bV,Ma as bW,lc as bX,Li as bY,Xv as bZ,Il as b_,Si as ba,xi as bb,Ey as bc,Py as bd,zy as be,Dy as bf,Js as bg,Ja as bh,Dn as bi,en as bj,Gs as bk,Fc as bl,Mc as bm,Pc as bn,Uc as bo,nd as bp,dc as bq,id as br,By as bs,Nn as bt,si as bu,oi as bv,rd as bw,od as bx,Pn as by,gd as bz,zc as c,jo as c$,En as c0,Lv as c1,li as c2,Bc as c3,hi as c4,jc as c5,gx as c6,P$ as c7,Ka as c8,Pd 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,Xr as cK,Br as cL,zr as cM,Wr as cN,Hr as cO,jr as cP,Jr as cQ,Yr as cR,Kr as cS,Vr as cT,_x as cU,no as cV,Fn as cW,Mn as cX,io as cY,kx as cZ,Bo as c_,oc as ca,ec as cb,tc as cc,nc as cd,ic as ce,Sp as cf,Nu as cg,Pu as ch,xp as ci,ju as cj,wp as ck,ou as cl,au as cm,mu 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,h$ as d,Ta as d$,Ho as d0,Go as d1,Yn as d2,Jn as d3,Xn as d4,Xo as d5,Eo as d6,Co as d7,bv 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,kv 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,Wn 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,Gd 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,mv as eB,rs as eC,Ui as eD,ns as eE,Vd as eF,ux as eG,Fs as eH,Kw as eI,Ay as eJ,ql as eK,Jl as eL,Hs as eM,ox as eN,Ny as eO,sl as eP,ks as eQ,Gl as eR,Ky as eS,qd as eT,Yd as eU,cd as eV,dl as eW,Xl as eX,zs as eY,Ai as eZ,Hd as e_,ar as ea,sr as eb,lr as ec,or as ed,nr as ee,_n as ef,ai as eg,AS as eh,OS as ei,Un as ej,Ws as ek,sc as el,Ba as em,qa as en,gi as eo,Qx as ep,Ds as eq,cS as er,bs as es,mS as et,On as eu,pd as ev,Es as ew,Ql as ex,qs as ey,Nv as ez,Ha as f,tm as f$,e$ as f0,BC as f1,fC as f2,fu as f3,Vc as f4,nl as f5,Bs as f6,wn as f7,Sn as f8,xn as f9,rg as fA,ag as fB,og as fC,Np as fD,Tp as fE,Ep as fF,Op as fG,Rp as fH,Dp as fI,Up as fJ,Pp as fK,Ip as fL,kp as fM,Wc as fN,fp as fO,Xf as fP,Rf as fQ,Lf as fR,Ef as fS,Tf as fT,jm as fU,Vm as fV,Xm as fW,Km as fX,Gm as fY,Ym as fZ,im as f_,Ec as fa,Ic as fb,Cc as fc,kc as fd,_c as fe,xc as ff,Nc as fg,bc as fh,yc as fi,Ac as fj,Tc as fk,Oc as fl,Lc as fm,fc as fn,wc as fo,Sc as fp,$c as fq,vc as fr,uc as fs,cc as ft,Rc as fu,Dc as fv,Hc as fw,Yc as fx,Xc as fy,Kc as fz,ja as g,gm as g$,cf as g0,df as g1,uf as g2,bf as g3,Ug as g4,hf as g5,pf as g6,Uf as g7,Mf as g8,Cf as g9,ef as gA,Qf as gB,tb as gC,Am as gD,km as gE,hy as gF,gy as gG,yy as gH,wy as gI,Im as gJ,Cm as gK,wm as gL,$m as gM,iy as gN,Zg as gO,Qg as gP,ty as gQ,qg as gR,Jg as gS,am as gT,om as gU,db as gV,lm as gW,yS as gX,sm as gY,hm as gZ,pm as g_,xf as ga,Nf as gb,Of as gc,kf as gd,Af as ge,Wf as gf,Yf as gg,Jf as gh,Vf as gi,Kf as gj,zm as gk,Bm as gl,Um as gm,Mm as gn,Fm as go,Lm as gp,Rm as gq,_m as gr,Pm as gs,Nm as gt,jf as gu,Om as gv,Em as gw,Tm as gx,Bf as gy,Yg as gz,_l as h,bh as h$,fm as h0,bm as h1,vm as h2,ym as h3,um as h4,cm as h5,dm as h6,fy as h7,Eg as h8,ay as h9,qh as hA,Qh as hB,Zh as hC,eg as hD,tg as hE,ig as hF,Bp as hG,Hp as hH,Wp as hI,Xp as hJ,Vp as hK,Gp as hL,Yp as hM,Kp as hN,qp as hO,Jp as hP,Qp as hQ,Mp as hR,Fp as hS,ah as hT,sh as hU,hh as hV,uh as hW,ph as hX,dh as hY,ch as hZ,lh as h_,ly as ha,sy as hb,nm as hc,dy as hd,cy as he,uy as hf,py as hg,Df as hh,Cg as hi,eb as hj,Zf as hk,hv as hl,ad as hm,yv as hn,Ux as ho,Ty as hp,ng as hq,zp as hr,Zp as hs,eh as ht,th as hu,ih as hv,rh as hw,nh as hx,oh as hy,Nl as hz,rv as i,go as i$,yh as i0,mh as i1,fh as i2,gh as i3,$h as i4,wh as i5,vh as i6,jp as i7,jh as i8,Hh as i9,Ah as iA,Ih as iB,Lh as iC,rl as iD,Al as iE,tw as iF,Ns as iG,dn as iH,ln as iI,sn as iJ,pn as iK,un as iL,gn as iM,Tv as iN,iC as iO,lC as iP,rC as iQ,Is as iR,fE as iS,Ld as iT,Ln as iU,Rn as iV,Dw as iW,Gx as iX,rn as iY,er as iZ,vr as i_,Wh as ia,Bh as ib,Gh as ic,Vh as id,Kh as ie,Yh as ig,Jh as ih,Xh as ii,Fh as ij,zh as ik,kh as il,Ph as im,Uh as io,Mh as ip,_h as iq,Rh as ir,Dh as is,Sh as it,xh as iu,Ch as iv,Eh as iw,Th as ix,Oh as iy,Nh as iz,nv as j,ib as j$,mo as j0,jn as j1,zn as j2,fo as j3,Hn as j4,bo as j5,Bn as j6,xo as j7,ho as j8,tr as j9,Vs as jA,Xs as jB,Xy as jC,Ts as jD,Cs as jE,xs as jF,Ya as jG,cl as jH,Hi as jI,Q$ as jJ,Qc as jK,Jc as jL,qc as jM,Zc as jN,ep as jO,Cp as jP,mp as jQ,hp as jR,gp as jS,pp as jT,up as jU,vp as jV,$p as jW,yp as jX,bp as jY,fv as jZ,ab as j_,ir as ja,Zn as jb,ro as jc,oo as jd,ao as je,Sr as jf,wr as jg,$r as jh,to as ji,yr as jj,Hw as jk,Rw as jl,bn as jm,kl as jn,mC as jo,Iy as jp,Os as jq,Qa as jr,Kd as js,$v as jt,Oy as ju,Uy as jv,Ks as jw,Rs as jx,Ls as jy,Ys as jz,g$ as k,Pi as k$,nb as k0,ob as k1,rb as k2,fb as k3,Db as k4,gb as k5,bb as k6,vb as k7,yb as k8,ey as k9,kg as kA,Ig as kB,_g as kC,Dg as kD,Xg as kE,Rg as kF,Lg as kG,Vg as kH,Gg as kI,Ag as kJ,ug as kK,cg as kL,_i as kM,ui as kN,ki as kO,Ri as kP,vn as kQ,yn as kR,fn as kS,tn as kT,vi as kU,$i as kV,Ni as kW,pi as kX,Cn as kY,mi as kZ,ci as k_,qb as ka,Jb as kb,ny as kc,oy as kd,ry as ke,$b as kf,wb as kg,Sb as kh,Rb as ki,Lb as kj,Pg as kk,Mg as kl,Fg as km,zg as kn,Bg as ko,bg as kp,vg as kq,$g as kr,wg as ks,Sg as kt,vf as ku,xg as kv,sf as kw,jg as kx,Hg as ky,Wg as kz,ts as l,ru as l$,Ci as l0,Gi as l1,Xi as l2,Wi as l3,Di as l4,$n as l5,Zi as l6,Qi as l7,Ki as l8,fi as l9,fd as lA,bd as lB,yd as lC,Ud as lD,Md as lE,Ss as lF,Fd as lG,zd as lH,Tn as lI,Qd as lJ,Qu as lK,yo as lL,wo as lM,Lp as lN,_p as lO,Ap as lP,zu as lQ,Bu as lR,zo as lS,Fo as lT,Mo as lU,Uo as lV,_o as lW,Lo as lX,Io as lY,Ro as lZ,Po as l_,di as la,Ii as lb,xl as lc,Sl as ld,Tl as le,ys as lf,os as lg,vs as lh,md as li,As as lj,Us as lk,ws as ll,js as lm,is as ln,Zs as lo,el as lp,tl as lq,il as lr,ol as ls,Vl as lt,Zl as lu,ed as lv,td as lw,sd as lx,ld as ly,ud as lz,es as m,Hb as m$,nu as m0,Jd as m1,hc as m2,gc as m3,mc as m4,pc as m5,dg as m6,Hf as m7,tf as m8,nf as m9,Gf as mA,Kg as mB,mb as mC,mg as mD,gg as mE,hg as mF,mf as mG,cb as mH,lb as mI,hb as mJ,pb as mK,ub as mL,sb as mM,mm as mN,Zm as mO,qm as mP,Qm as mQ,Jm as mR,jb as mS,Bb as mT,Ub as mU,Fb as mV,Mb as mW,zb as mX,Kb as mY,Gb as mZ,Xb as m_,rf as ma,wf as mb,Sf as mc,_b as md,Ib as me,kb as mf,xb as mg,Tb as mh,Ab as mi,Cb as mj,Ob as mk,Eb as ml,Nb as mm,qf as mn,Tg as mo,zf as mp,fg as mq,my as mr,Hm as ms,Wm as mt,of as mu,Pf as mv,Dm as mw,Ng as mx,Og as my,yg as mz,Ei as n,TS as n$,Wb as n0,Pb as n1,Vb as n2,af as n3,Sm as n4,ff as n5,vy as n6,$y as n7,Ff as n8,$f as n9,cv as nA,pv as nB,gv as nC,Yy as nD,Sv as nE,Wv as nF,Qv as nG,Gv as nH,Hv as nI,hw as nJ,gw as nK,$$ as nL,XC as nM,QS as nN,tx as nO,nx as nP,ax as nQ,Ul as nR,Hx as nS,Pl as nT,Mv as nU,vx as nV,W$ as nW,Ml as nX,Fl as nY,zl as nZ,qw as n_,rm as na,xy as nb,Sy as nc,by as nd,If as ne,pg as nf,em as ng,_f as nh,lf as ni,Zb as nj,Qb as nk,Yb as nl,yf as nm,gf as nn,xm as no,kn as np,In as nq,Yo as nr,Zd as ns,Gy as nt,Ev as nu,Vy as nv,Hy as nw,vv as nx,Wy as ny,lv as nz,CS as o,Ll as o0,Xa as o1,$S as p,vS as q,KC as r,y$ as s,ri as t,JS as u,WC as v,ls as w,hx as x,lw as y,Ti as z};
|