@odigos/ui-kit 0.0.104 → 0.0.106

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.106](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.105...ui-kit-v0.0.106) (2025-09-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * use deepClone for form data initialization across multiple hooks ([63f8d80](https://github.com/odigos-io/ui-kit/commit/63f8d80e8e73240959c0305d854bcc2a63b8b638))
9
+
10
+ ## [0.0.105](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.104...ui-kit-v0.0.105) (2025-09-08)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * action form validation ([5889713](https://github.com/odigos-io/ui-kit/commit/588971393b1c502fb395d6d22976f1a2edfab3be))
16
+ * reset form data on drawer close for multiple components ([8cc8e60](https://github.com/odigos-io/ui-kit/commit/8cc8e6057791c0d0aaeab4c231006487e5cf24b8))
17
+
3
18
  ## [0.0.104](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.103...ui-kit-v0.0.104) (2025-09-08)
4
19
 
5
20
 
@@ -1,4 +1,4 @@
1
- import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,CodeAttributesIcon as s,CustomInstrumentationIcon as l,HeadersCollectionIcon as d,PayloadCollectionIcon as c,JavaLogo as p,GoLogo as u,NodejsLogo as m,PythonLogo as h,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as f,PhpLogo as $,RubyLogo as y,RustLogo as b,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as E,PostgresLogo as S,RedisLogo as C,KafkaLogo as T,AlaudaLogo as A,AlibabaCloudLogo as D,AppDynamicsLogo as N,AxiomLogo as I,BlobStorageLogo as O,BetterStackLogo as _,BonreeLogo as z,CauselyLogo as R,ChecklyLogo as F,ChronosphereLogo as L,ClickhouseLogo as P,AwsCloudwatchLogo as M,CoralogixLogo as B,Dash0Logo as j,DatadogLogo as U,OpenTelemetryLogo as W,DynatraceLogo as V,ElasticApmLogo as H,ElasticSearchLogo as q,GoogleCloudPlatformLogo as Y,GrafanaLogo as G,GreptimeLogo as J,GroundcoverLogo as K,HoneycombLogo as X,HyperDxLogo as Q,InstanaLogo as Z,JaegerLogo as ee,KloudmateLogo as te,Last9Logo as ne,LightstepLogo as oe,LogzioLogo as ie,LokiLogo as ae,LumigoLogo as re,MiddlewareLogo as se,NewRelicLogo as le,ObserveLogo as de,OdigosLogo as ce,OneUptimeLogo as pe,OpenObserveLogo as ue,OpsVerseLogo as me,OracleLogo as he,PrometheusLogo as ge,QrynLogo as xe,GigapipeLogo as fe,QuickwitLogo as $e,AwsS3Logo as ye,SeqLogo as be,SignozLogo as we,SplunkLogo as ke,SumoLogicLogo as ve,TelemetryHubLogo as Ee,TempoLogo as Se,TingyunLogo as Ce,TraceloopLogo as Te,UptraceLogo as Ae,VictoriaMetricsLogo as De,AwsXrayLogo as Ne,NamespacesIcon as Ie,SourcesIcon as Oe,DestinationsIcon as _e,ActionsIcon as ze,RulesIcon as Re,LogsIcon as Fe,MetricsIcon as Le,TracesIcon as Pe,VmLogo as Me,CheckCircledIcon as Be,ErrorTriangleIcon as je,WarningTriangleIcon as Ue,InfoIcon as We,MinusIcon as Ve,CheckIcon as He,ListIcon as qe,CodeIcon as Ye,ExtendArrowIcon as Ge,PlusIcon as Je,CopyIcon as Ke,EditIcon as Xe,EditedIcon as Qe,SortArrowsIcon as Ze,NotebookIcon as et,XIcon as tt,EyeClosedIcon as nt,EyeOpenIcon as ot,NoDataIcon as it,CrossIcon as at,SearchIcon as rt,TrashIcon as st}from"../icons.js";import{create as lt}from"zustand";import dt,{Fragment as ct,useMemo as pt,useState as ut,useEffect as mt,useRef as ht,forwardRef as gt,useCallback as xt,memo as ft}from"react";import $t from"javascript-time-ago";import{p as yt,c as bt,s as wt,e as kt}from"./vendor-1dea551d.js";import vt,{ThemeProvider as Et,keyframes as St,useTheme as Ct,css as Tt}from"styled-components";import{Handle as At,Position as Dt,getSmoothStepPath as Nt,BaseEdge as It,EdgeLabelRenderer as Ot,ReactFlow as _t,Controls as zt}from"@xyflow/react";import Rt from"react-dom";import{Highlight as Ft,themes as Lt}from"prism-react-renderer";import{ErrorBoundary as Pt}from"react-error-boundary";import Mt from"lottie-react";const Bt=lt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var jt,Ut,Wt,Vt,Ht,qt,Yt,Gt,Jt,Kt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,dn,cn,pn,un,mn,hn,gn,xn,fn,$n,yn,bn,wn,kn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(jt||(jt={})),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"}(Ut||(Ut={})),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"}(Wt||(Wt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Vt||(Vt={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Ht||(Ht={})),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"}(qt||(qt={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Yt||(Yt={})),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"}(Gt||(Gt={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Jt||(Jt={})),function(e){e.K8s="k8s",e.Vm="vm"}(Kt||(Kt={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Xt||(Xt={})),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"}(Qt||(Qt={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Zt||(Zt={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(en||(en={})),function(e){e.DataStream="DataStream"}(tn||(tn={})),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"}(nn||(nn={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(on||(on={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(an||(an={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(rn||(rn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(sn||(sn={})),function(e){e.Ascending="asc",e.Descending="desc"}(ln||(ln={})),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"}(dn||(dn={})),function(e){e.VirtualDevice="VirtualDevice",e.HostPath="HostPath",e.InitContainer="InitContainer"}(cn||(cn={})),function(e){e.Loader="loader",e.PodManifest="pod-manifest",e.LoaderFallbackToPodManifest="loader-fallback-to-pod-manifest"}(pn||(pn={})),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"}(un||(un={})),function(e){e.Labeled="labeled"}(mn||(mn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(hn||(hn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",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.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.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"}(gn||(gn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(xn||(xn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(fn||(fn={})),function(e){e.HeaderKeys="headerKeys"}($n||($n={})),function(e){e.Probes="probes"}(yn||(yn={})),function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(bn||(bn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(wn||(wn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob"}(kn||(kn={}));const vn=s=>{const l=s?.toLowerCase(),d=l?.includes(jt.Samplers),c=l===jt.Attributes;return d?e:c?t:{[Ut.K8sAttributes]:o,[Ut.AddClusterInfo]:i,[Ut.DeleteAttributes]:a,[Ut.PiiMasking]:t,[Ut.RenameAttributes]:r,[Ut.ErrorSampler]:e,[Ut.ProbabilisticSampler]:e,[Ut.LatencySampler]:e,[Ut.ServiceNameSampler]:e,[Ut.SpanAttributeSampler]:e}[s]||n},En=[{label:"Attributes",icon:vn(jt.Attributes),items:[{type:Ut.K8sAttributes,icon:vn(Ut.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Ut.AddClusterInfo,icon:vn(Ut.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"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."},{type:Ut.DeleteAttributes,icon:vn(Ut.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"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."},{type:Ut.RenameAttributes,icon:vn(Ut.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"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."},{type:Ut.PiiMasking,icon:vn(Ut.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:vn(jt.Samplers),items:[{type:Ut.ErrorSampler,icon:vn(jt.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Ut.LatencySampler,icon:vn(jt.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Ut.ProbabilisticSampler,icon:vn(jt.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Ut.ServiceNameSampler,icon:vn(jt.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Ut.SpanAttributeSampler,icon:vn(jt.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}]}],Sn={DETECTED:{TITLE:"Detected by Odigos",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},EXISTS:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},MANAGED:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."},SELF_HOSTED:{TITLE:"Self-hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."}},Cn=e=>({[xn.CodeAttributes]:s,[xn.CustomInstrumentation]:l,[xn.HeadersCollection]:d,[xn.PayloadCollection]:c,[xn.UnknownType]:n}[e]||n),Tn=[{type:xn.CodeAttributes,icon:Cn(xn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" Rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Qt.Go,Qt.Python]},{type:xn.CustomInstrumentation,icon:Cn(xn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and method combinations.",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument specific class and method combinations for detailed tracing.',supportedLanguages:[Qt.Java]},{type:xn.HeadersCollection,icon:Cn(xn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" Rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Qt.Go,Qt.Java]},{type:xn.PayloadCollection,icon:Cn(xn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" Rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Qt.Go]}],An=[{id:wn.Logs,value:"Logs"},{id:wn.Metrics,value:"Metrics"},{id:wn.Traces,value:"Traces"}],Dn=e=>e.charAt(0).toUpperCase()+e.slice(1),Nn=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,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[o]=JSON.stringify(t(a)):e[o]="object"==typeof a&&null!==a?JSON.stringify(n(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]=JSON.stringify(n(i)):e[o]=i}return e},{})};var In;!function(e){e.SIGNALS="SIGNALS"}(In||(In={}));const On=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===In.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=n.find(e=>e.name===o);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},_n=e=>JSON.parse(JSON.stringify(e)),zn=(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},Rn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Fn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ln=(e,t)=>{let n=[...e];return t.namespaces?.length&&(n=n.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(n=n.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(n=n.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(n=n.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:n})=>t===`${e}#${n}`)))),t.onlyErrors&&(n=n.filter(e=>!!e.conditions?.find(e=>e.status===an.Error))),t.errors?.length&&(n=n.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Pn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Io&&!e.dataStreamNames.length):[],Mn=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const i=e[o],a=t?`${t}.${o}`:o;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const o=`${a}[${t}]`;null!==e&&"object"==typeof e?Mn(e,o,n):n[o]=e}):n[a]=i:Mn(i,a,n)}return n},Bn=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]}`},jn=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`}},Un=e=>{const t=e?.filter(({status:e})=>e===an.Error),n=e?.filter(({status:e})=>e===an.Warning),o=e?.filter(({status:e})=>e===sn.Disabled),i=e?.filter(({status:e})=>e===sn.Loading),a=t.length>0,r=n.length>0,s=o.length>0;return{errors:t,hasErrors:a,warnings:n,hasWarnings:r,disableds:o,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?an.Error:r?an.Warning:s?an.Info:void 0}},Wn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Vn=e=>({[Qt.Java]:p,[Qt.Go]:u,[Qt.JavaScript]:m,[Qt.Python]:h,[Qt.DotNet]:g,[Qt.CSharp]:x,[Qt.CPlusPlus]:f,[Qt.Php]:$,[Qt.Ruby]:y,[Qt.Rust]:b,[Qt.Swift]:w,[Qt.Elixir]:k,[Qt.MySql]:v,[Qt.Nginx]:E,[Qt.Postgres]:S,[Qt.Redis]:C,[Qt.Kafka]:T,[Qt.Ignored]:n,[Qt.Unknown]:n,[Qt.Processing]:n,[Qt.NoContainers]:n,[Qt.NoRunningPods]:n}[e]||n),Hn=e=>e?.map(({language:e})=>Vn(e))||[],qn=(e,t)=>{const n={[gn.Alauda]:A,[gn.AlibabaCloud]:D,[gn.AppDynamics]:N,[gn.Axiom]:I,[gn.AzureBlob]:O,[gn.BetterStack]:_,[gn.Bonree]:z,[gn.Causely]:R,[gn.Checkly]:F,[gn.Chronosphere]:L,[gn.ClickHouse]:P,[gn.CloudWatch]:M,[gn.Coralogix]:B,[gn.Dash0]:j,[gn.Datadog]:U,[gn.Dynamic]:W,[gn.Dynatrace]:V,[gn.ElasticApm]:H,[gn.ElasticSearch]:q,[gn.GoogleCloud]:Y,[gn.GrafanaCloudLoki]:G,[gn.GrafanaCloudPrometheus]:G,[gn.GrafanaCloudTempo]:G,[gn.Greptime]:J,[gn.Groundcover]:K,[gn.Honeycomb]:X,[gn.HyperDX]:Q,[gn.Instana]:Z,[gn.Jaeger]:ee,[gn.Kafka]:T,[gn.Kloudmate]:te,[gn.Last9]:ne,[gn.Lightstep]:oe,[gn.LogzIo]:ie,[gn.Loki]:ae,[gn.Lumigo]:re,[gn.Middleware]:se,[gn.NewRelic]:le,[gn.Observe]:de,[gn.Odigos]:ce,[gn.OneUptime]:pe,[gn.OpenObserve]:ue,[gn.Opsverse]:me,[gn.Oracle]:he,[gn.OTLP]:W,[gn.OTLPHttp]:W,[gn.Prometheus]:ge,[gn.Qryn]:xe,[gn.QrynOss]:fe,[gn.Quickwit]:$e,[gn.S3]:ye,[gn.Seq]:be,[gn.Signoz]:we,[gn.Splunk]:ke,[gn.SplunkSapm]:ke,[gn.SplunkOtlp]:ke,[gn.SumoLogic]:ve,[gn.TelemetryHub]:Ee,[gn.Tempo]:Se,[gn.Tingyun]:Ce,[gn.Traceloop]:Te,[gn.Uptrace]:Ae,[gn.VictoriaMetrics]:De,[gn.VictoriaMetricsCloud]:De,[gn.XRay]:Ne}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Yn=e=>({[en.Namespace]:Ie,[en.Source]:Oe,[en.Destination]:_e,[en.Action]:ze,[en.InstrumentationRule]:Re}[e]),Gn=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,Jn=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case en.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case en.Source:const n=e;a=n.name,r=n.otelServiceName;break;case en.Action:const o=e;a=o.type,r=o.name;break;case en.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case en.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},Kn=(e,t)=>{if(t===en.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Xn=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Qt.Processing:Qt.NoRunningPods;const o=n?.filter(e=>e.language!==Qt.Ignored);if(!o.length)return Qt.NoContainers;const i=o.find(e=>e.language!==Qt.Unknown);return i?i.language:Qt.Unknown},Qn=(e,t,n)=>(t===en.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},Zn=e=>({[wn.Logs]:Fe,[wn.Metrics]:Le,[wn.Traces]:Pe}[e]),eo=e=>e?{[Kt.K8s]:o,[Kt.Vm]:Me}[e]:ce,to=e=>e?{[Kt.K8s]:"Kubernetes Cluster",[Kt.Vm]:"Virtual Machine"}[e]:"Unknown",no=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],i=[];return void 0!==o&&(Array.isArray(o)?i.push(...o):i.push(o)),i.push(...no(e,t,n)),i}):[]},oo=(e,t)=>{if(t===en.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},io=(e,t)=>({[an.Success]:n=>Be({fill:t.text[e],...n}),[an.Error]:n=>je({fill:t.text[e],...n}),[an.Warning]:n=>Ue({fill:t.text[e],...n}),[an.Info]:n=>We({fill:t.text[e],...n}),[an.Default]:n=>ce({fill:t.text[e],...n})}[e]),ao=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},ro=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function so(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const lo=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=so(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&n.push(...e.items[i].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},co=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==an.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},po=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),uo=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),mo=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ho=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},go=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,xo=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,fo=e=>xo.test(e),$o=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",yo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:$o(t),reason:n?$o(n):"",message:o,lastTransitionTime:i}))||[],bo=(e,t)=>{const n=so(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}))},wo=e=>e?Object.keys(e).filter(t=>e[t]):[],ko=e=>e.replace(/[^\d]/g,""),vo=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Eo=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},So=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>So(e)))}else if("object"==typeof o&&null!==o){const e=So(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Co=(e,t=2)=>JSON.stringify(e||{},null,t),To=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ao=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Do={[Qt.Go]:"Go",[Qt.Java]:"Java",[Qt.JavaScript]:"Node.js",[Qt.Python]:"Python",[Qt.DotNet]:".NET",[Qt.CSharp]:"C#",[Qt.CPlusPlus]:"C++",[Qt.Php]:"PHP",[Qt.Ruby]:"Ruby",[Qt.Rust]:"Rust",[Qt.Swift]:"Swift",[Qt.Elixir]:"Elixir",[Qt.MySql]:"MySQL",[Qt.Nginx]:"Nginx",[Qt.Postgres]:"PostgreSQL",[Qt.Redis]:"Redis",[Qt.Kafka]:"Kafka",[Qt.Ignored]:"Ignored",[Qt.Unknown]:"Unknown",[Qt.Processing]:"Processing",[Qt.NoContainers]:"No Containers",[Qt.NoRunningPods]:"No Running Pods"},No=[{id:Qt.Go,value:Do[Qt.Go],icon:Vn(Qt.Go)},{id:Qt.Java,value:Do[Qt.Java],icon:Vn(Qt.Java)},{id:Qt.JavaScript,value:Do[Qt.JavaScript],icon:Vn(Qt.JavaScript)},{id:Qt.Python,value:Do[Qt.Python],icon:Vn(Qt.Python)},{id:Qt.Php,value:Do[Qt.Php],icon:Vn(Qt.Php)},{id:Qt.Ruby,value:Do[Qt.Ruby],icon:Vn(Qt.Ruby)},{id:Qt.Rust,value:Do[Qt.Rust],icon:Vn(Qt.Rust)},{id:Qt.DotNet,value:Do[Qt.DotNet],icon:Vn(Qt.DotNet)},{id:Qt.CSharp,value:Do[Qt.CSharp],icon:Vn(Qt.CSharp)},{id:Qt.CPlusPlus,value:Do[Qt.CPlusPlus],icon:Vn(Qt.CPlusPlus)},{id:Qt.Swift,value:Do[Qt.Swift],icon:Vn(Qt.Swift)},{id:Qt.Elixir,value:Do[Qt.Elixir],icon:Vn(Qt.Elixir)}],Io="default",Oo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},_o={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)'},zo={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 by searching by source name or namespace.",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.",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:"Auto-instrument new apps",FUTURE_APPS_DESCRIPTION:"When enabled, new applications will be instrumented automatically and included in the current data stream.",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?"},Ro={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"},Fo=6048e5,Lo=lt()(yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Oo.DARK_MODE,storage:"undefined"!=typeof window?bt(()=>localStorage):void 0})),Po={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Mo=lt(e=>({...Po,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(Po)})),Bo=lt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),jo=lt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===en.Namespace?"namespacesLoading":t===en.Source?"sourcesLoading":t===en.Destination?"destinationsLoading":t===en.Action?"actionsLoading":t===en.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(Gn(t))===JSON.stringify(Gn(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===en.Source?JSON.stringify(Gn(n))===JSON.stringify(Gn(e)):Gn(n)===e);-1!==n&&i.splice(n,1)}),{[o]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Uo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Wo=lt(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}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),getEmptyState:Uo})),Vo=lt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Ho=lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),qo=lt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,i=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:i,time:o.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)}))}})),Yo=(e,t)=>{const n=e.entityType===t.entityType,o="string"==typeof e.entityId&&"string"==typeof t.entityId?e.entityId===t.entityId:"object"==typeof e.entityId&&"object"==typeof t.entityId?e.entityId.namespace===t.entityId.namespace&&e.entityId.name===t.entityId.name&&e.entityId.kind===t.entityId.kind:!e.entityId&&!t.entityId;return n&&o},Go=lt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Yo(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Yo(e,t)))})),isThisPending:e=>{const{pendingItems:n}=t();let o=!1;for(let t=0;t<n.length;t++){const i=n[t];if(i.entityType===e.entityType&&(!e.entityId||(i.entityType===en.Source?i.entityId&&e.entityId&&i.entityId.namespace===e.entityId.namespace&&i.entityId.name===e.entityId.name&&i.entityId.kind===e.entityId.kind:i.entityId===e.entityId))){o=!0;break}}return o}})),Jo=lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{}}))})),Ko={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Xo=(e,t)=>e.destinationType.type!==t.destinationType.type,Qo=lt(e=>({...Ko,setAvailableSources:t=>e({availableSources:t}),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=>Xo(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=>Xo(e,t))})),resetState:()=>e(()=>({...Ko}))})),Zo={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"}},ei={darkMode:!0,colors:{...Zo.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:Zo.font_family},ti={darkMode:!1,colors:{...Zo.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:Zo.font_family},ni=e=>e?ei:ti;wt('@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");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}svg{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 oi={in:{left:St`
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,CodeAttributesIcon as s,CustomInstrumentationIcon as l,HeadersCollectionIcon as d,PayloadCollectionIcon as c,JavaLogo as p,GoLogo as u,NodejsLogo as m,PythonLogo as h,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as f,PhpLogo as $,RubyLogo as y,RustLogo as b,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as E,PostgresLogo as S,RedisLogo as C,KafkaLogo as T,AlaudaLogo as A,AlibabaCloudLogo as D,AppDynamicsLogo as N,AxiomLogo as I,BlobStorageLogo as O,BetterStackLogo as _,BonreeLogo as z,CauselyLogo as R,ChecklyLogo as F,ChronosphereLogo as L,ClickhouseLogo as P,AwsCloudwatchLogo as M,CoralogixLogo as B,Dash0Logo as j,DatadogLogo as U,OpenTelemetryLogo as W,DynatraceLogo as V,ElasticApmLogo as H,ElasticSearchLogo as q,GoogleCloudPlatformLogo as Y,GrafanaLogo as G,GreptimeLogo as K,GroundcoverLogo as J,HoneycombLogo as X,HyperDxLogo as Q,InstanaLogo as Z,JaegerLogo as ee,KloudmateLogo as te,Last9Logo as ne,LightstepLogo as oe,LogzioLogo as ie,LokiLogo as ae,LumigoLogo as re,MiddlewareLogo as se,NewRelicLogo as le,ObserveLogo as de,OdigosLogo as ce,OneUptimeLogo as pe,OpenObserveLogo as ue,OpsVerseLogo as me,OracleLogo as he,PrometheusLogo as ge,QrynLogo as xe,GigapipeLogo as fe,QuickwitLogo as $e,AwsS3Logo as ye,SeqLogo as be,SignozLogo as we,SplunkLogo as ke,SumoLogicLogo as ve,TelemetryHubLogo as Ee,TempoLogo as Se,TingyunLogo as Ce,TraceloopLogo as Te,UptraceLogo as Ae,VictoriaMetricsLogo as De,AwsXrayLogo as Ne,NamespacesIcon as Ie,SourcesIcon as Oe,DestinationsIcon as _e,ActionsIcon as ze,RulesIcon as Re,LogsIcon as Fe,MetricsIcon as Le,TracesIcon as Pe,VmLogo as Me,CheckCircledIcon as Be,ErrorTriangleIcon as je,WarningTriangleIcon as Ue,InfoIcon as We,MinusIcon as Ve,CheckIcon as He,ListIcon as qe,CodeIcon as Ye,ExtendArrowIcon as Ge,PlusIcon as Ke,CopyIcon as Je,EditIcon as Xe,EditedIcon as Qe,SortArrowsIcon as Ze,NotebookIcon as et,XIcon as tt,EyeClosedIcon as nt,EyeOpenIcon as ot,NoDataIcon as it,CrossIcon as at,SearchIcon as rt,TrashIcon as st}from"../icons.js";import{create as lt}from"zustand";import dt,{Fragment as ct,useMemo as pt,useState as ut,useEffect as mt,useRef as ht,forwardRef as gt,useCallback as xt,memo as ft}from"react";import $t from"javascript-time-ago";import{p as yt,c as bt,s as wt,e as kt}from"./vendor-1dea551d.js";import vt,{ThemeProvider as Et,keyframes as St,useTheme as Ct,css as Tt}from"styled-components";import{Handle as At,Position as Dt,getSmoothStepPath as Nt,BaseEdge as It,EdgeLabelRenderer as Ot,ReactFlow as _t,Controls as zt}from"@xyflow/react";import Rt from"react-dom";import{Highlight as Ft,themes as Lt}from"prism-react-renderer";import{ErrorBoundary as Pt}from"react-error-boundary";import Mt from"lottie-react";const Bt=lt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var jt,Ut,Wt,Vt,Ht,qt,Yt,Gt,Kt,Jt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,dn,cn,pn,un,mn,hn,gn,xn,fn,$n,yn,bn,wn,kn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(jt||(jt={})),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"}(Ut||(Ut={})),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"}(Wt||(Wt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Vt||(Vt={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Ht||(Ht={})),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"}(qt||(qt={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Yt||(Yt={})),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"}(Gt||(Gt={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Kt||(Kt={})),function(e){e.K8s="k8s",e.Vm="vm"}(Jt||(Jt={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Xt||(Xt={})),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"}(Qt||(Qt={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Zt||(Zt={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(en||(en={})),function(e){e.DataStream="DataStream"}(tn||(tn={})),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"}(nn||(nn={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(on||(on={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(an||(an={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(rn||(rn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(sn||(sn={})),function(e){e.Ascending="asc",e.Descending="desc"}(ln||(ln={})),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"}(dn||(dn={})),function(e){e.VirtualDevice="VirtualDevice",e.HostPath="HostPath",e.InitContainer="InitContainer"}(cn||(cn={})),function(e){e.Loader="loader",e.PodManifest="pod-manifest",e.LoaderFallbackToPodManifest="loader-fallback-to-pod-manifest"}(pn||(pn={})),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"}(un||(un={})),function(e){e.Labeled="labeled"}(mn||(mn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(hn||(hn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",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.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.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"}(gn||(gn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(xn||(xn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(fn||(fn={})),function(e){e.HeaderKeys="headerKeys"}($n||($n={})),function(e){e.Probes="probes"}(yn||(yn={})),function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(bn||(bn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(wn||(wn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob"}(kn||(kn={}));const vn=s=>{const l=s?.toLowerCase(),d=l?.includes(jt.Samplers),c=l===jt.Attributes;return d?e:c?t:{[Ut.K8sAttributes]:o,[Ut.AddClusterInfo]:i,[Ut.DeleteAttributes]:a,[Ut.PiiMasking]:t,[Ut.RenameAttributes]:r,[Ut.ErrorSampler]:e,[Ut.ProbabilisticSampler]:e,[Ut.LatencySampler]:e,[Ut.ServiceNameSampler]:e,[Ut.SpanAttributeSampler]:e}[s]||n},En=[{label:"Attributes",icon:vn(jt.Attributes),items:[{type:Ut.K8sAttributes,icon:vn(Ut.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Ut.AddClusterInfo,icon:vn(Ut.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"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."},{type:Ut.DeleteAttributes,icon:vn(Ut.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"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."},{type:Ut.RenameAttributes,icon:vn(Ut.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"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."},{type:Ut.PiiMasking,icon:vn(Ut.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:vn(jt.Samplers),items:[{type:Ut.ErrorSampler,icon:vn(jt.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Ut.LatencySampler,icon:vn(jt.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Ut.ProbabilisticSampler,icon:vn(jt.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Ut.ServiceNameSampler,icon:vn(jt.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Ut.SpanAttributeSampler,icon:vn(jt.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}]}],Sn={DETECTED:{TITLE:"Detected by Odigos",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},EXISTS:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},MANAGED:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."},SELF_HOSTED:{TITLE:"Self-hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."}},Cn=e=>({[xn.CodeAttributes]:s,[xn.CustomInstrumentation]:l,[xn.HeadersCollection]:d,[xn.PayloadCollection]:c,[xn.UnknownType]:n}[e]||n),Tn=[{type:xn.CodeAttributes,icon:Cn(xn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" Rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Qt.Go,Qt.Python]},{type:xn.CustomInstrumentation,icon:Cn(xn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and method combinations.",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument specific class and method combinations for detailed tracing.',supportedLanguages:[Qt.Java]},{type:xn.HeadersCollection,icon:Cn(xn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" Rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Qt.Go,Qt.Java]},{type:xn.PayloadCollection,icon:Cn(xn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" Rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Qt.Go]}],An=[{id:wn.Logs,value:"Logs"},{id:wn.Metrics,value:"Metrics"},{id:wn.Traces,value:"Traces"}],Dn=e=>e.charAt(0).toUpperCase()+e.slice(1),Nn=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,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[o]=JSON.stringify(t(a)):e[o]="object"==typeof a&&null!==a?JSON.stringify(n(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]=JSON.stringify(n(i)):e[o]=i}return e},{})};var In;!function(e){e.SIGNALS="SIGNALS"}(In||(In={}));const On=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===In.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=n.find(e=>e.name===o);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},_n=e=>JSON.parse(JSON.stringify(e)),zn=(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},Rn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Fn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ln=(e,t)=>{let n=[...e];return t.namespaces?.length&&(n=n.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(n=n.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(n=n.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(n=n.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:n})=>t===`${e}#${n}`)))),t.onlyErrors&&(n=n.filter(e=>!!e.conditions?.find(e=>e.status===an.Error))),t.errors?.length&&(n=n.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Pn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Io&&!e.dataStreamNames.length):[],Mn=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const i=e[o],a=t?`${t}.${o}`:o;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const o=`${a}[${t}]`;null!==e&&"object"==typeof e?Mn(e,o,n):n[o]=e}):n[a]=i:Mn(i,a,n)}return n},Bn=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]}`},jn=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`}},Un=e=>{const t=e?.filter(({status:e})=>e===an.Error),n=e?.filter(({status:e})=>e===an.Warning),o=e?.filter(({status:e})=>e===sn.Disabled),i=e?.filter(({status:e})=>e===sn.Loading),a=t.length>0,r=n.length>0,s=o.length>0;return{errors:t,hasErrors:a,warnings:n,hasWarnings:r,disableds:o,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?an.Error:r?an.Warning:s?an.Info:void 0}},Wn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Vn=e=>({[Qt.Java]:p,[Qt.Go]:u,[Qt.JavaScript]:m,[Qt.Python]:h,[Qt.DotNet]:g,[Qt.CSharp]:x,[Qt.CPlusPlus]:f,[Qt.Php]:$,[Qt.Ruby]:y,[Qt.Rust]:b,[Qt.Swift]:w,[Qt.Elixir]:k,[Qt.MySql]:v,[Qt.Nginx]:E,[Qt.Postgres]:S,[Qt.Redis]:C,[Qt.Kafka]:T,[Qt.Ignored]:n,[Qt.Unknown]:n,[Qt.Processing]:n,[Qt.NoContainers]:n,[Qt.NoRunningPods]:n}[e]||n),Hn=e=>e?.map(({language:e})=>Vn(e))||[],qn=(e,t)=>{const n={[gn.Alauda]:A,[gn.AlibabaCloud]:D,[gn.AppDynamics]:N,[gn.Axiom]:I,[gn.AzureBlob]:O,[gn.BetterStack]:_,[gn.Bonree]:z,[gn.Causely]:R,[gn.Checkly]:F,[gn.Chronosphere]:L,[gn.ClickHouse]:P,[gn.CloudWatch]:M,[gn.Coralogix]:B,[gn.Dash0]:j,[gn.Datadog]:U,[gn.Dynamic]:W,[gn.Dynatrace]:V,[gn.ElasticApm]:H,[gn.ElasticSearch]:q,[gn.GoogleCloud]:Y,[gn.GrafanaCloudLoki]:G,[gn.GrafanaCloudPrometheus]:G,[gn.GrafanaCloudTempo]:G,[gn.Greptime]:K,[gn.Groundcover]:J,[gn.Honeycomb]:X,[gn.HyperDX]:Q,[gn.Instana]:Z,[gn.Jaeger]:ee,[gn.Kafka]:T,[gn.Kloudmate]:te,[gn.Last9]:ne,[gn.Lightstep]:oe,[gn.LogzIo]:ie,[gn.Loki]:ae,[gn.Lumigo]:re,[gn.Middleware]:se,[gn.NewRelic]:le,[gn.Observe]:de,[gn.Odigos]:ce,[gn.OneUptime]:pe,[gn.OpenObserve]:ue,[gn.Opsverse]:me,[gn.Oracle]:he,[gn.OTLP]:W,[gn.OTLPHttp]:W,[gn.Prometheus]:ge,[gn.Qryn]:xe,[gn.QrynOss]:fe,[gn.Quickwit]:$e,[gn.S3]:ye,[gn.Seq]:be,[gn.Signoz]:we,[gn.Splunk]:ke,[gn.SplunkSapm]:ke,[gn.SplunkOtlp]:ke,[gn.SumoLogic]:ve,[gn.TelemetryHub]:Ee,[gn.Tempo]:Se,[gn.Tingyun]:Ce,[gn.Traceloop]:Te,[gn.Uptrace]:Ae,[gn.VictoriaMetrics]:De,[gn.VictoriaMetricsCloud]:De,[gn.XRay]:Ne}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Yn=e=>({[en.Namespace]:Ie,[en.Source]:Oe,[en.Destination]:_e,[en.Action]:ze,[en.InstrumentationRule]:Re}[e]),Gn=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,Kn=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case en.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case en.Source:const n=e;a=n.name,r=n.otelServiceName;break;case en.Action:const o=e;a=o.type,r=o.name;break;case en.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case en.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},Jn=(e,t)=>{if(t===en.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Xn=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Qt.Processing:Qt.NoRunningPods;const o=n?.filter(e=>e.language!==Qt.Ignored);if(!o.length)return Qt.NoContainers;const i=o.find(e=>e.language!==Qt.Unknown);return i?i.language:Qt.Unknown},Qn=(e,t,n)=>(t===en.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},Zn=e=>({[wn.Logs]:Fe,[wn.Metrics]:Le,[wn.Traces]:Pe}[e]),eo=e=>e?{[Jt.K8s]:o,[Jt.Vm]:Me}[e]:ce,to=e=>e?{[Jt.K8s]:"Kubernetes Cluster",[Jt.Vm]:"Virtual Machine"}[e]:"Unknown",no=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],i=[];return void 0!==o&&(Array.isArray(o)?i.push(...o):i.push(o)),i.push(...no(e,t,n)),i}):[]},oo=(e,t)=>{if(t===en.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},io=(e,t)=>({[an.Success]:n=>Be({fill:t.text[e],...n}),[an.Error]:n=>je({fill:t.text[e],...n}),[an.Warning]:n=>Ue({fill:t.text[e],...n}),[an.Info]:n=>We({fill:t.text[e],...n}),[an.Default]:n=>ce({fill:t.text[e],...n})}[e]),ao=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},ro=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function so(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const lo=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=so(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&n.push(...e.items[i].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},co=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==an.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},po=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),uo=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),mo=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ho=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},go=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,xo=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,fo=e=>xo.test(e),$o=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",yo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:$o(t),reason:n?$o(n):"",message:o,lastTransitionTime:i}))||[],bo=(e,t)=>{const n=so(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}))},wo=e=>e?Object.keys(e).filter(t=>e[t]):[],ko=e=>e.replace(/[^\d]/g,""),vo=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Eo=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},So=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>So(e)))}else if("object"==typeof o&&null!==o){const e=So(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Co=(e,t=2)=>JSON.stringify(e||{},null,t),To=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ao=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Do={[Qt.Go]:"Go",[Qt.Java]:"Java",[Qt.JavaScript]:"Node.js",[Qt.Python]:"Python",[Qt.DotNet]:".NET",[Qt.CSharp]:"C#",[Qt.CPlusPlus]:"C++",[Qt.Php]:"PHP",[Qt.Ruby]:"Ruby",[Qt.Rust]:"Rust",[Qt.Swift]:"Swift",[Qt.Elixir]:"Elixir",[Qt.MySql]:"MySQL",[Qt.Nginx]:"Nginx",[Qt.Postgres]:"PostgreSQL",[Qt.Redis]:"Redis",[Qt.Kafka]:"Kafka",[Qt.Ignored]:"Ignored",[Qt.Unknown]:"Unknown",[Qt.Processing]:"Processing",[Qt.NoContainers]:"No Containers",[Qt.NoRunningPods]:"No Running Pods"},No=[{id:Qt.Go,value:Do[Qt.Go],icon:Vn(Qt.Go)},{id:Qt.Java,value:Do[Qt.Java],icon:Vn(Qt.Java)},{id:Qt.JavaScript,value:Do[Qt.JavaScript],icon:Vn(Qt.JavaScript)},{id:Qt.Python,value:Do[Qt.Python],icon:Vn(Qt.Python)},{id:Qt.Php,value:Do[Qt.Php],icon:Vn(Qt.Php)},{id:Qt.Ruby,value:Do[Qt.Ruby],icon:Vn(Qt.Ruby)},{id:Qt.Rust,value:Do[Qt.Rust],icon:Vn(Qt.Rust)},{id:Qt.DotNet,value:Do[Qt.DotNet],icon:Vn(Qt.DotNet)},{id:Qt.CSharp,value:Do[Qt.CSharp],icon:Vn(Qt.CSharp)},{id:Qt.CPlusPlus,value:Do[Qt.CPlusPlus],icon:Vn(Qt.CPlusPlus)},{id:Qt.Swift,value:Do[Qt.Swift],icon:Vn(Qt.Swift)},{id:Qt.Elixir,value:Do[Qt.Elixir],icon:Vn(Qt.Elixir)}],Io="default",Oo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},_o={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)'},zo={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 by searching by source name or namespace.",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.",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:"Auto-instrument new apps",FUTURE_APPS_DESCRIPTION:"When enabled, new applications will be instrumented automatically and included in the current data stream.",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?"},Ro={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"},Fo=6048e5,Lo=lt()(yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Oo.DARK_MODE,storage:"undefined"!=typeof window?bt(()=>localStorage):void 0})),Po={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Mo=lt(e=>({...Po,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(Po)})),Bo=lt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),jo=lt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===en.Namespace?"namespacesLoading":t===en.Source?"sourcesLoading":t===en.Destination?"destinationsLoading":t===en.Action?"actionsLoading":t===en.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(Gn(t))===JSON.stringify(Gn(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===en.Source?JSON.stringify(Gn(n))===JSON.stringify(Gn(e)):Gn(n)===e);-1!==n&&i.splice(n,1)}),{[o]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Uo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Wo=lt(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}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),getEmptyState:Uo})),Vo=lt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Ho=lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),qo=lt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,i=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:i,time:o.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)}))}})),Yo=(e,t)=>{const n=e.entityType===t.entityType,o="string"==typeof e.entityId&&"string"==typeof t.entityId?e.entityId===t.entityId:"object"==typeof e.entityId&&"object"==typeof t.entityId?e.entityId.namespace===t.entityId.namespace&&e.entityId.name===t.entityId.name&&e.entityId.kind===t.entityId.kind:!e.entityId&&!t.entityId;return n&&o},Go=lt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Yo(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Yo(e,t)))})),isThisPending:e=>{const{pendingItems:n}=t();let o=!1;for(let t=0;t<n.length;t++){const i=n[t];if(i.entityType===e.entityType&&(!e.entityId||(i.entityType===en.Source?i.entityId&&e.entityId&&i.entityId.namespace===e.entityId.namespace&&i.entityId.name===e.entityId.name&&i.entityId.kind===e.entityId.kind:i.entityId===e.entityId))){o=!0;break}}return o}})),Ko=lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{}}))})),Jo={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Xo=(e,t)=>e.destinationType.type!==t.destinationType.type,Qo=lt(e=>({...Jo,setAvailableSources:t=>e({availableSources:t}),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=>Xo(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=>Xo(e,t))})),resetState:()=>e(()=>({...Jo}))})),Zo={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"}},ei={darkMode:!0,colors:{...Zo.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:Zo.font_family},ti={darkMode:!1,colors:{...Zo.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:Zo.font_family},ni=e=>e?ei:ti;wt('@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");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}svg{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 oi={in:{left:St`
2
2
  from { transform: translateX(-100%); }
3
3
  to { transform: translateX(0); }
4
4
  `,right:St`
@@ -284,7 +284,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
284
284
  `,ji=vt.div`
285
285
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
286
286
  border-top: 1px solid ${({theme:e})=>e.colors.border};
287
- `,Ui=gt(({isOpen:e,asPortal:t,...n},o)=>{const i=pt(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:d,maxWidth:c,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return dt.createElement(Pi,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:d,$maxWidth:c,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&dt.createElement(Mi,{$padding:d},u),dt.createElement(Bi,{$padding:d},e),m&&dt.createElement(ji,{$padding:d},m))},[o,n,t]);return e?t?Rt.createPortal(i,document.body):i:null});Ui.displayName=Ui.name;const Wi=e=>{function t(){return void 0===e?{}:JSON.parse(JSON.stringify(e))}const[n,o]=ut(t()),[i,a]=ut({}),r=pt(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return mt(()=>{void 0!==e&&"{}"===JSON.stringify(n)&&o(t())},[e,n]),{formData:n,formErrors:i,isFormDirty:r,handleFormChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?o(n=>({...n,[e]:t})):o(e=>{const o=_n(e);let i=o;for(let e=0;e<n.length-1;e++){const t=n[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[n[n.length-1]]=t,o})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{e?a(n=>({...n,[e]:t})):n&&a({...n})},resetFormData:()=>{o(t()),a({})}}},Vi={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null}},Hi=()=>{const{addNotification:e}=qo(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Wi(Vi);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:n=>{const o={};let a=!0;return Object.entries(t).forEach(([e,n])=>{switch(e){case"type":case"signals":po(n)&&(o[e]=_o.FIELD_IS_REQUIRED);break;case"fields":switch(t.type){case Ut.K8sAttributes:case Ut.AddClusterInfo:case Ut.RenameAttributes:case Ut.DeleteAttributes:case Ut.PiiMasking:case Ut.ErrorSampler:case Ut.ProbabilisticSampler:po(n)&&(o[e]=_o.FIELD_IS_REQUIRED);break;case Ut.LatencySampler:po(n)&&(o[e]=_o.FIELD_IS_REQUIRED),n?.forEach(t=>{"/"!==t.httpRoute.charAt(0)&&(o[e]=_o.LATENCY_HTTP_ROUTE)});break;case Ut.ServiceNameSampler:po(n)&&(o[e]=_o.FIELD_IS_REQUIRED),n?.forEach(t=>{po(t)&&(o[e]=_o.FIELD_IS_REQUIRED)});break;case Ut.SpanAttributeSampler:po(n)&&(o[e]=_o.FIELD_IS_REQUIRED)}}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:an.Warning,title:n.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...Vi,type:e};Object.entries(t).forEach(([e,t])=>{if(t)switch(e){case"actionName":n.name=t;break;case"type":case"notes":case"signals":case"disabled":n[e]=t;break;case Wt.CollectContainerAttributes:case Wt.CollectReplicaSetAttributes:case Wt.CollectWorkloadId:case Wt.CollectClusterId:case Wt.LabelsAttributes:case Wt.AnnotationsAttributes:case Wt.ClusterAttributes:case Wt.OverwriteExistingValues:case Wt.AttributeNamesToDelete:case Wt.Renames:case Wt.PiiCategories:case Wt.FallbackSamplingRatio:case Wt.SamplingPercentage:case Wt.EndpointsFilters:case Wt.ServicesNameFilters:case Wt.AttributeFilters:n.fields[e]=t}}),o(void 0,void 0,n)}}},qi=()=>{const{setCurrentModal:e}=Ho(),{setDrawerType:t,setDrawerEntityId:n}=Bo(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=Bt();return{onClickNode:(r,s)=>{const{id:l,type:d,data:{id:c,type:p}}=s;switch(a===l?(o(null),i(null)):(o(d),i(l)),p){case en.Source:case en.Destination:case en.Action:case en.InstrumentationRule:t(p),n(c);break;case hn.AddSource:e(en.Source);break;case hn.AddDestination:e(en.Destination);break;case hn.AddAction:e(en.Action);break;case hn.AddRule:e(en.InstrumentationRule)}}}},Yi=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Bo(),{markAsDismissed:n,markAsSeen:o}=qo();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:d}=a||{};if(s&&l)switch(s){case en.InstrumentationRule:e(en.InstrumentationRule),t(Kn(l,en.InstrumentationRule));break;case en.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(en.Source),t(Kn(l,en.Source));break;case en.Action:e(en.Action),t(Kn(l,en.Action));break;case en.Destination:case"Destination":e(en.Destination),t(Kn(l,en.Destination))}o(r),d&&n(r)}}},Gi=()=>{const e=ht(null),[t,n]=ut(0),[o,i]=ut(0);return mt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),i(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},Ji=()=>{const[e,t]=ut(!1),[n,o]=ut(-1);return{isCopied:e,copiedIndex:n,clickCopy:async(n,i)=>{if(!e){if(t(!0),void 0!==i&&o(i),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}setTimeout(()=>{t(!1),o(-1)},1e3)}}}},Ki=e=>{const{addNotification:t}=qo(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Wi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?uo(n.name)?o.name=void 0:(i=!1,o.name=_o.ILLEGAL_K8S_LABEL):(i=!1,o.name=_o.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:an.Warning,title:e.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...e,name:t};o(void 0,void 0,n)}}},Xi={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Qi=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=qo(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Wi(Xi),[d,c]=ut([]),[p,u]=ut([]);return mt(()=>{var e;u(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===nn.Dropdown){const e=so(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:n,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:n,title:i,value:a,renderCondition:r,...so(o,{})}})).map(e=>{if(n){const t="string"==typeof n?so(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),mt(()=>{if(t&&0===wo(i.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;r("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,i]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let n=!0;return p.forEach(({name:e,value:o,required:i})=>{i&&!o&&(n=!1,t[e]=_o.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:an.Warning,title:e.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:i})=>{const a={...Xi,type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(so(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},Zi={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[bn.HttpRequest]:null,[bn.HttpResponse]:null,[bn.DbQuery]:null,[bn.Messaging]:null},codeAttributes:{[fn.Column]:null,[fn.FilePath]:null,[fn.Function]:null,[fn.LineNumber]:null,[fn.Namespace]:null,[fn.StackTrace]:null},headersCollection:null,customInstrumentations:{[yn.Probes]:null}},ea=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Wi(Zi);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...Zi,ruleName:e,notes:t,disabled:o};i&&(l.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&&(l.codeAttributes={[fn.Column]:a[fn.Column]||null,[fn.FilePath]:a[fn.FilePath]||null,[fn.Function]:a[fn.Function]||null,[fn.LineNumber]:a[fn.LineNumber]||null,[fn.Namespace]:a[fn.Namespace]||null,[fn.StackTrace]:a[fn.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[yn.Probes]:s[yn.Probes]||null}),n(void 0,void 0,l)}}},ta=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(mt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,i,a,r]),null),na=(e,t)=>{mt(()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])},oa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=ht(null),[i,a]=ut(!1),[r,s]=ut({top:0,left:0});return na(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(n,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,d=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),d>=a/2&&(d+=-(o.current?.clientWidth||t)),s({top:l,left:d})}}},ia=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?so(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),aa={otelServiceName:"",currentStreamName:""},ra=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Wi(aa);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...aa,otelServiceName:e||t||""};n(void 0,void 0,o)}}},sa=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(o?n:e.selected)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:!(!i&&!o)&&a,numberOfInstances:e.numberOfInstances}},la=(e,t,n)=>({...sa(e,t,n),currentStreamName:t}),da=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t),a=(o?n:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!o)&&a,currentStreamName:t}},ca=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=jo(),{selectedStreamName:o}=Mo(),i=ht(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=Qo(),[l,d]=ut(s),[c,p]=ut(!1),[u,m]=ut(!1),[h,g]=ut([]),[x,f]=ut(""),[$,y]=ut(r),[b,w]=ut(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>la(e,n))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=o[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=la(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),k=async(e,n)=>{if(t)if(h.includes(e.name))w(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:o}))}));else{const{data:i}=await t({variables:{namespaceName:e.name}}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;g(e=>[...e,a]),d(e=>({...e,[a]:r.map(e=>sa(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>la(e,o,n))}))}};mt(()=>(i.current=!0,n?.length&&(d(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),y(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||da(e,o)),t}),(async()=>{p(!0);for await(const e of n)i.current&&await k(e);p(!1)})()),()=>{i.current=!1}),[n,o]);const[v,E]=ut(""),[S,C]=ut(en.Source),[T,A]=ut(!1),[D,N]=ut(!1),I=pt(()=>{const e=(e,t)=>!v||S!==t||S===t&&e.toLowerCase().includes(v),t={};return Object.entries(b).filter(([t])=>e(t,en.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,en.Source)&&(!T||t.selected)&&(e=>!D||(e.numberOfInstances||0)>0)(t));i.length&&(t[n]=i)}),t},[b,v,S,T,D]);return{isFetchingEachNamespace:c,fetchedNamespaces:h,availableSources:l,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(b).forEach(([t,n])=>{n.forEach(n=>{const o=l[t]?.find(e=>e.name===n.name&&e.kind===n.kind);o?.selected!==n.selected&&(e[t]||(e[t]=[]),e[t].push(n))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries($).forEach(([t,i])=>{const a=n?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(o)||!i.selected&&a?.dataStreamNames?.includes(o))&&(e[t]=i)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const o=n.find(t=>t.name===e);if(o){const n="boolean"==typeof t;f(t=>t!==e||n?e:""),k(o,t),n&&m(!1)}},selectedAllNamespaces:u,onSelectAllNamespaces:e=>{m(e),n.forEach(t=>k(t,e))},selectedSources:b,onSelectSource:(e,t)=>{const n=t||x;if(!n)return;const i=[...b[n]||[]],a=i.findIndex(({name:t,kind:n})=>t===e.name&&n===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});w(e=>({...e,[n]:i})),m(!1)},selectedFutureApps:$,onSelectFutureApps:(e,t)=>{const i=t||x;if(!i)return;const a=n.find(e=>e.name===t);a&&y(t=>({...t,[i]:da(a,o,e)}))},searchText:v,setSearchText:E,searchBy:S,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:D,setShowRunningOnly:N}};$t.addDefaultLocale(kt);const pa=()=>new $t("en-US"),ua=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=vt(e)`
287
+ `,Ui=gt(({isOpen:e,asPortal:t,...n},o)=>{const i=pt(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:d,maxWidth:c,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return dt.createElement(Pi,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:d,$maxWidth:c,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&dt.createElement(Mi,{$padding:d},u),dt.createElement(Bi,{$padding:d},e),m&&dt.createElement(ji,{$padding:d},m))},[o,n,t]);return e?t?Rt.createPortal(i,document.body):i:null});Ui.displayName=Ui.name;const Wi=e=>{function t(){return void 0===e?{}:_n(e)}const[n,o]=ut(t()),[i,a]=ut({}),r=pt(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return mt(()=>{void 0!==e&&"{}"===JSON.stringify(n)&&o(t())},[e,n]),{formData:n,formErrors:i,isFormDirty:r,handleFormChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?o(n=>({...n,[e]:t})):o(e=>{const o=_n(e);let i=o;for(let e=0;e<n.length-1;e++){const t=n[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[n[n.length-1]]=t,o})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{e?a(n=>({...n,[e]:t})):n&&a({...n})},resetFormData:()=>{o(t()),a({})}}},Vi={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null}},Hi=()=>{const{addNotification:e}=qo(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Wi(Vi);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:n=>{const o={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":po(t)&&(o[e]=_o.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:an.Warning,title:n.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={..._n(Vi),type:e};Object.entries(t).forEach(([e,t])=>{if(t)switch(e){case"actionName":n.name=t;break;case"type":case"notes":case"signals":case"disabled":n[e]=t;break;case Wt.CollectContainerAttributes:case Wt.CollectReplicaSetAttributes:case Wt.CollectWorkloadId:case Wt.CollectClusterId:case Wt.LabelsAttributes:case Wt.AnnotationsAttributes:case Wt.ClusterAttributes:case Wt.OverwriteExistingValues:case Wt.AttributeNamesToDelete:case Wt.Renames:case Wt.PiiCategories:case Wt.FallbackSamplingRatio:case Wt.SamplingPercentage:case Wt.EndpointsFilters:case Wt.ServicesNameFilters:case Wt.AttributeFilters:n.fields||(n.fields={}),n.fields[e]=t}}),o(void 0,void 0,n)}}},qi=()=>{const{setCurrentModal:e}=Ho(),{setDrawerType:t,setDrawerEntityId:n}=Bo(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=Bt();return{onClickNode:(r,s)=>{const{id:l,type:d,data:{id:c,type:p}}=s;switch(a===l?(o(null),i(null)):(o(d),i(l)),p){case en.Source:case en.Destination:case en.Action:case en.InstrumentationRule:t(p),n(c);break;case hn.AddSource:e(en.Source);break;case hn.AddDestination:e(en.Destination);break;case hn.AddAction:e(en.Action);break;case hn.AddRule:e(en.InstrumentationRule)}}}},Yi=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Bo(),{markAsDismissed:n,markAsSeen:o}=qo();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:d}=a||{};if(s&&l)switch(s){case en.InstrumentationRule:e(en.InstrumentationRule),t(Jn(l,en.InstrumentationRule));break;case en.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(en.Source),t(Jn(l,en.Source));break;case en.Action:e(en.Action),t(Jn(l,en.Action));break;case en.Destination:case"Destination":e(en.Destination),t(Jn(l,en.Destination))}o(r),d&&n(r)}}},Gi=()=>{const e=ht(null),[t,n]=ut(0),[o,i]=ut(0);return mt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),i(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},Ki=()=>{const[e,t]=ut(!1),[n,o]=ut(-1);return{isCopied:e,copiedIndex:n,clickCopy:async(n,i)=>{if(!e){if(t(!0),void 0!==i&&o(i),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}setTimeout(()=>{t(!1),o(-1)},1e3)}}}},Ji=e=>{const{addNotification:t}=qo(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Wi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?uo(n.name)?o.name=void 0:(i=!1,o.name=_o.ILLEGAL_K8S_LABEL):(i=!1,o.name=_o.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:an.Warning,title:e.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={..._n(e),name:t};o(void 0,void 0,n)}}},Xi={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Qi=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=qo(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Wi(Xi),[d,c]=ut([]),[p,u]=ut([]);return mt(()=>{var e;u(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===nn.Dropdown){const e=so(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:n,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:n,title:i,value:a,renderCondition:r,...so(o,{})}})).map(e=>{if(n){const t="string"==typeof n?so(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),mt(()=>{if(t&&0===wo(i.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;r("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,i]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let n=!0;return p.forEach(({name:e,value:o,required:i})=>{i&&!o&&(n=!1,t[e]=_o.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:an.Warning,title:e.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:i})=>{const a={..._n(Xi),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(so(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},Zi={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[bn.HttpRequest]:null,[bn.HttpResponse]:null,[bn.DbQuery]:null,[bn.Messaging]:null},codeAttributes:{[fn.Column]:null,[fn.FilePath]:null,[fn.Function]:null,[fn.LineNumber]:null,[fn.Namespace]:null,[fn.StackTrace]:null},headersCollection:null,customInstrumentations:{[yn.Probes]:null}},ea=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Wi(Zi);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={..._n(Zi),ruleName:e,notes:t,disabled:o};i&&(l.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&&(l.codeAttributes={[fn.Column]:a[fn.Column]||null,[fn.FilePath]:a[fn.FilePath]||null,[fn.Function]:a[fn.Function]||null,[fn.LineNumber]:a[fn.LineNumber]||null,[fn.Namespace]:a[fn.Namespace]||null,[fn.StackTrace]:a[fn.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[yn.Probes]:s[yn.Probes]||null}),n(void 0,void 0,l)}}},ta=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(mt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,i,a,r]),null),na=(e,t)=>{mt(()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])},oa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=ht(null),[i,a]=ut(!1),[r,s]=ut({top:0,left:0});return na(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(n,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,d=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),d>=a/2&&(d+=-(o.current?.clientWidth||t)),s({top:l,left:d})}}},ia=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?so(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),aa={otelServiceName:"",currentStreamName:""},ra=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Wi(aa);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={..._n(aa),otelServiceName:e||t||""};n(void 0,void 0,o)}}},sa=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(o?n:e.selected)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:!(!i&&!o)&&a,numberOfInstances:e.numberOfInstances}},la=(e,t,n)=>({...sa(e,t,n),currentStreamName:t}),da=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t),a=(o?n:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!o)&&a,currentStreamName:t}},ca=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=jo(),{selectedStreamName:o}=Mo(),i=ht(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=Qo(),[l,d]=ut(s),[c,p]=ut(!1),[u,m]=ut(!1),[h,g]=ut([]),[x,f]=ut(""),[$,y]=ut(r),[b,w]=ut(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>la(e,n))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=o[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=la(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),k=async(e,n)=>{if(t)if(h.includes(e.name))w(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:o}))}));else{const{data:i}=await t({variables:{namespaceName:e.name}}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;g(e=>[...e,a]),d(e=>({...e,[a]:r.map(e=>sa(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>la(e,o,n))}))}};mt(()=>(i.current=!0,n?.length&&(d(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),y(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||da(e,o)),t}),(async()=>{p(!0);for await(const e of n)i.current&&await k(e);p(!1)})()),()=>{i.current=!1}),[n,o]);const[v,E]=ut(""),[S,C]=ut(en.Source),[T,A]=ut(!1),[D,N]=ut(!1),I=pt(()=>{const e=(e,t)=>!v||S!==t||S===t&&e.toLowerCase().includes(v),t={};return Object.entries(b).filter(([t])=>e(t,en.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,en.Source)&&(!T||t.selected)&&(e=>!D||(e.numberOfInstances||0)>0)(t));i.length&&(t[n]=i)}),t},[b,v,S,T,D]);return{isFetchingEachNamespace:c,fetchedNamespaces:h,availableSources:l,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(b).forEach(([t,n])=>{n.forEach(n=>{const o=l[t]?.find(e=>e.name===n.name&&e.kind===n.kind);o?.selected!==n.selected&&(e[t]||(e[t]=[]),e[t].push(n))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries($).forEach(([t,i])=>{const a=n?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(o)||!i.selected&&a?.dataStreamNames?.includes(o))&&(e[t]=i)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const o=n.find(t=>t.name===e);if(o){const n="boolean"==typeof t;f(t=>t!==e||n?e:""),k(o,t),n&&m(!1)}},selectedAllNamespaces:u,onSelectAllNamespaces:e=>{m(e),n.forEach(t=>k(t,e))},selectedSources:b,onSelectSource:(e,t)=>{const n=t||x;if(!n)return;const i=[...b[n]||[]],a=i.findIndex(({name:t,kind:n})=>t===e.name&&n===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});w(e=>({...e,[n]:i})),m(!1)},selectedFutureApps:$,onSelectFutureApps:(e,t)=>{const i=t||x;if(!i)return;const a=n.find(e=>e.name===t);a&&y(t=>({...t,[i]:da(a,o,e)}))},searchText:v,setSearchText:E,searchBy:S,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:D,setShowRunningOnly:N}};$t.addDefaultLocale(kt);const pa=()=>new $t("en-US"),ua=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=vt(e)`
288
288
  animation-name: ${({$isEntering:e,$isLeaving:o})=>e?t:o?n:"none"};
289
289
  animation-duration: ${o}ms;
290
290
  animation-fill-mode: forwards;
@@ -427,15 +427,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
427
427
  flex-direction: column;
428
428
  gap: 8px;
429
429
  padding: 6px 18px 12px 18px;
430
- `,Ja=vt.div`
430
+ `,Ka=vt.div`
431
431
  display: flex;
432
432
  align-items: center;
433
433
  gap: 12px;
434
- `,Ka=vt(ui)`
434
+ `,Ja=vt(ui)`
435
435
  white-space: nowrap;
436
436
  `,Xa=vt(ha)`
437
437
  width: 16px;
438
- `,Qa=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=si.useTheme(),[a,r]=ut(!1),s=pt(()=>yo(e),[e]),{errors:l,hasErrors:d,warnings:c,hasWarnings:p,hasDisableds:u,hasLoadings:m}=pt(()=>Un(s),[s]);mt(()=>{r(d||p||u||m)},[d,p,u,m]);const h=(!s.length||m)&&!d&&!p&&!u,g=d?an.Error:p?an.Warning:u?an.Info:an.Success,x=io(g,i),f=d?t:p||u?n:h?"Loading...":o,$=d?i.text.error:p?i.text.warning:i.text.info,y=`(${d?l.length:p?c.length:s.length}/${s.length})`,b=d?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=xt(()=>r(e=>!e),[]);return dt.createElement(qa,{onClick:w,$status:g},dt.createElement(Ya,null,h?dt.createElement(Wa,null):dt.createElement(x,null),dt.createElement(ui,{color:$,size:14},f),dt.createElement(ui,{color:b,size:12,family:"secondary"},y),dt.createElement(Ha,{extend:a,align:"right"})),a&&dt.createElement(Ga,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===sn.Loading?()=>dt.createElement(Wa,{scale:.8}):e===sn.Disabled?io(an.Info,i):io(e,i),l=e===sn.Disabled?i.text.info:e===an.Error?i.text.error:e===an.Warning?i.text.warning:i.text.info,d=e===sn.Disabled?i.text.info_secondary:e===an.Error?i.text.error_secondary:e===an.Warning?i.text.warning_secondary:i.text.info_secondary;return dt.createElement(Ja,{key:`condition-${r}`},dt.createElement(Xa,null,dt.createElement(s,null)),dt.createElement(ma,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},dt.createElement(ui,{color:l,size:12},dt.createElement(Ka,{color:d,size:12,weight:700},t),o||n),dt.createElement(Ka,{color:l,size:12},new Date(a).toLocaleString())))})))},Za=vt.div`
438
+ `,Qa=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=si.useTheme(),[a,r]=ut(!1),s=pt(()=>yo(e),[e]),{errors:l,hasErrors:d,warnings:c,hasWarnings:p,hasDisableds:u,hasLoadings:m}=pt(()=>Un(s),[s]);mt(()=>{r(d||p||u||m)},[d,p,u,m]);const h=(!s.length||m)&&!d&&!p&&!u,g=d?an.Error:p?an.Warning:u?an.Info:an.Success,x=io(g,i),f=d?t:p||u?n:h?"Loading...":o,$=d?i.text.error:p?i.text.warning:i.text.info,y=`(${d?l.length:p?c.length:s.length}/${s.length})`,b=d?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=xt(()=>r(e=>!e),[]);return dt.createElement(qa,{onClick:w,$status:g},dt.createElement(Ya,null,h?dt.createElement(Wa,null):dt.createElement(x,null),dt.createElement(ui,{color:$,size:14},f),dt.createElement(ui,{color:b,size:12,family:"secondary"},y),dt.createElement(Ha,{extend:a,align:"right"})),a&&dt.createElement(Ga,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===sn.Loading?()=>dt.createElement(Wa,{scale:.8}):e===sn.Disabled?io(an.Info,i):io(e,i),l=e===sn.Disabled?i.text.info:e===an.Error?i.text.error:e===an.Warning?i.text.warning:i.text.info,d=e===sn.Disabled?i.text.info_secondary:e===an.Error?i.text.error_secondary:e===an.Warning?i.text.warning_secondary:i.text.info_secondary;return dt.createElement(Ka,{key:`condition-${r}`},dt.createElement(Xa,null,dt.createElement(s,null)),dt.createElement(ma,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},dt.createElement(ui,{color:l,size:12},dt.createElement(Ja,{color:d,size:12,weight:700},t),o||n),dt.createElement(Ja,{color:l,size:12},new Date(a).toLocaleString())))})))},Za=vt.div`
439
439
  width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
440
440
  height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
441
441
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
@@ -458,7 +458,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
458
458
  align-items: center;
459
459
  `,ir=vt(ui)`
460
460
  text-wrap: nowrap;
461
- `,ar=({title:e,subtitle:t,status:n=an.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:d="secondary"})=>{const c=si.useTheme(),p=n===sn.Loading?an.Info:n,u=o?()=>dt.createElement(o,{size:l+2,fill:c.text[p]}):n===sn.Loading?()=>dt.createElement(Wa,{scale:.8}):()=>io(p,c)?.({size:l+2});return dt.createElement(tr,{$status:p,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&dt.createElement(nr,null,dt.createElement(u,null)),(!!e||!!t)&&dt.createElement(or,null,!!e&&dt.createElement(ir,{size:l,family:d,color:c.text[p]},e),!!e&&!!t&&dt.createElement(er,{orientation:"vertical",length:l-2+"px",type:p}),!!t&&dt.createElement(ir,{size:l-2,family:d,color:c.text[`${p}_secondary`]},t)))},rr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=si.useTheme();return dt.createElement(Fi,{onClick:t,variant:n,...i},dt.createElement(Je,{fill:"primary"===n?a.text.primary:a.text.info}),dt.createElement(ui,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Ro.ADD))},sr=vt.button`
461
+ `,ar=({title:e,subtitle:t,status:n=an.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:d="secondary"})=>{const c=si.useTheme(),p=n===sn.Loading?an.Info:n,u=o?()=>dt.createElement(o,{size:l+2,fill:c.text[p]}):n===sn.Loading?()=>dt.createElement(Wa,{scale:.8}):()=>io(p,c)?.({size:l+2});return dt.createElement(tr,{$status:p,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&dt.createElement(nr,null,dt.createElement(u,null)),(!!e||!!t)&&dt.createElement(or,null,!!e&&dt.createElement(ir,{size:l,family:d,color:c.text[p]},e),!!e&&!!t&&dt.createElement(er,{orientation:"vertical",length:l-2+"px",type:p}),!!t&&dt.createElement(ir,{size:l-2,family:d,color:c.text[`${p}_secondary`]},t)))},rr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=si.useTheme();return dt.createElement(Fi,{onClick:t,variant:n,...i},dt.createElement(Ke,{fill:"primary"===n?a.text.primary:a.text.info}),dt.createElement(ui,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Ro.ADD))},sr=vt.button`
462
462
  position: relative;
463
463
  width: ${({$size:e})=>e}px;
464
464
  height: ${({$size:e})=>e}px;
@@ -500,7 +500,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
500
500
  width: 100%;
501
501
  padding-left: 12px;
502
502
  }
503
- `,pr=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=Ji();return dt.createElement(cr,null,dt.createElement("pre",null,e),dt.createElement(dr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?dt.createElement(He,null):dt.createElement(Ke,null)))},ur=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=si.useTheme();return dt.createElement(Fi,{onClick:t,variant:n,...o},dt.createElement(Xe,{fill:"primary"===n?i.text.primary:i.text.info}),dt.createElement(ui,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Ro.EDIT))},mr=({onClick:e})=>dt.createElement(lc,{type:an.Default,icon:We,message:zo.QUICK_BACK_TO_SUMMARY,action:{label:zo.GO_TO_SUMMARY,onClick:e}}),hr=vt(ui)`
503
+ `,pr=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=Ki();return dt.createElement(cr,null,dt.createElement("pre",null,e),dt.createElement(dr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?dt.createElement(He,null):dt.createElement(Je,null)))},ur=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=si.useTheme();return dt.createElement(Fi,{onClick:t,variant:n,...o},dt.createElement(Xe,{fill:"primary"===n?i.text.primary:i.text.info}),dt.createElement(ui,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Ro.EDIT))},mr=({onClick:e})=>dt.createElement(lc,{type:an.Default,icon:We,message:zo.QUICK_BACK_TO_SUMMARY,action:{label:zo.GO_TO_SUMMARY,onClick:e}}),hr=vt(ui)`
504
504
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
505
505
  white-space: nowrap;
506
506
  overflow-x: auto;
@@ -617,9 +617,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
617
617
  font-size: 12px;
618
618
  color: ${({theme:e})=>e.text.grey};
619
619
  text-align: center;
620
- `,Wr=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=Go(),r=e.split("-")[0],s=a({entityType:r});return dt.createElement(Mr,{$nodeWidth:n,className:"nowheel nodrag"},s?dt.createElement(ct,null,dt.createElement(Br,null,dt.createElement(Wa,null),dt.createElement(jr,{family:"secondary"},"adding ",r,"s")),dt.createElement(Ur,null,"Just a few more seconds...")):dt.createElement(ct,null,dt.createElement(Br,null,dt.createElement(Je,null),dt.createElement(jr,{family:"secondary",decoration:"underline"},o)),dt.createElement(Ur,null,i)),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Wr.displayName=Wr.name;const Vr=vt.div`
620
+ `,Wr=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=Go(),r=e.split("-")[0],s=a({entityType:r});return dt.createElement(Mr,{$nodeWidth:n,className:"nowheel nodrag"},s?dt.createElement(ct,null,dt.createElement(Br,null,dt.createElement(Wa,null),dt.createElement(jr,{family:"secondary"},"adding ",r,"s")),dt.createElement(Ur,null,"Just a few more seconds...")):dt.createElement(ct,null,dt.createElement(Br,null,dt.createElement(Ke,null),dt.createElement(jr,{family:"secondary",decoration:"underline"},o)),dt.createElement(Ur,null,i)),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Wr.displayName=Wr.name;const Vr=vt.div`
621
621
  width: ${({$nodeWidth:e})=>`${e}px`};
622
- `,Hr=ft(({id:e,data:t})=>{const n=si.useTheme(),{nodeWidth:o,id:i,type:a,status:r,faded:s,title:l,subTitle:d,icon:c,icons:p,iconSrc:u,iconSrcs:m,monitors:h,isActive:g,raw:x}=t,f=a===en.Source,$="boolean"==typeof g,{isThisPending:y}=Go(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=Jo(),v={...w},{namespace:E,name:S,kind:C}=x;f&&!v[E]&&(v[E]=[]);const T=f?v[E].findIndex(e=>e.name===S&&e.kind===C):-1;return dt.createElement(Vr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},dt.createElement(Dr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=r?io(r,n):$?io(g?an.Success:an.Info,n):void 0,t=$?`${a} is ${g?"enabled":"disabled"}`:void 0,o=f&&(!x.conditions?.length||x.conditions?.some(({status:e})=>"loading"===e));return b?dt.createElement(Wa,null):e?dt.createElement(Ea,{text:t},dt.createElement(e,{size:20})):o?dt.createElement(Wa,null):null},iconProps:{icon:c,icons:p,iconSrc:u,iconSrcs:m},visualProps:{status:r,faded:s||$&&!g,monitors:h},checkboxProps:{withCheckbox:f,isChecked:-1!==T,onCheckboxChange:()=>{-1===T?v[E].push(x):v[E].splice(T,1),k(v)},isCheckboxDisabled:b}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Hr.displayName=Hr.name;const qr=vt.div`
622
+ `,Hr=ft(({id:e,data:t})=>{const n=si.useTheme(),{nodeWidth:o,id:i,type:a,status:r,faded:s,title:l,subTitle:d,icon:c,icons:p,iconSrc:u,iconSrcs:m,monitors:h,isActive:g,raw:x}=t,f=a===en.Source,$="boolean"==typeof g,{isThisPending:y}=Go(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=Ko(),v={...w},{namespace:E,name:S,kind:C}=x;f&&!v[E]&&(v[E]=[]);const T=f?v[E].findIndex(e=>e.name===S&&e.kind===C):-1;return dt.createElement(Vr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},dt.createElement(Dr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=r?io(r,n):$?io(g?an.Success:an.Info,n):void 0,t=$?`${a} is ${g?"enabled":"disabled"}`:void 0,o=f&&(!x.conditions?.length||x.conditions?.some(({status:e})=>"loading"===e));return b?dt.createElement(Wa,null):e?dt.createElement(Ea,{text:t},dt.createElement(e,{size:20})):o?dt.createElement(Wa,null):null},iconProps:{icon:c,icons:p,iconSrc:u,iconSrcs:m},visualProps:{status:r,faded:s||$&&!g,monitors:h},checkboxProps:{withCheckbox:f,isChecked:-1!==T,onCheckboxChange:()=>{-1===T?v[E].push(x):v[E].splice(T,1),k(v)},isCheckboxDisabled:b}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Hr.displayName=Hr.name;const qr=vt.div`
623
623
  width: ${({$nodeWidth:e})=>`${e}px`};
624
624
  height: ${({$nodeHeight:e})=>`${e}px`};
625
625
  opacity: 0;
@@ -629,7 +629,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
629
629
  background: transparent;
630
630
  border: 1px dashed ${({theme:e})=>e.colors.border};
631
631
  border-radius: 24px;
632
- `,Jr=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return dt.createElement(Gr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}))});Jr.displayName=Jr.name;const{framePadding:Kr}=Pr,Xr=vt.div`
632
+ `,Kr=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return dt.createElement(Gr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}))});Kr.displayName=Kr.name;const{framePadding:Jr}=Pr,Xr=vt.div`
633
633
  position: relative;
634
634
  z-index: 1;
635
635
  width: fit-content;
@@ -639,7 +639,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
639
639
  overflow-y: auto;
640
640
  overflow-x: hidden;
641
641
  `,Qr=vt.div`
642
- margin: ${Kr}px 0;
642
+ margin: ${Jr}px 0;
643
643
  `,Zr=vt.div`
644
644
  position: fixed;
645
645
  bottom: 0;
@@ -683,7 +683,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
683
683
  height: 4px;
684
684
  width: ${({percent:e})=>`${e}%`};
685
685
  transition: width 0.3s;
686
- `,ls=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,icon:i,badge:a,badgeTooltip:r,isFetching:s,sources:l}=t,d=e.split("-")[0],{isAwaitingInstrumentation:c,sourcesToCreate:p,sourcesCreated:u,sourcesToDelete:m,sourcesDeleted:h}=Vo(),g=d===en.Source&&c,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=Jo(),{isThisPending:y}=Go(),[b,w]=pt(()=>{let e=0;return Object.values(f).forEach(t=>{e+=t.length}),[0!==e,e]},[f]);return dt.createElement(os,{$nodeWidth:n,className:"nowheel nodrag"},d===en.Source&&dt.createElement(is,null,dt.createElement(Ta,{partiallyChecked:b&&l?.length!==w,value:b&&l?.length===w,onChange:e=>{if(e){const e={};l?.forEach(t=>{const n={namespace:t.namespace,name:t.name,kind:t.kind};y({entityType:en.Source,entityId:n})||(e[t.namespace]?e[t.namespace].push(t):e[t.namespace]=[t])}),$(e)}else $({})},disabled:!l?.length})),dt.createElement(ns,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),dt.createElement(ds,{entityType:d}),g&&dt.createElement(ss,{percent:x}))}),ds=ft(({entityType:e})=>{const t=si.useTheme(),{onClickNode:n}=qi();return dt.createElement(as,null,dt.createElement(rs,{"data-id":`add-${e}`,variant:"primary",onClick:t=>{t.stopPropagation(),n(void 0,{data:{type:e===en.Source?hn.AddSource:e===en.Destination?hn.AddDestination:e===en.Action?hn.AddAction:hn.AddRule}})}},dt.createElement(Je,{fill:t.colors.primary,size:18})))});ls.displayName=ls.name,ds.displayName=ds.name;const cs=vt(ha)`
686
+ `,ls=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,icon:i,badge:a,badgeTooltip:r,isFetching:s,sources:l}=t,d=e.split("-")[0],{isAwaitingInstrumentation:c,sourcesToCreate:p,sourcesCreated:u,sourcesToDelete:m,sourcesDeleted:h}=Vo(),g=d===en.Source&&c,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=Ko(),{isThisPending:y}=Go(),[b,w]=pt(()=>{let e=0;return Object.values(f).forEach(t=>{e+=t.length}),[0!==e,e]},[f]);return dt.createElement(os,{$nodeWidth:n,className:"nowheel nodrag"},d===en.Source&&dt.createElement(is,null,dt.createElement(Ta,{partiallyChecked:b&&l?.length!==w,value:b&&l?.length===w,onChange:e=>{if(e){const e={};l?.forEach(t=>{const n={namespace:t.namespace,name:t.name,kind:t.kind};y({entityType:en.Source,entityId:n})||(e[t.namespace]?e[t.namespace].push(t):e[t.namespace]=[t])}),$(e)}else $({})},disabled:!l?.length})),dt.createElement(ns,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),dt.createElement(ds,{entityType:d}),g&&dt.createElement(ss,{percent:x}))}),ds=ft(({entityType:e})=>{const t=si.useTheme(),{onClickNode:n}=qi();return dt.createElement(as,null,dt.createElement(rs,{"data-id":`add-${e}`,variant:"primary",onClick:t=>{t.stopPropagation(),n(void 0,{data:{type:e===en.Source?hn.AddSource:e===en.Destination?hn.AddDestination:e===en.Action?hn.AddAction:hn.AddRule}})}},dt.createElement(Ke,{fill:t.colors.primary,size:18})))});ls.displayName=ls.name,ds.displayName=ds.name;const cs=vt(ha)`
687
687
  max-width: 300px;
688
688
  padding: 12px;
689
689
  border-radius: 12px;
@@ -775,7 +775,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
775
775
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
776
776
  }
777
777
  }
778
- `,Ns={[un.Header]:ls,[un.Add]:Wr,[un.Base]:Hr,[un.Edged]:Yr,[un.Frame]:Jr,[un.Scroll]:es,[un.Skeleton]:Ts,[un.MapItem]:ys,[un.NoData]:ps},Is={[mn.Labeled]:ms},Os=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=qi(),{setActiveNodeType:s,setActiveNodeId:l}=Bt();return dt.createElement(As,null,dt.createElement(_t,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Ns,edges:t,edgeTypes:Is,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)}},dt.createElement(Ds,null,dt.createElement(zt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},_s=vt.div`
778
+ `,Ns={[un.Header]:ls,[un.Add]:Wr,[un.Base]:Hr,[un.Edged]:Yr,[un.Frame]:Kr,[un.Scroll]:es,[un.Skeleton]:Ts,[un.MapItem]:ys,[un.NoData]:ps},Is={[mn.Labeled]:ms},Os=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=qi(),{setActiveNodeType:s,setActiveNodeId:l}=Bt();return dt.createElement(As,null,dt.createElement(_t,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Ns,edges:t,edgeTypes:Is,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)}},dt.createElement(Ds,null,dt.createElement(zt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},_s=vt.div`
779
779
  position: relative;
780
780
  `,zs=({defaultLanguage:e=Qt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=qo(),{formData:i,handleFormChange:a,resetFormData:r}=Wi({language:e,version:t}),[s,l]=ut(!1),d=()=>{l(!1),r()};return dt.createElement(_s,null,dt.createElement(dr,{tooltip:zo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},dt.createElement(Xe,null)),dt.createElement(pc,{flipX:!0,clientX:36,isOpen:s,onClose:d,onSave:()=>{!i.version||fo(i.version)?(n(i),d()):o({type:an.Warning,message:_o.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),d()},title:zo.OVERRIDE_RUNTIME_DETAILS,warning:zo.OVERRIDE_RUNTIME_WARNING},dt.createElement(od,{title:zo.LANGUAGE,options:No,value:No.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),dt.createElement(Yl,{title:zo.RUNTIME_VERSION,placeholder:zo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Rs=vt(ma)`
781
781
  width: 100%;
@@ -845,7 +845,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
845
845
  font-size: 12px;
846
846
  font-weight: 500;
847
847
  text-wrap: nowrap;
848
- `,Gs=vt.tbody``,Js=({columns:e,rows:t})=>{const[n,o]=ut(ln.Ascending),[i,a]=ut("name"),r=xt(e=>{i===e?o(e=>e===ln.Ascending?ln.Descending:ln.Ascending):(a(e),o(ln.Ascending))},[i]),s=pt(()=>{const o=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=o(e,i),r=o(t,i);return(n===ln.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(a,r)}):t).map(({status:t,faded:n,cells:o,onClick:i},a)=>dt.createElement(js,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return dt.createElement(Us,null,dt.createElement(Ws,null,dt.createElement(Vs,null,dt.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>dt.createElement(Hs,{key:`column-${e}`},n?dt.createElement(qs,{onClick:()=>r(e)},dt.createElement(Ze,null),dt.createElement(Ys,null,t)):dt.createElement(Ys,null,t))))),dt.createElement(Gs,null,s)))};var Ks;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(Ks||(Ks={}));const Xs=vt.div`
848
+ `,Gs=vt.tbody``,Ks=({columns:e,rows:t})=>{const[n,o]=ut(ln.Ascending),[i,a]=ut("name"),r=xt(e=>{i===e?o(e=>e===ln.Ascending?ln.Descending:ln.Ascending):(a(e),o(ln.Ascending))},[i]),s=pt(()=>{const o=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=o(e,i),r=o(t,i);return(n===ln.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(a,r)}):t).map(({status:t,faded:n,cells:o,onClick:i},a)=>dt.createElement(js,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return dt.createElement(Us,null,dt.createElement(Ws,null,dt.createElement(Vs,null,dt.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>dt.createElement(Hs,{key:`column-${e}`},n?dt.createElement(qs,{onClick:()=>r(e)},dt.createElement(Ze,null),dt.createElement(Ys,null,t)):dt.createElement(Ys,null,t))))),dt.createElement(Gs,null,s)))};var Js;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(Js||(Js={}));const Xs=vt.div`
849
849
  display: flex;
850
850
  flex-wrap: wrap;
851
851
  gap: 16px 32px;
@@ -862,7 +862,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
862
862
  `,el=vt(ui)`
863
863
  font-size: 12px;
864
864
  white-space: pre-wrap;
865
- `,tl=({data:e})=>dt.createElement(Xs,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>dt.createElement(Qs,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Ks.Code,Ks.Table].includes(e)?"inherit":e&&[Ks.Loader,Ks.Divider,Ks.CopyText].includes(e)?"100%":"unset"},dt.createElement(Ea,{text:o,withIcon:!0},dt.createElement(ma,{$alignItems:"center",$gap:4},n&&dt.createElement(n,{size:14}),!!t&&dt.createElement(Zs,{transform:"capitalize"},t))),dt.createElement(nl,{type:e,value:i})))),nl=({type:e,value:t})=>{const n=si.useTheme();switch(e){case Ks.Divider:return dt.createElement(er,{length:"100%",margin:"0"});case Ks.Loader:return dt.createElement(ga,null,dt.createElement(Wa,{scale:1.2}));case Ks.Monitors:return dt.createElement(vr,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Ks.Badge:{const{label:e,filled:n,...o}=so(t,{label:"-",filled:!1});return dt.createElement(Oi,{label:e,filled:n,...o})}case Ks.Code:{const{language:e,code:n,...o}=so(t,{language:"",code:""});return dt.createElement(La,{language:e,code:n,...o})}case Ks.Table:{const{columns:e,rows:n,...o}=so(t,{columns:[],rows:[{status:void 0,cells:[]}]});return dt.createElement(Js,{columns:e,rows:n,...o})}case Ks.ActiveStatus:return dt.createElement(ar,{status:"true"==t?an.Success:an.Error,title:"true"==t?zo.ENABLED:zo.DISABLED,size:10,withIcon:!0,withBorder:!0});case Ks.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return dt.createElement(pr,{value:e})}default:return dt.createElement(el,null,Eo("string"==typeof t?t||"-":""))}},ol=vt.div`
865
+ `,tl=({data:e})=>dt.createElement(Xs,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>dt.createElement(Qs,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Js.Code,Js.Table].includes(e)?"inherit":e&&[Js.Loader,Js.Divider,Js.CopyText].includes(e)?"100%":"unset"},dt.createElement(Ea,{text:o,withIcon:!0},dt.createElement(ma,{$alignItems:"center",$gap:4},n&&dt.createElement(n,{size:14}),!!t&&dt.createElement(Zs,{transform:"capitalize"},t))),dt.createElement(nl,{type:e,value:i})))),nl=({type:e,value:t})=>{const n=si.useTheme();switch(e){case Js.Divider:return dt.createElement(er,{length:"100%",margin:"0"});case Js.Loader:return dt.createElement(ga,null,dt.createElement(Wa,{scale:1.2}));case Js.Monitors:return dt.createElement(vr,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Js.Badge:{const{label:e,filled:n,...o}=so(t,{label:"-",filled:!1});return dt.createElement(Oi,{label:e,filled:n,...o})}case Js.Code:{const{language:e,code:n,...o}=so(t,{language:"",code:""});return dt.createElement(La,{language:e,code:n,...o})}case Js.Table:{const{columns:e,rows:n,...o}=so(t,{columns:[],rows:[{status:void 0,cells:[]}]});return dt.createElement(Ks,{columns:e,rows:n,...o})}case Js.ActiveStatus:return dt.createElement(ar,{status:"true"==t?an.Success:an.Error,title:"true"==t?zo.ENABLED:zo.DISABLED,size:10,withIcon:!0,withBorder:!0});case Js.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return dt.createElement(pr,{value:e})}default:return dt.createElement(el,null,Eo("string"==typeof t?t||"-":""))}},ol=vt.div`
866
866
  display: flex;
867
867
  flex-direction: column;
868
868
  align-items: flex-start;
@@ -1091,11 +1091,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1091
1091
  display: flex;
1092
1092
  flex-direction: column;
1093
1093
  align-items: center;
1094
- `,Jl=vt.div`
1094
+ `,Kl=vt.div`
1095
1095
  display: flex;
1096
1096
  align-items: center;
1097
1097
  gap: 8px;
1098
- `,Kl=vt(ui)`
1098
+ `,Jl=vt(ui)`
1099
1099
  color: ${({theme:e})=>e.text.darker_grey};
1100
1100
  `,Xl=vt(ui)`
1101
1101
  color: ${({theme:e})=>e.colors.border};
@@ -1103,7 +1103,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1103
1103
  font-weight: 200;
1104
1104
  line-height: 20px;
1105
1105
  text-align: center;
1106
- `,Ql=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=si.useTheme();return dt.createElement(Gl,null,dt.createElement(Jl,null,dt.createElement(it,{fill:n.text.dark_grey}),dt.createElement(Kl,null,e)),t&&dt.createElement(Xl,null,t))},Zl=vt.div`
1106
+ `,Ql=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=si.useTheme();return dt.createElement(Gl,null,dt.createElement(Kl,null,dt.createElement(it,{fill:n.text.dark_grey}),dt.createElement(Jl,null,e)),t&&dt.createElement(Xl,null,t))},Zl=vt.div`
1107
1107
  display: flex;
1108
1108
  flex-direction: column;
1109
1109
  min-width: 120px;
@@ -1248,7 +1248,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1248
1248
  `,Cd=vt(dr)`
1249
1249
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1250
1250
  opacity: ${({$disabled:e})=>e?.5:1};
1251
- `,Td=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=ut(t||e);mt(()=>{s.length||l([""])},[]);const d=s.filter(e=>!!e.trim()),c=ht(JSON.stringify(d));mt(()=>{const e=JSON.stringify(d);c.current!==e&&(c.current=e,n&&n(d))},[d,n]);const p=(e,t)=>{l(n=>{const o=[...n];return o[t]=e,o})},u=s.length<=1,m=s.some(e=>""===e.trim()),h=u&&m;return dt.createElement(vd,null,dt.createElement(Bl,{title:o,required:a,tooltip:i}),dt.createElement(Ed,null,s.map((e,t)=>{const n=t===s.length-1;return dt.createElement(Sd,{key:`input-list-${t}`},dt.createElement(Yl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:po(e)&&!u&&n}),t===s.length-1&&dt.createElement(Cd,{withBorder:!0,size:30,$disabled:m,onClick:m?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},dt.createElement(Je,null)),dt.createElement(Cd,{size:30,$disabled:h,onClick:h?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,n)=>n!==e))})(t)},dt.createElement(st,null)))})),!!r&&dt.createElement(gi,null,r))},Ad=({col:e,colIdx:t,row:n,rowIdx:o,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:d,title:c,tooltip:p,placeholder:u,required:m,type:h,componentType:g,options:x,renderCondition:f}=e,$=n[d];return f&&!f(n)?null:dt.createElement("td",{key:`input-table-${o}-${d}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===nn.Dropdown){const e=x?.find(e=>e.id===$);return dt.createElement(od,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,required:m,options:x||[],value:e,onSelect:e=>r(d,e.id,o),onDeselect:()=>r(d,"",o),hasError:!!s&&(!m||m&&po($))})}{const e=i>1&&o===i-1&&0===t&&po($);return dt.createElement(Yl,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,type:h,required:m,autoFocus:e,value:$,onChange:({target:{value:e}})=>r(d,e,o),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!m||m&&po($))})}})())},Dd=vt.div`
1251
+ `,Td=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=ut(t||e);mt(()=>{s.length||l([""])},[]);const d=s.filter(e=>!!e.trim()),c=ht(JSON.stringify(d));mt(()=>{const e=JSON.stringify(d);c.current!==e&&(c.current=e,n&&n(d))},[d,n]);const p=(e,t)=>{l(n=>{const o=[...n];return o[t]=e,o})},u=s.length<=1,m=s.some(e=>""===e.trim()),h=u&&m;return dt.createElement(vd,null,dt.createElement(Bl,{title:o,required:a,tooltip:i}),dt.createElement(Ed,null,s.map((e,t)=>{const n=t===s.length-1;return dt.createElement(Sd,{key:`input-list-${t}`},dt.createElement(Yl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:po(e)&&!u&&n}),t===s.length-1&&dt.createElement(Cd,{withBorder:!0,size:30,$disabled:m,onClick:m?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},dt.createElement(Ke,null)),dt.createElement(Cd,{size:30,$disabled:h,onClick:h?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,n)=>n!==e))})(t)},dt.createElement(st,null)))})),!!r&&dt.createElement(gi,null,r))},Ad=({col:e,colIdx:t,row:n,rowIdx:o,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:d,title:c,tooltip:p,placeholder:u,required:m,type:h,componentType:g,options:x,renderCondition:f}=e,$=n[d];return f&&!f(n)?null:dt.createElement("td",{key:`input-table-${o}-${d}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===nn.Dropdown){const e=x?.find(e=>e.id===$);return dt.createElement(od,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,required:m,options:x||[],value:e,onSelect:e=>r(d,e.id,o),onDeselect:()=>r(d,"",o),hasError:!!s&&(!m||m&&po($))})}{const e=i>1&&o===i-1&&0===t&&po($);return dt.createElement(Yl,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,type:h,required:m,autoFocus:e,value:$,onChange:({target:{value:e}})=>r(d,e,o),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!m||m&&po($))})}})())},Dd=vt.div`
1252
1252
  display: flex;
1253
1253
  flex-direction: column;
1254
1254
  width: 100%;
@@ -1276,7 +1276,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1276
1276
  `,Fd=vt(dr)`
1277
1277
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1278
1278
  opacity: ${({$disabled:e})=>e?.5:1};
1279
- `,Ld={key:"",value:""},Pd=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:d="Value",inputMaxWidth:c=300})=>{const[p,u]=ut(t||e);mt(()=>{p.length||u([{...Ld}])},[]);const m=p.filter(({key:e,value:t})=>!po(e.trim())&&!po(t.trim())),h=ht(JSON.stringify(m));mt(()=>{const e=JSON.stringify(m);h.current!==e&&(h.current=e,n&&n(m))},[m,n]);const g=(e,t,n)=>{u(o=>{const i=[...o];return i[n][e]=t,i})},x=p.length<=1,f=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),$=a||x&&f;return dt.createElement(Od,null,dt.createElement(Bl,{title:o,required:r,tooltip:i}),dt.createElement(_d,null,p.map(({key:e,value:t},n)=>dt.createElement(zd,{key:`key-value-input-list-${n}`},dt.createElement(Rd,{$maxWidth:c},dt.createElement(Yl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:po(t)&&!x&&n===p.length-1})),dt.createElement(Rd,{$maxWidth:n===p.length-1?c-38:c},dt.createElement(Yl,{placeholder:d,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&po(t)),autoFocus:!1})),n===p.length-1&&dt.createElement(Fd,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Ld}),t})}},dt.createElement(Je,null)),dt.createElement(Fd,{size:30,$disabled:$,onClick:$?void 0:()=>(e=>{x?(g("key","",e),g("value","",e)):u(t=>t.filter((t,n)=>n!==e))})(n)},dt.createElement(st,null))))),!!s&&dt.createElement(gi,null,s))},Md=vt.div`
1279
+ `,Ld={key:"",value:""},Pd=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:d="Value",inputMaxWidth:c=300})=>{const[p,u]=ut(t||e);mt(()=>{p.length||u([{...Ld}])},[]);const m=p.filter(({key:e,value:t})=>!po(e.trim())&&!po(t.trim())),h=ht(JSON.stringify(m));mt(()=>{const e=JSON.stringify(m);h.current!==e&&(h.current=e,n&&n(m))},[m,n]);const g=(e,t,n)=>{u(o=>{const i=[...o];return i[n][e]=t,i})},x=p.length<=1,f=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),$=a||x&&f;return dt.createElement(Od,null,dt.createElement(Bl,{title:o,required:r,tooltip:i}),dt.createElement(_d,null,p.map(({key:e,value:t},n)=>dt.createElement(zd,{key:`key-value-input-list-${n}`},dt.createElement(Rd,{$maxWidth:c},dt.createElement(Yl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:po(t)&&!x&&n===p.length-1})),dt.createElement(Rd,{$maxWidth:n===p.length-1?c-38:c},dt.createElement(Yl,{placeholder:d,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&po(t)),autoFocus:!1})),n===p.length-1&&dt.createElement(Fd,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Ld}),t})}},dt.createElement(Ke,null)),dt.createElement(Fd,{size:30,$disabled:$,onClick:$?void 0:()=>(e=>{x?(g("key","",e),g("value","",e)):u(t=>t.filter((t,n)=>n!==e))})(n)},dt.createElement(st,null))))),!!s&&dt.createElement(gi,null,s))},Md=vt.div`
1280
1280
  position: fixed;
1281
1281
  top: 50%;
1282
1282
  left: 50%;
@@ -1335,7 +1335,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1335
1335
  border-radius: 32px;
1336
1336
  padding: 8px;
1337
1337
  `}
1338
- `,Jd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Kd=({isVertical:e,title:t="Monitors",required:n,errorMessage:o,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=ut(1===a.length),d=ht(JSON.stringify(a));return mt(()=>{const e=a;e.length||An.forEach(({id:t})=>{Jd(t,i)&&e.push(t)});const t=JSON.stringify(e);return d.current!==t&&(d.current=t,r(e),l(1===e.length)),()=>{d.current=""}},[i]),dt.createElement("div",null,t&&dt.createElement(Bl,{title:t,required:n}),dt.createElement(Gd,{$isVertical:e,$hasError:!!o},An.map(e=>{const t=Jd(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?dt.createElement(Ta,{key:e.id,title:e.value,disabled:!t||s&&n,value:n,onChange:t=>((e,t)=>{const n=e,o=t?[...a,n]:a.filter(e=>e!==n);r(o),l(1===o.length)})(e.id,t)}):null})),!!o&&dt.createElement(gi,null,o))},Xd=vt.div`
1338
+ `,Kd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Jd=({isVertical:e,title:t="Monitors",required:n,errorMessage:o,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=ut(1===a.length),d=ht(JSON.stringify(a));return mt(()=>{const e=a;e.length||An.forEach(({id:t})=>{Kd(t,i)&&e.push(t)});const t=JSON.stringify(e);return d.current!==t&&(d.current=t,r(e),l(1===e.length)),()=>{d.current=""}},[i]),dt.createElement("div",null,t&&dt.createElement(Bl,{title:t,required:n}),dt.createElement(Gd,{$isVertical:e,$hasError:!!o},An.map(e=>{const t=Kd(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?dt.createElement(Ta,{key:e.id,title:e.value,disabled:!t||s&&n,value:n,onChange:t=>((e,t)=>{const n=e,o=t?[...a,n]:a.filter(e=>e!==n);r(o),l(1===o.length)})(e.id,t)}):null})),!!o&&dt.createElement(gi,null,o))},Xd=vt.div`
1339
1339
  display: flex;
1340
1340
  gap: 8px;
1341
1341
  align-items: center;
@@ -1587,13 +1587,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1587
1587
  `,Gc=vt(ui)`
1588
1588
  font-size: 20px;
1589
1589
  line-height: 28px;
1590
- `,Jc=vt(ui)`
1590
+ `,Kc=vt(ui)`
1591
1591
  color: ${({theme:e})=>e.text.grey};
1592
1592
  width: 416px;
1593
1593
  font-style: normal;
1594
1594
  font-weight: 300;
1595
1595
  line-height: 24px;
1596
- `,Kc=vt.div`
1596
+ `,Jc=vt.div`
1597
1597
  display: flex;
1598
1598
  justify-content: space-between;
1599
1599
  gap: 12px;
@@ -1601,4 +1601,4 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1601
1601
  width: 250px;
1602
1602
  `,Qc=vt.div`
1603
1603
  margin-bottom: 12px;
1604
- `,Zc=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{ta({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return dt.createElement(Yd,{isOpen:e,noOverlay:t,onClose:l},dt.createElement(qc,null,dt.createElement(Gc,null,n),dt.createElement(Yc,{$withNote:!!i},dt.createElement(Jc,null,o)),!!i&&dt.createElement(Qc,null,dt.createElement(lc,{type:i.type,title:i.title,message:i.message})),dt.createElement(Kc,null,dt.createElement(Xc,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),dt.createElement(Xc,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Ea as $,Ut as A,Ro as B,Ta as C,zo as D,en as E,Bl as F,Qa as G,ll as H,Yl as I,Zt as J,Vt as K,ha as L,Kd as M,Ho as N,Yd as O,Zd as P,$a as Q,lc as R,wc as S,si as T,_o as U,Di as V,er as W,Un as X,ar as Y,ma as Z,yo as _,Ks as a,Qo as a$,sn as a0,io as a1,Wo as a2,zn as a3,$r as a4,Jn as a5,vr as a6,ya as a7,ba as a8,ns as a9,qi as aA,oa as aB,Ui as aC,Ec as aD,xa as aE,Gn as aF,na as aG,$o as aH,od as aI,Do as aJ,An as aK,Fi as aL,Oo as aM,ia as aN,Ki as aO,Io as aP,dr as aQ,Ha as aR,rr as aS,mr as aT,bo as aU,On as aV,so as aW,Wa as aX,wn as aY,Qi as aZ,lo as a_,Yn as aa,wa as ab,Js as ac,ga as ad,Ql as ae,Hc as af,Oi as ag,To as ah,un as ai,Bn as aj,mn as ak,Pr as al,hn as am,Cn as an,Hn as ao,ao as ap,wo as aq,qn as ar,Mo as as,Vo as at,Gi as au,Pn as av,Ln as aw,Fn as ax,Rn as ay,Os as az,gi as b,Xn as b$,Dn as b0,Dr as b1,Sn as b2,_n as b3,Oc as b4,tl as b5,Qn as b6,$n as b7,yn as b8,fn as b9,mo as bA,Ji as bB,Wi as bC,pc as bD,cn as bE,pn as bF,dn as bG,Xt as bH,Lo as bI,jn as bJ,Na as bK,no as bL,gr as bM,jt as bN,Ht as bO,qt as bP,Yt as bQ,Gt as bR,Jt as bS,Kt as bT,tn as bU,rn as bV,ln as bW,gn as bX,Nn as bY,Mn as bZ,Kn as b_,bn as ba,xn as bb,Rc as bc,Vn as bd,ea as be,Tn as bf,ua as bg,Jo as bh,ro as bi,pa as bj,Yi as bk,ur as bl,kd as bm,co as bn,pr as bo,Rr as bp,Lr as bq,ho as br,vo as bs,ra as bt,Fs as bu,kn as bv,Qt as bw,ca as bx,wr as by,Wn as bz,Wt as c,Zn as c0,eo as c1,to as c2,oo as c3,uo as c4,go as c5,fo as c6,ko as c7,Eo as c8,So as c9,pi as cA,Zc as cB,fa as cC,Co as ca,Ao as cb,No as cc,Fo as cd,Bt as ce,Wr as cf,Hr as cg,Yr as ch,Jr as ci,ls as cj,ys as ck,ps as cl,es as cm,Ts as cn,ms as co,La as cp,ml as cq,Cl as cr,Ol as cs,hd as ct,yd as cu,xr as cv,Ss as cw,yl as cx,di as cy,ci as cz,on as d,Id as e,Uc as f,Pd as g,Td as h,po as i,nn as j,ui as k,fc as l,xl as m,Mc as n,qo as o,Bo as p,ta as q,Fl as r,hl as s,Li as t,Go as u,an as v,jo as w,Hi as x,En as y,vn as z};
1604
+ `,Zc=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{ta({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return dt.createElement(Yd,{isOpen:e,noOverlay:t,onClose:l},dt.createElement(qc,null,dt.createElement(Gc,null,n),dt.createElement(Yc,{$withNote:!!i},dt.createElement(Kc,null,o)),!!i&&dt.createElement(Qc,null,dt.createElement(lc,{type:i.type,title:i.title,message:i.message})),dt.createElement(Jc,null,dt.createElement(Xc,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),dt.createElement(Xc,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Ea as $,Ut as A,Ro as B,Ta as C,zo as D,en as E,Bl as F,Qa as G,ll as H,Yl as I,Zt as J,Vt as K,ha as L,Jd as M,Ho as N,Yd as O,Zd as P,$a as Q,lc as R,wc as S,si as T,_o as U,Di as V,er as W,Un as X,ar as Y,ma as Z,yo as _,Js as a,Qo as a$,sn as a0,io as a1,Wo as a2,zn as a3,$r as a4,Kn as a5,vr as a6,ya as a7,ba as a8,ns as a9,qi as aA,oa as aB,Ui as aC,Ec as aD,xa as aE,Gn as aF,na as aG,$o as aH,od as aI,Do as aJ,An as aK,Fi as aL,Oo as aM,ia as aN,Ji as aO,Io as aP,dr as aQ,Ha as aR,rr as aS,mr as aT,bo as aU,On as aV,so as aW,Wa as aX,wn as aY,Qi as aZ,lo as a_,Yn as aa,wa as ab,Ks as ac,ga as ad,Ql as ae,Hc as af,Oi as ag,To as ah,un as ai,Bn as aj,mn as ak,Pr as al,hn as am,Cn as an,Hn as ao,ao as ap,wo as aq,qn as ar,Mo as as,Vo as at,Gi as au,Pn as av,Ln as aw,Fn as ax,Rn as ay,Os as az,gi as b,Xn as b$,Dn as b0,Dr as b1,Sn as b2,_n as b3,Oc as b4,tl as b5,Qn as b6,$n as b7,yn as b8,fn as b9,mo as bA,Ki as bB,Wi as bC,pc as bD,cn as bE,pn as bF,dn as bG,Xt as bH,Lo as bI,jn as bJ,Na as bK,no as bL,gr as bM,jt as bN,Ht as bO,qt as bP,Yt as bQ,Gt as bR,Kt as bS,Jt as bT,tn as bU,rn as bV,ln as bW,gn as bX,Nn as bY,Mn as bZ,Jn as b_,bn as ba,xn as bb,Rc as bc,Vn as bd,ea as be,Tn as bf,ua as bg,Ko as bh,ro as bi,pa as bj,Yi as bk,ur as bl,kd as bm,co as bn,pr as bo,Rr as bp,Lr as bq,ho as br,vo as bs,ra as bt,Fs as bu,kn as bv,Qt as bw,ca as bx,wr as by,Wn as bz,Wt as c,Zn as c0,eo as c1,to as c2,oo as c3,uo as c4,go as c5,fo as c6,ko as c7,Eo as c8,So as c9,pi as cA,Zc as cB,fa as cC,Co as ca,Ao as cb,No as cc,Fo as cd,Bt as ce,Wr as cf,Hr as cg,Yr as ch,Kr as ci,ls as cj,ys as ck,ps as cl,es as cm,Ts as cn,ms as co,La as cp,ml as cq,Cl as cr,Ol as cs,hd as ct,yd as cu,xr as cv,Ss as cw,yl as cx,di as cy,ci as cz,on as d,Id as e,Uc as f,Pd as g,Td as h,po as i,nn as j,ui as k,fc as l,xl as m,Mc as n,qo as o,Bo as p,ta as q,Fl as r,hl as s,Li as t,Go as u,an as v,jo as w,Hi as x,En as y,vn as z};
package/lib/components.js CHANGED
@@ -1 +1 @@
1
- export{V as AutocompleteInput,ag as Badge,aL as Button,t as CancelWarning,ad as CenterThis,C as Checkbox,cp as Code,G as ConditionDetails,H as DataCard,a as DataCardFieldTypes,b5 as DataCardFields,cq as DataFinger,b1 as DataTab,s as DeleteWarning,bp as DescribeRow,W as Divider,m as DocsButton,r as Drawer,cs as DrawerFooter,cr as DrawerHeader,aI as Dropdown,ct as ErrorBoundary,aR as ExtendArrow,aX as FadeLoader,b as FieldError,F as FieldLabel,L as FlexColumn,Z as FlexRow,cu as Header,aQ as IconButton,by as IconGroup,a9 as IconTitleBadge,a4 as IconWrapped,bm as IconsNav,cv as ImageControlled,I as Input,h as InputList,e as InputTable,ac as InteractiveTable,g as KeyValueInputsList,O as Modal,Q as ModalBody,M as MonitorsCheckboxes,a6 as MonitorsIcons,P as NavigationButtons,ae as NoDataFound,R as NotificationNote,cC as Overlay,aC as Popup,bD as PopupForm,bM as ScrollX,l as SectionTitle,S as Segment,aD as SelectionButton,cw as SkeletonLoader,Y as Status,b4 as Stepper,cx as TabList,a7 as TableContainer,a8 as TableTitleWrap,ab as TableWrap,bc as Tag,k as Text,n as TextArea,f as Toggle,bK as ToggleCodeComponent,$ as Tooltip,af as TraceLoader,aE as VerticalScroll,cB as WarningModal,cy as getLinksFromText,cz as getStrongsFromText,cA as renderText}from"./chunks/ui-components-0b873246.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
1
+ export{V as AutocompleteInput,ag as Badge,aL as Button,t as CancelWarning,ad as CenterThis,C as Checkbox,cp as Code,G as ConditionDetails,H as DataCard,a as DataCardFieldTypes,b5 as DataCardFields,cq as DataFinger,b1 as DataTab,s as DeleteWarning,bp as DescribeRow,W as Divider,m as DocsButton,r as Drawer,cs as DrawerFooter,cr as DrawerHeader,aI as Dropdown,ct as ErrorBoundary,aR as ExtendArrow,aX as FadeLoader,b as FieldError,F as FieldLabel,L as FlexColumn,Z as FlexRow,cu as Header,aQ as IconButton,by as IconGroup,a9 as IconTitleBadge,a4 as IconWrapped,bm as IconsNav,cv as ImageControlled,I as Input,h as InputList,e as InputTable,ac as InteractiveTable,g as KeyValueInputsList,O as Modal,Q as ModalBody,M as MonitorsCheckboxes,a6 as MonitorsIcons,P as NavigationButtons,ae as NoDataFound,R as NotificationNote,cC as Overlay,aC as Popup,bD as PopupForm,bM as ScrollX,l as SectionTitle,S as Segment,aD as SelectionButton,cw as SkeletonLoader,Y as Status,b4 as Stepper,cx as TabList,a7 as TableContainer,a8 as TableTitleWrap,ab as TableWrap,bc as Tag,k as Text,n as TextArea,f as Toggle,bK as ToggleCodeComponent,$ as Tooltip,af as TraceLoader,aE as VerticalScroll,cB as WarningModal,cy as getLinksFromText,cz as getStrongsFromText,cA as renderText}from"./chunks/ui-components-58c09391.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{y as ACTION_OPTIONS,B as BUTTON_TEXTS,aP as DEFAULT_DATA_STREAM_NAME,b2 as DESTINATION_CATEGORIES,aJ as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,U as FORM_ALERTS,bf as INSTRUMENTATION_RULE_OPTIONS,cc as LANGUAGE_OPTIONS,aK as MONITORS_OPTIONS,aM as STORAGE_KEYS,cd as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-0b873246.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
1
+ export{y as ACTION_OPTIONS,B as BUTTON_TEXTS,aP as DEFAULT_DATA_STREAM_NAME,b2 as DESTINATION_CATEGORIES,aJ as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,U as FORM_ALERTS,bf as INSTRUMENTATION_RULE_OPTIONS,cc as LANGUAGE_OPTIONS,aK as MONITORS_OPTIONS,aM as STORAGE_KEYS,cd as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-58c09391.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-1dea551d.js";import"styled-components";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";