@odigos/ui-kit 0.0.161 → 0.0.163

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 (42) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/chunks/index-53f81cb1.js +3 -0
  3. package/lib/chunks/{ui-components-b00f42a0.js → ui-components-fabd01fd.js} +125 -123
  4. package/lib/components/_v2/search/index.d.ts +3 -1
  5. package/lib/components/_v2/segment/index.d.ts +6 -1
  6. package/lib/components/_v2/warning-modal/index.d.ts +2 -1
  7. package/lib/components/input-table/map-columns-to-fields/index.d.ts +1 -1
  8. package/lib/components/input-table/types.d.ts +1 -1
  9. package/lib/components/v2.js +1 -1
  10. package/lib/components.js +1 -1
  11. package/lib/constants.js +1 -1
  12. package/lib/containers/_v2/central-connections/source-drawer/index.d.ts +15 -0
  13. package/lib/containers/data-flow/column/base.d.ts +1 -0
  14. package/lib/containers/dropdowns/index.d.ts +1 -0
  15. package/lib/containers/dropdowns/pods-agent-injection-status-dropdown/index.d.ts +16 -0
  16. package/lib/containers/v2.js +59 -9
  17. package/lib/containers.js +115 -115
  18. package/lib/contexts.js +1 -1
  19. package/lib/functions/get-status-type-from-odigos-health/index.d.ts +2 -2
  20. package/lib/functions.js +1 -1
  21. package/lib/hooks.js +1 -1
  22. package/lib/mock-data/index.d.ts +2 -0
  23. package/lib/mock-data/snapshot/index.d.ts +5 -0
  24. package/lib/mock-data/workload/index.d.ts +2 -0
  25. package/lib/snippets/_v2/cancel-modal/index.d.ts +1 -1
  26. package/lib/snippets/_v2/delete-modal/index.d.ts +1 -1
  27. package/lib/snippets.js +1 -1
  28. package/lib/store/useFilterStore.d.ts +3 -0
  29. package/lib/store.js +1 -1
  30. package/lib/theme.js +1 -1
  31. package/lib/types/actions/index.d.ts +4 -1
  32. package/lib/types/destinations/index.d.ts +1 -0
  33. package/lib/types/enum/index.d.ts +21 -0
  34. package/lib/types/index.d.ts +3 -0
  35. package/lib/types/instrumentation-rules/index.d.ts +1 -1
  36. package/lib/types/metrics/index.d.ts +1 -1
  37. package/lib/types/snapshot/index.d.ts +27 -0
  38. package/lib/types/sources/index.d.ts +3 -29
  39. package/lib/types/workload/index.d.ts +23 -0
  40. package/lib/types.js +1 -1
  41. package/package.json +1 -1
  42. package/lib/chunks/index-ddeae825.js +0 -3
@@ -1,4 +1,4 @@
1
- import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,JavaLogo as s,GoLogo as l,NodejsLogo as c,PythonLogo as d,DotnetLogo as p,CSharpLogo as u,CPlusPlusLogo as h,PhpLogo as m,RubyLogo as g,RustLogo as x,SwiftLogo as $,ElixirLogo as f,MysqlLogo as b,NginxLogo as y,PostgresLogo as w,RedisLogo as k,KafkaLogo as v,AlaudaLogo as C,AlibabaCloudLogo as E,AppDynamicsLogo as S,AxiomLogo as A,AzureBlobLogo as D,AzureMonitorLogo as T,BetterStackLogo as I,BonreeLogo as N,CauselyLogo as z,ChecklyLogo as O,ChronosphereLogo as F,ClickhouseLogo as _,AwsCloudwatchLogo as R,CoralogixLogo as B,Dash0Logo as L,DatadogLogo as P,OpenTelemetryLogo as M,DynatraceLogo as j,ElasticApmLogo as U,ElasticSearchLogo as W,GoogleCloudPlatformLogo as V,GrafanaLogo as H,GreptimeLogo as q,GroundcoverLogo as G,HoneycombLogo as K,HyperDxLogo as Y,InstanaLogo as J,JaegerLogo as X,KloudmateLogo as Q,Last9Logo as Z,LightstepLogo as ee,LogzioLogo as te,LokiLogo as oe,LumigoLogo as ne,MiddlewareLogo as ie,NewRelicLogo as ae,ObserveLogo as re,OdigosLogo as se,OneUptimeLogo as le,OpenObserveLogo as ce,OpsVerseLogo as de,OracleLogo as pe,PrometheusLogo as ue,QrynLogo as he,GigapipeLogo as me,QuickwitLogo as ge,AwsS3Logo as xe,SeqLogo as $e,SignozLogo as fe,SplunkLogo as be,SumoLogicLogo as ye,TelemetryHubLogo as we,TempoLogo as ke,TingyunLogo as ve,TraceloopLogo as Ce,UptraceLogo as Ee,VictoriaMetricsLogo as Se,AwsXrayLogo as Ae,NamespacesIcon as De,SourceIcon as Te,DestinationIcon as Ie,ActionIcon as Ne,InstrumentationRuleIcon as ze,CodeAttributesIcon as Oe,CustomInstrumentationIcon as Fe,HeadersCollectionIcon as _e,PayloadCollectionIcon as Re,LogsIcon as Be,MetricsIcon as Le,TracesIcon as Pe,VmLogo as Me,ISquareIcon as je,ExclamationCircleIcon as Ue,ExclamationTriangleIcon as We,VSquareIcon as Ve,XSquareIcon as He,QuestionCircleIcon as qe,VIcon as Ge,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Qe,ExtendArrowIcon as Ze,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as nt,EyeOpenIcon as it,SearchIcon as at,TrashIcon as rt,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotIcon as mt,FilterIcon as gt}from"../icons.js";import{create as xt}from"zustand";import $t,{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as kt,createContext as vt,useContext as Ct,useCallback as Et,forwardRef as St,memo as At}from"react";import Dt from"javascript-time-ago";import{p as Tt,c as It,s as Nt,u as zt,e as Ot}from"./vendor-55cc654c.js";import Ft,{css as _t,useTheme as Rt,ThemeProvider as Bt,keyframes as Lt}from"styled-components";import{Handle as Pt,Position as Mt,ReactFlow as jt,Controls as Ut}from"@xyflow/react";import Wt,{createPortal as Vt}from"react-dom";import{Highlight as Ht,themes as qt}from"prism-react-renderer";import{ErrorBoundary as Gt}from"react-error-boundary";import Kt from"lottie-react";const Yt=e=>e.charAt(0).toUpperCase()+e.slice(1),Jt=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 Xt;!function(e){e.SIGNALS="SIGNALS"}(Xt||(Xt={}));const Qt=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,a]=e;if(n===Xt.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}},Zt=e=>JSON.parse(JSON.stringify(e)),eo=(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},to=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},oo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var 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,Io,No,zo,Oo,Fo,_o,Ro,Bo,Lo,Po,Mo,jo,Uo,Wo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(no||(no={})),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"}(io||(io={})),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"}(ao||(ao={})),function(e){e.Pod="pod",e.Namespace="namespace"}(ro||(ro={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(so||(so={})),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"}(lo||(lo={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(co||(co={})),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"}(po||(po={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(uo||(uo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(ho||(ho={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(mo||(mo={})),function(e){e.K8s="k8s",e.Vm="vm"}(go||(go={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(xo||(xo={})),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"}($o||($o={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(fo||(fo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(bo||(bo={})),function(e){e.DataStream="DataStream"}(yo||(yo={})),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"}(wo||(wo={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(ko||(ko={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(vo||(vo={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Co||(Co={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Eo||(Eo={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(So||(So={})),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"}(Ao||(Ao={})),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"}(Do||(Do={})),function(e){e.Labeled="labeled"}(To||(To={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Io||(Io={})),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"}(No||(No={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(zo||(zo={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Oo||(Oo={})),function(e){e.HeaderKeys="headerKeys"}(Fo||(Fo={})),function(e){e.Java="java",e.Golang="golang"}(_o||(_o={}));class Vo{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 Ho{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"}(Ro||(Ro={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Bo||(Bo={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Lo||(Lo={})),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"}(Po||(Po={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Mo||(Mo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(jo||(jo={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.DeploymentConfig="DeploymentConfig"}(Uo||(Uo={})),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"}(Wo||(Wo={}));const qo=(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===vo.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},Go="default",Ko={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Yo={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)'},Jo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes"},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=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Go&&!e.dataStreamNames.length):[],Zo=(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?Zo(e,n,o):o[n]=e}):o[a]=i:Zo(i,a,o)}return o},en=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]}`},tn=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`}},on=()=>{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)})},nn=s=>{const l=s?.toLowerCase(),c=l?.includes(no.Samplers),d=l===no.Attributes;return c?e:d?t:{[io.K8sAttributes]:n,[io.AddClusterInfo]:i,[io.DeleteAttributes]:a,[io.PiiMasking]:t,[io.RenameAttributes]:r,[io.ErrorSampler]:e,[io.ProbabilisticSampler]:e,[io.LatencySampler]:e,[io.ServiceNameSampler]:e,[io.SpanAttributeSampler]:e}[s]||o},an=e=>{const t=e?.filter(({status:e})=>e===vo.Error),o=e?.filter(({status:e})=>e===vo.Warning),n=e?.filter(({status:e})=>e===Eo.Disabled),i=e?.filter(({status:e})=>e===Eo.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?vo.Error:r?vo.Warning:s?vo.Info:void 0}},rn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},sn=e=>({[$o.Java]:s,[$o.Go]:l,[$o.JavaScript]:c,[$o.Python]:d,[$o.DotNet]:p,[$o.CSharp]:u,[$o.CPlusPlus]:h,[$o.Php]:m,[$o.Ruby]:g,[$o.Rust]:x,[$o.Swift]:$,[$o.Elixir]:f,[$o.MySql]:b,[$o.Nginx]:y,[$o.Postgres]:w,[$o.Redis]:k,[$o.Kafka]:v,[$o.Ignored]:o,[$o.Unknown]:o,[$o.Processing]:o,[$o.NoContainers]:o,[$o.NoRunningPods]:o}[e]||o),ln=e=>e?.map(({language:e})=>sn(e))||[],cn=(e,t)=>{const o={[No.Alauda]:C,[No.AlibabaCloud]:E,[No.AppDynamics]:S,[No.Axiom]:A,[No.AzureBlob]:D,[No.AzureMonitor]:T,[No.BetterStack]:I,[No.Bonree]:N,[No.Causely]:z,[No.Checkly]:O,[No.Chronosphere]:F,[No.ClickHouse]:_,[No.CloudWatch]:R,[No.Coralogix]:B,[No.Dash0]:L,[No.Datadog]:P,[No.Dynamic]:M,[No.Dynatrace]:j,[No.ElasticApm]:U,[No.ElasticSearch]:W,[No.GoogleCloud]:V,[No.GoogleCloudOTLP]:V,[No.GrafanaCloudLoki]:H,[No.GrafanaCloudPrometheus]:H,[No.GrafanaCloudTempo]:H,[No.Greptime]:q,[No.Groundcover]:G,[No.Honeycomb]:K,[No.HyperDX]:Y,[No.Instana]:J,[No.Jaeger]:X,[No.Kafka]:v,[No.Kloudmate]:Q,[No.Last9]:Z,[No.Lightstep]:ee,[No.LogzIo]:te,[No.Loki]:oe,[No.Lumigo]:ne,[No.Middleware]:ie,[No.NewRelic]:ae,[No.Observe]:re,[No.Odigos]:se,[No.OneUptime]:le,[No.OpenObserve]:ce,[No.Opsverse]:de,[No.Oracle]:pe,[No.OTLP]:M,[No.OTLPHttp]:M,[No.Prometheus]:ue,[No.Qryn]:he,[No.QrynOss]:me,[No.Quickwit]:ge,[No.S3]:xe,[No.Seq]:$e,[No.Signoz]:fe,[No.Splunk]:be,[No.SplunkSapm]:be,[No.SplunkOtlp]:be,[No.SumoLogic]:ye,[No.TelemetryHub]:we,[No.Tempo]:ke,[No.Tingyun]:ve,[No.Traceloop]:Ce,[No.Uptrace]:Ee,[No.VictoriaMetrics]:Se,[No.VictoriaMetricsCloud]:Se,[No.XRay]:Ae}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},dn=e=>({[bo.Namespace]:De,[bo.Source]:Te,[bo.Destination]:Ie,[bo.Action]:Ne,[bo.InstrumentationRule]:ze}[e]),pn=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,un=(e,t,o)=>{const{extended:n,prioritizeDisplayName:i}=o||{};let a="",r="";switch(t){case bo.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case bo.Source:const o=e;a=o.name,r=o.otelServiceName;break;case bo.Action:const n=e;a=n.type,r=n.name;break;case bo.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case bo.Namespace:const s=e;a=s.name,r=s.name}return n?a+(r&&r!==a?` (${r})`:""):i&&r||a},hn=(e,t)=>{if(t===bo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},mn=e=>({[zo.CodeAttributes]:Oe,[zo.CustomInstrumentation]:Fe,[zo.HeadersCollection]:_e,[zo.PayloadCollection]:Re,[zo.UnknownType]:o}[e]||o),gn=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?$o.Processing:$o.NoRunningPods;const n=o?.filter(e=>e.language!==$o.Ignored);if(!n.length)return $o.NoContainers;const i=n.find(e=>e.language!==$o.Unknown);return i?i.language:$o.Unknown},xn=(e,t,o)=>(t===bo.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},$n=e=>({[jo.Logs]:Be,[jo.Metrics]:Le,[jo.Traces]:Pe}[e]),fn=e=>e?{[go.K8s]:n,[go.Vm]:Me}[e]:se,bn=e=>e?{[go.K8s]:"Kubernetes Cluster",[go.Vm]:"Virtual Machine"}[e]:"Unknown",yn=(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(...yn(e,t,o)),i}):[]},wn=(e,t)=>{if(t===bo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},kn=(e,t,o)=>{switch(t){case vo.Default:return e.v2.colors.purple[o];case vo.Info:return e.v2.colors.blue[o];case vo.Error:return e.v2.colors.red[o];case vo.Warning:return e.v2.colors.yellow[o];case vo.Success:return e.v2.colors.green[o];case So.Disabled:case So.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},vn=e=>{switch(e){case Bo.Updating:case Lo.Pending:case Po.ContainerCreating:case Mo.Waiting:return vo.Info;case Bo.Healthy:case Lo.Succeeded:case Lo.Running:case Po.Running:case Mo.Running:return vo.Success;case Bo.Degraded:return vo.Warning;case Bo.Failed:case Lo.Failed:case Po.Error:case Po.CrashLoopBackOff:case Po.CreateContainerError:case Po.CreateContainerConfigError:case Po.ErrImagePull:case Po.ErrImageNeverPull:case Po.ImagePullBackOff:case Po.InvalidImageName:case Po.RegistryUnavailable:case Po.NetworkNotReady:case Po.OOMKilled:case Po.ContainerCannotRun:case Mo.Terminated:case Po.DeadlineExceeded:case Po.StartError:return vo.Error;case Bo.Down:case Po.Completed:return So.Disabled;case Bo.Unknown:case Lo.Unknown:default:return So.Unknown}},Cn=(e,t)=>({[vo.Default]:o=>se({fill:kn(t,e,"300"),...o}),[vo.Info]:o=>je({fill:kn(t,e,"400"),...o}),[vo.Error]:o=>Ue({fill:kn(t,e,"500"),...o}),[vo.Warning]:o=>We({fill:kn(t,e,"500"),...o}),[vo.Success]:o=>Ve({fill:kn(t,e,"500"),...o}),[So.Disabled]:o=>He({fill:kn(t,e,"400"),...o}),[So.Unknown]:o=>qe({fill:kn(t,e,"300"),...o})}[e]),En=e=>{switch(e){case Wo.Success:return vo.Success;case Wo.Error:case Wo.Failure:return vo.Error;case Wo.Notice:return vo.Warning;case Wo.Unsupported:case Wo.Unknown:return vo.Info;case Wo.Irrelevant:case Wo.Disabled:return Eo.Disabled;case Wo.Waiting:return Eo.Loading;case Wo.Pending:default:return vo.Default}},Sn=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},An=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Dn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Tn=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Dn(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},In=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==vo.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},Nn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),zn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),On=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Fn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},_n=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Rn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Bn=e=>Rn.test(e),Ln=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Pn=e=>e?.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:i})=>({status:e,type:Ln(t),reason:o?Ln(o):"",message:n,lastTransitionTime:i}))||[],Mn=(e,t)=>{const o=Dn(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}))},jn=e=>e?Object.keys(e).filter(t=>e[t]):[],Un=e=>e.replace(/[^\d]/g,""),Wn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Vn=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},Hn=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=>Hn(e)))}else if("object"==typeof n&&null!==n){const e=Hn(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},qn=(e,t=2)=>JSON.stringify(e||{},null,t),Gn=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Kn=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Yn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return o.length>2&&(t=o.slice(0,2).join(".")),Number(t)};var Jn,Xn;!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"}(Jn||(Jn={})),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"}(Xn||(Xn={}));const Qn=Ft.p`
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,JavaLogo as s,GoLogo as l,NodejsLogo as c,PythonLogo as d,DotnetLogo as p,CSharpLogo as u,CPlusPlusLogo as h,PhpLogo as m,RubyLogo as g,RustLogo as x,SwiftLogo as $,ElixirLogo as f,MysqlLogo as b,NginxLogo as y,PostgresLogo as w,RedisLogo as k,KafkaLogo as v,AlaudaLogo as C,AlibabaCloudLogo as E,AppDynamicsLogo as S,AxiomLogo as A,AzureBlobLogo as D,AzureMonitorLogo as T,BetterStackLogo as I,BonreeLogo as N,CauselyLogo as z,ChecklyLogo as O,ChronosphereLogo as F,ClickhouseLogo as _,AwsCloudwatchLogo as R,CoralogixLogo as B,Dash0Logo as L,DatadogLogo as M,OpenTelemetryLogo as P,DynatraceLogo as j,ElasticApmLogo as U,ElasticSearchLogo as W,GoogleCloudPlatformLogo as V,GrafanaLogo as H,GreptimeLogo as q,GroundcoverLogo as G,HoneycombLogo as K,HyperDxLogo as Y,InstanaLogo as J,JaegerLogo as X,KloudmateLogo as Q,Last9Logo as Z,LightstepLogo as ee,LogzioLogo as te,LokiLogo as oe,LumigoLogo as ne,MiddlewareLogo as ie,NewRelicLogo as ae,ObserveLogo as re,OdigosLogo as se,OneUptimeLogo as le,OpenObserveLogo as ce,OpsVerseLogo as de,OracleLogo as pe,PrometheusLogo as ue,QrynLogo as he,GigapipeLogo as me,QuickwitLogo as ge,AwsS3Logo as xe,SeqLogo as $e,SplunkLogo as fe,SignozLogo as be,SumoLogicLogo as ye,TelemetryHubLogo as we,TempoLogo as ke,TingyunLogo as ve,TraceloopLogo as Ce,UptraceLogo as Ee,VictoriaMetricsLogo as Se,AwsXrayLogo as Ae,NamespacesIcon as De,SourceIcon as Te,DestinationIcon as Ie,ActionIcon as Ne,InstrumentationRuleIcon as ze,CodeAttributesIcon as Oe,CustomInstrumentationIcon as Fe,HeadersCollectionIcon as _e,PayloadCollectionIcon as Re,LogsIcon as Be,MetricsIcon as Le,TracesIcon as Me,VmLogo as Pe,ISquareIcon as je,ExclamationCircleIcon as Ue,ExclamationTriangleIcon as We,VSquareIcon as Ve,XSquareIcon as He,QuestionCircleIcon as qe,VIcon as Ge,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Qe,ExtendArrowIcon as Ze,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as nt,EyeOpenIcon as it,SearchIcon as at,TrashIcon as rt,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotIcon as mt,FilterIcon as gt}from"../icons.js";import{create as xt}from"zustand";import $t,{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as kt,createContext as vt,useContext as Ct,useCallback as Et,forwardRef as St,memo as At}from"react";import Dt from"javascript-time-ago";import{p as Tt,c as It,s as Nt,u as zt,e as Ot}from"./vendor-55cc654c.js";import Ft,{css as _t,useTheme as Rt,ThemeProvider as Bt,keyframes as Lt}from"styled-components";import{Handle as Mt,Position as Pt,ReactFlow as jt,Controls as Ut}from"@xyflow/react";import Wt,{createPortal as Vt}from"react-dom";import{Highlight as Ht,themes as qt}from"prism-react-renderer";import{ErrorBoundary as Gt}from"react-error-boundary";import Kt from"lottie-react";const Yt=e=>e.charAt(0).toUpperCase()+e.slice(1),Jt=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 Xt;!function(e){e.SIGNALS="SIGNALS"}(Xt||(Xt={}));const Qt=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,a]=e;if(n===Xt.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}},Zt=e=>JSON.parse(JSON.stringify(e)),eo=(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},to=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},oo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var 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,Io,No,zo,Oo,Fo,_o,Ro,Bo,Lo,Mo,Po,jo,Uo,Wo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(no||(no={})),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"}(io||(io={})),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"}(ao||(ao={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ro||(ro={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(so||(so={})),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"}(lo||(lo={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(co||(co={})),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"}(po||(po={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(uo||(uo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(ho||(ho={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(mo||(mo={})),function(e){e.K8s="k8s",e.Vm="vm"}(go||(go={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(xo||(xo={})),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"}($o||($o={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(fo||(fo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(bo||(bo={})),function(e){e.DataStream="DataStream"}(yo||(yo={})),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"}(wo||(wo={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(ko||(ko={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(vo||(vo={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Co||(Co={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Eo||(Eo={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(So||(So={})),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"}(Ao||(Ao={})),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"}(Do||(Do={})),function(e){e.Labeled="labeled"}(To||(To={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Io||(Io={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray"}(No||(No={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.ConfigMap="ConfigMap",e.Pod="Pod",e.DeploymentConfig="DeploymentConfig"}(zo||(zo={})),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"}(Oo||(Oo={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Fo||(Fo={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(_o||(_o={})),function(e){e.HeaderKeys="headerKeys"}(Ro||(Ro={})),function(e){e.Java="java",e.Golang="golang"}(Bo||(Bo={}));class Vo{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 Ho{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"}(Lo||(Lo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Mo||(Mo={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Po||(Po={})),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"}(jo||(jo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Uo||(Uo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Wo||(Wo={}));const qo=(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.podsAgentInjectionStatus?.length&&(o=o.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.message))),t.onlyErrors&&(o=o.filter(e=>!!e.conditions?.find(e=>e.status===vo.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},Go="default",Ko={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Yo={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)'},Jo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes"},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=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Go&&!e.dataStreamNames.length):[],Zo=(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?Zo(e,n,o):o[n]=e}):o[a]=i:Zo(i,a,o)}return o},en=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]}`},tn=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`}},on=()=>{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)})},nn=s=>{const l=s?.toLowerCase(),c=l?.includes(no.Samplers),d=l===no.Attributes;return c?e:d?t:{[io.K8sAttributes]:n,[io.AddClusterInfo]:i,[io.DeleteAttributes]:a,[io.PiiMasking]:t,[io.RenameAttributes]:r,[io.ErrorSampler]:e,[io.ProbabilisticSampler]:e,[io.LatencySampler]:e,[io.ServiceNameSampler]:e,[io.SpanAttributeSampler]:e}[s]||o},an=e=>{const t=e?.filter(({status:e})=>e===vo.Error),o=e?.filter(({status:e})=>e===vo.Warning),n=e?.filter(({status:e})=>e===Eo.Disabled),i=e?.filter(({status:e})=>e===Eo.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?vo.Error:r?vo.Warning:s?vo.Info:void 0}},rn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},sn=e=>({[$o.Java]:s,[$o.Go]:l,[$o.JavaScript]:c,[$o.Python]:d,[$o.DotNet]:p,[$o.CSharp]:u,[$o.CPlusPlus]:h,[$o.Php]:m,[$o.Ruby]:g,[$o.Rust]:x,[$o.Swift]:$,[$o.Elixir]:f,[$o.MySql]:b,[$o.Nginx]:y,[$o.Postgres]:w,[$o.Redis]:k,[$o.Kafka]:v,[$o.Ignored]:o,[$o.Unknown]:o,[$o.Processing]:o,[$o.NoContainers]:o,[$o.NoRunningPods]:o}[e]||o),ln=e=>e?.map(({language:e})=>sn(e))||[],cn=(e,t)=>{const o={[No.Alauda]:C,[No.AlibabaCloud]:E,[No.AppDynamics]:S,[No.Axiom]:A,[No.AzureBlob]:D,[No.AzureMonitor]:T,[No.BetterStack]:I,[No.Bonree]:N,[No.Causely]:z,[No.Checkly]:O,[No.Chronosphere]:F,[No.ClickHouse]:_,[No.CloudWatch]:R,[No.Coralogix]:B,[No.Dash0]:L,[No.Datadog]:M,[No.Dynamic]:P,[No.Dynatrace]:j,[No.ElasticApm]:U,[No.ElasticSearch]:W,[No.GoogleCloud]:V,[No.GoogleCloudOTLP]:V,[No.GrafanaCloudLoki]:H,[No.GrafanaCloudPrometheus]:H,[No.GrafanaCloudTempo]:H,[No.Greptime]:q,[No.Groundcover]:G,[No.Honeycomb]:K,[No.HyperDX]:Y,[No.Instana]:J,[No.Jaeger]:X,[No.Kafka]:v,[No.Kloudmate]:Q,[No.Last9]:Z,[No.Lightstep]:ee,[No.LogzIo]:te,[No.Loki]:oe,[No.Lumigo]:ne,[No.Middleware]:ie,[No.NewRelic]:ae,[No.Observe]:re,[No.Odigos]:se,[No.OneUptime]:le,[No.OpenObserve]:ce,[No.Opsverse]:de,[No.Oracle]:pe,[No.OTLP]:P,[No.OTLPHttp]:P,[No.Prometheus]:ue,[No.Qryn]:he,[No.QrynOss]:me,[No.Quickwit]:ge,[No.S3]:xe,[No.Seq]:$e,[No.Signalfx]:fe,[No.Signoz]:be,[No.Splunk]:fe,[No.SplunkSapm]:fe,[No.SplunkOtlp]:fe,[No.SumoLogic]:ye,[No.TelemetryHub]:we,[No.Tempo]:ke,[No.Tingyun]:ve,[No.Traceloop]:Ce,[No.Uptrace]:Ee,[No.VictoriaMetrics]:Se,[No.VictoriaMetricsCloud]:Se,[No.XRay]:Ae}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},dn=e=>({[bo.Namespace]:De,[bo.Source]:Te,[bo.Destination]:Ie,[bo.Action]:Ne,[bo.InstrumentationRule]:ze}[e]),pn=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,un=(e,t,o)=>{const{extended:n,prioritizeDisplayName:i}=o||{};let a="",r="";switch(t){case bo.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case bo.Source:const o=e;a=o.name,r=o.otelServiceName;break;case bo.Action:const n=e;a=n.type,r=n.name;break;case bo.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case bo.Namespace:const s=e;a=s.name,r=s.name}return n?a+(r&&r!==a?` (${r})`:""):i&&r||a},hn=(e,t)=>{if(t===bo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},mn=e=>({[Fo.CodeAttributes]:Oe,[Fo.CustomInstrumentation]:Fe,[Fo.HeadersCollection]:_e,[Fo.PayloadCollection]:Re,[Fo.UnknownType]:o}[e]||o),gn=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?$o.Processing:$o.NoRunningPods;const n=o?.filter(e=>e.language!==$o.Ignored);if(!n.length)return $o.NoContainers;const i=n.find(e=>e.language!==$o.Unknown);return i?i.language:$o.Unknown},xn=(e,t,o)=>(t===bo.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},$n=e=>({[Wo.Logs]:Be,[Wo.Metrics]:Le,[Wo.Traces]:Me}[e]),fn=e=>e?{[go.K8s]:n,[go.Vm]:Pe}[e]:se,bn=e=>e?{[go.K8s]:"Kubernetes Cluster",[go.Vm]:"Virtual Machine"}[e]:"Unknown",yn=(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(...yn(e,t,o)),i}):[]},wn=(e,t)=>{if(t===bo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},kn=(e,t,o)=>{switch(t){case vo.Default:return e.v2.colors.purple[o];case vo.Info:return e.v2.colors.blue[o];case vo.Error:return e.v2.colors.red[o];case vo.Warning:return e.v2.colors.yellow[o];case vo.Success:return e.v2.colors.green[o];case So.Disabled:case So.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},vn=e=>{switch(e){case Mo.Updating:case Po.Pending:case jo.ContainerCreating:case Uo.Waiting:return vo.Info;case Mo.Healthy:case Po.Succeeded:case Po.Running:case jo.Running:case Uo.Running:return vo.Success;case Mo.Degraded:return vo.Warning;case Mo.Failed:case Po.Failed:case jo.Error:case jo.CrashLoopBackOff:case jo.CreateContainerError:case jo.CreateContainerConfigError:case jo.ErrImagePull:case jo.ErrImageNeverPull:case jo.ImagePullBackOff:case jo.InvalidImageName:case jo.RegistryUnavailable:case jo.NetworkNotReady:case jo.OOMKilled:case jo.ContainerCannotRun:case Uo.Terminated:case jo.DeadlineExceeded:case jo.StartError:return vo.Error;case Mo.Down:case jo.Completed:return So.Disabled;case Mo.Unknown:case Po.Unknown:default:return So.Unknown}},Cn=(e,t)=>({[vo.Default]:o=>se({fill:kn(t,e,"300"),...o}),[vo.Info]:o=>je({fill:kn(t,e,"400"),...o}),[vo.Error]:o=>Ue({fill:kn(t,e,"500"),...o}),[vo.Warning]:o=>We({fill:kn(t,e,"500"),...o}),[vo.Success]:o=>Ve({fill:kn(t,e,"500"),...o}),[So.Disabled]:o=>He({fill:kn(t,e,"400"),...o}),[So.Unknown]:o=>qe({fill:kn(t,e,"300"),...o})}[e]),En=e=>{switch(e){case Oo.Success:return vo.Success;case Oo.Error:case Oo.Failure:return vo.Error;case Oo.Notice:return vo.Warning;case Oo.Unsupported:case Oo.Unknown:return vo.Info;case Oo.Irrelevant:case Oo.Disabled:return Eo.Disabled;case Oo.Waiting:return Eo.Loading;case Oo.Pending:default:return vo.Default}},Sn=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},An=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Dn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Tn=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Dn(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},In=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==vo.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},Nn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),zn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),On=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Fn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},_n=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Rn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Bn=e=>Rn.test(e),Ln=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Mn=e=>e?.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:i})=>({status:e,type:Ln(t),reason:o?Ln(o):"",message:n,lastTransitionTime:i}))||[],Pn=(e,t)=>{const o=Dn(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}))},jn=e=>e?Object.keys(e).filter(t=>e[t]):[],Un=e=>e.replace(/[^\d]/g,""),Wn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Vn=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},Hn=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=>Hn(e)))}else if("object"==typeof n&&null!==n){const e=Hn(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},qn=(e,t=2)=>JSON.stringify(e||{},null,t),Gn=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Kn=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Yn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return o.length>2&&(t=o.slice(0,2).join(".")),Number(t)};var Jn,Xn;!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"}(Jn||(Jn={})),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"}(Xn||(Xn={}));const Qn=Ft.p`
2
2
  margin: 0;
3
3
  color: ${({$color:e,theme:t})=>e||t.v2.colors.white[500]};
4
4
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -27,7 +27,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
27
27
  padding: 4px 8px;
28
28
  border-radius: 100px;
29
29
  background-color: ${({$backgroundColor:e})=>e};
30
- `,ti=({label:e,leftIcon:t,rightIcon:o,status:n,useSecondaryTone:i=!1,invertColors:a=!1})=>{const r=Rt(),s=n?[So.Disabled].includes(n)?kn(r,n,a?"400":"700"):[So.Unknown].includes(n)?kn(r,n,"600"):kn(r,n,a?i?"400":"300":i?"700":"500"):r.v2.colors.grey[200],l=a&&![So.Unknown].includes(n)?s:[So.Disabled].includes(n)?r.v2.colors.grey[400]:[vo.Error,vo.Warning,vo.Success].includes(n)?r.v2.colors.black[500]:r.v2.colors.white[500],c=a&&![So.Unknown].includes(n)?[So.Disabled].includes(n)?r.v2.colors.grey[700]:r.v2.colors.silver[600]:s;return $t.createElement(ei,{$backgroundColor:c},t&&$t.createElement(t,{fill:l,size:14}),$t.createElement(Zn,{color:l,size:Xn.XXS,nowrap:!0},e),o&&$t.createElement(o,{fill:l,size:14}))},oi=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),ni=[{label:"Attributes",icon:nn(no.Attributes),items:[{type:io.K8sAttributes,icon:nn(io.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:io.AddClusterInfo,icon:nn(io.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[jo.Traces,jo.Metrics,jo.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:io.DeleteAttributes,icon:nn(io.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[jo.Traces,jo.Metrics,jo.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:io.RenameAttributes,icon:nn(io.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[jo.Traces,jo.Metrics,jo.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:io.PiiMasking,icon:nn(io.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[jo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:nn(no.Samplers),items:[{type:io.ErrorSampler,icon:nn(no.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[jo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:io.LatencySampler,icon:nn(no.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[jo.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:io.ProbabilisticSampler,icon:nn(no.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[jo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:io.ServiceNameSampler,icon:nn(no.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[jo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:io.SpanAttributeSampler,icon:nn(no.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[jo.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."}]}],ii={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."}},ai=[{type:zo.CodeAttributes,icon:mn(zo.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:[$o.Go,$o.Python]},{type:zo.CustomInstrumentation,icon:mn(zo.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:[$o.Go,$o.Java]},{type:zo.HeadersCollection,icon:mn(zo.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:[$o.Go,$o.Java,$o.JavaScript]},{type:zo.PayloadCollection,icon:mn(zo.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:[$o.Go]}],ri=[{id:jo.Logs,value:"Logs"},{id:jo.Metrics,value:"Metrics"},{id:jo.Traces,value:"Traces"}],si={[$o.Go]:"Go",[$o.Java]:"Java",[$o.JavaScript]:"Node.js",[$o.Python]:"Python",[$o.DotNet]:".NET",[$o.CSharp]:"C#",[$o.CPlusPlus]:"C++",[$o.Php]:"PHP",[$o.Ruby]:"Ruby",[$o.Rust]:"Rust",[$o.Swift]:"Swift",[$o.Elixir]:"Elixir",[$o.MySql]:"MySQL",[$o.Nginx]:"Nginx",[$o.Postgres]:"PostgreSQL",[$o.Redis]:"Redis",[$o.Kafka]:"Kafka",[$o.Ignored]:"Ignored",[$o.Unknown]:"Unknown",[$o.Processing]:"Processing",[$o.NoContainers]:"No Containers",[$o.NoRunningPods]:"No Running Pods"},li=[{id:$o.Go,value:si[$o.Go],icon:sn($o.Go)},{id:$o.Java,value:si[$o.Java],icon:sn($o.Java)},{id:$o.JavaScript,value:si[$o.JavaScript],icon:sn($o.JavaScript)},{id:$o.Python,value:si[$o.Python],icon:sn($o.Python)},{id:$o.Php,value:si[$o.Php],icon:sn($o.Php)},{id:$o.Ruby,value:si[$o.Ruby],icon:sn($o.Ruby)},{id:$o.Rust,value:si[$o.Rust],icon:sn($o.Rust)},{id:$o.DotNet,value:si[$o.DotNet],icon:sn($o.DotNet)},{id:$o.CSharp,value:si[$o.CSharp],icon:sn($o.CSharp)},{id:$o.CPlusPlus,value:si[$o.CPlusPlus],icon:sn($o.CPlusPlus)},{id:$o.Swift,value:si[$o.Swift],icon:sn($o.Swift)},{id:$o.Elixir,value:si[$o.Elixir],icon:sn($o.Elixir)}],ci=6048e5,di=xt()(Tt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Ko.DARK_MODE,storage:"undefined"!=typeof window?It(()=>localStorage):void 0})),pi={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},ui=xt(e=>({...pi,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(pi)})),hi=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),mi=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const n=t===bo.Namespace?"namespacesLoading":t===bo.Source?"sourcesLoading":t===bo.Destination?"destinationsLoading":t===bo.Action?"actionsLoading":t===bo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:o})},setEntities:(t,o)=>{const n=t===bo.Namespace?"namespaces":t===bo.Source?"sources":t===bo.Destination?"destinations":t===bo.Action?"actions":t===bo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:o})},addEntities:(t,o)=>{const n=t===bo.Namespace?"namespaces":t===bo.Source?"sources":t===bo.Destination?"destinations":t===bo.Action?"actions":t===bo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]];return o.forEach(e=>{const o=t.findIndex(t=>JSON.stringify(pn(t))===JSON.stringify(pn(e)));-1!==o?t[o]={...t[o],...e}:t.push(e)}),{[n]:t}})},removeEntities:(t,o)=>{const n=t===bo.Namespace?"namespaces":t===bo.Source?"sources":t===bo.Destination?"destinations":t===bo.Action?"actions":t===bo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const i=[...e[n]];return o.forEach(e=>{const o=i.findIndex(o=>t===bo.Source?JSON.stringify(pn(o))===JSON.stringify(pn(e)):pn(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:[]})}})),gi=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),xi=xt(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:gi})),$i=xt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,o)=>e({[t]:o})})),fi=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),bi=xt((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)}))}})),yi=(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},wi=xt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>yi(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>yi(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===bo.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}})),ki=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),vi={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Ci=(e,t)=>e.destinationType.type!==t.destinationType.type,Ei=xt(e=>({...vi,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=>Ci(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=>Ci(e,t))})),clearStore:()=>e(()=>({...vi}))})),Si={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"}},Ai={v2:Si.v2,darkMode:!0,colors:{...Si.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:Si.font_family},Di={v2:Si.v2,darkMode:!1,colors:{...Si.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:Si.font_family},Ti=e=>e?Ai:Di;var Ii=Object.freeze({__proto__:null,baseTheme:Si,darkModeTheme:Ai,getTheme:Ti,lightModeTheme:Di});Nt('@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 Ni={in:{left:Lt`
30
+ `,ti=({label:e,leftIcon:t,rightIcon:o,status:n,useSecondaryTone:i=!1,invertColors:a=!1})=>{const r=Rt(),s=n?[So.Disabled].includes(n)?kn(r,n,a?"400":"700"):[So.Unknown].includes(n)?kn(r,n,"600"):kn(r,n,a?i?"400":"300":i?"700":"500"):r.v2.colors.grey[200],l=a&&![So.Unknown].includes(n)?s:[So.Disabled].includes(n)?r.v2.colors.grey[400]:[vo.Error,vo.Warning,vo.Success].includes(n)?r.v2.colors.black[500]:r.v2.colors.white[500],c=a&&![So.Unknown].includes(n)?[So.Disabled].includes(n)?r.v2.colors.grey[700]:r.v2.colors.silver[600]:s;return $t.createElement(ei,{$backgroundColor:c},t&&$t.createElement(t,{fill:l,size:14}),$t.createElement(Zn,{color:l,size:Xn.XXS,nowrap:!0},e),o&&$t.createElement(o,{fill:l,size:14}))},oi=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),ni=[{label:"Attributes",icon:nn(no.Attributes),items:[{type:io.K8sAttributes,icon:nn(io.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Wo.Traces,Wo.Metrics,Wo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:io.AddClusterInfo,icon:nn(io.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Wo.Traces,Wo.Metrics,Wo.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:io.DeleteAttributes,icon:nn(io.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Wo.Traces,Wo.Metrics,Wo.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:io.RenameAttributes,icon:nn(io.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Wo.Traces,Wo.Metrics,Wo.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:io.PiiMasking,icon:nn(io.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Wo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:nn(no.Samplers),items:[{type:io.ErrorSampler,icon:nn(no.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Wo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:io.LatencySampler,icon:nn(no.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Wo.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:io.ProbabilisticSampler,icon:nn(no.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Wo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:io.ServiceNameSampler,icon:nn(no.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Wo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:io.SpanAttributeSampler,icon:nn(no.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Wo.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."}]}],ii={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."}},ai=[{type:Fo.CodeAttributes,icon:mn(Fo.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:[$o.Go,$o.Python]},{type:Fo.CustomInstrumentation,icon:mn(Fo.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:[$o.Go,$o.Java]},{type:Fo.HeadersCollection,icon:mn(Fo.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:[$o.Go,$o.Java,$o.JavaScript]},{type:Fo.PayloadCollection,icon:mn(Fo.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:[$o.Go]}],ri=[{id:Wo.Logs,value:"Logs"},{id:Wo.Metrics,value:"Metrics"},{id:Wo.Traces,value:"Traces"}],si={[$o.Go]:"Go",[$o.Java]:"Java",[$o.JavaScript]:"Node.js",[$o.Python]:"Python",[$o.DotNet]:".NET",[$o.CSharp]:"C#",[$o.CPlusPlus]:"C++",[$o.Php]:"PHP",[$o.Ruby]:"Ruby",[$o.Rust]:"Rust",[$o.Swift]:"Swift",[$o.Elixir]:"Elixir",[$o.MySql]:"MySQL",[$o.Nginx]:"Nginx",[$o.Postgres]:"PostgreSQL",[$o.Redis]:"Redis",[$o.Kafka]:"Kafka",[$o.Ignored]:"Ignored",[$o.Unknown]:"Unknown",[$o.Processing]:"Processing",[$o.NoContainers]:"No Containers",[$o.NoRunningPods]:"No Running Pods"},li=[{id:$o.Go,value:si[$o.Go],icon:sn($o.Go)},{id:$o.Java,value:si[$o.Java],icon:sn($o.Java)},{id:$o.JavaScript,value:si[$o.JavaScript],icon:sn($o.JavaScript)},{id:$o.Python,value:si[$o.Python],icon:sn($o.Python)},{id:$o.Php,value:si[$o.Php],icon:sn($o.Php)},{id:$o.Ruby,value:si[$o.Ruby],icon:sn($o.Ruby)},{id:$o.Rust,value:si[$o.Rust],icon:sn($o.Rust)},{id:$o.DotNet,value:si[$o.DotNet],icon:sn($o.DotNet)},{id:$o.CSharp,value:si[$o.CSharp],icon:sn($o.CSharp)},{id:$o.CPlusPlus,value:si[$o.CPlusPlus],icon:sn($o.CPlusPlus)},{id:$o.Swift,value:si[$o.Swift],icon:sn($o.Swift)},{id:$o.Elixir,value:si[$o.Elixir],icon:sn($o.Elixir)}],ci=6048e5,di=xt()(Tt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Ko.DARK_MODE,storage:"undefined"!=typeof window?It(()=>localStorage):void 0})),pi={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},ui=xt(e=>({...pi,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(pi)})),hi=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),mi=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const n=t===bo.Namespace?"namespacesLoading":t===bo.Source?"sourcesLoading":t===bo.Destination?"destinationsLoading":t===bo.Action?"actionsLoading":t===bo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:o})},setEntities:(t,o)=>{const n=t===bo.Namespace?"namespaces":t===bo.Source?"sources":t===bo.Destination?"destinations":t===bo.Action?"actions":t===bo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:o})},addEntities:(t,o)=>{const n=t===bo.Namespace?"namespaces":t===bo.Source?"sources":t===bo.Destination?"destinations":t===bo.Action?"actions":t===bo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]];return o.forEach(e=>{const o=t.findIndex(t=>JSON.stringify(pn(t))===JSON.stringify(pn(e)));-1!==o?t[o]={...t[o],...e}:t.push(e)}),{[n]:t}})},removeEntities:(t,o)=>{const n=t===bo.Namespace?"namespaces":t===bo.Source?"sources":t===bo.Destination?"destinations":t===bo.Action?"actions":t===bo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const i=[...e[n]];return o.forEach(e=>{const o=i.findIndex(o=>t===bo.Source?JSON.stringify(pn(o))===JSON.stringify(pn(e)):pn(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:[]})}})),gi=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),xi=xt(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}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus: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:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:gi})),$i=xt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,o)=>e({[t]:o})})),fi=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),bi=xt((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)}))}})),yi=(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},wi=xt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>yi(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>yi(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===bo.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}})),ki=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),vi={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Ci=(e,t)=>e.destinationType.type!==t.destinationType.type,Ei=xt(e=>({...vi,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=>Ci(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=>Ci(e,t))})),clearStore:()=>e(()=>({...vi}))})),Si={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"}},Ai={v2:Si.v2,darkMode:!0,colors:{...Si.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:Si.font_family},Di={v2:Si.v2,darkMode:!1,colors:{...Si.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:Si.font_family},Ti=e=>e?Ai:Di;var Ii=Object.freeze({__proto__:null,baseTheme:Si,darkModeTheme:Ai,getTheme:Ti,lightModeTheme:Di});Nt('@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 Ni={in:{left:Lt`
31
31
  from { transform: translateX(-100%); }
32
32
  to { transform: translateX(0); }
33
33
  `,right:Lt`
@@ -112,7 +112,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
112
112
  font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
113
113
  white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
114
114
  text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
115
- `,Li=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(">","")}})},Pi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Mi=(e,t)=>{const o=Li(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const n=Pi(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 $t.createElement(ft,{key:e},$t.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 $t.createElement(ft,{key:e},$t.createElement("strong",{style:{fontWeight:600}},i?.label),o?`${o} `:" ")}return e+" "})},ji=({children:e,color:t,size:o,weight:n,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=Ri.useTheme(),u=bt(()=>(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 $t.createElement(Bi,{$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)=>$t.createElement(ft,{key:`text-${t}-${e}`},Mi(e,p),t!==u.length-1?$t.createElement("br",null):null)):e)},Ui=Ft.div`
115
+ `,Li=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(">","")}})},Mi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Pi=(e,t)=>{const o=Li(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const n=Mi(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 $t.createElement(ft,{key:e},$t.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 $t.createElement(ft,{key:e},$t.createElement("strong",{style:{fontWeight:600}},i?.label),o?`${o} `:" ")}return e+" "})},ji=({children:e,color:t,size:o,weight:n,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=Ri.useTheme(),u=bt(()=>(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 $t.createElement(Bi,{$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)=>$t.createElement(ft,{key:`text-${t}-${e}`},Pi(e,p),t!==u.length-1?$t.createElement("br",null):null)):e)},Ui=Ft.div`
116
116
  padding: 4px 0 0 0;
117
117
  `,Wi=Ft(ji)`
118
118
  font-size: 12px;
@@ -325,13 +325,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
325
325
  &:hover {
326
326
  background: ${({theme:e})=>e.v2.colors.silver[800]};
327
327
  }
328
- `,Ea=({icon:e,size:t=va.S,onClick:o,disabled:n})=>$t.createElement(Ca,{$size:t,$disabled:n,onClick:e=>{o&&!n&&(e.stopPropagation(),o(e))}},$t.createElement(e,{size:t})),Sa=({onDone:e}={})=>{const[t,o]=yt(!1),[n,i]=yt(-1),a=Et(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:Et(({value:e,size:o})=>{const n=t?Ge:Ke;return $t.createElement(Ea,{icon:n,size:o,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:n,clickCopy:a}},Aa=e=>{const{addNotification:t}=bi(),{formData:o,handleFormChange:n,formErrors:i,handleErrorChange:a,resetFormData:r}=ua(e);return{formData:o,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:e=>{const n={};let i=!0;return o.name?zn(o.name)?n.name=void 0:(i=!1,n.name=Yo.ILLEGAL_K8S_LABEL):(i=!1,n.name=Yo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:vo.Warning,title:e.alertTitle,message:Yo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const o={...Zt(e),name:t};n(void 0,void 0,o)}}},Da={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Ta=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=bi(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=ua(Da),[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===wo.Dropdown){const e=Dn(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,...Dn(n,{})}})).map(e=>{if(o){const t="string"==typeof o?Dn(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===jn(i.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;r("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,i.exportedSignals]),{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]=Yo.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:vo.Warning,title:e.alertTitle,message:Yo.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={...Zt(Da),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(Dn(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Ia=({items:e,rowHeight:t})=>{const o=kt(null),n=zt({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()}},Na={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Ro.HttpRequest]:null,[Ro.HttpResponse]:null,[Ro.DbQuery]:null,[Ro.Messaging]:null},codeAttributes:{[Oo.Column]:null,[Oo.FilePath]:null,[Oo.Function]:null,[Oo.LineNumber]:null,[Oo.Namespace]:null,[Oo.StackTrace]:null},headersCollection:null,customInstrumentations:{[_o.Java]:null,[_o.Golang]:null}},za=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ua(Na);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={...Zt(Na),ruleName:e,notes:t,disabled:n};i&&(l.payloadCollection={[Ro.HttpRequest]:i[Ro.HttpRequest]?{}:null,[Ro.HttpResponse]:i[Ro.HttpResponse]?{}:null,[Ro.DbQuery]:i[Ro.DbQuery]?{}:null,[Ro.Messaging]:i[Ro.Messaging]?{}:null}),a&&(l.codeAttributes={[Oo.Column]:a[Oo.Column]||null,[Oo.FilePath]:a[Oo.FilePath]||null,[Oo.Function]:a[Oo.Function]||null,[Oo.LineNumber]:a[Oo.LineNumber]||null,[Oo.Namespace]:a[Oo.Namespace]||null,[Oo.StackTrace]:a[Oo.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[_o.Java]:s[_o.Java]||null,[_o.Golang]:s[_o.Golang]||null}),o(void 0,void 0,l)}}},Oa=({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),Fa=(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])},_a=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const n=kt(null),[i,a]=yt(!1),[r,s]=yt({top:0,left:0});return Fa(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})}}},Ra=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Dn(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Ba={otelServiceName:"",currentStreamName:""},La=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ua(Ba);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...Zt(Ba),otelServiceName:e||t||""};o(void 0,void 0,n)}}},Pa=(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}},Ma=(e,t,o)=>({...Pa(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}},Ua=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:o}=mi(),{selectedStreamName:n}=ui(),i=kt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=Ei(),[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=>Ma(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=Ma(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({namespaceName:e.name}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>Pa(e,n));$(e=>[...e,a]),l({...Ei.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof o&&e[a]?.length?e[a]:r.map(e=>Ma(e,n,o))}))}h("")}};wt(()=>(i.current=!0,o?.length&&!Ei.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(bo.Source),[T,I]=yt(!1),[N,z]=yt(!1),O=bt(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,bo.Namespace)).forEach(([o,n])=>{const i=n.filter(t=>e(t.name,bo.Source)&&(!T||t.selected)&&(e=>!N||(e.numberOfInstances||0)>0)(t));(!E||E&&i.length)&&(t[o]=i)}),t},[k,E,A,T,N]);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:I,showRunningOnly:N,setShowRunningOnly:z}};try{Dt.addDefaultLocale(Ot)}catch(e){}const Wa=()=>{const e=kt(new Dt(Ot.locale));return{formatTimeAgo:Et(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Va=Ft.div`
328
+ `,Ea=({icon:e,size:t=va.S,onClick:o,disabled:n})=>$t.createElement(Ca,{$size:t,$disabled:n,onClick:e=>{o&&!n&&(e.stopPropagation(),o(e))}},$t.createElement(e,{size:t})),Sa=({onDone:e}={})=>{const[t,o]=yt(!1),[n,i]=yt(-1),a=Et(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:Et(({value:e,size:o})=>{const n=t?Ge:Ke;return $t.createElement(Ea,{icon:n,size:o,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:n,clickCopy:a}},Aa=e=>{const{addNotification:t}=bi(),{formData:o,handleFormChange:n,formErrors:i,handleErrorChange:a,resetFormData:r}=ua(e);return{formData:o,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:e=>{const n={};let i=!0;return o.name?zn(o.name)?n.name=void 0:(i=!1,n.name=Yo.ILLEGAL_K8S_LABEL):(i=!1,n.name=Yo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:vo.Warning,title:e.alertTitle,message:Yo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const o={...Zt(e),name:t};n(void 0,void 0,o)}}},Da={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Ta=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=bi(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=ua(Da),[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===wo.Dropdown){const e=Dn(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,...Dn(n,{})}})).map(e=>{if(o){const t="string"==typeof o?Dn(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===jn(i.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;r("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,i.exportedSignals]),{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]=Yo.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:vo.Warning,title:e.alertTitle,message:Yo.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={...Zt(Da),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(Dn(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Ia=({items:e,rowHeight:t})=>{const o=kt(null),n=zt({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()}},Na={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Lo.HttpRequest]:null,[Lo.HttpResponse]:null,[Lo.DbQuery]:null,[Lo.Messaging]:null},codeAttributes:{[_o.Column]:null,[_o.FilePath]:null,[_o.Function]:null,[_o.LineNumber]:null,[_o.Namespace]:null,[_o.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bo.Java]:null,[Bo.Golang]:null}},za=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ua(Na);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={...Zt(Na),ruleName:e,notes:t,disabled:n};i&&(l.payloadCollection={[Lo.HttpRequest]:i[Lo.HttpRequest]?{}:null,[Lo.HttpResponse]:i[Lo.HttpResponse]?{}:null,[Lo.DbQuery]:i[Lo.DbQuery]?{}:null,[Lo.Messaging]:i[Lo.Messaging]?{}:null}),a&&(l.codeAttributes={[_o.Column]:a[_o.Column]||null,[_o.FilePath]:a[_o.FilePath]||null,[_o.Function]:a[_o.Function]||null,[_o.LineNumber]:a[_o.LineNumber]||null,[_o.Namespace]:a[_o.Namespace]||null,[_o.StackTrace]:a[_o.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[Bo.Java]:s[Bo.Java]||null,[Bo.Golang]:s[Bo.Golang]||null}),o(void 0,void 0,l)}}},Oa=({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),Fa=(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])},_a=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const n=kt(null),[i,a]=yt(!1),[r,s]=yt({top:0,left:0});return Fa(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})}}},Ra=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Dn(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Ba={otelServiceName:"",currentStreamName:""},La=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ua(Ba);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...Zt(Ba),otelServiceName:e||t||""};o(void 0,void 0,n)}}},Ma=(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}},Pa=(e,t,o)=>({...Ma(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}},Ua=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:o}=mi(),{selectedStreamName:n}=ui(),i=kt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=Ei(),[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=>Pa(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=Pa(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({namespaceName:e.name}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>Ma(e,n));$(e=>[...e,a]),l({...Ei.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof o&&e[a]?.length?e[a]:r.map(e=>Pa(e,n,o))}))}h("")}};wt(()=>(i.current=!0,o?.length&&!Ei.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(bo.Source),[T,I]=yt(!1),[N,z]=yt(!1),O=bt(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,bo.Namespace)).forEach(([o,n])=>{const i=n.filter(t=>e(t.name,bo.Source)&&(!T||t.selected)&&(e=>!N||(e.numberOfInstances||0)>0)(t));(!E||E&&i.length)&&(t[o]=i)}),t},[k,E,A,T,N]);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:I,showRunningOnly:N,setShowRunningOnly:z}};try{Dt.addDefaultLocale(Ot)}catch(e){}const Wa=()=>{const e=kt(new Dt(Ot.locale));return{formatTimeAgo:Et(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Va=Ft.div`
329
329
  flex: 1;
330
330
  align-self: stretch;
331
331
  display: flex;
332
332
  flex-direction: column;
333
333
  gap: 24px;
334
- padding: 24px;
334
+ padding: 24px 24px 0 24px;
335
335
  overflow-x: scroll;
336
336
  `,Ha=Ft.div`
337
337
  position: relative;
@@ -586,7 +586,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
586
586
  width: 250px;
587
587
  `,Lr=Ft.div`
588
588
  margin-bottom: 12px;
589
- `,Pr=({isOpen:e,noOverlay:t,title:o="",description:n="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{Oa({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return $t.createElement(cr,{isOpen:e,noOverlay:t,onClose:l},$t.createElement(zr,null,$t.createElement(Fr,null,o),$t.createElement(Or,{$withNote:!!i},$t.createElement(_r,null,n)),!!i&&$t.createElement(Lr,null,$t.createElement(Nr,{type:i.type,title:i.title,message:i.message})),$t.createElement(Rr,null,$t.createElement(Br,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),$t.createElement(Br,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))},Mr=({isOpen:e,noOverlay:t,name:o,onApprove:n,onDeny:i})=>$t.createElement(Pr,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:vo.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),jr=Ft.div`
589
+ `,Mr=({isOpen:e,noOverlay:t,title:o="",description:n="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{Oa({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return $t.createElement(cr,{isOpen:e,noOverlay:t,onClose:l},$t.createElement(zr,null,$t.createElement(Fr,null,o),$t.createElement(Or,{$withNote:!!i},$t.createElement(_r,null,n)),!!i&&$t.createElement(Lr,null,$t.createElement(Nr,{type:i.type,title:i.title,message:i.message})),$t.createElement(Rr,null,$t.createElement(Br,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),$t.createElement(Br,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))},Pr=({isOpen:e,noOverlay:t,name:o,onApprove:n,onDeny:i})=>$t.createElement(Mr,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:vo.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),jr=Ft.div`
590
590
  display: flex;
591
591
  align-items: center;
592
592
  gap: 8px;
@@ -674,7 +674,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
674
674
  white-space: nowrap;
675
675
  `,hs=Ft(Ga)`
676
676
  width: 16px;
677
- `,ms=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const i=Ri.useTheme(),[a,r]=yt(!1),s=bt(()=>Pn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=bt(()=>an(s),[s]);wt(()=>{r(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?vo.Error:p?vo.Warning:u?vo.Info:vo.Success,x=Cn(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=Et(()=>r(e=>!e),[]);return $t.createElement(ls,{onClick:w,$status:g},$t.createElement(cs,null,m?$t.createElement(as,null):$t.createElement(x,null),$t.createElement(ji,{color:f,size:14},$),$t.createElement(ji,{color:y,size:12,family:"secondary"},b),$t.createElement(ss,{extend:a,align:"right"})),a&&$t.createElement(ds,null,s.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:a},r)=>{const s=e===Eo.Loading?()=>$t.createElement(as,{scale:.8}):e===Eo.Disabled?Cn(vo.Info,i):Cn(e,i),l=e===Eo.Disabled?i.text.info:e===vo.Error?i.text.error:e===vo.Warning?i.text.warning:i.text.info,c=e===Eo.Disabled?i.text.info_secondary:e===vo.Error?i.text.error_secondary:e===vo.Warning?i.text.warning_secondary:i.text.info_secondary;return $t.createElement(ps,{key:`condition-${r}`},$t.createElement(hs,null,$t.createElement(s,null)),$t.createElement(qa,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},$t.createElement(ji,{color:l,size:12},$t.createElement(us,{color:c,size:12,weight:700},t),n||o),$t.createElement(us,{color:l,size:12},new Date(a).toLocaleString())))})))},gs=Ft.div`
677
+ `,ms=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const i=Ri.useTheme(),[a,r]=yt(!1),s=bt(()=>Mn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=bt(()=>an(s),[s]);wt(()=>{r(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?vo.Error:p?vo.Warning:u?vo.Info:vo.Success,x=Cn(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=Et(()=>r(e=>!e),[]);return $t.createElement(ls,{onClick:w,$status:g},$t.createElement(cs,null,m?$t.createElement(as,null):$t.createElement(x,null),$t.createElement(ji,{color:f,size:14},$),$t.createElement(ji,{color:y,size:12,family:"secondary"},b),$t.createElement(ss,{extend:a,align:"right"})),a&&$t.createElement(ds,null,s.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:a},r)=>{const s=e===Eo.Loading?()=>$t.createElement(as,{scale:.8}):e===Eo.Disabled?Cn(vo.Info,i):Cn(e,i),l=e===Eo.Disabled?i.text.info:e===vo.Error?i.text.error:e===vo.Warning?i.text.warning:i.text.info,c=e===Eo.Disabled?i.text.info_secondary:e===vo.Error?i.text.error_secondary:e===vo.Warning?i.text.warning_secondary:i.text.info_secondary;return $t.createElement(ps,{key:`condition-${r}`},$t.createElement(hs,null,$t.createElement(s,null)),$t.createElement(qa,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},$t.createElement(ji,{color:l,size:12},$t.createElement(us,{color:c,size:12,weight:700},t),n||o),$t.createElement(us,{color:l,size:12},new Date(a).toLocaleString())))})))},gs=Ft.div`
678
678
  display: flex;
679
679
  align-items: center;
680
680
  gap: ${({$size:e})=>e/3}px;
@@ -770,7 +770,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
770
770
  `,Ls=Ft(ji)`
771
771
  font-size: 10px;
772
772
  color: ${({theme:e})=>e.text.grey};
773
- `,Ps=({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=Ri.useTheme(),[S,A]=yt(k||!1),[D,T]=yt(0),I=kt(null),N=kt(null),z=kt(null);return wt(()=>{if(I.current){const e=I.current.clientWidth,t=N.current?.clientWidth||0;T(e-((x?125:85)+t))}},[x]),$t.createElement(_s,{ref:I,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C},$t.createElement(qa,{$gap:8},$t.createElement(qa,{$gap:16},b?$t.createElement(as,null):x?$t.createElement(Wr,{value:f,onChange:y,disabled:$}):null,r?.length||l?.length?$t.createElement(Ns,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?$t.createElement(Ds,{icon:a,src:s,status:c}):null),$t.createElement(Ga,{$gap:4},e&&$t.createElement(Es,{maxWidth:D,text:e,textSize:14}),$t.createElement(qa,{$gap:4},t&&$t.createElement(Es,{maxWidth:D-(z.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),h&&h.length>0&&$t.createElement(qa,{$gap:4,ref:z},t&&$t.createElement(Ls,null,"•"),$t.createElement(Os,{monitors:h,withLabels:m,size:10}))),g&&g.length>0?$t.createElement(qa,{$gap:4},g?.map((e,t)=>$t.createElement(ft,{key:`componentsUnderTitles-${t}`},e))):null),$t.createElement(Rs,{ref:N},!!o&&$t.createElement(Fs,null,$t.createElement(Bs,{size:14,family:"secondary"},o)),i&&i(),w&&$t.createElement(ft,null,$t.createElement(pr,{orientation:"vertical",length:"16px",margin:"0 2px"}),$t.createElement(kr,{onClick:()=>A(e=>!e)},$t.createElement(ss,{extend:S}))))),S&&v&&$t.createElement(Ga,null,$t.createElement(pr,{margin:"16px 0"}),v()))},Ms=Ft(qa)`
773
+ `,Ms=({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=Ri.useTheme(),[S,A]=yt(k||!1),[D,T]=yt(0),I=kt(null),N=kt(null),z=kt(null);return wt(()=>{if(I.current){const e=I.current.clientWidth,t=N.current?.clientWidth||0;T(e-((x?125:85)+t))}},[x]),$t.createElement(_s,{ref:I,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C},$t.createElement(qa,{$gap:8},$t.createElement(qa,{$gap:16},b?$t.createElement(as,null):x?$t.createElement(Wr,{value:f,onChange:y,disabled:$}):null,r?.length||l?.length?$t.createElement(Ns,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?$t.createElement(Ds,{icon:a,src:s,status:c}):null),$t.createElement(Ga,{$gap:4},e&&$t.createElement(Es,{maxWidth:D,text:e,textSize:14}),$t.createElement(qa,{$gap:4},t&&$t.createElement(Es,{maxWidth:D-(z.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),h&&h.length>0&&$t.createElement(qa,{$gap:4,ref:z},t&&$t.createElement(Ls,null,"•"),$t.createElement(Os,{monitors:h,withLabels:m,size:10}))),g&&g.length>0?$t.createElement(qa,{$gap:4},g?.map((e,t)=>$t.createElement(ft,{key:`componentsUnderTitles-${t}`},e))):null),$t.createElement(Rs,{ref:N},!!o&&$t.createElement(Fs,null,$t.createElement(Bs,{size:14,family:"secondary"},o)),i&&i(),w&&$t.createElement(ft,null,$t.createElement(pr,{orientation:"vertical",length:"16px",margin:"0 2px"}),$t.createElement(kr,{onClick:()=>A(e=>!e)},$t.createElement(ss,{extend:S}))))),S&&v&&$t.createElement(Ga,null,$t.createElement(pr,{margin:"16px 0"}),v()))},Ps=Ft(qa)`
774
774
  width: 100%;
775
775
  justify-content: space-between;
776
776
  `,js=Ft(ji)`
@@ -787,9 +787,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
787
787
  `,Vs=Ft(ji)`
788
788
  font-size: 12px;
789
789
  text-align: right;
790
- `,Hs=({title:e,subTitle:t,tooltip:o,value:n})=>$t.createElement(Ms,null,$t.createElement(Ga,{$gap:4},$t.createElement(br,{text:o||""},e&&$t.createElement(js,{key:"title"},e),t&&$t.createElement(Us,{key:"subtitle"},t))),$t.createElement(Ws,null,n?.status?$t.createElement(fs,{status:"transitioning"===n.status?Eo.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):$t.createElement(Vs,null,n?.text||"-"))),qs=Ft(Ga)`
790
+ `,Hs=({title:e,subTitle:t,tooltip:o,value:n})=>$t.createElement(Ps,null,$t.createElement(Ga,{$gap:4},$t.createElement(br,{text:o||""},e&&$t.createElement(js,{key:"title"},e),t&&$t.createElement(Us,{key:"subtitle"},t))),$t.createElement(Ws,null,n?.status?$t.createElement(fs,{status:"transitioning"===n.status?Eo.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):$t.createElement(Vs,null,n?.text||"-"))),qs=Ft(Ga)`
791
791
  width: 100%;
792
- `,Gs=({containerName:e,actualDevices:t,started:o,ready:n,instrumentationInstances:i})=>{const a=bt(()=>{const e=[];return o?.name&&e.push($t.createElement(fs,{key:"started",status:Fn(o.value)?Wn(o.value)?vo.Success:vo.Error:vo.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),n?.name&&e.push($t.createElement(fs,{key:"ready",status:Fn(n.value)?Wn(n.value)?vo.Success:vo.Error:vo.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),e},[o?.name,o?.value,n?.name,n?.value]);return $t.createElement(Ps,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>$t.createElement(fs,{status:vo.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>$t.createElement(qs,{$gap:24},i.map((e,t)=>$t.createElement(qs,{key:`process-${t}`,$gap:8},$t.createElement(Hs,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===vo.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>$t.createElement(Hs,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})},Ks=Ft.div`
792
+ `,Gs=({containerName:e,actualDevices:t,started:o,ready:n,instrumentationInstances:i})=>{const a=bt(()=>{const e=[];return o?.name&&e.push($t.createElement(fs,{key:"started",status:Fn(o.value)?Wn(o.value)?vo.Success:vo.Error:vo.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),n?.name&&e.push($t.createElement(fs,{key:"ready",status:Fn(n.value)?Wn(n.value)?vo.Success:vo.Error:vo.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),e},[o?.name,o?.value,n?.name,n?.value]);return $t.createElement(Ms,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>$t.createElement(fs,{status:vo.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>$t.createElement(qs,{$gap:24},i.map((e,t)=>$t.createElement(qs,{key:`process-${t}`,$gap:8},$t.createElement(Hs,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===vo.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>$t.createElement(Hs,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})},Ks=Ft.div`
793
793
  display: flex;
794
794
  flex-direction: column;
795
795
  align-items: center;
@@ -833,7 +833,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
833
833
  border-radius: 16px;
834
834
  border: 1px solid ${({theme:e})=>e.colors.border};
835
835
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
836
- `,al=({title:e,value:t})=>{const o=Rt();return $t.createElement(qa,{$justifyContent:"space-between"},$t.createElement(ji,{size:12,color:o.text.info},e),$t.createElement(ji,{size:12,family:"secondary"},t))},rl=At(({id:e,data:t})=>{const{id:o,status:n,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=oi(),c=Rt(),d=n===vo.Error?Cn(n,c):null;return $t.createElement($t.Fragment,null,$t.createElement(Pt,{type:"source",position:Mt.Bottom,style:{visibility:"hidden"}}),$t.createElement(Pt,{type:"target",position:Mt.Top,style:{visibility:"hidden"}}),$t.createElement(ol,{"data-id":e},$t.createElement(tl,null,$t.createElement(Ns,{id:o,icons:a,status:n})),$t.createElement(nl,null,d&&$t.createElement(d,null),$t.createElement(Es,{maxWidth:100,text:i})),s===Do.MapItem&&l===e&&$t.createElement(il,null,$t.createElement(qa,{$gap:12},$t.createElement(Ns,{id:o,icons:a,status:n}),$t.createElement(ji,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:n})=>$t.createElement("div",{key:`from-${o}-to-${e}`},$t.createElement(pr,null),$t.createElement(al,{title:"Connected Service",value:e}),$t.createElement(al,{title:"Outgoing Requests",value:t}),$t.createElement(al,{title:"Last Requested At",value:new Date(n).toLocaleString()}))):$t.createElement($t.Fragment,null,$t.createElement(pr,null),$t.createElement(Qs,{title:"No outgoing connections",subTitle:" "})))))});rl.displayName=rl.name;const sl=Ft.div`
836
+ `,al=({title:e,value:t})=>{const o=Rt();return $t.createElement(qa,{$justifyContent:"space-between"},$t.createElement(ji,{size:12,color:o.text.info},e),$t.createElement(ji,{size:12,family:"secondary"},t))},rl=At(({id:e,data:t})=>{const{id:o,status:n,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=oi(),c=Rt(),d=n===vo.Error?Cn(n,c):null;return $t.createElement($t.Fragment,null,$t.createElement(Mt,{type:"source",position:Pt.Bottom,style:{visibility:"hidden"}}),$t.createElement(Mt,{type:"target",position:Pt.Top,style:{visibility:"hidden"}}),$t.createElement(ol,{"data-id":e},$t.createElement(tl,null,$t.createElement(Ns,{id:o,icons:a,status:n})),$t.createElement(nl,null,d&&$t.createElement(d,null),$t.createElement(Es,{maxWidth:100,text:i})),s===Do.MapItem&&l===e&&$t.createElement(il,null,$t.createElement(qa,{$gap:12},$t.createElement(Ns,{id:o,icons:a,status:n}),$t.createElement(ji,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:n})=>$t.createElement("div",{key:`from-${o}-to-${e}`},$t.createElement(pr,null),$t.createElement(al,{title:"Connected Service",value:e}),$t.createElement(al,{title:"Outgoing Requests",value:t}),$t.createElement(al,{title:"Last Requested At",value:new Date(n).toLocaleString()}))):$t.createElement($t.Fragment,null,$t.createElement(pr,null),$t.createElement(Qs,{title:"No outgoing connections",subTitle:" "})))))});rl.displayName=rl.name;const sl=Ft.div`
837
837
  height: calc(100vh - 160px);
838
838
  .react-flow__attribution {
839
839
  visibility: hidden;
@@ -1043,12 +1043,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1043
1043
  width: 100%;
1044
1044
  gap: 12px;
1045
1045
  align-items: flex-end;
1046
- `,Ll=({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=Ri.useTheme(),{popupRef:m,popupPosition:g,handlePosition:x}=_a({onClickOutside:a});return Oa({key:"Enter",active:i},r),wt(()=>x(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:$t.createElement(xr,{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"},$t.createElement(Rl,null,$t.createElement(br,{text:d,withIcon:!0},$t.createElement(ji,{size:14},c)),$t.createElement(Bl,null,u,$t.createElement(qa,{$gap:6},$t.createElement(kr,{withBorder:!0,onClick:a,tooltip:"Cancel"},$t.createElement(Ye,null)),$t.createElement(kr,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:r,tooltip:"Save"},$t.createElement(Ge,{fill:h.text.primary})),s&&$t.createElement(kr,{onClick:l,tooltip:"Undo"},$t.createElement(rt,null)))),p&&$t.createElement(Nr,{type:vo.Warning,message:p})))},Pl=Ft.div`
1046
+ `,Ll=({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=Ri.useTheme(),{popupRef:m,popupPosition:g,handlePosition:x}=_a({onClickOutside:a});return Oa({key:"Enter",active:i},r),wt(()=>x(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:$t.createElement(xr,{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"},$t.createElement(Rl,null,$t.createElement(br,{text:d,withIcon:!0},$t.createElement(ji,{size:14},c)),$t.createElement(Bl,null,u,$t.createElement(qa,{$gap:6},$t.createElement(kr,{withBorder:!0,onClick:a,tooltip:"Cancel"},$t.createElement(Ye,null)),$t.createElement(kr,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:r,tooltip:"Save"},$t.createElement(Ge,{fill:h.text.primary})),s&&$t.createElement(kr,{onClick:l,tooltip:"Undo"},$t.createElement(rt,null)))),p&&$t.createElement(Nr,{type:vo.Warning,message:p})))},Ml=Ft.div`
1047
1047
  position: relative;
1048
- `,Ml=({defaultLanguage:e=$o.Unknown,defaultVersion:t="",handleSave:o})=>{const{addNotification:n}=bi(),{formData:i,handleFormChange:a,resetFormData:r}=ua({language:e,version:t}),[s,l]=yt(!1),c=()=>{l(!1),r()};return $t.createElement(Pl,null,$t.createElement(kr,{tooltip:Jo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},$t.createElement(tt,null)),$t.createElement(Ll,{flipX:!0,clientX:36,isOpen:s,onClose:c,onSave:()=>{!i.version||Bn(i.version)?(o(i),c()):n({type:vo.Warning,message:Yo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{o({language:null,version:""}),c()},title:Jo.OVERRIDE_RUNTIME_DETAILS,warning:Jo.OVERRIDE_RUNTIME_WARNING},$t.createElement(Sl,{title:Jo.LANGUAGE,options:li,value:li.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),$t.createElement(wl,{title:Jo.RUNTIME_VERSION,placeholder:Jo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},jl=Ft(qa)`
1048
+ `,Pl=({defaultLanguage:e=$o.Unknown,defaultVersion:t="",handleSave:o})=>{const{addNotification:n}=bi(),{formData:i,handleFormChange:a,resetFormData:r}=ua({language:e,version:t}),[s,l]=yt(!1),c=()=>{l(!1),r()};return $t.createElement(Ml,null,$t.createElement(kr,{tooltip:Jo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},$t.createElement(tt,null)),$t.createElement(Ll,{flipX:!0,clientX:36,isOpen:s,onClose:c,onSave:()=>{!i.version||Bn(i.version)?(o(i),c()):n({type:vo.Warning,message:Yo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{o({language:null,version:""}),c()},title:Jo.OVERRIDE_RUNTIME_DETAILS,warning:Jo.OVERRIDE_RUNTIME_WARNING},$t.createElement(Sl,{title:Jo.LANGUAGE,options:li,value:li.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),$t.createElement(wl,{title:Jo.RUNTIME_VERSION,placeholder:Jo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},jl=Ft(qa)`
1049
1049
  width: 100%;
1050
1050
  justify-content: center;
1051
- `,Ul=({containerName:e,language:t,runtimeVersion:o,overriden:n,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=Ri.useTheme(),c=i?vo.Success:a?vo.Info:vo.Warning,d=i?Co.INSTRUMENTED:a?Co.NOT_INSTRUMENTED:Co.INSTRUMENTING;return $t.createElement(Ps,{title:e,subTitle:`${t?si[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:sn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>$t.createElement(jl,null,$t.createElement(ji,{size:12,family:"secondary",color:l.text.info},Ln(a)))},renderActions:()=>$t.createElement($t.Fragment,null,$t.createElement(fs,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),n&&$t.createElement(fs,{status:vo.Default,forceIcon:st,title:Jo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&$t.createElement(Ml,{defaultLanguage:t,defaultVersion:o,handleSave:t=>s({...t,containerName:e})}))})},Wl=Ft.tr`
1051
+ `,Ul=({containerName:e,language:t,runtimeVersion:o,overriden:n,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=Ri.useTheme(),c=i?vo.Success:a?vo.Info:vo.Warning,d=i?Co.INSTRUMENTED:a?Co.NOT_INSTRUMENTED:Co.INSTRUMENTING;return $t.createElement(Ms,{title:e,subTitle:`${t?si[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:sn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>$t.createElement(jl,null,$t.createElement(ji,{size:12,family:"secondary",color:l.text.info},Ln(a)))},renderActions:()=>$t.createElement($t.Fragment,null,$t.createElement(fs,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),n&&$t.createElement(fs,{status:vo.Default,forceIcon:st,title:Jo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&$t.createElement(Pl,{defaultLanguage:t,defaultVersion:o,handleSave:t=>s({...t,containerName:e})}))})},Wl=Ft.tr`
1052
1052
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
1053
1053
  opacity: ${({$faded:e})=>e?.5:1};
1054
1054
  `,Vl=Ft.td`
@@ -1182,7 +1182,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1182
1182
  `,fc=Ft(ji)`
1183
1183
  font-size: 10px;
1184
1184
  color: ${({theme:e})=>e.text.grey};
1185
- `,bc=({title:e,subTitle:t,icons:o,iconSrcs:n,onClick:i,renderActions:a})=>{const r=Ri.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))}},[]),$t.createElement(xc,{ref:c,$gap:8,$withClick:!!i,onClick:i},$t.createElement(Ns,{id:`${e}-${t}`,icons:o,iconSrcs:n}),e&&$t.createElement(Es,{maxWidth:s/2,text:e,textSize:14}),e&&t&&$t.createElement(fc,null,"•"),t&&$t.createElement(Es,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),$t.createElement($c,{ref:d},a&&$t.createElement($t.Fragment,null,$t.createElement(pr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},yc=({isOpen:e,noOverlay:t,name:o,type:n,isLastItem:i,onApprove:a,onDeny:r})=>{const s=n===bo.Source?"uninstrument":"delete";return $t.createElement(Pr,{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:vo.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}})},wc=Ft(pa)`
1185
+ `,bc=({title:e,subTitle:t,icons:o,iconSrcs:n,onClick:i,renderActions:a})=>{const r=Ri.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))}},[]),$t.createElement(xc,{ref:c,$gap:8,$withClick:!!i,onClick:i},$t.createElement(Ns,{id:`${e}-${t}`,icons:o,iconSrcs:n}),e&&$t.createElement(Es,{maxWidth:s/2,text:e,textSize:14}),e&&t&&$t.createElement(fc,null,"•"),t&&$t.createElement(Es,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),$t.createElement($c,{ref:d},a&&$t.createElement($t.Fragment,null,$t.createElement(pr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},yc=({isOpen:e,noOverlay:t,name:o,type:n,isLastItem:i,onApprove:a,onDeny:r})=>{const s=n===bo.Source?"uninstrument":"delete";return $t.createElement(Mr,{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:vo.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}})},wc=Ft(pa)`
1186
1186
  display: flex;
1187
1187
  align-items: center;
1188
1188
  justify-content: center;
@@ -1240,7 +1240,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1240
1240
  `,Lc=Ft(pa)`
1241
1241
  min-width: 140px;
1242
1242
  font-size: 14px;
1243
- `,Pc=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:n=[]})=>e?$t.createElement(Fc,null,$t.createElement(_c,null,t.map((e,t)=>$t.createElement(Lc,{key:`footer-left-button-${t}`,...e}))),$t.createElement(Rc,null,o.map((e,t)=>$t.createElement(Lc,{key:`footer-center-button-${t}`,...e}))),$t.createElement(Bc,null,n.map((e,t)=>$t.createElement(Lc,{key:`footer-right-button-${t}`,...e})))):null,Mc=Ft.div`
1243
+ `,Mc=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:n=[]})=>e?$t.createElement(Fc,null,$t.createElement(_c,null,t.map((e,t)=>$t.createElement(Lc,{key:`footer-left-button-${t}`,...e}))),$t.createElement(Rc,null,o.map((e,t)=>$t.createElement(Lc,{key:`footer-center-button-${t}`,...e}))),$t.createElement(Bc,null,n.map((e,t)=>$t.createElement(Lc,{key:`footer-right-button-${t}`,...e})))):null,Pc=Ft.div`
1244
1244
  position: fixed;
1245
1245
  top: 0;
1246
1246
  bottom: 0;
@@ -1259,7 +1259,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1259
1259
  flex-grow: 1;
1260
1260
  padding: 24px 32px;
1261
1261
  overflow-y: auto;
1262
- `,Wc=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:n="right",width:i="300px",children:a,header:r,footer:s})=>(Oa({key:"Escape",active:e&&o},()=>t()),ga(e),e?Wt.createPortal($t.createElement($t.Fragment,null,$t.createElement(Ja,{hidden:!e,onClick:t}),$t.createElement(Mc,{"data-id":"drawer",$position:n,$width:i},$t.createElement(jc,null,$t.createElement(Oc,{onClose:t,width:i,...r}),$t.createElement(Uc,null,a),$t.createElement(Pc,{...s})))),document.body):null),Vc=({error:e})=>{const t=Ri.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 $t.createElement("div",{style:o.container},$t.createElement("h2",null,"Something went wrong!"),$t.createElement("pre",{style:o.errorMessage},e?.message||"Unknown Error"),$t.createElement("details",{style:o.errorStackWrapper},$t.createElement("summary",null,"Stack Trace"),$t.createElement("pre",{style:o.errorStack},e?.stack||"Unknown Stack")),$t.createElement("p",{style:o.infoText},"Try refreshing the page or contact support"),$t.createElement(pa,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},Hc=({children:e})=>$t.createElement(Gt,{FallbackComponent:e=>$t.createElement(Ri.Provider,null,$t.createElement(Vc,{...e}))},e),qc=Ft(qa)`
1262
+ `,Wc=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:n="right",width:i="300px",children:a,header:r,footer:s})=>(Oa({key:"Escape",active:e&&o},()=>t()),ga(e),e?Wt.createPortal($t.createElement($t.Fragment,null,$t.createElement(Ja,{hidden:!e,onClick:t}),$t.createElement(Pc,{"data-id":"drawer",$position:n,$width:i},$t.createElement(jc,null,$t.createElement(Oc,{onClose:t,width:i,...r}),$t.createElement(Uc,null,a),$t.createElement(Mc,{...s})))),document.body):null),Vc=({error:e})=>{const t=Ri.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 $t.createElement("div",{style:o.container},$t.createElement("h2",null,"Something went wrong!"),$t.createElement("pre",{style:o.errorMessage},e?.message||"Unknown Error"),$t.createElement("details",{style:o.errorStackWrapper},$t.createElement("summary",null,"Stack Trace"),$t.createElement("pre",{style:o.errorStack},e?.stack||"Unknown Stack")),$t.createElement("p",{style:o.infoText},"Try refreshing the page or contact support"),$t.createElement(pa,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},Hc=({children:e})=>$t.createElement(Gt,{FallbackComponent:e=>$t.createElement(Ri.Provider,null,$t.createElement(Vc,{...e}))},e),qc=Ft(qa)`
1263
1263
  position: relative;
1264
1264
  width: calc(100% - 24px);
1265
1265
  padding: 12px;
@@ -1320,7 +1320,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1320
1320
  `,ad=Ft(kr)`
1321
1321
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1322
1322
  opacity: ${({$disabled:e})=>e?.5:1};
1323
- `,rd=({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]);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 $t.createElement(od,null,$t.createElement(ml,{title:n,required:a,tooltip:i}),$t.createElement(nd,null,s.map((e,t)=>{const o=t===s.length-1;return $t.createElement(id,{key:`input-list-${t}`},$t.createElement(wl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:Nn(e)&&!u&&o}),t===s.length-1&&$t.createElement(ad,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},$t.createElement(et,null)),$t.createElement(ad,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t)},$t.createElement(rt,null)))})),!!r&&$t.createElement(Vi,null,r))},sd=({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:$t.createElement("td",{key:`input-table-${n}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===wo.Dropdown){const e=x?.find(e=>e.id===f);return $t.createElement(Sl,{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&&Nn(f))})}{const e=i>1&&n===i-1&&0===t&&Nn(f);return $t.createElement(wl,{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&&Nn(f))})}})())},ld=Ft.div`
1323
+ `,rd=({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]);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 $t.createElement(od,null,$t.createElement(ml,{title:n,required:a,tooltip:i}),$t.createElement(nd,null,s.map((e,t)=>{const o=t===s.length-1;return $t.createElement(id,{key:`input-list-${t}`},$t.createElement(wl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:Nn(e)&&!u&&o}),t===s.length-1&&$t.createElement(ad,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},$t.createElement(et,null)),$t.createElement(ad,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t)},$t.createElement(rt,null)))})),!!r&&$t.createElement(Vi,null,r))},sd=({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:$t.createElement("td",{key:`input-table-${n}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{switch(g){case wo.Dropdown:const e=x?.find(e=>e.id===f);return $t.createElement(Sl,{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&&Nn(f))});case"multi-dropdown":const o=Array.isArray(f)&&x?.filter(e=>f.includes(e.id))||[];return $t.createElement(Sl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:x||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(f)?f:[],e.id];r(c,t,n)},onDeselect:e=>{const t=(Array.isArray(f)?f:[]).filter(t=>t!==e.id);r(c,t,n)},hasError:!!s&&(!h||h&&Nn(f))});default:const g=i>1&&n===i-1&&0===t&&Nn(f);return $t.createElement(wl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:f,onChange:({target:{value:e}})=>r(c,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!h||h&&Nn(f))})}})())},ld=Ft.div`
1324
1324
  display: flex;
1325
1325
  flex-direction: column;
1326
1326
  width: 100%;
@@ -1428,7 +1428,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1428
1428
  &:hover {
1429
1429
  border: 1px solid ${({theme:e})=>e.colors.secondary};
1430
1430
  }
1431
- `,Pd=Ft.div`
1431
+ `,Md=Ft.div`
1432
1432
  position: absolute;
1433
1433
  top: ${({$y:e})=>e}px;
1434
1434
  left: ${({$x:e})=>e}px;
@@ -1438,7 +1438,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1438
1438
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1439
1439
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1440
1440
  transition: all 0.3s;
1441
- `,Md=({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]),$t.createElement(Bd,{$count:e.length},e.map(({icon:n,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return $t.createElement(Ld,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(r),a(s||"")}},n&&$t.createElement(n,null),i&&$t.createElement(ji,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),$t.createElement(Pd,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1}))},jd=Ft(pa)`
1441
+ `,Pd=({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]),$t.createElement(Bd,{$count:e.length},e.map(({icon:n,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return $t.createElement(Ld,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(r),a(s||"")}},n&&$t.createElement(n,null),i&&$t.createElement(ji,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),$t.createElement(Md,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1}))},jd=Ft(pa)`
1442
1442
  gap: 8px;
1443
1443
  text-transform: none;
1444
1444
  text-decoration: none;
@@ -1719,8 +1719,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1719
1719
  display: flex;
1720
1720
  flex-direction: column;
1721
1721
  gap: 4px;
1722
- `,Dp=({cellsPerRow:e,items:t})=>{const o=Rt(),{CopyButton:n}=Sa();return $t.createElement(Sp,null,t.map(({id:i,title:a,label:r,withCopy:s,badge:l})=>$t.createElement(Ap,{key:i,$cellsPerRow:e||t.length},$t.createElement(Zn,{size:Xn.XXXS,color:o.v2.colors.silver[200],nowrap:!0},a),$t.createElement(qa,{$gap:4},l&&$t.createElement(ti,{...l}),r&&$t.createElement(Zn,{size:Xn.XS,nowrap:!0},r),s&&$t.createElement(n,{value:r||l?.label?.toString()||"",size:va.XS})))))},Tp=Ft.div`
1723
- width: ${({$width:e})=>e||"unset"};
1722
+ `,Dp=({cellsPerRow:e,items:t})=>{const o=Rt(),{CopyButton:n}=Sa();return $t.createElement(Sp,null,t.map(({id:i,title:a,label:r,withCopy:s,badge:l})=>$t.createElement(Ap,{key:i,$cellsPerRow:e||t.length},$t.createElement(Zn,{size:Xn.XXXS,color:o.v2.colors.silver[200],nowrap:!0},a),$t.createElement(qa,{$gap:4},l&&$t.createElement(ti,{...l}),r&&$t.createElement(Zn,{size:Xn.XS,nowrap:!0},r),s&&$t.createElement(n,{value:r||l?.label?.toString()||"",size:va.XS})))))};var Tp;!function(e){e.S="s",e.L="l"}(Tp||(Tp={}));const Ip=Ft.div`
1723
+ position: relative;
1724
+ z-index: 0;
1725
+ display: flex;
1726
+ align-items: center;
1727
+ gap: 2px;
1728
+ padding: 3px;
1729
+ border-radius: 8px;
1730
+ border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1731
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1732
+ `,Np=Ft.button`
1733
+ flex: 1;
1734
+ display: flex;
1735
+ align-items: center;
1736
+ justify-content: center;
1737
+ gap: 8px;
1738
+ padding: ${({$size:e})=>e===Tp.S?"4px 8px":"8px 16px"};
1739
+ border-radius: 6px;
1740
+ border: none;
1741
+ background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:"transparent"};
1742
+ box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1743
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1744
+ &:hover {
1745
+ background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:e.v2.colors.silver[800]};
1746
+ }
1747
+ `,zp=({size:e=Tp.L,options:t=[],selected:o,setSelected:n,disabled:i})=>{const a=Rt(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500],s=e===Tp.S?Xn.XXS:Xn.XS,l=e===Tp.S?400:500;return $t.createElement(Ip,{$count:t.length},t.map(({value:t,label:a,icon:c},d)=>{const p=o===t;return $t.createElement(Np,{key:`segment-${a||d}-${t}`,onClick:()=>!i&&n(t),$isSelected:p,$disabled:i,$size:e},c&&$t.createElement(c,{fill:r}),a&&$t.createElement(Zn,{size:s,weight:l,color:r,nowrap:!0},a))}))},Op=Ft.div`
1748
+ min-width: ${({$width:e})=>e||"unset"};
1749
+ width: fit-content;
1724
1750
  padding: 6px 12px;
1725
1751
  display: flex;
1726
1752
  align-self: stretch;
@@ -1731,7 +1757,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1731
1757
  border: none;
1732
1758
  border-radius: 6px;
1733
1759
  background: ${({$isHovered:e,$isActive:t,theme:o})=>e||t?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
1734
- `,Ip=Ft.input`
1760
+ `,Fp=Ft.input`
1735
1761
  flex: 1;
1736
1762
  font-family: ${({theme:e})=>e.font_family.primary};
1737
1763
  font-size: 14px;
@@ -1747,28 +1773,28 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1747
1773
  overflow: hidden;
1748
1774
  text-overflow: ellipsis;
1749
1775
  white-space: nowrap;
1750
- `,Np=({placeholder:e="Search...",value:t,onChange:o,width:n})=>{const i=Ri.useTheme(),[a,r]=yt(!1),[s,l]=yt(!1),c=s?i.v2.colors.white[500]:i.v2.colors.silver[200];return $t.createElement(Tp,{$width:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),$isHovered:a,$isActive:s},$t.createElement(at,{size:18,fill:c}),$t.createElement(Ip,{"data-id":"search",name:"search",type:"text",placeholder:e,value:t,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>l(!0),onBlur:()=>l(!1),$textColor:c}))};var zp;!function(e){e.S="small",e.L="large"}(zp||(zp={}));const Op=Ft.div`
1776
+ `,_p=({value:e,onChange:t,placeholder:o,width:n,segment:i})=>{const a=Ri.useTheme(),[r,s]=yt(!1),[l,c]=yt(!1),[d,p]=yt(!1),u=r?a.v2.colors.white[500]:a.v2.colors.silver[200],h=!!i?.options?.length,m=bt(()=>{if(h)return i?.options.find(e=>e.value===i.selected)?.label},[h,i?.options,i?.selected]),g=bt(()=>o||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[o,h,m]);return $t.createElement(Op,{$width:n,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:r},$t.createElement(at,{size:18,fill:u}),$t.createElement(Fp,{"data-id":"search",name:"search",type:"text",placeholder:g,value:e,onChange:e=>{e.stopPropagation(),t(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:u}),h&&$t.createElement("div",{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)},$t.createElement(zp,{options:i.options,selected:i.selected,setSelected:i.setSelected,size:Tp.S})))};var Rp;!function(e){e.S="small",e.L="large"}(Rp||(Rp={}));const Bp=Ft.div`
1751
1777
  width: fit-content;
1752
1778
  display: flex;
1753
1779
  align-items: center;
1754
1780
  gap: 8px;
1755
1781
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1756
- `,Fp=Ft.div`
1757
- width: ${({$size:e})=>e===zp.S?"16px":"20px"};
1758
- height: ${({$size:e})=>e===zp.S?"16px":"20px"};
1782
+ `,Lp=Ft.div`
1783
+ width: ${({$size:e})=>e===Rp.S?"16px":"20px"};
1784
+ height: ${({$size:e})=>e===Rp.S?"16px":"20px"};
1759
1785
  display: flex;
1760
1786
  align-items: center;
1761
1787
  justify-content: center;
1762
1788
  border-radius: 4px;
1763
1789
  border: 1px solid ${({$borderColor:e})=>e};
1764
1790
  background-color: ${({$backgroundColor:e})=>e};
1765
- `,_p=({label:e,size:t=zp.L,disabled:o,partiallyChecked:n,value:i,onChange:a})=>{const r=Ri.useTheme(),[s,l]=yt(!1),c=n||i,d=t===zp.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 $t.createElement(Op,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),o||a(!!n||!i)},$disabled:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},$t.createElement(Fp,{$size:t,$borderColor:u,$backgroundColor:h},n?$t.createElement(Je,{size:d,fill:p}):i?$t.createElement(Ge,{size:d,fill:p}):null),e&&$t.createElement(Zn,{size:t===zp.S?Xn.XXS:Xn.XS,nowrap:!0},e))},Rp=Ft.div`
1791
+ `,Mp=({label:e,size:t=Rp.L,disabled:o,partiallyChecked:n,value:i,onChange:a})=>{const r=Ri.useTheme(),[s,l]=yt(!1),c=n||i,d=t===Rp.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 $t.createElement(Bp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),o||a(!!n||!i)},$disabled:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},$t.createElement(Lp,{$size:t,$borderColor:u,$backgroundColor:h},n?$t.createElement(Je,{size:d,fill:p}):i?$t.createElement(Ge,{size:d,fill:p}):null),e&&$t.createElement(Zn,{size:t===Rp.S?Xn.XXS:Xn.XS,nowrap:!0},e))},Pp=Ft.div`
1766
1792
  display: flex;
1767
1793
  flex-direction: ${({$direction:e})=>e===uo.Horizontal?"row":"column"};
1768
1794
  gap: ${({$direction:e})=>e===uo.Horizontal?16:8}px;
1769
- `,Bp=({direction:e=uo.Vertical,title:t,size:o,disabled:n,withSelectAll:i,options:a,values:r,setValues:s})=>{const l=o===zp.S?Xn.XXS:Xn.XS,c=bt(()=>a.every(e=>r[e.id]),[a,r]),d=bt(()=>a.some(e=>r[e.id])&&a.some(e=>!r[e.id]),[a,r]),p=(e,t)=>{s(o=>{const n={...o};return e?n[e]=t:a.forEach(e=>n[e.id]=t),n})};return $t.createElement(Rp,{$direction:e},t&&i?$t.createElement(_p,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?$t.createElement(Zn,{size:l},t):null,a.map(e=>$t.createElement(_p,{key:`${t}-checkbox-${e.id}`,...e,value:r[e.id],onChange:t=>p(e.id,t),disabled:n,size:o})))};var Lp;!function(e){e.Left="left",e.Right="right"}(Lp||(Lp={}));const Pp=Ft.div`
1795
+ `,jp=({direction:e=uo.Vertical,title:t,size:o,disabled:n,withSelectAll:i,options:a,values:r,setValues:s})=>{const l=o===Rp.S?Xn.XXS:Xn.XS,c=bt(()=>a.every(e=>r[e.id]),[a,r]),d=bt(()=>a.some(e=>r[e.id])&&a.some(e=>!r[e.id]),[a,r]),p=(e,t)=>{s(o=>{const n={...o};return e?n[e]=t:a.forEach(e=>n[e.id]=t),n})};return $t.createElement(Pp,{$direction:e},t&&i?$t.createElement(Mp,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?$t.createElement(Zn,{size:l},t):null,a.map(e=>$t.createElement(Mp,{key:`${t}-checkbox-${e.id}`,...e,value:r[e.id],onChange:t=>p(e.id,t),disabled:n,size:o})))};var Up;!function(e){e.Left="left",e.Right="right"}(Up||(Up={}));const Wp=Ft.div`
1770
1796
  position: relative;
1771
- `,Mp=Ft.div`
1797
+ `,Vp=Ft.div`
1772
1798
  display: flex;
1773
1799
  flex-direction: column;
1774
1800
  gap: 0;
@@ -1782,7 +1808,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1782
1808
  top: ${({$withButton:e})=>e?"calc(100% + 8px)":"0"};
1783
1809
  ${({$align:e})=>`${e}: 0;`}
1784
1810
  z-index: 1000;
1785
- `,jp=Ft.div`
1811
+ `,Hp=Ft.div`
1786
1812
  display: flex;
1787
1813
  align-items: center;
1788
1814
  gap: 8px;
@@ -1798,7 +1824,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1798
1824
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1799
1825
  }
1800
1826
  `}
1801
- `,Up=({items:e,selectedIds:t,setSelectedIds:o,withMultiSelect:n,align:i,defaultOpen:a,buttonProps:r,iconButtonProps:s})=>{const l=Rt(),c=!!r||!!s,[d,p]=yt(Lp.Left),[u,h]=yt(a??!c),[m,g]=yt(t);wt(()=>{o(m)},[m]);const x=e=>{p(i||(e.clientX>window.innerWidth/2?Lp.Right:Lp.Left)),h(e=>!e)},$=e=>{g(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),c&&!n&&h(!1)},f=kt(null);return Fa(f,()=>h(!1)),$t.createElement(Pp,{ref:f},r&&$t.createElement(yp,{...r,rightIcon:u?pt:ut,onClick:x}),s&&$t.createElement(Ea,{...s,onClick:x}),u&&$t.createElement(Mp,{$withButton:c,$align:d},e.map(({id:e,label:o,icon:n,withCheckbox:i})=>{const a=t.includes(e);return $t.createElement(jp,{key:e,$selected:a,onClick:()=>$(e)},i&&$t.createElement(_p,{value:a,onChange:()=>$(e)}),n&&$t.createElement(n,{size:14,fill:l.v2.colors.white[500]}),$t.createElement(Zn,{size:Xn.XS,nowrap:!0},o))})))};var Wp,Vp;!function(e){e.S="small",e.M="medium"}(Wp||(Wp={})),function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Vp||(Vp={}));const Hp=Ft.div`
1827
+ `,qp=({items:e,selectedIds:t,setSelectedIds:o,withMultiSelect:n,align:i,defaultOpen:a,buttonProps:r,iconButtonProps:s})=>{const l=Rt(),c=!!r||!!s,[d,p]=yt(Up.Left),[u,h]=yt(a??!c),m=e=>{p(i||(e.clientX>window.innerWidth/2?Up.Right:Up.Left)),h(e=>!e)},g=e=>{o(t.includes(e)?t.filter(t=>t!==e):[...t,e]),c&&!n&&h(!1)},x=kt(null);return Fa(x,()=>h(!1)),$t.createElement(Wp,{ref:x},r&&$t.createElement(yp,{...r,rightIcon:u?pt:ut,onClick:m}),s&&$t.createElement(Ea,{...s,onClick:m}),u&&$t.createElement(Vp,{$withButton:c,$align:d},e.map(({id:e,label:o,icon:n,withCheckbox:i})=>{const a=t.includes(e);return $t.createElement(Hp,{key:e,$selected:a,onClick:()=>g(e)},i&&$t.createElement(Mp,{value:a,onChange:()=>g(e)}),n&&$t.createElement(n,{size:14,fill:l.v2.colors.white[500]}),$t.createElement(Zn,{size:Xn.XS,nowrap:!0},o))})))};var Gp,Kp;!function(e){e.S="small",e.M="medium"}(Gp||(Gp={})),function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Kp||(Kp={}));const Yp=Ft.div`
1802
1828
  display: flex;
1803
1829
  flex-direction: column;
1804
1830
  gap: ${({$gap:e})=>e}px;
@@ -1806,7 +1832,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1806
1832
  padding: ${({$padding:e})=>e}px;
1807
1833
  border-radius: 16px;
1808
1834
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1809
- `,qp=({size:e=Wp.M,icon:t,title:o,withCopyTitle:n,badge:i,search:a,actions:r,children:s})=>{const{CopyButton:l}=Sa(),c=e===Wp.S?4:16,d=e===Wp.S?12:16;return $t.createElement(Hp,{$padding:d,$gap:c},$t.createElement(qa,{$gap:16,$justifyContent:"space-between"},$t.createElement(qa,{$gap:8,$alignItems:"center"},$t.createElement(t,{size:24}),$t.createElement(Zn,null,o),n&&$t.createElement(l,{value:o,size:va.XS}),i&&$t.createElement(ti,{...i}),a&&$t.createElement(Np,{...a})),$t.createElement(qa,{$gap:8,$alignItems:"center"},r?.map(e=>{switch(e.type){case Vp.Button:return $t.createElement(yp,{key:e.id,...e.buttonProps,label:e.buttonProps?.label??""});case Vp.ButtonDropData:return $t.createElement(Up,{key:e.id,items:e.dropDataItems??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>e.buttonProps?.onClick?.(t[0]),buttonProps:e.buttonProps});default:return null}}))),s)},Gp=Ft.div`
1835
+ `,Jp=({size:e=Gp.M,icon:t,title:o,withCopyTitle:n,badge:i,search:a,actions:r,children:s})=>{const{CopyButton:l}=Sa(),c=e===Gp.S?4:16,d=e===Gp.S?12:16;return $t.createElement(Yp,{$padding:d,$gap:c},$t.createElement(qa,{$gap:16,$justifyContent:"space-between"},$t.createElement(qa,{$gap:8,$alignItems:"center"},$t.createElement(t,{size:24}),$t.createElement(Zn,null,o),n&&$t.createElement(l,{value:o,size:va.XS}),i&&$t.createElement(ti,{...i}),a&&$t.createElement(_p,{...a})),$t.createElement(qa,{$gap:8,$alignItems:"center"},r?.map(e=>{switch(e.type){case Kp.Button:return $t.createElement(yp,{key:e.id,...e.buttonProps,label:e.buttonProps?.label??""});case Kp.ButtonDropData:return $t.createElement(qp,{key:e.id,items:e.dropDataItems??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>e.buttonProps?.onClick?.(t[0]),buttonProps:e.buttonProps});default:return null}}))),s)},Xp=Ft.div`
1810
1836
  flex: 1;
1811
1837
  align-self: stretch;
1812
1838
  display: flex;
@@ -1815,7 +1841,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1815
1841
  padding: 16px;
1816
1842
  border-radius: 12px;
1817
1843
  background-color: ${({theme:e,$status:t})=>kn(e,t,t===So.Unknown?"750":"500")};
1818
- `,Kp=Ft.div`
1844
+ `,Qp=Ft.div`
1819
1845
  display: flex;
1820
1846
  align-items: center;
1821
1847
  justify-content: center;
@@ -1824,7 +1850,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1824
1850
  padding: 8px;
1825
1851
  border-radius: 12px;
1826
1852
  background-color: ${({theme:e,$status:t})=>t===So.Unknown?kn(e,t,"800"):kn(e,t,"900")+Ri.opacity.hex["015"]};
1827
- `,Yp=({status:e,icon:t,title:o,description:n})=>{const i=Rt(),a=t??Cn(e,i),r=[vo.Default,vo.Info,So.Disabled,So.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return $t.createElement(Gp,{$status:e},$t.createElement(Kp,{$status:e},$t.createElement(a,{size:32,fill:r})),$t.createElement(Ga,{$gap:2,$justifyContent:"center"},$t.createElement(Zn,{size:Xn.M,weight:500,color:r,nowrap:!0},o),$t.createElement(Zn,{size:Xn.XXS,weight:300,color:r,nowrap:!0},n)))},Jp=Ft.div`
1853
+ `,Zp=({status:e,icon:t,title:o,description:n})=>{const i=Rt(),a=t??Cn(e,i),r=[vo.Default,vo.Info,So.Disabled,So.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return $t.createElement(Xp,{$status:e},$t.createElement(Qp,{$status:e},$t.createElement(a,{size:32,fill:r})),$t.createElement(Ga,{$gap:2,$justifyContent:"center"},$t.createElement(Zn,{size:Xn.M,weight:500,color:r,nowrap:!0},o),$t.createElement(Zn,{size:Xn.XXS,weight:300,color:r,nowrap:!0},n)))},eu=Ft.div`
1828
1854
  flex: 1;
1829
1855
  align-self: stretch;
1830
1856
  display: flex;
@@ -1833,7 +1859,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1833
1859
  padding: 12px;
1834
1860
  border-radius: 12px;
1835
1861
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1836
- `,Xp=["-","N/A"],Qp=({title:e,cells:t})=>{const o=Rt();return $t.createElement(Jp,null,$t.createElement(Zn,{size:Xn.XXS,color:o.v2.colors.grey[150]},e),$t.createElement(qa,{$gap:32},t.map(t=>$t.createElement(Ga,{key:`${e}-${t.label}-${t.value}`,$gap:2},!t.isLoading||t.value&&!Xp.includes(t.value)?$t.createElement(Zn,{size:t.label?Xn.M:Xn.L},t.value):$t.createElement(as,{scale:.9}),t.label&&$t.createElement(Zn,{size:Xn.XXS},t.label)))))},Zp=Ft(qa)`
1862
+ `,tu=["-","N/A"],ou=({title:e,cells:t})=>{const o=Rt();return $t.createElement(eu,null,$t.createElement(Zn,{size:Xn.XXS,color:o.v2.colors.grey[150]},e),$t.createElement(qa,{$gap:32},t.map(t=>$t.createElement(Ga,{key:`${e}-${t.label}-${t.value}`,$gap:2},!t.isLoading||t.value&&!tu.includes(t.value)?$t.createElement(Zn,{size:t.label?Xn.M:Xn.L},t.value):$t.createElement(as,{scale:.9}),t.label&&$t.createElement(Zn,{size:Xn.XXS},t.label)))))},nu=Ft(qa)`
1837
1863
  width: calc(100% - 20px);
1838
1864
  padding: 10px;
1839
1865
  border-radius: 6px;
@@ -1842,45 +1868,45 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1842
1868
  align-items: center;
1843
1869
  justify-content: space-between;
1844
1870
  gap: 12px;
1845
- `,eu=Ft.div`
1871
+ `,iu=Ft.div`
1846
1872
  position: relative;
1847
1873
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
1848
1874
  display: flex;
1849
1875
  align-items: center;
1850
1876
  gap: 4px;
1851
- `,tu=Ft.pre`
1877
+ `,au=Ft.pre`
1852
1878
  flex: 1;
1853
1879
  margin: 0;
1854
1880
  padding: 0;
1855
1881
  font-size: 14px;
1856
1882
  color: #5ffb98; // TODO: add to theme
1857
1883
  overflow-x: auto;
1858
- `,ou=Ft.span`
1884
+ `,ru=Ft.span`
1859
1885
  flex-shrink: 0;
1860
1886
  font-size: 14px;
1861
1887
  color: #5ffb98; // TODO: add to theme
1862
- `,nu=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:n}=Sa({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]),$t.createElement(Zp,null,$t.createElement(eu,{$hideCopy:t},$t.createElement(tu,{ref:i},e),a&&$t.createElement(ou,null,"...")),!t&&$t.createElement(n,{value:e,size:va.XS}))},iu=Ft.div`
1888
+ `,su=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:n}=Sa({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]),$t.createElement(nu,null,$t.createElement(iu,{$hideCopy:t},$t.createElement(au,{ref:i},e),a&&$t.createElement(ru,null,"...")),!t&&$t.createElement(n,{value:e,size:va.XS}))},lu=Ft.div`
1863
1889
  display: flex;
1864
1890
  align-items: center;
1865
1891
  justify-content: space-between;
1866
- width: calc(100% - 24px);
1867
- `,au=Ft.div`
1892
+ width: calc(100%);
1893
+ `,cu=Ft.div`
1868
1894
  display: flex;
1869
1895
  align-items: center;
1870
1896
  gap: 16px;
1871
- `,ru=Ft.div`
1897
+ `,du=Ft.div`
1872
1898
  display: flex;
1873
1899
  align-items: center;
1874
1900
  justify-content: center;
1875
- width: 32px;
1876
- height: 32px;
1901
+ width: 36px;
1902
+ height: 36px;
1877
1903
  border-radius: 8px;
1878
1904
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1879
- `,su=Ft.div`
1905
+ `,pu=Ft.div`
1880
1906
  display: flex;
1881
1907
  align-items: center;
1882
1908
  gap: 12px;
1883
- `,lu=({icon:e,title:t,actions:o,onClose:n})=>$t.createElement(iu,null,$t.createElement(au,null,$t.createElement(ru,null,$t.createElement(e,{size:24})),$t.createElement(Zn,{size:Xn.S},t)),$t.createElement(su,null,o?.length?$t.createElement(Ea,{icon:ht,size:va.M,onClick:()=>alert("todo")}):null,$t.createElement(Ea,{icon:Ye,size:va.M,onClick:n}))),cu=Ft.div`
1909
+ `,uu=({icon:e,title:t,actions:o,onClose:n})=>$t.createElement(lu,null,$t.createElement(cu,null,$t.createElement(du,null,$t.createElement(e,{size:24})),$t.createElement(Zn,{size:Xn.S},t)),$t.createElement(pu,null,o?.length?$t.createElement(Ea,{icon:ht,size:va.M,onClick:()=>alert("todo")}):null,$t.createElement(Ea,{icon:Ye,size:va.M,onClick:n}))),hu=Ft.div`
1884
1910
  position: fixed;
1885
1911
  top: 0;
1886
1912
  bottom: 0;
@@ -1899,14 +1925,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1899
1925
  overflow: hidden;
1900
1926
 
1901
1927
  animation-name: ${({$position:e})=>Ri.animations.slide.in[e]};
1902
- `,du=Ft.div`
1928
+ `,mu=Ft.div`
1903
1929
  display: flex;
1904
1930
  flex-direction: column;
1905
1931
  gap: 12px;
1906
1932
 
1907
- height: calc(100% - ${56}px - 32px);
1933
+ height: calc(100% - ${56}px);
1908
1934
  overflow-y: auto;
1909
- `,pu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:n="40vw",header:i,children:a})=>(ga(e),e?Vt($t.createElement($t.Fragment,null,!t&&$t.createElement(Ja,{onClick:i.onClose}),$t.createElement(cu,{$position:o,$width:n},$t.createElement(lu,{...i}),$t.createElement(du,null,a))),document.body):null),uu=Ft.header`
1935
+ `,gu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:n="40vw",header:i,children:a})=>(ga(e),e?Vt($t.createElement($t.Fragment,null,!t&&$t.createElement(Ja,{onClick:i.onClose}),$t.createElement(hu,{$position:o,$width:n},$t.createElement(uu,{...i}),$t.createElement(mu,null,a))),document.body):null),xu=Ft.header`
1910
1936
  position: relative;
1911
1937
  width: calc(100% - 36px);
1912
1938
  padding: 12px 18px;
@@ -1914,12 +1940,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1914
1940
  display: flex;
1915
1941
  align-items: center;
1916
1942
  justify-content: space-between;
1917
- `,hu=Ft(qa)`
1943
+ `,$u=Ft(qa)`
1918
1944
  position: absolute;
1919
1945
  left: 50%;
1920
1946
  transform: translateX(-50%);
1921
1947
  gap: 16px;
1922
- `,mu=({left:e=[],center:t=[],right:o=[]})=>$t.createElement(uu,null,$t.createElement(qa,{$gap:16},e),$t.createElement(hu,null,t),$t.createElement(qa,{$gap:16},o)),gu=Ft.div`
1948
+ `,fu=({left:e=[],center:t=[],right:o=[]})=>$t.createElement(xu,null,$t.createElement(qa,{$gap:16},e),$t.createElement($u,null,t),$t.createElement(qa,{$gap:16},o)),bu=Ft.div`
1923
1949
  display: flex;
1924
1950
  align-items: center;
1925
1951
  gap: 2px;
@@ -1933,17 +1959,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1933
1959
  right: ${({$right:e})=>e||"12px"};
1934
1960
  top: 50%;
1935
1961
  transform: translateY(-50%);
1936
- `,xu=({isOpen:e,actions:t,positionRight:o})=>{const[n,i]=yt("");return e?$t.createElement(gu,{$right:o},t.map(e=>$t.createElement(yp,{key:e.id,...e,variant:$p.Secondary,size:fp.S,label:n===e.id?e.label:void 0,onMouseEnter:()=>i(e.id),onMouseLeave:()=>i("")}))):null},$u=Ft.span`
1962
+ `,yu=({isOpen:e,actions:t,positionRight:o})=>{const[n,i]=yt("");return e?$t.createElement(bu,{$right:o},t.map(e=>$t.createElement(yp,{key:e.id,...e,variant:$p.Secondary,size:fp.S,label:n===e.id?e.label:void 0,onMouseEnter:()=>i(e.id),onMouseLeave:()=>i("")}))):null},wu=Ft.span`
1937
1963
  font-family: ${({theme:e})=>e.font_family.primary};
1938
1964
  font-size: 14px;
1939
1965
  font-weight: 400;
1940
1966
  color: ${({theme:e})=>e.text.error};
1941
- `,fu=Ft.span`
1967
+ `,ku=Ft.span`
1942
1968
  font-family: ${({theme:e})=>e.font_family.primary};
1943
1969
  font-size: 14px;
1944
1970
  font-weight: 400;
1945
1971
  color: ${({theme:e})=>e.v2.colors.silver[200]};
1946
- `,bu=Ft.div`
1972
+ `,vu=Ft.div`
1947
1973
  padding: 12px;
1948
1974
  display: flex;
1949
1975
  align-self: stretch;
@@ -1960,7 +1986,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1960
1986
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1961
1987
  }
1962
1988
  `}
1963
- `,yu=Ft.input`
1989
+ `,Cu=Ft.input`
1964
1990
  flex: 1;
1965
1991
  font-family: ${({theme:e})=>e.font_family.primary};
1966
1992
  font-size: 14px;
@@ -1984,16 +2010,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
1984
2010
  overflow: hidden;
1985
2011
  text-overflow: ellipsis;
1986
2012
  white-space: nowrap;
1987
- `,wu=Ft.div`
2013
+ `,Eu=Ft.div`
1988
2014
  cursor: pointer;
1989
- `,ku=({label:e,required:t,tooltip:o,leftIcon:n,rightIcon:i,errorMessage:a,helpMessage:r,type:s=ko.Text,name:l,value:c,onChange:d,disabled:p,...u})=>{const h=Ri.useTheme(),m=s===ko.Password,[g,x]=yt(!1),$=c?h.v2.colors.white[500]:p?h.v2.colors.grey[400]:h.v2.colors.silver[200];return $t.createElement(Ga,{$gap:6},$t.createElement(qa,{$justifyContent:"space-between"},e&&$t.createElement(fu,null,e),$t.createElement(qa,{$gap:10},o&&$t.createElement(br,{text:o,withIcon:!0}),t&&$t.createElement($u,null,"*"))),$t.createElement(bu,{$disabled:p,$error:!!a},n?$t.createElement(n,{size:18,fill:$}):null,$t.createElement(yu,{"data-id":l,type:g||s===ko.Number?ko.Text:s,name:l,value:c,onChange:e=>{e.stopPropagation(),s===ko.Number&&(e.target.value=Un(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:p,...u}),m?$t.createElement(wu,{onClick:()=>x(e=>!e)},g?$t.createElement(nt,{size:18,strokeWidth:2,fill:$}):$t.createElement(it,{size:18,strokeWidth:2,fill:$})):i?$t.createElement(i,{size:18,fill:$}):null),a?$t.createElement(qa,{$gap:4},$t.createElement(je,{size:12,fill:h.v2.colors.red[500]}),$t.createElement(Zn,{size:Xn.XXS,weight:400,color:h.v2.colors.red[500]},a)):r?$t.createElement(qa,{$gap:4},$t.createElement(je,{size:12,fill:h.v2.colors.silver[200]}),$t.createElement(Zn,{size:Xn.XXS,weight:400,color:h.v2.colors.silver[200]},r)):null)},vu=Lt`
2015
+ `,Su=({label:e,required:t,tooltip:o,leftIcon:n,rightIcon:i,errorMessage:a,helpMessage:r,type:s=ko.Text,name:l,value:c,onChange:d,disabled:p,...u})=>{const h=Ri.useTheme(),m=s===ko.Password,[g,x]=yt(!1),$=c?h.v2.colors.white[500]:p?h.v2.colors.grey[400]:h.v2.colors.silver[200];return $t.createElement(Ga,{$gap:6},$t.createElement(qa,{$justifyContent:"space-between"},e&&$t.createElement(ku,null,e),$t.createElement(qa,{$gap:10},o&&$t.createElement(br,{text:o,withIcon:!0}),t&&$t.createElement(wu,null,"*"))),$t.createElement(vu,{$disabled:p,$error:!!a},n?$t.createElement(n,{size:18,fill:$}):null,$t.createElement(Cu,{"data-id":l,type:g||s===ko.Number?ko.Text:s,name:l,value:c,onChange:e=>{e.stopPropagation(),s===ko.Number&&(e.target.value=Un(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:p,...u}),m?$t.createElement(Eu,{onClick:()=>x(e=>!e)},g?$t.createElement(nt,{size:18,strokeWidth:2,fill:$}):$t.createElement(it,{size:18,strokeWidth:2,fill:$})):i?$t.createElement(i,{size:18,fill:$}):null),a?$t.createElement(qa,{$gap:4},$t.createElement(je,{size:12,fill:h.v2.colors.red[500]}),$t.createElement(Zn,{size:Xn.XXS,weight:400,color:h.v2.colors.red[500]},a)):r?$t.createElement(qa,{$gap:4},$t.createElement(je,{size:12,fill:h.v2.colors.silver[200]}),$t.createElement(Zn,{size:Xn.XXS,weight:400,color:h.v2.colors.silver[200]},r)):null)},Au=Lt`
1990
2016
  0% {
1991
2017
  background-position: 0% 50%;
1992
2018
  }
1993
2019
  100% {
1994
2020
  background-position: 100% 50%;
1995
2021
  }
1996
- `,Cu=Ft(Zn)`
2022
+ `,Du=Ft(Zn)`
1997
2023
  display: flex;
1998
2024
  align-items: center;
1999
2025
  gap: 4px;
@@ -2002,8 +2028,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2002
2028
  background-size: 250% 100%; /* Expand background to allow movement */
2003
2029
  background-clip: text;
2004
2030
  color: transparent;
2005
- animation: ${vu} 1s reverse linear infinite;
2006
- `,Eu=({label:e,icon:t,withGradient:o,textColor:n,stripColor:i,typographyProps:a})=>{const r=Ri.useTheme(),s=n||r.v2.colors.white[500],l=i||r.v2.colors.black[500];return $t.createElement($t.Fragment,null,e?$t.createElement(qa,{$gap:4},t&&$t.createElement(t,null),o?$t.createElement(Cu,{$textColor:s,$stripColor:l,...a},e):$t.createElement(Zn,{color:s,...a},e)):null)},Su=Ft.div`
2031
+ animation: ${Au} 1s reverse linear infinite;
2032
+ `,Tu=({label:e,icon:t,withGradient:o,textColor:n,stripColor:i,typographyProps:a})=>{const r=Ri.useTheme(),s=n||r.v2.colors.white[500],l=i||r.v2.colors.black[500];return $t.createElement($t.Fragment,null,e?$t.createElement(qa,{$gap:4},t&&$t.createElement(t,null),o?$t.createElement(Du,{$textColor:s,$stripColor:l,...a},e):$t.createElement(Zn,{color:s,...a},e)):null)},Iu=Ft.div`
2007
2033
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2008
2034
  top: 50%;
2009
2035
  left: 50%;
@@ -2016,13 +2042,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2016
2042
  overflow: hidden;
2017
2043
 
2018
2044
  animation-name: ${Ri.animations.slide.in.center};
2019
- `,Au=Ft.div`
2045
+ `,Nu=Ft.div`
2020
2046
  position: relative;
2021
- `,Du=Ft.div`
2047
+ `,zu=Ft.div`
2022
2048
  position: absolute;
2023
2049
  top: 16px;
2024
2050
  left: 16px;
2025
- `,Tu=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:n,onClose:i,children:a})=>{if(ga(e),!e)return null;const r=$t.createElement($t.Fragment,null,!t&&$t.createElement(Ja,{$relativeToParent:o,onClick:i}),$t.createElement(Su,{$relativeToParent:o},$t.createElement(Au,null,n&&$t.createElement(Du,null,$t.createElement(Ea,{icon:e=>$t.createElement(dt,{rotate:-90,...e}),size:va.L,onClick:n})),a)));return o?r:Vt(r,document.body)},Iu=Ft.aside`
2051
+ `,Ou=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:n,onClose:i,children:a})=>{if(ga(e),!e)return null;const r=$t.createElement($t.Fragment,null,!t&&$t.createElement(Ja,{$relativeToParent:o,onClick:i}),$t.createElement(Iu,{$relativeToParent:o},$t.createElement(Nu,null,n&&$t.createElement(zu,null,$t.createElement(Ea,{icon:e=>$t.createElement(dt,{rotate:-90,...e}),size:va.L,onClick:n})),a)));return o?r:Vt(r,document.body)},Fu=Ft.aside`
2026
2052
  display: flex;
2027
2053
  flex-direction: column;
2028
2054
  gap: 8px;
@@ -2031,93 +2057,69 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2031
2057
  padding: 16px 12px;
2032
2058
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
2033
2059
  overflow-y: auto;
2034
- `,Nu=({height:e,icons:t})=>$t.createElement(Iu,{$height:e},t.map(({id:e,selected:t,icon:o,onClick:n})=>$t.createElement(yp,{key:e,label:"",leftIcon:o,iconSize:24,onClick:n,variant:t?$p.Primary:$p.Text}))),zu=Ft.div`
2060
+ `,_u=({height:e,icons:t})=>$t.createElement(Fu,{$height:e},t.map(({id:e,selected:t,icon:o,onClick:n})=>$t.createElement(yp,{key:e,label:"",leftIcon:o,iconSize:24,onClick:n,variant:t?$p.Primary:$p.Text}))),Ru=Ft.div`
2035
2061
  display: flex;
2036
2062
  align-items: center;
2037
2063
  gap: 10px;
2038
2064
  ${({$fullWidth:e})=>e&&_t`
2039
- width: calc(100% - 8px);
2065
+ width: calc(100% - 16px);
2040
2066
  `}
2041
- padding: 4px;
2067
+ padding: 4px 12px 4px 4px;
2042
2068
  border-radius: 8px;
2043
2069
  background-color: ${({theme:e,$status:t})=>kn(e,t,[vo.Info].includes(t)?"1000":"900")};
2044
- `,Ou=Ft.div`
2045
- width: 36px;
2046
- height: 36px;
2070
+ `,Bu=Ft.div`
2071
+ width: 32px;
2072
+ height: 32px;
2047
2073
  display: flex;
2048
2074
  align-items: center;
2049
2075
  justify-content: center;
2050
2076
  border-radius: 6px;
2051
2077
  background-color: ${({theme:e,$status:t})=>kn(e,t,[vo.Info].includes(t)?"900":"800")};
2052
- `,Fu=Ft.div`
2078
+ `,Lu=Ft.div`
2053
2079
  margin-left: auto;
2054
2080
  margin-right: 8px;
2055
2081
  cursor: pointer;
2056
2082
  &:hover {
2057
2083
  transform: scale(1.2);
2058
2084
  }
2059
- `,_u=({status:e,message:t,action:o,fullWidth:n})=>{const i=Ri.useTheme(),a=Cn(e,i),r=kn(i,e,e===vo.Default?"300":e===vo.Info?"400":"500");return $t.createElement(zu,{$status:e,$fullWidth:n},$t.createElement("div",null,$t.createElement(Ou,{$status:e},$t.createElement(a,{size:24}))),$t.createElement(Zn,{color:r,size:Xn.XXXS,weight:400},t),o&&$t.createElement(Fu,{onClick:o.onClick},$t.createElement(Zn,{color:r,size:Xn.XXS,weight:500,underline:!0},o.label)))};var Ru;!function(e){e.S="small",e.L="large"}(Ru||(Ru={}));const Bu=Ft.div`
2085
+ `,Mu=({status:e,message:t,action:o,fullWidth:n})=>{const i=Ri.useTheme(),a=Cn(e,i),r=kn(i,e,e===vo.Default?"300":e===vo.Info?"400":"500");return $t.createElement(Ru,{$status:e,$fullWidth:n},$t.createElement("div",null,$t.createElement(Bu,{$status:e},$t.createElement(a,{size:24}))),$t.createElement(Zn,{color:r,size:Xn.XXXS,weight:400},t),o&&$t.createElement(Lu,{onClick:o.onClick},$t.createElement(Zn,{color:r,size:Xn.XXS,weight:500,underline:!0},o.label)))};var Pu;!function(e){e.S="small",e.L="large"}(Pu||(Pu={}));const ju=Ft.div`
2060
2086
  width: fit-content;
2061
2087
  display: flex;
2062
2088
  align-items: center;
2063
2089
  gap: 8px;
2064
2090
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2065
- `,Lu=Ft.div`
2066
- width: ${({$size:e})=>e===Ru.S?"16px":"20px"};
2067
- height: ${({$size:e})=>e===Ru.S?"16px":"20px"};
2091
+ `,Uu=Ft.div`
2092
+ width: ${({$size:e})=>e===Pu.S?"16px":"20px"};
2093
+ height: ${({$size:e})=>e===Pu.S?"16px":"20px"};
2068
2094
  display: flex;
2069
2095
  align-items: center;
2070
2096
  justify-content: center;
2071
2097
  border-radius: 100%;
2072
2098
  border: 1px solid ${({$borderColor:e})=>e};
2073
2099
  background-color: ${({$backgroundColor:e})=>e};
2074
- `,Pu=({label:e,value:t,onChange:o,disabled:n,size:i=Ru.L})=>{const a=Ri.useTheme(),[r,s]=yt(!1),l=t,c=i===Ru.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 $t.createElement(Bu,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||o(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},$t.createElement(Lu,{$size:i,$borderColor:p,$backgroundColor:u},t?$t.createElement(mt,{size:c,fill:d}):null),e&&$t.createElement(Zn,{size:i===Ru.S?Xn.XXS:Xn.XS},e))},Mu=Ft.div`
2100
+ `,Wu=({label:e,value:t,onChange:o,disabled:n,size:i=Pu.L})=>{const a=Ri.useTheme(),[r,s]=yt(!1),l=t,c=i===Pu.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 $t.createElement(ju,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||o(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},$t.createElement(Uu,{$size:i,$borderColor:p,$backgroundColor:u},t?$t.createElement(mt,{size:c,fill:d}):null),e&&$t.createElement(Zn,{size:i===Pu.S?Xn.XXS:Xn.XS},e))},Vu=Ft.div`
2075
2101
  display: flex;
2076
2102
  flex-direction: ${({$flexDirection:e})=>e};
2077
2103
  gap: ${({$gap:e})=>e}px;
2078
- `,ju=({label:e,direction:t,disabled:o,size:n,options:i,values:a,setValues:r})=>$t.createElement(Mu,{$flexDirection:t===uo.Horizontal?"row":"column",$gap:t===uo.Horizontal?16:8},e&&$t.createElement(Zn,null,e),i.map(t=>$t.createElement(Pu,{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}))),Uu=Ft.div`
2079
- position: relative;
2080
- z-index: 0;
2081
- display: flex;
2082
- align-items: center;
2083
- padding: 3px;
2084
- border-radius: 8px;
2085
- border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
2086
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2087
- `,Wu=Ft.button`
2088
- flex: 1;
2089
- display: flex;
2090
- align-items: center;
2091
- justify-content: center;
2092
- gap: 8px;
2093
- padding: 8px 16px;
2094
- border-radius: 6px;
2095
- border: none;
2096
- background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:"transparent"};
2097
- box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
2098
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2099
- &:hover {
2100
- background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:e.v2.colors.silver[800]};
2101
- }
2102
- `,Vu=({options:e=[],selected:t,setSelected:o,disabled:n})=>{const i=Rt(),a=n?i.v2.colors.grey[400]:i.v2.colors.white[500];return $t.createElement(Uu,{$count:e.length},e.map(({value:e,label:i,icon:r},s)=>{const l=t===e;return $t.createElement(Wu,{key:`segment-${i||s}-${e}`,onClick:()=>!n&&o(e),$isSelected:l,$disabled:n},r&&$t.createElement(r,{fill:a}),i&&$t.createElement(Zn,{size:Xn.XS,weight:500,color:a,nowrap:!0},i))}))};var Hu;!function(e){e.Data="data",e.Pretty="pretty"}(Hu||(Hu={}));const qu=Ft.div`
2104
+ `,Hu=({label:e,direction:t,disabled:o,size:n,options:i,values:a,setValues:r})=>$t.createElement(Vu,{$flexDirection:t===uo.Horizontal?"row":"column",$gap:t===uo.Horizontal?16:8},e&&$t.createElement(Zn,null,e),i.map(t=>$t.createElement(Wu,{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})));var qu;!function(e){e.Data="data",e.Pretty="pretty"}(qu||(qu={}));const Gu=Ft.div`
2103
2105
  // max-height: ${({$maxHeight:e})=>e};
2104
2106
  height: ${({$maxHeight:e})=>e};
2105
2107
  width: 100%;
2106
2108
  overflow: auto;
2107
- `,Gu=Ft.table`
2109
+ `,Ku=Ft.table`
2108
2110
  width: 100%;
2109
2111
 
2110
- ${({$variant:e})=>{switch(e){case Hu.Data:return _t`
2112
+ ${({$variant:e})=>{switch(e){case qu.Data:return _t`
2111
2113
  border-collapse: collapse;
2112
- `;case Hu.Pretty:return _t`
2114
+ `;case qu.Pretty:return _t`
2113
2115
  border-collapse: separate;
2114
2116
  border-spacing: 0 8px;
2115
2117
  `;default:return""}}}
2116
- `,Ku=Ft.thead`
2118
+ `,Yu=Ft.thead`
2117
2119
  position: sticky;
2118
2120
  top: 0;
2119
2121
  z-index: 1;
2120
- `,Yu=Ft.th`
2122
+ `,Ju=Ft.th`
2121
2123
  position: relative;
2122
2124
  min-width: ${({$minWidth:e})=>e||"auto"};
2123
2125
  padding: 18px 24px;
@@ -2126,12 +2128,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2126
2128
 
2127
2129
  ${({$variant:e,$backgroundColor:t})=>{if(t)return _t`
2128
2130
  background-color: ${t};
2129
- `;switch(e){case Hu.Data:return _t`
2131
+ `;switch(e){case qu.Data:return _t`
2130
2132
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2131
- `;case Hu.Pretty:return _t`
2133
+ `;case qu.Pretty:return _t`
2132
2134
  background-color: transparent;
2133
2135
  `;default:return""}}}
2134
- `,Ju=Ft.div`
2136
+ `,Xu=Ft.div`
2135
2137
  position: absolute;
2136
2138
  top: 50%;
2137
2139
  right: 0;
@@ -2139,30 +2141,30 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2139
2141
  width: 1px;
2140
2142
  height: 18px;
2141
2143
  background: ${({theme:e})=>e.v2.colors.silver[500]};
2142
- `,Xu=Ft.tbody``,Qu=Ft.td`
2144
+ `,Qu=Ft.tbody``,Zu=Ft.td`
2143
2145
  position: relative;
2144
2146
  padding: 18px 24px;
2145
2147
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
2146
2148
 
2147
- ${({$variant:e,$selected:t,$hovered:o,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Hu.Data:return _t`
2149
+ ${({$variant:e,$selected:t,$hovered:o,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case qu.Data:return _t`
2148
2150
  border: ${({theme:e})=>n?"none":`1px solid ${e.v2.colors.silver[500]}`};
2149
2151
  border-left: none;
2150
2152
  border-right: none;
2151
2153
  border-radius: ${n?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
2152
2154
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2153
- `;case Hu.Pretty:return _t`
2155
+ `;case qu.Pretty:return _t`
2154
2156
  border: none;
2155
2157
  border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
2156
2158
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2157
2159
  `;default:return""}}}
2158
- `,Zu=Ft.div`
2160
+ `,eh=Ft.div`
2159
2161
  width: 100%;
2160
2162
  display: flex;
2161
2163
  align-items: center;
2162
2164
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2163
2165
  gap: 4px;
2164
2166
  text-align: ${({$textAlign:e})=>e||"left"};
2165
- `,eh=({variant:e,columns:t,rows:o,getRowActions:n,rowActionsPushRightPosition:i,withCheckboxes:a})=>{const[r,s]=yt(null);return $t.createElement($t.Fragment,null,o.map((l,c)=>{const{onClick:d,isSelected:p=!1,onSelect:u,onDeselect:h,cells:m}=l,g=r===c,x=!!d,$=n(l),f=(e,t,n)=>({$isLastRow:c===o.length-1,$isFirstCell:t,$isLastCell:n,$hovered:g,$selected:p,$withClick:e,onClick:()=>e&&d?.(),onMouseEnter:()=>e&&s(c),onMouseLeave:()=>e&&s(null)});return $t.createElement("tr",{key:`row-${c}`},a&&$t.createElement(Qu,{key:"checkbox-column",$variant:e,...f(!1,!0,!1)},$t.createElement(_p,{value:p,onChange:()=>p?h?.():u?.()})),t.map(({key:o,textAlign:n},r)=>{const s=m.find(e=>e.key===o),l=0===r&&!a,d=r===t.length-1;return $t.createElement(Qu,{key:`row-${c}-cell-${r}`,$variant:e,...f(x,l,d)},s?.component?$t.createElement(qa,{$justifyContent:"right"===n?"flex-end":"flex-start"},$t.createElement(s.component,null)):$t.createElement(Zn,{size:Xn.XS,align:n},s?.rawValue||"-"),$.length?$t.createElement(xu,{isOpen:g&&d,actions:$,positionRight:i}):null)}))}))},th=({columnKey:e,sortDirection:t,sortByKey:o,onSort:n})=>{const i=Rt(),a=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],r=t===ho.Ascending?0:180;return $t.createElement(Ea,{icon:e=>$t.createElement(dt,{fill:a,rotate:r,...e}),onClick:()=>n(e)})},oh=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:n})=>{const i=Rt(),a=t[e]?.length?i.v2.colors.white[500]:i.v2.colors.grey[400],r=bt(()=>Array.from(new Set(n.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[n,e]);return $t.createElement(Up,{items:r,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>$t.createElement(gt,{fill:a,...e})}})},nh=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:n,sortDirection:i,sortByKey:a,onSort:r,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>$t.createElement("tr",null,c&&$t.createElement(Yu,{key:"checkbox-column",$variant:e,$backgroundColor:t,$minWidth:24,$isFirst:!0,$isLast:!1},$t.createElement(_p,{partiallyChecked:d&&!p,value:p||!1,onChange:u})),o.map(({key:d,label:p,minWidth:u,textAlign:h},m)=>{const g=0===m&&!c,x=m===o.length-1;return $t.createElement(Yu,{key:`column-${d}`,$variant:e,$backgroundColor:t,$minWidth:u,$isFirst:g,$isLast:x},$t.createElement(Zu,{$textAlign:h},$t.createElement(Zn,{size:Xn.XS,align:h},p),$t.createElement(th,{columnKey:d,sortDirection:i,sortByKey:a,onSort:r}),$t.createElement(oh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})),!x&&e===Hu.Data&&$t.createElement(Ju,null))})),ih=({variant:e,maxHeight:t="unset",headerBackgroundColor:o,isLoading:n,columns:i,rows:a,getRowActions:r,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=yt(ho.Ascending),[p,u]=yt(""),[h,m]=yt({}),g=Et(e=>{u(e),d(e=>e===ho.Ascending?ho.Descending:ho.Ascending)},[]),x=Et((e,t)=>{m(o=>({...o,[e]:t}))},[]),$=bt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(p?[...a].sort((t,o)=>{const n=e(t,p),i=e(o,p);return(c===ho.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)}):a).filter(t=>{for(const[o,n]of Object.entries(h))if(n.length&&!n.includes(e(t,o)))return!1;return!0})},[a,p,c,h]);return $t.createElement(qu,{$maxHeight:t},$t.createElement(Gu,{$variant:e},$t.createElement(Ku,null,$t.createElement(nh,{variant:e,backgroundColor:o,columns:i,rowsUnfiltered:a,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:x,withCheckboxes:l,partiallySelected:a.length>0&&a.some(e=>e.isSelected),allSelected:a.length>0&&a.every(e=>e.isSelected),onSelectAll:e=>{e?a.forEach(e=>e.onSelect?.()):a.forEach(e=>e.onDeselect?.())}})),$t.createElement(Xu,null,$t.createElement(eh,{variant:e,columns:i,rows:$,getRowActions:r||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}))),!$.length&&$t.createElement(Ka,{style:{marginTop:"0.5rem"}},n?$t.createElement(as,{scale:1.2}):$t.createElement(Qs,null)))},ah=Ft.div`
2167
+ `,th=({variant:e,columns:t,rows:o,getRowActions:n,rowActionsPushRightPosition:i,withCheckboxes:a})=>{const[r,s]=yt(null);return $t.createElement($t.Fragment,null,o.map((l,c)=>{const{onClick:d,isSelected:p=!1,onSelect:u,onDeselect:h,cells:m}=l,g=r===c,x=n(l),$=(e,t)=>({$isLastRow:c===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:p,$withClick:!!d,onClick:()=>d?.(),$hovered:!!d&&g,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return $t.createElement("tr",{key:`row-${c}`},a&&$t.createElement(Zu,{key:"checkbox-column",$variant:e,...$(!0,!1)},$t.createElement(Mp,{value:p,onChange:()=>p?h?.():u?.()})),t.map(({key:o,textAlign:n},r)=>{const s=m.find(e=>e.key===o),l=0===r&&!a,d=r===t.length-1;return $t.createElement(Zu,{key:`row-${c}-cell-${r}`,$variant:e,...$(l,d)},s?.component?$t.createElement(qa,{$justifyContent:"right"===n?"flex-end":"flex-start"},$t.createElement(s.component,null)):$t.createElement(Zn,{size:Xn.XS,align:n},s?.rawValue||"-"),x.length?$t.createElement(yu,{isOpen:g&&d,actions:x,positionRight:i}):null)}))}))},oh=({columnKey:e,sortDirection:t,sortByKey:o,onSort:n})=>{const i=Rt(),a=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],r=t===ho.Ascending?0:180;return $t.createElement(Ea,{icon:e=>$t.createElement(dt,{fill:a,rotate:r,...e}),onClick:()=>n(e)})},nh=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:n})=>{const i=Rt(),a=t[e]?.length?i.v2.colors.white[500]:i.v2.colors.grey[400],r=bt(()=>Array.from(new Set(n.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[n,e]);return $t.createElement(qp,{items:r,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>$t.createElement(gt,{fill:a,...e})}})},ih=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:n,sortDirection:i,sortByKey:a,onSort:r,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>$t.createElement("tr",null,c&&$t.createElement(Ju,{key:"checkbox-column",$variant:e,$backgroundColor:t,$minWidth:24,$isFirst:!0,$isLast:!1},$t.createElement(Mp,{partiallyChecked:d&&!p,value:p||!1,onChange:u})),o.map(({key:d,label:p,minWidth:u,textAlign:h},m)=>{const g=0===m&&!c,x=m===o.length-1;return $t.createElement(Ju,{key:`column-${d}`,$variant:e,$backgroundColor:t,$minWidth:u,$isFirst:g,$isLast:x},$t.createElement(eh,{$textAlign:h},$t.createElement(Zn,{size:Xn.XS,align:h},p),$t.createElement(oh,{columnKey:d,sortDirection:i,sortByKey:a,onSort:r}),$t.createElement(nh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})),!x&&e===qu.Data&&$t.createElement(Xu,null))})),ah=({variant:e,maxHeight:t="unset",headerBackgroundColor:o,isLoading:n,columns:i,rows:a,getRowActions:r,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=yt(ho.Ascending),[p,u]=yt(""),[h,m]=yt({}),g=Et(e=>{u(e),d(e=>e===ho.Ascending?ho.Descending:ho.Ascending)},[]),x=Et((e,t)=>{m(o=>({...o,[e]:t}))},[]),$=bt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(p?[...a].sort((t,o)=>{const n=e(t,p),i=e(o,p);return(c===ho.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)}):a).filter(t=>{for(const[o,n]of Object.entries(h))if(n.length&&!n.includes(e(t,o)))return!1;return!0})},[a,p,c,h]);return $t.createElement(Gu,{$maxHeight:t},$t.createElement(Ku,{$variant:e},$t.createElement(Yu,null,$t.createElement(ih,{variant:e,backgroundColor:o,columns:i,rowsUnfiltered:a,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:x,withCheckboxes:l,partiallySelected:a.length>0&&a.some(e=>e.isSelected),allSelected:a.length>0&&a.every(e=>e.isSelected),onSelectAll:e=>{e?a.forEach(e=>e.onSelect?.()):a.forEach(e=>e.onDeselect?.())}})),$t.createElement(Qu,null,$t.createElement(th,{variant:e,columns:i,rows:$,getRowActions:r||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}))),!$.length&&$t.createElement(Ka,{style:{marginTop:"0.5rem"}},n?$t.createElement(as,{scale:1.2}):$t.createElement(Qs,null)))},rh=Ft.div`
2166
2168
  display: flex;
2167
2169
  align-items: center;
2168
2170
  justify-content: center;
@@ -2185,11 +2187,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2185
2187
  `:_t`
2186
2188
  background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2187
2189
  `}
2188
- `,rh=({label:e,leftIcon:t,rightIcon:o,onClick:n,disabled:i})=>{const a=Ri.useTheme(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500];return $t.createElement(ah,{$disabled:i,$withClick:!!n,onClick:()=>!i&&n?.()},t&&$t.createElement(t,{fill:r,size:16}),$t.createElement(Zn,{color:r,size:Xn.XS,nowrap:!0},e),o&&$t.createElement(o,{fill:r,size:16}))};var sh,lh,ch;!function(e){e.Default="default",e.SuccessError="successError"}(sh||(sh={})),function(e){e.S="small",e.L="large"}(lh||(lh={})),function(e){e.Left="left",e.Right="right"}(ch||(ch={}));const dh=Ft.div`
2190
+ `,sh=({label:e,leftIcon:t,rightIcon:o,onClick:n,disabled:i})=>{const a=Ri.useTheme(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500];return $t.createElement(rh,{$disabled:i,$withClick:!!n,onClick:()=>!i&&n?.()},t&&$t.createElement(t,{fill:r,size:16}),$t.createElement(Zn,{color:r,size:Xn.XS,nowrap:!0},e),o&&$t.createElement(o,{fill:r,size:16}))};var lh,ch,dh;!function(e){e.Default="default",e.SuccessError="successError"}(lh||(lh={})),function(e){e.S="small",e.L="large"}(ch||(ch={})),function(e){e.Left="left",e.Right="right"}(dh||(dh={}));const ph=Ft.div`
2189
2191
  display: flex;
2190
2192
  align-items: center;
2191
2193
  gap: ${({$gap:e})=>e}px;
2192
- `,ph=Ft.div`
2194
+ `,uh=Ft.div`
2193
2195
  position: relative;
2194
2196
  display: flex;
2195
2197
  align-items: center;
@@ -2199,10 +2201,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2199
2201
  height: ${({$size:e})=>e}px;
2200
2202
  padding: ${4}px;
2201
2203
  border-radius: ${({$size:e})=>2*e}px;
2202
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:i,theme:a})=>{if(e)return a.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(n){case sh.SuccessError:return i?a.v2.colors.green[500]:a.v2.colors.red[500];case sh.Default:default:return i?a.v2.colors.purple[500]:a.v2.colors.grey[400]}}};
2204
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:i,theme:a})=>{if(e)return a.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(n){case lh.SuccessError:return i?a.v2.colors.green[500]:a.v2.colors.red[500];case lh.Default:default:return i?a.v2.colors.purple[500]:a.v2.colors.grey[400]}}};
2203
2205
 
2204
2206
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2205
- `,uh=Ft.div`
2207
+ `,hh=Ft.div`
2206
2208
  position: absolute;
2207
2209
  top: 50%;
2208
2210
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -2212,22 +2214,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,Add
2212
2214
  border-radius: 100%;
2213
2215
  background-color: ${({$color:e})=>e};
2214
2216
  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)"};
2215
- `,hh=({variant:e=sh.Default,size:t=lh.L,label:o,labelAlign:n=ch.Left,tooltip:i,value:a,onChange:r,disabled:s,withIcon:l,onIcon:c=Ge,offIcon:d=Ye,onBgColor:p,offBgColor:u})=>{const h=Rt(),m=s?h.v2.colors.grey[400]:h.v2.colors.white[500],g=t===lh.S?14:18,x=t===lh.S?Xn.XS:Xn.S,$=t===lh.S?8:12;return $t.createElement(dh,{$gap:$},o&&n===ch.Left&&$t.createElement(Zn,{size:x,nowrap:!0},o),$t.createElement(ph,{$onBgColor:p,$offBgColor:u,$variant:e,$size:g,$value:a,$disabled:s,onClick:()=>!s&&r(!a)},$t.createElement(uh,{$color:m,$size:g,$value:a,$disabled:s}),l&&$t.createElement($t.Fragment,null,$t.createElement(c,{size:g,fill:m}),$t.createElement(d,{size:g,fill:m}))),o&&n===ch.Right&&$t.createElement(Zn,{size:x,nowrap:!0},o),i&&$t.createElement(br,{text:i,withIcon:!0}))},mh=Ft.div`
2217
+ `,mh=({variant:e=lh.Default,size:t=ch.L,label:o,labelAlign:n=dh.Left,tooltip:i,value:a,onChange:r,disabled:s,withIcon:l,onIcon:c=Ge,offIcon:d=Ye,onBgColor:p,offBgColor:u})=>{const h=Rt(),m=s?h.v2.colors.grey[400]:h.v2.colors.white[500],g=t===ch.S?14:18,x=t===ch.S?Xn.XS:Xn.S,$=t===ch.S?8:12;return $t.createElement(ph,{$gap:$},o&&n===dh.Left&&$t.createElement(Zn,{size:x,nowrap:!0},o),$t.createElement(uh,{$onBgColor:p,$offBgColor:u,$variant:e,$size:g,$value:a,$disabled:s,onClick:()=>!s&&r(!a)},$t.createElement(hh,{$color:m,$size:g,$value:a,$disabled:s}),l&&$t.createElement($t.Fragment,null,$t.createElement(c,{size:g,fill:m}),$t.createElement(d,{size:g,fill:m}))),o&&n===dh.Right&&$t.createElement(Zn,{size:x,nowrap:!0},o),i&&$t.createElement(br,{text:i,withIcon:!0}))},gh=Ft.div`
2216
2218
  display: flex;
2217
2219
  flex-direction: ${({$direction:e})=>e===uo.Horizontal?"row":"column"};
2218
2220
  gap: ${({$direction:e})=>e===uo.Horizontal?16:8}px;
2219
- `,gh=({direction:e=uo.Vertical,title:t,size:o,disabled:n,options:i,values:a,setValues:r})=>{const s=o===lh.S?Xn.XS:Xn.S;return $t.createElement(mh,{$direction:e},t&&$t.createElement(Zn,{size:s},t),i.map(e=>$t.createElement(hh,{key:`${t}-toggle-${e.id}`,...e,labelAlign:ch.Right,value:a[e.id],onChange:t=>{return o=e.id,n=t,void r(e=>{const t={...e};return o?t[o]=n:i.forEach(e=>t[e.id]=n),t});var o,n},disabled:n,size:o})))},xh=Ft.div`
2221
+ `,xh=({direction:e=uo.Vertical,title:t,size:o,disabled:n,options:i,values:a,setValues:r})=>{const s=o===ch.S?Xn.XS:Xn.S;return $t.createElement(gh,{$direction:e},t&&$t.createElement(Zn,{size:s},t),i.map(e=>$t.createElement(mh,{key:`${t}-toggle-${e.id}`,...e,labelAlign:dh.Right,value:a[e.id],onChange:t=>{return o=e.id,n=t,void r(e=>{const t={...e};return o?t[o]=n:i.forEach(e=>t[e.id]=n),t});var o,n},disabled:n,size:o})))},$h=Ft.div`
2220
2222
  min-width: 530px;
2221
- `,$h=Ft.div`
2223
+ `,fh=Ft.div`
2222
2224
  display: flex;
2223
2225
  flex-direction: column;
2224
2226
  align-items: center;
2225
2227
  gap: 16px;
2226
2228
  padding: 24px;
2227
- `,fh=Ft.div`
2229
+ `,bh=Ft.div`
2228
2230
  display: flex;
2229
2231
  justify-content: center;
2230
2232
  gap: 16px;
2231
2233
  padding: 16px 24px;
2232
2234
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2233
- `,bh=({visual:e,title:t,description:o,onDeny:n,denyLabel:i="Deny",onApprove:a,approveLabel:r="Approve",...s})=>{const l=Rt();return $t.createElement(Tu,{isOpen:!0,onClose:n,...s},$t.createElement(xh,null,$t.createElement($h,null,e&&$t.createElement(e,null),$t.createElement(Zn,{size:Xn.M,weight:500,color:l.v2.colors.white[500]},t),$t.createElement(Ga,{$alignItems:"center",$gap:4},o.split("\n").map(e=>$t.createElement(Zn,{key:e,size:Xn.XS,weight:400,color:l.v2.colors.silver[200]},e)))),(n||a)&&$t.createElement(fh,null,n&&$t.createElement(yp,{variant:$p.Secondary,label:i,onClick:n}),a&&$t.createElement(yp,{variant:$p.Primary,label:r,onClick:a}))))};export{rd as $,Jo as A,ti as B,_p as C,pu as D,oc as E,Ga as F,io as G,ml as H,Ea as I,Wr as J,ro as K,Eu as L,Vi as M,_u as N,So as O,Va as P,ao as Q,wl as R,Np as S,Zn as T,Ha as U,ko as V,bh as W,Nn as X,dd as Y,hp as Z,$d as _,vo as a,ln as a$,wo as a0,ji as a1,Md as a2,Rd as a3,kc as a4,vd as a5,dp as a6,wi as a7,bi as a8,hi as a9,Eo as aA,Cn as aB,xi as aC,eo as aD,Ds as aE,un as aF,Os as aG,Qa as aH,Za as aI,Qc as aJ,dn as aK,er as aL,tc as aM,Qs as aN,xp as aO,sa as aP,Gn as aQ,yd as aR,pa as aS,ki as aT,$i as aU,Ps as aV,jn as aW,en as aX,Id as aY,mn as aZ,cn as a_,Oa as aa,Xo as ab,Wc as ac,yc as ad,Mr as ae,bo as af,mi as ag,ma as ah,pn as ai,ni as aj,nn as ak,ms as al,mc as am,fo as an,fi as ao,cr as ap,Sd as aq,Xa as ar,Nr as as,Yo as at,ia as au,pr as av,an as aw,fs as ax,Pn as ay,br as az,qa as b,Fn as b$,Yd as b0,wa as b1,ui as b2,ka as b3,qo as b4,Qo as b5,to as b6,oo as b7,xa as b8,_a as b9,Zt as bA,np as bB,sc as bC,xn as bD,Fo as bE,Vo as bF,_o as bG,Ho as bH,Oo as bI,Ro as bJ,zo as bK,rp as bL,sn as bM,za as bN,ai as bO,An as bP,$a as bQ,Do as bR,dl as bS,ks as bT,td as bU,En as bV,In as bW,ws as bX,Hs as bY,Gs as bZ,xu as b_,xr as ba,Wd as bb,Ya as bc,Fa as bd,Ln as be,Sl as bf,si as bg,ri as bh,Ko as bi,Ra as bj,Aa as bk,Ei as bl,Go as bm,kr as bn,ss as bo,bs as bp,vs as bq,yo as br,Mn as bs,Qt as bt,Dn as bu,jo as bv,Ta as bw,Tn as bx,Yt as by,ii as bz,Xn as c,el as c$,Wn as c0,La as c1,Ul as c2,Uo as c3,$o as c4,Ua as c5,Ns as c6,rn as c7,On as c8,Sa as c9,Wo as cA,Jt as cB,Zo as cC,hn as cD,gn as cE,$n as cF,fn as cG,bn as cH,wn as cI,kn as cJ,Sn as cK,zn as cL,_n as cM,Bn as cN,Un as cO,Vn as cP,Hn as cQ,qn as cR,Kn as cS,Yn as cT,li as cU,ci as cV,oi as cW,ba as cX,ga as cY,Ia as cZ,rl as c_,va as ca,Ll as cb,di as cc,tn as cd,qr as ce,yn as cf,Es as cg,Zr as ch,no as ci,so as cj,lo as ck,co as cl,po as cm,uo as cn,ho as co,mo as cp,go as cq,xo as cr,Co as cs,Ao as ct,To as cu,Io as cv,No as cw,Lo as cx,Po as cy,Mo as cz,as as d,bc as d0,Oc as d1,Pc as d2,Hc as d3,Jc as d4,Ss as d5,Sc as d6,Li as d7,Pi as d8,Mi as d9,Pr as da,Ja as db,Cp as dc,Ep as dd,Wp as de,zp as df,Bp as dg,Lp as dh,Up as di,mu as dj,ku as dk,Tu as dl,Nu as dm,Ru as dn,Pu as dp,ju as dq,rh as dr,sh as ds,ch as dt,gh as du,Jn as dv,hh as e,lh as f,yp as g,$p as h,Wa as i,qp as j,on as k,Vp as l,fp as m,ih as n,Hu as o,Ri as p,vn as q,Ka as r,Dp as s,nu as t,ua as u,Vu as v,Yp as w,Qp as x,Bo as y,ya as z};
2235
+ `,yh=({visual:e,title:t,description:o,isOpen:n,onClose:i,onDeny:a,denyLabel:r="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Rt();return $t.createElement(Ou,{isOpen:n,onClose:i,...c},$t.createElement($h,null,$t.createElement(fh,null,e&&$t.createElement(e,null),$t.createElement(Zn,{size:Xn.M,weight:500,color:d.v2.colors.white[500]},t),$t.createElement(Ga,{$alignItems:"center",$gap:4},o.split("\n").map(e=>$t.createElement(Zn,{key:e,size:Xn.XS,weight:400,color:d.v2.colors.silver[200]},e)))),(a||s)&&$t.createElement(bh,null,$t.createElement(yp,{variant:$p.Secondary,label:r,onClick:()=>{a?.(),i()}}),s&&$t.createElement(yp,{variant:$p.Primary,label:l,onClick:()=>{s(),i()}}))))};export{rd as $,Jo as A,ti as B,Mp as C,gu as D,oc as E,Ga as F,io as G,ml as H,Ea as I,Wr as J,ro as K,Tu as L,Vi as M,Mu as N,So as O,Va as P,ao as Q,wl as R,_p as S,Zn as T,Ha as U,ko as V,yh as W,Nn as X,dd as Y,hp as Z,$d as _,qa as a,ln as a$,wo as a0,ji as a1,Pd as a2,Rd as a3,kc as a4,vd as a5,dp as a6,wi as a7,bi as a8,hi as a9,Eo as aA,Cn as aB,xi as aC,eo as aD,Ds as aE,un as aF,Os as aG,Qa as aH,Za as aI,Qc as aJ,dn as aK,er as aL,tc as aM,Qs as aN,xp as aO,sa as aP,Gn as aQ,yd as aR,pa as aS,ki as aT,$i as aU,Ms as aV,jn as aW,en as aX,Id as aY,mn as aZ,cn as a_,Oa as aa,Xo as ab,Wc as ac,yc as ad,Pr as ae,bo as af,mi as ag,ma as ah,pn as ai,ni as aj,nn as ak,ms as al,mc as am,fo as an,fi as ao,cr as ap,Sd as aq,Xa as ar,Nr as as,Yo as at,ia as au,pr as av,an as aw,fs as ax,Mn as ay,br as az,Xn as b,yu as b$,Oo as b0,Yd as b1,wa as b2,ui as b3,ka as b4,qo as b5,Qo as b6,to as b7,oo as b8,xa as b9,ii as bA,Zt as bB,np as bC,sc as bD,xn as bE,Ro as bF,Vo as bG,Bo as bH,Ho as bI,_o as bJ,Lo as bK,Fo as bL,rp as bM,sn as bN,za as bO,ai as bP,An as bQ,$a as bR,Do as bS,dl as bT,ks as bU,td as bV,En as bW,In as bX,ws as bY,Hs as bZ,Gs as b_,_a as ba,xr as bb,Wd as bc,Ya as bd,Fa as be,Ln as bf,Sl as bg,si as bh,ri as bi,Ko as bj,Ra as bk,Aa as bl,Ei as bm,Go as bn,kr as bo,ss as bp,bs as bq,vs as br,yo as bs,Pn as bt,Qt as bu,Dn as bv,Wo as bw,Ta as bx,Tn as by,Yt as bz,mh as c,el as c$,Fn as c0,Wn as c1,La as c2,Ul as c3,zo as c4,$o as c5,Ua as c6,Ns as c7,rn as c8,On as c9,Uo as cA,Jt as cB,Zo as cC,hn as cD,gn as cE,$n as cF,fn as cG,bn as cH,wn as cI,kn as cJ,Sn as cK,zn as cL,_n as cM,Bn as cN,Un as cO,Vn as cP,Hn as cQ,qn as cR,Kn as cS,Yn as cT,li as cU,ci as cV,oi as cW,ba as cX,ga as cY,Ia as cZ,rl as c_,Sa as ca,va as cb,Ll as cc,di as cd,tn as ce,qr as cf,yn as cg,Es as ch,Zr as ci,no as cj,so as ck,lo as cl,co as cm,po as cn,uo as co,ho as cp,mo as cq,go as cr,xo as cs,Co as ct,Ao as cu,To as cv,Io as cw,No as cx,Po as cy,jo as cz,ch as d,bc as d0,Oc as d1,Mc as d2,Hc as d3,Jc as d4,Ss as d5,Sc as d6,Li as d7,Mi as d8,Pi as d9,Mr as da,Ja as db,Cp as dc,Ep as dd,Gp as de,Rp as df,jp as dg,Up as dh,qp as di,fu as dj,Su as dk,Ou as dl,_u as dm,Pu as dn,Wu as dp,Hu as dq,Tp as dr,sh as ds,lh as dt,dh as du,xh as dv,Jn as dw,as as e,vo as f,yp as g,$p as h,Wa as i,Jp as j,on as k,Kp as l,fp as m,ah as n,qu as o,Ri as p,vn as q,Ka as r,Dp as s,su as t,ua as u,zp as v,Zp as w,ou as x,Mo as y,ya as z};