@odigos/ui-kit 0.0.201 → 0.0.202
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 +12 -0
- package/lib/chunks/{index-Bi_rpSHV.js → index-CmIINVHt.js} +1 -1
- package/lib/chunks/{ui-components-BxG2GlHM.js → ui-components-Ci6lJdLr.js} +3 -3
- package/lib/chunks/vendor-D99eCWta.js +1 -0
- package/lib/components/_v2/checkbox/index.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +1 -4
- package/lib/containers/service-map/helpers/elk-layout.d.ts +5 -0
- package/lib/containers/v2.js +2 -2
- package/lib/containers.js +65 -65
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +2 -1
- package/lib/chunks/vendor-DUWBN0Mg.js +0 -1
- package/lib/containers/service-map/helpers/generate-dag-positions.d.ts +0 -5
- package/lib/containers/service-map/helpers/generate-spiral-grid-position.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.202](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.201...ui-kit-v0.0.202) (2026-03-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* integrate ELK layout for service-map ([#707](https://github.com/odigos-io/ui-kit/issues/707)) ([b5d3e34](https://github.com/odigos-io/ui-kit/commit/b5d3e348552a062897b80e6a46229c233ad1c1d4))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **diagnose:** Update profiles label showing it takes 30s ([#703](https://github.com/odigos-io/ui-kit/issues/703)) ([5abf310](https://github.com/odigos-io/ui-kit/commit/5abf310b99af86a5f0d0783b4ed81693b039118e))
|
|
14
|
+
|
|
3
15
|
## [0.0.201](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.200...ui-kit-v0.0.201) (2026-03-03)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{am as a,h as n,j as s,az as r,ax as c,aq as l,cJ as m,n as p,N as d}from"./ui-components-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{am as a,h as n,j as s,az as r,ax as c,aq as l,cJ as m,n as p,N as d}from"./ui-components-Ci6lJdLr.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const j=i.div`
|
|
2
2
|
padding: 0 12px;
|
|
3
3
|
`,k=({title:i="YAML",yaml:k,defaultOpen:x})=>{const{clickCopy:C,isCopied:Y}=a(),[g,v]=o(x??!1),z=e(()=>k?[{id:c(),type:r.Button,buttonProps:{variant:s.Secondary,size:n.S,leftIcon:Y?u:f,onClick:()=>C(k||""),disabled:Y}},{id:c(),type:r.Button,buttonProps:{variant:s.Secondary,size:n.S,leftIcon:g?h:y,onClick:()=>v(t=>!t)}}]:[],[k,Y,g]);return t(l,{richTitle:{icon:b,title:i},actions:z,children:g&&t(j,{children:k?t(m,{code:k,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(d,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{k as Y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon as n,DeleteAttributeIcon as o,AddClusterInfoIcon as r,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as $,PhpLogo as x,CPlusPlusLogo as f,CSharpLogo as b,DotnetLogo as y,PythonLogo as w,NodejsLogo as v,GoLogo as C,JavaLogo as k,AwsXrayLogo as E,VictoriaMetricsLogo as S,UptraceLogo as A,TraceloopLogo as T,TingyunLogo as D,TempoLogo as I,TelemetryHubLogo as N,SumoLogicLogo as O,SplunkLogo as z,SignozLogo as F,SeqLogo as _,AwsS3Logo as R,QuickwitLogo as B,GigapipeLogo as M,QrynLogo as L,PrometheusLogo as P,OpenTelemetryLogo as j,OracleLogo as U,OpsVerseLogo as W,OpenObserveLogo as V,OneUptimeLogo as G,OdigosLogo as q,ObserveLogo as H,NewRelicLogo as K,MiddlewareLogo as Y,LumigoLogo as J,LokiLogo as X,LogzioLogo as Z,LightstepLogo as Q,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as ie,InstanaLogo as ne,HyperDxLogo as oe,HoneycombLogo as re,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as $e,ClickhouseLogo as xe,ChronosphereLogo as fe,ChecklyLogo as be,CauselyLogo as ye,BonreeLogo as we,BetterStackLogo as ve,AzureMonitorLogo as Ce,AzureBlobLogo as ke,AxiomLogo as Ee,AppDynamicsLogo as Se,AlibabaCloudLogo as Ae,AlaudaLogo as Te,InstrumentationRuleIcon as De,DestinationIcon as Ie,SourceIcon as Ne,NamespacesIcon as Oe,PayloadCollectionIcon as ze,HeadersCollectionIcon as Fe,CustomInstrumentationIcon as _e,CodeAttributesIcon as Re,TracesIcon as Be,MetricsIcon as Me,LogsIcon as Le,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as Ge,ISquareIcon as qe,VIcon as He,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as vt,useCallback as Ct,forwardRef as kt,memo as Et,useContext as St,createContext as At}from"react";import Tt from"javascript-time-ago";import{p as Dt,c as It,s as Nt,e as Ot}from"./vendor-DUWBN0Mg.js";import{jsx as zt,jsxs as Ft,Fragment as _t}from"react/jsx-runtime";import Rt,{css as Bt,useTheme as Mt,ThemeProvider as Lt,keyframes as Pt}from"styled-components";import{Handle as jt,Position as Ut,ReactFlow as Wt,Controls as Vt}from"@xyflow/react";import Gt,{createPortal as qt}from"react-dom";import{Highlight as Ht,themes as Kt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Jt from"lottie-react";import{VList as Xt}from"virtua";const Zt=e=>e.charAt(0).toUpperCase()+e.slice(1),Qt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ei;!function(e){e.SIGNALS="SIGNALS"}(ei||(ei={}));const ti=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ei.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},ii=e=>JSON.parse(JSON.stringify(e)),ni=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},oi=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},ri=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ai,si,li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,Ci,ki,Ei,Si,Ai,Ti,Di,Ii,Ni,Oi,zi,Fi,_i,Ri,Bi,Mi,Li,Pi,ji,Ui,Wi,Vi,Gi,qi,Hi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(ai||(ai={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(si||(si={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(li||(li={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ci||(ci={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(di||(di={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(ui||(ui={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(hi||(hi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mi||(mi={})),function(e){e.Ascending="ascending",e.Descending="descending"}(gi||(gi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($i||($i={})),function(e){e.K8s="k8s",e.Vm="vm"}(xi||(xi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(fi||(fi={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(bi||(bi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(yi||(yi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wi||(wi={})),function(e){e.DataStream="DataStream"}(vi||(vi={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(Ci||(Ci={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(ki||(ki={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Ei||(Ei={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Si||(Si={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ai||(Ai={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ti||(Ti={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Di||(Di={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Ii||(Ii={})),function(e){e.Labeled="labeled"}(Ni||(Ni={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Oi||(Oi={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray"}(zi||(zi={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(Fi||(Fi={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(_i||(_i={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Ri||(Ri={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bi||(Bi={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Mi||(Mi={})),function(e){e.HeaderKeys="headerKeys"}(Li||(Li={})),function(e){e.Java="java",e.Golang="golang"}(Pi||(Pi={}));class Ki{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 Yi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(ji||(ji={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ui||(Ui={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wi||(Wi={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Vi||(Vi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Gi||(Gi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(qi||(qi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Hi||(Hi={}));const Ji={[qi.Logs]:Hi.Logs,[qi.Metrics]:Hi.Metrics,[qi.Traces]:Hi.Traces},Xi={[Hi.Logs]:qi.Logs,[Hi.Metrics]:qi.Metrics,[Hi.Traces]:qi.Traces},Zi=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Ei.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},Qi="https://docs.odigos.io",en="default",tn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},nn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},on={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",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}".`,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",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",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_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",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",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",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."},rn={ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},an=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===en&&!e.dataStreamNames.length):[],sn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?sn(e,n,i):i[n]=e}):i[r]=o:sn(o,r,i)}return i},ln=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]}`},cn=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`}},dn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},pn=l=>{const c=l?.toLowerCase(),d=c?.includes(ai.Samplers),p=c===ai.Attributes;return d?e:p?t:{[si.K8sAttributes]:a,[si.AddClusterInfo]:r,[si.DeleteAttributes]:o,[si.PiiMasking]:t,[si.RenameAttributes]:n,[si.URLTemplatization]:i,[si.ErrorSampler]:e,[si.ProbabilisticSampler]:e,[si.LatencySampler]:e,[si.ServiceNameSampler]:e,[si.SpanAttributeSampler]:e}[l]||s},un=e=>{const t=e?.filter(({status:e})=>e===Ei.Error),i=e?.filter(({status:e})=>e===Ei.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),o=e?.filter(({status:e})=>e===Ai.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Ei.Error:a?Ei.Warning:s?Ei.Info:void 0}},hn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},mn=e=>({[bi.Java]:k,[bi.Go]:C,[bi.JavaScript]:v,[bi.Python]:w,[bi.DotNet]:y,[bi.CSharp]:b,[bi.CPlusPlus]:f,[bi.Php]:x,[bi.Ruby]:$,[bi.Rust]:g,[bi.Swift]:m,[bi.Elixir]:h,[bi.MySql]:u,[bi.Nginx]:p,[bi.Postgres]:d,[bi.Redis]:c,[bi.Kafka]:l,[bi.Ignored]:s,[bi.Unknown]:s,[bi.Processing]:s,[bi.NoContainers]:s,[bi.NoRunningPods]:s}[e]||s),gn=e=>e?.map(({language:e})=>mn(e))||[],$n=e=>e?.map(e=>mn(e))||[],xn=e=>e.detectedLanguages?.length?$n(e.detectedLanguages):gn(e.containers),fn=(e,t)=>{const i={[zi.Alauda]:Te,[zi.AlibabaCloud]:Ae,[zi.AppDynamics]:Se,[zi.Axiom]:Ee,[zi.AzureBlob]:ke,[zi.AzureMonitor]:Ce,[zi.BetterStack]:ve,[zi.Bonree]:we,[zi.Causely]:ye,[zi.Checkly]:be,[zi.Chronosphere]:fe,[zi.ClickHouse]:xe,[zi.CloudWatch]:$e,[zi.Coralogix]:ge,[zi.Dash0]:me,[zi.Datadog]:he,[zi.Dynamic]:j,[zi.Dynatrace]:ue,[zi.ElasticApm]:pe,[zi.ElasticSearch]:de,[zi.GoogleCloud]:ce,[zi.GoogleCloudOTLP]:ce,[zi.GrafanaCloudLoki]:le,[zi.GrafanaCloudPrometheus]:le,[zi.GrafanaCloudTempo]:le,[zi.Greptime]:se,[zi.Groundcover]:ae,[zi.Honeycomb]:re,[zi.HyperDX]:oe,[zi.Instana]:ne,[zi.Jaeger]:ie,[zi.Kafka]:l,[zi.Kloudmate]:te,[zi.Last9]:ee,[zi.Lightstep]:Q,[zi.LogzIo]:Z,[zi.Loki]:X,[zi.Lumigo]:J,[zi.Middleware]:Y,[zi.NewRelic]:K,[zi.Observe]:H,[zi.Odigos]:q,[zi.OneUptime]:G,[zi.OpenObserve]:V,[zi.Opsverse]:W,[zi.Oracle]:U,[zi.OTLP]:j,[zi.OTLPHttp]:j,[zi.Prometheus]:P,[zi.Qryn]:L,[zi.QrynOss]:M,[zi.Quickwit]:B,[zi.S3]:R,[zi.Seq]:_,[zi.Signalfx]:z,[zi.Signoz]:F,[zi.Splunk]:z,[zi.SplunkSapm]:z,[zi.SplunkOtlp]:z,[zi.SumoLogic]:O,[zi.TelemetryHub]:N,[zi.Tempo]:I,[zi.Tingyun]:D,[zi.Traceloop]:T,[zi.Uptrace]:A,[zi.VictoriaMetrics]:S,[zi.VictoriaMetricsCloud]:S,[zi.XRay]:E}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},bn=e=>({[wi.Namespace]:Oe,[wi.Source]:Ne,[wi.Destination]:Ie,[wi.Action]:i,[wi.InstrumentationRule]:De}[e]),yn=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&e.id?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,wn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case wi.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case wi.Source:const i=e;r=i.name,a=i.otelServiceName;break;case wi.Action:const n=e;r=n.type,a=n.name;break;case wi.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case wi.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},vn=(e,t)=>{if(t===wi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Cn=e=>({[Bi.CodeAttributes]:Re,[Bi.CustomInstrumentation]:_e,[Bi.HeadersCollection]:Fe,[Bi.PayloadCollection]:ze,[Bi.UnknownType]:s}[e]||s),kn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?bi.Processing:bi.NoRunningPods;const n=i?.filter(e=>e.language!==bi.Ignored);if(!n.length)return bi.NoContainers;const o=n.find(e=>e.language!==bi.Unknown);return o?o.language:bi.Unknown},En=(e,t,i)=>(t===wi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Sn=e=>({[qi.Logs]:Le,[qi.Metrics]:Me,[qi.Traces]:Be}[e]),An=e=>e?{[xi.K8s]:a,[xi.Vm]:Pe}[e]:q,Tn=e=>e?{[xi.K8s]:"Kubernetes Cluster",[xi.Vm]:"Virtual Machine"}[e]:"Unknown",Dn=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...Dn(e,t,i)),o}):[]},In=(e,t)=>{if(t===wi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},Nn=(e,t,i)=>{switch(t){case Ei.Default:return e.v2.colors.purple[i];case Ei.Info:return e.v2.colors.blue[i];case Ei.Error:return e.v2.colors.red[i];case Ei.Warning:return e.v2.colors.yellow[i];case Ei.Success:return e.v2.colors.green[i];case Ti.Disabled:case Ti.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},On=e=>{switch(e){case Ui.Updating:case Wi.Pending:case Vi.ContainerCreating:case Gi.Waiting:return Ei.Info;case Ui.Healthy:case Wi.Succeeded:case Wi.Running:case Vi.Running:case Gi.Running:return Ei.Success;case Ui.Degraded:return Ei.Warning;case Ui.Failed:case Wi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case Gi.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Ei.Error;case Ui.Down:case Vi.Completed:return Ti.Disabled;case Ui.Unknown:case Wi.Unknown:default:return Ti.Unknown}},zn=(e,t)=>({[Ei.Default]:i=>q({fill:Nn(t,e,"300"),...i}),[Ei.Info]:i=>qe({fill:Nn(t,e,"400"),...i}),[Ei.Error]:i=>Ge({fill:Nn(t,e,"500"),...i}),[Ei.Warning]:i=>Ve({fill:Nn(t,e,"500"),...i}),[Ei.Success]:i=>We({fill:Nn(t,e,"500"),...i}),[Ti.Disabled]:i=>Ue({fill:Nn(t,e,"400"),...i}),[Ti.Unknown]:i=>je({fill:Nn(t,e,"300"),...i})}[e]),Fn=e=>{switch(e){case Ri.Success:return Ei.Success;case Ri.Error:case Ri.Failure:return Ei.Error;case Ri.Notice:return Ei.Warning;case Ri.Unsupported:case Ri.Unknown:return Ei.Info;case Ri.Irrelevant:case Ri.Disabled:return Ai.Disabled;case Ri.Waiting:return Ai.Loading;case Ri.Pending:default:return Ei.Default}},_n=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Rn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function Bn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Mn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Bn(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Ln=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Ei.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Pn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),jn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Un=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},Wn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Vn=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Gn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,qn=e=>Gn.test(e),Hn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Kn=e=>e?.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:o})=>({status:e,type:Hn(t),reason:i?Hn(i):"",message:n,lastTransitionTime:o}))||[],Yn=(e,t)=>{const i=Bn(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Jn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Xi[e]):[],Xn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Xi[e]):[],Zn=e=>e.replace(/[^\d]/g,""),Qn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},eo=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},to=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>to(e)))}else if("object"==typeof n&&null!==n){const e=to(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},io=(e,t=2)=>JSON.stringify(e||{},null,t),no=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),oo=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),ro=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var ao,so;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(ao||(ao={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(so||(so={}));const lo=Rt.p`
|
|
1
|
+
import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon as n,DeleteAttributeIcon as o,AddClusterInfoIcon as r,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as $,PhpLogo as x,CPlusPlusLogo as f,CSharpLogo as b,DotnetLogo as y,PythonLogo as w,NodejsLogo as v,GoLogo as C,JavaLogo as k,AwsXrayLogo as E,VictoriaMetricsLogo as S,UptraceLogo as A,TraceloopLogo as T,TingyunLogo as D,TempoLogo as I,TelemetryHubLogo as N,SumoLogicLogo as O,SplunkLogo as z,SignozLogo as F,SeqLogo as _,AwsS3Logo as R,QuickwitLogo as B,GigapipeLogo as M,QrynLogo as L,PrometheusLogo as P,OpenTelemetryLogo as j,OracleLogo as U,OpsVerseLogo as W,OpenObserveLogo as V,OneUptimeLogo as G,OdigosLogo as q,ObserveLogo as H,NewRelicLogo as K,MiddlewareLogo as Y,LumigoLogo as J,LokiLogo as X,LogzioLogo as Z,LightstepLogo as Q,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as ie,InstanaLogo as ne,HyperDxLogo as oe,HoneycombLogo as re,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as $e,ClickhouseLogo as xe,ChronosphereLogo as fe,ChecklyLogo as be,CauselyLogo as ye,BonreeLogo as we,BetterStackLogo as ve,AzureMonitorLogo as Ce,AzureBlobLogo as ke,AxiomLogo as Ee,AppDynamicsLogo as Se,AlibabaCloudLogo as Ae,AlaudaLogo as Te,InstrumentationRuleIcon as De,DestinationIcon as Ie,SourceIcon as Ne,NamespacesIcon as Oe,PayloadCollectionIcon as ze,HeadersCollectionIcon as Fe,CustomInstrumentationIcon as _e,CodeAttributesIcon as Re,TracesIcon as Be,MetricsIcon as Me,LogsIcon as Le,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as Ge,ISquareIcon as qe,VIcon as He,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as vt,useCallback as Ct,forwardRef as kt,memo as Et,useContext as St,createContext as At}from"react";import Tt from"javascript-time-ago";import{p as Dt,c as It,s as Nt,e as Ot}from"./vendor-D99eCWta.js";import{jsx as zt,jsxs as Ft,Fragment as _t}from"react/jsx-runtime";import Rt,{css as Bt,useTheme as Mt,ThemeProvider as Lt,keyframes as Pt}from"styled-components";import{Handle as jt,Position as Ut,ReactFlow as Wt,Controls as Vt}from"@xyflow/react";import Gt,{createPortal as qt}from"react-dom";import{Highlight as Ht,themes as Kt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Jt from"lottie-react";import{VList as Xt}from"virtua";const Zt=e=>e.charAt(0).toUpperCase()+e.slice(1),Qt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ei;!function(e){e.SIGNALS="SIGNALS"}(ei||(ei={}));const ti=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ei.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},ii=e=>JSON.parse(JSON.stringify(e)),ni=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},oi=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},ri=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ai,si,li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,Ci,ki,Ei,Si,Ai,Ti,Di,Ii,Ni,Oi,zi,Fi,_i,Ri,Bi,Mi,Li,Pi,ji,Ui,Wi,Vi,Gi,qi,Hi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(ai||(ai={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(si||(si={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(li||(li={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ci||(ci={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(di||(di={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(ui||(ui={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(hi||(hi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mi||(mi={})),function(e){e.Ascending="ascending",e.Descending="descending"}(gi||(gi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($i||($i={})),function(e){e.K8s="k8s",e.Vm="vm"}(xi||(xi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(fi||(fi={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(bi||(bi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(yi||(yi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wi||(wi={})),function(e){e.DataStream="DataStream"}(vi||(vi={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(Ci||(Ci={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(ki||(ki={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Ei||(Ei={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Si||(Si={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ai||(Ai={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ti||(Ti={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Di||(Di={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Ii||(Ii={})),function(e){e.Labeled="labeled"}(Ni||(Ni={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Oi||(Oi={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray"}(zi||(zi={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(Fi||(Fi={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(_i||(_i={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Ri||(Ri={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bi||(Bi={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Mi||(Mi={})),function(e){e.HeaderKeys="headerKeys"}(Li||(Li={})),function(e){e.Java="java",e.Golang="golang"}(Pi||(Pi={}));class Ki{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 Yi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(ji||(ji={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ui||(Ui={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wi||(Wi={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Vi||(Vi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Gi||(Gi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(qi||(qi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Hi||(Hi={}));const Ji={[qi.Logs]:Hi.Logs,[qi.Metrics]:Hi.Metrics,[qi.Traces]:Hi.Traces},Xi={[Hi.Logs]:qi.Logs,[Hi.Metrics]:qi.Metrics,[Hi.Traces]:qi.Traces},Zi=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Ei.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},Qi="https://docs.odigos.io",en="default",tn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},nn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},on={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",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}".`,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",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",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_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",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",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",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."},rn={ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},an=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===en&&!e.dataStreamNames.length):[],sn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?sn(e,n,i):i[n]=e}):i[r]=o:sn(o,r,i)}return i},ln=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]}`},cn=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`}},dn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},pn=l=>{const c=l?.toLowerCase(),d=c?.includes(ai.Samplers),p=c===ai.Attributes;return d?e:p?t:{[si.K8sAttributes]:a,[si.AddClusterInfo]:r,[si.DeleteAttributes]:o,[si.PiiMasking]:t,[si.RenameAttributes]:n,[si.URLTemplatization]:i,[si.ErrorSampler]:e,[si.ProbabilisticSampler]:e,[si.LatencySampler]:e,[si.ServiceNameSampler]:e,[si.SpanAttributeSampler]:e}[l]||s},un=e=>{const t=e?.filter(({status:e})=>e===Ei.Error),i=e?.filter(({status:e})=>e===Ei.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),o=e?.filter(({status:e})=>e===Ai.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Ei.Error:a?Ei.Warning:s?Ei.Info:void 0}},hn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},mn=e=>({[bi.Java]:k,[bi.Go]:C,[bi.JavaScript]:v,[bi.Python]:w,[bi.DotNet]:y,[bi.CSharp]:b,[bi.CPlusPlus]:f,[bi.Php]:x,[bi.Ruby]:$,[bi.Rust]:g,[bi.Swift]:m,[bi.Elixir]:h,[bi.MySql]:u,[bi.Nginx]:p,[bi.Postgres]:d,[bi.Redis]:c,[bi.Kafka]:l,[bi.Ignored]:s,[bi.Unknown]:s,[bi.Processing]:s,[bi.NoContainers]:s,[bi.NoRunningPods]:s}[e]||s),gn=e=>e?.map(({language:e})=>mn(e))||[],$n=e=>e?.map(e=>mn(e))||[],xn=e=>e.detectedLanguages?.length?$n(e.detectedLanguages):gn(e.containers),fn=(e,t)=>{const i={[zi.Alauda]:Te,[zi.AlibabaCloud]:Ae,[zi.AppDynamics]:Se,[zi.Axiom]:Ee,[zi.AzureBlob]:ke,[zi.AzureMonitor]:Ce,[zi.BetterStack]:ve,[zi.Bonree]:we,[zi.Causely]:ye,[zi.Checkly]:be,[zi.Chronosphere]:fe,[zi.ClickHouse]:xe,[zi.CloudWatch]:$e,[zi.Coralogix]:ge,[zi.Dash0]:me,[zi.Datadog]:he,[zi.Dynamic]:j,[zi.Dynatrace]:ue,[zi.ElasticApm]:pe,[zi.ElasticSearch]:de,[zi.GoogleCloud]:ce,[zi.GoogleCloudOTLP]:ce,[zi.GrafanaCloudLoki]:le,[zi.GrafanaCloudPrometheus]:le,[zi.GrafanaCloudTempo]:le,[zi.Greptime]:se,[zi.Groundcover]:ae,[zi.Honeycomb]:re,[zi.HyperDX]:oe,[zi.Instana]:ne,[zi.Jaeger]:ie,[zi.Kafka]:l,[zi.Kloudmate]:te,[zi.Last9]:ee,[zi.Lightstep]:Q,[zi.LogzIo]:Z,[zi.Loki]:X,[zi.Lumigo]:J,[zi.Middleware]:Y,[zi.NewRelic]:K,[zi.Observe]:H,[zi.Odigos]:q,[zi.OneUptime]:G,[zi.OpenObserve]:V,[zi.Opsverse]:W,[zi.Oracle]:U,[zi.OTLP]:j,[zi.OTLPHttp]:j,[zi.Prometheus]:P,[zi.Qryn]:L,[zi.QrynOss]:M,[zi.Quickwit]:B,[zi.S3]:R,[zi.Seq]:_,[zi.Signalfx]:z,[zi.Signoz]:F,[zi.Splunk]:z,[zi.SplunkSapm]:z,[zi.SplunkOtlp]:z,[zi.SumoLogic]:O,[zi.TelemetryHub]:N,[zi.Tempo]:I,[zi.Tingyun]:D,[zi.Traceloop]:T,[zi.Uptrace]:A,[zi.VictoriaMetrics]:S,[zi.VictoriaMetricsCloud]:S,[zi.XRay]:E}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},bn=e=>({[wi.Namespace]:Oe,[wi.Source]:Ne,[wi.Destination]:Ie,[wi.Action]:i,[wi.InstrumentationRule]:De}[e]),yn=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&e.id?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,wn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case wi.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case wi.Source:const i=e;r=i.name,a=i.otelServiceName;break;case wi.Action:const n=e;r=n.type,a=n.name;break;case wi.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case wi.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},vn=(e,t)=>{if(t===wi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Cn=e=>({[Bi.CodeAttributes]:Re,[Bi.CustomInstrumentation]:_e,[Bi.HeadersCollection]:Fe,[Bi.PayloadCollection]:ze,[Bi.UnknownType]:s}[e]||s),kn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?bi.Processing:bi.NoRunningPods;const n=i?.filter(e=>e.language!==bi.Ignored);if(!n.length)return bi.NoContainers;const o=n.find(e=>e.language!==bi.Unknown);return o?o.language:bi.Unknown},En=(e,t,i)=>(t===wi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Sn=e=>({[qi.Logs]:Le,[qi.Metrics]:Me,[qi.Traces]:Be}[e]),An=e=>e?{[xi.K8s]:a,[xi.Vm]:Pe}[e]:q,Tn=e=>e?{[xi.K8s]:"Kubernetes Cluster",[xi.Vm]:"Virtual Machine"}[e]:"Unknown",Dn=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...Dn(e,t,i)),o}):[]},In=(e,t)=>{if(t===wi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},Nn=(e,t,i)=>{switch(t){case Ei.Default:return e.v2.colors.purple[i];case Ei.Info:return e.v2.colors.blue[i];case Ei.Error:return e.v2.colors.red[i];case Ei.Warning:return e.v2.colors.yellow[i];case Ei.Success:return e.v2.colors.green[i];case Ti.Disabled:case Ti.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},On=e=>{switch(e){case Ui.Updating:case Wi.Pending:case Vi.ContainerCreating:case Gi.Waiting:return Ei.Info;case Ui.Healthy:case Wi.Succeeded:case Wi.Running:case Vi.Running:case Gi.Running:return Ei.Success;case Ui.Degraded:return Ei.Warning;case Ui.Failed:case Wi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case Gi.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Ei.Error;case Ui.Down:case Vi.Completed:return Ti.Disabled;case Ui.Unknown:case Wi.Unknown:default:return Ti.Unknown}},zn=(e,t)=>({[Ei.Default]:i=>q({fill:Nn(t,e,"300"),...i}),[Ei.Info]:i=>qe({fill:Nn(t,e,"400"),...i}),[Ei.Error]:i=>Ge({fill:Nn(t,e,"500"),...i}),[Ei.Warning]:i=>Ve({fill:Nn(t,e,"500"),...i}),[Ei.Success]:i=>We({fill:Nn(t,e,"500"),...i}),[Ti.Disabled]:i=>Ue({fill:Nn(t,e,"400"),...i}),[Ti.Unknown]:i=>je({fill:Nn(t,e,"300"),...i})}[e]),Fn=e=>{switch(e){case Ri.Success:return Ei.Success;case Ri.Error:case Ri.Failure:return Ei.Error;case Ri.Notice:return Ei.Warning;case Ri.Unsupported:case Ri.Unknown:return Ei.Info;case Ri.Irrelevant:case Ri.Disabled:return Ai.Disabled;case Ri.Waiting:return Ai.Loading;case Ri.Pending:default:return Ei.Default}},_n=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Rn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function Bn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Mn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Bn(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Ln=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Ei.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Pn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),jn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Un=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},Wn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Vn=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Gn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,qn=e=>Gn.test(e),Hn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Kn=e=>e?.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:o})=>({status:e,type:Hn(t),reason:i?Hn(i):"",message:n,lastTransitionTime:o}))||[],Yn=(e,t)=>{const i=Bn(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Jn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Xi[e]):[],Xn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Xi[e]):[],Zn=e=>e.replace(/[^\d]/g,""),Qn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},eo=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},to=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>to(e)))}else if("object"==typeof n&&null!==n){const e=to(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},io=(e,t=2)=>JSON.stringify(e||{},null,t),no=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),oo=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),ro=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var ao,so;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(ao||(ao={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(so||(so={}));const lo=Rt.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -837,7 +837,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
837
837
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
838
838
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
839
839
|
`,$l=({title:e,value:t})=>{const i=Mt();return Ft(aa,{$justifyContent:"space-between",children:[zt(xo,{size:12,color:i.text.info,children:e}),zt(xo,{size:12,family:"secondary",children:t})]})},xl=Et(({id:e,data:t})=>{const{id:i,status:n,title:o,icons:r,serviceMapEntry:a}=t,{activeNodeType:s,activeNodeId:l}=Ro(),c=Mt(),d=n===Ei.Error?zn(n,c):null;return Ft(_t,{children:[zt(jt,{type:"source",position:Ut.Bottom,style:{visibility:"hidden"}}),zt(jt,{type:"target",position:Ut.Top,style:{visibility:"hidden"}}),Ft(hl,{"data-id":e,children:[zt(ul,{children:zt(qs,{id:i,icons:r,status:n})}),Ft(ml,{children:[d&&zt(d,{}),zt(Ps,{maxWidth:100,text:o})]}),s===Ii.MapItem&&l===e&&Ft(gl,{children:[Ft(aa,{$gap:12,children:[zt(qs,{id:i,icons:r,status:n}),zt(xo,{size:20,children:o})]}),a&&a.services.length>0?a.services.map(({serviceName:e,requests:t,dateTime:n})=>Ft("div",{children:[zt(Sa,{}),zt($l,{title:"Connected Service",value:e}),zt($l,{title:"Outgoing Requests",value:t}),zt($l,{title:"Last Requested At",value:new Date(n).toLocaleString()})]},`from-${i}-to-${e}`)):Ft(_t,{children:[zt(Sa,{}),zt(cl,{title:"No outgoing connections",subTitle:" "})]})]})]})]})});xl.displayName=xl.name;const fl=Rt.div`
|
|
840
|
-
height:
|
|
840
|
+
height: 100%;
|
|
841
841
|
.react-flow__attribution {
|
|
842
842
|
visibility: hidden;
|
|
843
843
|
}
|
|
@@ -1785,7 +1785,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
1785
1785
|
border-radius: 4px;
|
|
1786
1786
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1787
1787
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1788
|
-
`,tu=({label:e,size:
|
|
1788
|
+
`,tu=({label:e,tooltip:t,size:i=Zp.L,disabled:n,partiallyChecked:o,value:r,onChange:a})=>{const s=Mt(),[l,c]=yt(!1),d=o||r,p=i===Zp.S?12:16,u=n?s.v2.colors.grey[400]:s.v2.colors.white[500],h=d?"transparent":n?s.v2.colors.grey[700]:l?s.v2.colors.silver[400]:s.v2.colors.silver[600],m=n?s.v2.colors.grey[600]:d?s.v2.colors.purple[500]:s.v2.colors.silver[900];return Ft(Qp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||a(!!o||!r)},$disabled:n,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[zt(eu,{$size:i,$borderColor:h,$backgroundColor:m,children:o?zt(Je,{size:p,fill:u}):r?zt(He,{size:p,fill:u}):null}),e&&zt(Fa,{text:t,withIcon:!0,children:zt(co,{size:i===Zp.S?so.XXS:so.XS,nowrap:!0,children:e})})]})},iu=Rt.div`
|
|
1789
1789
|
display: flex;
|
|
1790
1790
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
1791
1791
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|