@odigos/ui-kit 0.0.137 → 0.0.138

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/chunks/{ui-components-a8941c5a.js → ui-components-84317435.js} +287 -205
  3. package/lib/components/_v2/cards/section-card/index.d.ts +2 -0
  4. package/lib/components/_v2/drawer/index.d.ts +4 -2
  5. package/lib/components/_v2/index.d.ts +3 -0
  6. package/lib/components/_v2/loader/index.d.ts +12 -0
  7. package/lib/components/_v2/search/index.d.ts +7 -0
  8. package/lib/components/_v2/table/index.d.ts +9 -20
  9. package/lib/components/_v2/table/styled.d.ts +26 -0
  10. package/lib/components/_v2/table/table-columns/index.d.ts +12 -0
  11. package/lib/components/_v2/table/table-rows/actions/index.d.ts +9 -0
  12. package/lib/components/_v2/table/table-rows/index.d.ts +11 -0
  13. package/lib/components/_v2/table/types.d.ts +24 -0
  14. package/lib/components/_v2/toggle/index.d.ts +21 -0
  15. package/lib/components/styled.d.ts +8 -3
  16. package/lib/components/v2.js +1 -1
  17. package/lib/components.js +1 -1
  18. package/lib/constants.js +1 -1
  19. package/lib/containers/_v2/central-connections/config-drawer/index.d.ts +18 -0
  20. package/lib/containers/_v2/central-connections/index.d.ts +11 -0
  21. package/lib/containers/_v2/index.d.ts +1 -0
  22. package/lib/containers/v2.js +53 -5
  23. package/lib/containers.js +1 -1
  24. package/lib/functions.js +1 -1
  25. package/lib/hooks.js +1 -1
  26. package/lib/icons/common/index.d.ts +1 -0
  27. package/lib/icons/common/settings-icon/index.d.ts +2 -0
  28. package/lib/icons.js +1 -1
  29. package/lib/mock-data/connections/index.d.ts +2 -0
  30. package/lib/mock-data/index.d.ts +1 -0
  31. package/lib/snippets.js +1 -1
  32. package/lib/store.js +1 -1
  33. package/lib/theme.js +1 -1
  34. package/lib/types/common/index.d.ts +3 -0
  35. package/lib/types.js +1 -1
  36. package/lib/visuals.js +1 -1
  37. package/package.json +1 -1
@@ -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 c,PayloadCollectionIcon as d,JavaLogo as p,GoLogo as u,NodejsLogo as m,PythonLogo as h,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as $,PhpLogo as f,RubyLogo as b,RustLogo as y,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as C,PostgresLogo as E,RedisLogo as S,KafkaLogo as A,AlaudaLogo as D,AlibabaCloudLogo as T,AppDynamicsLogo as N,AxiomLogo as I,AzureBlobLogo as z,AzureMonitorLogo as O,BetterStackLogo as F,BonreeLogo as _,CauselyLogo as R,ChecklyLogo as L,ChronosphereLogo as B,ClickhouseLogo as M,AwsCloudwatchLogo as P,CoralogixLogo as j,Dash0Logo as U,DatadogLogo as W,OpenTelemetryLogo as V,DynatraceLogo as H,ElasticApmLogo as q,ElasticSearchLogo as G,GoogleCloudPlatformLogo as J,GrafanaLogo as K,GreptimeLogo as Y,GroundcoverLogo as X,HoneycombLogo as Q,HyperDxLogo as Z,InstanaLogo as ee,JaegerLogo as te,KloudmateLogo as ne,Last9Logo as oe,LightstepLogo as ie,LogzioLogo as ae,LokiLogo as re,LumigoLogo as se,MiddlewareLogo as le,NewRelicLogo as ce,ObserveLogo as de,OdigosLogo as pe,OneUptimeLogo as ue,OpenObserveLogo as me,OpsVerseLogo as he,OracleLogo as ge,PrometheusLogo as xe,QrynLogo as $e,GigapipeLogo as fe,QuickwitLogo as be,AwsS3Logo as ye,SeqLogo as we,SignozLogo as ke,SplunkLogo as ve,SumoLogicLogo as Ce,TelemetryHubLogo as Ee,TempoLogo as Se,TingyunLogo as Ae,TraceloopLogo as De,UptraceLogo as Te,VictoriaMetricsLogo as Ne,AwsXrayLogo as Ie,NamespacesIcon as ze,SourceIcon as Oe,DestinationIcon as Fe,ActionIcon as _e,InstrumentationRuleIcon as Re,LogsIcon as Le,MetricsIcon as Be,TracesIcon as Me,VmLogo as Pe,ISquareIcon as je,ExclamationCircleIcon as Ue,ExclamationTriangleIcon as We,VSquareIcon as Ve,XSquareIcon as He,QuestionCircleIcon as qe,ArrowIcon as Ge,VIcon as Je,CopyIcon as Ke,MinusIcon as Ye,ListIcon as Xe,CodeIcon as Qe,ExtendArrowIcon as Ze,PlusIcon as et,EditIcon as tt,EditedIcon as nt,SortArrowsIcon as ot,NotebookIcon as it,XIcon as at,EyeClosedIcon as rt,EyeOpenIcon as st,NoDataIcon as lt,SearchIcon as ct,TrashIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as mt,DotIcon as ht}from"../icons.js";import{create as gt}from"zustand";import xt,{Fragment as $t,useMemo as ft,forwardRef as bt,useState as yt,useEffect as wt,useRef as kt,useCallback as vt,memo as Ct}from"react";import Et from"javascript-time-ago";import{p as St,c as At,s as Dt,u as Tt,e as Nt}from"./vendor-55cc654c.js";import It,{ThemeProvider as zt,keyframes as Ot,useTheme as Ft,css as _t}from"styled-components";import{Handle as Rt,Position as Lt,ReactFlow as Bt,Controls as Mt}from"@xyflow/react";import Pt,{createPortal as jt}from"react-dom";import{Highlight as Ut,themes as Wt}from"prism-react-renderer";import{ErrorBoundary as Vt}from"react-error-boundary";import Ht from"lottie-react";const qt=gt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var Gt,Jt,Kt,Yt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,cn,dn,pn,un,mn,hn,gn,xn,$n,fn,bn,yn,wn,kn,vn,Cn,En,Sn,An,Dn,Tn,Nn,In,zn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Gt||(Gt={})),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"}(Jt||(Jt={})),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"}(Kt||(Kt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Yt||(Yt={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Xt||(Xt={})),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"}(Zt||(Zt={})),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"}(en||(en={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(tn||(tn={})),function(e){e.K8s="k8s",e.Vm="vm"}(nn||(nn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(on||(on={})),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"}(an||(an={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(rn||(rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(sn||(sn={})),function(e){e.DataStream="DataStream"}(ln||(ln={})),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"}(cn||(cn={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(dn||(dn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(pn||(pn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(un||(un={})),function(e){e.Loading="loading",e.Disabled="disabled"}(mn||(mn={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(hn||(hn={})),function(e){e.Ascending="asc",e.Descending="desc"}(gn||(gn={})),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"}(xn||(xn={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}($n||($n={})),function(e){e.Labeled="labeled"}(fn||(fn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(bn||(bn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.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"}(yn||(yn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(wn||(wn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(kn||(kn={})),function(e){e.HeaderKeys="headerKeys"}(vn||(vn={})),function(e){e.Java="java",e.Golang="golang"}(Cn||(Cn={}));class On{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class Fn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(En||(En={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Sn||(Sn={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(An||(An={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Dn||(Dn={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Tn||(Tn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Nn||(Nn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.DeploymentConfig="DeploymentConfig"}(In||(In={})),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"}(zn||(zn={}));const _n=s=>{const l=s?.toLowerCase(),c=l?.includes(Gt.Samplers),d=l===Gt.Attributes;return c?e:d?t:{[Jt.K8sAttributes]:o,[Jt.AddClusterInfo]:i,[Jt.DeleteAttributes]:a,[Jt.PiiMasking]:t,[Jt.RenameAttributes]:r,[Jt.ErrorSampler]:e,[Jt.ProbabilisticSampler]:e,[Jt.LatencySampler]:e,[Jt.ServiceNameSampler]:e,[Jt.SpanAttributeSampler]:e}[s]||n},Rn=[{label:"Attributes",icon:_n(Gt.Attributes),items:[{type:Jt.K8sAttributes,icon:_n(Jt.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Nn.Traces,Nn.Metrics,Nn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Jt.AddClusterInfo,icon:_n(Jt.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Nn.Traces,Nn.Metrics,Nn.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:Jt.DeleteAttributes,icon:_n(Jt.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Nn.Traces,Nn.Metrics,Nn.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:Jt.RenameAttributes,icon:_n(Jt.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Nn.Traces,Nn.Metrics,Nn.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:Jt.PiiMasking,icon:_n(Jt.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Nn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:_n(Gt.Samplers),items:[{type:Jt.ErrorSampler,icon:_n(Gt.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Nn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Jt.LatencySampler,icon:_n(Gt.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Nn.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:Jt.ProbabilisticSampler,icon:_n(Gt.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Nn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Jt.ServiceNameSampler,icon:_n(Gt.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Nn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Jt.SpanAttributeSampler,icon:_n(Gt.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Nn.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."}]}],Ln={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."}},Bn=e=>({[wn.CodeAttributes]:s,[wn.CustomInstrumentation]:l,[wn.HeadersCollection]:c,[wn.PayloadCollection]:d,[wn.UnknownType]:n}[e]||n),Mn=[{type:wn.CodeAttributes,icon:Bn(wn.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:[an.Go,an.Python]},{type:wn.CustomInstrumentation,icon:Bn(wn.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:[an.Go,an.Java]},{type:wn.HeadersCollection,icon:Bn(wn.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:[an.Go,an.Java,an.JavaScript]},{type:wn.PayloadCollection,icon:Bn(wn.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:[an.Go]}],Pn=[{id:Nn.Logs,value:"Logs"},{id:Nn.Metrics,value:"Metrics"},{id:Nn.Traces,value:"Traces"}],jn=e=>e.charAt(0).toUpperCase()+e.slice(1),Un=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 Wn;!function(e){e.SIGNALS="SIGNALS"}(Wn||(Wn={}));const Vn=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===Wn.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}},Hn=e=>JSON.parse(JSON.stringify(e)),qn=(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},Gn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Jn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Kn=(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===pn.Error))),t.errors?.length&&(n=n.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Yn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Go&&!e.dataStreamNames.length):[],Xn=(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?Xn(e,o,n):n[o]=e}):n[a]=i:Xn(i,a,n)}return n},Qn=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]}`},Zn=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`}},eo=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];return t++,("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},to=e=>{const t=e?.filter(({status:e})=>e===pn.Error),n=e?.filter(({status:e})=>e===pn.Warning),o=e?.filter(({status:e})=>e===mn.Disabled),i=e?.filter(({status:e})=>e===mn.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?pn.Error:r?pn.Warning:s?pn.Info:void 0}},no=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},oo=e=>({[an.Java]:p,[an.Go]:u,[an.JavaScript]:m,[an.Python]:h,[an.DotNet]:g,[an.CSharp]:x,[an.CPlusPlus]:$,[an.Php]:f,[an.Ruby]:b,[an.Rust]:y,[an.Swift]:w,[an.Elixir]:k,[an.MySql]:v,[an.Nginx]:C,[an.Postgres]:E,[an.Redis]:S,[an.Kafka]:A,[an.Ignored]:n,[an.Unknown]:n,[an.Processing]:n,[an.NoContainers]:n,[an.NoRunningPods]:n}[e]||n),io=e=>e?.map(({language:e})=>oo(e))||[],ao=(e,t)=>{const n={[yn.Alauda]:D,[yn.AlibabaCloud]:T,[yn.AppDynamics]:N,[yn.Axiom]:I,[yn.AzureBlob]:z,[yn.AzureMonitor]:O,[yn.BetterStack]:F,[yn.Bonree]:_,[yn.Causely]:R,[yn.Checkly]:L,[yn.Chronosphere]:B,[yn.ClickHouse]:M,[yn.CloudWatch]:P,[yn.Coralogix]:j,[yn.Dash0]:U,[yn.Datadog]:W,[yn.Dynamic]:V,[yn.Dynatrace]:H,[yn.ElasticApm]:q,[yn.ElasticSearch]:G,[yn.GoogleCloud]:J,[yn.GoogleCloudOTLP]:J,[yn.GrafanaCloudLoki]:K,[yn.GrafanaCloudPrometheus]:K,[yn.GrafanaCloudTempo]:K,[yn.Greptime]:Y,[yn.Groundcover]:X,[yn.Honeycomb]:Q,[yn.HyperDX]:Z,[yn.Instana]:ee,[yn.Jaeger]:te,[yn.Kafka]:A,[yn.Kloudmate]:ne,[yn.Last9]:oe,[yn.Lightstep]:ie,[yn.LogzIo]:ae,[yn.Loki]:re,[yn.Lumigo]:se,[yn.Middleware]:le,[yn.NewRelic]:ce,[yn.Observe]:de,[yn.Odigos]:pe,[yn.OneUptime]:ue,[yn.OpenObserve]:me,[yn.Opsverse]:he,[yn.Oracle]:ge,[yn.OTLP]:V,[yn.OTLPHttp]:V,[yn.Prometheus]:xe,[yn.Qryn]:$e,[yn.QrynOss]:fe,[yn.Quickwit]:be,[yn.S3]:ye,[yn.Seq]:we,[yn.Signoz]:ke,[yn.Splunk]:ve,[yn.SplunkSapm]:ve,[yn.SplunkOtlp]:ve,[yn.SumoLogic]:Ce,[yn.TelemetryHub]:Ee,[yn.Tempo]:Se,[yn.Tingyun]:Ae,[yn.Traceloop]:De,[yn.Uptrace]:Te,[yn.VictoriaMetrics]:Ne,[yn.VictoriaMetricsCloud]:Ne,[yn.XRay]:Ie}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},ro=e=>({[sn.Namespace]:ze,[sn.Source]:Oe,[sn.Destination]:Fe,[sn.Action]:_e,[sn.InstrumentationRule]:Re}[e]),so=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,lo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case sn.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case sn.Source:const n=e;a=n.name,r=n.otelServiceName;break;case sn.Action:const o=e;a=o.type,r=o.name;break;case sn.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case sn.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},co=(e,t)=>{if(t===sn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},po=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?an.Processing:an.NoRunningPods;const o=n?.filter(e=>e.language!==an.Ignored);if(!o.length)return an.NoContainers;const i=o.find(e=>e.language!==an.Unknown);return i?i.language:an.Unknown},uo=(e,t,n)=>(t===sn.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},mo=e=>({[Nn.Logs]:Le,[Nn.Metrics]:Be,[Nn.Traces]:Me}[e]),ho=e=>e?{[nn.K8s]:o,[nn.Vm]:Pe}[e]:pe,go=e=>e?{[nn.K8s]:"Kubernetes Cluster",[nn.Vm]:"Virtual Machine"}[e]:"Unknown",xo=(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(...xo(e,t,n)),i}):[]},$o=(e,t)=>{if(t===sn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},fo=(e,t,n)=>{switch(t){case pn.Default:return e.v2.colors.purple[n];case pn.Info:return e.v2.colors.blue[n];case pn.Error:return e.v2.colors.red[n];case pn.Warning:return e.v2.colors.yellow[n];case pn.Success:return e.v2.colors.green[n];case hn.Disabled:case hn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},bo=e=>{switch(e){case Sn.Updating:case An.Pending:case Dn.ContainerCreating:case Tn.Waiting:return pn.Info;case Sn.Healthy:case An.Succeeded:case An.Running:case Dn.Running:case Tn.Running:return pn.Success;case Sn.Degraded:return pn.Warning;case Sn.Failed:case An.Failed:case Dn.Error:case Dn.CrashLoopBackOff:case Dn.CreateContainerError:case Dn.CreateContainerConfigError:case Dn.ErrImagePull:case Dn.ErrImageNeverPull:case Dn.ImagePullBackOff:case Dn.InvalidImageName:case Dn.RegistryUnavailable:case Dn.NetworkNotReady:case Dn.OOMKilled:case Dn.ContainerCannotRun:case Tn.Terminated:case Dn.DeadlineExceeded:case Dn.StartError:return pn.Error;case Sn.Down:case Dn.Completed:return hn.Disabled;case Sn.Unknown:case An.Unknown:default:return hn.Unknown}},yo=(e,t)=>({[pn.Default]:n=>pe({fill:fo(t,e,"300"),...n}),[pn.Info]:n=>je({fill:fo(t,e,"400"),...n}),[pn.Error]:n=>Ue({fill:fo(t,e,"500"),...n}),[pn.Warning]:n=>We({fill:fo(t,e,"500"),...n}),[pn.Success]:n=>Ve({fill:fo(t,e,"500"),...n}),[hn.Disabled]:n=>He({fill:fo(t,e,"400"),...n}),[hn.Unknown]:n=>qe({fill:fo(t,e,"300"),...n})}[e]),wo=e=>{switch(e){case zn.Success:return pn.Success;case zn.Error:case zn.Failure:return pn.Error;case zn.Notice:return pn.Warning;case zn.Unsupported:case zn.Unknown:return pn.Info;case zn.Irrelevant:case zn.Disabled:return mn.Disabled;case zn.Waiting:return mn.Loading;case zn.Pending:default:return pn.Default}},ko=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},vo=({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 Eo=(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},So=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==pn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},Ao=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Do=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),To=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},No=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Io=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,zo=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Oo=e=>zo.test(e),Fo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",_o=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:Fo(t),reason:n?Fo(n):"",message:o,lastTransitionTime:i}))||[],Ro=(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}))},Lo=e=>e?Object.keys(e).filter(t=>e[t]):[],Bo=e=>e.replace(/[^\d]/g,""),Mo=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Po=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},jo=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=>jo(e)))}else if("object"==typeof o&&null!==o){const e=jo(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Uo=(e,t=2)=>JSON.stringify(e||{},null,t),Wo=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Vo=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Ho={[an.Go]:"Go",[an.Java]:"Java",[an.JavaScript]:"Node.js",[an.Python]:"Python",[an.DotNet]:".NET",[an.CSharp]:"C#",[an.CPlusPlus]:"C++",[an.Php]:"PHP",[an.Ruby]:"Ruby",[an.Rust]:"Rust",[an.Swift]:"Swift",[an.Elixir]:"Elixir",[an.MySql]:"MySQL",[an.Nginx]:"Nginx",[an.Postgres]:"PostgreSQL",[an.Redis]:"Redis",[an.Kafka]:"Kafka",[an.Ignored]:"Ignored",[an.Unknown]:"Unknown",[an.Processing]:"Processing",[an.NoContainers]:"No Containers",[an.NoRunningPods]:"No Running Pods"},qo=[{id:an.Go,value:Ho[an.Go],icon:oo(an.Go)},{id:an.Java,value:Ho[an.Java],icon:oo(an.Java)},{id:an.JavaScript,value:Ho[an.JavaScript],icon:oo(an.JavaScript)},{id:an.Python,value:Ho[an.Python],icon:oo(an.Python)},{id:an.Php,value:Ho[an.Php],icon:oo(an.Php)},{id:an.Ruby,value:Ho[an.Ruby],icon:oo(an.Ruby)},{id:an.Rust,value:Ho[an.Rust],icon:oo(an.Rust)},{id:an.DotNet,value:Ho[an.DotNet],icon:oo(an.DotNet)},{id:an.CSharp,value:Ho[an.CSharp],icon:oo(an.CSharp)},{id:an.CPlusPlus,value:Ho[an.CPlusPlus],icon:oo(an.CPlusPlus)},{id:an.Swift,value:Ho[an.Swift],icon:oo(an.Swift)},{id:an.Elixir,value:Ho[an.Elixir],icon:oo(an.Elixir)}],Go="default",Jo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Ko={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)'},Yo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"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?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes"},Xo={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"},Qo=6048e5,Zo=gt()(St(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Jo.DARK_MODE,storage:"undefined"!=typeof window?At(()=>localStorage):void 0})),ei={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},ti=gt(e=>({...ei,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(ei)})),ni=gt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),oi=gt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===sn.Namespace?"namespacesLoading":t===sn.Source?"sourcesLoading":t===sn.Destination?"destinationsLoading":t===sn.Action?"actionsLoading":t===sn.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===sn.Namespace?"namespaces":t===sn.Source?"sources":t===sn.Destination?"destinations":t===sn.Action?"actions":t===sn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===sn.Namespace?"namespaces":t===sn.Source?"sources":t===sn.Destination?"destinations":t===sn.Action?"actions":t===sn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(so(t))===JSON.stringify(so(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===sn.Namespace?"namespaces":t===sn.Source?"sources":t===sn.Destination?"destinations":t===sn.Action?"actions":t===sn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===sn.Source?JSON.stringify(so(n))===JSON.stringify(so(e)):so(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:[]})}})),ii=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),ai=gt(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:ii})),ri=gt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),si=gt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),li=gt((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)}))}})),ci=(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},di=gt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>ci(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>ci(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===sn.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}})),pi=gt(e=>({selectedConnection:null,setSelectedConnection:t=>e({selectedConnection:t}),selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),ui={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},mi=(e,t)=>e.destinationType.type!==t.destinationType.type,hi=gt(e=>({...ui,setFetchedAllNamespaces:t=>e({fetchedAllNamespaces:t}),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=>mi(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=>mi(e,t))})),clearStore:()=>e(()=>({...ui}))})),gi={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8854FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{600:"#F576A2"},orange:{600:"#F29142"}}},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"}},xi={v2:gi.v2,darkMode:!0,colors:{...gi.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:gi.font_family},$i={v2:gi.v2,darkMode:!1,colors:{...gi.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:gi.font_family},fi=e=>e?xi:$i;Dt('@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}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const bi={in:{left:Ot`
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,CodeAttributesIcon as s,CustomInstrumentationIcon as l,HeadersCollectionIcon as c,PayloadCollectionIcon as d,JavaLogo as p,GoLogo as u,NodejsLogo as h,PythonLogo as m,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as $,PhpLogo as f,RubyLogo as b,RustLogo as y,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as C,PostgresLogo as E,RedisLogo as S,KafkaLogo as A,AlaudaLogo as D,AlibabaCloudLogo as T,AppDynamicsLogo as N,AxiomLogo as I,AzureBlobLogo as z,AzureMonitorLogo as O,BetterStackLogo as F,BonreeLogo as _,CauselyLogo as R,ChecklyLogo as L,ChronosphereLogo as P,ClickhouseLogo as B,AwsCloudwatchLogo as M,CoralogixLogo as j,Dash0Logo as U,DatadogLogo as W,OpenTelemetryLogo as V,DynatraceLogo as H,ElasticApmLogo as q,ElasticSearchLogo as G,GoogleCloudPlatformLogo as K,GrafanaLogo as J,GreptimeLogo as Y,GroundcoverLogo as X,HoneycombLogo as Q,HyperDxLogo as Z,InstanaLogo as ee,JaegerLogo as te,KloudmateLogo as oe,Last9Logo as ne,LightstepLogo as ie,LogzioLogo as ae,LokiLogo as re,LumigoLogo as se,MiddlewareLogo as le,NewRelicLogo as ce,ObserveLogo as de,OdigosLogo as pe,OneUptimeLogo as ue,OpenObserveLogo as he,OpsVerseLogo as me,OracleLogo as ge,PrometheusLogo as xe,QrynLogo as $e,GigapipeLogo as fe,QuickwitLogo as be,AwsS3Logo as ye,SeqLogo as we,SignozLogo as ke,SplunkLogo as ve,SumoLogicLogo as Ce,TelemetryHubLogo as Ee,TempoLogo as Se,TingyunLogo as Ae,TraceloopLogo as De,UptraceLogo as Te,VictoriaMetricsLogo as Ne,AwsXrayLogo as Ie,NamespacesIcon as ze,SourceIcon as Oe,DestinationIcon as Fe,ActionIcon as _e,InstrumentationRuleIcon as Re,LogsIcon as Le,MetricsIcon as Pe,TracesIcon as Be,VmLogo as Me,ISquareIcon as je,ExclamationCircleIcon as Ue,ExclamationTriangleIcon as We,VSquareIcon as Ve,XSquareIcon as He,QuestionCircleIcon as qe,ArrowIcon as Ge,VIcon as Ke,CopyIcon as Je,MinusIcon as Ye,ListIcon as Xe,CodeIcon as Qe,ExtendArrowIcon as Ze,PlusIcon as et,EditIcon as tt,EditedIcon as ot,SortArrowsIcon as nt,NotebookIcon as it,XIcon as at,EyeClosedIcon as rt,EyeOpenIcon as st,NoDataIcon as lt,SearchIcon as ct,TrashIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotIcon as mt}from"../icons.js";import{create as gt}from"zustand";import xt,{Fragment as $t,useMemo as ft,forwardRef as bt,useState as yt,useEffect as wt,useRef as kt,useCallback as vt,memo as Ct}from"react";import Et from"javascript-time-ago";import{p as St,c as At,s as Dt,u as Tt,e as Nt}from"./vendor-55cc654c.js";import It,{ThemeProvider as zt,keyframes as Ot,useTheme as Ft,css as _t}from"styled-components";import{Handle as Rt,Position as Lt,ReactFlow as Pt,Controls as Bt}from"@xyflow/react";import Mt,{createPortal as jt}from"react-dom";import{Highlight as Ut,themes as Wt}from"prism-react-renderer";import{ErrorBoundary as Vt}from"react-error-boundary";import Ht from"lottie-react";const qt=gt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var Gt,Kt,Jt,Yt,Xt,Qt,Zt,eo,to,oo,no,io,ao,ro,so,lo,co,po,uo,ho,mo,go,xo,$o,fo,bo,yo,wo,ko,vo,Co,Eo,So,Ao,Do,To,No,Io,zo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Gt||(Gt={})),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"}(Kt||(Kt={})),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"}(Jt||(Jt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Yt||(Yt={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Xt||(Xt={})),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"}(Zt||(Zt={})),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"}(eo||(eo={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(to||(to={})),function(e){e.K8s="k8s",e.Vm="vm"}(oo||(oo={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(no||(no={})),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"}(io||(io={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(ao||(ao={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(ro||(ro={})),function(e){e.DataStream="DataStream"}(so||(so={})),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"}(lo||(lo={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(co||(co={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(po||(po={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(uo||(uo={})),function(e){e.Loading="loading",e.Disabled="disabled"}(ho||(ho={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(mo||(mo={})),function(e){e.Ascending="asc",e.Descending="desc"}(go||(go={})),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"}(xo||(xo={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}($o||($o={})),function(e){e.Labeled="labeled"}(fo||(fo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(bo||(bo={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.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"}(yo||(yo={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(wo||(wo={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(ko||(ko={})),function(e){e.HeaderKeys="headerKeys"}(vo||(vo={})),function(e){e.Java="java",e.Golang="golang"}(Co||(Co={}));class Oo{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class Fo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(Eo||(Eo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(So||(So={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Ao||(Ao={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Do||(Do={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(To||(To={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(No||(No={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.DeploymentConfig="DeploymentConfig"}(Io||(Io={})),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"}(zo||(zo={}));const _o=s=>{const l=s?.toLowerCase(),c=l?.includes(Gt.Samplers),d=l===Gt.Attributes;return c?e:d?t:{[Kt.K8sAttributes]:n,[Kt.AddClusterInfo]:i,[Kt.DeleteAttributes]:a,[Kt.PiiMasking]:t,[Kt.RenameAttributes]:r,[Kt.ErrorSampler]:e,[Kt.ProbabilisticSampler]:e,[Kt.LatencySampler]:e,[Kt.ServiceNameSampler]:e,[Kt.SpanAttributeSampler]:e}[s]||o},Ro=[{label:"Attributes",icon:_o(Gt.Attributes),items:[{type:Kt.K8sAttributes,icon:_o(Kt.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[No.Traces,No.Metrics,No.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Kt.AddClusterInfo,icon:_o(Kt.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[No.Traces,No.Metrics,No.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:Kt.DeleteAttributes,icon:_o(Kt.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[No.Traces,No.Metrics,No.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:Kt.RenameAttributes,icon:_o(Kt.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[No.Traces,No.Metrics,No.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:Kt.PiiMasking,icon:_o(Kt.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[No.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:_o(Gt.Samplers),items:[{type:Kt.ErrorSampler,icon:_o(Gt.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[No.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Kt.LatencySampler,icon:_o(Gt.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[No.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:Kt.ProbabilisticSampler,icon:_o(Gt.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[No.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Kt.ServiceNameSampler,icon:_o(Gt.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[No.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Kt.SpanAttributeSampler,icon:_o(Gt.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[No.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."}]}],Lo={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."}},Po=e=>({[wo.CodeAttributes]:s,[wo.CustomInstrumentation]:l,[wo.HeadersCollection]:c,[wo.PayloadCollection]:d,[wo.UnknownType]:o}[e]||o),Bo=[{type:wo.CodeAttributes,icon:Po(wo.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:[io.Go,io.Python]},{type:wo.CustomInstrumentation,icon:Po(wo.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:[io.Go,io.Java]},{type:wo.HeadersCollection,icon:Po(wo.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:[io.Go,io.Java,io.JavaScript]},{type:wo.PayloadCollection,icon:Po(wo.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:[io.Go]}],Mo=[{id:No.Logs,value:"Logs"},{id:No.Metrics,value:"Metrics"},{id:No.Traces,value:"Traces"}],jo=e=>e.charAt(0).toUpperCase()+e.slice(1),Uo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[n]=JSON.stringify(t(a)):e[n]="object"==typeof a&&null!==a?JSON.stringify(o(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(o(i)):e[n]=i}return e},{})};var Wo;!function(e){e.SIGNALS="SIGNALS"}(Wo||(Wo={}));const Vo=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,a]=e;if(n===Wo.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=o.find(e=>e.name===n);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}},Ho=e=>JSON.parse(JSON.stringify(e)),qo=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},Go=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},Ko=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Jo=(e,t)=>{let o=[...e];return t.namespaces?.length&&(o=o.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(o=o.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(o=o.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(o=o.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:o})=>t===`${e}#${o}`)))),t.onlyErrors&&(o=o.filter(e=>!!e.conditions?.find(e=>e.status===po.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},Yo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Gn&&!e.dataStreamNames.length):[],Xo=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],a=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${a}[${t}]`;null!==e&&"object"==typeof e?Xo(e,n,o):o[n]=e}):o[a]=i:Xo(i,a,o)}return o},Qo=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]}`},Zo=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`}},en=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},tn=e=>{const t=e?.filter(({status:e})=>e===po.Error),o=e?.filter(({status:e})=>e===po.Warning),n=e?.filter(({status:e})=>e===ho.Disabled),i=e?.filter(({status:e})=>e===ho.Loading),a=t.length>0,r=o.length>0,s=n.length>0;return{errors:t,hasErrors:a,warnings:o,hasWarnings:r,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?po.Error:r?po.Warning:s?po.Info:void 0}},on=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},nn=e=>({[io.Java]:p,[io.Go]:u,[io.JavaScript]:h,[io.Python]:m,[io.DotNet]:g,[io.CSharp]:x,[io.CPlusPlus]:$,[io.Php]:f,[io.Ruby]:b,[io.Rust]:y,[io.Swift]:w,[io.Elixir]:k,[io.MySql]:v,[io.Nginx]:C,[io.Postgres]:E,[io.Redis]:S,[io.Kafka]:A,[io.Ignored]:o,[io.Unknown]:o,[io.Processing]:o,[io.NoContainers]:o,[io.NoRunningPods]:o}[e]||o),an=e=>e?.map(({language:e})=>nn(e))||[],rn=(e,t)=>{const o={[yo.Alauda]:D,[yo.AlibabaCloud]:T,[yo.AppDynamics]:N,[yo.Axiom]:I,[yo.AzureBlob]:z,[yo.AzureMonitor]:O,[yo.BetterStack]:F,[yo.Bonree]:_,[yo.Causely]:R,[yo.Checkly]:L,[yo.Chronosphere]:P,[yo.ClickHouse]:B,[yo.CloudWatch]:M,[yo.Coralogix]:j,[yo.Dash0]:U,[yo.Datadog]:W,[yo.Dynamic]:V,[yo.Dynatrace]:H,[yo.ElasticApm]:q,[yo.ElasticSearch]:G,[yo.GoogleCloud]:K,[yo.GoogleCloudOTLP]:K,[yo.GrafanaCloudLoki]:J,[yo.GrafanaCloudPrometheus]:J,[yo.GrafanaCloudTempo]:J,[yo.Greptime]:Y,[yo.Groundcover]:X,[yo.Honeycomb]:Q,[yo.HyperDX]:Z,[yo.Instana]:ee,[yo.Jaeger]:te,[yo.Kafka]:A,[yo.Kloudmate]:oe,[yo.Last9]:ne,[yo.Lightstep]:ie,[yo.LogzIo]:ae,[yo.Loki]:re,[yo.Lumigo]:se,[yo.Middleware]:le,[yo.NewRelic]:ce,[yo.Observe]:de,[yo.Odigos]:pe,[yo.OneUptime]:ue,[yo.OpenObserve]:he,[yo.Opsverse]:me,[yo.Oracle]:ge,[yo.OTLP]:V,[yo.OTLPHttp]:V,[yo.Prometheus]:xe,[yo.Qryn]:$e,[yo.QrynOss]:fe,[yo.Quickwit]:be,[yo.S3]:ye,[yo.Seq]:we,[yo.Signoz]:ke,[yo.Splunk]:ve,[yo.SplunkSapm]:ve,[yo.SplunkOtlp]:ve,[yo.SumoLogic]:Ce,[yo.TelemetryHub]:Ee,[yo.Tempo]:Se,[yo.Tingyun]:Ae,[yo.Traceloop]:De,[yo.Uptrace]:Te,[yo.VictoriaMetrics]:Ne,[yo.VictoriaMetricsCloud]:Ne,[yo.XRay]:Ie}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},sn=e=>({[ro.Namespace]:ze,[ro.Source]:Oe,[ro.Destination]:Fe,[ro.Action]:_e,[ro.InstrumentationRule]:Re}[e]),ln=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,cn=(e,t,o)=>{const{extended:n,prioritizeDisplayName:i}=o||{};let a="",r="";switch(t){case ro.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case ro.Source:const o=e;a=o.name,r=o.otelServiceName;break;case ro.Action:const n=e;a=n.type,r=n.name;break;case ro.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case ro.Namespace:const s=e;a=s.name,r=s.name}return n?a+(r&&r!==a?` (${r})`:""):i&&r||a},dn=(e,t)=>{if(t===ro.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},pn=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?io.Processing:io.NoRunningPods;const n=o?.filter(e=>e.language!==io.Ignored);if(!n.length)return io.NoContainers;const i=n.find(e=>e.language!==io.Unknown);return i?i.language:io.Unknown},un=(e,t,o)=>(t===ro.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},hn=e=>({[No.Logs]:Le,[No.Metrics]:Pe,[No.Traces]:Be}[e]),mn=e=>e?{[oo.K8s]:n,[oo.Vm]:Me}[e]:pe,gn=e=>e?{[oo.K8s]:"Kubernetes Cluster",[oo.Vm]:"Virtual Machine"}[e]:"Unknown",xn=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...xn(e,t,o)),i}):[]},$n=(e,t)=>{if(t===ro.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},fn=(e,t,o)=>{switch(t){case po.Default:return e.v2.colors.purple[o];case po.Info:return e.v2.colors.blue[o];case po.Error:return e.v2.colors.red[o];case po.Warning:return e.v2.colors.yellow[o];case po.Success:return e.v2.colors.green[o];case mo.Disabled:case mo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},bn=e=>{switch(e){case So.Updating:case Ao.Pending:case Do.ContainerCreating:case To.Waiting:return po.Info;case So.Healthy:case Ao.Succeeded:case Ao.Running:case Do.Running:case To.Running:return po.Success;case So.Degraded:return po.Warning;case So.Failed:case Ao.Failed:case Do.Error:case Do.CrashLoopBackOff:case Do.CreateContainerError:case Do.CreateContainerConfigError:case Do.ErrImagePull:case Do.ErrImageNeverPull:case Do.ImagePullBackOff:case Do.InvalidImageName:case Do.RegistryUnavailable:case Do.NetworkNotReady:case Do.OOMKilled:case Do.ContainerCannotRun:case To.Terminated:case Do.DeadlineExceeded:case Do.StartError:return po.Error;case So.Down:case Do.Completed:return mo.Disabled;case So.Unknown:case Ao.Unknown:default:return mo.Unknown}},yn=(e,t)=>({[po.Default]:o=>pe({fill:fn(t,e,"300"),...o}),[po.Info]:o=>je({fill:fn(t,e,"400"),...o}),[po.Error]:o=>Ue({fill:fn(t,e,"500"),...o}),[po.Warning]:o=>We({fill:fn(t,e,"500"),...o}),[po.Success]:o=>Ve({fill:fn(t,e,"500"),...o}),[mo.Disabled]:o=>He({fill:fn(t,e,"400"),...o}),[mo.Unknown]:o=>qe({fill:fn(t,e,"300"),...o})}[e]),wn=e=>{switch(e){case zo.Success:return po.Success;case zo.Error:case zo.Failure:return po.Error;case zo.Notice:return po.Warning;case zo.Unsupported:case zo.Unknown:return po.Info;case zo.Irrelevant:case zo.Disabled:return ho.Disabled;case zo.Waiting:return ho.Loading;case zo.Pending:default:return po.Default}},kn=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},vn=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Cn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const En=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Cn(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},Sn=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==po.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},An=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Dn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Tn=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Nn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},In=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,zn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,On=e=>zn.test(e),Fn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",_n=e=>e?.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:i})=>({status:e,type:Fn(t),reason:o?Fn(o):"",message:n,lastTransitionTime:i}))||[],Rn=(e,t)=>{const o=Cn(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Ln=e=>e?Object.keys(e).filter(t=>e[t]):[],Pn=e=>e.replace(/[^\d]/g,""),Bn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Mn=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},jn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>jn(e)))}else if("object"==typeof n&&null!==n){const e=jn(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},Un=(e,t=2)=>JSON.stringify(e||{},null,t),Wn=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Vn=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Hn={[io.Go]:"Go",[io.Java]:"Java",[io.JavaScript]:"Node.js",[io.Python]:"Python",[io.DotNet]:".NET",[io.CSharp]:"C#",[io.CPlusPlus]:"C++",[io.Php]:"PHP",[io.Ruby]:"Ruby",[io.Rust]:"Rust",[io.Swift]:"Swift",[io.Elixir]:"Elixir",[io.MySql]:"MySQL",[io.Nginx]:"Nginx",[io.Postgres]:"PostgreSQL",[io.Redis]:"Redis",[io.Kafka]:"Kafka",[io.Ignored]:"Ignored",[io.Unknown]:"Unknown",[io.Processing]:"Processing",[io.NoContainers]:"No Containers",[io.NoRunningPods]:"No Running Pods"},qn=[{id:io.Go,value:Hn[io.Go],icon:nn(io.Go)},{id:io.Java,value:Hn[io.Java],icon:nn(io.Java)},{id:io.JavaScript,value:Hn[io.JavaScript],icon:nn(io.JavaScript)},{id:io.Python,value:Hn[io.Python],icon:nn(io.Python)},{id:io.Php,value:Hn[io.Php],icon:nn(io.Php)},{id:io.Ruby,value:Hn[io.Ruby],icon:nn(io.Ruby)},{id:io.Rust,value:Hn[io.Rust],icon:nn(io.Rust)},{id:io.DotNet,value:Hn[io.DotNet],icon:nn(io.DotNet)},{id:io.CSharp,value:Hn[io.CSharp],icon:nn(io.CSharp)},{id:io.CPlusPlus,value:Hn[io.CPlusPlus],icon:nn(io.CPlusPlus)},{id:io.Swift,value:Hn[io.Swift],icon:nn(io.Swift)},{id:io.Elixir,value:Hn[io.Elixir],icon:nn(io.Elixir)}],Gn="default",Kn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Jn={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)'},Yn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"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?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes"},Xn={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"},Qn=6048e5,Zn=gt()(St(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Kn.DARK_MODE,storage:"undefined"!=typeof window?At(()=>localStorage):void 0})),ei={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},ti=gt(e=>({...ei,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(ei)})),oi=gt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),ni=gt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const n=t===ro.Namespace?"namespacesLoading":t===ro.Source?"sourcesLoading":t===ro.Destination?"destinationsLoading":t===ro.Action?"actionsLoading":t===ro.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:o})},setEntities:(t,o)=>{const n=t===ro.Namespace?"namespaces":t===ro.Source?"sources":t===ro.Destination?"destinations":t===ro.Action?"actions":t===ro.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:o})},addEntities:(t,o)=>{const n=t===ro.Namespace?"namespaces":t===ro.Source?"sources":t===ro.Destination?"destinations":t===ro.Action?"actions":t===ro.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]];return o.forEach(e=>{const o=t.findIndex(t=>JSON.stringify(ln(t))===JSON.stringify(ln(e)));-1!==o?t[o]={...t[o],...e}:t.push(e)}),{[n]:t}})},removeEntities:(t,o)=>{const n=t===ro.Namespace?"namespaces":t===ro.Source?"sources":t===ro.Destination?"destinations":t===ro.Action?"actions":t===ro.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const i=[...e[n]];return o.forEach(e=>{const o=i.findIndex(o=>t===ro.Source?JSON.stringify(ln(o))===JSON.stringify(ln(e)):ln(o)===e);-1!==o&&i.splice(o,1)}),{[n]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),ii=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),ai=gt(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:ii})),ri=gt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,o)=>e({[t]:o})})),si=gt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),li=gt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,i=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}})),ci=(e,t)=>{const o=e.entityType===t.entityType,n="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 o&&n},di=gt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>ci(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>ci(e,t)))})),isThisPending:e=>{const{pendingItems:o}=t();let n=!1;for(let t=0;t<o.length;t++){const i=o[t];if(i.entityType===e.entityType&&(!e.entityId||(i.entityType===ro.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))){n=!0;break}}return n}})),pi=gt(e=>({selectedConnection:null,setSelectedConnection:t=>e({selectedConnection:t}),selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),ui={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},hi=(e,t)=>e.destinationType.type!==t.destinationType.type,mi=gt(e=>({...ui,setFetchedAllNamespaces:t=>e({fetchedAllNamespaces:t}),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=>hi(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>hi(e,t))})),clearStore:()=>e(()=>({...ui}))})),gi={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8854FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{600:"#F576A2"},orange:{600:"#F29142"}}},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"}},xi={v2:gi.v2,darkMode:!0,colors:{...gi.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:gi.font_family},$i={v2:gi.v2,darkMode:!1,colors:{...gi.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:gi.font_family},fi=e=>e?xi:$i;Dt('@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}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const bi={in:{left:Ot`
2
2
  from { transform: translateX(-100%); }
3
3
  to { transform: translateX(0); }
4
4
  `,right:Ot`
@@ -72,7 +72,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
72
72
  to {
73
73
  opacity: 0;
74
74
  }
75
- `},Ci={Provider:({children:e})=>{const{darkMode:t}=Zo();return xt.createElement(zt,{theme:fi(t)},e)},useTheme:Ft,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,fade:vi,ping:wi,progress:yi,shimmer:ki,slide:bi})};var Ei,Si;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(Ei||(Ei={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(Si||(Si={}));const Ai=It.p`
75
+ `},Ci={Provider:({children:e})=>{const{darkMode:t}=Zn();return xt.createElement(zt,{theme:fi(t)},e)},useTheme:Ft,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,fade:vi,ping:wi,progress:yi,shimmer:ki,slide:bi})};var Ei,Si;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(Ei||(Ei={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(Si||(Si={}));const Ai=It.p`
76
76
  margin: 0;
77
77
  color: ${({$color:e,theme:t})=>e||t.v2.colors.white[500]};
78
78
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -80,7 +80,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
80
80
  font-weight: ${({$weight:e})=>e};
81
81
  text-align: ${({$align:e})=>e};
82
82
  text-transform: ${({$transform:e})=>e};
83
- line-height: ${({theme:e,$lineHeight:t,$size:n})=>t||`${e.v2.text.size[n]+2}px`};
83
+ line-height: ${({theme:e,$lineHeight:t,$size:o})=>t||`${e.v2.text.size[o]+2}px`};
84
84
 
85
85
  ${({$nowrap:e})=>e&&_t`
86
86
  text-wrap: nowrap;
@@ -88,16 +88,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
88
88
  overflow: hidden;
89
89
  text-overflow: ellipsis;
90
90
  `}
91
- `,Di=({children:e,variant:t=Ei.P,color:n,size:o=Si.S,weight:i=400,align:a="left",lineHeight:r,transform:s,nowrap:l,...c})=>xt.createElement(Ai,{as:t,$color:n,$size:o,$weight:i,$align:a,$lineHeight:r,$transform:s,$nowrap:l,...c},e),Ti=It.div`
91
+ `,Di=({children:e,variant:t=Ei.P,color:o,size:n=Si.S,weight:i=400,align:a="left",lineHeight:r,transform:s,nowrap:l,...c})=>xt.createElement(Ai,{as:t,$color:o,$size:n,$weight:i,$align:a,$lineHeight:r,$transform:s,$nowrap:l,...c},e),Ti=It.div`
92
92
  display: flex;
93
93
  align-items: center;
94
94
  justify-content: center;
95
95
  gap: 4px;
96
96
  width: fit-content;
97
- padding: 6px 12px;
97
+ padding: 4px 8px;
98
98
  border-radius: 100px;
99
99
  background-color: ${({$backgroundColor:e})=>e};
100
- `,Ni=({label:e,leftIcon:t,rightIcon:n,status:o,useSecondaryTone:i=!1})=>{const a=Ci.useTheme(),r=o?[hn.Disabled].includes(o)?fo(a,o,"700"):[hn.Unknown].includes(o)?fo(a,o,"600"):fo(a,o,i?"700":"500"):a.v2.colors.grey[200],s=[hn.Disabled].includes(o)?a.v2.colors.grey[400]:[pn.Warning,pn.Success].includes(o)?a.v2.colors.black[500]:a.v2.colors.white[500];return xt.createElement(Ti,{$backgroundColor:r},t&&xt.createElement(t,{fill:s,size:14}),xt.createElement(Di,{color:s,size:Si.XXS,nowrap:!0},e),n&&xt.createElement(n,{fill:s,size:14}))},Ii=It.div`
100
+ `,Ni=({label:e,leftIcon:t,rightIcon:o,status:n,useSecondaryTone:i=!1})=>{const a=Ci.useTheme(),r=n?[mo.Disabled].includes(n)?fn(a,n,"700"):[mo.Unknown].includes(n)?fn(a,n,"600"):fn(a,n,i?"700":"500"):a.v2.colors.grey[200],s=[mo.Disabled].includes(n)?a.v2.colors.grey[400]:[po.Error,po.Warning,po.Success].includes(n)?a.v2.colors.black[500]:a.v2.colors.white[500];return xt.createElement(Ti,{$backgroundColor:r},t&&xt.createElement(t,{fill:s,size:14}),xt.createElement(Di,{color:s,size:Si.XXS,nowrap:!0},e),o&&xt.createElement(o,{fill:s,size:14}))},Ii=It.div`
101
101
  color: ${({$color:e,theme:t})=>e||t.text.secondary};
102
102
  font-size: ${({$size:e})=>void 0!==e?e:16}px;
103
103
  font-weight: ${({$weight:e})=>void 0!==e?e:300};
@@ -108,7 +108,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
108
108
  font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
109
109
  white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
110
110
  text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
111
- `,zi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})},Oi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Fi=(e,t)=>{const n=zi(e);n?.forEach((t,n)=>{e=e.replace(t.original,`LINK-${n}###`)});const o=Oi(e);return o?.forEach((t,n)=>{e=e.replace(t.original,`STRONG-${n}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[o,i]=e.split("###"),a=n?.[parseInt(o.replace("LINK-",""))];return xt.createElement($t,{key:e},xt.createElement("a",{href:a?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft}},a?.label),i?`${i} `:" ")}if(e.includes("STRONG-")){const[t,n]=e.split("###"),i=o?.[parseInt(t.replace("STRONG-",""))];return xt.createElement($t,{key:e},xt.createElement("strong",{style:{fontWeight:600}},i?.label),n?`${n} `:" ")}return e+" "})},_i=({children:e,color:t,size:n,weight:o,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=Ci.useTheme(),u=ft(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return xt.createElement(Ii,{$color:t,$size:n,$weight:o,$align:i,$family:a,$opacity:r,$decoration:s,$transform:l,$nowrap:c,...d},u.length?u.map((e,t)=>xt.createElement($t,{key:`text-${t}-${e}`},Fi(e,p),t!==u.length-1?xt.createElement("br",null):null)):e)},Ri=Ot`
111
+ `,zi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,n]=e.split('"');return{original:e,href:o,label:n.replace("</a>","").replace(">","")}})},Oi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Fi=(e,t)=>{const o=zi(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const n=Oi(e);return n?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[n,i]=e.split("###"),a=o?.[parseInt(n.replace("LINK-",""))];return xt.createElement($t,{key:e},xt.createElement("a",{href:a?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft}},a?.label),i?`${i} `:" ")}if(e.includes("STRONG-")){const[t,o]=e.split("###"),i=n?.[parseInt(t.replace("STRONG-",""))];return xt.createElement($t,{key:e},xt.createElement("strong",{style:{fontWeight:600}},i?.label),o?`${o} `:" ")}return e+" "})},_i=({children:e,color:t,size:o,weight:n,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=Ci.useTheme(),u=ft(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return xt.createElement(Ii,{$color:t,$size:o,$weight:n,$align:i,$family:a,$opacity:r,$decoration:s,$transform:l,$nowrap:c,...d},u.length?u.map((e,t)=>xt.createElement($t,{key:`text-${t}-${e}`},Fi(e,p),t!==u.length-1?xt.createElement("br",null):null)):e)},Ri=Ot`
112
112
  0% {
113
113
  background-position: 0% 50%;
114
114
  }
@@ -121,7 +121,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
121
121
  background-clip: text;
122
122
  color: transparent;
123
123
  animation: ${Ri} 1s reverse linear infinite;
124
- `,Bi=({children:e="Loading...",textColor:t,stripColor:n,...o})=>{const i=Ci.useTheme(),a=t||i.v2.colors.white[500],r=n||i.v2.colors.black[500];return xt.createElement(Li,{$textColor:a,$stripColor:r,...o},e)};var Mi,Pi;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Mi||(Mi={})),function(e){e.S="small",e.M="medium",e.L="large"}(Pi||(Pi={}));const ji=It.button`
124
+ `,Pi=({children:e="Loading...",textColor:t,stripColor:o,...n})=>{const i=Ci.useTheme(),a=t||i.v2.colors.white[500],r=o||i.v2.colors.black[500];return xt.createElement(Li,{$textColor:a,$stripColor:r,...n},e)};var Bi,Mi;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Bi||(Bi={})),function(e){e.S="small",e.M="medium",e.L="large"}(Mi||(Mi={}));const ji=It.button`
125
125
  display: flex;
126
126
  align-items: center;
127
127
  justify-content: center;
@@ -131,14 +131,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
131
131
  `}
132
132
  border: none;
133
133
  border-radius: 6px;
134
- ${({$size:e,$hasLabel:t})=>e===Pi.S?_t`
134
+ ${({$size:e,$hasLabel:t})=>e===Mi.S?_t`
135
135
  height: 32px;
136
136
  ${t?_t`
137
137
  padding: 8px 16px;
138
138
  `:_t`
139
139
  width: 32px;
140
140
  `}
141
- `:e===Pi.M?_t`
141
+ `:e===Mi.M?_t`
142
142
  height: 38px;
143
143
  ${t?_t`
144
144
  padding: 8px 18px;
@@ -163,7 +163,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
163
163
  ${({$withShadow:e})=>e?_t`
164
164
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
165
165
  `:""}
166
- ${({$variant:e})=>e===Mi.Primary?_t`
166
+ ${({$variant:e})=>e===Bi.Primary?_t`
167
167
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
168
168
  &:hover {
169
169
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -171,7 +171,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
171
171
  &:active {
172
172
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
173
173
  }
174
- `:e===Mi.Secondary?_t`
174
+ `:e===Bi.Secondary?_t`
175
175
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
176
176
  &:hover {
177
177
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -179,7 +179,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
179
179
  &:active {
180
180
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
181
181
  }
182
- `:e===Mi.Text?_t`
182
+ `:e===Bi.Text?_t`
183
183
  background-color: transparent;
184
184
  &:hover {
185
185
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -189,7 +189,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
189
189
  }
190
190
  `:""}
191
191
  }
192
- `,Ui=bt(({label:e,leftIcon:t,rightIcon:n,variant:o=Mi.Primary,size:i=Pi.M,iconSize:a,loading:r,fullWidth:s,withShadow:l,disabled:c,onClick:d,...p},u)=>{const m=Ci.useTheme(),h=a||(i===Pi.L?18:16),g=i===Pi.L?Si.S:Si.XS,x=c?m.v2.colors.grey[400]:m.v2.colors.white[500];return xt.createElement(ji,{ref:u,$variant:o,$size:i,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:c,onClick:r?void 0:e=>{e.stopPropagation(),d?.(e)},...p},t&&xt.createElement(t,{size:h,fill:x}),r?xt.createElement(Bi,{size:m.v2.text.size[g],textColor:x}):e?xt.createElement(Di,{size:g,weight:500,color:x},e):null,n&&xt.createElement(n,{size:h,fill:x}))});Ui.displayName=Ui.name;const Wi=It.button`
192
+ `,Ui=bt(({label:e,leftIcon:t,rightIcon:o,variant:n=Bi.Primary,size:i=Mi.M,iconSize:a,loading:r,fullWidth:s,withShadow:l,disabled:c,onClick:d,...p},u)=>{const h=Ci.useTheme(),m=a||(i===Mi.L?18:16),g=i===Mi.L?Si.S:Si.XS,x=c?h.v2.colors.grey[400]:h.v2.colors.white[500];return xt.createElement(ji,{ref:u,$variant:n,$size:i,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:c,onClick:r?void 0:e=>{e.stopPropagation(),d?.(e)},...p},t&&xt.createElement(t,{size:m,fill:x}),r?xt.createElement(Pi,{size:h.v2.text.size[g],textColor:x}):e?xt.createElement(Di,{size:g,weight:500,color:x,nowrap:!0},e):null,o&&xt.createElement(o,{size:m,fill:x}))});Ui.displayName=Ui.name;const Wi=It.button`
193
193
  width: 100%;
194
194
  padding: 0;
195
195
  padding-right: 12px;
@@ -226,12 +226,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
226
226
  justify-content: space-between;
227
227
  align-items: center;
228
228
  gap: 8px;
229
- `,qi=({label:e,icon:t,loading:n,onClick:o})=>{const[i,a]=yt(!1);return xt.createElement(Wi,{$hovered:i,type:"button",disabled:n,onClick:o,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},xt.createElement(Vi,{$hovered:i,$hasIcon:!!t},t&&xt.createElement(t,{size:36})),xt.createElement(Hi,{$hasIcon:!!t},n?xt.createElement(Bi,{size:16}):xt.createElement(Di,{variant:Ei.Span,align:"center"},e),xt.createElement(Ge,{rotate:90,size:24})))},Gi=It.div`
229
+ `,qi=({label:e,icon:t,loading:o,onClick:n})=>{const[i,a]=yt(!1);return xt.createElement(Wi,{$hovered:i,type:"button",disabled:o,onClick:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},xt.createElement(Vi,{$hovered:i,$hasIcon:!!t},t&&xt.createElement(t,{size:36})),xt.createElement(Hi,{$hasIcon:!!t},o?xt.createElement(Pi,{size:16}):xt.createElement(Di,{variant:Ei.Span,align:"center"},e),xt.createElement(Ge,{rotate:90,size:24})))},Gi=It.div`
230
230
  padding: 4px 0 0 0;
231
- `,Ji=It(_i)`
231
+ `,Ki=It(_i)`
232
232
  font-size: 12px;
233
233
  color: ${({theme:e})=>e.text.error};
234
- `,Ki=({children:e})=>xt.createElement(Gi,null,xt.createElement(Ji,null,e)),Yi=It.div`
234
+ `,Ji=({children:e})=>xt.createElement(Gi,null,xt.createElement(Ki,null,e)),Yi=It.div`
235
235
  position: relative;
236
236
  width: 100%;
237
237
  `,Xi=It.div`
@@ -297,10 +297,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
297
297
  }
298
298
  `,ta=It.div`
299
299
  width: 100%;
300
- `,na=It.div`
300
+ `,oa=It.div`
301
301
  display: flex;
302
302
  width: 100%;
303
- `,oa=It.div`
303
+ `,na=It.div`
304
304
  width: 1px;
305
305
  height: 52px;
306
306
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
@@ -322,7 +322,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
322
322
  margin: 4px 0 0 0;
323
323
  list-style: none;
324
324
  width: 100%;
325
- `,la=(e,t)=>t?e.reduce((e,n)=>{if(n.items){const o=la(n.items,t);o.length&&e.push({...n,items:o})}else n.label.toLowerCase().includes(t.toLowerCase())&&e.push(n);return e},[]):e,ca=({placeholder:e="Type to search...",options:t,selectedOption:n,onOptionSelect:o,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...c})=>{const[d,p]=yt(n?.label||i||""),[u,m]=yt(la(t,d)),[h,g]=yt(!1);yt(-1),wt(()=>m(la(t,d)),[t]);const x=n?.icon,$=e=>{e&&(p(e.label),a?.(e.label)),g(!e),o?.(e)};return xt.createElement(Yi,{style:r},xt.createElement(Xi,{$hasError:!!l},x&&xt.createElement(x,null),xt.createElement(Qi,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const n=e.target.value,o=la(t,n),i=1===o.length&&o[0].label===n?o[0]:void 0;p(n),a?.(n),m(o),$(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})),h&&u.length?xt.createElement(Zi,null,u.map(e=>xt.createElement(da,{key:e.type||e.label,option:e,onClick:$}))):null,l&&xt.createElement(Ki,null,l))},da=({option:e,renderIcon:t=!0,onClick:n})=>{const o=!!e.items&&e.items.length>0,i=e.icon;return xt.createElement(ea,{"data-id":`option-${e.type||e.label}`,$isList:o,onMouseDown:()=>o?null:n(e)},i&&t&&xt.createElement(i,null),xt.createElement(ta,null,xt.createElement(ia,null,xt.createElement(aa,null,e.label),xt.createElement(ra,null,e.description)),o&&xt.createElement(sa,null,e.items?.map(e=>xt.createElement(na,{key:e.type||e.label},xt.createElement(oa,null),xt.createElement(da,{option:e,renderIcon:!1,onClick:n}))))))},pa=It.span`
325
+ `,la=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const n=la(o.items,t);n.length&&e.push({...o,items:n})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,ca=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:n,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...c})=>{const[d,p]=yt(o?.label||i||""),[u,h]=yt(la(t,d)),[m,g]=yt(!1);yt(-1),wt(()=>h(la(t,d)),[t]);const x=o?.icon,$=e=>{e&&(p(e.label),a?.(e.label)),g(!e),n?.(e)};return xt.createElement(Yi,{style:r},xt.createElement(Xi,{$hasError:!!l},x&&xt.createElement(x,null),xt.createElement(Qi,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,n=la(t,o),i=1===n.length&&n[0].label===o?n[0]:void 0;p(o),a?.(o),h(n),$(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})),m&&u.length?xt.createElement(Zi,null,u.map(e=>xt.createElement(da,{key:e.type||e.label,option:e,onClick:$}))):null,l&&xt.createElement(Ji,null,l))},da=({option:e,renderIcon:t=!0,onClick:o})=>{const n=!!e.items&&e.items.length>0,i=e.icon;return xt.createElement(ea,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:o(e)},i&&t&&xt.createElement(i,null),xt.createElement(ta,null,xt.createElement(ia,null,xt.createElement(aa,null,e.label),xt.createElement(ra,null,e.description)),n&&xt.createElement(sa,null,e.items?.map(e=>xt.createElement(oa,{key:e.type||e.label},xt.createElement(na,null),xt.createElement(da,{option:e,renderIcon:!1,onClick:o}))))))},pa=It.span`
326
326
  display: flex;
327
327
  align-items: center;
328
328
  justify-content: center;
@@ -334,15 +334,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
334
334
  gap: 2px;
335
335
 
336
336
  border-radius: 50px;
337
- border: 1px solid ${({theme:e,$filled:t,$status:n})=>n?e.text[n]+(t?"":Ci.opacity.hex["050"]):t?"transparent":e.colors.border};
338
- background-color: ${({theme:e,$filled:t,$status:n})=>t?n?e.colors[n]:e.colors.majestic_blue:"transparent"};
339
- color: ${({theme:e,$filled:t,$status:n})=>t&&n?e.text.secondary:t?e.text.white:n?e.text[n]:e.text.grey};
337
+ border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":Ci.opacity.hex["050"]):t?"transparent":e.colors.border};
338
+ background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
339
+ color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
340
340
  font-family: ${({theme:e})=>e.font_family.secondary};
341
341
  font-size: 12px;
342
342
  white-space: nowrap;
343
343
 
344
- ${({theme:e,$filled:t,$status:n,$clickable:o})=>o&&`&:hover {\n cursor: pointer;\n background-color: ${n?e.colors[n]+Ci.opacity.hex["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Ci.opacity.hex["020"]};\n }`}
345
- `,ua=({label:e,filled:t,status:n,withIcon:o,onClick:i})=>{const a=Ci.useTheme(),r=n&&o?yo(n,a):null;return xt.createElement(pa,{$filled:t,$status:n,$clickable:!!i,onClick:i},!!r&&xt.createElement(r,null),e)},ma=It.div`
344
+ ${({theme:e,$filled:t,$status:o,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+Ci.opacity.hex["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Ci.opacity.hex["020"]};\n }`}
345
+ `,ua=({label:e,filled:t,status:o,withIcon:n,onClick:i})=>{const a=Ci.useTheme(),r=o&&n?yn(o,a):null;return xt.createElement(pa,{$filled:t,$status:o,$clickable:!!i,onClick:i},!!r&&xt.createElement(r,null),e)},ha=It.div`
346
346
  height: fit-content;
347
347
  border: 2px solid transparent;
348
348
  padding: 2px;
@@ -352,7 +352,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
352
352
  &:focus-within {
353
353
  border-color: ${({theme:e})=>e.colors.secondary};
354
354
  }
355
- `,ha={primary:_t`
355
+ `,ma={primary:_t`
356
356
  border: 1px solid ${({theme:e})=>e.text.secondary+Ci.opacity.hex["024"]};
357
357
  background: ${({theme:e})=>e.colors.secondary};
358
358
  color: ${({theme:e})=>e.colors.primary};
@@ -415,7 +415,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
415
415
  text-decoration: underline;
416
416
  font-weight: 600;
417
417
  outline: none;
418
- ${({$variant:e})=>e&&ha[e]}
418
+ ${({$variant:e})=>e&&ma[e]}
419
419
  ${({disabled:e,$variant:t})=>e&&_t`
420
420
  opacity: 0.5;
421
421
  cursor: not-allowed;
@@ -428,7 +428,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
428
428
  }
429
429
  `:""}
430
430
  `}
431
- `,xa=({children:e,variant:t="primary",onClick:n,...o})=>{const i=kt(null);return xt.createElement(ma,{$variant:t},xt.createElement(ga,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},$a=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>xt.createElement(gp,{isOpen:e,noOverlay:t,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:pn.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),fa=It.div`
431
+ `,xa=({children:e,variant:t="primary",onClick:o,...n})=>{const i=kt(null);return xt.createElement(ha,{$variant:t},xt.createElement(ga,{ref:i,$variant:t,onClick:e=>{o&&o(e),i.current?.blur()},...n},e))},$a=({isOpen:e,noOverlay:t,name:o,onApprove:n,onDeny:i})=>xt.createElement(gp,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:po.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),fa=It.div`
432
432
  position: absolute;
433
433
  ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
434
434
  ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
@@ -451,7 +451,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
451
451
  `,wa=It.div`
452
452
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
453
453
  border-top: 1px solid ${({theme:e})=>e.colors.border};
454
- `,ka=bt(({isOpen:e,asPortal:t,...n},o)=>{const i=ft(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return xt.createElement(fa,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&xt.createElement(ba,{$padding:c},u),xt.createElement(ya,{$padding:c},e),m&&xt.createElement(wa,{$padding:c},m))},[o,n,t]);return e?t?Pt.createPortal(i,document.body):i:null});ka.displayName=ka.name;const va=e=>{function t(){return void 0===e?{}:Hn(e)}const[n,o]=yt(t()),[i,a]=yt({}),r=ft(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return wt(()=>{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=Hn(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({})}}},Ca={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}},Ea=()=>{const{addNotification:e}=li(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=va(Ca);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":Ao(t)&&(o[e]=Ko.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:pn.Warning,title:n.alertTitle,message:Ko.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...Hn(Ca),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 Kt.CollectContainerAttributes:case Kt.CollectReplicaSetAttributes:case Kt.CollectWorkloadId:case Kt.CollectClusterId:case Kt.LabelsAttributes:case Kt.AnnotationsAttributes:case Kt.ClusterAttributes:case Kt.OverwriteExistingValues:case Kt.AttributeNamesToDelete:case Kt.Renames:case Kt.PiiCategories:case Kt.FallbackSamplingRatio:case Kt.SamplingPercentage:case Kt.EndpointsFilters:case Kt.ServicesNameFilters:case Kt.AttributeFilters:n.fields||(n.fields={}),n.fields[e]=t}}),o(void 0,void 0,n)}}},Sa=e=>{wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Aa=()=>{const{setCurrentModal:e}=si(),{setDrawerType:t,setDrawerEntityId:n}=ni(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=qt();return{onClickNode:(r,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(a===l?(o(null),i(null)):(o(c),i(l)),p){case sn.Source:case sn.Destination:case sn.Action:case sn.InstrumentationRule:t(p),n(d);break;case bn.AddSource:e(sn.Source);break;case bn.AddDestination:e(sn.Destination);break;case bn.AddAction:e(sn.Action);break;case bn.AddRule:e(sn.InstrumentationRule)}}}},Da=()=>{const{setDrawerType:e,setDrawerEntityId:t}=ni(),{markAsDismissed:n,markAsSeen:o}=li();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:c}=a||{};if(s&&l)switch(s){case sn.InstrumentationRule:e(sn.InstrumentationRule),t(co(l,sn.InstrumentationRule));break;case sn.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(sn.Source),t(co(l,sn.Source));break;case sn.Action:e(sn.Action),t(co(l,sn.Action));break;case sn.Destination:case"Destination":e(sn.Destination),t(co(l,sn.Destination))}o(r),c&&n(r)}}},Ta=()=>{const{selectedConnection:e}=pi();return{selectedConnection:e,isVm:e?.type===nn.Vm}},Na=()=>{const e=kt(null),[t,n]=yt(0),[o,i]=yt(0);return wt(()=>{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}};var Ia;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Ia||(Ia={}));const za=It.div`
454
+ `,ka=bt(({isOpen:e,asPortal:t,...o},n)=>{const i=ft(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return xt.createElement(fa,{ref:n,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g},u&&xt.createElement(ba,{$padding:c},u),xt.createElement(ya,{$padding:c},e),h&&xt.createElement(wa,{$padding:c},h))},[n,o,t]);return e?t?Mt.createPortal(i,document.body):i:null});ka.displayName=ka.name;const va=e=>{function t(){return void 0===e?{}:Ho(e)}const[o,n]=yt(t()),[i,a]=yt({}),r=ft(()=>void 0!==e&&JSON.stringify(o)!==JSON.stringify(e),[e,o]);return wt(()=>{void 0!==e&&"{}"===JSON.stringify(o)&&n(t())},[e,o]),{formData:o,formErrors:i,isFormDirty:r,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const n=Ho(e);let i=n;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,n})}else o&&n({...o})},handleErrorChange:(e,t,o)=>{e?a(o=>({...o,[e]:t})):o&&a({...o})},resetFormData:()=>{n(t()),a({})}}},Ca={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}},Ea=()=>{const{addNotification:e}=li(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:i,resetFormData:a}=va(Ca);return{formData:t,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:o=>{const n={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":An(t)&&(n[e]=Jn.FIELD_IS_REQUIRED)}}),a=!Object.values(n).length,!a&&o?.withAlert&&e({type:po.Warning,title:o.alertTitle,message:Jn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const o={...Ho(Ca),type:e};Object.entries(t).forEach(([e,t])=>{if(t)switch(e){case"actionName":o.name=t;break;case"type":case"notes":case"signals":case"disabled":o[e]=t;break;case Jt.CollectContainerAttributes:case Jt.CollectReplicaSetAttributes:case Jt.CollectWorkloadId:case Jt.CollectClusterId:case Jt.LabelsAttributes:case Jt.AnnotationsAttributes:case Jt.ClusterAttributes:case Jt.OverwriteExistingValues:case Jt.AttributeNamesToDelete:case Jt.Renames:case Jt.PiiCategories:case Jt.FallbackSamplingRatio:case Jt.SamplingPercentage:case Jt.EndpointsFilters:case Jt.ServicesNameFilters:case Jt.AttributeFilters:o.fields||(o.fields={}),o.fields[e]=t}}),n(void 0,void 0,o)}}},Sa=e=>{wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Aa=()=>{const{setCurrentModal:e}=si(),{setDrawerType:t,setDrawerEntityId:o}=oi(),{setActiveNodeType:n,setActiveNodeId:i,activeNodeId:a}=qt();return{onClickNode:(r,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(a===l?(n(null),i(null)):(n(c),i(l)),p){case ro.Source:case ro.Destination:case ro.Action:case ro.InstrumentationRule:t(p),o(d);break;case bo.AddSource:e(ro.Source);break;case bo.AddDestination:e(ro.Destination);break;case bo.AddAction:e(ro.Action);break;case bo.AddRule:e(ro.InstrumentationRule)}}}},Da=()=>{const{setDrawerType:e,setDrawerEntityId:t}=oi(),{markAsDismissed:o,markAsSeen:n}=li();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:c}=a||{};if(s&&l)switch(s){case ro.InstrumentationRule:e(ro.InstrumentationRule),t(dn(l,ro.InstrumentationRule));break;case ro.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(ro.Source),t(dn(l,ro.Source));break;case ro.Action:e(ro.Action),t(dn(l,ro.Action));break;case ro.Destination:case"Destination":e(ro.Destination),t(dn(l,ro.Destination))}n(r),c&&o(r)}}},Ta=()=>{const{selectedConnection:e}=pi();return{selectedConnection:e,isVm:e?.type===oo.Vm}},Na=()=>{const e=kt(null),[t,o]=yt(0),[n,i]=yt(0);return wt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();o(t),i(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Ia;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Ia||(Ia={}));const za=It.div`
455
455
  width: ${({$size:e})=>1.5*e}px;
456
456
  height: ${({$size:e})=>1.5*e}px;
457
457
  border-radius: 100%;
@@ -462,11 +462,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
462
462
  &:hover {
463
463
  background: ${({theme:e})=>e.v2.colors.silver[800]};
464
464
  }
465
- `,Oa=({icon:e,size:t=Ia.S,onClick:n})=>xt.createElement("div",null,xt.createElement(za,{$size:t,onClick:e=>{n&&(e.stopPropagation(),n(e))}},xt.createElement(e,{size:t}))),Fa=({onDone:e}={})=>{const[t,n]=yt(!1),[o,i]=yt(-1),a=vt(async(o,a)=>{if(!t){if(n(!0),void 0!==a&&i(a),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(o)}catch(e){}else{const e=document.createElement("textarea");e.value=o,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:vt(({value:e,size:n})=>{const o=t?Je:Ke;return xt.createElement(Oa,{icon:o,size:n,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:o,clickCopy:a}},_a=e=>{const{addNotification:t}=li(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=va(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?Do(n.name)?o.name=void 0:(i=!1,o.name=Ko.ILLEGAL_K8S_LABEL):(i=!1,o.name=Ko.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:pn.Warning,title:e.alertTitle,message:Ko.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...Hn(e),name:t};o(void 0,void 0,n)}}},Ra={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},La=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=li(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=va(Ra),[c,d]=yt([]),[p,u]=yt([]);return wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===cn.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}):[])},[c,n]),wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),wt(()=>{if(t&&0===Lo(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]=Ko.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:pn.Warning,title:e.alertTitle,message:Ko.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={...Hn(Ra),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:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Ba=({items:e,rowHeight:t})=>{const n=kt(null),o=Tt({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>n.current,estimateSize:()=>t,overscan:10});return{overflowRef:n,listHeight:o.getTotalSize(),listItems:o.getVirtualItems()}},Ma={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[En.HttpRequest]:null,[En.HttpResponse]:null,[En.DbQuery]:null,[En.Messaging]:null},codeAttributes:{[kn.Column]:null,[kn.FilePath]:null,[kn.Function]:null,[kn.LineNumber]:null,[kn.Namespace]:null,[kn.StackTrace]:null},headersCollection:null,customInstrumentations:{[Cn.Java]:null,[Cn.Golang]:null}},Pa=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=va(Ma);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={...Hn(Ma),ruleName:e,notes:t,disabled:o};i&&(l.payloadCollection={[En.HttpRequest]:i[En.HttpRequest]?{}:null,[En.HttpResponse]:i[En.HttpResponse]?{}:null,[En.DbQuery]:i[En.DbQuery]?{}:null,[En.Messaging]:i[En.Messaging]?{}:null}),a&&(l.codeAttributes={[kn.Column]:a[kn.Column]||null,[kn.FilePath]:a[kn.FilePath]||null,[kn.Function]:a[kn.Function]||null,[kn.LineNumber]:a[kn.LineNumber]||null,[kn.Namespace]:a[kn.Namespace]||null,[kn.StackTrace]:a[kn.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[Cn.Java]:s[Cn.Java]||null,[Cn.Golang]:s[Cn.Golang]||null}),n(void 0,void 0,l)}}},ja=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(wt(()=>{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),Ua=(e,t)=>{wt(()=>{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])},Wa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=kt(null),[i,a]=yt(!1),[r,s]=yt({top:0,left:0});return Ua(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,c=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),c>=a/2&&(c+=-(o.current?.clientWidth||t)),s({top:l,left:c})}}},Va=()=>({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)}}),Ha={otelServiceName:"",currentStreamName:""},qa=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=va(Ha);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...Hn(Ha),otelServiceName:e||t||""};n(void 0,void 0,o)}}},Ga=(e,t,n)=>{const o="boolean"==typeof n,i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,a=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,r=(o?n:e.selected&&(!i||a))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:r,numberOfInstances:e.numberOfInstances}},Ja=(e,t,n)=>({...Ga(e,t,n),currentStreamName:t}),Ka=(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}},Ya=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=oi(),{selectedStreamName:o}=ti(),i=kt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=hi(),[d,p]=yt(s),[u,m]=yt(""),[h,g]=yt(!1),[x,$]=yt([]),[f,b]=yt(""),[y,w]=yt(r),[k,v]=yt(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>Ja(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=Ja(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),C=async(e,n)=>{if(t){if(m(e.name),x.includes(e.name))v(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;const s=r.map(e=>Ga(e,o));$(e=>[...e,a]),l({...hi.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>Ja(e,o,n))}))}m("")}};wt(()=>(i.current=!0,n?.length&&!hi.getState().fetchedAllNamespaces&&(p(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||Ka(e,o)),t}),(async()=>{for await(const e of n)i.current&&await C(e)})(),i.current&&c(!0)),()=>{i.current=!1}),[n,o]);const[E,S]=yt(""),[A,D]=yt(sn.Source),[T,N]=yt(!1),[I,z]=yt(!1),O=ft(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,sn.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,sn.Source)&&(!T||t.selected)&&(e=>!I||(e.numberOfInstances||0)>0)(t));(!E||E&&i.length)&&(t[n]=i)}),t},[k,E,A,T,I]);return{fetchingNamespace:u,fetchedNamespaces:x,availableSources:d,filteredNamespacesAndSources:O,getApiSourcesPayload:()=>{const e={};return Object.entries(k).forEach(([t,n])=>{n.forEach(n=>{const o=d[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(y).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:f,onSelectNamespace:(e,t)=>{const o=n.find(t=>t.name===e);if(o){const n="boolean"==typeof t;b(t=>t!==e||n?e:""),C(o,t),n&&g(!1)}},selectedAllNamespaces:h,onSelectAllNamespaces:e=>{g(e),n.forEach(t=>C(t,e))},selectedSources:k,onSelectSource:(e,t)=>{const n=t||f;if(!n)return;const i=[...k[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});v(e=>({...e,[n]:i})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const i=t||f;if(!i)return;const a=n.find(e=>e.name===t);a&&w(t=>({...t,[i]:Ka(a,o,e)}))},searchText:E,setSearchText:S,searchBy:A,setSearchBy:D,showSelectedOnly:T,setShowSelectedOnly:N,showRunningOnly:I,setShowRunningOnly:z}};try{Et.addDefaultLocale(Nt)}catch(e){}const Xa=()=>{const e=kt(new Et(Nt.locale));return{formatTimeAgo:vt(t=>{let n=new Date;try{n=new Date(t)}catch(e){return""}return e.current.format(n)},[])}},Qa=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=It(e)`
466
- animation-name: ${({$isEntering:e,$isLeaving:o})=>e?t:o?n:"none"};
467
- animation-duration: ${o}ms;
465
+ `,Oa=({icon:e,size:t=Ia.S,onClick:o})=>xt.createElement("div",null,xt.createElement(za,{$size:t,onClick:e=>{o&&(e.stopPropagation(),o(e))}},xt.createElement(e,{size:t}))),Fa=({onDone:e}={})=>{const[t,o]=yt(!1),[n,i]=yt(-1),a=vt(async(n,a)=>{if(!t){if(o(!0),void 0!==a&&i(a),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)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:vt(({value:e,size:o})=>{const n=t?Ke:Je;return xt.createElement(Oa,{icon:n,size:o,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:n,clickCopy:a}},_a=e=>{const{addNotification:t}=li(),{formData:o,handleFormChange:n,formErrors:i,handleErrorChange:a,resetFormData:r}=va(e);return{formData:o,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:e=>{const n={};let i=!0;return o.name?Dn(o.name)?n.name=void 0:(i=!1,n.name=Jn.ILLEGAL_K8S_LABEL):(i=!1,n.name=Jn.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:po.Warning,title:e.alertTitle,message:Jn.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const o={...Ho(e),name:t};n(void 0,void 0,o)}}},Ra={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},La=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=li(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=va(Ra),[c,d]=yt([]),[p,u]=yt([]);return wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:n,displayName:i,initialValue:a,renderCondition:r}=e;if(o===lo.Dropdown){const e=Cn(n,{}),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:o,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:o,title:i,value:a,renderCondition:r,...Cn(n,{})}})).map(e=>{if(o){const t="string"==typeof o?Cn(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),wt(()=>{if(t&&0===Ln(i.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;r("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,i]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:n,required:i})=>{i&&!n&&(o=!1,t[e]=Jn.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:po.Warning,title:e.alertTitle,message:Jn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:n,fields:i})=>{const a={...Ho(Ra),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(Cn(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Pa=({items:e,rowHeight:t})=>{const o=kt(null),n=Tt({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>o.current,estimateSize:()=>t,overscan:Math.ceil(.05*e.length)});return{overflowRef:o,listHeight:n.getTotalSize(),listItems:n.getVirtualItems()}},Ba={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Eo.HttpRequest]:null,[Eo.HttpResponse]:null,[Eo.DbQuery]:null,[Eo.Messaging]:null},codeAttributes:{[ko.Column]:null,[ko.FilePath]:null,[ko.Function]:null,[ko.LineNumber]:null,[ko.Namespace]:null,[ko.StackTrace]:null},headersCollection:null,customInstrumentations:{[Co.Java]:null,[Co.Golang]:null}},Ma=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=va(Ba);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...Ho(Ba),ruleName:e,notes:t,disabled:n};i&&(l.payloadCollection={[Eo.HttpRequest]:i[Eo.HttpRequest]?{}:null,[Eo.HttpResponse]:i[Eo.HttpResponse]?{}:null,[Eo.DbQuery]:i[Eo.DbQuery]?{}:null,[Eo.Messaging]:i[Eo.Messaging]?{}:null}),a&&(l.codeAttributes={[ko.Column]:a[ko.Column]||null,[ko.FilePath]:a[ko.FilePath]||null,[ko.Function]:a[ko.Function]||null,[ko.LineNumber]:a[ko.LineNumber]||null,[ko.Namespace]:a[ko.Namespace]||null,[ko.StackTrace]:a[ko.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[Co.Java]:s[Co.Java]||null,[Co.Golang]:s[Co.Golang]||null}),o(void 0,void 0,l)}}},ja=({active:e,key:t,withAltKey:o,withCtrlKey:n,withShiftKey:i,withMetaKey:a},r)=>(wt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!n||n&&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,o,n,i,a,r]),null),Ua=(e,t)=>{wt(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},Wa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const n=kt(null),[i,a]=yt(!1),[r,s]=yt({top:0,left:0});return Ua(n,()=>{i&&(a(!1),o?.())}),{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(o,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,c=o;l>=r/2&&(l+=-(n.current?.clientHeight||e)),c>=a/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Va=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Cn(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Ha={otelServiceName:"",currentStreamName:""},qa=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=va(Ha);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...Ho(Ha),otelServiceName:e||t||""};o(void 0,void 0,n)}}},Ga=(e,t,o)=>{const n="boolean"==typeof o,i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,a=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,r=(n?o:e.selected&&(!i||a))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:r,numberOfInstances:e.numberOfInstances}},Ka=(e,t,o)=>({...Ga(e,t,o),currentStreamName:t}),Ja=(e,t,o)=>{const n="boolean"==typeof o,i=e.dataStreamNames?.includes(t),a=(n?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!n)&&a,currentStreamName:t}},Ya=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:o}=ni(),{selectedStreamName:n}=ti(),i=kt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=mi(),[d,p]=yt(s),[u,h]=yt(""),[m,g]=yt(!1),[x,$]=yt([]),[f,b]=yt(""),[y,w]=yt(r),[k,v]=yt(((e,t,o)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Ka(e,o))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=Ka(t,o);-1!==i?n[e][i]=a:n[e].push(a)})}),n})(s,a,n)),C=async(e,o)=>{if(t){if(h(e.name),x.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof o?o:e.selected,currentStreamName:n}))}));else{const{data:i}=await t({variables:{namespaceName:e.name}}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>Ga(e,n));$(e=>[...e,a]),l({...mi.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof o&&e[a]?.length?e[a]:r.map(e=>Ka(e,n,o))}))}h("")}};wt(()=>(i.current=!0,o?.length&&!mi.getState().fetchedAllNamespaces&&(p(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return o.forEach(e=>t[e.name]=t[e.name]||Ja(e,n)),t}),(async()=>{for await(const e of o)i.current&&await C(e)})(),i.current&&c(!0)),()=>{i.current=!1}),[o,n]);const[E,S]=yt(""),[A,D]=yt(ro.Source),[T,N]=yt(!1),[I,z]=yt(!1),O=ft(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,ro.Namespace)).forEach(([o,n])=>{const i=n.filter(t=>e(t.name,ro.Source)&&(!T||t.selected)&&(e=>!I||(e.numberOfInstances||0)>0)(t));(!E||E&&i.length)&&(t[o]=i)}),t},[k,E,A,T,I]);return{fetchingNamespace:u,fetchedNamespaces:x,availableSources:d,filteredNamespacesAndSources:O,getApiSourcesPayload:()=>{const e={};return Object.entries(k).forEach(([t,o])=>{o.forEach(o=>{const n=d[t]?.find(e=>e.name===o.name&&e.kind===o.kind);n?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(y).forEach(([t,i])=>{const a=o?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(n)||!i.selected&&a?.dataStreamNames?.includes(n))&&(e[t]=i)}),e},selectedNamespace:f,onSelectNamespace:(e,t)=>{const n=o.find(t=>t.name===e);if(n){const o="boolean"==typeof t;b(t=>t!==e||o?e:""),C(n,t),o&&g(!1)}},selectedAllNamespaces:m,onSelectAllNamespaces:e=>{g(e),o.forEach(t=>C(t,e))},selectedSources:k,onSelectSource:(e,t)=>{const o=t||f;if(!o)return;const i=[...k[o]||[]],a=i.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});v(e=>({...e,[o]:i})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const i=t||f;if(!i)return;const a=o.find(e=>e.name===t);a&&w(t=>({...t,[i]:Ja(a,n,e)}))},searchText:E,setSearchText:S,searchBy:A,setSearchBy:D,showSelectedOnly:T,setShowSelectedOnly:N,showRunningOnly:I,setShowRunningOnly:z}};try{Et.addDefaultLocale(Nt)}catch(e){}const Xa=()=>{const e=kt(new Et(Nt.locale));return{formatTimeAgo:vt(t=>{let o=new Date;try{o=new Date(t)}catch(e){return""}return e.current.format(o)},[])}},Qa=({container:e,animateIn:t,animateOut:o,duration:n=300})=>{const i=It(e)`
466
+ animation-name: ${({$isEntering:e,$isLeaving:n})=>e?t:n?o:"none"};
467
+ animation-duration: ${n}ms;
468
468
  animation-fill-mode: forwards;
469
- `;return vt(({children:e,enter:t,...n})=>{const[a,r]=yt(!1);return wt(()=>{const e=setTimeout(()=>r(t),o+50);return()=>clearTimeout(e)},[t,o]),t||a?xt.createElement(i,{$isEntering:t,$isLeaving:!t&&a,...n},e):null},[])},Za=It.div`
469
+ `;return vt(({children:e,enter:t,...o})=>{const[a,r]=yt(!1);return wt(()=>{const e=setTimeout(()=>r(t),n+50);return()=>clearTimeout(e)},[t,n]),t||a?xt.createElement(i,{$isEntering:t,$isLeaving:!t&&a,...o},e):null},[])},Za=It.div`
470
470
  flex: 1;
471
471
  align-self: stretch;
472
472
  display: flex;
@@ -480,6 +480,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
480
480
  align-items: ${({$alignItems:e="center"})=>e};
481
481
  justify-content: ${({$justifyContent:e="unset"})=>e};
482
482
  gap: ${({$gap:e=2})=>e}px;
483
+ padding: ${({$padding:e="unset"})=>e};
483
484
  `,tr=It.div`
484
485
  display: flex;
485
486
  flex-direction: column;
@@ -487,12 +488,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
487
488
  align-items: ${({$alignItems:e="unset"})=>e};
488
489
  justify-content: ${({$justifyContent:e="unset"})=>e};
489
490
  gap: ${({$gap:e=2})=>e}px;
490
- `,nr=It(tr)`
491
+ padding: ${({$padding:e="unset"})=>e};
492
+ `,or=It(tr)`
491
493
  width: ${({$width:e})=>e||"100%"};
492
494
  height: ${({$height:e})=>e||"unset"};
493
495
  align-items: center;
494
496
  justify-content: center;
495
- `,or=It.div`
497
+ `,nr=It.div`
496
498
  display: flex;
497
499
  flex-direction: column;
498
500
  padding: 12px;
@@ -532,27 +534,27 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
532
534
  `,dr=It(_i)`
533
535
  word-break: break-word;
534
536
  white-space: pre-wrap;
535
- `,pr=({withIcon:e,titleIcon:t,title:n,text:o,timestamp:i,children:a})=>{const r=Ci.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=Wa({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(o?.length||0),300)}),u=ft(()=>!!zi(o||"")?.length,[o]),m=e=>{const{type:t,clientX:n,clientY:o}=e;u?p(d.left||n,d.top||o):p(n,o),c("mouseleave"!==t)};return o?xt.createElement(cr,{onMouseEnter:m,onMouseMove:m,onMouseLeave:m},a,e&&xt.createElement(qe,{fill:r.v2.colors.silver[200]}),xt.createElement(ka,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?m:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!n)&&xt.createElement(er,{style:{marginBottom:"4px"},$gap:4},t&&xt.createElement(t,{size:12,fill:r.text.secondary}),n&&xt.createElement(_i,{size:12,color:r.text.secondary},n)),xt.createElement(dr,{size:12,color:r.text.info},o),!!i&&xt.createElement(_i,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):xt.createElement(xt.Fragment,null,a)},ur=It.div`
537
+ `,pr=({withIcon:e,titleIcon:t,title:o,text:n,timestamp:i,children:a})=>{const r=Ci.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=Wa({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(n?.length||0),300)}),u=ft(()=>!!zi(n||"")?.length,[n]),h=e=>{const{type:t,clientX:o,clientY:n}=e;u?p(d.left||o,d.top||n):p(o,n),c("mouseleave"!==t)};return n?xt.createElement(cr,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h},a,e&&xt.createElement(qe,{fill:r.v2.colors.silver[200]}),xt.createElement(ka,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?h:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!o)&&xt.createElement(er,{style:{marginBottom:"4px"},$gap:4},t&&xt.createElement(t,{size:12,fill:r.text.secondary}),o&&xt.createElement(_i,{size:12,color:r.text.secondary},o)),xt.createElement(dr,{size:12,color:r.text.info},n),!!i&&xt.createElement(_i,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):xt.createElement(xt.Fragment,null,a)},ur=It.div`
536
538
  display: flex;
537
539
  align-items: center;
538
540
  gap: 8px;
539
541
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
540
542
  opacity: ${({$disabled:e})=>e?.6:1};
541
- `,mr=It.div`
543
+ `,hr=It.div`
542
544
  width: 18px;
543
545
  height: 18px;
544
546
  border-radius: 6px;
545
- border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:n})=>e||t?"transparent":n.colors.secondary};
547
+ border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e||t?"transparent":o.colors.secondary};
546
548
  display: flex;
547
549
  align-items: center;
548
550
  justify-content: center;
549
- background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:n})=>e?n.colors.majestic_blue:t?n.colors.majestic_blue_soft:n.colors.secondary+Ci.opacity.hex["020"]};
551
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+Ci.opacity.hex["020"]};
550
552
  pointer-events: ${({$disabled:e})=>e?"none":"auto"};
551
553
  transition: border 0.3s;
552
554
  &:hover {
553
555
  border: 1px solid ${({theme:e})=>e.colors.secondary};
554
556
  }
555
- `,hr=({title:e,titleColor:t,tooltip:n,value:o=!1,partiallyChecked:i=!1,onChange:a,disabled:r,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Ci.useTheme(),[p,u]=yt(o);return wt(()=>u(o),[o]),xt.createElement(tr,null,xt.createElement(ur,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:r,onClick:e=>{r||(c||e.stopPropagation(),a?a(!!i||!p):u(e=>!!i||!e))},style:s},xt.createElement(mr,{$isChecked:p,$isPartiallyChecked:i,$disabled:r},i?xt.createElement(Ye,{fill:d.text.white}):p?xt.createElement(Je,{fill:d.text.white}):null),e&&xt.createElement(pr,{text:n,withIcon:!0},xt.createElement(_i,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"}},e))),!!l&&xt.createElement(Ki,null,l))},gr=It(er)`
557
+ `,mr=({title:e,titleColor:t,tooltip:o,value:n=!1,partiallyChecked:i=!1,onChange:a,disabled:r,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Ci.useTheme(),[p,u]=yt(n);return wt(()=>u(n),[n]),xt.createElement(tr,null,xt.createElement(ur,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:r,onClick:e=>{r||(c||e.stopPropagation(),a?a(!!i||!p):u(e=>!!i||!e))},style:s},xt.createElement(hr,{$isChecked:p,$isPartiallyChecked:i,$disabled:r},i?xt.createElement(Ye,{fill:d.text.white}):p?xt.createElement(Ke,{fill:d.text.white}):null),e&&xt.createElement(pr,{text:o,withIcon:!0},xt.createElement(_i,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"}},e))),!!l&&xt.createElement(Ji,null,l))},gr=It(er)`
556
558
  gap: 0;
557
559
  `,xr=It.button`
558
560
  padding: 4px 8px;
@@ -589,16 +591,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
589
591
  /* Fallback for older browsers */
590
592
  -ms-word-break: break-all;
591
593
  font-size: 12px;
592
- `,Cr=({language:e,code:t,theme:n,flatten:o,pretty:i})=>{const{darkMode:a}=Ci.useTheme(),r=n?Wt[n]:a?Wt.palenight:Wt.vsLight;let s="";if("json"===e){const e=Co(t,{}),n=jo(e);s=Uo(o?Xn(n):n)}else s=t;return i&&"json"===e?xt.createElement(Er,{darkMode:a,str:s}):xt.createElement(Ut,{theme:r||(a?Wt.palenight:Wt.vsLight),language:e,code:s},({getLineProps:e,getTokenProps:t,tokens:n})=>xt.createElement("pre",null,n.map((n,o)=>xt.createElement("div",{key:`line-${o}`,...e({line:n})},n.map((e,n)=>xt.createElement(vr,{key:`line-${o}-token-${n}`,...t({token:e})}))))))},Er=({darkMode:e,str:t})=>{const n=Ci.useTheme();return xt.createElement(Ut,{theme:e?Wt.palenight:Wt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:o})=>xt.createElement(fr,null,xt.createElement(br,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]?xt.createElement($t,{key:`line-${i}`},((e,t)=>{const o=new Array(2).fill(e=>xt.createElement(yr,{...e},xt.createElement(wr,null),xt.createElement(wr,null)));return xt.createElement($t,null,o.map((e,o)=>xt.createElement(e,{key:`empty-row-${t}-${o}`,style:0===o?{borderBottom:`1px solid ${n.colors.border}`}:{}})))})(0,i),xt.createElement(yr,{...r},xt.createElement(wr,null,xt.createElement(kr,null,a[0].content)),xt.createElement(wr,null))):2===a.length?xt.createElement(yr,{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 xt.createElement(pr,{key:`${o}-${i}-${n}`,withIcon:!0,text:i});case"status":if("none"===i)return xt.createElement("div",{key:`${o}-${i}-${n}`,style:{width:16,height:16}});let e=yo(i,t);return e||(e=yo(pn.Warning,t)),xt.createElement(e,{key:`${o}-${i}-${n}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,n),s=0===o;return xt.createElement(wr,{key:`line-${i}-token-${o}`},xt.createElement(er,null,xt.createElement(er,null,r),xt.createElement(vr,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},Sr={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 Ar(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 Sr[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Dr(e){const t=Ar(e);return`${t.value}${t.unit}`}const Tr=(()=>{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})(),Nr=({loading:e=!0,color:t,scale:n=1,speedMultiplier:o=1,cssOverride:i={},style:a={},...r})=>{const s=Ci.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:c}=Ar(2),d=c+4.2,p=d/2+d/5.5,u=4*d*n,m={position:"relative",width:`${u}px`,height:`${u}px`,scale:n,...a,...i},h=(e,t)=>({position:"absolute",width:Dr(1.5),height:Dr(4),borderRadius:Dr(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Tr} ${1.2/o}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return xt.createElement("span",{style:m,...r},xt.createElement("span",{style:{...h(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),xt.createElement("span",{style:{...h(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),xt.createElement("span",{style:{...h(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),xt.createElement("span",{style:{...h(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),xt.createElement("span",{style:{...h(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),xt.createElement("span",{style:{...h(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),xt.createElement("span",{style:{...h(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),xt.createElement("span",{style:{...h(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},Ir=It.div`
594
+ `,Cr=({language:e,code:t,theme:o,flatten:n,pretty:i})=>{const{darkMode:a}=Ci.useTheme(),r=o?Wt[o]:a?Wt.palenight:Wt.vsLight;let s="";if("json"===e){const e=Cn(t,{}),o=jn(e);s=Un(n?Xo(o):o)}else s=t;return i&&"json"===e?xt.createElement(Er,{darkMode:a,str:s}):xt.createElement(Ut,{theme:r||(a?Wt.palenight:Wt.vsLight),language:e,code:s},({getLineProps:e,getTokenProps:t,tokens:o})=>xt.createElement("pre",null,o.map((o,n)=>xt.createElement("div",{key:`line-${n}`,...e({line:o})},o.map((e,o)=>xt.createElement(vr,{key:`line-${n}-token-${o}`,...t({token:e})}))))))},Er=({darkMode:e,str:t})=>{const o=Ci.useTheme();return xt.createElement(Ut,{theme:e?Wt.palenight:Wt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:n})=>xt.createElement(fr,null,xt.createElement(br,null,n.map((n,i)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],n=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(n.split("@")[0])&&(o[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:n}})})(n),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?xt.createElement($t,{key:`line-${i}`},((e,t)=>{const n=new Array(2).fill(e=>xt.createElement(yr,{...e},xt.createElement(wr,null),xt.createElement(wr,null)));return xt.createElement($t,null,n.map((e,n)=>xt.createElement(e,{key:`empty-row-${t}-${n}`,style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}})))})(0,i),xt.createElement(yr,{...r},xt.createElement(wr,null,xt.createElement(kr,null,a[0].content)),xt.createElement(wr,null))):2===a.length?xt.createElement(yr,{key:`line-${i}`,...r},a.map((e,n)=>{const{text:a,components:r}=((e,t)=>{const[o,...n]=e.split("@");return{text:o,components:n?.map((e,o)=>{if(!e.includes("="))return null;const[n,i]=e.split("=");switch(n){case"tooltip":return xt.createElement(pr,{key:`${n}-${i}-${o}`,withIcon:!0,text:i});case"status":if("none"===i)return xt.createElement("div",{key:`${n}-${i}-${o}`,style:{width:16,height:16}});let e=yn(i,t);return e||(e=yn(po.Warning,t)),xt.createElement(e,{key:`${n}-${i}-${o}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===n;return xt.createElement(wr,{key:`line-${i}-token-${n}`},xt.createElement(er,null,xt.createElement(er,null,r),xt.createElement(vr,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},Sr={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 Ar(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const n=(e.match(/[^0-9]*$/)||"").toString();return Sr[n]?{value:t,unit:n}:{value:t,unit:"px"}}function Dr(e){const t=Ar(e);return`${t.value}${t.unit}`}const Tr=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),Nr=({loading:e=!0,color:t,scale:o=1,speedMultiplier:n=1,cssOverride:i={},style:a={},...r})=>{const s=Ci.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:c}=Ar(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...a,...i},m=(e,t)=>({position:"absolute",width:Dr(1.5),height:Dr(4),borderRadius:Dr(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Tr} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return xt.createElement("span",{style:h,...r},xt.createElement("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),xt.createElement("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),xt.createElement("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),xt.createElement("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),xt.createElement("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),xt.createElement("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),xt.createElement("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),xt.createElement("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},Ir=It.div`
593
595
  margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
594
596
  display: flex;
595
597
  align-items: center;
596
598
  justify-content: center;
597
- `,zr=({extend:e,size:t=14,align:n="center"})=>xt.createElement(Ir,{$align:n},xt.createElement(Ze,{size:t,rotate:e?180:0})),Or=It.div`
599
+ `,zr=({extend:e,size:t=14,align:o="center"})=>xt.createElement(Ir,{$align:o},xt.createElement(Ze,{size:t,rotate:e?180:0})),Or=It.div`
598
600
  border-radius: 24px;
599
- background-color: ${({theme:e,$status:t})=>t===pn.Error?e.text.error+Ci.opacity.hex["010"]:t===pn.Warning?e.text.warning+Ci.opacity.hex["010"]:e.colors.secondary+Ci.opacity.hex["005"]};
601
+ background-color: ${({theme:e,$status:t})=>t===po.Error?e.text.error+Ci.opacity.hex["010"]:t===po.Warning?e.text.warning+Ci.opacity.hex["010"]:e.colors.secondary+Ci.opacity.hex["005"]};
600
602
  &:hover {
601
- background-color: ${({theme:e,$status:t})=>t===pn.Error?e.text.error+Ci.opacity.hex["020"]:t===pn.Warning?e.text.warning+Ci.opacity.hex["020"]:e.colors.secondary+Ci.opacity.hex["010"]};
603
+ background-color: ${({theme:e,$status:t})=>t===po.Error?e.text.error+Ci.opacity.hex["020"]:t===po.Warning?e.text.warning+Ci.opacity.hex["020"]:e.colors.secondary+Ci.opacity.hex["010"]};
602
604
  }
603
605
  cursor: pointer;
604
606
  transition: background 0.3s;
@@ -618,30 +620,30 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
618
620
  gap: 12px;
619
621
  `,Lr=It(_i)`
620
622
  white-space: nowrap;
621
- `,Br=It(tr)`
623
+ `,Pr=It(tr)`
622
624
  width: 16px;
623
- `,Mr=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=Ci.useTheme(),[a,r]=yt(!1),s=ft(()=>_o(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:m}=ft(()=>to(s),[s]);wt(()=>{r(c||p||u||m)},[c,p,u,m]);const h=(!s.length||m)&&!c&&!p&&!u,g=c?pn.Error:p?pn.Warning:u?pn.Info:pn.Success,x=yo(g,i),$=c?t:p||u?n:h?"Loading...":o,f=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=vt(()=>r(e=>!e),[]);return xt.createElement(Or,{onClick:w,$status:g},xt.createElement(Fr,null,h?xt.createElement(Nr,null):xt.createElement(x,null),xt.createElement(_i,{color:f,size:14},$),xt.createElement(_i,{color:y,size:12,family:"secondary"},b),xt.createElement(zr,{extend:a,align:"right"})),a&&xt.createElement(_r,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===mn.Loading?()=>xt.createElement(Nr,{scale:.8}):e===mn.Disabled?yo(pn.Info,i):yo(e,i),l=e===mn.Disabled?i.text.info:e===pn.Error?i.text.error:e===pn.Warning?i.text.warning:i.text.info,c=e===mn.Disabled?i.text.info_secondary:e===pn.Error?i.text.error_secondary:e===pn.Warning?i.text.warning_secondary:i.text.info_secondary;return xt.createElement(Rr,{key:`condition-${r}`},xt.createElement(Br,null,xt.createElement(s,null)),xt.createElement(er,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},xt.createElement(_i,{color:l,size:12},xt.createElement(Lr,{color:c,size:12,weight:700},t),o||n),xt.createElement(Lr,{color:l,size:12},new Date(a).toLocaleString())))})))},Pr=It.div`
624
- width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
625
- height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
625
+ `,Br=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const i=Ci.useTheme(),[a,r]=yt(!1),s=ft(()=>_n(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=ft(()=>tn(s),[s]);wt(()=>{r(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?po.Error:p?po.Warning:u?po.Info:po.Success,x=yn(g,i),$=c?t:p||u?o:m?"Loading...":n,f=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=vt(()=>r(e=>!e),[]);return xt.createElement(Or,{onClick:w,$status:g},xt.createElement(Fr,null,m?xt.createElement(Nr,null):xt.createElement(x,null),xt.createElement(_i,{color:f,size:14},$),xt.createElement(_i,{color:y,size:12,family:"secondary"},b),xt.createElement(zr,{extend:a,align:"right"})),a&&xt.createElement(_r,null,s.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:a},r)=>{const s=e===ho.Loading?()=>xt.createElement(Nr,{scale:.8}):e===ho.Disabled?yn(po.Info,i):yn(e,i),l=e===ho.Disabled?i.text.info:e===po.Error?i.text.error:e===po.Warning?i.text.warning:i.text.info,c=e===ho.Disabled?i.text.info_secondary:e===po.Error?i.text.error_secondary:e===po.Warning?i.text.warning_secondary:i.text.info_secondary;return xt.createElement(Rr,{key:`condition-${r}`},xt.createElement(Pr,null,xt.createElement(s,null)),xt.createElement(er,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},xt.createElement(_i,{color:l,size:12},xt.createElement(Lr,{color:c,size:12,weight:700},t),n||o),xt.createElement(Lr,{color:l,size:12},new Date(a).toLocaleString())))})))},Mr=It.div`
626
+ width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
627
+ height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
626
628
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
627
629
  background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Ci.opacity.hex["050"]};
628
630
  opacity: ${({$opacity:e})=>e||1};
629
- `,jr=({orientation:e="horizontal",type:t,thickness:n=1,length:o,margin:i,opacity:a})=>xt.createElement(Pr,{$orientation:e,$type:t,$thickness:n,$length:o,$margin:i,$opacity:a}),Ur=It.div`
631
+ `,jr=({orientation:e="horizontal",type:t,thickness:o=1,length:n,margin:i,opacity:a})=>xt.createElement(Mr,{$orientation:e,$type:t,$thickness:o,$length:n,$margin:i,$opacity:a}),Ur=It.div`
630
632
  display: flex;
631
633
  align-items: center;
632
634
  gap: ${({$size:e})=>e/3}px;
633
- padding: ${({$size:e,$withBorder:t,$withBackground:n})=>t||n?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
635
+ padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
634
636
  width: ${({$width:e})=>e||"fit-content"};
635
637
  border-radius: 360px;
636
- border: ${({$withBorder:e,$status:t,theme:n})=>e?`1px solid ${n.text[t]+Ci.opacity.hex["050"]}`:"none"};
637
- background: ${({$withBackground:e,$status:t,theme:n})=>e?`linear-gradient(90deg, transparent 0%, ${n.text[t]+Ci.opacity.hex["030"]} 100%)`:"transparent"};
638
+ border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+Ci.opacity.hex["050"]}`:"none"};
639
+ background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+Ci.opacity.hex["030"]} 100%)`:"transparent"};
638
640
  `,Wr=It.div`
639
641
  display: flex;
640
642
  align-items: center;
641
643
  `,Vr=It.div`
642
644
  display: flex;
643
645
  align-items: center;
644
- `,Hr=({title:e,subtitle:t,status:n=pn.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Ci.useTheme(),u=[mn.Loading,mn.Disabled].includes(n)?pn.Info:n,m=o?()=>xt.createElement(o,{size:l+2,fill:p.text[u]}):n===mn.Loading?()=>xt.createElement(Nr,{scale:.8}):()=>yo(u,p)?.({size:l+2});return xt.createElement(Ur,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&xt.createElement(Wr,null,xt.createElement(m,null)),(!!e||!!t)&&xt.createElement(Vr,null,!!e&&xt.createElement(_i,{size:l,family:c,color:p.text[u],nowrap:d},e),!!e&&!!t&&xt.createElement(jr,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&xt.createElement(_i,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d},t)))},qr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=Ci.useTheme();return xt.createElement(xa,{onClick:t,variant:n,...i},xt.createElement(et,{fill:"primary"===n?a.text.primary:a.text.info}),xt.createElement(_i,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Xo.ADD))},Gr=It.button`
646
+ `,Hr=({title:e,subtitle:t,status:o=po.Default,forceIcon:n,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Ci.useTheme(),u=[ho.Loading,ho.Disabled].includes(o)?po.Info:o,h=n?()=>xt.createElement(n,{size:l+2,fill:p.text[u]}):o===ho.Loading?()=>xt.createElement(Nr,{scale:.8}):()=>yn(u,p)?.({size:l+2});return xt.createElement(Ur,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&xt.createElement(Wr,null,xt.createElement(h,null)),(!!e||!!t)&&xt.createElement(Vr,null,!!e&&xt.createElement(_i,{size:l,family:c,color:p.text[u],nowrap:d},e),!!e&&!!t&&xt.createElement(jr,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&xt.createElement(_i,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d},t)))},qr=({label:e,onClick:t,variant:o="tertiary",textProps:n,...i})=>{const a=Ci.useTheme();return xt.createElement(xa,{onClick:t,variant:o,...i},xt.createElement(et,{fill:"primary"===o?a.text.primary:a.text.info}),xt.createElement(_i,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?a.text.primary:void 0,...n},e||Xn.ADD))},Gr=It.button`
645
647
  position: relative;
646
648
  width: ${({$size:e})=>e}px;
647
649
  height: ${({$size:e})=>e}px;
@@ -655,7 +657,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
655
657
  &:hover {
656
658
  background-color: ${({theme:e,$backgroundColor:t})=>t?t+Ci.opacity.hex["070"]:e.colors.dropdown_bg_2};
657
659
  }
658
- `,Jr=It.div`
660
+ `,Kr=It.div`
659
661
  position: absolute;
660
662
  top: ${({$size:e})=>e/5}px;
661
663
  right: ${({$size:e})=>e/5}px;
@@ -672,7 +674,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
672
674
  background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
673
675
  animation: ${Ci.animations.ping} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
674
676
  }
675
- `,Kr=({children:e,onClick:t,tooltip:n,size:o=36,withPing:i,pingColor:a,withBorder:r,backgroundColor:s,...l})=>xt.createElement(pr,{text:n},xt.createElement(Gr,{$size:o,$withBorder:r,$backgroundColor:s,onClick:t,...l},i&&xt.createElement(Jr,{$size:o,$color:a}),e)),Yr=It(er)`
677
+ `,Jr=({children:e,onClick:t,tooltip:o,size:n=36,withPing:i,pingColor:a,withBorder:r,backgroundColor:s,...l})=>xt.createElement(pr,{text:o},xt.createElement(Gr,{$size:n,$withBorder:r,$backgroundColor:s,onClick:t,...l},i&&xt.createElement(Kr,{$size:n,$color:a}),e)),Yr=It(er)`
676
678
  width: 100%;
677
679
  border-radius: 8px;
678
680
  background-color: ${({theme:e})=>e.colors.secondary+Ci.opacity.hex["010"]};
@@ -683,7 +685,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
683
685
  width: 100%;
684
686
  padding-left: 12px;
685
687
  }
686
- `,Xr=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=Fa();return xt.createElement(Yr,null,xt.createElement("pre",null,e),xt.createElement(Kr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?xt.createElement(Je,null):xt.createElement(Ke,null)))},Qr=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=Ci.useTheme();return xt.createElement(xa,{onClick:t,variant:n,...o},xt.createElement(tt,{fill:"primary"===n?i.text.primary:i.text.info}),xt.createElement(_i,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Xo.EDIT))},Zr=({onClick:e})=>xt.createElement(hd,{type:pn.Default,icon:je,message:Yo.QUICK_BACK_TO_SUMMARY,action:{label:Yo.GO_TO_SUMMARY,onClick:e}}),es=It(_i)`
688
+ `,Xr=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:n}=Fa();return xt.createElement(Yr,null,xt.createElement("pre",null,e),xt.createElement(Jr,{onClick:n=>{n.stopPropagation(),o(e),t?.()},tooltip:n?"Copied!":"Copy"},n?xt.createElement(Ke,null):xt.createElement(Je,null)))},Qr=({label:e,onClick:t,variant:o="tertiary",...n})=>{const i=Ci.useTheme();return xt.createElement(xa,{onClick:t,variant:o,...n},xt.createElement(tt,{fill:"primary"===o?i.text.primary:i.text.info}),xt.createElement(_i,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?i.text.primary:void 0},e||Xn.EDIT))},Zr=({onClick:e})=>xt.createElement(md,{type:po.Default,icon:je,message:Yn.QUICK_BACK_TO_SUMMARY,action:{label:Yn.GO_TO_SUMMARY,onClick:e}}),es=It(_i)`
687
689
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
688
690
  white-space: nowrap;
689
691
  overflow-x: auto;
@@ -693,15 +695,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
693
695
  content: '';
694
696
  display: block;
695
697
  }
696
- `,ts=({maxWidth:e,text:t,textSize:n=16,textColor:o})=>{const[i,a]=yt(!1),r=kt(null);return wt(()=>{if(r.current){const{clientWidth:t}=r.current;a(t<1.05*(e-n)&&t>.95*(e-n))}},[e,n,t]),xt.createElement(er,{$gap:0},t&&xt.createElement(pr,{text:i?t:void 0},xt.createElement(es,{ref:r,$maxWidth:e-n,size:n,color:o},t)),i&&xt.createElement(es,{$maxWidth:n,size:n,color:o},"..."))},ns=({src:e="",alt:t="",size:o=16})=>{const[i,a]=yt(!1);return e&&!i?xt.createElement("img",{src:e,alt:t,width:o,height:o,onError:()=>a(!0)}):xt.createElement(n,{size:o})},os=It.div`
698
+ `,ts=({maxWidth:e,text:t,textSize:o=16,textColor:n})=>{const[i,a]=yt(!1),r=kt(null);return wt(()=>{if(r.current){const{clientWidth:t}=r.current;a(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),xt.createElement(er,{$gap:0},t&&xt.createElement(pr,{text:i?t:void 0},xt.createElement(es,{ref:r,$maxWidth:e-o,size:o,color:n},t)),i&&xt.createElement(es,{$maxWidth:o,size:o,color:n},"..."))},os=({src:e="",alt:t="",size:n=16})=>{const[i,a]=yt(!1);return e&&!i?xt.createElement("img",{src:e,alt:t,width:n,height:n,onError:()=>a(!0)}):xt.createElement(o,{size:n})},ns=It.div`
697
699
  display: flex;
698
700
  align-items: center;
699
701
  justify-content: center;
700
702
  width: ${({$size:e})=>e}px;
701
703
  height: ${({$size:e})=>e}px;
702
704
  border-radius: 8px;
703
- background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+Ci.opacity.hex["030"]} 100%)`}};
704
- `,is=({icon:e,src:t="",alt:o="",status:i,size:a=36})=>xt.createElement(os,{$status:i,$size:a},t?xt.createElement(ns,{src:t,alt:o,size:a-12}):e?xt.createElement(e,{size:a-12}):xt.createElement(n,{size:a-12})),as=It.div`
705
+ background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Ci.opacity.hex["030"]} 100%)`}};
706
+ `,is=({icon:e,src:t="",alt:n="",status:i,size:a=36})=>xt.createElement(ns,{$status:i,$size:a},t?xt.createElement(os,{src:t,alt:n,size:a-12}):e?xt.createElement(e,{size:a-12}):xt.createElement(o,{size:a-12})),as=It.div`
705
707
  position: relative;
706
708
  display: flex;
707
709
  flex-wrap: wrap;
@@ -721,8 +723,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
721
723
  height: ${({$size:e})=>e}px;
722
724
  border-radius: 100%;
723
725
  border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Ci.opacity.hex["030"]};
724
- background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+Ci.opacity.hex["030"]} 100%)`}};
725
- `,ss=({icons:e=[],iconSrcs:t=[],status:n,size:o=36,id:i})=>{const a=Ci.useTheme(),r=1===e.length||1===t.length?o-12:o/2.7;if(t.length>0)return xt.createElement(ss,{icons:t.map(e=>()=>xt.createElement(ns,{src:e,size:r})),status:n,size:o,id:i});if(1===e.length)return xt.createElement(is,{icon:e[0],status:n,size:o});const s=t=>e.length<=2?.5*r:0===t||1===t?0:1.15*r,l=e=>0===e?0:1===e?1.15*r:1.15*r*.5;return xt.createElement(as,{$status:n,$size:o},e.map((t,o)=>o>2?null:xt.createElement(rs,{key:`icon-${i}-${o}`,$status:n,$size:1.5*r,$top:s(o),$left:l(o),$zIndex:o+1},2===o&&e.length>3?xt.createElement(_i,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):xt.createElement(t,{size:r}))))},ls=Pn.map(({id:e})=>e),cs=({monitors:e=ls,withTooltips:t,withLabels:n,size:o=12,color:i})=>{const a=Ci.useTheme(),r=i||a.text.grey;return xt.createElement(er,{$gap:n?o:o/2},e.filter(e=>!!e).map(e=>{const i=e.toLowerCase(),a=jn(i),s=mo(i);return s?xt.createElement(pr,{key:i,text:t?a:""},xt.createElement(er,{$gap:o/3},xt.createElement(s,{size:n?o+2:o,fill:r}),n&&xt.createElement(_i,{size:o,color:r},a))):null}))},ds=It.div`
726
+ background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Ci.opacity.hex["030"]} 100%)`}};
727
+ `,ss=({icons:e=[],iconSrcs:t=[],status:o,size:n=36,id:i})=>{const a=Ci.useTheme(),r=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return xt.createElement(ss,{icons:t.map(e=>()=>xt.createElement(os,{src:e,size:r})),status:o,size:n,id:i});if(1===e.length)return xt.createElement(is,{icon:e[0],status:o,size:n});const s=t=>e.length<=2?.5*r:0===t||1===t?0:1.15*r,l=e=>0===e?0:1===e?1.15*r:1.15*r*.5;return xt.createElement(as,{$status:o,$size:n},e.map((t,n)=>n>2?null:xt.createElement(rs,{key:`icon-${i}-${n}`,$status:o,$size:1.5*r,$top:s(n),$left:l(n),$zIndex:n+1},2===n&&e.length>3?xt.createElement(_i,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):xt.createElement(t,{size:r}))))},ls=Mo.map(({id:e})=>e),cs=({monitors:e=ls,withTooltips:t,withLabels:o,size:n=12,color:i})=>{const a=Ci.useTheme(),r=i||a.text.grey;return xt.createElement(er,{$gap:o?n:n/2},e.filter(e=>!!e).map(e=>{const i=e.toLowerCase(),a=jo(i),s=hn(i);return s?xt.createElement(pr,{key:i,text:t?a:""},xt.createElement(er,{$gap:n/3},xt.createElement(s,{size:o?n+2:n,fill:r}),o&&xt.createElement(_i,{size:n,color:r},a))):null}))},ds=It.div`
726
728
  visibility: hidden;
727
729
  `,ps=It.div`
728
730
  display: flex;
@@ -731,13 +733,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
731
733
  padding: 16px;
732
734
  width: calc(100% - 32px);
733
735
  border-radius: 16px;
734
- background-color: ${({theme:e,$status:t,$bgColor:n})=>n||(t?e.text[t]+Ci.opacity.hex["010"]:e.colors.secondary+Ci.opacity.hex["005"])};
736
+ background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+Ci.opacity.hex["010"]:e.colors.secondary+Ci.opacity.hex["005"])};
735
737
  opacity: ${({$faded:e})=>e?.5:1};
736
738
 
737
- ${({theme:e,$status:t,$bgColorHover:n,$withClick:o})=>o?_t`
739
+ ${({theme:e,$status:t,$bgColorHover:o,$withClick:n})=>n?_t`
738
740
  &:hover {
739
741
  cursor: pointer;
740
- background-color: ${n||(t?e.text[t]+Ci.opacity.hex["020"]:e.colors.secondary+Ci.opacity.hex["010"])};
742
+ background-color: ${o||(t?e.text[t]+Ci.opacity.hex["020"]:e.colors.secondary+Ci.opacity.hex["010"])};
741
743
  ${ds} {
742
744
  visibility: visible;
743
745
  }
@@ -748,12 +750,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
748
750
  align-items: center;
749
751
  gap: 8px;
750
752
  margin-left: auto;
751
- `,ms=It(_i)`
752
- margin-right: 16px;
753
753
  `,hs=It(_i)`
754
+ margin-right: 16px;
755
+ `,ms=It(_i)`
754
756
  font-size: 10px;
755
757
  color: ${({theme:e})=>e.text.grey};
756
- `,gs=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:m,monitorsWithLabels:h,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:$,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...C})=>{const E=Ci.useTheme(),[S,A]=yt(k||!1),[D,T]=yt(0),N=kt(null),I=kt(null),z=kt(null);return wt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((x?125:85)+t))}},[x]),xt.createElement(ps,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!o,onClick:o,...C},xt.createElement(er,{$gap:8},xt.createElement(er,{$gap:16},b?xt.createElement(Nr,null):x?xt.createElement(hr,{value:f,onChange:y,disabled:$}):null,r?.length||l?.length?xt.createElement(ss,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?xt.createElement(is,{icon:a,src:s,status:c}):null),xt.createElement(tr,{$gap:4},e&&xt.createElement(ts,{maxWidth:D,text:e,textSize:14}),xt.createElement(er,{$gap:4},t&&xt.createElement(ts,{maxWidth:D-(z.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),m&&m.length>0&&xt.createElement(er,{$gap:4,ref:z},t&&xt.createElement(hs,null,"•"),xt.createElement(cs,{monitors:m,withLabels:h,size:10}))),g&&g.length>0?xt.createElement(er,{$gap:4},g?.map((e,t)=>xt.createElement($t,{key:`componentsUnderTitles-${t}`},e))):null),xt.createElement(us,{ref:I},!!n&&xt.createElement(ds,null,xt.createElement(ms,{size:14,family:"secondary"},n)),i&&i(),w&&xt.createElement($t,null,xt.createElement(jr,{orientation:"vertical",length:"16px",margin:"0 2px"}),xt.createElement(Kr,{onClick:()=>A(e=>!e)},xt.createElement(zr,{extend:S}))))),S&&v&&xt.createElement(tr,null,xt.createElement(jr,{margin:"16px 0"}),v()))},xs=It(er)`
758
+ `,gs=({title:e,subTitle:t,hoverText:o,onClick:n,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:$,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...C})=>{const E=Ci.useTheme(),[S,A]=yt(k||!1),[D,T]=yt(0),N=kt(null),I=kt(null),z=kt(null);return wt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((x?125:85)+t))}},[x]),xt.createElement(ps,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C},xt.createElement(er,{$gap:8},xt.createElement(er,{$gap:16},b?xt.createElement(Nr,null):x?xt.createElement(mr,{value:f,onChange:y,disabled:$}):null,r?.length||l?.length?xt.createElement(ss,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?xt.createElement(is,{icon:a,src:s,status:c}):null),xt.createElement(tr,{$gap:4},e&&xt.createElement(ts,{maxWidth:D,text:e,textSize:14}),xt.createElement(er,{$gap:4},t&&xt.createElement(ts,{maxWidth:D-(z.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),h&&h.length>0&&xt.createElement(er,{$gap:4,ref:z},t&&xt.createElement(ms,null,"•"),xt.createElement(cs,{monitors:h,withLabels:m,size:10}))),g&&g.length>0?xt.createElement(er,{$gap:4},g?.map((e,t)=>xt.createElement($t,{key:`componentsUnderTitles-${t}`},e))):null),xt.createElement(us,{ref:I},!!o&&xt.createElement(ds,null,xt.createElement(hs,{size:14,family:"secondary"},o)),i&&i(),w&&xt.createElement($t,null,xt.createElement(jr,{orientation:"vertical",length:"16px",margin:"0 2px"}),xt.createElement(Jr,{onClick:()=>A(e=>!e)},xt.createElement(zr,{extend:S}))))),S&&v&&xt.createElement(tr,null,xt.createElement(jr,{margin:"16px 0"}),v()))},xs=It(er)`
757
759
  width: 100%;
758
760
  justify-content: space-between;
759
761
  `,$s=It(_i)`
@@ -770,15 +772,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
770
772
  `,ys=It(_i)`
771
773
  font-size: 12px;
772
774
  text-align: right;
773
- `,ws=({title:e,subTitle:t,tooltip:n,value:o})=>xt.createElement(xs,null,xt.createElement(tr,{$gap:4},xt.createElement(pr,{text:n||""},e&&xt.createElement($s,null,e),t&&xt.createElement(fs,null,t))),xt.createElement(bs,null,o?.status?xt.createElement(Hr,{status:"transitioning"===o.status?mn.Loading:o.status,title:o.text||o.status,withBorder:!0,withIcon:!0}):xt.createElement(ys,null,o?.text||"-"))),ks=It(tr)`
775
+ `,ws=({title:e,subTitle:t,tooltip:o,value:n})=>xt.createElement(xs,null,xt.createElement(tr,{$gap:4},xt.createElement(pr,{text:o||""},e&&xt.createElement($s,null,e),t&&xt.createElement(fs,null,t))),xt.createElement(bs,null,n?.status?xt.createElement(Hr,{status:"transitioning"===n.status?ho.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):xt.createElement(ys,null,n?.text||"-"))),ks=It(tr)`
774
776
  width: 100%;
775
- `,vs=({containerName:e,actualDevices:t,started:n,ready:o,instrumentationInstances:i})=>{const a=ft(()=>{const e=[];return n?.name&&e.push(xt.createElement(Hr,{status:No(n.value)?Mo(n.value)?pn.Success:pn.Error:pn.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),o?.name&&e.push(xt.createElement(Hr,{status:No(o.value)?Mo(o.value)?pn.Success:pn.Error:pn.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),e},[n?.name,n?.value,o?.name,o?.value]);return xt.createElement(gs,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>xt.createElement(Hr,{status:pn.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>xt.createElement(ks,{$gap:24},i.map((e,t)=>xt.createElement(ks,{key:`process-${t}`,$gap:8},xt.createElement(ws,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===pn.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>xt.createElement(ws,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})},Cs=It(tr)`
777
+ `,vs=({containerName:e,actualDevices:t,started:o,ready:n,instrumentationInstances:i})=>{const a=ft(()=>{const e=[];return o?.name&&e.push(xt.createElement(Hr,{status:Nn(o.value)?Bn(o.value)?po.Success:po.Error:po.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),n?.name&&e.push(xt.createElement(Hr,{status:Nn(n.value)?Bn(n.value)?po.Success:po.Error:po.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),e},[o?.name,o?.value,n?.name,n?.value]);return xt.createElement(gs,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>xt.createElement(Hr,{status:po.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>xt.createElement(ks,{$gap:24},i.map((e,t)=>xt.createElement(ks,{key:`process-${t}`,$gap:8},xt.createElement(ws,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===po.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>xt.createElement(ws,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})},Cs=It(tr)`
776
778
  max-width: 300px;
777
779
  padding: 12px;
778
780
  border-radius: 12px;
779
781
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
780
782
  justify-content: center;
781
- `,Es=Ct(({id:e,data:t})=>{const{title:n,subTitle:o}=t;return xt.createElement(Cs,{"data-id":e},xt.createElement(nc,{title:n,subTitle:o}))});Es.displayName=Es.name;const Ss=It.div`
783
+ `,Es=Ct(({id:e,data:t})=>{const{title:o,subTitle:n}=t;return xt.createElement(Cs,{"data-id":e},xt.createElement(oc,{title:o,subTitle:n}))});Es.displayName=Es.name;const Ss=It.div`
782
784
  padding: 6px;
783
785
  border-radius: 12px;
784
786
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
@@ -800,7 +802,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
800
802
  border-radius: 16px;
801
803
  border: 1px solid ${({theme:e})=>e.colors.border};
802
804
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
803
- `,Ns=({title:e,value:t})=>{const n=Ci.useTheme();return xt.createElement(er,{$justifyContent:"space-between"},xt.createElement(_i,{size:12,color:n.text.info},e),xt.createElement(_i,{size:12,family:"secondary"},t))},Is=Ct(({id:e,data:t})=>{const{id:n,status:o,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=qt(),c=Ci.useTheme(),d=o===pn.Error?yo(o,c):null;return xt.createElement(xt.Fragment,null,xt.createElement(Rt,{type:"source",position:Lt.Bottom,style:{visibility:"hidden"}}),xt.createElement(Rt,{type:"target",position:Lt.Top,style:{visibility:"hidden"}}),xt.createElement(As,{"data-id":e},xt.createElement(Ss,null,xt.createElement(ss,{id:n,icons:a,status:o})),xt.createElement(Ds,null,d&&xt.createElement(d,null),xt.createElement(ts,{maxWidth:100,text:i})),s===$n.MapItem&&l===e&&xt.createElement(Ts,null,xt.createElement(er,{$gap:12},xt.createElement(ss,{id:n,icons:a,status:o}),xt.createElement(_i,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:o})=>xt.createElement("div",{key:`from-${n}-to-${e}`},xt.createElement(jr,null),xt.createElement(Ns,{title:"Connected Service",value:e}),xt.createElement(Ns,{title:"Outgoing Requests",value:t}),xt.createElement(Ns,{title:"Last Requested At",value:new Date(o).toLocaleString()}))):xt.createElement(xt.Fragment,null,xt.createElement(jr,null),xt.createElement(nc,{title:"No outgoing connections",subTitle:" "})))))});Is.displayName=Is.name;const zs=It.div`
805
+ `,Ns=({title:e,value:t})=>{const o=Ci.useTheme();return xt.createElement(er,{$justifyContent:"space-between"},xt.createElement(_i,{size:12,color:o.text.info},e),xt.createElement(_i,{size:12,family:"secondary"},t))},Is=Ct(({id:e,data:t})=>{const{id:o,status:n,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=qt(),c=Ci.useTheme(),d=n===po.Error?yn(n,c):null;return xt.createElement(xt.Fragment,null,xt.createElement(Rt,{type:"source",position:Lt.Bottom,style:{visibility:"hidden"}}),xt.createElement(Rt,{type:"target",position:Lt.Top,style:{visibility:"hidden"}}),xt.createElement(As,{"data-id":e},xt.createElement(Ss,null,xt.createElement(ss,{id:o,icons:a,status:n})),xt.createElement(Ds,null,d&&xt.createElement(d,null),xt.createElement(ts,{maxWidth:100,text:i})),s===$o.MapItem&&l===e&&xt.createElement(Ts,null,xt.createElement(er,{$gap:12},xt.createElement(ss,{id:o,icons:a,status:n}),xt.createElement(_i,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:n})=>xt.createElement("div",{key:`from-${o}-to-${e}`},xt.createElement(jr,null),xt.createElement(Ns,{title:"Connected Service",value:e}),xt.createElement(Ns,{title:"Outgoing Requests",value:t}),xt.createElement(Ns,{title:"Last Requested At",value:new Date(n).toLocaleString()}))):xt.createElement(xt.Fragment,null,xt.createElement(jr,null),xt.createElement(oc,{title:"No outgoing connections",subTitle:" "})))))});Is.displayName=Is.name;const zs=It.div`
804
806
  height: calc(100vh - 160px);
805
807
  .react-flow__attribution {
806
808
  visibility: hidden;
@@ -819,12 +821,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
819
821
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
820
822
  }
821
823
  }
822
- `,Fs={[$n.MapItem]:Is,[$n.NoData]:Es},_s=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=Aa(),{setActiveNodeType:s,setActiveNodeId:l}=qt();return xt.createElement(zs,null,xt.createElement(Bt,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Fs,edges:t,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)},onlyRenderVisibleElements:!0},xt.createElement(Os,null,xt.createElement(Mt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},Rs=It.div`
824
+ `,Fs={[$o.MapItem]:Is,[$o.NoData]:Es},_s=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:n,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=Aa(),{setActiveNodeType:s,setActiveNodeId:l}=qt();return xt.createElement(zs,null,xt.createElement(Pt,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Fs,edges:t,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>o(e),0)},onEdgesChange:e=>{setTimeout(()=>n(e),0)},onBlur:()=>{s(null),l(null)},onlyRenderVisibleElements:!0},xt.createElement(Os,null,xt.createElement(Bt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},Rs=It.div`
823
825
  position: relative;
824
- `,Ls=({defaultLanguage:e=an.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=li(),{formData:i,handleFormChange:a,resetFormData:r}=va({language:e,version:t}),[s,l]=yt(!1),c=()=>{l(!1),r()};return xt.createElement(Rs,null,xt.createElement(Kr,{tooltip:Yo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},xt.createElement(tt,null)),xt.createElement($d,{flipX:!0,clientX:36,isOpen:s,onClose:c,onSave:()=>{!i.version||Oo(i.version)?(n(i),c()):o({type:pn.Warning,message:Ko.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),c()},title:Yo.OVERRIDE_RUNTIME_DETAILS,warning:Yo.OVERRIDE_RUNTIME_WARNING},xt.createElement(sc,{title:Yo.LANGUAGE,options:qo,value:qo.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),xt.createElement(Xl,{title:Yo.RUNTIME_VERSION,placeholder:Yo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Bs=It(er)`
826
+ `,Ls=({defaultLanguage:e=io.Unknown,defaultVersion:t="",handleSave:o})=>{const{addNotification:n}=li(),{formData:i,handleFormChange:a,resetFormData:r}=va({language:e,version:t}),[s,l]=yt(!1),c=()=>{l(!1),r()};return xt.createElement(Rs,null,xt.createElement(Jr,{tooltip:Yn.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},xt.createElement(tt,null)),xt.createElement($d,{flipX:!0,clientX:36,isOpen:s,onClose:c,onSave:()=>{!i.version||On(i.version)?(o(i),c()):n({type:po.Warning,message:Jn.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{o({language:null,version:""}),c()},title:Yn.OVERRIDE_RUNTIME_DETAILS,warning:Yn.OVERRIDE_RUNTIME_WARNING},xt.createElement(sc,{title:Yn.LANGUAGE,options:qn,value:qn.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),xt.createElement(Xl,{title:Yn.RUNTIME_VERSION,placeholder:Yn.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Ps=It(er)`
825
827
  width: 100%;
826
828
  justify-content: center;
827
- `,Ms=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=Ci.useTheme(),c=i?pn.Success:a?pn.Info:pn.Warning,d=i?un.INSTRUMENTED:a?un.NOT_INSTRUMENTED:un.INSTRUMENTING;return xt.createElement(gs,{title:e,subTitle:`${t?Ho[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:oo(t)},extendableProps:{isExtended:!!a,renderExtended:()=>xt.createElement(Bs,null,xt.createElement(_i,{size:12,family:"secondary",color:l.text.info},Fo(a)))},renderActions:()=>xt.createElement(xt.Fragment,null,xt.createElement(Hr,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),o&&xt.createElement(Hr,{status:pn.Default,forceIcon:nt,title:Yo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&xt.createElement(Ls,{defaultLanguage:t,defaultVersion:n,handleSave:t=>s({...t,containerName:e})}))})},Ps=It.tr`
829
+ `,Bs=({containerName:e,language:t,runtimeVersion:o,overriden:n,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=Ci.useTheme(),c=i?po.Success:a?po.Info:po.Warning,d=i?uo.INSTRUMENTED:a?uo.NOT_INSTRUMENTED:uo.INSTRUMENTING;return xt.createElement(gs,{title:e,subTitle:`${t?Hn[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:nn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>xt.createElement(Ps,null,xt.createElement(_i,{size:12,family:"secondary",color:l.text.info},Fn(a)))},renderActions:()=>xt.createElement(xt.Fragment,null,xt.createElement(Hr,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),n&&xt.createElement(Hr,{status:po.Default,forceIcon:ot,title:Yn.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&xt.createElement(Ls,{defaultLanguage:t,defaultVersion:o,handleSave:t=>s({...t,containerName:e})}))})},Ms=It.tr`
828
830
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
829
831
  opacity: ${({$faded:e})=>e?.5:1};
830
832
  `,js=It.td`
@@ -856,8 +858,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
856
858
  width: ${({$width:e})=>e}px;
857
859
  height: ${({$height:e})=>e}px;
858
860
  border-radius: 16px;
859
- background-color: ${({theme:e,$hovered:t,$status:n})=>t?n?e.text[n]+Ci.opacity.hex["020"]:e.colors.majestic_blue+Ci.opacity.hex["030"]:n?e.text[n]+Ci.opacity.hex["010"]:e.colors.secondary+Ci.opacity.hex["005"]};
860
- `,Vs=({index:e,columns:t,cells:n,onClick:o,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=Na(),[c,d]=yt(!1);return xt.createElement(Ps,{ref:r,onMouseEnter:()=>!!o&&d(!0),onMouseLeave:()=>!!o&&d(!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:d,withTooltip:p,icon:u,component:m}=a;return xt.createElement(js,{key:`table-row-${t}-${r}-${e}-${o}`,$isFirst:0===o},u?xt.createElement(is,{icon:u}):m?xt.createElement(m,null):xt.createElement(pr,{text:p&&r?String(r):""},xt.createElement(Us,{$color:d},Ao(r)?"-":r)),0===o&&xt.createElement(Ws,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i}))}))},Hs=It.div`
861
+ background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+Ci.opacity.hex["020"]:e.colors.majestic_blue+Ci.opacity.hex["030"]:o?e.text[o]+Ci.opacity.hex["010"]:e.colors.secondary+Ci.opacity.hex["005"]};
862
+ `,Vs=({index:e,columns:t,cells:o,onClick:n,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=Na(),[c,d]=yt(!1);return xt.createElement(Ms,{ref:r,onMouseEnter:()=>!!n&&d(!0),onMouseLeave:()=>!!n&&d(!1),onClick:()=>!!n&&n(),$withHover:!!n,$faded:a},t.map(({key:t},n)=>{const a=o.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:d,withTooltip:p,icon:u,component:h}=a;return xt.createElement(js,{key:`table-row-${t}-${r}-${e}-${n}`,$isFirst:0===n},u?xt.createElement(is,{icon:u}):h?xt.createElement(h,null):xt.createElement(pr,{text:p&&r?String(r):""},xt.createElement(Us,{$color:d},An(r)?"-":r)),0===n&&xt.createElement(Ws,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i}))}))},Hs=It.div`
861
863
  width: 100%;
862
864
  `,qs=It.table`
863
865
  position: relative;
@@ -869,13 +871,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
869
871
  // only supported with "border-collapse: collapse;"
870
872
  // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
871
873
  // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
872
- `,Js=It.th`
874
+ `,Ks=It.th`
873
875
  // only required with "border-collapse: separate;"
874
876
  border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
875
877
  border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
876
878
 
877
879
  padding: 8px;
878
- `,Ks=It(er)`
880
+ `,Js=It(er)`
879
881
  cursor: pointer;
880
882
  &:hover {
881
883
  * {
@@ -889,7 +891,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
889
891
  font-size: 12px;
890
892
  font-weight: 500;
891
893
  text-wrap: nowrap;
892
- `,Xs=It.tbody``,Qs=({columns:e,rows:t})=>{const[n,o]=yt(gn.Ascending),[i,a]=yt("name"),r=vt(e=>{i===e?o(e=>e===gn.Ascending?gn.Descending:gn.Ascending):(a(e),o(gn.Ascending))},[i]),s=ft(()=>{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===gn.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)=>xt.createElement(Vs,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return xt.createElement(Hs,null,xt.createElement(qs,null,xt.createElement(Gs,null,xt.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>xt.createElement(Js,{key:`column-${e}`},n?xt.createElement(Ks,{onClick:()=>r(e)},xt.createElement(ot,null),xt.createElement(Ys,null,t)):xt.createElement(Ys,null,t))))),xt.createElement(Xs,null,s)))};var Zs;!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"}(Zs||(Zs={}));const el=It.div`
894
+ `,Xs=It.tbody``,Qs=({columns:e,rows:t})=>{const[o,n]=yt(go.Ascending),[i,a]=yt("name"),r=vt(e=>{i===e?n(e=>e===go.Ascending?go.Descending:go.Ascending):(a(e),n(go.Ascending))},[i]),s=ft(()=>{const n=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=n(e,i),r=n(t,i);return(o===go.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:o,cells:n,onClick:i},a)=>xt.createElement(Vs,{key:`row-${a}`,index:a,columns:e,cells:n,onClick:i,status:t,faded:o}))},[e,t,i,o]);return xt.createElement(Hs,null,xt.createElement(qs,null,xt.createElement(Gs,null,xt.createElement("tr",null,e.map(({key:e,title:t,sortable:o})=>xt.createElement(Ks,{key:`column-${e}`},o?xt.createElement(Js,{onClick:()=>r(e)},xt.createElement(nt,null),xt.createElement(Ys,null,t)):xt.createElement(Ys,null,t))))),xt.createElement(Xs,null,s)))};var Zs;!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"}(Zs||(Zs={}));const el=It.div`
893
895
  display: flex;
894
896
  flex-wrap: wrap;
895
897
  gap: 16px 32px;
@@ -899,14 +901,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
899
901
  flex-direction: column;
900
902
  gap: 2px;
901
903
  width: ${({$width:e})=>e};
902
- `,nl=It(_i)`
904
+ `,ol=It(_i)`
903
905
  color: ${({theme:e})=>e.text.grey};
904
906
  font-size: 10px;
905
907
  line-height: 16px;
906
- `,ol=It(_i)`
908
+ `,nl=It(_i)`
907
909
  font-size: 12px;
908
910
  white-space: pre-wrap;
909
- `,il=({data:e})=>xt.createElement(el,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>xt.createElement(tl,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Zs.Code,Zs.Table].includes(e)?"inherit":e&&[Zs.Loader,Zs.Divider,Zs.CopyText].includes(e)?"100%":"unset"},xt.createElement(pr,{text:o,withIcon:!0},xt.createElement(er,{$alignItems:"center",$gap:4},n&&xt.createElement(n,{size:14}),!!t&&xt.createElement(nl,{transform:"capitalize"},t))),xt.createElement(al,{type:e,value:i})))),al=({type:e,value:t})=>{const n=Ci.useTheme();switch(e){case Zs.Divider:return xt.createElement(jr,{length:"100%",margin:"0"});case Zs.Loader:return xt.createElement(nr,null,xt.createElement(Nr,{scale:1.2}));case Zs.Monitors:return xt.createElement(cs,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Zs.Badge:{const{label:e,filled:n,...o}=Co(t,{label:"-",filled:!1});return xt.createElement(ua,{label:e,filled:n,...o})}case Zs.Code:{const{language:e,code:n,...o}=Co(t,{language:"",code:""});return xt.createElement(Cr,{language:e,code:n,...o})}case Zs.Table:{const{columns:e,rows:n,...o}=Co(t,{columns:[],rows:[{status:void 0,cells:[]}]});return xt.createElement(Qs,{columns:e,rows:n,...o})}case Zs.ActiveStatus:return xt.createElement(Hr,{status:"true"==t?pn.Success:pn.Error,title:"true"==t?Yo.ENABLED:Yo.DISABLED,size:10,withIcon:!0,withBorder:!0});case Zs.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return xt.createElement(Xr,{value:e})}default:return xt.createElement(ol,null,Po("string"==typeof t?t||"-":""))}},rl=It.div`
911
+ `,il=({data:e})=>xt.createElement(el,null,e?.map(({type:e,title:t,titleIcon:o,tooltip:n,value:i},a)=>xt.createElement(tl,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Zs.Code,Zs.Table].includes(e)?"inherit":e&&[Zs.Loader,Zs.Divider,Zs.CopyText].includes(e)?"100%":"unset"},xt.createElement(pr,{text:n,withIcon:!0},xt.createElement(er,{$alignItems:"center",$gap:4},o&&xt.createElement(o,{size:14}),!!t&&xt.createElement(ol,{transform:"capitalize"},t))),xt.createElement(al,{type:e,value:i})))),al=({type:e,value:t})=>{const o=Ci.useTheme();switch(e){case Zs.Divider:return xt.createElement(jr,{length:"100%",margin:"0"});case Zs.Loader:return xt.createElement(or,null,xt.createElement(Nr,{scale:1.2}));case Zs.Monitors:return xt.createElement(cs,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Zs.Badge:{const{label:e,filled:o,...n}=Cn(t,{label:"-",filled:!1});return xt.createElement(ua,{label:e,filled:o,...n})}case Zs.Code:{const{language:e,code:o,...n}=Cn(t,{language:"",code:""});return xt.createElement(Cr,{language:e,code:o,...n})}case Zs.Table:{const{columns:e,rows:o,...n}=Cn(t,{columns:[],rows:[{status:void 0,cells:[]}]});return xt.createElement(Qs,{columns:e,rows:o,...n})}case Zs.ActiveStatus:return xt.createElement(Hr,{status:"true"==t?po.Success:po.Error,title:"true"==t?Yn.ENABLED:Yn.DISABLED,size:10,withIcon:!0,withBorder:!0});case Zs.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return xt.createElement(Xr,{value:e})}default:return xt.createElement(nl,null,Mn("string"==typeof t?t||"-":""))}},rl=It.div`
910
912
  display: flex;
911
913
  flex-direction: column;
912
914
  align-items: flex-start;
@@ -935,9 +937,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
935
937
  `,dl=It(er)`
936
938
  margin-left: auto;
937
939
  gap: 8px;
938
- `,pl=({title:e="Details",titleBadge:t,titleIcon:n,description:o,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[c,d]=yt(r),[p,u]=yt(!1);return xt.createElement(rl,{$hovered:p},e||n||o||i?xt.createElement(sl,{$clickable:a||!1,onClick:()=>a&&d(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},xt.createElement(er,null,xt.createElement(er,{$alignItems:"center",$gap:8},n&&xt.createElement(er,{$alignItems:"center"},xt.createElement(n,{size:20})),!!e&&xt.createElement(ll,{transform:"capitalize"},e),t===mn.Loading?xt.createElement(Nr,null):void 0!==t&&xt.createElement(ua,{label:t})),(!!i||a)&&xt.createElement(dl,null,"function"==typeof i?xt.createElement(i,null):i,a&&xt.createElement(zr,{extend:c}))),!!o&&xt.createElement(cl,null,o)):null,(!a||a&&c)&&(l||xt.createElement(il,{data:s})))},ul=It.div`
940
+ `,pl=({title:e="Details",titleBadge:t,titleIcon:o,description:n,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[c,d]=yt(r),[p,u]=yt(!1);return xt.createElement(rl,{$hovered:p},e||o||n||i?xt.createElement(sl,{$clickable:a||!1,onClick:()=>a&&d(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},xt.createElement(er,null,xt.createElement(er,{$alignItems:"center",$gap:8},o&&xt.createElement(er,{$alignItems:"center"},xt.createElement(o,{size:20})),!!e&&xt.createElement(ll,{transform:"capitalize"},e),t===ho.Loading?xt.createElement(Nr,null):void 0!==t&&xt.createElement(ua,{label:t})),(!!i||a)&&xt.createElement(dl,null,"function"==typeof i?xt.createElement(i,null):i,a&&xt.createElement(zr,{extend:c}))),!!n&&xt.createElement(cl,null,n)):null,(!a||a&&c)&&(l||xt.createElement(il,{data:s})))},ul=It.div`
939
941
  visibility: hidden;
940
- `,ml=It(er)`
942
+ `,hl=It(er)`
941
943
  align-self: stretch;
942
944
  width: calc(100% - 32px);
943
945
  padding: 16px;
@@ -952,13 +954,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
952
954
  }
953
955
  }
954
956
  `:`\n &:hover {\n ${ul} {\n visibility: visible;\n }\n }\n `}
955
- `,hl=It(er)`
957
+ `,ml=It(er)`
956
958
  margin-left: auto;
957
959
  gap: 8px;
958
960
  `,gl=It(_i)`
959
961
  font-size: 10px;
960
962
  color: ${({theme:e})=>e.text.grey};
961
- `,xl=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=Ci.useTheme(),[s,l]=yt(0),c=kt(null),d=kt(null);return wt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),xt.createElement(ml,{ref:c,$gap:8,$withClick:!!i,onClick:i},xt.createElement(ss,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&xt.createElement(ts,{maxWidth:s/2,text:e,textSize:14}),e&&t&&xt.createElement(gl,null,"•"),t&&xt.createElement(ts,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),xt.createElement(hl,{ref:d},a&&xt.createElement(xt.Fragment,null,xt.createElement(jr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},$l=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===sn.Source?"uninstrument":"delete";return xt.createElement(gp,{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:pn.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}})},fl=It(xa)`
963
+ `,xl=({title:e,subTitle:t,icons:o,iconSrcs:n,onClick:i,renderActions:a})=>{const r=Ci.useTheme(),[s,l]=yt(0),c=kt(null),d=kt(null);return wt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),xt.createElement(hl,{ref:c,$gap:8,$withClick:!!i,onClick:i},xt.createElement(ss,{id:`${e}-${t}`,icons:o,iconSrcs:n}),e&&xt.createElement(ts,{maxWidth:s/2,text:e,textSize:14}),e&&t&&xt.createElement(gl,null,"•"),t&&xt.createElement(ts,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),xt.createElement(ml,{ref:d},a&&xt.createElement(xt.Fragment,null,xt.createElement(jr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},$l=({isOpen:e,noOverlay:t,name:o,type:n,isLastItem:i,onApprove:a,onDeny:r})=>{const s=n===ro.Source?"uninstrument":"delete";return xt.createElement(gp,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:po.Warning,title:`You're about to ${s} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},fl=It(xa)`
962
964
  display: flex;
963
965
  align-items: center;
964
966
  justify-content: center;
@@ -976,7 +978,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
976
978
  padding: 12px;
977
979
  font-size: 14px;
978
980
  color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
979
- `,vl=({tabs:e,hideBorder:t=!1})=>e?.length?xt.createElement(yl,{$hideBorder:t},e.map(({label:e,icon:t,onClick:n,selected:o})=>xt.createElement(wl,{key:`tab-${e}`,onClick:n,$selected:o},xt.createElement(kl,{$selected:o},e),t&&xt.createElement(t,null)))):null,Cl=It.section`
981
+ `,vl=({tabs:e,hideBorder:t=!1})=>e?.length?xt.createElement(yl,{$hideBorder:t},e.map(({label:e,icon:t,onClick:o,selected:n})=>xt.createElement(wl,{key:`tab-${e}`,onClick:o,$selected:n},xt.createElement(kl,{$selected:n},e),t&&xt.createElement(t,null)))):null,Cl=It.section`
980
982
  padding: 0px 32px;
981
983
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
982
984
  `,El=It.div`
@@ -998,7 +1000,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
998
1000
  text-overflow: ellipsis;
999
1001
  `,Dl=It(xa)`
1000
1002
  gap: 8px;
1001
- `,Tl=It(xa)``,Nl=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:c})=>xt.createElement(Cl,null,xt.createElement(El,null,xt.createElement(Sl,null,n?.length||o?.length?xt.createElement(ss,{icons:n,iconSrcs:o,id:`drawer-header-${i}`}):null,("function"==typeof r?xt.createElement(r,null):r||null)||xt.createElement(pr,{text:a||i,withIcon:!!a},i&&xt.createElement(Al,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),xt.createElement(Sl,{$gap:2},s,l.map((e,t)=>xt.createElement(Dl,{key:`header-action-button-${t}`,...e})),xt.createElement(Tl,{"data-id":"drawer-close",variant:"secondary",onClick:e},xt.createElement(at,{size:12})))),xt.createElement(vl,{tabs:c,hideBorder:!0})),Il=It.div`
1003
+ `,Tl=It(xa)``,Nl=({onClose:e,width:t,icons:o,iconSrcs:n,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:c})=>xt.createElement(Cl,null,xt.createElement(El,null,xt.createElement(Sl,null,o?.length||n?.length?xt.createElement(ss,{icons:o,iconSrcs:n,id:`drawer-header-${i}`}):null,("function"==typeof r?xt.createElement(r,null):r||null)||xt.createElement(pr,{text:a||i,withIcon:!!a},i&&xt.createElement(Al,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),xt.createElement(Sl,{$gap:2},s,l.map((e,t)=>xt.createElement(Dl,{key:`header-action-button-${t}`,...e})),xt.createElement(Tl,{"data-id":"drawer-close",variant:"secondary",onClick:e},xt.createElement(at,{size:12})))),xt.createElement(vl,{tabs:c,hideBorder:!0})),Il=It.div`
1002
1004
  display: flex;
1003
1005
  justify-content: space-between;
1004
1006
  gap: 8px;
@@ -1015,7 +1017,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1015
1017
  `,_l=It(xa)`
1016
1018
  min-width: 140px;
1017
1019
  font-size: 14px;
1018
- `,Rl=({isOpen:e,leftButtons:t=[],centerButtons:n=[],rightButtons:o=[]})=>{const i=Qa({container:Il,animateIn:Ci.animations.slide.in.bottom,animateOut:Ci.animations.slide.out.bottom});return xt.createElement(i,{enter:e},xt.createElement(zl,null,t.map((e,t)=>xt.createElement(_l,{key:`footer-left-button-${t}`,...e}))),xt.createElement(Ol,null,n.map((e,t)=>xt.createElement(_l,{key:`footer-center-button-${t}`,...e}))),xt.createElement(Fl,null,o.map((e,t)=>xt.createElement(_l,{key:`footer-right-button-${t}`,...e}))))},Ll=It.div`
1020
+ `,Rl=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:n=[]})=>{const i=Qa({container:Il,animateIn:Ci.animations.slide.in.bottom,animateOut:Ci.animations.slide.out.bottom});return xt.createElement(i,{enter:e},xt.createElement(zl,null,t.map((e,t)=>xt.createElement(_l,{key:`footer-left-button-${t}`,...e}))),xt.createElement(Ol,null,o.map((e,t)=>xt.createElement(_l,{key:`footer-center-button-${t}`,...e}))),xt.createElement(Fl,null,n.map((e,t)=>xt.createElement(_l,{key:`footer-right-button-${t}`,...e}))))},Ll=It.div`
1019
1021
  position: fixed;
1020
1022
  top: 0;
1021
1023
  bottom: 0;
@@ -1025,15 +1027,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1025
1027
  background: ${({theme:e})=>e.colors.translucent_bg};
1026
1028
  box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Ci.opacity.hex["010"]};
1027
1029
  overflow-y: auto;
1028
- `,Bl=It.div`
1030
+ `,Pl=It.div`
1029
1031
  display: flex;
1030
1032
  flex-direction: column;
1031
1033
  height: 100%;
1032
- `,Ml=It.div`
1034
+ `,Bl=It.div`
1033
1035
  flex-grow: 1;
1034
1036
  padding: 24px 32px;
1035
1037
  overflow-y: auto;
1036
- `,Pl=({isOpen:e,onClose:t,closeOnEscape:n=!0,position:o="right",width:i="300px",children:a,header:r,footer:s})=>{ja({key:"Escape",active:e&&n},()=>t()),Sa(e);const l=Qa({container:Ll,animateIn:Ci.animations.slide.in[o],animateOut:Ci.animations.slide.out[o]});return e?Pt.createPortal(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:t}),xt.createElement(l,{"data-id":"drawer",enter:e,$position:o,$width:i},xt.createElement(Bl,null,xt.createElement(Nl,{onClose:t,width:i,...r}),xt.createElement(Ml,null,a),xt.createElement(Rl,{...s})))),document.body):null},jl=It.div`
1038
+ `,Ml=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:n="right",width:i="300px",children:a,header:r,footer:s})=>{ja({key:"Escape",active:e&&o},()=>t()),Sa(e);const l=Qa({container:Ll,animateIn:Ci.animations.slide.in[n],animateOut:Ci.animations.slide.out[n]});return e?Mt.createPortal(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:t}),xt.createElement(l,{"data-id":"drawer",enter:e,$position:n,$width:i},xt.createElement(Pl,null,xt.createElement(Nl,{onClose:t,width:i,...r}),xt.createElement(Bl,null,a),xt.createElement(Rl,{...s})))),document.body):null},jl=It.div`
1037
1039
  display: flex;
1038
1040
 
1039
1041
  align-items: center;
@@ -1051,7 +1053,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1051
1053
  font-size: 12px;
1052
1054
  color: ${({theme:e})=>e.text.darker_grey};
1053
1055
  opacity: 0.8;
1054
- `,Vl=({title:e,required:t,tooltip:n,style:o,status:i})=>e?xt.createElement(jl,{style:o},xt.createElement(pr,{text:n,withIcon:!0},xt.createElement(Ul,{$status:i},e),!t&&xt.createElement(Wl,null,"(optional)"))):null,Hl=It.div`
1056
+ `,Vl=({title:e,required:t,tooltip:o,style:n,status:i})=>e?xt.createElement(jl,{style:n},xt.createElement(pr,{text:o,withIcon:!0},xt.createElement(Ul,{$status:i},e),!t&&xt.createElement(Wl,null,"(optional)"))):null,Hl=It.div`
1055
1057
  display: flex;
1056
1058
  flex-direction: column;
1057
1059
  position: relative;
@@ -1069,12 +1071,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1069
1071
  cursor: not-allowed;
1070
1072
  opacity: 0.6;
1071
1073
  `}
1072
- ${({$isActive:e,$hasError:t,$status:n})=>e?_t`
1074
+ ${({$isActive:e,$hasError:t,$status:o})=>e?_t`
1073
1075
  border-color: ${({theme:e})=>e.colors.secondary};
1074
1076
  `:t?_t`
1075
1077
  border-color: ${({theme:e})=>e.text.error};
1076
- `:n?_t`
1077
- border-color: ${({theme:e})=>e.text[n]};
1078
+ `:o?_t`
1079
+ border-color: ${({theme:e})=>e.text[o]};
1078
1080
  `:""}
1079
1081
  &:hover {
1080
1082
  border-color: ${({theme:e})=>e.colors.secondary};
@@ -1111,11 +1113,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1111
1113
  -webkit-appearance: none;
1112
1114
  margin: 0;
1113
1115
  }
1114
- `,Jl=It.div`
1116
+ `,Kl=It.div`
1115
1117
  display: flex;
1116
1118
  align-items: center;
1117
1119
  margin-left: 12px;
1118
- `,Kl=It(Jl)`
1120
+ `,Jl=It(Kl)`
1119
1121
  cursor: pointer;
1120
1122
  `,Yl=It.button`
1121
1123
  background-color: ${({theme:e})=>e.colors.primary};
@@ -1132,7 +1134,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1132
1134
  background-color: ${({theme:e})=>e.colors.border};
1133
1135
  cursor: not-allowed;
1134
1136
  }
1135
- `,Xl=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:c,type:d=dn.Text,name:p,status:u,...m})=>{const h=Ci.useTheme(),g=d===dn.Password,[x,$]=yt(!1);return xt.createElement(Hl,null,xt.createElement(Vl,{title:a,required:s,tooltip:r,status:u}),xt.createElement(ql,{$disabled:m.disabled,$hasError:o||!!i,$isActive:!!m.autoFocus,$status:u},g?xt.createElement(Kl,{onClick:()=>$(e=>!e)},x?xt.createElement(rt,{size:14,fill:h.text.grey}):xt.createElement(st,{size:14,fill:h.text.grey})):e?xt.createElement(Jl,null,xt.createElement(e,{size:14,fill:h.text.grey})):null,xt.createElement(Gl,{"data-id":p,type:x||d===dn.Number?dn.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===dn.Number&&(e.target.value=Bo(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...m}),t&&n&&xt.createElement(Yl,{onClick:n,disabled:m.disabled},t)),!!i&&xt.createElement(Ki,null,i))},Ql=It.div`
1137
+ `,Xl=({icon:e,buttonLabel:t,onButtonClick:o,hasError:n,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:c,type:d=co.Text,name:p,status:u,...h})=>{const m=Ci.useTheme(),g=d===co.Password,[x,$]=yt(!1);return xt.createElement(Hl,null,xt.createElement(Vl,{title:a,required:s,tooltip:r,status:u}),xt.createElement(ql,{$disabled:h.disabled,$hasError:n||!!i,$isActive:!!h.autoFocus,$status:u},g?xt.createElement(Jl,{onClick:()=>$(e=>!e)},x?xt.createElement(rt,{size:14,fill:m.text.grey}):xt.createElement(st,{size:14,fill:m.text.grey})):e?xt.createElement(Kl,null,xt.createElement(e,{size:14,fill:m.text.grey})):null,xt.createElement(Gl,{"data-id":p,type:x||d===co.Number?co.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===co.Number&&(e.target.value=Pn(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&xt.createElement(Yl,{onClick:o,disabled:h.disabled},t)),!!i&&xt.createElement(Ji,null,i))},Ql=It.div`
1136
1138
  display: flex;
1137
1139
  flex-direction: column;
1138
1140
  align-items: center;
@@ -1148,7 +1150,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1148
1150
  font-weight: 200;
1149
1151
  line-height: 20px;
1150
1152
  text-align: center;
1151
- `,nc=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=Ci.useTheme();return xt.createElement(Ql,null,xt.createElement(Zl,null,xt.createElement(lt,{fill:n.text.dark_grey}),xt.createElement(ec,null,e)),t&&xt.createElement(tc,null,t))},oc=It.div`
1153
+ `,oc=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const o=Ci.useTheme();return xt.createElement(Ql,null,xt.createElement(Zl,null,xt.createElement(lt,{fill:o.text.dark_grey}),xt.createElement(ec,null,e)),t&&xt.createElement(tc,null,t))},nc=It.div`
1152
1154
  display: flex;
1153
1155
  flex-direction: column;
1154
1156
  min-width: 120px;
@@ -1165,11 +1167,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1165
1167
  border-radius: 32px;
1166
1168
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1167
1169
 
1168
- ${({$isOpen:e,$isMulti:t,theme:n})=>e&&!t?_t`
1169
- border: 1px solid ${n.text.grey};
1170
- background: ${n.colors.dropdown_bg_2};
1170
+ ${({$isOpen:e,$isMulti:t,theme:o})=>e&&!t?_t`
1171
+ border: 1px solid ${o.text.grey};
1172
+ background: ${o.colors.dropdown_bg_2};
1171
1173
  `:_t`
1172
- border: 1px solid ${n.colors.border};
1174
+ border: 1px solid ${o.colors.border};
1173
1175
  background: transparent;
1174
1176
  `};
1175
1177
 
@@ -1180,13 +1182,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1180
1182
  `:""}
1181
1183
 
1182
1184
  &:hover {
1183
- border-color: ${({$isMulti:e,$hasSelections:t,$disabled:n,theme:o})=>n?"auto":e&&t?o.colors.border:o.colors.secondary};
1185
+ border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:n})=>o?"auto":e&&t?n.colors.border:n.colors.secondary};
1184
1186
  }
1185
1187
  `,rc=It.div`
1186
1188
  display: flex;
1187
1189
  align-items: center;
1188
1190
  gap: 4px;
1189
- `,sc=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=yt(!1),[x,$]=yt(!1),f=kt(null);Ua(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;$(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return xt.createElement(oc,{$disabled:s},xt.createElement(Vl,{title:i,required:d,tooltip:a,status:m}),xt.createElement(ic,{ref:f},xt.createElement(ac,{$isOpen:h,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:m,$disabled:s,onClick:()=>!s&&b()},xt.createElement(pc,{value:t,placeholder:r,onDeselect:o}),xt.createElement(rc,null,l&&xt.createElement(ua,{label:y,filled:!!y}),xt.createElement(zr,{extend:h}))),h&&xt.createElement(hc,{openUpwards:x,options:e,value:t,onSelect:e=>{n?.(e),l||b()},onDeselect:e=>{o?.(e),l||b()},isMulti:l,showSearch:c})),!!p&&xt.createElement(Ki,null,p))},lc=It(rc)`
1191
+ `,sc=({options:e,value:t,onSelect:o,onDeselect:n,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=yt(!1),[x,$]=yt(!1),f=kt(null);Ua(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;$(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return xt.createElement(nc,{$disabled:s},xt.createElement(Vl,{title:i,required:d,tooltip:a,status:h}),xt.createElement(ic,{ref:f},xt.createElement(ac,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b()},xt.createElement(pc,{value:t,placeholder:r,onDeselect:n}),xt.createElement(rc,null,l&&xt.createElement(ua,{label:y,filled:!!y}),xt.createElement(zr,{extend:m}))),m&&xt.createElement(mc,{openUpwards:x,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})),!!p&&xt.createElement(Ji,null,p))},lc=It(rc)`
1190
1192
  max-width: calc(100% - 50px);
1191
1193
  overflow-x: auto;
1192
1194
  `,cc=It(_i)`
@@ -1204,7 +1206,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1204
1206
  transition: transform 0.3s;
1205
1207
  }
1206
1208
  }
1207
- `,dc=It(_i)``,pc=({value:e,placeholder:t,onDeselect:n})=>{const o=Ci.useTheme();return Array.isArray(e)?e.length?xt.createElement(lc,null,e.map(e=>xt.createElement(cc,{key:`multi-label-${e.id}`,size:14},e.value,xt.createElement(jr,{orientation:"vertical",length:"10px",margin:"0 4px"}),xt.createElement(at,{size:12,onClick:t=>{t.stopPropagation(),n?.(e)}})))):xt.createElement(dc,{size:14,color:o.text.darker_grey},t):xt.createElement(dc,{size:14,color:e?.value?void 0:o.text.darker_grey},e?.value||t)},uc=It.div`
1209
+ `,dc=It(_i)``,pc=({value:e,placeholder:t,onDeselect:o})=>{const n=Ci.useTheme();return Array.isArray(e)?e.length?xt.createElement(lc,null,e.map(e=>xt.createElement(cc,{key:`multi-label-${e.id}`,size:14},e.value,xt.createElement(jr,{orientation:"vertical",length:"10px",margin:"0 4px"}),xt.createElement(at,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})))):xt.createElement(dc,{size:14,color:n.text.darker_grey},t):xt.createElement(dc,{size:14,color:e?.value?void 0:n.text.darker_grey},e?.value||t)},uc=It.div`
1208
1210
  position: absolute;
1209
1211
  ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1210
1212
  left: 0;
@@ -1219,11 +1221,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1219
1221
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1220
1222
  border: 1px solid ${({theme:e})=>e.colors.border};
1221
1223
  border-radius: 24px;
1222
- `,mc=It.div`
1224
+ `,hc=It.div`
1223
1225
  display: flex;
1224
1226
  flex-direction: column;
1225
1227
  align-items: center;
1226
- `,hc=({openUpwards:e,options:t,value:n,onSelect:o,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=yt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return xt.createElement(uc,{$openUpwards:e},r&&xt.createElement(mc,null,xt.createElement(Xl,{placeholder:"Search...",icon:ct,value:s,onChange:e=>l(e.target.value)}),xt.createElement(jr,{thickness:1,margin:"8px 0 0 0"})),0===c.length?xt.createElement(nc,{subTitle:r&&s?void 0:" "}):c.map((e,t)=>xt.createElement(xc,{key:`dropdown-option-${e.id||t}`,option:e,value:n,isMulti:a,onSelect:o,onDeselect:i})))},gc=It.div`
1228
+ `,mc=({openUpwards:e,options:t,value:o,onSelect:n,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=yt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return xt.createElement(uc,{$openUpwards:e},r&&xt.createElement(hc,null,xt.createElement(Xl,{placeholder:"Search...",icon:ct,value:s,onChange:e=>l(e.target.value)}),xt.createElement(jr,{thickness:1,margin:"8px 0 0 0"})),0===c.length?xt.createElement(oc,{subTitle:r&&s?void 0:" "}):c.map((e,t)=>xt.createElement(xc,{key:`dropdown-option-${e.id||t}`,option:e,value:o,isMulti:a,onSelect:n,onDeselect:i})))},gc=It.div`
1227
1229
  padding: 8px 12px;
1228
1230
  cursor: pointer;
1229
1231
  display: flex;
@@ -1234,7 +1236,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1234
1236
  &.selected {
1235
1237
  background: ${({theme:e})=>e.colors.majestic_blue+Ci.opacity.hex["024"]};
1236
1238
  }
1237
- `,xc=({option:e,value:t,isMulti:n,onSelect:o,onDeselect:i})=>{const a=Ci.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?xt.createElement(gc,{className:r?"selected":"",onClick:()=>s(!r)},xt.createElement(hr,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):xt.createElement(gc,{className:r?"selected":"",onClick:()=>r?i?.(e):o?.(e)},xt.createElement(er,{$gap:8},e.icon&&xt.createElement(e.icon,null),xt.createElement(_i,{size:14},e.value)),r&&xt.createElement(Je,null))},$c=({error:e})=>{const t=Ci.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 xt.createElement("div",{style:n.container},xt.createElement("h2",null,"Something went wrong!"),xt.createElement("pre",{style:n.errorMessage},e?.message||"Unknown Error"),xt.createElement("details",{style:n.errorStackWrapper},xt.createElement("summary",null,"Stack Trace"),xt.createElement("pre",{style:n.errorStack},e?.stack||"Unknown Stack")),xt.createElement("p",{style:n.infoText},"Try refreshing the page or contact support"),xt.createElement(xa,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},fc=({children:e})=>xt.createElement(Vt,{FallbackComponent:e=>xt.createElement(Ci.Provider,null,xt.createElement($c,{...e}))},e),bc=It(er)`
1239
+ `,xc=({option:e,value:t,isMulti:o,onSelect:n,onDeselect:i})=>{const a=Ci.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?n?.(e):i?.(e);return o?xt.createElement(gc,{className:r?"selected":"",onClick:()=>s(!r)},xt.createElement(mr,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):xt.createElement(gc,{className:r?"selected":"",onClick:()=>r?i?.(e):n?.(e)},xt.createElement(er,{$gap:8},e.icon&&xt.createElement(e.icon,null),xt.createElement(_i,{size:14},e.value)),r&&xt.createElement(Ke,null))},$c=({error:e})=>{const t=Ci.useTheme(),o={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 xt.createElement("div",{style:o.container},xt.createElement("h2",null,"Something went wrong!"),xt.createElement("pre",{style:o.errorMessage},e?.message||"Unknown Error"),xt.createElement("details",{style:o.errorStackWrapper},xt.createElement("summary",null,"Stack Trace"),xt.createElement("pre",{style:o.errorStack},e?.stack||"Unknown Stack")),xt.createElement("p",{style:o.infoText},"Try refreshing the page or contact support"),xt.createElement(xa,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},fc=({children:e})=>xt.createElement(Vt,{FallbackComponent:e=>xt.createElement(Ci.Provider,null,xt.createElement($c,{...e}))},e),bc=It(er)`
1238
1240
  position: relative;
1239
1241
  width: calc(100% - 24px);
1240
1242
  padding: 12px;
@@ -1253,9 +1255,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1253
1255
  left: 50%;
1254
1256
  transform: translateX(-50%);
1255
1257
  gap: 12px;
1256
- `,vc=({left:e=[],center:t=[],right:n=[]})=>xt.createElement(bc,null,xt.createElement(yc,null,e.map((e,t)=>e&&xt.createElement($t,{key:t},e))),xt.createElement(kc,null,t.map((e,t)=>e&&xt.createElement($t,{key:t},e))),xt.createElement(wc,null,n.map((e,t)=>e&&xt.createElement($t,{key:t},e)))),Cc=It(_i)`
1258
+ `,vc=({left:e=[],center:t=[],right:o=[]})=>xt.createElement(bc,null,xt.createElement(yc,null,e.map((e,t)=>e&&xt.createElement($t,{key:t},e))),xt.createElement(kc,null,t.map((e,t)=>e&&xt.createElement($t,{key:t},e))),xt.createElement(wc,null,o.map((e,t)=>e&&xt.createElement($t,{key:t},e)))),Cc=It(_i)`
1257
1259
  color: ${({theme:e})=>e.text.grey};
1258
- `,Ec=({icon:e,title:t,badge:n,badgeTooltip:o,loading:i})=>xt.createElement(er,{$gap:6},e&&xt.createElement(e,null),xt.createElement(Cc,{size:14},t),void 0!==n&&xt.createElement(pr,{text:o},xt.createElement(ua,{label:n})),i&&xt.createElement(Nr,null)),Sc=It.div`
1260
+ `,Ec=({icon:e,title:t,badge:o,badgeTooltip:n,loading:i})=>xt.createElement(er,{$gap:6},e&&xt.createElement(e,null),xt.createElement(Cc,{size:14},t),void 0!==o&&xt.createElement(pr,{text:n},xt.createElement(ua,{label:o})),i&&xt.createElement(Nr,null)),Sc=It.div`
1259
1261
  width: fit-content;
1260
1262
  height: fit-content;
1261
1263
  padding: 4px;
@@ -1280,7 +1282,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1280
1282
  justify-content: center;
1281
1283
 
1282
1284
  cursor: pointer;
1283
- `,Dc=({orientation:e="vertical",flip:t,mainIcons:n,subIcons:o})=>xt.createElement(Sc,{$orientation:e,$flip:t},n.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>xt.createElement(pr,{key:`main-nav-icon-${i}`,text:o},xt.createElement(Ac,{$selected:t,onClick:n},xt.createElement(e,{size:20})))),!!n.length&&!!o.length&&xt.createElement(jr,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),o.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>xt.createElement(pr,{key:`sub-nav-icon-${i}`,text:o},xt.createElement(Ac,{$selected:t,onClick:n},xt.createElement(e,{size:20}))))),Tc=It.div`
1285
+ `,Dc=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:n})=>xt.createElement(Sc,{$orientation:e,$flip:t},o.map(({icon:e,selected:t,onClick:o,tooltip:n},i)=>xt.createElement(pr,{key:`main-nav-icon-${i}`,text:n},xt.createElement(Ac,{$selected:t,onClick:o},xt.createElement(e,{size:20})))),!!o.length&&!!n.length&&xt.createElement(jr,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),n.map(({icon:e,selected:t,onClick:o,tooltip:n},i)=>xt.createElement(pr,{key:`sub-nav-icon-${i}`,text:n},xt.createElement(Ac,{$selected:t,onClick:o},xt.createElement(e,{size:20}))))),Tc=It.div`
1284
1286
  display: flex;
1285
1287
  flex-direction: column;
1286
1288
  width: 100%;
@@ -1292,10 +1294,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1292
1294
  display: flex;
1293
1295
  align-items: center;
1294
1296
  gap: 16px;
1295
- `,zc=It(Kr)`
1297
+ `,zc=It(Jr)`
1296
1298
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1297
1299
  opacity: ${({$disabled:e})=>e?.5:1};
1298
- `,Oc=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=yt(t||e);wt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=kt(JSON.stringify(c));wt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,n&&n(c))},[c,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 xt.createElement(Tc,null,xt.createElement(Vl,{title:o,required:a,tooltip:i}),xt.createElement(Nc,null,s.map((e,t)=>{const n=t===s.length-1;return xt.createElement(Ic,{key:`input-list-${t}`},xt.createElement(Xl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:Ao(e)&&!u&&n}),t===s.length-1&&xt.createElement(zc,{withBorder:!0,size:30,$disabled:m,onClick:m?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},xt.createElement(et,null)),xt.createElement(zc,{size:30,$disabled:h,onClick:h?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,n)=>n!==e))})(t)},xt.createElement(dt,null)))})),!!r&&xt.createElement(Ki,null,r))},Fc=({col:e,colIdx:t,row:n,rowIdx:o,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:m,type:h,componentType:g,options:x,renderCondition:$}=e,f=n[c];return $&&!$(n)?null:xt.createElement("td",{key:`input-table-${o}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===cn.Dropdown){const e=x?.find(e=>e.id===f);return xt.createElement(sc,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:m,options:x||[],value:e,onSelect:e=>r(c,e.id,o),onDeselect:()=>r(c,"",o),hasError:!!s&&(!m||m&&Ao(f))})}{const e=i>1&&o===i-1&&0===t&&Ao(f);return xt.createElement(Xl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:h,required:m,autoFocus:e,value:f,onChange:({target:{value:e}})=>r(c,e,o),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!m||m&&Ao(f))})}})())},_c=It.div`
1300
+ `,Oc=({initialValues:e=[],value:t,onChange:o,title:n,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=yt(t||e);wt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=kt(JSON.stringify(c));wt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c,o]);const p=(e,t)=>{l(o=>{const n=[...o];return n[t]=e,n})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return xt.createElement(Tc,null,xt.createElement(Vl,{title:n,required:a,tooltip:i}),xt.createElement(Nc,null,s.map((e,t)=>{const o=t===s.length-1;return xt.createElement(Ic,{key:`input-list-${t}`},xt.createElement(Xl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:An(e)&&!u&&o}),t===s.length-1&&xt.createElement(zc,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},xt.createElement(et,null)),xt.createElement(zc,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t)},xt.createElement(dt,null)))})),!!r&&xt.createElement(Ji,null,r))},Fc=({col:e,colIdx:t,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:x,renderCondition:$}=e,f=o[c];return $&&!$(o)?null:xt.createElement("td",{key:`input-table-${n}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===lo.Dropdown){const e=x?.find(e=>e.id===f);return xt.createElement(sc,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:x||[],value:e,onSelect:e=>r(c,e.id,n),onDeselect:()=>r(c,"",n),hasError:!!s&&(!h||h&&An(f))})}{const e=i>1&&n===i-1&&0===t&&An(f);return xt.createElement(Xl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:e,value:f,onChange:({target:{value:e}})=>r(c,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!h||h&&An(f))})}})())},_c=It.div`
1299
1301
  display: flex;
1300
1302
  flex-direction: column;
1301
1303
  width: 100%;
@@ -1305,25 +1307,25 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1305
1307
  border: none;
1306
1308
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1307
1309
  opacity: ${({disabled:e})=>e?.5:1};
1308
- `,Lc=({columns:e,initialValues:t=[],value:n,onChange:o,errorMessage:i,limitFieldsPerRow:a,title:r=""})=>{const[s,l]=yt({}),[c,d]=yt(n||t),p=ft(()=>new Map(e.map(e=>[e.keyName,e])),[e]);wt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,n]of Object.entries(e)){const o=p.get(t);if((!o?.renderCondition||o.renderCondition(e))&&o?.required&&Ao(n))return!1}return!0}),m=kt(JSON.stringify(u)),h=u.length!==c.length,g=`${Math.floor(640/((a||e.length)+.4))}px`;wt(()=>{const e=JSON.stringify(u);m.current!==e&&(m.current=e,o&&o(u))},[u,o]);const x=(e,t,n)=>{d(o=>{const i=Hn(o);return i[n][e]=t,i})},$=ft(()=>{if(a){const t=[];for(let n=0;;n+=a){const o=e.slice(n,n+a);if(!o.length)break;t.push(o)}return t}return[e]},[a,e]);return xt.createElement(_c,null,xt.createElement(Vl,{title:r}),xt.createElement("table",{style:{borderCollapse:"collapse"}},!a&&xt.createElement("thead",null,xt.createElement("tr",null,e.map(({title:e,tooltip:t,required:n})=>xt.createElement("th",{key:`input-table-head-${e}`,style:{maxWidth:g}},xt.createElement(Vl,{title:e,required:n,tooltip:t}))),xt.createElement("th",null))),xt.createElement("tbody",null,c.map((t,n)=>xt.createElement($t,{key:`input-table-row-${n}`},a&&n>0?xt.createElement("tr",null,xt.createElement("td",{colSpan:$.length},xt.createElement(jr,null))):null,$.map((o,r)=>xt.createElement("tr",{key:`input-table-matrix-${n}-${r}`},o.map((e,o)=>xt.createElement(Fc,{key:`input-table-row-${n}-col-${o}`,col:e,colIdx:o,row:t,rowIdx:n,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:a,errorMessage:i,handleChange:x})),0===r&&xt.createElement("td",null,xt.createElement(Rc,{$marginTop:a?"24px":"0",onClick:()=>{return t=n,void(c.length>1?d(e=>e.filter((e,n)=>n!==t)):e.forEach(({keyName:e,type:n})=>x(e,n===dn.Number?"0":"",t)));var t}},xt.createElement(dt,null))))))))),!!i&&xt.createElement(Ki,null,i),xt.createElement(qr,{onClick:()=>{d(e=>{const t=Hn(e);return t.push(Hn(s)),t})},disabled:h}))},Bc=It.div`
1310
+ `,Lc=({columns:e,initialValues:t=[],value:o,onChange:n,errorMessage:i,limitFieldsPerRow:a,title:r=""})=>{const[s,l]=yt({}),[c,d]=yt(o||t),p=ft(()=>new Map(e.map(e=>[e.keyName,e])),[e]);wt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const n=p.get(t);if((!n?.renderCondition||n.renderCondition(e))&&n?.required&&An(o))return!1}return!0}),h=kt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((a||e.length)+.4))}px`;wt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,n&&n(u))},[u,n]);const x=(e,t,o)=>{d(n=>{const i=Ho(n);return i[o][e]=t,i})},$=ft(()=>{if(a){const t=[];for(let o=0;;o+=a){const n=e.slice(o,o+a);if(!n.length)break;t.push(n)}return t}return[e]},[a,e]);return xt.createElement(_c,null,xt.createElement(Vl,{title:r}),xt.createElement("table",{style:{borderCollapse:"collapse"}},!a&&xt.createElement("thead",null,xt.createElement("tr",null,e.map(({title:e,tooltip:t,required:o})=>xt.createElement("th",{key:`input-table-head-${e}`,style:{maxWidth:g}},xt.createElement(Vl,{title:e,required:o,tooltip:t}))),xt.createElement("th",null))),xt.createElement("tbody",null,c.map((t,o)=>xt.createElement($t,{key:`input-table-row-${o}`},a&&o>0?xt.createElement("tr",null,xt.createElement("td",{colSpan:$.length},xt.createElement(jr,null))):null,$.map((n,r)=>xt.createElement("tr",{key:`input-table-matrix-${o}-${r}`},n.map((e,n)=>xt.createElement(Fc,{key:`input-table-row-${o}-col-${n}`,col:e,colIdx:n,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:a,errorMessage:i,handleChange:x})),0===r&&xt.createElement("td",null,xt.createElement(Rc,{$marginTop:a?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>x(e,o===co.Number?"0":"",t)));var t}},xt.createElement(dt,null))))))))),!!i&&xt.createElement(Ji,null,i),xt.createElement(qr,{onClick:()=>{d(e=>{const t=Ho(e);return t.push(Ho(s)),t})},disabled:m}))},Pc=It.div`
1309
1311
  display: flex;
1310
1312
  flex-direction: column;
1311
1313
  width: 100%;
1312
- `,Mc=It.div`
1314
+ `,Bc=It.div`
1313
1315
  display: flex;
1314
1316
  flex-direction: column;
1315
1317
  gap: 8px;
1316
- `,Pc=It.div`
1318
+ `,Mc=It.div`
1317
1319
  display: flex;
1318
1320
  align-items: center;
1319
1321
  gap: 8px;
1320
1322
  `,jc=It.div`
1321
1323
  width: 100%;
1322
1324
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1323
- `,Uc=It(Kr)`
1325
+ `,Uc=It(Jr)`
1324
1326
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1325
1327
  opacity: ${({$disabled:e})=>e?.5:1};
1326
- `,Wc={key:"",value:""},Vc=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=yt(t||e);wt(()=>{p.length||u([{...Wc}])},[]);const m=p.filter(({key:e,value:t})=>!Ao(e.trim())&&!Ao(t.trim())),h=kt(JSON.stringify(m));wt(()=>{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,$=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=a||x&&$;return xt.createElement(Bc,null,xt.createElement(Vl,{title:o,required:r,tooltip:i}),xt.createElement(Mc,null,p.map(({key:e,value:t},n)=>xt.createElement(Pc,{key:`key-value-input-list-${n}`},xt.createElement(jc,{$maxWidth:d},xt.createElement(Xl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:Ao(t)&&!x&&n===p.length-1})),xt.createElement(jc,{$maxWidth:n===p.length-1?d-38:d},xt.createElement(Xl,{placeholder:c,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&Ao(t)),autoFocus:!1})),n===p.length-1&&xt.createElement(Uc,{withBorder:!0,size:30,$disabled:$,onClick:$?void 0:()=>{u(e=>{const t=[...e];return t.push({...Wc}),t})}},xt.createElement(et,null)),xt.createElement(Uc,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{x?(g("key","",e),g("value","",e)):u(t=>t.filter((t,n)=>n!==e))})(n)},xt.createElement(dt,null))))),!!s&&xt.createElement(Ki,null,s))},Hc=It.div`
1328
+ `,Wc={key:"",value:""},Vc=({initialKeyValuePairs:e=[],value:t,onChange:o,title:n,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=yt(t||e);wt(()=>{p.length||u([{...Wc}])},[]);const h=p.filter(({key:e,value:t})=>!An(e.trim())&&!An(t.trim())),m=kt(JSON.stringify(h));wt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h,o]);const g=(e,t,o)=>{u(n=>{const i=[...n];return i[o][e]=t,i})},x=p.length<=1,$=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=a||x&&$;return xt.createElement(Pc,null,xt.createElement(Vl,{title:n,required:r,tooltip:i}),xt.createElement(Bc,null,p.map(({key:e,value:t},o)=>xt.createElement(Mc,{key:`key-value-input-list-${o}`},xt.createElement(jc,{$maxWidth:d},xt.createElement(Xl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!r||r&&!e),autoFocus:An(t)&&!x&&o===p.length-1})),xt.createElement(jc,{$maxWidth:o===p.length-1?d-38:d},xt.createElement(Xl,{placeholder:c,disabled:a,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!r||r&&An(t)),autoFocus:!1})),o===p.length-1&&xt.createElement(Uc,{withBorder:!0,size:30,$disabled:$,onClick:$?void 0:()=>{u(e=>{const t=[...e];return t.push({...Wc}),t})}},xt.createElement(et,null)),xt.createElement(Uc,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{x?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o)},xt.createElement(dt,null))))),!!s&&xt.createElement(Ji,null,s))},Hc=It.div`
1327
1329
  position: fixed;
1328
1330
  top: 50%;
1329
1331
  left: 50%;
@@ -1346,11 +1348,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1346
1348
  display: flex;
1347
1349
  align-items: center;
1348
1350
  gap: 8px;
1349
- `,Jc=It.div`
1351
+ `,Kc=It.div`
1350
1352
  display: flex;
1351
1353
  align-items: center;
1352
1354
  gap: 8px;
1353
- `,Kc=It(nr)`
1355
+ `,Jc=It(or)`
1354
1356
  min-width: 350px;
1355
1357
  min-height: 150px;
1356
1358
  `,Yc=It.div`
@@ -1373,7 +1375,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1373
1375
  font-family: ${({theme:e})=>e.font_family.secondary};
1374
1376
  text-decoration: underline;
1375
1377
  cursor: pointer;
1376
- `,Zc=({isOpen:e,noOverlay:t,header:n,actionComponent:o,onClose:i,children:a,closeOnEscape:r=!0})=>{ja({key:"Escape",active:e&&r},()=>i()),Sa(e);const s=Qa({container:Hc,animateIn:Ci.animations.slide.in.center,animateOut:Ci.animations.slide.out.center});return e?Pt.createPortal(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),xt.createElement(s,{"data-id":"modal"+(n?`-${n.title.replaceAll(" ","-")}`:""),enter:e},n&&xt.createElement(qc,null,xt.createElement(Gc,{onClick:i},xt.createElement(at,null),xt.createElement(Qc,null,"Cancel")),xt.createElement(Yc,null,xt.createElement(Xc,null,n.title)),xt.createElement(Jc,null,o)),xt.createElement(Kc,null,a))),document.body):null},ed=It.div`
1378
+ `,Zc=({isOpen:e,noOverlay:t,header:o,actionComponent:n,onClose:i,children:a,closeOnEscape:r=!0})=>{ja({key:"Escape",active:e&&r},()=>i()),Sa(e);const s=Qa({container:Hc,animateIn:Ci.animations.slide.in.center,animateOut:Ci.animations.slide.out.center});return e?Mt.createPortal(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),xt.createElement(s,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:""),enter:e},o&&xt.createElement(qc,null,xt.createElement(Gc,{onClick:i},xt.createElement(at,null),xt.createElement(Qc,null,"Cancel")),xt.createElement(Yc,null,xt.createElement(Xc,null,o.title)),xt.createElement(Kc,null,n)),xt.createElement(Jc,null,a))),document.body):null},ed=It.div`
1377
1379
  display: flex;
1378
1380
  flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1379
1381
  gap: ${({$isVertical:e})=>e?"12px":"24px"};
@@ -1382,7 +1384,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1382
1384
  border-radius: 32px;
1383
1385
  padding: 8px;
1384
1386
  `}
1385
- `,td=(e,t)=>!t?.length||!!t?.find(t=>t===e),nd=({isVertical:e,title:t="Monitors",required:n,errorMessage:o,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=yt(1===a.length),c=kt(JSON.stringify(a));return wt(()=>{const e=a;e.length||Pn.forEach(({id:t})=>{td(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,r(e),l(1===e.length)),()=>{c.current=""}},[i]),xt.createElement("div",null,t&&xt.createElement(Vl,{title:t,required:n}),xt.createElement(ed,{$isVertical:e,$hasError:!!o},Pn.map(e=>{const t=td(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?xt.createElement(hr,{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&&xt.createElement(Ki,null,o))},od=It.div`
1387
+ `,td=(e,t)=>!t?.length||!!t?.find(t=>t===e),od=({isVertical:e,title:t="Monitors",required:o,errorMessage:n,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=yt(1===a.length),c=kt(JSON.stringify(a));return wt(()=>{const e=a;e.length||Mo.forEach(({id:t})=>{td(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,r(e),l(1===e.length)),()=>{c.current=""}},[i]),xt.createElement("div",null,t&&xt.createElement(Vl,{title:t,required:o}),xt.createElement(ed,{$isVertical:e,$hasError:!!n},Mo.map(e=>{const t=td(e.id,i),o=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?xt.createElement(mr,{key:e.id,title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,n=t?[...a,o]:a.filter(e=>e!==o);r(n),l(1===n.length)})(e.id,t)}):null})),!!n&&xt.createElement(Ji,null,n))},nd=It.div`
1386
1388
  display: flex;
1387
1389
  gap: 8px;
1388
1390
  align-items: center;
@@ -1392,7 +1394,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1392
1394
  justify-content: center;
1393
1395
  gap: 8px;
1394
1396
  min-width: 90px;
1395
- `,ad=({buttons:e})=>{const t=Ci.useTheme(),n=({button:t,index:n})=>e.length>1&&0===n&&(t.icon||t.iconSrc),o=({button:e,rotate:n})=>e.icon?xt.createElement(e.icon,{size:14,rotate:n,fill:t.text[e.variant||"secondary"]}):e.iconSrc?xt.createElement("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return xt.createElement(od,null,e.map((e,t)=>xt.createElement(pr,{key:t,text:e.tooltip||""},xt.createElement(id,{key:t,variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled},n({button:e,index:t})&&o({button:e,rotate:0}),e.label,!n({button:e,index:t})&&o({button:e,rotate:180})))))},rd=It.div`
1397
+ `,ad=({buttons:e})=>{const t=Ci.useTheme(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),n=({button:e,rotate:o})=>e.icon?xt.createElement(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?xt.createElement("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return xt.createElement(nd,null,e.map((e,t)=>xt.createElement(pr,{key:t,text:e.tooltip||""},xt.createElement(id,{key:t,variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled},o({button:e,index:t})&&n({button:e,rotate:0}),e.label,!o({button:e,index:t})&&n({button:e,rotate:180})))))},rd=It.div`
1396
1398
  position: relative;
1397
1399
  &.animated {
1398
1400
  overflow: hidden;
@@ -1431,7 +1433,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1431
1433
  `,pd=It(_i)`
1432
1434
  color: ${({$type:e,theme:t})=>t.text[e]};
1433
1435
  font-size: 12px;
1434
- `,ud=It(er)``,md=It(_i)`
1436
+ `,ud=It(er)``,hd=It(_i)`
1435
1437
  text-transform: uppercase;
1436
1438
  text-decoration: underline;
1437
1439
  font-size: 12px;
@@ -1442,13 +1444,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1442
1444
  transform: scale(1.1);
1443
1445
  transition: transform 0.3s;
1444
1446
  }
1445
- `,hd=({type:e,icon:t,title:n,message:o,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const c=Ci.useTheme(),[d,p]=yt(!1),u=kt(null),m=kt(null),h=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};wt(()=>(u.current=setTimeout(()=>h({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||yo(e,c);return xt.createElement(rd,{className:a?"animated":"",$duration:r,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),m.current&&(m.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(m.current){const e=m.current.offsetWidth/m.current.parentElement.offsetWidth*r;u.current=setTimeout(()=>h({asSeen:!1}),e),m.current.style.animationPlayState="running"}}},xt.createElement(ld,{"data-id":"toast",$type:e,style:l},xt.createElement(g,{fill:c.text[e]}),xt.createElement(cd,{$withAction:!!i,$overrideMaxWidth:s},n&&xt.createElement(dd,{$type:e},n),n&&o&&xt.createElement(jr,{orientation:"vertical",type:e}),o&&xt.createElement(pd,{$type:e},o)),(!!i||!!a)&&xt.createElement(ud,null,i&&xt.createElement(md,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&xt.createElement(Kr,{"data-id":"toast-close",onClick:()=>h({asSeen:!0})},xt.createElement(at,{size:12})))),a&&xt.createElement(sd,{ref:m,$duration:r,$type:e}))},gd=It(tr)`
1447
+ `,md=({type:e,icon:t,title:o,message:n,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const c=Ci.useTheme(),[d,p]=yt(!1),u=kt(null),h=kt(null),m=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};wt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||yn(e,c);return xt.createElement(rd,{className:a?"animated":"",$duration:r,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*r;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}}},xt.createElement(ld,{"data-id":"toast",$type:e,style:l},xt.createElement(g,{fill:c.text[e]}),xt.createElement(cd,{$withAction:!!i,$overrideMaxWidth:s},o&&xt.createElement(dd,{$type:e},o),o&&n&&xt.createElement(jr,{orientation:"vertical",type:e}),n&&xt.createElement(pd,{$type:e},n)),(!!i||!!a)&&xt.createElement(ud,null,i&&xt.createElement(hd,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&xt.createElement(Jr,{"data-id":"toast-close",onClick:()=>m({asSeen:!0})},xt.createElement(at,{size:12})))),a&&xt.createElement(sd,{ref:h,$duration:r,$type:e}))},gd=It(tr)`
1446
1448
  gap: 12px;
1447
1449
  `,xd=It(er)`
1448
1450
  width: 100%;
1449
1451
  gap: 12px;
1450
1452
  align-items: flex-end;
1451
- `,$d=({clientX:e=0,flipX:t,clientY:n=0,flipY:o,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const m=Ci.useTheme(),{popupRef:h,popupPosition:g,handlePosition:x}=Wa({onClickOutside:a});return ja({key:"Enter",active:i},r),wt(()=>x(e,n),[e,n]),0===g.top&&0!==n||0===g.left&&0!==e?null:xt.createElement(ka,{ref:h,isOpen:i,top:o?void 0:g.top,bottom:o?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px"},xt.createElement(gd,null,xt.createElement(pr,{text:d,withIcon:!0},xt.createElement(_i,{size:14},c)),xt.createElement(xd,null,u,xt.createElement(er,{$gap:6},xt.createElement(Kr,{withBorder:!0,onClick:a,tooltip:"Cancel"},xt.createElement(at,null)),xt.createElement(Kr,{withBorder:!0,backgroundColor:m.colors.secondary,onClick:r,tooltip:"Save"},xt.createElement(Je,{fill:m.text.primary})),s&&xt.createElement(Kr,{onClick:l,tooltip:"Undo"},xt.createElement(dt,null)))),p&&xt.createElement(hd,{type:pn.Warning,message:p})))},fd=It.div`
1453
+ `,$d=({clientX:e=0,flipX:t,clientY:o=0,flipY:n,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Ci.useTheme(),{popupRef:m,popupPosition:g,handlePosition:x}=Wa({onClickOutside:a});return ja({key:"Enter",active:i},r),wt(()=>x(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:xt.createElement(ka,{ref:m,isOpen:i,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px"},xt.createElement(gd,null,xt.createElement(pr,{text:d,withIcon:!0},xt.createElement(_i,{size:14},c)),xt.createElement(xd,null,u,xt.createElement(er,{$gap:6},xt.createElement(Jr,{withBorder:!0,onClick:a,tooltip:"Cancel"},xt.createElement(at,null)),xt.createElement(Jr,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:r,tooltip:"Save"},xt.createElement(Ke,{fill:h.text.primary})),s&&xt.createElement(Jr,{onClick:l,tooltip:"Undo"},xt.createElement(dt,null)))),p&&xt.createElement(md,{type:po.Warning,message:p})))},fd=It.div`
1452
1454
  height: ${({$height:e})=>e}px;
1453
1455
  width: 100%;
1454
1456
  overflow: auto;
@@ -1463,7 +1465,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1463
1465
  top: 0;
1464
1466
  left: 0;
1465
1467
  transform: translateY(${({$yOffset:e})=>e}px);
1466
- `,wd=({containerHeight:e,elementHeight:t,elements:n})=>{const{overflowRef:o,listHeight:i,listItems:a}=Ba({items:n,rowHeight:t});return xt.createElement(fd,{ref:o,$height:e},xt.createElement(bd,{$height:i},a.map(({key:e,index:t,size:o,start:i})=>{const a=t>n.length-1,r=n[t];return xt.createElement(yd,{key:e,$height:o,$yOffset:i},a?xt.createElement(nr,null,xt.createElement(Bi,null)):r)})))},kd=It.div`
1468
+ `,wd=({containerHeight:e,elementHeight:t,elements:o})=>{const{overflowRef:n,listHeight:i,listItems:a}=Pa({items:o,rowHeight:t});return xt.createElement(fd,{ref:n,$height:e},xt.createElement(bd,{$height:i},a.map(({key:e,index:t,size:n,start:i})=>{const a=t>o.length-1,r=o[t];return xt.createElement(yd,{key:e,$height:n,$yOffset:i},a?xt.createElement(or,null,xt.createElement(Pi,null)):r)})))},kd=It.div`
1467
1469
  display: flex;
1468
1470
  justify-content: space-between;
1469
1471
  align-items: center;
@@ -1476,7 +1478,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1476
1478
  display: flex;
1477
1479
  align-items: center;
1478
1480
  gap: 8px;
1479
- `,Ed=It(_i)``,Sd=It(_i)``,Ad=({title:e,description:t,badgeLabel:n,icon:o,actionButton:i,size:a="medium"})=>{const r="small"===a?16:"medium"===a?20:24,s="small"===a?12:"medium"===a?14:16;return xt.createElement(kd,null,xt.createElement(vd,null,xt.createElement(Cd,null,o&&xt.createElement(o,{size:r}),xt.createElement(Ed,{weight:300,size:r},e),void 0!==n&&xt.createElement(ua,{label:n,filled:!!n})),xt.createElement(Sd,{weight:200,opacity:.8,size:s},t)),i&&xt.createElement("div",null,i))},Dd=It.div`
1481
+ `,Ed=It(_i)``,Sd=It(_i)``,Ad=({title:e,description:t,badgeLabel:o,icon:n,actionButton:i,size:a="medium"})=>{const r="small"===a?16:"medium"===a?20:24,s="small"===a?12:"medium"===a?14:16;return xt.createElement(kd,null,xt.createElement(vd,null,xt.createElement(Cd,null,n&&xt.createElement(n,{size:r}),xt.createElement(Ed,{weight:300,size:r},e),void 0!==o&&xt.createElement(ua,{label:o,filled:!!o})),xt.createElement(Sd,{weight:200,opacity:.8,size:s},t)),i&&xt.createElement("div",null,i))},Dd=It.div`
1480
1482
  position: relative;
1481
1483
  gap: 0;
1482
1484
  z-index: 0;
@@ -1506,7 +1508,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1506
1508
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1507
1509
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1508
1510
  transition: all 0.3s;
1509
- `,Id=({options:e=[],selected:t,setSelected:n})=>{const o=e.findIndex(e=>e.value===t),[i,a]=yt(e[o]?.selectedBgColor||""),[r,s]=yt({width:0,height:0}),[l,c]=yt({x:0,y:0}),d=kt(null);return wt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*o,y:0}))},[t,o]),xt.createElement(Dd,{$count:e.length},e.map(({icon:o,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return xt.createElement(Td,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{n(r),a(s||"")}},o&&xt.createElement(o,null),i&&xt.createElement(_i,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),xt.createElement(Nd,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===o,$isLastItem:o===e.length-1}))},zd=It(xa)`
1511
+ `,Id=({options:e=[],selected:t,setSelected:o})=>{const n=e.findIndex(e=>e.value===t),[i,a]=yt(e[n]?.selectedBgColor||""),[r,s]=yt({width:0,height:0}),[l,c]=yt({x:0,y:0}),d=kt(null);return wt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*n,y:0}))},[t,n]),xt.createElement(Dd,{$count:e.length},e.map(({icon:n,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return xt.createElement(Td,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(r),a(s||"")}},n&&xt.createElement(n,null),i&&xt.createElement(_i,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),xt.createElement(Nd,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1}))},zd=It(xa)`
1510
1512
  gap: 8px;
1511
1513
  text-transform: none;
1512
1514
  text-decoration: none;
@@ -1525,7 +1527,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1525
1527
  overflow: hidden;
1526
1528
  text-overflow: ellipsis;
1527
1529
  font-size: 14px;
1528
- `,Fd=({label:e,onClick:t,icon:n,iconSrc:o,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Ci.useTheme();return xt.createElement(zd,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d},n&&xt.createElement("div",null,xt.createElement(n,{fill:p.text.info})),o&&xt.createElement("div",null,xt.createElement("img",{src:o,alt:"",width:16,height:16})),xt.createElement(Od,null,e),r&&xt.createElement("div",null,xt.createElement(Je,{fill:p.colors.majestic_blue_soft})),void 0!==i&&xt.createElement(ua,{label:i,filled:a||r}))},_d=It.div`
1530
+ `,Fd=({label:e,onClick:t,icon:o,iconSrc:n,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Ci.useTheme();return xt.createElement(zd,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d},o&&xt.createElement("div",null,xt.createElement(o,{fill:p.text.info})),n&&xt.createElement("div",null,xt.createElement("img",{src:n,alt:"",width:16,height:16})),xt.createElement(Od,null,e),r&&xt.createElement("div",null,xt.createElement(Ke,{fill:p.colors.majestic_blue_soft})),void 0!==i&&xt.createElement(ua,{label:i,filled:a||r}))},_d=It.div`
1529
1531
  display: flex;
1530
1532
  flex-direction: column;
1531
1533
  gap: 16px;
@@ -1541,17 +1543,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1541
1543
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1542
1544
  background-size: 200% 100%;
1543
1545
  animation: ${Ci.animations.shimmer} 10s infinite linear;
1544
- `,Bd=It(tr)`
1546
+ `,Pd=It(tr)`
1545
1547
  flex: 1;
1546
1548
  gap: 12px;
1547
- `,Md=It.div`
1549
+ `,Bd=It.div`
1548
1550
  width: ${({$width:e})=>e};
1549
1551
  height: 16px;
1550
1552
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1551
1553
  background-size: 200% 100%;
1552
1554
  animation: ${Ci.animations.shimmer} 1.5s infinite linear;
1553
1555
  border-radius: 4px;
1554
- `,Pd=({size:e=5,maxWidth:t})=>xt.createElement(_d,{$maxWidth:t},[...Array(e)].map((e,t)=>xt.createElement(Rd,{key:t},xt.createElement(Ld,null),xt.createElement(Bd,null,xt.createElement(Md,{$width:"80%"}),xt.createElement(Md,{$width:"100%"})))));var jd;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(jd||(jd={}));const Ud=It.div`
1556
+ `,Md=({size:e=5,maxWidth:t})=>xt.createElement(_d,{$maxWidth:t},[...Array(e)].map((e,t)=>xt.createElement(Rd,{key:t},xt.createElement(Ld,null),xt.createElement(Pd,null,xt.createElement(Bd,{$width:"80%"}),xt.createElement(Bd,{$width:"100%"})))));var jd;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(jd||(jd={}));const Ud=It.div`
1555
1557
  display: flex;
1556
1558
  flex-direction: column;
1557
1559
  gap: 32px;
@@ -1571,7 +1573,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1571
1573
  `,Hd=It(tr)`
1572
1574
  justify-content: center;
1573
1575
  gap: 8px;
1574
- `,qd=It(_i)``,Gd=It(_i)``,Jd=({data:e,currentStep:t=0})=>{const[n,o]=yt([]);return wt(()=>{o(e.map((e,n)=>n<t-1?{...e,state:jd.Finished,subtitle:e.subtitle||pn.Success}:n===t-1?{...e,state:jd.Active,subtitle:""}:{...e,state:jd.Disabled,subtitle:""}))},[t,e]),xt.createElement(Ud,null,n.map((e,t)=>xt.createElement(Wd,{key:t,$state:e.state},xt.createElement(Vd,{$state:e.state},[jd.Active,jd.Disabled].includes(e.state)?xt.createElement(_i,{size:12},e.stepNumber):e.state===jd.Finished?xt.createElement(Je,{size:20}):null),xt.createElement(Hd,null,xt.createElement(qd,{family:"secondary"},e.title),e.subtitle&&xt.createElement(Gd,{size:10,weight:300},e.subtitle)))))},Kd=It(er)`
1576
+ `,qd=It(_i)``,Gd=It(_i)``,Kd=({data:e,currentStep:t=0})=>{const[o,n]=yt([]);return wt(()=>{n(e.map((e,o)=>o<t-1?{...e,state:jd.Finished,subtitle:e.subtitle||po.Success}:o===t-1?{...e,state:jd.Active,subtitle:""}:{...e,state:jd.Disabled,subtitle:""}))},[t,e]),xt.createElement(Ud,null,o.map((e,t)=>xt.createElement(Wd,{key:t,$state:e.state},xt.createElement(Vd,{$state:e.state},[jd.Active,jd.Disabled].includes(e.state)?xt.createElement(_i,{size:12},e.stepNumber):e.state===jd.Finished?xt.createElement(Ke,{size:20}):null),xt.createElement(Hd,null,xt.createElement(qd,{family:"secondary"},e.title),e.subtitle&&xt.createElement(Gd,{size:10,weight:300},e.subtitle)))))},Jd=It(er)`
1575
1577
  width: fit-content;
1576
1578
  gap: 6px;
1577
1579
  padding: 6px 12px;
@@ -1579,7 +1581,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1579
1581
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
1580
1582
  `,Yd=It(_i)`
1581
1583
  color: ${({$type:e,theme:t})=>t.text[e]};
1582
- `,Xd=({type:e=pn.Info,icon:t,title:n,size:o,family:i,children:a,...r})=>xt.createElement(Kd,{$type:e},t&&xt.createElement(t,null),xt.createElement(Yd,{$type:e,size:o||12,family:i||"secondary",...r},a||n)),Qd=It.div`
1584
+ `,Xd=({type:e=po.Info,icon:t,title:o,size:n,family:i,children:a,...r})=>xt.createElement(Jd,{$type:e},t&&xt.createElement(t,null),xt.createElement(Yd,{$type:e,size:n||12,family:i||"secondary",...r},a||o)),Qd=It.div`
1583
1585
  display: flex;
1584
1586
  flex-direction: column;
1585
1587
  position: relative;
@@ -1636,13 +1638,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1636
1638
  background-color: ${({theme:e})=>e.colors.border};
1637
1639
  cursor: not-allowed;
1638
1640
  }
1639
- `,tp=({errorMessage:e,title:t,tooltip:n,required:o,onChange:i,name:a,...r})=>{const s=kt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return xt.createElement(Qd,null,xt.createElement(Vl,{title:t,required:o,tooltip:n}),xt.createElement(Zd,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},xt.createElement(ep,{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&&xt.createElement(Ki,null,e))},np=It.div`
1641
+ `,tp=({errorMessage:e,title:t,tooltip:o,required:n,onChange:i,name:a,...r})=>{const s=kt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return xt.createElement(Qd,null,xt.createElement(Vl,{title:t,required:n,tooltip:o}),xt.createElement(Zd,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},xt.createElement(ep,{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&&xt.createElement(Ji,null,e))},op=It.div`
1640
1642
  display: flex;
1641
1643
  align-items: center;
1642
1644
  gap: 12px;
1643
1645
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1644
1646
  opacity: ${({$disabled:e})=>e?.6:1};
1645
- `,op=It.div`
1647
+ `,np=It.div`
1646
1648
  width: 24px;
1647
1649
  height: 12px;
1648
1650
  border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
@@ -1664,11 +1666,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1664
1666
  transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1665
1667
  transition: background-color 0.3s, transform 0.3s;
1666
1668
  }
1667
- `,ip=({title:e,tooltip:t,initialValue:n=!1,onChange:o,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=yt(n);return wt(()=>l(n),[n]),xt.createElement(np,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),o?o(!s):l(e=>!e))}},!r&&xt.createElement(op,{$disabled:i,$isActive:s}),(e||t)&&xt.createElement(pr,{text:t,withIcon:!0},e&&xt.createElement(_i,{size:14},e)),r&&xt.createElement(op,{$disabled:i,$isActive:s}))};var ap={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const rp=It.div`
1669
+ `,ip=({title:e,tooltip:t,initialValue:o=!1,onChange:n,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=yt(o);return wt(()=>l(o),[o]),xt.createElement(op,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),n?n(!s):l(e=>!e))}},!r&&xt.createElement(np,{$disabled:i,$isActive:s}),(e||t)&&xt.createElement(pr,{text:t,withIcon:!0},e&&xt.createElement(_i,{size:14},e)),r&&xt.createElement(np,{$disabled:i,$isActive:s}))};var ap={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const rp=It.div`
1668
1670
  width: ${({$width:e})=>e}px;
1669
1671
  height: ${({$height:e})=>e}px;
1670
1672
  position: relative;
1671
- `,sp=({width:e=620})=>{const{darkMode:t}=Ci.useTheme(),n=e/(620/220),o=e;return xt.createElement(rp,{$width:o,$height:n},xt.createElement(Ht,{autoplay:!0,loop:!0,animationData:ap,style:{width:n,height:o,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:t?"invert(0)":"invert(1)"}}))},lp=It.div`
1673
+ `,sp=({width:e=620})=>{const{darkMode:t}=Ci.useTheme(),o=e/(620/220),n=e;return xt.createElement(rp,{$width:n,$height:o},xt.createElement(Ht,{autoplay:!0,loop:!0,animationData:ap,style:{width:o,height:n,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}}))},lp=It.div`
1672
1674
  padding: 24px 32px;
1673
1675
  `,cp=It.div`
1674
1676
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
@@ -1685,11 +1687,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1685
1687
  display: flex;
1686
1688
  justify-content: space-between;
1687
1689
  gap: 12px;
1688
- `,mp=It(xa)`
1690
+ `,hp=It(xa)`
1689
1691
  width: 250px;
1690
- `,hp=It.div`
1692
+ `,mp=It.div`
1691
1693
  margin-bottom: 12px;
1692
- `,gp=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{ja({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return xt.createElement(Zc,{isOpen:e,noOverlay:t,onClose:l},xt.createElement(lp,null,xt.createElement(dp,null,n),xt.createElement(cp,{$withNote:!!i},xt.createElement(pp,null,o)),!!i&&xt.createElement(hp,null,xt.createElement(hd,{type:i.type,title:i.title,message:i.message})),xt.createElement(up,null,xt.createElement(mp,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),xt.createElement(mp,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))},xp=({buttons:e})=>xt.createElement(tr,{$gap:12},e.map(e=>xt.createElement(qi,{key:e.label,...e}))),$p=It.div`
1694
+ `,gp=({isOpen:e,noOverlay:t,title:o="",description:n="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{ja({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return xt.createElement(Zc,{isOpen:e,noOverlay:t,onClose:l},xt.createElement(lp,null,xt.createElement(dp,null,o),xt.createElement(cp,{$withNote:!!i},xt.createElement(pp,null,n)),!!i&&xt.createElement(mp,null,xt.createElement(md,{type:i.type,title:i.title,message:i.message})),xt.createElement(up,null,xt.createElement(hp,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),xt.createElement(hp,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))},xp=({buttons:e})=>xt.createElement(tr,{$gap:12},e.map(e=>xt.createElement(qi,{key:e.label,...e}))),$p=It.div`
1693
1695
  display: flex;
1694
1696
  align-items: center;
1695
1697
  flex-wrap: wrap;
@@ -1703,24 +1705,51 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1703
1705
  display: flex;
1704
1706
  flex-direction: column;
1705
1707
  gap: 4px;
1706
- `,bp=({cellsPerRow:e,items:t})=>{const n=Ft(),{CopyButton:o}=Fa();return xt.createElement($p,null,t.map(({id:i,title:a,label:r,withCopy:s,badge:l})=>xt.createElement(fp,{key:i,$cellsPerRow:e||t.length},xt.createElement(Di,{size:Si.XXXS,color:n.v2.colors.silver[200],nowrap:!0},a),xt.createElement(er,{$gap:4},l&&xt.createElement(Ni,{...l}),r&&xt.createElement(Di,{size:Si.XS,nowrap:!0},r),s&&xt.createElement(o,{value:r||l?.label?.toString()||"",size:Ia.XS})))))};var yp;!function(e){e.S="small",e.L="large"}(yp||(yp={}));const wp=It.div`
1708
+ `,bp=({cellsPerRow:e,items:t})=>{const o=Ft(),{CopyButton:n}=Fa();return xt.createElement($p,null,t.map(({id:i,title:a,label:r,withCopy:s,badge:l})=>xt.createElement(fp,{key:i,$cellsPerRow:e||t.length},xt.createElement(Di,{size:Si.XXXS,color:o.v2.colors.silver[200],nowrap:!0},a),xt.createElement(er,{$gap:4},l&&xt.createElement(Ni,{...l}),r&&xt.createElement(Di,{size:Si.XS,nowrap:!0},r),s&&xt.createElement(n,{value:r||l?.label?.toString()||"",size:Ia.XS})))))},yp=It.div`
1709
+ padding: 6px 12px;
1710
+ display: flex;
1711
+ align-self: stretch;
1712
+ align-items: center;
1713
+ gap: 8px;
1714
+ border-radius: 6px;
1715
+
1716
+ border: none;
1717
+ border-radius: 6px;
1718
+ background: ${({$isHovered:e,$isActive:t,theme:o})=>e||t?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
1719
+ `,wp=It.input`
1720
+ flex: 1;
1721
+ font-family: ${({theme:e})=>e.font_family.primary};
1722
+ font-size: 14px;
1723
+ font-weight: 400;
1724
+ line-height: 20px;
1725
+
1726
+ cursor: text;
1727
+ color: ${({$textColor:e})=>e};
1728
+ &::placeholder {
1729
+ color: ${({$textColor:e})=>e};
1730
+ }
1731
+
1732
+ overflow: hidden;
1733
+ text-overflow: ellipsis;
1734
+ white-space: nowrap;
1735
+ `,kp=({placeholder:e="Search...",value:t,onChange:o})=>{const n=Ci.useTheme(),[i,a]=yt(!1),[r,s]=yt(!1),l=r?n.v2.colors.white[500]:n.v2.colors.silver[200];return xt.createElement(yp,{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),$isHovered:i,$isActive:r},xt.createElement(ct,{size:18,fill:l}),xt.createElement(wp,{"data-id":"search",name:"search",type:"text",placeholder:e,value:t,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:l}))};var vp;!function(e){e.S="small",e.L="large"}(vp||(vp={}));const Cp=It.div`
1707
1736
  width: fit-content;
1708
1737
  display: flex;
1709
1738
  align-items: center;
1710
1739
  gap: 8px;
1711
1740
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1712
- `,kp=It.div`
1713
- width: ${({$size:e})=>e===yp.S?"16px":"20px"};
1714
- height: ${({$size:e})=>e===yp.S?"16px":"20px"};
1741
+ `,Ep=It.div`
1742
+ width: ${({$size:e})=>e===vp.S?"16px":"20px"};
1743
+ height: ${({$size:e})=>e===vp.S?"16px":"20px"};
1715
1744
  display: flex;
1716
1745
  align-items: center;
1717
1746
  justify-content: center;
1718
1747
  border-radius: 4px;
1719
1748
  border: 1px solid ${({$borderColor:e})=>e};
1720
1749
  background-color: ${({$backgroundColor:e})=>e};
1721
- `,vp=({label:e,size:t=yp.L,disabled:n,partiallyChecked:o,value:i,onChange:a})=>{const r=Ci.useTheme(),[s,l]=yt(!1),c=o||i,d=t===yp.S?8:12,p=n?r.v2.colors.grey[400]:r.v2.colors.white[500],u=c?"transparent":n?r.v2.colors.grey[700]:s?r.v2.colors.silver[400]:r.v2.colors.silver[600],m=n?r.v2.colors.grey[600]:c?r.v2.colors.purple[500]:r.v2.colors.silver[900];return xt.createElement(wp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||a(!!o||!i)},$disabled:n,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},xt.createElement(kp,{$size:t,$borderColor:u,$backgroundColor:m},o?xt.createElement(Ye,{size:d,fill:p}):i?xt.createElement(Je,{size:d,fill:p}):null),e&&xt.createElement(Di,{size:t===yp.S?Si.XXS:Si.XS},e))};var Cp;!function(e){e.Left="left",e.Right="right"}(Cp||(Cp={}));const Ep=It.div`
1750
+ `,Sp=({label:e,size:t=vp.L,disabled:o,partiallyChecked:n,value:i,onChange:a})=>{const r=Ci.useTheme(),[s,l]=yt(!1),c=n||i,d=t===vp.S?8:12,p=o?r.v2.colors.grey[400]:r.v2.colors.white[500],u=c?"transparent":o?r.v2.colors.grey[700]:s?r.v2.colors.silver[400]:r.v2.colors.silver[600],h=o?r.v2.colors.grey[600]:c?r.v2.colors.purple[500]:r.v2.colors.silver[900];return xt.createElement(Cp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),o||a(!!n||!i)},$disabled:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},xt.createElement(Ep,{$size:t,$borderColor:u,$backgroundColor:h},n?xt.createElement(Ye,{size:d,fill:p}):i?xt.createElement(Ke,{size:d,fill:p}):null),e&&xt.createElement(Di,{size:t===vp.S?Si.XXS:Si.XS},e))};var Ap;!function(e){e.Left="left",e.Right="right"}(Ap||(Ap={}));const Dp=It.div`
1722
1751
  position: relative;
1723
- `,Sp=It.div`
1752
+ `,Tp=It.div`
1724
1753
  display: flex;
1725
1754
  flex-direction: column;
1726
1755
  gap: 0;
@@ -1733,7 +1762,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1733
1762
  position: absolute;
1734
1763
  top: ${({$withButton:e})=>e?"calc(100% + 8px)":"0"};
1735
1764
  ${({$align:e})=>`${e}: 0;`}
1736
- `,Ap=It.div`
1765
+ `,Np=It.div`
1737
1766
  display: flex;
1738
1767
  align-items: center;
1739
1768
  gap: 8px;
@@ -1749,14 +1778,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1749
1778
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1750
1779
  }
1751
1780
  `}
1752
- `,Dp=({items:e,selectedId:t,onSelect:n,defaultOpen:o,buttonProps:i})=>{const a=Ft(),[r,s]=yt(Cp.Left),[l,c]=yt(o??!i),d=e=>{n(e),i&&c(!1)};return xt.createElement(Ep,null,i&&xt.createElement(Ui,{...i,rightIcon:l?pt:ut,onClick:e=>{s(e.clientX>window.innerWidth/2?Cp.Right:Cp.Left),c(e=>!e)}}),l&&xt.createElement(Sp,{$withButton:!!i,$align:r},e.map(({id:e,label:n,icon:o,withCheckbox:i})=>{const r=t===e;return xt.createElement(Ap,{key:e,$selected:r,onClick:()=>d(e)},i&&xt.createElement(vp,{value:r,onChange:()=>d(e)}),o&&xt.createElement(o,{size:14,fill:a.v2.colors.white[500]}),xt.createElement(Di,{size:Si.XS,nowrap:!0},n))})))};var Tp,Np;!function(e){e.S="small",e.M="medium"}(Tp||(Tp={})),function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Np||(Np={}));const Ip=It.div`
1781
+ `,Ip=({items:e,selectedId:t,onSelect:o,defaultOpen:n,buttonProps:i})=>{const a=Ft(),[r,s]=yt(Ap.Left),[l,c]=yt(n??!i),d=e=>{o(e),i&&c(!1)};return xt.createElement(Dp,null,i&&xt.createElement(Ui,{...i,rightIcon:l?pt:ut,onClick:e=>{s(e.clientX>window.innerWidth/2?Ap.Right:Ap.Left),c(e=>!e)}}),l&&xt.createElement(Tp,{$withButton:!!i,$align:r},e.map(({id:e,label:o,icon:n,withCheckbox:i})=>{const r=t===e;return xt.createElement(Np,{key:e,$selected:r,onClick:()=>d(e)},i&&xt.createElement(Sp,{value:r,onChange:()=>d(e)}),n&&xt.createElement(n,{size:14,fill:a.v2.colors.white[500]}),xt.createElement(Di,{size:Si.XS,nowrap:!0},o))})))};var zp,Op;!function(e){e.S="small",e.M="medium"}(zp||(zp={})),function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Op||(Op={}));const Fp=It.div`
1753
1782
  display: flex;
1754
1783
  flex-direction: column;
1755
1784
  gap: ${({$gap:e})=>e}px;
1756
1785
  padding: ${({$padding:e})=>e}px;
1757
1786
  border-radius: 16px;
1758
1787
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1759
- `,zp=({size:e=Tp.M,icon:t,title:n,withCopyTitle:o,badge:i,actions:a,children:r})=>{const{CopyButton:s}=Fa(),l=e===Tp.S?4:16,c=e===Tp.S?12:16;return xt.createElement(Ip,{$padding:c,$gap:l},xt.createElement(er,{$justifyContent:"space-between"},xt.createElement(er,{$gap:8,$alignItems:"center"},xt.createElement(t,{size:24}),xt.createElement(Di,null,n),o&&xt.createElement(s,{value:n,size:Ia.XS}),i&&xt.createElement(Ni,{...i})),xt.createElement(er,{$gap:8,$alignItems:"center"},a?.map(e=>{switch(e.type){case Np.Button:return xt.createElement(Ui,{key:e.id,...e.buttonProps,label:e.buttonProps?.label??""});case Np.ButtonDropData:return xt.createElement(Dp,{key:e.id,items:e.dropDataItems??[],selectedId:"",onSelect:t=>e.buttonProps?.onClick?.(t),buttonProps:e.buttonProps});default:return null}}))),r)},Op=It.div`
1788
+ `,_p=({size:e=zp.M,icon:t,title:o,withCopyTitle:n,badge:i,search:a,actions:r,children:s})=>{const{CopyButton:l}=Fa(),c=e===zp.S?4:16,d=e===zp.S?12:16;return xt.createElement(Fp,{$padding:d,$gap:c},xt.createElement(er,{$justifyContent:"space-between"},xt.createElement(er,{$gap:8,$alignItems:"center"},xt.createElement(t,{size:24}),xt.createElement(Di,null,o),n&&xt.createElement(l,{value:o,size:Ia.XS}),i&&xt.createElement(Ni,{...i}),a&&xt.createElement(kp,{...a})),xt.createElement(er,{$gap:8,$alignItems:"center"},r?.map(e=>{switch(e.type){case Op.Button:return xt.createElement(Ui,{key:e.id,...e.buttonProps,label:e.buttonProps?.label??""});case Op.ButtonDropData:return xt.createElement(Ip,{key:e.id,items:e.dropDataItems??[],selectedId:"",onSelect:t=>e.buttonProps?.onClick?.(t),buttonProps:e.buttonProps});default:return null}}))),s)},Rp=It.div`
1760
1789
  flex: 1;
1761
1790
  align-self: stretch;
1762
1791
  display: flex;
@@ -1764,8 +1793,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1764
1793
  gap: 8px;
1765
1794
  padding: 16px;
1766
1795
  border-radius: 12px;
1767
- background-color: ${({theme:e,$status:t})=>fo(e,t,t===hn.Unknown?"750":"500")};
1768
- `,Fp=It.div`
1796
+ background-color: ${({theme:e,$status:t})=>fn(e,t,t===mo.Unknown?"750":"500")};
1797
+ `,Lp=It.div`
1769
1798
  display: flex;
1770
1799
  align-items: center;
1771
1800
  justify-content: center;
@@ -1773,8 +1802,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1773
1802
  height: fit-content;
1774
1803
  padding: 8px;
1775
1804
  border-radius: 12px;
1776
- background-color: ${({theme:e,$status:t})=>t===hn.Unknown?fo(e,t,"800"):fo(e,t,"900")+Ci.opacity.hex["015"]};
1777
- `,_p=({status:e,icon:t,title:n,description:o})=>{const i=Ft(),a=t??yo(e,i),r=[pn.Default,pn.Info,hn.Disabled,hn.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return xt.createElement(Op,{$status:e},xt.createElement(Fp,{$status:e},xt.createElement(a,{size:32,fill:r})),xt.createElement(tr,{$gap:2,$justifyContent:"center"},xt.createElement(Di,{size:Si.M,weight:500,color:r,nowrap:!0},n),xt.createElement(Di,{size:Si.XXS,weight:300,color:r,nowrap:!0},o)))},Rp=It.div`
1805
+ background-color: ${({theme:e,$status:t})=>t===mo.Unknown?fn(e,t,"800"):fn(e,t,"900")+Ci.opacity.hex["015"]};
1806
+ `,Pp=({status:e,icon:t,title:o,description:n})=>{const i=Ft(),a=t??yn(e,i),r=[po.Default,po.Info,mo.Disabled,mo.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return xt.createElement(Rp,{$status:e},xt.createElement(Lp,{$status:e},xt.createElement(a,{size:32,fill:r})),xt.createElement(tr,{$gap:2,$justifyContent:"center"},xt.createElement(Di,{size:Si.M,weight:500,color:r,nowrap:!0},o),xt.createElement(Di,{size:Si.XXS,weight:300,color:r,nowrap:!0},n)))},Bp=It.div`
1778
1807
  flex: 1;
1779
1808
  align-self: stretch;
1780
1809
  display: flex;
@@ -1783,11 +1812,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1783
1812
  padding: 12px;
1784
1813
  border-radius: 12px;
1785
1814
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1786
- `,Lp=["-","N/A"],Bp=({title:e,cells:t})=>{const n=Ft();return xt.createElement(Rp,null,xt.createElement(Di,{size:Si.XXS,color:n.v2.colors.grey[150]},e),xt.createElement(er,{$gap:32},t.map(t=>xt.createElement(tr,{key:`${e}-${t.label}-${t.value}`,$gap:2},!t.isLoading||t.value&&!Lp.includes(t.value)?xt.createElement(Di,{size:t.label?Si.M:Si.L},t.value):xt.createElement(Nr,{scale:.9}),t.label&&xt.createElement(Di,{size:Si.XXS},t.label)))))};var Mp;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Mp||(Mp={}));const Pp=It.div`
1815
+ `,Mp=["-","N/A"],jp=({title:e,cells:t})=>{const o=Ft();return xt.createElement(Bp,null,xt.createElement(Di,{size:Si.XXS,color:o.v2.colors.grey[150]},e),xt.createElement(er,{$gap:32},t.map(t=>xt.createElement(tr,{key:`${e}-${t.label}-${t.value}`,$gap:2},!t.isLoading||t.value&&!Mp.includes(t.value)?xt.createElement(Di,{size:t.label?Si.M:Si.L},t.value):xt.createElement(Nr,{scale:.9}),t.label&&xt.createElement(Di,{size:Si.XXS},t.label)))))};var Up;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Up||(Up={}));const Wp=It.div`
1787
1816
  display: flex;
1788
1817
  flex-direction: ${({$flexDirection:e})=>e};
1789
1818
  gap: ${({$gap:e})=>e}px;
1790
- `,jp=({label:e,size:t,disabled:n,direction:o,withSelectAll:i,options:a,values:r,setValues:s})=>{const l=ft(()=>a.every(e=>r[e.id]),[a,r]),c=ft(()=>a.some(e=>r[e.id])&&a.some(e=>!r[e.id]),[a,r]),d=(e,t)=>{s(n=>{const o={...n};return e?o[e]=t:a.forEach(e=>o[e.id]=t),o})};return xt.createElement(Pp,{$flexDirection:o===Mp.HORIZONTAL?"row":"column",$gap:o===Mp.HORIZONTAL?16:8},e&&i?xt.createElement(vp,{label:e,partiallyChecked:c,value:l,onChange:e=>d("",e)}):e&&!i?xt.createElement(Di,null,e):null,a.map(o=>xt.createElement(vp,{key:`${e}-checkbox-${o.id}`,...o,value:r[o.id],onChange:e=>d(o.id,e),disabled:n,size:t})))},Up=It(er)`
1819
+ `,Vp=({label:e,size:t,disabled:o,direction:n,withSelectAll:i,options:a,values:r,setValues:s})=>{const l=ft(()=>a.every(e=>r[e.id]),[a,r]),c=ft(()=>a.some(e=>r[e.id])&&a.some(e=>!r[e.id]),[a,r]),d=(e,t)=>{s(o=>{const n={...o};return e?n[e]=t:a.forEach(e=>n[e.id]=t),n})};return xt.createElement(Wp,{$flexDirection:n===Up.HORIZONTAL?"row":"column",$gap:n===Up.HORIZONTAL?16:8},e&&i?xt.createElement(Sp,{label:e,partiallyChecked:c,value:l,onChange:e=>d("",e)}):e&&!i?xt.createElement(Di,null,e):null,a.map(n=>xt.createElement(Sp,{key:`${e}-checkbox-${n.id}`,...n,value:r[n.id],onChange:e=>d(n.id,e),disabled:o,size:t})))},Hp=It(er)`
1791
1820
  width: calc(100% - 20px);
1792
1821
  padding: 10px;
1793
1822
  border-radius: 6px;
@@ -1796,34 +1825,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1796
1825
  align-items: center;
1797
1826
  justify-content: space-between;
1798
1827
  gap: 12px;
1799
- `,Wp=It.div`
1828
+ `,qp=It.div`
1800
1829
  position: relative;
1801
1830
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
1802
1831
  display: flex;
1803
1832
  align-items: center;
1804
1833
  gap: 4px;
1805
- `,Vp=It.pre`
1834
+ `,Gp=It.pre`
1806
1835
  flex: 1;
1807
1836
  margin: 0;
1808
1837
  padding: 0;
1809
1838
  font-size: 14px;
1810
1839
  color: #5ffb98; // TODO: add to theme
1811
1840
  overflow-x: auto;
1812
- `,Hp=It.span`
1841
+ `,Kp=It.span`
1813
1842
  flex-shrink: 0;
1814
1843
  font-size: 14px;
1815
1844
  color: #5ffb98; // TODO: add to theme
1816
- `,qp=({value:e,hideCopy:t=!1,onDone:n})=>{const{CopyButton:o}=Fa({onDone:n}),i=kt(null),[a,r]=yt(!1);return wt(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;r(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),xt.createElement(Up,null,xt.createElement(Wp,{$hideCopy:t},xt.createElement(Vp,{ref:i},e),a&&xt.createElement(Hp,null,"...")),!t&&xt.createElement(o,{value:e,size:Ia.XS}))},Gp=It.div`
1845
+ `,Jp=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:n}=Fa({onDone:o}),i=kt(null),[a,r]=yt(!1);return wt(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;r(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),xt.createElement(Hp,null,xt.createElement(qp,{$hideCopy:t},xt.createElement(Gp,{ref:i},e),a&&xt.createElement(Kp,null,"...")),!t&&xt.createElement(n,{value:e,size:Ia.XS}))},Yp=It.div`
1817
1846
  display: flex;
1818
1847
  align-items: center;
1819
1848
  justify-content: space-between;
1820
1849
  width: calc(100% - 24px);
1821
1850
  padding: 12px;
1822
- `,Jp=It.div`
1851
+ `,Xp=It.div`
1823
1852
  display: flex;
1824
1853
  align-items: center;
1825
1854
  gap: 16px;
1826
- `,Kp=It.div`
1855
+ `,Qp=It.div`
1827
1856
  display: flex;
1828
1857
  align-items: center;
1829
1858
  justify-content: center;
@@ -1831,24 +1860,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1831
1860
  height: 32px;
1832
1861
  border-radius: 8px;
1833
1862
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1834
- `,Yp=It.div`
1863
+ `,Zp=It.div`
1835
1864
  display: flex;
1836
1865
  align-items: center;
1837
1866
  gap: 12px;
1838
- `,Xp=({icon:e,title:t,actions:n,onClose:o})=>xt.createElement(Gp,null,xt.createElement(Jp,null,xt.createElement(Kp,null,xt.createElement(e,{size:24})),xt.createElement(Di,{size:Si.S},t)),xt.createElement(Yp,null,n?.length?xt.createElement(Oa,{icon:mt,size:Ia.M,onClick:()=>alert("todo")}):null,xt.createElement(Oa,{icon:at,size:Ia.M,onClick:o}))),Qp=It.div`
1867
+ `,eu=({icon:e,title:t,actions:o,onClose:n})=>xt.createElement(Yp,null,xt.createElement(Xp,null,xt.createElement(Qp,null,xt.createElement(e,{size:24})),xt.createElement(Di,{size:Si.S},t)),xt.createElement(Zp,null,o?.length?xt.createElement(Oa,{icon:ht,size:Ia.M,onClick:()=>alert("todo")}):null,xt.createElement(Oa,{icon:at,size:Ia.M,onClick:n}))),tu=It.div`
1839
1868
  position: fixed;
1840
1869
  top: 0;
1841
1870
  bottom: 0;
1842
1871
  ${({$position:e})=>e}: 0;
1843
1872
  z-index: 1000;
1844
- width: 40vw;
1873
+ width: ${({$width:e})=>e};
1845
1874
  border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
1846
1875
  background: ${({theme:e})=>e.v2.colors.silver[1e3]};
1847
1876
  box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1848
1877
  overflow: hidden;
1849
1878
 
1850
1879
  animation-name: ${({$position:e})=>Ci.animations.slide.in[e]};
1851
- `,Zp=It.div`
1880
+ `,ou=It.div`
1852
1881
  display: flex;
1853
1882
  flex-direction: column;
1854
1883
  gap: 16px;
@@ -1857,7 +1886,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1857
1886
  border-radius: ${({$position:e})=>"left"===e?"20px 20px 20px 0":"20px 20px 0 20px"};
1858
1887
  background: ${({theme:e})=>e.v2.colors.black[500]};
1859
1888
  overflow-y: auto;
1860
- `,eu=({isOpen:e,position:t="right",header:n,children:o})=>(Sa(e),e?jt(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:n.onClose}),xt.createElement(Qp,{$position:t},xt.createElement(Xp,{...n}),xt.createElement(Zp,{$position:t},o))),document.body):null),tu=It.header`
1889
+ `,nu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:n="40vw",header:i,children:a})=>(Sa(e),e?jt(xt.createElement(xt.Fragment,null,!t&&xt.createElement(ir,{hidden:!e,onClick:i.onClose}),xt.createElement(tu,{$position:o,$width:n},xt.createElement(eu,{...i}),xt.createElement(ou,{$position:o},a))),document.body):null),iu=It.header`
1861
1890
  position: relative;
1862
1891
  width: calc(100% - 36px);
1863
1892
  padding: 12px 18px;
@@ -1865,22 +1894,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1865
1894
  display: flex;
1866
1895
  align-items: center;
1867
1896
  justify-content: space-between;
1868
- `,nu=It(er)`
1897
+ `,au=It(er)`
1869
1898
  position: absolute;
1870
1899
  left: 50%;
1871
1900
  transform: translateX(-50%);
1872
1901
  gap: 16px;
1873
- `,ou=({left:e=[],center:t=[],right:n=[]})=>xt.createElement(tu,null,xt.createElement(er,{$gap:16},e),xt.createElement(nu,null,t),xt.createElement(er,{$gap:16},n)),iu=It.span`
1902
+ `,ru=({left:e=[],center:t=[],right:o=[]})=>xt.createElement(iu,null,xt.createElement(er,{$gap:16},e),xt.createElement(au,null,t),xt.createElement(er,{$gap:16},o)),su=It.span`
1874
1903
  font-family: ${({theme:e})=>e.font_family.primary};
1875
1904
  font-size: 14px;
1876
1905
  font-weight: 400;
1877
1906
  color: ${({theme:e})=>e.text.error};
1878
- `,au=It.span`
1907
+ `,lu=It.span`
1879
1908
  font-family: ${({theme:e})=>e.font_family.primary};
1880
1909
  font-size: 14px;
1881
1910
  font-weight: 400;
1882
1911
  color: ${({theme:e})=>e.v2.colors.silver[200]};
1883
- `,ru=It.div`
1912
+ `,cu=It.div`
1884
1913
  padding: 12px;
1885
1914
  display: flex;
1886
1915
  align-self: stretch;
@@ -1888,7 +1917,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1888
1917
  gap: 8px;
1889
1918
  border-radius: 6px;
1890
1919
 
1891
- border: 1px solid ${({theme:e,$disabled:t,$error:n})=>t?e.v2.colors.grey[600]:n?e.v2.colors.red[500]:e.v2.colors.silver[500]};
1920
+ border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
1892
1921
  background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
1893
1922
  ${({$disabled:e,$error:t})=>!e&&!t&&_t`
1894
1923
  &:hover,
@@ -1897,7 +1926,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1897
1926
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1898
1927
  }
1899
1928
  `}
1900
- `,su=It.input`
1929
+ `,du=It.input`
1901
1930
  flex: 1;
1902
1931
  font-family: ${({theme:e})=>e.font_family.primary};
1903
1932
  font-size: 14px;
@@ -1921,9 +1950,26 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1921
1950
  overflow: hidden;
1922
1951
  text-overflow: ellipsis;
1923
1952
  white-space: nowrap;
1924
- `,lu=It.div`
1953
+ `,pu=It.div`
1925
1954
  cursor: pointer;
1926
- `,cu=({label:e,required:t,tooltip:n,leftIcon:o,rightIcon:i,errorMessage:a,helpMessage:r,type:s=dn.Text,name:l,value:c,onChange:d,disabled:p,...u})=>{const m=Ci.useTheme(),h=s===dn.Password,[g,x]=yt(!1),$=c?m.v2.colors.white[500]:p?m.v2.colors.grey[400]:m.v2.colors.silver[200];return xt.createElement(tr,{$gap:6},xt.createElement(er,{$justifyContent:"space-between"},e&&xt.createElement(au,null,e),xt.createElement(er,{$gap:10},n&&xt.createElement(pr,{text:n,withIcon:!0}),t&&xt.createElement(iu,null,"*"))),xt.createElement(ru,{$disabled:p,$error:!!a},o?xt.createElement(o,{size:18,fill:$}):null,xt.createElement(su,{"data-id":l,type:g||s===dn.Number?dn.Text:s,name:l,value:c,onChange:e=>{e.stopPropagation(),s===dn.Number&&(e.target.value=Bo(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:p,...u}),h?xt.createElement(lu,{onClick:()=>x(e=>!e)},g?xt.createElement(rt,{size:18,strokeWidth:2,fill:$}):xt.createElement(st,{size:18,strokeWidth:2,fill:$})):i?xt.createElement(i,{size:18,fill:$}):null),a?xt.createElement(er,{$gap:4},xt.createElement(je,{size:12,fill:m.v2.colors.red[500]}),xt.createElement(Di,{size:Si.XXS,weight:400,color:m.v2.colors.red[500]},a)):r?xt.createElement(er,{$gap:4},xt.createElement(je,{size:12,fill:m.v2.colors.silver[200]}),xt.createElement(Di,{size:Si.XXS,weight:400,color:m.v2.colors.silver[200]},r)):null)},du=It.div`
1955
+ `,uu=({label:e,required:t,tooltip:o,leftIcon:n,rightIcon:i,errorMessage:a,helpMessage:r,type:s=co.Text,name:l,value:c,onChange:d,disabled:p,...u})=>{const h=Ci.useTheme(),m=s===co.Password,[g,x]=yt(!1),$=c?h.v2.colors.white[500]:p?h.v2.colors.grey[400]:h.v2.colors.silver[200];return xt.createElement(tr,{$gap:6},xt.createElement(er,{$justifyContent:"space-between"},e&&xt.createElement(lu,null,e),xt.createElement(er,{$gap:10},o&&xt.createElement(pr,{text:o,withIcon:!0}),t&&xt.createElement(su,null,"*"))),xt.createElement(cu,{$disabled:p,$error:!!a},n?xt.createElement(n,{size:18,fill:$}):null,xt.createElement(du,{"data-id":l,type:g||s===co.Number?co.Text:s,name:l,value:c,onChange:e=>{e.stopPropagation(),s===co.Number&&(e.target.value=Pn(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:p,...u}),m?xt.createElement(pu,{onClick:()=>x(e=>!e)},g?xt.createElement(rt,{size:18,strokeWidth:2,fill:$}):xt.createElement(st,{size:18,strokeWidth:2,fill:$})):i?xt.createElement(i,{size:18,fill:$}):null),a?xt.createElement(er,{$gap:4},xt.createElement(je,{size:12,fill:h.v2.colors.red[500]}),xt.createElement(Di,{size:Si.XXS,weight:400,color:h.v2.colors.red[500]},a)):r?xt.createElement(er,{$gap:4},xt.createElement(je,{size:12,fill:h.v2.colors.silver[200]}),xt.createElement(Di,{size:Si.XXS,weight:400,color:h.v2.colors.silver[200]},r)):null)},hu=Ot`
1956
+ 0% {
1957
+ background-position: 0% 50%;
1958
+ }
1959
+ 100% {
1960
+ background-position: 100% 50%;
1961
+ }
1962
+ `,mu=It(Di)`
1963
+ display: flex;
1964
+ align-items: center;
1965
+ gap: 4px;
1966
+
1967
+ background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1968
+ background-size: 250% 100%; /* Expand background to allow movement */
1969
+ background-clip: text;
1970
+ color: transparent;
1971
+ animation: ${hu} 1s reverse linear infinite;
1972
+ `,gu=({label:e,icon:t,withGradient:o,textColor:n,stripColor:i,typographyProps:a})=>{const r=Ci.useTheme(),s=n||r.v2.colors.white[500],l=i||r.v2.colors.black[500];return xt.createElement(xt.Fragment,null,e?xt.createElement(er,{$gap:4},t&&xt.createElement(t,null),o?xt.createElement(mu,{$textColor:s,$stripColor:l,...a},e):xt.createElement(Di,{color:s,...a},e)):null)},xu=It.div`
1927
1973
  position: fixed;
1928
1974
  top: 50%;
1929
1975
  left: 50%;
@@ -1936,13 +1982,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1936
1982
  overflow: hidden;
1937
1983
 
1938
1984
  animation-name: ${Ci.animations.slide.in.center};
1939
- `,pu=It.div`
1985
+ `,$u=It.div`
1940
1986
  position: relative;
1941
- `,uu=It.div`
1987
+ `,fu=It.div`
1942
1988
  position: absolute;
1943
1989
  top: 16px;
1944
1990
  left: 16px;
1945
- `,mu=({isOpen:e,onBack:t,onClose:n,children:o})=>(Sa(e),e?jt(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:n}),xt.createElement(du,null,xt.createElement(pu,null,t&&xt.createElement(uu,null,xt.createElement(Oa,{icon:e=>xt.createElement(Ge,{rotate:-90,...e}),size:Ia.L,onClick:t})),o))),document.body):null),hu=It.aside`
1991
+ `,bu=({isOpen:e,onBack:t,onClose:o,children:n})=>(Sa(e),e?jt(xt.createElement(xt.Fragment,null,xt.createElement(ir,{hidden:!e,onClick:o}),xt.createElement(xu,null,xt.createElement($u,null,t&&xt.createElement(fu,null,xt.createElement(Oa,{icon:e=>xt.createElement(Ge,{rotate:-90,...e}),size:Ia.L,onClick:t})),n))),document.body):null),yu=It.aside`
1946
1992
  display: flex;
1947
1993
  flex-direction: column;
1948
1994
  gap: 8px;
@@ -1951,41 +1997,41 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1951
1997
  padding: 16px 12px;
1952
1998
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
1953
1999
  overflow-y: auto;
1954
- `,gu=({height:e,icons:t})=>xt.createElement(hu,{$height:e},t.map(({id:e,selected:t,icon:n,onClick:o})=>xt.createElement(Ui,{key:e,label:"",leftIcon:n,iconSize:24,onClick:o,variant:t?Mi.Primary:Mi.Text}))),xu=It.div`
2000
+ `,wu=({height:e,icons:t})=>xt.createElement(yu,{$height:e},t.map(({id:e,selected:t,icon:o,onClick:n})=>xt.createElement(Ui,{key:e,label:"",leftIcon:o,iconSize:24,onClick:n,variant:t?Bi.Primary:Bi.Text}))),ku=It.div`
1955
2001
  display: flex;
1956
2002
  align-items: center;
1957
2003
  gap: 10px;
1958
2004
  padding: 4px;
1959
2005
  border-radius: 8px;
1960
- background-color: ${({theme:e,$status:t})=>fo(e,t,[pn.Info].includes(t)?"1000":"900")};
1961
- `,$u=It.div`
2006
+ background-color: ${({theme:e,$status:t})=>fn(e,t,[po.Info].includes(t)?"1000":"900")};
2007
+ `,vu=It.div`
1962
2008
  width: 36px;
1963
2009
  height: 36px;
1964
2010
  display: flex;
1965
2011
  align-items: center;
1966
2012
  justify-content: center;
1967
2013
  border-radius: 6px;
1968
- background-color: ${({theme:e,$status:t})=>fo(e,t,[pn.Info].includes(t)?"900":"800")};
1969
- `,fu=({status:e,message:t})=>{const n=Ci.useTheme(),o=yo(e,n);return xt.createElement(xu,{$status:e},xt.createElement("div",null,xt.createElement($u,{$status:e},xt.createElement(o,{size:24}))),xt.createElement(Di,{color:fo(n,e,e===pn.Default?"300":e===pn.Info?"400":"500"),size:Si.XXS,weight:400},t))};var bu;!function(e){e.S="small",e.L="large"}(bu||(bu={}));const yu=It.div`
2014
+ background-color: ${({theme:e,$status:t})=>fn(e,t,[po.Info].includes(t)?"900":"800")};
2015
+ `,Cu=({status:e,message:t})=>{const o=Ci.useTheme(),n=yn(e,o);return xt.createElement(ku,{$status:e},xt.createElement("div",null,xt.createElement(vu,{$status:e},xt.createElement(n,{size:24}))),xt.createElement(Di,{color:fn(o,e,e===po.Default?"300":e===po.Info?"400":"500"),size:Si.XXS,weight:400},t))};var Eu;!function(e){e.S="small",e.L="large"}(Eu||(Eu={}));const Su=It.div`
1970
2016
  width: fit-content;
1971
2017
  display: flex;
1972
2018
  align-items: center;
1973
2019
  gap: 8px;
1974
2020
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1975
- `,wu=It.div`
1976
- width: ${({$size:e})=>e===bu.S?"16px":"20px"};
1977
- height: ${({$size:e})=>e===bu.S?"16px":"20px"};
2021
+ `,Au=It.div`
2022
+ width: ${({$size:e})=>e===Eu.S?"16px":"20px"};
2023
+ height: ${({$size:e})=>e===Eu.S?"16px":"20px"};
1978
2024
  display: flex;
1979
2025
  align-items: center;
1980
2026
  justify-content: center;
1981
2027
  border-radius: 100%;
1982
2028
  border: 1px solid ${({$borderColor:e})=>e};
1983
2029
  background-color: ${({$backgroundColor:e})=>e};
1984
- `,ku=({label:e,value:t,onChange:n,disabled:o,size:i=bu.L})=>{const a=Ci.useTheme(),[r,s]=yt(!1),l=t,c=i===bu.S?6:8,d=o?a.v2.colors.grey[400]:a.v2.colors.white[500],p=l?"transparent":o?a.v2.colors.grey[700]:r?a.v2.colors.silver[400]:a.v2.colors.silver[600],u=o?a.v2.colors.grey[600]:l?a.v2.colors.purple[500]:a.v2.colors.silver[900];return xt.createElement(yu,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),o||n(!t)},$disabled:o,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},xt.createElement(wu,{$size:i,$borderColor:p,$backgroundColor:u},t?xt.createElement(ht,{size:c,fill:d}):null),e&&xt.createElement(Di,{size:i===bu.S?Si.XXS:Si.XS},e))};var vu;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(vu||(vu={}));const Cu=It.div`
2030
+ `,Du=({label:e,value:t,onChange:o,disabled:n,size:i=Eu.L})=>{const a=Ci.useTheme(),[r,s]=yt(!1),l=t,c=i===Eu.S?6:8,d=n?a.v2.colors.grey[400]:a.v2.colors.white[500],p=l?"transparent":n?a.v2.colors.grey[700]:r?a.v2.colors.silver[400]:a.v2.colors.silver[600],u=n?a.v2.colors.grey[600]:l?a.v2.colors.purple[500]:a.v2.colors.silver[900];return xt.createElement(Su,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||o(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},xt.createElement(Au,{$size:i,$borderColor:p,$backgroundColor:u},t?xt.createElement(mt,{size:c,fill:d}):null),e&&xt.createElement(Di,{size:i===Eu.S?Si.XXS:Si.XS},e))};var Tu;!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Tu||(Tu={}));const Nu=It.div`
1985
2031
  display: flex;
1986
2032
  flex-direction: ${({$flexDirection:e})=>e};
1987
2033
  gap: ${({$gap:e})=>e}px;
1988
- `,Eu=({label:e,direction:t,disabled:n,size:o,options:i,values:a,setValues:r})=>xt.createElement(Cu,{$flexDirection:t===vu.HORIZONTAL?"row":"column",$gap:t===vu.HORIZONTAL?16:8},e&&xt.createElement(Di,null,e),i.map(t=>xt.createElement(ku,{key:`${e}-radio-${t.id}`,...t,value:a[t.id],onChange:e=>{return n=t.id,o=e,void r(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=o,t});var n,o},disabled:n,size:o}))),Su=It.div`
2034
+ `,Iu=({label:e,direction:t,disabled:o,size:n,options:i,values:a,setValues:r})=>xt.createElement(Nu,{$flexDirection:t===Tu.HORIZONTAL?"row":"column",$gap:t===Tu.HORIZONTAL?16:8},e&&xt.createElement(Di,null,e),i.map(t=>xt.createElement(Du,{key:`${e}-radio-${t.id}`,...t,value:a[t.id],onChange:e=>{return o=t.id,n=e,void r(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=n,t});var o,n},disabled:o,size:n}))),zu=It.div`
1989
2035
  position: relative;
1990
2036
  z-index: 0;
1991
2037
  display: flex;
@@ -1994,7 +2040,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
1994
2040
  border-radius: 8px;
1995
2041
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1996
2042
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1997
- `,Au=It.button`
2043
+ `,Ou=It.button`
1998
2044
  flex: 1;
1999
2045
  display: flex;
2000
2046
  align-items: center;
@@ -2009,24 +2055,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
2009
2055
  &:hover {
2010
2056
  background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:e.v2.colors.silver[800]};
2011
2057
  }
2012
- `,Du=({options:e=[],selected:t,setSelected:n})=>xt.createElement(Su,{$count:e.length},e.map(({value:e,label:o,icon:i},a)=>{const r=t===e;return xt.createElement(Au,{key:`segment-${o||a}-${e}`,onClick:()=>n(e),$isSelected:r},i&&xt.createElement(i,null),o&&xt.createElement(Di,{size:Si.XS,weight:500,nowrap:!0},o))})),Tu=It.div`
2058
+ `,Fu=({options:e=[],selected:t,setSelected:o})=>xt.createElement(zu,{$count:e.length},e.map(({value:e,label:n,icon:i},a)=>{const r=t===e;return xt.createElement(Ou,{key:`segment-${n||a}-${e}`,onClick:()=>o(e),$isSelected:r},i&&xt.createElement(i,null),n&&xt.createElement(Di,{size:Si.XS,weight:500,nowrap:!0},n))})),_u=It.div`
2013
2059
  max-height: ${({$maxHeight:e})=>e};
2014
2060
  width: 100%;
2015
2061
  overflow: auto;
2016
- `,Nu=It.table`
2062
+ `,Ru=It.table`
2017
2063
  width: 100%;
2018
2064
  border-collapse: collapse;
2019
- `,Iu=It.thead`
2065
+ `,Lu=It.thead`
2020
2066
  position: sticky;
2021
2067
  top: 0;
2022
- `,zu=It.th`
2068
+ `,Pu=It.th`
2023
2069
  position: relative;
2024
2070
  min-width: ${({$minWidth:e})=>e||"auto"};
2025
2071
  padding: 18px 24px;
2026
2072
  border: none;
2027
2073
  border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
2028
2074
  background: ${({theme:e})=>e.v2.colors.silver[750]};
2029
- `,Ou=It.div`
2075
+ `,Bu=It.div`
2030
2076
  position: absolute;
2031
2077
  top: 50%;
2032
2078
  right: 0;
@@ -2034,17 +2080,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
2034
2080
  width: 1px;
2035
2081
  height: 18px;
2036
2082
  background: ${({theme:e})=>e.v2.colors.silver[500]};
2037
- `,Fu=It.tbody`
2038
- height: ${({$height:e})=>e}px;
2039
- `,_u=It.td`
2083
+ `,Mu=It.tbody``,ju=It.td`
2084
+ position: relative;
2040
2085
  padding: 18px 24px;
2041
2086
  border: ${({$isLastRow:e,theme:t})=>e?"none":`1px solid ${t.v2.colors.silver[500]}`};
2042
2087
  border-left: none;
2043
2088
  border-right: none;
2044
- border-radius: ${({$isLastRow:e,$isFirstCell:t,$isLastCell:n})=>e?t?"0 0 0 4px":n?"0 0 4px 0":"0":"0"};
2045
- background: ${({$hovered:e,$selected:t,theme:n})=>t?n.v2.colors.blue[1e3]:e?n.v2.colors.silver[700]:n.v2.colors.silver[800]};
2089
+ border-radius: ${({$isLastRow:e,$isFirstCell:t,$isLastCell:o})=>e?t?"0 0 0 4px":o?"0 0 4px 0":"0":"0"};
2090
+ background: ${({$hovered:e,$selected:t,theme:o})=>t?o.v2.colors.blue[1e3]:e?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
2046
2091
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
2047
- `,Ru=It.div`
2092
+ `,Uu=It.div`
2048
2093
  width: 100%;
2049
2094
  display: flex;
2050
2095
  align-items: center;
@@ -2057,7 +2102,21 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
2057
2102
  fill: ${({theme:e})=>e.v2.colors.white[500]};
2058
2103
  }
2059
2104
  }
2060
- `,Lu=({maxHeight:e="unset",isLoading:t,columns:n,rows:o})=>{const i=Ft(),[a,r]=yt(gn.Ascending),[s,l]=yt(""),[c,d]=yt(null),[p,u]=yt(null),m=vt(e=>{l(e),r(e=>e===gn.Ascending?gn.Descending:gn.Ascending)},[]),h=ft(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue||n.component?.({})?.props?.children)||null};return s?[...o].sort((t,n)=>{const o=e(t,s),i=e(n,s);return(a===gn.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,i)}):o},[o,s,a]),{overflowRef:g,listHeight:x,listItems:$}=Ba({items:h,rowHeight:105});return xt.createElement(Tu,{ref:g,$maxHeight:e},xt.createElement(Nu,null,xt.createElement(Iu,null,xt.createElement("tr",null,n.map(({key:e,label:t,sortable:o,minWidth:r,textAlign:l},c)=>{const d=0===c,p=c===n.length-1;return xt.createElement(zu,{key:`column-${e}`,$minWidth:r,$isFirst:d,$isLast:p},xt.createElement(Ru,{$withClick:o||!1,$textAlign:l,onClick:()=>o?m(e):null},xt.createElement(Di,{size:Si.XS,align:l},t),o&&xt.createElement(Ge,{fill:s===e?i.v2.colors.white[500]:i.v2.colors.grey[400],rotate:a===gn.Ascending?0:180})),!p&&xt.createElement(Ou,null))}))),xt.createElement(Fu,{$height:x},$.map(e=>{const t=h[e.index];return xt.createElement("tr",{key:`row-${e.key}`},n.map(({key:o,textAlign:i},a)=>{const r=t.cells.find(e=>e.key===o),s=!!t.onClick,l=c===e.index,m=p===e.index,g=e.index===h.length-1,x=0===a,$=a===n.length-1;return xt.createElement(_u,{key:`row-${e.key}-cell-${a}`,$isLastRow:g,$isFirstCell:x,$isLastCell:$,$withClick:s,onClick:()=>{s&&(u(e.index),t.onClick?.(),u(null))},$selected:m,$hovered:l,onMouseEnter:()=>s&&d(e.index),onMouseLeave:()=>s&&d(null)},r?.component?xt.createElement(er,{$justifyContent:"right"===i?"flex-end":"flex-start"},xt.createElement(r.component,null)):xt.createElement(Di,{size:Si.XS,align:i},r?.rawValue||"-"))}))}))),!$.length&&xt.createElement(nr,{style:{marginTop:"0.5rem"}},t?xt.createElement(Nr,{scale:1.2}):xt.createElement(nc,null)))},Bu=It.div`
2105
+ `,Wu=It.div`
2106
+ display: flex;
2107
+ align-items: center;
2108
+ gap: 2px;
2109
+ width: fit-content;
2110
+ padding: 4px;
2111
+ border-radius: 8px;
2112
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
2113
+ box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
2114
+
2115
+ position: absolute;
2116
+ right: ${({$rightPosition:e})=>e};
2117
+ top: 50%;
2118
+ transform: translateY(-50%);
2119
+ `,Vu=({rowActions:e,rowActionsPushRightPosition:t="12px",row:o})=>xt.createElement(Wu,{$rightPosition:t},e.map(e=>xt.createElement(Ui,{key:e.id,...e,onClick:()=>e.onClick(o)}))),Hu=({columns:e,rows:t,rowActions:o,rowActionsPushRightPosition:n,withCheckboxes:i})=>{const[a,r]=yt(null);return xt.createElement(xt.Fragment,null,t.map(({onClick:s,isSelected:l=!1,onSelect:c,onDeselect:d,cells:p},u)=>{const h=a===u,m=!!s,g=(e,o,n)=>({$isLastRow:u===t.length-1,$isFirstCell:o,$isLastCell:n,$hovered:h,$selected:l,$withClick:e,onClick:()=>e&&s?.(),onMouseEnter:()=>e&&r(u),onMouseLeave:()=>e&&r(null)});return xt.createElement("tr",{key:`row-${u}`},i&&xt.createElement(ju,{key:"checkbox-column",...g(!1,!0,!1)},xt.createElement(Sp,{value:l,onChange:()=>l?d?.():c?.()})),e.map(({key:t,textAlign:a},r)=>{const l=p.find(e=>e.key===t),c=0===r&&!i,d=r===e.length-1;return xt.createElement(ju,{key:`row-${u}-cell-${r}`,...g(m,c,d)},l?.component?xt.createElement(er,{$justifyContent:"right"===a?"flex-end":"flex-start"},xt.createElement(l.component,null)):xt.createElement(Di,{size:Si.XS,align:a},l?.rawValue||"-"),o.length&&h&&d?xt.createElement(Vu,{rowActions:o,rowActionsPushRightPosition:n,row:{onClick:s,cells:p}}):null)}))}))},qu=({columns:e,sortDirection:t,sortByKey:o,onSort:n,withCheckboxes:i})=>{const a=Ft();return xt.createElement("tr",null,i&&xt.createElement(Pu,{key:"checkbox-column",$minWidth:24,$isFirst:!0,$isLast:!1}),e.map(({key:r,label:s,sortable:l,minWidth:c,textAlign:d},p)=>{const u=0===p&&!i,h=p===e.length-1;return xt.createElement(Pu,{key:`column-${r}`,$minWidth:c,$isFirst:u,$isLast:h},xt.createElement(Uu,{$withClick:l||!1,$textAlign:d,onClick:()=>l?n(r):null},xt.createElement(Di,{size:Si.XS,align:d},s),l&&xt.createElement(Ge,{fill:o===r?a.v2.colors.white[500]:a.v2.colors.grey[400],rotate:t===go.Ascending?0:180})),!h&&xt.createElement(Bu,null))}))},Gu=({maxHeight:e="unset",isLoading:t,columns:o,rows:n,rowActions:i,rowActionsPushRightPosition:a,withCheckboxes:r})=>{const[s,l]=yt(go.Ascending),[c,d]=yt(""),p=vt(e=>{d(e),l(e=>e===go.Ascending?go.Descending:go.Ascending)},[]),u=ft(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue||o.component?.({})?.props?.children)||null};return c?[...n].sort((t,o)=>{const n=e(t,c),i=e(o,c);return(s===go.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,i)}):n},[n,c,s]);return xt.createElement(_u,{$maxHeight:e},xt.createElement(Ru,null,xt.createElement(Lu,null,xt.createElement(qu,{columns:o,sortDirection:s,sortByKey:c,onSort:p,withCheckboxes:r})),xt.createElement(Mu,null,xt.createElement(Hu,{columns:o,rows:u,rowActions:i||[],rowActionsPushRightPosition:a,withCheckboxes:r}))),!u.length&&xt.createElement(or,{style:{marginTop:"0.5rem"}},t?xt.createElement(Nr,{scale:1.2}):xt.createElement(oc,null)))},Ku=It.div`
2061
2120
  display: flex;
2062
2121
  align-items: center;
2063
2122
  justify-content: center;
@@ -2078,4 +2137,27 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
2078
2137
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
2079
2138
  }
2080
2139
  `}
2081
- `,Mu=({label:e,leftIcon:t,rightIcon:n,disabled:o})=>{const i=Ci.useTheme(),a=o?i.v2.colors.grey[400]:i.v2.colors.white[500];return xt.createElement(Bu,{$disabled:o},t&&xt.createElement(t,{fill:a,size:16}),xt.createElement(Di,{color:a,size:Si.XS},e),n&&xt.createElement(n,{fill:a,size:16}))};export{tp as $,Jt as A,Pi as B,nr as C,eu as D,Kt as E,Nr as F,Xl as G,dn as H,Oa as I,Ao as J,Yt as K,Lc as L,ip as M,nc as N,hn as O,Za as P,Vc as Q,Oc as R,zp as S,Ci as T,cn as U,_i as V,Sn as W,Id as X,Ad as Y,bl as Z,nd as _,Fa as a,Jn as a$,di as a0,li as a1,ni as a2,ja as a3,Xo as a4,Pl as a5,$l as a6,$a as a7,sn as a8,oi as a9,sr as aA,Ec as aB,ro as aC,lr as aD,Qs as aE,sp as aF,ua as aG,Wo as aH,Bi as aI,xa as aJ,pi as aK,ri as aL,gs as aM,so as aN,Lo as aO,Qn as aP,wd as aQ,Bn as aR,ao as aS,io as aT,Pd as aU,Ta as aV,ti as aW,Na as aX,Kn as aY,Yn as aZ,Gn as a_,Ea as aa,Rn as ab,_n as ac,Mr as ad,pl as ae,rn as af,si as ag,Zc as ah,ad as ai,ar as aj,hd as ak,Ko as al,ca as am,jr as an,to as ao,Hr as ap,_o as aq,pr as ar,mn as as,yo as at,ai as au,qn as av,is as aw,lo as ax,cs as ay,rr as az,bo as b,no as b$,Aa as b0,Wa as b1,ka as b2,Fd as b3,or as b4,Ua as b5,Fo as b6,sc as b7,Ho as b8,Pn as b9,kn as bA,En as bB,wn as bC,Xd as bD,oo as bE,Pa as bF,Mn as bG,Qa as bH,vo as bI,Da as bJ,$n as bK,_s as bL,Qr as bM,Dc as bN,wo as bO,So as bP,Xr as bQ,ws as bR,vs as bS,No as bT,Mo as bU,qa as bV,Ms as bW,In as bX,an as bY,Ya as bZ,ss as b_,Jo as ba,Va as bb,_a as bc,hi as bd,Go as be,Kr as bf,zr as bg,qr as bh,Zr as bi,ln as bj,Ro as bk,Vn as bl,Co as bm,Nn as bn,La as bo,Eo as bp,jn as bq,Ln as br,Hn as bs,Jd as bt,il as bu,uo as bv,vn as bw,On as bx,Cn as by,Fn as bz,tr as c,qi as c$,To as c0,va as c1,Ia as c2,$d as c3,Zo as c4,Zn as c5,$r as c6,xo as c7,ts as c8,Gt as c9,Do as cA,Io as cB,Oo as cC,Bo as cD,Po as cE,jo as cF,Uo as cG,Vo as cH,qo as cI,Qo as cJ,qt as cK,Sa as cL,Ba as cM,Is as cN,Es as cO,xl as cP,Nl as cQ,Rl as cR,fc as cS,vc as cT,ns as cU,vl as cV,zi as cW,Oi as cX,Fi as cY,gp as cZ,ir as c_,Xt as ca,Qt as cb,Zt as cc,en as cd,tn as ce,nn as cf,on as cg,un as ch,gn as ci,xn as cj,fn as ck,bn as cl,yn as cm,An as cn,Dn as co,Tn as cp,zn as cq,Un as cr,Xn as cs,co as ct,po as cu,mo as cv,ho as cw,go as cx,$o as cy,ko as cz,bp as d,xp as d0,Tp as d1,yp as d2,vp as d3,Mp as d4,jp as d5,Dp as d6,ou as d7,cu as d8,mu as d9,gu as da,fu as db,bu as dc,ku as dd,vu as de,Eu as df,Mu as dg,Ei as dh,Di as e,qp as f,eo as g,Np as h,Mi as i,Cr as j,Lu as k,fo as l,pn as m,Ni as n,er as o,Si as p,Du as q,Ui as r,_p as s,Bp as t,Xa as u,Yo as v,Zs as w,Vl as x,hr as y,Ki as z};
2140
+ `,Ju=({label:e,leftIcon:t,rightIcon:o,disabled:n})=>{const i=Ci.useTheme(),a=n?i.v2.colors.grey[400]:i.v2.colors.white[500];return xt.createElement(Ku,{$disabled:n},t&&xt.createElement(t,{fill:a,size:16}),xt.createElement(Di,{color:a,size:Si.XS},e),o&&xt.createElement(o,{fill:a,size:16}))};var Yu,Xu;!function(e){e.Default="default",e.SuccessError="successError"}(Yu||(Yu={})),function(e){e.S="small",e.L="large"}(Xu||(Xu={}));const Qu=It.div`
2141
+ position: relative;
2142
+ display: flex;
2143
+ align-items: center;
2144
+ justify-content: center;
2145
+
2146
+ width: ${({$size:e})=>2*e}px;
2147
+ height: ${({$size:e})=>e}px;
2148
+ padding: ${4}px;
2149
+ border-radius: ${({$size:e})=>2*e}px;
2150
+ background-color: ${({$disabled:e,$variant:t,$value:o,theme:n})=>{if(e)return n.v2.colors.grey[800];switch(t){case Yu.SuccessError:return o?n.v2.colors.green[500]:n.v2.colors.red[500];case Yu.Default:default:return o?n.v2.colors.purple[500]:n.v2.colors.grey[400]}}};
2151
+
2152
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2153
+ `,Zu=It.div`
2154
+ position: absolute;
2155
+ top: 50%;
2156
+ left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
2157
+ transform: translateY(-50%);
2158
+ width: ${({$size:e})=>e}px;
2159
+ height: ${({$size:e})=>e}px;
2160
+ border-radius: 100%;
2161
+ background-color: ${({$color:e})=>e};
2162
+ box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
2163
+ `,eh=({variant:e=Yu.Default,size:t=Xu.L,value:o,onChange:n,disabled:i,withIcon:a,onIcon:r=Ke,offIcon:s=at})=>{const l=Ft(),c=i?l.v2.colors.grey[400]:l.v2.colors.white[500],d=t===Xu.S?14:18;return xt.createElement(Qu,{$variant:e,$size:d,$value:o,$disabled:i,onClick:()=>!i&&n(!o)},xt.createElement(Zu,{$color:c,$size:d,$value:o,$disabled:i}),a&&xt.createElement(xt.Fragment,null,xt.createElement(r,{size:d,fill:c}),xt.createElement(s,{size:d,fill:c})))};export{Oc as $,jp as A,Ni as B,Sp as C,nu as D,Yn as E,tr as F,Zs as G,Kt as H,Oa as I,Vl as J,Yt as K,gu as L,mr as M,oc as N,mo as O,Za as P,Ji as Q,Jt as R,kp as S,Ci as T,Xl as U,co as V,So as W,An as X,Lc as Y,ip as Z,Vc as _,er as a,Ta as a$,lo as a0,_i as a1,Id as a2,Ad as a3,bl as a4,od as a5,tp as a6,di as a7,li as a8,oi as a9,ai as aA,qo as aB,is as aC,cn as aD,cs as aE,rr as aF,sr as aG,Ec as aH,sn as aI,lr as aJ,Qs as aK,sp as aL,ua as aM,Wn as aN,Pi as aO,xa as aP,pi as aQ,ri as aR,gs as aS,ln as aT,Ln as aU,Qo as aV,wd as aW,Po as aX,rn as aY,an as aZ,Md as a_,ja as aa,Xn as ab,Ml as ac,$l as ad,$a as ae,ro as af,ni as ag,Ea as ah,Ro as ai,_o as aj,Br as ak,pl as al,ao as am,si as an,Zc as ao,ad as ap,ar as aq,md as ar,Jn as as,ca as at,jr as au,tn as av,Hr as aw,_n as ax,ho as ay,yn as az,Di as b,qa as b$,ti as b0,Na as b1,Jo as b2,Yo as b3,Go as b4,Ko as b5,Aa as b6,Wa as b7,ka as b8,Fd as b9,il as bA,un as bB,vo as bC,Oo as bD,Co as bE,Fo as bF,ko as bG,Eo as bH,wo as bI,Xd as bJ,nn as bK,Ma as bL,Bo as bM,Qa as bN,vn as bO,Da as bP,$o as bQ,_s as bR,Qr as bS,Dc as bT,wn as bU,Sn as bV,Xr as bW,ws as bX,vs as bY,Nn as bZ,Bn as b_,nr as ba,Ua as bb,Fn as bc,sc as bd,Hn as be,Mo as bf,Kn as bg,Va as bh,_a as bi,mi as bj,Gn as bk,Jr as bl,zr as bm,qr as bn,Zr as bo,so as bp,Rn as bq,Vo as br,Cn as bs,No as bt,La as bu,En as bv,jo as bw,Lo as bx,Ho as by,Kd as bz,Si as c,zi as c$,Bs as c0,Io as c1,io as c2,Ya as c3,ss as c4,on as c5,Tn as c6,Ia as c7,$d as c8,Zn as c9,hn as cA,mn as cB,gn as cC,$n as cD,kn as cE,Dn as cF,In as cG,On as cH,Pn as cI,Mn as cJ,jn as cK,Un as cL,Vn as cM,qn as cN,Qn as cO,qt as cP,Sa as cQ,Pa as cR,Is as cS,Es as cT,xl as cU,Nl as cV,Rl as cW,fc as cX,vc as cY,os as cZ,vl as c_,Zo as ca,$r as cb,xn as cc,ts as cd,Gt as ce,Xt as cf,Qt as cg,Zt as ch,eo as ci,to as cj,oo as ck,no as cl,uo as cm,go as cn,xo as co,fo as cp,bo as cq,yo as cr,Ao as cs,Do as ct,To as cu,zo as cv,Uo as cw,Xo as cx,dn as cy,pn as cz,eh as d,Oi as d0,Fi as d1,gp as d2,ir as d3,qi as d4,xp as d5,zp as d6,vp as d7,Up as d8,Vp as d9,Ip as da,ru as db,uu as dc,bu as dd,wu as de,Cu as df,Eu as dg,Du as dh,Tu as di,Iu as dj,Ju as dk,Yu as dl,Ei as dm,Xu as e,pr as f,Ui as g,Bi as h,Xa as i,_p as j,en as k,Op as l,Mi as m,Gu as n,po as o,Fa as p,bn as q,or as r,Nr as s,bp as t,va as u,Jp as v,Cr as w,fn as x,Fu as y,Pp as z};