@odigos/ui-kit 0.0.108 → 0.0.110

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.
@@ -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 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,vn;!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={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(vn||(vn={}));const En=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},Sn=[{label:"Attributes",icon:En(jt.Attributes),items:[{type:Ut.K8sAttributes,icon:En(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:En(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:En(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:En(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:En(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:En(jt.Samplers),items:[{type:Ut.ErrorSampler,icon:En(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:En(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:En(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:En(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:En(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."}]}],Cn={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."}},Tn=e=>({[xn.CodeAttributes]:s,[xn.CustomInstrumentation]:l,[xn.HeadersCollection]:d,[xn.PayloadCollection]:c,[xn.UnknownType]:n}[e]||n),An=[{type:xn.CodeAttributes,icon:Tn(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:Tn(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:Tn(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:Tn(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]}],Dn=[{id:wn.Logs,value:"Logs"},{id:wn.Metrics,value:"Metrics"},{id:wn.Traces,value:"Traces"}],Nn=e=>e.charAt(0).toUpperCase()+e.slice(1),In=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 On;!function(e){e.SIGNALS="SIGNALS"}(On||(On={}));const _n=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===On.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}},zn=e=>JSON.parse(JSON.stringify(e)),Rn=(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},Fn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Ln=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Pn=(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},Mn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===_o&&!e.dataStreamNames.length):[],Bn=(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?Bn(e,o,n):n[o]=e}):n[a]=i:Bn(i,a,n)}return n},jn=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]}`},Un=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`}},Wn=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}},Vn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Hn=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),qn=e=>e?.map(({language:e})=>Hn(e))||[],Yn=(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`}},Gn=e=>({[en.Namespace]:Ie,[en.Source]:Oe,[en.Destination]:_e,[en.Action]:ze,[en.InstrumentationRule]:Re}[e]),Kn=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},Xn=(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},Qn=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},Zn=(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},eo=e=>({[wn.Logs]:Fe,[wn.Metrics]:Le,[wn.Traces]:Pe}[e]),to=e=>e?{[Jt.K8s]:o,[Jt.Vm]:Me}[e]:ce,no=e=>e?{[Jt.K8s]:"Kubernetes Cluster",[Jt.Vm]:"Virtual Machine"}[e]:"Unknown",oo=(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(...oo(e,t,n)),i}):[]},io=(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},ao=(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]),ro=e=>{switch(e){case vn.Success:return an.Success;case vn.Error:case vn.Failure:return an.Error;case vn.Notice:return an.Warning;case vn.Unsupported:case vn.Unknown:return an.Info;case vn.Irrelevant:case vn.Disabled:return sn.Disabled;case vn.Waiting:return sn.Loading;case vn.Pending:default:return an.Default}},so=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},lo=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function co(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const po=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=co(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},uo=(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},mo=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ho=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),go=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},xo=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},fo=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,$o=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,yo=e=>$o.test(e),bo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",wo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:bo(t),reason:n?bo(n):"",message:o,lastTransitionTime:i}))||[],ko=(e,t)=>{const n=co(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}))},vo=e=>e?Object.keys(e).filter(t=>e[t]):[],Eo=e=>e.replace(/[^\d]/g,""),So=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Co=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},To=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=>To(e)))}else if("object"==typeof o&&null!==o){const e=To(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Ao=(e,t=2)=>JSON.stringify(e||{},null,t),Do=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),No=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Io={[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"},Oo=[{id:Qt.Go,value:Io[Qt.Go],icon:Hn(Qt.Go)},{id:Qt.Java,value:Io[Qt.Java],icon:Hn(Qt.Java)},{id:Qt.JavaScript,value:Io[Qt.JavaScript],icon:Hn(Qt.JavaScript)},{id:Qt.Python,value:Io[Qt.Python],icon:Hn(Qt.Python)},{id:Qt.Php,value:Io[Qt.Php],icon:Hn(Qt.Php)},{id:Qt.Ruby,value:Io[Qt.Ruby],icon:Hn(Qt.Ruby)},{id:Qt.Rust,value:Io[Qt.Rust],icon:Hn(Qt.Rust)},{id:Qt.DotNet,value:Io[Qt.DotNet],icon:Hn(Qt.DotNet)},{id:Qt.CSharp,value:Io[Qt.CSharp],icon:Hn(Qt.CSharp)},{id:Qt.CPlusPlus,value:Io[Qt.CPlusPlus],icon:Hn(Qt.CPlusPlus)},{id:Qt.Swift,value:Io[Qt.Swift],icon:Hn(Qt.Swift)},{id:Qt.Elixir,value:Io[Qt.Elixir],icon:Hn(Qt.Elixir)}],_o="default",zo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Ro={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)'},Fo={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?"},Lo={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"},Po=6048e5,Mo=lt()(yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:zo.DARK_MODE,storage:"undefined"!=typeof window?bt(()=>localStorage):void 0})),Bo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},jo=lt(e=>({...Bo,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(Bo)})),Uo=lt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Wo=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(Kn(t))===JSON.stringify(Kn(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(Kn(n))===JSON.stringify(Kn(e)):Kn(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:[]})}})),Vo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Ho=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:Vo})),qo=lt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Yo=lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Go=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)}))}})),Ko=(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},Jo=lt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Ko(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Ko(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}})),Xo=lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{}}))})),Qo={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Zo=(e,t)=>e.destinationType.type!==t.destinationType.type,ei=lt(e=>({...Qo,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=>Zo(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=>Zo(e,t))})),resetState:()=>e(()=>({...Qo}))})),ti={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"}},ni={darkMode:!0,colors:{...ti.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:ti.font_family},oi={darkMode:!1,colors:{...ti.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:ti.font_family},ii=e=>e?ni:oi;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 ai={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 M,AwsCloudwatchLogo as P,CoralogixLogo as B,Dash0Logo as j,DatadogLogo as U,OpenTelemetryLogo as W,DynatraceLogo as V,ElasticApmLogo as H,ElasticSearchLogo as q,GoogleCloudPlatformLogo as G,GrafanaLogo as Y,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 Me,VmLogo as Pe,CheckCircledIcon as Be,ErrorTriangleIcon as je,WarningTriangleIcon as Ue,InfoIcon as We,MinusIcon as Ve,CheckIcon as He,ListIcon as qe,CodeIcon as Ge,ExtendArrowIcon as Ye,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 Mt}from"react-error-boundary";import Pt 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,Gt,Yt,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,vn;!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"}(Gt||(Gt={})),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"}(Yt||(Yt={})),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.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.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={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(vn||(vn={}));const En=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},Sn=[{label:"Attributes",icon:En(jt.Attributes),items:[{type:Ut.K8sAttributes,icon:En(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:En(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:En(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:En(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:En(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:En(jt.Samplers),items:[{type:Ut.ErrorSampler,icon:En(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:En(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:En(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:En(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:En(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."}]}],Cn={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."}},Tn=e=>({[xn.CodeAttributes]:s,[xn.CustomInstrumentation]:l,[xn.HeadersCollection]:d,[xn.PayloadCollection]:c,[xn.UnknownType]:n}[e]||n),An=[{type:xn.CodeAttributes,icon:Tn(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:Tn(xn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods(i.e for Java) or explicit symbol(i.e. Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument a specific symbol(i.e for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[Qt.Go,Qt.Java]},{type:xn.HeadersCollection,icon:Tn(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:Tn(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]}],Dn=[{id:wn.Logs,value:"Logs"},{id:wn.Metrics,value:"Metrics"},{id:wn.Traces,value:"Traces"}],Nn=e=>e.charAt(0).toUpperCase()+e.slice(1),In=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 On;!function(e){e.SIGNALS="SIGNALS"}(On||(On={}));const _n=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===On.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}},zn=e=>JSON.parse(JSON.stringify(e)),Rn=(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},Fn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Ln=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Mn=(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===_o&&!e.dataStreamNames.length):[],Bn=(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?Bn(e,o,n):n[o]=e}):n[a]=i:Bn(i,a,n)}return n},jn=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]}`},Un=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`}},Wn=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}},Vn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Hn=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),qn=e=>e?.map(({language:e})=>Hn(e))||[],Gn=(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]:M,[gn.CloudWatch]:P,[gn.Coralogix]:B,[gn.Dash0]:j,[gn.Datadog]:U,[gn.Dynamic]:W,[gn.Dynatrace]:V,[gn.ElasticApm]:H,[gn.ElasticSearch]:q,[gn.GoogleCloud]:G,[gn.GoogleCloudOTLP]:G,[gn.GrafanaCloudLoki]:Y,[gn.GrafanaCloudPrometheus]:Y,[gn.GrafanaCloudTempo]:Y,[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]),Jn=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},Xn=(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},Qn=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},Zn=(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},eo=e=>({[wn.Logs]:Fe,[wn.Metrics]:Le,[wn.Traces]:Me}[e]),to=e=>e?{[Kt.K8s]:o,[Kt.Vm]:Pe}[e]:ce,no=e=>e?{[Kt.K8s]:"Kubernetes Cluster",[Kt.Vm]:"Virtual Machine"}[e]:"Unknown",oo=(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(...oo(e,t,n)),i}):[]},io=(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},ao=(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]),ro=e=>{switch(e){case vn.Success:return an.Success;case vn.Error:case vn.Failure:return an.Error;case vn.Notice:return an.Warning;case vn.Unsupported:case vn.Unknown:return an.Info;case vn.Irrelevant:case vn.Disabled:return sn.Disabled;case vn.Waiting:return sn.Loading;case vn.Pending:default:return an.Default}},so=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},lo=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function co(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const po=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=co(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},uo=(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},mo=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ho=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),go=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},xo=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},fo=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,$o=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,yo=e=>$o.test(e),bo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",wo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:bo(t),reason:n?bo(n):"",message:o,lastTransitionTime:i}))||[],ko=(e,t)=>{const n=co(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}))},vo=e=>e?Object.keys(e).filter(t=>e[t]):[],Eo=e=>e.replace(/[^\d]/g,""),So=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Co=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},To=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=>To(e)))}else if("object"==typeof o&&null!==o){const e=To(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Ao=(e,t=2)=>JSON.stringify(e||{},null,t),Do=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),No=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Io={[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"},Oo=[{id:Qt.Go,value:Io[Qt.Go],icon:Hn(Qt.Go)},{id:Qt.Java,value:Io[Qt.Java],icon:Hn(Qt.Java)},{id:Qt.JavaScript,value:Io[Qt.JavaScript],icon:Hn(Qt.JavaScript)},{id:Qt.Python,value:Io[Qt.Python],icon:Hn(Qt.Python)},{id:Qt.Php,value:Io[Qt.Php],icon:Hn(Qt.Php)},{id:Qt.Ruby,value:Io[Qt.Ruby],icon:Hn(Qt.Ruby)},{id:Qt.Rust,value:Io[Qt.Rust],icon:Hn(Qt.Rust)},{id:Qt.DotNet,value:Io[Qt.DotNet],icon:Hn(Qt.DotNet)},{id:Qt.CSharp,value:Io[Qt.CSharp],icon:Hn(Qt.CSharp)},{id:Qt.CPlusPlus,value:Io[Qt.CPlusPlus],icon:Hn(Qt.CPlusPlus)},{id:Qt.Swift,value:Io[Qt.Swift],icon:Hn(Qt.Swift)},{id:Qt.Elixir,value:Io[Qt.Elixir],icon:Hn(Qt.Elixir)}],_o="default",zo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Ro={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)'},Fo={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?",INSTRUMENTED_METHODS:"Instrumented Methods",INSTRUMENTED_SYMBOLS:"Instrumented Symbols"},Lo={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"},Mo=6048e5,Po=lt()(yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:zo.DARK_MODE,storage:"undefined"!=typeof window?bt(()=>localStorage):void 0})),Bo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},jo=lt(e=>({...Bo,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(Bo)})),Uo=lt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Wo=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(Jn(t))===JSON.stringify(Jn(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(Jn(n))===JSON.stringify(Jn(e)):Jn(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:[]})}})),Vo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Ho=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:Vo})),qo=lt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Go=lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Yo=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)}))}})),Jo=(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},Ko=lt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Jo(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Jo(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}})),Xo=lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{}}))})),Qo={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Zo=(e,t)=>e.destinationType.type!==t.destinationType.type,ei=lt(e=>({...Qo,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=>Zo(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=>Zo(e,t))})),resetState:()=>e(()=>({...Qo}))})),ti={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"}},ni={darkMode:!0,colors:{...ti.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:ti.font_family},oi={darkMode:!1,colors:{...ti.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:ti.font_family},ii=e=>e?ni:oi;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 ai={in:{left:St`
2
2
  from { transform: translateX(-100%); }
3
3
  to { transform: translateX(0); }
4
4
  `,right:St`
@@ -50,7 +50,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
50
50
  100% {
51
51
  background-position: 500px 0;
52
52
  }
53
- `,di={Provider:({children:e})=>{const{darkMode:t}=Mo();return dt.createElement(Et,{theme:ii(t)},e)},useTheme:Ct,opacity:Object.freeze({__proto__:null,hex:{100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"}}),animations:Object.freeze({__proto__:null,ping:si,progress:ri,shimmer:li,slide:ai})},ci=vt.div`
53
+ `,di={Provider:({children:e})=>{const{darkMode:t}=Po();return dt.createElement(Et,{theme:ii(t)},e)},useTheme:Ct,opacity:Object.freeze({__proto__:null,hex:{100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"}}),animations:Object.freeze({__proto__:null,ping:si,progress:ri,shimmer:li,slide:ai})},ci=vt.div`
54
54
  color: ${({$color:e,theme:t})=>e||t.text.secondary};
55
55
  font-size: ${({$size:e})=>void 0!==e?e:16}px;
56
56
  font-weight: ${({$weight:e})=>void 0!==e?e:300};
@@ -263,7 +263,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
263
263
  }
264
264
  `:""}
265
265
  `}
266
- `,Pi=({children:e,variant:t="primary",onClick:n,...o})=>{const i=ht(null);return dt.createElement(Ri,{$variant:t},dt.createElement(Li,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},Mi=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>dt.createElement(ep,{isOpen:e,noOverlay:t,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:an.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),Bi=vt.div`
266
+ `,Mi=({children:e,variant:t="primary",onClick:n,...o})=>{const i=ht(null);return dt.createElement(Ri,{$variant:t},dt.createElement(Li,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},Pi=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>dt.createElement(ep,{isOpen:e,noOverlay:t,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:an.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),Bi=vt.div`
267
267
  position: absolute;
268
268
  ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
269
269
  ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
@@ -286,7 +286,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
286
286
  `,Wi=vt.div`
287
287
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
288
288
  border-top: 1px solid ${({theme:e})=>e.colors.border};
289
- `,Vi=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(Bi,{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(ji,{$padding:d},u),dt.createElement(Ui,{$padding:d},e),m&&dt.createElement(Wi,{$padding:d},m))},[o,n,t]);return e?t?Rt.createPortal(i,document.body):i:null});Vi.displayName=Vi.name;const Hi=e=>{function t(){return void 0===e?{}:zn(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=zn(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({})}}},qi={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}},Yi=()=>{const{addNotification:e}=Go(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Hi(qi);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":mo(t)&&(o[e]=Ro.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:an.Warning,title:n.alertTitle,message:Ro.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...zn(qi),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)}}},Gi=()=>{const{setCurrentModal:e}=Yo(),{setDrawerType:t,setDrawerEntityId:n}=Uo(),{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)}}}},Ki=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Uo(),{markAsDismissed:n,markAsSeen:o}=Go();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(Xn(l,en.InstrumentationRule));break;case en.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(en.Source),t(Xn(l,en.Source));break;case en.Action:e(en.Action),t(Xn(l,en.Action));break;case en.Destination:case"Destination":e(en.Destination),t(Xn(l,en.Destination))}o(r),d&&n(r)}}},Ji=()=>{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}},Xi=()=>{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)}}}},Qi=e=>{const{addNotification:t}=Go(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Hi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?ho(n.name)?o.name=void 0:(i=!1,o.name=Ro.ILLEGAL_K8S_LABEL):(i=!1,o.name=Ro.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:an.Warning,title:e.alertTitle,message:Ro.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...zn(e),name:t};o(void 0,void 0,n)}}},Zi={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},ea=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=Go(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Hi(Zi),[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=co(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,...co(o,{})}})).map(e=>{if(n){const t="string"==typeof n?co(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===vo(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]=Ro.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:an.Warning,title:e.alertTitle,message:Ro.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={...zn(Zi),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(co(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},ta={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}},na=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Hi(ta);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={...zn(ta),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)}}},oa=({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),ia=(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])},aa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=ht(null),[i,a]=ut(!1),[r,s]=ut({top:0,left:0});return ia(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})}}},ra=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?co(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),sa={otelServiceName:"",currentStreamName:""},la=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Hi(sa);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...zn(sa),otelServiceName:e||t||""};n(void 0,void 0,o)}}},da=(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}},ca=(e,t,n)=>({...da(e,t,n),currentStreamName:t}),pa=(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}},ua=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=Wo(),{selectedStreamName:o}=jo(),i=ht(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=ei(),[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=>ca(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=ca(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=>da(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>ca(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]||pa(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]:pa(a,o,e)}))},searchText:v,setSearchText:E,searchBy:S,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:D,setShowRunningOnly:N}};$t.addDefaultLocale(kt);const ma=()=>new $t("en-US"),ha=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=vt(e)`
289
+ `,Vi=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(Bi,{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(ji,{$padding:d},u),dt.createElement(Ui,{$padding:d},e),m&&dt.createElement(Wi,{$padding:d},m))},[o,n,t]);return e?t?Rt.createPortal(i,document.body):i:null});Vi.displayName=Vi.name;const Hi=e=>{function t(){return void 0===e?{}:zn(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=zn(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({})}}},qi={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}},Gi=()=>{const{addNotification:e}=Yo(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Hi(qi);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":mo(t)&&(o[e]=Ro.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:an.Warning,title:n.alertTitle,message:Ro.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...zn(qi),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)}}},Yi=()=>{const{setCurrentModal:e}=Go(),{setDrawerType:t,setDrawerEntityId:n}=Uo(),{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)}}}},Ji=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Uo(),{markAsDismissed:n,markAsSeen:o}=Yo();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(Xn(l,en.InstrumentationRule));break;case en.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(en.Source),t(Xn(l,en.Source));break;case en.Action:e(en.Action),t(Xn(l,en.Action));break;case en.Destination:case"Destination":e(en.Destination),t(Xn(l,en.Destination))}o(r),d&&n(r)}}},Ki=()=>{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}},Xi=()=>{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)}}}},Qi=e=>{const{addNotification:t}=Yo(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Hi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?ho(n.name)?o.name=void 0:(i=!1,o.name=Ro.ILLEGAL_K8S_LABEL):(i=!1,o.name=Ro.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:an.Warning,title:e.alertTitle,message:Ro.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...zn(e),name:t};o(void 0,void 0,n)}}},Zi={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},ea=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=Yo(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Hi(Zi),[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=co(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,...co(o,{})}})).map(e=>{if(n){const t="string"==typeof n?co(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===vo(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]=Ro.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:an.Warning,title:e.alertTitle,message:Ro.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={...zn(Zi),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(co(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},ta={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}},na=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Hi(ta);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={...zn(ta),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)}}},oa=({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),ia=(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])},aa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=ht(null),[i,a]=ut(!1),[r,s]=ut({top:0,left:0});return ia(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})}}},ra=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?co(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),sa={otelServiceName:"",currentStreamName:""},la=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Hi(sa);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...zn(sa),otelServiceName:e||t||""};n(void 0,void 0,o)}}},da=(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}},ca=(e,t,n)=>({...da(e,t,n),currentStreamName:t}),pa=(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}},ua=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=Wo(),{selectedStreamName:o}=jo(),i=ht(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=ei(),[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=>ca(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=ca(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=>da(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>ca(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]||pa(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]:pa(a,o,e)}))},searchText:v,setSearchText:E,searchBy:S,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:D,setShowRunningOnly:N}};$t.addDefaultLocale(kt);const ma=()=>new $t("en-US"),ha=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=vt(e)`
290
290
  animation-name: ${({$isEntering:e,$isLeaving:o})=>e?t:o?n:"none"};
291
291
  animation-duration: ${o}ms;
292
292
  animation-fill-mode: forwards;
@@ -383,7 +383,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
383
383
  &:hover {
384
384
  border: 1px solid ${({theme:e})=>e.colors.secondary};
385
385
  }
386
- `,Oa=({isPrettyMode:e,setIsPrettyMode:t})=>dt.createElement(Na,null,dt.createElement(Ia,{$position:"left",$selected:e,onClick:()=>t(!0)},dt.createElement(qe,null)),dt.createElement(Ia,{$position:"right",$selected:!e,onClick:()=>t(!1)},dt.createElement(Ye,null))),_a=vt.table`
386
+ `,Oa=({isPrettyMode:e,setIsPrettyMode:t})=>dt.createElement(Na,null,dt.createElement(Ia,{$position:"left",$selected:e,onClick:()=>t(!0)},dt.createElement(qe,null)),dt.createElement(Ia,{$position:"right",$selected:!e,onClick:()=>t(!1)},dt.createElement(Ge,null))),_a=vt.table`
387
387
  border-collapse: collapse;
388
388
  font-family: ${({theme:e})=>e.font_family.primary};
389
389
  `,za=vt.tbody``,Ra=vt.tr`
@@ -398,7 +398,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
398
398
  padding: 4px 6px;
399
399
  `,La=vt(hi)`
400
400
  white-space: nowrap;
401
- `,Pa=vt.span`
401
+ `,Ma=vt.span`
402
402
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
403
403
  overflow-wrap: break-word;
404
404
  word-break: break-word;
@@ -406,12 +406,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
406
406
  /* Fallback for older browsers */
407
407
  -ms-word-break: break-all;
408
408
  font-size: 12px;
409
- `,Ma=({language:e,code:t,flatten:n,pretty:o})=>{const{darkMode:i}=di.useTheme();let a="";if("json"===e){const e=co(t,{}),o=To(e);a=Ao(n?Bn(o):o)}else a=t;return o&&"json"===e?dt.createElement(Ba,{darkMode:i,str:a}):dt.createElement(Ft,{theme:i?Lt.palenight:Lt.vsLight,language:e,code:a},({getLineProps:e,getTokenProps:t,tokens:n})=>dt.createElement("pre",null,n.map((n,o)=>dt.createElement("div",{key:`line-${o}`,...e({line:n})},n.map((e,n)=>dt.createElement(Pa,{key:`line-${o}-token-${n}`,...t({token:e})}))))))},Ba=({darkMode:e,str:t})=>{const n=di.useTheme();return dt.createElement(Ft,{theme:e?Lt.palenight:Lt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:o})=>dt.createElement(_a,null,dt.createElement(za,null,o.map((o,i)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(o),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?dt.createElement(ct,{key:`line-${i}`},((e,t)=>{const o=new Array(2).fill(e=>dt.createElement(Ra,{...e},dt.createElement(Fa,null),dt.createElement(Fa,null)));return dt.createElement(ct,null,o.map((e,o)=>dt.createElement(e,{key:`empty-row-${t}-${o}`,style:0===o?{borderBottom:`1px solid ${n.colors.border}`}:{}})))})(0,i),dt.createElement(Ra,{...r},dt.createElement(Fa,null,dt.createElement(La,null,a[0].content)),dt.createElement(Fa,null))):2===a.length?dt.createElement(Ra,{key:`line-${i}`,...r},a.map((e,o)=>{const{text:a,components:r}=((e,t)=>{const[n,...o]=e.split("@");return{text:n,components:o?.map((e,n)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return dt.createElement(Ca,{key:`${o}-${i}-${n}`,withIcon:!0,text:i});case"status":if("none"===i)return dt.createElement("div",{key:`${o}-${i}-${n}`,style:{width:16,height:16}});let e=ao(i,t);return e||(e=ao(an.Warning,t)),dt.createElement(e,{key:`${o}-${i}-${n}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,n),s=0===o;return dt.createElement(Fa,{key:`line-${i}-token-${o}`},dt.createElement(ga,null,dt.createElement(ga,null,r),dt.createElement(Pa,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},ja={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Ua(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return ja[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Wa(e){const t=Ua(e);return`${t.value}${t.unit}`}const Va=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(o,0),e})(),Ha=({loading:e=!0,color:t,scale:n=1,speedMultiplier:o=1,cssOverride:i={},style:a={},...r})=>{const s=di.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:d}=Ua(2),c=d+4.2,p=c/2+c/5.5,u=4*c*n,m={position:"relative",width:`${u}px`,height:`${u}px`,scale:n,...a,...i},h=(e,t)=>({position:"absolute",width:Wa(1.5),height:Wa(4),borderRadius:Wa(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Va} ${1.2/o}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return dt.createElement("span",{style:m,...r},dt.createElement("span",{style:{...h(1,0),top:`calc(50% + ${c}px)`,left:"50%"}}),dt.createElement("span",{style:{...h(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),dt.createElement("span",{style:{...h(3,90),top:"50%",left:`calc(50% + ${c}px)`}}),dt.createElement("span",{style:{...h(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),dt.createElement("span",{style:{...h(5,0),top:`calc(50% + ${-1*c}px)`,left:"50%"}}),dt.createElement("span",{style:{...h(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),dt.createElement("span",{style:{...h(7,90),top:"50%",left:`calc(50% + ${-1*c}px)`}}),dt.createElement("span",{style:{...h(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},qa=vt.div`
409
+ `,Pa=({language:e,code:t,flatten:n,pretty:o})=>{const{darkMode:i}=di.useTheme();let a="";if("json"===e){const e=co(t,{}),o=To(e);a=Ao(n?Bn(o):o)}else a=t;return o&&"json"===e?dt.createElement(Ba,{darkMode:i,str:a}):dt.createElement(Ft,{theme:i?Lt.palenight:Lt.vsLight,language:e,code:a},({getLineProps:e,getTokenProps:t,tokens:n})=>dt.createElement("pre",null,n.map((n,o)=>dt.createElement("div",{key:`line-${o}`,...e({line:n})},n.map((e,n)=>dt.createElement(Ma,{key:`line-${o}-token-${n}`,...t({token:e})}))))))},Ba=({darkMode:e,str:t})=>{const n=di.useTheme();return dt.createElement(Ft,{theme:e?Lt.palenight:Lt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:o})=>dt.createElement(_a,null,dt.createElement(za,null,o.map((o,i)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(o),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?dt.createElement(ct,{key:`line-${i}`},((e,t)=>{const o=new Array(2).fill(e=>dt.createElement(Ra,{...e},dt.createElement(Fa,null),dt.createElement(Fa,null)));return dt.createElement(ct,null,o.map((e,o)=>dt.createElement(e,{key:`empty-row-${t}-${o}`,style:0===o?{borderBottom:`1px solid ${n.colors.border}`}:{}})))})(0,i),dt.createElement(Ra,{...r},dt.createElement(Fa,null,dt.createElement(La,null,a[0].content)),dt.createElement(Fa,null))):2===a.length?dt.createElement(Ra,{key:`line-${i}`,...r},a.map((e,o)=>{const{text:a,components:r}=((e,t)=>{const[n,...o]=e.split("@");return{text:n,components:o?.map((e,n)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return dt.createElement(Ca,{key:`${o}-${i}-${n}`,withIcon:!0,text:i});case"status":if("none"===i)return dt.createElement("div",{key:`${o}-${i}-${n}`,style:{width:16,height:16}});let e=ao(i,t);return e||(e=ao(an.Warning,t)),dt.createElement(e,{key:`${o}-${i}-${n}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,n),s=0===o;return dt.createElement(Fa,{key:`line-${i}-token-${o}`},dt.createElement(ga,null,dt.createElement(ga,null,r),dt.createElement(Ma,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},ja={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Ua(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return ja[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Wa(e){const t=Ua(e);return`${t.value}${t.unit}`}const Va=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(o,0),e})(),Ha=({loading:e=!0,color:t,scale:n=1,speedMultiplier:o=1,cssOverride:i={},style:a={},...r})=>{const s=di.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:d}=Ua(2),c=d+4.2,p=c/2+c/5.5,u=4*c*n,m={position:"relative",width:`${u}px`,height:`${u}px`,scale:n,...a,...i},h=(e,t)=>({position:"absolute",width:Wa(1.5),height:Wa(4),borderRadius:Wa(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Va} ${1.2/o}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return dt.createElement("span",{style:m,...r},dt.createElement("span",{style:{...h(1,0),top:`calc(50% + ${c}px)`,left:"50%"}}),dt.createElement("span",{style:{...h(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),dt.createElement("span",{style:{...h(3,90),top:"50%",left:`calc(50% + ${c}px)`}}),dt.createElement("span",{style:{...h(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),dt.createElement("span",{style:{...h(5,0),top:`calc(50% + ${-1*c}px)`,left:"50%"}}),dt.createElement("span",{style:{...h(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),dt.createElement("span",{style:{...h(7,90),top:"50%",left:`calc(50% + ${-1*c}px)`}}),dt.createElement("span",{style:{...h(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},qa=vt.div`
410
410
  margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
411
411
  display: flex;
412
412
  align-items: center;
413
413
  justify-content: center;
414
- `,Ya=({extend:e,size:t=14,align:n="center"})=>dt.createElement(qa,{$align:n},dt.createElement(Ge,{size:t,rotate:e?180:0})),Ga=vt.div`
414
+ `,Ga=({extend:e,size:t=14,align:n="center"})=>dt.createElement(qa,{$align:n},dt.createElement(Ye,{size:t,rotate:e?180:0})),Ya=vt.div`
415
415
  border-radius: 24px;
416
416
  background-color: ${({theme:e,$status:t})=>t===an.Error?e.text.error+di.opacity.hex["010"]:t===an.Warning?e.text.warning+di.opacity.hex["010"]:e.colors.secondary+di.opacity.hex["005"]};
417
417
  &:hover {
@@ -419,12 +419,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
419
419
  }
420
420
  cursor: pointer;
421
421
  transition: background 0.3s;
422
- `,Ka=vt.div`
422
+ `,Ja=vt.div`
423
423
  display: flex;
424
424
  align-items: center;
425
425
  gap: 12px;
426
426
  padding: 12px 18px;
427
- `,Ja=vt.div`
427
+ `,Ka=vt.div`
428
428
  display: flex;
429
429
  flex-direction: column;
430
430
  gap: 8px;
@@ -437,7 +437,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
437
437
  white-space: nowrap;
438
438
  `,Za=vt(xa)`
439
439
  width: 16px;
440
- `,er=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=di.useTheme(),[a,r]=ut(!1),s=pt(()=>wo(e),[e]),{errors:l,hasErrors:d,warnings:c,hasWarnings:p,hasDisableds:u,hasLoadings:m}=pt(()=>Wn(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=ao(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(Ga,{onClick:w,$status:g},dt.createElement(Ka,null,h?dt.createElement(Ha,null):dt.createElement(x,null),dt.createElement(hi,{color:$,size:14},f),dt.createElement(hi,{color:b,size:12,family:"secondary"},y),dt.createElement(Ya,{extend:a,align:"right"})),a&&dt.createElement(Ja,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===sn.Loading?()=>dt.createElement(Ha,{scale:.8}):e===sn.Disabled?ao(an.Info,i):ao(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(Xa,{key:`condition-${r}`},dt.createElement(Za,null,dt.createElement(s,null)),dt.createElement(ga,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},dt.createElement(hi,{color:l,size:12},dt.createElement(Qa,{color:d,size:12,weight:700},t),o||n),dt.createElement(Qa,{color:l,size:12},new Date(a).toLocaleString())))})))},tr=vt.div`
440
+ `,er=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=di.useTheme(),[a,r]=ut(!1),s=pt(()=>wo(e),[e]),{errors:l,hasErrors:d,warnings:c,hasWarnings:p,hasDisableds:u,hasLoadings:m}=pt(()=>Wn(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=ao(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(Ya,{onClick:w,$status:g},dt.createElement(Ja,null,h?dt.createElement(Ha,null):dt.createElement(x,null),dt.createElement(hi,{color:$,size:14},f),dt.createElement(hi,{color:b,size:12,family:"secondary"},y),dt.createElement(Ga,{extend:a,align:"right"})),a&&dt.createElement(Ka,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===sn.Loading?()=>dt.createElement(Ha,{scale:.8}):e===sn.Disabled?ao(an.Info,i):ao(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(Xa,{key:`condition-${r}`},dt.createElement(Za,null,dt.createElement(s,null)),dt.createElement(ga,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},dt.createElement(hi,{color:l,size:12},dt.createElement(Qa,{color:d,size:12,weight:700},t),o||n),dt.createElement(Qa,{color:l,size:12},new Date(a).toLocaleString())))})))},tr=vt.div`
441
441
  width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
442
442
  height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
443
443
  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
  `,ar=vt.div`
459
459
  display: flex;
460
460
  align-items: center;
461
- `,rr=({title:e,subtitle:t,status:n=an.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:d="secondary",nowrap:c=!1})=>{const p=di.useTheme(),u=[sn.Loading,sn.Disabled].includes(n)?an.Info:n,m=o?()=>dt.createElement(o,{size:l+2,fill:p.text[u]}):n===sn.Loading?()=>dt.createElement(Ha,{scale:.8}):()=>ao(u,p)?.({size:l+2});return dt.createElement(or,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&dt.createElement(ir,null,dt.createElement(m,null)),(!!e||!!t)&&dt.createElement(ar,null,!!e&&dt.createElement(hi,{size:l,family:d,color:p.text[u],nowrap:c},e),!!e&&!!t&&dt.createElement(nr,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&dt.createElement(hi,{size:l-2,family:d,color:p.text[`${u}_secondary`],nowrap:c},t)))},sr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=di.useTheme();return dt.createElement(Pi,{onClick:t,variant:n,...i},dt.createElement(Ke,{fill:"primary"===n?a.text.primary:a.text.info}),dt.createElement(hi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Lo.ADD))},lr=vt.button`
461
+ `,rr=({title:e,subtitle:t,status:n=an.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:d="secondary",nowrap:c=!1})=>{const p=di.useTheme(),u=[sn.Loading,sn.Disabled].includes(n)?an.Info:n,m=o?()=>dt.createElement(o,{size:l+2,fill:p.text[u]}):n===sn.Loading?()=>dt.createElement(Ha,{scale:.8}):()=>ao(u,p)?.({size:l+2});return dt.createElement(or,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&dt.createElement(ir,null,dt.createElement(m,null)),(!!e||!!t)&&dt.createElement(ar,null,!!e&&dt.createElement(hi,{size:l,family:d,color:p.text[u],nowrap:c},e),!!e&&!!t&&dt.createElement(nr,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&dt.createElement(hi,{size:l-2,family:d,color:p.text[`${u}_secondary`],nowrap:c},t)))},sr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=di.useTheme();return dt.createElement(Mi,{onClick:t,variant:n,...i},dt.createElement(Je,{fill:"primary"===n?a.text.primary:a.text.info}),dt.createElement(hi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Lo.ADD))},lr=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
- `,ur=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=Xi();return dt.createElement(pr,null,dt.createElement("pre",null,e),dt.createElement(cr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?dt.createElement(He,null):dt.createElement(Je,null)))},mr=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=di.useTheme();return dt.createElement(Pi,{onClick:t,variant:n,...o},dt.createElement(Xe,{fill:"primary"===n?i.text.primary:i.text.info}),dt.createElement(hi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Lo.EDIT))},hr=({onClick:e})=>dt.createElement(dc,{type:an.Default,icon:We,message:Fo.QUICK_BACK_TO_SUMMARY,action:{label:Fo.GO_TO_SUMMARY,onClick:e}}),gr=vt(hi)`
503
+ `,ur=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=Xi();return dt.createElement(pr,null,dt.createElement("pre",null,e),dt.createElement(cr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?dt.createElement(He,null):dt.createElement(Ke,null)))},mr=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=di.useTheme();return dt.createElement(Mi,{onClick:t,variant:n,...o},dt.createElement(Xe,{fill:"primary"===n?i.text.primary:i.text.info}),dt.createElement(hi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Lo.EDIT))},hr=({onClick:e})=>dt.createElement(dc,{type:an.Default,icon:We,message:Fo.QUICK_BACK_TO_SUMMARY,action:{label:Fo.GO_TO_SUMMARY,onClick:e}}),gr=vt(hi)`
504
504
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
505
505
  white-space: nowrap;
506
506
  overflow-x: auto;
@@ -570,7 +570,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
570
570
  `,Dr=vt(hi)`
571
571
  font-size: 10px;
572
572
  color: ${({theme:e})=>e.text.grey};
573
- `,Nr=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:d,faded:c,bgColor:p,bgColorHover:u,monitors:m,monitorsWithLabels:h,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:f,isChecked:$,isLoading:y,onCheckboxChange:b}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...E})=>{const S=di.useTheme(),[C,T]=ut(k||!1),[A,D]=ut(0),N=ht(null),I=ht(null),O=ht(null);return mt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;D(e-((x?125:85)+t))}},[x]),dt.createElement(Cr,{ref:N,$status:d,$faded:c,$bgColor:p,$bgColorHover:u,$withClick:!!o,onClick:o,...E},dt.createElement(ga,{$gap:8},dt.createElement(ga,{$gap:16},y?dt.createElement(Ha,null):x?dt.createElement(Da,{value:$,onChange:b,disabled:f}):null,r?.length||l?.length?dt.createElement(kr,{icons:r,iconSrcs:l,status:d,id:`${e}-${t}`}):a||s?dt.createElement(yr,{icon:a,src:s,status:d}):null),dt.createElement(xa,{$gap:4},e&&dt.createElement(xr,{maxWidth:A,text:e,textSize:14}),dt.createElement(ga,{$gap:4},t&&dt.createElement(xr,{maxWidth:A-(O.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),m&&m.length>0&&dt.createElement(ga,{$gap:4,ref:O},t&&dt.createElement(Dr,null,"•"),dt.createElement(Er,{monitors:m,withLabels:h,size:10}))),g&&g.length>0?dt.createElement(ga,{$gap:4},g?.map((e,t)=>dt.createElement(ct,{key:`componentsUnderTitles-${t}`},e))):null),dt.createElement(Tr,{ref:I},!!n&&dt.createElement(Sr,null,dt.createElement(Ar,{size:14,family:"secondary"},n)),i&&i(),w&&dt.createElement(ct,null,dt.createElement(nr,{orientation:"vertical",length:"16px",margin:"0 2px"}),dt.createElement(cr,{onClick:()=>T(e=>!e)},dt.createElement(Ya,{extend:C}))))),C&&v&&dt.createElement(xa,null,dt.createElement(nr,{margin:"16px 0"}),v()))},Ir=vt(ga)`
573
+ `,Nr=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:d,faded:c,bgColor:p,bgColorHover:u,monitors:m,monitorsWithLabels:h,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:f,isChecked:$,isLoading:y,onCheckboxChange:b}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...E})=>{const S=di.useTheme(),[C,T]=ut(k||!1),[A,D]=ut(0),N=ht(null),I=ht(null),O=ht(null);return mt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;D(e-((x?125:85)+t))}},[x]),dt.createElement(Cr,{ref:N,$status:d,$faded:c,$bgColor:p,$bgColorHover:u,$withClick:!!o,onClick:o,...E},dt.createElement(ga,{$gap:8},dt.createElement(ga,{$gap:16},y?dt.createElement(Ha,null):x?dt.createElement(Da,{value:$,onChange:b,disabled:f}):null,r?.length||l?.length?dt.createElement(kr,{icons:r,iconSrcs:l,status:d,id:`${e}-${t}`}):a||s?dt.createElement(yr,{icon:a,src:s,status:d}):null),dt.createElement(xa,{$gap:4},e&&dt.createElement(xr,{maxWidth:A,text:e,textSize:14}),dt.createElement(ga,{$gap:4},t&&dt.createElement(xr,{maxWidth:A-(O.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),m&&m.length>0&&dt.createElement(ga,{$gap:4,ref:O},t&&dt.createElement(Dr,null,"•"),dt.createElement(Er,{monitors:m,withLabels:h,size:10}))),g&&g.length>0?dt.createElement(ga,{$gap:4},g?.map((e,t)=>dt.createElement(ct,{key:`componentsUnderTitles-${t}`},e))):null),dt.createElement(Tr,{ref:I},!!n&&dt.createElement(Sr,null,dt.createElement(Ar,{size:14,family:"secondary"},n)),i&&i(),w&&dt.createElement(ct,null,dt.createElement(nr,{orientation:"vertical",length:"16px",margin:"0 2px"}),dt.createElement(cr,{onClick:()=>T(e=>!e)},dt.createElement(Ga,{extend:C}))))),C&&v&&dt.createElement(xa,null,dt.createElement(nr,{margin:"16px 0"}),v()))},Ir=vt(ga)`
574
574
  width: 100%;
575
575
  justify-content: space-between;
576
576
  `,Or=vt(hi)`
@@ -589,7 +589,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
589
589
  text-align: right;
590
590
  `,Fr=({title:e,subTitle:t,tooltip:n,value:o})=>dt.createElement(Ir,null,dt.createElement(xa,{$gap:4},dt.createElement(Ca,{text:n||""},e&&dt.createElement(Or,null,e),t&&dt.createElement(_r,null,t))),dt.createElement(zr,null,o?.status?dt.createElement(rr,{status:"transitioning"===o.status?sn.Loading:o.status,title:o.text||o.status,withBorder:!0,withIcon:!0}):dt.createElement(Rr,null,o?.text||"-"))),Lr=vt(xa)`
591
591
  width: 100%;
592
- `,Pr=({containerName:e,actualDevices:t,started:n,ready:o,instrumentationInstances:i})=>{const a=pt(()=>{const e=[];return n?.name&&e.push(dt.createElement(rr,{status:xo(n.value)?So(n.value)?an.Success:an.Error:an.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),o?.name&&e.push(dt.createElement(rr,{status:xo(o.value)?So(o.value)?an.Success:an.Error:an.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),e},[n?.name,n?.value,o?.name,o?.value]);return dt.createElement(Nr,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>dt.createElement(rr,{status:an.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>dt.createElement(Lr,{$gap:24},i.map((e,t)=>dt.createElement(Lr,{key:`process-${t}`,$gap:8},dt.createElement(Fr,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===an.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>dt.createElement(Fr,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})};var Mr={nodeWidth:295,nodeHeight:80,framePadding:12};const Br=vt(xa)`
592
+ `,Mr=({containerName:e,actualDevices:t,started:n,ready:o,instrumentationInstances:i})=>{const a=pt(()=>{const e=[];return n?.name&&e.push(dt.createElement(rr,{status:xo(n.value)?So(n.value)?an.Success:an.Error:an.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),o?.name&&e.push(dt.createElement(rr,{status:xo(o.value)?So(o.value)?an.Success:an.Error:an.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),e},[n?.name,n?.value,o?.name,o?.value]);return dt.createElement(Nr,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>dt.createElement(rr,{status:an.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>dt.createElement(Lr,{$gap:24},i.map((e,t)=>dt.createElement(Lr,{key:`process-${t}`,$gap:8},dt.createElement(Fr,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===an.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>dt.createElement(Fr,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})};var Pr={nodeWidth:295,nodeHeight:80,framePadding:12};const Br=vt(xa)`
593
593
  align-items: center !important;
594
594
  justify-content: center !important;
595
595
  align-self: stretch;
@@ -617,19 +617,19 @@ 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
- `,Vr=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=Jo(),r=e.split("-")[0],s=a({entityType:r});return dt.createElement(Br,{$nodeWidth:n,className:"nowheel nodrag"},s?dt.createElement(ct,null,dt.createElement(jr,null,dt.createElement(Ha,null),dt.createElement(Ur,{family:"secondary"},"adding ",r,"s")),dt.createElement(Wr,null,"Just a few more seconds...")):dt.createElement(ct,null,dt.createElement(jr,null,dt.createElement(Ke,null),dt.createElement(Ur,{family:"secondary",decoration:"underline"},o)),dt.createElement(Wr,null,i)),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Vr.displayName=Vr.name;const Hr=vt.div`
620
+ `,Vr=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=Ko(),r=e.split("-")[0],s=a({entityType:r});return dt.createElement(Br,{$nodeWidth:n,className:"nowheel nodrag"},s?dt.createElement(ct,null,dt.createElement(jr,null,dt.createElement(Ha,null),dt.createElement(Ur,{family:"secondary"},"adding ",r,"s")),dt.createElement(Wr,null,"Just a few more seconds...")):dt.createElement(ct,null,dt.createElement(jr,null,dt.createElement(Je,null),dt.createElement(Ur,{family:"secondary",decoration:"underline"},o)),dt.createElement(Wr,null,i)),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Vr.displayName=Vr.name;const Hr=vt.div`
621
621
  width: ${({$nodeWidth:e})=>`${e}px`};
622
- `,qr=ft(({id:e,data:t})=>{const n=di.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}=Jo(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=Xo(),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(Hr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},dt.createElement(Nr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=r?ao(r,n):$?ao(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(Ha,null):e?dt.createElement(Ca,{text:t},dt.createElement(e,{size:20})):o?dt.createElement(Ha,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"}}))});qr.displayName=qr.name;const Yr=vt.div`
622
+ `,qr=ft(({id:e,data:t})=>{const n=di.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}=Ko(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=Xo(),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(Hr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},dt.createElement(Nr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=r?ao(r,n):$?ao(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(Ha,null):e?dt.createElement(Ca,{text:t},dt.createElement(e,{size:20})):o?dt.createElement(Ha,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"}}))});qr.displayName=qr.name;const Gr=vt.div`
623
623
  width: ${({$nodeWidth:e})=>`${e}px`};
624
624
  height: ${({$nodeHeight:e})=>`${e}px`};
625
625
  opacity: 0;
626
- `,Gr=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return dt.createElement(Yr,{$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"}}))});Gr.displayName=Gr.name;const Kr=vt.div`
626
+ `,Yr=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"}}))});Yr.displayName=Yr.name;const Jr=vt.div`
627
627
  width: ${({$nodeWidth:e})=>e}px;
628
628
  height: ${({$nodeHeight:e})=>e}px;
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(Kr,{$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:Xr}=Mr,Qr=vt.div`
632
+ `,Kr=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return dt.createElement(Jr,{$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:Xr}=Pr,Qr=vt.div`
633
633
  position: relative;
634
634
  z-index: 1;
635
635
  width: fit-content;
@@ -656,7 +656,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
656
656
  justify-content: center;
657
657
 
658
658
  pointer-events: none;
659
- `,ts=ft(({data:e,...t})=>{const{nodeHeight:n,items:o,onScroll:i}=e,{onClickNode:a}=Gi(),r=ht(null),[s,l]=ut(!1);return mt(()=>{const e=e=>{e.stopPropagation();const{clientHeight:t,scrollHeight:n,scrollTop:o}=e.target||{clientHeight:0,scrollHeight:0,scrollTop:0};i&&i({clientHeight:t,scrollHeight:n,scrollTop:o}),l(n-o<=t)},{current:t}=r;return t?.addEventListener("scroll",e),()=>t?.removeEventListener("scroll",e)},[i]),dt.createElement(Qr,{ref:r,$nodeHeight:n,className:"nowheel nodrag"},o.map(e=>dt.createElement(Zr,{key:e.id,onClick:t=>{t.stopPropagation(),a(t,e)}},dt.createElement(qr,{...t,type:un.Base,id:e.id,data:e.data}))),dt.createElement(es,{$hide:s}))});ts.displayName=ts.name;const ns=vt(hi)`
659
+ `,ts=ft(({data:e,...t})=>{const{nodeHeight:n,items:o,onScroll:i}=e,{onClickNode:a}=Yi(),r=ht(null),[s,l]=ut(!1);return mt(()=>{const e=e=>{e.stopPropagation();const{clientHeight:t,scrollHeight:n,scrollTop:o}=e.target||{clientHeight:0,scrollHeight:0,scrollTop:0};i&&i({clientHeight:t,scrollHeight:n,scrollTop:o}),l(n-o<=t)},{current:t}=r;return t?.addEventListener("scroll",e),()=>t?.removeEventListener("scroll",e)},[i]),dt.createElement(Qr,{ref:r,$nodeHeight:n,className:"nowheel nodrag"},o.map(e=>dt.createElement(Zr,{key:e.id,onClick:t=>{t.stopPropagation(),a(t,e)}},dt.createElement(qr,{...t,type:un.Base,id:e.id,data:e.data}))),dt.createElement(es,{$hide:s}))});ts.displayName=ts.name;const ns=vt(hi)`
660
660
  color: ${({theme:e})=>e.text.grey};
661
661
  `,os=({icon:e,title:t,badge:n,badgeTooltip:o,loading:i})=>dt.createElement(ga,{$gap:6},e&&dt.createElement(e,null),dt.createElement(ns,{size:14},t),void 0!==n&&dt.createElement(Ca,{text:o},dt.createElement(zi,{label:n})),i&&dt.createElement(Ha,null)),is=vt.div`
662
662
  position: relative;
@@ -670,7 +670,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
670
670
  margin-left: 16px;
671
671
  `,rs=vt(ga)`
672
672
  margin-left: auto;
673
- `,ss=vt(Pi)`
673
+ `,ss=vt(Mi)`
674
674
  width: 24px;
675
675
  height: 24px;
676
676
  padding: 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
- `,ds=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}=qo(),g=d===en.Source&&c,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=Xo(),{isThisPending:y}=Jo(),[b,w]=pt(()=>{let e=0;return Object.values(f).forEach(t=>{e+=t.length}),[0!==e,e]},[f]);return dt.createElement(is,{$nodeWidth:n,className:"nowheel nodrag"},d===en.Source&&dt.createElement(as,null,dt.createElement(Da,{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(os,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),dt.createElement(cs,{entityType:d}),g&&dt.createElement(ls,{percent:x}))}),cs=ft(({entityType:e})=>{const t=di.useTheme(),{onClickNode:n}=Gi();return dt.createElement(rs,null,dt.createElement(ss,{"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})))});ds.displayName=ds.name,cs.displayName=cs.name;const ps=vt(xa)`
686
+ `,ds=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}=qo(),g=d===en.Source&&c,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=Xo(),{isThisPending:y}=Ko(),[b,w]=pt(()=>{let e=0;return Object.values(f).forEach(t=>{e+=t.length}),[0!==e,e]},[f]);return dt.createElement(is,{$nodeWidth:n,className:"nowheel nodrag"},d===en.Source&&dt.createElement(as,null,dt.createElement(Da,{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(os,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),dt.createElement(cs,{entityType:d}),g&&dt.createElement(ls,{percent:x}))}),cs=ft(({entityType:e})=>{const t=di.useTheme(),{onClickNode:n}=Yi();return dt.createElement(rs,null,dt.createElement(ss,{"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})))});ds.displayName=ds.name,cs.displayName=cs.name;const ps=vt(xa)`
687
687
  max-width: 300px;
688
688
  padding: 12px;
689
689
  border-radius: 12px;
@@ -775,15 +775,15 @@ 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
- `,Is={[un.Header]:ds,[un.Add]:Vr,[un.Base]:qr,[un.Edged]:Gr,[un.Frame]:Jr,[un.Scroll]:ts,[un.Skeleton]:As,[un.MapItem]:bs,[un.NoData]:us},Os={[mn.Labeled]:hs},_s=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=Gi(),{setActiveNodeType:s,setActiveNodeId:l}=Bt();return dt.createElement(Ds,null,dt.createElement(_t,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Is,edges:t,edgeTypes:Os,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)}},dt.createElement(Ns,null,dt.createElement(zt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},zs=vt.div`
778
+ `,Is={[un.Header]:ds,[un.Add]:Vr,[un.Base]:qr,[un.Edged]:Yr,[un.Frame]:Kr,[un.Scroll]:ts,[un.Skeleton]:As,[un.MapItem]:bs,[un.NoData]:us},Os={[mn.Labeled]:hs},_s=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=Yi(),{setActiveNodeType:s,setActiveNodeId:l}=Bt();return dt.createElement(Ds,null,dt.createElement(_t,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Is,edges:t,edgeTypes:Os,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)}},dt.createElement(Ns,null,dt.createElement(zt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},zs=vt.div`
779
779
  position: relative;
780
- `,Rs=({defaultLanguage:e=Qt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=Go(),{formData:i,handleFormChange:a,resetFormData:r}=Hi({language:e,version:t}),[s,l]=ut(!1),d=()=>{l(!1),r()};return dt.createElement(zs,null,dt.createElement(cr,{tooltip:Fo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},dt.createElement(Xe,null)),dt.createElement(uc,{flipX:!0,clientX:36,isOpen:s,onClose:d,onSave:()=>{!i.version||yo(i.version)?(n(i),d()):o({type:an.Warning,message:Ro.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),d()},title:Fo.OVERRIDE_RUNTIME_DETAILS,warning:Fo.OVERRIDE_RUNTIME_WARNING},dt.createElement(id,{title:Fo.LANGUAGE,options:Oo,value:Oo.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),dt.createElement(Gl,{title:Fo.RUNTIME_VERSION,placeholder:Fo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Fs=vt(ga)`
780
+ `,Rs=({defaultLanguage:e=Qt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=Yo(),{formData:i,handleFormChange:a,resetFormData:r}=Hi({language:e,version:t}),[s,l]=ut(!1),d=()=>{l(!1),r()};return dt.createElement(zs,null,dt.createElement(cr,{tooltip:Fo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},dt.createElement(Xe,null)),dt.createElement(uc,{flipX:!0,clientX:36,isOpen:s,onClose:d,onSave:()=>{!i.version||yo(i.version)?(n(i),d()):o({type:an.Warning,message:Ro.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),d()},title:Fo.OVERRIDE_RUNTIME_DETAILS,warning:Fo.OVERRIDE_RUNTIME_WARNING},dt.createElement(id,{title:Fo.LANGUAGE,options:Oo,value:Oo.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),dt.createElement(Yl,{title:Fo.RUNTIME_VERSION,placeholder:Fo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Fs=vt(ga)`
781
781
  width: 100%;
782
782
  justify-content: center;
783
- `,Ls=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=di.useTheme(),d=i?an.Success:a?an.Info:an.Warning,c=i?rn.INSTRUMENTED:a?rn.NOT_INSTRUMENTED:rn.INSTRUMENTING;return dt.createElement(Nr,{title:e,subTitle:`${t?Io[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:Hn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>dt.createElement(Fs,null,dt.createElement(hi,{size:12,family:"secondary",color:l.text.info},bo(a)))},renderActions:()=>dt.createElement(dt.Fragment,null,dt.createElement(rr,{status:d,title:c,subtitle:r||void 0,withIcon:!0,withBorder:!0}),o&&dt.createElement(rr,{status:an.Default,forceIcon:Qe,title:Fo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&dt.createElement(Rs,{defaultLanguage:t,defaultVersion:n,handleSave:t=>s({...t,containerName:e})}))})},Ps=vt.tr`
783
+ `,Ls=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=di.useTheme(),d=i?an.Success:a?an.Info:an.Warning,c=i?rn.INSTRUMENTED:a?rn.NOT_INSTRUMENTED:rn.INSTRUMENTING;return dt.createElement(Nr,{title:e,subTitle:`${t?Io[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:Hn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>dt.createElement(Fs,null,dt.createElement(hi,{size:12,family:"secondary",color:l.text.info},bo(a)))},renderActions:()=>dt.createElement(dt.Fragment,null,dt.createElement(rr,{status:d,title:c,subtitle:r||void 0,withIcon:!0,withBorder:!0}),o&&dt.createElement(rr,{status:an.Default,forceIcon:Qe,title:Fo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&dt.createElement(Rs,{defaultLanguage:t,defaultVersion:n,handleSave:t=>s({...t,containerName:e})}))})},Ms=vt.tr`
784
784
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
785
785
  opacity: ${({$faded:e})=>e?.5:1};
786
- `,Ms=vt.td`
786
+ `,Ps=vt.td`
787
787
  position: relative;
788
788
  width: fit-content;
789
789
  padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
@@ -813,7 +813,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
813
813
  height: ${({$height:e})=>e}px;
814
814
  border-radius: 16px;
815
815
  background-color: ${({theme:e,$hovered:t,$status:n})=>t?n?e.text[n]+di.opacity.hex["020"]:e.colors.majestic_blue+di.opacity.hex["030"]:n?e.text[n]+di.opacity.hex["010"]:e.colors.secondary+di.opacity.hex["005"]};
816
- `,Us=({index:e,columns:t,cells:n,onClick:o,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=Ji(),[d,c]=ut(!1);return dt.createElement(Ps,{ref:r,onMouseEnter:()=>!!o&&c(!0),onMouseLeave:()=>!!o&&c(!1),onClick:()=>!!o&&o(),$withHover:!!o,$faded:a},t.map(({key:t},o)=>{const a=n.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:c,withTooltip:p,icon:u,component:m}=a;return dt.createElement(Ms,{key:`table-row-${t}-${r}-${e}-${o}`,$isFirst:0===o},u?dt.createElement(yr,{icon:u}):m?dt.createElement(m,null):dt.createElement(Ca,{text:p&&r?String(r):""},dt.createElement(Bs,{$color:c},mo(r)?"-":r)),0===o&&dt.createElement(js,{$height:s,$width:l,$top:s*e,$hovered:d,$status:i}))}))},Ws=vt.div`
816
+ `,Us=({index:e,columns:t,cells:n,onClick:o,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=Ki(),[d,c]=ut(!1);return dt.createElement(Ms,{ref:r,onMouseEnter:()=>!!o&&c(!0),onMouseLeave:()=>!!o&&c(!1),onClick:()=>!!o&&o(),$withHover:!!o,$faded:a},t.map(({key:t},o)=>{const a=n.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:c,withTooltip:p,icon:u,component:m}=a;return dt.createElement(Ps,{key:`table-row-${t}-${r}-${e}-${o}`,$isFirst:0===o},u?dt.createElement(yr,{icon:u}):m?dt.createElement(m,null):dt.createElement(Ca,{text:p&&r?String(r):""},dt.createElement(Bs,{$color:c},mo(r)?"-":r)),0===o&&dt.createElement(js,{$height:s,$width:l,$top:s*e,$hovered:d,$status:i}))}))},Ws=vt.div`
817
817
  width: 100%;
818
818
  `,Vs=vt.table`
819
819
  position: relative;
@@ -831,21 +831,21 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
831
831
  border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
832
832
 
833
833
  padding: 8px;
834
- `,Ys=vt(ga)`
834
+ `,Gs=vt(ga)`
835
835
  cursor: pointer;
836
836
  &:hover {
837
837
  * {
838
838
  color: ${({theme:e})=>e.text.secondary};
839
839
  }
840
840
  }
841
- `,Gs=vt(hi)`
841
+ `,Ys=vt(hi)`
842
842
  color: ${({theme:e})=>e.text.darker_grey};
843
843
  font-family: ${({theme:e})=>e.font_family.secondary};
844
844
  text-transform: uppercase;
845
845
  font-size: 12px;
846
846
  font-weight: 500;
847
847
  text-wrap: nowrap;
848
- `,Ks=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(Us,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return dt.createElement(Ws,null,dt.createElement(Vs,null,dt.createElement(Hs,null,dt.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>dt.createElement(qs,{key:`column-${e}`},n?dt.createElement(Ys,{onClick:()=>r(e)},dt.createElement(Ze,null),dt.createElement(Gs,null,t)):dt.createElement(Gs,null,t))))),dt.createElement(Ks,null,s)))};var Xs;!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"}(Xs||(Xs={}));const Qs=vt.div`
848
+ `,Js=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(Us,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return dt.createElement(Ws,null,dt.createElement(Vs,null,dt.createElement(Hs,null,dt.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>dt.createElement(qs,{key:`column-${e}`},n?dt.createElement(Gs,{onClick:()=>r(e)},dt.createElement(Ze,null),dt.createElement(Ys,null,t)):dt.createElement(Ys,null,t))))),dt.createElement(Js,null,s)))};var Xs;!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"}(Xs||(Xs={}));const Qs=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
  `,tl=vt(hi)`
863
863
  font-size: 12px;
864
864
  white-space: pre-wrap;
865
- `,nl=({data:e})=>dt.createElement(Qs,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>dt.createElement(Zs,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Xs.Code,Xs.Table].includes(e)?"inherit":e&&[Xs.Loader,Xs.Divider,Xs.CopyText].includes(e)?"100%":"unset"},dt.createElement(Ca,{text:o,withIcon:!0},dt.createElement(ga,{$alignItems:"center",$gap:4},n&&dt.createElement(n,{size:14}),!!t&&dt.createElement(el,{transform:"capitalize"},t))),dt.createElement(ol,{type:e,value:i})))),ol=({type:e,value:t})=>{const n=di.useTheme();switch(e){case Xs.Divider:return dt.createElement(nr,{length:"100%",margin:"0"});case Xs.Loader:return dt.createElement(fa,null,dt.createElement(Ha,{scale:1.2}));case Xs.Monitors:return dt.createElement(Er,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Xs.Badge:{const{label:e,filled:n,...o}=co(t,{label:"-",filled:!1});return dt.createElement(zi,{label:e,filled:n,...o})}case Xs.Code:{const{language:e,code:n,...o}=co(t,{language:"",code:""});return dt.createElement(Ma,{language:e,code:n,...o})}case Xs.Table:{const{columns:e,rows:n,...o}=co(t,{columns:[],rows:[{status:void 0,cells:[]}]});return dt.createElement(Js,{columns:e,rows:n,...o})}case Xs.ActiveStatus:return dt.createElement(rr,{status:"true"==t?an.Success:an.Error,title:"true"==t?Fo.ENABLED:Fo.DISABLED,size:10,withIcon:!0,withBorder:!0});case Xs.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return dt.createElement(ur,{value:e})}default:return dt.createElement(tl,null,Co("string"==typeof t?t||"-":""))}},il=vt.div`
865
+ `,nl=({data:e})=>dt.createElement(Qs,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>dt.createElement(Zs,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Xs.Code,Xs.Table].includes(e)?"inherit":e&&[Xs.Loader,Xs.Divider,Xs.CopyText].includes(e)?"100%":"unset"},dt.createElement(Ca,{text:o,withIcon:!0},dt.createElement(ga,{$alignItems:"center",$gap:4},n&&dt.createElement(n,{size:14}),!!t&&dt.createElement(el,{transform:"capitalize"},t))),dt.createElement(ol,{type:e,value:i})))),ol=({type:e,value:t})=>{const n=di.useTheme();switch(e){case Xs.Divider:return dt.createElement(nr,{length:"100%",margin:"0"});case Xs.Loader:return dt.createElement(fa,null,dt.createElement(Ha,{scale:1.2}));case Xs.Monitors:return dt.createElement(Er,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Xs.Badge:{const{label:e,filled:n,...o}=co(t,{label:"-",filled:!1});return dt.createElement(zi,{label:e,filled:n,...o})}case Xs.Code:{const{language:e,code:n,...o}=co(t,{language:"",code:""});return dt.createElement(Pa,{language:e,code:n,...o})}case Xs.Table:{const{columns:e,rows:n,...o}=co(t,{columns:[],rows:[{status:void 0,cells:[]}]});return dt.createElement(Ks,{columns:e,rows:n,...o})}case Xs.ActiveStatus:return dt.createElement(rr,{status:"true"==t?an.Success:an.Error,title:"true"==t?Fo.ENABLED:Fo.DISABLED,size:10,withIcon:!0,withBorder:!0});case Xs.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return dt.createElement(ur,{value:e})}default:return dt.createElement(tl,null,Co("string"==typeof t?t||"-":""))}},il=vt.div`
866
866
  display: flex;
867
867
  flex-direction: column;
868
868
  align-items: flex-start;
@@ -891,7 +891,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
891
891
  `,ll=vt(ga)`
892
892
  margin-left: auto;
893
893
  gap: 8px;
894
- `,dl=({title:e="Details",titleBadge:t,titleIcon:n,description:o,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[d,c]=ut(r),[p,u]=ut(!1);return dt.createElement(il,{$hovered:p},e||n||o||i?dt.createElement(al,{$clickable:a||!1,onClick:()=>a&&c(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},dt.createElement(ga,null,dt.createElement(ga,{$alignItems:"center",$gap:8},n&&dt.createElement(ga,{$alignItems:"center"},dt.createElement(n,{size:20})),!!e&&dt.createElement(rl,{transform:"capitalize"},e),t===sn.Loading?dt.createElement(Ha,null):void 0!==t&&dt.createElement(zi,{label:t})),(!!i||a)&&dt.createElement(ll,null,"function"==typeof i?dt.createElement(i,null):i,a&&dt.createElement(Ya,{extend:d}))),!!o&&dt.createElement(sl,null,o)):null,(!a||a&&d)&&(l||dt.createElement(nl,{data:s})))},cl=vt.div`
894
+ `,dl=({title:e="Details",titleBadge:t,titleIcon:n,description:o,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[d,c]=ut(r),[p,u]=ut(!1);return dt.createElement(il,{$hovered:p},e||n||o||i?dt.createElement(al,{$clickable:a||!1,onClick:()=>a&&c(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},dt.createElement(ga,null,dt.createElement(ga,{$alignItems:"center",$gap:8},n&&dt.createElement(ga,{$alignItems:"center"},dt.createElement(n,{size:20})),!!e&&dt.createElement(rl,{transform:"capitalize"},e),t===sn.Loading?dt.createElement(Ha,null):void 0!==t&&dt.createElement(zi,{label:t})),(!!i||a)&&dt.createElement(ll,null,"function"==typeof i?dt.createElement(i,null):i,a&&dt.createElement(Ga,{extend:d}))),!!o&&dt.createElement(sl,null,o)):null,(!a||a&&d)&&(l||dt.createElement(nl,{data:s})))},cl=vt.div`
895
895
  visibility: hidden;
896
896
  `,pl=vt(ga)`
897
897
  align-self: stretch;
@@ -914,7 +914,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
914
914
  `,ml=vt(hi)`
915
915
  font-size: 10px;
916
916
  color: ${({theme:e})=>e.text.grey};
917
- `,hl=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=di.useTheme(),[s,l]=ut(0),d=ht(null),c=ht(null);return mt(()=>{if(d.current){const e=d.current.clientWidth,t=c.current?.clientWidth||0;l(e-(85+t))}},[]),dt.createElement(pl,{ref:d,$gap:8,$withClick:!!i,onClick:i},dt.createElement(kr,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&dt.createElement(xr,{maxWidth:s/2,text:e,textSize:14}),e&&t&&dt.createElement(ml,null,"•"),t&&dt.createElement(xr,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),dt.createElement(ul,{ref:c},a&&dt.createElement(dt.Fragment,null,dt.createElement(nr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},gl=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===en.Source?"uninstrument":"delete";return dt.createElement(ep,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${n?` ${n}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:an.Warning,title:`You're about to ${s} the last ${o||n}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},xl=vt(Pi)`
917
+ `,hl=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=di.useTheme(),[s,l]=ut(0),d=ht(null),c=ht(null);return mt(()=>{if(d.current){const e=d.current.clientWidth,t=c.current?.clientWidth||0;l(e-(85+t))}},[]),dt.createElement(pl,{ref:d,$gap:8,$withClick:!!i,onClick:i},dt.createElement(kr,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&dt.createElement(xr,{maxWidth:s/2,text:e,textSize:14}),e&&t&&dt.createElement(ml,null,"•"),t&&dt.createElement(xr,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),dt.createElement(ul,{ref:c},a&&dt.createElement(dt.Fragment,null,dt.createElement(nr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},gl=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===en.Source?"uninstrument":"delete";return dt.createElement(ep,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${n?` ${n}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:an.Warning,title:`You're about to ${s} the last ${o||n}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},xl=vt(Mi)`
918
918
  display: flex;
919
919
  align-items: center;
920
920
  justify-content: center;
@@ -952,9 +952,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
952
952
  overflow: hidden;
953
953
  white-space: nowrap;
954
954
  text-overflow: ellipsis;
955
- `,Sl=vt(Pi)`
955
+ `,Sl=vt(Mi)`
956
956
  gap: 8px;
957
- `,Cl=vt(Pi)``,Tl=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:d})=>dt.createElement(wl,null,dt.createElement(kl,null,dt.createElement(vl,null,n?.length||o?.length?dt.createElement(kr,{icons:n,iconSrcs:o,id:`drawer-header-${i}`}):null,("function"==typeof r?dt.createElement(r,null):r||null)||dt.createElement(Ca,{text:a||i,withIcon:!!a},i&&dt.createElement(El,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),dt.createElement(vl,{$gap:2},s,l.map((e,t)=>dt.createElement(Sl,{key:`header-action-button-${t}`,...e})),dt.createElement(Cl,{"data-id":"drawer-close",variant:"secondary",onClick:e},dt.createElement(tt,{size:12})))),dt.createElement(bl,{tabs:d,hideBorder:!0})),Al=vt.div`
957
+ `,Cl=vt(Mi)``,Tl=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:d})=>dt.createElement(wl,null,dt.createElement(kl,null,dt.createElement(vl,null,n?.length||o?.length?dt.createElement(kr,{icons:n,iconSrcs:o,id:`drawer-header-${i}`}):null,("function"==typeof r?dt.createElement(r,null):r||null)||dt.createElement(Ca,{text:a||i,withIcon:!!a},i&&dt.createElement(El,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),dt.createElement(vl,{$gap:2},s,l.map((e,t)=>dt.createElement(Sl,{key:`header-action-button-${t}`,...e})),dt.createElement(Cl,{"data-id":"drawer-close",variant:"secondary",onClick:e},dt.createElement(tt,{size:12})))),dt.createElement(bl,{tabs:d,hideBorder:!0})),Al=vt.div`
958
958
  display: flex;
959
959
  justify-content: space-between;
960
960
  gap: 8px;
@@ -968,7 +968,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
968
968
  margin: 0 auto;
969
969
  `,Il=vt(ga)`
970
970
  margin-left: auto;
971
- `,Ol=vt(Pi)`
971
+ `,Ol=vt(Mi)`
972
972
  min-width: 140px;
973
973
  font-size: 14px;
974
974
  `,_l=({isOpen:e,leftButtons:t=[],centerButtons:n=[],rightButtons:o=[]})=>{const i=ha({container:Al,animateIn:di.animations.slide.in.bottom,animateOut:di.animations.slide.out.bottom});return dt.createElement(i,{enter:e},dt.createElement(Dl,null,t.map((e,t)=>dt.createElement(Ol,{key:`footer-left-button-${t}`,...e}))),dt.createElement(Nl,null,n.map((e,t)=>dt.createElement(Ol,{key:`footer-center-button-${t}`,...e}))),dt.createElement(Il,null,o.map((e,t)=>dt.createElement(Ol,{key:`footer-right-button-${t}`,...e}))))},zl=vt.div`
@@ -989,12 +989,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
989
989
  flex-grow: 1;
990
990
  padding: 24px 32px;
991
991
  overflow-y: auto;
992
- `,Ll=({isOpen:e,onClose:t,closeOnEscape:n=!0,position:o="right",width:i="300px",children:a,header:r,footer:s})=>{oa({key:"Escape",active:e&&n},()=>t());const l=ha({container:zl,animateIn:di.animations.slide.in[o],animateOut:di.animations.slide.out[o]});return e?Rt.createPortal(dt.createElement(dt.Fragment,null,dt.createElement(ya,{hidden:!e,onClick:t}),dt.createElement(l,{"data-id":"drawer",enter:e,$position:o,$width:i},dt.createElement(Rl,null,dt.createElement(Tl,{onClose:t,width:i,...r}),dt.createElement(Fl,null,a),dt.createElement(_l,{...s})))),document.body):null},Pl=vt.div`
992
+ `,Ll=({isOpen:e,onClose:t,closeOnEscape:n=!0,position:o="right",width:i="300px",children:a,header:r,footer:s})=>{oa({key:"Escape",active:e&&n},()=>t());const l=ha({container:zl,animateIn:di.animations.slide.in[o],animateOut:di.animations.slide.out[o]});return e?Rt.createPortal(dt.createElement(dt.Fragment,null,dt.createElement(ya,{hidden:!e,onClick:t}),dt.createElement(l,{"data-id":"drawer",enter:e,$position:o,$width:i},dt.createElement(Rl,null,dt.createElement(Tl,{onClose:t,width:i,...r}),dt.createElement(Fl,null,a),dt.createElement(_l,{...s})))),document.body):null},Ml=vt.div`
993
993
  display: flex;
994
994
  align-items: center;
995
995
  gap: 6px;
996
996
  margin-bottom: 4px;
997
- `,Ml=vt(hi)`
997
+ `,Pl=vt(hi)`
998
998
  font-size: 14px;
999
999
  opacity: 0.8;
1000
1000
  line-height: 22px;
@@ -1006,7 +1006,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1006
1006
  font-size: 12px;
1007
1007
  color: ${({theme:e})=>e.text.darker_grey};
1008
1008
  opacity: 0.8;
1009
- `,jl=({title:e,required:t,tooltip:n,style:o,status:i})=>e?dt.createElement(Pl,{style:o},dt.createElement(Ca,{text:n,withIcon:!0},dt.createElement(Ml,{$status:i},e),!t&&dt.createElement(Bl,null,"(optional)"))):null,Ul=vt.div`
1009
+ `,jl=({title:e,required:t,tooltip:n,style:o,status:i})=>e?dt.createElement(Ml,{style:o},dt.createElement(Ca,{text:n,withIcon:!0},dt.createElement(Pl,{$status:i},e),!t&&dt.createElement(Bl,null,"(optional)"))):null,Ul=vt.div`
1010
1010
  display: flex;
1011
1011
  flex-direction: column;
1012
1012
  position: relative;
@@ -1072,7 +1072,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1072
1072
  margin-left: 12px;
1073
1073
  `,ql=vt(Hl)`
1074
1074
  cursor: pointer;
1075
- `,Yl=vt.button`
1075
+ `,Gl=vt.button`
1076
1076
  background-color: ${({theme:e})=>e.colors.primary};
1077
1077
  border: none;
1078
1078
  color: ${({theme:e})=>e.text.secondary};
@@ -1087,11 +1087,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1087
1087
  background-color: ${({theme:e})=>e.colors.border};
1088
1088
  cursor: not-allowed;
1089
1089
  }
1090
- `,Gl=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:d,type:c=on.Text,name:p,status:u,...m})=>{const h=di.useTheme(),g=c===on.Password,[x,f]=ut(!1);return dt.createElement(Ul,null,dt.createElement(jl,{title:a,required:s,tooltip:r,status:u}),dt.createElement(Wl,{$disabled:m.disabled,$hasError:o||!!i,$isActive:!!m.autoFocus,$status:u},g?dt.createElement(ql,{onClick:()=>f(e=>!e)},x?dt.createElement(nt,{size:14,fill:h.text.grey}):dt.createElement(ot,{size:14,fill:h.text.grey})):e?dt.createElement(Hl,null,dt.createElement(e,{size:14,fill:h.text.grey})):null,dt.createElement(Vl,{"data-id":p,type:x||c===on.Number?on.Text:c,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),c===on.Number&&(e.target.value=Eo(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...m}),t&&n&&dt.createElement(Yl,{onClick:n,disabled:m.disabled},t)),!!i&&dt.createElement(fi,null,i))},Kl=vt.div`
1090
+ `,Yl=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:d,type:c=on.Text,name:p,status:u,...m})=>{const h=di.useTheme(),g=c===on.Password,[x,f]=ut(!1);return dt.createElement(Ul,null,dt.createElement(jl,{title:a,required:s,tooltip:r,status:u}),dt.createElement(Wl,{$disabled:m.disabled,$hasError:o||!!i,$isActive:!!m.autoFocus,$status:u},g?dt.createElement(ql,{onClick:()=>f(e=>!e)},x?dt.createElement(nt,{size:14,fill:h.text.grey}):dt.createElement(ot,{size:14,fill:h.text.grey})):e?dt.createElement(Hl,null,dt.createElement(e,{size:14,fill:h.text.grey})):null,dt.createElement(Vl,{"data-id":p,type:x||c===on.Number?on.Text:c,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),c===on.Number&&(e.target.value=Eo(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...m}),t&&n&&dt.createElement(Gl,{onClick:n,disabled:m.disabled},t)),!!i&&dt.createElement(fi,null,i))},Jl=vt.div`
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;
@@ -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
- `,Zl=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=di.useTheme();return dt.createElement(Kl,null,dt.createElement(Jl,null,dt.createElement(it,{fill:n.text.dark_grey}),dt.createElement(Xl,null,e)),t&&dt.createElement(Ql,null,t))},ed=vt.div`
1106
+ `,Zl=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=di.useTheme();return dt.createElement(Jl,null,dt.createElement(Kl,null,dt.createElement(it,{fill:n.text.dark_grey}),dt.createElement(Xl,null,e)),t&&dt.createElement(Ql,null,t))},ed=vt.div`
1107
1107
  display: flex;
1108
1108
  flex-direction: column;
1109
1109
  min-width: 120px;
@@ -1141,7 +1141,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1141
1141
  display: flex;
1142
1142
  align-items: center;
1143
1143
  gap: 4px;
1144
- `,id=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:d=!1,required:c=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=ut(!1),[x,f]=ut(!1),$=ht(null);ia($,()=>g(!1));const y=()=>{(()=>{if($.current){const e=$.current.getBoundingClientRect().bottom+300>window.innerHeight;f(e)}})(),g(e=>!e)},b=Array.isArray(t)?t.length:0;return dt.createElement(ed,{$disabled:s},dt.createElement(jl,{title:i,required:c,tooltip:a,status:m}),dt.createElement(td,{ref:$},dt.createElement(nd,{$isOpen:h,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:m,$disabled:s,onClick:()=>!s&&y()},dt.createElement(ld,{value:t,placeholder:r,onDeselect:o}),dt.createElement(od,null,l&&dt.createElement(zi,{label:b,filled:!!b}),dt.createElement(Ya,{extend:h}))),h&&dt.createElement(pd,{openUpwards:x,options:e,value:t,onSelect:e=>{n?.(e),l||y()},onDeselect:e=>{o?.(e),l||y()},isMulti:l,showSearch:d})),!!p&&dt.createElement(fi,null,p))},ad=vt(od)`
1144
+ `,id=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:d=!1,required:c=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=ut(!1),[x,f]=ut(!1),$=ht(null);ia($,()=>g(!1));const y=()=>{(()=>{if($.current){const e=$.current.getBoundingClientRect().bottom+300>window.innerHeight;f(e)}})(),g(e=>!e)},b=Array.isArray(t)?t.length:0;return dt.createElement(ed,{$disabled:s},dt.createElement(jl,{title:i,required:c,tooltip:a,status:m}),dt.createElement(td,{ref:$},dt.createElement(nd,{$isOpen:h,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:m,$disabled:s,onClick:()=>!s&&y()},dt.createElement(ld,{value:t,placeholder:r,onDeselect:o}),dt.createElement(od,null,l&&dt.createElement(zi,{label:b,filled:!!b}),dt.createElement(Ga,{extend:h}))),h&&dt.createElement(pd,{openUpwards:x,options:e,value:t,onSelect:e=>{n?.(e),l||y()},onDeselect:e=>{o?.(e),l||y()},isMulti:l,showSearch:d})),!!p&&dt.createElement(fi,null,p))},ad=vt(od)`
1145
1145
  max-width: calc(100% - 50px);
1146
1146
  overflow-x: auto;
1147
1147
  `,rd=vt(hi)`
@@ -1178,7 +1178,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1178
1178
  display: flex;
1179
1179
  flex-direction: column;
1180
1180
  align-items: center;
1181
- `,pd=({openUpwards:e,options:t,value:n,onSelect:o,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=ut(""),d=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return dt.createElement(dd,{$openUpwards:e},r&&dt.createElement(cd,null,dt.createElement(Gl,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),dt.createElement(nr,{thickness:1,margin:"8px 0 0 0"})),0===d.length?dt.createElement(Zl,{subTitle:r&&s?void 0:" "}):d.map((e,t)=>dt.createElement(md,{key:`dropdown-option-${e.id||t}`,option:e,value:n,isMulti:a,onSelect:o,onDeselect:i})))},ud=vt.div`
1181
+ `,pd=({openUpwards:e,options:t,value:n,onSelect:o,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=ut(""),d=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return dt.createElement(dd,{$openUpwards:e},r&&dt.createElement(cd,null,dt.createElement(Yl,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),dt.createElement(nr,{thickness:1,margin:"8px 0 0 0"})),0===d.length?dt.createElement(Zl,{subTitle:r&&s?void 0:" "}):d.map((e,t)=>dt.createElement(md,{key:`dropdown-option-${e.id||t}`,option:e,value:n,isMulti:a,onSelect:o,onDeselect:i})))},ud=vt.div`
1182
1182
  padding: 8px 12px;
1183
1183
  cursor: pointer;
1184
1184
  display: flex;
@@ -1189,7 +1189,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1189
1189
  &.selected {
1190
1190
  background: ${({theme:e})=>e.colors.majestic_blue+di.opacity.hex["024"]};
1191
1191
  }
1192
- `,md=({option:e,value:t,isMulti:n,onSelect:o,onDeselect:i})=>{const a=di.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?o?.(e):i?.(e);return n?dt.createElement(ud,{className:r?"selected":"",onClick:()=>s(!r)},dt.createElement(Da,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):dt.createElement(ud,{className:r?"selected":"",onClick:()=>r?i?.(e):o?.(e)},dt.createElement(ga,{$gap:8},e.icon&&dt.createElement(e.icon,null),dt.createElement(hi,{size:14},e.value)),r&&dt.createElement(He,null))},hd=({error:e})=>{const t=di.useTheme(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return dt.createElement("div",{style:n.container},dt.createElement("h2",null,"Something went wrong!"),dt.createElement("pre",{style:n.errorMessage},e?.message||"Unknown Error"),dt.createElement("details",{style:n.errorStackWrapper},dt.createElement("summary",null,"Stack Trace"),dt.createElement("pre",{style:n.errorStack},e?.stack||"Unknown Stack")),dt.createElement("p",{style:n.infoText},"Try refreshing the page or contact support"),dt.createElement(Pi,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},gd=({children:e})=>dt.createElement(Pt,{FallbackComponent:e=>dt.createElement(di.Provider,null,dt.createElement(hd,{...e}))},e),xd=vt(ga)`
1192
+ `,md=({option:e,value:t,isMulti:n,onSelect:o,onDeselect:i})=>{const a=di.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?o?.(e):i?.(e);return n?dt.createElement(ud,{className:r?"selected":"",onClick:()=>s(!r)},dt.createElement(Da,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):dt.createElement(ud,{className:r?"selected":"",onClick:()=>r?i?.(e):o?.(e)},dt.createElement(ga,{$gap:8},e.icon&&dt.createElement(e.icon,null),dt.createElement(hi,{size:14},e.value)),r&&dt.createElement(He,null))},hd=({error:e})=>{const t=di.useTheme(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return dt.createElement("div",{style:n.container},dt.createElement("h2",null,"Something went wrong!"),dt.createElement("pre",{style:n.errorMessage},e?.message||"Unknown Error"),dt.createElement("details",{style:n.errorStackWrapper},dt.createElement("summary",null,"Stack Trace"),dt.createElement("pre",{style:n.errorStack},e?.stack||"Unknown Stack")),dt.createElement("p",{style:n.infoText},"Try refreshing the page or contact support"),dt.createElement(Mi,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},gd=({children:e})=>dt.createElement(Mt,{FallbackComponent:e=>dt.createElement(di.Provider,null,dt.createElement(hd,{...e}))},e),xd=vt(ga)`
1193
1193
  position: relative;
1194
1194
  width: calc(100% - 24px);
1195
1195
  padding: 12px;
@@ -1248,7 +1248,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1248
1248
  `,Td=vt(cr)`
1249
1249
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1250
1250
  opacity: ${({$disabled:e})=>e?.5:1};
1251
- `,Ad=({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(Ed,null,dt.createElement(jl,{title:o,required:a,tooltip:i}),dt.createElement(Sd,null,s.map((e,t)=>{const n=t===s.length-1;return dt.createElement(Cd,{key:`input-list-${t}`},dt.createElement(Gl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:mo(e)&&!u&&n}),t===s.length-1&&dt.createElement(Td,{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(Td,{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(fi,null,r))},Dd=({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(id,{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&&mo($))})}{const e=i>1&&o===i-1&&0===t&&mo($);return dt.createElement(Gl,{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&&mo($))})}})())},Nd=vt.div`
1251
+ `,Ad=({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(Ed,null,dt.createElement(jl,{title:o,required:a,tooltip:i}),dt.createElement(Sd,null,s.map((e,t)=>{const n=t===s.length-1;return dt.createElement(Cd,{key:`input-list-${t}`},dt.createElement(Yl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:mo(e)&&!u&&n}),t===s.length-1&&dt.createElement(Td,{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(Td,{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(fi,null,r))},Dd=({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(id,{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&&mo($))})}{const e=i>1&&o===i-1&&0===t&&mo($);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&&mo($))})}})())},Nd=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
  `,Ld=vt(cr)`
1277
1277
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1278
1278
  opacity: ${({$disabled:e})=>e?.5:1};
1279
- `,Pd={key:"",value:""},Md=({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([{...Pd}])},[]);const m=p.filter(({key:e,value:t})=>!mo(e.trim())&&!mo(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(_d,null,dt.createElement(jl,{title:o,required:r,tooltip:i}),dt.createElement(zd,null,p.map(({key:e,value:t},n)=>dt.createElement(Rd,{key:`key-value-input-list-${n}`},dt.createElement(Fd,{$maxWidth:c},dt.createElement(Gl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:mo(t)&&!x&&n===p.length-1})),dt.createElement(Fd,{$maxWidth:n===p.length-1?c-38:c},dt.createElement(Gl,{placeholder:d,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&mo(t)),autoFocus:!1})),n===p.length-1&&dt.createElement(Ld,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Pd}),t})}},dt.createElement(Ke,null)),dt.createElement(Ld,{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(fi,null,s))},Bd=vt.div`
1279
+ `,Md={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([{...Md}])},[]);const m=p.filter(({key:e,value:t})=>!mo(e.trim())&&!mo(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(_d,null,dt.createElement(jl,{title:o,required:r,tooltip:i}),dt.createElement(zd,null,p.map(({key:e,value:t},n)=>dt.createElement(Rd,{key:`key-value-input-list-${n}`},dt.createElement(Fd,{$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:mo(t)&&!x&&n===p.length-1})),dt.createElement(Fd,{$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&&mo(t)),autoFocus:!1})),n===p.length-1&&dt.createElement(Ld,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Md}),t})}},dt.createElement(Je,null)),dt.createElement(Ld,{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(fi,null,s))},Bd=vt.div`
1280
1280
  position: fixed;
1281
1281
  top: 50%;
1282
1282
  left: 50%;
@@ -1319,14 +1319,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1319
1319
  text-transform: uppercase;
1320
1320
  font-family: ${({theme:e})=>e.font_family.secondary};
1321
1321
  pointer-events: auto;
1322
- `,Yd=vt(hi)`
1322
+ `,Gd=vt(hi)`
1323
1323
  text-transform: uppercase;
1324
1324
  font-weight: 500;
1325
1325
  font-size: 14px;
1326
1326
  font-family: ${({theme:e})=>e.font_family.secondary};
1327
1327
  text-decoration: underline;
1328
1328
  cursor: pointer;
1329
- `,Gd=({isOpen:e,noOverlay:t,header:n,actionComponent:o,onClose:i,children:a,closeOnEscape:r=!0})=>{oa({key:"Escape",active:e&&r},()=>i());const s=ha({container:Bd,animateIn:di.animations.slide.in.center,animateOut:di.animations.slide.out.center});return e?Rt.createPortal(dt.createElement(dt.Fragment,null,dt.createElement(ya,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),dt.createElement(s,{"data-id":"modal"+(n?`-${n.title.replaceAll(" ","-")}`:""),enter:e},n&&dt.createElement(jd,null,dt.createElement(Ud,{onClick:i},dt.createElement(tt,null),dt.createElement(Yd,null,"Cancel")),dt.createElement(Hd,null,dt.createElement(qd,null,n.title)),dt.createElement(Wd,null,o)),dt.createElement(Vd,null,a))),document.body):null},Kd=vt.div`
1329
+ `,Yd=({isOpen:e,noOverlay:t,header:n,actionComponent:o,onClose:i,children:a,closeOnEscape:r=!0})=>{oa({key:"Escape",active:e&&r},()=>i());const s=ha({container:Bd,animateIn:di.animations.slide.in.center,animateOut:di.animations.slide.out.center});return e?Rt.createPortal(dt.createElement(dt.Fragment,null,dt.createElement(ya,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),dt.createElement(s,{"data-id":"modal"+(n?`-${n.title.replaceAll(" ","-")}`:""),enter:e},n&&dt.createElement(jd,null,dt.createElement(Ud,{onClick:i},dt.createElement(tt,null),dt.createElement(Gd,null,"Cancel")),dt.createElement(Hd,null,dt.createElement(qd,null,n.title)),dt.createElement(Wd,null,o)),dt.createElement(Vd,null,a))),document.body):null},Jd=vt.div`
1330
1330
  display: flex;
1331
1331
  flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1332
1332
  gap: ${({$isVertical:e})=>e?"12px":"24px"};
@@ -1335,11 +1335,11 @@ 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),Xd=({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||Dn.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(jl,{title:t,required:n}),dt.createElement(Kd,{$isVertical:e,$hasError:!!o},Dn.map(e=>{const t=Jd(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?dt.createElement(Da,{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(fi,null,o))},Qd=vt.div`
1338
+ `,Kd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Xd=({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||Dn.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(jl,{title:t,required:n}),dt.createElement(Jd,{$isVertical:e,$hasError:!!o},Dn.map(e=>{const t=Kd(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?dt.createElement(Da,{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(fi,null,o))},Qd=vt.div`
1339
1339
  display: flex;
1340
1340
  gap: 8px;
1341
1341
  align-items: center;
1342
- `,Zd=vt(Pi)`
1342
+ `,Zd=vt(Mi)`
1343
1343
  display: flex;
1344
1344
  align-items: center;
1345
1345
  justify-content: center;
@@ -1444,7 +1444,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1444
1444
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1445
1445
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1446
1446
  transition: all 0.3s;
1447
- `,kc=({options:e=[],selected:t,setSelected:n})=>{const o=e.findIndex(e=>e.value===t),[i,a]=ut(e[o]?.selectedBgColor||""),[r,s]=ut({width:0,height:0}),[l,d]=ut({x:0,y:0}),c=ht(null);return mt(()=>{c.current&&(s({width:c.current.offsetWidth,height:c.current.offsetHeight}),d({x:c.current.offsetWidth*o,y:0}))},[t,o]),dt.createElement(yc,{$count:e.length},e.map(({icon:o,label:i,value:r,selectedBgColor:s,selectedTextColor:l},d)=>{const p=t===r;return dt.createElement(bc,{key:`segment-${i||d}-${r}`,ref:p?c:void 0,$isFirstItem:0===d,$isLastItem:d===e.length-1,onClick:()=>{n(r),a(s||"")}},o&&dt.createElement(o,null),i&&dt.createElement(hi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),dt.createElement(wc,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===o,$isLastItem:o===e.length-1}))},vc=vt(Pi)`
1447
+ `,kc=({options:e=[],selected:t,setSelected:n})=>{const o=e.findIndex(e=>e.value===t),[i,a]=ut(e[o]?.selectedBgColor||""),[r,s]=ut({width:0,height:0}),[l,d]=ut({x:0,y:0}),c=ht(null);return mt(()=>{c.current&&(s({width:c.current.offsetWidth,height:c.current.offsetHeight}),d({x:c.current.offsetWidth*o,y:0}))},[t,o]),dt.createElement(yc,{$count:e.length},e.map(({icon:o,label:i,value:r,selectedBgColor:s,selectedTextColor:l},d)=>{const p=t===r;return dt.createElement(bc,{key:`segment-${i||d}-${r}`,ref:p?c:void 0,$isFirstItem:0===d,$isLastItem:d===e.length-1,onClick:()=>{n(r),a(s||"")}},o&&dt.createElement(o,null),i&&dt.createElement(hi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),dt.createElement(wc,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===o,$isLastItem:o===e.length-1}))},vc=vt(Mi)`
1448
1448
  gap: 8px;
1449
1449
  text-transform: none;
1450
1450
  text-decoration: none;
@@ -1496,7 +1496,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1496
1496
  flex-direction: column;
1497
1497
  position: relative;
1498
1498
  width: 100%;
1499
- `,Pc=vt.div`
1499
+ `,Mc=vt.div`
1500
1500
  width: 100%;
1501
1501
  display: flex;
1502
1502
  align-items: center;
@@ -1524,7 +1524,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1524
1524
  &:focus-within {
1525
1525
  border-color: ${({theme:e})=>e.colors.secondary};
1526
1526
  }
1527
- `,Mc=vt.textarea`
1527
+ `,Pc=vt.textarea`
1528
1528
  flex: 1;
1529
1529
  border: none;
1530
1530
  outline: none;
@@ -1548,7 +1548,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1548
1548
  background-color: ${({theme:e})=>e.colors.border};
1549
1549
  cursor: not-allowed;
1550
1550
  }
1551
- `,Bc=({errorMessage:e,title:t,tooltip:n,required:o,onChange:i,name:a,...r})=>{const s=ht(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return dt.createElement(Lc,null,dt.createElement(jl,{title:t,required:o,tooltip:n}),dt.createElement(Pc,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},dt.createElement(Mc,{ref:s,"data-id":a,name:a,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...r})),!!e&&dt.createElement(fi,null,e))},jc=vt.div`
1551
+ `,Bc=({errorMessage:e,title:t,tooltip:n,required:o,onChange:i,name:a,...r})=>{const s=ht(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return dt.createElement(Lc,null,dt.createElement(jl,{title:t,required:o,tooltip:n}),dt.createElement(Mc,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},dt.createElement(Pc,{ref:s,"data-id":a,name:a,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...r})),!!e&&dt.createElement(fi,null,e))},jc=vt.div`
1552
1552
  display: flex;
1553
1553
  align-items: center;
1554
1554
  gap: 12px;
@@ -1580,14 +1580,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1580
1580
  width: ${({$width:e})=>e}px;
1581
1581
  height: ${({$height:e})=>e}px;
1582
1582
  position: relative;
1583
- `,qc=({width:e=620})=>{const{darkMode:t}=di.useTheme(),n=e/(620/220),o=e;return dt.createElement(Hc,{$width:o,$height:n},dt.createElement(Mt,{autoplay:!0,loop:!0,animationData:Vc,style:{width:n,height:o,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:t?"invert(0)":"invert(1)"}}))},Yc=vt.div`
1583
+ `,qc=({width:e=620})=>{const{darkMode:t}=di.useTheme(),n=e/(620/220),o=e;return dt.createElement(Hc,{$width:o,$height:n},dt.createElement(Pt,{autoplay:!0,loop:!0,animationData:Vc,style:{width:n,height:o,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:t?"invert(0)":"invert(1)"}}))},Gc=vt.div`
1584
1584
  padding: 24px 32px;
1585
- `,Gc=vt.div`
1585
+ `,Yc=vt.div`
1586
1586
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
1587
- `,Kc=vt(hi)`
1587
+ `,Jc=vt(hi)`
1588
1588
  font-size: 20px;
1589
1589
  line-height: 28px;
1590
- `,Jc=vt(hi)`
1590
+ `,Kc=vt(hi)`
1591
1591
  color: ${({theme:e})=>e.text.grey};
1592
1592
  width: 416px;
1593
1593
  font-style: normal;
@@ -1597,8 +1597,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1597
1597
  display: flex;
1598
1598
  justify-content: space-between;
1599
1599
  gap: 12px;
1600
- `,Qc=vt(Pi)`
1600
+ `,Qc=vt(Mi)`
1601
1601
  width: 250px;
1602
1602
  `,Zc=vt.div`
1603
1603
  margin-bottom: 12px;
1604
- `,ep=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{oa({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return dt.createElement(Gd,{isOpen:e,noOverlay:t,onClose:l},dt.createElement(Yc,null,dt.createElement(Kc,null,n),dt.createElement(Gc,{$withNote:!!i},dt.createElement(Jc,null,o)),!!i&&dt.createElement(Zc,null,dt.createElement(dc,{type:i.type,title:i.title,message:i.message})),dt.createElement(Xc,null,dt.createElement(Qc,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),dt.createElement(Qc,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Ca as $,Ut as A,Lo as B,Da as C,Fo as D,en as E,jl as F,er as G,dl as H,Gl as I,Zt as J,Vt as K,xa as L,Xd as M,Yo as N,Gd as O,ec as P,ba as Q,dc as R,kc as S,di as T,Ro as U,Ii as V,nr as W,Wn as X,rr as Y,ga as Z,wo as _,Xs as a,ei as a$,sn as a0,ao as a1,Ho as a2,Rn as a3,yr as a4,Jn as a5,Er as a6,wa as a7,ka as a8,os as a9,Gi as aA,aa as aB,Vi as aC,Sc as aD,$a as aE,Kn as aF,ia as aG,bo as aH,id as aI,Io as aJ,Dn as aK,Pi as aL,zo as aM,ra as aN,Qi as aO,_o as aP,cr as aQ,Ya as aR,sr as aS,hr as aT,ko as aU,_n as aV,co as aW,Ha as aX,wn as aY,ea as aZ,po as a_,Gn as aa,va as ab,Js as ac,fa as ad,Zl as ae,qc as af,zi as ag,Do as ah,un as ai,jn as aj,mn as ak,Mr as al,hn as am,Tn as an,qn as ao,so as ap,vo as aq,Yn as ar,jo as as,qo as at,Ji as au,Mn as av,Pn as aw,Ln as ax,Fn as ay,_s as az,fi as b,Bn as b$,Nn as b0,Nr as b1,Cn as b2,zn as b3,_c as b4,nl as b5,Zn as b6,$n as b7,yn as b8,fn as b9,Vn as bA,go as bB,Xi as bC,Hi as bD,uc as bE,cn as bF,pn as bG,dn as bH,Xt as bI,Mo as bJ,Un as bK,Oa as bL,oo as bM,xr as bN,jt as bO,Ht as bP,qt as bQ,Yt as bR,Gt as bS,Kt as bT,Jt as bU,tn as bV,rn as bW,ln as bX,gn as bY,vn as bZ,In as b_,bn as ba,xn as bb,Fc as bc,Hn as bd,na as be,An as bf,ha as bg,Xo as bh,lo as bi,ma as bj,Ki as bk,mr as bl,vd as bm,ro as bn,uo as bo,ur as bp,Fr as bq,Pr as br,xo as bs,So as bt,la as bu,Ls as bv,kn as bw,Qt as bx,ua as by,kr as bz,Wt as c,Xn as c0,Qn as c1,eo as c2,to as c3,no as c4,io as c5,ho as c6,fo as c7,yo as c8,Eo as c9,pi as cA,ui as cB,mi as cC,ep as cD,ya as cE,Co as ca,To as cb,Ao as cc,No as cd,Oo as ce,Po as cf,Bt as cg,Vr as ch,qr as ci,Gr as cj,Jr as ck,ds as cl,bs as cm,us as cn,ts as co,As as cp,hs as cq,Ma as cr,hl as cs,Tl as ct,_l as cu,gd as cv,bd as cw,fr as cx,Cs as cy,bl as cz,on as d,Od as e,Wc as f,Md as g,Ad as h,mo as i,nn as j,hi as k,$c as l,fl as m,Bc as n,Go as o,Uo as p,oa as q,Ll as r,gl as s,Mi as t,Jo as u,an as v,Wo as w,Yi as x,Sn as y,En as z};
1604
+ `,ep=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{oa({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return dt.createElement(Yd,{isOpen:e,noOverlay:t,onClose:l},dt.createElement(Gc,null,dt.createElement(Jc,null,n),dt.createElement(Yc,{$withNote:!!i},dt.createElement(Kc,null,o)),!!i&&dt.createElement(Zc,null,dt.createElement(dc,{type:i.type,title:i.title,message:i.message})),dt.createElement(Xc,null,dt.createElement(Qc,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),dt.createElement(Qc,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Ca as $,Ut as A,Lo as B,Da as C,Fo as D,en as E,jl as F,er as G,dl as H,Yl as I,Zt as J,Vt as K,xa as L,Xd as M,Go as N,Yd as O,ec as P,ba as Q,dc as R,kc as S,di as T,Ro as U,Ii as V,nr as W,Wn as X,rr as Y,ga as Z,wo as _,Xs as a,ei as a$,sn as a0,ao as a1,Ho as a2,Rn as a3,yr as a4,Kn as a5,Er as a6,wa as a7,ka as a8,os as a9,Yi as aA,aa as aB,Vi as aC,Sc as aD,$a as aE,Jn as aF,ia as aG,bo as aH,id as aI,Io as aJ,Dn as aK,Mi as aL,zo as aM,ra as aN,Qi as aO,_o as aP,cr as aQ,Ga as aR,sr as aS,hr as aT,ko as aU,_n as aV,co as aW,Ha as aX,wn as aY,ea as aZ,po as a_,Yn as aa,va as ab,Ks as ac,fa as ad,Zl as ae,qc as af,zi as ag,Do as ah,un as ai,jn as aj,mn as ak,Pr as al,hn as am,Tn as an,qn as ao,so as ap,vo as aq,Gn as ar,jo as as,qo as at,Ki as au,Pn as av,Mn as aw,Ln as ax,Fn as ay,_s as az,fi as b,Bn as b$,Nn as b0,Nr as b1,Cn as b2,zn as b3,_c as b4,nl as b5,Zn as b6,$n as b7,yn as b8,fn as b9,Vn as bA,go as bB,Xi as bC,Hi as bD,uc as bE,cn as bF,pn as bG,dn as bH,Xt as bI,Po as bJ,Un as bK,Oa as bL,oo as bM,xr as bN,jt as bO,Ht as bP,qt as bQ,Gt as bR,Yt as bS,Jt as bT,Kt as bU,tn as bV,rn as bW,ln as bX,gn as bY,vn as bZ,In as b_,bn as ba,xn as bb,Fc as bc,Hn as bd,na as be,An as bf,ha as bg,Xo as bh,lo as bi,ma as bj,Ji as bk,mr as bl,vd as bm,ro as bn,uo as bo,ur as bp,Fr as bq,Mr as br,xo as bs,So as bt,la as bu,Ls as bv,kn as bw,Qt as bx,ua as by,kr as bz,Wt as c,Xn as c0,Qn as c1,eo as c2,to as c3,no as c4,io as c5,ho as c6,fo as c7,yo as c8,Eo as c9,pi as cA,ui as cB,mi as cC,ep as cD,ya as cE,Co as ca,To as cb,Ao as cc,No as cd,Oo as ce,Mo as cf,Bt as cg,Vr as ch,qr as ci,Yr as cj,Kr as ck,ds as cl,bs as cm,us as cn,ts as co,As as cp,hs as cq,Pa as cr,hl as cs,Tl as ct,_l as cu,gd as cv,bd as cw,fr as cx,Cs as cy,bl as cz,on as d,Od as e,Wc as f,Pd as g,Ad as h,mo as i,nn as j,hi as k,$c as l,fl as m,Bc as n,Yo as o,Uo as p,oa as q,Ll as r,gl as s,Pi as t,Ko as u,an as v,Wo as w,Gi as x,Sn as y,En as z};