@odigos/ui-kit 0.0.282 → 0.0.283
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 +8 -0
- package/lib/chunks/{helpers-CAVGqyMb.js → helpers-BfXS2wve.js} +1 -1
- package/lib/chunks/{index-Cy3rRes8.js → index--HGLHoM2.js} +1 -1
- package/lib/chunks/source-instrument-form-context-CNsR2QcD.js +5 -0
- package/lib/chunks/{ui-components-Dcg3x769.js → ui-components-DLU_wMXv.js} +28 -28
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers.js +220 -220
- package/lib/contexts/odigos-api/capabilities.d.ts +2 -1
- package/lib/contexts/odigos-api/hooks/use-profiling-api.d.ts +14 -4
- package/lib/contexts/odigos-api/types.d.ts +5 -3
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +3 -1
- package/lib/types/sources/index.d.ts +56 -0
- package/lib/types/workload/index.d.ts +1 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/source-instrument-form-context-DSXDMVmM.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as o,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as c,EnrichmentIcon as d,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as E,SwiftLogo as $,RustLogo as S,RubyLogo as C,PhpLogo as x,CPlusPlusLogo as w,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as _,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as k,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as M,TempoLogo as F,TelemetryHubLogo as U,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,AwsS3Logo as W,QuickwitLogo as G,GigapipeLogo as X,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 ne,MiddlewareLogo as re,LumigoLogo as oe,LokiLogo as ie,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as ce,JaegerLogo as de,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as Ee,DatadogLogo as $e,Dash0Logo as Se,CoralogixLogo as Ce,AwsCloudwatchLogo as xe,ClickhouseLogo as we,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as _e,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as ke,AlibabaCloudLogo as Le,AlaudaLogo as Pe,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as Ue,SourceIcon as ze,NamespacesIcon as Be,PayloadCollectionIcon as He,HeadersCollectionIcon as je,CustomInstrumentationIcon as We,CodeAttributesIcon as Ge,TracesIcon as Xe,MetricsIcon as Ve,LogsIcon as Ke,EcsLogo as Ye,CloudConnectorIcon as Je,VmLogo as qe,K8sLogo as Qe,DotsHorizontalIcon as Ze,QuestionCircleIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as ut,AwsLambdaLogo as pt,AwsSnsLogo as ht,AwsSqsLogo as gt,AwsDynamoDbLogo as mt,AwsStsLogo as ft,OpenTelemetryLogoStripped as yt,CodeIcon as bt,VIcon as vt,CopyIcon as Et,SearchIcon as $t,XIcon as St,MinusIcon as Ct,ChevronUpIcon as xt,ChevronDownIcon as wt,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as It,PlusIcon as _t,TrashIcon as Rt,DotIcon as Dt,ArrowRightIcon as kt,FilterIcon as Lt}from"../icons.js";import{create as Pt}from"zustand";import{forwardRef as Mt,Fragment as Ft,useState as Ut,useEffect as zt,useCallback as Bt,useMemo as Ht,useRef as jt,useLayoutEffect as Wt,createElement as Gt}from"react";import Xt from"javascript-time-ago";import Vt from"javascript-time-ago/locale/en";import Kt,{createPortal as Yt}from"react-dom";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{persist as Qt,createJSONStorage as Zt}from"zustand/middleware";import{ErrorBoundary as en}from"react-error-boundary";import{VList as tn}from"virtua";const nn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)};var rn,on,an,sn,ln,cn,dn,un,pn,hn,gn,mn,fn,yn,bn,vn,En,$n,Sn,Cn,xn,wn,Tn,On,Nn,An,In,_n,Rn,Dn,kn,Ln,Pn,Mn,Fn,Un,zn,Bn,Hn,jn,Wn,Gn,Xn,Vn;(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"})(rn||(rn={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(on||(on={})),(e=>{e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(an||(an={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(sn||(sn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ln||(ln={})),(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"})(cn||(cn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(dn||(dn={})),(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"})(un||(un={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(pn||(pn={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(hn||(hn={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(gn||(gn={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(mn||(mn={})),(e=>{e.Community="community",e.Onprem="onprem"})(fn||(fn={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yn||(yn={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(bn||(bn={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(vn||(vn={})),(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"})(En||(En={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})($n||($n={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})(Sn||(Sn={})),(e=>{e.DataStream="DataStream"})(Cn||(Cn={})),(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"})(xn||(xn={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(wn||(wn={})),(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"})(Tn||(Tn={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(On||(On={})),(e=>{e.RolloutWorkload="RolloutWorkload"})(Nn||(Nn={})),(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"})(An||(An={})),(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"})(In||(In={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_n||(_n={})),(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"})(Rn||(Rn={})),(e=>{e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(Dn||(Dn={})),(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"})(kn||(kn={})),(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"})(Ln||(Ln={})),(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"})(Pn||(Pn={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Mn||(Mn={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fn||(Fn={})),(e=>{e.HeaderKeys="headerKeys"})(Un||(Un={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(zn||(zn={}));class Kn{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 Yn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,r){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=r||""}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 Jn{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"})(Bn||(Bn={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hn||(Hn={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(jn||(jn={})),(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"})(Wn||(Wn={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gn||(Gn={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Xn||(Xn={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Vn||(Vn={}));const qn={[Xn.Logs]:Vn.Logs,[Xn.Metrics]:Vn.Metrics,[Xn.Traces]:Vn.Traces,[Xn.Profiles]:Vn.Profiles},Qn={[Vn.Logs]:Xn.Logs,[Vn.Metrics]:Xn.Metrics,[Vn.Traces]:Xn.Traces,[Vn.Profiles]:Xn.Profiles};var Zn;(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Zn||(Zn={}));const er={[on.Enrichment]:{TITLE:"Enrichment",ICON:d},[on.Normalization]:{TITLE:"Normalization",ICON:c},[on.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},tr={[rn.AddClusterInfo]:on.Enrichment,[rn.K8sAttributes]:on.Enrichment,[rn.ExtractAttribute]:on.Enrichment,[rn.InferDbAttributes]:on.Enrichment,[rn.DbQueryTemplatization]:on.Normalization,[rn.URLTemplatization]:on.Normalization,[rn.RenameAttributes]:on.Normalization,[rn.PiiMasking]:on.Privacy,[rn.DeleteAttributes]:on.Privacy},nr=e=>{const t=tr[e];return t?er[t].ICON:u},rr=[{type:rn.K8sAttributes,icon:nr(rn.K8sAttributes),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yn.K8s]},{type:rn.AddClusterInfo,icon:nr(rn.AddClusterInfo),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yn.K8s]},{type:rn.DeleteAttributes,icon:nr(rn.DeleteAttributes),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yn.K8s]},{type:rn.RenameAttributes,icon:nr(rn.RenameAttributes),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yn.K8s]},{type:rn.PiiMasking,icon:nr(rn.PiiMasking),category:tr[rn.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:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yn.K8s]},{type:rn.URLTemplatization,icon:nr(rn.URLTemplatization),category:tr[rn.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yn.K8s]:nn("v1.21.0")},supportedPlatforms:[yn.K8s,yn.Vm]},{type:rn.ExtractAttribute,icon:nr(rn.ExtractAttribute),category:tr[rn.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:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yn.K8s]:nn("v1.29.0")},supportedPlatforms:[yn.K8s]}],or=nn("v1.26"),ir=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),ar=(e,t,n)=>{const r=e.minVersion?.[t];return!r||nn(n)>=r},sr=(e,t)=>rr.filter(n=>ir(n,e)&&ar(n,e,t)).map(n=>((e,t,n)=>t!==yn.K8s||nn(n)>=or?e:e.allowedSignals?.includes(Xn.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Xn.Profiles)}:e)(n,e,t)),lr=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:nr(e.type),category:e.category||tr[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var cr;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(cr||(cr={}));const dr={[cr.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[cr.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[cr.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[cr.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[cr.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[cr.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ur=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var pr,hr,gr;(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"})(pr||(pr={})),(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"})(hr||(hr={})),(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"})(gr||(gr={}));const mr=new Set(Object.values(gr)),fr=(e,t)=>{if("string"!=typeof(n=t)||!mr.has(n))return t;var n;switch(t){case gr.Primary:return e.v2.colors.white[500];case gr.Secondary:return e.v2.colors.silver[200];case gr.Tertiary:return e.v2.colors.black[500];case gr.Disable:return e.v2.colors.grey[400];case gr.Error:return e.v2.colors.red[500];case gr.Mandatory:return e.v2.colors.red[600];case gr.Link:return e.v2.colors.purple[400];case gr.Success:return e.v2.colors.green[400];default:return}},yr=r.p`
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as o,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as c,EnrichmentIcon as d,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as E,SwiftLogo as $,RustLogo as S,RubyLogo as C,PhpLogo as x,CPlusPlusLogo as w,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as _,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as k,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as F,TempoLogo as M,TelemetryHubLogo as U,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,AwsS3Logo as W,QuickwitLogo as G,GigapipeLogo as X,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 ne,MiddlewareLogo as re,LumigoLogo as oe,LokiLogo as ie,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as ce,JaegerLogo as de,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as Ee,DatadogLogo as $e,Dash0Logo as Se,CoralogixLogo as Ce,AwsCloudwatchLogo as xe,ClickhouseLogo as we,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as _e,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as ke,AlibabaCloudLogo as Le,AlaudaLogo as Pe,SamplingIcon as Fe,InstrumentationRuleIcon as Me,DestinationIcon as Ue,SourceIcon as ze,NamespacesIcon as Be,PayloadCollectionIcon as He,HeadersCollectionIcon as je,CustomInstrumentationIcon as We,CodeAttributesIcon as Ge,TracesIcon as Xe,MetricsIcon as Ve,LogsIcon as Ke,EcsLogo as Ye,CloudConnectorIcon as Je,VmLogo as qe,K8sLogo as Qe,DotsHorizontalIcon as Ze,QuestionCircleIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as ut,AwsLambdaLogo as pt,AwsSnsLogo as ht,AwsSqsLogo as gt,AwsDynamoDbLogo as mt,AwsStsLogo as ft,OpenTelemetryLogoStripped as yt,CodeIcon as bt,VIcon as vt,CopyIcon as Et,SearchIcon as $t,XIcon as St,MinusIcon as Ct,ChevronUpIcon as xt,ChevronDownIcon as wt,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as It,PlusIcon as _t,TrashIcon as Rt,DotIcon as Dt,ArrowRightIcon as kt,FilterIcon as Lt}from"../icons.js";import{create as Pt}from"zustand";import{forwardRef as Ft,Fragment as Mt,useState as Ut,useEffect as zt,useCallback as Bt,useMemo as Ht,useRef as jt,useLayoutEffect as Wt,createElement as Gt}from"react";import Xt from"javascript-time-ago";import Vt from"javascript-time-ago/locale/en";import Kt,{createPortal as Yt}from"react-dom";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{persist as Qt,createJSONStorage as Zt}from"zustand/middleware";import{ErrorBoundary as en}from"react-error-boundary";import{VList as tn}from"virtua";const nn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)};var rn,on,an,sn,ln,cn,dn,un,pn,hn,gn,mn,fn,yn,bn,vn,En,$n,Sn,Cn,xn,wn,Tn,On,Nn,An,In,_n,Rn,Dn,kn,Ln,Pn,Fn,Mn,Un,zn,Bn,Hn,jn,Wn,Gn,Xn,Vn;(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"})(rn||(rn={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(on||(on={})),(e=>{e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(an||(an={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(sn||(sn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ln||(ln={})),(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"})(cn||(cn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(dn||(dn={})),(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"})(un||(un={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(pn||(pn={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(hn||(hn={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(gn||(gn={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(mn||(mn={})),(e=>{e.Community="community",e.Onprem="onprem"})(fn||(fn={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yn||(yn={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(bn||(bn={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(vn||(vn={})),(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"})(En||(En={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})($n||($n={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})(Sn||(Sn={})),(e=>{e.DataStream="DataStream"})(Cn||(Cn={})),(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"})(xn||(xn={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(wn||(wn={})),(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"})(Tn||(Tn={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(On||(On={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Nn||(Nn={})),(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"})(An||(An={})),(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"})(In||(In={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_n||(_n={})),(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"})(Rn||(Rn={})),(e=>{e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(Dn||(Dn={})),(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"})(kn||(kn={})),(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"})(Ln||(Ln={})),(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"})(Pn||(Pn={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Fn||(Fn={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Mn||(Mn={})),(e=>{e.HeaderKeys="headerKeys"})(Un||(Un={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(zn||(zn={}));class Kn{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 Yn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,r){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=r||""}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 Jn{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"})(Bn||(Bn={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hn||(Hn={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(jn||(jn={})),(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"})(Wn||(Wn={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gn||(Gn={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Xn||(Xn={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Vn||(Vn={}));const qn={[Xn.Logs]:Vn.Logs,[Xn.Metrics]:Vn.Metrics,[Xn.Traces]:Vn.Traces,[Xn.Profiles]:Vn.Profiles},Qn={[Vn.Logs]:Xn.Logs,[Vn.Metrics]:Xn.Metrics,[Vn.Traces]:Xn.Traces,[Vn.Profiles]:Xn.Profiles};var Zn;(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Zn||(Zn={}));const er={[on.Enrichment]:{TITLE:"Enrichment",ICON:d},[on.Normalization]:{TITLE:"Normalization",ICON:c},[on.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},tr={[rn.AddClusterInfo]:on.Enrichment,[rn.K8sAttributes]:on.Enrichment,[rn.ExtractAttribute]:on.Enrichment,[rn.InferDbAttributes]:on.Enrichment,[rn.DbQueryTemplatization]:on.Normalization,[rn.URLTemplatization]:on.Normalization,[rn.RenameAttributes]:on.Normalization,[rn.PiiMasking]:on.Privacy,[rn.DeleteAttributes]:on.Privacy},nr=e=>{const t=tr[e];return t?er[t].ICON:u},rr=[{type:rn.K8sAttributes,icon:nr(rn.K8sAttributes),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yn.K8s]},{type:rn.AddClusterInfo,icon:nr(rn.AddClusterInfo),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yn.K8s]},{type:rn.DeleteAttributes,icon:nr(rn.DeleteAttributes),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yn.K8s]},{type:rn.RenameAttributes,icon:nr(rn.RenameAttributes),category:tr[rn.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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yn.K8s]},{type:rn.PiiMasking,icon:nr(rn.PiiMasking),category:tr[rn.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:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yn.K8s]},{type:rn.URLTemplatization,icon:nr(rn.URLTemplatization),category:tr[rn.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yn.K8s]:nn("v1.21.0")},supportedPlatforms:[yn.K8s,yn.Vm]},{type:rn.ExtractAttribute,icon:nr(rn.ExtractAttribute),category:tr[rn.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:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yn.K8s]:nn("v1.29.0")},supportedPlatforms:[yn.K8s]}],or=nn("v1.26"),ir=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),ar=(e,t,n)=>{const r=e.minVersion?.[t];return!r||nn(n)>=r},sr=(e,t)=>rr.filter(n=>ir(n,e)&&ar(n,e,t)).map(n=>((e,t,n)=>t!==yn.K8s||nn(n)>=or?e:e.allowedSignals?.includes(Xn.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Xn.Profiles)}:e)(n,e,t)),lr=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:nr(e.type),category:e.category||tr[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var cr;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(cr||(cr={}));const dr={[cr.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[cr.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[cr.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[cr.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[cr.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[cr.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ur=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var pr,hr,gr;(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"})(pr||(pr={})),(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"})(hr||(hr={})),(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"})(gr||(gr={}));const mr=new Set(Object.values(gr)),fr=(e,t)=>{if("string"!=typeof(n=t)||!mr.has(n))return t;var n;switch(t){case gr.Primary:return e.v2.colors.white[500];case gr.Secondary:return e.v2.colors.silver[200];case gr.Tertiary:return e.v2.colors.black[500];case gr.Disable:return e.v2.colors.grey[400];case gr.Error:return e.v2.colors.red[500];case gr.Mandatory:return e.v2.colors.red[600];case gr.Link:return e.v2.colors.purple[400];case gr.Success:return e.v2.colors.green[400];default:return}},yr=r.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>fr(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,br=Mt(({children:n,variant:r=pr.P,color:o,size:i=hr.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof n?n.split("\n").map((n,r,o)=>e(Ft,{children:[n,r!==o.length-1&&t("br",{})]},`typography-${r}-${n}`)):n;return t(yr,{ref:y,as:r,$color:o,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});br.displayName="Typography";const vr="https://docs.odigos.io",Er="default",$r="this-cluster",Sr="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},xr={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."},wr={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",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:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",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_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",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"},Tr={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"},Or=(e,t)=>e===Tn.Success?wr.HEALTHY:e===Tn.Error?wr.NOT_HEALTHY:ur(t),Nr=e=>{if(!e)return null;switch(e){case Pn.Irrelevant:return null;case Pn.Failure:case Pn.Error:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Pending:case Pn.Waiting:return Tn.Loading;case Pn.Unsupported:case Pn.Disabled:return Tn.Disabled;case Pn.Success:return Tn.Success;case Pn.Unknown:default:return Tn.Info}},Ar=(e,t,n="reason",r)=>{const o=Nr(e?.status);return o?{key:`desired-status-${e?.name}`,status:o,leftIcon:t||(o===Tn.Success?p:h),label:r||("reason"===n?ur(e?.reasonEnum):Or(o,e?.reasonEnum)),tooltip:e?.message,textSize:hr.XXXS,invertColors:!0,useSecondaryTone:!0}:null},Ir=e=>e.charAt(0).toUpperCase()+e.slice(1);var _r;(e=>{e.SIGNALS="SIGNALS"})(_r||(_r={}));const Rr=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===_r.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===r||e.key===r);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}};function Dr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const kr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),Lr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Pr=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)},Mr=e=>"string"==typeof e?{id:e,label:e}:e??{},Fr=(e,t)=>e.label||e.displayName||t,Ur=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const r=e.options?.find(e=>String(e.id??"")===n);return r?Fr(r,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),r=e.options?.find(e=>String(e.id??"")===n);return r?Fr(r,n):Pr(t)},zr=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=Lr(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:n?JSON.stringify(n):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},Br=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(...Br(e.segments))):t.push(...e.items)}),t},Hr=(e,t,n={})=>{const r=[],o=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(r.push({kind:"cells",id:`cells-${r.length}`,items:s}),s=[])};return t.forEach((t,c)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Rr(t.renderCondition,o,a))return;const d=t.displayName||t.name,u=`${t.name}-${c}`,p=e[t.name],h=Dr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void s.push({id:u,title:d,badge:kr(!!p)});case xn.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:[],n=e.map(e=>{const n=t.map(Mr).find(t=>String(t.id??"")===e);return n?Fr(n,e):e});return l(),void r.push({kind:"list",id:u,title:d,items:n.length?n.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,n)=>{const r=Mr(t),o=String(r.id??"");o&&s.push({id:`${u}-${n}-${o}`,title:Fr(r,o),badge:kr(!0===e[o])})});const n=Lr(p)?p:{},o=Array.isArray(h.options)?h.options:[];let i=[];return i=o.length?o.map(e=>{const t=Mr(e),r=String(t.id??"");return r&&n[r]?Fr(t,r):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void r.push({kind:"list",id:u,title:d,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&Lr(p)?p[e]:p,o=Array.isArray(n)&&n.length?n.map(e=>t&&Lr(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void r.push({kind:"list",id:u,title:d,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.KeyValuePair:return l(),Lr(p)&&Object.keys(p).length?void r.push({kind:"pairs",id:u,title:d,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void r.push({kind:"pairs",id:u,title:d,items:p.map((e,t)=>{const n=Lr(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void r.push({kind:"pairs",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]});case xn.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&Lr(p)?p[e]:p)?e&&Lr(p)?p[e]:p:[],n=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},n=t.options??t.values,r=Array.isArray(n)?n.map(Mr):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:r,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,o)=>{const i=t.length>1?`${d} #${o+1}`:d,a=[],s=Lr(e)?{...e}:{};null!=s.method&&""!==s.method||!n.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),n.length?n.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[n,r,o]=t,i=null==e?.[n]?"":String(e[n]);switch(r){case"=":case"==":case"===":return i===o;case"!=":case"!==":return i!==o;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}-${o}-${e.keyName}`,title:e.label||Ir(ur(e.keyName))||e.keyName,label:Ur(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${o}-${e}`,title:e,label:Pr(t)})}),r.push({kind:"group",id:`${u}-${o}`,title:i,items:a.length?a:[{id:`${u}-${o}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}case xn.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(zr).filter(Boolean),o=h.itemLabel||d;return l(),e.length?void e.forEach((i,a)=>{const s=e.length>1?`${o} ${a+1}`:o,l=Lr(i)?i:{},c=t.length?Hr(l,t,n):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${a}-${n}-${e}`,title:e,label:Pr(t)}))}];r.push({kind:"group",id:`${u}-${a}`,title:s,segments:c.length?c:void 0,items:c.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:d,label:Pr(p)})}var g}),l(),r},jr=(e,t,n={})=>Br(Hr(e,t,n)),Wr=e=>e.map(e=>"cells"===e.kind?t(Yu,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):"list"===e.kind||"pairs"===e.kind?t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id):t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:e.items?.length?2:void 0,items:e.items,children:e.segments?.length?Wr(e.segments):null},e.id)),Gr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,n(r)]:[e,r]));return Object.entries(e).reduce((e,[r,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]="object"==typeof i&&null!==i?JSON.stringify(n(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[r]=JSON.stringify(t(o)):e[r]=JSON.stringify(n(o)):e[r]=o}return e},{})},Xr=e=>JSON.parse(JSON.stringify(e)),Vr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Kr=(e,t,n)=>{const r=t.split(".");let o=e;for(let e=0;e<r.length-1;e++)r[e]in o&&"object"==typeof o[r[e]]||(o[r[e]]={}),o=o[r[e]];o[r[r.length-1]]=n},Yr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Jr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},qr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Qr=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Nr(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Zr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],eo=(e,t="",n={})=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t?`${t}.${r}`:r;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const r=`${i}[${t}]`;null!==e&&"object"==typeof e?eo(e,r,n):n[r]=e}):n[i]=o:eo(o,i,n)}return n},to=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]}`},no=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`}},ro=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const r=e[t%16];return t++,("1"===n?r:"0"===n?63&r|128:15&r|64).toString(16)})},oo=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Nr(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],io=e=>Array.isArray(e?.statuses)?oo(e.statuses):e?.conditions??[],ao=e=>e?Array.isArray(e)?so(e):so(oo(Object.values(e))):so([]),so=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),r=e?.filter(({status:e})=>e===Tn.Disabled),o=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=r.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:r,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},lo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},co=e=>({[En.Java]:_,[En.Go]:I,[En.JavaScript]:A,[En.Python]:N,[En.DotNet]:O,[En.CSharp]:T,[En.CPlusPlus]:w,[En.Php]:x,[En.Ruby]:C,[En.Rust]:S,[En.Swift]:$,[En.Elixir]:E,[En.MySql]:v,[En.Nginx]:b,[En.Postgres]:y,[En.Redis]:f,[En.Kafka]:m,[En.Ignored]:g,[En.Unknown]:g,[En.Processing]:g,[En.NoContainers]:g,[En.NoRunningPods]:g}[e]||g),uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,po=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,ho=e=>e?.map(e=>co(uo(e)))||[],go=e=>e?.map(e=>co(e))||[],mo=e=>e.runtimeInfo?.detectedLanguages?.length?go(e.runtimeInfo?.detectedLanguages):ho(e.containers),fo=(e,t)=>{const n={[Dn.Alauda]:Pe,[Dn.AlibabaCloud]:Le,[Dn.AppDynamics]:ke,[Dn.Axiom]:De,[Dn.AzureBlob]:Re,[Dn.AzureMonitor]:_e,[Dn.BetterStack]:Ie,[Dn.Bonree]:Ae,[Dn.Causely]:Ne,[Dn.Checkly]:Oe,[Dn.Chronosphere]:Te,[Dn.ClickHouse]:we,[Dn.CloudWatch]:xe,[Dn.Coralogix]:Ce,[Dn.Dash0]:Se,[Dn.Datadog]:$e,[Dn.Dynamic]:Y,[Dn.Dynatrace]:Ee,[Dn.ElasticApm]:ve,[Dn.ElasticSearch]:be,[Dn.GoogleCloud]:ye,[Dn.GoogleCloudOTLP]:ye,[Dn.GrafanaCloudLoki]:fe,[Dn.GrafanaCloudPrometheus]:fe,[Dn.GrafanaCloudTempo]:fe,[Dn.Greptime]:me,[Dn.Groundcover]:ge,[Dn.Honeycomb]:he,[Dn.HyperDX]:pe,[Dn.Instana]:ue,[Dn.Jaeger]:de,[Dn.Kafka]:m,[Dn.Kloudmate]:ce,[Dn.Last9]:le,[Dn.Lightstep]:se,[Dn.LogzIo]:ae,[Dn.Loki]:ie,[Dn.Lumigo]:oe,[Dn.Middleware]:re,[Dn.NewRelic]:ne,[Dn.Observe]:te,[Dn.Odigos]:ee,[Dn.OneUptime]:Z,[Dn.OpenObserve]:Q,[Dn.Opsverse]:q,[Dn.Oracle]:J,[Dn.OTLP]:Y,[Dn.OTLPHttp]:Y,[Dn.Prometheus]:K,[Dn.Qryn]:V,[Dn.QrynOss]:X,[Dn.Quickwit]:G,[Dn.S3]:W,[Dn.Seq]:j,[Dn.Signalfx]:B,[Dn.Signoz]:H,[Dn.Splunk]:B,[Dn.SplunkSapm]:B,[Dn.SplunkOtlp]:B,[Dn.SumoLogic]:z,[Dn.TelemetryHub]:U,[Dn.Tempo]:F,[Dn.Tingyun]:M,[Dn.Traceloop]:P,[Dn.Uptrace]:L,[Dn.VictoriaMetrics]:k,[Dn.VictoriaMetricsCloud]:k,[Dn.XRay]:D,[Dn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},yo=e=>({[Sn.Namespace]:Be,[Sn.Source]:ze,[Sn.Destination]:Ue,[Sn.Action]:u,[Sn.InstrumentationRule]:Fe,[Sn.SamplingRule]:Me}[e]),bo=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,vo=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},Eo=e=>vo(bo(e)),$o=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case Sn.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Sn.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case Sn.Action:const r=e;i=r.type,a=r.name||"";break;case Sn.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Sn.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},So=(e,t)=>{if(t===Sn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},Co=e=>({[Mn.CodeAttributes]:Ge,[Mn.CustomInstrumentation]:We,[Mn.HeadersCollection]:je,[Mn.PayloadCollection]:He,[Mn.UnknownType]:g}[e]||g),xo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,wo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>xo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>xo(e)!==En.Unknown);return o?xo(o):En.Unknown},To=(e,t,n)=>(t===Sn.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},Oo=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),No=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),Ao=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,Io=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",_o=(e,t,n)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[n],o=[];return void 0!==r&&(Array.isArray(r)?o.push(...r):o.push(r)),o.push(..._o(e,t,n)),o}):[]},Ro={"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"},Do=e=>{if(!e)return"";if(Ro[e])return Ro[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ko=(e,t)=>{if(t===Sn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Lo=(e,t,n)=>{switch(n=n??"500",t){case Tn.Default:return e.v2.colors.purple[n];case Tn.Info:return e.v2.colors.blue[n];case Tn.Error:return e.v2.colors.red[n];case Tn.Warning:return e.v2.colors.yellow[n];case Tn.Success:return e.v2.colors.green[n];case Tn.Loading:case Tn.Disabled:case Tn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},Po=e=>{switch(e){case Hn.Updating:case jn.Pending:case Wn.ContainerCreating:case Gn.Waiting:return Tn.Info;case Hn.Healthy:case jn.Succeeded:case jn.Running:case Wn.Running:case Gn.Running:return Tn.Success;case Hn.Degraded:return Tn.Warning;case Hn.Failed:case jn.Failed:case Wn.Error:case Wn.CrashLoopBackOff:case Wn.CreateContainerError:case Wn.CreateContainerConfigError:case Wn.ErrImagePull:case Wn.ErrImageNeverPull:case Wn.ImagePullBackOff:case Wn.InvalidImageName:case Wn.RegistryUnavailable:case Wn.NetworkNotReady:case Wn.OOMKilled:case Wn.ContainerCannotRun:case Gn.Terminated:case Wn.DeadlineExceeded:case Wn.StartError:return Tn.Error;case Hn.Down:case Wn.Completed:return Tn.Disabled;case Hn.Unknown:case jn.Unknown:default:return Tn.Unknown}},Mo=r.div`
|
|
41
|
+
`,br=Ft(({children:n,variant:r=pr.P,color:o,size:i=hr.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof n?n.split("\n").map((n,r,o)=>e(Mt,{children:[n,r!==o.length-1&&t("br",{})]},`typography-${r}-${n}`)):n;return t(yr,{ref:y,as:r,$color:o,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});br.displayName="Typography";const vr="https://docs.odigos.io",Er="default",$r="this-cluster",Sr="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},xr={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."},wr={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",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:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",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_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",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"},Tr={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"},Or=(e,t)=>e===Tn.Success?wr.HEALTHY:e===Tn.Error?wr.NOT_HEALTHY:ur(t),Nr=e=>{if(!e)return null;switch(e){case Pn.Irrelevant:return null;case Pn.Failure:case Pn.Error:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Pending:case Pn.Waiting:return Tn.Loading;case Pn.Unsupported:case Pn.Disabled:return Tn.Disabled;case Pn.Success:return Tn.Success;case Pn.Unknown:default:return Tn.Info}},Ar=(e,t,n="reason",r)=>{const o=Nr(e?.status);return o?{key:`desired-status-${e?.name}`,status:o,leftIcon:t||(o===Tn.Success?p:h),label:r||("reason"===n?ur(e?.reasonEnum):Or(o,e?.reasonEnum)),tooltip:e?.message,textSize:hr.XXXS,invertColors:!0,useSecondaryTone:!0}:null},Ir=e=>e.charAt(0).toUpperCase()+e.slice(1);var _r;(e=>{e.SIGNALS="SIGNALS"})(_r||(_r={}));const Rr=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===_r.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===r||e.key===r);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}};function Dr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const kr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),Lr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Pr=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)},Fr=e=>"string"==typeof e?{id:e,label:e}:e??{},Mr=(e,t)=>e.label||e.displayName||t,Ur=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const r=e.options?.find(e=>String(e.id??"")===n);return r?Mr(r,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),r=e.options?.find(e=>String(e.id??"")===n);return r?Mr(r,n):Pr(t)},zr=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=Lr(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:n?JSON.stringify(n):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},Br=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(...Br(e.segments))):t.push(...e.items)}),t},Hr=(e,t,n={})=>{const r=[],o=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(r.push({kind:"cells",id:`cells-${r.length}`,items:s}),s=[])};return t.forEach((t,c)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Rr(t.renderCondition,o,a))return;const d=t.displayName||t.name,u=`${t.name}-${c}`,p=e[t.name],h=Dr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void s.push({id:u,title:d,badge:kr(!!p)});case xn.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:[],n=e.map(e=>{const n=t.map(Fr).find(t=>String(t.id??"")===e);return n?Mr(n,e):e});return l(),void r.push({kind:"list",id:u,title:d,items:n.length?n.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,n)=>{const r=Fr(t),o=String(r.id??"");o&&s.push({id:`${u}-${n}-${o}`,title:Mr(r,o),badge:kr(!0===e[o])})});const n=Lr(p)?p:{},o=Array.isArray(h.options)?h.options:[];let i=[];return i=o.length?o.map(e=>{const t=Fr(e),r=String(t.id??"");return r&&n[r]?Mr(t,r):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void r.push({kind:"list",id:u,title:d,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&Lr(p)?p[e]:p,o=Array.isArray(n)&&n.length?n.map(e=>t&&Lr(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void r.push({kind:"list",id:u,title:d,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.KeyValuePair:return l(),Lr(p)&&Object.keys(p).length?void r.push({kind:"pairs",id:u,title:d,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void r.push({kind:"pairs",id:u,title:d,items:p.map((e,t)=>{const n=Lr(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void r.push({kind:"pairs",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]});case xn.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&Lr(p)?p[e]:p)?e&&Lr(p)?p[e]:p:[],n=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},n=t.options??t.values,r=Array.isArray(n)?n.map(Fr):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:r,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,o)=>{const i=t.length>1?`${d} #${o+1}`:d,a=[],s=Lr(e)?{...e}:{};null!=s.method&&""!==s.method||!n.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),n.length?n.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[n,r,o]=t,i=null==e?.[n]?"":String(e[n]);switch(r){case"=":case"==":case"===":return i===o;case"!=":case"!==":return i!==o;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}-${o}-${e.keyName}`,title:e.label||Ir(ur(e.keyName))||e.keyName,label:Ur(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${o}-${e}`,title:e,label:Pr(t)})}),r.push({kind:"group",id:`${u}-${o}`,title:i,items:a.length?a:[{id:`${u}-${o}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}case xn.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(zr).filter(Boolean),o=h.itemLabel||d;return l(),e.length?void e.forEach((i,a)=>{const s=e.length>1?`${o} ${a+1}`:o,l=Lr(i)?i:{},c=t.length?Hr(l,t,n):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${a}-${n}-${e}`,title:e,label:Pr(t)}))}];r.push({kind:"group",id:`${u}-${a}`,title:s,segments:c.length?c:void 0,items:c.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:d,label:Pr(p)})}var g}),l(),r},jr=(e,t,n={})=>Br(Hr(e,t,n)),Wr=e=>e.map(e=>"cells"===e.kind?t(Yu,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):"list"===e.kind||"pairs"===e.kind?t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id):t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:e.items?.length?2:void 0,items:e.items,children:e.segments?.length?Wr(e.segments):null},e.id)),Gr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,n(r)]:[e,r]));return Object.entries(e).reduce((e,[r,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]="object"==typeof i&&null!==i?JSON.stringify(n(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[r]=JSON.stringify(t(o)):e[r]=JSON.stringify(n(o)):e[r]=o}return e},{})},Xr=e=>JSON.parse(JSON.stringify(e)),Vr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Kr=(e,t,n)=>{const r=t.split(".");let o=e;for(let e=0;e<r.length-1;e++)r[e]in o&&"object"==typeof o[r[e]]||(o[r[e]]={}),o=o[r[e]];o[r[r.length-1]]=n},Yr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Jr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},qr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Qr=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Nr(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Zr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],eo=(e,t="",n={})=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t?`${t}.${r}`:r;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const r=`${i}[${t}]`;null!==e&&"object"==typeof e?eo(e,r,n):n[r]=e}):n[i]=o:eo(o,i,n)}return n},to=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]}`},no=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`}},ro=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const r=e[t%16];return t++,("1"===n?r:"0"===n?63&r|128:15&r|64).toString(16)})},oo=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Nr(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],io=e=>Array.isArray(e?.statuses)?oo(e.statuses):e?.conditions??[],ao=e=>e?Array.isArray(e)?so(e):so(oo(Object.values(e))):so([]),so=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),r=e?.filter(({status:e})=>e===Tn.Disabled),o=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=r.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:r,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},lo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},co=e=>({[En.Java]:_,[En.Go]:I,[En.JavaScript]:A,[En.Python]:N,[En.DotNet]:O,[En.CSharp]:T,[En.CPlusPlus]:w,[En.Php]:x,[En.Ruby]:C,[En.Rust]:S,[En.Swift]:$,[En.Elixir]:E,[En.MySql]:v,[En.Nginx]:b,[En.Postgres]:y,[En.Redis]:f,[En.Kafka]:m,[En.Ignored]:g,[En.Unknown]:g,[En.Processing]:g,[En.NoContainers]:g,[En.NoRunningPods]:g}[e]||g),uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,po=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,ho=e=>e?.map(e=>co(uo(e)))||[],go=e=>e?.map(e=>co(e))||[],mo=e=>e.runtimeInfo?.detectedLanguages?.length?go(e.runtimeInfo?.detectedLanguages):ho(e.containers),fo=(e,t)=>{const n={[Dn.Alauda]:Pe,[Dn.AlibabaCloud]:Le,[Dn.AppDynamics]:ke,[Dn.Axiom]:De,[Dn.AzureBlob]:Re,[Dn.AzureMonitor]:_e,[Dn.BetterStack]:Ie,[Dn.Bonree]:Ae,[Dn.Causely]:Ne,[Dn.Checkly]:Oe,[Dn.Chronosphere]:Te,[Dn.ClickHouse]:we,[Dn.CloudWatch]:xe,[Dn.Coralogix]:Ce,[Dn.Dash0]:Se,[Dn.Datadog]:$e,[Dn.Dynamic]:Y,[Dn.Dynatrace]:Ee,[Dn.ElasticApm]:ve,[Dn.ElasticSearch]:be,[Dn.GoogleCloud]:ye,[Dn.GoogleCloudOTLP]:ye,[Dn.GrafanaCloudLoki]:fe,[Dn.GrafanaCloudPrometheus]:fe,[Dn.GrafanaCloudTempo]:fe,[Dn.Greptime]:me,[Dn.Groundcover]:ge,[Dn.Honeycomb]:he,[Dn.HyperDX]:pe,[Dn.Instana]:ue,[Dn.Jaeger]:de,[Dn.Kafka]:m,[Dn.Kloudmate]:ce,[Dn.Last9]:le,[Dn.Lightstep]:se,[Dn.LogzIo]:ae,[Dn.Loki]:ie,[Dn.Lumigo]:oe,[Dn.Middleware]:re,[Dn.NewRelic]:ne,[Dn.Observe]:te,[Dn.Odigos]:ee,[Dn.OneUptime]:Z,[Dn.OpenObserve]:Q,[Dn.Opsverse]:q,[Dn.Oracle]:J,[Dn.OTLP]:Y,[Dn.OTLPHttp]:Y,[Dn.Prometheus]:K,[Dn.Qryn]:V,[Dn.QrynOss]:X,[Dn.Quickwit]:G,[Dn.S3]:W,[Dn.Seq]:j,[Dn.Signalfx]:B,[Dn.Signoz]:H,[Dn.Splunk]:B,[Dn.SplunkSapm]:B,[Dn.SplunkOtlp]:B,[Dn.SumoLogic]:z,[Dn.TelemetryHub]:U,[Dn.Tempo]:M,[Dn.Tingyun]:F,[Dn.Traceloop]:P,[Dn.Uptrace]:L,[Dn.VictoriaMetrics]:k,[Dn.VictoriaMetricsCloud]:k,[Dn.XRay]:D,[Dn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},yo=e=>({[Sn.Namespace]:Be,[Sn.Source]:ze,[Sn.Destination]:Ue,[Sn.Action]:u,[Sn.InstrumentationRule]:Me,[Sn.SamplingRule]:Fe}[e]),bo=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,vo=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},Eo=e=>vo(bo(e)),$o=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case Sn.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Sn.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case Sn.Action:const r=e;i=r.type,a=r.name||"";break;case Sn.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Sn.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},So=(e,t)=>{if(t===Sn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},Co=e=>({[Fn.CodeAttributes]:Ge,[Fn.CustomInstrumentation]:We,[Fn.HeadersCollection]:je,[Fn.PayloadCollection]:He,[Fn.UnknownType]:g}[e]||g),xo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,wo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>xo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>xo(e)!==En.Unknown);return o?xo(o):En.Unknown},To=(e,t,n)=>(t===Sn.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},Oo=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),No=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),Ao=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,Io=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",_o=(e,t,n)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[n],o=[];return void 0!==r&&(Array.isArray(r)?o.push(...r):o.push(r)),o.push(..._o(e,t,n)),o}):[]},Ro={"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"},Do=e=>{if(!e)return"";if(Ro[e])return Ro[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ko=(e,t)=>{if(t===Sn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Lo=(e,t,n)=>{switch(n=n??"500",t){case Tn.Default:return e.v2.colors.purple[n];case Tn.Info:return e.v2.colors.blue[n];case Tn.Error:return e.v2.colors.red[n];case Tn.Warning:return e.v2.colors.yellow[n];case Tn.Success:return e.v2.colors.green[n];case Tn.Loading:case Tn.Disabled:case Tn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},Po=e=>{switch(e){case Hn.Updating:case jn.Pending:case Wn.ContainerCreating:case Gn.Waiting:return Tn.Info;case Hn.Healthy:case jn.Succeeded:case jn.Running:case Wn.Running:case Gn.Running:return Tn.Success;case Hn.Degraded:return Tn.Warning;case Hn.Failed:case jn.Failed:case Wn.Error:case Wn.CrashLoopBackOff:case Wn.CreateContainerError:case Wn.CreateContainerConfigError:case Wn.ErrImagePull:case Wn.ErrImageNeverPull:case Wn.ImagePullBackOff:case Wn.InvalidImageName:case Wn.RegistryUnavailable:case Wn.NetworkNotReady:case Wn.OOMKilled:case Wn.ContainerCannotRun:case Gn.Terminated:case Wn.DeadlineExceeded:case Wn.StartError:return Tn.Error;case Hn.Down:case Wn.Completed:return Tn.Disabled;case Hn.Unknown:case jn.Unknown:default:return Tn.Unknown}},Fo=r.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,Mo=r.div`
|
|
46
46
|
width: 80px;
|
|
47
47
|
height: 80px;
|
|
48
48
|
border-radius: 100%;
|
|
@@ -61,7 +61,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,zo=({percentage:n})=>e(
|
|
64
|
+
`,zo=({percentage:n})=>e(Fo,{children:[t(Mo,{}),"number"==typeof n?t(Uo,{size:hr.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),Bo={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 Ho(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const r=(e.match(/[^0-9]*$/)||"").toString();return Bo[r]?{value:t,unit:r}:{value:t,unit:"px"}}function jo(e){const t=Ho(e);return`${t.value}${t.unit}`}const Wo=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,r=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(r,0),e})(),Go=({loading:n=!0,color:r,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=r||d.text.secondary;if(!n)return null;const{value:p}=Ho(2),h=p+4.2,g=h/2+h/5.5,m=4*h*o,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:jo(1.5),height:jo(4),borderRadius:jo(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Wo} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...c,children:[t("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Xo=r.div`
|
|
65
65
|
width: ${({$size:e})=>e}px;
|
|
66
66
|
height: ${({$size:e})=>e}px;
|
|
67
67
|
border-radius: 100%;
|
|
@@ -192,7 +192,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
192
192
|
background-clip: text;
|
|
193
193
|
color: transparent;
|
|
194
194
|
animation: ${hi} 1s reverse linear infinite;
|
|
195
|
-
`,mi=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),r=Math.floor(n/60),o=n%60;return`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`},fi=({icon:n,title:r,titleColor:o,titleSize:a=hr.S,subTitle:s,subTitleColor:l,subTitleSize:c=hr.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,$]=Ut(()=>d?mi(d):"");zt(()=>{if(!d)return;$(mi(d));const e=setInterval(()=>$(mi(d)),1e3);return()=>clearInterval(e)},[d]);const S=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ii,{$gap:16,$alignItems:"center",children:[y?t(Vo,{scale:1.7,icon:b}):h?t(zo,{percentage:f}):g?t(Go,{scale:m}):null,(r||s||d||n||u)&&e(ii,{$gap:8,$alignItems:"center",children:[e(oi,{$gap:4,children:[n&&t(n,{}),u?t(gi,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:S,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:S,children:E}):null]})]})},yi=(e,t)=>({[Tn.Default]:n=>ee({fill:Lo(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Lo(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Lo(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Lo(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Lo(t,e,"500"),...n}),[Tn.Loading]:e=>fi({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Lo(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Lo(t,e,"300"),...n})}[e]),bi=e=>{switch(e){case Pn.Success:return Tn.Success;case Pn.Error:case Pn.Failure:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Unsupported:case Pn.Unknown:return Tn.Info;case Pn.Irrelevant:case Pn.Disabled:return Tn.Disabled;case Pn.Waiting:return Tn.Loading;case Pn.Pending:default:return Tn.Default}},vi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Ei={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},$i={sts:ft,dynamodb:mt,s3:W,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:xe},Si=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Ei[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=Ei[r.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=$i[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Ei))if(i.includes(e))return t;return Ue},Ci=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:n,kind:r,region:o}=e;return{namespace:t,name:n,kind:r,region:o||void 0}},xi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Dr(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&n.push(...e.items[o].fields.map(e=>({...e,initialValue:r[e.name]})))}return n},wi=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Tn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Ti(e){if(!e||0===e.length)return null;const t=[],n=[],r=[];for(const o of e){if(!o)continue;const e=o.workloadName??"",i=o.workloadKind??"",a=o.workloadNamespace??"",s=o.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&r.push(s)}return 0===t.length&&0===n.length&&0===r.length?null:{sources:t,namespaces:n,languages:r}}function Oi(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function Ni(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ti(t??null)}}function Ai(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Oi(t??null)}}const Ii=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),_i=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ri=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Di=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ki=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Li=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,Pi=e=>Li.test(e),Mi=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Fi=(e,t)=>{const n=Dr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Ui=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],zi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Bi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},Hi=e=>e.replace(/[^\d]/g,""),ji=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Wi=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},Gi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const r=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Xi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const r=e[n];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Xi(e)))}else if("object"==typeof r&&null!==r){const e=Xi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Vi=(e,t=2)=>JSON.stringify(e||{},null,t),Ki=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Yi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Ji=nn("v1.33"),qi=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Qi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Ji},Zi=nn("v1.20"),ea=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Zi},ta=e=>e?qi.map(t=>e[t]??null):[],na={PID:"process.pid",VPID:"process.vpid"},ra={[En.Go]:"Go",[En.Java]:"Java",[En.JavaScript]:"Node.js",[En.Python]:"Python",[En.DotNet]:".NET",[En.CSharp]:"C#",[En.CPlusPlus]:"C++",[En.Php]:"PHP",[En.Ruby]:"Ruby",[En.Rust]:"Rust",[En.Swift]:"Swift",[En.Elixir]:"Elixir",[En.MySql]:"MySQL",[En.Nginx]:"Nginx",[En.Postgres]:"PostgreSQL",[En.Redis]:"Redis",[En.Kafka]:"Kafka",[En.Ignored]:"Ignored",[En.Unknown]:"Unknown",[En.Processing]:"Processing",[En.NoContainers]:"No Containers",[En.NoRunningPods]:"No Running Pods"},oa=[{id:En.Go,label:ra[En.Go],icon:co(En.Go)},{id:En.Java,label:ra[En.Java],icon:co(En.Java)},{id:En.JavaScript,label:ra[En.JavaScript],icon:co(En.JavaScript)},{id:En.Python,label:ra[En.Python],icon:co(En.Python)},{id:En.Php,label:ra[En.Php],icon:co(En.Php)},{id:En.Ruby,label:ra[En.Ruby],icon:co(En.Ruby)},{id:En.Rust,label:ra[En.Rust],icon:co(En.Rust)},{id:En.DotNet,label:ra[En.DotNet],icon:co(En.DotNet)},{id:En.CSharp,label:ra[En.CSharp],icon:co(En.CSharp)},{id:En.CPlusPlus,label:ra[En.CPlusPlus],icon:co(En.CPlusPlus)},{id:En.Swift,label:ra[En.Swift],icon:co(En.Swift)},{id:En.Elixir,label:ra[En.Elixir],icon:co(En.Elixir)}],ia={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},aa={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:co(En.Go)},ia],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:co(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:co(En.JavaScript)},ia],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:co(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:co(En.Python)},ia],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:co(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:co(En.Java)},ia],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:co(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:co(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:co(En.DotNet)},ia],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:co(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:co(En.Ruby)},ia],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:co(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:co(En.Php)},ia],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:co(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:co(En.MySql)}]},[En.CPlusPlus]:{community:[ia],enterprise:[]},[En.Rust]:{community:[ia],enterprise:[]},[En.Swift]:{community:[ia],enterprise:[]},[En.Elixir]:{community:[ia],enterprise:[]},[En.Nginx]:{community:[ia],enterprise:[]},[En.Postgres]:{community:[ia],enterprise:[]},[En.Redis]:{community:[ia],enterprise:[]},[En.Kafka]:{community:[ia],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[ia],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},sa="*",la=e=>!!e?.includes(sa),ca=e=>e?.length?la(e)?[sa]:e:[],da=e=>{if(e?.length&&!la(e))return e.filter(e=>e!==sa)},ua=e=>e===sa?"All languages":ra[e]??e,pa=e=>e===sa?bt:co(e),ha=nn("v1.26"),ga=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=ha},ma=[{type:Mn.CodeAttributes,icon:Co(Mn.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:[En.Go,En.Python,En.JavaScript]},{type:Mn.CustomInstrumentation,icon:Co(Mn.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:[En.Go,En.Java,En.Php]},{type:Mn.HeadersCollection,icon:Co(Mn.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:[En.Go,En.Java,En.JavaScript]},{type:Mn.PayloadCollection,icon:Co(Mn.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:[En.Go,En.JavaScript]}],fa=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Co(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},ya={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.'},ba={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."},va={[pn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[pn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[pn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Ea="Cancel",$a="Save",Sa="Edit rule",Ca="Edit auto rule",xa="Create rule",wa="Delete rule",Ta="Save",Oa="Create your first rule",Na="No Rules Exist",Aa="No Results",Ia=e=>`No rules match the search term "${e}"`,_a="Rule name",Ra="Rule type",Da="Select the type of condition that makes a trace highly relevant.",ka="Rule Enabled",La="Rule Disabled",Pa="Enabled",Ma="Disabled",Fa="Note",Ua="HTTP route",za="Method",Ba="Keep Percentage",Ha="Keep traces with duration larger than",ja="Keep traces with errors",Wa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Ga="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Xa="Custom percentage",Va="Disabled rule",Ka="Sample",Ya="Keep all",Ja="Drop all",qa="Operation type",Qa="HTTP route prefix",Za="Templated path",es="Templated path prefix",ts="Kafka topic",ns="Custom duration (ms)",rs="No preview available",os="Server address",is="Drop at most this percentage of matching traces",as="Unnamed rule",ss="Sampling Preview",ls="Source Scope",cs="Unknown source",ds="Operation",us="Duration",ps="Errors",hs="Keep Percentage",gs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ms="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.",fs="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ys="Retain traces with errors from the selected services and operations.",bs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",vs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Es={highlyRelevant:bs,noisy:vs,costReduction:void 0},$s="Type rule name",Ss="Add note here...",Cs="Type here",xs="Search source name",ws="e.g. collector.my.vendor.com",Ts="Optional notes (not used by the system). Add any context or details for this sampling rule.",Os="Rule will apply to all sources in the cluster",Ns="If multiple source scopes are set, they must all match simultaneously.",As="All sources",Is="-",_s="All",Rs="Sources",Ds="Namespaces",ks="Languages",Ls="any of",Ps="AND",Ms="All operations",Fs="HTTP server endpoint",Us="HTTP client endpoint",zs="Kafka consumer",Bs="Kafka producer",Hs="Sampling Rules",js='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ws="Refresh",Gs="Create rule",Xs="Sampling docs",Vs="75vw",Ks="Delete rule?",Ys="Are you sure you want to delete this sampling rule?",Js="Delete",qs="Cancel",Qs="Kubernetes Health Probes",Zs="Keep All Error Traces",el="Drop Traces Cluster-Wide",tl="A rule with the same matching conditions already exists.",nl="Create this rule as-is?",rl="This rule still uses the default configuration.\nDo you want to create it anyway?",ol="Rule preview",il="Continue editing",al="Create 'Noisy Operation Kubernetes Health Probes' rule",sl="Edit 'Noisy Operation Kubernetes Health Probes' rule",ll="Automatically detect and sample health probe traces across the cluster.",cl="Create 'Highly Relevant Operations' rule",dl="Edit 'Highly Relevant Operations' rule",ul="Automatically keep all error traces across the entire cluster.",pl="Create 'Cost Reduction' rule",hl="Edit 'Cost Reduction' rule",gl="Automatically drop a percentage of traces across the entire cluster.",ml="Skip setup",fl="Start setup",yl="Next",bl="Go to Sampling",vl="Read more",El="Welcome to Sampling",$l="Cut costs without losing what matters",Sl="Odigos sampling works in three stages:",Cl="Filter noisy traffic",xl="Remove non-actionable traces like health checks.",wl="Guarantee highly relevance operations",Tl="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ol="Reduce cost",Nl="Sample routine traffic using percentages.",Al="Sampling does not drop individual spans - it keeps or drops the entire trace.",Il="Filter noisy operations",_l="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Rl="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.",Dl="Preset Rules",kl="Kubernetes Health Probes",Ll="Automatically ignore health checks",Pl="You can review, adjust, and add additional custom rules later.",Ml="Choose your sampling strategy",Fl="Pick the approach that best fits your balance of cost vs data-completeness",Ul="Keep List",zl="Budget Friendly",Bl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Hl="Cost-oriented - keeps only what you explicitly select.",jl="Best for very large clusters with high volumes of traces and high costs.",Wl="Higher risk of missing important traces without ongoing review.",Gl="Drop List",Xl="Safe Choice",Vl="Define which traces must be aggressively dropped, while all others are kept by default.",Kl="Preserves most data unless explicitly filtered.",Yl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Jl="Advanced",ql="Maximum Flexibility",Ql="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Zl="'Keep List' profile",ec="Protect important traces",tc="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:",nc="Traces with errors",rc="Slow requests (duration above threshold)",oc="Mission-Critical endpoints or services",ic="Services under test or evaluation",ac="New deployments",sc="You can review, adjust, and add rules once onboarding is complete.",lc="Common Rules",cc="Preset Rules",dc="Error collection - entire cluster",uc="Keep all traces with errors",pc="Ambient sampling percentage",hc="'Drop List' profile",gc="Reduce high-volume traffic",mc="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.",fc="Advanced Configuration",yc="Configure sampling rules",bc="Advanced mode allows you to configure all sampling categories:",vc="Noise Filtering - remove non-actionable traces",Ec="Highly Relevance - guarantee important traces are kept",$c='Cost Control - drop traces for "Normal" operations',Sc="Rules can target:",Cc="Services",xc="HTTP Endpoints",wc="DB Operations",Tc="Errors",Oc="Latency and more...",Nc="Sampling configured successfully!",Ac="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Ic="Odigos will now:",_c="Filter noisy operations",Rc="Guarantee important traces",Dc="Reduce cost using controlled sampling",kc="Recommended",Lc={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."},Pc={noisy:al,highlyRelevant:cl,costReduction:pl},Mc={noisy:sl,highlyRelevant:dl,costReduction:hl},Fc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Uc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],zc=6048e5,Bc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Hc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},jc=Pt(e=>({...Hc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Hc)}));var Wc;(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"})(Wc||(Wc={}));const Gc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Xc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Vc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Kc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Yc=Pt(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:Kc})),Jc=Pt((e,t)=>({notifications:[],addNotification:n=>{const r=new Date,o=`${r.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:o,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var qc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(qc||(qc={}));const Qc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Zc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),ed=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Qc();return"number"==typeof r.total&&(i.total=r.total),"number"==typeof r.current&&(i.current=r.current),Array.isArray(r.list)&&(i.list=r.list),e({progress:{...o.progress,[n]:Zc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Qc(n,i.progress);return a.current+=r,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[n]:Zc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),td=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nd={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},rd=(e,t)=>e.destinationType.type!==t.destinationType.type,od=Pt(e=>({...nd,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=>rd(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>rd(e,t))})),clearStore:()=>e(()=>({...nd}))})),id=e=>{function t(){return void 0===e?{}:Xr(e)}const[n,r]=Ut(t()),[o,i]=Ut({}),[a,s]=Ut(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[r,o]of Object.entries(e)){const e=r;if(Array.isArray(o)){const r=t[e];Array.isArray(r)&&o.length===r.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,r[t])).length:e===r[t])||(n[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const r=l(o,t[e]);Object.keys(r).length>0&&(n[e]=r)}else o!==t[e]&&(n[e]=t[e])}for(const r of Object.keys(t))r in e||(n[r]=t[r]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&(r(o),s(o))},[e,n]);const u=Bt((e,t)=>Vr("formData"===e?n:o,t.toString()),[n,o]);return{formData:n,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),o=n.split(".");1===o.length?r(n=>({...n,[e]:t})):r(e=>{const n=Xr(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n}),i(e=>{const t=n,r=o[o.length-1],i=void 0!==e[t],a=r!==t&&void 0!==e[r];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[r],s})}else n&&r({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const r=Xr(e);let o=r;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,r})}else n&&i({...n})},resetFormData:e=>{const n=e||t();r(n),s(n),i({})},getNestedValue:u}},ad={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},sd=()=>{const{addNotification:e}=Jc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=id(ad);return{formData:t,formErrors:n,handleFormChange:r,resetFormData:i,validateForm:n=>{const r={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Ii(t)&&(r[e]=xr.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=xr.FIELD_IS_REQUIRED;break}}return i=!Object.values(r).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,r),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:o,disabled:i,fields:a})=>{const s={...Xr(ad),type:e,signals:t,name:n,notes:o,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case an.LabelsAttributes:case an.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case an.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(r=t,r?.length?r.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):r);break;case an.CollectContainerAttributes:case an.CollectReplicaSetAttributes:case an.CollectWorkloadId:case an.CollectClusterId:case an.ClusterAttributes:case an.OverwriteExistingValues:case an.AttributeNamesToDelete:case an.Renames:case an.PiiCategories:case an.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var n,r}),r(void 0,void 0,s)}}},ld=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},cd=()=>{const e=jt(null),[t,n]=Ut(0),[r,o]=Ut(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();n(t),o(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var dd;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(dd||(dd={}));const ud=r.div`
|
|
195
|
+
`,mi=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),r=Math.floor(n/60),o=n%60;return`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`},fi=({icon:n,title:r,titleColor:o,titleSize:a=hr.S,subTitle:s,subTitleColor:l,subTitleSize:c=hr.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,$]=Ut(()=>d?mi(d):"");zt(()=>{if(!d)return;$(mi(d));const e=setInterval(()=>$(mi(d)),1e3);return()=>clearInterval(e)},[d]);const S=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ii,{$gap:16,$alignItems:"center",children:[y?t(Vo,{scale:1.7,icon:b}):h?t(zo,{percentage:f}):g?t(Go,{scale:m}):null,(r||s||d||n||u)&&e(ii,{$gap:8,$alignItems:"center",children:[e(oi,{$gap:4,children:[n&&t(n,{}),u?t(gi,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:S,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:S,children:E}):null]})]})},yi=(e,t)=>({[Tn.Default]:n=>ee({fill:Lo(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Lo(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Lo(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Lo(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Lo(t,e,"500"),...n}),[Tn.Loading]:e=>fi({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Lo(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Lo(t,e,"300"),...n})}[e]),bi=e=>{switch(e){case Pn.Success:return Tn.Success;case Pn.Error:case Pn.Failure:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Unsupported:case Pn.Unknown:return Tn.Info;case Pn.Irrelevant:case Pn.Disabled:return Tn.Disabled;case Pn.Waiting:return Tn.Loading;case Pn.Pending:default:return Tn.Default}},vi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Ei={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},$i={sts:ft,dynamodb:mt,s3:W,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:xe},Si=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Ei[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=Ei[r.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=$i[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Ei))if(i.includes(e))return t;return Ue},Ci=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:n,kind:r,region:o}=e;return{namespace:t,name:n,kind:r,region:o||void 0}},xi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Dr(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&n.push(...e.items[o].fields.map(e=>({...e,initialValue:r[e.name]})))}return n},wi=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Tn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Ti(e){if(!e||0===e.length)return null;const t=[],n=[],r=[];for(const o of e){if(!o)continue;const e=o.workloadName??"",i=o.workloadKind??"",a=o.workloadNamespace??"",s=o.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&r.push(s)}return 0===t.length&&0===n.length&&0===r.length?null:{sources:t,namespaces:n,languages:r}}function Oi(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function Ni(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ti(t??null)}}function Ai(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Oi(t??null)}}const Ii=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),_i=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ri=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Di=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ki=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Li=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,Pi=e=>Li.test(e),Fi=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Mi=(e,t)=>{const n=Dr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Ui=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],zi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Bi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},Hi=e=>e.replace(/[^\d]/g,""),ji=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Wi=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},Gi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const r=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Xi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const r=e[n];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Xi(e)))}else if("object"==typeof r&&null!==r){const e=Xi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Vi=(e,t=2)=>JSON.stringify(e||{},null,t),Ki=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Yi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Ji=nn("v1.33"),qi=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Qi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Ji},Zi=nn("v1.20"),ea=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Zi},ta=e=>e?qi.map(t=>e[t]??null):[],na={PID:"process.pid",VPID:"process.vpid"},ra={[En.Go]:"Go",[En.Java]:"Java",[En.JavaScript]:"Node.js",[En.Python]:"Python",[En.DotNet]:".NET",[En.CSharp]:"C#",[En.CPlusPlus]:"C++",[En.Php]:"PHP",[En.Ruby]:"Ruby",[En.Rust]:"Rust",[En.Swift]:"Swift",[En.Elixir]:"Elixir",[En.MySql]:"MySQL",[En.Nginx]:"Nginx",[En.Postgres]:"PostgreSQL",[En.Redis]:"Redis",[En.Kafka]:"Kafka",[En.Ignored]:"Ignored",[En.Unknown]:"Unknown",[En.Processing]:"Processing",[En.NoContainers]:"No Containers",[En.NoRunningPods]:"No Running Pods"},oa=[{id:En.Go,label:ra[En.Go],icon:co(En.Go)},{id:En.Java,label:ra[En.Java],icon:co(En.Java)},{id:En.JavaScript,label:ra[En.JavaScript],icon:co(En.JavaScript)},{id:En.Python,label:ra[En.Python],icon:co(En.Python)},{id:En.Php,label:ra[En.Php],icon:co(En.Php)},{id:En.Ruby,label:ra[En.Ruby],icon:co(En.Ruby)},{id:En.Rust,label:ra[En.Rust],icon:co(En.Rust)},{id:En.DotNet,label:ra[En.DotNet],icon:co(En.DotNet)},{id:En.CSharp,label:ra[En.CSharp],icon:co(En.CSharp)},{id:En.CPlusPlus,label:ra[En.CPlusPlus],icon:co(En.CPlusPlus)},{id:En.Swift,label:ra[En.Swift],icon:co(En.Swift)},{id:En.Elixir,label:ra[En.Elixir],icon:co(En.Elixir)}],ia={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},aa={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:co(En.Go)},ia],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:co(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:co(En.JavaScript)},ia],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:co(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:co(En.Python)},ia],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:co(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:co(En.Java)},ia],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:co(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:co(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:co(En.DotNet)},ia],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:co(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:co(En.Ruby)},ia],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:co(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:co(En.Php)},ia],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:co(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:co(En.MySql)}]},[En.CPlusPlus]:{community:[ia],enterprise:[]},[En.Rust]:{community:[ia],enterprise:[]},[En.Swift]:{community:[ia],enterprise:[]},[En.Elixir]:{community:[ia],enterprise:[]},[En.Nginx]:{community:[ia],enterprise:[]},[En.Postgres]:{community:[ia],enterprise:[]},[En.Redis]:{community:[ia],enterprise:[]},[En.Kafka]:{community:[ia],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[ia],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},sa="*",la=e=>!!e?.includes(sa),ca=e=>e?.length?la(e)?[sa]:e:[],da=e=>{if(e?.length&&!la(e))return e.filter(e=>e!==sa)},ua=e=>e===sa?"All languages":ra[e]??e,pa=e=>e===sa?bt:co(e),ha=nn("v1.26"),ga=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=ha},ma=[{type:Fn.CodeAttributes,icon:Co(Fn.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:[En.Go,En.Python,En.JavaScript]},{type:Fn.CustomInstrumentation,icon:Co(Fn.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:[En.Go,En.Java,En.Php]},{type:Fn.HeadersCollection,icon:Co(Fn.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:[En.Go,En.Java,En.JavaScript]},{type:Fn.PayloadCollection,icon:Co(Fn.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:[En.Go,En.JavaScript]}],fa=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Co(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},ya={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.'},ba={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."},va={[pn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[pn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[pn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Ea="Cancel",$a="Save",Sa="Edit rule",Ca="Edit auto rule",xa="Create rule",wa="Delete rule",Ta="Save",Oa="Create your first rule",Na="No Rules Exist",Aa="No Results",Ia=e=>`No rules match the search term "${e}"`,_a="Rule name",Ra="Rule type",Da="Select the type of condition that makes a trace highly relevant.",ka="Rule Enabled",La="Rule Disabled",Pa="Enabled",Fa="Disabled",Ma="Note",Ua="HTTP route",za="Method",Ba="Keep Percentage",Ha="Keep traces with duration larger than",ja="Keep traces with errors",Wa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Ga="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Xa="Custom percentage",Va="Disabled rule",Ka="Sample",Ya="Keep all",Ja="Drop all",qa="Operation type",Qa="HTTP route prefix",Za="Templated path",es="Templated path prefix",ts="Kafka topic",ns="Custom duration (ms)",rs="No preview available",os="Server address",is="Drop at most this percentage of matching traces",as="Unnamed rule",ss="Sampling Preview",ls="Source Scope",cs="Unknown source",ds="Operation",us="Duration",ps="Errors",hs="Keep Percentage",gs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ms="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.",fs="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ys="Retain traces with errors from the selected services and operations.",bs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",vs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Es={highlyRelevant:bs,noisy:vs,costReduction:void 0},$s="Type rule name",Ss="Add note here...",Cs="Type here",xs="Search source name",ws="e.g. collector.my.vendor.com",Ts="Optional notes (not used by the system). Add any context or details for this sampling rule.",Os="Rule will apply to all sources in the cluster",Ns="If multiple source scopes are set, they must all match simultaneously.",As="All sources",Is="-",_s="All",Rs="Sources",Ds="Namespaces",ks="Languages",Ls="any of",Ps="AND",Fs="All operations",Ms="HTTP server endpoint",Us="HTTP client endpoint",zs="Kafka consumer",Bs="Kafka producer",Hs="Sampling Rules",js='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ws="Refresh",Gs="Create rule",Xs="Sampling docs",Vs="75vw",Ks="Delete rule?",Ys="Are you sure you want to delete this sampling rule?",Js="Delete",qs="Cancel",Qs="Kubernetes Health Probes",Zs="Keep All Error Traces",el="Drop Traces Cluster-Wide",tl="A rule with the same matching conditions already exists.",nl="Create this rule as-is?",rl="This rule still uses the default configuration.\nDo you want to create it anyway?",ol="Rule preview",il="Continue editing",al="Create 'Noisy Operation Kubernetes Health Probes' rule",sl="Edit 'Noisy Operation Kubernetes Health Probes' rule",ll="Automatically detect and sample health probe traces across the cluster.",cl="Create 'Highly Relevant Operations' rule",dl="Edit 'Highly Relevant Operations' rule",ul="Automatically keep all error traces across the entire cluster.",pl="Create 'Cost Reduction' rule",hl="Edit 'Cost Reduction' rule",gl="Automatically drop a percentage of traces across the entire cluster.",ml="Skip setup",fl="Start setup",yl="Next",bl="Go to Sampling",vl="Read more",El="Welcome to Sampling",$l="Cut costs without losing what matters",Sl="Odigos sampling works in three stages:",Cl="Filter noisy traffic",xl="Remove non-actionable traces like health checks.",wl="Guarantee highly relevance operations",Tl="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ol="Reduce cost",Nl="Sample routine traffic using percentages.",Al="Sampling does not drop individual spans - it keeps or drops the entire trace.",Il="Filter noisy operations",_l="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Rl="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.",Dl="Preset Rules",kl="Kubernetes Health Probes",Ll="Automatically ignore health checks",Pl="You can review, adjust, and add additional custom rules later.",Fl="Choose your sampling strategy",Ml="Pick the approach that best fits your balance of cost vs data-completeness",Ul="Keep List",zl="Budget Friendly",Bl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Hl="Cost-oriented - keeps only what you explicitly select.",jl="Best for very large clusters with high volumes of traces and high costs.",Wl="Higher risk of missing important traces without ongoing review.",Gl="Drop List",Xl="Safe Choice",Vl="Define which traces must be aggressively dropped, while all others are kept by default.",Kl="Preserves most data unless explicitly filtered.",Yl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Jl="Advanced",ql="Maximum Flexibility",Ql="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Zl="'Keep List' profile",ec="Protect important traces",tc="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:",nc="Traces with errors",rc="Slow requests (duration above threshold)",oc="Mission-Critical endpoints or services",ic="Services under test or evaluation",ac="New deployments",sc="You can review, adjust, and add rules once onboarding is complete.",lc="Common Rules",cc="Preset Rules",dc="Error collection - entire cluster",uc="Keep all traces with errors",pc="Ambient sampling percentage",hc="'Drop List' profile",gc="Reduce high-volume traffic",mc="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.",fc="Advanced Configuration",yc="Configure sampling rules",bc="Advanced mode allows you to configure all sampling categories:",vc="Noise Filtering - remove non-actionable traces",Ec="Highly Relevance - guarantee important traces are kept",$c='Cost Control - drop traces for "Normal" operations',Sc="Rules can target:",Cc="Services",xc="HTTP Endpoints",wc="DB Operations",Tc="Errors",Oc="Latency and more...",Nc="Sampling configured successfully!",Ac="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Ic="Odigos will now:",_c="Filter noisy operations",Rc="Guarantee important traces",Dc="Reduce cost using controlled sampling",kc="Recommended",Lc={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."},Pc={noisy:al,highlyRelevant:cl,costReduction:pl},Fc={noisy:sl,highlyRelevant:dl,costReduction:hl},Mc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Uc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],zc=6048e5,Bc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Hc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},jc=Pt(e=>({...Hc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Hc)}));var Wc;(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"})(Wc||(Wc={}));const Gc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Xc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Vc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Kc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Yc=Pt(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:Kc})),Jc=Pt((e,t)=>({notifications:[],addNotification:n=>{const r=new Date,o=`${r.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:o,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var qc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(qc||(qc={}));const Qc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Zc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),ed=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Qc();return"number"==typeof r.total&&(i.total=r.total),"number"==typeof r.current&&(i.current=r.current),Array.isArray(r.list)&&(i.list=r.list),e({progress:{...o.progress,[n]:Zc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Qc(n,i.progress);return a.current+=r,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[n]:Zc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),td=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nd={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},rd=(e,t)=>e.destinationType.type!==t.destinationType.type,od=Pt(e=>({...nd,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=>rd(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>rd(e,t))})),clearStore:()=>e(()=>({...nd}))})),id=e=>{function t(){return void 0===e?{}:Xr(e)}const[n,r]=Ut(t()),[o,i]=Ut({}),[a,s]=Ut(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[r,o]of Object.entries(e)){const e=r;if(Array.isArray(o)){const r=t[e];Array.isArray(r)&&o.length===r.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,r[t])).length:e===r[t])||(n[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const r=l(o,t[e]);Object.keys(r).length>0&&(n[e]=r)}else o!==t[e]&&(n[e]=t[e])}for(const r of Object.keys(t))r in e||(n[r]=t[r]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&(r(o),s(o))},[e,n]);const u=Bt((e,t)=>Vr("formData"===e?n:o,t.toString()),[n,o]);return{formData:n,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),o=n.split(".");1===o.length?r(n=>({...n,[e]:t})):r(e=>{const n=Xr(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n}),i(e=>{const t=n,r=o[o.length-1],i=void 0!==e[t],a=r!==t&&void 0!==e[r];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[r],s})}else n&&r({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const r=Xr(e);let o=r;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,r})}else n&&i({...n})},resetFormData:e=>{const n=e||t();r(n),s(n),i({})},getNestedValue:u}},ad={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},sd=()=>{const{addNotification:e}=Jc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=id(ad);return{formData:t,formErrors:n,handleFormChange:r,resetFormData:i,validateForm:n=>{const r={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Ii(t)&&(r[e]=xr.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=xr.FIELD_IS_REQUIRED;break}}return i=!Object.values(r).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,r),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:o,disabled:i,fields:a})=>{const s={...Xr(ad),type:e,signals:t,name:n,notes:o,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case an.LabelsAttributes:case an.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case an.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(r=t,r?.length?r.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):r);break;case an.CollectContainerAttributes:case an.CollectReplicaSetAttributes:case an.CollectWorkloadId:case an.CollectClusterId:case an.ClusterAttributes:case an.OverwriteExistingValues:case an.AttributeNamesToDelete:case an.Renames:case an.PiiCategories:case an.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var n,r}),r(void 0,void 0,s)}}},ld=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},cd=()=>{const e=jt(null),[t,n]=Ut(0),[r,o]=Ut(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();n(t),o(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var dd;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(dd||(dd={}));const ud=r.div`
|
|
196
196
|
width: ${({$size:e})=>1.5*e}px;
|
|
197
197
|
height: ${({$size:e})=>1.5*e}px;
|
|
198
198
|
display: flex;
|
|
@@ -203,7 +203,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
203
203
|
&:hover {
|
|
204
204
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
205
205
|
}
|
|
206
|
-
`,pd=({"data-id":e,icon:n,size:r=dd.S,onClick:o,disabled:i})=>t(ud,{"data-id":e,$size:r,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:t(n,{size:r})}),hd=({onDone:e}={})=>{const[n,r]=Ut(!1),[o,i]=Ut(-1),a=Bt(async(t,o)=>{if(!n){if(r(!0),void 0!==o&&i(o),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(()=>{r(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Bt(({value:e,size:r})=>t(pd,{icon:n?vt:Et,size:r,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:o,clickCopy:a}},gd=e=>{const{addNotification:t}=Jc(),{formData:n,handleFormChange:r,formErrors:o,handleErrorChange:i,resetFormData:a}=id(e);return{formData:n,formErrors:o,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let o=!0;return n.name?_i(n.name)?r.name=void 0:(o=!1,r.name=xr.ILLEGAL_K8S_LABEL):(o=!1,r.name=xr.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),o},loadFormWithDrawerItem:({name:t})=>{const n={...Xr(e),name:t};r(void 0,void 0,n)}}},md={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},fd=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:r}=Jc(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=id(md),[c,d]=Ut([]),[u,p]=Ut([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:r,displayName:o,initialValue:i,renderCondition:a}=e;if(n===xn.Dropdown){const e=Dr(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:o,value:i,renderCondition:a,...Dr(r,{})}})).map(e=>{if(n){const t="string"==typeof n?Dr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===Ui(o.exportedSignals).length){const{logs:e,metrics:n,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:r.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:r,required:o})=>{o&&!r&&(n=!1,t[e]=xr.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&r({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:r,fields:o})=>{const i={...Xr(md),type:e,name:t,disabled:n,exportedSignals:r,fields:Object.entries(Dr(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},yd={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[
|
|
206
|
+
`,pd=({"data-id":e,icon:n,size:r=dd.S,onClick:o,disabled:i})=>t(ud,{"data-id":e,$size:r,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:t(n,{size:r})}),hd=({onDone:e}={})=>{const[n,r]=Ut(!1),[o,i]=Ut(-1),a=Bt(async(t,o)=>{if(!n){if(r(!0),void 0!==o&&i(o),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(()=>{r(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Bt(({value:e,size:r})=>t(pd,{icon:n?vt:Et,size:r,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:o,clickCopy:a}},gd=e=>{const{addNotification:t}=Jc(),{formData:n,handleFormChange:r,formErrors:o,handleErrorChange:i,resetFormData:a}=id(e);return{formData:n,formErrors:o,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let o=!0;return n.name?_i(n.name)?r.name=void 0:(o=!1,r.name=xr.ILLEGAL_K8S_LABEL):(o=!1,r.name=xr.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),o},loadFormWithDrawerItem:({name:t})=>{const n={...Xr(e),name:t};r(void 0,void 0,n)}}},md={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},fd=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:r}=Jc(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=id(md),[c,d]=Ut([]),[u,p]=Ut([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:r,displayName:o,initialValue:i,renderCondition:a}=e;if(n===xn.Dropdown){const e=Dr(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:o,value:i,renderCondition:a,...Dr(r,{})}})).map(e=>{if(n){const t="string"==typeof n?Dr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===Ui(o.exportedSignals).length){const{logs:e,metrics:n,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:r.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:r,required:o})=>{o&&!r&&(n=!1,t[e]=xr.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&r({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:r,fields:o})=>{const i={...Xr(md),type:e,name:t,disabled:n,exportedSignals:r,fields:Object.entries(Dr(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},yd={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[Mn.Column]:null,[Mn.FilePath]:null,[Mn.Function]:null,[Mn.LineNumber]:null,[Mn.Namespace]:null,[Mn.StackTrace]:null},headersCollection:null,customInstrumentations:{[zn.Java]:null,[zn.Golang]:null,[zn.Php]:null},networkMetrics:null},bd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=id(yd);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,sourceScopes:o,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:c})=>{const d={...Xr(yd),ruleName:e,notes:t,disabled:r,sourceScopes:o??null,networkMetrics:c??null};i&&(d.payloadCollection={[Bn.HttpRequest]:i[Bn.HttpRequest]?{}:null,[Bn.HttpResponse]:i[Bn.HttpResponse]?{}:null,[Bn.DbQuery]:i[Bn.DbQuery]?{}:null,[Bn.Messaging]:i[Bn.Messaging]?{}:null}),a&&(d.codeAttributes={[Mn.Column]:a[Mn.Column]||null,[Mn.FilePath]:a[Mn.FilePath]||null,[Mn.Function]:a[Mn.Function]||null,[Mn.LineNumber]:a[Mn.LineNumber]||null,[Mn.Namespace]:a[Mn.Namespace]||null,[Mn.StackTrace]:a[Mn.StackTrace]||null}),s&&(d.headersCollection=s),l&&(d.customInstrumentations={[zn.Java]:l[zn.Java]||null,[zn.Golang]:l[zn.Golang]||null,[zn.Php]:l[zn.Php]||null}),n(void 0,void 0,d)}}},vd=({active:e,key:t,withAltKey:n,withCtrlKey:r,withShiftKey:o,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,r,o,i,a]),null),Ed="data-ignore-outside-click",$d=(e,t)=>{const n=jt(t);n.current=t,zt(()=>{const t=t=>{const r=t.target;e.current&&!e.current.contains(r)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Ed))return!0;t=t.parentNode}return!1})(r)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Sd=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[r,o]=Ut(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;o(n)};return Wt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),zt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),r},Cd=(e,{behavior:t="smooth",block:n="center",inline:r,delayMs:o=50}={})=>{const i=jt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:r})},o);return()=>window.clearTimeout(a)},[e,t,n,r,o]),i},xd=({sectionNames:e,threshold:t=.4})=>{const[n,r]=Ut(e[0]||""),[o,i]=Ut(null),a=jt({}),s=jt(!1),l=jt(!1),c=Bt((e,t)=>{a.current[e]=t},[]),d=Bt(e=>{i(e)},[]),u=Bt(e=>{l.current=!0,r(e)},[]);return zt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),zt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&r(e);break}},{threshold:t,root:o});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,o]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},wd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:r="local"}={})=>{const o=jt(null),[i,a]=Ut(!1),[s,l]=Ut({top:0,left:0}),[c,d]=Ut({edge:"top",align:"left"});return $d(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===r)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=o.current?.clientWidth||t,u=o.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},Td=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Dr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Od={otelServiceName:"",currentStreamName:""},Nd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=id(Od);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const r={...Xr(Od),otelServiceName:e||t.name||""};n(void 0,void 0,r)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const Ad=new Xt(Vt.locale),Id=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],_d=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Rd=()=>{const[e,t]=Ut(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return Ad.format(_d(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:r=!0}={})=>{try{const o=_d(e);let i=Math.max(0,Date.now()-o.getTime());if(i<1e3)return"short"===n?"0s":r?"just now":"0 seconds";const a=[];for(const e of Id){if(a.length===t)break;const r=Math.floor(i/e.ms);if(!(r<=0&&0===a.length)){if(r<=0)break;i-=r*e.ms,a.push("short"===n?`${r}${e.short}`:`${r} ${1===r?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return r&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},Dd=r.div`
|
|
207
207
|
width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
|
|
208
208
|
position: relative;
|
|
209
209
|
display: ${({$inline:e})=>e?"inline":"flex"};
|
|
@@ -241,7 +241,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
241
241
|
gap: 8px;
|
|
242
242
|
width: 100%;
|
|
243
243
|
min-width: 0;
|
|
244
|
-
`,
|
|
244
|
+
`,Fd=r.div`
|
|
245
245
|
display: flex;
|
|
246
246
|
width: 100%;
|
|
247
247
|
flex-shrink: 0;
|
|
@@ -251,7 +251,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
251
251
|
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
252
252
|
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
253
253
|
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
254
|
-
`,
|
|
254
|
+
`,Md=r.div`
|
|
255
255
|
width: 0;
|
|
256
256
|
height: 0;
|
|
257
257
|
border-style: solid;
|
|
@@ -260,7 +260,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
260
260
|
flex-shrink: 0;
|
|
261
261
|
|
|
262
262
|
${({$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 `}
|
|
263
|
-
`,Ud=({withIcon:r,titleIcon:o,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:$,arrowPlacement:S,handlePosition:C}=wd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Ht(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,r]=e.split('"');return{original:e,href:n,label:r.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:r}=e;x?C($.left||n,$.top||r):C(n,r),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:c});const T=v&&f.length>0;return e(Dd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,r&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(kd,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===S.edge&&t(
|
|
263
|
+
`,Ud=({withIcon:r,titleIcon:o,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:$,arrowPlacement:S,handlePosition:C}=wd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Ht(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,r]=e.split('"');return{original:e,href:n,label:r.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:r}=e;x?C($.left||n,$.top||r):C(n,r),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:c});const T=v&&f.length>0;return e(Dd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,r&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(kd,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===S.edge&&t(Fd,{$align:S.align,children:t(Md,{$pointsUp:!0})}),t(Ld,{$maxWidth:p,children:e(Pd,{children:[(!!o||!!a)&&e(oi,{$gap:4,style:{alignItems:"center"},children:[o&&t(o,{size:16},"icon"),a&&t(br,{size:hr.XS,children:a},"title")]}),f.map((e,n)=>t(br,{size:hr.XXXS,children:e},n)),!!l&&t(br,{size:hr.XXXS,color:gr.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(Fd,{$align:S.align,children:t(Md,{$pointsUp:!1})})]}),document.body)]})},zd=r.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
align-items: center;
|
|
266
266
|
justify-content: center;
|
|
@@ -338,7 +338,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
338
338
|
}
|
|
339
339
|
`:""}
|
|
340
340
|
}
|
|
341
|
-
`,Gd=
|
|
341
|
+
`,Gd=Ft(({"data-id":r,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Hd.Primary,size:u=jd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const $=i(),S=p||(u===jd.L?18:16),C=u===jd.L?hr.S:hr.XS,x=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[w,T]=Ut(!1),O=!(!h&&!w),N=!(!y&&!O),A=Bt(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return t(Wd,{ref:E,"data-id":r,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!o,...v,disabled:N,onClick:N?void 0:A,children:t(Ud,{text:a,withIcon:!s,children:O?t(fi,o?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ai,{$width:"fit-content",children:t(l,{size:S,fill:x})}),o?t(br,{size:C,weight:500,color:x,nowrap:!0,children:o}):null,c&&t(ai,{$width:"fit-content",children:t(c,{size:S,fill:x})})]})})})});Gd.displayName=Gd.name;const Xd={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340",1e3:"#0C2F2C"},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",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,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"}},Vd={v2:Xd.v2,darkMode:!0,colors:{...Xd.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:Xd.font_family},Kd={v2:Xd.v2,darkMode:!1,colors:{...Xd.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:Xd.font_family},Yd=e=>e?Vd:Kd,Jd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Xd,darkModeTheme:Vd,getTheme:Yd,lightModeTheme:Kd},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 qd=({children:e})=>{const{darkMode:n}=Bc();return t(s,{theme:Yd(n),children:e})},Qd={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"},Zd=Object.freeze(Object.defineProperty({__proto__:null,hex:Qd},Symbol.toStringTag,{value:"Module"})),eu={in:{left:a`
|
|
342
342
|
from { transform: translateX(-100%); }
|
|
343
343
|
to { transform: translateX(0); }
|
|
344
344
|
`,right:a`
|
|
@@ -607,12 +607,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
607
607
|
border-radius: 4px;
|
|
608
608
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
609
609
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
610
|
-
`,
|
|
610
|
+
`,Fu=r.div`
|
|
611
611
|
flex-shrink: 0;
|
|
612
612
|
display: inline-flex;
|
|
613
613
|
align-items: center;
|
|
614
614
|
gap: 4px;
|
|
615
|
-
`,
|
|
615
|
+
`,Mu=({defaultOpen:n,open:r,onOpenChange:o,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const $=i(),S=void 0!==r,C=!!f||!!y||!!E,[x,w]=Ut(n??!C),T=S?r:x,O=Bt(e=>{S||w(e),o?.(e)},[S,o]),[N,A]=Ut({x:a||Nu.Left,y:s||Au.Bottom}),I=jt(null);$d(I,()=>O(!1));const[_,R]=Ut({}),D=Bt((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const r=C?8:0;R({top:t===Au.Bottom?C?n.bottom+r:n.top:void 0,bottom:t===Au.Top?C?window.innerHeight-n.top+r:window.innerHeight-n.bottom:void 0,left:e===Nu.Left?n.left:void 0,right:e===Nu.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?Nu.Right:Nu.Left),y:s||(e.clientY>window.innerHeight/2?Au.Top:Au.Bottom)};A(n),D(n.x,n.y)};Wt(()=>{T&&D(N.x,N.y)},[T,N.x,N.y,D]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),C&&!p&&O(!1)},[P,F]=Ut(""),M=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(Iu,{ref:I,children:[u&&t(Eu,{label:u}),f&&t(Gd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(Gd,{variant:Hd.Text,size:jd.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(_u,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(mu,{value:P,onChange:F,width:"100%"}),b?t(fi,{withSpinner:!0,title:"Loading...",titleSize:hr.XS}):M.length?t(Ru,{$maxHeight:m,children:M.map(n=>{if(!n)return null;const{id:r,label:o,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,d=c.includes(r);return e(Du,{"data-id":`option-${r}`,$selected:d&&!a,onClick:()=>L(r),title:l?`${o} — ${l}`:o,children:[a&&t(wu,{value:d,onChange:()=>L(r)}),i&&t(i,{size:14,fill:n.color||$.v2.colors.white[500]}),s&&t(Pu,{children:t(br,{size:hr.XXS,nowrap:!0,color:gr.Secondary,children:s})}),e(ku,{children:[t(Lu,{children:t(br,{size:hr.XS,nowrap:!0,color:n.color||gr.Primary,children:o})}),l&&e(Fu,{children:[t(Be,{size:12,fill:$.v2.colors.silver[200]}),t(br,{size:hr.XS,nowrap:!0,color:gr.Secondary,children:l})]})]})]},r)})}):t(ri,{$padding:"6px 0",children:t(yu,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!M.length&&t(Gd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var Uu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(Uu||(Uu={}));const zu=({onAnyClick:e,actions:n})=>t(oi,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case Uu.Button:return t(Gd,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case Uu.ButtonDropData:return t(Mu,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n.buttonProps?.onClick?.(t[0]),e?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),Bu=r.div`
|
|
616
616
|
display: flex;
|
|
617
617
|
align-items: center;
|
|
618
618
|
justify-content: center;
|
|
@@ -644,7 +644,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
644
644
|
flex-direction: column;
|
|
645
645
|
gap: 4px;
|
|
646
646
|
min-width: 0;
|
|
647
|
-
`,Ku=({item:n,cellsPerRow:r})=>{const{CopyButton:o}=hd(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Vu,{$cellsPerRow:r,children:[!!a&&t(Ud,{text:s,children:t(ju,{size:hr.XXXS,color:gr.Secondary,nowrap:!0,children:a})}),e(oi,{$gap:4,children:[u&&t(Bd,{...u}),l&&t(Ud,{text:c,children:t(ju,{size:hr.XS,nowrap:!0,children:l})}),d&&t(o,{value:l||u?.label?.toString()||"",size:dd.XS})]})]})},Yu=({bgTint:n="900",width:r,fullHeight:o=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ut(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,$=!!u.length,S=!!c.length;return e(Wu,{$width:r,$bgTint:n,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&e(Gu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Hu,{...a}):t("div",{}),e(oi,{$gap:12,children:[p,E&&v&&t(zu,{actions:d}),S&&t(oi,{$gap:8,children:c.map((e,t)=>Gt(Bd,{...e,key:e.key||`${e.label}-${t}`}))}),($||s)&&e(oi,{$gap:2,children:[$&&t(
|
|
647
|
+
`,Ku=({item:n,cellsPerRow:r})=>{const{CopyButton:o}=hd(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Vu,{$cellsPerRow:r,children:[!!a&&t(Ud,{text:s,children:t(ju,{size:hr.XXXS,color:gr.Secondary,nowrap:!0,children:a})}),e(oi,{$gap:4,children:[u&&t(Bd,{...u}),l&&t(Ud,{text:c,children:t(ju,{size:hr.XS,nowrap:!0,children:l})}),d&&t(o,{value:l||u?.label?.toString()||"",size:dd.XS})]})]})},Yu=({bgTint:n="900",width:r,fullHeight:o=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ut(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,$=!!u.length,S=!!c.length;return e(Wu,{$width:r,$bgTint:n,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&e(Gu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Hu,{...a}):t("div",{}),e(oi,{$gap:12,children:[p,E&&v&&t(zu,{actions:d}),S&&t(oi,{$gap:8,children:c.map((e,t)=>Gt(Bd,{...e,key:e.key||`${e.label}-${t}`}))}),($||s)&&e(oi,{$gap:2,children:[$&&t(Mu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(Gd,{variant:Hd.Text,size:jd.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Xu,{children:g.map(e=>t(Ku,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Ju;(e=>{e.S="small",e.M="medium"})(Ju||(Ju={}));const qu=r.div`
|
|
648
648
|
display: flex;
|
|
649
649
|
flex-direction: column;
|
|
650
650
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -655,7 +655,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
655
655
|
border-radius: 16px;
|
|
656
656
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
|
|
657
657
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
658
|
-
`,Qu=
|
|
658
|
+
`,Qu=Ft(({id:n,size:r=Ju.M,fullHeight:o=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=r===Ju.S?4:16,y="number"==typeof h?h:r===Ju.S?12:16,b=a??(i?t(Hu,{...i}):null),v=l??(s?t(mu,{...s}):null),E=!!b||!!v,$=!!d&&d.length>0;return e(qu,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:o,$backgroundColor:p,$bordered:g,children:[E||$?e(oi,{$gap:f,$justifyContent:"space-between",children:[E?e(oi,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,$&&t(zu,{actions:d??[]})]}):null,u]})});Qu.displayName="SectionCard";const Zu=r.div`
|
|
659
659
|
flex: 1;
|
|
660
660
|
align-self: stretch;
|
|
661
661
|
display: flex;
|
|
@@ -737,7 +737,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
737
737
|
align-items: center;
|
|
738
738
|
justify-content: center;
|
|
739
739
|
cursor: pointer;
|
|
740
|
-
`,lp=({label:n,required:r,tooltip:o,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=wn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:$,...S})=>{const C=i(),x=h===wn.Password,[w,T]=Ut(!1),[O,N]=Ut(null),A=c||!!d||!!O,I=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=jt(null),D=Sd(R,{deps:[m]}),k=S.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(ii,{$width:v,$gap:6,children:[t(Eu,{label:n,tooltip:o,required:r,badge:a}),t(ip,{$small:E,$disabled:y,$error:A,$clickable:!!$&&!y,onClick:y?void 0:$,children:e(Ud,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(ap,{"data-id":g,type:w||h===wn.Number||h===wn.Decimal?wn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===wn.Number||h===wn.Decimal){const n=h===wn.Number?Hi(t):Bi(t),r=null!=S.min?Number(S.min):void 0,o=null!=S.max?Number(S.max):void 0,i=h===wn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=o&&e>o?(a=String(o),s=!0):null!=r&&e<r&&(a=String(r),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=r&&null!=o?`between ${r} and ${o}`:null!=o?`at most ${o}`:`at least ${r}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...S,ref:R}),x?t(sp,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t($u,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},cp=e=>{const{"data-id":n,options:r,placeholder:o="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ut(""),[d,u]=Ut(!1),p=Ht(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Ht(()=>{if(s){const e=p.length;return e?1===e?r.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?r.find(t=>t.id===e.value)?.label??"":""},[s,e,r,p]),g=d?l:h,m=Ht(()=>{const e=s?r.map(e=>({...e,withCheckbox:!0})):r;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,r,l]),f=Bt(()=>{c(""),u(!0)},[]),y=Bt(t=>{c(t.target.value),d||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[d,s,e]),b=Bt(e=>{u(e),e||c("")},[]),v=Bt(t=>{if(s)return void e.onSelect(t);const n=r.find(e=>e.id===t[0]);n&&(e.onSelect(n),c(""),u(!1))},[s,e,r]),E=d&&(i||m.length>0||l.length>0);return t(
|
|
740
|
+
`,lp=({label:n,required:r,tooltip:o,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=wn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:$,...S})=>{const C=i(),x=h===wn.Password,[w,T]=Ut(!1),[O,N]=Ut(null),A=c||!!d||!!O,I=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=jt(null),D=Sd(R,{deps:[m]}),k=S.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(ii,{$width:v,$gap:6,children:[t(Eu,{label:n,tooltip:o,required:r,badge:a}),t(ip,{$small:E,$disabled:y,$error:A,$clickable:!!$&&!y,onClick:y?void 0:$,children:e(Ud,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(ap,{"data-id":g,type:w||h===wn.Number||h===wn.Decimal?wn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===wn.Number||h===wn.Decimal){const n=h===wn.Number?Hi(t):Bi(t),r=null!=S.min?Number(S.min):void 0,o=null!=S.max?Number(S.max):void 0,i=h===wn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=o&&e>o?(a=String(o),s=!0):null!=r&&e<r&&(a=String(r),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=r&&null!=o?`between ${r} and ${o}`:null!=o?`at most ${o}`:`at least ${r}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...S,ref:R}),x?t(sp,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t($u,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},cp=e=>{const{"data-id":n,options:r,placeholder:o="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ut(""),[d,u]=Ut(!1),p=Ht(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Ht(()=>{if(s){const e=p.length;return e?1===e?r.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?r.find(t=>t.id===e.value)?.label??"":""},[s,e,r,p]),g=d?l:h,m=Ht(()=>{const e=s?r.map(e=>({...e,withCheckbox:!0})):r;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,r,l]),f=Bt(()=>{c(""),u(!0)},[]),y=Bt(t=>{c(t.target.value),d||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[d,s,e]),b=Bt(e=>{u(e),e||c("")},[]),v=Bt(t=>{if(s)return void e.onSelect(t);const n=r.find(e=>e.id===t[0]);n&&(e.onSelect(n),c(""),u(!1))},[s,e,r]),E=d&&(i||m.length>0||l.length>0);return t(Mu,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:Au.Bottom,children:t(lp,{name:n,leftIcon:$t,placeholder:o,value:g,onChange:y,onFocus:f,disabled:a})})},dp=r.button`
|
|
741
741
|
width: 100%;
|
|
742
742
|
padding: 0;
|
|
743
743
|
padding-right: 12px;
|
|
@@ -861,7 +861,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
861
861
|
`,Pp=r.td`
|
|
862
862
|
vertical-align: top;
|
|
863
863
|
padding: 4px 6px;
|
|
864
|
-
`,
|
|
864
|
+
`,Fp=r.span`
|
|
865
865
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
866
866
|
overflow-wrap: break-word;
|
|
867
867
|
word-break: break-word;
|
|
@@ -869,7 +869,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
869
869
|
/* Fallback for older browsers */
|
|
870
870
|
-ms-word-break: break-all;
|
|
871
871
|
font-size: 12px;
|
|
872
|
-
`,
|
|
872
|
+
`,Mp=({language:e,code:n,theme:r,flatten:o,pretty:a})=>{const{darkMode:s}=i(),l=r?qt[r]:s?qt.palenight:qt.vsLight;let c="";if("json"===e){const e=Dr(n,{}),t=Xi(e);c=Vi(o?eo(t):t)}else c=n;return a&&"json"===e?t(Up,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:n,tokens:r})=>t("pre",{children:r.map((r,o)=>t("div",{...e({line:r}),children:r.map((e,r)=>t(Fp,{...n({token:e})},`line-${o}-token-${r}`))},`line-${o}`))})})},Up=({darkMode:n,str:r})=>{const o=i(),a=(n,r)=>{const i=new Array(n).fill(n=>e(Lp,{...n,children:[t(Pp,{}),t(Pp,{})]}));return t(Mt,{children:i.map((e,n)=>t(e,{style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${r}-${n}`))})};return t(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:r,children:({getLineProps:n,getTokenProps:r,tokens:i})=>t(Dp,{children:t(kp,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],r=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(r.split("@")[0])&&(n[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:r}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Mt,{children:[a(2,s),e(Lp,{...c,children:[t(Pp,{children:t(br,{nowrap:!0,children:l[0].content})}),t(Pp,{})]})]},`line-${s}`):2===l.length?t(Lp,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((e,n)=>{const[r,...o]=e.split("@");return{text:r,components:o?.map((e,r)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return t(Ud,{withIcon:!0,text:i},`${o}-${i}-${r}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${o}-${i}-${r}`);let e=yi(i,n);return e||(e=yi(Tn.Warning,n)),t(e,{},`${o}-${i}-${r}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,o),c=0===i;return t(Pp,{children:e(oi,{children:[t(oi,{children:l}),t(Fp,{$noWrap:c,...r({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},zp=r.div`
|
|
873
873
|
display: flex;
|
|
874
874
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
875
875
|
gap: 8px;
|
|
@@ -941,7 +941,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
941
941
|
flex-shrink: 0;
|
|
942
942
|
width: 18px;
|
|
943
943
|
height: 18px;
|
|
944
|
-
`,Jp=({conditions:n,title:r,subTitle:o})=>{const a=i(),[s,l]=Ut(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>
|
|
944
|
+
`,Jp=({conditions:n,title:r,subTitle:o})=>{const a=i(),[s,l]=Ut(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>Fi(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>ao(d),[d]);zt(()=>{l(p||g||m)},[p,g,m]);const y=Ht(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=Ht(()=>p?Tn.Error:g?Tn.Warning:m?Tn.Info:Tn.Success,[p,g,m]),v=Ht(()=>r||(1===d.length?ur(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:r})=>e?"Something Failed":t||n?"Something isn't right":r?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[r,d,p,g,m,y]),E=Ht(()=>o||1===d.length&&d[0].message||void 0,[o,d]),$=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Xp,{children:[t(Gp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&t(Vp,{children:d.map(({status:n,type:r,reason:o,message:i},s)=>{const l=n===Tn.Loading,c=n===Tn.Disabled?Tn.Info:n,d=l?null:yi(c,a),u=n===Tn.Error?Lo(a,Tn.Error,"500"):n===Tn.Warning?Lo(a,Tn.Warning,"500"):a.v2.colors.white[500],p=[r,i||o].filter(Boolean).join(" - ");return e(Kp,{children:[t(Yp,{children:l||!d?t(fi,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(br,{size:hr.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},qp=r.div`
|
|
945
945
|
width: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Vertical?`${t}px`:n||"100%"};
|
|
946
946
|
height: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Horizontal?`${t}px`:n||"100%"};
|
|
947
947
|
margin: ${({$orientation:e,$margin:t})=>t||(e===gn.Horizontal?"8px 0":"0 8px")};
|
|
@@ -1011,7 +1011,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1011
1011
|
align-items: center;
|
|
1012
1012
|
gap: 16px;
|
|
1013
1013
|
flex-shrink: 0;
|
|
1014
|
-
`,hh=({icon:n,iconSrc:r,title:o,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(lh,{children:[e(ch,{children:[n?t(dh,{children:t(n,{size:24})}):r?t(dh,{children:t(uh,{src:r,alt:o||"icon"})}):null,(o||i?.length||a)&&e(ii,{$gap:6,children:[(o||i?.length)&&e(oi,{$gap:16,children:[o&&t(br,{size:hr.S,weight:500,children:o}),i?.length&&t(oi,{$gap:4,children:i?.map((e,n)=>t(Bd,{...e},`${e.label}-${n}`))})]}),a&&t(br,{size:hr.XXS,children:a})]})]}),e(ph,{children:[s&&t(ih,{...s}),l?.length?t(
|
|
1014
|
+
`,hh=({icon:n,iconSrc:r,title:o,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(lh,{children:[e(ch,{children:[n?t(dh,{children:t(n,{size:24})}):r?t(dh,{children:t(uh,{src:r,alt:o||"icon"})}):null,(o||i?.length||a)&&e(ii,{$gap:6,children:[(o||i?.length)&&e(oi,{$gap:16,children:[o&&t(br,{size:hr.S,weight:500,children:o}),i?.length&&t(oi,{$gap:4,children:i?.map((e,n)=>t(Bd,{...e},`${e.label}-${n}`))})]}),a&&t(br,{size:hr.XXS,children:a})]})]}),e(ph,{children:[s&&t(ih,{...s}),l?.length?t(Mu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(pd,{"data-id":"drawer-close",icon:St,size:dd.M,onClick:c,disabled:d})]})]}),gh=r.div`
|
|
1015
1015
|
position: relative;
|
|
1016
1016
|
&.animated {
|
|
1017
1017
|
overflow: hidden;
|
|
@@ -1097,7 +1097,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1097
1097
|
|
|
1098
1098
|
height: calc(100% - ${56}px);
|
|
1099
1099
|
overflow-y: auto;
|
|
1100
|
-
`,Oh=({isOpen:r,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(ld(r),r?Yt(e(n,{children:[!o&&t(li,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(wh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(hh,{...c}),t(Th,{children:u}),d&&t(xh,{...d})]})]}),document.body):null),Nh=({options:e,values:n,setValues:r,withMultiSelect:o,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>n.includes(e.id)),[e,n]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t(
|
|
1100
|
+
`,Oh=({isOpen:r,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(ld(r),r?Yt(e(n,{children:[!o&&t(li,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(wh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(hh,{...c}),t(Th,{children:u}),d&&t(xh,{...d})]})]}),document.body):null),Nh=({options:e,values:n,setValues:r,withMultiSelect:o,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>n.includes(e.id)),[e,n]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t(Mu,{withMultiSelect:o,withSearch:i,fullWidth:!0,alignX:Nu.Left,items:e,selectedIds:n,setSelectedIds:r,children:({ChevronIcon:e,handleClick:n})=>t(lp,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},Ah=({error:n})=>{const r=i(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:r.text.error,fontFamily:r.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:r.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:r.text.secondary,fontSize:"14px"}};return e("div",{style:o.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:o.errorMessage,children:n?.message||"Unknown Error"}),e("details",{style:o.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:o.errorStack,children:n?.stack||"Unknown Stack"})]}),t("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),t(Gd,{variant:Hd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Ih=({children:e})=>t(en,{FallbackComponent:({error:e,...n})=>t(qd,{children:t(Ah,{...n,error:e})}),children:e}),_h=r.header`
|
|
1101
1101
|
position: relative;
|
|
1102
1102
|
width: 100%;
|
|
1103
1103
|
padding: 12px 18px;
|
|
@@ -1134,12 +1134,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1134
1134
|
aspect-ratio: 1 / 1;
|
|
1135
1135
|
border-radius: 8px;
|
|
1136
1136
|
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?Lo(e,n,n===Tn.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1137
|
-
`,
|
|
1137
|
+
`,Fh=({icons:n,icon:r,iconSrc:o,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=No(d,c.v2.text.size);if(n&&n.length>1){const r=n.slice(0,3),o=n.length-r.length,i=r.slice(0,2),c=r.slice(2),u=c.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(Ph,{$size:s,$padding:l,$status:a,children:e(ii,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(oi,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:d},`top-${n}`))}),u&&e(oi,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,n)=>t(e,{size:d},`bottom-${n}`)),o>0&&t(br,{size:p,weight:500,children:`+${o}`})]})]})})})}const h=n?.[0]||r;return t("div",{style:{width:"fit-content"},children:t(Ph,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:o,alt:"",width:u,height:u})})})},Mh=r.div`
|
|
1138
1138
|
width: 100%;
|
|
1139
1139
|
border-radius: 8px;
|
|
1140
1140
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1141
1141
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1142
|
-
`,Uh=({values:n,setValues:r,name:o,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=n.length<=1,b=g,v=g||y&&b,E=n.length?n:[""];return t(
|
|
1142
|
+
`,Uh=({values:n,setValues:r,name:o,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=n.length<=1,b=g,v=g||y&&b,E=n.length?n:[""];return t(Mh,{$plain:m,children:e(ii,{"data-id":o,$gap:6,children:[t(Eu,{label:a,tooltip:s,required:c,badge:l}),t(ii,{$gap:8,children:E.map((o,i)=>{const a=i===E.length-1;return e(oi,{$gap:8,$alignItems:"center",children:[t(lp,{width:"100%",autoFocus:Ii(o)&&!y&&a,value:o,onChange:e=>((e,t)=>{const o=[...n||[]];o[t]=e,r(o)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&t(Gd,{leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:b,onClick:()=>(()=>{const e=n.length?Xr(n):[Xr("")];e.push(""),r(e)})()}),t(Gd,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),r(t)})(i)})]},`input-list-${i}`)})}),t($u,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var zh;(e=>{e.S="small",e.L="large"})(zh||(zh={}));const Bh=r.div`
|
|
1143
1143
|
width: fit-content;
|
|
1144
1144
|
display: flex;
|
|
1145
1145
|
align-items: center;
|
|
@@ -1171,7 +1171,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1171
1171
|
min-width: 0;
|
|
1172
1172
|
`,Yh=r.div`
|
|
1173
1173
|
padding-top: 24px;
|
|
1174
|
-
`,Jh=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=n.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return n.forEach(({keyName:e,defaultValue:n})=>t[e]=n??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=r.length?r:[b(v)],$=(f?E[0]?.[f]:"")||v,S=(e,t,n)=>{o(E.map((r,o)=>o===e?{...r,[t]:n}:r))},C=()=>o([...E,b($)]),x=y.find(e=>e.id===$);return e(ii,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(Eu,{label:s,tooltip:l,required:c}),m&&t(pu,{"data-id":`${a}-mode`,size:au.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:$,setSelected:e=>!d&&(e=>o([b(e)]))(String(e))}),e(ii,{$gap:8,$width:"100%",children:[E.map((r,i)=>{const s=i===E.length-1,l=f?{...r,[f]:$}:r,c=n.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=c.filter(e=>"radioGroup"===e.componentType),y=c.filter(e=>"radioGroup"!==e.componentType),v=c.find(e=>e.withRegexTester),w=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(Vh,{"data-id":`${a}-card-${i}`,children:[e(oi,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(ii,{$gap:10,children:[T&&t(Eu,{label:T}),m.map(e=>t(oi,{$gap:24,children:(e.options??[]).map(n=>t(jh,{size:zh.L,label:n.label,value:String(r[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&S(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(oi,{$gap:4,$alignItems:"center",children:[v&&t(Gd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Hd.Secondary,size:jd.S,disabled:d||!String(r[v.keyName]??"").trim(),onClick:()=>p?.(String(r[v.keyName]??""))}),t(Gd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);o(t.length?t:[b($)])})(i)}),s&&t(Gd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:d,onClick:C})]})]}),w.map((n,o)=>t(oi,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,o)=>{const s=((e,t)=>{let{label:n,placeholder:r,helpMessage:o}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,r=i.placeholder??r,o=i.helpMessage??o)}return{label:n,placeholder:r,helpMessage:o}})(n,r);return e(
|
|
1174
|
+
`,Jh=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=n.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return n.forEach(({keyName:e,defaultValue:n})=>t[e]=n??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=r.length?r:[b(v)],$=(f?E[0]?.[f]:"")||v,S=(e,t,n)=>{o(E.map((r,o)=>o===e?{...r,[t]:n}:r))},C=()=>o([...E,b($)]),x=y.find(e=>e.id===$);return e(ii,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(Eu,{label:s,tooltip:l,required:c}),m&&t(pu,{"data-id":`${a}-mode`,size:au.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:$,setSelected:e=>!d&&(e=>o([b(e)]))(String(e))}),e(ii,{$gap:8,$width:"100%",children:[E.map((r,i)=>{const s=i===E.length-1,l=f?{...r,[f]:$}:r,c=n.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=c.filter(e=>"radioGroup"===e.componentType),y=c.filter(e=>"radioGroup"!==e.componentType),v=c.find(e=>e.withRegexTester),w=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(Vh,{"data-id":`${a}-card-${i}`,children:[e(oi,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(ii,{$gap:10,children:[T&&t(Eu,{label:T}),m.map(e=>t(oi,{$gap:24,children:(e.options??[]).map(n=>t(jh,{size:zh.L,label:n.label,value:String(r[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&S(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(oi,{$gap:4,$alignItems:"center",children:[v&&t(Gd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Hd.Secondary,size:jd.S,disabled:d||!String(r[v.keyName]??"").trim(),onClick:()=>p?.(String(r[v.keyName]??""))}),t(Gd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);o(t.length?t:[b($)])})(i)}),s&&t(Gd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:d,onClick:C})]})]}),w.map((n,o)=>t(oi,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,o)=>{const s=((e,t)=>{let{label:n,placeholder:r,helpMessage:o}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,r=i.placeholder??r,o=i.helpMessage??o)}return{label:n,placeholder:r,helpMessage:o}})(n,r);return e(Mt,{children:["arrow"===n.separator&&o>0&&t(Yh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(Kh,{children:t(lp,{name:`${a}-card-${i}-${n.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:n.inputType,min:n.min,max:n.max,width:"100%",value:r[n.keyName]??"",disabled:d,hasError:!!u,onChange:e=>S(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${o}`))]},`${a}-card-${i}`)}),t($u,{errorMessage:u})]})]})},qh=r.div`
|
|
1175
1175
|
width: 100%;
|
|
1176
1176
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1177
1177
|
border-radius: 8px;
|
|
@@ -1187,7 +1187,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1187
1187
|
width: 72px;
|
|
1188
1188
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1189
1189
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1190
|
-
`,tg=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Ht(()=>{const e={};return n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),v=(e,t,n)=>{const i=r.length?Xr(r):[Xr(b)];i[n][e]=t,o(i)},E=r.length?r:[b];return t(qh,{children:e(ii,{"data-id":a,$gap:0,children:[t(Eu,{label:s,tooltip:l,required:d,badge:c}),t(Qh,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(n.filter(e=>!e.renderCondition||e.renderCondition(i)),m),c=l.map(e=>e.some(e=>!!e.label)),d=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(
|
|
1190
|
+
`,tg=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Ht(()=>{const e={};return n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),v=(e,t,n)=>{const i=r.length?Xr(r):[Xr(b)];i[n][e]=t,o(i)},E=r.length?r:[b];return t(qh,{children:e(ii,{"data-id":a,$gap:0,children:[t(Eu,{label:s,tooltip:l,required:d,badge:c}),t(Qh,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(n.filter(e=>!e.renderCondition||e.renderCondition(i)),m),c=l.map(e=>e.some(e=>!!e.label)),d=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Mt,{children:[l.length>1&&a>0?t("tr",{children:t(Zh,{colSpan:d+1})}):null,l.map((l,g)=>{const m=c[g],$=m?22:0;return e("tr",{children:[l.map((n,r)=>{if(n.renderCondition&&!n.renderCondition(i))return null;const o=r===l.length-1,s=0===g&&o?d-l.length+1:1;return t(Zh,{colSpan:s>1?s:void 0,children:e(ii,{$gap:6,children:[m&&(n.label?t(Eu,{label:n.label,tooltip:n.tooltip}):t(Eu,{label:"\\u00A0"})),t(Xh,{col:n,colIdx:r,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${r}`)}),0===g&&t(eg,{$topOffset:$,$center:h,children:e(oi,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(Gd,{leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:u,onClick:()=>(()=>{const e=r.length?Xr(r):[Xr(b)],t=Xr(b),i=e[e.length-1];n.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=i?.[e.keyName]&&""!==i[e.keyName]&&(t[e.keyName]=Xr(i[e.keyName]))}),e.push(t),o(e)})()}),t(Gd,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:u,onClick:()=>(e=>{const t=r.filter((t,n)=>n!==e);t.length||t.push(Xr(b)),o(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t($u,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},ng=r.div`
|
|
1191
1191
|
display: flex;
|
|
1192
1192
|
align-items: center;
|
|
1193
1193
|
justify-content: space-between;
|
|
@@ -1477,7 +1477,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1477
1477
|
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1478
1478
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1479
1479
|
`;default:return""}}}
|
|
1480
|
-
`,
|
|
1480
|
+
`,Fg=r.div`
|
|
1481
1481
|
position: absolute;
|
|
1482
1482
|
top: 0;
|
|
1483
1483
|
left: 0;
|
|
@@ -1486,7 +1486,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1486
1486
|
height: 0;
|
|
1487
1487
|
overflow: hidden;
|
|
1488
1488
|
white-space: nowrap;
|
|
1489
|
-
`,
|
|
1489
|
+
`,Mg=r.div`
|
|
1490
1490
|
display: inline-flex;
|
|
1491
1491
|
align-items: center;
|
|
1492
1492
|
padding: 18px 24px;
|
|
@@ -1505,7 +1505,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1505
1505
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1506
1506
|
gap: 4px;
|
|
1507
1507
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1508
|
-
`,Bg=({variant:n,columns:r,rows:o,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ut(null),f=Ht(()=>o.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:$,checkboxDisabled:S,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return e(Dg,{children:[d&&t(Pg,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!$&&(C?t(Ud,{text:C,children:t(wu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()})}):t(wu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),r.map(({key:o,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===o),b=0===m&&!d,v=m===r.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),$="right"===u?"flex-end":"center"===u?"center":"flex-start",S=y?.component?t(y.component,{}):s?t(br,{size:hr.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(ju,{size:hr.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(oi,{$width:"100%",$justifyContent:$,children:S});return e(Pg,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(o),$resolvedWidth:a[o],...O(b,v),children:[s?t(Ud,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(Lh,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[o,g,u,s,l,c,d,r,i,a]);return t($g,{gap:n===Ag.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Hg=({columnKey:e,sortDirection:n,sortByKey:r,onSort:o})=>{const a=i(),s=r===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===mn.Ascending?0:180;return t(Gd,{variant:Hd.Text,size:jd.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>o(e)})},jg=({columnKey:e,filters:n,onFilter:r,rowsUnfiltered:o,filterOverride:a})=>{const s=i(),l=n[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(o.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})),[o,e,a]);return t(
|
|
1508
|
+
`,Bg=({variant:n,columns:r,rows:o,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ut(null),f=Ht(()=>o.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:$,checkboxDisabled:S,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return e(Dg,{children:[d&&t(Pg,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!$&&(C?t(Ud,{text:C,children:t(wu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()})}):t(wu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),r.map(({key:o,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===o),b=0===m&&!d,v=m===r.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),$="right"===u?"flex-end":"center"===u?"center":"flex-start",S=y?.component?t(y.component,{}):s?t(br,{size:hr.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(ju,{size:hr.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(oi,{$width:"100%",$justifyContent:$,children:S});return e(Pg,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(o),$resolvedWidth:a[o],...O(b,v),children:[s?t(Ud,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(Lh,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[o,g,u,s,l,c,d,r,i,a]);return t($g,{gap:n===Ag.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Hg=({columnKey:e,sortDirection:n,sortByKey:r,onSort:o})=>{const a=i(),s=r===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===mn.Ascending?0:180;return t(Gd,{variant:Hd.Text,size:jd.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>o(e)})},jg=({columnKey:e,filters:n,onFilter:r,rowsUnfiltered:o,filterOverride:a})=>{const s=i(),l=n[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(o.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})),[o,e,a]);return t(Mu,{items:c,withMultiSelect:!0,selectedIds:n[e]?.map(e=>e.toString())??[],setSelectedIds:t=>r(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},Wg=({variant:n,backgroundColor:r,columns:o,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(Dg,{children:[h&&t(kg,{$variant:n,$backgroundColor:r,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(wu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),o.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:$,minWidth:S,textAlign:C},x)=>{const w=0===x&&!h,T=x===o.length-1,O=!(!y&&!f),N=O?t(br,{size:hr.XS,align:C,nowrap:!0,children:m}):t(ju,{size:hr.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(kg,{$variant:n,$backgroundColor:r,$flex:$,$minWidth:S,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(zg,{$textAlign:C,children:[O?t(Ud,{text:y||m,children:N}):N,!b&&t(Hg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(jg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===Ag.Data&&t(Lg,{})]},`column-${g}`)})]}),Gg=()=>{},Xg={},Vg=[],Kg=({variant:n,maxHeight:r,headerBackgroundColor:o,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m,activeRowId:f,scrollSignal:y})=>{const[b,v]=Ut(mn.Ascending),[E,$]=Ut(""),[S,C]=Ut({}),x=g??S,w=Bt(e=>{$(e),v(e=>e===mn.Ascending?mn.Descending:mn.Ascending)},[]),T=Bt((e,t)=>{const n={...x,[e]:t};m&&m(n),void 0===g&&C(n)},[x,m,g]),O=Ht(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(E?[...c].sort((t,n)=>{const r=e(t,E),o=e(n,E);return(b===mn.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(r,o)}):c).filter(t=>{for(const[n,r]of Object.entries(x)){if(!r.length)continue;const o=l.find(e=>e.key===n)?.filterOverride;if(o){if(!o.filterRow(t,r))return!1}else if(!r.includes(e(t,n)))return!1}return!0})},[c,E,b,x,l]),N=Ht(()=>null==f?-1:O.findIndex(e=>e.id===f),[O,f]),{partiallySelected:A,allSelected:I}=Ht(()=>{const e=O.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)}},[O]),_=Ht(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const n of c)for(const r of n.cells)r.component&&!e.has(r.key)&&t.add(r.key);return t},[c,l]),R=jt(null),[D,k]=Ut({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const r=[e(Ug,{children:[t(br,{size:hr.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(Hg,{columnKey:n.key,sortDirection:mn.Ascending,sortByKey:"",onSort:Gg}),!n.noFilter&&t(jg,{columnKey:n.key,filters:Xg,onFilter:Gg,rowsUnfiltered:Vg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((e,o)=>{const i=e.cells.find(e=>e.key===n.key);i&&r.push(i.component?t(i.component,{},`mw-${n.key}-${o}`):t(br,{size:hr.XS,children:i.rawValue||"-"},`mw-${n.key}-${o}`))}),{key:n.key,nodes:r}}),[l,c,_]);return Wt(()=>{if(!R.current||0===_.size)return void k(e=>0===Object.keys(e).length?e:{});const e={};R.current.querySelectorAll("[data-mw-key]").forEach(t=>{const n=t.dataset.mwKey;if(!n)return;const r=Math.ceil(t.getBoundingClientRect().width);(!e[n]||r>e[n])&&(e[n]=r)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,_]),e(Ig,{$maxHeight:r,children:[L.length>0&&t(Fg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,r)=>t(Mg,{"data-mw-key":e,children:n},`mw-${e}-${r}`)))}),e(_g,{$variant:n,children:[!i&&t(Rg,{children:t(Wg,{variant:n,backgroundColor:o,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:A,allSelected:I,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?t(Bg,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ai,{$height:r,children:a?t(Og,{size:3,maxHeight:r}):t(yu,{...s})})]})]})};var Yg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Yg||(Yg={}));const Jg=(e,t,n)=>{switch(t){case Yg.Purple:return e.v2.colors.purple[n?"300":"900"];case Yg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Yg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Yg.Pink:return e.v2.colors.red[n?"300":"1000"];case Yg.Green:return e.v2.colors.green[n?"300":"900"];case Yg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},qg=r.div`
|
|
1509
1509
|
display: flex;
|
|
1510
1510
|
align-items: center;
|
|
1511
1511
|
justify-content: center;
|
|
@@ -1598,4 +1598,4 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1598
1598
|
padding: 16px 24px;
|
|
1599
1599
|
width: 100%;
|
|
1600
1600
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1601
|
-
`,cm=({visual:n,title:r,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(lg,{isOpen:i,onClose:a,...d,children:e(am,{children:[e(sm,{children:[n&&t(n,{}),t(br,{size:hr.M,weight:500,color:gr.Primary,children:r}),t(ii,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>t(br,{size:hr.XS,weight:400,color:gr.Secondary,children:e},e))}),c]}),(s||l)&&e(lm,{children:[s&&t(Gd,{"data-id":"deny",...s}),l&&t(Gd,{"data-id":"approve",...l})]})]})});export{Su as $,Uu as A,Gd as B,wu as C,Oh as D,Os as E,ii as F,Rs as G,Qg as H,tg as I,Ds as J,ks as K,Ns as L,En as M,Eh as N,co as O,yn as P,Qu as Q,Hu as R,Tn as S,Ud as T,cs as U,Vo as V,cm as W,gs as X,pu as Y,cp as Z,xs as _,zu as a,$g as a$,Ls as a0,Ps as a1,ls as a2,Rr as a3,Qp as a4,Jh as a5,au as a6,Ca as a7,rs as a8,
|
|
1601
|
+
`,cm=({visual:n,title:r,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(lg,{isOpen:i,onClose:a,...d,children:e(am,{children:[e(sm,{children:[n&&t(n,{}),t(br,{size:hr.M,weight:500,color:gr.Primary,children:r}),t(ii,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>t(br,{size:hr.XS,weight:400,color:gr.Secondary,children:e},e))}),c]}),(s||l)&&e(lm,{children:[s&&t(Gd,{"data-id":"deny",...s}),l&&t(Gd,{"data-id":"approve",...l})]})]})});export{Su as $,Uu as A,Gd as B,wu as C,Oh as D,Os as E,ii as F,Rs as G,Qg as H,tg as I,Ds as J,ks as K,Ns as L,En as M,Eh as N,co as O,yn as P,Qu as Q,Hu as R,Tn as S,Ud as T,cs as U,Vo as V,cm as W,gs as X,pu as Y,cp as Z,xs as _,zu as a,$g as a$,Ls as a0,Ps as a1,ls as a2,Rr as a3,Qp as a4,Jh as a5,au as a6,Ca as a7,rs as a8,Fn as a9,ts as aA,Ms as aB,qa as aC,Is as aD,Us as aE,Fs as aF,zs as aG,Bs as aH,Es as aI,Ba as aJ,Wa as aK,Ga as aL,Ka as aM,Ja as aN,Ya as aO,as as aP,_a as aQ,Ra as aR,Ma as aS,$s as aT,Ss as aU,Ts as aV,Mc as aW,Da as aX,ss as aY,Xr as aZ,Uc as a_,zn as aa,Kn as ab,Yn as ac,Jn as ad,Un as ae,Bn as af,Mn as ag,ur as ah,ps as ai,ja as aj,us as ak,Ha as al,fs as am,ns as an,ds as ao,ms as ap,ws as aq,os as ar,jh as as,Cs as at,Za as au,Ua as av,es as aw,Qa as ax,Mu as ay,za as az,fn as b,pd as b$,ai as b0,yu as b1,fi as b2,mu as b3,hd as b4,ro as b5,Mp as b6,Jc as b7,xr as b8,ko as b9,Og as bA,er as bB,Bd as bC,sn as bD,ba as bE,pn as bF,va as bG,zh as bH,ju as bI,vr as bJ,Gi as bK,ga as bL,ca as bM,da as bN,pa as bO,ua as bP,Zs as bQ,is as bR,hs as bS,el as bT,vs as bU,Qs as bV,Pa as bW,Fa as bX,Xa as bY,sr as bZ,on as b_,$n as ba,Sn as bb,jc as bc,ed as bd,od as be,qc as bf,So as bg,lr as bh,bo as bi,Ai as bj,fa as bk,Ni as bl,id as bm,rr as bn,an as bo,rn as bp,Ii as bq,_i as br,cr as bs,zi as bt,Xn as bu,Ui as bv,ma as bw,kn as bx,Qd as by,ri as bz,ya as c,rl as c$,dd as c0,dr as c1,fo as c2,pr as c3,Sr as c4,$r as c5,hn as c6,vg as c7,oo as c8,Gp as c9,bi as cA,$d as cB,aa as cC,oa as cD,Pi as cE,Lo as cF,yi as cG,po as cH,Nn as cI,Qi as cJ,ta as cK,su as cL,Kg as cM,Ag as cN,rg as cO,Va as cP,xa as cQ,Ao as cR,ho as cS,Ea as cT,Ta as cU,Sa as cV,wa as cW,Lc as cX,Fc as cY,Pc as cZ,il as c_,Hr as ca,Jp as cb,Wr as cc,nr as cd,Mi as ce,qr as cf,xi as cg,Co as ch,Rd as ci,ea as cj,Cd as ck,Ar as cl,Pn as cm,Nr as cn,na as co,uo as cp,Yg as cq,Ap as cr,Vc as cs,Ci as ct,Si as cu,mo as cv,Fh as cw,Xc as cx,Do as cy,to as cz,Eu as d,vc as d$,nl as d0,ol as d1,ul as d2,dl as d3,gl as d4,hl as d5,ll as d6,sl as d7,$a as d8,Vs as d9,Sl as dA,xl as dB,Cl as dC,Tl as dD,wl as dE,Nl as dF,Ol as dG,Al as dH,ml as dI,fl as dJ,Fl as dK,Ml as dL,Wl as dM,Hl as dN,jl as dO,zl as dP,Bl as dQ,Ul as dR,Kl as dS,Yl as dT,Xl as dU,Vl as dV,Gl as dW,ql as dX,Ql as dY,Jl as dZ,vl as d_,vd as da,Ri as db,Au as dc,Nu as dd,lg as de,Wc as df,kc as dg,yl as dh,Il as di,_l as dj,Rl as dk,Dl as dl,Ll as dm,kl as dn,Pl as dp,ei as dq,Nc as dr,Ac as ds,Ic as dt,_c as du,Rc as dv,Dc as dw,bl as dx,El as dy,$l as dz,br as e,Gs as e$,Ec as e0,$c as e1,bc as e2,Cc as e3,xc as e4,wc as e5,Tc as e6,Oc as e7,Sc as e8,fc as e9,Gc as eA,td as eB,Eo as eC,io as eD,ao as eE,$o as eF,vo as eG,yo as eH,cd as eI,Qr as eJ,Jr as eK,Yr as eL,Er as eM,Po as eN,Hn as eO,tp as eP,xp as eQ,op as eR,ni as eS,_s as eT,Aa as eU,Oa as eV,Na as eW,Ia as eX,tl as eY,Xs as eZ,Ws as e_,yc as ea,sc as eb,hc as ec,gc as ed,mc as ee,cc as ef,uc as eg,dc as eh,Zl as ei,ec as ej,tc as ek,nc as el,rc as em,oc as en,ic as eo,ac as ep,lc as eq,pc as er,Io as es,ti as et,Ng as eu,Yc as ev,Zr as ew,Cr as ex,ra as ey,Td as ez,gr as f,tr as f$,js as f0,Hs as f1,Js as f2,qs as f3,Ys as f4,Ks as f5,xd as f6,_n as f7,dn as f8,An as f9,Bi as fA,eo as fB,no as fC,lo as fD,Vr as fE,go as fF,Or as fG,wo as fH,To as fI,Oo as fJ,No as fK,_o as fL,vi as fM,wi as fN,Ti as fO,Oi as fP,Di as fQ,ki as fR,Fi as fS,Hi as fT,ji as fU,Wi as fV,Xi as fW,Vi as fX,Kr as fY,Ki as fZ,Yi as f_,Dn as fa,bn as fb,vn as fc,On as fd,un as fe,Zn as ff,gn as fg,cn as fh,Ln as fi,Cn as fj,Gn as fk,Wn as fl,jn as fm,Rn as fn,Qn as fo,qn as fp,Vn as fq,mn as fr,ln as fs,In as ft,Yo as fu,Ko as fv,Qo as fw,jr as fx,Ir as fy,Gr as fz,hr as g,sa as g0,As as g1,pl as g2,cl as g3,al as g4,ys as g5,bs as g6,La as g7,ka as g8,ia as g9,ci as gA,gg as gB,li as gC,Gh as gD,Ju as gE,di as gF,ui as gG,pi as gH,Rp as gI,sh as gJ,Zp as gK,si as gL,fr as gM,zc as ga,ir as gb,ar as gc,la as gd,Bc as ge,Ed as gf,sd as gg,ld as gh,gd as gi,fd as gj,bd as gk,Sd as gl,wd as gm,Nd as gn,qd as go,iu as gp,Zd as gq,Jd as gr,hp as gs,gp as gt,Ou as gu,nm as gv,Ih as gw,mp as gx,Dh as gy,Lh as gz,oi as h,jd as i,Hd as j,$u as k,Tr as l,wr as m,xn as n,ih as o,th as p,eh as q,im as r,Nh as s,nn as t,tm as u,Dr as v,Uh as w,lp as x,wn as y,Yu as z};
|